From 4e4276002f88c3835ae13af46f256fa1a1935ad7 Mon Sep 17 00:00:00 2001 From: Matthew Stidham Date: Tue, 18 Jan 2022 12:15:03 -0800 Subject: [PATCH] LFUtils: Replace nc_show_ports with show_ports in wait_until_ports_appear to enable caching Signed-off-by: Matthew Stidham --- py-json/LANforge/LFUtils.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/py-json/LANforge/LFUtils.py b/py-json/LANforge/LFUtils.py index 9f77e5e6..990861fc 100644 --- a/py-json/LANforge/LFUtils.py +++ b/py-json/LANforge/LFUtils.py @@ -690,10 +690,10 @@ def wait_until_ports_appear(base_url="http://localhost:8080", port_list=(), debu pprint.pprint(existing_stations) found_stations = [] port_url = "/port/1" - ncshow_url = "/cli-json/nc_show_ports" + show_url = "/cli-json/show_ports" if base_url.endswith('/'): port_url = port_url[1:] - ncshow_url = ncshow_url[1:] + show_url = show_url[1:] sec_elapsed = 0 attempts = 0 while len(found_stations) < len(port_list) and sec_elapsed < timeout: @@ -710,7 +710,7 @@ def wait_until_ports_appear(base_url="http://localhost:8080", port_list=(), debu if json_response is not None: found_stations.append(port_name) else: - lf_r = LFRequest.LFRequest(base_url, ncshow_url, debug_=debug) + lf_r = LFRequest.LFRequest(base_url, show_url, debug_=debug) lf_r.addPostData({"shelf": shelf, "resource": resource_id, "port": port_name, "probe_flags": 5}) lf_r.jsonPost() if len(found_stations) < len(port_list):