From efe142aa2f0b6ddf67bd1085e2f1536fc7dea322 Mon Sep 17 00:00:00 2001 From: Ze Gan Date: Tue, 3 Dec 2019 23:10:58 +0800 Subject: [PATCH] Fix bug: Wrong condition for mac address (#1142) Signed-off-by: Ze Gan --- cfgmgr/vxlanmgr.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cfgmgr/vxlanmgr.cpp b/cfgmgr/vxlanmgr.cpp index e06321d516d7..cdb3c2ab8005 100644 --- a/cfgmgr/vxlanmgr.cpp +++ b/cfgmgr/vxlanmgr.cpp @@ -299,7 +299,7 @@ bool VxlanMgr::doVxlanCreateTask(const KeyOpFieldsValuesTuple & t) // If the mac address has been set auto macAddress = getVxlanRouterMacAddress(); - if (macAddress.first) + if (!macAddress.first) { SWSS_LOG_DEBUG("Mac address is not ready"); // Suspend this message util the mac address is set