mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-03 03:25:20 +00:00
tests: Alter test_driver HBA name/data to be closer to reality
Alter "test-scsi-host-vport" to be "scsi_host1" to match the real environment. This is the vport capable HBA - IOW the NPIV device. Add more fields to scsi_host1 as well. Alter the XML being used by the objecttest to create a vHBA in order to match the scsi_host1 parent name and to use validateable wwnn/wwpn. This will allow for realistic testing.
This commit is contained in:
parent
d3ffa0ece8
commit
779e49054a
@ -487,15 +487,20 @@ static const char *defaultConnXML =
|
|||||||
" </capability>"
|
" </capability>"
|
||||||
"</device>"
|
"</device>"
|
||||||
"<device>"
|
"<device>"
|
||||||
" <name>test-scsi-host-vport</name>"
|
" <name>scsi_host1</name>"
|
||||||
" <parent>computer</parent>"
|
" <parent>computer</parent>"
|
||||||
" <capability type='scsi_host'>"
|
" <capability type='scsi_host'>"
|
||||||
" <host>1</host>"
|
" <host>1</host>"
|
||||||
|
" <unique_id>0</unique_id>"
|
||||||
" <capability type='fc_host'>"
|
" <capability type='fc_host'>"
|
||||||
" <wwnn>2000000012341234</wwnn>"
|
" <wwnn>2000000012341234</wwnn>"
|
||||||
" <wwpn>1000000012341234</wwpn>"
|
" <wwpn>1000000012341234</wwpn>"
|
||||||
|
" <fabric_wwn>2000000043214321</fabric_wwn>"
|
||||||
|
" </capability>"
|
||||||
|
" <capability type='vport_ops'>"
|
||||||
|
" <max_vports>127</max_vports>"
|
||||||
|
" <vports>0</vports>"
|
||||||
" </capability>"
|
" </capability>"
|
||||||
" <capability type='vport_ops'/>"
|
|
||||||
" </capability>"
|
" </capability>"
|
||||||
"</device>"
|
"</device>"
|
||||||
"</node>";
|
"</node>";
|
||||||
|
@ -63,11 +63,11 @@ static const char storagePoolDef[] =
|
|||||||
|
|
||||||
static const char nodeDeviceDef[] =
|
static const char nodeDeviceDef[] =
|
||||||
"<device>\n"
|
"<device>\n"
|
||||||
" <parent>test-scsi-host-vport</parent>\n"
|
" <parent>scsi_host1</parent>\n"
|
||||||
" <capability type='scsi_host'>\n"
|
" <capability type='scsi_host'>\n"
|
||||||
" <capability type='fc_host'>\n"
|
" <capability type='fc_host'>\n"
|
||||||
" <wwpn>1111222233334444</wwpn>\n"
|
" <wwpn>1000000023452345</wwpn>\n"
|
||||||
" <wwnn>5555666677778888</wwnn>\n"
|
" <wwnn>2000000023452345</wwnn>\n"
|
||||||
" </capability>\n"
|
" </capability>\n"
|
||||||
" </capability>\n"
|
" </capability>\n"
|
||||||
"</device>\n";
|
"</device>\n";
|
||||||
|
Loading…
Reference in New Issue
Block a user