Skip to content

Commit 31f4253

Browse files
[schema.h] Add trap flow counter support (#534)
**What I did** Add trap flow counter related tables/entries to schema.h. See HLD: sonic-net/SONiC#858 **Why I did it** Flow counters are usually used for debugging, troubleshooting and performance enhancement processes. Host interface trap counter can get number of received traps per Trap ID. **How I verified it** Manual test/VS test/sonic mgmt test
1 parent b15e08d commit 31f4253

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

common/schema.h

+3
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,7 @@ namespace swss {
134134
#define COUNTERS_PG_INDEX_MAP "COUNTERS_PG_INDEX_MAP"
135135
#define COUNTERS_RIF_TYPE_MAP "COUNTERS_RIF_TYPE_MAP"
136136
#define COUNTERS_RIF_NAME_MAP "COUNTERS_RIF_NAME_MAP"
137+
#define COUNTERS_TRAP_NAME_MAP "COUNTERS_TRAP_NAME_MAP"
137138
#define COUNTERS_CRM_TABLE "CRM"
138139
#define COUNTERS_BUFFER_POOL_NAME_MAP "COUNTERS_BUFFER_POOL_NAME_MAP"
139140
#define COUNTERS_SWITCH_NAME_MAP "COUNTERS_SWITCH_NAME_MAP"
@@ -181,6 +182,7 @@ namespace swss {
181182
#define SWITCH_DEBUG_COUNTER_ID_LIST "SWITCH_DEBUG_COUNTER_ID_LIST"
182183
#define MACSEC_SA_ATTR_ID_LIST "MACSEC_SA_ATTR_ID_LIST"
183184
#define TUNNEL_ATTR_ID_LIST "TUNNEL_ATTR_ID_LIST"
185+
#define FLOW_COUNTER_ID_LIST "FLOW_COUNTER_ID_LIST"
184186
#define PLUGIN_TABLE "PLUGIN_TABLE"
185187
#define LUA_PLUGIN_TYPE "LUA_PLUGIN_TYPE"
186188
#define SAI_OBJECT_TYPE "SAI_OBJECT_TYPE"
@@ -195,6 +197,7 @@ namespace swss {
195197
#define PG_PLUGIN_FIELD "PG_PLUGIN_LIST"
196198
#define TUNNEL_PLUGIN_FIELD "TUNNEL_PLUGIN_LIST"
197199
#define BUFFER_POOL_PLUGIN_FIELD "BUFFER_POOL_PLUGIN_LIST"
200+
#define FLOW_COUNTER_PLUGIN_FIELD "FLOW_COUNTER_PLUGIN_FIELD"
198201
#define FLEX_COUNTER_STATUS_FIELD "FLEX_COUNTER_STATUS"
199202
#define FLEX_COUNTER_GROUP_TABLE "FLEX_COUNTER_GROUP_TABLE"
200203
#define FLEX_COUNTER_DELAY_STATUS_FIELD "FLEX_COUNTER_DELAY_STATUS"

0 commit comments

Comments
 (0)