]> git.ipfire.org Git - thirdparty/libvirt.git/commit
rng: tighten up domain <controller> schema
authorLaine Stump <laine@laine.org>
Thu, 18 Apr 2013 04:25:18 +0000 (00:25 -0400)
committerLaine Stump <laine@laine.org>
Thu, 18 Apr 2013 10:59:27 +0000 (06:59 -0400)
commit0f4f5cb26d977d4edcb1d37a15d83fce025ea486
treefb00e453434c104cfc6bd4781032c752a252f2e6
parent45012bc85b71cf26096bbb20278cdd8c25ef9bb8
rng: tighten up domain <controller> schema

The rng schema for <controller> had been non-specific about which
types of controllers allowed which models, and also allowed the
num_queues attribute (since that hasn't been released yet, should we
rename it to "numQueues"?) and <master> subelement to be included for
any controller type. In reality, half of the models are allowed only
for type='scsi', and the other half only for type='usb', num_queues is
allowed only for type='scsi', and <master> only for type='usb'.

This patch makes a separate <group> for type='scsi' and type='usb',
with each group allowing only the appropriate model values, and
allowing num_queue and <master> only when appropriate.

<interleave> also hadn't been specified, forcing a specific order of
subelements, which should never be done. (Note that the <interleave>
had to surround the main element attributes that are in the <group>
subelements, due to one of the <group>s containing a subelement).
docs/schemas/domaincommon.rng