diff options
author | Miroslav Miklus <mmiklus@cisco.com> | 2016-05-08 14:11:51 +0200 |
---|---|---|
committer | Jan Gelety <jgelety@cisco.com> | 2016-06-28 00:15:03 +0000 |
commit | cbd47fbe97945e9dc6584d08cd2266e3a7536a68 (patch) | |
tree | 9344a863606381b2ce8069d82f0731440c31b295 /resources/libraries/python/IPv6Util.py | |
parent | 1689b0781206d874fd2b664cdd7d770f1e3932c8 (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/IPv6Util.py')
-rw-r--r-- | resources/libraries/python/IPv6Util.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/resources/libraries/python/IPv6Util.py b/resources/libraries/python/IPv6Util.py index 35ec8d5258..437a7c0cbb 100644 --- a/resources/libraries/python/IPv6Util.py +++ b/resources/libraries/python/IPv6Util.py @@ -81,18 +81,19 @@ class IPv6Util(object): return IPv6Util.ipv6_ping(src_node, dst_ip, cnt, size, timeout) @staticmethod - def get_node_port_ipv6_address(node, interface, nodes_addr): + def get_node_port_ipv6_address(node, iface_key, nodes_addr): """Return IPv6 address of the node port. :param node: Node in the topology. - :param interface: Interface name of the node. + :param iface_key: Interface key of the node. :param nodes_addr: Nodes IPv6 addresses. :type node: dict - :type interface: str + :type iface_key: str :type nodes_addr: dict :return: IPv6 address string. :rtype: str """ + interface = Topology.get_interface_name(node, iface_key) for net in nodes_addr.values(): for port in net['ports'].values(): host = port.get('node') |