From f8950b7a76560b20d93250a2970a8d84615e3ba7 Mon Sep 17 00:00:00 2001 From: Pavlo Yadvichuk Date: Tue, 23 Apr 2019 03:10:41 +0300 Subject: [PATCH] Add warm-boot feature processing for wedge100bf_32x/65x platforms (#434) --- syncd/scripts/syncd_init_common.sh | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/syncd/scripts/syncd_init_common.sh b/syncd/scripts/syncd_init_common.sh index d68fdc4b5fbd..7059bda52ff6 100755 --- a/syncd/scripts/syncd_init_common.sh +++ b/syncd/scripts/syncd_init_common.sh @@ -126,6 +126,15 @@ config_syncd_marvell() config_syncd_barefoot() { + PROFILE_FILE="$HWSKU_DIR/sai.profile" + if [ ! -f $PROFILE_FILE ]; then + # default profile file + PROFILE_FILE="/tmp/sai.profile" + echo "SAI_KEY_WARM_BOOT_WRITE_FILE=/var/warmboot/sai-warmboot.bin" > $PROFILE_FILE + echo "SAI_KEY_WARM_BOOT_READ_FILE=/var/warmboot/sai-warmboot.bin" >> $PROFILE_FILE + fi + CMD_ARGS+=" -p $PROFILE_FILE" + # Check and load SDE profile P4_PROFILE=$(sonic-cfggen -d -v 'DEVICE_METADATA["localhost"]["p4_profile"]') if [[ -n "$P4_PROFILE" ]]; then