Repository navigation
virtual router: Apply BGP peer changes with frr-reload #14841
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
MitchDrage
wants to merge
10
commits into
apache:main
Choose a base branch
from
MitchDrage:bgp-frr-reload
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
128c3b6
Apply BGP peer changes on the VR with frr-reload and add a minimum ho…
MitchDrage 61d0a93
Drop the frr version line from the router's frr.conf
MitchDrage ae2abd4
Render IPv4 forwarding in frr.conf from the kernel's setting
MitchDrage 1142619
Declare the minimum hold time setting on BGPService
MitchDrage de985b2
Make the minimum hold time setting account-scoped
MitchDrage 18ec9c1
Rename the minimum hold time setting to routed.bgp.min.holdtime
MitchDrage 2d462d0
Remove the FRR capability line from the router version health check
MitchDrage f87aa15
Move the minimum hold time and FRR diagnostics to their own PRs
MitchDrage 78a8859
Run frr-reload.py with --stdout so peer passwords stay out of frr-rel…
MitchDrage b2e6b15
Move the frr-reload tests into TestCsBgpPeers
MitchDrage File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
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
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
are these needed ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, they're needed once changes go through frr-reload. zebra shows the kernel's forwarding state in the running config, so an IPv4-only router has no ipv6 forwarding there, and frr-reload deletes any running line the file doesn't state.
When I reloaded main's file unchanged on 8.4.4, net.ipv6.conf.all.forwarding went from 0 to 1.
The router already wrote the IPv6 line from the kernel's setting, and I've changed it to do the same for IPv4.
This fixture is just the dual-stack snapshot for test_full_frr_conf. The behaviour itself is covered by two new tests in TestCsBgpPeersFrr, test_operator_states_forwarding_off_from_kernel and ..._on_from_kernel.