Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 12 additions & 8 deletions fdbsyncd/fdbsync.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -307,13 +307,6 @@ void FdbSync::updateLocalMac (struct m_fdb_info *info)
op = "replace";
port_name = info->port_name;
fdb_type = info->type;
/* Check if this vlan+key is also learned by vxlan neighbor then delete learned on */
if (m_mac.find(key) != m_mac.end())
{
macDelVxlanEntry(key, info);
SWSS_LOG_INFO("Local learn event deleting from VXLAN table DEL_KEY %s", key.c_str());
macDelVxlan(key);
}
}
else
{
Expand All @@ -335,7 +328,7 @@ void FdbSync::updateLocalMac (struct m_fdb_info *info)
}
else
{
type = "static";
type = "sticky static";
}

const std::string cmds = std::string("")
Expand All @@ -347,6 +340,17 @@ void FdbSync::updateLocalMac (struct m_fdb_info *info)

SWSS_LOG_INFO("cmd:%s, res=%s, ret=%d", cmds.c_str(), res.c_str(), ret);

if (info->op_type == FDB_OPER_ADD)
{
/* Check if this vlan+key is also learned by vxlan neighbor then delete the dest entry */
if (m_mac.find(key) != m_mac.end())
{
macDelVxlanEntry(key, info);
SWSS_LOG_INFO("Local learn event deleting from VXLAN table DEL_KEY %s", key.c_str());
macDelVxlan(key);
}
}

return;
}

Expand Down