4 "name": "method GetTemplateConfig_Ansible",
5 "xml": "<method rpc='GetTemplateConfig_Ansible' mode='sync'>\n",
8 "x": 524.6905136108398,
9 "y": 54.78571152687073,
10 "z": "c635d405.112438",
11 "wires": [["a16f990d.bfbc08"]]
14 "id": "3d83a335.a950bc",
18 "x": 107.28571319580078,
19 "y": 79.57142734527588,
20 "z": "c635d405.112438",
21 "wires": [["9a8e0176.09715"]]
24 "id": "9a8e0176.09715",
25 "type": "service-logic",
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'>",
32 "x": 261.1428680419922,
33 "y": 51.428571939468384,
34 "z": "c635d405.112438",
35 "wires": [["64298fa7.6eab"]]
38 "id": "831c9f31.a8932",
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\" />",
44 "x": 355.64298248291016,
45 "y": 266.821546792984,
46 "z": "c635d405.112438",
47 "wires": [["a0e75486.1eda18",
52 "id": "a16f990d.bfbc08",
54 "name": "block : atomic",
55 "xml": "<block atomic=\"true\">",
59 "x": 92.14287948608398,
60 "y": 289.78575253486633,
61 "z": "c635d405.112438",
62 "wires": [["831c9f31.a8932",
67 "id": "708b7296.ea5c5c",
70 "xml": "<outcome value='found'>\n",
73 "x": 1081.5715522766113,
74 "y": 395.75001072883606,
75 "z": "c635d405.112438",
76 "wires": [["aa984fc9.ceff4"]]
79 "id": "996ddcaa.b670e",
82 "xml": "<outcome value='not-found'>\n",
85 "x": 1085.6787338256836,
86 "y": 464.50003838539124,
87 "z": "c635d405.112438",
88 "wires": [["5ebec77e.195338"]]
91 "id": "39b0035c.ce94cc",
93 "name": "call Generic_AnsibleDG",
94 "xml": "<call module='APPC' rpc='Generic_AnsibleDG' mode='sync' >\n",
98 "y": 541.2857456207275,
99 "z": "c635d405.112438",
100 "wires": [["907fdc28.d558",
104 "id": "aa984fc9.ceff4",
106 "name": "call MergeTemplateData",
107 "xml": "<call module='APPC' rpc='MergeTemplateData' mode='sync' >\n",
110 "x": 1288.797721862793,
111 "y": 394.4285681247711,
112 "z": "c635d405.112438",
116 "id": "45c7ff98.f908f",
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\" />",
122 "x": 814.5120010375977,
123 "y": 418.7143232822418,
124 "z": "c635d405.112438",
125 "wires": [["708b7296.ea5c5c",
129 "id": "5ebec77e.195338",
131 "name": "block : atomic",
132 "xml": "<block atomic=\"true\">",
135 "x": 1297.3690490722656,
136 "y": 475.8571951389313,
137 "z": "c635d405.112438",
141 "id": "23f2fdd7.5ac712",
143 "name": "Set Action",
144 "xml": "<set>\n<parameter name='request-action' value=\"GetRunningConfig\" />\n",
146 "x": 338.5714416503906,
147 "y": 216.2857208251953,
148 "z": "c635d405.112438",
152 "id": "532324b8.7607ac",
155 "xml": "<outcome value='success'>\n",
158 "x": 1164.5235786437988,
159 "y": 311.4285583496094,
160 "z": "c635d405.112438",
161 "wires": [["81881f82.e8718"]]
164 "id": "37db39ee.479f96",
167 "xml": "<outcome value='failure'>\n",
170 "x": 1252.4759407043457,
171 "y": 193.52384042739868,
172 "z": "c635d405.112438",
173 "wires": [["17934b5e.863a65"]]
176 "id": "17934b5e.863a65",
183 "x": 1428.4759407043457,
184 "y": 197.52384042739868,
185 "z": "c635d405.112438",
189 "id": "17e6919.76d9a6e",
192 "xml": "<outcome value='failure'>\n",
195 "x": 561.952520098005,
196 "y": 293.3333697319031,
197 "z": "c635d405.112438",
198 "wires": [["ed2accea.93295"]]
201 "id": "a0e75486.1eda18",
204 "xml": "<outcome value='not-found'>\n",
207 "x": 568.4763314383371,
208 "y": 216.00006437301636,
209 "z": "c635d405.112438",
210 "wires": [["ed2accea.93295"]]
213 "id": "ed2accea.93295",
215 "name": "block : atomic",
216 "xml": "<block atomic=\"true\">",
219 "x": 762.809585571289,
220 "y": 323.190541267395,
221 "z": "c635d405.112438",
222 "wires": [["aa4b0b45.5fc018"]]
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",
231 "x": 955.5713500976561,
232 "y": 250.52385759353638,
233 "z": "c635d405.112438",
234 "wires": [["37db39ee.479f96",
238 "id": "81881f82.e8718",
240 "name": "set GetRunningConfig",
241 "xml": "<set>\n<parameter name='APPC.GetRunningConfig' value='`$APPC.GetRunningConfig.FILE-CONTENT`' />\n\n\n\n\n\n",
243 "x": 1421.8570861816406,
244 "y": 314.52384090423584,
245 "z": "c635d405.112438",
249 "id": "3a927737.d59708",
252 "xml": "<outcome value='success'>\n",
255 "x": 437.85711669921875,
256 "y": 374.80954572132646,
257 "z": "c635d405.112438",
258 "wires": [["60cc2251.f2ed4c"]]
261 "id": "60cc2251.f2ed4c",
263 "name": "block : atomic",
264 "xml": "<block atomic=\"true\">",
268 "y": 442.8571472167969,
269 "z": "c635d405.112438",
270 "wires": [["39b0035c.ce94cc"]]
273 "id": "507c8a3d.c26e24",
276 "xml": "<outcome value='success'>\n",
279 "x": 700.0000495910645,
280 "y": 615.714298248291,
281 "z": "c635d405.112438",
282 "wires": [["90bce11.187a52"]]
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",
290 "x": 941.4288787841797,
291 "y": 619.285683631897,
292 "z": "c635d405.112438",
296 "id": "907fdc28.d558",
299 "xml": "<outcome value='failure'>\n",
302 "x": 754.2857551574707,
303 "y": 514.2855968475342,
304 "z": "c635d405.112438",
305 "wires": [["689e0447.d7db4c"]]
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",
313 "x": 1002.9999923706055,
314 "y": 545.7141237258911,
315 "z": "c635d405.112438",
319 "id": "3190acbd.5b74a4",
321 "name": "Change of getDeviceRunningConfig",
322 "info": "Need to change getDeviceRunningconfig when chef returns configuartion.\n\nRight now just returning deviceRunningConfig",
324 "x": 862.7621231079102,
325 "y": 662.0952320098877,
326 "z": "c635d405.112438",
330 "id": "25358328.a7b87c",
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",
336 "y": 722.5714111328125,
337 "z": "c635d405.112438",