Commit Graph

21 Commits

Author SHA1 Message Date
Chuck SmileyRekiere
9a5bf473c3 LFRequest.py : allow for debug to be enable at enstanciation o the LFRequest.py and passed in
vap_profile.py updated to allow the mac address to be used and pass in
debug state on enstanciation of LFRequest
modify_vap.py : added logging, pass debug flag to base classes

Signed-off-by: Chuck SmileyRekiere <chuck.smileyrekiere@candelatech.com>
2022-07-12 15:46:32 +05:30
erinnerim
e6dcee47b5 Quick fix for modify_vap.py to see the shelf and resource;
TODO make sure to check code in vap_profile.py for duplicate;
name_to_eid should be handled by vap_profile.
2022-07-12 15:46:32 +05:30
Chuck SmileyRekiere
941119713f vap_profile.py : added back in the modify method
Signed-off-by: Chuck SmileyRekiere <chuck.smileyrekiere@candelatech.com>
2022-07-12 15:46:32 +05:30
Ben Greear
fb48980ee1 vap-profile: Improve logging and use some base class code.
More changes all around regression test logic related to the
vap profile.  Move some open-coded admin_up/admin_down calls
to base class.

regression test takes the .rc file as primary input,
and cmd-line args will override that.

Signed-off-by: Ben Greear <greearb@candelatech.com>
2022-07-12 15:46:02 +05:30
Ben Greear
d7dc9d1a23 vap-profile: Add logging and return code checking.
And remove the logic to create a bridge within the vap profile,
the vap profile does not have enough info to properly create
a bridge (old code used hard-coded port names)

Instead, logic would be to create vap, and then create a bridge
object that holds the VAP using the bridge profile/script.

Signed-off-by: Ben Greear <greearb@candelatech.com>
2022-07-12 15:45:46 +05:30
Matthew Stidham
a8fcfd2762 vap_profile.py: Use LFUtils.name_to_eid to parse radio names
Signed-off-by: Matthew Stidham <stidmatt@gmail.com>
2021-12-13 13:57:19 -08:00
matthew
3e8f0bd19b vap_profile: Fix whitespace
Signed-off-by: matthew <stidmatt@gmail.com>
2021-12-03 08:14:04 -08: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
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
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
Matthew Stidham
40fde97861 Major Grafana Dashboard script restructuring
Signed-off-by: Matthew Stidham <stidmatt@gmail.com>
2021-08-31 15:55:36 -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
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
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
Nikita Yadav
eb79a0f3e6 adding bridge as flag value and removing hardcoded resources 2021-05-31 19:37:40 +05:30
Dipti
d3c9b9d763 fixing import order. this fixes broken code
Signed-off-by: Dipti <dipti.dhond@candelatech.com>
2021-03-07 22:49:22 -08:00
Dipti
210e9d06ad transitioniting rest of the profiles - version 1 - out of realm
Signed-off-by: Dipti <dipti.dhond@candelatech.com>
2021-03-05 01:02:40 -08:00