Skip to content

Fix for System interface for remote asic LAG not getting created if received prior to SYSTEM_LAG creation from Chassis DB#2364

Merged
judyjoseph merged 1 commit intosonic-net:masterfrom
skeesara-nokia:issue11290
Jul 27, 2022
Merged

Fix for System interface for remote asic LAG not getting created if received prior to SYSTEM_LAG creation from Chassis DB#2364
judyjoseph merged 1 commit intosonic-net:masterfrom
skeesara-nokia:issue11290

Conversation

@skeesara-nokia
Copy link
Copy Markdown
Contributor

What I did
Changed interface and neighbor orch code in orchagent which handle updates from Chassis DB for system interface and remote neighbors. Fixes sonic-net/sonic-buildimage#11290

Why I did it
If an update from the Chassis DB for a system interface or a remote neighbor is received prior to receiving an update for the creation of the SYSTEM LAG or SYSTEM_PORT - the current code incorrectly treats this as an update from the local asic and ignores it. As a result the SYSTEM_INTERFACE or the Remote neighbor is not creating when this specific sequence of updates are received.

This change correctly verifies that an update is from the local asic before ignoring it.

How I verified it
Prior to the fix - adding a the system_interface to the Chassis DB before adding the corresponding System LAG would result in the ROUTER_INTERFACE never getting created by SAI. After the fix the ROUTER_INTERFACE is correctly created for this scenario.

The sonic-mgmt supervisor reset tests that were failing prior to this fix - passed after the fix was applied.

Details if related

@skeesara-nokia skeesara-nokia requested a review from prsunny as a code owner June 30, 2022 15:53
@prsunny prsunny requested a review from judyjoseph June 30, 2022 18:22
@rlhui rlhui added the chassis label Jul 7, 2022
@judyjoseph
Copy link
Copy Markdown
Contributor

judyjoseph commented Jul 12, 2022

/azp run

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

Copy link
Copy Markdown
Contributor

@judyjoseph judyjoseph left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@judyjoseph
Copy link
Copy Markdown
Contributor

/azp run

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

@judyjoseph
Copy link
Copy Markdown
Contributor

/azp run

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

@judyjoseph judyjoseph merged commit 525a57f into sonic-net:master Jul 27, 2022
yxieca pushed a commit that referenced this pull request Jul 28, 2022
preetham-singh pushed a commit to preetham-singh/sonic-swss that referenced this pull request Aug 6, 2022
Janetxxx pushed a commit to Janetxxx/sonic-swss that referenced this pull request Nov 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[chassis] Remote ASIC SYSTEM_INTERFACE is not created if it is received before remote SYSTEM_LAG from the Chassis DB

4 participants