test_l3.py: Add toolbox functionality - #348
Conversation
3132a8b to
a634192
Compare
|
The toolbox arguments will need to be able to specify cx names, not just delete all cxs it finds. Can you make sure that works and add it to the example API? In the create step, allow configuring the cx names that will be created (so wlan0 would be a possibility, for instance). |
|
My comment had an error. wlan0 is not likely to be a cx name, but I do also want ability to specify station names that are created, and one option there is wlan0. |
Sure @greearb will enable this feasibility as well where user can specify the custom cross connection. |
Verified CLI: python test_l3.py --lfmgr 192.168.207.78 --toolbox --create_station --radio 'radio==wiphy1 stations==2 ssid==NETGEAR-2 ssid_pw==Password@123 security==wpa2' --sta_start_offset 2000 python test_l3.py --lfmgr 192.168.207.78 --toolbox --build_cxs --upstream_port 1.1.eth1 --stations 1.1.sta1000,1.1.sta10001 --endp_type lf_udp --side_b_min_bps=10000000 --tos BE python test_l3.py --lfmgr 192.168.207.78 --toolbox --stop_cx python test_l3.py --lfmgr 192.168.207.78 --toolbox --start_cx
Verified CLI: python test_l3.py --lfmgr 192.168.207.78 --toolbox --create_station --radio 'radio==wiphy1 stations==2 ssid==NETGEAR-2 ssid_pw==Password@123 security==wpa2' --sta_start_offset 2000 python test_l3.py --lfmgr 192.168.207.78 --toolbox --build_cxs --upstream_port 1.1.eth1 --stations 1.1.sta1000,1.1.sta10001 --endp_type lf_udp --side_b_min_bps=10000000 --tos BE python test_l3.py --lfmgr 192.168.207.78 --toolbox --stop_cx python test_l3.py --lfmgr 192.168.207.78 --toolbox --start_cx Signed-off-by: Tarun <tarunkumar.madabathula@candelatech.com>
Verified CLIs: python3 py-scripts/test_l3.py --lfmgr 192.168.244.45 --toolbox --create_station --radio "radio==wiphy0 stations==2 ssid==TestAP ssid_pw==12345678 security==wpa2" python3 py-scripts/test_l3.py --lfmgr 192.168.244.45 --toolbox --build_cxs --upstream_port 1.1.eth1 --ports 1.1.sta5000,1.1.sta5001 python3 py-scripts/test_l3.py --lfmgr 192.168.244.45 --toolbox --start_cx toolbox python3 py-scripts/test_l3.py --lfmgr 192.168.244.45 --toolbox --stop_cx wlan0 python3 py-scripts/test_l3.py --lfmgr 192.168.244.45 --toolbox --ports_down 1.1.sta5000,1.1.eth2 python3 py-scripts/test_l3.py --lfmgr 192.168.244.45 --toolbox --ports_up 1.1.sta5000,1.1.eth2 python3 py-scripts/test_l3.py --lfmgr 192.168.244.45 --toolbox --del_cx toolbox python3 py-scripts/test_l3.py --lfmgr 192.168.244.45 --toolbox --del_stations all Signed-off-by: Tarun <tarunkumar.madabathula@candelatech.com>
98c8dd6 to
7659fe0
Compare
Verified CLI: python3 test_l3.py --help_summary Signed-off-by: Tarun <tarunkumar.madabathula@candelatech.com>
|
@tarun-candela Please implement the suggestions requested by Ben on MM |
Verfied CLIs: python3 py-scripts/test_l3.py --lfmgr 192.168.244.45 --toolbox --create_station --radio "radio==wiphy0 stations==2 ssid==TestAP ssid_pw==12345678 security==wpa2" python3 py-scripts/test_l3.py --lfmgr 192.168.244.45 --toolbox --build_cxs --upstream_port 1.1.eth1 --ports 1.1.sta5000,1.1.sta5001 python3 py-scripts/test_l3.py --lfmgr 192.168.244.45 --toolbox --start_cx toolbox python3 py-scripts/test_l3.py --lfmgr 192.168.244.45 --toolbox --stop_cx wlan0 python3 py-scripts/test_l3.py --lfmgr 192.168.244.45 --toolbox --ports_down 1.1.sta5000,1.1.eth2 python3 py-scripts/test_l3.py --lfmgr 192.168.244.45 --toolbox --ports_up 1.1.sta5000,1.1.eth2 python3 py-scripts/test_l3.py --lfmgr 192.168.244.45 --toolbox --del_cx toolbox python3 py-scripts/test_l3.py --lfmgr 192.168.244.45 --toolbox --del_stations all Signed-off-by: Tarun <tarunkumar.madabathula@candelatech.com>
Description:
Verified CLI
1. Station Creation
python3 py-scripts/test_l3.py --lfmgr 192.168.244.45 --toolbox --create_station --radio "radio==wiphy0 stations==2 ssid==TestAP ssid_pw==12345678 security==wpa2"2. Layer-3 Cross-Connection Building
3. Layer-3 Cross-Connection Building with Custom Name
4. Cross-Connection Building with Ethernet Ports
5. Start Cross-Connections
6. Stop Cross-Connections
7. Set Ports Admin UP/DOWN
8. Delete Cross-Connections
9. Delete Wi-Fi Stations
10. Chained Workflow: Station Creation + CX Building
python3 py-scripts/test_l3.py --lfmgr 192.168.244.45 --toolbox --create_station --radio "radio==wiphy0 stations==2 ssid==TestAP ssid_pw==12345678 security==wpa2" --build_cxs --upstream_port 1.1.eth1 --cx_names test_flow11. Error and Edge-Case Validation
Verified invalid inputs and missing required arguments return the expected non-zero exit code (
1), including invalid radio, station count, ports, CX names, and missing--upstream_port.--toolboxscenarios.https://docs.google.com/document/d/1f4rBcs_BI9K718BRkEge8y27-lLS35sWt2HYqet4WsY/edit?usp=sharing