Roy Golan has uploaded a new change for review.

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 traslated
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>

Change-Id: I9464f344605b99a21806170cf340e8fd8063dff6
---
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/interface/definition/src/main/resources/rsdl_metadata_v-3.1.yaml
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, 86 insertions(+), 3 deletions(-)


  git pull ssh://gerrit.ovirt.org:29418/ovirt-engine refs/changes/12/1112/1
--
To view, visit http://gerrit.ovirt.org/1112
To unsubscribe, visit http://gerrit.ovirt.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I9464f344605b99a21806170cf340e8fd8063dff6
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: Roy Golan <rgo...@redhat.com>
Gerrit-Reviewer: ol...@redhat.com
_______________________________________________
Engine-patches mailing list
Engine-patches@ovirt.org
http://lists.ovirt.org/mailman/listinfo/engine-patches

Reply via email to