mirror of
https://github.com/Telecominfraproject/wlan-lanforge-scripts.git
synced 2025-11-02 03:37:55 +00:00
Fixed missing self.debug for create method
This commit is contained in:
@@ -101,7 +101,7 @@ class GenTest(LFCliBase):
|
||||
temp_sta_list = []
|
||||
for station in range(len(self.sta_list)):
|
||||
temp_sta_list.append(str(self.resource) + "." + self.sta_list[station])
|
||||
self.station_profile.create(resource=1, radio="wiphy0", sta_names_=self.sta_list, debug=False)
|
||||
self.station_profile.create(resource=1, radio="wiphy0", sta_names_=self.sta_list, debug=self.debug)
|
||||
self.cx_profile.create(ports=temp_sta_list, sleep_time=.5)
|
||||
self._pass("PASS: Station build finished")
|
||||
|
||||
|
||||
@@ -60,13 +60,14 @@ class IPV4VariableTime(LFCliBase):
|
||||
|
||||
def __get_rx_values(self):
|
||||
cx_list = self.json_get("endp?fields=name,rx+bytes", debug_=self.debug)
|
||||
# print(self.cx_profile.created_cx.values())
|
||||
#print("==============\n", cx_list, "\n==============")
|
||||
cx_rx_map = {}
|
||||
for cx_name in cx_list['endpoint']:
|
||||
if cx_name != 'uri' and cx_name != 'handler':
|
||||
for item, value in cx_name.items():
|
||||
for value_name, value_rx in value.items():
|
||||
if value_name == 'rx bytes':
|
||||
if value_name == 'rx bytes' and item in self.cx_profile.created_cx.values():
|
||||
cx_rx_map[item] = value_rx
|
||||
return cx_rx_map
|
||||
|
||||
@@ -88,6 +89,7 @@ class IPV4VariableTime(LFCliBase):
|
||||
return False
|
||||
|
||||
def start(self, print_pass=False, print_fail=False):
|
||||
LFUtils.wait_until_ports_disappear
|
||||
self.station_profile.admin_up(self.resource)
|
||||
temp_stas = self.sta_list.copy()
|
||||
temp_stas.append("eth1")
|
||||
@@ -159,7 +161,7 @@ def main():
|
||||
password="jedway-wpa2-x2048-4-4",
|
||||
resource=1,
|
||||
security="wpa2", test_duration="5m",
|
||||
side_a_min_rate=256000, side_b_min_rate=256000, _debug_on=False)
|
||||
side_a_min_rate=256000, side_b_min_rate=256000, _debug_on=True)
|
||||
|
||||
ip_var_test.cleanup(station_list)
|
||||
ip_var_test.build()
|
||||
|
||||
@@ -52,7 +52,7 @@ class IPv6Test(LFCliBase):
|
||||
self.station_profile.set_command_flag("add_sta", "create_admin_down", 1)
|
||||
self.station_profile.set_command_param("set_port", "report_timer", 1500)
|
||||
self.station_profile.set_command_flag("set_port", "rpt_timer", 1)
|
||||
self.station_profile.create(resource=1, radio="wiphy0", sta_names_=self.sta_list, debug=False)
|
||||
self.station_profile.create(resource=1, radio="wiphy0", sta_names_=self.sta_list, debug=self.debug)
|
||||
self._pass("PASS: Station build finished")
|
||||
|
||||
def start(self, sta_list, print_pass, print_fail):
|
||||
|
||||
@@ -145,7 +145,7 @@ class IPV6VariableTime(LFCliBase):
|
||||
temp_sta_list = []
|
||||
for station in range(len(self.sta_list)):
|
||||
temp_sta_list.append(str(self.resource) + "." + self.sta_list[station])
|
||||
self.station_profile.create(resource=1, radio="wiphy0", sta_names_=self.sta_list, debug=False)
|
||||
self.station_profile.create(resource=1, radio="wiphy0", sta_names_=self.sta_list, debug=self.debug)
|
||||
self.cx_profile.create(endp_type="lf_udp6", side_a=temp_sta_list, side_b="1.eth1", sleep_time=.5)
|
||||
self._pass("PASS: Station build finished")
|
||||
|
||||
|
||||
@@ -49,7 +49,7 @@ class IPv4Test(LFCliBase):
|
||||
self.station_profile.set_command_flag("add_sta", "create_admin_down", 1)
|
||||
self.station_profile.set_command_param("set_port", "report_timer", 1500)
|
||||
self.station_profile.set_command_flag("set_port", "rpt_timer", 1)
|
||||
self.station_profile.create(resource=1, radio="wiphy0", sta_names_=self.sta_list, debug=False)
|
||||
self.station_profile.create(resource=1, radio="wiphy0", sta_names_=self.sta_list, debug=self.debug)
|
||||
self._pass("PASS: Station build finished")
|
||||
|
||||
def start(self, sta_list, print_pass, print_fail):
|
||||
|
||||
@@ -49,7 +49,7 @@ class IPv4Test(LFCliBase):
|
||||
self.station_profile.set_command_flag("add_sta", "create_admin_down", 1)
|
||||
self.station_profile.set_command_param("set_port", "report_timer", 1500)
|
||||
self.station_profile.set_command_flag("set_port", "rpt_timer", 1)
|
||||
self.station_profile.create(resource=1, radio="wiphy0", sta_names_=self.sta_list, debug=False)
|
||||
self.station_profile.create(resource=1, radio="wiphy0", sta_names_=self.sta_list, debug=self.debug)
|
||||
self._pass("PASS: Station build finished")
|
||||
|
||||
def start(self, sta_list, print_pass, print_fail):
|
||||
|
||||
@@ -49,7 +49,7 @@ class IPv4Test(LFCliBase):
|
||||
self.station_profile.set_command_flag("add_sta", "create_admin_down", 1)
|
||||
self.station_profile.set_command_param("set_port", "report_timer", 1500)
|
||||
self.station_profile.set_command_flag("set_port", "rpt_timer", 1)
|
||||
self.station_profile.create(resource=1, radio="wiphy0", sta_names_=self.sta_list, debug=False)
|
||||
self.station_profile.create(resource=1, radio="wiphy0", sta_names_=self.sta_list, debug=self.debug)
|
||||
self._pass("PASS: Station build finished")
|
||||
|
||||
def start(self, sta_list, print_pass, print_fail):
|
||||
|
||||
@@ -49,7 +49,7 @@ class IPv4Test(LFCliBase):
|
||||
self.station_profile.set_command_flag("add_sta", "create_admin_down", 1)
|
||||
self.station_profile.set_command_param("set_port", "report_timer", 1500)
|
||||
self.station_profile.set_command_flag("set_port", "rpt_timer", 1)
|
||||
self.station_profile.create(resource=1, radio="wiphy0", sta_names_=self.sta_list, debug=False)
|
||||
self.station_profile.create(resource=1, radio="wiphy0", sta_names_=self.sta_list, debug=self.debug)
|
||||
self._pass("PASS: Station build finished")
|
||||
|
||||
def start(self, sta_list, print_pass, print_fail):
|
||||
|
||||
Reference in New Issue
Block a user