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 yxieca committed Mar 1, 2023
1 parent 3c2e0c5 commit 5ce9990
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 @@ -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"
Expand Down

0 comments on commit 5ce9990

Please sign in to comment.