summaryrefslogtreecommitdiff
path: root/zebra/zebra_vxlan.c
diff options
context:
space:
mode:
authorMitesh Kanjariya <mitesh@marvel-07.cumulusnetworks.com>2017-06-26 17:55:55 -0700
committerDonald Sharp <sharpd@cumulusnetworks.com>2017-08-08 10:09:37 -0400
commit8f4b98eedbdf41d87b7228f81143a85d6ff2b09e (patch)
tree8132d7237b8eb9a14132d5ea9bd91cee0a6b2c2a /zebra/zebra_vxlan.c
parentb8ce75a5d3cca1519bf788db96379c162a3c9b7b (diff)
zebra: fix mac mobility code path
Ticket: CM-16928 Review: CCR-6210 Unit-test: Manual Signed-off-by: Mitesh Kanjariya <mitesh@cumulusnetworks.com>
Diffstat (limited to 'zebra/zebra_vxlan.c')
-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;
+ }
}
}