summaryrefslogtreecommitdiffstats
path: root/test/vpp_interface.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_interface.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_interface.py')
-rw-r--r--test/vpp_interface.py10
1 files changed, 7 insertions, 3 deletions
diff --git a/test/vpp_interface.py b/test/vpp_interface.py
index 29edb70ed58..9c904aac8fd 100644
--- a/test/vpp_interface.py
+++ b/test/vpp_interface.py
@@ -226,12 +226,16 @@ class VppInterface(object):
self.has_ip6_config = False
self.has_ip6_config = False
- def configure_ipv6_neighbors(self):
- """For every remote host assign neighbor's MAC to IPv6 address."""
+ def configure_ipv6_neighbors(self, vrf_id=0):
+ """For every remote host assign neighbor's MAC to IPv6 addresses.
+
+ :param vrf_id: The FIB table / VRF ID. (Default value = 0)
+ """
for host in self._remote_hosts:
macn = host.mac.replace(":", "").decode('hex')
+ ipn = host.ip6n
self.test.vapi.ip_neighbor_add_del(
- self.sw_if_index, macn, host.ip6n, is_ipv6=1)
+ self.sw_if_index, macn, ipn, vrf_id, is_ipv6=1)
def unconfig(self):
"""Unconfigure IPv6 and IPv4 address on the VPP interface."""