cisco_wifi_ctl.py : : LCS-48 wlan and wlan ssid need separate config command

fixed command order for 9800 wlan wlanID wlanSSID
This commit is contained in:
Chuck SmileyRekiere
2021-01-25 07:48:07 -07:00
parent 59b8f43454
commit 94324c4f09

View File

@@ -1195,8 +1195,8 @@ def main():
print("command show wlan summary ")
command = "show wlan summary"
if (args.action == "create_wlan" and ((args.wlanID is None) or (args.wlan is None))):
raise Exception("wlan and wlanID is required an")
if (args.action == "create_wlan" and ((args.wlanID is None) or (args.wlan is None) or (args.wlanSSID is None))):
raise Exception("wlanID, wlan, wlanSSID are required an")
if (args.action == "create_wlan"):
logg.info("create_wlan wlan {} wlanID {} wlanSSID {}".format(args.wlan, args.wlanID, args.wlanSSID))
if args.series == "9800":
@@ -1206,7 +1206,7 @@ def main():
if i == 0:
logg.info("elevated to (config)#")
# for create wlan <name> <ID> <ssid>
command = "wlan {} {} {}".format(args.wlanID, args.wlan, args.wlanSSID) # should the last one be ssid not wlan
command = "wlan {} {} {}".format(args.wlan, args.wlanID, args.wlanSSID)
logg.info("open network command {}".format(command))
egg.sendline(command)
sleep(0.4)