summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--zebra/zebra_vxlan.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/zebra/zebra_vxlan.c b/zebra/zebra_vxlan.c
index 4e86ab3b4f..09eb78917c 100644
--- a/zebra/zebra_vxlan.c
+++ b/zebra/zebra_vxlan.c
@@ -4530,7 +4530,8 @@ int zebra_vxlan_svi_down(struct interface *ifp, struct interface *link_if)
zevpn->vrf_id = VRF_DEFAULT;
/* update the tenant vrf in BGP */
- zebra_evpn_send_add_to_client(zevpn);
+ if (if_is_operative(zevpn->vxlan_if))
+ zebra_evpn_send_add_to_client(zevpn);
}
}
return 0;
@@ -4582,7 +4583,9 @@ int zebra_vxlan_svi_up(struct interface *ifp, struct interface *link_if)
/* update the vrf information for l2-vni and inform bgp */
zevpn->vrf_id = ifp->vrf_id;
- zebra_evpn_send_add_to_client(zevpn);
+
+ if (if_is_operative(zevpn->vxlan_if))
+ zebra_evpn_send_add_to_client(zevpn);
/* Install any remote neighbors for this VNI. */
memset(&n_wctx, 0, sizeof(struct neigh_walk_ctx));