diff options
author | vivek <vivek@cumulusnetworks.com> | 2017-08-14 06:52:04 +0200 |
---|---|---|
committer | Mitesh Kanjariya <mitesh@marvel-07.cumulusnetworks.com> | 2017-08-17 12:54:38 +0200 |
commit | b682f6de5a4249c84f7a6467c1792d210385504f (patch) | |
tree | 953977db96f981d555be2136b0c11062d5847a33 /zebra/zebra_l2.c | |
parent | bgpd: Register for label only the default instance (diff) | |
download | frr-b682f6de5a4249c84f7a6467c1792d210385504f.tar.xz frr-b682f6de5a4249c84f7a6467c1792d210385504f.zip |
zebra: Fix MAC change handling for a neighbor
When the MAC changes for a local neighbor, ensure that the neighbor data
structure as well as the link between the neighbor and MAC data structures
is updated correctly.
Signed-off-by: Vivek Venkatraman <vivek@cumulusnetworks.com>
Reviewed-by: Mitesh Kanjariya <mitesh@cumulusnetworks.com>
Reviewed-by: Donald Sharp <sharpd@cumulusnetworks.com>
Ticket: CM-17565
Reviewed By: CCR-6605
Testing Done: Manual, evpn-smoke
Diffstat (limited to 'zebra/zebra_l2.c')
-rw-r--r-- | zebra/zebra_l2.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/zebra/zebra_l2.c b/zebra/zebra_l2.c index 452bab003..7281622e3 100644 --- a/zebra/zebra_l2.c +++ b/zebra/zebra_l2.c @@ -225,17 +225,17 @@ void zebra_l2if_update_bridge_slave(struct interface *ifp, /* Set up or remove link with master */ if (bridge_ifindex != IFINDEX_INTERNAL) { - zebra_l2_map_slave_to_bridge (&zif->brslave_info); + zebra_l2_map_slave_to_bridge(&zif->brslave_info); /* In the case of VxLAN, invoke the handler for EVPN. */ if (zif->zif_type == ZEBRA_IF_VXLAN) - zebra_vxlan_if_update (ifp, ZEBRA_VXLIF_MASTER_CHANGE); + zebra_vxlan_if_update(ifp, ZEBRA_VXLIF_MASTER_CHANGE); } else if (old_bridge_ifindex != IFINDEX_INTERNAL) { - /* In the case of VxLAN, invoke the handler for EVPN. Note that - * this should be done *prior* to unmapping the interface from the - * bridge. + /* In the case of VxLAN, invoke the handler for EVPN. + * Note that this should be done *prior* to unmapping the interface + * from the bridge. */ if (zif->zif_type == ZEBRA_IF_VXLAN) - zebra_vxlan_if_update (ifp, ZEBRA_VXLIF_MASTER_CHANGE); - zebra_l2_unmap_slave_from_bridge (&zif->brslave_info); + zebra_vxlan_if_update(ifp, ZEBRA_VXLIF_MASTER_CHANGE); + zebra_l2_unmap_slave_from_bridge(&zif->brslave_info); } } |