cisco_wifi_ctl.py lf_cisco_power.py : cleaned up output when not in verbose mode

This commit is contained in:
Chuck SmileyRekiere
2020-10-29 08:57:27 -06:00
parent 2d30779ade
commit 2d46e31f80
2 changed files with 4 additions and 4 deletions

View File

@@ -1362,7 +1362,7 @@ def main():
command_sent = True
except:
logg.info("exception in logout loop")
logg.info("closing connection logout loop")
try:
egg.sendline("logout")
logg.info("logout")
@@ -1370,7 +1370,7 @@ def main():
egg.close(force = True)
sleep(0.1)
except:
logg.info("exception on logout")
logg.info("closing connection on logout")

View File

@@ -1432,7 +1432,7 @@ def main():
try:
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,
"--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:
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)
@@ -1440,7 +1440,7 @@ def main():
try:
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,
"--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:
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)