mirror of
https://github.com/FRRouting/frr.git
synced 2025-04-30 13:37:17 +02:00
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:
commit
259ffe1dfe
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue