-
Notifications
You must be signed in to change notification settings - Fork 1.5k
staticd: Add support for SRv6 uA behavior #18198
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
Merged
Merged
Changes from all commits
Commits
Show all changes
13 commits
Select commit
Hold shift + click to select a range
feff426
lib: Add ifindex to SRv6 SID context
cscarpitta 9974241
yang: Extend staticd YANG model to support the SRv6 uA behavior
cscarpitta 7438a94
staticd: Add nb callbacks to configure an interface for SRv6 uA behavior
cscarpitta 646c4f9
staticd: Add nb callbacks to configure a nexthop for SRv6 uA behavior
cscarpitta ec5ff36
staticd: Extend `static_zebra_request_srv6_sid` to request SRv6 uA SIDs
cscarpitta cc84e52
staticd: Extend `static_zebra_release_srv6_sid` to release SRv6 uA SIDs
cscarpitta ae6fb91
staticd: Extend `static_zebra_srv6_sid_install` to install SRv6 uA SIDs
cscarpitta 95abf9d
staticd: Extend `static_zebra_srv6_sid_uninstall` to uninstall SRv6 u…
cscarpitta 70c039b
staticd: Extend CLI to configure an SRv6 uA SID
cscarpitta f2fcdaa
staticd: Extend CLI to unconfigure an SRv6 uA SID
cscarpitta 062fd00
staticd: Extend SRv6 SIDs show CLI to display uA SIDs
cscarpitta 43c1377
tests: Add test case to verify the programming of SRv6 uA SIDs
cscarpitta 35b40cc
doc: Add SRv6 uA SID configuration to staticd documentation
cscarpitta 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
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
Oops, something went wrong.
Oops, something went wrong.
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.
so nexthops have a ifindex already. I don't understand enough about SRv6 to say if that would be ok or not to use?
For SRv6 what is the actual definition of a nexthop? Does it possibly include a ifindex already? What if they disagree?
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.
Hi Donald, many thanks for the review.
nh4andnh6are not nexthop objects. It is the IP address of the next hop.This is how it is also defined in the IETF SRv6 YANG model https://datatracker.ietf.org/doc/html/draft-ietf-spring-srv6-yang-04
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 updated the commit message to clarify this.
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.
would removing nh4 / nh6 vrf_id and ifindex, replacing with
struct nexthopmake anything clearer or easier to do? I wonder why we have this specialized structure here, when we something generic like struct nexthop could work?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.
Hi Donald,
Many thanks for your comments.
I’m already working on revisiting all the SRv6 data structures that have been added in the last years. I will open a refactoring PR for this.
I will definitely include your feedback in my refactoring PR.
I’m also doing some performance improvements. As part of the refactoring, I will also include these enhancements.