aboutsummaryrefslogtreecommitdiffstats
path: root/test/bfd.py
diff options
context:
space:
mode:
authorNeale Ranns <nranns@cisco.com>2019-06-05 10:28:17 +0000
committerDamjan Marion <dmarion@me.com>2019-06-07 15:21:16 +0000
commit52cd49616deec9fb562032151f0c5123cf3fcde9 (patch)
tree1709f5102d379361edf1b6b56225c4c0ee8af056 /test/bfd.py
parent718a055fa9aec5fafced17b7c20b1556c2cc4d07 (diff)
bfd: UT for BFD session over GRE tunnel
Signed-off-by: Neale Ranns <nranns@cisco.com> Adding UT for BFD over GRE tunnel. Ticket: none Type: test Change-Id: I03eca4a0c7114cdc16fde9be4cd6db6216b8c845 Signed-off-by: Neale Ranns <nranns@cisco.com>
Diffstat (limited to 'test/bfd.py')
-rw-r--r--test/bfd.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/test/bfd.py b/test/bfd.py
index 84ef7b0ef4d..a297dab2527 100644
--- a/test/bfd.py
+++ b/test/bfd.py
@@ -228,7 +228,7 @@ class VppBFDUDPSession(VppObject):
def __init__(self, test, interface, peer_addr, local_addr=None, af=AF_INET,
desired_min_tx=300000, required_min_rx=300000, detect_mult=3,
- sha1_key=None, bfd_key_id=None):
+ sha1_key=None, bfd_key_id=None, is_tunnel=False):
self._test = test
self._interface = interface
self._af = af
@@ -247,6 +247,7 @@ class VppBFDUDPSession(VppObject):
self._bfd_key_id = bfd_key_id
else:
self._bfd_key_id = randint(0, 255)
+ self._is_tunnel = is_tunnel
@property
def test(self):
@@ -348,6 +349,10 @@ class VppBFDUDPSession(VppObject):
""" bfd key id in use """
return self._bfd_key_id
+ @property
+ def is_tunnel(self):
+ return self._is_tunnel
+
def activate_auth(self, key, bfd_key_id=None, delayed=False):
""" activate authentication for this session """
self._bfd_key_id = bfd_key_id if bfd_key_id else randint(0, 255)