blob: 26e1c41b1b903572e351d1b07dc097ad1e70fe90 [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 },
Charles Chancd06c692017-04-27 20:46:06 -070030 "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 }
andrea1ce2bc82015-11-18 16:58:10 -080048 }
49 }
50 }
51 }
52}