61 lines
2.3 KiB
XML
61 lines
2.3 KiB
XML
<?xml version="1.0" encoding="UTF-8" ?>
|
|
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
|
|
elementFormDefault="qualified"
|
|
attributeFormDefault="unqualified">
|
|
|
|
<xs:include schemaLocation="../types/net.xsd"/>
|
|
<xs:include schemaLocation="../types/he_ipv6.xsd"/>
|
|
|
|
<xs:complexType name="e_he_ipv6_cred">
|
|
<xs:all>
|
|
<xs:element name="user" type="xs:token" minOccurs="1"/>
|
|
<xs:element name="updateKey" type="xs:token" minOccurs="1"/>
|
|
</xs:all>
|
|
<xs:attribute name="id" type="xs:ID" use="required"/>
|
|
</xs:complexType>
|
|
|
|
<xs:complexType name="e_he_ipv6_tunnel">
|
|
<xs:all>
|
|
<xs:element name="server" type="t_net_addr_ip4"/>
|
|
<xs:element name="allocs">
|
|
<xs:complexType>
|
|
<xs:sequence minOccurs="1">
|
|
<!-- HE only allocates a single /64 and, upon request, a single /48 per tunnel. -->
|
|
<xs:element name="alloc" minOccurs="1" maxOccurs="2">
|
|
<xs:complexType>
|
|
<xs:simpleContent>
|
|
<xs:extension base="t_net_addr_ip6">
|
|
<!-- VERY most likely "64" but we can't define a default with required. -->
|
|
<xs:attribute name="prefix" type="t_he_ipv6_prefix" use="required"/>
|
|
</xs:extension>
|
|
</xs:simpleContent>
|
|
</xs:complexType>
|
|
</xs:element>
|
|
</xs:sequence>
|
|
</xs:complexType>
|
|
<xs:unique name="uniq_alloc_prefix">
|
|
<xs:selector xpath="alloc"/>
|
|
<xs:field xpath="@prefix"/>
|
|
</xs:unique>
|
|
<xs:unique name="uniq_alloc_addr">
|
|
<xs:selector xpath="alloc"/>
|
|
<xs:field xpath="."/>
|
|
</xs:unique>
|
|
</xs:element>
|
|
<xs:element name="client" minOccurs="1" maxOccurs="1">
|
|
<xs:complexType>
|
|
<xs:simpleContent>
|
|
<xs:extension base="t_net_addr_ip6">
|
|
<!-- VERY most likely "64" but we can't define a default with required. -->
|
|
<xs:attribute name="prefix" type="t_he_ipv6_prefix" use="required"/>
|
|
</xs:extension>
|
|
</xs:simpleContent>
|
|
</xs:complexType>
|
|
</xs:element>
|
|
</xs:all>
|
|
<xs:attribute name="id" type="xs:positiveInteger" use="required"/>
|
|
<xs:attribute name="creds" type="xs:IDREF" use="required"/>
|
|
</xs:complexType>
|
|
|
|
</xs:schema>
|