]> git.ipfire.org Git - thirdparty/libvirt.git/commit
conf: don't ignore <target dev='blah'/> for macvtap interfaces
authorLaine Stump <laine@laine.org>
Mon, 27 Mar 2017 01:57:54 +0000 (21:57 -0400)
committerLaine Stump <laine@laine.org>
Fri, 28 Apr 2017 13:43:52 +0000 (09:43 -0400)
commit9cb891141c4a5a96243c61518c4e0dbcf6a86c24
tree7e55703bcb577fecb197c9fabefbec8693ee479e
parenta05400ef55c7c67c6b211dfa5a33400870d470ca
conf: don't ignore <target dev='blah'/> for macvtap interfaces

The parser had been clearing out *all* suggested device names for
type='direct' (aka macvtap) interfaces. All of the code implementing
macvtap allows for a user-specified device name, so we should allow
it. In the case that an interface name starts with "macvtap" or
"macvlan" though, we do still clear it out, just as we do with "vnet"
(which is the prefix used for automatically generated tap device
names), since those are the prefixes for the names we autogenerate for
macvtap and macvlan devices.

Resolves: https://bugzilla.redhat.com/1335798
docs/formatdomain.html.in
src/conf/domain_conf.c