xml/schema/lib/elements/he_ipv6.xsd

50 lines
2.0 KiB
XML
Raw Normal View History

2020-05-11 16:21:22 -04:00
<?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"/>
2020-05-11 17:11:12 -04:00
<xs:include schemaLocation="../types/linux.xsd"/>
2020-05-11 16:21:22 -04:00
<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"/>
2020-05-14 04:04:48 -04:00
<xs:element name="password" type="xs:token" minOccurs="1"/>
2020-05-11 16:21:22 -04:00
</xs:all>
<xs:attribute name="id" type="xs:ID" use="required"/>
</xs:complexType>
<xs:complexType name="e_he_ipv6_tunnel">
<xs:all>
2020-05-14 17:11:54 -04:00
<xs:element name="updateKey" type="xs:token" minOccurs="1"/>
<xs:element name="assignments" minOccurs="1" maxOccurs="1">
2020-05-11 16:21:22 -04:00
<xs:complexType>
<xs:sequence minOccurs="1" maxOccurs="unbounded">
<xs:element name="assign" minOccurs="1" maxOccurs="unbounded">
<xs:complexType>
2020-05-15 18:01:10 -04:00
<xs:all>
<xs:element name="ra" type="t_he_ipv6_ra" minOccurs="0" maxOccurs="1"/>
</xs:all>
2020-05-14 04:04:48 -04:00
<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="iface" type="t_linux_iface_name" use="required"/>
</xs:complexType>
</xs:element>
</xs:sequence>
2020-05-15 18:01:10 -04:00
<xs:attribute name="raProvider" type="t_he_ipv6_ra_providers" use="optional"/>
2020-05-11 16:21:22 -04:00
</xs:complexType>
2020-05-14 04:04:48 -04:00
<xs:unique name="uniq_he_assign">
<xs:selector xpath=".//*"/>
<!-- <xs:field xpath="@prefix"/> -->
<xs:field xpath="@alloc"/>
<xs:field xpath="@iface"/>
</xs:unique>
2020-05-11 16:21:22 -04:00
</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>