Chore: Add gerrit maven verify GHA workflow
[sdnc/oam.git] / platform-logic / generic-resource-api / src / main / json / sdwan / GENERIC-RESOURCE-API_site-vnf-topology-operation-delete.json
1 [
2   {
3     "id": "1e0cb698.a04019",
4     "type": "dgstart",
5     "name": "DGSTART",
6     "outputs": 1,
7     "x": 107.57138061523438,
8     "y": 61.999998569488525,
9     "z": "4e13a6ca.bd7208",
10     "wires": [
11       [
12         "277c65c2.ed804a"
13       ]
14     ]
15   },
16   {
17     "id": "277c65c2.ed804a",
18     "type": "service-logic",
19     "name": "GENERIC-RESOURCE-API ${project.version}",
20     "module": "GENERIC-RESOURCE-API",
21     "version": "${project.version}",
22     "comments": "",
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}'>",
24     "outputs": 1,
25     "x": 182.85708618164062,
26     "y": 102.2381100654602,
27     "z": "4e13a6ca.bd7208",
28     "wires": [
29       [
30         "a7e1f73c.bc4948"
31       ]
32     ]
33   },
34   {
35     "id": "a7e1f73c.bc4948",
36     "type": "method",
37     "name": "method site-vnf-topology-operation-delete",
38     "xml": "<method rpc='site-vnf-topology-operation-delete' mode='sync'>\n",
39     "comments": "",
40     "outputs": 1,
41     "x": 163,
42     "y": 237.99999856948853,
43     "z": "4e13a6ca.bd7208",
44     "wires": [
45       [
46         "bdf1765.0f24c88"
47       ]
48     ]
49   },
50   {
51     "id": "ca44419d.5ab99",
52     "type": "comment",
53     "name": "site-vnf-topology-operation-delete",
54     "info": "",
55     "comments": "",
56     "x": 556.9162979125977,
57     "y": 135.58639764785767,
58     "z": "4e13a6ca.bd7208",
59     "wires": []
60   },
61   {
62     "id": "bdf1765.0f24c88",
63     "type": "block",
64     "name": "block : atomic",
65     "xml": "<block atomic=\"true\">",
66     "atomic": "true",
67     "outputs": 1,
68     "x": 184.23804473876953,
69     "y": 363.6666703224182,
70     "z": "4e13a6ca.bd7208",
71     "wires": [
72       [
73         "372cbde7.587372",
74         "5c8ef11.4d9e21",
75         "c063c177.c449a",
76         "b76f0527.dbb128",
77         "bcc212f6.b90ab",
78         "12ca3dc.2d458c2",
79         "c460861f.38f098",
80         "6a5ea2dd.9c807c",
81         "55ed5ce8.2b1ae4",
82         "ba708495.2ebbe8",
83         "4890886d.4993b8"
84       ]
85     ]
86   },
87   {
88     "id": "bcc212f6.b90ab",
89     "type": "switchNode",
90     "name": "switch service-data.vnfs.vnf_length",
91     "xml": "<switch test='`$service-data.vnfs.vnf_length`'>\n",
92     "comments": "",
93     "outputs": 1,
94     "x": 645.6660842895508,
95     "y": 297.2611689567566,
96     "z": "4e13a6ca.bd7208",
97     "wires": [
98       [
99         "d5d54ea4.ba5c6",
100         "291bcf0.559d232"
101       ]
102     ]
103   },
104   {
105     "id": "d5d54ea4.ba5c6",
106     "type": "other",
107     "name": "outcome Null",
108     "xml": "<outcome value=''>\n",
109     "comments": "",
110     "outputs": 1,
111     "x": 910.3883972167969,
112     "y": 279.81679105758667,
113     "z": "4e13a6ca.bd7208",
114     "wires": [
115       [
116         "30ee642f.b18d2c"
117       ]
118     ]
119   },
120   {
121     "id": "30ee642f.b18d2c",
122     "type": "returnFailure",
123     "name": "return failure",
124     "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",
125     "comments": "",
126     "x": 1091.3882675170898,
127     "y": 274.81666898727417,
128     "z": "4e13a6ca.bd7208",
129     "wires": []
130   },
131   {
132     "id": "291bcf0.559d232",
133     "type": "other",
134     "name": "other",
135     "xml": "<outcome value='Other'>\n",
136     "comments": "",
137     "outputs": 1,
138     "x": 895.8883972167969,
139     "y": 331.81675386428833,
140     "z": "4e13a6ca.bd7208",
141     "wires": [
142       [
143         "fb8a0e1a.913bb"
144       ]
145     ]
146   },
147   {
148     "id": "fb8a0e1a.913bb",
149     "type": "block",
150     "name": "block : atomic",
151     "xml": "<block atomic=\"true\">",
152     "atomic": "true",
153     "outputs": 1,
154     "x": 1067.8881034851074,
155     "y": 331.8167519569397,
156     "z": "4e13a6ca.bd7208",
157     "wires": [
158       [
159         "5412f014.12424",
160         "97fd60bf.39c2c"
161       ]
162     ]
163   },
164   {
165     "id": "97fd60bf.39c2c",
166     "type": "switchNode",
167     "name": "switch tmp.nidx ",
168     "xml": "<switch test=\"`$tmp.nidx`\">\n\n",
169     "comments": "",
170     "outputs": 1,
171     "x": 1242.8882751464844,
172     "y": 350.81667375564575,
173     "z": "4e13a6ca.bd7208",
174     "wires": [
175       [
176         "7e0c16e8.e0d2b8"
177       ]
178     ]
179   },
180   {
181     "id": "b76f0527.dbb128",
182     "type": "switchNode",
183     "name": "switch vnf-level-oper-status",
184     "xml": "<switch test='`$service-data.vnfs.vnf[$tmp.nidx].vnf-data.vnf-level-oper-status.order-status`'>\n",
185     "comments": "",
186     "outputs": 1,
187     "x": 616.0550842285156,
188     "y": 371.705632686615,
189     "z": "4e13a6ca.bd7208",
190     "wires": [
191       [
192         "2c1cb407.0b20fc",
193         "7a49e612.028b78"
194       ]
195     ]
196   },
197   {
198     "id": "2c1cb407.0b20fc",
199     "type": "outcome",
200     "name": "outcome PendingDelete",
201     "xml": "<outcome value='PendingDelete'>\n",
202     "comments": "",
203     "outputs": 1,
204     "x": 906.8883514404297,
205     "y": 375.81675577163696,
206     "z": "4e13a6ca.bd7208",
207     "wires": [
208       [
209         "4b86cba0.d35104"
210       ]
211     ]
212   },
213   {
214     "id": "7a49e612.028b78",
215     "type": "other",
216     "name": "other",
217     "xml": "<outcome value='Other'>\n",
218     "comments": "",
219     "outputs": 1,
220     "x": 852.8884124755859,
221     "y": 422.81675958633423,
222     "z": "4e13a6ca.bd7208",
223     "wires": [
224       [
225         "cae57504.d32048"
226       ]
227     ]
228   },
229   {
230     "id": "cae57504.d32048",
231     "type": "returnFailure",
232     "name": "return failure",
233     "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`\" />",
234     "comments": "",
235     "x": 1012.3881797790527,
236     "y": 425.8167586326599,
237     "z": "4e13a6ca.bd7208",
238     "wires": []
239   },
240   {
241     "id": "12ca3dc.2d458c2",
242     "type": "switchNode",
243     "name": "switch vnf-id",
244     "xml": "<switch test=\"`$vnf-topology-operation-input.vnf-information.vnf-id`\">\n",
245     "comments": "",
246     "outputs": 1,
247     "x": 581.8884010314941,
248     "y": 252.81676244735718,
249     "z": "4e13a6ca.bd7208",
250     "wires": [
251       [
252         "479f1e18.fbfce"
253       ]
254     ]
255   },
256   {
257     "id": "479f1e18.fbfce",
258     "type": "outcome",
259     "name": "NULL",
260     "xml": "<outcome value=''>",
261     "comments": "",
262     "outputs": 1,
263     "x": 779.8884658813477,
264     "y": 242.8167748451233,
265     "z": "4e13a6ca.bd7208",
266     "wires": [
267       [
268         "e26d76c0.5decd8"
269       ]
270     ]
271   },
272   {
273     "id": "e26d76c0.5decd8",
274     "type": "returnFailure",
275     "name": "return failure",
276     "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-request-input.vnf-input-parameters.name is a required input\" />\n",
277     "comments": "",
278     "x": 946.3883514404297,
279     "y": 239.8167691230774,
280     "z": "4e13a6ca.bd7208",
281     "wires": []
282   },
283   {
284     "id": "c460861f.38f098",
285     "type": "execute",
286     "name": "execute requiredParameters",
287     "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",
288     "comments": "",
289     "outputs": 1,
290     "x": 639.3884582519531,
291     "y": 192.81676149368286,
292     "z": "4e13a6ca.bd7208",
293     "wires": [
294       []
295     ]
296   },
297   {
298     "id": "5412f014.12424",
299     "type": "for",
300     "name": "for nidx..service-data.vnfs.vnf[]",
301     "xml": "<for index='nidx' start='0' end='`$service-data.vnfs.vnf_length`' >\n",
302     "comments": "",
303     "outputs": 1,
304     "x": 1303.3882789611816,
305     "y": 286.8166699409485,
306     "z": "4e13a6ca.bd7208",
307     "wires": [
308       [
309         "148fbb0c.c24365"
310       ]
311     ]
312   },
313   {
314     "id": "148fbb0c.c24365",
315     "type": "switchNode",
316     "name": "switch vnf-id found",
317     "xml": "<switch test=\"`$service-data.vnfs.vnf[$nidx].vnf-id == $vnf-topology-operation-input.vnf-information.vnf-id`\">\n\n",
318     "comments": "",
319     "outputs": 1,
320     "x": 1559.388298034668,
321     "y": 286.8166699409485,
322     "z": "4e13a6ca.bd7208",
323     "wires": [
324       [
325         "b65bbab.9ca2c48"
326       ]
327     ]
328   },
329   {
330     "id": "b65bbab.9ca2c48",
331     "type": "outcomeTrue",
332     "name": "true",
333     "xml": "<outcome value='true'>\n",
334     "comments": "",
335     "outputs": 1,
336     "x": 1735.8883514404297,
337     "y": 289.8166699409485,
338     "z": "4e13a6ca.bd7208",
339     "wires": [
340       [
341         "1a4ecfb7.7d8f8"
342       ]
343     ]
344   },
345   {
346     "id": "1a4ecfb7.7d8f8",
347     "type": "set",
348     "name": "set tmp.nidx and ctx.vnf-data",
349     "xml": "<set>\n<parameter name='tmp.nidx' value='`$nidx`' />\n<parameter name='ctx.vnf-data.' value='`$service-data.vnfs.vnf[$nidx].vnf-data.`' />\n",
350     "comments": "",
351     "x": 1902.8883666992188,
352     "y": 350.8166699409485,
353     "z": "4e13a6ca.bd7208",
354     "wires": []
355   },
356   {
357     "id": "e8e5a7c0.1c4938",
358     "type": "returnFailure",
359     "name": "return failure",
360     "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",
361     "comments": "",
362     "x": 1548.3882904052734,
363     "y": 350.81667375564575,
364     "z": "4e13a6ca.bd7208",
365     "wires": []
366   },
367   {
368     "id": "7e0c16e8.e0d2b8",
369     "type": "outcome",
370     "name": "NULL",
371     "xml": "<outcome value=''>\n",
372     "comments": "",
373     "outputs": 1,
374     "x": 1410.8882904052734,
375     "y": 350.81667375564575,
376     "z": "4e13a6ca.bd7208",
377     "wires": [
378       [
379         "e8e5a7c0.1c4938"
380       ]
381     ]
382   },
383   {
384     "id": "5c8ef11.4d9e21",
385     "type": "set",
386     "name": "set vnfId and vnf-object-path",
387     "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/'` \" />",
388     "comments": "",
389     "x": 578.9050178527832,
390     "y": 641.3335304260254,
391     "z": "4e13a6ca.bd7208",
392     "wires": []
393   },
394   {
395     "id": "c063c177.c449a",
396     "type": "returnSuccess",
397     "name": "return success",
398     "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",
399     "comments": "",
400     "x": 538.0161476135254,
401     "y": 759.8890404701233,
402     "z": "4e13a6ca.bd7208",
403     "wires": []
404   },
405   {
406     "id": "372cbde7.587372",
407     "type": "delete",
408     "name": "delete site instance configuration in AAI",
409     "xml": "<delete plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" resource='site-resource' \n        key='site-resource.site-resource-id = $vnf-topology-operation-input.vnf-information.vnf-id'>\n",
410     "comments": "",
411     "outputs": 1,
412     "x": 606.4265480041504,
413     "y": 697.1378149986267,
414     "z": "4e13a6ca.bd7208",
415     "wires": [
416       []
417     ]
418   },
419   {
420     "id": "4b86cba0.d35104",
421     "type": "block",
422     "name": "block : atomic",
423     "xml": "<block atomic=\"true\">",
424     "atomic": "true",
425     "outputs": 1,
426     "x": 1104.194751739502,
427     "y": 386.14191007614136,
428     "z": "4e13a6ca.bd7208",
429     "wires": [
430       []
431     ]
432   },
433   {
434     "id": "6a5ea2dd.9c807c",
435     "type": "set",
436     "name": "set prop.vnfNewidx",
437     "xml": "<set>\n<parameter name='prop.vnfidxLen' value='`0`' />\n",
438     "comments": "",
439     "x": 585.0000762939453,
440     "y": 422.00006771087646,
441     "z": "4e13a6ca.bd7208",
442     "wires": []
443   },
444   {
445     "id": "55ed5ce8.2b1ae4",
446     "type": "for",
447     "name": "for lidx..service-data.vnfs.vnf[]",
448     "xml": "<for index='lidx' start='0' end='`$service-data.vnfs.vnf_length`' >\n",
449     "comments": "",
450     "outputs": 1,
451     "x": 602.0000381469727,
452     "y": 472.00007152557373,
453     "z": "4e13a6ca.bd7208",
454     "wires": [
455       [
456         "1913c26.edfaf3e"
457       ]
458     ]
459   },
460   {
461     "id": "1913c26.edfaf3e",
462     "type": "block",
463     "name": "block : atomic",
464     "xml": "<block atomic=\"true\">",
465     "atomic": "true",
466     "outputs": 1,
467     "x": 863.000114440918,
468     "y": 476.0001063346863,
469     "z": "4e13a6ca.bd7208",
470     "wires": [
471       [
472         "b02e3feb.ffee3"
473       ]
474     ]
475   },
476   {
477     "id": "b02e3feb.ffee3",
478     "type": "switchNode",
479     "name": "switch vnf-id found",
480     "xml": "<switch test=\"`$service-data.vnfs.vnf[$lidx].vnf-id == $vnf-topology-operation-input.vnf-information.vnf-id`\">\n\n",
481     "comments": "",
482     "outputs": 1,
483     "x": 1055.0000610351562,
484     "y": 485.000150680542,
485     "z": "4e13a6ca.bd7208",
486     "wires": [
487       [
488         "e6008550.52d2f8"
489       ]
490     ]
491   },
492   {
493     "id": "e6008550.52d2f8",
494     "type": "outcomeFalse",
495     "name": "false",
496     "xml": "<outcome value='false'>\n",
497     "comments": "",
498     "outputs": 1,
499     "x": 1241.0000762939453,
500     "y": 469.00003719329834,
501     "z": "4e13a6ca.bd7208",
502     "wires": [
503       [
504         "59e45e4c.5156f"
505       ]
506     ]
507   },
508   {
509     "id": "59e45e4c.5156f",
510     "type": "block",
511     "name": "block : atomic",
512     "xml": "<block atomic=\"true\">",
513     "atomic": "true",
514     "outputs": 1,
515     "x": 1392,
516     "y": 470.00007343292236,
517     "z": "4e13a6ca.bd7208",
518     "wires": [
519       [
520         "9655d3b.ed2503",
521         "ee40dd88.8d1f1"
522       ]
523     ]
524   },
525   {
526     "id": "9655d3b.ed2503",
527     "type": "set",
528     "name": "set  vnf data",
529     "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",
530     "comments": "",
531     "x": 1557.0000953674316,
532     "y": 445.00022888183594,
533     "z": "4e13a6ca.bd7208",
534     "wires": []
535   },
536   {
537     "id": "ee40dd88.8d1f1",
538     "type": "set",
539     "name": "set prop.vnfNewidx",
540     "xml": "<set>\n<parameter name='prop.vnfidxLen' value='`$prop.vnfidxLen + 1`' />\n",
541     "comments": "",
542     "x": 1579.0000953674316,
543     "y": 501.0001926422119,
544     "z": "4e13a6ca.bd7208",
545     "wires": []
546   },
547   {
548     "id": "ba708495.2ebbe8",
549     "type": "set",
550     "name": "set new vnf length",
551     "xml": "<set>\n\t<parameter name=\"service-data.vnfs.vnf_length\" value='`$prop.vnfidxLen`'/>\n\n\t\n",
552     "comments": "",
553     "x": 571.101432800293,
554     "y": 525.8043546676636,
555     "z": "4e13a6ca.bd7208",
556     "wires": []
557   },
558   {
559     "id": "4890886d.4993b8",
560     "type": "set",
561     "name": "Remove vnf from ServiceData",
562     "xml": "<set>\n\t<parameter name=\"service-data.vnfs.vnf[$prop.vnfidxLen].\" value=\"\"/>\n\n",
563     "comments": "",
564     "x": 608.0001106262207,
565     "y": 581.0001163482666,
566     "z": "4e13a6ca.bd7208",
567     "wires": []
568   }
569 ]