Change in ovirt-engine[ovirt-engine-4.0]: restapi: Don't populate NetworkAttachment.network.name

piotr.kliczewski at gmail.com piotr.kliczewski at gmail.com
Fri Oct 7 07:50:45 UTC 2016


Piotr Kliczewski has submitted this change and it was merged.

Change subject: restapi: Don't populate NetworkAttachment.network.name
......................................................................


restapi: Don't populate NetworkAttachment.network.name

Currently when the list of network attachments of a host is retrieved we
return a link to the network that includes also the network name:

  GET /ovirt-engine/api/hosts/123/networkattachments

  <network_attachments>
    <network_attachment id="..." href="...">
      ...
      <network id="..." href="...>
        <name>mynetwork</name>  <-- This should't appear
      </network>
    </network_attachment>
    ...
  </network_attachments>

This is not correct, as output links should not have any content other
than the "id" and "href" attributes. This patch fixes that issue.

Change-Id: Ie0eb5ba57a03f0e89c844d22969015ddf67a4134
Bug-Url: https://bugzilla.redhat.com/1382341
Signed-off-by: Juan Hernandez <juan.hernandez at redhat.com>
(cherry picked from commit 27209c687d3f30228ea33c20a80b39bb46d6d7c3)
---
M backend/manager/modules/restapi/types/src/main/java/org/ovirt/engine/api/restapi/types/NetworkAttachmentMapper.java
1 file changed, 0 insertions(+), 9 deletions(-)

Approvals:
  Juan Hernandez: Verified; Looks good to me, approved
  Jenkins CI: Passed CI tests



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

Gerrit-MessageType: merged
Gerrit-Change-Id: Ie0eb5ba57a03f0e89c844d22969015ddf67a4134
Gerrit-PatchSet: 2
Gerrit-Project: ovirt-engine
Gerrit-Branch: ovirt-engine-4.0
Gerrit-Owner: Juan Hernandez <juan.hernandez at redhat.com>
Gerrit-Reviewer: Jenkins CI
Gerrit-Reviewer: Juan Hernandez <juan.hernandez at redhat.com>
Gerrit-Reviewer: Piotr Kliczewski <piotr.kliczewski at gmail.com>
Gerrit-Reviewer: gerrit-hooks <automation at ovirt.org>



More information about the Engine-commits mailing list