Skip to content
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

Add CLI about locator and related funcs #16894

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

Yubin-Li
Copy link

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

zebra: Add support for srv6 locator-opcode
In order to support configuring static SRv6 decapsulation functionality on the system, we need to support configuring a purely static mode local SID. This local SID does not rely on BGP to randomly generate a specific mySID address. Instead, it generates a unique mySID table entry by manually specifying the opcode.
example:
'''
segment-routing
srv6
locators
locator a
prefix fd00::/80 block-len 32 node-len 48 func-bits 16
opcode ::1:2:3:4 end
opcode ::1:2:3:5 end-dt46 vrf Vrf1
exit
!
exit
'''
Signed-off-by: hanyu.zly [email protected]

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 zice312963205 force-pushed the project-phoenixwing-ysj branch 7 times, most recently from 5d6c171 to d23ee2c Compare November 28, 2024 08:03
@zice312963205
Copy link
Contributor

ci:rerun

@GaladrielZhao GaladrielZhao force-pushed the project-phoenixwing-ysj branch 2 times, most recently from 2b02299 to e422fc2 Compare December 3, 2024 11:33
GaladrielZhao and others added 3 commits December 4, 2024 06:45
Update the srv6 locator configuration and
srv6 locator detail [json] display sections in zebra.rst.

Signed-off-by: Yuqing Zhao <[email protected]>
Add topotest zebra_static_opcode_sid to check whether
static opcode can be configured manually and generate mySID properly.
Besides, supplement JSON display for these sids info.
The corresponding command is "show segment-rouing srv6 locator NAME detail json".

Signed-off-by: Yuqing Zhao <[email protected]>
In order to support configuring static SRv6 decapsulation functionality on the system, we need to support configuring a purely static mode local SID. This local SID does not rely on BGP to randomly generate a specific mySID address. Instead, it generates a unique mySID table entry by manually specifying the opcode.

Signed-off-by: hanyu.zly <[email protected]>
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.

4 participants