Skip to content

Commit

Permalink
Change sai profile search path to /etc/sai.d
Browse files Browse the repository at this point in the history
  • Loading branch information
geans-pin committed Nov 29, 2024
1 parent a473577 commit 7e7a714
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion syncd/scripts/syncd_init_common.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ ENABLE_SAITHRIFT=0
TEMPLATES_DIR=/usr/share/sonic/templates
PLATFORM_DIR=/usr/share/sonic/platform
HWSKU_DIR=/usr/share/sonic/hwsku
SAI_PROFILE_DIR=/etc/sai.d

VARS_FILE=$TEMPLATES_DIR/swss_vars.j2

Expand Down Expand Up @@ -236,7 +237,7 @@ config_syncd_bcm()
PLATFORM_COMMON_DIR=/usr/share/sonic/device/x86_64-broadcom_common
PLT_CONFIG_BCM=""
PLT_CONFIG_YML=""
PLT_SAI_PROFILE=$(find $HWSKU_DIR -name 'sai.profile')
PLT_SAI_PROFILE=$(find $SAI_PROFILE_DIR -name 'sai.profile')
readline=$(grep SAI_INIT_CONFIG_FILE $PLT_SAI_PROFILE)
if [ ${readline: -3} == "bcm" ]; then
PLT_CONFIG_BCM=${readline#*=}
Expand Down

0 comments on commit 7e7a714

Please sign in to comment.