mirror of
				https://github.com/Telecominfraproject/wlan-lanforge-scripts.git
				synced 2025-11-03 20:27:54 +00:00 
			
		
		
		
	lf_check.py added user and password as a variable
Signed-off-by: Chuck SmileyRekiere <chuck.smileyrekiere@candelatech.com>
This commit is contained in:
		@@ -431,7 +431,7 @@
 | 
				
			|||||||
                "args":"",
 | 
					                "args":"",
 | 
				
			||||||
                "args_list":[
 | 
					                "args_list":[
 | 
				
			||||||
                    " --lfmgr LF_MGR_IP --port LF_MGR_PORT --dut_name DUT_NAME",
 | 
					                    " --lfmgr LF_MGR_IP --port LF_MGR_PORT --dut_name DUT_NAME",
 | 
				
			||||||
                    " --ssid 'ssid_idx=0 ssid=SSID_5G_USED security=SECURITY_5G_USED password=SSID_5G_PW_USED bssid=DUT_BSSID_5G'",
 | 
					                    " --ssid 'ssid_idx=0 ssid=SSID_2G_USED security=SECURITY_2G_USED password=SSID_2G_PW_USED bssid=DUT_BSSID_2G'",
 | 
				
			||||||
                    " --ssid 'ssid_idx=1 ssid=SSID_5G_USED security=SECURITY_5G_USED password=SSID_5G_PW_USED bssid=DUT_BSSID_5G'",
 | 
					                    " --ssid 'ssid_idx=1 ssid=SSID_5G_USED security=SECURITY_5G_USED password=SSID_5G_PW_USED bssid=DUT_BSSID_5G'",
 | 
				
			||||||
                    " --sw_version DUT_SW --hw_version DUT_HW --serial_num DUT_SERIAL --model_num DUT_NAME"
 | 
					                    " --sw_version DUT_SW --hw_version DUT_HW --serial_num DUT_SERIAL --model_num DUT_NAME"
 | 
				
			||||||
                ]},
 | 
					                ]},
 | 
				
			||||||
@@ -443,7 +443,7 @@
 | 
				
			|||||||
                "args_list":[
 | 
					                "args_list":[
 | 
				
			||||||
                    " --lfmgr LF_MGR_IP --port LF_MGR_PORT --delete_scenario",
 | 
					                    " --lfmgr LF_MGR_IP --port LF_MGR_PORT --delete_scenario",
 | 
				
			||||||
                    " --create_scenario ap-scenario ",
 | 
					                    " --create_scenario ap-scenario ",
 | 
				
			||||||
                    " --raw_line \"profile_link 1.1 STA-AC 64 'DUT: DUT_NAME Radio-1' NA wiphy1,AUTO -1 NA\" ",
 | 
					                    " --raw_line \"profile_link 1.1 STA-AC 4 'DUT: DUT_NAME Radio-1' NA wiphy1,AUTO -1 NA\" ",
 | 
				
			||||||
                    " --raw_line \"profile_link 1.1 STA-AC 1 'DUT: DUT_NAME Radio-1' NA wiphy4,AUTO -1 NA\" ",
 | 
					                    " --raw_line \"profile_link 1.1 STA-AC 1 'DUT: DUT_NAME Radio-1' NA wiphy4,AUTO -1 NA\" ",
 | 
				
			||||||
                    " --raw_line \"profile_link 1.1 upstream-dhcp 1 NA NA UPSTREAM_PORT,AUTO -1 NA \" "
 | 
					                    " --raw_line \"profile_link 1.1 upstream-dhcp 1 NA NA UPSTREAM_PORT,AUTO -1 NA \" "
 | 
				
			||||||
                ]
 | 
					                ]
 | 
				
			||||||
@@ -457,8 +457,8 @@
 | 
				
			|||||||
                "args_list":[
 | 
					                "args_list":[
 | 
				
			||||||
                    " --mgr LF_MGR_IP --port LF_MGR_PORT --lf_user lanforge --lf_password lanforge",
 | 
					                    " --mgr LF_MGR_IP --port LF_MGR_PORT --lf_user lanforge --lf_password lanforge",
 | 
				
			||||||
                    " --instance_name ap-auto-instance --config_name test_con --upstream UPSTREAM_PORT",
 | 
					                    " --instance_name ap-auto-instance --config_name test_con --upstream UPSTREAM_PORT",
 | 
				
			||||||
                    " --dut5_0 'DUT_NAME lanforge DUT_BSSID_5G (1)' --dut2_0 'DUT_NAME lanforge DUT_BSSID_5G (1)'",
 | 
					                    " --dut5_0 'DUT_NAME lanforge DUT_BSSID_5G (1)' --dut2_0 'DUT_NAME lanforge DUT_BSSID_2G (1)'",
 | 
				
			||||||
                    " --max_stations_2 32 --max_stations_5 32 --max_stations_dual 100 --radio2 1.1.wiphy1",
 | 
					                    " --max_stations_2 1 --max_stations_5 4 --max_stations_dual 1 --radio2 1.1.wiphy1",
 | 
				
			||||||
                    " --radio5 1.1.wiphy2 --set 'Basic Client Connectivity' 1",
 | 
					                    " --radio5 1.1.wiphy2 --set 'Basic Client Connectivity' 1",
 | 
				
			||||||
                    " --set 'Multi Band Performance' 0 --set 'Stability' 0 --set 'Multi-Station Throughput vs Pkt Size'  0,",
 | 
					                    " --set 'Multi Band Performance' 0 --set 'Stability' 0 --set 'Multi-Station Throughput vs Pkt Size'  0,",
 | 
				
			||||||
                    " --set 'Throughput vs Pkt Size' 0 --set 'Capacity' 0 --set 'Band-Steering' 0 --set 'Skip 2.4 Ghz Tests' 1",
 | 
					                    " --set 'Throughput vs Pkt Size' 0 --set 'Capacity' 0 --set 'Band-Steering' 0 --set 'Skip 2.4 Ghz Tests' 1",
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -925,14 +925,16 @@ http://{blog}:2368""".format(blog=self.blog_host_ghost)
 | 
				
			|||||||
                    if 'TEST_IP' in self.test_dict[test]['args']:
 | 
					                    if 'TEST_IP' in self.test_dict[test]['args']:
 | 
				
			||||||
                        self.test_dict[test]['args'] = self.test_dict[test]['args'].replace('TEST_IP', self.test_ip)
 | 
					                        self.test_dict[test]['args'] = self.test_dict[test]['args'].replace('TEST_IP', self.test_ip)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					                    if 'LF_MGR_USER' in self.test_dict[test]['args']:
 | 
				
			||||||
 | 
					                        self.test_dict[test]['args'] = self.test_dict[test]['args'].replace('LF_MGR_USER', self.lf_mgr_user)
 | 
				
			||||||
 | 
					                    if 'LF_MGR_PASS' in self.test_dict[test]['args']:
 | 
				
			||||||
 | 
					                        self.test_dict[test]['args'] = self.test_dict[test]['args'].replace('LF_MGR_PASS', self.lf_mgr_pass)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
                    if 'LF_MGR_IP' in self.test_dict[test]['args']:
 | 
					                    if 'LF_MGR_IP' in self.test_dict[test]['args']:
 | 
				
			||||||
                        self.test_dict[test]['args'] = self.test_dict[test]['args'].replace('LF_MGR_IP', self.lf_mgr_ip)
 | 
					                        self.test_dict[test]['args'] = self.test_dict[test]['args'].replace('LF_MGR_IP', self.lf_mgr_ip)
 | 
				
			||||||
                    if 'LF_MGR_PORT' in self.test_dict[test]['args']:
 | 
					                    if 'LF_MGR_PORT' in self.test_dict[test]['args']:
 | 
				
			||||||
                        self.test_dict[test]['args'] = self.test_dict[test]['args'].replace('LF_MGR_PORT', self.lf_mgr_port)
 | 
					                        self.test_dict[test]['args'] = self.test_dict[test]['args'].replace('LF_MGR_PORT', self.lf_mgr_port)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
                    if 'RADIO_USED' in self.test_dict[test]['args']:
 | 
					 | 
				
			||||||
                        self.test_dict[test]['args'] = self.test_dict[test]['args'].replace('RADIO_USED', self.radio_lf)
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
                    # DUT Configuration
 | 
					                    # DUT Configuration
 | 
				
			||||||
                    if 'DUT_NAME' in self.test_dict[test]['args']:
 | 
					                    if 'DUT_NAME' in self.test_dict[test]['args']:
 | 
				
			||||||
                        self.test_dict[test]['args'] = self.test_dict[test]['args'].replace('DUT_NAME', self.dut_name)
 | 
					                        self.test_dict[test]['args'] = self.test_dict[test]['args'].replace('DUT_NAME', self.dut_name)
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user