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