Change in ovirt-engine[master]: restapi: adding custom properties to vm interface

alkaplan at redhat.com alkaplan at redhat.com
Thu Jun 6 12:37:25 UTC 2013


Alona Kaplan has submitted this change and it was merged.

Change subject: restapi: adding custom properties to vm interface
......................................................................


restapi: adding custom properties to vm interface

In Device custom properties feature we are adding custom properties to a
vnic.

It works in the same way custom properties of vm work.
When getting the vnic it will be displayed in the following way-
<custom_properties>
   <custom_property name="prop_name" value="prop_value"/>
</custom_properties>
When adding/updating a vnic the custom properties are parsed to a
string and set on VmNetworkInterface.

Change-Id: Ie7f5daae4b0b2117d0cadceb2bb292fabf445c3c
Signed-off-by: Alona Kaplan <alkaplan at redhat.com>
---
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/utils/FeaturesHelper.java
M backend/manager/modules/restapi/types/src/main/java/org/ovirt/engine/api/restapi/types/NicMapper.java
M backend/manager/modules/restapi/types/src/test/java/org/ovirt/engine/api/restapi/types/NicMapperTest.java
5 files changed, 29 insertions(+), 4 deletions(-)

Approvals:
  Michael Pasternak: Looks good to me, approved
  Alona Kaplan: Verified


--
To view, visit http://gerrit.ovirt.org/15101
To unsubscribe, visit http://gerrit.ovirt.org/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: Ie7f5daae4b0b2117d0cadceb2bb292fabf445c3c
Gerrit-PatchSet: 18
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: Alona Kaplan <alkaplan at redhat.com>
Gerrit-Reviewer: Alona Kaplan <alkaplan at redhat.com>
Gerrit-Reviewer: Martin Peřina <mperina at redhat.com>
Gerrit-Reviewer: Michael Pasternak <mpastern at redhat.com>
Gerrit-Reviewer: Moti Asayag <masayag at redhat.com>
Gerrit-Reviewer: oVirt Jenkins CI Server



More information about the Engine-commits mailing list