Jed Reynolds
f5c68076df
lf_json_autogen.py: the set_flags and clear_flags methods moved out of each enum class into the LFJsonPost class
...
Added parsing to test for string flag names, but flag enums by ref don't parse yet
Signed-off-by: Jed Reynolds <jed@candelatech.com >
2021-08-13 17:52:50 -07:00
Jed Reynolds
9393d995fe
lf_json_autogen.py: fixed bug with appending flags
...
Signed-off-by: Jed Reynolds <jed@candelatech.com >
2021-08-13 17:52:50 -07:00
Matthew Stidham
f2f8b06d21
Merge branch 'master' of github.com:greearb/lanforge-scripts
2021-08-13 16:57:27 -07:00
Matthew Stidham
2e5a544afa
Adding functionality to use flags when modifying and creating stations, DUTs, and VAPs
...
Signed-off-by: Matthew Stidham <stidmatt@gmail.com >
2021-08-13 16:56:20 -07:00
Jed Reynolds
9bfd09a292
lf_json_autogen.py: enum classes are re-worked to be stateless
...
Signed-off-by: Jed Reynolds <jed@candelatech.com >
2021-08-13 11:57:34 -07:00
Jed Reynolds
630e7851e1
lf_json_autogen.py: passes PEP8 whitespace checks
...
Signed-off-by: Jed Reynolds <jed@candelatech.com >
2021-08-12 17:35:56 -07:00
Jed Reynolds
22cb75b0d3
lf_json_autogen.py: now generated with most PEP8 recommended whitespace guidelines
...
This includes proper word-wrapping. This passes most checks using Idea's python checker.
Signed-off-by: Jed Reynolds <jed@candelatech.com >
2021-08-12 17:35:56 -07:00
Jed Reynolds
b7c869c3a4
GUI: JAG: fixes an impressive number of lint warnings. Some lint warnings remain.
...
Signed-off-by: Jed Reynolds <jed@candelatech.com >
2021-08-11 14:32:17 -07:00
Jed Reynolds
851139a514
lf_json_autogen.py: can now request port URLs
2021-08-06 12:35:09 -07:00
Jed Reynolds
6b87a0b9f7
lf_json_autogen.py: changes to EID -> URL generation, this will not compile yet
2021-08-06 11:52:01 -07:00
Jed Reynolds
499218f2e3
lf_json_autogen.py: adds logic to look for get parameters 'all' and 'list', processing still WIP
...
Signed-off-by: Jed Reynolds <jed@candelatech.com >
2021-08-05 18:25:57 -07:00
Jed Reynolds
5141ab98d7
GUI: JAG: fixes indentation error
...
Signed-off-by: Jed Reynolds <jed@candelatech.com >
2021-08-05 17:06:18 -07:00
Jed Reynolds
9ba4e6fe1d
lf_json_autogen.py: fixes array and substring errors
...
Signed-off-by: Jed Reynolds <jed@candelatech.com >
2021-08-05 15:29:20 -07:00
Jed Reynolds
609e1c13e9
lf_json_autogen.py: fixed syntax errors related to capture_signal_list
...
Signed-off-by: Jed Reynolds <jed@candelatech.com >
2021-08-05 13:29:53 -07:00
Jed Reynolds
f3b36fa0ef
lf_json_autogen.py: fixes imports; fixes incorrect declaration of selected_named_flag_map
...
Signed-off-by: Jed Reynolds <jed@candelatech.com >
2021-08-05 12:35:24 -07:00
Jed Reynolds
d2d45d1205
lf_json_autogen: parameters now have comments that correspond to lfcli_ug
...
Signed-off-by: Jed Reynolds <jed@candelatech.com >
2021-08-04 23:59:11 -07:00
Jed Reynolds
ab57bd8575
lf_json_autogen.py: fixes duplicate parameter classes; no more CLI alias commands
...
Signed-off-by: Jed Reynolds <jed@candelatech.com >
2021-08-04 23:04:04 -07:00
Jed Reynolds
aa1476a518
LFRequest.py: fixes confusion between urllib.request module name and request instance myrequest
...
Signed-off-by: Jed Reynolds <jed@candelatech.com >
2021-07-29 16:53:21 -07:00
Jed Reynolds
f60f0055be
LFRequest error printing is now more centralized:
...
print_diagnostics extracts X-Error headers first
LFRequest can track errors in self.error_list
LFReuqest can print errors
Classes lf lfcli_base calling lfrequest.get_as_json() can expose 404 or other errors using lfrequest.print_errors()
Signed-off-by: Jed Reynolds <jed@candelatech.com >
2021-07-29 16:53:21 -07:00
Jed Reynolds
64f243aa10
LFUtils.py: adds client function that can produce more detailed histogram from a Layer 3 DistributionPayload
...
Signed-off-by: Jed Reynolds <jed@candelatech.com >
2021-07-06 16:41:05 -07:00
anjali
534b584b72
removing changes
2021-07-03 00:18:19 +05:30
anjali
130dac16eb
Add option to pass resource number eg for resource 2 [1.2.sta00]
2021-07-02 23:19:46 +05:30
anjali
ded93a3d33
Add option to pass resource number eg for resource 2 [1.2.sta00]
2021-07-02 23:02:07 +05:30
Jed Reynolds
c1e805e826
lf_json_autogen: updated method headers, some parameters for methods are wrong
...
Signed-off-by: Jed Reynolds <jed@candelatech.com >
2021-06-30 13:54:43 -07:00
Jed Reynolds
170ef3da94
lf_json_autogen.py: comments out imports that dont resolve; fixes some returns
2021-06-22 17:11:13 -07:00
Jed Reynolds
190e45f1fb
JAG: enum values corrected to have API values, toggle values {0,1} no longer bit-flags, no enums items _name_like_this_
...
Signed-off-by: Jed Reynolds <jed@candelatech.com >
2021-06-21 23:34:39 -07:00
Jed Reynolds
f8f1297450
JAG: updated Enums: parameters are more clearly strings, numerals or bit flags
...
Signed-off-by: Jed Reynolds <jed@candelatech.com >
2021-06-21 21:36:41 -07:00
Jed Reynolds
137471ef0a
updated lf_json_autogen.py
...
Signed-off-by: Jed Reynolds <jed@candelatech.com >
2021-06-18 17:57:27 -07:00
Ben Greear
f711be6c6a
py-json: Add auto-generated lf-json library.
...
Signed-off-by: Ben Greear <greearb@candelatech.com >
2021-06-10 12:55:16 -07:00
Sushant Bawiskar
61a7d305df
- added use-bss-transition flag
...
Signed-off-by: Sushant Bawiskar <sushant.bawiskar@candelatech.com >
2021-05-03 12:52:57 +05:30
shivamcandela
f731737325
added lf_sniff_radio and set_wifi_radio options
2021-04-24 22:20:51 +05:30
Matthew Stidham
3820a85db7
Revert "Fix error regarding the non_port flag"
...
This reverts commit e88a0e2b52 .
2021-04-12 20:04:06 -07:00
Matthew Stidham
e88a0e2b52
Fix error regarding the non_port flag
...
Signed-off-by: Matthew Stidham <stidmatt@protonmail.com >
2021-04-12 17:00:18 -07:00
Ben Greear
70ee8972a0
l3-longevity: Support setting attenuators
...
User can specify comma separated list of attenuator EIDS
(shelf.resource.atten-id.atten-idx) and a list of attenuation
values and the script will iterate through those.
Signed-off-by: Ben Greear <greearb@candelatech.com >
2021-04-08 16:09:18 -07:00
Chuck SmileyRekiere
4f7154b881
lfcli_base.py: added success method that does not exit to allow for report generation from script after success
...
Signed-off-by: Chuck SmileyRekiere <chuck.smileyrekiere@candelatech.com >
2021-04-07 05:36:18 -06:00
Matthew Stidham
519cd785cb
Remove halt on error from all inheritors of realm
...
Signed-off-by: Matthew Stidham <stidmatt@protonmail.com >
2021-03-17 14:26:06 -07:00
Jed Reynolds
44c65a4951
LFUtils: gains more debug output
...
Signed-off-by: Jed Reynolds <jed@candelatech.com >
2021-03-11 01:06:03 -08:00
Jed Reynolds
7388ac3b73
LFUtils.py: rewrite of wait_until_ports_disappear()
...
- groups queries by resource for fewer http calls
- tests for either 'interface' or 'interfaces'
- debug output slightly slower when debuggin
Signed-off-by: Jed Reynolds <jed@candelatech.com >
2021-03-09 01:07:48 -08:00
Jed Reynolds
9a5f15ec9b
LFRequest.py: reduces volume of debug output
...
- headers not shown on 200 or 404
- headers not shown unless die_on_error_
- short 404 message now used
Signed-off-by: Jed Reynolds <jed@candelatech.com >
2021-03-09 01:07:48 -08:00
Matthew Stidham
c571bbf09e
Merge remote-tracking branch 'origin/master' into diptiBranch-solidifyingV1
...
Signed-off-by: Matthew Stidham <stidmatt@protonmail.com >
2021-03-08 15:46:32 -08:00
Dipti
1b87a6926b
v1 classes are taken out of realm.py, into their own files
...
Signed-off-by: Dipti <dipti.dhond@candelatech.com >
2021-03-05 23:39:07 -08:00
Jed Reynolds
6fb5313a6c
LFRequest.py: do not die when attempting a port that is already deleted
...
Signed-off-by: Jed Reynolds <jed@candelatech.com >
2021-03-05 16:06:41 -08:00
Jed Reynolds
a8f0781bb6
LFUtils.py: adds debug output
...
Signed-off-by: Jed Reynolds <jed@candelatech.com >
2021-03-05 00:35:15 -08:00
Nikita Yadav
a421185a73
add_l4_endp flag file
2021-03-05 12:04:17 +05:30
Dipti
ff8553f548
inheritance of L3CXProf v1 is back to LFClibase
...
Signed-off-by: Dipti <dipti.dhond@candelatech.com >
2021-03-03 13:09:52 -08:00
Matthew Stidham
9308f1df87
Fix die_on_error command so it doesn't trigger on a 404 error
...
Signed-off-by: Matthew Stidham <stidmatt@protonmail.com >
2021-03-03 12:09:37 -08:00
Dipti
434feca6a5
Inheritance from base_profile works
...
Signed-off-by: Dipti <dipti.dhond@candelatech.com >
2021-03-02 13:46:24 -08:00
Jed Reynolds
f423588e59
whitespace
...
Signed-off-by: Jed Reynolds <jed@candelatech.com >
2021-03-02 13:13:57 -08:00
Jed Reynolds
6c9d1e484d
LFRequest.py: adds stacktrace output to errors that exit
...
Signed-off-by: Jed Reynolds <jed@candelatech.com >
2021-03-02 00:08:00 -08:00
Jed Reynolds
dd47bf0e63
LFUtils.py: adds list_to_alias_map() a generic version of port_list_to_alias_map
...
Signed-off-by: Jed Reynolds <jed@candelatech.com >
2021-02-26 12:28:04 -08:00