Add option to pass resource number eg for resource 2 [1.2.sta00]

This commit is contained in:
anjali
2021-07-02 23:02:07 +05:30
parent 41b09a3458
commit ded93a3d33
5 changed files with 17 additions and 12 deletions

View File

@@ -582,12 +582,12 @@ class Realm(LFCliBase):
return matched_map
def name_to_eid(self, eid, debug=False, non_port=False):
def name_to_eid(self, eid, debug=False, non_port=False, resource=None):
if debug:
self.logg(level="debug", mesg="name_to_eid: "+str(eid))
if (type(eid) is list) or (type(eid) is tuple):
return eid
return LFUtils.name_to_eid(eid, non_port=non_port)
return LFUtils.name_to_eid(eid, non_port=non_port, resource=None)
def wait_for_ip(self, station_list=None, ipv4=True, ipv6=False, timeout_sec=360, debug=False):
if not (ipv4 or ipv6):