This should take care of many of the OVSDB-related upgrade and downgrade
problems reported by Nicira internal testers.
Bug #2388.
action "Creating empty database $OVSDB_SERVER_DB" true
$ovsdb_tool -vANY:console:emer create "$OVSDB_SERVER_DB" "$VSWITCHD_OVSDB_SCHEMA"
+ else
+ # Upgrade or downgrade schema and compact database.
+ $ovsdb_tool -vANY:console:emer convert "$OVSDB_SERVER_DB" "$VSWITCHD_OVSDB_SCHEMA"
fi
start_ovsdb_server