2 "id": "474f3afb.a3db24",
7 "y": 111.00000190734863,
9 "wires": [["cc0ffd3f.b63cd"]]
12 "id": "cc0ffd3f.b63cd",
13 "type": "service-logic",
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'>",
20 "x": 328.00000762939453,
21 "y": 68.57142925262451,
22 "z": "94e86086.2ff71",
23 "wires": [["d652a69c.2573f8"]]
26 "id": "d652a69c.2573f8",
28 "name": "method GetTemplateConfig_Chef ",
29 "xml": "<method rpc='GetTemplateConfig_Chef' mode='sync'>\n",
32 "x": 591.5476837158203,
33 "y": 71.92856788635254,
34 "z": "94e86086.2ff71",
35 "wires": [["d18eff93.eb14f"]]
38 "id": "d18eff93.eb14f",
40 "name": "block : atomic",
41 "xml": "<block atomic=\"true\">",
45 "x": 159.00001907348633,
46 "y": 306.92860984802246,
47 "z": "94e86086.2ff71",
48 "wires": [["3b15cd2d.821332",
53 "id": "29e56f4.bdbe99",
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\" />",
59 "x": 779.9166679382324,
60 "y": 517.5952529907227,
61 "z": "94e86086.2ff71",
62 "wires": [["39e0794.313fc86",
66 "id": "39e0794.313fc86",
69 "xml": "<outcome value='not-found'>\n",
72 "x": 1025.9166717529297,
73 "y": 498.09522247314453,
74 "z": "94e86086.2ff71",
78 "id": "1ed9c019.ae2df",
81 "xml": "<outcome value='Other'>\n",
84 "x": 1020.4166717529297,
85 "y": 540.0952491760254,
86 "z": "94e86086.2ff71",
87 "wires": [["48b163ef.9f2bfc"]]
90 "id": "48b163ef.9f2bfc",
92 "name": "call chefDG",
93 "xml": "<call module='APPC' rpc='' mode='sync' >\n",
96 "x": 1187.416690826416,
97 "y": 542.5952291488647,
98 "z": "94e86086.2ff71",
99 "wires": [["d759b85b.fae9e8"]]
102 "id": "d759b85b.fae9e8",
104 "name": "block : atomic",
105 "xml": "<block atomic=\"true\">",
108 "x": 1366.1667938232422,
109 "y": 543.8452787399292,
110 "z": "94e86086.2ff71",
111 "wires": [["5449d9db.093b88"]]
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",
119 "x": 1548.666706085205,
120 "y": 543.8452339172363,
121 "z": "94e86086.2ff71",
125 "id": "bde23f8d.a3fa4",
127 "name": "call Generic_ChefDG",
128 "xml": "<call module='APPC' rpc='Generic_ChefDG' mode='sync' >\n",
131 "x": 445.3334197998047,
132 "y": 595.0953197479248,
133 "z": "94e86086.2ff71",
134 "wires": [["43fbac1d.0c1c24",
138 "id": "954fec4e.93e8f",
141 "xml": "<outcome value='success'>\n",
144 "x": 1238.9521827697754,
145 "y": 235.1904354095459,
146 "z": "94e86086.2ff71",
147 "wires": [["f7addcef.22067"]]
150 "id": "168aed4a.93b013",
153 "xml": "<outcome value='failure'>\n",
156 "x": 1358.3331909179688,
157 "y": 124.42856121063232,
158 "z": "94e86086.2ff71",
159 "wires": [["66ab792e.5436a8"]]
162 "id": "66ab792e.5436a8",
169 "x": 1534.3331909179688,
170 "y": 128.42856121063232,
171 "z": "94e86086.2ff71",
175 "id": "3b15cd2d.821332",
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\" />",
181 "x": 390.2382354736328,
182 "y": 338.96442222595215,
183 "z": "94e86086.2ff71",
184 "wires": [["ea97965e.f38b18",
189 "id": "eaf78bb4.52fa78",
192 "xml": "<outcome value='failure'>\n",
195 "x": 646.3811264038086,
196 "y": 319.95239543914795,
197 "z": "94e86086.2ff71",
198 "wires": [["d967b007.473f5"]]
201 "id": "ea97965e.f38b18",
204 "xml": "<outcome value='not-found'>\n",
207 "x": 652.9049377441406,
208 "y": 242.61909008026123,
209 "z": "94e86086.2ff71",
210 "wires": [["d967b007.473f5"]]
213 "id": "d967b007.473f5",
215 "name": "block : atomic",
216 "xml": "<block atomic=\"true\">",
219 "x": 837.2381896972656,
220 "y": 246.95241832733154,
221 "z": "94e86086.2ff71",
222 "wires": [["5ad2d1ac.67bda"]]
225 "id": "206a6826.5cf278",
228 "xml": "<outcome value='success'>\n",
231 "x": 668.6666259765625,
232 "y": 706.761884689331,
233 "z": "94e86086.2ff71",
234 "wires": [["8fa01d79.09849"]]
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",
242 "x": 910.0954551696777,
243 "y": 710.333270072937,
244 "z": "94e86086.2ff71",
248 "id": "43fbac1d.0c1c24",
251 "xml": "<outcome value='failure'>\n",
254 "x": 652.952320098877,
255 "y": 608.1903324127197,
256 "z": "94e86086.2ff71",
257 "wires": [["7f584955.519aa8"]]
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",
265 "x": 897.3808403015137,
266 "y": 623.9045810699463,
267 "z": "94e86086.2ff71",
271 "id": "9b65458e.5b1e98",
273 "name": "Set Action",
274 "xml": "<set>\n<parameter name='request-action' value=\"GetRunningConfig\" />\n",
276 "x": 410.0000114440918,
277 "y": 250.0000286102295,
278 "z": "94e86086.2ff71",
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",
288 "x": 1029.9999542236328,
289 "y": 174.2857346534729,
290 "z": "94e86086.2ff71",
291 "wires": [["168aed4a.93b013",
295 "id": "f7addcef.22067",
297 "name": "set GetRunningConfig",
298 "xml": "<set>\n<parameter name='APPC.GetRunningConfig' value='`$APPC.GetRunningConfig.FILE-CONTENT`' />\n\n\n\n\n\n",
300 "x": 1496.2856903076172,
301 "y": 238.28571796417236,
302 "z": "94e86086.2ff71",
306 "id": "160c81ed.70050e",
309 "xml": "<outcome value='success'>\n",
312 "x": 522.2857230050223,
313 "y": 401.4285714285714,
314 "z": "94e86086.2ff71",
315 "wires": [["500403e1.fd551c"]]
318 "id": "500403e1.fd551c",
320 "name": "block : atomic",
321 "xml": "<block atomic=\"true\">",
324 "x": 459.4285583496094,
325 "y": 497.1428527832031,
326 "z": "94e86086.2ff71",
327 "wires": [["bde23f8d.a3fa4"]]
330 "id": "daccf9f.9646908",
332 "name": "Change of getDeviceRunningConfig",
333 "info": "Need to change getDeviceRunningconfig when chef returns configuartion.\n\nRight now just returning deviceRunningConfig",
335 "x": 1010.0001602172852,
336 "y": 753.142822265625,
337 "z": "94e86086.2ff71",
341 "id": "a36ba4d6.2c6688",
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",
346 "x": 425.71429443359375,
347 "y": 755.4285888671875,
348 "z": "94e86086.2ff71",