Juan Hernandez has submitted this change and it was merged.
Change subject: restapi: Enable configuration of Serial Number Policy
......................................................................
restapi: Enable configuration of Serial Number Policy
Added configuration of serial number to Vm, Template and Cluster backend
resources. Now it is possible to specify the serial number as
<serial_number>
<policy>host|vm|custom</policy>
<value>My Custom Serial Number #123456</value>
</serial_number>
Where the value is only to be used with the "custom" policy.
To set the policy to 'null' (meaning default from higher entity should
be used) use:
<serial_number>
<policy />
</serial_number>
Bug-Url:
https://bugzilla.redhat.com/show_bug.cgi?id=918138
Change-Id: I0c678c70a647e9df8954374424e9a3ff0938b45a
Signed-off-by: Martin Betak <mbetak(a)redhat.com>
---
A
backend/manager/modules/restapi/interface/definition/src/main/java/org/ovirt/engine/api/model/SerialNumberPolicy.java
M backend/manager/modules/restapi/interface/definition/src/main/resources/api.xsd
M
backend/manager/modules/restapi/interface/definition/src/main/resources/rsdl_metadata.yaml
M
backend/manager/modules/restapi/jaxrs/src/main/java/org/ovirt/engine/api/restapi/resource/BackendCapabilitiesResource.java
M
backend/manager/modules/restapi/types/src/main/java/org/ovirt/engine/api/restapi/types/ClusterMapper.java
A
backend/manager/modules/restapi/types/src/main/java/org/ovirt/engine/api/restapi/types/SerialNumberMapper.java
M
backend/manager/modules/restapi/types/src/main/java/org/ovirt/engine/api/restapi/types/TemplateMapper.java
M
backend/manager/modules/restapi/types/src/main/java/org/ovirt/engine/api/restapi/types/VmMapper.java
M
backend/manager/modules/restapi/types/src/test/java/org/ovirt/engine/api/restapi/types/ClusterMapperTest.java
M
backend/manager/modules/restapi/types/src/test/java/org/ovirt/engine/api/restapi/types/TemplateMapperTest.java
M
backend/manager/modules/restapi/types/src/test/java/org/ovirt/engine/api/restapi/types/VmMapperTest.java
11 files changed, 187 insertions(+), 10 deletions(-)
Approvals:
Juan Hernandez: Looks good to me, approved
Martin Betak: Verified
--
To view, visit
http://gerrit.ovirt.org/25100
To unsubscribe, visit
http://gerrit.ovirt.org/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: I0c678c70a647e9df8954374424e9a3ff0938b45a
Gerrit-PatchSet: 8
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: Martin Betak <mbetak(a)redhat.com>
Gerrit-Reviewer: Juan Hernandez <juan.hernandez(a)redhat.com>
Gerrit-Reviewer: Martin Betak <mbetak(a)redhat.com>
Gerrit-Reviewer: automation(a)ovirt.org
Gerrit-Reviewer: oVirt Jenkins CI Server