From b83a6e054c22f5d0c6a9385a360833bd799440a4 Mon Sep 17 00:00:00 2001 From: Philippe Guibert Date: Tue, 14 May 2019 16:39:20 +0200 Subject: [PATCH] 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 --- bgpd/bgp_fsm.c | 2 -- 1 file changed, 2 deletions(-) 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 */ -- 2.39.5