Properly handle creating gateways and DHCP servers

This commit is contained in:
2018-09-30 13:42:04 -04:00
parent 3e937362cd
commit ce6d863424
2 changed files with 8 additions and 5 deletions

View File

@ -207,8 +207,8 @@ class RouterInstance():
except ValueError:
pass
# toggle state management of this router
if s_network != {} and not self.active: # If there's no network list, we're too early in startup
# toggle state management of this router
if s_network != {} and not self.active: # If there's no network list, we're too early in startup
if self.name == self.this_router:
if self.network_state == 'secondary':
self.become_secondary()