bd1ff697e83a6f89f1d1b57dcc1ec6a464c28d2d
[appc.git] / appc-directed-graph / appc-dgraph / provider / src / main / resources / json / APPC / APPC_DownloadCliConfig.json
1 [\r
2     {\r
3         "id": "cc3f1f05.590e2",\r
4         "type": "dgstart",\r
5         "name": "DGSTART",\r
6         "outputs": 1,\r
7         "x": 262,\r
8         "y": 117,\r
9         "z": "8f971cf0.9ab5c",\r
10         "wires": [\r
11             [\r
12                 "9c5ed558.935128"\r
13             ]\r
14         ]\r
15     },\r
16     {\r
17         "id": "9c5ed558.935128",\r
18         "type": "service-logic",\r
19         "name": "APPC 4.0.0",\r
20         "module": "APPC",\r
21         "version": "3.1.0",\r
22         "comments": "",\r
23         "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='4.0.0'>",\r
24         "outputs": 1,\r
25         "x": 475,\r
26         "y": 114,\r
27         "z": "8f971cf0.9ab5c",\r
28         "wires": [\r
29             [\r
30                 "3cae3899.2ea4d8"\r
31             ]\r
32         ]\r
33     },\r
34     {\r
35         "id": "3cae3899.2ea4d8",\r
36         "type": "method",\r
37         "name": "method DownloadCLIConfig",\r
38         "xml": "<method rpc='DownloadCliConfig' mode='sync'>\n",\r
39         "comments": "",\r
40         "outputs": 1,\r
41         "x": 703,\r
42         "y": 114,\r
43         "z": "8f971cf0.9ab5c",\r
44         "wires": [\r
45             [\r
46                 "b932981.f2fe068"\r
47             ]\r
48         ]\r
49     },\r
50     {\r
51         "id": "838fcb2d.61bce8",\r
52         "type": "execute",\r
53         "name": "execute : Download Configuration",\r
54         "xml": "<configure adaptor='org.onap.appc.ccadaptor.ConfigComponentAdaptor' key='DownloadCliConfig'>\n<parameter name=\"Download_config_template\" value=\"`$download-config-template.TEMPLATE`\"/>\n<parameter name=\"Config_contents\" value=\"`$device-config`\"/>\n<parameter name=\"Host_ip_address\" value=\"`$host-ip-address`\" />\n<parameter name=\"User_name\" value=\"`$device-login`\" />\n<parameter name=\"Password\" value=\"`$device-password`\" />\n<parameter name=\"Port_number\" value=\"`$port-number`\" />\n\n\n",\r
55         "comments": "",\r
56         "outputs": 1,\r
57         "x": 411,\r
58         "y": 456,\r
59         "z": "8f971cf0.9ab5c",\r
60         "wires": [\r
61             [\r
62                 "d050e0d2.b2267",\r
63                 "84bb3919.ad5688",\r
64                 "4cbf4207.52ffdc"\r
65             ]\r
66         ]\r
67     },\r
68     {\r
69         "id": "d050e0d2.b2267",\r
70         "type": "success",\r
71         "name": "success",\r
72         "xml": "<outcome value='success'>\n",\r
73         "comments": "",\r
74         "outputs": 1,\r
75         "x": 697,\r
76         "y": 611,\r
77         "z": "8f971cf0.9ab5c",\r
78         "wires": [\r
79             [\r
80                 "2181b8c9.4f5038"\r
81             ]\r
82         ]\r
83     },\r
84     {\r
85         "id": "b932981.f2fe068",\r
86         "type": "block",\r
87         "name": "block",\r
88         "xml": "<block>\n",\r
89         "atomic": "false",\r
90         "comments": "",\r
91         "outputs": 1,\r
92         "x": 178,\r
93         "y": 270,\r
94         "z": "8f971cf0.9ab5c",\r
95         "wires": [\r
96             [\r
97                 "1ec47089.0e6d1f"\r
98             ]\r
99         ]\r
100     },\r
101     {\r
102         "id": "2181b8c9.4f5038",\r
103         "type": "returnSuccess",\r
104         "name": "return success",\r
105         "xml": "<return status='success'>\n<!-- Dont over write error code and message -->\n",\r
106         "comments": "",\r
107         "x": 905,\r
108         "y": 610,\r
109         "z": "8f971cf0.9ab5c",\r
110         "wires": []\r
111     },\r
112     {\r
113         "id": "84bb3919.ad5688",\r
114         "type": "failure",\r
115         "name": "failure",\r
116         "xml": "<outcome value='failure'>\n",\r
117         "comments": "",\r
118         "outputs": 1,\r
119         "x": 791,\r
120         "y": 406,\r
121         "z": "8f971cf0.9ab5c",\r
122         "wires": [\r
123             [\r
124                 "d912ec9e.456d4"\r
125             ]\r
126         ]\r
127     },\r
128     {\r
129         "id": "4cbf4207.52ffdc",\r
130         "type": "other",\r
131         "name": "other",\r
132         "xml": "<outcome value='Other'>\n",\r
133         "comments": "",\r
134         "outputs": 1,\r
135         "x": 776,\r
136         "y": 513,\r
137         "z": "8f971cf0.9ab5c",\r
138         "wires": [\r
139             [\r
140                 "d29269ef.626db8"\r
141             ]\r
142         ]\r
143     },\r
144     {\r
145         "id": "d29269ef.626db8",\r
146         "type": "block",\r
147         "name": "block",\r
148         "xml": "<block>\n",\r
149         "atomic": "false",\r
150         "comments": "",\r
151         "outputs": 1,\r
152         "x": 957,\r
153         "y": 471,\r
154         "z": "8f971cf0.9ab5c",\r
155         "wires": [\r
156             [\r
157                 "cae99c12.7fa8f"\r
158             ]\r
159         ]\r
160     },\r
161     {\r
162         "id": "d912ec9e.456d4",\r
163         "type": "block",\r
164         "name": "block",\r
165         "xml": "<block>\n",\r
166         "atomic": "false",\r
167         "comments": "",\r
168         "outputs": 1,\r
169         "x": 949,\r
170         "y": 402,\r
171         "z": "8f971cf0.9ab5c",\r
172         "wires": [\r
173             [\r
174                 "8c7e5c1f.d6d09"\r
175             ]\r
176         ]\r
177     },\r
178     {\r
179         "id": "8c7e5c1f.d6d09",\r
180         "type": "returnFailure",\r
181         "name": "return failure",\r
182         "xml": "<return status=\"failure\">\n<parameter name=\"error-code\" value=\"401\" />\n",\r
183         "comments": "",\r
184         "x": 1108,\r
185         "y": 402,\r
186         "z": "8f971cf0.9ab5c",\r
187         "wires": []\r
188     },\r
189     {\r
190         "id": "cae99c12.7fa8f",\r
191         "type": "returnFailure",\r
192         "name": "return failure",\r
193         "xml": "<return status=\"failure\">\n<parameter name=\"error-message\" value=\"Unable to Download CLI Config to Device\" />\n<parameter name=\"error-code\" value=\"401\" />\n",\r
194         "comments": "",\r
195         "x": 1116,\r
196         "y": 471,\r
197         "z": "8f971cf0.9ab5c",\r
198         "wires": []\r
199     },\r
200     {\r
201         "id": "af8106d6.2c54e8",\r
202         "type": "returnFailure",\r
203         "name": "return failure",\r
204         "xml": "<return status=\"failure\">\n<parameter name=\"error-message\" value=\"Unable to get download config template\" />\n<parameter name=\"error-code\" value=\"401\" />\n",\r
205         "comments": "",\r
206         "x": 1225,\r
207         "y": 277,\r
208         "z": "8f971cf0.9ab5c",\r
209         "wires": []\r
210     },\r
211     {\r
212         "id": "1ec47089.0e6d1f",\r
213         "type": "get-resource",\r
214         "name": "get-resource DOWNLOAD_CONFIG_TEMPLATE",\r
215         "xml": "<get-resource\n\tplugin='org.onap.ccsdk.sli.adaptors.resource.sql.SqlResource' \n\tresource='SQL'\n\tkey=\"SELECT TEMPLATE FROM DOWNLOAD_CONFIG_TEMPLATE WHERE vnf_type = $vnf-type ;\"\n    force='true'\n\tpfx='download-config-template'>\n",\r
216         "comments": "",\r
217         "outputs": 1,\r
218         "x": 485,\r
219         "y": 267,\r
220         "z": "8f971cf0.9ab5c",\r
221         "wires": [\r
222             [\r
223                 "fe1132ad.5731b",\r
224                 "9280f34d.3465f",\r
225                 "54bd663f.2cab28"\r
226             ]\r
227         ]\r
228     },\r
229     {\r
230         "id": "9280f34d.3465f",\r
231         "type": "not-found",\r
232         "name": "not-found",\r
233         "xml": "<outcome value='not-found'>\n",\r
234         "comments": "",\r
235         "outputs": 1,\r
236         "x": 831,\r
237         "y": 254,\r
238         "z": "8f971cf0.9ab5c",\r
239         "wires": [\r
240             [\r
241                 "75516ff4.5cb1"\r
242             ]\r
243         ]\r
244     },\r
245     {\r
246         "id": "fe1132ad.5731b",\r
247         "type": "failure",\r
248         "name": "failure",\r
249         "xml": "<outcome value='failure'>\n",\r
250         "comments": "",\r
251         "outputs": 1,\r
252         "x": 833,\r
253         "y": 323,\r
254         "z": "8f971cf0.9ab5c",\r
255         "wires": [\r
256             [\r
257                 "75516ff4.5cb1"\r
258             ]\r
259         ]\r
260     },\r
261     {\r
262         "id": "75516ff4.5cb1",\r
263         "type": "block",\r
264         "name": "block",\r
265         "xml": "<block atomic=\"true\">\n",\r
266         "atomic": "false",\r
267         "comments": "",\r
268         "outputs": 1,\r
269         "x": 1027,\r
270         "y": 278,\r
271         "z": "8f971cf0.9ab5c",\r
272         "wires": [\r
273             [\r
274                 "af8106d6.2c54e8"\r
275             ]\r
276         ]\r
277     },\r
278     {\r
279         "id": "54bd663f.2cab28",\r
280         "type": "success",\r
281         "name": "success",\r
282         "xml": "<outcome value='success'>\n",\r
283         "comments": "",\r
284         "outputs": 1,\r
285         "x": 422,\r
286         "y": 350,\r
287         "z": "8f971cf0.9ab5c",\r
288         "wires": [\r
289             [\r
290                 "46aaf503.56738c"\r
291             ]\r
292         ]\r
293     },\r
294     {\r
295         "id": "46aaf503.56738c",\r
296         "type": "block",\r
297         "name": "block",\r
298         "xml": "<block atomic=\"true\">\n",\r
299         "atomic": "false",\r
300         "comments": "",\r
301         "outputs": 1,\r
302         "x": 615,\r
303         "y": 349,\r
304         "z": "8f971cf0.9ab5c",\r
305         "wires": [\r
306             [\r
307                 "838fcb2d.61bce8"\r
308             ]\r
309         ]\r
310     }\r
311 ]\r