Jed Reynolds
e07e5e3a9c
LFUtils: updates name_to_eid() to allow for qvlan names
2020-11-13 15:36:37 -08:00
Jed Reynolds
9f6e6d45fe
LFUtils: fixes misnamed variable
2020-11-13 15:00:25 -08:00
Jed Reynolds
12d803576d
JSON: refactors parsing sizes into utility class
2020-10-20 19:50:35 -07:00
Logan Lipke
24e510a848
Updated methods to fit PEP8 standards
2020-10-15 15:36:10 -07:00
Chuck SmileyRekiere
437de81510
port reset functionality
2020-09-01 18:19:58 -06:00
Jed Reynolds
1e545c15b2
LFUtils.py: fixes json-post for waiting on ports
2020-08-07 16:31:50 -07:00
Jed Reynolds
c84061de96
LFUtils.py: correct post method, should have been jsonPost
2020-08-07 16:24:25 -07:00
Ben Greear
c17837dc64
json: Work on pre-cleanup logic.
...
Still doesn't work, but checking in what I have for now.
2020-08-06 08:27:58 -07:00
Ben Greear
db4a5b7728
json: Add methods to wait for cx, endp to be found.
...
This lets scripts wait until we are sure the system can handle
further work.
Ensure we print out error in case the URL processing logic
detects and error and plans to exit.
2020-08-05 15:25:22 -07:00
Ben Greear
960b87b61f
python: flex-longevity, library cleanup.
...
Remove use of 'resource' where possible, use port EIDs instead for
multi-resource flexibility.
Remove some spurious 'sleep' calls. If you think you need to sleep
2 seconds, you are probably facing a real race bug, so diagnose that
instead or put big comments around why you added a sleep.
Lots of changes to flex longevity, hopefully it can support multiple
connection types now, but not tested that yet.
Signed-off-by: Ben Greear<greearb@candelatech.com >
2020-08-05 13:13:24 -07:00
Logan Lipke
b79aa43f59
Added port_down_request
2020-07-31 14:13:27 -07:00
Jed Reynolds
7fa76d4517
LFUtils: new snake_case method for wait_until_ports_admin_up()
2020-07-31 09:21:16 -07:00
Jed Reynolds
c54d342a8e
LFUtils.py: whitespace
2020-07-30 13:51:05 -07:00
Jed Reynolds
4336ddb74e
Fixed typo
2020-07-30 12:35:49 -07:00
Dipti Dhond
472919790f
print statement moved
2020-07-14 17:13:17 -07:00
Jed Reynolds
3c21b6cab1
LFUtils.py: quieter
2020-07-03 07:54:43 -07:00
Jed Reynolds
de66c8ff81
LFUtils.py: more PEP8 method names, output improvements
2020-07-02 11:01:41 -07:00
Logan Lipke
f92e4fae29
Changed getAsJson parameters to use debug_ instead of show_error
2020-06-30 09:36:55 -07:00
Logan Lipke
d63c4a8a56
Changed tuple in waitUntilPortsDisappear parameters to list, changed wait_until_ports_disappear to use values passed by waitUntilPortsDisappear
2020-06-23 16:45:26 -07:00
Jed Reynolds
d3f76e5d18
LFUtils: introduces wait_until_ports_disappear as PEP8 method
2020-06-16 23:24:38 -07:00
Jed Reynolds
ec3ac0a570
LFUtils.py: introduces port_name_series to replace portNameSeries
2020-06-09 12:44:46 -07:00
Logan Lipke
14e3c59ef1
Removed extra base_url in url assignment
2020-06-05 14:50:53 -07:00
Logan Lipke
7f5ec13a7d
Rewrote usage of LFRequest to work with new constructor
2020-06-05 14:41:03 -07:00
Logan Lipke
a137ca1792
Fixed missing %s in url
2020-06-05 10:51:51 -07:00
Jed Reynolds
ae014c3eeb
LFUtils.py: updates portListToAliasMap to have debug param, raise exception on empty/no results
2020-06-04 22:52:09 -07:00
Logan Lipke
80082e85b1
Changed fstrings to % formatting
2020-06-04 13:58:59 -07:00
Jed Reynolds
b5eb2f9e2f
LFUtils.py: lots of debug additions, whitespace/formatting
2020-06-04 00:28:44 -07:00
Ben Greear
cfbe26c76c
json: Add python/json unit test script.
...
And remove flakey helper method in LFUtils, just make user specify
the resource ID when removing ports.
The sta_connect.py script will create a station, run traffic, and calculate
pass/fail based on the results. Idea is for it to be part of a unit-test framework.
2020-05-28 15:38:16 -07:00
Jed Reynolds
e199faaefb
LFUtils.py: gains methods used in connectTest.py
2020-05-26 17:11:03 -07:00
Jed Reynolds
e025387472
LFUtils.py: fixes string comparators
2020-05-26 17:11:03 -07:00
Jed Reynolds
2ca39c5e18
LFUtils.py: fixes typo reference
2020-05-26 17:11:03 -07:00
Jed Reynolds
174cc44893
LFUtils: uses more appropriate assignment operators for python 3.5.x
2020-03-03 09:02:36 -08:00
Jed Reynolds
8933060a6a
LFUtils.py methods updated with base_url parameter; additional diagnostic output
2020-01-07 18:24:37 -08:00
Jed Reynolds
1392a4403a
LFUtils.py: small improvements
2019-11-21 17:24:01 -08:00
Jed Reynolds
9d70b6c469
py-json: adds convenience methods, defines report timers and other constants
2019-10-30 18:21:37 -07:00
Jed Reynolds
57878e0412
py-json: simplifies get request and error output, examples work better
2019-10-30 16:16:03 -07:00
Jed Reynolds
3c60c2da99
progress making station up/down requests
2019-10-29 18:45:06 -07:00
Jed Reynolds
9da3b1379d
py-json: working example of creating and destroying stations
2019-10-29 16:09:56 -07:00