Repository navigation
virtual router: Add a minimum BGP hold time setting - #14869
Open
MitchDrage wants to merge 2 commits into
Open
MitchDrage wants to merge 2 commits into
MitchDrage wants to merge 2 commits into
Conversation
This was referenced Nov 26, 2026
This branch has not been deployed
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
A BGP peer can propose hold time 0, which turns keepalives off. The virtual router then never notices when that peer goes away. This PR adds a router-wide minimum hold time.
routed.bgp.min.holdtime(default 3) onBGPService. It applies to every router with Dynamic routing, isolated routed networks included. The value is read from the router's owning account.CsBgpPeersrendersbgp minimum-holdtimeunderrouter bgp. It applies to every peer on the router.After upgrading, a router with Dynamic routing refuses a peer that proposes hold time 0. Set
routed.bgp.min.holdtimeto 0 for an account to keep accepting it.This was split from #14841, where the review of the setting's name, scope and default took place. It touches
CsBgpPeers.py, as does #14841, so it will need a rebase after that merges.Types of changes
Feature/Enhancement Scale or Bug Severity
Feature/Enhancement Scale
Screenshots (if appropriate):
N/A
How Has This Been Tested?
SetBgpPeersMinHoldtimeTest,CommandSetupHelperBgpPeersMinHoldtimeTestandTestCsBgpPeersFrr.BGPServiceImplTestcovers the new setting,ConfigurationManagerImplTestcovers its range, andTestCsBgpPeersand its fixture are updated for the new line.bgp minimum-holdtime 3after the router ID.How did you try to break this feature and the system with this change?