Skip to content

Commit

Permalink
[Mellanox] Update mellanoxs dump generation to include SDK dumps (#833)
Browse files Browse the repository at this point in the history
Create in Mellanox devices a folder from sai.profile key SAI_DUMP_STORE_PATH in the syncd docker to have it ready for SDK dumps
  • Loading branch information
DavidZagury authored May 30, 2021
1 parent 4fb571b commit 77d44f5
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions syncd/scripts/syncd_init_common.sh
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,11 @@ config_syncd_mlnx()
# Update sai.profile with MAC_ADDRESS and WARM_BOOT settings
echo "DEVICE_MAC_ADDRESS=$MAC_ADDRESS" >> /tmp/sai.profile
echo "SAI_WARM_BOOT_WRITE_FILE=/var/warmboot/" >> /tmp/sai.profile

SDK_DUMP_PATH=`cat /tmp/sai.profile|grep "SAI_DUMP_STORE_PATH"|cut -d = -f2`
if [ ! -d "$SDK_DUMP_PATH" ]; then
mkdir -p "$SDK_DUMP_PATH"
fi
}

config_syncd_centec()
Expand Down

0 comments on commit 77d44f5

Please sign in to comment.