Commit Graph

24 Commits

Author SHA1 Message Date
matthew
b92248de8c create_wanlink: Remove redundant parentheses
Signed-off-by: matthew <stidmatt@gmail.com>
2021-12-03 08:21:57 -08:00
erinnerim
b89145bd97 create_wanlink.py, create_l3.py: comment out auto-start code 2021-10-07 08:57:41 -07:00
erinnerim
14a86b7699 create_wanlink.py: remove stopping wanlink 2021-10-06 17:02:38 -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
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
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
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
Erin Grimes
2f8c033ce8 - test_wanlink.py may now run with optional transfer-rate arguments:
* as together endpoints: --rate, the value of wanlink transfer rate of both endpoints in bits/sec.
	* as separate endpoints: --rate_A and/or --rate_B which default to the value of --rate.
	* the default value of --rate is 1000000 (1Gbps)

Signed-off-by: Erin Grimes <erin.grimes@candelatech.com>
2021-07-08 14:46:51 -07:00
Erin Grimes
b857d695b9 - test_wanlink.py may now run with optional latency arguments:
* as together endpoints: --latency, the value of wanlink delay of both endpoints in ms.
	* as separate endpoints: --latency_A and/or --latency_B which default to the value of --latency.
	* the value of --latency is 20 (ms) by default.
 - Arguments passed from the command line into LANtoWAN are simplified into a single container args.
 - Several arguments of LANtoWAN are instead initialized as data members.
 - create_wanlink.py no longer attempts to alter the wanlink after creating it.
 - create_wanlink.py outputs less to the terminal.

Signed-off-by: Erin Grimes <erin.grimes@candelatech.com>
2021-07-08 14:46:51 -07:00
Erin Grimes
55fd6253b8 py-scripts: Removed comments from end of wanlink file.
These comments seemed useless to Ben.

Signed-off-by: Erin Grimes <erin.grimes@candelatech.com>
2021-06-30 15:30:57 -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
Matthew Stidham
4dd66e6a49 Fixing test_wanlink so it should work now
Signed-off-by: Matthew Stidham <stidmatt@protonmail.com>
2021-03-12 13:33:14 -08:00
Jed Reynolds
5de806509e create_wanlink.py: make ports a variable 2021-01-13 19:28:47 -08:00
Jed Reynolds
2ce51d7089 fixes dangling merge from create_wanlink.py 2020-04-08 23:12:20 -07:00
Jed Reynolds
6355906fd2 create_wanlink fixes perl dict values 2020-01-07 16:56:35 -08:00
Jed Reynolds
7533af1798 create_wanlink.py: removes eid from examples, wanlink eids are confusing because theyre backwards 2020-01-02 14:49:25 -08:00
Jed Reynolds
ce8545e7f4 wanlink python: correctes while clause 2020-01-02 14:26:29 -08:00
Jed Reynolds
f8f91e52a4 Json: create_wanlink.py example script fully working demonstrating listing creation and toggling 2019-12-31 12:58:38 -08:00
Jed Reynolds
d00d8e7e21 create_wanlink python script can create and modify wanlinks but not display them. Need to create JSON handler for WAN Links 2019-12-17 16:31:07 -08:00