Skip to content

Commit

Permalink
zebra: account for non-evpn ecmp
Browse files Browse the repository at this point in the history
Account for non-evpn nexthops in ecmp groups when
doing the DVNI check.

Signed-off-by: Stephen Worley <sworley@nvidia.com>
  • Loading branch information
sworleys committed Feb 13, 2023
1 parent 7e79dce commit 3712983
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions zebra/zebra_nhg.c
Original file line number Diff line number Diff line change
Expand Up @@ -2771,6 +2771,10 @@ static bool nexthop_list_set_evpn_dvni(struct route_entry *re,
re_vrf_vni = get_l3vni_vni(re->vrf_id);

for (; nexthop; nexthop = nexthop->next) {
if (!nexthop->nh_label ||
nexthop->nh_label_type != ZEBRA_LSP_EVPN)
continue;

nh_vni = label2vni(&nexthop->nh_label->label[0]);

if (nh_vni != re_vrf_vni)
Expand Down

0 comments on commit 3712983

Please sign in to comment.