diff options
| author | Philippe Guibert <philippe.guibert@6wind.com> | 2025-02-05 09:52:59 +0100 |
|---|---|---|
| committer | Carmine Scarpitta <cscarpit@cisco.com> | 2025-02-14 22:30:45 +0100 |
| commit | 4329f24625f9569ab5367a1f064d21b92504904e (patch) | |
| tree | 818723f96c86747bcf32ebeee0e9b6764435b574 | |
| parent | b54519d027a0535bbe0d3fd0a8bf27873e866009 (diff) | |
lib: fix false context information for SRv6 route
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>
| -rw-r--r-- | lib/srv6.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/srv6.c b/lib/srv6.c index a82103e423..18e453d4fb 100644 --- a/lib/srv6.c +++ b/lib/srv6.c @@ -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: |
