Skip to content

Commit

Permalink
[neighorch] return back original condition for port oper status
Browse files Browse the repository at this point in the history
Signed-off-by: Stepan Blyschak <[email protected]>
  • Loading branch information
Stepan Blyschak committed Dec 12, 2018
1 parent 3d60b3e commit 05a3558
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 05a3558

Please sign in to comment.