diff options
author | Mark Stapp <mjs@voltanet.io> | 2020-05-08 22:22:54 +0200 |
---|---|---|
committer | Mark Stapp <mjs@voltanet.io> | 2020-07-07 19:14:01 +0200 |
commit | 6b193087ca10e128614ea5dacc72c4462e6db0ce (patch) | |
tree | e131f048c21d6d2fc09983c486b7678127a86959 /staticd | |
parent | Merge pull request #6689 from mjstapp/doc_topotest_timeouts (diff) | |
download | frr-6b193087ca10e128614ea5dacc72c4462e6db0ce.tar.xz frr-6b193087ca10e128614ea5dacc72c4462e6db0ce.zip |
staticd,zebra: use ALLOW_RECURSION for static routes
Remove a special-case clause for static routes - it was the same
as the clause for other recursive routes. Have staticd just tell
zebra that recursion is allowed. Update topotest that was aware
of this 'internal' flag.
Signed-off-by: Mark Stapp <mjs@voltanet.io>
Diffstat (limited to 'staticd')
-rw-r--r-- | staticd/static_zebra.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/staticd/static_zebra.c b/staticd/static_zebra.c index 5cadf3436..c42f632ff 100644 --- a/staticd/static_zebra.c +++ b/staticd/static_zebra.c @@ -363,6 +363,7 @@ extern void static_zebra_route_add(struct route_node *rn, memcpy(&api.src_prefix, src_pp, sizeof(api.src_prefix)); } SET_FLAG(api.flags, ZEBRA_FLAG_RR_USE_DISTANCE); + SET_FLAG(api.flags, ZEBRA_FLAG_ALLOW_RECURSION); SET_FLAG(api.message, ZAPI_MESSAGE_NEXTHOP); if (si_changed->distance) { SET_FLAG(api.message, ZAPI_MESSAGE_DISTANCE); |