nova/doc/api_samples/OS-SCH-HNT/scheduler-hints-post-req.json
Vishvananda Ishaya 8d43c3fba1 Makes scheduler hints and disk config xml correct
The scheduler hints and disk config extensions were not using
proper prefixes when deserializing xml. This patch modifes
them to deserialize properly. It leaves the old deserialization
in place as well so anyone using the broken implementation
will continue to work.

It also updates the api samples to use the new format. Note that
the proper fix required changing the alias for the scheduler hints
extension, since the alias is used for xml, so the samples had
to be moved.

Finally it fixes an issue with deserialization, allowing it to
support multiple hints with the same name.

Part of bug 1050997

Change-Id: I9969582d65d44de25388f07b6d2013fb7d093fb2
2012-09-18 12:46:52 -07:00

11 lines
264 B
JSON

{
"server": {
"name": "new-server-test",
"imageRef": "70a599e0-31e7-49b7-b260-868f441e862b",
"flavorRef": "1"
},
"os:scheduler_hints": {
"hypervisor": "xen",
"near": "2b7c42eb-7736-4a0f-afab-f23969a35ada"
}
}