blob: 6bf6dd8c9352496343d7bb9e0e8a02ba10e9565b [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 },
Charles Chancd06c692017-04-27 20:46:06 -070035 "locations": {
36 "type": "array",
37 "items": {
38 "type": "object",
39 "title": "location",
40 "required": [
41 "elementId",
42 "port"
43 ],
44 "properties": {
45 "elementId": {
46 "type": "string",
47 "example": "of:0000000000000002"
48 },
49 "port": {
50 "type": "string",
51 "example": "3"
52 }
andrea1ce2bc82015-11-18 16:58:10 -080053 }
54 }
Charles Chan5425aae2020-01-14 16:29:43 -080055 },
56 "auxLocations": {
57 "required": false,
58 "type": "array",
59 "items": {
60 "type": "object",
61 "title": "location",
62 "required": [
63 "elementId",
64 "port"
65 ],
66 "properties": {
67 "elementId": {
68 "type": "string",
69 "example": "of:0000000000000003"
70 },
71 "port": {
72 "type": "string",
73 "example": "4"
74 }
75 }
76 }
77 },
78 "innerVlan": {
79 "type": "string",
80 "example": "-1"
81 },
82 "outerTpid": {
83 "type": "string",
84 "example": "unknown"
andrea1ce2bc82015-11-18 16:58:10 -080085 }
86 }
87}