Reviewed-by: Aline Manera <alinefm(a)linux.vnet.ibm.com>
On 01/24/2014 12:24 AM, shaohef(a)linux.vnet.ibm.com wrote:
From: ShaoHe Feng <shaohef(a)linux.vnet.ibm.com>
add vmifaces_create parameters verification in API.json
Signed-off-by: ShaoHe Feng <shaohef(a)linux.vnet.ibm.com>
---
src/kimchi/API.json | 21 +++++++++++++++++++++
1 file changed, 21 insertions(+)
diff --git a/src/kimchi/API.json b/src/kimchi/API.json
index e942824..08c77c5 100644
--- a/src/kimchi/API.json
+++ b/src/kimchi/API.json
@@ -156,6 +156,27 @@
}
}
},
+ "vmifaces_create": {
+ "type": "object",
+ "properties": {
+ "type": {
+ "description": "The type of VM network interface that
libvirt supports",
+ "type": "string",
+ "pattern": "^network$",
+ "required": true
+ },
+ "network": {
+ "description": "the name of one available
network",
+ "minLength": 1,
+ "type": "string"
+ },
+ "model": {
+ "description": "model of emulated network interface
card",
+ "type": "string",
+ "pattern":
"^ne2k_pci|i82551|i82557b|i82559er|rtl8139|e1000|pcnet|virtio$"
+ }
+ }
+ },
"templates_create": {
"type": "object",
"properties": {