Skip to content

Commit

Permalink
Undo a few changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Shi Su committed Jun 28, 2021
1 parent 1109d64 commit 85e74c2
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 11 deletions.
6 changes: 1 addition & 5 deletions orchagent/crmorch.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -535,11 +535,7 @@ void CrmOrch::getResAvailableCounters()
if (status != SAI_STATUS_SUCCESS)
{
SWSS_LOG_ERROR("Failed to get ACL table attribute %u , rv:%d", attr.id, status);
task_process_status handle_status = handleSaiGetStatus(SAI_API_ACL, status);
if (handle_status != task_process_status::task_success)
{
break;
}
break;
}

cnt.second.availableCounter = attr.value.u32;
Expand Down
1 change: 0 additions & 1 deletion orchagent/natorch.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3599,7 +3599,6 @@ bool NatOrch::getNatCounters(const NatEntry::iterator &iter)
{
SWSS_LOG_ERROR("Failed to get Counters for SNAT entry [src-ip %s], bytes = %" PRIu64 ", pkts = %" PRIu64 "", ipAddr.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/portsorch.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5501,11 +5501,7 @@ void PortsOrch::removePortSerdesAttribute(sai_object_id_t port_id)
{
SWSS_LOG_DEBUG("Failed to get port attr serdes id %d to port pid:0x%" PRIx64,
port_attr.id, port_id);
task_process_status handle_status = handleSaiGetStatus(SAI_API_PORT, status);
if (handle_status != task_process_status::task_success)
{
return;
}
return;
}

if (port_attr.value.oid != SAI_NULL_OBJECT_ID)
Expand Down

0 comments on commit 85e74c2

Please sign in to comment.