提交 47b947a0 编写于 作者: P Peter Krempa

docs: schemas: Extract disk source host specification

'diskSourceNetwork' schema define was rather big and it would be hard to
simplify it. Split out the host portion subelement into a separate
define.
上级 8a99095c
...@@ -1485,30 +1485,7 @@ ...@@ -1485,30 +1485,7 @@
</optional> </optional>
</define> </define>
<define name="diskSourceNetwork"> <define name="diskSourceNetworkHost">
<attribute name="type">
<value>network</value>
</attribute>
<interleave>
<element name="source">
<attribute name="protocol">
<choice>
<value>nbd</value>
<value>rbd</value>
<value>sheepdog</value>
<value>gluster</value>
<value>iscsi</value>
<value>http</value>
<value>https</value>
<value>ftp</value>
<value>ftps</value>
<value>tftp</value>
</choice>
</attribute>
<optional>
<attribute name="name"/>
</optional>
<zeroOrMore>
<element name="host"> <element name="host">
<choice> <choice>
<group> <group>
...@@ -1542,6 +1519,33 @@ ...@@ -1542,6 +1519,33 @@
</group> </group>
</choice> </choice>
</element> </element>
</define>
<define name="diskSourceNetwork">
<attribute name="type">
<value>network</value>
</attribute>
<interleave>
<element name="source">
<attribute name="protocol">
<choice>
<value>nbd</value>
<value>rbd</value>
<value>sheepdog</value>
<value>gluster</value>
<value>iscsi</value>
<value>http</value>
<value>https</value>
<value>ftp</value>
<value>ftps</value>
<value>tftp</value>
</choice>
</attribute>
<optional>
<attribute name="name"/>
</optional>
<zeroOrMore>
<ref name="diskSourceNetworkHost"/>
</zeroOrMore> </zeroOrMore>
<optional> <optional>
<element name="snapshot"> <element name="snapshot">
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册