Merge pull request #11299 from taspelund/update-svi-macip

zebra: Update advertise-svi-ip MACIPs w/ new MAC
This commit is contained in:
Donatas Abraitis 2022-05-31 17:53:46 +03:00 committed by GitHub
commit 8aa3ae6dbb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -4676,6 +4676,12 @@ int zebra_vxlan_svi_up(struct interface *ifp, struct interface *link_if)
/* Link the SVI from the access VLAN */
zebra_evpn_acc_bd_svi_set(ifp->info, link_if->info, true);
/* Update MACIP routes created by advertise-svi-ip */
if (advertise_svi_macip_enabled(zevpn)) {
zebra_evpn_del_macip_for_intf(ifp, zevpn);
zebra_evpn_add_macip_for_intf(ifp, zevpn);
}
}
return 0;