[PATCH 6/8] util: Fix bug of managing vport

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The string written to "vport_create" or "vport_delete" should
be "wwnn:wwpn", but not "wwpn:wwnn".
---
 src/util/virutil.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/util/virutil.c b/src/util/virutil.c
index f38ad5a..3073337 100644
--- a/src/util/virutil.c
+++ b/src/util/virutil.c
@@ -3437,8 +3437,8 @@ virManageVport(const int parent_host,
 
     if (virAsprintf(&vport_name,
                     "%s:%s",
-                    wwpn,
-                    wwnn) < 0) {
+                    wwnn,
+                    wwpn) < 0) {
         virReportOOMError();
         goto cleanup;
     }
-- 
1.7.7.6

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list


[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]