summaryrefslogtreecommitdiff
path: root/zebra/zebra_vxlan_if.c
diff options
context:
space:
mode:
Diffstat (limited to 'zebra/zebra_vxlan_if.c')
-rw-r--r--zebra/zebra_vxlan_if.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/zebra/zebra_vxlan_if.c b/zebra/zebra_vxlan_if.c
index 17ab05c1f3..ea0be2f644 100644
--- a/zebra/zebra_vxlan_if.c
+++ b/zebra/zebra_vxlan_if.c
@@ -1032,7 +1032,13 @@ int zebra_vxlan_if_vni_up(struct interface *ifp, struct zebra_vxlan_vni *vnip)
/* If part of a bridge, inform BGP about this VNI. */
/* Also, read and populate local MACs and neighbors. */
if (zif->brslave_info.br_if) {
- zebra_evpn_send_add_to_client(zevpn);
+ if (if_is_operative(zevpn->vxlan_if)) {
+ zebra_evpn_send_add_to_client(zevpn);
+ } else {
+ if (IS_ZEBRA_DEBUG_KERNEL || IS_ZEBRA_DEBUG_VXLAN)
+ zlog_debug("%s VNI %u vxlan_if %s oper down skipping vni up to client",
+ __func__, zevpn->vni, zevpn->vxlan_if->name);
+ }
zebra_evpn_read_mac_neigh(zevpn, ifp);
}
}