Skip to content

Commit

Permalink
Remove handling for unnecessary scenario
Browse files Browse the repository at this point in the history
  • Loading branch information
Shi Su committed Jul 5, 2021
1 parent c340b3e commit b4dc2e3
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 12 deletions.
2 changes: 0 additions & 2 deletions orchagent/natorch.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,6 @@ NatOrch::NatOrch(DBConnector *appDb, DBConnector *stateDb, vector<table_name_wit
if (status != SAI_STATUS_SUCCESS)
{
SWSS_LOG_NOTICE("Failed to get the SNAT available entry count, rv:%d", status);
handleSaiGetStatus(SAI_API_SWITCH, status);
}
else
{
Expand Down Expand Up @@ -3665,7 +3664,6 @@ bool NatOrch::getTwiceNatCounters(const TwiceNatEntry::iterator &iter)
SWSS_LOG_ERROR("Failed to get Counters for Twice NAT entry [src-ip %s, dst-ip %s], bytes = %" PRIu64 ", pkts = %" PRIu64 "",
key.src_ip.to_string().c_str(), key.dst_ip.to_string().c_str(),
nat_entry_attr[0].value.u64, nat_entry_attr[1].value.u64);
handleSaiGetStatus(SAI_API_NAT, status);
}
else
{
Expand Down
6 changes: 1 addition & 5 deletions orchagent/routeorch.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -48,11 +48,7 @@ RouteOrch::RouteOrch(DBConnector *db, vector<table_name_with_pri_t> &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
{
Expand Down
5 changes: 0 additions & 5 deletions orchagent/switchorch.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}

Expand All @@ -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);
}
}

Expand All @@ -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);
}
}
}
Expand Down Expand Up @@ -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);
}
}

Expand All @@ -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);
}
}

Expand Down

0 comments on commit b4dc2e3

Please sign in to comment.