GetTemplateConfigAnsible DG Bug
[appc.git] / appc-directed-graph / appc-dgraph / provider / src / main / resources / json / APPC / APPC_GetTemplateConfig_Ansible.json
1 [
2   {
3     "id": "64298fa7.6eab",
4     "type": "method",
5     "name": "method GetTemplateConfig_Ansible",
6     "xml": "<method rpc='GetTemplateConfig_Ansible' mode='sync'>\n",
7     "comments": "",
8     "outputs": 1,
9     "x": 524.6905136108398,
10     "y": 54.78571152687073,
11     "z": "c635d405.112438",
12     "wires": [
13       [
14         "a16f990d.bfbc08"
15       ]
16     ]
17   },
18   {
19     "id": "3d83a335.a950bc",
20     "type": "dgstart",
21     "name": "DGSTART",
22     "outputs": 1,
23     "x": 107.28571319580078,
24     "y": 79.57142734527588,
25     "z": "c635d405.112438",
26     "wires": [
27       [
28         "9a8e0176.09715"
29       ]
30     ]
31   },
32   {
33     "id": "9a8e0176.09715",
34     "type": "service-logic",
35     "name": "APPC 4.0.0",
36     "module": "APPC",
37     "version": "4.0.0",
38     "comments": "",
39     "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'>",
40     "outputs": 1,
41     "x": 261.1428680419922,
42     "y": 51.428571939468384,
43     "z": "c635d405.112438",
44     "wires": [
45       [
46         "64298fa7.6eab"
47       ]
48     ]
49   },
50   {
51     "id": "831c9f31.a8932",
52     "type": "execute",
53     "name": "execute getTemplate",
54     "xml": "<execute plugin=\"org.onap.appc.data.services.node.ConfigResourceNode\" method=\"getTemplate\">\n<parameter name=\"fileCategory\" value=\"config_template\" />\n<parameter name=\"responsePrefix\" value=\"config-template\" />",
55     "comments": "",
56     "outputs": 1,
57     "x": 355.64298248291016,
58     "y": 266.821546792984,
59     "z": "c635d405.112438",
60     "wires": [
61       [
62         "a0e75486.1eda18",
63         "17e6919.76d9a6e",
64         "3a927737.d59708"
65       ]
66     ]
67   },
68   {
69     "id": "a16f990d.bfbc08",
70     "type": "block",
71     "name": "block : atomic",
72     "xml": "<block atomic=\"true\">",
73     "atomic": "true",
74     "comments": "",
75     "outputs": 1,
76     "x": 92.14287948608398,
77     "y": 289.78575253486633,
78     "z": "c635d405.112438",
79     "wires": [
80       [
81         "831c9f31.a8932",
82         "23f2fdd7.5ac712",
83         "25358328.a7b87c"
84       ]
85     ]
86   },
87   {
88     "id": "708b7296.ea5c5c",
89     "type": "not-found",
90     "name": "found",
91     "xml": "<outcome value='found'>\n",
92     "comments": "",
93     "outputs": 1,
94     "x": 1081.5715522766113,
95     "y": 395.75001072883606,
96     "z": "c635d405.112438",
97     "wires": [
98       [
99         "aa984fc9.ceff4"
100       ]
101     ]
102   },
103   {
104     "id": "996ddcaa.b670e",
105     "type": "other",
106     "name": "not-found",
107     "xml": "<outcome value='not-found'>\n",
108     "comments": "",
109     "outputs": 1,
110     "x": 1085.6787338256836,
111     "y": 464.50003838539124,
112     "z": "c635d405.112438",
113     "wires": [
114       [
115         "5ebec77e.195338"
116       ]
117     ]
118   },
119   {
120     "id": "39b0035c.ce94cc",
121     "type": "call",
122     "name": "call  Generic_AnsibleDG",
123     "xml": "<call module='APPC' rpc='Generic_AnsibleDG' mode='sync' >\n",
124     "comments": "",
125     "outputs": 1,
126     "x": 499.4287109375,
127     "y": 541.2857456207275,
128     "z": "c635d405.112438",
129     "wires": [
130       [
131         "907fdc28.d558",
132         "507c8a3d.c26e24"
133       ]
134     ]
135   },
136   {
137     "id": "aa984fc9.ceff4",
138     "type": "call",
139     "name": "call  MergeTemplateData",
140     "xml": "<call module='APPC' rpc='MergeTemplateData' mode='sync' >\n",
141     "comments": "",
142     "outputs": 1,
143     "x": 1288.797721862793,
144     "y": 394.4285681247711,
145     "z": "c635d405.112438",
146     "wires": [
147       []
148     ]
149   },
150   {
151     "id": "45c7ff98.f908f",
152     "type": "execute",
153     "name": "execute getTemplate Parameter_definition",
154     "xml": "<execute plugin=\"org.onap.appc.data.services.node.ConfigResourceNode\" method=\"getTemplateByVnfTypeNAction\">\n<parameter name=\"fileCategory\" value=\"config_template\" />\n<parameter name=\"responsePrefix\" value=\"config-template\" />",
155     "comments": "",
156     "outputs": 1,
157     "x": 814.5120010375977,
158     "y": 418.7143232822418,
159     "z": "c635d405.112438",
160     "wires": [
161       [
162         "708b7296.ea5c5c",
163         "996ddcaa.b670e"
164       ]
165     ]
166   },
167   {
168     "id": "5ebec77e.195338",
169     "type": "block",
170     "name": "block : atomic",
171     "xml": "<block atomic=\"true\">",
172     "atomic": "true",
173     "outputs": 1,
174     "x": 1297.3690490722656,
175     "y": 475.8571951389313,
176     "z": "c635d405.112438",
177     "wires": [
178       []
179     ]
180   },
181   {
182     "id": "23f2fdd7.5ac712",
183     "type": "set",
184     "name": "Set Action",
185     "xml": "<set>\n<parameter name='request-action' value=\"GetRunningConfig\" />\n",
186     "comments": "",
187     "x": 338.5714416503906,
188     "y": 216.2857208251953,
189     "z": "c635d405.112438",
190     "wires": []
191   },
192   {
193     "id": "532324b8.7607ac",
194     "type": "success",
195     "name": "success",
196     "xml": "<outcome value='success'>\n",
197     "comments": "",
198     "outputs": 1,
199     "x": 1164.5235786437988,
200     "y": 311.4285583496094,
201     "z": "c635d405.112438",
202     "wires": [
203       [
204         "81881f82.e8718"
205       ]
206     ]
207   },
208   {
209     "id": "37db39ee.479f96",
210     "type": "failure",
211     "name": "failure",
212     "xml": "<outcome value='failure'>\n",
213     "comments": "",
214     "outputs": 1,
215     "x": 1252.4759407043457,
216     "y": 193.52384042739868,
217     "z": "c635d405.112438",
218     "wires": [
219       [
220         "17934b5e.863a65"
221       ]
222     ]
223   },
224   {
225     "id": "17934b5e.863a65",
226     "type": "block",
227     "name": "block",
228     "xml": "<block>\n",
229     "atomic": "false",
230     "comments": "",
231     "outputs": 1,
232     "x": 1428.4759407043457,
233     "y": 197.52384042739868,
234     "z": "c635d405.112438",
235     "wires": [
236       []
237     ]
238   },
239   {
240     "id": "17e6919.76d9a6e",
241     "type": "failure",
242     "name": "failure",
243     "xml": "<outcome value='failure'>\n",
244     "comments": "",
245     "outputs": 1,
246     "x": 561.952520098005,
247     "y": 293.3333697319031,
248     "z": "c635d405.112438",
249     "wires": [
250       [
251         "ed2accea.93295"
252       ]
253     ]
254   },
255   {
256     "id": "a0e75486.1eda18",
257     "type": "failure",
258     "name": "not-found",
259     "xml": "<outcome value='not-found'>\n",
260     "comments": "",
261     "outputs": 1,
262     "x": 568.4763314383371,
263     "y": 216.00006437301636,
264     "z": "c635d405.112438",
265     "wires": [
266       [
267         "ed2accea.93295"
268       ]
269     ]
270   },
271   {
272     "id": "ed2accea.93295",
273     "type": "block",
274     "name": "block : atomic",
275     "xml": "<block atomic=\"true\">",
276     "atomic": "true",
277     "outputs": 1,
278     "x": 762.809585571289,
279     "y": 323.190541267395,
280     "z": "c635d405.112438",
281     "wires": [
282       [
283         "aa4b0b45.5fc018"
284       ]
285     ]
286   },
287   {
288     "id": "aa4b0b45.5fc018",
289     "type": "get-resource",
290     "name": "get-resource: APPC.GetRunningConfig",
291     "xml": "<get-resource\n\tplugin='org.onap.ccsdk.sli.adaptors.resource.sql.SqlResource' \n\tresource='SQL'\n    key=\"SELECT FILE_CONTENT FROM CONFIGFILES WHERE FILE_CATEGORY = 'device_configuration' AND VNF_NAME = $vnf-name\n    \t\tAND ACTION IN ('Configure', 'ConfigModify', 'ConfigRestore') \n    \t\tAND CREATION_DATE IN (SELECT MAX(CREATION_DATE) FROM CONFIGFILES) ;\"\n    force='true'\n\tpfx='APPC.GetRunningConfig'>\n",
292     "comments": "",
293     "outputs": 1,
294     "x": 955.5713500976561,
295     "y": 250.52385759353638,
296     "z": "c635d405.112438",
297     "wires": [
298       [
299         "37db39ee.479f96",
300         "532324b8.7607ac"
301       ]
302     ]
303   },
304   {
305     "id": "81881f82.e8718",
306     "type": "set",
307     "name": "set GetRunningConfig",
308     "xml": "<set>\n<parameter name='APPC.GetRunningConfig' value='`$APPC.GetRunningConfig.FILE-CONTENT`' />\n\n\n\n\n\n",
309     "comments": "",
310     "x": 1421.8570861816406,
311     "y": 314.52384090423584,
312     "z": "c635d405.112438",
313     "wires": []
314   },
315   {
316     "id": "3a927737.d59708",
317     "type": "success",
318     "name": "success",
319     "xml": "<outcome value='success'>\n",
320     "comments": "",
321     "outputs": 1,
322     "x": 437.85711669921875,
323     "y": 374.80954572132646,
324     "z": "c635d405.112438",
325     "wires": [
326       [
327         "60cc2251.f2ed4c"
328       ]
329     ]
330   },
331   {
332     "id": "60cc2251.f2ed4c",
333     "type": "block",
334     "name": "block : atomic",
335     "xml": "<block atomic=\"true\">",
336     "atomic": "true",
337     "outputs": 1,
338     "x": 400,
339     "y": 442.8571472167969,
340     "z": "c635d405.112438",
341     "wires": [
342       [
343         "39b0035c.ce94cc"
344       ]
345     ]
346   },
347   {
348     "id": "507c8a3d.c26e24",
349     "type": "success",
350     "name": "success",
351     "xml": "<outcome value='success'>\n",
352     "comments": "",
353     "outputs": 1,
354     "x": 700.0000495910645,
355     "y": 615.714298248291,
356     "z": "c635d405.112438",
357     "wires": [
358       [
359         "90bce11.187a52"
360       ]
361     ]
362   },
363   {
364     "id": "90bce11.187a52",
365     "type": "returnSuccess",
366     "name": "return success",
367     "xml": "<return status='success'>\n<parameter name='APPC.GetRunningConfig' value=\"`$APPC.GetRunningConfig`\" />\n<parameter name='output.status.code' value='`$output.status.code`' />\n<parameter name='output.status.message' value='`$output.status.message`'/>\n<parameter name='output.status.results' value = '`$output.status.results`'/>\n",
368     "comments": "",
369     "x": 941.4288787841797,
370     "y": 619.285683631897,
371     "z": "c635d405.112438",
372     "wires": []
373   },
374   {
375     "id": "907fdc28.d558",
376     "type": "failure",
377     "name": "failure",
378     "xml": "<outcome value='failure'>\n",
379     "comments": "",
380     "outputs": 1,
381     "x": 754.2857551574707,
382     "y": 514.2855968475342,
383     "z": "c635d405.112438",
384     "wires": [
385       [
386         "689e0447.d7db4c"
387       ]
388     ]
389   },
390   {
391     "id": "689e0447.d7db4c",
392     "type": "returnFailure",
393     "name": "return failure",
394     "xml": "<return status='failure'>\n<parameter name='output.status.code' value='`$output.status.code`' />\n<parameter name='output.status.message' value='`$output.status.message`'/>\n",
395     "comments": "",
396     "x": 1002.9999923706055,
397     "y": 545.7141237258911,
398     "z": "c635d405.112438",
399     "wires": []
400   },
401   {
402     "id": "3190acbd.5b74a4",
403     "type": "comment",
404     "name": "Change of getDeviceRunningConfig",
405     "info": "Need to change getDeviceRunningconfig when Ansible returns configuration.\n\nRight now just returning deviceRunningConfig",
406     "comments": "",
407     "x": 862.7621231079102,
408     "y": 662.0952320098877,
409     "z": "c635d405.112438",
410     "wires": []
411   },
412   {
413     "id": "25358328.a7b87c",
414     "type": "set",
415     "name": "set tmp.message",
416     "xml": "<set>\n<parameter name=\"tmp.message\" value=\"`$error-code + ':' + $error-message`\"/>\n<parameter name='request-action' value=\"`$input.action`\" />\n",
417     "comments": "",
418     "x": 340,
419     "y": 722.5714111328125,
420     "z": "c635d405.112438",
421     "wires": []
422   }
423 ]