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