blob: 66bf6545ff99cb87ad8fe2d2b492a85e1aeb4035 [file] [log] [blame]
andrea1ce2bc82015-11-18 16:58:10 -08001{
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 },
30 "location": {
31 "type": "object",
32 "title": "location",
33 "required": [
34 "elementId",
35 "port"
36 ],
37 "properties": {
38 "elementId": {
39 "type": "string",
40 "example": "of:0000000000000002"
41 },
42 "port": {
43 "type": "string",
44 "example": "3"
45 }
46 }
47 }
48 }
49}