Skip to content

Commit

Permalink
Allow NOT_IMPLEMENTED sai return status for availability monitoring A…
Browse files Browse the repository at this point in the history
…PI (#2848)
  • Loading branch information
tjchadaga authored and yxieca committed Jul 7, 2023
1 parent 444e3be commit 4a3af63
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion orchagent/mirrororch.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -361,7 +361,10 @@ bool MirrorOrch::isHwResourcesAvailable()
);
if (status != SAI_STATUS_SUCCESS)
{
if (status == SAI_STATUS_NOT_SUPPORTED)
if ((status == SAI_STATUS_NOT_SUPPORTED) ||
(status == SAI_STATUS_NOT_IMPLEMENTED) ||
SAI_STATUS_IS_ATTR_NOT_SUPPORTED(status) ||
SAI_STATUS_IS_ATTR_NOT_IMPLEMENTED(status))
{
SWSS_LOG_WARN("Mirror session resource availability monitoring is not supported. Skipping ...");
return true;
Expand Down

0 comments on commit 4a3af63

Please sign in to comment.