Commit Graph

44 Commits

Author SHA1 Message Date
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
Logan Lipke
383d2cf7b9 Updated to add wpa and wep options for dut_security 2020-08-26 13:41:59 -07:00
Dipti Dhond
b19e55fe3a working now 2020-08-06 15:13:17 -07:00
Dipti Dhond
2bccd46dbd changed SSID to jedway-open-1 2020-07-31 16:24:15 -07:00
Jed Reynolds
29e831dbb2 sta_connect2.py: updated to use modern Realm methods 2020-07-30 13:51:39 -07:00
Jed Reynolds
da22a57212 sta_connect2.py passes 2020-07-02 11:00:54 -07:00
Jed Reynolds
2f8d4a44a1 sta_connect2.py: lots of work creating L3 connections, lots of fixes 2020-07-02 01:47:09 -07:00
Jed Reynolds
16ba291bbb sta_connect2.py: removes unused code, adds report-timer 2020-07-01 23:01:32 -07:00
Jed Reynolds
d59ba879f5 sta_connect2.py: now able to create L3 connection 2020-07-01 17:00:28 -07:00
Jed Reynolds
822dc0e036 sta_connect2.py: WIP creating layer3 connections, needs realm.py developments 2020-06-16 23:24:38 -07:00
Jed Reynolds
05ce5c109d sta_connect2.py: divides up code into setup(), start(), stop(), clean() methods 2020-06-16 23:24:38 -07:00
Jed Reynolds
b413be3850 sta_connect2.py: WIP: introduces Realm based test class, presently crippled 2020-06-16 23:24:38 -07:00