]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
schema: nwfilter: Allow interleaving subelements of the top level 'filter' element
authorPeter Krempa <pkrempa@redhat.com>
Thu, 13 Oct 2022 16:40:15 +0000 (18:40 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Tue, 1 Nov 2022 12:07:20 +0000 (13:07 +0100)
Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
src/conf/schemas/nwfilter.rng

index a75de7ed3e8cbcce7506ed2db0f598e3e1215013..262bd551e32b64c10139d19c06379905392d43ad 100644 (file)
@@ -7,20 +7,21 @@
   </start>
   <define name="filter">
     <element name="filter">
-      <ref name="filter-node-attributes"/>
-      <optional>
-        <element name="uuid">
-          <ref name="UUID"/>
-        </element>
-      </optional>
-      <zeroOrMore>
-        <choice>
-          <element name="filterref">
-            <ref name="filterref-node-attributes"/>
+      <interleave>
+        <ref name="filter-node-attributes"/>
+        <optional>
+          <element name="uuid">
+            <ref name="UUID"/>
           </element>
-          <element name="rule">
-            <ref name="rule-node-attributes"/>
-            <choice>
+        </optional>
+        <zeroOrMore>
+          <choice>
+            <element name="filterref">
+              <ref name="filterref-node-attributes"/>
+            </element>
+            <element name="rule">
+              <ref name="rule-node-attributes"/>
+              <choice>
                 <empty/>
                 <element name="mac">
                   <ref name="match-attribute"/>
                   <ref name="common-ipv6-attributes-p2"/>
                   <ref name="comment-attribute"/>
                 </element>
-            </choice>
-          </element>
-        </choice>
-      </zeroOrMore>
+              </choice>
+            </element>
+          </choice>
+        </zeroOrMore>
+      </interleave>
     </element>
   </define>