mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-27 18:03:50 +03:00
qemu: fix argument of virDomainNetGetActualDirectMode
it should be a comparison of modes between new and old devices. So the argument of the second virDomainNetGetActualDirectMode should be newdev. Signed-off-by: ZhiPeng Lu <lu.zhipeng@zte.com.cn>
This commit is contained in:
parent
6d53255377
commit
c77bc47f43
@ -3273,7 +3273,7 @@ qemuDomainChangeNet(virQEMUDriverPtr driver,
|
|||||||
|
|
||||||
if (STRNEQ_NULLABLE(virDomainNetGetActualDirectDev(olddev),
|
if (STRNEQ_NULLABLE(virDomainNetGetActualDirectDev(olddev),
|
||||||
virDomainNetGetActualDirectDev(newdev)) ||
|
virDomainNetGetActualDirectDev(newdev)) ||
|
||||||
virDomainNetGetActualDirectMode(olddev) != virDomainNetGetActualDirectMode(olddev) ||
|
virDomainNetGetActualDirectMode(olddev) != virDomainNetGetActualDirectMode(newdev) ||
|
||||||
!virNetDevVPortProfileEqual(virDomainNetGetActualVirtPortProfile(olddev),
|
!virNetDevVPortProfileEqual(virDomainNetGetActualVirtPortProfile(olddev),
|
||||||
virDomainNetGetActualVirtPortProfile(newdev)) ||
|
virDomainNetGetActualVirtPortProfile(newdev)) ||
|
||||||
!virNetDevVlanEqual(virDomainNetGetActualVlan(olddev),
|
!virNetDevVlanEqual(virDomainNetGetActualVlan(olddev),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user