From f90af6914e529a5c1e4029f7c557e3e8177bff1d Mon Sep 17 00:00:00 2001 From: Osier Yang Date: Mon, 4 Feb 2013 21:32:03 +0800 Subject: [PATCH] util: Fix bug of managing vport The string written to "vport_create" or "vport_delete" should be "wwnn:wwpn", but not "wwpn:wwnn". --- src/util/virutil.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/util/virutil.c b/src/util/virutil.c index 4175824ce8..557225cefd 100644 --- a/src/util/virutil.c +++ b/src/util/virutil.c @@ -3551,8 +3551,8 @@ virManageVport(const int parent_host, if (virAsprintf(&vport_name, "%s:%s", - wwpn, - wwnn) < 0) { + wwnn, + wwpn) < 0) { virReportOOMError(); goto cleanup; }