From e82acdce22d271d7b51a2ecb69e3353dc848f4b0 Mon Sep 17 00:00:00 2001 From: Igor Ryzhov Date: Thu, 22 Apr 2021 15:24:49 +0300 Subject: 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 --- ospfd/ospf_bfd.c | 1 - 1 file changed, 1 deletion(-) (limited to 'ospfd/ospf_bfd.c') diff --git a/ospfd/ospf_bfd.c b/ospfd/ospf_bfd.c index 2ab7db68bd..56116cd28d 100644 --- a/ospfd/ospf_bfd.c +++ b/ospfd/ospf_bfd.c @@ -99,7 +99,6 @@ void ospf_neighbor_bfd_apply(struct ospf_neighbor *nbr) bfd_sess_set_ipv4_addrs(nbr->bfd_session, NULL, &nbr->src); bfd_sess_set_interface(nbr->bfd_session, oi->ifp->name); bfd_sess_set_vrf(nbr->bfd_session, oi->ospf->vrf_id); - bfd_sess_enable(nbr->bfd_session, true); } /* Set new configuration. */ -- cgit v1.2.3