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", |
kalagesa | 4201954 | 2017-03-14 18:00:47 +0530 | [diff] [blame] | 26 | "driver", |
andrea | 1ce2bc8 | 2015-11-18 16:58:10 -0800 | [diff] [blame] | 27 | "chassisId", |
| 28 | "annotations" |
andrea | 5056b51 | 2015-11-18 10:25:28 -0800 | [diff] [blame] | 29 | ], |
| 30 | "properties": { |
andrea | 1ce2bc8 | 2015-11-18 16:58:10 -0800 | [diff] [blame] | 31 | "id": { |
| 32 | "type": "string", |
| 33 | "example": "of:0000000000000001" |
| 34 | }, |
| 35 | "type": { |
| 36 | "type": "string", |
| 37 | "example": "SWITCH" |
| 38 | }, |
| 39 | "available": { |
| 40 | "type": "boolean", |
| 41 | "example": true |
| 42 | }, |
| 43 | "role": { |
| 44 | "type": "string", |
| 45 | "example": "of:0000000000000001" |
| 46 | }, |
| 47 | "mfr": { |
| 48 | "type": "string", |
| 49 | "example": "Nicira, Inc." |
| 50 | }, |
| 51 | "hw": { |
| 52 | "type": "string", |
| 53 | "example": "Open vSwitch" |
| 54 | }, |
| 55 | "sw": { |
| 56 | "type": "string", |
| 57 | "example": "2.3.1" |
| 58 | }, |
| 59 | "serial": { |
andrea | 5056b51 | 2015-11-18 10:25:28 -0800 | [diff] [blame] | 60 | "type": "string", |
| 61 | "example": "123" |
| 62 | }, |
kalagesa | 4201954 | 2017-03-14 18:00:47 +0530 | [diff] [blame] | 63 | "driver": { |
| 64 | "type": "string", |
| 65 | "example": "ovs" |
| 66 | }, |
andrea | 1ce2bc8 | 2015-11-18 16:58:10 -0800 | [diff] [blame] | 67 | "chassisId": { |
andrea | 5056b51 | 2015-11-18 10:25:28 -0800 | [diff] [blame] | 68 | "type": "string", |
andrea | 1ce2bc8 | 2015-11-18 16:58:10 -0800 | [diff] [blame] | 69 | "example": "1" |
andrea | 5056b51 | 2015-11-18 10:25:28 -0800 | [diff] [blame] | 70 | }, |
andrea | 1ce2bc8 | 2015-11-18 16:58:10 -0800 | [diff] [blame] | 71 | "annotations": { |
| 72 | "type": "object", |
| 73 | "title": "annotations", |
| 74 | "required": [ |
| 75 | "managementAddress", |
| 76 | "protocol", |
| 77 | "channelId" |
| 78 | ], |
| 79 | "properties": { |
| 80 | "managementAddress": { |
| 81 | "type": "string", |
| 82 | "example": "123" |
| 83 | }, |
| 84 | "protocol": { |
| 85 | "type": "string", |
| 86 | "example": "OF_13" |
| 87 | }, |
| 88 | "channelId": { |
| 89 | "type": "string", |
| 90 | "example": "10.128.12.4:34689" |
| 91 | } |
| 92 | } |
andrea | 5056b51 | 2015-11-18 10:25:28 -0800 | [diff] [blame] | 93 | } |
| 94 | } |
| 95 | } |
| 96 | } |
| 97 | } |
| 98 | } |