fix to logout logic

This commit is contained in:
Chuck SmileyRekiere
2020-09-18 11:04:16 -06:00
parent 5313cbd870
commit 472b838017

View File

@@ -953,9 +953,18 @@ def main():
break
if i == 1:
logg.info("WLC# prompt received after command sent")
try:
logg.info("9800 send exit")
egg.sendline("exit")
sleep(0.1)
except:
logg.info("9800 exception on exit")
sleep(0.1)
break
if i == 2:
egg.sendline("end")
sleep(0.2)
egg.sendline("exit")
sleep(0.1)
break
if i == 3: