blob: 0052162e2d3900a56fc71400608830d392af05de [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"
Davide Pesavento4d826922018-02-11 23:05:48 -05004 xmlns:nfd="ndn:/localhost/nfd/status/1"
5 targetNamespace="ndn:/localhost/nfd/status/1"
6 elementFormDefault="qualified">
Chengyu Fan514ed5e2014-04-17 13:07:30 -06007
Davide Pesavento4d826922018-02-11 23:05:48 -05008<xs:complexType name="emptyType">
9 <xs:sequence/>
10</xs:complexType>
Eric Newberryde332452018-01-30 11:45:32 -070011
Chengyu Fan514ed5e2014-04-17 13:07:30 -060012<xs:complexType name="unidirectionalPacketCountersType">
13 <xs:sequence>
14 <xs:element type="xs:nonNegativeInteger" name="nInterests"/>
Davide Pesavento4d826922018-02-11 23:05:48 -050015 <xs:element type="xs:nonNegativeInteger" name="nData"/>
16 <xs:element type="xs:nonNegativeInteger" name="nNacks"/>
Chengyu Fan514ed5e2014-04-17 13:07:30 -060017 </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>
36 <xs:element type="xs:string" name="version"/>
37 <xs:element type="xs:dateTime" name="startTime"/>
38 <xs:element type="xs:dateTime" name="currentTime"/>
39 <xs:element type="xs:duration" name="uptime"/>
40 <xs:element type="xs:nonNegativeInteger" name="nNameTreeEntries"/>
41 <xs:element type="xs:nonNegativeInteger" name="nFibEntries"/>
42 <xs:element type="xs:nonNegativeInteger" name="nPitEntries"/>
43 <xs:element type="xs:nonNegativeInteger" name="nMeasurementsEntries"/>
44 <xs:element type="xs:nonNegativeInteger" name="nCsEntries"/>
45 <xs:element type="nfd:bidirectionalPacketCountersType" name="packetCounters"/>
Ju Pan7570e772018-10-27 03:33:58 +000046 <xs:element type="xs:nonNegativeInteger" name="nSatisfiedInterests"/>
47 <xs:element type="xs:nonNegativeInteger" name="nUnsatisfiedInterests"/>
Chengyu Fan514ed5e2014-04-17 13:07:30 -060048 </xs:sequence>
49</xs:complexType>
50
Alexander Afanasyev0417d2a2014-06-08 10:56:43 +030051<xs:complexType name="channelType">
52 <xs:sequence>
53 <xs:element type="xs:anyURI" name="localUri"/>
54 </xs:sequence>
55</xs:complexType>
56
57<xs:complexType name="channelsType">
58 <xs:sequence>
59 <xs:element type="nfd:channelType" name="channel" maxOccurs="unbounded" minOccurs="0"/>
60 </xs:sequence>
61</xs:complexType>
62
Eric Newberryde332452018-01-30 11:45:32 -070063<xs:complexType name="congestionParamsType">
64 <xs:sequence>
65 <xs:element type="xs:duration" name="baseMarkingInterval" minOccurs="0"/>
66 <xs:element type="xs:nonNegativeInteger" name="defaultThreshold" minOccurs="0"/>
67 </xs:sequence>
68</xs:complexType>
69
70<xs:complexType name="faceFlagsType">
71 <xs:sequence>
72 <xs:element type="nfd:emptyType" name="localFieldsEnabled" minOccurs="0"/>
73 <xs:element type="nfd:emptyType" name="lpReliabilityEnabled" minOccurs="0"/>
74 <xs:element type="nfd:emptyType" name="congestionMarkingEnabled" minOccurs="0"/>
75 </xs:sequence>
76</xs:complexType>
77
Chengyu Fan514ed5e2014-04-17 13:07:30 -060078<xs:complexType name="faceType">
79 <xs:sequence>
80 <xs:element type="xs:nonNegativeInteger" name="faceId"/>
81 <xs:element type="xs:anyURI" name="remoteUri"/>
82 <xs:element type="xs:anyURI" name="localUri"/>
Chengyu Fan30aa2072014-07-20 13:52:32 -060083 <xs:element type="xs:duration" name="expirationPeriod" minOccurs="0"/>
Chengyu Fan27d570a2014-10-09 11:52:17 -060084 <xs:element type="xs:string" name="faceScope"/>
85 <xs:element type="xs:string" name="facePersistency"/>
86 <xs:element type="xs:string" name="linkType"/>
Eric Newberryde332452018-01-30 11:45:32 -070087 <xs:element type="nfd:congestionParamsType" name="congestion"/>
88 <xs:element type="nfd:faceFlagsType" name="flags"/>
Chengyu Fan514ed5e2014-04-17 13:07:30 -060089 <xs:element type="nfd:bidirectionalPacketCountersType" name="packetCounters"/>
Chengyu Fan3331cfa2014-07-25 17:36:31 -060090 <xs:element type="nfd:bidirectionalByteCountersType" name="byteCounters"/>
Chengyu Fan514ed5e2014-04-17 13:07:30 -060091 </xs:sequence>
92</xs:complexType>
93
94<xs:complexType name="facesType">
95 <xs:sequence>
96 <xs:element type="nfd:faceType" name="face" maxOccurs="unbounded" minOccurs="0"/>
97 </xs:sequence>
98</xs:complexType>
99
100<xs:complexType name="nextHopType">
101 <xs:sequence>
102 <xs:element type="xs:nonNegativeInteger" name="faceId"/>
103 <xs:element type="xs:nonNegativeInteger" name="cost"/>
104 </xs:sequence>
105</xs:complexType>
106
107<xs:complexType name="fibEntryType">
108 <xs:sequence>
109 <xs:element type="xs:anyURI" name="prefix"/>
110 <xs:element name="nextHops">
111 <xs:complexType>
112 <xs:sequence>
113 <xs:element type="nfd:nextHopType" name="nextHop" maxOccurs="unbounded"/>
114 </xs:sequence>
115 </xs:complexType>
116 </xs:element>
117 </xs:sequence>
118</xs:complexType>
119
120<xs:complexType name="fibType">
121 <xs:sequence>
122 <xs:element type="nfd:fibEntryType" name="fibEntry" maxOccurs="unbounded" minOccurs="0"/>
123 </xs:sequence>
124</xs:complexType>
125
Chengyu Fan1c630ba2014-08-20 13:27:58 -0500126<xs:complexType name="ribFlagsType">
127 <xs:sequence>
Davide Pesavento4d826922018-02-11 23:05:48 -0500128 <xs:element type="nfd:emptyType" name="childInherit" minOccurs="0"/>
129 <xs:element type="nfd:emptyType" name="ribCapture" minOccurs="0"/>
Chengyu Fan1c630ba2014-08-20 13:27:58 -0500130 </xs:sequence>
131</xs:complexType>
132
Chengyu Fan30aa2072014-07-20 13:52:32 -0600133<xs:complexType name="routeType">
134 <xs:sequence>
135 <xs:element type="xs:nonNegativeInteger" name="faceId"/>
Davide Pesavento4d826922018-02-11 23:05:48 -0500136 <xs:element type="xs:string" name="origin"/>
Chengyu Fan30aa2072014-07-20 13:52:32 -0600137 <xs:element type="xs:nonNegativeInteger" name="cost"/>
Chengyu Fan1c630ba2014-08-20 13:27:58 -0500138 <xs:element type="nfd:ribFlagsType" name="flags"/>
Chengyu Fan30aa2072014-07-20 13:52:32 -0600139 <xs:element type="xs:duration" name="expirationPeriod" minOccurs="0"/>
140 </xs:sequence>
141</xs:complexType>
142
143<xs:complexType name="ribEntryType">
144 <xs:sequence>
145 <xs:element type="xs:anyURI" name="prefix"/>
146 <xs:element name="routes">
147 <xs:complexType>
148 <xs:sequence>
149 <xs:element type="nfd:routeType" name="route" maxOccurs="unbounded"/>
150 </xs:sequence>
151 </xs:complexType>
152 </xs:element>
153 </xs:sequence>
154</xs:complexType>
155
156<xs:complexType name="ribType">
157 <xs:sequence>
158 <xs:element type="nfd:ribEntryType" name="ribEntry" maxOccurs="unbounded" minOccurs="0"/>
159 </xs:sequence>
160</xs:complexType>
161
Davide Pesavento4d826922018-02-11 23:05:48 -0500162<xs:complexType name="csType">
163 <xs:sequence>
Junxiao Shi7a36ac72018-03-21 15:23:22 +0000164 <xs:element type="xs:nonNegativeInteger" name="capacity"/>
165 <xs:element type="nfd:emptyType" name="admitEnabled" minOccurs="0"/>
166 <xs:element type="nfd:emptyType" name="serveEnabled" minOccurs="0"/>
167 <xs:element type="xs:nonNegativeInteger" name="nEntries"/>
Davide Pesavento4d826922018-02-11 23:05:48 -0500168 <xs:element type="xs:nonNegativeInteger" name="nHits"/>
169 <xs:element type="xs:nonNegativeInteger" name="nMisses"/>
170 </xs:sequence>
171</xs:complexType>
172
Alexander Afanasyev0417d2a2014-06-08 10:56:43 +0300173<xs:complexType name="strategyType">
174 <xs:sequence>
175 <xs:element type="xs:anyURI" name="name"/>
176 </xs:sequence>
177</xs:complexType>
178
179<xs:complexType name="strategyChoiceType">
180 <xs:sequence>
181 <xs:element type="xs:anyURI" name="namespace"/>
182 <xs:element type="nfd:strategyType" name="strategy"/>
183 </xs:sequence>
184</xs:complexType>
185
186<xs:complexType name="strategyChoicesType">
187 <xs:sequence>
Davide Pesavento4d826922018-02-11 23:05:48 -0500188 <xs:element type="nfd:strategyChoiceType" name="strategyChoice" maxOccurs="unbounded" minOccurs="0"/>
Alexander Afanasyev0417d2a2014-06-08 10:56:43 +0300189 </xs:sequence>
190</xs:complexType>
191
Chengyu Fan514ed5e2014-04-17 13:07:30 -0600192<xs:element name="nfdStatus">
193 <xs:complexType>
194 <xs:sequence>
195 <xs:element type="nfd:generalStatusType" name="generalStatus"/>
Alexander Afanasyev0417d2a2014-06-08 10:56:43 +0300196 <xs:element type="nfd:channelsType" name="channels"/>
Chengyu Fan514ed5e2014-04-17 13:07:30 -0600197 <xs:element type="nfd:facesType" name="faces"/>
198 <xs:element type="nfd:fibType" name="fib"/>
Chengyu Fan30aa2072014-07-20 13:52:32 -0600199 <xs:element type="nfd:ribType" name="rib"/>
Davide Pesavento4d826922018-02-11 23:05:48 -0500200 <xs:element type="nfd:csType" name="cs"/>
Alexander Afanasyev0417d2a2014-06-08 10:56:43 +0300201 <xs:element type="nfd:strategyChoicesType" name="strategyChoices"/>
Chengyu Fan514ed5e2014-04-17 13:07:30 -0600202 </xs:sequence>
203 </xs:complexType>
204</xs:element>
205
206</xs:schema>