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