Juan Hernandez has uploaded a new change for review.
Change subject: restapi: Fix guest nic configuration tag name
......................................................................
restapi: Fix guest nic configuration tag name
The initialization of a guest NIC should be represented using the "nic"
and "nics" tags, as follows:
<nics>
<nic>
<name>eth0</name>
...
</nic>
</nics>
But due to a typo in the XML schema it is actually represented with
"nics" and "nics", as follows:
<nics>
<nics>
<name>eth0</name>
...
</nics>
</nics>
This patch fixes the type so that the representation will be correct.
Change-Id: Ic0f0e543cb2905f5270263462aeb87afe852b250
Signed-off-by: Juan Hernandez <[email protected]>
---
M
backend/manager/modules/restapi/interface/definition/src/main/resources/api.xsd
1 file changed, 9 insertions(+), 3 deletions(-)
git pull ssh://gerrit.ovirt.org:29418/ovirt-engine refs/changes/64/24164/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 701d627..1a25010 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
@@ -3161,9 +3161,15 @@
</xs:complexType>
<xs:complexType name="GuestNicsConfiguration">
- <xs:sequence>
- <xs:element name="nics" type="GuestNicConfiguration" minOccurs="0"
maxOccurs="unbounded" />
- </xs:sequence>
+ <xs:sequence>
+ <xs:element name="nic" type="GuestNicConfiguration" minOccurs="0"
maxOccurs="unbounded">
+ <xs:annotation>
+ <xs:appinfo>
+ <jaxb:property name="Nics"/>
+ </xs:appinfo>
+ </xs:annotation>
+ </xs:element>
+ </xs:sequence>
</xs:complexType>
<xs:element name="host_nic_states" type="HostNICStates"/>
--
To view, visit http://gerrit.ovirt.org/24164
To unsubscribe, visit http://gerrit.ovirt.org/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: Ic0f0e543cb2905f5270263462aeb87afe852b250
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: Juan Hernandez <[email protected]>
_______________________________________________
Engine-patches mailing list
[email protected]
http://lists.ovirt.org/mailman/listinfo/engine-patches