Skip to content

Commit

Permalink
[Enhancement] debian/conffiles will give prompt when file existing, n…
Browse files Browse the repository at this point in the history
…eed a way to supress prompt
  • Loading branch information
dzhangalibaba committed Dec 5, 2019
1 parent eb01b68 commit 98143bb
Show file tree
Hide file tree
Showing 4 changed files with 63 additions and 0 deletions.
4 changes: 4 additions & 0 deletions common/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,13 @@ EXTRA_DIST = \
table_dump.lua \
fdb_flush.lua

EXTRA_CONF_DIST = database_config.json

swssdir = $(datadir)/swss
swsscommondir = /var/run/redis/sonic-db

dist_swss_DATA = $(EXTRA_DIST)
dist_swsscommon_DATA = $(EXTRA_CONF_DIST)

bin_PROGRAMS = swssloglevel

Expand Down
57 changes: 57 additions & 0 deletions common/database_config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
{
"INSTANCES": {
"redis":{
"hostname" : "127.0.0.1",
"port" : 6379,
"unix_socket_path" : "/var/run/redis/redis.sock"
}
},
"DATABASES" : {
"APPL_DB" : {
"id" : 0,
"separator": ":",
"instance" : "redis"
},
"ASIC_DB" : {
"id" : 1,
"separator": ":",
"instance" : "redis"
},
"COUNTERS_DB" : {
"id" : 2,
"separator": ":",
"instance" : "redis"
},
"LOGLEVEL_DB" : {
"id" : 3,
"separator": ":",
"instance" : "redis"
},
"CONFIG_DB" : {
"id" : 4,
"separator": "|",
"instance" : "redis"
},
"PFC_WD_DB" : {
"id" : 5,
"separator": ":",
"instance" : "redis"
},
"FLEX_COUNTER_DB" : {
"id" : 5,
"separator": ":",
"instance" : "redis"
},
"STATE_DB" : {
"id" : 6,
"separator": "|",
"instance" : "redis"
},
"SNMP_OVERLAY_DB" : {
"id" : 7,
"separator": "|",
"instance" : "redis"
}
},
"VERSION" : "1.0"
}
1 change: 1 addition & 0 deletions debian/conffiles
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/var/run/redis/sonic-db/database_config.json
1 change: 1 addition & 0 deletions debian/libswsscommon.install
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
usr/lib/*/lib*.so.*
usr/share/swss/*.lua
var/run/redis/sonic-db/database_config.json
usr/bin/swssloglevel

0 comments on commit 98143bb

Please sign in to comment.