From c73a6f5da4490ebbc4fecb650c9f525cad335df9 Mon Sep 17 00:00:00 2001 From: Chuck SmileyRekiere Date: Wed, 16 Sep 2020 20:23:20 -0600 Subject: [PATCH] improve log out 9800 --- cisco_wifi_ctl.py | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/cisco_wifi_ctl.py b/cisco_wifi_ctl.py index 8b95f5b4..cdcee0f7 100755 --- a/cisco_wifi_ctl.py +++ b/cisco_wifi_ctl.py @@ -799,13 +799,16 @@ def main(): break - egg.sendline("logout") - print("logout") - i = egg.expect([LOGOUTPROMPT, EXITPROMPT, CLOSEDBYREMOTE, CLOSEDCX,pexpect.TIMEOUT],timeout=3) - if i == 0: - egg.sendline("y") - if i == 4: - print("pexpect timeout on logout") + if args.series == "9800": + pass + else: + egg.sendline("logout") + print("logout") + i = egg.expect([LOGOUTPROMPT, EXITPROMPT, CLOSEDBYREMOTE, CLOSEDCX,pexpect.TIMEOUT],timeout=3) + if i == 0: + egg.sendline("y") + if i == 4: + print("pexpect timeout on logout")