Commit Graph

15 Commits

Author SHA1 Message Date
Matthew Stidham
418db00d4d test_wanlink: main() takes only 1 argument
Signed-off-by: Matthew Stidham <stidmatt@gmail.com>
2021-11-29 13:10:02 -08: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
f56a4431d8 test_wanlink.py: changed imports to work the old way; fixes --help by using %% instead of % which is a metacharacter in argparse
Signed-off-by: Jed Reynolds <jed@candelatech.com>
2021-09-09 15:50:41 -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
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
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
Matthew Stidham
c3c2d7a6a3 Fixes in test_wanlink, fix formatting in ipv4_variable_time
Signed-off-by: Matthew Stidham <stidmatt@protonmail.com>
2021-03-12 11:26:10 -08:00
Matthew Stidham
3c635f94d8 fixing regression_test test wanlink 2021-02-09 13:25:40 -08:00
Matthew Stidham
b8aec4c3ed fix text_wanlink 2021-02-09 11:40:54 -08:00
Matthew Stidham
c20b5f4272 regression test additions and fixes to several scripts 2021-02-05 11:24:40 -08:00
Ben Greear
960b87b61f python: flex-longevity, library cleanup.
Remove use of 'resource' where possible, use port EIDs instead for
multi-resource flexibility.

Remove some spurious 'sleep' calls.  If you think you need to sleep
2 seconds, you are probably facing a real race bug, so diagnose that
instead or put big comments around why you added a sleep.

Lots of changes to flex longevity, hopefully it can support multiple
connection types now, but not tested that yet.

Signed-off-by: Ben Greear<greearb@candelatech.com>
2020-08-05 13:13:24 -07:00
Jed Reynolds
15f7696462 changes set_prefix to set_number_template because the method name/param had wrong meaning 2020-07-02 01:46:34 -07:00
Logan Lipke
effc1b71ff Changed name to better reflect script content 2020-06-24 17:07:49 -07:00