Update version of node base image
[appc/deployment.git] / platform-logic / appc / src / main / json / dg-loader-dgs / Dispatcher-DG / APPC-API_2.0.0.0_method_VNF_Rollback.json
1 [
2   {
3     "id": "5e8f7716.499198",
4     "type": "success",
5     "name": "success",
6     "xml": "<outcome value='success'>\n",
7     "comments": "",
8     "outputs": 1,
9     "x": 555,
10     "y": 396.55555629730225,
11     "z": "75a9f4e5.a1649c",
12     "wires": [
13       [
14         "4b22d8a1.f3d148"
15       ]
16     ]
17   },
18   {
19     "id": "145d561d.5cc62a",
20     "type": "execute",
21     "name": "execute_getVNF_Hierarchy",
22     "xml": "<execute plugin='org.onap.appc.dg.util.ExecuteNodeAction' method='getVnfHierarchy'>\n<parameter name=\"resourceKey\" value=\"`$input.action-identifiers.vnf-id`\" />",
23     "comments": "",
24     "outputs": 1,
25     "x": 318,
26     "y": 396.55555629730225,
27     "z": "75a9f4e5.a1649c",
28     "wires": [
29       [
30         "5e8f7716.499198",
31         "bb8a0f0f.b2fe4",
32         "a25b25dc.c0a438"
33       ]
34     ]
35   },
36   {
37     "id": "4b22d8a1.f3d148",
38     "type": "switchNode",
39     "name": "switch",
40     "xml": "<switch test='`$getVnfHierarchy_result`'>\n",
41     "comments": "",
42     "outputs": 1,
43     "x": 692.0000610351562,
44     "y": 396.55555629730225,
45     "z": "75a9f4e5.a1649c",
46     "wires": [
47       [
48         "25fd98ba.13e158",
49         "606b452c.8152dc"
50       ]
51     ]
52   },
53   {
54     "id": "bb8a0f0f.b2fe4",
55     "type": "failure",
56     "name": "failure",
57     "xml": "<outcome value='failure'>\n",
58     "comments": "",
59     "outputs": 1,
60     "x": 848,
61     "y": 235.55555629730225,
62     "z": "75a9f4e5.a1649c",
63     "wires": [
64       [
65         "c13d50ec.a9c2"
66       ]
67     ]
68   },
69   {
70     "id": "a25b25dc.c0a438",
71     "type": "other",
72     "name": "other",
73     "xml": "<outcome value='Other'>\n",
74     "comments": "",
75     "outputs": 1,
76     "x": 863,
77     "y": 155.55555629730225,
78     "z": "75a9f4e5.a1649c",
79     "wires": [
80       [
81         "c13d50ec.a9c2"
82       ]
83     ]
84   },
85   {
86     "id": "6d026903.3c9f08",
87     "type": "success",
88     "name": "success",
89     "xml": "<outcome value='success'>\n",
90     "comments": "",
91     "outputs": 1,
92     "x": 318.66668701171875,
93     "y": 319.4444417953491,
94     "z": "75a9f4e5.a1649c",
95     "wires": [
96       [
97         "145d561d.5cc62a"
98       ]
99     ]
100   },
101   {
102     "id": "25fd98ba.13e158",
103     "type": "outcome",
104     "name": "SUCCESS",
105     "xml": "<outcome value='SUCCESS'>\n",
106     "comments": "",
107     "outputs": 1,
108     "x": 657,
109     "y": 563.5555562973022,
110     "z": "75a9f4e5.a1649c",
111     "wires": [
112       [
113         "7d6b675f.944888"
114       ]
115     ]
116   },
117   {
118     "id": "606b452c.8152dc",
119     "type": "outcome",
120     "name": "FAILURE",
121     "xml": "<outcome value='FAILURE'>\n",
122     "comments": "",
123     "outputs": 1,
124     "x": 860,
125     "y": 325.55555629730225,
126     "z": "75a9f4e5.a1649c",
127     "wires": [
128       [
129         "c13d50ec.a9c2"
130       ]
131     ]
132   },
133   {
134     "id": "c13d50ec.a9c2",
135     "type": "block",
136     "name": "block : atomic",
137     "xml": "<block atomic='true'>",
138     "atomic": "true",
139     "comments": "",
140     "outputs": 1,
141     "x": 1045,
142     "y": 269.55555629730225,
143     "z": "75a9f4e5.a1649c",
144     "wires": [
145       [
146         "6b85300.44ae5d",
147         "b50265a4.9ec658",
148         "ff92154a.222ad8"
149       ]
150     ]
151   },
152   {
153     "id": "f205d4a8.a6d008",
154     "type": "execute",
155     "name": "execute: flatAndAddToContext",
156     "xml": "<execute plugin='org.onap.appc.dg.common.JsonDgUtil' method='flatAndAddToContext' >\n<parameter name=\"payload\" value=\"`$input.payload`\" />",
157     "comments": "",
158     "outputs": 1,
159     "x": 273.6666564941406,
160     "y": 255.44444179534912,
161     "z": "75a9f4e5.a1649c",
162     "wires": [
163       [
164         "6d026903.3c9f08",
165         "d9efdcd7.d999"
166       ]
167     ]
168   },
169   {
170     "id": "7d6b675f.944888",
171     "type": "switchNode",
172     "name": "switch",
173     "xml": "<switch test='`$VNF.VMCount`'>\n",
174     "comments": "",
175     "outputs": 1,
176     "x": 803.0000305175781,
177     "y": 563.5555562973022,
178     "z": "75a9f4e5.a1649c",
179     "wires": [
180       [
181         "b3dc1924.975c18",
182         "61b52cec.5b91d4"
183       ]
184     ]
185   },
186   {
187     "id": "6b85300.44ae5d",
188     "type": "returnFailure",
189     "name": "return failure",
190     "xml": "<return status='failure'>\n",
191     "comments": "",
192     "x": 1308,
193     "y": 205.55555725097656,
194     "z": "75a9f4e5.a1649c",
195     "wires": []
196   },
197   {
198     "id": "b50265a4.9ec658",
199     "type": "execute",
200     "name": "execute_SendUEBEvent",
201     "xml": "<execute plugin='org.onap.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.onap.appc.dg.error\" value=\"Exception in getting VNF Hierachy\"/>\n<parameter name='output.status.message' value=\"Exception in getting VNF Hierachy\"/>\n",
202     "comments": "",
203     "outputs": 1,
204     "x": 1315,
205     "y": 91.55555725097656,
206     "z": "75a9f4e5.a1649c",
207     "wires": [
208       []
209     ]
210   },
211   {
212     "id": "d9efdcd7.d999",
213     "type": "other",
214     "name": "other",
215     "xml": "<outcome value='Other'>\n",
216     "comments": "",
217     "outputs": 1,
218     "x": 529.6666870117188,
219     "y": 196.44444179534912,
220     "z": "75a9f4e5.a1649c",
221     "wires": [
222       []
223     ]
224   },
225   {
226     "id": "b3dc1924.975c18",
227     "type": "other",
228     "name": "outcome_0",
229     "xml": "<outcome value='0'>\n",
230     "comments": "",
231     "outputs": 1,
232     "x": 881,
233     "y": 481.55555629730225,
234     "z": "75a9f4e5.a1649c",
235     "wires": [
236       [
237         "7edbf7e6.e29b28"
238       ]
239     ]
240   },
241   {
242     "id": "61b52cec.5b91d4",
243     "type": "other",
244     "name": "other",
245     "xml": "<outcome value='Other'>\n",
246     "comments": "",
247     "outputs": 1,
248     "x": 865,
249     "y": 652.5555562973022,
250     "z": "75a9f4e5.a1649c",
251     "wires": [
252       [
253         "1afd140e.b8e10c"
254       ]
255     ]
256   },
257   {
258     "id": "7edbf7e6.e29b28",
259     "type": "block",
260     "name": "block : atomic",
261     "xml": "<block atomic='true'>",
262     "atomic": "true",
263     "comments": "",
264     "outputs": 1,
265     "x": 1002,
266     "y": 405.55555629730225,
267     "z": "75a9f4e5.a1649c",
268     "wires": [
269       [
270         "ce24c821.4cd8e8",
271         "c6500acc.d09d98",
272         "f9c012e3.68717"
273       ]
274     ]
275   },
276   {
277     "id": "1afd140e.b8e10c",
278     "type": "block",
279     "name": "block : atomic",
280     "xml": "<block atomic='true'>\n",
281     "atomic": "true",
282     "comments": "",
283     "outputs": 1,
284     "x": 1016.0000610351562,
285     "y": 653.5556173324585,
286     "z": "75a9f4e5.a1649c",
287     "wires": [
288       [
289         "e690e466.a45438"
290       ]
291     ]
292   },
293   {
294     "id": "ce24c821.4cd8e8",
295     "type": "returnFailure",
296     "name": "return failure",
297     "xml": "<return status='failure'>\n",
298     "comments": "",
299     "x": 1230,
300     "y": 496.5555419921875,
301     "z": "75a9f4e5.a1649c",
302     "wires": []
303   },
304   {
305     "id": "c6500acc.d09d98",
306     "type": "execute",
307     "name": "execute_SendUEBEvent",
308     "xml": "<execute plugin='org.onap.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.onap.appc.dg.error\" value=\"VM Count is 0\"/>\n<parameter name='output.status.message' value=\"VM Count is 0\"/>\n\n",
309     "comments": "",
310     "outputs": 1,
311     "x": 1260,
312     "y": 347.55555629730225,
313     "z": "75a9f4e5.a1649c",
314     "wires": [
315       []
316     ]
317   },
318   {
319     "id": "e690e466.a45438",
320     "type": "execute",
321     "name": "execute_RollbackStack",
322     "xml": "<execute plugin='org.onap.appc.adapter.iaas.ProviderAdapter' method='restoreStack' >\n <parameter name=\"org.onap.appc.provider.name\" value=\"OpenStack\"/>\n <parameter name=\"org.onap.appc.instance.url\" value=\"`$VNF.VM[0].URL`\" />\n <parameter name=\"org.onap.appc.identity.url\" value=\"`$input.identity-url`\" />\n <parameter name=\"org.onap.appc.stack.id\" value =\"`$VNF.heat-stack-id`\" />\n <parameter name=\"org.onap.appc.snapshot.id\" value=\"`$input.snapshot-id`\" />",
323     "comments": "",
324     "outputs": 1,
325     "x": 1235,
326     "y": 653.5555562973022,
327     "z": "75a9f4e5.a1649c",
328     "wires": [
329       [
330         "755e1d66.83efb4",
331         "99ec0c41.3c7b8",
332         "e20a4882.f1ee38"
333       ]
334     ]
335   },
336   {
337     "id": "755e1d66.83efb4",
338     "type": "outcome",
339     "name": "success",
340     "xml": "<outcome value='success'>\n",
341     "comments": "",
342     "outputs": 1,
343     "x": 1383,
344     "y": 751.5555419921875,
345     "z": "75a9f4e5.a1649c",
346     "wires": [
347       [
348         "2d2f9438.4676ec"
349       ]
350     ]
351   },
352   {
353     "id": "99ec0c41.3c7b8",
354     "type": "failure",
355     "name": "failure",
356     "xml": "<outcome value='failure'>\n",
357     "comments": "",
358     "outputs": 1,
359     "x": 1378,
360     "y": 560.5555562973022,
361     "z": "75a9f4e5.a1649c",
362     "wires": [
363       [
364         "4ef40628.63bd68"
365       ]
366     ]
367   },
368   {
369     "id": "e20a4882.f1ee38",
370     "type": "other",
371     "name": "other",
372     "xml": "<outcome value='Other'>\n",
373     "comments": "",
374     "outputs": 1,
375     "x": 1434,
376     "y": 653.5556783676147,
377     "z": "75a9f4e5.a1649c",
378     "wires": [
379       [
380         "4ef40628.63bd68"
381       ]
382     ]
383   },
384   {
385     "id": "290b41b8.e128ee",
386     "type": "returnSuccess",
387     "name": "return success",
388     "xml": "<return status='success'>",
389     "comments": "",
390     "x": 1813.4285888671875,
391     "y": 800.126953125,
392     "z": "75a9f4e5.a1649c",
393     "wires": []
394   },
395   {
396     "id": "4ef40628.63bd68",
397     "type": "block",
398     "name": "block : atomic",
399     "xml": "<block atomic='true'>",
400     "atomic": "true",
401     "comments": "",
402     "outputs": 1,
403     "x": 1627.4285888671875,
404     "y": 653.6983785629272,
405     "z": "75a9f4e5.a1649c",
406     "wires": [
407       [
408         "da2d458c.b135f8",
409         "57c76a69.3aba64",
410         "c1763a92.eaaf28"
411       ]
412     ]
413   },
414   {
415     "id": "da2d458c.b135f8",
416     "type": "execute",
417     "name": "execute_SendUEBEvent",
418     "xml": "<execute plugin='org.onap.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.onap.appc.dg.error\" value=\"`'Error occured during rollback Stack '+$VNF.heat-stack-id + ' to snapshot ' + $snapshot-id`\"/>\n<parameter name='output.status.message' value=\"`'Error occured during rollback Stack '+$VNF.heat-stack-id + ' to snapshot ' + $snapshot-id`\"/>\n",
419     "comments": "",
420     "outputs": 1,
421     "x": 1888,
422     "y": 520.5555419921875,
423     "z": "75a9f4e5.a1649c",
424     "wires": [
425       [
426         "4571b850.f77f68"
427       ]
428     ]
429   },
430   {
431     "id": "57c76a69.3aba64",
432     "type": "returnFailure",
433     "name": "return failure",
434     "xml": "<return status='failure'>\n",
435     "comments": "",
436     "x": 1877,
437     "y": 648.5555419921875,
438     "z": "75a9f4e5.a1649c",
439     "wires": []
440   },
441   {
442     "id": "4571b850.f77f68",
443     "type": "success",
444     "name": "success",
445     "xml": "<outcome value='success'>\n",
446     "comments": "",
447     "outputs": 1,
448     "x": 2111.666748046875,
449     "y": 494.888916015625,
450     "z": "75a9f4e5.a1649c",
451     "wires": [
452       []
453     ]
454   },
455   {
456     "id": "7068b4fa.7f618c",
457     "type": "dgstart",
458     "name": "DGSTART",
459     "outputs": 1,
460     "x": 111.66665649414062,
461     "y": 20,
462     "z": "75a9f4e5.a1649c",
463     "wires": [
464       [
465         "3f3fa052.71537"
466       ]
467     ]
468   },
469   {
470     "id": "3f3fa052.71537",
471     "type": "service-logic",
472     "name": "APPC-API 2.0.0.0",
473     "module": "APPC-API",
474     "version": "2.0.0.0",
475     "comments": "",
476     "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='APPC-API' version='2.0.0.0'>",
477     "outputs": 1,
478     "x": 145.66665649414062,
479     "y": 114,
480     "z": "75a9f4e5.a1649c",
481     "wires": [
482       [
483         "90f1096d.987a68"
484       ]
485     ]
486   },
487   {
488     "id": "90f1096d.987a68",
489     "type": "method",
490     "name": "VNF_Rollback",
491     "xml": "<method rpc='VNF_Rollback' mode='sync'>\n",
492     "comments": "",
493     "outputs": 1,
494     "x": 145.66665649414062,
495     "y": 187,
496     "z": "75a9f4e5.a1649c",
497     "wires": [
498       [
499         "f205d4a8.a6d008"
500       ]
501     ]
502   },
503   {
504     "id": "ff92154a.222ad8",
505     "type": "execute",
506     "name": "Set failure code and message",
507     "xml": "<set>\n<parameter name='error-code' value='401'/>\n<parameter name='error-message' value=\"Exception in getting VNF Hierachy\"/>\n",
508     "comments": "",
509     "outputs": 1,
510     "x": 1331,
511     "y": 150,
512     "z": "75a9f4e5.a1649c",
513     "wires": [
514       []
515     ]
516   },
517   {
518     "id": "f9c012e3.68717",
519     "type": "execute",
520     "name": "Set failure code and message",
521     "xml": "<set>\n<parameter name='error-code' value='401'/>\n<parameter name='error-message' value=\"VM Count is 0\"/>\n",
522     "comments": "",
523     "outputs": 1,
524     "x": 1257,
525     "y": 424,
526     "z": "75a9f4e5.a1649c",
527     "wires": [
528       []
529     ]
530   },
531   {
532     "id": "c1763a92.eaaf28",
533     "type": "execute",
534     "name": "Set failure code and message",
535     "xml": "<set>\n<parameter name='error-code' value='401' />\n<parameter name='error-message' value=\"`'Error occured during rollback Stack '+$VNF.heat-stack-id + ' to snapshot ' + $snapshot-id`\"/>\n",
536     "comments": "",
537     "outputs": 1,
538     "x": 1904,
539     "y": 586,
540     "z": "75a9f4e5.a1649c",
541     "wires": [
542       []
543     ]
544   },
545   {
546     "id": "2d2f9438.4676ec",
547     "type": "block",
548     "name": "block : atomic",
549     "xml": "<block atomic='true'>",
550     "atomic": "true",
551     "comments": "",
552     "outputs": 1,
553     "x": 1567,
554     "y": 754,
555     "z": "75a9f4e5.a1649c",
556     "wires": [
557       [
558         "290b41b8.e128ee",
559         "b75c6c94.830d4"
560       ]
561     ]
562   },
563   {
564     "id": "b75c6c94.830d4",
565     "type": "execute",
566     "name": "Set success code and message",
567     "xml": "<set>\n<parameter name='error-code' value='400'/>\n<parameter name='error-message' value=\"Success\"/>\n",
568     "comments": "",
569     "outputs": 1,
570     "x": 1833,
571     "y": 731,
572     "z": "75a9f4e5.a1649c",
573     "wires": [
574       []
575     ]
576   }
577 ]