summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDonatas Abraitis <donatas@opensourcerouting.org>2024-04-05 20:49:27 +0300
committerGitHub <noreply@github.com>2024-04-05 20:49:27 +0300
commite19fa07c2c92a84e89d0b08cc735ac16e699b3b3 (patch)
tree11fa822221f81b18f89fcbf44c3337e2ac5be7e1
parent959439f459eb308948615b96b80f52bfc75e1d2c (diff)
parent6f45349197676a433c965b8c4cae2f77e657b056 (diff)
Merge pull request #15675 from pguibert6WIND/srv6_bsid_to_seg6local_2str
lib: add srv6 bsid to seg6local_context2str
-rw-r--r--lib/srv6.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/srv6.c b/lib/srv6.c
index dceb6ab48b..a82103e423 100644
--- a/lib/srv6.c
+++ b/lib/srv6.c
@@ -94,9 +94,11 @@ const char *seg6local_context2str(char *str, size_t size,
snprintf(str, size, "table %u", ctx->table);
return str;
- case ZEBRA_SEG6_LOCAL_ACTION_END_DX2:
case ZEBRA_SEG6_LOCAL_ACTION_END_B6:
case ZEBRA_SEG6_LOCAL_ACTION_END_B6_ENCAP:
+ snprintfrr(str, size, "nh6 %pI6", &ctx->nh6);
+ return str;
+ case ZEBRA_SEG6_LOCAL_ACTION_END_DX2:
case ZEBRA_SEG6_LOCAL_ACTION_END_BM:
case ZEBRA_SEG6_LOCAL_ACTION_END_S:
case ZEBRA_SEG6_LOCAL_ACTION_END_AS: