aboutsummaryrefslogtreecommitdiffstats
path: root/platform-logic/lcm/src/main/json/LCM_upgrade-software.json
diff options
context:
space:
mode:
Diffstat (limited to 'platform-logic/lcm/src/main/json/LCM_upgrade-software.json')
-rw-r--r--platform-logic/lcm/src/main/json/LCM_upgrade-software.json897
1 files changed, 485 insertions, 412 deletions
diff --git a/platform-logic/lcm/src/main/json/LCM_upgrade-software.json b/platform-logic/lcm/src/main/json/LCM_upgrade-software.json
index 98bb939d..fc3c5efb 100644
--- a/platform-logic/lcm/src/main/json/LCM_upgrade-software.json
+++ b/platform-logic/lcm/src/main/json/LCM_upgrade-software.json
@@ -1,22 +1,22 @@
[
{
- "id": "700a0160.004aa",
+ "id": "517ee996.cae498",
"type": "method",
"name": "upgrade-software",
"xml": "<method rpc='upgrade-software' mode='sync'>\n",
"comments": "",
"outputs": 1,
- "x": 567,
- "y": 95,
- "z": "ec3deb45.e00818",
+ "x": 605,
+ "y": 67.5,
+ "z": "4789a293.82478c",
"wires": [
[
- "bd9b1e7b.c0a1e"
+ "c922d1b5.fc117"
]
]
},
{
- "id": "fa41fb4b.580858",
+ "id": "d43cd7d9.c78888",
"type": "service-logic",
"name": "LCM ${project.version}",
"module": "LCM",
@@ -24,1060 +24,1133 @@
"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": 354.99993896484375,
- "y": 96,
- "z": "ec3deb45.e00818",
+ "x": 392.99993896484375,
+ "y": 68.5,
+ "z": "4789a293.82478c",
"wires": [
[
- "700a0160.004aa"
+ "517ee996.cae498"
]
]
},
{
- "id": "e9118cc6.cb56",
+ "id": "586243ba.e81c7c",
"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=\"`$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`'/>",
"comments": "",
"outputs": 1,
- "x": 422.00001525878906,
- "y": 703,
- "z": "ec3deb45.e00818",
+ "x": 507.00001525878906,
+ "y": 714.5,
+ "z": "4789a293.82478c",
"wires": [
[
- "a4805e06.99a58",
- "c3cf6822.251028",
- "8fa9e7e9.017688"
+ "25a6718e.235c7e",
+ "fa9dc7b3.2d7ec8",
+ "1eebcb5b.232c35"
]
]
},
{
- "id": "53951e82.372c1",
+ "id": "26321155.b353fe",
"type": "switchNode",
"name": "switch",
"xml": "<switch test=\"`$org.onap.appc.adapter.ansible.result.code`\">\n",
"comments": "",
"outputs": 1,
- "x": 821.9999389648438,
- "y": 811.0000305175781,
- "z": "ec3deb45.e00818",
+ "x": 906.9999389648438,
+ "y": 822.5000305175781,
+ "z": "4789a293.82478c",
"wires": [
[
- "46287bfa.134154",
- "b76b1945.f582c8",
- "c42f2303.695eb"
+ "5f3de043.7bdd3",
+ "3a969e87.f80f62",
+ "e134b022.4c628"
]
]
},
{
- "id": "46287bfa.134154",
+ "id": "5f3de043.7bdd3",
"type": "other",
"name": "outcome 500",
"xml": "<outcome value='500'>\n",
"comments": "",
"outputs": 1,
- "x": 966.9999389648438,
- "y": 809.0000381469727,
- "z": "ec3deb45.e00818",
+ "x": 1051.9999389648438,
+ "y": 820.5000381469727,
+ "z": "4789a293.82478c",
"wires": [
[
- "cd8ebd14.23c24"
+ "523752f4.cd144c"
]
]
},
{
- "id": "b76b1945.f582c8",
+ "id": "3a969e87.f80f62",
"type": "other",
"name": "outcome 100",
"xml": "<outcome value='100'>\n",
"comments": "",
"outputs": 1,
- "x": 963.9999389648438,
- "y": 866.0000305175781,
- "z": "ec3deb45.e00818",
+ "x": 1048.9999389648438,
+ "y": 877.5000305175781,
+ "z": "4789a293.82478c",
"wires": [
[
- "6450772a.c289b8"
+ "199f46f9.4e7679"
]
]
},
{
- "id": "6450772a.c289b8",
+ "id": "199f46f9.4e7679",
"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='`$playbookname`'/>\n\t\n\n\n\n\n",
"comments": "",
"outputs": 1,
- "x": 1151.9999389648438,
- "y": 865.0000305175781,
- "z": "ec3deb45.e00818",
+ "x": 1236.9999389648438,
+ "y": 876.5000305175781,
+ "z": "4789a293.82478c",
"wires": [
[
- "e139990d.0bffa8",
- "d862bbfb.0fc3d8"
+ "d5847215.a9d3",
+ "e3bd3bae.380ab8"
]
]
},
{
- "id": "c3cf6822.251028",
+ "id": "fa9dc7b3.2d7ec8",
"type": "failure",
"name": "failure",
"xml": "<outcome value='failure'>\n",
"comments": "",
"outputs": 1,
- "x": 680.9999389648438,
- "y": 724.0000915527344,
- "z": "ec3deb45.e00818",
+ "x": 765.9999389648438,
+ "y": 735.5000915527344,
+ "z": "4789a293.82478c",
"wires": [
[
- "cd8ebd14.23c24"
+ "523752f4.cd144c"
]
]
},
{
- "id": "a4805e06.99a58",
+ "id": "25a6718e.235c7e",
"type": "other",
"name": "other",
"xml": "<outcome value='Other'>\n",
"comments": "",
"outputs": 1,
- "x": 682.9999389648438,
- "y": 776.0000610351562,
- "z": "ec3deb45.e00818",
+ "x": 767.9999389648438,
+ "y": 787.5000610351562,
+ "z": "4789a293.82478c",
"wires": [
[
- "53951e82.372c1"
+ "26321155.b353fe"
]
]
},
{
- "id": "e139990d.0bffa8",
+ "id": "d5847215.a9d3",
"type": "failure",
"name": "failure",
"xml": "<outcome value='failure'>\n",
"comments": "",
"outputs": 1,
- "x": 1320.9998779296875,
- "y": 841.0000610351562,
- "z": "ec3deb45.e00818",
+ "x": 1405.9998779296875,
+ "y": 858.5000610351562,
+ "z": "4789a293.82478c",
"wires": [
[
- "c8609f9e.cb4cc"
+ "ab2173fb.6155"
]
]
},
{
- "id": "c42f2303.695eb",
+ "id": "e134b022.4c628",
"type": "other",
"name": "outcome 101",
"xml": "<outcome value='101'>\n",
"comments": "",
"outputs": 1,
- "x": 963.9999389648438,
- "y": 767.0000686645508,
- "z": "ec3deb45.e00818",
+ "x": 1048.9999389648438,
+ "y": 778.5000686645508,
+ "z": "4789a293.82478c",
"wires": [
[
- "cd8ebd14.23c24"
+ "523752f4.cd144c"
]
]
},
{
- "id": "d862bbfb.0fc3d8",
+ "id": "e3bd3bae.380ab8",
"type": "success",
"name": "success",
"xml": "<outcome value='success'>\n",
"comments": "",
"outputs": 1,
- "x": 1324.9998779296875,
- "y": 895.0001220703125,
- "z": "ec3deb45.e00818",
+ "x": 1409.9998779296875,
+ "y": 902.5001220703125,
+ "z": "4789a293.82478c",
"wires": [
[
- "c8609f9e.cb4cc"
+ "ab2173fb.6155"
]
]
},
{
- "id": "a498eeb0.e871c",
+ "id": "f07d79e5.f968a8",
"type": "dgstart",
"name": "DGSTART",
"outputs": 1,
- "x": 170,
- "y": 95,
- "z": "ec3deb45.e00818",
+ "x": 208,
+ "y": 67.5,
+ "z": "4789a293.82478c",
"wires": [
[
- "fa41fb4b.580858"
+ "d43cd7d9.c78888"
]
]
},
{
- "id": "bd9b1e7b.c0a1e",
+ "id": "c922d1b5.fc117",
"type": "block",
"name": "block",
"xml": "<block>\n",
"atomic": "false",
"comments": "",
"outputs": 1,
- "x": 167.91668701171875,
- "y": 187.08334350585938,
- "z": "ec3deb45.e00818",
+ "x": 252.91669082641602,
+ "y": 218.58334636688232,
+ "z": "4789a293.82478c",
"wires": [
[
- "e9118cc6.cb56",
- "8f2cdd2c.cf15b",
- "881e51a9.bba9",
- "3bae173d.769688",
- "f24727d0.cfe3a8",
- "a40512f5.69e4d",
- "57b0407c.30e16",
- "2f8a882.7fbf078"
+ "586243ba.e81c7c",
+ "68e0f4a4.159fdc",
+ "f1ebf11a.c5bc5",
+ "d12b72c5.d2a0d",
+ "189980b6.f2823f",
+ "6c9cb3dc.03d7bc",
+ "ab634dae.7862b",
+ "f7c7e177.43b44"
]
]
},
{
- "id": "8f2cdd2c.cf15b",
+ "id": "68e0f4a4.159fdc",
"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": 466.0000305175781,
- "y": 220.08334350585938,
- "z": "ec3deb45.e00818",
+ "x": 551.0000305175781,
+ "y": 178.58334350585938,
+ "z": "4789a293.82478c",
"wires": [
[]
]
},
{
- "id": "f33bb583.25a398",
+ "id": "8c604a5b.b81f18",
"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": 1632.9998779296875,
- "y": 673.0834045410156,
- "z": "ec3deb45.e00818",
+ "x": 1717.9998779296875,
+ "y": 684.5834045410156,
+ "z": "4789a293.82478c",
"wires": [
[
- "1ec548c6.857767"
+ "881c1cd9.b1846"
]
]
},
{
- "id": "1ec548c6.857767",
+ "id": "881c1cd9.b1846",
"type": "failure",
"name": "failure",
"xml": "<outcome value='failure'>\n",
"comments": "",
"outputs": 1,
- "x": 1802.9998168945312,
- "y": 672.0834045410156,
- "z": "ec3deb45.e00818",
+ "x": 1887.9998168945312,
+ "y": 683.5834045410156,
+ "z": "4789a293.82478c",
"wires": [
[
- "f99d1384.2dae"
+ "dadc2809.14b598"
]
]
},
{
- "id": "cd8ebd14.23c24",
+ "id": "523752f4.cd144c",
"type": "block",
"name": "block",
"xml": "<block>\n",
"atomic": "false",
"comments": "",
"outputs": 1,
- "x": 1435.9998168945312,
- "y": 697.0834045410156,
- "z": "ec3deb45.e00818",
+ "x": 1520.9998168945312,
+ "y": 708.5834045410156,
+ "z": "4789a293.82478c",
"wires": [
[
- "f33bb583.25a398",
- "bfff1f61.da463",
- "b136bf71.fb6b9"
+ "8c604a5b.b81f18",
+ "653d2841.a51248",
+ "12dd9e68.21d922"
]
]
},
{
- "id": "f99d1384.2dae",
+ "id": "41cf8a88.900054",
+ "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": 1753.4998779296875,
+ "y": 950.5833740234375,
+ "z": "4789a293.82478c",
+ "wires": [
+ [
+ "9f640519.9a44f8"
+ ]
+ ]
+ },
+ {
+ "id": "9f640519.9a44f8",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1938.4998779296875,
+ "y": 950.5833740234375,
+ "z": "4789a293.82478c",
+ "wires": [
+ [
+ "447afdf7.f2c9a4"
+ ]
+ ]
+ },
+ {
+ "id": "dadc2809.14b598",
"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": 1922.9998779296875,
- "y": 671.0833740234375,
- "z": "ec3deb45.e00818",
+ "x": 2007.9998779296875,
+ "y": 682.5833740234375,
+ "z": "4789a293.82478c",
"wires": [
[]
]
},
{
- "id": "bfff1f61.da463",
+ "id": "653d2841.a51248",
"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": 1614.91650390625,
- "y": 724.0834045410156,
- "z": "ec3deb45.e00818",
+ "x": 1699.91650390625,
+ "y": 735.5834045410156,
+ "z": "4789a293.82478c",
"wires": []
},
{
- "id": "b136bf71.fb6b9",
+ "id": "447afdf7.f2c9a4",
+ "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": 2070.9166259765625,
+ "y": 950.5833740234375,
+ "z": "4789a293.82478c",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "12dd9e68.21d922",
"type": "set",
"name": "set DmaapReq",
"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": 1619.9998779296875,
- "y": 620.0833740234375,
- "z": "ec3deb45.e00818",
+ "x": 1704.9998779296875,
+ "y": 631.5833740234375,
+ "z": "4789a293.82478c",
"wires": []
},
{
- "id": "c8609f9e.cb4cc",
+ "id": "ab2173fb.6155",
"type": "block",
"name": "block",
"xml": "<block>\n",
"atomic": "false",
"comments": "",
"outputs": 1,
- "x": 1453.9998779296875,
- "y": 864.0833740234375,
- "z": "ec3deb45.e00818",
+ "x": 1541.9998779296875,
+ "y": 877.5833740234375,
+ "z": "4789a293.82478c",
"wires": [
[
- "77de5f8d.0aa37",
- "87eb757f.5a9998",
- "d4c78c4a.10f57",
- "9253558b.1de3f8",
- "abc5eb21.233c78"
+ "41cf8a88.900054",
+ "6a05d1a3.c6749",
+ "9ad5d754.15c1a8",
+ "63045d28.4542d4",
+ "9a5d17c7.55f4a8",
+ "18ebed43.15cc23"
]
]
},
{
- "id": "8fa9e7e9.017688",
+ "id": "18ebed43.15cc23",
+ "type": "set",
+ "name": "set DmaapReq",
+ "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": 1740.1666564941406,
+ "y": 864.3333864212036,
+ "z": "4789a293.82478c",
+ "wires": []
+ },
+ {
+ "id": "1eebcb5b.232c35",
"type": "not-found",
"name": "not-found",
"xml": "<outcome value='not-found'>\n",
"comments": "",
"outputs": 1,
- "x": 689.9999389648438,
- "y": 676.0000610351562,
- "z": "ec3deb45.e00818",
+ "x": 774.9999389648438,
+ "y": 687.5000610351562,
+ "z": "4789a293.82478c",
"wires": [
[
- "8d1a07a6.9f8f38"
+ "bd3250c4.fa4cd"
]
]
},
{
- "id": "d1a59bdb.49c988",
+ "id": "c1824b8f.435ad8",
"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": 980.9999389648438,
- "y": 635,
- "z": "ec3deb45.e00818",
+ "x": 1065.9999389648438,
+ "y": 646.5,
+ "z": "4789a293.82478c",
"wires": []
},
{
- "id": "8d1a07a6.9f8f38",
+ "id": "bd3250c4.fa4cd",
"type": "block",
"name": "block",
"xml": "<block>\n",
"atomic": "false",
"comments": "",
"outputs": 1,
- "x": 826.9999389648438,
- "y": 670.0000610351562,
- "z": "ec3deb45.e00818",
+ "x": 911.9999389648438,
+ "y": 681.5000610351562,
+ "z": "4789a293.82478c",
"wires": [
[
- "d1a59bdb.49c988",
- "cd8ebd14.23c24"
+ "c1824b8f.435ad8",
+ "523752f4.cd144c"
]
]
},
{
- "id": "881e51a9.bba9",
+ "id": "f1ebf11a.c5bc5",
"type": "set",
"name": "set default values",
"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",
"comments": "",
- "x": 459,
- "y": 267,
- "z": "ec3deb45.e00818",
+ "x": 544,
+ "y": 225.5,
+ "z": "4789a293.82478c",
"wires": []
},
{
- "id": "27e24246.a44b8e",
+ "id": "948df1b1.145e8",
"type": "get-resource",
"name": "get aai.generic-vnf ",
"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'>",
"comments": "",
"outputs": 1,
- "x": 999,
- "y": 443,
- "z": "ec3deb45.e00818",
+ "x": 1084,
+ "y": 454.5,
+ "z": "4789a293.82478c",
"wires": [
[
- "4d967fc5.86e13"
+ "e8ff611b.49a6e"
]
]
},
{
- "id": "4d967fc5.86e13",
+ "id": "e8ff611b.49a6e",
"type": "success",
"name": "success",
"xml": "<outcome value='success'>\n",
"comments": "",
"outputs": 1,
- "x": 1157.3907470703125,
- "y": 441.28399658203125,
- "z": "ec3deb45.e00818",
+ "x": 1242.3907470703125,
+ "y": 452.78399658203125,
+ "z": "4789a293.82478c",
"wires": [
[
- "363cf7ac.eea978"
+ "e295e5e6.4c6048"
]
]
},
{
- "id": "57b0407c.30e16",
+ "id": "ab634dae.7862b",
"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='`$playbookname`'/>\n\t<parameter name=\"field2\" value='`$nodelist`'/>",
"comments": "",
"outputs": 1,
- "x": 387.9998779296875,
- "y": 631,
- "z": "ec3deb45.e00818",
+ "x": 472.9998779296875,
+ "y": 642.5,
+ "z": "4789a293.82478c",
"wires": [
[]
]
},
{
- "id": "f24727d0.cfe3a8",
+ "id": "189980b6.f2823f",
"type": "switchNode",
"name": "switch pnf-flag",
"xml": "<switch test='`$payloadJson.pnf-flag`'>\n",
"comments": "",
"outputs": 1,
- "x": 441,
- "y": 368,
- "z": "ec3deb45.e00818",
+ "x": 529.7500076293945,
+ "y": 373.2500057220459,
+ "z": "4789a293.82478c",
"wires": [
[
- "ebcaa444.5c15f8",
- "200181e1.aab39e"
+ "9f0534ad.d03f28",
+ "a5db95d8.460d78"
]
]
},
{
- "id": "3bae173d.769688",
+ "id": "d12b72c5.d2a0d",
"type": "execute",
"name": "execute jsonStringToCtx",
"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' />",
"comments": "",
"outputs": 1,
- "x": 473,
- "y": 314,
- "z": "ec3deb45.e00818",
+ "x": 558,
+ "y": 272.5,
+ "z": "4789a293.82478c",
"wires": [
[]
]
},
{
- "id": "ebcaa444.5c15f8",
+ "id": "9f0534ad.d03f28",
"type": "outcome",
"name": "true",
"xml": "<outcome value='true'>\n",
"comments": "",
"outputs": 1,
- "x": 638,
- "y": 347,
- "z": "ec3deb45.e00818",
+ "x": 714.2500076293945,
+ "y": 317.2500057220459,
+ "z": "4789a293.82478c",
"wires": [
[
- "4f4ae7b6.577da8"
+ "a7f091ea.70c67"
]
]
},
{
- "id": "200181e1.aab39e",
+ "id": "a5db95d8.460d78",
"type": "outcome",
"name": "other",
"xml": "<outcome value='Other'>\n",
"comments": "",
"outputs": 1,
- "x": 637.9999389648438,
- "y": 408,
- "z": "ec3deb45.e00818",
+ "x": 716.7499465942383,
+ "y": 425.0000057220459,
+ "z": "4789a293.82478c",
"wires": [
[
- "b59848fc.f07918"
+ "b2749711.a1e1b8"
]
]
},
{
- "id": "b59848fc.f07918",
+ "id": "b2749711.a1e1b8",
"type": "block",
"name": "block",
"xml": "<block>\n",
"atomic": "false",
"comments": "",
"outputs": 1,
- "x": 785.9999389648438,
- "y": 407,
- "z": "ec3deb45.e00818",
+ "x": 870.9999504089355,
+ "y": 426.0000057220459,
+ "z": "4789a293.82478c",
"wires": [
[
- "27e24246.a44b8e",
- "91c96ed6.a5b05"
+ "948df1b1.145e8",
+ "1c9a4267.83f8fe"
]
]
},
{
- "id": "4f4ae7b6.577da8",
+ "id": "9dbe8b14.8545c8",
"type": "set",
"name": "set AnsibleReq",
- "xml": "<set>\n<parameter name='nodelist' value=\"`'[' + $quote + $payloadJson.ipaddress-v4-oam + $quote + ']'`\"/>\n<parameter name='playbookname' value='`$prop.lcm.pnf.upgrade-software.playbookname`'/>\n<parameter name='outputPayloadField' value=\"`'.' + $payloadJson.ipaddress-v4-oam + '.Output'`\"/>\n",
+ "xml": "<set>\n<parameter name='nodelist' value=\"`'[' + $quote + $payloadJson.ipaddress-v4-oam + $quote + ']'`\"/>\n<parameter name='outputPayloadField' value=\"`'.' + $payloadJson.ipaddress-v4-oam + '.Output'`\"/>\n",
"comments": "",
- "x": 799,
- "y": 345,
- "z": "ec3deb45.e00818",
+ "x": 1041.500015258789,
+ "y": 225.25000381469727,
+ "z": "4789a293.82478c",
"wires": []
},
{
- "id": "91c96ed6.a5b05",
+ "id": "1c9a4267.83f8fe",
"type": "execute",
"name": "set playbookname",
"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",
"comments": "",
"outputs": 1,
- "x": 1008,
- "y": 387,
- "z": "ec3deb45.e00818",
+ "x": 1093,
+ "y": 398.5,
+ "z": "4789a293.82478c",
"wires": [
[]
]
},
{
- "id": "a40512f5.69e4d",
+ "id": "6c9cb3dc.03d7bc",
"type": "switchNode",
"name": "switch playbookname",
"xml": "<switch test='`$playbookname`'>\n",
"comments": "",
"outputs": 1,
- "x": 438,
- "y": 499,
- "z": "ec3deb45.e00818",
+ "x": 523,
+ "y": 510.5,
+ "z": "4789a293.82478c",
"wires": [
[
- "e6c437a6.29de58"
+ "e38d4527.338bb8"
]
]
},
{
- "id": "e6c437a6.29de58",
+ "id": "e38d4527.338bb8",
"type": "outcome",
"name": "null",
"xml": "<outcome value=''>\n",
"comments": "",
"outputs": 1,
- "x": 609,
- "y": 500,
- "z": "ec3deb45.e00818",
+ "x": 694,
+ "y": 511.5,
+ "z": "4789a293.82478c",
"wires": [
[
- "a4fde5cc.d4c598"
+ "afd73c41.dd42d"
]
]
},
{
- "id": "a4fde5cc.d4c598",
+ "id": "afd73c41.dd42d",
"type": "set",
"name": "set playbookname",
"xml": "<set>\n<parameter name='playbookname' value='`$prop.lcm.upgrade-software.playbookname`'/>",
"comments": "",
- "x": 799,
- "y": 499,
- "z": "ec3deb45.e00818",
+ "x": 884,
+ "y": 510.5,
+ "z": "4789a293.82478c",
"wires": []
},
{
- "id": "2f8a882.7fbf078",
+ "id": "f7c7e177.43b44",
"type": "switchNode",
"name": "switch nodelist",
"xml": "<switch test='`$nodelist`'>\n",
"comments": "",
"outputs": 1,
- "x": 428,
- "y": 558,
- "z": "ec3deb45.e00818",
+ "x": 513,
+ "y": 569.5,
+ "z": "4789a293.82478c",
"wires": [
[
- "fc8a62b5.226f9",
- "174740d3.bb580f"
+ "244a7ef9.90d572",
+ "efb7985a.a80778"
]
]
},
{
- "id": "fc8a62b5.226f9",
+ "id": "244a7ef9.90d572",
"type": "outcome",
"name": "null",
"xml": "<outcome value=''>\n",
"comments": "",
"outputs": 1,
- "x": 608,
- "y": 551,
- "z": "ec3deb45.e00818",
+ "x": 693,
+ "y": 562.5,
+ "z": "4789a293.82478c",
"wires": [
[
- "82a452fa.2b2b4"
+ "e6b6586a.90a5f8"
]
]
},
{
- "id": "82a452fa.2b2b4",
+ "id": "e6b6586a.90a5f8",
"type": "set",
"name": "set nodelist",
"xml": "<set>\n<parameter name='nodelist' value=\"`$prop.ansible.nodelist`\"/>",
"comments": "",
- "x": 765,
- "y": 565,
- "z": "ec3deb45.e00818",
+ "x": 850,
+ "y": 576.5,
+ "z": "4789a293.82478c",
"wires": []
},
{
- "id": "174740d3.bb580f",
+ "id": "efb7985a.a80778",
"type": "outcome",
"name": "empty",
"xml": "<outcome value=\"['']\">\n\n",
"comments": "",
"outputs": 1,
- "x": 607,
- "y": 595,
- "z": "ec3deb45.e00818",
+ "x": 692,
+ "y": 606.5,
+ "z": "4789a293.82478c",
"wires": [
[
- "82a452fa.2b2b4"
+ "e6b6586a.90a5f8"
]
]
},
{
- "id": "2651af68.3f9dc",
+ "id": "6652a4df.406dfc",
"type": "switchNode",
"name": "switch playbookname",
"xml": "<switch test='`$playbookname`'>\n",
"comments": "",
"outputs": 1,
- "x": 1483,
- "y": 430,
- "z": "ec3deb45.e00818",
+ "x": 1568,
+ "y": 441.5,
+ "z": "4789a293.82478c",
"wires": [
[
- "bf08f71c.7cf758"
+ "fdf6c8e8.296a38"
]
]
},
{
- "id": "bf08f71c.7cf758",
+ "id": "fdf6c8e8.296a38",
"type": "outcome",
"name": "null",
"xml": "<outcome value=''>\n",
"comments": "",
"outputs": 1,
- "x": 1661,
- "y": 430,
- "z": "ec3deb45.e00818",
+ "x": 1746,
+ "y": 441.5,
+ "z": "4789a293.82478c",
"wires": [
[
- "61379210.f96dcc"
+ "590854b0.7ac97c"
]
]
},
{
- "id": "5f26038d.9f08dc",
+ "id": "ec745eef.b48a",
"type": "set",
"name": "set nodelist",
"xml": "<set>\n<parameter name='nodelist' value=\"`'[' + $quote + $aai.generic-vnf.ipv4-oam-address + $quote + ']'`\"/>\n",
"comments": "",
- "x": 1456,
- "y": 483,
- "z": "ec3deb45.e00818",
+ "x": 1541,
+ "y": 494.5,
+ "z": "4789a293.82478c",
"wires": []
},
{
- "id": "363cf7ac.eea978",
+ "id": "e295e5e6.4c6048",
"type": "block",
"name": "block",
"xml": "<block>\n",
"atomic": "false",
"comments": "",
"outputs": 1,
- "x": 1286,
- "y": 440,
- "z": "ec3deb45.e00818",
+ "x": 1371,
+ "y": 451.5,
+ "z": "4789a293.82478c",
"wires": [
[
- "2651af68.3f9dc",
- "5f26038d.9f08dc"
+ "6652a4df.406dfc",
+ "ec745eef.b48a"
]
]
},
{
- "id": "61379210.f96dcc",
+ "id": "590854b0.7ac97c",
"type": "execute",
"name": "set playbookname",
"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",
"comments": "",
"outputs": 1,
- "x": 1833,
- "y": 428,
- "z": "ec3deb45.e00818",
- "wires": [
- []
- ]
- },
- {
- "id": "9253558b.1de3f8",
- "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": 1648,
- "y": 939,
- "z": "ec3deb45.e00818",
- "wires": [
- [
- "a452deae.c86e6"
- ]
- ]
- },
- {
- "id": "a452deae.c86e6",
- "type": "failure",
- "name": "failure",
- "xml": "<outcome value='failure'>\n",
- "comments": "",
- "outputs": 1,
- "x": 1830,
- "y": 939,
- "z": "ec3deb45.e00818",
- "wires": [
- [
- "fedb3391.b66c"
- ]
- ]
- },
- {
- "id": "fedb3391.b66c",
- "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": 1960.416748046875,
- "y": 939,
- "z": "ec3deb45.e00818",
+ "x": 1918,
+ "y": 439.5,
+ "z": "4789a293.82478c",
"wires": [
[]
]
},
{
- "id": "4f44742c.4c245c",
- "type": "set",
- "name": "set DmaapReq",
- "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": 1985.666748046875,
- "y": 854,
- "z": "ec3deb45.e00818",
- "wires": []
- },
- {
- "id": "77de5f8d.0aa37",
+ "id": "6a05d1a3.c6749",
"type": "execute",
"name": "execute jsonStringToCtx",
"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",
"comments": "",
"outputs": 1,
- "x": 1663.5001220703125,
- "y": 784.9166259765625,
- "z": "ec3deb45.e00818",
+ "x": 1768,
+ "y": 783.5,
+ "z": "4789a293.82478c",
"wires": [
[]
]
},
{
- "id": "87eb757f.5a9998",
+ "id": "9ad5d754.15c1a8",
"type": "execute",
"name": "execute getAttributeValue",
"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' />",
"comments": "",
"outputs": 1,
- "x": 1669.5001220703125,
- "y": 827.9166259765625,
- "z": "ec3deb45.e00818",
+ "x": 1774,
+ "y": 828.5,
+ "z": "4789a293.82478c",
"wires": [
[]
]
},
{
- "id": "d4c78c4a.10f57",
+ "id": "63045d28.4542d4",
"type": "switchNode",
"name": "switch outputPayload",
"xml": "<switch test='`$outputPayload`'>\n",
"comments": "",
"outputs": 1,
- "x": 1653.5001220703125,
- "y": 874.9166259765625,
- "z": "ec3deb45.e00818",
- "wires": [
- [
- "52af5803.b461c8",
- "f8c7b0fd.65877"
- ]
- ]
- },
- {
- "id": "52af5803.b461c8",
- "type": "outcome",
- "name": "null",
- "xml": "<outcome value=''>\n",
- "comments": "",
- "outputs": 1,
- "x": 1830.5001220703125,
- "y": 853.9166259765625,
- "z": "ec3deb45.e00818",
+ "x": 1760.0000228881836,
+ "y": 904.2500133514404,
+ "z": "4789a293.82478c",
"wires": [
[
- "4f44742c.4c245c"
+ "c0b5f473.074fe8"
]
]
},
{
- "id": "f8c7b0fd.65877",
+ "id": "c0b5f473.074fe8",
"type": "outcome",
"name": "other",
"xml": "<outcome value='Other'>\n",
"comments": "",
"outputs": 1,
- "x": 1829.5001220703125,
- "y": 893.9166259765625,
- "z": "ec3deb45.e00818",
+ "x": 1934.0000267028809,
+ "y": 904.5000133514404,
+ "z": "4789a293.82478c",
"wires": [
[
- "596dd9e6.b15a48"
+ "bbcdc831.3c9348"
]
]
},
{
- "id": "596dd9e6.b15a48",
+ "id": "bbcdc831.3c9348",
"type": "set",
"name": "set DmaapReq with payload",
- "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<parameter name='lcm-dmaap.payload' value='`$outputPayload`'/>",
+ "xml": "<set>\n<parameter name='lcm-dmaap.payload' value='`$outputPayload`'/>",
"comments": "",
- "x": 2027.5001220703125,
- "y": 893.9166259765625,
- "z": "ec3deb45.e00818",
+ "x": 2132.250030517578,
+ "y": 905.0000133514404,
+ "z": "4789a293.82478c",
"wires": []
},
{
- "id": "1310b766.620cb9",
+ "id": "35b87e9e.4b4612",
"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": 2369.5001220703125,
- "y": 971.9166259765625,
- "z": "ec3deb45.e00818",
+ "x": 2471,
+ "y": 986.4999389648438,
+ "z": "4789a293.82478c",
"wires": []
},
{
- "id": "94ccd9bd.ce5728",
+ "id": "17165733.b036f9",
"type": "outcome",
"name": "null",
"xml": "<outcome value=''>\n",
"comments": "",
"outputs": 1,
- "x": 1835.5003662109375,
- "y": 993.9165649414062,
- "z": "ec3deb45.e00818",
+ "x": 1937.000244140625,
+ "y": 1008.4998779296875,
+ "z": "4789a293.82478c",
"wires": [
[
- "acf117a7.e47ff8"
+ "71c2529a.2b6c4c"
]
]
},
{
- "id": "af6eae51.b597d",
+ "id": "6e335499.cca56c",
"type": "outcome",
"name": "other",
"xml": "<outcome value='Other'>\n",
"comments": "",
"outputs": 1,
- "x": 1834.5003662109375,
- "y": 1069.9165649414062,
- "z": "ec3deb45.e00818",
+ "x": 1936.000244140625,
+ "y": 1084.4998779296875,
+ "z": "4789a293.82478c",
"wires": [
[
- "526dfc55.6eeaf4"
+ "586f871e.a07558"
]
]
},
{
- "id": "abc5eb21.233c78",
+ "id": "9a5d17c7.55f4a8",
"type": "switchNode",
"name": "switch outputPayload",
"xml": "<switch test='`$outputPayload`'>\n",
"comments": "",
"outputs": 1,
- "x": 1652.5003662109375,
- "y": 1029.9165649414062,
- "z": "ec3deb45.e00818",
+ "x": 1754.000244140625,
+ "y": 1044.4998779296875,
+ "z": "4789a293.82478c",
"wires": [
[
- "94ccd9bd.ce5728",
- "af6eae51.b597d"
+ "17165733.b036f9",
+ "6e335499.cca56c"
]
]
},
{
- "id": "d4fc7ba0.d97cd8",
+ "id": "a751cca6.d89a",
"type": "returnSuccess",
"name": "return success with payload",
"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`'/>",
"comments": "",
- "x": 2410.5003662109375,
- "y": 1053.9165649414062,
- "z": "ec3deb45.e00818",
+ "x": 2512.000244140625,
+ "y": 1068.4998779296875,
+ "z": "4789a293.82478c",
"wires": []
},
{
- "id": "acf117a7.e47ff8",
+ "id": "71c2529a.2b6c4c",
"type": "switchNode",
"name": "switch result code",
"xml": "<switch test=\"`$org.onap.appc.adapter.ansible.result.code`\">\n",
"comments": "",
"outputs": 1,
- "x": 2005.5003662109375,
- "y": 993.9165649414062,
- "z": "ec3deb45.e00818",
+ "x": 2107.000244140625,
+ "y": 1008.4998779296875,
+ "z": "4789a293.82478c",
"wires": [
[
- "7b6a7dcd.0bf034",
- "964b16ae.6cb568"
+ "b3616040.dfb69",
+ "fd22e048.3d737"
]
]
},
{
- "id": "526dfc55.6eeaf4",
+ "id": "586f871e.a07558",
"type": "switchNode",
"name": "switch result code",
"xml": "<switch test=\"`$org.onap.appc.adapter.ansible.result.code`\">\n",
"comments": "",
"outputs": 1,
- "x": 2005.5003662109375,
- "y": 1069.9165649414062,
- "z": "ec3deb45.e00818",
+ "x": 2107.000244140625,
+ "y": 1084.4998779296875,
+ "z": "4789a293.82478c",
"wires": [
[
- "116f67f9.8b84e8",
- "b7261460.4d2728"
+ "6dbe7e48.8df42",
+ "3f429d60.7d5362"
]
]
},
{
- "id": "270915b4.03f91a",
+ "id": "f97605a1.be13b8",
"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": 2363.5003662109375,
- "y": 1009.9165649414062,
- "z": "ec3deb45.e00818",
+ "x": 2465.000244140625,
+ "y": 1024.4998779296875,
+ "z": "4789a293.82478c",
"wires": []
},
{
- "id": "ba208b9e.ce90f8",
+ "id": "6a5ea797.248c88",
"type": "returnFailure",
"name": "return failure with payload",
"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`'/>",
"comments": "",
- "x": 2406.5003662109375,
- "y": 1091.9165649414062,
- "z": "ec3deb45.e00818",
+ "x": 2508.000244140625,
+ "y": 1106.4998779296875,
+ "z": "4789a293.82478c",
"wires": []
},
{
- "id": "7b6a7dcd.0bf034",
+ "id": "b3616040.dfb69",
"type": "other",
"name": "outcome 400",
"xml": "<outcome value='400'>\n",
"comments": "",
"outputs": 1,
- "x": 2193.5003662109375,
- "y": 971.9165649414062,
- "z": "ec3deb45.e00818",
+ "x": 2295.000244140625,
+ "y": 986.4998779296875,
+ "z": "4789a293.82478c",
"wires": [
[
- "1310b766.620cb9"
+ "35b87e9e.4b4612"
]
]
},
{
- "id": "964b16ae.6cb568",
+ "id": "fd22e048.3d737",
"type": "outcome",
"name": "other",
"xml": "<outcome value='Other'>\n",
"comments": "",
"outputs": 1,
- "x": 2174.5003662109375,
- "y": 1009.9165649414062,
- "z": "ec3deb45.e00818",
+ "x": 2276.000244140625,
+ "y": 1024.4998779296875,
+ "z": "4789a293.82478c",
"wires": [
[
- "270915b4.03f91a"
+ "f97605a1.be13b8"
]
]
},
{
- "id": "116f67f9.8b84e8",
+ "id": "6dbe7e48.8df42",
"type": "other",
"name": "outcome 400",
"xml": "<outcome value='400'>\n",
"comments": "",
"outputs": 1,
- "x": 2194.5003662109375,
- "y": 1053.9165649414062,
- "z": "ec3deb45.e00818",
+ "x": 2296.000244140625,
+ "y": 1068.4998779296875,
+ "z": "4789a293.82478c",
"wires": [
[
- "d4fc7ba0.d97cd8"
+ "a751cca6.d89a"
]
]
},
{
- "id": "b7261460.4d2728",
+ "id": "3f429d60.7d5362",
"type": "outcome",
"name": "other",
"xml": "<outcome value='Other'>\n",
"comments": "",
"outputs": 1,
- "x": 2176.5003662109375,
- "y": 1091.9165649414062,
- "z": "ec3deb45.e00818",
+ "x": 2278.000244140625,
+ "y": 1106.4998779296875,
+ "z": "4789a293.82478c",
"wires": [
[
- "ba208b9e.ce90f8"
+ "6a5ea797.248c88"
]
]
+ },
+ {
+ "id": "a7f091ea.70c67",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 873.2500114440918,
+ "y": 275.75000381469727,
+ "z": "4789a293.82478c",
+ "wires": [
+ [
+ "9dbe8b14.8545c8",
+ "8eab321.a8fd0d"
+ ]
+ ]
+ },
+ {
+ "id": "8eab321.a8fd0d",
+ "type": "switchNode",
+ "name": "switch playbook-name in req",
+ "xml": "<switch test='`$payloadJson.playbook-name`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1079.5000133514404,
+ "y": 320.25000381469727,
+ "z": "4789a293.82478c",
+ "wires": [
+ [
+ "b9ffda2e.115ef8",
+ "b261fc07.37395"
+ ]
+ ]
+ },
+ {
+ "id": "b9ffda2e.115ef8",
+ "type": "outcome",
+ "name": "null",
+ "xml": "<outcome value=''>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1287.0000190734863,
+ "y": 284.00000381469727,
+ "z": "4789a293.82478c",
+ "wires": [
+ [
+ "5945cca6.5e9904"
+ ]
+ ]
+ },
+ {
+ "id": "b261fc07.37395",
+ "type": "outcome",
+ "name": "other",
+ "xml": "<outcome value='Other'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1285.7500228881836,
+ "y": 349.00000381469727,
+ "z": "4789a293.82478c",
+ "wires": [
+ [
+ "366917bb.643c18"
+ ]
+ ]
+ },
+ {
+ "id": "5945cca6.5e9904",
+ "type": "set",
+ "name": "set playbookname from prop",
+ "xml": "<set>\n<parameter name='playbookname' value='`$prop.lcm.pnf.upgrade-software.playbookname`'/>\n",
+ "comments": "",
+ "x": 1489.5000228881836,
+ "y": 284.00000381469727,
+ "z": "4789a293.82478c",
+ "wires": []
+ },
+ {
+ "id": "366917bb.643c18",
+ "type": "set",
+ "name": "set playbookname from req",
+ "xml": "<set>\n<parameter name='playbookname' value='`$payloadJson.playbook-name`'/>\n",
+ "comments": "",
+ "x": 1484.5000228881836,
+ "y": 349.00000381469727,
+ "z": "4789a293.82478c",
+ "wires": []
}
-]
+] \ No newline at end of file