summaryrefslogtreecommitdiff
path: root/sharpd/sharp_zebra.c
diff options
context:
space:
mode:
authorMark Stapp <mjs@labn.net>2023-06-28 15:31:23 -0400
committerMark Stapp <mjs@labn.net>2023-07-10 16:43:53 -0400
commit89ff272d387460fd066639e3fa979f14a2ed147c (patch)
tree967660aa0f1d8587c00fe3d42235a6306c3d8935 /sharpd/sharp_zebra.c
parentbb58cad150cd626a780b091b61a2d2ca6235e1e3 (diff)
sharpd: allow sharpd to install non-recursive routes
Add a config option so that sharpd can install routes without the ALLOW_RECURSION flag, matching IGP behavior. The default remains 'recursion'. Signed-off-by: Mark Stapp <mjs@labn.net>
Diffstat (limited to 'sharpd/sharp_zebra.c')
-rw-r--r--sharpd/sharp_zebra.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/sharpd/sharp_zebra.c b/sharpd/sharp_zebra.c
index df18118b02..c095fec17b 100644
--- a/sharpd/sharp_zebra.c
+++ b/sharpd/sharp_zebra.c
@@ -247,7 +247,6 @@ static bool route_add(const struct prefix *p, vrf_id_t vrf_id, uint8_t instance,
memcpy(&api.prefix, p, sizeof(*p));
api.flags = flags;
- SET_FLAG(api.flags, ZEBRA_FLAG_ALLOW_RECURSION);
SET_FLAG(api.message, ZAPI_MESSAGE_NEXTHOP);
/* Only send via ID if nhgroup has been successfully installed */