mirror of
https://github.com/valitydev/salt.git
synced 2024-11-07 08:58:59 +00:00
Merge pull request #41275 from cloudflare/px_keepalive_opt
Adding keepalive optional arg for NAPALM always alive minions
This commit is contained in:
commit
0a22df3252
@ -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
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user