zebra: use new vni_info->access_vlan structs

Use new vni_info->access_vlan struct accessors
for network mac add code.

Signed-off-by: Stephen Worley <sworley@nvidia.com>
This commit is contained in:
Stephen Worley 2022-08-31 12:35:57 -04:00
parent fb99ca86c4
commit 7e79dcefcb

View File

@ -4370,7 +4370,8 @@ int zebra_vxlan_dp_network_mac_add(struct interface *ifp,
} }
/* Get vxlan's vid for netlink message has no it. */ /* Get vxlan's vid for netlink message has no it. */
vid = ((struct zebra_if *)ifp->info)->l2info.vxl.access_vlan; vid = ((struct zebra_if *)ifp->info)
->l2info.vxl.vni_info.vni.access_vlan;
/* if remote mac delete the local entry */ /* if remote mac delete the local entry */
if (!nhg_id || !zebra_evpn_nhg_is_local_es(nhg_id, &es) if (!nhg_id || !zebra_evpn_nhg_is_local_es(nhg_id, &es)