]> xenbits.xensource.com Git - libvirt.git/commit
conf: expand network device callbacks to cover resolving NIC type
authorDaniel P. Berrangé <berrange@redhat.com>
Thu, 25 Jan 2018 09:35:50 +0000 (09:35 +0000)
committerDaniel P. Berrangé <berrange@redhat.com>
Fri, 9 Feb 2018 11:05:10 +0000 (11:05 +0000)
commita455d41e3e1c1af3a36ccdbb2e3f2356cc58993e
treeaf11bea9d1bb73c609457ca5af2d4ca9616a39e9
parent9069331b8e82de9353fb90f17735686606018617
conf: expand network device callbacks to cover resolving NIC type

Currently the QEMU driver will call directly into the network driver
impl to modify resolve the atual type of NICs with type=network. It
has todo this before it has allocated the actual NIC. This introduces
a callback system to allow us to decouple the QEMU driver from the
network driver.

This is a short term step, as it ought to be possible to achieve the
same end goal by simply querying XML via the public network API. The
QEMU code in question though, has no virConnectPtr conveniently
available at this time.

Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
src/conf/domain_conf.c
src/conf/domain_conf.h
src/libvirt_private.syms
src/network/bridge_driver.c
src/network/bridge_driver.h
src/qemu/qemu_alias.c
src/qemu/qemu_domain_address.c
tests/Makefile.am
tests/qemuxml2argvtest.c