summaryrefslogtreecommitdiffstats
path: root/test/vpp_interface.py
diff options
context:
space:
mode:
authorJan <jgelety@cisco.com>2016-12-08 13:10:03 +0100
committerDamjan Marion <dmarion.lists@gmail.com>2017-01-11 11:57:39 +0000
commite546d3b0f739d35ec2e4702181d99ff4190e8b46 (patch)
treea2f0595c9706b750ed79b0ddfd945c7af62a05a1 /test/vpp_interface.py
parent8cb07c9237787e66921f252be2ed2aa5557769c4 (diff)
test: ip4 vrf instances multi-context test (CSIT-492)
- add/delete IPv4 VRF instances and verify results by parsing output of ip_fib_dump API command and by traffic Change-Id: I61ed5013adca29afd00b942f65be7bf964f38d85 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 856a5cc2183..9d9712eb7ed 100644
--- a/test/vpp_interface.py
+++ b/test/vpp_interface.py
@@ -195,12 +195,16 @@ class VppInterface(object):
self.has_ip4_config = False
self.has_ip4_config = False
- def configure_ipv4_neighbors(self):
- """For every remote host assign neighbor's MAC to IPv4 addresses."""
+ def configure_ipv4_neighbors(self, vrf_id=0):
+ """For every remote host assign neighbor's MAC to IPv4 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.ip4n
- self.test.vapi.ip_neighbor_add_del(self.sw_if_index, macn, ipn)
+ self.test.vapi.ip_neighbor_add_del(
+ self.sw_if_index, macn, ipn, vrf_id)
def config_ip6(self):
"""Configure IPv6 address on the VPP interface."""