Skip to content

Conversation

litincandela
Copy link
Collaborator

No description provided.

@goyalsaurabh06 goyalsaurabh06 requested a review from a-gavin July 23, 2025 11:55
if "devices" in interop_response.keys():
interop_devices = interop_response['devices']
# Extract usernames of devices that match the current eid
if(len([v['user-name'] for d in interop_devices for k, v in d.items() if v.get('resource-id') == b['eid']]) == 0):
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Linting will catch this later, but best not to introduce from the start. Conditionals in Python should not have parentheses around sections that don't require it. Spacing will also be flagged too.

For conditionals, see example:

# Good
if my_var == 1:
    pass

# Good, the `and` requires parentheses
if (my_var % 2 == 0 and my_var != 0) and my_var < 10:
    pass 

# Redundant parentheses
if (my_var == 1):
    pass

# Redundant parentheses
if (my_var % 2 == 0 and my_var != 0):
    pass 

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Got it,
Sure @a-gavin, will remove the parentheses in the coming commits.

for i in range(len(download_throughput)):
individual_df_data.extend([download_throughput[i], upload_throughput[i], drop_a_per[i], drop_b_per[i], int(signal_list[i]), link_speed_list[i], rx_rate_list[i]])
individual_df_data.extend([download_throughput[i], upload_throughput[i], drop_a_per[i], drop_b_per[i], temp_avg_rtt[i][0], int(signal_list[i]), link_speed_list[i], rx_rate_list[i]])
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fine as is, but any more complexity here probably warrants a dedicated test class to pass data around more succinctly.

…redundant URL formatting in Clear Wi-Fi Profiles API call

Signed-off-by: litincandela <litin.ommi@candelatech.com>
Signed-off-by: litincandela <litin.ommi@candelatech.com>
…all CSV data.

VERIFIED CLI: python3 lf_interop_throughput.py --mgr 192.168.204.75 \
					       --mgr_port 8080 \
					       --upstream_port eth1 \
					       --test_duration 1m \
					       --download 10000000 \
                                               --traffic_type lf_udp

Signed-off-by: litincandela <litin.ommi@candelatech.com>
…and the report.

VERIFIED CLI: python3 lf_interop_throughput.py --mgr 192.168.204.75\
					       --mgr_port 8080\
					       --upstream_port eth1\
					       --test_duration 1m\
                                               --download 10000000\
					       --traffic_type lf_udp

- Took Average RTT data from Layer 3 Tab.

Signed-off-by: litincandela <litin.ommi@candelatech.com>
…o 1 second for WebGUI.

VERIFIED CLI: python3 lf_interop_throughput.py --mgr 192.168.204.74 \
                                               --mgr_port 8080 \
                                               --upstream_port eth0 \
                                               --test_duration 30s \
					       --traffic_type lf_udp \
                                               --ssid NETGEAR_2G_wpa2 \
                                               --passwd Password@123 \
					       --security wpa2 \
					       --device_list 1.15,1.400 \
					       --download 10000000 \
					       --do_webgui

Signed-off-by: litincandela <litin.ommi@candelatech.com>
…teroperability test.

VERIFIED CLI: python3 lf_interop_throughput.py --mgr 192.168.204.75\
					       --mgr_port 8080\
                                               --upstream_port eth0\
                                               --test_duration 1m\
					       --traffic_type lf_udp\
                                               --ssid NETGEAR_2G_wpa2\
                                               --passwd Password@123\
                                               --security wpa2\
					       --do_interopability\
					       --download 10000000\
					       --interopability_config

- Added table for pass/fail to check whether device connected to the specific SSID.
- Skipping the devices failed to connect to the specific SSID to run the cx.

Signed-off-by: litincandela <litin.ommi@candelatech.com>
…report.

VERIFIED CLI: python3 lf_interop_throughput.py --mgr 192.168.204.75\
					       --mgr_port 8080\
					       --upstream_port eth1\
                                               --test_duration 1m\
					       --download 10000000\
                                               --traffic_type lf_udp\
                                               --dowebgui\
					       --get_live_view\
					       --total_floors

Signed-off-by: litincandela <litin.ommi@candelatech.com>
…as Mbps instead of bytes

VERIFIED CLI: python3 lf_interop_throughput.py --mgr 192.168.204.75 \
						 --mgr_port 8080 \
						 --upstream_port eth1 \
						 --test_duration 1m \
						 --download 10000000 \
						 --traffic_type lf_udp \
						 --tput_mbps

Signed-off-by: litincandela <litin.ommi@candelatech.com>
… CSV and the report.

VERIFIED CLI: python3 lf_interop_throughput.py --mgr 192.168.204.75 \
						--mgr_port 8080 \
						--upstream_port eth0 \
						--test_duration 1m \
						--traffic_type lf_udp \
						--ssid NETGEAR_2G_wpa2 \
						--passwd Password@123 \
						--security wpa2 \
						--download 10000000

- Made some reporting changes in the report.

Signed-off-by: litincandela <litin.ommi@candelatech.com>
VERIFIED CLI: python3 lf_interop_throughput.py --mgr 192.168.204.75\
						--mgr_port 8080 \
						--upstream_port eth0 \
						--test_duration 1m \
						--traffic_type lf_udp \
						--ssid NETGEAR_2G_wpa2 \
						--passwd Password@123 \
						--security wpa2 \
						--download 10000000

Signed-off-by: litincandela <litin.ommi@candelatech.com>
…al loops

VERIFIED CLI: lf_interop_throughput.py python3 lf_interop_throughput.py --mgr 192.168.204.75\
									 --mgr_port 8080\
									 --upstream_port eth0\
									 --test_duration 1m\
									 --traffic_type lf_udp\
									 --ssid NETGEAR_2G_wpa2\
									 --passwd Password@123\
									 --security wpa2\
									 --download 10000000

Signed-off-by: litincandela <litin.ommi@candelatech.com>
@litincandela litincandela force-pushed the throughput_interoperability_testhouse_script branch from d6398a7 to 0db0272 Compare August 5, 2025 06:44
Copy link
Collaborator

@a-gavin a-gavin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for fixing items I commented on.

@a-gavin a-gavin merged commit 213fa1f into greearb:master Aug 7, 2025
2 checks passed
@litincandela
Copy link
Collaborator Author

Thanks for reviewing @a-gavin .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants