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

Cole Robinson crobinso at redhat.com
Mon Oct 17 16:16:39 UTC 2022


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

Signed-off-by: Cole Robinson <crobinso at redhat.com>
---
 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



More information about the libvir-list mailing list