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.json784
1 files changed, 527 insertions, 257 deletions
diff --git a/platform-logic/lcm/src/main/json/LCM_rollback.json b/platform-logic/lcm/src/main/json/LCM_rollback.json
index 96adf3f4..108d0156 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": "367cac6c.e28ad4",
+ "id": "603c1b6d.6124c4",
"type": "method",
"name": "rollback",
"xml": "<method rpc='rollback' mode='sync'>\n",
"comments": "",
"outputs": 1,
- "x": 606,
- "y": 73,
- "z": "6f1e5235.30d27c",
+ "x": 577,
+ "y": 47,
+ "z": "deca6c6e.62787",
"wires": [
[
- "397a12a.10f34ee"
+ "8f078f23.03658"
]
]
},
{
- "id": "b7a7c5dd.d286a8",
+ "id": "88cbe26c.f2c83",
"type": "service-logic",
"name": "LCM ${project.version}",
"module": "LCM",
@@ -24,679 +24,949 @@
"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": 393.99993896484375,
- "y": 74,
- "z": "6f1e5235.30d27c",
+ "x": 364.99993896484375,
+ "y": 48,
+ "z": "deca6c6e.62787",
"wires": [
[
- "367cac6c.e28ad4"
+ "603c1b6d.6124c4"
]
]
},
{
- "id": "2749994d.fe16d6",
+ "id": "76631d3d.b2bda4",
"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": 461.00001525878906,
- "y": 681,
- "z": "6f1e5235.30d27c",
+ "x": 432.00001525878906,
+ "y": 655,
+ "z": "deca6c6e.62787",
"wires": [
[
- "d80c72ca.e0d3b",
- "3b639a7b.0ca876",
- "f4b3d5c4.d9b698"
+ "86dfcb26.6ad318",
+ "ace54675.d37718",
+ "bac4c91b.f07a18"
]
]
},
{
- "id": "3f74fb5f.f66a64",
+ "id": "4b37ff5.334c5",
"type": "switchNode",
"name": "switch",
"xml": "<switch test=\"`$org.onap.appc.adapter.ansible.result.code`\">\n",
"comments": "",
"outputs": 1,
- "x": 860.9999389648438,
- "y": 789.0000305175781,
- "z": "6f1e5235.30d27c",
+ "x": 831.9999389648438,
+ "y": 763.0000305175781,
+ "z": "deca6c6e.62787",
"wires": [
[
- "5e7ae3c.af98c1c",
- "80745976.4dae58",
- "2d735711.50c158"
+ "9a0bf3d2.1d44f",
+ "2ee77d61.9094f2",
+ "c9baa5a1.b1a3e8"
]
]
},
{
- "id": "5e7ae3c.af98c1c",
+ "id": "9a0bf3d2.1d44f",
"type": "other",
"name": "outcome 500",
"xml": "<outcome value='500'>\n",
"comments": "",
"outputs": 1,
- "x": 1005.9999389648438,
- "y": 787.0000381469727,
- "z": "6f1e5235.30d27c",
+ "x": 976.9999389648438,
+ "y": 761.0000381469727,
+ "z": "deca6c6e.62787",
"wires": [
[
- "c157f020.8fa16"
+ "c81014d9.4af6a8"
]
]
},
{
- "id": "80745976.4dae58",
+ "id": "2ee77d61.9094f2",
"type": "other",
"name": "outcome 100",
"xml": "<outcome value='100'>\n",
"comments": "",
"outputs": 1,
- "x": 1002.9999389648438,
- "y": 844.0000305175781,
- "z": "6f1e5235.30d27c",
+ "x": 973.9999389648438,
+ "y": 818.0000305175781,
+ "z": "deca6c6e.62787",
"wires": [
[
- "8633c607.bab378"
+ "b8c25e18.a4534"
]
]
},
{
- "id": "8633c607.bab378",
+ "id": "b8c25e18.a4534",
"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": 1190.9999389648438,
- "y": 843.0000305175781,
- "z": "6f1e5235.30d27c",
+ "x": 1161,
+ "y": 818.0000610351562,
+ "z": "deca6c6e.62787",
"wires": [
[
- "7d406d3c.e2a7a4",
- "c98b9933.a78a78"
+ "9fd8cd6c.24d13",
+ "f0a35f4d.9195a"
]
]
},
{
- "id": "3b639a7b.0ca876",
+ "id": "ace54675.d37718",
"type": "failure",
"name": "failure",
"xml": "<outcome value='failure'>\n",
"comments": "",
"outputs": 1,
- "x": 719.9999389648438,
- "y": 702.0000915527344,
- "z": "6f1e5235.30d27c",
+ "x": 690.9999389648438,
+ "y": 676.0000915527344,
+ "z": "deca6c6e.62787",
"wires": [
[
- "c157f020.8fa16"
+ "c81014d9.4af6a8"
]
]
},
{
- "id": "d80c72ca.e0d3b",
+ "id": "86dfcb26.6ad318",
"type": "other",
"name": "other",
"xml": "<outcome value='Other'>\n",
"comments": "",
"outputs": 1,
- "x": 721.9999389648438,
- "y": 754.0000610351562,
- "z": "6f1e5235.30d27c",
+ "x": 692.9999389648438,
+ "y": 728.0000610351562,
+ "z": "deca6c6e.62787",
"wires": [
[
- "3f74fb5f.f66a64"
+ "4b37ff5.334c5"
]
]
},
{
- "id": "7d406d3c.e2a7a4",
- "type": "failure",
- "name": "failure",
- "xml": "<outcome value='failure'>\n",
- "comments": "",
- "outputs": 1,
- "x": 1359.9999389648438,
- "y": 801.0000381469727,
- "z": "6f1e5235.30d27c",
- "wires": [
- [
- "c157f020.8fa16"
- ]
- ]
- },
- {
- "id": "2d735711.50c158",
+ "id": "c9baa5a1.b1a3e8",
"type": "other",
"name": "outcome 101",
"xml": "<outcome value='101'>\n",
"comments": "",
"outputs": 1,
- "x": 1002.9999389648438,
- "y": 745.0000686645508,
- "z": "6f1e5235.30d27c",
+ "x": 973.9999389648438,
+ "y": 719.0000686645508,
+ "z": "deca6c6e.62787",
"wires": [
[
- "c157f020.8fa16"
+ "c81014d9.4af6a8"
]
]
},
{
- "id": "c98b9933.a78a78",
- "type": "success",
- "name": "success",
- "xml": "<outcome value='success'>\n",
- "comments": "",
- "outputs": 1,
- "x": 1367.9998779296875,
- "y": 849.0001220703125,
- "z": "6f1e5235.30d27c",
- "wires": [
- [
- "5b424098.08bd5"
- ]
- ]
- },
- {
- "id": "4e1d4556.7dd52c",
+ "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`'/>",
"comments": "",
- "x": 1661.9998779296875,
- "y": 906.0000610351562,
- "z": "6f1e5235.30d27c",
+ "x": 2413.999755859375,
+ "y": 948.0000610351562,
+ "z": "deca6c6e.62787",
"wires": []
},
{
- "id": "d900eabd.53e918",
+ "id": "9e6a1fde.3d38e",
"type": "dgstart",
"name": "DGSTART",
"outputs": 1,
- "x": 209,
- "y": 73,
- "z": "6f1e5235.30d27c",
+ "x": 180,
+ "y": 47,
+ "z": "deca6c6e.62787",
"wires": [
[
- "b7a7c5dd.d286a8"
+ "88cbe26c.f2c83"
]
]
},
{
- "id": "397a12a.10f34ee",
+ "id": "8f078f23.03658",
"type": "block",
"name": "block : atomic",
"xml": "<block atomic='true'>",
"atomic": "true",
"comments": "",
"outputs": 1,
- "x": 206.9166259765625,
- "y": 165.08331298828125,
- "z": "6f1e5235.30d27c",
+ "x": 177.9166259765625,
+ "y": 139.08331298828125,
+ "z": "deca6c6e.62787",
"wires": [
[
- "2749994d.fe16d6",
- "73725554.5774bc",
- "8603ce63.b7c47",
- "9a79bc82.279ce",
- "cc7baeb9.6a3dc",
- "b9b832a7.ed87d",
- "16e37417.d2c8bc",
- "763cfac9.48a8a4"
+ "76631d3d.b2bda4",
+ "18f99414.0f1f5c",
+ "e9a0ae4a.a010c",
+ "720dbe92.a2daf",
+ "90d2eba5.bddd78",
+ "e456084e.3d1b28",
+ "abd53cca.80312",
+ "86b92780.e4fd18"
]
]
},
{
- "id": "73725554.5774bc",
+ "id": "18f99414.0f1f5c",
"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": 505.0000305175781,
- "y": 198.08334350585938,
- "z": "6f1e5235.30d27c",
+ "x": 476.0000305175781,
+ "y": 172.08334350585938,
+ "z": "deca6c6e.62787",
"wires": [
[]
]
},
{
- "id": "c9d7b572.9b1b08",
+ "id": "dd58ea95.701bc8",
"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": 1671.9998779296875,
- "y": 651.0834045410156,
- "z": "6f1e5235.30d27c",
+ "x": 1642.9998779296875,
+ "y": 625.0834045410156,
+ "z": "deca6c6e.62787",
"wires": [
[
- "18a85145.032faf"
+ "79c12f79.46a5"
]
]
},
{
- "id": "18a85145.032faf",
+ "id": "79c12f79.46a5",
"type": "failure",
"name": "failure",
"xml": "<outcome value='failure'>\n",
"comments": "",
"outputs": 1,
- "x": 1841.9998168945312,
- "y": 650.0834045410156,
- "z": "6f1e5235.30d27c",
+ "x": 1812.9998168945312,
+ "y": 624.0834045410156,
+ "z": "deca6c6e.62787",
"wires": [
[
- "1f387472.1096ac"
+ "69422560.e902dc"
]
]
},
{
- "id": "c157f020.8fa16",
+ "id": "c81014d9.4af6a8",
"type": "block",
"name": "block",
"xml": "<block>\n",
"atomic": "false",
"comments": "",
"outputs": 1,
- "x": 1474.9998168945312,
- "y": 675.0834045410156,
- "z": "6f1e5235.30d27c",
+ "x": 1445.9998168945312,
+ "y": 649.0834045410156,
+ "z": "deca6c6e.62787",
"wires": [
[
- "c9d7b572.9b1b08",
- "b8d2a948.9f6268",
- "9c77e950.a59098"
+ "dd58ea95.701bc8",
+ "5a6746.ee1428bc",
+ "3c47a348.5e546c"
]
]
},
{
- "id": "246949fc.089f56",
+ "id": "12844f47.97d421",
"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": 1672.4998779296875,
- "y": 856.0833740234375,
- "z": "6f1e5235.30d27c",
+ "x": 1690.4998779296875,
+ "y": 924.0833740234375,
+ "z": "deca6c6e.62787",
"wires": [
[
- "3c6c9ce.ec3e364"
+ "cbef2423.2a36b8"
]
]
},
{
- "id": "3c6c9ce.ec3e364",
+ "id": "cbef2423.2a36b8",
"type": "failure",
"name": "failure",
"xml": "<outcome value='failure'>\n",
"comments": "",
"outputs": 1,
- "x": 1840.4998779296875,
- "y": 856.0833740234375,
- "z": "6f1e5235.30d27c",
+ "x": 1877.5,
+ "y": 924.0833740234375,
+ "z": "deca6c6e.62787",
"wires": [
[
- "8c845e57.511d"
+ "9fd0c5ed.f195b8"
]
]
},
{
- "id": "1f387472.1096ac",
+ "id": "69422560.e902dc",
"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": 1961.9998779296875,
- "y": 649.0833740234375,
- "z": "6f1e5235.30d27c",
+ "x": 1932.9998779296875,
+ "y": 623.0833740234375,
+ "z": "deca6c6e.62787",
"wires": [
[]
]
},
{
- "id": "b8d2a948.9f6268",
+ "id": "5a6746.ee1428bc",
"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": 1653.91650390625,
- "y": 702.0834045410156,
- "z": "6f1e5235.30d27c",
+ "x": 1624.91650390625,
+ "y": 676.0834045410156,
+ "z": "deca6c6e.62787",
"wires": []
},
{
- "id": "8c845e57.511d",
+ "id": "9fd0c5ed.f195b8",
"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": 1968.9166259765625,
- "y": 856.0833740234375,
- "z": "6f1e5235.30d27c",
+ "x": 2019.91650390625,
+ "y": 924.0833740234375,
+ "z": "deca6c6e.62787",
"wires": [
[]
]
},
{
- "id": "9c77e950.a59098",
+ "id": "3c47a348.5e546c",
"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": 1658.9998779296875,
- "y": 598.0833740234375,
- "z": "6f1e5235.30d27c",
+ "x": 1629.9998779296875,
+ "y": 572.0833740234375,
+ "z": "deca6c6e.62787",
"wires": []
},
{
- "id": "5b424098.08bd5",
+ "id": "542925f0.27fbdc",
"type": "block",
"name": "block",
"xml": "<block>\n",
"atomic": "false",
"comments": "",
"outputs": 1,
- "x": 1495.9998779296875,
- "y": 850.0833740234375,
- "z": "6f1e5235.30d27c",
+ "x": 1482.9998779296875,
+ "y": 821.0833740234375,
+ "z": "deca6c6e.62787",
"wires": [
[
- "246949fc.089f56",
- "4d96ab15.f92c04",
- "4e1d4556.7dd52c"
+ "12844f47.97d421",
+ "e3737dc2.9a3b6",
+ "764a748a.61b14c",
+ "9775ae82.61b25",
+ "9a61d7f0.2347b8"
]
]
},
{
- "id": "4d96ab15.f92c04",
+ "id": "63386817.4a7cc8",
"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",
+ "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`'/>",
"comments": "",
- "x": 1662.1666259765625,
- "y": 801.0833740234375,
- "z": "6f1e5235.30d27c",
+ "x": 2042.16650390625,
+ "y": 827.0833740234375,
+ "z": "deca6c6e.62787",
"wires": []
},
{
- "id": "f4b3d5c4.d9b698",
+ "id": "bac4c91b.f07a18",
"type": "not-found",
"name": "not-found",
"xml": "<outcome value='not-found'>\n",
"comments": "",
"outputs": 1,
- "x": 728.9999389648438,
- "y": 654.0000610351562,
- "z": "6f1e5235.30d27c",
+ "x": 699.9999389648438,
+ "y": 628.0000610351562,
+ "z": "deca6c6e.62787",
"wires": [
[
- "9b946286.c1fc1"
+ "2763f6ed.1a7e1a"
]
]
},
{
- "id": "2c09132b.2c598c",
+ "id": "eb87e665.0acf88",
"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": 1019.9999389648438,
- "y": 613,
- "z": "6f1e5235.30d27c",
+ "x": 990.9999389648438,
+ "y": 587,
+ "z": "deca6c6e.62787",
"wires": []
},
{
- "id": "9b946286.c1fc1",
+ "id": "2763f6ed.1a7e1a",
"type": "block",
"name": "block",
"xml": "<block>\n",
"atomic": "false",
"comments": "",
"outputs": 1,
- "x": 865.9999389648438,
- "y": 648.0000610351562,
- "z": "6f1e5235.30d27c",
+ "x": 836.9999389648438,
+ "y": 622.0000610351562,
+ "z": "deca6c6e.62787",
"wires": [
[
- "2c09132b.2c598c",
- "c157f020.8fa16"
+ "eb87e665.0acf88",
+ "c81014d9.4af6a8"
]
]
},
{
- "id": "8603ce63.b7c47",
+ "id": "e9a0ae4a.a010c",
"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",
"comments": "",
- "x": 498,
- "y": 245,
- "z": "6f1e5235.30d27c",
+ "x": 469,
+ "y": 219,
+ "z": "deca6c6e.62787",
"wires": []
},
{
- "id": "16e37417.d2c8bc",
+ "id": "abd53cca.80312",
"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": 426.9998779296875,
- "y": 609,
- "z": "6f1e5235.30d27c",
+ "x": 397.9998779296875,
+ "y": 583,
+ "z": "deca6c6e.62787",
"wires": [
[]
]
},
{
- "id": "cc7baeb9.6a3dc",
+ "id": "90d2eba5.bddd78",
"type": "switchNode",
"name": "switch pnf-flag",
"xml": "<switch test='`$payloadJson.pnf-flag`'>\n",
"comments": "",
"outputs": 1,
- "x": 480,
- "y": 346,
- "z": "6f1e5235.30d27c",
+ "x": 451,
+ "y": 320,
+ "z": "deca6c6e.62787",
"wires": [
[
- "b515ebb.9b7de18",
- "ea8f46f7.654968"
+ "97096eec.158be",
+ "db62c67c.f16678"
]
]
},
{
- "id": "9a79bc82.279ce",
+ "id": "720dbe92.a2daf",
"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": 512,
- "y": 292,
- "z": "6f1e5235.30d27c",
+ "x": 483,
+ "y": 266,
+ "z": "deca6c6e.62787",
"wires": [
[]
]
},
{
- "id": "b515ebb.9b7de18",
+ "id": "97096eec.158be",
"type": "outcome",
"name": "true",
"xml": "<outcome value='true'>\n",
"comments": "",
"outputs": 1,
- "x": 677,
- "y": 325,
- "z": "6f1e5235.30d27c",
+ "x": 648,
+ "y": 299,
+ "z": "deca6c6e.62787",
"wires": [
[
- "d8920a01.f108b8"
+ "2baa8c31.1c7364"
]
]
},
{
- "id": "ea8f46f7.654968",
+ "id": "db62c67c.f16678",
"type": "outcome",
"name": "other",
"xml": "<outcome value='Other'>\n",
"comments": "",
"outputs": 1,
- "x": 677,
- "y": 386,
- "z": "6f1e5235.30d27c",
+ "x": 648,
+ "y": 360,
+ "z": "deca6c6e.62787",
"wires": [
[
- "32f9eda7.1c1082"
+ "e8ec5d49.26bb5"
]
]
},
{
- "id": "32f9eda7.1c1082",
+ "id": "e8ec5d49.26bb5",
"type": "block",
"name": "block",
"xml": "<block>\n",
"atomic": "false",
"comments": "",
"outputs": 1,
- "x": 824.9999389648438,
- "y": 385,
- "z": "6f1e5235.30d27c",
+ "x": 795.9999389648438,
+ "y": 359,
+ "z": "deca6c6e.62787",
"wires": [
[
- "3756c2a1.fa5d6e"
+ "d1d2edc3.c0ebb"
]
]
},
{
- "id": "d8920a01.f108b8",
+ "id": "2baa8c31.1c7364",
"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",
"comments": "",
- "x": 838,
- "y": 323,
- "z": "6f1e5235.30d27c",
+ "x": 809,
+ "y": 297,
+ "z": "deca6c6e.62787",
"wires": []
},
{
- "id": "b9b832a7.ed87d",
+ "id": "e456084e.3d1b28",
"type": "switchNode",
"name": "switch playbookname",
"xml": "<switch test='`$playbookname`'>\n",
"comments": "",
"outputs": 1,
- "x": 477,
- "y": 477,
- "z": "6f1e5235.30d27c",
+ "x": 448,
+ "y": 451,
+ "z": "deca6c6e.62787",
"wires": [
[
- "5725646c.c7b37c"
+ "852cba96.1b8598"
]
]
},
{
- "id": "5725646c.c7b37c",
+ "id": "852cba96.1b8598",
"type": "outcome",
"name": "null",
"xml": "<outcome value=''>\n",
"comments": "",
"outputs": 1,
- "x": 648,
- "y": 478,
- "z": "6f1e5235.30d27c",
+ "x": 619,
+ "y": 452,
+ "z": "deca6c6e.62787",
"wires": [
[
- "4546e558.72429c"
+ "c3a06545.f22d98"
]
]
},
{
- "id": "4546e558.72429c",
+ "id": "c3a06545.f22d98",
"type": "set",
"name": "set playbookname",
"xml": "<set>\n<parameter name='nodelist' value=\"`$prop.ansible.nodelist`\"/>\n<parameter name='playbookname' value='`$prop.lcm.rollback.playbookname`'/>",
"comments": "",
- "x": 838,
- "y": 477,
- "z": "6f1e5235.30d27c",
+ "x": 809,
+ "y": 451,
+ "z": "deca6c6e.62787",
"wires": []
},
{
- "id": "763cfac9.48a8a4",
+ "id": "86b92780.e4fd18",
"type": "switchNode",
"name": "switch nodelist",
"xml": "<switch test='`$nodelist`'>\n",
"comments": "",
"outputs": 1,
- "x": 467,
- "y": 536,
- "z": "6f1e5235.30d27c",
+ "x": 438,
+ "y": 510,
+ "z": "deca6c6e.62787",
"wires": [
[
- "76eb51c0.552ce",
- "178c823.496cd7e"
+ "314228d.17719d8",
+ "d39f4666.4c5158"
]
]
},
{
- "id": "76eb51c0.552ce",
+ "id": "314228d.17719d8",
"type": "outcome",
"name": "null",
"xml": "<outcome value=''>\n",
"comments": "",
"outputs": 1,
- "x": 647,
- "y": 529,
- "z": "6f1e5235.30d27c",
+ "x": 618,
+ "y": 503,
+ "z": "deca6c6e.62787",
"wires": [
[
- "66b6e37a.9e852c"
+ "e384eccc.6fd13"
]
]
},
{
- "id": "66b6e37a.9e852c",
+ "id": "e384eccc.6fd13",
"type": "set",
"name": "set nodelist",
"xml": "<set>\n<parameter name='nodelist' value=\"`$prop.ansible.nodelist`\"/>",
"comments": "",
- "x": 804,
- "y": 543,
- "z": "6f1e5235.30d27c",
+ "x": 775,
+ "y": 517,
+ "z": "deca6c6e.62787",
"wires": []
},
{
- "id": "178c823.496cd7e",
+ "id": "d39f4666.4c5158",
"type": "outcome",
"name": "empty",
"xml": "<outcome value=\"['']\">\n\n",
"comments": "",
"outputs": 1,
- "x": 646,
- "y": 573,
- "z": "6f1e5235.30d27c",
+ "x": 617,
+ "y": 547,
+ "z": "deca6c6e.62787",
"wires": [
[
- "66b6e37a.9e852c"
+ "e384eccc.6fd13"
]
]
},
{
- "id": "3756c2a1.fa5d6e",
+ "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.' />",
"comments": "",
- "x": 998,
- "y": 385,
- "z": "6f1e5235.30d27c",
+ "x": 969,
+ "y": 359,
+ "z": "deca6c6e.62787",
"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",
+ "comments": "",
+ "outputs": 1,
+ "x": 1703,
+ "y": 741,
+ "z": "deca6c6e.62787",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "764a748a.61b14c",
+ "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' />",
+ "comments": "",
+ "outputs": 1,
+ "x": 1709,
+ "y": 796,
+ "z": "deca6c6e.62787",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "9775ae82.61b25",
+ "type": "switchNode",
+ "name": "switch outputPayload",
+ "xml": "<switch test='`$outputPayload`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1694,
+ "y": 854,
+ "z": "deca6c6e.62787",
+ "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`'/>",
+ "comments": "",
+ "x": 2080,
+ "y": 873,
+ "z": "deca6c6e.62787",
+ "wires": []
+ },
+ {
+ "id": "17082276.b4933e",
+ "type": "outcome",
+ "name": "null",
+ "xml": "<outcome value=''>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1876,
+ "y": 827,
+ "z": "deca6c6e.62787",
+ "wires": [
+ [
+ "63386817.4a7cc8"
+ ]
+ ]
+ },
+ {
+ "id": "55bb01f1.008aa",
+ "type": "outcome",
+ "name": "other",
+ "xml": "<outcome value='Other'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1875,
+ "y": 873,
+ "z": "deca6c6e.62787",
+ "wires": [
+ [
+ "ba985798.6d2de8"
+ ]
+ ]
+ },
+ {
+ "id": "a556bfd0.26234",
+ "type": "outcome",
+ "name": "null",
+ "xml": "<outcome value=''>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1875,
+ "y": 970,
+ "z": "deca6c6e.62787",
+ "wires": [
+ [
+ "921bd724.038378"
+ ]
+ ]
+ },
+ {
+ "id": "bfa7e392.13bb3",
+ "type": "outcome",
+ "name": "other",
+ "xml": "<outcome value='Other'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1875,
+ "y": 1046,
+ "z": "deca6c6e.62787",
+ "wires": [
+ [
+ "37bee539.62e3ea"
+ ]
+ ]
+ },
+ {
+ "id": "9a61d7f0.2347b8",
+ "type": "switchNode",
+ "name": "switch outputPayload",
+ "xml": "<switch test='`$outputPayload`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1691,
+ "y": 1009,
+ "z": "deca6c6e.62787",
+ "wires": [
+ [
+ "a556bfd0.26234",
+ "bfa7e392.13bb3"
+ ]
+ ]
+ },
+ {
+ "id": "dbab97fc.ffb6e8",
+ "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",
+ "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",
+ "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",
+ "wires": [
+ [
+ "292c4dcf.7880e2",
+ "73b035d4.ad062c"
+ ]
+ ]
+ },
+ {
+ "id": "37bee539.62e3ea",
+ "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",
+ "wires": [
+ [
+ "7e470c4a.386af4",
+ "5feb02a4.d890ac"
+ ]
+ ]
+ },
+ {
+ "id": "7ef093b7.2cf64c",
+ "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",
+ "wires": []
+ },
+ {
+ "id": "b08c6ff3.d3ef1",
+ "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",
+ "wires": []
+ },
+ {
+ "id": "292c4dcf.7880e2",
+ "type": "other",
+ "name": "outcome 400",
+ "xml": "<outcome value='400'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2238,
+ "y": 948,
+ "z": "deca6c6e.62787",
+ "wires": [
+ [
+ "8024a972.fa79a8"
+ ]
+ ]
+ },
+ {
+ "id": "73b035d4.ad062c",
+ "type": "outcome",
+ "name": "other",
+ "xml": "<outcome value='Other'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2219,
+ "y": 986,
+ "z": "deca6c6e.62787",
+ "wires": [
+ [
+ "7ef093b7.2cf64c"
+ ]
+ ]
+ },
+ {
+ "id": "7e470c4a.386af4",
+ "type": "other",
+ "name": "outcome 400",
+ "xml": "<outcome value='400'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2239,
+ "y": 1030,
+ "z": "deca6c6e.62787",
+ "wires": [
+ [
+ "dbab97fc.ffb6e8"
+ ]
+ ]
+ },
+ {
+ "id": "5feb02a4.d890ac",
+ "type": "outcome",
+ "name": "other",
+ "xml": "<outcome value='Other'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2221,
+ "y": 1068,
+ "z": "deca6c6e.62787",
+ "wires": [
+ [
+ "b08c6ff3.d3ef1"
+ ]
+ ]
}
] \ No newline at end of file