mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-11-03 21:50:52 +00:00
bgpd: upon reconfiguration or bgp exchange failure, stop bfd.
When bgp is updated with local source, the bgp session is reset; bfd also must be reset. The bgp_stop() handler handles all kind of unexpected failures, so the placeholder to deregister from bfd should be ok, providing that when bgp establishes, a similar function in bgp will recreate bfd context. Note that the bfd session is not reset on one specific case, where BFD down event is the last reset. In that case, we must let BFD to monitor the link. Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
This commit is contained in:
parent
e14175b8a1
commit
e7db872b81
@ -1128,6 +1128,10 @@ int bgp_stop(struct peer *peer)
|
||||
|
||||
peer->nsf_af_count = 0;
|
||||
|
||||
/* deregister peer */
|
||||
if (peer->last_reset != PEER_DOWN_BFD_DOWN)
|
||||
bgp_bfd_deregister_peer(peer);
|
||||
|
||||
if (peer_dynamic_neighbor(peer)
|
||||
&& !(CHECK_FLAG(peer->flags, PEER_FLAG_DELETE))) {
|
||||
if (bgp_debug_neighbor_events(peer))
|
||||
|
||||
Loading…
Reference in New Issue
Block a user