mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-02-21 10:52:22 +00:00
schema: Let elements in /network/ip be specified in any order
Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
This commit is contained in:
parent
a81cfb649d
commit
20e64d3499
@ -339,48 +339,52 @@
|
||||
<optional>
|
||||
<attribute name="family"><ref name="addr-family"/></attribute>
|
||||
</optional>
|
||||
<optional>
|
||||
<element name="tftp">
|
||||
<attribute name="root"><text/></attribute>
|
||||
</element>
|
||||
</optional>
|
||||
<optional>
|
||||
<!-- Define the range(s) of IP addresses that the DHCP
|
||||
server should hand out -->
|
||||
<element name="dhcp">
|
||||
<zeroOrMore>
|
||||
<element name="range">
|
||||
<attribute name="start"><ref name="ipAddr"/></attribute>
|
||||
<attribute name="end"><ref name="ipAddr"/></attribute>
|
||||
</element>
|
||||
</zeroOrMore>
|
||||
<zeroOrMore>
|
||||
<element name="host">
|
||||
<choice>
|
||||
<group>
|
||||
<interleave>
|
||||
<optional>
|
||||
<element name="tftp">
|
||||
<attribute name="root"><text/></attribute>
|
||||
</element>
|
||||
</optional>
|
||||
<optional>
|
||||
<!-- Define the range(s) of IP addresses that the DHCP
|
||||
server should hand out -->
|
||||
<element name="dhcp">
|
||||
<interleave>
|
||||
<zeroOrMore>
|
||||
<element name="range">
|
||||
<attribute name="start"><ref name="ipAddr"/></attribute>
|
||||
<attribute name="end"><ref name="ipAddr"/></attribute>
|
||||
</element>
|
||||
</zeroOrMore>
|
||||
<zeroOrMore>
|
||||
<element name="host">
|
||||
<choice>
|
||||
<attribute name="mac"><ref name="uniMacAddr"/></attribute>
|
||||
<attribute name="id"><ref name="DUID"/></attribute>
|
||||
</choice>
|
||||
<optional>
|
||||
<group>
|
||||
<choice>
|
||||
<attribute name="mac"><ref name="uniMacAddr"/></attribute>
|
||||
<attribute name="id"><ref name="DUID"/></attribute>
|
||||
</choice>
|
||||
<optional>
|
||||
<attribute name="name"><text/></attribute>
|
||||
</optional>
|
||||
</group>
|
||||
<attribute name="name"><text/></attribute>
|
||||
</optional>
|
||||
</group>
|
||||
<attribute name="name"><text/></attribute>
|
||||
</choice>
|
||||
<attribute name="ip"><ref name="ipAddr"/></attribute>
|
||||
</element>
|
||||
</zeroOrMore>
|
||||
<optional>
|
||||
<element name="bootp">
|
||||
<attribute name="file"><ref name="filePath"/></attribute>
|
||||
</choice>
|
||||
<attribute name="ip"><ref name="ipAddr"/></attribute>
|
||||
</element>
|
||||
</zeroOrMore>
|
||||
<optional>
|
||||
<attribute name="server"><ref name="dnsName"/></attribute>
|
||||
<element name="bootp">
|
||||
<attribute name="file"><ref name="filePath"/></attribute>
|
||||
<optional>
|
||||
<attribute name="server"><ref name="dnsName"/></attribute>
|
||||
</optional>
|
||||
</element>
|
||||
</optional>
|
||||
</element>
|
||||
</optional>
|
||||
</element>
|
||||
</optional>
|
||||
</interleave>
|
||||
</element>
|
||||
</optional>
|
||||
</interleave>
|
||||
</element>
|
||||
</zeroOrMore>
|
||||
<!-- <route> element -->
|
||||
|
@ -5,9 +5,9 @@
|
||||
<bridge name='virbr0' stp='on' delay='0'/>
|
||||
<ip address='192.168.122.1' netmask='255.255.255.0'>
|
||||
<dhcp>
|
||||
<range start='192.168.122.2' end='192.168.122.254'/>
|
||||
<host mac='00:16:3e:77:e2:ed' name='a.example.com' ip='192.168.122.10'/>
|
||||
<host mac='00:16:3e:3e:a9:1a' name='b.example.com' ip='192.168.122.11'/>
|
||||
<range start='192.168.122.2' end='192.168.122.254'/>
|
||||
</dhcp>
|
||||
</ip>
|
||||
<ip family='ipv4' address='192.168.123.1' netmask='255.255.255.0'>
|
||||
|
@ -5,10 +5,10 @@
|
||||
<bridge name='virbr1' stp='off' delay='1'/>
|
||||
<domain name='example.com'/>
|
||||
<ip address='192.168.122.1' netmask='255.255.255.0'>
|
||||
<tftp root='/var/lib/tftproot'/>
|
||||
<dhcp>
|
||||
<range start='192.168.122.2' end='192.168.122.254'/>
|
||||
<bootp file='pxeboot.img'/>
|
||||
</dhcp>
|
||||
<tftp root='/var/lib/tftproot'/>
|
||||
</ip>
|
||||
</network>
|
||||
|
Loading…
x
Reference in New Issue
Block a user