Skip to content

Commit a0b6412

Browse files
authored
COPP_DEL_fix: DEL for one trap group from SONIC is resetting all the trap IDs (sonic-net#1273)
1 parent 17a2f93 commit a0b6412

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

orchagent/copporch.cpp

+6-6
Original file line numberDiff line numberDiff line change
@@ -731,12 +731,12 @@ task_process_status CoppOrch::processCoppRule(Consumer& consumer)
731731
if (it.second.trap_group_obj == m_trap_group_map[trap_group_name])
732732
{
733733
trap_ids_to_reset.push_back(it.first);
734-
}
735-
sai_status = sai_hostif_api->remove_hostif_trap(it.second.trap_obj);
736-
if (sai_status != SAI_STATUS_SUCCESS)
737-
{
738-
SWSS_LOG_ERROR("Failed to remove trap object %" PRId64 "", it.second.trap_obj);
739-
return task_process_status::task_failed;
734+
sai_status = sai_hostif_api->remove_hostif_trap(it.second.trap_obj);
735+
if (sai_status != SAI_STATUS_SUCCESS)
736+
{
737+
SWSS_LOG_ERROR("Failed to remove trap object %" PRId64 "", it.second.trap_obj);
738+
return task_process_status::task_failed;
739+
}
740740
}
741741
}
742742

0 commit comments

Comments
 (0)