diff options
Diffstat (limited to 'lib/nexthop.c')
| -rw-r--r-- | lib/nexthop.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/nexthop.c b/lib/nexthop.c index ee6c2b7ec0..c377b9cb00 100644 --- a/lib/nexthop.c +++ b/lib/nexthop.c @@ -1153,6 +1153,7 @@ void nexthop_json_helper(json_object *json_nexthop, json_object *json_backups = NULL; json_object *json_seg6local = NULL; json_object *json_seg6local_context = NULL; + json_object *json_srv6_sid_structure = NULL; json_object *json_seg6 = NULL; json_object *json_segs = NULL; int i; @@ -1328,6 +1329,10 @@ void nexthop_json_helper(json_object *json_nexthop, json_object_object_add(json_nexthop, "seg6localContext", json_seg6local_context); + json_srv6_sid_structure = json_object_new_object(); + srv6_sid_structure2json(&nexthop->nh_srv6->seg6local_ctx, json_srv6_sid_structure); + json_object_object_add(json_seg6local, "sidStructure", json_srv6_sid_structure); + if (nexthop->nh_srv6->seg6_segs && nexthop->nh_srv6->seg6_segs->num_segs == 1) { json_seg6 = json_object_new_object(); |
