Skip to content

Commit

Permalink
update sonic-otairedis submoudle and otn linecard provisioning script
Browse files Browse the repository at this point in the history
  • Loading branch information
sonic-otn committed Dec 26, 2024
1 parent 1fb376c commit fcab419
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
11 changes: 8 additions & 3 deletions config_sonic_otn_linecard.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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


Expand Down
2 changes: 1 addition & 1 deletion src/sonic-otairedis

0 comments on commit fcab419

Please sign in to comment.