Matthew Stidham
d135d1ee6e
StationProfile.create: LFRequest needs to be fed the url to make the request to
...
Signed-off-by: Matthew Stidham <stidmatt@gmail.com >
2022-07-12 15:45:33 +05:30
Matthew Stidham
f0694033dd
StationProfile.create: Pretty print out current ports as soon as function starts when debug is on.
...
Signed-off-by: Matthew Stidham <stidmatt@gmail.com >
2022-07-12 15:45:33 +05:30
Matthew Stidham
4e4276002f
LFUtils: Replace nc_show_ports with show_ports in wait_until_ports_appear to enable caching
...
Signed-off-by: Matthew Stidham <stidmatt@gmail.com >
2022-07-12 15:45:33 +05:30
Matthew Stidham
e709fd711c
station_profile: Remove unused import
...
Signed-off-by: Matthew Stidham <stidmatt@gmail.com >
2022-07-12 15:45:33 +05:30
Matthew Stidham
d6db3d0a2d
station_profile: Remove unused arguments and make station_mode_to_number static
...
Signed-off-by: Matthew Stidham <stidmatt@gmail.com >
2022-07-12 15:45:33 +05:30
Matthew Stidham
f4ddf7010b
station_profile: Fix whitespace
...
Signed-off-by: Matthew Stidham <stidmatt@gmail.com >
2022-07-12 15:45:33 +05:30
Matthew Stidham
d824dc0116
station_profile: Massively improve debug information so we have a better idea when scripts fail
...
Signed-off-by: Matthew Stidham <stidmatt@gmail.com >
2022-07-12 15:45:33 +05:30
Matthew Stidham
c950789af6
l3_cxprofile: Declare the beginning of l3_cxprofile.create when it starts when debug is turned on
...
Signed-off-by: Matthew Stidham <stidmatt@gmail.com >
2022-07-12 15:45:33 +05:30
Matthew Stidham
642aab2dd4
LFUtils.wait_until_ports_disappear: remove ports if they still exist.
...
LFUtils.wait_until_ports_appear: Improve debug by printing existing stations and adding more information to debug string
Signed-off-by: Matthew Stidham <stidmatt@gmail.com >
2022-07-12 15:45:33 +05:30
Matthew Stidham
d6060dbe5c
station_profile: Improve debug output when creating stations to make it more legible
...
Signed-off-by: Matthew Stidham <stidmatt@gmail.com >
2022-07-12 15:45:33 +05:30
Scott Wedge
a13f8260d2
http_profile.py: update ftp feature for hard-code resource and upstream-port
...
Signed-off-by: Scott Wedge <wedges@candelatech.com >
2022-07-12 15:45:33 +05:30
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