mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-22 13:45:38 +00: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),
|
||||
virDomainNetGetActualDirectDev(newdev)) ||
|
||||
virDomainNetGetActualDirectMode(olddev) != virDomainNetGetActualDirectMode(olddev) ||
|
||||
virDomainNetGetActualDirectMode(olddev) != virDomainNetGetActualDirectMode(newdev) ||
|
||||
!virNetDevVPortProfileEqual(virDomainNetGetActualVirtPortProfile(olddev),
|
||||
virDomainNetGetActualVirtPortProfile(newdev)) ||
|
||||
!virNetDevVlanEqual(virDomainNetGetActualVlan(olddev),
|
||||
|
Loading…
Reference in New Issue
Block a user