Skip to content

staticd: Add support for SRv6 Static SIDs#16894

Merged
pguibert6WIND merged 15 commits intoFRRouting:masterfrom
wenwang00:project-phoenixwing-ysj
Jan 20, 2025
Merged

staticd: Add support for SRv6 Static SIDs#16894
pguibert6WIND merged 15 commits intoFRRouting:masterfrom
wenwang00:project-phoenixwing-ysj

Conversation

@Yubin-Li
Copy link

@Yubin-Li Yubin-Li commented Sep 23, 2024

SRv6 is already supported in IS-IS and BGP. In this PR we extend staticd to support static allocation for SRv6 SIDs.

CLI example:

segment-routing
  srv6
    static-sids:
      sid fcbb:bbbb:1:fe01::/64 locator LOC1 behavior uDT4 vrf Vrf1

@github-actions
Copy link

This pull request has conflicts, please resolve those before we can evaluate the pull request.

@github-actions github-actions bot added the rebase PR needs rebase label Sep 23, 2024
@donaldsharp
Copy link
Member

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.

@donaldsharp
Copy link
Member

Additionally this is not going to be even looked at until we have a topology test as well as documentation for the new functionality

@zice312963205 zice312963205 force-pushed the project-phoenixwing-ysj branch from 113f49b to 9d52e4a Compare November 23, 2024 14:18
@frrbot frrbot bot added the zebra label Nov 23, 2024
@Yubin-Li Yubin-Li changed the title add CLI about locator, related funcs and KERNELBYPASS flag on dplane_ctx Add CLI about locator and related funcs Nov 25, 2024
@frrbot frrbot bot added documentation libfrr tests Topotests, make check, etc labels Nov 27, 2024
@github-actions github-actions bot added size/XL and removed size/L labels Nov 27, 2024
@GaladrielZhao GaladrielZhao force-pushed the project-phoenixwing-ysj branch 3 times, most recently from 2c51a1d to 64739c5 Compare November 27, 2024 09:32
@zice312963205
Copy link
Contributor

LGTM

@pguibert6WIND
Copy link
Member

ci:rerun

@pguibert6WIND
Copy link
Member

The code is ok to me. lets wait last change about yang description field before turning on approval.
thanks

Copy link
Contributor

@zice312963205 zice312963205 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

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]>
Add Northbound APIs to create/modify/destroy an SRv6 SID

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]>
@GaladrielZhao
Copy link
Contributor

The code is ok to me. lets wait last change about yang description field before turning on approval. thanks

@pguibert6WIND Thanks very much. We pushed the code with the required changes.

Copy link
Contributor

@cscarpitta cscarpitta left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

9 participants