mirror of
				https://github.com/Telecominfraproject/wlan-lanforge-scripts.git
				synced 2025-11-04 04:38:02 +00:00 
			
		
		
		
	Add option to pass resource number eg for resource 2 [1.2.sta00]
This commit is contained in:
		@@ -270,7 +270,7 @@ def portNameSeries(prefix_="sta", start_id_=0, end_id_=1, padding_number_=10000,
 | 
			
		||||
    return port_name_series(prefix=prefix_, start_id=start_id_, end_id=end_id_, padding_number=padding_number_, radio=radio)
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
def port_name_series(prefix="sta", start_id=0, end_id=1, padding_number=10000, radio=None):
 | 
			
		||||
def port_name_series(prefix="sta", start_id=0, end_id=1, padding_number=10000, radio=None, resource=None):
 | 
			
		||||
    """
 | 
			
		||||
    This produces a named series similar to "sta000, sta001, sta002...sta0(end_id)"
 | 
			
		||||
    the padding_number is added to the start and end numbers and the resulting sum
 | 
			
		||||
@@ -285,7 +285,7 @@ def port_name_series(prefix="sta", start_id=0, end_id=1, padding_number=10000, r
 | 
			
		||||
 | 
			
		||||
    eid = None
 | 
			
		||||
    if radio is not None:
 | 
			
		||||
        eid = name_to_eid(radio)
 | 
			
		||||
        eid = name_to_eid(radio, resource=resource)
 | 
			
		||||
    
 | 
			
		||||
    name_list = []
 | 
			
		||||
    for i in range((padding_number + start_id), (padding_number + end_id + 1)):
 | 
			
		||||
 
 | 
			
		||||
@@ -587,7 +587,7 @@ class Realm(LFCliBase):
 | 
			
		||||
            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, resource=None)
 | 
			
		||||
        return LFUtils.name_to_eid(eid, non_port=non_port, resource=resource)
 | 
			
		||||
 | 
			
		||||
    def wait_for_ip(self, station_list=None, ipv4=True, ipv6=False, timeout_sec=360, debug=False):
 | 
			
		||||
        if not (ipv4 or ipv6):
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user