]> git.puffer.fish Git - mirror/frr.git/commitdiff
ospf6d: Link state ID in LSA database JSON output 8851/head
authorDavid Schweizer <dschweizer@opensourcerouting.org>
Mon, 14 Jun 2021 06:41:10 +0000 (08:41 +0200)
committerDavid Schweizer <dschweizer@opensourcerouting.org>
Mon, 14 Jun 2021 06:41:10 +0000 (08:41 +0200)
Added link state ID to JSON output of LSA database.

Signed-off-by: David Schweizer <dschweizer@opensourcerouting.org>
ospf6d/ospf6_lsa.c

index a8f523295b7710b980afdc8df39618dc5d46f7e7..d62719425289a05f9fdde8d8243f4b896de21003 100644 (file)
@@ -654,6 +654,7 @@ void ospf6_lsa_show(struct vty *vty, struct ospf6_lsa *lsa,
                                    ospf6_lsa_age_current(lsa));
                json_object_string_add(json_obj, "type",
                                       ospf6_lstype_name(lsa->header->type));
+               json_object_string_add(json_obj, "linkStateId", id);
                json_object_string_add(json_obj, "advertisingRouter",
                                       adv_router);
                json_object_int_add(json_obj, "lsSequenceNumber",