DGs for SOTN NNI based service creation
[sdnc/oam.git] / platform-logic / generic-resource-api / src / main / json / sotn_nni / GENERIC-RESOURCE-API_sotn-vnf-topology-operation-underlay-deactivate.json
1 [\r
2     {\r
3         "id": "3ad24b85.b3bf64",\r
4         "type": "dgstart",\r
5         "name": "DGSTART",\r
6         "outputs": 1,\r
7         "x": 106,\r
8         "y": 56,\r
9         "z": "1749c920.27afb7",\r
10         "wires": [\r
11             [\r
12                 "7476f33b.2d0eb4"\r
13             ]\r
14         ]\r
15     },\r
16     {\r
17         "id": "7476f33b.2d0eb4",\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": 390.2856903076172,\r
26         "y": 117.23810863494873,\r
27         "z": "1749c920.27afb7",\r
28         "wires": [\r
29             [\r
30                 "7da838c5.7d227"\r
31             ]\r
32         ]\r
33     },\r
34     {\r
35         "id": "7da838c5.7d227",\r
36         "type": "method",\r
37         "name": "method sotn-vnf-topology-operation-underlay-deactivate",\r
38         "xml": "<method rpc='sotn-vnf-topology-operation-underlay-deactivate' mode='sync'>\n",\r
39         "comments": "",\r
40         "outputs": 1,\r
41         "x": 396.42860412597656,\r
42         "y": 202.00003051757812,\r
43         "z": "1749c920.27afb7",\r
44         "wires": [\r
45             [\r
46                 "a742330d.128a3"\r
47             ]\r
48         ]\r
49     },\r
50     {\r
51         "id": "a742330d.128a3",\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": 592.2380447387695,\r
58         "y": 360.66666814964265,\r
59         "z": "1749c920.27afb7",\r
60         "wires": [\r
61             [\r
62                 "dfd1a930.eeb17",\r
63                 "b0be94f0.05dfb8",\r
64                 "59f78da4.50f2fc",\r
65                 "41673fa0.b1a818",\r
66                 "cdfb0ad2.8ad0d8",\r
67                 "4b93b56d.437c5c",\r
68                 "614f37e0.0249a"\r
69             ]\r
70         ]\r
71     },\r
72     {\r
73         "id": "dfd1a930.eeb17",\r
74         "type": "set",\r
75         "name": "set vnf-level-oper-status to PendingDelete",\r
76         "xml": "<set>\n<parameter name='service-data.vnfs.vnf[$tmp.vidx].vnf-data.vnf-level-oper-status.order-status' value='PendingDelete' />\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
77         "comments": "",\r
78         "x": 1000.3849029541016,\r
79         "y": 509.670627951622,\r
80         "z": "1749c920.27afb7",\r
81         "wires": []\r
82     },\r
83     {\r
84         "id": "b0be94f0.05dfb8",\r
85         "type": "returnSuccess",\r
86         "name": "return success",\r
87         "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
88         "comments": "",\r
89         "x": 926.5716247558594,\r
90         "y": 618.5970582962036,\r
91         "z": "1749c920.27afb7",\r
92         "wires": []\r
93     },\r
94     {\r
95         "id": "59f78da4.50f2fc",\r
96         "type": "set",\r
97         "name": "set vnf-index and vnf-object-path",\r
98         "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/'` \" />",\r
99         "comments": "",\r
100         "x": 977.5716247558594,\r
101         "y": 465.5968955755234,\r
102         "z": "1749c920.27afb7",\r
103         "wires": []\r
104     },\r
105     {\r
106         "id": "41673fa0.b1a818",\r
107         "type": "switchNode",\r
108         "name": "switch service-data.vnfs.vnf_length",\r
109         "xml": "<switch test='`$service-data.vnfs.vnf_length`'>\n",\r
110         "comments": "",\r
111         "outputs": 1,\r
112         "x": 1022.0000610351562,\r
113         "y": 250.00000545661896,\r
114         "z": "1749c920.27afb7",\r
115         "wires": [\r
116             [\r
117                 "46f139dc.3ca98",\r
118                 "7a6d1b04.564dbc",\r
119                 "95730397.a4e998"\r
120             ]\r
121         ]\r
122     },\r
123     {\r
124         "id": "95730397.a4e998",\r
125         "type": "outcome",\r
126         "name": "0",\r
127         "xml": "<outcome value='0'>\n",\r
128         "comments": "",\r
129         "outputs": 1,\r
130         "x": 1280.9689559936523,\r
131         "y": 211.96876499336213,\r
132         "z": "1749c920.27afb7",\r
133         "wires": [\r
134             [\r
135                 "646213b6.68f42c"\r
136             ]\r
137         ]\r
138     },\r
139     {\r
140         "id": "646213b6.68f42c",\r
141         "type": "returnFailure",\r
142         "name": "return failure",\r
143         "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
144         "comments": "",\r
145         "x": 1435.7778434753418,\r
146         "y": 230.88903352897614,\r
147         "z": "1749c920.27afb7",\r
148         "wires": []\r
149     },\r
150     {\r
151         "id": "46f139dc.3ca98",\r
152         "type": "other",\r
153         "name": "Null",\r
154         "xml": "<outcome value=''>\n",\r
155         "comments": "",\r
156         "outputs": 1,\r
157         "x": 1274.0000953674316,\r
158         "y": 251.00008651893586,\r
159         "z": "1749c920.27afb7",\r
160         "wires": [\r
161             [\r
162                 "646213b6.68f42c"\r
163             ]\r
164         ]\r
165     },\r
166     {\r
167         "id": "7a6d1b04.564dbc",\r
168         "type": "other",\r
169         "name": "other",\r
170         "xml": "<outcome value='Other'>\n",\r
171         "comments": "",\r
172         "outputs": 1,\r
173         "x": 1267.000503540039,\r
174         "y": 284.0000903336331,\r
175         "z": "1749c920.27afb7",\r
176         "wires": [\r
177             [\r
178                 "4e29626e.e0608c"\r
179             ]\r
180         ]\r
181     },\r
182     {\r
183         "id": "4e29626e.e0608c",\r
184         "type": "block",\r
185         "name": "block : atomic",\r
186         "xml": "<block atomic=\"true\">",\r
187         "atomic": "true",\r
188         "outputs": 1,\r
189         "x": 1414.2700462341309,\r
190         "y": 284.55473539512604,\r
191         "z": "1749c920.27afb7",\r
192         "wires": [\r
193             [\r
194                 "530877d0.02663",\r
195                 "a9f43f7c.095d3"\r
196             ]\r
197         ]\r
198     },\r
199     {\r
200         "id": "530877d0.02663",\r
201         "type": "for",\r
202         "name": "for vidx..service-data.vnfs.vnf_length[]",\r
203         "xml": "<for index='vidx' start='0' end='`$service-data.vnfs.vnf_length`' >\n",\r
204         "comments": "",\r
205         "outputs": 1,\r
206         "x": 1660.2861633300781,\r
207         "y": 291.4286558357999,\r
208         "z": "1749c920.27afb7",\r
209         "wires": [\r
210             [\r
211                 "a8e35f93.0e2bf"\r
212             ]\r
213         ]\r
214     },\r
215     {\r
216         "id": "a8e35f93.0e2bf",\r
217         "type": "block",\r
218         "name": "block",\r
219         "xml": "<block>\n",\r
220         "atomic": "false",\r
221         "comments": "",\r
222         "outputs": 1,\r
223         "x": 1879.6357955932617,\r
224         "y": 290.9687359062955,\r
225         "z": "1749c920.27afb7",\r
226         "wires": [\r
227             [\r
228                 "370233d.767e7cc"\r
229             ]\r
230         ]\r
231     },\r
232     {\r
233         "id": "370233d.767e7cc",\r
234         "type": "switchNode",\r
235         "name": "switch vnfid found",\r
236         "xml": "<switch test=\"`$service-data.vnfs.vnf[$vidx].vnf-id == $vnf-topology-operation-input.vnf-information.vnf-id`\">\n\n",\r
237         "comments": "",\r
238         "outputs": 1,\r
239         "x": 2033.7153930664062,\r
240         "y": 290.67881796043366,\r
241         "z": "1749c920.27afb7",\r
242         "wires": [\r
243             [\r
244                 "908635e8.5a6bb"\r
245             ]\r
246         ]\r
247     },\r
248     {\r
249         "id": "908635e8.5a6bb",\r
250         "type": "outcomeTrue",\r
251         "name": "true",\r
252         "xml": "<outcome value='true'>\n",\r
253         "comments": "",\r
254         "outputs": 1,\r
255         "x": 2209.6675148010254,\r
256         "y": 290.57150003593415,\r
257         "z": "1749c920.27afb7",\r
258         "wires": [\r
259             [\r
260                 "f0769224.c0af2"\r
261             ]\r
262         ]\r
263     },\r
264     {\r
265         "id": "f0769224.c0af2",\r
266         "type": "block",\r
267         "name": "block : atomic",\r
268         "xml": "<block atomic=\"true\">",\r
269         "atomic": "true",\r
270         "outputs": 1,\r
271         "x": 2358.312973022461,\r
272         "y": 278.97913000267,\r
273         "z": "1749c920.27afb7",\r
274         "wires": [\r
275             [\r
276                 "6bf835a7.6620bc"\r
277             ]\r
278         ]\r
279     },\r
280     {\r
281         "id": "6bf835a7.6620bc",\r
282         "type": "set",\r
283         "name": "set tmp.vidx and ctx.vnf-data",\r
284         "xml": "<set>\n<parameter name='tmp.vidx' value='`$vidx`' />\n<parameter name='ctx.vnf-data.' value='`$service-data.vnfs.vnf[$vidx].`' />\n",\r
285         "comments": "",\r
286         "x": 2620.1997680664062,\r
287         "y": 256.3215563027188,\r
288         "z": "1749c920.27afb7",\r
289         "wires": []\r
290     },\r
291     {\r
292         "id": "a9f43f7c.095d3",\r
293         "type": "switchNode",\r
294         "name": "switch tmp.vidx ",\r
295         "xml": "<switch test=\"`$tmp.vidx`\">\n\n",\r
296         "comments": "",\r
297         "outputs": 1,\r
298         "x": 1603.0000228881836,\r
299         "y": 345.99999353569,\r
300         "z": "1749c920.27afb7",\r
301         "wires": [\r
302             [\r
303                 "b3149be7.2c6a9"\r
304             ]\r
305         ]\r
306     },\r
307     {\r
308         "id": "b3149be7.2c6a9",\r
309         "type": "outcome",\r
310         "name": "NULL",\r
311         "xml": "<outcome value=''>\n",\r
312         "comments": "",\r
313         "outputs": 1,\r
314         "x": 1758.4286499023438,\r
315         "y": 345.57137701194733,\r
316         "z": "1749c920.27afb7",\r
317         "wires": [\r
318             [\r
319                 "4610208d.e47188"\r
320             ]\r
321         ]\r
322     },\r
323     {\r
324         "id": "4610208d.e47188",\r
325         "type": "returnFailure",\r
326         "name": "return failure",\r
327         "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
328         "comments": "",\r
329         "x": 1903.8573913574219,\r
330         "y": 345.7143146721646,\r
331         "z": "1749c920.27afb7",\r
332         "wires": []\r
333     },\r
334     {\r
335         "id": "cdfb0ad2.8ad0d8",\r
336         "type": "switchNode",\r
337         "name": "switch vnf-level-oper-status",\r
338         "xml": "<switch test='`$service-data.vnfs.vnf[$tmp.vidx].vnf-data.vnf-level-oper-status.order-status`'>\n",\r
339         "comments": "",\r
340         "outputs": 1,\r
341         "x": 971.0000762939453,\r
342         "y": 358.88902044296265,\r
343         "z": "1749c920.27afb7",\r
344         "wires": [\r
345             [\r
346                 "c03a8f6a.5ba2c",\r
347                 "fbd10336.a597a8"\r
348             ]\r
349         ]\r
350     },\r
351     {\r
352         "id": "c03a8f6a.5ba2c",\r
353         "type": "outcome",\r
354         "name": "outcome Active",\r
355         "xml": "<outcome value='Active'>\n",\r
356         "comments": "",\r
357         "outputs": 1,\r
358         "x": 1216.8333702087402,\r
359         "y": 360.00011825561523,\r
360         "z": "1749c920.27afb7",\r
361         "wires": [\r
362             [\r
363                 "442f984.65ce9e8"\r
364             ]\r
365         ]\r
366     },\r
367     {\r
368         "id": "442f984.65ce9e8",\r
369         "type": "block",\r
370         "name": "block : atomic",\r
371         "xml": "<block atomic=\"true\">",\r
372         "atomic": "true",\r
373         "outputs": 1,\r
374         "x": 1430.139762878418,\r
375         "y": 369.32530784606934,\r
376         "z": "1749c920.27afb7",\r
377         "wires": [\r
378             []\r
379         ]\r
380     },\r
381     {\r
382         "id": "fbd10336.a597a8",\r
383         "type": "other",\r
384         "name": "other",\r
385         "xml": "<outcome value='Other'>\n",\r
386         "comments": "",\r
387         "outputs": 1,\r
388         "x": 1194.8333892822266,\r
389         "y": 410.00012969970703,\r
390         "z": "1749c920.27afb7",\r
391         "wires": [\r
392             [\r
393                 "2dff766b.d66b12"\r
394             ]\r
395         ]\r
396     },\r
397     {\r
398         "id": "2dff766b.d66b12",\r
399         "type": "returnFailure",\r
400         "name": "return failure",\r
401         "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
402         "comments": "",\r
403         "x": 1354.3331565856934,\r
404         "y": 413.0001287460327,\r
405         "z": "1749c920.27afb7",\r
406         "wires": []\r
407     },\r
408     {\r
409         "id": "4b93b56d.437c5c",\r
410         "type": "set",\r
411         "name": "copy input data to service data",\r
412         "xml": "<set>\n<!--parameter name='service-data.vnfs.vnf[$tmp.vidx].vnf-id' value='`$vnf-topology-operation-input.vnf-information.vnf-id`' /-->\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
413         "comments": "",\r
414         "x": 980.0065612792969,\r
415         "y": 418.010435461998,\r
416         "z": "1749c920.27afb7",\r
417         "wires": []\r
418     },\r
419     {\r
420         "id": "614f37e0.0249a",\r
421         "type": "save",\r
422         "name": "update AnAI - vnf-instance.orchestration-status",\r
423         "xml": "<update plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\tresource=\"generic-vnf\"   \n\t\tkey=\"generic-vnf.vnf-id = $vnfId\" >\n<parameter name=\"orchestration-status\" value=\"PendingDelete\" />\n<parameter name=\"vnf-type\" value=\"some vnf-type\" />",\r
424         "comments": "",\r
425         "outputs": 1,\r
426         "x": 1022.0064239501953,\r
427         "y": 564.0105141401291,\r
428         "z": "1749c920.27afb7",\r
429         "wires": [\r
430             []\r
431         ]\r
432     }\r
433 ]