From 886875b3128bbf593cd5b18e888878b17aead2f4 Mon Sep 17 00:00:00 2001 From: Andriy Yurkiv <70649192+ayurkiv-nvda@users.noreply.github.com> Date: Mon, 27 Feb 2023 03:20:04 +0200 Subject: [PATCH] [Dual-ToR] update sai.profile with SAI_ADDITIONAL_MAC_ENABLED attribute if corresponding arg passed to syncd (#1201) 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 f062dbb52..a1e538890 100644 --- a/syncd/scripts/syncd_init_common.sh +++ b/syncd/scripts/syncd_init_common.sh @@ -220,6 +220,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"