6eb3697c5b6dd70f1bc41f7e42b6fc518096e53d
[appc.git] /
1 /*-
2  * ============LICENSE_START=======================================================
3  * ONAP : APP-C
4  * ================================================================================
5  * Copyright (C) 2017 AT&T Intellectual Property.  All rights reserved.
6  * ================================================================================
7  * Licensed under the Apache License, Version 2.0 (the "License");
8  * you may not use this file except in compliance with the License.
9  * You may obtain a copy of the License at
10  * 
11  *      http://www.apache.org/licenses/LICENSE-2.0
12  * 
13  * Unless required by applicable law or agreed to in writing, software
14  * distributed under the License is distributed on an "AS IS" BASIS,
15  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16  * See the License for the specific language governing permissions and
17  * limitations under the License.
18  * ============LICENSE_END=========================================================
19  */
20
21 [
22   {
23     "id": "ff6e6220.ef272",
24     "type": "comment",
25     "name": "Fetch all VMs and VNFCs from AA&I for given VNF_ID",
26     "info": "",
27     "comments": "",
28     "x": 259.75,
29     "y": 590.9999923706055,
30     "z": "17bb73d2.dd297c",
31     "wires": []
32   },
33   {
34     "id": "66552f09.5bfb9",
35     "type": "method",
36     "name": "Generic_Snapshot_1610",
37     "xml": "<method rpc='VNF_Snapshot' mode='sync'>\n",
38     "comments": "",
39     "outputs": 1,
40     "x": 233.25001525878906,
41     "y": 308,
42     "z": "17bb73d2.dd297c",
43     "wires": [
44       [
45         "5e66c189.09a2d"
46       ]
47     ]
48   },
49   {
50     "id": "1ee152f2.68166d",
51     "type": "service-logic",
52     "name": "APPC-API 2.0.0.0",
53     "module": "APPC-API",
54     "version": "2.0.0.0",
55     "comments": "",
56     "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='APPC-API' version='2.0.0.0'>",
57     "outputs": 1,
58     "x": 233.25001525878906,
59     "y": 235,
60     "z": "17bb73d2.dd297c",
61     "wires": [
62       [
63         "66552f09.5bfb9"
64       ]
65     ]
66   },
67   {
68     "id": "bc49eb6a.380068",
69     "type": "dgstart",
70     "name": "DGSTART",
71     "outputs": 1,
72     "x": 199.25001525878906,
73     "y": 141,
74     "z": "17bb73d2.dd297c",
75     "wires": [
76       [
77         "1ee152f2.68166d"
78       ]
79     ]
80   },
81   {
82     "id": "af0a8fe0.da1b7",
83     "type": "execute",
84     "name": "execute_getVNF_Hierarchy",
85     "xml": "<execute plugin='org.openecomp.appc.dg.util.ExecuteNodeAction' method='getVnfHierarchy'>\n<parameter name=\"resourceKey\" value=\"`$input.action-identifiers.vnf-id`\" />",
86     "comments": "",
87     "outputs": 1,
88     "x": 233.25001525878906,
89     "y": 537,
90     "z": "17bb73d2.dd297c",
91     "wires": [
92       [
93         "12d4d1c5.960c3e",
94         "7e33d3b6.7154dc",
95         "90b99458.d8a878"
96       ]
97     ]
98   },
99   {
100     "id": "12d4d1c5.960c3e",
101     "type": "success",
102     "name": "success",
103     "xml": "<outcome value='success'>\n",
104     "comments": "",
105     "outputs": 1,
106     "x": 470.25001525878906,
107     "y": 537,
108     "z": "17bb73d2.dd297c",
109     "wires": [
110       [
111         "39db95fa.9b98fa"
112       ]
113     ]
114   },
115   {
116     "id": "d5a8df0e.172fc",
117     "type": "block",
118     "name": "block : atomic",
119     "xml": "<block atomic='true'>\n",
120     "atomic": "true",
121     "comments": "",
122     "outputs": 1,
123     "x": 931.2500762939453,
124     "y": 794.0000610351562,
125     "z": "17bb73d2.dd297c",
126     "wires": [
127       [
128         "3b9af4e2.33c62c"
129       ]
130     ]
131   },
132   {
133     "id": "7e33d3b6.7154dc",
134     "type": "failure",
135     "name": "failure",
136     "xml": "<outcome value='failure'>\n",
137     "comments": "",
138     "outputs": 1,
139     "x": 763.2500152587891,
140     "y": 376,
141     "z": "17bb73d2.dd297c",
142     "wires": [
143       [
144         "b1613d32.71d45"
145       ]
146     ]
147   },
148   {
149     "id": "5928eca4.e76c24",
150     "type": "returnFailure",
151     "name": "return failure",
152     "xml": "<return status='failure'>\n",
153     "comments": "",
154     "x": 1259.2500228881836,
155     "y": 428.99999618530273,
156     "z": "17bb73d2.dd297c",
157     "wires": []
158   },
159   {
160     "id": "b017daad.296d58",
161     "type": "switchNode",
162     "name": "switch",
163     "xml": "<switch test='`$VNF.VMCount`'>\n",
164     "comments": "",
165     "outputs": 1,
166     "x": 718.2500457763672,
167     "y": 704,
168     "z": "17bb73d2.dd297c",
169     "wires": [
170       [
171         "74042ec0.4106",
172         "ae5fd24a.9b418"
173       ]
174     ]
175   },
176   {
177     "id": "74042ec0.4106",
178     "type": "other",
179     "name": "outcome_0",
180     "xml": "<outcome value='0'>\n",
181     "comments": "",
182     "outputs": 1,
183     "x": 796.2500152587891,
184     "y": 622,
185     "z": "17bb73d2.dd297c",
186     "wires": [
187       [
188         "eb4eeb9.a81d318"
189       ]
190     ]
191   },
192   {
193     "id": "ae5fd24a.9b418",
194     "type": "other",
195     "name": "other",
196     "xml": "<outcome value='Other'>\n",
197     "comments": "",
198     "outputs": 1,
199     "x": 780.2500152587891,
200     "y": 793,
201     "z": "17bb73d2.dd297c",
202     "wires": [
203       [
204         "d5a8df0e.172fc"
205       ]
206     ]
207   },
208   {
209     "id": "39db95fa.9b98fa",
210     "type": "switchNode",
211     "name": "switch",
212     "xml": "<switch test='`$getVnfHierarchy_result`'>\n",
213     "comments": "",
214     "outputs": 1,
215     "x": 607.2500762939453,
216     "y": 537,
217     "z": "17bb73d2.dd297c",
218     "wires": [
219       [
220         "dc55fcb7.a5b3c",
221         "d75a8b25.9fe778"
222       ]
223     ]
224   },
225   {
226     "id": "dc55fcb7.a5b3c",
227     "type": "outcome",
228     "name": "SUCCESS",
229     "xml": "<outcome value='SUCCESS'>\n",
230     "comments": "",
231     "outputs": 1,
232     "x": 572.2500152587891,
233     "y": 704,
234     "z": "17bb73d2.dd297c",
235     "wires": [
236       [
237         "b017daad.296d58"
238       ]
239     ]
240   },
241   {
242     "id": "d75a8b25.9fe778",
243     "type": "outcome",
244     "name": "FAILURE",
245     "xml": "<outcome value='FAILURE'>\n",
246     "comments": "",
247     "outputs": 1,
248     "x": 775.2500152587891,
249     "y": 466,
250     "z": "17bb73d2.dd297c",
251     "wires": [
252       [
253         "b1613d32.71d45"
254       ]
255     ]
256   },
257   {
258     "id": "36ef2784.6cc318",
259     "type": "returnFailure",
260     "name": "return failure",
261     "xml": "<return status='failure'>\n",
262     "comments": "",
263     "x": 1163.2500457763672,
264     "y": 594,
265     "z": "17bb73d2.dd297c",
266     "wires": []
267   },
268   {
269     "id": "b1613d32.71d45",
270     "type": "block",
271     "name": "block : atomic",
272     "xml": "<block atomic='true'>",
273     "atomic": "true",
274     "comments": "",
275     "outputs": 1,
276     "x": 972.2500610351562,
277     "y": 377.00000381469727,
278     "z": "17bb73d2.dd297c",
279     "wires": [
280       [
281         "5928eca4.e76c24",
282         "e2eaef09.070be",
283         "fd0a971.5208268"
284       ]
285     ]
286   },
287   {
288     "id": "e2eaef09.070be",
289     "type": "execute",
290     "name": "execute_SendUEBEvent",
291     "xml": "<execute plugin='org.openecomp.appc.dg.common.DCAEReporterPlugin' method='report' >\n<parameter name=\"apiVer\" value=\"1.01\"/>\n<parameter name=\"eventId\" value=\"`$input.action-identifiers.vnf-id`\" />\n<parameter name=\"org.openecomp.appc.dg.error\" value=\"Exception in getting VNF Hierachy\"/>\n<parameter name='output.status.message' value=\"Exception in getting VNF Hierachy\"/>\n",
292     "comments": "",
293     "outputs": 1,
294     "x": 1229.250015258789,
295     "y": 307,
296     "z": "17bb73d2.dd297c",
297     "wires": [
298       []
299     ]
300   },
301   {
302     "id": "eb4eeb9.a81d318",
303     "type": "block",
304     "name": "block : atomic",
305     "xml": "<block atomic='true'>",
306     "atomic": "true",
307     "comments": "",
308     "outputs": 1,
309     "x": 917.2500152587891,
310     "y": 546,
311     "z": "17bb73d2.dd297c",
312     "wires": [
313       [
314         "36ef2784.6cc318",
315         "bf7f84ce.5a7938",
316         "bdcf415a.45ed5"
317       ]
318     ]
319   },
320   {
321     "id": "bf7f84ce.5a7938",
322     "type": "execute",
323     "name": "execute_SendUEBEvent",
324     "xml": "<execute plugin='org.openecomp.appc.dg.common.DCAEReporterPlugin' method='report' >\n<parameter name=\"apiVer\" value=\"1.01\"/>\n<parameter name=\"eventId\" value=\"`$input.action-identifiers.vnf-id`\" />\n<parameter name=\"org.openecomp.appc.dg.error\" value=\"VM Count is 0\"/>\n<parameter name='output.status.message' value=\"VM Count is 0\"/>\n\n",
325     "comments": "",
326     "outputs": 1,
327     "x": 1233.250015258789,
328     "y": 477.00002002716064,
329     "z": "17bb73d2.dd297c",
330     "wires": [
331       []
332     ]
333   },
334   {
335     "id": "3b9af4e2.33c62c",
336     "type": "execute",
337     "name": "execute_SnapshotStack",
338     "xml": "<execute plugin='org.openecomp.appc.adapter.iaas.ProviderAdapter' method='snapshotStack' >\n <parameter name=\"org.openecomp.appc.provider.name\" value=\"OpenStack\"/>\n <parameter name=\"org.openecomp.appc.instance.url\" value=\"`$VNF.VM[0].URL`\" />\n <parameter name=\"org.openecomp.appc.identity.url\" value=\"`$input.identity-url`\" />\n <parameter name=\"org.openecomp.appc.stack.id\" value=\"`$VNF.heat-stack-id`\"/>",
339     "comments": "",
340     "outputs": 1,
341     "x": 1150.250015258789,
342     "y": 794,
343     "z": "17bb73d2.dd297c",
344     "wires": [
345       [
346         "2b3d7e9b.51bbe2",
347         "88b7c652.0ec9d8",
348         "2497760f.ec3caa"
349       ]
350     ]
351   },
352   {
353     "id": "2b3d7e9b.51bbe2",
354     "type": "outcome",
355     "name": "success",
356     "xml": "<outcome value='success'>\n",
357     "comments": "",
358     "outputs": 1,
359     "x": 1311.250015258789,
360     "y": 895,
361     "z": "17bb73d2.dd297c",
362     "wires": [
363       [
364         "81c1ec58.459ae"
365       ]
366     ]
367   },
368   {
369     "id": "88b7c652.0ec9d8",
370     "type": "failure",
371     "name": "failure",
372     "xml": "<outcome value='failure'>\n",
373     "comments": "",
374     "outputs": 1,
375     "x": 1293.250015258789,
376     "y": 701,
377     "z": "17bb73d2.dd297c",
378     "wires": [
379       [
380         "f66b9736.cfaab8"
381       ]
382     ]
383   },
384   {
385     "id": "f66b9736.cfaab8",
386     "type": "block",
387     "name": "block : atomic",
388     "xml": "<block atomic='true'>",
389     "atomic": "true",
390     "comments": "",
391     "outputs": 1,
392     "x": 1542.6786041259766,
393     "y": 794.142822265625,
394     "z": "17bb73d2.dd297c",
395     "wires": [
396       [
397         "8a2adc3b.adcda",
398         "32071474.80d0fc",
399         "eae86873.6b23d8"
400       ]
401     ]
402   },
403   {
404     "id": "8a2adc3b.adcda",
405     "type": "execute",
406     "name": "execute_SendUEBEvent",
407     "xml": "<execute plugin='org.openecomp.appc.dg.common.DCAEReporterPlugin' method='report' >\n<parameter name=\"apiVer\" value=\"1.01\"/>\n<parameter name=\"eventId\" value=\"`$input.action-identifiers.vnf-id`\" />\n<parameter name=\"org.openecomp.appc.dg.error\" value=\"`'Error occured during snapshot of Stack '+$VNF.heat-stack-id`\"/>\n<parameter name='output.status.message' value=\"`'Error occured during snapshot of Stack '+$VNF.heat-stack-id`\"/>\n",
408     "comments": "",
409     "outputs": 1,
410     "x": 1817.250015258789,
411     "y": 712,
412     "z": "17bb73d2.dd297c",
413     "wires": [
414       [
415         "a58ca5df.f45298"
416       ]
417     ]
418   },
419   {
420     "id": "a58ca5df.f45298",
421     "type": "success",
422     "name": "success",
423     "xml": "<outcome value='success'>\n",
424     "comments": "",
425     "outputs": 1,
426     "x": 2013.9168434143066,
427     "y": 712.333381652832,
428     "z": "17bb73d2.dd297c",
429     "wires": [
430       []
431     ]
432   },
433   {
434     "id": "2497760f.ec3caa",
435     "type": "other",
436     "name": "other",
437     "xml": "<outcome value='Other'>\n",
438     "comments": "",
439     "outputs": 1,
440     "x": 1349.250015258789,
441     "y": 794.0001220703125,
442     "z": "17bb73d2.dd297c",
443     "wires": [
444       [
445         "f66b9736.cfaab8"
446       ]
447     ]
448   },
449   {
450     "id": "90b99458.d8a878",
451     "type": "other",
452     "name": "other",
453     "xml": "<outcome value='Other'>\n",
454     "comments": "",
455     "outputs": 1,
456     "x": 778.2500152587891,
457     "y": 296,
458     "z": "17bb73d2.dd297c",
459     "wires": [
460       [
461         "b1613d32.71d45"
462       ]
463     ]
464   },
465   {
466     "id": "32071474.80d0fc",
467     "type": "returnFailure",
468     "name": "return failure",
469     "xml": "<return status='failure'>\n",
470     "comments": "",
471     "x": 1782.2499923706055,
472     "y": 831.0000247955322,
473     "z": "17bb73d2.dd297c",
474     "wires": []
475   },
476   {
477     "id": "5e66c189.09a2d",
478     "type": "execute",
479     "name": "execute: flatAndAddToContext",
480     "xml": "<execute plugin='org.openecomp.appc.dg.common.JsonDgUtil' method='flatAndAddToContext' >\n<parameter name=\"payload\" value=\"`$input.payload`\" />",
481     "comments": "",
482     "outputs": 1,
483     "x": 188.9166717529297,
484     "y": 395.8888854980469,
485     "z": "17bb73d2.dd297c",
486     "wires": [
487       [
488         "952f9338.7cfd6",
489         "3427840b.e5926c"
490       ]
491     ]
492   },
493   {
494     "id": "952f9338.7cfd6",
495     "type": "success",
496     "name": "success",
497     "xml": "<outcome value='success'>\n",
498     "comments": "",
499     "outputs": 1,
500     "x": 233.9167022705078,
501     "y": 459.8888854980469,
502     "z": "17bb73d2.dd297c",
503     "wires": [
504       [
505         "af0a8fe0.da1b7"
506       ]
507     ]
508   },
509   {
510     "id": "3427840b.e5926c",
511     "type": "other",
512     "name": "other",
513     "xml": "<outcome value='Other'>\n",
514     "comments": "",
515     "outputs": 1,
516     "x": 444.9167022705078,
517     "y": 336.8888854980469,
518     "z": "17bb73d2.dd297c",
519     "wires": [
520       []
521     ]
522   },
523   {
524     "id": "fe324b44.d467d8",
525     "type": "returnSuccess",
526     "name": "return success",
527     "xml": "<return status='success'>",
528     "comments": "",
529     "x": 1715.6786727905273,
530     "y": 991.5715913772583,
531     "z": "17bb73d2.dd297c",
532     "wires": []
533   },
534   {
535     "id": "fd0a971.5208268",
536     "type": "execute",
537     "name": "Set failure code and message",
538     "xml": "<set>\n<parameter name='error-code' value='401' />\n<parameter name='error-message' value=\"Exception in getting VNF Hierachy\" />\n",
539     "comments": "",
540     "outputs": 1,
541     "x": 1256.7501907348633,
542     "y": 370.7499990463257,
543     "z": "17bb73d2.dd297c",
544     "wires": [
545       []
546     ]
547   },
548   {
549     "id": "bdcf415a.45ed5",
550     "type": "execute",
551     "name": "Set failure code and message",
552     "xml": "<set>\n<parameter name='error-code' value='401'/>\n<parameter name='error-message' value=\"VM Count is 0\"/>\n",
553     "comments": "",
554     "outputs": 1,
555     "x": 1208.7501220703125,
556     "y": 540.75,
557     "z": "17bb73d2.dd297c",
558     "wires": [
559       []
560     ]
561   },
562   {
563     "id": "eae86873.6b23d8",
564     "type": "execute",
565     "name": "Set failure code and message",
566     "xml": "<set>\n<parameter name='error-code' value='401'/>\n<parameter name='error-message' value=\"`'Error occured during snapshot of Stack '+ $VNF.heat-stack-id`\"/>\n",
567     "comments": "",
568     "outputs": 1,
569     "x": 1797.750144958496,
570     "y": 774.7500247955322,
571     "z": "17bb73d2.dd297c",
572     "wires": [
573       []
574     ]
575   },
576   {
577     "id": "832572c6.ef7df",
578     "type": "execute",
579     "name": "Set output payload, success code and message",
580     "xml": "<set>\n<parameter name='error-code' value='400' />\n<parameter name='error-message' value=\"Success\" />\n<parameter name='output.payload' value=\"`'snapshot.id :' + $output.snapshot.id`\"/>\n\n",
581     "comments": "",
582     "outputs": 1,
583     "x": 1803.7501525878906,
584     "y": 915.7500114440918,
585     "z": "17bb73d2.dd297c",
586     "wires": [
587       []
588     ]
589   },
590   {
591     "id": "81c1ec58.459ae",
592     "type": "block",
593     "name": "block : atomic",
594     "xml": "<block atomic='true'>",
595     "atomic": "true",
596     "comments": "",
597     "outputs": 1,
598     "x": 1513.7500839233398,
599     "y": 950.750057220459,
600     "z": "17bb73d2.dd297c",
601     "wires": [
602       [
603         "832572c6.ef7df",
604         "fe324b44.d467d8"
605       ]
606     ]
607   }
608 ]