]> git.ipfire.org Git - thirdparty/libvirt.git/commit
RNG schema: allow plain @floor to <bandwidth/>
authorMichal Privoznik <mprivozn@redhat.com>
Tue, 14 Apr 2015 13:54:42 +0000 (15:54 +0200)
committerMichal Privoznik <mprivozn@redhat.com>
Thu, 16 Apr 2015 07:07:43 +0000 (09:07 +0200)
commit7cf87f750baf6b7f280cb763aa02bdc473c3ec24
tree333ca077aac411cfa1af3686ccb6305805979bef
parent3535de462654d706755c8713bb235bdd8ec6c173
RNG schema: allow plain @floor to <bandwidth/>

The <inbound/> element to <bandwidth/> has several attributes from
which two are mandatory. Well, from two at least one has to be
present: @average or @floor or both. Instead of inventing crazy RNG
schema, let's make all the attributes optional there and rely on our
parsing code to correctly handle the situation.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
docs/schemas/networkcommon.rng
tests/qemuxml2argvdata/qemuxml2argv-net-bandwidth2.xml [new file with mode: 0644]
tests/qemuxml2xmltest.c