Repository navigation
Install a VPC static route over a BGP route for the same prefix - #14942
Open
MitchDrage wants to merge 1 commit into
Open
MitchDrage wants to merge 1 commit into
MitchDrage wants to merge 1 commit into
Conversation
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
This PR programs a VPC static route when the router already has a BGP route for the same prefix.
Today the static isn't programmed, because CsStaticRoutes.py only adds a route when
ip route show | grep '^<prefix>'finds nothing for that prefix. If the static is there first, it stays and BGP never replaces it, so whichever route arrives first wins and the result can flip after a router restart.proto bgp, so the static is added at metric 0 beside the BGP route.TestCsStaticRoutes.Operator BGP peers only accept a default route, so this comes up with tenant BGP on private gateways (#14687). There, keeping the static routes in place while BGP comes up is the migration path.
Closes: #14941
Types of changes
Feature/Enhancement Scale or Bug Severity
Feature/Enhancement Scale
Screenshots (if appropriate):
How Has This Been Tested?
TestCsStaticRoutes: a route is added to an empty table, is not added twice, and is added over a single-path and a multipath BGP route. The two BGP tests fail without this change. The mockedexecuteruns the real grep pipeline against a sample route table.How did you try to break this feature and the system with this change?
File exists, as on main.