Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[schema] Update schema to support debug counters #308

Merged
merged 5 commits into from
Oct 11, 2019
Merged
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 19 additions & 13 deletions common/schema.h
Original file line number Diff line number Diff line change
Expand Up @@ -66,19 +66,21 @@ namespace swss {

/***** COUNTER DATABASE *****/

#define COUNTERS_PORT_NAME_MAP "COUNTERS_PORT_NAME_MAP"
#define COUNTERS_TABLE "COUNTERS"
#define COUNTERS_QUEUE_NAME_MAP "COUNTERS_QUEUE_NAME_MAP"
#define COUNTERS_QUEUE_PORT_MAP "COUNTERS_QUEUE_PORT_MAP"
#define COUNTERS_QUEUE_INDEX_MAP "COUNTERS_QUEUE_INDEX_MAP"
#define COUNTERS_QUEUE_TYPE_MAP "COUNTERS_QUEUE_TYPE_MAP"
#define COUNTERS_PG_NAME_MAP "COUNTERS_PG_NAME_MAP"
#define COUNTERS_PG_PORT_MAP "COUNTERS_PG_PORT_MAP"
#define COUNTERS_PG_INDEX_MAP "COUNTERS_PG_INDEX_MAP"
#define COUNTERS_RIF_TYPE_MAP "COUNTERS_RIF_TYPE_MAP"
#define COUNTERS_RIF_NAME_MAP "COUNTERS_RIF_NAME_MAP"
#define COUNTERS_CRM_TABLE "CRM"
#define COUNTERS_BUFFER_POOL_NAME_MAP "COUNTERS_BUFFER_POOL_NAME_MAP"
#define COUNTERS_PORT_NAME_MAP "COUNTERS_PORT_NAME_MAP"
#define COUNTERS_TABLE "COUNTERS"
#define COUNTERS_QUEUE_NAME_MAP "COUNTERS_QUEUE_NAME_MAP"
#define COUNTERS_QUEUE_PORT_MAP "COUNTERS_QUEUE_PORT_MAP"
#define COUNTERS_QUEUE_INDEX_MAP "COUNTERS_QUEUE_INDEX_MAP"
#define COUNTERS_QUEUE_TYPE_MAP "COUNTERS_QUEUE_TYPE_MAP"
#define COUNTERS_PG_NAME_MAP "COUNTERS_PG_NAME_MAP"
#define COUNTERS_PG_PORT_MAP "COUNTERS_PG_PORT_MAP"
#define COUNTERS_PG_INDEX_MAP "COUNTERS_PG_INDEX_MAP"
#define COUNTERS_RIF_TYPE_MAP "COUNTERS_RIF_TYPE_MAP"
#define COUNTERS_RIF_NAME_MAP "COUNTERS_RIF_NAME_MAP"
#define COUNTERS_CRM_TABLE "CRM"
#define COUNTERS_BUFFER_POOL_NAME_MAP "COUNTERS_BUFFER_POOL_NAME_MAP"
#define COUNTERS_DEBUG_NAME_PORT_STAT_MAP "COUNTERS_DEBUG_NAME_PORT_STAT_MAP"
#define COUNTERS_DEBUG_NAME_SWITCH_STAT_MAP "COUNTERS_DEBUG_NAME_SWITCH_STAT_MAP"

#define PERIODIC_WATERMARKS_TABLE "PERIODIC_WATERMARKS"
#define PERSISTENT_WATERMARKS_TABLE "PERSISTENT_WATERMARKS"
Expand All @@ -105,6 +107,7 @@ namespace swss {
#define PG_COUNTER_ID_LIST "PG_COUNTER_ID_LIST"
#define PG_ATTR_ID_LIST "PG_ATTR_ID_LIST"
#define RIF_COUNTER_ID_LIST "RIF_COUNTER_ID_LIST"
#define SWITCH_COUNTER_ID_LIST "SWITCH_COUNTER_ID_LIST"
#define PLUGIN_TABLE "PLUGIN_TABLE"
#define LUA_PLUGIN_TYPE "LUA_PLUGIN_TYPE"
#define SAI_OBJECT_TYPE "SAI_OBJECT_TYPE"
Expand Down Expand Up @@ -192,6 +195,9 @@ namespace swss {
#define CFG_SFLOW_TABLE_NAME "SFLOW"
#define CFG_SFLOW_SESSION_TABLE_NAME "SFLOW_SESSION"

#define CFG_DEBUG_COUNTER_TABLE_NAME "DEBUG_COUNTER"
#define CFG_DEBUG_COUNTER_DROP_REASON_TABLE_NAME "DEBUG_COUNTER_DROP_REASON"

/***** STATE DATABASE *****/

#define STATE_SWITCH_CAPABILITY_TABLE_NAME "SWITCH_CAPABILITY_TABLE"
Expand Down