Commit Graph

112 Commits

Author SHA1 Message Date
Jed Reynolds
fa5b0161ad add_dut.py enumerations gain methods for testing contents by common name 2020-10-22 22:03:37 -07:00
Jed Reynolds
ba66e2cdd8 lfcli_base.py init may now be passed a copy of local_realm in constructor 2020-10-22 22:03:04 -07:00
Jed Reynolds
92dd78fbfe lfcli_base.py: allows abbreviations for script options 2020-10-22 16:00:06 -07:00
Jed Reynolds
406ee6cb5d JSON: adds create_bare_argparse() for when we want an argparser that has nothing to do with radios 2020-10-22 16:00:06 -07:00
Jed Reynolds
0bc4939cac JSON: add_dut flags and parameters 2020-10-22 16:00:06 -07:00
Jed Reynolds
44e4e38b12 JSON: lfcli_base.py: whitespace 2020-10-21 00:05:52 -07:00
Jed Reynolds
c88ab44fc2 JSON: improves help on lfcli_base.py 2020-10-20 21:33:43 -07:00
Dipti
17f6412df7 num_station parameter added 2020-10-20 21:25:02 -07:00
Jed Reynolds
be7515ba91 JSON: defines file_endp parameters and constants 2020-10-20 19:50:35 -07:00
Jed Reynolds
bf5bf471e6 JSON: lfcli_base.py gains argument for http port 2020-10-20 19:50:35 -07: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
Jed Reynolds
88a60f3bda LFRequest.py: whitespace 2020-08-07 16:24:25 -07:00
Dipti Dhond
b711e1b99e additional security descriptions in help 2020-08-06 17:22:22 -07:00
Logan Lipke
dfb85aa390 Added create_basic_argparse arguments for setting prog, formatter_class, epilog, and description 2020-08-06 12:00:37 -07:00
Logan Lipke
da34b35421 create_basic_parser returns parser object now instead of args array 2020-08-06 11:41:19 -07:00
Logan Lipke
1aeb801a27 Added static method to parse common arguments 2020-08-06 11:39:02 -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
Jed Reynolds
730ad7ecdf LFRequest.py: adds plain_get() 2020-07-31 17:44:23 -07:00
Logan Lipke
73573a28da Fixed typo in hostapd_config 2020-07-31 17:27:42 -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
Logan Lipke
162091aa9c Merge branch 'master' of https://github.com/greearb/lanforge-scripts 2020-07-30 10:06:04 -07:00
Logan Lipke
b1e34423b8 Added flags for add_vap 2020-07-30 10:05:57 -07:00
Jed Reynolds
1ed694a155 LFRequest.py: improves self.die_on_error logic to absolutely die on conditions that are !404 2020-07-29 22:20:25 -07:00
Jed Reynolds
4e052391e8 JSON: stop dying on 404 response; formatting 2020-07-28 23:42:42 -07:00
Jed Reynolds
b9bcba58b0 JSON: simplifies die_on_error logic 2020-07-28 23:42:42 -07:00
Jed Reynolds
6332a322b0 python: whitespace 2020-07-24 18:10:51 -07:00
Dipti Dhond
472919790f print statement moved 2020-07-14 17:13:17 -07:00
Jed Reynolds
39d2f65f4f add_monitor.py: defines flags used when creating monitor port 2020-07-10 17:30:58 -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
Jed Reynolds
c33da1048f lfcli_base.py: fixes munched param name 2020-07-02 01:45:37 -07:00
Jed Reynolds
89b8dd7aef LFRequest.py: updates debug line refs 2020-06-30 15:34:05 -07:00
Jed Reynolds
07112693af lfcli_base.py: updates pydoc 2020-06-30 14:25:55 -07:00
Logan Lipke
f92e4fae29 Changed getAsJson parameters to use debug_ instead of show_error 2020-06-30 09:36:55 -07:00
Jed Reynolds
ebf6737edb JSON: replace show_error with debug 2020-06-29 23:21:06 -07:00
Jed Reynolds
59a7762dec lfcli_base.py: uses return parameter to capture resulting post result 2020-06-29 19:38:02 -07:00
Jed Reynolds
67ad3fa412 LFRequest.py: introduces return parameter for fetching resulting JSON data 2020-06-29 19:38:02 -07:00
Jed Reynolds
7b488a8553 JSON: LFCliBase json_post improves terminology and completeness for suppressing related commands 2020-06-29 14:20:08 -07:00
Jed Reynolds
f2e2135b5d JSON: fixes debug and die_on_error logic, fixes suppress_preexec_X logic, fixes pprint ref 2020-06-25 12:32:28 -07:00
Jed Reynolds
131880366f Json: fixes debugging and die_on_error logic 2020-06-25 12:32:28 -07:00
Jed Reynolds
c1e79ab6fc Python: introduces use_preexec variable to help simplify toggling on pre-exec login 2020-06-23 23:13:11 -07:00