]> git.ipfire.org Git - thirdparty/libvirt.git/commit
parallels: delete old networks in prlsdkDoApplyConfig before adding new ones
authorMaxim Nestratov <mnestratov@parallels.com>
Mon, 6 Apr 2015 15:53:47 +0000 (18:53 +0300)
committerMichal Privoznik <mprivozn@redhat.com>
Wed, 8 Apr 2015 08:22:39 +0000 (10:22 +0200)
commit9baf87bbc6c526586b6b678098e0309d861fb1b7
treec37c32d5e3d9b5c416d0bfa59c2d6ff34d3b41a1
parentfa2607d57713f4234ff75777468f43d9f5ec67a2
parallels: delete old networks in prlsdkDoApplyConfig before adding new ones

In order to change an existing domain we delete all existing devices and add
new from scratch. In case of network devices we should also delete corresponding
virtual networks (if any) before removing actual devices from xml. In the patch,
we do it by extending prlsdkDoApplyConfig with a new parameter, which stands for
old xml, and calling prlsdkDelNet every time old xml is specified.

Signed-off-by: Maxim Nestratov <mnestratov@parallels.com>
Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
src/parallels/parallels_sdk.c