summaryrefslogtreecommitdiff
path: root/network/nxos/nxos_ospf_vrf.py
diff options
context:
space:
mode:
Diffstat (limited to 'network/nxos/nxos_ospf_vrf.py')
-rw-r--r--network/nxos/nxos_ospf_vrf.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/network/nxos/nxos_ospf_vrf.py b/network/nxos/nxos_ospf_vrf.py
index 6e946d11..872dbd13 100644
--- a/network/nxos/nxos_ospf_vrf.py
+++ b/network/nxos/nxos_ospf_vrf.py
@@ -426,7 +426,7 @@ def state_present(module, existing, proposed, candidate):
proposed_commands = apply_key_map(PARAM_TO_COMMAND_KEYMAP, proposed)
existing_commands = apply_key_map(PARAM_TO_COMMAND_KEYMAP, existing)
- for key, value in proposed_commands.iteritems():
+ for key, value in proposed_commands.items():
if value is True:
commands.append(key)
@@ -480,7 +480,7 @@ def state_absent(module, existing, proposed, candidate):
parents = ['router ospf {0}'.format(module.params['ospf'])]
if module.params['vrf'] == 'default':
existing_commands = apply_key_map(PARAM_TO_COMMAND_KEYMAP, existing)
- for key, value in existing_commands.iteritems():
+ for key, value in existing_commands.items():
if value:
if key == 'timers throttle lsa':
command = 'no {0} {1} {2} {3}'.format(
@@ -547,11 +547,11 @@ def main():
existing = invoke('get_existing', module, args)
end_state = existing
- proposed_args = dict((k, v) for k, v in module.params.iteritems()
+ proposed_args = dict((k, v) for k, v in module.params.items()
if v is not None and k in args)
proposed = {}
- for key, value in proposed_args.iteritems():
+ for key, value in proposed_args.items():
if key != 'interface':
if str(value).lower() == 'true':
value = True