diff options
author | 2018-08-10 23:54:16 +0530 | |
---|---|---|
committer | 2018-08-13 06:32:29 +0000 | |
commit | 5c164baf5662bc8ce115746004762096b0ae28d7 (patch) | |
tree | 5b198161ba9700565edbedb6ef051accfa55470a /platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_site-vnf-topology-operation-activate.json | |
parent | 0a27d056edff2bd89defeb7284641d83d25b0dd3 (diff) |
SOTN siteInstance DGs
SOTN siteInstance vnf topology operation DGs
Change-Id: I7018aa0c56db60d1bca0a3b234820b3128d0c111
Issue-ID: SDNC-356
Signed-off-by: Prakash E <prakash.e@huawei.com>
Former-commit-id: f5b2457c6f66e4e357fe469df370d1ce8b4f0cd9
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.json | 1426 |
1 files changed, 1019 insertions, 407 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 c640ab5b..dabcc4f1 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": "8213d9f3.3e3b78", + "id": "fe5a38bb.bd0078", "type": "dgstart", "name": "DGSTART", "outputs": 1, - "x": 134.01040649414062, - "y": 78.01041412353516, - "z": "68309cb5.9fbe94", + "x": 108, + "y": 187.0103931427002, + "z": "e876afdc.6a24f", "wires": [ [ - "3fd007b3.454158" + "8fa75912.54ed58" ] ] }, { - "id": "3fd007b3.454158", + "id": "8fa75912.54ed58", "type": "service-logic", "name": "GENERIC-RESOURCE-API ${project.version}", "module": "GENERIC-RESOURCE-API", @@ -22,795 +22,1407 @@ "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": 209.29611206054688, - "y": 118.24852561950684, - "z": "68309cb5.9fbe94", + "x": 183.28570556640625, + "y": 227.24850463867188, + "z": "e876afdc.6a24f", "wires": [ [ - "f3d8ce84.4fd8" + "a48c87a9.a55028" ] ] }, { - "id": "f3d8ce84.4fd8", + "id": "a48c87a9.a55028", "type": "method", "name": "method site-vnf-topology-operation-activate", "xml": "<method rpc='site-vnf-topology-operation-activate' mode='sync'>\n", "comments": "", "outputs": 1, - "x": 230.43902587890625, - "y": 208.01041412353516, - "z": "68309cb5.9fbe94", + "x": 204.42861938476562, + "y": 317.0103931427002, + "z": "e876afdc.6a24f", "wires": [ [ - "931047c0.e29ba8" + "38f14e2f.c24e22" ] ] }, { - "id": "931047c0.e29ba8", + "id": "38f14e2f.c24e22", "type": "block", "name": "block : atomic", "xml": "<block atomic=\"true\">", "atomic": "true", "outputs": 1, - "x": 210.67707061767578, - "y": 379.67708587646484, - "z": "68309cb5.9fbe94", + "x": 192.66673278808594, + "y": 506.6771717071533, + "z": "e876afdc.6a24f", "wires": [ [ - "87b79277.d3a8", - "443f31de.8f2cf", - "e48e518f.1dc2a", - "4a014615.6e9cf8", - "bf95d9ae.8087f8", - "c850e5af.e42fa8", - "b4c6f1a.73d561", - "d7008318.12e1b", - "3993fb6.79aca04", - "2b37bcac.68f084" + "44a8ff3e.e9b76", + "79a45953.cb4488", + "6e5a67bd.c2ddb8", + "dc5b8c85.92a84", + "3adc7192.5bf7fe", + "1ddd800f.cc627", + "708f2def.d37784", + "73349d78.1f3074", + "6ab44a9b.48e9b4", + "3f3b503b.d5da4", + "99fac312.5a742" ] ] }, { - "id": "87b79277.d3a8", + "id": "dc5b8c85.92a84", "type": "for", "name": "for loop i - VNF input parameters", - "xml": "<for index='idx' start='0' end='`$ctx.vnf-data.vnf-request-input.vnf-input-parameters.param_length`' >\n", + "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": 663.1151428222656, - "y": 267.0782470703125, - "z": "68309cb5.9fbe94", + "x": 649.1047821044922, + "y": 325.078284740448, + "z": "e876afdc.6a24f", "wires": [ [ - "73aa520a.b2adbc" + "b5990ea7.a9c72" ] ] }, { - "id": "73aa520a.b2adbc", + "id": "44a8ff3e.e9b76", + "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", + "wires": [ + [ + "def084ef.6fe5a8", + "6c59b52d.4816dc", + "fe5f06d4.6ce418" + ] + ] + }, + { + "id": "def084ef.6fe5a8", + "type": "other", + "name": "Null", + "xml": "<outcome value=''>\n", + "comments": "", + "outputs": 1, + "x": 862.9896392822266, + "y": 138.0000514984131, + "z": "e876afdc.6a24f", + "wires": [ + [ + "a40915eb.62f7c8" + ] + ] + }, + { + "id": "a40915eb.62f7c8", + "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", + "wires": [] + }, + { + "id": "6c59b52d.4816dc", + "type": "other", + "name": "other", + "xml": "<outcome value='Other'>\n", + "comments": "", + "outputs": 1, + "x": 854.9900665283203, + "y": 173.00007343292236, + "z": "e876afdc.6a24f", + "wires": [ + [ + "7b4738a3.9186a8" + ] + ] + }, + { + "id": "7b4738a3.9186a8", "type": "block", - "name": "block", - "xml": "<block>\n", - "atomic": "false", + "name": "block : atomic", + "xml": "<block atomic=\"true\">", + "atomic": "true", + "outputs": 1, + "x": 1021.2595367431641, + "y": 164.55460691452026, + "z": "e876afdc.6a24f", + "wires": [ + [ + "39aaaddb.c527a2", + "80c14f8c.d4c2", + "fb9527f.4513dd8" + ] + ] + }, + { + "id": "39aaaddb.c527a2", + "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": 909.893337726593, - "y": 267.6338765351102, - "z": "68309cb5.9fbe94", + "x": 1291.2756271362305, + "y": 108.42860794067383, + "z": "e876afdc.6a24f", "wires": [ [ - "ac680e81.777c9", - "27ece0ee.53311", - "2e9d64a5.63180c", - "ad341ac7.a856e8", - "43160102.ca0c8", - "8a88d2d2.3cbb4" + "792cd7fe.bce288" ] ] }, { - "id": "ac680e81.777c9", + "id": "80c14f8c.d4c2", "type": "switchNode", - "name": "switch name", - "xml": "<switch test=\"`$vnf-topology-operation-input.vnf-request-input.vnf-input-parameters.param[$idx].name == 'name'`\">\n", + "name": "switch tmp.vidx ", + "xml": "<switch test=\"`$tmp.vidx`\">\n\n", + "comments": "", + "outputs": 1, + "x": 1227.5769805908203, + "y": 159.41179656982422, + "z": "e876afdc.6a24f", + "wires": [ + [ + "767a61a0.371db" + ] + ] + }, + { + "id": "767a61a0.371db", + "type": "outcome", + "name": "NULL", + "xml": "<outcome value=''>\n", + "comments": "", + "outputs": 1, + "x": 1379.0057830810547, + "y": 159.98322677612305, + "z": "e876afdc.6a24f", + "wires": [ + [ + "10547f9b.2e5b4" + ] + ] + }, + { + "id": "506c3f6d.abfb3", + "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": 1115.1152267456055, - "y": 222.63385391235352, - "z": "68309cb5.9fbe94", + "x": 1688.7043685913086, + "y": 68.67873001098633, + "z": "e876afdc.6a24f", "wires": [ [ - "f0bc6f88.f42a7" + "970983d7.84ecd" ] ] }, { - "id": "f0bc6f88.f42a7", + "id": "10547f9b.2e5b4", + "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", + "wires": [] + }, + { + "id": "970983d7.84ecd", "type": "outcomeTrue", "name": "true", "xml": "<outcome value='true'>\n", "comments": "", "outputs": 1, - "x": 1302.1152267456055, - "y": 218.63385391235352, - "z": "68309cb5.9fbe94", + "x": 1862.6568489074707, + "y": 68.57145023345947, + "z": "e876afdc.6a24f", "wires": [ [ - "a80ac0f1.029e7" + "13efb35.8a5a24d" ] ] }, { - "id": "a80ac0f1.029e7", + "id": "13efb35.8a5a24d", "type": "set", - "name": "set name", - "xml": "<set>\n<parameter name='prop.site.name' value='`$vnf-topology-operation-input.vnf-request-input.vnf-input-parameters.param[$idx].value`' />\n", + "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", + "type": "outcome", + "name": "0", + "xml": "<outcome value='0'>\n", "comments": "", - "x": 1470.1152267456055, - "y": 219.23386001586914, - "z": "68309cb5.9fbe94", + "outputs": 1, + "x": 860.9584503173828, + "y": 100.96874046325684, + "z": "e876afdc.6a24f", "wires": [ - + [ + "a40915eb.62f7c8" + ] ] }, { - "id": "27ece0ee.53311", - "type": "switchNode", - "name": "switch description", - "xml": "<switch test=\"`$vnf-topology-operation-input.vnf-request-input.vnf-input-parameters.param[$idx].name == 'description'`\">\n", + "id": "3adc7192.5bf7fe", + "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", + "wires": [] + }, + { + "id": "6ab44a9b.48e9b4", + "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", + "wires": [] + }, + { + "id": "73349d78.1f3074", + "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", + "wires": [] + }, + { + "id": "aaa950b9.3f56b", + "type": "success", + "name": "success", + "xml": "<outcome value='success'>\n", "comments": "", "outputs": 1, - "x": 1132.9549446105957, - "y": 265.63384914398193, - "z": "68309cb5.9fbe94", + "x": 1565.500316619873, + "y": 818.0003184080124, + "z": "e876afdc.6a24f", "wires": [ [ - "3c96f97e.2329d6" + "88dbfad5.81b4c8" ] ] }, { - "id": "3c96f97e.2329d6", - "type": "outcomeTrue", - "name": "true", - "xml": "<outcome value='true'>\n", + "id": "88dbfad5.81b4c8", + "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", + "wires": [] + }, + { + "id": "1c9cd1a7.9cc68e", + "type": "not-found", + "name": "not-found", + "xml": "<outcome value='not-found'>\n", "comments": "", "outputs": 1, - "x": 1319.9549446105957, - "y": 261.63384914398193, - "z": "68309cb5.9fbe94", + "x": 1568.991283416748, + "y": 865.5743540525436, + "z": "e876afdc.6a24f", "wires": [ [ - "38a8969d.eda21a" + "55bc7178.25cc8" ] ] }, { - "id": "38a8969d.eda21a", - "type": "set", - "name": "set description", - "xml": "<set>\n<parameter name='prop.site.description' value='`$vnf-topology-operation-input.vnf-request-input.vnf-input-parameters.param[$idx].value`' />\n", + "id": "55bc7178.25cc8", + "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": 1481.2884254455566, - "y": 261.09500885009766, - "z": "68309cb5.9fbe94", + "x": 1742.5626945495605, + "y": 853.860090136528, + "z": "e876afdc.6a24f", + "wires": [] + }, + { + "id": "98e7b2b4.03262", + "type": "other", + "name": "other", + "xml": "<outcome value='Other'>\n", + "comments": "", + "outputs": 1, + "x": 1561.324291229248, + "y": 906.9076670408249, + "z": "e876afdc.6a24f", "wires": [ - + [ + "201a39ec.7051b6" + ] ] }, { - "id": "2e9d64a5.63180c", - "type": "switchNode", - "name": "switch location", - "xml": "<switch test=\"`$vnf-topology-operation-input.vnf-request-input.vnf-input-parameters.param[$idx].name == 'location'`\">\n", + "id": "201a39ec.7051b6", + "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", + "wires": [] + }, + { + "id": "fccf6b1b.062f88", + "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": 1123.04105758667, - "y": 308.0411911010742, - "z": "68309cb5.9fbe94", + "x": 1298.500228881836, + "y": 866.0003242492676, + "z": "e876afdc.6a24f", "wires": [ [ - "4384d4ab.76bf6c" + "aaa950b9.3f56b", + "1c9cd1a7.9cc68e", + "98e7b2b4.03262" ] ] }, { - "id": "4384d4ab.76bf6c", - "type": "outcomeTrue", - "name": "true", - "xml": "<outcome value='true'>\n", + "id": "9d503875.591ee8", + "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": 1310.04105758667, - "y": 304.0411911010742, - "z": "68309cb5.9fbe94", + "x": 1352.0003204345703, + "y": 1023.0002918243408, + "z": "e876afdc.6a24f", "wires": [ [ - "3079a852.4cd8f8" + "caf01e6b.3d325" ] ] }, { - "id": "3079a852.4cd8f8", - "type": "set", - "name": "set location", - "xml": "<set>\n<parameter name='prop.site.location' value='`$vnf-topology-operation-input.vnf-request-input.vnf-input-parameters.param[$idx].value`' />\n", + "id": "e7caa58d.8c0ca8", + "type": "block", + "name": "block : atomic", + "xml": "<block atomic=\"true\">", + "atomic": "true", "comments": "", - "x": 1478.04105758667, - "y": 304.64119720458984, - "z": "68309cb5.9fbe94", + "outputs": 1, + "x": 1820.6667022705078, + "y": 1037.8891677856445, + "z": "e876afdc.6a24f", "wires": [ - + [] ] }, { - "id": "ad341ac7.a856e8", - "type": "switchNode", - "name": "switch id", - "xml": "<switch test=\"`$vnf-topology-operation-input.vnf-request-input.vnf-input-parameters.param[$idx].name == 'id'`\">\n", + "id": "67309670.5d6238", + "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", + "wires": [] + }, + { + "id": "e2a202c3.ab071", + "type": "failure", + "name": "failure", + "xml": "<outcome value='failure'>\n", "comments": "", "outputs": 1, - "x": 1113.0103759765625, - "y": 176.607177734375, - "z": "68309cb5.9fbe94", + "x": 1651.111343383789, + "y": 1096.4445505142212, + "z": "e876afdc.6a24f", "wires": [ [ - "653e71ed.565a9" + "67309670.5d6238" ] ] }, { - "id": "653e71ed.565a9", - "type": "outcomeTrue", - "name": "true", - "xml": "<outcome value='true'>\n", + "id": "caf01e6b.3d325", + "type": "success", + "name": "success", + "xml": "<outcome value='success'>\n", "comments": "", "outputs": 1, - "x": 1300.0103759765625, - "y": 172.607177734375, - "z": "68309cb5.9fbe94", + "x": 1647.5557174682617, + "y": 1038.1113357543945, + "z": "e876afdc.6a24f", "wires": [ [ - "2466a0b0.31d85" + "e7caa58d.8c0ca8" ] ] }, { - "id": "2466a0b0.31d85", + "id": "3f3b503b.d5da4", "type": "set", - "name": "set id", - "xml": "<set>\n<parameter name='prop.site.id' value='`$vnf-topology-operation-input.vnf-request-input.vnf-input-parameters.param[$idx].value`' />\n", + "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", + "wires": [] + }, + { + "id": "93347dcc.a6583", + "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", + "wires": [ + [ + "c5378ae6.053748", + "cfecc2b7.775a9" + ] + ] + }, + { + "id": "c5378ae6.053748", + "type": "success", + "name": "success", + "xml": "<outcome value='success'>\n", "comments": "", - "x": 1468.0103759765625, - "y": 173.20718383789062, - "z": "68309cb5.9fbe94", + "outputs": 1, + "x": 1564.754207611084, + "y": 944.004280090332, + "z": "e876afdc.6a24f", "wires": [ - + [ + "574fb0f8.2705b" + ] ] }, { - "id": "43160102.ca0c8", + "id": "cfecc2b7.775a9", + "type": "failure", + "name": "failure", + "xml": "<outcome value='failure'>\n", + "comments": "", + "outputs": 1, + "x": 1557.004207611084, + "y": 985.6471633911133, + "z": "e876afdc.6a24f", + "wires": [ + [ + "a43bfc8d.c3ede" + ] + ] + }, + { + "id": "a43bfc8d.c3ede", + "type": "block", + "name": "block", + "xml": "<block>\n", + "atomic": "false", + "comments": "", + "outputs": 1, + "x": 1683.087703704834, + "y": 985.893196105957, + "z": "e876afdc.6a24f", + "wires": [ + [] + ] + }, + { + "id": "574fb0f8.2705b", + "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", + "wires": [] + }, + { + "id": "bbce2e16.d72aa", + "type": "comment", + "name": "tmp.thirdparty-sdnc-id is hardcoded value?", + "info": "", + "comments": "", + "x": 1295.0041198730469, + "y": 833.0042457580566, + "z": "e876afdc.6a24f", + "wires": [] + }, + { + "id": "708f2def.d37784", + "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", + "comments": "", + "x": 628.0042037963867, + "y": 442.00424671173096, + "z": "e876afdc.6a24f", + "wires": [] + }, + { + "id": "c2a60a1e.d3e7f8", "type": "switchNode", - "name": "switch type", - "xml": "<switch test=\"`$vnf-topology-operation-input.vnf-request-input.vnf-input-parameters.param[$idx].name == 'type'`\">\n", + "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": 1122.0103759765625, - "y": 351.60717010498047, - "z": "68309cb5.9fbe94", + "x": 1756.2543411254883, + "y": 138.00390720367432, + "z": "e876afdc.6a24f", "wires": [ [ - "5f80b289.c102cc" + "3b24cc2e.de2954" ] ] }, { - "id": "5f80b289.c102cc", + "id": "3b24cc2e.de2954", "type": "outcomeTrue", "name": "true", "xml": "<outcome value='true'>\n", "comments": "", "outputs": 1, - "x": 1309.0103759765625, - "y": 347.60717010498047, - "z": "68309cb5.9fbe94", + "x": 1983.2541961669922, + "y": 137.00390625, + "z": "e876afdc.6a24f", "wires": [ [ - "123b0821.89fa08" + "68cbbed8.08fd8" ] ] }, { - "id": "123b0821.89fa08", - "type": "set", - "name": "set type & sdwan.site", - "xml": "<set>\n<parameter name='prop.site.type' value='`$vnf-topology-operation-input.vnf-request-input.vnf-input-parameters.param[$idx].value`' />\n<parameter name='tmp.sdwan.site' value='true' />", + "id": "792cd7fe.bce288", + "type": "block", + "name": "block", + "xml": "<block>\n", + "atomic": "false", "comments": "", - "x": 1507.0103759765625, - "y": 347.2071838378906, - "z": "68309cb5.9fbe94", + "outputs": 1, + "x": 1526.254165649414, + "y": 109.00389289855957, + "z": "e876afdc.6a24f", "wires": [ - + [ + "c2a60a1e.d3e7f8", + "506c3f6d.abfb3" + ] ] }, { - "id": "8a88d2d2.3cbb4", + "id": "460c13d8.2f2f3c", + "type": "comment", + "name": "Get devices", + "info": "", + "comments": "", + "x": 1790.0043563842773, + "y": 158.75392246246338, + "z": "e876afdc.6a24f", + "wires": [] + }, + { + "id": "79a45953.cb4488", + "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", + "wires": [] + }, + { + "id": "1ddd800f.cc627", "type": "switchNode", - "name": "switch role", - "xml": "<switch test=\"`$vnf-topology-operation-input.vnf-request-input.vnf-input-parameters.param[$idx].name == 'role'`\">\n", + "name": "switch prop.site.sdwan", + "xml": "<switch test=\"`$prop.site.sdwan`\">\n", "comments": "", "outputs": 1, - "x": 1125.0103759765625, - "y": 394.60717010498047, - "z": "68309cb5.9fbe94", + "x": 607.0001220703125, + "y": 384.6666269302368, + "z": "e876afdc.6a24f", "wires": [ [ - "dbc514.9b453af" + "7c42fbb6.c14864" ] ] }, { - "id": "dbc514.9b453af", + "id": "7c42fbb6.c14864", "type": "outcomeTrue", "name": "true", "xml": "<outcome value='true'>\n", "comments": "", "outputs": 1, - "x": 1312.0103759765625, - "y": 390.60717010498047, - "z": "68309cb5.9fbe94", + "x": 786.000171661377, + "y": 381.6666269302368, + "z": "e876afdc.6a24f", "wires": [ [ - "78dc31fa.1149c" + "9d5e017e.9579d" ] ] }, { - "id": "78dc31fa.1149c", - "type": "set", - "name": "set role & sdwan.site", - "xml": "<set>\n<parameter name='prop.site.role' value='`$vnf-topology-operation-input.vnf-request-input.vnf-input-parameters.param[$idx].value`' />\n<parameter name='tmp.sdwan.site' value='true' />\n", - "comments": "", - "x": 1520.0103759765625, - "y": 390.2071838378906, - "z": "68309cb5.9fbe94", + "id": "9d5e017e.9579d", + "type": "block", + "name": "block : atomic", + "xml": "<block atomic=\"true\">", + "atomic": "true", + "outputs": 1, + "x": 960.000244140625, + "y": 908.6668318510056, + "z": "e876afdc.6a24f", "wires": [ - + [ + "93347dcc.a6583", + "9d503875.591ee8", + "69c072d6.f6ae7c", + "fccf6b1b.062f88" + ] ] }, { - "id": "443f31de.8f2cf", - "type": "switchNode", - "name": "switch service-data.vnfs.vnf_length", - "xml": "<switch test='`$service-data.vnfs.vnf_length`'>\n", + "id": "68cbbed8.08fd8", + "type": "block", + "name": "block : atomic", + "xml": "<block atomic=\"true\">", + "atomic": "true", + "outputs": 1, + "x": 1921.6669616699219, + "y": 248.00000762939453, + "z": "e876afdc.6a24f", + "wires": [ + [ + "7e0b70dd.7568" + ] + ] + }, + { + "id": "7e0b70dd.7568", + "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": 671, - "y": 69, - "z": "68309cb5.9fbe94", + "x": 2205.0007934570312, + "y": 251.00003814697266, + "z": "e876afdc.6a24f", "wires": [ [ - "d2748c44.5140a", - "132b0e47.fe6172", - "6c7ae40f.24628c" + "bb46e6b5.934b78" ] ] }, { - "id": "d2748c44.5140a", - "type": "other", - "name": "Null", - "xml": "<outcome value=''>\n", + "id": "bb46e6b5.934b78", + "type": "block", + "name": "block", + "xml": "<block>\n", + "atomic": "false", "comments": "", "outputs": 1, - "x": 1084, - "y": 62.00006103515625, - "z": "68309cb5.9fbe94", + "x": 2135.00057220459, + "y": 334.0002021789551, + "z": "e876afdc.6a24f", "wires": [ [ - "910f30c.abfcad" + "68a7dd5e.b34a34" ] ] }, { - "id": "910f30c.abfcad", - "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", + "id": "68a7dd5e.b34a34", + "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": "", - "x": 1302.7774658203125, - "y": 37.889007568359375, - "z": "68309cb5.9fbe94", + "outputs": 1, + "x": 2295.0008277893066, + "y": 336.00005531311035, + "z": "e876afdc.6a24f", "wires": [ - + [ + "eb058687.6ea298" + ] ] }, { - "id": "132b0e47.fe6172", - "type": "other", - "name": "other", - "xml": "<outcome value='Other'>\n", + "id": "eb058687.6ea298", + "type": "outcomeTrue", + "name": "true", + "xml": "<outcome value='true'>\n", "comments": "", "outputs": 1, - "x": 996.0003662109375, - "y": 116.00007629394531, - "z": "68309cb5.9fbe94", + "x": 2447.0009994506836, + "y": 335.00005531311035, + "z": "e876afdc.6a24f", "wires": [ [ - "2df38444.65759c" + "468bec8a.569b34" ] ] }, { - "id": "2df38444.65759c", + "id": "468bec8a.569b34", + "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", + "wires": [] + }, + { + "id": "fb9527f.4513dd8", + "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", + "wires": [] + }, + { + "id": "b5990ea7.a9c72", "type": "block", - "name": "block : atomic", - "xml": "<block atomic=\"true\">", - "atomic": "true", + "name": "block", + "xml": "<block>\n", + "atomic": "false", + "comments": "", "outputs": 1, - "x": 1167.2698974609375, - "y": 99.55461120605469, - "z": "68309cb5.9fbe94", + "x": 1026.0003089904785, + "y": 424.00009059906006, + "z": "e876afdc.6a24f", "wires": [ [ - "1580b603.a7115a", - "2393097b.207106" + "982966d0.a9a8e8", + "f41887bb.544248", + "4ca7692.19f0f98", + "e068ac07.3a75f", + "caf25c5.4962fa", + "a0b5938f.d00a8", + "a3f45232.9e1a1", + "b56118e.cb3ebe8", + "6dc0a862.fb8db8", + "beea925c.34a3c" ] ] }, { - "id": "1580b603.a7115a", - "type": "for", - "name": "for vidx..service-data.vnfs.vnf_length[]", - "xml": "<for index='vidx' start='0' end='`$service-data.vnfs.vnf_length`' >\n", + "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", "comments": "", "outputs": 1, - "x": 1465.285888671875, - "y": 80.42861938476562, - "z": "68309cb5.9fbe94", + "x": 1260.2222442626953, + "y": 283.000036239624, + "z": "e876afdc.6a24f", "wires": [ [ - "d610b844.0652c8" + "86ab3afd.9888f8" ] ] }, { - "id": "2393097b.207106", + "id": "86ab3afd.9888f8", + "type": "outcomeTrue", + "name": "true", + "xml": "<outcome value='true'>\n", + "comments": "", + "outputs": 1, + "x": 1438.2222576141357, + "y": 286.000036239624, + "z": "e876afdc.6a24f", + "wires": [ + [ + "daf4941f.5f7e68" + ] + ] + }, + { + "id": "daf4941f.5f7e68", + "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", + "comments": "", + "x": 1585.222267150879, + "y": 285.60003185272217, + "z": "e876afdc.6a24f", + "wires": [] + }, + { + "id": "982966d0.a9a8e8", "type": "switchNode", - "name": "switch tmp.vidx ", - "xml": "<switch test=\"`$tmp.vidx`\">\n\n", + "name": "switch type", + "xml": "<switch test=\"`$service-data.vnfs.vnf[$vidx].vnf-data.vnf-request-input.vnf-input-parameters.param[$idx].name == 'type'`\">\n", "comments": "", "outputs": 1, - "x": 1386.5872802734375, - "y": 123.41180419921875, - "z": "68309cb5.9fbe94", + "x": 1239.1179161071777, + "y": 580.9734859466553, + "z": "e876afdc.6a24f", "wires": [ [ - "dd032095.3aded" + "bbc62e0b.50f11" ] ] }, { - "id": "dd032095.3aded", - "type": "outcome", - "name": "NULL", - "xml": "<outcome value=''>\n", + "id": "bbc62e0b.50f11", + "type": "outcomeTrue", + "name": "true", + "xml": "<outcome value='true'>\n", "comments": "", "outputs": 1, - "x": 1587.015869140625, - "y": 128.98321533203125, - "z": "68309cb5.9fbe94", + "x": 1418.1177597045898, + "y": 581.9734058380127, + "z": "e876afdc.6a24f", "wires": [ [ - "40072c93.943294" + "91550639.119c38" ] ] }, { - "id": "d610b844.0652c8", + "id": "91550639.119c38", + "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\" />", + "comments": "", + "x": 1568.1177711486816, + "y": 583.5734205245972, + "z": "e876afdc.6a24f", + "wires": [] + }, + { + "id": "f41887bb.544248", "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", + "name": "switch role", + "xml": "<switch test=\"`$service-data.vnfs.vnf[$vidx].vnf-data.vnf-request-input.vnf-input-parameters.param[$idx].name == 'role'`\">\n", "comments": "", "outputs": 1, - "x": 1775.7144775390625, - "y": 78.6787109375, - "z": "68309cb5.9fbe94", + "x": 1240.1175918579102, + "y": 624.9735260009766, + "z": "e876afdc.6a24f", "wires": [ [ - "fc26d8de.94b0a8" + "2facef98.25444" ] ] }, { - "id": "40072c93.943294", - "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", + "id": "2facef98.25444", + "type": "outcomeTrue", + "name": "true", + "xml": "<outcome value='true'>\n", + "comments": "", + "outputs": 1, + "x": 1410.1175994873047, + "y": 634.9734888076782, + "z": "e876afdc.6a24f", + "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", "comments": "", - "x": 1758.4443359375, - "y": 129.12606811523438, - "z": "68309cb5.9fbe94", + "outputs": 1, + "x": 1283.117431640625, + "y": 324.97334480285645, + "z": "e876afdc.6a24f", "wires": [ - + [ + "bd2efb08.1c1158" + ] ] }, { - "id": "fc26d8de.94b0a8", + "id": "bd2efb08.1c1158", "type": "outcomeTrue", "name": "true", "xml": "<outcome value='true'>\n", "comments": "", "outputs": 1, - "x": 1981.666748046875, - "y": 77.57144165039062, - "z": "68309cb5.9fbe94", + "x": 1447.117603302002, + "y": 324.97334575653076, + "z": "e876afdc.6a24f", "wires": [ [ - "7149eeb8.6b351" + "4ee2193.b3e14e8" ] ] }, { - "id": "7149eeb8.6b351", + "id": "4ee2193.b3e14e8", "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", + "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": 2220.198486328125, - "y": 73.32144165039062, - "z": "68309cb5.9fbe94", + "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", + "comments": "", + "outputs": 1, + "x": 1266.117431640625, + "y": 360.9733486175537, + "z": "e876afdc.6a24f", "wires": [ - + [ + "86891afb.54bc78" + ] ] }, { - "id": "6c7ae40f.24628c", - "type": "outcome", - "name": "0", - "xml": "<outcome value='0'>\n", + "id": "86891afb.54bc78", + "type": "outcomeTrue", + "name": "true", + "xml": "<outcome value='true'>\n", "comments": "", "outputs": 1, - "x": 1077.96875, - "y": 25.96875, - "z": "68309cb5.9fbe94", + "x": 1436.1172790527344, + "y": 368.9733476638794, + "z": "e876afdc.6a24f", "wires": [ [ - "910f30c.abfcad" + "4e393c27.e3c2c4" ] ] }, { - "id": "cdf59db6.a5688", - "type": "comment", - "name": "TODO: Check validation", - "info": "", + "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", + "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", "comments": "", - "x": 628, - "y": 21, - "z": "68309cb5.9fbe94", + "outputs": 1, + "x": 1267.117431640625, + "y": 402.97330951690674, + "z": "e876afdc.6a24f", "wires": [ - + [ + "8476b452.fd9df8" + ] ] }, { - "id": "e48e518f.1dc2a", - "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", + "id": "8476b452.fd9df8", + "type": "outcomeTrue", + "name": "true", + "xml": "<outcome value='true'>\n", "comments": "", - "x": 606.3436889648438, - "y": 717.34375, - "z": "68309cb5.9fbe94", + "outputs": 1, + "x": 1432.117603302002, + "y": 401.97330951690674, + "z": "e876afdc.6a24f", "wires": [ - + [ + "44bf054e.3e0bdc" + ] ] }, { - "id": "4a014615.6e9cf8", + "id": "44bf054e.3e0bdc", "type": "set", - "name": "set vnf-level-oper-status to Active", - "xml": "<set>\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-level-oper-status.order-status' value='Active' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].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[$vnf-index].vnf-data.vnf-level-oper-status.last-action' value='`$vnf-topology-operation-input.request-information.request-action`' />\n", + "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": "", - "x": 662.8237915039062, - "y": 543.680908203125, - "z": "68309cb5.9fbe94", + "outputs": 1, + "x": 1261.0007247924805, + "y": 670.0002679824829, + "z": "e876afdc.6a24f", "wires": [ - + [ + "6d9c8ede.093ce" + ] ] }, { - "id": "bf95d9ae.8087f8", - "type": "set", - "name": "copy input data to service data", - "xml": "<set>\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-id' value='`$prop.vnf-index`' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.sdnc-request-header.' value='$vnf-topology-operation-input.sdnc-request-header.' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.request-information.' value='$vnf-topology-operation-input.request-information.' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.service-information.' value='$vnf-topology-operation-input.service-information.' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-information.' value='$vnf-topology-operation-input.vnf-information.' />\n\n", + "id": "6d9c8ede.093ce", + "type": "outcomeTrue", + "name": "true", + "xml": "<outcome value='true'>\n", "comments": "", - "x": 652.6769409179688, - "y": 502.6771240234375, - "z": "68309cb5.9fbe94", + "outputs": 1, + "x": 1421.0007400512695, + "y": 681.0003499984741, + "z": "e876afdc.6a24f", "wires": [ - + [ + "473f9a91.4991c4" + ] ] }, { - "id": "c850e5af.e42fa8", + "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": "<update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='generic-vnf' \n key='generic-vnf.vnf-id = $prop.vnf-index' >\n<parameter name='vnf-id' value='`$prop.vnf-index`' />\n<parameter name='in-maint' value='true' />\n<parameter name='is-closed-loop-disabled' value='false' />\n<parameter name='orchestration-status' value='Active' />\n<parameter name='operational-status' value='Active' />\n<parameter name='model-customization-id' value='`$vnf-topology-operation-input.vnf-information.onap-model-information.model-customization-uuid`' />\n<parameter name='model-invariant-id' value='`$vnf-topology-operation-input.vnf-information.onap-model-information.model-invariant-uuid`' />\n<parameter name='model-version-id' value='`$vnf-topology-operation-input.vnf-information.onap-model-information.model-uuid`' />\n<parameter name='selflink' value=\"`'restconf/config/GENERIC-RESOURCE-API:services/service/' + $vnf-topology-operation-input.service-information.service-instance-id + '/service-data/vnfs/vnf/' + $prop.vnf-index + '/vnf-data/'` \" />\n", + "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": 683.0104370117188, - "y": 627.5659790039062, - "z": "68309cb5.9fbe94", + "x": 1820.6671142578125, + "y": 658.0001821517944, + "z": "e876afdc.6a24f", + "wires": [ + [] + ] + }, + { + "id": "2de9cb05.be1da4", + "type": "block", + "name": "block : atomic", + "xml": "<block atomic=\"true\">", + "atomic": "true", + "outputs": 1, + "x": 1567.667251586914, + "y": 638.0001821517944, + "z": "e876afdc.6a24f", "wires": [ [ - + "6c8e946.594c76c", + "239b469c.39b6fa" ] ] }, { - "id": "b4c6f1a.73d561", - "type": "save", - "name": "save service relationship in AAI", - "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='service-instance:relationship-list' \n key='service-instance.service-instance-id = $service-data.service-information.service-instance-id \n AND customer.global-customer-id = $service-data.vnfs.vnf[$vnf-index].vnf-data.service-information.global-customer-id \n AND service-subscription.service-type = $service-data.vnfs.vnf[$vnf-index].vnf-data.service-information.subscription-service-type' \n force=\"true\" pfx=\"tmp.AnAI-data\">\n<parameter name=\"relationship-list.relationship[0].related-to\" value=\"generic-vnf\" />\n<parameter name=\"relationship-list.relationship[0].related-link\" value=\"`'/network/generic-vnfs/generic-vnf/' + $prop.vnf-index`\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-key\" value=\"generic-vnf.vnf-id\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-value\" value=\"`$prop.vnf-index`\" />", - "comments": "", + "id": "473f9a91.4991c4", + "type": "block", + "name": "block : atomic", + "xml": "<block atomic=\"true\">", + "atomic": "true", "outputs": 1, - "x": 654.0104370117188, - "y": 668.34375, - "z": "68309cb5.9fbe94", + "x": 1579.6670875549316, + "y": 685.0001058578491, + "z": "e876afdc.6a24f", "wires": [ [ - + "c48a4f4.5838eb", + "363cf22d.62d78e" ] ] }, { - "id": "d7008318.12e1b", - "type": "set", - "name": "set vnf-index and vnf-object-path", - "xml": "<set>\n<parameter name='vnfId' value='`$prop.vnf-index`' />\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/' + $prop.vnf-index + '/vnf-data/'` \" />", + "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", "comments": "", - "x": 659.5104370117188, - "y": 585.34375, - "z": "68309cb5.9fbe94", + "outputs": 1, + "x": 1848.667106628418, + "y": 762.0001888275146, + "z": "e876afdc.6a24f", "wires": [ - + [] ] }, { - "id": "2b37bcac.68f084", + "id": "a0b5938f.d00a8", "type": "switchNode", - "name": "switch sdwan.site", - "xml": "<switch test=\"`$tmp.sdwan.site`\">\n", + "name": "switch latitude", + "xml": "<switch test=\"`$service-data.vnfs.vnf[$vidx].vnf-data.vnf-request-input.vnf-input-parameters.param[$idx].name == 'latitude'`\">\n", + "comments": "", + "outputs": 1, + "x": 1257.333740234375, + "y": 447.0000867843628, + "z": "e876afdc.6a24f", + "wires": [ + [ + "b21592f4.5618f" + ] + ] + }, + { + "id": "b21592f4.5618f", + "type": "outcomeTrue", + "name": "true", + "xml": "<outcome value='true'>\n", "comments": "", "outputs": 1, - "x": 615, - "y": 348, - "z": "68309cb5.9fbe94", + "x": 1433.3335876464844, + "y": 442.0000457763672, + "z": "e876afdc.6a24f", "wires": [ [ - "a9004d13.a7ec4", - "27d5839b.ac9ebc" + "29af6eef.bf06b2" ] ] }, { - "id": "3993fb6.79aca04", + "id": "29af6eef.bf06b2", "type": "set", - "name": "set sdwan.site", - "xml": "<set>\n<parameter name='tmp.sdwan.site' value='false' />\n", + "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", "comments": "", - "x": 606, - "y": 217, - "z": "68309cb5.9fbe94", + "outputs": 1, + "x": 1260.333740234375, + "y": 487.00012969970703, + "z": "e876afdc.6a24f", "wires": [ - + [ + "7df2c337.3c1b4c" + ] ] }, { - "id": "27d5839b.ac9ebc", + "id": "7df2c337.3c1b4c", "type": "outcomeTrue", "name": "true", "xml": "<outcome value='true'>\n", "comments": "", "outputs": 1, - "x": 751, - "y": 441, - "z": "68309cb5.9fbe94", + "x": 1432.3337478637695, + "y": 482.00017166137695, + "z": "e876afdc.6a24f", "wires": [ [ - "1ed61d3a.a1c323" + "86c3a1c7.6636a" ] ] }, { - "id": "a9004d13.a7ec4", + "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", + "comments": "", + "x": 1614.3336029052734, + "y": 485.6000232696533, + "z": "e876afdc.6a24f", + "wires": [] + }, + { + "id": "4e291944.287288", "type": "outcomeTrue", - "name": "false", - "xml": "<outcome value='false'>\n", + "name": "true", + "xml": "<outcome value='true'>\n", "comments": "", "outputs": 1, - "x": 794.8887939453125, - "y": 361.00006103515625, - "z": "68309cb5.9fbe94", + "x": 1423.3337478637695, + "y": 532.0001745223999, + "z": "e876afdc.6a24f", "wires": [ [ - "289c3fbe.f462" + "f818ecd2.ba80f" ] ] }, { - "id": "289c3fbe.f462", - "type": "block", - "name": "block", - "xml": "<block>\n", - "atomic": "false", + "id": "2bbb97af.762cc8", + "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", + "comments": "", + "x": 1781.3334426879883, + "y": 500.6000266075134, + "z": "e876afdc.6a24f", + "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": "", "outputs": 1, - "x": 934, - "y": 361, - "z": "68309cb5.9fbe94", + "x": 1250.3338165283203, + "y": 532.0001745223999, + "z": "e876afdc.6a24f", "wires": [ [ - + "4e291944.287288" ] ] }, { - "id": "1ed61d3a.a1c323", + "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", + "comments": "", + "outputs": 1, + "x": 1806.9997863769531, + "y": 546.9999294281006, + "z": "e876afdc.6a24f", + "wires": [ + [] + ] + }, + { + "id": "f818ecd2.ba80f", "type": "block", "name": "block : atomic", "xml": "<block atomic=\"true\">", "atomic": "true", "outputs": 1, - "x": 913, - "y": 440, - "z": "68309cb5.9fbe94", + "x": 1585.333755493164, + "y": 533.0000920295715, + "z": "e876afdc.6a24f", "wires": [ [ - + "2bbb97af.762cc8", + "3f69ab6a.936704" ] ] }, { - "id": "ce5d0a29.098d18", - "type": "comment", - "name": "TODO: SDWAN implementation for site", - "info": "", - "comments": "", - "x": 1097, - "y": 485, - "z": "68309cb5.9fbe94", - "wires": [ - - ] - }, - { - "id": "ba135787.4aba08", - "type": "comment", - "name": "Site and role will be used to identify SDWAN service", - "info": "", + "id": "69c072d6.f6ae7c", + "type": "set", + "name": "set siteId", + "xml": "<set>\n<parameter name='prop.site.siteId' value=\"\" />\n\n", "comments": "", - "x": 1829, - "y": 358, - "z": "68309cb5.9fbe94", - "wires": [ - - ] + "x": 1220.0000762939453, + "y": 762.0000247955322, + "z": "e876afdc.6a24f", + "wires": [] }, { - "id": "c30ca451.c8aa78", + "id": "c77bd4e4.651878", "type": "comment", - "name": "TODO: AAI", + "name": "should be null in request", "info": "", "comments": "", - "x": 900, - "y": 638, - "z": "68309cb5.9fbe94", - "wires": [ - - ] + "x": 1229, + "y": 732.999979019165, + "z": "e876afdc.6a24f", + "wires": [] } -] +]
\ No newline at end of file |