[PATCH 2/5] schemas: domaincaps: Add schema for 'panic' device

Peter Krempa posted 5 patches 4 weeks ago
[PATCH 2/5] schemas: domaincaps: Add schema for 'panic' device
Posted by Peter Krempa 4 weeks ago
Due to 'virschematest' being broken commit a52cd504b3618c67abf3a07c669
introduced a new element to the domain caps but didn't add schema for
it.

Fixes: a52cd504b3618c67abf3a07c669fd5e5ab18aa50
Signed-off-by: Peter Krempa <pkrempa@redhat.com>
---
 src/conf/schemas/domaincaps.rng | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/src/conf/schemas/domaincaps.rng b/src/conf/schemas/domaincaps.rng
index f9b87c8a59..142a54d1d7 100644
--- a/src/conf/schemas/domaincaps.rng
+++ b/src/conf/schemas/domaincaps.rng
@@ -215,6 +215,9 @@
       <optional>
         <ref name="interface"/>
       </optional>
+      <optional>
+        <ref name="panic"/>
+      </optional>
     </element>
   </define>

@@ -288,6 +291,13 @@
     </element>
   </define>

+  <define name="panic">
+    <element name="panic">
+      <ref name="supported"/>
+      <ref name="enum"/>
+    </element>
+  </define>
+
   <define name="interface">
     <element name="interface">
       <ref name="supported"/>
-- 
2.47.0