Commit Graph

70 Commits

Author SHA1 Message Date
Logan Lipke
4908b80107 sta_connect.py:
Added return code check for run method
2022-07-12 15:46:25 +05:30
Logan Lipke
24171d2f11 sta_connect.py: Added kpi.csv generation,
reverted to older stop method,
renamed finish method to prevent conflict
2022-07-12 15:46:25 +05:30
Chuck SmileyRekiere
d07946133e sta_connect.py : added staConnect.exit_fail(), staConnect.exit_success()
Signed-off-by: Chuck SmileyRekiere <chuck.smileyrekiere@candelatech.com>
2022-07-12 15:46:16 +05:30
Logan Lipke
e3a7450269 sta_connect.py: Added new docstring to fit with scripting templates 2022-07-12 15:46:16 +05:30
Logan Lipke
b1f0363979 sta_connect.py: Fixed command line option issues 2022-07-12 15:46:16 +05:30
Chuck SmileyRekiere
19117b2ece refactored scripts to use --no_cleanup
Signed-off-by: Chuck SmileyRekiere <chuck.smileyrekiere@candelatech.com>
2022-07-12 15:46:15 +05:30
Ben Greear
217330c85a sta-connect: Add notes for improvement. 2022-07-12 15:45:49 +05:30
Matthew Stidham
df5879fc77 sta_connect.setup: check_exists should be used as an argument in rm_port, the existing code was probably from before we had the check_exists method
Signed-off-by: Matthew Stidham <stidmatt@gmail.com>
2022-07-12 15:45:45 +05:30
Matthew Stidham
8fb5a4c5f8 Both files: Fix wait_until_ports_disappear arguments, debug is called by debug_, not debug
Signed-off-by: Matthew Stidham <stidmatt@gmail.com>
2022-07-12 15:45:33 +05:30
Matthew Stidham
90cf89fa05 sta_connect: add debug when wait_until_something_something
Signed-off-by: Matthew Stidham <stidmatt@gmail.com>
2022-07-12 15:45:33 +05:30
Matthew Stidham
fe9696f2d6 sta_connect: When querying for ports port,ip,ap, don't spout debug output when the port doesn't exist. The test runs whether this works or not.
Signed-off-by: Matthew Stidham <stidmatt@gmail.com>
2022-07-12 15:45:24 +05:30
Matthew Stidham
d796415dd4 sta_connect: sta_connect.setup needs to not throw an error if the port does not exist.
It needs to quietly remove the old station and move on.

Signed-off-by: Matthew Stidham <stidmatt@gmail.com>
2021-12-16 12:01:01 -08:00
Matthew Stidham
865ea25964 sta_connect: Use explicit defaults in the argparser
Signed-off-by: Matthew Stidham <stidmatt@gmail.com>
2021-12-16 08:50:20 -08:00
Matthew Stidham
1cf362be8a sta_connect: Improve logic
Replace if XXX is None with if not XXX because we want to fail if the variable is blank or 0
Signed-off-by: Matthew Stidham <stidmatt@gmail.com>
2021-12-16 08:47:41 -08:00
Matthew Stidham
849deb89c2 sta_connect: Make logic more verbose
Signed-off-by: Matthew Stidham <stidmatt@gmail.com>
2021-12-16 08:36:06 -08:00
Matthew Stidham
638894a277 sta_connect.py: Don't spout an error if trying to remove a station which doesn't exist
Signed-off-by: Matthew Stidham <stidmatt@gmail.com>
2021-12-14 16:18:05 -08:00
Matthew Stidham
330eeabf8f sta_connect and sta_connect_example: Improve port removal logic
Signed-off-by: Matthew Stidham <stidmatt@gmail.com>
2021-12-14 15:12:42 -08:00
Matthew Stidham
679f4bf6b5 sta_connect: Fix create function
Signed-off-by: Matthew Stidham <stidmatt@gmail.com>
2021-12-14 09:02:18 -08:00
Matthew Stidham
8c1bf88b05 sta_connect: Use name_to_eid for upstream port
Signed-off-by: Matthew Stidham <stidmatt@gmail.com>
2021-12-13 17:22:03 -08:00
Matthew Stidham
5d89b48f8f sta_connect: name_to_eid
Signed-off-by: Matthew Stidham <stidmatt@gmail.com>
2021-12-13 17:11:42 -08:00
Matthew Stidham
2982bf3e49 sta_connect: Use name_to_eid to parse name of upstream port
Signed-off-by: Matthew Stidham <stidmatt@gmail.com>
2021-12-13 17:10:55 -08:00
Matthew Stidham
4a871c9516 sta_connect.py: Use name_to_eid to parse name of radio
Signed-off-by: Matthew Stidham <stidmatt@gmail.com>
2021-12-13 17:05:23 -08:00
Chuck SmileyRekiere
0687cc1b27 Revert "Revert "sta_connect: Fix whitespace""
This reverts commit 354ebaefeb.
2021-12-13 17:33:59 -07:00
Chuck SmileyRekiere
98e96523fc Revert "Revert "sta_connect: sta_connect works now""
This reverts commit 2f198da3d1.
2021-12-13 17:33:37 -07:00
Chuck SmileyRekiere
bb9735a9c9 Revert "sta_connect.py : added back in the older functionality for configuation."
This reverts commit f6e33994da.
2021-12-13 17:33:19 -07:00
Chuck SmileyRekiere
f6e33994da sta_connect.py : added back in the older functionality for configuation.
This script uses the json calles directly so will be helpful in working
with the auto generated library : work in progress

Signed-off-by: Chuck SmileyRekiere <chuck.smileyrekiere@candelatech.com>
2021-12-13 17:13:20 -07:00
Chuck SmileyRekiere
2f198da3d1 Revert "sta_connect: sta_connect works now"
This reverts commit 4d7451a287.
2021-12-13 17:13:20 -07:00
Chuck SmileyRekiere
354ebaefeb Revert "sta_connect: Fix whitespace"
This reverts commit 25f537a027.
2021-12-13 17:13:20 -07:00
Matthew Stidham
859e952ef9 sta_connect: Wait until ports appear after adding new stations
Signed-off-by: Matthew Stidham <stidmatt@gmail.com>
2021-12-13 11:56:14 -08:00
Matthew Stidham
25f537a027 sta_connect: Fix whitespace
Signed-off-by: Matthew Stidham <stidmatt@gmail.com>
2021-12-06 15:12:39 -08:00
Matthew Stidham
4d7451a287 sta_connect: sta_connect works now
Signed-off-by: Matthew Stidham <stidmatt@gmail.com>
2021-11-17 17:35:27 -08:00
Matthew Stidham
d50946f53c sta_connect: Remove invalid comparisons
Signed-off-by: Matthew Stidham <stidmatt@gmail.com>
2021-11-16 11:05:42 -08:00
Matthew Stidham
4e7e8b9360 1. Updating argparse commands so they include flags
2. Create check_argparse which allows us to check which flags are or are not included in argparse statements.

Signed-off-by: Matthew Stidham <stidmatt@gmail.com>
2021-09-21 16:13:07 -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
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
Matthew Stidham
952bab4acb Making it so customers can use sta_connect_example, fixing a github issue report.
Signed-off-by: Matthew Stidham <stidmatt@protonmail.com>
2021-03-24 10:03:53 -07:00
Jed Reynolds
8bc4a214d9 JSON: sta_connect.py: renames use_preexec_ parameter to suppress_related_commands_ 2020-06-29 14:20:08 -07:00
Ben Greear
d0a830745c sta-connect: Break run() into individual steps.
This lets the user have more control over how long the test runs,
allows the calling code to query other elements (such as cloud
controller) while test is running, and so forth.

Signed-off-by: Ben Greear<greearb@candelatech.com>
2020-06-26 16:19:54 -07:00
Jed Reynolds
1d420c565f JSON: uses explicit use_preexec_ arguments 2020-06-25 12:32:28 -07:00
Ben Greear
1eb5617d79 Merge /home/greearb/git/tip/wlan-testing/lanforge/lanforge-scripts.tip 2020-06-12 14:15:41 -07:00
Jed Reynolds
45b152e94b Fixes wpa2 constant 2020-06-11 07:12:31 -07:00
Ben Greear
cb1827ecac cicd: Make sta_connect print results to stdout when called as independent script. 2020-06-11 07:12:31 -07:00
Jed Reynolds
a49aceee9d sta_connect.py: updates main to assign item to station_names 2020-06-11 07:12:31 -07:00
Logan Lipke
17158fe4e0 Added debugOn attribute to StaConnect 2020-06-11 07:12:31 -07:00
Jed Reynolds
c2af87d70c Merge branch 'master' of github.com:greearb/lanforge-scripts 2020-06-10 21:09:49 -07:00
Jed Reynolds
3cc27988cf Fixes wpa2 constant 2020-06-10 21:08:54 -07:00
Ben Greear
f29cc0bd54 cicd: Make sta_connect print results to stdout when called as independent script. 2020-06-10 19:25:04 -07:00
Jed Reynolds
74632be0e7 sta_connect.py: updates main to assign item to station_names 2020-06-10 16:29:55 -07:00