From b73395646a3f001976a4a56c762198ee9f74cd3f Mon Sep 17 00:00:00 2001 From: Jed Reynolds Date: Wed, 1 Jun 2022 14:47:43 -0700 Subject: [PATCH] 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 --- py-json/LANforge/lfcli_base.py | 4 ++++ py-scripts/sandbox/jbr_create_wanlink.py | 4 ---- py-scripts/sandbox/jbr_jag_test.py | 3 --- 3 files changed, 4 insertions(+), 7 deletions(-) diff --git a/py-json/LANforge/lfcli_base.py b/py-json/LANforge/lfcli_base.py index 5b863ebf..f0f30b25 100644 --- a/py-json/LANforge/lfcli_base.py +++ b/py-json/LANforge/lfcli_base.py @@ -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 diff --git a/py-scripts/sandbox/jbr_create_wanlink.py b/py-scripts/sandbox/jbr_create_wanlink.py index 0cea923d..08c688b6 100755 --- a/py-scripts/sandbox/jbr_create_wanlink.py +++ b/py-scripts/sandbox/jbr_create_wanlink.py @@ -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() -# diff --git a/py-scripts/sandbox/jbr_jag_test.py b/py-scripts/sandbox/jbr_jag_test.py index ed0efd73..b324139b 100755 --- a/py-scripts/sandbox/jbr_jag_test.py +++ b/py-scripts/sandbox/jbr_jag_test.py @@ -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