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 | 30aa207 | 2014-07-20 13:52:32 -0600 | [diff] [blame] | 107 | <xs:complexType name="routeType"> |
| 108 | <xs:sequence> |
| 109 | <xs:element type="xs:nonNegativeInteger" name="faceId"/> |
| 110 | <xs:element type="xs:nonNegativeInteger" name="origin"/> |
| 111 | <xs:element type="xs:nonNegativeInteger" name="cost"/> |
| 112 | <xs:element type="xs:nonNegativeInteger" name="flags"/> |
| 113 | <xs:element type="xs:duration" name="expirationPeriod" minOccurs="0"/> |
| 114 | </xs:sequence> |
| 115 | </xs:complexType> |
| 116 | |
| 117 | <xs:complexType name="ribEntryType"> |
| 118 | <xs:sequence> |
| 119 | <xs:element type="xs:anyURI" name="prefix"/> |
| 120 | <xs:element name="routes"> |
| 121 | <xs:complexType> |
| 122 | <xs:sequence> |
| 123 | <xs:element type="nfd:routeType" name="route" maxOccurs="unbounded"/> |
| 124 | </xs:sequence> |
| 125 | </xs:complexType> |
| 126 | </xs:element> |
| 127 | </xs:sequence> |
| 128 | </xs:complexType> |
| 129 | |
| 130 | <xs:complexType name="ribType"> |
| 131 | <xs:sequence> |
| 132 | <xs:element type="nfd:ribEntryType" name="ribEntry" maxOccurs="unbounded" minOccurs="0"/> |
| 133 | </xs:sequence> |
| 134 | </xs:complexType> |
| 135 | |
Alexander Afanasyev | 0417d2a | 2014-06-08 10:56:43 +0300 | [diff] [blame] | 136 | <xs:complexType name="strategyType"> |
| 137 | <xs:sequence> |
| 138 | <xs:element type="xs:anyURI" name="name"/> |
| 139 | </xs:sequence> |
| 140 | </xs:complexType> |
| 141 | |
| 142 | <xs:complexType name="strategyChoiceType"> |
| 143 | <xs:sequence> |
| 144 | <xs:element type="xs:anyURI" name="namespace"/> |
| 145 | <xs:element type="nfd:strategyType" name="strategy"/> |
| 146 | </xs:sequence> |
| 147 | </xs:complexType> |
| 148 | |
| 149 | <xs:complexType name="strategyChoicesType"> |
| 150 | <xs:sequence> |
| 151 | <xs:element type="nfd:strategyChoiceType" name="strategyChoice" |
| 152 | maxOccurs="unbounded" minOccurs="0"/> |
| 153 | </xs:sequence> |
| 154 | </xs:complexType> |
| 155 | |
Chengyu Fan | 514ed5e | 2014-04-17 13:07:30 -0600 | [diff] [blame] | 156 | <xs:element name="nfdStatus"> |
| 157 | <xs:complexType> |
| 158 | <xs:sequence> |
| 159 | <xs:element type="nfd:generalStatusType" name="generalStatus"/> |
Alexander Afanasyev | 0417d2a | 2014-06-08 10:56:43 +0300 | [diff] [blame] | 160 | <xs:element type="nfd:channelsType" name="channels"/> |
Chengyu Fan | 514ed5e | 2014-04-17 13:07:30 -0600 | [diff] [blame] | 161 | <xs:element type="nfd:facesType" name="faces"/> |
| 162 | <xs:element type="nfd:fibType" name="fib"/> |
Chengyu Fan | 30aa207 | 2014-07-20 13:52:32 -0600 | [diff] [blame] | 163 | <xs:element type="nfd:ribType" name="rib"/> |
Alexander Afanasyev | 0417d2a | 2014-06-08 10:56:43 +0300 | [diff] [blame] | 164 | <xs:element type="nfd:strategyChoicesType" name="strategyChoices"/> |
Chengyu Fan | 514ed5e | 2014-04-17 13:07:30 -0600 | [diff] [blame] | 165 | </xs:sequence> |
| 166 | </xs:complexType> |
| 167 | </xs:element> |
| 168 | |
| 169 | </xs:schema> |