Commit Graph

830 Commits

Author SHA1 Message Date
Matthew Stidham
8f2fa4bf8c * We don't need to import LFUtils in lfcli_base
* local_realm in lf_attenmod is unused.
* local_realm in attenuator_profile is unused, because I'm switching to inheritance as part of my work eliminating redundancy.

Signed-off-by: Matthew Stidham <stidmatt@gmail.com>
2021-10-04 11:51:37 -07:00
erinnerim
d3d3af77f5 create_wanlink.py typo in parser: prog 2021-10-03 16:36:20 -07:00
erinnerim
c222700775 implement CLI for create_wanlink.py 2021-10-03 16:33:10 -07:00
Chuck SmileyRekiere
055b1a9b0a l3_cxprofile.py , multicast_profile.py : updated pprint.pprint
Signed-off-by: Chuck SmileyRekiere <chuck.smileyrekiere@candelatech.com>
2021-09-30 15:11:58 -06:00
Matthew Stidham
e790d487b1 Make it so VAP profile works with Realm again
Signed-off-by: Matthew Stidham <stidmatt@gmail.com>
2021-09-30 14:03:33 -07:00
Chuck SmileyRekiere
4744bc488a lfcli_base.py : changed from pprint import pprint to import pprint
Signed-off-by: Chuck SmileyRekiere <chuck.smileyrekiere@candelatech.com>
2021-09-30 13:25:07 -06:00
karthikaeyetea
dcfb3f385a added max_speed in If block of create() 2021-09-30 23:20:37 +05:30
Ben Greear
82b5d61de2 rvr: Fix pulling to local directory.
My earlier attempt missed passing in the cmd-line-arg to the
code that actually used it.

And, add more useful printout to the CV test mgr to show what it
is pulling where.

Signed-off-by: Ben Greear <greearb@candelatech.com>
2021-09-29 16:31:52 -07:00
jitendracandela
7e9b2565c0 added quiesce_after 2021-09-29 11:48:12 +05:30
Jed Reynolds
f4e45aadeb set_port.py: corrects updated LFJsonCommand references that have changed
Signed-off-by: Jed Reynolds <jed@bitratchet.com>
2021-09-28 09:11:24 -07:00
Jed Reynolds
7bfc9ee7e0 lf_json_autogen.py: significant updates from the jag-2021-09-27 branch
- parameter types
- stand-alone request management
- session token
- expanded class hierarchy:
    BaseSession <- LFSession,
    LFBaseRequest <- JsonQuery <- LFJsonQuery
    LFBaseRequest <- JsonCommand <- LFJsonCommand

Signed-off-by: Jed Reynolds <jed@bitratchet.com>
2021-09-28 01:14:15 -07:00
Jed Reynolds
e446aaed39 LFRequest.py: error message prints out called URL
Signed-off-by: Jed Reynolds <jed@candelatech.com>
2021-09-28 01:14:15 -07:00
Matthew Stidham
65808d21fa 1. Fix circular import error in LFRequest
2. add import re to lfcli_base
3. add debug output to l3_cxprofile, so it is how it used to be
4. add help options to regression_test so we can test how the help flags are working
5. Make test_ip_variable_time work better when it is imported directly by moving most of the logic to a function under IPVariableTime
6. Add init.py file to the LANforge directory and fix archiving in the to_pip.py script

Signed-off-by: Matthew Stidham <stidmatt@gmail.com>
2021-09-23 14:37:53 -07:00
Matthew Stidham
e6cf6b9337 1. Create pandas_extensions.py
2. Remove unused imports

Signed-off-by: Matthew Stidham <stidmatt@gmail.com>
2021-09-21 11:11:04 -07:00
Matthew Stidham
36400e003d Making it so that lanforge-scripts can work if the repository isn't named exactly the same way
Signed-off-by: Matthew Stidham <stidmatt@gmail.com>
2021-09-17 15:29:15 -07:00
Matthew Stidham
c03a5051e3 Regression test updates and fixing some issues
Signed-off-by: Matthew Stidham <stidmatt@gmail.com>
2021-09-15 18:46:25 -07:00
erinnerim
1d7578251c Updates to import statements:
- Import importlib, os, and sys to each python script.
 - Append "lanforge-scripts" root directory to the system path, allowing each script to be called from an antecedent directory. e.g.
if 'lanforge-scripts' not in sys.path:
    sys.path.append(os.path.join(os.path.abspath(__file__ + "../../../../../")))
 - All statements of the form 'from <module> import <class>' replace with:
<module> = importlib.import_module("lanforge-scripts.<directory>.<module>")
<class> = <module>.<class>
2021-09-15 16:17:16 -07:00
Jed Reynolds
ca63796db5 lf_json_autogen.py: adds column name help for many columns
Signed-off-by: Jed Reynolds <jed@candelatech.com>
2021-09-13 15:38:14 -07:00
erinnerim
136cd01fa0 Revert "importlib refactor LFRequest.py"
This reverts commit 0642ea475d.
2021-09-10 17:57:08 -07:00
erinnerim
c373891f9d Revert "importlib refactor LFUtils.py"
This reverts commit 343d5f7b31.
2021-09-10 17:56:55 -07:00
erinnerim
60e9853bb6 Revert "importlib refactor lfcli_base.py"
This reverts commit 787edf2d51.
2021-09-10 17:56:41 -07:00
erinnerim
64121ab3c1 Revert "importlib refactor realm.py"
This reverts commit ac5d3c688f.
2021-09-10 17:54:15 -07:00
erinnerim
ac5d3c688f importlib refactor realm.py 2021-09-10 17:13:52 -07:00
erinnerim
787edf2d51 importlib refactor lfcli_base.py 2021-09-10 17:09:13 -07:00
erinnerim
343d5f7b31 importlib refactor LFUtils.py 2021-09-10 17:07:20 -07:00
erinnerim
0642ea475d importlib refactor LFRequest.py 2021-09-10 17:05:58 -07:00
Jed Reynolds
652735990b lf_json_autogen.py: now has help text for port section
Signed-off-by: Jed Reynolds <jed@candelatech.com>
2021-09-10 16:56:31 -07:00
Jed Reynolds
ff6d19fe8f lf_json_autogen.py: fixes warning about possibly undeclared variable
Signed-off-by: Jed Reynolds <jed@candelatech.com>
2021-09-10 16:56:31 -07:00
Jed Reynolds
9f74fec635 lf_json_autogen.py: now has /probe url functionality
Signed-off-by: Jed Reynolds <jed@candelatech.com>
2021-09-10 14:36:51 -07:00
Jed Reynolds
9e116bd950 LFRequest.py: adds todo comments
Signed-off-by: Jed Reynolds <jed@candelatech.com>
2021-09-09 15:47:46 -07:00
Jed Reynolds
b23e9c8dc0 create_wanlink.py: endpoint names changed to "-A" and "-B" as per API standard.
Alo moves version check ahead of imports.

Signed-off-by: Jed Reynolds <jed@candelatech.com>
2021-09-09 08:49:58 -07:00
Chuck SmileyRekiere
2efbc62842 Revert "Update py_json files to be compatible with pip standards"
This reverts commit 0be47c82de.
2021-09-09 05:32:31 -06:00
Chuck SmileyRekiere
8e9909f2d0 Revert "Revert "Update py_json files to be compatible with pip standards""
This reverts commit 6b0322cafa.
2021-09-09 05:28:17 -06:00
Chuck SmileyRekiere
6b0322cafa Revert "Update py_json files to be compatible with pip standards"
This reverts commit 0be47c82de.
2021-09-09 05:24:20 -06:00
Matthew Stidham
0be47c82de Update py_json files to be compatible with pip standards
Signed-off-by: Matthew Stidham <stidmatt@gmail.com>
2021-09-08 16:54:45 -07:00
erinnerim
804371ad6b merge quali-dev changes in create_wanlink.py and test_wanlink.py to master 2021-09-08 14:43:42 -07:00
erinnerim
c01992e7fc fix create_wanlink.py import itself 2021-09-08 14:38:13 -07:00
erinnerim
d532daad50 Create wanlink main() changed to create() for quali testing 2021-09-08 14:38:13 -07:00
Jed Reynolds
5ba8a5bfcf lf_json_autogen: adds help test, WIP
Signed-off-by: Jed Reynolds <jed@candelatech.com>
2021-09-07 15:55:48 -07:00
Chuck SmileyRekiere
b6e1f30afb LFUtiles.py : added back in from LANforge import LFRequest
This was needed for the check tests

Signed-off-by: Chuck SmileyRekiere <chuck.smileyrekiere@candelatech.com>
2021-09-06 21:54:28 -06:00
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