DongRyeol Cha | b1177cc | 2019-11-14 13:53:13 +0900 | [diff] [blame] | 1 | { |
2 | "type": "object", | ||||
3 | "title": "device", | ||||
4 | "required": [ | ||||
5 | "ports" | ||||
6 | ], | ||||
7 | "properties": { | ||||
8 | "ports": { | ||||
9 | "type": "array", | ||||
10 | "xml": { | ||||
11 | "name": "ports", | ||||
12 | "wrapped": true | ||||
13 | }, | ||||
14 | "items": { | ||||
15 | "type": "object", | ||||
16 | "title": "port", | ||||
17 | "required": [ | ||||
18 | "element", | ||||
19 | "port", | ||||
20 | "isEnabled", | ||||
21 | "type", | ||||
22 | "portSpeed", | ||||
23 | "annotations" | ||||
24 | ], | ||||
25 | "properties": { | ||||
26 | "element": { | ||||
27 | "type": "string", | ||||
28 | "example": "of:0000000000000001" | ||||
29 | }, | ||||
30 | "port": { | ||||
31 | "type": "string", | ||||
32 | "example": "2" | ||||
33 | }, | ||||
34 | "isEnabled": { | ||||
35 | "type": "boolean", | ||||
36 | "example": true | ||||
37 | }, | ||||
38 | "type": { | ||||
39 | "type": "string", | ||||
40 | "example": "copper" | ||||
41 | }, | ||||
42 | "portSpeed": { | ||||
43 | "type": "integer", | ||||
44 | "format": "int64", | ||||
45 | "example": 0 | ||||
46 | }, | ||||
47 | "annotations": { | ||||
48 | "type": "object", | ||||
49 | "title": "annotations", | ||||
50 | "required": [ | ||||
51 | "portName" | ||||
52 | ], | ||||
53 | "properties": { | ||||
54 | "portName": { | ||||
55 | "type": "string", | ||||
56 | "example": "s1" | ||||
57 | } | ||||
58 | } | ||||
59 | } | ||||
60 | } | ||||
61 | } | ||||
62 | } | ||||
63 | } | ||||
64 | } |