-
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
staticd: Add support for SRv6 Static SIDs #16894
staticd: Add support for SRv6 Static SIDs #16894
Conversation
This pull request has conflicts, please resolve those before we can evaluate the pull request. |
This should be broken up in to a bunch of smaller commits, with detailed explanations of what each commit is doing and why. Additionally I see white space changes that make it even harder to figure out what is going on. They should be removed. |
Additionally this is not going to be even looked at until we have a topology test as well as documentation for the new functionality |
113f49b
to
9d52e4a
Compare
2c51a1d
to
64739c5
Compare
LGTM |
ci:rerun |
The code is ok to me. lets wait last change about yang description field before turning on approval. |
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.
LGTM
Signed-off-by: Yuqing Zhao <[email protected]>
Signed-off-by: Yuqing Zhao <[email protected]>
Signed-off-by: Yuqing Zhao <[email protected]>
This commit adds datastructures and helper functions required to support SRv6 in staticd. * List of locators * List of SIDs * Data structure to represent an SRv6 SID * Functions to allocate/deallocate an SRv6 SID * Functions to allocate, deallocate and lookup a locator * Function to initialize/Cleanup SRv6 Signed-off-by: Yuqing Zhao <[email protected]>
This commit moves DEFAULT_SRV6_IFNAME from isis_srv6.h to srv6.h because there are other daemons that might want to use it (e.g. staticd). Signed-off-by: Yuqing Zhao <[email protected]>
Signed-off-by: Yuqing Zhao <[email protected]>
Signed-off-by: Yuqing Zhao <[email protected]>
Signed-off-by: Yuqing Zhao <[email protected]>
Add Northbound APIs to create/modify/destroy an SRv6 SID Signed-off-by: Yuqing Zhao <[email protected]>
Signed-off-by: Yuqing Zhao <[email protected]>
Signed-off-by: Yuqing Zhao <[email protected]>
Signed-off-by: Yuqing Zhao <[email protected]>
Signed-off-by: Yuqing Zhao <[email protected]>
Signed-off-by: Yuqing Zhao <[email protected]>
Add the srv6 static sids configuration and show running-config sections in static.rst. Signed-off-by: Yuqing Zhao <[email protected]>
41f7b84
to
f56a773
Compare
@pguibert6WIND Thanks very much. We pushed the code with the required changes. |
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.
LGTM
The FRR CLI to support SRv6 Static SIDs has been merged in FRR mainline in this PR (FRRouting/frr#16894). The CLI has been ported into SONiC mainline in this PR (#21380). This PR verifies the SRv6 Static SIDs configured by the above FRR CLI. It verifies that the block and node parts of the configured SID matches block and node parts of the locator it belongs to. The PR computes the parameters that will be installed with the SID into APPL DB. The changes in this PR will be also added into FRR mainline. Signed-off-by: Carmine Scarpitta <[email protected]>
The FRR CLI to support SRv6 Static SIDs has been merged in FRR mainline in this PR (FRRouting/frr#16894). The CLI has been ported into SONiC mainline in this PR (sonic-net#21380). This PR verifies the SRv6 Static SIDs configured by the above FRR CLI. It verifies that the block and node parts of the configured SID matches block and node parts of the locator it belongs to. The PR computes the parameters that will be installed with the SID into APPL DB. The changes in this PR will be also added into FRR mainline. Signed-off-by: Carmine Scarpitta <[email protected]>
The FRR CLI to support SRv6 Static SIDs has been merged in FRR mainline in this PR (FRRouting/frr#16894). The CLI has been ported into SONiC mainline in this PR (sonic-net/sonic-buildimage#21380). This PR verifies the SRv6 Static SIDs configured by the above FRR CLI. It verifies that the block and node parts of the configured SID matches block and node parts of the locator it belongs to. The PR computes the parameters that will be installed with the SID into APPL DB. The changes in this PR will be also added into FRR mainline.
SRv6 is already supported in IS-IS and BGP. In this PR we extend staticd to support static allocation for SRv6 SIDs.
CLI example: