ovs-vsctl: Initialize the database automatically.
[sliver-openvswitch.git] / xenserver / etc_init.d_vswitch
index 7460a21..60bbd05 100755 (executable)
@@ -336,12 +336,10 @@ function start {
 
         action "Creating empty database $OVSDB_SERVER_DB" true
         $ovsdb_tool create "$OVSDB_SERVER_DB" "$VSWITCHD_OVSDB_SCHEMA"
-
-        action "Creating initial table in $OVSDB_SERVER_DB" true
-        $ovsdb_tool transact "$OVSDB_SERVER_DB" '[{"op": "insert", "table": "Open_vSwitch", "row": {}}]'
     fi
 
     start_ovsdb_server
+    $vsctl --no-wait init
     if [ ! -e /var/run/vswitch.booted ]; then
         touch /var/run/vswitch.booted
         for bridge in $($vsctl list-br); do