set host [lrange $argv 0 0]
if { $host == "" } {
- puts "usage: configure_switch_bootstrap.tcl \[swg1|swg2|swm\]"
+ puts "usage: configure_switch_bootstrap.tcl \[sw1|sw2|swg1|swg2|swm\]"
exit 1
}
if { $host == "swg1" } { set ipaddress "10.133.26.231" }
if { $host == "swg2" } { set ipaddress "10.133.26.232" }
if { $host == "swm" } { set ipaddress "10.133.28.231" }
+if { $host == "sw1" } { set ipaddress "10.133.26.231" }
+if { $host == "sw2" } { set ipaddress "10.133.26.232" }
if { $ipaddress == "" } { puts "unknown switch '$host'""; exit 1 }
spawn screen -c . /dev/ttyUSB0