-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
zebra route-leaking for static routes #1618
Merged
pguibert6WIND
merged 18 commits into
FRRouting:master
from
donaldsharp:zebra_startup_ordering
Jan 23, 2018
Merged
Changes from 1 commit
Commits
Show all changes
18 commits
Select commit
Hold shift + click to select a range
0cb76b9
lib: Add notice of when we can remove some deprecated code.
donaldsharp 14fcc65
lib: Allow interface lookup by VRF_UNKNOWN
donaldsharp 8f43b4d
zebra: Add nh_vrf_id to 'struct route_entry`
donaldsharp 99b9d96
zebra: Use the correct vrf id to lookup the ifp pointer
donaldsharp 8795f90
zebra: Add nh_vrf_id to rib_add
donaldsharp 007dbee
zebra: When handling nexthops use the correct vrf
donaldsharp 2793a09
zebra: When displaying nexthop information show correct vrf
donaldsharp d5b2119
*: Send/receive the nexthop vrf_id
donaldsharp 9ceac4c
lib: Increment zapi version number
donaldsharp f84fc2c
zebra: Move NS/VRF initialization earlier
donaldsharp 2f03bc8
zebra: Add zebra_static_route_leak function
donaldsharp cbb0dbf
zebra: Add the zvrf pointer to the 'struct static_route'
donaldsharp ab32921
zebra: Cleanup vrf_config_write
donaldsharp b2ffa06
zebra: Add vrf level 'ip route ...' commands
donaldsharp 3772804
zebra: Move `ip route ...` generation to vrf control
donaldsharp 5e21052
zebra: Encode the ifindex over netlink
donaldsharp 5bdd34d
zebra: Allow static non interface based routes to leak
donaldsharp 6140853
zebra: Add ability for default vrf to route-leak
donaldsharp 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 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
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
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
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.
my understanding is that vrf route leak mechanism is not yet available on netns.
so I think that lookup mechanism should be put in place only for vrf with backend vrf lite.
at least what I will do is : if (!(vrf_id has backend netns) && index)
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.
I would suggest that you stop route leaking before we get to this point and just leave this code alone. It should not care about the underlying mechanism
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.
I have some other code in #1633 where I will have to know the kind of backend.
mainly because you can have the same interface name and interface index name for different vrfs.
so when you say "stop route leaking before", I need to ack with you that I will have that case very quickly.