blob: 844b4f942a962d3623b94da492bed83ad91a7443 [file] [log] [blame]
Alexander Afanasyevbd5b67a2014-09-02 16:06:21 -07001<?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
21<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
28<xs:complexType name="generalStatusType">
29 <xs:sequence>
30 <xs:element type="xs:anyURI" name="nfdId"/>
31 <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
44<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
56<xs:complexType name="faceFlagsType">
57 <xs:sequence>
58 <xs:element type="xs:string" name="local" minOccurs="0"/>
59 <xs:element type="xs:string" name="on-demand" minOccurs="0"/>
60 </xs:sequence>
61</xs:complexType>
62
63<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"/>
68 <xs:element type="xs:duration" name="expirationPeriod" minOccurs="0"/>
69 <xs:element type="nfd:bidirectionalPacketCountersType" name="packetCounters"/>
70 <xs:element type="nfd:bidirectionalByteCountersType" name="byteCounters"/>
71 <xs:element type="nfd:faceFlagsType" name="flags" minOccurs="0"/>
72 </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
107<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
136<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
156<xs:element name="nfdStatus">
157 <xs:complexType>
158 <xs:sequence>
159 <xs:element type="nfd:generalStatusType" name="generalStatus"/>
160 <xs:element type="nfd:channelsType" name="channels"/>
161 <xs:element type="nfd:facesType" name="faces"/>
162 <xs:element type="nfd:fibType" name="fib"/>
163 <xs:element type="nfd:ribType" name="rib"/>
164 <xs:element type="nfd:strategyChoicesType" name="strategyChoices"/>
165 </xs:sequence>
166 </xs:complexType>
167</xs:element>
168
169</xs:schema>