]> git.proxmox.com Git - mirror_frr.git/blobdiff - ospf6d/ospf6_gr_helper.c
*: Drop deprecated incorrect JSON fields with wrong naming
[mirror_frr.git] / ospf6d / ospf6_gr_helper.c
index 771a710240b80154bbd809b2727f4f7633997104..661d37e6371a35fc10d07623b51986f582b98172 100644 (file)
@@ -963,22 +963,13 @@ static void show_ospf6_gr_helper_details(struct vty *vty, struct ospf6 *ospf6,
                        json, "supportedGracePeriod",
                        ospf6->ospf6_helper_cfg.supported_grace_time);
 
-#if CONFDATE > 20230131
-CPP_NOTICE("Remove JSON object commands with keys starting with capital")
-#endif
                if (ospf6->ospf6_helper_cfg.last_exit_reason !=
-                   OSPF6_GR_HELPER_EXIT_NONE) {
-                       json_object_string_add(
-                               json, "LastExitReason",
-                               ospf6_exit_reason_desc
-                                       [ospf6->ospf6_helper_cfg
-                                                .last_exit_reason]);
+                   OSPF6_GR_HELPER_EXIT_NONE)
                        json_object_string_add(
                                json, "lastExitReason",
                                ospf6_exit_reason_desc
                                        [ospf6->ospf6_helper_cfg
                                                 .last_exit_reason]);
-               }
 
                if (ospf6->ospf6_helper_cfg.active_restarter_cnt)
                        json_object_int_add(
@@ -1009,18 +1000,12 @@ CPP_NOTICE("Remove JSON object commands with keys starting with capital")
                                struct ospf6_neighbor *nbr;
 
                                if (uj) {
-                                       json_object_object_get_ex(
-                                               json, "Neighbors",
-                                               &json_neighbors);
                                        json_object_object_get_ex(
                                                json, "neighbors",
                                                &json_neighbors);
                                        if (!json_neighbors) {
                                                json_neighbors =
                                                json_object_new_object();
-                                               json_object_object_add(
-                                                       json, "Neighbors",
-                                                       json_neighbors);
                                                json_object_object_add(
                                                        json, "neighbors",
                                                        json_neighbors);