diff options
| author | Louis Scalbert <louis.scalbert@6wind.com> | 2025-01-22 13:30:55 +0100 |
|---|---|---|
| committer | Donatas Abraitis <donatas@opensourcerouting.org> | 2025-02-13 20:44:25 +0200 |
| commit | c059cf388106f81040bdde3ff93a3b2cbd08523b (patch) | |
| tree | daaf5e593392e33118a5a37ad4e7bdf8e559d2fa | |
| parent | 2c92346292badda2bad93c1a1188d4349e38cde0 (diff) | |
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 <louis.scalbert@6wind.com>
| -rw-r--r-- | bgpd/bgp_bfd.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/bgpd/bgp_bfd.c b/bgpd/bgp_bfd.c index b3221853bb..f8f06df49f 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). |
