We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f4aefba commit bbd2ca6Copy full SHA for bbd2ca6
orchagent/crmorch.cpp
@@ -457,10 +457,15 @@ void CrmOrch::getResAvailableCounters()
457
sai_status_t status = sai_switch_api->get_switch_attribute(gSwitchId, 1, &attr);
458
if (status != SAI_STATUS_SUCCESS)
459
{
460
- if(status == SAI_STATUS_NOT_SUPPORTED)
+ if((status == SAI_STATUS_NOT_SUPPORTED) ||
461
+ (status == SAI_STATUS_NOT_IMPLEMENTED) ||
462
+ SAI_STATUS_IS_ATTR_NOT_SUPPORTED(status) ||
463
+ SAI_STATUS_IS_ATTR_NOT_IMPLEMENTED(status))
464
465
// remove unsupported resources from map
466
m_resourcesMap.erase(res.first);
467
+ SWSS_LOG_NOTICE("Switch attribute %u not supported", attr.id);
468
+ break;
469
}
470
SWSS_LOG_ERROR("Failed to get switch attribute %u , rv:%d", attr.id, status);
471
break;
0 commit comments