lib: display End.DX2 route with appropriate oif attribute - #20954
Conversation
Without that change, no extra attribute is associated to that SRv6 instruction. > ip route add 2001:db1::/48 encap seg6local action End.DX2 oif dum1 dev loop1 > > PE1# show ipv6 route > Codes: K - kernel route, C - connected, L - local, S - static, > R - RIPng, O - OSPFv3, I - IS-IS, B - BGP, N - NHRP, > T - Table, v - VNC, V - VNC-Direct, A - Babel, D - SHARP, > F - PBR, f - OpenFabric, t - Table-Direct, > > - selected route, * - FIB route, q - queued, r - rejected, b - backup > t - trapped, o - offload failure > > IPv6 unicast VRF default: > K>* 2001:db1::/48 [0/1024] is directly connected, loop1, seg6local End.DX2 oif dum1, weight 1, 00:00:04 Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
Greptile SummaryAdds output interface (oif) display for End.DX2 SRv6 routes, fixing a gap where these routes previously showed no additional attributes. The implementation uses
Confidence Score: 4/5
Important Files Changed
Last reviewed commit: aa1b702 |
Additional Comments (1)
Prompt To Fix With AIThis is a comment left during a code review.
Path: lib/srv6.c
Line: 128-130
Comment:
The JSON output for `END_DX2` should be updated to include interface information to match the string output changes (lines 216-218). Currently shows `"none": true` while the string output now displays the output interface.
```suggestion
case ZEBRA_SEG6_LOCAL_ACTION_END_DX2:
json_object_string_add(json, "interfaceName",
ifindex2ifname(ctx->ifindex, VRF_DEFAULT));
json_object_int_add(json, "interfaceIndex", ctx->ifindex);
return;
```
How can I resolve this? If you propose a fix, please make it concise. |
|
@Mergifyio backport dev/10.6 stable/10.5 stable/10.4 stable/10.3 stable/10.2 |
β Backports have been createdDetails
Cherry-pick of aa1b702 has failed: To fix up this pull request, you can check it out locally. See documentation: https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/reviewing-changes-in-pull-requests/checking-out-pull-requests-locally
Cherry-pick of aa1b702 has failed: To fix up this pull request, you can check it out locally. See documentation: https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/reviewing-changes-in-pull-requests/checking-out-pull-requests-locally |
lib: display End.DX2 route with appropriate oif attribute (backport #20954)
Without that change, no extra attribute is associated to that SRv6 instruction.