]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
test: Add new NPIV capable HBA and a vHBA
authorJohn Ferlan <jferlan@redhat.com>
Tue, 24 Jan 2017 11:32:03 +0000 (06:32 -0500)
committerJohn Ferlan <jferlan@redhat.com>
Sun, 19 Feb 2017 11:45:09 +0000 (06:45 -0500)
Predefine a second NPIV capable HBA as well as a vHBA using the first
NPIV capable HBA. This will allow for a mechanism to perform more
realistic create vHBA testing.

src/test/test_driver.c

index 1877e5482a21832ebe514bfa034f667905657370..db5a4daaaa32d0dfe9ee9372bd46e93c12f8d7c7 100644 (file)
@@ -499,10 +499,40 @@ static const char *defaultConnXML =
 "    </capability>"
 "    <capability type='vport_ops'>"
 "      <max_vports>127</max_vports>"
+"      <vports>1</vports>"
+"    </capability>"
+"  </capability>"
+"</device>"
+"<device>"
+"  <name>scsi_host2</name>"
+"  <parent>computer</parent>"
+"  <capability type='scsi_host'>"
+"    <host>2</host>"
+"    <unique_id>1</unique_id>"
+"    <capability type='fc_host'>"
+"      <wwnn>2000000056785678</wwnn>"
+"      <wwpn>1000000056785678</wwpn>"
+"      <fabric_wwn>2000000087658765</fabric_wwn>"
+"    </capability>"
+"    <capability type='vport_ops'>"
+"      <max_vports>127</max_vports>"
 "      <vports>0</vports>"
 "    </capability>"
 "  </capability>"
 "</device>"
+"<device>"
+"  <name>scsi_host11</name>"
+"  <parent>scsi_host1</parent>"
+"  <capability type='scsi_host'>"
+"    <host>11</host>"
+"    <unique_id>10</unique_id>"
+"    <capability type='fc_host'>"
+"      <wwnn>2000000034563456</wwnn>"
+"      <wwpn>1000000034563456</wwpn>"
+"      <fabric_wwn>2000000043214321</fabric_wwn>"
+"    </capability>"
+"  </capability>"
+ "</device>"
 "</node>";