libvirt/docs/schemas
Jim Fehlig 76ee1acafb docs: schema: make disk driver name attribute optional
/domain/devices/disk/driver/@name is not a required or mandatory
attribute according to formatdomain, and indeed it was agreed on
IRC that the attribute is "optional for input, recommended (but
not required) for output". Currently the schema requires the
attribute, causing virt-xml-validate to fail on disk config where
the driver name is not explicitly specified. E.g.

# cat test.xml | grep -A 5 cdrom
    <disk type='file' device='cdrom'>
      <driver type='raw'/>
      <target dev='hdb' bus='ide'/>
      <readonly/>
      <address type='drive' controller='0' bus='0' target='0' unit='1'/>
    </disk>

# virt-xml-validate test.xml
Relax-NG validity error : Extra element devices in interleave
test.xml:21: element devices: Relax-NG validity error : Element domain failed to validate content
test.xml fails to validate

Relaxing the name attribute to be optional fixes the validation

# virt-xml-validate test.xml
test.xml validates

(cherry picked from commit b494e09d05)
2017-08-03 17:17:24 -04:00
..
basictypes.rng conf: Add more fchost search fields for storage pool vHBA creation 2017-01-06 17:15:34 -05:00
capability.rng domain: conf: Drop unused OSTYPE_AIX 2015-04-29 09:42:26 -04:00
cputypes.rng Introduce /domain/cpu/@check XML attribute 2017-03-17 11:50:48 +01:00
domain.rng conf: set up for per-grammar overrides in schemas 2014-04-15 21:07:59 +02:00
domaincaps.rng schema: domaincaps: make machine element optional 2017-03-26 18:35:14 +04:00
domaincommon.rng docs: schema: make disk driver name attribute optional 2017-08-03 17:17:24 -04:00
domainsnapshot.rng conf: split <disk> schema into more pieces 2014-04-16 10:45:55 +02:00
interface.rng docs: make interface start mode element optional 2017-03-27 10:22:15 -04:00
network.rng conf: support configuring mtu size in a virtual network 2017-02-07 13:52:06 -05:00
networkcommon.rng domain_conf: Introduce <mtu/> to <interface/> 2017-01-26 09:59:56 +01:00
nodedev.rng nodedev: add drm capability 2017-02-17 15:47:58 +01:00
nwfilter.rng schema: rename uint8range/uint24range to uint8/uint24 2016-04-14 14:00:33 -04:00
secret.rng conf: Add new secret type "tls" 2016-09-09 08:20:05 -04:00
storagecommon.rng encryption: Add <cipher> and <ivgen> to encryption 2016-07-01 15:46:57 -04:00
storagepool.rng schema: do not require name for certain pool types 2017-03-29 10:36:55 +02:00
storagevol.rng storage: unify permission formatting 2014-12-16 15:47:56 +01:00