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:
Laine Stump 2012-07-25 01:52:32 -04:00
parent 21ea73e8f4
commit 8450d7b20c
1 changed files with 6 additions and 0 deletions

View File

@ -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;
}