diff options
author | Donald Sharp <sharpd@cumulusnetworks.com> | 2018-02-27 03:44:47 +0100 |
---|---|---|
committer | Donald Sharp <sharpd@cumulusnetworks.com> | 2018-02-27 03:44:47 +0100 |
commit | a3896844153e8f0105dc33e007805650af42185d (patch) | |
tree | 82d7facf52b90bb5ed209912a62023b815d2e894 /sharpd/sharp_zebra.c | |
parent | pimd: Cleanup TODO file (diff) | |
download | frr-a3896844153e8f0105dc33e007805650af42185d.tar.xz frr-a3896844153e8f0105dc33e007805650af42185d.zip |
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@cumulusnetworks.com>
Diffstat (limited to 'sharpd/sharp_zebra.c')
-rw-r--r-- | sharpd/sharp_zebra.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sharpd/sharp_zebra.c b/sharpd/sharp_zebra.c index 3b22db20a..f02ce4979 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]; |