snapshot: schema: Split out snapshot disk driver definition

Extract the definition to a new type to allow avoiding of duplication.
This commit is contained in:
Peter Krempa 2013-12-06 15:10:52 +01:00
parent c6803a7312
commit 32487c86c6

View File

@ -124,16 +124,7 @@
</attribute> </attribute>
</optional> </optional>
<interleave> <interleave>
<optional> <ref name='disksnapshotdriver'/>
<element name='driver'>
<optional>
<attribute name='type'>
<ref name='storageFormat'/>
</attribute>
</optional>
<empty/>
</element>
</optional>
<optional> <optional>
<element name='source'> <element name='source'>
<optional> <optional>
@ -150,4 +141,17 @@
</element> </element>
</define> </define>
<define name='disksnapshotdriver'>
<optional>
<element name='driver'>
<optional>
<attribute name='type'>
<ref name='storageFormat'/>
</attribute>
</optional>
<empty/>
</element>
</optional>
</define>
</grammar> </grammar>