Skip to content

Commit

Permalink
Add restapi DB (#386)
Browse files Browse the repository at this point in the history
  • Loading branch information
prsunny authored Sep 19, 2020
1 parent 5776ef5 commit 3751c81
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 6 deletions.
11 changes: 8 additions & 3 deletions common/database_config.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,20 +52,25 @@
"separator": "|",
"instance" : "redis"
},
"GB_ASIC_DB" : {
"RESTAPI_DB" : {
"id" : 8,
"separator": "|",
"instance" : "redis"
},
"GB_COUNTERS_DB" : {
"GB_ASIC_DB" : {
"id" : 9,
"separator": "|",
"instance" : "redis"
},
"GB_FLEX_COUNTER_DB" : {
"GB_COUNTERS_DB" : {
"id" : 10,
"separator": "|",
"instance" : "redis"
},
"GB_FLEX_COUNTER_DB" : {
"id" : 11,
"separator": "|",
"instance" : "redis"
}
},
"VERSION" : "1.0"
Expand Down
7 changes: 4 additions & 3 deletions common/schema.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,10 @@ namespace swss {
#define FLEX_COUNTER_DB 5
#define STATE_DB 6
#define SNMP_OVERLAY_DB 7
#define GB_ASIC_DB 8
#define GB_COUNTERS_DB 9
#define GB_FLEX_COUNTER_DB 10
#define RESTAPI_DB 8
#define GB_ASIC_DB 9
#define GB_COUNTERS_DB 10
#define GB_FLEX_COUNTER_DB 11

/***** APPLICATION DATABASE *****/

Expand Down
1 change: 1 addition & 0 deletions common/table.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ const TableNameSeparatorMap TableBase::tableNameSeparatorMap = {
{ PFC_WD_DB, TABLE_NAME_SEPARATOR_COLON },
{ FLEX_COUNTER_DB, TABLE_NAME_SEPARATOR_COLON },
{ STATE_DB, TABLE_NAME_SEPARATOR_VBAR },
{ RESTAPI_DB, TABLE_NAME_SEPARATOR_VBAR },
{ GB_ASIC_DB, TABLE_NAME_SEPARATOR_VBAR },
{ GB_COUNTERS_DB, TABLE_NAME_SEPARATOR_VBAR },
{ GB_FLEX_COUNTER_DB, TABLE_NAME_SEPARATOR_VBAR }
Expand Down

0 comments on commit 3751c81

Please sign in to comment.