]> xenbits.xensource.com Git - libvirt.git/commitdiff
Move network route definition to networkcommon.rng
authorCédric Bosdonnat <cbosdonnat@suse.com>
Wed, 14 Jan 2015 09:51:52 +0000 (10:51 +0100)
committerCédric Bosdonnat <cbosdonnat@suse.com>
Fri, 16 Jan 2015 09:14:03 +0000 (10:14 +0100)
Moving network route to the network common schema will allow reusing it.

docs/schemas/network.rng
docs/schemas/networkcommon.rng

index 9a7d156303eaacdae7b47a6356d7fd350e524652..63d81c133ad3943ccbca8dd9bd37911efdbdab87 100644 (file)
         </zeroOrMore>
         <!-- <route> element -->
         <zeroOrMore>
-          <!-- The (static) route element specifies a network address and gateway
-               address to access that network. Both the network address and
-               the gateway address must be specified. -->
-          <element name="route">
-            <optional>
-              <attribute name="family"><ref name="addr-family"/></attribute>
-            </optional>
-            <attribute name="address"><ref name="ipAddr"/></attribute>
-            <optional>
-              <choice>
-                <attribute name="netmask"><ref name="ipv4Addr"/></attribute>
-                <attribute name="prefix"><ref name="ipPrefix"/></attribute>
-              </choice>
-            </optional>
-            <attribute name="gateway"><ref name="ipAddr"/></attribute>
-            <optional>
-              <attribute name="metric"><ref name="unsignedInt"/></attribute>
-            </optional>
-          </element>
+          <ref name="routex"/>
         </zeroOrMore>
       </interleave>
     </element>
index e26b7f30b9852392ab288c16313c877e52b29f33..cbcae91f016659869a9b69c6badd5d98a8e92adf 100644 (file)
       <param name='maxInclusive'>65535</param>
     </data>
   </define>
+
+  <!-- The (static) route element specifies a network address and gateway
+       address to access that network. Both the network address and
+       the gateway address must be specified. -->
+  <define name='routex'>
+    <element name="route">
+      <optional>
+        <attribute name="family"><ref name="addr-family"/></attribute>
+      </optional>
+      <attribute name="address"><ref name="ipAddr"/></attribute>
+      <optional>
+        <choice>
+          <attribute name="netmask"><ref name="ipv4Addr"/></attribute>
+          <attribute name="prefix"><ref name="ipPrefix"/></attribute>
+        </choice>
+      </optional>
+      <attribute name="gateway"><ref name="ipAddr"/></attribute>
+      <optional>
+        <attribute name="metric"><ref name="unsignedInt"/></attribute>
+      </optional>
+    </element>
+  </define>
 </grammar>