@@ -1156,7 +1156,7 @@ bool CoppOrch::bindTrapCounter(sai_object_id_t hostif_trap_id, sai_hostif_trap_t
1156
1156
return false ;
1157
1157
}
1158
1158
1159
- if (m_trap_id_name_map .count (hostif_trap_id) > 0 )
1159
+ if (m_trap_obj_name_map .count (hostif_trap_id) > 0 )
1160
1160
{
1161
1161
return true ;
1162
1162
}
@@ -1190,16 +1190,16 @@ bool CoppOrch::bindTrapCounter(sai_object_id_t hostif_trap_id, sai_hostif_trap_t
1190
1190
1191
1191
// Update FLEX_COUNTER table
1192
1192
std::unordered_set<std::string> counter_stats;
1193
- FlowCounterHandler::getGenericCounterIdList (counter_stats);
1193
+ FlowCounterHandler::getGenericCounterStatIdList (counter_stats);
1194
1194
m_trap_counter_manager.setCounterIdList (counter_id, CounterType::HOSTIF_TRAP, counter_stats);
1195
- m_trap_id_name_map .emplace (hostif_trap_id, trap_name);
1195
+ m_trap_obj_name_map .emplace (hostif_trap_id, trap_name);
1196
1196
return true ;
1197
1197
}
1198
1198
1199
1199
void CoppOrch::unbindTrapCounter (sai_object_id_t hostif_trap_id)
1200
1200
{
1201
- auto iter = m_trap_id_name_map .find (hostif_trap_id);
1202
- if (iter == m_trap_id_name_map .end ())
1201
+ auto iter = m_trap_obj_name_map .find (hostif_trap_id);
1202
+ if (iter == m_trap_obj_name_map .end ())
1203
1203
{
1204
1204
return ;
1205
1205
}
@@ -1212,7 +1212,7 @@ void CoppOrch::unbindTrapCounter(sai_object_id_t hostif_trap_id)
1212
1212
sai_deserialize_object_id (counter_oid_str, counter_id);
1213
1213
m_trap_counter_manager.clearCounterIdList (counter_id);
1214
1214
1215
- // Remmove trap from COUNTERS_TRAP_NAME_MAP
1215
+ // Remove trap from COUNTERS_TRAP_NAME_MAP
1216
1216
m_counter_table->hdel (" " , iter->second );
1217
1217
1218
1218
// Unbind generic counter to trap
@@ -1228,7 +1228,7 @@ void CoppOrch::unbindTrapCounter(sai_object_id_t hostif_trap_id)
1228
1228
// Remove generic counter
1229
1229
FlowCounterHandler::removeGenericCounter (counter_id);
1230
1230
1231
- m_trap_id_name_map .erase (iter);
1231
+ m_trap_obj_name_map .erase (iter);
1232
1232
}
1233
1233
1234
1234
void CoppOrch::generateHostIfTrapCounterIdList ()
0 commit comments