From 803aa686b654cb08bfc5bec8e77f9253dc26a5ca Mon Sep 17 00:00:00 2001 From: Oleksandr Ivantsiv Date: Mon, 24 Jul 2017 18:02:06 +0300 Subject: [PATCH] [orchagent]: Export platform information before orchagent run. Export platform information in environment to be able to write vendor specific code. --- dockers/docker-orchagent/orchagent.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/dockers/docker-orchagent/orchagent.sh b/dockers/docker-orchagent/orchagent.sh index 8dc1b859ee25..328ce8fc053d 100755 --- a/dockers/docker-orchagent/orchagent.sh +++ b/dockers/docker-orchagent/orchagent.sh @@ -1,5 +1,9 @@ #!/usr/bin/env bash +# Export platform information. Required to be able to write +# vendor specific code. +export platform=`sonic-cfggen -m /etc/sonic/minigraph.xml -v onie_switch_asic` + ASIC=`sonic-cfggen -y /etc/sonic/sonic_version.yml -v asic_type` MAC_ADDRESS=`ip link show eth0 | grep ether | awk '{print $2}'`