Skip to content

Commit

Permalink
[neighorch] return back original condition for port oper status (soni…
Browse files Browse the repository at this point in the history
…c-net#727)

Signed-off-by: Stepan Blyschak <[email protected]>
  • Loading branch information
qiluo-msft authored Dec 23, 2018
2 parents 514cfef + 05a3558 commit 25d16b3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion orchagent/neighorch.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ bool NeighOrch::addNextHop(IpAddress ipAddress, string alias)
// flag Should be set on it.
// This scenario may happen under race condition where buffered neighbor event
// is processed after incoming port is down.
if (p.m_oper_status != SAI_PORT_OPER_STATUS_UP)
if (p.m_oper_status == SAI_PORT_OPER_STATUS_DOWN)
{
if (setNextHopFlag(ipAddress, NHFLAGS_IFDOWN) == false)
{
Expand Down

0 comments on commit 25d16b3

Please sign in to comment.