added show_ap_bssid_24ghz and show_ap_bssid_5ghz action method to query bssid for 2ghz and 5 ghz

This commit is contained in:
Nikita Yadav
2022-02-23 16:05:01 +05:30
committed by shivam
parent 96a797f6f0
commit a160dbde3e

View File

@@ -188,7 +188,7 @@ class create_controller_series_object:
# possible need to look for exact command # possible need to look for exact command
elif self.action in ["summary", "show_radio", "no_logging_console", "line_console_0", "show_ap_wlan_summary", "show_wlan_summary", "show_wlan_id", elif self.action in ["summary", "show_radio", "no_logging_console", "line_console_0", "show_ap_wlan_summary", "show_wlan_summary", "show_wlan_id",
"advanced", "disable", "disable_network_6ghz", "disable_network_5ghz", "disable_network_24ghz", "advanced", "disable", "disable_network_6ghz", "disable_network_5ghz", "disable_network_24ghz",
"manual", "auto", "enable_network_6ghz", "enable_network_5ghz", "enable_network_24ghz", "enable"]: "manual", "auto", "enable_network_6ghz", "enable_network_5ghz", "enable_network_24ghz", "enable", "show_ap_bssid_24g", "show_ap_bssid_5g"]:
self.command_extend = ["--action", self.action] self.command_extend = ["--action", self.action]
self.command.extend(self.command_extend) self.command.extend(self.command_extend)
@@ -264,6 +264,18 @@ class create_controller_series_object:
summary = self.send_command() summary = self.send_command()
return summary return summary
def show_ap_bssid_24ghz(self):
logger.info("show ap name wlan dot11 24ghz")
self.action = "show_ap_bssid_24g"
summary = self.send_command()
return summary
def show_ap_bssid_5ghz(self):
logger.info("show ap name wlan dot11 5ghz")
self.action = "show_ap_bssid_5g"
summary = self.send_command()
return summary
def show_ap_wlan_summary(self): def show_ap_wlan_summary(self):
logger.info("show ap wlan summary") logger.info("show ap wlan summary")
self.action = "show_ap_wlan_summary" self.action = "show_ap_wlan_summary"
@@ -1399,6 +1411,8 @@ INCLUDE_IN_README
band=args.band, band=args.band,
timeout=args.timeout) timeout=args.timeout)
# cs.show_ap_bssid_24ghz()
# TODO add ability to select tests # TODO add ability to select tests
cs.show_ap_summary() cs.show_ap_summary()
summary = cs.show_ap_wlan_summary() summary = cs.show_ap_wlan_summary()