Fix defaulting neighbor password

Add debug (#65909)

Signed-off-by: NilashishC <nilashishchakraborty8@gmail.com>
(cherry picked from commit ae0df67539)

Add changelog for nxos_bgp_neighbor fix

Signed-off-by: NilashishC <nilashishchakraborty8@gmail.com>
pull/66383/head
Nilashish Chakraborty 5 years ago committed by Matt Clay
parent 1a7500b72a
commit eab972a70e

@ -0,0 +1,3 @@
---
bugfixes:
- Fix how the neighbour password was being defaulted (https://github.com/ansible/ansible/pull/65909)

@ -327,8 +327,11 @@ def state_present(module, existing, proposed, candidate):
commands.append('no {0}'.format(key))
elif value == 'default':
if existing_commands.get(key):
existing_value = existing_commands.get(key)
commands.append('no {0} {1}'.format(key, existing_value))
if key == 'password':
commands.append("no password")
else:
existing_value = existing_commands.get(key)
commands.append('no {0} {1}'.format(key, existing_value))
else:
if key == 'log-neighbor-changes':
if value == 'enable':

@ -10,6 +10,9 @@
- set_fact: log_neighbor_changesd="disable"
when: (imagetag and (imagetag is version_compare('D1', 'ne')) and (imagetag is version_compare('N1', 'ne')))
- debug:
var: titanium
- set_fact: remove_private_asa="all"
when: not titanium
- set_fact: remove_private_asr="replace-as"

Loading…
Cancel
Save