blob: da4f215f48f9411bbd9acc9a098d4979b3823a86 [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",
alessio3039bdb2018-11-29 14:12:32 +010011 "example": "org.onosproject.optical-rest"
Laszlo Papp5bdd0e42017-10-27 10:18:21 +010012 },
13 "ingressPoint": {
14 "type": "object",
15 "title": "ingressPoint",
16 "required": [
17 "device",
18 "port"
19 ],
20 "properties": {
21 "device": {
22 "type": "string",
alessio3039bdb2018-11-29 14:12:32 +010023 "example": "netconf:10.255.255.14:2022"
Laszlo Papp5bdd0e42017-10-27 10:18:21 +010024 },
25 "port": {
26 "type": "string",
alessio3039bdb2018-11-29 14:12:32 +010027 "example": "101"
Laszlo Papp5bdd0e42017-10-27 10:18:21 +010028 }
29 }
30 },
31 "egressPoint": {
32 "type": "object",
33 "title": "egressPoint",
34 "required": [
35 "device",
36 "port"
37 ],
38 "properties": {
39 "device": {
40 "type": "string",
alessio3039bdb2018-11-29 14:12:32 +010041 "example": "netconf:10.255.255.17:2022"
Laszlo Papp5bdd0e42017-10-27 10:18:21 +010042 },
43 "port": {
44 "type": "string",
alessio3039bdb2018-11-29 14:12:32 +010045 "example": "201"
Laszlo Papp5bdd0e42017-10-27 10:18:21 +010046 }
47 }
48 },
49 "bidirection": {
50 "type": "boolean",
alessio3039bdb2018-11-29 14:12:32 +010051 "example": false
Laszlo Papp5bdd0e42017-10-27 10:18:21 +010052 },
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",
alessio3039bdb2018-11-29 14:12:32 +010065 "enum": [
66 "CHL_100GHZ",
67 "CHL_50GHZ",
68 "CHL_25GHZ",
69 "CHL_12P5GHZ",
70 "CHL_6P25GHZ"
71 ],
alessio95ac1cf2018-08-27 18:13:55 +020072 "example": "CHL_50GHZ"
Laszlo Papp5bdd0e42017-10-27 10:18:21 +010073 },
74 "gridType": {
75 "type": "string",
alessio3039bdb2018-11-29 14:12:32 +010076 "enum": [
77 "DWDM",
78 "CWDM",
79 "FLEX"
80 ],
alessio95ac1cf2018-08-27 18:13:55 +020081 "example": "DWDM"
Laszlo Papp5bdd0e42017-10-27 10:18:21 +010082 },
83 "spacingMultiplier": {
84 "type": "integer",
85 "format": "int32",
alessio95ac1cf2018-08-27 18:13:55 +020086 "example": 12
Laszlo Papp5bdd0e42017-10-27 10:18:21 +010087 },
88 "slotGranularity": {
89 "type": "integer",
90 "format": "int32",
alessio95ac1cf2018-08-27 18:13:55 +020091 "example": 4
Laszlo Papp5bdd0e42017-10-27 10:18:21 +010092 }
93 }
alessio3039bdb2018-11-29 14:12:32 +010094 },
95 "suggestedPath": {
96 "type": "object",
97 "title": "suggestedPath",
98 "required": [
99 "links"
100 ],
101 "properties": {
102 "links": {
103 "type": "array",
104 "title": "suggestedPath",
105 "required": [
106 "link"
107 ],
108 "items": {
109 "type": "object",
110 "title": "link",
111 "required": [
112 "src",
113 "dst"
114 ],
115 "properties" : {
116 "src": {
117 "type": "string",
118 "example": "netconf:10.255.255.14:2022/101"
119 },
120 "dst": {
121 "type": "string",
122 "example": "netconf:10.255.255.9:2022/201"
123 }
124 }
125 }
126 }
127 }
Laszlo Papp5bdd0e42017-10-27 10:18:21 +0100128 }
129 }
130}