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