994 Commits

Author SHA1 Message Date
Jed Reynolds
a2e02a6707 LFUtils.py: Improves wait_until_ports_disappear error message; Fixes many linter warnings.
Signed-off-by: Jed Reynolds <jed@candelatech.com>
2021-09-06 09:48:52 -07:00
Jed Reynolds
d50e0861f3 lf_json_autogen.py: WIP column help from tool tips
This should help nicely when it works.

Signed-off-by: Jed Reynolds <jed@candelatech.com>
2021-09-01 00:00:31 -07:00
Matthew Stidham
40fde97861 Major Grafana Dashboard script restructuring
Signed-off-by: Matthew Stidham <stidmatt@gmail.com>
2021-08-31 15:55:36 -07:00
Jed Reynolds
894a120e65 lf_json_autogen.py: updated documentation and whitespace
Signed-off-by: Jed Reynolds <jed@candelatech.com>
2021-08-17 15:45:23 -07:00
Jed Reynolds
2301be272f station_profile.py: adds commented out logic to include autogen library
Signed-off-by: Jed Reynolds <jed@candelatech.com>
2021-08-17 15:45:23 -07:00
Jed Reynolds
9b23578bf6 set_port.py: added environment check to utilize the LFJsonPost flag parameters
Signed-off-by: Jed Reynolds <jed@candelatech.com>
2021-08-17 15:45:23 -07:00
Matthew Stidham
6b6b14fc7a Add VAP arguments to create_vap.py including set_WIFI_RADIO integration
Signed-off-by: Matthew Stidham <stidmatt@gmail.com>
2021-08-17 14:15:25 -07:00
Jed Reynolds
d53bf1760c lf_json_autogen.py: changes post methods data dictionaries to avoid adding None items
These none items evaluate to null in the Http handlers and its more correct to not submit items lacking a value.

Signed-off-by: Jed Reynolds <jed@candelatech.com>
2021-08-16 14:10:57 -07:00
Jed Reynolds
c0f02b7945 LFRequest.py: corrects import reference
Signed-off-by: Jed Reynolds <jed@candelatech.com>
2021-08-16 14:10:57 -07:00
Jed Reynolds
f686f848fb lf_json_autogen.py: updates flag computation:
- can use IntFlag refs and/or strings
- can clear flags now
- turns down debug messages

Signed-off-by: Jed Reynolds <jed@candelatech.com>
2021-08-16 13:10:48 -07:00
Jed Reynolds
43e7afd882 GUI: JAG: fixes flaw parsing flag names when passed parameters were IntFlags
Signed-off-by: Jed Reynolds <jed@candelatech.com>
2021-08-16 12:00:21 -07:00
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
Matthew Stidham
3f77172949 Create modify_vap.py file, and increase options available in create_vap.py so a user can change the flags on a VAP.
Signed-off-by: Matthew Stidham <stidmatt@gmail.com>
2021-08-12 15:22:53 -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
shivamcandela
16276e080c merge conflict fix
Signed-off-by: shivamcandela <shivam.thakur@candelatech.com>
2021-07-29 01:01:11 +05:30
Matthew Stidham
53015a5501 Updating to make better Ghost posts, with more details in the first table, and enabling reading test_tags from the kpi.csv files.
Signed-off-by: Matthew Stidham <stidmatt@gmail.com>
2021-07-22 15:27:20 -07:00
shivamcandela
7fe8579ceb merge conflict lf_check, dpt solved
Signed-off-by: shivamcandela <shivam.thakur@candelatech.com>
2021-07-15 21:33:54 +05:30
Chuck SmileyRekiere
c18d33f362 Revert "Add optional debug output to Chamberview test scripts, wifi capacity, dataplane"
This reverts commit a7ff3e9227.

Signed-off-by: Chuck SmileyRekiere <chuck.smileyrekiere@candelatech.com>
2021-07-15 06:53:37 -06:00
shivamcandela
979f2d2265 lf_autogen rm
Signed-off-by: shivamcandela <shivam.thakur@candelatech.com>
2021-07-15 13:14:01 +05:30
Matthew Stidham
a7ff3e9227 Add optional debug output to Chamberview test scripts, wifi capacity, dataplane
Signed-off-by: Matthew Stidham <stidmatt@gmail.com>
2021-07-14 16:07:56 -07:00
karthikaeyetea
45e2688f36 print statement changed --'setting attenuator' instead creating attenuator 2021-07-13 12:08:22 +05:30
Erin Grimes
2f8c033ce8 - test_wanlink.py may now run with optional transfer-rate arguments:
* as together endpoints: --rate, the value of wanlink transfer rate of both endpoints in bits/sec.
	* as separate endpoints: --rate_A and/or --rate_B which default to the value of --rate.
	* the default value of --rate is 1000000 (1Gbps)

Signed-off-by: Erin Grimes <erin.grimes@candelatech.com>
2021-07-08 14:46:51 -07:00
Erin Grimes
b857d695b9 - test_wanlink.py may now run with optional latency arguments:
* as together endpoints: --latency, the value of wanlink delay of both endpoints in ms.
	* as separate endpoints: --latency_A and/or --latency_B which default to the value of --latency.
	* the value of --latency is 20 (ms) by default.
 - Arguments passed from the command line into LANtoWAN are simplified into a single container args.
 - Several arguments of LANtoWAN are instead initialized as data members.
 - create_wanlink.py no longer attempts to alter the wanlink after creating it.
 - create_wanlink.py outputs less to the terminal.

Signed-off-by: Erin Grimes <erin.grimes@candelatech.com>
2021-07-08 14:46:51 -07:00
Matthew Stidham
7e3575b481 Removing LFClibase from influx2 script
Signed-off-by: Matthew Stidham <stidmatt@gmail.com>
2021-07-08 11:47:17 -07:00
Jed Reynolds
0f1c703cb3 test_histogram.py example of how to use expand_endp_histogram
Signed-off-by: Jed Reynolds <jed@candelatech.com>
2021-07-06 16:41:05 -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
Erin Grimes
55fd6253b8 py-scripts: Removed comments from end of wanlink file.
These comments seemed useless to Ben.

Signed-off-by: Erin Grimes <erin.grimes@candelatech.com>
2021-06-30 15:30:57 -07:00
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
Chuck SmileyRekiere
4dbdf2eaad cv_test_reports.py : found that was clobbering the local_path
Signed-off-by: Chuck SmileyRekiere <chuck.smileyrekiere@candelatech.com>
2021-06-29 14:39:42 -06:00
Chuck SmileyRekiere
7ca355c13d cv_test_manager.py , cv_test_reports.py : bug fix on report_dir
Signed-off-by: Chuck SmileyRekiere <chuck.smileyrekiere@candelatech.com>
2021-06-29 14:32:15 -06:00