Merge pull request #41275 from cloudflare/px_keepalive_opt

Adding keepalive optional arg for NAPALM always alive minions
This commit is contained in:
Mike Place 2017-05-16 17:35:51 -05:00 committed by GitHub
commit 0a22df3252

View File

@ -210,6 +210,8 @@ def get_device_opts(opts, salt_obj=None):
# get driver object form NAPALM
if 'config_lock' not in network_device['OPTIONAL_ARGS']:
network_device['OPTIONAL_ARGS']['config_lock'] = False
if network_device['ALWAYS_ALIVE'] and 'keepalive' not in network_device['OPTIONAL_ARGS']:
network_device['OPTIONAL_ARGS']['keepalive'] = 5 # 5 seconds keepalive
return network_device