mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-22 13:45:38 +00:00
schema: nodedev: Allow interleaving of sub-elements of 'device'
Note that the schema doesn't allow us to represent the two branches of optional <devnode type='dev'> and zero or more <devnode type='link'> definitions, so I've merged them under the <zeroOrMore> case. Signed-off-by: Peter Krempa <pkrempa@redhat.com> Reviewed-by: Ján Tomko <jtomko@redhat.com>
This commit is contained in:
parent
85108bad37
commit
04bda51cb2
@ -9,24 +9,20 @@
|
||||
|
||||
<define name="device">
|
||||
<element name="device">
|
||||
<interleave>
|
||||
<!-- The name of the network, used to refer to it through the API
|
||||
and in virsh -->
|
||||
<element name="name"><text/></element>
|
||||
<optional>
|
||||
<element name="path"><text/></element>
|
||||
</optional>
|
||||
<optional>
|
||||
<element name="devnode">
|
||||
<attribute name="type">
|
||||
<value>dev</value>
|
||||
</attribute>
|
||||
<text/>
|
||||
</element>
|
||||
</optional>
|
||||
<zeroOrMore>
|
||||
<element name="devnode">
|
||||
<attribute name="type">
|
||||
<choice>
|
||||
<value>dev</value>
|
||||
<value>link</value>
|
||||
</choice>
|
||||
</attribute>
|
||||
<text/>
|
||||
</element>
|
||||
@ -44,6 +40,7 @@
|
||||
<zeroOrMore>
|
||||
<ref name="capability"/>
|
||||
</zeroOrMore>
|
||||
</interleave>
|
||||
</element>
|
||||
</define>
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user