]> git.ipfire.org Git - thirdparty/libvirt.git/commit
conf: tests: fix virDomainNetDefFormat for vhost-user in client mode
authorMaxime Leroy <maxime.leroy@6wind.com>
Fri, 17 Oct 2014 16:45:18 +0000 (18:45 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Mon, 20 Oct 2014 06:58:09 +0000 (08:58 +0200)
commit302720742f6e159af45631475d720cf807e905b9
tree89996a192e91a723f165be8f4781aa3ad50075f2
parent793a91f8e1647053e78874974f319bee2876800c
conf: tests: fix virDomainNetDefFormat for vhost-user in client mode

The mode attribute is required for the source element of vhost-user.
Thus virDomainNetDefFormat should always generate a xml with it and not
only when the mode is server.

The commit fixes the issue. And it adds a vhostuser interface in
'client' mode to qemuxml2argv-net-vhostuser.(args|xml) to test this
usecase.

Signed-off-by: Maxime Leroy <maxime.leroy@6wind.com>
src/conf/domain_conf.c
tests/qemuxml2argvdata/qemuxml2argv-net-vhostuser.args
tests/qemuxml2argvdata/qemuxml2argv-net-vhostuser.xml