summaryrefslogtreecommitdiffstats
path: root/test/vpp_l2.py
diff options
context:
space:
mode:
authorMohsin Kazmi <sykazmi@cisco.com>2019-04-05 17:40:20 +0200
committerJohn Lo <loj@cisco.com>2019-04-24 14:26:48 +0000
commit5e6f7348cf456cffc85dae8bc6857589061122ba (patch)
tree0b76823cfbf0de6e5ddf5e887313baa5945ab5a1 /test/vpp_l2.py
parent4375fa312e91ffeef0d34ab0594bda4a8c9189ea (diff)
l2: Add support for arp unicast forwarding
Change-Id: I79fc55f36a9b83957f84619bdf8cef08acc8ec24 Signed-off-by: Mohsin Kazmi <sykazmi@cisco.com>
Diffstat (limited to 'test/vpp_l2.py')
-rw-r--r--test/vpp_l2.py8
1 files changed, 6 insertions, 2 deletions
diff --git a/test/vpp_l2.py b/test/vpp_l2.py
index 79c72e69051..90de91695f2 100644
--- a/test/vpp_l2.py
+++ b/test/vpp_l2.py
@@ -23,6 +23,7 @@ class BRIDGE_FLAGS:
FLOOD = 4
UU_FLOOD = 8
ARP_TERM = 16
+ ARP_UFWD = 32
def find_bridge_domain(test, bd_id):
@@ -70,7 +71,7 @@ class VppBridgeDomain(VppObject):
def __init__(self, test, bd_id,
flood=1, uu_flood=1, forward=1,
- learn=1, arp_term=1):
+ learn=1, arp_term=1, arp_ufwd=0):
self._test = test
self.bd_id = bd_id
self.flood = flood
@@ -78,6 +79,7 @@ class VppBridgeDomain(VppObject):
self.forward = forward
self.learn = learn
self.arp_term = arp_term
+ self.arp_ufwd = arp_ufwd
def add_vpp_config(self):
self._test.vapi.bridge_domain_add_del(bd_id=self.bd_id,
@@ -85,7 +87,9 @@ class VppBridgeDomain(VppObject):
uu_flood=self.uu_flood,
forward=self.forward,
learn=self.learn,
- arp_term=self.arp_term, is_add=1)
+ arp_term=self.arp_term,
+ arp_ufwd=self.arp_ufwd,
+ is_add=1)
self._test.registry.register(self, self._test.logger)
def remove_vpp_config(self):