blob: 8f9f7cf4ec2e18ca8aea80633eaf0cdb0daf19ef [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
21<xs:complexType name="generalStatusType">
22 <xs:sequence>
23 <xs:element type="xs:string" name="version"/>
24 <xs:element type="xs:dateTime" name="startTime"/>
25 <xs:element type="xs:dateTime" name="currentTime"/>
26 <xs:element type="xs:duration" name="uptime"/>
27 <xs:element type="xs:nonNegativeInteger" name="nNameTreeEntries"/>
28 <xs:element type="xs:nonNegativeInteger" name="nFibEntries"/>
29 <xs:element type="xs:nonNegativeInteger" name="nPitEntries"/>
30 <xs:element type="xs:nonNegativeInteger" name="nMeasurementsEntries"/>
31 <xs:element type="xs:nonNegativeInteger" name="nCsEntries"/>
32 <xs:element type="nfd:bidirectionalPacketCountersType" name="packetCounters"/>
33 </xs:sequence>
34</xs:complexType>
35
Alexander Afanasyev0417d2a2014-06-08 10:56:43 +030036<xs:complexType name="channelType">
37 <xs:sequence>
38 <xs:element type="xs:anyURI" name="localUri"/>
39 </xs:sequence>
40</xs:complexType>
41
42<xs:complexType name="channelsType">
43 <xs:sequence>
44 <xs:element type="nfd:channelType" name="channel" maxOccurs="unbounded" minOccurs="0"/>
45 </xs:sequence>
46</xs:complexType>
47
Alexander Afanasyevd3967a22014-06-30 12:22:10 -070048<xs:complexType name="faceFlagsType">
49 <xs:sequence>
50 <xs:element type="xs:string" name="local" maxOccurs="1" minOccurs="0"/>
51 <xs:element type="xs:string" name="on-demand" maxOccurs="1" minOccurs="0"/>
52 </xs:sequence>
53</xs:complexType>
54
Chengyu Fan514ed5e2014-04-17 13:07:30 -060055<xs:complexType name="faceType">
56 <xs:sequence>
57 <xs:element type="xs:nonNegativeInteger" name="faceId"/>
58 <xs:element type="xs:anyURI" name="remoteUri"/>
59 <xs:element type="xs:anyURI" name="localUri"/>
60 <xs:element type="nfd:bidirectionalPacketCountersType" name="packetCounters"/>
Alexander Afanasyevd3967a22014-06-30 12:22:10 -070061 <xs:element type="nfd:faceFlagsType" name="flags" maxOccurs="1" minOccurs="0"/>
Chengyu Fan514ed5e2014-04-17 13:07:30 -060062 </xs:sequence>
63</xs:complexType>
64
65<xs:complexType name="facesType">
66 <xs:sequence>
67 <xs:element type="nfd:faceType" name="face" maxOccurs="unbounded" minOccurs="0"/>
68 </xs:sequence>
69</xs:complexType>
70
71<xs:complexType name="nextHopType">
72 <xs:sequence>
73 <xs:element type="xs:nonNegativeInteger" name="faceId"/>
74 <xs:element type="xs:nonNegativeInteger" name="cost"/>
75 </xs:sequence>
76</xs:complexType>
77
78<xs:complexType name="fibEntryType">
79 <xs:sequence>
80 <xs:element type="xs:anyURI" name="prefix"/>
81 <xs:element name="nextHops">
82 <xs:complexType>
83 <xs:sequence>
84 <xs:element type="nfd:nextHopType" name="nextHop" maxOccurs="unbounded"/>
85 </xs:sequence>
86 </xs:complexType>
87 </xs:element>
88 </xs:sequence>
89</xs:complexType>
90
91<xs:complexType name="fibType">
92 <xs:sequence>
93 <xs:element type="nfd:fibEntryType" name="fibEntry" maxOccurs="unbounded" minOccurs="0"/>
94 </xs:sequence>
95</xs:complexType>
96
Alexander Afanasyev0417d2a2014-06-08 10:56:43 +030097<xs:complexType name="strategyType">
98 <xs:sequence>
99 <xs:element type="xs:anyURI" name="name"/>
100 </xs:sequence>
101</xs:complexType>
102
103<xs:complexType name="strategyChoiceType">
104 <xs:sequence>
105 <xs:element type="xs:anyURI" name="namespace"/>
106 <xs:element type="nfd:strategyType" name="strategy"/>
107 </xs:sequence>
108</xs:complexType>
109
110<xs:complexType name="strategyChoicesType">
111 <xs:sequence>
112 <xs:element type="nfd:strategyChoiceType" name="strategyChoice"
113 maxOccurs="unbounded" minOccurs="0"/>
114 </xs:sequence>
115</xs:complexType>
116
Chengyu Fan514ed5e2014-04-17 13:07:30 -0600117<xs:element name="nfdStatus">
118 <xs:complexType>
119 <xs:sequence>
120 <xs:element type="nfd:generalStatusType" name="generalStatus"/>
Alexander Afanasyev0417d2a2014-06-08 10:56:43 +0300121 <xs:element type="nfd:channelsType" name="channels"/>
Chengyu Fan514ed5e2014-04-17 13:07:30 -0600122 <xs:element type="nfd:facesType" name="faces"/>
123 <xs:element type="nfd:fibType" name="fib"/>
Alexander Afanasyev0417d2a2014-06-08 10:56:43 +0300124 <xs:element type="nfd:strategyChoicesType" name="strategyChoices"/>
Chengyu Fan514ed5e2014-04-17 13:07:30 -0600125 </xs:sequence>
126 </xs:complexType>
127</xs:element>
128
129</xs:schema>