mirror of
https://github.com/Telecominfraproject/wlan-lanforge-scripts.git
synced 2025-11-03 04:07:52 +00:00
lf_tx_power.py : added cc_module commands for configuring dual-band mode
cc_module_test.py : initial commit for dual-band module test Signed-off-by: Chuck SmileyRekiere <chuck.smileyrekiere@candelatech.com>
This commit is contained in:
committed by
shivam
parent
f6a27cfee6
commit
07e6da3aa6
@@ -274,8 +274,104 @@ class create_module_test_object:
|
||||
# self.cs.show_ap_dot11_24gz_summary()
|
||||
# show_wlan_summary
|
||||
self.cs.show_wlan_summary()
|
||||
|
||||
# Test dual-band 6g
|
||||
def test_config_tx_power_dual_band_6g_wpa3(self):
|
||||
# TODO : leave for now for reference
|
||||
# WLC1#show ap summary
|
||||
# Number of APs: 3
|
||||
#
|
||||
# WLC1 show ap summary
|
||||
# Number of APs: 5
|
||||
#
|
||||
# AP Name Slots AP Model Ethernet MAC Radio MAC Location Country IP Address State
|
||||
# -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
|
||||
# APCC9C.3EF4.E0B0 3 CW9166I-B cc9c.3ef4.e0b0 10f9.20fd.e7a0 RM204-TB1-9166 US 172.16.223.41 Registered
|
||||
# APCC9C.3EF1.0AE0 3 CW9164I-B cc9c.3ef1.0ae0 10f9.20fd.eda0 RM204-TB1-9164 US 172.16.223.40 Registered
|
||||
# AP687D.B45C.25EC 4 C9136I-B 687d.b45c.25ec 687d.b45f.c5f0 RM204-TB1-AP4 US 172.16.222.199 Registered
|
||||
# AP687D.B45C.2B24 4 C9136I-B 687d.b45c.2b24 687d.b460.04b0 RM204-TB1-AP5 US 172.16.222.201 Registered
|
||||
# APA453.0E7B.CF9C 2 C9120AXE-B a453.0e7b.cf9c d4ad.bda2.2ce0 RM204-TB1-AP2 US 172.16.222.176 Registered
|
||||
|
||||
|
||||
logger.info("test_config_tx_power_dual_6g_wpa3")
|
||||
# This needs to be here to disable and delete
|
||||
self.cs.wlan = '6G-wpa3'
|
||||
self.cs.wlanID = '1'
|
||||
self.cs.wlanSSID = '6G-wpa3'
|
||||
self.cs.tx_power = '1'
|
||||
self.cs.security_key = 'hello123'
|
||||
|
||||
self.cs.tag_policy = 'RM204-TB1-9166'
|
||||
self.cs.policy_profile = 'default-policy-profile'
|
||||
|
||||
# no_logging_console
|
||||
self.cs.no_logging_console()
|
||||
# line_console_0
|
||||
self.cs.line_console_0()
|
||||
# summary
|
||||
self.cs.show_ap_summary()
|
||||
|
||||
# Disable AP, apply settings, enable AP
|
||||
self.cs.show_ap_dot11_6gz_shutdown()
|
||||
self.cs.show_ap_dot11_5gz_shutdown()
|
||||
self.cs.show_ap_dot11_24gz_shutdown()
|
||||
|
||||
# disable_wlan
|
||||
self.cs.wlan_shutdown()
|
||||
# disable_network_6ghz
|
||||
self.cs.ap_dot11_6ghz_shutdown()
|
||||
# disable_network_5ghz
|
||||
self.cs.ap_dot11_5ghz_shutdown()
|
||||
# disable_network_24ghz
|
||||
self.cs.ap_dot11_24ghz_shutdown()
|
||||
# manual
|
||||
self.cs.ap_dot11_6ghz_radio_role_manual_client_serving()
|
||||
self.cs.ap_dot11_5ghz_radio_role_manual_client_serving()
|
||||
self.cs.ap_dot11_24ghz_radio_role_manual_client_serving()
|
||||
|
||||
# Configuration for 6g
|
||||
|
||||
# Configuration for 6g
|
||||
# txPower
|
||||
# TODO is this still needed
|
||||
self.cs.config_dot11_6ghz_tx_power()
|
||||
self.cs.bandwidth = '20'
|
||||
# bandwidth (to set to 20 if channel change does not support)
|
||||
self.cs.config_dot11_6ghz_channel_width()
|
||||
self.cs.channel = '1'
|
||||
# channel
|
||||
self.cs.config_dot11_6ghz_channel()
|
||||
self.cs.bandwidth = '40'
|
||||
# bandwidth
|
||||
self.cs.config_dot11_6ghz_channel_width()
|
||||
# show_wlan_summary
|
||||
self.cs.show_wlan_summary()
|
||||
|
||||
# delete_wlan
|
||||
# TODO (there were two in tx_power the logs)
|
||||
# need to check if wlan present
|
||||
# delete wlan
|
||||
self.cs.config_no_wlan()
|
||||
|
||||
# create_wlan_wpa3
|
||||
self.cs.config_wlan_wpa3()
|
||||
|
||||
# wireless_tag_policy
|
||||
self.cs.config_wireless_tag_policy_and_policy_profile()
|
||||
# enable_wlan
|
||||
self.cs.config_enable_wlan_send_no_shutdown()
|
||||
# enable_network_5ghz
|
||||
self.cs.config_no_ap_dot11_6ghz_shutdown()
|
||||
# enable_network_24ghz
|
||||
# self.cs.config_no_ap_dot11_5ghz_shutdown()
|
||||
# enable
|
||||
self.cs.config_ap_no_dot11_6ghz_shutdown()
|
||||
# config_ap_no_dot11_24ghz_shutdown
|
||||
# advanced
|
||||
self.cs.show_ap_dot11_6gz_summary()
|
||||
# show_wlan_summary
|
||||
self.cs.show_wlan_summary()
|
||||
|
||||
# TODO unit test for 6g wlan, 5g wlan, 2g wlan, and all three
|
||||
|
||||
def test_config_tx_power_6g_wpa3(self):
|
||||
# TODO : leave for now for reference
|
||||
|
||||
Reference in New Issue
Block a user