Skip to content

Commit 77d44f5

Browse files
authored
[Mellanox] Update mellanoxs dump generation to include SDK dumps (sonic-net#833)
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
1 parent 4fb571b commit 77d44f5

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

syncd/scripts/syncd_init_common.sh

+5
Original file line numberDiff line numberDiff line change
@@ -183,6 +183,11 @@ config_syncd_mlnx()
183183
# Update sai.profile with MAC_ADDRESS and WARM_BOOT settings
184184
echo "DEVICE_MAC_ADDRESS=$MAC_ADDRESS" >> /tmp/sai.profile
185185
echo "SAI_WARM_BOOT_WRITE_FILE=/var/warmboot/" >> /tmp/sai.profile
186+
187+
SDK_DUMP_PATH=`cat /tmp/sai.profile|grep "SAI_DUMP_STORE_PATH"|cut -d = -f2`
188+
if [ ! -d "$SDK_DUMP_PATH" ]; then
189+
mkdir -p "$SDK_DUMP_PATH"
190+
fi
186191
}
187192

188193
config_syncd_centec()

0 commit comments

Comments
 (0)