blob: 44b5e93c63ad118c705e2625034266b087bd3e48 [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
36<xs:complexType name="faceType">
37 <xs:sequence>
38 <xs:element type="xs:nonNegativeInteger" name="faceId"/>
39 <xs:element type="xs:anyURI" name="remoteUri"/>
40 <xs:element type="xs:anyURI" name="localUri"/>
41 <xs:element type="nfd:bidirectionalPacketCountersType" name="packetCounters"/>
42 </xs:sequence>
43</xs:complexType>
44
45<xs:complexType name="facesType">
46 <xs:sequence>
47 <xs:element type="nfd:faceType" name="face" maxOccurs="unbounded" minOccurs="0"/>
48 </xs:sequence>
49</xs:complexType>
50
51<xs:complexType name="nextHopType">
52 <xs:sequence>
53 <xs:element type="xs:nonNegativeInteger" name="faceId"/>
54 <xs:element type="xs:nonNegativeInteger" name="cost"/>
55 </xs:sequence>
56</xs:complexType>
57
58<xs:complexType name="fibEntryType">
59 <xs:sequence>
60 <xs:element type="xs:anyURI" name="prefix"/>
61 <xs:element name="nextHops">
62 <xs:complexType>
63 <xs:sequence>
64 <xs:element type="nfd:nextHopType" name="nextHop" maxOccurs="unbounded"/>
65 </xs:sequence>
66 </xs:complexType>
67 </xs:element>
68 </xs:sequence>
69</xs:complexType>
70
71<xs:complexType name="fibType">
72 <xs:sequence>
73 <xs:element type="nfd:fibEntryType" name="fibEntry" maxOccurs="unbounded" minOccurs="0"/>
74 </xs:sequence>
75</xs:complexType>
76
77<xs:element name="nfdStatus">
78 <xs:complexType>
79 <xs:sequence>
80 <xs:element type="nfd:generalStatusType" name="generalStatus"/>
81 <xs:element type="nfd:facesType" name="faces"/>
82 <xs:element type="nfd:fibType" name="fib"/>
83 </xs:sequence>
84 </xs:complexType>
85</xs:element>
86
87</xs:schema>