summaryrefslogtreecommitdiff
path: root/zebra/zebra_vxlan.c
diff options
context:
space:
mode:
Diffstat (limited to 'zebra/zebra_vxlan.c')
-rw-r--r--zebra/zebra_vxlan.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/zebra/zebra_vxlan.c b/zebra/zebra_vxlan.c
index bc2eac7a0b..4cd3b60a0f 100644
--- a/zebra/zebra_vxlan.c
+++ b/zebra/zebra_vxlan.c
@@ -149,6 +149,11 @@ static int host_rb_entry_compare(const struct host_rb_entry *hle1,
} else if (hle1->p.family == AF_INET6) {
return memcmp(&hle1->p.u.prefix6, &hle2->p.u.prefix6,
IPV6_MAX_BYTELEN);
+ } else if (hle1->p.family == AF_EVPN) {
+ /* a single dummy prefix of route_type BGP_EVPN_AD_ROUTE is
+ * used for all nexthops associated with a non-zero ESI
+ */
+ return 0;
} else {
zlog_debug("%s: Unexpected family type: %d", __func__,
hle1->p.family);