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