aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorNeale Ranns <nranns@cisco.com>2017-09-12 09:45:04 -0700
committerFlorin Coras <florin.coras@gmail.com>2017-09-13 17:31:13 +0000
commit2297af016d4c1ecdd0c695dc736e8f5a988e89bd (patch)
treef887e39e50144e5052d0058605ed63cfa40c01f9 /test
parent49fe046e431c4d76b0c45c609e05e1b0a3063360 (diff)
Add a name to the creation of an IP and MPLS table
Change-Id: I4b4648831551519b2ffb6f93255d28a4b8726c22 Signed-off-by: Neale Ranns <nranns@cisco.com>
Diffstat (limited to 'test')
-rw-r--r--test/test_ip6_vrf_multi_instance.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/test_ip6_vrf_multi_instance.py b/test/test_ip6_vrf_multi_instance.py
index 769cb2e51b3..8dd228ae500 100644
--- a/test/test_ip6_vrf_multi_instance.py
+++ b/test/test_ip6_vrf_multi_instance.py
@@ -316,10 +316,10 @@ class TestIP6VrfMultiInst(VppTestCase):
vrf_exist = False
vrf_count = 0
for ip6_fib_details in ip6_fib_dump:
- if ip6_fib_details[2] == vrf_id:
+ if ip6_fib_details.table_id == vrf_id:
if not vrf_exist:
vrf_exist = True
- addr = inet_ntop(socket.AF_INET6, ip6_fib_details[4])
+ addr = inet_ntop(socket.AF_INET6, ip6_fib_details.address)
addrtype = in6_getAddrType(addr)
vrf_count += 1 if addrtype == IPV6_ADDR_UNICAST else 0
if not vrf_exist and vrf_count == 0: