]> git.puffer.fish Git - mirror/frr.git/commitdiff
lib: Add notice of when we can remove some deprecated code.
authorDonald Sharp <sharpd@cumulusnetworks.com>
Mon, 8 Jan 2018 13:57:44 +0000 (08:57 -0500)
committerDonald Sharp <sharpd@cumulusnetworks.com>
Fri, 12 Jan 2018 14:19:43 +0000 (09:19 -0500)
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 <sharpd@cumulusnetworks.com>
lib/zclient.h

index cc34fd9d2c9d5e3f12b52a0da8614e22e20dad69..869b9b7d6843cc98b5f5cf335564de97ad0e8d9c 100644 (file)
@@ -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));