]> git.ipfire.org Git - thirdparty/libvirt.git/commit
network: allow '-' in model name
authorEric Blake <eblake@redhat.com>
Thu, 8 Dec 2011 06:41:22 +0000 (17:41 +1100)
committerEric Blake <eblake@redhat.com>
Fri, 9 Dec 2011 20:02:45 +0000 (13:02 -0700)
commitdad3c2090d865d754f8f3690541f47ec7ff14fe4
treeba161dfbce6eb64d94eac42acb1c54e235592a0f
parenta7adac3730d2e5c83b9c29a0f2a3dd737a33e593
network: allow '-' in model name

In QEMU PPC64 we have a network device called "spapr-vlan". We can specify
this using the existing syntax for network devices, however libvirt
currently rejects "spapr-vlan" in virDomainNetDefParseXML() because of
the "-". Fix the code to accept "-".

* src/conf/domain_conf.c (virDomainNetDefParseXML): Allow '-' in
model name, and be more efficient.
* docs/schemas/domaincommon.rng: Limit valid model names to match code.
Based on a patch by Michael Ellerman.
docs/schemas/domaincommon.rng
src/conf/domain_conf.c