blob: 89d07bb68c78cc6a625f7395520f6d3a0fe49dc7 [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"/>
46 </xs:sequence>
47</xs:complexType>
48
Alexander Afanasyev0417d2a2014-06-08 10:56:43 +030049<xs:complexType name="channelType">
50 <xs:sequence>
51 <xs:element type="xs:anyURI" name="localUri"/>
52 </xs:sequence>
53</xs:complexType>
54
55<xs:complexType name="channelsType">
56 <xs:sequence>
57 <xs:element type="nfd:channelType" name="channel" maxOccurs="unbounded" minOccurs="0"/>
58 </xs:sequence>
59</xs:complexType>
60
Eric Newberryde332452018-01-30 11:45:32 -070061<xs:complexType name="congestionParamsType">
62 <xs:sequence>
63 <xs:element type="xs:duration" name="baseMarkingInterval" minOccurs="0"/>
64 <xs:element type="xs:nonNegativeInteger" name="defaultThreshold" minOccurs="0"/>
65 </xs:sequence>
66</xs:complexType>
67
68<xs:complexType name="faceFlagsType">
69 <xs:sequence>
70 <xs:element type="nfd:emptyType" name="localFieldsEnabled" minOccurs="0"/>
71 <xs:element type="nfd:emptyType" name="lpReliabilityEnabled" minOccurs="0"/>
72 <xs:element type="nfd:emptyType" name="congestionMarkingEnabled" minOccurs="0"/>
73 </xs:sequence>
74</xs:complexType>
75
Chengyu Fan514ed5e2014-04-17 13:07:30 -060076<xs:complexType name="faceType">
77 <xs:sequence>
78 <xs:element type="xs:nonNegativeInteger" name="faceId"/>
79 <xs:element type="xs:anyURI" name="remoteUri"/>
80 <xs:element type="xs:anyURI" name="localUri"/>
Chengyu Fan30aa2072014-07-20 13:52:32 -060081 <xs:element type="xs:duration" name="expirationPeriod" minOccurs="0"/>
Chengyu Fan27d570a2014-10-09 11:52:17 -060082 <xs:element type="xs:string" name="faceScope"/>
83 <xs:element type="xs:string" name="facePersistency"/>
84 <xs:element type="xs:string" name="linkType"/>
Eric Newberryde332452018-01-30 11:45:32 -070085 <xs:element type="nfd:congestionParamsType" name="congestion"/>
86 <xs:element type="nfd:faceFlagsType" name="flags"/>
Chengyu Fan514ed5e2014-04-17 13:07:30 -060087 <xs:element type="nfd:bidirectionalPacketCountersType" name="packetCounters"/>
Chengyu Fan3331cfa2014-07-25 17:36:31 -060088 <xs:element type="nfd:bidirectionalByteCountersType" name="byteCounters"/>
Chengyu Fan514ed5e2014-04-17 13:07:30 -060089 </xs:sequence>
90</xs:complexType>
91
92<xs:complexType name="facesType">
93 <xs:sequence>
94 <xs:element type="nfd:faceType" name="face" maxOccurs="unbounded" minOccurs="0"/>
95 </xs:sequence>
96</xs:complexType>
97
98<xs:complexType name="nextHopType">
99 <xs:sequence>
100 <xs:element type="xs:nonNegativeInteger" name="faceId"/>
101 <xs:element type="xs:nonNegativeInteger" name="cost"/>
102 </xs:sequence>
103</xs:complexType>
104
105<xs:complexType name="fibEntryType">
106 <xs:sequence>
107 <xs:element type="xs:anyURI" name="prefix"/>
108 <xs:element name="nextHops">
109 <xs:complexType>
110 <xs:sequence>
111 <xs:element type="nfd:nextHopType" name="nextHop" maxOccurs="unbounded"/>
112 </xs:sequence>
113 </xs:complexType>
114 </xs:element>
115 </xs:sequence>
116</xs:complexType>
117
118<xs:complexType name="fibType">
119 <xs:sequence>
120 <xs:element type="nfd:fibEntryType" name="fibEntry" maxOccurs="unbounded" minOccurs="0"/>
121 </xs:sequence>
122</xs:complexType>
123
Chengyu Fan1c630ba2014-08-20 13:27:58 -0500124<xs:complexType name="ribFlagsType">
125 <xs:sequence>
Davide Pesavento4d826922018-02-11 23:05:48 -0500126 <xs:element type="nfd:emptyType" name="childInherit" minOccurs="0"/>
127 <xs:element type="nfd:emptyType" name="ribCapture" minOccurs="0"/>
Chengyu Fan1c630ba2014-08-20 13:27:58 -0500128 </xs:sequence>
129</xs:complexType>
130
Chengyu Fan30aa2072014-07-20 13:52:32 -0600131<xs:complexType name="routeType">
132 <xs:sequence>
133 <xs:element type="xs:nonNegativeInteger" name="faceId"/>
Davide Pesavento4d826922018-02-11 23:05:48 -0500134 <xs:element type="xs:string" name="origin"/>
Chengyu Fan30aa2072014-07-20 13:52:32 -0600135 <xs:element type="xs:nonNegativeInteger" name="cost"/>
Chengyu Fan1c630ba2014-08-20 13:27:58 -0500136 <xs:element type="nfd:ribFlagsType" name="flags"/>
Chengyu Fan30aa2072014-07-20 13:52:32 -0600137 <xs:element type="xs:duration" name="expirationPeriod" minOccurs="0"/>
138 </xs:sequence>
139</xs:complexType>
140
141<xs:complexType name="ribEntryType">
142 <xs:sequence>
143 <xs:element type="xs:anyURI" name="prefix"/>
144 <xs:element name="routes">
145 <xs:complexType>
146 <xs:sequence>
147 <xs:element type="nfd:routeType" name="route" maxOccurs="unbounded"/>
148 </xs:sequence>
149 </xs:complexType>
150 </xs:element>
151 </xs:sequence>
152</xs:complexType>
153
154<xs:complexType name="ribType">
155 <xs:sequence>
156 <xs:element type="nfd:ribEntryType" name="ribEntry" maxOccurs="unbounded" minOccurs="0"/>
157 </xs:sequence>
158</xs:complexType>
159
Davide Pesavento4d826922018-02-11 23:05:48 -0500160<xs:complexType name="csType">
161 <xs:sequence>
Junxiao Shi7a36ac72018-03-21 15:23:22 +0000162 <xs:element type="xs:nonNegativeInteger" name="capacity"/>
163 <xs:element type="nfd:emptyType" name="admitEnabled" minOccurs="0"/>
164 <xs:element type="nfd:emptyType" name="serveEnabled" minOccurs="0"/>
165 <xs:element type="xs:nonNegativeInteger" name="nEntries"/>
Davide Pesavento4d826922018-02-11 23:05:48 -0500166 <xs:element type="xs:nonNegativeInteger" name="nHits"/>
167 <xs:element type="xs:nonNegativeInteger" name="nMisses"/>
168 </xs:sequence>
169</xs:complexType>
170
Alexander Afanasyev0417d2a2014-06-08 10:56:43 +0300171<xs:complexType name="strategyType">
172 <xs:sequence>
173 <xs:element type="xs:anyURI" name="name"/>
174 </xs:sequence>
175</xs:complexType>
176
177<xs:complexType name="strategyChoiceType">
178 <xs:sequence>
179 <xs:element type="xs:anyURI" name="namespace"/>
180 <xs:element type="nfd:strategyType" name="strategy"/>
181 </xs:sequence>
182</xs:complexType>
183
184<xs:complexType name="strategyChoicesType">
185 <xs:sequence>
Davide Pesavento4d826922018-02-11 23:05:48 -0500186 <xs:element type="nfd:strategyChoiceType" name="strategyChoice" maxOccurs="unbounded" minOccurs="0"/>
Alexander Afanasyev0417d2a2014-06-08 10:56:43 +0300187 </xs:sequence>
188</xs:complexType>
189
Chengyu Fan514ed5e2014-04-17 13:07:30 -0600190<xs:element name="nfdStatus">
191 <xs:complexType>
192 <xs:sequence>
193 <xs:element type="nfd:generalStatusType" name="generalStatus"/>
Alexander Afanasyev0417d2a2014-06-08 10:56:43 +0300194 <xs:element type="nfd:channelsType" name="channels"/>
Chengyu Fan514ed5e2014-04-17 13:07:30 -0600195 <xs:element type="nfd:facesType" name="faces"/>
196 <xs:element type="nfd:fibType" name="fib"/>
Chengyu Fan30aa2072014-07-20 13:52:32 -0600197 <xs:element type="nfd:ribType" name="rib"/>
Davide Pesavento4d826922018-02-11 23:05:48 -0500198 <xs:element type="nfd:csType" name="cs"/>
Alexander Afanasyev0417d2a2014-06-08 10:56:43 +0300199 <xs:element type="nfd:strategyChoicesType" name="strategyChoices"/>
Chengyu Fan514ed5e2014-04-17 13:07:30 -0600200 </xs:sequence>
201 </xs:complexType>
202</xs:element>
203
204</xs:schema>