mirror of
https://github.com/Telecominfraproject/wlan-lanforge-scripts.git
synced 2025-11-18 19:14:54 +00:00
cisco_wifi_ctl.py lf_cisco_power.py : cleaned up output when not in verbose mode
This commit is contained in:
@@ -1362,7 +1362,7 @@ def main():
|
|||||||
command_sent = True
|
command_sent = True
|
||||||
|
|
||||||
except:
|
except:
|
||||||
logg.info("exception in logout loop")
|
logg.info("closing connection logout loop")
|
||||||
try:
|
try:
|
||||||
egg.sendline("logout")
|
egg.sendline("logout")
|
||||||
logg.info("logout")
|
logg.info("logout")
|
||||||
@@ -1370,7 +1370,7 @@ def main():
|
|||||||
egg.close(force = True)
|
egg.close(force = True)
|
||||||
sleep(0.1)
|
sleep(0.1)
|
||||||
except:
|
except:
|
||||||
logg.info("exception on logout")
|
logg.info("closing connection on logout")
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -1432,7 +1432,7 @@ def main():
|
|||||||
try:
|
try:
|
||||||
print("3504 cisco_wifi_ctl.py: config 802.11a enable network")
|
print("3504 cisco_wifi_ctl.py: config 802.11a enable network")
|
||||||
subprocess.run(["./cisco_wifi_ctl.py", "--scheme", scheme, "-d", args.dest, "-u", args.user, "-p", args.passwd, "-a", args.ap, "--band", band,
|
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", args.port])
|
"--action", "cmd", "--value", "config 802.11a enable network","--port", args.port],capture_output=cap_ctl_out, check=True)
|
||||||
except subprocess.CalledProcessError as process_error:
|
except subprocess.CalledProcessError as process_error:
|
||||||
print("Controller unable to commicate to AP or unable to communicate to controller error code: {} output {}".format(process_error.returncode, process_error.output))
|
print("Controller unable to commicate to AP or unable to communicate to controller error code: {} output {}".format(process_error.returncode, process_error.output))
|
||||||
exit(1)
|
exit(1)
|
||||||
@@ -1440,7 +1440,7 @@ def main():
|
|||||||
try:
|
try:
|
||||||
print("3504 cisco_wifi_ctl.py: config 802.11b enable network")
|
print("3504 cisco_wifi_ctl.py: config 802.11b enable network")
|
||||||
subprocess.run(["./cisco_wifi_ctl.py", "--scheme", scheme, "-d", args.dest, "-u", args.user, "-p", args.passwd, "-a", args.ap, "--band", band,
|
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.11b enable network","--port", args.port])
|
"--action", "cmd", "--value", "config 802.11b enable network","--port", args.port],capture_output=cap_ctl_out, check=True)
|
||||||
except subprocess.CalledProcessError as process_error:
|
except subprocess.CalledProcessError as process_error:
|
||||||
print("Controller unable to commicate to AP or unable to communicate to controller error code: {} output {}".format(process_error.returncode, process_error.output))
|
print("Controller unable to commicate to AP or unable to communicate to controller error code: {} output {}".format(process_error.returncode, process_error.output))
|
||||||
exit(1)
|
exit(1)
|
||||||
|
|||||||
Reference in New Issue
Block a user