diff options
| author | Anuradha Karuppiah <anuradhak@cumulusnetworks.com> | 2020-11-02 10:53:50 -0800 |
|---|---|---|
| committer | Anuradha Karuppiah <anuradhak@nvidia.com> | 2021-02-19 08:11:15 -0800 |
| commit | 243b74eda653893f4ed7394fa5f7e1bb2ba2bee0 (patch) | |
| tree | 5f91ba6aa2178019990bae3d39ce4d40d040aaa6 /zebra/zebra_evpn.c | |
| parent | c0c7707d0d262d54b95a1e63bdb91b9a43ffc58f (diff) | |
zebra: changes to advertise SVI mac by default if evpn-mh is enabled
Added support for advertising SVI MAC if EVPN-MH is enabled.
In the case of EVPN MH arp replies from an attached server can be sent to
the ES-peer. To prevent flooding of the reply the SVI MAC needs to be
advertised by default.
Note:
advertise-svi-ip could have been used as an alternate way to advertise
SVI MAC. However that config cannot be turned on if SVI IPs are
re-used (which is done to avoid wasting IP addresses in a subnet).
Signed-off-by: Anuradha Karuppiah <anuradhak@cumulusnetworks.com>
Diffstat (limited to 'zebra/zebra_evpn.c')
| -rw-r--r-- | zebra/zebra_evpn.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/zebra/zebra_evpn.c b/zebra/zebra_evpn.c index 2bab2997a3..2047c711de 100644 --- a/zebra/zebra_evpn.c +++ b/zebra/zebra_evpn.c @@ -932,6 +932,8 @@ void zebra_evpn_read_mac_neigh(zebra_evpn_t *zevpn, struct interface *ifp) macfdb_read_for_bridge(zns, ifp, zif->brslave_info.br_if); vlan_if = zvni_map_to_svi(vxl->access_vlan, zif->brslave_info.br_if); if (vlan_if) { + /* Add SVI MAC */ + zebra_evpn_acc_bd_svi_mac_add(vlan_if); /* Add SVI MAC-IP */ if (advertise_svi_macip_enabled(zevpn) |
