summaryrefslogtreecommitdiff
path: root/network/nxos/nxos_vpc_interface.py
diff options
context:
space:
mode:
Diffstat (limited to 'network/nxos/nxos_vpc_interface.py')
-rw-r--r--network/nxos/nxos_vpc_interface.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/network/nxos/nxos_vpc_interface.py b/network/nxos/nxos_vpc_interface.py
index 6cb585b2..c0bde21c 100644
--- a/network/nxos/nxos_vpc_interface.py
+++ b/network/nxos/nxos_vpc_interface.py
@@ -440,7 +440,7 @@ def get_portchannel_vpc_config(module, portchannel):
mapping = get_existing_portchannel_to_vpc_mappings(module)
- for existing_vpc, port_channel in mapping.iteritems():
+ for existing_vpc, port_channel in mapping.items():
port_ch = str(port_channel[2:])
if port_ch == portchannel:
pc = port_ch
@@ -505,7 +505,7 @@ def main():
"before trying to assign it here. ",
existing_portchannel=mapping[vpc])
- for vpcid, existing_pc in mapping.iteritems():
+ for vpcid, existing_pc in mapping.items():
if portchannel == existing_pc.strip('Po') and vpcid != vpc:
module.fail_json(msg="This portchannel already has another"
" VPC configured. Remove it first "
@@ -532,13 +532,13 @@ def main():
config_value = 'peer-link'
- proposed = dict((k, v) for k, v in args.iteritems() if v is not None)
+ proposed = dict((k, v) for k, v in args.items() if v is not None)
existing = get_portchannel_vpc_config(module, portchannel)
end_state = existing
commands = []
if state == 'present':
- delta = dict(set(proposed.iteritems()).difference(existing.iteritems()))
+ delta = dict(set(proposed.items()).difference(existing.items()))
if delta:
command = get_commands_to_config_vpc_interface(
portchannel,