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