]> git.puffer.fish Git - mirror/frr.git/commitdiff
bgpd: fix bfd with update-source in peer-group 17904/head
authorLouis Scalbert <louis.scalbert@6wind.com>
Wed, 22 Jan 2025 12:30:55 +0000 (13:30 +0100)
committerLouis Scalbert <louis.scalbert@6wind.com>
Wed, 22 Jan 2025 16:55:55 +0000 (17:55 +0100)
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 78759ae2b6075acaddac86a24d71a91dec75612f..5437b67f341428e3f9f0e6e1b119ad04f12dfbaf 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).