-
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
Pg srv6 te policy #17909
Draft
pguibert6WIND
wants to merge
16
commits into
FRRouting:master
Choose a base branch
from
pguibert6WIND:pg_srv6_te_policy
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
Pg srv6 te policy #17909
Conversation
This file contains 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
Add SRv6 segments to zapi_srte_stunnel structure. Signed-off-by: Dmytro Shytyi <dmytro.shytyi@6wind.com>
Add SRv6 SID value (srv6-sid-value) to the YANG model. Implement nb handlers for this new value. Signed-off-by: Dmytro Shytyi <dmytro.shytyi@6wind.com>
Add structute sr_types_t, that contains the Segment Routing types. Fill the zapi_sr_policy's segment_list with values such as: - value - local_label - num_segs - srv6_segs Signed-off-by: Dmytro Shytyi <dmytro.shytyi@6wind.com>
SR-TE tunnel must contain at least one label or SRv6 SID. Check this condition. Signed-off-by: Dmytro Shytyi <dmytro.shytyi@6wind.com>
When the segment list is not empty add SRv6 segments to a nexthop. Signed-off-by: Dmytro Shytyi <dmytro.shytyi@6wind.com>
Encode and Decode SRv6-TE. It includes: - number of segments - list of segments Signed-off-by: Dmytro Shytyi <dmytro.shytyi@6wind.com>
When configuring an SRv6 SID list via iproute2, the segment list that appears in vtysh, learned from the kernel, is inversed. Fix the order of SRv6 SIDs in segment list, learned from the kernel. Fixes: f20cf14 ("bgpd,lib,sharpd,zebra: srv6 introduce multiple segs/SIDs in nexthop") Signed-off-by: Dmytro Shytyi <dmytro.shytyi@6wind.com>
Pathd needs to track the reachability of the first SID of any SRv6 segment-list. Use the nexthop tracking facility and add the pathd daemon as a client to nht service from zebra. Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com> Signed-off-by: Dmytro Shytyi <dmytro.shytyi@6wind.com>
The Pathd daemon is aware of the SID reachability, but still once the sr policy installed in zebra, there is need to re-resolve the SID reachability. Extend the Pathd NHT service, by extracting the resolved next-hop. This information will be conveyed in the SR_POLICY_SET message, and will be very helpful to simplify code in zebra. Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com> Signed-off-by: Dmytro Shytyi <dmytro.shytyi@6wind.com>
When SRv6 list of segments was changed, change SRv6 policy. Signed-off-by: Dmytro Shytyi <dmytro.shytyi@6wind.com>
…nt_list When notifying an update for a colored nexthop, ZEBRA sends the default PATHD distance value and the 0 metric value. Those two values break the original values that originated from an IGP route, for instance. When transmitting this information to BGP for instance, the distance and values are very important when computing BGP paths. Change this by keeping the original distance and metric values. When SRv6 segment list size is bigger than 0, send segments and other elements via zserv_send_message(). The ZEBRA SRTE code can not rely on the routing table. Use instead the resolved nexthop information gathered by th SRv6 SRTE information. Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com> Signed-off-by: Dmytro Shytyi <dmytro.shytyi@6wind.com>
Consider an srv6 policy active, when sr policy set is received. The sr_policy_validate() function is however called, the default state value is down, and immediately sent to UP. Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com> Signed-off-by: Dmytro Shytyi <dmytro.shytyi@6wind.com>
Add pathd srv6 segment list support. Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com> Signed-off-by: Dmytro Shytyi <dmytro.shytyi@6wind.com>
SRv6 Policy is an ordered list of segments that represent a source-routed policy. Packet flows are steered into an SRv6 Policy. Signed-off-by: Dmytro Shytyi <dmytro@shytyi@6wind.com> Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
pguibert6WIND
force-pushed
the
pg_srv6_te_policy
branch
from
January 23, 2025 12:46
14349bb
to
9250d76
Compare
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.
draft. please do not review