aboutsummaryrefslogtreecommitdiffstats
path: root/resources/libraries/python/InterfaceUtil.py
diff options
context:
space:
mode:
authorMatej Klotton <mklotton@cisco.com>2017-01-17 12:14:23 +0100
committerJan Gelety <jgelety@cisco.com>2017-01-17 14:00:09 +0000
commit282845448e5f43f8b77ba51053a883a20eb2dbc7 (patch)
treee638714d79a345f5cc7fb32ba0fbd146d19aaf4c /resources/libraries/python/InterfaceUtil.py
parent85256222da854fed5d6d1763f2969aaaf28544f1 (diff)
VIRL test: Replace IP probe for VXLAN test
Change-Id: Ic16f91beabdc2ac2e19ccc65c04790d36c15d477 Signed-off-by: Matej Klotton <mklotton@cisco.com> (cherry picked from commit eb4515115a69f5a3fe9b2fe178110cc5ff78b73a)
Diffstat (limited to 'resources/libraries/python/InterfaceUtil.py')
-rw-r--r--resources/libraries/python/InterfaceUtil.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/resources/libraries/python/InterfaceUtil.py b/resources/libraries/python/InterfaceUtil.py
index 0447ba5b15..2980afa349 100644
--- a/resources/libraries/python/InterfaceUtil.py
+++ b/resources/libraries/python/InterfaceUtil.py
@@ -225,6 +225,9 @@ class InterfaceUtil(object):
"""
if_data = InterfaceUtil.vpp_get_interface_data(node, interface)
+ if if_data['sup_sw_if_index'] != if_data['sw_if_index']:
+ if_data = InterfaceUtil.vpp_get_interface_data(
+ node, if_data['sup_sw_if_index'])
mac_data = [str(hex(item))[2:] for item in if_data['l2_address'][:6]]
mac_data_nice = []
for item in mac_data: