blob: 2407036ed002c335c123b005da02e77910a006d3 [file] [log] [blame]
andrea1ce2bc82015-11-18 16:58:10 -08001{
2 "type": "object",
3 "title": "paths",
4 "required": [
5 "paths"
6 ],
7 "properties": {
8 "paths": {
9 "type": "array",
10 "xml": {
11 "name": "hosts",
12 "wrapped": true
13 },
14 "items": {
15 "type": "object",
16 "title": "host",
17 "required": [
18 "cost",
19 "links"
20 ],
21 "properties": {
22 "cost": {
23 "type": "integer",
24 "format": "int64",
25 "example": 2
26 },
27 "links": {
28 "type": "array",
29 "xml": {
30 "name": "links",
31 "wrapped": true
32 },
33 "items": {
34 "type": "object",
35 "title": "link",
36 "required": [
37 "src",
38 "dst",
39 "type",
40 "state"
41 ],
42 "properties": {
43 "src": {
44 "type": "object",
45 "title": "src",
46 "required": [
47 "port",
48 "device"
49 ],
50 "properties": {
51 "port": {
52 "type": "string",
53 "example": "3"
54 },
55 "device": {
56 "type": "string",
57 "example": "of:0000000000000002"
58 }
59 }
60 },
61 "dst": {
62 "type": "object",
63 "title": "dst",
64 "required": [
65 "port",
66 "device"
67 ],
68 "properties": {
69 "port": {
70 "type": "string",
71 "example": "2"
72 },
73 "device": {
74 "type": "string",
75 "example": "of:0000000000000003"
76 }
77 }
78 },
79 "type": {
80 "type": "string",
81 "example": "DIRECT"
82 },
83 "state": {
84 "type": "string",
85 "example": "ACTIVE"
86 }
87 }
88 }
89 }
90 }
91 }
92 }
93 }
94}