feat(automation/deployment): Added script to autodeploy and setup wedge and nodes

Signed-off-by: Tuan-Dat Tran <tuan-dat.tran@tudattr.dev>
This commit is contained in:
Tuan-Dat Tran
2024-12-31 15:17:29 +01:00
parent f3e97a4619
commit 5857beeaf6
16 changed files with 104 additions and 148 deletions

6
scripts/00-wedge_on_reboot.sh Normal file → Executable file
View File

@@ -1,5 +1,7 @@
#!/bin/bash
SDE_INSTALL=/home/user/bf-sde-9.7.0/install
# Run this script when:
# When the switch has been restarted or you encounter the following error:
# ```sh
@@ -51,5 +53,5 @@
# CHSS MGMT ERROR: Failed to configure cdc_eth ipv6
# ```
sudo "$SDE_INSTALL/bin/bf_kpkt_mod_load" "$SDE_INSTALL"
sudo ip link set "$(basename /sys/module/bf_kpkt/drivers/pci:bf/*/net/*)" up
"$SDE_INSTALL/bin/bf_kpkt_mod_load" "$SDE_INSTALL"
ip link set "$(basename /sys/module/bf_kpkt/drivers/pci:bf/*/net/*)" up