]> git.puffer.fish Git - mirror/frr.git/commitdiff
zebra: fix mac mobility code path
authorMitesh Kanjariya <mitesh@marvel-07.cumulusnetworks.com>
Tue, 27 Jun 2017 00:55:55 +0000 (17:55 -0700)
committerDonald Sharp <sharpd@cumulusnetworks.com>
Tue, 8 Aug 2017 14:09:37 +0000 (10:09 -0400)
Ticket: CM-16928
Review: CCR-6210
Unit-test: Manual

Signed-off-by: Mitesh Kanjariya <mitesh@cumulusnetworks.com>
zebra/zebra_vxlan.c

index 029aefb0f746c6e8277d51d5b009c6fa6aab38f6..523225bf365cfcc5c654e8862280836d1ceeb2e7 100644 (file)
@@ -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;
+                       }
                }
        }