summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--zebra/zebra_vxlan.c5
1 files 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;
+ }
}
}