From: Louis Scalbert Date: Wed, 22 Jan 2025 12:30:55 +0000 (+0100) Subject: bgpd: fix bfd with update-source in peer-group X-Git-Tag: docker/10.1.3~17^2 X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=1f9ca9e1591f03810f7321ebb0cc47da0fc5020c;p=matthieu%2Ffrr.git 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 --- diff --git a/bgpd/bgp_bfd.c b/bgpd/bgp_bfd.c index 50b00d21b1..add93d3a5f 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).