
From: ShaoHe Feng <shaohef@linux.vnet.ibm.com> add vmifaces_create parameters verification in API.json Signed-off-by: ShaoHe Feng <shaohef@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 46818d4..590fe88 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": { -- 1.8.4.2