mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-06 21:32:49 +00:00
fix nxos_vxlan_vtep_vni issue (#42183)
Signed-off-by: Trishna Guha <trishnaguha17@gmail.com>
This commit is contained in:
@@ -212,12 +212,13 @@ def state_present(module, existing, proposed, candidate):
|
||||
elif key == 'ingress-replication protocol' and value != existing_commands.get(key):
|
||||
evalue = existing_commands.get(key)
|
||||
dvalue = PARAM_TO_DEFAULT_KEYMAP.get('ingress_replication', 'default')
|
||||
if value != dvalue:
|
||||
if evalue != dvalue:
|
||||
if evalue:
|
||||
if value != dvalue:
|
||||
if evalue != dvalue:
|
||||
commands.append('no {0} {1}'.format(key, evalue))
|
||||
commands.append('{0} {1}'.format(key, value))
|
||||
else:
|
||||
commands.append('no {0} {1}'.format(key, evalue))
|
||||
commands.append('{0} {1}'.format(key, value))
|
||||
else:
|
||||
commands.append('no {0} {1}'.format(key, evalue))
|
||||
|
||||
elif value is True:
|
||||
commands.append(key)
|
||||
|
||||
Reference in New Issue
Block a user