6646ea381f2cf1a0edd6c8cd750535216f9bffff
[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": "7803fc.b785cc04",
24         "type": "execute",
25         "name": "execute: retrieveDSConfiguration",
26         "xml": "<execute plugin='org.openecomp.appc.dg.netconf.NetconfDBPlugin' method='retrieveDSConfiguration' >\n<parameter name=\"configuration-file-name\" value=\"`$configuration-file-name`\" />\n<parameter name=\"vnf-type\" value=\"`$vnf-type`\" />\n<parameter name=\"vnf-host-ip-address\" value=\"`$vnf-host-ip-address`\" />\n",
27         "comments": "",
28         "outputs": 1,
29         "x": 497,
30         "y": 602.0000457763672,
31         "z": "b4822c6c.4b863",
32         "wires": [
33             [
34                 "e9707cd1.b397e",
35                 "b9dd9161.84c4"
36             ]
37         ]
38     },
39     {
40         "id": "e9707cd1.b397e",
41         "type": "success",
42         "name": "success",
43         "xml": "<outcome value='success'>\n",
44         "comments": "",
45         "outputs": 1,
46         "x": 728.666748046875,
47         "y": 660.2222366333008,
48         "z": "b4822c6c.4b863",
49         "wires": [
50             [
51                 "41d228d8.8ed518"
52             ]
53         ]
54     },
55     {
56         "id": "b9dd9161.84c4",
57         "type": "other",
58         "name": "other",
59         "xml": "<outcome value='Other'>\n",
60         "comments": "",
61         "outputs": 1,
62         "x": 725.7777709960938,
63         "y": 624.7778091430664,
64         "z": "b4822c6c.4b863",
65         "wires": [
66             [
67                 "e305119d.ed993"
68             ]
69         ]
70     },
71     {
72         "id": "41d228d8.8ed518",
73         "type": "execute",
74         "name": "execute: operationStateValidation",
75         "xml": "<execute plugin='org.openecomp.appc.dg.netconf.NetconfClientPlugin' method='operationStateValidation' >\n<parameter name=\"vnf-host-ip-address\" value=\"`$vnf-host-ip-address`\" />\n<parameter name=\"org.openecomp.appc.vftype\" value=\"`$vnf-type`\" />\n",
76         "comments": "",
77         "outputs": 1,
78         "x": 730.4444580078125,
79         "y": 724.2222061157227,
80         "z": "b4822c6c.4b863",
81         "wires": [
82             [
83                 "a9ebbdb4.61508",
84                 "9dc375e3.ffd028"
85             ]
86         ]
87     },
88     {
89         "id": "a9ebbdb4.61508",
90         "type": "other",
91         "name": "other",
92         "xml": "<outcome value='Other'>\n",
93         "comments": "",
94         "outputs": 1,
95         "x": 960,
96         "y": 689.444465637207,
97         "z": "b4822c6c.4b863",
98         "wires": [
99             [
100                 "e305119d.ed993"
101             ]
102         ]
103     },
104     {
105         "id": "9dc375e3.ffd028",
106         "type": "success",
107         "name": "success",
108         "xml": "<outcome value='success'>\n",
109         "comments": "",
110         "outputs": 1,
111         "x": 956.33349609375,
112         "y": 736.2222061157227,
113         "z": "b4822c6c.4b863",
114         "wires": [
115             [
116                 "e6a1550.e281ca8"
117             ]
118         ]
119     },
120     {
121         "id": "e6a1550.e281ca8",
122         "type": "execute",
123         "name": "execute: modifyConfiguration",
124         "xml": "<execute plugin='org.openecomp.appc.dg.netconf.NetconfClientPlugin' method='modifyConfiguration' >\n<parameter name=\"connection-details\" value=\"`$connection-details`\" />\n<parameter name=\"file-content\" value=\"`$file-content`\" />\n",
125         "comments": "",
126         "outputs": 1,
127         "x": 823.1112060546875,
128         "y": 818.5554885864258,
129         "z": "b4822c6c.4b863",
130         "wires": [
131             [
132                 "60608be7.4c01b4",
133                 "1891f46a.8b267c"
134             ]
135         ]
136     },
137     {
138         "id": "60608be7.4c01b4",
139         "type": "other",
140         "name": "other",
141         "xml": "<outcome value='Other'>\n",
142         "comments": "",
143         "outputs": 1,
144         "x": 1041,
145         "y": 798.8889236450195,
146         "z": "b4822c6c.4b863",
147         "wires": [
148             [
149                 "e305119d.ed993"
150             ]
151         ]
152     },
153     {
154         "id": "1891f46a.8b267c",
155         "type": "success",
156         "name": "success",
157         "xml": "<outcome value='success'>\n",
158         "comments": "",
159         "outputs": 1,
160         "x": 1045.2222900390625,
161         "y": 842.7777786254883,
162         "z": "b4822c6c.4b863",
163         "wires": [
164             [
165                 "2c1a225a.7bc46e"
166             ]
167         ]
168     },
169     {
170         "id": "fb0deae.818b418",
171         "type": "execute",
172         "name": "execute: backupConfiguration",
173         "xml": "<execute plugin='org.openecomp.appc.dg.netconf.NetconfClientPlugin' method='backupConfiguration' >\n<parameter name=\"connection-details\" value=\"`$connection-details`\" />\n",
174         "comments": "",
175         "outputs": 1,
176         "x": 950.333251953125,
177         "y": 1038.9999465942383,
178         "z": "b4822c6c.4b863",
179         "wires": [
180             [
181                 "b5901988.ad9d58",
182                 "4a35b9ce.b82b38"
183             ]
184         ]
185     },
186     {
187         "id": "b5901988.ad9d58",
188         "type": "other",
189         "name": "other",
190         "xml": "<outcome value='Other'>\n",
191         "comments": "",
192         "outputs": 1,
193         "x": 1159.4444580078125,
194         "y": 1014.7777786254883,
195         "z": "b4822c6c.4b863",
196         "wires": [
197             [
198                 "e305119d.ed993"
199             ]
200         ]
201     },
202     {
203         "id": "4a35b9ce.b82b38",
204         "type": "success",
205         "name": "success",
206         "xml": "<outcome value='success'>\n",
207         "comments": "",
208         "outputs": 1,
209         "x": 1164.0001220703125,
210         "y": 1059.3333206176758,
211         "z": "b4822c6c.4b863",
212         "wires": [
213             [
214                 "fd7e26ec.f67a88"
215             ]
216         ]
217     },
218     {
219         "id": "fd7e26ec.f67a88",
220         "type": "returnSuccess",
221         "name": "return success",
222         "xml": "<return status='success'>\n \t<parameter name='error-code' value='200' />",
223         "comments": "",
224         "x": 1458.5557556152344,
225         "y": 1058.4444961547852,
226         "z": "b4822c6c.4b863",
227         "wires": []
228     },
229     {
230         "id": "e305119d.ed993",
231         "type": "execute",
232         "name": "execute: handleErrorToDCAE",
233         "xml": "<execute plugin='org.openecomp.appc.dg.common.DCAEReporterPlugin' method='report' >\n<parameter name=\"org.openecomp.appc.dg.error\" value=\"`$org.openecomp.appc.dg.error`\" />\n<parameter name='output.status.message' value=\"`$org.openecomp.appc.dg.error`\" />\n",
234         "comments": "",
235         "outputs": 1,
236         "x": 1340.2223815917969,
237         "y": 631.333366394043,
238         "z": "b4822c6c.4b863",
239         "wires": [
240             [
241                 "354c4873.8508a8"
242             ]
243         ]
244     },
245     {
246         "id": "8c61f324.ae24",
247         "type": "execute",
248         "name": "execute: operationStateValidation",
249         "xml": "<execute plugin='org.openecomp.appc.dg.netconf.NetconfClientPlugin' method='operationStateValidation' >\n<parameter name=\"vnf-host-ip-address\" value=\"`$vnf-host-ip-address`\" />\n<parameter name=\"connection-details\" value=\"`$connection-details`\" />\n<parameter name=\"org.openecomp.appc.vftype\" value=\"`$vnf-type`\" />\n",
250         "comments": "",
251         "outputs": 1,
252         "x": 820.6666870117188,
253         "y": 956.0000839233398,
254         "z": "b4822c6c.4b863",
255         "wires": [
256             [
257                 "e5e25242.4d628",
258                 "873a0a33.5a6f68"
259             ]
260         ]
261     },
262     {
263         "id": "873a0a33.5a6f68",
264         "type": "other",
265         "name": "other",
266         "xml": "<outcome value='Other'>\n",
267         "comments": "",
268         "outputs": 1,
269         "x": 1059.4444580078125,
270         "y": 943.7778472900391,
271         "z": "b4822c6c.4b863",
272         "wires": [
273             [
274                 "e305119d.ed993"
275             ]
276         ]
277     },
278     {
279         "id": "e5e25242.4d628",
280         "type": "success",
281         "name": "success",
282         "xml": "<outcome value='success'>\n",
283         "comments": "",
284         "outputs": 1,
285         "x": 1056.3334350585938,
286         "y": 981.2222442626953,
287         "z": "b4822c6c.4b863",
288         "wires": [
289             [
290                 "fb0deae.818b418"
291             ]
292         ]
293     },
294     {
295         "id": "1a23a9aa.d63826",
296         "type": "returnFailure",
297         "name": "return failure",
298         "xml": "<return status='failure'>\n<parameter name='error-code' value=\"401\" />\n<parameter name='error-message' value=\"`$org.openecomp.appc.dg.error`\" />\n<parameter name='output.status.code' value='401'/>\n",
299         "comments": "",
300         "x": 1691.8096923828125,
301         "y": 630.857177734375,
302         "z": "b4822c6c.4b863",
303         "wires": []
304     },
305     {
306         "id": "2e25a000.04c5c",
307         "type": "success",
308         "name": "success",
309         "xml": "<outcome value='success'>\n",
310         "comments": "",
311         "outputs": 1,
312         "x": 338.6667175292969,
313         "y": 467.99996185302734,
314         "z": "b4822c6c.4b863",
315         "wires": [
316             [
317                 "bb5aec54.cbbe6"
318             ]
319         ]
320     },
321     {
322         "id": "12f26606.82d0fa",
323         "type": "execute",
324         "name": "execute: getVNFData",
325         "xml": "<execute plugin='org.openecomp.appc.dg.aai.AAIPlugin' method='getGenericVnfData' >",
326         "comments": "",
327         "outputs": 1,
328         "x": 354.6665954589844,
329         "y": 404.0000534057617,
330         "z": "b4822c6c.4b863",
331         "wires": [
332             [
333                 "2e25a000.04c5c",
334                 "85e8fad3.0a8fd8"
335             ]
336         ]
337     },
338     {
339         "id": "538c4326.ceed4c",
340         "type": "block",
341         "name": "block : atomic",
342         "xml": "<block atomic='true'>",
343         "atomic": "true",
344         "comments": "",
345         "outputs": 1,
346         "x": 287.6667175292969,
347         "y": 343.0000228881836,
348         "z": "b4822c6c.4b863",
349         "wires": [
350             [
351                 "12f26606.82d0fa",
352                 "a8e2d4ed.3f69c8"
353             ]
354         ]
355     },
356     {
357         "id": "85e8fad3.0a8fd8",
358         "type": "failure",
359         "name": "failure",
360         "xml": "<outcome value='failure'>\n",
361         "comments": "",
362         "outputs": 1,
363         "x": 669.6667175292969,
364         "y": 397.3332748413086,
365         "z": "b4822c6c.4b863",
366         "wires": [
367             [
368                 "5efd9802.fe2b28"
369             ]
370         ]
371     },
372     {
373         "id": "a8e2d4ed.3f69c8",
374         "type": "set",
375         "name": "set",
376         "xml": "<set>\n\t<parameter name='aai.vnfID' value=\"`$input.action-identifiers.vnf-id`\" />\n\t<parameter name='aai.prefix' value='aai.input.data' />\t",
377         "comments": "",
378         "x": 487.6667175292969,
379         "y": 301.0000228881836,
380         "z": "b4822c6c.4b863",
381         "wires": []
382     },
383     {
384         "id": "ac24dc8.2d2022",
385         "type": "method",
386         "name": "vSBG ModifyConfig",
387         "xml": "<method rpc='VSBG_ModifyConfig' mode='sync'>\n",
388         "comments": "",
389         "outputs": 1,
390         "x": 182.5555877685547,
391         "y": 185.77777099609375,
392         "z": "b4822c6c.4b863",
393         "wires": [
394             [
395                 "8e0514c2.f1c608"
396             ]
397         ]
398     },
399     {
400         "id": "5efd9802.fe2b28",
401         "type": "returnFailure",
402         "name": "return failure",
403         "xml": "<return status='failure'>\n\n",
404         "comments": "",
405         "x": 824.6667175292969,
406         "y": 397.3332748413086,
407         "z": "b4822c6c.4b863",
408         "wires": []
409     },
410     {
411         "id": "37ba4fbf.e4911",
412         "type": "service-logic",
413         "name": "Appc-API 2.0.0.1",
414         "module": "Appc-API",
415         "version": "2.0.0.1",
416         "comments": "test service logic",
417         "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.1'>",
418         "outputs": 1,
419         "x": 123.55558776855469,
420         "y": 141.55555725097656,
421         "z": "b4822c6c.4b863",
422         "wires": [
423             [
424                 "ac24dc8.2d2022"
425             ]
426         ]
427     },
428     {
429         "id": "3afe95c0.5e0aaa",
430         "type": "dgstart",
431         "name": "DGSTART",
432         "outputs": 1,
433         "x": 112.66671752929688,
434         "y": 68,
435         "z": "b4822c6c.4b863",
436         "wires": [
437             [
438                 "37ba4fbf.e4911"
439             ]
440         ]
441     },
442     {
443         "id": "e0a9dcc8.bb81a",
444         "type": "set",
445         "name": "set",
446         "xml": "<set>\n\t<parameter name='org.openecomp.appc.vftype' value='`$aai.input.data.vnf-type`' />\t\n\t<parameter name='vnf-type' value='`$aai.input.data.vnf-type`' />",
447         "comments": "",
448         "x": 628.6667175292969,
449         "y": 536.9999923706055,
450         "z": "b4822c6c.4b863",
451         "wires": []
452     },
453     {
454         "id": "bb5aec54.cbbe6",
455         "type": "block",
456         "name": "block : atomic",
457         "xml": "<block atomic='true'>",
458         "atomic": "true",
459         "comments": "",
460         "outputs": 1,
461         "x": 403.6667175292969,
462         "y": 537.9999923706055,
463         "z": "b4822c6c.4b863",
464         "wires": [
465             [
466                 "e0a9dcc8.bb81a",
467                 "7803fc.b785cc04"
468             ]
469         ]
470     },
471     {
472         "id": "8e0514c2.f1c608",
473         "type": "execute",
474         "name": "execute: flatAndAddToContext",
475         "xml": "<execute plugin='org.openecomp.appc.dg.common.JsonDgUtil' method='flatAndAddToContext' >\n<parameter name=\"payload\" value=\"`$input.payload`\" />",
476         "comments": "",
477         "outputs": 1,
478         "x": 268.3333435058594,
479         "y": 259.6666488647461,
480         "z": "b4822c6c.4b863",
481         "wires": [
482             [
483                 "89097e7c.7a1c2",
484                 "e199c03e.60f2"
485             ]
486         ]
487     },
488     {
489         "id": "89097e7c.7a1c2",
490         "type": "success",
491         "name": "success",
492         "xml": "<outcome value='success'>\n",
493         "comments": "",
494         "outputs": 1,
495         "x": 281,
496         "y": 303.6666488647461,
497         "z": "b4822c6c.4b863",
498         "wires": [
499             [
500                 "538c4326.ceed4c"
501             ]
502         ]
503     },
504     {
505         "id": "e199c03e.60f2",
506         "type": "failure",
507         "name": "failure",
508         "xml": "<outcome value='failure'>\n",
509         "comments": "",
510         "outputs": 1,
511         "x": 508,
512         "y": 160.66666412353516,
513         "z": "b4822c6c.4b863",
514         "wires": [
515             []
516         ]
517     },
518     {
519         "id": "2c1a225a.7bc46e",
520         "type": "execute",
521         "name": "Report_Success_in_ModifyConfig",
522         "xml": "<execute plugin='org.openecomp.appc.dg.common.DCAEReporterPlugin' method='reportSuccess' >\n<parameter name=\"eventId\" value=\"`$input.action-identifiers.vnf-id`\" />\n<parameter name=\"output.status.message\" value=\"ModifyConfig event executed successfully\" />",
523         "comments": "",
524         "outputs": 1,
525         "x": 803.9999389648438,
526         "y": 873.6667098999023,
527         "z": "b4822c6c.4b863",
528         "wires": [
529             [
530                 "2ac625be.770a7a",
531                 "88f7850e.5ad108"
532             ]
533         ]
534     },
535     {
536         "id": "2ac625be.770a7a",
537         "type": "success",
538         "name": "success",
539         "xml": "<outcome value='success'>\n",
540         "comments": "",
541         "outputs": 1,
542         "x": 742,
543         "y": 922.6667098999023,
544         "z": "b4822c6c.4b863",
545         "wires": [
546             [
547                 "8c61f324.ae24"
548             ]
549         ]
550     },
551     {
552         "id": "88f7850e.5ad108",
553         "type": "failure",
554         "name": "failure",
555         "xml": "<outcome value='failure'>\n",
556         "comments": "",
557         "outputs": 1,
558         "x": 1065,
559         "y": 889.6667098999023,
560         "z": "b4822c6c.4b863",
561         "wires": [
562             [
563                 "e305119d.ed993"
564             ]
565         ]
566     },
567     {
568         "id": "354c4873.8508a8",
569         "type": "success",
570         "name": "success",
571         "xml": "<outcome value='success'>\n",
572         "comments": "",
573         "outputs": 1,
574         "x": 1544,
575         "y": 631,
576         "z": "b4822c6c.4b863",
577         "wires": [
578             [
579                 "1a23a9aa.d63826"
580             ]
581         ]
582     }
583 ]