From 393dfc576d66d4e101061dc97810f1e18f257470 Mon Sep 17 00:00:00 2001 From: Chuck SmileyRekiere Date: Wed, 16 Sep 2020 22:06:38 -0600 Subject: [PATCH] debug updates --- cisco_wifi_ctl.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/cisco_wifi_ctl.py b/cisco_wifi_ctl.py index 0ff30d22..a81fee60 100755 --- a/cisco_wifi_ctl.py +++ b/cisco_wifi_ctl.py @@ -575,11 +575,11 @@ def main(): egg.sendline("ap dot11 5ghz shutdown") i = egg.expect_exact(["Are you sure you wan to continue? (y/n) [y]:",pexpect.TIMEOUT],timeout=2) if j == 0: - egg.sendline("y") + egg.sendline(CR) if j == 1: print("did not get Are you sure you wan to continue? (y/n) [y]:") if i == 1: - print("timed out on disable_network_5ghz") + print("timed out on (config)# disable_network_5ghz") if (args.action == "disable_network_24ghz"): if args.series == "9800": @@ -590,11 +590,11 @@ def main(): egg.sendline("ap dot11 24ghz shutdown") i = egg.expect_exact(["Are you sure you wan to continue? (y/n) [y]:",pexpect.TIMEOUT],timeout=2) if j == 0: - egg.sendline("y") + egg.sendline(CR) if j == 1: print("did not get Are you sure you wan to continue? (y/n) [y]:") if i == 1: - print("timed out on disable_network_24ghz") + print("timed out on (config)# disable_network_24ghz") if (args.action == "enable_network_5ghz"): if args.series == "9800": @@ -603,7 +603,7 @@ def main(): if i == 0: command = "no ap dot11 5ghz shutdown" else: - print("timed out on no ap dot11 5ghz shutdown") + print("timed out (config)# on no ap dot11 5ghz shutdown") if (args.action == "enable_network_24ghz"): if args.series == "9800": @@ -612,7 +612,7 @@ def main(): if i == 0: command = "no ap dot11 24ghz shutdown" else: - print("timed out on no ap dot11 24ghz shutdown") + print("timed out on (config)# no ap dot11 24ghz shutdown") if (args.action in ["enable", "disable" ] and (args.ap is None)):