Skip to content

Commit

Permalink
[copporch]: Fix copporch in DEL command (sonic-net#972)
Browse files Browse the repository at this point in the history
The map m_syncdTrapIds maps trapid to trap_group object.
However in the implementation it was mapped to trap object.
Hence modified to map to trap_group object.
  • Loading branch information
Sudharsan D.G authored and stcheng committed Jul 11, 2019
1 parent cf9b02c commit 758f9e1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion orchagent/copporch.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ bool CoppOrch::applyAttributesToTrapIds(sai_object_id_t trap_group_id,
SWSS_LOG_ERROR("Failed to create trap %d, rv:%d", trap_id, status);
return false;
}
m_syncdTrapIds[trap_id] = hostif_trap_id;
m_syncdTrapIds[trap_id] = trap_group_id;
}

return true;
Expand Down

0 comments on commit 758f9e1

Please sign in to comment.