diff --git a/config_sonic_otn_linecard.sh b/config_sonic_otn_linecard.sh index d254853fb02d..dca10106023c 100755 --- a/config_sonic_otn_linecard.sh +++ b/config_sonic_otn_linecard.sh @@ -35,11 +35,16 @@ else sudo /usr/local/bin/sonic-cfggen -j /etc/sonic/config_db$ASIC_ID.json -n asic$ASIC_ID --write-to-db - echo "plugin the linecard $SLOT_ID ..." - sonic-db-cli -n asic$ASIC_ID STATE_DB hset "LINECARD|LINECARD-1-$SLOT_ID" "power-admin-state" "POWER_ENABLED" "oper-status" "INACTIVE" "empty" "false" "slot-status" "Ready" "linecard-type" "$LINECARD_TYPE_UPPERCASE" - sonic-db-cli -n asic$ASIC_ID STATE_DB hset "LINECARD|LINECARD-1-$SLOT_ID" "oper-status" "ACTIVE" sudo systemctl start syncd-ot@$ASIC_ID.service sudo systemctl start otss@$ASIC_ID.service + + sleep 5 + echo "plugin the linecard $SLOT_ID and power enabled..." + sonic-db-cli -n asic$ASIC_ID STATE_DB hset "LINECARD|LINECARD-1-$SLOT_ID" "power-admin-state" "POWER_ENABLED" "empty" "false" "linecard-type" "$LINECARD_TYPE_UPPERCASE" + + sleep 5 + echo "linecard otai library communication link status is up..." + docker exec syncd-ot$ASIC_ID touch /tmp/linkup fi diff --git a/src/sonic-otairedis b/src/sonic-otairedis index 297fbe688421..779999e5e00c 160000 --- a/src/sonic-otairedis +++ b/src/sonic-otairedis @@ -1 +1 @@ -Subproject commit 297fbe688421ae96c5d00fb19495d193fbf1bfd1 +Subproject commit 779999e5e00c498abb0c07493bc0fcc05938e5a3