mirror of
https://github.com/Telecominfraproject/wlan-lanforge-scripts.git
synced 2025-11-02 19:58:03 +00:00
cc_module_9800_3504.py : updated for dtim for 24g, 6g (5g already present)
wifi_ctl_9800_3504.py : update for dtim for 24g, 6g (5g already present) lf_check.py : changed info to warning if test enable isn'TRUE or FALSE Signed-off-by: Chuck SmileyRekiere <chuck.smileyrekiere@candelatech.com>
This commit is contained in:
committed by
shivam
parent
b5c7f3413f
commit
6f653db272
@@ -286,13 +286,33 @@ class create_controller_series_object:
|
||||
return summary
|
||||
|
||||
# DTIM Delivery Traffic Indication Message
|
||||
def config_dtim_dot11_5ghz(self):
|
||||
logger.info("dtim dot11 5ghz")
|
||||
def config_dtim_dot11_24ghz(self):
|
||||
logger.info("dtim dot11 24ghz")
|
||||
self.band = '24g'
|
||||
self.action = "dtim"
|
||||
self.value = self.dtim
|
||||
summary = self.send_command()
|
||||
return summary
|
||||
|
||||
|
||||
# DTIM Delivery Traffic Indication Message
|
||||
def config_dtim_dot11_5ghz(self):
|
||||
logger.info("dtim dot11 5ghz")
|
||||
self.band = '5g'
|
||||
self.action = "dtim"
|
||||
self.value = self.dtim
|
||||
summary = self.send_command()
|
||||
return summary
|
||||
|
||||
def config_dtim_dot11_6ghz(self):
|
||||
logger.info("dtim dot11 6ghz")
|
||||
self.band = '6g'
|
||||
self.action = "dtim"
|
||||
self.value = self.dtim
|
||||
summary = self.send_command()
|
||||
return summary
|
||||
|
||||
|
||||
# NOTE: need to do _no_logging_console and line_console_0 at the beginning of every session
|
||||
# to avoid unexpected log messages showing up
|
||||
|
||||
|
||||
@@ -738,6 +738,7 @@ QA Report Dashboard: lf_qa.py was not run as last script of test suite"""
|
||||
# The network arguments need to be changed when in a list
|
||||
for index, args_list_element in enumerate(
|
||||
self.test_dict[self.test]['args_list']):
|
||||
# Note the elements used by ssid_idx need to be
|
||||
if 'ssid_idx=' in args_list_element:
|
||||
# print("args_list_element {}".format(args_list_element))
|
||||
# get ssid_idx used in the test as an index for the
|
||||
@@ -1207,7 +1208,7 @@ QA Report Dashboard: lf_qa.py was not run as last script of test suite"""
|
||||
self.run_script()
|
||||
|
||||
else:
|
||||
self.logger.info(
|
||||
self.logger.warning(
|
||||
"enable value {} for test: {} ".format(self.test_dict[self.test]['enabled'], self.test))
|
||||
|
||||
suite_end_time = datetime.datetime.now()
|
||||
|
||||
@@ -1413,7 +1413,7 @@ def main():
|
||||
if (args.action == "dtim" and ((args.value is None) or (args.wlan is None))):
|
||||
raise Exception("dtim a value 1 - 255 required")
|
||||
if (args.action == "dtim"):
|
||||
logg.info("(config-wlan)# dtim dot11 5ghz {value} ".format(value=args.value))
|
||||
logg.info("(config-wlan)# dtim dot11 {band}hz {value} ".format(band=args.band,value=args.value))
|
||||
if args.series == "9800":
|
||||
egg.sendline("config t")
|
||||
sleep(0.4)
|
||||
@@ -1423,7 +1423,7 @@ def main():
|
||||
|
||||
logg.info("elevated to (config)#")
|
||||
# for create wlan <name> <ID> <ssid>
|
||||
command = "wlan {}".format(args.wlan)
|
||||
command = "wlan {wlan}".format(wlan=args.wlan)
|
||||
egg.sendline(command)
|
||||
sleep(0.4)
|
||||
j = egg.expect_exact([CCP_CONFIG_WLAN, pexpect.TIMEOUT], timeout=timeout)
|
||||
|
||||
Reference in New Issue
Block a user