6923f1ef283f4ca591917dca2526e217d06e6099
[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": "f7fa8fff.f2db5",
24         "type": "method",
25         "name": "VSRX_GetConfig",
26         "xml": "<method rpc='VSRX_GetConfig' mode='sync'>\n",
27         "comments": "",
28         "outputs": 1,
29         "x": 106,
30         "y": 183,
31         "z": "39664169.9c031e",
32         "wires": [
33             [
34                 "848e0abf.ad4068"
35             ]
36         ]
37     },
38     {
39         "id": "a5b12ccd.9b5d2",
40         "type": "service-logic",
41         "name": "APPC 2.0.0",
42         "module": "APPC",
43         "version": "2.0.0",
44         "comments": "",
45         "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' version='2.0.0'>",
46         "outputs": 1,
47         "x": 98.5,
48         "y": 106,
49         "z": "39664169.9c031e",
50         "wires": [
51             [
52                 "f7fa8fff.f2db5"
53             ]
54         ]
55     },
56     {
57         "id": "acf8d85c.a64e78",
58         "type": "dgstart",
59         "name": "DGSTART",
60         "outputs": 1,
61         "x": 78.5,
62         "y": 23,
63         "z": "39664169.9c031e",
64         "wires": [
65             [
66                 "a5b12ccd.9b5d2"
67             ]
68         ]
69     },
70     {
71         "id": "d4b59933.d26998",
72         "type": "execute",
73         "name": "execute_getVNF_Hierarchy",
74         "xml": "<execute plugin='org.openecomp.appc.dg.util.ExecuteNodeAction' method='getVnfHierarchy'>\n<parameter name=\"resourceKey\" value=\"`$org.openecomp.appc.vfid`\" />\n<parameter name=\"nodeName\" value=\"execute_getVNF_Hierarchy\" />",
75         "comments": "",
76         "outputs": 1,
77         "x": 362.5,
78         "y": 514,
79         "z": "39664169.9c031e",
80         "wires": [
81             [
82                 "5c563fba.47402",
83                 "8266b647.8b0a88"
84             ]
85         ]
86     },
87     {
88         "id": "5c563fba.47402",
89         "type": "success",
90         "name": "success",
91         "xml": "<outcome value='success'>\n",
92         "comments": "",
93         "outputs": 1,
94         "x": 368.5,
95         "y": 599,
96         "z": "39664169.9c031e",
97         "wires": [
98             [
99                 "46cc0481.73e78c"
100             ]
101         ]
102     },
103     {
104         "id": "2a0a328f.13910e",
105         "type": "block",
106         "name": "block : atomic",
107         "xml": "<block atomic='true'>\n",
108         "atomic": "true",
109         "comments": "",
110         "outputs": 1,
111         "x": 543.5,
112         "y": 811,
113         "z": "39664169.9c031e",
114         "wires": [
115             [
116                 "2daebecc.b36232"
117             ]
118         ]
119     },
120     {
121         "id": "2daebecc.b36232",
122         "type": "for",
123         "name": "for_each_VMs",
124         "xml": "<for index=\"i\" start=\"0\" end=\"`$VNF.VMCount`\" >",
125         "comments": "",
126         "outputs": 1,
127         "x": 729.5,
128         "y": 812,
129         "z": "39664169.9c031e",
130         "wires": [
131             [
132                 "c06a4341.ec82f"
133             ]
134         ]
135     },
136     {
137         "id": "c06a4341.ec82f",
138         "type": "block",
139         "name": "block : atomic",
140         "xml": "<block atomic='true'>\n",
141         "atomic": "true",
142         "comments": "",
143         "outputs": 1,
144         "x": 727.5,
145         "y": 903,
146         "z": "39664169.9c031e",
147         "wires": [
148             [
149                 "2c2a06fe.98ddba"
150             ]
151         ]
152     },
153     {
154         "id": "2c2a06fe.98ddba",
155         "type": "execute",
156         "name": "retrieveVMSSHConfiguration",
157         "xml": "<execute plugin='org.openecomp.appc.dg.util.NetconfDBPlugin' method='retrieveVMDSConfiguration' >\n<parameter name=\"resourceKey\" value=\"`$VNF.VM[$i].vserver.vserver-name`\" />\n<parameter name=\"nodeName\" value=\"retrieveVMSSHConfiguration\" />",
158         "comments": "",
159         "outputs": 1,
160         "x": 738.5,
161         "y": 993,
162         "z": "39664169.9c031e",
163         "wires": [
164             [
165                 "498ff39f.be3cfc",
166                 "7c4f9f57.eb4e4"
167             ]
168         ]
169     },
170     {
171         "id": "498ff39f.be3cfc",
172         "type": "success",
173         "name": "success",
174         "xml": "<outcome value='success'>\n",
175         "comments": "",
176         "outputs": 1,
177         "x": 831.5,
178         "y": 1078,
179         "z": "39664169.9c031e",
180         "wires": [
181             [
182                 "558c56db.194258"
183             ]
184         ]
185     },
186     {
187         "id": "9d84d01f.ffef4",
188         "type": "returnSuccess",
189         "name": "return success",
190         "xml": "<return status='success'>\n",
191         "comments": "",
192         "x": 103.5,
193         "y": 522,
194         "z": "39664169.9c031e",
195         "wires": []
196     },
197     {
198         "id": "8266b647.8b0a88",
199         "type": "failure",
200         "name": "failure",
201         "xml": "<outcome value='failure'>\n",
202         "comments": "",
203         "outputs": 1,
204         "x": 1294.5,
205         "y": 524,
206         "z": "39664169.9c031e",
207         "wires": [
208             [
209                 "8ba9ec90.9c794"
210             ]
211         ]
212     },
213     {
214         "id": "d7069cc8.15349",
215         "type": "returnFailure",
216         "name": "return failure",
217         "xml": "<return status='failure'>\n",
218         "comments": "",
219         "x": 1853.5,
220         "y": 966,
221         "z": "39664169.9c031e",
222         "wires": []
223     },
224     {
225         "id": "7c4f9f57.eb4e4",
226         "type": "failure",
227         "name": "failure",
228         "xml": "<outcome value='failure'>\n",
229         "comments": "",
230         "outputs": 1,
231         "x": 1298.5,
232         "y": 992,
233         "z": "39664169.9c031e",
234         "wires": [
235             [
236                 "8ba9ec90.9c794"
237             ]
238         ]
239     },
240     {
241         "id": "46cc0481.73e78c",
242         "type": "switchNode",
243         "name": "switch",
244         "xml": "<switch test='`$VNF.VMCount`'>\n",
245         "comments": "",
246         "outputs": 1,
247         "x": 386.5,
248         "y": 723,
249         "z": "39664169.9c031e",
250         "wires": [
251             [
252                 "1e28c6f9.bbc059",
253                 "18cc64bd.c146cb"
254             ]
255         ]
256     },
257     {
258         "id": "1e28c6f9.bbc059",
259         "type": "other",
260         "name": "outcome_0",
261         "xml": "<outcome value='0'>\n",
262         "comments": "",
263         "outputs": 1,
264         "x": 1296.5,
265         "y": 782,
266         "z": "39664169.9c031e",
267         "wires": [
268             [
269                 "8ba9ec90.9c794"
270             ]
271         ]
272     },
273     {
274         "id": "18cc64bd.c146cb",
275         "type": "other",
276         "name": "other",
277         "xml": "<outcome value='Other'>\n",
278         "comments": "",
279         "outputs": 1,
280         "x": 377.5,
281         "y": 805,
282         "z": "39664169.9c031e",
283         "wires": [
284             [
285                 "2a0a328f.13910e"
286             ]
287         ]
288     },
289     {
290         "id": "8ba9ec90.9c794",
291         "type": "block",
292         "name": "block : atomic",
293         "xml": "<block atomic='true'>",
294         "atomic": "true",
295         "comments": "",
296         "outputs": 1,
297         "x": 1668.5,
298         "y": 909,
299         "z": "39664169.9c031e",
300         "wires": [
301             [
302                 "d7069cc8.15349",
303                 "1342848b.10b68b"
304             ]
305         ]
306     },
307     {
308         "id": "1342848b.10b68b",
309         "type": "execute",
310         "name": "execute_DCAEReporterPlugin",
311         "xml": "<execute plugin='org.openecomp.appc.dg.util.DCAEReporterPlugin' method='report' >\n<parameter name=\"apiVer\" value=\"`$org.openecomp.appc.apiversion`\"/>\n<parameter name=\"eventId\" value=\"`$org.openecomp.appc.vfid`\" />\n<parameter name=\"org.openecomp.appc.dg.error\" value=\"`$org.openecomp.appc.dg.error`\" />",
312         "comments": "",
313         "outputs": 1,
314         "x": 1843.5,
315         "y": 780,
316         "z": "39664169.9c031e",
317         "wires": [
318             [
319                 "c7d75190.228fd"
320             ]
321         ]
322     },
323     {
324         "id": "504bb6d6.3bc128",
325         "type": "success",
326         "name": "success",
327         "xml": "<outcome value='success'>\n",
328         "comments": "",
329         "outputs": 1,
330         "x": 2360.5,
331         "y": 776,
332         "z": "39664169.9c031e",
333         "wires": [
334             []
335         ]
336     },
337     {
338         "id": "7b04e7f0.163648",
339         "type": "execute",
340         "name": "get_Configuration",
341         "xml": "<execute plugin='org.openecomp.appc.dg.util.NetconfClientPlugin' method='getConfig' >\n<parameter name=\"connection-details\" value=\"`$connection-details`\" />\n<parameter name=\"conf-id\" value=\"`$org.openecomp.appc.confid`\" />\n<parameter name=\"nodeName\" value=\"get_Configuration\" />\n\n",
342         "comments": "",
343         "outputs": 1,
344         "x": 777.5,
345         "y": 1309,
346         "z": "39664169.9c031e",
347         "wires": [
348             [
349                 "1d012da5.7898b2",
350                 "e0e065cf.da6938"
351             ]
352         ]
353     },
354     {
355         "id": "d3f8ad27.db631",
356         "type": "success",
357         "name": "success",
358         "xml": "<outcome value='success'>\n",
359         "comments": "",
360         "outputs": 1,
361         "x": 970.5,
362         "y": 112,
363         "z": "39664169.9c031e",
364         "wires": [
365             [
366                 "e21b57a4.5ea998"
367             ]
368         ]
369     },
370     {
371         "id": "bfab5b6b.b57008",
372         "type": "outcome",
373         "name": "failure",
374         "xml": "<outcome value='failure'>\n",
375         "comments": "",
376         "outputs": 1,
377         "x": 1292.5,
378         "y": 386,
379         "z": "39664169.9c031e",
380         "wires": [
381             [
382                 "8ba9ec90.9c794"
383             ]
384         ]
385     },
386     {
387         "id": "558c56db.194258",
388         "type": "switchNode",
389         "name": "switch",
390         "xml": "<switch test='`$retrieveVMDSConfiguration_Result`'>\n",
391         "comments": "",
392         "outputs": 1,
393         "x": 775.5,
394         "y": 1161,
395         "z": "39664169.9c031e",
396         "wires": [
397             [
398                 "3416bac7.a684e6",
399                 "8be5c519.3532f8"
400             ]
401         ]
402     },
403     {
404         "id": "3416bac7.a684e6",
405         "type": "success",
406         "name": "success",
407         "xml": "<outcome value='success'>\n",
408         "comments": "",
409         "outputs": 1,
410         "x": 775.5,
411         "y": 1250,
412         "z": "39664169.9c031e",
413         "wires": [
414             [
415                 "7b04e7f0.163648"
416             ]
417         ]
418     },
419     {
420         "id": "8be5c519.3532f8",
421         "type": "failure",
422         "name": "failure",
423         "xml": "<outcome value='failure'>\n",
424         "comments": "",
425         "outputs": 1,
426         "x": 1288.5,
427         "y": 1096,
428         "z": "39664169.9c031e",
429         "wires": [
430             [
431                 "8ba9ec90.9c794"
432             ]
433         ]
434     },
435     {
436         "id": "e21b57a4.5ea998",
437         "type": "switchNode",
438         "name": "switch",
439         "xml": "<switch test='`$getConfig_Result`'>\n",
440         "comments": "",
441         "outputs": 1,
442         "x": 1124.5,
443         "y": 120,
444         "z": "39664169.9c031e",
445         "wires": [
446             [
447                 "cce84fd0.a0f22",
448                 "c2e06562.032b08"
449             ]
450         ]
451     },
452     {
453         "id": "cce84fd0.a0f22",
454         "type": "success",
455         "name": "success",
456         "xml": "<outcome value='Success'>\n",
457         "comments": "",
458         "outputs": 1,
459         "x": 1269.5,
460         "y": 61,
461         "z": "39664169.9c031e",
462         "wires": [
463             [
464                 "c8e36592.453328"
465             ]
466         ]
467     },
468     {
469         "id": "c2e06562.032b08",
470         "type": "failure",
471         "name": "failure",
472         "xml": "<outcome value='failure'>\n",
473         "comments": "",
474         "outputs": 1,
475         "x": 1282.5,
476         "y": 202,
477         "z": "39664169.9c031e",
478         "wires": [
479             [
480                 "8ba9ec90.9c794"
481             ]
482         ]
483     },
484     {
485         "id": "82e0381.f53dac8",
486         "type": "execute",
487         "name": "registerPayload",
488         "xml": "<execute plugin='org.openecomp.appc.dg.util.DGPayloadCleanupPlugin' method='registerPayload' >\n<parameter name=\"resourceKey\" value=\"`$org.openecomp.appc.confid+'.Configuration'`\" />",
489         "comments": "",
490         "outputs": 1,
491         "x": 1599,
492         "y": 61,
493         "z": "39664169.9c031e",
494         "wires": [
495             [
496                 "7e05eae7.3d7694"
497             ]
498         ]
499     },
500     {
501         "id": "7e05eae7.3d7694",
502         "type": "success",
503         "name": "success",
504         "xml": "<outcome value='success'>\n",
505         "comments": "",
506         "outputs": 1,
507         "x": 1789,
508         "y": 132,
509         "z": "39664169.9c031e",
510         "wires": [
511             []
512         ]
513     },
514     {
515         "id": "b81740d5.22bfe",
516         "type": "success",
517         "name": "success",
518         "xml": "<outcome value='success'>\n",
519         "comments": "",
520         "outputs": 1,
521         "x": 118,
522         "y": 428,
523         "z": "39664169.9c031e",
524         "wires": [
525             [
526                 "9d84d01f.ffef4"
527             ]
528         ]
529     },
530     {
531         "id": "c8e36592.453328",
532         "type": "block",
533         "name": "block",
534         "xml": "<block>\n",
535         "atomic": "false",
536         "comments": "",
537         "outputs": 1,
538         "x": 1442,
539         "y": 66,
540         "z": "39664169.9c031e",
541         "wires": [
542             [
543                 "82e0381.f53dac8"
544             ]
545         ]
546     },
547     {
548         "id": "72ff50ec.62143",
549         "type": "switchNode",
550         "name": "switch",
551         "xml": "<switch test=\"`$org.openecomp.appc.confid`\">",
552         "comments": "",
553         "outputs": 1,
554         "x": 323.5,
555         "y": 216,
556         "z": "39664169.9c031e",
557         "wires": [
558             [
559                 "d42cb172.bd7b8",
560                 "d8b98ebe.3e41"
561             ]
562         ]
563     },
564     {
565         "id": "d42cb172.bd7b8",
566         "type": "outcome",
567         "name": "outcome_current",
568         "xml": "<outcome value='current'>\n",
569         "comments": "",
570         "outputs": 1,
571         "x": 471.5,
572         "y": 366,
573         "z": "39664169.9c031e",
574         "wires": [
575             [
576                 "d4b59933.d26998"
577             ]
578         ]
579     },
580     {
581         "id": "d8b98ebe.3e41",
582         "type": "other",
583         "name": "other",
584         "xml": "<outcome value='Other'>\n",
585         "comments": "",
586         "outputs": 1,
587         "x": 481.5,
588         "y": 187,
589         "z": "39664169.9c031e",
590         "wires": [
591             [
592                 "3b2964a3.c85eac"
593             ]
594         ]
595     },
596     {
597         "id": "3b2964a3.c85eac",
598         "type": "execute",
599         "name": "getConfiguration",
600         "xml": "<execute plugin='org.openecomp.appc.dg.util.ConfigurationManagerPlugin' method='getConfig' >\n<parameter name=\"connection-details\" value=\"`$connection-details`\" />\n<parameter name=\"conf-id\" value=\"`$org.openecomp.appc.confid`\" />\n<parameter name=\"nodeName\" value=\"getConfiguration\" />",
601         "comments": "",
602         "outputs": 1,
603         "x": 696.5,
604         "y": 189,
605         "z": "39664169.9c031e",
606         "wires": [
607             [
608                 "bfab5b6b.b57008",
609                 "d3f8ad27.db631"
610             ]
611         ]
612     },
613     {
614         "id": "848e0abf.ad4068",
615         "type": "block",
616         "name": "block : atomic",
617         "xml": "<block atomic='true'>",
618         "atomic": "true",
619         "comments": "",
620         "outputs": 1,
621         "x": 110,
622         "y": 270,
623         "z": "39664169.9c031e",
624         "wires": [
625             [
626                 "72ff50ec.62143",
627                 "f10ec3da.6e759"
628             ]
629         ]
630     },
631     {
632         "id": "f10ec3da.6e759",
633         "type": "execute",
634         "name": "ctxCleanup",
635         "xml": "<execute plugin='org.openecomp.appc.dg.util.DGPayloadCleanupPlugin' method='cleanup' >\n<parameter name=\"connection-details\" value=\"`$connection-details`\" />\n<parameter name=\"conf-id\" value=\"`$org.openecomp.appc.confid`\" />\n",
636         "comments": "",
637         "outputs": 1,
638         "x": 143,
639         "y": 365,
640         "z": "39664169.9c031e",
641         "wires": [
642             [
643                 "b81740d5.22bfe"
644             ]
645         ]
646     },
647     {
648         "id": "50e44062.8a63f",
649         "type": "comment",
650         "name": "Fetch all VMs and VNFCs from AA&I for given VNF_ID",
651         "info": "",
652         "comments": "",
653         "x": 587.5,
654         "y": 480,
655         "z": "39664169.9c031e",
656         "wires": []
657     },
658     {
659         "id": "1d012da5.7898b2",
660         "type": "success",
661         "name": "success",
662         "xml": "<outcome value='success'>\n",
663         "comments": "",
664         "outputs": 1,
665         "x": 1036.5,
666         "y": 1364,
667         "z": "39664169.9c031e",
668         "wires": [
669             [
670                 "bde7e151.2a23e"
671             ]
672         ]
673     },
674     {
675         "id": "bde7e151.2a23e",
676         "type": "switchNode",
677         "name": "switch",
678         "xml": "<switch test='`$getConfig_Result`'>\n",
679         "comments": "",
680         "outputs": 1,
681         "x": 1268.5,
682         "y": 1446,
683         "z": "39664169.9c031e",
684         "wires": [
685             [
686                 "735df4fd.90402c",
687                 "f02c82b2.f3509"
688             ]
689         ]
690     },
691     {
692         "id": "735df4fd.90402c",
693         "type": "success",
694         "name": "success",
695         "xml": "<outcome value='Success'>\n",
696         "comments": "",
697         "outputs": 1,
698         "x": 1424.5,
699         "y": 1487,
700         "z": "39664169.9c031e",
701         "wires": [
702             [
703                 "a55afee1.a9ca1"
704             ]
705         ]
706     },
707     {
708         "id": "f02c82b2.f3509",
709         "type": "failure",
710         "name": "failure",
711         "xml": "<outcome value='failure'>\n",
712         "comments": "",
713         "outputs": 1,
714         "x": 1397.5,
715         "y": 1390,
716         "z": "39664169.9c031e",
717         "wires": [
718             [
719                 "8ba9ec90.9c794"
720             ]
721         ]
722     },
723     {
724         "id": "fcbe0c1c.11c7d",
725         "type": "execute",
726         "name": "registerPayload",
727         "xml": "<execute plugin='org.openecomp.appc.dg.util.DGPayloadCleanupPlugin' method='registerPayload' >\n<parameter name=\"resourceKey\" value=\"`$VNF.VM[$i].vserver.vserver-name+'.Configuration'`\" />",
728         "comments": "",
729         "outputs": 1,
730         "x": 1855,
731         "y": 1448,
732         "z": "39664169.9c031e",
733         "wires": [
734             [
735                 "b0e981e3.4f6fb"
736             ]
737         ]
738     },
739     {
740         "id": "b0e981e3.4f6fb",
741         "type": "success",
742         "name": "success",
743         "xml": "<outcome value='success'>\n",
744         "comments": "",
745         "outputs": 1,
746         "x": 2018,
747         "y": 1446,
748         "z": "39664169.9c031e",
749         "wires": [
750             []
751         ]
752     },
753     {
754         "id": "a55afee1.a9ca1",
755         "type": "block",
756         "name": "block",
757         "xml": "<block>\n",
758         "atomic": "false",
759         "comments": "",
760         "outputs": 1,
761         "x": 1680,
762         "y": 1445,
763         "z": "39664169.9c031e",
764         "wires": [
765             [
766                 "fcbe0c1c.11c7d"
767             ]
768         ]
769     },
770     {
771         "id": "e0e065cf.da6938",
772         "type": "failure",
773         "name": "failure",
774         "xml": "<outcome value='failure'>\n",
775         "comments": "",
776         "outputs": 1,
777         "x": 1302.5,
778         "y": 1221,
779         "z": "39664169.9c031e",
780         "wires": [
781             [
782                 "8ba9ec90.9c794"
783             ]
784         ]
785     },
786     {
787         "id": "c7d75190.228fd",
788         "type": "other",
789         "name": "other",
790         "xml": "<outcome value='Other'>\n",
791         "comments": "",
792         "outputs": 1,
793         "x": 2049.5,
794         "y": 779,
795         "z": "39664169.9c031e",
796         "wires": [
797             [
798                 "f0554fe0.4816e"
799             ]
800         ]
801     },
802     {
803         "id": "f0554fe0.4816e",
804         "type": "execute",
805         "name": "ctxCleanup",
806         "xml": "<execute plugin='org.openecomp.appc.dg.util.DGPayloadCleanupPlugin' method='cleanup' >\n<parameter name=\"connection-details\" value=\"`$connection-details`\" />\n<parameter name=\"conf-id\" value=\"`$org.openecomp.appc.confid`\" />\n",
807         "comments": "",
808         "outputs": 1,
809         "x": 2199.5,
810         "y": 778,
811         "z": "39664169.9c031e",
812         "wires": [
813             [
814                 "504bb6d6.3bc128"
815             ]
816         ]
817     }
818 ]