987e38febb987cd5a41f4d97ff9bb2e156b97324
[appc.git] / appc-directed-graph / appc-dgraph / provider / src / main / resources / json / Dispatcher-DG / Appc-API_method_VSBG_ModifyConfig_2.0.0.0.json
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": "4656b037.e2db1",
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": 429,
30         "y": 501.0000457763672,
31         "z": "8772abb6.d7dd88",
32         "wires": [
33             [
34                 "7c94ad7f.ddeef4",
35                 "d18a7ed4.46878"
36             ]
37         ]
38     },
39     {
40         "id": "7c94ad7f.ddeef4",
41         "type": "success",
42         "name": "success",
43         "xml": "<outcome value='success'>\n",
44         "comments": "",
45         "outputs": 1,
46         "x": 661.666748046875,
47         "y": 559.2222442626953,
48         "z": "8772abb6.d7dd88",
49         "wires": [
50             [
51                 "e4f5112d.b940f"
52             ]
53         ]
54     },
55     {
56         "id": "d18a7ed4.46878",
57         "type": "other",
58         "name": "other",
59         "xml": "<outcome value='Other'>\n",
60         "comments": "",
61         "outputs": 1,
62         "x": 658.7777709960938,
63         "y": 523.7778167724609,
64         "z": "8772abb6.d7dd88",
65         "wires": [
66             [
67                 "730fdfb2.bc4ac"
68             ]
69         ]
70     },
71     {
72         "id": "e4f5112d.b940f",
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": 663.4444580078125,
79         "y": 623.2222137451172,
80         "z": "8772abb6.d7dd88",
81         "wires": [
82             [
83                 "35201542.06c74a",
84                 "a9f06492.7b18f8"
85             ]
86         ]
87     },
88     {
89         "id": "35201542.06c74a",
90         "type": "other",
91         "name": "other",
92         "xml": "<outcome value='Other'>\n",
93         "comments": "",
94         "outputs": 1,
95         "x": 893,
96         "y": 588.4444732666016,
97         "z": "8772abb6.d7dd88",
98         "wires": [
99             [
100                 "730fdfb2.bc4ac"
101             ]
102         ]
103     },
104     {
105         "id": "a9f06492.7b18f8",
106         "type": "success",
107         "name": "success",
108         "xml": "<outcome value='success'>\n",
109         "comments": "",
110         "outputs": 1,
111         "x": 889.33349609375,
112         "y": 635.2222137451172,
113         "z": "8772abb6.d7dd88",
114         "wires": [
115             [
116                 "a1def214.72c9f"
117             ]
118         ]
119     },
120     {
121         "id": "a1def214.72c9f",
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": 756.1112060546875,
128         "y": 717.5554962158203,
129         "z": "8772abb6.d7dd88",
130         "wires": [
131             [
132                 "dabc9fbe.f4a4c",
133                 "2f7de431.9dcc5c"
134             ]
135         ]
136     },
137     {
138         "id": "dabc9fbe.f4a4c",
139         "type": "other",
140         "name": "other",
141         "xml": "<outcome value='Other'>\n",
142         "comments": "",
143         "outputs": 1,
144         "x": 974,
145         "y": 697.8889312744141,
146         "z": "8772abb6.d7dd88",
147         "wires": [
148             [
149                 "730fdfb2.bc4ac"
150             ]
151         ]
152     },
153     {
154         "id": "2f7de431.9dcc5c",
155         "type": "success",
156         "name": "success",
157         "xml": "<outcome value='success'>\n",
158         "comments": "",
159         "outputs": 1,
160         "x": 978.2222900390625,
161         "y": 741.7777862548828,
162         "z": "8772abb6.d7dd88",
163         "wires": [
164             [
165                 "abf49643.479788"
166             ]
167         ]
168     },
169     {
170         "id": "69e22825.1a9578",
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": 883.333251953125,
177         "y": 937.9999542236328,
178         "z": "8772abb6.d7dd88",
179         "wires": [
180             [
181                 "b5f96af2.6d5348",
182                 "15423273.a5c17e"
183             ]
184         ]
185     },
186     {
187         "id": "b5f96af2.6d5348",
188         "type": "other",
189         "name": "other",
190         "xml": "<outcome value='Other'>\n",
191         "comments": "",
192         "outputs": 1,
193         "x": 1092.4444580078125,
194         "y": 913.7777862548828,
195         "z": "8772abb6.d7dd88",
196         "wires": [
197             [
198                 "730fdfb2.bc4ac"
199             ]
200         ]
201     },
202     {
203         "id": "15423273.a5c17e",
204         "type": "success",
205         "name": "success",
206         "xml": "<outcome value='success'>\n",
207         "comments": "",
208         "outputs": 1,
209         "x": 1097.0001220703125,
210         "y": 958.3333282470703,
211         "z": "8772abb6.d7dd88",
212         "wires": [
213             [
214                 "ac445d75.b35fd"
215             ]
216         ]
217     },
218     {
219         "id": "ac445d75.b35fd",
220         "type": "returnSuccess",
221         "name": "return success",
222         "xml": "<return status='success'>\n \t<parameter name='error-code' value='200' />",
223         "comments": "",
224         "x": 1391.5557556152344,
225         "y": 957.4445037841797,
226         "z": "8772abb6.d7dd88",
227         "wires": []
228     },
229     {
230         "id": "730fdfb2.bc4ac",
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": 1273.2223815917969,
237         "y": 530.3333740234375,
238         "z": "8772abb6.d7dd88",
239         "wires": [
240             [
241                 "9a42aa6d.290838"
242             ]
243         ]
244     },
245     {
246         "id": "abf49643.479788",
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": 761.6666870117188,
253         "y": 807.0000839233398,
254         "z": "8772abb6.d7dd88",
255         "wires": [
256             [
257                 "746900e1.b7f5e",
258                 "b0dd5eed.14649"
259             ]
260         ]
261     },
262     {
263         "id": "b0dd5eed.14649",
264         "type": "other",
265         "name": "other",
266         "xml": "<outcome value='Other'>\n",
267         "comments": "",
268         "outputs": 1,
269         "x": 992.4444580078125,
270         "y": 842.7778549194336,
271         "z": "8772abb6.d7dd88",
272         "wires": [
273             [
274                 "730fdfb2.bc4ac"
275             ]
276         ]
277     },
278     {
279         "id": "746900e1.b7f5e",
280         "type": "success",
281         "name": "success",
282         "xml": "<outcome value='success'>\n",
283         "comments": "",
284         "outputs": 1,
285         "x": 989.3334350585938,
286         "y": 880.2222518920898,
287         "z": "8772abb6.d7dd88",
288         "wires": [
289             [
290                 "69e22825.1a9578"
291             ]
292         ]
293     },
294     {
295         "id": "a8a21041.bd0a1",
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": 1623.8096923828125,
301         "y": 531.857177734375,
302         "z": "8772abb6.d7dd88",
303         "wires": []
304     },
305     {
306         "id": "91583cc2.3251b",
307         "type": "success",
308         "name": "success",
309         "xml": "<outcome value='success'>\n",
310         "comments": "",
311         "outputs": 1,
312         "x": 271.6667175292969,
313         "y": 366.9999694824219,
314         "z": "8772abb6.d7dd88",
315         "wires": [
316             [
317                 "3fbc31b8.20cc9e"
318             ]
319         ]
320     },
321     {
322         "id": "3724e729.81d9f8",
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": 287.6665954589844,
329         "y": 303.00006103515625,
330         "z": "8772abb6.d7dd88",
331         "wires": [
332             [
333                 "91583cc2.3251b",
334                 "a831e33d.80111"
335             ]
336         ]
337     },
338     {
339         "id": "7beb016e.80f5c",
340         "type": "block",
341         "name": "block : atomic",
342         "xml": "<block atomic='true'>",
343         "atomic": "true",
344         "comments": "",
345         "outputs": 1,
346         "x": 220.66671752929688,
347         "y": 242.00003051757812,
348         "z": "8772abb6.d7dd88",
349         "wires": [
350             [
351                 "3724e729.81d9f8",
352                 "a9055b0c.089ba8"
353             ]
354         ]
355     },
356     {
357         "id": "a831e33d.80111",
358         "type": "failure",
359         "name": "failure",
360         "xml": "<outcome value='failure'>\n",
361         "comments": "",
362         "outputs": 1,
363         "x": 602.6667175292969,
364         "y": 296.3332824707031,
365         "z": "8772abb6.d7dd88",
366         "wires": [
367             [
368                 "48500897.5057c8"
369             ]
370         ]
371     },
372     {
373         "id": "a9055b0c.089ba8",
374         "type": "set",
375         "name": "set",
376         "xml": "<set>\n\t<parameter name='aai.vnfID' value='`$org.openecomp.appc.vfid`' />\n\t<parameter name='aai.prefix' value='aai.input.data' />\t",
377         "comments": "",
378         "x": 445.6667175292969,
379         "y": 179.00003051757812,
380         "z": "8772abb6.d7dd88",
381         "wires": []
382     },
383     {
384         "id": "bbd9ee82.bfb84",
385         "type": "method",
386         "name": "vSBG ModifyConfig",
387         "xml": "<method rpc='VSBG_ModifyConfig' mode='sync'>\n",
388         "comments": "",
389         "outputs": 1,
390         "x": 178.5555877685547,
391         "y": 177.77777099609375,
392         "z": "8772abb6.d7dd88",
393         "wires": [
394             [
395                 "7beb016e.80f5c"
396             ]
397         ]
398     },
399     {
400         "id": "48500897.5057c8",
401         "type": "returnFailure",
402         "name": "return failure",
403         "xml": "<return status='failure'>\n\n",
404         "comments": "",
405         "x": 757.6667175292969,
406         "y": 296.3332824707031,
407         "z": "8772abb6.d7dd88",
408         "wires": []
409     },
410     {
411         "id": "92c5ec09.df24c",
412         "type": "service-logic",
413         "name": "Appc-API 2.0.0.0",
414         "module": "Appc-API",
415         "version": "2.0.0.0",
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.0'>",
418         "outputs": 1,
419         "x": 119.55558776855469,
420         "y": 133.55555725097656,
421         "z": "8772abb6.d7dd88",
422         "wires": [
423             [
424                 "bbd9ee82.bfb84"
425             ]
426         ]
427     },
428     {
429         "id": "53ba362a.aa5b48",
430         "type": "dgstart",
431         "name": "DGSTART",
432         "outputs": 1,
433         "x": 108.66671752929688,
434         "y": 60,
435         "z": "8772abb6.d7dd88",
436         "wires": [
437             [
438                 "92c5ec09.df24c"
439             ]
440         ]
441     },
442     {
443         "id": "6f262e5b.8106d",
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": 561.6667175292969,
449         "y": 436,
450         "z": "8772abb6.d7dd88",
451         "wires": []
452     },
453     {
454         "id": "3fbc31b8.20cc9e",
455         "type": "block",
456         "name": "block : atomic",
457         "xml": "<block atomic='true'>",
458         "atomic": "true",
459         "comments": "",
460         "outputs": 1,
461         "x": 336.6667175292969,
462         "y": 437,
463         "z": "8772abb6.d7dd88",
464         "wires": [
465             [
466                 "6f262e5b.8106d",
467                 "4656b037.e2db1"
468             ]
469         ]
470     },
471     {
472         "id": "9a42aa6d.290838",
473         "type": "success",
474         "name": "success",
475         "xml": "<outcome value='success'>\n",
476         "comments": "",
477         "outputs": 1,
478         "x": 1475,
479         "y": 532,
480         "z": "8772abb6.d7dd88",
481         "wires": [
482             [
483                 "a8a21041.bd0a1"
484             ]
485         ]
486     }
487 ]