aboutsummaryrefslogtreecommitdiffstats
path: root/resources/libraries/python/IPv4NodeAddress.py
diff options
context:
space:
mode:
authorMiroslav Miklus <mmiklus@cisco.com>2016-05-08 14:11:51 +0200
committerJan Gelety <jgelety@cisco.com>2016-06-28 00:15:03 +0000
commitcbd47fbe97945e9dc6584d08cd2266e3a7536a68 (patch)
tree9344a863606381b2ce8069d82f0731440c31b295 /resources/libraries/python/IPv4NodeAddress.py
parent1689b0781206d874fd2b664cdd7d770f1e3932c8 (diff)
Use interface key instead of interface name.
JIRA: CSIT-141 Change-Id: I75cef6d570ab45ea9c4af838b6bf68cefc7c1a91 Signed-off-by: Miroslav Miklus <mmiklus@cisco.com>
Diffstat (limited to 'resources/libraries/python/IPv4NodeAddress.py')
-rw-r--r--resources/libraries/python/IPv4NodeAddress.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/resources/libraries/python/IPv4NodeAddress.py b/resources/libraries/python/IPv4NodeAddress.py
index 25179a3119..617377d35a 100644
--- a/resources/libraries/python/IPv4NodeAddress.py
+++ b/resources/libraries/python/IPv4NodeAddress.py
@@ -79,7 +79,8 @@ def get_variables(nodes, networks=IPV4_NETWORKS[:]):
port_idx = 0
ports = {}
for node in nodes.values():
- if_name = topo.get_interface_by_link_name(node, link)
+ if_key = topo.get_interface_by_link_name(node, link)
+ if_name = topo.get_interface_name(node, if_key)
if if_name is not None:
port = {'addr': str(next(net_hosts)),
'node': node['host'],