Skip to content

Commit

Permalink
Merge pull request #12305 from FRRouting/mergify/bp/stable/8.4/pr-12303
Browse files Browse the repository at this point in the history
zebra: relax if_type check to allow early ES config creation (backport #12303)
  • Loading branch information
ton31337 committed Nov 11, 2022
2 parents 0c2f57d + 07a8774 commit 72e7872
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions zebra/zebra_evpn_mh.c
Original file line number Diff line number Diff line change
Expand Up @@ -2759,6 +2759,12 @@ bool zebra_evpn_is_if_es_capable(struct zebra_if *zif)
if (zif->zif_type == ZEBRA_IF_BOND)
return true;

/* relax the checks to allow config to be applied in zebra
* before interface is rxed from the kernel
*/
if (zif->ifp->ifindex == IFINDEX_INTERNAL)
return true;

/* XXX: allow swpX i.e. a regular ethernet port to be an ES link too */
return false;
}
Expand Down

0 comments on commit 72e7872

Please sign in to comment.