3 "id": "4c3f9752.77dec",
5 "name": "upgrade-software",
6 "xml": "<method rpc='upgrade-software' mode='sync'>\n",
11 "z": "e0b620f9.dad4e8",
19 "id": "d837d6cb.338428",
20 "type": "service-logic",
21 "name": "LCM ${project.version}",
23 "version": "${project.version}",
25 "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='LCM' version='${project.version}'>",
27 "x": 276.99993896484375,
29 "z": "e0b620f9.dad4e8",
37 "id": "3421e2b7.29c266",
39 "name": "execute AnsibleA.reqExec",
40 "xml": "<execute plugin='org.onap.ccsdk.sli.adaptors.ansible.AnsibleAdapter' method='reqExec' >\n<parameter name='AgentUrl' value='`$prop.ansible.agenturl`'/>\n<parameter name='User' value='`$prop.ansible.user`'/>\n<parameter name='Password' value='`prop.ansible.password`'/>\n<parameter name='LocalParameters' value='`$prop.ansible.lcm.localparameters`'/>\n<parameter name='EnvParameters' value='`$upgrade-software-input.payload`'/>\n<parameter name='NodeList' value='`$prop.ansible.nodelist`'/>\n<parameter name='Timeout' value='`$prop.ansible.timeout`'/>\n<parameter name='Version' value='`$prop.ansible.version`'/>\n<parameter name='Id' value='`$upgrade-software-input.common-header.request-id`'/>\n<parameter name='PlaybookName' value='`$prop.lcm.upgrade-software.playbookname`'/>",
43 "x": 277.00001525878906,
45 "z": "e0b620f9.dad4e8",
55 "id": "32b073b0.4096bc",
58 "xml": "<switch test=\"`$org.onap.appc.adapter.ansible.result.code`\">\n",
63 "z": "e0b620f9.dad4e8",
73 "id": "df999599.1b565",
75 "name": "outcome 500",
76 "xml": "<outcome value='500'>\n",
80 "y": 416.00000762939453,
81 "z": "e0b620f9.dad4e8",
89 "id": "96b44eb0.622268",
91 "name": "outcome 100",
92 "xml": "<outcome value='100'>\n",
96 "y": 459.00003814697266,
97 "z": "e0b620f9.dad4e8",
105 "id": "fcf5e1f3.334ad",
107 "name": "execute reqExecResult",
108 "xml": "<execute plugin='org.onap.ccsdk.sli.adaptors.ansible.AnsibleAdapter' method='reqExecResult' >\n <parameter name='AgentUrl' value='`$prop.ansible.agenturl`'/>\n\t<parameter name='User' value='`$prop.ansible.user`'/>\n\t<parameter name='Password' value='`$prop.ansible.password`'/>\n\t<parameter name='Id' value='`$org.onap.appc.adapter.ansible.Id`'/>\n\t<parameter name='PlaybookName' value='`$prop.lcm.upgrade-software.playbookname`'/>\n\t\n\n\n\n\n",
111 "x": 904.0000305175781,
112 "y": 459.00003814697266,
113 "z": "e0b620f9.dad4e8",
122 "id": "c8dd71a.7a9241",
125 "xml": "<outcome value='failure'>\n",
129 "y": 327.0000305175781,
130 "z": "e0b620f9.dad4e8",
138 "id": "199ed9da.f92c0e",
141 "xml": "<outcome value='Other'>\n",
146 "z": "e0b620f9.dad4e8",
154 "id": "9223dd62.33b848",
157 "xml": "<outcome value='failure'>\n",
160 "x": 1065.0000610351562,
161 "y": 436.00000762939453,
162 "z": "e0b620f9.dad4e8",
170 "id": "a80c397d.561b48",
172 "name": "outcome 101",
173 "xml": "<outcome value='101'>\n",
177 "y": 374.00003814697266,
178 "z": "e0b620f9.dad4e8",
186 "id": "52b60d15.5c8824",
189 "xml": "<outcome value='success'>\n",
192 "x": 1072.0000610351562,
193 "y": 484.00003814697266,
194 "z": "e0b620f9.dad4e8",
202 "id": "6d12b2b7.836454",
203 "type": "returnSuccess",
204 "name": "return success",
205 "xml": "<return status='success'>\n<parameter name='status.code' value='`$org.onap.appc.adapter.ansible.result.code`' />\n<parameter name='status.message' value='`$org.onap.appc.adapter.ansible.message`'/>",
207 "x": 1354.9999389648438,
208 "y": 536.0000381469727,
209 "z": "e0b620f9.dad4e8",
213 "id": "c4c2701e.31e65",
219 "z": "e0b620f9.dad4e8",
227 "id": "83650b67.6cd8c",
234 "x": 87.91668701171875,
235 "y": 333.0833435058594,
236 "z": "e0b620f9.dad4e8",
246 "id": "af5cebbf.24ded",
248 "name": "execute Properties",
249 "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.prop.PropertiesNode' method='readProperties' >\n <parameter name='fileName' value='%SDNC_CONFIG_DIR%/lcm-dg.properties' />\n <parameter name='contextPrefix' value='prop' />\n",
252 "x": 262.00001525878906,
253 "y": 275.0833435058594,
254 "z": "e0b620f9.dad4e8",
260 "id": "17a67139.0163e7",
262 "name": "execute DmaapMsg",
263 "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n <parameter name='templateFileName' value=\"`$prop.restapi.templateDir + '/' + $prop.restapi.lcm.dmaap.publish.templatefile`\" />\n <parameter name='restapiUrl' value='`$prop.lcm.dmaap.url`' />\n <parameter name='restapiUser' value='`$prop.lcm.dmaap.user`' />\n <parameter name='restapiPassword' value='`$prop.lcm.dmaap.password`' />\n <parameter name='format' value='json' />\n <parameter name='httpMethod' value='POST' />\n <parameter name='contentType' value='application/json' />\n <parameter name=\"responsePrefix\" value=\"lcm\" />\n",
266 "x": 1072.0000610351562,
267 "y": 280.0833435058594,
268 "z": "e0b620f9.dad4e8",
276 "id": "4b59a568.89eb14",
279 "xml": "<outcome value='failure'>\n",
283 "y": 279.0833435058594,
284 "z": "e0b620f9.dad4e8",
292 "id": "f25faee.c20865",
300 "y": 304.0833435058594,
301 "z": "e0b620f9.dad4e8",
311 "id": "3095e5cd.210e32",
313 "name": "execute DmaapMsg",
314 "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n <parameter name='templateFileName' value=\"`$prop.restapi.templateDir + '/' + $prop.restapi.lcm.dmaap.publish.templatefile`\" />\n <parameter name='restapiUrl' value='`$prop.lcm.dmaap.url`' />\n <parameter name='restapiUser' value='`$prop.lcm.dmaap.user`' />\n <parameter name='restapiPassword' value='`$prop.lcm.dmaap.password`' />\n <parameter name='format' value='json' />\n <parameter name='httpMethod' value='POST' />\n <parameter name='contentType' value='application/json' />\n <parameter name=\"responsePrefix\" value=\"lcm\" />\n",
317 "x": 1375.4999389648438,
318 "y": 485.0833511352539,
319 "z": "e0b620f9.dad4e8",
327 "id": "8bc4822b.c5137",
330 "xml": "<outcome value='failure'>\n",
333 "x": 1535.4999389648438,
334 "y": 485.0833511352539,
335 "z": "e0b620f9.dad4e8",
343 "id": "81a1b456.34658",
346 "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder\"> \n\t<parameter name=\"logger\" value=\"message-log\"/> \n\t<parameter name=\"field1\" value='Failed to Publish to DMaap'/>",
350 "y": 279.0833435058594,
351 "z": "e0b620f9.dad4e8",
357 "id": "e10545e8.eea44",
358 "type": "returnFailure",
359 "name": "return failure",
360 "xml": "<return status='failure'>\n<parameter name='status.code' value='401' />\n<parameter name='status.message' value='`$org.onap.appc.adapter.ansible.message`' />\n",
362 "x": 1046.9166870117188,
363 "y": 317.0833435058594,
364 "z": "e0b620f9.dad4e8",
368 "id": "b21f8cea.572bf8",
371 "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder\"> \n\t<parameter name=\"logger\" value=\"message-log\"/> \n\t<parameter name=\"field1\" value='Failed to Publish to DMaap'/>",
374 "x": 1656.9166870117188,
375 "y": 486.0833511352539,
376 "z": "e0b620f9.dad4e8",
382 "id": "d8fbd5c3.79579",
385 "xml": "<set>\n<parameter name='lcm-dmaap.version' value='`$prop.lcm.dmaap.version`'/>\n<parameter name='lcm-dmaap.correlation-id' value=\"`$upgrade-software-input.common-header.request-id + '-' + $upgrade-software-input.common-header.sub-request-id`\"/>\n<parameter name='lcm-dmaap.partition' value='`$prop.lcm.dmaap.partition`'/>\n<parameter name='lcm-dmaap.rpc-name' value='upgrade-software'/>\n<parameter name='lcm-dmaap.type' value='`$prop.lcm.dmaap.type`'/>\n<parameter name='lcm-dmaap.timestamp' value='`$upgrade-software-input.common-header.timestamp`'/>\n<parameter name='lcm-dmaap.api-ver' value='`$upgrade-software-input.common-header.api-ver`'/>\n<parameter name='lcm-dmaap.originator-id' value='`$upgrade-software-input.common-header.originator-id`'/>\n<parameter name='lcm-dmaap.request-id' value='`$upgrade-software-input.common-header.request-id`'/>\n<parameter name='lcm-dmaap.sub-request-id' value='`$upgrade-software-input.common-header.sub-request-id`'/>\n<parameter name='lcm-dmaap.flags.mode' value='`$upgrade-software-input.common-header.flags.mode`'/>\n<parameter name='lcm-dmaap.flags.force' value='`$upgrade-software-input.common-header.flags.force`'/>\n<parameter name='lcm-dmaap.flags.ttl' value='`$upgrade-software-input.common-header.flags.ttl`'/>\n<parameter name='lcm-dmaap.status.code' value='`$org.onap.appc.adapter.ansible.result.code`' />\n<parameter name='lcm-dmaap.status.message' value='`$org.onap.appc.adapter.ansible.message`'/>\n",
387 "x": 1024.0000610351562,
388 "y": 227.08334350585938,
389 "z": "e0b620f9.dad4e8",
393 "id": "9c548e74.79765",
400 "x": 1204.9999389648438,
401 "y": 484.0833206176758,
402 "z": "e0b620f9.dad4e8",
412 "id": "dfdfe757.04d0d8",
415 "xml": "<set>\n<parameter name='lcm-dmaap.version' value='`$prop.lcm.dmaap.version`'/>\n<parameter name='lcm-dmaap.correlation-id' value=\"`$upgrade-software-input.common-header.request-id + '-' + $upgrade-software-input.common-header.sub-request-id`\"/>\n<parameter name='lcm-dmaap.partition' value='`$prop.lcm.dmaap.partition`'/>\n<parameter name='lcm-dmaap.rpc-name' value='upgrade-software'/>\n<parameter name='lcm-dmaap.type' value='`$prop.lcm.dmaap.type`'/>\n<parameter name='lcm-dmaap.timestamp' value='`$upgrade-software-input.common-header.timestamp`'/>\n<parameter name='lcm-dmaap.api-ver' value='`$upgrade-software-input.common-header.api-ver`'/>\n<parameter name='lcm-dmaap.originator-id' value='`$upgrade-software-input.common-header.originator-id`'/>\n<parameter name='lcm-dmaap.request-id' value='`$upgrade-software-input.common-header.request-id`'/>\n<parameter name='lcm-dmaap.sub-request-id' value='`$upgrade-software-input.common-header.sub-request-id`'/>\n<parameter name='lcm-dmaap.flags.mode' value='`$upgrade-software-input.common-header.flags.mode`'/>\n<parameter name='lcm-dmaap.flags.force' value='`$upgrade-software-input.common-header.flags.force`'/>\n<parameter name='lcm-dmaap.flags.ttl' value='`$upgrade-software-input.common-header.flags.ttl`'/>\n<parameter name='lcm-dmaap.status.code' value='`$org.onap.appc.adapter.ansible.result.code`' />\n<parameter name='lcm-dmaap.status.message' value='`$org.onap.appc.adapter.ansible.message`'/>\n",
417 "x": 1335.1666870117188,
418 "y": 437.0833511352539,
419 "z": "e0b620f9.dad4e8",
423 "id": "50f87fc.8f6068",
426 "xml": "<outcome value='not-found'>\n",
431 "z": "e0b620f9.dad4e8",
439 "id": "711ed4cf.9ec76c",
441 "name": "set Defaults",
442 "xml": "<set>\n<parameter name='$org.onap.appc.adapter.ansible.result.code' value='401'/>\n<parameter name='org.onap.appc.adapter.ansible.message' value='Ansible Adapter was not found'/>\n",
446 "z": "e0b620f9.dad4e8",
450 "id": "71cef7a8.a94c",
459 "z": "e0b620f9.dad4e8",
468 "id": "9b7242c2.970088",
470 "name": "set default status value",
471 "xml": "<set>\n<parameter name='status.code' value='200' />\n<parameter name='status.message' value='unexpected return from DG' />\n",
475 "z": "e0b620f9.dad4e8",