Skip to content

Allow NOT_IMPLEMENTED sai return status for availability monitoring API#2848

Merged
tjchadaga merged 1 commit intosonic-net:masterfrom
tjchadaga:sai_error_handling_for_mirror
Jul 7, 2023
Merged

Allow NOT_IMPLEMENTED sai return status for availability monitoring API#2848
tjchadaga merged 1 commit intosonic-net:masterfrom
tjchadaga:sai_error_handling_for_mirror

Conversation

@tjchadaga
Copy link
Copy Markdown
Contributor

@tjchadaga tjchadaga commented Jul 5, 2023

What I did
Added SAI_STATUS_NOT_IMPLEMENTED to SAI return status check while fetching resource availability.

Why I did it
If resource availability lookup API is not supported for a specific object, the API returns SAI_STATUS_NOT_IMPLEMENTED or SAI_STATUS_NOT_SUPPORTED. These return values do not indicate unavailability of the resource itself and need to be ignored.

How I verified it
Everflow tests on 202205 with SAI which returns SAI_STATUS_NOT_IMPLEMENTED

Details if related

MSFT ADO: 24482256

@tjchadaga
Copy link
Copy Markdown
Contributor Author

@saksarav-nokia - please help review as well

@tjchadaga tjchadaga merged commit 7fa01d2 into sonic-net:master Jul 7, 2023
@tjchadaga tjchadaga deleted the sai_error_handling_for_mirror branch July 7, 2023 20:32
theasianpianist pushed a commit to theasianpianist/sonic-swss that referenced this pull request Jul 20, 2023
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.

5 participants