Skip to content

Bind to Interface for BGP/BFD listening sockets and outbound BFD connections#3452

Open
ChrisPortman wants to merge 2 commits into
osrg:masterfrom
ChrisPortman:interface-binding
Open

Bind to Interface for BGP/BFD listening sockets and outbound BFD connections#3452
ChrisPortman wants to merge 2 commits into
osrg:masterfrom
ChrisPortman:interface-binding

Conversation

@ChrisPortman

Copy link
Copy Markdown

This PR contains 2 commits:

  1. Exposes the API.Global.BindInterface option via the configuration file providing the ability to configure the BGP listener sockets for incomming BGP connections to a specific (likely VRF interface). For BGP, this was already in the code base, just not accessible from the configuration file. For BFD, additional functionality has been added such that if BGP listeners are interface bound, BFD listeners will be too.
  2. If a neighbors configuration includes a Transport.Config.BindInterface, in addition to binding the interface for outbound BGP connections for that neighbor, use it for outbound BFD connections as well.

Chris Portman added 2 commits June 11, 2026 13:43
This change adds to the configuration file schema an option that corresponds with the
`api.Global.BindToInterface` option allowing the BGP listeners to be bound to an interface (e.g. a
VRF interface).

Additionally, when this option is used, either via the new config option, or via the existing API
structures, it is also applied to the BfdServer listeners as well when BFD is enabled.
Where a Neighbor has transport config that includes the bind interface,
use this for BFD if enabled as well.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant