[PATCH 4/4] test: Add scsi vport nodedev to test:///default

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



A nodedev device definition like this is required for testing
NodeDeviceCreateXML and NodeDeviceDestroy. So unless it's part
of the stock test:///default set there's no way to actually
invoke those functions for the default URI
---
 src/test/test_driver.c | 12 ++++++++++++
 1 file changed, 12 insertions(+)

diff --git a/src/test/test_driver.c b/src/test/test_driver.c
index 3f3e405..4f94317 100644
--- a/src/test/test_driver.c
+++ b/src/test/test_driver.c
@@ -466,6 +466,18 @@ static const char *defaultConnXML =
 "    </firmware>"
 "  </capability>"
 "</device>"
+"<device>"
+"  <name>test-scsi-host-vport</name>"
+"  <parent>computer</parent>"
+"  <capability type='scsi_host'>"
+"    <host>1</host>"
+"    <capability type='fc_host'>"
+"      <wwnn>2000000012341234</wwnn>"
+"      <wwpn>1000000012341234</wwpn>"
+"    </capability>"
+"    <capability type='vport_ops'/>"
+"  </capability>"
+"</device>"
 "</node>";
 
 
-- 
2.7.4

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list



[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]