]> git.puffer.fish Git - matthieu/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>
Wed, 12 Feb 2025 21:39:27 +0000 (23:39 +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 50b00d21b195f3e485a11cc1a3fd361e75d7d3d5..add93d3a5f38caf82cbb37381926fa77e786824f 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).