andrea | 5056b51 | 2015-11-18 10:25:28 -0800 | [diff] [blame] | 1 | { |
andrea | 1ce2bc8 | 2015-11-18 16:58:10 -0800 | [diff] [blame] | 2 | "type": "object", |
| 3 | "title": "nodes", |
| 4 | "required": [ |
| 5 | "devices" |
| 6 | ], |
| 7 | "properties": { |
| 8 | "devices": { |
| 9 | "type": "array", |
| 10 | "xml": { |
| 11 | "name": "device", |
| 12 | "wrapped": true |
andrea | 5056b51 | 2015-11-18 10:25:28 -0800 | [diff] [blame] | 13 | }, |
andrea | 1ce2bc8 | 2015-11-18 16:58:10 -0800 | [diff] [blame] | 14 | "items": { |
andrea | 5056b51 | 2015-11-18 10:25:28 -0800 | [diff] [blame] | 15 | "type": "object", |
andrea | 1ce2bc8 | 2015-11-18 16:58:10 -0800 | [diff] [blame] | 16 | "title": "device", |
andrea | 5056b51 | 2015-11-18 10:25:28 -0800 | [diff] [blame] | 17 | "required": [ |
andrea | 1ce2bc8 | 2015-11-18 16:58:10 -0800 | [diff] [blame] | 18 | "id", |
| 19 | "type", |
| 20 | "available", |
| 21 | "role", |
| 22 | "mfr", |
| 23 | "hw", |
| 24 | "sw", |
| 25 | "serial", |
| 26 | "chassisId", |
| 27 | "annotations" |
andrea | 5056b51 | 2015-11-18 10:25:28 -0800 | [diff] [blame] | 28 | ], |
| 29 | "properties": { |
andrea | 1ce2bc8 | 2015-11-18 16:58:10 -0800 | [diff] [blame] | 30 | "id": { |
| 31 | "type": "string", |
| 32 | "example": "of:0000000000000001" |
| 33 | }, |
| 34 | "type": { |
| 35 | "type": "string", |
| 36 | "example": "SWITCH" |
| 37 | }, |
| 38 | "available": { |
| 39 | "type": "boolean", |
| 40 | "example": true |
| 41 | }, |
| 42 | "role": { |
| 43 | "type": "string", |
| 44 | "example": "of:0000000000000001" |
| 45 | }, |
| 46 | "mfr": { |
| 47 | "type": "string", |
| 48 | "example": "Nicira, Inc." |
| 49 | }, |
| 50 | "hw": { |
| 51 | "type": "string", |
| 52 | "example": "Open vSwitch" |
| 53 | }, |
| 54 | "sw": { |
| 55 | "type": "string", |
| 56 | "example": "2.3.1" |
| 57 | }, |
| 58 | "serial": { |
andrea | 5056b51 | 2015-11-18 10:25:28 -0800 | [diff] [blame] | 59 | "type": "string", |
| 60 | "example": "123" |
| 61 | }, |
andrea | 1ce2bc8 | 2015-11-18 16:58:10 -0800 | [diff] [blame] | 62 | "chassisId": { |
andrea | 5056b51 | 2015-11-18 10:25:28 -0800 | [diff] [blame] | 63 | "type": "string", |
andrea | 1ce2bc8 | 2015-11-18 16:58:10 -0800 | [diff] [blame] | 64 | "example": "1" |
andrea | 5056b51 | 2015-11-18 10:25:28 -0800 | [diff] [blame] | 65 | }, |
andrea | 1ce2bc8 | 2015-11-18 16:58:10 -0800 | [diff] [blame] | 66 | "annotations": { |
| 67 | "type": "object", |
| 68 | "title": "annotations", |
| 69 | "required": [ |
| 70 | "managementAddress", |
| 71 | "protocol", |
| 72 | "channelId" |
| 73 | ], |
| 74 | "properties": { |
| 75 | "managementAddress": { |
| 76 | "type": "string", |
| 77 | "example": "123" |
| 78 | }, |
| 79 | "protocol": { |
| 80 | "type": "string", |
| 81 | "example": "OF_13" |
| 82 | }, |
| 83 | "channelId": { |
| 84 | "type": "string", |
| 85 | "example": "10.128.12.4:34689" |
| 86 | } |
| 87 | } |
andrea | 5056b51 | 2015-11-18 10:25:28 -0800 | [diff] [blame] | 88 | } |
| 89 | } |
| 90 | } |
| 91 | } |
| 92 | } |
| 93 | } |