{
    "namespace": "OS::Compute::VMwareFlavor",
    "display_name": "VMware Driver Options for Flavors",
    "description": "VMware Driver Options for Flavors may be used to customize and manage Nova Flavors. These are properties specific to VMWare compute drivers and will only have an effect if the VMWare compute driver is enabled in Nova. See: http://docs.openstack.org/admin-guide/compute-flavors.html",
    "visibility": "public",
    "protected": true,
    "resource_type_associations": [
        {
            "name": "OS::Nova::Flavor"
        }
    ],
    "properties": {
        "vmware:hw_version": {
            "title": "VMware Hardware Version",
            "description": "Specifies the hardware version VMware uses to create images. If the hardware version needs to be compatible with a cluster version, for backward compatibility or other circumstances, the vmware:hw_version key specifies a virtual machine hardware version. In the event that a cluster has mixed host version types, the key will enable the vCenter to place the cluster on the correct host.",
            "type": "string"
        },
        "vmware:storage_policy": {
            "title": "VMware Storage Policy",
            "description": "Specifies the storage policy to be applied for newly created instance. If not provided, the default storage policy specified in config file will be used. If Storage Policy Based Management (SPBM) is not enabled in config file, this value won't be used.",
            "type": "string"
        }
    }
}

{
    "namespace": "OS::Compute::VMwareFlavor",
    "display_name": "VMware Driver Options for Flavors",
    "description": "VMware Driver Options for Flavors may be used to customize and manage Nova Flavors. These are properties specific to VMWare compute drivers and will only have an effect if the VMWare compute driver is enabled in Nova. See: http://docs.openstack.org/admin-guide/compute-flavors.html",
    "visibility": "public",
    "protected": true,
    "resource_type_associations": [
        {
            "name": "OS::Nova::Flavor"
        }
    ],
    "properties": {
        "vmware:hw_version": {
            "title": "VMware Hardware Version",
            "description": "Specifies the hardware version VMware uses to create images. If the hardware version needs to be compatible with a cluster version, for backward compatibility or other circumstances, the vmware:hw_version key specifies a virtual machine hardware version. In the event that a cluster has mixed host version types, the key will enable the vCenter to place the cluster on the correct host.",
            "type": "string",
            "enum": [
                "vmx-13",
                "vmx-11",
                "vmx-10",
                "vmx-09",
                "vmx-08",
                "vmx-07",
                "vmx-04",
                "vmx-03"
            ]
        },
        "vmware:storage_policy": {
            "title": "VMware Storage Policy",
            "description": "Specifies the storage policy to be applied for newly created instance. If not provided, the default storage policy specified in config file will be used. If Storage Policy Based Management (SPBM) is not enabled in config file, this value won't be used.",
            "type": "string"
        }
    }
}

Add the list of hw_version supported by vmware driver.
Add the list of hw_version supported by vmware driver.

This patch add the list of hw_version supported by vmware driver.
The corresponding relationships are as following:
vmx-13: ESXi6.5
vmx-11: ESXi6.0
vmx-10: ESXi5.5
vmx-09: ESXi5.1
vmx-08: ESXi5.0
vmx-07: ESXi/ESX4.x
vmx-04: ESX3.x
vmx-03: ESX2.x

Change-Id: I1796b461855081f758b0585c9a0165c5138669d5
