blob: 844b4f942a962d3623b94da492bed83ad91a7443 [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 Fan30aa2072014-07-20 13:52:32 -0600107<xs:complexType name="routeType">
108 <xs:sequence>
109 <xs:element type="xs:nonNegativeInteger" name="faceId"/>
110 <xs:element type="xs:nonNegativeInteger" name="origin"/>
111 <xs:element type="xs:nonNegativeInteger" name="cost"/>
112 <xs:element type="xs:nonNegativeInteger" name="flags"/>
113 <xs:element type="xs:duration" name="expirationPeriod" minOccurs="0"/>
114 </xs:sequence>
115</xs:complexType>
116
117<xs:complexType name="ribEntryType">
118 <xs:sequence>
119 <xs:element type="xs:anyURI" name="prefix"/>
120 <xs:element name="routes">
121 <xs:complexType>
122 <xs:sequence>
123 <xs:element type="nfd:routeType" name="route" maxOccurs="unbounded"/>
124 </xs:sequence>
125 </xs:complexType>
126 </xs:element>
127 </xs:sequence>
128</xs:complexType>
129
130<xs:complexType name="ribType">
131 <xs:sequence>
132 <xs:element type="nfd:ribEntryType" name="ribEntry" maxOccurs="unbounded" minOccurs="0"/>
133 </xs:sequence>
134</xs:complexType>
135
Alexander Afanasyev0417d2a2014-06-08 10:56:43 +0300136<xs:complexType name="strategyType">
137 <xs:sequence>
138 <xs:element type="xs:anyURI" name="name"/>
139 </xs:sequence>
140</xs:complexType>
141
142<xs:complexType name="strategyChoiceType">
143 <xs:sequence>
144 <xs:element type="xs:anyURI" name="namespace"/>
145 <xs:element type="nfd:strategyType" name="strategy"/>
146 </xs:sequence>
147</xs:complexType>
148
149<xs:complexType name="strategyChoicesType">
150 <xs:sequence>
151 <xs:element type="nfd:strategyChoiceType" name="strategyChoice"
152 maxOccurs="unbounded" minOccurs="0"/>
153 </xs:sequence>
154</xs:complexType>
155
Chengyu Fan514ed5e2014-04-17 13:07:30 -0600156<xs:element name="nfdStatus">
157 <xs:complexType>
158 <xs:sequence>
159 <xs:element type="nfd:generalStatusType" name="generalStatus"/>
Alexander Afanasyev0417d2a2014-06-08 10:56:43 +0300160 <xs:element type="nfd:channelsType" name="channels"/>
Chengyu Fan514ed5e2014-04-17 13:07:30 -0600161 <xs:element type="nfd:facesType" name="faces"/>
162 <xs:element type="nfd:fibType" name="fib"/>
Chengyu Fan30aa2072014-07-20 13:52:32 -0600163 <xs:element type="nfd:ribType" name="rib"/>
Alexander Afanasyev0417d2a2014-06-08 10:56:43 +0300164 <xs:element type="nfd:strategyChoicesType" name="strategyChoices"/>
Chengyu Fan514ed5e2014-04-17 13:07:30 -0600165 </xs:sequence>
166 </xs:complexType>
167</xs:element>
168
169</xs:schema>