From ae0df675397bf7cd10d3c01eabd3553d4ddd1982 Mon Sep 17 00:00:00 2001 From: Nilashish Chakraborty Date: Thu, 19 Dec 2019 00:36:32 +0530 Subject: [PATCH] Add debug (#65909) Signed-off-by: NilashishC --- lib/ansible/modules/network/nxos/nxos_bgp_neighbor.py | 7 +++++-- .../targets/nxos_bgp_neighbor/tests/common/sanity.yaml | 3 +++ 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/lib/ansible/modules/network/nxos/nxos_bgp_neighbor.py b/lib/ansible/modules/network/nxos/nxos_bgp_neighbor.py index 7979da9ce71..1d2ab8bc84d 100644 --- a/lib/ansible/modules/network/nxos/nxos_bgp_neighbor.py +++ b/lib/ansible/modules/network/nxos/nxos_bgp_neighbor.py @@ -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': diff --git a/test/integration/targets/nxos_bgp_neighbor/tests/common/sanity.yaml b/test/integration/targets/nxos_bgp_neighbor/tests/common/sanity.yaml index 8f407ad0e6e..5edb702e73e 100644 --- a/test/integration/targets/nxos_bgp_neighbor/tests/common/sanity.yaml +++ b/test/integration/targets/nxos_bgp_neighbor/tests/common/sanity.yaml @@ -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"