From 40f321c000862f9d25f29c6003c53f21997bba80 Mon Sep 17 00:00:00 2001 From: Mark Stapp Date: Wed, 14 Aug 2019 13:30:24 -0400 Subject: zebra: revise redistribution delete to improve update case When selecting a new best route, zebra sends a redist update when the route is installed. There are cases where redist clients may not see that redist add - clients who are not subscribed to the new route type, e.g. In that case, attempt to send a redist delete for the old/previous route type. Revised the redist delete api to accomodate both cases; also tightened up the const-ness of a few internal redist apis. Signed-off-by: Mark Stapp --- zebra/zapi_msg.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'zebra/zapi_msg.c') diff --git a/zebra/zapi_msg.c b/zebra/zapi_msg.c index fa6a2f62ec..0e7dc5ce9b 100644 --- a/zebra/zapi_msg.c +++ b/zebra/zapi_msg.c @@ -516,7 +516,8 @@ int zsend_interface_update(int cmd, struct zserv *client, struct interface *ifp) int zsend_redistribute_route(int cmd, struct zserv *client, const struct prefix *p, - const struct prefix *src_p, struct route_entry *re) + const struct prefix *src_p, + const struct route_entry *re) { struct zapi_route api; struct zapi_nexthop *api_nh; -- cgit v1.2.3