aboutsummaryrefslogtreecommitdiffstats
path: root/platform-logic/lcm/src/main/json/LCM_rollback.json
diff options
context:
space:
mode:
Diffstat (limited to 'platform-logic/lcm/src/main/json/LCM_rollback.json')
-rw-r--r--platform-logic/lcm/src/main/json/LCM_rollback.json940
1 files changed, 562 insertions, 378 deletions
diff --git a/platform-logic/lcm/src/main/json/LCM_rollback.json b/platform-logic/lcm/src/main/json/LCM_rollback.json
index 108d0156..e783ec00 100644
--- a/platform-logic/lcm/src/main/json/LCM_rollback.json
+++ b/platform-logic/lcm/src/main/json/LCM_rollback.json
@@ -1,22 +1,22 @@
[
{
- "id": "603c1b6d.6124c4",
+ "id": "22644446.031e2c",
"type": "method",
"name": "rollback",
"xml": "<method rpc='rollback' mode='sync'>\n",
"comments": "",
"outputs": 1,
- "x": 577,
- "y": 47,
- "z": "deca6c6e.62787",
+ "x": 567.5,
+ "y": 73.75,
+ "z": "369f92b4.305cce",
"wires": [
[
- "8f078f23.03658"
+ "79b7cec0.5cb7d"
]
]
},
{
- "id": "88cbe26c.f2c83",
+ "id": "f17bcbcb.0eb2c8",
"type": "service-logic",
"name": "LCM ${project.version}",
"module": "LCM",
@@ -24,949 +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": 364.99993896484375,
- "y": 48,
- "z": "deca6c6e.62787",
+ "x": 355.49993896484375,
+ "y": 74.75,
+ "z": "369f92b4.305cce",
"wires": [
[
- "603c1b6d.6124c4"
+ "22644446.031e2c"
]
]
},
{
- "id": "76631d3d.b2bda4",
+ "id": "f9678654.f75948",
"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='`$rollback-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='`$rollback-input.common-header.request-id`'/>\n<parameter name='PlaybookName' value='`$playbookname`'/>",
"comments": "",
"outputs": 1,
- "x": 432.00001525878906,
- "y": 655,
- "z": "deca6c6e.62787",
+ "x": 469.50001525878906,
+ "y": 720.75,
+ "z": "369f92b4.305cce",
"wires": [
[
- "86dfcb26.6ad318",
- "ace54675.d37718",
- "bac4c91b.f07a18"
+ "30da80ae.d9fb4",
+ "4fe2be8b.9f8b9",
+ "29b2f38.ce75c0c"
]
]
},
{
- "id": "4b37ff5.334c5",
+ "id": "db88e5a7.4dcf28",
"type": "switchNode",
"name": "switch",
"xml": "<switch test=\"`$org.onap.appc.adapter.ansible.result.code`\">\n",
"comments": "",
"outputs": 1,
- "x": 831.9999389648438,
- "y": 763.0000305175781,
- "z": "deca6c6e.62787",
+ "x": 869.4999389648438,
+ "y": 828.7500305175781,
+ "z": "369f92b4.305cce",
"wires": [
[
- "9a0bf3d2.1d44f",
- "2ee77d61.9094f2",
- "c9baa5a1.b1a3e8"
+ "96dbcf56.55476",
+ "22a86bdb.ccad74",
+ "80a5dac3.8e7148"
]
]
},
{
- "id": "9a0bf3d2.1d44f",
+ "id": "96dbcf56.55476",
"type": "other",
"name": "outcome 500",
"xml": "<outcome value='500'>\n",
"comments": "",
"outputs": 1,
- "x": 976.9999389648438,
- "y": 761.0000381469727,
- "z": "deca6c6e.62787",
+ "x": 1014.4999389648438,
+ "y": 826.7500381469727,
+ "z": "369f92b4.305cce",
"wires": [
[
- "c81014d9.4af6a8"
+ "56f57.16a810aa"
]
]
},
{
- "id": "2ee77d61.9094f2",
+ "id": "22a86bdb.ccad74",
"type": "other",
"name": "outcome 100",
"xml": "<outcome value='100'>\n",
"comments": "",
"outputs": 1,
- "x": 973.9999389648438,
- "y": 818.0000305175781,
- "z": "deca6c6e.62787",
+ "x": 1011.4999389648438,
+ "y": 883.7500305175781,
+ "z": "369f92b4.305cce",
"wires": [
[
- "b8c25e18.a4534"
+ "283d6739.74f598"
]
]
},
{
- "id": "b8c25e18.a4534",
+ "id": "283d6739.74f598",
"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": 1161,
- "y": 818.0000610351562,
- "z": "deca6c6e.62787",
+ "x": 1199.4999389648438,
+ "y": 882.7500305175781,
+ "z": "369f92b4.305cce",
"wires": [
[
- "9fd8cd6c.24d13",
- "f0a35f4d.9195a"
+ "d1f8a15d.af493",
+ "caff8737.7aa8b8"
]
]
},
{
- "id": "ace54675.d37718",
+ "id": "4fe2be8b.9f8b9",
"type": "failure",
"name": "failure",
"xml": "<outcome value='failure'>\n",
"comments": "",
"outputs": 1,
- "x": 690.9999389648438,
- "y": 676.0000915527344,
- "z": "deca6c6e.62787",
+ "x": 728.4999389648438,
+ "y": 741.7500915527344,
+ "z": "369f92b4.305cce",
"wires": [
[
- "c81014d9.4af6a8"
+ "56f57.16a810aa"
]
]
},
{
- "id": "86dfcb26.6ad318",
+ "id": "30da80ae.d9fb4",
"type": "other",
"name": "other",
"xml": "<outcome value='Other'>\n",
"comments": "",
"outputs": 1,
- "x": 692.9999389648438,
- "y": 728.0000610351562,
- "z": "deca6c6e.62787",
+ "x": 730.4999389648438,
+ "y": 793.7500610351562,
+ "z": "369f92b4.305cce",
"wires": [
[
- "4b37ff5.334c5"
+ "db88e5a7.4dcf28"
]
]
},
{
- "id": "c9baa5a1.b1a3e8",
+ "id": "d1f8a15d.af493",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1368.4998779296875,
+ "y": 864.7500610351562,
+ "z": "369f92b4.305cce",
+ "wires": [
+ [
+ "18cd1743.3c3df9"
+ ]
+ ]
+ },
+ {
+ "id": "80a5dac3.8e7148",
"type": "other",
"name": "outcome 101",
"xml": "<outcome value='101'>\n",
"comments": "",
"outputs": 1,
- "x": 973.9999389648438,
- "y": 719.0000686645508,
- "z": "deca6c6e.62787",
+ "x": 1011.4999389648438,
+ "y": 784.7500686645508,
+ "z": "369f92b4.305cce",
"wires": [
[
- "c81014d9.4af6a8"
+ "56f57.16a810aa"
]
]
},
{
- "id": "8024a972.fa79a8",
- "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`'/>",
+ "id": "caff8737.7aa8b8",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
"comments": "",
- "x": 2413.999755859375,
- "y": 948.0000610351562,
- "z": "deca6c6e.62787",
- "wires": []
+ "outputs": 1,
+ "x": 1372.4998779296875,
+ "y": 908.7501220703125,
+ "z": "369f92b4.305cce",
+ "wires": [
+ [
+ "18cd1743.3c3df9"
+ ]
+ ]
},
{
- "id": "9e6a1fde.3d38e",
+ "id": "eca36d4e.0587d",
"type": "dgstart",
"name": "DGSTART",
"outputs": 1,
- "x": 180,
- "y": 47,
- "z": "deca6c6e.62787",
+ "x": 170.5,
+ "y": 73.75,
+ "z": "369f92b4.305cce",
"wires": [
[
- "88cbe26c.f2c83"
+ "f17bcbcb.0eb2c8"
]
]
},
{
- "id": "8f078f23.03658",
+ "id": "79b7cec0.5cb7d",
"type": "block",
- "name": "block : atomic",
- "xml": "<block atomic='true'>",
- "atomic": "true",
+ "name": "block",
+ "xml": "<block atomic='true'>\n",
+ "atomic": "false",
"comments": "",
"outputs": 1,
- "x": 177.9166259765625,
- "y": 139.08331298828125,
- "z": "deca6c6e.62787",
+ "x": 215.41669082641602,
+ "y": 224.83334636688232,
+ "z": "369f92b4.305cce",
"wires": [
[
- "76631d3d.b2bda4",
- "18f99414.0f1f5c",
- "e9a0ae4a.a010c",
- "720dbe92.a2daf",
- "90d2eba5.bddd78",
- "e456084e.3d1b28",
- "abd53cca.80312",
- "86b92780.e4fd18"
+ "f9678654.f75948",
+ "3150eb49.56b364",
+ "3d311f40.b0356",
+ "d04dafe1.a776a",
+ "d6a84e4d.99cf8",
+ "23c2b9e5.228a76",
+ "f65e13cf.33e86",
+ "78201e79.92779"
]
]
},
{
- "id": "18f99414.0f1f5c",
+ "id": "3150eb49.56b364",
"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": 476.0000305175781,
- "y": 172.08334350585938,
- "z": "deca6c6e.62787",
+ "x": 513.5000305175781,
+ "y": 184.83334350585938,
+ "z": "369f92b4.305cce",
"wires": [
[]
]
},
{
- "id": "dd58ea95.701bc8",
+ "id": "d6380b3d.e7dd58",
"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": 1642.9998779296875,
- "y": 625.0834045410156,
- "z": "deca6c6e.62787",
+ "x": 1680.4998779296875,
+ "y": 690.8334045410156,
+ "z": "369f92b4.305cce",
"wires": [
[
- "79c12f79.46a5"
+ "7d366735.40b318"
]
]
},
{
- "id": "79c12f79.46a5",
+ "id": "7d366735.40b318",
"type": "failure",
"name": "failure",
"xml": "<outcome value='failure'>\n",
"comments": "",
"outputs": 1,
- "x": 1812.9998168945312,
- "y": 624.0834045410156,
- "z": "deca6c6e.62787",
+ "x": 1850.4998168945312,
+ "y": 689.8334045410156,
+ "z": "369f92b4.305cce",
"wires": [
[
- "69422560.e902dc"
+ "d429f6f2.1a8228"
]
]
},
{
- "id": "c81014d9.4af6a8",
+ "id": "56f57.16a810aa",
"type": "block",
"name": "block",
"xml": "<block>\n",
"atomic": "false",
"comments": "",
"outputs": 1,
- "x": 1445.9998168945312,
- "y": 649.0834045410156,
- "z": "deca6c6e.62787",
+ "x": 1483.4998168945312,
+ "y": 714.8334045410156,
+ "z": "369f92b4.305cce",
"wires": [
[
- "dd58ea95.701bc8",
- "5a6746.ee1428bc",
- "3c47a348.5e546c"
+ "d6380b3d.e7dd58",
+ "712abf34.0d6f",
+ "d1b68f91.c944a"
]
]
},
{
- "id": "12844f47.97d421",
+ "id": "906287db.12ffb8",
"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": 1690.4998779296875,
- "y": 924.0833740234375,
- "z": "deca6c6e.62787",
+ "x": 1715.9998779296875,
+ "y": 956.8333740234375,
+ "z": "369f92b4.305cce",
"wires": [
[
- "cbef2423.2a36b8"
+ "3cbc715a.7ae70e"
]
]
},
{
- "id": "cbef2423.2a36b8",
+ "id": "3cbc715a.7ae70e",
"type": "failure",
"name": "failure",
"xml": "<outcome value='failure'>\n",
"comments": "",
"outputs": 1,
- "x": 1877.5,
- "y": 924.0833740234375,
- "z": "deca6c6e.62787",
+ "x": 1900.9998779296875,
+ "y": 956.8333740234375,
+ "z": "369f92b4.305cce",
"wires": [
[
- "9fd0c5ed.f195b8"
+ "6851419b.3c644"
]
]
},
{
- "id": "69422560.e902dc",
+ "id": "d429f6f2.1a8228",
"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": 1932.9998779296875,
- "y": 623.0833740234375,
- "z": "deca6c6e.62787",
+ "x": 1970.4998779296875,
+ "y": 688.8333740234375,
+ "z": "369f92b4.305cce",
"wires": [
[]
]
},
{
- "id": "5a6746.ee1428bc",
+ "id": "712abf34.0d6f",
"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": 1624.91650390625,
- "y": 676.0834045410156,
- "z": "deca6c6e.62787",
+ "x": 1662.41650390625,
+ "y": 741.8334045410156,
+ "z": "369f92b4.305cce",
"wires": []
},
{
- "id": "9fd0c5ed.f195b8",
+ "id": "6851419b.3c644",
"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": 2019.91650390625,
- "y": 924.0833740234375,
- "z": "deca6c6e.62787",
+ "x": 2033.4166259765625,
+ "y": 956.8333740234375,
+ "z": "369f92b4.305cce",
"wires": [
[]
]
},
{
- "id": "3c47a348.5e546c",
+ "id": "d1b68f91.c944a",
"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=\"`$rollback-input.common-header.request-id + '-' + $rollback-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='rollback'/>\n<parameter name='lcm-dmaap.type' value='`$prop.lcm.dmaap.type`'/>\n<parameter name='lcm-dmaap.timestamp' value='`$rollback-input.common-header.timestamp`'/>\n<parameter name='lcm-dmaap.api-ver' value='`$rollback-input.common-header.api-ver`'/>\n<parameter name='lcm-dmaap.originator-id' value='`$rollback-input.common-header.originator-id`'/>\n<parameter name='lcm-dmaap.request-id' value='`$rollback-input.common-header.request-id`'/>\n<parameter name='lcm-dmaap.sub-request-id' value='`$rollback-input.common-header.sub-request-id`'/>\n<parameter name='lcm-dmaap.flags.mode' value='`$rollback-input.common-header.flags.mode`'/>\n<parameter name='lcm-dmaap.flags.force' value='`$rollback-input.common-header.flags.force`'/>\n<parameter name='lcm-dmaap.flags.ttl' value='`$rollback-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": 1629.9998779296875,
- "y": 572.0833740234375,
- "z": "deca6c6e.62787",
+ "x": 1667.4998779296875,
+ "y": 637.8333740234375,
+ "z": "369f92b4.305cce",
"wires": []
},
{
- "id": "542925f0.27fbdc",
+ "id": "18cd1743.3c3df9",
"type": "block",
"name": "block",
"xml": "<block>\n",
"atomic": "false",
"comments": "",
"outputs": 1,
- "x": 1482.9998779296875,
- "y": 821.0833740234375,
- "z": "deca6c6e.62787",
+ "x": 1504.4998779296875,
+ "y": 883.8333740234375,
+ "z": "369f92b4.305cce",
"wires": [
[
- "12844f47.97d421",
- "e3737dc2.9a3b6",
- "764a748a.61b14c",
- "9775ae82.61b25",
- "9a61d7f0.2347b8"
+ "906287db.12ffb8",
+ "eb7f81a3.42757",
+ "ec9cf419.aed218",
+ "822ef90c.18eff8",
+ "abc170de.d927e",
+ "81befc92.0842f"
]
]
},
{
- "id": "63386817.4a7cc8",
+ "id": "81befc92.0842f",
"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=\"`$rollback-input.common-header.request-id + '-' + $rollback-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='rollback'/>\n<parameter name='lcm-dmaap.type' value='`$prop.lcm.dmaap.type`'/>\n<parameter name='lcm-dmaap.timestamp' value='`$rollback-input.common-header.timestamp`'/>\n<parameter name='lcm-dmaap.api-ver' value='`$rollback-input.common-header.api-ver`'/>\n<parameter name='lcm-dmaap.originator-id' value='`$rollback-input.common-header.originator-id`'/>\n<parameter name='lcm-dmaap.request-id' value='`$rollback-input.common-header.request-id`'/>\n<parameter name='lcm-dmaap.sub-request-id' value='`$rollback-input.common-header.sub-request-id`'/>\n<parameter name='lcm-dmaap.flags.mode' value='`$rollback-input.common-header.flags.mode`'/>\n<parameter name='lcm-dmaap.flags.force' value='`$rollback-input.common-header.flags.force`'/>\n<parameter name='lcm-dmaap.flags.ttl' value='`$rollback-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`'/>",
+ "xml": "<set>\n<parameter name='lcm-dmaap.version' value='`$prop.lcm.dmaap.version`'/>\n<parameter name='lcm-dmaap.correlation-id' value=\"`$rollback-input.common-header.request-id + '-' + $rollback-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='rollback'/>\n<parameter name='lcm-dmaap.type' value='`$prop.lcm.dmaap.type`'/>\n<parameter name='lcm-dmaap.timestamp' value='`$rollback-input.common-header.timestamp`'/>\n<parameter name='lcm-dmaap.api-ver' value='`$rollback-input.common-header.api-ver`'/>\n<parameter name='lcm-dmaap.originator-id' value='`$rollback-input.common-header.originator-id`'/>\n<parameter name='lcm-dmaap.request-id' value='`$rollback-input.common-header.request-id`'/>\n<parameter name='lcm-dmaap.sub-request-id' value='`$rollback-input.common-header.sub-request-id`'/>\n<parameter name='lcm-dmaap.flags.mode' value='`$rollback-input.common-header.flags.mode`'/>\n<parameter name='lcm-dmaap.flags.force' value='`$rollback-input.common-header.flags.force`'/>\n<parameter name='lcm-dmaap.flags.ttl' value='`$rollback-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": 2042.16650390625,
- "y": 827.0833740234375,
- "z": "deca6c6e.62787",
+ "x": 1702.6666564941406,
+ "y": 870.5833864212036,
+ "z": "369f92b4.305cce",
"wires": []
},
{
- "id": "bac4c91b.f07a18",
+ "id": "29b2f38.ce75c0c",
"type": "not-found",
"name": "not-found",
"xml": "<outcome value='not-found'>\n",
"comments": "",
"outputs": 1,
- "x": 699.9999389648438,
- "y": 628.0000610351562,
- "z": "deca6c6e.62787",
+ "x": 737.4999389648438,
+ "y": 693.7500610351562,
+ "z": "369f92b4.305cce",
"wires": [
[
- "2763f6ed.1a7e1a"
+ "c004f41.ad08008"
]
]
},
{
- "id": "eb87e665.0acf88",
+ "id": "aec7b25c.15792",
"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": 990.9999389648438,
- "y": 587,
- "z": "deca6c6e.62787",
+ "x": 1028.4999389648438,
+ "y": 652.75,
+ "z": "369f92b4.305cce",
"wires": []
},
{
- "id": "2763f6ed.1a7e1a",
+ "id": "c004f41.ad08008",
"type": "block",
"name": "block",
"xml": "<block>\n",
"atomic": "false",
"comments": "",
"outputs": 1,
- "x": 836.9999389648438,
- "y": 622.0000610351562,
- "z": "deca6c6e.62787",
+ "x": 874.4999389648438,
+ "y": 687.7500610351562,
+ "z": "369f92b4.305cce",
"wires": [
[
- "eb87e665.0acf88",
- "c81014d9.4af6a8"
+ "aec7b25c.15792",
+ "56f57.16a810aa"
]
]
},
{
- "id": "e9a0ae4a.a010c",
+ "id": "3d311f40.b0356",
"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",
+ "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": 469,
- "y": 219,
- "z": "deca6c6e.62787",
+ "x": 506.5,
+ "y": 231.75,
+ "z": "369f92b4.305cce",
"wires": []
},
{
- "id": "abd53cca.80312",
+ "id": "1785264e.51581a",
+ "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 = $rollback-input.action-identifiers.vnf-id\" \n\t\tlocal-only=\"false\" \n\t\tpfx='aai.generic-vnf'>",
+ "comments": "",
+ "outputs": 1,
+ "x": 1046.5,
+ "y": 460.75,
+ "z": "369f92b4.305cce",
+ "wires": [
+ [
+ "64e1e5a.ee16c1c"
+ ]
+ ]
+ },
+ {
+ "id": "64e1e5a.ee16c1c",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1204.8907470703125,
+ "y": 459.03399658203125,
+ "z": "369f92b4.305cce",
+ "wires": [
+ [
+ "31c7d490.843fdc"
+ ]
+ ]
+ },
+ {
+ "id": "f65e13cf.33e86",
"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": 397.9998779296875,
- "y": 583,
- "z": "deca6c6e.62787",
+ "x": 435.4998779296875,
+ "y": 648.75,
+ "z": "369f92b4.305cce",
"wires": [
[]
]
},
{
- "id": "90d2eba5.bddd78",
+ "id": "d6a84e4d.99cf8",
"type": "switchNode",
"name": "switch pnf-flag",
"xml": "<switch test='`$payloadJson.pnf-flag`'>\n",
"comments": "",
"outputs": 1,
- "x": 451,
- "y": 320,
- "z": "deca6c6e.62787",
+ "x": 492.25000762939453,
+ "y": 379.5000057220459,
+ "z": "369f92b4.305cce",
"wires": [
[
- "97096eec.158be",
- "db62c67c.f16678"
+ "30e4f46c.d1480c",
+ "a2013485.ae3d68"
]
]
},
{
- "id": "720dbe92.a2daf",
+ "id": "d04dafe1.a776a",
"type": "execute",
"name": "execute jsonStringToCtx",
"xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='jsonStringToCtx'>\n\t<parameter name='source' value='rollback-input.payload' />\n\t<parameter name='outputPath' value='payloadJson' />\n\t<parameter name='isEscaped' value='true' />",
"comments": "",
"outputs": 1,
- "x": 483,
- "y": 266,
- "z": "deca6c6e.62787",
+ "x": 520.5,
+ "y": 278.75,
+ "z": "369f92b4.305cce",
"wires": [
[]
]
},
{
- "id": "97096eec.158be",
+ "id": "30e4f46c.d1480c",
"type": "outcome",
"name": "true",
"xml": "<outcome value='true'>\n",
"comments": "",
"outputs": 1,
- "x": 648,
- "y": 299,
- "z": "deca6c6e.62787",
+ "x": 676.7500076293945,
+ "y": 323.5000057220459,
+ "z": "369f92b4.305cce",
"wires": [
[
- "2baa8c31.1c7364"
+ "c022042b.de2278"
]
]
},
{
- "id": "db62c67c.f16678",
+ "id": "a2013485.ae3d68",
"type": "outcome",
"name": "other",
"xml": "<outcome value='Other'>\n",
"comments": "",
"outputs": 1,
- "x": 648,
- "y": 360,
- "z": "deca6c6e.62787",
+ "x": 679.2499465942383,
+ "y": 431.2500057220459,
+ "z": "369f92b4.305cce",
"wires": [
[
- "e8ec5d49.26bb5"
+ "8adc4a30.e8aab8"
]
]
},
{
- "id": "e8ec5d49.26bb5",
+ "id": "8adc4a30.e8aab8",
"type": "block",
"name": "block",
"xml": "<block>\n",
"atomic": "false",
"comments": "",
"outputs": 1,
- "x": 795.9999389648438,
- "y": 359,
- "z": "deca6c6e.62787",
+ "x": 833.4999504089355,
+ "y": 432.2500057220459,
+ "z": "369f92b4.305cce",
"wires": [
[
- "d1d2edc3.c0ebb"
+ "1785264e.51581a",
+ "6b67b6b7.0fe388"
]
]
},
{
- "id": "2baa8c31.1c7364",
+ "id": "ba864124.fbd17",
"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.rollback.playbookname`'/>\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": 809,
- "y": 297,
- "z": "deca6c6e.62787",
+ "x": 1004.0000152587891,
+ "y": 231.50000381469727,
+ "z": "369f92b4.305cce",
"wires": []
},
{
- "id": "e456084e.3d1b28",
+ "id": "6b67b6b7.0fe388",
+ "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 + '.rollback.playbookname'`\" />\n\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1055.5,
+ "y": 404.75,
+ "z": "369f92b4.305cce",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "23c2b9e5.228a76",
"type": "switchNode",
"name": "switch playbookname",
"xml": "<switch test='`$playbookname`'>\n",
"comments": "",
"outputs": 1,
- "x": 448,
- "y": 451,
- "z": "deca6c6e.62787",
+ "x": 485.5,
+ "y": 516.75,
+ "z": "369f92b4.305cce",
"wires": [
[
- "852cba96.1b8598"
+ "c70d3d1f.891ee"
]
]
},
{
- "id": "852cba96.1b8598",
+ "id": "c70d3d1f.891ee",
"type": "outcome",
"name": "null",
"xml": "<outcome value=''>\n",
"comments": "",
"outputs": 1,
- "x": 619,
- "y": 452,
- "z": "deca6c6e.62787",
+ "x": 656.5,
+ "y": 517.75,
+ "z": "369f92b4.305cce",
"wires": [
[
- "c3a06545.f22d98"
+ "83a84acf.4bd078"
]
]
},
{
- "id": "c3a06545.f22d98",
+ "id": "83a84acf.4bd078",
"type": "set",
"name": "set playbookname",
- "xml": "<set>\n<parameter name='nodelist' value=\"`$prop.ansible.nodelist`\"/>\n<parameter name='playbookname' value='`$prop.lcm.rollback.playbookname`'/>",
+ "xml": "<set>\n<parameter name='playbookname' value='`$prop.lcm.rollback.playbookname`'/>",
"comments": "",
- "x": 809,
- "y": 451,
- "z": "deca6c6e.62787",
+ "x": 846.5,
+ "y": 516.75,
+ "z": "369f92b4.305cce",
"wires": []
},
{
- "id": "86b92780.e4fd18",
+ "id": "78201e79.92779",
"type": "switchNode",
"name": "switch nodelist",
"xml": "<switch test='`$nodelist`'>\n",
"comments": "",
"outputs": 1,
- "x": 438,
- "y": 510,
- "z": "deca6c6e.62787",
+ "x": 475.5,
+ "y": 575.75,
+ "z": "369f92b4.305cce",
"wires": [
[
- "314228d.17719d8",
- "d39f4666.4c5158"
+ "cd45c66d.ce9838",
+ "17f4d31.c678b2d"
]
]
},
{
- "id": "314228d.17719d8",
+ "id": "cd45c66d.ce9838",
"type": "outcome",
"name": "null",
"xml": "<outcome value=''>\n",
"comments": "",
"outputs": 1,
- "x": 618,
- "y": 503,
- "z": "deca6c6e.62787",
+ "x": 655.5,
+ "y": 568.75,
+ "z": "369f92b4.305cce",
"wires": [
[
- "e384eccc.6fd13"
+ "54593bc3.251964"
]
]
},
{
- "id": "e384eccc.6fd13",
+ "id": "54593bc3.251964",
"type": "set",
"name": "set nodelist",
"xml": "<set>\n<parameter name='nodelist' value=\"`$prop.ansible.nodelist`\"/>",
"comments": "",
- "x": 775,
- "y": 517,
- "z": "deca6c6e.62787",
+ "x": 812.5,
+ "y": 582.75,
+ "z": "369f92b4.305cce",
"wires": []
},
{
- "id": "d39f4666.4c5158",
+ "id": "17f4d31.c678b2d",
"type": "outcome",
"name": "empty",
"xml": "<outcome value=\"['']\">\n\n",
"comments": "",
"outputs": 1,
- "x": 617,
- "y": 547,
- "z": "deca6c6e.62787",
+ "x": 654.5,
+ "y": 612.75,
+ "z": "369f92b4.305cce",
"wires": [
[
- "e384eccc.6fd13"
+ "54593bc3.251964"
]
]
},
{
- "id": "d1d2edc3.c0ebb",
- "type": "returnFailure",
- "name": "return failure",
- "xml": "<return status='failure'>\n<parameter name='status.code' value='401' />\n<parameter name='status.message' value='Currently only support PNF.' />",
+ "id": "26a968e7.f7bf98",
+ "type": "switchNode",
+ "name": "switch playbookname",
+ "xml": "<switch test='`$playbookname`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1530.5,
+ "y": 447.75,
+ "z": "369f92b4.305cce",
+ "wires": [
+ [
+ "5f54def1.a67ca"
+ ]
+ ]
+ },
+ {
+ "id": "5f54def1.a67ca",
+ "type": "outcome",
+ "name": "null",
+ "xml": "<outcome value=''>\n",
"comments": "",
- "x": 969,
- "y": 359,
- "z": "deca6c6e.62787",
+ "outputs": 1,
+ "x": 1708.5,
+ "y": 447.75,
+ "z": "369f92b4.305cce",
+ "wires": [
+ [
+ "b2eb228.3781ce"
+ ]
+ ]
+ },
+ {
+ "id": "294832a2.42287e",
+ "type": "set",
+ "name": "set nodelist",
+ "xml": "<set>\n<parameter name='nodelist' value=\"`'[' + $quote + $aai.generic-vnf.ipv4-oam-address + $quote + ']'`\"/>\n",
+ "comments": "",
+ "x": 1503.5,
+ "y": 500.75,
+ "z": "369f92b4.305cce",
"wires": []
},
{
- "id": "e3737dc2.9a3b6",
- "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",
+ "id": "31c7d490.843fdc",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
"comments": "",
"outputs": 1,
- "x": 1703,
- "y": 741,
- "z": "deca6c6e.62787",
+ "x": 1333.5,
+ "y": 457.75,
+ "z": "369f92b4.305cce",
"wires": [
- []
+ [
+ "26a968e7.f7bf98",
+ "294832a2.42287e"
+ ]
]
},
{
- "id": "764a748a.61b14c",
+ "id": "b2eb228.3781ce",
"type": "execute",
- "name": "execute getAttributeValue",
- "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'>\n\t<parameter name='source' value=\"`'resultsJson.' + $payloadJson.ipaddress-v4-oam + '.Output'`\" />\n\t<parameter name='outputPath' value='outputPayload' />",
+ "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 + '.rollback.playbookname'`\" />\n\n",
"comments": "",
"outputs": 1,
- "x": 1709,
- "y": 796,
- "z": "deca6c6e.62787",
+ "x": 1880.5,
+ "y": 445.75,
+ "z": "369f92b4.305cce",
"wires": [
[]
]
},
{
- "id": "9775ae82.61b25",
- "type": "switchNode",
- "name": "switch outputPayload",
- "xml": "<switch test='`$outputPayload`'>\n",
+ "id": "eb7f81a3.42757",
+ "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": 1694,
- "y": 854,
- "z": "deca6c6e.62787",
+ "x": 1730.5,
+ "y": 789.75,
+ "z": "369f92b4.305cce",
"wires": [
- [
- "17082276.b4933e",
- "55bb01f1.008aa"
- ]
+ []
]
},
{
- "id": "ba985798.6d2de8",
- "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=\"`$rollback-input.common-header.request-id + '-' + $rollback-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='rollback'/>\n<parameter name='lcm-dmaap.type' value='`$prop.lcm.dmaap.type`'/>\n<parameter name='lcm-dmaap.timestamp' value='`$rollback-input.common-header.timestamp`'/>\n<parameter name='lcm-dmaap.api-ver' value='`$rollback-input.common-header.api-ver`'/>\n<parameter name='lcm-dmaap.originator-id' value='`$rollback-input.common-header.originator-id`'/>\n<parameter name='lcm-dmaap.request-id' value='`$rollback-input.common-header.request-id`'/>\n<parameter name='lcm-dmaap.sub-request-id' value='`$rollback-input.common-header.sub-request-id`'/>\n<parameter name='lcm-dmaap.flags.mode' value='`$rollback-input.common-header.flags.mode`'/>\n<parameter name='lcm-dmaap.flags.force' value='`$rollback-input.common-header.flags.force`'/>\n<parameter name='lcm-dmaap.flags.ttl' value='`$rollback-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`'/>",
+ "id": "ec9cf419.aed218",
+ "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": "",
- "x": 2080,
- "y": 873,
- "z": "deca6c6e.62787",
- "wires": []
+ "outputs": 1,
+ "x": 1736.5,
+ "y": 834.75,
+ "z": "369f92b4.305cce",
+ "wires": [
+ []
+ ]
},
{
- "id": "17082276.b4933e",
- "type": "outcome",
- "name": "null",
- "xml": "<outcome value=''>\n",
+ "id": "822ef90c.18eff8",
+ "type": "switchNode",
+ "name": "switch outputPayload",
+ "xml": "<switch test='`$outputPayload`'>\n",
"comments": "",
"outputs": 1,
- "x": 1876,
- "y": 827,
- "z": "deca6c6e.62787",
+ "x": 1722.5000228881836,
+ "y": 910.5000133514404,
+ "z": "369f92b4.305cce",
"wires": [
[
- "63386817.4a7cc8"
+ "c302475b.9df818"
]
]
},
{
- "id": "55bb01f1.008aa",
+ "id": "c302475b.9df818",
"type": "outcome",
"name": "other",
"xml": "<outcome value='Other'>\n",
"comments": "",
"outputs": 1,
- "x": 1875,
- "y": 873,
- "z": "deca6c6e.62787",
+ "x": 1896.5000267028809,
+ "y": 910.7500133514404,
+ "z": "369f92b4.305cce",
"wires": [
[
- "ba985798.6d2de8"
+ "a48299cb.b78bd8"
]
]
},
{
- "id": "a556bfd0.26234",
+ "id": "a48299cb.b78bd8",
+ "type": "set",
+ "name": "set DmaapReq with payload",
+ "xml": "<set>\n<parameter name='lcm-dmaap.payload' value='`$outputPayload`'/>",
+ "comments": "",
+ "x": 2094.750030517578,
+ "y": 911.2500133514404,
+ "z": "369f92b4.305cce",
+ "wires": []
+ },
+ {
+ "id": "6c329a17.f8bc34",
+ "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": 2433.5,
+ "y": 992.7499389648438,
+ "z": "369f92b4.305cce",
+ "wires": []
+ },
+ {
+ "id": "6f27e34f.bfe1bc",
"type": "outcome",
"name": "null",
"xml": "<outcome value=''>\n",
"comments": "",
"outputs": 1,
- "x": 1875,
- "y": 970,
- "z": "deca6c6e.62787",
+ "x": 1899.500244140625,
+ "y": 1014.7498779296875,
+ "z": "369f92b4.305cce",
"wires": [
[
- "921bd724.038378"
+ "ecb031ca.9f34d"
]
]
},
{
- "id": "bfa7e392.13bb3",
+ "id": "aba48551.b856a8",
"type": "outcome",
"name": "other",
"xml": "<outcome value='Other'>\n",
"comments": "",
"outputs": 1,
- "x": 1875,
- "y": 1046,
- "z": "deca6c6e.62787",
+ "x": 1898.500244140625,
+ "y": 1090.7498779296875,
+ "z": "369f92b4.305cce",
"wires": [
[
- "37bee539.62e3ea"
+ "6bf32a4b.832444"
]
]
},
{
- "id": "9a61d7f0.2347b8",
+ "id": "abc170de.d927e",
"type": "switchNode",
"name": "switch outputPayload",
"xml": "<switch test='`$outputPayload`'>\n",
"comments": "",
"outputs": 1,
- "x": 1691,
- "y": 1009,
- "z": "deca6c6e.62787",
+ "x": 1716.500244140625,
+ "y": 1050.7498779296875,
+ "z": "369f92b4.305cce",
"wires": [
[
- "a556bfd0.26234",
- "bfa7e392.13bb3"
+ "6f27e34f.bfe1bc",
+ "aba48551.b856a8"
]
]
},
{
- "id": "dbab97fc.ffb6e8",
+ "id": "a234b745.0050e8",
"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": 2455,
- "y": 1030,
- "z": "deca6c6e.62787",
+ "x": 2474.500244140625,
+ "y": 1074.7498779296875,
+ "z": "369f92b4.305cce",
"wires": []
},
{
- "id": "f0a35f4d.9195a",
- "type": "success",
- "name": "success",
- "xml": "<outcome value='success'>\n",
- "comments": "",
- "outputs": 1,
- "x": 1343.9998779296875,
- "y": 841.0001220703125,
- "z": "deca6c6e.62787",
- "wires": [
- [
- "542925f0.27fbdc"
- ]
- ]
- },
- {
- "id": "9fd8cd6c.24d13",
- "type": "failure",
- "name": "failure",
- "xml": "<outcome value='failure'>\n",
- "comments": "",
- "outputs": 1,
- "x": 1340.9998779296875,
- "y": 799.0000610351562,
- "z": "deca6c6e.62787",
- "wires": [
- [
- "542925f0.27fbdc"
- ]
- ]
- },
- {
- "id": "921bd724.038378",
+ "id": "ecb031ca.9f34d",
"type": "switchNode",
"name": "switch result code",
"xml": "<switch test=\"`$org.onap.appc.adapter.ansible.result.code`\">\n",
"comments": "",
"outputs": 1,
- "x": 2050,
- "y": 970,
- "z": "deca6c6e.62787",
+ "x": 2069.500244140625,
+ "y": 1014.7498779296875,
+ "z": "369f92b4.305cce",
"wires": [
[
- "292c4dcf.7880e2",
- "73b035d4.ad062c"
+ "7828ddac.7113c4",
+ "50103e86.045b8"
]
]
},
{
- "id": "37bee539.62e3ea",
+ "id": "6bf32a4b.832444",
"type": "switchNode",
"name": "switch result code",
"xml": "<switch test=\"`$org.onap.appc.adapter.ansible.result.code`\">\n",
"comments": "",
"outputs": 1,
- "x": 2050,
- "y": 1046,
- "z": "deca6c6e.62787",
+ "x": 2069.500244140625,
+ "y": 1090.7498779296875,
+ "z": "369f92b4.305cce",
"wires": [
[
- "7e470c4a.386af4",
- "5feb02a4.d890ac"
+ "6e3f91ae.9416f",
+ "bbd2dd1d.f1bdc"
]
]
},
{
- "id": "7ef093b7.2cf64c",
+ "id": "c74eca80.53d6a8",
"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": 2408,
- "y": 986,
- "z": "deca6c6e.62787",
+ "x": 2427.500244140625,
+ "y": 1030.7498779296875,
+ "z": "369f92b4.305cce",
"wires": []
},
{
- "id": "b08c6ff3.d3ef1",
+ "id": "6a92df8c.f43f7",
"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": 2451,
- "y": 1068,
- "z": "deca6c6e.62787",
+ "x": 2470.500244140625,
+ "y": 1112.7498779296875,
+ "z": "369f92b4.305cce",
"wires": []
},
{
- "id": "292c4dcf.7880e2",
+ "id": "7828ddac.7113c4",
"type": "other",
"name": "outcome 400",
"xml": "<outcome value='400'>\n",
"comments": "",
"outputs": 1,
- "x": 2238,
- "y": 948,
- "z": "deca6c6e.62787",
+ "x": 2257.500244140625,
+ "y": 992.7498779296875,
+ "z": "369f92b4.305cce",
"wires": [
[
- "8024a972.fa79a8"
+ "6c329a17.f8bc34"
]
]
},
{
- "id": "73b035d4.ad062c",
+ "id": "50103e86.045b8",
"type": "outcome",
"name": "other",
"xml": "<outcome value='Other'>\n",
"comments": "",
"outputs": 1,
- "x": 2219,
- "y": 986,
- "z": "deca6c6e.62787",
+ "x": 2238.500244140625,
+ "y": 1030.7498779296875,
+ "z": "369f92b4.305cce",
"wires": [
[
- "7ef093b7.2cf64c"
+ "c74eca80.53d6a8"
]
]
},
{
- "id": "7e470c4a.386af4",
+ "id": "6e3f91ae.9416f",
"type": "other",
"name": "outcome 400",
"xml": "<outcome value='400'>\n",
"comments": "",
"outputs": 1,
- "x": 2239,
- "y": 1030,
- "z": "deca6c6e.62787",
+ "x": 2258.500244140625,
+ "y": 1074.7498779296875,
+ "z": "369f92b4.305cce",
+ "wires": [
+ [
+ "a234b745.0050e8"
+ ]
+ ]
+ },
+ {
+ "id": "bbd2dd1d.f1bdc",
+ "type": "outcome",
+ "name": "other",
+ "xml": "<outcome value='Other'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2240.500244140625,
+ "y": 1112.7498779296875,
+ "z": "369f92b4.305cce",
+ "wires": [
+ [
+ "6a92df8c.f43f7"
+ ]
+ ]
+ },
+ {
+ "id": "c022042b.de2278",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 835.7500114440918,
+ "y": 282.00000381469727,
+ "z": "369f92b4.305cce",
"wires": [
[
- "dbab97fc.ffb6e8"
+ "ba864124.fbd17",
+ "8483b1ff.62265"
]
]
},
{
- "id": "5feb02a4.d890ac",
+ "id": "8483b1ff.62265",
+ "type": "switchNode",
+ "name": "switch playbook-name in req",
+ "xml": "<switch test='`$payloadJson.playbook-name`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1042.0000133514404,
+ "y": 326.50000381469727,
+ "z": "369f92b4.305cce",
+ "wires": [
+ [
+ "bb00ffff.87cfb",
+ "433808fa.337a18"
+ ]
+ ]
+ },
+ {
+ "id": "bb00ffff.87cfb",
+ "type": "outcome",
+ "name": "null",
+ "xml": "<outcome value=''>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1249.5000190734863,
+ "y": 290.25000381469727,
+ "z": "369f92b4.305cce",
+ "wires": [
+ [
+ "33939f7.002cb6"
+ ]
+ ]
+ },
+ {
+ "id": "433808fa.337a18",
"type": "outcome",
"name": "other",
"xml": "<outcome value='Other'>\n",
"comments": "",
"outputs": 1,
- "x": 2221,
- "y": 1068,
- "z": "deca6c6e.62787",
+ "x": 1248.2500228881836,
+ "y": 355.25000381469727,
+ "z": "369f92b4.305cce",
"wires": [
[
- "b08c6ff3.d3ef1"
+ "4b181e16.e7061"
]
]
+ },
+ {
+ "id": "33939f7.002cb6",
+ "type": "set",
+ "name": "set playbookname from prop",
+ "xml": "<set>\n<parameter name='playbookname' value='`$prop.lcm.pnf.rollback.playbookname`'/>\n",
+ "comments": "",
+ "x": 1452.0000228881836,
+ "y": 290.25000381469727,
+ "z": "369f92b4.305cce",
+ "wires": []
+ },
+ {
+ "id": "4b181e16.e7061",
+ "type": "set",
+ "name": "set playbookname from req",
+ "xml": "<set>\n<parameter name='playbookname' value='`$payloadJson.playbook-name`'/>\n",
+ "comments": "",
+ "x": 1447.0000228881836,
+ "y": 355.25000381469727,
+ "z": "369f92b4.305cce",
+ "wires": []
}
] \ No newline at end of file