mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-22 12:50:22 -07:00
Fix nxos_interface_ospf idempotence issue (#27783)
* Add tests and fix 27167 * Add modify test
This commit is contained in:
parent
2571fc061e
commit
65cf31e1ce
10 changed files with 197 additions and 0 deletions
|
@ -285,6 +285,13 @@ def state_present(module, existing, proposed, candidate):
|
|||
existing_commands = apply_key_map(PARAM_TO_COMMAND_KEYMAP, existing)
|
||||
|
||||
for key, value in proposed_commands.items():
|
||||
if existing_commands.get(key):
|
||||
if key == 'ip router ospf':
|
||||
if proposed['area'] == existing['area']:
|
||||
continue
|
||||
if existing_commands[key] == proposed_commands[key]:
|
||||
continue
|
||||
|
||||
if value is True:
|
||||
commands.append(key)
|
||||
elif value is False:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue