Change in ovirt-engine[master]: restapi: Build correctly instance type NIC links

juan.hernandez at redhat.com juan.hernandez at redhat.com
Fri Jul 10 11:07:27 UTC 2015


Juan Hernandez has submitted this change and it was merged.

Change subject: restapi: Build correctly instance type NIC links
......................................................................


restapi: Build correctly instance type NIC links

The collection of NICs of instance types has been implemented reusing
the class that implements the collection of NICs of templates. As a side
effect the links to these NICs point to the templates collection instead
of to the instance types collection. This patch introduces a new class
to implement the collection of NICs of instance types, so that the
"setParents" method that is used as part of the calculation of the link
can be overriden to set a instance type as parent instead of a template.

Change-Id: Ib3ab0857517a1fefc88b835457aa4b4241a3bb5d
Bug-Url: https://bugzilla.redhat.com/1241574
Signed-off-by: Juan Hernandez <juan.hernandez at redhat.com>
---
M backend/manager/modules/restapi/interface/definition/src/main/resources/api.xsd
A backend/manager/modules/restapi/jaxrs/src/main/java/org/ovirt/engine/api/restapi/resource/BackendInstanceTypeNicsResource.java
M backend/manager/modules/restapi/jaxrs/src/main/java/org/ovirt/engine/api/restapi/resource/BackendInstanceTypeResource.java
3 files changed, 23 insertions(+), 1 deletion(-)

Approvals:
  Tomas Jelinek: Looks good to me, but someone else must approve
  Juan Hernandez: Verified; Looks good to me, approved
  Jenkins CI: Passed CI tests



-- 
To view, visit https://gerrit.ovirt.org/43412
To unsubscribe, visit https://gerrit.ovirt.org/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: Ib3ab0857517a1fefc88b835457aa4b4241a3bb5d
Gerrit-PatchSet: 2
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: Juan Hernandez <juan.hernandez at redhat.com>
Gerrit-Reviewer: Jenkins CI
Gerrit-Reviewer: Juan Hernandez <juan.hernandez at redhat.com>
Gerrit-Reviewer: Tomas Jelinek <tjelinek at redhat.com>
Gerrit-Reviewer: automation at ovirt.org



More information about the Engine-commits mailing list