diff options
6 files changed, 913 insertions, 1716 deletions
diff --git a/platform-logic/lcm/src/main/json/LCM_upgrade-post-check.json b/platform-logic/lcm/src/main/json/LCM_upgrade-post-check.json index aad0514d..18a63f29 100644 --- a/platform-logic/lcm/src/main/json/LCM_upgrade-post-check.json +++ b/platform-logic/lcm/src/main/json/LCM_upgrade-post-check.json @@ -1,1083 +1,813 @@ [
{
- "id": "fe0acee3.b3d4f",
+ "id": "ab475552.d851d8",
"type": "method",
"name": "upgrade-post-check",
"xml": "<method rpc='upgrade-post-check' mode='sync'>\n",
"comments": "",
"outputs": 1,
- "x": 523,
- "y": 71,
- "z": "b4969602.e5a2a8",
+ "x": 548,
+ "y": 59,
+ "z": "802a6e37.fb3c1",
"wires": [
[
- "88d3f9c3.91e818"
+ "356938f4.e6ef78"
]
]
},
{
- "id": "dd69f330.0db38",
+ "id": "db22c5e0.c4b368",
"type": "service-logic",
- "name": "LCM ${project.version}",
+ "name": "LCM 1.4.5",
"module": "LCM",
- "version": "${project.version}",
+ "version": "1.4.5",
"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": 310.99993896484375,
- "y": 72,
- "z": "b4969602.e5a2a8",
+ "x": 335.99993896484375,
+ "y": 60,
+ "z": "802a6e37.fb3c1",
"wires": [
[
- "fe0acee3.b3d4f"
+ "ab475552.d851d8"
]
]
},
{
- "id": "ca77e1d2.5f235",
+ "id": "74883a0a.669d34",
"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-post-check-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-post-check-input.common-header.request-id`'/>\n<parameter name='PlaybookName' value='`$playbookname`'/>",
"comments": "",
"outputs": 1,
- "x": 378.00001525878906,
- "y": 679,
- "z": "b4969602.e5a2a8",
+ "x": 403.00001525878906,
+ "y": 667,
+ "z": "802a6e37.fb3c1",
"wires": [
[
- "98532a13.9e8648",
- "300b9189.6839ae",
- "93689f4a.8157"
+ "8efae65a.30c7b8",
+ "fdc248e2.dda948",
+ "fc8e86cf.976918"
]
]
},
{
- "id": "338f7649.ef4e9a",
+ "id": "ea8ede8a.5e5e7",
"type": "switchNode",
"name": "switch",
"xml": "<switch test=\"`$org.onap.appc.adapter.ansible.result.code`\">\n",
"comments": "",
"outputs": 1,
- "x": 777.9999389648438,
- "y": 787.0000305175781,
- "z": "b4969602.e5a2a8",
+ "x": 802.9999389648438,
+ "y": 775.0000305175781,
+ "z": "802a6e37.fb3c1",
"wires": [
[
- "13e6fdd5.284672",
- "558456ec.861628",
- "d84c0d6b.4e961"
+ "ed747ae6.f82e38",
+ "d348a5a9.90bb58",
+ "606ee94e.547568"
]
]
},
{
- "id": "13e6fdd5.284672",
+ "id": "ed747ae6.f82e38",
"type": "other",
"name": "outcome 500",
"xml": "<outcome value='500'>\n",
"comments": "",
"outputs": 1,
- "x": 922.9999389648438,
- "y": 785.0000381469727,
- "z": "b4969602.e5a2a8",
+ "x": 947.9999389648438,
+ "y": 773.0000381469727,
+ "z": "802a6e37.fb3c1",
"wires": [
[
- "d4f3b77a.b39508"
+ "8e974f56.dbd44"
]
]
},
{
- "id": "558456ec.861628",
+ "id": "d348a5a9.90bb58",
"type": "other",
"name": "outcome 100",
"xml": "<outcome value='100'>\n",
"comments": "",
"outputs": 1,
- "x": 919.9999389648438,
- "y": 842.0000305175781,
- "z": "b4969602.e5a2a8",
+ "x": 944.9999389648438,
+ "y": 830.0000305175781,
+ "z": "802a6e37.fb3c1",
"wires": [
[
- "a1c39fcf.a06c"
+ "5fe71ec4.57d62"
]
]
},
{
- "id": "a1c39fcf.a06c",
+ "id": "5fe71ec4.57d62",
"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": 1107.9999389648438,
- "y": 841.0000305175781,
- "z": "b4969602.e5a2a8",
+ "x": 1132.9999389648438,
+ "y": 829.0000305175781,
+ "z": "802a6e37.fb3c1",
"wires": [
[
- "f58c60bb.b391f",
- "b18d4538.e8ef28"
+ "484e1e77.a4c4c",
+ "ef7a898e.c55ae8"
]
]
},
{
- "id": "300b9189.6839ae",
+ "id": "fdc248e2.dda948",
"type": "failure",
"name": "failure",
"xml": "<outcome value='failure'>\n",
"comments": "",
"outputs": 1,
- "x": 636.9999389648438,
- "y": 700.0000915527344,
- "z": "b4969602.e5a2a8",
+ "x": 661.9999389648438,
+ "y": 688.0000915527344,
+ "z": "802a6e37.fb3c1",
"wires": [
[
- "d4f3b77a.b39508"
+ "8e974f56.dbd44"
]
]
},
{
- "id": "98532a13.9e8648",
+ "id": "8efae65a.30c7b8",
"type": "other",
"name": "other",
"xml": "<outcome value='Other'>\n",
"comments": "",
"outputs": 1,
- "x": 638.9999389648438,
- "y": 752.0000610351562,
- "z": "b4969602.e5a2a8",
+ "x": 663.9999389648438,
+ "y": 740.0000610351562,
+ "z": "802a6e37.fb3c1",
"wires": [
[
- "338f7649.ef4e9a"
+ "ea8ede8a.5e5e7"
]
]
},
{
- "id": "f58c60bb.b391f",
+ "id": "484e1e77.a4c4c",
"type": "failure",
"name": "failure",
"xml": "<outcome value='failure'>\n",
"comments": "",
"outputs": 1,
- "x": 1278.9998779296875,
- "y": 820.0000610351562,
- "z": "b4969602.e5a2a8",
+ "x": 1301.9999389648438,
+ "y": 787.0000381469727,
+ "z": "802a6e37.fb3c1",
"wires": [
[
- "44e1b1d0.b5bf9"
+ "8e974f56.dbd44"
]
]
},
{
- "id": "d84c0d6b.4e961",
+ "id": "606ee94e.547568",
"type": "other",
"name": "outcome 101",
"xml": "<outcome value='101'>\n",
"comments": "",
"outputs": 1,
- "x": 919.9999389648438,
- "y": 743.0000686645508,
- "z": "b4969602.e5a2a8",
+ "x": 944.9999389648438,
+ "y": 731.0000686645508,
+ "z": "802a6e37.fb3c1",
"wires": [
[
- "d4f3b77a.b39508"
+ "8e974f56.dbd44"
]
]
},
{
- "id": "b18d4538.e8ef28",
+ "id": "ef7a898e.c55ae8",
"type": "success",
"name": "success",
"xml": "<outcome value='success'>\n",
"comments": "",
"outputs": 1,
- "x": 1281.9998779296875,
- "y": 871.0001220703125,
- "z": "b4969602.e5a2a8",
+ "x": 1309.9998779296875,
+ "y": 835.0001220703125,
+ "z": "802a6e37.fb3c1",
"wires": [
[
- "44e1b1d0.b5bf9"
+ "565fc0b9.1ff1a"
]
]
},
{
- "id": "67392fb2.3fda3",
+ "id": "bca33267.b186f",
+ "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": 1603.9998779296875,
+ "y": 892.0000610351562,
+ "z": "802a6e37.fb3c1",
+ "wires": []
+ },
+ {
+ "id": "f3c40140.4762d",
"type": "dgstart",
"name": "DGSTART",
"outputs": 1,
- "x": 126,
- "y": 71,
- "z": "b4969602.e5a2a8",
+ "x": 151,
+ "y": 59,
+ "z": "802a6e37.fb3c1",
"wires": [
[
- "dd69f330.0db38"
+ "db22c5e0.c4b368"
]
]
},
{
- "id": "88d3f9c3.91e818",
+ "id": "356938f4.e6ef78",
"type": "block",
"name": "block",
"xml": "<block>\n",
"atomic": "false",
"comments": "",
"outputs": 1,
- "x": 123.91668701171875,
- "y": 163.08334350585938,
- "z": "b4969602.e5a2a8",
+ "x": 148.91668701171875,
+ "y": 151.08334350585938,
+ "z": "802a6e37.fb3c1",
"wires": [
[
- "ca77e1d2.5f235",
- "c7ec6050.45978",
- "889f84ed.e111e8",
- "40652fca.65d24",
- "983b7f00.0aa95",
- "43b098aa.2b8088",
- "3c8d18f4.57a768",
- "5c9efc94.d81d24"
+ "74883a0a.669d34",
+ "5f157934.113238",
+ "fad67e1f.e709b",
+ "f04f2fb5.8c0ca",
+ "a1aa3253.06afa",
+ "e636c2ac.2dc0d",
+ "8b5b2558.88c888",
+ "89a1b60f.9a2848"
]
]
},
{
- "id": "c7ec6050.45978",
+ "id": "5f157934.113238",
"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": 422.0000305175781,
- "y": 196.08334350585938,
- "z": "b4969602.e5a2a8",
+ "x": 447.0000305175781,
+ "y": 184.08334350585938,
+ "z": "802a6e37.fb3c1",
"wires": [
[]
]
},
{
- "id": "d9d2286.379c4d8",
+ "id": "9c2d2fed.0688d",
"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": 1588.9998779296875,
- "y": 649.0834045410156,
- "z": "b4969602.e5a2a8",
+ "x": 1613.9998779296875,
+ "y": 637.0834045410156,
+ "z": "802a6e37.fb3c1",
"wires": [
[
- "642ae55d.535a7c"
+ "789af377.cced2c"
]
]
},
{
- "id": "642ae55d.535a7c",
+ "id": "789af377.cced2c",
"type": "failure",
"name": "failure",
"xml": "<outcome value='failure'>\n",
"comments": "",
"outputs": 1,
- "x": 1758.9998168945312,
- "y": 648.0834045410156,
- "z": "b4969602.e5a2a8",
+ "x": 1783.9998168945312,
+ "y": 636.0834045410156,
+ "z": "802a6e37.fb3c1",
"wires": [
[
- "7969554f.e56e0c"
+ "c75d24f.c2de2d8"
]
]
},
{
- "id": "d4f3b77a.b39508",
+ "id": "8e974f56.dbd44",
"type": "block",
"name": "block",
"xml": "<block>\n",
"atomic": "false",
"comments": "",
"outputs": 1,
- "x": 1391.9998168945312,
- "y": 673.0834045410156,
- "z": "b4969602.e5a2a8",
+ "x": 1416.9998168945312,
+ "y": 661.0834045410156,
+ "z": "802a6e37.fb3c1",
"wires": [
[
- "d9d2286.379c4d8",
- "8a00ee98.85d8c",
- "a967853.2e08a78"
+ "9c2d2fed.0688d",
+ "a0c3935d.9a935",
+ "82255155.ccaef"
]
]
},
{
- "id": "61a865a3.81374c",
+ "id": "2939808a.b52ef",
"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": 1600.4998779296875,
- "y": 904.0833740234375,
- "z": "b4969602.e5a2a8",
+ "x": 1614.4998779296875,
+ "y": 842.0833740234375,
+ "z": "802a6e37.fb3c1",
"wires": [
[
- "bf6e3414.ac0ab8"
+ "22bed4c.08b6a2c"
]
]
},
{
- "id": "bf6e3414.ac0ab8",
+ "id": "22bed4c.08b6a2c",
"type": "failure",
"name": "failure",
"xml": "<outcome value='failure'>\n",
"comments": "",
"outputs": 1,
"x": 1782.4998779296875,
- "y": 904.0833740234375,
- "z": "b4969602.e5a2a8",
+ "y": 842.0833740234375,
+ "z": "802a6e37.fb3c1",
"wires": [
[
- "a98ac8b6.1c8b18"
+ "8841bc4a.67149"
]
]
},
{
- "id": "7969554f.e56e0c",
+ "id": "c75d24f.c2de2d8",
"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": 1878.9998779296875,
- "y": 647.0833740234375,
- "z": "b4969602.e5a2a8",
+ "x": 1903.9998779296875,
+ "y": 635.0833740234375,
+ "z": "802a6e37.fb3c1",
"wires": [
[]
]
},
{
- "id": "8a00ee98.85d8c",
+ "id": "a0c3935d.9a935",
"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": 1570.91650390625,
- "y": 700.0834045410156,
- "z": "b4969602.e5a2a8",
+ "x": 1595.91650390625,
+ "y": 688.0834045410156,
+ "z": "802a6e37.fb3c1",
"wires": []
},
{
- "id": "a98ac8b6.1c8b18",
+ "id": "8841bc4a.67149",
"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": 1912.9166259765625,
- "y": 904.0833740234375,
- "z": "b4969602.e5a2a8",
+ "x": 1910.9166259765625,
+ "y": 842.0833740234375,
+ "z": "802a6e37.fb3c1",
"wires": [
[]
]
},
{
- "id": "a967853.2e08a78",
+ "id": "82255155.ccaef",
"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-post-check-input.common-header.request-id + '-' + $upgrade-post-check-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-post-check'/>\n<parameter name='lcm-dmaap.type' value='`$prop.lcm.dmaap.type`'/>\n<parameter name='lcm-dmaap.timestamp' value='`$upgrade-post-check-input.common-header.timestamp`'/>\n<parameter name='lcm-dmaap.api-ver' value='`$upgrade-post-check-input.common-header.api-ver`'/>\n<parameter name='lcm-dmaap.originator-id' value='`$upgrade-post-check-input.common-header.originator-id`'/>\n<parameter name='lcm-dmaap.request-id' value='`$upgrade-post-check-input.common-header.request-id`'/>\n<parameter name='lcm-dmaap.sub-request-id' value='`$upgrade-post-check-input.common-header.sub-request-id`'/>\n<parameter name='lcm-dmaap.flags.mode' value='`$upgrade-post-check-input.common-header.flags.mode`'/>\n<parameter name='lcm-dmaap.flags.force' value='`$upgrade-post-check-input.common-header.flags.force`'/>\n<parameter name='lcm-dmaap.flags.ttl' value='`$upgrade-post-check-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": 1575.9998779296875,
- "y": 596.0833740234375,
- "z": "b4969602.e5a2a8",
+ "x": 1600.9998779296875,
+ "y": 584.0833740234375,
+ "z": "802a6e37.fb3c1",
"wires": []
},
{
- "id": "44e1b1d0.b5bf9",
+ "id": "565fc0b9.1ff1a",
"type": "block",
"name": "block",
"xml": "<block>\n",
"atomic": "false",
"comments": "",
"outputs": 1,
- "x": 1406.9998779296875,
- "y": 845.0833740234375,
- "z": "b4969602.e5a2a8",
+ "x": 1437.9998779296875,
+ "y": 836.0833740234375,
+ "z": "802a6e37.fb3c1",
"wires": [
[
- "61a865a3.81374c",
- "af2360f3.a1b32",
- "c058b1a3.cafa7",
- "d59d4575.f7aa08",
- "97b68625.59c538"
+ "2939808a.b52ef",
+ "cd18f032.f6fef",
+ "bca33267.b186f"
]
]
},
{
- "id": "72836a7a.768624",
+ "id": "cd18f032.f6fef",
"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-post-check-input.common-header.request-id + '-' + $upgrade-post-check-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-post-check'/>\n<parameter name='lcm-dmaap.type' value='`$prop.lcm.dmaap.type`'/>\n<parameter name='lcm-dmaap.timestamp' value='`$upgrade-post-check-input.common-header.timestamp`'/>\n<parameter name='lcm-dmaap.api-ver' value='`$upgrade-post-check-input.common-header.api-ver`'/>\n<parameter name='lcm-dmaap.originator-id' value='`$upgrade-post-check-input.common-header.originator-id`'/>\n<parameter name='lcm-dmaap.request-id' value='`$upgrade-post-check-input.common-header.request-id`'/>\n<parameter name='lcm-dmaap.sub-request-id' value='`$upgrade-post-check-input.common-header.sub-request-id`'/>\n<parameter name='lcm-dmaap.flags.mode' value='`$upgrade-post-check-input.common-header.flags.mode`'/>\n<parameter name='lcm-dmaap.flags.force' value='`$upgrade-post-check-input.common-header.flags.force`'/>\n<parameter name='lcm-dmaap.flags.ttl' value='`$upgrade-post-check-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": 1938.1666259765625,
- "y": 819.0833740234375,
- "z": "b4969602.e5a2a8",
+ "x": 1604.1666259765625,
+ "y": 787.0833740234375,
+ "z": "802a6e37.fb3c1",
"wires": []
},
{
- "id": "93689f4a.8157",
+ "id": "fc8e86cf.976918",
"type": "not-found",
"name": "not-found",
"xml": "<outcome value='not-found'>\n",
"comments": "",
"outputs": 1,
- "x": 645.9999389648438,
- "y": 652.0000610351562,
- "z": "b4969602.e5a2a8",
+ "x": 670.9999389648438,
+ "y": 640.0000610351562,
+ "z": "802a6e37.fb3c1",
"wires": [
[
- "c92e96da.bead68"
+ "95e77813.ba9108"
]
]
},
{
- "id": "3705b5ae.a55ada",
+ "id": "60c18ca3.4f03c4",
"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": 936.9999389648438,
- "y": 611,
- "z": "b4969602.e5a2a8",
+ "x": 961.9999389648438,
+ "y": 599,
+ "z": "802a6e37.fb3c1",
"wires": []
},
{
- "id": "c92e96da.bead68",
+ "id": "95e77813.ba9108",
"type": "block",
"name": "block",
"xml": "<block>\n",
"atomic": "false",
"comments": "",
"outputs": 1,
- "x": 782.9999389648438,
- "y": 646.0000610351562,
- "z": "b4969602.e5a2a8",
+ "x": 807.9999389648438,
+ "y": 634.0000610351562,
+ "z": "802a6e37.fb3c1",
"wires": [
[
- "3705b5ae.a55ada",
- "d4f3b77a.b39508"
+ "60c18ca3.4f03c4",
+ "8e974f56.dbd44"
]
]
},
{
- "id": "889f84ed.e111e8",
+ "id": "fad67e1f.e709b",
"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": 415,
- "y": 243,
- "z": "b4969602.e5a2a8",
+ "x": 440,
+ "y": 231,
+ "z": "802a6e37.fb3c1",
"wires": []
},
{
- "id": "9e2047bf.84ca98",
+ "id": "24f45898.65de18",
"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-post-check-input.action-identifiers.vnf-id\" \n\t\tlocal-only=\"false\" \n\t\tpfx='aai.generic-vnf'>",
"comments": "",
"outputs": 1,
- "x": 955,
- "y": 419,
- "z": "b4969602.e5a2a8",
+ "x": 980,
+ "y": 407,
+ "z": "802a6e37.fb3c1",
"wires": [
[
- "db67679b.d5f7f8"
+ "3a57fbc.0ac6d04"
]
]
},
{
- "id": "db67679b.d5f7f8",
+ "id": "3a57fbc.0ac6d04",
"type": "success",
"name": "success",
"xml": "<outcome value='success'>\n",
"comments": "",
"outputs": 1,
- "x": 1113.3907470703125,
- "y": 417.28399658203125,
- "z": "b4969602.e5a2a8",
+ "x": 1138.3907470703125,
+ "y": 405.28399658203125,
+ "z": "802a6e37.fb3c1",
"wires": [
[
- "9f78147c.45b0d8"
+ "721a47cc.cdf2d8"
]
]
},
{
- "id": "3c8d18f4.57a768",
+ "id": "8b5b2558.88c888",
"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": 343.9998779296875,
- "y": 607,
- "z": "b4969602.e5a2a8",
+ "x": 368.9998779296875,
+ "y": 595,
+ "z": "802a6e37.fb3c1",
"wires": [
[]
]
},
{
- "id": "983b7f00.0aa95",
+ "id": "a1aa3253.06afa",
"type": "switchNode",
"name": "switch pnf-flag",
"xml": "<switch test='`$payloadJson.pnf-flag`'>\n",
"comments": "",
"outputs": 1,
- "x": 397,
- "y": 344,
- "z": "b4969602.e5a2a8",
+ "x": 422,
+ "y": 332,
+ "z": "802a6e37.fb3c1",
"wires": [
[
- "6ab53366.6b679c",
- "c2f80dd0.8d1"
+ "9417db8c.51c568",
+ "9e3df3f5.2c2d9"
]
]
},
{
- "id": "40652fca.65d24",
+ "id": "f04f2fb5.8c0ca",
"type": "execute",
"name": "execute jsonStringToCtx",
"xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='jsonStringToCtx'>\n\t<parameter name='source' value='upgrade-post-check-input.payload' />\n\t<parameter name='outputPath' value='payloadJson' />\n\t<parameter name='isEscaped' value='true' />",
"comments": "",
"outputs": 1,
- "x": 429,
- "y": 290,
- "z": "b4969602.e5a2a8",
+ "x": 454,
+ "y": 278,
+ "z": "802a6e37.fb3c1",
"wires": [
[]
]
},
{
- "id": "6ab53366.6b679c",
+ "id": "9417db8c.51c568",
"type": "outcome",
"name": "true",
"xml": "<outcome value='true'>\n",
"comments": "",
"outputs": 1,
- "x": 594,
- "y": 323,
- "z": "b4969602.e5a2a8",
+ "x": 619,
+ "y": 311,
+ "z": "802a6e37.fb3c1",
"wires": [
[
- "b2f335c.b319ac8"
+ "94353f3f.e7eee"
]
]
},
{
- "id": "c2f80dd0.8d1",
+ "id": "9e3df3f5.2c2d9",
"type": "outcome",
"name": "other",
"xml": "<outcome value='Other'>\n",
"comments": "",
"outputs": 1,
- "x": 593.9999389648438,
- "y": 384,
- "z": "b4969602.e5a2a8",
+ "x": 618.9999389648438,
+ "y": 372,
+ "z": "802a6e37.fb3c1",
"wires": [
[
- "64084999.263e28"
+ "95b6db3f.a43608"
]
]
},
{
- "id": "64084999.263e28",
+ "id": "95b6db3f.a43608",
"type": "block",
"name": "block",
"xml": "<block>\n",
"atomic": "false",
"comments": "",
"outputs": 1,
- "x": 741.9999389648438,
- "y": 383,
- "z": "b4969602.e5a2a8",
+ "x": 766.9999389648438,
+ "y": 371,
+ "z": "802a6e37.fb3c1",
"wires": [
[
- "9e2047bf.84ca98",
- "1c2838e7.02c327"
+ "24f45898.65de18",
+ "240a5e4b.ef6af2"
]
]
},
{
- "id": "b2f335c.b319ac8",
+ "id": "94353f3f.e7eee",
"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-post-check.playbookname`'/>\n",
"comments": "",
- "x": 755,
- "y": 321,
- "z": "b4969602.e5a2a8",
+ "x": 780,
+ "y": 309,
+ "z": "802a6e37.fb3c1",
"wires": []
},
{
- "id": "1c2838e7.02c327",
+ "id": "240a5e4b.ef6af2",
"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-post-check.playbookname'`\" />\n\n",
"comments": "",
"outputs": 1,
- "x": 964,
- "y": 363,
- "z": "b4969602.e5a2a8",
+ "x": 989,
+ "y": 351,
+ "z": "802a6e37.fb3c1",
"wires": [
[]
]
},
{
- "id": "43b098aa.2b8088",
+ "id": "e636c2ac.2dc0d",
"type": "switchNode",
"name": "switch playbookname",
"xml": "<switch test='`$playbookname`'>\n",
"comments": "",
"outputs": 1,
- "x": 394,
- "y": 475,
- "z": "b4969602.e5a2a8",
+ "x": 419,
+ "y": 463,
+ "z": "802a6e37.fb3c1",
"wires": [
[
- "f5a4d554.8310a8"
+ "a65bd4c9.27f638"
]
]
},
{
- "id": "f5a4d554.8310a8",
+ "id": "a65bd4c9.27f638",
"type": "outcome",
"name": "null",
"xml": "<outcome value=''>\n",
"comments": "",
"outputs": 1,
- "x": 565,
- "y": 476,
- "z": "b4969602.e5a2a8",
+ "x": 590,
+ "y": 464,
+ "z": "802a6e37.fb3c1",
"wires": [
[
- "e3207caa.85b44"
+ "286bc0d0.e5819"
]
]
},
{
- "id": "e3207caa.85b44",
+ "id": "286bc0d0.e5819",
"type": "set",
"name": "set playbookname",
- "xml": "<set>\n<parameter name='nodelist' value=\"`$prop.ansible.nodelist`\"/>\n<parameter name='playbookname' value='`$prop.lcm.upgrade-post-check.playbookname`'/>",
+ "xml": "<set>\n<parameter name='playbookname' value='`$prop.lcm.upgrade-post-check.playbookname`'/>",
"comments": "",
- "x": 755,
- "y": 475,
- "z": "b4969602.e5a2a8",
+ "x": 780,
+ "y": 463,
+ "z": "802a6e37.fb3c1",
"wires": []
},
{
- "id": "5c9efc94.d81d24",
+ "id": "89a1b60f.9a2848",
"type": "switchNode",
"name": "switch nodelist",
"xml": "<switch test='`$nodelist`'>\n",
"comments": "",
"outputs": 1,
- "x": 384,
- "y": 534,
- "z": "b4969602.e5a2a8",
+ "x": 409,
+ "y": 522,
+ "z": "802a6e37.fb3c1",
"wires": [
[
- "77224991.c20a78",
- "2deab8c5.642298"
+ "10bd0563.dd89eb",
+ "9f1eacfe.fa54"
]
]
},
{
- "id": "77224991.c20a78",
+ "id": "10bd0563.dd89eb",
"type": "outcome",
"name": "null",
"xml": "<outcome value=''>\n",
"comments": "",
"outputs": 1,
- "x": 564,
- "y": 527,
- "z": "b4969602.e5a2a8",
+ "x": 589,
+ "y": 515,
+ "z": "802a6e37.fb3c1",
"wires": [
[
- "3881d027.425ff"
+ "f0ef60d3.f64f"
]
]
},
{
- "id": "3881d027.425ff",
+ "id": "f0ef60d3.f64f",
"type": "set",
"name": "set nodelist",
"xml": "<set>\n<parameter name='nodelist' value=\"`$prop.ansible.nodelist`\"/>",
"comments": "",
- "x": 721,
- "y": 541,
- "z": "b4969602.e5a2a8",
+ "x": 746,
+ "y": 529,
+ "z": "802a6e37.fb3c1",
"wires": []
},
{
- "id": "2deab8c5.642298",
+ "id": "9f1eacfe.fa54",
"type": "outcome",
"name": "empty",
"xml": "<outcome value=\"['']\">\n\n",
"comments": "",
"outputs": 1,
- "x": 563,
- "y": 571,
- "z": "b4969602.e5a2a8",
+ "x": 588,
+ "y": 559,
+ "z": "802a6e37.fb3c1",
"wires": [
[
- "3881d027.425ff"
+ "f0ef60d3.f64f"
]
]
},
{
- "id": "153ed401.962ddc",
+ "id": "26d43493.24ca8c",
"type": "switchNode",
"name": "switch playbookname",
"xml": "<switch test='`$playbookname`'>\n",
"comments": "",
"outputs": 1,
- "x": 1439,
- "y": 406,
- "z": "b4969602.e5a2a8",
+ "x": 1464,
+ "y": 394,
+ "z": "802a6e37.fb3c1",
"wires": [
[
- "3cfaf009.20065"
+ "ad0fd429.dd1178"
]
]
},
{
- "id": "3cfaf009.20065",
+ "id": "ad0fd429.dd1178",
"type": "outcome",
"name": "null",
"xml": "<outcome value=''>\n",
"comments": "",
"outputs": 1,
- "x": 1617,
- "y": 406,
- "z": "b4969602.e5a2a8",
+ "x": 1642,
+ "y": 394,
+ "z": "802a6e37.fb3c1",
"wires": [
[
- "8e725f1f.6662f"
+ "bbed41e1.ca0c4"
]
]
},
{
- "id": "9e70216f.c9b2f",
+ "id": "3935df66.a3be5",
"type": "set",
"name": "set nodelist",
"xml": "<set>\n<parameter name='nodelist' value=\"`'[' + $quote + $aai.generic-vnf.ipv4-oam-address + $quote + ']'`\"/>\n",
"comments": "",
- "x": 1412,
- "y": 459,
- "z": "b4969602.e5a2a8",
+ "x": 1437,
+ "y": 447,
+ "z": "802a6e37.fb3c1",
"wires": []
},
{
- "id": "9f78147c.45b0d8",
+ "id": "721a47cc.cdf2d8",
"type": "block",
"name": "block",
"xml": "<block>\n",
"atomic": "false",
"comments": "",
"outputs": 1,
- "x": 1242,
- "y": 416,
- "z": "b4969602.e5a2a8",
+ "x": 1267,
+ "y": 404,
+ "z": "802a6e37.fb3c1",
"wires": [
[
- "153ed401.962ddc",
- "9e70216f.c9b2f"
+ "26d43493.24ca8c",
+ "3935df66.a3be5"
]
]
},
{
- "id": "8e725f1f.6662f",
+ "id": "bbed41e1.ca0c4",
"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-post-check.playbookname'`\" />\n\n",
"comments": "",
"outputs": 1,
- "x": 1789,
- "y": 404,
- "z": "b4969602.e5a2a8",
+ "x": 1814,
+ "y": 392,
+ "z": "802a6e37.fb3c1",
"wires": [
[]
]
- },
- {
- "id": "af2360f3.a1b32",
- "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": 1616,
- "y": 750,
- "z": "b4969602.e5a2a8",
- "wires": [
- []
- ]
- },
- {
- "id": "c058b1a3.cafa7",
- "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": 1622,
- "y": 793,
- "z": "b4969602.e5a2a8",
- "wires": [
- []
- ]
- },
- {
- "id": "d59d4575.f7aa08",
- "type": "switchNode",
- "name": "switch outputPayload",
- "xml": "<switch test='`$outputPayload`'>\n",
- "comments": "",
- "outputs": 1,
- "x": 1606,
- "y": 840,
- "z": "b4969602.e5a2a8",
- "wires": [
- [
- "676d5ce5.e9d864",
- "8ecd1678.ebdff8"
- ]
- ]
- },
- {
- "id": "676d5ce5.e9d864",
- "type": "outcome",
- "name": "null",
- "xml": "<outcome value=''>\n",
- "comments": "",
- "outputs": 1,
- "x": 1783,
- "y": 819,
- "z": "b4969602.e5a2a8",
- "wires": [
- [
- "72836a7a.768624"
- ]
- ]
- },
- {
- "id": "8ecd1678.ebdff8",
- "type": "outcome",
- "name": "other",
- "xml": "<outcome value='Other'>\n",
- "comments": "",
- "outputs": 1,
- "x": 1782,
- "y": 859,
- "z": "b4969602.e5a2a8",
- "wires": [
- [
- "5f5e736e.9d3b8c"
- ]
- ]
- },
- {
- "id": "5f5e736e.9d3b8c",
- "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-post-check-input.common-header.request-id + '-' + $upgrade-post-check-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-post-check'/>\n<parameter name='lcm-dmaap.type' value='`$prop.lcm.dmaap.type`'/>\n<parameter name='lcm-dmaap.timestamp' value='`$upgrade-post-check-input.common-header.timestamp`'/>\n<parameter name='lcm-dmaap.api-ver' value='`$upgrade-post-check-input.common-header.api-ver`'/>\n<parameter name='lcm-dmaap.originator-id' value='`$upgrade-post-check-input.common-header.originator-id`'/>\n<parameter name='lcm-dmaap.request-id' value='`$upgrade-post-check-input.common-header.request-id`'/>\n<parameter name='lcm-dmaap.sub-request-id' value='`$upgrade-post-check-input.common-header.sub-request-id`'/>\n<parameter name='lcm-dmaap.flags.mode' value='`$upgrade-post-check-input.common-header.flags.mode`'/>\n<parameter name='lcm-dmaap.flags.force' value='`$upgrade-post-check-input.common-header.flags.force`'/>\n<parameter name='lcm-dmaap.flags.ttl' value='`$upgrade-post-check-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": 1980,
- "y": 859,
- "z": "b4969602.e5a2a8",
- "wires": []
- },
- {
- "id": "bd7deada.205038",
- "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": 2322,
- "y": 937,
- "z": "b4969602.e5a2a8",
- "wires": []
- },
- {
- "id": "530e9d63.07dd34",
- "type": "outcome",
- "name": "null",
- "xml": "<outcome value=''>\n",
- "comments": "",
- "outputs": 1,
- "x": 1788.000244140625,
- "y": 958.9999389648438,
- "z": "b4969602.e5a2a8",
- "wires": [
- [
- "aba50f21.a535d"
- ]
- ]
- },
- {
- "id": "d6c0e471.9108d8",
- "type": "outcome",
- "name": "other",
- "xml": "<outcome value='Other'>\n",
- "comments": "",
- "outputs": 1,
- "x": 1787.000244140625,
- "y": 1034.9999389648438,
- "z": "b4969602.e5a2a8",
- "wires": [
- [
- "801dd50e.8622c8"
- ]
- ]
- },
- {
- "id": "97b68625.59c538",
- "type": "switchNode",
- "name": "switch outputPayload",
- "xml": "<switch test='`$outputPayload`'>\n",
- "comments": "",
- "outputs": 1,
- "x": 1605.000244140625,
- "y": 994.9999389648438,
- "z": "b4969602.e5a2a8",
- "wires": [
- [
- "530e9d63.07dd34",
- "d6c0e471.9108d8"
- ]
- ]
- },
- {
- "id": "acbbf9db.eeba28",
- "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": 2363.000244140625,
- "y": 1018.9999389648438,
- "z": "b4969602.e5a2a8",
- "wires": []
- },
- {
- "id": "aba50f21.a535d",
- "type": "switchNode",
- "name": "switch result code",
- "xml": "<switch test=\"`$org.onap.appc.adapter.ansible.result.code`\">\n",
- "comments": "",
- "outputs": 1,
- "x": 1958.000244140625,
- "y": 958.9999389648438,
- "z": "b4969602.e5a2a8",
- "wires": [
- [
- "3ac4241b.62144c",
- "c67e4b5c.d70a28"
- ]
- ]
- },
- {
- "id": "801dd50e.8622c8",
- "type": "switchNode",
- "name": "switch result code",
- "xml": "<switch test=\"`$org.onap.appc.adapter.ansible.result.code`\">\n",
- "comments": "",
- "outputs": 1,
- "x": 1958.000244140625,
- "y": 1034.9999389648438,
- "z": "b4969602.e5a2a8",
- "wires": [
- [
- "8dcd3ae3.608a58",
- "a94e8dc6.52647"
- ]
- ]
- },
- {
- "id": "657ecc9e.2687c4",
- "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": 2316.000244140625,
- "y": 974.9999389648438,
- "z": "b4969602.e5a2a8",
- "wires": []
- },
- {
- "id": "52f49f6f.dcf4",
- "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": 2359.000244140625,
- "y": 1056.9999389648438,
- "z": "b4969602.e5a2a8",
- "wires": []
- },
- {
- "id": "3ac4241b.62144c",
- "type": "other",
- "name": "outcome 400",
- "xml": "<outcome value='400'>\n",
- "comments": "",
- "outputs": 1,
- "x": 2146.000244140625,
- "y": 936.9999389648438,
- "z": "b4969602.e5a2a8",
- "wires": [
- [
- "bd7deada.205038"
- ]
- ]
- },
- {
- "id": "c67e4b5c.d70a28",
- "type": "outcome",
- "name": "other",
- "xml": "<outcome value='Other'>\n",
- "comments": "",
- "outputs": 1,
- "x": 2127.000244140625,
- "y": 974.9999389648438,
- "z": "b4969602.e5a2a8",
- "wires": [
- [
- "657ecc9e.2687c4"
- ]
- ]
- },
- {
- "id": "8dcd3ae3.608a58",
- "type": "other",
- "name": "outcome 400",
- "xml": "<outcome value='400'>\n",
- "comments": "",
- "outputs": 1,
- "x": 2147.000244140625,
- "y": 1018.9999389648438,
- "z": "b4969602.e5a2a8",
- "wires": [
- [
- "acbbf9db.eeba28"
- ]
- ]
- },
- {
- "id": "a94e8dc6.52647",
- "type": "outcome",
- "name": "other",
- "xml": "<outcome value='Other'>\n",
- "comments": "",
- "outputs": 1,
- "x": 2129.000244140625,
- "y": 1056.9999389648438,
- "z": "b4969602.e5a2a8",
- "wires": [
- [
- "52f49f6f.dcf4"
- ]
- ]
}
]
\ No newline at end of file diff --git a/platform-logic/lcm/src/main/json/LCM_upgrade-pre-check.json b/platform-logic/lcm/src/main/json/LCM_upgrade-pre-check.json index aa78a91e..08b896ec 100644 --- a/platform-logic/lcm/src/main/json/LCM_upgrade-pre-check.json +++ b/platform-logic/lcm/src/main/json/LCM_upgrade-pre-check.json @@ -1,1083 +1,813 @@ [
{
- "id": "e17c1584.f756d8",
+ "id": "dfc42d29.4066",
"type": "method",
"name": "upgrade-pre-check",
"xml": "<method rpc='upgrade-pre-check' mode='sync'>\n",
"comments": "",
"outputs": 1,
- "x": 552,
- "y": 67,
- "z": "df893cfa.16f38",
+ "x": 554,
+ "y": 86,
+ "z": "a5b492f8.99d13",
"wires": [
[
- "4a691c8b.6b9db4"
+ "dc3f6c8f.49cb4"
]
]
},
{
- "id": "1f7a861d.c2112a",
+ "id": "ec3ea72c.b00d38",
"type": "service-logic",
- "name": "LCM ${project.version}",
+ "name": "LCM 1.4.5",
"module": "LCM",
- "version": "${project.version}",
+ "version": "1.4.5",
"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": 339.99993896484375,
- "y": 68,
- "z": "df893cfa.16f38",
+ "x": 341.99993896484375,
+ "y": 87,
+ "z": "a5b492f8.99d13",
"wires": [
[
- "e17c1584.f756d8"
+ "dfc42d29.4066"
]
]
},
{
- "id": "bb18ce54.65a6d",
+ "id": "aa4b4733.b95e98",
"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-pre-check-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-pre-check-input.common-header.request-id`'/>\n<parameter name='PlaybookName' value='`$playbookname`'/>",
"comments": "",
"outputs": 1,
- "x": 407.00001525878906,
- "y": 675,
- "z": "df893cfa.16f38",
+ "x": 409.00001525878906,
+ "y": 694,
+ "z": "a5b492f8.99d13",
"wires": [
[
- "c6f98872.c067e8",
- "5614f2d4.83759c",
- "1beab9a5.7e2366"
+ "eed23890.382f88",
+ "39c73cda.20f284",
+ "d5d4d9a.dfdee28"
]
]
},
{
- "id": "8e97cc56.5d143",
+ "id": "c2461908.a56de8",
"type": "switchNode",
"name": "switch",
"xml": "<switch test=\"`$org.onap.appc.adapter.ansible.result.code`\">\n",
"comments": "",
"outputs": 1,
- "x": 806.9999389648438,
- "y": 783.0000305175781,
- "z": "df893cfa.16f38",
+ "x": 808.9999389648438,
+ "y": 802.0000305175781,
+ "z": "a5b492f8.99d13",
"wires": [
[
- "d5d391c0.e33eb",
- "96569d9a.8f849",
- "8eb6da31.c976d8"
+ "21b1a494.57eb8c",
+ "c0ddf646.939658",
+ "c13b6a1f.ac5838"
]
]
},
{
- "id": "d5d391c0.e33eb",
+ "id": "21b1a494.57eb8c",
"type": "other",
"name": "outcome 500",
"xml": "<outcome value='500'>\n",
"comments": "",
"outputs": 1,
- "x": 951.9999389648438,
- "y": 781.0000381469727,
- "z": "df893cfa.16f38",
+ "x": 953.9999389648438,
+ "y": 800.0000381469727,
+ "z": "a5b492f8.99d13",
"wires": [
[
- "261676ae.6c18ea"
+ "c0fa5e3.de329a"
]
]
},
{
- "id": "96569d9a.8f849",
+ "id": "c0ddf646.939658",
"type": "other",
"name": "outcome 100",
"xml": "<outcome value='100'>\n",
"comments": "",
"outputs": 1,
- "x": 948.9999389648438,
- "y": 838.0000305175781,
- "z": "df893cfa.16f38",
+ "x": 950.9999389648438,
+ "y": 857.0000305175781,
+ "z": "a5b492f8.99d13",
"wires": [
[
- "a9aeb5d4.ad8218"
+ "95b7bcea.2185b"
]
]
},
{
- "id": "a9aeb5d4.ad8218",
+ "id": "95b7bcea.2185b",
"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": 1136.9999389648438,
- "y": 837.0000305175781,
- "z": "df893cfa.16f38",
+ "x": 1138.9999389648438,
+ "y": 856.0000305175781,
+ "z": "a5b492f8.99d13",
"wires": [
[
- "50e30f80.cb97b",
- "f9b1e44f.cf0bf8"
+ "205ffc13.4d2b24",
+ "c24e2446.933768"
]
]
},
{
- "id": "5614f2d4.83759c",
+ "id": "39c73cda.20f284",
"type": "failure",
"name": "failure",
"xml": "<outcome value='failure'>\n",
"comments": "",
"outputs": 1,
- "x": 665.9999389648438,
- "y": 696.0000915527344,
- "z": "df893cfa.16f38",
+ "x": 667.9999389648438,
+ "y": 715.0000915527344,
+ "z": "a5b492f8.99d13",
"wires": [
[
- "261676ae.6c18ea"
+ "c0fa5e3.de329a"
]
]
},
{
- "id": "c6f98872.c067e8",
+ "id": "eed23890.382f88",
"type": "other",
"name": "other",
"xml": "<outcome value='Other'>\n",
"comments": "",
"outputs": 1,
- "x": 667.9999389648438,
- "y": 748.0000610351562,
- "z": "df893cfa.16f38",
+ "x": 669.9999389648438,
+ "y": 767.0000610351562,
+ "z": "a5b492f8.99d13",
"wires": [
[
- "8e97cc56.5d143"
+ "c2461908.a56de8"
]
]
},
{
- "id": "50e30f80.cb97b",
+ "id": "205ffc13.4d2b24",
"type": "failure",
"name": "failure",
"xml": "<outcome value='failure'>\n",
"comments": "",
"outputs": 1,
- "x": 1305.9998779296875,
- "y": 819.0000610351562,
- "z": "df893cfa.16f38",
+ "x": 1307.9999389648438,
+ "y": 814.0000381469727,
+ "z": "a5b492f8.99d13",
"wires": [
[
- "7ac364bd.12e01c"
+ "c0fa5e3.de329a"
]
]
},
{
- "id": "8eb6da31.c976d8",
+ "id": "c13b6a1f.ac5838",
"type": "other",
"name": "outcome 101",
"xml": "<outcome value='101'>\n",
"comments": "",
"outputs": 1,
- "x": 948.9999389648438,
- "y": 739.0000686645508,
- "z": "df893cfa.16f38",
+ "x": 950.9999389648438,
+ "y": 758.0000686645508,
+ "z": "a5b492f8.99d13",
"wires": [
[
- "261676ae.6c18ea"
+ "c0fa5e3.de329a"
]
]
},
{
- "id": "f9b1e44f.cf0bf8",
+ "id": "c24e2446.933768",
"type": "success",
"name": "success",
"xml": "<outcome value='success'>\n",
"comments": "",
"outputs": 1,
- "x": 1309.9998779296875,
- "y": 863.0001220703125,
- "z": "df893cfa.16f38",
+ "x": 1315.9998779296875,
+ "y": 862.0001220703125,
+ "z": "a5b492f8.99d13",
"wires": [
[
- "7ac364bd.12e01c"
+ "1b8bc484.4e584b"
]
]
},
{
- "id": "a40759ed.63a388",
+ "id": "425c7483.101a2c",
+ "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": 1609.9998779296875,
+ "y": 919.0000610351562,
+ "z": "a5b492f8.99d13",
+ "wires": []
+ },
+ {
+ "id": "d9f050b3.ea908",
"type": "dgstart",
"name": "DGSTART",
"outputs": 1,
- "x": 155,
- "y": 67,
- "z": "df893cfa.16f38",
+ "x": 157,
+ "y": 86,
+ "z": "a5b492f8.99d13",
"wires": [
[
- "1f7a861d.c2112a"
+ "ec3ea72c.b00d38"
]
]
},
{
- "id": "4a691c8b.6b9db4",
+ "id": "dc3f6c8f.49cb4",
"type": "block",
"name": "block",
"xml": "<block>\n",
"atomic": "false",
"comments": "",
"outputs": 1,
- "x": 152.91668701171875,
- "y": 159.08334350585938,
- "z": "df893cfa.16f38",
+ "x": 154.91668701171875,
+ "y": 178.08334350585938,
+ "z": "a5b492f8.99d13",
"wires": [
[
- "bb18ce54.65a6d",
- "4f789742.ddd168",
- "2f15d339.87cf0c",
- "556d2c3e.217c14",
- "905f1137.7562f",
- "5cc58e7c.083a5",
- "db896c60.3d19a",
- "ae5d9d02.d1fe4"
+ "aa4b4733.b95e98",
+ "ad12ad52.0e14c",
+ "494bc731.2b3b38",
+ "e7275d95.288b8",
+ "790211fa.4ddc3",
+ "87c25306.3bca6",
+ "54a283d8.5df65c",
+ "1cee6cc7.a0f263"
]
]
},
{
- "id": "4f789742.ddd168",
+ "id": "ad12ad52.0e14c",
"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": 451.0000305175781,
- "y": 192.08334350585938,
- "z": "df893cfa.16f38",
+ "x": 453.0000305175781,
+ "y": 211.08334350585938,
+ "z": "a5b492f8.99d13",
"wires": [
[]
]
},
{
- "id": "9f29e934.d196d8",
+ "id": "9aa2e4.6e1c5d2",
"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": 1617.9998779296875,
- "y": 645.0834045410156,
- "z": "df893cfa.16f38",
+ "x": 1619.9998779296875,
+ "y": 664.0834045410156,
+ "z": "a5b492f8.99d13",
"wires": [
[
- "eff6b07f.5f555"
+ "fde058a0.d22348"
]
]
},
{
- "id": "eff6b07f.5f555",
+ "id": "fde058a0.d22348",
"type": "failure",
"name": "failure",
"xml": "<outcome value='failure'>\n",
"comments": "",
"outputs": 1,
- "x": 1787.9998168945312,
- "y": 644.0834045410156,
- "z": "df893cfa.16f38",
+ "x": 1789.9998168945312,
+ "y": 663.0834045410156,
+ "z": "a5b492f8.99d13",
"wires": [
[
- "39c1e046.0c9a2"
+ "ff5c4bc7.d7c748"
]
]
},
{
- "id": "261676ae.6c18ea",
+ "id": "c0fa5e3.de329a",
"type": "block",
"name": "block",
"xml": "<block>\n",
"atomic": "false",
"comments": "",
"outputs": 1,
- "x": 1420.9998168945312,
- "y": 669.0834045410156,
- "z": "df893cfa.16f38",
+ "x": 1422.9998168945312,
+ "y": 688.0834045410156,
+ "z": "a5b492f8.99d13",
"wires": [
[
- "9f29e934.d196d8",
- "20f5321f.fe2dee",
- "b16d5209.3031f"
+ "9aa2e4.6e1c5d2",
+ "16091a49.ebb886",
+ "320ba499.3a71fc"
]
]
},
{
- "id": "dd99789.6491a88",
+ "id": "d1627c41.4a916",
"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": 1653.4998779296875,
- "y": 911.0833740234375,
- "z": "df893cfa.16f38",
+ "x": 1620.4998779296875,
+ "y": 869.0833740234375,
+ "z": "a5b492f8.99d13",
"wires": [
[
- "16bb547b.d2861c"
+ "cdd5a821.a26858"
]
]
},
{
- "id": "16bb547b.d2861c",
+ "id": "cdd5a821.a26858",
"type": "failure",
"name": "failure",
"xml": "<outcome value='failure'>\n",
"comments": "",
"outputs": 1,
- "x": 1838.4998779296875,
- "y": 911.0833740234375,
- "z": "df893cfa.16f38",
+ "x": 1788.4998779296875,
+ "y": 869.0833740234375,
+ "z": "a5b492f8.99d13",
"wires": [
[
- "95e8f51a.226ea8"
+ "6834bf03.5aff8"
]
]
},
{
- "id": "39c1e046.0c9a2",
+ "id": "ff5c4bc7.d7c748",
"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": 1907.9998779296875,
- "y": 643.0833740234375,
- "z": "df893cfa.16f38",
+ "x": 1909.9998779296875,
+ "y": 662.0833740234375,
+ "z": "a5b492f8.99d13",
"wires": [
[]
]
},
{
- "id": "20f5321f.fe2dee",
+ "id": "16091a49.ebb886",
"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": 1599.91650390625,
- "y": 696.0834045410156,
- "z": "df893cfa.16f38",
+ "x": 1601.91650390625,
+ "y": 715.0834045410156,
+ "z": "a5b492f8.99d13",
"wires": []
},
{
- "id": "95e8f51a.226ea8",
+ "id": "6834bf03.5aff8",
"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": 1970.9166259765625,
- "y": 911.0833740234375,
- "z": "df893cfa.16f38",
+ "x": 1916.9166259765625,
+ "y": 869.0833740234375,
+ "z": "a5b492f8.99d13",
"wires": [
[]
]
},
{
- "id": "b16d5209.3031f",
+ "id": "320ba499.3a71fc",
"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-pre-check-input.common-header.request-id + '-' + $upgrade-pre-check-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-pre-check'/>\n<parameter name='lcm-dmaap.type' value='`$prop.lcm.dmaap.type`'/>\n<parameter name='lcm-dmaap.timestamp' value='`$upgrade-pre-check-input.common-header.timestamp`'/>\n<parameter name='lcm-dmaap.api-ver' value='`$upgrade-pre-check-input.common-header.api-ver`'/>\n<parameter name='lcm-dmaap.originator-id' value='`$upgrade-pre-check-input.common-header.originator-id`'/>\n<parameter name='lcm-dmaap.request-id' value='`$upgrade-pre-check-input.common-header.request-id`'/>\n<parameter name='lcm-dmaap.sub-request-id' value='`$upgrade-pre-check-input.common-header.sub-request-id`'/>\n<parameter name='lcm-dmaap.flags.mode' value='`$upgrade-pre-check-input.common-header.flags.mode`'/>\n<parameter name='lcm-dmaap.flags.force' value='`$upgrade-pre-check-input.common-header.flags.force`'/>\n<parameter name='lcm-dmaap.flags.ttl' value='`$upgrade-pre-check-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": 1604.9998779296875,
- "y": 592.0833740234375,
- "z": "df893cfa.16f38",
+ "x": 1606.9998779296875,
+ "y": 611.0833740234375,
+ "z": "a5b492f8.99d13",
"wires": []
},
{
- "id": "7ac364bd.12e01c",
+ "id": "1b8bc484.4e584b",
"type": "block",
"name": "block",
"xml": "<block>\n",
"atomic": "false",
"comments": "",
"outputs": 1,
- "x": 1441.9998779296875,
- "y": 838.0833740234375,
- "z": "df893cfa.16f38",
+ "x": 1443.9998779296875,
+ "y": 863.0833740234375,
+ "z": "a5b492f8.99d13",
"wires": [
[
- "dd99789.6491a88",
- "66ca1a2.98ef5e4",
- "6f78d9df.0d3518",
- "3c0a54ab.00262c",
- "9977ea00.521808"
+ "d1627c41.4a916",
+ "da2077e7.65e5f8",
+ "425c7483.101a2c"
]
]
},
{
- "id": "b364bef1.e2765",
+ "id": "da2077e7.65e5f8",
"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-pre-check-input.common-header.request-id + '-' + $upgrade-pre-check-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-pre-check'/>\n<parameter name='lcm-dmaap.type' value='`$prop.lcm.dmaap.type`'/>\n<parameter name='lcm-dmaap.timestamp' value='`$upgrade-pre-check-input.common-header.timestamp`'/>\n<parameter name='lcm-dmaap.api-ver' value='`$upgrade-pre-check-input.common-header.api-ver`'/>\n<parameter name='lcm-dmaap.originator-id' value='`$upgrade-pre-check-input.common-header.originator-id`'/>\n<parameter name='lcm-dmaap.request-id' value='`$upgrade-pre-check-input.common-header.request-id`'/>\n<parameter name='lcm-dmaap.sub-request-id' value='`$upgrade-pre-check-input.common-header.sub-request-id`'/>\n<parameter name='lcm-dmaap.flags.mode' value='`$upgrade-pre-check-input.common-header.flags.mode`'/>\n<parameter name='lcm-dmaap.flags.force' value='`$upgrade-pre-check-input.common-header.flags.force`'/>\n<parameter name='lcm-dmaap.flags.ttl' value='`$upgrade-pre-check-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": 1995.1666259765625,
- "y": 816.0833740234375,
- "z": "df893cfa.16f38",
+ "x": 1610.1666259765625,
+ "y": 814.0833740234375,
+ "z": "a5b492f8.99d13",
"wires": []
},
{
- "id": "1beab9a5.7e2366",
+ "id": "d5d4d9a.dfdee28",
"type": "not-found",
"name": "not-found",
"xml": "<outcome value='not-found'>\n",
"comments": "",
"outputs": 1,
- "x": 674.9999389648438,
- "y": 648.0000610351562,
- "z": "df893cfa.16f38",
+ "x": 676.9999389648438,
+ "y": 667.0000610351562,
+ "z": "a5b492f8.99d13",
"wires": [
[
- "dd0b1351.6bec5"
+ "c67639b8.92e2d8"
]
]
},
{
- "id": "6e45eb8e.292b44",
+ "id": "1707d581.de00aa",
"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": 965.9999389648438,
- "y": 607,
- "z": "df893cfa.16f38",
+ "x": 967.9999389648438,
+ "y": 626,
+ "z": "a5b492f8.99d13",
"wires": []
},
{
- "id": "dd0b1351.6bec5",
+ "id": "c67639b8.92e2d8",
"type": "block",
"name": "block",
"xml": "<block>\n",
"atomic": "false",
"comments": "",
"outputs": 1,
- "x": 811.9999389648438,
- "y": 642.0000610351562,
- "z": "df893cfa.16f38",
+ "x": 813.9999389648438,
+ "y": 661.0000610351562,
+ "z": "a5b492f8.99d13",
"wires": [
[
- "6e45eb8e.292b44",
- "261676ae.6c18ea"
+ "1707d581.de00aa",
+ "c0fa5e3.de329a"
]
]
},
{
- "id": "2f15d339.87cf0c",
+ "id": "494bc731.2b3b38",
"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": 444,
- "y": 239,
- "z": "df893cfa.16f38",
+ "x": 446,
+ "y": 258,
+ "z": "a5b492f8.99d13",
"wires": []
},
{
- "id": "3bd1d194.63001e",
+ "id": "6e382fc2.9cf55",
"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-pre-check-input.action-identifiers.vnf-id\" \n\t\tlocal-only=\"false\" \n\t\tpfx='aai.generic-vnf'>",
"comments": "",
"outputs": 1,
- "x": 984,
- "y": 415,
- "z": "df893cfa.16f38",
+ "x": 986,
+ "y": 434,
+ "z": "a5b492f8.99d13",
"wires": [
[
- "d0549989.50cdf8"
+ "d143bfec.8f45b"
]
]
},
{
- "id": "d0549989.50cdf8",
+ "id": "d143bfec.8f45b",
"type": "success",
"name": "success",
"xml": "<outcome value='success'>\n",
"comments": "",
"outputs": 1,
- "x": 1142.3907470703125,
- "y": 413.28399658203125,
- "z": "df893cfa.16f38",
+ "x": 1144.3907470703125,
+ "y": 432.28399658203125,
+ "z": "a5b492f8.99d13",
"wires": [
[
- "50890a76.58d434"
+ "19bb6647.2aa81a"
]
]
},
{
- "id": "db896c60.3d19a",
+ "id": "54a283d8.5df65c",
"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": 372.9998779296875,
- "y": 603,
- "z": "df893cfa.16f38",
+ "x": 374.9998779296875,
+ "y": 622,
+ "z": "a5b492f8.99d13",
"wires": [
[]
]
},
{
- "id": "905f1137.7562f",
+ "id": "790211fa.4ddc3",
"type": "switchNode",
"name": "switch pnf-flag",
"xml": "<switch test='`$payloadJson.pnf-flag`'>\n",
"comments": "",
"outputs": 1,
- "x": 426,
- "y": 340,
- "z": "df893cfa.16f38",
+ "x": 428,
+ "y": 359,
+ "z": "a5b492f8.99d13",
"wires": [
[
- "d4a98e23.62f9b",
- "a403044b.ebc9f8"
+ "3deb4f48.5eacb",
+ "33286dd4.94fc62"
]
]
},
{
- "id": "556d2c3e.217c14",
+ "id": "e7275d95.288b8",
"type": "execute",
"name": "execute jsonStringToCtx",
"xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='jsonStringToCtx'>\n\t<parameter name='source' value='upgrade-pre-check-input.payload' />\n\t<parameter name='outputPath' value='payloadJson' />\n\t<parameter name='isEscaped' value='true' />",
"comments": "",
"outputs": 1,
- "x": 458,
- "y": 286,
- "z": "df893cfa.16f38",
+ "x": 460,
+ "y": 305,
+ "z": "a5b492f8.99d13",
"wires": [
[]
]
},
{
- "id": "d4a98e23.62f9b",
+ "id": "3deb4f48.5eacb",
"type": "outcome",
"name": "true",
"xml": "<outcome value='true'>\n",
"comments": "",
"outputs": 1,
- "x": 623,
- "y": 319,
- "z": "df893cfa.16f38",
+ "x": 625,
+ "y": 338,
+ "z": "a5b492f8.99d13",
"wires": [
[
- "582ec79b.faa468"
+ "cb346986.12dd48"
]
]
},
{
- "id": "a403044b.ebc9f8",
+ "id": "33286dd4.94fc62",
"type": "outcome",
"name": "other",
"xml": "<outcome value='Other'>\n",
"comments": "",
"outputs": 1,
- "x": 622.9999389648438,
- "y": 380,
- "z": "df893cfa.16f38",
+ "x": 624.9999389648438,
+ "y": 399,
+ "z": "a5b492f8.99d13",
"wires": [
[
- "3184e083.2b204"
+ "3af30869.256818"
]
]
},
{
- "id": "3184e083.2b204",
+ "id": "3af30869.256818",
"type": "block",
"name": "block",
"xml": "<block>\n",
"atomic": "false",
"comments": "",
"outputs": 1,
- "x": 770.9999389648438,
- "y": 379,
- "z": "df893cfa.16f38",
+ "x": 772.9999389648438,
+ "y": 398,
+ "z": "a5b492f8.99d13",
"wires": [
[
- "3bd1d194.63001e",
- "395906a2.acd1ea"
+ "6e382fc2.9cf55",
+ "ce17fe7f.d3b68"
]
]
},
{
- "id": "582ec79b.faa468",
+ "id": "cb346986.12dd48",
"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-pre-check.playbookname`'/>\n",
"comments": "",
- "x": 784,
- "y": 317,
- "z": "df893cfa.16f38",
+ "x": 786,
+ "y": 336,
+ "z": "a5b492f8.99d13",
"wires": []
},
{
- "id": "395906a2.acd1ea",
+ "id": "ce17fe7f.d3b68",
"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-pre-check.playbookname'`\" />\n\n",
"comments": "",
"outputs": 1,
- "x": 993,
- "y": 359,
- "z": "df893cfa.16f38",
+ "x": 995,
+ "y": 378,
+ "z": "a5b492f8.99d13",
"wires": [
[]
]
},
{
- "id": "5cc58e7c.083a5",
+ "id": "87c25306.3bca6",
"type": "switchNode",
"name": "switch playbookname",
"xml": "<switch test='`$playbookname`'>\n",
"comments": "",
"outputs": 1,
- "x": 423,
- "y": 471,
- "z": "df893cfa.16f38",
+ "x": 425,
+ "y": 490,
+ "z": "a5b492f8.99d13",
"wires": [
[
- "b9c121b9.01765"
+ "4b5ce9b.bbd8818"
]
]
},
{
- "id": "b9c121b9.01765",
+ "id": "4b5ce9b.bbd8818",
"type": "outcome",
"name": "null",
"xml": "<outcome value=''>\n",
"comments": "",
"outputs": 1,
- "x": 594,
- "y": 472,
- "z": "df893cfa.16f38",
+ "x": 596,
+ "y": 491,
+ "z": "a5b492f8.99d13",
"wires": [
[
- "96dc86e8.19da88"
+ "7b056df1.6a5e34"
]
]
},
{
- "id": "96dc86e8.19da88",
+ "id": "7b056df1.6a5e34",
"type": "set",
"name": "set playbookname",
- "xml": "<set>\n<parameter name='nodelist' value=\"`$prop.ansible.nodelist`\"/>\n<parameter name='playbookname' value='`$prop.lcm.upgrade-pre-check.playbookname`'/>",
+ "xml": "<set>\n<parameter name='playbookname' value='`$prop.lcm.upgrade-pre-check.playbookname`'/>",
"comments": "",
- "x": 784,
- "y": 471,
- "z": "df893cfa.16f38",
+ "x": 786,
+ "y": 490,
+ "z": "a5b492f8.99d13",
"wires": []
},
{
- "id": "ae5d9d02.d1fe4",
+ "id": "1cee6cc7.a0f263",
"type": "switchNode",
"name": "switch nodelist",
"xml": "<switch test='`$nodelist`'>\n",
"comments": "",
"outputs": 1,
- "x": 413,
- "y": 530,
- "z": "df893cfa.16f38",
+ "x": 415,
+ "y": 549,
+ "z": "a5b492f8.99d13",
"wires": [
[
- "d47821da.1dd48",
- "69b2cec2.dd018"
+ "892b8fdd.f84ea",
+ "8e25ca9e.be6708"
]
]
},
{
- "id": "d47821da.1dd48",
+ "id": "892b8fdd.f84ea",
"type": "outcome",
"name": "null",
"xml": "<outcome value=''>\n",
"comments": "",
"outputs": 1,
- "x": 593,
- "y": 523,
- "z": "df893cfa.16f38",
+ "x": 595,
+ "y": 542,
+ "z": "a5b492f8.99d13",
"wires": [
[
- "dce9b14d.bb77b"
+ "482863bc.936c5c"
]
]
},
{
- "id": "dce9b14d.bb77b",
+ "id": "482863bc.936c5c",
"type": "set",
"name": "set nodelist",
"xml": "<set>\n<parameter name='nodelist' value=\"`$prop.ansible.nodelist`\"/>",
"comments": "",
- "x": 750,
- "y": 537,
- "z": "df893cfa.16f38",
+ "x": 752,
+ "y": 556,
+ "z": "a5b492f8.99d13",
"wires": []
},
{
- "id": "69b2cec2.dd018",
+ "id": "8e25ca9e.be6708",
"type": "outcome",
"name": "empty",
"xml": "<outcome value=\"['']\">\n\n",
"comments": "",
"outputs": 1,
- "x": 592,
- "y": 567,
- "z": "df893cfa.16f38",
+ "x": 594,
+ "y": 586,
+ "z": "a5b492f8.99d13",
"wires": [
[
- "dce9b14d.bb77b"
+ "482863bc.936c5c"
]
]
},
{
- "id": "8d045871.31f638",
+ "id": "75287f66.d6424",
"type": "switchNode",
"name": "switch playbookname",
"xml": "<switch test='`$playbookname`'>\n",
"comments": "",
"outputs": 1,
- "x": 1468,
- "y": 402,
- "z": "df893cfa.16f38",
+ "x": 1470,
+ "y": 421,
+ "z": "a5b492f8.99d13",
"wires": [
[
- "ef1e7a17.621f38"
+ "cf31ac68.a9966"
]
]
},
{
- "id": "ef1e7a17.621f38",
+ "id": "cf31ac68.a9966",
"type": "outcome",
"name": "null",
"xml": "<outcome value=''>\n",
"comments": "",
"outputs": 1,
- "x": 1646,
- "y": 402,
- "z": "df893cfa.16f38",
+ "x": 1648,
+ "y": 421,
+ "z": "a5b492f8.99d13",
"wires": [
[
- "862a6ea8.3ba16"
+ "822cf6dc.fbd318"
]
]
},
{
- "id": "8543ebcf.2ead48",
+ "id": "f5a8e69f.6d2868",
"type": "set",
"name": "set nodelist",
"xml": "<set>\n<parameter name='nodelist' value=\"`'[' + $quote + $aai.generic-vnf.ipv4-oam-address + $quote + ']'`\"/>\n",
"comments": "",
- "x": 1441,
- "y": 455,
- "z": "df893cfa.16f38",
+ "x": 1443,
+ "y": 474,
+ "z": "a5b492f8.99d13",
"wires": []
},
{
- "id": "50890a76.58d434",
+ "id": "19bb6647.2aa81a",
"type": "block",
"name": "block",
"xml": "<block>\n",
"atomic": "false",
"comments": "",
"outputs": 1,
- "x": 1271,
- "y": 412,
- "z": "df893cfa.16f38",
+ "x": 1273,
+ "y": 431,
+ "z": "a5b492f8.99d13",
"wires": [
[
- "8d045871.31f638",
- "8543ebcf.2ead48"
+ "75287f66.d6424",
+ "f5a8e69f.6d2868"
]
]
},
{
- "id": "862a6ea8.3ba16",
+ "id": "822cf6dc.fbd318",
"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-pre-check.playbookname'`\" />\n\n",
"comments": "",
"outputs": 1,
- "x": 1818,
- "y": 400,
- "z": "df893cfa.16f38",
- "wires": [
- []
- ]
- },
- {
- "id": "66ca1a2.98ef5e4",
- "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": 1668,
- "y": 744,
- "z": "df893cfa.16f38",
- "wires": [
- []
- ]
- },
- {
- "id": "6f78d9df.0d3518",
- "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": 1674,
- "y": 789,
- "z": "df893cfa.16f38",
+ "x": 1820,
+ "y": 419,
+ "z": "a5b492f8.99d13",
"wires": [
[]
]
- },
- {
- "id": "3c0a54ab.00262c",
- "type": "switchNode",
- "name": "switch outputPayload",
- "xml": "<switch test='`$outputPayload`'>\n",
- "comments": "",
- "outputs": 1,
- "x": 1660,
- "y": 836,
- "z": "df893cfa.16f38",
- "wires": [
- [
- "65b8d06e.2f308",
- "db2edf05.5dbf2"
- ]
- ]
- },
- {
- "id": "65b8d06e.2f308",
- "type": "outcome",
- "name": "null",
- "xml": "<outcome value=''>\n",
- "comments": "",
- "outputs": 1,
- "x": 1838,
- "y": 816,
- "z": "df893cfa.16f38",
- "wires": [
- [
- "b364bef1.e2765"
- ]
- ]
- },
- {
- "id": "db2edf05.5dbf2",
- "type": "outcome",
- "name": "other",
- "xml": "<outcome value='Other'>\n",
- "comments": "",
- "outputs": 1,
- "x": 1839,
- "y": 860,
- "z": "df893cfa.16f38",
- "wires": [
- [
- "3b020d0b.edb822"
- ]
- ]
- },
- {
- "id": "3b020d0b.edb822",
- "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-pre-check-input.common-header.request-id + '-' + $upgrade-pre-check-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-pre-check'/>\n<parameter name='lcm-dmaap.type' value='`$prop.lcm.dmaap.type`'/>\n<parameter name='lcm-dmaap.timestamp' value='`$upgrade-pre-check-input.common-header.timestamp`'/>\n<parameter name='lcm-dmaap.api-ver' value='`$upgrade-pre-check-input.common-header.api-ver`'/>\n<parameter name='lcm-dmaap.originator-id' value='`$upgrade-pre-check-input.common-header.originator-id`'/>\n<parameter name='lcm-dmaap.request-id' value='`$upgrade-pre-check-input.common-header.request-id`'/>\n<parameter name='lcm-dmaap.sub-request-id' value='`$upgrade-pre-check-input.common-header.sub-request-id`'/>\n<parameter name='lcm-dmaap.flags.mode' value='`$upgrade-pre-check-input.common-header.flags.mode`'/>\n<parameter name='lcm-dmaap.flags.force' value='`$upgrade-pre-check-input.common-header.flags.force`'/>\n<parameter name='lcm-dmaap.flags.ttl' value='`$upgrade-pre-check-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": 2036,
- "y": 860,
- "z": "df893cfa.16f38",
- "wires": []
- },
- {
- "id": "e583cc0b.79586",
- "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": 2371,
- "y": 946.9999389648438,
- "z": "df893cfa.16f38",
- "wires": []
- },
- {
- "id": "b678b572.4bc6d8",
- "type": "outcome",
- "name": "null",
- "xml": "<outcome value=''>\n",
- "comments": "",
- "outputs": 1,
- "x": 1837.000244140625,
- "y": 968.9998779296875,
- "z": "df893cfa.16f38",
- "wires": [
- [
- "bebb9bde.cadbc8"
- ]
- ]
- },
- {
- "id": "e71f0e75.f5e6e",
- "type": "outcome",
- "name": "other",
- "xml": "<outcome value='Other'>\n",
- "comments": "",
- "outputs": 1,
- "x": 1836.000244140625,
- "y": 1044.9998779296875,
- "z": "df893cfa.16f38",
- "wires": [
- [
- "a34ae1ab.50555"
- ]
- ]
- },
- {
- "id": "9977ea00.521808",
- "type": "switchNode",
- "name": "switch outputPayload",
- "xml": "<switch test='`$outputPayload`'>\n",
- "comments": "",
- "outputs": 1,
- "x": 1654.000244140625,
- "y": 1004.9998779296875,
- "z": "df893cfa.16f38",
- "wires": [
- [
- "b678b572.4bc6d8",
- "e71f0e75.f5e6e"
- ]
- ]
- },
- {
- "id": "c888915f.7e81c",
- "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": 2412.000244140625,
- "y": 1028.9998779296875,
- "z": "df893cfa.16f38",
- "wires": []
- },
- {
- "id": "bebb9bde.cadbc8",
- "type": "switchNode",
- "name": "switch result code",
- "xml": "<switch test=\"`$org.onap.appc.adapter.ansible.result.code`\">\n",
- "comments": "",
- "outputs": 1,
- "x": 2007.000244140625,
- "y": 968.9998779296875,
- "z": "df893cfa.16f38",
- "wires": [
- [
- "1b395046.b5f6",
- "d4989dec.88a2e"
- ]
- ]
- },
- {
- "id": "a34ae1ab.50555",
- "type": "switchNode",
- "name": "switch result code",
- "xml": "<switch test=\"`$org.onap.appc.adapter.ansible.result.code`\">\n",
- "comments": "",
- "outputs": 1,
- "x": 2007.000244140625,
- "y": 1044.9998779296875,
- "z": "df893cfa.16f38",
- "wires": [
- [
- "8e9f2082.ee767",
- "3b44f0c3.4b7c2"
- ]
- ]
- },
- {
- "id": "5e9a3c.5f7e95c4",
- "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": 2365.000244140625,
- "y": 984.9998779296875,
- "z": "df893cfa.16f38",
- "wires": []
- },
- {
- "id": "398f4135.fd470e",
- "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": 2408.000244140625,
- "y": 1066.9998779296875,
- "z": "df893cfa.16f38",
- "wires": []
- },
- {
- "id": "1b395046.b5f6",
- "type": "other",
- "name": "outcome 400",
- "xml": "<outcome value='400'>\n",
- "comments": "",
- "outputs": 1,
- "x": 2195.000244140625,
- "y": 946.9998779296875,
- "z": "df893cfa.16f38",
- "wires": [
- [
- "e583cc0b.79586"
- ]
- ]
- },
- {
- "id": "d4989dec.88a2e",
- "type": "outcome",
- "name": "other",
- "xml": "<outcome value='Other'>\n",
- "comments": "",
- "outputs": 1,
- "x": 2176.000244140625,
- "y": 984.9998779296875,
- "z": "df893cfa.16f38",
- "wires": [
- [
- "5e9a3c.5f7e95c4"
- ]
- ]
- },
- {
- "id": "8e9f2082.ee767",
- "type": "other",
- "name": "outcome 400",
- "xml": "<outcome value='400'>\n",
- "comments": "",
- "outputs": 1,
- "x": 2196.000244140625,
- "y": 1028.9998779296875,
- "z": "df893cfa.16f38",
- "wires": [
- [
- "c888915f.7e81c"
- ]
- ]
- },
- {
- "id": "3b44f0c3.4b7c2",
- "type": "outcome",
- "name": "other",
- "xml": "<outcome value='Other'>\n",
- "comments": "",
- "outputs": 1,
- "x": 2178.000244140625,
- "y": 1066.9998779296875,
- "z": "df893cfa.16f38",
- "wires": [
- [
- "398f4135.fd470e"
- ]
- ]
}
]
\ No newline at end of file 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 0ddbf91e..656abb45 100644 --- a/platform-logic/lcm/src/main/json/LCM_upgrade-software.json +++ b/platform-logic/lcm/src/main/json/LCM_upgrade-software.json @@ -1,811 +1,811 @@ [
{
- "id": "fab0f7ed.c486b8",
+ "id": "d52a9fe6.4a061",
"type": "method",
"name": "upgrade-software",
"xml": "<method rpc='upgrade-software' mode='sync'>\n",
"comments": "",
"outputs": 1,
- "x": 480,
- "y": 147,
- "z": "50de34e0.ace54c",
+ "x": 544,
+ "y": 52,
+ "z": "d0eb0cbd.ae56e",
"wires": [
[
- "5ccc8e8d.06e5"
+ "8be92af7.e48088"
]
]
},
{
- "id": "5c791eb8.0072b",
+ "id": "b090596a.f30168",
"type": "service-logic",
- "name": "LCM ${project.version}",
+ "name": "LCM 1.4.5",
"module": "LCM",
- "version": "${project.version}",
+ "version": "1.4.5",
"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": 267.99993896484375,
- "y": 148,
- "z": "50de34e0.ace54c",
+ "x": 331.99993896484375,
+ "y": 53,
+ "z": "d0eb0cbd.ae56e",
"wires": [
[
- "fab0f7ed.c486b8"
+ "d52a9fe6.4a061"
]
]
},
{
- "id": "3503ece1.d7ad14",
+ "id": "2f057096.50046",
"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": 335.00001525878906,
- "y": 755,
- "z": "50de34e0.ace54c",
+ "x": 399.00001525878906,
+ "y": 660,
+ "z": "d0eb0cbd.ae56e",
"wires": [
[
- "734b2c42.973ee4",
- "bb8a76ca.fb7058",
- "a457fe79.46497"
+ "f4a52a80.3301f8",
+ "4c3969ef.3ad0e8",
+ "519ffe08.0c9b3"
]
]
},
{
- "id": "f17ff2aa.67075",
+ "id": "5a208b8c.11bad4",
"type": "switchNode",
"name": "switch",
"xml": "<switch test=\"`$org.onap.appc.adapter.ansible.result.code`\">\n",
"comments": "",
"outputs": 1,
- "x": 734.9999389648438,
- "y": 863.0000305175781,
- "z": "50de34e0.ace54c",
+ "x": 798.9999389648438,
+ "y": 768.0000305175781,
+ "z": "d0eb0cbd.ae56e",
"wires": [
[
- "7ad5787f.1c20f8",
- "b6f779a3.cc7ed8",
- "f695f05e.abf31"
+ "e1869f29.6536c",
+ "43f57bf1.626ff4",
+ "c32ffe89.d048e"
]
]
},
{
- "id": "7ad5787f.1c20f8",
+ "id": "e1869f29.6536c",
"type": "other",
"name": "outcome 500",
"xml": "<outcome value='500'>\n",
"comments": "",
"outputs": 1,
- "x": 879.9999389648438,
- "y": 861.0000381469727,
- "z": "50de34e0.ace54c",
+ "x": 943.9999389648438,
+ "y": 766.0000381469727,
+ "z": "d0eb0cbd.ae56e",
"wires": [
[
- "2b54a991.b17b16"
+ "398fd4fb.d6173c"
]
]
},
{
- "id": "b6f779a3.cc7ed8",
+ "id": "43f57bf1.626ff4",
"type": "other",
"name": "outcome 100",
"xml": "<outcome value='100'>\n",
"comments": "",
"outputs": 1,
- "x": 876.9999389648438,
- "y": 918.0000305175781,
- "z": "50de34e0.ace54c",
+ "x": 940.9999389648438,
+ "y": 823.0000305175781,
+ "z": "d0eb0cbd.ae56e",
"wires": [
[
- "1a65bc45.b2fcb4"
+ "f88fcab6.006eb8"
]
]
},
{
- "id": "1a65bc45.b2fcb4",
+ "id": "f88fcab6.006eb8",
"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": 1064.9999389648438,
- "y": 917.0000305175781,
- "z": "50de34e0.ace54c",
+ "x": 1128.9999389648438,
+ "y": 822.0000305175781,
+ "z": "d0eb0cbd.ae56e",
"wires": [
[
- "5b0d24c6.9eb0ac",
- "2b5e4322.1d495c"
+ "73432b98.4b25e4",
+ "bd487c1a.8c998"
]
]
},
{
- "id": "bb8a76ca.fb7058",
+ "id": "4c3969ef.3ad0e8",
"type": "failure",
"name": "failure",
"xml": "<outcome value='failure'>\n",
"comments": "",
"outputs": 1,
- "x": 593.9999389648438,
- "y": 776.0000915527344,
- "z": "50de34e0.ace54c",
+ "x": 657.9999389648438,
+ "y": 681.0000915527344,
+ "z": "d0eb0cbd.ae56e",
"wires": [
[
- "2b54a991.b17b16"
+ "398fd4fb.d6173c"
]
]
},
{
- "id": "734b2c42.973ee4",
+ "id": "f4a52a80.3301f8",
"type": "other",
"name": "other",
"xml": "<outcome value='Other'>\n",
"comments": "",
"outputs": 1,
- "x": 595.9999389648438,
- "y": 828.0000610351562,
- "z": "50de34e0.ace54c",
+ "x": 659.9999389648438,
+ "y": 733.0000610351562,
+ "z": "d0eb0cbd.ae56e",
"wires": [
[
- "f17ff2aa.67075"
+ "5a208b8c.11bad4"
]
]
},
{
- "id": "5b0d24c6.9eb0ac",
+ "id": "73432b98.4b25e4",
"type": "failure",
"name": "failure",
"xml": "<outcome value='failure'>\n",
"comments": "",
"outputs": 1,
- "x": 1233.9999389648438,
- "y": 875.0000381469727,
- "z": "50de34e0.ace54c",
+ "x": 1297.9999389648438,
+ "y": 780.0000381469727,
+ "z": "d0eb0cbd.ae56e",
"wires": [
[
- "2b54a991.b17b16"
+ "398fd4fb.d6173c"
]
]
},
{
- "id": "f695f05e.abf31",
+ "id": "c32ffe89.d048e",
"type": "other",
"name": "outcome 101",
"xml": "<outcome value='101'>\n",
"comments": "",
"outputs": 1,
- "x": 876.9999389648438,
- "y": 819.0000686645508,
- "z": "50de34e0.ace54c",
+ "x": 940.9999389648438,
+ "y": 724.0000686645508,
+ "z": "d0eb0cbd.ae56e",
"wires": [
[
- "2b54a991.b17b16"
+ "398fd4fb.d6173c"
]
]
},
{
- "id": "2b5e4322.1d495c",
+ "id": "bd487c1a.8c998",
"type": "success",
"name": "success",
"xml": "<outcome value='success'>\n",
"comments": "",
"outputs": 1,
- "x": 1241.9998779296875,
- "y": 923.0001220703125,
- "z": "50de34e0.ace54c",
+ "x": 1305.9998779296875,
+ "y": 828.0001220703125,
+ "z": "d0eb0cbd.ae56e",
"wires": [
[
- "db1e6d62.a1404"
+ "adb9b1a6.61eb5"
]
]
},
{
- "id": "c1a2b259.11e46",
+ "id": "2b291cab.721924",
"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": 1535.9998779296875,
- "y": 980.0000610351562,
- "z": "50de34e0.ace54c",
+ "x": 1599.9998779296875,
+ "y": 885.0000610351562,
+ "z": "d0eb0cbd.ae56e",
"wires": []
},
{
- "id": "566f9779.c05d38",
+ "id": "db787a9a.5729a8",
"type": "dgstart",
"name": "DGSTART",
"outputs": 1,
- "x": 83,
- "y": 147,
- "z": "50de34e0.ace54c",
+ "x": 147,
+ "y": 52,
+ "z": "d0eb0cbd.ae56e",
"wires": [
[
- "5c791eb8.0072b"
+ "b090596a.f30168"
]
]
},
{
- "id": "5ccc8e8d.06e5",
+ "id": "8be92af7.e48088",
"type": "block",
"name": "block",
"xml": "<block>\n",
"atomic": "false",
"comments": "",
"outputs": 1,
- "x": 80.91668701171875,
- "y": 239.08334350585938,
- "z": "50de34e0.ace54c",
+ "x": 144.91668701171875,
+ "y": 144.08334350585938,
+ "z": "d0eb0cbd.ae56e",
"wires": [
[
- "3503ece1.d7ad14",
- "dc18f7c9.2e4ac8",
- "814875d2.cac108",
- "e9d89bdf.30f7a8",
- "69e97f86.e07ef",
- "fa9a8e1f.bba53",
- "baba22fc.1ceb5",
- "81510405.ca8868"
+ "2f057096.50046",
+ "f86ff952.0492a8",
+ "e1e7ef0d.bad94",
+ "3f387094.3465e",
+ "1f8f1867.c1cf08",
+ "4e2df025.06262",
+ "690e9c9d.3aca34",
+ "3ebaf64f.5a6c4a"
]
]
},
{
- "id": "dc18f7c9.2e4ac8",
+ "id": "f86ff952.0492a8",
"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": 379.0000305175781,
- "y": 272.0833435058594,
- "z": "50de34e0.ace54c",
+ "x": 443.0000305175781,
+ "y": 177.08334350585938,
+ "z": "d0eb0cbd.ae56e",
"wires": [
[]
]
},
{
- "id": "70d1c79a.089af8",
+ "id": "70a47606.d49438",
"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": 1545.9998779296875,
- "y": 725.0834045410156,
- "z": "50de34e0.ace54c",
+ "x": 1609.9998779296875,
+ "y": 630.0834045410156,
+ "z": "d0eb0cbd.ae56e",
"wires": [
[
- "d776c76b.1dd188"
+ "34ac5379.9a844c"
]
]
},
{
- "id": "d776c76b.1dd188",
+ "id": "34ac5379.9a844c",
"type": "failure",
"name": "failure",
"xml": "<outcome value='failure'>\n",
"comments": "",
"outputs": 1,
- "x": 1715.9998168945312,
- "y": 724.0834045410156,
- "z": "50de34e0.ace54c",
+ "x": 1779.9998168945312,
+ "y": 629.0834045410156,
+ "z": "d0eb0cbd.ae56e",
"wires": [
[
- "eac6c260.d11fc"
+ "fb390c18.77a19"
]
]
},
{
- "id": "2b54a991.b17b16",
+ "id": "398fd4fb.d6173c",
"type": "block",
"name": "block",
"xml": "<block>\n",
"atomic": "false",
"comments": "",
"outputs": 1,
- "x": 1348.9998168945312,
- "y": 749.0834045410156,
- "z": "50de34e0.ace54c",
+ "x": 1412.9998168945312,
+ "y": 654.0834045410156,
+ "z": "d0eb0cbd.ae56e",
"wires": [
[
- "70d1c79a.089af8",
- "7970fcd5.6f11b4",
- "3d8934f9.d0339c"
+ "70a47606.d49438",
+ "d82deaf3.a98988",
+ "df7a754d.479a48"
]
]
},
{
- "id": "e790e11b.4f947",
+ "id": "add47742.421838",
"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": 1546.4998779296875,
- "y": 930.0833740234375,
- "z": "50de34e0.ace54c",
+ "x": 1610.4998779296875,
+ "y": 835.0833740234375,
+ "z": "d0eb0cbd.ae56e",
"wires": [
[
- "2e13891.034f576"
+ "5ad46d9d.c433d4"
]
]
},
{
- "id": "2e13891.034f576",
+ "id": "5ad46d9d.c433d4",
"type": "failure",
"name": "failure",
"xml": "<outcome value='failure'>\n",
"comments": "",
"outputs": 1,
- "x": 1714.4998779296875,
- "y": 930.0833740234375,
- "z": "50de34e0.ace54c",
+ "x": 1778.4998779296875,
+ "y": 835.0833740234375,
+ "z": "d0eb0cbd.ae56e",
"wires": [
[
- "30475e40.9b8be2"
+ "a1c42905.fff878"
]
]
},
{
- "id": "eac6c260.d11fc",
+ "id": "fb390c18.77a19",
"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": 1835.9998779296875,
- "y": 723.0833740234375,
- "z": "50de34e0.ace54c",
+ "x": 1899.9998779296875,
+ "y": 628.0833740234375,
+ "z": "d0eb0cbd.ae56e",
"wires": [
[]
]
},
{
- "id": "7970fcd5.6f11b4",
+ "id": "d82deaf3.a98988",
"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": 1527.91650390625,
- "y": 776.0834045410156,
- "z": "50de34e0.ace54c",
+ "x": 1591.91650390625,
+ "y": 681.0834045410156,
+ "z": "d0eb0cbd.ae56e",
"wires": []
},
{
- "id": "30475e40.9b8be2",
+ "id": "a1c42905.fff878",
"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": 1842.9166259765625,
- "y": 930.0833740234375,
- "z": "50de34e0.ace54c",
+ "x": 1906.9166259765625,
+ "y": 835.0833740234375,
+ "z": "d0eb0cbd.ae56e",
"wires": [
[]
]
},
{
- "id": "3d8934f9.d0339c",
+ "id": "df7a754d.479a48",
"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": 1532.9998779296875,
- "y": 672.0833740234375,
- "z": "50de34e0.ace54c",
+ "x": 1596.9998779296875,
+ "y": 577.0833740234375,
+ "z": "d0eb0cbd.ae56e",
"wires": []
},
{
- "id": "db1e6d62.a1404",
+ "id": "adb9b1a6.61eb5",
"type": "block",
"name": "block",
"xml": "<block>\n",
"atomic": "false",
"comments": "",
"outputs": 1,
- "x": 1369.9998779296875,
- "y": 924.0833740234375,
- "z": "50de34e0.ace54c",
+ "x": 1433.9998779296875,
+ "y": 829.0833740234375,
+ "z": "d0eb0cbd.ae56e",
"wires": [
[
- "e790e11b.4f947",
- "3a3f1d44.898da2",
- "c1a2b259.11e46"
+ "add47742.421838",
+ "ff897b1a.9583f8",
+ "2b291cab.721924"
]
]
},
{
- "id": "3a3f1d44.898da2",
+ "id": "ff897b1a.9583f8",
"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": 1536.1666259765625,
- "y": 875.0833740234375,
- "z": "50de34e0.ace54c",
+ "x": 1600.1666259765625,
+ "y": 780.0833740234375,
+ "z": "d0eb0cbd.ae56e",
"wires": []
},
{
- "id": "a457fe79.46497",
+ "id": "519ffe08.0c9b3",
"type": "not-found",
"name": "not-found",
"xml": "<outcome value='not-found'>\n",
"comments": "",
"outputs": 1,
- "x": 602.9999389648438,
- "y": 728.0000610351562,
- "z": "50de34e0.ace54c",
+ "x": 666.9999389648438,
+ "y": 633.0000610351562,
+ "z": "d0eb0cbd.ae56e",
"wires": [
[
- "3d4c2c9a.7b1324"
+ "e32c4a6d.892558"
]
]
},
{
- "id": "d512629f.bc625",
+ "id": "8405f654.a242a8",
"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": 893.9999389648438,
- "y": 687,
- "z": "50de34e0.ace54c",
+ "x": 957.9999389648438,
+ "y": 592,
+ "z": "d0eb0cbd.ae56e",
"wires": []
},
{
- "id": "3d4c2c9a.7b1324",
+ "id": "e32c4a6d.892558",
"type": "block",
"name": "block",
"xml": "<block>\n",
"atomic": "false",
"comments": "",
"outputs": 1,
- "x": 739.9999389648438,
- "y": 722.0000610351562,
- "z": "50de34e0.ace54c",
+ "x": 803.9999389648438,
+ "y": 627.0000610351562,
+ "z": "d0eb0cbd.ae56e",
"wires": [
[
- "d512629f.bc625",
- "2b54a991.b17b16"
+ "8405f654.a242a8",
+ "398fd4fb.d6173c"
]
]
},
{
- "id": "814875d2.cac108",
+ "id": "e1e7ef0d.bad94",
"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": 372,
- "y": 319,
- "z": "50de34e0.ace54c",
+ "x": 436,
+ "y": 224,
+ "z": "d0eb0cbd.ae56e",
"wires": []
},
{
- "id": "442dbdff.6dfcb4",
+ "id": "62ae5ec1.69479",
"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": 912,
- "y": 495,
- "z": "50de34e0.ace54c",
+ "x": 978,
+ "y": 415,
+ "z": "d0eb0cbd.ae56e",
"wires": [
[
- "1e57cb28.122ad5"
+ "45f13d8e.2baab4"
]
]
},
{
- "id": "1e57cb28.122ad5",
+ "id": "45f13d8e.2baab4",
"type": "success",
"name": "success",
"xml": "<outcome value='success'>\n",
"comments": "",
"outputs": 1,
- "x": 1070.3907470703125,
- "y": 493.28399658203125,
- "z": "50de34e0.ace54c",
+ "x": 1134.3907470703125,
+ "y": 398.28399658203125,
+ "z": "d0eb0cbd.ae56e",
"wires": [
[
- "5a65efc0.bf413"
+ "374bb3b9.6cefec"
]
]
},
{
- "id": "baba22fc.1ceb5",
+ "id": "690e9c9d.3aca34",
"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": 300.9998779296875,
- "y": 683,
- "z": "50de34e0.ace54c",
+ "x": 364.9998779296875,
+ "y": 588,
+ "z": "d0eb0cbd.ae56e",
"wires": [
[]
]
},
{
- "id": "69e97f86.e07ef",
+ "id": "1f8f1867.c1cf08",
"type": "switchNode",
"name": "switch pnf-flag",
"xml": "<switch test='`$payloadJson.pnf-flag`'>\n",
"comments": "",
"outputs": 1,
- "x": 354,
- "y": 420,
- "z": "50de34e0.ace54c",
+ "x": 418,
+ "y": 325,
+ "z": "d0eb0cbd.ae56e",
"wires": [
[
- "e43265e9.4c7f38",
- "d78c93da.7125f"
+ "5b32bef7.b059e",
+ "f5bcff23.7649a"
]
]
},
{
- "id": "e9d89bdf.30f7a8",
+ "id": "3f387094.3465e",
"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": 386,
- "y": 366,
- "z": "50de34e0.ace54c",
+ "x": 450,
+ "y": 271,
+ "z": "d0eb0cbd.ae56e",
"wires": [
[]
]
},
{
- "id": "e43265e9.4c7f38",
+ "id": "5b32bef7.b059e",
"type": "outcome",
"name": "true",
"xml": "<outcome value='true'>\n",
"comments": "",
"outputs": 1,
- "x": 551,
- "y": 399,
- "z": "50de34e0.ace54c",
+ "x": 615,
+ "y": 304,
+ "z": "d0eb0cbd.ae56e",
"wires": [
[
- "abbc4ae4.be5328"
+ "a02f543f.407778"
]
]
},
{
- "id": "d78c93da.7125f",
+ "id": "f5bcff23.7649a",
"type": "outcome",
"name": "other",
"xml": "<outcome value='Other'>\n",
"comments": "",
"outputs": 1,
- "x": 550.9999389648438,
- "y": 460,
- "z": "50de34e0.ace54c",
+ "x": 614.9999389648438,
+ "y": 365,
+ "z": "d0eb0cbd.ae56e",
"wires": [
[
- "f68ee407.ca6d88"
+ "4ae3a7c9.907f18"
]
]
},
{
- "id": "f68ee407.ca6d88",
+ "id": "4ae3a7c9.907f18",
"type": "block",
"name": "block",
"xml": "<block>\n",
"atomic": "false",
"comments": "",
"outputs": 1,
- "x": 698.9999389648438,
- "y": 459,
- "z": "50de34e0.ace54c",
+ "x": 762.9999389648438,
+ "y": 364,
+ "z": "d0eb0cbd.ae56e",
"wires": [
[
- "442dbdff.6dfcb4",
- "80c560bb.eea5f"
+ "62ae5ec1.69479",
+ "fc28a02d.cc248"
]
]
},
{
- "id": "abbc4ae4.be5328",
+ "id": "a02f543f.407778",
"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",
"comments": "",
- "x": 712,
- "y": 397,
- "z": "50de34e0.ace54c",
+ "x": 776,
+ "y": 302,
+ "z": "d0eb0cbd.ae56e",
"wires": []
},
{
- "id": "80c560bb.eea5f",
+ "id": "fc28a02d.cc248",
"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": 921,
- "y": 439,
- "z": "50de34e0.ace54c",
+ "x": 976,
+ "y": 312,
+ "z": "d0eb0cbd.ae56e",
"wires": [
[]
]
},
{
- "id": "fa9a8e1f.bba53",
+ "id": "4e2df025.06262",
"type": "switchNode",
"name": "switch playbookname",
"xml": "<switch test='`$playbookname`'>\n",
"comments": "",
"outputs": 1,
- "x": 351,
- "y": 551,
- "z": "50de34e0.ace54c",
+ "x": 415,
+ "y": 456,
+ "z": "d0eb0cbd.ae56e",
"wires": [
[
- "1a5624d2.74e98b"
+ "6164fda7.628474"
]
]
},
{
- "id": "1a5624d2.74e98b",
+ "id": "6164fda7.628474",
"type": "outcome",
"name": "null",
"xml": "<outcome value=''>\n",
"comments": "",
"outputs": 1,
- "x": 522,
- "y": 552,
- "z": "50de34e0.ace54c",
+ "x": 586,
+ "y": 457,
+ "z": "d0eb0cbd.ae56e",
"wires": [
[
- "524c17a1.30fbf8"
+ "789294b0.3e8a8c"
]
]
},
{
- "id": "524c17a1.30fbf8",
+ "id": "789294b0.3e8a8c",
"type": "set",
"name": "set playbookname",
- "xml": "<set>\n<parameter name='nodelist' value=\"`$prop.ansible.nodelist`\"/>\n<parameter name='playbookname' value='`$prop.lcm.upgrade-software.playbookname`'/>",
+ "xml": "<set>\n<parameter name='playbookname' value='`$prop.lcm.upgrade-software.playbookname`'/>",
"comments": "",
- "x": 712,
- "y": 551,
- "z": "50de34e0.ace54c",
+ "x": 776,
+ "y": 456,
+ "z": "d0eb0cbd.ae56e",
"wires": []
},
{
- "id": "81510405.ca8868",
+ "id": "3ebaf64f.5a6c4a",
"type": "switchNode",
"name": "switch nodelist",
"xml": "<switch test='`$nodelist`'>\n",
"comments": "",
"outputs": 1,
- "x": 341,
- "y": 610,
- "z": "50de34e0.ace54c",
+ "x": 405,
+ "y": 515,
+ "z": "d0eb0cbd.ae56e",
"wires": [
[
- "7a126f.d2de2d9",
- "8743a074.e8506"
+ "12193ca9.50e163",
+ "8146ae4e.2b29b"
]
]
},
{
- "id": "7a126f.d2de2d9",
+ "id": "12193ca9.50e163",
"type": "outcome",
"name": "null",
"xml": "<outcome value=''>\n",
"comments": "",
"outputs": 1,
- "x": 521,
- "y": 603,
- "z": "50de34e0.ace54c",
+ "x": 585,
+ "y": 508,
+ "z": "d0eb0cbd.ae56e",
"wires": [
[
- "c954af6f.c34df"
+ "b589f932.9ec108"
]
]
},
{
- "id": "c954af6f.c34df",
+ "id": "b589f932.9ec108",
"type": "set",
"name": "set nodelist",
"xml": "<set>\n<parameter name='nodelist' value=\"`$prop.ansible.nodelist`\"/>",
"comments": "",
- "x": 678,
- "y": 617,
- "z": "50de34e0.ace54c",
+ "x": 742,
+ "y": 522,
+ "z": "d0eb0cbd.ae56e",
"wires": []
},
{
- "id": "8743a074.e8506",
+ "id": "8146ae4e.2b29b",
"type": "outcome",
"name": "empty",
"xml": "<outcome value=\"['']\">\n\n",
"comments": "",
"outputs": 1,
- "x": 520,
- "y": 647,
- "z": "50de34e0.ace54c",
+ "x": 584,
+ "y": 552,
+ "z": "d0eb0cbd.ae56e",
"wires": [
[
- "c954af6f.c34df"
+ "b589f932.9ec108"
]
]
},
{
- "id": "90b2891b.001708",
+ "id": "94498b41.794368",
"type": "switchNode",
"name": "switch playbookname",
"xml": "<switch test='`$playbookname`'>\n",
"comments": "",
"outputs": 1,
- "x": 1396,
- "y": 482,
- "z": "50de34e0.ace54c",
+ "x": 1460,
+ "y": 387,
+ "z": "d0eb0cbd.ae56e",
"wires": [
[
- "c9dd0d76.432f7"
+ "975c4b05.0f6d08"
]
]
},
{
- "id": "c9dd0d76.432f7",
+ "id": "975c4b05.0f6d08",
"type": "outcome",
"name": "null",
"xml": "<outcome value=''>\n",
"comments": "",
"outputs": 1,
- "x": 1574,
- "y": 482,
- "z": "50de34e0.ace54c",
+ "x": 1638,
+ "y": 387,
+ "z": "d0eb0cbd.ae56e",
"wires": [
[
- "6ea15b2b.d9cd74"
+ "eee08f4b.ee327"
]
]
},
{
- "id": "9706bdee.6acf9",
+ "id": "7c4590ff.245c9",
"type": "set",
"name": "set nodelist",
"xml": "<set>\n<parameter name='nodelist' value=\"`'[' + $quote + $aai.generic-vnf.ipv4-oam-address + $quote + ']'`\"/>\n",
"comments": "",
- "x": 1369,
- "y": 535,
- "z": "50de34e0.ace54c",
+ "x": 1433,
+ "y": 440,
+ "z": "d0eb0cbd.ae56e",
"wires": []
},
{
- "id": "5a65efc0.bf413",
+ "id": "374bb3b9.6cefec",
"type": "block",
"name": "block",
"xml": "<block>\n",
"atomic": "false",
"comments": "",
"outputs": 1,
- "x": 1199,
- "y": 492,
- "z": "50de34e0.ace54c",
+ "x": 1263,
+ "y": 397,
+ "z": "d0eb0cbd.ae56e",
"wires": [
[
- "90b2891b.001708",
- "9706bdee.6acf9"
+ "94498b41.794368",
+ "7c4590ff.245c9"
]
]
},
{
- "id": "6ea15b2b.d9cd74",
+ "id": "eee08f4b.ee327",
"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": 1746,
- "y": 480,
- "z": "50de34e0.ace54c",
+ "x": 1810,
+ "y": 385,
+ "z": "d0eb0cbd.ae56e",
"wires": [
[]
]
diff --git a/platform-logic/lcm/src/main/xml/LCM_upgrade-post-check.xml b/platform-logic/lcm/src/main/xml/LCM_upgrade-post-check.xml index a772373d..4a88aac4 100644 --- a/platform-logic/lcm/src/main/xml/LCM_upgrade-post-check.xml +++ b/platform-logic/lcm/src/main/xml/LCM_upgrade-post-check.xml @@ -57,7 +57,6 @@ <switch test='`$playbookname`'>
<outcome value=''>
<set>
- <parameter name='nodelist' value="`$prop.ansible.nodelist`"/>
<parameter name='playbookname' value='`$prop.lcm.upgrade-post-check.playbookname`'/>
</set>
</outcome>
@@ -271,56 +270,23 @@ <parameter name='PlaybookName' value='`$playbookname`'/>
<outcome value='failure'>
<block>
- <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='jsonStringToCtx'>
- <parameter name='source' value='org.onap.appc.adapter.ansible.results' />
- <parameter name='outputPath' value='resultsJson' />
- <parameter name='isEscaped' value='false' />
- </execute>
- <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'>
- <parameter name='source' value="`'resultsJson.' + $payloadJson.ipaddress-v4-oam + '.Output'`" />
- <parameter name='outputPath' value='outputPayload' />
- </execute>
- <switch test='`$outputPayload`'>
- <outcome value=''>
- <set>
- <parameter name='lcm-dmaap.version' value='`$prop.lcm.dmaap.version`'/>
- <parameter name='lcm-dmaap.correlation-id' value="`$upgrade-post-check-input.common-header.request-id + '-' + $upgrade-post-check-input.common-header.sub-request-id`"/>
- <parameter name='lcm-dmaap.partition' value='`$prop.lcm.dmaap.partition`'/>
- <parameter name='lcm-dmaap.rpc-name' value='upgrade-post-check'/>
- <parameter name='lcm-dmaap.type' value='`$prop.lcm.dmaap.type`'/>
- <parameter name='lcm-dmaap.timestamp' value='`$upgrade-post-check-input.common-header.timestamp`'/>
- <parameter name='lcm-dmaap.api-ver' value='`$upgrade-post-check-input.common-header.api-ver`'/>
- <parameter name='lcm-dmaap.originator-id' value='`$upgrade-post-check-input.common-header.originator-id`'/>
- <parameter name='lcm-dmaap.request-id' value='`$upgrade-post-check-input.common-header.request-id`'/>
- <parameter name='lcm-dmaap.sub-request-id' value='`$upgrade-post-check-input.common-header.sub-request-id`'/>
- <parameter name='lcm-dmaap.flags.mode' value='`$upgrade-post-check-input.common-header.flags.mode`'/>
- <parameter name='lcm-dmaap.flags.force' value='`$upgrade-post-check-input.common-header.flags.force`'/>
- <parameter name='lcm-dmaap.flags.ttl' value='`$upgrade-post-check-input.common-header.flags.ttl`'/>
- <parameter name='lcm-dmaap.status.code' value='`$org.onap.appc.adapter.ansible.result.code`' />
- <parameter name='lcm-dmaap.status.message' value='`$org.onap.appc.adapter.ansible.message`'/>
- </set>
- </outcome>
- <outcome value='Other'>
- <set>
- <parameter name='lcm-dmaap.version' value='`$prop.lcm.dmaap.version`'/>
- <parameter name='lcm-dmaap.correlation-id' value="`$upgrade-post-check-input.common-header.request-id + '-' + $upgrade-post-check-input.common-header.sub-request-id`"/>
- <parameter name='lcm-dmaap.partition' value='`$prop.lcm.dmaap.partition`'/>
- <parameter name='lcm-dmaap.rpc-name' value='upgrade-post-check'/>
- <parameter name='lcm-dmaap.type' value='`$prop.lcm.dmaap.type`'/>
- <parameter name='lcm-dmaap.timestamp' value='`$upgrade-post-check-input.common-header.timestamp`'/>
- <parameter name='lcm-dmaap.api-ver' value='`$upgrade-post-check-input.common-header.api-ver`'/>
- <parameter name='lcm-dmaap.originator-id' value='`$upgrade-post-check-input.common-header.originator-id`'/>
- <parameter name='lcm-dmaap.request-id' value='`$upgrade-post-check-input.common-header.request-id`'/>
- <parameter name='lcm-dmaap.sub-request-id' value='`$upgrade-post-check-input.common-header.sub-request-id`'/>
- <parameter name='lcm-dmaap.flags.mode' value='`$upgrade-post-check-input.common-header.flags.mode`'/>
- <parameter name='lcm-dmaap.flags.force' value='`$upgrade-post-check-input.common-header.flags.force`'/>
- <parameter name='lcm-dmaap.flags.ttl' value='`$upgrade-post-check-input.common-header.flags.ttl`'/>
- <parameter name='lcm-dmaap.status.code' value='`$org.onap.appc.adapter.ansible.result.code`' />
- <parameter name='lcm-dmaap.status.message' value='`$org.onap.appc.adapter.ansible.message`'/>
- <parameter name='lcm-dmaap.payload' value='`$outputPayload`'/>
- </set>
- </outcome>
- </switch>
+ <set>
+ <parameter name='lcm-dmaap.version' value='`$prop.lcm.dmaap.version`'/>
+ <parameter name='lcm-dmaap.correlation-id' value="`$upgrade-post-check-input.common-header.request-id + '-' + $upgrade-post-check-input.common-header.sub-request-id`"/>
+ <parameter name='lcm-dmaap.partition' value='`$prop.lcm.dmaap.partition`'/>
+ <parameter name='lcm-dmaap.rpc-name' value='upgrade-post-check'/>
+ <parameter name='lcm-dmaap.type' value='`$prop.lcm.dmaap.type`'/>
+ <parameter name='lcm-dmaap.timestamp' value='`$upgrade-post-check-input.common-header.timestamp`'/>
+ <parameter name='lcm-dmaap.api-ver' value='`$upgrade-post-check-input.common-header.api-ver`'/>
+ <parameter name='lcm-dmaap.originator-id' value='`$upgrade-post-check-input.common-header.originator-id`'/>
+ <parameter name='lcm-dmaap.request-id' value='`$upgrade-post-check-input.common-header.request-id`'/>
+ <parameter name='lcm-dmaap.sub-request-id' value='`$upgrade-post-check-input.common-header.sub-request-id`'/>
+ <parameter name='lcm-dmaap.flags.mode' value='`$upgrade-post-check-input.common-header.flags.mode`'/>
+ <parameter name='lcm-dmaap.flags.force' value='`$upgrade-post-check-input.common-header.flags.force`'/>
+ <parameter name='lcm-dmaap.flags.ttl' value='`$upgrade-post-check-input.common-header.flags.ttl`'/>
+ <parameter name='lcm-dmaap.status.code' value='`$org.onap.appc.adapter.ansible.result.code`' />
+ <parameter name='lcm-dmaap.status.message' value='`$org.onap.appc.adapter.ansible.message`'/>
+ </set>
<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >
<parameter name='templateFileName' value="`$prop.restapi.templateDir + '/' + $prop.restapi.lcm.dmaap.publish.templatefile`" />
<parameter name='restapiUrl' value='`$prop.lcm.dmaap.url`' />
@@ -337,96 +303,31 @@ </record>
</outcome>
</execute>
- <switch test='`$outputPayload`'>
- <outcome value=''>
- <switch test="`$org.onap.appc.adapter.ansible.result.code`">
- <outcome value='400'>
- <return status='success'>
- <parameter name='status.code' value='`$org.onap.appc.adapter.ansible.result.code`' />
- <parameter name='status.message' value='`$org.onap.appc.adapter.ansible.message`'/>
- </return>
- </outcome>
- <outcome value='Other'>
- <return status='failure'>
- <parameter name='status.code' value='401' />
- <parameter name='status.message' value='`$org.onap.appc.adapter.ansible.message`' />
- </return>
- </outcome>
- </switch>
- </outcome>
- <outcome value='Other'>
- <switch test="`$org.onap.appc.adapter.ansible.result.code`">
- <outcome value='400'>
- <return status='success'>
- <parameter name='status.code' value='`$org.onap.appc.adapter.ansible.result.code`' />
- <parameter name='status.message' value='`$org.onap.appc.adapter.ansible.message`'/>
- <parameter name='payload' value='`$outputPayload`'/>
- </return>
- </outcome>
- <outcome value='Other'>
- <return status='failure'>
- <parameter name='status.code' value='401' />
- <parameter name='status.message' value='`$org.onap.appc.adapter.ansible.message`' />
- <parameter name='payload' value='`$outputPayload`'/>
- </return>
- </outcome>
- </switch>
- </outcome>
- </switch>
+ <return status='failure'>
+ <parameter name='status.code' value='401' />
+ <parameter name='status.message' value='`$org.onap.appc.adapter.ansible.message`' />
+ </return>
</block>
</outcome>
<outcome value='success'>
<block>
- <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='jsonStringToCtx'>
- <parameter name='source' value='org.onap.appc.adapter.ansible.results' />
- <parameter name='outputPath' value='resultsJson' />
- <parameter name='isEscaped' value='false' />
- </execute>
- <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'>
- <parameter name='source' value="`'resultsJson.' + $payloadJson.ipaddress-v4-oam + '.Output'`" />
- <parameter name='outputPath' value='outputPayload' />
- </execute>
- <switch test='`$outputPayload`'>
- <outcome value=''>
- <set>
- <parameter name='lcm-dmaap.version' value='`$prop.lcm.dmaap.version`'/>
- <parameter name='lcm-dmaap.correlation-id' value="`$upgrade-post-check-input.common-header.request-id + '-' + $upgrade-post-check-input.common-header.sub-request-id`"/>
- <parameter name='lcm-dmaap.partition' value='`$prop.lcm.dmaap.partition`'/>
- <parameter name='lcm-dmaap.rpc-name' value='upgrade-post-check'/>
- <parameter name='lcm-dmaap.type' value='`$prop.lcm.dmaap.type`'/>
- <parameter name='lcm-dmaap.timestamp' value='`$upgrade-post-check-input.common-header.timestamp`'/>
- <parameter name='lcm-dmaap.api-ver' value='`$upgrade-post-check-input.common-header.api-ver`'/>
- <parameter name='lcm-dmaap.originator-id' value='`$upgrade-post-check-input.common-header.originator-id`'/>
- <parameter name='lcm-dmaap.request-id' value='`$upgrade-post-check-input.common-header.request-id`'/>
- <parameter name='lcm-dmaap.sub-request-id' value='`$upgrade-post-check-input.common-header.sub-request-id`'/>
- <parameter name='lcm-dmaap.flags.mode' value='`$upgrade-post-check-input.common-header.flags.mode`'/>
- <parameter name='lcm-dmaap.flags.force' value='`$upgrade-post-check-input.common-header.flags.force`'/>
- <parameter name='lcm-dmaap.flags.ttl' value='`$upgrade-post-check-input.common-header.flags.ttl`'/>
- <parameter name='lcm-dmaap.status.code' value='`$org.onap.appc.adapter.ansible.result.code`' />
- <parameter name='lcm-dmaap.status.message' value='`$org.onap.appc.adapter.ansible.message`'/>
- </set>
- </outcome>
- <outcome value='Other'>
- <set>
- <parameter name='lcm-dmaap.version' value='`$prop.lcm.dmaap.version`'/>
- <parameter name='lcm-dmaap.correlation-id' value="`$upgrade-post-check-input.common-header.request-id + '-' + $upgrade-post-check-input.common-header.sub-request-id`"/>
- <parameter name='lcm-dmaap.partition' value='`$prop.lcm.dmaap.partition`'/>
- <parameter name='lcm-dmaap.rpc-name' value='upgrade-post-check'/>
- <parameter name='lcm-dmaap.type' value='`$prop.lcm.dmaap.type`'/>
- <parameter name='lcm-dmaap.timestamp' value='`$upgrade-post-check-input.common-header.timestamp`'/>
- <parameter name='lcm-dmaap.api-ver' value='`$upgrade-post-check-input.common-header.api-ver`'/>
- <parameter name='lcm-dmaap.originator-id' value='`$upgrade-post-check-input.common-header.originator-id`'/>
- <parameter name='lcm-dmaap.request-id' value='`$upgrade-post-check-input.common-header.request-id`'/>
- <parameter name='lcm-dmaap.sub-request-id' value='`$upgrade-post-check-input.common-header.sub-request-id`'/>
- <parameter name='lcm-dmaap.flags.mode' value='`$upgrade-post-check-input.common-header.flags.mode`'/>
- <parameter name='lcm-dmaap.flags.force' value='`$upgrade-post-check-input.common-header.flags.force`'/>
- <parameter name='lcm-dmaap.flags.ttl' value='`$upgrade-post-check-input.common-header.flags.ttl`'/>
- <parameter name='lcm-dmaap.status.code' value='`$org.onap.appc.adapter.ansible.result.code`' />
- <parameter name='lcm-dmaap.status.message' value='`$org.onap.appc.adapter.ansible.message`'/>
- <parameter name='lcm-dmaap.payload' value='`$outputPayload`'/>
- </set>
- </outcome>
- </switch>
+ <set>
+ <parameter name='lcm-dmaap.version' value='`$prop.lcm.dmaap.version`'/>
+ <parameter name='lcm-dmaap.correlation-id' value="`$upgrade-post-check-input.common-header.request-id + '-' + $upgrade-post-check-input.common-header.sub-request-id`"/>
+ <parameter name='lcm-dmaap.partition' value='`$prop.lcm.dmaap.partition`'/>
+ <parameter name='lcm-dmaap.rpc-name' value='upgrade-post-check'/>
+ <parameter name='lcm-dmaap.type' value='`$prop.lcm.dmaap.type`'/>
+ <parameter name='lcm-dmaap.timestamp' value='`$upgrade-post-check-input.common-header.timestamp`'/>
+ <parameter name='lcm-dmaap.api-ver' value='`$upgrade-post-check-input.common-header.api-ver`'/>
+ <parameter name='lcm-dmaap.originator-id' value='`$upgrade-post-check-input.common-header.originator-id`'/>
+ <parameter name='lcm-dmaap.request-id' value='`$upgrade-post-check-input.common-header.request-id`'/>
+ <parameter name='lcm-dmaap.sub-request-id' value='`$upgrade-post-check-input.common-header.sub-request-id`'/>
+ <parameter name='lcm-dmaap.flags.mode' value='`$upgrade-post-check-input.common-header.flags.mode`'/>
+ <parameter name='lcm-dmaap.flags.force' value='`$upgrade-post-check-input.common-header.flags.force`'/>
+ <parameter name='lcm-dmaap.flags.ttl' value='`$upgrade-post-check-input.common-header.flags.ttl`'/>
+ <parameter name='lcm-dmaap.status.code' value='`$org.onap.appc.adapter.ansible.result.code`' />
+ <parameter name='lcm-dmaap.status.message' value='`$org.onap.appc.adapter.ansible.message`'/>
+ </set>
<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >
<parameter name='templateFileName' value="`$prop.restapi.templateDir + '/' + $prop.restapi.lcm.dmaap.publish.templatefile`" />
<parameter name='restapiUrl' value='`$prop.lcm.dmaap.url`' />
@@ -443,42 +344,10 @@ </record>
</outcome>
</execute>
- <switch test='`$outputPayload`'>
- <outcome value=''>
- <switch test="`$org.onap.appc.adapter.ansible.result.code`">
- <outcome value='400'>
- <return status='success'>
- <parameter name='status.code' value='`$org.onap.appc.adapter.ansible.result.code`' />
- <parameter name='status.message' value='`$org.onap.appc.adapter.ansible.message`'/>
- </return>
- </outcome>
- <outcome value='Other'>
- <return status='failure'>
- <parameter name='status.code' value='401' />
- <parameter name='status.message' value='`$org.onap.appc.adapter.ansible.message`' />
- </return>
- </outcome>
- </switch>
- </outcome>
- <outcome value='Other'>
- <switch test="`$org.onap.appc.adapter.ansible.result.code`">
- <outcome value='400'>
- <return status='success'>
- <parameter name='status.code' value='`$org.onap.appc.adapter.ansible.result.code`' />
- <parameter name='status.message' value='`$org.onap.appc.adapter.ansible.message`'/>
- <parameter name='payload' value='`$outputPayload`'/>
- </return>
- </outcome>
- <outcome value='Other'>
- <return status='failure'>
- <parameter name='status.code' value='401' />
- <parameter name='status.message' value='`$org.onap.appc.adapter.ansible.message`' />
- <parameter name='payload' value='`$outputPayload`'/>
- </return>
- </outcome>
- </switch>
- </outcome>
- </switch>
+ <return status='success'>
+ <parameter name='status.code' value='`$org.onap.appc.adapter.ansible.result.code`' />
+ <parameter name='status.message' value='`$org.onap.appc.adapter.ansible.message`'/>
+ </return>
</block>
</outcome>
</execute>
diff --git a/platform-logic/lcm/src/main/xml/LCM_upgrade-pre-check.xml b/platform-logic/lcm/src/main/xml/LCM_upgrade-pre-check.xml index 28f7048e..6f89bfcf 100644 --- a/platform-logic/lcm/src/main/xml/LCM_upgrade-pre-check.xml +++ b/platform-logic/lcm/src/main/xml/LCM_upgrade-pre-check.xml @@ -57,7 +57,6 @@ <switch test='`$playbookname`'>
<outcome value=''>
<set>
- <parameter name='nodelist' value="`$prop.ansible.nodelist`"/>
<parameter name='playbookname' value='`$prop.lcm.upgrade-pre-check.playbookname`'/>
</set>
</outcome>
@@ -271,56 +270,23 @@ <parameter name='PlaybookName' value='`$playbookname`'/>
<outcome value='failure'>
<block>
- <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='jsonStringToCtx'>
- <parameter name='source' value='org.onap.appc.adapter.ansible.results' />
- <parameter name='outputPath' value='resultsJson' />
- <parameter name='isEscaped' value='false' />
- </execute>
- <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'>
- <parameter name='source' value="`'resultsJson.' + $payloadJson.ipaddress-v4-oam + '.Output'`" />
- <parameter name='outputPath' value='outputPayload' />
- </execute>
- <switch test='`$outputPayload`'>
- <outcome value=''>
- <set>
- <parameter name='lcm-dmaap.version' value='`$prop.lcm.dmaap.version`'/>
- <parameter name='lcm-dmaap.correlation-id' value="`$upgrade-pre-check-input.common-header.request-id + '-' + $upgrade-pre-check-input.common-header.sub-request-id`"/>
- <parameter name='lcm-dmaap.partition' value='`$prop.lcm.dmaap.partition`'/>
- <parameter name='lcm-dmaap.rpc-name' value='upgrade-pre-check'/>
- <parameter name='lcm-dmaap.type' value='`$prop.lcm.dmaap.type`'/>
- <parameter name='lcm-dmaap.timestamp' value='`$upgrade-pre-check-input.common-header.timestamp`'/>
- <parameter name='lcm-dmaap.api-ver' value='`$upgrade-pre-check-input.common-header.api-ver`'/>
- <parameter name='lcm-dmaap.originator-id' value='`$upgrade-pre-check-input.common-header.originator-id`'/>
- <parameter name='lcm-dmaap.request-id' value='`$upgrade-pre-check-input.common-header.request-id`'/>
- <parameter name='lcm-dmaap.sub-request-id' value='`$upgrade-pre-check-input.common-header.sub-request-id`'/>
- <parameter name='lcm-dmaap.flags.mode' value='`$upgrade-pre-check-input.common-header.flags.mode`'/>
- <parameter name='lcm-dmaap.flags.force' value='`$upgrade-pre-check-input.common-header.flags.force`'/>
- <parameter name='lcm-dmaap.flags.ttl' value='`$upgrade-pre-check-input.common-header.flags.ttl`'/>
- <parameter name='lcm-dmaap.status.code' value='`$org.onap.appc.adapter.ansible.result.code`' />
- <parameter name='lcm-dmaap.status.message' value='`$org.onap.appc.adapter.ansible.message`'/>
- </set>
- </outcome>
- <outcome value='Other'>
- <set>
- <parameter name='lcm-dmaap.version' value='`$prop.lcm.dmaap.version`'/>
- <parameter name='lcm-dmaap.correlation-id' value="`$upgrade-pre-check-input.common-header.request-id + '-' + $upgrade-pre-check-input.common-header.sub-request-id`"/>
- <parameter name='lcm-dmaap.partition' value='`$prop.lcm.dmaap.partition`'/>
- <parameter name='lcm-dmaap.rpc-name' value='upgrade-pre-check'/>
- <parameter name='lcm-dmaap.type' value='`$prop.lcm.dmaap.type`'/>
- <parameter name='lcm-dmaap.timestamp' value='`$upgrade-pre-check-input.common-header.timestamp`'/>
- <parameter name='lcm-dmaap.api-ver' value='`$upgrade-pre-check-input.common-header.api-ver`'/>
- <parameter name='lcm-dmaap.originator-id' value='`$upgrade-pre-check-input.common-header.originator-id`'/>
- <parameter name='lcm-dmaap.request-id' value='`$upgrade-pre-check-input.common-header.request-id`'/>
- <parameter name='lcm-dmaap.sub-request-id' value='`$upgrade-pre-check-input.common-header.sub-request-id`'/>
- <parameter name='lcm-dmaap.flags.mode' value='`$upgrade-pre-check-input.common-header.flags.mode`'/>
- <parameter name='lcm-dmaap.flags.force' value='`$upgrade-pre-check-input.common-header.flags.force`'/>
- <parameter name='lcm-dmaap.flags.ttl' value='`$upgrade-pre-check-input.common-header.flags.ttl`'/>
- <parameter name='lcm-dmaap.status.code' value='`$org.onap.appc.adapter.ansible.result.code`' />
- <parameter name='lcm-dmaap.status.message' value='`$org.onap.appc.adapter.ansible.message`'/>
- <parameter name='lcm-dmaap.payload' value='`$outputPayload`'/>
- </set>
- </outcome>
- </switch>
+ <set>
+ <parameter name='lcm-dmaap.version' value='`$prop.lcm.dmaap.version`'/>
+ <parameter name='lcm-dmaap.correlation-id' value="`$upgrade-pre-check-input.common-header.request-id + '-' + $upgrade-pre-check-input.common-header.sub-request-id`"/>
+ <parameter name='lcm-dmaap.partition' value='`$prop.lcm.dmaap.partition`'/>
+ <parameter name='lcm-dmaap.rpc-name' value='upgrade-pre-check'/>
+ <parameter name='lcm-dmaap.type' value='`$prop.lcm.dmaap.type`'/>
+ <parameter name='lcm-dmaap.timestamp' value='`$upgrade-pre-check-input.common-header.timestamp`'/>
+ <parameter name='lcm-dmaap.api-ver' value='`$upgrade-pre-check-input.common-header.api-ver`'/>
+ <parameter name='lcm-dmaap.originator-id' value='`$upgrade-pre-check-input.common-header.originator-id`'/>
+ <parameter name='lcm-dmaap.request-id' value='`$upgrade-pre-check-input.common-header.request-id`'/>
+ <parameter name='lcm-dmaap.sub-request-id' value='`$upgrade-pre-check-input.common-header.sub-request-id`'/>
+ <parameter name='lcm-dmaap.flags.mode' value='`$upgrade-pre-check-input.common-header.flags.mode`'/>
+ <parameter name='lcm-dmaap.flags.force' value='`$upgrade-pre-check-input.common-header.flags.force`'/>
+ <parameter name='lcm-dmaap.flags.ttl' value='`$upgrade-pre-check-input.common-header.flags.ttl`'/>
+ <parameter name='lcm-dmaap.status.code' value='`$org.onap.appc.adapter.ansible.result.code`' />
+ <parameter name='lcm-dmaap.status.message' value='`$org.onap.appc.adapter.ansible.message`'/>
+ </set>
<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >
<parameter name='templateFileName' value="`$prop.restapi.templateDir + '/' + $prop.restapi.lcm.dmaap.publish.templatefile`" />
<parameter name='restapiUrl' value='`$prop.lcm.dmaap.url`' />
@@ -337,96 +303,31 @@ </record>
</outcome>
</execute>
- <switch test='`$outputPayload`'>
- <outcome value=''>
- <switch test="`$org.onap.appc.adapter.ansible.result.code`">
- <outcome value='400'>
- <return status='success'>
- <parameter name='status.code' value='`$org.onap.appc.adapter.ansible.result.code`' />
- <parameter name='status.message' value='`$org.onap.appc.adapter.ansible.message`'/>
- </return>
- </outcome>
- <outcome value='Other'>
- <return status='failure'>
- <parameter name='status.code' value='401' />
- <parameter name='status.message' value='`$org.onap.appc.adapter.ansible.message`' />
- </return>
- </outcome>
- </switch>
- </outcome>
- <outcome value='Other'>
- <switch test="`$org.onap.appc.adapter.ansible.result.code`">
- <outcome value='400'>
- <return status='success'>
- <parameter name='status.code' value='`$org.onap.appc.adapter.ansible.result.code`' />
- <parameter name='status.message' value='`$org.onap.appc.adapter.ansible.message`'/>
- <parameter name='payload' value='`$outputPayload`'/>
- </return>
- </outcome>
- <outcome value='Other'>
- <return status='failure'>
- <parameter name='status.code' value='401' />
- <parameter name='status.message' value='`$org.onap.appc.adapter.ansible.message`' />
- <parameter name='payload' value='`$outputPayload`'/>
- </return>
- </outcome>
- </switch>
- </outcome>
- </switch>
+ <return status='failure'>
+ <parameter name='status.code' value='401' />
+ <parameter name='status.message' value='`$org.onap.appc.adapter.ansible.message`' />
+ </return>
</block>
</outcome>
<outcome value='success'>
<block>
- <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='jsonStringToCtx'>
- <parameter name='source' value='org.onap.appc.adapter.ansible.results' />
- <parameter name='outputPath' value='resultsJson' />
- <parameter name='isEscaped' value='false' />
- </execute>
- <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'>
- <parameter name='source' value="`'resultsJson.' + $payloadJson.ipaddress-v4-oam + '.Output'`" />
- <parameter name='outputPath' value='outputPayload' />
- </execute>
- <switch test='`$outputPayload`'>
- <outcome value=''>
- <set>
- <parameter name='lcm-dmaap.version' value='`$prop.lcm.dmaap.version`'/>
- <parameter name='lcm-dmaap.correlation-id' value="`$upgrade-pre-check-input.common-header.request-id + '-' + $upgrade-pre-check-input.common-header.sub-request-id`"/>
- <parameter name='lcm-dmaap.partition' value='`$prop.lcm.dmaap.partition`'/>
- <parameter name='lcm-dmaap.rpc-name' value='upgrade-pre-check'/>
- <parameter name='lcm-dmaap.type' value='`$prop.lcm.dmaap.type`'/>
- <parameter name='lcm-dmaap.timestamp' value='`$upgrade-pre-check-input.common-header.timestamp`'/>
- <parameter name='lcm-dmaap.api-ver' value='`$upgrade-pre-check-input.common-header.api-ver`'/>
- <parameter name='lcm-dmaap.originator-id' value='`$upgrade-pre-check-input.common-header.originator-id`'/>
- <parameter name='lcm-dmaap.request-id' value='`$upgrade-pre-check-input.common-header.request-id`'/>
- <parameter name='lcm-dmaap.sub-request-id' value='`$upgrade-pre-check-input.common-header.sub-request-id`'/>
- <parameter name='lcm-dmaap.flags.mode' value='`$upgrade-pre-check-input.common-header.flags.mode`'/>
- <parameter name='lcm-dmaap.flags.force' value='`$upgrade-pre-check-input.common-header.flags.force`'/>
- <parameter name='lcm-dmaap.flags.ttl' value='`$upgrade-pre-check-input.common-header.flags.ttl`'/>
- <parameter name='lcm-dmaap.status.code' value='`$org.onap.appc.adapter.ansible.result.code`' />
- <parameter name='lcm-dmaap.status.message' value='`$org.onap.appc.adapter.ansible.message`'/>
- </set>
- </outcome>
- <outcome value='Other'>
- <set>
- <parameter name='lcm-dmaap.version' value='`$prop.lcm.dmaap.version`'/>
- <parameter name='lcm-dmaap.correlation-id' value="`$upgrade-pre-check-input.common-header.request-id + '-' + $upgrade-pre-check-input.common-header.sub-request-id`"/>
- <parameter name='lcm-dmaap.partition' value='`$prop.lcm.dmaap.partition`'/>
- <parameter name='lcm-dmaap.rpc-name' value='upgrade-pre-check'/>
- <parameter name='lcm-dmaap.type' value='`$prop.lcm.dmaap.type`'/>
- <parameter name='lcm-dmaap.timestamp' value='`$upgrade-pre-check-input.common-header.timestamp`'/>
- <parameter name='lcm-dmaap.api-ver' value='`$upgrade-pre-check-input.common-header.api-ver`'/>
- <parameter name='lcm-dmaap.originator-id' value='`$upgrade-pre-check-input.common-header.originator-id`'/>
- <parameter name='lcm-dmaap.request-id' value='`$upgrade-pre-check-input.common-header.request-id`'/>
- <parameter name='lcm-dmaap.sub-request-id' value='`$upgrade-pre-check-input.common-header.sub-request-id`'/>
- <parameter name='lcm-dmaap.flags.mode' value='`$upgrade-pre-check-input.common-header.flags.mode`'/>
- <parameter name='lcm-dmaap.flags.force' value='`$upgrade-pre-check-input.common-header.flags.force`'/>
- <parameter name='lcm-dmaap.flags.ttl' value='`$upgrade-pre-check-input.common-header.flags.ttl`'/>
- <parameter name='lcm-dmaap.status.code' value='`$org.onap.appc.adapter.ansible.result.code`' />
- <parameter name='lcm-dmaap.status.message' value='`$org.onap.appc.adapter.ansible.message`'/>
- <parameter name='lcm-dmaap.payload' value='`$outputPayload`'/>
- </set>
- </outcome>
- </switch>
+ <set>
+ <parameter name='lcm-dmaap.version' value='`$prop.lcm.dmaap.version`'/>
+ <parameter name='lcm-dmaap.correlation-id' value="`$upgrade-pre-check-input.common-header.request-id + '-' + $upgrade-pre-check-input.common-header.sub-request-id`"/>
+ <parameter name='lcm-dmaap.partition' value='`$prop.lcm.dmaap.partition`'/>
+ <parameter name='lcm-dmaap.rpc-name' value='upgrade-pre-check'/>
+ <parameter name='lcm-dmaap.type' value='`$prop.lcm.dmaap.type`'/>
+ <parameter name='lcm-dmaap.timestamp' value='`$upgrade-pre-check-input.common-header.timestamp`'/>
+ <parameter name='lcm-dmaap.api-ver' value='`$upgrade-pre-check-input.common-header.api-ver`'/>
+ <parameter name='lcm-dmaap.originator-id' value='`$upgrade-pre-check-input.common-header.originator-id`'/>
+ <parameter name='lcm-dmaap.request-id' value='`$upgrade-pre-check-input.common-header.request-id`'/>
+ <parameter name='lcm-dmaap.sub-request-id' value='`$upgrade-pre-check-input.common-header.sub-request-id`'/>
+ <parameter name='lcm-dmaap.flags.mode' value='`$upgrade-pre-check-input.common-header.flags.mode`'/>
+ <parameter name='lcm-dmaap.flags.force' value='`$upgrade-pre-check-input.common-header.flags.force`'/>
+ <parameter name='lcm-dmaap.flags.ttl' value='`$upgrade-pre-check-input.common-header.flags.ttl`'/>
+ <parameter name='lcm-dmaap.status.code' value='`$org.onap.appc.adapter.ansible.result.code`' />
+ <parameter name='lcm-dmaap.status.message' value='`$org.onap.appc.adapter.ansible.message`'/>
+ </set>
<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >
<parameter name='templateFileName' value="`$prop.restapi.templateDir + '/' + $prop.restapi.lcm.dmaap.publish.templatefile`" />
<parameter name='restapiUrl' value='`$prop.lcm.dmaap.url`' />
@@ -443,42 +344,10 @@ </record>
</outcome>
</execute>
- <switch test='`$outputPayload`'>
- <outcome value=''>
- <switch test="`$org.onap.appc.adapter.ansible.result.code`">
- <outcome value='400'>
- <return status='success'>
- <parameter name='status.code' value='`$org.onap.appc.adapter.ansible.result.code`' />
- <parameter name='status.message' value='`$org.onap.appc.adapter.ansible.message`'/>
- </return>
- </outcome>
- <outcome value='Other'>
- <return status='failure'>
- <parameter name='status.code' value='401' />
- <parameter name='status.message' value='`$org.onap.appc.adapter.ansible.message`' />
- </return>
- </outcome>
- </switch>
- </outcome>
- <outcome value='Other'>
- <switch test="`$org.onap.appc.adapter.ansible.result.code`">
- <outcome value='400'>
- <return status='success'>
- <parameter name='status.code' value='`$org.onap.appc.adapter.ansible.result.code`' />
- <parameter name='status.message' value='`$org.onap.appc.adapter.ansible.message`'/>
- <parameter name='payload' value='`$outputPayload`'/>
- </return>
- </outcome>
- <outcome value='Other'>
- <return status='failure'>
- <parameter name='status.code' value='401' />
- <parameter name='status.message' value='`$org.onap.appc.adapter.ansible.message`' />
- <parameter name='payload' value='`$outputPayload`'/>
- </return>
- </outcome>
- </switch>
- </outcome>
- </switch>
+ <return status='success'>
+ <parameter name='status.code' value='`$org.onap.appc.adapter.ansible.result.code`' />
+ <parameter name='status.message' value='`$org.onap.appc.adapter.ansible.message`'/>
+ </return>
</block>
</outcome>
</execute>
diff --git a/platform-logic/lcm/src/main/xml/LCM_upgrade-software.xml b/platform-logic/lcm/src/main/xml/LCM_upgrade-software.xml index 1a72c47e..e4f818f7 100644 --- a/platform-logic/lcm/src/main/xml/LCM_upgrade-software.xml +++ b/platform-logic/lcm/src/main/xml/LCM_upgrade-software.xml @@ -57,7 +57,6 @@ <switch test='`$playbookname`'>
<outcome value=''>
<set>
- <parameter name='nodelist' value="`$prop.ansible.nodelist`"/>
<parameter name='playbookname' value='`$prop.lcm.upgrade-software.playbookname`'/>
</set>
</outcome>
|