diff options
author | rgirada <rgirada@vmware.com> | 2022-10-18 07:51:18 +0200 |
---|---|---|
committer | rgirada <rgirada@vmware.com> | 2022-10-18 07:51:18 +0200 |
commit | 239ccb07f28474d76c5d7a1716cc059006e3861b (patch) | |
tree | cf8d4bf48f11a858bd5f4e86f53d8e1f815d721d /ospf6d/ospf6_gr_helper.c | |
parent | Merge pull request #12084 from ak503/bgp_show_lc (diff) | |
download | frr-239ccb07f28474d76c5d7a1716cc059006e3861b.tar.xz frr-239ccb07f28474d76c5d7a1716cc059006e3861b.zip |
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 <rgirada@vmware.com>
Diffstat (limited to 'ospf6d/ospf6_gr_helper.c')
-rw-r--r-- | ospf6d/ospf6_gr_helper.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/ospf6d/ospf6_gr_helper.c b/ospf6d/ospf6_gr_helper.c index f8b37d803..f352d3527 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(); |