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
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
3d61ee2e5f
create_vr.py: uses apply_netsmith instead of refresh_netsmith, changes do_refresh to do_sync
...
Signed-off-by: Jed Reynolds <jed@candelatech.com >
2021-03-11 01:06:03 -08:00
Jed Reynolds
62c9830a3d
create_vr.py: WIP: updates clean(), refreshes netsmith earlier, waits until router-connections appear
...
Signed-off-by: Jed Reynolds <jed@candelatech.com >
2021-03-09 01:07:48 -08:00
Jed Reynolds
33b5472263
create_vr.py: removes unused variables
...
Signed-off-by: Jed Reynolds <jed@candelatech.com >
2021-03-09 01:07:48 -08:00
Jed Reynolds
8c6910a60f
create_vr.py: adds redirects to cleanup, fixes full router query
...
Signed-off-by: Jed Reynolds <jed@candelatech.com >
2021-03-05 16:06:41 -08:00
Jed Reynolds
f595c3dd87
create_vr: WIP using refresh_netsmith()
...
Signed-off-by: Jed Reynolds <jed@candelatech.com >
2021-03-04 17:09:08 -08:00
Jed Reynolds
5975b178f6
create_vr.py: debugging
...
Signed-off-by: Jed Reynolds <jed@candelatech.com >
2021-03-02 13:13:57 -08:00
Jed Reynolds
b869a46c12
create_vr.py: start() method attempts to test if vrcx is in router WIP
...
Signed-off-by: Jed Reynolds <jed@candelatech.com >
2021-03-02 13:13:57 -08:00
Jed Reynolds
a73e9723d5
create_vr.py: start() method attempts to move vrcx
...
Signed-off-by: Jed Reynolds <jed@candelatech.com >
2021-03-02 00:08:00 -08:00
Jed Reynolds
b3b36be2ae
create_vr.py: adding vrcx movement
...
Signed-off-by: Jed Reynolds <jed@candelatech.com >
2021-03-02 00:08:00 -08:00
Jed Reynolds
4f85aa86c9
create_vr.py: fixes broken requires/default option for vr_name
...
Signed-off-by: Jed Reynolds <jed@candelatech.com >
2021-02-26 12:29:04 -08:00
Jed Reynolds
7f5f10c485
create_vr.py: moves logic into profile cleanup method
...
Signed-off-by: Jed Reynolds <jed@candelatech.com >
2021-02-16 15:02:13 -08:00
Jed Reynolds
171834db52
create_vr.py: adding debugging trying to see if updates appear in Netsmith
...
Signed-off-by: Jed Reynolds <jed@candelatech.com >
2021-02-16 15:02:13 -08:00
Jed Reynolds
1b9fc1f35c
creating a VR, still does not sync the display. WIP
2021-02-15 16:48:59 -08:00
Matthew Stidham
f7162411e6
create scripts print when they are finished
2021-02-10 13:25:41 -08:00
Jed Reynolds
83a72873e7
create_vr.py: adds clean method
2021-02-04 14:50:13 -08:00
Jed Reynolds
052779ad06
create_vr.py: WIP can now create bare VR
2021-02-02 21:19:16 -08:00
Jed Reynolds
088659b9ad
create_vr.py: removes use of halt parameter
2021-02-02 20:55:11 -08:00
Jed Reynolds
3f8c273512
create_vr.py WIP
2021-02-02 20:55:11 -08:00
Jed Reynolds
12b044db87
create_vr.py: renaming parameters to --vr_names
2021-02-02 20:55:11 -08:00
Jed Reynolds
8a513833eb
create_vr.py WIP, to be used for creating virtual routers
2021-01-29 15:01:27 -08:00