Skip to content

Commit f8950b7

Browse files
Pavlo Yadvichuklguohan
Pavlo Yadvichuk
authored andcommitted
Add warm-boot feature processing for wedge100bf_32x/65x platforms (sonic-net#434)
1 parent e9e9dc3 commit f8950b7

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

syncd/scripts/syncd_init_common.sh

+9
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,15 @@ config_syncd_marvell()
126126

127127
config_syncd_barefoot()
128128
{
129+
PROFILE_FILE="$HWSKU_DIR/sai.profile"
130+
if [ ! -f $PROFILE_FILE ]; then
131+
# default profile file
132+
PROFILE_FILE="/tmp/sai.profile"
133+
echo "SAI_KEY_WARM_BOOT_WRITE_FILE=/var/warmboot/sai-warmboot.bin" > $PROFILE_FILE
134+
echo "SAI_KEY_WARM_BOOT_READ_FILE=/var/warmboot/sai-warmboot.bin" >> $PROFILE_FILE
135+
fi
136+
CMD_ARGS+=" -p $PROFILE_FILE"
137+
129138
# Check and load SDE profile
130139
P4_PROFILE=$(sonic-cfggen -d -v 'DEVICE_METADATA["localhost"]["p4_profile"]')
131140
if [[ -n "$P4_PROFILE" ]]; then

0 commit comments

Comments
 (0)