cisco_wifi_ctl.py : removed expects after command sent, since already done later in code

This commit is contained in:
Chuck SmileyRekiere
2020-10-26 09:22:36 -06:00
parent af9c4deea7
commit 5750c34995

View File

@@ -1106,11 +1106,6 @@ def main():
if i == 0:
egg.sendline("no logging console")
sleep(0.2)
j = egg.expect_exact(["(config)#", pexpect.TIMEOUT],timeout=2)
if j == 0:
logg.info("command sent: no logging console")
if j == 1:
logg.info("timed out on command prompt (config)#")
if i == 1:
logg.info("did not get the (config)# prompt")
@@ -1122,13 +1117,6 @@ def main():
if i == 0:
egg.sendline("line console 0")
sleep(0.1)
j = egg.expect_exact(["(config-line)#","(config)#",pexpect.TIMEOUT],timeout=2)
if j == 0:
logg.info("command sent: line console 0 received prompt (config-line)#")
if j == 1:
logg.info("command sent: line console 0 received prompt (config)#")
if j == 2:
logg.info("timed out on command prompt (config-line)#")
if i == 1:
logg.info("did not get the (config)# prompt")