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