-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
bgpv1: Add support for setting BGP timer params in CiliumBGPNeighbor CRD
Extends the CiliumBGPNeighbor CRD with 3 new configuration options: ConnectRetryTime, HoldTime and KeepAliveTime. These can be used to fine-tune BGP peering, e.g. to achieve faster failover times. If not set, the default values for the affected timers remain the same as before this change. This also introduces a new UpdateNeighbor API for bgpv1, to support changes of an existing peering. During the update we first dump existing peer configuration from GoBGP and then perform the update on the dumped value. The reason for that is that many peer config fields are defaulted internally in GoBGP and would cause peer reset if not provided on update. Timer values are included in the state API of the BgpPeer. Since the applied values of HoldTime and KeepAliveTime may be different from the configured values (they also depend on negotiation during the session setup), the state API differentiates between "configured" and "applied" values of these timer intervals. Signed-off-by: Rastislav Szabo <rastislav.szabo@isovalent.com>
- Loading branch information
1 parent
847e8ad
commit b3debfe
Showing
15 changed files
with
713 additions
and
107 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.