summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLouis Scalbert <louis.scalbert@6wind.com>2025-01-22 13:30:55 +0100
committerLouis Scalbert <louis.scalbert@6wind.com>2025-01-22 17:55:55 +0100
commitdee3fd6f1be54df2ddcac6bcb5d51b486a91d90b (patch)
tree4a29e5cfe3dc76c84474f4ea13f836f81fb02b2f
parenttests: check bfd with update-source in peer-group (diff)
downloadfrr-dee3fd6f1be54df2ddcac6bcb5d51b486a91d90b.tar.xz
frr-dee3fd6f1be54df2ddcac6bcb5d51b486a91d90b.zip
bgpd: fix bfd with update-source in peer-group
Fix BFD session not created when the peer is in update-group with the update-source option. Signed-off-by: Louis Scalbert <louis.scalbert@6wind.com>
-rw-r--r--bgpd/bgp_bfd.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/bgpd/bgp_bfd.c b/bgpd/bgp_bfd.c
index 78759ae2b..5437b67f3 100644
--- a/bgpd/bgp_bfd.c
+++ b/bgpd/bgp_bfd.c
@@ -114,6 +114,10 @@ void bgp_peer_config_apply(struct peer *p, struct peer_group *pg)
*/
gconfig = pg->conf;
+ if (CHECK_FLAG(gconfig->flags, PEER_FLAG_UPDATE_SOURCE) ||
+ CHECK_FLAG(p->flags_override, PEER_FLAG_UPDATE_SOURCE))
+ bgp_peer_bfd_update_source(p);
+
/*
* If using default control plane independent configuration,
* then prefer group's (e.g. it means it wasn't manually configured).