summaryrefslogtreecommitdiffstats
path: root/test/vpp_papi_provider.py
diff options
context:
space:
mode:
authorJan Gelety <jgelety@cisco.com>2016-12-20 17:32:45 +0100
committerDamjan Marion <dmarion.lists@gmail.com>2017-02-21 22:20:58 +0000
commit057bb8c3a4c509652457b3f679a64077a5aa8505 (patch)
tree8dd2df85f69bd29c3ab1feec1009b0cf1e0bfa47 /test/vpp_papi_provider.py
parent82786c418ffec3eede70d747747a23153a27778d (diff)
test: ip6 vrf instances multi-context test (CSIT-497)
- add/delete IPv6 VRF instances and verify results by parsing output of ip6_fib_dump API command and by traffic - small changes in assert_nothing_captured and get_capture to get logged unexpected packets Change-Id: I32207447be2df942e335aa9890ff52fb88e46597 Signed-off-by: Jan Gelety <jgelety@cisco.com>
Diffstat (limited to 'test/vpp_papi_provider.py')
-rw-r--r--test/vpp_papi_provider.py8
1 files changed, 6 insertions, 2 deletions
diff --git a/test/vpp_papi_provider.py b/test/vpp_papi_provider.py
index 7e1a91cd707..842c21b810b 100644
--- a/test/vpp_papi_provider.py
+++ b/test/vpp_papi_provider.py
@@ -251,9 +251,10 @@ class VppPapiProvider(object):
{'sw_if_index': sw_if_index,
'enable': is_enable})
- def sw_interface_ra_suppress(self, sw_if_index):
+ def sw_interface_ra_suppress(self, sw_if_index, suppress=1):
return self.api(self.papi.sw_interface_ip6nd_ra_config,
- {'sw_if_index': sw_if_index})
+ {'sw_if_index': sw_if_index,
+ 'suppress': suppress})
def ip6_sw_interface_ra_config(self, sw_if_index,
no,
@@ -601,6 +602,9 @@ class VppPapiProvider(object):
def ip_fib_dump(self):
return self.api(self.papi.ip_fib_dump, {})
+ def ip6_fib_dump(self):
+ return self.api(self.papi.ip6_fib_dump, {})
+
def ip_neighbor_add_del(self,
sw_if_index,
mac_address,