blob: 3a5230caea34d7b4f1687adf2d95f49e5a85a8fb [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 "ports": {
77 "type": "array",
78 "xml": {
79 "name": "port",
80 "wrapped": true
81 },
82 "items": {
83 "type": "object",
84 "title": "port",
85 "required": [
86 "element",
87 "port",
88 "isEnabled",
89 "type",
90 "portSpeed",
91 "annotations"
92 ],
93 "properties": {
94 "element": {
95 "type": "string",
96 "example": "of:0000000000000001"
97 },
98 "port": {
99 "type": "string",
100 "example": "2"
101 },
102 "isEnabled": {
103 "type": "boolean",
104 "example": true
105 },
106 "type": {
107 "type": "string",
108 "example": "copper"
109 },
110 "portSpeed": {
111 "type": "integer",
112 "format": "int64",
113 "example": 0
114 },
115 "annotations": {
116 "type": "object",
117 "title": "annotations",
118 "required": [
119 "portName"
120 ],
121 "properties": {
122 "portName": {
123 "type": "string",
124 "example": "s1"
125 }
126 }
127 }
128 }
129 }
130 }
131 }
132}