Merge pull request #8646 from chiragshah6/mdev

zebra: evpn check vni oper state in svi up/down event
This commit is contained in:
Patrick Ruddy 2021-05-18 11:45:56 +01:00 committed by GitHub
commit 4006e41baf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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));