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> |
| 50 | <xs:element type="xs:string" name="local" maxOccurs="1" minOccurs="0"/> |
| 51 | <xs:element type="xs:string" name="on-demand" maxOccurs="1" minOccurs="0"/> |
| 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"/> |
Alexander Afanasyev | 40c61f7 | 2014-06-30 17:21:01 -0700 | [diff] [blame^] | 60 | <xs:element type="xs:duration" name="expirationPeriod" maxOccurs="1" minOccurs="0"/> |
Chengyu Fan | 514ed5e | 2014-04-17 13:07:30 -0600 | [diff] [blame] | 61 | <xs:element type="nfd:bidirectionalPacketCountersType" name="packetCounters"/> |
Alexander Afanasyev | d3967a2 | 2014-06-30 12:22:10 -0700 | [diff] [blame] | 62 | <xs:element type="nfd:faceFlagsType" name="flags" maxOccurs="1" 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 | |
Alexander Afanasyev | 0417d2a | 2014-06-08 10:56:43 +0300 | [diff] [blame] | 98 | <xs:complexType name="strategyType"> |
| 99 | <xs:sequence> |
| 100 | <xs:element type="xs:anyURI" name="name"/> |
| 101 | </xs:sequence> |
| 102 | </xs:complexType> |
| 103 | |
| 104 | <xs:complexType name="strategyChoiceType"> |
| 105 | <xs:sequence> |
| 106 | <xs:element type="xs:anyURI" name="namespace"/> |
| 107 | <xs:element type="nfd:strategyType" name="strategy"/> |
| 108 | </xs:sequence> |
| 109 | </xs:complexType> |
| 110 | |
| 111 | <xs:complexType name="strategyChoicesType"> |
| 112 | <xs:sequence> |
| 113 | <xs:element type="nfd:strategyChoiceType" name="strategyChoice" |
| 114 | maxOccurs="unbounded" minOccurs="0"/> |
| 115 | </xs:sequence> |
| 116 | </xs:complexType> |
| 117 | |
Chengyu Fan | 514ed5e | 2014-04-17 13:07:30 -0600 | [diff] [blame] | 118 | <xs:element name="nfdStatus"> |
| 119 | <xs:complexType> |
| 120 | <xs:sequence> |
| 121 | <xs:element type="nfd:generalStatusType" name="generalStatus"/> |
Alexander Afanasyev | 0417d2a | 2014-06-08 10:56:43 +0300 | [diff] [blame] | 122 | <xs:element type="nfd:channelsType" name="channels"/> |
Chengyu Fan | 514ed5e | 2014-04-17 13:07:30 -0600 | [diff] [blame] | 123 | <xs:element type="nfd:facesType" name="faces"/> |
| 124 | <xs:element type="nfd:fibType" name="fib"/> |
Alexander Afanasyev | 0417d2a | 2014-06-08 10:56:43 +0300 | [diff] [blame] | 125 | <xs:element type="nfd:strategyChoicesType" name="strategyChoices"/> |
Chengyu Fan | 514ed5e | 2014-04-17 13:07:30 -0600 | [diff] [blame] | 126 | </xs:sequence> |
| 127 | </xs:complexType> |
| 128 | </xs:element> |
| 129 | |
| 130 | </xs:schema> |