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" |
Davide Pesavento | 4d82692 | 2018-02-11 23:05:48 -0500 | [diff] [blame] | 4 | xmlns:nfd="ndn:/localhost/nfd/status/1" |
| 5 | targetNamespace="ndn:/localhost/nfd/status/1" |
| 6 | elementFormDefault="qualified"> |
Chengyu Fan | 514ed5e | 2014-04-17 13:07:30 -0600 | [diff] [blame] | 7 | |
Davide Pesavento | 4d82692 | 2018-02-11 23:05:48 -0500 | [diff] [blame] | 8 | <xs:complexType name="emptyType"> |
| 9 | <xs:sequence/> |
| 10 | </xs:complexType> |
Eric Newberry | de33245 | 2018-01-30 11:45:32 -0700 | [diff] [blame] | 11 | |
Chengyu Fan | 514ed5e | 2014-04-17 13:07:30 -0600 | [diff] [blame] | 12 | <xs:complexType name="unidirectionalPacketCountersType"> |
| 13 | <xs:sequence> |
| 14 | <xs:element type="xs:nonNegativeInteger" name="nInterests"/> |
Davide Pesavento | 4d82692 | 2018-02-11 23:05:48 -0500 | [diff] [blame] | 15 | <xs:element type="xs:nonNegativeInteger" name="nData"/> |
| 16 | <xs:element type="xs:nonNegativeInteger" name="nNacks"/> |
Chengyu Fan | 514ed5e | 2014-04-17 13:07:30 -0600 | [diff] [blame] | 17 | </xs:sequence> |
| 18 | </xs:complexType> |
| 19 | |
| 20 | <xs:complexType name="bidirectionalPacketCountersType"> |
| 21 | <xs:sequence> |
| 22 | <xs:element type="nfd:unidirectionalPacketCountersType" name="incomingPackets"/> |
| 23 | <xs:element type="nfd:unidirectionalPacketCountersType" name="outgoingPackets"/> |
| 24 | </xs:sequence> |
| 25 | </xs:complexType> |
| 26 | |
Chengyu Fan | 3331cfa | 2014-07-25 17:36:31 -0600 | [diff] [blame] | 27 | <xs:complexType name="bidirectionalByteCountersType"> |
| 28 | <xs:sequence> |
| 29 | <xs:element type="xs:nonNegativeInteger" name="incomingBytes"/> |
| 30 | <xs:element type="xs:nonNegativeInteger" name="outgoingBytes"/> |
| 31 | </xs:sequence> |
| 32 | </xs:complexType> |
| 33 | |
Chengyu Fan | 514ed5e | 2014-04-17 13:07:30 -0600 | [diff] [blame] | 34 | <xs:complexType name="generalStatusType"> |
| 35 | <xs:sequence> |
| 36 | <xs:element type="xs:string" name="version"/> |
| 37 | <xs:element type="xs:dateTime" name="startTime"/> |
| 38 | <xs:element type="xs:dateTime" name="currentTime"/> |
| 39 | <xs:element type="xs:duration" name="uptime"/> |
| 40 | <xs:element type="xs:nonNegativeInteger" name="nNameTreeEntries"/> |
| 41 | <xs:element type="xs:nonNegativeInteger" name="nFibEntries"/> |
| 42 | <xs:element type="xs:nonNegativeInteger" name="nPitEntries"/> |
| 43 | <xs:element type="xs:nonNegativeInteger" name="nMeasurementsEntries"/> |
| 44 | <xs:element type="xs:nonNegativeInteger" name="nCsEntries"/> |
| 45 | <xs:element type="nfd:bidirectionalPacketCountersType" name="packetCounters"/> |
| 46 | </xs:sequence> |
| 47 | </xs:complexType> |
| 48 | |
Alexander Afanasyev | 0417d2a | 2014-06-08 10:56:43 +0300 | [diff] [blame] | 49 | <xs:complexType name="channelType"> |
| 50 | <xs:sequence> |
| 51 | <xs:element type="xs:anyURI" name="localUri"/> |
| 52 | </xs:sequence> |
| 53 | </xs:complexType> |
| 54 | |
| 55 | <xs:complexType name="channelsType"> |
| 56 | <xs:sequence> |
| 57 | <xs:element type="nfd:channelType" name="channel" maxOccurs="unbounded" minOccurs="0"/> |
| 58 | </xs:sequence> |
| 59 | </xs:complexType> |
| 60 | |
Eric Newberry | de33245 | 2018-01-30 11:45:32 -0700 | [diff] [blame] | 61 | <xs:complexType name="congestionParamsType"> |
| 62 | <xs:sequence> |
| 63 | <xs:element type="xs:duration" name="baseMarkingInterval" minOccurs="0"/> |
| 64 | <xs:element type="xs:nonNegativeInteger" name="defaultThreshold" minOccurs="0"/> |
| 65 | </xs:sequence> |
| 66 | </xs:complexType> |
| 67 | |
| 68 | <xs:complexType name="faceFlagsType"> |
| 69 | <xs:sequence> |
| 70 | <xs:element type="nfd:emptyType" name="localFieldsEnabled" minOccurs="0"/> |
| 71 | <xs:element type="nfd:emptyType" name="lpReliabilityEnabled" minOccurs="0"/> |
| 72 | <xs:element type="nfd:emptyType" name="congestionMarkingEnabled" minOccurs="0"/> |
| 73 | </xs:sequence> |
| 74 | </xs:complexType> |
| 75 | |
Chengyu Fan | 514ed5e | 2014-04-17 13:07:30 -0600 | [diff] [blame] | 76 | <xs:complexType name="faceType"> |
| 77 | <xs:sequence> |
| 78 | <xs:element type="xs:nonNegativeInteger" name="faceId"/> |
| 79 | <xs:element type="xs:anyURI" name="remoteUri"/> |
| 80 | <xs:element type="xs:anyURI" name="localUri"/> |
Chengyu Fan | 30aa207 | 2014-07-20 13:52:32 -0600 | [diff] [blame] | 81 | <xs:element type="xs:duration" name="expirationPeriod" minOccurs="0"/> |
Chengyu Fan | 27d570a | 2014-10-09 11:52:17 -0600 | [diff] [blame] | 82 | <xs:element type="xs:string" name="faceScope"/> |
| 83 | <xs:element type="xs:string" name="facePersistency"/> |
| 84 | <xs:element type="xs:string" name="linkType"/> |
Eric Newberry | de33245 | 2018-01-30 11:45:32 -0700 | [diff] [blame] | 85 | <xs:element type="nfd:congestionParamsType" name="congestion"/> |
| 86 | <xs:element type="nfd:faceFlagsType" name="flags"/> |
Chengyu Fan | 514ed5e | 2014-04-17 13:07:30 -0600 | [diff] [blame] | 87 | <xs:element type="nfd:bidirectionalPacketCountersType" name="packetCounters"/> |
Chengyu Fan | 3331cfa | 2014-07-25 17:36:31 -0600 | [diff] [blame] | 88 | <xs:element type="nfd:bidirectionalByteCountersType" name="byteCounters"/> |
Chengyu Fan | 514ed5e | 2014-04-17 13:07:30 -0600 | [diff] [blame] | 89 | </xs:sequence> |
| 90 | </xs:complexType> |
| 91 | |
| 92 | <xs:complexType name="facesType"> |
| 93 | <xs:sequence> |
| 94 | <xs:element type="nfd:faceType" name="face" maxOccurs="unbounded" minOccurs="0"/> |
| 95 | </xs:sequence> |
| 96 | </xs:complexType> |
| 97 | |
| 98 | <xs:complexType name="nextHopType"> |
| 99 | <xs:sequence> |
| 100 | <xs:element type="xs:nonNegativeInteger" name="faceId"/> |
| 101 | <xs:element type="xs:nonNegativeInteger" name="cost"/> |
| 102 | </xs:sequence> |
| 103 | </xs:complexType> |
| 104 | |
| 105 | <xs:complexType name="fibEntryType"> |
| 106 | <xs:sequence> |
| 107 | <xs:element type="xs:anyURI" name="prefix"/> |
| 108 | <xs:element name="nextHops"> |
| 109 | <xs:complexType> |
| 110 | <xs:sequence> |
| 111 | <xs:element type="nfd:nextHopType" name="nextHop" maxOccurs="unbounded"/> |
| 112 | </xs:sequence> |
| 113 | </xs:complexType> |
| 114 | </xs:element> |
| 115 | </xs:sequence> |
| 116 | </xs:complexType> |
| 117 | |
| 118 | <xs:complexType name="fibType"> |
| 119 | <xs:sequence> |
| 120 | <xs:element type="nfd:fibEntryType" name="fibEntry" maxOccurs="unbounded" minOccurs="0"/> |
| 121 | </xs:sequence> |
| 122 | </xs:complexType> |
| 123 | |
Chengyu Fan | 1c630ba | 2014-08-20 13:27:58 -0500 | [diff] [blame] | 124 | <xs:complexType name="ribFlagsType"> |
| 125 | <xs:sequence> |
Davide Pesavento | 4d82692 | 2018-02-11 23:05:48 -0500 | [diff] [blame] | 126 | <xs:element type="nfd:emptyType" name="childInherit" minOccurs="0"/> |
| 127 | <xs:element type="nfd:emptyType" name="ribCapture" minOccurs="0"/> |
Chengyu Fan | 1c630ba | 2014-08-20 13:27:58 -0500 | [diff] [blame] | 128 | </xs:sequence> |
| 129 | </xs:complexType> |
| 130 | |
Chengyu Fan | 30aa207 | 2014-07-20 13:52:32 -0600 | [diff] [blame] | 131 | <xs:complexType name="routeType"> |
| 132 | <xs:sequence> |
| 133 | <xs:element type="xs:nonNegativeInteger" name="faceId"/> |
Davide Pesavento | 4d82692 | 2018-02-11 23:05:48 -0500 | [diff] [blame] | 134 | <xs:element type="xs:string" name="origin"/> |
Chengyu Fan | 30aa207 | 2014-07-20 13:52:32 -0600 | [diff] [blame] | 135 | <xs:element type="xs:nonNegativeInteger" name="cost"/> |
Chengyu Fan | 1c630ba | 2014-08-20 13:27:58 -0500 | [diff] [blame] | 136 | <xs:element type="nfd:ribFlagsType" name="flags"/> |
Chengyu Fan | 30aa207 | 2014-07-20 13:52:32 -0600 | [diff] [blame] | 137 | <xs:element type="xs:duration" name="expirationPeriod" minOccurs="0"/> |
| 138 | </xs:sequence> |
| 139 | </xs:complexType> |
| 140 | |
| 141 | <xs:complexType name="ribEntryType"> |
| 142 | <xs:sequence> |
| 143 | <xs:element type="xs:anyURI" name="prefix"/> |
| 144 | <xs:element name="routes"> |
| 145 | <xs:complexType> |
| 146 | <xs:sequence> |
| 147 | <xs:element type="nfd:routeType" name="route" maxOccurs="unbounded"/> |
| 148 | </xs:sequence> |
| 149 | </xs:complexType> |
| 150 | </xs:element> |
| 151 | </xs:sequence> |
| 152 | </xs:complexType> |
| 153 | |
| 154 | <xs:complexType name="ribType"> |
| 155 | <xs:sequence> |
| 156 | <xs:element type="nfd:ribEntryType" name="ribEntry" maxOccurs="unbounded" minOccurs="0"/> |
| 157 | </xs:sequence> |
| 158 | </xs:complexType> |
| 159 | |
Davide Pesavento | 4d82692 | 2018-02-11 23:05:48 -0500 | [diff] [blame] | 160 | <xs:complexType name="csType"> |
| 161 | <xs:sequence> |
Junxiao Shi | 7a36ac7 | 2018-03-21 15:23:22 +0000 | [diff] [blame] | 162 | <xs:element type="xs:nonNegativeInteger" name="capacity"/> |
| 163 | <xs:element type="nfd:emptyType" name="admitEnabled" minOccurs="0"/> |
| 164 | <xs:element type="nfd:emptyType" name="serveEnabled" minOccurs="0"/> |
| 165 | <xs:element type="xs:nonNegativeInteger" name="nEntries"/> |
Davide Pesavento | 4d82692 | 2018-02-11 23:05:48 -0500 | [diff] [blame] | 166 | <xs:element type="xs:nonNegativeInteger" name="nHits"/> |
| 167 | <xs:element type="xs:nonNegativeInteger" name="nMisses"/> |
| 168 | </xs:sequence> |
| 169 | </xs:complexType> |
| 170 | |
Alexander Afanasyev | 0417d2a | 2014-06-08 10:56:43 +0300 | [diff] [blame] | 171 | <xs:complexType name="strategyType"> |
| 172 | <xs:sequence> |
| 173 | <xs:element type="xs:anyURI" name="name"/> |
| 174 | </xs:sequence> |
| 175 | </xs:complexType> |
| 176 | |
| 177 | <xs:complexType name="strategyChoiceType"> |
| 178 | <xs:sequence> |
| 179 | <xs:element type="xs:anyURI" name="namespace"/> |
| 180 | <xs:element type="nfd:strategyType" name="strategy"/> |
| 181 | </xs:sequence> |
| 182 | </xs:complexType> |
| 183 | |
| 184 | <xs:complexType name="strategyChoicesType"> |
| 185 | <xs:sequence> |
Davide Pesavento | 4d82692 | 2018-02-11 23:05:48 -0500 | [diff] [blame] | 186 | <xs:element type="nfd:strategyChoiceType" name="strategyChoice" maxOccurs="unbounded" minOccurs="0"/> |
Alexander Afanasyev | 0417d2a | 2014-06-08 10:56:43 +0300 | [diff] [blame] | 187 | </xs:sequence> |
| 188 | </xs:complexType> |
| 189 | |
Chengyu Fan | 514ed5e | 2014-04-17 13:07:30 -0600 | [diff] [blame] | 190 | <xs:element name="nfdStatus"> |
| 191 | <xs:complexType> |
| 192 | <xs:sequence> |
| 193 | <xs:element type="nfd:generalStatusType" name="generalStatus"/> |
Alexander Afanasyev | 0417d2a | 2014-06-08 10:56:43 +0300 | [diff] [blame] | 194 | <xs:element type="nfd:channelsType" name="channels"/> |
Chengyu Fan | 514ed5e | 2014-04-17 13:07:30 -0600 | [diff] [blame] | 195 | <xs:element type="nfd:facesType" name="faces"/> |
| 196 | <xs:element type="nfd:fibType" name="fib"/> |
Chengyu Fan | 30aa207 | 2014-07-20 13:52:32 -0600 | [diff] [blame] | 197 | <xs:element type="nfd:ribType" name="rib"/> |
Davide Pesavento | 4d82692 | 2018-02-11 23:05:48 -0500 | [diff] [blame] | 198 | <xs:element type="nfd:csType" name="cs"/> |
Alexander Afanasyev | 0417d2a | 2014-06-08 10:56:43 +0300 | [diff] [blame] | 199 | <xs:element type="nfd:strategyChoicesType" name="strategyChoices"/> |
Chengyu Fan | 514ed5e | 2014-04-17 13:07:30 -0600 | [diff] [blame] | 200 | </xs:sequence> |
| 201 | </xs:complexType> |
| 202 | </xs:element> |
| 203 | |
| 204 | </xs:schema> |