glance/etc/metadefs/compute-cpu-mode.json
prithiv d8a108e7b3 Add CPU Mode Metadata Def
Creates Metadata def for CPU Mode. The allowed
modes are "none", "host-passthrough", "custom"
and "host-model".

Change-Id: Id7a01546334ddea952708143c5dfc7861353f2fc
Closes-Bug: 1636243
2022-05-18 18:04:59 +00:00

30 lines
737 B
JSON

{
"namespace": "OS::Compute::CPUMode",
"display_name": "CPU Mode",
"description": "This provides the preferred CPU Model to be used when booting up a guest VM.",
"visibility": "public",
"resource_type_associations": [
{
"name": "OS::Glance::Image",
"prefix": "hw_"
},
{
"name": "OS::Nova::Flavor",
"prefix": "hw:"
}
],
"properties": {
"cpu_mode": {
"title": "CPU Mode",
"description": "Type of CPU Mode.",
"type": "string",
"enum": [
"none",
"host-model",
"host-passthrough",
"custom"
]
}
}
}