mirror of
				https://github.com/Telecominfraproject/wlan-lanforge-scripts.git
				synced 2025-10-31 10:48:02 +00:00 
			
		
		
		
	sta_connect: sta_connect.setup needs to not throw an error if the port does not exist.
It needs to quietly remove the old station and move on. Signed-off-by: Matthew Stidham <stidmatt@gmail.com>
This commit is contained in:
		| @@ -174,13 +174,8 @@ class StaConnect(Realm): | |||||||
|             return False |             return False | ||||||
|  |  | ||||||
|         for sta_name in self.station_names: |         for sta_name in self.station_names: | ||||||
|             sta_url = self.get_station_url(sta_name) |             if self.port_exists(sta_name, debug=False): | ||||||
|             response = self.json_get(sta_url) |                 self.rm_port(sta_name, debug_=False) | ||||||
|             if response: |  | ||||||
|                 if response["interface"]: |  | ||||||
|                     print("removing old station") |  | ||||||
|                     if self.port_exists(sta_name): |  | ||||||
|                         self.rm_port(sta_name) |  | ||||||
|         self.wait_until_ports_disappear(self.station_names) |         self.wait_until_ports_disappear(self.station_names) | ||||||
|  |  | ||||||
|         # Create stations and turn dhcp on |         # Create stations and turn dhcp on | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Matthew Stidham
					Matthew Stidham