summaryrefslogtreecommitdiffstats
path: root/test/bfd.py
diff options
context:
space:
mode:
authorKlement Sekera <ksekera@cisco.com>2017-02-14 07:55:57 +0100
committerDamjan Marion <dmarion.lists@gmail.com>2017-02-17 16:32:51 +0000
commitc48829bb0a29e7b53a5e0b6bcecd13a328b19dcf (patch)
tree2cc06ad7fad252c654d5167a4011ebe3e5ebb6bc /test/bfd.py
parentcb33dc2d7a566d571c86b950b4aa92dd7ae01c3c (diff)
BFD: put session admin-up/admin-down
Change-Id: I7d8889dce8495607106593ad83320c9af0f2fa07 Signed-off-by: Klement Sekera <ksekera@cisco.com>
Diffstat (limited to 'test/bfd.py')
-rw-r--r--test/bfd.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/test/bfd.py b/test/bfd.py
index 8eb3b36acb0..8bd9f9a3446 100644
--- a/test/bfd.py
+++ b/test/bfd.py
@@ -420,3 +420,12 @@ class VppBFDUDPSession(VppObject):
self.local_addr_n,
self.peer_addr_n,
is_ipv6=is_ipv6)
+
+ def admin_down(self):
+ """ set bfd session admin-down """
+ is_ipv6 = 1 if AF_INET6 == self._af else 0
+ self.test.vapi.bfd_udp_session_set_flags(0,
+ self._interface.sw_if_index,
+ self.local_addr_n,
+ self.peer_addr_n,
+ is_ipv6=is_ipv6)