improve log out 9800

This commit is contained in:
Chuck SmileyRekiere
2020-09-16 20:23:20 -06:00
parent 410917dabd
commit c73a6f5da4

View File

@@ -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")