From a63fecfb56f94307dd62caba3d2f99b6cb19a452 Mon Sep 17 00:00:00 2001 From: Mark Stapp Date: Fri, 31 Mar 2023 10:48:45 -0400 Subject: ospf,ospf6: fix json key typo supoort Fix json key 'supoort' -> 'support'; add 1-year deprecation notice; fix topotests to use corrected json key. Signed-off-by: Mark Stapp --- ospf6d/ospf6_gr_helper.c | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'ospf6d/ospf6_gr_helper.c') diff --git a/ospf6d/ospf6_gr_helper.c b/ospf6d/ospf6_gr_helper.c index d313510cfa..216d78c1cc 100644 --- a/ospf6d/ospf6_gr_helper.c +++ b/ospf6d/ospf6_gr_helper.c @@ -937,12 +937,22 @@ static void show_ospf6_gr_helper_details(struct vty *vty, struct ospf6 *ospf6, (ospf6->ospf6_helper_cfg.strict_lsa_check) ? "Enabled" : "Disabled"); + +#if CONFDATE > 20240401 + CPP_NOTICE("Remove deprecated json key: restartSupoort") +#endif json_object_string_add( json, "restartSupoort", (ospf6->ospf6_helper_cfg.only_planned_restart) ? "Planned Restart only" : "Planned and Unplanned Restarts"); + json_object_string_add( + json, "restartSupport", + (ospf6->ospf6_helper_cfg.only_planned_restart) + ? "Planned Restart only" + : "Planned and Unplanned Restarts"); + json_object_int_add( json, "supportedGracePeriod", ospf6->ospf6_helper_cfg.supported_grace_time); -- cgit v1.2.3