mirror of
https://github.com/Telecominfraproject/wlan-lanforge-scripts.git
synced 2025-11-02 11:48:03 +00:00
cc_module_9800_3504.py : updated to pass timeout to wifi_ctl_9800_3504.py
wifi_ctl_9800_3504 print out logg message of timeout value Signed-off-by: Chuck SmileyRekiere <chuck.smileyrekiere@candelatech.com>
This commit is contained in:
committed by
shivam
parent
25942310de
commit
be72696317
@@ -145,8 +145,8 @@ class create_controller_series_object:
|
|||||||
self.port = port
|
self.port = port
|
||||||
|
|
||||||
if timeout is None:
|
if timeout is None:
|
||||||
logger.info("timeout not set default to 10 sec")
|
logger.info("timeout not set default to 3 sec")
|
||||||
self.timeout = '10'
|
self.timeout = '3'
|
||||||
else:
|
else:
|
||||||
self.timeout = timeout
|
self.timeout = timeout
|
||||||
|
|
||||||
@@ -222,11 +222,13 @@ class create_controller_series_object:
|
|||||||
self.command = ["./wifi_ctl_9800_3504.py", "--scheme", self.scheme, "--dest", self.dest,
|
self.command = ["./wifi_ctl_9800_3504.py", "--scheme", self.scheme, "--dest", self.dest,
|
||||||
"--user", self.user, "--passwd", self.passwd, "--prompt", self.prompt,
|
"--user", self.user, "--passwd", self.passwd, "--prompt", self.prompt,
|
||||||
"--series", self.series, "--ap", self.ap, "--ap_band_slot", self.ap_band_slot, "--band", self.band, "--port", self.port,
|
"--series", self.series, "--ap", self.ap, "--ap_band_slot", self.ap_band_slot, "--band", self.band, "--port", self.port,
|
||||||
|
"--timeout", self.timeout,
|
||||||
]
|
]
|
||||||
else:
|
else:
|
||||||
self.command = [str(str(self.pwd) + "/wifi_ctl_9800_3504.py"), "--scheme", self.scheme, "--dest", self.dest,
|
self.command = [str(str(self.pwd) + "/wifi_ctl_9800_3504.py"), "--scheme", self.scheme, "--dest", self.dest,
|
||||||
"--user", self.user, "--passwd", self.passwd, "--prompt", self.prompt,
|
"--user", self.user, "--passwd", self.passwd, "--prompt", self.prompt,
|
||||||
"--series", self.series, "--ap", self.ap, "--ap_band_slot", self.ap_band_slot, "--band", self.band, "--port", self.port,
|
"--series", self.series, "--ap", self.ap, "--ap_band_slot", self.ap_band_slot, "--band", self.band, "--port", self.port,
|
||||||
|
"--timeout", self.timeout,
|
||||||
]
|
]
|
||||||
|
|
||||||
# Generate command
|
# Generate command
|
||||||
|
|||||||
@@ -221,6 +221,9 @@ def main():
|
|||||||
console_handler = logging.StreamHandler()
|
console_handler = logging.StreamHandler()
|
||||||
formatter = logging.Formatter(FORMAT)
|
formatter = logging.Formatter(FORMAT)
|
||||||
logg = logging.getLogger(__name__)
|
logg = logging.getLogger(__name__)
|
||||||
|
|
||||||
|
logg.info("wifi_ctl command timeout set to {timeout}".format(timeout=timeout))
|
||||||
|
|
||||||
# TODO Refactor for script to work must have output go to console_handler
|
# TODO Refactor for script to work must have output go to console_handler
|
||||||
# This does work since it is a subordinate to the root logger
|
# This does work since it is a subordinate to the root logger
|
||||||
# logg.setLevel(logging.DEBUG)
|
# logg.setLevel(logging.DEBUG)
|
||||||
|
|||||||
Reference in New Issue
Block a user