]> xenbits.xensource.com Git - libvirt.git/commitdiff
Trivial fix: in dhcp-host the name is optional
authorGene Czarcinski <gene@czarc.net>
Fri, 15 Feb 2013 19:02:25 +0000 (14:02 -0500)
committerLaine Stump <laine@laine.org>
Mon, 25 Feb 2013 07:49:06 +0000 (02:49 -0500)
Although in IPv4 one must pick either mac or name, either
can be omitted.  Similarly, for IPv6, the name
can be optionally omitted.

Signed-off-by: Gene Czarcinski <gene@czarc.net>
Signed-off-by: Laine Stump <laine@laine.org>
docs/schemas/network.rng

index 66f32a44df02a19fd55db634681a57ea2278641c..fff169b9829d37c14185f4b567240f3c6bf273d5 100644 (file)
                 </zeroOrMore>
                 <zeroOrMore>
                   <element name="host">
-                    <optional>
-                      <attribute name="mac"><ref name="uniMacAddr"/></attribute>
-                    </optional>
-                    <attribute name="name"><text/></attribute>
+                    <choice>
+                      <group>
+                        <attribute name="mac"><ref name="uniMacAddr"/></attribute>
+                        <optional>
+                          <attribute name="name"><text/></attribute>
+                        </optional>
+                      </group>
+                      <attribute name="name"><text/></attribute>
+                    </choice>
                     <attribute name="ip"><ref name="ipAddr"/></attribute>
                   </element>
                 </zeroOrMore>