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

Aline Manera alinefm at linux.vnet.ibm.com
Fri Jan 24 02:58:23 UTC 2014


Reviewed-by: Aline Manera <alinefm at linux.vnet.ibm.com>

On 01/24/2014 12:24 AM, shaohef at linux.vnet.ibm.com wrote:
> 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 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": {




More information about the Kimchi-devel mailing list