1af68b3aa6
* Support for connecting to DB in namespace via IP:port ( using docker bridge network ) for applications in multi-asic platform. * Added the default IP as 127.0.0.1 if the IPaddress derivation from interface fails. Moved the localhost loopback IP binding logic into the supervisor.j2 file.
59 lines
1.4 KiB
Django/Jinja
59 lines
1.4 KiB
Django/Jinja
{
|
|
"INSTANCES": {
|
|
"redis":{
|
|
"hostname" : "{{HOST_IP}}",
|
|
"port" : 6379,
|
|
"unix_socket_path" : "/var/run/redis{{NAMESPACE_ID}}/redis.sock",
|
|
"persistence_for_warm_boot" : "yes"
|
|
}
|
|
},
|
|
"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"
|
|
}
|