mirror of
https://github.com/Telecominfraproject/wlan-lanforge-scripts.git
synced 2025-11-01 03:07:56 +00:00
lf_cisco_power.py : on first controller command, updated error to check
if telnet is already active
This commit is contained in:
@@ -640,7 +640,13 @@ def main():
|
|||||||
pss = advanced.stdout.decode('utf-8', 'ignore');
|
pss = advanced.stdout.decode('utf-8', 'ignore');
|
||||||
logg.info(pss)
|
logg.info(pss)
|
||||||
except subprocess.CalledProcessError as process_error:
|
except subprocess.CalledProcessError as process_error:
|
||||||
logg.info("Controller unable to commicate to AP or unable to communicate to controller error code {} output {}".format(process_error.returncode, process_error.output))
|
logg.info("####################################################################################################")
|
||||||
|
logg.info("# CHECK IF CONTROLLER HAS TELNET CONNECTION ALREADY ACTIVE")
|
||||||
|
logg.info("####################################################################################################")
|
||||||
|
|
||||||
|
logg.info("####################################################################################################")
|
||||||
|
logg.info("# Controller unable to commicate to AP or unable to communicate to controller error code: {} output {}".format(process_error.returncode, process_error.output))
|
||||||
|
logg.info("####################################################################################################")
|
||||||
exit_test(workbook)
|
exit_test(workbook)
|
||||||
|
|
||||||
try:
|
try:
|
||||||
@@ -929,7 +935,6 @@ def main():
|
|||||||
logg.info("Controller unable to commicate to AP or unable to communicate to controller error code: {} output {}".format(process_error.returncode, process_error.output))
|
logg.info("Controller unable to commicate to AP or unable to communicate to controller error code: {} output {}".format(process_error.returncode, process_error.output))
|
||||||
exit_test(workbook)
|
exit_test(workbook)
|
||||||
|
|
||||||
|
|
||||||
# Create wlan
|
# Create wlan
|
||||||
wlan_created = True
|
wlan_created = True
|
||||||
logg.info("create wlan {} wlanID {} port {}".format(args.wlan, args.wlanID, args.port))
|
logg.info("create wlan {} wlanID {} port {}".format(args.wlan, args.wlanID, args.port))
|
||||||
|
|||||||
Reference in New Issue
Block a user