cisco_wifi_ctl.py , lf_cisco_power.py : updates based on timing change

This commit is contained in:
Chuck SmileyRekiere
2021-01-08 13:52:58 -07:00
parent 05a8a6a908
commit 4895a49f99
2 changed files with 4 additions and 1 deletions

View File

@@ -1372,6 +1372,9 @@ def main():
egg.sendline(command)
sleep(0.5)
logg.info("command sent {}".format(command))
egg.expect([pexpect.TIMEOUT], timeout=1)
print(egg.before.decode('utf-8', 'ignore'))
command_sent = False
loop_count = 0

View File

@@ -1797,7 +1797,7 @@ def main():
try:
logg.info("3504 cisco_wifi_ctl.py: config 802.11a enable network")
ctl_output = subprocess.run(["./cisco_wifi_ctl.py", "--scheme", scheme, "-d", args.dest, "-u", args.user, "-p", args.passwd, "-a", args.ap, "--band", band,
"--action", "cmd", "--value", "config 802.11a enable network","--port", "--series" , args.series,args.port,"--prompt",args.prompt],capture_output=cap_ctl_out, check=True)
"--action", "cmd", "--value", "config 802.11a enable network","--port", args.port, "--series" , args.series,"--prompt",args.prompt],capture_output=cap_ctl_out, check=True)
if cap_ctl_out:
pss = ctl_output.stdout.decode('utf-8', 'ignore')
logg.info(pss)