Fix a bug
This commit is contained in:
parent
1489486bbb
commit
726a6ceca5
|
@ -238,7 +238,9 @@ def updatenetworks(new_network_list):
|
||||||
for network in new_network_list:
|
for network in new_network_list:
|
||||||
if not network in s_network:
|
if not network in s_network:
|
||||||
s_network[network] = VXNetworkInstance.VXNetworkInstance(network, zk_conn, config, t_router[myhostname])
|
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 not network in new_network_list:
|
||||||
|
if this_router.network_state == 'primary':
|
||||||
s_network[network].stopDHCPServer()
|
s_network[network].stopDHCPServer()
|
||||||
s_network[network].removeGatewayAddress()
|
s_network[network].removeGatewayAddress()
|
||||||
s_network[network].removeNetwork()
|
s_network[network].removeNetwork()
|
||||||
|
|
Loading…
Reference in New Issue