mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-08-27 11:01:19 +00:00
Introduce an internal schema for a single device and use it to test the various files in tests/qemuhotplugtestdevices and tests/qemublocktestdata directories. This also requires us to implement schema for (some) privateData bits for the disk source. Signed-off-by: Peter Krempa <pkrempa@redhat.com> Reviewed-by: Ján Tomko <jtomko@redhat.com>
69 lines
1.7 KiB
XML
69 lines
1.7 KiB
XML
<?xml version="1.0"?>
|
|
<grammar xmlns="http://relaxng.org/ns/structure/1.0" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes">
|
|
|
|
<define name="privateDataStorageSource" combine="choice">
|
|
<optional>
|
|
<element name="privateData">
|
|
<interleave>
|
|
<optional>
|
|
<ref name="privateDataStorageSourceNodenames"/>
|
|
</optional>
|
|
<optional>
|
|
<ref name="privateDataStorageSourceReservations"/>
|
|
</optional>
|
|
<optional>
|
|
<ref name="privateDataStorageSourceObjects"/>
|
|
</optional>
|
|
</interleave>
|
|
</element>
|
|
</optional>
|
|
</define>
|
|
|
|
<define name="privateDataDeviceDisk" combine="choice">
|
|
<optional>
|
|
<element name="privateData">
|
|
<notAllowed/>
|
|
</element>
|
|
</optional>
|
|
</define>
|
|
|
|
<define name="privateDataStorageSourceNodenames">
|
|
<element name="nodenames">
|
|
<oneOrMore>
|
|
<ref name="nodename"/>
|
|
</oneOrMore>
|
|
</element>
|
|
</define>
|
|
|
|
<define name="nodename">
|
|
<element name="nodename">
|
|
<attribute name="type">
|
|
<choice>
|
|
<value>storage</value>
|
|
<value>format</value>
|
|
</choice>
|
|
</attribute>
|
|
<attribute name="name"/>
|
|
</element>
|
|
</define>
|
|
|
|
<define name="privateDataStorageSourceReservations">
|
|
<element name="reservations">
|
|
<attribute name="mgralias"/>
|
|
</element>
|
|
</define>
|
|
|
|
<define name="privateDataStorageSourceObjects">
|
|
<element name="objects">
|
|
<interleave>
|
|
<optional>
|
|
<element name="TLSx509">
|
|
<attribute name="alias"/>
|
|
</element>
|
|
</optional>
|
|
</interleave>
|
|
</element>
|
|
</define>
|
|
|
|
</grammar>
|