blob: 5adef94726433839019e718d2db79314c80554d1 [file] [log] [blame]
andrea1ce2bc82015-11-18 16:58:10 -08001{
2 "type": "object",
3 "title": "hosts",
4 "required": [
5 "hosts"
6 ],
7 "properties": {
8 "hosts": {
9 "type": "array",
10 "xml": {
11 "name": "hosts",
12 "wrapped": true
13 },
14 "items": {
15 "type": "object",
16 "title": "host",
17 "required": [
18 "id",
19 "mac",
20 "vlan",
21 "ipAddresses",
22 "location"
23 ],
24 "properties": {
25 "id": {
26 "type": "string",
27 "example": "46:E4:3C:A4:17:C8/-1"
28 },
29 "mac": {
30 "type": "string",
31 "example": "46:E4:3C:A4:17:C8"
32 },
33 "vlan": {
34 "type": "string",
35 "example": "-1"
36 },
37 "ipAddresses": {
38 "type": "array",
39 "xml": {
40 "name": "hosts",
41 "wrapped": true
42 },
43 "items": {
44 "type": "string",
45 "example": "127.0.0.1"
46 }
47 },
Charles Chancd06c692017-04-27 20:46:06 -070048 "locations": {
49 "type": "array",
50 "items": {
51 "type": "object",
52 "title": "location",
53 "required": [
54 "elementId",
55 "port"
56 ],
57 "properties": {
58 "elementId": {
59 "type": "string",
60 "example": "of:0000000000000002"
61 },
62 "port": {
63 "type": "string",
64 "example": "3"
65 }
andrea1ce2bc82015-11-18 16:58:10 -080066 }
67 }
Charles Chan62851132020-01-14 16:29:43 -080068 },
69 "innerVlan": {
70 "type": "string",
71 "example": "-1"
72 },
73 "outerTpid": {
74 "type": "string",
75 "example": "unknown"
andrea1ce2bc82015-11-18 16:58:10 -080076 }
77 }
78 }
79 }
80 }
81}