[PATCH 1/3] examples: testdriver: Add xmlns runstate example

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

 



The testdriver has xmlns support for overriding object default
state. demo it by pausing a VM

Signed-off-by: Cole Robinson <crobinso@xxxxxxxxxx>
---
 examples/xml/test/testnodeinline.xml | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/examples/xml/test/testnodeinline.xml b/examples/xml/test/testnodeinline.xml
index 9165d9302d..90805f025a 100644
--- a/examples/xml/test/testnodeinline.xml
+++ b/examples/xml/test/testnodeinline.xml
@@ -86,7 +86,8 @@
       <console tty="/dev/pts/5"/>
     </devices>
   </domain>
-  <domain type='test'>
+  <domain type='test' xmlns:test='http://libvirt.org/schemas/domain/test/1.0'>
+    <test:runstate>3</test:runstate>  <!-- paused -->
     <name>fc5</name>
     <uuid>08721f993d1d4aec96eb97803297bb36</uuid>
     <cpu mode='custom'>
-- 
2.37.3




[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]

  Powered by Linux