Hook up more test driver methods. Allow HV config to be loaded from extenral XML definition

This commit is contained in:
Daniel P. Berrange
2006-08-16 16:36:39 +00:00
parent 64d25e8de5
commit 5c2831b30b
6 changed files with 853 additions and 70 deletions

23
docs/testnode.xml Normal file
View File

@@ -0,0 +1,23 @@
<node>
<!-- This file gives an example config for the mock 'test' backend
driver to libvirt. This is intended to allow relible unit testing
of applications using libvirt. To use this with virsh, run something
like:
virsh -connect test:////path/to/this/dir/testnode.xml nodeinfo
-->
<domain file="testdomfv0.xml"/>
<domain file="testdomfc4.xml"/>
<cpu>
<mhz>6000</mhz>
<model>i986</model>
<active>50</active>
<nodes>4</nodes>
<sockets>4</sockets>
<cores>4</cores>
<threads>2</threads>
</cpu>
<memory>137438953472</memory>
</node>