Skip to content

Commit

Permalink
Merge pull request #12303 from donaldsharp/relax_if_type_check
Browse files Browse the repository at this point in the history
zebra: relax if_type check to allow early ES config creation
  • Loading branch information
Jafaral authored Nov 11, 2022
2 parents 2bb16f6 + 3fa177e commit 744de7c
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 744de7c

Please sign in to comment.