blob: 5565a244af0c549f83ee8fd387694d4d02fea85c [file] [log] [blame]
Laszlo Papp5bdd0e42017-10-27 10:18:21 +01001{
2 "type": "object",
3 "title": "createIntent",
4 "required": [
5 "ingressPoint",
6 "egressPoint"
7 ],
8 "properties": {
9 "appId": {
10 "type": "string",
11 "example": "org.onosproject.ovsdb"
12 },
13 "ingressPoint": {
14 "type": "object",
15 "title": "ingressPoint",
16 "required": [
17 "device",
18 "port"
19 ],
20 "properties": {
21 "device": {
22 "type": "string",
23 "example": "of:0000000000000001"
24 },
25 "port": {
26 "type": "string",
27 "example": "1"
28 }
29 }
30 },
31 "egressPoint": {
32 "type": "object",
33 "title": "egressPoint",
34 "required": [
35 "device",
36 "port"
37 ],
38 "properties": {
39 "device": {
40 "type": "string",
41 "example": "of:0000000000000002"
42 },
43 "port": {
44 "type": "string",
45 "example": "200"
46 }
47 }
48 },
49 "bidirection": {
50 "type": "boolean",
51 "example": true
52 },
53 "signal": {
54 "type": "object",
55 "title": "signal",
56 "required": [
57 "channelSpacing",
58 "gridType",
59 "spacingMultiplier",
60 "slotGranularity"
61 ],
62 "properties": {
63 "channelSpacing": {
64 "type": "string",
alessio95ac1cf2018-08-27 18:13:55 +020065 "enum": ["CHL_100GHZ", "CHL_50GHZ", "CHL_25GHZ", "CHL_12P5GHZ", "CHL_6P25GHZ"],
66 "example": "CHL_50GHZ"
Laszlo Papp5bdd0e42017-10-27 10:18:21 +010067 },
68 "gridType": {
69 "type": "string",
alessio95ac1cf2018-08-27 18:13:55 +020070 "enum": ["DWDM", "CWDM", "FLEX"],
71 "example": "DWDM"
Laszlo Papp5bdd0e42017-10-27 10:18:21 +010072 },
73 "spacingMultiplier": {
74 "type": "integer",
75 "format": "int32",
alessio95ac1cf2018-08-27 18:13:55 +020076 "example": 12
Laszlo Papp5bdd0e42017-10-27 10:18:21 +010077 },
78 "slotGranularity": {
79 "type": "integer",
80 "format": "int32",
alessio95ac1cf2018-08-27 18:13:55 +020081 "example": 4
Laszlo Papp5bdd0e42017-10-27 10:18:21 +010082 }
83 }
84 }
85 }
86}