[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 <sudharsand@nvidia.com>
This commit is contained in:
parent
4f00b86502
commit
738de2dcab
@ -1,12 +1,9 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
#This is required since we have platform based checks in orchagent
|
#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
|
if [ "$HWSKU" == "Mellanox-SN2700" ]; then
|
||||||
export platform="mellanox"
|
export platform="mellanox"
|
||||||
elif [ -n "$fake_platform" ]; then
|
|
||||||
export platform=$fake_platform
|
|
||||||
else
|
else
|
||||||
export platform=vs
|
export platform=vs
|
||||||
fi
|
fi
|
||||||
|
@ -54,11 +54,6 @@ else
|
|||||||
fi
|
fi
|
||||||
sonic-cfggen -t /usr/share/sonic/templates/copp_cfg.j2 > /etc/sonic/copp_cfg.json
|
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
|
if [ "$HWSKU" == "Mellanox-SN2700" ]; then
|
||||||
cp /usr/share/sonic/hwsku/sai_mlnx.profile /usr/share/sonic/hwsku/sai.profile
|
cp /usr/share/sonic/hwsku/sai_mlnx.profile /usr/share/sonic/hwsku/sai.profile
|
||||||
fi
|
fi
|
||||||
|
Reference in New Issue
Block a user