[Kimchi-devel] [PATCH V2 3/4] support create/delete VMIface: update API.json

shaohef at linux.vnet.ibm.com shaohef at linux.vnet.ibm.com
Wed Jan 22 17:09:33 UTC 2014


From: ShaoHe Feng <shaohef at linux.vnet.ibm.com>

add vmifaces_create parameters verification in API.json

Signed-off-by: ShaoHe Feng <shaohef at 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..925a1e8 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




More information about the Kimchi-devel mailing list