From: Mitesh Kanjariya Date: Tue, 27 Jun 2017 00:55:55 +0000 (-0700) Subject: zebra: fix mac mobility code path X-Git-Tag: frr-4.0-dev~431^2~23 X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=8f4b98eedbdf41d87b7228f81143a85d6ff2b09e;p=mirror%2Ffrr.git zebra: fix mac mobility code path Ticket: CM-16928 Review: CCR-6210 Unit-test: Manual Signed-off-by: Mitesh Kanjariya --- diff --git a/zebra/zebra_vxlan.c b/zebra/zebra_vxlan.c index 029aefb0f7..523225bf36 100644 --- a/zebra/zebra_vxlan.c +++ b/zebra/zebra_vxlan.c @@ -2615,14 +2615,15 @@ int zebra_vxlan_local_mac_add_update(struct interface *ifp, * MAC, * this is a operator error and we must log a warning */ - if (CHECK_FLAG(mac->flags, ZEBRA_MAC_STICKY)) + if (CHECK_FLAG(mac->flags, ZEBRA_MAC_STICKY)) { zlog_warn( "MAC %s is already learnt as a remote sticky mac behind VTEP %s VNI %d", prefix_mac2str(macaddr, buf, sizeof(buf)), inet_ntoa(mac->fwd_info.r_vtep_ip), zvni->vni); - return 0; + return 0; + } } }