diff options
author | 2018-08-09 14:08:39 +0530 | |
---|---|---|
committer | 2018-08-09 16:30:50 +0000 | |
commit | 74c1c3507bbd3194c7bb57e45ffd08428dd280c2 (patch) | |
tree | 0b4cbec0998c59a80d5fc79a436b28da99dc5bf5 /platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_sotn-attachment-topology-operation-create.json | |
parent | bdf9859eb3df68fea82e938b9ed7584b4787657d (diff) |
connectivity attachment issue fix
Test issues fixed
Change-Id: I991876c6176c5fa05682e635b9c1e29eb5b08d54
Issue-ID: SDNC-356
Signed-off-by: shashikanth.vh <shashikanth.vh@huawei.com>
Former-commit-id: e89a860588e3a094d5cc251dd6992373c2f36ab7
Diffstat (limited to 'platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_sotn-attachment-topology-operation-create.json')
-rw-r--r-- | platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_sotn-attachment-topology-operation-create.json | 1071 |
1 files changed, 499 insertions, 572 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 82c27741..441ff93d 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": "9d8f9fa5.439ad", + "id": "e1802764.010338", "type": "dgstart", "name": "DGSTART", "outputs": 1, - "x": 134.00390625, - "y": 59.999999046325684, - "z": "27f64d8c.2cf692", + "x": 75.00390625, + "y": 55.999998688697815, + "z": "2de7bdd3.0e47b2", "wires": [ [ - "999b7749.bb2828" + "cfe32243.1a54" ] ] }, { - "id": "999b7749.bb2828", + "id": "cfe32243.1a54", "type": "service-logic", "name": "GENERIC-RESOURCE-API ${project.version}", "module": "GENERIC-RESOURCE-API", @@ -22,1260 +22,1187 @@ "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": 346.00391006469727, - "y": 132.00001621246338, - "z": "27f64d8c.2cf692", + "x": 287.00391006469727, + "y": 128.0000158548355, + "z": "2de7bdd3.0e47b2", "wires": [ [ - "a889b861.30b858" + "f32ba3f6.6902c" ] ] }, { - "id": "a889b861.30b858", + "id": "f32ba3f6.6902c", "type": "method", "name": "sotn-attachment-topology-operation-create", "xml": "<method rpc='sotn-attachment-topology-operation-create' mode='sync'>\n", "comments": "", "outputs": 1, - "x": 334.0040283203125, - "y": 219.99999904632568, - "z": "27f64d8c.2cf692", + "x": 275.0040283203125, + "y": 215.99999868869781, + "z": "2de7bdd3.0e47b2", "wires": [ [ - "a434e8ee.221048" + "7c54b5b2.a3083c" ] ] }, { - "id": "a434e8ee.221048", + "id": "7c54b5b2.a3083c", "type": "block", "name": "block : atomic", "xml": "<block atomic=\"true\">\n", "atomic": "false", "comments": "", "outputs": 1, - "x": 254.00395965576172, - "y": 969.000247001648, - "z": "27f64d8c.2cf692", + "x": 195.00395965576172, + "y": 965.0002466440201, + "z": "2de7bdd3.0e47b2", "wires": [ [ - "c342578d.28b708", - "efa6ad20.d82ee", - "269c43d6.56387c", - "3e97601e.a0c21", - "a1d6ff56.9c99d", - "1cbd957b.be039b", - "52744f96.8455f", - "361e33ee.17369c", - "8340ac1e.8db72", - "d5a721b9.32552", - "908d0f20.3dc3f", - "e6716760.631bc8", - "8217a995.1a4f18", - "272d789b.464298", - "de9004ee.8e65a8", - "61510de6.6b5a64", - "a9832c0c.edf5c", - "bdd1fffd.ca081", - "fc645855.78a1f8", - "e28f7f9f.51996", - "4298e590.a1603c", - "b58ada11.db1438", - "d0bb4427.716f08" + "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" ] ] }, { - "id": "aad4b525.c81b28", + "id": "d194eb73.9913d8", "type": "comment", "name": "Set allotted resource id if not sent by SO", "info": "", "comments": "", - "x": 725.0805969238281, - "y": 144.43391513824463, - "z": "27f64d8c.2cf692", - "wires": [ - - ] + "x": 679.0806579589844, + "y": 125.43391764163971, + "z": "2de7bdd3.0e47b2", + "wires": [] }, { - "id": "c342578d.28b708", + "id": "3de219b6.a5b006", "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": 684.0039367675781, - "y": 184.99999141693115, - "z": "27f64d8c.2cf692", + "x": 625.0039367675781, + "y": 180.99999105930328, + "z": "2de7bdd3.0e47b2", "wires": [ [ - "3dca0ad4.c31f16", - "5f732a2c.880594" + "c41cb638.52f6f8", + "e38afa57.231908" ] ] }, { - "id": "3dca0ad4.c31f16", + "id": "c41cb638.52f6f8", "type": "outcome", "name": "NULL", "xml": "<outcome value=''>", "comments": "", "outputs": 1, - "x": 935.0039863586426, - "y": 146.9999783039093, - "z": "27f64d8c.2cf692", + "x": 823.0040245056152, + "y": 150.9999796152115, + "z": "2de7bdd3.0e47b2", "wires": [ [ - "d23cb383.a5008" + "1f1d00d8.31b19f" ] ] }, { - "id": "5f732a2c.880594", + "id": "e38afa57.231908", "type": "other", "name": "other", "xml": "<outcome value='Other'>\n", "comments": "", "outputs": 1, - "x": 936.00390625, - "y": 206.99998688697815, - "z": "27f64d8c.2cf692", + "x": 822.0039329528809, + "y": 187.99999010562897, + "z": "2de7bdd3.0e47b2", "wires": [ [ - "e2d02082.677af" + "3ee7f443.e400dc" ] ] }, { - "id": "e2d02082.677af", + "id": "3ee7f443.e400dc", "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": 1168.003890991211, - "y": 206.99999165534973, - "z": "27f64d8c.2cf692", - "wires": [ - - ] + "x": 1020.0039215087891, + "y": 185.0000091791153, + "z": "2de7bdd3.0e47b2", + "wires": [] }, { - "id": "efa6ad20.d82ee", + "id": "2c7c8b4.5796074", "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": 656.0038299560547, - "y": 420.00005626678467, - "z": "27f64d8c.2cf692", - "wires": [ - - ] + "x": 593.0038604736328, + "y": 402.0000978708267, + "z": "2de7bdd3.0e47b2", + "wires": [] }, { - "id": "269c43d6.56387c", + "id": "9525b61d.f44608", "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": 662.2657508850098, - "y": 505.66673374176025, - "z": "27f64d8c.2cf692", + "x": 593.2657775878906, + "y": 483.6667791604996, + "z": "2de7bdd3.0e47b2", "wires": [ - [ - - ] + [] ] }, { - "id": "3e97601e.a0c21", + "id": "45124265.84320c", "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": 709.2657318115234, - "y": 589.6667013168335, - "z": "27f64d8c.2cf692", + "x": 646.2658386230469, + "y": 570.6666971445084, + "z": "2de7bdd3.0e47b2", "wires": [ - [ - - ] + [] ] }, { - "id": "d23cb383.a5008", + "id": "1f1d00d8.31b19f", "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": 1150.003963470459, - "y": 147.9999840259552, - "z": "27f64d8c.2cf692", + "x": 1038.0040016174316, + "y": 151.99998533725739, + "z": "2de7bdd3.0e47b2", "wires": [ [ - "6e27cc35.c13c74" + "febe994.1667068" ] ] }, { - "id": "6e27cc35.c13c74", + "id": "febe994.1667068", "type": "failure", "name": "failure", "xml": "<outcome value='failure'>\n", "comments": "", "outputs": 1, - "x": 1368.004005432129, - "y": 147.99994778633118, - "z": "27f64d8c.2cf692", + "x": 1256.0040435791016, + "y": 151.99994909763336, + "z": "2de7bdd3.0e47b2", "wires": [ [ - "e6eb33a1.9cd3b" + "39c9fb3d.bda924" ] ] }, { - "id": "e6eb33a1.9cd3b", + "id": "39c9fb3d.bda924", "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": 1534.0039596557617, - "y": 147.99996209144592, - "z": "27f64d8c.2cf692", - "wires": [ - - ] + "x": 1422.0039978027344, + "y": 151.9999634027481, + "z": "2de7bdd3.0e47b2", + "wires": [] }, { - "id": "a1d6ff56.9c99d", - "type": "get-resource", - "name": "get-resource connection-attachment-allotted-resource", - "xml": "<get-resource plugin='org.onap.ccsdk.sli.adaptors.resource.mdsal.ConfigResource' resource='GENERIC-RESOURCE-API' key='connection-attachment-allotted-resources/connection-attachment-allotted-resource/$tmp.ar.allotted-resource-id/' pfx='mdsal-ar' >\n", - "comments": "", - "outputs": 1, - "x": 757.00390625, - "y": 684.7778043746948, - "z": "27f64d8c.2cf692", - "wires": [ - [ - "69156564.0efd4c" - ] - ] - }, - { - "id": "69156564.0efd4c", + "id": "a969345.5e133c8", "type": "success", "name": "success", "xml": "<outcome value='success'>\n", "comments": "", "outputs": 1, - "x": 1077.0039863586426, - "y": 686.7777614593506, - "z": "27f64d8c.2cf692", + "x": 1152.0041370391846, + "y": 642.7778698205948, + "z": "2de7bdd3.0e47b2", "wires": [ [ - "852fc020.79a93" + "d1ab386a.e79358" ] ] }, { - "id": "8474d88f.5c62c8", + "id": "50f962fe.84264c", "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": 1810.5223655700684, - "y": 687.8438329696655, - "z": "27f64d8c.2cf692", - "wires": [ - - ] + "x": 1885.5225162506104, + "y": 643.8439413309097, + "z": "2de7bdd3.0e47b2", + "wires": [] }, { - "id": "57300b8d.590704", + "id": "a49d5ad5.f5a9d8", "type": "comment", "name": "Check for non existence of allotted resource", "info": "", "comments": "", - "x": 721.0039443969727, - "y": 650.7778549194336, - "z": "27f64d8c.2cf692", - "wires": [ - - ] + "x": 1008.0040588378906, + "y": 576.7779365777969, + "z": "2de7bdd3.0e47b2", + "wires": [] }, { - "id": "d079c407.4d6f78", + "id": "d5f1890a.be37b8", "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": 1619.6705627441406, - "y": 883.0000419616699, - "z": "27f64d8c.2cf692", + "x": 1528.6706047058105, + "y": 787.000048995018, + "z": "2de7bdd3.0e47b2", "wires": [ [ - "a651bfa.1352c4" + "f2c143a3.1f8e7" ] ] }, { - "id": "52744f96.8455f", + "id": "efb9af7d.38a8c", "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": 772.6699485778809, - "y": 843.71404337883, - "z": "27f64d8c.2cf692", + "x": 710.6699295043945, + "y": 763.7140814065933, + "z": "2de7bdd3.0e47b2", "wires": [ [ - "8264b400.beda08", - "7056a183.5603b" + "82a04eb.e5042b", + "c28a32d1.b979" ] ] }, { - "id": "8264b400.beda08", + "id": "82a04eb.e5042b", "type": "other", "name": "outcome Null", "xml": "<outcome value=''>\n", "comments": "", "outputs": 1, - "x": 1094.812831878662, - "y": 846.57146525383, - "z": "27f64d8c.2cf692", + "x": 1014.8128280639648, + "y": 732.5715185403824, + "z": "2de7bdd3.0e47b2", "wires": [ [ - "11ae1967.44e4c7" + "9ed3f44e.0ef248" ] ] }, { - "id": "7056a183.5603b", + "id": "c28a32d1.b979", "type": "other", "name": "other", "xml": "<outcome value='Other'>\n", "comments": "", "outputs": 1, - "x": 1082.8128356933594, - "y": 889.5714666843414, - "z": "27f64d8c.2cf692", + "x": 991.8128776550293, + "y": 793.5714737176895, + "z": "2de7bdd3.0e47b2", "wires": [ [ - "138cce38.a61662" + "7748cb78.c02984" ] ] }, { - "id": "138cce38.a61662", + "id": "7748cb78.c02984", "type": "block", "name": "block : atomic", "xml": "<block atomic=\"true\">", "atomic": "true", "outputs": 1, - "x": 1242.939926147461, - "y": 887.6974432468414, - "z": "27f64d8c.2cf692", + "x": 1151.9399681091309, + "y": 791.6974502801895, + "z": "2de7bdd3.0e47b2", "wires": [ [ - "d079c407.4d6f78", - "1d2e79f7.7a22f6", - "caba0b91.36a608" + "d5f1890a.be37b8", + "6c68e940.a09698", + "9bbf5449.409148" ] ] }, { - "id": "11ae1967.44e4c7", + "id": "9ed3f44e.0ef248", "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": 1253.6698036193848, - "y": 846.2855279445648, - "z": "27f64d8c.2cf692", - "wires": [ - - ] + "x": 1164.6698112487793, + "y": 730.2855688333511, + "z": "2de7bdd3.0e47b2", + "wires": [] }, { - "id": "361e33ee.17369c", + "id": "67a07981.adb6b8", "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": 698.527229309082, - "y": 916.2856435775757, - "z": "27f64d8c.2cf692", - "wires": [ - - ] + "x": 639.5272216796875, + "y": 867.2856460809708, + "z": "2de7bdd3.0e47b2", + "wires": [] }, { - "id": "1d2e79f7.7a22f6", + "id": "6c68e940.a09698", "type": "switchNode", "name": "switch tmp.found-cidx", "xml": "<switch test='`$tmp.found-cidx`'>\n", "comments": "", "outputs": 1, - "x": 1432.054973602295, - "y": 919.7089660167694, - "z": "27f64d8c.2cf692", + "x": 1341.0550155639648, + "y": 823.7089730501175, + "z": "2de7bdd3.0e47b2", "wires": [ [ - "5635489a.7ffbc8" + "e6bed7c6.008fc8" ] ] }, { - "id": "5635489a.7ffbc8", + "id": "e6bed7c6.008fc8", "type": "outcomeTrue", "name": "false", "xml": "<outcome value='false'>\n", "comments": "", "outputs": 1, - "x": 1622.0549278259277, - "y": 919.7089030742645, - "z": "27f64d8c.2cf692", + "x": 1531.0549697875977, + "y": 823.7089101076126, + "z": "2de7bdd3.0e47b2", "wires": [ [ - "66ad5d1b.da3ab4" + "c94cbc62.004a2" ] ] }, { - "id": "66ad5d1b.da3ab4", + "id": "c94cbc62.004a2", "type": "block", "name": "block : atomic", "xml": "<block atomic=\"true\">", "atomic": "true", "outputs": 1, - "x": 1788.0549278259277, - "y": 919.7089030742645, - "z": "27f64d8c.2cf692", + "x": 1697.0549697875977, + "y": 823.7089101076126, + "z": "2de7bdd3.0e47b2", "wires": [ [ - "f92757e1.e50008" + "f71f33c4.6780f" ] ] }, { - "id": "a651bfa.1352c4", + "id": "f2c143a3.1f8e7", "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": 2093.7820434570312, - "y": 883.0000257492065, - "z": "27f64d8c.2cf692", + "x": 1945.7822341918945, + "y": 784.0000759363174, + "z": "2de7bdd3.0e47b2", "wires": [ [ - "54bb5ed6.70da5" + "22afa8c.31c5058" ] ] }, { - "id": "54bb5ed6.70da5", + "id": "22afa8c.31c5058", "type": "outcomeTrue", "name": "true", "xml": "<outcome value='true'>\n", "comments": "", "outputs": 1, - "x": 2318.591772079468, - "y": 885.4644467830658, - "z": "27f64d8c.2cf692", + "x": 2127.591808319092, + "y": 784.4645229578018, + "z": "2de7bdd3.0e47b2", "wires": [ [ - "d7b2b6d3.cadeb8" + "349f45ed.6a61aa" ] ] }, { - "id": "f92757e1.e50008", + "id": "f71f33c4.6780f", "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": 2033.928274154663, - "y": 920.2205998897552, - "z": "27f64d8c.2cf692", - "wires": [ - - ] + "x": 1858.928352355957, + "y": 823.2206112146378, + "z": "2de7bdd3.0e47b2", + "wires": [] }, { - "id": "57bdcf73.d7aa8", + "id": "8d32b4a4.1a9fd8", "type": "comment", "name": "Add to consumed service consumed-allotted-resources in mdsal", "info": "Prepare data and add to service-data", "comments": "", - "x": 791.6711463928223, - "y": 772.9999761581421, - "z": "27f64d8c.2cf692", - "wires": [ - - ] + "x": 731.671142578125, + "y": 694.0000454187393, + "z": "2de7bdd3.0e47b2", + "wires": [] }, { - "id": "f0cc7d17.67dd7", + "id": "fc9006c6.395558", "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": 774.0040016174316, - "y": 880.7781000137329, - "z": "27f64d8c.2cf692", - "wires": [ - - ] + "x": 719.0040588378906, + "y": 832.7781378030777, + "z": "2de7bdd3.0e47b2", + "wires": [] }, { - "id": "b58ada11.db1438", + "id": "d769ff10.bfeae", "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\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-tag-entry\" value=\"`$prop.connection-attachment.cVLAN`\" />\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", + "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": 674.6947441101074, - "y": 1909.531907916069, - "z": "27f64d8c.2cf692", + "x": 629.6947631835938, + "y": 1792.5319019556046, + "z": "2de7bdd3.0e47b2", "wires": [ [ - "a1860cc7.e0b1b", - "e37a2480.b51108" + "e5663fd7.08761", + "b7403b0d.cfc148" ] ] }, { - "id": "a1860cc7.e0b1b", + "id": "e5663fd7.08761", "type": "failure", "name": "failure", "xml": "<outcome value='failure'>\n", "comments": "", "outputs": 1, - "x": 930.4566535949707, - "y": 1892.484411597252, - "z": "27f64d8c.2cf692", + "x": 824.4566993713379, + "y": 1783.4845033884048, + "z": "2de7bdd3.0e47b2", "wires": [ [ - "3f25cd5e.443c92" + "345b8d51.157ff2" ] ] }, { - "id": "3f25cd5e.443c92", + "id": "345b8d51.157ff2", "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": 1096.9805335998535, - "y": 1904.1034826040268, - "z": "27f64d8c.2cf692", - "wires": [ - - ] + "x": 990.9805793762207, + "y": 1795.1035743951797, + "z": "2de7bdd3.0e47b2", + "wires": [] }, { - "id": "e37a2480.b51108", + "id": "b7403b0d.cfc148", "type": "failure", "name": "not-found", "xml": "<outcome value='not-found'>\n", "comments": "", "outputs": 1, - "x": 937.5519409179688, - "y": 1925.2463792562485, - "z": "27f64d8c.2cf692", + "x": 831.5519866943359, + "y": 1816.2464710474014, + "z": "2de7bdd3.0e47b2", "wires": [ [ - "3f25cd5e.443c92" + "345b8d51.157ff2" ] ] }, { - "id": "b9aa3657.c52d58", + "id": "ff8e9cff.e34a3", "type": "comment", "name": "Save Resource to AAI", "info": "", "comments": "", - "x": 649.5043678283691, - "y": 1874.8337998390198, - "z": "27f64d8c.2cf692", - "wires": [ - - ] + "x": 605.50439453125, + "y": 1754.8338733911514, + "z": "2de7bdd3.0e47b2", + "wires": [] }, { - "id": "af36f779.0f72d8", + "id": "5f517bd0.1d2334", "type": "comment", "name": "Set allotted resource type if not sent by SO", "info": "", "comments": "", - "x": 728.0038757324219, - "y": 263.9999933242798, - "z": "27f64d8c.2cf692", - "wires": [ - - ] + "x": 665.00390625, + "y": 233.99999868869781, + "z": "2de7bdd3.0e47b2", + "wires": [] }, { - "id": "1cbd957b.be039b", + "id": "3e0bbdc4.8ce3d2", "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": 688.9271774291992, - "y": 297.56605434417725, - "z": "27f64d8c.2cf692", + "x": 626.9272155761719, + "y": 274.5660549402237, + "z": "2de7bdd3.0e47b2", "wires": [ [ - "51e4f8bb.15fd98", - "9bc5979.dbcfa68" + "ff0b47c3.5cf7f8", + "8dd15a77.fb7568" ] ] }, { - "id": "51e4f8bb.15fd98", + "id": "ff0b47c3.5cf7f8", "type": "outcome", "name": "NULL", "xml": "<outcome value=''>", "comments": "", "outputs": 1, - "x": 933.9272804260254, - "y": 268.56605529785156, - "z": "27f64d8c.2cf692", + "x": 829.9273681640625, + "y": 259.56605780124664, + "z": "2de7bdd3.0e47b2", "wires": [ [ - "8d4b5605.e44fb8" + "aae71526.aed0c8" ] ] }, { - "id": "9bc5979.dbcfa68", + "id": "8dd15a77.fb7568", "type": "other", "name": "other", "xml": "<outcome value='Other'>\n", "comments": "", "outputs": 1, - "x": 934.9272003173828, - "y": 328.5660638809204, - "z": "27f64d8c.2cf692", + "x": 822.9271965026855, + "y": 299.5660778284073, + "z": "2de7bdd3.0e47b2", "wires": [ [ - "8168f22d.0df79" + "c7c46784.6950a8" ] ] }, { - "id": "8168f22d.0df79", + "id": "c7c46784.6950a8", "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": 1166.9271850585938, - "y": 328.566068649292, - "z": "27f64d8c.2cf692", - "wires": [ - - ] + "x": 1054.9271812438965, + "y": 299.56608259677887, + "z": "2de7bdd3.0e47b2", + "wires": [] }, { - "id": "965843c3.6889f", + "id": "e793c2ca.7f688", "type": "comment", "name": "For storage in AAI connection-attachment-topology", "info": "", "comments": "", - "x": 750.0038604736328, - "y": 388.00001430511475, - "z": "27f64d8c.2cf692", - "wires": [ - - ] + "x": 690.0038681030273, + "y": 368.9999986886978, + "z": "2de7bdd3.0e47b2", + "wires": [] }, { - "id": "eb60ce1a.0aef2", + "id": "a57110f9.dcd37", "type": "comment", "name": "Obtain different URL, template location etc", "info": "For saving resource information to MDSAL & for AAI", "comments": "", - "x": 728.0038566589355, - "y": 470.88889503479004, - "z": "27f64d8c.2cf692", - "wires": [ - - ] + "x": 665.0038528442383, + "y": 450.8889080286026, + "z": "2de7bdd3.0e47b2", + "wires": [] }, { - "id": "ef74607d.036b", + "id": "9489b4d2.52d1b8", "type": "comment", "name": "Used for Put AR by id to MDSAL", "info": "", "comments": "", - "x": 692.0038909912109, - "y": 554.8888864517212, - "z": "27f64d8c.2cf692", - "wires": [ - - ] + "x": 631.0039367675781, + "y": 539.8889251947403, + "z": "2de7bdd3.0e47b2", + "wires": [] }, { - "id": "dddb900f.8862d", + "id": "454699aa.1f7a38", "type": "comment", "name": "Obtain the last index in services", "info": "ServiceData is added by Provider code", "comments": "", - "x": 690.4483680725098, - "y": 808.8888585567474, - "z": "27f64d8c.2cf692", - "wires": [ - - ] - }, - { - "id": "65b342f3.64d6cc", - "type": "comment", - "name": "TODO: Rework after confirmation from AAI", - "info": "", - "comments": "", - "x": 949.8632774353027, - "y": 1852.4048385620117, - "z": "27f64d8c.2cf692", - "wires": [ - - ] + "x": 632.4483795166016, + "y": 725.88886988163, + "z": "2de7bdd3.0e47b2", + "wires": [] }, { - "id": "4298e590.a1603c", + "id": "54b45ac5.3b96f4", "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": 663.2720336914062, - "y": 1822.3591704368591, - "z": "27f64d8c.2cf692", - "wires": [ - - ] + "x": 615.2720489501953, + "y": 1699.3592010736465, + "z": "2de7bdd3.0e47b2", + "wires": [] }, { - "id": "d0bb4427.716f08", + "id": "6f9dfa46.6d74e4", "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": 632.6851463317871, - "y": 1956.9750332832336, - "z": "27f64d8c.2cf692", - "wires": [ - - ] + "x": 583.6851272583008, + "y": 1840.9749876260757, + "z": "2de7bdd3.0e47b2", + "wires": [] }, { - "id": "8d4b5605.e44fb8", + "id": "aae71526.aed0c8", "type": "set", "name": "set tmp.ar.allotted-resource-type", "xml": "<set>\n<parameter name='tmp.ar.allotted-resource-type' value=\"SOTNAttachmentInstance\" />\n", "comments": "", - "x": 1173.0039672851562, - "y": 268.999981880188, - "z": "27f64d8c.2cf692", - "wires": [ - - ] + "x": 1069.0040550231934, + "y": 259.99998438358307, + "z": "2de7bdd3.0e47b2", + "wires": [] }, { - "id": "bdd1fffd.ca081", + "id": "d0d20150.466f4", "type": "call", - "name": "call GENERIC-RESOURCE-API:sotn-get-request-input-param", - "xml": "<call module='GENERIC-RESOURCE-API' rpc='connection-attachment-get-request-input-param' mode='sync' >\n", + "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": 787.9980621337891, - "y": 1653.4938340187073, - "z": "27f64d8c.2cf692", + "x": 716.9980697631836, + "y": 1559.4938122034073, + "z": "2de7bdd3.0e47b2", "wires": [ - [ - - ] + [] ] }, { - "id": "e28f7f9f.51996", + "id": "d25d451e.0f6438", "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": 723.0041427612305, - "y": 1694.0000214576721, - "z": "27f64d8c.2cf692", + "x": 666.0041809082031, + "y": 1633.0001302957535, + "z": "2de7bdd3.0e47b2", "wires": [ [ - "56bb7e95.f927f", - "74711000.f0575", - "579344a.ffcc7bc" + "a217bcb.4b0424", + "c7307e94.33922", + "88ae5959.9952c8" ] ] }, { - "id": "56bb7e95.f927f", + "id": "a217bcb.4b0424", "type": "not-found", "name": "not-found", "xml": "<outcome value='not-found'>\n", "comments": "", "outputs": 1, - "x": 991.6455192565918, - "y": 1745.331433199346, - "z": "27f64d8c.2cf692", + "x": 915.6455345153809, + "y": 1671.331460595131, + "z": "2de7bdd3.0e47b2", "wires": [ [ - "e2257359.1b116" + "45489cfb.5ec6b4" ] ] }, { - "id": "74711000.f0575", + "id": "c7307e94.33922", "type": "failure", "name": "failure", "xml": "<outcome value='failure'>\n", "comments": "", "outputs": 1, - "x": 982.6455688476562, - "y": 1713.8314589485526, - "z": "27f64d8c.2cf692", + "x": 906.6455841064453, + "y": 1639.8314863443375, + "z": "2de7bdd3.0e47b2", "wires": [ [ - "e2257359.1b116" + "45489cfb.5ec6b4" ] ] }, { - "id": "579344a.ffcc7bc", + "id": "88ae5959.9952c8", "type": "success", "name": "success", "xml": "<outcome value='success'>\n", "comments": "", "outputs": 1, - "x": 986.3956069946289, - "y": 1684.1885638237, - "z": "27f64d8c.2cf692", + "x": 910.395622253418, + "y": 1610.1885912194848, + "z": "2de7bdd3.0e47b2", "wires": [ [ - "7d6eb53b.d4c13c" + "b883302d.2867d" ] ] }, { - "id": "e2257359.1b116", + "id": "45489cfb.5ec6b4", "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": 1152.395606994629, - "y": 1714.5814827904105, - "z": "27f64d8c.2cf692", - "wires": [ - - ] + "x": 1076.395622253418, + "y": 1640.5815101861954, + "z": "2de7bdd3.0e47b2", + "wires": [] }, { - "id": "7d6eb53b.d4c13c", + "id": "b883302d.2867d", "type": "block", "name": "block", "xml": "<block>\n", "atomic": "false", "comments": "", "outputs": 1, - "x": 1128.0515747070312, - "y": 1680.380733013153, - "z": "27f64d8c.2cf692", + "x": 1052.0515899658203, + "y": 1606.380760408938, + "z": "2de7bdd3.0e47b2", "wires": [ - [ - - ] + [] ] }, { - "id": "e6716760.631bc8", + "id": "1db7126.81503ee", "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": 788.0038719177246, - "y": 1214.0001440048218, - "z": "27f64d8c.2cf692", + "x": 731.0038604736328, + "y": 1149.0001636743546, + "z": "2de7bdd3.0e47b2", "wires": [ [ - "f5b61314.7a9ea", - "7f95a527.cea04c", - "6554700.9ffd59" + "8baa1385.678c1", + "f79c7ce6.35926", + "8ab7afc7.379db" ] ] }, { - "id": "f5b61314.7a9ea", + "id": "8baa1385.678c1", "type": "not-found", "name": "not-found", "xml": "<outcome value='not-found'>\n", "comments": "", "outputs": 1, - "x": 1110.3118896484375, - "y": 1258.9983615875244, - "z": "27f64d8c.2cf692", + "x": 1039.3119201660156, + "y": 1180.9984394311905, + "z": "2de7bdd3.0e47b2", "wires": [ [ - "adbe2b8f.bcb438" + "1986b301.84772d" ] ] }, { - "id": "7f95a527.cea04c", + "id": "f79c7ce6.35926", "type": "failure", "name": "failure", "xml": "<outcome value='failure'>\n", "comments": "", "outputs": 1, - "x": 1101.311939239502, - "y": 1227.498387336731, - "z": "27f64d8c.2cf692", + "x": 1030.31196975708, + "y": 1149.498465180397, + "z": "2de7bdd3.0e47b2", "wires": [ [ - "adbe2b8f.bcb438" + "1986b301.84772d" ] ] }, { - "id": "6554700.9ffd59", + "id": "8ab7afc7.379db", "type": "success", "name": "success", "xml": "<outcome value='success'>\n", "comments": "", "outputs": 1, - "x": 1105.0619773864746, - "y": 1197.8554922118783, - "z": "27f64d8c.2cf692", + "x": 1034.0620079040527, + "y": 1119.8555700555444, + "z": "2de7bdd3.0e47b2", "wires": [ [ - "f1effaa7.98cb08" + "c35b2d72.8a40a" ] ] }, { - "id": "adbe2b8f.bcb438", + "id": "1986b301.84772d", "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": 1271.0619773864746, - "y": 1228.2484111785889, - "z": "27f64d8c.2cf692", - "wires": [ - - ] + "x": 1200.0620079040527, + "y": 1150.248489022255, + "z": "2de7bdd3.0e47b2", + "wires": [] }, { - "id": "f1effaa7.98cb08", + "id": "c35b2d72.8a40a", "type": "block", "name": "block", "xml": "<block>\n", "atomic": "false", "comments": "", "outputs": 1, - "x": 1246.717945098877, - "y": 1194.0476614013314, - "z": "27f64d8c.2cf692", + "x": 1175.717975616455, + "y": 1116.0477392449975, + "z": "2de7bdd3.0e47b2", "wires": [ - [ - - ] + [] ] }, { - "id": "8ad1638f.48f57", + "id": "373cdeec.8a9792", "type": "comment", "name": "Put the parent allotted resource in mdsal", "info": "", "comments": "", - "x": 712.0038070678711, - "y": 1182.0000429153442, - "z": "27f64d8c.2cf692", - "wires": [ - - ] + "x": 660.0038070678711, + "y": 1111.0000702142715, + "z": "2de7bdd3.0e47b2", + "wires": [] }, { - "id": "272d789b.464298", + "id": "b18196af.f3d2c8", "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": 712.3609619140625, - "y": 1416.5716543197632, - "z": "27f64d8c.2cf692", - "wires": [ - - ] + "x": 656.3609924316406, + "y": 1313.571689248085, + "z": "2de7bdd3.0e47b2", + "wires": [] }, { - "id": "8217a995.1a4f18", + "id": "279f61dd.0cdaee", "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": 623.2177734375, - "y": 1375.3809804916382, - "z": "27f64d8c.2cf692", - "wires": [ - - ] + "x": 570.2177734375, + "y": 1281.3810459375381, + "z": "2de7bdd3.0e47b2", + "wires": [] }, { - "id": "de9004ee.8e65a8", + "id": "d586facb.6928c8", "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": 689.1707611083984, - "y": 1458.6668643951416, - "z": "27f64d8c.2cf692", - "wires": [ - - ] + "x": 635.1707916259766, + "y": 1347.6668745279312, + "z": "2de7bdd3.0e47b2", + "wires": [] }, { - "id": "61510de6.6b5a64", + "id": "83c4b03a.da76", "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": 640.5036277770996, - "y": 1541.0004243850708, - "z": "27f64d8c.2cf692", + "x": 587.5036315917969, + "y": 1421.0004020929337, + "z": "2de7bdd3.0e47b2", "wires": [ - [ - - ] + [] ] }, { - "id": "a9832c0c.edf5c", + "id": "aeb52a03.a21508", "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": 691.4906883239746, - "y": 1576.9515752792358, - "z": "27f64d8c.2cf692", - "wires": [ - - ] + "x": 638.4906692504883, + "y": 1476.95163500309, + "z": "2de7bdd3.0e47b2", + "wires": [] }, { - "id": "fc645855.78a1f8", + "id": "3704681e.a28308", "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": 633.0592803955078, - "y": 1495.5557231903076, - "z": "27f64d8c.2cf692", - "wires": [ - - ] + "x": 583.0592880249023, + "y": 1382.555760025978, + "z": "2de7bdd3.0e47b2", + "wires": [] }, { - "id": "e28fb6e1.570bc8", + "id": "9f0192ed.a3fed", "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": 750.3927764892578, - "y": 1335.555583000183, - "z": "27f64d8c.2cf692", - "wires": [ - - ] + "x": 700.3927764892578, + "y": 1247.5556064844131, + "z": "2de7bdd3.0e47b2", + "wires": [] }, { - "id": "908d0f20.3dc3f", + "id": "9c36769e.3b9b78", "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": 753.5039024353027, - "y": 1145.0000400543213, - "z": "27f64d8c.2cf692", + "x": 695.5039215087891, + "y": 1075.0000091791153, + "z": "2de7bdd3.0e47b2", "wires": [ - [ - - ] + [] ] }, { - "id": "d5a721b9.32552", + "id": "482be69b.e1e678", "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": 754.5038414001465, - "y": 1107.0000896453857, - "z": "27f64d8c.2cf692", + "x": 691.5038452148438, + "y": 1032.0001455545425, + "z": "2de7bdd3.0e47b2", "wires": [ - [ - - ] + [] ] }, { - "id": "4df22418.3a53fc", + "id": "db2548a3.2d9d88", "type": "comment", "name": "Prepare Parent AR URL", "info": "Preparation to set provided-allotted-resource in parent service instance", "comments": "", - "x": 661.5042572021484, - "y": 1035.0000867843628, - "z": "27f64d8c.2cf692", - "wires": [ - - ] + "x": 609.5043029785156, + "y": 961.000098824501, + "z": "2de7bdd3.0e47b2", + "wires": [] }, { - "id": "8340ac1e.8db72", + "id": "238da366.150bec", "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": 706.5040893554688, - "y": 1071.4999990463257, - "z": "27f64d8c.2cf692", - "wires": [ - - ] + "x": 648.5040969848633, + "y": 994.500038266182, + "z": "2de7bdd3.0e47b2", + "wires": [] }, { - "id": "c17a3b14.014a38", + "id": "62fbf7be.c1d928", "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": 696.0042877197266, - "y": 1622.4997611045837, - "z": "27f64d8c.2cf692", - "wires": [ - - ] + "x": 643.0042724609375, + "y": 1522.4998852014542, + "z": "2de7bdd3.0e47b2", + "wires": [] }, { - "id": "d7b2b6d3.cadeb8", + "id": "349f45ed.6a61aa", "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": 2506.7607421875, - "y": 883.6458120346069, - "z": "27f64d8c.2cf692", - "wires": [ - - ] + "x": 2205.7608795166016, + "y": 832.6458278894424, + "z": "2de7bdd3.0e47b2", + "wires": [] }, { - "id": "caba0b91.36a608", + "id": "9bbf5449.409148", "type": "set", "name": "set tmp.found-cidx", "xml": "<set>\n<parameter name='tmp.found-cidx' value=\"`false`\" />\n\n\n", "comments": "", - "x": 1422.6500091552734, - "y": 840.3125638961792, - "z": "27f64d8c.2cf692", - "wires": [ - - ] + "x": 1331.6500511169434, + "y": 744.3125709295273, + "z": "2de7bdd3.0e47b2", + "wires": [] }, { - "id": "88129b22.08bd88", + "id": "de27f2ed.26659", "type": "comment", "name": "Add to parent services provided-allotted-resources in mdsal", "info": "", "comments": "", - "x": 771.2053833007812, - "y": 995.9792184829712, - "z": "27f64d8c.2cf692", - "wires": [ - - ] + "x": 720.2054138183594, + "y": 928.9792553186417, + "z": "2de7bdd3.0e47b2", + "wires": [] }, { - "id": "209aa5b9.f006fa", + "id": "a649f8c3.5ee428", "type": "comment", "name": "Add to allotted-resources in mdsal", "info": "", "comments": "", - "x": 691.9726028442383, - "y": 1302.9688847064972, - "z": "27f64d8c.2cf692", - "wires": [ - - ] + "x": 640.9726028442383, + "y": 1214.9689356088638, + "z": "2de7bdd3.0e47b2", + "wires": [] }, { - "id": "852fc020.79a93", + "id": "d1ab386a.e79358", "type": "block", "name": "block: atomic", "xml": "<block atomic=\"true\">\n", "atomic": "false", "comments": "", "outputs": 1, - "x": 1239.003807067871, - "y": 686.2776508331299, - "z": "27f64d8c.2cf692", + "x": 1314.003957748413, + "y": 642.2777591943741, + "z": "2de7bdd3.0e47b2", "wires": [ [ - "f33868e5.1acfb8" + "4f0a5d33.427474" ] ] }, { - "id": "f33868e5.1acfb8", + "id": "4f0a5d33.427474", "type": "switchNode", "name": "switch cr length", "xml": "<switch test='`$mdsal-ar.connection-attachment-allotted-resource_length`'>\n", "comments": "", "outputs": 1, - "x": 1426.8611869812012, - "y": 686.8967862129211, - "z": "27f64d8c.2cf692", + "x": 1501.8613376617432, + "y": 642.8968945741653, + "z": "2de7bdd3.0e47b2", "wires": [ [ - "71e1d814.25e938" + "d605048c.9bb9e8" ] ] }, { - "id": "71e1d814.25e938", + "id": "d605048c.9bb9e8", "type": "other", "name": "outcome 1", "xml": "<outcome value='1'>\n", "comments": "", "outputs": 1, - "x": 1626.1943092346191, - "y": 686.8968648910522, - "z": "27f64d8c.2cf692", + "x": 1701.1944599151611, + "y": 642.8969732522964, + "z": "2de7bdd3.0e47b2", + "wires": [ + [ + "50f962fe.84264c" + ] + ] + }, + { + "id": "5a5883b8.a68a6c", + "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", + "wires": [ + [ + "a969345.5e133c8", + "ca5d3b75.7711f8" + ] + ] + }, + { + "id": "ca5d3b75.7711f8", + "type": "failure", + "name": "failure", + "xml": "<outcome value='failure'>\n", + "comments": "", + "outputs": 1, + "x": 1154.0039901733398, + "y": 607.0000330209732, + "z": "2de7bdd3.0e47b2", "wires": [ [ - "8474d88f.5c62c8" + "9eb0da65.d80ea8" ] ] + }, + { + "id": "9eb0da65.d80ea8", + "type": "block", + "name": "block", + "xml": "<block>\n", + "atomic": "false", + "comments": "", + "outputs": 1, + "x": 1306.0039901733398, + "y": 606.0000330209732, + "z": "2de7bdd3.0e47b2", + "wires": [ + [] + ] } -] +]
\ No newline at end of file |