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>
</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>