summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJafar Al-Gharaibeh <jafar@atcorp.com>2025-02-13 19:04:59 -0600
committerGitHub <noreply@github.com>2025-02-13 19:04:59 -0600
commit87b0521b2404211569a0c1fd8937d3d9fcc2242b (patch)
tree2ab9340e9551ab92e80c50fb5dac253250545417
parent2c4aff11b1cc44637d7def029f77857c5740f8d8 (diff)
parent12f7120c078fdb7065e44277050659146060968f (diff)
Merge pull request #18147 from FRRouting/mergify/bp/stable/10.2/pr-18023
lib: fix false context information for SRv6 route (backport #18023)
-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: