Successfully create an iou device from the GUI via HTTP

This commit is contained in:
Julien Duponchelle committed 2015-02-12 22:29:33 +01:00
1 parent 4689024b50
commit 05df7001a3
3 files changed
+19 -12

No files matched your search

+16 -8
View File
@@ -52,7 +52,7 @@ IOU_CREATE_SCHEMA = {
},
},
"additionalProperties": False,
"required": ["name", "path", "iourc_path"]
"required": ["name", "path"]
}
IOU_UPDATE_SCHEMA = {
@@ -73,12 +73,24 @@ IOU_UPDATE_SCHEMA = {
},
"path": {
"description": "Path of iou binary",
"type": "string"
"type": ["string", "null"]
},
"iourc_path": {
"description": "Path of iourc",
"type": "string"
"type": ["string", "null"]
},
"initial_config": {
"description": "Initial configuration path",
"type": ["string", "null"]
},
"serial_adapters": {
"description": "How many serial adapters are connected to the IOU",
"type": ["integer", "null"]
},
"ethernet_adapters": {
"description": "How many ethernet adapters are connected to the IOU",
"type": ["integer", "null"]
}
},
"additionalProperties": False,
}
@@ -117,11 +129,7 @@ IOU_OBJECT_SCHEMA = {
"description": "Path of iou binary",
"type": "string"
},
"iourc_path": {
"description": "Path of iourc",
"type": "string"
},
},
"additionalProperties": False,
"required": ["name", "vm_id", "console", "project_id", "path", "iourc_path"]
"required": ["name", "vm_id", "console", "project_id", "path"]
}