Skip to content

Commit

Permalink
[Dual-ToR] update sai.profile with SAI_ADDITIONAL_MAC_ENABLED attribu…
Browse files Browse the repository at this point in the history
…te if corresponding arg passed to syncd (#1201)

Signed-off-by: Andriy Yurkiv <ayurkiv@nvidia.com>
  • Loading branch information
ayurkiv-nvda authored and StormLiangMS committed Mar 7, 2023
1 parent 50d8e21 commit 8b1583b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions syncd/scripts/syncd_init_common.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 8b1583b

Please sign in to comment.