mirror of
https://github.com/Telecominfraproject/wlan-lanforge-scripts.git
synced 2025-11-01 11:18:03 +00:00
LFUtils: fixes misnamed variable
This commit is contained in:
@@ -539,9 +539,9 @@ def wait_until_endps(base_url="http://localhost:8080", endp_list=(), debug=False
|
|||||||
port_url = port_url[1:]
|
port_url = port_url[1:]
|
||||||
ncshow_url = ncshow_url[1:]
|
ncshow_url = ncshow_url[1:]
|
||||||
|
|
||||||
while len(found_stations) < len(port_list):
|
while len(found_stations) < len(endp_list):
|
||||||
found_stations = []
|
found_stations = []
|
||||||
for port_eid in port_list:
|
for port_eid in endp_list:
|
||||||
|
|
||||||
eid = name_to_eid(port_eid)
|
eid = name_to_eid(port_eid)
|
||||||
shelf = eid[0]
|
shelf = eid[0]
|
||||||
@@ -557,7 +557,7 @@ def wait_until_endps(base_url="http://localhost:8080", endp_list=(), debug=False
|
|||||||
lf_r = LFRequest.LFRequest(base_url, ncshow_url)
|
lf_r = LFRequest.LFRequest(base_url, ncshow_url)
|
||||||
lf_r.addPostData({"shelf": shelf, "resource": resource_id, "port": port_name, "flags": 1})
|
lf_r.addPostData({"shelf": shelf, "resource": resource_id, "port": port_name, "flags": 1})
|
||||||
lf_r.formPost()
|
lf_r.formPost()
|
||||||
if (len(found_stations) < len(port_list)):
|
if (len(found_stations) < len(endp_list)):
|
||||||
sleep(2)
|
sleep(2)
|
||||||
|
|
||||||
if debug:
|
if debug:
|
||||||
|
|||||||
Reference in New Issue
Block a user