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