Skip to content

Commit

Permalink
Add warm-boot feature processing for wedge100bf_32x/65x platforms (so…
Browse files Browse the repository at this point in the history
  • Loading branch information
Pavlo Yadvichuk authored and lguohan committed Apr 23, 2019
1 parent e9e9dc3 commit f8950b7
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions syncd/scripts/syncd_init_common.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit f8950b7

Please sign in to comment.