Chengyu Fan | 514ed5e | 2014-04-17 13:07:30 -0600 | [diff] [blame] | 1 | <?xml version="1.0"?> |
| 2 | |
| 3 | <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" |
| 4 | targetNamespace="ndn:/localhost/nfd/status/1" xmlns:nfd="ndn:/localhost/nfd/status/1" |
| 5 | elementFormDefault="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 Fan | 3331cfa | 2014-07-25 17:36:31 -0600 | [diff] [blame] | 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 | |
Chengyu Fan | 514ed5e | 2014-04-17 13:07:30 -0600 | [diff] [blame] | 28 | <xs:complexType name="generalStatusType"> |
| 29 | <xs:sequence> |
| 30 | <xs:element type="xs:string" name="version"/> |
| 31 | <xs:element type="xs:dateTime" name="startTime"/> |
| 32 | <xs:element type="xs:dateTime" name="currentTime"/> |
| 33 | <xs:element type="xs:duration" name="uptime"/> |
| 34 | <xs:element type="xs:nonNegativeInteger" name="nNameTreeEntries"/> |
| 35 | <xs:element type="xs:nonNegativeInteger" name="nFibEntries"/> |
| 36 | <xs:element type="xs:nonNegativeInteger" name="nPitEntries"/> |
| 37 | <xs:element type="xs:nonNegativeInteger" name="nMeasurementsEntries"/> |
| 38 | <xs:element type="xs:nonNegativeInteger" name="nCsEntries"/> |
| 39 | <xs:element type="nfd:bidirectionalPacketCountersType" name="packetCounters"/> |
| 40 | </xs:sequence> |
| 41 | </xs:complexType> |
| 42 | |
Alexander Afanasyev | 0417d2a | 2014-06-08 10:56:43 +0300 | [diff] [blame] | 43 | <xs:complexType name="channelType"> |
| 44 | <xs:sequence> |
| 45 | <xs:element type="xs:anyURI" name="localUri"/> |
| 46 | </xs:sequence> |
| 47 | </xs:complexType> |
| 48 | |
| 49 | <xs:complexType name="channelsType"> |
| 50 | <xs:sequence> |
| 51 | <xs:element type="nfd:channelType" name="channel" maxOccurs="unbounded" minOccurs="0"/> |
| 52 | </xs:sequence> |
| 53 | </xs:complexType> |
| 54 | |
Alexander Afanasyev | d3967a2 | 2014-06-30 12:22:10 -0700 | [diff] [blame] | 55 | <xs:complexType name="faceFlagsType"> |
| 56 | <xs:sequence> |
Chengyu Fan | 30aa207 | 2014-07-20 13:52:32 -0600 | [diff] [blame] | 57 | <xs:element type="xs:string" name="local" minOccurs="0"/> |
| 58 | <xs:element type="xs:string" name="on-demand" minOccurs="0"/> |
Alexander Afanasyev | d3967a2 | 2014-06-30 12:22:10 -0700 | [diff] [blame] | 59 | </xs:sequence> |
| 60 | </xs:complexType> |
| 61 | |
Chengyu Fan | 514ed5e | 2014-04-17 13:07:30 -0600 | [diff] [blame] | 62 | <xs:complexType name="faceType"> |
| 63 | <xs:sequence> |
| 64 | <xs:element type="xs:nonNegativeInteger" name="faceId"/> |
| 65 | <xs:element type="xs:anyURI" name="remoteUri"/> |
| 66 | <xs:element type="xs:anyURI" name="localUri"/> |
Chengyu Fan | 30aa207 | 2014-07-20 13:52:32 -0600 | [diff] [blame] | 67 | <xs:element type="xs:duration" name="expirationPeriod" minOccurs="0"/> |
Chengyu Fan | 514ed5e | 2014-04-17 13:07:30 -0600 | [diff] [blame] | 68 | <xs:element type="nfd:bidirectionalPacketCountersType" name="packetCounters"/> |
Chengyu Fan | 3331cfa | 2014-07-25 17:36:31 -0600 | [diff] [blame] | 69 | <xs:element type="nfd:bidirectionalByteCountersType" name="byteCounters"/> |
Chengyu Fan | 30aa207 | 2014-07-20 13:52:32 -0600 | [diff] [blame] | 70 | <xs:element type="nfd:faceFlagsType" name="flags" minOccurs="0"/> |
Chengyu Fan | 514ed5e | 2014-04-17 13:07:30 -0600 | [diff] [blame] | 71 | </xs:sequence> |
| 72 | </xs:complexType> |
| 73 | |
| 74 | <xs:complexType name="facesType"> |
| 75 | <xs:sequence> |
| 76 | <xs:element type="nfd:faceType" name="face" maxOccurs="unbounded" minOccurs="0"/> |
| 77 | </xs:sequence> |
| 78 | </xs:complexType> |
| 79 | |
| 80 | <xs:complexType name="nextHopType"> |
| 81 | <xs:sequence> |
| 82 | <xs:element type="xs:nonNegativeInteger" name="faceId"/> |
| 83 | <xs:element type="xs:nonNegativeInteger" name="cost"/> |
| 84 | </xs:sequence> |
| 85 | </xs:complexType> |
| 86 | |
| 87 | <xs:complexType name="fibEntryType"> |
| 88 | <xs:sequence> |
| 89 | <xs:element type="xs:anyURI" name="prefix"/> |
| 90 | <xs:element name="nextHops"> |
| 91 | <xs:complexType> |
| 92 | <xs:sequence> |
| 93 | <xs:element type="nfd:nextHopType" name="nextHop" maxOccurs="unbounded"/> |
| 94 | </xs:sequence> |
| 95 | </xs:complexType> |
| 96 | </xs:element> |
| 97 | </xs:sequence> |
| 98 | </xs:complexType> |
| 99 | |
| 100 | <xs:complexType name="fibType"> |
| 101 | <xs:sequence> |
| 102 | <xs:element type="nfd:fibEntryType" name="fibEntry" maxOccurs="unbounded" minOccurs="0"/> |
| 103 | </xs:sequence> |
| 104 | </xs:complexType> |
| 105 | |
Chengyu Fan | 30aa207 | 2014-07-20 13:52:32 -0600 | [diff] [blame] | 106 | <xs:complexType name="routeType"> |
| 107 | <xs:sequence> |
| 108 | <xs:element type="xs:nonNegativeInteger" name="faceId"/> |
| 109 | <xs:element type="xs:nonNegativeInteger" name="origin"/> |
| 110 | <xs:element type="xs:nonNegativeInteger" name="cost"/> |
| 111 | <xs:element type="xs:nonNegativeInteger" name="flags"/> |
| 112 | <xs:element type="xs:duration" name="expirationPeriod" minOccurs="0"/> |
| 113 | </xs:sequence> |
| 114 | </xs:complexType> |
| 115 | |
| 116 | <xs:complexType name="ribEntryType"> |
| 117 | <xs:sequence> |
| 118 | <xs:element type="xs:anyURI" name="prefix"/> |
| 119 | <xs:element name="routes"> |
| 120 | <xs:complexType> |
| 121 | <xs:sequence> |
| 122 | <xs:element type="nfd:routeType" name="route" maxOccurs="unbounded"/> |
| 123 | </xs:sequence> |
| 124 | </xs:complexType> |
| 125 | </xs:element> |
| 126 | </xs:sequence> |
| 127 | </xs:complexType> |
| 128 | |
| 129 | <xs:complexType name="ribType"> |
| 130 | <xs:sequence> |
| 131 | <xs:element type="nfd:ribEntryType" name="ribEntry" maxOccurs="unbounded" minOccurs="0"/> |
| 132 | </xs:sequence> |
| 133 | </xs:complexType> |
| 134 | |
Alexander Afanasyev | 0417d2a | 2014-06-08 10:56:43 +0300 | [diff] [blame] | 135 | <xs:complexType name="strategyType"> |
| 136 | <xs:sequence> |
| 137 | <xs:element type="xs:anyURI" name="name"/> |
| 138 | </xs:sequence> |
| 139 | </xs:complexType> |
| 140 | |
| 141 | <xs:complexType name="strategyChoiceType"> |
| 142 | <xs:sequence> |
| 143 | <xs:element type="xs:anyURI" name="namespace"/> |
| 144 | <xs:element type="nfd:strategyType" name="strategy"/> |
| 145 | </xs:sequence> |
| 146 | </xs:complexType> |
| 147 | |
| 148 | <xs:complexType name="strategyChoicesType"> |
| 149 | <xs:sequence> |
| 150 | <xs:element type="nfd:strategyChoiceType" name="strategyChoice" |
| 151 | maxOccurs="unbounded" minOccurs="0"/> |
| 152 | </xs:sequence> |
| 153 | </xs:complexType> |
| 154 | |
Chengyu Fan | 514ed5e | 2014-04-17 13:07:30 -0600 | [diff] [blame] | 155 | <xs:element name="nfdStatus"> |
| 156 | <xs:complexType> |
| 157 | <xs:sequence> |
| 158 | <xs:element type="nfd:generalStatusType" name="generalStatus"/> |
Alexander Afanasyev | 0417d2a | 2014-06-08 10:56:43 +0300 | [diff] [blame] | 159 | <xs:element type="nfd:channelsType" name="channels"/> |
Chengyu Fan | 514ed5e | 2014-04-17 13:07:30 -0600 | [diff] [blame] | 160 | <xs:element type="nfd:facesType" name="faces"/> |
| 161 | <xs:element type="nfd:fibType" name="fib"/> |
Chengyu Fan | 30aa207 | 2014-07-20 13:52:32 -0600 | [diff] [blame] | 162 | <xs:element type="nfd:ribType" name="rib"/> |
Alexander Afanasyev | 0417d2a | 2014-06-08 10:56:43 +0300 | [diff] [blame] | 163 | <xs:element type="nfd:strategyChoicesType" name="strategyChoices"/> |
Chengyu Fan | 514ed5e | 2014-04-17 13:07:30 -0600 | [diff] [blame] | 164 | </xs:sequence> |
| 165 | </xs:complexType> |
| 166 | </xs:element> |
| 167 | |
| 168 | </xs:schema> |