Skip to content

Commit

Permalink
Add the link local check for DEL action too
Browse files Browse the repository at this point in the history
Signed-off-by: Zhenggen Xu <zxu@linkedin.com>
  • Loading branch information
zhenggen-xu committed Feb 18, 2020
1 parent c5bf959 commit 68c47d9
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions cfgmgr/intfmgr.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -554,8 +554,12 @@ bool IntfMgr::doIntfAddrTask(const vector<string>& keys,
{
setIntfIp(alias, "del", ip_prefix);

m_appIntfTableProducer.del(appKey);
m_stateIntfTable.del(keys[0] + state_db_key_delimiter + keys[1]);
// Don't send link local config to AppDB and Orchagent
if (ip_prefix.getIp().getAddrScope() != IpAddress::AddrScope::LINK_SCOPE)
{
m_appIntfTableProducer.del(appKey);
m_stateIntfTable.del(keys[0] + state_db_key_delimiter + keys[1]);
}
}
else
{
Expand Down

0 comments on commit 68c47d9

Please sign in to comment.