jitendracandela
243f8f6bfd
Removed license contents found statement from logger
...
Signed-off-by: jitendracandela <jitendra.kushavah@candelatech.com >
2022-08-17 00:52:28 +05:30
Chuck SmileyRekiere
722e24593a
lfcli_base.py : Chamberview tests will snow 0 results which is not an error
...
Signed-off-by: Chuck SmileyRekiere <chuck.smileyrekiere@candelatech.com >
2022-07-12 15:46:32 +05:30
Jed Reynolds
b73395646a
lfcli_base.py: moves comments from sandbox about LF_USE_AUTOGEN to here
...
this is the appropriate file to have that comment in
Signed-off-by: Jed Reynolds <jed@bitratchet.com >
2022-07-12 15:46:31 +05:30
Chuck SmileyRekiere
0dc1fe4a83
logger.debug , changed passing two strings to passing a single string.
...
- logger.debug("jsonGet asked for " + _req_url)
+ logger.debug("jsonGet asked for {_req_url} ".format(_req_url=_req_url))
Signed-off-by: Chuck SmileyRekiere <chuck.smileyrekiere@candelatech.com >
2022-07-12 15:46:16 +05:30
Chuck SmileyRekiere
7618d9d139
lfcli_base.py : updated logger.debug to print out the license block.
...
logger.debug takes a single string removed the string addition.
Signed-off-by: Chuck SmileyRekiere <chuck.smileyrekiere@candelatech.com >
2022-07-12 15:46:16 +05:30
Chuck SmileyRekiere
61ed43c258
lfcli_base.py : added back in --port
...
Signed-off-by: Chuck SmileyRekiere <chuck.smileyrekiere@candelatech.com >
2022-07-12 15:46:16 +05:30
Chuck SmileyRekiere
f7fae8f381
lfcli_base.py: changed --port in lfcli_base to --lf_port , this addition of
...
--port created a conflict with lf_attend_mod_test.py The --port was introduced
a month ago. Will look for other conflicts in the regressions.
Changed lf_attend_mod_test.py to add back in --port
Signed-off-by: Chuck SmileyRekiere <chuck.smileyrekiere@candelatech.com >
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
Chuck SmileyRekiere
4ffb8c3935
lfcli_base.py base args parser supports --lfmgr and --port
...
Signed-off-by: Chuck SmileyRekiere <chuck.smileyrekiere@candelatech.com >
2022-07-12 15:46:02 +05:30
Ben Greear
4129f01860
lf_multipsk: Improve logging and add some TODOs
...
Add some more notes about external dependencies for this
script. It is meant to run with already-created vlans,
for instance.
Signed-off-by: Ben Greear <greearb@candelatech.com >
2022-07-12 15:45:53 +05:30
Jed Reynolds
0004047dc6
lfcli_base.py: adds debugging around what pass results are
...
Signed-off-by: Jed Reynolds <jed@bitratchet.com >
2022-07-12 15:45:49 +05:30
Ben Greear
b7d42bce04
lfcli-base: consider test passed if there are no failures.
...
Previous code also insisted that there was at least one success,
but that means that code doing not pass/fail tests would
fail.
Signed-off-by: Ben Greear <greearb@candelatech.com >
2022-07-12 15:45:49 +05:30
Jed Reynolds
d07c61ebc3
lfcli_base.py: updates check_connect() method to provide bold warning when detecting expired licenses.
...
Also generates warning about licences expiring within 30 days.
Signed-off-by: Jed Reynolds <jed@bitratchet.com >
2022-07-12 15:45:49 +05:30
Chuck SmileyRekiere
37db2052fb
lfcli_base.py prints changed to logger
...
Signed-off-by: Chuck SmileyRekiere <chuck.smileyrekiere@candelatech.com >
2022-07-12 15:45:46 +05:30
Ben Greear
0bddc504de
clibase: Print out pass and failure messages on exit.
...
This is nice info to have printed.
Signed-off-by: Ben Greear <greearb@candelatech.com >
2022-07-12 15:45:46 +05:30
Matthew Stidham
509d091b66
lfcli_base.LFCLIBase.create_basic_argparse: Add noclean argument
...
Signed-off-by: Matthew Stidham <stidmatt@gmail.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
Matthew Stidham
676bcab1d7
lfcli_base.check_connect: Replace while loop with for loop for additional security.
...
Add timeout argument
Signed-off-by: Matthew Stidham <stidmatt@gmail.com >
2022-07-12 15:45:45 +05:30
Chuck SmileyRekiere
7ad7f003c7
lfcli_base.py added --lf_logger_config_json to base args
...
Signed-off-by: Chuck SmileyRekiere <chuck.smileyrekiere@candelatech.com >
2022-07-12 15:45:45 +05:30
Matthew Stidham
12f4263843
lfcli_base: Fix whitespace
...
Signed-off-by: Matthew Stidham <stidmatt@gmail.com >
2021-12-06 11:24:32 -08:00
Matthew Stidham
8dcde027f8
lfcli_base: set type of num_stations to always be an integer. Dot not ever, ever, ever set a flag as default=False. Use action='store_true', and do not ever ever ever use both at the same time.
...
Signed-off-by: Matthew Stidham <stidmatt@gmail.com >
2021-11-23 10:01:00 -08:00
Matthew Stidham
78d712e03e
lfcli_base: Mutable defaults at the root of our code are a wonderful way to create unexpected problems.
...
Signed-off-by: Matthew Stidham <stidmatt@gmail.com >
2021-11-19 09:36:18 -08:00
Matthew Stidham
ad0d80dab1
lfcli_base.json_get: Improve json_get debugging
...
Signed-off-by: Matthew Stidham <stidmatt@gmail.com >
2021-11-16 18:46:35 -08:00
Matthew Stidham
bd760c7552
lfcli_base.py: Remove invalid comparisons
...
Signed-off-by: Matthew Stidham <stidmatt@gmail.com >
2021-11-16 11:06:34 -08:00
Matthew Stidham
be740527bf
lfcli_base: Create report-data folder in home directory if it doesn't exist
...
Signed-off-by: Matthew Stidham <stidmatt@gmail.com >
2021-11-15 15:56:31 -08:00
Matthew Stidham
d0c40cb4b2
lfcli_base fix if os.path.isdir command
...
Signed-off-by: Matthew Stidham <stidmatt@gmail.com >
2021-11-15 15:35:11 -08:00
Matthew Stidham
3c1858a609
Remove == True errors in lfcli_base
...
Signed-off-by: Matthew Stidham <stidmatt@gmail.com >
2021-11-15 13:36:05 -08:00
Matthew Stidham
c4511ad39a
Fix LFRequest.get so it inherits debug commands from the class
...
Signed-off-by: Matthew Stidham <stidmatt@gmail.com >
2021-11-08 18:52:26 -08:00
Jed Reynolds
2f7baf2987
lfcli_base.py: can now import lanforge_client.logg
...
Adds notes on where present logg() function is being used
Signed-off-by: Jed Reynolds <jed@bitratchet.com >
2021-11-03 19:53:30 -07:00
Jed Reynolds
be4c47295f
lfcli_base.py: adds logging logic that is distinct from lanforge_api.py but similar in function
...
this was checked with lf_help_check.bash and check_argparse.py.
Signed-off-by: Jed Reynolds <jreynolds@candelatech.com >
2021-11-02 16:45:28 -07:00
Jed Reynolds
8118406f7d
lfcli_base.py: whitespace, renamed variable x to argument
2021-11-02 16:45:28 -07:00
Matthew Stidham
8f2fa4bf8c
* We don't need to import LFUtils in lfcli_base
...
* local_realm in lf_attenmod is unused.
* local_realm in attenuator_profile is unused, because I'm switching to inheritance as part of my work eliminating redundancy.
Signed-off-by: Matthew Stidham <stidmatt@gmail.com >
2021-10-04 11:51:37 -07:00
Chuck SmileyRekiere
4744bc488a
lfcli_base.py : changed from pprint import pprint to import pprint
...
Signed-off-by: Chuck SmileyRekiere <chuck.smileyrekiere@candelatech.com >
2021-09-30 13:25:07 -06:00
Matthew Stidham
65808d21fa
1. Fix circular import error in LFRequest
...
2. add import re to lfcli_base
3. add debug output to l3_cxprofile, so it is how it used to be
4. add help options to regression_test so we can test how the help flags are working
5. Make test_ip_variable_time work better when it is imported directly by moving most of the logic to a function under IPVariableTime
6. Add init.py file to the LANforge directory and fix archiving in the to_pip.py script
Signed-off-by: Matthew Stidham <stidmatt@gmail.com >
2021-09-23 14:37:53 -07: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
erinnerim
60e9853bb6
Revert "importlib refactor lfcli_base.py"
...
This reverts commit 787edf2d51 .
2021-09-10 17:56:41 -07:00
erinnerim
787edf2d51
importlib refactor lfcli_base.py
2021-09-10 17:09:13 -07:00
Chuck SmileyRekiere
2efbc62842
Revert "Update py_json files to be compatible with pip standards"
...
This reverts commit 0be47c82de .
2021-09-09 05:32:31 -06:00
Chuck SmileyRekiere
8e9909f2d0
Revert "Revert "Update py_json files to be compatible with pip standards""
...
This reverts commit 6b0322cafa .
2021-09-09 05:28:17 -06:00
Chuck SmileyRekiere
6b0322cafa
Revert "Update py_json files to be compatible with pip standards"
...
This reverts commit 0be47c82de .
2021-09-09 05:24:20 -06:00
Matthew Stidham
0be47c82de
Update py_json files to be compatible with pip standards
...
Signed-off-by: Matthew Stidham <stidmatt@gmail.com >
2021-09-08 16:54:45 -07:00
Jed Reynolds
f60f0055be
LFRequest error printing is now more centralized:
...
print_diagnostics extracts X-Error headers first
LFRequest can track errors in self.error_list
LFReuqest can print errors
Classes lf lfcli_base calling lfrequest.get_as_json() can expose 404 or other errors using lfrequest.print_errors()
Signed-off-by: Jed Reynolds <jed@candelatech.com >
2021-07-29 16:53:21 -07:00
Chuck SmileyRekiere
4f7154b881
lfcli_base.py: added success method that does not exit to allow for report generation from script after success
...
Signed-off-by: Chuck SmileyRekiere <chuck.smileyrekiere@candelatech.com >
2021-04-07 05:36:18 -06:00
Matthew Stidham
519cd785cb
Remove halt on error from all inheritors of realm
...
Signed-off-by: Matthew Stidham <stidmatt@protonmail.com >
2021-03-17 14:26:06 -07:00
Dipti
1b87a6926b
v1 classes are taken out of realm.py, into their own files
...
Signed-off-by: Dipti <dipti.dhond@candelatech.com >
2021-03-05 23:39:07 -08:00
Dipti
ff8553f548
inheritance of L3CXProf v1 is back to LFClibase
...
Signed-off-by: Dipti <dipti.dhond@candelatech.com >
2021-03-03 13:09:52 -08:00
Dipti
434feca6a5
Inheritance from base_profile works
...
Signed-off-by: Dipti <dipti.dhond@candelatech.com >
2021-03-02 13:46:24 -08:00
Jed Reynolds
f423588e59
whitespace
...
Signed-off-by: Jed Reynolds <jed@candelatech.com >
2021-03-02 13:13:57 -08:00