From f2a59f8c6f05da8c560b7de2e14e7bd779368bb7 Mon Sep 17 00:00:00 2001 From: Chuck SmileyRekiere Date: Tue, 19 Jan 2021 14:18:29 -0700 Subject: [PATCH] cisco_wifi_ctl.py : show_wlan_summary --- cisco_wifi_ctl.py | 19 +++---------------- 1 file changed, 3 insertions(+), 16 deletions(-) diff --git a/cisco_wifi_ctl.py b/cisco_wifi_ctl.py index ff50e9b1..25393d6a 100755 --- a/cisco_wifi_ctl.py +++ b/cisco_wifi_ctl.py @@ -1188,23 +1188,10 @@ def main(): sleep(0.1) if i == 1: logg.info("did not get the (config)# prompt") - print("args.action {}".format(args.action)) + if (args.action == "show_wlan_summary"): - print("First check on show_wlan_summary {}".format(args.action)) - logg.info("show_wlan_summary: {}".format(args.action)) - 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") + 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")