-
Notifications
You must be signed in to change notification settings - Fork 484
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
Allow null on SAI_PORT_ATTR_PORT_SERDES_ID #1914
Conversation
This attribute is readonly, and if port serdes was removed then this attribute can return null object id
This PR is to fix a crash issue while removing port from orchagent portsorch.cpp. The crash is at line https://github.com/sonic-net/sonic-sairedis/blob/65323ca51db8947e8a39db5c9c0ef1fe4b27a59f/syncd/SaiSwitch.cpp#L1105 . Error flow like this: orchagent calls portsorch.cpp::removePortBulk:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Couple of questions for my understanding
- In step d, what OID is being returned here ? The serdes OID that has been deleted ?
- With this fix, portRelatedObjects will not contain the serdes object anymore ?
|
Hi @kcudnik , many thanks to have this PR merged. Are we going to take this new commit to sonic? |
Yes, we can update sai pointer |
here is PR sonic-net/sonic-sairedis#1311 including that change |
This attribute is readonly, and if port serdes was removed then this attribute can return null object id
This attribute is readonly, and if port serdes was removed then this attribute can return null object id