Trivial fix: in dhcp-host the name is optional

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>
This commit is contained in:
Gene Czarcinski 2013-02-15 14:02:25 -05:00 committed by Laine Stump
parent c720ddd6ac
commit 8e3c1f2ebb

View File

@ -278,10 +278,15 @@
</zeroOrMore> </zeroOrMore>
<zeroOrMore> <zeroOrMore>
<element name="host"> <element name="host">
<optional> <choice>
<attribute name="mac"><ref name="uniMacAddr"/></attribute> <group>
</optional> <attribute name="mac"><ref name="uniMacAddr"/></attribute>
<attribute name="name"><text/></attribute> <optional>
<attribute name="name"><text/></attribute>
</optional>
</group>
<attribute name="name"><text/></attribute>
</choice>
<attribute name="ip"><ref name="ipAddr"/></attribute> <attribute name="ip"><ref name="ipAddr"/></attribute>
</element> </element>
</zeroOrMore> </zeroOrMore>