[202205][chassis]fix to use the correct table in chassis_state_db (#12992)

Why I did it
In the PR sonic-net/sonic-platform-daemons#311 the table for updating the fabric asic was changed. This PR is update docker-init.sh to use the correct table to detect the fabric asic.

How I did it
update docker-init.sh

How to verify it
Check on chassis


Signed-off-by: Arvindsrinivasan Lakshmi Narasimhan <arlakshm@microsoft.com>
This commit is contained in:
Arvindsrinivasan Lakshmi Narasimhan 2022-12-08 19:36:45 +00:00 committed by GitHub
parent 5ea8d0c615
commit f1b7b68a52
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -54,7 +54,7 @@ ASIC_ID="asic$NAMESPACE_ID"
if [ -f "$IS_SUPERVISOR" ]; then if [ -f "$IS_SUPERVISOR" ]; then
if [ -f "$USE_PCI_ID_IN_CHASSIS_STATE_DB" ]; then if [ -f "$USE_PCI_ID_IN_CHASSIS_STATE_DB" ]; then
while true; do while true; do
PCI_ID=$(sonic-db-cli -s CHASSIS_STATE_DB HGET "CHASSIS_ASIC_TABLE|$ASIC_ID" asic_pci_address) PCI_ID=$(sonic-db-cli -s CHASSIS_STATE_DB HGET "CHASSIS_FABRIC_ASIC_TABLE|$ASIC_ID" asic_pci_address)
if [ -z "$PCI_ID" ]; then if [ -z "$PCI_ID" ]; then
sleep 3 sleep 3
else else