#include "virbuffer.h"
#include "viruuid.h"
#include "virrandom.h"
+#include "virlog.h"
#define VIR_FROM_THIS VIR_FROM_NODEDEV
+VIR_LOG_INIT("conf.node_device_conf");
+
VIR_ENUM_IMPL(virNodeDevDevnode, VIR_NODE_DEV_DEVNODE_LAST,
"dev",
"link")
}
}
+ if (virNodeDevCapsDefParseString("string(./fabric_wwn[1])",
+ ctxt,
+ &data->scsi_host.fabric_wwn) < 0)
+ VIR_DEBUG("No fabric_wwn defined for '%s'", def->name);
+
ctxt->node = orignode2;
} else {
" </capability>"
"</device>";
+/* virNodeDeviceCreateXML using "<parent fabric_wwn='%s'/>" to find the
+ * vport capable HBA */
+static const char test10_xml[] =
+"<device>"
+" <parent fabric_wwn='2000000043214321'/>"
+" <capability type='scsi_host'>"
+" <capability type='fc_host'>"
+" </capability>"
+" </capability>"
+"</device>";
+
/* Test virIsVHBACapable */
static int
test1(const void *data ATTRIBUTE_UNUSED)
if (virTestRun("manageVHBAByNodeDevice-parent-wwn", manageVHBAByNodeDevice,
test9_xml) < 0)
ret = -1;
+ if (virTestRun("manageVHBAByNodeDevice-parent-fabric-wwn",
+ manageVHBAByNodeDevice, test10_xml) < 0)
+ ret = -1;
cleanup:
VIR_FREE(fchost_prefix);