[PATCH 4/7] schema: separate teaming element definition from interface element

Laine Stump laine at redhat.com
Thu Feb 11 07:57:31 UTC 2021


Signed-off-by: Laine Stump <laine at redhat.com>
---
 docs/schemas/domaincommon.rng | 39 ++++++++++++++++++++---------------
 1 file changed, 22 insertions(+), 17 deletions(-)

diff --git a/docs/schemas/domaincommon.rng b/docs/schemas/domaincommon.rng
index 7a2706a4fb..31960fb7cf 100644
--- a/docs/schemas/domaincommon.rng
+++ b/docs/schemas/domaincommon.rng
@@ -3529,23 +3529,7 @@
         <ref name="portOptions"/>
       </optional>
       <optional>
-        <element name="teaming">
-          <choice>
-            <group>
-              <attribute name="type">
-                <value>persistent</value>
-              </attribute>
-            </group>
-            <group>
-              <attribute name="type">
-                <value>transient</value>
-              </attribute>
-              <attribute name="persistent">
-                <ref name="aliasName"/>
-              </attribute>
-            </group>
-          </choice>
-        </element>
+        <ref name="teaming"/>
       </optional>
     </interleave>
   </define>
@@ -3581,6 +3565,27 @@
       <ref name="route"/>
     </zeroOrMore>
   </define>
+
+  <define name="teaming">
+    <element name="teaming">
+      <choice>
+        <group>
+          <attribute name="type">
+            <value>persistent</value>
+          </attribute>
+        </group>
+        <group>
+          <attribute name="type">
+            <value>transient</value>
+          </attribute>
+          <attribute name="persistent">
+            <ref name="aliasName"/>
+          </attribute>
+        </group>
+      </choice>
+    </element>
+  </define>
+
   <!--
       An emulator description is just a path to the binary used for the task
     -->
-- 
2.29.2




More information about the libvir-list mailing list