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-delete.json
1 [\r
2     {\r
3         "id": "99dfdf6b.5f9318",\r
4         "type": "dgstart",\r
5         "name": "DGSTART",\r
6         "outputs": 1,\r
7         "x": 99,\r
8         "y": 44,\r
9         "z": "fa25b782.cc03a",\r
10         "wires": [\r
11             [\r
12                 "92759b22.eb00d"\r
13             ]\r
14         ]\r
15     },\r
16     {\r
17         "id": "92759b22.eb00d",\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": 383.2856903076172,\r
26         "y": 105.23810863494873,\r
27         "z": "fa25b782.cc03a",\r
28         "wires": [\r
29             [\r
30                 "2dedb06e.bc71a8"\r
31             ]\r
32         ]\r
33     },\r
34     {\r
35         "id": "2dedb06e.bc71a8",\r
36         "type": "method",\r
37         "name": "method sotn-vnf-topology-operation-underlay-delete",\r
38         "xml": "<method rpc='sotn-vnf-topology-operation-underlay-delete' mode='sync'>\n",\r
39         "comments": "",\r
40         "outputs": 1,\r
41         "x": 389.42860412597656,\r
42         "y": 190.00003051757812,\r
43         "z": "fa25b782.cc03a",\r
44         "wires": [\r
45             [\r
46                 "97c9b256.2d5028"\r
47             ]\r
48         ]\r
49     },\r
50     {\r
51         "id": "9d9a5f2a.b67c4",\r
52         "type": "comment",\r
53         "name": "site-vnf-topology-operation-delete",\r
54         "info": "",\r
55         "comments": "",\r
56         "x": 961.9162979125977,\r
57         "y": 111.58639907836914,\r
58         "z": "fa25b782.cc03a",\r
59         "wires": []\r
60     },\r
61     {\r
62         "id": "97c9b256.2d5028",\r
63         "type": "block",\r
64         "name": "block : atomic",\r
65         "xml": "<block atomic=\"true\">",\r
66         "atomic": "true",\r
67         "outputs": 1,\r
68         "x": 589.2380447387695,\r
69         "y": 339.6666717529297,\r
70         "z": "fa25b782.cc03a",\r
71         "wires": [\r
72             [\r
73                 "26acbc94.464644",\r
74                 "29ca41d0.155d6e",\r
75                 "8eccfc5e.058248",\r
76                 "74bea299.2fc214",\r
77                 "ca45e630.8251e",\r
78                 "bd55244d.57f018",\r
79                 "f446816e.b70aa8",\r
80                 "b3a04e31.994298",\r
81                 "de69c0de.2774",\r
82                 "145f15a6.badfba"\r
83             ]\r
84         ]\r
85     },\r
86     {\r
87         "id": "74bea299.2fc214",\r
88         "type": "switchNode",\r
89         "name": "switch service-data.vnfs.vnf_length",\r
90         "xml": "<switch test='`$service-data.vnfs.vnf_length`'>\n",\r
91         "comments": "",\r
92         "outputs": 1,\r
93         "x": 1041.6660919189453,\r
94         "y": 257.2611792087555,\r
95         "z": "fa25b782.cc03a",\r
96         "wires": [\r
97             [\r
98                 "c81a6b20.3c67a",\r
99                 "3105aeca.f2a9f2"\r
100             ]\r
101         ]\r
102     },\r
103     {\r
104         "id": "c81a6b20.3c67a",\r
105         "type": "other",\r
106         "name": "outcome Null",\r
107         "xml": "<outcome value=''>\n",\r
108         "comments": "",\r
109         "outputs": 1,\r
110         "x": 1306.3884048461914,\r
111         "y": 239.81680130958557,\r
112         "z": "fa25b782.cc03a",\r
113         "wires": [\r
114             [\r
115                 "86a36888.63694"\r
116             ]\r
117         ]\r
118     },\r
119     {\r
120         "id": "86a36888.63694",\r
121         "type": "returnFailure",\r
122         "name": "return failure",\r
123         "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
124         "comments": "",\r
125         "x": 1487.3882751464844,\r
126         "y": 234.81667923927307,\r
127         "z": "fa25b782.cc03a",\r
128         "wires": []\r
129     },\r
130     {\r
131         "id": "3105aeca.f2a9f2",\r
132         "type": "other",\r
133         "name": "other",\r
134         "xml": "<outcome value='Other'>\n",\r
135         "comments": "",\r
136         "outputs": 1,\r
137         "x": 1291.8884048461914,\r
138         "y": 291.81676411628723,\r
139         "z": "fa25b782.cc03a",\r
140         "wires": [\r
141             [\r
142                 "e367ae2f.4837d8"\r
143             ]\r
144         ]\r
145     },\r
146     {\r
147         "id": "e367ae2f.4837d8",\r
148         "type": "block",\r
149         "name": "block : atomic",\r
150         "xml": "<block atomic=\"true\">",\r
151         "atomic": "true",\r
152         "outputs": 1,\r
153         "x": 1463.888111114502,\r
154         "y": 291.8167622089386,\r
155         "z": "fa25b782.cc03a",\r
156         "wires": [\r
157             [\r
158                 "5a431e2a.3fe42",\r
159                 "5859a1a2.5df2c8"\r
160             ]\r
161         ]\r
162     },\r
163     {\r
164         "id": "5859a1a2.5df2c8",\r
165         "type": "switchNode",\r
166         "name": "switch tmp.nidx ",\r
167         "xml": "<switch test=\"`$tmp.nidx`\">\n\n",\r
168         "comments": "",\r
169         "outputs": 1,\r
170         "x": 1638.888282775879,\r
171         "y": 310.81668400764465,\r
172         "z": "fa25b782.cc03a",\r
173         "wires": [\r
174             [\r
175                 "fcf67c01.2589c8"\r
176             ]\r
177         ]\r
178     },\r
179     {\r
180         "id": "8eccfc5e.058248",\r
181         "type": "switchNode",\r
182         "name": "switch vnf-level-oper-status",\r
183         "xml": "<switch test='`$service-data.vnfs.vnf[$tmp.nidx].vnf-data.vnf-level-oper-status.order-status`'>\n",\r
184         "comments": "",\r
185         "outputs": 1,\r
186         "x": 1012.0550918579102,\r
187         "y": 331.7056429386139,\r
188         "z": "fa25b782.cc03a",\r
189         "wires": [\r
190             [\r
191                 "4aaa97b8.591b",\r
192                 "ac9c60b4.538be8"\r
193             ]\r
194         ]\r
195     },\r
196     {\r
197         "id": "4aaa97b8.591b",\r
198         "type": "outcome",\r
199         "name": "outcome PendingDelete",\r
200         "xml": "<outcome value='PendingDelete'>\n",\r
201         "comments": "",\r
202         "outputs": 1,\r
203         "x": 1288.8884353637695,\r
204         "y": 334.8167426586151,\r
205         "z": "fa25b782.cc03a",\r
206         "wires": [\r
207             [\r
208                 "4f3006f4.4a2aa"\r
209             ]\r
210         ]\r
211     },\r
212     {\r
213         "id": "ac9c60b4.538be8",\r
214         "type": "other",\r
215         "name": "other",\r
216         "xml": "<outcome value='Other'>\n",\r
217         "comments": "",\r
218         "outputs": 1,\r
219         "x": 1249.8884201049805,\r
220         "y": 380.8167917728424,\r
221         "z": "fa25b782.cc03a",\r
222         "wires": [\r
223             [\r
224                 "309ebf7d.9eaeb"\r
225             ]\r
226         ]\r
227     },\r
228     {\r
229         "id": "309ebf7d.9eaeb",\r
230         "type": "returnFailure",\r
231         "name": "return failure",\r
232         "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
233         "comments": "",\r
234         "x": 1398.3881340026855,\r
235         "y": 379.81677174568176,\r
236         "z": "fa25b782.cc03a",\r
237         "wires": []\r
238     },\r
239     {\r
240         "id": "ca45e630.8251e",\r
241         "type": "execute",\r
242         "name": "execute requiredParameters",\r
243         "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='requiredParameters' >\n<parameter name=\"vnf-topology-operation-input.vnf-information.vnf-id\" value=\"$vnf-topology-operation-input.vnf-information.vnf-id\"/>\n\n",\r
244         "comments": "",\r
245         "outputs": 1,\r
246         "x": 1028.388427734375,\r
247         "y": 200.8167588710785,\r
248         "z": "fa25b782.cc03a",\r
249         "wires": [\r
250             []\r
251         ]\r
252     },\r
253     {\r
254         "id": "5a431e2a.3fe42",\r
255         "type": "for",\r
256         "name": "for nidx..service-data.vnfs.vnf[]",\r
257         "xml": "<for index='nidx' start='0' end='`$service-data.vnfs.vnf_length`' >\n",\r
258         "comments": "",\r
259         "outputs": 1,\r
260         "x": 1699.3882865905762,\r
261         "y": 246.8166801929474,\r
262         "z": "fa25b782.cc03a",\r
263         "wires": [\r
264             [\r
265                 "aad2af6a.5ca7a8"\r
266             ]\r
267         ]\r
268     },\r
269     {\r
270         "id": "aad2af6a.5ca7a8",\r
271         "type": "switchNode",\r
272         "name": "switch vnf-id found",\r
273         "xml": "<switch test=\"`$service-data.vnfs.vnf[$nidx].vnf-id == $vnf-topology-operation-input.vnf-information.vnf-id`\">\n\n",\r
274         "comments": "",\r
275         "outputs": 1,\r
276         "x": 1955.3883056640625,\r
277         "y": 246.8166801929474,\r
278         "z": "fa25b782.cc03a",\r
279         "wires": [\r
280             [\r
281                 "5de2b129.640c08"\r
282             ]\r
283         ]\r
284     },\r
285     {\r
286         "id": "5de2b129.640c08",\r
287         "type": "outcomeTrue",\r
288         "name": "true",\r
289         "xml": "<outcome value='true'>\n",\r
290         "comments": "",\r
291         "outputs": 1,\r
292         "x": 2131.888359069824,\r
293         "y": 249.8166801929474,\r
294         "z": "fa25b782.cc03a",\r
295         "wires": [\r
296             [\r
297                 "46f375ea.217e34"\r
298             ]\r
299         ]\r
300     },\r
301     {\r
302         "id": "46f375ea.217e34",\r
303         "type": "set",\r
304         "name": "set tmp.nidx and ctx.vnf-data",\r
305         "xml": "<set>\n<parameter name='tmp.nidx' value='`$nidx`' />\n<parameter name='ctx.vnf-data.' value='`$service-data.vnfs.vnf[$nidx].vnf-data.`' />\n",\r
306         "comments": "",\r
307         "x": 2298.8883743286133,\r
308         "y": 310.8166801929474,\r
309         "z": "fa25b782.cc03a",\r
310         "wires": []\r
311     },\r
312     {\r
313         "id": "579c1f0d.46de88",\r
314         "type": "returnFailure",\r
315         "name": "return failure",\r
316         "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
317         "comments": "",\r
318         "x": 1944.388298034668,\r
319         "y": 310.81668400764465,\r
320         "z": "fa25b782.cc03a",\r
321         "wires": []\r
322     },\r
323     {\r
324         "id": "fcf67c01.2589c8",\r
325         "type": "outcome",\r
326         "name": "NULL",\r
327         "xml": "<outcome value=''>\n",\r
328         "comments": "",\r
329         "outputs": 1,\r
330         "x": 1806.888298034668,\r
331         "y": 310.81668400764465,\r
332         "z": "fa25b782.cc03a",\r
333         "wires": [\r
334             [\r
335                 "579c1f0d.46de88"\r
336             ]\r
337         ]\r
338     },\r
339     {\r
340         "id": "26acbc94.464644",\r
341         "type": "set",\r
342         "name": "set vnfId and vnf-object-path",\r
343         "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/'\n + $vnf-topology-operation-input.service-information.service-instance-id\n + '/service-data/service-topology/'` \" />",\r
344         "comments": "",\r
345         "x": 998.9051132202148,\r
346         "y": 546.3336856365204,\r
347         "z": "fa25b782.cc03a",\r
348         "wires": []\r
349     },\r
350     {\r
351         "id": "29ca41d0.155d6e",\r
352         "type": "returnSuccess",\r
353         "name": "return success",\r
354         "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
355         "comments": "",\r
356         "x": 955.0162658691406,\r
357         "y": 623.8892447948456,\r
358         "z": "fa25b782.cc03a",\r
359         "wires": []\r
360     },\r
361     {\r
362         "id": "4f3006f4.4a2aa",\r
363         "type": "block",\r
364         "name": "block : atomic",\r
365         "xml": "<block atomic=\"true\">",\r
366         "atomic": "true",\r
367         "outputs": 1,\r
368         "x": 1484.1947937011719,\r
369         "y": 342.14194798469543,\r
370         "z": "fa25b782.cc03a",\r
371         "wires": [\r
372             []\r
373         ]\r
374     },\r
375     {\r
376         "id": "bd55244d.57f018",\r
377         "type": "set",\r
378         "name": "set prop.vnfNewidx",\r
379         "xml": "<set>\n<parameter name='prop.vnfidxLen' value='`0`' />\n",\r
380         "comments": "",\r
381         "x": 981.0000839233398,\r
382         "y": 382.00007796287537,\r
383         "z": "fa25b782.cc03a",\r
384         "wires": []\r
385     },\r
386     {\r
387         "id": "f446816e.b70aa8",\r
388         "type": "for",\r
389         "name": "for lidx..service-data.vnfs.vnf[]",\r
390         "xml": "<for index='lidx' start='0' end='`$service-data.vnfs.vnf_length`' >\n",\r
391         "comments": "",\r
392         "outputs": 1,\r
393         "x": 1005.0000686645508,\r
394         "y": 424.0000765323639,\r
395         "z": "fa25b782.cc03a",\r
396         "wires": [\r
397             [\r
398                 "1ab96be7.cabb84"\r
399             ]\r
400         ]\r
401     },\r
402     {\r
403         "id": "1ab96be7.cabb84",\r
404         "type": "block",\r
405         "name": "block : atomic",\r
406         "xml": "<block atomic=\"true\">",\r
407         "atomic": "true",\r
408         "outputs": 1,\r
409         "x": 1266.000144958496,\r
410         "y": 428.00011134147644,\r
411         "z": "fa25b782.cc03a",\r
412         "wires": [\r
413             [\r
414                 "29fae41e.925d84"\r
415             ]\r
416         ]\r
417     },\r
418     {\r
419         "id": "29fae41e.925d84",\r
420         "type": "switchNode",\r
421         "name": "switch vnf-id found",\r
422         "xml": "<switch test=\"`$service-data.vnfs.vnf[$lidx].vnf-id == $vnf-topology-operation-input.vnf-information.vnf-id`\">\n\n",\r
423         "comments": "",\r
424         "outputs": 1,\r
425         "x": 1458.0000915527344,\r
426         "y": 437.00015568733215,\r
427         "z": "fa25b782.cc03a",\r
428         "wires": [\r
429             [\r
430                 "3df67c89.832674"\r
431             ]\r
432         ]\r
433     },\r
434     {\r
435         "id": "3df67c89.832674",\r
436         "type": "outcomeFalse",\r
437         "name": "false",\r
438         "xml": "<outcome value='false'>\n",\r
439         "comments": "",\r
440         "outputs": 1,\r
441         "x": 1644.0001068115234,\r
442         "y": 421.0000422000885,\r
443         "z": "fa25b782.cc03a",\r
444         "wires": [\r
445             [\r
446                 "7d2244a.01d08bc"\r
447             ]\r
448         ]\r
449     },\r
450     {\r
451         "id": "7d2244a.01d08bc",\r
452         "type": "block",\r
453         "name": "block : atomic",\r
454         "xml": "<block atomic=\"true\">",\r
455         "atomic": "true",\r
456         "outputs": 1,\r
457         "x": 1795.0000305175781,\r
458         "y": 422.0000784397125,\r
459         "z": "fa25b782.cc03a",\r
460         "wires": [\r
461             [\r
462                 "83093bd6.426818",\r
463                 "5e4d811b.25e5b"\r
464             ]\r
465         ]\r
466     },\r
467     {\r
468         "id": "83093bd6.426818",\r
469         "type": "set",\r
470         "name": "set  vnf data",\r
471         "xml": "<set>\n<parameter name='service-data.vnfs.vnf[$prop.vnfidxLen].vnf-id' value='`$service-data.vnfs.vnf[$lidx].vnf-id`' />\n<parameter name='service-data.vnfs.vnf[$prop.vnfidxLen].vnf-data.' value='`$service-data.vnfs.vnf[$lidx].vnf-data.`' />\n",\r
472         "comments": "",\r
473         "x": 1962.0001983642578,\r
474         "y": 396.00026202201843,\r
475         "z": "fa25b782.cc03a",\r
476         "wires": []\r
477     },\r
478     {\r
479         "id": "5e4d811b.25e5b",\r
480         "type": "set",\r
481         "name": "set prop.vnfNewidx",\r
482         "xml": "<set>\n<parameter name='prop.vnfidxLen' value='`$prop.vnfidxLen + 1`' />\n",\r
483         "comments": "",\r
484         "x": 1982.0001258850098,\r
485         "y": 453.0001976490021,\r
486         "z": "fa25b782.cc03a",\r
487         "wires": []\r
488     },\r
489     {\r
490         "id": "b3a04e31.994298",\r
491         "type": "set",\r
492         "name": "set new vnf length",\r
493         "xml": "<set>\n\t<parameter name=\"service-data.vnfs.vnf_length\" value='`$prop.vnfidxLen`'/>\n\n\t\n",\r
494         "comments": "",\r
495         "x": 973.1014823913574,\r
496         "y": 467.804429769516,\r
497         "z": "fa25b782.cc03a",\r
498         "wires": []\r
499     },\r
500     {\r
501         "id": "de69c0de.2774",\r
502         "type": "set",\r
503         "name": "Remove vnf from ServiceData",\r
504         "xml": "<set>\n\t<parameter name=\"service-data.vnfs.vnf[$prop.vnfidxLen].\" value=\"\"/>\n\n",\r
505         "comments": "",\r
506         "x": 1003.0002517700195,\r
507         "y": 506.00021290779114,\r
508         "z": "fa25b782.cc03a",\r
509         "wires": []\r
510     },\r
511     {\r
512         "id": "145f15a6.badfba",\r
513         "type": "save",\r
514         "name": "delete AnAI - vnf-instance.orchestration-status",\r
515         "xml": "<delete 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\" />\n",\r
516         "comments": "",\r
517         "outputs": 1,\r
518         "x": 1060.0066452026367,\r
519         "y": 583.0106251239777,\r
520         "z": "fa25b782.cc03a",\r
521         "wires": [\r
522             []\r
523         ]\r
524     }\r
525 ]