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> |
| 162 | <xs:element type="xs:nonNegativeInteger" name="nHits"/> |
| 163 | <xs:element type="xs:nonNegativeInteger" name="nMisses"/> |
| 164 | </xs:sequence> |
| 165 | </xs:complexType> |
| 166 | |
Alexander Afanasyev | 0417d2a | 2014-06-08 10:56:43 +0300 | [diff] [blame] | 167 | <xs:complexType name="strategyType"> |
| 168 | <xs:sequence> |
| 169 | <xs:element type="xs:anyURI" name="name"/> |
| 170 | </xs:sequence> |
| 171 | </xs:complexType> |
| 172 | |
| 173 | <xs:complexType name="strategyChoiceType"> |
| 174 | <xs:sequence> |
| 175 | <xs:element type="xs:anyURI" name="namespace"/> |
| 176 | <xs:element type="nfd:strategyType" name="strategy"/> |
| 177 | </xs:sequence> |
| 178 | </xs:complexType> |
| 179 | |
| 180 | <xs:complexType name="strategyChoicesType"> |
| 181 | <xs:sequence> |
Davide Pesavento | 4d82692 | 2018-02-11 23:05:48 -0500 | [diff] [blame] | 182 | <xs:element type="nfd:strategyChoiceType" name="strategyChoice" maxOccurs="unbounded" minOccurs="0"/> |
Alexander Afanasyev | 0417d2a | 2014-06-08 10:56:43 +0300 | [diff] [blame] | 183 | </xs:sequence> |
| 184 | </xs:complexType> |
| 185 | |
Chengyu Fan | 514ed5e | 2014-04-17 13:07:30 -0600 | [diff] [blame] | 186 | <xs:element name="nfdStatus"> |
| 187 | <xs:complexType> |
| 188 | <xs:sequence> |
| 189 | <xs:element type="nfd:generalStatusType" name="generalStatus"/> |
Alexander Afanasyev | 0417d2a | 2014-06-08 10:56:43 +0300 | [diff] [blame] | 190 | <xs:element type="nfd:channelsType" name="channels"/> |
Chengyu Fan | 514ed5e | 2014-04-17 13:07:30 -0600 | [diff] [blame] | 191 | <xs:element type="nfd:facesType" name="faces"/> |
| 192 | <xs:element type="nfd:fibType" name="fib"/> |
Chengyu Fan | 30aa207 | 2014-07-20 13:52:32 -0600 | [diff] [blame] | 193 | <xs:element type="nfd:ribType" name="rib"/> |
Davide Pesavento | 4d82692 | 2018-02-11 23:05:48 -0500 | [diff] [blame] | 194 | <xs:element type="nfd:csType" name="cs"/> |
Alexander Afanasyev | 0417d2a | 2014-06-08 10:56:43 +0300 | [diff] [blame] | 195 | <xs:element type="nfd:strategyChoicesType" name="strategyChoices"/> |
Chengyu Fan | 514ed5e | 2014-04-17 13:07:30 -0600 | [diff] [blame] | 196 | </xs:sequence> |
| 197 | </xs:complexType> |
| 198 | </xs:element> |
| 199 | |
| 200 | </xs:schema> |