From cbdf077e09c8bd41f5e3b3dbb8ec0946b306f4c5 Mon Sep 17 00:00:00 2001 From: Chuck SmileyRekiere Date: Thu, 14 Jan 2021 15:18:36 -0700 Subject: [PATCH] cisco_wifi_ctl.py : debugging show wlan summary, for controller --- cisco_wifi_ctl.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/cisco_wifi_ctl.py b/cisco_wifi_ctl.py index cb782560..d1c5f77b 100755 --- a/cisco_wifi_ctl.py +++ b/cisco_wifi_ctl.py @@ -1189,10 +1189,12 @@ def main(): if (args.action == "show_wlan_summary"): egg.sendline("show wlan summary") sleep(0.1) - i = egg.expect([CCP_EN,pexpect.TIMEOUT],timeout=2) + i = egg.expect([CCP,CCP_EN,pexpect.TIMEOUT],timeout=2) if i == 0: - logg.info("show wlan summary sent") + 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))): @@ -1214,7 +1216,7 @@ def main(): # previous commands for command in ["shutdown","no security ft","no security wpa","no security wpa wpa2","no security wpa wpa2 ciphers aes", # "no security wpa akm dot1x","no shutdown"]: - # 1/14/2021 - Gaurav suggestion + # 1/14/2021 - Cisco suggestion # We are basically disabling all the possible security parameters for Authentication for command in [ "no security ft",