mirror of
https://github.com/Telecominfraproject/wlan-lanforge-scripts.git
synced 2025-12-15 18:07:07 +00:00
Add option to pass resource number eg for resource 2 [1.2.sta00]
This commit is contained in:
@@ -549,8 +549,11 @@ def waitUntilPortsAppear(base_url="http://localhost:8080", port_list=(), debug=F
|
||||
"""
|
||||
return wait_until_ports_appear(base_url, port_list, debug=debug)
|
||||
|
||||
def name_to_eid(input, non_port=False):
|
||||
rv = [1, 1, "", ""]
|
||||
def name_to_eid(input, non_port=False, resource=None):
|
||||
if resource is None:
|
||||
rv = [1, 1, "", ""]
|
||||
else:
|
||||
rv = [1, resource, "", ""]
|
||||
info = []
|
||||
if (input is None) or (input == ""):
|
||||
raise ValueError("name_to_eid wants eid like 1.1.sta0 but given[%s]" % input)
|
||||
|
||||
Reference in New Issue
Block a user