]> git.ipfire.org Git - thirdparty/libvirt.git/commit
conf: Remove the actual hostdev when removing a network
authorPeter Krempa <pkrempa@redhat.com>
Tue, 3 Sep 2013 15:25:56 +0000 (17:25 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Wed, 4 Sep 2013 07:28:05 +0000 (09:28 +0200)
commit991270db9969026876c3f5911143dab13ab9050d
treecd58c8b546c4860b367c7bc35f9ba75a1420b7ea
parent8d67c550e931f1dbc163e7e20784218edc1165df
conf: Remove the actual hostdev when removing a network

Commit 50348e6edfa reused the code to remove the hostdev portion of a
network definition on multiple places but forgot to take into account
that sometimes the "actual" network is passed and in some cases the
parent of that.

This patch uses the virDomainNetGetActualHostdev() helper to acquire the
correct pointer all the time while removing the hostdev portion from the
list.
src/conf/domain_conf.c