mirror of
https://github.com/Telecominfraproject/wlan-lanforge-scripts.git
synced 2025-11-02 19:58:03 +00:00
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>
This commit is contained in:
@@ -26,6 +26,10 @@ LFUtils = importlib.import_module("py-json.LANforge.LFUtils")
|
||||
Logg = importlib.import_module("lanforge_client.logg")
|
||||
logger = logging.getLogger(__name__)
|
||||
|
||||
"""
|
||||
To enable lanforge_api in this code, set the environmental variable LF_USE_AUTOGEN=1:
|
||||
$ LF_USE_AUTOGEN=1 python3 jbr_jag_test.py --test set_port --host ct521a-lion
|
||||
"""
|
||||
if os.environ.get("LF_USE_AUTOGEN") == 1:
|
||||
lanforge_api = importlib.import_module("lanforge_client.lanforge_api")
|
||||
LFSession = lanforge_api.LFSession
|
||||
|
||||
@@ -7,9 +7,6 @@ PURPOSE: create a wanlink
|
||||
EXAMPLE:
|
||||
$ ./jbr_create_wanlink.py --host ct521a-jana --wl_name snail
|
||||
|
||||
To enable using lf_json_autogen in other parts of the codebase, set LF_USE_AUTOGEN=1:
|
||||
$ LF_USE_AUTOGEN=1 ./jbr_jag_test.py --test set_port --host ct521a-lion
|
||||
|
||||
NOTES:
|
||||
|
||||
|
||||
@@ -130,4 +127,3 @@ def main():
|
||||
|
||||
if __name__ == "__main__":
|
||||
main()
|
||||
#
|
||||
|
||||
@@ -7,9 +7,6 @@ PURPOSE: exercises the LANforge/lf_json_autogen.py library
|
||||
EXAMPLE:
|
||||
$ ./jbr_jag_test.py --host ct521a-jana --test set_port
|
||||
|
||||
To enable using lf_json_autogen in other parts of the codebase, set LF_USE_AUTOGEN=1:
|
||||
$ LF_USE_AUTOGEN=1 ./jbr_jag_test.py --test set_port --host ct521a-lion
|
||||
|
||||
NOTES:
|
||||
this has not been worked on in a while, many parameters have changed
|
||||
|
||||
|
||||
Reference in New Issue
Block a user