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
e0ff9f30a4
example-security-connection: Add exit code logic.
...
And clean up stations on exit if --noclean was not selected.
Signed-off-by: Ben Greear <greearb@candelatech.com >
2022-07-12 15:45:46 +05:30
Ben Greear
d532d7f8bf
logging: Add set_json logic to lf_logger_config
...
This will be common code, put it in the helper class.
Signed-off-by: Ben Greear <greearb@candelatech.com >
2022-07-12 15:45:45 +05:30
Ben Greear
2f3eb58c41
Add --log_level option to lfcli base class.
...
Let user specify the level of logging desired.
Test implementaiton in example_security_connection.py
Signed-off-by: Ben Greear <greearb@candelatech.com >
2022-07-12 15:45:45 +05:30
Ben Greear
793a215e2b
Add logging to example_security_connection script.
...
And add some more error checking with potential to exit
early if requested.
Signed-off-by: Ben Greear <greearb@candelatech.com >
2022-07-12 15:45:45 +05:30
Matthew Stidham
ec2fd22e2a
example_security_connection: Inherit directly from realm. local_realm is unstable
...
Signed-off-by: Matthew Stidham <stidmatt@gmail.com >
2022-07-12 15:44:27 +05:30
Matthew Stidham
6b7f8dc65a
example_security_connection: Fix whitespace
...
Signed-off-by: Matthew Stidham <stidmatt@gmail.com >
2022-07-12 15:44:27 +05:30
Matthew Stidham
772f2425ed
example_security_connection autopep8
...
Signed-off-by: Matthew Stidham <stidmatt@gmail.com >
2021-11-10 15:00:33 -08:00
Matthew Stidham
e6cf6b9337
1. Create pandas_extensions.py
...
2. Remove unused imports
Signed-off-by: Matthew Stidham <stidmatt@gmail.com >
2021-09-21 11:11:04 -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
Matthew Stidham
052319d2ce
Remove exit_on_error
...
Signed-off-by: Matthew Stidham <stidmatt@protonmail.com >
2021-03-17 15:19:34 -07:00
Dipti
549c8777b2
argparse and help fixed
2020-12-18 15:35:00 -08:00
Dipti
afba27daa7
example of forcing AP
2020-12-15 00:02:57 -08:00
Dipti
fcf05abb38
adds mode setting
2020-12-14 19:43:01 -08:00
Dipti
96d6ffda06
arg switches pt 1
2020-12-14 13:12:00 -08:00
Dipti
1ff7703cc4
generic example_x_connection script.
2020-12-10 01:20:18 -08:00