matthew
8894d6f358
realm: variables may have been referenced before assignment WARNING!!!!!!
...
Signed-off-by: matthew <stidmatt@gmail.com >
2021-12-03 08:06:32 -08:00
matthew
83e36fe03b
realm: Remove unused variables
...
Signed-off-by: matthew <stidmatt@gmail.com >
2021-12-03 08:04:11 -08:00
matthew
a535e753dd
realm: Missing colon
...
Signed-off-by: matthew <stidmatt@gmail.com >
2021-12-03 08:01:39 -08:00
matthew
f4a9c1fdb4
realm: DO NOT SHADOW NAME FROM OUTER SCOPE!!!!! DANGER!!!! WARNING!!!!! ALERT!!!!
...
Signed-off-by: matthew <stidmatt@gmail.com >
2021-12-03 08:00:00 -08:00
matthew
07655ab249
realm: DO NOT SHADOW BUILT IN FUNCTIONS!!!!!!!! DANGER!!! WARNING!!!! ALERT!!!!
...
Signed-off-by: matthew <stidmatt@gmail.com >
2021-12-03 07:57:58 -08:00
matthew
6e2bff6c81
realm: Fix whitespace
...
Signed-off-by: matthew <stidmatt@gmail.com >
2021-12-03 07:57:13 -08:00
matthew
b6fbc88aba
realm: "if not X in Y" should read "if X not in Y"
...
Signed-off-by: matthew <stidmatt@gmail.com >
2021-12-03 07:55:08 -08:00
matthew
6e08840d9b
realm: Remove redundant is not None
...
Signed-off-by: matthew <stidmatt@gmail.com >
2021-12-03 07:54:07 -08:00
matthew
dc7a266352
realm: Remove redundant parentheses
...
Signed-off-by: matthew <stidmatt@gmail.com >
2021-12-03 07:51:10 -08:00
matthew
87b776034e
realm: Fix mutable default arguments
...
Signed-off-by: matthew <stidmatt@gmail.com >
2021-12-03 07:50:42 -08:00
Matthew Stidham
bb366408b5
realm: vrprofile is deprecated
...
Signed-off-by: Matthew Stidham <stidmatt@gmail.com >
2021-11-18 17:32:03 -08:00
Matthew Stidham
c3c2e09950
realm: l3_cxprofile2 is deprecated
...
Signed-off-by: Matthew Stidham <stidmatt@gmail.com >
2021-11-18 17:30:06 -08:00
Matthew Stidham
60d547a7ec
realm.py: Improve rm_port and port_exists debugging
...
Signed-off-by: Matthew Stidham <stidmatt@gmail.com >
2021-11-16 18:47:07 -08:00
Matthew Stidham
b2a9200511
realm: Remove invalid comparisons
...
Signed-off-by: Matthew Stidham <stidmatt@gmail.com >
2021-11-16 11:08:00 -08:00
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
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
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
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
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
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
anjali
0583b57fb4
added attenuator library in realm.py
2021-05-28 21:32:59 +05:30
Matthew Stidham
e25c13e826
Create dut_to_grafana and fixing dependencies
...
Signed-off-by: Matthew Stidham <stidmatt@gmail.com >
2021-05-06 17:14:16 -07:00
Chuck SmileyRekiere
a8fcc7b14b
README.md : description for py-json scripts
...
Signed-off-by: Chuck SmileyRekiere <chuck.smileyrekiere@candelatech.com >
2021-04-13 17:55:59 -06:00
Ben Greear
3c171bc260
cv-capacity: Re-work user input a bit.
...
* Use realm method to query for all stations instead
of matching by name (which would miss wlan* devices)
* Support interleave and linear sorting options.
* Support setting upload/download speed.
* Use args.foo variables directly much of the time,
instead of making local copies of the same info.
This simplifies code in my mind.
Signed-off-by: Ben Greear <greearb@candelatech.com >
2021-04-13 15:23:35 -07:00
Ben Greear
6919045bbc
l3-longevity: Write out per-port csv files.
...
And a small bit of code cleanup in the realm class.
Signed-off-by: Ben Greear <greearb@candelatech.com >
2021-04-09 15:17:07 -07:00
Ben Greear
70ee8972a0
l3-longevity: Support setting attenuators
...
User can specify comma separated list of attenuator EIDS
(shelf.resource.atten-id.atten-idx) and a list of attenuation
values and the script will iterate through those.
Signed-off-by: Ben Greear <greearb@candelatech.com >
2021-04-08 16:09:18 -07:00
lanforge
d486854a6e
add new_lf_data_collection to realm
...
Signed-off-by: lanforge <stidmatt@gmail.com >
2021-04-07 10:40:10 -07:00
Matthew Stidham
3cc6bf099a
Remove halt_on_error from realm
...
Signed-off-by: Matthew Stidham <stidmatt@protonmail.com >
2021-03-17 14:28:11 -07:00
Matthew Stidham
768e3ec2cb
Fix typo
...
Signed-off-by: Matthew Stidham <stidmatt@protonmail.com >
2021-03-16 14:40:57 -07:00
Matthew Stidham
dc938a9603
Fixed create_qvlan.py script
...
Signed-off-by: Matthew Stidham <stidmatt@protonmail.com >
2021-03-16 14:33:51 -07:00
Jed Reynolds
61241b5d88
realm.py: whitespace
...
Signed-off-by: Jed Reynolds <jed@candelatech.com >
2021-03-11 01:06:03 -08:00
Jed Reynolds
b414512f9d
realm.py: adds proxy method for wait_until_ports_disappear
...
Signed-off-by: Jed Reynolds <jed@candelatech.com >
2021-03-09 01:07:48 -08:00
Matthew Stidham
c571bbf09e
Merge remote-tracking branch 'origin/master' into diptiBranch-solidifyingV1
...
Signed-off-by: Matthew Stidham <stidmatt@protonmail.com >
2021-03-08 15:46:32 -08:00
Dipti
549cbfdb5e
organized imports in realm.py
...
Signed-off-by: Dipti <dipti.dhond@candelatech.com >
2021-03-05 23:45:02 -08:00
Dipti
1b87a6926b
v1 classes are taken out of realm.py, into their own files
...
Signed-off-by: Dipti <dipti.dhond@candelatech.com >
2021-03-05 23:39:07 -08:00
Dipti
36f59bcf5e
import fix
...
Signed-off-by: Dipti <dipti.dhond@candelatech.com >
2021-03-05 18:34:21 -08:00
Dipti
c3c503d3ca
removal of classes from realm, removal of port_utils
...
Signed-off-by: Dipti <dipti.dhond@candelatech.com >
2021-03-05 18:20:31 -08:00
Logan Lipke
9b0dda2c1b
wait_for_ip: changed stas_with_ips to dict, allowed for ipv4 and ipv6
2021-03-05 17:18:58 -08:00
Jed Reynolds
0078234ead
realm.py: adds guard against None in rm_port()
...
Signed-off-by: Jed Reynolds <jed@candelatech.com >
2021-03-05 16:06:41 -08:00
Jed Reynolds
01e9167bd8
realm.py: updates factory method new_vr_profile, defaults to ver=2, uses version numbered module
...
Signed-off-by: Jed Reynolds <jed@candelatech.com >
2021-03-05 00:35:15 -08:00
Matthew Stidham
413232eb26
import l3_cxprofile2 to realm
...
Signed-off-by: Matthew Stidham <stidmatt@protonmail.com >
2021-03-04 13:03:55 -08:00
Matthew Stidham
3b9511d674
Import L3CXProfile into realm so that we prevent breakage with clients scripts.
...
Signed-off-by: Matthew Stidham <stidmatt@protonmail.com >
2021-03-04 12:40:20 -08:00