diff options
author | Neale Ranns <nranns@cisco.com> | 2017-03-08 05:17:22 -0800 |
---|---|---|
committer | Damjan Marion <dmarion.lists@gmail.com> | 2017-03-09 15:34:14 +0000 |
commit | b3b2de71ceea0cc7ce18f89cc8180ed4a42e355d (patch) | |
tree | da9a025096839fef6d749459c28f786327226d13 /test/vpp_neighbor.py | |
parent | 8082380922c65702251d5242058f7b5f35011574 (diff) |
IMplementation for option to not create a FIB table entry when adding a neighbor entry
Change-Id: I952039e101031ee6a06e63f4c73d8eb359423e1a
Signed-off-by: Neale Ranns <nranns@cisco.com>
Diffstat (limited to 'test/vpp_neighbor.py')
-rw-r--r-- | test/vpp_neighbor.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/test/vpp_neighbor.py b/test/vpp_neighbor.py index 5c2e34794ec..6968b5f68a5 100644 --- a/test/vpp_neighbor.py +++ b/test/vpp_neighbor.py @@ -31,12 +31,13 @@ class VppNeighbor(VppObject): """ def __init__(self, test, sw_if_index, mac_addr, nbr_addr, - af=AF_INET, is_static=False): + af=AF_INET, is_static=False, is_no_fib_entry=False): self._test = test self.sw_if_index = sw_if_index self.mac_addr = mactobinary(mac_addr) self.af = af self.is_static = is_static + self.is_no_fib_entry = is_no_fib_entry self.nbr_addr = inet_pton(af, nbr_addr) def add_vpp_config(self): @@ -46,7 +47,8 @@ class VppNeighbor(VppObject): self.nbr_addr, is_add=1, is_ipv6=1 if AF_INET6 == self.af else 0, - is_static=self.is_static) + is_static=self.is_static, + is_no_adj_fib=self.is_no_fib_entry) self._test.registry.register(self, self._test.logger) def remove_vpp_config(self): |