Skip to content

Commit 259ffe1

Browse files
authored
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
2 parents 03c5ada + da4a7b0 commit 259ffe1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bgpd/bgpd.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4789,7 +4789,7 @@ enum bgp_peer_active peer_active(struct peer_connection *connection)
47894789
return BGP_PEER_CONNECTION_UNSPECIFIED;
47904790

47914791
if (peer->bfd_config) {
4792-
if (bfd_session_is_down(peer->bfd_config->session))
4792+
if (peer_established(connection) && bfd_session_is_down(peer->bfd_config->session))
47934793
return BGP_PEER_BFD_DOWN;
47944794
}
47954795

0 commit comments

Comments
 (0)