Commit Graph

4241 Commits

Author SHA1 Message Date
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
Jed Reynolds
45ae840e2a lf_json_autogen.py removed, replaced by lanforge_api.py
Signed-off-by: Jed Reynolds <jed@bitratchet.com>
2021-10-29 09:58:16 -07:00
Chuck SmileyRekiere
93df56c354 update_dependencies.py : check for os to be able to run on windows
Signed-off-by: Chuck SmileyRekiere <chuck.smileyrekiere@candelatech.com>
2021-10-29 08:33:20 -06:00
Jed Reynolds
053b577497 lanforge_api.py: several debugging enhancements
- Logg class message parameter are renamed to msg to be consistent with python logging package
- fixes possible duplicate log statements because there were no return statements in the logg method
- adds class method for registering method names to turn on debug logging from
- adds class method for registering tags or keywords to turn on logging from
- adds Logg.by_tag() and Log.by_method()
- adds more specific logging to json_post()
- some import formatting requested by Matthew

Signed-off-by: Jed Reynolds <jed@bitratchet.com>
2021-10-29 00:19:33 -07:00
Jed Reynolds
0327ec1c05 jbr_monitor_bssids.py: work leveraging new logging methods
Includes demonstration using a --debugging= argument to pass in tag:foo and method:methodname
areas to activate debug output

Signed-off-by: Jed Reynolds <jed@bitratchet.com>
2021-10-29 00:19:33 -07:00
Jed Reynolds
32b17ac342 example fetching and removing connections
Signed-off-by: Jed Reynolds <jed@bitratchet.com>
2021-10-29 00:19:33 -07:00
Jed Reynolds
c71e93ed75 jbr_monitor_bssids.py: fixes loading logic
- querying for load was happening before load was requested, which was clearly dumb
- incorporates show_events before load, and after every 5 seconds
- sys.settrace() call is experimental, is going to be removed

Signed-off-by: Jed Reynolds <jed@bitratchet.com>
2021-10-29 00:19:33 -07:00
Jed Reynolds
d8b474139a lanforge_api.py: removed debugging
Signed-off-by: Jed Reynolds <jed@bitratchet.com>
2021-10-29 00:19:33 -07:00
Chuck SmileyRekiere
1dadbc3fc3 test_l3_longevity.py : remove the mmu field
Signed-off-by: Chuck SmileyRekiere <chuck.smileyrekiere@candelatech.com>
2021-10-28 15:05:33 -06:00
Chuck SmileyRekiere
623f3790b9 l3_cxprofile.py white space clean up
Signed-off-by: Chuck SmileyRekiere <chuck.smileyrekiere@candelatech.com>
2021-10-27 15:56:30 -06:00
Chuck SmileyRekiere
1515f3701a port_probe.py pep8 cleanup (line length 150)
Signed-off-by: Chuck SmileyRekiere <chuck.smileyrekiere@candelatech.com>
2021-10-27 15:50:13 -06:00
Chuck SmileyRekiere
c15d0cbf0a l3_cxprofile.py changed to is None were used == , updated exceptions
Signed-off-by: Chuck SmileyRekiere <chuck.smileyrekiere@candelatech.com>
2021-10-27 15:41:47 -06:00
Chuck SmileyRekiere
0fe949e5f7 l3_cxprofile.py : updated column for GI
port_probe.py : report the GI (Guard Index) for reporting

Signed-off-by: Chuck SmileyRekiere <chuck.smileyrekiere@candelatech.com>
2021-10-27 15:27:12 -06:00
Chuck SmileyRekiere
a31be6c835 l3_cxprofile.py : added gi and caclulated mbps
port_probe.py : determining GI and calculated mbps

Signed-off-by: Chuck SmileyRekiere <chuck.smileyrekiere@candelatech.com>
2021-10-27 14:10:19 -06:00
Logan Lipke
df68373001 Fixed function calls, renamed cli argument to fit with other arguments, fixed issue with improper type compare 2021-10-27 11:08:12 -07:00
Chuck SmileyRekiere
3e7908a623 l3_cxprofile.py : commented out HE status for now.
port_porbe.py : with 6Mb legacy frame
do not set the rx_nss and rx_mhz to zero to allow for
the reporting columns to be blank

Signed-off-by: Chuck SmileyRekiere <chuck.smileyrekiere@candelatech.com>
2021-10-27 10:58:56 -06:00
Chuck SmileyRekiere
017043b7e1 l3_cxprofile.py : updated columns for rx GI
Signed-off-by: Chuck SmileyRekiere <chuck.smileyrekiere@candelatech.com>
2021-10-27 10:24:57 -06:00
Chuck SmileyRekiere
1787929e37 l3_cxprofile.py : column title updated for Guard Index GI
port_probe.py : update for various porbe syntax for the rx and tx bitrate
in getting MHz values for bandwidth

Signed-off-by: Chuck SmileyRekiere <chuck.smileyrekiere@candelatech.com>
2021-10-27 10:21:48 -06:00
Chuck SmileyRekiere
422b2ab577 port_probe.py commented out probe print
Signed-off-by: Chuck SmileyRekiere <chuck.smileyrekiere@candelatech.com>
2021-10-27 09:44:59 -06:00
Chuck SmileyRekiere
eb3b831f8b port_probe.py updated for MCS values greater then 7
l3_csprofile.py removed the guard interval column for now

Signed-off-by: Chuck SmileyRekiere <chuck.smileyrekiere@candelatech.com>
2021-10-27 08:04:27 -06:00
Chuck SmileyRekiere
55ad888bb1 l3_cxprofile.py : alias code, added put in exception of the number of
expected stations does not match the number of stations present.

Signed-off-by: Chuck SmileyRekiere <chuck.smileyrekiere@candelatech.com>
2021-10-27 07:19:55 -06:00
Chuck SmileyRekiere
7e86d436de port_probe.py - HT derive NSS from mcs values
Signed-off-by: Chuck SmileyRekiere <chuck.smileyrekiere@candelatech.com>
2021-10-27 07:02:41 -06:00
Chuck SmileyRekiere
a1218e82ec l3_cxprovile.py, port_probe.py : updates for rx side
Signed-off-by: Chuck SmileyRekiere <chuck.smileyrekiere@candelatech.com>
2021-10-26 17:20:16 -06:00
Chuck SmileyRekiere
563d44e39e l3_cxprofile.py : added the calculated TX
port_probe.py : added the calculated TX

Signed-off-by: Chuck SmileyRekiere <chuck.smileyrekiere@candelatech.com>
2021-10-26 15:46:50 -06:00
Chuck SmileyRekiere
d582c8399a port_probe.py : tx side reading data from probe and doing HT calculations
Signed-off-by: Chuck SmileyRekiere <chuck.smileyrekiere@candelatech.com>
2021-10-26 14:48:53 -06:00