From 239ccb07f28474d76c5d7a1716cc059006e3861b Mon Sep 17 00:00:00 2001 From: rgirada Date: Tue, 18 Oct 2022 05:51:18 +0000 Subject: [PATCH] ospf6d: adding missing json fields Description: Active GR count field is missing in json o/p of 'show ipv6 ospf gr helper' command. Issue: #12100 Signed-off-by: Rajesh Girada --- ospf6d/ospf6_gr_helper.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/ospf6d/ospf6_gr_helper.c b/ospf6d/ospf6_gr_helper.c index f8b37d803f..f352d35270 100644 --- a/ospf6d/ospf6_gr_helper.c +++ b/ospf6d/ospf6_gr_helper.c @@ -982,6 +982,11 @@ CPP_NOTICE("Remove JSON object commands with keys starting with capital") .last_exit_reason]); } + if (ospf6->ospf6_helper_cfg.active_restarter_cnt) + json_object_int_add( + json, "activeRestarterCnt", + ospf6->ospf6_helper_cfg.active_restarter_cnt); + if (OSPF6_HELPER_ENABLE_RTR_COUNT(ospf6)) { struct json_object *json_rid_array = json_object_new_array();