summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDonatas Abraitis <donatas@opensourcerouting.org>2025-04-19 03:39:49 +0300
committerGitHub <noreply@github.com>2025-04-19 03:39:49 +0300
commit95128a75f79474c36e1fb9b8d742d4d7ca5049aa (patch)
treeec4c69e978c89ab67afe88857cf5f97d741aff5d
parent646bf178de61158dc06b40d666e5d0d071b47bfb (diff)
parentab73284535ce24bd2f2c2b73a9841cf075f906b0 (diff)
Merge pull request #18682 from lawli3t/frr-10.2.2-backportstable/10.2
bgpd: Treat the peer as not active due to BFD down only if established (backport #18562)
-rw-r--r--bgpd/bgpd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/bgpd/bgpd.c b/bgpd/bgpd.c
index 0601400afd..f6b8abd9cc 100644
--- a/bgpd/bgpd.c
+++ b/bgpd/bgpd.c
@@ -4648,7 +4648,7 @@ bool peer_active(struct peer *peer)
return false;
if (peer->bfd_config) {
- if (bfd_session_is_down(peer->bfd_config->session))
+ if (peer_established(peer->connection) && bfd_session_is_down(peer->bfd_config->session))
return false;
}