andrea | 1ce2bc8 | 2015-11-18 16:58:10 -0800 | [diff] [blame] | 1 | { |
| 2 | "type": "object", |
| 3 | "title": "flow", |
| 4 | "required": [ |
| 5 | "priority", |
| 6 | "timeout", |
| 7 | "isPermanent", |
| 8 | "deviceId" |
| 9 | ], |
| 10 | "properties": { |
| 11 | "priority": { |
| 12 | "type": "integer", |
Jonathan Hart | c341833 | 2016-04-21 15:02:12 -0700 | [diff] [blame] | 13 | "format": "int32", |
| 14 | "example": 40000 |
andrea | 1ce2bc8 | 2015-11-18 16:58:10 -0800 | [diff] [blame] | 15 | }, |
| 16 | "timeout": { |
| 17 | "type": "integer", |
Jonathan Hart | c341833 | 2016-04-21 15:02:12 -0700 | [diff] [blame] | 18 | "format": "int32", |
andrea | 1ce2bc8 | 2015-11-18 16:58:10 -0800 | [diff] [blame] | 19 | "example": 0 |
| 20 | }, |
| 21 | "isPermanent": { |
| 22 | "type": "boolean", |
| 23 | "example": true |
| 24 | }, |
| 25 | "deviceId": { |
| 26 | "type": "string", |
andrea | d35f89c | 2015-11-23 10:02:07 -0800 | [diff] [blame] | 27 | "example": "of:0000000000000001" |
andrea | 1ce2bc8 | 2015-11-18 16:58:10 -0800 | [diff] [blame] | 28 | }, |
| 29 | "treatment": { |
| 30 | "type": "object", |
| 31 | "title": "treatment", |
| 32 | "required": [ |
| 33 | "instructions", |
| 34 | "deferred" |
| 35 | ], |
| 36 | "properties": { |
| 37 | "instructions": { |
| 38 | "type": "array", |
| 39 | "title": "treatment", |
| 40 | "required": [ |
| 41 | "properties", |
| 42 | "port" |
| 43 | ], |
| 44 | "items": { |
| 45 | "type": "object", |
| 46 | "title": "instructions", |
| 47 | "required": [ |
| 48 | "type", |
| 49 | "port" |
| 50 | ], |
| 51 | "properties": { |
| 52 | "type": { |
| 53 | "type": "string", |
| 54 | "example": "OUTPUT" |
| 55 | }, |
| 56 | "port": { |
Andrea Campanella | 5df3595 | 2015-12-08 15:46:49 -0800 | [diff] [blame] | 57 | "type": "string", |
| 58 | "example": "CONTROLLER" |
andrea | 1ce2bc8 | 2015-11-18 16:58:10 -0800 | [diff] [blame] | 59 | } |
| 60 | } |
| 61 | } |
| 62 | } |
| 63 | } |
| 64 | }, |
| 65 | "selector": { |
| 66 | "type": "object", |
| 67 | "title": "selector", |
| 68 | "required": [ |
| 69 | "criteria" |
| 70 | ], |
| 71 | "properties": { |
| 72 | "criteria": { |
| 73 | "type": "array", |
| 74 | "xml": { |
| 75 | "name": "criteria", |
| 76 | "wrapped": true |
| 77 | }, |
| 78 | "items": { |
| 79 | "type": "object", |
| 80 | "title": "criteria", |
andrea | 1ce2bc8 | 2015-11-18 16:58:10 -0800 | [diff] [blame] | 81 | "properties": { |
| 82 | "type": { |
| 83 | "type": "string", |
Andrea Campanella | 82baf6b | 2015-12-14 10:23:37 -0800 | [diff] [blame] | 84 | "description":"Ethernet field name", |
andrea | 1ce2bc8 | 2015-11-18 16:58:10 -0800 | [diff] [blame] | 85 | "example": "ETH_TYPE" |
| 86 | }, |
| 87 | "ethType": { |
Andrea Campanella | 82baf6b | 2015-12-14 10:23:37 -0800 | [diff] [blame] | 88 | "type": "int64", |
| 89 | "format": "int64", |
| 90 | "example": "0x88cc", |
| 91 | "description":"Ethernet frame type" |
andrea | 1ce2bc8 | 2015-11-18 16:58:10 -0800 | [diff] [blame] | 92 | } |
| 93 | } |
| 94 | } |
| 95 | } |
| 96 | } |
| 97 | } |
| 98 | } |
Jonathan Hart | c341833 | 2016-04-21 15:02:12 -0700 | [diff] [blame] | 99 | } |