blob: 816335678e08c37ddc2270e5f88e0252bd14a733 [file] [log] [blame]
Claudine Chiu1decd532016-04-19 18:30:01 +00001{
2 "type": "object",
3 "title": "VirtualLinks",
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": "vlink",
17 "required": [
18 "networkId",
19 "src",
20 "dst",
21 "type",
22 "state"
23 ],
24 "properties": {
25 "networkId": {
26 "type": "int64",
27 "description": "Network identifier",
28 "example": 3
29 },
30 "src": {
31 "type": "object",
32 "title": "src",
33 "required": [
34 "port",
35 "device"
36 ],
37 "properties": {
38 "port": {
39 "type": "int64",
40 "example": 3
41 },
42 "device": {
43 "type": "string",
44 "example": "of:0000000000000002"
45 }
46 }
47 },
48 "dst": {
49 "type": "object",
50 "title": "dst",
51 "required": [
52 "port",
53 "device"
54 ],
55 "properties": {
56 "port": {
57 "type": "int64",
58 "example": 2
59 },
60 "device": {
61 "type": "string",
62 "example": "of:0000000000000003"
63 }
64 }
65 },
66 "type": {
67 "type": "string",
68 "example": "VIRTUAL"
69 },
70 "state": {
71 "type": "string",
72 "example": "ACTIVE"
73 }
74 }
75 }
76 }
77 }
78}