[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:
parent
5ea8d0c615
commit
f1b7b68a52
@ -54,7 +54,7 @@ ASIC_ID="asic$NAMESPACE_ID"
|
||||
if [ -f "$IS_SUPERVISOR" ]; then
|
||||
if [ -f "$USE_PCI_ID_IN_CHASSIS_STATE_DB" ]; then
|
||||
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
|
||||
sleep 3
|
||||
else
|
||||
|
Loading…
Reference in New Issue
Block a user