]> git.puffer.fish Git - mirror/frr.git/commitdiff
bgpd: fix bfd with update-source in peer-group 18153/head
authorLouis Scalbert <louis.scalbert@6wind.com>
Wed, 22 Jan 2025 12:30:55 +0000 (13:30 +0100)
committerDonatas Abraitis <donatas@opensourcerouting.org>
Thu, 13 Feb 2025 18:44:25 +0000 (20:44 +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 b3221853bbad43e630d7b57c23d300a2ca27f6a4..f8f06df49f14ab160fe8fcd3988a3c8b7507a74e 100644 (file)
@@ -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).