aboutsummaryrefslogtreecommitdiffstats
path: root/platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_wan-connection-topology-operation-activate.json
diff options
context:
space:
mode:
Diffstat (limited to 'platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_wan-connection-topology-operation-activate.json')
-rw-r--r--platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_wan-connection-topology-operation-activate.json1758
1 files changed, 1272 insertions, 486 deletions
diff --git a/platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_wan-connection-topology-operation-activate.json b/platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_wan-connection-topology-operation-activate.json
index 5fd9bb3c..7c050769 100644
--- a/platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_wan-connection-topology-operation-activate.json
+++ b/platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_wan-connection-topology-operation-activate.json
@@ -1,16 +1,16 @@
[{
- "id": "17edfd48.067fb3",
+ "id": "dbc4ca7a.fecf48",
"type": "dgstart",
"name": "DGSTART",
"outputs": 1,
- "x": 100.01040649414062,
- "y": 68.01041412353516,
- "z": "e09ddcb4.62be2",
+ "x": 134.03125,
+ "y": 92.03125,
+ "z": "926fea0b.1d3458",
"wires": [
- ["e615e2a2.ccf4f"]
+ ["72a66a2c.06a7e4"]
]
}, {
- "id": "e615e2a2.ccf4f",
+ "id": "72a66a2c.06a7e4",
"type": "service-logic",
"name": "GENERIC-RESOURCE-API ${project.version}",
"module": "GENERIC-RESOURCE-API",
@@ -18,873 +18,1659 @@
"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='GENERIC-RESOURCE-API' version='${project.version}'>",
"outputs": 1,
- "x": 312.0104103088379,
- "y": 140.01043128967285,
- "z": "e09ddcb4.62be2",
+ "x": 346.03125381469727,
+ "y": 164.0312671661377,
+ "z": "926fea0b.1d3458",
"wires": [
- ["759cd8cf.a97478"]
+ ["95bab60a.026fe8"]
]
}, {
- "id": "759cd8cf.a97478",
+ "id": "95bab60a.026fe8",
"type": "method",
"name": "wan-connection-topology-operation-activate",
"xml": "<method rpc='wan-connection-topology-operation-activate' mode='sync'>\n",
"comments": "",
"outputs": 1,
- "x": 300.0105285644531,
- "y": 228.01041412353516,
- "z": "e09ddcb4.62be2",
+ "x": 334.0313720703125,
+ "y": 252.03125,
+ "z": "926fea0b.1d3458",
"wires": [
- ["6de8279c.d96f18"]
+ ["a72b1cb5.05f3c"]
]
}, {
- "id": "edd7fd49.09b45",
+ "id": "4e7970ad.4b5bd",
"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%/generic-resource-api-dg.properties' />\n <parameter name='contextPrefix' value='prop' />\n",
"comments": "",
"outputs": 1,
- "x": 687.0106887817383,
- "y": 312.0104856491089,
- "z": "e09ddcb4.62be2",
+ "x": 1104.031894683838,
+ "y": 341.0314643383026,
+ "z": "926fea0b.1d3458",
"wires": [
[]
]
}, {
- "id": "e02df58.543ea08",
+ "id": "bb98003a.a46ad",
"type": "returnSuccess",
"name": "return success",
"xml": "<return status='success'>\n<parameter name=\"ack-final-indicator\" value=\"Y\" />\n<parameter name=\"error-code\" value=\"200\" />\n<parameter name=\"error-message\" value=\"`$error-message`\" />\n",
"comments": "",
- "x": 287.0104217529297,
- "y": 1177.010627746582,
- "z": "e09ddcb4.62be2",
+ "x": 944.0314121246338,
+ "y": 2076.0316499471664,
+ "z": "926fea0b.1d3458",
"wires": []
}, {
- "id": "6de8279c.d96f18",
+ "id": "11b701bb.2b820e",
"type": "block",
- "name": "block : atomic",
+ "name": "general-activate-block : atomic",
"xml": "<block atomic=\"true\">",
"atomic": "true",
+ "comments": "",
"outputs": 1,
- "x": 212.51060485839844,
- "y": 669.0105495452881,
- "z": "e09ddcb4.62be2",
+ "x": 728.5315265655518,
+ "y": 1887.0314840078354,
+ "z": "926fea0b.1d3458",
"wires": [
- ["c3c817be.4ef968", "ad2c5957.526e98", "ee7ba6fd.384b18", "569cdb0d.3aa8c4", "336b6524.04896a", "edd7fd49.09b45", "e02df58.543ea08"]
+ ["1aae4fc1.2393a", "bb98003a.a46ad"]
]
}, {
- "id": "c3c817be.4ef968",
- "type": "execute",
- "name": "generate services url",
- "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$prop.network-provided-resource`\"/>\n <parameter name=\"outputPath\" value=\"tmp.services-url\"/>\n <parameter name=\"target\" value=\"{service-instance-id}\"/>\n <parameter name=\"replacement\" value=\"`$network-topology-operation-input.service-information.service-id`\"/>\n",
+ "id": "c812a520.767f78",
+ "type": "for",
+ "name": "for pidx..service-data.networks.network[]",
+ "xml": "<for index='pidx' start='0' end='`$service-data.networks.network_length`' >\n",
"comments": "",
"outputs": 1,
- "x": 673.0106735229492,
- "y": 383.0105857849121,
- "z": "e09ddcb4.62be2",
+ "x": 1210.5319442749023,
+ "y": 508.0316289663315,
+ "z": "926fea0b.1d3458",
"wires": [
- []
+ ["3dac3b05.9ea764"]
]
}, {
- "id": "ad2c5957.526e98",
- "type": "execute",
- "name": "execute RestApiCallNode - get-resource parent service data",
- "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n <parameter name='restapiUrl' value='`$prop.controller.url + $tmp.services-url`' />\n <parameter name='restapiUser' value='`$prop.controller.user`' />\n <parameter name='restapiPassword' value='`$prop.controller.pwd`' />\n <parameter name='format' value='json' />\n <parameter name='httpMethod' value='GET' />\n <parameter name=\"responsePrefix\" value=\"mdsal-psd\" />\n\n",
+ "id": "3dac3b05.9ea764",
+ "type": "switchNode",
+ "name": "switch model-name",
+ "xml": "<switch test=\"`$service-data.networks.network[$pidx].network-data.network-information.onap-model-information.model-name == $network-topology-operation-input.network-information.onap-model-information.model-name`\">\n\n",
"comments": "",
"outputs": 1,
- "x": 799.0106735229492,
- "y": 460.0105857849121,
- "z": "e09ddcb4.62be2",
+ "x": 1563.5321006774902,
+ "y": 289.0316313505173,
+ "z": "926fea0b.1d3458",
"wires": [
- ["649fc773.be7288", "2c3dd512.e7091a"]
+ ["bd71b64a.dfd5f8"]
]
}, {
- "id": "649fc773.be7288",
- "type": "success",
- "name": "success",
- "xml": "<outcome value='success'>\n",
+ "id": "bd71b64a.dfd5f8",
+ "type": "outcomeTrue",
+ "name": "true",
+ "xml": "<outcome value='true'>\n",
"comments": "",
"outputs": 1,
- "x": 1146.010856628418,
- "y": 411.0105857849121,
- "z": "e09ddcb4.62be2",
+ "x": 1541.7822265625,
+ "y": 340.0317043066025,
+ "z": "926fea0b.1d3458",
"wires": [
- ["27ee6d28.0b0992"]
+ ["5d88b06.fe5a35"]
]
}, {
- "id": "27ee6d28.0b0992",
- "type": "block",
- "name": "block",
- "xml": "<block>\n",
- "atomic": "false",
+ "id": "5d88b06.fe5a35",
+ "type": "set",
+ "name": "set tmp.pidx and tmp.network-input-parameters",
+ "xml": "<set>\n<parameter name='tmp.pidx' value='`$pidx`' />\n<parameter name='tmp.network.' value='`$service-data.networks.network[$pidx].`' />\n<parameter name='tmp.network-input-parameters' value='`$service-data.networks.network[$pidx].network-data.network-request-input.network-input-parameters`' />\n<parameter name='tmp.found-network-input' value='true' />",
+ "comments": "",
+ "x": 1697.4006385803223,
+ "y": 399.46041905879974,
+ "z": "926fea0b.1d3458",
+ "wires": []
+}, {
+ "id": "3bfb1023.2b523",
+ "type": "set",
+ "name": "set tmp.found-network-input",
+ "xml": "<set>\n<parameter name='tmp.found-network-input' value='false' />",
+ "comments": "",
+ "x": 1135.5318870544434,
+ "y": 425.03159844875336,
+ "z": "926fea0b.1d3458",
+ "wires": []
+}, {
+ "id": "1aae4fc1.2393a",
+ "type": "switchNode",
+ "name": "switch found-network-input",
+ "xml": "<switch test=\"`$found-network-input`\">\n\n",
"comments": "",
"outputs": 1,
- "x": 1313.0109329223633,
- "y": 445.0106463432312,
- "z": "e09ddcb4.62be2",
+ "x": 1123.5316104888916,
+ "y": 1762.0316737890244,
+ "z": "926fea0b.1d3458",
"wires": [
- []
+ ["6ed44d2a.fb0594", "18c7f98e.b212a6"]
]
}, {
- "id": "2c3dd512.e7091a",
- "type": "other",
- "name": "other",
- "xml": "<outcome value='Other'>\n",
+ "id": "6ed44d2a.fb0594",
+ "type": "outcomeTrue",
+ "name": "true",
+ "xml": "<outcome value='true'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1355.531702041626,
+ "y": 1806.0318721532822,
+ "z": "926fea0b.1d3458",
+ "wires": [
+ ["84ec40e9.c2c32"]
+ ]
+}, {
+ "id": "18c7f98e.b212a6",
+ "type": "outcomeTrue",
+ "name": "false",
+ "xml": "<outcome value='false'>\n",
"comments": "",
"outputs": 1,
- "x": 1151.8626289367676,
- "y": 494.07674503326416,
- "z": "e09ddcb4.62be2",
+ "x": 1356.2816410064697,
+ "y": 1764.03176343441,
+ "z": "926fea0b.1d3458",
"wires": [
- ["a4f3ebc3.28d808"]
+ ["2811d502.22a33a"]
]
}, {
- "id": "a4f3ebc3.28d808",
+ "id": "2811d502.22a33a",
"type": "returnFailure",
"name": "return failure",
- "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"404\" />\n <parameter name=\"error-message\" value=\"Error: Parent service data not available\" />\n \n",
+ "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"404\" />\n <parameter name=\"error-message\" value=\"Error: Network input parameters not found\" />\n \n",
"comments": "",
- "x": 1322.2607803344727,
- "y": 510.01057529449463,
- "z": "e09ddcb4.62be2",
+ "x": 1527.2816410064697,
+ "y": 1772.031732916832,
+ "z": "926fea0b.1d3458",
"wires": []
}, {
- "id": "ee7ba6fd.384b18",
+ "id": "84ec40e9.c2c32",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "outputs": 1,
+ "x": 1093.031488418579,
+ "y": 1918.0316585302353,
+ "z": "926fea0b.1d3458",
+ "wires": [
+ ["61139e06.7aa2e", "8e8c51f4.d057d", "833ed1f4.d259"]
+ ]
+}, {
+ "id": "61139e06.7aa2e",
"type": "for",
- "name": "for pidx..mdsal-psd.service-data.networks.network[]",
- "xml": "<for index='pidx' start='0' end='`$mdsal-psd.service-data.networks.network_length`' >\n",
+ "name": "for cidx..tmp.network.network-data.network-topology.network-parameters.network-parameter[]",
+ "xml": "<for index='cidx' start='0' end='`$tmp.network.network-data.network-topology.network-parameters.network-parameter_length`' >\n",
"comments": "",
"outputs": 1,
- "x": 859.5107116699219,
- "y": 611.0105295181274,
- "z": "e09ddcb4.62be2",
+ "x": 1542.031328201294,
+ "y": 2004.0315145254135,
+ "z": "926fea0b.1d3458",
"wires": [
- ["5178f9b4.19b7c8"]
+ ["d5a8b428.3ffe58"]
]
}, {
- "id": "5178f9b4.19b7c8",
- "type": "switchNode",
- "name": "switch model-name",
- "xml": "<switch test=\"`$mdsal-psd.service-data.networks.network[$pidx].network-data.network-information.onap-model-information.model-name == $network-topology-operation-input.network-information.onap-model-information.model-name`\">\n\n",
+ "id": "bb8655c6.320038",
+ "type": "execute",
+ "name": "execute RestApiCallNode Create wan-connection",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"templateFileName\" value=\"`$tmp.templateFileName`\" />\n<parameter name=\"restapiUrl\" value=\"`$prop.sdncRestApi.thirdpartySdnc.url + $tmp.restapiUrl`\" />\n<parameter name=\"restapiUser\" value=\"`$prop.sdncRestApi.thirdpartySdnc.user`\" />\n<parameter name=\"restapiPassword\" value=\"`$prop.sdncRestApi.thirdpartySdnc.password`\" />\n<parameter name=\"format\" value=\"json\"/>\n<parameter name=\"httpMethod\" value=\"post\"/>\n<parameter name=\"responsePrefix\" value=\"restApi-result\"/>",
"comments": "",
"outputs": 1,
- "x": 807.5106887817383,
- "y": 688.0105800628662,
- "z": "e09ddcb4.62be2",
+ "x": 1568.2813835144043,
+ "y": 2558.0317014455795,
+ "z": "926fea0b.1d3458",
"wires": [
- ["d017d8d9.0843a8"]
+ ["c0b7550d.f30fe8", "e19ff0cc.bd882", "9d57cbcd.803d08"]
]
}, {
- "id": "d017d8d9.0843a8",
- "type": "outcomeTrue",
- "name": "true",
- "xml": "<outcome value='true'>\n",
+ "id": "4089b1d1.8eda5",
+ "type": "switchNode",
+ "name": "switch network-parameter-name == 'templateFileName'",
+ "xml": "<switch test=\"`$tmp.network.network-data.network-topology.network-parameters.network-parameter[$cxid].network-parameter-name == 'templateFileName'`\">\n",
"comments": "",
"outputs": 1,
- "x": 989.7607917785645,
- "y": 690.0106735229492,
- "z": "e09ddcb4.62be2",
+ "x": 1670.2815914154053,
+ "y": 2109.031648993492,
+ "z": "926fea0b.1d3458",
"wires": [
- ["b549c649.6ef3f8"]
+ ["80cfb20d.84134"]
]
}, {
- "id": "b549c649.6ef3f8",
- "type": "block",
- "name": "block : atomic",
- "xml": "<block atomic=\"true\">",
- "atomic": "true",
+ "id": "80cfb20d.84134",
+ "type": "outcomeTrue",
+ "name": "true",
+ "xml": "<outcome value='true'>\n",
+ "comments": "",
"outputs": 1,
- "x": 1160.5214195251465,
- "y": 694.867790222168,
- "z": "e09ddcb4.62be2",
+ "x": 2023.2817306518555,
+ "y": 2113.0317224264145,
+ "z": "926fea0b.1d3458",
"wires": [
- ["90347753.f53c58"]
+ ["17b7664a.d3b9ca"]
]
}, {
- "id": "90347753.f53c58",
+ "id": "17b7664a.d3b9ca",
"type": "set",
- "name": "set tmp.pidx and tmp.network-input-parameters",
- "xml": "<set>\n<parameter name='tmp.pidx' value='`$pidx`' />\n<parameter name='tmp.network.' value='`$mdsal-psd.service-data.networks.network[$pidx].`' />\n<parameter name='tmp.network-input-parameters' value='`$mdsal-psd.service-data.networks.network[$pidx].network-data.network-request-input.network-input-parameters`' />\n<parameter name='tmp.found-network-input' value='true' />",
+ "name": "set tmp.templateFileName",
+ "xml": "<set>\n<parameter name='tmp.templateFileName' value='`$tmp.network.network-data.network-topology.network-parameters.network-parameter[$cxid].network-parameter-value`' />\n<parameter name='tmp.templateFileName-found' value='true' />",
"comments": "",
- "x": 1107.3788032531738,
- "y": 768.4393863677979,
- "z": "e09ddcb4.62be2",
+ "x": 2224.2817611694336,
+ "y": 2111.031723380089,
+ "z": "926fea0b.1d3458",
"wires": []
}, {
- "id": "569cdb0d.3aa8c4",
+ "id": "8e8c51f4.d057d",
"type": "set",
- "name": "set tmp.found-network-input",
- "xml": "<set>\n<parameter name='tmp.found-network-input' value='false' />",
+ "name": "set paras flags",
+ "xml": "<set>\n<parameter name='tmp.restapiUrl-found' value='false' />\n<parameter name='tmp.restapiUser-found' value='false' />\n<parameter name='tmp.restapiPassword-found' value='false' />\n<parameter name='tmp.templateFileName-found' value='false' />\n<parameter name='tmp.thirdPartyAdaptorRpc-found' value='false' />",
"comments": "",
- "x": 741.5106582641602,
- "y": 540.0105857849121,
- "z": "e09ddcb4.62be2",
+ "x": 1329.0314960479736,
+ "y": 1919.0315116643906,
+ "z": "926fea0b.1d3458",
"wires": []
}, {
- "id": "336b6524.04896a",
+ "id": "833ed1f4.d259",
"type": "switchNode",
- "name": "switch found-network-input",
- "xml": "<switch test=\"`$found-network-input`\">\n\n",
+ "name": "switch thirdPartyAdaptorRpc-found == 'true'",
+ "xml": "<switch test=\"`$tmp.thirdPartyAdaptorRpc-found == 'true'`\">\n",
"comments": "",
"outputs": 1,
- "x": 572.5107040405273,
- "y": 879.0107097625732,
- "z": "e09ddcb4.62be2",
+ "x": 1321.0312728881836,
+ "y": 2365.031446814537,
+ "z": "926fea0b.1d3458",
"wires": [
- ["616108fb.092f18", "40e56e53.4077e"]
+ ["575d5dfb.34fe94", "2377fd44.1eedc2"]
]
}, {
- "id": "616108fb.092f18",
+ "id": "d5a8b428.3ffe58",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 1307.031436920166,
+ "y": 2111.0313848257065,
+ "z": "926fea0b.1d3458",
+ "wires": [
+ ["4089b1d1.8eda5", "e7566aa5.849bc8", "e1dac9e1.6143b8", "43cfa6be.6eb688"]
+ ]
+}, {
+ "id": "575d5dfb.34fe94",
"type": "outcomeTrue",
"name": "true",
"xml": "<outcome value='true'>\n",
"comments": "",
"outputs": 1,
- "x": 804.5107955932617,
- "y": 923.010908126831,
- "z": "e09ddcb4.62be2",
+ "x": 1583.03129196167,
+ "y": 2327.031383872032,
+ "z": "926fea0b.1d3458",
"wires": [
- ["a846a4bd.9956b8"]
+ ["4cc416ef.c63548"]
]
}, {
- "id": "40e56e53.4077e",
+ "id": "2377fd44.1eedc2",
"type": "outcomeTrue",
"name": "false",
"xml": "<outcome value='false'>\n",
"comments": "",
"outputs": 1,
- "x": 805.2607345581055,
- "y": 881.010799407959,
- "z": "e09ddcb4.62be2",
+ "x": 1584.0312423706055,
+ "y": 2393.0313485860825,
+ "z": "926fea0b.1d3458",
"wires": [
- ["8273b3b3.844e2"]
+ ["9704be28.3f558"]
]
}, {
- "id": "8273b3b3.844e2",
- "type": "returnFailure",
- "name": "return failure",
- "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"404\" />\n <parameter name=\"error-message\" value=\"Error: Network input parameters not found\" />\n \n",
+ "id": "4cc416ef.c63548",
+ "type": "call",
+ "name": "call thirdPartyAdaptorRpc",
+ "xml": "<call module='GENERIC-RESOURCE-API' rpc='`$tmp.thirdPartyAdaptorRpc`' mode='sync' >\n",
"comments": "",
- "x": 976.2607345581055,
- "y": 889.0107688903809,
- "z": "e09ddcb4.62be2",
- "wires": []
+ "outputs": 1,
+ "x": 1803.0313339233398,
+ "y": 2328.03144299984,
+ "z": "926fea0b.1d3458",
+ "wires": [
+ ["f46c32a6.383aa", "14327ee.aa1c281", "bbf59025.2f53"]
+ ]
}, {
- "id": "a846a4bd.9956b8",
- "type": "block",
- "name": "block : atomic",
- "xml": "<block atomic=\"true\">",
- "atomic": "true",
+ "id": "9704be28.3f558",
+ "type": "switchNode",
+ "name": "switch all-found == 'true'",
+ "xml": "<switch test=\"`$tmp.prop.thirdpartySdnc-found == 'true' and $tmp.templateFileName-found == 'true' and `$tmp.prop.restapiUrl-found == 'true'`\">\n",
+ "comments": "",
"outputs": 1,
- "x": 542.0105819702148,
- "y": 1035.0106945037842,
- "z": "e09ddcb4.62be2",
+ "x": 1460.4821796417236,
+ "y": 2483.0379165410995,
+ "z": "926fea0b.1d3458",
"wires": [
- ["a938b787.7c82b8", "2becb5c8.f5838a", "fec72c37.99e8b"]
+ ["b0b06b48.a5b488", "aeb8dbbb.1a88b8"]
]
}, {
- "id": "a938b787.7c82b8",
- "type": "for",
- "name": "for cidx..tmp.network.network-data.network-topology.network-parameters.network-parameter[]",
- "xml": "<for index='cidx' start='0' end='`$tmp.network.network-data.network-topology.network-parameters.network-parameter_length`' >\n",
+ "id": "b0b06b48.a5b488",
+ "type": "outcomeTrue",
+ "name": "true",
+ "xml": "<outcome value='true'>\n",
"comments": "",
"outputs": 1,
- "x": 991.0104217529297,
- "y": 1121.0105504989624,
- "z": "e09ddcb4.62be2",
+ "x": 1711.4821643829346,
+ "y": 2481.037712454796,
+ "z": "926fea0b.1d3458",
"wires": [
- ["a608965c.57ec78"]
+ ["bb8655c6.320038"]
]
}, {
- "id": "21b22ac0.8b6036",
+ "id": "e7566aa5.849bc8",
"type": "switchNode",
- "name": "switch network-parameter-name == 'restapiUrl'",
- "xml": "<switch test=\"`$tmp.network.network-data.network-topology.network-parameters.network-parameter[$cxid].network-parameter-name == 'restapiUrl'`\">\n",
+ "name": "switch network-parameter-name == 'thirdPartyAdaptorRpc'",
+ "xml": "<switch test=\"`$tmp.network.network-data.network-topology.network-parameters.network-parameter[$cxid].network-parameter-name == 'thirdPartyAdaptorRpc'`\">\n",
"comments": "",
"outputs": 1,
- "x": 1105.010482788086,
- "y": 1191.010612487793,
- "z": "e09ddcb4.62be2",
+ "x": 1663.0378608703613,
+ "y": 2199.038031935692,
+ "z": "926fea0b.1d3458",
"wires": [
- ["b3b8f491.b604a8"]
+ ["6b611a9.1a25de4"]
]
}, {
- "id": "b3b8f491.b604a8",
+ "id": "6b611a9.1a25de4",
"type": "outcomeTrue",
"name": "true",
"xml": "<outcome value='true'>\n",
"comments": "",
"outputs": 1,
- "x": 1356.0105361938477,
- "y": 1194.0106182098389,
- "z": "e09ddcb4.62be2",
+ "x": 1996.03812789917,
+ "y": 2202.0380758047104,
+ "z": "926fea0b.1d3458",
"wires": [
- ["f19676be.7dd8e8"]
+ ["af5f0328.41cb9"]
]
}, {
- "id": "f19676be.7dd8e8",
+ "id": "af5f0328.41cb9",
"type": "set",
- "name": "set tmp.thirdparty-sdnc-url",
- "xml": "<set>\n<parameter name='tmp.restapiUrl' value='`$tmp.network.network-data.network-topology.network-parameters.network-parameter[$cxid].network-parameter-value`' />\n<parameter name='tmp.restapiUrl-found' value='true' />",
+ "name": "set tmp.thirdPartyAdaptorRpc",
+ "xml": "<set>\n<parameter name='tmp.thirdPartyAdaptorRpc' value='`$tmp.network.network-data.network-topology.network-parameters.network-parameter[$cxid].network-parameter-value`' />\n<parameter name='tmp.thirdPartyAdaptorRpc-found' value='true' />",
"comments": "",
- "x": 1557.0105667114258,
- "y": 1192.0106191635132,
- "z": "e09ddcb4.62be2",
+ "x": 2217.0380306243896,
+ "y": 2201.0381063222885,
+ "z": "926fea0b.1d3458",
"wires": []
}, {
- "id": "5e9a3d4b.faee04",
- "type": "execute",
- "name": "execute RestApiCallNode Create wan-connection",
- "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"templateFileName\" value=\"`$tmp.templateFileName`\" />\n<parameter name=\"restapiUrl\" value=\"`$tmp.restapiUrl`\" />\n<parameter name=\"restapiUser\" value=\"`$tmp.restapiUser`\" />\n<parameter name=\"restapiPassword\" value=\"`$tmp.restapiPassword`\" />\n<parameter name=\"format\" value=\"json\"/>\n<parameter name=\"httpMethod\" value=\"post\"/>\n<parameter name=\"responsePrefix\" value=\"restApi-result\"/>",
+ "id": "bbf59025.2f53",
+ "type": "not-found",
+ "name": "not-found",
+ "xml": "<outcome value='not-found'>\n",
"comments": "",
"outputs": 1,
- "x": 879.2604522705078,
- "y": 1923.0111656188965,
- "z": "e09ddcb4.62be2",
+ "x": 2134.037733078003,
+ "y": 2368.3710893392563,
+ "z": "926fea0b.1d3458",
"wires": [
- ["6cfa08fc.d58438", "35b532e4.67c04e", "456722ac.35f45c"]
+ ["5e9bef51.b04f9"]
]
}, {
- "id": "482305da.d57c9c",
- "type": "switchNode",
- "name": "switch network-parameter-name == 'restapiUser'",
- "xml": "<switch test=\"`$tmp.network.network-data.network-topology.network-parameters.network-parameter[$cxid].network-parameter-name == 'restapiUser'`\">\n",
+ "id": "14327ee.aa1c281",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2125.0377826690674,
+ "y": 2336.871115088463,
+ "z": "926fea0b.1d3458",
+ "wires": [
+ ["5e9bef51.b04f9"]
+ ]
+}, {
+ "id": "f46c32a6.383aa",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2128.78782081604,
+ "y": 2307.22821996361,
+ "z": "926fea0b.1d3458",
+ "wires": [
+ ["2554668a.ceb99a"]
+ ]
+}, {
+ "id": "5e9bef51.b04f9",
+ "type": "returnFailure",
+ "name": "return failure",
+ "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n <parameter name=\"error-message\" value=\"`'Error calling ' + $tmp.thirdPartyAdaptorRpc`\" />\n",
+ "comments": "",
+ "x": 2303.7878017425537,
+ "y": 2359.621233344078,
+ "z": "926fea0b.1d3458",
+ "wires": []
+}, {
+ "id": "2554668a.ceb99a",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 2270.4437885284424,
+ "y": 2303.4203891530633,
+ "z": "926fea0b.1d3458",
+ "wires": [
+ []
+ ]
+}, {
+ "id": "9d57cbcd.803d08",
+ "type": "not-found",
+ "name": "not-found",
+ "xml": "<outcome value='not-found'>\n",
"comments": "",
"outputs": 1,
- "x": 1108.2604751586914,
- "y": 1242.0105876922607,
- "z": "e09ddcb4.62be2",
+ "x": 1898.0378074645996,
+ "y": 2593.370793700218,
+ "z": "926fea0b.1d3458",
"wires": [
- ["bfa7b41.e85df48"]
+ ["a1110583.4c1b78"]
]
}, {
- "id": "bfa7b41.e85df48",
+ "id": "e19ff0cc.bd882",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1889.037857055664,
+ "y": 2561.8708194494247,
+ "z": "926fea0b.1d3458",
+ "wires": [
+ ["a1110583.4c1b78"]
+ ]
+}, {
+ "id": "c0b7550d.f30fe8",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1892.7878952026367,
+ "y": 2532.227924324572,
+ "z": "926fea0b.1d3458",
+ "wires": [
+ ["723c84de.ada1cc"]
+ ]
+}, {
+ "id": "a1110583.4c1b78",
+ "type": "returnFailure",
+ "name": "return failure",
+ "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n <parameter name=\"error-message\" value=\"`'Error calling ' + $tmp.restapiUrl`\" />\n",
+ "comments": "",
+ "x": 2055.7879219055176,
+ "y": 2578.620891928673,
+ "z": "926fea0b.1d3458",
+ "wires": []
+}, {
+ "id": "723c84de.ada1cc",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 2034.443862915039,
+ "y": 2528.420093514025,
+ "z": "926fea0b.1d3458",
+ "wires": [
+ []
+ ]
+}, {
+ "id": "aeb8dbbb.1a88b8",
"type": "outcomeTrue",
- "name": "true",
- "xml": "<outcome value='true'>\n",
+ "name": "false",
+ "xml": "<outcome value='false'>\n",
"comments": "",
"outputs": 1,
- "x": 1374.2605895996094,
- "y": 1244.0106649398804,
- "z": "e09ddcb4.62be2",
+ "x": 1862.7043704986572,
+ "y": 2448.482018828392,
+ "z": "926fea0b.1d3458",
"wires": [
- ["431e7704.816128"]
+ ["f8bc7d52.d6dd5"]
]
}, {
- "id": "431e7704.816128",
- "type": "set",
- "name": "set tmp.restapiUser",
- "xml": "<set>\n<parameter name='tmp.restapiUser' value='`$tmp.network.network-data.network-topology.network-parameters.network-parameter[$cxid].network-parameter-value`' />\n<parameter name='tmp.restapiUser-found' value='true' />",
+ "id": "f8bc7d52.d6dd5",
+ "type": "returnFailure",
+ "name": "return failure",
+ "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"404\" />\n <parameter name=\"error-message\" value=\"Error: 3rd party controller restapiUrl not found\" />\n \n",
"comments": "",
- "x": 1575.2606201171875,
- "y": 1242.0106658935547,
- "z": "e09ddcb4.62be2",
+ "x": 2033.7043704986572,
+ "y": 2456.481988310814,
+ "z": "926fea0b.1d3458",
"wires": []
}, {
- "id": "d87dc5c6.9f2d38",
- "type": "switchNode",
- "name": "switch network-parameter-name == 'restapiPassword'",
- "xml": "<switch test=\"`$tmp.network.network-data.network-topology.network-parameters.network-parameter[$cxid].network-parameter-name == 'restapiPassword'`\">\n",
+ "id": "a72b1cb5.05f3c",
+ "type": "execute",
+ "name": "contains specification",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='contains' >\n <parameter name=\"source\" value=\"`$network-topology-operation-input.network-information.onap-model-information.model-name`\"/>\n <parameter name=\"target\" value=\"specification\"/>\n",
"comments": "",
"outputs": 1,
- "x": 1116.2605438232422,
- "y": 1296.010513305664,
- "z": "e09ddcb4.62be2",
+ "x": 231.03120040893555,
+ "y": 374.03507936000824,
+ "z": "926fea0b.1d3458",
"wires": [
- ["32c617c3.6666a8"]
+ ["889cb67a.4a45c8", "2194eb01.d99b44"]
]
}, {
- "id": "32c617c3.6666a8",
+ "id": "889cb67a.4a45c8",
"type": "outcomeTrue",
"name": "true",
"xml": "<outcome value='true'>\n",
"comments": "",
"outputs": 1,
- "x": 1393.260555267334,
- "y": 1294.0105457305908,
- "z": "e09ddcb4.62be2",
+ "x": 467.03123474121094,
+ "y": 372.03507125377655,
+ "z": "926fea0b.1d3458",
"wires": [
- ["7965a848.b113a8"]
+ ["ce0b82c8.e7218"]
]
}, {
- "id": "7965a848.b113a8",
- "type": "set",
- "name": "set tmp.restapiPassword",
- "xml": "<set>\n<parameter name='tmp.restapiPassword' value='`$tmp.network.network-data.network-topology.network-parameters.network-parameter[$cxid].network-parameter-value`' />\n<parameter name='tmp.restapiPassword-found' value='true' />",
+ "id": "2194eb01.d99b44",
+ "type": "outcomeTrue",
+ "name": "false",
+ "xml": "<outcome value='false'>\n",
"comments": "",
- "x": 1594.260585784912,
- "y": 1292.0105466842651,
- "z": "e09ddcb4.62be2",
- "wires": []
+ "outputs": 1,
+ "x": 170.03128814697266,
+ "y": 597.035244345665,
+ "z": "926fea0b.1d3458",
+ "wires": [
+ ["f8dcacdf.a6eb7"]
+ ]
}, {
- "id": "8c362f3b.3ca69",
- "type": "switchNode",
- "name": "switch network-parameter-name == 'templateFileName'",
- "xml": "<switch test=\"`$tmp.network.network-data.network-topology.network-parameters.network-parameter[$cxid].network-parameter-name == 'templateFileName'`\">\n",
+ "id": "e74616dd.2ed7f8",
+ "type": "execute",
+ "name": "contains FC",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='contains' >\n <parameter name=\"source\" value=\"`$network-topology-operation-input.network-information.onap-model-information.model-name`\"/>\n <parameter name=\"target\" value=\"FC\"/>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 501.03129959106445,
+ "y": 681.0351728200912,
+ "z": "926fea0b.1d3458",
+ "wires": [
+ ["c1e8fe64.ca4a9", "c4d599f8.5e9608"]
+ ]
+}, {
+ "id": "c4d599f8.5e9608",
+ "type": "outcomeTrue",
+ "name": "false",
+ "xml": "<outcome value='false'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 146.03127670288086,
+ "y": 1029.0352452993393,
+ "z": "926fea0b.1d3458",
+ "wires": [
+ ["321c63b.c8d039c"]
+ ]
+}, {
+ "id": "321c63b.c8d039c",
+ "type": "execute",
+ "name": "contains FD",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='contains' >\n <parameter name=\"source\" value=\"`$network-topology-operation-input.network-information.onap-model-information.model-name`\"/>\n <parameter name=\"target\" value=\"FD\"/>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 355.03126525878906,
+ "y": 1025.0352238416672,
+ "z": "926fea0b.1d3458",
+ "wires": [
+ ["84b52686.b454a8", "95140b58.666a48"]
+ ]
+}, {
+ "id": "95140b58.666a48",
+ "type": "outcomeTrue",
+ "name": "false",
+ "xml": "<outcome value='false'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 137.99998092651367,
+ "y": 1101.0038818120956,
+ "z": "926fea0b.1d3458",
+ "wires": [
+ ["816059eb.09e168"]
+ ]
+}, {
+ "id": "816059eb.09e168",
+ "type": "execute",
+ "name": "contains FcPort",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='contains' >\n <parameter name=\"source\" value=\"`$network-topology-operation-input.network-information.onap-model-information.model-name`\"/>\n <parameter name=\"target\" value=\"FcPort\"/>\n",
"comments": "",
"outputs": 1,
- "x": 1125.2605743408203,
- "y": 1351.0105781555176,
- "z": "e09ddcb4.62be2",
+ "x": 346.99997329711914,
+ "y": 1098.0039104223251,
+ "z": "926fea0b.1d3458",
"wires": [
- ["c074d65e.325f18"]
+ ["4edca0e1.34768", "2171b9cc.48bf96"]
]
}, {
- "id": "c074d65e.325f18",
+ "id": "c1e8fe64.ca4a9",
"type": "outcomeTrue",
"name": "true",
"xml": "<outcome value='true'>\n",
"comments": "",
"outputs": 1,
- "x": 1413.2607078552246,
- "y": 1354.0106735229492,
- "z": "e09ddcb4.62be2",
+ "x": 683.0313034057617,
+ "y": 682.0351561307907,
+ "z": "926fea0b.1d3458",
"wires": [
- ["c839c2e5.daaf"]
+ ["6e6cf945.de71a8"]
]
}, {
- "id": "c839c2e5.daaf",
- "type": "set",
- "name": "set tmp.templateFileName",
- "xml": "<set>\n<parameter name='tmp.templateFileName' value='`$tmp.network.network-data.network-topology.network-parameters.network-parameter[$cxid].network-parameter-value`' />\n<parameter name='tmp.templateFileName-found' value='true' />",
+ "id": "84b52686.b454a8",
+ "type": "outcomeTrue",
+ "name": "true",
+ "xml": "<outcome value='true'>\n",
"comments": "",
- "x": 1614.2607383728027,
- "y": 1352.0106744766235,
- "z": "e09ddcb4.62be2",
- "wires": []
+ "outputs": 1,
+ "x": 927.0314331054688,
+ "y": 1027.035410284996,
+ "z": "926fea0b.1d3458",
+ "wires": [
+ ["11b701bb.2b820e"]
+ ]
}, {
- "id": "2becb5c8.f5838a",
- "type": "set",
- "name": "set paras flags",
- "xml": "<set>\n<parameter name='tmp.restapiUrl-found' value='false' />\n<parameter name='tmp.restapiUser-found' value='false' />\n<parameter name='tmp.restapiPassword-found' value='false' />\n<parameter name='tmp.templateFileName-found' value='false' />\n<parameter name='tmp.thirdPartyAdaptorRpc-found' value='false' />",
+ "id": "4edca0e1.34768",
+ "type": "outcomeTrue",
+ "name": "true",
+ "xml": "<outcome value='true'>\n",
"comments": "",
- "x": 778.0105895996094,
- "y": 1036.0105476379395,
- "z": "e09ddcb4.62be2",
- "wires": []
+ "outputs": 1,
+ "x": 542.000057220459,
+ "y": 1100.003942847252,
+ "z": "926fea0b.1d3458",
+ "wires": [
+ ["1b21b11e.20ccaf"]
+ ]
}, {
- "id": "fec72c37.99e8b",
- "type": "switchNode",
- "name": "switch thirdPartyAdaptorRpc-found == 'true'",
- "xml": "<switch test=\"`$tmp.thirdPartyAdaptorRpc-found == 'true'`\">\n",
+ "id": "2171b9cc.48bf96",
+ "type": "outcomeTrue",
+ "name": "false",
+ "xml": "<outcome value='false'>\n",
"comments": "",
"outputs": 1,
- "x": 820.0104217529297,
- "y": 1531.0105934143066,
- "z": "e09ddcb4.62be2",
+ "x": 99.03140258789062,
+ "y": 1342.0355266332626,
+ "z": "926fea0b.1d3458",
"wires": [
- ["761c7f6a.1e156", "fc5cb76b.242648"]
+ ["9a67ff91.b1e45"]
]
}, {
- "id": "a608965c.57ec78",
+ "id": "9a67ff91.b1e45",
"type": "block",
"name": "block",
"xml": "<block>\n",
"atomic": "false",
"comments": "",
"outputs": 1,
- "x": 762.0104217529297,
- "y": 1302.0104637145996,
- "z": "e09ddcb4.62be2",
+ "x": 387.0001029968262,
+ "y": 1341.0042842626572,
+ "z": "926fea0b.1d3458",
+ "wires": [
+ ["7b057224.2aa75c"]
+ ]
+}, {
+ "id": "ce0b82c8.e7218",
+ "type": "returnSuccess",
+ "name": "return success",
+ "xml": "<return status='success'>\n<parameter name=\"ack-final-indicator\" value=\"Y\" />\n<parameter name=\"error-code\" value=\"200\" />\n<parameter name=\"error-message\" value=\"`$error-message`\" />\n",
+ "comments": "",
+ "x": 731.0585975646973,
+ "y": 368.06244599819183,
+ "z": "926fea0b.1d3458",
+ "wires": []
+}, {
+ "id": "7b057224.2aa75c",
+ "type": "returnSuccess",
+ "name": "return success",
+ "xml": "<return status='success'>\n<parameter name=\"ack-final-indicator\" value=\"Y\" />\n<parameter name=\"error-code\" value=\"200\" />\n<parameter name=\"error-message\" value=\"`$error-message`\" />\n",
+ "comments": "",
+ "x": 594.0587425231934,
+ "y": 1338.0627368688583,
+ "z": "926fea0b.1d3458",
+ "wires": []
+}, {
+ "id": "1b21b11e.20ccaf",
+ "type": "execute",
+ "name": "contains sitewan",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='contains' >\n <parameter name=\"source\" value=\"`$network-topology-operation-input.network-information.onap-model-information.model-name`\"/>\n <parameter name=\"target\" value=\"sitewan\"/>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 735.0275611877441,
+ "y": 1101.031530737877,
+ "z": "926fea0b.1d3458",
"wires": [
- ["21b22ac0.8b6036", "482305da.d57c9c", "d87dc5c6.9f2d38", "8c362f3b.3ca69", "2c7884dd.9d5eac"]
+ ["52df494.201adb8", "dbee71dc.d74f"]
]
}, {
- "id": "761c7f6a.1e156",
+ "id": "52df494.201adb8",
"type": "outcomeTrue",
"name": "true",
"xml": "<outcome value='true'>\n",
"comments": "",
"outputs": 1,
- "x": 1082.010440826416,
- "y": 1493.0105304718018,
- "z": "e09ddcb4.62be2",
+ "x": 930.027645111084,
+ "y": 1103.0315631628036,
+ "z": "926fea0b.1d3458",
"wires": [
- ["abb14bbc.08d3c8"]
+ ["11b701bb.2b820e"]
]
}, {
- "id": "fc5cb76b.242648",
+ "id": "dbee71dc.d74f",
"type": "outcomeTrue",
"name": "false",
"xml": "<outcome value='false'>\n",
"comments": "",
"outputs": 1,
- "x": 1083.0103912353516,
- "y": 1559.010495185852,
- "z": "e09ddcb4.62be2",
+ "x": 483.02745056152344,
+ "y": 1255.0313781499863,
+ "z": "926fea0b.1d3458",
"wires": [
- ["7e672194.b5093"]
+ ["9a67ff91.b1e45"]
]
}, {
- "id": "abb14bbc.08d3c8",
- "type": "call",
- "name": "call thirdPartyAdaptorRpc",
- "xml": "<call module='GENERIC-RESOURCE-API' rpc='`$tmp.thirdPartyAdaptorRpc`' mode='sync' >\n",
+ "id": "6e6cf945.de71a8",
+ "type": "execute",
+ "name": "contains sotn",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='contains' >\n <parameter name=\"source\" value=\"`$network-topology-operation-input.network-information.onap-model-information.model-name`\"/>\n <parameter name=\"target\" value=\"sotn\"/>\n",
"comments": "",
"outputs": 1,
- "x": 1302.010482788086,
- "y": 1494.0105895996094,
- "z": "e09ddcb4.62be2",
+ "x": 851.0312881469727,
+ "y": 682.035093665123,
+ "z": "926fea0b.1d3458",
"wires": [
- ["97bbf68a.23df28", "54cba094.60db8", "40b8aaf.3584554"]
+ ["b8e3e9e8.4dd418", "371abc25.a00424"]
]
}, {
- "id": "7e672194.b5093",
- "type": "switchNode",
- "name": "switch restapiUrl-found == 'true'",
- "xml": "<switch test=\"`$tmp.restapiUrl-found == 'true'`\">\n",
+ "id": "b8e3e9e8.4dd418",
+ "type": "outcomeTrue",
+ "name": "true",
+ "xml": "<outcome value='true'>\n",
"comments": "",
"outputs": 1,
- "x": 844.461311340332,
- "y": 1643.0172395706177,
- "z": "e09ddcb4.62be2",
+ "x": 1056.781349182129,
+ "y": 681.035072684288,
+ "z": "926fea0b.1d3458",
"wires": [
- ["8b58f6f.b1e3208", "94431bfa.4e9a48"]
+ ["61103774.7c2958"]
]
}, {
- "id": "8b58f6f.b1e3208",
+ "id": "371abc25.a00424",
"type": "outcomeTrue",
- "name": "true",
- "xml": "<outcome value='true'>\n",
+ "name": "false",
+ "xml": "<outcome value='false'>\n",
"comments": "",
"outputs": 1,
- "x": 1095.461296081543,
- "y": 1641.017035484314,
- "z": "e09ddcb4.62be2",
+ "x": 922.7814674377441,
+ "y": 970.0351947546005,
+ "z": "926fea0b.1d3458",
"wires": [
- ["fed700d7.65be7"]
+ ["11b701bb.2b820e"]
]
}, {
- "id": "fed700d7.65be7",
- "type": "switchNode",
- "name": "switch restapiUser-found == 'true'",
- "xml": "<switch test=\"`$tmp.restapiUser-found == 'true'`\">\n",
+ "id": "d0dc2867.7aac48",
+ "type": "for",
+ "name": "for sIdx..service-data.networks.network[]",
+ "xml": "<for index='sIdx' start='0' end='`$service-data.networks.network_length`' >\n",
"comments": "",
"outputs": 1,
- "x": 822.4614105224609,
- "y": 1710.2393379211426,
- "z": "e09ddcb4.62be2",
+ "x": 1968.059326171875,
+ "y": 729.0627163648605,
+ "z": "926fea0b.1d3458",
"wires": [
- ["9051a6d0.545648", "52bc5ad7.e75954"]
+ ["10a3d4d5.ede31b"]
]
}, {
- "id": "9051a6d0.545648",
+ "id": "8aee33e1.e59d9",
"type": "outcomeTrue",
"name": "true",
"xml": "<outcome value='true'>\n",
"comments": "",
"outputs": 1,
- "x": 1089.4613037109375,
- "y": 1711.2390508651733,
- "z": "e09ddcb4.62be2",
+ "x": 2503.0594062805176,
+ "y": 669.0628918409348,
+ "z": "926fea0b.1d3458",
"wires": [
- ["558122b6.d2e6dc"]
+ ["9a9356f4.363c08"]
]
}, {
- "id": "558122b6.d2e6dc",
- "type": "switchNode",
- "name": "switch restapiPassword-found == 'true'",
- "xml": "<switch test=\"`$tmp.restapiPassword-found == 'true'`\">\n",
+ "id": "fe450b4f.38cbb8",
+ "type": "set",
+ "name": "set tmp.pidx and tmp.network-input-parameters",
+ "xml": "<set>\n<parameter name='tmp.sotnFcPortList[`$sotnFcPortListLength`]' value='`$sIdx`' />",
+ "comments": "",
+ "x": 2593.6787147521973,
+ "y": 838.4922603368759,
+ "z": "926fea0b.1d3458",
+ "wires": []
+}, {
+ "id": "10a3d4d5.ede31b",
+ "type": "execute",
+ "name": "contains sotn",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='contains' >\n <parameter name=\"source\" value=\"`$service-data.networks.network[$sIdx].network-data.network-information.onap-model-information.model-name`\"/>\n <parameter name=\"target\" value=\"sotn\"/>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2340.0593223571777,
+ "y": 670.0627735853195,
+ "z": "926fea0b.1d3458",
+ "wires": [
+ ["8aee33e1.e59d9"]
+ ]
+}, {
+ "id": "9a9356f4.363c08",
+ "type": "execute",
+ "name": "contains FcPort",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='contains' >\n <parameter name=\"source\" value=\"`$service-data.networks.network[$sIdx].network-data.network-information.onap-model-information.model-name`\"/>\n <parameter name=\"target\" value=\"FcPort\"/>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2344.059284210205,
+ "y": 724.0629585981369,
+ "z": "926fea0b.1d3458",
+ "wires": [
+ ["2c54cd4f.4c8bf2"]
+ ]
+}, {
+ "id": "f8dcacdf.a6eb7",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "outputs": 1,
+ "x": 333.0586624145508,
+ "y": 599.0624669790268,
+ "z": "926fea0b.1d3458",
+ "wires": [
+ ["e74616dd.2ed7f8", "3a764e2f.ce3ce2"]
+ ]
+}, {
+ "id": "3a764e2f.ce3ce2",
+ "type": "block",
+ "name": "find-network-data-block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
"comments": "",
"outputs": 1,
- "x": 837.4613037109375,
- "y": 1780.239260673523,
- "z": "e09ddcb4.62be2",
+ "x": 609.027530670166,
+ "y": 510.6980298757553,
+ "z": "926fea0b.1d3458",
"wires": [
- ["107aae8d.403771", "3e643f4d.27a45"]
+ ["4e7970ad.4b5bd", "3bfb1023.2b523", "c812a520.767f78"]
]
}, {
- "id": "107aae8d.403771",
+ "id": "2c54cd4f.4c8bf2",
"type": "outcomeTrue",
"name": "true",
"xml": "<outcome value='true'>\n",
"comments": "",
"outputs": 1,
- "x": 1097.4613037109375,
- "y": 1780.2390508651733,
- "z": "e09ddcb4.62be2",
+ "x": 2512.0592079162598,
+ "y": 721.0627983808517,
+ "z": "926fea0b.1d3458",
"wires": [
- ["3e959559.67274a"]
+ ["c9838804.3271d8"]
]
}, {
- "id": "2c7884dd.9d5eac",
- "type": "switchNode",
- "name": "switch network-parameter-name == 'thirdPartyAdaptorRpc'",
- "xml": "<switch test=\"`$tmp.network.network-data.network-topology.network-parameters.network-parameter[$cxid].network-parameter-name == 'thirdPartyAdaptorRpc'`\">\n",
+ "id": "f025ca00.b1be48",
+ "type": "block",
+ "name": "find-sotn-fc-port-block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
"comments": "",
"outputs": 1,
- "x": 1125.0168762207031,
- "y": 1405.0168838500977,
- "z": "e09ddcb4.62be2",
+ "x": 1540.0592346191406,
+ "y": 680.0626581907272,
+ "z": "926fea0b.1d3458",
"wires": [
- ["14544bfa.4af374"]
+ ["d0dc2867.7aac48", "3f4a3ecb.0378b2"]
]
}, {
- "id": "14544bfa.4af374",
+ "id": "3f4a3ecb.0378b2",
+ "type": "set",
+ "name": "set sotnFcPortListLength",
+ "xml": "<set>\n<parameter name='sotnFcPortListLength' value='0' />",
+ "comments": "",
+ "x": 1909.0587921142578,
+ "y": 621.0627483129501,
+ "z": "926fea0b.1d3458",
+ "wires": []
+}, {
+ "id": "c9838804.3271d8",
+ "type": "block",
+ "name": "find-OOF-input-block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 2390.5591468811035,
+ "y": 775.0626882314682,
+ "z": "926fea0b.1d3458",
+ "wires": [
+ ["fe450b4f.38cbb8", "d2affa42.51fb78"]
+ ]
+}, {
+ "id": "d2affa42.51fb78",
+ "type": "for",
+ "name": "for sIdx..network-input-parameters[]",
+ "xml": "<for index='paramIdx' start='0' end='`$service-data.networks.network[$sIdx].network-data.network-request-input.network-input-parameters.param_length`' >\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2569.0589027404785,
+ "y": 890.0628179311752,
+ "z": "926fea0b.1d3458",
+ "wires": [
+ ["eb3ac434.e3fe48"]
+ ]
+}, {
+ "id": "eb3ac434.e3fe48",
+ "type": "execute",
+ "name": "contains address",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='contains' >\n <parameter name=\"source\" value=\"`$service-data.networks.network[$sIdx].network-data.network-request-input.network-input-parameters.param[$paramIdx].name`\"/>\n <parameter name=\"target\" value=\"address\"/>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2537.558811187744,
+ "y": 943.0626500844955,
+ "z": "926fea0b.1d3458",
+ "wires": [
+ ["7ce26fd1.8df38"]
+ ]
+}, {
+ "id": "7ce26fd1.8df38",
"type": "outcomeTrue",
"name": "true",
"xml": "<outcome value='true'>\n",
"comments": "",
"outputs": 1,
- "x": 1413.0170097351074,
- "y": 1408.0169792175293,
- "z": "e09ddcb4.62be2",
+ "x": 2719.5589332580566,
+ "y": 943.0626500844955,
+ "z": "926fea0b.1d3458",
"wires": [
- ["2d59e0f.1af282"]
+ ["c085ea30.cd5968"]
]
}, {
- "id": "2d59e0f.1af282",
+ "id": "a47015e8.cb0ee8",
"type": "set",
- "name": "set tmp.thirdPartyAdaptorRpc",
- "xml": "<set>\n<parameter name='tmp.thirdPartyAdaptorRpc' value='`$tmp.network.network-data.network-topology.network-parameters.network-parameter[$cxid].network-parameter-value`' />\n<parameter name='tmp.thirdPartyAdaptorRpc-found' value='true' />",
+ "name": "set sotnFcPortAddress",
+ "xml": "<set>\n<parameter name='sotnFcPortAddress' value='`$service-data.networks.network[$sIdx].network-data.network-request-input.network-input-parameters.param[$paramIdx].value`' />",
"comments": "",
- "x": 1614.0170402526855,
- "y": 1406.0169801712036,
- "z": "e09ddcb4.62be2",
+ "x": 2777.5603942871094,
+ "y": 1056.0630768537521,
+ "z": "926fea0b.1d3458",
"wires": []
}, {
- "id": "3e959559.67274a",
+ "id": "c085ea30.cd5968",
+ "type": "block",
+ "name": "get-OOF-input-block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 2586.5589637756348,
+ "y": 1001.0628217458725,
+ "z": "926fea0b.1d3458",
+ "wires": [
+ ["a47015e8.cb0ee8", "1e310231.0de11e"]
+ ]
+}, {
+ "id": "c68e0fa0.942c8",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2802.0600090026855,
+ "y": 1178.0625947713852,
+ "z": "926fea0b.1d3458",
+ "wires": [
+ ["87931697.ce9668"]
+ ]
+}, {
+ "id": "1e310231.0de11e",
+ "type": "execute",
+ "name": "execute RestApiCallNode - get access Tp from OSS",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n <parameter name='restapiUrl' value=\"`$prop.oss.url + '/oss/inventory?location=' + $sotnFcPortAddress`\"/>\n <parameter name='format' value='json' />\n <parameter name='customHttpHeaders' value=\"X-FromAppId=MSO\" />\n <parameter name='httpMethod' value='GET' />\n <parameter name=\"responsePrefix\" value=\"temp.oss.accessTPs\" />\n\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2899.0589332580566,
+ "y": 1115.062528014183,
+ "z": "926fea0b.1d3458",
+ "wires": [
+ ["c68e0fa0.942c8"]
+ ]
+}, {
+ "id": "87931697.ce9668",
"type": "switchNode",
- "name": "switch templateFileName-found == 'true'",
- "xml": "<switch test=\"`$tmp.templateFileName-found == 'true'`\">\n",
+ "name": "switch temp.oss.accessTPs_length",
+ "xml": "<switch test=\"`$temp.oss.accessTPs_length`\">\n",
"comments": "",
"outputs": 1,
- "x": 835.0168762207031,
- "y": 1840.3502979278564,
- "z": "e09ddcb4.62be2",
+ "x": 3098.0591163635254,
+ "y": 1177.0625051259995,
+ "z": "926fea0b.1d3458",
"wires": [
- ["5a8246c3.86d3d8", "e9a7f173.e33ea"]
+ ["7d124bb0.ba2c74"]
]
}, {
- "id": "5a8246c3.86d3d8",
- "type": "outcomeTrue",
- "name": "true",
- "xml": "<outcome value='true'>\n",
+ "id": "7d124bb0.ba2c74",
+ "type": "other",
+ "name": "other",
+ "xml": "<outcome value='Other'>\n",
"comments": "",
"outputs": 1,
- "x": 1095.0168762207031,
- "y": 1840.3500881195068,
- "z": "e09ddcb4.62be2",
+ "x": 3362.560386657715,
+ "y": 1176.0627821683884,
+ "z": "926fea0b.1d3458",
"wires": [
- ["5e9a3d4b.faee04"]
+ ["50e1d009.293c"]
]
}, {
- "id": "40b8aaf.3584554",
- "type": "not-found",
- "name": "not-found",
- "xml": "<outcome value='not-found'>\n",
+ "id": "c6383260.ec986",
+ "type": "set",
+ "name": "set temp.accessTPs_length",
+ "xml": "<set>\n<parameter name='temp.accessTPs_length' value='`$temp.accessTPs_length + $temp.oss.accessTPs_length`' />\n\n",
+ "comments": "",
+ "x": 3308.060012817383,
+ "y": 1442.0589436292648,
+ "z": "926fea0b.1d3458",
+ "wires": []
+}, {
+ "id": "50e1d009.293c",
+ "type": "block",
+ "name": "copy-accessTPs-block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
"comments": "",
"outputs": 1,
- "x": 1568.0168762207031,
- "y": 1533.3502578735352,
- "z": "e09ddcb4.62be2",
+ "x": 2962.808380126953,
+ "y": 1265.058205485344,
+ "z": "926fea0b.1d3458",
"wires": [
- ["10f2c69f.8e3de9"]
+ ["c6383260.ec986", "9cdee8cd.2dbad8", "d76eb76d.375dc8"]
]
}, {
- "id": "54cba094.60db8",
- "type": "failure",
- "name": "failure",
- "xml": "<outcome value='failure'>\n",
+ "id": "9cdee8cd.2dbad8",
+ "type": "switchNode",
+ "name": "switch temp.accessTPs_length",
+ "xml": "<switch test='`$temp.accessTPs_length`'>\n",
"comments": "",
"outputs": 1,
- "x": 1559.0169258117676,
- "y": 1501.8502836227417,
- "z": "e09ddcb4.62be2",
+ "x": 3346.558334350586,
+ "y": 1267.0580424070358,
+ "z": "926fea0b.1d3458",
"wires": [
- ["10f2c69f.8e3de9"]
+ ["ddd28ed8.0b65e", "1b7da2eb.0351cd"]
]
}, {
- "id": "97bbf68a.23df28",
- "type": "success",
- "name": "success",
- "xml": "<outcome value='success'>\n",
+ "id": "ddd28ed8.0b65e",
+ "type": "other",
+ "name": "Null",
+ "xml": "<outcome value=''>\n",
"comments": "",
"outputs": 1,
- "x": 1562.7669639587402,
- "y": 1472.207388497889,
- "z": "e09ddcb4.62be2",
+ "x": 3572.5581855773926,
+ "y": 1242.0579699277878,
+ "z": "926fea0b.1d3458",
"wires": [
- ["9b5e3e39.e0053"]
+ ["884aab61.79c368"]
]
}, {
- "id": "10f2c69f.8e3de9",
- "type": "returnFailure",
- "name": "return failure",
- "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n <parameter name=\"error-message\" value=\"`'Error calling ' + $tmp.thirdPartyAdaptorRpc`\" />\n",
+ "id": "884aab61.79c368",
+ "type": "set",
+ "name": "set tp_length",
+ "xml": "<set>\n<parameter name='tp_length' value='0' />",
"comments": "",
- "x": 1725.766990661621,
- "y": 1518.6003561019897,
- "z": "e09ddcb4.62be2",
+ "x": 3759.05802154541,
+ "y": 1240.0579756791703,
+ "z": "926fea0b.1d3458",
"wires": []
}, {
- "id": "9b5e3e39.e0053",
+ "id": "1b7da2eb.0351cd",
+ "type": "other",
+ "name": "other",
+ "xml": "<outcome value='Other'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 3568.558151245117,
+ "y": 1297.058015704155,
+ "z": "926fea0b.1d3458",
+ "wires": [
+ ["aab633d0.c1e13"]
+ ]
+}, {
+ "id": "aab633d0.c1e13",
+ "type": "set",
+ "name": "set tp_length",
+ "xml": "<set>\n<parameter name='tp_length' value='`$temp.accessTPs_length`' />",
+ "comments": "",
+ "x": 3757.308090209961,
+ "y": 1297.058000445366,
+ "z": "926fea0b.1d3458",
+ "wires": []
+}, {
+ "id": "d76eb76d.375dc8",
+ "type": "for",
+ "name": "for each existing temp.oss.accessTPs",
+ "xml": "<for index='idx' start='0' end='`$temp.oss.accessTPs_length`' >\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 3348.3087768554688,
+ "y": 1365.0581473112106,
+ "z": "926fea0b.1d3458",
+ "wires": [
+ ["ee87558c.d153c8"]
+ ]
+}, {
+ "id": "ee87558c.d153c8",
+ "type": "set",
+ "name": "set temp.accessTPs",
+ "xml": "<set>\n<parameter name='`temp.accessTPs[$idx + $tp_length].`' value='`$temp.oss.accessTPs[$idx].`' />",
+ "comments": "",
+ "x": 3716.3086700439453,
+ "y": 1366.0582951307297,
+ "z": "926fea0b.1d3458",
+ "wires": []
+}, {
+ "id": "61103774.7c2958",
"type": "block",
"name": "block",
"xml": "<block>\n",
"atomic": "false",
"comments": "",
"outputs": 1,
- "x": 1704.4229316711426,
- "y": 1468.3995576873422,
- "z": "e09ddcb4.62be2",
+ "x": 1226.0586776733398,
+ "y": 679.0624278783798,
+ "z": "926fea0b.1d3458",
"wires": [
- []
+ ["f025ca00.b1be48", "45d2bc6f.d74144"]
]
}, {
- "id": "456722ac.35f45c",
- "type": "not-found",
- "name": "not-found",
- "xml": "<outcome value='not-found'>\n",
+ "id": "3397eec.96a2812",
+ "type": "execute",
+ "name": "execute RestApiCallNode getPath from OOF",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"templateFileName\" value=\"`$prop.restapi.templateDir + '/' + $prop.restapi.oof-getpath.templatefile`\" />\n<parameter name=\"restapiUrl\" value=\"`$prop.restapi.connection-oof-url`\" />\n<parameter name=\"restapiUser\" value=\"`$prop.oof.user`\" />\n<parameter name=\"restapiPassword\" value=\"`$prop.oof.password`\" />\n<parameter name=\"format\" value=\"json\"/>\n<parameter name=\"httpMethod\" value=\"post\"/>\n<parameter name=\"responsePrefix\" value=\"oof\"/>\n<parameter name=\"trustStoreFileName\" value=\"/opt/onap/sdnc/data/stores/truststore.openecomp.client.jks\"/>\n<parameter name=\"trustStorePassword\" value=\"adminadmin\"/>\n<parameter name=\"keyStoreFileName\" value=\"/opt/onap/sdnc/data/stores/sdnc.p12\"/>\n<parameter name=\"keyStorePassword\" value=\"adminadmin\"/>\n<parameter name='customHttpHeaders' value=\"`'X-ACCESS-TOKEN=' + $prop.sdncRestApi.token_id`\" />",
"comments": "",
"outputs": 1,
- "x": 1209.0168762207031,
- "y": 1958.3502578735352,
- "z": "e09ddcb4.62be2",
+ "x": 1952.5589714050293,
+ "y": 1317.0627564191818,
+ "z": "926fea0b.1d3458",
"wires": [
- ["504edb98.e54e24"]
+ ["44889bda.c6f5b4", "b5ee75d7.fdc598"]
]
}, {
- "id": "35b532e4.67c04e",
+ "id": "b5ee75d7.fdc598",
"type": "failure",
"name": "failure",
"xml": "<outcome value='failure'>\n",
"comments": "",
"outputs": 1,
- "x": 1200.0169258117676,
- "y": 1926.8502836227417,
- "z": "e09ddcb4.62be2",
+ "x": 2281.558624267578,
+ "y": 1297.0628241300583,
+ "z": "926fea0b.1d3458",
+ "wires": [
+ []
+ ]
+}, {
+ "id": "44889bda.c6f5b4",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2282.558837890625,
+ "y": 1348.0627335309982,
+ "z": "926fea0b.1d3458",
"wires": [
- ["504edb98.e54e24"]
+ ["a7b63c93.b232"]
]
}, {
- "id": "6cfa08fc.d58438",
+ "id": "45d2bc6f.d74144",
+ "type": "switchNode",
+ "name": "switch temp.accessTPs_length",
+ "xml": "<switch test=\"`$temp.accessTPs_length >= 2`\">\n\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1607.558650970459,
+ "y": 1072.0625962018967,
+ "z": "926fea0b.1d3458",
+ "wires": [
+ ["1fe1fd41.188173"]
+ ]
+}, {
+ "id": "1fe1fd41.188173",
+ "type": "outcomeTrue",
+ "name": "true",
+ "xml": "<outcome value='true'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1839.0589485168457,
+ "y": 1071.0624426603317,
+ "z": "926fea0b.1d3458",
+ "wires": [
+ ["6afbb95f.22fc18"]
+ ]
+}, {
+ "id": "6afbb95f.22fc18",
+ "type": "block",
+ "name": "call-oof-block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 1583.0585975646973,
+ "y": 1208.0625027418137,
+ "z": "926fea0b.1d3458",
+ "wires": [
+ ["3397eec.96a2812", "3bd5ae29.6c4052"]
+ ]
+}, {
+ "id": "3bd5ae29.6c4052",
+ "type": "set",
+ "name": "set oof input",
+ "xml": "<set>\n<parameter name='prop.connection-attachment.access-topology-id' value='`$temp.accessTPs[0].access-topology-id`' />\n<parameter name='prop.connection-attachment.access-client-id' value='`$temp.accessTPs[0].access-client-id`' />\n<parameter name='prop.connection-attachment.access-provider-id' value='`$temp.accessTPs[0].access-provider-id`' />\n<parameter name='prop.connection-attachment.access-node-id' value='`$temp.accessTPs[0].access-node-id`' />\n<parameter name='prop.connection-attachment.access-ltp-id' value='`$temp.accessTPs[0].access-ltp-id`' />\n<parameter name='prop.remote.connection-attachment.access-topology-id' value='`$temp.accessTPs[1].access-topology-id`' />\n<parameter name='prop.remote.connection-attachment.access-client-id' value='`$temp.accessTPs[1].access-client-id`' />\n<parameter name='prop.remote.connection-attachment.access-provider-id' value='`$temp.accessTPs[1].access-provider-id`' />\n<parameter name='prop.remote.connection-attachment.access-node-id' value='`$temp.accessTPs[1].access-node-id`' />\n<parameter name='prop.remote.connection-attachment.access-ltp-id' value='`$temp.accessTPs[1].access-ltp-id`' />",
+ "comments": "",
+ "x": 1839.5586738586426,
+ "y": 1212.0624779462814,
+ "z": "926fea0b.1d3458",
+ "wires": []
+}, {
+ "id": "e5744234.46142",
+ "type": "execute",
+ "name": "execute RestApiCallNode Create Sotn connectivity Service",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"templateFileName\" value=\"`$prop.restapi.templateDir + '/sotn-api-ConnectivityService.json'`\" />\n<parameter name=\"restapiUrl\" value=\"`$prop.sdncRestApi.thirdpartySdnc.url + '/restconf/operations/ZTE-API-ConnectivityService:create-connectivity-service'`\" />\n<parameter name=\"restapiUser\" value=\"`$prop.sdncRestApi.thirdpartySdnc.user`\" />\n<parameter name=\"restapiPassword\" value=\"`$prop.sdncRestApi.thirdpartySdnc.password`\" />\n<parameter name=\"format\" value=\"json\"/>\n<parameter name=\"httpMethod\" value=\"patch\"/>\n<parameter name=\"responsePrefix\" value=\"vpn-result\"/>\n<parameter name=\"trustStoreFileName\" value=\"/opt/onap/sdnc/data/stores/truststore.openecomp.client.jks\"/>\n<parameter name=\"trustStorePassword\" value=\"adminadmin\"/>\n<parameter name=\"keyStoreFileName\" value=\"/opt/onap/sdnc/data/stores/sdnc.p12\"/>\n<parameter name=\"keyStorePassword\" value=\"adminadmin\"/>\n<parameter name='customHttpHeaders' value=\"`'X-ACCESS-TOKEN=' + $prop.sdncRestApi.token_id`\" />",
+ "comments": "",
+ "outputs": 1,
+ "x": 2808.694080352783,
+ "y": 1838.0313729047775,
+ "z": "926fea0b.1d3458",
+ "wires": [
+ ["535d5b4b.9b7f24", "2e0febd4.c0f1c4"]
+ ]
+}, {
+ "id": "535d5b4b.9b7f24",
"type": "success",
"name": "success",
"xml": "<outcome value='success'>\n",
"comments": "",
"outputs": 1,
- "x": 1203.7669639587402,
- "y": 1897.207388497889,
- "z": "e09ddcb4.62be2",
+ "x": 3146.6938972473145,
+ "y": 1868.0314563512802,
+ "z": "926fea0b.1d3458",
+ "wires": [
+ ["dd3310d7.09a74"]
+ ]
+}, {
+ "id": "dd3310d7.09a74",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 3294.6938972473145,
+ "y": 1866.0313342809677,
+ "z": "926fea0b.1d3458",
"wires": [
- ["e5f43bf1.ad3d38"]
+ []
]
}, {
- "id": "504edb98.e54e24",
+ "id": "f9b75d98.9e7f2",
"type": "returnFailure",
"name": "return failure",
- "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n <parameter name=\"error-message\" value=\"`'Error calling ' + $tmp.restapiUrl`\" />\n",
+ "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n <parameter name=\"error-message\" value=\"Error executing Create vpn rest api\" />\n",
"comments": "",
- "x": 1366.766990661621,
- "y": 1943.6003561019897,
- "z": "e09ddcb4.62be2",
+ "x": 3276.6939277648926,
+ "y": 1813.0313943624496,
+ "z": "926fea0b.1d3458",
"wires": []
}, {
- "id": "e5f43bf1.ad3d38",
+ "id": "2e0febd4.c0f1c4",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 3137.693836212158,
+ "y": 1813.0313943624496,
+ "z": "926fea0b.1d3458",
+ "wires": [
+ ["f9b75d98.9e7f2"]
+ ]
+}, {
+ "id": "a7b63c93.b232",
+ "type": "for",
+ "name": "for vidx..oof.vpns_length[]",
+ "xml": "<for index='vidx' start='0' end='`$oof.vpns_length`' >",
+ "comments": "",
+ "outputs": 1,
+ "x": 2386.697696685791,
+ "y": 1526.5348581075668,
+ "z": "926fea0b.1d3458",
+ "wires": [
+ ["eeab1f45.5ad4e"]
+ ]
+}, {
+ "id": "eeab1f45.5ad4e",
"type": "block",
- "name": "block",
- "xml": "<block>\n",
- "atomic": "false",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "outputs": 1,
+ "x": 2499.8150596618652,
+ "y": 1626.3748730421066,
+ "z": "926fea0b.1d3458",
+ "wires": [
+ ["6c8bea50.c3a084", "c15d913b.304b6", "e5744234.46142", "410e9e0d.02dd6"]
+ ]
+}, {
+ "id": "cfda9d38.b58d3",
+ "type": "set",
+ "name": "set controller data",
+ "xml": "<set>\n<parameter name='prop.sdncRestApi.thirdpartySdnc.url' value=\"`$tmp.aai.esr-thirdparty-sdnc.esr-system-info-list.esr-system-info[0].service-url`\" />\n<parameter name='prop.sdncRestApi.thirdpartySdnc.user' value=\"`$tmp.aai.esr-thirdparty-sdnc.esr-system-info-list.esr-system-info[0].user-name`\" />\n<parameter name='prop.sdncRestApi.thirdpartySdnc.password' value=\"`$tmp.aai.esr-thirdparty-sdnc.esr-system-info-list.esr-system-info[0].password`\" />\n",
+ "comments": "",
+ "x": 3141.25972366333,
+ "y": 1690.7080653905869,
+ "z": "926fea0b.1d3458",
+ "wires": []
+}, {
+ "id": "c15d913b.304b6",
+ "type": "get-resource",
+ "name": "get-resource esr-thirdparty-sdnc",
+ "xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\t\tresource=\"esr-thirdparty-sdnc\" \n\t\tkey=\"esr-thirdparty-sdnc.thirdparty-sdnc-id = $tmp.thirdparty-sdnc-id AND \n\t\t depth = '1'\"\n pfx='tmp.aai.esr-thirdparty-sdnc' local-only='false' >\n\n",
"comments": "",
"outputs": 1,
- "x": 1345.4229316711426,
- "y": 1893.3995576873422,
- "z": "e09ddcb4.62be2",
+ "x": 2757.7596321105957,
+ "y": 1727.7080048322678,
+ "z": "926fea0b.1d3458",
"wires": [
- []
+ ["13cbf9b9.b81a66", "bc1574ec.7fa5e8", "ad0c242.b566ad8"]
]
}, {
- "id": "94431bfa.4e9a48",
- "type": "outcomeTrue",
- "name": "false",
- "xml": "<outcome value='false'>\n",
+ "id": "13cbf9b9.b81a66",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2977.759567260742,
+ "y": 1691.7079738378525,
+ "z": "926fea0b.1d3458",
+ "wires": [
+ ["cfda9d38.b58d3"]
+ ]
+}, {
+ "id": "bc1574ec.7fa5e8",
+ "type": "not-found",
+ "name": "not-found",
+ "xml": "<outcome value='not-found'>\n",
"comments": "",
"outputs": 1,
- "x": 1246.6835021972656,
- "y": 1608.4613418579102,
- "z": "e09ddcb4.62be2",
+ "x": 2987.2505073547363,
+ "y": 1732.28197991848,
+ "z": "926fea0b.1d3458",
"wires": [
- ["79546287.78b3ac"]
+ ["6527879e.b615e8"]
]
}, {
- "id": "79546287.78b3ac",
+ "id": "ad0c242.b566ad8",
+ "type": "other",
+ "name": "other",
+ "xml": "<outcome value='Other'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2982.583484649658,
+ "y": 1768.6152929067612,
+ "z": "926fea0b.1d3458",
+ "wires": [
+ ["85d611b.775aaf"]
+ ]
+}, {
+ "id": "6527879e.b615e8",
"type": "returnFailure",
"name": "return failure",
- "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"404\" />\n <parameter name=\"error-message\" value=\"Error: 3rd party controller restapiUrl not found\" />\n \n",
+ "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n <parameter name=\"error-message\" value=\"`'An error occurred while querying esr-thirdparty-sdnc from AnAI with thirdparty-sdnc-id = ' + $tmp.thirdparty-sdnc-id`\" />\n\n",
"comments": "",
- "x": 1417.6835021972656,
- "y": 1616.461311340332,
- "z": "e09ddcb4.62be2",
+ "x": 3133.8218574523926,
+ "y": 1728.5678066015244,
+ "z": "926fea0b.1d3458",
"wires": []
}, {
- "id": "52bc5ad7.e75954",
- "type": "outcomeTrue",
- "name": "false",
- "xml": "<outcome value='false'>\n",
+ "id": "85d611b.775aaf",
+ "type": "returnFailure",
+ "name": "return failure",
+ "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n <parameter name=\"error-message\" value=\"`'Unexpected error occurred while querying esr-thirdparty-sdnc from AnAI with thirdparty-sdnc-id = ' + $tmp.thirdparty-sdnc-id`\" />\n\n",
+ "comments": "",
+ "x": 3137.356128692627,
+ "y": 1770.05444085598,
+ "z": "926fea0b.1d3458",
+ "wires": []
+}, {
+ "id": "6c8bea50.c3a084",
+ "type": "get-resource",
+ "name": "get-resource pnf",
+ "xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\t\tresource=\"pnf\" \n\t\tkey=\"pnf.pnf-name = $oof.vpn.access-node-id \n\t\tAND depth = '0'\"\n pfx='tmp.aai.pnf' local-only='false' >\n\n\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2703.2595252990723,
+ "y": 1636.7076486349106,
+ "z": "926fea0b.1d3458",
+ "wires": [
+ ["361f5e9d.140af2", "4cf0f707.e6c778", "6db6cec3.b72d2"]
+ ]
+}, {
+ "id": "361f5e9d.140af2",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2885.2595710754395,
+ "y": 1581.7077587842941,
+ "z": "926fea0b.1d3458",
+ "wires": [
+ ["71ac1295.fb6b8c"]
+ ]
+}, {
+ "id": "4cf0f707.e6c778",
+ "type": "not-found",
+ "name": "not-found",
+ "xml": "<outcome value='not-found'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2885.750473022461,
+ "y": 1619.2818554639816,
+ "z": "926fea0b.1d3458",
+ "wires": [
+ ["c8a04464.0d92e8"]
+ ]
+}, {
+ "id": "6db6cec3.b72d2",
+ "type": "other",
+ "name": "other",
+ "xml": "<outcome value='Other'>\n",
"comments": "",
"outputs": 1,
- "x": 1251.6835021972656,
- "y": 1687.4613418579102,
- "z": "e09ddcb4.62be2",
+ "x": 2877.083484649658,
+ "y": 1652.6152304410934,
+ "z": "926fea0b.1d3458",
"wires": [
- ["e7175614.0bbb18"]
+ ["2ba90495.cc80ec"]
]
}, {
- "id": "e7175614.0bbb18",
+ "id": "c8a04464.0d92e8",
+ "type": "returnFailure",
+ "name": "return failure",
+ "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n <parameter name=\"error-message\" value=\"`'An error occurred while querying pnf from AnAI with pnf-name = ' + $prop.connection-attachement.access-node-id`\" />\n\n",
+ "comments": "",
+ "x": 3033.3220977783203,
+ "y": 1618.5677441358566,
+ "z": "926fea0b.1d3458",
+ "wires": []
+}, {
+ "id": "2ba90495.cc80ec",
"type": "returnFailure",
"name": "return failure",
- "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"404\" />\n <parameter name=\"error-message\" value=\"Error: 3rd party controller restapiUser not found\" />\n \n",
+ "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n <parameter name=\"error-message\" value=\"`'Unexpected error occurred while querying pnf from AnAI with pnf-name = ' + $prop.connection-attachement.access-node-id`\" />\n\n",
"comments": "",
- "x": 1422.6835021972656,
- "y": 1695.461311340332,
- "z": "e09ddcb4.62be2",
+ "x": 3030.856128692627,
+ "y": 1652.0543783903122,
+ "z": "926fea0b.1d3458",
"wires": []
}, {
- "id": "3e643f4d.27a45",
+ "id": "71ac1295.fb6b8c",
+ "type": "set",
+ "name": "set tmp.thirdparty-sdnc-id",
+ "xml": "<set>\n<parameter name='tmp.thirdparty-sdnc-id' value=\"`$tmp.aai.pnf.relationship-list.relationship[0].relationship-data[0].relationship-value`\" />\n",
+ "comments": "",
+ "x": 3070.2595710754395,
+ "y": 1580.7078808546066,
+ "z": "926fea0b.1d3458",
+ "wires": []
+}, {
+ "id": "410e9e0d.02dd6",
+ "type": "set",
+ "name": "set oof.vpn",
+ "xml": "<set>\n<parameter name='oof.vpn.' value='`$oof.vpns[$vidx].`' />",
+ "comments": "",
+ "x": 2695.2595176696777,
+ "y": 1525.8187206983566,
+ "z": "926fea0b.1d3458",
+ "wires": []
+}, {
+ "id": "e1dac9e1.6143b8",
+ "type": "switchNode",
+ "name": "switch network-parameter-name == 'thirdPartySdncId'",
+ "xml": "<switch test=\"`$tmp.network.network-data.network-topology.network-parameters.network-parameter[$cxid].network-parameter-name == 'thirdPartySdncId'`\">\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1656.3606433868408,
+ "y": 2064.0312827825546,
+ "z": "926fea0b.1d3458",
+ "wires": [
+ ["97e55015.0cef1"]
+ ]
+}, {
+ "id": "97e55015.0cef1",
"type": "outcomeTrue",
- "name": "false",
- "xml": "<outcome value='false'>\n",
+ "name": "true",
+ "xml": "<outcome value='true'>\n",
"comments": "",
"outputs": 1,
- "x": 1242.6835021972656,
- "y": 1758.4613418579102,
- "z": "e09ddcb4.62be2",
+ "x": 1987.5585746765137,
+ "y": 2065.0622037649155,
+ "z": "926fea0b.1d3458",
"wires": [
- ["eab97fcc.763a6"]
+ ["4f5ce339.2f4b7c"]
]
}, {
- "id": "eab97fcc.763a6",
- "type": "returnFailure",
- "name": "return failure",
- "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"404\" />\n <parameter name=\"error-message\" value=\"Error: 3rd party controller restapiPassword not found\" />\n \n",
+ "id": "4f5ce339.2f4b7c",
+ "type": "get-resource",
+ "name": "get-resource esr-thirdparty-sdnc",
+ "xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\t\tresource=\"esr-thirdparty-sdnc\" \n\t\tkey=\"esr-thirdparty-sdnc.thirdparty-sdnc-id = `$tmp.network.network-data.network-topology.network-parameters.network-parameter[$cxid].network-parameter-value` AND \n\t\t depth = '1'\"\n pfx='tmp.aai.esr-thirdparty-sdnc' local-only='false' >\n\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2252.559513092041,
+ "y": 2063.0622037649155,
+ "z": "926fea0b.1d3458",
+ "wires": [
+ ["2b9c64e4.ee151c", "847e4996.04f018", "b0a7e0c2.d0f99"]
+ ]
+}, {
+ "id": "2b9c64e4.ee151c",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2514.5593185424805,
+ "y": 2007.0620158910751,
+ "z": "926fea0b.1d3458",
+ "wires": [
+ ["760fc6b6.ea2d48"]
+ ]
+}, {
+ "id": "760fc6b6.ea2d48",
+ "type": "set",
+ "name": "set controller data",
+ "xml": "<set>\n<parameter name='prop.thirdpartySdnc-found' value='true' />\n<parameter name='prop.sdncRestApi.thirdpartySdnc.url' value=\"`$tmp.aai.esr-thirdparty-sdnc.esr-system-info-list.esr-system-info[0].service-url`\" />\n<parameter name='prop.sdncRestApi.thirdpartySdnc.user' value=\"`$tmp.aai.esr-thirdparty-sdnc.esr-system-info-list.esr-system-info[0].user-name`\" />\n<parameter name='prop.sdncRestApi.thirdpartySdnc.password' value=\"`$tmp.aai.esr-thirdparty-sdnc.esr-system-info-list.esr-system-info[0].password`\" />\n",
"comments": "",
- "x": 1413.6835021972656,
- "y": 1766.461311340332,
- "z": "e09ddcb4.62be2",
+ "x": 2712.0593795776367,
+ "y": 1995.0620158910751,
+ "z": "926fea0b.1d3458",
"wires": []
}, {
- "id": "e9a7f173.e33ea",
+ "id": "847e4996.04f018",
+ "type": "not-found",
+ "name": "not-found",
+ "xml": "<outcome value='not-found'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2546.0501823425293,
+ "y": 2055.636119246483,
+ "z": "926fea0b.1d3458",
+ "wires": [
+ ["d47f6331.80419"]
+ ]
+}, {
+ "id": "b0a7e0c2.d0f99",
+ "type": "other",
+ "name": "other",
+ "xml": "<outcome value='Other'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2541.3831901550293,
+ "y": 2096.969432234764,
+ "z": "926fea0b.1d3458",
+ "wires": [
+ ["d47f6331.80419"]
+ ]
+}, {
+ "id": "d47f6331.80419",
+ "type": "set",
+ "name": "set controller data",
+ "xml": "<set>\n<parameter name='prop.thirdpartySdnc-found' value='false' />\n",
+ "comments": "",
+ "x": 2753.0585975646973,
+ "y": 2074.062201857567,
+ "z": "926fea0b.1d3458",
+ "wires": []
+}, {
+ "id": "43cfa6be.6eb688",
+ "type": "switchNode",
+ "name": "switch network-parameter-name == 'restapiUrl'",
+ "xml": "<switch test=\"`$tmp.network.network-data.network-topology.network-parameters.network-parameter[$cxid].network-parameter-name == 'restapiUrl'`\">\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1629.5584564208984,
+ "y": 2156.0620836019516,
+ "z": "926fea0b.1d3458",
+ "wires": [
+ ["24fb19a9.1d22f6"]
+ ]
+}, {
+ "id": "24fb19a9.1d22f6",
"type": "outcomeTrue",
- "name": "false",
- "xml": "<outcome value='false'>\n",
+ "name": "true",
+ "xml": "<outcome value='true'>\n",
"comments": "",
"outputs": 1,
- "x": 1241.6835021972656,
- "y": 1819.4613418579102,
- "z": "e09ddcb4.62be2",
+ "x": 1971.5585670471191,
+ "y": 2154.0622066259384,
+ "z": "926fea0b.1d3458",
"wires": [
- ["4679556f.41babc"]
+ ["cdaeb398.e7393"]
]
}, {
- "id": "4679556f.41babc",
- "type": "returnFailure",
- "name": "return failure",
- "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"404\" />\n <parameter name=\"error-message\" value=\"Error: 3rd party controller templateFileName not found\" />\n \n",
+ "id": "cdaeb398.e7393",
+ "type": "set",
+ "name": "set tmp.templateFileName",
+ "xml": "<set>\n<parameter name='tmp.restapiUrl' value='`$tmp.network.network-data.network-topology.network-parameters.network-parameter[$cxid].network-parameter-value`' />\n<parameter name='tmp.restapiUrl-found' value='true' />",
"comments": "",
- "x": 1412.6835021972656,
- "y": 1827.461311340332,
- "z": "e09ddcb4.62be2",
+ "x": 2215.558645248413,
+ "y": 2158.0622762441635,
+ "z": "926fea0b.1d3458",
"wires": []
}] \ No newline at end of file