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