aboutsummaryrefslogtreecommitdiffstats
path: root/platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_site-vnf-topology-operation-activate.json
diff options
context:
space:
mode:
Diffstat (limited to 'platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_site-vnf-topology-operation-activate.json')
-rw-r--r--platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_site-vnf-topology-operation-activate.json1197
1 files changed, 504 insertions, 693 deletions
diff --git a/platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_site-vnf-topology-operation-activate.json b/platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_site-vnf-topology-operation-activate.json
index dabcc4f1..b750acf2 100644
--- a/platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_site-vnf-topology-operation-activate.json
+++ b/platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_site-vnf-topology-operation-activate.json
@@ -1,20 +1,20 @@
[
{
- "id": "fe5a38bb.bd0078",
+ "id": "c9dff872.319c28",
"type": "dgstart",
"name": "DGSTART",
"outputs": 1,
- "x": 108,
- "y": 187.0103931427002,
- "z": "e876afdc.6a24f",
+ "x": 182.03125,
+ "y": 193.0103907585144,
+ "z": "8546294e.bbf628",
"wires": [
[
- "8fa75912.54ed58"
+ "f599176a.0162d8"
]
]
},
{
- "id": "8fa75912.54ed58",
+ "id": "f599176a.0162d8",
"type": "service-logic",
"name": "GENERIC-RESOURCE-API ${project.version}",
"module": "GENERIC-RESOURCE-API",
@@ -22,1407 +22,1218 @@
"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": 183.28570556640625,
- "y": 227.24850463867188,
- "z": "e876afdc.6a24f",
+ "x": 257.31695556640625,
+ "y": 233.24850225448608,
+ "z": "8546294e.bbf628",
"wires": [
[
- "a48c87a9.a55028"
+ "6ef8717d.0a89a"
]
]
},
{
- "id": "a48c87a9.a55028",
+ "id": "6ef8717d.0a89a",
"type": "method",
"name": "method site-vnf-topology-operation-activate",
"xml": "<method rpc='site-vnf-topology-operation-activate' mode='sync'>\n",
"comments": "",
"outputs": 1,
- "x": 204.42861938476562,
- "y": 317.0103931427002,
- "z": "e876afdc.6a24f",
+ "x": 278.4598693847656,
+ "y": 323.0103907585144,
+ "z": "8546294e.bbf628",
"wires": [
[
- "38f14e2f.c24e22"
+ "e4c81f6e.49ef7"
]
]
},
{
- "id": "38f14e2f.c24e22",
+ "id": "e4c81f6e.49ef7",
"type": "block",
"name": "block : atomic",
"xml": "<block atomic=\"true\">",
"atomic": "true",
"outputs": 1,
- "x": 192.66673278808594,
- "y": 506.6771717071533,
- "z": "e876afdc.6a24f",
+ "x": 266.69798278808594,
+ "y": 512.6771693229675,
+ "z": "8546294e.bbf628",
"wires": [
[
- "44a8ff3e.e9b76",
- "79a45953.cb4488",
- "6e5a67bd.c2ddb8",
- "dc5b8c85.92a84",
- "3adc7192.5bf7fe",
- "1ddd800f.cc627",
- "708f2def.d37784",
- "73349d78.1f3074",
- "6ab44a9b.48e9b4",
- "3f3b503b.d5da4",
- "99fac312.5a742"
+ "cd35c02d.85245",
+ "cbc96af.e7a6b98",
+ "f380f867.7d6998",
+ "be9b1521.3244d8",
+ "8699a911.00b498",
+ "640f5d20.cfa064",
+ "e28c053e.d4c358",
+ "c2b356f7.cb66f8",
+ "cfdaefb3.97c88",
+ "de98d30f.d2fa5"
]
]
},
{
- "id": "dc5b8c85.92a84",
- "type": "for",
- "name": "for loop i - VNF input parameters",
- "xml": "<for index='idx' start='0' end='`$service-data.vnfs.vnf[$vidx].vnf-data.vnf-request-input.vnf-input-parameters.param_length`' >\n",
- "comments": "",
- "outputs": 1,
- "x": 649.1047821044922,
- "y": 325.078284740448,
- "z": "e876afdc.6a24f",
- "wires": [
- [
- "b5990ea7.a9c72"
- ]
- ]
- },
- {
- "id": "44a8ff3e.e9b76",
+ "id": "cd35c02d.85245",
"type": "switchNode",
"name": "switch service-data.vnfs.vnf_length",
"xml": "<switch test='`$service-data.vnfs.vnf_length`'>\n",
"comments": "",
"outputs": 1,
- "x": 631.9896621704102,
- "y": 135.99998807907104,
- "z": "e876afdc.6a24f",
+ "x": 706.0209121704102,
+ "y": 141.99998569488525,
+ "z": "8546294e.bbf628",
"wires": [
[
- "def084ef.6fe5a8",
- "6c59b52d.4816dc",
- "fe5f06d4.6ce418"
+ "e72f24a3.7e9cf8",
+ "56a6c4e8.1f860c",
+ "7ce3d5f2.723dec"
]
]
},
{
- "id": "def084ef.6fe5a8",
+ "id": "e72f24a3.7e9cf8",
"type": "other",
"name": "Null",
"xml": "<outcome value=''>\n",
"comments": "",
"outputs": 1,
- "x": 862.9896392822266,
- "y": 138.0000514984131,
- "z": "e876afdc.6a24f",
+ "x": 937.0208892822266,
+ "y": 144.0000491142273,
+ "z": "8546294e.bbf628",
"wires": [
[
- "a40915eb.62f7c8"
+ "edb6abe2.7bba78"
]
]
},
{
- "id": "a40915eb.62f7c8",
+ "id": "edb6abe2.7bba78",
"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=\"vnf-topology-operation-input.vnf-request-input.vnf-id not found in service-data\" />\n",
"comments": "",
- "x": 1020.7671546936035,
- "y": 118.88899993896484,
- "z": "e876afdc.6a24f",
+ "x": 1094.7984046936035,
+ "y": 124.88899755477905,
+ "z": "8546294e.bbf628",
"wires": []
},
{
- "id": "6c59b52d.4816dc",
+ "id": "56a6c4e8.1f860c",
"type": "other",
"name": "other",
"xml": "<outcome value='Other'>\n",
"comments": "",
"outputs": 1,
- "x": 854.9900665283203,
- "y": 173.00007343292236,
- "z": "e876afdc.6a24f",
+ "x": 929.0213165283203,
+ "y": 179.00007104873657,
+ "z": "8546294e.bbf628",
"wires": [
[
- "7b4738a3.9186a8"
+ "28abc688.86ccda"
]
]
},
{
- "id": "7b4738a3.9186a8",
+ "id": "28abc688.86ccda",
"type": "block",
"name": "block : atomic",
"xml": "<block atomic=\"true\">",
"atomic": "true",
"outputs": 1,
- "x": 1021.2595367431641,
- "y": 164.55460691452026,
- "z": "e876afdc.6a24f",
+ "x": 1095.290786743164,
+ "y": 170.55460453033447,
+ "z": "8546294e.bbf628",
"wires": [
[
- "39aaaddb.c527a2",
- "80c14f8c.d4c2",
- "fb9527f.4513dd8"
+ "13d47e80.4e6022",
+ "5d523d19.4e3534",
+ "63f3d384.29d3ac"
]
]
},
{
- "id": "39aaaddb.c527a2",
+ "id": "13d47e80.4e6022",
"type": "for",
"name": "for vidx..service-data.vnfs.vnf_length[]",
"xml": "<for index='vidx' start='0' end='`$service-data.vnfs.vnf_length`' >\n",
"comments": "",
"outputs": 1,
- "x": 1291.2756271362305,
- "y": 108.42860794067383,
- "z": "e876afdc.6a24f",
+ "x": 1365.3068771362305,
+ "y": 114.42860555648804,
+ "z": "8546294e.bbf628",
"wires": [
[
- "792cd7fe.bce288"
+ "9845da61.98a1c8"
]
]
},
{
- "id": "80c14f8c.d4c2",
+ "id": "5d523d19.4e3534",
"type": "switchNode",
"name": "switch tmp.vidx ",
"xml": "<switch test=\"`$tmp.vidx`\">\n\n",
"comments": "",
"outputs": 1,
- "x": 1227.5769805908203,
- "y": 159.41179656982422,
- "z": "e876afdc.6a24f",
+ "x": 1301.6082305908203,
+ "y": 165.41179418563843,
+ "z": "8546294e.bbf628",
"wires": [
[
- "767a61a0.371db"
+ "26cec9c2.9bd426"
]
]
},
{
- "id": "767a61a0.371db",
+ "id": "26cec9c2.9bd426",
"type": "outcome",
"name": "NULL",
"xml": "<outcome value=''>\n",
"comments": "",
"outputs": 1,
- "x": 1379.0057830810547,
- "y": 159.98322677612305,
- "z": "e876afdc.6a24f",
+ "x": 1453.0370330810547,
+ "y": 165.98322439193726,
+ "z": "8546294e.bbf628",
"wires": [
[
- "10547f9b.2e5b4"
+ "a0a7bb4c.608bd8"
]
]
},
{
- "id": "506c3f6d.abfb3",
+ "id": "90e8fa4e.9e0b88",
"type": "switchNode",
"name": "switch vnfid found",
"xml": "<switch test=\"`$service-data.vnfs.vnf[$vidx].vnf-id == $vnf-topology-operation-input.vnf-information.vnf-id`\">\n\n",
"comments": "",
"outputs": 1,
- "x": 1688.7043685913086,
- "y": 68.67873001098633,
- "z": "e876afdc.6a24f",
+ "x": 1762.7356185913086,
+ "y": 74.67872762680054,
+ "z": "8546294e.bbf628",
"wires": [
[
- "970983d7.84ecd"
+ "b847bf38.a4e72"
]
]
},
{
- "id": "10547f9b.2e5b4",
+ "id": "a0a7bb4c.608bd8",
"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=\"vnf-topology-operation-input.vnf-request-input.vnf-id not found in service-data\" />\n",
"comments": "",
- "x": 1517.434181213379,
- "y": 161.12604904174805,
- "z": "e876afdc.6a24f",
+ "x": 1591.465431213379,
+ "y": 167.12604665756226,
+ "z": "8546294e.bbf628",
"wires": []
},
{
- "id": "970983d7.84ecd",
+ "id": "b847bf38.a4e72",
"type": "outcomeTrue",
"name": "true",
"xml": "<outcome value='true'>\n",
"comments": "",
"outputs": 1,
- "x": 1862.6568489074707,
- "y": 68.57145023345947,
- "z": "e876afdc.6a24f",
+ "x": 1936.6880989074707,
+ "y": 74.57144784927368,
+ "z": "8546294e.bbf628",
"wires": [
[
- "13efb35.8a5a24d"
+ "fe37a50e.9b06e8"
]
]
},
{
- "id": "13efb35.8a5a24d",
- "type": "set",
- "name": "set tmp.vidx and ctx.vnf-data",
- "xml": "<set>\n<parameter name='tmp.vidx' value='`$vidx`' />\n<parameter name='ctx.vnf-data.' value='`$service-data.vnfs.vnf[$vidx].`' />\n",
- "comments": "",
- "x": 2058.1885986328125,
- "y": 68.32144069671631,
- "z": "e876afdc.6a24f",
- "wires": []
- },
- {
- "id": "fe5f06d4.6ce418",
+ "id": "7ce3d5f2.723dec",
"type": "outcome",
"name": "0",
"xml": "<outcome value='0'>\n",
"comments": "",
"outputs": 1,
- "x": 860.9584503173828,
- "y": 100.96874046325684,
- "z": "e876afdc.6a24f",
+ "x": 934.9897003173828,
+ "y": 106.96873807907104,
+ "z": "8546294e.bbf628",
"wires": [
[
- "a40915eb.62f7c8"
+ "edb6abe2.7bba78"
]
]
},
{
- "id": "3adc7192.5bf7fe",
+ "id": "be9b1521.3244d8",
"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": 576.3336982727051,
- "y": 689.3441772460938,
- "z": "e876afdc.6a24f",
+ "x": 650.3649482727051,
+ "y": 695.344174861908,
+ "z": "8546294e.bbf628",
"wires": []
},
{
- "id": "6ab44a9b.48e9b4",
+ "id": "c2b356f7.cb66f8",
"type": "set",
"name": "set vnf-level-oper-status to Active",
"xml": "<set>\n<parameter name='service-data.vnfs.vnf[$tmp.vidx].vnf-data.vnf-level-oper-status.order-status' value='Active' />\n<parameter name='service-data.vnfs.vnf[$tmp.vidx].vnf-data.vnf-level-oper-status.last-rpc-action' value='`$vnf-topology-operation-input.sdnc-request-header.svc-action`' />\n<parameter name='service-data.vnfs.vnf[$tmp.vidx].vnf-data.vnf-level-oper-status.last-action' value='`$vnf-topology-operation-input.request-information.request-action`' />\n",
"comments": "",
- "x": 638.8138885498047,
- "y": 523.6816167831421,
- "z": "e876afdc.6a24f",
+ "x": 712.8451385498047,
+ "y": 529.6816143989563,
+ "z": "8546294e.bbf628",
"wires": []
},
{
- "id": "73349d78.1f3074",
+ "id": "e28c053e.d4c358",
"type": "set",
"name": "set vnf-index and vnf-object-path",
"xml": "<set>\n<parameter name='vnfId' value='`$service-data.vnfs.vnf[$tmp.vidx].vnf-id`' />\n<parameter name=\"vnf-object-path\" value=\"`'restconf/config/GENERIC-RESOURCE-API:services/service/' + $vnf-topology-operation-input.service-information.service-instance-id + '/service-data/vnfs/vnf/' + $service-data.vnfs.vnf[$tmp.vidx].vnf-id + '/vnf-data/'` \" />",
"comments": "",
- "x": 638.50048828125,
- "y": 480.3441514968872,
- "z": "e876afdc.6a24f",
+ "x": 712.53173828125,
+ "y": 486.3441491127014,
+ "z": "8546294e.bbf628",
"wires": []
},
{
- "id": "aaa950b9.3f56b",
+ "id": "5369a88f.c265a8",
"type": "success",
"name": "success",
"xml": "<outcome value='success'>\n",
"comments": "",
"outputs": 1,
- "x": 1565.500316619873,
- "y": 818.0003184080124,
- "z": "e876afdc.6a24f",
+ "x": 1570.531826019287,
+ "y": 431.00039863586426,
+ "z": "8546294e.bbf628",
"wires": [
[
- "88dbfad5.81b4c8"
+ "e11a3e97.9a4cf"
]
]
},
{
- "id": "88dbfad5.81b4c8",
+ "id": "e11a3e97.9a4cf",
"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": 1754.0004119873047,
- "y": 812.0003280639648,
- "z": "e876afdc.6a24f",
+ "x": 1759.0319213867188,
+ "y": 425.0004082918167,
+ "z": "8546294e.bbf628",
"wires": []
},
{
- "id": "1c9cd1a7.9cc68e",
+ "id": "a5222a28.6f55b8",
"type": "not-found",
"name": "not-found",
"xml": "<outcome value='not-found'>\n",
"comments": "",
"outputs": 1,
- "x": 1568.991283416748,
- "y": 865.5743540525436,
- "z": "e876afdc.6a24f",
+ "x": 1574.022792816162,
+ "y": 478.5744342803955,
+ "z": "8546294e.bbf628",
"wires": [
[
- "55bc7178.25cc8"
+ "ea233a49.a94538"
]
]
},
{
- "id": "55bc7178.25cc8",
+ "id": "ea233a49.a94538",
"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 esr-thirdparty-sdnc from AnAI with thirdparty-sdnc-id = ' + $tmp.thirdparty-sdnc-id`\" />\n\n",
"comments": "",
- "x": 1742.5626945495605,
- "y": 853.860090136528,
- "z": "e876afdc.6a24f",
+ "x": 1747.5942039489746,
+ "y": 466.8601703643799,
+ "z": "8546294e.bbf628",
"wires": []
},
{
- "id": "98e7b2b4.03262",
+ "id": "42b5e401.e14b8c",
"type": "other",
"name": "other",
"xml": "<outcome value='Other'>\n",
"comments": "",
"outputs": 1,
- "x": 1561.324291229248,
- "y": 906.9076670408249,
- "z": "e876afdc.6a24f",
+ "x": 1566.355800628662,
+ "y": 519.9077472686768,
+ "z": "8546294e.bbf628",
"wires": [
[
- "201a39ec.7051b6"
+ "28e9f15e.a3f2ce"
]
]
},
{
- "id": "201a39ec.7051b6",
+ "id": "28e9f15e.a3f2ce",
"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": 1749.0968475341797,
- "y": 902.3468598127365,
- "z": "e876afdc.6a24f",
+ "x": 1754.1283569335938,
+ "y": 515.3469400405884,
+ "z": "8546294e.bbf628",
"wires": []
},
{
- "id": "fccf6b1b.062f88",
+ "id": "e43f8602.8d7af8",
"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",
+ "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 = SDWAN-Controller AND \n\t\t depth = '1'\"\n pfx='tmp.aai.esr-thirdparty-sdnc' local-only='false' >\n\n",
"comments": "",
"outputs": 1,
- "x": 1298.500228881836,
- "y": 866.0003242492676,
- "z": "e876afdc.6a24f",
+ "x": 1303.53173828125,
+ "y": 479.00040447711945,
+ "z": "8546294e.bbf628",
"wires": [
[
- "aaa950b9.3f56b",
- "1c9cd1a7.9cc68e",
- "98e7b2b4.03262"
+ "5369a88f.c265a8",
+ "a5222a28.6f55b8",
+ "42b5e401.e14b8c"
]
]
},
{
- "id": "9d503875.591ee8",
+ "id": "d2ea4d7a.0f7bc",
"type": "execute",
"name": "execute RestApiCallNode Create SDWAN site",
"xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"templateFileName\" value=\"`$prop.restapi.templateDir + '/sdwan-site.json'`\" />\n<parameter name=\"restapiUrl\" value=\"`$prop.sdncRestApi.thirdpartySdnc.url + '/controller/campus/v1/sdwan/net/sites'`\" />\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=\"site-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": 1352.0003204345703,
- "y": 1023.0002918243408,
- "z": "e876afdc.6a24f",
+ "x": 1326.031852722168,
+ "y": 636.0003986358643,
+ "z": "8546294e.bbf628",
"wires": [
[
- "caf01e6b.3d325"
+ "f57bd183.9204c"
]
]
},
{
- "id": "e7caa58d.8c0ca8",
+ "id": "b5c8e88e.b71a98",
"type": "block",
"name": "block : atomic",
"xml": "<block atomic=\"true\">",
"atomic": "true",
"comments": "",
"outputs": 1,
- "x": 1820.6667022705078,
- "y": 1037.8891677856445,
- "z": "e876afdc.6a24f",
+ "x": 1746.6983757019043,
+ "y": 637.8892993927002,
+ "z": "8546294e.bbf628",
"wires": [
[]
]
},
{
- "id": "67309670.5d6238",
+ "id": "db67aff2.ce7ea",
"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 executing Create vpn rest api\" />\n",
"comments": "",
- "x": 1796.111343383789,
- "y": 1099.4445505142212,
- "z": "e876afdc.6a24f",
+ "x": 1732.1429595947266,
+ "y": 697.4446468353271,
+ "z": "8546294e.bbf628",
"wires": []
},
{
- "id": "e2a202c3.ab071",
+ "id": "8e3552db.71c4c",
"type": "failure",
"name": "failure",
"xml": "<outcome value='failure'>\n",
"comments": "",
"outputs": 1,
- "x": 1651.111343383789,
- "y": 1096.4445505142212,
- "z": "e876afdc.6a24f",
+ "x": 1587.1429500579834,
+ "y": 694.4446449279785,
+ "z": "8546294e.bbf628",
"wires": [
[
- "67309670.5d6238"
+ "db67aff2.ce7ea"
]
]
},
{
- "id": "caf01e6b.3d325",
+ "id": "f57bd183.9204c",
"type": "success",
"name": "success",
"xml": "<outcome value='success'>\n",
"comments": "",
"outputs": 1,
- "x": 1647.5557174682617,
- "y": 1038.1113357543945,
- "z": "e876afdc.6a24f",
+ "x": 1587.587287902832,
+ "y": 638.1114530563354,
+ "z": "8546294e.bbf628",
"wires": [
[
- "e7caa58d.8c0ca8"
+ "b5c8e88e.b71a98"
]
]
},
{
- "id": "3f3b503b.d5da4",
+ "id": "cfdaefb3.97c88",
"type": "set",
"name": "copy input data to service data",
"xml": "<set>\n<parameter name='service-data.vnfs.vnf[$tmp.vidx].vnf-id' value='`$service-data.vnfs.vnf[$tmp.vidx].vnf-id`' />\n<parameter name='service-data.vnfs.vnf[$tmp.vidx].vnf-data.sdnc-request-header.' value='$vnf-topology-operation-input.sdnc-request-header.' />\n<parameter name='service-data.vnfs.vnf[$tmp.vidx].vnf-data.request-information.' value='$vnf-topology-operation-input.request-information.' />\n<parameter name='service-data.vnfs.vnf[$tmp.vidx].vnf-data.service-information.' value='$vnf-topology-operation-input.service-information.' />",
"comments": "",
- "x": 627.0004348754883,
- "y": 566.0005855560303,
- "z": "e876afdc.6a24f",
+ "x": 701.0316848754883,
+ "y": 572.0005831718445,
+ "z": "8546294e.bbf628",
"wires": []
},
{
- "id": "93347dcc.a6583",
+ "id": "b24b0990.f29818",
"type": "execute",
"name": "execute RestApiCallNode Get token",
"xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"templateFileName\" value=\"`$prop.restapi.templateDir + '/actokentemplate.json'`\" />\n<parameter name=\"restapiUrl\" value=\"`$prop.sdncRestApi.thirdpartySdnc.url + '/controller/v2/tokens'`\" />\n<parameter name=\"format\" value=\"json\"/>\n<parameter name=\"httpMethod\" value=\"post\"/>\n<parameter name=\"responsePrefix\" value=\"token-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\"/>",
"comments": "",
"outputs": 1,
- "x": 1299.7543258666992,
- "y": 959.0043849945068,
- "z": "e876afdc.6a24f",
+ "x": 1304.7858352661133,
+ "y": 572.0044652223587,
+ "z": "8546294e.bbf628",
"wires": [
[
- "c5378ae6.053748",
- "cfecc2b7.775a9"
+ "289de783.f62c58",
+ "794b6e1c.8d635"
]
]
},
{
- "id": "c5378ae6.053748",
+ "id": "289de783.f62c58",
"type": "success",
"name": "success",
"xml": "<outcome value='success'>\n",
"comments": "",
"outputs": 1,
- "x": 1564.754207611084,
- "y": 944.004280090332,
- "z": "e876afdc.6a24f",
+ "x": 1569.785717010498,
+ "y": 557.0043603181839,
+ "z": "8546294e.bbf628",
"wires": [
[
- "574fb0f8.2705b"
+ "9a259234.042bd"
]
]
},
{
- "id": "cfecc2b7.775a9",
+ "id": "794b6e1c.8d635",
"type": "failure",
"name": "failure",
"xml": "<outcome value='failure'>\n",
"comments": "",
"outputs": 1,
- "x": 1557.004207611084,
- "y": 985.6471633911133,
- "z": "e876afdc.6a24f",
+ "x": 1562.035717010498,
+ "y": 598.6472436189651,
+ "z": "8546294e.bbf628",
"wires": [
[
- "a43bfc8d.c3ede"
+ "abdc5f44.099"
]
]
},
{
- "id": "a43bfc8d.c3ede",
+ "id": "abdc5f44.099",
"type": "block",
"name": "block",
"xml": "<block>\n",
"atomic": "false",
"comments": "",
"outputs": 1,
- "x": 1683.087703704834,
- "y": 985.893196105957,
- "z": "e876afdc.6a24f",
+ "x": 1688.119213104248,
+ "y": 598.8932763338089,
+ "z": "8546294e.bbf628",
"wires": [
[]
]
},
{
- "id": "574fb0f8.2705b",
+ "id": "9a259234.042bd",
"type": "set",
"name": "set token-id",
"xml": "<set>\n<parameter name='prop.sdncRestApi.token_id' value='`$token-result.data.token_id`' />\n",
"comments": "",
- "x": 1701.754207611084,
- "y": 944.004280090332,
- "z": "e876afdc.6a24f",
+ "x": 1706.785717010498,
+ "y": 557.0043603181839,
+ "z": "8546294e.bbf628",
"wires": []
},
{
- "id": "bbce2e16.d72aa",
+ "id": "6db7dcff.bc7ce4",
"type": "comment",
"name": "tmp.thirdparty-sdnc-id is hardcoded value?",
"info": "",
"comments": "",
- "x": 1295.0041198730469,
- "y": 833.0042457580566,
- "z": "e876afdc.6a24f",
+ "x": 1352.0356369018555,
+ "y": 433.004376411438,
+ "z": "8546294e.bbf628",
"wires": []
},
{
- "id": "708f2def.d37784",
+ "id": "640f5d20.cfa064",
"type": "set",
"name": "set vnf-index to service data",
- "xml": "<set>\n<parameter name='service-data.vnfs.vnf[$tmp.vidx].vnf-id' value='`$service-data.vnfs.vnf[$tmp.vidx].vnf-id`' />\n<parameter name='service-data.vnfs.vnf[$tmp.vidx].vnf-data.vnf-request-input.vnf-input-parameters.param[$service-data.vnfs.vnf[$tmp.vidx].vnf-data.vnf-request-input.vnf-input-parameters.param_length + 1].name' value='siteId' />\n<parameter name='service-data.vnfs.vnf[$tmp.vidx].vnf-data.vnf-request-input.vnf-input-parameters.param[$service-data.vnfs.vnf[$tmp.vidx].vnf-data.vnf-request-input.vnf-input-parameters.param_length + 1].value' value='`$site-result[0].id`' />\n<parameter name='service-data.vnfs.vnf[$tmp.vidx].vnf-data.vnf-request-input.vnf-input-parameters.param_length' value='`$service-data.vnfs.vnf[$tmp.vidx].vnf-data.vnf-request-input.vnf-input-parameters.param_length + 1`' />\n",
+ "xml": "<set>\n<parameter name='service-data.vnfs.vnf[$tmp.vidx].vnf-id' value='`$service-data.vnfs.vnf[$tmp.vidx].vnf-id`' />\n<parameter name='service-data.vnfs.vnf[$tmp.vidx].vnf-data.vnf-request-input.vnf-input-parameters.param[$service-data.vnfs.vnf[$tmp.vidx].vnf-data.vnf-request-input.vnf-input-parameters.param_length].name' value='siteId' />\n<!--parameter name='service-data.vnfs.vnf[$tmp.vidx].vnf-data.vnf-request-input.vnf-input-parameters.param[$service-data.vnfs.vnf[$tmp.vidx].vnf-data.vnf-request-input.vnf-input-parameters.param_length].value' value='`$site-result[0].id`' /-->\n<parameter name='service-data.vnfs.vnf[$tmp.vidx].vnf-data.vnf-request-input.vnf-input-parameters.param[$service-data.vnfs.vnf[$tmp.vidx].vnf-data.vnf-request-input.vnf-input-parameters.param_length].value' value='`$vnf-topology-operation-input.vnf-information.vnf-id`' />\n<parameter name='service-data.vnfs.vnf[$tmp.vidx].vnf-data.vnf-request-input.vnf-input-parameters.param_length' value='`$service-data.vnfs.vnf[$tmp.vidx].vnf-data.vnf-request-input.vnf-input-parameters.param_length + 1`' />\n",
"comments": "",
- "x": 628.0042037963867,
- "y": 442.00424671173096,
- "z": "e876afdc.6a24f",
+ "x": 702.0354537963867,
+ "y": 448.00424432754517,
+ "z": "8546294e.bbf628",
"wires": []
},
{
- "id": "c2a60a1e.d3e7f8",
+ "id": "3d75d87b.d2ff28",
"type": "switchNode",
"name": "switch ActivateSDWANDeviceInstance",
"xml": "<switch test=\"`$service-data.vnfs.vnf[$vidx].vnf-data.request-information.request-action == 'ActivateSDWANDeviceInstance'`\">\n\n \n \n\n",
"comments": "",
"outputs": 1,
- "x": 1756.2543411254883,
- "y": 138.00390720367432,
- "z": "e876afdc.6a24f",
+ "x": 1830.2855911254883,
+ "y": 144.00390481948853,
+ "z": "8546294e.bbf628",
"wires": [
[
- "3b24cc2e.de2954"
+ "628cbd2.1a1aa44"
]
]
},
{
- "id": "3b24cc2e.de2954",
+ "id": "628cbd2.1a1aa44",
"type": "outcomeTrue",
"name": "true",
"xml": "<outcome value='true'>\n",
"comments": "",
"outputs": 1,
- "x": 1983.2541961669922,
- "y": 137.00390625,
- "z": "e876afdc.6a24f",
+ "x": 2057.285446166992,
+ "y": 143.0039038658142,
+ "z": "8546294e.bbf628",
"wires": [
[
- "68cbbed8.08fd8"
+ "b1822ffa.bc97b"
]
]
},
{
- "id": "792cd7fe.bce288",
+ "id": "9845da61.98a1c8",
"type": "block",
"name": "block",
"xml": "<block>\n",
"atomic": "false",
"comments": "",
"outputs": 1,
- "x": 1526.254165649414,
- "y": 109.00389289855957,
- "z": "e876afdc.6a24f",
+ "x": 1600.285415649414,
+ "y": 115.00389051437378,
+ "z": "8546294e.bbf628",
"wires": [
[
- "c2a60a1e.d3e7f8",
- "506c3f6d.abfb3"
+ "3d75d87b.d2ff28",
+ "90e8fa4e.9e0b88"
]
]
},
{
- "id": "460c13d8.2f2f3c",
+ "id": "fab4e8d5.eaaa38",
"type": "comment",
"name": "Get devices",
"info": "",
"comments": "",
- "x": 1790.0043563842773,
- "y": 158.75392246246338,
- "z": "e876afdc.6a24f",
+ "x": 1864.0356063842773,
+ "y": 164.7539200782776,
+ "z": "8546294e.bbf628",
"wires": []
},
{
- "id": "79a45953.cb4488",
+ "id": "cbc96af.e7a6b98",
"type": "set",
"name": "set prop.site.sdwan false",
"xml": "<set>\n<parameter name='prop.site.sdwan' value=\"false\" />\n\n",
"comments": "",
- "x": 618,
- "y": 229.0000123977661,
- "z": "e876afdc.6a24f",
+ "x": 685.0312652587891,
+ "y": 83.0000352859497,
+ "z": "8546294e.bbf628",
"wires": []
},
{
- "id": "1ddd800f.cc627",
+ "id": "8699a911.00b498",
"type": "switchNode",
"name": "switch prop.site.sdwan",
"xml": "<switch test=\"`$prop.site.sdwan`\">\n",
"comments": "",
"outputs": 1,
- "x": 607.0001220703125,
- "y": 384.6666269302368,
- "z": "e876afdc.6a24f",
+ "x": 681.0313720703125,
+ "y": 390.666624546051,
+ "z": "8546294e.bbf628",
"wires": [
[
- "7c42fbb6.c14864"
+ "ace66bf6.fc6f18"
]
]
},
{
- "id": "7c42fbb6.c14864",
+ "id": "ace66bf6.fc6f18",
"type": "outcomeTrue",
"name": "true",
"xml": "<outcome value='true'>\n",
"comments": "",
"outputs": 1,
- "x": 786.000171661377,
- "y": 381.6666269302368,
- "z": "e876afdc.6a24f",
+ "x": 860.031421661377,
+ "y": 387.666624546051,
+ "z": "8546294e.bbf628",
"wires": [
[
- "9d5e017e.9579d"
+ "70ebd8ae.1dd798"
]
]
},
{
- "id": "9d5e017e.9579d",
+ "id": "70ebd8ae.1dd798",
"type": "block",
"name": "block : atomic",
"xml": "<block atomic=\"true\">",
"atomic": "true",
"outputs": 1,
- "x": 960.000244140625,
- "y": 908.6668318510056,
- "z": "e876afdc.6a24f",
+ "x": 1016.0316467285156,
+ "y": 384.6669464111328,
+ "z": "8546294e.bbf628",
"wires": [
[
- "93347dcc.a6583",
- "9d503875.591ee8",
- "69c072d6.f6ae7c",
- "fccf6b1b.062f88"
+ "2f462de2.0453e2",
+ "2f8e9052.03ea2",
+ "d2ea4d7a.0f7bc",
+ "e43f8602.8d7af8",
+ "b24b0990.f29818"
]
]
},
{
- "id": "68cbbed8.08fd8",
+ "id": "b1822ffa.bc97b",
"type": "block",
"name": "block : atomic",
"xml": "<block atomic=\"true\">",
"atomic": "true",
"outputs": 1,
- "x": 1921.6669616699219,
- "y": 248.00000762939453,
- "z": "e876afdc.6a24f",
+ "x": 2010.6982822418213,
+ "y": 212.00003480911255,
+ "z": "8546294e.bbf628",
"wires": [
[
- "7e0b70dd.7568"
+ "f8a73d95.16c95"
]
]
},
{
- "id": "7e0b70dd.7568",
+ "id": "f8a73d95.16c95",
"type": "for",
"name": "for loop deviceidx - Get deviceId from servicedata",
"xml": "<for index=\"deviceidx\" start=\"0\" end=\"`$service-data.vnfs.vnf[$vidx].vnf-data.vnf-request-input.vnf-input-parameters.param_length`\">",
"comments": "",
"outputs": 1,
- "x": 2205.0007934570312,
- "y": 251.00003814697266,
- "z": "e876afdc.6a24f",
+ "x": 2294.0321140289307,
+ "y": 215.00006532669067,
+ "z": "8546294e.bbf628",
"wires": [
[
- "bb46e6b5.934b78"
+ "f4aaaa9b.0e63e8"
]
]
},
{
- "id": "bb46e6b5.934b78",
+ "id": "f4aaaa9b.0e63e8",
"type": "block",
"name": "block",
"xml": "<block>\n",
"atomic": "false",
"comments": "",
"outputs": 1,
- "x": 2135.00057220459,
- "y": 334.0002021789551,
- "z": "e876afdc.6a24f",
+ "x": 2410.031898498535,
+ "y": 266.0002508163452,
+ "z": "8546294e.bbf628",
"wires": [
[
- "68a7dd5e.b34a34"
+ "560efc8.407e904"
]
]
},
{
- "id": "68a7dd5e.b34a34",
+ "id": "560efc8.407e904",
"type": "switchNode",
"name": "switch deviceId",
"xml": "<switch test=\"`$service-data.vnfs.vnf[$vidx].vnf-data.vnf-request-input.vnf-input-parameters.param[$deviceidx].name == 'deviceId'`\">\n",
"comments": "",
"outputs": 1,
- "x": 2295.0008277893066,
- "y": 336.00005531311035,
- "z": "e876afdc.6a24f",
+ "x": 2570.032154083252,
+ "y": 268.0001039505005,
+ "z": "8546294e.bbf628",
"wires": [
[
- "eb058687.6ea298"
+ "364ea14b.4737ce"
]
]
},
{
- "id": "eb058687.6ea298",
+ "id": "364ea14b.4737ce",
"type": "outcomeTrue",
"name": "true",
"xml": "<outcome value='true'>\n",
"comments": "",
"outputs": 1,
- "x": 2447.0009994506836,
- "y": 335.00005531311035,
- "z": "e876afdc.6a24f",
+ "x": 2722.032325744629,
+ "y": 267.0001039505005,
+ "z": "8546294e.bbf628",
"wires": [
[
- "468bec8a.569b34"
+ "57bae08d.5682f"
]
]
},
{
- "id": "468bec8a.569b34",
+ "id": "57bae08d.5682f",
"type": "set",
"name": "set deviceId",
"xml": "<set>\n<parameter name='prop.site.deviceId[$prop.site.deviceId_length]' value='`$service-data.vnfs.vnf[$tmp.deviceVidx].vnf-data.vnf-request-input.vnf-input-parameters.param[$deviceidx].value`' />\n<parameter name='prop.site.deviceId_length' value='`$prop.site.deviceId_length + 1`' />\n",
"comments": "",
- "x": 2587.001003265381,
- "y": 334.6000099182129,
- "z": "e876afdc.6a24f",
+ "x": 2862.032329559326,
+ "y": 266.600058555603,
+ "z": "8546294e.bbf628",
"wires": []
},
{
- "id": "fb9527f.4513dd8",
+ "id": "63f3d384.29d3ac",
"type": "set",
"name": "set prop.site.deviceId_length",
"xml": "<set>\n<parameter name='prop.site.deviceId_length' value='0' />\n",
"comments": "",
- "x": 1264.000072479248,
- "y": 64,
- "z": "e876afdc.6a24f",
+ "x": 1338.031322479248,
+ "y": 69.99999761581421,
+ "z": "8546294e.bbf628",
"wires": []
},
{
- "id": "b5990ea7.a9c72",
- "type": "block",
- "name": "block",
- "xml": "<block>\n",
- "atomic": "false",
- "comments": "",
- "outputs": 1,
- "x": 1026.0003089904785,
- "y": 424.00009059906006,
- "z": "e876afdc.6a24f",
- "wires": [
- [
- "982966d0.a9a8e8",
- "f41887bb.544248",
- "4ca7692.19f0f98",
- "e068ac07.3a75f",
- "caf25c5.4962fa",
- "a0b5938f.d00a8",
- "a3f45232.9e1a1",
- "b56118e.cb3ebe8",
- "6dc0a862.fb8db8",
- "beea925c.34a3c"
- ]
- ]
- },
- {
- "id": "beea925c.34a3c",
- "type": "switchNode",
- "name": "switch name",
- "xml": "<switch test=\"`$service-data.vnfs.vnf[$vidx].vnf-data.vnf-request-input.vnf-input-parameters.param[$idx].name == 'name'`\">\n\n",
+ "id": "de98d30f.d2fa5",
+ "type": "save",
+ "name": "update siteInstance configuration in AAI",
+ "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='site-resource' \n key='site-resource.id = $service-data.vnfs.vnf[$tmp.vidx].vnf-id' >\n<parameter name='id' value='`$service-data.vnfs.vnf[$tmp.vidx].vnf-id`' /> \n<parameter name='generated-site-id' value='`$site-result[0].site-id`' /> \n<parameter name='operational-status' value='Active' />\n",
"comments": "",
"outputs": 1,
- "x": 1260.2222442626953,
- "y": 283.000036239624,
- "z": "e876afdc.6a24f",
+ "x": 731.0313720703125,
+ "y": 633.0000977516174,
+ "z": "8546294e.bbf628",
"wires": [
- [
- "86ab3afd.9888f8"
- ]
+ []
]
},
{
- "id": "86ab3afd.9888f8",
- "type": "outcomeTrue",
- "name": "true",
- "xml": "<outcome value='true'>\n",
+ "id": "f380f867.7d6998",
+ "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": 1438.2222576141357,
- "y": 286.000036239624,
- "z": "e876afdc.6a24f",
+ "x": 677.0312881469727,
+ "y": 279.99999952316284,
+ "z": "8546294e.bbf628",
"wires": [
- [
- "daf4941f.5f7e68"
- ]
+ []
]
},
{
- "id": "daf4941f.5f7e68",
+ "id": "2f462de2.0453e2",
"type": "set",
- "name": "set name",
- "xml": "<set>\n<parameter name='prop.site.name' value='`$service-data.vnfs.vnf[$vidx].vnf-data.vnf-request-input.vnf-input-parameters.param[$idx].value`' />\n",
+ "name": "set siteId",
+ "xml": "<set>\n<parameter name='prop.site.siteId' value=\"\" />\n\n",
"comments": "",
- "x": 1585.222267150879,
- "y": 285.60003185272217,
- "z": "e876afdc.6a24f",
+ "x": 1225.0315856933594,
+ "y": 375.0001050233841,
+ "z": "8546294e.bbf628",
"wires": []
},
{
- "id": "982966d0.a9a8e8",
- "type": "switchNode",
- "name": "switch type",
- "xml": "<switch test=\"`$service-data.vnfs.vnf[$vidx].vnf-data.vnf-request-input.vnf-input-parameters.param[$idx].name == 'type'`\">\n",
+ "id": "e43a0564.6e85b8",
+ "type": "comment",
+ "name": "should be null in request",
+ "info": "",
"comments": "",
- "outputs": 1,
- "x": 1239.1179161071777,
- "y": 580.9734859466553,
- "z": "e876afdc.6a24f",
- "wires": [
- [
- "bbc62e0b.50f11"
- ]
- ]
+ "x": 1234.031509399414,
+ "y": 346.0000592470169,
+ "z": "8546294e.bbf628",
+ "wires": []
},
{
- "id": "bbc62e0b.50f11",
- "type": "outcomeTrue",
- "name": "true",
- "xml": "<outcome value='true'>\n",
- "comments": "",
+ "id": "fe37a50e.9b06e8",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
"outputs": 1,
- "x": 1418.1177597045898,
- "y": 581.9734058380127,
- "z": "e876afdc.6a24f",
+ "x": 2107.031394958496,
+ "y": 78.65758323669434,
+ "z": "8546294e.bbf628",
"wires": [
[
- "91550639.119c38"
+ "4bd89f7e.9676d",
+ "9ff83ab.3d923c8",
+ "523d9c1d.3e7a14",
+ "471b0999.b03818"
]
]
},
{
- "id": "91550639.119c38",
+ "id": "9ff83ab.3d923c8",
"type": "set",
- "name": "set type",
- "xml": "<set>\n<parameter name='prop.site.type' value='`$service-data.vnfs.vnf[$vidx].vnf-data.vnf-request-input.vnf-input-parameters.param[$idx].value`' />\n<parameter name='prop.site.sdwan' value=\"true\" />",
+ "name": "set vnf-request-input.",
+ "xml": "<set>\n<parameter name='vnf-request-input.' value='`$ctx.vnf-data.vnf-data.vnf-request-input.`' />\n\n",
"comments": "",
- "x": 1568.1177711486816,
- "y": 583.5734205245972,
- "z": "e876afdc.6a24f",
+ "x": 2359.364402770996,
+ "y": 95.65763854980469,
+ "z": "8546294e.bbf628",
"wires": []
},
{
- "id": "f41887bb.544248",
- "type": "switchNode",
- "name": "switch role",
- "xml": "<switch test=\"`$service-data.vnfs.vnf[$vidx].vnf-data.vnf-request-input.vnf-input-parameters.param[$idx].name == 'role'`\">\n",
+ "id": "4bd89f7e.9676d",
+ "type": "set",
+ "name": "set tmp.vidx and ctx.vnf-data",
+ "xml": "<set>\n<parameter name='tmp.vidx' value='`$vidx`' />\n<parameter name='ctx.vnf-data.' value='`$service-data.vnfs.vnf[$vidx].`' />\n",
"comments": "",
- "outputs": 1,
- "x": 1240.1175918579102,
- "y": 624.9735260009766,
- "z": "e876afdc.6a24f",
- "wires": [
- [
- "2facef98.25444"
- ]
- ]
+ "x": 2386.918113708496,
+ "y": 49.00000286102295,
+ "z": "8546294e.bbf628",
+ "wires": []
},
{
- "id": "2facef98.25444",
- "type": "outcomeTrue",
- "name": "true",
- "xml": "<outcome value='true'>\n",
+ "id": "523d9c1d.3e7a14",
+ "type": "call",
+ "name": "call sdwan-get-site-param",
+ "xml": "<call module='GENERIC-RESOURCE-API' rpc='sdwan-get-site-param' mode='sync' >\n",
"comments": "",
"outputs": 1,
- "x": 1410.1175994873047,
- "y": 634.9734888076782,
- "z": "e876afdc.6a24f",
+ "x": 2358.005081176758,
+ "y": 131.10712242126465,
+ "z": "8546294e.bbf628",
"wires": [
- [
- "2de9cb05.be1da4"
- ]
+ []
]
},
{
- "id": "6dc0a862.fb8db8",
- "type": "switchNode",
- "name": "switch location-name",
- "xml": "<switch test=\"`$service-data.vnfs.vnf[$vidx].vnf-data.vnf-request-input.vnf-input-parameters.param[$idx].name == 'location-name'`\">\n",
+ "id": "2f8e9052.03ea2",
+ "type": "for",
+ "name": "for cpidx..prop.site.controlpoints",
+ "xml": "<for index='cpidx' start='0' end='`$prop.site.controlpoints_length`' >\n\t\t\t\t\t\t\t\t\t\n",
"comments": "",
"outputs": 1,
- "x": 1283.117431640625,
- "y": 324.97334480285645,
- "z": "e876afdc.6a24f",
+ "x": 1285.0318603515625,
+ "y": 276.0313186645508,
+ "z": "8546294e.bbf628",
"wires": [
[
- "bd2efb08.1c1158"
+ "5d6d521c.a38a7c"
]
]
},
{
- "id": "bd2efb08.1c1158",
- "type": "outcomeTrue",
- "name": "true",
- "xml": "<outcome value='true'>\n",
- "comments": "",
+ "id": "5d6d521c.a38a7c",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
"outputs": 1,
- "x": 1447.117603302002,
- "y": 324.97334575653076,
- "z": "e876afdc.6a24f",
+ "x": 1528.0313720703125,
+ "y": 274.03125762939453,
+ "z": "8546294e.bbf628",
"wires": [
[
- "4ee2193.b3e14e8"
+ "a5905cec.9f577"
]
]
},
{
- "id": "4ee2193.b3e14e8",
- "type": "set",
- "name": "set location-name",
- "xml": "<set>\n<parameter name='prop.site.location-name' value='`$service-data.vnfs.vnf[$vidx].vnf-data.vnf-request-input.vnf-input-parameters.param[$idx].value`' />\n",
- "comments": "",
- "x": 1609.1176147460938,
- "y": 324.57340240478516,
- "z": "e876afdc.6a24f",
- "wires": []
- },
- {
- "id": "b56118e.cb3ebe8",
- "type": "switchNode",
- "name": "switch address",
- "xml": "<switch test=\"`$service-data.vnfs.vnf[$vidx].vnf-data.vnf-request-input.vnf-input-parameters.param[$idx].name == 'address'`\">\n",
+ "id": "a5905cec.9f577",
+ "type": "for",
+ "name": "for cpvidx..service-data.vnfs.vnf_length[]",
+ "xml": "<for index='cpvidx' start='0' end='`$service-data.vnfs.vnf_length`' >\n",
"comments": "",
"outputs": 1,
- "x": 1266.117431640625,
- "y": 360.9733486175537,
- "z": "e876afdc.6a24f",
+ "x": 1777.0313720703125,
+ "y": 272.031289100647,
+ "z": "8546294e.bbf628",
"wires": [
[
- "86891afb.54bc78"
+ "c5914904.7dd248"
]
]
},
{
- "id": "86891afb.54bc78",
- "type": "outcomeTrue",
- "name": "true",
- "xml": "<outcome value='true'>\n",
+ "id": "c5914904.7dd248",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
"comments": "",
"outputs": 1,
- "x": 1436.1172790527344,
- "y": 368.9733476638794,
- "z": "e876afdc.6a24f",
+ "x": 1630.531322479248,
+ "y": 338.03128933906555,
+ "z": "8546294e.bbf628",
"wires": [
[
- "4e393c27.e3c2c4"
+ "81562a69.669098"
]
]
},
{
- "id": "4e393c27.e3c2c4",
- "type": "set",
- "name": "set location-address",
- "xml": "<set>\n<parameter name='prop.site.location-address' value='`$service-data.vnfs.vnf[$vidx].vnf-data.vnf-request-input.vnf-input-parameters.param[$idx].value`' />\n",
- "comments": "",
- "x": 1624.1174545288086,
- "y": 364.5733232498169,
- "z": "e876afdc.6a24f",
- "wires": []
- },
- {
- "id": "a3f45232.9e1a1",
+ "id": "81562a69.669098",
"type": "switchNode",
- "name": "switch postcode",
- "xml": "<switch test=\"`$service-data.vnfs.vnf[$vidx].vnf-data.vnf-request-input.vnf-input-parameters.param[$idx].name == 'postcode'`\">\n",
+ "name": "switch ActivateSiteInstance",
+ "xml": "<switch test=\"`$service-data.vnfs.vnf[$vidx].vnf-data.request-information.request-action == 'ActivateSiteInstance'`\">\n\n \n \n\n",
"comments": "",
"outputs": 1,
- "x": 1267.117431640625,
- "y": 402.97330951690674,
- "z": "e876afdc.6a24f",
+ "x": 1826.5317573547363,
+ "y": 337.0312900543213,
+ "z": "8546294e.bbf628",
"wires": [
[
- "8476b452.fd9df8"
+ "4dd0f132.ac22d"
]
]
},
{
- "id": "8476b452.fd9df8",
+ "id": "4dd0f132.ac22d",
"type": "outcomeTrue",
"name": "true",
"xml": "<outcome value='true'>\n",
"comments": "",
"outputs": 1,
- "x": 1432.117603302002,
- "y": 401.97330951690674,
- "z": "e876afdc.6a24f",
+ "x": 2015.5316467285156,
+ "y": 336.031259059906,
+ "z": "8546294e.bbf628",
"wires": [
[
- "44bf054e.3e0bdc"
+ "c19716c9.bf16e8"
]
]
},
{
- "id": "44bf054e.3e0bdc",
- "type": "set",
- "name": "set location-postcode",
- "xml": "<set>\n<parameter name='prop.site.location-postcode' value='`$service-data.vnfs.vnf[$vidx].vnf-data.vnf-request-input.vnf-input-parameters.param[$idx].value`' />\n",
- "comments": "",
- "x": 1619.1174545288086,
- "y": 403.57332611083984,
- "z": "e876afdc.6a24f",
- "wires": []
- },
- {
- "id": "4ca7692.19f0f98",
- "type": "switchNode",
- "name": "switch controlPoints",
- "xml": "<switch test=\"`$service-data.vnfs.vnf[$vidx].vnf-data.vnf-request-input.vnf-input-parameters.param[$idx].name == 'controlPoints'`\">\n",
- "comments": "",
+ "id": "c19716c9.bf16e8",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
"outputs": 1,
- "x": 1261.0007247924805,
- "y": 670.0002679824829,
- "z": "e876afdc.6a24f",
+ "x": 2169.874858856201,
+ "y": 352.1174783706665,
+ "z": "8546294e.bbf628",
"wires": [
[
- "6d9c8ede.093ce"
+ "b380d74e.7f6938"
]
]
},
{
- "id": "6d9c8ede.093ce",
- "type": "outcomeTrue",
- "name": "true",
- "xml": "<outcome value='true'>\n",
+ "id": "b380d74e.7f6938",
+ "type": "for",
+ "name": "for loop sidx - Get siteId from servicedata",
+ "xml": "<for index=\"sidx\" start=\"0\" end=\"`$service-data.vnfs.vnf[$cpvidx].vnf-data.vnf-request-input.vnf-input-parameters.param_length`\">",
"comments": "",
"outputs": 1,
- "x": 1421.0007400512695,
- "y": 681.0003499984741,
- "z": "e876afdc.6a24f",
+ "x": 2415.5315895080566,
+ "y": 354.0313606262207,
+ "z": "8546294e.bbf628",
"wires": [
[
- "473f9a91.4991c4"
+ "586aef3f.c2594"
]
]
},
{
- "id": "6c8e946.594c76c",
- "type": "set",
- "name": "set role",
- "xml": "<set>\n<parameter name='prop.site.role' value='`$service-data.vnfs.vnf[$vidx].vnf-data.vnf-request-input.vnf-input-parameters.param[$idx].value`' />\n<parameter name='prop.site.sdwan' value=\"true\" />\n",
- "comments": "",
- "x": 1764.0007648468018,
- "y": 602.0002603530884,
- "z": "e876afdc.6a24f",
- "wires": []
- },
- {
- "id": "c48a4f4.5838eb",
- "type": "set",
- "name": "set controlPoint",
- "xml": "<set>\n<parameter name='prop.site.controlPoint' value='`$service-data.vnfs.vnf[$vidx].vnf-data.vnf-request-input.vnf-input-parameters.param[$idx].value`' />\n\n",
- "comments": "",
- "x": 1806.0007667541504,
- "y": 701.0003480911255,
- "z": "e876afdc.6a24f",
- "wires": []
- },
- {
- "id": "99fac312.5a742",
- "type": "save",
- "name": "update siteInstance configuration in AAI",
- "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='site-resource' \n key='site-resource.id = $service-data.vnfs.vnf[$tmp.vidx].vnf-id' >\n<parameter name='id' value='`$service-data.vnfs.vnf[$tmp.vidx].vnf-id`' /> \n<parameter name='generated-site-id' value='`$site-result[0].site-id`' /> \n<parameter name='operational-status' value='Active' />\n",
- "comments": "",
- "outputs": 1,
- "x": 657.0001220703125,
- "y": 627.0001001358032,
- "z": "e876afdc.6a24f",
- "wires": [
- []
- ]
- },
- {
- "id": "6e5a67bd.c2ddb8",
- "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": 603.0000381469727,
- "y": 274.00000190734863,
- "z": "e876afdc.6a24f",
- "wires": [
- []
- ]
- },
- {
- "id": "239b469c.39b6fa",
- "type": "execute",
- "name": "execute split roles",
- "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='split' >\n<parameter name=\"original_string\" value='`$prop.site.role`'/>\n<parameter name=\"regex\" value=\",\"/>\n<parameter name=\"ctx_memory_result_key\" value=\"prop.site.roles\"/>\n",
- "comments": "",
- "outputs": 1,
- "x": 1820.6671142578125,
- "y": 658.0001821517944,
- "z": "e876afdc.6a24f",
- "wires": [
- []
- ]
- },
- {
- "id": "2de9cb05.be1da4",
+ "id": "586aef3f.c2594",
"type": "block",
- "name": "block : atomic",
- "xml": "<block atomic=\"true\">",
- "atomic": "true",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
"outputs": 1,
- "x": 1567.667251586914,
- "y": 638.0001821517944,
- "z": "e876afdc.6a24f",
+ "x": 2141.531894683838,
+ "y": 451.0313949584961,
+ "z": "8546294e.bbf628",
"wires": [
[
- "6c8e946.594c76c",
- "239b469c.39b6fa"
+ "6ca3ced4.b496f"
]
]
},
{
- "id": "473f9a91.4991c4",
- "type": "block",
- "name": "block : atomic",
- "xml": "<block atomic=\"true\">",
- "atomic": "true",
+ "id": "6ca3ced4.b496f",
+ "type": "switchNode",
+ "name": "switch name",
+ "xml": "<switch test=\"`$service-data.vnfs.vnf[$cpvidx].vnf-data.vnf-request-input.vnf-input-parameters.param[$sidx].name == 'name'`\">\n",
+ "comments": "",
"outputs": 1,
- "x": 1579.6670875549316,
- "y": 685.0001058578491,
- "z": "e876afdc.6a24f",
+ "x": 2301.5321502685547,
+ "y": 453.03124809265137,
+ "z": "8546294e.bbf628",
"wires": [
[
- "c48a4f4.5838eb",
- "363cf22d.62d78e"
+ "e4e196a3.719d08"
]
]
},
{
- "id": "363cf22d.62d78e",
- "type": "execute",
- "name": "execute split control points",
- "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='split' >\n<parameter name=\"original_string\" value='`$prop.site.controlPoint`'/>\n<parameter name=\"regex\" value=\",\"/>\n<parameter name=\"ctx_memory_result_key\" value=\"prop.site.controlpoints\"/>\n",
+ "id": "e4e196a3.719d08",
+ "type": "outcomeTrue",
+ "name": "true",
+ "xml": "<outcome value='true'>\n",
"comments": "",
"outputs": 1,
- "x": 1848.667106628418,
- "y": 762.0001888275146,
- "z": "e876afdc.6a24f",
+ "x": 2453.5323219299316,
+ "y": 452.03124809265137,
+ "z": "8546294e.bbf628",
"wires": [
- []
+ [
+ "79a83f73.ae9af"
+ ]
]
},
{
- "id": "a0b5938f.d00a8",
+ "id": "9f3ec9f2.b22258",
"type": "switchNode",
- "name": "switch latitude",
- "xml": "<switch test=\"`$service-data.vnfs.vnf[$vidx].vnf-data.vnf-request-input.vnf-input-parameters.param[$idx].name == 'latitude'`\">\n",
+ "name": "switch name match with controlPoint",
+ "xml": "<switch test=\"`$service-data.vnfs.vnf[$cpvidx].vnf-data.vnf-request-input.vnf-input-parameters.param[$sidx].value == $prop.site.controlpoints[$cpidx]`\">\n",
"comments": "",
"outputs": 1,
- "x": 1257.333740234375,
- "y": 447.0000867843628,
- "z": "e876afdc.6a24f",
+ "x": 2690.0319023132324,
+ "y": 462.031436920166,
+ "z": "8546294e.bbf628",
"wires": [
[
- "b21592f4.5618f"
+ "2d878bd7.4ff264"
]
]
},
{
- "id": "b21592f4.5618f",
+ "id": "2d878bd7.4ff264",
"type": "outcomeTrue",
"name": "true",
"xml": "<outcome value='true'>\n",
"comments": "",
"outputs": 1,
- "x": 1433.3335876464844,
- "y": 442.0000457763672,
- "z": "e876afdc.6a24f",
+ "x": 2899.031665802002,
+ "y": 455.03130531311035,
+ "z": "8546294e.bbf628",
"wires": [
[
- "29af6eef.bf06b2"
+ "3590859d.52442a"
]
]
},
{
- "id": "29af6eef.bf06b2",
- "type": "set",
- "name": "set location-latitude",
- "xml": "<set>\n<parameter name='prop.site.location-latitude' value='`$service-data.vnfs.vnf[$vidx].vnf-data.vnf-request-input.vnf-input-parameters.param[$idx].value`' />\n",
- "comments": "",
- "x": 1607.333595275879,
- "y": 440.6000623703003,
- "z": "e876afdc.6a24f",
- "wires": []
- },
- {
- "id": "caf25c5.4962fa",
- "type": "switchNode",
- "name": "switch longitude",
- "xml": "<switch test=\"`$service-data.vnfs.vnf[$vidx].vnf-data.vnf-request-input.vnf-input-parameters.param[$idx].name == 'longitude'`\">\n",
+ "id": "95b453fd.ee43a",
+ "type": "for",
+ "name": "for loop lidx - Get siteId from servicedata",
+ "xml": "<for index=\"lidx\" start=\"0\" end=\"`$service-data.vnfs.vnf[$cpvidx].vnf-data.vnf-request-input.vnf-input-parameters.param_length`\">",
"comments": "",
"outputs": 1,
- "x": 1260.333740234375,
- "y": 487.00012969970703,
- "z": "e876afdc.6a24f",
+ "x": 2483.0317192077637,
+ "y": 566.0313177108765,
+ "z": "8546294e.bbf628",
"wires": [
[
- "7df2c337.3c1b4c"
+ "29fb7e8d.917742"
]
]
},
{
- "id": "7df2c337.3c1b4c",
- "type": "outcomeTrue",
- "name": "true",
- "xml": "<outcome value='true'>\n",
+ "id": "29fb7e8d.917742",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
"comments": "",
"outputs": 1,
- "x": 1432.3337478637695,
- "y": 482.00017166137695,
- "z": "e876afdc.6a24f",
+ "x": 2273.0313606262207,
+ "y": 640.0315551757812,
+ "z": "8546294e.bbf628",
"wires": [
[
- "86c3a1c7.6636a"
+ "43fe6c1f.7a83e4"
]
]
},
{
- "id": "86c3a1c7.6636a",
- "type": "set",
- "name": "set location-latitude",
- "xml": "<set>\n<parameter name='prop.site.location-latitude' value='`$service-data.vnfs.vnf[$vidx].vnf-data.vnf-request-input.vnf-input-parameters.param[$idx].value`' />\n",
+ "id": "43fe6c1f.7a83e4",
+ "type": "switchNode",
+ "name": "switch siteId",
+ "xml": "<switch test=\"`$service-data.vnfs.vnf[$cpvidx].vnf-data.vnf-request-input.vnf-input-parameters.param[$lidx].name == 'siteId'`\">\n",
"comments": "",
- "x": 1614.3336029052734,
- "y": 485.6000232696533,
- "z": "e876afdc.6a24f",
- "wires": []
+ "outputs": 1,
+ "x": 2419.0316047668457,
+ "y": 643.0313415527344,
+ "z": "8546294e.bbf628",
+ "wires": [
+ [
+ "48abb19b.d8fe"
+ ]
+ ]
},
{
- "id": "4e291944.287288",
+ "id": "48abb19b.d8fe",
"type": "outcomeTrue",
"name": "true",
"xml": "<outcome value='true'>\n",
"comments": "",
"outputs": 1,
- "x": 1423.3337478637695,
- "y": 532.0001745223999,
- "z": "e876afdc.6a24f",
+ "x": 2566.031913757324,
+ "y": 641.0313110351562,
+ "z": "8546294e.bbf628",
"wires": [
[
- "f818ecd2.ba80f"
+ "2780c7bb.98f1c8"
]
]
},
{
- "id": "2bbb97af.762cc8",
+ "id": "2780c7bb.98f1c8",
"type": "set",
- "name": "set emails",
- "xml": "<set>\n<parameter name='prop.site.emails' value='`$service-data.vnfs.vnf[$vidx].vnf-data.vnf-request-input.vnf-input-parameters.param[$idx].value`' />\n",
+ "name": "set siteId in control point",
+ "xml": "<set>\n<parameter name='prop.site.controlpoints[$cpidx]' value='`$service-data.vnfs.vnf[$cpvidx].vnf-data.vnf-request-input.vnf-input-parameters.param[$lidx].value`' />\n\n",
"comments": "",
- "x": 1781.3334426879883,
- "y": 500.6000266075134,
- "z": "e876afdc.6a24f",
+ "x": 2745.0322227478027,
+ "y": 643.631411075592,
+ "z": "8546294e.bbf628",
"wires": []
},
{
- "id": "e068ac07.3a75f",
- "type": "switchNode",
- "name": "switch emails",
- "xml": "<switch test=\"`$service-data.vnfs.vnf[$vidx].vnf-data.vnf-request-input.vnf-input-parameters.param[$idx].name == 'emails'`\">\n",
- "comments": "",
+ "id": "3590859d.52442a",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
"outputs": 1,
- "x": 1250.3338165283203,
- "y": 532.0001745223999,
- "z": "e876afdc.6a24f",
+ "x": 2227.0316123962402,
+ "y": 566.0313024520874,
+ "z": "8546294e.bbf628",
"wires": [
[
- "4e291944.287288"
+ "95b453fd.ee43a"
]
]
},
{
- "id": "3f69ab6a.936704",
- "type": "execute",
- "name": "execute split emails",
- "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='split' >\n<parameter name=\"original_string\" value='`$prop.site.emails`'/>\n<parameter name=\"regex\" value=\",\"/>\n<parameter name=\"ctx_memory_result_key\" value=\"prop.site.email\"/>\n",
+ "id": "471b0999.b03818",
+ "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/svclogic.log\"/>\n<parameter name=\"field1\" value=\"__TIMESTAMP__\"/>\n<parameter name=\"field2\" value=\"sdwan-site-activateeeee-delete\"/>\n<parameter name=\"field3\" value='`$prop.site.sdwan`'/>\n",
"comments": "",
"outputs": 1,
- "x": 1806.9997863769531,
- "y": 546.9999294281006,
- "z": "e876afdc.6a24f",
+ "x": 2300.0313873291016,
+ "y": 177.03126049041748,
+ "z": "8546294e.bbf628",
"wires": [
[]
]
},
{
- "id": "f818ecd2.ba80f",
+ "id": "79a83f73.ae9af",
"type": "block",
"name": "block : atomic",
"xml": "<block atomic=\"true\">",
"atomic": "true",
"outputs": 1,
- "x": 1585.333755493164,
- "y": 533.0000920295715,
- "z": "e876afdc.6a24f",
+ "x": 2720.5314903259277,
+ "y": 401.031286239624,
+ "z": "8546294e.bbf628",
"wires": [
[
- "2bbb97af.762cc8",
- "3f69ab6a.936704"
+ "9f3ec9f2.b22258"
]
]
- },
- {
- "id": "69c072d6.f6ae7c",
- "type": "set",
- "name": "set siteId",
- "xml": "<set>\n<parameter name='prop.site.siteId' value=\"\" />\n\n",
- "comments": "",
- "x": 1220.0000762939453,
- "y": 762.0000247955322,
- "z": "e876afdc.6a24f",
- "wires": []
- },
- {
- "id": "c77bd4e4.651878",
- "type": "comment",
- "name": "should be null in request",
- "info": "",
- "comments": "",
- "x": 1229,
- "y": 732.999979019165,
- "z": "e876afdc.6a24f",
- "wires": []
}
-] \ No newline at end of file
+]