1 <?xml version="1.0" encoding="UTF-8"?>
3 Copyright (c) 2000-2014 Ericsson Telecom AB
5 All rights reserved. This program and the accompanying materials
6 are made available under the terms of the Eclipse Public License v1.0
7 which accompanies this distribution, and is available at
8 http://www.eclipse.org/legal/epl-v10.html
10 <xs:schema targetNamespace="http://tail-f.com/ns/confd/1.0"
11 xmlns="http://tail-f.com/ns/confd/1.0"
12 xmlns:xs="http://www.w3.org/2001/XMLSchema"
14 <xs:import namespace="http://www.w3.org/2001/XMLSchema"
15 schemaLocation="XMLSchema.xsd"/>
17 <xs:simpleType name="inetAddress">
18 <xs:union memberTypes="inetAddressIP inetAddressDNS"/>
21 <xs:simpleType name="inetAddressIP">
22 <xs:union memberTypes="inetAddressIPv4 inetAddressIPv6"/>
25 <xs:simpleType name="inetAddressIPv4">
26 <xs:restriction base="xs:string">
27 <xs:minLength value="7"/>
28 <xs:maxLength value="15"/>
29 <xs:pattern value="(([0-1]?[0-9]?[0-9]|2[0-4][0-9]|25[0-5])\.){1,3}([0-1]?[0-9]?[0-9]|2[0-4][0-9]|25[0-5])"/>
34 <xs:simpleType name="inetAddressIPv6">
35 <xs:restriction base="xs:string">
36 <xs:minLength value="0"/>
37 <xs:maxLength value="39"/>
39 <xs:pattern value="(([0-9a-fA-F]{1,4}:){7})([0-9a-fA-F]{1,4})"/>
41 <xs:pattern value="(([0-9a-fA-F]{1,4}:){6})(([0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}))"/>
43 <xs:pattern value="(([0-9a-fA-F]{1,4}:)*([0-9a-fA-F]{1,4}))*(::)(([0-9a-fA-F]{1,4}:)*([0-9a-fA-F]{1,4}))*"/>
44 <!-- Shortened mixed -->
45 <xs:pattern value="(([0-9a-fA-F]{1,4}:)*([0-9a-fA-F]{1,4}))*(::)(([0-9a-fA-F]{1,4}:)*([0-9a-fA-F]{1,4}))*(([0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}))"/>
49 <xs:simpleType name="inetAddressDNS">
50 <xs:restriction base="xs:string"/>
53 <xs:simpleType name="inetPortNumber">
54 <xs:restriction base="xs:unsignedShort"/>
57 <xs:simpleType name="size">
58 <xs:restriction base="xs:string">
59 <xs:pattern value="S([0-9]+G)?([0-9]+M)?([0-9]+K)?([0-9]+B)?"/>
63 <xs:simpleType name="MD5DigestString">
64 <xs:restriction base="xs:string"/>
67 <xs:simpleType name="DES3CBCEncryptedString">
68 <xs:restriction base="xs:string"/>
71 <xs:simpleType name="AESCFB128EncryptedString">
72 <xs:restriction base="xs:string"/>
75 <xs:simpleType name="atom">
76 <xs:restriction base="xs:string"/>
79 <xs:simpleType name="hexValue">
80 <xs:restriction base="xs:string">
81 <xs:pattern value="[0-9a-fA-F]*"/>
85 <xs:simpleType name="hexList">
86 <xs:restriction base="xs:string">
87 <xs:pattern value="([0-9a-fA-F][0-9a-fA-F]:)*([0-9a-fA-F][0-9a-fA-F])"/>
88 <xs:pattern value=""/>
92 <xs:simpleType name="octetList">
93 <xs:restriction base="xs:string">
94 <xs:pattern value="(([0-1]?[0-9]?[0-9]|2[0-4][0-9]|25[0-5])\.)*([0-1]?[0-9]?[0-9]|2[0-4][0-9]|25[0-5])"/>
98 <xs:simpleType name="oid">
99 <xs:restriction base="xs:string">
100 <xs:pattern value="(([0-9]?[0-9]*)\.)*([0-9]?[0-9]*)?"/>
104 <xs:simpleType name="objectRef">
105 <xs:restriction base="xs:string">
109 <xs:simpleType name="Counter32">
110 <xs:restriction base="xs:unsignedInt">
114 <xs:simpleType name="Counter64">
115 <xs:restriction base="xs:unsignedLong">
119 <xs:simpleType name="Gauge32">
120 <xs:restriction base="xs:unsignedInt">
124 <xs:simpleType name="ipPrefix">
128 <xs:restriction base="ipv4Prefix">
132 <xs:restriction base="ipv6Prefix">
138 <xs:simpleType name="ipv4Prefix">
140 <xs:restriction base="xs:string">
141 <xs:pattern value="(([0-1]?[0-9]?[0-9]|2[0-4][0-9]|25[0-5])\.){3}([0-1]?[0-9]?[0-9]|2[0-4][0-9]|25[0-5])/\p{N}+"/>
145 <xs:simpleType name="ipv6Prefix">
147 <xs:restriction base="xs:string">
148 <xs:pattern value="((([0-9a-fA-F]{1,4}:){7})([0-9a-fA-F]{1,4})/\p{N}+)|((([0-9a-fA-F]{1,4}:){6})(([0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}))/\p{N}+)|((([0-9a-fA-F]{1,4}:)*([0-9a-fA-F]{1,4}))*(::)(([0-9a-fA-F]{1,4}:)*([0-9a-fA-F]{1,4}))*/\p{N}+)((([0-9a-fA-F]{1,4}:)*([0-9a-fA-F]{1,4}))*(::)(([0-9a-fA-F]{1,4}:)*([0-9a-fA-F]{1,4}))*(([0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}))/\p{N}+)"/>
152 <xs:attribute name="default" type="xs:anySimpleType">
155 <xs:attribute name="config" type="xs:boolean">
158 <xs:element name="errorMessage">
160 <xs:restriction base="xs:string"/>