diff options
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 | 922 |
1 files changed, 467 insertions, 455 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 b785bc4a..0992fa6d 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": "c96eae79.08813", + "id": "e71077a5.449178", "type": "dgstart", "name": "DGSTART", "outputs": 1, - "x": 100, - "y": 40, - "z": "307cdf1d.539fd", + "x": 94.00001907348633, + "y": 67.0000991821289, + "z": "ab45b2a0.2d254", "wires": [ [ - "2bbd4a2b.66a236" + "e230874f.1ced38" ] ] }, { - "id": "2bbd4a2b.66a236", + "id": "e230874f.1ced38", "type": "service-logic", "name": "GENERIC-RESOURCE-API ${project.version}", "module": "GENERIC-RESOURCE-API", @@ -22,1299 +22,1311 @@ "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": 275.00000381469727, - "y": 112.0000171661377, - "z": "307cdf1d.539fd", + "x": 269.0000228881836, + "y": 139.0001163482666, + "z": "ab45b2a0.2d254", "wires": [ [ - "7de06dac.f33994" + "fda28de9.a9688" ] ] }, { - "id": "7de06dac.f33994", + "id": "fda28de9.a9688", "type": "method", "name": "sotn-attachment-topology-operation-create", "xml": "<method rpc='sotn-attachment-topology-operation-create' mode='sync'>\n", "comments": "", "outputs": 1, - "x": 263.0001220703125, - "y": 200, - "z": "307cdf1d.539fd", + "x": 257.0001411437988, + "y": 227.0000991821289, + "z": "ab45b2a0.2d254", "wires": [ [ - "8a29d369.0bab4" + "8e26551b.7dfe18" ] ] }, { - "id": "8a29d369.0bab4", + "id": "8e26551b.7dfe18", "type": "block", "name": "block : atomic", "xml": "<block atomic=\"true\">\n", "atomic": "false", "comments": "", "outputs": 1, - "x": 183.00005340576172, - "y": 949.0002479553223, - "z": "307cdf1d.539fd", + "x": 177.00007247924805, + "y": 976.0003471374512, + "z": "ab45b2a0.2d254", "wires": [ [ - "51f31211.8f114c", - "a2a65745.852438", - "f3044df1.6f232", - "5ba82df.f35b0d4", - "2da52da7.95c362", - "dc7e1c21.4599e", - "7bdd95f3.db24ac", - "371cf69b.dabcaa", - "c34405e1.82d938", - "46e15a07.ae9ba4", - "cd08d99a.10abb8", - "c56a158b.169088", - "3292b995.f13186", - "71214832.584f28", - "23b7a6d1.9a369a", - "4ebfff40.f0aa5", - "cb431e44.1b2d7", - "6c73a0d6.045f8", - "1f74500.b2f7fb", - "6d4b764b.a8a308", - "6e7b925f.51d77c", - "92f874df.f4a158", - "ea8d2a7c.dc1c98", - "5a956e5b.11a09" + "c93c04d7.3e5348", + "9950e65d.3636a8", + "1ae547a2.eaba88", + "65f23dcc.6522b4", + "3e30e763.22be28", + "aa28416d.6d08a", + "15ca2e29.9a7dd2", + "9b1a0521.5c3978", + "f24b78b1.fdc468", + "a64f1b8.759c3e8", + "ab5d9313.ad157", + "6c39c83c.d7b048", + "8b5e7723.d59fc8", + "6b976d2c.2711d4", + "c9e7bba5.2bcb28", + "5aa40ff8.faf21", + "46cb4068.e43d3", + "8bddffb6.5284", + "abedf313.5d507", + "fac542dd.1d112", + "b07d75d2.a2b088", + "26fdc495.60ac0c", + "a63f9a77.c174a8", + "e02c5c21.82a2", + "bde5bdf6.37338" ] ] }, { - "id": "dceaac22.2856", + "id": "c90f1d50.24dc", "type": "comment", "name": "Set allotted resource id if not sent by SO", "info": "", "comments": "", - "x": 667.0767517089844, - "y": 109.4339189529419, - "z": "307cdf1d.539fd", + "x": 661.0767707824707, + "y": 136.4340181350708, + "z": "ab45b2a0.2d254", "wires": [] }, { - "id": "51f31211.8f114c", + "id": "c93c04d7.3e5348", "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": 613.0000305175781, - "y": 164.99999237060547, - "z": "307cdf1d.539fd", + "x": 607.0000495910645, + "y": 192.00009155273438, + "z": "ab45b2a0.2d254", "wires": [ [ - "5d06a5f3.384e7c", - "a9453642.a0afc8" + "213269bc.4275f6", + "6419db5e.a2c0c4" ] ] }, { - "id": "5d06a5f3.384e7c", + "id": "213269bc.4275f6", "type": "outcome", "name": "NULL", "xml": "<outcome value=''>", "comments": "", "outputs": 1, - "x": 811.0001182556152, - "y": 134.99998092651367, - "z": "307cdf1d.539fd", + "x": 805.0001373291016, + "y": 162.00008010864258, + "z": "ab45b2a0.2d254", "wires": [ [ - "b367b4cb.81eda8" + "eccd2036.554d7" ] ] }, { - "id": "a9453642.a0afc8", + "id": "6419db5e.a2c0c4", "type": "other", "name": "other", "xml": "<outcome value='Other'>\n", "comments": "", "outputs": 1, - "x": 810.0000267028809, - "y": 171.99999141693115, - "z": "307cdf1d.539fd", + "x": 804.0000457763672, + "y": 199.00009059906006, + "z": "ab45b2a0.2d254", "wires": [ [ - "b2cd00b8.57706" + "4ab8dc05.8f0984" ] ] }, { - "id": "b2cd00b8.57706", + "id": "4ab8dc05.8f0984", "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": 1008.0000152587891, - "y": 169.00001049041748, - "z": "307cdf1d.539fd", + "x": 1002.0000343322754, + "y": 196.0001096725464, + "z": "ab45b2a0.2d254", "wires": [] }, { - "id": "a2a65745.852438", + "id": "9950e65d.3636a8", "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": 580.9999542236328, - "y": 386.0000991821289, - "z": "307cdf1d.539fd", + "x": 574.9999732971191, + "y": 413.0001983642578, + "z": "ab45b2a0.2d254", "wires": [] }, { - "id": "f3044df1.6f232", + "id": "1ae547a2.eaba88", "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": 581.2618713378906, - "y": 467.66678047180176, - "z": "307cdf1d.539fd", + "x": 575.261890411377, + "y": 494.66687965393066, + "z": "ab45b2a0.2d254", "wires": [ [] ] }, { - "id": "5ba82df.f35b0d4", + "id": "65f23dcc.6522b4", "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": 634.2619323730469, - "y": 554.6666984558105, - "z": "307cdf1d.539fd", + "x": 628.2619514465332, + "y": 581.6667976379395, + "z": "ab45b2a0.2d254", "wires": [ [] ] }, { - "id": "b367b4cb.81eda8", + "id": "eccd2036.554d7", "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": 1026.0000953674316, - "y": 135.99998664855957, - "z": "307cdf1d.539fd", + "x": 1020.000114440918, + "y": 163.00008583068848, + "z": "ab45b2a0.2d254", "wires": [ [ - "a3bb33e3.15368" + "90c2cdec.e7c9c" ] ] }, { - "id": "a3bb33e3.15368", + "id": "90c2cdec.e7c9c", "type": "failure", "name": "failure", "xml": "<outcome value='failure'>\n", "comments": "", "outputs": 1, - "x": 1244.0001373291016, - "y": 135.99995040893555, - "z": "307cdf1d.539fd", + "x": 1238.000156402588, + "y": 163.00004959106445, + "z": "ab45b2a0.2d254", "wires": [ [ - "1a685e2d.8d4cc2" + "a192b9fd.7610f8" ] ] }, { - "id": "1a685e2d.8d4cc2", + "id": "a192b9fd.7610f8", "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": 1410.0000915527344, - "y": 135.9999647140503, - "z": "307cdf1d.539fd", + "x": 1404.0001106262207, + "y": 163.0000638961792, + "z": "ab45b2a0.2d254", "wires": [] }, { - "id": "8b5477db.c5c9d8", + "id": "66a512c5.0faacc", "type": "success", "name": "success", "xml": "<outcome value='success'>\n", "comments": "", "outputs": 1, - "x": 1140.0002307891846, - "y": 626.777871131897, - "z": "307cdf1d.539fd", + "x": 1134.000249862671, + "y": 653.7779703140259, + "z": "ab45b2a0.2d254", "wires": [ [ - "5b1e701f.600c" + "19566392.15832c" ] ] }, { - "id": "cc9f7f26.8914e", + "id": "2a3354d7.ee765c", "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": 1873.5186100006104, - "y": 627.8439426422119, - "z": "307cdf1d.539fd", + "x": 1867.5186290740967, + "y": 654.8440418243408, + "z": "ab45b2a0.2d254", "wires": [] }, { - "id": "65a2f2cb.5edd4c", + "id": "70da4f2f.1d3ca", "type": "comment", "name": "Check for non existence of allotted resource", "info": "", "comments": "", - "x": 996.0001525878906, - "y": 560.7779378890991, - "z": "307cdf1d.539fd", + "x": 990.000171661377, + "y": 587.778037071228, + "z": "ab45b2a0.2d254", "wires": [] }, { - "id": "2eaa291f.8f6b46", + "id": "66ac283c.bd2348", "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": 1516.6666984558105, - "y": 771.0000503063202, - "z": "307cdf1d.539fd", + "x": 1510.6667175292969, + "y": 798.0001494884491, + "z": "ab45b2a0.2d254", "wires": [ [ - "1bef4b2b.0d1235" + "c03dacc1.547db" ] ] }, { - "id": "dc7e1c21.4599e", + "id": "aa28416d.6d08a", "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": 698.6660232543945, - "y": 747.7140827178955, - "z": "307cdf1d.539fd", + "x": 692.6660423278809, + "y": 774.7141819000244, + "z": "ab45b2a0.2d254", "wires": [ [ - "f0ad968c.edb0a8", - "6ec4508a.edb8" + "ae723a2a.13be98", + "1678938e.1bfafc" ] ] }, { - "id": "f0ad968c.edb0a8", + "id": "ae723a2a.13be98", "type": "other", "name": "outcome Null", "xml": "<outcome value=''>\n", "comments": "", "outputs": 1, - "x": 1002.8089218139648, - "y": 716.5715198516846, - "z": "307cdf1d.539fd", + "x": 996.8089408874512, + "y": 743.5716190338135, + "z": "ab45b2a0.2d254", "wires": [ [ - "1bdd00e8.bfe58f" + "9ff14f9b.0b3b" ] ] }, { - "id": "6ec4508a.edb8", + "id": "1678938e.1bfafc", "type": "other", "name": "other", "xml": "<outcome value='Other'>\n", "comments": "", "outputs": 1, - "x": 979.8089714050293, - "y": 777.5714750289917, - "z": "307cdf1d.539fd", + "x": 973.8089904785156, + "y": 804.5715742111206, + "z": "ab45b2a0.2d254", "wires": [ [ - "db245e97.27431" + "79d1a933.7fd6a8" ] ] }, { - "id": "db245e97.27431", + "id": "79d1a933.7fd6a8", "type": "block", "name": "block : atomic", "xml": "<block atomic=\"true\">", "atomic": "true", "outputs": 1, - "x": 1139.9360618591309, - "y": 775.6974515914917, - "z": "307cdf1d.539fd", + "x": 1133.9360809326172, + "y": 802.6975507736206, + "z": "ab45b2a0.2d254", "wires": [ [ - "2eaa291f.8f6b46", - "493dd1d2.fc196", - "23139ea3.633f22" + "66ac283c.bd2348", + "3b659fae.e519", + "a32862a8.8af3d" ] ] }, { - "id": "1bdd00e8.bfe58f", + "id": "9ff14f9b.0b3b", "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": 1152.6659049987793, - "y": 714.2855701446533, - "z": "307cdf1d.539fd", + "x": 1146.6659240722656, + "y": 741.2856693267822, + "z": "ab45b2a0.2d254", "wires": [] }, { - "id": "7bdd95f3.db24ac", + "id": "15ca2e29.9a7dd2", "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": 627.5233154296875, - "y": 851.285647392273, - "z": "307cdf1d.539fd", + "x": 621.5233345031738, + "y": 878.2857465744019, + "z": "ab45b2a0.2d254", "wires": [] }, { - "id": "493dd1d2.fc196", + "id": "3b659fae.e519", "type": "switchNode", "name": "switch tmp.found-cidx", "xml": "<switch test='`$tmp.found-cidx`'>\n", "comments": "", "outputs": 1, - "x": 1329.0511093139648, - "y": 807.7089743614197, - "z": "307cdf1d.539fd", + "x": 1323.0511283874512, + "y": 834.7090735435486, + "z": "ab45b2a0.2d254", "wires": [ [ - "2ccff848.6a8838" + "966db31a.47786" ] ] }, { - "id": "2ccff848.6a8838", + "id": "966db31a.47786", "type": "outcomeTrue", "name": "false", "xml": "<outcome value='false'>\n", "comments": "", "outputs": 1, - "x": 1519.0510635375977, - "y": 807.7089114189148, - "z": "307cdf1d.539fd", + "x": 1513.051082611084, + "y": 834.7090106010437, + "z": "ab45b2a0.2d254", "wires": [ [ - "d5d85369.7e688" + "b95410b0.660fd" ] ] }, { - "id": "d5d85369.7e688", + "id": "b95410b0.660fd", "type": "block", "name": "block : atomic", "xml": "<block atomic=\"true\">", "atomic": "true", "outputs": 1, - "x": 1685.0510635375977, - "y": 807.7089114189148, - "z": "307cdf1d.539fd", + "x": 1679.051082611084, + "y": 834.7090106010437, + "z": "ab45b2a0.2d254", "wires": [ [ - "fa8e9142.85d7d" + "2ab57899.a130b8" ] ] }, { - "id": "1bef4b2b.0d1235", + "id": "c03dacc1.547db", "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": 1933.7783279418945, - "y": 768.0000772476196, - "z": "307cdf1d.539fd", + "x": 1927.7783470153809, + "y": 795.0001764297485, + "z": "ab45b2a0.2d254", "wires": [ [ - "39a011f4.26c90e" + "ba9ad589.8abb58" ] ] }, { - "id": "39a011f4.26c90e", + "id": "ba9ad589.8abb58", "type": "outcomeTrue", "name": "true", "xml": "<outcome value='true'>\n", "comments": "", "outputs": 1, - "x": 2115.587902069092, - "y": 768.464524269104, - "z": "307cdf1d.539fd", + "x": 2109.587921142578, + "y": 795.4646234512329, + "z": "ab45b2a0.2d254", "wires": [ [ - "3bd67468.05082c" + "ef75ff36.6e6a8" ] ] }, { - "id": "fa8e9142.85d7d", + "id": "2ab57899.a130b8", "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": 1846.924446105957, - "y": 807.2206125259399, - "z": "307cdf1d.539fd", + "x": 1840.9244651794434, + "y": 834.2207117080688, + "z": "ab45b2a0.2d254", "wires": [] }, { - "id": "45f09705.29f058", + "id": "e6f158d3.3c83a8", "type": "comment", "name": "Add to consumed service consumed-allotted-resources in mdsal", "info": "Prepare data and add to service-data", "comments": "", - "x": 719.667236328125, - "y": 678.0000467300415, - "z": "307cdf1d.539fd", + "x": 713.6672554016113, + "y": 705.0001459121704, + "z": "ab45b2a0.2d254", "wires": [] }, { - "id": "7472ca93.259114", + "id": "464592d5.7d3adc", "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": 707.0001525878906, - "y": 816.7781391143799, - "z": "307cdf1d.539fd", + "x": 701.000171661377, + "y": 843.7782382965088, + "z": "ab45b2a0.2d254", "wires": [] }, { - "id": "ea8d2a7c.dc1c98", + "id": "a63f9a77.c174a8", "type": "update", "name": "save AAI allotted-resource", "xml": "<save 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": 612.6908721923828, - "y": 1866.5318479537964, - "z": "307cdf1d.539fd", + "x": 577.6909523010254, + "y": 1914.5320167541504, + "z": "ab45b2a0.2d254", "wires": [ [ - "951bf335.bca52", - "3aff12ef.b5135e" + "8865c331.63809", + "3795c6dc.0749ba" ] ] }, { - "id": "951bf335.bca52", + "id": "8865c331.63809", "type": "failure", "name": "failure", "xml": "<outcome value='failure'>\n", "comments": "", "outputs": 1, - "x": 807.4527854919434, - "y": 1857.4844913482666, - "z": "307cdf1d.539fd", + "x": 801.4528045654297, + "y": 1884.4845905303955, + "z": "ab45b2a0.2d254", "wires": [ [ - "5683eb13.db5c34" + "4e95350f.9bd78c" ] ] }, { - "id": "5683eb13.db5c34", + "id": "4e95350f.9bd78c", "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": 973.9766654968262, - "y": 1869.1035623550415, - "z": "307cdf1d.539fd", + "x": 967.9766845703125, + "y": 1896.1036615371704, + "z": "ab45b2a0.2d254", "wires": [] }, { - "id": "3aff12ef.b5135e", + "id": "3795c6dc.0749ba", "type": "failure", "name": "not-found", "xml": "<outcome value='not-found'>\n", "comments": "", "outputs": 1, - "x": 814.5480728149414, - "y": 1890.2464590072632, - "z": "307cdf1d.539fd", + "x": 808.5480918884277, + "y": 1917.246558189392, + "z": "ab45b2a0.2d254", "wires": [ [ - "5683eb13.db5c34" + "4e95350f.9bd78c" ] ] }, { - "id": "9b778367.8c46a", + "id": "e8bcac4.3e63b5", "type": "comment", "name": "Save Resource to AAI", "info": "", "comments": "", - "x": 589.50048828125, - "y": 1809.8338623046875, - "z": "307cdf1d.539fd", + "x": 583.5005073547363, + "y": 1836.8339614868164, + "z": "ab45b2a0.2d254", "wires": [] }, { - "id": "9719bb6e.70a358", + "id": "9ada057d.8d0ed8", "type": "comment", "name": "Set allotted resource type if not sent by SO", "info": "", "comments": "", - "x": 653, - "y": 218, - "z": "307cdf1d.539fd", + "x": 647.0000190734863, + "y": 245.0000991821289, + "z": "ab45b2a0.2d254", "wires": [] }, { - "id": "2da52da7.95c362", + "id": "3e30e763.22be28", "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": 614.9233093261719, - "y": 258.5660562515259, - "z": "307cdf1d.539fd", + "x": 608.9233283996582, + "y": 285.5661554336548, + "z": "ab45b2a0.2d254", "wires": [ [ - "684d8da4.b880e4", - "7ce6426e.522ebc" + "1b1ef42.aa2a50c", + "5b1a6ad6.d32444" ] ] }, { - "id": "684d8da4.b880e4", + "id": "1b1ef42.aa2a50c", "type": "outcome", "name": "NULL", "xml": "<outcome value=''>", "comments": "", "outputs": 1, - "x": 817.9234619140625, - "y": 243.56605911254883, - "z": "307cdf1d.539fd", + "x": 811.9234809875488, + "y": 270.56615829467773, + "z": "ab45b2a0.2d254", "wires": [ [ - "63c4923.3c3426c" + "23a0059d.3f004a" ] ] }, { - "id": "7ce6426e.522ebc", + "id": "5b1a6ad6.d32444", "type": "other", "name": "other", "xml": "<outcome value='Other'>\n", "comments": "", "outputs": 1, - "x": 810.9232902526855, - "y": 283.5660791397095, - "z": "307cdf1d.539fd", + "x": 804.9233093261719, + "y": 310.5661783218384, + "z": "ab45b2a0.2d254", "wires": [ [ - "bca9b7c7.73b158" + "e101a8fa.94ec78" ] ] }, { - "id": "bca9b7c7.73b158", + "id": "e101a8fa.94ec78", "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": 1042.9232749938965, - "y": 283.56608390808105, - "z": "307cdf1d.539fd", + "x": 1036.9232940673828, + "y": 310.56618309020996, + "z": "ab45b2a0.2d254", "wires": [] }, { - "id": "4c5ae3e7.94b54c", + "id": "535c3465.db6a5c", "type": "comment", "name": "For storage in AAI connection-attachment-topology", "info": "", "comments": "", - "x": 677.9999618530273, - "y": 353, - "z": "307cdf1d.539fd", + "x": 671.9999809265137, + "y": 380.0000991821289, + "z": "ab45b2a0.2d254", "wires": [] }, { - "id": "566d8977.bdc218", + "id": "7158b402.34b20c", "type": "comment", "name": "Obtain different URL, template location etc", "info": "For saving resource information to MDSAL & for AAI", "comments": "", - "x": 652.9999465942383, - "y": 434.8889093399048, - "z": "307cdf1d.539fd", + "x": 646.9999656677246, + "y": 461.8890085220337, + "z": "ab45b2a0.2d254", "wires": [] }, { - "id": "eba557cf.66dec8", + "id": "8b7046e5.63a738", "type": "comment", "name": "Used for Put AR by id to MDSAL", "info": "", "comments": "", - "x": 619.0000305175781, - "y": 523.8889265060425, - "z": "307cdf1d.539fd", + "x": 613.0000495910645, + "y": 550.8890256881714, + "z": "ab45b2a0.2d254", "wires": [] }, { - "id": "6d67020a.67de0c", + "id": "41e867cd.171798", "type": "comment", "name": "Obtain the last index in services", "info": "ServiceData is added by Provider code", "comments": "", - "x": 620.4444732666016, - "y": 709.8888711929321, - "z": "307cdf1d.539fd", + "x": 614.4444923400879, + "y": 736.888970375061, + "z": "ab45b2a0.2d254", "wires": [] }, { - "id": "1f74500.b2f7fb", + "id": "abedf313.5d507", "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": 598.2681350708008, - "y": 1773.3591890335083, - "z": "307cdf1d.539fd", + "x": 592.2681541442871, + "y": 1800.3592882156372, + "z": "ab45b2a0.2d254", "wires": [] }, { - "id": "6d4b764b.a8a308", + "id": "fac542dd.1d112", "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": 566.6812324523926, - "y": 1977.9749908447266, - "z": "307cdf1d.539fd", + "x": 536.6813507080078, + "y": 2033.975341796875, + "z": "ab45b2a0.2d254", "wires": [] }, { - "id": "63c4923.3c3426c", + "id": "23a0059d.3f004a", "type": "set", "name": "set tmp.ar.allotted-resource-type", "xml": "<set>\n<parameter name='tmp.ar.allotted-resource-type' value=\"SOTNAttachmentInstance\" />\n", "comments": "", - "x": 1057.0001487731934, - "y": 243.99998569488525, - "z": "307cdf1d.539fd", + "x": 1051.0001678466797, + "y": 271.00008487701416, + "z": "ab45b2a0.2d254", "wires": [] }, { - "id": "e855335b.71b3c", + "id": "77c2c758.5059b8", "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": 899.9941558837891, - "y": 1622.4937295913696, - "z": "307cdf1d.539fd", + "x": 893.9941749572754, + "y": 1649.4938287734985, + "z": "ab45b2a0.2d254", "wires": [ [] ] }, { - "id": "6c73a0d6.045f8", + "id": "8bddffb6.5284", "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": 649.0002670288086, - "y": 1707.0001182556152, - "z": "307cdf1d.539fd", + "x": 643.0002861022949, + "y": 1734.0002174377441, + "z": "ab45b2a0.2d254", "wires": [ [ - "17f1151d.06a5ab", - "ccace23a.27702", - "325329b.e9052d6" + "d13a7894.7c9648", + "a17ed53e.8a7c48", + "2a45ba4f.903ad6" ] ] }, { - "id": "17f1151d.06a5ab", + "id": "d13a7894.7c9648", "type": "not-found", "name": "not-found", "xml": "<outcome value='not-found'>\n", "comments": "", "outputs": 1, - "x": 898.6416206359863, - "y": 1745.3314485549927, - "z": "307cdf1d.539fd", + "x": 892.6416397094727, + "y": 1772.3315477371216, + "z": "ab45b2a0.2d254", "wires": [ [ - "503ba1c3.ce81b" + "2a58bb37.857ca4" ] ] }, { - "id": "ccace23a.27702", + "id": "a17ed53e.8a7c48", "type": "failure", "name": "failure", "xml": "<outcome value='failure'>\n", "comments": "", "outputs": 1, - "x": 889.6416702270508, - "y": 1713.8314743041992, - "z": "307cdf1d.539fd", + "x": 883.6416893005371, + "y": 1740.8315734863281, + "z": "ab45b2a0.2d254", "wires": [ [ - "503ba1c3.ce81b" + "2a58bb37.857ca4" ] ] }, { - "id": "325329b.e9052d6", + "id": "2a45ba4f.903ad6", "type": "success", "name": "success", "xml": "<outcome value='success'>\n", "comments": "", "outputs": 1, - "x": 893.3917083740234, - "y": 1684.1885791793466, - "z": "307cdf1d.539fd", + "x": 887.3917274475098, + "y": 1711.1886783614755, + "z": "ab45b2a0.2d254", "wires": [ [ - "565609af.5fb058" + "4b685690.de2cf8" ] ] }, { - "id": "503ba1c3.ce81b", + "id": "2a58bb37.857ca4", "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": 1059.3917083740234, - "y": 1714.5814981460571, - "z": "307cdf1d.539fd", + "x": 1053.3917274475098, + "y": 1741.581597328186, + "z": "ab45b2a0.2d254", "wires": [] }, { - "id": "565609af.5fb058", + "id": "4b685690.de2cf8", "type": "block", "name": "block", "xml": "<block>\n", "atomic": "false", "comments": "", "outputs": 1, - "x": 1035.0476760864258, - "y": 1680.3807483687997, - "z": "307cdf1d.539fd", + "x": 1029.047695159912, + "y": 1707.3808475509286, + "z": "ab45b2a0.2d254", "wires": [ [] ] }, { - "id": "cd08d99a.10abb8", + "id": "ab5d9313.ad157", "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": 718.9999542236328, - "y": 1133.0001649856567, - "z": "307cdf1d.539fd", + "x": 712.9999732971191, + "y": 1160.0002641677856, + "z": "ab45b2a0.2d254", "wires": [ [ - "ef2f7f10.9941b", - "b03054a4.69fc18", - "8aa9a171.e089b" + "9094ff9e.53d26", + "43bc3599.27bffc", + "fc9fd873.a374e8" ] ] }, { - "id": "ef2f7f10.9941b", + "id": "9094ff9e.53d26", "type": "not-found", "name": "not-found", "xml": "<outcome value='not-found'>\n", "comments": "", "outputs": 1, - "x": 1027.3080139160156, - "y": 1164.9984407424927, - "z": "307cdf1d.539fd", + "x": 1021.308032989502, + "y": 1191.9985399246216, + "z": "ab45b2a0.2d254", "wires": [ [ - "65c0c4d1.41acbc" + "421ec30a.485b8c" ] ] }, { - "id": "b03054a4.69fc18", + "id": "43bc3599.27bffc", "type": "failure", "name": "failure", "xml": "<outcome value='failure'>\n", "comments": "", "outputs": 1, - "x": 1018.3080635070801, - "y": 1133.4984664916992, - "z": "307cdf1d.539fd", + "x": 1012.3080825805664, + "y": 1160.4985656738281, + "z": "ab45b2a0.2d254", "wires": [ [ - "65c0c4d1.41acbc" + "421ec30a.485b8c" ] ] }, { - "id": "8aa9a171.e089b", + "id": "fc9fd873.a374e8", "type": "success", "name": "success", "xml": "<outcome value='success'>\n", "comments": "", "outputs": 1, - "x": 1022.0581016540527, - "y": 1103.8555713668466, - "z": "307cdf1d.539fd", + "x": 1016.0581207275391, + "y": 1130.8556705489755, + "z": "ab45b2a0.2d254", "wires": [ [ - "c70fcaaf.55a4c8" + "c6163b00.f85308" ] ] }, { - "id": "65c0c4d1.41acbc", + "id": "421ec30a.485b8c", "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": 1188.0581016540527, - "y": 1134.2484903335571, - "z": "307cdf1d.539fd", + "x": 1182.058120727539, + "y": 1161.248589515686, + "z": "ab45b2a0.2d254", "wires": [] }, { - "id": "c70fcaaf.55a4c8", + "id": "c6163b00.f85308", "type": "block", "name": "block", "xml": "<block>\n", "atomic": "false", "comments": "", "outputs": 1, - "x": 1163.714069366455, - "y": 1100.0477405562997, - "z": "307cdf1d.539fd", + "x": 1157.7140884399414, + "y": 1127.0478397384286, + "z": "ab45b2a0.2d254", "wires": [ [] ] }, { - "id": "4609b233.9d833c", + "id": "f91628dc.a22298", "type": "comment", "name": "Put the parent allotted resource in mdsal", "info": "", "comments": "", - "x": 647.9999008178711, - "y": 1095.0000715255737, - "z": "307cdf1d.539fd", + "x": 641.9999198913574, + "y": 1122.0001707077026, + "z": "ab45b2a0.2d254", "wires": [] }, { - "id": "3292b995.f13186", + "id": "8b5e7723.d59fc8", "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": 644.3570861816406, - "y": 1297.5716905593872, - "z": "307cdf1d.539fd", + "x": 638.357105255127, + "y": 1324.571789741516, + "z": "ab45b2a0.2d254", "wires": [] }, { - "id": "c56a158b.169088", + "id": "6c39c83c.d7b048", "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": 558.2138671875, - "y": 1265.3810472488403, - "z": "307cdf1d.539fd", + "x": 552.2138862609863, + "y": 1292.3811464309692, + "z": "ab45b2a0.2d254", "wires": [] }, { - "id": "71214832.584f28", + "id": "6b976d2c.2711d4", "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": 623.1668853759766, - "y": 1331.6668758392334, - "z": "307cdf1d.539fd", + "x": 617.1669044494629, + "y": 1358.6669750213623, + "z": "ab45b2a0.2d254", "wires": [] }, { - "id": "23b7a6d1.9a369a", + "id": "c9e7bba5.2bcb28", "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": 575.4997253417969, - "y": 1405.0004034042358, - "z": "307cdf1d.539fd", + "x": 569.4997444152832, + "y": 1432.0005025863647, + "z": "ab45b2a0.2d254", "wires": [ [] ] }, { - "id": "4ebfff40.f0aa5", + "id": "5aa40ff8.faf21", "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": 626.4867630004883, - "y": 1460.951636314392, - "z": "307cdf1d.539fd", + "x": 620.4867820739746, + "y": 1487.951735496521, + "z": "ab45b2a0.2d254", "wires": [] }, { - "id": "cb431e44.1b2d7", + "id": "46cb4068.e43d3", "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": 571.0553817749023, - "y": 1366.5557613372803, - "z": "307cdf1d.539fd", + "x": 565.0554008483887, + "y": 1393.5558605194092, + "z": "ab45b2a0.2d254", "wires": [] }, { - "id": "10171c26.195644", + "id": "b1148074.b83dc", "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": 688.3888702392578, - "y": 1231.5556077957153, - "z": "307cdf1d.539fd", + "x": 682.3888893127441, + "y": 1258.5557069778442, + "z": "ab45b2a0.2d254", "wires": [] }, { - "id": "46e15a07.ae9ba4", + "id": "a64f1b8.759c3e8", "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": 683.5000152587891, - "y": 1059.0000104904175, - "z": "307cdf1d.539fd", + "x": 677.5000343322754, + "y": 1086.0001096725464, + "z": "ab45b2a0.2d254", "wires": [ [] ] }, { - "id": "c34405e1.82d938", + "id": "f24b78b1.fdc468", "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": 679.4999389648438, - "y": 1016.0001468658447, - "z": "307cdf1d.539fd", + "x": 673.4999580383301, + "y": 1043.0002460479736, + "z": "ab45b2a0.2d254", "wires": [ [] ] }, { - "id": "a521acad.d004d", + "id": "5c890ede.9091d", "type": "comment", "name": "Prepare Parent AR URL", "info": "Preparation to set provided-allotted-resource in parent service instance", "comments": "", - "x": 597.5003967285156, - "y": 945.0001001358032, - "z": "307cdf1d.539fd", + "x": 591.500415802002, + "y": 972.0001993179321, + "z": "ab45b2a0.2d254", "wires": [] }, { - "id": "371cf69b.dabcaa", + "id": "9b1a0521.5c3978", "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": 636.5001907348633, - "y": 978.5000395774841, - "z": "307cdf1d.539fd", + "x": 630.5002098083496, + "y": 1005.500138759613, + "z": "ab45b2a0.2d254", "wires": [] }, { - "id": "471a396d.b72ac8", + "id": "1dce57cb.3a2f28", "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": 826.000358581543, - "y": 1585.4998025894165, - "z": "307cdf1d.539fd", + "x": 820.0003776550293, + "y": 1612.4999017715454, + "z": "ab45b2a0.2d254", "wires": [] }, { - "id": "3bd67468.05082c", + "id": "ef75ff36.6e6a8", "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": 2193.7569732666016, - "y": 816.6458292007446, - "z": "307cdf1d.539fd", + "x": 2187.756992340088, + "y": 843.6459283828735, + "z": "ab45b2a0.2d254", "wires": [] }, { - "id": "23139ea3.633f22", + "id": "a32862a8.8af3d", "type": "set", "name": "set tmp.found-cidx", "xml": "<set>\n<parameter name='tmp.found-cidx' value=\"`false`\" />\n\n\n", "comments": "", - "x": 1319.6461448669434, - "y": 728.3125722408295, - "z": "307cdf1d.539fd", + "x": 1313.6461639404297, + "y": 755.3126714229584, + "z": "ab45b2a0.2d254", "wires": [] }, { - "id": "572750a4.da966", + "id": "46efcfd6.a7a1a", "type": "comment", "name": "Add to parent services provided-allotted-resources in mdsal", "info": "", "comments": "", - "x": 708.2015075683594, - "y": 912.9792566299438, - "z": "307cdf1d.539fd", + "x": 702.2015266418457, + "y": 939.9793558120728, + "z": "ab45b2a0.2d254", "wires": [] }, { - "id": "c22af7ab.9a1898", + "id": "b6eb1599.cd85e8", "type": "comment", "name": "Add to allotted-resources in mdsal", "info": "", "comments": "", - "x": 628.9686965942383, - "y": 1198.968936920166, - "z": "307cdf1d.539fd", + "x": 622.9687156677246, + "y": 1225.969036102295, + "z": "ab45b2a0.2d254", "wires": [] }, { - "id": "5b1e701f.600c", + "id": "19566392.15832c", "type": "block", "name": "block: atomic", "xml": "<block atomic=\"true\">\n", "atomic": "false", "comments": "", "outputs": 1, - "x": 1302.000051498413, - "y": 626.2777605056763, - "z": "307cdf1d.539fd", + "x": 1296.0000705718994, + "y": 653.2778596878052, + "z": "ab45b2a0.2d254", "wires": [ [ - "f33fd165.6af9d" + "be105cba.576f" ] ] }, { - "id": "f33fd165.6af9d", + "id": "be105cba.576f", "type": "switchNode", "name": "switch cr length", "xml": "<switch test='`$mdsal-ar.connection-attachment-allotted-resource_length`'>\n", "comments": "", "outputs": 1, - "x": 1489.8574314117432, - "y": 626.8968958854675, - "z": "307cdf1d.539fd", + "x": 1483.8574504852295, + "y": 653.8969950675964, + "z": "ab45b2a0.2d254", "wires": [ [ - "30bd1249.6e0cce" + "a5af4603.e786b8" ] ] }, { - "id": "30bd1249.6e0cce", + "id": "a5af4603.e786b8", "type": "other", "name": "outcome 1", "xml": "<outcome value='1'>\n", "comments": "", "outputs": 1, - "x": 1689.1905536651611, - "y": 626.8969745635986, - "z": "307cdf1d.539fd", + "x": 1683.1905727386475, + "y": 653.8970737457275, + "z": "ab45b2a0.2d254", "wires": [ [ - "cc9f7f26.8914e" + "2a3354d7.ee765c" ] ] }, { - "id": "6e7b925f.51d77c", + "id": "b07d75d2.a2b088", "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": 774.0000534057617, - "y": 621.000036239624, - "z": "307cdf1d.539fd", + "x": 768.000072479248, + "y": 648.0001354217529, + "z": "ab45b2a0.2d254", "wires": [ [ - "8b5477db.c5c9d8", - "94a8a58d.dee408" + "66a512c5.0faacc", + "9a3ff920.b9ec88" ] ] }, { - "id": "94a8a58d.dee408", + "id": "9a3ff920.b9ec88", "type": "failure", "name": "failure", "xml": "<outcome value='failure'>\n", "comments": "", "outputs": 1, - "x": 1142.0000839233398, - "y": 591.0000343322754, - "z": "307cdf1d.539fd", + "x": 1136.0001029968262, + "y": 618.0001335144043, + "z": "ab45b2a0.2d254", "wires": [ [ - "9c37a2ea.b7b0a" + "9cab679f.f79248" ] ] }, { - "id": "9c37a2ea.b7b0a", + "id": "9cab679f.f79248", "type": "block", "name": "block", "xml": "<block>\n", "atomic": "false", "comments": "", "outputs": 1, - "x": 1294.0000839233398, - "y": 590.0000343322754, - "z": "307cdf1d.539fd", + "x": 1288.0001029968262, + "y": 617.0001335144043, + "z": "ab45b2a0.2d254", "wires": [ [] ] }, { - "id": "92f874df.f4a158", + "id": "26fdc495.60ac0c", "type": "block", "name": "block : atomic", "xml": "<block atomic=\"true\">", "atomic": "true", "outputs": 1, - "x": 570.5556106567383, - "y": 1540.6666536331177, - "z": "307cdf1d.539fd", + "x": 564.5556297302246, + "y": 1567.6667528152466, + "z": "ab45b2a0.2d254", "wires": [ [ - "53c527c9.b22648", - "e855335b.71b3c" + "3267c7d4.904798", + "77c2c758.5059b8" ] ] }, { - "id": "53c527c9.b22648", + "id": "3267c7d4.904798", "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": 840.5556755065918, - "y": 1540.6667013168335, - "z": "307cdf1d.539fd", + "x": 834.5556945800781, + "y": 1567.6668004989624, + "z": "ab45b2a0.2d254", "wires": [ [ - "261e5f2.fe442a" + "2605999a.01d556" ] ] }, { - "id": "d5857a39.639db8", + "id": "2051e6d6.e5a81a", "type": "comment", "name": "Take the parameter names by removing prefix", "info": "", "comments": "", - "x": 1380.5554580688477, - "y": 1496.6667346954346, - "z": "307cdf1d.539fd", + "x": 1374.555477142334, + "y": 1523.6668338775635, + "z": "ab45b2a0.2d254", "wires": [] }, { - "id": "6df2fba8.889c14", + "id": "43dec0c4.9aa5a", "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": 1338.5901260375977, - "y": 1531.6458778381348, - "z": "307cdf1d.539fd", + "x": 1332.590145111084, + "y": 1558.6459770202637, + "z": "ab45b2a0.2d254", "wires": [ [] ] }, { - "id": "bd5f9072.2a8a7", + "id": "e2d39b7e.8a6eb8", "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[$i].name`\" value='`$param-prefix[$param-prefix_length -1]`'/>\n", "comments": "", - "x": 1309.034652709961, - "y": 1564.6458778381348, - "z": "307cdf1d.539fd", + "x": 1303.0346717834473, + "y": 1591.6459770202637, + "z": "ab45b2a0.2d254", "wires": [] }, { - "id": "4a2aa60e.ed5c08", + "id": "36eb754f.ed7b4a", "type": "comment", "name": "Remove VNFC prefix", "info": "", "comments": "", - "x": 781.5556030273438, - "y": 1508.1110153198242, - "z": "307cdf1d.539fd", + "x": 775.5556221008301, + "y": 1535.1111145019531, + "z": "ab45b2a0.2d254", "wires": [] }, { - "id": "261e5f2.fe442a", + "id": "2605999a.01d556", "type": "block", "name": "block : atomic", "xml": "<block atomic=\"true\">", "atomic": "true", "outputs": 1, - "x": 1087.5555114746094, - "y": 1539.1110458374023, - "z": "307cdf1d.539fd", + "x": 1081.5555305480957, + "y": 1566.1111450195312, + "z": "ab45b2a0.2d254", "wires": [ [ - "6df2fba8.889c14", - "bd5f9072.2a8a7" + "43dec0c4.9aa5a", + "e2d39b7e.8a6eb8" ] ] }, { - "id": "5a956e5b.11a09", + "id": "e02c5c21.82a2", "type": "save", "name": "save srcLTP relationship in AAI", - "xml": "<save 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 force=\"true\" pfx=\"tmp.AnAI-data\">\n<parameter name=\"relationship-list.relationship[0].related-to\" value=\"p-interface\" />\n<parameter name=\"relationship-list.relationship[0].related-link\" value=\"`'/network/pnfs/pnf/' + $prop.connection-attachment.access-node-id + '/p-interfaces/p-interface/' + $prop.connection-attachment.access-ltp-id`\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-key\" value=\"p-interface.interface-name\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-value\" value=\"`$src-ltpId`\" />\n\n\n\n", + "xml": "<save 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 force=\"true\" pfx=\"tmp.AnAI-data\">\n<parameter name=\"relationship-list.relationship[0].related-to\" value=\"p-interface\" />\n<parameter name=\"relationship-list.relationship[0].related-link\" value=\"`'/network/pnfs/pnf/' + $prop.connection-attachment.access-node-id + '/p-interfaces/p-interface/' + $src-ltpId`\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-key\" value=\"p-interface.interface-name\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-value\" value=\"`$src-ltpId`\" />\n\n\n\n", "comments": "", "outputs": 1, - "x": 619.0039329528809, - "y": 1925.0039825439453, - "z": "307cdf1d.539fd", + "x": 590.0041046142578, + "y": 1988.0046367645264, + "z": "ab45b2a0.2d254", "wires": [ [] ] + }, + { + "id": "bde5bdf6.37338", + "type": "set", + "name": "set src-ltpId", + "xml": "<set>\n<parameter name='src-ltpId' value=\"`'nodeId-' + $prop.connection-attachment.access-node-id + '-ltpId-' + $prop.connection-attachment.access-ltp-id`\" />\n", + "comments": "", + "x": 534.0001983642578, + "y": 1952.0004014968872, + "z": "ab45b2a0.2d254", + "wires": [] } ] |