Fix for config not able to save in DB
[appc.git] / appc-directed-graph / appc-dgraph / provider / src / main / resources / json / APPC / APPC_GetTemplateConfig_Chef.json
1 [{
2     "id": "474f3afb.a3db24",
3     "type": "dgstart",
4     "name": "DGSTART",
5     "outputs": 1,
6     "x": 147,
7     "y": 111.00000190734863,
8     "z": "94e86086.2ff71",
9     "wires": [["cc0ffd3f.b63cd"]]
10 },
11 {
12     "id": "cc0ffd3f.b63cd",
13     "type": "service-logic",
14     "name": "APPC 4.0.0",
15     "module": "APPC",
16     "version": "4.0.0",
17     "comments": "",
18     "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'>",
19     "outputs": 1,
20     "x": 328.00000762939453,
21     "y": 68.57142925262451,
22     "z": "94e86086.2ff71",
23     "wires": [["d652a69c.2573f8"]]
24 },
25 {
26     "id": "d652a69c.2573f8",
27     "type": "method",
28     "name": "method GetTemplateConfig_Chef ",
29     "xml": "<method rpc='GetTemplateConfig_Chef' mode='sync'>\n",
30     "comments": "",
31     "outputs": 1,
32     "x": 591.5476837158203,
33     "y": 71.92856788635254,
34     "z": "94e86086.2ff71",
35     "wires": [["d18eff93.eb14f"]]
36 },
37 {
38     "id": "d18eff93.eb14f",
39     "type": "block",
40     "name": "block : atomic",
41     "xml": "<block atomic=\"true\">",
42     "atomic": "true",
43     "comments": "",
44     "outputs": 1,
45     "x": 159.00001907348633,
46     "y": 306.92860984802246,
47     "z": "94e86086.2ff71",
48     "wires": [["3b15cd2d.821332",
49     "9b65458e.5b1e98",
50     "a36ba4d6.2c6688"]]
51 },
52 {
53     "id": "29e56f4.bdbe99",
54     "type": "execute",
55     "name": "execute isPDFILE",
56     "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\" />",
57     "comments": "",
58     "outputs": 1,
59     "x": 779.9166679382324,
60     "y": 517.5952529907227,
61     "z": "94e86086.2ff71",
62     "wires": [["39e0794.313fc86",
63     "1ed9c019.ae2df"]]
64 },
65 {
66     "id": "39e0794.313fc86",
67     "type": "not-found",
68     "name": "not-found",
69     "xml": "<outcome value='not-found'>\n",
70     "comments": "",
71     "outputs": 1,
72     "x": 1025.9166717529297,
73     "y": 498.09522247314453,
74     "z": "94e86086.2ff71",
75     "wires": [[]]
76 },
77 {
78     "id": "1ed9c019.ae2df",
79     "type": "other",
80     "name": "other",
81     "xml": "<outcome value='Other'>\n",
82     "comments": "",
83     "outputs": 1,
84     "x": 1020.4166717529297,
85     "y": 540.0952491760254,
86     "z": "94e86086.2ff71",
87     "wires": [["48b163ef.9f2bfc"]]
88 },
89 {
90     "id": "48b163ef.9f2bfc",
91     "type": "call",
92     "name": "call  chefDG",
93     "xml": "<call module='APPC' rpc='' mode='sync' >\n",
94     "comments": "",
95     "outputs": 1,
96     "x": 1187.416690826416,
97     "y": 542.5952291488647,
98     "z": "94e86086.2ff71",
99     "wires": [["d759b85b.fae9e8"]]
100 },
101 {
102     "id": "d759b85b.fae9e8",
103     "type": "block",
104     "name": "block : atomic",
105     "xml": "<block atomic=\"true\">",
106     "atomic": "true",
107     "outputs": 1,
108     "x": 1366.1667938232422,
109     "y": 543.8452787399292,
110     "z": "94e86086.2ff71",
111     "wires": [["5449d9db.093b88"]]
112 },
113 {
114     "id": "5449d9db.093b88",
115     "type": "returnSuccess",
116     "name": "return success",
117     "xml": "<return status='success'>\n<parameter name='output.status.code' value='`$org.onap.appc.adapter.ansible.result.code`' />\n<parameter name='output.status.message' value='`$org.onap.appc.adapter.ansible.message`'/>\n<parameter name='output.status.results' value = '`$output.status.results`'/>\n",
118     "comments": "",
119     "x": 1548.666706085205,
120     "y": 543.8452339172363,
121     "z": "94e86086.2ff71",
122     "wires": []
123 },
124 {
125     "id": "bde23f8d.a3fa4",
126     "type": "call",
127     "name": "call  Generic_ChefDG",
128     "xml": "<call module='APPC' rpc='Generic_ChefDG' mode='sync' >\n",
129     "comments": "",
130     "outputs": 1,
131     "x": 445.3334197998047,
132     "y": 595.0953197479248,
133     "z": "94e86086.2ff71",
134     "wires": [["43fbac1d.0c1c24",
135     "206a6826.5cf278"]]
136 },
137 {
138     "id": "954fec4e.93e8f",
139     "type": "success",
140     "name": "success",
141     "xml": "<outcome value='success'>\n",
142     "comments": "",
143     "outputs": 1,
144     "x": 1238.9521827697754,
145     "y": 235.1904354095459,
146     "z": "94e86086.2ff71",
147     "wires": [["f7addcef.22067"]]
148 },
149 {
150     "id": "168aed4a.93b013",
151     "type": "failure",
152     "name": "failure",
153     "xml": "<outcome value='failure'>\n",
154     "comments": "",
155     "outputs": 1,
156     "x": 1358.3331909179688,
157     "y": 124.42856121063232,
158     "z": "94e86086.2ff71",
159     "wires": [["66ab792e.5436a8"]]
160 },
161 {
162     "id": "66ab792e.5436a8",
163     "type": "block",
164     "name": "block",
165     "xml": "<block>\n",
166     "atomic": "false",
167     "comments": "",
168     "outputs": 1,
169     "x": 1534.3331909179688,
170     "y": 128.42856121063232,
171     "z": "94e86086.2ff71",
172     "wires": [[]]
173 },
174 {
175     "id": "3b15cd2d.821332",
176     "type": "execute",
177     "name": "execute getTemplate",
178     "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\" />",
179     "comments": "",
180     "outputs": 1,
181     "x": 390.2382354736328,
182     "y": 338.96442222595215,
183     "z": "94e86086.2ff71",
184     "wires": [["ea97965e.f38b18",
185     "eaf78bb4.52fa78",
186     "160c81ed.70050e"]]
187 },
188 {
189     "id": "eaf78bb4.52fa78",
190     "type": "failure",
191     "name": "failure",
192     "xml": "<outcome value='failure'>\n",
193     "comments": "",
194     "outputs": 1,
195     "x": 646.3811264038086,
196     "y": 319.95239543914795,
197     "z": "94e86086.2ff71",
198     "wires": [["d967b007.473f5"]]
199 },
200 {
201     "id": "ea97965e.f38b18",
202     "type": "failure",
203     "name": "not-found",
204     "xml": "<outcome value='not-found'>\n",
205     "comments": "",
206     "outputs": 1,
207     "x": 652.9049377441406,
208     "y": 242.61909008026123,
209     "z": "94e86086.2ff71",
210     "wires": [["d967b007.473f5"]]
211 },
212 {
213     "id": "d967b007.473f5",
214     "type": "block",
215     "name": "block : atomic",
216     "xml": "<block atomic=\"true\">",
217     "atomic": "true",
218     "outputs": 1,
219     "x": 837.2381896972656,
220     "y": 246.95241832733154,
221     "z": "94e86086.2ff71",
222     "wires": [["5ad2d1ac.67bda"]]
223 },
224 {
225     "id": "206a6826.5cf278",
226     "type": "success",
227     "name": "success",
228     "xml": "<outcome value='success'>\n",
229     "comments": "",
230     "outputs": 1,
231     "x": 668.6666259765625,
232     "y": 706.761884689331,
233     "z": "94e86086.2ff71",
234     "wires": [["8fa01d79.09849"]]
235 },
236 {
237     "id": "8fa01d79.09849",
238     "type": "returnSuccess",
239     "name": "return success",
240     "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",
241     "comments": "",
242     "x": 910.0954551696777,
243     "y": 710.333270072937,
244     "z": "94e86086.2ff71",
245     "wires": []
246 },
247 {
248     "id": "43fbac1d.0c1c24",
249     "type": "failure",
250     "name": "failure",
251     "xml": "<outcome value='failure'>\n",
252     "comments": "",
253     "outputs": 1,
254     "x": 652.952320098877,
255     "y": 608.1903324127197,
256     "z": "94e86086.2ff71",
257     "wires": [["7f584955.519aa8"]]
258 },
259 {
260     "id": "7f584955.519aa8",
261     "type": "returnFailure",
262     "name": "return failure",
263     "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",
264     "comments": "",
265     "x": 897.3808403015137,
266     "y": 623.9045810699463,
267     "z": "94e86086.2ff71",
268     "wires": []
269 },
270 {
271     "id": "9b65458e.5b1e98",
272     "type": "set",
273     "name": "Set Action",
274     "xml": "<set>\n<parameter name='request-action' value=\"GetRunningConfig\" />\n",
275     "comments": "",
276     "x": 410.0000114440918,
277     "y": 250.0000286102295,
278     "z": "94e86086.2ff71",
279     "wires": []
280 },
281 {
282     "id": "5ad2d1ac.67bda",
283     "type": "get-resource",
284     "name": "get-resource: APPC.GetRunningConfig",
285     "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",
286     "comments": "",
287     "outputs": 1,
288     "x": 1029.9999542236328,
289     "y": 174.2857346534729,
290     "z": "94e86086.2ff71",
291     "wires": [["168aed4a.93b013",
292     "954fec4e.93e8f"]]
293 },
294 {
295     "id": "f7addcef.22067",
296     "type": "set",
297     "name": "set GetRunningConfig",
298     "xml": "<set>\n<parameter name='APPC.GetRunningConfig' value='`$APPC.GetRunningConfig.FILE-CONTENT`' />\n\n\n\n\n\n",
299     "comments": "",
300     "x": 1496.2856903076172,
301     "y": 238.28571796417236,
302     "z": "94e86086.2ff71",
303     "wires": []
304 },
305 {
306     "id": "160c81ed.70050e",
307     "type": "success",
308     "name": "success",
309     "xml": "<outcome value='success'>\n",
310     "comments": "",
311     "outputs": 1,
312     "x": 522.2857230050223,
313     "y": 401.4285714285714,
314     "z": "94e86086.2ff71",
315     "wires": [["500403e1.fd551c"]]
316 },
317 {
318     "id": "500403e1.fd551c",
319     "type": "block",
320     "name": "block : atomic",
321     "xml": "<block atomic=\"true\">",
322     "atomic": "true",
323     "outputs": 1,
324     "x": 459.4285583496094,
325     "y": 497.1428527832031,
326     "z": "94e86086.2ff71",
327     "wires": [["bde23f8d.a3fa4"]]
328 },
329 {
330     "id": "daccf9f.9646908",
331     "type": "comment",
332     "name": "Change of getDeviceRunningConfig",
333     "info": "Need to change getDeviceRunningconfig when chef returns configuartion.\n\nRight now just returning deviceRunningConfig",
334     "comments": "",
335     "x": 1010.0001602172852,
336     "y": 753.142822265625,
337     "z": "94e86086.2ff71",
338     "wires": []
339 },
340 {
341     "id": "a36ba4d6.2c6688",
342     "type": "set",
343     "name": "set tmp.message",
344     "xml": "<set>\n<parameter name=\"tmp.message\" value=\"`$error-code + ':' + $error-message`\"/>\n<parameter name='request-action' value=\"`$input.action`\" />\n",
345     "comments": "",
346     "x": 425.71429443359375,
347     "y": 755.4285888671875,
348     "z": "94e86086.2ff71",
349     "wires": []
350 }]