From a3896844153e8f0105dc33e007805650af42185d Mon Sep 17 00:00:00 2001 From: Donald Sharp Date: Mon, 26 Feb 2018 21:44:47 -0500 Subject: [PATCH] sharpd: Allow sharp routes to recurse When passing in a sharp route, allow the nexthop choosen to recurse to find a match. Signed-off-by: Donald Sharp --- sharpd/sharp_zebra.c | 1 + 1 file changed, 1 insertion(+) diff --git a/sharpd/sharp_zebra.c b/sharpd/sharp_zebra.c index 3b22db20aa..f02ce4979c 100644 --- a/sharpd/sharp_zebra.c +++ b/sharpd/sharp_zebra.c @@ -169,6 +169,7 @@ void route_add(struct prefix *p, struct nexthop *nh) api.safi = SAFI_UNICAST; memcpy(&api.prefix, p, sizeof(*p)); + SET_FLAG(api.flags, ZEBRA_FLAG_ALLOW_RECURSION); SET_FLAG(api.message, ZAPI_MESSAGE_NEXTHOP); api_nh = &api.nexthops[0]; -- 2.39.5