Commit Graph

61 Commits

Author SHA1 Message Date
Chuck SmileyRekiere
77c6b64146 sta_connect2.py : set logger level to debug when --debug passed in
Signed-off-by: Chuck SmileyRekiere <chuck.smileyrekiere@candelatech.com>
2022-07-12 15:46:16 +05:30
Scott Wedge
e590895364 sta_connect2.py: add pass/fail and subtest data to kpi.csv, add pdu value to tcp test traffic
Signed-off-by: Scott Wedge <scott.wedge@candelatech.com>
2022-07-12 15:46:15 +05:30
Scott Wedge
0140612c4e sta_connect2.py: modify --no_cleanup logic, modify output pass/fail
Signed-off-by: Scott Wedge <scott.wedge@candelatech.com>
2022-07-12 15:46:15 +05:30
Scott Wedge
4e317e6471 sta_connect2.py: add --no_cleanup logic
Signed-off-by: Scott Wedge <scott.wedge@candelatech.com>
2022-07-12 15:46:15 +05:30
Scott Wedge
739282f306 sta_connect2.py: add local_lf_report_dir and test runtime feature
Signed-off-by: Scott Wedge <scott.wedge@candelatech.com>
2022-07-12 15:46:15 +05:30
Scott Wedge
d5521f85ef sta_connect2.py: add test result report feature
Signed-off-by: Scott Wedge <scott.wedge@candelatech.com>
2022-07-12 15:46:15 +05:30
Scott Wedge
436a22b0c8 sta_connect2.py: add logger module and kpi.csv features
Signed-off-by: Scott Wedge <scott.wedge@candelatech.com>
2022-07-12 15:46:15 +05:30
Scott Wedge
b7ef70f4f1 sta_connect2.py: add logger module, fix bug in start()
Signed-off-by: Scott Wedge <scott.wedge@candelatech.com>
2022-07-12 15:46:04 +05:30
Matthew Stidham
b7236d5007 sta_connect2: wait_until_ports_appear needs list of ports
Signed-off-by: Matthew Stidham <stidmatt@gmail.com>
2022-07-12 15:45:45 +05:30
Matthew Stidham
199dcb7ca1 sta_connect2: debug needs to be done as store_true, just like the rest of lanforge_scripts
Signed-off-by: Matthew Stidham <stidmatt@gmail.com>
2022-07-12 15:45:33 +05:30
Matthew Stidham
07f6bf3ca6 sta_connect2: Pass debug argument to wait_until_ports_disappear
Signed-off-by: Matthew Stidham <stidmatt@gmail.com>
2022-07-12 15:45:33 +05:30
Matthew Stidham
35e21fdd68 sta_connect2: use debug argument flag and pass on to functions
Signed-off-by: Matthew Stidham <stidmatt@gmail.com>
2022-07-12 15:45:33 +05:30
Matthew Stidham
0a3ce42238 sta_connect2: Set station_profile.sta_prefix
Signed-off-by: Matthew Stidham <stidmatt@gmail.com>
2022-07-12 15:45:32 +05:30
Scott Wedge
9b180069d6 sta_connect2.py: update help output, text and whitespace updates
Signed-off-by: Scott Wedge <wedges@candelatech.com>
2022-07-12 15:44:27 +05:30
Matthew Stidham
d0ce85cbdc sta_connect2: Query for the correct l3_cx name
Signed-off-by: Matthew Stidham <stidmatt@gmail.com>
2022-07-12 15:44:26 +05:30
Matthew Stidham
ddccafa600 sta_connect2.py: The pre-cleanup text in StaConnect.setup was redundant frmo the pre_cleanup function.
It was also spouting errors if the station did not exist, so I made it so setup calls pre_cleanup and replaces the old noisy code.

Signed-off-by: Matthew Stidham <stidmatt@gmail.com>
2022-07-12 15:44:26 +05:30
jitendracandela
936615413f Replaced resource with upstream_resource
Signed-off-by: jitendracandela <jitendra.kushavah@candelatech.com>
2022-05-27 01:03:22 +05:30
jitendracandela
fbcda50c8b Removed cleanup_on_exit from start method
Signed-off-by: jitendracandela <jitendra.kushavah@candelatech.com>
2022-04-19 19:26:15 +05:30
Matthew Stidham
d6024b4198 sta_connect2: Fix logic on line 449, it needs to be upstream_resource = upstream_port[1], not args.upstream_port[1]
Signed-off-by: Matthew Stidham <stidmatt@gmail.com>
2021-12-16 14:55:45 -08:00
Matthew Stidham
776c0955bc sta_connect2: Use name_to_eid to parse the upstream resource and upstream port
Signed-off-by: Matthew Stidham <stidmatt@gmail.com>
2021-12-16 14:48:52 -08:00
Matthew Stidham
e1c33e033e sta_connect2: Use the default attribute in argparser, it is more robust
Explicitly declare the arguments in the intial call of StaConnect2 when possible, avoid if XXX: when possible

Signed-off-by: Matthew Stidham <stidmatt@gmail.com>
2021-12-16 14:45:19 -08:00
Matthew Stidham
d170bfe4dd sta_connect2: We don't want to use is not None, because then if the value is an empty string by accident we will produce errors, so I've fixed this
Signed-off-by: Matthew Stidham <stidmatt@gmail.com>
2021-12-16 14:32:31 -08:00
Matthew Stidham
49840e0802 sta_connect2: Remove unused imports
Signed-off-by: Matthew Stidham <stidmatt@gmail.com>
2021-12-15 10:01:45 -08:00
Matthew Stidham
92bdf1c44f sta_connect2: Update logic to be in line with the rest of the library
Signed-off-by: Matthew Stidham <stidmatt@gmail.com>
2021-12-15 10:00:38 -08:00
Matthew Stidham
0426c3b0a5 sta_connect2: Cleanup pre-existing stations when test starts
Signed-off-by: Matthew Stidham <stidmatt@gmail.com>
2021-12-15 09:51:31 -08:00
shivamcandela
38321f4cb9 Fixed the influx_utils import in sta_connect2.py
Signed-off-by: shivamcandela <shivam.thakur@candelatech.com>
2021-12-13 16:58:25 +05:30
Matthew Stidham
356dbcf15a Revert "sta_connect2: Make the mgr argument on sta_connect2 more robust"
This reverts commit b3d9447c7e.
2021-11-29 13:00:32 -08:00
Matthew Stidham
b3d9447c7e sta_connect2: Make the mgr argument on sta_connect2 more robust
Signed-off-by: Matthew Stidham <stidmatt@gmail.com>
2021-11-29 12:56:11 -08:00
Matthew Stidham
212f3c45ca sta_connect2: Remove redundant and repetitive code
Signed-off-by: Matthew Stidham <stidmatt@gmail.com>
2021-11-24 16:06:43 -08:00
Matthew Stidham
4037c4e53c sta_connect2: Rename shadow variables
Signed-off-by: Matthew Stidham <stidmatt@gmail.com>
2021-11-24 16:05:01 -08:00
Matthew Stidham
4b47f1c156 sta_connect2: Cleanup whitespace
Signed-off-by: Matthew Stidham <stidmatt@gmail.com>
2021-11-24 16:04:15 -08:00
Matthew Stidham
7d32906c82 sta_connect2.py: 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
shivamcandela
5d55973fad changed the fields to /all in collect_endp_stats to collect all endpoint data
Signed-off-by: shivamcandela <shivam.thakur@candelatech.com>
2021-07-29 00:55:45 +05:30
shivamcandela
fc7be285c6 added exception handeling in sta_connect2 and added extra securities to test_ipv4_ttls
Signed-off-by: shivamcandela <shivam.thakur@candelatech.com>
2021-05-26 02:13:19 +05:30
shivamcandela
523f1aec98 added extra security option in staconnect2
Signed-off-by: shivamcandela <shivam.thakur@candelatech.com>
2021-05-24 01:44:15 +05:30
Ben Greear
ab8d8abee3 Merge /home/greearb/btbits/x64_btbits/server/lf_scripts 2021-04-22 10:13:15 -07:00
bealler
ead8030183 Add WPA3 to sta_connect2.py
Signed-off-by: bealler <alex.beall@netexperience.com>
2021-04-07 14:17:36 -04:00
Matthew Stidham
9c585d9bfc Better way of calling influx library
Signed-off-by: Matthew Stidham <stidmatt@protonmail.com>
2021-04-06 14:31:39 -07:00
Matthew Stidham
13c08a7a76 Properly report influx data in sta_connect2.py
Signed-off-by: Matthew Stidham <stidmatt@protonmail.com>
2021-04-06 14:21:29 -07:00
Matthew Stidham
bf57a78c8c Add optional influx database monitoring to sta_connect2.py
Signed-off-by: Matthew Stidham <stidmatt@protonmail.com>
2021-04-06 12:13:58 -07:00
Matthew Stidham
052319d2ce Remove exit_on_error
Signed-off-by: Matthew Stidham <stidmatt@protonmail.com>
2021-03-17 15:19:34 -07:00
Matthew Stidham
5af72ba83b add wait_until_ports_disappear to sta_connect2
Signed-off-by: Matthew Stidham <stidmatt@protonmail.com>
2021-02-22 16:15:53 -08:00
Ben Greear
d628d3ea47 sta-connect2: Support removing all stations on the resource.
To better clean up system that is in unknown state.

Signed-off-by: Ben Greear <greearb@candelatech.com>
2020-12-10 12:05:32 -08:00
Jed Reynolds
42cc9f5896 sta_connect2.py: can now be used like test_connect2.py:
Please use command to perform test_connect2.py action:
./sta_connect2.py -d localhost --dut_security wpa2 --dut_ssid jedway-r7800-149 --dut_passwd jedway-r7800-149 --upstream_port eth1 --radio wiphy0 --prefix test
2020-11-20 11:16:35 -08:00
Jed Reynolds
bcd3f78b7e sta_connect2.py adds import that if not necessary, helpful for linters 2020-09-30 16:54:33 -07:00