blob: 84205114dbc3e65bcc608fde7d6c333a6b932d2c [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
Chengyu Fan514ed5e2014-04-17 13:07:30 -060048<xs:complexType name="faceType">
49 <xs:sequence>
50 <xs:element type="xs:nonNegativeInteger" name="faceId"/>
51 <xs:element type="xs:anyURI" name="remoteUri"/>
52 <xs:element type="xs:anyURI" name="localUri"/>
53 <xs:element type="nfd:bidirectionalPacketCountersType" name="packetCounters"/>
54 </xs:sequence>
55</xs:complexType>
56
57<xs:complexType name="facesType">
58 <xs:sequence>
59 <xs:element type="nfd:faceType" name="face" maxOccurs="unbounded" minOccurs="0"/>
60 </xs:sequence>
61</xs:complexType>
62
63<xs:complexType name="nextHopType">
64 <xs:sequence>
65 <xs:element type="xs:nonNegativeInteger" name="faceId"/>
66 <xs:element type="xs:nonNegativeInteger" name="cost"/>
67 </xs:sequence>
68</xs:complexType>
69
70<xs:complexType name="fibEntryType">
71 <xs:sequence>
72 <xs:element type="xs:anyURI" name="prefix"/>
73 <xs:element name="nextHops">
74 <xs:complexType>
75 <xs:sequence>
76 <xs:element type="nfd:nextHopType" name="nextHop" maxOccurs="unbounded"/>
77 </xs:sequence>
78 </xs:complexType>
79 </xs:element>
80 </xs:sequence>
81</xs:complexType>
82
83<xs:complexType name="fibType">
84 <xs:sequence>
85 <xs:element type="nfd:fibEntryType" name="fibEntry" maxOccurs="unbounded" minOccurs="0"/>
86 </xs:sequence>
87</xs:complexType>
88
Alexander Afanasyev0417d2a2014-06-08 10:56:43 +030089<xs:complexType name="strategyType">
90 <xs:sequence>
91 <xs:element type="xs:anyURI" name="name"/>
92 </xs:sequence>
93</xs:complexType>
94
95<xs:complexType name="strategyChoiceType">
96 <xs:sequence>
97 <xs:element type="xs:anyURI" name="namespace"/>
98 <xs:element type="nfd:strategyType" name="strategy"/>
99 </xs:sequence>
100</xs:complexType>
101
102<xs:complexType name="strategyChoicesType">
103 <xs:sequence>
104 <xs:element type="nfd:strategyChoiceType" name="strategyChoice"
105 maxOccurs="unbounded" minOccurs="0"/>
106 </xs:sequence>
107</xs:complexType>
108
Chengyu Fan514ed5e2014-04-17 13:07:30 -0600109<xs:element name="nfdStatus">
110 <xs:complexType>
111 <xs:sequence>
112 <xs:element type="nfd:generalStatusType" name="generalStatus"/>
Alexander Afanasyev0417d2a2014-06-08 10:56:43 +0300113 <xs:element type="nfd:channelsType" name="channels"/>
Chengyu Fan514ed5e2014-04-17 13:07:30 -0600114 <xs:element type="nfd:facesType" name="faces"/>
115 <xs:element type="nfd:fibType" name="fib"/>
Alexander Afanasyev0417d2a2014-06-08 10:56:43 +0300116 <xs:element type="nfd:strategyChoicesType" name="strategyChoices"/>
Chengyu Fan514ed5e2014-04-17 13:07:30 -0600117 </xs:sequence>
118 </xs:complexType>
119</xs:element>
120
121</xs:schema>