]> xenbits.xensource.com Git - libvirt.git/commitdiff
examples: testdriver: Add xmlns runstate example
authorCole Robinson <crobinso@redhat.com>
Mon, 17 Oct 2022 16:08:49 +0000 (12:08 -0400)
committerCole Robinson <crobinso@redhat.com>
Wed, 19 Oct 2022 20:40:36 +0000 (16:40 -0400)
The testdriver has xmlns support for overriding object default
state. demo it by pausing a VM

Reviewed-by: Peter Krempa <pkrempa@redhat.com>
Signed-off-by: Cole Robinson <crobinso@redhat.com>
examples/xml/test/testnodeinline.xml

index 9165d9302d4be07dd8f241dc84c4832ebe6f0a2c..90805f025a90009cb03dd824d565e150ef490a95 100644 (file)
@@ -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'>