]> xenbits.xensource.com Git - libvirt.git/commitdiff
schema: separate teaming element definition from interface element
authorLaine Stump <laine@redhat.com>
Thu, 11 Feb 2021 03:59:31 +0000 (22:59 -0500)
committerLaine Stump <laine@redhat.com>
Thu, 11 Feb 2021 21:31:52 +0000 (16:31 -0500)
Signed-off-by: Laine Stump <laine@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
docs/schemas/domaincommon.rng

index 7a2706a4fb707dd604517cf62b881cc1adadb11d..31960fb7cf2446ec83d2920f55b970f250c41bb4 100644 (file)
         <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>
       <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
     -->