blob: 9193e4aa046c12b756e210768f648bb235632f1c [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",
kalagesa42019542017-03-14 18:00:47 +053013 "driver",
andrea5056b512015-11-18 10:25:28 -080014 "chassisId",
15 "annotations"
16 ],
17 "properties": {
18 "id": {
19 "type": "string",
20 "example": "of:0000000000000001"
21 },
22 "type": {
23 "type": "string",
24 "example": "SWITCH"
25 },
26 "available": {
27 "type": "boolean",
28 "example": true
29 },
30 "role": {
31 "type": "string",
32 "example": "of:0000000000000001"
33 },
34 "mfr": {
35 "type": "string",
36 "example": "Nicira, Inc."
37 },
38 "hw": {
39 "type": "string",
40 "example": "Open vSwitch"
41 },
42 "sw": {
43 "type": "string",
44 "example": "2.3.1"
45 },
46 "serial": {
47 "type": "string",
48 "example": "123"
49 },
kalagesa42019542017-03-14 18:00:47 +053050 "driver": {
51 "type": "string",
52 "example": "ovs"
53 },
andrea5056b512015-11-18 10:25:28 -080054 "chassisId": {
55 "type": "string",
56 "example": "1"
57 },
58 "annotations": {
59 "type": "object",
60 "title": "annotations",
61 "required": [
62 "managementAddress",
63 "protocol",
64 "channelId"
65 ],
66 "properties": {
67 "managementAddress": {
68 "type": "string",
69 "example": "123"
70 },
71 "protocol": {
72 "type": "string",
73 "example": "OF_13"
74 },
75 "channelId": {
76 "type": "string",
77 "example": "10.128.12.4:34689"
78 }
79 }
80 },
81 "ports": {
82 "type": "array",
83 "xml": {
84 "name": "port",
85 "wrapped": true
86 },
87 "items": {
88 "type": "object",
89 "title": "port",
90 "required": [
91 "element",
92 "port",
93 "isEnabled",
94 "type",
95 "portSpeed",
96 "annotations"
97 ],
98 "properties": {
99 "element": {
100 "type": "string",
101 "example": "of:0000000000000001"
102 },
103 "port": {
104 "type": "string",
105 "example": "2"
106 },
107 "isEnabled": {
108 "type": "boolean",
109 "example": true
110 },
111 "type": {
112 "type": "string",
113 "example": "copper"
114 },
115 "portSpeed": {
116 "type": "integer",
117 "format": "int64",
118 "example": 0
119 },
120 "annotations": {
121 "type": "object",
122 "title": "annotations",
123 "required": [
124 "portName"
125 ],
126 "properties": {
127 "portName": {
128 "type": "string",
129 "example": "s1"
130 }
131 }
132 }
133 }
134 }
135 }
136 }
kalagesa42019542017-03-14 18:00:47 +0530137}