Fix a bug

This commit is contained in:
Joshua Boniface 2018-09-30 16:16:05 -04:00
parent 1489486bbb
commit 726a6ceca5
1 changed files with 4 additions and 2 deletions

View File

@ -238,7 +238,9 @@ def updatenetworks(new_network_list):
for network in new_network_list:
if not network in s_network:
s_network[network] = VXNetworkInstance.VXNetworkInstance(network, zk_conn, config, t_router[myhostname])
for network in network_list:
if not network in new_network_list:
if this_router.network_state == 'primary':
s_network[network].stopDHCPServer()
s_network[network].removeGatewayAddress()
s_network[network].removeNetwork()