diff options
author | gaurav <gaurav.agrawal@huawei.com> | 2018-08-10 12:37:02 +0530 |
---|---|---|
committer | gaurav <gaurav.agrawal@huawei.com> | 2018-08-10 12:37:02 +0530 |
commit | 56062fd7dcc091cb38569302b7171b1956a48c1d (patch) | |
tree | d6f129cb785d4a83d76fd7d7dbcc1e149d9c501c /platform-logic/generic-resource-api/src/main/json | |
parent | b324322c4d885c45e6cb0843ed769203969ac041 (diff) |
SOTN DG to support EPL
Updates include:
- Template changes to support EPL
- Changes wrt. parameter names
Change-Id: I016adb31b9c6ad043a43468cec198d4336bb96a1
Issue-ID: SDNC-356
Signed-off-by: Gaurav Agrawal <gaurav.agrawal@huawei.com>
Former-commit-id: a2c96f67d1e799f8f762fb14be3744a03649869a
Diffstat (limited to 'platform-logic/generic-resource-api/src/main/json')
-rw-r--r-- | platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_sotn-attachment-topology-operation-create.json | 931 |
1 files changed, 514 insertions, 417 deletions
diff --git a/platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_sotn-attachment-topology-operation-create.json b/platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_sotn-attachment-topology-operation-create.json index 441ff93d..200f80ed 100644 --- a/platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_sotn-attachment-topology-operation-create.json +++ b/platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_sotn-attachment-topology-operation-create.json @@ -1,20 +1,20 @@ [ { - "id": "e1802764.010338", + "id": "5133686c.68eb98", "type": "dgstart", "name": "DGSTART", "outputs": 1, - "x": 75.00390625, - "y": 55.999998688697815, - "z": "2de7bdd3.0e47b2", + "x": 103.01040649414062, + "y": 42.010414123535156, + "z": "3425547d.b4704c", "wires": [ [ - "cfe32243.1a54" + "496791b5.8488d" ] ] }, { - "id": "cfe32243.1a54", + "id": "496791b5.8488d", "type": "service-logic", "name": "GENERIC-RESOURCE-API ${project.version}", "module": "GENERIC-RESOURCE-API", @@ -22,1187 +22,1284 @@ "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": 287.00391006469727, - "y": 128.0000158548355, - "z": "2de7bdd3.0e47b2", + "x": 315.0104103088379, + "y": 114.01043128967285, + "z": "3425547d.b4704c", "wires": [ [ - "f32ba3f6.6902c" + "177388c0.d59117" ] ] }, { - "id": "f32ba3f6.6902c", + "id": "177388c0.d59117", "type": "method", "name": "sotn-attachment-topology-operation-create", "xml": "<method rpc='sotn-attachment-topology-operation-create' mode='sync'>\n", "comments": "", "outputs": 1, - "x": 275.0040283203125, - "y": 215.99999868869781, - "z": "2de7bdd3.0e47b2", + "x": 303.0105285644531, + "y": 202.01041412353516, + "z": "3425547d.b4704c", "wires": [ [ - "7c54b5b2.a3083c" + "f8d7365b.409c58" ] ] }, { - "id": "7c54b5b2.a3083c", + "id": "f8d7365b.409c58", "type": "block", "name": "block : atomic", "xml": "<block atomic=\"true\">\n", "atomic": "false", "comments": "", "outputs": 1, - "x": 195.00395965576172, - "y": 965.0002466440201, - "z": "2de7bdd3.0e47b2", + "x": 223.01045989990234, + "y": 951.0106620788574, + "z": "3425547d.b4704c", "wires": [ [ - "3de219b6.a5b006", - "2c7c8b4.5796074", - "9525b61d.f44608", - "45124265.84320c", - "3e0bbdc4.8ce3d2", - "efb9af7d.38a8c", - "67a07981.adb6b8", - "238da366.150bec", - "482be69b.e1e678", - "9c36769e.3b9b78", - "1db7126.81503ee", - "279f61dd.0cdaee", - "b18196af.f3d2c8", - "d586facb.6928c8", - "83c4b03a.da76", - "aeb52a03.a21508", - "d0d20150.466f4", - "3704681e.a28308", - "d25d451e.0f6438", - "54b45ac5.3b96f4", - "6f9dfa46.6d74e4", - "5a5883b8.a68a6c", - "d769ff10.bfeae" + "9bdb10c1.b2c65", + "64a58452.ad453c", + "e271b8d5.7f00e8", + "1b3c993d.53c997", + "e93d7aa8.8afc58", + "52397993.71f7e8", + "e6318980.74cd38", + "461a26ad.352d08", + "99015db4.34427", + "302473e7.2159bc", + "8e35b842.c7d4f8", + "88bfb367.64d03", + "373e7d85.f8d5f2", + "ab686f72.f6d24", + "6568c68e.998458", + "42759b0d.8bfff4", + "7bc569ba.c7c2a8", + "aee1a7c1.04af88", + "c3e71ac5.708158", + "8031bd9b.aa492", + "b0b78151.f3bd1", + "13637009.f57bd", + "acf4df38.359e8" ] ] }, { - "id": "d194eb73.9913d8", + "id": "f392c1a2.4633e", "type": "comment", "name": "Set allotted resource id if not sent by SO", "info": "", "comments": "", - "x": 679.0806579589844, - "y": 125.43391764163971, - "z": "2de7bdd3.0e47b2", + "x": 707.087158203125, + "y": 111.44433307647705, + "z": "3425547d.b4704c", "wires": [] }, { - "id": "3de219b6.a5b006", + "id": "9bdb10c1.b2c65", "type": "switchNode", "name": "switch allotted-resource-id", "xml": "<switch test='`$connection-attachment-topology-operation-input.allotted-resource-information.allotted-resource-id`'>\n", "comments": "", "outputs": 1, - "x": 625.0039367675781, - "y": 180.99999105930328, - "z": "2de7bdd3.0e47b2", + "x": 653.0104370117188, + "y": 167.01040649414062, + "z": "3425547d.b4704c", "wires": [ [ - "c41cb638.52f6f8", - "e38afa57.231908" + "61aacc9.ea6e934", + "1e985c69.1db8d4" ] ] }, { - "id": "c41cb638.52f6f8", + "id": "61aacc9.ea6e934", "type": "outcome", "name": "NULL", "xml": "<outcome value=''>", "comments": "", "outputs": 1, - "x": 823.0040245056152, - "y": 150.9999796152115, - "z": "2de7bdd3.0e47b2", + "x": 851.0105247497559, + "y": 137.01039505004883, + "z": "3425547d.b4704c", "wires": [ [ - "1f1d00d8.31b19f" + "89d751a9.4634e" ] ] }, { - "id": "e38afa57.231908", + "id": "1e985c69.1db8d4", "type": "other", "name": "other", "xml": "<outcome value='Other'>\n", "comments": "", "outputs": 1, - "x": 822.0039329528809, - "y": 187.99999010562897, - "z": "2de7bdd3.0e47b2", + "x": 850.0104331970215, + "y": 174.0104055404663, + "z": "3425547d.b4704c", "wires": [ [ - "3ee7f443.e400dc" + "2d11e756.388fd8" ] ] }, { - "id": "3ee7f443.e400dc", + "id": "2d11e756.388fd8", "type": "set", "name": "set tmp.ar.allotted-resource-id", "xml": "<set>\n<parameter name='tmp.ar.allotted-resource-id' value='`$connection-attachment-topology-operation-input.allotted-resource-information.allotted-resource-id`' />\n", "comments": "", - "x": 1020.0039215087891, - "y": 185.0000091791153, - "z": "2de7bdd3.0e47b2", + "x": 1048.0104217529297, + "y": 171.01042461395264, + "z": "3425547d.b4704c", "wires": [] }, { - "id": "2c7c8b4.5796074", + "id": "64a58452.ad453c", "type": "set", "name": "set tmp.ar.self-link", "xml": "<set>\n<parameter name='tmp.ar.self-link' value=\"`'restconf/config/GENERIC-RESOURCE-API:connection-attachment-allotted-resources/connection-attachment-allotted-resource/'\n + $tmp.ar.allotted-resource-id\n + '/allotted-resource-data/connection-attachment-topology/'` \" />\n\n", "comments": "", - "x": 593.0038604736328, - "y": 402.0000978708267, - "z": "2de7bdd3.0e47b2", + "x": 621.0103607177734, + "y": 388.01051330566406, + "z": "3425547d.b4704c", "wires": [] }, { - "id": "9525b61d.f44608", + "id": "e271b8d5.7f00e8", "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": 593.2657775878906, - "y": 483.6667791604996, - "z": "2de7bdd3.0e47b2", + "x": 621.2722778320312, + "y": 469.6771945953369, + "z": "3425547d.b4704c", "wires": [ [] ] }, { - "id": "45124265.84320c", + "id": "1b3c993d.53c997", "type": "execute", "name": "generate allotted-resource tmp.ar-url", "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$prop.restapi.connection-attachment-allottedresource`\"/>\n <parameter name=\"outputPath\" value=\"tmp.ar-url\"/>\n <parameter name=\"target\" value=\"{allotted-resource-id}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.ar.allotted-resource-id`\"/>\n", "comments": "", "outputs": 1, - "x": 646.2658386230469, - "y": 570.6666971445084, - "z": "2de7bdd3.0e47b2", + "x": 674.2723388671875, + "y": 556.6771125793457, + "z": "3425547d.b4704c", "wires": [ [] ] }, { - "id": "1f1d00d8.31b19f", + "id": "89d751a9.4634e", "type": "execute", "name": "execute tmp.ar.allotted-resource-id", "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='generateUUID' >\n<parameter name=\"ctx-destination\" value=\"tmp.ar.allotted-resource-id\"/>\n", "comments": "", "outputs": 1, - "x": 1038.0040016174316, - "y": 151.99998533725739, - "z": "2de7bdd3.0e47b2", + "x": 1066.0105018615723, + "y": 138.01040077209473, + "z": "3425547d.b4704c", "wires": [ [ - "febe994.1667068" + "eb62b50e.452978" ] ] }, { - "id": "febe994.1667068", + "id": "eb62b50e.452978", "type": "failure", "name": "failure", "xml": "<outcome value='failure'>\n", "comments": "", "outputs": 1, - "x": 1256.0040435791016, - "y": 151.99994909763336, - "z": "2de7bdd3.0e47b2", + "x": 1284.0105438232422, + "y": 138.0103645324707, + "z": "3425547d.b4704c", "wires": [ [ - "39c9fb3d.bda924" + "21e39486.41c95c" ] ] }, { - "id": "39c9fb3d.bda924", + "id": "21e39486.41c95c", "type": "returnFailure", "name": "return failure", "xml": "<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value=\"An error occured while generation allotted resource ID\" />\n", "comments": "", - "x": 1422.0039978027344, - "y": 151.9999634027481, - "z": "2de7bdd3.0e47b2", + "x": 1450.010498046875, + "y": 138.01037883758545, + "z": "3425547d.b4704c", "wires": [] }, { - "id": "a969345.5e133c8", + "id": "69607a16.ab23b4", "type": "success", "name": "success", "xml": "<outcome value='success'>\n", "comments": "", "outputs": 1, - "x": 1152.0041370391846, - "y": 642.7778698205948, - "z": "2de7bdd3.0e47b2", + "x": 1180.0106372833252, + "y": 628.7882852554321, + "z": "3425547d.b4704c", "wires": [ [ - "d1ab386a.e79358" + "5509562b.e7bb48" ] ] }, { - "id": "50f962fe.84264c", + "id": "ff29c66f.d0c078", "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: Existing connection attachment allotted resource\" />\n \n", "comments": "", - "x": 1885.5225162506104, - "y": 643.8439413309097, - "z": "2de7bdd3.0e47b2", + "x": 1913.529016494751, + "y": 629.8543567657471, + "z": "3425547d.b4704c", "wires": [] }, { - "id": "a49d5ad5.f5a9d8", + "id": "988573f5.64b22", "type": "comment", "name": "Check for non existence of allotted resource", "info": "", "comments": "", - "x": 1008.0040588378906, - "y": 576.7779365777969, - "z": "2de7bdd3.0e47b2", + "x": 1036.0105590820312, + "y": 562.7883520126343, + "z": "3425547d.b4704c", "wires": [] }, { - "id": "d5f1890a.be37b8", + "id": "ae4a4ff0.de2", "type": "for", "name": "for cidx..service-data.consumed-allotted-resources.consumed-allotted-resource[]", "xml": "<for index='cidx' start='0' end='`$service-data.consumed-allotted-resources.consumed-allotted-resource_length`' >\n", "comments": "", "outputs": 1, - "x": 1528.6706047058105, - "y": 787.000048995018, - "z": "2de7bdd3.0e47b2", + "x": 1556.6771049499512, + "y": 773.0104644298553, + "z": "3425547d.b4704c", "wires": [ [ - "f2c143a3.1f8e7" + "79ba7554.7b000c" ] ] }, { - "id": "efb9af7d.38a8c", + "id": "52397993.71f7e8", "type": "switchNode", "name": "switch service-data.consumed-allotted-resources_length", "xml": "<switch test='`$service-data.consumed-allotted-resources.consumed-allotted-resource_length`'>\n", "comments": "", "outputs": 1, - "x": 710.6699295043945, - "y": 763.7140814065933, - "z": "2de7bdd3.0e47b2", + "x": 738.6764297485352, + "y": 749.7244968414307, + "z": "3425547d.b4704c", "wires": [ [ - "82a04eb.e5042b", - "c28a32d1.b979" + "ae3cba2c.22d388", + "70e9802d.1c53d" ] ] }, { - "id": "82a04eb.e5042b", + "id": "ae3cba2c.22d388", "type": "other", "name": "outcome Null", "xml": "<outcome value=''>\n", "comments": "", "outputs": 1, - "x": 1014.8128280639648, - "y": 732.5715185403824, - "z": "2de7bdd3.0e47b2", + "x": 1042.8193283081055, + "y": 718.5819339752197, + "z": "3425547d.b4704c", "wires": [ [ - "9ed3f44e.0ef248" + "b72b861c.815eb8" ] ] }, { - "id": "c28a32d1.b979", + "id": "70e9802d.1c53d", "type": "other", "name": "other", "xml": "<outcome value='Other'>\n", "comments": "", "outputs": 1, - "x": 991.8128776550293, - "y": 793.5714737176895, - "z": "2de7bdd3.0e47b2", + "x": 1019.8193778991699, + "y": 779.5818891525269, + "z": "3425547d.b4704c", "wires": [ [ - "7748cb78.c02984" + "11ff47a3.643388" ] ] }, { - "id": "7748cb78.c02984", + "id": "11ff47a3.643388", "type": "block", "name": "block : atomic", "xml": "<block atomic=\"true\">", "atomic": "true", "outputs": 1, - "x": 1151.9399681091309, - "y": 791.6974502801895, - "z": "2de7bdd3.0e47b2", + "x": 1179.9464683532715, + "y": 777.7078657150269, + "z": "3425547d.b4704c", "wires": [ [ - "d5f1890a.be37b8", - "6c68e940.a09698", - "9bbf5449.409148" + "ae4a4ff0.de2", + "73e79a71.cfae24", + "c9aa1cc3.3ec63" ] ] }, { - "id": "9ed3f44e.0ef248", + "id": "b72b861c.815eb8", "type": "set", "name": "set cidx", "xml": "<set>\n<parameter name='tmp.cidx' value=\"`0`\" />\n<parameter name='service-data.consumed-allotted-resources.consumed-allotted-resource_length' value=\"1\" />\n\n\n", "comments": "", - "x": 1164.6698112487793, - "y": 730.2855688333511, - "z": "2de7bdd3.0e47b2", + "x": 1192.67631149292, + "y": 716.2959842681885, + "z": "3425547d.b4704c", "wires": [] }, { - "id": "67a07981.adb6b8", + "id": "e6318980.74cd38", "type": "set", "name": "set consumed allotted resources", "xml": "<set>\n<parameter name='service-data.consumed-allotted-resources.consumed-allotted-resource[$tmp.cidx].allotted-resource-id' value=\"`$tmp.ar.allotted-resource-id` \" />\n<parameter name='service-data.consumed-allotted-resources.consumed-allotted-resource[$tmp.cidx].allotted-resource-type' value=\"`$connection-attachment-topology-operation-input.allotted-resource-information.allotted-resource-type` \" />\n<parameter name='service-data.consumed-allotted-resources.consumed-allotted-resource[$tmp.cidx].allotted-resource-pointer' value=\"`$tmp.ar.self-link` \" />\n<parameter name='service-data.consumed-allotted-resources.consumed-allotted-resource_length' value='`$tmp.cidx + 1`' />\n\n", "comments": "", - "x": 639.5272216796875, - "y": 867.2856460809708, - "z": "2de7bdd3.0e47b2", + "x": 667.5337219238281, + "y": 853.2960615158081, + "z": "3425547d.b4704c", "wires": [] }, { - "id": "6c68e940.a09698", + "id": "73e79a71.cfae24", "type": "switchNode", "name": "switch tmp.found-cidx", "xml": "<switch test='`$tmp.found-cidx`'>\n", "comments": "", "outputs": 1, - "x": 1341.0550155639648, - "y": 823.7089730501175, - "z": "2de7bdd3.0e47b2", + "x": 1369.0615158081055, + "y": 809.7193884849548, + "z": "3425547d.b4704c", "wires": [ [ - "e6bed7c6.008fc8" + "c00df3d6.a23ca" ] ] }, { - "id": "e6bed7c6.008fc8", + "id": "c00df3d6.a23ca", "type": "outcomeTrue", "name": "false", "xml": "<outcome value='false'>\n", "comments": "", "outputs": 1, - "x": 1531.0549697875977, - "y": 823.7089101076126, - "z": "2de7bdd3.0e47b2", + "x": 1559.0614700317383, + "y": 809.71932554245, + "z": "3425547d.b4704c", "wires": [ [ - "c94cbc62.004a2" + "210f1d5f.874d72" ] ] }, { - "id": "c94cbc62.004a2", + "id": "210f1d5f.874d72", "type": "block", "name": "block : atomic", "xml": "<block atomic=\"true\">", "atomic": "true", "outputs": 1, - "x": 1697.0549697875977, - "y": 823.7089101076126, - "z": "2de7bdd3.0e47b2", + "x": 1725.0614700317383, + "y": 809.71932554245, + "z": "3425547d.b4704c", "wires": [ [ - "f71f33c4.6780f" + "9f784ab7.a1a108" ] ] }, { - "id": "f2c143a3.1f8e7", + "id": "79ba7554.7b000c", "type": "switchNode", "name": "switch allotted-resource-id", "xml": "<switch test=\"`$service-data.consumed-allotted-resources.consumed-allotted-resource[$cidx].allotted-resource-id == $tmp.ar.allotted-resource-id`\">\n\n", "comments": "", "outputs": 1, - "x": 1945.7822341918945, - "y": 784.0000759363174, - "z": "2de7bdd3.0e47b2", + "x": 1973.7887344360352, + "y": 770.0104913711548, + "z": "3425547d.b4704c", "wires": [ [ - "22afa8c.31c5058" + "6f5753b3.9563cc" ] ] }, { - "id": "22afa8c.31c5058", + "id": "6f5753b3.9563cc", "type": "outcomeTrue", "name": "true", "xml": "<outcome value='true'>\n", "comments": "", "outputs": 1, - "x": 2127.591808319092, - "y": 784.4645229578018, - "z": "2de7bdd3.0e47b2", + "x": 2155.5983085632324, + "y": 770.4749383926392, + "z": "3425547d.b4704c", "wires": [ [ - "349f45ed.6a61aa" + "65ad78ab.417bb8" ] ] }, { - "id": "f71f33c4.6780f", + "id": "9f784ab7.a1a108", "type": "set", "name": "set tmp.cidx", "xml": "<set>\n<parameter name='tmp.cidx' value='`$service-data.consumed-allotted-resources.consumed-allotted-resource_length`' />\n", "comments": "", - "x": 1858.928352355957, - "y": 823.2206112146378, - "z": "2de7bdd3.0e47b2", + "x": 1886.9348526000977, + "y": 809.2310266494751, + "z": "3425547d.b4704c", "wires": [] }, { - "id": "8d32b4a4.1a9fd8", + "id": "829f78ea.771c88", "type": "comment", "name": "Add to consumed service consumed-allotted-resources in mdsal", "info": "Prepare data and add to service-data", "comments": "", - "x": 731.671142578125, - "y": 694.0000454187393, - "z": "2de7bdd3.0e47b2", + "x": 759.6776428222656, + "y": 680.0104608535767, + "z": "3425547d.b4704c", "wires": [] }, { - "id": "fc9006c6.395558", + "id": "8b9e14b0.ee2668", "type": "comment", "name": "This set resource will be added to MDSAL by provider code", "info": "Below we add to service-data.consumed-allotted-resource at last index", "comments": "", - "x": 719.0040588378906, - "y": 832.7781378030777, - "z": "2de7bdd3.0e47b2", + "x": 747.0105590820312, + "y": 818.788553237915, + "z": "3425547d.b4704c", "wires": [] }, { - "id": "d769ff10.bfeae", + "id": "13637009.f57bd", "type": "update", "name": "update AAI allotted-resource", "xml": "<update plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\t\tresource=\"allotted-resource\" \n\t\tkey=\"customer.global-customer-id = $connection-attachment-topology-operation-input.service-information.global-customer-id AND\n\t\t\tservice-subscription.service-type = $connection-attachment-topology-operation-input.service-information.subscription-service-type AND\n\t\t\tservice-instance.service-instance-id = $connection-attachment-topology-operation-input.allotted-resource-information.parent-service-instance-id AND\n\t\t\tallotted-resource.id = $tmp.ar.allotted-resource-id\"\n pfx='pfx' local-only='false' force='false'>\n <parameter name=\"id\" value=\"`$tmp.ar.allotted-resource-id`\" />\n\t<parameter name=\"name\" value=\"`$prop.connection-attachment.sotnVpnName`\" />\n\t<parameter name=\"access-provider-id\" value=\"`$prop.connection-attachment.access-provider-id`\" />\n\t<parameter name=\"access-client-id\" value=\"`$prop.connection-attachment.access-client-id`\" />\n\t<parameter name=\"access-topology-id\" value=\"`$prop.connection-attachment.access-topology-id`\" />\n\t<parameter name=\"access-node-id\" value=\"`$prop.connection-attachment.access-node-id`\" />\n\t<parameter name=\"access-ltp-id\" value=\"`$prop.connection-attachment.access-ltp-id`\" />\t\n\t<parameter name=\"cvlan\" value=\"`$prop.connection-attachment.cVLAN`\" />\n <parameter name=\"vpn-name\" value=\"`$prop.connection-attachment.sotnVpnName`\" />\n\t<parameter name=\"selflink\" value=\"`$tmp.ar.self-link`\" />\n\t<parameter name=\"model-invariant-id\" value=\"`$connection-attachment-topology-operation-input.allotted-resource-information.onap-model-information.model-invariant-uuid`\" />\n\t<parameter name=\"model-version-id\" value=\"`$connection-attachment-topology-operation-input.allotted-resource-information.onap-model-information.model-uuid`\" />\n\t<parameter name=\"operational-status\" value=\"Created\" />\n", "comments": "", "outputs": 1, - "x": 629.6947631835938, - "y": 1792.5319019556046, - "z": "2de7bdd3.0e47b2", + "x": 652.7012557983398, + "y": 1868.5423040390015, + "z": "3425547d.b4704c", "wires": [ [ - "e5663fd7.08761", - "b7403b0d.cfc148" + "2383f0f.fe77a1", + "1726f753.540739" ] ] }, { - "id": "e5663fd7.08761", + "id": "2383f0f.fe77a1", "type": "failure", "name": "failure", "xml": "<outcome value='failure'>\n", "comments": "", "outputs": 1, - "x": 824.4566993713379, - "y": 1783.4845033884048, - "z": "2de7bdd3.0e47b2", + "x": 847.463191986084, + "y": 1859.4949054718018, + "z": "3425547d.b4704c", "wires": [ [ - "345b8d51.157ff2" + "bfb0685f.193b68" ] ] }, { - "id": "345b8d51.157ff2", + "id": "bfb0685f.193b68", "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=\"AAI failed\" />\n", "comments": "", - "x": 990.9805793762207, - "y": 1795.1035743951797, - "z": "2de7bdd3.0e47b2", + "x": 1013.9870719909668, + "y": 1871.1139764785767, + "z": "3425547d.b4704c", "wires": [] }, { - "id": "b7403b0d.cfc148", + "id": "1726f753.540739", "type": "failure", "name": "not-found", "xml": "<outcome value='not-found'>\n", "comments": "", "outputs": 1, - "x": 831.5519866943359, - "y": 1816.2464710474014, - "z": "2de7bdd3.0e47b2", + "x": 854.558479309082, + "y": 1892.2568731307983, + "z": "3425547d.b4704c", "wires": [ [ - "345b8d51.157ff2" + "bfb0685f.193b68" ] ] }, { - "id": "ff8e9cff.e34a3", + "id": "da5dd301.64278", "type": "comment", "name": "Save Resource to AAI", "info": "", "comments": "", - "x": 605.50439453125, - "y": 1754.8338733911514, - "z": "2de7bdd3.0e47b2", + "x": 628.5108871459961, + "y": 1830.8442754745483, + "z": "3425547d.b4704c", "wires": [] }, { - "id": "5f517bd0.1d2334", + "id": "d50db86.5001548", "type": "comment", "name": "Set allotted resource type if not sent by SO", "info": "", "comments": "", - "x": 665.00390625, - "y": 233.99999868869781, - "z": "2de7bdd3.0e47b2", + "x": 693.0104064941406, + "y": 220.01041412353516, + "z": "3425547d.b4704c", "wires": [] }, { - "id": "3e0bbdc4.8ce3d2", + "id": "e93d7aa8.8afc58", "type": "switchNode", "name": "switch allotted-resource-type", "xml": "<switch test='`$connection-attachment-topology-operation-input.allotted-resource-information.allotted-resource-type`'>\n", "comments": "", "outputs": 1, - "x": 626.9272155761719, - "y": 274.5660549402237, - "z": "2de7bdd3.0e47b2", + "x": 654.9337158203125, + "y": 260.57647037506104, + "z": "3425547d.b4704c", "wires": [ [ - "ff0b47c3.5cf7f8", - "8dd15a77.fb7568" + "f6469c6d.d6d7c", + "6b6259b5.f45218" ] ] }, { - "id": "ff0b47c3.5cf7f8", + "id": "f6469c6d.d6d7c", "type": "outcome", "name": "NULL", "xml": "<outcome value=''>", "comments": "", "outputs": 1, - "x": 829.9273681640625, - "y": 259.56605780124664, - "z": "2de7bdd3.0e47b2", + "x": 857.9338684082031, + "y": 245.57647323608398, + "z": "3425547d.b4704c", "wires": [ [ - "aae71526.aed0c8" + "9e957e4b.c63b4" ] ] }, { - "id": "8dd15a77.fb7568", + "id": "6b6259b5.f45218", "type": "other", "name": "other", "xml": "<outcome value='Other'>\n", "comments": "", "outputs": 1, - "x": 822.9271965026855, - "y": 299.5660778284073, - "z": "2de7bdd3.0e47b2", + "x": 850.9336967468262, + "y": 285.57649326324463, + "z": "3425547d.b4704c", "wires": [ [ - "c7c46784.6950a8" + "6a7aae3b.c248e" ] ] }, { - "id": "c7c46784.6950a8", + "id": "6a7aae3b.c248e", "type": "set", "name": "set tmp.ar.allotted-resource-type", "xml": "<set>\n<parameter name='tmp.ar.allotted-resource-type' value='`$connection-attachment-topology-operation-input.allotted-resource-information.allotted-resource-type`' />\n", "comments": "", - "x": 1054.9271812438965, - "y": 299.56608259677887, - "z": "2de7bdd3.0e47b2", + "x": 1082.933681488037, + "y": 285.5764980316162, + "z": "3425547d.b4704c", "wires": [] }, { - "id": "e793c2ca.7f688", + "id": "9d9d583f.dbc9c8", "type": "comment", "name": "For storage in AAI connection-attachment-topology", "info": "", "comments": "", - "x": 690.0038681030273, - "y": 368.9999986886978, - "z": "2de7bdd3.0e47b2", + "x": 718.010368347168, + "y": 355.01041412353516, + "z": "3425547d.b4704c", "wires": [] }, { - "id": "a57110f9.dcd37", + "id": "2787339d.0e091c", "type": "comment", "name": "Obtain different URL, template location etc", "info": "For saving resource information to MDSAL & for AAI", "comments": "", - "x": 665.0038528442383, - "y": 450.8889080286026, - "z": "2de7bdd3.0e47b2", + "x": 693.0103530883789, + "y": 436.89932346343994, + "z": "3425547d.b4704c", "wires": [] }, { - "id": "9489b4d2.52d1b8", + "id": "da385e9d.31c6e", "type": "comment", "name": "Used for Put AR by id to MDSAL", "info": "", "comments": "", - "x": 631.0039367675781, - "y": 539.8889251947403, - "z": "2de7bdd3.0e47b2", + "x": 659.0104370117188, + "y": 525.8993406295776, + "z": "3425547d.b4704c", "wires": [] }, { - "id": "454699aa.1f7a38", + "id": "fb746d4c.98d2e", "type": "comment", "name": "Obtain the last index in services", "info": "ServiceData is added by Provider code", "comments": "", - "x": 632.4483795166016, - "y": 725.88886988163, - "z": "2de7bdd3.0e47b2", + "x": 660.4548797607422, + "y": 711.8992853164673, + "z": "3425547d.b4704c", "wires": [] }, { - "id": "54b45ac5.3b96f4", + "id": "c3e71ac5.708158", "type": "set", "name": "set output to api handler", "xml": "<set>\n<parameter name='allotted-resource-id' value='`$tmp.ar.allotted-resource-id`' />\n<parameter name='connection-attachment-object-path' value=\"`$tmp.ar.self-link`\"/>\n<parameter name='service-object-path' value=\"`'restconf/config/GENERIC-RESOURCE-API:services/service/'\n + $connection-attachment-topology-operation-input.service-information.service-instance-id\n + '/service-data/service-topology/'`\"/>\n \n", "comments": "", - "x": 615.2720489501953, - "y": 1699.3592010736465, - "z": "2de7bdd3.0e47b2", + "x": 638.2785415649414, + "y": 1775.3696031570435, + "z": "3425547d.b4704c", "wires": [] }, { - "id": "6f9dfa46.6d74e4", + "id": "8031bd9b.aa492", "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": 583.6851272583008, - "y": 1840.9749876260757, - "z": "2de7bdd3.0e47b2", + "x": 606.6916198730469, + "y": 1916.9853897094727, + "z": "3425547d.b4704c", "wires": [] }, { - "id": "aae71526.aed0c8", + "id": "9e957e4b.c63b4", "type": "set", "name": "set tmp.ar.allotted-resource-type", "xml": "<set>\n<parameter name='tmp.ar.allotted-resource-type' value=\"SOTNAttachmentInstance\" />\n", "comments": "", - "x": 1069.0040550231934, - "y": 259.99998438358307, - "z": "2de7bdd3.0e47b2", + "x": 1097.010555267334, + "y": 246.0103998184204, + "z": "3425547d.b4704c", "wires": [] }, { - "id": "d0d20150.466f4", + "id": "31ce0f6c.4be64", "type": "call", "name": "call GENERIC-RESOURCE-API:sotn-get-saved-ar-param", "xml": "<call module='GENERIC-RESOURCE-API' rpc='sotn-get-saved-ar-param' mode='sync' >\n", "comments": "", "outputs": 1, - "x": 716.9980697631836, - "y": 1559.4938122034073, - "z": "2de7bdd3.0e47b2", + "x": 940.0045623779297, + "y": 1624.5041437149048, + "z": "3425547d.b4704c", "wires": [ [] ] }, { - "id": "d25d451e.0f6438", + "id": "aee1a7c1.04af88", "type": "execute", "name": "execute RestApiCallNode - PUT AR by id", "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n <parameter name='templateFileName' value=\"`$prop.restapi.templateDir + '/' + $prop.restapi.sotn-attachment.templatefile`\" />\n <parameter name='restapiUrl' value='`$prop.controller.url + $tmp.ar-url`' />\n <parameter name='restapiUser' value='`$prop.controller.user`' />\n <parameter name='restapiPassword' value='`$prop.controller.pwd`' />\n <parameter name='format' value='json' />\n <parameter name='httpMethod' value='PUT' />\n <parameter name=\"responsePrefix\" value=\"mdsal-ar\" />\n\n", "comments": "", "outputs": 1, - "x": 666.0041809082031, - "y": 1633.0001302957535, - "z": "2de7bdd3.0e47b2", + "x": 689.0106735229492, + "y": 1709.0105323791504, + "z": "3425547d.b4704c", "wires": [ [ - "a217bcb.4b0424", - "c7307e94.33922", - "88ae5959.9952c8" + "8776bfe5.59d94", + "d7639202.15d54", + "3089b749.6674a8" ] ] }, { - "id": "a217bcb.4b0424", + "id": "8776bfe5.59d94", "type": "not-found", "name": "not-found", "xml": "<outcome value='not-found'>\n", "comments": "", "outputs": 1, - "x": 915.6455345153809, - "y": 1671.331460595131, - "z": "2de7bdd3.0e47b2", + "x": 938.652027130127, + "y": 1747.3418626785278, + "z": "3425547d.b4704c", "wires": [ [ - "45489cfb.5ec6b4" + "7514cc17.dfede4" ] ] }, { - "id": "c7307e94.33922", + "id": "d7639202.15d54", "type": "failure", "name": "failure", "xml": "<outcome value='failure'>\n", "comments": "", "outputs": 1, - "x": 906.6455841064453, - "y": 1639.8314863443375, - "z": "2de7bdd3.0e47b2", + "x": 929.6520767211914, + "y": 1715.8418884277344, + "z": "3425547d.b4704c", "wires": [ [ - "45489cfb.5ec6b4" + "7514cc17.dfede4" ] ] }, { - "id": "88ae5959.9952c8", + "id": "3089b749.6674a8", "type": "success", "name": "success", "xml": "<outcome value='success'>\n", "comments": "", "outputs": 1, - "x": 910.395622253418, - "y": 1610.1885912194848, - "z": "2de7bdd3.0e47b2", + "x": 933.4021148681641, + "y": 1686.1989933028817, + "z": "3425547d.b4704c", "wires": [ [ - "b883302d.2867d" + "e2b27745.660088" ] ] }, { - "id": "45489cfb.5ec6b4", + "id": "7514cc17.dfede4", "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 updating md-sal for connection-attachment-allotted-resource\" />\n", "comments": "", - "x": 1076.395622253418, - "y": 1640.5815101861954, - "z": "2de7bdd3.0e47b2", + "x": 1099.402114868164, + "y": 1716.5919122695923, + "z": "3425547d.b4704c", "wires": [] }, { - "id": "b883302d.2867d", + "id": "e2b27745.660088", "type": "block", "name": "block", "xml": "<block>\n", "atomic": "false", "comments": "", "outputs": 1, - "x": 1052.0515899658203, - "y": 1606.380760408938, - "z": "2de7bdd3.0e47b2", + "x": 1075.0580825805664, + "y": 1682.3911624923348, + "z": "3425547d.b4704c", "wires": [ [] ] }, { - "id": "1db7126.81503ee", + "id": "8e35b842.c7d4f8", "type": "execute", "name": "execute RestApiCallNode - Update parent provided service AR", "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n <parameter name='templateFileName' value=\"`$prop.restapi.templateDir + '/' + $prop.restapi.parentsvc.templatefile`\" />\n <parameter name='restapiUrl' value='`$prop.controller.url + $tmp.parent-ar-url`' />\n <parameter name='restapiUser' value='`$prop.controller.user`' />\n <parameter name='restapiPassword' value='`$prop.controller.pwd`' />\n <parameter name='format' value='json' />\n <parameter name='httpMethod' value='PUT' />\n <parameter name=\"responsePrefix\" value=\"parent\" />\n\n", "comments": "", "outputs": 1, - "x": 731.0038604736328, - "y": 1149.0001636743546, - "z": "2de7bdd3.0e47b2", + "x": 759.0103607177734, + "y": 1135.010579109192, + "z": "3425547d.b4704c", "wires": [ [ - "8baa1385.678c1", - "f79c7ce6.35926", - "8ab7afc7.379db" + "4a784746.dec008", + "c64e1e39.2251", + "be9dd1f.2b8ae3" ] ] }, { - "id": "8baa1385.678c1", + "id": "4a784746.dec008", "type": "not-found", "name": "not-found", "xml": "<outcome value='not-found'>\n", "comments": "", "outputs": 1, - "x": 1039.3119201660156, - "y": 1180.9984394311905, - "z": "2de7bdd3.0e47b2", + "x": 1067.3184204101562, + "y": 1167.0088548660278, + "z": "3425547d.b4704c", "wires": [ [ - "1986b301.84772d" + "fa176469.0fc3f8" ] ] }, { - "id": "f79c7ce6.35926", + "id": "c64e1e39.2251", "type": "failure", "name": "failure", "xml": "<outcome value='failure'>\n", "comments": "", "outputs": 1, - "x": 1030.31196975708, - "y": 1149.498465180397, - "z": "2de7bdd3.0e47b2", + "x": 1058.3184700012207, + "y": 1135.5088806152344, + "z": "3425547d.b4704c", "wires": [ [ - "1986b301.84772d" + "fa176469.0fc3f8" ] ] }, { - "id": "8ab7afc7.379db", + "id": "be9dd1f.2b8ae3", "type": "success", "name": "success", "xml": "<outcome value='success'>\n", "comments": "", "outputs": 1, - "x": 1034.0620079040527, - "y": 1119.8555700555444, - "z": "2de7bdd3.0e47b2", + "x": 1062.0685081481934, + "y": 1105.8659854903817, + "z": "3425547d.b4704c", "wires": [ [ - "c35b2d72.8a40a" + "a7887873.602db8" ] ] }, { - "id": "1986b301.84772d", + "id": "fa176469.0fc3f8", "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 updating md-sal for connection-attachment-allotted-resource\" />\n", "comments": "", - "x": 1200.0620079040527, - "y": 1150.248489022255, - "z": "2de7bdd3.0e47b2", + "x": 1228.0685081481934, + "y": 1136.2589044570923, + "z": "3425547d.b4704c", "wires": [] }, { - "id": "c35b2d72.8a40a", + "id": "a7887873.602db8", "type": "block", "name": "block", "xml": "<block>\n", "atomic": "false", "comments": "", "outputs": 1, - "x": 1175.717975616455, - "y": 1116.0477392449975, - "z": "2de7bdd3.0e47b2", + "x": 1203.7244758605957, + "y": 1102.0581546798348, + "z": "3425547d.b4704c", "wires": [ [] ] }, { - "id": "373cdeec.8a9792", + "id": "21d4e2e4.5ed5fe", "type": "comment", "name": "Put the parent allotted resource in mdsal", "info": "", "comments": "", - "x": 660.0038070678711, - "y": 1111.0000702142715, - "z": "2de7bdd3.0e47b2", + "x": 688.0103073120117, + "y": 1097.010485649109, + "z": "3425547d.b4704c", "wires": [] }, { - "id": "b18196af.f3d2c8", + "id": "373e7d85.f8d5f2", "type": "set", "name": "set connection-attachment-ar-identifiers", "xml": "<set>\n<parameter name='connection-attachment-ar-identifiers.consuming-service-instance-id' value=\"`$connection-attachment-topology-operation-input.service-information.service-instance-id` \" />\n<parameter name='connection-attachment-ar-identifiers.parent-service-instance-id' value=\"`$connection-attachment-topology-operation-input.allotted-resource-information.parent-service-instance-id` \" />\n<parameter name='connection-attachment-ar-identifiers.allotted-resource-type' value=\"`$connection-attachment-topology-operation-input.allotted-resource-information.allotted-resource-type` \" />\n<parameter name='connection-attachment-ar-identifiers.allotted-resource-id' value=\"`$tmp.ar.allotted-resource-id` \" />\n\n", "comments": "", - "x": 656.3609924316406, - "y": 1313.571689248085, - "z": "2de7bdd3.0e47b2", + "x": 684.3674926757812, + "y": 1299.5821046829224, + "z": "3425547d.b4704c", "wires": [] }, { - "id": "279f61dd.0cdaee", + "id": "88bfb367.64d03", "type": "set", "name": "set ar-data", "xml": "<set>\n<parameter name='connection-attachment-ar.allotted-resource-id' value=\"`$tmp.ar.allotted-resource-id` \" />\n<parameter name='connection-attachment-ar.allotted-resource-status.action' value=\"`$connection-attachment-topology-operation-input.request-information.request-action` \" />\n<parameter name='connection-attachment-ar.allotted-resource-status.rpc-name' value=\"connection-attachment-topology-operation\" />\n<parameter name='connection-attachment-ar.allotted-resource-status.rpc-action' value=\"`$connection-attachment-topology-operation-input.sdnc-request-header.svc-action` \" />\n<parameter name='connection-attachment-ar.allotted-resource-data.allotted-resource-operation-information.request-information.' value=\"`$connection-attachment-topology-operation-input.request-information.` \" />\n<parameter name='connection-attachment-ar.allotted-resource-data.allotted-resource-operation-information.sdnc-request-header.' value=\"`$connection-attachment-topology-operation-input.sdnc-request-header.` \" />\n<parameter name='connection-attachment-ar.allotted-resource-data.allotted-resource-operation-information.service-information.' value=\"`$connection-attachment-topology-operation-input.service-information.` \" />\n<parameter name='connection-attachment-ar.allotted-resource-data.allotted-resource-operation-information.allotted-resource-information.' value=\"`$connection-attachment-topology-operation-input.allotted-resource-information.` \" />\n<parameter name='connection-attachment-ar.allotted-resource-data.allotted-resource-operation-information.connection-attachment-request-input.' value=\"`$connection-attachment-topology-operation-input.connection-attachment-request-input.` \" />", "comments": "", - "x": 570.2177734375, - "y": 1281.3810459375381, - "z": "2de7bdd3.0e47b2", + "x": 598.2242736816406, + "y": 1267.3914613723755, + "z": "3425547d.b4704c", "wires": [] }, { - "id": "d586facb.6928c8", + "id": "ab686f72.f6d24", "type": "set", "name": "set identifiers in overall structure", "xml": "<set>\n<parameter name='connection-attachment-ar.allotted-resource-data.connection-attachment-topology.allotted-resource-identifiers.' \nvalue=\"`$connection-attachment-ar-identifiers.`\" />\n\n\n", "comments": "", - "x": 635.1707916259766, - "y": 1347.6668745279312, - "z": "2de7bdd3.0e47b2", + "x": 663.1772918701172, + "y": 1333.6772899627686, + "z": "3425547d.b4704c", "wires": [] }, { - "id": "83c4b03a.da76", + "id": "6568c68e.998458", "type": "execute", "name": "execute getTime", "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='setTime' >\n <parameter name=\"outputPath\" value=\"tmp.current-time\" />\n\n", "comments": "", "outputs": 1, - "x": 587.5036315917969, - "y": 1421.0004020929337, - "z": "2de7bdd3.0e47b2", + "x": 615.5101318359375, + "y": 1407.010817527771, + "z": "3425547d.b4704c", "wires": [ [] ] }, { - "id": "aeb52a03.a21508", + "id": "42759b0d.8bfff4", "type": "set", "name": "set allotted-resource-oper-status", "xml": "<set>\n<parameter name='connection-attachment-ar.allotted-resource-data.allotted-resource-oper-status.order-status' value='Created' />\n<parameter name='connection-attachment-ar.allotted-resource-data.allotted-resource-oper-status.last-action' value='`$connection-attachment-topology-operation-input.request-information.request-action`' />\n<parameter name='connection-attachment-ar.allotted-resource-data.allotted-resource-oper-status.last-rpc-action' value='`$connection-attachment-topology-operation-input.sdnc-request-header.svc-action`' />\n<parameter name='connection-attachment-ar.allotted-resource-data.allotted-resource-oper-status.last-svc-request-id' value='`$connection-attachment-topology-operation-input.sdnc-request-header.svc-request-id`' />\n<parameter name='connection-attachment-ar.allotted-resource-data.allotted-resource-oper-status.create-timestamp' value='`$tmp.current-time`' />\n", "comments": "", - "x": 638.4906692504883, - "y": 1476.95163500309, - "z": "2de7bdd3.0e47b2", + "x": 666.4971694946289, + "y": 1462.9620504379272, + "z": "3425547d.b4704c", "wires": [] }, { - "id": "3704681e.a28308", + "id": "7bc569ba.c7c2a8", "type": "set", "name": "set model-data", "xml": "<set>\n<parameter name='connection-attachment-ar.allotted-resource-data.connection-attachment-topology.onap-model-information.' value=\"`$connection-attachment-topology-operation-input.allotted-resource-information.onap-model-information.` \" />", "comments": "", - "x": 583.0592880249023, - "y": 1382.555760025978, - "z": "2de7bdd3.0e47b2", + "x": 611.065788269043, + "y": 1368.5661754608154, + "z": "3425547d.b4704c", "wires": [] }, { - "id": "9f0192ed.a3fed", + "id": "5eda0baa.a6ac24", "type": "comment", "name": "Prepare data for allotted-resource addition to MDSAL", "info": "This will add to allotted-resource which is present inside service.", "comments": "", - "x": 700.3927764892578, - "y": 1247.5556064844131, - "z": "2de7bdd3.0e47b2", + "x": 728.3992767333984, + "y": 1233.5660219192505, + "z": "3425547d.b4704c", "wires": [] }, { - "id": "9c36769e.3b9b78", + "id": "302473e7.2159bc", "type": "execute", "name": "generate parent-ar url - replace allotted-resource-id", "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$tmp.parent-ar-url`\"/>\n <parameter name=\"outputPath\" value=\"tmp.parent-ar-url\"/>\n <parameter name=\"target\" value=\"{allotted-resource-id}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.ar.allotted-resource-id`\"/>\n", "comments": "", "outputs": 1, - "x": 695.5039215087891, - "y": 1075.0000091791153, - "z": "2de7bdd3.0e47b2", + "x": 723.5104217529297, + "y": 1061.0104246139526, + "z": "3425547d.b4704c", "wires": [ [] ] }, { - "id": "482be69b.e1e678", + "id": "99015db4.34427", "type": "execute", "name": "generate parent-ar url - replace service-instance-id", "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$prop.restapi.parent-provided-resource`\"/>\n <parameter name=\"outputPath\" value=\"tmp.parent-ar-url\"/>\n <parameter name=\"target\" value=\"{service-instance-id}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.ar.parent-service-instance-id`\"/>\n", "comments": "", "outputs": 1, - "x": 691.5038452148438, - "y": 1032.0001455545425, - "z": "2de7bdd3.0e47b2", + "x": 719.5103454589844, + "y": 1018.0105609893799, + "z": "3425547d.b4704c", "wires": [ [] ] }, { - "id": "db2548a3.2d9d88", + "id": "ac4fa77d.cd6878", "type": "comment", "name": "Prepare Parent AR URL", "info": "Preparation to set provided-allotted-resource in parent service instance", "comments": "", - "x": 609.5043029785156, - "y": 961.000098824501, - "z": "2de7bdd3.0e47b2", + "x": 637.5108032226562, + "y": 947.0105142593384, + "z": "3425547d.b4704c", "wires": [] }, { - "id": "238da366.150bec", + "id": "461a26ad.352d08", "type": "set", "name": "set tmp.ar.parent-service-instance-id", "xml": "<set>\n<parameter name='tmp.ar.parent-service-instance-id' value=\"`$connection-attachment-topology-operation-input.allotted-resource-information.parent-service-instance-id` \" />\n\n", "comments": "", - "x": 648.5040969848633, - "y": 994.500038266182, - "z": "2de7bdd3.0e47b2", + "x": 676.5105972290039, + "y": 980.5104537010193, + "z": "3425547d.b4704c", "wires": [] }, { - "id": "62fbf7be.c1d928", + "id": "fc5e8c6b.8fefa", "type": "comment", "name": "Required for filling template values", "info": "This is done because connection-attachment is generic resource and doesn't have specific parameters", "comments": "", - "x": 643.0042724609375, - "y": 1522.4998852014542, - "z": "2de7bdd3.0e47b2", + "x": 866.0107650756836, + "y": 1587.5102167129517, + "z": "3425547d.b4704c", "wires": [] }, { - "id": "349f45ed.6a61aa", + "id": "65ad78ab.417bb8", "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 updating md-sal for connection-attachment-allotted-resource as cosumed allotted resource already exists.\" />\n", "comments": "", - "x": 2205.7608795166016, - "y": 832.6458278894424, - "z": "2de7bdd3.0e47b2", + "x": 2233.767379760742, + "y": 818.6562433242798, + "z": "3425547d.b4704c", "wires": [] }, { - "id": "9bbf5449.409148", + "id": "c9aa1cc3.3ec63", "type": "set", "name": "set tmp.found-cidx", "xml": "<set>\n<parameter name='tmp.found-cidx' value=\"`false`\" />\n\n\n", "comments": "", - "x": 1331.6500511169434, - "y": 744.3125709295273, - "z": "2de7bdd3.0e47b2", + "x": 1359.656551361084, + "y": 730.3229863643646, + "z": "3425547d.b4704c", "wires": [] }, { - "id": "de27f2ed.26659", + "id": "ff67ccb2.50d8", "type": "comment", "name": "Add to parent services provided-allotted-resources in mdsal", "info": "", "comments": "", - "x": 720.2054138183594, - "y": 928.9792553186417, - "z": "2de7bdd3.0e47b2", + "x": 748.2119140625, + "y": 914.989670753479, + "z": "3425547d.b4704c", "wires": [] }, { - "id": "a649f8c3.5ee428", + "id": "a5a8871f.3c0658", "type": "comment", "name": "Add to allotted-resources in mdsal", "info": "", "comments": "", - "x": 640.9726028442383, - "y": 1214.9689356088638, - "z": "2de7bdd3.0e47b2", + "x": 668.9791030883789, + "y": 1200.9793510437012, + "z": "3425547d.b4704c", "wires": [] }, { - "id": "d1ab386a.e79358", + "id": "5509562b.e7bb48", "type": "block", "name": "block: atomic", "xml": "<block atomic=\"true\">\n", "atomic": "false", "comments": "", "outputs": 1, - "x": 1314.003957748413, - "y": 642.2777591943741, - "z": "2de7bdd3.0e47b2", + "x": 1342.0104579925537, + "y": 628.2881746292114, + "z": "3425547d.b4704c", "wires": [ [ - "4f0a5d33.427474" + "f6f2507e.ba037" ] ] }, { - "id": "4f0a5d33.427474", + "id": "f6f2507e.ba037", "type": "switchNode", "name": "switch cr length", "xml": "<switch test='`$mdsal-ar.connection-attachment-allotted-resource_length`'>\n", "comments": "", "outputs": 1, - "x": 1501.8613376617432, - "y": 642.8968945741653, - "z": "2de7bdd3.0e47b2", + "x": 1529.8678379058838, + "y": 628.9073100090027, + "z": "3425547d.b4704c", "wires": [ [ - "d605048c.9bb9e8" + "7ebe7287.439dec" ] ] }, { - "id": "d605048c.9bb9e8", + "id": "7ebe7287.439dec", "type": "other", "name": "outcome 1", "xml": "<outcome value='1'>\n", "comments": "", "outputs": 1, - "x": 1701.1944599151611, - "y": 642.8969732522964, - "z": "2de7bdd3.0e47b2", + "x": 1729.2009601593018, + "y": 628.9073886871338, + "z": "3425547d.b4704c", "wires": [ [ - "50f962fe.84264c" + "ff29c66f.d0c078" ] ] }, { - "id": "5a5883b8.a68a6c", + "id": "b0b78151.f3bd1", "type": "execute", "name": "execute RestApiCallNode - get-resource connection-attachment-allotted-resource", "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n <parameter name='restapiUrl' value='`$prop.controller.url + $tmp.ar-url`' />\n <parameter name='restapiUser' value='`$prop.controller.user`' />\n <parameter name='restapiPassword' value='`$prop.controller.pwd`' />\n <parameter name='format' value='json' />\n <parameter name='httpMethod' value='GET' />\n <parameter name=\"responsePrefix\" value=\"mdsal-ar\" />\n\n", "comments": "", "outputs": 1, - "x": 786.0039596557617, - "y": 637.0000349283218, - "z": "2de7bdd3.0e47b2", + "x": 814.0104598999023, + "y": 623.0104503631592, + "z": "3425547d.b4704c", "wires": [ [ - "a969345.5e133c8", - "ca5d3b75.7711f8" + "69607a16.ab23b4", + "4afffe17.752bc" ] ] }, { - "id": "ca5d3b75.7711f8", + "id": "4afffe17.752bc", "type": "failure", "name": "failure", "xml": "<outcome value='failure'>\n", "comments": "", "outputs": 1, - "x": 1154.0039901733398, - "y": 607.0000330209732, - "z": "2de7bdd3.0e47b2", + "x": 1182.0104904174805, + "y": 593.0104484558105, + "z": "3425547d.b4704c", "wires": [ [ - "9eb0da65.d80ea8" + "5d7e4f7b.5aaa4" ] ] }, { - "id": "9eb0da65.d80ea8", + "id": "5d7e4f7b.5aaa4", "type": "block", "name": "block", "xml": "<block>\n", "atomic": "false", "comments": "", "outputs": 1, - "x": 1306.0039901733398, - "y": 606.0000330209732, - "z": "2de7bdd3.0e47b2", + "x": 1334.0104904174805, + "y": 592.0104484558105, + "z": "3425547d.b4704c", "wires": [ [] ] + }, + { + "id": "acf4df38.359e8", + "type": "block", + "name": "block : atomic", + "xml": "<block atomic=\"true\">", + "atomic": "true", + "outputs": 1, + "x": 610.5660171508789, + "y": 1542.6770677566528, + "z": "3425547d.b4704c", + "wires": [ + [ + "e883ed0e.70e5", + "31ce0f6c.4be64" + ] + ] + }, + { + "id": "e883ed0e.70e5", + "type": "for", + "name": "for each sotn-get-request-input-param", + "xml": "<for index='i' start='0' end='`$connection-attachment-ar.allotted-resource-data.allotted-resource-operation-information.connection-attachment-request-input.param_length`' >\n", + "comments": "", + "outputs": 1, + "x": 880.5660820007324, + "y": 1542.6771154403687, + "z": "3425547d.b4704c", + "wires": [ + [ + "c8bff3cc.09d2c" + ] + ] + }, + { + "id": "8e066326.71f27", + "type": "comment", + "name": "Take the parameter names by removing prefix", + "info": "", + "comments": "", + "x": 1420.5658645629883, + "y": 1498.6771488189697, + "z": "3425547d.b4704c", + "wires": [] + }, + { + "id": "a6906228.fcd97", + "type": "execute", + "name": "execute split parameterName", + "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='split' >\n<parameter name=\"original_string\" value='`$connection-attachment-ar.allotted-resource-data.allotted-resource-operation-information.connection-attachment-request-input.param[$i].name`'/>\n<parameter name=\"regex\" value=\"_\"/>\n<parameter name=\"ctx_memory_result_key\" value=\"param-prefix\"/>\n", + "comments": "", + "outputs": 1, + "x": 1378.6005325317383, + "y": 1533.65629196167, + "z": "3425547d.b4704c", + "wires": [ + [] + ] + }, + { + "id": "d3547289.18d19", + "type": "set", + "name": "set parameterName", + "xml": "<set>\n<parameter name=\"`connection-attachment-ar.allotted-resource-data.allotted-resource-operation-information.connection-attachment-request-input.param[$idx].name`\" value='`$param-prefix[$param-prefix_length -1]`'/>\n", + "comments": "", + "x": 1349.0450592041016, + "y": 1566.65629196167, + "z": "3425547d.b4704c", + "wires": [] + }, + { + "id": "80d52421.de6378", + "type": "comment", + "name": "Remove VNFC prefix", + "info": "", + "comments": "", + "x": 821.5660095214844, + "y": 1510.1214294433594, + "z": "3425547d.b4704c", + "wires": [] + }, + { + "id": "c8bff3cc.09d2c", + "type": "block", + "name": "block : atomic", + "xml": "<block atomic=\"true\">", + "atomic": "true", + "outputs": 1, + "x": 1127.56591796875, + "y": 1541.1214599609375, + "z": "3425547d.b4704c", + "wires": [ + [ + "a6906228.fcd97", + "d3547289.18d19" + ] + ] } -]
\ No newline at end of file +] |