summaryrefslogtreecommitdiff
path: root/bgpd
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 /bgpd
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 'bgpd')
-rw-r--r--bgpd/bgp_bfd.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/bgpd/bgp_bfd.c b/bgpd/bgp_bfd.c
index 958d7cf0ed..6004070e68 100644
--- a/bgpd/bgp_bfd.c
+++ b/bgpd/bgp_bfd.c
@@ -308,8 +308,6 @@ void bgp_peer_configure_bfd(struct peer *p, bool manual)
if (p->nexthop.ifp)
bfd_sess_set_interface(p->bfd_config->session,
p->nexthop.ifp->name);
-
- bfd_sess_enable(p->bfd_config->session, true);
}
static void bgp_peer_remove_bfd(struct peer *p)