From 91bc3d0ee992ea49a5c9cf53e3fffa02c009addd Mon Sep 17 00:00:00 2001 From: Chuck SmileyRekiere Date: Wed, 16 Sep 2020 15:52:23 -0600 Subject: [PATCH] 9800 command fix --- cisco_wifi_ctl.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/cisco_wifi_ctl.py b/cisco_wifi_ctl.py index 2e1d6c5b..9e085a5a 100755 --- a/cisco_wifi_ctl.py +++ b/cisco_wifi_ctl.py @@ -700,16 +700,13 @@ def main(): j = egg.expect_exact(["(config-wlan)#",pexpect.TIMEOUT],timeout=2) if j == 0: for command in ["shutdown","no security wpa","no security wpa wpa2","no security wpa wpa2 ciphers aes", - "no security wpa akm dot1x","no shutdown","exit"]: + "no security wpa akm dot1x","no shutdown","end"]: egg.sendline(command) sleep(0.1) k = egg.expect_exact(["(config-wlan)#",pexpect.TIMEOUT],timeout=2) if k == 0: print("command sent: {}".format(command)) if k == 1: - if command == "exit": - pass - else: print("command time out: {}".format(command)) if j == 1: print("did not get the (config-wlan)# prompt")