summaryrefslogtreecommitdiff
path: root/lib/srv6.c
diff options
context:
space:
mode:
authorCarmine Scarpitta <cscarpit@cisco.com>2025-02-13 18:57:44 +0100
committerGitHub <noreply@github.com>2025-02-13 18:57:44 +0100
commitcaeef98e7376e1923ee37421a1d2e31aadc175f1 (patch)
tree46f599b56c8176d2b047aaab342ed3d4f55022c8 /lib/srv6.c
parent52a3239b26a09a969472f7c41fa647603d4bd341 (diff)
parent658bf0281d99461849453628ddc792ec424d0bd4 (diff)
Merge pull request #18023 from pguibert6WIND/srv6_route_dump
lib: fix false context information for SRv6 route
Diffstat (limited to 'lib/srv6.c')
-rw-r--r--lib/srv6.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/srv6.c b/lib/srv6.c
index e6fc375fbb..76655a820b 100644
--- a/lib/srv6.c
+++ b/lib/srv6.c
@@ -76,7 +76,6 @@ void seg6local_context2json(const struct seg6local_context *ctx,
{
switch (action) {
case ZEBRA_SEG6_LOCAL_ACTION_END:
- json_object_boolean_add(json, "USP", true);
return;
case ZEBRA_SEG6_LOCAL_ACTION_END_X:
case ZEBRA_SEG6_LOCAL_ACTION_END_DX6:
@@ -116,7 +115,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: