libvirt/docs/schemas
Jim Fehlig b494e09d05 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
2017-07-18 11:39:52 -06:00
..
basictypes.rng node_device: detect CCW devices 2017-05-26 10:44:05 -04:00
capability.rng Report more correct information for cache control 2017-06-16 13:09:41 +02:00
cputypes.rng Add support for CPU cache specification 2017-04-27 22:07:14 +02: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-07-18 11:39:52 -06:00
domainsnapshot.rng qemu: Store save cookie in save images and snapshots 2017-06-07 13:36:02 +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 node_device: introduce new capability FC_RPORT 2017-05-26 10:44:05 -04: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