Ori Liel has submitted this change and it was merged. Change subject: restapi : Adding support for multiplre storage domains at rest part for add vm scenarious ......................................................................
restapi : Adding support for multiplre storage domains at rest part for add vm scenarious The following patch will add support for multiple storage feature at rest client. The patch also contains some clean ups, there are no need to retrieve storage domain of template at rest code all logic contains at engine code REST-API will have two options to choose the storage-domains that the disks will be created on: 1) Add all disks inline, with storage-domain ID set in each disk 2) Don't add any disks inline, and set the storage-domain id only on the VM object. In this case all disks will be added to the storage domain that was passed in the VM. 3) Don't pass disks inline, and don't set storage-domain id inside the VM. In this case the disks will be created on the storage-domain where the template disks exist. Change-Id: I03de6426b8567f15d45eca50d2a12dd1c8ce0607 --- M backend/manager/modules/restapi/jaxrs/src/main/java/org/ovirt/engine/api/restapi/resource/BackendVmsResource.java M backend/manager/modules/restapi/jaxrs/src/test/java/org/ovirt/engine/api/restapi/resource/BackendVmsResourceTest.java M backend/manager/modules/restapi/types/src/main/java/org/ovirt/engine/api/restapi/types/DiskMapper.java 3 files changed, 30 insertions(+), 65 deletions(-) Approvals: Ori Liel: Verified; Looks good to me, approved -- To view, visit http://gerrit.ovirt.org/3553 To unsubscribe, visit http://gerrit.ovirt.org/settings Gerrit-MessageType: merged Gerrit-Change-Id: I03de6426b8567f15d45eca50d2a12dd1c8ce0607 Gerrit-PatchSet: 3 Gerrit-Project: ovirt-engine Gerrit-Branch: master Gerrit-Owner: Michael Kublin <mkub...@redhat.com> Gerrit-Reviewer: Michael Kublin <mkub...@redhat.com> Gerrit-Reviewer: Ori Liel <ol...@redhat.com> Gerrit-Reviewer: Yair Zaslavsky <yzasl...@redhat.com> _______________________________________________ Engine-patches mailing list Engine-patches@ovirt.org http://lists.ovirt.org/mailman/listinfo/engine-patches