[SDNGC-5859] copy local change to onap
[sdnc/oam.git] / platform-logic / vnfapi / src / main / json / VNF-API_vnf-topology-delete.json
1 [
2     {
3         "id": "708f9f60.b1b",
4         "type": "returnSuccess",
5         "name": "return success",
6         "xml": "<return status='success'>\n\t<parameter name=\"error-code\" value=\"200\" />",
7         "comments": "",
8         "x": 425.4320831298828,
9         "y": 578.3055973052979,
10         "z": "730f50c9.364a4",
11         "wires": []
12     },
13     {
14         "id": "237e95c1.a3bd4a",
15         "type": "block",
16         "name": "block : atomic",
17         "xml": "<block atomic=\"true\">",
18         "atomic": "true",
19         "outputs": 1,
20         "x": 202.4320297241211,
21         "y": 171.8888864517212,
22         "z": "730f50c9.364a4",
23         "wires": [
24             [
25                 "989753b1.14334",
26                 "708f9f60.b1b",
27                 "af6f4fd2.ed4a",
28                 "edddc577.9baf38",
29                 "5e0a89d0.58c1a8",
30                 "8e21b6e.34d7548",
31                 "19c37308.a9d61d",
32                 "d46e73ef.6e8c1"
33             ]
34         ]
35     },
36     {
37         "id": "989753b1.14334",
38         "type": "set",
39         "name": "set: order-status = Deleted",
40         "xml": "<set>\n\t<parameter name=\"service-data.oper-status.order-status\" value=\"Deleted\"/>",
41         "comments": "",
42         "x": 466.4320831298828,
43         "y": 405.30559730529785,
44         "z": "730f50c9.364a4",
45         "wires": []
46     },
47     {
48         "id": "39154674.c0751a",
49         "type": "method",
50         "name": "method vnf-topology-delete",
51         "xml": "<method rpc='vnf-topology-delete' mode='sync'>\n",
52         "comments": "",
53         "outputs": 1,
54         "x": 234.09871673583984,
55         "y": 121.05555057525635,
56         "z": "730f50c9.364a4",
57         "wires": [
58             [
59                 "237e95c1.a3bd4a"
60             ]
61         ]
62     },
63     {
64         "id": "33be7113.0fa75e",
65         "type": "service-logic",
66         "name": "VNF-API ${project.version}",
67         "module": "VNF-API",
68         "version": "${project.version}",
69         "comments": "",
70         "xml": "<service-logic xmlns='http://www.openecomp.org/sdnc/svclogic' xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xsi:schemaLocation='http://www.openecomp.org/sdnc/svclogic ./svclogic.xsd' module='VNF-API' version='${project.version}'>",
71         "outputs": 1,
72         "x": 350.7653503417969,
73         "y": 69.05556106567383,
74         "z": "730f50c9.364a4",
75         "wires": [
76             [
77                 "39154674.c0751a"
78             ]
79         ]
80     },
81     {
82         "id": "fb046bf4.0e07e8",
83         "type": "dgstart",
84         "name": "DGSTART",
85         "outputs": 1,
86         "x": 140.9320297241211,
87         "y": 68.88888645172119,
88         "z": "730f50c9.364a4",
89         "wires": [
90             [
91                 "33be7113.0fa75e"
92             ]
93         ]
94     },
95     {
96         "id": "14ee4185.d94a2e",
97         "type": "other",
98         "name": "false",
99         "xml": "<outcome value='false'>",
100         "comments": "",
101         "outputs": 1,
102         "x": 1129.356357574463,
103         "y": 253.3510227203369,
104         "z": "730f50c9.364a4",
105         "wires": [
106             [
107                 "95ad750b.27f1e8"
108             ]
109         ]
110     },
111     {
112         "id": "95ad750b.27f1e8",
113         "type": "returnFailure",
114         "name": "return failure",
115         "xml": "<return status='failure'>\n\t<parameter name='error-code' value='400'/>\n\t<parameter name='error-message' value='Invalid order-status'/>",
116         "comments": "",
117         "x": 1281.6894874572754,
118         "y": 253.35108375549316,
119         "z": "730f50c9.364a4",
120         "wires": []
121     },
122     {
123         "id": "5e0a89d0.58c1a8",
124         "type": "set",
125         "name": "set: last-action ",
126         "xml": "<set>\n\t<parameter name=\"service-data.oper-status.last-action\" value=\"`$service-data.request-information.request-action`\"/>",
127         "comments": "",
128         "x": 427.68968200683594,
129         "y": 448.8511905670166,
130         "z": "730f50c9.364a4",
131         "wires": []
132     },
133     {
134         "id": "af6f4fd2.ed4a",
135         "type": "switchNode",
136         "name": "switch:vnf-id   config == input",
137         "xml": "<switch test=\"`$vnf-topology-operation-input.vnf-request-information.vnf-id == $service-data.vnf-id`\">",
138         "comments": "",
139         "outputs": 1,
140         "x": 471.575927734375,
141         "y": 171.37643146514893,
142         "z": "730f50c9.364a4",
143         "wires": [
144             [
145                 "fd98c370.2db85"
146             ]
147         ]
148     },
149     {
150         "id": "fd98c370.2db85",
151         "type": "outcomeFalse",
152         "name": "false",
153         "xml": "<outcome value='false'>\n",
154         "comments": "",
155         "outputs": 1,
156         "x": 673.0304870605469,
157         "y": 171.55825901031494,
158         "z": "730f50c9.364a4",
159         "wires": [
160             [
161                 "957a2f6d.be384"
162             ]
163         ]
164     },
165     {
166         "id": "957a2f6d.be384",
167         "type": "returnFailure",
168         "name": "return failure",
169         "xml": "<return status='failure'>\n\t<parameter name='error-code' value='400'/>\n\t<parameter name='error-message' value='vnf-id not found'/>",
170         "comments": "",
171         "x": 836.6214065551758,
172         "y": 171.71735954284668,
173         "z": "730f50c9.364a4",
174         "wires": []
175     },
176     {
177         "id": "edddc577.9baf38",
178         "type": "set",
179         "name": "set: last-order-status = order-status",
180         "xml": "<set>\n\t<parameter name=\"service-data.oper-status.last-order-status\" value=\"`$service-data.oper-status.order-status`\"/>",
181         "comments": "",
182         "x": 492.82603454589844,
183         "y": 364.04314613342285,
184         "z": "730f50c9.364a4",
185         "wires": []
186     },
187     {
188         "id": "8e21b6e.34d7548",
189         "type": "set",
190         "name": "Clear vnf topology",
191         "xml": "<set>\n\t<parameter name=\"service-data.\" value=\"\" /> \n",
192         "comments": "",
193         "x": 436.82603454589844,
194         "y": 489.04314613342285,
195         "z": "730f50c9.364a4",
196         "wires": []
197     },
198     {
199         "id": "d113d476.f18958",
200         "type": "switchNode",
201         "name": "switch: order-status = Active",
202         "xml": "<switch test=\"`$service-data.oper-status.order-status == Active`\">",
203         "comments": "",
204         "outputs": 1,
205         "x": 927.5392570495605,
206         "y": 253.65082359313965,
207         "z": "730f50c9.364a4",
208         "wires": [
209             [
210                 "14ee4185.d94a2e"
211             ]
212         ]
213     },
214     {
215         "id": "d46e73ef.6e8c1",
216         "type": "set",
217         "name": "Set final indicator to Y",
218         "xml": "<set>\n<parameter name=\"ack-final\" value=\"Y\"/>",
219         "comments": "",
220         "x": 448.14640045166016,
221         "y": 534.2460708618164,
222         "z": "730f50c9.364a4",
223         "wires": []
224     },
225     {
226         "id": "19c37308.a9d61d",
227         "type": "switchNode",
228         "name": "switch: INPUT aic-cloud-region",
229         "xml": "<switch test=\"`$vnf-topology-operation-input.vnf-request-information.aic-cloud-region`\">",
230         "comments": "",
231         "outputs": 1,
232         "x": 480.4320831298828,
233         "y": 253.97222518920898,
234         "z": "730f50c9.364a4",
235         "wires": [
236             [
237                 "2a5a8a8e.704016"
238             ]
239         ]
240     },
241     {
242         "id": "a7341ebe.65182",
243         "type": "outcome",
244         "name": "NULL",
245         "xml": "<outcome value=''>",
246         "outputs": 1,
247         "x": 712.1820793151855,
248         "y": 301.6150789260864,
249         "z": "730f50c9.364a4",
250         "wires": [
251             [
252                 "707c532.d07baac"
253             ]
254         ]
255     },
256     {
257         "id": "707c532.d07baac",
258         "type": "switchNode",
259         "name": "switch: INPUT aic-clli",
260         "xml": "<switch test=\"`$vnf-topology-operation-input.vnf-request-information.aic-clli`\">",
261         "comments": "",
262         "outputs": 1,
263         "x": 909.1821212768555,
264         "y": 301.72224712371826,
265         "z": "730f50c9.364a4",
266         "wires": [
267             [
268                 "e4a6dc7f.9a579",
269                 "75bd2a98.3f43e4"
270             ]
271         ]
272     },
273     {
274         "id": "2a5a8a8e.704016",
275         "type": "other",
276         "name": "other",
277         "xml": "<outcome value='Other'>\n",
278         "comments": "",
279         "outputs": 1,
280         "x": 711.6821403503418,
281         "y": 253.72223949432373,
282         "z": "730f50c9.364a4",
283         "wires": [
284             [
285                 "d113d476.f18958"
286             ]
287         ]
288     },
289     {
290         "id": "e4a6dc7f.9a579",
291         "type": "outcome",
292         "name": "NULL",
293         "xml": "<outcome value=''>",
294         "outputs": 1,
295         "x": 1104.1820678710938,
296         "y": 302.4722204208374,
297         "z": "730f50c9.364a4",
298         "wires": [
299             [
300                 "6afa8d4b.3fc5e4"
301             ]
302         ]
303     },
304     {
305         "id": "6afa8d4b.3fc5e4",
306         "type": "returnFailure",
307         "name": "return failure",
308         "xml": "<return status='failure'>\n\t<parameter name='error-code' value='400'/>\n\t<parameter name='error-message' value='Either aic-cloud-region or aic-clli must be present'/>",
309         "comments": "",
310         "x": 1276.6820678710938,
311         "y": 302.9722204208374,
312         "z": "730f50c9.364a4",
313         "wires": []
314     },
315     {
316         "id": "75bd2a98.3f43e4",
317         "type": "other",
318         "name": "other",
319         "xml": "<outcome value='Other'>\n",
320         "comments": "",
321         "outputs": 1,
322         "x": 1105.4320678710938,
323         "y": 344.9722204208374,
324         "z": "730f50c9.364a4",
325         "wires": [
326             [
327                 "ea02cba4.399b88"
328             ]
329         ]
330     },
331     {
332         "id": "a2aea115.0a314",
333         "type": "save",
334         "name": "delete generic-vnf-l3-network",
335         "xml": "<delete plugin=\"org.openecomp.sdnc.sli.resource.sql.SqlResource\" \n\tresource=\"generic-vnf-l3-network\" \n\tkey=\"DELETE FROM GENERIC_VNF_L3_NETWORK WHERE vnf_id = $service-data.vnf-id\" \n\tforce=\"true\" >\n\n",
336         "comments": "",
337         "outputs": 1,
338         "x": 1227.9320983886719,
339         "y": 467.472243309021,
340         "z": "730f50c9.364a4",
341         "wires": [
342             [
343                 "f95d56cc.7fed28"
344             ]
345         ]
346     },
347     {
348         "id": "6635778e.a76f48",
349         "type": "save",
350         "name": "delete GammaResource: generic-vnf",
351         "xml": "<delete plugin=\"org.openecomp.sdnc.sli.resource.sql.SqlResource\" \n\tresource=\"generic-vnf\" \n\tkey=\"DELETE FROM GENERIC_VNF where vnf_id = $service-data.vnf-id\" \n\tlocal-only=\"true\" \n\tforce=\"true\" >\n\n",
352         "comments": "",
353         "outputs": 1,
354         "x": 1251.5912628173828,
355         "y": 553.8435049057007,
356         "z": "730f50c9.364a4",
357         "wires": [
358             [
359                 "f95d56cc.7fed28"
360             ]
361         ]
362     },
363     {
364         "id": "7f88cb67.0cb8a4",
365         "type": "save",
366         "name": "delete generic-vnf-vserver",
367         "xml": "<delete plugin=\"org.openecomp.sdnc.sli.resource.sql.SqlResource\" \n\tresource=\"generic-vnf-vserver\" \n\tkey=\"DELETE FROM GENERIC_VNF_VSERVER where vnf_id = $service-data.vnf-id\" \n\tforce=\"true\" >\n\n",
368         "comments": "",
369         "outputs": 1,
370         "x": 1219.3412628173828,
371         "y": 508.9267873764038,
372         "z": "730f50c9.364a4",
373         "wires": [
374             [
375                 "f95d56cc.7fed28"
376             ]
377         ]
378     },
379     {
380         "id": "7a91b73a.5b45a8",
381         "type": "switchNode",
382         "name": "switch: order-status = PendingDelete",
383         "xml": "<switch test=\"'$service-data.oper-status.order-status == PendingDelete'\">\n\n<!--\nleaf order-status {\n\ttype enumeration {\n\t\tenum \"Active\";\n\t\tenum \"PendingAssignment\";\n\t\tenum \"PendingCreate\";\n\t\tenum \"PendingUpdate\";\n\t\tenum \"Deleted\";\n\t}\n}\n-->",
384         "comments": "",
385         "outputs": 1,
386         "x": 1251.1820831298828,
387         "y": 425.72222805023193,
388         "z": "730f50c9.364a4",
389         "wires": [
390             [
391                 "77eb7904.f9f168"
392             ]
393         ]
394     },
395     {
396         "id": "77eb7904.f9f168",
397         "type": "other",
398         "name": "false",
399         "xml": "<outcome value='false'>",
400         "comments": "",
401         "outputs": 1,
402         "x": 1480.5154571533203,
403         "y": 426.0555410385132,
404         "z": "730f50c9.364a4",
405         "wires": [
406             [
407                 "4fba8967.330558"
408             ]
409         ]
410     },
411     {
412         "id": "4fba8967.330558",
413         "type": "returnFailure",
414         "name": "return failure",
415         "xml": "<return status='failure'>\n\t<parameter name='error-code' value='400'/>\n\t<parameter name='error-message' value='Invalid order-status'/>",
416         "comments": "",
417         "x": 1632.8485870361328,
418         "y": 426.05560207366943,
419         "z": "730f50c9.364a4",
420         "wires": []
421     },
422     {
423         "id": "ea02cba4.399b88",
424         "type": "block",
425         "name": "block",
426         "xml": "<block>\n",
427         "atomic": "false",
428         "comments": "",
429         "outputs": 1,
430         "x": 997.9320678710938,
431         "y": 425.9722204208374,
432         "z": "730f50c9.364a4",
433         "wires": [
434             [
435                 "a2aea115.0a314",
436                 "6635778e.a76f48",
437                 "7f88cb67.0cb8a4",
438                 "7b46fa5d.f08144"
439             ]
440         ]
441     },
442     {
443         "id": "f95d56cc.7fed28",
444         "type": "failure",
445         "name": "failure",
446         "xml": "<outcome value='failure'>\n",
447         "comments": "",
448         "outputs": 1,
449         "x": 1514.1820678710938,
450         "y": 508.4722204208374,
451         "z": "730f50c9.364a4",
452         "wires": [
453             [
454                 "640275aa.06b0bc"
455             ]
456         ]
457     },
458     {
459         "id": "640275aa.06b0bc",
460         "type": "set",
461         "name": "set: error-message",
462         "xml": "<set>\n\t<parameter name=\"error-code\" value=\"500\"/>\n\t<parameter name=\"error-message\" value=\"An error occurred while deleting generic-vnf, generic-vnf-l3-netweork or generic-vnf-vserver from GammaResource\"/>",
463         "comments": "",
464         "x": 1696.6820907592773,
465         "y": 508.47222900390625,
466         "z": "730f50c9.364a4",
467         "wires": []
468     },
469     {
470         "id": "7b46fa5d.f08144",
471         "type": "save",
472         "name": "delete AnAI: generic-vnf",
473         "xml": "<delete plugin=\"org.openecomp.sdnc.sli.aai.AAIService\" \n\tresource=\"generic-vnf\" \n\tkey=\"generic-vnf.vnf-id = $service-data.vnf-id\" \n\tlocal-only=\"false\" \n\tforce=\"true\" >\n\n",
474         "comments": "",
475         "outputs": 1,
476         "x": 1211.0432662963867,
477         "y": 598.2222328186035,
478         "z": "730f50c9.364a4",
479         "wires": [
480             [
481                 "4fdd37a6.2bc6e8"
482             ]
483         ]
484     },
485     {
486         "id": "4fdd37a6.2bc6e8",
487         "type": "failure",
488         "name": "failure",
489         "xml": "<outcome value='failure'>\n",
490         "comments": "",
491         "outputs": 1,
492         "x": 1403.0228729248047,
493         "y": 598.3509359359741,
494         "z": "730f50c9.364a4",
495         "wires": [
496             [
497                 "39c806b9.27c7ca"
498             ]
499         ]
500     },
501     {
502         "id": "39c806b9.27c7ca",
503         "type": "returnFailure",
504         "name": "return failure",
505         "xml": "<return status='failure'>\n\t<parameter name='error-code' value='500'/>\n\t<parameter name='error-message' value=\"`'Failed to delete generic-vnf from AnAI with vnf-id = '+ $service-data.vnf-id`\"/>",
506         "comments": "",
507         "x": 1561.1893997192383,
508         "y": 598.4343166351318,
509         "z": "730f50c9.364a4",
510         "wires": []
511     },
512     {
513         "id": "532716cb.365f68",
514         "type": "comment",
515         "name": "NOT checking order-status intentionally",
516         "info": "",
517         "comments": "",
518         "x": 1355.4320831298828,
519         "y": 389.9722261428833,
520         "z": "730f50c9.364a4",
521         "wires": []
522     },
523     {
524         "id": "5a7a473b.e0aa98",
525         "type": "comment",
526         "name": "Removing check for aic-cllu in 1707",
527         "info": "ks220y: Confirmed with Pat Cheung, as MSO won't send aic-clli",
528         "comments": "",
529         "x": 798.7222595214844,
530         "y": 340.0000162124634,
531         "z": "730f50c9.364a4",
532         "wires": []
533     }
534 ]