Moti Asayag has uploaded a new change for review. Change subject: restapi: Add support for Network Attachements ......................................................................
restapi: Add support for Network Attachements A network attachment represents the network as it designed to be configured on the host and allow the user to use it for managing network on hosts. The feature page which contains the design of the network attachments is located here: http://www.ovirt.org/Features/HostNetworkingApi Change-Id: Id6ac91eea1000f7fdf6105777343a1ac1c77368d Signed-off-by: Moti Asayag <[email protected]> --- M backend/manager/modules/restapi/interface/definition/src/main/resources/api.xsd 1 file changed, 81 insertions(+), 0 deletions(-) git pull ssh://gerrit.ovirt.org:29418/ovirt-engine refs/changes/75/32775/1 diff --git a/backend/manager/modules/restapi/interface/definition/src/main/resources/api.xsd b/backend/manager/modules/restapi/interface/definition/src/main/resources/api.xsd index 88b1a18..b488579 100644 --- a/backend/manager/modules/restapi/interface/definition/src/main/resources/api.xsd +++ b/backend/manager/modules/restapi/interface/definition/src/main/resources/api.xsd @@ -3722,6 +3722,87 @@ </xs:sequence> </xs:complexType> + <!-- Host Network Attachments --> + + <xs:element name="network_attachment" type="NetworkAttachment"/> + + <xs:complexType name="NetworkAttachment"> + <xs:complexContent> + <xs:extension base="BaseResource"> + <xs:sequence> + <xs:element ref="network" minOccurs="0" maxOccurs="1"/> + <xs:element ref="host_nic" minOccurs="0" maxOccurs="1"/> + <xs:element ref="ip_configuration" minOccurs="0" maxOccurs="1"/> + <xs:element ref="properties" minOccurs="0" maxOccurs="1"/> + <xs:element name="override_configuration" type="xs:boolean" minOccurs="0" maxOccurs="1"/> + </xs:sequence> + </xs:extension> + </xs:complexContent> + </xs:complexType> + + <xs:element name="network_attachments" type="NetworkAttachments"/> + + <xs:complexType name="NetworkAttachments"> + <xs:complexContent> + <xs:extension base="BaseResources"> + <xs:sequence> + <xs:element ref="network_attachment" minOccurs="0" maxOccurs="unbounded"> + <xs:annotation> + <xs:appinfo> + <jaxb:property name="NetworkAttachments"/> + </xs:appinfo> + </xs:annotation> + </xs:element> + </xs:sequence> + </xs:extension> + </xs:complexContent> + </xs:complexType> + + <xs:element name="ip_configuration" type="IpConfiguration"/> + + <xs:complexType name="IpConfiguration"> + <xs:complexContent> + <xs:extension base="BaseResources"> + <xs:sequence> + <xs:annotation> + <xs:appinfo> + <jaxb:property name="IpConfiguration"/> + </xs:appinfo> + </xs:annotation> + <xs:element name="boot_protocol" type="xs:string" minOccurs="0" maxOccurs="1"/> + <xs:element ref="ipv4s" minOccurs="0" maxOccurs="1"/> + </xs:sequence> + </xs:extension> + </xs:complexContent> + </xs:complexType> + + <xs:element name="ipv4s" type="IPv4s"/> + + <xs:complexType name="IPv4s"> + <xs:complexContent> + <xs:extension base="BaseResources"> + <xs:sequence> + <xs:annotation> + <xs:appinfo> + <jaxb:property name="IPv4s"/> + </xs:appinfo> + </xs:annotation> + <xs:element name="boot_protocol" type="xs:string" minOccurs="0" maxOccurs="1"/> + <xs:element ref="ipv4" minOccurs="0" maxOccurs="unbounded"/> + </xs:sequence> + </xs:extension> + </xs:complexContent> + </xs:complexType> + + <xs:element name="ipv4" type="IPv4"/> + + <xs:complexType name="IPv4"> + <xs:element name="primary" type="xs:boolean" minOccurs="0" maxOccurs="1"/> + <xs:attribute name="address" type="xs:string"/> + <xs:attribute name="netmask" type="xs:string"/> + <xs:attribute name="gateway" type="xs:string"/> + </xs:complexType> + <!-- Host Storage --> <xs:element name="host_storage" type="HostStorage"/> -- To view, visit http://gerrit.ovirt.org/32775 To unsubscribe, visit http://gerrit.ovirt.org/settings Gerrit-MessageType: newchange Gerrit-Change-Id: Id6ac91eea1000f7fdf6105777343a1ac1c77368d Gerrit-PatchSet: 1 Gerrit-Project: ovirt-engine Gerrit-Branch: master Gerrit-Owner: Moti Asayag <[email protected]> _______________________________________________ Engine-patches mailing list [email protected] http://lists.ovirt.org/mailman/listinfo/engine-patches
