summaryrefslogtreecommitdiff
path: root/zebra/zebra_rib.c
diff options
context:
space:
mode:
authorMark Stapp <mjs.ietf@gmail.com>2024-07-09 13:48:37 -0400
committerGitHub <noreply@github.com>2024-07-09 13:48:37 -0400
commit7d08b297219ee58ece6c6548557075fe6f46a0f6 (patch)
tree4f5cdf1016881b77750a485e660994145dd42c94 /zebra/zebra_rib.c
parent685712df44c4b4da91853db6ca30bf23e388d826 (diff)
parent731f74e35fa2c1636208f4bf64650d2d00a199b4 (diff)
Merge pull request #16342 from pguibert6WIND/duplicate_fib_proposal
Duplicate fib proposal
Diffstat (limited to 'zebra/zebra_rib.c')
-rw-r--r--zebra/zebra_rib.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/zebra/zebra_rib.c b/zebra/zebra_rib.c
index b176ea2fe6..142f83fb36 100644
--- a/zebra/zebra_rib.c
+++ b/zebra/zebra_rib.c
@@ -1659,6 +1659,9 @@ static bool rib_update_nhg_from_ctx(struct nexthop_group *re_nhg,
if (!CHECK_FLAG(nexthop->flags, NEXTHOP_FLAG_ACTIVE))
continue;
+ if (CHECK_FLAG(nexthop->flags, NEXTHOP_FLAG_DUPLICATE))
+ continue;
+
/* Check for a FIB nexthop corresponding to the RIB nexthop */
if (!nexthop_same(ctx_nexthop, nexthop)) {
/* If the FIB doesn't know about the nexthop,