Skip to content

Commit eaf1bb8

Browse files
[crm]: Remove NOT_IMPLEMENTED checks
Signed-off-by: Lawrence Lee <[email protected]>
1 parent 916d2f1 commit eaf1bb8

1 file changed

Lines changed: 0 additions & 22 deletions

File tree

orchagent/crmorch.cpp

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -893,17 +893,6 @@ void CrmOrch::getResAvailableCounters()
893893
attr.value.aclresource.count = CRM_ACL_RESOURCE_COUNT;
894894
attr.value.aclresource.list = resources.data();
895895
sai_status_t status = sai_switch_api->get_switch_attribute(gSwitchId, 1, &attr);
896-
if ((status == SAI_STATUS_NOT_SUPPORTED) ||
897-
(status == SAI_STATUS_NOT_IMPLEMENTED) ||
898-
SAI_STATUS_IS_ATTR_NOT_SUPPORTED(status) ||
899-
SAI_STATUS_IS_ATTR_NOT_IMPLEMENTED(status))
900-
{
901-
// mark unsupported resources
902-
res.second.resStatus = CrmResourceStatus::CRM_RES_NOT_SUPPORTED;
903-
SWSS_LOG_NOTICE("CRM resource %s not supported", crmResTypeNameMap.at(res.first).c_str());
904-
break;
905-
}
906-
907896
if (status == SAI_STATUS_BUFFER_OVERFLOW)
908897
{
909898
resources.resize(attr.value.aclresource.count);
@@ -939,17 +928,6 @@ void CrmOrch::getResAvailableCounters()
939928
for (auto &cnt : res.second.countersMap)
940929
{
941930
sai_status_t status = sai_acl_api->get_acl_table_attribute(cnt.second.id, 1, &attr);
942-
if ((status == SAI_STATUS_NOT_SUPPORTED) ||
943-
(status == SAI_STATUS_NOT_IMPLEMENTED) ||
944-
SAI_STATUS_IS_ATTR_NOT_SUPPORTED(status) ||
945-
SAI_STATUS_IS_ATTR_NOT_IMPLEMENTED(status))
946-
{
947-
// mark unsupported resources
948-
res.second.resStatus = CrmResourceStatus::CRM_RES_NOT_SUPPORTED;
949-
SWSS_LOG_NOTICE("CRM resource %s not supported", crmResTypeNameMap.at(res.first).c_str());
950-
break;
951-
}
952-
953931
if (status != SAI_STATUS_SUCCESS)
954932
{
955933
SWSS_LOG_ERROR("Failed to get ACL table attribute %u , rv:%d", attr.id, status);

0 commit comments

Comments
 (0)