1
0
mirror of https://github.com/GNS3/gns3-server synced 2024-12-01 04:38:12 +00:00

Fixes old projects loading issue with Qemu.

This commit is contained in:
Jeremy 2015-03-02 14:37:48 -07:00
parent 466c6142af
commit 7ace6fc7e9

View File

@ -22,9 +22,14 @@ QEMU_CREATE_SCHEMA = {
"type": "object",
"properties": {
"vm_id": {
"description": "QEMU VM UUID",
"type": ["string", "null"],
"minLength": 1,
"description": "QEMU VM identifier",
"oneOf": [
{"type": "string",
"minLength": 36,
"maxLength": 36,
"pattern": "^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$"},
{"type": "integer"} # for legacy projects
]
},
"name": {
"description": "QEMU VM instance name",