Roy Golan has submitted this change and it was merged.

Change subject: rest-api: exposing setupnetworks action under 
/api/hosts/{id}/nics
......................................................................


rest-api: exposing setupnetworks action under /api/hosts/{id}/nics

Exposing the "setupnetworks" action under nics collections according
to the new api.

The action url is:

api/hosts/{id}/nics/setupnetworks

Basically the the host_nics collections it translated
into VdsNetworkinterface list.

The following xml describes a bond over 2 interfaces on network ovirtmgmt:

<action>
<host_nics>
<host_nic>
<name>bond0</name>
<network>
<name>engine</name>
</network>
<bonding>
<options>
<option name="mode" value="4" type="Dynamic link aggregation (802.3ad)"/>
</options>
<slaves>
<host_nic>
<name>eth0</name>
</host_nic>
<host_nic>
<name>eth1</name>
</host_nic>
</slaves>
</bonding>
<boot_protocol>dhcp</boot_protocol>
</host_nic>
</host_nics>

<check_connectivity>true</check_connectivity>
<connectivity_timeout>30</connectivity_timeout>

</action>

note - this patchset does not include SDK and unit tests

Change-Id: I454c9612dc7f641accb8f8780981918d5e3d760c
---
M 
backend/manager/modules/restapi/interface/definition/src/main/java/org/ovirt/engine/api/model/BootProtocol.java
M 
backend/manager/modules/restapi/interface/definition/src/main/java/org/ovirt/engine/api/resource/HostNicsResource.java
M 
backend/manager/modules/restapi/interface/definition/src/main/resources/api.xsd
M 
backend/manager/modules/restapi/jaxrs/src/main/java/org/ovirt/engine/api/restapi/resource/BackendHostNicsResource.java
M 
backend/manager/modules/restapi/types/src/main/java/org/ovirt/engine/api/restapi/types/HostNicMapper.java
5 files changed, 82 insertions(+), 4 deletions(-)

Approvals:
  Roy Golan: Verified; Looks good to me, approved


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

Gerrit-MessageType: merged
Gerrit-Change-Id: I454c9612dc7f641accb8f8780981918d5e3d760c
Gerrit-PatchSet: 4
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: Roy Golan <rgo...@redhat.com>
Gerrit-Reviewer: Michael Pasternak <mpast...@redhat.com>
Gerrit-Reviewer: Roy Golan <rgo...@redhat.com>
_______________________________________________
Engine-patches mailing list
Engine-patches@ovirt.org
http://lists.ovirt.org/mailman/listinfo/engine-patches

Reply via email to