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:
Joshua Boniface 2019-05-23 22:20:38 -04:00
parent d59280d829
commit 8ef21cf9f2
1 changed files with 1 additions and 1 deletions

View File

@ -253,7 +253,7 @@ class NodeInstance(object):
if self.config['enable_networking']:
self.logger.out('Setting router {} to secondary state'.format(self.name), state='i')
self.logger.out('Network list: {}'.format(', '.join(self.network_list)))
time.sleep(1)
time.sleep(2)
for network in self.d_network:
self.d_network[network].stopDHCPServer()
self.d_network[network].removeGateways()