blob: 937c684e52602bf6a459831fb3a5f77bd34043d2 [file] [log] [blame]
andrea5056b512015-11-18 10:25:28 -08001{
andrea1ce2bc82015-11-18 16:58:10 -08002 "type": "object",
3 "title": "nodes",
4 "required": [
5 "devices"
6 ],
7 "properties": {
8 "devices": {
9 "type": "array",
10 "xml": {
11 "name": "device",
12 "wrapped": true
andrea5056b512015-11-18 10:25:28 -080013 },
andrea1ce2bc82015-11-18 16:58:10 -080014 "items": {
andrea5056b512015-11-18 10:25:28 -080015 "type": "object",
andrea1ce2bc82015-11-18 16:58:10 -080016 "title": "device",
andrea5056b512015-11-18 10:25:28 -080017 "required": [
andrea1ce2bc82015-11-18 16:58:10 -080018 "id",
19 "type",
20 "available",
21 "role",
22 "mfr",
23 "hw",
24 "sw",
25 "serial",
kalagesa42019542017-03-14 18:00:47 +053026 "driver",
andrea1ce2bc82015-11-18 16:58:10 -080027 "chassisId",
28 "annotations"
andrea5056b512015-11-18 10:25:28 -080029 ],
30 "properties": {
andrea1ce2bc82015-11-18 16:58:10 -080031 "id": {
32 "type": "string",
33 "example": "of:0000000000000001"
34 },
35 "type": {
36 "type": "string",
37 "example": "SWITCH"
38 },
39 "available": {
40 "type": "boolean",
41 "example": true
42 },
43 "role": {
44 "type": "string",
45 "example": "of:0000000000000001"
46 },
47 "mfr": {
48 "type": "string",
49 "example": "Nicira, Inc."
50 },
51 "hw": {
52 "type": "string",
53 "example": "Open vSwitch"
54 },
55 "sw": {
56 "type": "string",
57 "example": "2.3.1"
58 },
59 "serial": {
andrea5056b512015-11-18 10:25:28 -080060 "type": "string",
61 "example": "123"
62 },
kalagesa42019542017-03-14 18:00:47 +053063 "driver": {
64 "type": "string",
65 "example": "ovs"
66 },
andrea1ce2bc82015-11-18 16:58:10 -080067 "chassisId": {
andrea5056b512015-11-18 10:25:28 -080068 "type": "string",
andrea1ce2bc82015-11-18 16:58:10 -080069 "example": "1"
andrea5056b512015-11-18 10:25:28 -080070 },
andrea1ce2bc82015-11-18 16:58:10 -080071 "annotations": {
72 "type": "object",
73 "title": "annotations",
74 "required": [
75 "managementAddress",
76 "protocol",
77 "channelId"
78 ],
79 "properties": {
80 "managementAddress": {
81 "type": "string",
82 "example": "123"
83 },
84 "protocol": {
85 "type": "string",
86 "example": "OF_13"
87 },
88 "channelId": {
89 "type": "string",
90 "example": "10.128.12.4:34689"
91 }
92 }
andrea5056b512015-11-18 10:25:28 -080093 }
94 }
95 }
96 }
97 }
98}