mirror of
https://github.com/Telecominfraproject/wlan-lanforge-scripts.git
synced 2025-10-29 18:02:35 +00:00
cisco_wifi_ctl.py , lf_cisco_power.py : updates based on timing change
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user