From 5126f88ba19029ca58e8f2de90568d3af3c3aafa Mon Sep 17 00:00:00 2001 From: DavidZagury <32644413+DavidZagury@users.noreply.github.com> Date: Thu, 19 Sep 2024 22:00:54 +0300 Subject: [PATCH] =?UTF-8?q?Fix=20the=20SAI=20status=20check=20for=20unsupp?= =?UTF-8?q?orted=20API=20on=20SAI=5FSWITCH=5FATTR=5FSUPPO=E2=80=A6=20(#328?= =?UTF-8?q?2)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Fix the SAI status check for unsupported API on SAI_SWITCH_ATTR_SUPPORTED_OBJECT_TYPE_LIST --- orchagent/portsorch.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/orchagent/portsorch.cpp b/orchagent/portsorch.cpp index 14b6d17847..09caa28a5d 100644 --- a/orchagent/portsorch.cpp +++ b/orchagent/portsorch.cpp @@ -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;