lf_check.py : if the radio dictionary is empty to not error.

ct_us_003_tests.json updated for ASUS AP
ct_003_AX88U_dut.json : added the ASUS AP configuration

Signed-off-by: Chuck SmileyRekiere <chuck.smileyrekiere@candelatech.com>
This commit is contained in:
Chuck SmileyRekiere
2021-09-24 15:09:15 -06:00
parent a6c6055fa2
commit d24ff054f7
3 changed files with 31 additions and 4 deletions

View File

@@ -0,0 +1,26 @@
{
"ct_AX88U_dut":{
"Notes":[
"This json file is used as an input to the ./lf_check.py file",
"The variables that are all capitalized below are replaced with configuration",
"from the json file. so LF_MGR_IP in the test below is replaced by the json lf_mgr_ip",
"The replacement is loosely coupled so the upper and lower case convention is used",
"to identify replaced strings in the lf_check.py code.",
"The dut related configuration is contained in this file"
]
},
"test_dut":{
"dut_set_name": "DUT_NAME ASUSRT-AX88U",
"dut_name": "ASUSRT-AX88U",
"dut_bssid_2g": "d4:5d:64:a0:7f:78",
"dut_bssid_5g": "d4:5d:64:a0:7f:7c",
"dut_sw": "3.0.0.4.386_44266",
"ssid_5g_used": "asus11ax-5",
"ssid_5g_pw_used": "hello123",
"security_5g_used": "wpa2",
"ssid_2g_used": "asus11ax-2",
"ssid_2g_pw_used": "hello123",
"security_2g_used": "wpa2"
}
}

View File

@@ -17,7 +17,7 @@
"args": "",
"args_list": [
" --mgr LF_MGR_IP",
" --resource 3",
" --resource 1",
" --ssid SSID_5G_USED",
" --password SSID_5G_PW_USED",
" --security wpa2",

View File

@@ -760,9 +760,10 @@ NOTE: Diagrams are links in dashboard""".format(ip_qa=ip,qa_url=qa_url)
print(self.test_dict)
# loop through radios (For future functionality based on radio)
for radio in self.radio_dict:
# This has been changed to reflect the Radio configuriaton of LANforge, for now print
print("rig json config: RADIO: {radio} DRIVER: {driver} CAPABILITIES {cap} MAX_STA {max_sta} MAX_VAP {max_vap} MAX_VIFS {max_vif}".format(
if self.radio_dict:
for radio in self.radio_dict:
# This has been changed to reflect the Radio configuriaton of LANforge, for now print
print("rig json config: RADIO: {radio} DRIVER: {driver} CAPABILITIES {cap} MAX_STA {max_sta} MAX_VAP {max_vap} MAX_VIFS {max_vif}".format(
radio=self.radio_dict[radio]['RADIO'],driver=self.radio_dict[radio]['DRIVER'],cap=self.radio_dict[radio]['CAPABILITIES'],
max_sta=self.radio_dict[radio]['MAX_STA'],max_vap=self.radio_dict[radio]['MAX_VAP'],max_vif=self.radio_dict[radio]['MAX_VIFS']))