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