Skip to content

Commit

Permalink
bgpd: fix bfd with update-source in peer-group
Browse files Browse the repository at this point in the history
Fix BFD session not created when the peer is in update-group with the
update-source option.

Signed-off-by: Louis Scalbert <[email protected]>
  • Loading branch information
louis-6wind committed Jan 22, 2025
1 parent 63f6ed6 commit 87f5daa
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions bgpd/bgp_bfd.c
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,9 @@ void bgp_peer_config_apply(struct peer *p, struct peer_group *pg)
*/
gconfig = pg->conf;

if (peergroup_flag_check(p, 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).
Expand Down

0 comments on commit 87f5daa

Please sign in to comment.