From 419c69b2892bb6c94ba50bf542d23eb3a2a85bdd Mon Sep 17 00:00:00 2001 From: Volodymyr Samotiy Date: Thu, 7 Mar 2019 02:27:41 +0200 Subject: [PATCH] [vs]: Add option to specify platform name for DVS orchagent (#2571) Signed-off-by: Volodymyr Samotiy --- platform/vs/docker-sonic-vs/orchagent.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/platform/vs/docker-sonic-vs/orchagent.sh b/platform/vs/docker-sonic-vs/orchagent.sh index 26dae28a6e..d9bebf1173 100755 --- a/platform/vs/docker-sonic-vs/orchagent.sh +++ b/platform/vs/docker-sonic-vs/orchagent.sh @@ -1,6 +1,10 @@ #!/usr/bin/env bash -export platform=vs +if [[ -z "$fake_platform" ]]; then + export platform=vs +else + export platform=$fake_platform +fi MAC_ADDRESS=`ip link show eth0 | grep ether | awk '{print $2}'`