ospfd, ospf6d: Remove deprecated JSON fields

restartSupoort

Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
This commit is contained in:
Donatas Abraitis 2024-04-11 13:34:17 +03:00
parent 3d3f9684ae
commit 8f7bc620b5
2 changed files with 0 additions and 18 deletions

View file

@ -938,15 +938,6 @@ static void show_ospf6_gr_helper_details(struct vty *vty, struct ospf6 *ospf6,
? "Enabled" ? "Enabled"
: "Disabled"); : "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_object_string_add(
json, "restartSupport", json, "restartSupport",
(ospf6->ospf6_helper_cfg.only_planned_restart) (ospf6->ospf6_helper_cfg.only_planned_restart)

View file

@ -10446,15 +10446,6 @@ static int ospf_show_gr_helper_details(struct vty *vty, struct ospf *ospf,
json_object_string_add(json_vrf, "strictLsaCheck", json_object_string_add(json_vrf, "strictLsaCheck",
(ospf->strict_lsa_check) ? "Enabled" (ospf->strict_lsa_check) ? "Enabled"
: "Disabled"); : "Disabled");
#if CONFDATE > 20240401
CPP_NOTICE("Remove deprecated json key: restartSupoort")
#endif
json_object_string_add(
json_vrf, "restartSupoort",
(ospf->only_planned_restart)
? "Planned Restart only"
: "Planned and Unplanned Restarts");
json_object_string_add( json_object_string_add(
json_vrf, "restartSupport", json_vrf, "restartSupport",
(ospf->only_planned_restart) (ospf->only_planned_restart)