r1217 + support IOS 12.2 on edge Cisco switches
authorDenis Ovsienko <infrastation@yandex.ru>
Wed, 17 Oct 2007 12:16:30 +0000 (12:16 +0000)
committerDenis Ovsienko <infrastation@yandex.ru>
Wed, 17 Oct 2007 12:16:30 +0000 (12:16 +0000)
gateways/switchvlans/cisco.connector

index 839ef2cd817a385f944f92bb1207fafed66244a8..8a94157512a68b8b62b26f070244e21a4eec00aa 100755 (executable)
@@ -90,6 +90,13 @@ do_fetch()
        # cause they produce output in different formats.
        if [ "$SW" = "Cisco+IOS+12.0" ]; then
                cat "$OUT3" | tr -d '\r' | fgrep Dynamic | sed -E 's/ +Dynamic +([0-9]+) +(.+)/=\1@\2/;s/FastEthernet/Fa/;s/GigabitEthernet/Gi/' > "$FILE3"
+       elif [ "$SW" = "Cisco+IOS+12.2" ]; then
+               case "$HW" in
+                       Cisco+Catalyst+35*|Cisco+Catalyst+37*|Cisco+Catalyst+2960*|Cisco+Catalyst+2970*)
+                               cat "$OUT3" | tr -d '\r' | fgrep DYNAMIC | \
+                               sed -E 's/ +([0-9]+) +(.+)    DYNAMIC +(.+)/\2=\1@\3/;s/FastEthernet/Fa/;s/GigabitEthernet/Gi/' > "$FILE3"
+                       ;;
+               esac
        fi
 }