sta_connect.setup: check_exists should be used as an argument in rm_port, the existing code was probably from before we had the check_exists method

Signed-off-by: Matthew Stidham <stidmatt@gmail.com>
This commit is contained in:
Matthew Stidham
2022-01-24 17:11:37 -08:00
committed by shivam
parent 0c9215abb5
commit df5879fc77

View File

@@ -174,8 +174,7 @@ class StaConnect(Realm):
return False return False
for sta_name in self.station_names: for sta_name in self.station_names:
if self.port_exists(sta_name, debug=self.debug): self.rm_port(sta_name, check_exists=True, debug_=self.debug)
self.rm_port(sta_name, debug_=self.debug)
self.wait_until_ports_disappear(self.station_names, debug_=self.debug) self.wait_until_ports_disappear(self.station_names, debug_=self.debug)
# Create stations and turn dhcp on # Create stations and turn dhcp on