[Kimchi-devel] [PATCH][Kimchi 4/6] Update REST API
Ramon Medeiros
ramonn at linux.vnet.ibm.com
Wed Jul 13 16:30:36 UTC 2016
Signed-off-by: Ramon Medeiros <ramonn at linux.vnet.ibm.com>
---
API.json | 23 +++++++++++++++++++++++
i18n.py | 1 +
2 files changed, 24 insertions(+)
diff --git a/API.json b/API.json
index 8d4f725..1772abb 100644
--- a/API.json
+++ b/API.json
@@ -294,6 +294,29 @@
"minLength": 1,
"error": "KCHVM0011E"
},
+ "bootorder": {
+ "description": "Boot order",
+ "type": "array",
+ "error": "KCHVM0052E",
+ "items": [
+ {"type": "string",
+ "enum": ["hd", "cdrom", "network", "fd"]
+ },
+ {"type": "string",
+ "enum": ["hd", "cdrom", "network", "fd"]
+ },
+ {"type": "string",
+ "enum": ["hd", "cdrom", "network", "fd"]
+ },
+ {"type": "string",
+ "enum": ["hd", "cdrom", "network", "fd"]
+ }
+ ],
+ "minItems": 1,
+ "maxItems": 4,
+ "additionalItems": false,
+ "uniqueItems": true
+ },
"users": {
"description": "Array of users who have permission to the VM",
"type": "array",
diff --git a/i18n.py b/i18n.py
index 08a3ac8..e8fdf88 100644
--- a/i18n.py
+++ b/i18n.py
@@ -104,6 +104,7 @@ messages = {
"KCHVM0049E": _("Cannot power off %(name)s. Virtual machine is shut off."),
"KCHVM0050E": _("Cannot shutdown %(name)s. Virtual machine is shut off."),
"KCHVM0051E": _("Cannot reset %(name)s. Virtual machine is already shut off."),
+ "KCHVM0052E": _("Boot order must be a list. Devices accepted: hd, cdrom, fd or network."),
"KCHVM0055E": _("Migrate to localhost %(host)s is not allowed."),
"KCHVM0056E": _("To migrate a virtual machine to the remote host %(host)s the user %(user)s must have password-less login to the remote host."),
--
2.5.5
More information about the Kimchi-devel
mailing list