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