Enhancing vs support to mock based on platform (#8685)
This commit is contained in:
parent
8514a484cd
commit
8171bfefc8
@ -53,6 +53,10 @@ else
|
||||
fi
|
||||
sonic-cfggen -t /usr/share/sonic/templates/copp_cfg.j2 > /etc/sonic/copp_cfg.json
|
||||
|
||||
if [ "$fake_platform" == "mellanox" ]; then
|
||||
cp /usr/share/sonic/hwsku/sai_mlnx.profile /usr/share/sonic/hwsku/sai.profile
|
||||
fi
|
||||
|
||||
mkdir -p /etc/swss/config.d/
|
||||
|
||||
rm -f /var/run/rsyslogd.pid
|
||||
|
@ -18,6 +18,7 @@ $(addprefix $(DEST)/, $(MAIN_TARGET)): $(DEST)/% :
|
||||
for d in `find -L ../../../device -maxdepth 3 -mindepth 3 -type d | grep -vE "(plugins|led-code)"`; do \
|
||||
cp -Lr $$d device/x86_64-kvm_x86_64-r0/ ; \
|
||||
cp ./sai.vs_profile device/x86_64-kvm_x86_64-r0/$$(basename $$d)/sai.profile; \
|
||||
cp ./sai_mlnx.vs_profile device/x86_64-kvm_x86_64-r0/$$(basename $$d)/sai_mlnx.profile; \
|
||||
grep -v ^# device/x86_64-kvm_x86_64-r0/$$(basename $$d)/port_config.ini | awk '{i=i+1;print "eth"i":"$$2}' > device/x86_64-kvm_x86_64-r0/$$(basename $$d)/lanemap.ini
|
||||
cp ./pai.vs_profile device/x86_64-kvm_x86_64-r0/$$(basename $$d)/pai.profile; \
|
||||
grep -v ^# device/x86_64-kvm_x86_64-r0/$$(basename $$d)/port_config.ini | awk '{i=i+1;print "eth"i":"$$2}' > device/x86_64-kvm_x86_64-r0/$$(basename $$d)/lanemap.ini
|
||||
|
5
src/sonic-device-data/src/sai_mlnx.vs_profile
Normal file
5
src/sonic-device-data/src/sai_mlnx.vs_profile
Normal file
@ -0,0 +1,5 @@
|
||||
SAI_VS_SWITCH_TYPE=SAI_VS_SWITCH_TYPE_MLNX2700
|
||||
SAI_VS_HOSTIF_USE_TAP_DEVICE=true
|
||||
SAI_VS_INTERFACE_LANE_MAP_FILE=/usr/share/sonic/hwsku/lanemap.ini
|
||||
SAI_VS_CORE_PORT_INDEX_MAP_FILE=/usr/share/sonic/hwsku/coreportindexmap.ini
|
||||
SAI_VS_INTERFACE_FABRIC_LANE_MAP_FILE=/usr/share/sonic/hwsku/fabriclanemap.ini
|
Reference in New Issue
Block a user