docs: schemas: Split out simple network protocols

ftp/tftp/sheepdog have a mandatory filename and support only one host.
There are no additional options for them.
This commit is contained in:
Peter Krempa 2017-04-21 12:19:46 +02:00
parent bde5c2f532
commit 3240b8324c

View File

@ -1569,18 +1569,29 @@
</element> </element>
</define> </define>
<define name="diskSourceNetworkProtocolSimple">
<element name="source">
<attribute name="protocol">
<choice>
<value>sheepdog</value>
<value>iscsi</value>
<value>ftp</value>
<value>ftps</value>
<value>tftp</value>
</choice>
</attribute>
<attribute name="name"/>
<ref name="diskSourceNetworkHost"/>
</element>
</define>
<define name="diskSourceNetworkProtocolGeneric"> <define name="diskSourceNetworkProtocolGeneric">
<element name="source"> <element name="source">
<interleave> <interleave>
<attribute name="protocol"> <attribute name="protocol">
<choice> <choice>
<value>nbd</value> <value>nbd</value>
<value>sheepdog</value>
<value>gluster</value> <value>gluster</value>
<value>iscsi</value>
<value>ftp</value>
<value>ftps</value>
<value>tftp</value>
</choice> </choice>
</attribute> </attribute>
<optional> <optional>
@ -1601,6 +1612,7 @@
<ref name="diskSourceNetworkProtocolGeneric"/> <ref name="diskSourceNetworkProtocolGeneric"/>
<ref name="diskSourceNetworkProtocolRBD"/> <ref name="diskSourceNetworkProtocolRBD"/>
<ref name="diskSourceNetworkProtocolHTTP"/> <ref name="diskSourceNetworkProtocolHTTP"/>
<ref name="diskSourceNetworkProtocolSimple"/>
</choice> </choice>
</define> </define>