mirror of
https://github.com/libvirt/libvirt.git
synced 2025-02-25 18:55:26 -06:00
docs: schemas: Extract HTTP disk source specification
Make the schema more strict for HTTP disks requiring a name and mandating exactly one source host. ftp/tftp entries were not moved here, since http transport also will support cookies and other options, which will be added later.
This commit is contained in:
parent
9030fab20c
commit
bde5c2f532
@ -1556,6 +1556,19 @@
|
|||||||
</element>
|
</element>
|
||||||
</define>
|
</define>
|
||||||
|
|
||||||
|
<define name="diskSourceNetworkProtocolHTTP">
|
||||||
|
<element name="source">
|
||||||
|
<attribute name="protocol">
|
||||||
|
<choice>
|
||||||
|
<value>http</value>
|
||||||
|
<value>https</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>
|
||||||
@ -1565,8 +1578,6 @@
|
|||||||
<value>sheepdog</value>
|
<value>sheepdog</value>
|
||||||
<value>gluster</value>
|
<value>gluster</value>
|
||||||
<value>iscsi</value>
|
<value>iscsi</value>
|
||||||
<value>http</value>
|
|
||||||
<value>https</value>
|
|
||||||
<value>ftp</value>
|
<value>ftp</value>
|
||||||
<value>ftps</value>
|
<value>ftps</value>
|
||||||
<value>tftp</value>
|
<value>tftp</value>
|
||||||
@ -1589,6 +1600,7 @@
|
|||||||
<choice>
|
<choice>
|
||||||
<ref name="diskSourceNetworkProtocolGeneric"/>
|
<ref name="diskSourceNetworkProtocolGeneric"/>
|
||||||
<ref name="diskSourceNetworkProtocolRBD"/>
|
<ref name="diskSourceNetworkProtocolRBD"/>
|
||||||
|
<ref name="diskSourceNetworkProtocolHTTP"/>
|
||||||
</choice>
|
</choice>
|
||||||
</define>
|
</define>
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user