From 77d44f596b2110e3979b3e1d200739b6059a822d Mon Sep 17 00:00:00 2001 From: DavidZagury <32644413+DavidZagury@users.noreply.github.com> Date: Sun, 30 May 2021 12:28:50 +0300 Subject: [PATCH] [Mellanox] Update mellanoxs dump generation to include SDK dumps (#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 --- syncd/scripts/syncd_init_common.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/syncd/scripts/syncd_init_common.sh b/syncd/scripts/syncd_init_common.sh index ca711033d585..caa28841a452 100644 --- a/syncd/scripts/syncd_init_common.sh +++ b/syncd/scripts/syncd_init_common.sh @@ -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()