]> git.puffer.fish Git - mirror/frr.git/commitdiff
lib: fix false context information for SRv6 route 18174/head
authorPhilippe Guibert <philippe.guibert@6wind.com>
Wed, 5 Feb 2025 08:52:59 +0000 (09:52 +0100)
committerCarmine Scarpitta <cscarpit@cisco.com>
Fri, 14 Feb 2025 21:33:01 +0000 (22:33 +0100)
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: e496b4203055 ("bgpd: prefix-sid srv6 l3vpn service tlv")
Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
lib/srv6.c

index dceb6ab48bb91440332e763e11ec583030f32b30..5e264b14d9bbe83911873c582d501a6abaac8476 100644 (file)
@@ -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: