holy shit, more restructuring

This commit is contained in:
brent s 2020-05-15 18:01:10 -04:00
parent c4467cc5ea
commit d221947a89
Signed by: bts
GPG Key ID: 8C004C2F93481F6B
2 changed files with 18 additions and 2 deletions

View File

@ -23,14 +23,16 @@
<xs:sequence minOccurs="1" maxOccurs="unbounded"> <xs:sequence minOccurs="1" maxOccurs="unbounded">
<xs:element name="assign" minOccurs="1" maxOccurs="unbounded"> <xs:element name="assign" minOccurs="1" maxOccurs="unbounded">
<xs:complexType> <xs:complexType>
<xs:all>
<xs:element name="ra" type="t_he_ipv6_ra" minOccurs="0" maxOccurs="1"/>
</xs:all>
<xs:attribute name="prefix" type="t_he_ipv6_prefix_local" use="optional" default="64"/> <xs:attribute name="prefix" type="t_he_ipv6_prefix_local" use="optional" default="64"/>
<xs:attribute name="alloc" type="t_he_ipv6_prefix" use="optional" default="64"/> <xs:attribute name="alloc" type="t_he_ipv6_prefix" use="optional" default="64"/>
<xs:attribute name="iface" type="t_linux_iface_name" use="required"/> <xs:attribute name="iface" type="t_linux_iface_name" use="required"/>
</xs:complexType> </xs:complexType>
</xs:element> </xs:element>
</xs:sequence> </xs:sequence>
<xs:attribute name="radvd" type="xs:boolean" use="optional" default="false"/> <xs:attribute name="raProvider" type="t_he_ipv6_ra_providers" use="optional"/>
<xs:attribute name="radvdDns" type="xs:boolean" use="optional" default="false"/>
</xs:complexType> </xs:complexType>
<xs:unique name="uniq_he_assign"> <xs:unique name="uniq_he_assign">
<xs:selector xpath=".//*"/> <xs:selector xpath=".//*"/>

View File

@ -17,4 +17,18 @@
</xs:restriction> </xs:restriction>
</xs:simpleType> </xs:simpleType>


<xs:complexType name="t_he_ipv6_ra">
<xs:all>
<xs:element name="dns" type="xs:boolean" default="false"/>
<xs:element name="dhcpv6" type="xs:boolean" default="false"/>
</xs:all>
</xs:complexType>

<xs:simpleType name="t_he_ipv6_ra_providers">
<xs:restriction base="xs:token">
<xs:enumeration value="dnsmasq"/>
<xs:enumeration value="radvd"/>
</xs:restriction>
</xs:simpleType>

</xs:schema> </xs:schema>