r1769 + fix commands ordering for IOS; don't forget unsetting description
authorDenis Ovsienko <infrastation@yandex.ru>
Tue, 11 Mar 2008 11:36:07 +0000 (11:36 +0000)
committerDenis Ovsienko <infrastation@yandex.ru>
Tue, 11 Mar 2008 11:36:07 +0000 (11:36 +0000)
gateways/switchvlans/cisco.connector

index 5f9e0d6324c56901e71eb61eda48fecbbd2d078a..0ba2df48e32ab4fe26cc6d2d0cf0485838e5bf05 100755 (executable)
@@ -72,9 +72,10 @@ prepare_push_commands()
                printf "int $portname\n" >> $CMDS1
                if [ $vlanid -lt 4096 ]; then
                        printf "swi access vlan $vlanid\nswi mode access\n" >> $CMDS1
+                       printf "no description\n" >> $CMDS1
                else
                        printf "descr VLAN$vlanid\n" >> $CMDS1
-                       printf "swi mode trunk\nswi trunk encap dot1q\n" >> $CMDS1
+                       printf "swi trunk encap dot1q\nswi mode trunk\n" >> $CMDS1
                        "$MYDIR/trunkdecoder" $vlanid >> $CMDS1
                fi
                printf "exit\n" >> $CMDS1