Merge pull request #12303 from donaldsharp/relax_if_type_check

zebra: relax if_type check to allow early ES config creation
This commit is contained in:
Jafar Al-Gharaibeh 2022-11-11 00:14:41 -06:00 committed by GitHub
commit 744de7c695
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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;
}