diff --git a/orchagent/natorch.cpp b/orchagent/natorch.cpp index df220a6b16..283110efd1 100644 --- a/orchagent/natorch.cpp +++ b/orchagent/natorch.cpp @@ -115,7 +115,6 @@ NatOrch::NatOrch(DBConnector *appDb, DBConnector *stateDb, vector &tableNames, { SWSS_LOG_WARN("Failed to get switch attribute number of ECMP groups. \ Use default value. rv:%d", status); - task_process_status handle_status = handleSaiGetStatus(SAI_API_SWITCH, status); - if (handle_status != task_process_status::task_success) - { - m_maxNextHopGroupCount = DEFAULT_NUMBER_OF_ECMP_GROUPS; - } + m_maxNextHopGroupCount = DEFAULT_NUMBER_OF_ECMP_GROUPS; } else { diff --git a/orchagent/switchorch.cpp b/orchagent/switchorch.cpp index a9f298f1d8..77c8336123 100644 --- a/orchagent/switchorch.cpp +++ b/orchagent/switchorch.cpp @@ -360,7 +360,6 @@ void SwitchOrch::doTask(SelectableTimer &timer) else { SWSS_LOG_ERROR("ASIC sensors : failed to get SAI_SWITCH_ATTR_TEMP_LIST: %d", status); - handleSaiGetStatus(SAI_API_SWITCH, status); } } @@ -385,7 +384,6 @@ void SwitchOrch::doTask(SelectableTimer &timer) { m_sensorsMaxTempSupported = false; SWSS_LOG_ERROR("ASIC sensors : failed to get SAI_SWITCH_ATTR_MAX_TEMP: %d", status); - handleSaiGetStatus(SAI_API_SWITCH, status); } } @@ -410,7 +408,6 @@ void SwitchOrch::doTask(SelectableTimer &timer) { m_sensorsAvgTempSupported = false; SWSS_LOG_ERROR("ASIC sensors : failed to get SAI_SWITCH_ATTR_AVERAGE_TEMP: %d", status); - handleSaiGetStatus(SAI_API_SWITCH, status); } } } @@ -444,7 +441,6 @@ void SwitchOrch::initSensorsTable() else { SWSS_LOG_ERROR("ASIC sensors : failed to get SAI_SWITCH_ATTR_MAX_NUMBER_OF_TEMP_SENSORS: 0x%x", status); - handleSaiGetStatus(SAI_API_SWITCH, status); } } @@ -469,7 +465,6 @@ void SwitchOrch::initSensorsTable() else { SWSS_LOG_ERROR("ASIC sensors : failed to get SAI_SWITCH_ATTR_TEMP_LIST: %d", status); - handleSaiGetStatus(SAI_API_SWITCH, status); } }