From 9b8c257e6c1f3659e5d7da5954511e76e0c09ab9 Mon Sep 17 00:00:00 2001 From: Louis Scalbert Date: Wed, 22 Jan 2025 13:30:55 +0100 Subject: [PATCH] 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 --- bgpd/bgp_bfd.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/bgpd/bgp_bfd.c b/bgpd/bgp_bfd.c index 14ff5f2e11..240b310696 100644 --- a/bgpd/bgp_bfd.c +++ b/bgpd/bgp_bfd.c @@ -104,6 +104,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). -- 2.39.5