Skip to content

Commit

Permalink
lib: fix false context information for SRv6 route
Browse files Browse the repository at this point in the history
The seg6local route dumped by 'show ipv6 route' makes think that the USP
flavor is supported, whereas it is not the case. This information is a
context information, and for End, the context information should be
empty.

> # show ipv6 route
> [..]
> I>* fc00:0:4::/128 [115/0] is directly connected, sr0, seg6local End USP, weight 1, 00:49:01

Fix this by suppressing the USP information from the output.

Fixes: e496b42 ("bgpd: prefix-sid srv6 l3vpn service tlv")
Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
  • Loading branch information
pguibert6WIND authored and cscarpitta committed Feb 14, 2025
1 parent b54519d commit 4329f24
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/srv6.c
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ const char *seg6local_context2str(char *str, size_t size,
switch (action) {

case ZEBRA_SEG6_LOCAL_ACTION_END:
snprintf(str, size, "USP");
snprintf(str, size, "-");
return str;

case ZEBRA_SEG6_LOCAL_ACTION_END_X:
Expand Down

0 comments on commit 4329f24

Please sign in to comment.