From 0b73b76b5901f8aad0653b0afbcfc6116e379af7 Mon Sep 17 00:00:00 2001 From: Andriy Yurkiv Date: Wed, 25 Jan 2023 20:11:16 +0200 Subject: [PATCH] [Dual-ToR] update sai.profile with SAI_ADDITIONAL_MAC_ENABLED attribute if corresponding arg passed to syncd Signed-off-by: Andriy Yurkiv --- syncd/scripts/syncd_init_common.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/syncd/scripts/syncd_init_common.sh b/syncd/scripts/syncd_init_common.sh index 32a672590..7529452ae 100644 --- a/syncd/scripts/syncd_init_common.sh +++ b/syncd/scripts/syncd_init_common.sh @@ -219,6 +219,10 @@ config_syncd_mlnx() echo "SAI_DSCP_REMAPPING_ENABLED=1" >> /tmp/sai.profile fi + if [[ "$DUAL_TOR" == "enable" ]]; then + echo "SAI_ADDITIONAL_MAC_ENABLED=1" >> /tmp/sai.profile + fi + SDK_DUMP_PATH=`cat /tmp/sai.profile|grep "SAI_DUMP_STORE_PATH"|cut -d = -f2` if [ ! -d "$SDK_DUMP_PATH" ]; then mkdir -p "$SDK_DUMP_PATH"