Commit 9fa5efce authored by Saverio Proto's avatar Saverio Proto

Create vtep.db and vswith.db if they dont exist

parent 7828b3d4
......@@ -2,6 +2,14 @@
mkdir /var/run/openvswitch
if [ ! -f /etc/openvswitch/vtep.db ]; then
ovsdb-tool create /etc/openvswitch/vtep.db /usr/share/openvswitch/vtep.ovsschema
fi
if [ ! -f /etc/openvswitch/vswitch.db ]; then
ovsdb-tool create /etc/openvswitch/vswitch.db /usr/share/openvswitch/vswitch.ovsschema
fi
ovsdb-server --pidfile --detach --log-file \
--remote ptcp:6632:${MGMTIPV4} \
--remote punix:/var/run/openvswitch/db.sock \
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment