d232fbbb0057d765802f1c2291888512625b5fa4
[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     "id": "9fdda929.817f18",
23     "type": "execute",
24     "name": "execute: flatAndAddToContext",
25     "xml": "<execute plugin='org.openecomp.appc.dg.common.JsonDgUtil' method='flatAndAddToContext' >\n<parameter name=\"payload\" value=\"`$input.payload`\" />",
26     "comments": "",
27     "outputs": 1,
28     "x": 335.75,
29     "y": 198,
30     "z": "d59c8e6f.e6d1",
31     "wires": [["d2011202.234fc",
32         "f4646626.6d10f8"]]
33 },
34     {
35         "id": "4b5f0d0b.654314",
36         "type": "dgstart",
37         "name": "DGSTART",
38         "outputs": 1,
39         "x": 93.75,
40         "y": 49,
41         "z": "d59c8e6f.e6d1",
42         "wires": [["e8f79554.affab8"]]
43     },
44     {
45         "id": "e8f79554.affab8",
46         "type": "service-logic",
47         "name": "Appc-API 2.0.0.0",
48         "module": "Appc-API",
49         "version": "2.0.0.0",
50         "comments": "",
51         "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'>",
52         "outputs": 1,
53         "x": 192.75,
54         "y": 98,
55         "z": "d59c8e6f.e6d1",
56         "wires": [["32140628.22792a"]]
57     },
58     {
59         "id": "32140628.22792a",
60         "type": "method",
61         "name": "VSCP_HealthCheck",
62         "xml": "<method rpc='VSCP_HealthCheck' mode='sync'>\n",
63         "comments": "",
64         "outputs": 1,
65         "x": 269.75,
66         "y": 146,
67         "z": "d59c8e6f.e6d1",
68         "wires": [["9fdda929.817f18"]]
69     },
70     {
71         "id": "581fe014.8acd7",
72         "type": "returnFailure",
73         "name": "return failure",
74         "xml": "<return status='failure'>\n<parameter name='error-code' value='401' />\n<parameter name='error-message' value='`$error-message`' />\n<parameter name='output.status.code' value='401'/>\n",
75         "comments": "",
76         "x": 1841.5189590454102,
77         "y": 328.46160793304443,
78         "z": "d59c8e6f.e6d1",
79         "wires": []
80     },
81     {
82         "id": "af383d0c.3970d",
83         "type": "returnSuccess",
84         "name": "return success",
85         "xml": "<return status='success'>\n<parameter name='error-code' value='400' />\n",
86         "comments": "",
87         "x": 1262.7498168945312,
88         "y": 586.0000305175781,
89         "z": "d59c8e6f.e6d1",
90         "wires": []
91     },
92     {
93         "id": "3ccf5e6c.e15652",
94         "type": "execute",
95         "name": "execute: handleErrorToDCAE",
96         "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=\"`$error-message`\"/>\n",
97         "comments": "",
98         "outputs": 1,
99         "x": 1499.2882461547852,
100         "y": 327.61541652679443,
101         "z": "d59c8e6f.e6d1",
102         "wires": [["de153cb7.0f1db"]]
103     },
104     {
105         "id": "fb5b14.140314f",
106         "type": "execute",
107         "name": "execute: retrieveConnectionDetails",
108         "xml": "<execute plugin='org.openecomp.appc.dg.ssh.SshDBPlugin' method='retrieveConnectionDetails' >\n<parameter name=\"vnf-host-ip-address\" value=\"`$vnf-host-ip-address`\" />\n<parameter name='vnf-type' value=\"`$aai.input.data.vnf-type`\" />\n",
109         "comments": "",
110         "outputs": 1,
111         "x": 857.7498779296875,
112         "y": 427.0000305175781,
113         "z": "d59c8e6f.e6d1",
114         "wires": [["94a1a9e3.305a48",
115             "cb8b27ea.275788"]]
116     },
117     {
118         "id": "cb8b27ea.275788",
119         "type": "other",
120         "name": "other",
121         "xml": "<outcome value='Other'>\n",
122         "comments": "",
123         "outputs": 1,
124         "x": 1097.7498474121094,
125         "y": 427.0000305175781,
126         "z": "d59c8e6f.e6d1",
127         "wires": [["f82f2d66.fbc2d"]]
128     },
129     {
130         "id": "725be398.327c2c",
131         "type": "set",
132         "name": "set",
133         "xml": "<set>\n<parameter name='error-message' value='Failed to retrieve SSH credentials' />\n",
134         "comments": "",
135         "x": 1427.7497940063477,
136         "y": 242.00006008148193,
137         "z": "d59c8e6f.e6d1",
138         "wires": []
139     },
140     {
141         "id": "94a1a9e3.305a48",
142         "type": "success",
143         "name": "success",
144         "xml": "<outcome value='success'>\n",
145         "comments": "",
146         "outputs": 1,
147         "x": 1105.7498168945312,
148         "y": 471.0000305175781,
149         "z": "d59c8e6f.e6d1",
150         "wires": [["bcfe699a.fbac68"]]
151     },
152     {
153         "id": "7e68246c.ade0ec",
154         "type": "other",
155         "name": "other",
156         "xml": "<outcome value='Other'>\n",
157         "comments": "",
158         "outputs": 1,
159         "x": 1100.7498168945312,
160         "y": 542.0000305175781,
161         "z": "d59c8e6f.e6d1",
162         "wires": [["cdb71eae.de0b6"]]
163     },
164     {
165         "id": "1fb23591.978aca",
166         "type": "success",
167         "name": "success",
168         "xml": "<outcome value='success'>\n",
169         "comments": "",
170         "outputs": 1,
171         "x": 1101.7498168945312,
172         "y": 587.0000305175781,
173         "z": "d59c8e6f.e6d1",
174         "wires": [["af383d0c.3970d"]]
175     },
176     {
177         "id": "93204e17.d82ec",
178         "type": "set",
179         "name": "set",
180         "xml": "<set>\n<parameter name='error-message' value='SSH command execution failure' />\n",
181         "comments": "",
182         "x": 1427.4420547485352,
183         "y": 284.0001211166382,
184         "z": "d59c8e6f.e6d1",
185         "wires": []
186     },
187     {
188         "id": "bcfe699a.fbac68",
189         "type": "execute",
190         "name": "executeTest",
191         "xml": "<execute plugin='com.att.appc.dg.vSCP.v3_5_5.VSCPDGUtils' method='executeTest'>\n<parameter name=\"connection-details\" value=\"`$connection-details`\" />",
192         "comments": "",
193         "outputs": 1,
194         "x": 940.7498474121094,
195         "y": 543.0000305175781,
196         "z": "d59c8e6f.e6d1",
197         "wires": [["7e68246c.ade0ec",
198             "1fb23591.978aca"]]
199     },
200     {
201         "id": "f82f2d66.fbc2d",
202         "type": "block",
203         "name": "block",
204         "xml": "<block>\n",
205         "atomic": "false",
206         "comments": "",
207         "outputs": 1,
208         "x": 1233.9805603027344,
209         "y": 425.8462219238281,
210         "z": "d59c8e6f.e6d1",
211         "wires": [["725be398.327c2c",
212             "3ccf5e6c.e15652"]]
213     },
214     {
215         "id": "cdb71eae.de0b6",
216         "type": "block",
217         "name": "block",
218         "xml": "<block>\n",
219         "atomic": "false",
220         "comments": "",
221         "outputs": 1,
222         "x": 1229.2882080078125,
223         "y": 542.615478515625,
224         "z": "d59c8e6f.e6d1",
225         "wires": [["93204e17.d82ec",
226             "3ccf5e6c.e15652"]]
227     },
228     {
229         "id": "d2011202.234fc",
230         "type": "success",
231         "name": "success",
232         "xml": "<outcome value='success'>\n",
233         "comments": "",
234         "outputs": 1,
235         "x": 566.7498779296875,
236         "y": 217,
237         "z": "d59c8e6f.e6d1",
238         "wires": [["32c2c94.c91df36"]]
239     },
240     {
241         "id": "f4646626.6d10f8",
242         "type": "other",
243         "name": "other",
244         "xml": "<outcome value='Other'>\n",
245         "comments": "",
246         "outputs": 1,
247         "x": 561.7498779296875,
248         "y": 171,
249         "z": "d59c8e6f.e6d1",
250         "wires": [["3ccf5e6c.e15652"]]
251     },
252     {
253         "id": "d8b9aa6d.465a98",
254         "type": "success",
255         "name": "success",
256         "xml": "<outcome value='success'>\n",
257         "comments": "",
258         "outputs": 1,
259         "x": 758.083251953125,
260         "y": 343.66668701171875,
261         "z": "d59c8e6f.e6d1",
262         "wires": [["fb5b14.140314f"]]
263     },
264     {
265         "id": "a3588880.9675d8",
266         "type": "other",
267         "name": "other",
268         "xml": "<outcome value='Other'>\n",
269         "comments": "",
270         "outputs": 1,
271         "x": 747.083251953125,
272         "y": 298.6667175292969,
273         "z": "d59c8e6f.e6d1",
274         "wires": [["3ccf5e6c.e15652"]]
275     },
276     {
277         "id": "32c2c94.c91df36",
278         "type": "block",
279         "name": "block : atomic",
280         "xml": "<block atomic='true'>",
281         "atomic": "true",
282         "comments": "",
283         "outputs": 1,
284         "x": 313.0832824707031,
285         "y": 264.666748046875,
286         "z": "d59c8e6f.e6d1",
287         "wires": [["643ff002.2addb",
288             "ec1d66f4.142a18"]]
289     },
290     {
291         "id": "643ff002.2addb",
292         "type": "set",
293         "name": "set",
294         "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",
295         "comments": "",
296         "x": 495.083251953125,
297         "y": 273.666748046875,
298         "z": "d59c8e6f.e6d1",
299         "wires": []
300     },
301     {
302         "id": "ec1d66f4.142a18",
303         "type": "execute",
304         "name": "execute: getVNFData",
305         "xml": "<execute plugin='org.openecomp.appc.dg.aai.AAIPlugin' method='getGenericVnfData' >",
306         "comments": "",
307         "outputs": 1,
308         "x": 534.0831298828125,
309         "y": 327.6667785644531,
310         "z": "d59c8e6f.e6d1",
311         "wires": [["a3588880.9675d8",
312             "d8b9aa6d.465a98"]]
313     },
314     {
315         "id": "de153cb7.0f1db",
316         "type": "success",
317         "name": "success",
318         "xml": "<outcome value='success'>\n",
319         "comments": "",
320         "outputs": 1,
321         "x": 1698.7500381469727,
322         "y": 328.9999990463257,
323         "z": "d59c8e6f.e6d1",
324         "wires": [["581fe014.8acd7"]]
325     }]