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 | 5425aae | 2020-01-14 16:29:43 -0800 | [diff] [blame] | 68 | }, |
| 69 | "auxLocations": { |
| 70 | "required": false, |
| 71 | "type": "array", |
| 72 | "items": { |
| 73 | "type": "object", |
| 74 | "title": "location", |
| 75 | "required": [ |
| 76 | "elementId", |
| 77 | "port" |
| 78 | ], |
| 79 | "properties": { |
| 80 | "elementId": { |
| 81 | "type": "string", |
| 82 | "example": "of:0000000000000003" |
| 83 | }, |
| 84 | "port": { |
| 85 | "type": "string", |
| 86 | "example": "4" |
| 87 | } |
| 88 | } |
| 89 | } |
| 90 | }, |
| 91 | "innerVlan": { |
| 92 | "type": "string", |
| 93 | "example": "-1" |
| 94 | }, |
| 95 | "outerTpid": { |
| 96 | "type": "string", |
| 97 | "example": "unknown" |
andrea | 1ce2bc8 | 2015-11-18 16:58:10 -0800 | [diff] [blame] | 98 | } |
| 99 | } |
| 100 | } |
| 101 | } |
| 102 | } |
| 103 | } |