r1844 + fix suspended and monitoring port states
authorDenis Ovsienko <infrastation@yandex.ru>
Tue, 1 Apr 2008 10:34:48 +0000 (10:34 +0000)
committerDenis Ovsienko <infrastation@yandex.ru>
Tue, 1 Apr 2008 10:34:48 +0000 (10:34 +0000)
gateways/switchvlans/cisco.connector

index 76b64e1fd356ed1b102695d5177604822ee5594e..398a9c7787882f1d1c17b9512e178e61e3055d80 100755 (executable)
@@ -112,7 +112,7 @@ do_fetch()
 
        # First extract structured info about VLAN membership, then map
        # special descriptions into VLAN IDs.
-       cat "$OUT2a" | egrep '^(Et|Fa|Gi|Te)' | sed $SEDFLAG 's/^([A-Za-z/0-9]+) +(.*) +(connected|notconnect|disabled|monitoring|suspended) +/\1~\2%\3%/;s/%(trunk|([0-9]+)) .*$/%\1/;s/=(monitoring|suspended)%/=connected%/;s/ +%/%/;s/~/%/' > $OUT2b
+       cat "$OUT2a" | egrep '^(Et|Fa|Gi|Te)' | sed $SEDFLAG 's/^([A-Za-z/0-9]+) +(.*) +(connected|notconnect|disabled|monitoring|suspended) +/\1~\2%\3%/;s/%(trunk|([0-9]+)) .*$/%\1/;s/%(monitoring|suspended)%/%connected%/;s/ +%/%/;s/~/%/' > $OUT2b
        while read line; do
                tmp_ifname=`echo $line | cut -d% -f1`
                tmp_ifdescr=`echo $line | cut -d% -f2`