8d43c3fba1
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
13 lines
462 B
XML
13 lines
462 B
XML
<server
|
|
xmlns="http://docs.openstack.org/compute/api/v1.1"
|
|
xmlns:OS-SCH-HNT="http://docs.openstack.org/compute/ext/scheduler-hints/api/v2"
|
|
name='new-server-test'
|
|
imageRef='70a599e0-31e7-49b7-b260-868f441e862b'
|
|
flavorRef='1'
|
|
>
|
|
<OS-SCH-HNT:scheduler_hints>
|
|
<hypervisor>xen</hypervisor>
|
|
<near>eb999657-dd6b-464e-8713-95c532ac3b18</near>
|
|
</OS-SCH-HNT:scheduler_hints>
|
|
</server>
|