mirror of https://gitee.com/openkylin/libvirt.git
util: add openvswitch case to virNetDevVPortProfileEqual
This function was overlooked when openvswitch support was added. Fortunately it's only use for update-device, which is relatively new and seldom-used.
This commit is contained in:
parent
21ea73e8f4
commit
8450d7b20c
|
@ -107,6 +107,12 @@ virNetDevVPortProfileEqual(virNetDevVPortProfilePtr a, virNetDevVPortProfilePtr
|
|||
return false;
|
||||
break;
|
||||
|
||||
case VIR_NETDEV_VPORT_PROFILE_OPENVSWITCH:
|
||||
if (STRNEQ(a->profileID, b->profileID) ||
|
||||
memcmp(a->interfaceID, b->interfaceID, VIR_UUID_BUFLEN) != 0)
|
||||
return false;
|
||||
break;
|
||||
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue