blob: 2ad1eebf914f116444b5bebedcd5e13827641749 [file] [log] [blame]
Chengyu Fan514ed5e2014-04-17 13:07:30 -06001<?xml version="1.0"?>
2
3<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
4targetNamespace="ndn:/localhost/nfd/status/1" xmlns:nfd="ndn:/localhost/nfd/status/1"
5elementFormDefault="qualified">
6
Eric Newberryde332452018-01-30 11:45:32 -07007<xs:simpleType name="emptyType">
8 <xs:restriction base="xs:string">
9 <xs:maxLength value="0"/>
10 </xs:restriction>
11</xs:simpleType>
12
Chengyu Fan514ed5e2014-04-17 13:07:30 -060013<xs:complexType name="unidirectionalPacketCountersType">
14 <xs:sequence>
15 <xs:element type="xs:nonNegativeInteger" name="nInterests"/>
16 <xs:element type="xs:nonNegativeInteger" name="nDatas"/>
17 </xs:sequence>
18</xs:complexType>
19
20<xs:complexType name="bidirectionalPacketCountersType">
21 <xs:sequence>
22 <xs:element type="nfd:unidirectionalPacketCountersType" name="incomingPackets"/>
23 <xs:element type="nfd:unidirectionalPacketCountersType" name="outgoingPackets"/>
24 </xs:sequence>
25</xs:complexType>
26
Chengyu Fan3331cfa2014-07-25 17:36:31 -060027<xs:complexType name="bidirectionalByteCountersType">
28 <xs:sequence>
29 <xs:element type="xs:nonNegativeInteger" name="incomingBytes"/>
30 <xs:element type="xs:nonNegativeInteger" name="outgoingBytes"/>
31 </xs:sequence>
32</xs:complexType>
33
Chengyu Fan514ed5e2014-04-17 13:07:30 -060034<xs:complexType name="generalStatusType">
35 <xs:sequence>
Chengyu Fan8a53caf2014-08-01 14:08:37 -060036 <xs:element type="xs:anyURI" name="nfdId"/>
Chengyu Fan514ed5e2014-04-17 13:07:30 -060037 <xs:element type="xs:string" name="version"/>
38 <xs:element type="xs:dateTime" name="startTime"/>
39 <xs:element type="xs:dateTime" name="currentTime"/>
40 <xs:element type="xs:duration" name="uptime"/>
41 <xs:element type="xs:nonNegativeInteger" name="nNameTreeEntries"/>
42 <xs:element type="xs:nonNegativeInteger" name="nFibEntries"/>
43 <xs:element type="xs:nonNegativeInteger" name="nPitEntries"/>
44 <xs:element type="xs:nonNegativeInteger" name="nMeasurementsEntries"/>
45 <xs:element type="xs:nonNegativeInteger" name="nCsEntries"/>
46 <xs:element type="nfd:bidirectionalPacketCountersType" name="packetCounters"/>
47 </xs:sequence>
48</xs:complexType>
49
Alexander Afanasyev0417d2a2014-06-08 10:56:43 +030050<xs:complexType name="channelType">
51 <xs:sequence>
52 <xs:element type="xs:anyURI" name="localUri"/>
53 </xs:sequence>
54</xs:complexType>
55
56<xs:complexType name="channelsType">
57 <xs:sequence>
58 <xs:element type="nfd:channelType" name="channel" maxOccurs="unbounded" minOccurs="0"/>
59 </xs:sequence>
60</xs:complexType>
61
Eric Newberryde332452018-01-30 11:45:32 -070062<xs:complexType name="congestionParamsType">
63 <xs:sequence>
64 <xs:element type="xs:duration" name="baseMarkingInterval" minOccurs="0"/>
65 <xs:element type="xs:nonNegativeInteger" name="defaultThreshold" minOccurs="0"/>
66 </xs:sequence>
67</xs:complexType>
68
69<xs:complexType name="faceFlagsType">
70 <xs:sequence>
71 <xs:element type="nfd:emptyType" name="localFieldsEnabled" minOccurs="0"/>
72 <xs:element type="nfd:emptyType" name="lpReliabilityEnabled" minOccurs="0"/>
73 <xs:element type="nfd:emptyType" name="congestionMarkingEnabled" minOccurs="0"/>
74 </xs:sequence>
75</xs:complexType>
76
Chengyu Fan514ed5e2014-04-17 13:07:30 -060077<xs:complexType name="faceType">
78 <xs:sequence>
79 <xs:element type="xs:nonNegativeInteger" name="faceId"/>
80 <xs:element type="xs:anyURI" name="remoteUri"/>
81 <xs:element type="xs:anyURI" name="localUri"/>
Chengyu Fan30aa2072014-07-20 13:52:32 -060082 <xs:element type="xs:duration" name="expirationPeriod" minOccurs="0"/>
Chengyu Fan27d570a2014-10-09 11:52:17 -060083 <xs:element type="xs:string" name="faceScope"/>
84 <xs:element type="xs:string" name="facePersistency"/>
85 <xs:element type="xs:string" name="linkType"/>
Eric Newberryde332452018-01-30 11:45:32 -070086 <xs:element type="nfd:congestionParamsType" name="congestion"/>
87 <xs:element type="nfd:faceFlagsType" name="flags"/>
Chengyu Fan514ed5e2014-04-17 13:07:30 -060088 <xs:element type="nfd:bidirectionalPacketCountersType" name="packetCounters"/>
Chengyu Fan3331cfa2014-07-25 17:36:31 -060089 <xs:element type="nfd:bidirectionalByteCountersType" name="byteCounters"/>
Chengyu Fan514ed5e2014-04-17 13:07:30 -060090 </xs:sequence>
91</xs:complexType>
92
93<xs:complexType name="facesType">
94 <xs:sequence>
95 <xs:element type="nfd:faceType" name="face" maxOccurs="unbounded" minOccurs="0"/>
96 </xs:sequence>
97</xs:complexType>
98
99<xs:complexType name="nextHopType">
100 <xs:sequence>
101 <xs:element type="xs:nonNegativeInteger" name="faceId"/>
102 <xs:element type="xs:nonNegativeInteger" name="cost"/>
103 </xs:sequence>
104</xs:complexType>
105
106<xs:complexType name="fibEntryType">
107 <xs:sequence>
108 <xs:element type="xs:anyURI" name="prefix"/>
109 <xs:element name="nextHops">
110 <xs:complexType>
111 <xs:sequence>
112 <xs:element type="nfd:nextHopType" name="nextHop" maxOccurs="unbounded"/>
113 </xs:sequence>
114 </xs:complexType>
115 </xs:element>
116 </xs:sequence>
117</xs:complexType>
118
119<xs:complexType name="fibType">
120 <xs:sequence>
121 <xs:element type="nfd:fibEntryType" name="fibEntry" maxOccurs="unbounded" minOccurs="0"/>
122 </xs:sequence>
123</xs:complexType>
124
Chengyu Fan1c630ba2014-08-20 13:27:58 -0500125<xs:complexType name="ribFlagsType">
126 <xs:sequence>
127 <xs:element type="xs:string" name="childInherit" minOccurs="0"/>
128 <xs:element type="xs:string" name="ribCapture" minOccurs="0"/>
129 </xs:sequence>
130</xs:complexType>
131
Chengyu Fan30aa2072014-07-20 13:52:32 -0600132<xs:complexType name="routeType">
133 <xs:sequence>
134 <xs:element type="xs:nonNegativeInteger" name="faceId"/>
135 <xs:element type="xs:nonNegativeInteger" name="origin"/>
136 <xs:element type="xs:nonNegativeInteger" name="cost"/>
Chengyu Fan1c630ba2014-08-20 13:27:58 -0500137 <xs:element type="nfd:ribFlagsType" name="flags"/>
Chengyu Fan30aa2072014-07-20 13:52:32 -0600138 <xs:element type="xs:duration" name="expirationPeriod" minOccurs="0"/>
139 </xs:sequence>
140</xs:complexType>
141
142<xs:complexType name="ribEntryType">
143 <xs:sequence>
144 <xs:element type="xs:anyURI" name="prefix"/>
145 <xs:element name="routes">
146 <xs:complexType>
147 <xs:sequence>
148 <xs:element type="nfd:routeType" name="route" maxOccurs="unbounded"/>
149 </xs:sequence>
150 </xs:complexType>
151 </xs:element>
152 </xs:sequence>
153</xs:complexType>
154
155<xs:complexType name="ribType">
156 <xs:sequence>
157 <xs:element type="nfd:ribEntryType" name="ribEntry" maxOccurs="unbounded" minOccurs="0"/>
158 </xs:sequence>
159</xs:complexType>
160
Alexander Afanasyev0417d2a2014-06-08 10:56:43 +0300161<xs:complexType name="strategyType">
162 <xs:sequence>
163 <xs:element type="xs:anyURI" name="name"/>
164 </xs:sequence>
165</xs:complexType>
166
167<xs:complexType name="strategyChoiceType">
168 <xs:sequence>
169 <xs:element type="xs:anyURI" name="namespace"/>
170 <xs:element type="nfd:strategyType" name="strategy"/>
171 </xs:sequence>
172</xs:complexType>
173
174<xs:complexType name="strategyChoicesType">
175 <xs:sequence>
176 <xs:element type="nfd:strategyChoiceType" name="strategyChoice"
177 maxOccurs="unbounded" minOccurs="0"/>
178 </xs:sequence>
179</xs:complexType>
180
Chengyu Fan514ed5e2014-04-17 13:07:30 -0600181<xs:element name="nfdStatus">
182 <xs:complexType>
183 <xs:sequence>
184 <xs:element type="nfd:generalStatusType" name="generalStatus"/>
Alexander Afanasyev0417d2a2014-06-08 10:56:43 +0300185 <xs:element type="nfd:channelsType" name="channels"/>
Chengyu Fan514ed5e2014-04-17 13:07:30 -0600186 <xs:element type="nfd:facesType" name="faces"/>
187 <xs:element type="nfd:fibType" name="fib"/>
Chengyu Fan30aa2072014-07-20 13:52:32 -0600188 <xs:element type="nfd:ribType" name="rib"/>
Alexander Afanasyev0417d2a2014-06-08 10:56:43 +0300189 <xs:element type="nfd:strategyChoicesType" name="strategyChoices"/>
Chengyu Fan514ed5e2014-04-17 13:07:30 -0600190 </xs:sequence>
191 </xs:complexType>
192</xs:element>
193
194</xs:schema>