[chassis]: Use correct path for chassisdb.conf file (#5632)
use correct chassisdb.conf path while bringing up chassis_db service on VoQ modular switch.chassis_db service on VoQ modular switch. resolves #5631 Signed-off-by: Honggang Xu <hxu@arista.com>
This commit is contained in:
parent
ca7a4a4e3a
commit
29928c93a1
@ -39,7 +39,7 @@ fi
|
|||||||
start_chassis_db=0
|
start_chassis_db=0
|
||||||
chassis_db_address=""
|
chassis_db_address=""
|
||||||
chassis_db_port=""
|
chassis_db_port=""
|
||||||
chassisdb_config="/etc/sonic/chassisdb.conf"
|
chassisdb_config="/usr/share/sonic/platform/chassisdb.conf"
|
||||||
[ -f $chassisdb_config ] && source $chassisdb_config
|
[ -f $chassisdb_config ] && source $chassisdb_config
|
||||||
|
|
||||||
db_cfg_file="/var/run/redis/sonic-db/database_config.json"
|
db_cfg_file="/var/run/redis/sonic-db/database_config.json"
|
||||||
|
@ -253,7 +253,7 @@ start() {
|
|||||||
{%- if docker_container_name == "database" %}
|
{%- if docker_container_name == "database" %}
|
||||||
start_chassis_db=0
|
start_chassis_db=0
|
||||||
chassis_db_address=""
|
chassis_db_address=""
|
||||||
chassisdb_config="/etc/sonic/chassisdb.conf"
|
chassisdb_config="/usr/share/sonic/device/$PLATFORM/chassisdb.conf"
|
||||||
[ -f $chassisdb_config ] && source $chassisdb_config
|
[ -f $chassisdb_config ] && source $chassisdb_config
|
||||||
DB_OPT=" -v /var/run/redis-chassis:/var/run/redis-chassis:ro "
|
DB_OPT=" -v /var/run/redis-chassis:/var/run/redis-chassis:ro "
|
||||||
if [[ "$start_chassis_db" != "1" ]] && [[ -z "$chassis_db_address" ]]; then
|
if [[ "$start_chassis_db" != "1" ]] && [[ -z "$chassis_db_address" ]]; then
|
||||||
|
Loading…
Reference in New Issue
Block a user