mirror of
https://github.com/Telecominfraproject/wlan-lanforge-scripts.git
synced 2025-11-21 12:34:54 +00:00
cisco_wifi_ctl.py : show_wlan_summary
This commit is contained in:
@@ -1188,23 +1188,10 @@ def main():
|
|||||||
sleep(0.1)
|
sleep(0.1)
|
||||||
if i == 1:
|
if i == 1:
|
||||||
logg.info("did not get the (config)# prompt")
|
logg.info("did not get the (config)# prompt")
|
||||||
print("args.action {}".format(args.action))
|
|
||||||
if (args.action == "show_wlan_summary"):
|
if (args.action == "show_wlan_summary"):
|
||||||
print("First check on show_wlan_summary {}".format(args.action))
|
print("command show wlan summary ")
|
||||||
logg.info("show_wlan_summary: {}".format(args.action))
|
command = "show wlan summary"
|
||||||
if (args.action == "show_wlan_summary"):
|
|
||||||
logg.info("show wlan summary command to send")
|
|
||||||
print("show wlan summary command to send 2")
|
|
||||||
egg.sendline("show wlan summary")
|
|
||||||
sleep(0.1)
|
|
||||||
i = egg.expect_exact([CCP,CCP_EN,pexpect.TIMEOUT],timeout=2)
|
|
||||||
print("CCP: {} CCP_EN: {} ".format(CCP,CCP_EN))
|
|
||||||
if i == 0:
|
|
||||||
logg.info("show wlan summary sent prompt {}".format(CCP))
|
|
||||||
if i == 1:
|
|
||||||
logg.info("show wlan summary sent prompt {}".format(CCP_EN))
|
|
||||||
if i == 2:
|
|
||||||
logg.info("show wlan summary timed out")
|
|
||||||
|
|
||||||
if (args.action == "create_wlan" and ((args.wlanID is None) or (args.wlan is None))):
|
if (args.action == "create_wlan" and ((args.wlanID is None) or (args.wlan is None))):
|
||||||
raise Exception("wlan and wlanID is required an")
|
raise Exception("wlan and wlanID is required an")
|
||||||
|
|||||||
Reference in New Issue
Block a user