From: Donald Sharp Date: Mon, 8 Jan 2018 13:57:44 +0000 (-0500) Subject: lib: Add notice of when we can remove some deprecated code. X-Git-Tag: frr-4.0-dev~30^2~17 X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=0cb76b9d8dd1925d34fe84f1c24c2a7890444e97;p=mirror%2Ffrr.git 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 --- 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));