Commit Graph

72 Commits

Author SHA1 Message Date
Chuck SmileyRekiere
e9fca61ed1 sta_connect2.py : table label updates
Signed-off-by: Chuck SmileyRekiere <chuck.smileyrekiere@candelatech.com>
2022-07-12 15:46:32 +05:30
Chuck SmileyRekiere
bd383f9028 sta_connect2.py : added test_input_info to the reporting
Signed-off-by: Chuck SmileyRekiere <chuck.smileyrekiere@candelatech.com>
2022-07-12 15:46:32 +05:30
Chuck SmileyRekiere
2a4b037c3d sta_connect2.py : added test_input_info to the reporting
Signed-off-by: Chuck SmileyRekiere <chuck.smileyrekiere@candelatech.com>
2022-07-12 15:46:32 +05:30
Chuck SmileyRekiere
07495c4729 sta_connect2.py : changed logger message to 'running traffic'
Signed-off-by: Chuck SmileyRekiere <chuck.smileyrekiere@candelatech.com>
2022-07-12 15:46:32 +05:30
Chuck SmileyRekiere
c12be1e4bf sta_connect2.py : added set log_level to arguments
Signed-off-by: Chuck SmileyRekiere <chuck.smileyrekiere@candelatech.com>
2022-07-12 15:46:31 +05:30
Chuck SmileyRekiere
69bcbebf3b sta_connect2.py : updated comments
Signed-off-by: Chuck SmileyRekiere <chuck.smileyrekiere@candelatech.com>
2022-07-12 15:46:31 +05:30
Chuck SmileyRekiere
45d7790f35 sta_connect2.py : added exit(1) for fail, exit(0) for pass
Signed-off-by: Chuck SmileyRekiere <chuck.smileyrekiere@candelatech.com>
2022-07-12 15:46:16 +05:30
Chuck SmileyRekiere
fcf7c22bc9 sta_connect2.py : wkhtmltopdf not working on windows ,
check platform.system() if 'Linux' then generate the pdf.

Signed-off-by: Chuck SmileyRekiere <chuck.smileyrekiere@candelatech.com>
2022-07-12 15:46:16 +05:30
Chuck SmileyRekiere
e97052f46c sta_connect2.py : moved the args.debug prior to the lf_logger_config_json
as json config will take presidence

Signed-off-by: Chuck SmileyRekiere <chuck.smileyrekiere@candelatech.com>
2022-07-12 15:46:16 +05:30
Scott Wedge
497c16a93d sta_connect2.py: add test ability for resource greater than 1
Signed-off-by: Scott Wedge <scott.wedge@candelatech.com>
2022-07-12 15:46:16 +05:30
Scott Wedge
bb65003775 sta_connect2.py: fix end-of-test cleanup
Signed-off-by: Scott Wedge <scott.wedge@candelatech.com>
2022-07-12 15:46:16 +05:30
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