[mellanox]: fix orchagent start args for mellanox (#3268)

Bug is introduced in #2980. Mellanox does not support setting
MAC on switch create.
This commit is contained in:
lguohan 2019-08-01 21:27:03 -07:00 committed by GitHub
parent c6e442b946
commit 11ea368fef
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -29,6 +29,8 @@ elif [ "$platform" == "barefoot" ]; then
ORCHAGENT_ARGS+="-m $MAC_ADDRESS"
elif [ "$platform" == "vs" ]; then
ORCHAGENT_ARGS+="-m $MAC_ADDRESS"
elif [ "$platform" == "mellanox" ]; then
ORCHAGENT_ARGS+=""
else
MAC_ADDRESS=`sonic-cfggen -d -v 'DEVICE_METADATA.localhost.mac'`
ORCHAGENT_ARGS+="-m $MAC_ADDRESS"