diff options
| author | Patrick Ruddy <pat@voltanet.io> | 2021-05-18 11:45:56 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-05-18 11:45:56 +0100 |
| commit | 4006e41baffd2de72a3fe42f16a55fc75be5940a (patch) | |
| tree | 10c4df2e26360c6d391e7ef00f1e373eee26e2fd | |
| parent | 82689214b5d590ad9037366daae721701ada9d30 (diff) | |
| parent | 196d7a86d065b388d0b14e16755a2383da4b5428 (diff) | |
Merge pull request #8646 from chiragshah6/mdev
zebra: evpn check vni oper state in svi up/down event
| -rw-r--r-- | zebra/zebra_vxlan.c | 7 |
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)); |
