]> xenbits.xensource.com Git - people/liuw/libxenctrl-split/libvirt.git/commitdiff
util: Fix bug of managing vport
authorOsier Yang <jyang@redhat.com>
Mon, 4 Feb 2013 13:32:03 +0000 (21:32 +0800)
committerOsier Yang <jyang@redhat.com>
Mon, 25 Mar 2013 13:18:14 +0000 (21:18 +0800)
The string written to "vport_create" or "vport_delete" should
be "wwnn:wwpn", but not "wwpn:wwnn".

src/util/virutil.c

index 4175824ce8c1a763376aa5512febbf6c8001dce8..557225cefdb2d8c47eb2816a095339d76daaf80c 100644 (file)
@@ -3551,8 +3551,8 @@ virManageVport(const int parent_host,
 
     if (virAsprintf(&vport_name,
                     "%s:%s",
-                    wwpn,
-                    wwnn) < 0) {
+                    wwnn,
+                    wwpn) < 0) {
         virReportOOMError();
         goto cleanup;
     }