summaryrefslogtreecommitdiff
path: root/ospf6d/ospf6_area.c
diff options
context:
space:
mode:
authorDavid Schweizer <dschweizer@opensourcerouting.org>2022-01-12 12:32:33 +0100
committerDavid Schweizer <dschweizer@opensourcerouting.org>2022-01-12 12:32:33 +0100
commit0b11b56abd258a65786c99d18412149c5963ca19 (patch)
treed5ed00ac5f7500daf4a7e8e7b234cc02677a2617 /ospf6d/ospf6_area.c
parent8935a149e580ea91b3ef5941439f59f740f22e3a (diff)
ospf6d: add LSA stats to show area json output
Signed-off-by: David Schweizer <dschweizer@opensourcerouting.org>
Diffstat (limited to 'ospf6d/ospf6_area.c')
-rw-r--r--ospf6d/ospf6_area.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/ospf6d/ospf6_area.c b/ospf6d/ospf6_area.c
index 417fc69694..4225b59e26 100644
--- a/ospf6d/ospf6_area.c
+++ b/ospf6d/ospf6_area.c
@@ -453,6 +453,11 @@ void ospf6_area_show(struct vty *vty, struct ospf6_area *oa,
json_object_int_add(json_area, "numberOfAreaScopedLsa",
oa->lsdb->count);
+ json_object_object_add(
+ json_area, "lsaStatistics",
+ JSON_OBJECT_NEW_ARRAY(json_object_new_int,
+ oa->lsdb->stats,
+ OSPF6_LSTYPE_SIZE));
/* Interfaces Attached */
array_interfaces = json_object_new_array();