mirror of
				https://github.com/Telecominfraproject/wlan-lanforge-scripts.git
				synced 2025-11-04 04:38:02 +00:00 
			
		
		
		
	Working on client_connectivity_test
Signed-off-by: jitendracandela <jitendra.kushavah@candelatech.com>
This commit is contained in:
		@@ -36,13 +36,20 @@ class lf_tests(lf_libs):
 | 
				
			|||||||
    """
 | 
					    """
 | 
				
			||||||
    lf_tools_obj = None
 | 
					    lf_tools_obj = None
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    def __init__(self, lf_data={}, dut_data={}, log_level=logging.DEBUG):
 | 
					    def __init__(self, lf_data={}, dut_data={}, log_level=logging.DEBUG, run_lf=False, influx_params=None):
 | 
				
			||||||
        super().__init__(lf_data, dut_data, log_level)
 | 
					        super().__init__(lf_data, dut_data, log_level)
 | 
				
			||||||
 | 
					        # Work is going on
 | 
				
			||||||
 | 
					        self.staConnect = StaConnect2(self.manager_ip, self.manager_http_port, debug_=self.debug)
 | 
				
			||||||
 | 
					        self.upstream_port = self.uplink_nat_ports[0].split(".")[2]
 | 
				
			||||||
 | 
					        self.upstream_resource = self.uplink_nat_ports[0].split(".")[1]
 | 
				
			||||||
 | 
					        if self.run_lf:
 | 
				
			||||||
 | 
					            self.ssid_data =
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        pass
 | 
					        pass
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    def client_connectivity_test(self, ssid="[BLANK]", passkey="[BLANK]", security="open", extra_securities=[],
 | 
					    def client_connectivity_test(self, ssid="[BLANK]", passkey="[BLANK]", security="open", extra_securities=[],
 | 
				
			||||||
                                 station_name=[], mode="BRIDGE", vlan_id=1, band="twog", ssid_channel=None):
 | 
					                                 station_name=[], mode="BRIDGE", vlan_id=1, band="twog", ssid_channel=None):
 | 
				
			||||||
        self.staConnect = StaConnect2(self.manager_ip, self.manager_http_port, debug_=self.debug)
 | 
					        # self.staConnect = StaConnect2(self.manager_ip, self.manager_http_port, debug_=self.debug)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        self.staConnect.sta_mode = 0
 | 
					        self.staConnect.sta_mode = 0
 | 
				
			||||||
        self.staConnect.upstream_resource = self.upstream_resource
 | 
					        self.staConnect.upstream_resource = self.upstream_resource
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user