Commit Graph

17 Commits

Author SHA1 Message Date
Matthew Stidham
50bd38aa1d test_l3_unicast_traffic_gen: Explicit is better than implicit. Don't pass in self.resource when it isn't a flag in the argument.
Don't use positional flags.

Signed-off-by: Matthew Stidham <stidmatt@gmail.com>
2022-07-12 15:45:33 +05:30
Matthew Stidham
b709834d25 test_l3_unicast_traffic_gen:
Change inheritance to realm because we were using local_realm, and it was inheriting from LFCliBase. Its better to just inherit directly from Realm since Realm inherits LFCliBase
Use the create_basic_argparse function from Realm so we have standard command line args instead of reinventing the wheel.
Don't use the radio flag for something which is inherently different from what radio is used for in our other scripts, that was confusing.
Signed-off-by: Matthew Stidham <stidmatt@gmail.com>
2022-07-12 15:45:32 +05:30
Matthew Stidham
a8663dae67 test_l3_unicast_traffic_gen: Fix regresisons by fixing the realm.wait_for_ip call
Signed-off-by: Matthew Stidham <stidmatt@gmail.com>
2022-07-12 15:45:32 +05:30
Matthew Stidham
7aeef0674c test_l3_unicast_traffic_gen: Fix potential unassigned variable error
Signed-off-by: Matthew Stidham <stidmatt@gmail.com>
2021-12-06 15:32:35 -08:00
Matthew Stidham
b9067250b7 test_l3_unicast_traffic_gen: Remove unused variables
Signed-off-by: Matthew Stidham <stidmatt@gmail.com>
2021-12-06 15:28:41 -08:00
Matthew Stidham
0763d67f5c test_l3_unicast_traffic_gen: More pythonic way to do a for loop. Avoids unnecessary variables
Signed-off-by: Matthew Stidham <stidmatt@gmail.com>
2021-12-06 15:25:49 -08:00
Matthew Stidham
ea79a485e0 test_l3_unicast_traffic_gen: Cleanup whitespace
Signed-off-by: Matthew Stidham <stidmatt@gmail.com>
2021-11-29 14:53:18 -08:00
Matthew Stidham
a7274caa6f test_l3_unicast_traffic_gen: Remove invalid comparisons
Signed-off-by: Matthew Stidham <stidmatt@gmail.com>
2021-11-16 11:05:42 -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
Chuck SmileyRekiere
743b5f56c9 Revert "Update py_scripts to be in line with pip standards"
This reverts commit 37df48594e.
2021-09-09 05:32:05 -06:00
Matthew Stidham
37df48594e Update py_scripts to be in line with pip standards
Signed-off-by: Matthew Stidham <stidmatt@gmail.com>
2021-09-08 16:57:10 -07:00
Chuck SmileyRekiere
0bd7f8a10f test_l3_scenario_throughput.py test_l3_unicatst_traffic_gen.py : deprecated _halt_on_error
Signed-off-by: Chuck SmileyRekiere <chuck.smileyrekiere@candelatech.com>
2021-04-22 14:47:06 -06:00
Dipti
5f81bdabb7 debug output, self.debug statements, better help 2020-12-15 13:04:57 -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
Chuck SmileyRekiere
2070f483b8 changed timing waiting for IP 2020-08-05 06:45:36 -06:00
Chuck SmileyRekiere
8e585a64cc initial check in of test_l3_unicast_traffic_gen.py, try except to remove_all_cx 2020-08-04 16:28:39 -06:00