zebra: add a new ADJACENCY route type for local neighbors#22613
Open
mjstapp wants to merge 5 commits into
Open
zebra: add a new ADJACENCY route type for local neighbors#22613mjstapp wants to merge 5 commits into
mjstapp wants to merge 5 commits into
Conversation
Greptile SummaryThis PR adds adjacency host routes for local zebra neighbors. The main changes are:
Confidence Score: 5/5This looks safe to merge.
Important Files Changed
Reviews (2): Last reviewed commit: "zebra: remove some headers from zebra_ne..." | Re-trigger Greptile |
Add a new route-type, called ADJACENCY, for local host routes. Signed-off-by: Mark Stapp <mjs@cisco.com>
Allow per-interface config to control install and delete of host-routes, using the ADJACENCY type, with neighbor entries. Signed-off-by: Mark Stapp <mjs@cisco.com>
Add the per-interface host-routes leaf to the zebra yang model, and implement nb handling for it. Signed-off-by: Mark Stapp <mjs@cisco.com>
Contributor
Author
|
pushed fixes for some greptile comments... |
Contributor
Author
|
@greptileai review |
added 2 commits
July 8, 2026 16:34
Add a topotest that includes some hosts to exercise the ADJACENCY route type for local neighbors, and check redistribution via BGP. Signed-off-by: Mark Stapp <mjs@cisco.com>
Remove some headers that zebra_neigh doesn't seem to need. Signed-off-by: Mark Stapp <mjs@cisco.com>
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.
Add a new route type for local neighbors. The neighbor events handled in zebra_neigh.c can (configurably) manage host routes for local neighbors. The routes have a new, distinct route type, so they can be redistributed like any other type. There's a simple topotest also; I'd like to add some more cases to it, but it seems worth opening this PR so we can discuss the approach.