Commit Graph

4265 Commits

Author SHA1 Message Date
Chuck SmileyRekiere
f9c9efdd4e lf_check.py : load custom db prior to each test, fixed call to scenario.py
updated rig.json for current db handling

Signed-off-by: Chuck SmileyRekiere <chuck.smileyrekiere@candelatech.com>
2021-11-06 11:26:45 -06:00
Chuck SmileyRekiere
b4a9608d3f lf_check.py : added db_override to put in unique db from command line
ct_us_00X_rig.json : generic name for db in json

Signed-off-by: Chuck SmileyRekiere <chuck.smileyrekiere@candelatech.com>
2021-11-06 06:21:42 -06:00
Matthew Stidham
20be39a531 improve regression_test bycommenting test which freezes test
Signed-off-by: Matthew Stidham <stidmatt@gmail.com>
2021-11-05 15:29:58 -07:00
Matthew Stidham
f2a6ab15bd Revert "Deprecating l3_cxprofile2.py"
This reverts commit d50907c8b3.
2021-11-05 13:33:21 -07:00
Matthew Stidham
d50907c8b3 Deprecating l3_cxprofile2.py
Signed-off-by: Matthew Stidham <stidmatt@gmail.com>
2021-11-05 12:39:55 -07:00
Matthew Stidham
6e2900e4e8 Fix LFRequest queries
Signed-off-by: Matthew Stidham <stidmatt@gmail.com>
2021-11-05 12:11:02 -07:00
Matthew Stidham
9963b32ba9 Set default min_bps in l3cxprofile in order to make it easier to use in command line.
Signed-off-by: Matthew Stidham <stidmatt@gmail.com>
2021-11-05 11:58:11 -07:00
Matthew Stidham
0347f70a89 regression_test always hangs on test_1k
Signed-off-by: Matthew Stidham <stidmatt@gmail.com>
2021-11-05 10:46:05 -07:00
Matthew Stidham
5983a8add5 Remove lanforge-scripts pip recursion
Signed-off-by: Matthew Stidham <stidmatt@gmail.com>
2021-11-05 10:34:16 -07:00
Matthew Stidham
52ded1c08b We don't want to downgrade any systems
Signed-off-by: Matthew Stidham <stidmatt@gmail.com>
2021-11-05 10:29:03 -07:00
Matthew Stidham
5879f64646 update_dependencies needs to ensure pip is up to date before running updates
Signed-off-by: Matthew Stidham <stidmatt@gmail.com>
2021-11-05 10:20:23 -07:00
Matthew Stidham
266118cc63 Requirements.txt initial commit
Signed-off-by: Matthew Stidham <stidmatt@gmail.com>
2021-11-05 10:09:05 -07:00
Matthew Stidham
3fee19c2e6 setup.py was missing pyjwt
Signed-off-by: Matthew Stidham <stidmatt@gmail.com>
2021-11-05 09:36:02 -07:00
jitendracandela
ec1374c947 fixed lanforge error message 2021-11-05 17:16:50 +05:30
Matthew Stidham
cce2d22456 Only import ap_ctl if Pexpect_serial is installed, because of Windows incompatibility issues
Signed-off-by: Matthew Stidham <stidmatt@gmail.com>
2021-11-04 17:33:04 -07:00
Matthew Stidham
468279aef2 Remove reference to non-existant file and add in text at the bottom of the script telling where to find the whl
Signed-off-by: Matthew Stidham <stidmatt@gmail.com>
2021-11-04 15:23:58 -07:00
Matthew Stidham
95ab91df2e Improve exit commands in to_pip.sh
Signed-off-by: Matthew Stidham <stidmatt@gmail.com>
2021-11-04 15:13:36 -07:00
Matthew Stidham
b1b6173d14 Create python wheel by default. Move current folder to lanforge_scripts
Signed-off-by: Matthew Stidham <stidmatt@gmail.com>
2021-11-04 14:24:27 -07:00
Matthew Stidham
878fa04d15 need to ensure build is installed and up to date
Signed-off-by: Matthew Stidham <stidmatt@gmail.com>
2021-11-04 14:01:33 -07:00
Matthew Stidham
8340b0419e Don't rename parent folder, create wheel at end of process.
Signed-off-by: Matthew Stidham <stidmatt@gmail.com>
2021-11-04 13:29:49 -07:00
Matthew Stidham
ee120b43e2 python_requires statement correction
Signed-off-by: Matthew Stidham <stidmatt@gmail.com>
2021-11-04 13:13:01 -07:00
Matthew Stidham
eddbc31901 Update to_pip so it doesn't import non-existent files and removes all remaning importlib commands
Signed-off-by: Matthew Stidham <stidmatt@gmail.com>
2021-11-04 12:53:35 -07:00
Jed Reynolds
5e7e7e744f jbr_monitor_bssids.py: this timing works better for retrieving events
maybe on APU2 hardware this just takes significantly longer

Signed-off-by: Jed Reynolds <jed@bitratchet.com>
2021-11-04 00:22:49 -07:00
Jed Reynolds
189da24e6f lanforge_api.py: removes typing subscripts not present in python 3.7.7
new flag for add_sta_flags

Signed-off-by: Jed Reynolds <jed@bitratchet.com>
2021-11-04 00:10:27 -07:00
Jed Reynolds
59b18ea38f logg.py: removes typing not present in python 3.7.7
fixes datetime.now reference

Signed-off-by: Jed Reynolds <jed@bitratchet.com>
2021-11-04 00:08:16 -07:00
Jed Reynolds
abc422ddf8 jbr_monitor_bssids.py: removes typing subscripts not present in python 3.7.7
Signed-off-by: Jed Reynolds <jed@bitratchet.com>
2021-11-04 00:07:36 -07:00
Jed Reynolds
c469fa5426 check_large_files: fixes neglected disk status of /boot2
Ignoring this partition made kinstall fail with a disk-full error.
Important to update kinstall to handle /boot2 refresh as well.

Signed-off-by: Jed Reynolds <jed@bitratchet.com>
2021-11-03 22:11:27 -07:00
Jed Reynolds
8a0b5c22f0 LFRequest.py: converting if(debug):print() to self.logger.debug() statements
This change hooks into the global python logging instance and exercises level based logging
without more advanced logic like "digest/json/http/gui" as documented elsewhere. Need to
establish the correctness of this usage before moving forward.

Signed-off-by: Jed Reynolds <jed@bitratchet.com>
2021-11-03 19:53:30 -07:00
Jed Reynolds
2f7baf2987 lfcli_base.py: can now import lanforge_client.logg
Adds notes on where present logg() function is being used

Signed-off-by: Jed Reynolds <jed@bitratchet.com>
2021-11-03 19:53:30 -07:00
Jed Reynolds
4f2fe934a3 JAG: refactoring extracted string methods to strutil.py module
Signed-off-by: Jed Reynolds <jed@bitratchet.com>
2021-11-03 19:53:30 -07:00
Jed Reynolds
3a17f699cc LFUtils.py can now import Logg
Signed-off-by: Jed Reynolds <jed@bitratchet.com>
2021-11-03 19:53:30 -07:00
Jed Reynolds
ba008b4968 JAG: logg.py: fixes strutil import, adds tag parameter and return type to logg()
Signed-off-by: Jed Reynolds <jed@bitratchet.com>
2021-11-03 19:53:30 -07:00
Jed Reynolds
25d40a7a6a JAG: logging class and string util methods extracted to independent modules
This allows py-scripts and py-json modules to access this logic independent of the lanforge_api.py module.

Signed-off-by: Jed Reynolds <jed@bitratchet.com>
2021-11-03 19:53:30 -07:00
Matthew Stidham
861e9b127c Improve sta_name argparse variable
Signed-off-by: Matthew Stidham <stidmatt@gmail.com>
2021-11-03 15:44:08 -07:00
Matthew Stidham
3e2def4e5f Correct links in regression_test.sh
Signed-off-by: Matthew Stidham <stidmatt@gmail.com>
2021-11-03 14:28:35 -07:00
Matthew Stidham
11595b53a3 Fix links in regression test
Signed-off-by: Matthew Stidham <stidmatt@gmail.com>
2021-11-03 10:41:48 -07:00
Chuck SmileyRekiere
44c5ae3a3d lf_cleanup.py : check if cxs is empty
Signed-off-by: Chuck SmileyRekiere <chuck.smileyrekiere@candelatech.com>
2021-11-03 09:56:07 -06:00
Chuck SmileyRekiere
89d8baee94 lf_cleanup.py iterates over the individual cxs, endp, and stations
test_l3_longevity.py : comment on channel width

Signed-off-by: Chuck SmileyRekiere <chuck.smileyrekiere@candelatech.com>
2021-11-03 08:02:46 -06:00
Jed Reynolds
9b96791a65 lanforge_api.py: replaces missing get_ methods that were omitted by broken logic trying to eliminate duplicate method generation
Signed-off-by: Jed Reynolds <jreynolds@candelatech.com>
2021-11-02 17:23:42 -07:00
Jed Reynolds
8055d58ede lanforge_api.py: adds logging logic for reserved keywords and logging to file
Signed-off-by: Jed Reynolds <jreynolds@candelatech.com>
2021-11-02 16:45:28 -07:00
Jed Reynolds
be4c47295f lfcli_base.py: adds logging logic that is distinct from lanforge_api.py but similar in function
this was checked with lf_help_check.bash and check_argparse.py.

Signed-off-by: Jed Reynolds <jreynolds@candelatech.com>
2021-11-02 16:45:28 -07:00
Jed Reynolds
0ae0c97f95 jbr_monitor_bssids.py: comments out now duplicate options 2021-11-02 16:45:28 -07:00
Jed Reynolds
8118406f7d lfcli_base.py: whitespace, renamed variable x to argument 2021-11-02 16:45:28 -07:00
Matthew Stidham
1fd331288c Add no_cleanup flag
Signed-off-by: Matthew Stidham <stidmatt@gmail.com>
2021-11-02 13:30:08 -07:00
Logan Lipke
f2e364d98a changed station_list nargs from * to + 2021-11-02 10:22:44 -07:00
Logan Lipke
6239273f04 changed station_list argument to accept multiple arguments in space or comma separated list 2021-11-02 10:09:23 -07:00
Chuck SmileyRekiere
12c8985424 l3_cxprofile.py append 'alias' soon to the columns
test_ip_variable_time.py update example

Signed-off-by: Chuck SmileyRekiere <chuck.smileyrekiere@candelatech.com>
2021-11-02 07:52:55 -06:00
Chuck SmileyRekiere
44fffafe40 lf_cleanup.py pep8 (white space, removed imports, line cleanup)
Signed-off-by: Chuck SmileyRekiere <chuck.smileyrekiere@candelatech.com>
2021-10-29 13:51:30 -06:00
Chuck SmileyRekiere
dc6693604b lf_cleanup.py : pep8 cleanup
Signed-off-by: Chuck SmileyRekiere <chuck.smileyrekiere@candelatech.com>
2021-10-29 13:38:06 -06:00
Chuck SmileyRekiere
21e5a1d349 lf_cleanup.py : script for removing sta, cx and endp from lanforge
Signed-off-by: Chuck SmileyRekiere <chuck.smileyrekiere@candelatech.com>
2021-10-29 13:33:32 -06:00