mirror of
https://github.com/libvirt/libvirt.git
synced 2026-09-03 20:53:04 -05:00
Move network route definition to networkcommon.rng
Moving network route to the network common schema will allow reusing it.
This commit is contained in:
@@ -371,25 +371,7 @@
|
|||||||
</zeroOrMore>
|
</zeroOrMore>
|
||||||
<!-- <route> element -->
|
<!-- <route> element -->
|
||||||
<zeroOrMore>
|
<zeroOrMore>
|
||||||
<!-- The (static) route element specifies a network address and gateway
|
<ref name="routex"/>
|
||||||
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>
|
|
||||||
</zeroOrMore>
|
</zeroOrMore>
|
||||||
</interleave>
|
</interleave>
|
||||||
</element>
|
</element>
|
||||||
|
|||||||
@@ -224,4 +224,26 @@
|
|||||||
<param name='maxInclusive'>65535</param>
|
<param name='maxInclusive'>65535</param>
|
||||||
</data>
|
</data>
|
||||||
</define>
|
</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>
|
</grammar>
|
||||||
|
|||||||
Reference in New Issue
Block a user