From b994a691633f434bb6a3ce0e8e33b8a8fec6c33e Mon Sep 17 00:00:00 2001 From: Oleksandr Ivantsiv Date: Fri, 9 Aug 2024 03:22:03 +0300 Subject: [PATCH] [nvidia-bluefield] Add support of common sai.profile --- syncd/scripts/syncd_init_common.sh | 6 ++++++ 1 file changed, 6 insertions(+) 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