提交 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,6 +1485,42 @@ ...@@ -1485,6 +1485,42 @@
</optional> </optional>
</define> </define>
<define name="diskSourceNetworkHost">
<element name="host">
<choice>
<group>
<optional>
<attribute name="transport">
<choice>
<value>tcp</value>
<value>rdma</value>
</choice>
</attribute>
</optional>
<attribute name="name">
<choice>
<ref name="dnsName"/>
<ref name="ipAddr"/>
</choice>
</attribute>
<optional>
<attribute name="port">
<ref name="unsignedInt"/>
</attribute>
</optional>
</group>
<group>
<attribute name="transport">
<value>unix</value>
</attribute>
<attribute name="socket">
<ref name="absFilePath"/>
</attribute>
</group>
</choice>
</element>
</define>
<define name="diskSourceNetwork"> <define name="diskSourceNetwork">
<attribute name="type"> <attribute name="type">
<value>network</value> <value>network</value>
...@@ -1509,39 +1545,7 @@ ...@@ -1509,39 +1545,7 @@
<attribute name="name"/> <attribute name="name"/>
</optional> </optional>
<zeroOrMore> <zeroOrMore>
<element name="host"> <ref name="diskSourceNetworkHost"/>
<choice>
<group>
<optional>
<attribute name="transport">
<choice>
<value>tcp</value>
<value>rdma</value>
</choice>
</attribute>
</optional>
<attribute name="name">
<choice>
<ref name="dnsName"/>
<ref name="ipAddr"/>
</choice>
</attribute>
<optional>
<attribute name="port">
<ref name="unsignedInt"/>
</attribute>
</optional>
</group>
<group>
<attribute name="transport">
<value>unix</value>
</attribute>
<attribute name="socket">
<ref name="absFilePath"/>
</attribute>
</group>
</choice>
</element>
</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.
先完成此消息的编辑!
想要评论请 注册