From 11f27c0af364f64784f4a81d5632001c1b92fa7b Mon Sep 17 00:00:00 2001 From: litincandela Date: Wed, 21 Jan 2026 23:20:52 +0530 Subject: [PATCH 1/2] lf_ftp.py: fixed issue while running ftp in mixed traffic test VERIFIED CLI: python3 lf_mixed_traffic.py --mgr 192.168.207.78 / --upstream_port eth1 / --mixed_traffic_loop 1 / --real / --use_default_config / --pre_cleanup / --parallel / --test_duration 1m / --target www.google.com / --ping_interval 5 / --side_a_min 0 / --side_b_min 10000000 / --traffic_type lf_tcp / --tos VO,VI,BE,BK / --ftp_file_sizes 5MB / --direction Download / --http_file_size 5MB / --mc_tos VO / --side_b_min_bps 10000000 / --tests 1 2 3 4 5 Signed-off-by: litincandela --- py-scripts/lf_ftp.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/py-scripts/lf_ftp.py b/py-scripts/lf_ftp.py index 0ad7f98bc..e9e8b7911 100755 --- a/py-scripts/lf_ftp.py +++ b/py-scripts/lf_ftp.py @@ -314,8 +314,9 @@ def __init__(self, lfclient_host="localhost", lfclient_port=8080, sta_prefix="st self.coordinate = coordinate self.rotation = rotation self.rotation_enabled = False - self.coordinate_list = coordinate.split(',') - self.rotation_list = rotation.split(',') + if self.robot_test: + self.coordinate_list = coordinate.split(',') + self.rotation_list = rotation.split(',') self.current_coordinate = "" self.current_angle = "" self.robot_data = {} From 949f2026e0ba9dab3e8ad212ca059b67c0030296 Mon Sep 17 00:00:00 2001 From: litincandela Date: Wed, 21 Jan 2026 23:44:08 +0530 Subject: [PATCH 2/2] lf_ftp.py: Added stopping of all cx's when robot is charging VERIFIED CLI: python3 lf_ftp.py --ssid Netgear-5g / --passwd sharedsecret / --file_sizes 10MB / --mgr 192.168.207.78 / --traffic_duration 10m / --security wpa2 / --directions Download / --clients_type Real / --ap_name Netgear / --bands 5G / --upstream_port eth1 / --robot_test / --robot_ip 192.168.200.169 / --coordinate 3,4 Signed-off-by: litincandela Signed-off-by: litincandela --- py-scripts/lf_ftp.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/py-scripts/lf_ftp.py b/py-scripts/lf_ftp.py index e9e8b7911..38fe755e8 100755 --- a/py-scripts/lf_ftp.py +++ b/py-scripts/lf_ftp.py @@ -1064,7 +1064,7 @@ def monitor_for_runtime_csv(self): if (datetime.now() - monitor_charge_time).total_seconds() >= 300: pause_start = datetime.now() # Wait for the robot to charge. Returns whether we paused and whether user aborted. - pause, test_stopped_by_user = self.robot_obj.wait_for_battery() + pause, test_stopped_by_user = self.robot_obj.wait_for_battery(stop=self.stop) if test_stopped_by_user: break if pause: