andrea | 1ce2bc8 | 2015-11-18 16:58:10 -0800 | [diff] [blame] | 1 | { |
| 2 | "type": "object", |
| 3 | "title": "hosts", |
| 4 | "required": [ |
| 5 | "hosts" |
| 6 | ], |
| 7 | "properties": { |
| 8 | "hosts": { |
| 9 | "type": "array", |
| 10 | "xml": { |
| 11 | "name": "hosts", |
| 12 | "wrapped": true |
| 13 | }, |
| 14 | "items": { |
| 15 | "type": "object", |
| 16 | "title": "host", |
| 17 | "required": [ |
| 18 | "id", |
| 19 | "mac", |
| 20 | "vlan", |
| 21 | "ipAddresses", |
| 22 | "location" |
| 23 | ], |
| 24 | "properties": { |
| 25 | "id": { |
| 26 | "type": "string", |
| 27 | "example": "46:E4:3C:A4:17:C8/-1" |
| 28 | }, |
| 29 | "mac": { |
| 30 | "type": "string", |
| 31 | "example": "46:E4:3C:A4:17:C8" |
| 32 | }, |
| 33 | "vlan": { |
| 34 | "type": "string", |
| 35 | "example": "-1" |
| 36 | }, |
| 37 | "ipAddresses": { |
| 38 | "type": "array", |
| 39 | "xml": { |
| 40 | "name": "hosts", |
| 41 | "wrapped": true |
| 42 | }, |
| 43 | "items": { |
| 44 | "type": "string", |
| 45 | "example": "127.0.0.1" |
| 46 | } |
| 47 | }, |
Charles Chan | cd06c69 | 2017-04-27 20:46:06 -0700 | [diff] [blame] | 48 | "locations": { |
| 49 | "type": "array", |
| 50 | "items": { |
| 51 | "type": "object", |
| 52 | "title": "location", |
| 53 | "required": [ |
| 54 | "elementId", |
| 55 | "port" |
| 56 | ], |
| 57 | "properties": { |
| 58 | "elementId": { |
| 59 | "type": "string", |
| 60 | "example": "of:0000000000000002" |
| 61 | }, |
| 62 | "port": { |
| 63 | "type": "string", |
| 64 | "example": "3" |
| 65 | } |
andrea | 1ce2bc8 | 2015-11-18 16:58:10 -0800 | [diff] [blame] | 66 | } |
| 67 | } |
Charles Chan | 6285113 | 2020-01-14 16:29:43 -0800 | [diff] [blame] | 68 | }, |
| 69 | "innerVlan": { |
| 70 | "type": "string", |
| 71 | "example": "-1" |
| 72 | }, |
| 73 | "outerTpid": { |
| 74 | "type": "string", |
| 75 | "example": "unknown" |
andrea | 1ce2bc8 | 2015-11-18 16:58:10 -0800 | [diff] [blame] | 76 | } |
| 77 | } |
| 78 | } |
| 79 | } |
| 80 | } |
| 81 | } |