[voqsystemlagid] Fix for timing issue in setting system lag id boundary (#7911)
The voq system lag id boundary is set in redis-chassis. Changes include setting this from database-chassis container. This fixes a timing issue in finding datbase_config.json file from redis directory which is created from database container. Since database container usually starts after database-chassis container the existence of this file is unreliable while running the command. Running the command under database-chassis container makes sure that the database_config.json form redis-chassis directory is guaranteed to be available and hence fixes the timing issue. Signed-off-by: vedganes <vedavinayagam.ganesan@nokia.com>
This commit is contained in:
parent
1618aec370
commit
ffca17da0b
@ -108,8 +108,8 @@ function setPlatformLagIdBoundaries()
|
||||
CHASSIS_CONF=/usr/share/sonic/device/$PLATFORM/chassisdb.conf
|
||||
if [ -f "$CHASSIS_CONF" ]; then
|
||||
source $CHASSIS_CONF
|
||||
$SONIC_DB_CLI CHASSIS_APP_DB SET "SYSTEM_LAG_ID_START" "$lag_id_start"
|
||||
$SONIC_DB_CLI CHASSIS_APP_DB SET "SYSTEM_LAG_ID_END" "$lag_id_end"
|
||||
docker exec -i ${DOCKERNAME} $SONIC_DB_CLI CHASSIS_APP_DB SET "SYSTEM_LAG_ID_START" "$lag_id_start"
|
||||
docker exec -i ${DOCKERNAME} $SONIC_DB_CLI CHASSIS_APP_DB SET "SYSTEM_LAG_ID_END" "$lag_id_end"
|
||||
fi
|
||||
}
|
||||
{%- endif %}
|
||||
|
Reference in New Issue
Block a user