提交 d2e6bef3 编写于 作者: P Peter Krempa

docs: schemas: Split up definitions for NBD and gluster

NBD does not mandate a "filename". Gluster can have more servers. Split
them so that we can tighten the schema.
上级 3240b832
...@@ -1585,22 +1585,31 @@ ...@@ -1585,22 +1585,31 @@
</element> </element>
</define> </define>
<define name="diskSourceNetworkProtocolGeneric"> <define name="diskSourceNetworkProtocolNBD">
<element name="source"> <element name="source">
<interleave> <attribute name="protocol">
<attribute name="protocol"> <choice>
<choice> <value>nbd</value>
<value>nbd</value> </choice>
<value>gluster</value> </attribute>
</choice> <optional>
</attribute> <attribute name="name"/>
<optional> </optional>
<attribute name="name"/> <ref name="diskSourceNetworkHost"/>
</optional> </element>
<zeroOrMore> </define>
<ref name="diskSourceNetworkHost"/>
</zeroOrMore> <define name="diskSourceNetworkProtocolGluster">
</interleave> <element name="source">
<attribute name="protocol">
<choice>
<value>gluster</value>
</choice>
</attribute>
<attribute name="name"/>
<oneOrMore>
<ref name="diskSourceNetworkHost"/>
</oneOrMore>
</element> </element>
</define> </define>
...@@ -1609,7 +1618,8 @@ ...@@ -1609,7 +1618,8 @@
<value>network</value> <value>network</value>
</attribute> </attribute>
<choice> <choice>
<ref name="diskSourceNetworkProtocolGeneric"/> <ref name="diskSourceNetworkProtocolNBD"/>
<ref name="diskSourceNetworkProtocolGluster"/>
<ref name="diskSourceNetworkProtocolRBD"/> <ref name="diskSourceNetworkProtocolRBD"/>
<ref name="diskSourceNetworkProtocolHTTP"/> <ref name="diskSourceNetworkProtocolHTTP"/>
<ref name="diskSourceNetworkProtocolSimple"/> <ref name="diskSourceNetworkProtocolSimple"/>
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册