Skip to content

Commit

Permalink
[swss]: Change the env name from ASIC to platform (#1033)
Browse files Browse the repository at this point in the history
  • Loading branch information
Shuotian Cheng authored Oct 26, 2017
1 parent 47c8567 commit 7f7ddc8
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions dockers/docker-orchagent/orchagent.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,7 @@

# Export platform information. Required to be able to write
# vendor specific code.
export platform=`sonic-cfggen -v onie_switch_asic`

export ASIC=`sonic-cfggen -y /etc/sonic/sonic_version.yml -v asic_type`
export platform=`sonic-cfggen -y /etc/sonic/sonic_version.yml -v asic_type`

MAC_ADDRESS=`ip link show eth0 | grep ether | awk '{print $2}'`

Expand All @@ -16,9 +14,9 @@ ORCHAGENT_ARGS="-d /var/log/swss "
ORCHAGENT_ARGS+="-b 8192 "

# Add platform specific arguments if necessary
if [ "$ASIC" == "broadcom" ]; then
if [ "$platform" == "broadcom" ]; then
ORCHAGENT_ARGS+="-m $MAC_ADDRESS"
elif [ "$ASIC" == "cavium" ]; then
elif [ "$platform" == "cavium" ]; then
ORCHAGENT_ARGS+="-m $MAC_ADDRESS"
fi

Expand Down

0 comments on commit 7f7ddc8

Please sign in to comment.