Commit Graph

1121 Commits

Author SHA1 Message Date
Matthew Stidham
b54e12e623 create_wanlink: Improve logic, if X is not None is non-pythonic and can create major problems. if X is safer
Signed-off-by: Matthew Stidham <stidmatt@gmail.com>
2022-07-12 15:45:33 +05:30
Matthew Stidham
476b019f0a create_wanlink: Dead code removal
Signed-off-by: Matthew Stidham <stidmatt@gmail.com>
2022-07-12 15:45:33 +05:30
Matthew Stidham
3a24c0f00d gen_cxprofile: using if not None can open traps which will spring at us randomly. Improve logic
Signed-off-by: Matthew Stidham <stidmatt@gmail.com>
2022-07-12 15:45:33 +05:30
Matthew Stidham
89a1656e4a Revert "Revert "realm.Realm: Move get_events and find_new_events methods from scenario.py to realm""
This reverts commit 67fe51cebd5403e8240d3490b7539b1e41dd212a.
2022-07-12 15:45:33 +05:30
Matthew Stidham
b6cd3113b0 realm: Update wait_until_ports_appear method to pass timeout
Signed-off-by: Matthew Stidham <stidmatt@gmail.com>
2022-07-12 15:45:33 +05:30
Matthew Stidham
1593da85a5 LFUtils: add sec_elapsed and timeout to wait_until_ports_appear
Signed-off-by: Matthew Stidham <stidmatt@gmail.com>
2022-07-12 15:45:33 +05:30
Matthew Stidham
44684df155 Revert "realm.Realm: Move get_events and find_new_events methods from scenario.py to realm"
Breaks things
This reverts commit 3cd8db24e2692ecdf11f61991b7975f0cc270713.
2022-07-12 15:45:32 +05:30
Matthew Stidham
4de51da60c station_profile.create: rename my_sta_names to my_sta_eids
Add in better debug for when stations do not appear properly
Explicit PortNameSeries arguments

Signed-off-by: Matthew Stidham <stidmatt@gmail.com>
2022-07-12 15:45:32 +05:30
Matthew Stidham
e29a86d7f4 realm.Realm: Move get_events and find_new_events methods from scenario.py to realm
Signed-off-by: Matthew Stidham <stidmatt@gmail.com>
2022-07-12 15:45:32 +05:30
Matthew Stidham
e639ecf48f Revert "realm.wait_for_ip: Simple is better than complex. Return True inside the while loop when the passing condition is met so we can remove three redundant variables"
This reverts commit 915292ca6238a258f969f3b2c037f12f06143324.
2022-07-12 15:45:32 +05:30
Matthew Stidham
d4c335c357 Revert "Realm.wait_for_ip: We only need to checik that stas_without_ips and stas_without_ip6s are equal to zero once, simplify code further"
This reverts commit ec74b97bae4dce3eaf1b856d1e9bd7d7d271c42d.
2022-07-12 15:45:32 +05:30
Matthew Stidham
ec7fcf1ec4 Realm.wait_for_ip: We only need to checik that stas_without_ips and stas_without_ip6s are equal to zero once, simplify code further
Signed-off-by: Matthew Stidham <stidmatt@gmail.com>
2022-07-12 15:45:32 +05:30
Matthew Stidham
f149a3d461 LFUtils.wait_until_ports_admin_up: return True or false depending on if the
test is successful or not

Signed-off-by: Matthew Stidham <stidmatt@gmail.com>
2022-07-12 15:45:32 +05:30
Matthew Stidham
63a9074f76 realm.wait_for_ip: Simple is better than complex. Return True inside the while loop when the passing condition is met so we can remove three redundant variables
Signed-off-by: Matthew Stidham <stidmatt@gmail.com>
2022-07-12 15:45:32 +05:30
Ben Greear
8446d8fc1b realm:wait_for_ip: re-write logic for correctness and debugging.
Check ipv6 and ipv4 independently of each other.

Auto-timeout check is moved to top of the method.

Improve debugging output.

Fix logic that attempted to print out all ports when
there is failure to find IPs for at least one of the ports.

Signed-off-by: Ben Greear <greearb@candelatech.com>
2022-07-12 15:45:32 +05:30
Matthew Stidham
a8bd985119 LFUtils.wait_until_ports_disappear: Add timeout with default set to 360 seconds
Signed-off-by: Matthew Stidham <stidmatt@gmail.com>
2022-07-12 15:45:32 +05:30
Matthew Stidham
62ff764e13 LFUtils.wait_until_ports_admin_down: add timeout, defaulted to 360 seconds
Signed-off-by: Matthew Stidham <stidmatt@gmail.com>
2022-07-12 15:45:32 +05:30
Matthew Stidham
25ef58262b realm.Realm.wait_for_ip: Improve debug output so that when a port is missing IP it will print out the name of the port
Signed-off-by: Matthew Stidham <stidmatt@gmail.com>
2022-07-12 15:45:32 +05:30
Matthew Stidham
037210c049 LFUtils: remove unused variables
Signed-off-by: Matthew Stidham <stidmatt@gmail.com>
2022-07-12 15:45:32 +05:30
Matthew Stidham
2d8e5411a2 LFUtils: Fix docstrings so they have all arguments
Signed-off-by: Matthew Stidham <stidmatt@gmail.com>
2022-07-12 15:45:32 +05:30
Matthew Stidham
5250be3c84 LFUtils.wait_until_ports_disappear: check for port statuses once per second
Signed-off-by: Matthew Stidham <stidmatt@gmail.com>
2022-07-12 15:45:24 +05:30
Matthew Stidham
0f54243be8 LFUtils: Cleanup whitespace
Signed-off-by: Matthew Stidham <stidmatt@gmail.com>
2022-07-12 15:45:24 +05:30
Ben Greear
cd6e6b18b2 lfutils: let wait_until_ports_admin_up handle multiple resources.
Default to treat station list as list of EIDS, and use it's
shelf/resource info instead of using resource 1 by default.
Caller may still use resource_id=X if they wish too, and it
will work as it did previously.

Add loop timeout (default is 300 tries with 1-sec sleep, so 5+
minutes).  This keeps the method from spinning forever if port
cannot come up.

Signed-off-by: Ben Greear <greearb@candelatech.com>
2022-07-12 15:45:17 +05:30
Chuck SmileyRekiere
96e85056a6 station_profile.py removed ERROR for stations list being empty when cleaning
up, it is informational.

Signed-off-by: Chuck SmileyRekiere <chuck.smileyrekiere@candelatech.com>
2022-07-12 15:45:17 +05:30
Chuck SmileyRekiere
42cd9507dc cv_test_manager.py : removed print statement for Not reporting to kpi file
Signed-off-by: Chuck SmileyRekiere <chuck.smileyrekiere@candelatech.com>
2022-07-12 15:45:11 +05:30
Matthew Stidham
b1a0c8c12f realm: station_profile needs ipv6 to be passed into the initial call of new_station_profile
Signed-off-by: Matthew Stidham <stidmatt@gmail.com>
2022-07-12 15:44:26 +05:30
Matthew Stidham
3bc732ba1b station_profile: Enable use of dhcp ipv6 flag
Signed-off-by: Matthew Stidham <stidmatt@gmail.com>
2022-07-12 15:44:26 +05:30
jitendracandela
575d9facef removed Not reporting to kpi file
Signed-off-by: jitendracandela <jitendra.kushavah@candelatech.com>
2022-03-24 02:04:26 +05:30
shivamcandela
7d0a01eb32 Merge ../lanforge-scripts 2021-12-17 07:17:29 +05:30
Matthew Stidham
2f793741d3 station_profile.modify: parse radio name using name_to_eid, and use the parsed name to set radio data
Signed-off-by: Matthew Stidham <stidmatt@gmail.com>
2021-12-16 13:19:30 -08:00
Matthew Stidham
1f0b3e7ff1 mac_vlan_profile and test_fileio: Allow user to specify resource and shelf for eth ports
Signed-off-by: Matthew Stidham <stidmatt@gmail.com>
2021-12-15 15:52:08 -08:00
Matthew Stidham
f2c7fd3f82 mac_vlan_profile: cleanup whitespace and bad logic
Signed-off-by: Matthew Stidham <stidmatt@gmail.com>
2021-12-15 10:43:40 -08:00
shivamcandela
0df163cf90 Merge ../lanforge-scripts 2021-12-15 23:33:41 +05:30
Matthew Stidham
a8fcfd2762 vap_profile.py: Use LFUtils.name_to_eid to parse radio names
Signed-off-by: Matthew Stidham <stidmatt@gmail.com>
2021-12-13 13:57:19 -08:00
Matthew Stidham
cba1629054 wifi_monitor_profile: Use name_to_eid to parse the resource name
Signed-off-by: Matthew Stidham <stidmatt@gmail.com>
2021-12-13 08:49:08 -08:00
shivamcandela
7134c3a8b7 fixed merge conflicts
Signed-off-by: shivamcandela <shivam.thakur@candelatech.com>
2021-12-13 13:01:01 +05:30
Chuck SmileyRekiere
32c88026fc port_probe.py : alight adjusment to not error on modes without an MCS,
support for earlier modes may be supported later.

Signed-off-by: Chuck SmileyRekiere <chuck.smileyrekiere@candelatech.com>
2021-12-10 17:18:36 -07:00
Chuck SmileyRekiere
73ac0b91ea port_probe.py : support for VHT and HE (non - ofdma)
Signed-off-by: Chuck SmileyRekiere <chuck.smileyrekiere@candelatech.com>
2021-12-10 16:05:11 -07:00
Chuck SmileyRekiere
ca5c1f6aac port_probe.py : removed exception for receive
Signed-off-by: Chuck SmileyRekiere <chuck.smileyrekiere@candelatech.com>
2021-12-10 14:35:12 -07:00
Chuck SmileyRekiere
32c2b76b25 port_probe.py : removed exception when looking for NSS on tx and rx ,check
string first before parsing.

Signed-off-by: Chuck SmileyRekiere <chuck.smileyrekiere@candelatech.com>
2021-12-10 14:28:34 -07:00
Chuck SmileyRekiere
da7edc98e1 port_probe.py : removed support for rx management frame. may have to add back in
Signed-off-by: Chuck SmileyRekiere <chuck.smileyrekiere@candelatech.com>
2021-12-08 12:50:07 -07:00
Chuck SmileyRekiere
a2e2f87350 port_porbe.py : default to 20Mhz for 2.4g
Signed-off-by: Chuck SmileyRekiere <chuck.smileyrekiere@candelatech.com>
2021-12-08 12:50:07 -07:00
Chuck SmileyRekiere
721ab3c510 l3_cxprofile.py : handle case were beacon avg signal not present as a key
port_probe.py if MHz not in probe set to 20Mhz,  this may need to change

Signed-off-by: Chuck SmileyRekiere <chuck.smileyrekiere@candelatech.com>
2021-12-08 11:03:29 -07:00
Matthew Stidham
5fdadbda64 LFUtils: Remove unused init, the second one was the one which was actually used
Signed-off-by: Matthew Stidham <stidmatt@gmail.com>
2021-12-06 17:26:36 -08:00
Matthew Stidham
d31adb049c LFUtils: Cleanup whitespace
Signed-off-by: Matthew Stidham <stidmatt@gmail.com>
2021-12-06 17:25:00 -08:00
Matthew Stidham
f8d275ca08 qvlan_profile: Remove unused parameters
Signed-off-by: Matthew Stidham <stidmatt@gmail.com>
2021-12-06 17:05:00 -08:00
Matthew Stidham
e00ad53428 port_probe: Fix whitespace
Signed-off-by: Matthew Stidham <stidmatt@gmail.com>
2021-12-06 17:03:16 -08:00
Matthew Stidham
ec9bceea4e multicast_profile.clean_mc_list: Looks like this is what it was supposed to do
Signed-off-by: Matthew Stidham <stidmatt@gmail.com>
2021-12-06 17:00:29 -08:00
Matthew Stidham
fcc578e6f9 lfdata: Use static methods where possible. use error flag when called
Signed-off-by: Matthew Stidham <stidmatt@gmail.com>
2021-12-06 16:59:07 -08:00
Matthew Stidham
2141ce103e l3_cxprofile: Improve is not None logic, it's redundant
Signed-off-by: Matthew Stidham <stidmatt@gmail.com>
2021-12-06 16:56:21 -08:00