test: Support loading node device info from file/XML

Also add some XML examples.

Signed-off-by: Cole Robinson <crobinso@redhat.com>
This commit is contained in:
Cole Robinson
2009-10-02 10:05:17 -04:00
parent 7165bef132
commit e22f2f5c9c
4 changed files with 75 additions and 1 deletions

View File

@@ -0,0 +1,16 @@
<device>
<name>File_test_device</name>
<capability type='system'>
<hardware>
<vendor>Libvirt</vendor>
<version>Test driver</version>
<serial>123456</serial>
<uuid>11111111-2222-3333-4444-555555555555</uuid>
</hardware>
<firmware>
<vendor>Libvirt</vendor>
<version>Test Driver</version>
<release_date>01/22/2007</release_date>
</firmware>
</capability>
</device>

View File

@@ -14,6 +14,7 @@
<pool file="testpool.xml">
<volume file="testvol.xml"/>
</pool>
<device file="testdev.xml"/>
<cpu>
<mhz>6000</mhz>

View File

@@ -97,6 +97,25 @@
</dhcp>
</ip>
</network>
<device>
<name>File_test_device</name>
<capability type='system'>
<hardware>
<vendor>Libvirt</vendor>
<version>Test driver</version>
<serial>123456</serial>
<uuid>11111111-2222-3333-4444-555555555555</uuid>
</hardware>
<firmware>
<vendor>Libvirt</vendor>
<version>Test Driver</version>
<release_date>01/22/2007</release_date>
</firmware>
</capability>
</device>
<cpu>
<mhz>6000</mhz>
<model>i986</model>