NNI-based Service creation DG bug fixes (uni, l2vpn, and underlay resources).
[sdnc/oam.git] / platform-logic / generic-resource-api / src / main / json / sotn_nni / GENERIC-RESOURCE-API_sotn-vf-operation-l2vpn-activate.json
1 [\r
2     {\r
3         "id": "c0a79856.b8a9a8",\r
4         "type": "dgstart",\r
5         "name": "DGSTART",\r
6         "outputs": 1,\r
7         "x": 129,\r
8         "y": 75,\r
9         "z": "498236f1.856f48",\r
10         "wires": [\r
11             [\r
12                 "f23fb4.004e985"\r
13             ]\r
14         ]\r
15     },\r
16     {\r
17         "id": "f23fb4.004e985",\r
18         "type": "service-logic",\r
19         "name": "GENERIC-RESOURCE-API ${project.version}",\r
20         "module": "GENERIC-RESOURCE-API",\r
21         "version": "${project.version}",\r
22         "comments": "",\r
23         "xml": "<service-logic xmlns='http://www.onap.org/sdnc/svclogic' xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xsi:schemaLocation='http://www.onap.org/sdnc/svclogic ./svclogic.xsd' module='GENERIC-RESOURCE-API' version='${project.version}'>",\r
24         "outputs": 1,\r
25         "x": 260.2856903076172,\r
26         "y": 124.23810863494873,\r
27         "z": "498236f1.856f48",\r
28         "wires": [\r
29             [\r
30                 "16bd01d7.cde55e"\r
31             ]\r
32         ]\r
33     },\r
34     {\r
35         "id": "16bd01d7.cde55e",\r
36         "type": "method",\r
37         "name": "method sotn-vf-operation-l2vpn-activate",\r
38         "xml": "<method rpc='sotn-vf-operation-l2vpn-activate' mode='sync'>\n",\r
39         "comments": "",\r
40         "outputs": 1,\r
41         "x": 263.4286193847656,\r
42         "y": 209.00003242492676,\r
43         "z": "498236f1.856f48",\r
44         "wires": [\r
45             [\r
46                 "4bca7263.f9b50c"\r
47             ]\r
48         ]\r
49     },\r
50     {\r
51         "id": "4bca7263.f9b50c",\r
52         "type": "block",\r
53         "name": "block : atomic",\r
54         "xml": "<block atomic=\"true\">",\r
55         "atomic": "true",\r
56         "outputs": 1,\r
57         "x": 631.2380447387695,\r
58         "y": 423.66666814964265,\r
59         "z": "498236f1.856f48",\r
60         "wires": [\r
61             [\r
62                 "89ba9e4f.322f08",\r
63                 "b6b036c1.4e053",\r
64                 "a1814ef6.4e6ba"\r
65             ]\r
66         ]\r
67     },\r
68     {\r
69         "id": "213a5120.a6687e",\r
70         "type": "set",\r
71         "name": "set vnf-level-oper-status to Active",\r
72         "xml": "<set>\n<parameter name='service-data.vnfs.vnf[$tmp.vidx].vnf-data.vnf-level-oper-status.order-status' value='Active' />\n<parameter name='service-data.vnfs.vnf[$tmp.vidx].vnf-data.vnf-level-oper-status.last-rpc-action' value='`$vnf-topology-operation-input.sdnc-request-header.svc-action`' />\n<parameter name='service-data.vnfs.vnf[$tmp.vidx].vnf-data.vnf-level-oper-status.last-action' value='`$vnf-topology-operation-input.request-information.request-action`' />",\r
73         "comments": "",\r
74         "x": 1046.3850173950195,\r
75         "y": 610.6705513000488,\r
76         "z": "498236f1.856f48",\r
77         "wires": []\r
78     },\r
79     {\r
80         "id": "89ba9e4f.322f08",\r
81         "type": "returnSuccess",\r
82         "name": "return success",\r
83         "xml": "<return status='success'>\n<parameter name=\"ack-final-indicator\" value=\"Y\" />\n<parameter name=\"error-code\" value=\"200\" />\n<parameter name=\"error-message\" value=\"`$error-message`\" />\n",\r
84         "comments": "",\r
85         "x": 966.5717086791992,\r
86         "y": 736.5970888137817,\r
87         "z": "498236f1.856f48",\r
88         "wires": []\r
89     },\r
90     {\r
91         "id": "b6b036c1.4e053",\r
92         "type": "set",\r
93         "name": "set vnf-index and vnf-object-path",\r
94         "xml": "<set>\n<!--<parameter name='vnfId' value='`$vnf-topology-operation-input.vnf-information.vnf-id`' />-->\n<!--<parameter name=\"vnf-object-path\" value=\"`'restconf/config/GENERIC-RESOURCE-API:services/service/'  + $vnf-topology-operation-input.service-information.service-instance-id  + '/service-data/vnfs/vnf/'  + $vnf-topology-operation-input.vnf-information.vnf-id  + '/vnf-data/'` \" />-->\n\n<parameter name='vnfId' value='`$vf-module-topology-operation-input.vf-module-information.vf-module-id`' />\n<parameter name=\"vnf-object-path\" value=\"`'restconf/config/GENERIC-RESOURCE-API:services/service/'  + $vf-module-topology-operation-input.service-information.service-instance-id  + '/service-data/vnfs/vnf/'  + $vf-module-topology-operation-input.vnf-information.vnf-id  + '/vnf-data/'` \" />\n",\r
95         "comments": "",\r
96         "x": 1052.571662902832,\r
97         "y": 558.5968055725098,\r
98         "z": "498236f1.856f48",\r
99         "wires": []\r
100     },\r
101     {\r
102         "id": "951505a8.4ab128",\r
103         "type": "switchNode",\r
104         "name": "switch service-data.vnfs.vnf_length",\r
105         "xml": "<switch test='`$service-data.vnfs.vnf_length`'>\n",\r
106         "comments": "",\r
107         "outputs": 1,\r
108         "x": 1061.0000610351562,\r
109         "y": 313.00000545661896,\r
110         "z": "498236f1.856f48",\r
111         "wires": [\r
112             [\r
113                 "298b7800.074bc",\r
114                 "302f9230.c82bc6",\r
115                 "3ee80cd1.702c9c"\r
116             ]\r
117         ]\r
118     },\r
119     {\r
120         "id": "3ee80cd1.702c9c",\r
121         "type": "outcome",\r
122         "name": "0",\r
123         "xml": "<outcome value='0'>\n",\r
124         "comments": "",\r
125         "outputs": 1,\r
126         "x": 1319.9689559936523,\r
127         "y": 274.96876499336213,\r
128         "z": "498236f1.856f48",\r
129         "wires": [\r
130             [\r
131                 "bc487c7b.4684b8"\r
132             ]\r
133         ]\r
134     },\r
135     {\r
136         "id": "bc487c7b.4684b8",\r
137         "type": "returnFailure",\r
138         "name": "return failure",\r
139         "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n    <parameter name=\"error-message\" value=\"vnf-topology-operation-input.vnf-request-input.vnf-id not found in service-data\" />\n",\r
140         "comments": "",\r
141         "x": 1474.7778434753418,\r
142         "y": 293.88903352897614,\r
143         "z": "498236f1.856f48",\r
144         "wires": []\r
145     },\r
146     {\r
147         "id": "298b7800.074bc",\r
148         "type": "other",\r
149         "name": "Null",\r
150         "xml": "<outcome value=''>\n",\r
151         "comments": "",\r
152         "outputs": 1,\r
153         "x": 1313.0000953674316,\r
154         "y": 314.00008651893586,\r
155         "z": "498236f1.856f48",\r
156         "wires": [\r
157             [\r
158                 "bc487c7b.4684b8"\r
159             ]\r
160         ]\r
161     },\r
162     {\r
163         "id": "302f9230.c82bc6",\r
164         "type": "other",\r
165         "name": "other",\r
166         "xml": "<outcome value='Other'>\n",\r
167         "comments": "",\r
168         "outputs": 1,\r
169         "x": 1306.000503540039,\r
170         "y": 347.0000903336331,\r
171         "z": "498236f1.856f48",\r
172         "wires": [\r
173             [\r
174                 "3aa4324.564e84e"\r
175             ]\r
176         ]\r
177     },\r
178     {\r
179         "id": "3aa4324.564e84e",\r
180         "type": "block",\r
181         "name": "block : atomic",\r
182         "xml": "<block atomic=\"true\">",\r
183         "atomic": "true",\r
184         "outputs": 1,\r
185         "x": 1453.2700462341309,\r
186         "y": 347.55473539512604,\r
187         "z": "498236f1.856f48",\r
188         "wires": [\r
189             [\r
190                 "ea8cd4e1.da014"\r
191             ]\r
192         ]\r
193     },\r
194     {\r
195         "id": "ea8cd4e1.da014",\r
196         "type": "for",\r
197         "name": "for vidx..service-data.vnfs.vnf_length[]",\r
198         "xml": "<for index='vidx' start='0' end='`$service-data.vnfs.vnf_length`' >\n",\r
199         "comments": "",\r
200         "outputs": 1,\r
201         "x": 1699.2861633300781,\r
202         "y": 354.4286558357999,\r
203         "z": "498236f1.856f48",\r
204         "wires": [\r
205             [\r
206                 "6be80779.f9067"\r
207             ]\r
208         ]\r
209     },\r
210     {\r
211         "id": "6be80779.f9067",\r
212         "type": "block",\r
213         "name": "block",\r
214         "xml": "<block>\n",\r
215         "atomic": "false",\r
216         "comments": "",\r
217         "outputs": 1,\r
218         "x": 1918.6357955932617,\r
219         "y": 353.9687359062955,\r
220         "z": "498236f1.856f48",\r
221         "wires": [\r
222             [\r
223                 "e37eb61b.35117"\r
224             ]\r
225         ]\r
226     },\r
227     {\r
228         "id": "e37eb61b.35117",\r
229         "type": "switchNode",\r
230         "name": "switch vnfid found",\r
231         "xml": "<!--<switch test=\"`$service-data.vnfs.vnf[$vidx].vnf-id == $vnf-topology-operation-input.vnf-information.vnf-id`\">-->\n\n<switch test=\"`$service-data.vnfs.vnf[$vidx].vnf-id == $vf-topology-operation-input.vf-module-information.vf-module-id`\">\n\n",\r
232         "comments": "",\r
233         "outputs": 1,\r
234         "x": 2072.7153930664062,\r
235         "y": 353.67881796043366,\r
236         "z": "498236f1.856f48",\r
237         "wires": [\r
238             [\r
239                 "b5cfadba.1f4aa"\r
240             ]\r
241         ]\r
242     },\r
243     {\r
244         "id": "b5cfadba.1f4aa",\r
245         "type": "outcomeTrue",\r
246         "name": "true",\r
247         "xml": "<outcome value='true'>\n",\r
248         "comments": "",\r
249         "outputs": 1,\r
250         "x": 2248.6675148010254,\r
251         "y": 353.57150003593415,\r
252         "z": "498236f1.856f48",\r
253         "wires": [\r
254             [\r
255                 "bd36402c.584f38"\r
256             ]\r
257         ]\r
258     },\r
259     {\r
260         "id": "bd36402c.584f38",\r
261         "type": "set",\r
262         "name": "set tmp.vidx and ctx.vnf-data",\r
263         "xml": "<set>\n<parameter name='tmp.vidx' value='`$vidx`' />\n<parameter name='ctx.vnf-data.' value='`$service-data.vnfs.vnf[$vidx].`' />\n",\r
264         "comments": "",\r
265         "x": 2458.1998901367188,\r
266         "y": 355.3216001717374,\r
267         "z": "498236f1.856f48",\r
268         "wires": []\r
269     },\r
270     {\r
271         "id": "a1814ef6.4e6ba",\r
272         "type": "save",\r
273         "name": "update AnAI - l2vpn.operational-status",\r
274         "xml": "<update plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\tresource=\"connectivity\"   \n\t\tkey=\"connectivity.connectivity-id = $vnfId\" >\n<parameter name=\"operational-status\" value=\"Active\" />",\r
275         "comments": "",\r
276         "outputs": 1,\r
277         "x": 1072.0000228881836,\r
278         "y": 677.0103769302368,\r
279         "z": "498236f1.856f48",\r
280         "wires": [\r
281             []\r
282         ]\r
283     },\r
284     {\r
285         "id": "fa4a7cef.4c643",\r
286         "type": "set",\r
287         "name": "copy input data to service data",\r
288         "xml": "<set>\n<parameter name='service-data.vnfs.vnf[$tmp.vidx].vnf-data.sdnc-request-header.' value='$vnf-topology-operation-input.sdnc-request-header.' />\n<parameter name='service-data.vnfs.vnf[$tmp.vidx].vnf-data.request-information.' value='$vnf-topology-operation-input.request-information.' />\n<parameter name='service-data.vnfs.vnf[$tmp.vidx].vnf-data.service-information.' value='$vnf-topology-operation-input.service-information.' />",\r
289         "comments": "",\r
290         "x": 1051.0001373291016,\r
291         "y": 508.010338306427,\r
292         "z": "498236f1.856f48",\r
293         "wires": []\r
294     },\r
295     {\r
296         "id": "d491e887.81b538",\r
297         "type": "switchNode",\r
298         "name": "switch vnf-level-oper-status",\r
299         "xml": "<switch test='`$service-data.vnfs.vnf[$tmp.vidx].vnf-data.vnf-level-oper-status.order-status`'>\n",\r
300         "comments": "",\r
301         "outputs": 1,\r
302         "x": 1037.75,\r
303         "y": 413.00390815734863,\r
304         "z": "498236f1.856f48",\r
305         "wires": [\r
306             [\r
307                 "2e735695.8a522a",\r
308                 "9667f59f.7676c8"\r
309             ]\r
310         ]\r
311     },\r
312     {\r
313         "id": "2e735695.8a522a",\r
314         "type": "outcome",\r
315         "name": "outcome Created",\r
316         "xml": "<outcome value='Created'>\n",\r
317         "comments": "",\r
318         "outputs": 1,\r
319         "x": 1283.583293914795,\r
320         "y": 414.1150059700012,\r
321         "z": "498236f1.856f48",\r
322         "wires": [\r
323             [\r
324                 "a29cc418.229998"\r
325             ]\r
326         ]\r
327     },\r
328     {\r
329         "id": "9667f59f.7676c8",\r
330         "type": "other",\r
331         "name": "other",\r
332         "xml": "<outcome value='Other'>\n",\r
333         "comments": "",\r
334         "outputs": 1,\r
335         "x": 1261.5833129882812,\r
336         "y": 464.115017414093,\r
337         "z": "498236f1.856f48",\r
338         "wires": [\r
339             [\r
340                 "aa583cbc.e62958"\r
341             ]\r
342         ]\r
343     },\r
344     {\r
345         "id": "aa583cbc.e62958",\r
346         "type": "returnFailure",\r
347         "name": "return failure",\r
348         "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n    <parameter name=\"error-message\" value=\"`'VNF is not in appropriate state for activate. Current state is ' + $service-data.vnfs.vnf[$tmp.nidx].vnf-data.vnf-level-oper-status.order-status`\" />",\r
349         "comments": "",\r
350         "x": 1421.083080291748,\r
351         "y": 467.1150164604187,\r
352         "z": "498236f1.856f48",\r
353         "wires": []\r
354     },\r
355     {\r
356         "id": "a29cc418.229998",\r
357         "type": "block",\r
358         "name": "block : atomic",\r
359         "xml": "<block atomic=\"true\">",\r
360         "atomic": "true",\r
361         "outputs": 1,\r
362         "x": 1493.8896675109863,\r
363         "y": 425.4401812553406,\r
364         "z": "498236f1.856f48",\r
365         "wires": [\r
366             []\r
367         ]\r
368     }\r
369 ]