Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 1 commit into from
Jul 27, 2022

Conversation

skeesara-nokia
Copy link
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

Signed-off-by: keesara <srikanth.keesara@nokia.com>
@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
Contributor

judyjoseph commented Jul 12, 2022

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

Copy link
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
Contributor

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@judyjoseph
Copy link
Contributor

/azp run

@azure-pipelines
Copy link

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
Signed-off-by: keesara <srikanth.keesara@nokia.com>
preetham-singh pushed a commit to preetham-singh/sonic-swss that referenced this pull request Aug 6, 2022
Signed-off-by: keesara <srikanth.keesara@nokia.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
4 participants