summaryrefslogtreecommitdiffstats
path: root/platform-logic/lcm/src/main/json/LCM_health-check.json
diff options
context:
space:
mode:
authorAgarwal, Ruchira(ra1926) <ra1926@att.com>2018-08-16 22:55:06 +0000
committerAgarwal, Ruchira(ra1926) <ra1926@att.com>2018-08-16 22:55:06 +0000
commit3c02eaf06b46237f3ce69be0182c490ac8f9d7b8 (patch)
tree1ca0e0d1106efa64a0a959c8e0542c50c0f30f92 /platform-logic/lcm/src/main/json/LCM_health-check.json
parent3f685b55bb87cf53c78ba5c8d0bbe032387d1282 (diff)
add LCM DGs
LCM DGs for ScaleOut, TrafficMgmt, SoftwareUpgrade Change-Id: If7a4a2edb4abf12fdd2eacbf06c124740e7703b5 Issue-ID: SDNC-423 Signed-off-by: Agarwal, Ruchira(ra1926) <ra1926@att.com> Former-commit-id: 51ea971e0fbd77d25e1a4b5d6436dc5b7d135a95
Diffstat (limited to 'platform-logic/lcm/src/main/json/LCM_health-check.json')
-rwxr-xr-xplatform-logic/lcm/src/main/json/LCM_health-check.json364
1 files changed, 364 insertions, 0 deletions
diff --git a/platform-logic/lcm/src/main/json/LCM_health-check.json b/platform-logic/lcm/src/main/json/LCM_health-check.json
new file mode 100755
index 00000000..075da772
--- /dev/null
+++ b/platform-logic/lcm/src/main/json/LCM_health-check.json
@@ -0,0 +1,364 @@
+[
+ {
+ "id": "2b8f6748.3fa5c8",
+ "type": "method",
+ "name": "health-check",
+ "xml": "<method rpc='health-check' mode='sync'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 691,
+ "y": 201,
+ "z": "bbb5423b.9a29f",
+ "wires": [
+ [
+ "86fd93d8.101eb"
+ ]
+ ]
+ },
+ {
+ "id": "785dd229.90154c",
+ "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": 482.99993896484375,
+ "y": 203,
+ "z": "bbb5423b.9a29f",
+ "wires": [
+ [
+ "2b8f6748.3fa5c8"
+ ]
+ ]
+ },
+ {
+ "id": "a28eb083.f3e5f",
+ "type": "dgstart",
+ "name": "DGSTART",
+ "outputs": 1,
+ "x": 298,
+ "y": 202,
+ "z": "bbb5423b.9a29f",
+ "wires": [
+ [
+ "785dd229.90154c"
+ ]
+ ]
+ },
+ {
+ "id": "86fd93d8.101eb",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 283.91668701171875,
+ "y": 339.0833435058594,
+ "z": "bbb5423b.9a29f",
+ "wires": [
+ [
+ "bbe42636.ef2208",
+ "e6df0ad2.e107d8",
+ "671ded81.c280d4",
+ "a0daec6.f75351"
+ ]
+ ]
+ },
+ {
+ "id": "bbe42636.ef2208",
+ "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": 468.00001525878906,
+ "y": 318.0833435058594,
+ "z": "bbb5423b.9a29f",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "e6df0ad2.e107d8",
+ "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 LCM DG' />",
+ "comments": "",
+ "x": 476,
+ "y": 364,
+ "z": "bbb5423b.9a29f",
+ "wires": []
+ },
+ {
+ "id": "a0daec6.f75351",
+ "type": "execute",
+ "name": "execute RestConfAPI",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n <parameter name='restapiUrl' value=\"`'http://' + $payloadJson.request-parameters.vnf-host-ip-address + ':' + $prop.lcm.restconf.port + $prop.lcm.restconf.configscaleout.geturlpath`\" />\n <parameter name='restapiUser' value='`$prop.lcm.restconf.user`' />\n <parameter name='restapiPassword' value='`$prop.lcm.restconf.password`' />\n <parameter name='format' value='json' />\n <parameter name='httpMethod' value='GET' />\n <parameter name=\"responsePrefix\" value=\"restconf\" />",
+ "comments": "",
+ "outputs": 1,
+ "x": 465,
+ "y": 474,
+ "z": "bbb5423b.9a29f",
+ "wires": [
+ [
+ "a0cf136b.8e462",
+ "239d5c1.593a9a4"
+ ]
+ ]
+ },
+ {
+ "id": "671ded81.c280d4",
+ "type": "execute",
+ "name": "execute jsonStringToCtx",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='jsonStringToCtx'>\n\t<parameter name='source' value='health-check-input.payload' />\n\t<parameter name='outputPath' value='payloadJson' />\n\t<parameter name='isEscaped' value='true' />",
+ "comments": "",
+ "outputs": 1,
+ "x": 476,
+ "y": 411,
+ "z": "bbb5423b.9a29f",
+ "wires": [
+ [
+ "8008fd81.155e7"
+ ]
+ ]
+ },
+ {
+ "id": "289cee6b.89c1d2",
+ "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='`$payloadJson.request-parameters.vnf-host-ip-address`'/>",
+ "comments": "",
+ "outputs": 1,
+ "x": 845,
+ "y": 299,
+ "z": "bbb5423b.9a29f",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "8008fd81.155e7",
+ "type": "other",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 702,
+ "y": 302,
+ "z": "bbb5423b.9a29f",
+ "wires": [
+ [
+ "289cee6b.89c1d2"
+ ]
+ ]
+ },
+ {
+ "id": "a0cf136b.8e462",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 722,
+ "y": 379,
+ "z": "bbb5423b.9a29f",
+ "wires": [
+ [
+ "d1efbb12.8f20b8"
+ ]
+ ]
+ },
+ {
+ "id": "239d5c1.593a9a4",
+ "type": "other",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 724,
+ "y": 503.9999694824219,
+ "z": "bbb5423b.9a29f",
+ "wires": [
+ [
+ "d97877e8.182738"
+ ]
+ ]
+ },
+ {
+ "id": "8d0805b4.65dad8",
+ "type": "returnSuccess",
+ "name": "return success",
+ "xml": "<return status='success'>\n<parameter name='status.code' value='`$restconf.response-code`' />\n<parameter name='status.message' value='`$restconf.response-message`' />",
+ "comments": "",
+ "x": 1022.9998779296875,
+ "y": 555,
+ "z": "bbb5423b.9a29f",
+ "wires": []
+ },
+ {
+ "id": "e12b38ab.e68b38",
+ "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='dmaap' />\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1061.0000610351562,
+ "y": 363.08331298828125,
+ "z": "bbb5423b.9a29f",
+ "wires": [
+ [
+ "46030217.bb5c0c"
+ ]
+ ]
+ },
+ {
+ "id": "46030217.bb5c0c",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1236,
+ "y": 364.08331298828125,
+ "z": "bbb5423b.9a29f",
+ "wires": [
+ [
+ "c10a4371.c7e1"
+ ]
+ ]
+ },
+ {
+ "id": "d1efbb12.8f20b8",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 848,
+ "y": 376.08331298828125,
+ "z": "bbb5423b.9a29f",
+ "wires": [
+ [
+ "e12b38ab.e68b38",
+ "55604be3.6c4c94",
+ "48cd4e57.0a075"
+ ]
+ ]
+ },
+ {
+ "id": "2473531d.cd328c",
+ "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='dmaap' />\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1043.4998779296875,
+ "y": 504.08331298828125,
+ "z": "bbb5423b.9a29f",
+ "wires": [
+ [
+ "5e7f5a6e.1235f4"
+ ]
+ ]
+ },
+ {
+ "id": "5e7f5a6e.1235f4",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1220.4998779296875,
+ "y": 503.0833435058594,
+ "z": "bbb5423b.9a29f",
+ "wires": [
+ [
+ "395b2b90.bcb3e4"
+ ]
+ ]
+ },
+ {
+ "id": "c10a4371.c7e1",
+ "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": 1362,
+ "y": 360.08331298828125,
+ "z": "bbb5423b.9a29f",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "55604be3.6c4c94",
+ "type": "returnFailure",
+ "name": "return failure",
+ "xml": "<return status='failure'>\n<parameter name='status.code' value= '`$lcm-dmaap.status.code`'/>\n<parameter name='status.message' value='`$lcm-dmaap.status.message`' />\n",
+ "comments": "",
+ "x": 1033.9166870117188,
+ "y": 411.08331298828125,
+ "z": "bbb5423b.9a29f",
+ "wires": []
+ },
+ {
+ "id": "395b2b90.bcb3e4",
+ "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": 1352.9166259765625,
+ "y": 501.0833435058594,
+ "z": "bbb5423b.9a29f",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "d97877e8.182738",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 862.9998779296875,
+ "y": 501.0832824707031,
+ "z": "bbb5423b.9a29f",
+ "wires": [
+ [
+ "2473531d.cd328c",
+ "fc35ebb1.2e7db8",
+ "8d0805b4.65dad8"
+ ]
+ ]
+ },
+ {
+ "id": "fc35ebb1.2e7db8",
+ "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=\"`$health-check-input.common-header.request-id + '-' + $health-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='health-check'/>\n<parameter name='lcm-dmaap.type' value='`$prop.lcm.dmaap.type`'/>\n<parameter name='lcm-dmaap.timestamp' value='`$health-check-input.common-header.timestamp`'/>\n<parameter name='lcm-dmaap.api-ver' value='`$health-check-input.common-header.api-ver`'/>\n<parameter name='lcm-dmaap.originator-id' value='`$health-check-input.common-header.originator-id`'/>\n<parameter name='lcm-dmaap.request-id' value='`$health-check-input.common-header.request-id`'/>\n<parameter name='lcm-dmaap.sub-request-id' value='`$health-check-input.common-header.sub-request-id`'/>\n<parameter name='lcm-dmaap.flags.mode' value='`$health-check-input.common-header.flags.mode`'/>\n<parameter name='lcm-dmaap.flags.force' value='`$health-check-input.common-header.flags.force`'/>\n<parameter name='lcm-dmaap.flags.ttl' value='`$health-check-input.common-header.flags.ttl`'/>\n<parameter name='lcm-dmaap.status.code' value='`$restconf.response-code`' />\n<parameter name='lcm-dmaap.status.message' value='`$restconf.response-message`'/>\n\n",
+ "comments": "",
+ "x": 1003.1666259765625,
+ "y": 456.08331298828125,
+ "z": "bbb5423b.9a29f",
+ "wires": []
+ },
+ {
+ "id": "48cd4e57.0a075",
+ "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=\"`$health-check-input.common-header.request-id + '-' + $health-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='health-check'/>\n<parameter name='lcm-dmaap.type' value='`$prop.lcm.dmaap.type`'/>\n<parameter name='lcm-dmaap.timestamp' value='`$health-check-input.common-header.timestamp`'/>\n<parameter name='lcm-dmaap.api-ver' value='`$health-check-input.common-header.api-ver`'/>\n<parameter name='lcm-dmaap.originator-id' value='`$health-check-input.common-header.originator-id`'/>\n<parameter name='lcm-dmaap.request-id' value='`$health-check-input.common-header.request-id`'/>\n<parameter name='lcm-dmaap.sub-request-id' value='`$health-check-input.common-header.sub-request-id`'/>\n<parameter name='lcm-dmaap.flags.mode' value='`$health-check-input.common-header.flags.mode`'/>\n<parameter name='lcm-dmaap.flags.force' value='`$health-check-input.common-header.flags.force`'/>\n<parameter name='lcm-dmaap.flags.ttl' value='`$health-check-input.common-header.flags.ttl`'/>\n<parameter name='lcm-dmaap.status.code' value='401' />\n<parameter name='lcm-dmaap.status.message' value=\"`'DG-Failure ' + $restconf.response-message + ' RestConf ResponseCode=' + $restconf.response-code`\"/>\n",
+ "comments": "",
+ "x": 1019,
+ "y": 306,
+ "z": "bbb5423b.9a29f",
+ "wires": []
+ }
+] \ No newline at end of file