blob: 8407a86e45514d879bd7c4aaff430e3c28ed2c80 [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"/>
Ju Pan13839ac2019-06-04 03:50:04 +0000103 <xs:element type="xs:nonNegativeInteger" name="endpointId"/>
Chengyu Fan514ed5e2014-04-17 13:07:30 -0600104 <xs:element type="xs:nonNegativeInteger" name="cost"/>
105 </xs:sequence>
106</xs:complexType>
107
108<xs:complexType name="fibEntryType">
109 <xs:sequence>
110 <xs:element type="xs:anyURI" name="prefix"/>
111 <xs:element name="nextHops">
112 <xs:complexType>
113 <xs:sequence>
114 <xs:element type="nfd:nextHopType" name="nextHop" maxOccurs="unbounded"/>
115 </xs:sequence>
116 </xs:complexType>
117 </xs:element>
118 </xs:sequence>
119</xs:complexType>
120
121<xs:complexType name="fibType">
122 <xs:sequence>
123 <xs:element type="nfd:fibEntryType" name="fibEntry" maxOccurs="unbounded" minOccurs="0"/>
124 </xs:sequence>
125</xs:complexType>
126
Chengyu Fan1c630ba2014-08-20 13:27:58 -0500127<xs:complexType name="ribFlagsType">
128 <xs:sequence>
Davide Pesavento4d826922018-02-11 23:05:48 -0500129 <xs:element type="nfd:emptyType" name="childInherit" minOccurs="0"/>
130 <xs:element type="nfd:emptyType" name="ribCapture" minOccurs="0"/>
Chengyu Fan1c630ba2014-08-20 13:27:58 -0500131 </xs:sequence>
132</xs:complexType>
133
Chengyu Fan30aa2072014-07-20 13:52:32 -0600134<xs:complexType name="routeType">
135 <xs:sequence>
136 <xs:element type="xs:nonNegativeInteger" name="faceId"/>
Davide Pesavento4d826922018-02-11 23:05:48 -0500137 <xs:element type="xs:string" name="origin"/>
Chengyu Fan30aa2072014-07-20 13:52:32 -0600138 <xs:element type="xs:nonNegativeInteger" name="cost"/>
Chengyu Fan1c630ba2014-08-20 13:27:58 -0500139 <xs:element type="nfd:ribFlagsType" name="flags"/>
Chengyu Fan30aa2072014-07-20 13:52:32 -0600140 <xs:element type="xs:duration" name="expirationPeriod" minOccurs="0"/>
141 </xs:sequence>
142</xs:complexType>
143
144<xs:complexType name="ribEntryType">
145 <xs:sequence>
146 <xs:element type="xs:anyURI" name="prefix"/>
147 <xs:element name="routes">
148 <xs:complexType>
149 <xs:sequence>
150 <xs:element type="nfd:routeType" name="route" maxOccurs="unbounded"/>
151 </xs:sequence>
152 </xs:complexType>
153 </xs:element>
154 </xs:sequence>
155</xs:complexType>
156
157<xs:complexType name="ribType">
158 <xs:sequence>
159 <xs:element type="nfd:ribEntryType" name="ribEntry" maxOccurs="unbounded" minOccurs="0"/>
160 </xs:sequence>
161</xs:complexType>
162
Davide Pesavento4d826922018-02-11 23:05:48 -0500163<xs:complexType name="csType">
164 <xs:sequence>
Junxiao Shi7a36ac72018-03-21 15:23:22 +0000165 <xs:element type="xs:nonNegativeInteger" name="capacity"/>
166 <xs:element type="nfd:emptyType" name="admitEnabled" minOccurs="0"/>
167 <xs:element type="nfd:emptyType" name="serveEnabled" minOccurs="0"/>
168 <xs:element type="xs:nonNegativeInteger" name="nEntries"/>
Davide Pesavento4d826922018-02-11 23:05:48 -0500169 <xs:element type="xs:nonNegativeInteger" name="nHits"/>
170 <xs:element type="xs:nonNegativeInteger" name="nMisses"/>
171 </xs:sequence>
172</xs:complexType>
173
Alexander Afanasyev0417d2a2014-06-08 10:56:43 +0300174<xs:complexType name="strategyType">
175 <xs:sequence>
176 <xs:element type="xs:anyURI" name="name"/>
177 </xs:sequence>
178</xs:complexType>
179
180<xs:complexType name="strategyChoiceType">
181 <xs:sequence>
182 <xs:element type="xs:anyURI" name="namespace"/>
183 <xs:element type="nfd:strategyType" name="strategy"/>
184 </xs:sequence>
185</xs:complexType>
186
187<xs:complexType name="strategyChoicesType">
188 <xs:sequence>
Davide Pesavento4d826922018-02-11 23:05:48 -0500189 <xs:element type="nfd:strategyChoiceType" name="strategyChoice" maxOccurs="unbounded" minOccurs="0"/>
Alexander Afanasyev0417d2a2014-06-08 10:56:43 +0300190 </xs:sequence>
191</xs:complexType>
192
Chengyu Fan514ed5e2014-04-17 13:07:30 -0600193<xs:element name="nfdStatus">
194 <xs:complexType>
195 <xs:sequence>
196 <xs:element type="nfd:generalStatusType" name="generalStatus"/>
Alexander Afanasyev0417d2a2014-06-08 10:56:43 +0300197 <xs:element type="nfd:channelsType" name="channels"/>
Chengyu Fan514ed5e2014-04-17 13:07:30 -0600198 <xs:element type="nfd:facesType" name="faces"/>
199 <xs:element type="nfd:fibType" name="fib"/>
Chengyu Fan30aa2072014-07-20 13:52:32 -0600200 <xs:element type="nfd:ribType" name="rib"/>
Davide Pesavento4d826922018-02-11 23:05:48 -0500201 <xs:element type="nfd:csType" name="cs"/>
Alexander Afanasyev0417d2a2014-06-08 10:56:43 +0300202 <xs:element type="nfd:strategyChoicesType" name="strategyChoices"/>
Chengyu Fan514ed5e2014-04-17 13:07:30 -0600203 </xs:sequence>
204 </xs:complexType>
205</xs:element>
206
207</xs:schema>