Skip to content

Commit

Permalink
Fix the SAI status check for unsupported API on SAI_SWITCH_ATTR_SUPPO… (
Browse files Browse the repository at this point in the history
#3282)

* Fix the SAI status check for unsupported API on SAI_SWITCH_ATTR_SUPPORTED_OBJECT_TYPE_LIST
  • Loading branch information
DavidZagury authored Sep 19, 2024
1 parent 20e8b36 commit 5126f88
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion orchagent/portsorch.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -440,7 +440,8 @@ static bool isPathTracingSupported()
}
}
}
else if (status == SAI_STATUS_ATTR_NOT_IMPLEMENTED_0)
else if (SAI_STATUS_IS_ATTR_NOT_SUPPORTED(status) || SAI_STATUS_IS_ATTR_NOT_IMPLEMENTED(status)
|| status == SAI_STATUS_NOT_SUPPORTED || status == SAI_STATUS_NOT_IMPLEMENTED)
{
SWSS_LOG_INFO("Querying OBJECT_TYPE_LIST is not supported on this platform");
return false;
Expand Down

0 comments on commit 5126f88

Please sign in to comment.