summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJafar Al-Gharaibeh <jafar@atcorp.com>2022-11-11 00:14:41 -0600
committerGitHub <noreply@github.com>2022-11-11 00:14:41 -0600
commit744de7c695729a3fb640f08626dc61cab00a2f9c (patch)
treef261becdd52b15acc457a5fcbedb6c6e8c4beaa3
parent2bb16f647270b815c95582f4a01100d53c6487b3 (diff)
parent3fa177eed287823bbe1d6c7bd9856d1d19435db3 (diff)
Merge pull request #12303 from donaldsharp/relax_if_type_check
zebra: relax if_type check to allow early ES config creation
-rw-r--r--zebra/zebra_evpn_mh.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/zebra/zebra_evpn_mh.c b/zebra/zebra_evpn_mh.c
index 98120accfd..01ea9c5b9c 100644
--- a/zebra/zebra_evpn_mh.c
+++ b/zebra/zebra_evpn_mh.c
@@ -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;
}