aboutsummaryrefslogtreecommitdiffstats
path: root/platform-logic
diff options
context:
space:
mode:
Diffstat (limited to 'platform-logic')
-rw-r--r--platform-logic/lcm/src/main/json/LCM_lock.json194
-rw-r--r--platform-logic/lcm/src/main/json/LCM_quiesce-traffic.json194
-rw-r--r--platform-logic/lcm/src/main/json/LCM_resume-traffic.json194
-rw-r--r--platform-logic/lcm/src/main/json/LCM_snapshot.json194
-rw-r--r--platform-logic/lcm/src/main/json/LCM_unlock.json194
-rw-r--r--platform-logic/lcm/src/main/json/LCM_upgrade-backup.json194
-rw-r--r--platform-logic/lcm/src/main/json/LCM_upgrade-post-check.json556
-rw-r--r--platform-logic/lcm/src/main/json/LCM_upgrade-pre-check.json556
-rw-r--r--platform-logic/lcm/src/main/json/LCM_upgrade-software.json556
-rw-r--r--platform-logic/lcm/src/main/xml/LCM_lock.xml53
-rw-r--r--platform-logic/lcm/src/main/xml/LCM_quiesce-traffic.xml53
-rw-r--r--platform-logic/lcm/src/main/xml/LCM_resume-traffic.xml53
-rw-r--r--platform-logic/lcm/src/main/xml/LCM_snapshot.xml53
-rw-r--r--platform-logic/lcm/src/main/xml/LCM_unlock.xml53
-rw-r--r--platform-logic/lcm/src/main/xml/LCM_upgrade-backup.xml53
-rw-r--r--platform-logic/lcm/src/main/xml/LCM_upgrade-post-check.xml773
-rw-r--r--platform-logic/lcm/src/main/xml/LCM_upgrade-pre-check.xml773
-rw-r--r--platform-logic/lcm/src/main/xml/LCM_upgrade-software.xml773
-rw-r--r--platform-logic/restapi-templates/src/main/json/lcm-dmaap-publish-template.json2
19 files changed, 3196 insertions, 2275 deletions
diff --git a/platform-logic/lcm/src/main/json/LCM_lock.json b/platform-logic/lcm/src/main/json/LCM_lock.json
new file mode 100644
index 00000000..32f1f8c0
--- /dev/null
+++ b/platform-logic/lcm/src/main/json/LCM_lock.json
@@ -0,0 +1,194 @@
+[
+ {
+ "id": "85add9d3.6d38c8",
+ "type": "method",
+ "name": "lock",
+ "xml": "<method rpc='lock' mode='sync'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 535.5,
+ "y": 83,
+ "z": "1bef9bfd.091c84",
+ "wires": [
+ [
+ "a726273f.d4087"
+ ]
+ ]
+ },
+ {
+ "id": "6cc2acd4.57558c",
+ "type": "service-logic",
+ "name": "LCM ${project.version}",
+ "module": "LCM",
+ "version": "${project.version}",
+ "comments": "",
+ "xml": "<service-logic xmlns='http://www.onap.org/sdnc/svclogic' xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xsi:schemaLocation='http://www.onap.org/sdnc/svclogic ./svclogic.xsd' module='LCM' version='${project.version}'>",
+ "outputs": 1,
+ "x": 306.49993896484375,
+ "y": 84,
+ "z": "1bef9bfd.091c84",
+ "wires": [
+ [
+ "85add9d3.6d38c8"
+ ]
+ ]
+ },
+ {
+ "id": "3b5bd72a.fb19f8",
+ "type": "returnSuccess",
+ "name": "return success",
+ "xml": "<return status='success'>\n<parameter name='status.code' value='400' />\n<parameter name='status.message' value='SDNC Lock Mock returns success'/>",
+ "comments": "",
+ "x": 388.5,
+ "y": 472,
+ "z": "1bef9bfd.091c84",
+ "wires": []
+ },
+ {
+ "id": "7bee7647.02e808",
+ "type": "dgstart",
+ "name": "DGSTART",
+ "outputs": 1,
+ "x": 103.5,
+ "y": 83,
+ "z": "1bef9bfd.091c84",
+ "wires": [
+ [
+ "6cc2acd4.57558c"
+ ]
+ ]
+ },
+ {
+ "id": "a726273f.d4087",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 139.41668701171875,
+ "y": 237.08334350585938,
+ "z": "1bef9bfd.091c84",
+ "wires": [
+ [
+ "c733c1eb.f6dc98",
+ "8a3a4a22.8cd238",
+ "5c905e45.08ff1",
+ "ff16f6f7.bb02d",
+ "3b5bd72a.fb19f8"
+ ]
+ ]
+ },
+ {
+ "id": "c733c1eb.f6dc98",
+ "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": 426.5,
+ "y": 222.08334350585938,
+ "z": "1bef9bfd.091c84",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "ff16f6f7.bb02d",
+ "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": 402.5,
+ "y": 399.0833435058594,
+ "z": "1bef9bfd.091c84",
+ "wires": [
+ [
+ "4150232b.d9de94"
+ ]
+ ]
+ },
+ {
+ "id": "4150232b.d9de94",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 611.5,
+ "y": 397.0833435058594,
+ "z": "1bef9bfd.091c84",
+ "wires": [
+ [
+ "1c38db15.1f052d"
+ ]
+ ]
+ },
+ {
+ "id": "f6eb674d.c21",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1506.9999389648438,
+ "y": 415.0833511352539,
+ "z": "1bef9bfd.091c84",
+ "wires": [
+ [
+ "db43d1c.5a1cab"
+ ]
+ ]
+ },
+ {
+ "id": "1c38db15.1f052d",
+ "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": 771.5,
+ "y": 397.0833435058594,
+ "z": "1bef9bfd.091c84",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "db43d1c.5a1cab",
+ "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": 1628.4166870117188,
+ "y": 416.0833511352539,
+ "z": "1bef9bfd.091c84",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "5c905e45.08ff1",
+ "type": "set",
+ "name": "set",
+ "xml": "<set>\n<parameter name='lcm-dmaap.version' value='`$prop.lcm.dmaap.version`'/>\n<parameter name='lcm-dmaap.correlation-id' value=\"`$lock-input.common-header.request-id + '-' + $lock-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='lock'/>\n<parameter name='lcm-dmaap.type' value='`$prop.lcm.dmaap.type`'/>\n<parameter name='lcm-dmaap.timestamp' value='`$lock-input.common-header.timestamp`'/>\n<parameter name='lcm-dmaap.api-ver' value='`$lock-input.common-header.api-ver`'/>\n<parameter name='lcm-dmaap.originator-id' value='`$lock-input.common-header.originator-id`'/>\n<parameter name='lcm-dmaap.request-id' value='`$lock-input.common-header.originator-id`'/>\n<parameter name='lcm-dmaap.sub-request-id' value='`$lock-input.common-header.sub-request-id`'/>\n<parameter name='lcm-dmaap.flags.mode' value='`$lock-input.common-header.flags.mode`'/>\n<parameter name='lcm-dmaap.flags.force' value='`$lock-input.common-header.flags.force`'/>\n<parameter name='lcm-dmaap.flags.ttl' value='`$lock-input.common-header.flags.ttl`'/>\n<parameter name='lcm-dmaap.status.code' value='400' />\n<parameter name='lcm-dmaap.status.message' value='SDNC Lock Mock returns success'/>\n",
+ "comments": "",
+ "x": 374.5,
+ "y": 331.0833435058594,
+ "z": "1bef9bfd.091c84",
+ "wires": []
+ },
+ {
+ "id": "8a3a4a22.8cd238",
+ "type": "set",
+ "name": "set default status value",
+ "xml": "<set>\n<parameter name='status.code' value='200' />\n<parameter name='status.message' value='unexpected return from DG' />\n",
+ "comments": "",
+ "x": 428.5,
+ "y": 274,
+ "z": "1bef9bfd.091c84",
+ "wires": []
+ }
+]
diff --git a/platform-logic/lcm/src/main/json/LCM_quiesce-traffic.json b/platform-logic/lcm/src/main/json/LCM_quiesce-traffic.json
new file mode 100644
index 00000000..6def0fc5
--- /dev/null
+++ b/platform-logic/lcm/src/main/json/LCM_quiesce-traffic.json
@@ -0,0 +1,194 @@
+[
+ {
+ "id": "85add9d3.6d38c8",
+ "type": "method",
+ "name": "quiesce-traffic",
+ "xml": "<method rpc='quiesce-traffic' mode='sync'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 535.5,
+ "y": 83,
+ "z": "1bef9bfd.091c84",
+ "wires": [
+ [
+ "a726273f.d4087"
+ ]
+ ]
+ },
+ {
+ "id": "6cc2acd4.57558c",
+ "type": "service-logic",
+ "name": "LCM ${project.version}",
+ "module": "LCM",
+ "version": "${project.version}",
+ "comments": "",
+ "xml": "<service-logic xmlns='http://www.onap.org/sdnc/svclogic' xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xsi:schemaLocation='http://www.onap.org/sdnc/svclogic ./svclogic.xsd' module='LCM' version='${project.version}'>",
+ "outputs": 1,
+ "x": 306.49993896484375,
+ "y": 84,
+ "z": "1bef9bfd.091c84",
+ "wires": [
+ [
+ "85add9d3.6d38c8"
+ ]
+ ]
+ },
+ {
+ "id": "3b5bd72a.fb19f8",
+ "type": "returnSuccess",
+ "name": "return success",
+ "xml": "<return status='success'>\n<parameter name='status.code' value='400' />\n<parameter name='status.message' value='SDNC Lock Mock returns success'/>",
+ "comments": "",
+ "x": 388.5,
+ "y": 472,
+ "z": "1bef9bfd.091c84",
+ "wires": []
+ },
+ {
+ "id": "7bee7647.02e808",
+ "type": "dgstart",
+ "name": "DGSTART",
+ "outputs": 1,
+ "x": 103.5,
+ "y": 83,
+ "z": "1bef9bfd.091c84",
+ "wires": [
+ [
+ "6cc2acd4.57558c"
+ ]
+ ]
+ },
+ {
+ "id": "a726273f.d4087",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 139.41668701171875,
+ "y": 237.08334350585938,
+ "z": "1bef9bfd.091c84",
+ "wires": [
+ [
+ "c733c1eb.f6dc98",
+ "8a3a4a22.8cd238",
+ "5c905e45.08ff1",
+ "ff16f6f7.bb02d",
+ "3b5bd72a.fb19f8"
+ ]
+ ]
+ },
+ {
+ "id": "c733c1eb.f6dc98",
+ "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": 426.5,
+ "y": 222.08334350585938,
+ "z": "1bef9bfd.091c84",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "ff16f6f7.bb02d",
+ "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": 402.5,
+ "y": 399.0833435058594,
+ "z": "1bef9bfd.091c84",
+ "wires": [
+ [
+ "4150232b.d9de94"
+ ]
+ ]
+ },
+ {
+ "id": "4150232b.d9de94",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 611.5,
+ "y": 397.0833435058594,
+ "z": "1bef9bfd.091c84",
+ "wires": [
+ [
+ "1c38db15.1f052d"
+ ]
+ ]
+ },
+ {
+ "id": "f6eb674d.c21",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1506.9999389648438,
+ "y": 415.0833511352539,
+ "z": "1bef9bfd.091c84",
+ "wires": [
+ [
+ "db43d1c.5a1cab"
+ ]
+ ]
+ },
+ {
+ "id": "1c38db15.1f052d",
+ "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": 771.5,
+ "y": 397.0833435058594,
+ "z": "1bef9bfd.091c84",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "db43d1c.5a1cab",
+ "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": 1628.4166870117188,
+ "y": 416.0833511352539,
+ "z": "1bef9bfd.091c84",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "5c905e45.08ff1",
+ "type": "set",
+ "name": "set",
+ "xml": "<set>\n<parameter name='lcm-dmaap.version' value='`$prop.lcm.dmaap.version`'/>\n<parameter name='lcm-dmaap.correlation-id' value=\"`$quiesce-traffic-input.common-header.request-id + '-' + $quiesce-traffic-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='quiesce-traffic'/>\n<parameter name='lcm-dmaap.type' value='`$prop.lcm.dmaap.type`'/>\n<parameter name='lcm-dmaap.timestamp' value='`$quiesce-traffic-input.common-header.timestamp`'/>\n<parameter name='lcm-dmaap.api-ver' value='`$quiesce-traffic-input.common-header.api-ver`'/>\n<parameter name='lcm-dmaap.originator-id' value='`$quiesce-traffic-input.common-header.originator-id`'/>\n<parameter name='lcm-dmaap.request-id' value='`$quiesce-traffic-input.common-header.originator-id`'/>\n<parameter name='lcm-dmaap.sub-request-id' value='`$quiesce-traffic-input.common-header.sub-request-id`'/>\n<parameter name='lcm-dmaap.flags.mode' value='`$quiesce-traffic-input.common-header.flags.mode`'/>\n<parameter name='lcm-dmaap.flags.force' value='`$quiesce-traffic-input.common-header.flags.force`'/>\n<parameter name='lcm-dmaap.flags.ttl' value='`$quiesce-traffic-input.common-header.flags.ttl`'/>\n<parameter name='lcm-dmaap.status.code' value='400' />\n<parameter name='lcm-dmaap.status.message' value='SDNC Quiesce-traffic Mock returns success'/>\n",
+ "comments": "",
+ "x": 374.5,
+ "y": 331.0833435058594,
+ "z": "1bef9bfd.091c84",
+ "wires": []
+ },
+ {
+ "id": "8a3a4a22.8cd238",
+ "type": "set",
+ "name": "set default status value",
+ "xml": "<set>\n<parameter name='status.code' value='200' />\n<parameter name='status.message' value='unexpected return from DG' />\n",
+ "comments": "",
+ "x": 428.5,
+ "y": 274,
+ "z": "1bef9bfd.091c84",
+ "wires": []
+ }
+]
diff --git a/platform-logic/lcm/src/main/json/LCM_resume-traffic.json b/platform-logic/lcm/src/main/json/LCM_resume-traffic.json
new file mode 100644
index 00000000..b7c07b32
--- /dev/null
+++ b/platform-logic/lcm/src/main/json/LCM_resume-traffic.json
@@ -0,0 +1,194 @@
+[
+ {
+ "id": "85add9d3.6d38c8",
+ "type": "method",
+ "name": "resume-traffic",
+ "xml": "<method rpc='resume-traffic' mode='sync'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 535.5,
+ "y": 83,
+ "z": "1bef9bfd.091c84",
+ "wires": [
+ [
+ "a726273f.d4087"
+ ]
+ ]
+ },
+ {
+ "id": "6cc2acd4.57558c",
+ "type": "service-logic",
+ "name": "LCM ${project.version}",
+ "module": "LCM",
+ "version": "${project.version}",
+ "comments": "",
+ "xml": "<service-logic xmlns='http://www.onap.org/sdnc/svclogic' xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xsi:schemaLocation='http://www.onap.org/sdnc/svclogic ./svclogic.xsd' module='LCM' version='${project.version}'>",
+ "outputs": 1,
+ "x": 306.49993896484375,
+ "y": 84,
+ "z": "1bef9bfd.091c84",
+ "wires": [
+ [
+ "85add9d3.6d38c8"
+ ]
+ ]
+ },
+ {
+ "id": "3b5bd72a.fb19f8",
+ "type": "returnSuccess",
+ "name": "return success",
+ "xml": "<return status='success'>\n<parameter name='status.code' value='400' />\n<parameter name='status.message' value='SDNC Lock Mock returns success'/>",
+ "comments": "",
+ "x": 388.5,
+ "y": 472,
+ "z": "1bef9bfd.091c84",
+ "wires": []
+ },
+ {
+ "id": "7bee7647.02e808",
+ "type": "dgstart",
+ "name": "DGSTART",
+ "outputs": 1,
+ "x": 103.5,
+ "y": 83,
+ "z": "1bef9bfd.091c84",
+ "wires": [
+ [
+ "6cc2acd4.57558c"
+ ]
+ ]
+ },
+ {
+ "id": "a726273f.d4087",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 139.41668701171875,
+ "y": 237.08334350585938,
+ "z": "1bef9bfd.091c84",
+ "wires": [
+ [
+ "c733c1eb.f6dc98",
+ "8a3a4a22.8cd238",
+ "5c905e45.08ff1",
+ "ff16f6f7.bb02d",
+ "3b5bd72a.fb19f8"
+ ]
+ ]
+ },
+ {
+ "id": "c733c1eb.f6dc98",
+ "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": 426.5,
+ "y": 222.08334350585938,
+ "z": "1bef9bfd.091c84",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "ff16f6f7.bb02d",
+ "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": 402.5,
+ "y": 399.0833435058594,
+ "z": "1bef9bfd.091c84",
+ "wires": [
+ [
+ "4150232b.d9de94"
+ ]
+ ]
+ },
+ {
+ "id": "4150232b.d9de94",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 611.5,
+ "y": 397.0833435058594,
+ "z": "1bef9bfd.091c84",
+ "wires": [
+ [
+ "1c38db15.1f052d"
+ ]
+ ]
+ },
+ {
+ "id": "f6eb674d.c21",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1506.9999389648438,
+ "y": 415.0833511352539,
+ "z": "1bef9bfd.091c84",
+ "wires": [
+ [
+ "db43d1c.5a1cab"
+ ]
+ ]
+ },
+ {
+ "id": "1c38db15.1f052d",
+ "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": 771.5,
+ "y": 397.0833435058594,
+ "z": "1bef9bfd.091c84",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "db43d1c.5a1cab",
+ "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": 1628.4166870117188,
+ "y": 416.0833511352539,
+ "z": "1bef9bfd.091c84",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "5c905e45.08ff1",
+ "type": "set",
+ "name": "set",
+ "xml": "<set>\n<parameter name='lcm-dmaap.version' value='`$prop.lcm.dmaap.version`'/>\n<parameter name='lcm-dmaap.correlation-id' value=\"`$resume-traffic-input.common-header.request-id + '-' + $resume-traffic-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='resume-traffic'/>\n<parameter name='lcm-dmaap.type' value='`$prop.lcm.dmaap.type`'/>\n<parameter name='lcm-dmaap.timestamp' value='`$resume-traffic-input.common-header.timestamp`'/>\n<parameter name='lcm-dmaap.api-ver' value='`$resume-traffic-input.common-header.api-ver`'/>\n<parameter name='lcm-dmaap.originator-id' value='`$resume-traffic-input.common-header.originator-id`'/>\n<parameter name='lcm-dmaap.request-id' value='`$resume-traffic-input.common-header.originator-id`'/>\n<parameter name='lcm-dmaap.sub-request-id' value='`$resume-traffic-input.common-header.sub-request-id`'/>\n<parameter name='lcm-dmaap.flags.mode' value='`$resume-traffic-input.common-header.flags.mode`'/>\n<parameter name='lcm-dmaap.flags.force' value='`$resume-traffic-input.common-header.flags.force`'/>\n<parameter name='lcm-dmaap.flags.ttl' value='`$resume-traffic-input.common-header.flags.ttl`'/>\n<parameter name='lcm-dmaap.status.code' value='400' />\n<parameter name='lcm-dmaap.status.message' value='SDNC Resume-traffic Mock returns success'/>\n",
+ "comments": "",
+ "x": 374.5,
+ "y": 331.0833435058594,
+ "z": "1bef9bfd.091c84",
+ "wires": []
+ },
+ {
+ "id": "8a3a4a22.8cd238",
+ "type": "set",
+ "name": "set default status value",
+ "xml": "<set>\n<parameter name='status.code' value='200' />\n<parameter name='status.message' value='unexpected return from DG' />\n",
+ "comments": "",
+ "x": 428.5,
+ "y": 274,
+ "z": "1bef9bfd.091c84",
+ "wires": []
+ }
+]
diff --git a/platform-logic/lcm/src/main/json/LCM_snapshot.json b/platform-logic/lcm/src/main/json/LCM_snapshot.json
new file mode 100644
index 00000000..549425c6
--- /dev/null
+++ b/platform-logic/lcm/src/main/json/LCM_snapshot.json
@@ -0,0 +1,194 @@
+[
+ {
+ "id": "85add9d3.6d38c8",
+ "type": "method",
+ "name": "snapshot",
+ "xml": "<method rpc='snapshot' mode='sync'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 535.5,
+ "y": 83,
+ "z": "1bef9bfd.091c84",
+ "wires": [
+ [
+ "a726273f.d4087"
+ ]
+ ]
+ },
+ {
+ "id": "6cc2acd4.57558c",
+ "type": "service-logic",
+ "name": "LCM ${project.version}",
+ "module": "LCM",
+ "version": "${project.version}",
+ "comments": "",
+ "xml": "<service-logic xmlns='http://www.onap.org/sdnc/svclogic' xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xsi:schemaLocation='http://www.onap.org/sdnc/svclogic ./svclogic.xsd' module='LCM' version='${project.version}'>",
+ "outputs": 1,
+ "x": 306.49993896484375,
+ "y": 84,
+ "z": "1bef9bfd.091c84",
+ "wires": [
+ [
+ "85add9d3.6d38c8"
+ ]
+ ]
+ },
+ {
+ "id": "3b5bd72a.fb19f8",
+ "type": "returnSuccess",
+ "name": "return success",
+ "xml": "<return status='success'>\n<parameter name='status.code' value='400' />\n<parameter name='status.message' value='SDNC Lock Mock returns success'/>",
+ "comments": "",
+ "x": 388.5,
+ "y": 472,
+ "z": "1bef9bfd.091c84",
+ "wires": []
+ },
+ {
+ "id": "7bee7647.02e808",
+ "type": "dgstart",
+ "name": "DGSTART",
+ "outputs": 1,
+ "x": 103.5,
+ "y": 83,
+ "z": "1bef9bfd.091c84",
+ "wires": [
+ [
+ "6cc2acd4.57558c"
+ ]
+ ]
+ },
+ {
+ "id": "a726273f.d4087",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 139.41668701171875,
+ "y": 237.08334350585938,
+ "z": "1bef9bfd.091c84",
+ "wires": [
+ [
+ "c733c1eb.f6dc98",
+ "8a3a4a22.8cd238",
+ "5c905e45.08ff1",
+ "ff16f6f7.bb02d",
+ "3b5bd72a.fb19f8"
+ ]
+ ]
+ },
+ {
+ "id": "c733c1eb.f6dc98",
+ "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": 426.5,
+ "y": 222.08334350585938,
+ "z": "1bef9bfd.091c84",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "ff16f6f7.bb02d",
+ "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": 402.5,
+ "y": 399.0833435058594,
+ "z": "1bef9bfd.091c84",
+ "wires": [
+ [
+ "4150232b.d9de94"
+ ]
+ ]
+ },
+ {
+ "id": "4150232b.d9de94",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 611.5,
+ "y": 397.0833435058594,
+ "z": "1bef9bfd.091c84",
+ "wires": [
+ [
+ "1c38db15.1f052d"
+ ]
+ ]
+ },
+ {
+ "id": "f6eb674d.c21",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1506.9999389648438,
+ "y": 415.0833511352539,
+ "z": "1bef9bfd.091c84",
+ "wires": [
+ [
+ "db43d1c.5a1cab"
+ ]
+ ]
+ },
+ {
+ "id": "1c38db15.1f052d",
+ "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": 771.5,
+ "y": 397.0833435058594,
+ "z": "1bef9bfd.091c84",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "db43d1c.5a1cab",
+ "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": 1628.4166870117188,
+ "y": 416.0833511352539,
+ "z": "1bef9bfd.091c84",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "5c905e45.08ff1",
+ "type": "set",
+ "name": "set",
+ "xml": "<set>\n<parameter name='lcm-dmaap.version' value='`$prop.lcm.dmaap.version`'/>\n<parameter name='lcm-dmaap.correlation-id' value=\"`$snapshot-input.common-header.request-id + '-' + $snapshot-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='snapshot'/>\n<parameter name='lcm-dmaap.type' value='`$prop.lcm.dmaap.type`'/>\n<parameter name='lcm-dmaap.timestamp' value='`$snapshot-input.common-header.timestamp`'/>\n<parameter name='lcm-dmaap.api-ver' value='`$snapshot-input.common-header.api-ver`'/>\n<parameter name='lcm-dmaap.originator-id' value='`$snapshot-input.common-header.originator-id`'/>\n<parameter name='lcm-dmaap.request-id' value='`$snapshot-input.common-header.originator-id`'/>\n<parameter name='lcm-dmaap.sub-request-id' value='`$snapshot-input.common-header.sub-request-id`'/>\n<parameter name='lcm-dmaap.flags.mode' value='`$snapshot-input.common-header.flags.mode`'/>\n<parameter name='lcm-dmaap.flags.force' value='`$snapshot-input.common-header.flags.force`'/>\n<parameter name='lcm-dmaap.flags.ttl' value='`$snapshot-input.common-header.flags.ttl`'/>\n<parameter name='lcm-dmaap.status.code' value='400' />\n<parameter name='lcm-dmaap.status.message' value='SDNC Snapshot Mock returns success'/>\n",
+ "comments": "",
+ "x": 374.5,
+ "y": 331.0833435058594,
+ "z": "1bef9bfd.091c84",
+ "wires": []
+ },
+ {
+ "id": "8a3a4a22.8cd238",
+ "type": "set",
+ "name": "set default status value",
+ "xml": "<set>\n<parameter name='status.code' value='200' />\n<parameter name='status.message' value='unexpected return from DG' />\n",
+ "comments": "",
+ "x": 428.5,
+ "y": 274,
+ "z": "1bef9bfd.091c84",
+ "wires": []
+ }
+]
diff --git a/platform-logic/lcm/src/main/json/LCM_unlock.json b/platform-logic/lcm/src/main/json/LCM_unlock.json
new file mode 100644
index 00000000..827259d9
--- /dev/null
+++ b/platform-logic/lcm/src/main/json/LCM_unlock.json
@@ -0,0 +1,194 @@
+[
+ {
+ "id": "85add9d3.6d38c8",
+ "type": "method",
+ "name": "unlock",
+ "xml": "<method rpc='unlock' mode='sync'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 535.5,
+ "y": 83,
+ "z": "1bef9bfd.091c84",
+ "wires": [
+ [
+ "a726273f.d4087"
+ ]
+ ]
+ },
+ {
+ "id": "6cc2acd4.57558c",
+ "type": "service-logic",
+ "name": "LCM ${project.version}",
+ "module": "LCM",
+ "version": "${project.version}",
+ "comments": "",
+ "xml": "<service-logic xmlns='http://www.onap.org/sdnc/svclogic' xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xsi:schemaLocation='http://www.onap.org/sdnc/svclogic ./svclogic.xsd' module='LCM' version='${project.version}'>",
+ "outputs": 1,
+ "x": 306.49993896484375,
+ "y": 84,
+ "z": "1bef9bfd.091c84",
+ "wires": [
+ [
+ "85add9d3.6d38c8"
+ ]
+ ]
+ },
+ {
+ "id": "3b5bd72a.fb19f8",
+ "type": "returnSuccess",
+ "name": "return success",
+ "xml": "<return status='success'>\n<parameter name='status.code' value='400' />\n<parameter name='status.message' value='SDNC Unlock Mock returns success'/>",
+ "comments": "",
+ "x": 388.5,
+ "y": 472,
+ "z": "1bef9bfd.091c84",
+ "wires": []
+ },
+ {
+ "id": "7bee7647.02e808",
+ "type": "dgstart",
+ "name": "DGSTART",
+ "outputs": 1,
+ "x": 103.5,
+ "y": 83,
+ "z": "1bef9bfd.091c84",
+ "wires": [
+ [
+ "6cc2acd4.57558c"
+ ]
+ ]
+ },
+ {
+ "id": "a726273f.d4087",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 139.41668701171875,
+ "y": 237.08334350585938,
+ "z": "1bef9bfd.091c84",
+ "wires": [
+ [
+ "c733c1eb.f6dc98",
+ "8a3a4a22.8cd238",
+ "5c905e45.08ff1",
+ "ff16f6f7.bb02d",
+ "3b5bd72a.fb19f8"
+ ]
+ ]
+ },
+ {
+ "id": "c733c1eb.f6dc98",
+ "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": 426.5,
+ "y": 222.08334350585938,
+ "z": "1bef9bfd.091c84",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "ff16f6f7.bb02d",
+ "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": 402.5,
+ "y": 399.0833435058594,
+ "z": "1bef9bfd.091c84",
+ "wires": [
+ [
+ "4150232b.d9de94"
+ ]
+ ]
+ },
+ {
+ "id": "4150232b.d9de94",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 611.5,
+ "y": 397.0833435058594,
+ "z": "1bef9bfd.091c84",
+ "wires": [
+ [
+ "1c38db15.1f052d"
+ ]
+ ]
+ },
+ {
+ "id": "f6eb674d.c21",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1506.9999389648438,
+ "y": 415.0833511352539,
+ "z": "1bef9bfd.091c84",
+ "wires": [
+ [
+ "db43d1c.5a1cab"
+ ]
+ ]
+ },
+ {
+ "id": "1c38db15.1f052d",
+ "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": 771.5,
+ "y": 397.0833435058594,
+ "z": "1bef9bfd.091c84",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "db43d1c.5a1cab",
+ "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": 1628.4166870117188,
+ "y": 416.0833511352539,
+ "z": "1bef9bfd.091c84",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "5c905e45.08ff1",
+ "type": "set",
+ "name": "set",
+ "xml": "<set>\n<parameter name='lcm-dmaap.version' value='`$prop.lcm.dmaap.version`'/>\n<parameter name='lcm-dmaap.correlation-id' value=\"`$unlock-input.common-header.request-id + '-' + $unlock-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='unlock'/>\n<parameter name='lcm-dmaap.type' value='`$prop.lcm.dmaap.type`'/>\n<parameter name='lcm-dmaap.timestamp' value='`$unlock-input.common-header.timestamp`'/>\n<parameter name='lcm-dmaap.api-ver' value='`$unlock-input.common-header.api-ver`'/>\n<parameter name='lcm-dmaap.originator-id' value='`$unlock-input.common-header.originator-id`'/>\n<parameter name='lcm-dmaap.request-id' value='`$unlock-input.common-header.originator-id`'/>\n<parameter name='lcm-dmaap.sub-request-id' value='`$unlock-input.common-header.sub-request-id`'/>\n<parameter name='lcm-dmaap.flags.mode' value='`$unlock-input.common-header.flags.mode`'/>\n<parameter name='lcm-dmaap.flags.force' value='`$unlock-input.common-header.flags.force`'/>\n<parameter name='lcm-dmaap.flags.ttl' value='`$unlock-input.common-header.flags.ttl`'/>\n<parameter name='lcm-dmaap.status.code' value='400' />\n<parameter name='lcm-dmaap.status.message' value='SDNC Lock Mock returns success'/>\n",
+ "comments": "",
+ "x": 374.5,
+ "y": 331.0833435058594,
+ "z": "1bef9bfd.091c84",
+ "wires": []
+ },
+ {
+ "id": "8a3a4a22.8cd238",
+ "type": "set",
+ "name": "set default status value",
+ "xml": "<set>\n<parameter name='status.code' value='200' />\n<parameter name='status.message' value='unexpected return from DG' />\n",
+ "comments": "",
+ "x": 428.5,
+ "y": 274,
+ "z": "1bef9bfd.091c84",
+ "wires": []
+ }
+]
diff --git a/platform-logic/lcm/src/main/json/LCM_upgrade-backup.json b/platform-logic/lcm/src/main/json/LCM_upgrade-backup.json
new file mode 100644
index 00000000..42534d67
--- /dev/null
+++ b/platform-logic/lcm/src/main/json/LCM_upgrade-backup.json
@@ -0,0 +1,194 @@
+[
+ {
+ "id": "85add9d3.6d38c8",
+ "type": "method",
+ "name": "upgrade-backup",
+ "xml": "<method rpc='upgrade-backup' mode='sync'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 535.5,
+ "y": 83,
+ "z": "1bef9bfd.091c84",
+ "wires": [
+ [
+ "a726273f.d4087"
+ ]
+ ]
+ },
+ {
+ "id": "6cc2acd4.57558c",
+ "type": "service-logic",
+ "name": "LCM ${project.version}",
+ "module": "LCM",
+ "version": "${project.version}",
+ "comments": "",
+ "xml": "<service-logic xmlns='http://www.onap.org/sdnc/svclogic' xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xsi:schemaLocation='http://www.onap.org/sdnc/svclogic ./svclogic.xsd' module='LCM' version='${project.version}'>",
+ "outputs": 1,
+ "x": 306.49993896484375,
+ "y": 84,
+ "z": "1bef9bfd.091c84",
+ "wires": [
+ [
+ "85add9d3.6d38c8"
+ ]
+ ]
+ },
+ {
+ "id": "3b5bd72a.fb19f8",
+ "type": "returnSuccess",
+ "name": "return success",
+ "xml": "<return status='success'>\n<parameter name='status.code' value='400' />\n<parameter name='status.message' value='SDNC Lock Mock returns success'/>",
+ "comments": "",
+ "x": 388.5,
+ "y": 472,
+ "z": "1bef9bfd.091c84",
+ "wires": []
+ },
+ {
+ "id": "7bee7647.02e808",
+ "type": "dgstart",
+ "name": "DGSTART",
+ "outputs": 1,
+ "x": 103.5,
+ "y": 83,
+ "z": "1bef9bfd.091c84",
+ "wires": [
+ [
+ "6cc2acd4.57558c"
+ ]
+ ]
+ },
+ {
+ "id": "a726273f.d4087",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 139.41668701171875,
+ "y": 237.08334350585938,
+ "z": "1bef9bfd.091c84",
+ "wires": [
+ [
+ "c733c1eb.f6dc98",
+ "8a3a4a22.8cd238",
+ "5c905e45.08ff1",
+ "ff16f6f7.bb02d",
+ "3b5bd72a.fb19f8"
+ ]
+ ]
+ },
+ {
+ "id": "c733c1eb.f6dc98",
+ "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": 426.5,
+ "y": 222.08334350585938,
+ "z": "1bef9bfd.091c84",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "ff16f6f7.bb02d",
+ "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": 402.5,
+ "y": 399.0833435058594,
+ "z": "1bef9bfd.091c84",
+ "wires": [
+ [
+ "4150232b.d9de94"
+ ]
+ ]
+ },
+ {
+ "id": "4150232b.d9de94",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 611.5,
+ "y": 397.0833435058594,
+ "z": "1bef9bfd.091c84",
+ "wires": [
+ [
+ "1c38db15.1f052d"
+ ]
+ ]
+ },
+ {
+ "id": "f6eb674d.c21",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1506.9999389648438,
+ "y": 415.0833511352539,
+ "z": "1bef9bfd.091c84",
+ "wires": [
+ [
+ "db43d1c.5a1cab"
+ ]
+ ]
+ },
+ {
+ "id": "1c38db15.1f052d",
+ "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": 771.5,
+ "y": 397.0833435058594,
+ "z": "1bef9bfd.091c84",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "db43d1c.5a1cab",
+ "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": 1628.4166870117188,
+ "y": 416.0833511352539,
+ "z": "1bef9bfd.091c84",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "5c905e45.08ff1",
+ "type": "set",
+ "name": "set",
+ "xml": "<set>\n<parameter name='lcm-dmaap.version' value='`$prop.lcm.dmaap.version`'/>\n<parameter name='lcm-dmaap.correlation-id' value=\"`$upgrade-backup-input.common-header.request-id + '-' + $upgrade-backup-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-backup'/>\n<parameter name='lcm-dmaap.type' value='`$prop.lcm.dmaap.type`'/>\n<parameter name='lcm-dmaap.timestamp' value='`$upgrade-backup-input.common-header.timestamp`'/>\n<parameter name='lcm-dmaap.api-ver' value='`$upgrade-backup-input.common-header.api-ver`'/>\n<parameter name='lcm-dmaap.originator-id' value='`$upgrade-backup-input.common-header.originator-id`'/>\n<parameter name='lcm-dmaap.request-id' value='`$upgrade-backup-input.common-header.originator-id`'/>\n<parameter name='lcm-dmaap.sub-request-id' value='`$upgrade-backup-input.common-header.sub-request-id`'/>\n<parameter name='lcm-dmaap.flags.mode' value='`$upgrade-backup-input.common-header.flags.mode`'/>\n<parameter name='lcm-dmaap.flags.force' value='`$upgrade-backup-input.common-header.flags.force`'/>\n<parameter name='lcm-dmaap.flags.ttl' value='`$upgrade-backup-input.common-header.flags.ttl`'/>\n<parameter name='lcm-dmaap.status.code' value='400' />\n<parameter name='lcm-dmaap.status.message' value='SDNC Upgrade-backup Mock returns success'/>\n",
+ "comments": "",
+ "x": 374.5,
+ "y": 331.0833435058594,
+ "z": "1bef9bfd.091c84",
+ "wires": []
+ },
+ {
+ "id": "8a3a4a22.8cd238",
+ "type": "set",
+ "name": "set default status value",
+ "xml": "<set>\n<parameter name='status.code' value='200' />\n<parameter name='status.message' value='unexpected return from DG' />\n",
+ "comments": "",
+ "x": 428.5,
+ "y": 274,
+ "z": "1bef9bfd.091c84",
+ "wires": []
+ }
+]
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 96210495..102870d5 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,478 +1,478 @@
[
{
- "comments": "",
- "id": "e4e70092.b7662",
+ "id": "7a39f2fe.3dcdf4",
+ "type": "method",
"name": "upgrade-post-check",
+ "xml": "<method rpc='upgrade-post-check' mode='sync'>\n",
+ "comments": "",
"outputs": 1,
- "type": "method",
+ "x": 504,
+ "y": 189,
+ "z": "8298903b.6dd47",
"wires": [
[
- "bb888dbc.8c45a8"
+ "29adfec5.3e996a"
]
- ],
- "x": 521,
- "xml": "<method rpc='upgrade-post-check' mode='sync'>\n",
- "y": 182,
- "z": "9bf3d460.112078"
+ ]
},
{
- "comments": "",
- "id": "8bfd5b63.3e5f4",
- "module": "LCM",
- "name": "LCM ${project.version}",
- "outputs": 1,
+ "id": "d4e963ab.cbd07",
"type": "service-logic",
+ "name": "LCM ${project.version}",
+ "module": "LCM",
"version": "${project.version}",
+ "comments": "",
+ "xml": "<service-logic xmlns='http://www.onap.org/sdnc/svclogic' xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xsi:schemaLocation='http://www.onap.org/sdnc/svclogic ./svclogic.xsd' module='LCM' version='${project.version}'>",
+ "outputs": 1,
+ "x": 291.99993896484375,
+ "y": 190,
+ "z": "8298903b.6dd47",
"wires": [
[
- "e4e70092.b7662"
+ "7a39f2fe.3dcdf4"
]
- ],
- "x": 308.99993896484375,
- "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}'>",
- "y": 183,
- "z": "9bf3d460.112078"
+ ]
},
{
- "comments": "",
- "id": "5e5ee749.3bcc48",
+ "id": "dbae8f8c.b9f5c8",
+ "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='`$prop.ansible.nodelist`'/>\n<parameter name='Timeout' value='`$prop.ansible.timeout`'/>\n<parameter name='Version' value='`$prop.ansible.version`'/>\n<parameter name='Id' value='`$upgrade-post-check-input.common-header.request-id`'/>\n<parameter name='PlaybookName' value='`$prop.lcm.upgrade-post-check.playbookname`'/>",
+ "comments": "",
"outputs": 1,
- "type": "execute",
+ "x": 292.00001525878906,
+ "y": 407,
+ "z": "8298903b.6dd47",
"wires": [
[
- "1634a5a.ed4b85a",
- "957f4d84.2df1f",
- "46d7a6a2.66c73"
+ "6f51d66.269da28",
+ "3cef6eb.3854f92",
+ "7d81ec43.a1807c"
]
- ],
- "x": 309.00001525878906,
- "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='`$prop.ansible.nodelist`'/>\n<parameter name='Timeout' value='`$prop.ansible.timeout`'/>\n<parameter name='Version' value='`$prop.ansible.version`'/>\n<parameter name='Id' value='`$upgrade-post-check-input.common-header.request-id`'/>\n<parameter name='PlaybookName' value='`$prop.lcm.upgrade-post-check.playbookname`'/>",
- "y": 400,
- "z": "9bf3d460.112078"
+ ]
},
{
- "comments": "",
- "id": "a6974c46.ebe7b8",
+ "id": "d7bab1d5.51757",
+ "type": "switchNode",
"name": "switch",
+ "xml": "<switch test=\"`$org.onap.appc.adapter.ansible.result.code`\">\n",
+ "comments": "",
"outputs": 1,
- "type": "switchNode",
+ "x": 593,
+ "y": 455,
+ "z": "8298903b.6dd47",
"wires": [
[
- "688b9000.f7d6e",
- "6d4c7406.63e3a4",
- "f9c039c.e2674c8"
+ "2746f459.4c8844",
+ "f804c90e.5a0878",
+ "a107745e.d375f"
]
- ],
- "x": 610,
- "xml": "<switch test=\"`$org.onap.appc.adapter.ansible.result.code`\">\n",
- "y": 448,
- "z": "9bf3d460.112078"
+ ]
},
{
- "comments": "",
- "id": "688b9000.f7d6e",
+ "id": "2746f459.4c8844",
+ "type": "other",
"name": "outcome 500",
+ "xml": "<outcome value='500'>\n",
+ "comments": "",
"outputs": 1,
- "type": "other",
+ "x": 738,
+ "y": 453.00000762939453,
+ "z": "8298903b.6dd47",
"wires": [
[
- "31c18e01.31d712"
+ "812cc9c1.aee1"
]
- ],
- "x": 755,
- "xml": "<outcome value='500'>\n",
- "y": 446.00000762939453,
- "z": "9bf3d460.112078"
+ ]
},
{
- "comments": "",
- "id": "6d4c7406.63e3a4",
+ "id": "f804c90e.5a0878",
+ "type": "other",
"name": "outcome 100",
+ "xml": "<outcome value='100'>\n",
+ "comments": "",
"outputs": 1,
- "type": "other",
+ "x": 741,
+ "y": 496.00003814697266,
+ "z": "8298903b.6dd47",
"wires": [
[
- "49c00e3.94ec7f"
+ "91a9092c.bcfc5"
]
- ],
- "x": 758,
- "xml": "<outcome value='100'>\n",
- "y": 489.00003814697266,
- "z": "9bf3d460.112078"
+ ]
},
{
- "comments": "",
- "id": "49c00e3.94ec7f",
+ "id": "91a9092c.bcfc5",
+ "type": "execute",
"name": "execute reqExecResult",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.adaptors.ansible.AnsibleAdapter' method='reqExecResult' >\n <parameter name='AgentUrl' value='`$prop.ansible.agenturl`'/>\n\t<parameter name='User' value='`$prop.ansible.user`'/>\n\t<parameter name='Password' value='`$prop.ansible.password`'/>\n\t<parameter name='Id' value='`$org.onap.appc.adapter.ansible.Id`'/>\n\t<parameter name='PlaybookName' value='`$prop.lcm.upgrade-post-check.playbookname`'/>\n\t\n\n\n\n\n",
+ "comments": "",
"outputs": 1,
- "type": "execute",
+ "x": 919.0000305175781,
+ "y": 496.00003814697266,
+ "z": "8298903b.6dd47",
"wires": [
[
- "23a74147.f18206",
- "8fc99d96.bc351"
+ "746c71a8.ecf54",
+ "3553670.a015a9a"
]
- ],
- "x": 936.0000305175781,
- "xml": "<execute plugin='org.onap.ccsdk.sli.adaptors.ansible.AnsibleAdapter' method='reqExecResult' >\n <parameter name='AgentUrl' value='`$prop.ansible.agenturl`'/>\n\t<parameter name='User' value='`$prop.ansible.user`'/>\n\t<parameter name='Password' value='`$prop.ansible.password`'/>\n\t<parameter name='Id' value='`$org.onap.appc.adapter.ansible.Id`'/>\n\t<parameter name='PlaybookName' value='`$prop.lcm.upgrade-post-check.playbookname`'/>\n\t\n\n\n\n\n",
- "y": 489.00003814697266,
- "z": "9bf3d460.112078"
+ ]
},
{
- "comments": "",
- "id": "957f4d84.2df1f",
+ "id": "3cef6eb.3854f92",
+ "type": "failure",
"name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
"outputs": 1,
- "type": "failure",
+ "x": 484,
+ "y": 364.0000305175781,
+ "z": "8298903b.6dd47",
"wires": [
[
- "31c18e01.31d712"
+ "812cc9c1.aee1"
]
- ],
- "x": 501,
- "xml": "<outcome value='failure'>\n",
- "y": 357.0000305175781,
- "z": "9bf3d460.112078"
+ ]
},
{
- "comments": "",
- "id": "1634a5a.ed4b85a",
+ "id": "6f51d66.269da28",
+ "type": "other",
"name": "other",
+ "xml": "<outcome value='Other'>\n",
+ "comments": "",
"outputs": 1,
- "type": "other",
+ "x": 486,
+ "y": 416,
+ "z": "8298903b.6dd47",
"wires": [
[
- "a6974c46.ebe7b8"
+ "d7bab1d5.51757"
]
- ],
- "x": 503,
- "xml": "<outcome value='Other'>\n",
- "y": 409,
- "z": "9bf3d460.112078"
+ ]
},
{
- "comments": "",
- "id": "23a74147.f18206",
+ "id": "746c71a8.ecf54",
+ "type": "failure",
"name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
"outputs": 1,
- "type": "failure",
+ "x": 1080.0000610351562,
+ "y": 473.00000762939453,
+ "z": "8298903b.6dd47",
"wires": [
[
- "31c18e01.31d712"
+ "812cc9c1.aee1"
]
- ],
- "x": 1097.0000610351562,
- "xml": "<outcome value='failure'>\n",
- "y": 466.00000762939453,
- "z": "9bf3d460.112078"
+ ]
},
{
- "comments": "",
- "id": "f9c039c.e2674c8",
+ "id": "a107745e.d375f",
+ "type": "other",
"name": "outcome 101",
+ "xml": "<outcome value='101'>\n",
+ "comments": "",
"outputs": 1,
- "type": "other",
+ "x": 735,
+ "y": 411.00003814697266,
+ "z": "8298903b.6dd47",
"wires": [
[
- "31c18e01.31d712"
+ "812cc9c1.aee1"
]
- ],
- "x": 752,
- "xml": "<outcome value='101'>\n",
- "y": 404.00003814697266,
- "z": "9bf3d460.112078"
+ ]
},
{
- "comments": "",
- "id": "8fc99d96.bc351",
+ "id": "3553670.a015a9a",
+ "type": "success",
"name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
"outputs": 1,
- "type": "success",
+ "x": 1087.0000610351562,
+ "y": 521.0000381469727,
+ "z": "8298903b.6dd47",
"wires": [
[
- "d1887396.9adf08"
+ "9eb97883.c25dd"
]
- ],
- "x": 1104.0000610351562,
- "xml": "<outcome value='success'>\n",
- "y": 514.0000381469727,
- "z": "9bf3d460.112078"
+ ]
},
{
- "comments": "",
- "id": "6d18cbe4.797a4c",
- "name": "return success",
+ "id": "4d0102b3.cb0034",
"type": "returnSuccess",
- "wires": [],
- "x": 1386.9999389648438,
+ "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`'/>",
- "y": 566.0000381469727,
- "z": "9bf3d460.112078"
+ "comments": "",
+ "x": 1369.9999389648438,
+ "y": 573.0000381469727,
+ "z": "8298903b.6dd47",
+ "wires": []
},
{
- "id": "12001730.eb4a51",
+ "id": "b0b34f77.1a63a",
+ "type": "dgstart",
"name": "DGSTART",
"outputs": 1,
- "type": "dgstart",
+ "x": 107,
+ "y": 189,
+ "z": "8298903b.6dd47",
"wires": [
[
- "8bfd5b63.3e5f4"
+ "d4e963ab.cbd07"
]
- ],
- "x": 124,
- "y": 182,
- "z": "9bf3d460.112078"
+ ]
},
{
+ "id": "29adfec5.3e996a",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
"atomic": "false",
"comments": "",
- "id": "bb888dbc.8c45a8",
- "name": "block",
"outputs": 1,
- "type": "block",
+ "x": 102.91668701171875,
+ "y": 370.0833435058594,
+ "z": "8298903b.6dd47",
"wires": [
[
- "5e5ee749.3bcc48",
- "a6d4fb87.681f68",
- "b740ef3c.edfdc8"
+ "dbae8f8c.b9f5c8",
+ "2da1a6a3.957b62",
+ "f33027ae.498be"
]
- ],
- "x": 119.91668701171875,
- "xml": "<block>\n",
- "y": 363.0833435058594,
- "z": "9bf3d460.112078"
+ ]
},
{
- "comments": "",
- "id": "a6d4fb87.681f68",
+ "id": "2da1a6a3.957b62",
+ "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,
- "type": "execute",
+ "x": 275.00001525878906,
+ "y": 328.0833435058594,
+ "z": "8298903b.6dd47",
"wires": [
[]
- ],
- "x": 292.00001525878906,
- "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",
- "y": 321.0833435058594,
- "z": "9bf3d460.112078"
+ ]
},
{
- "comments": "",
- "id": "cb67f90f.046f3",
+ "id": "e8fdf598.f43db",
+ "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,
- "type": "execute",
+ "x": 1087.0000610351562,
+ "y": 317.0833435058594,
+ "z": "8298903b.6dd47",
"wires": [
[
- "875f0b0e.0e6f7"
+ "27736dcd.8ac982"
]
- ],
- "x": 1104.0000610351562,
- "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",
- "y": 310.0833435058594,
- "z": "9bf3d460.112078"
+ ]
},
{
- "comments": "",
- "id": "875f0b0e.0e6f7",
+ "id": "27736dcd.8ac982",
+ "type": "failure",
"name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
"outputs": 1,
- "type": "failure",
+ "x": 1257,
+ "y": 316.0833435058594,
+ "z": "8298903b.6dd47",
"wires": [
[
- "ffef3abf.fa3b28"
+ "86cb0ea6.638338"
]
- ],
- "x": 1274,
- "xml": "<outcome value='failure'>\n",
- "y": 309.0833435058594,
- "z": "9bf3d460.112078"
+ ]
},
{
+ "id": "812cc9c1.aee1",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
"atomic": "false",
"comments": "",
- "id": "31c18e01.31d712",
- "name": "block",
"outputs": 1,
- "type": "block",
+ "x": 890,
+ "y": 341.0833435058594,
+ "z": "8298903b.6dd47",
"wires": [
[
- "cb67f90f.046f3",
- "a0aa0de3.da3e58",
- "ba94d9aa.311d58"
+ "e8fdf598.f43db",
+ "e11198e6.679a2",
+ "a3a650c3.8200a8"
]
- ],
- "x": 907,
- "xml": "<block>\n",
- "y": 334.0833435058594,
- "z": "9bf3d460.112078"
+ ]
},
{
- "comments": "",
- "id": "49340dd8.256594",
+ "id": "7d25ddd1.4d85f4",
+ "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,
- "type": "execute",
+ "x": 1390.4999389648438,
+ "y": 522.0833511352539,
+ "z": "8298903b.6dd47",
"wires": [
[
- "2488d4ee.ca9d2c"
+ "1bd36512.b1eedb"
]
- ],
- "x": 1407.4999389648438,
- "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",
- "y": 515.0833511352539,
- "z": "9bf3d460.112078"
+ ]
},
{
- "comments": "",
- "id": "2488d4ee.ca9d2c",
+ "id": "1bd36512.b1eedb",
+ "type": "failure",
"name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
"outputs": 1,
- "type": "failure",
+ "x": 1550.4999389648438,
+ "y": 522.0833511352539,
+ "z": "8298903b.6dd47",
"wires": [
[
- "4d1cd7f3.31def8"
+ "8b14e6d.6ed9318"
]
- ],
- "x": 1567.4999389648438,
- "xml": "<outcome value='failure'>\n",
- "y": 515.0833511352539,
- "z": "9bf3d460.112078"
+ ]
},
{
- "comments": "",
- "id": "ffef3abf.fa3b28",
+ "id": "86cb0ea6.638338",
+ "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,
- "type": "record",
+ "x": 1389,
+ "y": 316.0833435058594,
+ "z": "8298903b.6dd47",
"wires": [
[]
- ],
- "x": 1406,
- "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'/>",
- "y": 309.0833435058594,
- "z": "9bf3d460.112078"
+ ]
},
{
- "comments": "",
- "id": "a0aa0de3.da3e58",
- "name": "return failure",
+ "id": "e11198e6.679a2",
"type": "returnFailure",
- "wires": [],
- "x": 1078.9166870117188,
+ "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",
- "y": 347.0833435058594,
- "z": "9bf3d460.112078"
+ "comments": "",
+ "x": 1061.9166870117188,
+ "y": 354.0833435058594,
+ "z": "8298903b.6dd47",
+ "wires": []
},
{
- "comments": "",
- "id": "4d1cd7f3.31def8",
+ "id": "8b14e6d.6ed9318",
+ "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,
- "type": "record",
+ "x": 1671.9166870117188,
+ "y": 523.0833511352539,
+ "z": "8298903b.6dd47",
"wires": [
[]
- ],
- "x": 1688.9166870117188,
- "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'/>",
- "y": 516.0833511352539,
- "z": "9bf3d460.112078"
+ ]
},
{
- "comments": "",
- "id": "ba94d9aa.311d58",
- "name": "set",
+ "id": "a3a650c3.8200a8",
"type": "set",
- "wires": [],
- "x": 1056.0000610351562,
- "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.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.originator-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.payload' value='`$org.onap.appc.adapter.ansible.results`'/>\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",
- "y": 257.0833435058594,
- "z": "9bf3d460.112078"
+ "name": "set",
+ "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": 1039.0000610351562,
+ "y": 264.0833435058594,
+ "z": "8298903b.6dd47",
+ "wires": []
},
{
+ "id": "9eb97883.c25dd",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
"atomic": "false",
"comments": "",
- "id": "d1887396.9adf08",
- "name": "block",
"outputs": 1,
- "type": "block",
+ "x": 1219.9999389648438,
+ "y": 521.0833206176758,
+ "z": "8298903b.6dd47",
"wires": [
[
- "49340dd8.256594",
- "2c76247f.67dc84",
- "6d18cbe4.797a4c"
+ "7d25ddd1.4d85f4",
+ "5aed86b8.dac118",
+ "4d0102b3.cb0034"
]
- ],
- "x": 1236.9999389648438,
- "xml": "<block>\n",
- "y": 514.0833206176758,
- "z": "9bf3d460.112078"
+ ]
},
{
- "comments": "",
- "id": "2c76247f.67dc84",
- "name": "set",
+ "id": "5aed86b8.dac118",
"type": "set",
- "wires": [],
- "x": 1367.1666870117188,
- "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.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.originator-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.payload' value='`$org.onap.appc.adapter.ansible.results`'/>\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",
- "y": 467.0833511352539,
- "z": "9bf3d460.112078"
+ "name": "set",
+ "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": 1350.1666870117188,
+ "y": 474.0833511352539,
+ "z": "8298903b.6dd47",
+ "wires": []
},
{
- "comments": "",
- "id": "46d7a6a2.66c73",
+ "id": "7d81ec43.a1807c",
+ "type": "not-found",
"name": "not-found",
+ "xml": "<outcome value='not-found'>\n",
+ "comments": "",
"outputs": 1,
- "type": "not-found",
+ "x": 480,
+ "y": 317,
+ "z": "8298903b.6dd47",
"wires": [
[
- "c55c0137.1972f8"
+ "97422b5e.b01ec"
]
- ],
- "x": 497,
- "xml": "<outcome value='not-found'>\n",
- "y": 310,
- "z": "9bf3d460.112078"
+ ]
},
{
- "comments": "",
- "id": "5abbb598.ba8e2c",
- "name": "set Defaults",
+ "id": "c3ed93bf.f51b6",
"type": "set",
- "wires": [],
- "x": 881,
+ "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",
- "y": 257,
- "z": "9bf3d460.112078"
+ "comments": "",
+ "x": 864,
+ "y": 264,
+ "z": "8298903b.6dd47",
+ "wires": []
},
{
+ "id": "97422b5e.b01ec",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
"atomic": "false",
"comments": "",
- "id": "c55c0137.1972f8",
- "name": "block",
"outputs": 1,
- "type": "block",
+ "x": 664,
+ "y": 309,
+ "z": "8298903b.6dd47",
"wires": [
[
- "5abbb598.ba8e2c",
- "31c18e01.31d712"
+ "c3ed93bf.f51b6",
+ "812cc9c1.aee1"
]
- ],
- "x": 681,
- "xml": "<block>\n",
- "y": 302,
- "z": "9bf3d460.112078"
+ ]
},
{
- "comments": "",
- "id": "b740ef3c.edfdc8",
- "name": "set default status value",
+ "id": "f33027ae.498be",
"type": "set",
- "wires": [],
- "x": 306,
+ "name": "set default status value",
"xml": "<set>\n<parameter name='status.code' value='200' />\n<parameter name='status.message' value='unexpected return from DG' />\n",
- "y": 361,
- "z": "9bf3d460.112078"
+ "comments": "",
+ "x": 289,
+ "y": 368,
+ "z": "8298903b.6dd47",
+ "wires": []
}
]
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 56f7b2ba..51d33da3 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,478 +1,478 @@
[
{
- "comments": "",
- "id": "7018ec36.4cc5ec",
+ "id": "8794d455.5cce5",
+ "type": "method",
"name": "upgrade-pre-check",
+ "xml": "<method rpc='upgrade-pre-check' mode='sync'>\n",
+ "comments": "",
"outputs": 1,
- "type": "method",
+ "x": 520,
+ "y": 133,
+ "z": "7da5048.3ddb5fc",
"wires": [
[
- "7b5d3338.9d34a4"
+ "ff45289b.166bd8"
]
- ],
- "x": 531,
- "xml": "<method rpc='upgrade-pre-check' mode='sync'>\n",
- "y": 159,
- "z": "c751ea25.6a3e48"
+ ]
},
{
- "comments": "",
- "id": "761735d6.a3ecec",
- "module": "LCM",
- "name": "LCM ${project.version}",
- "outputs": 1,
+ "id": "80857f67.984b6",
"type": "service-logic",
+ "name": "LCM ${project.version}",
+ "module": "LCM",
"version": "${project.version}",
+ "comments": "",
+ "xml": "<service-logic xmlns='http://www.onap.org/sdnc/svclogic' xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xsi:schemaLocation='http://www.onap.org/sdnc/svclogic ./svclogic.xsd' module='LCM' version='${project.version}'>",
+ "outputs": 1,
+ "x": 307.99993896484375,
+ "y": 134,
+ "z": "7da5048.3ddb5fc",
"wires": [
[
- "7018ec36.4cc5ec"
+ "8794d455.5cce5"
]
- ],
- "x": 318.99993896484375,
- "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}'>",
- "y": 160,
- "z": "c751ea25.6a3e48"
+ ]
},
{
- "comments": "",
- "id": "df87797d.9a6da8",
+ "id": "d102dc2d.41fe",
+ "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='`$prop.ansible.nodelist`'/>\n<parameter name='Timeout' value='`$prop.ansible.timeout`'/>\n<parameter name='Version' value='`$prop.ansible.version`'/>\n<parameter name='Id' value='`$upgrade-pre-check-input.common-header.request-id`'/>\n<parameter name='PlaybookName' value='`$prop.lcm.upgrade-pre-check.playbookname`'/>",
+ "comments": "",
"outputs": 1,
- "type": "execute",
+ "x": 308.00001525878906,
+ "y": 351,
+ "z": "7da5048.3ddb5fc",
"wires": [
[
- "1f9baab1.f667bd",
- "4dcb875e.05025",
- "98923780.210838"
+ "dde77b94.93ef18",
+ "ed53398e.b83e6",
+ "f5081dcd.9b7118"
]
- ],
- "x": 319.00001525878906,
- "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='`$prop.ansible.nodelist`'/>\n<parameter name='Timeout' value='`$prop.ansible.timeout`'/>\n<parameter name='Version' value='`$prop.ansible.version`'/>\n<parameter name='Id' value='`$upgrade-pre-check-input.common-header.request-id`'/>\n<parameter name='PlaybookName' value='`$prop.lcm.upgrade-pre-check.playbookname`'/>",
- "y": 377,
- "z": "c751ea25.6a3e48"
+ ]
},
{
- "comments": "",
- "id": "be5a404c.df63b",
+ "id": "fe62b59e.3e5e2",
+ "type": "switchNode",
"name": "switch",
+ "xml": "<switch test=\"`$org.onap.appc.adapter.ansible.result.code`\">\n",
+ "comments": "",
"outputs": 1,
- "type": "switchNode",
+ "x": 609,
+ "y": 399,
+ "z": "7da5048.3ddb5fc",
"wires": [
[
- "a0717baa.0ad7c8",
- "76b22e49.42c978",
- "9040169.c537f68"
+ "1521e2ba.c5b60d",
+ "c92b8968.b6598",
+ "1549489f.79a4df"
]
- ],
- "x": 620,
- "xml": "<switch test=\"`$org.onap.appc.adapter.ansible.result.code`\">\n",
- "y": 425,
- "z": "c751ea25.6a3e48"
+ ]
},
{
- "comments": "",
- "id": "a0717baa.0ad7c8",
+ "id": "1521e2ba.c5b60d",
+ "type": "other",
"name": "outcome 500",
+ "xml": "<outcome value='500'>\n",
+ "comments": "",
"outputs": 1,
- "type": "other",
+ "x": 754,
+ "y": 397.00000762939453,
+ "z": "7da5048.3ddb5fc",
"wires": [
[
- "ea274695.4ed0a"
+ "6680d59e.022b5c"
]
- ],
- "x": 765,
- "xml": "<outcome value='500'>\n",
- "y": 423.00000762939453,
- "z": "c751ea25.6a3e48"
+ ]
},
{
- "comments": "",
- "id": "76b22e49.42c978",
+ "id": "c92b8968.b6598",
+ "type": "other",
"name": "outcome 100",
+ "xml": "<outcome value='100'>\n",
+ "comments": "",
"outputs": 1,
- "type": "other",
+ "x": 757,
+ "y": 440.00003814697266,
+ "z": "7da5048.3ddb5fc",
"wires": [
[
- "f49ca07a.b8928"
+ "a515c0c.2a1774"
]
- ],
- "x": 768,
- "xml": "<outcome value='100'>\n",
- "y": 466.00003814697266,
- "z": "c751ea25.6a3e48"
+ ]
},
{
- "comments": "",
- "id": "f49ca07a.b8928",
+ "id": "a515c0c.2a1774",
+ "type": "execute",
"name": "execute reqExecResult",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.adaptors.ansible.AnsibleAdapter' method='reqExecResult' >\n <parameter name='AgentUrl' value='`$prop.ansible.agenturl`'/>\n\t<parameter name='User' value='`$prop.ansible.user`'/>\n\t<parameter name='Password' value='`$prop.ansible.password`'/>\n\t<parameter name='Id' value='`$org.onap.appc.adapter.ansible.Id`'/>\n\t<parameter name='PlaybookName' value='`$prop.lcm.upgrade-pre-check.playbookname`'/>\n\t\n\n\n\n\n",
+ "comments": "",
"outputs": 1,
- "type": "execute",
+ "x": 935.0000305175781,
+ "y": 440.00003814697266,
+ "z": "7da5048.3ddb5fc",
"wires": [
[
- "49baafab.739d7",
- "225528dc.01ae88"
+ "aafd18f3.e67588",
+ "12d7ff4a.4dff39"
]
- ],
- "x": 946.0000305175781,
- "xml": "<execute plugin='org.onap.ccsdk.sli.adaptors.ansible.AnsibleAdapter' method='reqExecResult' >\n <parameter name='AgentUrl' value='`$prop.ansible.agenturl`'/>\n\t<parameter name='User' value='`$prop.ansible.user`'/>\n\t<parameter name='Password' value='`$prop.ansible.password`'/>\n\t<parameter name='Id' value='`$org.onap.appc.adapter.ansible.Id`'/>\n\t<parameter name='PlaybookName' value='`$prop.lcm.upgrade-pre-check.playbookname`'/>\n\t\n\n\n\n\n",
- "y": 466.00003814697266,
- "z": "c751ea25.6a3e48"
+ ]
},
{
- "comments": "",
- "id": "4dcb875e.05025",
+ "id": "ed53398e.b83e6",
+ "type": "failure",
"name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
"outputs": 1,
- "type": "failure",
+ "x": 500,
+ "y": 308.0000305175781,
+ "z": "7da5048.3ddb5fc",
"wires": [
[
- "ea274695.4ed0a"
+ "6680d59e.022b5c"
]
- ],
- "x": 511,
- "xml": "<outcome value='failure'>\n",
- "y": 334.0000305175781,
- "z": "c751ea25.6a3e48"
+ ]
},
{
- "comments": "",
- "id": "1f9baab1.f667bd",
+ "id": "dde77b94.93ef18",
+ "type": "other",
"name": "other",
+ "xml": "<outcome value='Other'>\n",
+ "comments": "",
"outputs": 1,
- "type": "other",
+ "x": 502,
+ "y": 360,
+ "z": "7da5048.3ddb5fc",
"wires": [
[
- "be5a404c.df63b"
+ "fe62b59e.3e5e2"
]
- ],
- "x": 513,
- "xml": "<outcome value='Other'>\n",
- "y": 386,
- "z": "c751ea25.6a3e48"
+ ]
},
{
- "comments": "",
- "id": "49baafab.739d7",
+ "id": "aafd18f3.e67588",
+ "type": "failure",
"name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
"outputs": 1,
- "type": "failure",
+ "x": 1096.0000610351562,
+ "y": 417.00000762939453,
+ "z": "7da5048.3ddb5fc",
"wires": [
[
- "ea274695.4ed0a"
+ "6680d59e.022b5c"
]
- ],
- "x": 1107.0000610351562,
- "xml": "<outcome value='failure'>\n",
- "y": 443.00000762939453,
- "z": "c751ea25.6a3e48"
+ ]
},
{
- "comments": "",
- "id": "9040169.c537f68",
+ "id": "1549489f.79a4df",
+ "type": "other",
"name": "outcome 101",
+ "xml": "<outcome value='101'>\n",
+ "comments": "",
"outputs": 1,
- "type": "other",
+ "x": 751,
+ "y": 355.00003814697266,
+ "z": "7da5048.3ddb5fc",
"wires": [
[
- "ea274695.4ed0a"
+ "6680d59e.022b5c"
]
- ],
- "x": 762,
- "xml": "<outcome value='101'>\n",
- "y": 381.00003814697266,
- "z": "c751ea25.6a3e48"
+ ]
},
{
- "comments": "",
- "id": "225528dc.01ae88",
+ "id": "12d7ff4a.4dff39",
+ "type": "success",
"name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
"outputs": 1,
- "type": "success",
+ "x": 1103.0000610351562,
+ "y": 465.00003814697266,
+ "z": "7da5048.3ddb5fc",
"wires": [
[
- "6714b2b5.d30774"
+ "db47df98.2c4588"
]
- ],
- "x": 1114.0000610351562,
- "xml": "<outcome value='success'>\n",
- "y": 491.00003814697266,
- "z": "c751ea25.6a3e48"
+ ]
},
{
- "comments": "",
- "id": "a635bf9c.d50128",
- "name": "return success",
+ "id": "cdc8f332.5e3cb8",
"type": "returnSuccess",
- "wires": [],
- "x": 1396.9999389648438,
+ "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`'/>",
- "y": 543.0000381469727,
- "z": "c751ea25.6a3e48"
+ "comments": "",
+ "x": 1385.9999389648438,
+ "y": 517.0000381469727,
+ "z": "7da5048.3ddb5fc",
+ "wires": []
},
{
- "id": "cfce7550.eb4e38",
+ "id": "35025675.c3eb3a",
+ "type": "dgstart",
"name": "DGSTART",
"outputs": 1,
- "type": "dgstart",
+ "x": 123,
+ "y": 133,
+ "z": "7da5048.3ddb5fc",
"wires": [
[
- "761735d6.a3ecec"
+ "80857f67.984b6"
]
- ],
- "x": 134,
- "y": 159,
- "z": "c751ea25.6a3e48"
+ ]
},
{
+ "id": "ff45289b.166bd8",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
"atomic": "false",
"comments": "",
- "id": "7b5d3338.9d34a4",
- "name": "block",
"outputs": 1,
- "type": "block",
+ "x": 118.91668701171875,
+ "y": 314.0833435058594,
+ "z": "7da5048.3ddb5fc",
"wires": [
[
- "df87797d.9a6da8",
- "61c92510.8e1f44",
- "88ad34a4.11ef"
+ "d102dc2d.41fe",
+ "8c1fb722.e712a8",
+ "d66534d5.e238c"
]
- ],
- "x": 129.91668701171875,
- "xml": "<block>\n",
- "y": 340.0833435058594,
- "z": "c751ea25.6a3e48"
+ ]
},
{
- "comments": "",
- "id": "61c92510.8e1f44",
+ "id": "8c1fb722.e712a8",
+ "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,
- "type": "execute",
+ "x": 292.00001525878906,
+ "y": 267.0833435058594,
+ "z": "7da5048.3ddb5fc",
"wires": [
[]
- ],
- "x": 303.00001525878906,
- "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",
- "y": 293.0833435058594,
- "z": "c751ea25.6a3e48"
+ ]
},
{
- "comments": "",
- "id": "1b10ccd4.98611b",
+ "id": "5aa80cdf.0a7ab4",
+ "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,
- "type": "execute",
+ "x": 1103.0000610351562,
+ "y": 261.0833435058594,
+ "z": "7da5048.3ddb5fc",
"wires": [
[
- "41a315d2.219cbc"
+ "33950e88.f14ed2"
]
- ],
- "x": 1114.0000610351562,
- "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",
- "y": 287.0833435058594,
- "z": "c751ea25.6a3e48"
+ ]
},
{
- "comments": "",
- "id": "41a315d2.219cbc",
+ "id": "33950e88.f14ed2",
+ "type": "failure",
"name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
"outputs": 1,
- "type": "failure",
+ "x": 1273,
+ "y": 260.0833435058594,
+ "z": "7da5048.3ddb5fc",
"wires": [
[
- "8cd3938a.e26c48"
+ "d29bb160.8e2c18"
]
- ],
- "x": 1284,
- "xml": "<outcome value='failure'>\n",
- "y": 286.0833435058594,
- "z": "c751ea25.6a3e48"
+ ]
},
{
+ "id": "6680d59e.022b5c",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
"atomic": "false",
"comments": "",
- "id": "ea274695.4ed0a",
- "name": "block",
"outputs": 1,
- "type": "block",
+ "x": 906,
+ "y": 285.0833435058594,
+ "z": "7da5048.3ddb5fc",
"wires": [
[
- "1b10ccd4.98611b",
- "bccd0081.01b13",
- "7a021bb.f1ec464"
+ "5aa80cdf.0a7ab4",
+ "b116f2bd.6d187",
+ "3c43772b.4e0da8"
]
- ],
- "x": 917,
- "xml": "<block>\n",
- "y": 311.0833435058594,
- "z": "c751ea25.6a3e48"
+ ]
},
{
- "comments": "",
- "id": "bdd486fa.e9a568",
+ "id": "ee44a647.c4fff",
+ "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,
- "type": "execute",
+ "x": 1406.4999389648438,
+ "y": 466.0833511352539,
+ "z": "7da5048.3ddb5fc",
"wires": [
[
- "9f6ebc1e.f5d92"
+ "96654ac9.0d28b8"
]
- ],
- "x": 1417.4999389648438,
- "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",
- "y": 492.0833511352539,
- "z": "c751ea25.6a3e48"
+ ]
},
{
- "comments": "",
- "id": "9f6ebc1e.f5d92",
+ "id": "96654ac9.0d28b8",
+ "type": "failure",
"name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
"outputs": 1,
- "type": "failure",
+ "x": 1566.4999389648438,
+ "y": 466.0833511352539,
+ "z": "7da5048.3ddb5fc",
"wires": [
[
- "570d9c94.41a1c4"
+ "8e468697.9f9a2"
]
- ],
- "x": 1577.4999389648438,
- "xml": "<outcome value='failure'>\n",
- "y": 492.0833511352539,
- "z": "c751ea25.6a3e48"
+ ]
},
{
- "comments": "",
- "id": "8cd3938a.e26c48",
+ "id": "d29bb160.8e2c18",
+ "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,
- "type": "record",
+ "x": 1405,
+ "y": 260.0833435058594,
+ "z": "7da5048.3ddb5fc",
"wires": [
[]
- ],
- "x": 1416,
- "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'/>",
- "y": 286.0833435058594,
- "z": "c751ea25.6a3e48"
+ ]
},
{
- "comments": "",
- "id": "bccd0081.01b13",
- "name": "return failure",
+ "id": "b116f2bd.6d187",
"type": "returnFailure",
- "wires": [],
- "x": 1088.9166870117188,
+ "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",
- "y": 324.0833435058594,
- "z": "c751ea25.6a3e48"
+ "comments": "",
+ "x": 1077.9166870117188,
+ "y": 298.0833435058594,
+ "z": "7da5048.3ddb5fc",
+ "wires": []
},
{
- "comments": "",
- "id": "570d9c94.41a1c4",
+ "id": "8e468697.9f9a2",
+ "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,
- "type": "record",
+ "x": 1687.9166870117188,
+ "y": 467.0833511352539,
+ "z": "7da5048.3ddb5fc",
"wires": [
[]
- ],
- "x": 1698.9166870117188,
- "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'/>",
- "y": 493.0833511352539,
- "z": "c751ea25.6a3e48"
+ ]
},
{
- "comments": "",
- "id": "7a021bb.f1ec464",
- "name": "set",
+ "id": "3c43772b.4e0da8",
"type": "set",
- "wires": [],
- "x": 1066.0000610351562,
- "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.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.originator-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.payload' value='`$org.onap.appc.adapter.ansible.results`'/>\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",
- "y": 234.08334350585938,
- "z": "c751ea25.6a3e48"
+ "name": "set",
+ "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\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": 1055.0000610351562,
+ "y": 208.08334350585938,
+ "z": "7da5048.3ddb5fc",
+ "wires": []
},
{
+ "id": "db47df98.2c4588",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
"atomic": "false",
"comments": "",
- "id": "6714b2b5.d30774",
- "name": "block",
"outputs": 1,
- "type": "block",
+ "x": 1235.9999389648438,
+ "y": 465.0833206176758,
+ "z": "7da5048.3ddb5fc",
"wires": [
[
- "bdd486fa.e9a568",
- "a28655e0.def7f8",
- "a635bf9c.d50128"
+ "ee44a647.c4fff",
+ "61a3bf4.bcdb3c",
+ "cdc8f332.5e3cb8"
]
- ],
- "x": 1246.9999389648438,
- "xml": "<block>\n",
- "y": 491.0833206176758,
- "z": "c751ea25.6a3e48"
+ ]
},
{
- "comments": "",
- "id": "a28655e0.def7f8",
- "name": "set",
+ "id": "61a3bf4.bcdb3c",
"type": "set",
- "wires": [],
- "x": 1377.1666870117188,
- "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.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.originator-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.payload' value='`$org.onap.appc.adapter.ansible.results`'/>\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",
- "y": 444.0833511352539,
- "z": "c751ea25.6a3e48"
+ "name": "set",
+ "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": 1366.1666870117188,
+ "y": 418.0833511352539,
+ "z": "7da5048.3ddb5fc",
+ "wires": []
},
{
- "comments": "",
- "id": "98923780.210838",
+ "id": "f5081dcd.9b7118",
+ "type": "not-found",
"name": "not-found",
+ "xml": "<outcome value='not-found'>\n",
+ "comments": "",
"outputs": 1,
- "type": "not-found",
+ "x": 496,
+ "y": 261,
+ "z": "7da5048.3ddb5fc",
"wires": [
[
- "504babef.4c020c"
+ "ce8b68f1.22b2d8"
]
- ],
- "x": 507,
- "xml": "<outcome value='not-found'>\n",
- "y": 287,
- "z": "c751ea25.6a3e48"
+ ]
},
{
- "comments": "",
- "id": "4ab0c40.39584bc",
- "name": "set Defaults",
+ "id": "e7918964.c04f3",
"type": "set",
- "wires": [],
- "x": 891,
+ "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",
- "y": 234,
- "z": "c751ea25.6a3e48"
+ "comments": "",
+ "x": 880,
+ "y": 208,
+ "z": "7da5048.3ddb5fc",
+ "wires": []
},
{
+ "id": "ce8b68f1.22b2d8",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
"atomic": "false",
"comments": "",
- "id": "504babef.4c020c",
- "name": "block",
"outputs": 1,
- "type": "block",
+ "x": 680,
+ "y": 253,
+ "z": "7da5048.3ddb5fc",
"wires": [
[
- "4ab0c40.39584bc",
- "ea274695.4ed0a"
+ "e7918964.c04f3",
+ "6680d59e.022b5c"
]
- ],
- "x": 691,
- "xml": "<block>\n",
- "y": 279,
- "z": "c751ea25.6a3e48"
+ ]
},
{
- "comments": "",
- "id": "88ad34a4.11ef",
- "name": "set default status value",
+ "id": "d66534d5.e238c",
"type": "set",
- "wires": [],
- "x": 312,
+ "name": "set default status value",
"xml": "<set>\n<parameter name='status.code' value='200' />\n<parameter name='status.message' value='unexpected return from DG' />\n",
- "y": 337,
- "z": "c751ea25.6a3e48"
+ "comments": "",
+ "x": 301,
+ "y": 311,
+ "z": "7da5048.3ddb5fc",
+ "wires": []
}
]
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 348f108f..54b75cd3 100644
--- a/platform-logic/lcm/src/main/json/LCM_upgrade-software.json
+++ b/platform-logic/lcm/src/main/json/LCM_upgrade-software.json
@@ -1,478 +1,478 @@
[
{
- "comments": "",
- "id": "e3957e37.35361",
+ "id": "4c3f9752.77dec",
+ "type": "method",
"name": "upgrade-software",
+ "xml": "<method rpc='upgrade-software' mode='sync'>\n",
+ "comments": "",
"outputs": 1,
- "type": "method",
+ "x": 489,
+ "y": 152,
+ "z": "e0b620f9.dad4e8",
"wires": [
[
- "c5d4c45f.4457e"
+ "83650b67.6cd8c"
]
- ],
- "x": 506,
- "xml": "<method rpc='upgrade-software' mode='sync'>\n",
- "y": 196,
- "z": "455a25b6.fcbc5c"
+ ]
},
{
- "comments": "",
- "id": "5f2faaca.f39734",
- "module": "LCM",
- "name": "LCM ${project.version}",
- "outputs": 1,
+ "id": "d837d6cb.338428",
"type": "service-logic",
+ "name": "LCM ${project.version}",
+ "module": "LCM",
"version": "${project.version}",
+ "comments": "",
+ "xml": "<service-logic xmlns='http://www.onap.org/sdnc/svclogic' xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xsi:schemaLocation='http://www.onap.org/sdnc/svclogic ./svclogic.xsd' module='LCM' version='${project.version}'>",
+ "outputs": 1,
+ "x": 276.99993896484375,
+ "y": 153,
+ "z": "e0b620f9.dad4e8",
"wires": [
[
- "e3957e37.35361"
+ "4c3f9752.77dec"
]
- ],
- "x": 293.99993896484375,
- "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}'>",
- "y": 197,
- "z": "455a25b6.fcbc5c"
+ ]
},
{
- "comments": "",
- "id": "70dc7b0c.2f14e4",
+ "id": "3421e2b7.29c266",
+ "type": "execute",
"name": "execute AnsibleA.reqExec",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.adaptors.ansible.AnsibleAdapter' method='reqExec' >\n<parameter name='AgentUrl' value='`$prop.ansible.agenturl`'/>\n<parameter name='User' value='`$prop.ansible.user`'/>\n<parameter name='Password' value='`prop.ansible.password`'/>\n<parameter name='LocalParameters' value='`$prop.ansible.lcm.localparameters`'/>\n<parameter name='EnvParameters' value='`$upgrade-software-input.payload`'/>\n<parameter name='NodeList' value='`$prop.ansible.nodelist`'/>\n<parameter name='Timeout' value='`$prop.ansible.timeout`'/>\n<parameter name='Version' value='`$prop.ansible.version`'/>\n<parameter name='Id' value='`$upgrade-software-input.common-header.request-id`'/>\n<parameter name='PlaybookName' value='`$prop.lcm.upgrade-software.playbookname`'/>",
+ "comments": "",
"outputs": 1,
- "type": "execute",
+ "x": 277.00001525878906,
+ "y": 370,
+ "z": "e0b620f9.dad4e8",
"wires": [
[
- "bc899025.fa2868",
- "f27679b0.21ec",
- "704e725e.7e874c"
+ "199ed9da.f92c0e",
+ "c8dd71a.7a9241",
+ "50f87fc.8f6068"
]
- ],
- "x": 294.00001525878906,
- "xml": "<execute plugin='org.onap.ccsdk.sli.adaptors.ansible.AnsibleAdapter' method='reqExec' >\n<parameter name='AgentUrl' value='`$prop.ansible.agenturl`'/>\n<parameter name='User' value='`$prop.ansible.user`'/>\n<parameter name='Password' value='`prop.ansible.password`'/>\n<parameter name='LocalParameters' value='`$prop.ansible.lcm.localparameters`'/>\n<parameter name='EnvParameters' value='`$upgrade-software-input.payload`'/>\n<parameter name='NodeList' value='`$prop.ansible.nodelist`'/>\n<parameter name='Timeout' value='`$prop.ansible.timeout`'/>\n<parameter name='Version' value='`$prop.ansible.version`'/>\n<parameter name='Id' value='`$upgrade-software-input.common-header.request-id`'/>\n<parameter name='PlaybookName' value='`$prop.lcm.upgrade-software.playbookname`'/>",
- "y": 414,
- "z": "455a25b6.fcbc5c"
+ ]
},
{
- "comments": "",
- "id": "e3dc71b8.c785c8",
+ "id": "32b073b0.4096bc",
+ "type": "switchNode",
"name": "switch",
+ "xml": "<switch test=\"`$org.onap.appc.adapter.ansible.result.code`\">\n",
+ "comments": "",
"outputs": 1,
- "type": "switchNode",
+ "x": 578,
+ "y": 418,
+ "z": "e0b620f9.dad4e8",
"wires": [
[
- "86baeda9.1ff078",
- "195ba453.c1b374",
- "931e0cc5.50a74"
+ "df999599.1b565",
+ "96b44eb0.622268",
+ "a80c397d.561b48"
]
- ],
- "x": 595,
- "xml": "<switch test=\"`$org.onap.appc.adapter.ansible.result.code`\">\n",
- "y": 462,
- "z": "455a25b6.fcbc5c"
+ ]
},
{
- "comments": "",
- "id": "86baeda9.1ff078",
+ "id": "df999599.1b565",
+ "type": "other",
"name": "outcome 500",
+ "xml": "<outcome value='500'>\n",
+ "comments": "",
"outputs": 1,
- "type": "other",
+ "x": 723,
+ "y": 416.00000762939453,
+ "z": "e0b620f9.dad4e8",
"wires": [
[
- "d1ce272a.df817"
+ "f25faee.c20865"
]
- ],
- "x": 740,
- "xml": "<outcome value='500'>\n",
- "y": 460.00000762939453,
- "z": "455a25b6.fcbc5c"
+ ]
},
{
- "comments": "",
- "id": "195ba453.c1b374",
+ "id": "96b44eb0.622268",
+ "type": "other",
"name": "outcome 100",
+ "xml": "<outcome value='100'>\n",
+ "comments": "",
"outputs": 1,
- "type": "other",
+ "x": 726,
+ "y": 459.00003814697266,
+ "z": "e0b620f9.dad4e8",
"wires": [
[
- "245ca838.b01f4"
+ "fcf5e1f3.334ad"
]
- ],
- "x": 743,
- "xml": "<outcome value='100'>\n",
- "y": 503.00003814697266,
- "z": "455a25b6.fcbc5c"
+ ]
},
{
- "comments": "",
- "id": "245ca838.b01f4",
+ "id": "fcf5e1f3.334ad",
+ "type": "execute",
"name": "execute reqExecResult",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.adaptors.ansible.AnsibleAdapter' method='reqExecResult' >\n <parameter name='AgentUrl' value='`$prop.ansible.agenturl`'/>\n\t<parameter name='User' value='`$prop.ansible.user`'/>\n\t<parameter name='Password' value='`$prop.ansible.password`'/>\n\t<parameter name='Id' value='`$org.onap.appc.adapter.ansible.Id`'/>\n\t<parameter name='PlaybookName' value='`$prop.lcm.upgrade-software.playbookname`'/>\n\t\n\n\n\n\n",
+ "comments": "",
"outputs": 1,
- "type": "execute",
+ "x": 904.0000305175781,
+ "y": 459.00003814697266,
+ "z": "e0b620f9.dad4e8",
"wires": [
[
- "b1d260a0.f027c8",
- "7c135a2c.b77b1c"
+ "9223dd62.33b848",
+ "52b60d15.5c8824"
]
- ],
- "x": 921.0000305175781,
- "xml": "<execute plugin='org.onap.ccsdk.sli.adaptors.ansible.AnsibleAdapter' method='reqExecResult' >\n <parameter name='AgentUrl' value='`$prop.ansible.agenturl`'/>\n\t<parameter name='User' value='`$prop.ansible.user`'/>\n\t<parameter name='Password' value='`$prop.ansible.password`'/>\n\t<parameter name='Id' value='`$org.onap.appc.adapter.ansible.Id`'/>\n\t<parameter name='PlaybookName' value='`$prop.lcm.upgrade-software.playbookname`'/>\n\t\n\n\n\n\n",
- "y": 503.00003814697266,
- "z": "455a25b6.fcbc5c"
+ ]
},
{
- "comments": "",
- "id": "f27679b0.21ec",
+ "id": "c8dd71a.7a9241",
+ "type": "failure",
"name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
"outputs": 1,
- "type": "failure",
+ "x": 469,
+ "y": 327.0000305175781,
+ "z": "e0b620f9.dad4e8",
"wires": [
[
- "d1ce272a.df817"
+ "f25faee.c20865"
]
- ],
- "x": 486,
- "xml": "<outcome value='failure'>\n",
- "y": 371.0000305175781,
- "z": "455a25b6.fcbc5c"
+ ]
},
{
- "comments": "",
- "id": "bc899025.fa2868",
+ "id": "199ed9da.f92c0e",
+ "type": "other",
"name": "other",
+ "xml": "<outcome value='Other'>\n",
+ "comments": "",
"outputs": 1,
- "type": "other",
+ "x": 471,
+ "y": 379,
+ "z": "e0b620f9.dad4e8",
"wires": [
[
- "e3dc71b8.c785c8"
+ "32b073b0.4096bc"
]
- ],
- "x": 488,
- "xml": "<outcome value='Other'>\n",
- "y": 423,
- "z": "455a25b6.fcbc5c"
+ ]
},
{
- "comments": "",
- "id": "b1d260a0.f027c8",
+ "id": "9223dd62.33b848",
+ "type": "failure",
"name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
"outputs": 1,
- "type": "failure",
+ "x": 1065.0000610351562,
+ "y": 436.00000762939453,
+ "z": "e0b620f9.dad4e8",
"wires": [
[
- "d1ce272a.df817"
+ "f25faee.c20865"
]
- ],
- "x": 1082.0000610351562,
- "xml": "<outcome value='failure'>\n",
- "y": 480.00000762939453,
- "z": "455a25b6.fcbc5c"
+ ]
},
{
- "comments": "",
- "id": "931e0cc5.50a74",
+ "id": "a80c397d.561b48",
+ "type": "other",
"name": "outcome 101",
+ "xml": "<outcome value='101'>\n",
+ "comments": "",
"outputs": 1,
- "type": "other",
+ "x": 720,
+ "y": 374.00003814697266,
+ "z": "e0b620f9.dad4e8",
"wires": [
[
- "d1ce272a.df817"
+ "f25faee.c20865"
]
- ],
- "x": 737,
- "xml": "<outcome value='101'>\n",
- "y": 418.00003814697266,
- "z": "455a25b6.fcbc5c"
+ ]
},
{
- "comments": "",
- "id": "7c135a2c.b77b1c",
+ "id": "52b60d15.5c8824",
+ "type": "success",
"name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
"outputs": 1,
- "type": "success",
+ "x": 1072.0000610351562,
+ "y": 484.00003814697266,
+ "z": "e0b620f9.dad4e8",
"wires": [
[
- "a9adb7fd.3d4988"
+ "9c548e74.79765"
]
- ],
- "x": 1089.0000610351562,
- "xml": "<outcome value='success'>\n",
- "y": 528.0000381469727,
- "z": "455a25b6.fcbc5c"
+ ]
},
{
- "comments": "",
- "id": "6546fdb6.d892ac",
- "name": "return success",
+ "id": "6d12b2b7.836454",
"type": "returnSuccess",
- "wires": [],
- "x": 1371.9999389648438,
+ "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`'/>",
- "y": 580.0000381469727,
- "z": "455a25b6.fcbc5c"
+ "comments": "",
+ "x": 1354.9999389648438,
+ "y": 536.0000381469727,
+ "z": "e0b620f9.dad4e8",
+ "wires": []
},
{
- "id": "c7222a65.c32fa",
+ "id": "c4c2701e.31e65",
+ "type": "dgstart",
"name": "DGSTART",
"outputs": 1,
- "type": "dgstart",
+ "x": 92,
+ "y": 152,
+ "z": "e0b620f9.dad4e8",
"wires": [
[
- "5f2faaca.f39734"
+ "d837d6cb.338428"
]
- ],
- "x": 109,
- "y": 196,
- "z": "455a25b6.fcbc5c"
+ ]
},
{
+ "id": "83650b67.6cd8c",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
"atomic": "false",
"comments": "",
- "id": "c5d4c45f.4457e",
- "name": "block",
"outputs": 1,
- "type": "block",
+ "x": 87.91668701171875,
+ "y": 333.0833435058594,
+ "z": "e0b620f9.dad4e8",
"wires": [
[
- "70dc7b0c.2f14e4",
- "2144c479.557abc",
- "2dcfb067.346e98"
+ "3421e2b7.29c266",
+ "af5cebbf.24ded",
+ "9b7242c2.970088"
]
- ],
- "x": 104.91668701171875,
- "xml": "<block>\n",
- "y": 377.0833435058594,
- "z": "455a25b6.fcbc5c"
+ ]
},
{
- "comments": "",
- "id": "2144c479.557abc",
+ "id": "af5cebbf.24ded",
+ "type": "execute",
"name": "execute Properties",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.prop.PropertiesNode' method='readProperties' >\n <parameter name='fileName' value='%SDNC_CONFIG_DIR%/lcm-dg.properties' />\n <parameter name='contextPrefix' value='prop' />\n",
+ "comments": "",
"outputs": 1,
- "type": "execute",
+ "x": 262.00001525878906,
+ "y": 275.0833435058594,
+ "z": "e0b620f9.dad4e8",
"wires": [
[]
- ],
- "x": 279.00001525878906,
- "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",
- "y": 319.0833435058594,
- "z": "455a25b6.fcbc5c"
+ ]
},
{
- "comments": "",
- "id": "3ab47119.0770ce",
+ "id": "17a67139.0163e7",
+ "type": "execute",
"name": "execute DmaapMsg",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n <parameter name='templateFileName' value=\"`$prop.restapi.templateDir + '/' + $prop.restapi.lcm.dmaap.publish.templatefile`\" />\n <parameter name='restapiUrl' value='`$prop.lcm.dmaap.url`' />\n <parameter name='restapiUser' value='`$prop.lcm.dmaap.user`' />\n <parameter name='restapiPassword' value='`$prop.lcm.dmaap.password`' />\n <parameter name='format' value='json' />\n <parameter name='httpMethod' value='POST' />\n <parameter name='contentType' value='application/json' />\n <parameter name=\"responsePrefix\" value=\"lcm\" />\n",
+ "comments": "",
"outputs": 1,
- "type": "execute",
+ "x": 1072.0000610351562,
+ "y": 280.0833435058594,
+ "z": "e0b620f9.dad4e8",
"wires": [
[
- "29d7b192.efbf56"
+ "4b59a568.89eb14"
]
- ],
- "x": 1089.0000610351562,
- "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",
- "y": 324.0833435058594,
- "z": "455a25b6.fcbc5c"
+ ]
},
{
- "comments": "",
- "id": "29d7b192.efbf56",
+ "id": "4b59a568.89eb14",
+ "type": "failure",
"name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
"outputs": 1,
- "type": "failure",
+ "x": 1242,
+ "y": 279.0833435058594,
+ "z": "e0b620f9.dad4e8",
"wires": [
[
- "3b3f2df3.e75202"
+ "81a1b456.34658"
]
- ],
- "x": 1259,
- "xml": "<outcome value='failure'>\n",
- "y": 323.0833435058594,
- "z": "455a25b6.fcbc5c"
+ ]
},
{
+ "id": "f25faee.c20865",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
"atomic": "false",
"comments": "",
- "id": "d1ce272a.df817",
- "name": "block",
"outputs": 1,
- "type": "block",
+ "x": 875,
+ "y": 304.0833435058594,
+ "z": "e0b620f9.dad4e8",
"wires": [
[
- "3ab47119.0770ce",
- "be81ce81.d8751",
- "e34055b3.f4fc"
+ "17a67139.0163e7",
+ "e10545e8.eea44",
+ "d8fbd5c3.79579"
]
- ],
- "x": 892,
- "xml": "<block>\n",
- "y": 348.0833435058594,
- "z": "455a25b6.fcbc5c"
+ ]
},
{
- "comments": "",
- "id": "d0e97f8b.a0a97",
+ "id": "3095e5cd.210e32",
+ "type": "execute",
"name": "execute DmaapMsg",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n <parameter name='templateFileName' value=\"`$prop.restapi.templateDir + '/' + $prop.restapi.lcm.dmaap.publish.templatefile`\" />\n <parameter name='restapiUrl' value='`$prop.lcm.dmaap.url`' />\n <parameter name='restapiUser' value='`$prop.lcm.dmaap.user`' />\n <parameter name='restapiPassword' value='`$prop.lcm.dmaap.password`' />\n <parameter name='format' value='json' />\n <parameter name='httpMethod' value='POST' />\n <parameter name='contentType' value='application/json' />\n <parameter name=\"responsePrefix\" value=\"lcm\" />\n",
+ "comments": "",
"outputs": 1,
- "type": "execute",
+ "x": 1375.4999389648438,
+ "y": 485.0833511352539,
+ "z": "e0b620f9.dad4e8",
"wires": [
[
- "f13ad0f8.38e418"
+ "8bc4822b.c5137"
]
- ],
- "x": 1392.4999389648438,
- "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",
- "y": 529.0833511352539,
- "z": "455a25b6.fcbc5c"
+ ]
},
{
- "comments": "",
- "id": "f13ad0f8.38e418",
+ "id": "8bc4822b.c5137",
+ "type": "failure",
"name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
"outputs": 1,
- "type": "failure",
+ "x": 1535.4999389648438,
+ "y": 485.0833511352539,
+ "z": "e0b620f9.dad4e8",
"wires": [
[
- "8b1d7157.857a38"
+ "b21f8cea.572bf8"
]
- ],
- "x": 1552.4999389648438,
- "xml": "<outcome value='failure'>\n",
- "y": 529.0833511352539,
- "z": "455a25b6.fcbc5c"
+ ]
},
{
- "comments": "",
- "id": "3b3f2df3.e75202",
+ "id": "81a1b456.34658",
+ "type": "record",
"name": "record",
+ "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder\"> \n\t<parameter name=\"logger\" value=\"message-log\"/> \n\t<parameter name=\"field1\" value='Failed to Publish to DMaap'/>",
+ "comments": "",
"outputs": 1,
- "type": "record",
+ "x": 1374,
+ "y": 279.0833435058594,
+ "z": "e0b620f9.dad4e8",
"wires": [
[]
- ],
- "x": 1391,
- "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'/>",
- "y": 323.0833435058594,
- "z": "455a25b6.fcbc5c"
+ ]
},
{
- "comments": "",
- "id": "be81ce81.d8751",
- "name": "return failure",
+ "id": "e10545e8.eea44",
"type": "returnFailure",
- "wires": [],
- "x": 1063.9166870117188,
+ "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",
- "y": 361.0833435058594,
- "z": "455a25b6.fcbc5c"
+ "comments": "",
+ "x": 1046.9166870117188,
+ "y": 317.0833435058594,
+ "z": "e0b620f9.dad4e8",
+ "wires": []
},
{
- "comments": "",
- "id": "8b1d7157.857a38",
+ "id": "b21f8cea.572bf8",
+ "type": "record",
"name": "record",
+ "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder\"> \n\t<parameter name=\"logger\" value=\"message-log\"/> \n\t<parameter name=\"field1\" value='Failed to Publish to DMaap'/>",
+ "comments": "",
"outputs": 1,
- "type": "record",
+ "x": 1656.9166870117188,
+ "y": 486.0833511352539,
+ "z": "e0b620f9.dad4e8",
"wires": [
[]
- ],
- "x": 1673.9166870117188,
- "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'/>",
- "y": 530.0833511352539,
- "z": "455a25b6.fcbc5c"
+ ]
},
{
- "comments": "",
- "id": "e34055b3.f4fc",
- "name": "set",
+ "id": "d8fbd5c3.79579",
"type": "set",
- "wires": [],
- "x": 1041.0000610351562,
- "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.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.originator-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.payload' value='`$org.onap.appc.adapter.ansible.results`'/>\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",
- "y": 271.0833435058594,
- "z": "455a25b6.fcbc5c"
+ "name": "set",
+ "xml": "<set>\n<parameter name='lcm-dmaap.version' value='`$prop.lcm.dmaap.version`'/>\n<parameter name='lcm-dmaap.correlation-id' value=\"`$upgrade-software-input.common-header.request-id + '-' + $upgrade-software-input.common-header.sub-request-id`\"/>\n<parameter name='lcm-dmaap.partition' value='`$prop.lcm.dmaap.partition`'/>\n<parameter name='lcm-dmaap.rpc-name' value='upgrade-software'/>\n<parameter name='lcm-dmaap.type' value='`$prop.lcm.dmaap.type`'/>\n<parameter name='lcm-dmaap.timestamp' value='`$upgrade-software-input.common-header.timestamp`'/>\n<parameter name='lcm-dmaap.api-ver' value='`$upgrade-software-input.common-header.api-ver`'/>\n<parameter name='lcm-dmaap.originator-id' value='`$upgrade-software-input.common-header.originator-id`'/>\n<parameter name='lcm-dmaap.request-id' value='`$upgrade-software-input.common-header.request-id`'/>\n<parameter name='lcm-dmaap.sub-request-id' value='`$upgrade-software-input.common-header.sub-request-id`'/>\n<parameter name='lcm-dmaap.flags.mode' value='`$upgrade-software-input.common-header.flags.mode`'/>\n<parameter name='lcm-dmaap.flags.force' value='`$upgrade-software-input.common-header.flags.force`'/>\n<parameter name='lcm-dmaap.flags.ttl' value='`$upgrade-software-input.common-header.flags.ttl`'/>\n<parameter name='lcm-dmaap.status.code' value='`$org.onap.appc.adapter.ansible.result.code`' />\n<parameter name='lcm-dmaap.status.message' value='`$org.onap.appc.adapter.ansible.message`'/>\n",
+ "comments": "",
+ "x": 1024.0000610351562,
+ "y": 227.08334350585938,
+ "z": "e0b620f9.dad4e8",
+ "wires": []
},
{
+ "id": "9c548e74.79765",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
"atomic": "false",
"comments": "",
- "id": "a9adb7fd.3d4988",
- "name": "block",
"outputs": 1,
- "type": "block",
+ "x": 1204.9999389648438,
+ "y": 484.0833206176758,
+ "z": "e0b620f9.dad4e8",
"wires": [
[
- "d0e97f8b.a0a97",
- "c5897c80.8110a",
- "6546fdb6.d892ac"
+ "3095e5cd.210e32",
+ "dfdfe757.04d0d8",
+ "6d12b2b7.836454"
]
- ],
- "x": 1221.9999389648438,
- "xml": "<block>\n",
- "y": 528.0833206176758,
- "z": "455a25b6.fcbc5c"
+ ]
},
{
- "comments": "",
- "id": "c5897c80.8110a",
- "name": "set",
+ "id": "dfdfe757.04d0d8",
"type": "set",
- "wires": [],
- "x": 1352.1666870117188,
- "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.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.originator-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.payload' value='`$org.onap.appc.adapter.ansible.results`'/>\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",
- "y": 481.0833511352539,
- "z": "455a25b6.fcbc5c"
+ "name": "set",
+ "xml": "<set>\n<parameter name='lcm-dmaap.version' value='`$prop.lcm.dmaap.version`'/>\n<parameter name='lcm-dmaap.correlation-id' value=\"`$upgrade-software-input.common-header.request-id + '-' + $upgrade-software-input.common-header.sub-request-id`\"/>\n<parameter name='lcm-dmaap.partition' value='`$prop.lcm.dmaap.partition`'/>\n<parameter name='lcm-dmaap.rpc-name' value='upgrade-software'/>\n<parameter name='lcm-dmaap.type' value='`$prop.lcm.dmaap.type`'/>\n<parameter name='lcm-dmaap.timestamp' value='`$upgrade-software-input.common-header.timestamp`'/>\n<parameter name='lcm-dmaap.api-ver' value='`$upgrade-software-input.common-header.api-ver`'/>\n<parameter name='lcm-dmaap.originator-id' value='`$upgrade-software-input.common-header.originator-id`'/>\n<parameter name='lcm-dmaap.request-id' value='`$upgrade-software-input.common-header.request-id`'/>\n<parameter name='lcm-dmaap.sub-request-id' value='`$upgrade-software-input.common-header.sub-request-id`'/>\n<parameter name='lcm-dmaap.flags.mode' value='`$upgrade-software-input.common-header.flags.mode`'/>\n<parameter name='lcm-dmaap.flags.force' value='`$upgrade-software-input.common-header.flags.force`'/>\n<parameter name='lcm-dmaap.flags.ttl' value='`$upgrade-software-input.common-header.flags.ttl`'/>\n<parameter name='lcm-dmaap.status.code' value='`$org.onap.appc.adapter.ansible.result.code`' />\n<parameter name='lcm-dmaap.status.message' value='`$org.onap.appc.adapter.ansible.message`'/>\n",
+ "comments": "",
+ "x": 1335.1666870117188,
+ "y": 437.0833511352539,
+ "z": "e0b620f9.dad4e8",
+ "wires": []
},
{
- "comments": "",
- "id": "704e725e.7e874c",
+ "id": "50f87fc.8f6068",
+ "type": "not-found",
"name": "not-found",
+ "xml": "<outcome value='not-found'>\n",
+ "comments": "",
"outputs": 1,
- "type": "not-found",
+ "x": 465,
+ "y": 280,
+ "z": "e0b620f9.dad4e8",
"wires": [
[
- "28042a17.b7aa2e"
+ "71cef7a8.a94c"
]
- ],
- "x": 482,
- "xml": "<outcome value='not-found'>\n",
- "y": 324,
- "z": "455a25b6.fcbc5c"
+ ]
},
{
- "comments": "",
- "id": "e7d4edd8.d7f83",
- "name": "set Defaults",
+ "id": "711ed4cf.9ec76c",
"type": "set",
- "wires": [],
- "x": 866,
+ "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",
- "y": 271,
- "z": "455a25b6.fcbc5c"
+ "comments": "",
+ "x": 849,
+ "y": 227,
+ "z": "e0b620f9.dad4e8",
+ "wires": []
},
{
+ "id": "71cef7a8.a94c",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
"atomic": "false",
"comments": "",
- "id": "28042a17.b7aa2e",
- "name": "block",
"outputs": 1,
- "type": "block",
+ "x": 649,
+ "y": 272,
+ "z": "e0b620f9.dad4e8",
"wires": [
[
- "e7d4edd8.d7f83",
- "d1ce272a.df817"
+ "711ed4cf.9ec76c",
+ "f25faee.c20865"
]
- ],
- "x": 666,
- "xml": "<block>\n",
- "y": 316,
- "z": "455a25b6.fcbc5c"
+ ]
},
{
- "comments": "",
- "id": "2dcfb067.346e98",
- "name": "set default status value",
+ "id": "9b7242c2.970088",
"type": "set",
- "wires": [],
- "x": 293,
+ "name": "set default status value",
"xml": "<set>\n<parameter name='status.code' value='200' />\n<parameter name='status.message' value='unexpected return from DG' />\n",
- "y": 363,
- "z": "455a25b6.fcbc5c"
+ "comments": "",
+ "x": 276,
+ "y": 319,
+ "z": "e0b620f9.dad4e8",
+ "wires": []
}
]
diff --git a/platform-logic/lcm/src/main/xml/LCM_lock.xml b/platform-logic/lcm/src/main/xml/LCM_lock.xml
new file mode 100644
index 00000000..5cbe621f
--- /dev/null
+++ b/platform-logic/lcm/src/main/xml/LCM_lock.xml
@@ -0,0 +1,53 @@
+<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}'>
+ <method rpc='lock' mode='sync'>
+ <block>
+ <execute plugin='org.onap.ccsdk.sli.plugins.prop.PropertiesNode' method='readProperties' >
+ <parameter name='fileName' value='%SDNC_CONFIG_DIR%/lcm-dg.properties' />
+ <parameter name='contextPrefix' value='prop' />
+ </execute>
+ <set>
+ <parameter name='status.code' value='200' />
+ <parameter name='status.message' value='unexpected return from DG' />
+ </set>
+ <set>
+ <parameter name='lcm-dmaap.version' value='`$prop.lcm.dmaap.version`'/>
+ <parameter name='lcm-dmaap.correlation-id' value="`$lock-input.common-header.request-id + '-' + $lock-input.common-header.sub-request-id`"/>
+ <parameter name='lcm-dmaap.partition' value='`$prop.lcm.dmaap.partition`'/>
+ <parameter name='lcm-dmaap.rpc-name' value='lock'/>
+ <parameter name='lcm-dmaap.type' value='`$prop.lcm.dmaap.type`'/>
+ <parameter name='lcm-dmaap.timestamp' value='`$lock-input.common-header.timestamp`'/>
+ <parameter name='lcm-dmaap.api-ver' value='`$lock-input.common-header.api-ver`'/>
+ <parameter name='lcm-dmaap.originator-id' value='`$lock-input.common-header.originator-id`'/>
+ <parameter name='lcm-dmaap.request-id' value='`$lock-input.common-header.originator-id`'/>
+ <parameter name='lcm-dmaap.sub-request-id' value='`$lock-input.common-header.sub-request-id`'/>
+ <parameter name='lcm-dmaap.flags.mode' value='`$lock-input.common-header.flags.mode`'/>
+ <parameter name='lcm-dmaap.flags.force' value='`$lock-input.common-header.flags.force`'/>
+ <parameter name='lcm-dmaap.flags.ttl' value='`$lock-input.common-header.flags.ttl`'/>
+ <parameter name='lcm-dmaap.status.code' value='400' />
+ <parameter name='lcm-dmaap.status.message' value='SDNC Lock Mock returns success'/>
+ </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`' />
+ <parameter name='restapiUser' value='`$prop.lcm.dmaap.user`' />
+ <parameter name='restapiPassword' value='`$prop.lcm.dmaap.password`' />
+ <parameter name='format' value='json' />
+ <parameter name='httpMethod' value='POST' />
+ <parameter name='contentType' value='application/json' />
+ <parameter name="responsePrefix" value="lcm" />
+ <outcome value='failure'>
+ <record plugin="org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder">
+ <parameter name="logger" value="message-log"/>
+ <parameter name="field1" value='Failed to Publish to DMaap'/>
+ </record>
+ </outcome>
+ </execute>
+ <return status='success'>
+ <parameter name='status.code' value='400' />
+ <parameter name='status.message' value='SDNC Lock Mock returns success'/>
+ </return>
+ </block>
+ </method>
+</service-logic> \ No newline at end of file
diff --git a/platform-logic/lcm/src/main/xml/LCM_quiesce-traffic.xml b/platform-logic/lcm/src/main/xml/LCM_quiesce-traffic.xml
new file mode 100644
index 00000000..172c459c
--- /dev/null
+++ b/platform-logic/lcm/src/main/xml/LCM_quiesce-traffic.xml
@@ -0,0 +1,53 @@
+<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}'>
+ <method rpc='quiesce-traffic' mode='sync'>
+ <block>
+ <execute plugin='org.onap.ccsdk.sli.plugins.prop.PropertiesNode' method='readProperties' >
+ <parameter name='fileName' value='%SDNC_CONFIG_DIR%/lcm-dg.properties' />
+ <parameter name='contextPrefix' value='prop' />
+ </execute>
+ <set>
+ <parameter name='status.code' value='200' />
+ <parameter name='status.message' value='unexpected return from DG' />
+ </set>
+ <set>
+ <parameter name='lcm-dmaap.version' value='`$prop.lcm.dmaap.version`'/>
+ <parameter name='lcm-dmaap.correlation-id' value="`$quiesce-traffic-input.common-header.request-id + '-' + $quiesce-traffic-input.common-header.sub-request-id`"/>
+ <parameter name='lcm-dmaap.partition' value='`$prop.lcm.dmaap.partition`'/>
+ <parameter name='lcm-dmaap.rpc-name' value='quiesce-traffic'/>
+ <parameter name='lcm-dmaap.type' value='`$prop.lcm.dmaap.type`'/>
+ <parameter name='lcm-dmaap.timestamp' value='`$quiesce-traffic-input.common-header.timestamp`'/>
+ <parameter name='lcm-dmaap.api-ver' value='`$quiesce-traffic-input.common-header.api-ver`'/>
+ <parameter name='lcm-dmaap.originator-id' value='`$quiesce-traffic-input.common-header.originator-id`'/>
+ <parameter name='lcm-dmaap.request-id' value='`$quiesce-traffic-input.common-header.originator-id`'/>
+ <parameter name='lcm-dmaap.sub-request-id' value='`$quiesce-traffic-input.common-header.sub-request-id`'/>
+ <parameter name='lcm-dmaap.flags.mode' value='`$quiesce-traffic-input.common-header.flags.mode`'/>
+ <parameter name='lcm-dmaap.flags.force' value='`$quiesce-traffic-input.common-header.flags.force`'/>
+ <parameter name='lcm-dmaap.flags.ttl' value='`$quiesce-traffic-input.common-header.flags.ttl`'/>
+ <parameter name='lcm-dmaap.status.code' value='400' />
+ <parameter name='lcm-dmaap.status.message' value='SDNC Quiesce-Traffic Mock returns success'/>
+ </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`' />
+ <parameter name='restapiUser' value='`$prop.lcm.dmaap.user`' />
+ <parameter name='restapiPassword' value='`$prop.lcm.dmaap.password`' />
+ <parameter name='format' value='json' />
+ <parameter name='httpMethod' value='POST' />
+ <parameter name='contentType' value='application/json' />
+ <parameter name="responsePrefix" value="lcm" />
+ <outcome value='failure'>
+ <record plugin="org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder">
+ <parameter name="logger" value="message-log"/>
+ <parameter name="field1" value='Failed to Publish to DMaap'/>
+ </record>
+ </outcome>
+ </execute>
+ <return status='success'>
+ <parameter name='status.code' value='400' />
+ <parameter name='status.message' value='SDNC Quiesce-Traffic Mock returns success'/>
+ </return>
+ </block>
+ </method>
+</service-logic>
diff --git a/platform-logic/lcm/src/main/xml/LCM_resume-traffic.xml b/platform-logic/lcm/src/main/xml/LCM_resume-traffic.xml
new file mode 100644
index 00000000..6862d598
--- /dev/null
+++ b/platform-logic/lcm/src/main/xml/LCM_resume-traffic.xml
@@ -0,0 +1,53 @@
+<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}'>
+ <method rpc='resume-traffic' mode='sync'>
+ <block>
+ <execute plugin='org.onap.ccsdk.sli.plugins.prop.PropertiesNode' method='readProperties' >
+ <parameter name='fileName' value='%SDNC_CONFIG_DIR%/lcm-dg.properties' />
+ <parameter name='contextPrefix' value='prop' />
+ </execute>
+ <set>
+ <parameter name='status.code' value='200' />
+ <parameter name='status.message' value='unexpected return from DG' />
+ </set>
+ <set>
+ <parameter name='lcm-dmaap.version' value='`$prop.lcm.dmaap.version`'/>
+ <parameter name='lcm-dmaap.correlation-id' value="`$resume-traffic-input.common-header.request-id + '-' + $resume-traffic-input.common-header.sub-request-id`"/>
+ <parameter name='lcm-dmaap.partition' value='`$prop.lcm.dmaap.partition`'/>
+ <parameter name='lcm-dmaap.rpc-name' value='resume-traffic'/>
+ <parameter name='lcm-dmaap.type' value='`$prop.lcm.dmaap.type`'/>
+ <parameter name='lcm-dmaap.timestamp' value='`$resume-traffic-input.common-header.timestamp`'/>
+ <parameter name='lcm-dmaap.api-ver' value='`$resume-traffic-input.common-header.api-ver`'/>
+ <parameter name='lcm-dmaap.originator-id' value='`$resume-traffic-input.common-header.originator-id`'/>
+ <parameter name='lcm-dmaap.request-id' value='`$resume-traffic-input.common-header.originator-id`'/>
+ <parameter name='lcm-dmaap.sub-request-id' value='`$resume-traffic-input.common-header.sub-request-id`'/>
+ <parameter name='lcm-dmaap.flags.mode' value='`$resume-traffic-input.common-header.flags.mode`'/>
+ <parameter name='lcm-dmaap.flags.force' value='`$resume-traffic-input.common-header.flags.force`'/>
+ <parameter name='lcm-dmaap.flags.ttl' value='`$resume-traffic-input.common-header.flags.ttl`'/>
+ <parameter name='lcm-dmaap.status.code' value='400' />
+ <parameter name='lcm-dmaap.status.message' value='SDNC resume-traffic Mock returns success'/>
+ </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`' />
+ <parameter name='restapiUser' value='`$prop.lcm.dmaap.user`' />
+ <parameter name='restapiPassword' value='`$prop.lcm.dmaap.password`' />
+ <parameter name='format' value='json' />
+ <parameter name='httpMethod' value='POST' />
+ <parameter name='contentType' value='application/json' />
+ <parameter name="responsePrefix" value="lcm" />
+ <outcome value='failure'>
+ <record plugin="org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder">
+ <parameter name="logger" value="message-log"/>
+ <parameter name="field1" value='Failed to Publish to DMaap'/>
+ </record>
+ </outcome>
+ </execute>
+ <return status='success'>
+ <parameter name='status.code' value='400' />
+ <parameter name='status.message' value='SDNC resume-traffic Mock returns success'/>
+ </return>
+ </block>
+ </method>
+</service-logic>
diff --git a/platform-logic/lcm/src/main/xml/LCM_snapshot.xml b/platform-logic/lcm/src/main/xml/LCM_snapshot.xml
new file mode 100644
index 00000000..4284f404
--- /dev/null
+++ b/platform-logic/lcm/src/main/xml/LCM_snapshot.xml
@@ -0,0 +1,53 @@
+<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}'>
+ <method rpc='snapshot' mode='sync'>
+ <block>
+ <execute plugin='org.onap.ccsdk.sli.plugins.prop.PropertiesNode' method='readProperties' >
+ <parameter name='fileName' value='%SDNC_CONFIG_DIR%/lcm-dg.properties' />
+ <parameter name='contextPrefix' value='prop' />
+ </execute>
+ <set>
+ <parameter name='status.code' value='200' />
+ <parameter name='status.message' value='unexpected return from DG' />
+ </set>
+ <set>
+ <parameter name='lcm-dmaap.version' value='`$prop.lcm.dmaap.version`'/>
+ <parameter name='lcm-dmaap.correlation-id' value="`$snapshot-input.common-header.request-id + '-' + $snapshot-input.common-header.sub-request-id`"/>
+ <parameter name='lcm-dmaap.partition' value='`$prop.lcm.dmaap.partition`'/>
+ <parameter name='lcm-dmaap.rpc-name' value='snapshot'/>
+ <parameter name='lcm-dmaap.type' value='`$prop.lcm.dmaap.type`'/>
+ <parameter name='lcm-dmaap.timestamp' value='`$snapshot-input.common-header.timestamp`'/>
+ <parameter name='lcm-dmaap.api-ver' value='`$snapshot-input.common-header.api-ver`'/>
+ <parameter name='lcm-dmaap.originator-id' value='`$snapshot-input.common-header.originator-id`'/>
+ <parameter name='lcm-dmaap.request-id' value='`$snapshot-input.common-header.originator-id`'/>
+ <parameter name='lcm-dmaap.sub-request-id' value='`$snapshot-input.common-header.sub-request-id`'/>
+ <parameter name='lcm-dmaap.flags.mode' value='`$snapshot-input.common-header.flags.mode`'/>
+ <parameter name='lcm-dmaap.flags.force' value='`$snapshot-input.common-header.flags.force`'/>
+ <parameter name='lcm-dmaap.flags.ttl' value='`$snapshot-input.common-header.flags.ttl`'/>
+ <parameter name='lcm-dmaap.status.code' value='400' />
+ <parameter name='lcm-dmaap.status.message' value='SDNC Snapshot Mock returns success'/>
+ </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`' />
+ <parameter name='restapiUser' value='`$prop.lcm.dmaap.user`' />
+ <parameter name='restapiPassword' value='`$prop.lcm.dmaap.password`' />
+ <parameter name='format' value='json' />
+ <parameter name='httpMethod' value='POST' />
+ <parameter name='contentType' value='application/json' />
+ <parameter name="responsePrefix" value="lcm" />
+ <outcome value='failure'>
+ <record plugin="org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder">
+ <parameter name="logger" value="message-log"/>
+ <parameter name="field1" value='Failed to Publish to DMaap'/>
+ </record>
+ </outcome>
+ </execute>
+ <return status='success'>
+ <parameter name='status.code' value='400' />
+ <parameter name='status.message' value='SDNC Snapshot Mock returns success'/>
+ </return>
+ </block>
+ </method>
+</service-logic>
diff --git a/platform-logic/lcm/src/main/xml/LCM_unlock.xml b/platform-logic/lcm/src/main/xml/LCM_unlock.xml
new file mode 100644
index 00000000..37c36a07
--- /dev/null
+++ b/platform-logic/lcm/src/main/xml/LCM_unlock.xml
@@ -0,0 +1,53 @@
+<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}'>
+ <method rpc='unlock' mode='sync'>
+ <block>
+ <execute plugin='org.onap.ccsdk.sli.plugins.prop.PropertiesNode' method='readProperties' >
+ <parameter name='fileName' value='%SDNC_CONFIG_DIR%/lcm-dg.properties' />
+ <parameter name='contextPrefix' value='prop' />
+ </execute>
+ <set>
+ <parameter name='status.code' value='200' />
+ <parameter name='status.message' value='unexpected return from DG' />
+ </set>
+ <set>
+ <parameter name='lcm-dmaap.version' value='`$prop.lcm.dmaap.version`'/>
+ <parameter name='lcm-dmaap.correlation-id' value="`$unlock-input.common-header.request-id + '-' + $unlock-input.common-header.sub-request-id`"/>
+ <parameter name='lcm-dmaap.partition' value='`$prop.lcm.dmaap.partition`'/>
+ <parameter name='lcm-dmaap.rpc-name' value='unlock'/>
+ <parameter name='lcm-dmaap.type' value='`$prop.lcm.dmaap.type`'/>
+ <parameter name='lcm-dmaap.timestamp' value='`$unlock-input.common-header.timestamp`'/>
+ <parameter name='lcm-dmaap.api-ver' value='`$unlock-input.common-header.api-ver`'/>
+ <parameter name='lcm-dmaap.originator-id' value='`$unlock-input.common-header.originator-id`'/>
+ <parameter name='lcm-dmaap.request-id' value='`$unlock-input.common-header.originator-id`'/>
+ <parameter name='lcm-dmaap.sub-request-id' value='`$unlock-input.common-header.sub-request-id`'/>
+ <parameter name='lcm-dmaap.flags.mode' value='`$unlock-input.common-header.flags.mode`'/>
+ <parameter name='lcm-dmaap.flags.force' value='`$unlock-input.common-header.flags.force`'/>
+ <parameter name='lcm-dmaap.flags.ttl' value='`$unlock-input.common-header.flags.ttl`'/>
+ <parameter name='lcm-dmaap.status.code' value='400' />
+ <parameter name='lcm-dmaap.status.message' value='SDNC UnLock Mock returns success'/>
+ </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`' />
+ <parameter name='restapiUser' value='`$prop.lcm.dmaap.user`' />
+ <parameter name='restapiPassword' value='`$prop.lcm.dmaap.password`' />
+ <parameter name='format' value='json' />
+ <parameter name='httpMethod' value='POST' />
+ <parameter name='contentType' value='application/json' />
+ <parameter name="responsePrefix" value="lcm" />
+ <outcome value='failure'>
+ <record plugin="org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder">
+ <parameter name="logger" value="message-log"/>
+ <parameter name="field1" value='Failed to Publish to DMaap'/>
+ </record>
+ </outcome>
+ </execute>
+ <return status='success'>
+ <parameter name='status.code' value='400' />
+ <parameter name='status.message' value='SDNC UnLock Mock returns success'/>
+ </return>
+ </block>
+ </method>
+</service-logic>
diff --git a/platform-logic/lcm/src/main/xml/LCM_upgrade-backup.xml b/platform-logic/lcm/src/main/xml/LCM_upgrade-backup.xml
new file mode 100644
index 00000000..4b9ef5cd
--- /dev/null
+++ b/platform-logic/lcm/src/main/xml/LCM_upgrade-backup.xml
@@ -0,0 +1,53 @@
+<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}'>
+ <method rpc='upgrade-backup' mode='sync'>
+ <block>
+ <execute plugin='org.onap.ccsdk.sli.plugins.prop.PropertiesNode' method='readProperties' >
+ <parameter name='fileName' value='%SDNC_CONFIG_DIR%/lcm-dg.properties' />
+ <parameter name='contextPrefix' value='prop' />
+ </execute>
+ <set>
+ <parameter name='status.code' value='200' />
+ <parameter name='status.message' value='unexpected return from DG' />
+ </set>
+ <set>
+ <parameter name='lcm-dmaap.version' value='`$prop.lcm.dmaap.version`'/>
+ <parameter name='lcm-dmaap.correlation-id' value="`$upgrade-backup-input.common-header.request-id + '-' + $upgrade-backup-input.common-header.sub-request-id`"/>
+ <parameter name='lcm-dmaap.partition' value='`$prop.lcm.dmaap.partition`'/>
+ <parameter name='lcm-dmaap.rpc-name' value='upgrade-backup'/>
+ <parameter name='lcm-dmaap.type' value='`$prop.lcm.dmaap.type`'/>
+ <parameter name='lcm-dmaap.timestamp' value='`$upgrade-backup-input.common-header.timestamp`'/>
+ <parameter name='lcm-dmaap.api-ver' value='`$upgrade-backup-input.common-header.api-ver`'/>
+ <parameter name='lcm-dmaap.originator-id' value='`$upgrade-backup-input.common-header.originator-id`'/>
+ <parameter name='lcm-dmaap.request-id' value='`$upgrade-backup-input.common-header.originator-id`'/>
+ <parameter name='lcm-dmaap.sub-request-id' value='`$upgrade-backup-input.common-header.sub-request-id`'/>
+ <parameter name='lcm-dmaap.flags.mode' value='`$upgrade-backup-input.common-header.flags.mode`'/>
+ <parameter name='lcm-dmaap.flags.force' value='`$upgrade-backup-input.common-header.flags.force`'/>
+ <parameter name='lcm-dmaap.flags.ttl' value='`$upgrade-backup-input.common-header.flags.ttl`'/>
+ <parameter name='lcm-dmaap.status.code' value='400' />
+ <parameter name='lcm-dmaap.status.message' value='SDNC Lock Mock returns success'/>
+ </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`' />
+ <parameter name='restapiUser' value='`$prop.lcm.dmaap.user`' />
+ <parameter name='restapiPassword' value='`$prop.lcm.dmaap.password`' />
+ <parameter name='format' value='json' />
+ <parameter name='httpMethod' value='POST' />
+ <parameter name='contentType' value='application/json' />
+ <parameter name="responsePrefix" value="lcm" />
+ <outcome value='failure'>
+ <record plugin="org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder">
+ <parameter name="logger" value="message-log"/>
+ <parameter name="field1" value='Failed to Publish to DMaap'/>
+ </record>
+ </outcome>
+ </execute>
+ <return status='success'>
+ <parameter name='status.code' value='400' />
+ <parameter name='status.message' value='SDNC Lock Mock returns success'/>
+ </return>
+ </block>
+ </method>
+</service-logic>
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 91c63c95..7ba3e461 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
@@ -1,480 +1,293 @@
-<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}'>
- <method rpc='upgrade-post-check' mode='sync'>
- <block>
- <execute
- plugin='org.onap.ccsdk.sli.plugins.prop.PropertiesNode'
- method='readProperties'>
- <parameter name='fileName'
- value='%SDNC_CONFIG_DIR%/lcm-dg.properties' />
- <parameter name='contextPrefix' value='prop' />
- </execute>
- <set>
- <parameter name='status.code' value='200' />
- <parameter name='status.message'
- value='unexpected return from DG' />
- </set>
- <execute
- plugin='org.onap.ccsdk.sli.adaptors.ansible.AnsibleAdapter'
- method='reqExec'>
- <parameter name='AgentUrl'
- value='`$prop.ansible.agenturl`' />
- <parameter name='User' value='`$prop.ansible.user`' />
- <parameter name='Password' value='`prop.ansible.password`' />
- <parameter name='LocalParameters'
- value='`$prop.ansible.lcm.localparameters`' />
- <parameter name='EnvParameters'
- value='`$upgrade-post-check-input.payload`' />
- <parameter name='NodeList'
- value='`$prop.ansible.nodelist`' />
- <parameter name='Timeout' value='`$prop.ansible.timeout`' />
- <parameter name='Version' value='`$prop.ansible.version`' />
- <parameter name='Id'
- value='`$upgrade-post-check-input.common-header.request-id`' />
- <parameter name='PlaybookName'
- value='`$prop.lcm.upgrade-post-check.playbookname`' />
- <outcome value='not-found'>
- <block>
- <set>
- <parameter
- name='$org.onap.appc.adapter.ansible.result.code' value='401' />
- <parameter name='org.onap.appc.adapter.ansible.message'
- value='Ansible Adapter was not found' />
- </set>
- <block>
- <set>
- <parameter name='lcm-dmaap.version'
- value='`$prop.lcm.dmaap.version`' />
- <parameter name='lcm-dmaap.correlation-id'
- value='`$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.originator-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.payload'
- value='`$org.onap.appc.adapter.ansible.results`' />
- <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`' />
- <parameter name='restapiUser'
- value='`$prop.lcm.dmaap.user`' />
- <parameter name='restapiPassword'
- value='`$prop.lcm.dmaap.password`' />
- <parameter name='format' value='json' />
- <parameter name='httpMethod' value='POST' />
- <parameter name='contentType' value='application/json' />
- <parameter name="responsePrefix" value="lcm" />
- <outcome value='failure'>
- <record
- plugin="org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder">
- <parameter name="logger" value="message-log" />
- <parameter name="field1"
- value='Failed to Publish to DMaap' />
- </record>
- </outcome>
- </execute>
- <return status='failure'>
- <parameter name='status.code' value='401' />
- <parameter name='status.message'
- value='`$org.onap.appc.adapter.ansible.message`' />
- </return>
- </block>
- </block>
- </outcome>
- <outcome value='failure'>
- <block>
- <set>
- <parameter name='lcm-dmaap.version'
- value='`$prop.lcm.dmaap.version`' />
- <parameter name='lcm-dmaap.correlation-id'
- value='`$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.originator-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.payload'
- value='`$org.onap.appc.adapter.ansible.results`' />
- <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`' />
- <parameter name='restapiUser'
- value='`$prop.lcm.dmaap.user`' />
- <parameter name='restapiPassword'
- value='`$prop.lcm.dmaap.password`' />
- <parameter name='format' value='json' />
- <parameter name='httpMethod' value='POST' />
- <parameter name='contentType' value='application/json' />
- <parameter name="responsePrefix" value="lcm" />
- <outcome value='failure'>
- <record
- plugin="org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder">
- <parameter name="logger" value="message-log" />
- <parameter name="field1"
- value='Failed to Publish to DMaap' />
- </record>
- </outcome>
- </execute>
- <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='Other'>
- <switch test="`$org.onap.appc.adapter.ansible.result.code`">
- <outcome value='101'>
- <block>
- <set>
- <parameter name='lcm-dmaap.version'
- value='`$prop.lcm.dmaap.version`' />
- <parameter name='lcm-dmaap.correlation-id'
- value='`$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.originator-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.payload'
- value='`$org.onap.appc.adapter.ansible.results`' />
- <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`' />
- <parameter name='restapiUser'
- value='`$prop.lcm.dmaap.user`' />
- <parameter name='restapiPassword'
- value='`$prop.lcm.dmaap.password`' />
- <parameter name='format' value='json' />
- <parameter name='httpMethod' value='POST' />
- <parameter name='contentType'
- value='application/json' />
- <parameter name="responsePrefix" value="lcm" />
- <outcome value='failure'>
- <record
- plugin="org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder">
- <parameter name="logger" value="message-log" />
- <parameter name="field1"
- value='Failed to Publish to DMaap' />
- </record>
- </outcome>
- </execute>
- <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='500'>
- <block>
- <set>
- <parameter name='lcm-dmaap.version'
- value='`$prop.lcm.dmaap.version`' />
- <parameter name='lcm-dmaap.correlation-id'
- value='`$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.originator-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.payload'
- value='`$org.onap.appc.adapter.ansible.results`' />
- <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`' />
- <parameter name='restapiUser'
- value='`$prop.lcm.dmaap.user`' />
- <parameter name='restapiPassword'
- value='`$prop.lcm.dmaap.password`' />
- <parameter name='format' value='json' />
- <parameter name='httpMethod' value='POST' />
- <parameter name='contentType'
- value='application/json' />
- <parameter name="responsePrefix" value="lcm" />
- <outcome value='failure'>
- <record
- plugin="org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder">
- <parameter name="logger" value="message-log" />
- <parameter name="field1"
- value='Failed to Publish to DMaap' />
- </record>
- </outcome>
- </execute>
- <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='100'>
- <execute
- plugin='org.onap.ccsdk.sli.adaptors.ansible.AnsibleAdapter'
- method='reqExecResult'>
- <parameter name='AgentUrl'
- value='`$prop.ansible.agenturl`' />
- <parameter name='User' value='`$prop.ansible.user`' />
- <parameter name='Password'
- value='`$prop.ansible.password`' />
- <parameter name='Id'
- value='`$org.onap.appc.adapter.ansible.Id`' />
- <parameter name='PlaybookName'
- value='`$prop.lcm.upgrade-post-check.playbookname`' />
-
-
-
-
-
- <outcome value='failure'>
- <block>
- <set>
- <parameter name='lcm-dmaap.version'
- value='`$prop.lcm.dmaap.version`' />
- <parameter name='lcm-dmaap.correlation-id'
- value='`$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.originator-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.payload'
- value='`$org.onap.appc.adapter.ansible.results`' />
- <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`' />
- <parameter name='restapiUser'
- value='`$prop.lcm.dmaap.user`' />
- <parameter name='restapiPassword'
- value='`$prop.lcm.dmaap.password`' />
- <parameter name='format' value='json' />
- <parameter name='httpMethod' value='POST' />
- <parameter name='contentType'
- value='application/json' />
- <parameter name="responsePrefix" value="lcm" />
- <outcome value='failure'>
- <record
- plugin="org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder">
- <parameter name="logger" value="message-log" />
- <parameter name="field1"
- value='Failed to Publish to DMaap' />
- </record>
- </outcome>
- </execute>
- <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>
- <set>
- <parameter name='lcm-dmaap.version'
- value='`$prop.lcm.dmaap.version`' />
- <parameter name='lcm-dmaap.correlation-id'
- value='`$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.originator-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.payload'
- value='`$org.onap.appc.adapter.ansible.results`' />
- <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`' />
- <parameter name='restapiUser'
- value='`$prop.lcm.dmaap.user`' />
- <parameter name='restapiPassword'
- value='`$prop.lcm.dmaap.password`' />
- <parameter name='format' value='json' />
- <parameter name='httpMethod' value='POST' />
- <parameter name='contentType'
- value='application/json' />
- <parameter name="responsePrefix" value="lcm" />
- <outcome value='failure'>
- <record
- plugin="org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder">
- <parameter name="logger" value="message-log" />
- <parameter name="field1"
- value='Failed to Publish to DMaap' />
- </record>
- </outcome>
- </execute>
- <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>
- </outcome>
- </switch>
- </outcome>
- </execute>
- </block>
- </method>
-</service-logic> \ No newline at end of file
+<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}'>
+ <method rpc='upgrade-post-check' mode='sync'>
+ <block>
+ <execute plugin='org.onap.ccsdk.sli.plugins.prop.PropertiesNode' method='readProperties' >
+ <parameter name='fileName' value='%SDNC_CONFIG_DIR%/lcm-dg.properties' />
+ <parameter name='contextPrefix' value='prop' />
+ </execute>
+ <set>
+ <parameter name='status.code' value='200' />
+ <parameter name='status.message' value='unexpected return from DG' />
+ </set>
+ <execute plugin='org.onap.ccsdk.sli.adaptors.ansible.AnsibleAdapter' method='reqExec' >
+ <parameter name='AgentUrl' value='`$prop.ansible.agenturl`'/>
+ <parameter name='User' value='`$prop.ansible.user`'/>
+ <parameter name='Password' value='`prop.ansible.password`'/>
+ <parameter name='LocalParameters' value='`$prop.ansible.lcm.localparameters`'/>
+ <parameter name='EnvParameters' value='`$upgrade-post-check-input.payload`'/>
+ <parameter name='NodeList' value='`$prop.ansible.nodelist`'/>
+ <parameter name='Timeout' value='`$prop.ansible.timeout`'/>
+ <parameter name='Version' value='`$prop.ansible.version`'/>
+ <parameter name='Id' value='`$upgrade-post-check-input.common-header.request-id`'/>
+ <parameter name='PlaybookName' value='`$prop.lcm.upgrade-post-check.playbookname`'/>
+ <outcome value='not-found'>
+ <block>
+ <set>
+ <parameter name='$org.onap.appc.adapter.ansible.result.code' value='401'/>
+ <parameter name='org.onap.appc.adapter.ansible.message' value='Ansible Adapter was not found'/>
+ </set>
+ <block>
+ <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`' />
+ <parameter name='restapiUser' value='`$prop.lcm.dmaap.user`' />
+ <parameter name='restapiPassword' value='`$prop.lcm.dmaap.password`' />
+ <parameter name='format' value='json' />
+ <parameter name='httpMethod' value='POST' />
+ <parameter name='contentType' value='application/json' />
+ <parameter name="responsePrefix" value="lcm" />
+ <outcome value='failure'>
+ <record plugin="org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder">
+ <parameter name="logger" value="message-log"/>
+ <parameter name="field1" value='Failed to Publish to DMaap'/>
+ </record>
+ </outcome>
+ </execute>
+ <return status='failure'>
+ <parameter name='status.code' value='401' />
+ <parameter name='status.message' value='`$org.onap.appc.adapter.ansible.message`' />
+ </return>
+ </block>
+ </block>
+ </outcome>
+ <outcome value='failure'>
+ <block>
+ <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`' />
+ <parameter name='restapiUser' value='`$prop.lcm.dmaap.user`' />
+ <parameter name='restapiPassword' value='`$prop.lcm.dmaap.password`' />
+ <parameter name='format' value='json' />
+ <parameter name='httpMethod' value='POST' />
+ <parameter name='contentType' value='application/json' />
+ <parameter name="responsePrefix" value="lcm" />
+ <outcome value='failure'>
+ <record plugin="org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder">
+ <parameter name="logger" value="message-log"/>
+ <parameter name="field1" value='Failed to Publish to DMaap'/>
+ </record>
+ </outcome>
+ </execute>
+ <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='Other'>
+ <switch test="`$org.onap.appc.adapter.ansible.result.code`">
+ <outcome value='101'>
+ <block>
+ <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`' />
+ <parameter name='restapiUser' value='`$prop.lcm.dmaap.user`' />
+ <parameter name='restapiPassword' value='`$prop.lcm.dmaap.password`' />
+ <parameter name='format' value='json' />
+ <parameter name='httpMethod' value='POST' />
+ <parameter name='contentType' value='application/json' />
+ <parameter name="responsePrefix" value="lcm" />
+ <outcome value='failure'>
+ <record plugin="org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder">
+ <parameter name="logger" value="message-log"/>
+ <parameter name="field1" value='Failed to Publish to DMaap'/>
+ </record>
+ </outcome>
+ </execute>
+ <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='500'>
+ <block>
+ <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`' />
+ <parameter name='restapiUser' value='`$prop.lcm.dmaap.user`' />
+ <parameter name='restapiPassword' value='`$prop.lcm.dmaap.password`' />
+ <parameter name='format' value='json' />
+ <parameter name='httpMethod' value='POST' />
+ <parameter name='contentType' value='application/json' />
+ <parameter name="responsePrefix" value="lcm" />
+ <outcome value='failure'>
+ <record plugin="org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder">
+ <parameter name="logger" value="message-log"/>
+ <parameter name="field1" value='Failed to Publish to DMaap'/>
+ </record>
+ </outcome>
+ </execute>
+ <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='100'>
+ <execute plugin='org.onap.ccsdk.sli.adaptors.ansible.AnsibleAdapter' method='reqExecResult' >
+ <parameter name='AgentUrl' value='`$prop.ansible.agenturl`'/>
+ <parameter name='User' value='`$prop.ansible.user`'/>
+ <parameter name='Password' value='`$prop.ansible.password`'/>
+ <parameter name='Id' value='`$org.onap.appc.adapter.ansible.Id`'/>
+ <parameter name='PlaybookName' value='`$prop.lcm.upgrade-post-check.playbookname`'/>
+ <outcome value='failure'>
+ <block>
+ <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`' />
+ <parameter name='restapiUser' value='`$prop.lcm.dmaap.user`' />
+ <parameter name='restapiPassword' value='`$prop.lcm.dmaap.password`' />
+ <parameter name='format' value='json' />
+ <parameter name='httpMethod' value='POST' />
+ <parameter name='contentType' value='application/json' />
+ <parameter name="responsePrefix" value="lcm" />
+ <outcome value='failure'>
+ <record plugin="org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder">
+ <parameter name="logger" value="message-log"/>
+ <parameter name="field1" value='Failed to Publish to DMaap'/>
+ </record>
+ </outcome>
+ </execute>
+ <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>
+ <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`' />
+ <parameter name='restapiUser' value='`$prop.lcm.dmaap.user`' />
+ <parameter name='restapiPassword' value='`$prop.lcm.dmaap.password`' />
+ <parameter name='format' value='json' />
+ <parameter name='httpMethod' value='POST' />
+ <parameter name='contentType' value='application/json' />
+ <parameter name="responsePrefix" value="lcm" />
+ <outcome value='failure'>
+ <record plugin="org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder">
+ <parameter name="logger" value="message-log"/>
+ <parameter name="field1" value='Failed to Publish to DMaap'/>
+ </record>
+ </outcome>
+ </execute>
+ <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>
+ </outcome>
+ </switch>
+ </outcome>
+ </execute>
+ </block>
+ </method>
+</service-logic>
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 ee3bbc9d..b10eff76 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
@@ -1,480 +1,293 @@
-<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}'>
- <method rpc='upgrade-pre-check' mode='sync'>
- <block>
- <execute
- plugin='org.onap.ccsdk.sli.plugins.prop.PropertiesNode'
- method='readProperties'>
- <parameter name='fileName'
- value='%SDNC_CONFIG_DIR%/lcm-dg.properties' />
- <parameter name='contextPrefix' value='prop' />
- </execute>
- <set>
- <parameter name='status.code' value='200' />
- <parameter name='status.message'
- value='unexpected return from DG' />
- </set>
- <execute
- plugin='org.onap.ccsdk.sli.adaptors.ansible.AnsibleAdapter'
- method='reqExec'>
- <parameter name='AgentUrl'
- value='`$prop.ansible.agenturl`' />
- <parameter name='User' value='`$prop.ansible.user`' />
- <parameter name='Password' value='`prop.ansible.password`' />
- <parameter name='LocalParameters'
- value='`$prop.ansible.lcm.localparameters`' />
- <parameter name='EnvParameters'
- value='`$upgrade-pre-check-input.payload`' />
- <parameter name='NodeList'
- value='`$prop.ansible.nodelist`' />
- <parameter name='Timeout' value='`$prop.ansible.timeout`' />
- <parameter name='Version' value='`$prop.ansible.version`' />
- <parameter name='Id'
- value='`$upgrade-pre-check-input.common-header.request-id`' />
- <parameter name='PlaybookName'
- value='`$prop.lcm.upgrade-pre-check.playbookname`' />
- <outcome value='not-found'>
- <block>
- <set>
- <parameter
- name='org.onap.appc.adapter.ansible.result.code' value='401' />
- <parameter name='org.onap.appc.adapter.ansible.message'
- value='Ansible Adapter was not found' />
- </set>
- <block>
- <set>
- <parameter name='lcm-dmaap.version'
- value='`$prop.lcm.dmaap.version`' />
- <parameter name='lcm-dmaap.correlation-id'
- value='`$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.originator-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.payload'
- value='`$org.onap.appc.adapter.ansible.results`' />
- <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`' />
- <parameter name='restapiUser'
- value='`$prop.lcm.dmaap.user`' />
- <parameter name='restapiPassword'
- value='`$prop.lcm.dmaap.password`' />
- <parameter name='format' value='json' />
- <parameter name='httpMethod' value='POST' />
- <parameter name='contentType' value='application/json' />
- <parameter name="responsePrefix" value="lcm" />
- <outcome value='failure'>
- <record
- plugin="org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder">
- <parameter name="logger" value="message-log" />
- <parameter name="field1"
- value='Failed to Publish to DMaap' />
- </record>
- </outcome>
- </execute>
- <return status='failure'>
- <parameter name='status.code' value='401' />
- <parameter name='status.message'
- value='`$org.onap.appc.adapter.ansible.message`' />
- </return>
- </block>
- </block>
- </outcome>
- <outcome value='failure'>
- <block>
- <set>
- <parameter name='lcm-dmaap.version'
- value='`$prop.lcm.dmaap.version`' />
- <parameter name='lcm-dmaap.correlation-id'
- value='`$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.originator-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.payload'
- value='`$org.onap.appc.adapter.ansible.results`' />
- <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`' />
- <parameter name='restapiUser'
- value='`$prop.lcm.dmaap.user`' />
- <parameter name='restapiPassword'
- value='`$prop.lcm.dmaap.password`' />
- <parameter name='format' value='json' />
- <parameter name='httpMethod' value='POST' />
- <parameter name='contentType' value='application/json' />
- <parameter name="responsePrefix" value="lcm" />
- <outcome value='failure'>
- <record
- plugin="org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder">
- <parameter name="logger" value="message-log" />
- <parameter name="field1"
- value='Failed to Publish to DMaap' />
- </record>
- </outcome>
- </execute>
- <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='Other'>
- <switch test="`$org.onap.appc.adapter.ansible.result.code`">
- <outcome value='101'>
- <block>
- <set>
- <parameter name='lcm-dmaap.version'
- value='`$prop.lcm.dmaap.version`' />
- <parameter name='lcm-dmaap.correlation-id'
- value='`$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.originator-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.payload'
- value='`$org.onap.appc.adapter.ansible.results`' />
- <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`' />
- <parameter name='restapiUser'
- value='`$prop.lcm.dmaap.user`' />
- <parameter name='restapiPassword'
- value='`$prop.lcm.dmaap.password`' />
- <parameter name='format' value='json' />
- <parameter name='httpMethod' value='POST' />
- <parameter name='contentType'
- value='application/json' />
- <parameter name="responsePrefix" value="lcm" />
- <outcome value='failure'>
- <record
- plugin="org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder">
- <parameter name="logger" value="message-log" />
- <parameter name="field1"
- value='Failed to Publish to DMaap' />
- </record>
- </outcome>
- </execute>
- <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='500'>
- <block>
- <set>
- <parameter name='lcm-dmaap.version'
- value='`$prop.lcm.dmaap.version`' />
- <parameter name='lcm-dmaap.correlation-id'
- value='`$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.originator-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.payload'
- value='`$org.onap.appc.adapter.ansible.results`' />
- <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`' />
- <parameter name='restapiUser'
- value='`$prop.lcm.dmaap.user`' />
- <parameter name='restapiPassword'
- value='`$prop.lcm.dmaap.password`' />
- <parameter name='format' value='json' />
- <parameter name='httpMethod' value='POST' />
- <parameter name='contentType'
- value='application/json' />
- <parameter name="responsePrefix" value="lcm" />
- <outcome value='failure'>
- <record
- plugin="org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder">
- <parameter name="logger" value="message-log" />
- <parameter name="field1"
- value='Failed to Publish to DMaap' />
- </record>
- </outcome>
- </execute>
- <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='100'>
- <execute
- plugin='org.onap.ccsdk.sli.adaptors.ansible.AnsibleAdapter'
- method='reqExecResult'>
- <parameter name='AgentUrl'
- value='`$prop.ansible.agenturl`' />
- <parameter name='User' value='`$prop.ansible.user`' />
- <parameter name='Password'
- value='`$prop.ansible.password`' />
- <parameter name='Id'
- value='`$org.onap.appc.adapter.ansible.Id`' />
- <parameter name='PlaybookName'
- value='`$prop.lcm.upgrade-pre-check.playbookname`' />
-
-
-
-
-
- <outcome value='failure'>
- <block>
- <set>
- <parameter name='lcm-dmaap.version'
- value='`$prop.lcm.dmaap.version`' />
- <parameter name='lcm-dmaap.correlation-id'
- value='`$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.originator-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.payload'
- value='`$org.onap.appc.adapter.ansible.results`' />
- <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`' />
- <parameter name='restapiUser'
- value='`$prop.lcm.dmaap.user`' />
- <parameter name='restapiPassword'
- value='`$prop.lcm.dmaap.password`' />
- <parameter name='format' value='json' />
- <parameter name='httpMethod' value='POST' />
- <parameter name='contentType'
- value='application/json' />
- <parameter name="responsePrefix" value="lcm" />
- <outcome value='failure'>
- <record
- plugin="org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder">
- <parameter name="logger" value="message-log" />
- <parameter name="field1"
- value='Failed to Publish to DMaap' />
- </record>
- </outcome>
- </execute>
- <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>
- <set>
- <parameter name='lcm-dmaap.version'
- value='`$prop.lcm.dmaap.version`' />
- <parameter name='lcm-dmaap.correlation-id'
- value='`$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.originator-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.payload'
- value='`$org.onap.appc.adapter.ansible.results`' />
- <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`' />
- <parameter name='restapiUser'
- value='`$prop.lcm.dmaap.user`' />
- <parameter name='restapiPassword'
- value='`$prop.lcm.dmaap.password`' />
- <parameter name='format' value='json' />
- <parameter name='httpMethod' value='POST' />
- <parameter name='contentType'
- value='application/json' />
- <parameter name="responsePrefix" value="lcm" />
- <outcome value='failure'>
- <record
- plugin="org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder">
- <parameter name="logger" value="message-log" />
- <parameter name="field1"
- value='Failed to Publish to DMaap' />
- </record>
- </outcome>
- </execute>
- <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>
- </outcome>
- </switch>
- </outcome>
- </execute>
- </block>
- </method>
-</service-logic> \ No newline at end of file
+<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}'>
+ <method rpc='upgrade-pre-check' mode='sync'>
+ <block>
+ <execute plugin='org.onap.ccsdk.sli.plugins.prop.PropertiesNode' method='readProperties' >
+ <parameter name='fileName' value='%SDNC_CONFIG_DIR%/lcm-dg.properties' />
+ <parameter name='contextPrefix' value='prop' />
+ </execute>
+ <set>
+ <parameter name='status.code' value='200' />
+ <parameter name='status.message' value='unexpected return from DG' />
+ </set>
+ <execute plugin='org.onap.ccsdk.sli.adaptors.ansible.AnsibleAdapter' method='reqExec' >
+ <parameter name='AgentUrl' value='`$prop.ansible.agenturl`'/>
+ <parameter name='User' value='`$prop.ansible.user`'/>
+ <parameter name='Password' value='`prop.ansible.password`'/>
+ <parameter name='LocalParameters' value='`$prop.ansible.lcm.localparameters`'/>
+ <parameter name='EnvParameters' value='`$upgrade-pre-check-input.payload`'/>
+ <parameter name='NodeList' value='`$prop.ansible.nodelist`'/>
+ <parameter name='Timeout' value='`$prop.ansible.timeout`'/>
+ <parameter name='Version' value='`$prop.ansible.version`'/>
+ <parameter name='Id' value='`$upgrade-pre-check-input.common-header.request-id`'/>
+ <parameter name='PlaybookName' value='`$prop.lcm.upgrade-pre-check.playbookname`'/>
+ <outcome value='not-found'>
+ <block>
+ <set>
+ <parameter name='org.onap.appc.adapter.ansible.result.code' value='401'/>
+ <parameter name='org.onap.appc.adapter.ansible.message' value='Ansible Adapter was not found'/>
+ </set>
+ <block>
+ <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`' />
+ <parameter name='restapiUser' value='`$prop.lcm.dmaap.user`' />
+ <parameter name='restapiPassword' value='`$prop.lcm.dmaap.password`' />
+ <parameter name='format' value='json' />
+ <parameter name='httpMethod' value='POST' />
+ <parameter name='contentType' value='application/json' />
+ <parameter name="responsePrefix" value="lcm" />
+ <outcome value='failure'>
+ <record plugin="org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder">
+ <parameter name="logger" value="message-log"/>
+ <parameter name="field1" value='Failed to Publish to DMaap'/>
+ </record>
+ </outcome>
+ </execute>
+ <return status='failure'>
+ <parameter name='status.code' value='401' />
+ <parameter name='status.message' value='`$org.onap.appc.adapter.ansible.message`' />
+ </return>
+ </block>
+ </block>
+ </outcome>
+ <outcome value='failure'>
+ <block>
+ <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`' />
+ <parameter name='restapiUser' value='`$prop.lcm.dmaap.user`' />
+ <parameter name='restapiPassword' value='`$prop.lcm.dmaap.password`' />
+ <parameter name='format' value='json' />
+ <parameter name='httpMethod' value='POST' />
+ <parameter name='contentType' value='application/json' />
+ <parameter name="responsePrefix" value="lcm" />
+ <outcome value='failure'>
+ <record plugin="org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder">
+ <parameter name="logger" value="message-log"/>
+ <parameter name="field1" value='Failed to Publish to DMaap'/>
+ </record>
+ </outcome>
+ </execute>
+ <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='Other'>
+ <switch test="`$org.onap.appc.adapter.ansible.result.code`">
+ <outcome value='101'>
+ <block>
+ <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`' />
+ <parameter name='restapiUser' value='`$prop.lcm.dmaap.user`' />
+ <parameter name='restapiPassword' value='`$prop.lcm.dmaap.password`' />
+ <parameter name='format' value='json' />
+ <parameter name='httpMethod' value='POST' />
+ <parameter name='contentType' value='application/json' />
+ <parameter name="responsePrefix" value="lcm" />
+ <outcome value='failure'>
+ <record plugin="org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder">
+ <parameter name="logger" value="message-log"/>
+ <parameter name="field1" value='Failed to Publish to DMaap'/>
+ </record>
+ </outcome>
+ </execute>
+ <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='500'>
+ <block>
+ <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`' />
+ <parameter name='restapiUser' value='`$prop.lcm.dmaap.user`' />
+ <parameter name='restapiPassword' value='`$prop.lcm.dmaap.password`' />
+ <parameter name='format' value='json' />
+ <parameter name='httpMethod' value='POST' />
+ <parameter name='contentType' value='application/json' />
+ <parameter name="responsePrefix" value="lcm" />
+ <outcome value='failure'>
+ <record plugin="org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder">
+ <parameter name="logger" value="message-log"/>
+ <parameter name="field1" value='Failed to Publish to DMaap'/>
+ </record>
+ </outcome>
+ </execute>
+ <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='100'>
+ <execute plugin='org.onap.ccsdk.sli.adaptors.ansible.AnsibleAdapter' method='reqExecResult' >
+ <parameter name='AgentUrl' value='`$prop.ansible.agenturl`'/>
+ <parameter name='User' value='`$prop.ansible.user`'/>
+ <parameter name='Password' value='`$prop.ansible.password`'/>
+ <parameter name='Id' value='`$org.onap.appc.adapter.ansible.Id`'/>
+ <parameter name='PlaybookName' value='`$prop.lcm.upgrade-pre-check.playbookname`'/>
+ <outcome value='failure'>
+ <block>
+ <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`' />
+ <parameter name='restapiUser' value='`$prop.lcm.dmaap.user`' />
+ <parameter name='restapiPassword' value='`$prop.lcm.dmaap.password`' />
+ <parameter name='format' value='json' />
+ <parameter name='httpMethod' value='POST' />
+ <parameter name='contentType' value='application/json' />
+ <parameter name="responsePrefix" value="lcm" />
+ <outcome value='failure'>
+ <record plugin="org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder">
+ <parameter name="logger" value="message-log"/>
+ <parameter name="field1" value='Failed to Publish to DMaap'/>
+ </record>
+ </outcome>
+ </execute>
+ <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>
+ <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`' />
+ <parameter name='restapiUser' value='`$prop.lcm.dmaap.user`' />
+ <parameter name='restapiPassword' value='`$prop.lcm.dmaap.password`' />
+ <parameter name='format' value='json' />
+ <parameter name='httpMethod' value='POST' />
+ <parameter name='contentType' value='application/json' />
+ <parameter name="responsePrefix" value="lcm" />
+ <outcome value='failure'>
+ <record plugin="org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder">
+ <parameter name="logger" value="message-log"/>
+ <parameter name="field1" value='Failed to Publish to DMaap'/>
+ </record>
+ </outcome>
+ </execute>
+ <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>
+ </outcome>
+ </switch>
+ </outcome>
+ </execute>
+ </block>
+ </method>
+</service-logic>
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 71ed77fd..e2c2cddd 100644
--- a/platform-logic/lcm/src/main/xml/LCM_upgrade-software.xml
+++ b/platform-logic/lcm/src/main/xml/LCM_upgrade-software.xml
@@ -1,480 +1,293 @@
-<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}'>
- <method rpc='upgrade-software' mode='sync'>
- <block>
- <execute
- plugin='org.onap.ccsdk.sli.plugins.prop.PropertiesNode'
- method='readProperties'>
- <parameter name='fileName'
- value='%SDNC_CONFIG_DIR%/lcm-dg.properties' />
- <parameter name='contextPrefix' value='prop' />
- </execute>
- <set>
- <parameter name='status.code' value='200' />
- <parameter name='status.message'
- value='unexpected return from DG' />
- </set>
- <execute
- plugin='org.onap.ccsdk.sli.adaptors.ansible.AnsibleAdapter'
- method='reqExec'>
- <parameter name='AgentUrl'
- value='`$prop.ansible.agenturl`' />
- <parameter name='User' value='`$prop.ansible.user`' />
- <parameter name='Password' value='`prop.ansible.password`' />
- <parameter name='LocalParameters'
- value='`$prop.ansible.lcm.localparameters`' />
- <parameter name='EnvParameters'
- value='`$upgrade-software-input.payload`' />
- <parameter name='NodeList'
- value='`$prop.ansible.nodelist`' />
- <parameter name='Timeout' value='`$prop.ansible.timeout`' />
- <parameter name='Version' value='`$prop.ansible.version`' />
- <parameter name='Id'
- value='`$upgrade-software-input.common-header.request-id`' />
- <parameter name='PlaybookName'
- value='`$prop.lcm.upgrade-software.playbookname`' />
- <outcome value='not-found'>
- <block>
- <set>
- <parameter
- name='$org.onap.appc.adapter.ansible.result.code' value='401' />
- <parameter name='org.onap.appc.adapter.ansible.message'
- value='Ansible Adapter was not found' />
- </set>
- <block>
- <set>
- <parameter name='lcm-dmaap.version'
- value='`$prop.lcm.dmaap.version`' />
- <parameter name='lcm-dmaap.correlation-id'
- value='`$upgrade-software-input.common-header.sub-request-id`' />
- <parameter name='lcm-dmaap.partition'
- value='`$prop.lcm.dmaap.partition`' />
- <parameter name='lcm-dmaap.rpc-name'
- value='upgrade-software' />
- <parameter name='lcm-dmaap.type'
- value='`$prop.lcm.dmaap.type`' />
- <parameter name='lcm-dmaap.timestamp'
- value='`$upgrade-software-input.common-header.timestamp`' />
- <parameter name='lcm-dmaap.api-ver'
- value='`$upgrade-software-input.common-header.api-ver`' />
- <parameter name='lcm-dmaap.originator-id'
- value='`$upgrade-software-input.common-header.originator-id`' />
- <parameter name='lcm-dmaap.request-id'
- value='`$upgrade-software-input.common-header.originator-id`' />
- <parameter name='lcm-dmaap.sub-request-id'
- value='`$upgrade-software-input.common-header.sub-request-id`' />
- <parameter name='lcm-dmaap.flags.mode'
- value='`$upgrade-software-input.common-header.flags.mode`' />
- <parameter name='lcm-dmaap.flags.force'
- value='`$upgrade-software-input.common-header.flags.force`' />
- <parameter name='lcm-dmaap.flags.ttl'
- value='`$upgrade-software-input.common-header.flags.ttl`' />
- <parameter name='lcm-dmaap.payload'
- value='`$org.onap.appc.adapter.ansible.results`' />
- <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`' />
- <parameter name='restapiUser'
- value='`$prop.lcm.dmaap.user`' />
- <parameter name='restapiPassword'
- value='`$prop.lcm.dmaap.password`' />
- <parameter name='format' value='json' />
- <parameter name='httpMethod' value='POST' />
- <parameter name='contentType' value='application/json' />
- <parameter name="responsePrefix" value="lcm" />
- <outcome value='failure'>
- <record
- plugin="org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder">
- <parameter name="logger" value="message-log" />
- <parameter name="field1"
- value='Failed to Publish to DMaap' />
- </record>
- </outcome>
- </execute>
- <return status='failure'>
- <parameter name='status.code' value='401' />
- <parameter name='status.message'
- value='`$org.onap.appc.adapter.ansible.message`' />
- </return>
- </block>
- </block>
- </outcome>
- <outcome value='failure'>
- <block>
- <set>
- <parameter name='lcm-dmaap.version'
- value='`$prop.lcm.dmaap.version`' />
- <parameter name='lcm-dmaap.correlation-id'
- value='`$upgrade-software-input.common-header.sub-request-id`' />
- <parameter name='lcm-dmaap.partition'
- value='`$prop.lcm.dmaap.partition`' />
- <parameter name='lcm-dmaap.rpc-name'
- value='upgrade-software' />
- <parameter name='lcm-dmaap.type'
- value='`$prop.lcm.dmaap.type`' />
- <parameter name='lcm-dmaap.timestamp'
- value='`$upgrade-software-input.common-header.timestamp`' />
- <parameter name='lcm-dmaap.api-ver'
- value='`$upgrade-software-input.common-header.api-ver`' />
- <parameter name='lcm-dmaap.originator-id'
- value='`$upgrade-software-input.common-header.originator-id`' />
- <parameter name='lcm-dmaap.request-id'
- value='`$upgrade-software-input.common-header.originator-id`' />
- <parameter name='lcm-dmaap.sub-request-id'
- value='`$upgrade-software-input.common-header.sub-request-id`' />
- <parameter name='lcm-dmaap.flags.mode'
- value='`$upgrade-software-input.common-header.flags.mode`' />
- <parameter name='lcm-dmaap.flags.force'
- value='`$upgrade-software-input.common-header.flags.force`' />
- <parameter name='lcm-dmaap.flags.ttl'
- value='`$upgrade-software-input.common-header.flags.ttl`' />
- <parameter name='lcm-dmaap.payload'
- value='`$org.onap.appc.adapter.ansible.results`' />
- <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`' />
- <parameter name='restapiUser'
- value='`$prop.lcm.dmaap.user`' />
- <parameter name='restapiPassword'
- value='`$prop.lcm.dmaap.password`' />
- <parameter name='format' value='json' />
- <parameter name='httpMethod' value='POST' />
- <parameter name='contentType' value='application/json' />
- <parameter name="responsePrefix" value="lcm" />
- <outcome value='failure'>
- <record
- plugin="org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder">
- <parameter name="logger" value="message-log" />
- <parameter name="field1"
- value='Failed to Publish to DMaap' />
- </record>
- </outcome>
- </execute>
- <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='Other'>
- <switch test="`$org.onap.appc.adapter.ansible.result.code`">
- <outcome value='101'>
- <block>
- <set>
- <parameter name='lcm-dmaap.version'
- value='`$prop.lcm.dmaap.version`' />
- <parameter name='lcm-dmaap.correlation-id'
- value='`$upgrade-software-input.common-header.sub-request-id`' />
- <parameter name='lcm-dmaap.partition'
- value='`$prop.lcm.dmaap.partition`' />
- <parameter name='lcm-dmaap.rpc-name'
- value='upgrade-software' />
- <parameter name='lcm-dmaap.type'
- value='`$prop.lcm.dmaap.type`' />
- <parameter name='lcm-dmaap.timestamp'
- value='`$upgrade-software-input.common-header.timestamp`' />
- <parameter name='lcm-dmaap.api-ver'
- value='`$upgrade-software-input.common-header.api-ver`' />
- <parameter name='lcm-dmaap.originator-id'
- value='`$upgrade-software-input.common-header.originator-id`' />
- <parameter name='lcm-dmaap.request-id'
- value='`$upgrade-software-input.common-header.originator-id`' />
- <parameter name='lcm-dmaap.sub-request-id'
- value='`$upgrade-software-input.common-header.sub-request-id`' />
- <parameter name='lcm-dmaap.flags.mode'
- value='`$upgrade-software-input.common-header.flags.mode`' />
- <parameter name='lcm-dmaap.flags.force'
- value='`$upgrade-software-input.common-header.flags.force`' />
- <parameter name='lcm-dmaap.flags.ttl'
- value='`$upgrade-software-input.common-header.flags.ttl`' />
- <parameter name='lcm-dmaap.payload'
- value='`$org.onap.appc.adapter.ansible.results`' />
- <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`' />
- <parameter name='restapiUser'
- value='`$prop.lcm.dmaap.user`' />
- <parameter name='restapiPassword'
- value='`$prop.lcm.dmaap.password`' />
- <parameter name='format' value='json' />
- <parameter name='httpMethod' value='POST' />
- <parameter name='contentType'
- value='application/json' />
- <parameter name="responsePrefix" value="lcm" />
- <outcome value='failure'>
- <record
- plugin="org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder">
- <parameter name="logger" value="message-log" />
- <parameter name="field1"
- value='Failed to Publish to DMaap' />
- </record>
- </outcome>
- </execute>
- <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='500'>
- <block>
- <set>
- <parameter name='lcm-dmaap.version'
- value='`$prop.lcm.dmaap.version`' />
- <parameter name='lcm-dmaap.correlation-id'
- value='`$upgrade-software-input.common-header.sub-request-id`' />
- <parameter name='lcm-dmaap.partition'
- value='`$prop.lcm.dmaap.partition`' />
- <parameter name='lcm-dmaap.rpc-name'
- value='upgrade-software' />
- <parameter name='lcm-dmaap.type'
- value='`$prop.lcm.dmaap.type`' />
- <parameter name='lcm-dmaap.timestamp'
- value='`$upgrade-software-input.common-header.timestamp`' />
- <parameter name='lcm-dmaap.api-ver'
- value='`$upgrade-software-input.common-header.api-ver`' />
- <parameter name='lcm-dmaap.originator-id'
- value='`$upgrade-software-input.common-header.originator-id`' />
- <parameter name='lcm-dmaap.request-id'
- value='`$upgrade-software-input.common-header.originator-id`' />
- <parameter name='lcm-dmaap.sub-request-id'
- value='`$upgrade-software-input.common-header.sub-request-id`' />
- <parameter name='lcm-dmaap.flags.mode'
- value='`$upgrade-software-input.common-header.flags.mode`' />
- <parameter name='lcm-dmaap.flags.force'
- value='`$upgrade-software-input.common-header.flags.force`' />
- <parameter name='lcm-dmaap.flags.ttl'
- value='`$upgrade-software-input.common-header.flags.ttl`' />
- <parameter name='lcm-dmaap.payload'
- value='`$org.onap.appc.adapter.ansible.results`' />
- <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`' />
- <parameter name='restapiUser'
- value='`$prop.lcm.dmaap.user`' />
- <parameter name='restapiPassword'
- value='`$prop.lcm.dmaap.password`' />
- <parameter name='format' value='json' />
- <parameter name='httpMethod' value='POST' />
- <parameter name='contentType'
- value='application/json' />
- <parameter name="responsePrefix" value="lcm" />
- <outcome value='failure'>
- <record
- plugin="org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder">
- <parameter name="logger" value="message-log" />
- <parameter name="field1"
- value='Failed to Publish to DMaap' />
- </record>
- </outcome>
- </execute>
- <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='100'>
- <execute
- plugin='org.onap.ccsdk.sli.adaptors.ansible.AnsibleAdapter'
- method='reqExecResult'>
- <parameter name='AgentUrl'
- value='`$prop.ansible.agenturl`' />
- <parameter name='User' value='`$prop.ansible.user`' />
- <parameter name='Password'
- value='`$prop.ansible.password`' />
- <parameter name='Id'
- value='`$org.onap.appc.adapter.ansible.Id`' />
- <parameter name='PlaybookName'
- value='`$prop.lcm.upgrade-software.playbookname`' />
-
-
-
-
-
- <outcome value='failure'>
- <block>
- <set>
- <parameter name='lcm-dmaap.version'
- value='`$prop.lcm.dmaap.version`' />
- <parameter name='lcm-dmaap.correlation-id'
- value='`$upgrade-software-input.common-header.sub-request-id`' />
- <parameter name='lcm-dmaap.partition'
- value='`$prop.lcm.dmaap.partition`' />
- <parameter name='lcm-dmaap.rpc-name'
- value='upgrade-software' />
- <parameter name='lcm-dmaap.type'
- value='`$prop.lcm.dmaap.type`' />
- <parameter name='lcm-dmaap.timestamp'
- value='`$upgrade-software-input.common-header.timestamp`' />
- <parameter name='lcm-dmaap.api-ver'
- value='`$upgrade-software-input.common-header.api-ver`' />
- <parameter name='lcm-dmaap.originator-id'
- value='`$upgrade-software-input.common-header.originator-id`' />
- <parameter name='lcm-dmaap.request-id'
- value='`$upgrade-software-input.common-header.originator-id`' />
- <parameter name='lcm-dmaap.sub-request-id'
- value='`$upgrade-software-input.common-header.sub-request-id`' />
- <parameter name='lcm-dmaap.flags.mode'
- value='`$upgrade-software-input.common-header.flags.mode`' />
- <parameter name='lcm-dmaap.flags.force'
- value='`$upgrade-software-input.common-header.flags.force`' />
- <parameter name='lcm-dmaap.flags.ttl'
- value='`$upgrade-software-input.common-header.flags.ttl`' />
- <parameter name='lcm-dmaap.payload'
- value='`$org.onap.appc.adapter.ansible.results`' />
- <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`' />
- <parameter name='restapiUser'
- value='`$prop.lcm.dmaap.user`' />
- <parameter name='restapiPassword'
- value='`$prop.lcm.dmaap.password`' />
- <parameter name='format' value='json' />
- <parameter name='httpMethod' value='POST' />
- <parameter name='contentType'
- value='application/json' />
- <parameter name="responsePrefix" value="lcm" />
- <outcome value='failure'>
- <record
- plugin="org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder">
- <parameter name="logger" value="message-log" />
- <parameter name="field1"
- value='Failed to Publish to DMaap' />
- </record>
- </outcome>
- </execute>
- <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>
- <set>
- <parameter name='lcm-dmaap.version'
- value='`$prop.lcm.dmaap.version`' />
- <parameter name='lcm-dmaap.correlation-id'
- value='`$upgrade-software-input.common-header.sub-request-id`' />
- <parameter name='lcm-dmaap.partition'
- value='`$prop.lcm.dmaap.partition`' />
- <parameter name='lcm-dmaap.rpc-name'
- value='upgrade-software' />
- <parameter name='lcm-dmaap.type'
- value='`$prop.lcm.dmaap.type`' />
- <parameter name='lcm-dmaap.timestamp'
- value='`$upgrade-software-input.common-header.timestamp`' />
- <parameter name='lcm-dmaap.api-ver'
- value='`$upgrade-software-input.common-header.api-ver`' />
- <parameter name='lcm-dmaap.originator-id'
- value='`$upgrade-software-input.common-header.originator-id`' />
- <parameter name='lcm-dmaap.request-id'
- value='`$upgrade-software-input.common-header.originator-id`' />
- <parameter name='lcm-dmaap.sub-request-id'
- value='`$upgrade-software-input.common-header.sub-request-id`' />
- <parameter name='lcm-dmaap.flags.mode'
- value='`$upgrade-software-input.common-header.flags.mode`' />
- <parameter name='lcm-dmaap.flags.force'
- value='`$upgrade-software-input.common-header.flags.force`' />
- <parameter name='lcm-dmaap.flags.ttl'
- value='`$upgrade-software-input.common-header.flags.ttl`' />
- <parameter name='lcm-dmaap.payload'
- value='`$org.onap.appc.adapter.ansible.results`' />
- <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`' />
- <parameter name='restapiUser'
- value='`$prop.lcm.dmaap.user`' />
- <parameter name='restapiPassword'
- value='`$prop.lcm.dmaap.password`' />
- <parameter name='format' value='json' />
- <parameter name='httpMethod' value='POST' />
- <parameter name='contentType'
- value='application/json' />
- <parameter name="responsePrefix" value="lcm" />
- <outcome value='failure'>
- <record
- plugin="org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder">
- <parameter name="logger" value="message-log" />
- <parameter name="field1"
- value='Failed to Publish to DMaap' />
- </record>
- </outcome>
- </execute>
- <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>
- </outcome>
- </switch>
- </outcome>
- </execute>
- </block>
- </method>
-</service-logic> \ No newline at end of file
+<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}'>
+ <method rpc='upgrade-software' mode='sync'>
+ <block>
+ <execute plugin='org.onap.ccsdk.sli.plugins.prop.PropertiesNode' method='readProperties' >
+ <parameter name='fileName' value='%SDNC_CONFIG_DIR%/lcm-dg.properties' />
+ <parameter name='contextPrefix' value='prop' />
+ </execute>
+ <set>
+ <parameter name='status.code' value='200' />
+ <parameter name='status.message' value='unexpected return from DG' />
+ </set>
+ <execute plugin='org.onap.ccsdk.sli.adaptors.ansible.AnsibleAdapter' method='reqExec' >
+ <parameter name='AgentUrl' value='`$prop.ansible.agenturl`'/>
+ <parameter name='User' value='`$prop.ansible.user`'/>
+ <parameter name='Password' value='`prop.ansible.password`'/>
+ <parameter name='LocalParameters' value='`$prop.ansible.lcm.localparameters`'/>
+ <parameter name='EnvParameters' value='`$upgrade-software-input.payload`'/>
+ <parameter name='NodeList' value='`$prop.ansible.nodelist`'/>
+ <parameter name='Timeout' value='`$prop.ansible.timeout`'/>
+ <parameter name='Version' value='`$prop.ansible.version`'/>
+ <parameter name='Id' value='`$upgrade-software-input.common-header.request-id`'/>
+ <parameter name='PlaybookName' value='`$prop.lcm.upgrade-software.playbookname`'/>
+ <outcome value='not-found'>
+ <block>
+ <set>
+ <parameter name='$org.onap.appc.adapter.ansible.result.code' value='401'/>
+ <parameter name='org.onap.appc.adapter.ansible.message' value='Ansible Adapter was not found'/>
+ </set>
+ <block>
+ <set>
+ <parameter name='lcm-dmaap.version' value='`$prop.lcm.dmaap.version`'/>
+ <parameter name='lcm-dmaap.correlation-id' value="`$upgrade-software-input.common-header.request-id + '-' + $upgrade-software-input.common-header.sub-request-id`"/>
+ <parameter name='lcm-dmaap.partition' value='`$prop.lcm.dmaap.partition`'/>
+ <parameter name='lcm-dmaap.rpc-name' value='upgrade-software'/>
+ <parameter name='lcm-dmaap.type' value='`$prop.lcm.dmaap.type`'/>
+ <parameter name='lcm-dmaap.timestamp' value='`$upgrade-software-input.common-header.timestamp`'/>
+ <parameter name='lcm-dmaap.api-ver' value='`$upgrade-software-input.common-header.api-ver`'/>
+ <parameter name='lcm-dmaap.originator-id' value='`$upgrade-software-input.common-header.originator-id`'/>
+ <parameter name='lcm-dmaap.request-id' value='`$upgrade-software-input.common-header.request-id`'/>
+ <parameter name='lcm-dmaap.sub-request-id' value='`$upgrade-software-input.common-header.sub-request-id`'/>
+ <parameter name='lcm-dmaap.flags.mode' value='`$upgrade-software-input.common-header.flags.mode`'/>
+ <parameter name='lcm-dmaap.flags.force' value='`$upgrade-software-input.common-header.flags.force`'/>
+ <parameter name='lcm-dmaap.flags.ttl' value='`$upgrade-software-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`' />
+ <parameter name='restapiUser' value='`$prop.lcm.dmaap.user`' />
+ <parameter name='restapiPassword' value='`$prop.lcm.dmaap.password`' />
+ <parameter name='format' value='json' />
+ <parameter name='httpMethod' value='POST' />
+ <parameter name='contentType' value='application/json' />
+ <parameter name="responsePrefix" value="lcm" />
+ <outcome value='failure'>
+ <record plugin="org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder">
+ <parameter name="logger" value="message-log"/>
+ <parameter name="field1" value='Failed to Publish to DMaap'/>
+ </record>
+ </outcome>
+ </execute>
+ <return status='failure'>
+ <parameter name='status.code' value='401' />
+ <parameter name='status.message' value='`$org.onap.appc.adapter.ansible.message`' />
+ </return>
+ </block>
+ </block>
+ </outcome>
+ <outcome value='failure'>
+ <block>
+ <set>
+ <parameter name='lcm-dmaap.version' value='`$prop.lcm.dmaap.version`'/>
+ <parameter name='lcm-dmaap.correlation-id' value="`$upgrade-software-input.common-header.request-id + '-' + $upgrade-software-input.common-header.sub-request-id`"/>
+ <parameter name='lcm-dmaap.partition' value='`$prop.lcm.dmaap.partition`'/>
+ <parameter name='lcm-dmaap.rpc-name' value='upgrade-software'/>
+ <parameter name='lcm-dmaap.type' value='`$prop.lcm.dmaap.type`'/>
+ <parameter name='lcm-dmaap.timestamp' value='`$upgrade-software-input.common-header.timestamp`'/>
+ <parameter name='lcm-dmaap.api-ver' value='`$upgrade-software-input.common-header.api-ver`'/>
+ <parameter name='lcm-dmaap.originator-id' value='`$upgrade-software-input.common-header.originator-id`'/>
+ <parameter name='lcm-dmaap.request-id' value='`$upgrade-software-input.common-header.request-id`'/>
+ <parameter name='lcm-dmaap.sub-request-id' value='`$upgrade-software-input.common-header.sub-request-id`'/>
+ <parameter name='lcm-dmaap.flags.mode' value='`$upgrade-software-input.common-header.flags.mode`'/>
+ <parameter name='lcm-dmaap.flags.force' value='`$upgrade-software-input.common-header.flags.force`'/>
+ <parameter name='lcm-dmaap.flags.ttl' value='`$upgrade-software-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`' />
+ <parameter name='restapiUser' value='`$prop.lcm.dmaap.user`' />
+ <parameter name='restapiPassword' value='`$prop.lcm.dmaap.password`' />
+ <parameter name='format' value='json' />
+ <parameter name='httpMethod' value='POST' />
+ <parameter name='contentType' value='application/json' />
+ <parameter name="responsePrefix" value="lcm" />
+ <outcome value='failure'>
+ <record plugin="org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder">
+ <parameter name="logger" value="message-log"/>
+ <parameter name="field1" value='Failed to Publish to DMaap'/>
+ </record>
+ </outcome>
+ </execute>
+ <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='Other'>
+ <switch test="`$org.onap.appc.adapter.ansible.result.code`">
+ <outcome value='101'>
+ <block>
+ <set>
+ <parameter name='lcm-dmaap.version' value='`$prop.lcm.dmaap.version`'/>
+ <parameter name='lcm-dmaap.correlation-id' value="`$upgrade-software-input.common-header.request-id + '-' + $upgrade-software-input.common-header.sub-request-id`"/>
+ <parameter name='lcm-dmaap.partition' value='`$prop.lcm.dmaap.partition`'/>
+ <parameter name='lcm-dmaap.rpc-name' value='upgrade-software'/>
+ <parameter name='lcm-dmaap.type' value='`$prop.lcm.dmaap.type`'/>
+ <parameter name='lcm-dmaap.timestamp' value='`$upgrade-software-input.common-header.timestamp`'/>
+ <parameter name='lcm-dmaap.api-ver' value='`$upgrade-software-input.common-header.api-ver`'/>
+ <parameter name='lcm-dmaap.originator-id' value='`$upgrade-software-input.common-header.originator-id`'/>
+ <parameter name='lcm-dmaap.request-id' value='`$upgrade-software-input.common-header.request-id`'/>
+ <parameter name='lcm-dmaap.sub-request-id' value='`$upgrade-software-input.common-header.sub-request-id`'/>
+ <parameter name='lcm-dmaap.flags.mode' value='`$upgrade-software-input.common-header.flags.mode`'/>
+ <parameter name='lcm-dmaap.flags.force' value='`$upgrade-software-input.common-header.flags.force`'/>
+ <parameter name='lcm-dmaap.flags.ttl' value='`$upgrade-software-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`' />
+ <parameter name='restapiUser' value='`$prop.lcm.dmaap.user`' />
+ <parameter name='restapiPassword' value='`$prop.lcm.dmaap.password`' />
+ <parameter name='format' value='json' />
+ <parameter name='httpMethod' value='POST' />
+ <parameter name='contentType' value='application/json' />
+ <parameter name="responsePrefix" value="lcm" />
+ <outcome value='failure'>
+ <record plugin="org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder">
+ <parameter name="logger" value="message-log"/>
+ <parameter name="field1" value='Failed to Publish to DMaap'/>
+ </record>
+ </outcome>
+ </execute>
+ <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='500'>
+ <block>
+ <set>
+ <parameter name='lcm-dmaap.version' value='`$prop.lcm.dmaap.version`'/>
+ <parameter name='lcm-dmaap.correlation-id' value="`$upgrade-software-input.common-header.request-id + '-' + $upgrade-software-input.common-header.sub-request-id`"/>
+ <parameter name='lcm-dmaap.partition' value='`$prop.lcm.dmaap.partition`'/>
+ <parameter name='lcm-dmaap.rpc-name' value='upgrade-software'/>
+ <parameter name='lcm-dmaap.type' value='`$prop.lcm.dmaap.type`'/>
+ <parameter name='lcm-dmaap.timestamp' value='`$upgrade-software-input.common-header.timestamp`'/>
+ <parameter name='lcm-dmaap.api-ver' value='`$upgrade-software-input.common-header.api-ver`'/>
+ <parameter name='lcm-dmaap.originator-id' value='`$upgrade-software-input.common-header.originator-id`'/>
+ <parameter name='lcm-dmaap.request-id' value='`$upgrade-software-input.common-header.request-id`'/>
+ <parameter name='lcm-dmaap.sub-request-id' value='`$upgrade-software-input.common-header.sub-request-id`'/>
+ <parameter name='lcm-dmaap.flags.mode' value='`$upgrade-software-input.common-header.flags.mode`'/>
+ <parameter name='lcm-dmaap.flags.force' value='`$upgrade-software-input.common-header.flags.force`'/>
+ <parameter name='lcm-dmaap.flags.ttl' value='`$upgrade-software-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`' />
+ <parameter name='restapiUser' value='`$prop.lcm.dmaap.user`' />
+ <parameter name='restapiPassword' value='`$prop.lcm.dmaap.password`' />
+ <parameter name='format' value='json' />
+ <parameter name='httpMethod' value='POST' />
+ <parameter name='contentType' value='application/json' />
+ <parameter name="responsePrefix" value="lcm" />
+ <outcome value='failure'>
+ <record plugin="org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder">
+ <parameter name="logger" value="message-log"/>
+ <parameter name="field1" value='Failed to Publish to DMaap'/>
+ </record>
+ </outcome>
+ </execute>
+ <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='100'>
+ <execute plugin='org.onap.ccsdk.sli.adaptors.ansible.AnsibleAdapter' method='reqExecResult' >
+ <parameter name='AgentUrl' value='`$prop.ansible.agenturl`'/>
+ <parameter name='User' value='`$prop.ansible.user`'/>
+ <parameter name='Password' value='`$prop.ansible.password`'/>
+ <parameter name='Id' value='`$org.onap.appc.adapter.ansible.Id`'/>
+ <parameter name='PlaybookName' value='`$prop.lcm.upgrade-software.playbookname`'/>
+ <outcome value='failure'>
+ <block>
+ <set>
+ <parameter name='lcm-dmaap.version' value='`$prop.lcm.dmaap.version`'/>
+ <parameter name='lcm-dmaap.correlation-id' value="`$upgrade-software-input.common-header.request-id + '-' + $upgrade-software-input.common-header.sub-request-id`"/>
+ <parameter name='lcm-dmaap.partition' value='`$prop.lcm.dmaap.partition`'/>
+ <parameter name='lcm-dmaap.rpc-name' value='upgrade-software'/>
+ <parameter name='lcm-dmaap.type' value='`$prop.lcm.dmaap.type`'/>
+ <parameter name='lcm-dmaap.timestamp' value='`$upgrade-software-input.common-header.timestamp`'/>
+ <parameter name='lcm-dmaap.api-ver' value='`$upgrade-software-input.common-header.api-ver`'/>
+ <parameter name='lcm-dmaap.originator-id' value='`$upgrade-software-input.common-header.originator-id`'/>
+ <parameter name='lcm-dmaap.request-id' value='`$upgrade-software-input.common-header.request-id`'/>
+ <parameter name='lcm-dmaap.sub-request-id' value='`$upgrade-software-input.common-header.sub-request-id`'/>
+ <parameter name='lcm-dmaap.flags.mode' value='`$upgrade-software-input.common-header.flags.mode`'/>
+ <parameter name='lcm-dmaap.flags.force' value='`$upgrade-software-input.common-header.flags.force`'/>
+ <parameter name='lcm-dmaap.flags.ttl' value='`$upgrade-software-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`' />
+ <parameter name='restapiUser' value='`$prop.lcm.dmaap.user`' />
+ <parameter name='restapiPassword' value='`$prop.lcm.dmaap.password`' />
+ <parameter name='format' value='json' />
+ <parameter name='httpMethod' value='POST' />
+ <parameter name='contentType' value='application/json' />
+ <parameter name="responsePrefix" value="lcm" />
+ <outcome value='failure'>
+ <record plugin="org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder">
+ <parameter name="logger" value="message-log"/>
+ <parameter name="field1" value='Failed to Publish to DMaap'/>
+ </record>
+ </outcome>
+ </execute>
+ <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>
+ <set>
+ <parameter name='lcm-dmaap.version' value='`$prop.lcm.dmaap.version`'/>
+ <parameter name='lcm-dmaap.correlation-id' value="`$upgrade-software-input.common-header.request-id + '-' + $upgrade-software-input.common-header.sub-request-id`"/>
+ <parameter name='lcm-dmaap.partition' value='`$prop.lcm.dmaap.partition`'/>
+ <parameter name='lcm-dmaap.rpc-name' value='upgrade-software'/>
+ <parameter name='lcm-dmaap.type' value='`$prop.lcm.dmaap.type`'/>
+ <parameter name='lcm-dmaap.timestamp' value='`$upgrade-software-input.common-header.timestamp`'/>
+ <parameter name='lcm-dmaap.api-ver' value='`$upgrade-software-input.common-header.api-ver`'/>
+ <parameter name='lcm-dmaap.originator-id' value='`$upgrade-software-input.common-header.originator-id`'/>
+ <parameter name='lcm-dmaap.request-id' value='`$upgrade-software-input.common-header.request-id`'/>
+ <parameter name='lcm-dmaap.sub-request-id' value='`$upgrade-software-input.common-header.sub-request-id`'/>
+ <parameter name='lcm-dmaap.flags.mode' value='`$upgrade-software-input.common-header.flags.mode`'/>
+ <parameter name='lcm-dmaap.flags.force' value='`$upgrade-software-input.common-header.flags.force`'/>
+ <parameter name='lcm-dmaap.flags.ttl' value='`$upgrade-software-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`' />
+ <parameter name='restapiUser' value='`$prop.lcm.dmaap.user`' />
+ <parameter name='restapiPassword' value='`$prop.lcm.dmaap.password`' />
+ <parameter name='format' value='json' />
+ <parameter name='httpMethod' value='POST' />
+ <parameter name='contentType' value='application/json' />
+ <parameter name="responsePrefix" value="lcm" />
+ <outcome value='failure'>
+ <record plugin="org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder">
+ <parameter name="logger" value="message-log"/>
+ <parameter name="field1" value='Failed to Publish to DMaap'/>
+ </record>
+ </outcome>
+ </execute>
+ <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>
+ </outcome>
+ </switch>
+ </outcome>
+ </execute>
+ </block>
+ </method>
+</service-logic>
diff --git a/platform-logic/restapi-templates/src/main/json/lcm-dmaap-publish-template.json b/platform-logic/restapi-templates/src/main/json/lcm-dmaap-publish-template.json
index d30aa06a..a061f634 100644
--- a/platform-logic/restapi-templates/src/main/json/lcm-dmaap-publish-template.json
+++ b/platform-logic/restapi-templates/src/main/json/lcm-dmaap-publish-template.json
@@ -9,7 +9,7 @@
"common-header": {
"api-ver": ${lcm-dmaap.api-ver},
"flags": {
- "ttl": ${lcm-dmaap.flags.mode},
+ "ttl": ${lcm-dmaap.flags.ttl},
"force": ${lcm-dmaap.flags.force},
"mode": ${lcm-dmaap.flags.mode}
},