From: Philippe Guibert Date: Tue, 14 May 2019 14:39:20 +0000 (+0200) Subject: bgpd: do not unregister bfd session when bgp session goes down X-Git-Tag: base_7.2~337^2 X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=b83a6e054c22f5d0c6a9385a360833bd799440a4;p=matthieu%2Ffrr.git bgpd: do not unregister bfd session when bgp session goes down This commit fixes a previous commit: "bfdd: remove operational bfd sessions from remote daemons" where the handling of unregister call triggers the deletion of bfd session. Actually, the BFD session should not be deleted, while bgp session is configured with BGP. this permits to receive BFD events up, and permit quicker reconnecion. Signed-off-by: Philippe Guibert --- diff --git a/bgpd/bgp_fsm.c b/bgpd/bgp_fsm.c index 9e37a60188..12ae1f841a 100644 --- a/bgpd/bgp_fsm.c +++ b/bgpd/bgp_fsm.c @@ -1115,8 +1115,6 @@ int bgp_stop(struct peer *peer) /* Reset peer synctime */ peer->synctime = 0; - - bgp_bfd_deregister_peer(peer); } /* stop keepalives */