Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Fdbsyncd] Bug Fix for remote to local MAC and Static MAC Adv in EVPN #2521

Merged
merged 1 commit into from
Nov 18, 2022
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