Skip to content

Commit 25d16b3

Browse files
authored
[neighorch] return back original condition for port oper status (sonic-net#727)
Signed-off-by: Stepan Blyschak <[email protected]>
2 parents 514cfef + 05a3558 commit 25d16b3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

orchagent/neighorch.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ bool NeighOrch::addNextHop(IpAddress ipAddress, string alias)
9090
// flag Should be set on it.
9191
// This scenario may happen under race condition where buffered neighbor event
9292
// is processed after incoming port is down.
93-
if (p.m_oper_status != SAI_PORT_OPER_STATUS_UP)
93+
if (p.m_oper_status == SAI_PORT_OPER_STATUS_DOWN)
9494
{
9595
if (setNextHopFlag(ipAddress, NHFLAGS_IFDOWN) == false)
9696
{

0 commit comments

Comments
 (0)