[swss]: Export ASIC as the env variable (#1030)
- the env variable 'platform' is not universal across different platforms this line will be removed once the related code in sonic-swss is refactored Signed-off-by: Shu0T1an ChenG <shuche@microsoft.com>
This commit is contained in:
parent
fc7246f418
commit
6c15acc49b
@ -4,7 +4,7 @@
|
||||
# vendor specific code.
|
||||
export platform=`sonic-cfggen -v onie_switch_asic`
|
||||
|
||||
ASIC=`sonic-cfggen -y /etc/sonic/sonic_version.yml -v asic_type`
|
||||
export ASIC=`sonic-cfggen -y /etc/sonic/sonic_version.yml -v asic_type`
|
||||
|
||||
MAC_ADDRESS=`ip link show eth0 | grep ether | awk '{print $2}'`
|
||||
|
||||
|
Reference in New Issue
Block a user