blob: 208bf1f566ce0e9e5eccddf6166eac774f339218 [file] [log] [blame]
andrea1ce2bc82015-11-18 16:58:10 -08001{
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 },
35 "location": {
36 "type": "object",
37 "title": "location",
38 "required": [
39 "elementId",
40 "port"
41 ],
42 "properties": {
43 "elementId": {
44 "type": "string",
45 "example": "of:0000000000000002"
46 },
47 "port": {
48 "type": "string",
49 "example": "3"
50 }
51 }
52 }
53 }
54}