diff --git a/syncd/scripts/syncd_init_common.sh b/syncd/scripts/syncd_init_common.sh index e2b56229b..a278daef9 100644 --- a/syncd/scripts/syncd_init_common.sh +++ b/syncd/scripts/syncd_init_common.sh @@ -347,6 +347,8 @@ config_syncd_innovium() config_syncd_nvidia_bluefield() { + SAI_COMMON_FILE_PATH=/etc/bluefield/sai-common.profile + # Read MAC addresses base_mac="$(echo $SYNCD_VARS | jq -r '.mac')" hwsku=$(sonic-cfggen -d -v 'DEVICE_METADATA["localhost"]["hwsku"]') @@ -356,6 +358,10 @@ config_syncd_nvidia_bluefield() cp $HWSKU_DIR/sai.profile /tmp/sai.profile + if [ -f $SAI_COMMON_FILE_PATH ]; then + cat $SAI_COMMON_FILE_PATH >> /tmp/sai.profile + fi + # Update sai.profile with MAC_ADDRESS echo "DEVICE_MAC_ADDRESS=$base_mac" >> /tmp/sai.profile echo "PORT_1_MAC_ADDRESS=$eth0_mac" >> /tmp/sai.profile