blob: a34b2f23d57c3c432b199d8d1951237d58ee95fc [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
Chengyu Fan514ed5e2014-04-17 13:07:30 -060056<xs:complexType name="faceType">
57 <xs:sequence>
58 <xs:element type="xs:nonNegativeInteger" name="faceId"/>
59 <xs:element type="xs:anyURI" name="remoteUri"/>
60 <xs:element type="xs:anyURI" name="localUri"/>
Chengyu Fan30aa2072014-07-20 13:52:32 -060061 <xs:element type="xs:duration" name="expirationPeriod" minOccurs="0"/>
Chengyu Fan27d570a2014-10-09 11:52:17 -060062 <xs:element type="xs:string" name="faceScope"/>
63 <xs:element type="xs:string" name="facePersistency"/>
64 <xs:element type="xs:string" name="linkType"/>
Chengyu Fan514ed5e2014-04-17 13:07:30 -060065 <xs:element type="nfd:bidirectionalPacketCountersType" name="packetCounters"/>
Chengyu Fan3331cfa2014-07-25 17:36:31 -060066 <xs:element type="nfd:bidirectionalByteCountersType" name="byteCounters"/>
Chengyu Fan514ed5e2014-04-17 13:07:30 -060067 </xs:sequence>
68</xs:complexType>
69
70<xs:complexType name="facesType">
71 <xs:sequence>
72 <xs:element type="nfd:faceType" name="face" maxOccurs="unbounded" minOccurs="0"/>
73 </xs:sequence>
74</xs:complexType>
75
76<xs:complexType name="nextHopType">
77 <xs:sequence>
78 <xs:element type="xs:nonNegativeInteger" name="faceId"/>
79 <xs:element type="xs:nonNegativeInteger" name="cost"/>
80 </xs:sequence>
81</xs:complexType>
82
83<xs:complexType name="fibEntryType">
84 <xs:sequence>
85 <xs:element type="xs:anyURI" name="prefix"/>
86 <xs:element name="nextHops">
87 <xs:complexType>
88 <xs:sequence>
89 <xs:element type="nfd:nextHopType" name="nextHop" maxOccurs="unbounded"/>
90 </xs:sequence>
91 </xs:complexType>
92 </xs:element>
93 </xs:sequence>
94</xs:complexType>
95
96<xs:complexType name="fibType">
97 <xs:sequence>
98 <xs:element type="nfd:fibEntryType" name="fibEntry" maxOccurs="unbounded" minOccurs="0"/>
99 </xs:sequence>
100</xs:complexType>
101
Chengyu Fan1c630ba2014-08-20 13:27:58 -0500102<xs:complexType name="ribFlagsType">
103 <xs:sequence>
104 <xs:element type="xs:string" name="childInherit" minOccurs="0"/>
105 <xs:element type="xs:string" name="ribCapture" minOccurs="0"/>
106 </xs:sequence>
107</xs:complexType>
108
Chengyu Fan30aa2072014-07-20 13:52:32 -0600109<xs:complexType name="routeType">
110 <xs:sequence>
111 <xs:element type="xs:nonNegativeInteger" name="faceId"/>
112 <xs:element type="xs:nonNegativeInteger" name="origin"/>
113 <xs:element type="xs:nonNegativeInteger" name="cost"/>
Chengyu Fan1c630ba2014-08-20 13:27:58 -0500114 <xs:element type="nfd:ribFlagsType" name="flags"/>
Chengyu Fan30aa2072014-07-20 13:52:32 -0600115 <xs:element type="xs:duration" name="expirationPeriod" minOccurs="0"/>
116 </xs:sequence>
117</xs:complexType>
118
119<xs:complexType name="ribEntryType">
120 <xs:sequence>
121 <xs:element type="xs:anyURI" name="prefix"/>
122 <xs:element name="routes">
123 <xs:complexType>
124 <xs:sequence>
125 <xs:element type="nfd:routeType" name="route" maxOccurs="unbounded"/>
126 </xs:sequence>
127 </xs:complexType>
128 </xs:element>
129 </xs:sequence>
130</xs:complexType>
131
132<xs:complexType name="ribType">
133 <xs:sequence>
134 <xs:element type="nfd:ribEntryType" name="ribEntry" maxOccurs="unbounded" minOccurs="0"/>
135 </xs:sequence>
136</xs:complexType>
137
Alexander Afanasyev0417d2a2014-06-08 10:56:43 +0300138<xs:complexType name="strategyType">
139 <xs:sequence>
140 <xs:element type="xs:anyURI" name="name"/>
141 </xs:sequence>
142</xs:complexType>
143
144<xs:complexType name="strategyChoiceType">
145 <xs:sequence>
146 <xs:element type="xs:anyURI" name="namespace"/>
147 <xs:element type="nfd:strategyType" name="strategy"/>
148 </xs:sequence>
149</xs:complexType>
150
151<xs:complexType name="strategyChoicesType">
152 <xs:sequence>
153 <xs:element type="nfd:strategyChoiceType" name="strategyChoice"
154 maxOccurs="unbounded" minOccurs="0"/>
155 </xs:sequence>
156</xs:complexType>
157
Chengyu Fan514ed5e2014-04-17 13:07:30 -0600158<xs:element name="nfdStatus">
159 <xs:complexType>
160 <xs:sequence>
161 <xs:element type="nfd:generalStatusType" name="generalStatus"/>
Alexander Afanasyev0417d2a2014-06-08 10:56:43 +0300162 <xs:element type="nfd:channelsType" name="channels"/>
Chengyu Fan514ed5e2014-04-17 13:07:30 -0600163 <xs:element type="nfd:facesType" name="faces"/>
164 <xs:element type="nfd:fibType" name="fib"/>
Chengyu Fan30aa2072014-07-20 13:52:32 -0600165 <xs:element type="nfd:ribType" name="rib"/>
Alexander Afanasyev0417d2a2014-06-08 10:56:43 +0300166 <xs:element type="nfd:strategyChoicesType" name="strategyChoices"/>
Chengyu Fan514ed5e2014-04-17 13:07:30 -0600167 </xs:sequence>
168 </xs:complexType>
169</xs:element>
170
171</xs:schema>