mirror of
https://github.com/Telecominfraproject/wlan-lanforge-scripts.git
synced 2025-11-02 03:37:55 +00:00
additions - works fully now to run low ping traffic
This commit is contained in:
@@ -111,12 +111,10 @@ class IPV4VariableTime(LFCliBase):
|
||||
curr_time = datetime.datetime.now()
|
||||
end_time = self.local_realm.parse_time(self.test_duration) + curr_time
|
||||
sleep_interval = self.local_realm.parse_time(self.test_duration) // 3
|
||||
while cur_time < end_time:
|
||||
time.sleep(sleep_interval.total_seconds())
|
||||
while cur_time < interval_time:
|
||||
cur_time = datetime.datetime.now()
|
||||
time.sleep(1)
|
||||
while curr_time < end_time:
|
||||
|
||||
time.sleep(sleep_interval.total_seconds())
|
||||
|
||||
new_cx_rx_values = self.__get_rx_values()
|
||||
if self.debug:
|
||||
print(old_cx_rx_values, new_cx_rx_values)
|
||||
@@ -189,10 +187,11 @@ Generic command layout:
|
||||
--b_min 1000
|
||||
--debug
|
||||
''')
|
||||
|
||||
required = parser.add_argument_group('required arguments')
|
||||
parser.add_argument('--a_min', help='--a_min bps rate minimum for side_a', default=256000)
|
||||
parser.add_argument('--b_min', help='--b_min bps rate minimum for side_b', default=256000)
|
||||
parser.add_argument('--test_duration', help='--test_duration sets the duration of the test', default="5m")
|
||||
parser.add_argument('--test_duration', help='--test_duration sets the duration of the test', default="2m")
|
||||
required.add_argument('--security', help='WiFi Security protocol: < open | wep | wpa | wpa2 | wpa3 >', required=True)
|
||||
|
||||
args = parser.parse_args()
|
||||
|
||||
@@ -201,7 +200,6 @@ Generic command layout:
|
||||
num_sta = int(args.num_stations)
|
||||
|
||||
station_list = LFUtils.portNameSeries(prefix_="sta", start_id_=0, end_id_=num_sta-1, padding_number_=10000, radio=args.radio)
|
||||
print(station_list)
|
||||
ip_var_test = IPV4VariableTime(host=args.mgr, port=args.mgr_port, number_template="00", sta_list=station_list,
|
||||
name_prefix="VT",
|
||||
upstream=args.upstream_port,
|
||||
|
||||
Reference in New Issue
Block a user