blob: 3a293fa955329df16d5222977a0889e49490d776 [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 Chan5425aae2020-01-14 16:29:43 -080068 },
69 "auxLocations": {
70 "required": false,
71 "type": "array",
72 "items": {
73 "type": "object",
74 "title": "location",
75 "required": [
76 "elementId",
77 "port"
78 ],
79 "properties": {
80 "elementId": {
81 "type": "string",
82 "example": "of:0000000000000003"
83 },
84 "port": {
85 "type": "string",
86 "example": "4"
87 }
88 }
89 }
90 },
91 "innerVlan": {
92 "type": "string",
93 "example": "-1"
94 },
95 "outerTpid": {
96 "type": "string",
97 "example": "unknown"
andrea1ce2bc82015-11-18 16:58:10 -080098 }
99 }
100 }
101 }
102 }
103}