]> xenbits.xensource.com Git - libvirt.git/commitdiff
util: add openvswitch case to virNetDevVPortProfileEqual
authorLaine Stump <laine@laine.org>
Wed, 25 Jul 2012 05:52:32 +0000 (01:52 -0400)
committerLaine Stump <laine@laine.org>
Tue, 14 Aug 2012 19:47:15 +0000 (15:47 -0400)
This function was overlooked when openvswitch support was
added. Fortunately it's only use for update-device, which is
relatively new and seldom-used.

src/util/virnetdevvportprofile.c

index af9151e130a8fb99c1a82d5700c8cf420259af36..6db04f7f117176bbeb92668532595a761e687bfa 100644 (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;
     }