blob: d1d22ad52579c16c7db4e0bfd59c56dab2aded6a [file] [log] [blame]
andrea5056b512015-11-18 10:25:28 -08001{
2 "type": "array",
3 "xml": {
4 "name": "device",
5 "wrapped": true
6 },
7 "items": {
8 "type": "object",
9 "title": "device",
10 "required": [
11 "id",
12 "type",
13 "available",
14 "role",
15 "mfr",
16 "hw",
17 "sw",
18 "serial",
19 "chassisId",
20 "annotations"
21 ],
22 "properties": {
23 "id": {
24 "type": "string",
25 "example": "of:0000000000000001"
26 },
27 "type": {
28 "type": "string",
29 "example": "SWITCH"
30 },
31 "available": {
32 "type": "boolean",
33 "example": true
34 },
35 "role": {
36 "type": "string",
37 "example": "of:0000000000000001"
38 },
39 "mfr": {
40 "type": "string",
41 "example": "Nicira, Inc."
42 },
43 "hw": {
44 "type": "string",
45 "example": "Open vSwitch"
46 },
47 "sw": {
48 "type": "string",
49 "example": "2.3.1"
50 },
51 "serial": {
52 "type": "string",
53 "example": "123"
54 },
55 "chassisId": {
56 "type": "string",
57 "example": "1"
58 },
59 "annotations": {
60 "type": "object",
61 "title": "annotations",
62 "required": [
63 "managementAddress",
64 "protocol",
65 "channelId"
66 ],
67 "properties": {
68 "managementAddress": {
69 "type": "string",
70 "example": "123"
71 },
72 "protocol": {
73 "type": "string",
74 "example": "OF_13"
75 },
76 "channelId": {
77 "type": "string",
78 "example": "10.128.12.4:34689"
79 }
80 }
81 }
82 }
83 }
84}