From 8f4b98eedbdf41d87b7228f81143a85d6ff2b09e Mon Sep 17 00:00:00 2001 From: Mitesh Kanjariya Date: Mon, 26 Jun 2017 17:55:55 -0700 Subject: [PATCH] zebra: fix mac mobility code path Ticket: CM-16928 Review: CCR-6210 Unit-test: Manual Signed-off-by: Mitesh Kanjariya --- zebra/zebra_vxlan.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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; + } } } -- 2.39.5