From 3eb751c83d897a5a847b2f6532150b487e309529 Mon Sep 17 00:00:00 2001 From: Chuck SmileyRekiere Date: Fri, 18 Sep 2020 10:00:09 -0600 Subject: [PATCH] cleanup logout 9800 --- cisco_wifi_ctl.py | 9 +-------- lf_cisco_power.py | 1 - 2 files changed, 1 insertion(+), 9 deletions(-) diff --git a/cisco_wifi_ctl.py b/cisco_wifi_ctl.py index aadc9c42..6c8e2e79 100755 --- a/cisco_wifi_ctl.py +++ b/cisco_wifi_ctl.py @@ -935,7 +935,7 @@ def main(): if (command is None): if args.series == "9800": - logg.info("9800 series command completed by earlier logic") + logg.info("9800 series command completed by earlier logic: {}".format(command)) else: logg.info("No command specified, going to log out.") else: @@ -960,13 +960,6 @@ def main(): except: logg.info("9800 exception on exit") sleep(1) - try: - logg.info("9800 send carriage return and linefeed") - egg.sendline("\r\n") - sleep(0.1) - except: - logg.info("9800 exception on carriage return and linefeed") - break if i == 2: egg.sendline("end") sleep(0.2) diff --git a/lf_cisco_power.py b/lf_cisco_power.py index b427e867..b252cde7 100755 --- a/lf_cisco_power.py +++ b/lf_cisco_power.py @@ -597,7 +597,6 @@ def main(): # Wait a bit for AP to come back up time.sleep(1) - # TODO figure out equivalent of the advanced command for 9800 if args.series == "9800": print("9800 cisco_wifi_ctl.py: advanced")