Skip to content

Commit

Permalink
[orchagent]: Export platform information before orchagent run. (#835)
Browse files Browse the repository at this point in the history
Export platform information in environment to be able to write vendor
specific code.
  • Loading branch information
oleksandrivantsiv authored and marian-pritsak committed Jul 25, 2017
1 parent 7d95fd7 commit c1fd0b1
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions dockers/docker-orchagent/orchagent.sh
Original file line number Diff line number Diff line change
@@ -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}'`
Expand Down

0 comments on commit c1fd0b1

Please sign in to comment.