blob: 4cf4d9d28ef276f5268968cf2e80aa48601bc1fd [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",
26 "chassisId",
27 "annotations"
andrea5056b512015-11-18 10:25:28 -080028 ],
29 "properties": {
andrea1ce2bc82015-11-18 16:58:10 -080030 "id": {
31 "type": "string",
32 "example": "of:0000000000000001"
33 },
34 "type": {
35 "type": "string",
36 "example": "SWITCH"
37 },
38 "available": {
39 "type": "boolean",
40 "example": true
41 },
42 "role": {
43 "type": "string",
44 "example": "of:0000000000000001"
45 },
46 "mfr": {
47 "type": "string",
48 "example": "Nicira, Inc."
49 },
50 "hw": {
51 "type": "string",
52 "example": "Open vSwitch"
53 },
54 "sw": {
55 "type": "string",
56 "example": "2.3.1"
57 },
58 "serial": {
andrea5056b512015-11-18 10:25:28 -080059 "type": "string",
60 "example": "123"
61 },
andrea1ce2bc82015-11-18 16:58:10 -080062 "chassisId": {
andrea5056b512015-11-18 10:25:28 -080063 "type": "string",
andrea1ce2bc82015-11-18 16:58:10 -080064 "example": "1"
andrea5056b512015-11-18 10:25:28 -080065 },
andrea1ce2bc82015-11-18 16:58:10 -080066 "annotations": {
67 "type": "object",
68 "title": "annotations",
69 "required": [
70 "managementAddress",
71 "protocol",
72 "channelId"
73 ],
74 "properties": {
75 "managementAddress": {
76 "type": "string",
77 "example": "123"
78 },
79 "protocol": {
80 "type": "string",
81 "example": "OF_13"
82 },
83 "channelId": {
84 "type": "string",
85 "example": "10.128.12.4:34689"
86 }
87 }
andrea5056b512015-11-18 10:25:28 -080088 }
89 }
90 }
91 }
92 }
93}