summaryrefslogtreecommitdiff
path: root/network/nxos/nxos_bgp.py
diff options
context:
space:
mode:
Diffstat (limited to 'network/nxos/nxos_bgp.py')
-rw-r--r--network/nxos/nxos_bgp.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/network/nxos/nxos_bgp.py b/network/nxos/nxos_bgp.py
index 7e117873..e271cbf9 100644
--- a/network/nxos/nxos_bgp.py
+++ b/network/nxos/nxos_bgp.py
@@ -754,7 +754,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)
elif value is False:
@@ -950,7 +950,7 @@ def main():
]
if module.params['vrf'] != 'default':
- for param, inserted_value in module.params.iteritems():
+ for param, inserted_value in module.params.items():
if param in GLOBAL_PARAMS and inserted_value:
module.fail_json(msg='Global params can be modified only'
' under "default" VRF.',
@@ -967,10 +967,10 @@ def main():
existing_asn=existing.get('asn'))
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 != 'asn' and key != 'vrf':
if str(value).lower() == 'default':
value = PARAM_TO_DEFAULT_KEYMAP.get(key)