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