Skip to content

[neighorch] return back original condition for port oper status#727

Merged
qiluo-msft merged 1 commit intosonic-net:masterfrom
stepanblyschak:neighorch_fix
Dec 23, 2018
Merged

[neighorch] return back original condition for port oper status#727
qiluo-msft merged 1 commit intosonic-net:masterfrom
stepanblyschak:neighorch_fix

Conversation

@stepanblyschak
Copy link
Copy Markdown
Contributor

Signed-off-by: Stepan Blyschak [email protected]

What I did
Return back original condition for port operational status when adding a next hop.

Why I did it
port::m_oper_status is by default SAI_PORT_OPER_STATUS_UNKNOWN.
If port is LAG or VLAN m_oper_status is not overridden with value in state DB, so
(p.m_oper_status != SAI_PORT_OPER_STATUS_UP) is true and next hop flag IFDOWN is set.

This is workaround, need to listen to state db to update oper status in port struct

How I verified it
Built and verified that next hops are added to ecmp group

Details if related

@sonic-net sonic-net deleted a comment from prsunny Dec 23, 2018
@qiluo-msft qiluo-msft merged commit 25d16b3 into sonic-net:master Dec 23, 2018
@yxieca yxieca mentioned this pull request Jan 10, 2019
oleksandrivantsiv pushed a commit to oleksandrivantsiv/sonic-swss that referenced this pull request Mar 1, 2023
sonic-net#727)

Fix the syncd crash during Dynamic Port Breakout (DPB). The syncd is processing in-transit port events after port has been removed. Add check to avoid it.
Janetxxx pushed a commit to Janetxxx/sonic-swss that referenced this pull request Nov 10, 2025
jianyuewu pushed a commit to jianyuewu/sonic-swss that referenced this pull request Dec 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants