andrea | 1ce2bc8 | 2015-11-18 16:58:10 -0800 | [diff] [blame] | 1 | { |
| 2 | "type": "object", |
| 3 | "title": "flows", |
| 4 | "required": [ |
| 5 | "flows" |
| 6 | ], |
| 7 | "properties": { |
| 8 | "flows": { |
| 9 | "type": "array", |
| 10 | "xml": { |
| 11 | "name": "hosts", |
| 12 | "wrapped": true |
| 13 | }, |
| 14 | "items": { |
| 15 | "type": "object", |
| 16 | "title": "flow", |
| 17 | "required": [ |
| 18 | "id", |
Srikanth Vavilapalli | d120f5c | 2015-11-24 14:15:01 -0800 | [diff] [blame] | 19 | "tableId", |
andrea | 1ce2bc8 | 2015-11-18 16:58:10 -0800 | [diff] [blame] | 20 | "appId", |
| 21 | "groupId", |
| 22 | "priority", |
| 23 | "timeout", |
| 24 | "isPermanent", |
| 25 | "deviceId", |
| 26 | "state", |
| 27 | "life", |
| 28 | "packets", |
| 29 | "bytes", |
| 30 | "lastSeen" |
| 31 | ], |
| 32 | "properties": { |
| 33 | "id": { |
| 34 | "type": "string", |
| 35 | "example": "12103425214920339" |
| 36 | }, |
Srikanth Vavilapalli | d120f5c | 2015-11-24 14:15:01 -0800 | [diff] [blame] | 37 | "tableId": { |
| 38 | "type": "integer", |
| 39 | "format": "int64", |
| 40 | "example": 3 |
| 41 | }, |
andrea | 1ce2bc8 | 2015-11-18 16:58:10 -0800 | [diff] [blame] | 42 | "appId": { |
| 43 | "type": "string", |
| 44 | "example": "org.onosproject.core" |
| 45 | }, |
| 46 | "groupId": { |
| 47 | "type": "integer", |
| 48 | "format": "int64", |
| 49 | "example": 0 |
| 50 | }, |
| 51 | "priority": { |
| 52 | "type": "integer", |
| 53 | "format": "int64", |
| 54 | "example": 400000 |
| 55 | }, |
| 56 | "timeout": { |
| 57 | "type": "integer", |
| 58 | "format": "int64", |
| 59 | "example": 0 |
| 60 | }, |
| 61 | "isPermanent": { |
| 62 | "type": "boolean", |
| 63 | "example": true |
| 64 | }, |
| 65 | "deviceId": { |
| 66 | "type": "string", |
| 67 | "example": "of:0000000000000003" |
| 68 | }, |
| 69 | "state": { |
| 70 | "type": "string", |
| 71 | "example": "ADDED" |
| 72 | }, |
| 73 | "life": { |
| 74 | "type": "integer", |
| 75 | "format": "int64", |
| 76 | "example": 69889 |
| 77 | }, |
| 78 | "packets": { |
| 79 | "type": "integer", |
| 80 | "format": "int64", |
| 81 | "example": 22546 |
| 82 | }, |
| 83 | "bytes": { |
| 84 | "type": "integer", |
| 85 | "format": "int64", |
| 86 | "example": 1826226 |
| 87 | }, |
| 88 | "lastSeen": { |
| 89 | "type": "integer", |
| 90 | "format": "int64", |
| 91 | "example": 1447892365670 |
| 92 | }, |
| 93 | "treatment": { |
| 94 | "type": "object", |
| 95 | "title": "treatment", |
| 96 | "required": [ |
| 97 | "instructions", |
| 98 | "deferred" |
| 99 | ], |
| 100 | "properties": { |
| 101 | "instructions": { |
| 102 | "type": "array", |
| 103 | "title": "treatment", |
| 104 | "required": [ |
| 105 | "properties", |
| 106 | "port" |
| 107 | ], |
| 108 | "items": { |
| 109 | "type": "object", |
| 110 | "title": "instruction", |
| 111 | "required": [ |
| 112 | "type", |
| 113 | "port" |
| 114 | ], |
| 115 | "properties": { |
| 116 | "type": { |
| 117 | "type": "string", |
| 118 | "example": "OUTPUT" |
| 119 | }, |
| 120 | "port": { |
| 121 | "type": "integer", |
| 122 | "format": "int64", |
| 123 | "example": -3 |
| 124 | } |
| 125 | } |
| 126 | } |
| 127 | }, |
| 128 | "deferred": { |
| 129 | "type": "array", |
| 130 | "xml": { |
| 131 | "name": "deferred", |
| 132 | "wrapped": true |
| 133 | }, |
| 134 | "items": { |
| 135 | "type": "string" |
| 136 | } |
| 137 | } |
| 138 | } |
| 139 | } |
| 140 | } |
| 141 | } |
| 142 | }, |
| 143 | "selector": { |
| 144 | "type": "object", |
| 145 | "title": "selector", |
| 146 | "required": [ |
| 147 | "criteria" |
| 148 | ], |
| 149 | "properties": { |
| 150 | "criteria": { |
| 151 | "type": "array", |
| 152 | "xml": { |
| 153 | "name": "criteria", |
| 154 | "wrapped": true |
| 155 | }, |
| 156 | "items": { |
| 157 | "type": "object", |
| 158 | "title": "criteria", |
| 159 | "required": [ |
| 160 | "type", |
| 161 | "ethType" |
| 162 | ], |
| 163 | "properties": { |
| 164 | "type": { |
| 165 | "type": "string", |
| 166 | "example": "ETH_TYPE" |
| 167 | }, |
| 168 | "ethType": { |
| 169 | "type": "integer", |
| 170 | "format": "int64", |
andrea | d35f89c | 2015-11-23 10:02:07 -0800 | [diff] [blame] | 171 | "example": "0x88cc" |
andrea | 1ce2bc8 | 2015-11-18 16:58:10 -0800 | [diff] [blame] | 172 | } |
| 173 | } |
| 174 | } |
| 175 | } |
| 176 | } |
| 177 | } |
| 178 | } |
| 179 | } |