From d796415dd419a0ba0c5b19ac2d1ac211886f7fb4 Mon Sep 17 00:00:00 2001 From: Matthew Stidham Date: Thu, 16 Dec 2021 12:01:01 -0800 Subject: [PATCH] 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 --- py-scripts/sta_connect.py | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/py-scripts/sta_connect.py b/py-scripts/sta_connect.py index 9fae931d..dc48ab9e 100755 --- a/py-scripts/sta_connect.py +++ b/py-scripts/sta_connect.py @@ -174,13 +174,8 @@ class StaConnect(Realm): return False for sta_name in self.station_names: - sta_url = self.get_station_url(sta_name) - response = self.json_get(sta_url) - if response: - if response["interface"]: - print("removing old station") - if self.port_exists(sta_name): - self.rm_port(sta_name) + if self.port_exists(sta_name, debug=False): + self.rm_port(sta_name, debug_=False) self.wait_until_ports_disappear(self.station_names) # Create stations and turn dhcp on