Merge pull request #18562 from opensourcerouting/fix/bfd_down_if_established

bgpd: Treat the peer as not active due to BFD down only if established
This commit is contained in:
Mark Stapp 2025-04-04 12:28:18 -04:00 committed by GitHub
commit 259ffe1dfe
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -4789,7 +4789,7 @@ enum bgp_peer_active peer_active(struct peer_connection *connection)
return BGP_PEER_CONNECTION_UNSPECIFIED;
if (peer->bfd_config) {
if (bfd_session_is_down(peer->bfd_config->session))
if (peer_established(connection) && bfd_session_is_down(peer->bfd_config->session))
return BGP_PEER_BFD_DOWN;
}