mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-07-17 06:18:25 +00:00
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:
commit
744de7c695
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user