Moved bbs logic from network-topoly-operation to vnf
[sdnc/oam.git] / platform-logic / generic-resource-api / src / main / json / GENERIC-RESOURCE-API_bbs-internet-profile-vnf-topology-operation-delete-huawei.json
1 [\r
2     {\r
3         "id": "a77f6699.47796",\r
4         "type": "dgstart",\r
5         "name": "DGSTART",\r
6         "outputs": 1,\r
7         "x": 106.75,\r
8         "y": 79.77389526367188,\r
9         "z": "e5a6ac34.a7198",\r
10         "wires": [\r
11             [\r
12                 "c640c202.91b41"\r
13             ]\r
14         ]\r
15     },\r
16     {\r
17         "id": "c640c202.91b41",\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": 414.74964904785156,\r
26         "y": 79.77391719818115,\r
27         "z": "e5a6ac34.a7198",\r
28         "wires": [\r
29             [\r
30                 "4e95369f.bf41e"\r
31             ]\r
32         ]\r
33     },\r
34     {\r
35         "id": "4e95369f.bf41e",\r
36         "type": "method",\r
37         "name": "method:bbs-internet-profile-vnf-topology-operation-delete-huawei",\r
38         "xml": "<method rpc='bbs-internet-profile-vnf-topology-operation-delete-huawei' mode='sync'>\n",\r
39         "comments": "",\r
40         "outputs": 1,\r
41         "x": 412.7496337890625,\r
42         "y": 275.77399349212646,\r
43         "z": "e5a6ac34.a7198",\r
44         "wires": [\r
45             [\r
46                 "a33839b0.90a02"\r
47             ]\r
48         ]\r
49     },\r
50     {\r
51         "id": "a33839b0.90a02",\r
52         "type": "block",\r
53         "name": "block : atomic",\r
54         "xml": "<block atomic=\"true\">\n",\r
55         "atomic": "false",\r
56         "comments": "",\r
57         "outputs": 1,\r
58         "x": 819.7498626708984,\r
59         "y": 276.77395725250244,\r
60         "z": "e5a6ac34.a7198",\r
61         "wires": [\r
62             [\r
63                 "2ed02a5c.5d72ce",\r
64                 "c8fbb930.846a4",\r
65                 "3956ad31.45a35a",\r
66                 "bf1fcd53.ddfe",\r
67                 "1fd3f69.1d31e89"\r
68             ]\r
69         ]\r
70     },\r
71     {\r
72         "id": "1fd3f69.1d31e89",\r
73         "type": "execute",\r
74         "name": "execute:DeleteInternetProfileInstance",\r
75         "xml": "<execute plugin=\"org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode\" method=\"sendRequest\">\n    <parameter name=\"templateFileName\" value=\"`$prop.restapi.templateDir + '/bbs-internet-profile-operation.json'`\" />\n    <parameter name=\"restapiUrl\" value=\"`$prop.sdncRestApi.thirdpartySdnc.url + '/DeleteInternetProfileInstance'`\" />\n    <parameter name=\"contentType\" value=\"application/json\"/>\n    <parameter name=\"httpMethod\" value=\"post\"/>\n    <parameter name=\"responsePrefix\" value=\"service-result\"/>",\r
76         "comments": "",\r
77         "outputs": 1,\r
78         "x": 1208.4009246826172,\r
79         "y": 280.7347803115845,\r
80         "z": "e5a6ac34.a7198",\r
81         "wires": [\r
82             [\r
83                 "4123db34.0e7424",\r
84                 "888adbdc.266ba8"\r
85             ]\r
86         ]\r
87     },\r
88     {\r
89         "id": "888adbdc.266ba8",\r
90         "type": "outcome",\r
91         "name": "failure",\r
92         "xml": "<outcome value='failure'>\n",\r
93         "comments": "",\r
94         "outputs": 1,\r
95         "x": 1509.7339057922363,\r
96         "y": 280.7347803115845,\r
97         "z": "e5a6ac34.a7198",\r
98         "wires": [\r
99             [\r
100                 "6237fdd6.7dcb44"\r
101             ]\r
102         ]\r
103     },\r
104     {\r
105         "id": "4123db34.0e7424",\r
106         "type": "outcome",\r
107         "name": "success",\r
108         "xml": "<outcome value='success'>\n",\r
109         "comments": "",\r
110         "outputs": 1,\r
111         "x": 1518.7338180541992,\r
112         "y": 355.7347822189331,\r
113         "z": "e5a6ac34.a7198",\r
114         "wires": [\r
115             [\r
116                 "497cc63b.30848"\r
117             ]\r
118         ]\r
119     },\r
120     {\r
121         "id": "497cc63b.30848",\r
122         "type": "switchNode",\r
123         "name": "switch:service-result",\r
124         "xml": "<switch test=\"`$service-result.errors.error[0].error-message`\">\n",\r
125         "comments": "",\r
126         "outputs": 1,\r
127         "x": 1753.7499389648438,\r
128         "y": 354.7740774154663,\r
129         "z": "e5a6ac34.a7198",\r
130         "wires": [\r
131             [\r
132                 "448428e5.a62b48",\r
133                 "7cffa4c4.69e0d4"\r
134             ]\r
135         ]\r
136     },\r
137     {\r
138         "id": "6237fdd6.7dcb44",\r
139         "type": "returnFailure",\r
140         "name": "return failure",\r
141         "xml": "<return status='failure'>\n<parameter name='ack-final' value='Y'/>\n<parameter name=\"error-code\" value=\"500\" />\n<parameter name=\"error-message\" value=\"Error failed to call DeleteInternetProfileInstance\" />\n",\r
142         "comments": "",\r
143         "x": 2018.6675186157227,\r
144         "y": 281.0243282318115,\r
145         "z": "e5a6ac34.a7198",\r
146         "wires": []\r
147     },\r
148     {\r
149         "id": "448428e5.a62b48",\r
150         "type": "outcome",\r
151         "name": "Other",\r
152         "xml": "<outcome value='Other'>\n",\r
153         "comments": "",\r
154         "outputs": 1,\r
155         "x": 1979.7502784729004,\r
156         "y": 355.7741708755493,\r
157         "z": "e5a6ac34.a7198",\r
158         "wires": [\r
159             [\r
160                 "eba25570.9a106"\r
161             ]\r
162         ]\r
163     },\r
164     {\r
165         "id": "7cffa4c4.69e0d4",\r
166         "type": "outcome",\r
167         "name": "NULL",\r
168         "xml": "<outcome value=''>\n",\r
169         "comments": "",\r
170         "outputs": 1,\r
171         "x": 1989.749984741211,\r
172         "y": 441.774037361145,\r
173         "z": "e5a6ac34.a7198",\r
174         "wires": [\r
175             [\r
176                 "4fc581b8.3b36a"\r
177             ]\r
178         ]\r
179     },\r
180     {\r
181         "id": "eba25570.9a106",\r
182         "type": "returnFailure",\r
183         "name": "return failure",\r
184         "xml": "<return status='failure'>\n<parameter name='ack-final' value='Y'/>\n<parameter name=\"error-code\" value=\"500\" />\n<parameter name=\"error-message\" value=\"`'Error DeleteInternetProfileInstance return: '+$service-result.errors.error[0].error-message`\" />\n\n",\r
185         "comments": "",\r
186         "x": 2166.2499465942383,\r
187         "y": 355.7740077972412,\r
188         "z": "e5a6ac34.a7198",\r
189         "wires": []\r
190     },\r
191     {\r
192         "id": "4fc581b8.3b36a",\r
193         "type": "block",\r
194         "name": "block",\r
195         "xml": "<block>\n",\r
196         "atomic": "false",\r
197         "comments": "",\r
198         "outputs": 1,\r
199         "x": 2147.9166145324707,\r
200         "y": 442.7740125656128,\r
201         "z": "e5a6ac34.a7198",\r
202         "wires": [\r
203             []\r
204         ]\r
205     },\r
206     {\r
207         "id": "2ed02a5c.5d72ce",\r
208         "type": "returnSuccess",\r
209         "name": "return success",\r
210         "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
211         "comments": "",\r
212         "x": 1147.1387634277344,\r
213         "y": 793.6630086898804,\r
214         "z": "e5a6ac34.a7198",\r
215         "wires": []\r
216     },\r
217     {\r
218         "id": "c8fbb930.846a4",\r
219         "type": "call",\r
220         "name": "call:bbs-internet-profile-vnf-topology-operation-common-huawei",\r
221         "xml": "<call module='GENERIC-RESOURCE-API' rpc='bbs-internet-profile-vnf-topology-operation-common-huawei' mode='sync' >\n",\r
222         "comments": "",\r
223         "outputs": 1,\r
224         "x": 1320.4169082641602,\r
225         "y": 196.77395057678223,\r
226         "z": "e5a6ac34.a7198",\r
227         "wires": [\r
228             []\r
229         ]\r
230     },\r
231     {\r
232         "id": "dea36b4d.64e4",\r
233         "type": "comment",\r
234         "name": "fetch relationship-list",\r
235         "info": "",\r
236         "comments": "",\r
237         "x": 1127.9205322265625,\r
238         "y": 70,\r
239         "z": "e5a6ac34.a7198",\r
240         "wires": []\r
241     },\r
242     {\r
243         "id": "bf1fcd53.ddfe",\r
244         "type": "for",\r
245         "name": "for relationship data",\r
246         "xml": "<for silentFailure='false' index='rdidx' start='0' end=\"`$aai.service-instance.relationship-list.relationship[$ridx].relationship-data_length`\" >",\r
247         "comments": "",\r
248         "outputs": 1,\r
249         "x": 1160.393009185791,\r
250         "y": 455.75003242492676,\r
251         "z": "e5a6ac34.a7198",\r
252         "wires": [\r
253             [\r
254                 "5f6aa36e.f418f4"\r
255             ]\r
256         ]\r
257     },\r
258     {\r
259         "id": "362b4d43.71efaa",\r
260         "type": "switchNode",\r
261         "name": "switch vnf-id",\r
262         "xml": "<switch test='`$aai.service-instance.relationship-list.relationship[$ridx].relationship-data[$rdidx].relationship-key`'>\n",\r
263         "comments": "",\r
264         "outputs": 1,\r
265         "x": 1508.6150512695312,\r
266         "y": 455.41671800613403,\r
267         "z": "e5a6ac34.a7198",\r
268         "wires": [\r
269             [\r
270                 "dca82cdd.160458"\r
271             ]\r
272         ]\r
273     },\r
274     {\r
275         "id": "dca82cdd.160458",\r
276         "type": "other",\r
277         "name": "generic-vnf.vnf-id",\r
278         "xml": "<outcome value='generic-vnf.vnf-id'>\n",\r
279         "comments": "",\r
280         "outputs": 1,\r
281         "x": 1681.837272644043,\r
282         "y": 455.5277795791626,\r
283         "z": "e5a6ac34.a7198",\r
284         "wires": [\r
285             [\r
286                 "48c7c532.f812c4"\r
287             ]\r
288         ]\r
289     },\r
290     {\r
291         "id": "48c7c532.f812c4",\r
292         "type": "block",\r
293         "name": "block : atomic",\r
294         "xml": "<block atomic='true'>",\r
295         "atomic": "true",\r
296         "comments": "",\r
297         "outputs": 1,\r
298         "x": 1861.0594940185547,\r
299         "y": 523.3055810928345,\r
300         "z": "e5a6ac34.a7198",\r
301         "wires": [\r
302             [\r
303                 "dbcb4df4.6dfa68"\r
304             ]\r
305         ]\r
306     },\r
307     {\r
308         "id": "dbcb4df4.6dfa68",\r
309         "type": "update",\r
310         "name": "get AAI generic-vnf",\r
311         "xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\t\tresource=\"generic-vnf\" \n\t\tkey=\"generic-vnf.vnf-id = $aai.service-instance.relationship-list.relationship[$ridx].relationship-data[$rdidx].relationship-value\"\n        pfx='aai.generic-vnf' local-only='false' >",\r
312         "comments": "",\r
313         "outputs": 1,\r
314         "x": 2072.2261810302734,\r
315         "y": 524.3056182861328,\r
316         "z": "e5a6ac34.a7198",\r
317         "wires": [\r
318             [\r
319                 "f82b8813.df9498"\r
320             ]\r
321         ]\r
322     },\r
323     {\r
324         "id": "2eceba1e.5f3b96",\r
325         "type": "switchNode",\r
326         "name": "switch vnf-type",\r
327         "xml": "<switch test='`$aai.generic-vnf.vnf-type`'>\n",\r
328         "comments": "",\r
329         "outputs": 1,\r
330         "x": 2643.50479888916,\r
331         "y": 530.5278158187866,\r
332         "z": "e5a6ac34.a7198",\r
333         "wires": [\r
334             [\r
335                 "49b85927.406f78"\r
336             ]\r
337         ]\r
338     },\r
339     {\r
340         "id": "49b85927.406f78",\r
341         "type": "other",\r
342         "name": "InternetProfile",\r
343         "xml": "<outcome value='InternetProfile'>\n",\r
344         "comments": "",\r
345         "outputs": 1,\r
346         "x": 2837.504554748535,\r
347         "y": 524.5278453826904,\r
348         "z": "e5a6ac34.a7198",\r
349         "wires": [\r
350             [\r
351                 "301145e6.198712"\r
352             ]\r
353         ]\r
354     },\r
355     {\r
356         "id": "301145e6.198712",\r
357         "type": "set",\r
358         "name": "set InternetProfile vnf-id",\r
359         "xml": "<set>\n<parameter name='prop.bbs.internetProfileVNFId' value='`$aai.generic-vnf.vnf-id`' />\n",\r
360         "comments": "",\r
361         "x": 3081.504066467285,\r
362         "y": 522.5277700424194,\r
363         "z": "e5a6ac34.a7198",\r
364         "wires": []\r
365     },\r
366     {\r
367         "id": "36ca2449.b1df6c",\r
368         "type": "failure",\r
369         "name": "failure",\r
370         "xml": "<outcome value='failure'>\n",\r
371         "comments": "",\r
372         "outputs": 1,\r
373         "x": 1340.9482955932617,\r
374         "y": 626.6667156219482,\r
375         "z": "e5a6ac34.a7198",\r
376         "wires": [\r
377             [\r
378                 "aa8632c1.a4018"\r
379             ]\r
380         ]\r
381     },\r
382     {\r
383         "id": "f6034493.649d",\r
384         "type": "not-found",\r
385         "name": "not-found",\r
386         "xml": "<outcome value='not-found'>\n",\r
387         "comments": "",\r
388         "outputs": 1,\r
389         "x": 1348.9482955932617,\r
390         "y": 686.6667156219482,\r
391         "z": "e5a6ac34.a7198",\r
392         "wires": [\r
393             [\r
394                 "aa8632c1.a4018"\r
395             ]\r
396         ]\r
397     },\r
398     {\r
399         "id": "aa8632c1.a4018",\r
400         "type": "returnFailure",\r
401         "name": "return failure",\r
402         "xml": "<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value='' />\n",\r
403         "comments": "",\r
404         "x": 1556.9482955932617,\r
405         "y": 661.6667156219482,\r
406         "z": "e5a6ac34.a7198",\r
407         "wires": []\r
408     },\r
409     {\r
410         "id": "5f6aa36e.f418f4",\r
411         "type": "block",\r
412         "name": "block : atomic",\r
413         "xml": "<block atomic='true'>",\r
414         "atomic": "true",\r
415         "comments": "",\r
416         "outputs": 1,\r
417         "x": 1343.7538604736328,\r
418         "y": 455.5833511352539,\r
419         "z": "e5a6ac34.a7198",\r
420         "wires": [\r
421             [\r
422                 "362b4d43.71efaa"\r
423             ]\r
424         ]\r
425     },\r
426     {\r
427         "id": "f33b322.9852f5",\r
428         "type": "block",\r
429         "name": "block : atomic",\r
430         "xml": "<block atomic='true'>",\r
431         "atomic": "true",\r
432         "comments": "",\r
433         "outputs": 1,\r
434         "x": 2460.5039443969727,\r
435         "y": 531.0278158187866,\r
436         "z": "e5a6ac34.a7198",\r
437         "wires": [\r
438             [\r
439                 "2eceba1e.5f3b96"\r
440             ]\r
441         ]\r
442     },\r
443     {\r
444         "id": "f82b8813.df9498",\r
445         "type": "success",\r
446         "name": "success",\r
447         "xml": "<outcome value='success'>\n",\r
448         "comments": "",\r
449         "outputs": 1,\r
450         "x": 2257.9483070373535,\r
451         "y": 523.6667051315308,\r
452         "z": "e5a6ac34.a7198",\r
453         "wires": [\r
454             [\r
455                 "f33b322.9852f5"\r
456             ]\r
457         ]\r
458     },\r
459     {\r
460         "id": "3956ad31.45a35a",\r
461         "type": "update",\r
462         "name": "deleteResourceAAI",\r
463         "xml": "<delete plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\t\tresource=\"generic-vnf\" \n\t\tkey=\"generic-vnf.vnf-id = $prop.bbs.internetProfileVNFId\">",\r
464         "comments": "",\r
465         "outputs": 1,\r
466         "x": 1150.9112243652344,\r
467         "y": 626.7129230499268,\r
468         "z": "e5a6ac34.a7198",\r
469         "wires": [\r
470             [\r
471                 "36ca2449.b1df6c",\r
472                 "f6034493.649d"\r
473             ]\r
474         ]\r
475     },\r
476     {\r
477         "id": "95856666.28972",\r
478         "type": "comment",\r
479         "name": "delete AAI resource",\r
480         "info": "",\r
481         "comments": "",\r
482         "x": 1148.6890716552734,\r
483         "y": 573.3796081542969,\r
484         "z": "e5a6ac34.a7198",\r
485         "wires": []\r
486     }\r
487 ]