summaryrefslogtreecommitdiffstats
path: root/platform-logic/optical-service/src/main/json/optical-service_optical-service-create.json
diff options
context:
space:
mode:
Diffstat (limited to 'platform-logic/optical-service/src/main/json/optical-service_optical-service-create.json')
-rw-r--r--platform-logic/optical-service/src/main/json/optical-service_optical-service-create.json1059
1 files changed, 887 insertions, 172 deletions
diff --git a/platform-logic/optical-service/src/main/json/optical-service_optical-service-create.json b/platform-logic/optical-service/src/main/json/optical-service_optical-service-create.json
index 6b76a2d5..3d5395ed 100644
--- a/platform-logic/optical-service/src/main/json/optical-service_optical-service-create.json
+++ b/platform-logic/optical-service/src/main/json/optical-service_optical-service-create.json
@@ -1,36 +1,36 @@
[
{
- "id": "a60c3a75.bbec5",
+ "id": "19b0a312.c6518d",
"type": "dgstart",
"name": "DGSTART",
"outputs": 1,
- "x": 213,
- "y": 182,
- "z": "f1813121.5d5738",
+ "x": 304,
+ "y": 94,
+ "z": "6aec8519.596ebc",
"wires": [
[
- "5b510e2a.808e9"
+ "81c1d0fa.bcc35"
]
]
},
{
- "id": "c50c5fff.124b48",
+ "id": "e56e4f2c.7f32c",
"type": "method",
"name": "method",
"xml": "<method rpc='optical-service-create' mode='sync'>\n",
"comments": "",
"outputs": 1,
- "x": 212,
- "y": 257,
- "z": "f1813121.5d5738",
+ "x": 303,
+ "y": 169,
+ "z": "6aec8519.596ebc",
"wires": [
[
- "95411f3f.dd7f98"
+ "8a27eddd.8659"
]
]
},
{
- "id": "5b510e2a.808e9",
+ "id": "81c1d0fa.bcc35",
"type": "service-logic",
"name": "optical-service ${project.version}",
"module": "optical-service",
@@ -38,330 +38,1045 @@
"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='optical-service' version='${project.version}'>",
"outputs": 1,
- "x": 430.5,
- "y": 165,
- "z": "f1813121.5d5738",
+ "x": 521.5,
+ "y": 77,
+ "z": "6aec8519.596ebc",
"wires": [
[
- "c50c5fff.124b48"
+ "e56e4f2c.7f32c"
]
]
},
{
- "id": "95411f3f.dd7f98",
+ "id": "8a27eddd.8659",
"type": "block",
"name": "block : atomic",
"xml": "<block atomic='true'>",
"atomic": "true",
"comments": "",
"outputs": 1,
- "x": 388,
- "y": 270,
- "z": "f1813121.5d5738",
+ "x": 395,
+ "y": 250.00000762939453,
+ "z": "6aec8519.596ebc",
"wires": [
[
- "3ce1c2e1.3b2f6e",
- "4f2664fb.690704",
- "8396ec44.a3b3f",
- "98a2e7e3.d11d58",
- "dbd48c3a.1af36",
- "79f9f3f0.aa019c",
- "a32436b4.dcfeb8",
- "6cb71359.685f54"
+ "cb83a0f.af4db6",
+ "c467f6e9.a09748",
+ "27820288.3245de",
+ "eb2c1d7a.9bc0f",
+ "812b7088.1c2e1",
+ "f6999b39.46ee28",
+ "faed5cf2.7521c",
+ "281e3ae5.c7e156",
+ "f4302cf0.c694f",
+ "9cecb747.fbb8f8",
+ "4ff206b2.2a38f8"
]
]
},
{
- "id": "4f2664fb.690704",
+ "id": "cb83a0f.af4db6",
+ "type": "for",
+ "name": "for",
+ "xml": "<for index='idx' start='0' end='`$optical-service-create-input.payload.param_length`' >\n \n \n \n\n\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 527.9999694824219,
+ "y": 214.00000762939453,
+ "z": "6aec8519.596ebc",
+ "wires": [
+ [
+ "c2bd7688.8306a8",
+ "e0cd029e.1c401",
+ "c08c879e.8aa398",
+ "e5d38e0f.c60ef",
+ "e48f435a.a53b1",
+ "cd52a71e.a07748",
+ "96ffe338.d9102",
+ "307d0ddd.cbbf82",
+ "6c345065.66388",
+ "6b15a6f5.41dc08",
+ "708a333d.a59a6c",
+ "930d48ba.7db8c8",
+ "2bad3261.39a7be"
+ ]
+ ]
+ },
+ {
+ "id": "c2bd7688.8306a8",
"type": "switchNode",
- "name": "switch : domain-type",
- "xml": "<switch test='`$optical-service-create-input.payload.domain-type`'>\n \n",
+ "name": "switch uni1",
+ "xml": "<switch test=\"`$optical-service-create-input.payload.param[$idx].name == 'uni1_id'`\">\n",
"comments": "",
"outputs": 1,
- "x": 265.5,
- "y": 583,
- "z": "f1813121.5d5738",
+ "x": 747.9999694824219,
+ "y": 112.00001525878906,
+ "z": "6aec8519.596ebc",
"wires": [
[
- "d95d35a6.d10db",
- "6077e8a.adc5618"
+ "e2160d67.6a214"
]
]
},
{
- "id": "d95d35a6.d10db",
- "type": "outcome",
- "name": "MSA",
- "xml": "<outcome value='MSA'>\n",
+ "id": "930d48ba.7db8c8",
+ "type": "set",
+ "name": "set parameter",
+ "xml": "<set>\n<parameter name='params' value='`$optical-service-create-input.payload.param[$idx]`' />\n",
+ "comments": "",
+ "x": 776.9999694824219,
+ "y": 62.00000762939453,
+ "z": "6aec8519.596ebc",
+ "wires": []
+ },
+ {
+ "id": "e2160d67.6a214",
+ "type": "outcomeTrue",
+ "name": "true",
+ "xml": "<outcome value='true'>\n",
"comments": "",
"outputs": 1,
- "x": 568,
- "y": 553,
- "z": "f1813121.5d5738",
+ "x": 911.9999694824219,
+ "y": 114.00001525878906,
+ "z": "6aec8519.596ebc",
"wires": [
[
- "7a015c66.3154ec"
+ "4c25de7b.31204"
]
]
},
{
- "id": "6077e8a.adc5618",
- "type": "outcome",
- "name": "TAPI",
- "xml": "<outcome value='TAPI'>\n",
+ "id": "4c25de7b.31204",
+ "type": "set",
+ "name": "set",
+ "xml": "<set>\n<parameter name='optical-service-create-input.payload.service-aend.port-id' value=\"`$optical-service-create-input.payload.param[$idx].value`\"/>\n",
+ "comments": "",
+ "x": 1051.9999694824219,
+ "y": 109.00001525878906,
+ "z": "6aec8519.596ebc",
+ "wires": []
+ },
+ {
+ "id": "e0cd029e.1c401",
+ "type": "switchNode",
+ "name": "switch uni2",
+ "xml": "<switch test=\"`$optical-service-create-input.payload.param[$idx].name == 'uni2_id'`\">\n",
"comments": "",
"outputs": 1,
- "x": 564,
- "y": 662,
- "z": "f1813121.5d5738",
+ "x": 747.9999694824219,
+ "y": 193.00000762939453,
+ "z": "6aec8519.596ebc",
"wires": [
[
- "ebb70e0a.9be68"
+ "6209659e.61d4fc"
]
]
},
{
- "id": "3ce1c2e1.3b2f6e",
- "type": "execute",
- "name": "execute",
- "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.prop.PropertiesNode' method='readProperties' >\n<parameter name='fileName' value='/opt/onap/sdnc/data/properties/optical-service-dg.properties' />\n<parameter name='contextPrefix' value='prop' />\n",
+ "id": "6209659e.61d4fc",
+ "type": "outcomeTrue",
+ "name": "true",
+ "xml": "<outcome value='true'>\n",
"comments": "",
"outputs": 1,
- "x": 770,
- "y": 145,
- "z": "f1813121.5d5738",
+ "x": 906.9999694824219,
+ "y": 198.00000762939453,
+ "z": "6aec8519.596ebc",
"wires": [
- []
+ [
+ "6da07ddf.5b16c4"
+ ]
]
},
{
- "id": "7a015c66.3154ec",
- "type": "block",
- "name": "block : atomic",
- "xml": "<block atomic='true'>",
- "atomic": "true",
+ "id": "6da07ddf.5b16c4",
+ "type": "set",
+ "name": "set",
+ "xml": "<set>\n<parameter name='optical-service-create-input.payload.service-zend.port-id' value=\"`$optical-service-create-input.payload.param[$idx].value`\"/>\n",
+ "comments": "",
+ "x": 1041.9999694824219,
+ "y": 195.00000762939453,
+ "z": "6aec8519.596ebc",
+ "wires": []
+ },
+ {
+ "id": "c08c879e.8aa398",
+ "type": "switchNode",
+ "name": "switch uni1 coding_func",
+ "xml": "<switch test=\"`$optical-service-create-input.payload.param[$idx].name == 'uni1_coding_func'`\">\n",
"comments": "",
"outputs": 1,
- "x": 756,
- "y": 554,
- "z": "f1813121.5d5738",
+ "x": 751.9999694824219,
+ "y": 289.9999771118164,
+ "z": "6aec8519.596ebc",
"wires": [
[
- "3e4acd01.4d0db2"
+ "a209861e.a84c68"
]
]
},
{
- "id": "ebb70e0a.9be68",
- "type": "block",
- "name": "block : atomic",
- "xml": "<block atomic='true'>",
- "atomic": "true",
+ "id": "a209861e.a84c68",
+ "type": "outcomeTrue",
+ "name": "true",
+ "xml": "<outcome value='true'>\n",
"comments": "",
"outputs": 1,
- "x": 749,
- "y": 667,
- "z": "f1813121.5d5738",
+ "x": 949.9999694824219,
+ "y": 289.9999771118164,
+ "z": "6aec8519.596ebc",
"wires": [
[
- "9e442bec.ab7e8"
+ "400f8845.d561c8"
]
]
},
{
- "id": "8396ec44.a3b3f",
- "type": "call",
- "name": "call validate-input-parameters",
- "xml": "<call module='optical-service' rpc='optical-validate-input-params' mode='sync' >\n",
+ "id": "400f8845.d561c8",
+ "type": "set",
+ "name": "set",
+ "xml": "<set>\n<parameter name='optical-service-create-input.payload.service-rate' value=\"`$optical-service-create-input.payload.param[$idx].value`\"/>\n\n\n\n",
+ "comments": "",
+ "x": 1086.9999694824219,
+ "y": 286.9999771118164,
+ "z": "6aec8519.596ebc",
+ "wires": []
+ },
+ {
+ "id": "e5d38e0f.c60ef",
+ "type": "switchNode",
+ "name": "switch uni",
+ "xml": "<switch test=\"`$optical-service-create-input.payload.param[$idx].name == 'uni_id'`\">\n",
"comments": "",
"outputs": 1,
- "x": 856,
- "y": 92,
- "z": "f1813121.5d5738",
+ "x": 720.9999694824219,
+ "y": 380.9999465942383,
+ "z": "6aec8519.596ebc",
"wires": [
- []
+ [
+ "43b24bcd.988c54"
+ ]
]
},
{
- "id": "9e442bec.ab7e8",
- "type": "call",
- "name": "call TAPI DG",
- "xml": "<call module='optical-service' rpc='service-create-tapi' mode='sync' >\n",
+ "id": "43b24bcd.988c54",
+ "type": "outcomeTrue",
+ "name": "true",
+ "xml": "<outcome value='true'>\n",
"comments": "",
"outputs": 1,
- "x": 948,
- "y": 665,
- "z": "f1813121.5d5738",
+ "x": 864.9999694824219,
+ "y": 383.9999465942383,
+ "z": "6aec8519.596ebc",
"wires": [
- []
+ [
+ "a79c959.2645a68"
+ ]
]
},
{
- "id": "3e4acd01.4d0db2",
- "type": "call",
- "name": "call MSA DG",
- "xml": "<call module='optical-service' rpc='service-create-msa' mode='sync' >\n",
+ "id": "a79c959.2645a68",
+ "type": "set",
+ "name": "set",
+ "xml": "<set>\n<parameter name='optical-service-create-input.payload.service-aend.port-id' value=\"`$optical-service-create-input.payload.param[$idx].value`\"/>\n",
+ "comments": "",
+ "x": 1019.9999694824219,
+ "y": 381.9999465942383,
+ "z": "6aec8519.596ebc",
+ "wires": []
+ },
+ {
+ "id": "e48f435a.a53b1",
+ "type": "switchNode",
+ "name": "switch enni",
+ "xml": "<switch test=\"`$optical-service-create-input.payload.param[$idx].name == 'enni_id'`\">\n",
"comments": "",
"outputs": 1,
- "x": 960,
- "y": 550,
- "z": "f1813121.5d5738",
+ "x": 709.9999694824219,
+ "y": 441.9999465942383,
+ "z": "6aec8519.596ebc",
"wires": [
- []
+ [
+ "2e88bf81.cdfcc"
+ ]
+ ]
+ },
+ {
+ "id": "2e88bf81.cdfcc",
+ "type": "outcomeTrue",
+ "name": "true",
+ "xml": "<outcome value='true'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 866.9999694824219,
+ "y": 449.9999465942383,
+ "z": "6aec8519.596ebc",
+ "wires": [
+ [
+ "6cecdd4e.699c54"
+ ]
+ ]
+ },
+ {
+ "id": "6cecdd4e.699c54",
+ "type": "set",
+ "name": "set",
+ "xml": "<set>\n<parameter name='optical-service-create-input.payload.service-zend.port-id' value=\"`$optical-service-create-input.payload.param[$idx].value`\"/>\n",
+ "comments": "",
+ "x": 1028.9999694824219,
+ "y": 461.9999465942383,
+ "z": "6aec8519.596ebc",
+ "wires": []
+ },
+ {
+ "id": "cd52a71e.a07748",
+ "type": "switchNode",
+ "name": "switch uni coding_func",
+ "xml": "<switch test=\"`$optical-service-create-input.payload.param[$idx].name == 'uni_coding_func'`\">\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 725.9999694824219,
+ "y": 498.4000015258789,
+ "z": "6aec8519.596ebc",
+ "wires": [
+ [
+ "423b71c7.c87b8"
+ ]
+ ]
+ },
+ {
+ "id": "423b71c7.c87b8",
+ "type": "outcomeTrue",
+ "name": "true",
+ "xml": "<outcome value='true'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 915.9999694824219,
+ "y": 502.4000015258789,
+ "z": "6aec8519.596ebc",
+ "wires": [
+ [
+ "48fc9f8f.e1214"
+ ]
]
},
{
- "id": "98a2e7e3.d11d58",
+ "id": "48fc9f8f.e1214",
+ "type": "set",
+ "name": "set",
+ "xml": "<set>\n<parameter name='optical-service-create-input.payload.service-rate' value=\"`$optical-service-create-input.payload.param[$idx].value`\"/>\n",
+ "comments": "",
+ "x": 1055.9999694824219,
+ "y": 508.4000015258789,
+ "z": "6aec8519.596ebc",
+ "wires": []
+ },
+ {
+ "id": "96ffe338.d9102",
+ "type": "switchNode",
+ "name": "switch enni1",
+ "xml": "<switch test=\"`$optical-service-create-input.payload.param[$idx].name == 'enni1_id'`\">\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 701.9999694824219,
+ "y": 556.4000015258789,
+ "z": "6aec8519.596ebc",
+ "wires": [
+ [
+ "b119e02f.85a12"
+ ]
+ ]
+ },
+ {
+ "id": "307d0ddd.cbbf82",
+ "type": "switchNode",
+ "name": "switch enni2",
+ "xml": "<switch test=\"`$optical-service-create-input.payload.param[$idx].name == 'enni2_id'`\">\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 697.9999694824219,
+ "y": 623.4000015258789,
+ "z": "6aec8519.596ebc",
+ "wires": [
+ [
+ "6a8649d8.5b4328"
+ ]
+ ]
+ },
+ {
+ "id": "b119e02f.85a12",
+ "type": "outcomeTrue",
+ "name": "true",
+ "xml": "<outcome value='true'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 869.9999694824219,
+ "y": 559.4000015258789,
+ "z": "6aec8519.596ebc",
+ "wires": [
+ [
+ "78577f48.191f5"
+ ]
+ ]
+ },
+ {
+ "id": "6a8649d8.5b4328",
+ "type": "outcomeTrue",
+ "name": "true",
+ "xml": "<outcome value='true'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 860.9999694824219,
+ "y": 627.4000015258789,
+ "z": "6aec8519.596ebc",
+ "wires": [
+ [
+ "260a366a.9008da"
+ ]
+ ]
+ },
+ {
+ "id": "78577f48.191f5",
+ "type": "set",
+ "name": "set",
+ "xml": "<set>\n<parameter name='optical-service-create-input.payload.service-aend.port-id' value=\"`$optical-service-create-input.payload.param[$idx].value`\"/>\n",
+ "comments": "",
+ "x": 1010.9999694824219,
+ "y": 558.4000015258789,
+ "z": "6aec8519.596ebc",
+ "wires": []
+ },
+ {
+ "id": "260a366a.9008da",
+ "type": "set",
+ "name": "set",
+ "xml": "<set>\n<parameter name='optical-service-create-input.payload.service-zend.port-id' value=\"`$optical-service-create-input.payload.param[$idx].value`\"/>\n",
+ "comments": "",
+ "x": 994.9999694824219,
+ "y": 631.4000015258789,
+ "z": "6aec8519.596ebc",
+ "wires": []
+ },
+ {
+ "id": "6c345065.66388",
+ "type": "switchNode",
+ "name": "switch uni coding_func",
+ "xml": "<switch test=\"`$optical-service-create-input.payload.param[$idx].name == 'enni1_coding_func'`\">\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 703.9999694824219,
+ "y": 667.8000259399414,
+ "z": "6aec8519.596ebc",
+ "wires": [
+ [
+ "109cf4b6.34d27b"
+ ]
+ ]
+ },
+ {
+ "id": "109cf4b6.34d27b",
+ "type": "outcomeTrue",
+ "name": "true",
+ "xml": "<outcome value='true'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 873.9999694824219,
+ "y": 671.8000259399414,
+ "z": "6aec8519.596ebc",
+ "wires": [
+ [
+ "a04925ba.233548"
+ ]
+ ]
+ },
+ {
+ "id": "a04925ba.233548",
+ "type": "set",
+ "name": "set",
+ "xml": "<set>\n<parameter name='optical-service-create-input.payload.service-rate' value=\"`$optical-service-create-input.payload.param[$idx].value`\"/>\n",
+ "comments": "",
+ "x": 1017.9999694824219,
+ "y": 682.8000259399414,
+ "z": "6aec8519.596ebc",
+ "wires": []
+ },
+ {
+ "id": "c467f6e9.a09748",
+ "type": "get-resource",
+ "name": "get controller_id from DB",
+ "xml": "<get-resource plugin='org.onap.ccsdk.sli.adaptors.resource.sql.SqlResource' resource='SQL' \nkey='SELECT controller_id \nfrom TOPOLOGY_LOGICAL_RELATION_TO_PINTERFACE \nWHERE interface_name = $optical-service-create-input.payload.service-aend.port-id' \npfx='db.source1'>\n \n \n \n \n \n \n \n \n",
+ "comments": "",
+ "outputs": 1,
+ "x": 687.9999694824219,
+ "y": 761.6000137329102,
+ "z": "6aec8519.596ebc",
+ "wires": [
+ [
+ "ea6ce722.102db8"
+ ]
+ ]
+ },
+ {
+ "id": "27820288.3245de",
"type": "get-resource",
- "name": "get resources from DB -controller_id",
- "xml": "<get-resource plugin='org.onap.ccsdk.sli.adaptors.resource.sql.SqlResource' resource='SQL'\nkey='SELECT controller_id\nfrom TOPOLOGY_LOGICAL_RELATION_TO_PINTERFACE\nWHERE interface_name = $optical-service-create-input.payload.service-aend.port-id\nAND interface_id = $optical-service-create-input.payload.service-aend.port-name'\npfx='controllerid'>\n \n \n \n \n \n \n \n \n \n\n \n \n \n \n \n \n \n \n \n \n \n \n\n \n \n \n \n \n \n \n \n \n \n",
+ "name": "get controller_id from DB",
+ "xml": "<get-resource plugin='org.onap.ccsdk.sli.adaptors.resource.sql.SqlResource' resource='SQL' \nkey='SELECT controller_id \nfrom TOPOLOGY_LOGICAL_RELATION_TO_PINTERFACE \nWHERE interface_name = $optical-service-create-input.payload.service-zend.port-id' \npfx='db.source2'>\n \n \n \n \n \n \n \n \n",
"comments": "",
"outputs": 1,
- "x": 746,
- "y": 230,
- "z": "f1813121.5d5738",
+ "x": 668,
+ "y": 846.6000137329102,
+ "z": "6aec8519.596ebc",
"wires": [
[
- "130f8c79.83a0ec"
+ "2351ae73.eacf92"
]
]
},
{
- "id": "dbd48c3a.1af36",
+ "id": "89a07cd5.0252",
+ "type": "set",
+ "name": "set",
+ "xml": "<set>\n<parameter name='controller1' value=\"`$db.source1.controller-id`\"/>\n",
+ "comments": "",
+ "x": 1012.9999694824219,
+ "y": 764.6000137329102,
+ "z": "6aec8519.596ebc",
+ "wires": []
+ },
+ {
+ "id": "9eef6461.fbaa98",
+ "type": "set",
+ "name": "set",
+ "xml": "<set>\n<parameter name='controller2' value=\"`$db.source2.controller-id`\"/>\n",
+ "comments": "",
+ "x": 1009.9999694824219,
+ "y": 853.6000137329102,
+ "z": "6aec8519.596ebc",
+ "wires": []
+ },
+ {
+ "id": "4ff206b2.2a38f8",
+ "type": "switchNode",
+ "name": "controllers-id check",
+ "xml": "<switch test='`$controller1==$controller2`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 105.99996948242188,
+ "y": 1354.5999755859375,
+ "z": "6aec8519.596ebc",
+ "wires": [
+ [
+ "6d524179.31442",
+ "29c9a077.5048"
+ ]
+ ]
+ },
+ {
+ "id": "6d524179.31442",
+ "type": "outcomeTrue",
+ "name": "true",
+ "xml": "<outcome value='true'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 373.89996337890625,
+ "y": 1285.89990234375,
+ "z": "6aec8519.596ebc",
+ "wires": [
+ [
+ "77e4cb5c.3ea374"
+ ]
+ ]
+ },
+ {
+ "id": "7fa6e0ba.8dc59",
+ "type": "call",
+ "name": "main-create",
+ "xml": "<call module='optical-service' rpc='main-create' mode='sync' >\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 705.9000244140625,
+ "y": 1277.9000244140625,
+ "z": "6aec8519.596ebc",
+ "wires": [
+ [
+ "a084b4d3.d2ad68"
+ ]
+ ]
+ },
+ {
+ "id": "29c9a077.5048",
+ "type": "outcomeFalse",
+ "name": "false",
+ "xml": "<outcome value='false'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 377.89996337890625,
+ "y": 1460.9000244140625,
+ "z": "6aec8519.596ebc",
+ "wires": [
+ [
+ "3686da83.318ed6"
+ ]
+ ]
+ },
+ {
+ "id": "eb2c1d7a.9bc0f",
"type": "execute",
"name": "split node-id a-end retrieved from DB",
- "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='split' >\n<parameter name=\"original_string\" value='`$controller-id`'/>\n<parameter name=\"regex\" value=\"_\"/>\n<parameter name=\"ctx_memory_result_key\" value=\"param-prefix\"/>\n",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='split' >\n<parameter name=\"original_string\" value='`$controller1`'/>\n<parameter name=\"regex\" value=\"_\"/>\n<parameter name=\"ctx_memory_result_key\" value=\"param-prefix1\"/>\n",
"comments": "",
"outputs": 1,
- "x": 765,
- "y": 283,
- "z": "f1813121.5d5738",
+ "x": 679.8999633789062,
+ "y": 902.9000015258789,
+ "z": "6aec8519.596ebc",
"wires": [
[]
]
},
{
- "id": "130f8c79.83a0ec",
- "type": "success",
- "name": "success",
- "xml": "<outcome value='success'>\n",
+ "id": "812b7088.1c2e1",
+ "type": "execute",
+ "name": "split node-id a-end retrieved from DB",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='split' >\n<parameter name=\"original_string\" value='`$controller2`'/>\n<parameter name=\"regex\" value=\"_\"/>\n<parameter name=\"ctx_memory_result_key\" value=\"param-prefix2\"/>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 667.8999938964844,
+ "y": 950.9000015258789,
+ "z": "6aec8519.596ebc",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "f6999b39.46ee28",
+ "type": "set",
+ "name": "set controller-ip",
+ "xml": "<set>\n<parameter name='controller-ip1' value='`$param-prefix1[1]`' />\n<parameter name='domain-type1' value='`$param-prefix1[0]`' />\n<parameter name='controller-ip2' value='`$param-prefix2[1]`' />\n<parameter name='domain-type2' value='`$param-prefix2[0]`' />\n ",
+ "comments": "",
+ "x": 592.75,
+ "y": 998.7499771118164,
+ "z": "6aec8519.596ebc",
+ "wires": []
+ },
+ {
+ "id": "3686da83.318ed6",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
"comments": "",
"outputs": 1,
- "x": 976,
- "y": 229,
- "z": "f1813121.5d5738",
+ "x": 519.566650390625,
+ "y": 1458.566650390625,
+ "z": "6aec8519.596ebc",
"wires": [
[
- "526e75aa.f179f4"
+ "7f7dd90.ca00828",
+ "402e803d.bb4b3",
+ "f46024a4.178778",
+ "4cfee8aa.5fe5e8",
+ "ddc83fd9.94789"
]
]
},
{
- "id": "526e75aa.f179f4",
+ "id": "7f7dd90.ca00828",
"type": "set",
"name": "set",
- "xml": "<set>\n<parameter name='controller-id' value='`$controllerid.controller-id`' />\n\n\n\n\n\n\n\n\n\n\n",
+ "xml": "<set>\n<parameter name='access-aend' value=\"`$optical-service-create-input.payload.service-aend.port-id`\"/>\n<parameter name='access-zend' value=\"`$optical-service-create-input.payload.service-zend.port-id`\"/>\n",
"comments": "",
- "x": 1129,
- "y": 232,
- "z": "f1813121.5d5738",
+ "x": 690.6499710083008,
+ "y": 1577.6500482559204,
+ "z": "6aec8519.596ebc",
"wires": []
},
{
- "id": "79f9f3f0.aa019c",
- "type": "set",
- "name": "set controller-ip",
- "xml": "<set>\n<parameter name='controller-ip' value='`$param-prefix[1]`' />\n",
+ "id": "ddc83fd9.94789",
+ "type": "call",
+ "name": "inter-domain DG",
+ "xml": "<call module='optical-service' rpc='inter-domain-handling' mode='sync' >\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 682.1499710083008,
+ "y": 1692.6500492095947,
+ "z": "6aec8519.596ebc",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "77e4cb5c.3ea374",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 529.8999633789062,
+ "y": 1282.9000244140625,
+ "z": "6aec8519.596ebc",
+ "wires": [
+ [
+ "aa333758.2eb158",
+ "c56b33b.5b1d4d",
+ "dfbe19a.ac6e1e8",
+ "9217e91.3f8cc18",
+ "7fa6e0ba.8dc59"
+ ]
+ ]
+ },
+ {
+ "id": "d28a3ef1.7ab4b",
+ "type": "switchNode",
+ "name": "switch",
+ "xml": "<switch test='`$final-response-code`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 924.9000244140625,
+ "y": 1190.9000244140625,
+ "z": "6aec8519.596ebc",
+ "wires": [
+ [
+ "516af1e8.b7429"
+ ]
+ ]
+ },
+ {
+ "id": "516af1e8.b7429",
+ "type": "outcome",
+ "name": "200",
+ "xml": "<outcome value='200'>\n",
"comments": "",
- "x": 705,
- "y": 341,
- "z": "f1813121.5d5738",
+ "outputs": 1,
+ "x": 1062.9000244140625,
+ "y": 1183.9000244140625,
+ "z": "6aec8519.596ebc",
+ "wires": [
+ [
+ "8514f080.cd77"
+ ]
+ ]
+ },
+ {
+ "id": "9457262f.dafa78",
+ "type": "returnSuccess",
+ "name": "return success",
+ "xml": "<return status='success'>\n<parameter name='error-code' value='200' />\n<parameter name='error-message' value='Service Created Successfully' />\n<parameter name='ack-final-indicator' value='Y' />\n",
+ "comments": "",
+ "x": 1362.9000244140625,
+ "y": 1226.9000244140625,
+ "z": "6aec8519.596ebc",
"wires": []
},
{
- "id": "a32436b4.dcfeb8",
- "type": "get-resource",
- "name": "get-resource",
- "xml": "<get-resource plugin='org.onap.ccsdk.sli.adaptors.resource.sql.SqlResource' resource='SQL'\nkey='SELECT *\nfrom TOPOLOGY_LOGICAL_RELATION_TO_PINTERFACE\nWHERE interface_name = $optical-service-create-input.payload.service-aend.port-id\nAND interface_id = $optical-service-create-input.payload.service-aend.port-name'\npfx='db-aend'>\n \n \n \n \n \n \n \n \n \n\n \n \n \n \n \n \n \n \n \n \n \n \n\n \n \n \n \n \n \n \n \n \n \n",
+ "id": "8514f080.cd77",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
"comments": "",
"outputs": 1,
- "x": 616,
- "y": 405,
- "z": "f1813121.5d5738",
+ "x": 1200.9000244140625,
+ "y": 1179.9000244140625,
+ "z": "6aec8519.596ebc",
"wires": [
[
- "73558010.2c724"
+ "9457262f.dafa78",
+ "d89f6cb.9d2869",
+ "90dcc928.7bcbc8"
]
]
},
{
- "id": "6cb71359.685f54",
- "type": "get-resource",
- "name": "get-resource",
- "xml": "<get-resource plugin='org.onap.ccsdk.sli.adaptors.resource.sql.SqlResource' resource='SQL'\nkey='SELECT *\nfrom TOPOLOGY_LOGICAL_RELATION_TO_PINTERFACE\nWHERE interface_name = $optical-service-create-input.payload.service-zend.port-id\nAND interface_id = $optical-service-create-input.payload.service-zend.port-name'\npfx='db-zend'>\n \n \n \n \n \n \n \n \n \n\n \n \n \n \n \n \n \n \n \n \n \n \n\n \n \n \n \n \n \n \n \n \n \n",
+ "id": "6b15a6f5.41dc08",
+ "type": "record",
+ "name": "record",
+ "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.FileRecorder\">\n<parameter name=\"file\" value=\"/opt/opendaylight/current/data/log/optical-service-create.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"`$optical-service-create-input.payload.service-aend.port-id`\"/>\n\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 748.8999938964844,
+ "y": 152.9000015258789,
+ "z": "6aec8519.596ebc",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "708a333d.a59a6c",
+ "type": "record",
+ "name": "record",
+ "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.FileRecorder\">\n<parameter name=\"file\" value=\"/opt/opendaylight/current/data/log/optical-service-create.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"`$optical-service-create-input.payload.service-zend.port-id`\"/>\n\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 743.8999938964844,
+ "y": 229.9000015258789,
+ "z": "6aec8519.596ebc",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "2bad3261.39a7be",
+ "type": "switchNode",
+ "name": "service-name",
+ "xml": "<switch test=\"`$optical-service-create-input.payload.param[$idx].name == 'service-name'`\">\n",
"comments": "",
"outputs": 1,
- "x": 612,
- "y": 477,
- "z": "f1813121.5d5738",
+ "x": 670.5666809082031,
+ "y": 722.5666580200195,
+ "z": "6aec8519.596ebc",
"wires": [
[
- "c9ac9911.a76998"
+ "8a2bc3a2.8fb3"
]
]
},
{
- "id": "73558010.2c724",
- "type": "success",
- "name": "success",
- "xml": "<outcome value='success'>\n",
+ "id": "8a2bc3a2.8fb3",
+ "type": "outcomeTrue",
+ "name": "true",
+ "xml": "<outcome value='true'>\n",
"comments": "",
"outputs": 1,
- "x": 805,
- "y": 402,
- "z": "f1813121.5d5738",
+ "x": 851.5666809082031,
+ "y": 730.5666580200195,
+ "z": "6aec8519.596ebc",
"wires": [
[
- "35f9f711.be4718"
+ "f0ba54a2.8930a8"
]
]
},
{
- "id": "35f9f711.be4718",
+ "id": "f0ba54a2.8930a8",
"type": "set",
"name": "set",
- "xml": "<set>\n<parameter name='aend-nodeid' value='`$db-aend.pnf-id`' />\n<parameter name='a-end-pnf-name' value='`$db-aend.pnf-name`' />\n<parameter name='aend-clli' value='`$db-aend.clli`' />\n\n\n\n\n\n\n\n\n\n\n\n",
+ "xml": "<set>\n<parameter name='optical-service-create-input.payload.service-name' value=\"`$optical-service-create-input.payload.param[$idx].value`\"/>\n",
"comments": "",
- "x": 967,
- "y": 401,
- "z": "f1813121.5d5738",
+ "x": 995.5667419433594,
+ "y": 728.5666732788086,
+ "z": "6aec8519.596ebc",
"wires": []
},
{
- "id": "c9ac9911.a76998",
+ "id": "ea6ce722.102db8",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 867.8999938964844,
+ "y": 765.9000015258789,
+ "z": "6aec8519.596ebc",
+ "wires": [
+ [
+ "89a07cd5.0252"
+ ]
+ ]
+ },
+ {
+ "id": "2351ae73.eacf92",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 866.8999938964844,
+ "y": 850.9000015258789,
+ "z": "6aec8519.596ebc",
+ "wires": [
+ [
+ "9eef6461.fbaa98"
+ ]
+ ]
+ },
+ {
+ "id": "a084b4d3.d2ad68",
"type": "success",
"name": "success",
"xml": "<outcome value='success'>\n",
"comments": "",
"outputs": 1,
- "x": 803,
- "y": 476,
- "z": "f1813121.5d5738",
+ "x": 861.8999633789062,
+ "y": 1277.9000244140625,
+ "z": "6aec8519.596ebc",
"wires": [
[
- "1b6fe865.a8bca8"
+ "d28a3ef1.7ab4b"
]
]
},
{
- "id": "1b6fe865.a8bca8",
+ "id": "faed5cf2.7521c",
+ "type": "execute",
+ "name": "execute",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='generateUUID' >\n<parameter name=\"ctx-destination\" value=\"service1-request-id\"/> ",
+ "comments": "",
+ "outputs": 1,
+ "x": 364,
+ "y": 962,
+ "z": "6aec8519.596ebc",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "281e3ae5.c7e156",
+ "type": "execute",
+ "name": "execute",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='generateUUID' >\n<parameter name=\"ctx-destination\" value=\"service1-svc-instance-id\"/> ",
+ "comments": "",
+ "outputs": 1,
+ "x": 393,
+ "y": 876,
+ "z": "6aec8519.596ebc",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "f4302cf0.c694f",
+ "type": "execute",
+ "name": "execute",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='generateUUID' >\n<parameter name=\"ctx-destination\" value=\"service2-svc-instance-id\"/> ",
+ "comments": "",
+ "outputs": 1,
+ "x": 327,
+ "y": 1037,
+ "z": "6aec8519.596ebc",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "9cecb747.fbb8f8",
+ "type": "execute",
+ "name": "execute",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='generateUUID' >\n<parameter name=\"ctx-destination\" value=\"service2-request-id\"/> ",
+ "comments": "",
+ "outputs": 1,
+ "x": 298,
+ "y": 1114,
+ "z": "6aec8519.596ebc",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "d89f6cb.9d2869",
+ "type": "call",
+ "name": "create-service-relationship",
+ "xml": "<call module='optical-service' rpc='create-service-relationship' mode='sync' >\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1459,
+ "y": 1145,
+ "z": "6aec8519.596ebc",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "c56b33b.5b1d4d",
+ "type": "set",
+ "name": "set acc ser",
+ "xml": "<set>\n<parameter name='domain-requests' value=\"`$service1-request-id`\" />\n<parameter name='optical-service-create-input.request-id' value=\"`$service1-request-id`\" />\n<parameter name='optical-service-create-input.service-id' value=\"`$service1-svc-instance-id`\" />\n<parameter name='optical-service-create-input.payload.service-name' value=\"`$optical-service-create-input.payload.service-name + '_' + 'MDONS-OTN'`\" /> \n",
+ "comments": "",
+ "x": 699,
+ "y": 1080,
+ "z": "6aec8519.596ebc",
+ "wires": []
+ },
+ {
+ "id": "aa333758.2eb158",
+ "type": "save",
+ "name": "save access service db",
+ "xml": "<save plugin=\"org.onap.ccsdk.sli.adaptors.resource.sql.SqlResource\" resource=\"SQL\" key=\"INSERT INTO REQUEST_DETAILS (request_id, controller_id, status, service_rate, service_instance_id, service_type, global_customer_id, notification_url, domain_requests ) VALUES ( $as-request-id , null , 'CREATING' , $optical-service-create-input.payload.service-rate , $as-svc-instance-id , $optical-service-create-input.service-type , $optical-service-create-input.global-customer-id , $optical-service-create-input.notification-url , $domain-requests );\"> ",
+ "comments": "",
+ "outputs": 1,
+ "x": 763,
+ "y": 1170,
+ "z": "6aec8519.596ebc",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "f46024a4.178778",
+ "type": "set",
+ "name": "set acc ser",
+ "xml": "<set>\n<parameter name='as-request-id' value='`$optical-service-create-input.request-id`' />\n<parameter name='as-svc-instance-id' value='`$optical-service-create-input.service-id`' />\n<parameter name='domain-requests' value=\"`$service1-request-id + ',' + $service2-request-id`\" />\n\n",
+ "comments": "",
+ "x": 699,
+ "y": 1395,
+ "z": "6aec8519.596ebc",
+ "wires": []
+ },
+ {
+ "id": "402e803d.bb4b3",
+ "type": "save",
+ "name": "save access service db",
+ "xml": "<save plugin=\"org.onap.ccsdk.sli.adaptors.resource.sql.SqlResource\" resource=\"SQL\" key=\"INSERT INTO REQUEST_DETAILS (request_id, controller_id, status, service_rate, service_instance_id, service_type, global_customer_id, notification_url, domain_requests ) VALUES ( $as-request-id , null , 'CREATING' , $optical-service-create-input.payload.service-rate , $as-svc-instance-id , $optical-service-create-input.service-type , $optical-service-create-input.global-customer-id , $optical-service-create-input.notification-url , $domain-requests );\"> ",
+ "comments": "",
+ "outputs": 1,
+ "x": 761,
+ "y": 1522,
+ "z": "6aec8519.596ebc",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "4cfee8aa.5fe5e8",
+ "type": "record",
+ "name": "record",
+ "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.FileRecorder\">\n<parameter name=\"file\" value=\"/opt/opendaylight/current/data/log/optical-service-create.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"`'domain rquest_' + $domain-requests`\"/>\n<parameter name=\"field2\" value=\"`'Service 1 req id---' + $service1-request-id`\"/>\n<parameter name=\"field3\" value=\"`'Service 2 req id---' + $service2-request-id`\"/>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 706.0999755859375,
+ "y": 1458.0999755859375,
+ "z": "6aec8519.596ebc",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "dfbe19a.ac6e1e8",
+ "type": "record",
+ "name": "record",
+ "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.FileRecorder\">\n<parameter name=\"file\" value=\"/opt/opendaylight/current/data/log/optical-service-create.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"`'domain rquest_' + $domain-requests`\"/>\n<parameter name=\"field2\" value=\"`'Access rquest_' + $as-request-id`\"/>\n\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 705.0999755859375,
+ "y": 1125.0999755859375,
+ "z": "6aec8519.596ebc",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "9217e91.3f8cc18",
"type": "set",
"name": "set",
- "xml": "<set>\n<parameter name='zend-nodeid' value='`$db-zend.pnf-id`' />\n<parameter name='z-end-pnf-name' value='`$db-zend.pnf-name`' />\n<parameter name='zend-clli' value='`$db-zend.clli`' />\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n",
+ "xml": "<set>\n<parameter name='as-request-id' value='`$optical-service-create-input.request-id`' />\n<parameter name='as-svc-instance-id' value='`$optical-service-create-input.service-id`' />",
"comments": "",
- "x": 971,
- "y": 473,
- "z": "f1813121.5d5738",
+ "x": 535,
+ "y": 1071,
+ "z": "6aec8519.596ebc",
"wires": []
+ },
+ {
+ "id": "90dcc928.7bcbc8",
+ "type": "save",
+ "name": "update acc service db",
+ "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.resource.sql.SqlResource' \nresource='SQL' \nkey='UPDATE REQUEST_DETAILS SET status = \"CREATED\" WHERE request_id = $as-request-id'\nforce='true' pfx='save-result'>",
+ "comments": "",
+ "outputs": 1,
+ "x": 1385,
+ "y": 1070,
+ "z": "6aec8519.596ebc",
+ "wires": [
+ []
+ ]
}
] \ No newline at end of file