summaryrefslogtreecommitdiff
path: root/lib/bfd.h
diff options
context:
space:
mode:
authorIgor Ryzhov <iryzhov@nfware.com>2021-04-22 15:24:49 +0300
committerIgor Ryzhov <iryzhov@nfware.com>2021-04-22 16:39:29 +0300
commite82acdce22d271d7b51a2ecb69e3353dc848f4b0 (patch)
tree2048d42b19952560d2ba7e45966c9faa4a7addcd /lib/bfd.h
parent97444b25addeaa0288a2368d32c2789c4f5fe8f1 (diff)
lib: remove enabled flag for bfd sessions
Currently this flag is only helpful in an extremely rare situation when the BFD session registration was unsuccessful and after that zebra is restarted. Let's remove this flag to simplify the API. If we ever want to solve the problem of unsuccessful registration/deregistration, this can be done using internal flags, without API modification. Also add the error log to help user understand why the BFD session is not working. Signed-off-by: Igor Ryzhov <iryzhov@nfware.com>
Diffstat (limited to 'lib/bfd.h')
-rw-r--r--lib/bfd.h8
1 files changed, 0 insertions, 8 deletions
diff --git a/lib/bfd.h b/lib/bfd.h
index 1325f86a30..230fde5e1f 100644
--- a/lib/bfd.h
+++ b/lib/bfd.h
@@ -185,14 +185,6 @@ struct bfd_session_params *bfd_sess_new(bsp_status_update updatecb, void *args);
void bfd_sess_free(struct bfd_session_params **bsp);
/**
- * Enable/disable session installation.
- *
- * \param bsp session parameters.
- * \param enable knob variable.
- */
-void bfd_sess_enable(struct bfd_session_params *bsp, bool enable);
-
-/**
* Set the local and peer address of the BFD session.
*
* \param bsp BFD session parameters.