timing adjustments on login

This commit is contained in:
Chuck SmileyRekiere
2020-09-30 15:58:45 -06:00
parent 623e666d14
commit 2735114cb5

View File

@@ -400,9 +400,9 @@ def main():
while logged_in_9800 == False and loop_count <= 2: while logged_in_9800 == False and loop_count <= 2:
loop_count += 1 loop_count += 1
logg.info("9800 establishing Telnet egg {} ".format(egg)) logg.info("9800 establishing Telnet egg {} ".format(egg))
sleep(5) sleep(2)
egg.sendline(CR) egg.sendline(CR)
sleep(3) sleep(0.4)
try: try:
i = egg.expect_exact(["Escape character is '^]'.","WLC>","WLC#","User:","Password:","WLC(config)#","Bad secrets",pexpect.TIMEOUT],timeout=2) i = egg.expect_exact(["Escape character is '^]'.","WLC>","WLC#","User:","Password:","WLC(config)#","Bad secrets",pexpect.TIMEOUT],timeout=2)
except pexpect.EOF as e: except pexpect.EOF as e: