blob: 367cb67e60cb187c159963f61e7ee1b11d9553d5 [file] [log] [blame]
andrea1ce2bc82015-11-18 16:58:10 -08001{
2 "type": "object",
3 "title": "links",
4 "required": [
5 "links"
6 ],
7 "properties": {
8 "links": {
9 "type": "array",
10 "xml": {
11 "name": "links",
12 "wrapped": true
13 },
14 "items": {
15 "type": "object",
16 "title": "link",
17 "required": [
18 "src",
19 "dst",
20 "type",
21 "state"
22 ],
23 "properties": {
24 "src": {
25 "type": "object",
26 "title": "src",
27 "required": [
28 "port",
29 "device"
30 ],
31 "properties": {
32 "port": {
33 "type": "string",
34 "example": "3"
35 },
36 "device": {
37 "type": "string",
38 "example": "of:0000000000000002"
39 }
40 }
41 },
42 "dst": {
43 "type": "object",
44 "title": "dst",
45 "required": [
46 "port",
47 "device"
48 ],
49 "properties": {
50 "port": {
51 "type": "string",
52 "example": "2"
53 },
54 "device": {
55 "type": "string",
56 "example": "of:0000000000000003"
57 }
58 }
59 },
60 "type": {
61 "type": "string",
62 "example": "DIRECT"
63 },
64 "state": {
65 "type": "string",
66 "example": "ACTIVE"
67 }
68 }
69 }
70 }
71 }
72}