From 6f653db272a40584099fe34fef5fdff91fecc027 Mon Sep 17 00:00:00 2001 From: Chuck SmileyRekiere Date: Fri, 4 Mar 2022 11:14:00 -0700 Subject: [PATCH] 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 --- cc_module_9800_3504.py | 24 ++++++++++++++++++++++-- py-scripts/tools/lf_check.py | 3 ++- wifi_ctl_9800_3504.py | 4 ++-- 3 files changed, 26 insertions(+), 5 deletions(-) diff --git a/cc_module_9800_3504.py b/cc_module_9800_3504.py index a2c95dbb..fc6bc76b 100755 --- a/cc_module_9800_3504.py +++ b/cc_module_9800_3504.py @@ -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 diff --git a/py-scripts/tools/lf_check.py b/py-scripts/tools/lf_check.py index e406d372..7a352ab9 100755 --- a/py-scripts/tools/lf_check.py +++ b/py-scripts/tools/lf_check.py @@ -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() diff --git a/wifi_ctl_9800_3504.py b/wifi_ctl_9800_3504.py index d384791a..d9fc88f6 100755 --- a/wifi_ctl_9800_3504.py +++ b/wifi_ctl_9800_3504.py @@ -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 - 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)