Skip to content

Commit 890baed

Browse files
authored
[vs]: generate port table in config db for virtual switch (#2169)
Signed-off-by: Guohan Lu <[email protected]>
1 parent 3e1b9e1 commit 890baed

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

platform/vs/docker-sonic-vs/start.sh

+2-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@ if [ -f /etc/sonic/config_db.json ]; then
1313
else
1414
# generate and merge buffers configuration into config file
1515
sonic-cfggen -t /usr/share/sonic/device/vswitch/buffers.json.j2 > /tmp/buffers.json
16-
sonic-cfggen -j /etc/sonic/init_cfg.json -j /tmp/buffers.json --print-data > /etc/sonic/config_db.json
16+
sonic-cfggen -p /usr/share/sonic/device/x86_64-dell_s6000_s1220-r0/Force10-S6000/port_config.ini -k Force10-S6000 --print-data > /tmp/ports.json
17+
sonic-cfggen -j /etc/sonic/init_cfg.json -j /tmp/buffers.json -j /tmp/ports.json --print-data > /etc/sonic/config_db.json
1718
fi
1819

1920
mkdir -p /etc/swss/config.d/

0 commit comments

Comments
 (0)