提交 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 @@
</element>
</define>
<define name="diskSourceNetworkProtocolGeneric">
<define name="diskSourceNetworkProtocolNBD">
<element name="source">
<interleave>
<attribute name="protocol">
<choice>
<value>nbd</value>
<value>gluster</value>
</choice>
</attribute>
<optional>
<attribute name="name"/>
</optional>
<zeroOrMore>
<ref name="diskSourceNetworkHost"/>
</zeroOrMore>
</interleave>
<attribute name="protocol">
<choice>
<value>nbd</value>
</choice>
</attribute>
<optional>
<attribute name="name"/>
</optional>
<ref name="diskSourceNetworkHost"/>
</element>
</define>
<define name="diskSourceNetworkProtocolGluster">
<element name="source">
<attribute name="protocol">
<choice>
<value>gluster</value>
</choice>
</attribute>
<attribute name="name"/>
<oneOrMore>
<ref name="diskSourceNetworkHost"/>
</oneOrMore>
</element>
</define>
......@@ -1609,7 +1618,8 @@
<value>network</value>
</attribute>
<choice>
<ref name="diskSourceNetworkProtocolGeneric"/>
<ref name="diskSourceNetworkProtocolNBD"/>
<ref name="diskSourceNetworkProtocolGluster"/>
<ref name="diskSourceNetworkProtocolRBD"/>
<ref name="diskSourceNetworkProtocolHTTP"/>
<ref name="diskSourceNetworkProtocolSimple"/>
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册