Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update sonic-otairedis submoudle and otn linecard provisioning script #12

Merged
merged 1 commit into from
Dec 27, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading