Skip to content

Commit

Permalink
orchagent: Skipping neighbor entries on non router interface (sonic-n…
Browse files Browse the repository at this point in the history
  • Loading branch information
lguohan authored and Shuotian Cheng committed Sep 28, 2016
1 parent 3304832 commit 613f6b7
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions orchagent/neighorch.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,12 @@ void NeighOrch::doTask(Consumer &consumer)
continue;
}

if (!p.m_rif_id)
{
it = consumer.m_toSync.erase(it);
continue;
}

IpAddress ip_address(key.substr(found+1));

NeighborEntry neighbor_entry = { ip_address, alias };
Expand Down

0 comments on commit 613f6b7

Please sign in to comment.