]> git.puffer.fish Git - mirror/frr.git/commitdiff
bgpd: fix bfd with update-source in peer-group
authorLouis Scalbert <louis.scalbert@6wind.com>
Wed, 22 Jan 2025 12:30:55 +0000 (13:30 +0100)
committerDonatas Abraitis <donatas@opensourcerouting.org>
Mon, 10 Feb 2025 07:40:50 +0000 (09:40 +0200)
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>
bgpd/bgp_bfd.c

index 14ff5f2e11514f519e520530d7189e36ef6c8a3e..240b310696af75311879d9b3018d272ec41bf23a 100644 (file)
@@ -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).