blob: 6a080a78d5229ec113cd091e8913944a5fcb3a44 [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
7<xs:complexType name="unidirectionalPacketCountersType">
8 <xs:sequence>
9 <xs:element type="xs:nonNegativeInteger" name="nInterests"/>
10 <xs:element type="xs:nonNegativeInteger" name="nDatas"/>
11 </xs:sequence>
12</xs:complexType>
13
14<xs:complexType name="bidirectionalPacketCountersType">
15 <xs:sequence>
16 <xs:element type="nfd:unidirectionalPacketCountersType" name="incomingPackets"/>
17 <xs:element type="nfd:unidirectionalPacketCountersType" name="outgoingPackets"/>
18 </xs:sequence>
19</xs:complexType>
20
Chengyu Fan3331cfa2014-07-25 17:36:31 -060021<xs:complexType name="bidirectionalByteCountersType">
22 <xs:sequence>
23 <xs:element type="xs:nonNegativeInteger" name="incomingBytes"/>
24 <xs:element type="xs:nonNegativeInteger" name="outgoingBytes"/>
25 </xs:sequence>
26</xs:complexType>
27
Chengyu Fan514ed5e2014-04-17 13:07:30 -060028<xs:complexType name="generalStatusType">
29 <xs:sequence>
30 <xs:element type="xs:string" name="version"/>
31 <xs:element type="xs:dateTime" name="startTime"/>
32 <xs:element type="xs:dateTime" name="currentTime"/>
33 <xs:element type="xs:duration" name="uptime"/>
34 <xs:element type="xs:nonNegativeInteger" name="nNameTreeEntries"/>
35 <xs:element type="xs:nonNegativeInteger" name="nFibEntries"/>
36 <xs:element type="xs:nonNegativeInteger" name="nPitEntries"/>
37 <xs:element type="xs:nonNegativeInteger" name="nMeasurementsEntries"/>
38 <xs:element type="xs:nonNegativeInteger" name="nCsEntries"/>
39 <xs:element type="nfd:bidirectionalPacketCountersType" name="packetCounters"/>
40 </xs:sequence>
41</xs:complexType>
42
Alexander Afanasyev0417d2a2014-06-08 10:56:43 +030043<xs:complexType name="channelType">
44 <xs:sequence>
45 <xs:element type="xs:anyURI" name="localUri"/>
46 </xs:sequence>
47</xs:complexType>
48
49<xs:complexType name="channelsType">
50 <xs:sequence>
51 <xs:element type="nfd:channelType" name="channel" maxOccurs="unbounded" minOccurs="0"/>
52 </xs:sequence>
53</xs:complexType>
54
Alexander Afanasyevd3967a22014-06-30 12:22:10 -070055<xs:complexType name="faceFlagsType">
56 <xs:sequence>
Chengyu Fan30aa2072014-07-20 13:52:32 -060057 <xs:element type="xs:string" name="local" minOccurs="0"/>
58 <xs:element type="xs:string" name="on-demand" minOccurs="0"/>
Alexander Afanasyevd3967a22014-06-30 12:22:10 -070059 </xs:sequence>
60</xs:complexType>
61
Chengyu Fan514ed5e2014-04-17 13:07:30 -060062<xs:complexType name="faceType">
63 <xs:sequence>
64 <xs:element type="xs:nonNegativeInteger" name="faceId"/>
65 <xs:element type="xs:anyURI" name="remoteUri"/>
66 <xs:element type="xs:anyURI" name="localUri"/>
Chengyu Fan30aa2072014-07-20 13:52:32 -060067 <xs:element type="xs:duration" name="expirationPeriod" minOccurs="0"/>
Chengyu Fan514ed5e2014-04-17 13:07:30 -060068 <xs:element type="nfd:bidirectionalPacketCountersType" name="packetCounters"/>
Chengyu Fan3331cfa2014-07-25 17:36:31 -060069 <xs:element type="nfd:bidirectionalByteCountersType" name="byteCounters"/>
Chengyu Fan30aa2072014-07-20 13:52:32 -060070 <xs:element type="nfd:faceFlagsType" name="flags" minOccurs="0"/>
Chengyu Fan514ed5e2014-04-17 13:07:30 -060071 </xs:sequence>
72</xs:complexType>
73
74<xs:complexType name="facesType">
75 <xs:sequence>
76 <xs:element type="nfd:faceType" name="face" maxOccurs="unbounded" minOccurs="0"/>
77 </xs:sequence>
78</xs:complexType>
79
80<xs:complexType name="nextHopType">
81 <xs:sequence>
82 <xs:element type="xs:nonNegativeInteger" name="faceId"/>
83 <xs:element type="xs:nonNegativeInteger" name="cost"/>
84 </xs:sequence>
85</xs:complexType>
86
87<xs:complexType name="fibEntryType">
88 <xs:sequence>
89 <xs:element type="xs:anyURI" name="prefix"/>
90 <xs:element name="nextHops">
91 <xs:complexType>
92 <xs:sequence>
93 <xs:element type="nfd:nextHopType" name="nextHop" maxOccurs="unbounded"/>
94 </xs:sequence>
95 </xs:complexType>
96 </xs:element>
97 </xs:sequence>
98</xs:complexType>
99
100<xs:complexType name="fibType">
101 <xs:sequence>
102 <xs:element type="nfd:fibEntryType" name="fibEntry" maxOccurs="unbounded" minOccurs="0"/>
103 </xs:sequence>
104</xs:complexType>
105
Chengyu Fan30aa2072014-07-20 13:52:32 -0600106<xs:complexType name="routeType">
107 <xs:sequence>
108 <xs:element type="xs:nonNegativeInteger" name="faceId"/>
109 <xs:element type="xs:nonNegativeInteger" name="origin"/>
110 <xs:element type="xs:nonNegativeInteger" name="cost"/>
111 <xs:element type="xs:nonNegativeInteger" name="flags"/>
112 <xs:element type="xs:duration" name="expirationPeriod" minOccurs="0"/>
113 </xs:sequence>
114</xs:complexType>
115
116<xs:complexType name="ribEntryType">
117 <xs:sequence>
118 <xs:element type="xs:anyURI" name="prefix"/>
119 <xs:element name="routes">
120 <xs:complexType>
121 <xs:sequence>
122 <xs:element type="nfd:routeType" name="route" maxOccurs="unbounded"/>
123 </xs:sequence>
124 </xs:complexType>
125 </xs:element>
126 </xs:sequence>
127</xs:complexType>
128
129<xs:complexType name="ribType">
130 <xs:sequence>
131 <xs:element type="nfd:ribEntryType" name="ribEntry" maxOccurs="unbounded" minOccurs="0"/>
132 </xs:sequence>
133</xs:complexType>
134
Alexander Afanasyev0417d2a2014-06-08 10:56:43 +0300135<xs:complexType name="strategyType">
136 <xs:sequence>
137 <xs:element type="xs:anyURI" name="name"/>
138 </xs:sequence>
139</xs:complexType>
140
141<xs:complexType name="strategyChoiceType">
142 <xs:sequence>
143 <xs:element type="xs:anyURI" name="namespace"/>
144 <xs:element type="nfd:strategyType" name="strategy"/>
145 </xs:sequence>
146</xs:complexType>
147
148<xs:complexType name="strategyChoicesType">
149 <xs:sequence>
150 <xs:element type="nfd:strategyChoiceType" name="strategyChoice"
151 maxOccurs="unbounded" minOccurs="0"/>
152 </xs:sequence>
153</xs:complexType>
154
Chengyu Fan514ed5e2014-04-17 13:07:30 -0600155<xs:element name="nfdStatus">
156 <xs:complexType>
157 <xs:sequence>
158 <xs:element type="nfd:generalStatusType" name="generalStatus"/>
Alexander Afanasyev0417d2a2014-06-08 10:56:43 +0300159 <xs:element type="nfd:channelsType" name="channels"/>
Chengyu Fan514ed5e2014-04-17 13:07:30 -0600160 <xs:element type="nfd:facesType" name="faces"/>
161 <xs:element type="nfd:fibType" name="fib"/>
Chengyu Fan30aa2072014-07-20 13:52:32 -0600162 <xs:element type="nfd:ribType" name="rib"/>
Alexander Afanasyev0417d2a2014-06-08 10:56:43 +0300163 <xs:element type="nfd:strategyChoicesType" name="strategyChoices"/>
Chengyu Fan514ed5e2014-04-17 13:07:30 -0600164 </xs:sequence>
165 </xs:complexType>
166</xs:element>
167
168</xs:schema>