mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-05-03 00:51:52 +00:00
Merge pull request #8646 from chiragshah6/mdev
zebra: evpn check vni oper state in svi up/down event
This commit is contained in:
commit
4006e41baf
@ -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));
|
||||
|
Loading…
Reference in New Issue
Block a user