[orchagent]: Fix platform string export. (#4993)
Signed-off-by: Nazarii Hnydyn <nazariig@mellanox.com>
This commit is contained in:
parent
755319c37c
commit
7fe359747a
@ -10,7 +10,7 @@ fi
|
|||||||
|
|
||||||
# Retrieve SWSS vars from sonic-cfggen
|
# Retrieve SWSS vars from sonic-cfggen
|
||||||
SWSS_VARS=$(sonic-cfggen -d -y /etc/sonic/sonic_version.yml -t $SWSS_VARS_FILE)
|
SWSS_VARS=$(sonic-cfggen -d -y /etc/sonic/sonic_version.yml -t $SWSS_VARS_FILE)
|
||||||
platform=$(echo $SWSS_VARS | jq -r '.asic_type')
|
export platform=$(echo $SWSS_VARS | jq -r '.asic_type')
|
||||||
|
|
||||||
MAC_ADDRESS=$(echo $SWSS_VARS | jq -r '.mac')
|
MAC_ADDRESS=$(echo $SWSS_VARS | jq -r '.mac')
|
||||||
if [ "$MAC_ADDRESS" == "None" ] || [ -z "$MAC_ADDRESS" ]; then
|
if [ "$MAC_ADDRESS" == "None" ] || [ -z "$MAC_ADDRESS" ]; then
|
||||||
|
Loading…
Reference in New Issue
Block a user