nodedevschematest: Add example file for a HBA with 'vport_ops' capability

Illustrate the problem in the schema fixed by previous commit.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
This commit is contained in:
Peter Krempa 2022-08-25 10:39:11 +02:00
parent 4328018bd0
commit 41460774ea
3 changed files with 37 additions and 0 deletions

View File

@ -0,0 +1,18 @@
<device>
<name>scsi_host12</name>
<path>/sys/devices/pci0000:00/0000:00:03.2/0000:06:00.1/host12</path>
<parent>pci_0000_06_00_1</parent>
<capability type='scsi_host'>
<host>12</host>
<unique_id>12</unique_id>
<capability type='fc_host'>
<wwnn>2000f4e9d4eb02c9</wwnn>
<wwpn>2001f4e9d4eb02c9</wwpn>
<fabric_wwn>2001547feebe79c1</fabric_wwn>
</capability>
<capability type='vport_ops'>
<max_vports>254</max_vports>
<vports>0</vports>
</capability>
</capability>
</device>

View File

@ -0,0 +1,18 @@
<device>
<name>scsi_host12</name>
<path>/sys/devices/pci0000:00/0000:00:03.2/0000:06:00.1/host12</path>
<parent>pci_0000_06_00_1</parent>
<capability type='scsi_host'>
<host>12</host>
<unique_id>12</unique_id>
<capability type='fc_host'>
<wwnn>2000f4e9d4eb02c9</wwnn>
<wwpn>2001f4e9d4eb02c9</wwpn>
<fabric_wwn>2001547feebe79c1</fabric_wwn>
</capability>
<capability type='vport_ops'>
<max_vports>0</max_vports>
<vports>0</vports>
</capability>
</capability>
</device>

View File

@ -134,6 +134,7 @@ mymain(void)
DO_TEST("mdev_d069d019_36ea_4111_8f0a_8c9a70e21366"); DO_TEST("mdev_d069d019_36ea_4111_8f0a_8c9a70e21366");
DO_TEST("mdev_d2441d39_495e_4243_ad9f_beb3f14c23d9"); DO_TEST("mdev_d2441d39_495e_4243_ad9f_beb3f14c23d9");
DO_TEST("mdev_fedc4916_1ca8_49ac_b176_871d16c13076"); DO_TEST("mdev_fedc4916_1ca8_49ac_b176_871d16c13076");
DO_TEST("hba_vport_ops");
return ret == 0 ? EXIT_SUCCESS : EXIT_FAILURE; return ret == 0 ? EXIT_SUCCESS : EXIT_FAILURE;
} }