Fix nxos_interface_ospf idempotence issue (#27783)

* Add tests and fix 27167

* Add modify test
This commit is contained in:
Mike Wiebe 2017-08-07 13:54:31 -04:00 committed by Nathaniel Case
commit 65cf31e1ce
10 changed files with 197 additions and 0 deletions

View file

@ -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: