From 0cb76b9d8dd1925d34fe84f1c24c2a7890444e97 Mon Sep 17 00:00:00 2001 From: Donald Sharp Date: Mon, 8 Jan 2018 08:57:44 -0500 Subject: [PATCH] lib: Add notice of when we can remove some deprecated code. The zapi_ipv4_route, zapi_ipv6_route and zapi_ipv4_route_ipv6_nexthop functions are deprecated. Add notice of when we can remove the deprecated code from the system. Signed-off-by: Donald Sharp --- lib/zclient.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lib/zclient.h b/lib/zclient.h index cc34fd9d2c..869b9b7d68 100644 --- a/lib/zclient.h +++ b/lib/zclient.h @@ -420,6 +420,11 @@ extern struct interface *zebra_interface_vrf_update_read(struct stream *s, vrf_id_t *new_vrf_id); extern void zebra_interface_if_set_value(struct stream *, struct interface *); extern void zebra_router_id_update_read(struct stream *s, struct prefix *rid); + +#if CONFDATE > 20180823 +CPP_NOTICE("zapi_ipv4_route, zapi_ipv6_route, zapi_ipv4_route_ipv6_nexthop as well as the zapi_ipv4 and zapi_ipv6 data structures should be removed now"); +#endif + extern int zapi_ipv4_route(u_char, struct zclient *, struct prefix_ipv4 *, struct zapi_ipv4 *) __attribute__((deprecated));