Sleep longer before removing gateways
1 second was just slightly too little time to wait and packets would occasionally be lost on primary switchover. Increase this to 2 seconds to provide more time for arping to run on the new primary.
This commit is contained in:
parent
d59280d829
commit
8ef21cf9f2
|
@ -253,7 +253,7 @@ class NodeInstance(object):
|
||||||
if self.config['enable_networking']:
|
if self.config['enable_networking']:
|
||||||
self.logger.out('Setting router {} to secondary state'.format(self.name), state='i')
|
self.logger.out('Setting router {} to secondary state'.format(self.name), state='i')
|
||||||
self.logger.out('Network list: {}'.format(', '.join(self.network_list)))
|
self.logger.out('Network list: {}'.format(', '.join(self.network_list)))
|
||||||
time.sleep(1)
|
time.sleep(2)
|
||||||
for network in self.d_network:
|
for network in self.d_network:
|
||||||
self.d_network[network].stopDHCPServer()
|
self.d_network[network].stopDHCPServer()
|
||||||
self.d_network[network].removeGateways()
|
self.d_network[network].removeGateways()
|
||||||
|
|
Loading…
Reference in New Issue