Skip to content

Commit

Permalink
[orchagent]: Fixing bug internal entry not removed after DEL (sonic-n…
Browse files Browse the repository at this point in the history
…et#179)

Signed-off-by: Shuotian Cheng <shuche@microsoft.com>
  • Loading branch information
Shuotian Cheng authored Mar 22, 2017
1 parent 49de6dc commit 3e713cc
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions orchagent/intfsorch.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,10 @@ void IntfsOrch::doTask(Consumer &consumer)
if (m_syncdIntfses[alias].ip_addresses.getSize() == 0)
{
if (removeRouterIntfs(port))
{
m_syncdIntfses.erase(alias);
it = consumer.m_toSync.erase(it);
}
else
it++;
}
Expand Down

0 comments on commit 3e713cc

Please sign in to comment.