From 738de2dcab12aa79247c3bac649a131aacca0588 Mon Sep 17 00:00:00 2001 From: Sudharsan Dhamal Gopalarathnam Date: Fri, 5 Nov 2021 16:48:13 -0700 Subject: [PATCH] [docker-sonic-vs] Removing fake_platform variable since it is no more used (#9175) *Removing fake_platform environment variable. Following the merge of #9044 and Azure/sonic-swss#1978 the fake_platform environment variable is not used in any place and removing the stale references. Signed-off-by: Sudharsan Dhamal Gopalarathnam --- platform/vs/docker-sonic-vs/orchagent.sh | 3 --- platform/vs/docker-sonic-vs/start.sh | 5 ----- 2 files changed, 8 deletions(-) diff --git a/platform/vs/docker-sonic-vs/orchagent.sh b/platform/vs/docker-sonic-vs/orchagent.sh index 62ddc76cce6a..8bd365e13230 100755 --- a/platform/vs/docker-sonic-vs/orchagent.sh +++ b/platform/vs/docker-sonic-vs/orchagent.sh @@ -1,12 +1,9 @@ #!/usr/bin/env bash #This is required since we have platform based checks in orchagent -#fakeplatform to be removed once swss migrates to hw-sku if [ "$HWSKU" == "Mellanox-SN2700" ]; then export platform="mellanox" -elif [ -n "$fake_platform" ]; then - export platform=$fake_platform else export platform=vs fi diff --git a/platform/vs/docker-sonic-vs/start.sh b/platform/vs/docker-sonic-vs/start.sh index d5efffcad118..9911c1bfe011 100755 --- a/platform/vs/docker-sonic-vs/start.sh +++ b/platform/vs/docker-sonic-vs/start.sh @@ -54,11 +54,6 @@ else fi sonic-cfggen -t /usr/share/sonic/templates/copp_cfg.j2 > /etc/sonic/copp_cfg.json -#To be removed once swss migrates to HWSKU -if [ "$fake_platform" == "mellanox" ]; then - cp /usr/share/sonic/hwsku/sai_mlnx.profile /usr/share/sonic/hwsku/sai.profile -fi - if [ "$HWSKU" == "Mellanox-SN2700" ]; then cp /usr/share/sonic/hwsku/sai_mlnx.profile /usr/share/sonic/hwsku/sai.profile fi