-[
- {
- "id": "4c3f9752.77dec",
- "type": "method",
- "name": "upgrade-software",
- "xml": "<method rpc='upgrade-software' mode='sync'>\n",
- "comments": "",
- "outputs": 1,
- "x": 489,
- "y": 152,
- "z": "e0b620f9.dad4e8",
- "wires": [
- [
- "83650b67.6cd8c"
- ]
- ]
- },
- {
- "id": "d837d6cb.338428",
- "type": "service-logic",
- "name": "LCM ${project.version}",
- "module": "LCM",
- "version": "${project.version}",
- "comments": "",
- "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}'>",
- "outputs": 1,
- "x": 276.99993896484375,
- "y": 153,
- "z": "e0b620f9.dad4e8",
- "wires": [
- [
- "4c3f9752.77dec"
- ]
- ]
- },
- {
- "id": "3421e2b7.29c266",
- "type": "execute",
- "name": "execute AnsibleA.reqExec",
- "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`'/>",
- "comments": "",
- "outputs": 1,
- "x": 277.00001525878906,
- "y": 370,
- "z": "e0b620f9.dad4e8",
- "wires": [
- [
- "199ed9da.f92c0e",
- "c8dd71a.7a9241",
- "50f87fc.8f6068"
- ]
- ]
- },
- {
- "id": "32b073b0.4096bc",
- "type": "switchNode",
- "name": "switch",
- "xml": "<switch test=\"`$org.onap.appc.adapter.ansible.result.code`\">\n",
- "comments": "",
- "outputs": 1,
- "x": 578,
- "y": 418,
- "z": "e0b620f9.dad4e8",
- "wires": [
- [
- "df999599.1b565",
- "96b44eb0.622268",
- "a80c397d.561b48"
- ]
- ]
- },
- {
- "id": "df999599.1b565",
- "type": "other",
- "name": "outcome 500",
- "xml": "<outcome value='500'>\n",
- "comments": "",
- "outputs": 1,
- "x": 723,
- "y": 416.00000762939453,
- "z": "e0b620f9.dad4e8",
- "wires": [
- [
- "f25faee.c20865"
- ]
- ]
- },
- {
- "id": "96b44eb0.622268",
- "type": "other",
- "name": "outcome 100",
- "xml": "<outcome value='100'>\n",
- "comments": "",
- "outputs": 1,
- "x": 726,
- "y": 459.00003814697266,
- "z": "e0b620f9.dad4e8",
- "wires": [
- [
- "fcf5e1f3.334ad"
- ]
- ]
- },
- {
- "id": "fcf5e1f3.334ad",
- "type": "execute",
- "name": "execute reqExecResult",
- "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",
- "comments": "",
- "outputs": 1,
- "x": 904.0000305175781,
- "y": 459.00003814697266,
- "z": "e0b620f9.dad4e8",
- "wires": [
- [
- "9223dd62.33b848",
- "52b60d15.5c8824"
- ]
- ]
- },
- {
- "id": "c8dd71a.7a9241",
- "type": "failure",
- "name": "failure",
- "xml": "<outcome value='failure'>\n",
- "comments": "",
- "outputs": 1,
- "x": 469,
- "y": 327.0000305175781,
- "z": "e0b620f9.dad4e8",
- "wires": [
- [
- "f25faee.c20865"
- ]
- ]
- },
- {
- "id": "199ed9da.f92c0e",
- "type": "other",
- "name": "other",
- "xml": "<outcome value='Other'>\n",
- "comments": "",
- "outputs": 1,
- "x": 471,
- "y": 379,
- "z": "e0b620f9.dad4e8",
- "wires": [
- [
- "32b073b0.4096bc"
- ]
- ]
- },
- {
- "id": "9223dd62.33b848",
- "type": "failure",
- "name": "failure",
- "xml": "<outcome value='failure'>\n",
- "comments": "",
- "outputs": 1,
- "x": 1065.0000610351562,
- "y": 436.00000762939453,
- "z": "e0b620f9.dad4e8",
- "wires": [
- [
- "f25faee.c20865"
- ]
- ]
- },
- {
- "id": "a80c397d.561b48",
- "type": "other",
- "name": "outcome 101",
- "xml": "<outcome value='101'>\n",
- "comments": "",
- "outputs": 1,
- "x": 720,
- "y": 374.00003814697266,
- "z": "e0b620f9.dad4e8",
- "wires": [
- [
- "f25faee.c20865"
- ]
- ]
- },
- {
- "id": "52b60d15.5c8824",
- "type": "success",
- "name": "success",
- "xml": "<outcome value='success'>\n",
- "comments": "",
- "outputs": 1,
- "x": 1072.0000610351562,
- "y": 484.00003814697266,
- "z": "e0b620f9.dad4e8",
- "wires": [
- [
- "9c548e74.79765"
- ]
- ]
- },
- {
- "id": "6d12b2b7.836454",
- "type": "returnSuccess",
- "name": "return success",
- "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`'/>",
- "comments": "",
- "x": 1354.9999389648438,
- "y": 536.0000381469727,
- "z": "e0b620f9.dad4e8",
- "wires": []
- },
- {
- "id": "c4c2701e.31e65",
- "type": "dgstart",
- "name": "DGSTART",
- "outputs": 1,
- "x": 92,
- "y": 152,
- "z": "e0b620f9.dad4e8",
- "wires": [
- [
- "d837d6cb.338428"
- ]
- ]
- },
- {
- "id": "83650b67.6cd8c",
- "type": "block",
- "name": "block",
- "xml": "<block>\n",
- "atomic": "false",
- "comments": "",
- "outputs": 1,
- "x": 87.91668701171875,
- "y": 333.0833435058594,
- "z": "e0b620f9.dad4e8",
- "wires": [
- [
- "3421e2b7.29c266",
- "af5cebbf.24ded",
- "9b7242c2.970088"
- ]
- ]
- },
- {
- "id": "af5cebbf.24ded",
- "type": "execute",
- "name": "execute Properties",
- "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",
- "comments": "",
- "outputs": 1,
- "x": 262.00001525878906,
- "y": 275.0833435058594,
- "z": "e0b620f9.dad4e8",
- "wires": [
- []
- ]
- },
- {
- "id": "17a67139.0163e7",
- "type": "execute",
- "name": "execute DmaapMsg",
- "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",
- "comments": "",
- "outputs": 1,
- "x": 1072.0000610351562,
- "y": 280.0833435058594,
- "z": "e0b620f9.dad4e8",
- "wires": [
- [
- "4b59a568.89eb14"
- ]
- ]
- },
- {
- "id": "4b59a568.89eb14",
- "type": "failure",
- "name": "failure",
- "xml": "<outcome value='failure'>\n",
- "comments": "",
- "outputs": 1,
- "x": 1242,
- "y": 279.0833435058594,
- "z": "e0b620f9.dad4e8",
- "wires": [
- [
- "81a1b456.34658"
- ]
- ]
- },
- {
- "id": "f25faee.c20865",
- "type": "block",
- "name": "block",
- "xml": "<block>\n",
- "atomic": "false",
- "comments": "",
- "outputs": 1,
- "x": 875,
- "y": 304.0833435058594,
- "z": "e0b620f9.dad4e8",
- "wires": [
- [
- "17a67139.0163e7",
- "e10545e8.eea44",
- "d8fbd5c3.79579"
- ]
- ]
- },
- {
- "id": "3095e5cd.210e32",
- "type": "execute",
- "name": "execute DmaapMsg",
- "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",
- "comments": "",
- "outputs": 1,
- "x": 1375.4999389648438,
- "y": 485.0833511352539,
- "z": "e0b620f9.dad4e8",
- "wires": [
- [
- "8bc4822b.c5137"
- ]
- ]
- },
- {
- "id": "8bc4822b.c5137",
- "type": "failure",
- "name": "failure",
- "xml": "<outcome value='failure'>\n",
- "comments": "",
- "outputs": 1,
- "x": 1535.4999389648438,
- "y": 485.0833511352539,
- "z": "e0b620f9.dad4e8",
- "wires": [
- [
- "b21f8cea.572bf8"
- ]
- ]
- },
- {
- "id": "81a1b456.34658",
- "type": "record",
- "name": "record",
- "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'/>",
- "comments": "",
- "outputs": 1,
- "x": 1374,
- "y": 279.0833435058594,
- "z": "e0b620f9.dad4e8",
- "wires": [
- []
- ]
- },
- {
- "id": "e10545e8.eea44",
- "type": "returnFailure",
- "name": "return failure",
- "xml": "<return status='failure'>\n<parameter name='status.code' value='401' />\n<parameter name='status.message' value='`$org.onap.appc.adapter.ansible.message`' />\n",
- "comments": "",
- "x": 1046.9166870117188,
- "y": 317.0833435058594,
- "z": "e0b620f9.dad4e8",
- "wires": []
- },
- {
- "id": "b21f8cea.572bf8",
- "type": "record",
- "name": "record",
- "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'/>",
- "comments": "",
- "outputs": 1,
- "x": 1656.9166870117188,
- "y": 486.0833511352539,
- "z": "e0b620f9.dad4e8",
- "wires": [
- []
- ]
- },
- {
- "id": "d8fbd5c3.79579",
- "type": "set",
- "name": "set",
- "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",
- "comments": "",
- "x": 1024.0000610351562,
- "y": 227.08334350585938,
- "z": "e0b620f9.dad4e8",
- "wires": []
- },
- {
- "id": "9c548e74.79765",
- "type": "block",
- "name": "block",
- "xml": "<block>\n",
- "atomic": "false",
- "comments": "",
- "outputs": 1,
- "x": 1204.9999389648438,
- "y": 484.0833206176758,
- "z": "e0b620f9.dad4e8",
- "wires": [
- [
- "3095e5cd.210e32",
- "dfdfe757.04d0d8",
- "6d12b2b7.836454"
- ]
- ]
- },
- {
- "id": "dfdfe757.04d0d8",
- "type": "set",
- "name": "set",
- "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",
- "comments": "",
- "x": 1335.1666870117188,
- "y": 437.0833511352539,
- "z": "e0b620f9.dad4e8",
- "wires": []
- },
- {
- "id": "50f87fc.8f6068",
- "type": "not-found",
- "name": "not-found",
- "xml": "<outcome value='not-found'>\n",
- "comments": "",
- "outputs": 1,
- "x": 465,
- "y": 280,
- "z": "e0b620f9.dad4e8",
- "wires": [
- [
- "71cef7a8.a94c"
- ]
- ]
- },
- {
- "id": "711ed4cf.9ec76c",
- "type": "set",
- "name": "set Defaults",
- "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",
- "comments": "",
- "x": 849,
- "y": 227,
- "z": "e0b620f9.dad4e8",
- "wires": []
- },
- {
- "id": "71cef7a8.a94c",
- "type": "block",
- "name": "block",
- "xml": "<block>\n",
- "atomic": "false",
- "comments": "",
- "outputs": 1,
- "x": 649,
- "y": 272,
- "z": "e0b620f9.dad4e8",
- "wires": [
- [
- "711ed4cf.9ec76c",
- "f25faee.c20865"
- ]
- ]
- },
- {
- "id": "9b7242c2.970088",
- "type": "set",
- "name": "set default status value",
- "xml": "<set>\n<parameter name='status.code' value='200' />\n<parameter name='status.message' value='unexpected return from DG' />\n",
- "comments": "",
- "x": 276,
- "y": 319,
- "z": "e0b620f9.dad4e8",
- "wires": []
- }
-]
+[\r
+ {\r
+ "id": "517ee996.cae498",\r
+ "type": "method",\r
+ "name": "upgrade-software",\r
+ "xml": "<method rpc='upgrade-software' mode='sync'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 605,\r
+ "y": 67.5,\r
+ "z": "4789a293.82478c",\r
+ "wires": [\r
+ [\r
+ "c922d1b5.fc117"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "d43cd7d9.c78888",\r
+ "type": "service-logic",\r
+ "name": "LCM ${project.version}",\r
+ "module": "LCM",\r
+ "version": "${project.version}",\r
+ "comments": "",\r
+ "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}'>",\r
+ "outputs": 1,\r
+ "x": 392.99993896484375,\r
+ "y": 68.5,\r
+ "z": "4789a293.82478c",\r
+ "wires": [\r
+ [\r
+ "517ee996.cae498"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "586243ba.e81c7c",\r
+ "type": "execute",\r
+ "name": "execute AnsibleA.reqExec",\r
+ "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=\"`$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='`$playbookname`'/>",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 507.00001525878906,\r
+ "y": 714.5,\r
+ "z": "4789a293.82478c",\r
+ "wires": [\r
+ [\r
+ "25a6718e.235c7e",\r
+ "fa9dc7b3.2d7ec8",\r
+ "1eebcb5b.232c35"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "26321155.b353fe",\r
+ "type": "switchNode",\r
+ "name": "switch",\r
+ "xml": "<switch test=\"`$org.onap.appc.adapter.ansible.result.code`\">\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 906.9999389648438,\r
+ "y": 822.5000305175781,\r
+ "z": "4789a293.82478c",\r
+ "wires": [\r
+ [\r
+ "5f3de043.7bdd3",\r
+ "3a969e87.f80f62",\r
+ "e134b022.4c628"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "5f3de043.7bdd3",\r
+ "type": "other",\r
+ "name": "outcome 500",\r
+ "xml": "<outcome value='500'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 1051.9999389648438,\r
+ "y": 820.5000381469727,\r
+ "z": "4789a293.82478c",\r
+ "wires": [\r
+ [\r
+ "523752f4.cd144c"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "3a969e87.f80f62",\r
+ "type": "other",\r
+ "name": "outcome 100",\r
+ "xml": "<outcome value='100'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 1048.9999389648438,\r
+ "y": 877.5000305175781,\r
+ "z": "4789a293.82478c",\r
+ "wires": [\r
+ [\r
+ "199f46f9.4e7679"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "199f46f9.4e7679",\r
+ "type": "execute",\r
+ "name": "execute reqExecResult",\r
+ "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='`$playbookname`'/>\n\t\n\n\n\n\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 1236.9999389648438,\r
+ "y": 876.5000305175781,\r
+ "z": "4789a293.82478c",\r
+ "wires": [\r
+ [\r
+ "d5847215.a9d3",\r
+ "e3bd3bae.380ab8"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "fa9dc7b3.2d7ec8",\r
+ "type": "failure",\r
+ "name": "failure",\r
+ "xml": "<outcome value='failure'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 765.9999389648438,\r
+ "y": 735.5000915527344,\r
+ "z": "4789a293.82478c",\r
+ "wires": [\r
+ [\r
+ "523752f4.cd144c"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "25a6718e.235c7e",\r
+ "type": "other",\r
+ "name": "other",\r
+ "xml": "<outcome value='Other'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 767.9999389648438,\r
+ "y": 787.5000610351562,\r
+ "z": "4789a293.82478c",\r
+ "wires": [\r
+ [\r
+ "26321155.b353fe"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "d5847215.a9d3",\r
+ "type": "failure",\r
+ "name": "failure",\r
+ "xml": "<outcome value='failure'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 1405.9998779296875,\r
+ "y": 858.5000610351562,\r
+ "z": "4789a293.82478c",\r
+ "wires": [\r
+ [\r
+ "ab2173fb.6155"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "e134b022.4c628",\r
+ "type": "other",\r
+ "name": "outcome 101",\r
+ "xml": "<outcome value='101'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 1048.9999389648438,\r
+ "y": 778.5000686645508,\r
+ "z": "4789a293.82478c",\r
+ "wires": [\r
+ [\r
+ "523752f4.cd144c"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "e3bd3bae.380ab8",\r
+ "type": "success",\r
+ "name": "success",\r
+ "xml": "<outcome value='success'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 1409.9998779296875,\r
+ "y": 902.5001220703125,\r
+ "z": "4789a293.82478c",\r
+ "wires": [\r
+ [\r
+ "ab2173fb.6155"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "f07d79e5.f968a8",\r
+ "type": "dgstart",\r
+ "name": "DGSTART",\r
+ "outputs": 1,\r
+ "x": 208,\r
+ "y": 67.5,\r
+ "z": "4789a293.82478c",\r
+ "wires": [\r
+ [\r
+ "d43cd7d9.c78888"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "c922d1b5.fc117",\r
+ "type": "block",\r
+ "name": "block",\r
+ "xml": "<block>\n",\r
+ "atomic": "false",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 252.91669082641602,\r
+ "y": 218.58334636688232,\r
+ "z": "4789a293.82478c",\r
+ "wires": [\r
+ [\r
+ "586243ba.e81c7c",\r
+ "68e0f4a4.159fdc",\r
+ "f1ebf11a.c5bc5",\r
+ "d12b72c5.d2a0d",\r
+ "189980b6.f2823f",\r
+ "6c9cb3dc.03d7bc",\r
+ "ab634dae.7862b",\r
+ "f7c7e177.43b44"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "68e0f4a4.159fdc",\r
+ "type": "execute",\r
+ "name": "execute Properties",\r
+ "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",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 551.0000305175781,\r
+ "y": 178.58334350585938,\r
+ "z": "4789a293.82478c",\r
+ "wires": [\r
+ []\r
+ ]\r
+ },\r
+ {\r
+ "id": "8c604a5b.b81f18",\r
+ "type": "execute",\r
+ "name": "execute DmaapMsg",\r
+ "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",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 1717.9998779296875,\r
+ "y": 684.5834045410156,\r
+ "z": "4789a293.82478c",\r
+ "wires": [\r
+ [\r
+ "881c1cd9.b1846"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "881c1cd9.b1846",\r
+ "type": "failure",\r
+ "name": "failure",\r
+ "xml": "<outcome value='failure'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 1887.9998168945312,\r
+ "y": 683.5834045410156,\r
+ "z": "4789a293.82478c",\r
+ "wires": [\r
+ [\r
+ "dadc2809.14b598"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "523752f4.cd144c",\r
+ "type": "block",\r
+ "name": "block",\r
+ "xml": "<block>\n",\r
+ "atomic": "false",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 1520.9998168945312,\r
+ "y": 708.5834045410156,\r
+ "z": "4789a293.82478c",\r
+ "wires": [\r
+ [\r
+ "8c604a5b.b81f18",\r
+ "653d2841.a51248",\r
+ "12dd9e68.21d922"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "41cf8a88.900054",\r
+ "type": "execute",\r
+ "name": "execute DmaapMsg",\r
+ "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",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 1753.4998779296875,\r
+ "y": 950.5833740234375,\r
+ "z": "4789a293.82478c",\r
+ "wires": [\r
+ [\r
+ "9f640519.9a44f8"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "9f640519.9a44f8",\r
+ "type": "failure",\r
+ "name": "failure",\r
+ "xml": "<outcome value='failure'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 1938.4998779296875,\r
+ "y": 950.5833740234375,\r
+ "z": "4789a293.82478c",\r
+ "wires": [\r
+ [\r
+ "447afdf7.f2c9a4"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "dadc2809.14b598",\r
+ "type": "record",\r
+ "name": "record",\r
+ "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'/>",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 2007.9998779296875,\r
+ "y": 682.5833740234375,\r
+ "z": "4789a293.82478c",\r
+ "wires": [\r
+ []\r
+ ]\r
+ },\r
+ {\r
+ "id": "653d2841.a51248",\r
+ "type": "returnFailure",\r
+ "name": "return failure",\r
+ "xml": "<return status='failure'>\n<parameter name='status.code' value='401' />\n<parameter name='status.message' value='`$org.onap.appc.adapter.ansible.message`' />\n",\r
+ "comments": "",\r
+ "x": 1699.91650390625,\r
+ "y": 735.5834045410156,\r
+ "z": "4789a293.82478c",\r
+ "wires": []\r
+ },\r
+ {\r
+ "id": "447afdf7.f2c9a4",\r
+ "type": "record",\r
+ "name": "record",\r
+ "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'/>",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 2070.9166259765625,\r
+ "y": 950.5833740234375,\r
+ "z": "4789a293.82478c",\r
+ "wires": [\r
+ []\r
+ ]\r
+ },\r
+ {\r
+ "id": "12dd9e68.21d922",\r
+ "type": "set",\r
+ "name": "set DmaapReq",\r
+ "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",\r
+ "comments": "",\r
+ "x": 1704.9998779296875,\r
+ "y": 631.5833740234375,\r
+ "z": "4789a293.82478c",\r
+ "wires": []\r
+ },\r
+ {\r
+ "id": "ab2173fb.6155",\r
+ "type": "block",\r
+ "name": "block",\r
+ "xml": "<block>\n",\r
+ "atomic": "false",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 1541.9998779296875,\r
+ "y": 877.5833740234375,\r
+ "z": "4789a293.82478c",\r
+ "wires": [\r
+ [\r
+ "41cf8a88.900054",\r
+ "6a05d1a3.c6749",\r
+ "9ad5d754.15c1a8",\r
+ "63045d28.4542d4",\r
+ "9a5d17c7.55f4a8",\r
+ "18ebed43.15cc23"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "18ebed43.15cc23",\r
+ "type": "set",\r
+ "name": "set DmaapReq",\r
+ "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",\r
+ "comments": "",\r
+ "x": 1740.1666564941406,\r
+ "y": 864.3333864212036,\r
+ "z": "4789a293.82478c",\r
+ "wires": []\r
+ },\r
+ {\r
+ "id": "1eebcb5b.232c35",\r
+ "type": "not-found",\r
+ "name": "not-found",\r
+ "xml": "<outcome value='not-found'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 774.9999389648438,\r
+ "y": 687.5000610351562,\r
+ "z": "4789a293.82478c",\r
+ "wires": [\r
+ [\r
+ "bd3250c4.fa4cd"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "c1824b8f.435ad8",\r
+ "type": "set",\r
+ "name": "set Defaults",\r
+ "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",\r
+ "comments": "",\r
+ "x": 1065.9999389648438,\r
+ "y": 646.5,\r
+ "z": "4789a293.82478c",\r
+ "wires": []\r
+ },\r
+ {\r
+ "id": "bd3250c4.fa4cd",\r
+ "type": "block",\r
+ "name": "block",\r
+ "xml": "<block>\n",\r
+ "atomic": "false",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 911.9999389648438,\r
+ "y": 681.5000610351562,\r
+ "z": "4789a293.82478c",\r
+ "wires": [\r
+ [\r
+ "c1824b8f.435ad8",\r
+ "523752f4.cd144c"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "f1ebf11a.c5bc5",\r
+ "type": "set",\r
+ "name": "set default values",\r
+ "xml": "<set>\n<parameter name='status.code' value='200' />\n<parameter name='status.message' value='unexpected return from DG' />\n<parameter name='quote' value=\"'\" />\n<parameter name='outputPayloadField' value='.Output' />\n",\r
+ "comments": "",\r
+ "x": 544,\r
+ "y": 225.5,\r
+ "z": "4789a293.82478c",\r
+ "wires": []\r
+ },\r
+ {\r
+ "id": "948df1b1.145e8",\r
+ "type": "get-resource",\r
+ "name": "get aai.generic-vnf ",\r
+ "xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\tresource=\"generic-vnf\" \n\t\tkey=\"generic-vnf.vnf-id = $upgrade-software-input.action-identifiers.vnf-id\" \n\t\tlocal-only=\"false\" \n\t\tpfx='aai.generic-vnf'>",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 1084,\r
+ "y": 454.5,\r
+ "z": "4789a293.82478c",\r
+ "wires": [\r
+ [\r
+ "e8ff611b.49a6e"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "e8ff611b.49a6e",\r
+ "type": "success",\r
+ "name": "success",\r
+ "xml": "<outcome value='success'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 1242.3907470703125,\r
+ "y": 452.78399658203125,\r
+ "z": "4789a293.82478c",\r
+ "wires": [\r
+ [\r
+ "e295e5e6.4c6048"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "ab634dae.7862b",\r
+ "type": "record",\r
+ "name": "record",\r
+ "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='`$playbookname`'/>\n\t<parameter name=\"field2\" value='`$nodelist`'/>",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 472.9998779296875,\r
+ "y": 642.5,\r
+ "z": "4789a293.82478c",\r
+ "wires": [\r
+ []\r
+ ]\r
+ },\r
+ {\r
+ "id": "189980b6.f2823f",\r
+ "type": "switchNode",\r
+ "name": "switch pnf-flag",\r
+ "xml": "<switch test='`$payloadJson.pnf-flag`'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 529.7500076293945,\r
+ "y": 373.2500057220459,\r
+ "z": "4789a293.82478c",\r
+ "wires": [\r
+ [\r
+ "9f0534ad.d03f28",\r
+ "a5db95d8.460d78"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "d12b72c5.d2a0d",\r
+ "type": "execute",\r
+ "name": "execute jsonStringToCtx",\r
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='jsonStringToCtx'>\n\t<parameter name='source' value='upgrade-software-input.payload' />\n\t<parameter name='outputPath' value='payloadJson' />\n\t<parameter name='isEscaped' value='true' />",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 558,\r
+ "y": 272.5,\r
+ "z": "4789a293.82478c",\r
+ "wires": [\r
+ []\r
+ ]\r
+ },\r
+ {\r
+ "id": "9f0534ad.d03f28",\r
+ "type": "outcome",\r
+ "name": "true",\r
+ "xml": "<outcome value='true'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 714.2500076293945,\r
+ "y": 317.2500057220459,\r
+ "z": "4789a293.82478c",\r
+ "wires": [\r
+ [\r
+ "a7f091ea.70c67"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "a5db95d8.460d78",\r
+ "type": "outcome",\r
+ "name": "other",\r
+ "xml": "<outcome value='Other'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 716.7499465942383,\r
+ "y": 425.0000057220459,\r
+ "z": "4789a293.82478c",\r
+ "wires": [\r
+ [\r
+ "b2749711.a1e1b8"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "b2749711.a1e1b8",\r
+ "type": "block",\r
+ "name": "block",\r
+ "xml": "<block>\n",\r
+ "atomic": "false",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 870.9999504089355,\r
+ "y": 426.0000057220459,\r
+ "z": "4789a293.82478c",\r
+ "wires": [\r
+ [\r
+ "948df1b1.145e8",\r
+ "1c9a4267.83f8fe"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "9dbe8b14.8545c8",\r
+ "type": "set",\r
+ "name": "set AnsibleReq",\r
+ "xml": "<set>\n<parameter name='nodelist' value=\"`'[' + $quote + $payloadJson.ipaddress-v4-oam + $quote + ']'`\"/>\n<parameter name='outputPayloadField' value=\"`'.' + $payloadJson.ipaddress-v4-oam + '.Output'`\"/>\n",\r
+ "comments": "",\r
+ "x": 1041.500015258789,\r
+ "y": 225.25000381469727,\r
+ "z": "4789a293.82478c",\r
+ "wires": []\r
+ },\r
+ {\r
+ "id": "1c9a4267.83f8fe",\r
+ "type": "execute",\r
+ "name": "set playbookname",\r
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'>\n\t<parameter name='outputPath' value='playbookname' />\n\t<parameter name='source' value=\"`'prop.lcm.' + $payloadJson.nf-naming-code + '.upgrade-software.playbookname'`\" />\n\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 1093,\r
+ "y": 398.5,\r
+ "z": "4789a293.82478c",\r
+ "wires": [\r
+ []\r
+ ]\r
+ },\r
+ {\r
+ "id": "6c9cb3dc.03d7bc",\r
+ "type": "switchNode",\r
+ "name": "switch playbookname",\r
+ "xml": "<switch test='`$playbookname`'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 523,\r
+ "y": 510.5,\r
+ "z": "4789a293.82478c",\r
+ "wires": [\r
+ [\r
+ "e38d4527.338bb8"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "e38d4527.338bb8",\r
+ "type": "outcome",\r
+ "name": "null",\r
+ "xml": "<outcome value=''>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 694,\r
+ "y": 511.5,\r
+ "z": "4789a293.82478c",\r
+ "wires": [\r
+ [\r
+ "afd73c41.dd42d"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "afd73c41.dd42d",\r
+ "type": "set",\r
+ "name": "set playbookname",\r
+ "xml": "<set>\n<parameter name='playbookname' value='`$prop.lcm.upgrade-software.playbookname`'/>",\r
+ "comments": "",\r
+ "x": 884,\r
+ "y": 510.5,\r
+ "z": "4789a293.82478c",\r
+ "wires": []\r
+ },\r
+ {\r
+ "id": "f7c7e177.43b44",\r
+ "type": "switchNode",\r
+ "name": "switch nodelist",\r
+ "xml": "<switch test='`$nodelist`'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 513,\r
+ "y": 569.5,\r
+ "z": "4789a293.82478c",\r
+ "wires": [\r
+ [\r
+ "244a7ef9.90d572",\r
+ "efb7985a.a80778"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "244a7ef9.90d572",\r
+ "type": "outcome",\r
+ "name": "null",\r
+ "xml": "<outcome value=''>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 693,\r
+ "y": 562.5,\r
+ "z": "4789a293.82478c",\r
+ "wires": [\r
+ [\r
+ "e6b6586a.90a5f8"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "e6b6586a.90a5f8",\r
+ "type": "set",\r
+ "name": "set nodelist",\r
+ "xml": "<set>\n<parameter name='nodelist' value=\"`$prop.ansible.nodelist`\"/>",\r
+ "comments": "",\r
+ "x": 850,\r
+ "y": 576.5,\r
+ "z": "4789a293.82478c",\r
+ "wires": []\r
+ },\r
+ {\r
+ "id": "efb7985a.a80778",\r
+ "type": "outcome",\r
+ "name": "empty",\r
+ "xml": "<outcome value=\"['']\">\n\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 692,\r
+ "y": 606.5,\r
+ "z": "4789a293.82478c",\r
+ "wires": [\r
+ [\r
+ "e6b6586a.90a5f8"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "6652a4df.406dfc",\r
+ "type": "switchNode",\r
+ "name": "switch playbookname",\r
+ "xml": "<switch test='`$playbookname`'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 1568,\r
+ "y": 441.5,\r
+ "z": "4789a293.82478c",\r
+ "wires": [\r
+ [\r
+ "fdf6c8e8.296a38"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "fdf6c8e8.296a38",\r
+ "type": "outcome",\r
+ "name": "null",\r
+ "xml": "<outcome value=''>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 1746,\r
+ "y": 441.5,\r
+ "z": "4789a293.82478c",\r
+ "wires": [\r
+ [\r
+ "590854b0.7ac97c"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "ec745eef.b48a",\r
+ "type": "set",\r
+ "name": "set nodelist",\r
+ "xml": "<set>\n<parameter name='nodelist' value=\"`'[' + $quote + $aai.generic-vnf.ipv4-oam-address + $quote + ']'`\"/>\n",\r
+ "comments": "",\r
+ "x": 1541,\r
+ "y": 494.5,\r
+ "z": "4789a293.82478c",\r
+ "wires": []\r
+ },\r
+ {\r
+ "id": "e295e5e6.4c6048",\r
+ "type": "block",\r
+ "name": "block",\r
+ "xml": "<block>\n",\r
+ "atomic": "false",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 1371,\r
+ "y": 451.5,\r
+ "z": "4789a293.82478c",\r
+ "wires": [\r
+ [\r
+ "6652a4df.406dfc",\r
+ "ec745eef.b48a"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "590854b0.7ac97c",\r
+ "type": "execute",\r
+ "name": "set playbookname",\r
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'>\n\t<parameter name='outputPath' value='playbookname' />\n\t<parameter name='source' value=\"`'prop.lcm.' + $aai.generic-vnf.nf-naming-code + '.upgrade-software.playbookname'`\" />\n\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 1918,\r
+ "y": 439.5,\r
+ "z": "4789a293.82478c",\r
+ "wires": [\r
+ []\r
+ ]\r
+ },\r
+ {\r
+ "id": "6a05d1a3.c6749",\r
+ "type": "execute",\r
+ "name": "execute jsonStringToCtx",\r
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='jsonStringToCtx'>\n\t<parameter name='source' value='org.onap.appc.adapter.ansible.results' />\n\t<parameter name='outputPath' value='resultsJson' />\n\t<parameter name='isEscaped' value='false' />\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 1768,\r
+ "y": 783.5,\r
+ "z": "4789a293.82478c",\r
+ "wires": [\r
+ []\r
+ ]\r
+ },\r
+ {\r
+ "id": "9ad5d754.15c1a8",\r
+ "type": "execute",\r
+ "name": "execute getAttributeValue",\r
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'>\n\t<parameter name='source' value=\"`'resultsJson' + $outputPayloadField`\" />\n\t<parameter name='outputPath' value='outputPayload' />",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 1774,\r
+ "y": 828.5,\r
+ "z": "4789a293.82478c",\r
+ "wires": [\r
+ []\r
+ ]\r
+ },\r
+ {\r
+ "id": "63045d28.4542d4",\r
+ "type": "switchNode",\r
+ "name": "switch outputPayload",\r
+ "xml": "<switch test='`$outputPayload`'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 1760.0000228881836,\r
+ "y": 904.2500133514404,\r
+ "z": "4789a293.82478c",\r
+ "wires": [\r
+ [\r
+ "c0b5f473.074fe8"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "c0b5f473.074fe8",\r
+ "type": "outcome",\r
+ "name": "other",\r
+ "xml": "<outcome value='Other'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 1934.0000267028809,\r
+ "y": 904.5000133514404,\r
+ "z": "4789a293.82478c",\r
+ "wires": [\r
+ [\r
+ "bbcdc831.3c9348"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "bbcdc831.3c9348",\r
+ "type": "set",\r
+ "name": "set DmaapReq with payload",\r
+ "xml": "<set>\n<parameter name='lcm-dmaap.payload' value='`$outputPayload`'/>",\r
+ "comments": "",\r
+ "x": 2132.250030517578,\r
+ "y": 905.0000133514404,\r
+ "z": "4789a293.82478c",\r
+ "wires": []\r
+ },\r
+ {\r
+ "id": "35b87e9e.4b4612",\r
+ "type": "returnSuccess",\r
+ "name": "return success",\r
+ "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`'/>",\r
+ "comments": "",\r
+ "x": 2471,\r
+ "y": 986.4999389648438,\r
+ "z": "4789a293.82478c",\r
+ "wires": []\r
+ },\r
+ {\r
+ "id": "17165733.b036f9",\r
+ "type": "outcome",\r
+ "name": "null",\r
+ "xml": "<outcome value=''>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 1937.000244140625,\r
+ "y": 1008.4998779296875,\r
+ "z": "4789a293.82478c",\r
+ "wires": [\r
+ [\r
+ "71c2529a.2b6c4c"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "6e335499.cca56c",\r
+ "type": "outcome",\r
+ "name": "other",\r
+ "xml": "<outcome value='Other'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 1936.000244140625,\r
+ "y": 1084.4998779296875,\r
+ "z": "4789a293.82478c",\r
+ "wires": [\r
+ [\r
+ "586f871e.a07558"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "9a5d17c7.55f4a8",\r
+ "type": "switchNode",\r
+ "name": "switch outputPayload",\r
+ "xml": "<switch test='`$outputPayload`'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 1754.000244140625,\r
+ "y": 1044.4998779296875,\r
+ "z": "4789a293.82478c",\r
+ "wires": [\r
+ [\r
+ "17165733.b036f9",\r
+ "6e335499.cca56c"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "a751cca6.d89a",\r
+ "type": "returnSuccess",\r
+ "name": "return success with payload",\r
+ "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`'/>\n<parameter name='payload' value='`$outputPayload`'/>",\r
+ "comments": "",\r
+ "x": 2512.000244140625,\r
+ "y": 1068.4998779296875,\r
+ "z": "4789a293.82478c",\r
+ "wires": []\r
+ },\r
+ {\r
+ "id": "71c2529a.2b6c4c",\r
+ "type": "switchNode",\r
+ "name": "switch result code",\r
+ "xml": "<switch test=\"`$org.onap.appc.adapter.ansible.result.code`\">\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 2107.000244140625,\r
+ "y": 1008.4998779296875,\r
+ "z": "4789a293.82478c",\r
+ "wires": [\r
+ [\r
+ "b3616040.dfb69",\r
+ "fd22e048.3d737"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "586f871e.a07558",\r
+ "type": "switchNode",\r
+ "name": "switch result code",\r
+ "xml": "<switch test=\"`$org.onap.appc.adapter.ansible.result.code`\">\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 2107.000244140625,\r
+ "y": 1084.4998779296875,\r
+ "z": "4789a293.82478c",\r
+ "wires": [\r
+ [\r
+ "6dbe7e48.8df42",\r
+ "3f429d60.7d5362"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "f97605a1.be13b8",\r
+ "type": "returnFailure",\r
+ "name": "return failure",\r
+ "xml": "<return status='failure'>\n<parameter name='status.code' value='401' />\n<parameter name='status.message' value='`$org.onap.appc.adapter.ansible.message`' />\n",\r
+ "comments": "",\r
+ "x": 2465.000244140625,\r
+ "y": 1024.4998779296875,\r
+ "z": "4789a293.82478c",\r
+ "wires": []\r
+ },\r
+ {\r
+ "id": "6a5ea797.248c88",\r
+ "type": "returnFailure",\r
+ "name": "return failure with payload",\r
+ "xml": "<return status='failure'>\n<parameter name='status.code' value='401' />\n<parameter name='status.message' value='`$org.onap.appc.adapter.ansible.message`' />\n<parameter name='payload' value='`$outputPayload`'/>",\r
+ "comments": "",\r
+ "x": 2508.000244140625,\r
+ "y": 1106.4998779296875,\r
+ "z": "4789a293.82478c",\r
+ "wires": []\r
+ },\r
+ {\r
+ "id": "b3616040.dfb69",\r
+ "type": "other",\r
+ "name": "outcome 400",\r
+ "xml": "<outcome value='400'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 2295.000244140625,\r
+ "y": 986.4998779296875,\r
+ "z": "4789a293.82478c",\r
+ "wires": [\r
+ [\r
+ "35b87e9e.4b4612"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "fd22e048.3d737",\r
+ "type": "outcome",\r
+ "name": "other",\r
+ "xml": "<outcome value='Other'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 2276.000244140625,\r
+ "y": 1024.4998779296875,\r
+ "z": "4789a293.82478c",\r
+ "wires": [\r
+ [\r
+ "f97605a1.be13b8"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "6dbe7e48.8df42",\r
+ "type": "other",\r
+ "name": "outcome 400",\r
+ "xml": "<outcome value='400'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 2296.000244140625,\r
+ "y": 1068.4998779296875,\r
+ "z": "4789a293.82478c",\r
+ "wires": [\r
+ [\r
+ "a751cca6.d89a"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "3f429d60.7d5362",\r
+ "type": "outcome",\r
+ "name": "other",\r
+ "xml": "<outcome value='Other'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 2278.000244140625,\r
+ "y": 1106.4998779296875,\r
+ "z": "4789a293.82478c",\r
+ "wires": [\r
+ [\r
+ "6a5ea797.248c88"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "a7f091ea.70c67",\r
+ "type": "block",\r
+ "name": "block",\r
+ "xml": "<block>\n",\r
+ "atomic": "false",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 873.2500114440918,\r
+ "y": 275.75000381469727,\r
+ "z": "4789a293.82478c",\r
+ "wires": [\r
+ [\r
+ "9dbe8b14.8545c8",\r
+ "8eab321.a8fd0d"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "8eab321.a8fd0d",\r
+ "type": "switchNode",\r
+ "name": "switch playbook-name in req",\r
+ "xml": "<switch test='`$payloadJson.playbook-name`'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 1079.5000133514404,\r
+ "y": 320.25000381469727,\r
+ "z": "4789a293.82478c",\r
+ "wires": [\r
+ [\r
+ "b9ffda2e.115ef8",\r
+ "b261fc07.37395"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "b9ffda2e.115ef8",\r
+ "type": "outcome",\r
+ "name": "null",\r
+ "xml": "<outcome value=''>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 1287.0000190734863,\r
+ "y": 284.00000381469727,\r
+ "z": "4789a293.82478c",\r
+ "wires": [\r
+ [\r
+ "5945cca6.5e9904"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "b261fc07.37395",\r
+ "type": "outcome",\r
+ "name": "other",\r
+ "xml": "<outcome value='Other'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 1285.7500228881836,\r
+ "y": 349.00000381469727,\r
+ "z": "4789a293.82478c",\r
+ "wires": [\r
+ [\r
+ "366917bb.643c18"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "5945cca6.5e9904",\r
+ "type": "set",\r
+ "name": "set playbookname from prop",\r
+ "xml": "<set>\n<parameter name='playbookname' value='`$prop.lcm.pnf.upgrade-software.playbookname`'/>\n",\r
+ "comments": "",\r
+ "x": 1489.5000228881836,\r
+ "y": 284.00000381469727,\r
+ "z": "4789a293.82478c",\r
+ "wires": []\r
+ },\r
+ {\r
+ "id": "366917bb.643c18",\r
+ "type": "set",\r
+ "name": "set playbookname from req",\r
+ "xml": "<set>\n<parameter name='playbookname' value='`$payloadJson.playbook-name`'/>\n",\r
+ "comments": "",\r
+ "x": 1484.5000228881836,\r
+ "y": 349.00000381469727,\r
+ "z": "4789a293.82478c",\r
+ "wires": []\r
+ }\r
+]
\ No newline at end of file