blob: 6f2770f8e310d9716c3e5e330c0d1417e55b6bae [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>
Chengyu Fan8a53caf2014-08-01 14:08:37 -060030 <xs:element type="xs:anyURI" name="nfdId"/>
Chengyu Fan514ed5e2014-04-17 13:07:30 -060031 <xs:element type="xs:string" name="version"/>
32 <xs:element type="xs:dateTime" name="startTime"/>
33 <xs:element type="xs:dateTime" name="currentTime"/>
34 <xs:element type="xs:duration" name="uptime"/>
35 <xs:element type="xs:nonNegativeInteger" name="nNameTreeEntries"/>
36 <xs:element type="xs:nonNegativeInteger" name="nFibEntries"/>
37 <xs:element type="xs:nonNegativeInteger" name="nPitEntries"/>
38 <xs:element type="xs:nonNegativeInteger" name="nMeasurementsEntries"/>
39 <xs:element type="xs:nonNegativeInteger" name="nCsEntries"/>
40 <xs:element type="nfd:bidirectionalPacketCountersType" name="packetCounters"/>
41 </xs:sequence>
42</xs:complexType>
43
Alexander Afanasyev0417d2a2014-06-08 10:56:43 +030044<xs:complexType name="channelType">
45 <xs:sequence>
46 <xs:element type="xs:anyURI" name="localUri"/>
47 </xs:sequence>
48</xs:complexType>
49
50<xs:complexType name="channelsType">
51 <xs:sequence>
52 <xs:element type="nfd:channelType" name="channel" maxOccurs="unbounded" minOccurs="0"/>
53 </xs:sequence>
54</xs:complexType>
55
Alexander Afanasyevd3967a22014-06-30 12:22:10 -070056<xs:complexType name="faceFlagsType">
57 <xs:sequence>
Chengyu Fan30aa2072014-07-20 13:52:32 -060058 <xs:element type="xs:string" name="local" minOccurs="0"/>
59 <xs:element type="xs:string" name="on-demand" minOccurs="0"/>
Alexander Afanasyevd3967a22014-06-30 12:22:10 -070060 </xs:sequence>
61</xs:complexType>
62
Chengyu Fan514ed5e2014-04-17 13:07:30 -060063<xs:complexType name="faceType">
64 <xs:sequence>
65 <xs:element type="xs:nonNegativeInteger" name="faceId"/>
66 <xs:element type="xs:anyURI" name="remoteUri"/>
67 <xs:element type="xs:anyURI" name="localUri"/>
Chengyu Fan30aa2072014-07-20 13:52:32 -060068 <xs:element type="xs:duration" name="expirationPeriod" minOccurs="0"/>
Chengyu Fan514ed5e2014-04-17 13:07:30 -060069 <xs:element type="nfd:bidirectionalPacketCountersType" name="packetCounters"/>
Chengyu Fan3331cfa2014-07-25 17:36:31 -060070 <xs:element type="nfd:bidirectionalByteCountersType" name="byteCounters"/>
Chengyu Fan30aa2072014-07-20 13:52:32 -060071 <xs:element type="nfd:faceFlagsType" name="flags" minOccurs="0"/>
Chengyu Fan514ed5e2014-04-17 13:07:30 -060072 </xs:sequence>
73</xs:complexType>
74
75<xs:complexType name="facesType">
76 <xs:sequence>
77 <xs:element type="nfd:faceType" name="face" maxOccurs="unbounded" minOccurs="0"/>
78 </xs:sequence>
79</xs:complexType>
80
81<xs:complexType name="nextHopType">
82 <xs:sequence>
83 <xs:element type="xs:nonNegativeInteger" name="faceId"/>
84 <xs:element type="xs:nonNegativeInteger" name="cost"/>
85 </xs:sequence>
86</xs:complexType>
87
88<xs:complexType name="fibEntryType">
89 <xs:sequence>
90 <xs:element type="xs:anyURI" name="prefix"/>
91 <xs:element name="nextHops">
92 <xs:complexType>
93 <xs:sequence>
94 <xs:element type="nfd:nextHopType" name="nextHop" maxOccurs="unbounded"/>
95 </xs:sequence>
96 </xs:complexType>
97 </xs:element>
98 </xs:sequence>
99</xs:complexType>
100
101<xs:complexType name="fibType">
102 <xs:sequence>
103 <xs:element type="nfd:fibEntryType" name="fibEntry" maxOccurs="unbounded" minOccurs="0"/>
104 </xs:sequence>
105</xs:complexType>
106
Chengyu Fan1c630ba2014-08-20 13:27:58 -0500107<xs:complexType name="ribFlagsType">
108 <xs:sequence>
109 <xs:element type="xs:string" name="childInherit" minOccurs="0"/>
110 <xs:element type="xs:string" name="ribCapture" minOccurs="0"/>
111 </xs:sequence>
112</xs:complexType>
113
Chengyu Fan30aa2072014-07-20 13:52:32 -0600114<xs:complexType name="routeType">
115 <xs:sequence>
116 <xs:element type="xs:nonNegativeInteger" name="faceId"/>
117 <xs:element type="xs:nonNegativeInteger" name="origin"/>
118 <xs:element type="xs:nonNegativeInteger" name="cost"/>
Chengyu Fan1c630ba2014-08-20 13:27:58 -0500119 <xs:element type="nfd:ribFlagsType" name="flags"/>
Chengyu Fan30aa2072014-07-20 13:52:32 -0600120 <xs:element type="xs:duration" name="expirationPeriod" minOccurs="0"/>
121 </xs:sequence>
122</xs:complexType>
123
124<xs:complexType name="ribEntryType">
125 <xs:sequence>
126 <xs:element type="xs:anyURI" name="prefix"/>
127 <xs:element name="routes">
128 <xs:complexType>
129 <xs:sequence>
130 <xs:element type="nfd:routeType" name="route" maxOccurs="unbounded"/>
131 </xs:sequence>
132 </xs:complexType>
133 </xs:element>
134 </xs:sequence>
135</xs:complexType>
136
137<xs:complexType name="ribType">
138 <xs:sequence>
139 <xs:element type="nfd:ribEntryType" name="ribEntry" maxOccurs="unbounded" minOccurs="0"/>
140 </xs:sequence>
141</xs:complexType>
142
Alexander Afanasyev0417d2a2014-06-08 10:56:43 +0300143<xs:complexType name="strategyType">
144 <xs:sequence>
145 <xs:element type="xs:anyURI" name="name"/>
146 </xs:sequence>
147</xs:complexType>
148
149<xs:complexType name="strategyChoiceType">
150 <xs:sequence>
151 <xs:element type="xs:anyURI" name="namespace"/>
152 <xs:element type="nfd:strategyType" name="strategy"/>
153 </xs:sequence>
154</xs:complexType>
155
156<xs:complexType name="strategyChoicesType">
157 <xs:sequence>
158 <xs:element type="nfd:strategyChoiceType" name="strategyChoice"
159 maxOccurs="unbounded" minOccurs="0"/>
160 </xs:sequence>
161</xs:complexType>
162
Chengyu Fan514ed5e2014-04-17 13:07:30 -0600163<xs:element name="nfdStatus">
164 <xs:complexType>
165 <xs:sequence>
166 <xs:element type="nfd:generalStatusType" name="generalStatus"/>
Alexander Afanasyev0417d2a2014-06-08 10:56:43 +0300167 <xs:element type="nfd:channelsType" name="channels"/>
Chengyu Fan514ed5e2014-04-17 13:07:30 -0600168 <xs:element type="nfd:facesType" name="faces"/>
169 <xs:element type="nfd:fibType" name="fib"/>
Chengyu Fan30aa2072014-07-20 13:52:32 -0600170 <xs:element type="nfd:ribType" name="rib"/>
Alexander Afanasyev0417d2a2014-06-08 10:56:43 +0300171 <xs:element type="nfd:strategyChoicesType" name="strategyChoices"/>
Chengyu Fan514ed5e2014-04-17 13:07:30 -0600172 </xs:sequence>
173 </xs:complexType>
174</xs:element>
175
176</xs:schema>