diff options
author | 2018-09-13 14:37:03 +0000 | |
---|---|---|
committer | 2018-09-13 14:37:03 +0000 | |
commit | 1bcc23cc951b4a8f9814da9e68be07371a3432ac (patch) | |
tree | 30f5eba80c7d30892d14d9179fb7ab3c06c05380 /platform-logic/lcm/src/main/json/LCM_quiesce-traffic.json | |
parent | b88285b4c955fe5ddc2736b8ab9dcd300817cb50 (diff) | |
parent | 3ff5037bd42b416bf1a904d4288f2212de73d795 (diff) |
Merge "update LCM DGs"
Former-commit-id: b86e8a42ea102e5d92cc45d56ea90ab7bf0e827b
Diffstat (limited to 'platform-logic/lcm/src/main/json/LCM_quiesce-traffic.json')
-rw-r--r-- | platform-logic/lcm/src/main/json/LCM_quiesce-traffic.json | 656 |
1 files changed, 458 insertions, 198 deletions
diff --git a/platform-logic/lcm/src/main/json/LCM_quiesce-traffic.json b/platform-logic/lcm/src/main/json/LCM_quiesce-traffic.json index b88d314d..d6f757a5 100644 --- a/platform-logic/lcm/src/main/json/LCM_quiesce-traffic.json +++ b/platform-logic/lcm/src/main/json/LCM_quiesce-traffic.json @@ -1,22 +1,22 @@ [
{
- "id": "1a420388.7ce24c",
+ "id": "fab0f7ed.c486b8",
"type": "method",
"name": "quiesce-traffic",
"xml": "<method rpc='quiesce-traffic' mode='sync'>\n",
"comments": "",
"outputs": 1,
- "x": 550,
- "y": 102,
- "z": "af8f5cdd.6e4de",
+ "x": 480,
+ "y": 147,
+ "z": "50de34e0.ace54c",
"wires": [
[
- "e635fd5d.f4087"
+ "5ccc8e8d.06e5"
]
]
},
{
- "id": "c220826b.91906",
+ "id": "5c791eb8.0072b",
"type": "service-logic",
"name": "LCM ${project.version}",
"module": "LCM",
@@ -24,528 +24,788 @@ "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": 337.99993896484375,
- "y": 103,
- "z": "af8f5cdd.6e4de",
+ "x": 267.99993896484375,
+ "y": 148,
+ "z": "50de34e0.ace54c",
"wires": [
[
- "1a420388.7ce24c"
+ "fab0f7ed.c486b8"
]
]
},
{
- "id": "810e1e54.dec1c",
+ "id": "3503ece1.d7ad14",
"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='`$quiesce-traffic-input.payload`'/>\n<parameter name='NodeList' value=\"`$nodelist`\"/>\n<parameter name='Timeout' value='`$prop.ansible.timeout`'/>\n<parameter name='Version' value='`$prop.ansible.version`'/>\n<parameter name='Id' value='`$quiesce-traffic-input.common-header.request-id`'/>\n<parameter name='PlaybookName' value='`$prop.lcm.quiesce-traffic.playbookname`'/>",
+ "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='`$quiesce-traffic-input.payload`'/>\n<parameter name='NodeList' value=\"`$nodelist`\"/>\n<parameter name='Timeout' value='`$prop.ansible.timeout`'/>\n<parameter name='Version' value='`$prop.ansible.version`'/>\n<parameter name='Id' value='`$quiesce-traffic-input.common-header.request-id`'/>\n<parameter name='PlaybookName' value='`$playbookname`'/>",
"comments": "",
"outputs": 1,
- "x": 345.00001525878906,
- "y": 379,
- "z": "af8f5cdd.6e4de",
+ "x": 335.00001525878906,
+ "y": 755,
+ "z": "50de34e0.ace54c",
"wires": [
[
- "f279f5b8.9d49b8",
- "895a0a53.e12ea8",
- "fa759954.4e2068"
+ "734b2c42.973ee4",
+ "bb8a76ca.fb7058",
+ "a457fe79.46497"
]
]
},
{
- "id": "f7db5396.7b5f1",
+ "id": "f17ff2aa.67075",
"type": "switchNode",
"name": "switch",
"xml": "<switch test=\"`$org.onap.appc.adapter.ansible.result.code`\">\n",
"comments": "",
"outputs": 1,
- "x": 690.9999389648438,
- "y": 530.0000228881836,
- "z": "af8f5cdd.6e4de",
+ "x": 734.9999389648438,
+ "y": 863.0000305175781,
+ "z": "50de34e0.ace54c",
"wires": [
[
- "bc5a2382.4973",
- "84f0dd88.8438",
- "ffd4aab1.e3c4b8"
+ "7ad5787f.1c20f8",
+ "b6f779a3.cc7ed8",
+ "f695f05e.abf31"
]
]
},
{
- "id": "bc5a2382.4973",
+ "id": "7ad5787f.1c20f8",
"type": "other",
"name": "outcome 500",
"xml": "<outcome value='500'>\n",
"comments": "",
"outputs": 1,
- "x": 835.9999389648438,
- "y": 528.0000305175781,
- "z": "af8f5cdd.6e4de",
+ "x": 879.9999389648438,
+ "y": 861.0000381469727,
+ "z": "50de34e0.ace54c",
"wires": [
[
- "80cc4946.3f0f78"
+ "2b54a991.b17b16"
]
]
},
{
- "id": "84f0dd88.8438",
+ "id": "b6f779a3.cc7ed8",
"type": "other",
"name": "outcome 100",
"xml": "<outcome value='100'>\n",
"comments": "",
"outputs": 1,
- "x": 838.9999389648438,
- "y": 571.0000610351562,
- "z": "af8f5cdd.6e4de",
+ "x": 876.9999389648438,
+ "y": 918.0000305175781,
+ "z": "50de34e0.ace54c",
"wires": [
[
- "f44a47b3.3aa128"
+ "1a65bc45.b2fcb4"
]
]
},
{
- "id": "f44a47b3.3aa128",
+ "id": "1a65bc45.b2fcb4",
"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.quiesce-traffic.playbookname`'/>\n\t\n\n\n\n\n",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.adaptors.ansible.AnsibleAdapter' method='reqExecResult' >\n <parameter name='AgentUrl' value='`$prop.ansible.agenturl`'/>\n\t<parameter name='User' value='`$prop.ansible.user`'/>\n\t<parameter name='Password' value='`$prop.ansible.password`'/>\n\t<parameter name='Id' value='`$org.onap.appc.adapter.ansible.Id`'/>\n\t<parameter name='PlaybookName' value='`$playbookname`'/>\n\t\n\n\n\n\n",
"comments": "",
"outputs": 1,
- "x": 1025.9999389648438,
- "y": 570.0000305175781,
- "z": "af8f5cdd.6e4de",
+ "x": 1064.9999389648438,
+ "y": 917.0000305175781,
+ "z": "50de34e0.ace54c",
"wires": [
[
- "dd2fe7e6.957248",
- "6913b982.6c9bb8"
+ "5b0d24c6.9eb0ac",
+ "2b5e4322.1d495c"
]
]
},
{
- "id": "895a0a53.e12ea8",
+ "id": "bb8a76ca.fb7058",
"type": "failure",
"name": "failure",
"xml": "<outcome value='failure'>\n",
"comments": "",
"outputs": 1,
- "x": 581.9999389648438,
- "y": 439.0000534057617,
- "z": "af8f5cdd.6e4de",
+ "x": 593.9999389648438,
+ "y": 776.0000915527344,
+ "z": "50de34e0.ace54c",
"wires": [
[
- "80cc4946.3f0f78"
+ "2b54a991.b17b16"
]
]
},
{
- "id": "f279f5b8.9d49b8",
+ "id": "734b2c42.973ee4",
"type": "other",
"name": "other",
"xml": "<outcome value='Other'>\n",
"comments": "",
"outputs": 1,
- "x": 583.9999389648438,
- "y": 491.0000228881836,
- "z": "af8f5cdd.6e4de",
+ "x": 595.9999389648438,
+ "y": 828.0000610351562,
+ "z": "50de34e0.ace54c",
"wires": [
[
- "f7db5396.7b5f1"
+ "f17ff2aa.67075"
]
]
},
{
- "id": "dd2fe7e6.957248",
+ "id": "5b0d24c6.9eb0ac",
"type": "failure",
"name": "failure",
"xml": "<outcome value='failure'>\n",
"comments": "",
"outputs": 1,
- "x": 1189.9999389648438,
- "y": 542.0000305175781,
- "z": "af8f5cdd.6e4de",
+ "x": 1233.9999389648438,
+ "y": 875.0000381469727,
+ "z": "50de34e0.ace54c",
"wires": [
[
- "80cc4946.3f0f78"
+ "2b54a991.b17b16"
]
]
},
{
- "id": "ffd4aab1.e3c4b8",
+ "id": "f695f05e.abf31",
"type": "other",
"name": "outcome 101",
"xml": "<outcome value='101'>\n",
"comments": "",
"outputs": 1,
- "x": 832.9999389648438,
- "y": 486.00006103515625,
- "z": "af8f5cdd.6e4de",
+ "x": 876.9999389648438,
+ "y": 819.0000686645508,
+ "z": "50de34e0.ace54c",
"wires": [
[
- "80cc4946.3f0f78"
+ "2b54a991.b17b16"
]
]
},
{
- "id": "6913b982.6c9bb8",
+ "id": "2b5e4322.1d495c",
"type": "success",
"name": "success",
"xml": "<outcome value='success'>\n",
"comments": "",
"outputs": 1,
- "x": 1191.9999389648438,
- "y": 597.0000915527344,
- "z": "af8f5cdd.6e4de",
+ "x": 1241.9998779296875,
+ "y": 923.0001220703125,
+ "z": "50de34e0.ace54c",
"wires": [
[
- "14c8dea1.b5b7a1"
+ "db1e6d62.a1404"
]
]
},
{
- "id": "a32993f8.f8215",
+ "id": "c1a2b259.11e46",
"type": "returnSuccess",
"name": "return success",
"xml": "<return status='success'>\n<parameter name='status.code' value='`$org.onap.appc.adapter.ansible.result.code`' />\n<parameter name='status.message' value='`$org.onap.appc.adapter.ansible.message`'/>",
"comments": "",
- "x": 1467.9998779296875,
- "y": 648.0000610351562,
- "z": "af8f5cdd.6e4de",
+ "x": 1535.9998779296875,
+ "y": 980.0000610351562,
+ "z": "50de34e0.ace54c",
"wires": []
},
{
- "id": "d8c3f83d.d0b9d8",
+ "id": "566f9779.c05d38",
"type": "dgstart",
"name": "DGSTART",
"outputs": 1,
- "x": 153,
- "y": 102,
- "z": "af8f5cdd.6e4de",
+ "x": 83,
+ "y": 147,
+ "z": "50de34e0.ace54c",
"wires": [
[
- "c220826b.91906"
+ "5c791eb8.0072b"
]
]
},
{
- "id": "e635fd5d.f4087",
+ "id": "5ccc8e8d.06e5",
"type": "block",
"name": "block",
"xml": "<block>\n",
"atomic": "false",
"comments": "",
"outputs": 1,
- "x": 139.91668701171875,
- "y": 241.08334350585938,
- "z": "af8f5cdd.6e4de",
+ "x": 80.91668701171875,
+ "y": 239.08334350585938,
+ "z": "50de34e0.ace54c",
"wires": [
[
- "810e1e54.dec1c",
- "ee1802be.c5c18",
- "e8d3b31a.f46c6",
- "4d7f56db.9375c8"
+ "3503ece1.d7ad14",
+ "dc18f7c9.2e4ac8",
+ "814875d2.cac108",
+ "e9d89bdf.30f7a8",
+ "69e97f86.e07ef",
+ "fa9a8e1f.bba53",
+ "baba22fc.1ceb5",
+ "81510405.ca8868"
]
]
},
{
- "id": "ee1802be.c5c18",
+ "id": "dc18f7c9.2e4ac8",
"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": 328.00001525878906,
- "y": 225.08334350585938,
- "z": "af8f5cdd.6e4de",
+ "x": 379.0000305175781,
+ "y": 272.0833435058594,
+ "z": "50de34e0.ace54c",
"wires": [
[]
]
},
{
- "id": "3830f5d4.87f1aa",
+ "id": "70d1c79a.089af8",
"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": 1222.9999389648438,
- "y": 371.0833740234375,
- "z": "af8f5cdd.6e4de",
+ "x": 1545.9998779296875,
+ "y": 725.0834045410156,
+ "z": "50de34e0.ace54c",
"wires": [
[
- "1566d659.a0655a"
+ "d776c76b.1dd188"
]
]
},
{
- "id": "1566d659.a0655a",
+ "id": "d776c76b.1dd188",
"type": "failure",
"name": "failure",
"xml": "<outcome value='failure'>\n",
"comments": "",
"outputs": 1,
- "x": 1392.9998779296875,
- "y": 370.0833740234375,
- "z": "af8f5cdd.6e4de",
+ "x": 1715.9998168945312,
+ "y": 724.0834045410156,
+ "z": "50de34e0.ace54c",
"wires": [
[
- "22f8bfd0.6139e"
+ "eac6c260.d11fc"
]
]
},
{
- "id": "80cc4946.3f0f78",
+ "id": "2b54a991.b17b16",
"type": "block",
"name": "block",
"xml": "<block>\n",
"atomic": "false",
"comments": "",
"outputs": 1,
- "x": 1025.9998779296875,
- "y": 395.0833740234375,
- "z": "af8f5cdd.6e4de",
+ "x": 1348.9998168945312,
+ "y": 749.0834045410156,
+ "z": "50de34e0.ace54c",
"wires": [
[
- "3830f5d4.87f1aa",
- "fedbb5e6.fb3c28",
- "898f667e.daf2e8"
+ "70d1c79a.089af8",
+ "7970fcd5.6f11b4",
+ "3d8934f9.d0339c"
]
]
},
{
- "id": "7ce48bed.5b7c74",
+ "id": "e790e11b.4f947",
"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": 1488.4998779296875,
- "y": 597.0833740234375,
- "z": "af8f5cdd.6e4de",
+ "x": 1546.4998779296875,
+ "y": 930.0833740234375,
+ "z": "50de34e0.ace54c",
"wires": [
[
- "37e7fa80.2728b6"
+ "2e13891.034f576"
]
]
},
{
- "id": "37e7fa80.2728b6",
+ "id": "2e13891.034f576",
"type": "failure",
"name": "failure",
"xml": "<outcome value='failure'>\n",
"comments": "",
"outputs": 1,
- "x": 1648.4998779296875,
- "y": 597.0833740234375,
- "z": "af8f5cdd.6e4de",
+ "x": 1714.4998779296875,
+ "y": 930.0833740234375,
+ "z": "50de34e0.ace54c",
"wires": [
[
- "47c7511a.dd8fe"
+ "30475e40.9b8be2"
]
]
},
{
- "id": "22f8bfd0.6139e",
+ "id": "eac6c260.d11fc",
"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": 1524.9998779296875,
- "y": 370.0833740234375,
- "z": "af8f5cdd.6e4de",
+ "x": 1835.9998779296875,
+ "y": 723.0833740234375,
+ "z": "50de34e0.ace54c",
"wires": [
[]
]
},
{
- "id": "fedbb5e6.fb3c28",
+ "id": "7970fcd5.6f11b4",
"type": "returnFailure",
"name": "return failure",
"xml": "<return status='failure'>\n<parameter name='status.code' value='401' />\n<parameter name='status.message' value='`$org.onap.appc.adapter.ansible.message`' />\n",
"comments": "",
- "x": 1197.9165649414062,
- "y": 408.0833740234375,
- "z": "af8f5cdd.6e4de",
+ "x": 1527.91650390625,
+ "y": 776.0834045410156,
+ "z": "50de34e0.ace54c",
"wires": []
},
{
- "id": "47c7511a.dd8fe",
+ "id": "30475e40.9b8be2",
"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": 1769.9166259765625,
- "y": 598.0833740234375,
- "z": "af8f5cdd.6e4de",
+ "x": 1842.9166259765625,
+ "y": 930.0833740234375,
+ "z": "50de34e0.ace54c",
"wires": [
[]
]
},
{
- "id": "898f667e.daf2e8",
+ "id": "3d8934f9.d0339c",
"type": "set",
- "name": "set",
+ "name": "set DmaapReq",
"xml": "<set>\n<parameter name='lcm-dmaap.version' value='`$prop.lcm.dmaap.version`'/>\n<parameter name='lcm-dmaap.correlation-id' value=\"`$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.request-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='`$org.onap.appc.adapter.ansible.result.code`' />\n<parameter name='lcm-dmaap.status.message' value='`$org.onap.appc.adapter.ansible.message`'/>\n",
"comments": "",
- "x": 1174.9999389648438,
- "y": 318.0833740234375,
- "z": "af8f5cdd.6e4de",
+ "x": 1532.9998779296875,
+ "y": 672.0833740234375,
+ "z": "50de34e0.ace54c",
"wires": []
},
{
- "id": "14c8dea1.b5b7a1",
+ "id": "db1e6d62.a1404",
"type": "block",
"name": "block",
"xml": "<block>\n",
"atomic": "false",
"comments": "",
"outputs": 1,
- "x": 1317.9998779296875,
- "y": 596.0833435058594,
- "z": "af8f5cdd.6e4de",
+ "x": 1369.9998779296875,
+ "y": 924.0833740234375,
+ "z": "50de34e0.ace54c",
"wires": [
[
- "7ce48bed.5b7c74",
- "70a28c6a.563d24",
- "a32993f8.f8215"
+ "e790e11b.4f947",
+ "3a3f1d44.898da2",
+ "c1a2b259.11e46"
]
]
},
{
- "id": "70a28c6a.563d24",
+ "id": "3a3f1d44.898da2",
"type": "set",
- "name": "set",
+ "name": "set DmaapReq",
"xml": "<set>\n<parameter name='lcm-dmaap.version' value='`$prop.lcm.dmaap.version`'/>\n<parameter name='lcm-dmaap.correlation-id' value=\"`$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.request-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='`$org.onap.appc.adapter.ansible.result.code`' />\n<parameter name='lcm-dmaap.status.message' value='`$org.onap.appc.adapter.ansible.message`'/>\n",
"comments": "",
- "x": 1448.1666259765625,
- "y": 549.0833740234375,
- "z": "af8f5cdd.6e4de",
+ "x": 1536.1666259765625,
+ "y": 875.0833740234375,
+ "z": "50de34e0.ace54c",
"wires": []
},
{
- "id": "fa759954.4e2068",
+ "id": "a457fe79.46497",
"type": "not-found",
"name": "not-found",
"xml": "<outcome value='not-found'>\n",
"comments": "",
"outputs": 1,
- "x": 577.9999389648438,
- "y": 392.0000228881836,
- "z": "af8f5cdd.6e4de",
+ "x": 602.9999389648438,
+ "y": 728.0000610351562,
+ "z": "50de34e0.ace54c",
"wires": [
[
- "ed41675d.59c088"
+ "3d4c2c9a.7b1324"
]
]
},
{
- "id": "756c2e53.ca6d7",
+ "id": "d512629f.bc625",
"type": "set",
"name": "set Defaults",
"xml": "<set>\n<parameter name='org.onap.appc.adapter.ansible.result.code' value='401'/>\n<parameter name='org.onap.appc.adapter.ansible.message' value='Ansible Adapter was not found'/>\n",
"comments": "",
- "x": 1009.9999389648438,
- "y": 297.0000305175781,
- "z": "af8f5cdd.6e4de",
+ "x": 893.9999389648438,
+ "y": 687,
+ "z": "50de34e0.ace54c",
"wires": []
},
{
- "id": "ed41675d.59c088",
+ "id": "3d4c2c9a.7b1324",
"type": "block",
"name": "block",
"xml": "<block>\n",
"atomic": "false",
"comments": "",
"outputs": 1,
- "x": 761.9999389648438,
- "y": 384.0000228881836,
- "z": "af8f5cdd.6e4de",
+ "x": 739.9999389648438,
+ "y": 722.0000610351562,
+ "z": "50de34e0.ace54c",
"wires": [
[
- "756c2e53.ca6d7",
- "80cc4946.3f0f78"
+ "d512629f.bc625",
+ "2b54a991.b17b16"
]
]
},
{
- "id": "e8d3b31a.f46c6",
+ "id": "814875d2.cac108",
"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<parameter name='nodelist' value=\"`$prop.ansible.nodelist`\"/>",
+ "name": "set default values",
+ "xml": "<set>\n<parameter name='status.code' value='200' />\n<parameter name='status.message' value='unexpected return from DG' />\n<parameter name='quote' value=\"'\" />\n",
"comments": "",
- "x": 336,
- "y": 269,
- "z": "af8f5cdd.6e4de",
+ "x": 372,
+ "y": 319,
+ "z": "50de34e0.ace54c",
"wires": []
},
{
- "id": "4d7f56db.9375c8",
+ "id": "442dbdff.6dfcb4",
"type": "get-resource",
- "name": "get aai.generic-vnf by vnf-id",
+ "name": "get aai.generic-vnf ",
"xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\tresource=\"generic-vnf\" \n\t\tkey=\"generic-vnf.vnf-id = $quiesce-traffic-input.action-identifiers.vnf-id\" \n\t\tlocal-only=\"false\" \n\t\tpfx='aai.generic-vnf'>",
"comments": "",
"outputs": 1,
- "x": 349.0000305175781,
- "y": 325,
- "z": "af8f5cdd.6e4de",
+ "x": 912,
+ "y": 495,
+ "z": "50de34e0.ace54c",
"wires": [
[
- "fa69a126.2a554",
- "f9cb9963.f9e368"
+ "1e57cb28.122ad5"
]
]
},
{
- "id": "fa69a126.2a554",
- "type": "failure",
+ "id": "1e57cb28.122ad5",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1070.3907470703125,
+ "y": 493.28399658203125,
+ "z": "50de34e0.ace54c",
+ "wires": [
+ [
+ "5a65efc0.bf413"
+ ]
+ ]
+ },
+ {
+ "id": "baba22fc.1ceb5",
+ "type": "record",
+ "name": "record",
+ "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder\"> \n\t<parameter name=\"logger\" value=\"message-log\"/> \n\t<parameter name=\"field1\" value='`$playbookname`'/>\n\t<parameter name=\"field2\" value='`$nodelist`'/>",
+ "comments": "",
+ "outputs": 1,
+ "x": 300.9998779296875,
+ "y": 683,
+ "z": "50de34e0.ace54c",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "69e97f86.e07ef",
+ "type": "switchNode",
+ "name": "switch pnf-flag",
+ "xml": "<switch test='`$payloadJson.pnf-flag`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 354,
+ "y": 420,
+ "z": "50de34e0.ace54c",
+ "wires": [
+ [
+ "e43265e9.4c7f38",
+ "d78c93da.7125f"
+ ]
+ ]
+ },
+ {
+ "id": "e9d89bdf.30f7a8",
+ "type": "execute",
+ "name": "execute jsonStringToCtx",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='jsonStringToCtx'>\n\t<parameter name='source' value='quiesce-traffic-input.payload' />\n\t<parameter name='outputPath' value='payloadJson' />\n\t<parameter name='isEscaped' value='true' />",
+ "comments": "",
+ "outputs": 1,
+ "x": 386,
+ "y": 366,
+ "z": "50de34e0.ace54c",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "e43265e9.4c7f38",
+ "type": "outcome",
+ "name": "true",
+ "xml": "<outcome value='true'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 551,
+ "y": 399,
+ "z": "50de34e0.ace54c",
+ "wires": [
+ [
+ "abbc4ae4.be5328"
+ ]
+ ]
+ },
+ {
+ "id": "d78c93da.7125f",
+ "type": "outcome",
"name": "other",
"xml": "<outcome value='Other'>\n",
"comments": "",
"outputs": 1,
- "x": 589.86083984375,
- "y": 312.53564453125,
- "z": "af8f5cdd.6e4de",
+ "x": 550.9999389648438,
+ "y": 460,
+ "z": "50de34e0.ace54c",
"wires": [
[
- "2d1a88c6.11f9d8"
+ "f68ee407.ca6d88"
]
]
},
{
- "id": "f9cb9963.f9e368",
- "type": "success",
- "name": "success",
- "xml": "<outcome value='success'>\n",
+ "id": "f68ee407.ca6d88",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
"comments": "",
"outputs": 1,
- "x": 591.3908081054688,
- "y": 260.28399658203125,
- "z": "af8f5cdd.6e4de",
+ "x": 698.9999389648438,
+ "y": 459,
+ "z": "50de34e0.ace54c",
"wires": [
[
- "c4d4de4d.3e19f"
+ "442dbdff.6dfcb4",
+ "80c560bb.eea5f"
]
]
},
{
- "id": "c4d4de4d.3e19f",
+ "id": "abbc4ae4.be5328",
+ "type": "set",
+ "name": "set AnsibleReq",
+ "xml": "<set>\n<parameter name='nodelist' value=\"`'[' + $quote + $payloadJson.ipaddress-v4-oam + $quote + ']'`\"/>\n<parameter name='playbookname' value='`$prop.lcm.pnf.quiesce-traffic.playbookname`'/>\n",
+ "comments": "",
+ "x": 712,
+ "y": 397,
+ "z": "50de34e0.ace54c",
+ "wires": []
+ },
+ {
+ "id": "80c560bb.eea5f",
+ "type": "execute",
+ "name": "set playbookname",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'>\n\t<parameter name='outputPath' value='playbookname' />\n\t<parameter name='source' value=\"`'prop.lcm.' + $payloadJson.nf-naming-code + '.quiesce-traffic.playbookname'`\" />\n\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 921,
+ "y": 439,
+ "z": "50de34e0.ace54c",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "fa9a8e1f.bba53",
+ "type": "switchNode",
+ "name": "switch playbookname",
+ "xml": "<switch test='`$playbookname`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 351,
+ "y": 551,
+ "z": "50de34e0.ace54c",
+ "wires": [
+ [
+ "1a5624d2.74e98b"
+ ]
+ ]
+ },
+ {
+ "id": "1a5624d2.74e98b",
+ "type": "outcome",
+ "name": "null",
+ "xml": "<outcome value=''>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 522,
+ "y": 552,
+ "z": "50de34e0.ace54c",
+ "wires": [
+ [
+ "524c17a1.30fbf8"
+ ]
+ ]
+ },
+ {
+ "id": "524c17a1.30fbf8",
+ "type": "set",
+ "name": "set playbookname",
+ "xml": "<set>\n<parameter name='nodelist' value=\"`$prop.ansible.nodelist`\"/>\n<parameter name='playbookname' value='`$prop.lcm.quiesce-traffic.playbookname`'/>",
+ "comments": "",
+ "x": 712,
+ "y": 551,
+ "z": "50de34e0.ace54c",
+ "wires": []
+ },
+ {
+ "id": "81510405.ca8868",
+ "type": "switchNode",
+ "name": "switch nodelist",
+ "xml": "<switch test='`$nodelist`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 341,
+ "y": 610,
+ "z": "50de34e0.ace54c",
+ "wires": [
+ [
+ "7a126f.d2de2d9",
+ "8743a074.e8506"
+ ]
+ ]
+ },
+ {
+ "id": "7a126f.d2de2d9",
+ "type": "outcome",
+ "name": "null",
+ "xml": "<outcome value=''>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 521,
+ "y": 603,
+ "z": "50de34e0.ace54c",
+ "wires": [
+ [
+ "c954af6f.c34df"
+ ]
+ ]
+ },
+ {
+ "id": "c954af6f.c34df",
"type": "set",
"name": "set nodelist",
- "xml": "<set>\n<parameter name='quote' value=\"'\" />\n<parameter name='nodelist' value=\"`'[' + $quote + $aai.ipv4-oam-address + $quote + ']'`\"/>\n",
+ "xml": "<set>\n<parameter name='nodelist' value=\"`$prop.ansible.nodelist`\"/>",
"comments": "",
- "x": 740.3908081054688,
- "y": 259.28399658203125,
- "z": "af8f5cdd.6e4de",
+ "x": 678,
+ "y": 617,
+ "z": "50de34e0.ace54c",
"wires": []
},
{
- "id": "2d1a88c6.11f9d8",
- "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='VNF not found in AAI. Nodelist retrieved from config'/>",
+ "id": "8743a074.e8506",
+ "type": "outcome",
+ "name": "empty",
+ "xml": "<outcome value=\"['']\">\n\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 520,
+ "y": 647,
+ "z": "50de34e0.ace54c",
+ "wires": [
+ [
+ "c954af6f.c34df"
+ ]
+ ]
+ },
+ {
+ "id": "90b2891b.001708",
+ "type": "switchNode",
+ "name": "switch playbookname",
+ "xml": "<switch test='`$playbookname`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1396,
+ "y": 482,
+ "z": "50de34e0.ace54c",
+ "wires": [
+ [
+ "c9dd0d76.432f7"
+ ]
+ ]
+ },
+ {
+ "id": "c9dd0d76.432f7",
+ "type": "outcome",
+ "name": "null",
+ "xml": "<outcome value=''>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1574,
+ "y": 482,
+ "z": "50de34e0.ace54c",
+ "wires": [
+ [
+ "6ea15b2b.d9cd74"
+ ]
+ ]
+ },
+ {
+ "id": "9706bdee.6acf9",
+ "type": "set",
+ "name": "set nodelist",
+ "xml": "<set>\n<parameter name='nodelist' value=\"`'[' + $quote + $aai.generic-vnf.ipv4-oam-address + $quote + ']'`\"/>\n",
+ "comments": "",
+ "x": 1369,
+ "y": 535,
+ "z": "50de34e0.ace54c",
+ "wires": []
+ },
+ {
+ "id": "5a65efc0.bf413",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 1199,
+ "y": 492,
+ "z": "50de34e0.ace54c",
+ "wires": [
+ [
+ "90b2891b.001708",
+ "9706bdee.6acf9"
+ ]
+ ]
+ },
+ {
+ "id": "6ea15b2b.d9cd74",
+ "type": "execute",
+ "name": "set playbookname",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'>\n\t<parameter name='outputPath' value='playbookname' />\n\t<parameter name='source' value=\"`'prop.lcm.' + $aai.generic-vnf.nf-naming-code + '.quiesce-traffic.playbookname'`\" />\n\n",
"comments": "",
"outputs": 1,
- "x": 736,
- "y": 312,
- "z": "af8f5cdd.6e4de",
+ "x": 1746,
+ "y": 480,
+ "z": "50de34e0.ace54c",
"wires": [
[]
]
|