]> git.puffer.fish Git - mirror/frr.git/commitdiff
bgpd: do not unregister bfd session when bgp session goes down 4144/head
authorPhilippe Guibert <philippe.guibert@6wind.com>
Tue, 14 May 2019 14:39:20 +0000 (16:39 +0200)
committerPhilippe Guibert <philippe.guibert@6wind.com>
Tue, 14 May 2019 14:50:01 +0000 (16:50 +0200)
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 <philippe.guibert@6wind.com>
bgpd/bgp_fsm.c

index 9e37a6018859b9df31e43bc26fd7564db4c0018e..12ae1f841a511d20bb28434388f728662d51cdea 100644 (file)
@@ -1115,8 +1115,6 @@ int bgp_stop(struct peer *peer)
 
                /* Reset peer synctime */
                peer->synctime = 0;
-
-               bgp_bfd_deregister_peer(peer);
        }
 
        /* stop keepalives */