diff options
| author | Donald Sharp <donaldsharp72@gmail.com> | 2025-02-13 13:37:22 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-02-13 13:37:22 -0500 |
| commit | 8a661e51526beed9d180ce67f34b5c3be09a28ac (patch) | |
| tree | 735b87f78cad3add22ec03b11d9cc3f2619fb8c4 /lib/srv6.c | |
| parent | caeef98e7376e1923ee37421a1d2e31aadc175f1 (diff) | |
| parent | a6d02fe2fb38b8e0c2e1c25fd863f6f96c2c40a6 (diff) | |
Merge pull request #18064 from cscarpitta/fix/fix_srv6_sid_parameters
staticd: Fix SRv6 SID installation and deletion
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 76655a820b..4d820e2fcc 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) { |
