diff options
| author | Jafar Al-Gharaibeh <jafar@atcorp.com> | 2025-02-13 19:03:50 -0600 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-02-13 19:03:50 -0600 |
| commit | 478864436d214b49aca5f5eb7289544b19b90f90 (patch) | |
| tree | 0d235dedfddf0422241cfb91e84f58dc52077a74 /lib/srv6.c | |
| parent | 961a9528ecbc5f0d5650dfc92a6c033042210834 (diff) | |
| parent | 92fa579d04ee9f6ee7f978cdfc104e92a3af7b9a (diff) | |
Merge pull request #18151 from FRRouting/mergify/bp/dev/10.3/pr-18064
staticd: Fix SRv6 SID installation and deletion (backport #18064)
Diffstat (limited to 'lib/srv6.c')
| -rw-r--r-- | lib/srv6.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/srv6.c b/lib/srv6.c index e6fc375fbb..c00aca3cab 100644 --- a/lib/srv6.c +++ b/lib/srv6.c @@ -71,6 +71,14 @@ int snprintf_seg6_segs(char *str, return strlen(str); } +void srv6_sid_structure2json(const struct seg6local_context *ctx, json_object *json) +{ + json_object_int_add(json, "blockLen", ctx->block_len); + json_object_int_add(json, "nodeLen", ctx->node_len); + json_object_int_add(json, "funcLen", ctx->function_len); + json_object_int_add(json, "argLen", ctx->argument_len); +} + void seg6local_context2json(const struct seg6local_context *ctx, uint32_t action, json_object *json) { |
