correct script for internal lab network
authorLaurent Mazet <laurent.mazet@thalesgroup.com>
Tue, 5 Jan 2016 15:04:47 +0000 (16:04 +0100)
committerLaurent Mazet <laurent.mazet@thalesgroup.com>
Tue, 5 Jan 2016 15:04:47 +0000 (16:04 +0100)
master/root/bin/conf_switch_integration

index 1bc0deb73a2ed5bcfaea7e37f46b718d665bd7be..69698bb46a785d7d11a25dd474de2fd5d444d801 100755 (executable)
@@ -2,7 +2,7 @@
 
 set sub [lrange $argv 0 0]
 if { $sub == "" } { set sub "1" }
-spawn telnet sw1
+spawn telnet swm
 
 expect {
         "Password:" { send "thales\r" }
@@ -18,7 +18,7 @@ expect -exact "#" { send "config terminal\r" }
 expect -exact "#" { send "vlan 192\r" }
 expect -exact "#" { send "name Integration\r" }
 expect -exact "#" { send "exit\r" }
-f
+
 expect -exact "#" { send "interface gigabitEthernet 1/47\r" }
 expect -exact "#" { send "switchport mode access\r" }
 expect -exact "#" { send "switchport access vlan 192\r" }