diff --git a/common/database_config.json b/common/database_config.json index bce487df7..1750ca758 100644 --- a/common/database_config.json +++ b/common/database_config.json @@ -81,6 +81,11 @@ "id" : 12, "separator": "|", "instance" : "redis_chassis" + }, + "CHASSIS_STATE_DB" : { + "id" : 13, + "separator": "|", + "instance" : "redis_chassis" } }, "VERSION" : "1.0" diff --git a/common/schema.h b/common/schema.h index 4f52d5d4d..a9865a9de 100644 --- a/common/schema.h +++ b/common/schema.h @@ -20,7 +20,8 @@ namespace swss { #define GB_ASIC_DB 9 #define GB_COUNTERS_DB 10 #define GB_FLEX_COUNTER_DB 11 -#define CHASSIS_APP_DB 12 +#define CHASSIS_APP_DB 12 +#define CHASSIS_STATE_DB 13 /***** APPLICATION DATABASE *****/ diff --git a/common/table.cpp b/common/table.cpp index 5fae3c0e5..cb6a8ae5a 100644 --- a/common/table.cpp +++ b/common/table.cpp @@ -31,7 +31,8 @@ const TableNameSeparatorMap TableBase::tableNameSeparatorMap = { { GB_ASIC_DB, TABLE_NAME_SEPARATOR_VBAR }, { GB_COUNTERS_DB, TABLE_NAME_SEPARATOR_VBAR }, { GB_FLEX_COUNTER_DB, TABLE_NAME_SEPARATOR_VBAR }, - { CHASSIS_APP_DB, TABLE_NAME_SEPARATOR_VBAR } + { CHASSIS_APP_DB, TABLE_NAME_SEPARATOR_VBAR }, + { CHASSIS_STATE_DB, TABLE_NAME_SEPARATOR_VBAR } }; Table::Table(const DBConnector *db, const string &tableName)