Commit Graph

9 Commits

Author SHA1 Message Date
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
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
13cc052056 vr_profile2.py: adds ability to query netsmith
- convert eid to url
- fixes querying vrcx lists
- fixes adds more debugging
- finished add vrcx to router
- can now sync the netsmith screen
- can now apply the netsmith screen
- fixes some logic in "refresh_netsmith" but the refresh_netsmith method mixes sync and apply logic and maybe shouldnt be used
- has wait_until_vrcx_appears() method with a timeout limit

Signed-off-by: Jed Reynolds <jed@candelatech.com>
2021-03-11 01:06:03 -08:00
Jed Reynolds
1b05840552 vr_profile2.py: adds related notes about how Netsmith handles a moved connection
Signed-off-by: Jed Reynolds <jed@candelatech.com>
2021-03-11 01:06:03 -08:00
Jed Reynolds
b9bd5f237e vr_profile2.py: adds related notes about how Netsmith handles a moved connection
Signed-off-by: Jed Reynolds <jed@candelatech.com>
2021-03-11 01:06:03 -08:00
Jed Reynolds
9811d10775 vr_profile2.py: progress moving router-connections
can move a router connection into a virtual router
refreshes the netsmith window more consistently
adds wait_until_vrcx_appears()

Signed-off-by: Jed Reynolds <jed@candelatech.com>
2021-03-09 01:07:48 -08:00
Jed Reynolds
648ce07edc vr_profile2.py: adds call to refresh netsmith window
Signed-off-by: Jed Reynolds <jed@candelatech.com>
2021-03-05 16:06:41 -08:00
Jed Reynolds
a1456dc92a vr_profile2.py: corrects lint errors in value comparisons, adds debugging
Signed-off-by: Jed Reynolds <jed@candelatech.com>
2021-03-05 00:35:15 -08:00
Jed Reynolds
9563d49c75 vr_profile2.py: updates import and moves file to version-numbered file
Signed-off-by: Jed Reynolds <jed@candelatech.com>
2021-03-05 00:35:15 -08:00