summaryrefslogtreecommitdiffstats
path: root/platform-logic/ran-slice-api/src/main
diff options
context:
space:
mode:
authorSandeep Shah <sandeeplinux1068@gmail.com>2020-12-13 01:57:25 -0600
committerSandeep Shah <sandeeplinux1068@gmail.com>2021-01-23 19:58:12 -0600
commitf28520bb7e8ad6ca22d433c03c57212b2eb4bac5 (patch)
treed473357f4727db2f5c1d602e557deebcbcf63e06 /platform-logic/ran-slice-api/src/main
parent110bb110a48b98a40dad33e80071e0a21386f11d (diff)
DG Update and Templates for ranSlice feature
Additional DG and templates to support ranSlice feature. This would include sub-DG's for varioius actions for instantiateRANSlice RPC/DG execution Issue-ID: CCSDK-3008 Signed-off-by: SandeepLinux <Sandeep.Shah@ibm.com> Change-Id: I749a97b061e67644ee77bd56dd3725e5b9e7eb5a
Diffstat (limited to 'platform-logic/ran-slice-api/src/main')
-rw-r--r--platform-logic/ran-slice-api/src/main/json/ran-slice-api_instantiateRANSlice.json4022
-rw-r--r--platform-logic/ran-slice-api/src/main/json/ran-slice-api_instantiateRANSliceAllocate.json5349
-rw-r--r--platform-logic/ran-slice-api/src/main/resources/graph.versions1
-rw-r--r--platform-logic/ran-slice-api/src/main/xml/ran-slice-api_instantiateRANSlice.xml1094
-rw-r--r--platform-logic/ran-slice-api/src/main/xml/ran-slice-api_instantiateRANSliceAllocate.xml2094
5 files changed, 7777 insertions, 4783 deletions
diff --git a/platform-logic/ran-slice-api/src/main/json/ran-slice-api_instantiateRANSlice.json b/platform-logic/ran-slice-api/src/main/json/ran-slice-api_instantiateRANSlice.json
index 56d9d79f..14faf799 100644
--- a/platform-logic/ran-slice-api/src/main/json/ran-slice-api_instantiateRANSlice.json
+++ b/platform-logic/ran-slice-api/src/main/json/ran-slice-api_instantiateRANSlice.json
@@ -1,36 +1,36 @@
[
{
- "id": "c4a1cd16.7b27b",
+ "id": "318c8a1a.389db6",
"type": "method",
"name": "method",
"xml": "<method rpc='instantiateRANSlice' mode='sync'>\n",
"comments": "",
"outputs": 1,
- "x": 119.0103988647461,
- "y": 176.9895896911621,
- "z": "317ebaae.5c7d96",
+ "x": 122,
+ "y": 218.9895896911621,
+ "z": "504d7698.3603d8",
"wires": [
[
- "e1d830d1.8aeb1"
+ "b10f0325.f8529"
]
]
},
{
- "id": "40aef76b.a34518",
+ "id": "78b03833.6b3868",
"type": "dgstart",
"name": "DGSTART",
"outputs": 1,
- "x": 122.0103988647461,
- "y": 26.989585876464844,
- "z": "317ebaae.5c7d96",
+ "x": 125,
+ "y": 68.98958587646484,
+ "z": "504d7698.3603d8",
"wires": [
[
- "c9c0e29b.d575"
+ "5b6b9a25.52ad74"
]
]
},
{
- "id": "c9c0e29b.d575",
+ "id": "5b6b9a25.52ad74",
"type": "service-logic",
"name": "ran-slice-api ${project.version}",
"module": "ran-slice-api",
@@ -38,4128 +38,666 @@
"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='ran-slice-api' version='${project.version}'>",
"outputs": 1,
- "x": 180.01038360595703,
- "y": 87.98968124389648,
- "z": "317ebaae.5c7d96",
+ "x": 182.99998474121094,
+ "y": 129.98968124389648,
+ "z": "504d7698.3603d8",
"wires": [
[
- "c4a1cd16.7b27b"
+ "318c8a1a.389db6"
]
]
},
{
- "id": "e1d830d1.8aeb1",
+ "id": "b10f0325.f8529",
"type": "block",
"name": "block : atomic",
"xml": "<block atomic='true'>",
"atomic": "true",
"comments": "",
"outputs": 1,
- "x": 76.5,
- "y": 346.9896125793457,
- "z": "317ebaae.5c7d96",
+ "x": 131.48959732055664,
+ "y": 383.9896306991577,
+ "z": "504d7698.3603d8",
"wires": [
[
- "6c6be489.79d9fc",
- "509a6cee.748714",
- "9d8a89a1.8211e8",
- "67eca2fb.63a4ec",
- "758e52c8.0668ec",
- "b4487540.a0ae18",
- "f80159a4.6ccf38",
- "64fd9b4b.12ba64",
- "a2c6edf3.f8672",
- "7d920136.f456d",
- "de12fc02.aeebe",
- "ea3a0893.8b0e98"
+ "3790685d.9bf398",
+ "67ee2d98.f55e04",
+ "809f557a.294558",
+ "7495081e.8e0478",
+ "ebf3026e.c0909",
+ "d8035bd2.9c25d8",
+ "ef1856e1.0d0dd8",
+ "fe92e0a3.2157e",
+ "58476f15.520dd",
+ "b83f1c3e.1d42c",
+ "f925c432.c26848",
+ "122277f1.7b1558",
+ "65125671.2cb738"
]
]
},
{
- "id": "6c6be489.79d9fc",
+ "id": "122277f1.7b1558",
"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=\"SUCCESSFUL Execution\" />\n",
+ "xml": "<return status='success'>\n<parameter name=\"ack-final\" value=\"Y\" />\n<parameter name=\"error-code\" value=\"200\" />\n<parameter name=\"error-message\" value=\"SUCCESSFUL Execution\" />",
"comments": "",
- "x": 166.01065063476562,
- "y": 787.9897556304932,
- "z": "317ebaae.5c7d96",
+ "x": 391.48958587646484,
+ "y": 929.9899969100952,
+ "z": "504d7698.3603d8",
"wires": []
},
{
- "id": "4a130b8f.f71f14",
+ "id": "bdbd152.e20c4e8",
"type": "comment",
"name": "instantiateRANSlice",
"info": "",
"comments": "",
- "x": 404.0103988647461,
- "y": 20,
- "z": "317ebaae.5c7d96",
+ "x": 407,
+ "y": 62,
+ "z": "504d7698.3603d8",
"wires": []
},
{
- "id": "509a6cee.748714",
+ "id": "3790685d.9bf398",
"type": "record",
"name": "record",
"xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.FileRecorder\">\n<parameter name=\"file\" value=\"/opt/opendaylight/current/data/log/instantiateRANSlice.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"RPC to handle instantiateRANSlice.: \"/>\n<parameter name=\"field2\" value=\"`$instantiate-r-a-n-slice-input.action`\"/>\n<parameter name=\"field3\" value=\"`$instantiate-r-a-n-slice-input.common-header.timestamp`\"/>\n<parameter name=\"field4\" value=\"`$instantiate-r-a-n-slice-input.common-header.request-id`\"/>\n<parameter name=\"field5\" value=\"`$instantiate-r-a-n-slice-input.common-header.originator-id`\"/>\n<parameter name=\"field6\" value=\"RPC Payload String \"/>\n<parameter name=\"field7\" value=\"`$instantiate-r-a-n-slice-input.payload`\"/>",
"comments": "",
"outputs": 1,
- "x": 323.0107116699219,
- "y": 141.01045322418213,
- "z": "317ebaae.5c7d96",
+ "x": 471.0003471374512,
+ "y": 173.01045608520508,
+ "z": "504d7698.3603d8",
"wires": [
[]
]
},
{
- "id": "67eca2fb.63a4ec",
+ "id": "809f557a.294558",
"type": "execute",
"name": "execute jsonStringToCtx",
"xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='jsonStringToCtx'>\n\t<parameter name='source' value='instantiate-r-a-n-slice-input.payload' />\n\t<parameter name='outputPath' value='payloadJson' />\n\t<parameter name='isEscaped' value='false' />",
"comments": "",
"outputs": 1,
- "x": 380.0104064941406,
- "y": 228.01041674613953,
- "z": "317ebaae.5c7d96",
+ "x": 528.0000305175781,
+ "y": 262.0104217529297,
+ "z": "504d7698.3603d8",
"wires": [
[
- "77dff481.da626c"
+ "d3a45cc9.82d03"
]
]
},
{
- "id": "77dff481.da626c",
+ "id": "d3a45cc9.82d03",
"type": "other",
"name": "success",
"xml": "<outcome value='success'>\n",
"comments": "",
"outputs": 1,
- "x": 602.0104331970215,
- "y": 189.01043128967285,
- "z": "317ebaae.5c7d96",
+ "x": 750.0000686645508,
+ "y": 221.0104341506958,
+ "z": "504d7698.3603d8",
"wires": [
[
- "72e3bd1b.50aec4"
+ "84fd40ea.3aa1a"
]
]
},
{
- "id": "61ec56e4.5c24d8",
+ "id": "a83025f6.6ddba8",
"type": "record",
"name": "record",
"xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.FileRecorder\">\n<parameter name=\"file\" value=\"/opt/opendaylight/current/data/log/instantiateRANSlice.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"Payload for instantiateRANSlice.: \"/>\n<parameter name=\"field2\" value=\"`$payloadJson.input.sliceProfile.sliceProfileId`\"/>\n<parameter name=\"field3\" value=\"`$payloadJson.input.sliceProfile.NSSAI`\"/>\n<parameter name=\"field4\" value=\"`$payloadJson.input.sliceProfile.maxNumberofUEs`\"/>\n<parameter name=\"field5\" value=\"`$payloadJson.input.sliceProfile.latency`\"/>\n<parameter name=\"field6\" value=\"`$payloadJson.input.sliceProfile.uLThptPerSlice`\"/>\n<parameter name=\"field7\" value=\"`$payloadJson.input.sliceProfile.dLThptPerSlice`\"/>\n<parameter name=\"field8\" value=\"`$payloadJson.input.sliceProfile.maxNumberofConns`\"/>\n<parameter name=\"field9\" value=\"`$payloadJson.input.sliceProfile.coverageAreaList[0]`\"/>\n<parameter name=\"field10\" value=\"`$payloadJson.input.sliceProfile.uEMobilityLevel`\"/>\n<parameter name=\"field11\" value=\"`$payloadJson.input.sliceProfile.resourceSharingLevel`\"/>\n<parameter name=\"field12\" value=\"`$payloadJson.input.RANNSSIId`\"/>\n<parameter name=\"field13\" value=\"`$payloadJson.input.RANNFNSSIId`\"/>\n<parameter name=\"field14\" value=\"`$payloadJson.input.callbackURL`\"/>\n\n\n",
"comments": "",
"outputs": 1,
- "x": 958.010627746582,
- "y": 204.0104637145996,
- "z": "317ebaae.5c7d96",
+ "x": 1107.0002746582031,
+ "y": 238.0104637145996,
+ "z": "504d7698.3603d8",
"wires": [
[]
]
},
{
- "id": "758e52c8.0668ec",
+ "id": "7495081e.8e0478",
"type": "execute",
"name": "execute Properties",
"xml": "<execute plugin='org.onap.ccsdk.sli.plugins.prop.PropertiesNode' method='readProperties' >\n <parameter name='fileName' value='/opt/onap/ccsdk/data/properties/ran-slice-api-dg.properties' />\n <parameter name='contextPrefix' value='prop' />\n",
"comments": "",
"outputs": 1,
- "x": 369.0103988647461,
- "y": 313.0103826522827,
- "z": "317ebaae.5c7d96",
+ "x": 505,
+ "y": 349.0103759765625,
+ "z": "504d7698.3603d8",
"wires": [
[]
]
},
{
- "id": "b4487540.a0ae18",
+ "id": "ebf3026e.c0909",
"type": "record",
"name": "record",
"xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.FileRecorder\">\n<parameter name=\"file\" value=\"/opt/opendaylight/current/data/log/instantiateRANSlice.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"Properties read .. controller details \"/>\n<parameter name=\"field2\" value=\"`$prop.controller.user`\"/>\n<parameter name=\"field3\" value=\"`$prop.controller.pwd`\"/>\n<parameter name=\"field4\" value=\"`$prop.controller.url`\"/>\n<parameter name=\"field5\" value=\"ransim-mounted (true/false): \"/>\n<parameter name=\"field6\" value=\"`$prop.ransim-mounted`\"/>\n<parameter name=\"field7\" value=\"config DB deployed (true/false): \"/>\n<parameter name=\"field8\" value=\"`$prop.configdb-deployed`\"/>",
"comments": "",
"outputs": 1,
- "x": 404.01045989990234,
- "y": 352.01041316986084,
- "z": "317ebaae.5c7d96",
+ "x": 502.00006103515625,
+ "y": 396.0104064941406,
+ "z": "504d7698.3603d8",
"wires": [
[]
]
},
{
- "id": "64fd9b4b.12ba64",
+ "id": "ef1856e1.0d0dd8",
"type": "switchNode",
"name": "switch configdb deployed",
"xml": "<switch test='`$prop.configdb-deployed`'>\n",
"comments": "",
"outputs": 1,
- "x": 277.01045989990234,
- "y": 609.8992986679077,
- "z": "317ebaae.5c7d96",
+ "x": 420.0000686645508,
+ "y": 687.8992919921875,
+ "z": "504d7698.3603d8",
"wires": [
[
- "ded2801c.ef3a2"
+ "65183ec4.81b7c"
]
]
},
{
- "id": "ded2801c.ef3a2",
+ "id": "65183ec4.81b7c",
"type": "outcome",
"name": "Deployed",
"xml": "<outcome value='true'>\n",
"comments": "",
"outputs": 1,
- "x": 595.0105400085449,
- "y": 492.89928245544434,
- "z": "317ebaae.5c7d96",
+ "x": 537.0001487731934,
+ "y": 785.8992958068848,
+ "z": "504d7698.3603d8",
"wires": [
[
- "e0859b7f.d85eb8"
+ "eb319aab.d26b08"
]
]
},
{
- "id": "7e4d5189.45e2a",
- "type": "block",
- "name": "Get NRT RIC Details",
- "xml": "<block atomic='true'>",
- "atomic": "true",
- "comments": "",
- "outputs": 1,
- "x": 938.0104598999023,
- "y": 302.89931297302246,
- "z": "317ebaae.5c7d96",
- "wires": [
- [
- "4b00b49.5a6504c",
- "48505466.12175c",
- "e3b7195e.cb0908"
- ]
- ]
- },
- {
- "id": "4b00b49.5a6504c",
- "type": "execute",
- "name": "generate getNearRTRICsFromTrackingArea URL",
- "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$prop.restapi.configdb.getNearRTRICsFromTrackingArea`\"/>\n <parameter name=\"outputPath\" value=\"tmp.configdb.getNearRTRICsFromTrackingArea.url\"/>\n <parameter name=\"target\" value=\"{trackingArea}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.payload.trackingArea`\"/>",
- "comments": "",
- "outputs": 1,
- "x": 1299.010425567627,
- "y": 248.8993320465088,
- "z": "317ebaae.5c7d96",
- "wires": [
- []
- ]
- },
- {
- "id": "48505466.12175c",
- "type": "record",
- "name": "record configdb RestAPI parms",
- "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.FileRecorder\">\n<parameter name=\"file\" value=\"/opt/opendaylight/current/data/log/instantiateRANSlice.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"URL for configDB Get NearRTRIC for tracking area\"/>\n<parameter name='field2' value=\"`$prop.configdb.url + $tmp.configdb.getNearRTRICsFromTrackingArea.url`\" />\n<parameter name='field3' value=\"`$tmp.payload.trackingArea`\" />",
- "comments": "",
- "outputs": 1,
- "x": 1296.0105514526367,
- "y": 313.899302482605,
- "z": "317ebaae.5c7d96",
- "wires": [
- []
- ]
- },
- {
- "id": "e3b7195e.cb0908",
- "type": "execute",
- "name": "Get nearRTRIC for TrackingArea",
- "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"restapiUrl\" value=\"`$prop.configdb.url + $tmp.configdb.getNearRTRICsFromTrackingArea.url`\"/>\n<parameter name=\"httpMethod\" value=\"GET\"/>\n<parameter name=\"responsePrefix\" value=\"getRIC-configdb-response\"/>\n<parameter name='contentType' value='application/json' /> \n<parameter name='format' value='json' />\n<parameter name='accept' value='application/json' />",
- "comments": "",
- "outputs": 1,
- "x": 1265.010612487793,
- "y": 389.8993330001831,
- "z": "317ebaae.5c7d96",
- "wires": [
- [
- "b10a9436.2a0ee8",
- "4bda1c33.839634"
- ]
- ]
- },
- {
- "id": "b10a9436.2a0ee8",
- "type": "failure",
- "name": "failure",
- "xml": "<outcome value='failure'>\n",
- "comments": "",
- "outputs": 1,
- "x": 1496.0104904174805,
- "y": 333.8993330001831,
- "z": "317ebaae.5c7d96",
- "wires": [
- [
- "43081d74.6ec7f4"
- ]
- ]
- },
- {
- "id": "4bda1c33.839634",
- "type": "success",
- "name": "success",
- "xml": "<outcome value='success'>\n",
- "comments": "",
- "outputs": 1,
- "x": 1491.010368347168,
- "y": 429.8992109298706,
- "z": "317ebaae.5c7d96",
- "wires": [
- [
- "46f0989c.fe4aa8"
- ]
- ]
- },
- {
- "id": "43081d74.6ec7f4",
- "type": "block",
- "name": "block",
- "xml": "<block>\n",
- "atomic": "false",
- "comments": "",
- "outputs": 1,
- "x": 1633.010368347168,
- "y": 321.8993330001831,
- "z": "317ebaae.5c7d96",
- "wires": [
- [
- "9939a139.e912d",
- "6e8b69f.b6cee98"
- ]
- ]
- },
- {
- "id": "46f0989c.fe4aa8",
- "type": "block",
- "name": "block",
- "xml": "<block>\n",
- "atomic": "false",
- "comments": "",
- "outputs": 1,
- "x": 1650.0102825164795,
- "y": 421.8993453979492,
- "z": "317ebaae.5c7d96",
- "wires": [
- [
- "d43cc018.16f02",
- "a7529278.ba6f5"
- ]
- ]
- },
- {
- "id": "9939a139.e912d",
- "type": "returnFailure",
- "name": "return failure",
- "xml": "<return status='failure'>\n<parameter name='ack-final' value='Y'/>\n<parameter name='code' value='500'/>\n<parameter name='message' value='Error Getting Info from ConfigDB. Aborting RPC executiopn'/>",
- "comments": "",
- "x": 1799.010124206543,
- "y": 329.89934253692627,
- "z": "317ebaae.5c7d96",
- "wires": []
- },
- {
- "id": "d43cc018.16f02",
- "type": "record",
- "name": "record",
- "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.FileRecorder\">\n<parameter name=\"file\" value=\"/opt/opendaylight/current/data/log/instantiateRANSlice.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"Successfully Obtained NearRT RIC info from ConfigDB\"/>\n<parameter name=\"field2\" value=\"`$getRIC-configdb-response._length`\"/>\n<parameter name=\"field3\" value=\"`$getRIC-configdb-response.[0].gNBCUCPList_length`\"/>\n<parameter name=\"field4\" value=\"`$getRIC-configdb-response.[0].gNBCUUPList_length`\"/>\n<parameter name=\"field5\" value=\"`$getRIC-configdb-response.[0].gNBDUList_length`\"/>",
- "comments": "",
- "outputs": 1,
- "x": 1781.0102882385254,
- "y": 382.8993453979492,
- "z": "317ebaae.5c7d96",
- "wires": [
- []
- ]
- },
- {
- "id": "9d8a89a1.8211e8",
+ "id": "67ee2d98.f55e04",
"type": "set",
"name": "set default status value",
- "xml": "<set>\n<parameter name='code' value='200' />\n<parameter name='message' value='Successful execution of createPolicyInstance RPC' />",
- "comments": "",
- "x": 382.0103759765625,
- "y": 188.01044607162476,
- "z": "317ebaae.5c7d96",
- "wires": []
- },
- {
- "id": "6e8b69f.b6cee98",
- "type": "set",
- "name": "set",
- "xml": "<set>\n<parameter name='code' value='500'/>\n<parameter name='message' value='Error Getting Info from ConfigDB. Aborting RPC executiopn'/>",
+ "xml": "<set>\n<parameter name='error-code' value='200' />\n<parameter name='error-message' value='Successful execution of instantiateRANSice RPC' />",
"comments": "",
- "x": 1775.010368347168,
- "y": 270.0104169845581,
- "z": "317ebaae.5c7d96",
+ "x": 530.0000114440918,
+ "y": 220.0104489326477,
+ "z": "504d7698.3603d8",
"wires": []
},
{
- "id": "a7529278.ba6f5",
- "type": "execute",
- "name": "printContext",
- "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='printContext' >\n<parameter name='filename' value='/opt/opendaylight/current/data/log/ranSlice-instantiateRANSlice-configrsp-context.log' />\n\n\n",
- "comments": "",
- "outputs": 1,
- "x": 1793.788444519043,
- "y": 445.89934730529785,
- "z": "317ebaae.5c7d96",
- "wires": [
- []
- ]
- },
- {
- "id": "58d099f3.7d0b28",
+ "id": "b5c41718.82fdc8",
"type": "execute",
"name": "printContext",
"xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='printContext' >\n<parameter name='filename' value='/opt/opendaylight/current/data/log/ranSlice-instantiateRANSlice-context.log' />\n\n\n",
"comments": "",
"outputs": 1,
- "x": 932.0104446411133,
- "y": 129.01043510437012,
- "z": "317ebaae.5c7d96",
+ "x": 1080.0000801086426,
+ "y": 161.01043796539307,
+ "z": "504d7698.3603d8",
"wires": [
[]
]
},
{
- "id": "72e3bd1b.50aec4",
+ "id": "84fd40ea.3aa1a",
"type": "block",
"name": "block : atomic",
"xml": "<block atomic='true'>",
"atomic": "true",
"comments": "",
"outputs": 1,
- "x": 754.0104446411133,
- "y": 173.01043033599854,
- "z": "317ebaae.5c7d96",
+ "x": 902.0000801086426,
+ "y": 205.01043319702148,
+ "z": "504d7698.3603d8",
"wires": [
[
- "58d099f3.7d0b28",
- "61ec56e4.5c24d8"
+ "b5c41718.82fdc8",
+ "a83025f6.6ddba8"
]
]
},
{
- "id": "f80159a4.6ccf38",
+ "id": "d8035bd2.9c25d8",
"type": "set",
"name": "set Temp Variables",
"xml": "<set>\n<parameter name='tmp.payload.trackingArea' value='`$payloadJson.input.sliceProfile.coverageAreaList[0]`'/>\n<parameter name='tmp.payload.callbackURL' value='`$payloadJson.input.callbackURL`'/>\n<parameter name='tmp.payload.RANNFNSSIId' value='`$payloadJson.input.RANNFNSSIId`'/>\n<parameter name='tmp.payload.RANNSSIId' value='`$payloadJson.input.RANNSSIId`'/>\n<parameter name='tmp.payload.coverageAreaList_length' value='`$payloadJson.input.sliceProfile.coverageAreaList_length`'/>\n<parameter name='tmp.payload.dLThptPerSlice' value='`$payloadJson.input.sliceProfile.dLThptPerSlice`'/>\n<parameter name='tmp.payload.latency' value='`$payloadJson.input.sliceProfile.latency`'/>\n<parameter name='tmp.payload.maxNumberofConns' value='`$payloadJson.input.sliceProfile.maxNumberofConns`'/>\n<parameter name='tmp.payload.maxNumberofUEs' value='`$payloadJson.input.sliceProfile.maxNumberofUEs`'/>\n<parameter name='tmp.payload.resourceSharingLevel' value='`$payloadJson.input.sliceProfile.resourceSharingLevel`'/>\n<parameter name='tmp.payload.sliceProfileId' value='`$payloadJson.input.sliceProfile.sliceProfileId`'/>\n<parameter name='tmp.payload.sNSSAI' value='`$payloadJson.input.sliceProfile.sNSSAI`'/>\n<parameter name='tmp.payload.uEMobilityLevel' value='`$payloadJson.input.sliceProfile.uEMobilityLevel`'/>\n<parameter name='tmp.payload.uLThptPerSlice' value='`$payloadJson.input.sliceProfile.uLThptPerSlice`'/>\n<parameter name='tmp.payload.pLMNId' value='`$payloadJson.input.sliceProfile.pLMNIdList[0]`'/>",
"comments": "",
- "x": 349.01036834716797,
- "y": 394.010458946228,
- "z": "317ebaae.5c7d96",
+ "x": 509.9999694824219,
+ "y": 436.0104675292969,
+ "z": "504d7698.3603d8",
"wires": []
},
{
- "id": "51b717b7.59b568",
- "type": "for",
- "name": "For ConfigDB Entries",
- "xml": "<for index='id1' start='0' end=\"`$getRIC-configdb-response._length`\" >",
- "comments": "",
- "outputs": 1,
- "x": 232.01043701171875,
- "y": 1304.0001640319824,
- "z": "317ebaae.5c7d96",
- "wires": [
- [
- "eeed14f.a2a84e8",
- "82a3e7de.07c0f8",
- "de94f2f8.4c299",
- "4a23136f.c1b85c",
- "9cf75b58.81f948"
- ]
- ]
- },
- {
- "id": "eeed14f.a2a84e8",
- "type": "record",
- "name": "record",
- "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.FileRecorder\">\n<parameter name=\"file\" value=\"/opt/opendaylight/current/data/log/instantiateRANSlice.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"Config Payload Entry# \"/>\n<parameter name=\"field2\" value=\"`$id1`\"/>\n<parameter name=\"field3\" value=\"`$getRIC-configdb-response.[id1].nearRTRICId`\"/>\n<parameter name=\"field4\" value=\"`$getRIC-configdb-response.[id1].gNBId`\"/>",
- "comments": "",
- "outputs": 1,
- "x": 721.0104217529297,
- "y": 823.9999961853027,
- "z": "317ebaae.5c7d96",
- "wires": [
- []
- ]
- },
- {
- "id": "e0859b7f.d85eb8",
+ "id": "eb319aab.d26b08",
"type": "block",
"name": "block : atomic",
"xml": "<block atomic='true'>",
"atomic": "true",
"comments": "",
"outputs": 1,
- "x": 744.0103988647461,
- "y": 364.99999141693115,
- "z": "317ebaae.5c7d96",
- "wires": [
- [
- "7e4d5189.45e2a",
- "8ce378c5.83a878"
- ]
- ]
- },
- {
- "id": "8ce378c5.83a878",
- "type": "block",
- "name": "Instantiate RAN Slice",
- "xml": "<block atomic='true'>",
- "atomic": "true",
- "comments": "",
- "outputs": 1,
- "x": 415.01039123535156,
- "y": 753.0000600814819,
- "z": "317ebaae.5c7d96",
- "wires": [
- [
- "51b717b7.59b568",
- "f7b7744.5201f88"
- ]
- ]
- },
- {
- "id": "82a3e7de.07c0f8",
- "type": "block",
- "name": "DU",
- "xml": "<block atomic='true'>",
- "atomic": "true",
- "comments": "",
- "outputs": 1,
- "x": 309.0104560852051,
- "y": 4661.000790596008,
- "z": "317ebaae.5c7d96",
- "wires": [
- [
- "a15fde91.ba96b",
- "df357bb3.deda18",
- "35899298.9087be",
- "bc8fb654.181bb8",
- "672b731.15e6f8c"
- ]
- ]
- },
- {
- "id": "b70f5572.e88b78",
- "type": "block",
- "name": "Add RRM Policy Ratio",
- "xml": "<block atomic='true'>",
- "atomic": "true",
- "comments": "",
- "outputs": 1,
- "x": 837.0104370117188,
- "y": 6215.00071144104,
- "z": "317ebaae.5c7d96",
- "wires": [
- [
- "efe03418.fca818",
- "e35efe61.51312",
- "960c9faa.3fe03",
- "98bea7dc.413a88",
- "727c6951.dea9b8",
- "7c6ff37d.97f86c",
- "a6bb647c.467a58"
- ]
- ]
- },
- {
- "id": "564ca8c8.69b478",
- "type": "switchNode",
- "name": "ransim mounted",
- "xml": "<switch test='`$prop.ransim-mounted`'>\n",
- "comments": "",
- "outputs": 1,
- "x": 893.0105590820312,
- "y": 5443.0010051727295,
- "z": "317ebaae.5c7d96",
- "wires": [
- [
- "302d55a3.ad83ea",
- "36c72aa2.1702c6"
- ]
- ]
- },
- {
- "id": "302d55a3.ad83ea",
- "type": "outcome",
- "name": "Not Mounted",
- "xml": "<outcome value='false'>\n",
- "comments": "",
- "outputs": 1,
- "x": 1088.010585784912,
- "y": 5403.000912666321,
- "z": "317ebaae.5c7d96",
- "wires": [
- [
- "9c86fb03.be70b8"
- ]
- ]
- },
- {
- "id": "36c72aa2.1702c6",
- "type": "outcome",
- "name": "Mounted",
- "xml": "<outcome value='true'>\n",
- "comments": "",
- "outputs": 1,
- "x": 1068.0105590820312,
- "y": 5482.001004219055,
- "z": "317ebaae.5c7d96",
- "wires": [
- [
- "142451e6.f4dd5e"
- ]
- ]
- },
- {
- "id": "df357bb3.deda18",
- "type": "for",
- "name": "For DUList Entries",
- "xml": "<for index='id2' start='0' end='`$tmp.DUListEntries`' >",
- "comments": "",
- "outputs": 1,
- "x": 521.0104141235352,
- "y": 4982.0008907318115,
- "z": "317ebaae.5c7d96",
- "wires": [
- [
- "ea0fe17e.dc7d7",
- "cda7ae8e.cc82f",
- "4803f631.8b3b98",
- "b5e182bb.6be13"
- ]
- ]
- },
- {
- "id": "a15fde91.ba96b",
- "type": "record",
- "name": "record",
- "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.FileRecorder\">\n<parameter name=\"file\" value=\"/opt/opendaylight/current/data/log/instantiateRANSlice.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"Number of DU List Entries \"/>\n<parameter name=\"field2\" value=\"`$tmp.DUListEntries`\"/>",
- "comments": "",
- "outputs": 1,
- "x": 594.0104141235352,
- "y": 4699.000789642334,
- "z": "317ebaae.5c7d96",
- "wires": [
- []
- ]
- },
- {
- "id": "35899298.9087be",
- "type": "execute",
- "name": "set DU Level parms",
- "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'>\n\t<parameter name='outputPath' value='tmp.DUListEntries' />\n\t<parameter name='source' value=\"`'getRIC-configdb-response.[' + $id1 + '].gNBDUList_length'`\" />",
- "comments": "",
- "outputs": 1,
- "x": 590.0104141235352,
- "y": 4632.000787734985,
- "z": "317ebaae.5c7d96",
- "wires": [
- []
- ]
- },
- {
- "id": "60e51fe9.054df",
- "type": "execute",
- "name": "cellDUListEntries",
- "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'>\n\t<parameter name='outputPath' value='tmp.cellDUListEntries' />\n\t<parameter name='source' value=\"`'getRIC-configdb-response.[' + $id1 + '].gNBDUList[' + $id2 + '].cellDUList_length'`\" />",
- "comments": "",
- "outputs": 1,
- "x": 1236.0102310180664,
- "y": 4847.001151800156,
- "z": "317ebaae.5c7d96",
- "wires": [
- []
- ]
- },
- {
- "id": "ea0fe17e.dc7d7",
- "type": "record",
- "name": "record",
- "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.FileRecorder\">\n<parameter name=\"file\" value=\"/opt/opendaylight/current/data/log/instantiateRANSlice.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"Numberof cellDU of Entries \"/>\n<parameter name=\"field2\" value=\"`$tmp.cellDUListEntries`\"/>\n<parameter name=\"field3\" value=\"`$tmp.gNBDUList.gNBDUId`\"/>\n<parameter name=\"field4\" value=\"`$tmp.gNBDUName`\"/>\n<parameter name=\"field5\" value=\"`$tmp.gNBId`\"/>\n<parameter name=\"field6\" value=\"`$tmp.gNBIdLength`\"/>\n<parameter name=\"field7\" value=\"`$tmp.nFType`\"/>\n<parameter name=\"field8\" value=\"`$tmp.pLMNId`\"/>",
- "comments": "",
- "outputs": 1,
- "x": 864.0103588104248,
- "y": 5056.000978469849,
- "z": "317ebaae.5c7d96",
- "wires": [
- []
- ]
- },
- {
- "id": "cda7ae8e.cc82f",
- "type": "block",
- "name": "cellDUList Level Parms",
- "xml": "<block atomic='true'>",
- "atomic": "true",
- "comments": "",
- "outputs": 1,
- "x": 865.0104064941406,
- "y": 4981.001161575317,
- "z": "317ebaae.5c7d96",
- "wires": [
- [
- "60e51fe9.054df",
- "dbd0fff9.1576d",
- "ee2bedf0.cb432",
- "7735d286.267ebc",
- "588c1d83.cc50a4",
- "8e65c4f.b622a38",
- "4fa82b22.853634"
- ]
- ]
- },
- {
- "id": "dbd0fff9.1576d",
- "type": "execute",
- "name": "cellDUListEntries-gNBDUId",
- "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'>\n\t<parameter name='outputPath' value='tmp.gNBDUList.gNBDUId' />\n\t<parameter name='source' value=\"`'getRIC-configdb-response.[' + $id1 + '].gNBDUList[' + $id2 + '].gNBDUId'`\" />\n",
- "comments": "",
- "outputs": 1,
- "x": 1265.0103721618652,
- "y": 4885.000869750977,
- "z": "317ebaae.5c7d96",
- "wires": [
- []
- ]
- },
- {
- "id": "ee2bedf0.cb432",
- "type": "execute",
- "name": "cellDUListEntries-gNBDUName",
- "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'>\n\t<parameter name='outputPath' value='tmp.gNBDUName' />\n\t<parameter name='source' value=\"`'getRIC-configdb-response.[' + $id1 + '].gNBDUList[' + $id2 + '].gNBDUName'`\" />",
- "comments": "",
- "outputs": 1,
- "x": 1264.0103874206543,
- "y": 4924.000871658325,
- "z": "317ebaae.5c7d96",
- "wires": [
- []
- ]
- },
- {
- "id": "7735d286.267ebc",
- "type": "execute",
- "name": "cellDUListEntries-gNBId",
- "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'>\n\t<parameter name='outputPath' value='tmp.gNBId' />\n\t<parameter name='source' value=\"`'getRIC-configdb-response.[' + $id1 + '].gNBDUList[' + $id2 + '].gNBId'`\" />",
- "comments": "",
- "outputs": 1,
- "x": 1244.0103607177734,
- "y": 4962.000886917114,
- "z": "317ebaae.5c7d96",
- "wires": [
- []
- ]
- },
- {
- "id": "588c1d83.cc50a4",
- "type": "execute",
- "name": "cellDUListEntries-gNBIdLength",
- "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'>\n\t<parameter name='outputPath' value='tmp.gNBIdLength' />\n\t<parameter name='source' value=\"`'getRIC-configdb-response.[' + $id1 + '].gNBDUList[' + $id2 + '].gNBIdLength'`\" />",
- "comments": "",
- "outputs": 1,
- "x": 1259.010368347168,
- "y": 5010.000616073608,
- "z": "317ebaae.5c7d96",
- "wires": [
- []
- ]
- },
- {
- "id": "8e65c4f.b622a38",
- "type": "execute",
- "name": "cellDUListEntries-pLMNId",
- "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'>\n\t<parameter name='outputPath' value='tmp.pLMNId' />\n\t<parameter name='source' value=\"`'getRIC-configdb-response.[' + $id1 + '].gNBDUList[' + $id2 + '].pLMNId'`\" />",
- "comments": "",
- "outputs": 1,
- "x": 1230.0104484558105,
- "y": 5087.000946998596,
- "z": "317ebaae.5c7d96",
- "wires": [
- []
- ]
- },
- {
- "id": "4803f631.8b3b98",
- "type": "for",
- "name": "For List of Cells",
- "xml": "<for index='id3' start='0' end='`$getListofCells-configdb-response._length `' >",
- "comments": "",
- "outputs": 1,
- "x": 574.0001831054688,
- "y": 5445.000864982605,
- "z": "317ebaae.5c7d96",
- "wires": [
- [
- "5dc2a83a.f08198",
- "4e31bb49.d598d4",
- "a640acbe.818f6",
- "c6e3ab30.ee71a8",
- "b70f5572.e88b78"
- ]
- ]
- },
- {
- "id": "5dc2a83a.f08198",
- "type": "block",
- "name": "pLMNInfoList Level Parms",
- "xml": "<block atomic='true'>",
- "atomic": "true",
- "comments": "",
- "outputs": 1,
- "x": 1075.0001831054688,
- "y": 5176.000814437866,
- "z": "317ebaae.5c7d96",
- "wires": [
- [
- "b7628345.904cf",
- "6d49f97c.a4da78"
- ]
- ]
- },
- {
- "id": "b7628345.904cf",
- "type": "execute",
- "name": "pLMNInfoListEntries",
- "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'>\n\t<parameter name='outputPath' value='tmp.pLMNInfoListEntries' />\n\t<parameter name='source' value=\"`'getRIC-configdb-response.[' + $id1 + '].gNBDUList[' + $id2 + '].cellDUList[' + $id3 + '].pLMNInfoList_length'`\" />",
- "comments": "",
- "outputs": 1,
- "x": 1325.0001831054688,
- "y": 5140.000814437866,
- "z": "317ebaae.5c7d96",
- "wires": [
- []
- ]
- },
- {
- "id": "4e31bb49.d598d4",
- "type": "record",
- "name": "record",
- "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.FileRecorder\">\n<parameter name=\"file\" value=\"/opt/opendaylight/current/data/log/instantiateRANSlice.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"Numberof pLMNInfoList Entries \"/>\n<parameter name=\"field2\" value=\"`$tmp.pLMNInfoListEntries`\"/>\n<parameter name=\"field3\" value=\"cellLocalId \"/>\n<parameter name=\"field4\" value=\"`$tmp.cellLocalId`\"/>",
- "comments": "",
- "outputs": 1,
- "x": 1027.0001831054688,
- "y": 5220.000814437866,
- "z": "317ebaae.5c7d96",
- "wires": [
- []
- ]
- },
- {
- "id": "a640acbe.818f6",
- "type": "for",
- "name": "For pLMNInfoListEntries",
- "xml": "<for index='id4' start='0' end='`$tmp.pLMNInfoListEntries`' >",
- "comments": "",
- "outputs": 1,
- "x": 1058.0001831054688,
- "y": 5318.000814437866,
- "z": "317ebaae.5c7d96",
- "wires": [
- [
- "7360e0c2.102d9"
- ]
- ]
- },
- {
- "id": "b5e182bb.6be13",
- "type": "record",
- "name": "record",
- "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.FileRecorder\">\n<parameter name=\"file\" value=\"/opt/opendaylight/current/data/log/instantiateRANSlice.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"MCC \"/>\n<parameter name=\"field2\" value=\"`$tmp.mcc`\"/>\n<parameter name=\"field3\" value=\"MNC \"/>\n<parameter name=\"field4\" value=\"`$tmp.mnc`\"/>\n<parameter name=\"field5\" value=\"Calculated uLThptPerSlice \"/>\n<parameter name=\"field6\" value=\"`$tmp.uLThptPerSlice`\"/>\n<parameter name=\"field7\" value=\"Calculated dLThptPerSlice \"/>\n<parameter name=\"field8\" value=\"`$tmp.dLThptPerSlice`\"/>",
- "comments": "",
- "outputs": 1,
- "x": 823.0000057220459,
- "y": 5140.000801086426,
- "z": "317ebaae.5c7d96",
- "wires": [
- []
- ]
- },
- {
- "id": "7360e0c2.102d9",
- "type": "block",
- "name": "pLMNInfoList Parms",
- "xml": "<block atomic='true'>",
- "atomic": "true",
- "comments": "",
- "outputs": 1,
- "x": 1278.0001831054688,
- "y": 5314.000814437866,
- "z": "317ebaae.5c7d96",
+ "x": 664.9999809265137,
+ "y": 625.9999990463257,
+ "z": "504d7698.3603d8",
"wires": [
[
- "b48db2e4.64d9d",
- "dd4702d.0ab34"
+ "de11d3a1.fbad7"
]
]
},
{
- "id": "b48db2e4.64d9d",
- "type": "execute",
- "name": "sNSSAI",
- "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'>\n\t<parameter name='outputPath' value='tmp.fromRAN.sNSSAI' />\n\t<parameter name='source' value=\"`'getRIC-configdb-response.[' + $id1 + '].gNBDUList[' + $id2 + '].cellDUList[' + $id3 + '].pLMNInfoList[' + $id4 + '].sNSSAI.sNSSAI'`\" />",
- "comments": "",
- "outputs": 1,
- "x": 1450.0001831054688,
- "y": 5267.000814437866,
- "z": "317ebaae.5c7d96",
- "wires": [
- []
- ]
- },
- {
- "id": "af558cd1.c224c",
- "type": "comment",
- "name": "Check if sNSSAI already exists in YANG tree",
- "info": "This needs more work. If sNSSAI already exists in the YANG tree, need to patch the existing pLMNInfoList entry",
- "comments": "",
- "x": 1130.0001831054688,
- "y": 5269.000814437866,
- "z": "317ebaae.5c7d96",
- "wires": []
- },
- {
- "id": "dd4702d.0ab34",
- "type": "record",
- "name": "record",
- "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.FileRecorder\">\n<parameter name=\"file\" value=\"/opt/opendaylight/current/data/log/instantiateRANSlice.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"sNSSAI from RAN to check if already exists \"/>\n<parameter name=\"field2\" value=\"`$tmp.fromRAN.sNSSAI`\"/>\n",
- "comments": "",
- "outputs": 1,
- "x": 1455.0001831054688,
- "y": 5334.000814437866,
- "z": "317ebaae.5c7d96",
- "wires": [
- []
- ]
- },
- {
- "id": "de94f2f8.4c299",
+ "id": "fe92e0a3.2157e",
"type": "execute",
- "name": "nearRTRICId",
- "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'>\n\t<parameter name='outputPath' value='tmp.nearRTRICId' />\n\t<parameter name='source' value=\"`'getRIC-configdb-response.[' + $id1 + '].nearRTRICId'`\" />",
- "comments": "",
- "outputs": 1,
- "x": 702.0000038146973,
- "y": 772.9999949932098,
- "z": "317ebaae.5c7d96",
- "wires": [
- []
- ]
- },
- {
- "id": "6d49f97c.a4da78",
- "type": "execute",
- "name": "cellLocalId",
- "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'>\n\t<parameter name='outputPath' value='tmp.cellLocalId' />\n\t<parameter name='source' value=\"`'getRIC-configdb-response.[' + $id1 + '].gNBDUList[' + $id2 + '].cellDUList[' + $id3 + '].cellLocalId'`\" />",
- "comments": "",
- "outputs": 1,
- "x": 1300.0001831054688,
- "y": 5198.000814437866,
- "z": "317ebaae.5c7d96",
- "wires": [
- []
- ]
- },
- {
- "id": "924bbca.341324",
- "type": "record",
- "name": "record",
- "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.FileRecorder\">\n<parameter name=\"file\" value=\"/opt/opendaylight/current/data/log/instantiateRANSlice.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"Setting variables for PLMNInfoList Entry Add to NRCellDU\"/>\n<parameter name=\"field2\" value=\"`$tmp.addPLMNInfoListEntry.ToNRCellDU.url`\"/>\n<parameter name=\"field3\" value=\"`$tmp.mcc`\"/>\n<parameter name=\"field4\" value=\"`$tmp.mnc`\"/>\n<parameter name=\"field5\" value=\"`$payloadJson.input.sliceProfile.sNSSAI`\"/>\n<parameter name=\"field6\" value=\"`$tmp.uLThptPerSlice`\"/>\n<parameter name=\"field7\" value=\"`$tmp.dLThptPerSlice`\"/>",
- "comments": "",
- "outputs": 1,
- "x": 1237.0114097595215,
- "y": 5768.334381103516,
- "z": "317ebaae.5c7d96",
- "wires": [
- []
- ]
- },
- {
- "id": "c6e3ab30.ee71a8",
- "type": "block",
- "name": "Add PLMNInfoList Entry",
- "xml": "<block atomic='true'>",
- "atomic": "true",
- "comments": "",
- "outputs": 1,
- "x": 910.0103530883789,
- "y": 5656.344858169556,
- "z": "317ebaae.5c7d96",
- "wires": [
- [
- "924bbca.341324",
- "28e6f7b8.67d2d8",
- "b6b9c605.fc6778",
- "76d076ba.67ec98",
- "52eaf525.b3606c",
- "8732d146.894ed",
- "564ca8c8.69b478",
- "35cd79f4.de5036"
- ]
- ]
- },
- {
- "id": "35cd79f4.de5036",
- "type": "execute",
- "name": "add PLMNInfoListEntry ToNRCellDU using PUT",
- "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"templateFileName\" value=\"`$prop.restapi.templateDir + '/ranSlice-add-get-PLMNInfoListEntry-NRCellDU.json'`\" />\n<parameter name=\"restapiUrl\" value=\"`$prop.controller.url + $tmp.addPLMNInfoListEntry.ToNRCellDU.url`\"/>\n<parameter name=\"restapiUser\" value=\"`$prop.controller.user`\" />\n<parameter name=\"restapiPassword\" value=\"`$prop.controller.pwd`\"/>\n<parameter name=\"httpMethod\" value=\"PUT\"/>\n<parameter name=\"responsePrefix\" value=\"PLMNInfoListEntry-response\"/>\n<parameter name='contentType' value='application/json' /> \n<parameter name='format' value='json' />",
- "comments": "",
- "outputs": 1,
- "x": 1314.0106811523438,
- "y": 5846.344686508179,
- "z": "317ebaae.5c7d96",
- "wires": [
- [
- "f8e41a5a.7fc5c8",
- "885251ef.80f7f"
- ]
- ]
- },
- {
- "id": "28e6f7b8.67d2d8",
- "type": "record",
- "name": "record",
- "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.FileRecorder\">\n<parameter name=\"file\" value=\"/opt/opendaylight/current/data/log/instantiateRANSlice.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"Add PLMNInfoListEntry ToNRCellDU URL\"/>\n<parameter name=\"field2\" value=\"`$tmp.addPLMNInfoListEntry.ToNRCellDU.url`\"/>",
- "comments": "",
- "outputs": 1,
- "x": 1265.0105285644531,
- "y": 5713.344757080078,
- "z": "317ebaae.5c7d96",
- "wires": [
- []
- ]
- },
- {
- "id": "9c86fb03.be70b8",
- "type": "execute",
- "name": "generate addPLMNInfoListEntry.ToNRCellDU",
- "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$prop.restapi.addPLMNInfoListEntry.ToNRCellDU`\"/>\n <parameter name=\"outputPath\" value=\"tmp.addPLMNInfoListEntry.ToNRCellDU.url\"/>\n <parameter name=\"target\" value=\"{idNearRTRIC}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.nearRTRICId`\"/>",
- "comments": "",
- "outputs": 1,
- "x": 1373.010597229004,
- "y": 5401.001136779785,
- "z": "317ebaae.5c7d96",
- "wires": [
- []
- ]
- },
- {
- "id": "b6b9c605.fc6778",
- "type": "execute",
- "name": "Populate idGNBDUFunction",
- "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$tmp.addPLMNInfoListEntry.ToNRCellDU.url`\"/>\n <parameter name=\"outputPath\" value=\"tmp.addPLMNInfoListEntry.ToNRCellDU.url\"/>\n <parameter name=\"target\" value=\"{idGNBDUFunction}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.gNBDUList.gNBDUId`\"/>",
- "comments": "",
- "outputs": 1,
- "x": 1255.0003051757812,
- "y": 5539.0008845329285,
- "z": "317ebaae.5c7d96",
- "wires": [
- []
- ]
- },
- {
- "id": "76d076ba.67ec98",
- "type": "execute",
- "name": "Populate idNRCellDU",
- "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$tmp.addPLMNInfoListEntry.ToNRCellDU.url`\"/>\n <parameter name=\"outputPath\" value=\"tmp.addPLMNInfoListEntry.ToNRCellDU.url\"/>\n <parameter name=\"target\" value=\"{idNRCellDU}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.cellLocalId`\"/>",
- "comments": "",
- "outputs": 1,
- "x": 1243.000301361084,
- "y": 5585.000945568085,
- "z": "317ebaae.5c7d96",
- "wires": [
- []
- ]
- },
- {
- "id": "52eaf525.b3606c",
- "type": "execute",
- "name": "Populate mcc",
- "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$tmp.addPLMNInfoListEntry.ToNRCellDU.url`\"/>\n <parameter name=\"outputPath\" value=\"tmp.addPLMNInfoListEntry.ToNRCellDU.url\"/>\n <parameter name=\"target\" value=\"{mcc}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.mcc`\"/>",
- "comments": "",
- "outputs": 1,
- "x": 1230.0003032684326,
- "y": 5626.001007080078,
- "z": "317ebaae.5c7d96",
- "wires": [
- []
- ]
- },
- {
- "id": "8732d146.894ed",
- "type": "execute",
- "name": "Populate mnc",
- "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$tmp.addPLMNInfoListEntry.ToNRCellDU.url`\"/>\n <parameter name=\"outputPath\" value=\"tmp.addPLMNInfoListEntry.ToNRCellDU.url\"/>\n <parameter name=\"target\" value=\"{mnc}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.mnc`\"/>",
- "comments": "",
- "outputs": 1,
- "x": 1238.000301361084,
- "y": 5667.000885009766,
- "z": "317ebaae.5c7d96",
- "wires": [
- []
- ]
- },
- {
- "id": "f8e41a5a.7fc5c8",
- "type": "failure",
- "name": "failure",
- "xml": "<outcome value='failure'>\n",
- "comments": "",
- "outputs": 1,
- "x": 1606.0106811523438,
- "y": 5774.334188461304,
- "z": "317ebaae.5c7d96",
- "wires": [
- [
- "eaa97b34.536878"
- ]
- ]
- },
- {
- "id": "885251ef.80f7f",
- "type": "success",
- "name": "success",
- "xml": "<outcome value='success'>\n",
- "comments": "",
- "outputs": 1,
- "x": 1651.0105590820312,
- "y": 5872.334188461304,
- "z": "317ebaae.5c7d96",
- "wires": [
- [
- "7289be21.72c1b"
- ]
- ]
- },
- {
- "id": "eaa97b34.536878",
- "type": "block",
- "name": "block",
- "xml": "<block>\n",
- "atomic": "false",
- "comments": "",
- "outputs": 1,
- "x": 1804.0105590820312,
- "y": 5767.334310531616,
- "z": "317ebaae.5c7d96",
- "wires": [
- [
- "53cc9598.846c7c"
- ]
- ]
- },
- {
- "id": "7289be21.72c1b",
- "type": "block",
- "name": "block",
- "xml": "<block>\n",
- "atomic": "false",
- "comments": "",
- "outputs": 1,
- "x": 1831.0103149414062,
- "y": 5869.334188461304,
- "z": "317ebaae.5c7d96",
- "wires": [
- [
- "4b6390d5.01f41"
- ]
- ]
- },
- {
- "id": "53cc9598.846c7c",
- "type": "returnFailure",
- "name": "return failure",
- "xml": "<return status='failure'>\n<parameter name='ack-final' value='Y'/>\n<parameter name=\"error-code\" value=\"500\" />\n<parameter name=\"error-message\" value=\"Error adding PLMNInfo List Entry to NRCellCUr\" />",
- "comments": "",
- "x": 1992.010353088379,
- "y": 5763.334453344345,
- "z": "317ebaae.5c7d96",
- "wires": []
- },
- {
- "id": "4b6390d5.01f41",
- "type": "record",
- "name": "record",
- "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.FileRecorder\">\n<parameter name=\"file\" value=\"/opt/opendaylight/current/data/log/instantiateRANSlice.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"PLMNInfo List Entry Add to NRCELLDU Executed Successfully \"/>",
+ "name": "printContext",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='printContext' >\n<parameter name='filename' value='/opt/opendaylight/current/data/log/ranSlice-instantiateRANSlice-context.log' />\n\n\n",
"comments": "",
"outputs": 1,
- "x": 1980.0105361938477,
- "y": 5900.334554672241,
- "z": "317ebaae.5c7d96",
+ "x": 506,
+ "y": 310,
+ "z": "504d7698.3603d8",
"wires": [
[]
]
},
{
- "id": "5f36f59.80d9c0c",
+ "id": "58476f15.520dd",
"type": "execute",
- "name": "generate addPLMNInfoListEntry.ToNRCellDU",
- "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$prop.restapi.addPLMNInfoListEntry.ToNRCellDU.ransim-mounted`\"/>\n <parameter name=\"outputPath\" value=\"tmp.addPLMNInfoListEntry.ToNRCellDU.url\"/>\n <parameter name=\"target\" value=\"{idNearRTRIC}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.nearRTRICId`\"/>",
+ "name": "SliStringUtils - substring MCC",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='substring'>\n <parameter name=\"string\" value=\"`$tmp.payload.pLMNId`\" />\n <parameter name=\"result\" value=\"tmp.mcc\"/>\n <parameter name=\"begin-index\" value=\"0\" />\n <parameter name=\"end-index\" value=\"3\" />",
"comments": "",
"outputs": 1,
- "x": 1568.0002975463867,
- "y": 5451.001133918762,
- "z": "317ebaae.5c7d96",
+ "x": 505.0103759765625,
+ "y": 525.0104675292969,
+ "z": "504d7698.3603d8",
"wires": [
[]
]
},
{
- "id": "142451e6.f4dd5e",
- "type": "block",
- "name": "ransim URL",
- "xml": "<block atomic='true'>",
- "atomic": "true",
- "comments": "",
- "outputs": 1,
- "x": 1261.0002098083496,
- "y": 5477.001004219055,
- "z": "317ebaae.5c7d96",
- "wires": [
- [
- "5f36f59.80d9c0c",
- "5f74e29.3af9a1c"
- ]
- ]
- },
- {
- "id": "5f74e29.3af9a1c",
+ "id": "b83f1c3e.1d42c",
"type": "execute",
- "name": "populate mountName",
- "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$tmp.addPLMNInfoListEntry.ToNRCellDU.url`\"/>\n <parameter name=\"outputPath\" value=\"tmp.addPLMNInfoListEntry.ToNRCellDU.url\"/>\n <parameter name=\"target\" value=\"{mountName}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.gNBDUList.gNBDUId`\"/>",
- "comments": "",
- "outputs": 1,
- "x": 1503.000244140625,
- "y": 5511.000943183899,
- "z": "317ebaae.5c7d96",
- "wires": [
- []
- ]
- },
- {
- "id": "e6614fef.7e504",
- "type": "comment",
- "name": "Connect to AddPLMNInfoList Entry",
- "info": "when able to talk to latest SDNC",
- "comments": "",
- "x": 1242,
- "y": 5807.334102630615,
- "z": "317ebaae.5c7d96",
- "wires": []
- },
- {
- "id": "efe03418.fca818",
- "type": "switchNode",
- "name": "ransim mounted",
- "xml": "<switch test='`$prop.ransim-mounted`'>\n",
- "comments": "",
- "outputs": 1,
- "x": 1097,
- "y": 5964.667476654053,
- "z": "317ebaae.5c7d96",
- "wires": [
- [
- "25c7e659.676aba",
- "e722405a.24cbc"
- ]
- ]
- },
- {
- "id": "25c7e659.676aba",
- "type": "outcome",
- "name": "Not Mounted",
- "xml": "<outcome value='false'>\n",
- "comments": "",
- "outputs": 1,
- "x": 1292.0000267028809,
- "y": 5924.667384147644,
- "z": "317ebaae.5c7d96",
- "wires": [
- [
- "a1b8b6eb.5deab8"
- ]
- ]
- },
- {
- "id": "e722405a.24cbc",
- "type": "outcome",
- "name": "Mounted",
- "xml": "<outcome value='true'>\n",
- "comments": "",
- "outputs": 1,
- "x": 1272,
- "y": 6003.667475700378,
- "z": "317ebaae.5c7d96",
- "wires": [
- [
- "7dd6e926.86e788"
- ]
- ]
- },
- {
- "id": "7c6ff37d.97f86c",
- "type": "record",
- "name": "record",
- "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.FileRecorder\">\n<parameter name=\"file\" value=\"/opt/opendaylight/current/data/log/instantiateRANSlice.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"Setting variables for addRRMPolicyRatio to NRCellDU\"/>\n<parameter name=\"field2\" value=\"`$tmp.addRRMPolicyRatio.ToNRCellDU.url`\"/>\n<parameter name=\"field3\" value=\"`$tmp.mcc`\"/>\n<parameter name=\"field4\" value=\"`$tmp.mnc`\"/>\n<parameter name=\"field5\" value=\"`$payloadJson.input.sliceProfile.sNSSAI`\"/>\n<parameter name=\"field6\" value=\"`$tmp.uLThptPerSlice`\"/>\n<parameter name=\"field7\" value=\"`$tmp.dLThptPerSlice`\"/>",
+ "name": "SliStringUtils - substring MNC",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='substring'>\n <parameter name=\"string\" value=\"`$tmp.payload.pLMNId`\" />\n <parameter name=\"result\" value=\"tmp.mnc\"/>\n <parameter name=\"begin-index\" value=\"4\" />",
"comments": "",
"outputs": 1,
- "x": 1257.0008926391602,
- "y": 6279.000898838043,
- "z": "317ebaae.5c7d96",
+ "x": 482.0103988647461,
+ "y": 563.0104370117188,
+ "z": "504d7698.3603d8",
"wires": [
[]
]
},
{
- "id": "a6bb647c.467a58",
- "type": "execute",
- "name": "add RRM Policy ToNRCellDU using PUT",
- "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"templateFileName\" value=\"`$prop.restapi.templateDir + '/ranSlice-add-RRMPolicyRatio-NRCellDU.json'`\" />\n<parameter name=\"restapiUrl\" value=\"`$prop.controller.url + $tmp.addRRMPolicyRatio.ToNRCellDU.url`\"/>\n<parameter name=\"restapiUser\" value=\"`$prop.controller.user`\" />\n<parameter name=\"restapiPassword\" value=\"`$prop.controller.pwd`\"/>\n<parameter name=\"httpMethod\" value=\"PUT\"/>\n<parameter name=\"responsePrefix\" value=\"addRRMPolicyRatio-response\"/>\n<parameter name='contentType' value='application/json' /> \n<parameter name='format' value='json' />",
- "comments": "",
- "outputs": 1,
- "x": 1347.0001525878906,
- "y": 6381.011263370514,
- "z": "317ebaae.5c7d96",
- "wires": [
- [
- "2923224f.f9175e",
- "d8314cd3.80f1b"
- ]
- ]
- },
- {
- "id": "727c6951.dea9b8",
+ "id": "f925c432.c26848",
"type": "record",
"name": "record",
- "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.FileRecorder\">\n<parameter name=\"file\" value=\"/opt/opendaylight/current/data/log/instantiateRANSlice.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"addRRMPolicyRatio ToNRCellDU URL\"/>\n<parameter name=\"field2\" value=\"`$tmp.addRRMPolicyRatio.ToNRCellDU.url`\"/>",
- "comments": "",
- "outputs": 1,
- "x": 1246.9999618530273,
- "y": 6220.0110511779785,
- "z": "317ebaae.5c7d96",
- "wires": [
- []
- ]
- },
- {
- "id": "a1b8b6eb.5deab8",
- "type": "execute",
- "name": "generate addRRMPolicy.ToNRCellDU URL",
- "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$prop.restapi.addRRMPolicyRatio.ToNRCellDU`\"/>\n <parameter name=\"outputPath\" value=\"tmp.addRRMPolicyRatio.ToNRCellDU.url\"/>\n <parameter name=\"target\" value=\"{idNearRTRIC}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.nearRTRICId`\"/>",
- "comments": "",
- "outputs": 1,
- "x": 1577.9999923706055,
- "y": 5922.667457580566,
- "z": "317ebaae.5c7d96",
- "wires": [
- []
- ]
- },
- {
- "id": "e35efe61.51312",
- "type": "execute",
- "name": "Populate idGNBDUFunction",
- "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$tmp.addRRMPolicyRatio.ToNRCellDU.url`\"/>\n <parameter name=\"outputPath\" value=\"tmp.addRRMPolicyRatio.ToNRCellDU.url\"/>\n <parameter name=\"target\" value=\"{idGNBDUFunction}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.gNBDUList.gNBDUId`\"/>\n ",
- "comments": "",
- "outputs": 1,
- "x": 1287.9897766113281,
- "y": 6073.667461395264,
- "z": "317ebaae.5c7d96",
- "wires": [
- []
- ]
- },
- {
- "id": "960c9faa.3fe03",
- "type": "execute",
- "name": "Populate idNRCellDU",
- "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$tmp.addRRMPolicyRatio.ToNRCellDU.url`\"/>\n <parameter name=\"outputPath\" value=\"tmp.addRRMPolicyRatio.ToNRCellDU.url\"/>\n <parameter name=\"target\" value=\"{idNRCellDU}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.cellLocalId`\"/>",
- "comments": "",
- "outputs": 1,
- "x": 1275.9897727966309,
- "y": 6119.66752243042,
- "z": "317ebaae.5c7d96",
- "wires": [
- []
- ]
- },
- {
- "id": "98bea7dc.413a88",
- "type": "execute",
- "name": "Populate id",
- "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$tmp.addRRMPolicyRatio.ToNRCellDU.url`\"/>\n <parameter name=\"outputPath\" value=\"tmp.addRRMPolicyRatio.ToNRCellDU.url\"/>\n <parameter name=\"target\" value=\"{id}\"/>\n <parameter name=\"replacement\" value=\"0\"/>",
- "comments": "",
- "outputs": 1,
- "x": 1262.9897747039795,
- "y": 6160.667583942413,
- "z": "317ebaae.5c7d96",
- "wires": [
- []
- ]
- },
- {
- "id": "2923224f.f9175e",
- "type": "failure",
- "name": "failure",
- "xml": "<outcome value='failure'>\n",
- "comments": "",
- "outputs": 1,
- "x": 1639.0001525878906,
- "y": 6309.000765323639,
- "z": "317ebaae.5c7d96",
- "wires": [
- [
- "229fbba7.f8bb44"
- ]
- ]
- },
- {
- "id": "d8314cd3.80f1b",
- "type": "success",
- "name": "success",
- "xml": "<outcome value='success'>\n",
- "comments": "",
- "outputs": 1,
- "x": 1684.0000305175781,
- "y": 6407.000765323639,
- "z": "317ebaae.5c7d96",
- "wires": [
- [
- "22aecbb0.ddd464"
- ]
- ]
- },
- {
- "id": "229fbba7.f8bb44",
- "type": "block",
- "name": "block",
- "xml": "<block>\n",
- "atomic": "false",
- "comments": "",
- "outputs": 1,
- "x": 1837.0000305175781,
- "y": 6302.000887393951,
- "z": "317ebaae.5c7d96",
- "wires": [
- [
- "565bc4ad.7f0d8c"
- ]
- ]
- },
- {
- "id": "22aecbb0.ddd464",
- "type": "block",
- "name": "block",
- "xml": "<block>\n",
- "atomic": "false",
- "comments": "",
- "outputs": 1,
- "x": 1863.9997863769531,
- "y": 6404.000765323639,
- "z": "317ebaae.5c7d96",
- "wires": [
- [
- "64de6420.f1c43c"
- ]
- ]
- },
- {
- "id": "565bc4ad.7f0d8c",
- "type": "returnFailure",
- "name": "return failure",
- "xml": "<return status='failure'>\n<parameter name='ack-final' value='Y'/>\n<parameter name=\"error-code\" value=\"500\" />\n<parameter name=\"error-message\" value=\"Error adding RRM Policy\" />",
- "comments": "",
- "x": 2022.999855041504,
- "y": 6298.000896453857,
- "z": "317ebaae.5c7d96",
- "wires": []
- },
- {
- "id": "64de6420.f1c43c",
- "type": "record",
- "name": "record",
- "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.FileRecorder\">\n<parameter name=\"file\" value=\"/opt/opendaylight/current/data/log/instantiateRANSlice.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"addRRMPolicyRatio to NRCELLDU Executed Successfully \"/>",
- "comments": "",
- "outputs": 1,
- "x": 2013.000087738037,
- "y": 6434.000957965851,
- "z": "317ebaae.5c7d96",
- "wires": [
- []
- ]
- },
- {
- "id": "8a0aa571.942e98",
- "type": "execute",
- "name": "generate RRMPolicy Ratio URL ToNRCellDU",
- "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$prop.restapi.addRRMPolicyRatio.ToNRCellDU.ransim-mounted`\"/>\n <parameter name=\"outputPath\" value=\"tmp.addRRMPolicyRatio.ToNRCellDU.url\"/>\n <parameter name=\"target\" value=\"{idNearRTRIC}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.nearRTRICId`\"/>",
- "comments": "",
- "outputs": 1,
- "x": 1769.9897079467773,
- "y": 5970.667767524719,
- "z": "317ebaae.5c7d96",
- "wires": [
- []
- ]
- },
- {
- "id": "7dd6e926.86e788",
- "type": "block",
- "name": "ransim URL",
- "xml": "<block atomic='true'>",
- "atomic": "true",
- "comments": "",
- "outputs": 1,
- "x": 1464.9896507263184,
- "y": 5998.667475700378,
- "z": "317ebaae.5c7d96",
- "wires": [
- [
- "8a0aa571.942e98",
- "b4ea4086.b804"
- ]
- ]
- },
- {
- "id": "b4ea4086.b804",
- "type": "execute",
- "name": "populate mountName",
- "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$tmp.addRRMPolicyRatio.ToNRCellDU.url`\"/>\n <parameter name=\"outputPath\" value=\"tmp.addRRMPolicyRatio.ToNRCellDU.url\"/>\n <parameter name=\"target\" value=\"{mountName}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.gNBDUList.gNBDUId`\"/>",
+ "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.FileRecorder\">\n<parameter name=\"file\" value=\"/opt/opendaylight/current/data/log/instantiateRANSlice.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"PLMNID from Payload: MCC-MNC \"/>\n<parameter name=\"field2\" value=\"`$tmp.mcc`\"/>\n<parameter name=\"field3\" value=\"`$tmp.mnc`\"/>",
"comments": "",
"outputs": 1,
- "x": 1706.9896850585938,
- "y": 6032.667414665222,
- "z": "317ebaae.5c7d96",
+ "x": 393.00392150878906,
+ "y": 623.0038976669312,
+ "z": "504d7698.3603d8",
"wires": [
[]
]
},
{
- "id": "218fe9d2.44b996",
+ "id": "c2339e53.39c4b",
"type": "comment",
- "name": "Connect to RRM P{olicy Ratio",
- "info": "when able to talk to latest SDNC",
- "comments": "",
- "x": 1274.9894714355469,
- "y": 6342.00067949295,
- "z": "317ebaae.5c7d96",
- "wires": []
- },
- {
- "id": "bc8fb654.181bb8",
- "type": "block",
- "name": "rrmPolicyDedicatedRatio",
- "xml": "<block atomic='true'>",
- "atomic": "true",
- "comments": "",
- "outputs": 1,
- "x": 622.0103759765625,
- "y": 4775.6780042648315,
- "z": "317ebaae.5c7d96",
- "wires": [
- [
- "63cd9dfe.374c04",
- "bd503922.ade378",
- "97ec08d5.5b4f28"
- ]
- ]
- },
- {
- "id": "63cd9dfe.374c04",
- "type": "set",
- "name": "calculation",
- "xml": "<set>\n<parameter name='tmp.uLThptPerSlicePerCell' value='5' />",
+ "name": "TO DO",
+ "info": "- Use \"List of Cells for Tracking Area\" everywhere list\nof cells are sequenced for Restconf transactions...\nNo need to go through all cells as captured in the configDB\nresponse....localID will be the actual value returned \nin \n<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'>\n\t<parameter name='outputPath' value='tmp.trackingarea.cell' />\n\t<parameter name='source' value=\"`'getListofCells-configdb-response.[' + $ids + ']'`\" />\n\t\n\ttmp.trackingarea.cell would be cellLocalID",
"comments": "",
- "x": 838.0106887817383,
- "y": 4769.455739498138,
- "z": "317ebaae.5c7d96",
+ "x": 762,
+ "y": 101,
+ "z": "504d7698.3603d8",
"wires": []
},
{
- "id": "4fa82b22.853634",
- "type": "execute",
- "name": "cellDUListEntries-nFType",
- "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'>\n\t<parameter name='outputPath' value='tmp.nFType' />\n\t<parameter name='source' value=\"`'getRIC-configdb-response.[' + $id1 + '].gNBDUList[' + $id2 + '].nFType'`\" />",
- "comments": "",
- "outputs": 1,
- "x": 1233.0104217529297,
- "y": 5046.000864028931,
- "z": "317ebaae.5c7d96",
- "wires": [
- []
- ]
- },
- {
- "id": "bd503922.ade378",
+ "id": "de11d3a1.fbad7",
"type": "switchNode",
- "name": "check",
- "xml": "<switch test='`$tmp.uLThptPerSlicePerCell`'>\n",
+ "name": "switch action",
+ "xml": "<switch test='`$instantiate-r-a-n-slice-input.action`'>",
"comments": "",
"outputs": 1,
- "x": 839.0105438232422,
- "y": 4817.1222858428955,
- "z": "317ebaae.5c7d96",
+ "x": 867.0105171203613,
+ "y": 559.0104229450226,
+ "z": "504d7698.3603d8",
"wires": [
[
- "a7d2ceaa.ad792",
- "8441e73e.01f9c8"
+ "5c622ac4.0b8d04",
+ "9943c636.c7b928",
+ "7ea2f86.8f59508",
+ "1059c51e.d06e2b"
]
]
},
{
- "id": "a7d2ceaa.ad792",
+ "id": "5c622ac4.0b8d04",
"type": "outcome",
- "name": "value5",
- "xml": "<outcome value='5'>\n",
+ "name": "allocate",
+ "xml": "<outcome value='allocate'>",
"comments": "",
"outputs": 1,
- "x": 996.0104522705078,
- "y": 4765.122120857239,
- "z": "317ebaae.5c7d96",
+ "x": 1095.0105285644531,
+ "y": 470.89930629730225,
+ "z": "504d7698.3603d8",
"wires": [
[
- "97df6369.00d6c"
+ "8320efb7.50f75"
]
]
},
{
- "id": "8441e73e.01f9c8",
+ "id": "9943c636.c7b928",
"type": "outcome",
- "name": "value10",
- "xml": "<outcome value='10'>\n",
+ "name": "modify-allocate",
+ "xml": "<outcome value='modify-allocate'>",
"comments": "",
"outputs": 1,
- "x": 1005.0106563568115,
- "y": 4819.122313499451,
- "z": "317ebaae.5c7d96",
+ "x": 1104.7248001098633,
+ "y": 546.3993489742279,
+ "z": "504d7698.3603d8",
"wires": [
[
- "6a4a88f4.3dc008"
+ "974dd6b9.655e38"
]
]
},
{
- "id": "97df6369.00d6c",
- "type": "set",
- "name": "set rrmPolicyDedicatedRatio",
- "xml": "<set>\n<parameter name='tmp.rRMPolicyDedicatedRatio.CellDU' value='10' />",
- "comments": "",
- "x": 1220.0104522705078,
- "y": 4751.122282981873,
- "z": "317ebaae.5c7d96",
- "wires": []
- },
- {
- "id": "6a4a88f4.3dc008",
- "type": "set",
- "name": "set rrmPolicyDedicatedRatio",
- "xml": "<set>\n<parameter name='tmp.rRMPolicyDedicatedRatio.CellDU' value='20' />",
- "comments": "",
- "x": 1213.0103759765625,
- "y": 4798.1222496032715,
- "z": "317ebaae.5c7d96",
- "wires": []
- },
- {
- "id": "97ec08d5.5b4f28",
- "type": "record",
- "name": "record",
- "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.FileRecorder\">\n<parameter name=\"file\" value=\"/opt/opendaylight/current/data/log/instantiateRANSlice.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"rRMPolicyDedicatedRatio for CellDU \"/>\n<parameter name=\"field2\" value=\"`$tmp.rRMPolicyDedicatedRatio.CellDU`\"/>",
- "comments": "",
- "outputs": 1,
- "x": 814.0104827880859,
- "y": 4864.122404098511,
- "z": "317ebaae.5c7d96",
- "wires": [
- []
- ]
- },
- {
- "id": "4a23136f.c1b85c",
- "type": "block",
- "name": "CUCP",
- "xml": "<block atomic='true'>",
- "atomic": "true",
- "comments": "",
- "outputs": 1,
- "x": 754.0000381469727,
- "y": 915.3334445953369,
- "z": "317ebaae.5c7d96",
- "wires": [
- [
- "497d1f17.c9e43",
- "f2eb60d6.b5c37",
- "b9bfe004.99c45",
- "579d950f.4d634c",
- "c0439f59.e499f"
- ]
- ]
- },
- {
- "id": "85ad74b1.3e5678",
- "type": "block",
- "name": "Add RRM Policy Ratio",
- "xml": "<block atomic='true'>",
- "atomic": "true",
- "comments": "",
- "outputs": 1,
- "x": 1334.0000381469727,
- "y": 2214.3332958221436,
- "z": "317ebaae.5c7d96",
- "wires": [
- [
- "3c19bbc9.79a1d4",
- "f109bb01.937248",
- "ffc63fd6.12b63",
- "dfc0a7a2.3e87a8",
- "940d0d6f.f7bd1",
- "999d743.cedac88",
- "2a512ed2.5a7ab2"
- ]
- ]
- },
- {
- "id": "8cae0c86.b36b6",
- "type": "switchNode",
- "name": "ransim mounted",
- "xml": "<switch test='`$prop.ransim-mounted`'>\n",
- "comments": "",
- "outputs": 1,
- "x": 1390.0001602172852,
- "y": 1442.333589553833,
- "z": "317ebaae.5c7d96",
- "wires": [
- [
- "a9a0d541.9db2c8",
- "301fae2a.f2aad2"
- ]
- ]
- },
- {
- "id": "a9a0d541.9db2c8",
+ "id": "7ea2f86.8f59508",
"type": "outcome",
- "name": "Not Mounted",
- "xml": "<outcome value='false'>\n",
+ "name": "modify-deallocate",
+ "xml": "<outcome value='modify-deallocate'>",
"comments": "",
"outputs": 1,
- "x": 1585.000186920166,
- "y": 1402.3334970474243,
- "z": "317ebaae.5c7d96",
+ "x": 1112.081901550293,
+ "y": 636.5421724319458,
+ "z": "504d7698.3603d8",
"wires": [
[
- "2a0e8c44.4779b4"
+ "aba8f6e8.f40d18"
]
]
},
{
- "id": "301fae2a.f2aad2",
+ "id": "1059c51e.d06e2b",
"type": "outcome",
- "name": "Mounted",
- "xml": "<outcome value='true'>\n",
+ "name": "reconfigure",
+ "xml": "<outcome value='reconfigure'>",
"comments": "",
"outputs": 1,
- "x": 1565.0001602172852,
- "y": 1481.3335886001587,
- "z": "317ebaae.5c7d96",
+ "x": 1084.081901550293,
+ "y": 719.5779819488525,
+ "z": "504d7698.3603d8",
"wires": [
[
- "32edbce2.804f24"
+ "48aa94ba.46a4ac"
]
]
},
{
- "id": "f2eb60d6.b5c37",
- "type": "for",
- "name": "For CUCPList Entries",
- "xml": "<for index='id2' start='0' end='`$tmp.CUCPListEntries`' >",
- "comments": "",
- "outputs": 1,
- "x": 1007,
- "y": 1008.333550453186,
- "z": "317ebaae.5c7d96",
- "wires": [
- [
- "f300d582.f063f8",
- "b7308da0.46c4d",
- "733c9805.32a648",
- "b84869ff.9b40a8"
- ]
- ]
- },
- {
- "id": "497d1f17.c9e43",
- "type": "record",
- "name": "record",
- "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.FileRecorder\">\n<parameter name=\"file\" value=\"/opt/opendaylight/current/data/log/instantiateRANSlice.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"Number of CUCP List Entries \"/>\n<parameter name=\"field2\" value=\"`$tmp.CUCPListEntries`\"/>",
- "comments": "",
- "outputs": 1,
- "x": 969.000114440918,
- "y": 813.3333835601807,
- "z": "317ebaae.5c7d96",
- "wires": [
- []
- ]
- },
- {
- "id": "b9bfe004.99c45",
- "type": "execute",
- "name": "set CUCP Level parms",
- "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'>\n\t<parameter name='outputPath' value='tmp.CUCPListEntries' />\n\t<parameter name='source' value=\"`'getRIC-configdb-response.[' + $id1 + '].gNBCUCPList_length'`\" />",
- "comments": "",
- "outputs": 1,
- "x": 1022.0000228881836,
- "y": 767.3333225250244,
- "z": "317ebaae.5c7d96",
- "wires": [
- []
- ]
- },
- {
- "id": "8bce9ef6.8c64b",
- "type": "execute",
- "name": "cellCUList Entries",
- "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'>\n\t<parameter name='outputPath' value='tmp.cellCUListEntries' />\n\t<parameter name='source' value=\"`'getRIC-configdb-response.[' + $id1 + '].gNBCUCPList[' + $id2 + '].cellCUList_length'`\" />",
- "comments": "",
- "outputs": 1,
- "x": 1729.9999465942383,
- "y": 843.3335189819336,
- "z": "317ebaae.5c7d96",
- "wires": [
- []
- ]
- },
- {
- "id": "f300d582.f063f8",
- "type": "record",
- "name": "record",
- "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.FileRecorder\">\n<parameter name=\"file\" value=\"/opt/opendaylight/current/data/log/instantiateRANSlice.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"Numberof cellCU of Entries \"/>\n<parameter name=\"field2\" value=\"`$tmp.cellCUListEntries`\"/>\n<parameter name=\"field3\" value=\"`$tmp.gNBCUCPList.gNBCUName`\"/>\n<parameter name=\"field4\" value=\"`$tmp.gNBCUCPList.gNBId`\"/>\n<parameter name=\"field5\" value=\"`$tmp.gNBCUCPList.gNBIdLengthh`\"/>\n<parameter name=\"field6\" value=\"`$tmp.gNBCUCPList.nFType`\"/>\n<parameter name=\"field7\" value=\"`$tmp.gNBCUCPList.pLMNId`\"/>",
- "comments": "",
- "outputs": 1,
- "x": 1273.0000267028809,
- "y": 1044.333475112915,
- "z": "317ebaae.5c7d96",
- "wires": [
- []
- ]
- },
- {
- "id": "b7308da0.46c4d",
+ "id": "8320efb7.50f75",
"type": "block",
- "name": "cellCUCPList Level Parms",
- "xml": "<block atomic='true'>",
- "atomic": "true",
- "comments": "",
- "outputs": 1,
- "x": 1348.9999961853027,
- "y": 997.3334283828735,
- "z": "317ebaae.5c7d96",
- "wires": [
- [
- "8bce9ef6.8c64b",
- "f946697a.f2e038",
- "dc809f26.1038e",
- "33899a2d.6b73a6",
- "1978c3ed.c9ea0c",
- "20e71ac4.ed3ad6"
- ]
- ]
- },
- {
- "id": "f946697a.f2e038",
- "type": "execute",
- "name": "gNBCUCPList.gNBCUName",
- "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'>\n\t<parameter name='outputPath' value='tmp.gNBCUCPList.gNBCUName' />\n\t<parameter name='source' value=\"`'getRIC-configdb-response.[' + $id1 + '].gNBCUCPList[' + $id2 + '].gNBCUName'`\" />\n",
- "comments": "",
- "outputs": 1,
- "x": 1761.9999732971191,
- "y": 884.3334541320801,
- "z": "317ebaae.5c7d96",
- "wires": [
- []
- ]
- },
- {
- "id": "dc809f26.1038e",
- "type": "execute",
- "name": "gNBCUCPList-gNBId",
- "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'>\n\t<parameter name='outputPath' value='tmp.gNBCUCPList.gNBId' />\n\t<parameter name='source' value=\"`'getRIC-configdb-response.[' + $id1 + '].gNBCUCPList[' + $id2 + '].gNBId'`\" />",
- "comments": "",
- "outputs": 1,
- "x": 1752.9999771118164,
- "y": 942.3335151672363,
- "z": "317ebaae.5c7d96",
- "wires": [
- []
- ]
- },
- {
- "id": "33899a2d.6b73a6",
- "type": "execute",
- "name": "gNBCUCPList-gNBIdLength",
- "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'>\n\t<parameter name='outputPath' value='tmp.gNBCUCPList.gNBIdLength' />\n\t<parameter name='source' value=\"`'getRIC-configdb-response.[' + $id1 + '].gNBCUCPList[' + $id2 + '].gNBIdLength'`\" />",
- "comments": "",
- "outputs": 1,
- "x": 1742.999984741211,
- "y": 988.3335914611816,
- "z": "317ebaae.5c7d96",
- "wires": [
- []
- ]
- },
- {
- "id": "1978c3ed.c9ea0c",
- "type": "execute",
- "name": "gNBCUCPList-pLMNId",
- "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'>\n\t<parameter name='outputPath' value='tmp.gNBCUCPList.pLMNId' />\n\t<parameter name='source' value=\"`'getRIC-configdb-response.[' + $id1 + '].gNBCUCPList[' + $id2 + '].pLMNId'`\" />",
- "comments": "",
- "outputs": 1,
- "x": 1727.0000495910645,
- "y": 1086.3335313796997,
- "z": "317ebaae.5c7d96",
- "wires": [
- []
- ]
- },
- {
- "id": "733c9805.32a648",
- "type": "for",
- "name": "For List of Cells ",
- "xml": "<for index='id3' start='0' end='`$getListofCells-configdb-response._length `' >",
- "comments": "",
- "outputs": 1,
- "x": 1071.9898223876953,
- "y": 1447.3334774971008,
- "z": "317ebaae.5c7d96",
- "wires": [
- [
- "1b1a8c90.b92453",
- "15539e6f.04a322",
- "52b210fd.f60e6",
- "11a40d62.43ddb3",
- "85ad74b1.3e5678",
- "8d863ea2.b67b2"
- ]
- ]
- },
- {
- "id": "1b1a8c90.b92453",
- "type": "block",
- "name": "pLMNInfoList Level Parms",
- "xml": "<block atomic='true'>",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
"atomic": "true",
- "comments": "",
- "outputs": 1,
- "x": 1556.9897689819336,
- "y": 1161.333408355713,
- "z": "317ebaae.5c7d96",
- "wires": [
- [
- "3945f8a3.8e6a78"
- ]
- ]
- },
- {
- "id": "3945f8a3.8e6a78",
- "type": "execute",
- "name": "pLMNInfoListEntries",
- "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'>\n\t<parameter name='outputPath' value='tmp.pLMNInfoListEntries' />\n\t<parameter name='source' value=\"`'getRIC-configdb-response.[' + $id1 + '].gNBCUCPList[' + $id2 + '].cellCUList[' + $id3 + '].pLMNInfoList_length'`\" />",
- "comments": "",
- "outputs": 1,
- "x": 1821.9897842407227,
- "y": 1139.3333988189697,
- "z": "317ebaae.5c7d96",
- "wires": [
- []
- ]
- },
- {
- "id": "15539e6f.04a322",
- "type": "record",
- "name": "record",
- "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.FileRecorder\">\n<parameter name=\"file\" value=\"/opt/opendaylight/current/data/log/instantiateRANSlice.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"Numberof pLMNInfoList Entries \"/>\n<parameter name=\"field2\" value=\"`$tmp.pLMNInfoListEntries`\"/>\n<parameter name=\"field3\" value=\"cellLocalId from Relevant cells \"/>\n<parameter name=\"field4\" value=\"`$tmp.cellLocalId`\"/>",
- "comments": "",
"outputs": 1,
- "x": 1523.9897842407227,
- "y": 1219.3333988189697,
- "z": "317ebaae.5c7d96",
- "wires": [
- []
- ]
- },
- {
- "id": "52b210fd.f60e6",
- "type": "for",
- "name": "For pLMNInfoListEntries",
- "xml": "<for index='id4' start='0' end='`$tmp.pLMNInfoListEntries`' >",
- "comments": "",
- "outputs": 1,
- "x": 1554.9897842407227,
- "y": 1317.3333988189697,
- "z": "317ebaae.5c7d96",
+ "x": 1307.9998950958252,
+ "y": 454.99999618530273,
+ "z": "504d7698.3603d8",
"wires": [
[
- "27a6b19b.91d4de"
+ "9018f001.f4f13"
]
]
},
{
- "id": "b84869ff.9b40a8",
- "type": "record",
- "name": "record",
- "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.FileRecorder\">\n<parameter name=\"file\" value=\"/opt/opendaylight/current/data/log/instantiateRANSlice.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"MCC \"/>\n<parameter name=\"field2\" value=\"`$tmp.mcc`\"/>\n<parameter name=\"field3\" value=\"MNC \"/>\n<parameter name=\"field4\" value=\"`$tmp.mnc`\"/>\n<parameter name=\"field5\" value=\"Calculated uLThptPerSlice \"/>\n<parameter name=\"field6\" value=\"`$tmp.uLThptPerSlice`\"/>\n<parameter name=\"field7\" value=\"Calculated dLThptPerSlice \"/>\n<parameter name=\"field8\" value=\"`$tmp.dLThptPerSlice`\"/>\n<parameter name=\"field9\" value=\"Calculated maxNumberOfConns \"/>\n<parameter name=\"field10\" value=\"`$tmp.maxNumberOfConns`\"/>",
- "comments": "",
- "outputs": 1,
- "x": 1234.9896221160889,
- "y": 1099.3333826065063,
- "z": "317ebaae.5c7d96",
- "wires": [
- []
- ]
- },
- {
- "id": "27a6b19b.91d4de",
+ "id": "974dd6b9.655e38",
"type": "block",
- "name": "pLMNInfoList Parms",
- "xml": "<block atomic='true'>",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
"atomic": "true",
- "comments": "",
"outputs": 1,
- "x": 1774.9897842407227,
- "y": 1313.3333988189697,
- "z": "317ebaae.5c7d96",
+ "x": 1328.2143478393555,
+ "y": 550.5000791549683,
+ "z": "504d7698.3603d8",
"wires": [
[
- "83145e3a.727ee",
- "99f6abbd.eccf28"
+ "50e1c291.f5445c"
]
]
},
{
- "id": "83145e3a.727ee",
- "type": "execute",
- "name": "sNSSAI",
- "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'>\n\t<parameter name='outputPath' value='tmp.fromRAN.sNSSAI' />\n\t<parameter name='source' value=\"`'getRIC-configdb-response.[' + $id1 + '].gNBDUList[' + $id2 + '].cellDUList[' + $id3 + '].pLMNInfoList[' + $id4 + '].sNSSAI.sNSSAI'`\" />",
- "comments": "",
- "outputs": 1,
- "x": 1948.9898376464844,
- "y": 1269.3333988189697,
- "z": "317ebaae.5c7d96",
- "wires": [
- []
- ]
- },
- {
- "id": "c421b4c1.61f078",
- "type": "comment",
- "name": "Check if sNSSAI already exists in YANG tree",
- "info": "This needs more work. If sNSSAI already exists in the YANG tree, need to patch the existing pLMNInfoList entry",
- "comments": "",
- "x": 1626.9897842407227,
- "y": 1268.3333988189697,
- "z": "317ebaae.5c7d96",
- "wires": []
- },
- {
- "id": "99f6abbd.eccf28",
- "type": "record",
- "name": "record",
- "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.FileRecorder\">\n<parameter name=\"file\" value=\"/opt/opendaylight/current/data/log/instantiateRANSlice.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"sNSSAI from RAN to check if already exists \"/>\n<parameter name=\"field2\" value=\"`$tmp.fromRAN.sNSSAI`\"/>\n",
- "comments": "",
- "outputs": 1,
- "x": 1951.9897842407227,
- "y": 1333.3333988189697,
- "z": "317ebaae.5c7d96",
- "wires": [
- []
- ]
- },
- {
- "id": "ecbd6362.e7e84",
- "type": "execute",
- "name": "cellLocalId",
- "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'>\n\t<parameter name='outputPath' value='tmp.cellLocalId' />\n\t<parameter name='source' value=\"`'getRIC-configdb-response.[' + $id1 + '].gNBCUCPList[' + $id2 + '].cellCUList[' + $id3 + '].cellLocalId'`\" />",
- "comments": "",
- "outputs": 1,
- "x": 1798.9897766113281,
- "y": 1199.3333835601807,
- "z": "317ebaae.5c7d96",
- "wires": [
- []
- ]
- },
- {
- "id": "4db3fe72.a2646",
- "type": "record",
- "name": "record",
- "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.FileRecorder\">\n<parameter name=\"file\" value=\"/opt/opendaylight/current/data/log/instantiateRANSlice.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"Setting variables for PLMNInfoList Entry Add to NRCellCU\"/>\n<parameter name=\"field2\" value=\"`$prop.controller.url + $tmp.addPLMNInfoListEntry.ToNRCellCU.url`\"/>\n<parameter name=\"field3\" value=\"`$tmp.mcc`\"/>\n<parameter name=\"field4\" value=\"`$tmp.mnc`\"/>\n<parameter name=\"field5\" value=\"`$payloadJson.input.sliceProfile.sNSSAI`\"/>\n<parameter name=\"field6\" value=\"`$tmp.uLThptPerSlice`\"/>\n<parameter name=\"field7\" value=\"`$tmp.dLThptPerSlice`\"/>",
- "comments": "",
- "outputs": 1,
- "x": 1734.0010108947754,
- "y": 1767.6669654846191,
- "z": "317ebaae.5c7d96",
- "wires": [
- []
- ]
- },
- {
- "id": "11a40d62.43ddb3",
+ "id": "48aa94ba.46a4ac",
"type": "block",
- "name": "Add PLMNInfoList Entry",
- "xml": "<block atomic='true'>",
- "atomic": "true",
- "comments": "",
- "outputs": 1,
- "x": 1406.9999542236328,
- "y": 1655.6774425506592,
- "z": "317ebaae.5c7d96",
- "wires": [
- [
- "4db3fe72.a2646",
- "8160da34.a2b9e8",
- "718b69b6.594988",
- "fc2ec14f.59e4",
- "f2d450fe.f0a98",
- "b7251774.07dde8",
- "8cae0c86.b36b6",
- "8ad697ad.f7bec8"
- ]
- ]
- },
- {
- "id": "8ad697ad.f7bec8",
- "type": "execute",
- "name": "add PLMNInfoListEntry ToNRCellCU using PUT",
- "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"templateFileName\" value=\"`$prop.restapi.templateDir + '/ranSlice-add-get-PLMNInfoListEntry-NRCellCU.json'`\" />\n<parameter name=\"restapiUrl\" value=\"`$prop.controller.url + $tmp.addPLMNInfoListEntry.ToNRCellCU.url`\"/>\n<parameter name=\"restapiUser\" value=\"`$prop.controller.user`\" />\n<parameter name=\"restapiPassword\" value=\"`$prop.controller.pwd`\"/>\n<parameter name=\"httpMethod\" value=\"PUT\"/>\n<parameter name=\"responsePrefix\" value=\"PLMNInfoListEntry-response\"/>\n<parameter name='contentType' value='application/json' /> \n<parameter name='format' value='json' />",
- "comments": "",
- "outputs": 1,
- "x": 1811.0002822875977,
- "y": 1845.6772708892822,
- "z": "317ebaae.5c7d96",
- "wires": [
- [
- "2f102ed6.9386e2",
- "4988d7a4.31bb48"
- ]
- ]
- },
- {
- "id": "8160da34.a2b9e8",
- "type": "record",
- "name": "record",
- "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.FileRecorder\">\n<parameter name=\"file\" value=\"/opt/opendaylight/current/data/log/instantiateRANSlice.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"Add PLMNInfoListEntry ToNRCellCU URL\"/>\n<parameter name=\"field2\" value=\"`$tmp.addPLMNInfoListEntry.ToNRCellCU.url`\"/>",
- "comments": "",
- "outputs": 1,
- "x": 1727.000129699707,
- "y": 1715.6775646209717,
- "z": "317ebaae.5c7d96",
- "wires": [
- []
- ]
- },
- {
- "id": "2a0e8c44.4779b4",
- "type": "execute",
- "name": "generate addPLMNInfoListEntry.ToNRCellDU",
- "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$prop.restapi.addPLMNInfoListEntry.ToNRCellCU`\"/>\n <parameter name=\"outputPath\" value=\"tmp.addPLMNInfoListEntry.ToNRCellCU.url\"/>\n <parameter name=\"target\" value=\"{idNearRTRIC}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.nearRTRICId`\"/>",
- "comments": "",
- "outputs": 1,
- "x": 1870.0002059936523,
- "y": 1398.3336944580078,
- "z": "317ebaae.5c7d96",
- "wires": [
- []
- ]
- },
- {
- "id": "718b69b6.594988",
- "type": "execute",
- "name": "Populate idGNBDUFunction",
- "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$tmp.addPLMNInfoListEntry.ToNRCellCU.url`\"/>\n <parameter name=\"outputPath\" value=\"tmp.addPLMNInfoListEntry.ToNRCellCU.url\"/>\n <parameter name=\"target\" value=\"{idGNBCUCPFunction}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.gNBCUCPList.gNBCUName`\"/>",
- "comments": "",
- "outputs": 1,
- "x": 1751.9899063110352,
- "y": 1538.333468914032,
- "z": "317ebaae.5c7d96",
- "wires": [
- []
- ]
- },
- {
- "id": "fc2ec14f.59e4",
- "type": "execute",
- "name": "Populate idNRCellDU",
- "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$tmp.addPLMNInfoListEntry.ToNRCellCU.url`\"/>\n <parameter name=\"outputPath\" value=\"tmp.addPLMNInfoListEntry.ToNRCellCU.url\"/>\n <parameter name=\"target\" value=\"{idNRCellCU}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.cellLocalId`\"/>",
- "comments": "",
- "outputs": 1,
- "x": 1739.989902496338,
- "y": 1584.3335299491882,
- "z": "317ebaae.5c7d96",
- "wires": [
- []
- ]
- },
- {
- "id": "f2d450fe.f0a98",
- "type": "execute",
- "name": "Populate mcc",
- "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$tmp.addPLMNInfoListEntry.ToNRCellCU.url`\"/>\n <parameter name=\"outputPath\" value=\"tmp.addPLMNInfoListEntry.ToNRCellCU.url\"/>\n <parameter name=\"target\" value=\"{mcc}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.mcc`\"/>",
- "comments": "",
- "outputs": 1,
- "x": 1726.9899044036865,
- "y": 1625.3335914611816,
- "z": "317ebaae.5c7d96",
- "wires": [
- []
- ]
- },
- {
- "id": "b7251774.07dde8",
- "type": "execute",
- "name": "Populate mnc",
- "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$tmp.addPLMNInfoListEntry.ToNRCellCU.url`\"/>\n <parameter name=\"outputPath\" value=\"tmp.addPLMNInfoListEntry.ToNRCellCU.url\"/>\n <parameter name=\"target\" value=\"{mnc}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.mnc`\"/>",
- "comments": "",
- "outputs": 1,
- "x": 1734.989902496338,
- "y": 1666.3334693908691,
- "z": "317ebaae.5c7d96",
- "wires": [
- []
- ]
- },
- {
- "id": "2f102ed6.9386e2",
- "type": "failure",
- "name": "failure",
- "xml": "<outcome value='failure'>\n",
- "comments": "",
- "outputs": 1,
- "x": 2103.0002822875977,
- "y": 1773.6667728424072,
- "z": "317ebaae.5c7d96",
- "wires": [
- [
- "d3e0f36b.1c919"
- ]
- ]
- },
- {
- "id": "4988d7a4.31bb48",
- "type": "success",
- "name": "success",
- "xml": "<outcome value='success'>\n",
- "comments": "",
- "outputs": 1,
- "x": 2148.000160217285,
- "y": 1871.6667728424072,
- "z": "317ebaae.5c7d96",
- "wires": [
- [
- "cb821ea4.096cb"
- ]
- ]
- },
- {
- "id": "d3e0f36b.1c919",
- "type": "block",
- "name": "block",
- "xml": "<block>\n",
- "atomic": "false",
- "comments": "",
- "outputs": 1,
- "x": 2301.000160217285,
- "y": 1766.6668949127197,
- "z": "317ebaae.5c7d96",
- "wires": [
- [
- "55f4de9b.d689c"
- ]
- ]
- },
- {
- "id": "cb821ea4.096cb",
- "type": "block",
- "name": "block",
- "xml": "<block>\n",
- "atomic": "false",
- "comments": "",
- "outputs": 1,
- "x": 2327.99991607666,
- "y": 1868.6667728424072,
- "z": "317ebaae.5c7d96",
- "wires": [
- [
- "3965194e.edc796"
- ]
- ]
- },
- {
- "id": "55f4de9b.d689c",
- "type": "returnFailure",
- "name": "return failure",
- "xml": "<return status='failure'>\n<parameter name='ack-final' value='Y'/>\n<parameter name=\"error-code\" value=\"500\" />\n<parameter name=\"error-message\" value=\"Error adding PLMNInfoList Entry to NRCellCU\" />",
- "comments": "",
- "x": 2485.9999771118164,
- "y": 1762.666904449463,
- "z": "317ebaae.5c7d96",
- "wires": []
- },
- {
- "id": "3965194e.edc796",
- "type": "record",
- "name": "record",
- "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.FileRecorder\">\n<parameter name=\"file\" value=\"/opt/opendaylight/current/data/log/instantiateRANSlice.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"PLMNInfo List Entry Add to NRCELLCU Executed Successfully \"/>",
- "comments": "",
- "outputs": 1,
- "x": 2471.0002822875977,
- "y": 1868.666979789734,
- "z": "317ebaae.5c7d96",
- "wires": [
- []
- ]
- },
- {
- "id": "c0439f59.e499f",
- "type": "set",
- "name": "Calculate uLThptPerSlice dLThptPerSlice maxNumberOfConns",
- "xml": "<set>\n<parameter name='tmp.uLThptPerSlice1' value='`$payloadJson.input.sliceProfile.uLThptPerSlice * 1.1`' />\n<parameter name='tmp.uLThptPerSlice' value='`$tmp.uLThptPerSlice1 / $getListofCells-configdb-response._length`' />\n<parameter name='tmp.dLThptPerSlice1' value='`$payloadJson.input.sliceProfile.dLThptPerSlice * 1.1`' />\n<parameter name='tmp.dLThptPerSlice' value='`$tmp.dLThptPerSlice1 / $getListofCells-configdb-response._length`' />\n<parameter name='tmp.maxNumberOfConns1' value='`$payloadJson.input.sliceProfile.maxNumberOfConns * 1.1`' />\n<parameter name='tmp.maxNumberOfConns' value='`$tmp.maxNumberOfConns1 / $getListofCells-configdb-response._length`' />",
- "comments": "",
- "x": 1163.9896087646484,
- "y": 927.3335199356079,
- "z": "317ebaae.5c7d96",
- "wires": []
- },
- {
- "id": "82779cf7.2054e",
- "type": "execute",
- "name": "generate addPLMNInfoListEntry.ToNRCellDU",
- "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$prop.restapi.addPLMNInfoListEntry.ToNRCellCU.ransim-mounted`\"/>\n <parameter name=\"outputPath\" value=\"tmp.addPLMNInfoListEntry.ToNRCellCU.url\"/>\n <parameter name=\"target\" value=\"{idNearRTRIC}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.nearRTRICId`\"/>",
- "comments": "",
- "outputs": 1,
- "x": 2064.9898414611816,
- "y": 1446.3335275650024,
- "z": "317ebaae.5c7d96",
- "wires": [
- []
- ]
- },
- {
- "id": "32edbce2.804f24",
- "type": "block",
- "name": "ransim URL",
- "xml": "<block atomic='true'>",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
"atomic": "true",
- "comments": "",
"outputs": 1,
- "x": 1757.9898109436035,
- "y": 1476.3335886001587,
- "z": "317ebaae.5c7d96",
+ "x": 1315.8214492797852,
+ "y": 746.4286479949951,
+ "z": "504d7698.3603d8",
"wires": [
[
- "82779cf7.2054e",
- "9c262259.dc8df"
+ "66a9f9d6.18f8e8"
]
]
},
{
- "id": "9c262259.dc8df",
- "type": "execute",
- "name": "populate mountName",
- "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$tmp.addPLMNInfoListEntry.ToNRCellCU.url`\"/>\n <parameter name=\"outputPath\" value=\"tmp.addPLMNInfoListEntry.ToNRCellCU.url\"/>\n <parameter name=\"target\" value=\"{mountName}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.gNBCUCPList.gNBCUName`\"/>",
- "comments": "",
- "outputs": 1,
- "x": 2008.9902420043945,
- "y": 1499.3337211608887,
- "z": "317ebaae.5c7d96",
- "wires": [
- []
- ]
- },
- {
- "id": "f7b7744.5201f88",
+ "id": "aba8f6e8.f40d18",
"type": "block",
- "name": "Get Cells List in TA",
- "xml": "<block atomic='true'>",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
"atomic": "true",
- "comments": "",
"outputs": 1,
- "x": 692.9898338317871,
- "y": 651.3338212966919,
- "z": "317ebaae.5c7d96",
+ "x": 1328.7499389648438,
+ "y": 648.6429691314697,
+ "z": "504d7698.3603d8",
"wires": [
[
- "eb2bb3c.d09c55",
- "99fce530.d05668",
- "48b0a5c0.b4afbc"
+ "8bc4109b.5e7a3"
]
]
},
{
- "id": "eb2bb3c.d09c55",
- "type": "execute",
- "name": "generate getListOfCells URL",
- "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$prop.restapi.configdb.getListOfCells`\"/>\n <parameter name=\"outputPath\" value=\"tmp.configdb.getListOfCells.url\"/>\n <parameter name=\"target\" value=\"{trackingArea}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.payload.trackingArea`\"/>",
- "comments": "",
- "outputs": 1,
- "x": 976.9899978637695,
- "y": 535.3337769508362,
- "z": "317ebaae.5c7d96",
- "wires": [
- []
- ]
- },
- {
- "id": "99fce530.d05668",
- "type": "record",
- "name": "record configdb RestAPI parms",
- "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.FileRecorder\">\n<parameter name=\"file\" value=\"/opt/opendaylight/current/data/log/instantiateRANSlice.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"URL for configDB Get getListOfCells for tracking area\"/>\n<parameter name='field2' value=\"`$prop.configdb.url + $tmp.configdb.getListOfCells.url`\" />\n<parameter name='field3' value=\"`$tmp.payload.trackingArea`\" />",
+ "id": "9018f001.f4f13",
+ "type": "call",
+ "name": "call instantiateRANSliceAllocate",
+ "xml": "<call module='GENERIC-RESOURCE-API' rpc='instantiateRANSliceAllocate' mode='sync' >\n",
"comments": "",
"outputs": 1,
- "x": 999.9900817871094,
- "y": 611.3339412212372,
- "z": "317ebaae.5c7d96",
- "wires": [
- []
- ]
- },
- {
- "id": "48b0a5c0.b4afbc",
- "type": "execute",
- "name": "Get ListOfCells for TrackingArea",
- "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"restapiUrl\" value=\"`$prop.configdb.url + $tmp.configdb.getListOfCells.url`\"/>\n<parameter name=\"httpMethod\" value=\"GET\"/>\n<parameter name=\"responsePrefix\" value=\"getListofCells-configdb-response\"/>\n<parameter name='contentType' value='application/json' /> \n<parameter name='format' value='json' />\n<parameter name='accept' value='application/json' />",
- "comments": "",
- "outputs": 1,
- "x": 987.9901657104492,
- "y": 680.3339023590088,
- "z": "317ebaae.5c7d96",
+ "x": 1596.2498779296875,
+ "y": 443.7499723434448,
+ "z": "504d7698.3603d8",
"wires": [
[
- "2fd52bfe.023254",
- "a00e958f.364248"
+ "241992b8.fd403e"
]
]
},
{
- "id": "2fd52bfe.023254",
+ "id": "241992b8.fd403e",
"type": "failure",
"name": "failure",
"xml": "<outcome value='failure'>\n",
"comments": "",
"outputs": 1,
- "x": 1267.989761352539,
- "y": 547.3339195251465,
- "z": "317ebaae.5c7d96",
+ "x": 1862.1070098876953,
+ "y": 452.32141494750977,
+ "z": "504d7698.3603d8",
"wires": [
[
- "1689ed33.8d9f13"
+ "3c5b4f11.7893f"
]
]
},
{
- "id": "a00e958f.364248",
- "type": "success",
- "name": "success",
- "xml": "<outcome value='success'>\n",
- "comments": "",
- "outputs": 1,
- "x": 1281.989601135254,
- "y": 662.3337868228555,
- "z": "317ebaae.5c7d96",
- "wires": [
- [
- "a8749c3e.3f0ae"
- ]
- ]
- },
- {
- "id": "1689ed33.8d9f13",
- "type": "block",
- "name": "block",
- "xml": "<block>\n",
- "atomic": "false",
- "comments": "",
- "outputs": 1,
- "x": 1424.9896087646484,
- "y": 517.3338375091553,
- "z": "317ebaae.5c7d96",
- "wires": [
- [
- "8860806d.b2fbe",
- "951dc5ce.d7c0a8"
- ]
- ]
- },
- {
- "id": "a8749c3e.3f0ae",
- "type": "block",
- "name": "block",
- "xml": "<block>\n",
- "atomic": "false",
- "comments": "",
- "outputs": 1,
- "x": 1446.9896087646484,
- "y": 630.3339223861694,
- "z": "317ebaae.5c7d96",
- "wires": [
- [
- "fa4b13b4.c3f48",
- "2d06d485.73640c",
- "939e1b4f.da4dc8"
- ]
- ]
- },
- {
- "id": "8860806d.b2fbe",
+ "id": "3c5b4f11.7893f",
"type": "returnFailure",
"name": "return failure",
- "xml": "<return status='failure'>\n<parameter name='ack-final' value='Y'/>\n<parameter name='code' value='500'/>\n<parameter name='message' value='Error Getting Info from ConfigDB. Aborting RPC executiopn'/>",
- "comments": "",
- "x": 1598.9894485473633,
- "y": 537.3338783979416,
- "z": "317ebaae.5c7d96",
- "wires": []
- },
- {
- "id": "fa4b13b4.c3f48",
- "type": "record",
- "name": "record",
- "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.FileRecorder\">\n<parameter name=\"file\" value=\"/opt/opendaylight/current/data/log/instantiateRANSlice.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"Successfully Obtained List of Cells from ConfigDB\"/>\n<parameter name=\"field2\" value=\"`$getListofCells-configdb-response._length`\"/>\n<parameter name=\"field3\" value=\"List of Cells in the Tracking Area Relevant for RAN Slice Instantiation \"/>",
- "comments": "",
- "outputs": 1,
- "x": 1608.9896125793457,
- "y": 594.3338794708252,
- "z": "317ebaae.5c7d96",
- "wires": [
- []
- ]
- },
- {
- "id": "951dc5ce.d7c0a8",
- "type": "set",
- "name": "set",
- "xml": "<set>\n<parameter name='code' value='500'/>\n<parameter name='message' value='Error Getting Info from ConfigDB. Aborting RPC executiopn'/>",
- "comments": "",
- "x": 1584.9896125793457,
- "y": 484.44483852386475,
- "z": "317ebaae.5c7d96",
- "wires": []
- },
- {
- "id": "2d06d485.73640c",
- "type": "execute",
- "name": "printContext",
- "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='printContext' >\n<parameter name='filename' value='/opt/opendaylight/current/data/log/ranSlice-instantiateRANSlice-configrsp-context.log' />\n\n\n",
- "comments": "",
- "outputs": 1,
- "x": 1637.7677688598633,
- "y": 699.3339023590088,
- "z": "317ebaae.5c7d96",
- "wires": [
- []
- ]
- },
- {
- "id": "f545de9a.c7e1c",
- "type": "comment",
- "name": "Connect to AddPLMNInfoList Entry",
- "info": "when able to talk to latest SDNC",
+ "xml": "<return status='failure'>\n<parameter name='ack-final' value='Y' />\n\n",
"comments": "",
- "x": 1738.989601135254,
- "y": 1806.6666870117188,
- "z": "317ebaae.5c7d96",
+ "x": 2034.1070175170898,
+ "y": 452.42856788635254,
+ "z": "504d7698.3603d8",
"wires": []
},
{
- "id": "3c19bbc9.79a1d4",
- "type": "switchNode",
- "name": "ransim mounted",
- "xml": "<switch test='`$prop.ransim-mounted`'>\n",
+ "id": "50e1c291.f5445c",
+ "type": "call",
+ "name": "call instantiateRANSliceModifyAllocate",
+ "xml": "<call module='GENERIC-RESOURCE-API' rpc='instantiateRANSliceModifyAllocate' mode='sync' >\n",
"comments": "",
"outputs": 1,
- "x": 1593.989601135254,
- "y": 1964.0000610351562,
- "z": "317ebaae.5c7d96",
+ "x": 1617.6787109375,
+ "y": 550.7500152587891,
+ "z": "504d7698.3603d8",
"wires": [
[
- "e3ff0455.620c38",
- "4b0abd2a.8dd034"
+ "e89d5508.674028"
]
]
},
{
- "id": "e3ff0455.620c38",
- "type": "outcome",
- "name": "Not Mounted",
- "xml": "<outcome value='false'>\n",
- "comments": "",
- "outputs": 1,
- "x": 1788.9896278381348,
- "y": 1923.9999685287476,
- "z": "317ebaae.5c7d96",
- "wires": [
- [
- "e5c6b0b7.4fd15"
- ]
- ]
- },
- {
- "id": "4b0abd2a.8dd034",
- "type": "outcome",
- "name": "Mounted",
- "xml": "<outcome value='true'>\n",
- "comments": "",
- "outputs": 1,
- "x": 1768.989601135254,
- "y": 2003.000060081482,
- "z": "317ebaae.5c7d96",
- "wires": [
- [
- "2e2df889.ef4f48"
- ]
- ]
- },
- {
- "id": "999d743.cedac88",
- "type": "record",
- "name": "record",
- "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.FileRecorder\">\n<parameter name=\"file\" value=\"/opt/opendaylight/current/data/log/instantiateRANSlice.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"Setting variables for addRRMPolicyRatio to NRCellCU\"/>\n<parameter name=\"field2\" value=\"`$prop.controller.url + $tmp.addRRMPolicyRatio.ToNRCellCU.url`\"/>\n<parameter name=\"field3\" value=\"`$tmp.mcc`\"/>\n<parameter name=\"field4\" value=\"`$tmp.mnc`\"/>\n<parameter name=\"field5\" value=\"`$payloadJson.input.sliceProfile.sNSSAI`\"/>\n<parameter name=\"field6\" value=\"`$tmp.uLThptPerSlice`\"/>\n<parameter name=\"field7\" value=\"`$tmp.dLThptPerSlice`\"/>",
- "comments": "",
- "outputs": 1,
- "x": 1757.9905471801758,
- "y": 2279.333578109741,
- "z": "317ebaae.5c7d96",
- "wires": [
- []
- ]
- },
- {
- "id": "2a512ed2.5a7ab2",
- "type": "execute",
- "name": "add RRM Policy ToNRCellCU using PUT",
- "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"templateFileName\" value=\"`$prop.restapi.templateDir + '/ranSlice-add-RRMPolicyRatio-NRCellCU.json'`\" />\n<parameter name=\"restapiUrl\" value=\"`$prop.controller.url + $tmp.addRRMPolicyRatio.ToNRCellCU.url`\"/>\n<parameter name=\"restapiUser\" value=\"`$prop.controller.user`\" />\n<parameter name=\"restapiPassword\" value=\"`$prop.controller.pwd`\"/>\n<parameter name=\"httpMethod\" value=\"PUT\"/>\n<parameter name=\"responsePrefix\" value=\"addRRMPolicyRatio-response\"/>\n<parameter name='contentType' value='application/json' /> \n<parameter name='format' value='json' />",
- "comments": "",
- "outputs": 1,
- "x": 1844.989761352539,
- "y": 2382.3437728881836,
- "z": "317ebaae.5c7d96",
- "wires": [
- [
- "6610568c.c7ad38",
- "b255ea17.5839a8"
- ]
- ]
- },
- {
- "id": "940d0d6f.f7bd1",
- "type": "record",
- "name": "record",
- "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.FileRecorder\">\n<parameter name=\"file\" value=\"/opt/opendaylight/current/data/log/instantiateRANSlice.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"addRRMPolicyRatio ToNRCellCU URL\"/>\n<parameter name=\"field2\" value=\"`$tmp.addRRMPolicyRatio.ToNRCellCU.url`\"/>",
- "comments": "",
- "outputs": 1,
- "x": 1743.9895629882812,
- "y": 2219.343635559082,
- "z": "317ebaae.5c7d96",
- "wires": [
- []
- ]
- },
- {
- "id": "e5c6b0b7.4fd15",
- "type": "execute",
- "name": "generate addRRMPolicy.ToNRCellDU URL",
- "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$prop.restapi.addRRMPolicyRatio.ToNRCellCU`\"/>\n <parameter name=\"outputPath\" value=\"tmp.addRRMPolicyRatio.ToNRCellCU.url\"/>\n <parameter name=\"target\" value=\"{idNearRTRIC}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.nearRTRICId`\"/>",
- "comments": "",
- "outputs": 1,
- "x": 2071.989601135254,
- "y": 1919.0000603199005,
- "z": "317ebaae.5c7d96",
- "wires": [
- []
- ]
- },
- {
- "id": "f109bb01.937248",
- "type": "execute",
- "name": "Populate idGNBDUFunction",
- "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$tmp.addRRMPolicyRatio.ToNRCellCU.url`\"/>\n <parameter name=\"outputPath\" value=\"tmp.addRRMPolicyRatio.ToNRCellCU.url\"/>\n <parameter name=\"target\" value=\"{idGNBCUCPFunction}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.gNBCUCPList.gNBCUName`\"/>\n",
- "comments": "",
- "outputs": 1,
- "x": 1784.979377746582,
- "y": 2073.000045776367,
- "z": "317ebaae.5c7d96",
- "wires": [
- []
- ]
- },
- {
- "id": "ffc63fd6.12b63",
- "type": "execute",
- "name": "Populate idNRCellDU",
- "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$tmp.addRRMPolicyRatio.ToNRCellCU.url`\"/>\n <parameter name=\"outputPath\" value=\"tmp.addRRMPolicyRatio.ToNRCellCU.url\"/>\n <parameter name=\"target\" value=\"{idNRCellCU}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.cellLocalId`\"/>",
- "comments": "",
- "outputs": 1,
- "x": 1777.9794158935547,
- "y": 2121.999988555908,
- "z": "317ebaae.5c7d96",
- "wires": [
- []
- ]
- },
- {
- "id": "dfc0a7a2.3e87a8",
- "type": "execute",
- "name": "Populate id",
- "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$tmp.addRRMPolicyRatio.ToNRCellCU.url`\"/>\n <parameter name=\"outputPath\" value=\"tmp.addRRMPolicyRatio.ToNRCellCU.url\"/>\n <parameter name=\"target\" value=\"{id}\"/>\n <parameter name=\"replacement\" value=\"0\"/>",
- "comments": "",
- "outputs": 1,
- "x": 1759.9793758392334,
- "y": 2160.000168323517,
- "z": "317ebaae.5c7d96",
- "wires": [
- []
- ]
- },
- {
- "id": "6610568c.c7ad38",
+ "id": "e89d5508.674028",
"type": "failure",
"name": "failure",
"xml": "<outcome value='failure'>\n",
"comments": "",
"outputs": 1,
- "x": 2135.9897537231445,
- "y": 2308.3333497047424,
- "z": "317ebaae.5c7d96",
+ "x": 1881.9644355773926,
+ "y": 550.7500410079956,
+ "z": "504d7698.3603d8",
"wires": [
[
- "16869786.6ffb88"
+ "648b3bba.8b5504"
]
]
},
{
- "id": "b255ea17.5839a8",
- "type": "success",
- "name": "success",
- "xml": "<outcome value='success'>\n",
- "comments": "",
- "outputs": 1,
- "x": 2180.989631652832,
- "y": 2406.3333497047424,
- "z": "317ebaae.5c7d96",
- "wires": [
- [
- "98868479.12d078"
- ]
- ]
- },
- {
- "id": "16869786.6ffb88",
- "type": "block",
- "name": "block",
- "xml": "<block>\n",
- "atomic": "false",
- "comments": "",
- "outputs": 1,
- "x": 2333.989631652832,
- "y": 2301.333471775055,
- "z": "317ebaae.5c7d96",
- "wires": [
- [
- "8bbd980b.efdc08"
- ]
- ]
- },
- {
- "id": "98868479.12d078",
- "type": "block",
- "name": "block",
- "xml": "<block>\n",
- "atomic": "false",
- "comments": "",
- "outputs": 1,
- "x": 2360.989387512207,
- "y": 2403.3333497047424,
- "z": "317ebaae.5c7d96",
- "wires": [
- [
- "4859b2b7.7cf53c"
- ]
- ]
- },
- {
- "id": "8bbd980b.efdc08",
+ "id": "648b3bba.8b5504",
"type": "returnFailure",
"name": "return failure",
- "xml": "<return status='failure'>\n<parameter name='ack-final' value='Y'/>\n<parameter name=\"error-code\" value=\"500\" />\n<parameter name=\"error-message\" value=\"Error adding RRMPolicyr\" />",
- "comments": "",
- "x": 2518.9894485473633,
- "y": 2297.333481311798,
- "z": "317ebaae.5c7d96",
- "wires": []
- },
- {
- "id": "4859b2b7.7cf53c",
- "type": "record",
- "name": "record",
- "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.FileRecorder\">\n<parameter name=\"file\" value=\"/opt/opendaylight/current/data/log/instantiateRANSlice.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"addRRMPolicyRatio to NRCELLCU Executed Successfully \"/>",
- "comments": "",
- "outputs": 1,
- "x": 2510.98978805542,
- "y": 2434.33358001709,
- "z": "317ebaae.5c7d96",
- "wires": [
- []
- ]
- },
- {
- "id": "22fac1c3.1a1a6e",
- "type": "execute",
- "name": "generate RRMPolicy Ratio URL ToNRCellDU",
- "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$prop.restapi.addRRMPolicyRatio.ToNRCellCU.ransim-mounted`\"/>\n <parameter name=\"outputPath\" value=\"tmp.addRRMPolicyRatio.ToNRCellCU.url\"/>\n <parameter name=\"target\" value=\"{idNearRTRIC}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.nearRTRICId`\"/>",
- "comments": "",
- "outputs": 1,
- "x": 2267.979316711426,
- "y": 1974.000051498413,
- "z": "317ebaae.5c7d96",
- "wires": [
- []
- ]
- },
- {
- "id": "2e2df889.ef4f48",
- "type": "block",
- "name": "ransim URL",
- "xml": "<block atomic='true'>",
- "atomic": "true",
- "comments": "",
- "outputs": 1,
- "x": 1961.9792518615723,
- "y": 1998.000060081482,
- "z": "317ebaae.5c7d96",
- "wires": [
- [
- "22fac1c3.1a1a6e",
- "6ae8becd.141b"
- ]
- ]
- },
- {
- "id": "6ae8becd.141b",
- "type": "execute",
- "name": "populate mountName",
- "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$tmp.addRRMPolicyRatio.ToNRCellCU.url`\"/>\n <parameter name=\"outputPath\" value=\"tmp.addRRMPolicyRatio.ToNRCellCU.url\"/>\n <parameter name=\"target\" value=\"{mountName}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.gNBCUCPList.gNBCUName`\"/>",
- "comments": "",
- "outputs": 1,
- "x": 2204.9793243408203,
- "y": 2033.0001106262207,
- "z": "317ebaae.5c7d96",
- "wires": [
- []
- ]
- },
- {
- "id": "ba27c3fe.0b27c",
- "type": "comment",
- "name": "Connect to RRM P{olicy Ratio",
- "info": "when able to talk to latest SDNC",
- "comments": "",
- "x": 1771.9790725708008,
- "y": 2341.333263874054,
- "z": "317ebaae.5c7d96",
- "wires": []
- },
- {
- "id": "579d950f.4d634c",
- "type": "block",
- "name": "rrmPolicyDedicatedRatio",
- "xml": "<block atomic='true'>",
- "atomic": "true",
- "comments": "",
- "outputs": 1,
- "x": 1018.0000839233398,
- "y": 872.0105986595154,
- "z": "317ebaae.5c7d96",
- "wires": [
- [
- "ea2260c9.ec9e",
- "5df9d52f.1b9abc",
- "6d10c1ea.2da49"
- ]
- ]
- },
- {
- "id": "ea2260c9.ec9e",
- "type": "set",
- "name": "calculation",
- "xml": "<set>\n<parameter name='tmp.uLThptPerSlicePerCell' value='5' />",
- "comments": "",
- "x": 1335.0002899169922,
- "y": 768.788323879242,
- "z": "317ebaae.5c7d96",
- "wires": []
- },
- {
- "id": "20e71ac4.ed3ad6",
- "type": "execute",
- "name": "gNBCUCPList-nFType",
- "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'>\n\t<parameter name='outputPath' value='tmp.gNBCUCPList.nFType' />\n\t<parameter name='source' value=\"`'getRIC-configdb-response.[' + $id1 + '].gNBCUCPList[' + $id2 + '].nFType'`\" />",
- "comments": "",
- "outputs": 1,
- "x": 1724.0000076293945,
- "y": 1034.3334789276123,
- "z": "317ebaae.5c7d96",
- "wires": [
- []
- ]
- },
- {
- "id": "5df9d52f.1b9abc",
- "type": "switchNode",
- "name": "check",
- "xml": "<switch test='`$tmp.uLThptPerSlicePerCell`'>\n",
- "comments": "",
- "outputs": 1,
- "x": 1336.000144958496,
- "y": 816.454870223999,
- "z": "317ebaae.5c7d96",
- "wires": [
- [
- "829b8dff.885d8",
- "db062008.ed287"
- ]
- ]
- },
- {
- "id": "829b8dff.885d8",
- "type": "outcome",
- "name": "value5",
- "xml": "<outcome value='5'>\n",
- "comments": "",
- "outputs": 1,
- "x": 1493.0000534057617,
- "y": 764.4547052383423,
- "z": "317ebaae.5c7d96",
- "wires": [
- [
- "c4352d3b.8d233"
- ]
- ]
- },
- {
- "id": "db062008.ed287",
- "type": "outcome",
- "name": "value10",
- "xml": "<outcome value='10'>\n",
- "comments": "",
- "outputs": 1,
- "x": 1502.0002574920654,
- "y": 818.4548978805542,
- "z": "317ebaae.5c7d96",
- "wires": [
- [
- "5de8fa86.5a0734"
- ]
- ]
- },
- {
- "id": "c4352d3b.8d233",
- "type": "set",
- "name": "set rrmPolicyDedicatedRatio",
- "xml": "<set>\n<parameter name='tmp.rRMPolicyDedicatedRatio.CellCU' value='10' />",
- "comments": "",
- "x": 1717.0000534057617,
- "y": 750.4548673629761,
- "z": "317ebaae.5c7d96",
- "wires": []
- },
- {
- "id": "5de8fa86.5a0734",
- "type": "set",
- "name": "set rrmPolicyDedicatedRatio",
- "xml": "<set>\n<parameter name='tmp.rRMPolicyDedicatedRatio.CellCU' value='20' />",
- "comments": "",
- "x": 1709.9999771118164,
- "y": 797.454833984375,
- "z": "317ebaae.5c7d96",
- "wires": []
- },
- {
- "id": "6d10c1ea.2da49",
- "type": "record",
- "name": "record",
- "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.FileRecorder\">\n<parameter name=\"file\" value=\"/opt/opendaylight/current/data/log/instantiateRANSlice.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"rRMPolicyDedicatedRatio for CellCU \"/>\n<parameter name=\"field2\" value=\"`$tmp.rRMPolicyDedicatedRatio.CellCU`\"/>",
- "comments": "",
- "outputs": 1,
- "x": 1311.0000839233398,
- "y": 863.4549884796143,
- "z": "317ebaae.5c7d96",
- "wires": [
- []
- ]
- },
- {
- "id": "9cf75b58.81f948",
- "type": "block",
- "name": "CUUP",
- "xml": "<block atomic='true'>",
- "atomic": "true",
- "comments": "",
- "outputs": 1,
- "x": 636.0312423706055,
- "y": 2623.0781478881836,
- "z": "317ebaae.5c7d96",
- "wires": [
- [
- "4c3b7267.4d3d8c",
- "2ec79f96.150d",
- "b4c603ac.c0f86",
- "1dd8e900.2b70d7",
- "f1d387c8.c5cd08"
- ]
- ]
- },
- {
- "id": "a100b2a2.2da0d",
- "type": "block",
- "name": "Add RRM Policy Ratio",
- "xml": "<block atomic='true'>",
- "atomic": "true",
- "comments": "",
- "outputs": 1,
- "x": 942.031322479248,
- "y": 4183.078390598297,
- "z": "317ebaae.5c7d96",
- "wires": [
- [
- "d51fe451.c40ce8",
- "f4bfd4dd.52e558",
- "f9de7959.ecc438",
- "2fcc259a.0b3a5a",
- "bdf3a337.90acd",
- "5ea27454.64b39c"
- ]
- ]
- },
- {
- "id": "8453c373.c414f",
- "type": "switchNode",
- "name": "ransim mounted",
- "xml": "<switch test='`$prop.ransim-mounted`'>\n",
- "comments": "",
- "outputs": 1,
- "x": 1197.0314102172852,
- "y": 3450.0789613723755,
- "z": "317ebaae.5c7d96",
- "wires": [
- [
- "b5d66921.543e88",
- "51b06ec1.1a088"
- ]
- ]
- },
- {
- "id": "b5d66921.543e88",
- "type": "outcome",
- "name": "Not Mounted",
- "xml": "<outcome value='false'>\n",
- "comments": "",
- "outputs": 1,
- "x": 1424.0314140319824,
- "y": 3399.078959465027,
- "z": "317ebaae.5c7d96",
- "wires": [
- [
- "9e164396.76fb5"
- ]
- ]
- },
- {
- "id": "51b06ec1.1a088",
- "type": "outcome",
- "name": "Mounted",
- "xml": "<outcome value='true'>\n",
- "comments": "",
- "outputs": 1,
- "x": 1411.0314140319824,
- "y": 3485.07896232605,
- "z": "317ebaae.5c7d96",
- "wires": [
- [
- "cb8c865.5153278"
- ]
- ]
- },
- {
- "id": "2ec79f96.150d",
- "type": "for",
- "name": "For List of CUCP's",
- "xml": "<for index='id2' start='0' end='`$tmp.CUCPListEntries `' >",
- "comments": "",
- "outputs": 1,
- "x": 787.0312538146973,
- "y": 2986.078672885895,
- "z": "317ebaae.5c7d96",
- "wires": [
- [
- "fd72c80b.221858",
- "7044bc74.7061a4",
- "a70b8435.736548",
- "cf86141f.f06a38",
- "cec37ec5.16861",
- "a100b2a2.2da0d"
- ]
- ]
- },
- {
- "id": "4c3b7267.4d3d8c",
- "type": "record",
- "name": "record",
- "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.FileRecorder\">\n<parameter name=\"file\" value=\"/opt/opendaylight/current/data/log/instantiateRANSlice.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"Number of CUUP List Entries \"/>\n<parameter name=\"field2\" value=\"`$tmp.CUUPListEntries`\"/>",
- "comments": "",
- "outputs": 1,
- "x": 959.0312767028809,
- "y": 2543.0782527923584,
- "z": "317ebaae.5c7d96",
- "wires": [
- []
- ]
- },
- {
- "id": "b4c603ac.c0f86",
- "type": "execute",
- "name": "set CUUP Level parms",
- "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'>\n\t<parameter name='outputPath' value='tmp.CUUPListEntries' />\n\t<parameter name='source' value=\"`'getRIC-configdb-response.[' + $id1 + '].gNBCUUPList_length'`\" />",
- "comments": "",
- "outputs": 1,
- "x": 931.0313262939453,
- "y": 2430.0781965255737,
- "z": "317ebaae.5c7d96",
- "wires": [
- []
- ]
- },
- {
- "id": "fd72c80b.221858",
- "type": "record",
- "name": "record",
- "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.FileRecorder\">\n<parameter name=\"file\" value=\"/opt/opendaylight/current/data/log/instantiateRANSlice.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"CUCP Details \"/>\n<parameter name=\"field2\" value=\"`$tmp.gNBCUUPList.gNBCUUPId`\"/>\n<parameter name=\"field3\" value=\"`$tmp.gNBCUUPList.gNBId`\"/>\n<parameter name=\"field4\" value=\"`$tmp.gNBCUUPList.gNBIdLength`\"/>\n<parameter name=\"field5\" value=\"`$tmp.gNBCUUPList.pLMNInfoList_length`\"/>\n<parameter name=\"field6\" value=\"`$tmp.gNBCUUPList.pLMNId`\"/>",
- "comments": "",
- "outputs": 1,
- "x": 1167.0312614440918,
- "y": 3003.078890800476,
- "z": "317ebaae.5c7d96",
- "wires": [
- []
- ]
- },
- {
- "id": "7044bc74.7061a4",
- "type": "block",
- "name": "cellCUUPList Level Parms",
- "xml": "<block atomic='true'>",
- "atomic": "true",
- "comments": "",
- "outputs": 1,
- "x": 1174.0312767028809,
- "y": 2929.07882976532,
- "z": "317ebaae.5c7d96",
- "wires": [
- [
- "9aeecc30.170ed",
- "b2597ab2.34a5b8",
- "7200f6b5.fca7b8",
- "b3c6e815.633168"
- ]
- ]
- },
- {
- "id": "9aeecc30.170ed",
- "type": "execute",
- "name": "gNBCUUPList.gNBCUUPId",
- "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'>\n\t<parameter name='outputPath' value='tmp.gNBCUUPList.gNBCUUPId' />\n\t<parameter name='source' value=\"`'getRIC-configdb-response.[' + $id1 + '].gNBCUUPList[' + $id2 + '].gNBCUUPId'`\" />\n",
- "comments": "",
- "outputs": 1,
- "x": 1607.031349182129,
- "y": 2876.078688621521,
- "z": "317ebaae.5c7d96",
- "wires": [
- []
- ]
- },
- {
- "id": "b2597ab2.34a5b8",
- "type": "execute",
- "name": "gNBCUUPList-gNBId",
- "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'>\n\t<parameter name='outputPath' value='tmp.gNBCUUPList.gNBId' />\n\t<parameter name='source' value=\"`'getRIC-configdb-response.[' + $id1 + '].gNBCUUPList[' + $id2 + '].gNBId'`\" />",
- "comments": "",
- "outputs": 1,
- "x": 1632.0314712524414,
- "y": 2943.078813791275,
- "z": "317ebaae.5c7d96",
- "wires": [
- []
- ]
- },
- {
- "id": "7200f6b5.fca7b8",
- "type": "execute",
- "name": "gNBCUUPList-gNBIdLength",
- "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'>\n\t<parameter name='outputPath' value='tmp.gNBCUUPList.gNBIdLength' />\n\t<parameter name='source' value=\"`'getRIC-configdb-response.[' + $id1 + '].gNBCUUPList[' + $id2 + '].gNBIdLength'`\" />",
- "comments": "",
- "outputs": 1,
- "x": 1650.0312385559082,
- "y": 2987.078733921051,
- "z": "317ebaae.5c7d96",
- "wires": [
- []
- ]
- },
- {
- "id": "cf86141f.f06a38",
- "type": "for",
- "name": "For pLMNInfoListEntries",
- "xml": "<for index='id4' start='0' end='`$tmp.pLMNInfoListEntries`' >",
- "comments": "",
- "outputs": 1,
- "x": 1203.021011352539,
- "y": 3236.0785315036774,
- "z": "317ebaae.5c7d96",
- "wires": [
- [
- "9db445ea.d60f08"
- ]
- ]
- },
- {
- "id": "a70b8435.736548",
- "type": "record",
- "name": "record",
- "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.FileRecorder\">\n<parameter name=\"file\" value=\"/opt/opendaylight/current/data/log/instantiateRANSlice.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"MCC \"/>\n<parameter name=\"field2\" value=\"`$tmp.mcc`\"/>\n<parameter name=\"field3\" value=\"MNC \"/>\n<parameter name=\"field4\" value=\"`$tmp.mnc`\"/>\n<parameter name=\"field5\" value=\"Calculated uLThptPerSlice \"/>\n<parameter name=\"field6\" value=\"`$tmp.uLThptPerSlice`\"/>\n<parameter name=\"field7\" value=\"Calculated dLThptPerSlice \"/>\n<parameter name=\"field8\" value=\"`$tmp.dLThptPerSlice`\"/>",
- "comments": "",
- "outputs": 1,
- "x": 1180.020938873291,
- "y": 3142.078371524811,
- "z": "317ebaae.5c7d96",
- "wires": [
- []
- ]
- },
- {
- "id": "9db445ea.d60f08",
- "type": "block",
- "name": "pLMNInfoList Parms",
- "xml": "<block atomic='true'>",
- "atomic": "true",
- "comments": "",
- "outputs": 1,
- "x": 1464.0211639404297,
- "y": 3237.0787756443024,
- "z": "317ebaae.5c7d96",
- "wires": [
- [
- "2aeaa421.80065c",
- "afcca869.480eb8"
- ]
- ]
- },
- {
- "id": "2aeaa421.80065c",
- "type": "execute",
- "name": "sNSSAI",
- "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'>\n\t<parameter name='outputPath' value='tmp.fromRAN.sNSSAI' />\n\t<parameter name='source' value=\"`'getRIC-configdb-response.[' + $id1 + '].gNBCUUPList[' + $id2 + '].pLMNInfoList[' + $id3 + '].sNSSAI'`\" />",
+ "xml": "<return status='failure'>\n<parameter name='ack-final' value='Y' />\n\n",
"comments": "",
- "outputs": 1,
- "x": 1678.0211296081543,
- "y": 3188.078897714615,
- "z": "317ebaae.5c7d96",
- "wires": [
- []
- ]
- },
- {
- "id": "b15dac0c.54cf1",
- "type": "comment",
- "name": "Check if sNSSAI already exists in YANG tree",
- "info": "This needs more work. If sNSSAI already exists in the YANG tree, need to patch the existing pLMNInfoList entry",
- "comments": "",
- "x": 1281.0211486816406,
- "y": 3293.0787756443024,
- "z": "317ebaae.5c7d96",
+ "x": 2050.535877227783,
+ "y": 550.4285860061646,
+ "z": "504d7698.3603d8",
"wires": []
},
{
- "id": "afcca869.480eb8",
- "type": "record",
- "name": "record",
- "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.FileRecorder\">\n<parameter name=\"file\" value=\"/opt/opendaylight/current/data/log/instantiateRANSlice.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"sNSSAI from RAN to check if already exists \"/>\n<parameter name=\"field2\" value=\"`$tmp.fromRAN.sNSSAI`\"/>\n",
- "comments": "",
- "outputs": 1,
- "x": 1682.0211906433105,
- "y": 3272.078409433365,
- "z": "317ebaae.5c7d96",
- "wires": [
- []
- ]
- },
- {
- "id": "37d243c.d4e14bc",
- "type": "record",
- "name": "record",
- "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.FileRecorder\">\n<parameter name=\"file\" value=\"/opt/opendaylight/current/data/log/instantiateRANSlice.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"Setting variables for PLMNInfoList Entry Add to NRCellCU\"/>\n<parameter name=\"field2\" value=\"`$tmp.addPLMNInfoListEntry.ToNRCellDU.url`\"/>\n<parameter name=\"field3\" value=\"`$tmp.mcc`\"/>\n<parameter name=\"field4\" value=\"`$tmp.mnc`\"/>\n<parameter name=\"field5\" value=\"`$payloadJson.input.sliceProfile.sNSSAI`\"/>\n<parameter name=\"field6\" value=\"`$tmp.uLThptPerSlice`\"/>\n<parameter name=\"field7\" value=\"`$tmp.dLThptPerSlice`\"/>",
- "comments": "",
- "outputs": 1,
- "x": 1602.0322494506836,
- "y": 3792.4120020866394,
- "z": "317ebaae.5c7d96",
- "wires": [
- []
- ]
- },
- {
- "id": "cec37ec5.16861",
- "type": "block",
- "name": "Add PLMNInfoList Entry",
- "xml": "<block atomic='true'>",
- "atomic": "true",
+ "id": "66a9f9d6.18f8e8",
+ "type": "call",
+ "name": "call instantiateRANSliceReconfigure",
+ "xml": "<call module='GENERIC-RESOURCE-API' rpc='instantiateRANSliceReconfigure' mode='sync' >\n",
"comments": "",
"outputs": 1,
- "x": 1061.0311889648438,
- "y": 3640.422489643097,
- "z": "317ebaae.5c7d96",
+ "x": 1608.8213729858398,
+ "y": 746.0357065200806,
+ "z": "504d7698.3603d8",
"wires": [
[
- "37d243c.d4e14bc",
- "f68ebd37.c8c49",
- "cd26514b.b010b",
- "9c997f9f.b5f05",
- "9b7d3d95.e8fa3",
- "8453c373.c414f",
- "a3925cdc.b52f3"
+ "f0fc41b.4aff2c"
]
]
},
{
- "id": "a3925cdc.b52f3",
- "type": "execute",
- "name": "add PLMNInfoListEntry ToGNBCUUPFn using PUT",
- "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"templateFileName\" value=\"`$prop.restapi.templateDir + '/ranSlice-add-get-PLMNInfoListEntry-GNBCUUPFn.json'`\" />\n<parameter name=\"restapiUrl\" value=\"`$prop.controller.url + $tmp.addPLMNInfoListEntry.ToGNBCUUPFn.url`\"/>\n<parameter name=\"restapiUser\" value=\"`$prop.controller.user`\" />\n<parameter name=\"restapiPassword\" value=\"`$prop.controller.pwd`\"/>\n<parameter name=\"httpMethod\" value=\"PUT\"/>\n<parameter name=\"responsePrefix\" value=\"PLMNInfoListEntry-response\"/>\n<parameter name='contentType' value='application/json' /> \n<parameter name='format' value='json' />",
- "comments": "",
- "outputs": 1,
- "x": 1679.0315208435059,
- "y": 3870.4223074913025,
- "z": "317ebaae.5c7d96",
- "wires": [
- [
- "5cb36eb7.51ab6",
- "4e3c3d14.95df44"
- ]
- ]
- },
- {
- "id": "f68ebd37.c8c49",
- "type": "record",
- "name": "record",
- "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.FileRecorder\">\n<parameter name=\"file\" value=\"/opt/opendaylight/current/data/log/instantiateRANSlice.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"Add PLMNInfoListEntry ToGNBCUUPFn URL\"/>\n<parameter name=\"field2\" value=\"`$tmp.addPLMNInfoListEntry.ToGNBCUUPFn.url`\"/>",
- "comments": "",
- "outputs": 1,
- "x": 1595.0313682556152,
- "y": 3740.422601222992,
- "z": "317ebaae.5c7d96",
- "wires": [
- []
- ]
- },
- {
- "id": "9e164396.76fb5",
- "type": "execute",
- "name": "generate addPLMNInfoListEntry.ToGNBCUUPFn",
- "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$prop.restapi.addPLMNInfoListEntry.ToGNBCUUPFn`\"/>\n <parameter name=\"outputPath\" value=\"tmp.addPLMNInfoListEntry.ToGNBCUUPFn.url\"/>\n <parameter name=\"target\" value=\"{idNearRTRIC}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.nearRTRICId`\"/>",
- "comments": "",
- "outputs": 1,
- "x": 1771.0314178466797,
- "y": 3378.078959465027,
- "z": "317ebaae.5c7d96",
- "wires": [
- []
- ]
- },
- {
- "id": "cd26514b.b010b",
- "type": "execute",
- "name": "Populate idGNBDUFunction",
- "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$tmp.addPLMNInfoListEntry.ToGNBCUUPFn.url`\"/>\n <parameter name=\"outputPath\" value=\"tmp.addPLMNInfoListEntry.ToGNBCUUPFn.url\"/>\n <parameter name=\"target\" value=\"{idGNBCUUPFunction}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.gNBCUUPList.gNBCUUPId`\"/>\n",
- "comments": "",
- "outputs": 1,
- "x": 1621.0211639404297,
- "y": 3565.078882217407,
- "z": "317ebaae.5c7d96",
- "wires": [
- []
- ]
- },
- {
- "id": "9c997f9f.b5f05",
- "type": "execute",
- "name": "Populate mcc",
- "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$tmp.addPLMNInfoListEntry.ToGNBCUUPFn.url`\"/>\n <parameter name=\"outputPath\" value=\"tmp.addPLMNInfoListEntry.ToGNBCUUPFn.url\"/>\n <parameter name=\"target\" value=\"{mcc}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.mcc`\"/>",
- "comments": "",
- "outputs": 1,
- "x": 1587.0211639404297,
- "y": 3627.078884124756,
- "z": "317ebaae.5c7d96",
- "wires": [
- []
- ]
- },
- {
- "id": "9b7d3d95.e8fa3",
- "type": "execute",
- "name": "Populate mnc",
- "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$tmp.addPLMNInfoListEntry.ToGNBCUUPFn.url`\"/>\n <parameter name=\"outputPath\" value=\"tmp.addPLMNInfoListEntry.ToGNBCUUPFn.url\"/>\n <parameter name=\"target\" value=\"{mnc}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.mnc`\"/>",
- "comments": "",
- "outputs": 1,
- "x": 1584.0211639404297,
- "y": 3676.0788860321045,
- "z": "317ebaae.5c7d96",
- "wires": [
- []
- ]
- },
- {
- "id": "5cb36eb7.51ab6",
+ "id": "f0fc41b.4aff2c",
"type": "failure",
"name": "failure",
"xml": "<outcome value='failure'>\n",
"comments": "",
"outputs": 1,
- "x": 1971.0315208435059,
- "y": 3798.4118094444275,
- "z": "317ebaae.5c7d96",
+ "x": 1865.1070976257324,
+ "y": 746.0357322692871,
+ "z": "504d7698.3603d8",
"wires": [
[
- "c23d83a1.a3752"
+ "5fdce06d.95f6"
]
]
},
{
- "id": "4e3c3d14.95df44",
- "type": "success",
- "name": "success",
- "xml": "<outcome value='success'>\n",
- "comments": "",
- "outputs": 1,
- "x": 2016.0313987731934,
- "y": 3896.4118094444275,
- "z": "317ebaae.5c7d96",
- "wires": [
- [
- "e1447cda.a9c43"
- ]
- ]
- },
- {
- "id": "c23d83a1.a3752",
- "type": "block",
- "name": "block",
- "xml": "<block>\n",
- "atomic": "false",
- "comments": "",
- "outputs": 1,
- "x": 2169.0313987731934,
- "y": 3791.41193151474,
- "z": "317ebaae.5c7d96",
- "wires": [
- [
- "fc5443be.5f064"
- ]
- ]
- },
- {
- "id": "e1447cda.a9c43",
- "type": "block",
- "name": "block",
- "xml": "<block>\n",
- "atomic": "false",
- "comments": "",
- "outputs": 1,
- "x": 2196.0311546325684,
- "y": 3893.4118094444275,
- "z": "317ebaae.5c7d96",
- "wires": [
- [
- "381b244a.de100c"
- ]
- ]
- },
- {
- "id": "fc5443be.5f064",
+ "id": "5fdce06d.95f6",
"type": "returnFailure",
"name": "return failure",
- "xml": "<return status='failure'>\n<parameter name='ack-final' value='Y'/>\n<parameter name=\"error-code\" value=\"500\" />\n<parameter name=\"error-message\" value=\"Error adding PLMNInfoList Entry to GNBCUUPFn\" />",
+ "xml": "<return status='failure'>\n<parameter name='ack-final' value='Y' />\n\n",
"comments": "",
- "x": 2354.0312156677246,
- "y": 3787.411941051483,
- "z": "317ebaae.5c7d96",
+ "x": 2033.678539276123,
+ "y": 745.714277267456,
+ "z": "504d7698.3603d8",
"wires": []
},
{
- "id": "381b244a.de100c",
- "type": "record",
- "name": "record",
- "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.FileRecorder\">\n<parameter name=\"file\" value=\"/opt/opendaylight/current/data/log/instantiateRANSlice.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"PLMNInfo List Entry Add Executed Successfully \"/>",
- "comments": "",
- "outputs": 1,
- "x": 2339.031520843506,
- "y": 3893.412016391754,
- "z": "317ebaae.5c7d96",
- "wires": [
- []
- ]
- },
- {
- "id": "85dbfc0d.93927",
- "type": "execute",
- "name": "generate addPLMNInfoListEntry ToGNBCUUPFn",
- "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$prop.restapi.addPLMNInfoListEntry.ToGNBCUUPFn.ransim-mounted`\"/>\n <parameter name=\"outputPath\" value=\"tmp.addPLMNInfoListEntry.ToGNBCUUPFn.url\"/>\n <parameter name=\"target\" value=\"{idNearRTRIC}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.nearRTRICId`\"/>",
+ "id": "8bc4109b.5e7a3",
+ "type": "call",
+ "name": "call instantiateRANSliceModifyDeallocate",
+ "xml": "<call module='GENERIC-RESOURCE-API' rpc='instantiateRANSliceModifyDeallocate' mode='sync' >\n",
"comments": "",
"outputs": 1,
- "x": 1966.0211715698242,
- "y": 3441.078960418701,
- "z": "317ebaae.5c7d96",
- "wires": [
- []
- ]
- },
- {
- "id": "cb8c865.5153278",
- "type": "block",
- "name": "ransim URL",
- "xml": "<block atomic='true'>",
- "atomic": "true",
- "comments": "",
- "outputs": 1,
- "x": 1621.0210037231445,
- "y": 3473.07896232605,
- "z": "317ebaae.5c7d96",
+ "x": 1601.9641876220703,
+ "y": 647.0357418060303,
+ "z": "504d7698.3603d8",
"wires": [
[
- "85dbfc0d.93927",
- "783e2de3.427c44"
+ "69581143.26511"
]
]
},
{
- "id": "783e2de3.427c44",
- "type": "execute",
- "name": "populate mountName",
- "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$tmp.addPLMNInfoListEntry.ToGNBCUUPFn.url`\"/>\n <parameter name=\"outputPath\" value=\"tmp.addPLMNInfoListEntry.ToGNBCUUPFn.url\"/>\n <parameter name=\"target\" value=\"{mountName}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.gNBCUUPList.gNBCUUPId`\"/>",
- "comments": "",
- "outputs": 1,
- "x": 1885.021499633789,
- "y": 3505.07896232605,
- "z": "317ebaae.5c7d96",
- "wires": [
- []
- ]
- },
- {
- "id": "c1a3ca32.d23248",
- "type": "comment",
- "name": "Connect to AddPLMNInfoList Entry",
- "info": "when able to talk to latest SDNC",
- "comments": "",
- "x": 1607.020839691162,
- "y": 3831.411723613739,
- "z": "317ebaae.5c7d96",
- "wires": []
- },
- {
- "id": "d51fe451.c40ce8",
- "type": "switchNode",
- "name": "ransim mounted",
- "xml": "<switch test='`$prop.ransim-mounted`'>\n",
- "comments": "",
- "outputs": 1,
- "x": 1230.0208587646484,
- "y": 3986.744987010956,
- "z": "317ebaae.5c7d96",
- "wires": [
- [
- "ece4a7f0.c42348",
- "cab047e6.cb80b8"
- ]
- ]
- },
- {
- "id": "ece4a7f0.c42348",
- "type": "outcome",
- "name": "Not Mounted",
- "xml": "<outcome value='false'>\n",
- "comments": "",
- "outputs": 1,
- "x": 1425.0208854675293,
- "y": 3946.744894504547,
- "z": "317ebaae.5c7d96",
- "wires": [
- [
- "a192d672.9cddf8"
- ]
- ]
- },
- {
- "id": "cab047e6.cb80b8",
- "type": "outcome",
- "name": "Mounted",
- "xml": "<outcome value='true'>\n",
- "comments": "",
- "outputs": 1,
- "x": 1405.0208587646484,
- "y": 4025.7449860572815,
- "z": "317ebaae.5c7d96",
- "wires": [
- [
- "c7160cec.a65ce"
- ]
- ]
- },
- {
- "id": "bdf3a337.90acd",
- "type": "record",
- "name": "record",
- "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.FileRecorder\">\n<parameter name=\"file\" value=\"/opt/opendaylight/current/data/log/instantiateRANSlice.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"Setting variables for addRRMPolicyRatio to GNBCUUPFn\"/>\n<parameter name=\"field2\" value=\"`$tmp.addRRMPolicyRatio.ToGNBCUUPFn.url`\"/>\n<parameter name=\"field3\" value=\"`$tmp.mcc`\"/>\n<parameter name=\"field4\" value=\"`$tmp.mnc`\"/>\n<parameter name=\"field5\" value=\"`$payloadJson.input.sliceProfile.sNSSAI`\"/>\n<parameter name=\"field6\" value=\"`$tmp.uLThptPerSlice`\"/>\n<parameter name=\"field7\" value=\"`$tmp.dLThptPerSlice`\"/>",
- "comments": "",
- "outputs": 1,
- "x": 1394.0218048095703,
- "y": 4302.078504085541,
- "z": "317ebaae.5c7d96",
- "wires": [
- []
- ]
- },
- {
- "id": "5ea27454.64b39c",
- "type": "execute",
- "name": "add RRM Policy ToGNBCUUPFn using PUT",
- "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"templateFileName\" value=\"`$prop.restapi.templateDir + '/ranSlice-add-RRMPolicyRatio-GNBCUUPFn.json'`\" />\n<parameter name=\"restapiUrl\" value=\"`$prop.controller.url + $tmp.addRRMPolicyRatio.ToGNBCUUPFn.url`\"/>\n<parameter name=\"restapiUser\" value=\"`$prop.controller.user`\" />\n<parameter name=\"restapiPassword\" value=\"`$prop.controller.pwd`\"/>\n<parameter name=\"httpMethod\" value=\"PUT\"/>\n<parameter name=\"responsePrefix\" value=\"addRRMPolicyRatio-response\"/>\n<parameter name='contentType' value='application/json' /> \n<parameter name='format' value='json' />",
- "comments": "",
- "outputs": 1,
- "x": 1481.0210189819336,
- "y": 4405.088698863983,
- "z": "317ebaae.5c7d96",
- "wires": [
- [
- "bff62565.6f26a8",
- "eb8da55b.602708"
- ]
- ]
- },
- {
- "id": "2fcc259a.0b3a5a",
- "type": "record",
- "name": "record",
- "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.FileRecorder\">\n<parameter name=\"file\" value=\"/opt/opendaylight/current/data/log/instantiateRANSlice.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"addRRMPolicyRatio ToGNBCUUPFn URL\"/>\n<parameter name=\"field2\" value=\"`$tmp.addRRMPolicyRatio.ToGNBCUUPFn.url`\"/>",
- "comments": "",
- "outputs": 1,
- "x": 1382.0208320617676,
- "y": 4245.088830947876,
- "z": "317ebaae.5c7d96",
- "wires": [
- []
- ]
- },
- {
- "id": "a192d672.9cddf8",
- "type": "execute",
- "name": "generate addRRMPolicy.ToNRCellDU URL",
- "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$prop.restapi.addRRMPolicyRatio.ToGNBCUUPFn`\"/>\n <parameter name=\"outputPath\" value=\"tmp.addRRMPolicyRatio.ToGNBCUUPFn.url\"/>\n <parameter name=\"target\" value=\"{idNearRTRIC}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.nearRTRICId`\"/>",
- "comments": "",
- "outputs": 1,
- "x": 1708.0208587646484,
- "y": 3941.7449862957,
- "z": "317ebaae.5c7d96",
- "wires": [
- []
- ]
- },
- {
- "id": "f4bfd4dd.52e558",
- "type": "execute",
- "name": "Populate idGNBDUFunction",
- "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$tmp.addRRMPolicyRatio.ToGNBCUUPFn.url`\"/>\n <parameter name=\"outputPath\" value=\"tmp.addRRMPolicyRatio.ToGNBCUUPFn.url\"/>\n <parameter name=\"target\" value=\"{idGNBCUUPFunction}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.gNBCUUPList.gNBCUUPId`\"/>",
- "comments": "",
- "outputs": 1,
- "x": 1424.0105743408203,
- "y": 4095.7454023361206,
- "z": "317ebaae.5c7d96",
- "wires": [
- []
- ]
- },
- {
- "id": "f9de7959.ecc438",
- "type": "execute",
- "name": "Populate id",
- "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$tmp.addRRMPolicyRatio.ToGNBCUUPFn.url`\"/>\n <parameter name=\"outputPath\" value=\"tmp.addRRMPolicyRatio.ToGNBCUUPFn.url\"/>\n <parameter name=\"target\" value=\"{id}\"/>\n <parameter name=\"replacement\" value=\"0\"/>\n",
- "comments": "",
- "outputs": 1,
- "x": 1389.0105743408203,
- "y": 4160.745405197144,
- "z": "317ebaae.5c7d96",
- "wires": [
- []
- ]
- },
- {
- "id": "bff62565.6f26a8",
+ "id": "69581143.26511",
"type": "failure",
"name": "failure",
"xml": "<outcome value='failure'>\n",
"comments": "",
"outputs": 1,
- "x": 1772.021011352539,
- "y": 4331.078275680542,
- "z": "317ebaae.5c7d96",
- "wires": [
- [
- "2e8bc4f6.b251cc"
- ]
- ]
- },
- {
- "id": "eb8da55b.602708",
- "type": "success",
- "name": "success",
- "xml": "<outcome value='success'>\n",
- "comments": "",
- "outputs": 1,
- "x": 1817.0208892822266,
- "y": 4429.078275680542,
- "z": "317ebaae.5c7d96",
- "wires": [
- [
- "902446aa.b466c8"
- ]
- ]
- },
- {
- "id": "2e8bc4f6.b251cc",
- "type": "block",
- "name": "block",
- "xml": "<block>\n",
- "atomic": "false",
- "comments": "",
- "outputs": 1,
- "x": 1970.0208892822266,
- "y": 4324.0783977508545,
- "z": "317ebaae.5c7d96",
- "wires": [
- [
- "6a2f35a9.97a1cc"
- ]
- ]
- },
- {
- "id": "902446aa.b466c8",
- "type": "block",
- "name": "block",
- "xml": "<block>\n",
- "atomic": "false",
- "comments": "",
- "outputs": 1,
- "x": 1997.0206451416016,
- "y": 4426.078275680542,
- "z": "317ebaae.5c7d96",
+ "x": 1880.5356101989746,
+ "y": 645.607195854187,
+ "z": "504d7698.3603d8",
"wires": [
[
- "a30b82b2.5e0dd"
+ "ebc0da12.cd9458"
]
]
},
{
- "id": "6a2f35a9.97a1cc",
+ "id": "ebc0da12.cd9458",
"type": "returnFailure",
"name": "return failure",
- "xml": "<return status='failure'>\n<parameter name='ack-final' value='Y'/>\n<parameter name=\"error-code\" value=\"500\" />\n<parameter name=\"error-message\" value=\"Error adding RRMPolicy\" />",
- "comments": "",
- "x": 2155.020706176758,
- "y": 4320.078407287598,
- "z": "317ebaae.5c7d96",
- "wires": []
- },
- {
- "id": "a30b82b2.5e0dd",
- "type": "record",
- "name": "record",
- "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.FileRecorder\">\n<parameter name=\"file\" value=\"/opt/opendaylight/current/data/log/instantiateRANSlice.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"addRRMPolicyRatio Executed Successfully \"/>",
- "comments": "",
- "outputs": 1,
- "x": 2151.0209579467773,
- "y": 4425.078788995743,
- "z": "317ebaae.5c7d96",
- "wires": [
- []
- ]
- },
- {
- "id": "122b6fb7.0d4cb",
- "type": "execute",
- "name": "generate RRMPolicy Ratio URL ToNRCellDU",
- "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$prop.restapi.addRRMPolicyRatio.ToGNBCUUPFn.ransim-mounted`\"/>\n <parameter name=\"outputPath\" value=\"tmp.addRRMPolicyRatio.ToGNBCUUPFn.url\"/>\n <parameter name=\"target\" value=\"{idNearRTRIC}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.nearRTRICId`\"/>",
- "comments": "",
- "outputs": 1,
- "x": 1904.0105743408203,
- "y": 3996.7449774742126,
- "z": "317ebaae.5c7d96",
- "wires": [
- []
- ]
- },
- {
- "id": "c7160cec.a65ce",
- "type": "block",
- "name": "ransim URL",
- "xml": "<block atomic='true'>",
- "atomic": "true",
- "comments": "",
- "outputs": 1,
- "x": 1598.0105094909668,
- "y": 4020.7449860572815,
- "z": "317ebaae.5c7d96",
- "wires": [
- [
- "122b6fb7.0d4cb",
- "f287f04f.836b8"
- ]
- ]
- },
- {
- "id": "f287f04f.836b8",
- "type": "execute",
- "name": "populate mountName",
- "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$tmp.addRRMPolicyRatio.ToGNBCUUPFn.url`\"/>\n <parameter name=\"outputPath\" value=\"tmp.addRRMPolicyRatio.ToGNBCUUPFn.url\"/>\n <parameter name=\"target\" value=\"{mountName}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.gNBCUUPList.gNBCUUPId`\"/>",
- "comments": "",
- "outputs": 1,
- "x": 1843.0105895996094,
- "y": 4055.745319366455,
- "z": "317ebaae.5c7d96",
- "wires": [
- []
- ]
- },
- {
- "id": "90fb8d4b.43daa",
- "type": "comment",
- "name": "Connect to RRM P{olicy Ratio",
- "info": "when able to talk to latest SDNC",
- "comments": "",
- "x": 1408.0103302001953,
- "y": 4364.0781898498535,
- "z": "317ebaae.5c7d96",
- "wires": []
- },
- {
- "id": "1dd8e900.2b70d7",
- "type": "block",
- "name": "rrmPolicyDedicatedRatio",
- "xml": "<block atomic='true'>",
- "atomic": "true",
- "comments": "",
- "outputs": 1,
- "x": 947.0311813354492,
- "y": 2704.7554302215576,
- "z": "317ebaae.5c7d96",
- "wires": [
- [
- "29b3920.6d9936e",
- "ee6397e2.522fa8",
- "f096f922.89ec88"
- ]
- ]
- },
- {
- "id": "29b3920.6d9936e",
- "type": "set",
- "name": "calculation",
- "xml": "<set>\n<parameter name='tmp.uLThptPerSlicePerCell' value='5' />",
- "comments": "",
- "x": 1208.031509399414,
- "y": 2689.5331177711487,
- "z": "317ebaae.5c7d96",
- "wires": []
- },
- {
- "id": "ee6397e2.522fa8",
- "type": "switchNode",
- "name": "check",
- "xml": "<switch test='`$tmp.uLThptPerSlicePerCell`'>\n",
- "comments": "",
- "outputs": 1,
- "x": 1209.031364440918,
- "y": 2737.1996641159058,
- "z": "317ebaae.5c7d96",
- "wires": [
- [
- "58a01769.58ff88",
- "a0eea02c.ba09"
- ]
- ]
- },
- {
- "id": "58a01769.58ff88",
- "type": "outcome",
- "name": "value5",
- "xml": "<outcome value='5'>\n",
- "comments": "",
- "outputs": 1,
- "x": 1366.0312728881836,
- "y": 2685.199499130249,
- "z": "317ebaae.5c7d96",
- "wires": [
- [
- "2870b9a1.547516"
- ]
- ]
- },
- {
- "id": "a0eea02c.ba09",
- "type": "outcome",
- "name": "value10",
- "xml": "<outcome value='10'>\n",
- "comments": "",
- "outputs": 1,
- "x": 1375.0314769744873,
- "y": 2739.199691772461,
- "z": "317ebaae.5c7d96",
- "wires": [
- [
- "49db3183.40fd6"
- ]
- ]
- },
- {
- "id": "2870b9a1.547516",
- "type": "set",
- "name": "set rrmPolicyDedicatedRatio",
- "xml": "<set>\n<parameter name='tmp.rRMPolicyDedicatedRatio.CUUP' value='10' />",
+ "xml": "<return status='failure'>\n<parameter name='ack-final' value='Y' />\n\n",
"comments": "",
- "x": 1590.0312728881836,
- "y": 2671.199661254883,
- "z": "317ebaae.5c7d96",
+ "x": 2049.1070518493652,
+ "y": 645.285740852356,
+ "z": "504d7698.3603d8",
"wires": []
},
{
- "id": "49db3183.40fd6",
+ "id": "65125671.2cb738",
"type": "set",
- "name": "set rrmPolicyDedicatedRatio",
- "xml": "<set>\n<parameter name='tmp.rRMPolicyDedicatedRatio.CUUP' value='20' />",
- "comments": "",
- "x": 1591.0313034057617,
- "y": 2722.19988822937,
- "z": "317ebaae.5c7d96",
- "wires": []
- },
- {
- "id": "f096f922.89ec88",
- "type": "record",
- "name": "record",
- "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.FileRecorder\">\n<parameter name=\"file\" value=\"/opt/opendaylight/current/data/log/instantiateRANSlice.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"rRMPolicyDedicatedRatio for CUUP \"/>\n<parameter name=\"field2\" value=\"`$tmp.rRMPolicyDedicatedRatio.CUUP`\"/>",
- "comments": "",
- "outputs": 1,
- "x": 1184.0313034057617,
- "y": 2784.199782371521,
- "z": "317ebaae.5c7d96",
- "wires": [
- []
- ]
- },
- {
- "id": "b3c6e815.633168",
- "type": "execute",
- "name": "gNBCUUPList-pLMNInfoList_length",
- "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'>\n\t<parameter name='outputPath' value='tmp.pLMNInfoListEntries' />\n\t<parameter name='source' value=\"`'getRIC-configdb-response.[' + $id1 + '].gNBCUUPList[' + $id2 + '].pLMNInfoList_length'`\" />",
- "comments": "",
- "outputs": 1,
- "x": 1666.0312385559082,
- "y": 3028.078739643097,
- "z": "317ebaae.5c7d96",
- "wires": [
- []
- ]
- },
- {
- "id": "1f673cb9.4eb0d3",
- "type": "execute",
- "name": "gNBCUUPList-pLMNId",
- "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'>\n\t<parameter name='outputPath' value='tmp.pLMNId' />\n\t<parameter name='source' value=\"`'getRIC-configdb-response.[' + $id1 + '].gNBCUUPList[' + $id2 + '].pLMNId'`\" />",
- "comments": "",
- "outputs": 1,
- "x": 1672.254165649414,
- "y": 3115.7546770572662,
- "z": "317ebaae.5c7d96",
- "wires": [
- []
- ]
- },
- {
- "id": "446c6bd2.5765e4",
- "type": "comment",
- "name": "Assumption pLMNId in configDB resp",
- "info": "Assumed that configDB responnse will include pLMNId...currently, it is not there",
+ "name": "set RRMPolicyRatio IDs",
+ "xml": "<set>\n<parameter name='tmp.RRMPolicyRatioID.NearRTRIC' value=\"`'NearRTRIC-' + $payloadJson.input.sliceProfile.sliceProfileId + '-' + $payloadJson.input.sliceProfile.coverageAreaList[0]`\" />\n<parameter name='tmp.RRMPolicyRatioID.GNBDUFunction' value=\"`'GNBDUFunction-' + $payloadJson.input.sliceProfile.sliceProfileId + '-' + $payloadJson.input.sliceProfile.coverageAreaList[0]`\" />\n<parameter name='tmp.RRMPolicyRatioID.NRCellDU' value=\"`'NRCellDU-' + $payloadJson.input.sliceProfile.sliceProfileId + '-' + $payloadJson.input.sliceProfile.coverageAreaList[0]`\" />\n<parameter name='tmp.RRMPolicyRatioID.GNBCUUPFunction' value=\"`'GNBCUUPFunction-' + $payloadJson.input.sliceProfile.sliceProfileId + '-' + $payloadJson.input.sliceProfile.coverageAreaList[0]`\" />\n<parameter name='tmp.RRMPolicyRatioID.GNBCUCPFunction' value=\"`'GNBCUCPFunction-' + $payloadJson.input.sliceProfile.sliceProfileId + '-' + $payloadJson.input.sliceProfile.coverageAreaList[0]`\" />\n<parameter name='tmp.RRMPolicyRatioID.NRCellCU' value=\"`'NRCellCU-' + $payloadJson.input.sliceProfile.sliceProfileId + '-' + $payloadJson.input.sliceProfile.coverageAreaList[0]`\" />\n<parameter name='prop.ranNetwork.RRMPolicyRatioMemberID' value='`$prop.ranNetwork.RRMPolicyRatioMemberID + 1`' />",
"comments": "",
- "x": 1693.2540092468262,
- "y": 3073.754395008087,
- "z": "317ebaae.5c7d96",
+ "x": 507,
+ "y": 482,
+ "z": "504d7698.3603d8",
"wires": []
},
{
- "id": "a2c6edf3.f8672",
+ "id": "de824f2b.54dd3",
"type": "execute",
- "name": "printContext",
- "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='printContext' >\n<parameter name='filename' value='/opt/opendaylight/current/data/log/ranSlice-instantiateRANSlice-context.log' />\n\n\n",
+ "name": "execute concat customer-id and @test.com",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='concat' >\n <parameter name=\"source\" value='`$prop.customer-id`'/>\n <parameter name=\"outputPath\" value=\"tmp.userAccountEmail\"/>\n <parameter name=\"target\" value=\"@test.com\"/>\n\n\n",
"comments": "",
"outputs": 1,
- "x": 366.01039123535156,
- "y": 267.9999990463257,
- "z": "317ebaae.5c7d96",
+ "x": 873,
+ "y": 395,
+ "z": "504d7698.3603d8",
"wires": [
[]
]
- },
- {
- "id": "7d920136.f456d",
- "type": "execute",
- "name": "SliStringUtils - substring MCC",
- "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='substring'>\n <parameter name=\"string\" value=\"`$tmp.payload.pLMNId`\" />\n <parameter name=\"result\" value=\"tmp.mcc\"/>\n <parameter name=\"begin-index\" value=\"0\" />\n <parameter name=\"end-index\" value=\"3\" />",
- "comments": "",
- "outputs": 1,
- "x": 361.0207824707031,
- "y": 443.01048159599304,
- "z": "317ebaae.5c7d96",
- "wires": [
- []
- ]
- },
- {
- "id": "de12fc02.aeebe",
- "type": "execute",
- "name": "SliStringUtils - substring MNC",
- "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='substring'>\n <parameter name=\"string\" value=\"`$tmp.payload.pLMNId`\" />\n <parameter name=\"result\" value=\"tmp.mnc\"/>\n <parameter name=\"begin-index\" value=\"4\" />",
- "comments": "",
- "outputs": 1,
- "x": 339.02079010009766,
- "y": 485.01044368743896,
- "z": "317ebaae.5c7d96",
- "wires": [
- []
- ]
- },
- {
- "id": "ea3a0893.8b0e98",
- "type": "record",
- "name": "record",
- "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.FileRecorder\">\n<parameter name=\"file\" value=\"/opt/opendaylight/current/data/log/instantiateRANSlice.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"PLMNID from Payload: MCC-MNC \"/>\n<parameter name=\"field2\" value=\"`$tmp.mcc`\"/>\n<parameter name=\"field3\" value=\"`$tmp.mnc`\"/>",
- "comments": "",
- "outputs": 1,
- "x": 250.01431274414062,
- "y": 545.0039043426514,
- "z": "317ebaae.5c7d96",
- "wires": [
- []
- ]
- },
- {
- "id": "939e1b4f.da4dc8",
- "type": "for",
- "name": "For list of cells",
- "xml": "<for index='idx' start='0' end='`$getListofCells-configdb-response._length `' >",
- "comments": "",
- "outputs": 1,
- "x": 1662.010398864746,
- "y": 645.0000796318054,
- "z": "317ebaae.5c7d96",
- "wires": [
- [
- "79e35a7f.32c6a4",
- "d52b3759.4905a8"
- ]
- ]
- },
- {
- "id": "d52b3759.4905a8",
- "type": "record",
- "name": "record",
- "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.FileRecorder\">\n<parameter name=\"file\" value=\"/opt/opendaylight/current/data/log/instantiateRANSlice.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"`$tmp.trackingarea.cell`\"/>",
- "comments": "",
- "outputs": 1,
- "x": 1848.0104522705078,
- "y": 643.0000381469727,
- "z": "317ebaae.5c7d96",
- "wires": [
- []
- ]
- },
- {
- "id": "79e35a7f.32c6a4",
- "type": "execute",
- "name": "Cells in TrackingArea",
- "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'>\n\t<parameter name='outputPath' value='tmp.trackingarea.cell' />\n\t<parameter name='source' value=\"`'getListofCells-configdb-response.[' + $ids + ']'`\" />",
- "comments": "",
- "outputs": 1,
- "x": 1855.0104522705078,
- "y": 579.6667037010193,
- "z": "317ebaae.5c7d96",
- "wires": [
- []
- ]
- },
- {
- "id": "a5470a13.791b88",
- "type": "comment",
- "name": "TO DO",
- "info": "- Use \"List of Cells for Tracking Area\" everywhere list\nof cells are sequenced for Restconf transactions...\nNo need to go through all cells as captured in the configDB\nresponse....localID will be the actual value returned \nin \n<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'>\n\t<parameter name='outputPath' value='tmp.trackingarea.cell' />\n\t<parameter name='source' value=\"`'getListofCells-configdb-response.[' + $ids + ']'`\" />\n\t\n\ttmp.trackingarea.cell would be cellLocalID",
- "comments": "",
- "x": 759.0103988647461,
- "y": 59,
- "z": "317ebaae.5c7d96",
- "wires": []
- },
- {
- "id": "8d863ea2.b67b2",
- "type": "execute",
- "name": "cellLocalID",
- "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'>\n\t<parameter name='outputPath' value='tmp.cellLocalId' />\n\t<parameter name='source' value=\"`'getListofCells-configdb-response.[' + $id3 + ']'`\" />",
- "comments": "",
- "outputs": 1,
- "x": 1259.0104370117188,
- "y": 1187.333408355713,
- "z": "317ebaae.5c7d96",
- "wires": [
- []
- ]
- },
- {
- "id": "672b731.15e6f8c",
- "type": "set",
- "name": "Calculate uLThptPerSlice dLThptPerSlice maxNumberOfConns",
- "xml": "<set>\n<parameter name='tmp.uLThptPerSlice1' value='`$payloadJson.input.sliceProfile.uLThptPerSlice * 1.1`' />\n<parameter name='tmp.uLThptPerSlice' value='`$tmp.uLThptPerSlice1 / $getListofCells-configdb-response._length`' />\n<parameter name='tmp.dLThptPerSlice1' value='`$payloadJson.input.sliceProfile.dLThptPerSlice * 1.1`' />\n<parameter name='tmp.dLThptPerSlice' value='`$tmp.dLThptPerSlice1 / $getListofCells-configdb-response._length`' />\n<parameter name='tmp.maxNumberOfConns1' value='`$payloadJson.input.sliceProfile.maxNumberOfConns * 1.1`' />\n<parameter name='tmp.maxNumberOfConns' value='`$tmp.maxNumberOfConns1 / $getListofCells-configdb-response._length`' />",
- "comments": "",
- "x": 705.0039215087891,
- "y": 4919.504153251648,
- "z": "317ebaae.5c7d96",
- "wires": []
- },
- {
- "id": "f1d387c8.c5cd08",
- "type": "set",
- "name": "Calculate uLThptPerSlice dLThptPerSlice maxNumberOfConns",
- "xml": "<set>\n<parameter name='tmp.uLThptPerSlice1' value='`$payloadJson.input.sliceProfile.uLThptPerSlice * 1.1`' />\n<parameter name='tmp.uLThptPerSlice' value='`$tmp.uLThptPerSlice1 / $tmp.CUUPListEntries`' />\n<parameter name='tmp.dLThptPerSlice1' value='`$payloadJson.input.sliceProfile.dLThptPerSlice * 1.1`' />\n<parameter name='tmp.dLThptPerSlice' value='`$tmp.dLThptPerSlice1 / $tmp.CUUPListEntries`' />\n<parameter name='tmp.maxNumberOfConns1' value='`$payloadJson.input.sliceProfile.maxNumberOfConns * 1.1`' />\n<parameter name='tmp.maxNumberOfConns' value='`$tmp.maxNumberOfConns1 / $tmp.CUUPListEntries`' />",
- "comments": "",
- "x": 1035.003921508789,
- "y": 2838.7541217803955,
- "z": "317ebaae.5c7d96",
- "wires": []
}
]
diff --git a/platform-logic/ran-slice-api/src/main/json/ran-slice-api_instantiateRANSliceAllocate.json b/platform-logic/ran-slice-api/src/main/json/ran-slice-api_instantiateRANSliceAllocate.json
new file mode 100644
index 00000000..71020878
--- /dev/null
+++ b/platform-logic/ran-slice-api/src/main/json/ran-slice-api_instantiateRANSliceAllocate.json
@@ -0,0 +1,5349 @@
+[
+ {
+ "id": "8ffffcfe.239d8",
+ "type": "method",
+ "name": "method",
+ "xml": "<method rpc='instantiateRANSliceAllocate' mode='sync'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 234.99999237060547,
+ "y": 227.99998664855957,
+ "z": "3782c339.10eaec",
+ "wires": [
+ [
+ "ca27cc50.ca73c"
+ ]
+ ]
+ },
+ {
+ "id": "81ee5273.a475",
+ "type": "dgstart",
+ "name": "DGSTART",
+ "outputs": 1,
+ "x": 98.99999237060547,
+ "y": 20.999956130981445,
+ "z": "3782c339.10eaec",
+ "wires": [
+ [
+ "8b18750a.88a0d8"
+ ]
+ ]
+ },
+ {
+ "id": "8b18750a.88a0d8",
+ "type": "service-logic",
+ "name": "ran-slice-api ${project.version}",
+ "module": "ran-slice-api",
+ "version": "${project.version}",
+ "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='ran-slice-api' version='${project.version}'>",
+ "outputs": 1,
+ "x": 289.9999809265137,
+ "y": 136.00003814697266,
+ "z": "3782c339.10eaec",
+ "wires": [
+ [
+ "8ffffcfe.239d8"
+ ]
+ ]
+ },
+ {
+ "id": "d5a1c9be.da3568",
+ "type": "returnSuccess",
+ "name": "return success",
+ "xml": "<return status='success'>\n<parameter name=\"ack-final\" value=\"N\" />\n<parameter name=\"error-code\" value=\"200\" />\n<parameter name=\"error-message\" value=\"SUCCESSFUL Execution\" />",
+ "comments": "",
+ "x": 282.4896049499512,
+ "y": 1211.0002937316895,
+ "z": "3782c339.10eaec",
+ "wires": []
+ },
+ {
+ "id": "1151eaa0.bfa095",
+ "type": "comment",
+ "name": "instantiateRANSliceAllocate",
+ "info": "",
+ "comments": "",
+ "x": 513.9999961853027,
+ "y": 68.01035690307617,
+ "z": "3782c339.10eaec",
+ "wires": []
+ },
+ {
+ "id": "cb6b991.813ad68",
+ "type": "block",
+ "name": "Get NRT RIC Details",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 1722.0001220703125,
+ "y": 354.90967559814453,
+ "z": "3782c339.10eaec",
+ "wires": [
+ [
+ "476f74b5.c8e31c",
+ "b937a1e6.235ad",
+ "a83f2aad.26c2c8"
+ ]
+ ]
+ },
+ {
+ "id": "476f74b5.c8e31c",
+ "type": "execute",
+ "name": "generate getNearRTRICsFromTrackingArea URL",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$prop.restapi.configdb.getNearRTRICsFromTrackingArea`\"/>\n <parameter name=\"outputPath\" value=\"tmp.configdb.getNearRTRICsFromTrackingArea.url\"/>\n <parameter name=\"target\" value=\"{trackingArea}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.payload.trackingArea`\"/>",
+ "comments": "",
+ "outputs": 1,
+ "x": 2083.000087738037,
+ "y": 300.90969467163086,
+ "z": "3782c339.10eaec",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "b937a1e6.235ad",
+ "type": "record",
+ "name": "record configdb RestAPI parms",
+ "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.FileRecorder\">\n<parameter name=\"file\" value=\"/opt/opendaylight/current/data/log/instantiateRANSlice.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"URL for configDB Get NearRTRIC for tracking area\"/>\n<parameter name='field2' value=\"`$prop.configdb.url + $tmp.configdb.getNearRTRICsFromTrackingArea.url`\" />\n<parameter name='field3' value=\"`$tmp.payload.trackingArea`\" />",
+ "comments": "",
+ "outputs": 1,
+ "x": 2080.000213623047,
+ "y": 365.90966510772705,
+ "z": "3782c339.10eaec",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "a83f2aad.26c2c8",
+ "type": "execute",
+ "name": "Get nearRTRIC for TrackingArea",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"restapiUrl\" value=\"`$prop.configdb.url + $tmp.configdb.getNearRTRICsFromTrackingArea.url`\"/>\n<parameter name=\"httpMethod\" value=\"GET\"/>\n<parameter name=\"responsePrefix\" value=\"getRIC-configdb-response\"/>\n<parameter name='contentType' value='application/json' /> \n<parameter name='format' value='json' />\n<parameter name='accept' value='application/json' />\n<parameter name=\"convertResponse\" value=\"true\"/>",
+ "comments": "",
+ "outputs": 1,
+ "x": 2049.000312805176,
+ "y": 443.909704208374,
+ "z": "3782c339.10eaec",
+ "wires": [
+ [
+ "426516a7.98c568",
+ "311373b7.61618c"
+ ]
+ ]
+ },
+ {
+ "id": "426516a7.98c568",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2280.0001525878906,
+ "y": 385.9096956253052,
+ "z": "3782c339.10eaec",
+ "wires": [
+ [
+ "1faa34da.9926bb"
+ ]
+ ]
+ },
+ {
+ "id": "311373b7.61618c",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2277.0000915527344,
+ "y": 484.90958404541016,
+ "z": "3782c339.10eaec",
+ "wires": [
+ [
+ "8bc0c94b.677228"
+ ]
+ ]
+ },
+ {
+ "id": "1faa34da.9926bb",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 2485.0001945495605,
+ "y": 334.9097366333008,
+ "z": "3782c339.10eaec",
+ "wires": [
+ [
+ "deb7fe95.dbda2",
+ "abbbc074.ab645",
+ "b8fa2a3a.504528"
+ ]
+ ]
+ },
+ {
+ "id": "8bc0c94b.677228",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 2425.999937057495,
+ "y": 477.90971851348877,
+ "z": "3782c339.10eaec",
+ "wires": [
+ [
+ "4f27e635.52ced8",
+ "c335ce4f.8fff"
+ ]
+ ]
+ },
+ {
+ "id": "deb7fe95.dbda2",
+ "type": "returnFailure",
+ "name": "return failure",
+ "xml": "<return status='failure'>\n<parameter name='ack-final' value='Y'/>\n<parameter name='error-code' value='500'/>\n<parameter name='error-message' value='Error Getting Info from ConfigDB. Aborting RPC executiopn'/>",
+ "comments": "",
+ "x": 2499.999828338623,
+ "y": 420.90970182418823,
+ "z": "3782c339.10eaec",
+ "wires": []
+ },
+ {
+ "id": "4f27e635.52ced8",
+ "type": "record",
+ "name": "record",
+ "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.FileRecorder\">\n<parameter name=\"file\" value=\"/opt/opendaylight/current/data/log/instantiateRANSlice.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"Successfully Obtained NearRT RIC info from ConfigDB\"/>\n<parameter name=\"field2\" value=\"`$getRIC-configdb-response._length`\"/>\n<parameter name=\"field3\" value=\"`$getRIC-configdb-response.[0].gNBCUCPList_length`\"/>\n<parameter name=\"field4\" value=\"`$getRIC-configdb-response.[0].gNBCUUPList_length`\"/>\n<parameter name=\"field5\" value=\"`$getRIC-configdb-response.[0].gNBDUList_length`\"/>",
+ "comments": "",
+ "outputs": 1,
+ "x": 2556.9998359680176,
+ "y": 474.9096908569336,
+ "z": "3782c339.10eaec",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "abbbc074.ab645",
+ "type": "set",
+ "name": "set",
+ "xml": "<set>\n<parameter name='error-code' value='500'/>\n<parameter name='error-message' value='Error Getting Info from ConfigDB. Aborting RPC executiopn'/>",
+ "comments": "",
+ "x": 2598.9998931884766,
+ "y": 260.0207767486572,
+ "z": "3782c339.10eaec",
+ "wires": []
+ },
+ {
+ "id": "c335ce4f.8fff",
+ "type": "execute",
+ "name": "printContext",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='printContext' >\n<parameter name='filename' value='/opt/opendaylight/current/data/log/ranSlice-instantiateRANSlice-configrsp-context.log' />\n\n\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2543.777976989746,
+ "y": 531.9097156524658,
+ "z": "3782c339.10eaec",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "27f5ad6.e041d52",
+ "type": "for",
+ "name": "For ConfigDB Entries",
+ "xml": "<for index='id1' start='0' end=\"`$getRIC-configdb-response._length`\" >",
+ "comments": "",
+ "outputs": 1,
+ "x": 1307.000087738037,
+ "y": 1955.0106010437012,
+ "z": "3782c339.10eaec",
+ "wires": [
+ [
+ "e012aa42.d0aa48",
+ "9ce9f7b1.bfdc98",
+ "eeaffd3b.bd34e",
+ "d0463c5f.aa435",
+ "ebf82221.c4be3",
+ "97ac0173.5eb49",
+ "8abf64e1.c38d08",
+ "e31edffc.384aa"
+ ]
+ ]
+ },
+ {
+ "id": "e012aa42.d0aa48",
+ "type": "record",
+ "name": "record",
+ "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.FileRecorder\">\n<parameter name=\"file\" value=\"/opt/opendaylight/current/data/log/instantiateRANSlice.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"Config Payload Entry# \"/>\n<parameter name=\"field2\" value=\"`$id1`\"/>\n<parameter name=\"field3\" value=\"`$tmp.nearRTRICId`\"/>\n<parameter name=\"field4\" value=\"`$tmp.gNBId`\"/>\n<parameter name=\"field5\" value=\"`$tmp.ranNFNSSIListEntry`\"/>\n\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1751.000072479248,
+ "y": 1221.0106410980225,
+ "z": "3782c339.10eaec",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "ca27cc50.ca73c",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 241.99996185302734,
+ "y": 356.01035594940186,
+ "z": "3782c339.10eaec",
+ "wires": [
+ [
+ "cb6b991.813ad68",
+ "e2e4c3ff.64ab8",
+ "93365ab1.b37818",
+ "d5a1c9be.da3568"
+ ]
+ ]
+ },
+ {
+ "id": "e2e4c3ff.64ab8",
+ "type": "block",
+ "name": "Instantiate RAN Slice",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 1299.0000076293945,
+ "y": 707.0104222297668,
+ "z": "3782c339.10eaec",
+ "wires": [
+ [
+ "27f5ad6.e041d52",
+ "4af9dc76.4f1b24"
+ ]
+ ]
+ },
+ {
+ "id": "9ce9f7b1.bfdc98",
+ "type": "block",
+ "name": "DU",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 1883.0000305175781,
+ "y": 5698.010556459427,
+ "z": "3782c339.10eaec",
+ "wires": [
+ [
+ "6f1ee7ad.efc838",
+ "8d5f964b.a55fb8",
+ "4e7b0759.2593f8",
+ "841bda4b.d75108",
+ "e5dbe85b.c85da8"
+ ]
+ ]
+ },
+ {
+ "id": "f128051e.58f4d8",
+ "type": "block",
+ "name": "Add RRM Policy Ratio",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 3583.000129699707,
+ "y": 7311.010218858719,
+ "z": "3782c339.10eaec",
+ "wires": [
+ [
+ "f92c8b41.45f4e8",
+ "48f711b6.52ba5",
+ "eb0cbf13.2b4a7",
+ "408bc3c7.9fed7c",
+ "b84a347c.bcaf78",
+ "238176b8.bc9faa",
+ "a5f17d01.d362b"
+ ]
+ ]
+ },
+ {
+ "id": "ec453503.1d9da8",
+ "type": "switchNode",
+ "name": "ransim mounted",
+ "xml": "<switch test='`$prop.ransim-mounted`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 3639.0002517700195,
+ "y": 6539.010512590408,
+ "z": "3782c339.10eaec",
+ "wires": [
+ [
+ "9c28c302.efd26",
+ "34ee5e89.d232d2"
+ ]
+ ]
+ },
+ {
+ "id": "9c28c302.efd26",
+ "type": "outcome",
+ "name": "Not Mounted",
+ "xml": "<outcome value='false'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 3834.0002784729004,
+ "y": 6499.010420084,
+ "z": "3782c339.10eaec",
+ "wires": [
+ [
+ "786840fe.a48bd"
+ ]
+ ]
+ },
+ {
+ "id": "34ee5e89.d232d2",
+ "type": "outcome",
+ "name": "Mounted",
+ "xml": "<outcome value='true'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 3814.0002517700195,
+ "y": 6578.010511636734,
+ "z": "3782c339.10eaec",
+ "wires": [
+ [
+ "8c90bcbc.0d091"
+ ]
+ ]
+ },
+ {
+ "id": "8d5f964b.a55fb8",
+ "type": "for",
+ "name": "For DUList Entries",
+ "xml": "<for index='id2' start='0' end='`$tmp.DUListEntries`' >",
+ "comments": "",
+ "outputs": 1,
+ "x": 2213.000011444092,
+ "y": 5927.010699272156,
+ "z": "3782c339.10eaec",
+ "wires": [
+ [
+ "763f2d90.31c814",
+ "1920111.78a1cef",
+ "fc4e6983.9b8a78",
+ "a532edae.e356f",
+ "864ccc1f.7689",
+ "862bddc0.5e5c4"
+ ]
+ ]
+ },
+ {
+ "id": "6f1ee7ad.efc838",
+ "type": "record",
+ "name": "record",
+ "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.FileRecorder\">\n<parameter name=\"file\" value=\"/opt/opendaylight/current/data/log/instantiateRANSlice.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"Number of DU List Entries \"/>\n<parameter name=\"field2\" value=\"`$tmp.DUListEntries`\"/>",
+ "comments": "",
+ "outputs": 1,
+ "x": 3345.000087738037,
+ "y": 5734.010356903076,
+ "z": "3782c339.10eaec",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "4e7b0759.2593f8",
+ "type": "execute",
+ "name": "set DU Level parms",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'>\n\t<parameter name='outputPath' value='tmp.DUListEntries' />\n\t<parameter name='source' value=\"`'getRIC-configdb-response.[' + $id1 + '].gNBDUList_length'`\" />",
+ "comments": "",
+ "outputs": 1,
+ "x": 3397.000087738037,
+ "y": 5677.010356903076,
+ "z": "3782c339.10eaec",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "ff9071bd.eb736",
+ "type": "execute",
+ "name": "cellDUListEntries",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'>\n\t<parameter name='outputPath' value='tmp.cellDUListEntries' />\n\t<parameter name='source' value=\"`'getRIC-configdb-response.[' + $id1 + '].gNBDUList[' + $id2 + '].cellDUList_length'`\" />",
+ "comments": "",
+ "outputs": 1,
+ "x": 3985.999870300293,
+ "y": 5915.010561704636,
+ "z": "3782c339.10eaec",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "763f2d90.31c814",
+ "type": "record",
+ "name": "record",
+ "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.FileRecorder\">\n<parameter name=\"file\" value=\"/opt/opendaylight/current/data/log/instantiateRANSlice.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"Numberof cellDU of Entries \"/>\n<parameter name=\"field2\" value=\"`$tmp.cellDUListEntries`\"/>\n<parameter name=\"field3\" value=\"`$tmp.gNBDUList.gNBDUId`\"/>\n<parameter name=\"field4\" value=\"`$tmp.gNBDUName`\"/>\n<parameter name=\"field5\" value=\"`$tmp.gNBId`\"/>\n<parameter name=\"field6\" value=\"`$tmp.gNBIdLength`\"/>\n<parameter name=\"field7\" value=\"`$tmp.nFType`\"/>\n<parameter name=\"field8\" value=\"`$tmp.pLMNId`\"/>",
+ "comments": "",
+ "outputs": 1,
+ "x": 3599.000026702881,
+ "y": 6092.010374546051,
+ "z": "3782c339.10eaec",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "1920111.78a1cef",
+ "type": "block",
+ "name": "cellDUList Level Parms",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 3615.000045776367,
+ "y": 6049.010571479797,
+ "z": "3782c339.10eaec",
+ "wires": [
+ [
+ "ff9071bd.eb736",
+ "c1a95f6c.46e6e",
+ "c8445011.36983",
+ "eaa549c6.a5dfa8",
+ "6704aa8c.643f74",
+ "5a8131ae.e6a72",
+ "f1b2da38.210a28"
+ ]
+ ]
+ },
+ {
+ "id": "c1a95f6c.46e6e",
+ "type": "execute",
+ "name": "cellDUListEntries-gNBDUId",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'>\n\t<parameter name='outputPath' value='tmp.gNBDUList.gNBDUId' />\n\t<parameter name='source' value=\"`'getRIC-configdb-response.[' + $id1 + '].gNBDUList[' + $id2 + '].gNBDUId'`\" />\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 4015.000011444092,
+ "y": 5953.0102796554565,
+ "z": "3782c339.10eaec",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "c8445011.36983",
+ "type": "execute",
+ "name": "cellDUListEntries-gNBDUName",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'>\n\t<parameter name='outputPath' value='tmp.gNBDUName' />\n\t<parameter name='source' value=\"`'getRIC-configdb-response.[' + $id1 + '].gNBDUList[' + $id2 + '].gNBDUName'`\" />",
+ "comments": "",
+ "outputs": 1,
+ "x": 4014.000026702881,
+ "y": 5992.010281562805,
+ "z": "3782c339.10eaec",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "eaa549c6.a5dfa8",
+ "type": "execute",
+ "name": "cellDUListEntries-gNBId",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'>\n\t<parameter name='outputPath' value='tmp.gNBId' />\n\t<parameter name='source' value=\"`'getRIC-configdb-response.[' + $id1 + '].gNBDUList[' + $id2 + '].gNBId'`\" />",
+ "comments": "",
+ "outputs": 1,
+ "x": 3994,
+ "y": 6030.010296821594,
+ "z": "3782c339.10eaec",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "6704aa8c.643f74",
+ "type": "execute",
+ "name": "cellDUListEntries-gNBIdLength",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'>\n\t<parameter name='outputPath' value='tmp.gNBIdLength' />\n\t<parameter name='source' value=\"`'getRIC-configdb-response.[' + $id1 + '].gNBDUList[' + $id2 + '].gNBIdLength'`\" />",
+ "comments": "",
+ "outputs": 1,
+ "x": 4009.0000076293945,
+ "y": 6078.010025978088,
+ "z": "3782c339.10eaec",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "5a8131ae.e6a72",
+ "type": "execute",
+ "name": "cellDUListEntries-pLMNId",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'>\n\t<parameter name='outputPath' value='tmp.pLMNId' />\n\t<parameter name='source' value=\"`'getRIC-configdb-response.[' + $id1 + '].gNBDUList[' + $id2 + '].pLMNId'`\" />",
+ "comments": "",
+ "outputs": 1,
+ "x": 3980.000087738037,
+ "y": 6155.010356903076,
+ "z": "3782c339.10eaec",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "fc4e6983.9b8a78",
+ "type": "for",
+ "name": "For List of Cells",
+ "xml": "<for index='id3' start='0' end='`$getListofCells-configdb-response._length `' >",
+ "comments": "",
+ "outputs": 1,
+ "x": 3379.9902305603027,
+ "y": 6164.010812759399,
+ "z": "3782c339.10eaec",
+ "wires": [
+ [
+ "77234e.6fd94cb4",
+ "44981318.e2d07c",
+ "36ee8375.dd7dbc",
+ "c047063f.881ee8"
+ ]
+ ]
+ },
+ {
+ "id": "77234e.6fd94cb4",
+ "type": "block",
+ "name": "pLMNInfoList Level Parms",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 3820.989875793457,
+ "y": 6272.010321855545,
+ "z": "3782c339.10eaec",
+ "wires": [
+ [
+ "c8fce069.c2ac9",
+ "f26db8b7.683ea8"
+ ]
+ ]
+ },
+ {
+ "id": "c8fce069.c2ac9",
+ "type": "execute",
+ "name": "pLMNInfoListEntries",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'>\n\t<parameter name='outputPath' value='tmp.pLMNInfoListEntries' />\n\t<parameter name='source' value=\"`'getRIC-configdb-response.[' + $id1 + '].gNBDUList[' + $id2 + '].cellDUList[' + $id3 + '].pLMNInfoList_length'`\" />",
+ "comments": "",
+ "outputs": 1,
+ "x": 4074.9898223876953,
+ "y": 6208.010224342346,
+ "z": "3782c339.10eaec",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "44981318.e2d07c",
+ "type": "record",
+ "name": "record",
+ "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.FileRecorder\">\n<parameter name=\"file\" value=\"/opt/opendaylight/current/data/log/instantiateRANSlice.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"Numberof pLMNInfoList Entries \"/>\n<parameter name=\"field2\" value=\"`$tmp.pLMNInfoListEntries`\"/>\n<parameter name=\"field3\" value=\"cellLocalId \"/>\n<parameter name=\"field4\" value=\"`$tmp.cellLocalId`\"/>",
+ "comments": "",
+ "outputs": 1,
+ "x": 3772.989875793457,
+ "y": 6316.010321855545,
+ "z": "3782c339.10eaec",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "36ee8375.dd7dbc",
+ "type": "for",
+ "name": "For pLMNInfoListEntries",
+ "xml": "<for index='id4' start='0' end='`$tmp.pLMNInfoListEntries`' >",
+ "comments": "",
+ "outputs": 1,
+ "x": 3803.989875793457,
+ "y": 6414.010321855545,
+ "z": "3782c339.10eaec",
+ "wires": [
+ [
+ "36670f4c.3fe99"
+ ]
+ ]
+ },
+ {
+ "id": "a532edae.e356f",
+ "type": "record",
+ "name": "record",
+ "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.FileRecorder\">\n<parameter name=\"file\" value=\"/opt/opendaylight/current/data/log/instantiateRANSlice.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"MCC \"/>\n<parameter name=\"field2\" value=\"`$tmp.mcc`\"/>\n<parameter name=\"field3\" value=\"MNC \"/>\n<parameter name=\"field4\" value=\"`$tmp.mnc`\"/>\n<parameter name=\"field5\" value=\"Calculated uLThptPerSlice \"/>\n<parameter name=\"field6\" value=\"`$tmp.uLThptPerSlice`\"/>\n<parameter name=\"field7\" value=\"Calculated dLThptPerSlice \"/>\n<parameter name=\"field8\" value=\"`$tmp.dLThptPerSlice`\"/>",
+ "comments": "",
+ "outputs": 1,
+ "x": 3551.9896087646484,
+ "y": 6130.0103759765625,
+ "z": "3782c339.10eaec",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "36670f4c.3fe99",
+ "type": "block",
+ "name": "pLMNInfoList Parms",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 4023.989875793457,
+ "y": 6410.010321855545,
+ "z": "3782c339.10eaec",
+ "wires": [
+ [
+ "c19c76a5.d21f48",
+ "476f4766.8505c8"
+ ]
+ ]
+ },
+ {
+ "id": "c19c76a5.d21f48",
+ "type": "execute",
+ "name": "sNSSAI",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'>\n\t<parameter name='outputPath' value='tmp.fromRAN.sNSSAI' />\n\t<parameter name='source' value=\"`'getRIC-configdb-response.[' + $id1 + '].gNBDUList[' + $id2 + '].cellDUList[' + $id3 + '].pLMNInfoList[' + $id4 + '].sNSSAI.sNSSAI'`\" />",
+ "comments": "",
+ "outputs": 1,
+ "x": 4195.989875793457,
+ "y": 6363.010321855545,
+ "z": "3782c339.10eaec",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "34157188.a8d1ce",
+ "type": "comment",
+ "name": "Check if sNSSAI already exists in YANG tree",
+ "info": "This needs more work. If sNSSAI already exists in the YANG tree, need to patch the existing pLMNInfoList entry",
+ "comments": "",
+ "x": 3875.989875793457,
+ "y": 6365.010321855545,
+ "z": "3782c339.10eaec",
+ "wires": []
+ },
+ {
+ "id": "476f4766.8505c8",
+ "type": "record",
+ "name": "record",
+ "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.FileRecorder\">\n<parameter name=\"file\" value=\"/opt/opendaylight/current/data/log/instantiateRANSlice.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"sNSSAI from RAN to check if already exists \"/>\n<parameter name=\"field2\" value=\"`$tmp.fromRAN.sNSSAI`\"/>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 4200.989875793457,
+ "y": 6430.010321855545,
+ "z": "3782c339.10eaec",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "eeaffd3b.bd34e",
+ "type": "execute",
+ "name": "nearRTRICId",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'>\n\t<parameter name='outputPath' value='tmp.nearRTRICId' />\n\t<parameter name='source' value=\"`'getRIC-configdb-response.[' + $id1 + '].nearRTRICId'`\" />",
+ "comments": "",
+ "outputs": 1,
+ "x": 1675.9895133972168,
+ "y": 998.0105266571045,
+ "z": "3782c339.10eaec",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "f26db8b7.683ea8",
+ "type": "execute",
+ "name": "cellLocalId",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'>\n\t<parameter name='outputPath' value='tmp.cellLocalId' />\n\t<parameter name='source' value=\"`'getRIC-configdb-response.[' + $id1 + '].gNBDUList[' + $id2 + '].cellDUList[' + $id3 + '].cellLocalId'`\" />",
+ "comments": "",
+ "outputs": 1,
+ "x": 4045.989875793457,
+ "y": 6294.010321855545,
+ "z": "3782c339.10eaec",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "752aacd4.5ca354",
+ "type": "record",
+ "name": "record",
+ "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.FileRecorder\">\n<parameter name=\"file\" value=\"/opt/opendaylight/current/data/log/instantiateRANSlice.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"Setting variables for PLMNInfoList Entry Add to NRCellDU\"/>\n<parameter name=\"field2\" value=\"`$tmp.addPLMNInfoListEntry.ToNRCellDU.url`\"/>\n<parameter name=\"field3\" value=\"`$tmp.mcc`\"/>\n<parameter name=\"field4\" value=\"`$tmp.mnc`\"/>\n<parameter name=\"field5\" value=\"`$payloadJson.input.sliceProfile.sNSSAI`\"/>\n<parameter name=\"field6\" value=\"`$tmp.uLThptPerSlice`\"/>\n<parameter name=\"field7\" value=\"`$tmp.dLThptPerSlice`\"/>",
+ "comments": "",
+ "outputs": 1,
+ "x": 3983.0011024475098,
+ "y": 6864.3438885211945,
+ "z": "3782c339.10eaec",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "723405eb.74705c",
+ "type": "block",
+ "name": "Add PLMNInfoList Entry",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 3656.000045776367,
+ "y": 6752.3543655872345,
+ "z": "3782c339.10eaec",
+ "wires": [
+ [
+ "752aacd4.5ca354",
+ "cf4fccea.d5737",
+ "892ba27c.8fc02",
+ "1199a1c2.a2ddde",
+ "7bcc4dc7.8037f4",
+ "b67da5b8.9a7b68",
+ "ec453503.1d9da8",
+ "c829f59e.a69468"
+ ]
+ ]
+ },
+ {
+ "id": "c829f59e.a69468",
+ "type": "execute",
+ "name": "add PLMNInfoListEntry ToNRCellDU using PUT",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"templateFileName\" value=\"`$prop.restapi.templateDir + '/ranSlice-add-get-PLMNInfoListEntry-NRCellDU.json'`\" />\n<parameter name=\"restapiUrl\" value=\"`$prop.controller.url + $tmp.addPLMNInfoListEntry.ToNRCellDU.url`\"/>\n<parameter name=\"restapiUser\" value=\"`$prop.controller.user`\" />\n<parameter name=\"restapiPassword\" value=\"`$prop.controller.pwd`\"/>\n<parameter name=\"httpMethod\" value=\"PUT\"/>\n<parameter name=\"responsePrefix\" value=\"PLMNInfoListEntry-response\"/>\n<parameter name='contentType' value='application/json' /> \n<parameter name='format' value='json' />",
+ "comments": "",
+ "outputs": 1,
+ "x": 4060.000373840332,
+ "y": 6942.3541939258575,
+ "z": "3782c339.10eaec",
+ "wires": [
+ [
+ "fbdfe66c.e0f1d8",
+ "e9f50348.c4d7e"
+ ]
+ ]
+ },
+ {
+ "id": "cf4fccea.d5737",
+ "type": "record",
+ "name": "record",
+ "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.FileRecorder\">\n<parameter name=\"file\" value=\"/opt/opendaylight/current/data/log/instantiateRANSlice.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"Add PLMNInfoListEntry ToNRCellDU URL\"/>\n<parameter name=\"field2\" value=\"`$tmp.addPLMNInfoListEntry.ToNRCellDU.url`\"/>",
+ "comments": "",
+ "outputs": 1,
+ "x": 4011.0002212524414,
+ "y": 6809.354264497757,
+ "z": "3782c339.10eaec",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "786840fe.a48bd",
+ "type": "execute",
+ "name": "generate addPLMNInfoListEntry.ToNRCellDU",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$prop.restapi.addPLMNInfoListEntry.ToNRCellDU`\"/>\n <parameter name=\"outputPath\" value=\"tmp.addPLMNInfoListEntry.ToNRCellDU.url\"/>\n <parameter name=\"target\" value=\"{idNearRTRIC}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.nearRTRICId`\"/>",
+ "comments": "",
+ "outputs": 1,
+ "x": 4119.000289916992,
+ "y": 6497.010644197464,
+ "z": "3782c339.10eaec",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "892ba27c.8fc02",
+ "type": "execute",
+ "name": "Populate idGNBDUFunction",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$tmp.addPLMNInfoListEntry.ToNRCellDU.url`\"/>\n <parameter name=\"outputPath\" value=\"tmp.addPLMNInfoListEntry.ToNRCellDU.url\"/>\n <parameter name=\"target\" value=\"{idGNBDUFunction}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.gNBDUList.gNBDUId`\"/>",
+ "comments": "",
+ "outputs": 1,
+ "x": 4000.9899978637695,
+ "y": 6635.010391950607,
+ "z": "3782c339.10eaec",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "1199a1c2.a2ddde",
+ "type": "execute",
+ "name": "Populate idNRCellDU",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$tmp.addPLMNInfoListEntry.ToNRCellDU.url`\"/>\n <parameter name=\"outputPath\" value=\"tmp.addPLMNInfoListEntry.ToNRCellDU.url\"/>\n <parameter name=\"target\" value=\"{idNRCellDU}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.cellLocalId`\"/>",
+ "comments": "",
+ "outputs": 1,
+ "x": 3988.9899940490723,
+ "y": 6681.010452985764,
+ "z": "3782c339.10eaec",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "7bcc4dc7.8037f4",
+ "type": "execute",
+ "name": "Populate mcc",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$tmp.addPLMNInfoListEntry.ToNRCellDU.url`\"/>\n <parameter name=\"outputPath\" value=\"tmp.addPLMNInfoListEntry.ToNRCellDU.url\"/>\n <parameter name=\"target\" value=\"{mcc}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.mcc`\"/>",
+ "comments": "",
+ "outputs": 1,
+ "x": 3975.989995956421,
+ "y": 6722.010514497757,
+ "z": "3782c339.10eaec",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "b67da5b8.9a7b68",
+ "type": "execute",
+ "name": "Populate mnc",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$tmp.addPLMNInfoListEntry.ToNRCellDU.url`\"/>\n <parameter name=\"outputPath\" value=\"tmp.addPLMNInfoListEntry.ToNRCellDU.url\"/>\n <parameter name=\"target\" value=\"{mnc}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.mnc`\"/>",
+ "comments": "",
+ "outputs": 1,
+ "x": 3983.9899940490723,
+ "y": 6763.0103924274445,
+ "z": "3782c339.10eaec",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "fbdfe66c.e0f1d8",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 4352.000373840332,
+ "y": 6870.3436958789825,
+ "z": "3782c339.10eaec",
+ "wires": [
+ [
+ "6504029.ef07ffc"
+ ]
+ ]
+ },
+ {
+ "id": "e9f50348.c4d7e",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 4397.0002517700195,
+ "y": 6968.3436958789825,
+ "z": "3782c339.10eaec",
+ "wires": [
+ [
+ "f60eda33.61ce28"
+ ]
+ ]
+ },
+ {
+ "id": "6504029.ef07ffc",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 4614.000270843506,
+ "y": 6755.343777656555,
+ "z": "3782c339.10eaec",
+ "wires": [
+ [
+ "2c0279b9.8d34e6",
+ "b8fa2a3a.504528"
+ ]
+ ]
+ },
+ {
+ "id": "f60eda33.61ce28",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 4577.0000076293945,
+ "y": 6965.3436958789825,
+ "z": "3782c339.10eaec",
+ "wires": [
+ [
+ "4b109522.eda6ac"
+ ]
+ ]
+ },
+ {
+ "id": "2c0279b9.8d34e6",
+ "type": "returnFailure",
+ "name": "return failure",
+ "xml": "<return status='failure'>\n<parameter name='ack-final' value='Y'/>\n<parameter name=\"error-code\" value=\"500\" />\n<parameter name=\"error-message\" value=\"Error adding PLMNInfo List Entry to NRCellCUr\" />",
+ "comments": "",
+ "x": 4779.000270843506,
+ "y": 6838.344265937805,
+ "z": "3782c339.10eaec",
+ "wires": []
+ },
+ {
+ "id": "4b109522.eda6ac",
+ "type": "record",
+ "name": "record",
+ "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.FileRecorder\">\n<parameter name=\"file\" value=\"/opt/opendaylight/current/data/log/instantiateRANSlice.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"PLMNInfo List Entry Add to NRCELLDU Executed Successfully \"/>",
+ "comments": "",
+ "outputs": 1,
+ "x": 4726.000228881836,
+ "y": 6996.34406208992,
+ "z": "3782c339.10eaec",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "9a4c8dfb.22596",
+ "type": "execute",
+ "name": "generate addPLMNInfoListEntry.ToNRCellDU",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$prop.restapi.addPLMNInfoListEntry.ToNRCellDU.ransim-mounted`\"/>\n <parameter name=\"outputPath\" value=\"tmp.addPLMNInfoListEntry.ToNRCellDU.url\"/>\n <parameter name=\"target\" value=\"{idNearRTRIC}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.nearRTRICId`\"/>",
+ "comments": "",
+ "outputs": 1,
+ "x": 4313.989990234375,
+ "y": 6547.010641336441,
+ "z": "3782c339.10eaec",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "8c90bcbc.0d091",
+ "type": "block",
+ "name": "ransim URL",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 4006.989902496338,
+ "y": 6573.010511636734,
+ "z": "3782c339.10eaec",
+ "wires": [
+ [
+ "9a4c8dfb.22596",
+ "50f9308c.f91bd"
+ ]
+ ]
+ },
+ {
+ "id": "50f9308c.f91bd",
+ "type": "execute",
+ "name": "populate mountName",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$tmp.addPLMNInfoListEntry.ToNRCellDU.url`\"/>\n <parameter name=\"outputPath\" value=\"tmp.addPLMNInfoListEntry.ToNRCellDU.url\"/>\n <parameter name=\"target\" value=\"{mountName}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.gNBDUList.gNBDUId`\"/>",
+ "comments": "",
+ "outputs": 1,
+ "x": 4248.989936828613,
+ "y": 6607.010450601578,
+ "z": "3782c339.10eaec",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "94a07ab.3e81688",
+ "type": "comment",
+ "name": "Connect to AddPLMNInfoList Entry",
+ "info": "when able to talk to latest SDNC",
+ "comments": "",
+ "x": 3987.9896926879883,
+ "y": 6903.343610048294,
+ "z": "3782c339.10eaec",
+ "wires": []
+ },
+ {
+ "id": "f92c8b41.45f4e8",
+ "type": "switchNode",
+ "name": "ransim mounted",
+ "xml": "<switch test='`$prop.ransim-mounted`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 3842.9896926879883,
+ "y": 7060.676984071732,
+ "z": "3782c339.10eaec",
+ "wires": [
+ [
+ "7ebde91e.377e08",
+ "6ccb303.b4585d"
+ ]
+ ]
+ },
+ {
+ "id": "7ebde91e.377e08",
+ "type": "outcome",
+ "name": "Not Mounted",
+ "xml": "<outcome value='false'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 4037.989719390869,
+ "y": 7020.676891565323,
+ "z": "3782c339.10eaec",
+ "wires": [
+ [
+ "2a70b470.6d770c"
+ ]
+ ]
+ },
+ {
+ "id": "6ccb303.b4585d",
+ "type": "outcome",
+ "name": "Mounted",
+ "xml": "<outcome value='true'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 4017.9896926879883,
+ "y": 7099.676983118057,
+ "z": "3782c339.10eaec",
+ "wires": [
+ [
+ "a7157644.9ee8a8"
+ ]
+ ]
+ },
+ {
+ "id": "238176b8.bc9faa",
+ "type": "record",
+ "name": "record",
+ "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.FileRecorder\">\n<parameter name=\"file\" value=\"/opt/opendaylight/current/data/log/instantiateRANSlice.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"Setting variables for addRRMPolicyRatio to NRCellDU\"/>\n<parameter name=\"field2\" value=\"`$tmp.addRRMPolicyRatio.ToNRCellDU.url`\"/>\n<parameter name=\"field3\" value=\"`$tmp.mcc`\"/>\n<parameter name=\"field4\" value=\"`$tmp.mnc`\"/>\n<parameter name=\"field5\" value=\"`$payloadJson.input.sliceProfile.sNSSAI`\"/>\n<parameter name=\"field6\" value=\"`$tmp.uLThptPerSlice`\"/>\n<parameter name=\"field7\" value=\"`$tmp.dLThptPerSlice`\"/>",
+ "comments": "",
+ "outputs": 1,
+ "x": 4002.9905853271484,
+ "y": 7375.010406255722,
+ "z": "3782c339.10eaec",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "a5f17d01.d362b",
+ "type": "execute",
+ "name": "add RRM Policy ToNRCellDU using PUT",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"templateFileName\" value=\"`$prop.restapi.templateDir + '/ranSlice-add-RRMPolicyRatio-NRCellDU.json'`\" />\n<parameter name=\"restapiUrl\" value=\"`$prop.controller.url + $tmp.addRRMPolicyRatio.ToNRCellDU.url`\"/>\n<parameter name=\"restapiUser\" value=\"`$prop.controller.user`\" />\n<parameter name=\"restapiPassword\" value=\"`$prop.controller.pwd`\"/>\n<parameter name=\"httpMethod\" value=\"PUT\"/>\n<parameter name=\"responsePrefix\" value=\"addRRMPolicyRatio-response\"/>\n<parameter name='contentType' value='application/json' /> \n<parameter name='format' value='json' />",
+ "comments": "",
+ "outputs": 1,
+ "x": 4056.989906311035,
+ "y": 7521.020846128464,
+ "z": "3782c339.10eaec",
+ "wires": [
+ [
+ "431cc7d1.f4c0d8",
+ "32907c62.dc62d4"
+ ]
+ ]
+ },
+ {
+ "id": "b84a347c.bcaf78",
+ "type": "record",
+ "name": "record",
+ "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.FileRecorder\">\n<parameter name=\"file\" value=\"/opt/opendaylight/current/data/log/instantiateRANSlice.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"addRRMPolicyRatio ToNRCellDU URL\"/>\n<parameter name=\"field2\" value=\"`$tmp.addRRMPolicyRatio.ToNRCellDU.url`\"/>",
+ "comments": "",
+ "outputs": 1,
+ "x": 3992.9896545410156,
+ "y": 7316.020558595657,
+ "z": "3782c339.10eaec",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "2a70b470.6d770c",
+ "type": "execute",
+ "name": "generate addRRMPolicy.ToNRCellDU URL",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$prop.restapi.addRRMPolicyRatio.ToNRCellDU`\"/>\n <parameter name=\"outputPath\" value=\"tmp.addRRMPolicyRatio.ToNRCellDU.url\"/>\n <parameter name=\"target\" value=\"{idNearRTRIC}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.nearRTRICId`\"/>",
+ "comments": "",
+ "outputs": 1,
+ "x": 4323.989685058594,
+ "y": 7018.676964998245,
+ "z": "3782c339.10eaec",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "48f711b6.52ba5",
+ "type": "execute",
+ "name": "Populate idGNBDUFunction",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$tmp.addRRMPolicyRatio.ToNRCellDU.url`\"/>\n <parameter name=\"outputPath\" value=\"tmp.addRRMPolicyRatio.ToNRCellDU.url\"/>\n <parameter name=\"target\" value=\"{idGNBDUFunction}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.gNBDUList.gNBDUId`\"/>\n ",
+ "comments": "",
+ "outputs": 1,
+ "x": 4033.9794692993164,
+ "y": 7169.6769688129425,
+ "z": "3782c339.10eaec",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "eb0cbf13.2b4a7",
+ "type": "execute",
+ "name": "Populate idNRCellDU",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$tmp.addRRMPolicyRatio.ToNRCellDU.url`\"/>\n <parameter name=\"outputPath\" value=\"tmp.addRRMPolicyRatio.ToNRCellDU.url\"/>\n <parameter name=\"target\" value=\"{idNRCellDU}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.cellLocalId`\"/>",
+ "comments": "",
+ "outputs": 1,
+ "x": 4021.979465484619,
+ "y": 7215.677029848099,
+ "z": "3782c339.10eaec",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "408bc3c7.9fed7c",
+ "type": "execute",
+ "name": "Populate id",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$tmp.addRRMPolicyRatio.ToNRCellDU.url`\"/>\n <parameter name=\"outputPath\" value=\"tmp.addRRMPolicyRatio.ToNRCellDU.url\"/>\n <parameter name=\"target\" value=\"{id}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.RRMPolicyRatioID.NRCellDU`\"/>",
+ "comments": "",
+ "outputs": 1,
+ "x": 4008.979467391968,
+ "y": 7256.677091360092,
+ "z": "3782c339.10eaec",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "431cc7d1.f4c0d8",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 4384.989845275879,
+ "y": 7405.010272741318,
+ "z": "3782c339.10eaec",
+ "wires": [
+ [
+ "8c2605fb.c8e6f8"
+ ]
+ ]
+ },
+ {
+ "id": "32907c62.dc62d4",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 4393.989784240723,
+ "y": 7547.010348081589,
+ "z": "3782c339.10eaec",
+ "wires": [
+ [
+ "2f88a123.4d86de"
+ ]
+ ]
+ },
+ {
+ "id": "8c2605fb.c8e6f8",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 5018.989650726318,
+ "y": 7374.010281562805,
+ "z": "3782c339.10eaec",
+ "wires": [
+ [
+ "259ea10d.3b096e",
+ "b8fa2a3a.504528"
+ ]
+ ]
+ },
+ {
+ "id": "2f88a123.4d86de",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 4573.989540100098,
+ "y": 7544.010348081589,
+ "z": "3782c339.10eaec",
+ "wires": [
+ [
+ "e68949d9.581098"
+ ]
+ ]
+ },
+ {
+ "id": "259ea10d.3b096e",
+ "type": "returnFailure",
+ "name": "return failure",
+ "xml": "<return status='failure'>\n<parameter name='ack-final' value='Y'/>\n<parameter name=\"error-code\" value=\"500\" />\n<parameter name=\"error-message\" value=\"Error adding RRM Policy\" />",
+ "comments": "",
+ "x": 5204.989513397217,
+ "y": 7437.010485649109,
+ "z": "3782c339.10eaec",
+ "wires": []
+ },
+ {
+ "id": "e68949d9.581098",
+ "type": "record",
+ "name": "record",
+ "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.FileRecorder\">\n<parameter name=\"file\" value=\"/opt/opendaylight/current/data/log/instantiateRANSlice.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"addRRMPolicyRatio to NRCELLDU Executed Successfully \"/>",
+ "comments": "",
+ "outputs": 1,
+ "x": 4722.989841461182,
+ "y": 7570.010540723801,
+ "z": "3782c339.10eaec",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "169dbbf0.b46614",
+ "type": "execute",
+ "name": "generate RRMPolicy Ratio URL ToNRCellDU",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$prop.restapi.addRRMPolicyRatio.ToNRCellDU.ransim-mounted`\"/>\n <parameter name=\"outputPath\" value=\"tmp.addRRMPolicyRatio.ToNRCellDU.url\"/>\n <parameter name=\"target\" value=\"{idNearRTRIC}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.nearRTRICId`\"/>",
+ "comments": "",
+ "outputs": 1,
+ "x": 4515.979400634766,
+ "y": 7066.677274942398,
+ "z": "3782c339.10eaec",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "a7157644.9ee8a8",
+ "type": "block",
+ "name": "ransim URL",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 4210.979343414307,
+ "y": 7094.676983118057,
+ "z": "3782c339.10eaec",
+ "wires": [
+ [
+ "169dbbf0.b46614",
+ "c81614f3.74ed48"
+ ]
+ ]
+ },
+ {
+ "id": "c81614f3.74ed48",
+ "type": "execute",
+ "name": "populate mountName",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$tmp.addRRMPolicyRatio.ToNRCellDU.url`\"/>\n <parameter name=\"outputPath\" value=\"tmp.addRRMPolicyRatio.ToNRCellDU.url\"/>\n <parameter name=\"target\" value=\"{mountName}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.gNBDUList.gNBDUId`\"/>",
+ "comments": "",
+ "outputs": 1,
+ "x": 4452.979377746582,
+ "y": 7128.676922082901,
+ "z": "3782c339.10eaec",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "69a0280d.dd59e8",
+ "type": "comment",
+ "name": "Connect to RRM P{olicy Ratio",
+ "info": "when able to talk to latest SDNC",
+ "comments": "",
+ "x": 4020.979164123535,
+ "y": 7438.010186910629,
+ "z": "3782c339.10eaec",
+ "wires": []
+ },
+ {
+ "id": "841bda4b.d75108",
+ "type": "block",
+ "name": "rrmPolicyDedicatedRatio",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 3295.000087738037,
+ "y": 5872.687602996826,
+ "z": "3782c339.10eaec",
+ "wires": [
+ [
+ "4e76c2d1.53803c",
+ "8305619e.01842"
+ ]
+ ]
+ },
+ {
+ "id": "f1b2da38.210a28",
+ "type": "execute",
+ "name": "cellDUListEntries-nFType",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'>\n\t<parameter name='outputPath' value='tmp.nFType' />\n\t<parameter name='source' value=\"`'getRIC-configdb-response.[' + $id1 + '].gNBDUList[' + $id2 + '].nFType'`\" />",
+ "comments": "",
+ "outputs": 1,
+ "x": 3983.0000610351562,
+ "y": 6114.010273933411,
+ "z": "3782c339.10eaec",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "97abefc4.6dfec",
+ "type": "set",
+ "name": "set rrmPolicyDedicatedRatio",
+ "xml": "<set>\n<parameter name='tmp.rRMPolicyDedicatedRatio.CellDU' value='10' />",
+ "comments": "",
+ "x": 3970.0000915527344,
+ "y": 5819.1316928863525,
+ "z": "3782c339.10eaec",
+ "wires": []
+ },
+ {
+ "id": "b18dc5af.77f928",
+ "type": "set",
+ "name": "set rrmPolicyDedicatedRatio",
+ "xml": "<set>\n<parameter name='tmp.rRMPolicyDedicatedRatio.CellDU' value='20' />",
+ "comments": "",
+ "x": 3963.000015258789,
+ "y": 5866.1316595077515,
+ "z": "3782c339.10eaec",
+ "wires": []
+ },
+ {
+ "id": "4e76c2d1.53803c",
+ "type": "record",
+ "name": "record",
+ "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.FileRecorder\">\n<parameter name=\"file\" value=\"/opt/opendaylight/current/data/log/instantiateRANSlice.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"rRMPolicyDedicatedRatio for CellDU \"/>\n<parameter name=\"field2\" value=\"`$tmp.rRMPolicyDedicatedRatio.CellDU`\"/>",
+ "comments": "",
+ "outputs": 1,
+ "x": 3564.0001220703125,
+ "y": 5932.131814002991,
+ "z": "3782c339.10eaec",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "d0463c5f.aa435",
+ "type": "block",
+ "name": "CUCP",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 1803.9895324707031,
+ "y": 1927.3437700271606,
+ "z": "3782c339.10eaec",
+ "wires": [
+ [
+ "87fc4f17.59964",
+ "5699a4d9.62a99c",
+ "553bf509.67b0ac",
+ "6bab883.4f4f178"
+ ]
+ ]
+ },
+ {
+ "id": "5d5aa187.76c5a",
+ "type": "block",
+ "name": "Add RRM Policy Ratio",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 3133.9896812438965,
+ "y": 3026.3438596725464,
+ "z": "3782c339.10eaec",
+ "wires": [
+ [
+ "d8734664.5cbc98",
+ "4d0eaa3.9f50a54",
+ "f297d5a.9107528",
+ "f11b40a.c13a5c",
+ "f2ab0eeb.af28e",
+ "e722a5a4.d94328",
+ "60590114.37a63"
+ ]
+ ]
+ },
+ {
+ "id": "5245cbbf.5fdc24",
+ "type": "switchNode",
+ "name": "ransim mounted",
+ "xml": "<switch test='`$prop.ransim-mounted`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 3146.9896812438965,
+ "y": 2288.3441638946533,
+ "z": "3782c339.10eaec",
+ "wires": [
+ [
+ "60d03ce0.3dd2b4",
+ "5a1524d1.a7809c"
+ ]
+ ]
+ },
+ {
+ "id": "60d03ce0.3dd2b4",
+ "type": "outcome",
+ "name": "Not Mounted",
+ "xml": "<outcome value='false'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 3336.98966217041,
+ "y": 2258.3439474105835,
+ "z": "3782c339.10eaec",
+ "wires": [
+ [
+ "46453804.743d98"
+ ]
+ ]
+ },
+ {
+ "id": "5a1524d1.a7809c",
+ "type": "outcome",
+ "name": "Mounted",
+ "xml": "<outcome value='true'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 3316.9896354675293,
+ "y": 2337.344038963318,
+ "z": "3782c339.10eaec",
+ "wires": [
+ [
+ "d0676bf.1adb398"
+ ]
+ ]
+ },
+ {
+ "id": "5699a4d9.62a99c",
+ "type": "for",
+ "name": "For CUCPList Entries",
+ "xml": "<for index='id2' start='0' end='`$tmp.CUCPListEntries`' >",
+ "comments": "",
+ "outputs": 1,
+ "x": 2037.989589691162,
+ "y": 1956.3439750671387,
+ "z": "3782c339.10eaec",
+ "wires": [
+ [
+ "469c956d.80851c",
+ "ed10fa1c.a41b48",
+ "365aa629.3947fa",
+ "50091c01.686f04",
+ "f1a802f3.e7801",
+ "f6cf0566.75b7c8"
+ ]
+ ]
+ },
+ {
+ "id": "87fc4f17.59964",
+ "type": "record",
+ "name": "record",
+ "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.FileRecorder\">\n<parameter name=\"file\" value=\"/opt/opendaylight/current/data/log/instantiateRANSlice.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"Number of CUCP List Entries \"/>\n<parameter name=\"field2\" value=\"`$tmp.CUCPListEntries`\"/>",
+ "comments": "",
+ "outputs": 1,
+ "x": 2028.989616394043,
+ "y": 1642.343768119812,
+ "z": "3782c339.10eaec",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "553bf509.67b0ac",
+ "type": "execute",
+ "name": "set CUCP Level parms",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'>\n\t<parameter name='outputPath' value='tmp.CUCPListEntries' />\n\t<parameter name='source' value=\"`'getRIC-configdb-response.[' + $id1 + '].gNBCUCPList_length'`\" />",
+ "comments": "",
+ "outputs": 1,
+ "x": 2037.9896202087402,
+ "y": 1585.3436460494995,
+ "z": "3782c339.10eaec",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "a5c488ee.60f278",
+ "type": "execute",
+ "name": "cellCUList Entries",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'>\n\t<parameter name='outputPath' value='tmp.cellCUListEntries' />\n\t<parameter name='source' value=\"`'getRIC-configdb-response.[' + $id1 + '].gNBCUCPList[' + $id2 + '].cellCUList_length'`\" />",
+ "comments": "",
+ "outputs": 1,
+ "x": 2684.9893760681152,
+ "y": 1750.3439512252808,
+ "z": "3782c339.10eaec",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "469c956d.80851c",
+ "type": "record",
+ "name": "record",
+ "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.FileRecorder\">\n<parameter name=\"file\" value=\"/opt/opendaylight/current/data/log/instantiateRANSlice.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"Numberof cellCU of Entries \"/>\n<parameter name=\"field2\" value=\"`$tmp.cellCUListEntries`\"/>\n<parameter name=\"field3\" value=\"`$tmp.gNBCUCPList.gNBCUName`\"/>\n<parameter name=\"field4\" value=\"`$tmp.gNBCUCPList.gNBId`\"/>\n<parameter name=\"field5\" value=\"`$tmp.gNBCUCPList.gNBIdLengthh`\"/>\n<parameter name=\"field6\" value=\"`$tmp.gNBCUCPList.nFType`\"/>\n<parameter name=\"field7\" value=\"`$tmp.gNBCUCPList.pLMNId`\"/>",
+ "comments": "",
+ "outputs": 1,
+ "x": 2301.9898262023926,
+ "y": 1933.3440265655518,
+ "z": "3782c339.10eaec",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "ed10fa1c.a41b48",
+ "type": "block",
+ "name": "cellCUCPList Level Parms",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 2350.9896202087402,
+ "y": 1881.3438901901245,
+ "z": "3782c339.10eaec",
+ "wires": [
+ [
+ "a5c488ee.60f278",
+ "928b8072.7cea7",
+ "26db38b3.5a1f28",
+ "83d5ba6f.86db58",
+ "a1b8dc09.ca6",
+ "54f18c03.3df684"
+ ]
+ ]
+ },
+ {
+ "id": "928b8072.7cea7",
+ "type": "execute",
+ "name": "gNBCUCPList.gNBCUName",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'>\n\t<parameter name='outputPath' value='tmp.gNBCUCPList.gNBCUName' />\n\t<parameter name='source' value=\"`'getRIC-configdb-response.[' + $id1 + '].gNBCUCPList[' + $id2 + '].gNBCUName'`\" />\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2712.9894371032715,
+ "y": 1821.3438301086426,
+ "z": "3782c339.10eaec",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "26db38b3.5a1f28",
+ "type": "execute",
+ "name": "gNBCUCPList-gNBId",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'>\n\t<parameter name='outputPath' value='tmp.gNBCUCPList.gNBId' />\n\t<parameter name='source' value=\"`'getRIC-configdb-response.[' + $id1 + '].gNBCUCPList[' + $id2 + '].gNBId'`\" />",
+ "comments": "",
+ "outputs": 1,
+ "x": 2727.9897384643555,
+ "y": 1870.343952178955,
+ "z": "3782c339.10eaec",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "83d5ba6f.86db58",
+ "type": "execute",
+ "name": "gNBCUCPList-gNBIdLength",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'>\n\t<parameter name='outputPath' value='tmp.gNBCUCPList.gNBIdLength' />\n\t<parameter name='source' value=\"`'getRIC-configdb-response.[' + $id1 + '].gNBCUCPList[' + $id2 + '].gNBIdLength'`\" />",
+ "comments": "",
+ "outputs": 1,
+ "x": 2753.9896202087402,
+ "y": 1919.3440732955933,
+ "z": "3782c339.10eaec",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "a1b8dc09.ca6",
+ "type": "execute",
+ "name": "gNBCUCPList-pLMNId",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'>\n\t<parameter name='outputPath' value='tmp.gNBCUCPList.pLMNId' />\n\t<parameter name='source' value=\"`'getRIC-configdb-response.[' + $id1 + '].gNBCUCPList[' + $id2 + '].pLMNId'`\" />",
+ "comments": "",
+ "outputs": 1,
+ "x": 2766.9896202087402,
+ "y": 2011.343952178955,
+ "z": "3782c339.10eaec",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "365aa629.3947fa",
+ "type": "for",
+ "name": "For List of Cells ",
+ "xml": "<for index='id3' start='0' end='`$getListofCells-configdb-response._length `' >",
+ "comments": "",
+ "outputs": 1,
+ "x": 2382.9795722961426,
+ "y": 2442.34387922287,
+ "z": "3782c339.10eaec",
+ "wires": [
+ [
+ "17808f07.373cf1",
+ "67d51f42.c8718"
+ ]
+ ]
+ },
+ {
+ "id": "3bce4f59.1d2eb",
+ "type": "block",
+ "name": "pLMNInfoList Level Parms",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 3308.9792442321777,
+ "y": 2017.343858718872,
+ "z": "3782c339.10eaec",
+ "wires": [
+ [
+ "5eaee4a7.15673c"
+ ]
+ ]
+ },
+ {
+ "id": "5eaee4a7.15673c",
+ "type": "execute",
+ "name": "pLMNInfoListEntries",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'>\n\t<parameter name='outputPath' value='tmp.pLMNInfoListEntries' />\n\t<parameter name='source' value=\"`'getRIC-configdb-response.[' + $id1 + '].gNBCUCPList[' + $id2 + '].cellCUList[' + $id3 + '].pLMNInfoList_length'`\" />",
+ "comments": "",
+ "outputs": 1,
+ "x": 3573.979259490967,
+ "y": 1995.343849182129,
+ "z": "3782c339.10eaec",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "7114e629.77e9f8",
+ "type": "record",
+ "name": "record",
+ "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.FileRecorder\">\n<parameter name=\"file\" value=\"/opt/opendaylight/current/data/log/instantiateRANSlice.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"Numberof pLMNInfoList Entries \"/>\n<parameter name=\"field2\" value=\"`$tmp.pLMNInfoListEntries`\"/>\n<parameter name=\"field3\" value=\"cellLocalId from Relevant cells \"/>\n<parameter name=\"field4\" value=\"`$tmp.cellLocalId`\"/>",
+ "comments": "",
+ "outputs": 1,
+ "x": 3275.979259490967,
+ "y": 2075.343849182129,
+ "z": "3782c339.10eaec",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "2141ee1e.d6b4b2",
+ "type": "for",
+ "name": "For pLMNInfoListEntries",
+ "xml": "<for index='id4' start='0' end='`$tmp.pLMNInfoListEntries`' >",
+ "comments": "",
+ "outputs": 1,
+ "x": 3306.979259490967,
+ "y": 2173.343849182129,
+ "z": "3782c339.10eaec",
+ "wires": [
+ [
+ "e0650522.7b3a08"
+ ]
+ ]
+ },
+ {
+ "id": "50091c01.686f04",
+ "type": "record",
+ "name": "record",
+ "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.FileRecorder\">\n<parameter name=\"file\" value=\"/opt/opendaylight/current/data/log/instantiateRANSlice.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"MCC \"/>\n<parameter name=\"field2\" value=\"`$tmp.mcc`\"/>\n<parameter name=\"field3\" value=\"MNC \"/>\n<parameter name=\"field4\" value=\"`$tmp.mnc`\"/>\n<parameter name=\"field5\" value=\"Calculated uLThptPerSlice \"/>\n<parameter name=\"field6\" value=\"`$tmp.uLThptPerSlice`\"/>\n<parameter name=\"field7\" value=\"Calculated dLThptPerSlice \"/>\n<parameter name=\"field8\" value=\"`$tmp.dLThptPerSlice`\"/>\n<parameter name=\"field9\" value=\"Calculated maxNumberOfConns \"/>\n<parameter name=\"field10\" value=\"`$tmp.maxNumberOfConns`\"/>",
+ "comments": "",
+ "outputs": 1,
+ "x": 2297.9793853759766,
+ "y": 1999.3437514305115,
+ "z": "3782c339.10eaec",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "e0650522.7b3a08",
+ "type": "block",
+ "name": "pLMNInfoList Parms",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 3526.979259490967,
+ "y": 2169.343849182129,
+ "z": "3782c339.10eaec",
+ "wires": [
+ [
+ "2368d926.e5c736",
+ "3bd6d00a.8b334"
+ ]
+ ]
+ },
+ {
+ "id": "2368d926.e5c736",
+ "type": "execute",
+ "name": "sNSSAI",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'>\n\t<parameter name='outputPath' value='tmp.fromRAN.sNSSAI' />\n\t<parameter name='source' value=\"`'getRIC-configdb-response.[' + $id1 + '].gNBDUList[' + $id2 + '].cellDUList[' + $id3 + '].pLMNInfoList[' + $id4 + '].sNSSAI.sNSSAI'`\" />",
+ "comments": "",
+ "outputs": 1,
+ "x": 3700.9793128967285,
+ "y": 2125.343849182129,
+ "z": "3782c339.10eaec",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "1c5d93bf.83fecc",
+ "type": "comment",
+ "name": "Check if sNSSAI already exists in YANG tree",
+ "info": "This needs more work. If sNSSAI already exists in the YANG tree, need to patch the existing pLMNInfoList entry",
+ "comments": "",
+ "x": 3378.979259490967,
+ "y": 2124.343849182129,
+ "z": "3782c339.10eaec",
+ "wires": []
+ },
+ {
+ "id": "3bd6d00a.8b334",
+ "type": "record",
+ "name": "record",
+ "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.FileRecorder\">\n<parameter name=\"file\" value=\"/opt/opendaylight/current/data/log/instantiateRANSlice.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"sNSSAI from RAN to check if already exists \"/>\n<parameter name=\"field2\" value=\"`$tmp.fromRAN.sNSSAI`\"/>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 3703.979259490967,
+ "y": 2189.343849182129,
+ "z": "3782c339.10eaec",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "2433e4c.8e9921c",
+ "type": "execute",
+ "name": "cellLocalId",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'>\n\t<parameter name='outputPath' value='tmp.cellLocalId' />\n\t<parameter name='source' value=\"`'getRIC-configdb-response.[' + $id1 + '].gNBCUCPList[' + $id2 + '].cellCUList[' + $id3 + '].cellLocalId'`\" />",
+ "comments": "",
+ "outputs": 1,
+ "x": 3550.9792518615723,
+ "y": 2055.34383392334,
+ "z": "3782c339.10eaec",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "3449c76.9f99538",
+ "type": "record",
+ "name": "record",
+ "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.FileRecorder\">\n<parameter name=\"file\" value=\"/opt/opendaylight/current/data/log/instantiateRANSlice.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"Setting variables for PLMNInfoList Entry Add to NRCellCU\"/>\n<parameter name=\"field2\" value=\"`$prop.controller.url + $tmp.addPLMNInfoListEntry.ToNRCellCU.url`\"/>\n<parameter name=\"field3\" value=\"`$tmp.mcc`\"/>\n<parameter name=\"field4\" value=\"`$tmp.mnc`\"/>\n<parameter name=\"field5\" value=\"`$payloadJson.input.sliceProfile.sNSSAI`\"/>\n<parameter name=\"field6\" value=\"`$tmp.uLThptPerSlice`\"/>\n<parameter name=\"field7\" value=\"`$tmp.dLThptPerSlice`\"/>",
+ "comments": "",
+ "outputs": 1,
+ "x": 3485.9904861450195,
+ "y": 2623.6774158477783,
+ "z": "3782c339.10eaec",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "5b90deb5.d3673",
+ "type": "block",
+ "name": "Add PLMNInfoList Entry",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 3192.9893531799316,
+ "y": 2564.687919616699,
+ "z": "3782c339.10eaec",
+ "wires": [
+ [
+ "3449c76.9f99538",
+ "5b18d238.b6363c",
+ "37a00456.c4219c",
+ "99280fd2.00eee",
+ "34e6cf35.a840d",
+ "ea9dd48e.bbe728",
+ "5245cbbf.5fdc24",
+ "1c808889.8d4bd7"
+ ]
+ ]
+ },
+ {
+ "id": "1c808889.8d4bd7",
+ "type": "execute",
+ "name": "add PLMNInfoListEntry ToNRCellCU using PUT",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"templateFileName\" value=\"`$prop.restapi.templateDir + '/ranSlice-add-get-PLMNInfoListEntry-NRCellCU.json'`\" />\n<parameter name=\"restapiUrl\" value=\"`$prop.controller.url + $tmp.addPLMNInfoListEntry.ToNRCellCU.url`\"/>\n<parameter name=\"restapiUser\" value=\"`$prop.controller.user`\" />\n<parameter name=\"restapiPassword\" value=\"`$prop.controller.pwd`\"/>\n<parameter name=\"httpMethod\" value=\"PUT\"/>\n<parameter name=\"responsePrefix\" value=\"PLMNInfoListEntry-response\"/>\n<parameter name='contentType' value='application/json' /> \n<parameter name='format' value='json' />",
+ "comments": "",
+ "outputs": 1,
+ "x": 3598.98970413208,
+ "y": 2699.687720298767,
+ "z": "3782c339.10eaec",
+ "wires": [
+ [
+ "cd56b026.8e328",
+ "5593b8e5.5c0b78"
+ ]
+ ]
+ },
+ {
+ "id": "5b18d238.b6363c",
+ "type": "record",
+ "name": "record",
+ "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.FileRecorder\">\n<parameter name=\"file\" value=\"/opt/opendaylight/current/data/log/instantiateRANSlice.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"Add PLMNInfoListEntry ToNRCellCU URL\"/>\n<parameter name=\"field2\" value=\"`$tmp.addPLMNInfoListEntry.ToNRCellCU.url`\"/>",
+ "comments": "",
+ "outputs": 1,
+ "x": 3478.989604949951,
+ "y": 2571.688014984131,
+ "z": "3782c339.10eaec",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "46453804.743d98",
+ "type": "execute",
+ "name": "generate addPLMNInfoListEntry.ToNRCellDU",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$prop.restapi.addPLMNInfoListEntry.ToNRCellCU`\"/>\n <parameter name=\"outputPath\" value=\"tmp.addPLMNInfoListEntry.ToNRCellCU.url\"/>\n <parameter name=\"target\" value=\"{idNearRTRIC}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.nearRTRICId`\"/>",
+ "comments": "",
+ "outputs": 1,
+ "x": 3621.989589691162,
+ "y": 2258.344097137451,
+ "z": "3782c339.10eaec",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "37a00456.c4219c",
+ "type": "execute",
+ "name": "Populate idGNBDUFunction",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$tmp.addPLMNInfoListEntry.ToNRCellCU.url`\"/>\n <parameter name=\"outputPath\" value=\"tmp.addPLMNInfoListEntry.ToNRCellCU.url\"/>\n <parameter name=\"target\" value=\"{idGNBCUCPFunction}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.gNBCUCPList.gNBCUName`\"/>",
+ "comments": "",
+ "outputs": 1,
+ "x": 3503.9793815612793,
+ "y": 2394.343919277191,
+ "z": "3782c339.10eaec",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "99280fd2.00eee",
+ "type": "execute",
+ "name": "Populate idNRCellDU",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$tmp.addPLMNInfoListEntry.ToNRCellCU.url`\"/>\n <parameter name=\"outputPath\" value=\"tmp.addPLMNInfoListEntry.ToNRCellCU.url\"/>\n <parameter name=\"target\" value=\"{idNRCellCU}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.cellLocalId`\"/>",
+ "comments": "",
+ "outputs": 1,
+ "x": 3491.979377746582,
+ "y": 2440.3439803123474,
+ "z": "3782c339.10eaec",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "34e6cf35.a840d",
+ "type": "execute",
+ "name": "Populate mcc",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$tmp.addPLMNInfoListEntry.ToNRCellCU.url`\"/>\n <parameter name=\"outputPath\" value=\"tmp.addPLMNInfoListEntry.ToNRCellCU.url\"/>\n <parameter name=\"target\" value=\"{mcc}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.mcc`\"/>",
+ "comments": "",
+ "outputs": 1,
+ "x": 3478.9793796539307,
+ "y": 2481.344041824341,
+ "z": "3782c339.10eaec",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "ea9dd48e.bbe728",
+ "type": "execute",
+ "name": "Populate mnc",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$tmp.addPLMNInfoListEntry.ToNRCellCU.url`\"/>\n <parameter name=\"outputPath\" value=\"tmp.addPLMNInfoListEntry.ToNRCellCU.url\"/>\n <parameter name=\"target\" value=\"{mnc}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.mnc`\"/>",
+ "comments": "",
+ "outputs": 1,
+ "x": 3486.979377746582,
+ "y": 2522.3439197540283,
+ "z": "3782c339.10eaec",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "cd56b026.8e328",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 3710.98970413208,
+ "y": 2501.677222251892,
+ "z": "3782c339.10eaec",
+ "wires": [
+ [
+ "694395e3.a45f0c"
+ ]
+ ]
+ },
+ {
+ "id": "5593b8e5.5c0b78",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 4003.98974609375,
+ "y": 2723.6773138046265,
+ "z": "3782c339.10eaec",
+ "wires": [
+ [
+ "f7c279.4eea4d88"
+ ]
+ ]
+ },
+ {
+ "id": "694395e3.a45f0c",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 3844.98970413208,
+ "y": 2508.6773443222046,
+ "z": "3782c339.10eaec",
+ "wires": [
+ [
+ "ea986b06.6d7818",
+ "b8fa2a3a.504528"
+ ]
+ ]
+ },
+ {
+ "id": "f7c279.4eea4d88",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 4178.98942565918,
+ "y": 2720.6773138046265,
+ "z": "3782c339.10eaec",
+ "wires": [
+ [
+ "ad09f48f.1f47f8"
+ ]
+ ]
+ },
+ {
+ "id": "ea986b06.6d7818",
+ "type": "returnFailure",
+ "name": "return failure",
+ "xml": "<return status='failure'>\n<parameter name='ack-final' value='Y'/>\n<parameter name=\"error-code\" value=\"500\" />\n<parameter name=\"error-message\" value=\"Error adding PLMNInfoList Entry to NRCellCU\" />",
+ "comments": "",
+ "x": 3990.9893798828125,
+ "y": 2608.677424430847,
+ "z": "3782c339.10eaec",
+ "wires": []
+ },
+ {
+ "id": "ad09f48f.1f47f8",
+ "type": "record",
+ "name": "record",
+ "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.FileRecorder\">\n<parameter name=\"file\" value=\"/opt/opendaylight/current/data/log/instantiateRANSlice.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"PLMNInfo List Entry Add to NRCELLCU Executed Successfully \"/>",
+ "comments": "",
+ "outputs": 1,
+ "x": 4333.990077972412,
+ "y": 2712.6776394844055,
+ "z": "3782c339.10eaec",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "6bab883.4f4f178",
+ "type": "set",
+ "name": "Calculate RRM Parms",
+ "xml": "<set>\n<parameter name='tmp.maxNumberOfConns' value='`$payloadJson.input.sliceProfile.maxNumberOfConns * 1.1`' />",
+ "comments": "",
+ "x": 2223.979335784912,
+ "y": 1771.3439750671387,
+ "z": "3782c339.10eaec",
+ "wires": []
+ },
+ {
+ "id": "54af17fe.e36d38",
+ "type": "execute",
+ "name": "generate addPLMNInfoListEntry.ToNRCellDU",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$prop.restapi.addPLMNInfoListEntry.ToNRCellCU.ransim-mounted`\"/>\n <parameter name=\"outputPath\" value=\"tmp.addPLMNInfoListEntry.ToNRCellCU.url\"/>\n <parameter name=\"target\" value=\"{idNearRTRIC}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.nearRTRICId`\"/>",
+ "comments": "",
+ "outputs": 1,
+ "x": 3816.979316711426,
+ "y": 2302.3439779281616,
+ "z": "3782c339.10eaec",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "d0676bf.1adb398",
+ "type": "block",
+ "name": "ransim URL",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 3509.9792861938477,
+ "y": 2332.344038963318,
+ "z": "3782c339.10eaec",
+ "wires": [
+ [
+ "54af17fe.e36d38",
+ "7d329849.ba7918"
+ ]
+ ]
+ },
+ {
+ "id": "7d329849.ba7918",
+ "type": "execute",
+ "name": "populate mountName",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$tmp.addPLMNInfoListEntry.ToNRCellCU.url`\"/>\n <parameter name=\"outputPath\" value=\"tmp.addPLMNInfoListEntry.ToNRCellCU.url\"/>\n <parameter name=\"target\" value=\"{mountName}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.gNBCUCPList.gNBCUName`\"/>",
+ "comments": "",
+ "outputs": 1,
+ "x": 3760.9797172546387,
+ "y": 2355.344171524048,
+ "z": "3782c339.10eaec",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "4af9dc76.4f1b24",
+ "type": "block",
+ "name": "Get Cells List in TA",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 1582.9794158935547,
+ "y": 777.3441414833069,
+ "z": "3782c339.10eaec",
+ "wires": [
+ [
+ "ce7809f3.983468",
+ "bf0f71f.d6d0d9",
+ "aefdbed7.3b483"
+ ]
+ ]
+ },
+ {
+ "id": "ce7809f3.983468",
+ "type": "execute",
+ "name": "generate getListOfCells URL",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$prop.restapi.configdb.getListOfCells`\"/>\n <parameter name=\"outputPath\" value=\"tmp.configdb.getListOfCells.url\"/>\n <parameter name=\"target\" value=\"{trackingArea}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.payload.trackingArea`\"/>",
+ "comments": "",
+ "outputs": 1,
+ "x": 1866.979579925537,
+ "y": 661.3440971374512,
+ "z": "3782c339.10eaec",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "bf0f71f.d6d0d9",
+ "type": "record",
+ "name": "record configdb RestAPI parms",
+ "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.FileRecorder\">\n<parameter name=\"file\" value=\"/opt/opendaylight/current/data/log/instantiateRANSlice.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"URL for configDB Get getListOfCells for tracking area\"/>\n<parameter name='field2' value=\"`$prop.configdb.url + $tmp.configdb.getListOfCells.url`\" />\n<parameter name='field3' value=\"`$tmp.payload.trackingArea`\" />",
+ "comments": "",
+ "outputs": 1,
+ "x": 1889.979663848877,
+ "y": 737.3442614078522,
+ "z": "3782c339.10eaec",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "aefdbed7.3b483",
+ "type": "execute",
+ "name": "Get ListOfCells for TrackingArea",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"restapiUrl\" value=\"`$prop.configdb.url + $tmp.configdb.getListOfCells.url`\"/>\n<parameter name=\"httpMethod\" value=\"GET\"/>\n<parameter name=\"responsePrefix\" value=\"getListofCells-configdb-response\"/>\n<parameter name='contentType' value='application/json' /> \n<parameter name='format' value='json' />\n<parameter name='accept' value='application/json' />",
+ "comments": "",
+ "outputs": 1,
+ "x": 1877.9797477722168,
+ "y": 806.3442225456238,
+ "z": "3782c339.10eaec",
+ "wires": [
+ [
+ "56fe77e8.8fda88",
+ "867b3cfd.6a987"
+ ]
+ ]
+ },
+ {
+ "id": "56fe77e8.8fda88",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2151.979335784912,
+ "y": 693.3442802429199,
+ "z": "3782c339.10eaec",
+ "wires": [
+ [
+ "df37fbb.dec6008"
+ ]
+ ]
+ },
+ {
+ "id": "867b3cfd.6a987",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2073.9792137145996,
+ "y": 926.3441581726074,
+ "z": "3782c339.10eaec",
+ "wires": [
+ [
+ "91671c36.4cce4"
+ ]
+ ]
+ },
+ {
+ "id": "df37fbb.dec6008",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 2392.979335784912,
+ "y": 647.3442192077637,
+ "z": "3782c339.10eaec",
+ "wires": [
+ [
+ "bbe4704f.24d6e",
+ "9fe3f0ed.e3a21",
+ "b8fa2a3a.504528"
+ ]
+ ]
+ },
+ {
+ "id": "91671c36.4cce4",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 2214.979091644287,
+ "y": 908.3442802429199,
+ "z": "3782c339.10eaec",
+ "wires": [
+ [
+ "a6a37518.997498",
+ "12f14e74.e48862",
+ "d60161c.59dbda"
+ ]
+ ]
+ },
+ {
+ "id": "bbe4704f.24d6e",
+ "type": "returnFailure",
+ "name": "return failure",
+ "xml": "<return status='failure'>\n<parameter name='ack-final' value='Y'/>\n<parameter name='error-code' value='500'/>\n<parameter name='error-message' value='Error Getting Info from ConfigDB. Aborting RPC executiopn'/>",
+ "comments": "",
+ "x": 2390.979091644287,
+ "y": 743.3442192077637,
+ "z": "3782c339.10eaec",
+ "wires": []
+ },
+ {
+ "id": "a6a37518.997498",
+ "type": "record",
+ "name": "record",
+ "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.FileRecorder\">\n<parameter name=\"file\" value=\"/opt/opendaylight/current/data/log/instantiateRANSlice.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"Successfully Obtained List of Cells from ConfigDB\"/>\n<parameter name=\"field2\" value=\"`$getListofCells-configdb-response._length`\"/>\n<parameter name=\"field3\" value=\"List of Cells in the Tracking Area Relevant for RAN Slice Instantiation \"/>",
+ "comments": "",
+ "outputs": 1,
+ "x": 2386.979091644287,
+ "y": 834.3442192077637,
+ "z": "3782c339.10eaec",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "9fe3f0ed.e3a21",
+ "type": "set",
+ "name": "set",
+ "xml": "<set>\n<parameter name='error-code' value='500'/>\n<parameter name='error-message' value='Error Getting Info from ConfigDB. Aborting RPC executiopn'/>",
+ "comments": "",
+ "x": 2527.9793281555176,
+ "y": 611.4552593231201,
+ "z": "3782c339.10eaec",
+ "wires": []
+ },
+ {
+ "id": "12f14e74.e48862",
+ "type": "execute",
+ "name": "printContext",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='printContext' >\n<parameter name='filename' value='/opt/opendaylight/current/data/log/ranSlice-instantiateRANSlice-configrsp-context.log' />\n\n\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2415.757411956787,
+ "y": 967.3442192077637,
+ "z": "3782c339.10eaec",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "f898eaeb.1b8d08",
+ "type": "comment",
+ "name": "Connect to AddPLMNInfoList Entry",
+ "info": "when able to talk to latest SDNC",
+ "comments": "",
+ "x": 3490.979076385498,
+ "y": 2662.677137374878,
+ "z": "3782c339.10eaec",
+ "wires": []
+ },
+ {
+ "id": "d8734664.5cbc98",
+ "type": "switchNode",
+ "name": "ransim mounted",
+ "xml": "<switch test='`$prop.ransim-mounted`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 3345.979076385498,
+ "y": 2820.0105113983154,
+ "z": "3782c339.10eaec",
+ "wires": [
+ [
+ "3bf2a236.f64b4e",
+ "eb02fdb.54c45"
+ ]
+ ]
+ },
+ {
+ "id": "3bf2a236.f64b4e",
+ "type": "outcome",
+ "name": "Not Mounted",
+ "xml": "<outcome value='false'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 3540.979103088379,
+ "y": 2780.0104188919067,
+ "z": "3782c339.10eaec",
+ "wires": [
+ [
+ "a729de6c.1007c"
+ ]
+ ]
+ },
+ {
+ "id": "eb02fdb.54c45",
+ "type": "outcome",
+ "name": "Mounted",
+ "xml": "<outcome value='true'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 3520.979076385498,
+ "y": 2859.010510444641,
+ "z": "3782c339.10eaec",
+ "wires": [
+ [
+ "13ff3a6e.24ae36"
+ ]
+ ]
+ },
+ {
+ "id": "e722a5a4.d94328",
+ "type": "record",
+ "name": "record",
+ "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.FileRecorder\">\n<parameter name=\"file\" value=\"/opt/opendaylight/current/data/log/instantiateRANSlice.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"Setting variables for addRRMPolicyRatio to NRCellCU\"/>\n<parameter name=\"field2\" value=\"`$prop.controller.url + $tmp.addRRMPolicyRatio.ToNRCellCU.url`\"/>\n<parameter name=\"field3\" value=\"`$tmp.mcc`\"/>\n<parameter name=\"field4\" value=\"`$tmp.mnc`\"/>\n<parameter name=\"field5\" value=\"`$payloadJson.input.sliceProfile.sNSSAI`\"/>\n<parameter name=\"field6\" value=\"`$tmp.uLThptPerSlice`\"/>\n<parameter name=\"field7\" value=\"`$tmp.dLThptPerSlice`\"/>",
+ "comments": "",
+ "outputs": 1,
+ "x": 3501.979824066162,
+ "y": 3085.343852996826,
+ "z": "3782c339.10eaec",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "60590114.37a63",
+ "type": "execute",
+ "name": "add RRM Policy ToNRCellCU using PUT",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"templateFileName\" value=\"`$prop.restapi.templateDir + '/ranSlice-add-RRMPolicyRatio-NRCellCU.json'`\" />\n<parameter name=\"restapiUrl\" value=\"`$prop.controller.url + $tmp.addRRMPolicyRatio.ToNRCellCU.url`\"/>\n<parameter name=\"restapiUser\" value=\"`$prop.controller.user`\" />\n<parameter name=\"restapiPassword\" value=\"`$prop.controller.pwd`\"/>\n<parameter name=\"httpMethod\" value=\"PUT\"/>\n<parameter name=\"responsePrefix\" value=\"addRRMPolicyRatio-response\"/>\n<parameter name='contentType' value='application/json' /> \n<parameter name='format' value='json' />",
+ "comments": "",
+ "outputs": 1,
+ "x": 3730.979091644287,
+ "y": 3156.354106903076,
+ "z": "3782c339.10eaec",
+ "wires": [
+ [
+ "2d2a125a.f88c0e",
+ "85a1194f.afbaf8"
+ ]
+ ]
+ },
+ {
+ "id": "f2ab0eeb.af28e",
+ "type": "record",
+ "name": "record",
+ "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.FileRecorder\">\n<parameter name=\"file\" value=\"/opt/opendaylight/current/data/log/instantiateRANSlice.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"addRRMPolicyRatio ToNRCellCU URL\"/>\n<parameter name=\"field2\" value=\"`$tmp.addRRMPolicyRatio.ToNRCellCU.url`\"/>",
+ "comments": "",
+ "outputs": 1,
+ "x": 3493.979091644287,
+ "y": 3041.354106903076,
+ "z": "3782c339.10eaec",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "a729de6c.1007c",
+ "type": "execute",
+ "name": "generate addRRMPolicy.ToNRCellDU URL",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$prop.restapi.addRRMPolicyRatio.ToNRCellCU`\"/>\n <parameter name=\"outputPath\" value=\"tmp.addRRMPolicyRatio.ToNRCellCU.url\"/>\n <parameter name=\"target\" value=\"{idNearRTRIC}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.nearRTRICId`\"/>",
+ "comments": "",
+ "outputs": 1,
+ "x": 3823.979076385498,
+ "y": 2775.0105106830597,
+ "z": "3782c339.10eaec",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "4d0eaa3.9f50a54",
+ "type": "execute",
+ "name": "Populate idGNBDUFunction",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$tmp.addRRMPolicyRatio.ToNRCellCU.url`\"/>\n <parameter name=\"outputPath\" value=\"tmp.addRRMPolicyRatio.ToNRCellCU.url\"/>\n <parameter name=\"target\" value=\"{idGNBCUCPFunction}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.gNBCUCPList.gNBCUName`\"/>",
+ "comments": "",
+ "outputs": 1,
+ "x": 3536.968837738037,
+ "y": 2911.010601043701,
+ "z": "3782c339.10eaec",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "f297d5a.9107528",
+ "type": "execute",
+ "name": "Populate idNRCellDU",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$tmp.addRRMPolicyRatio.ToNRCellCU.url`\"/>\n <parameter name=\"outputPath\" value=\"tmp.addRRMPolicyRatio.ToNRCellCU.url\"/>\n <parameter name=\"target\" value=\"{idNRCellCU}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.cellLocalId`\"/>",
+ "comments": "",
+ "outputs": 1,
+ "x": 3517.968837738037,
+ "y": 2950.010356903076,
+ "z": "3782c339.10eaec",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "f11b40a.c13a5c",
+ "type": "execute",
+ "name": "Populate id",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$tmp.addRRMPolicyRatio.ToNRCellCU.url`\"/>\n <parameter name=\"outputPath\" value=\"tmp.addRRMPolicyRatio.ToNRCellCU.url\"/>\n <parameter name=\"target\" value=\"{id}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.RRMPolicyRatioID.NRCellCU`\"/>",
+ "comments": "",
+ "outputs": 1,
+ "x": 3511.968837738037,
+ "y": 2998.010601043701,
+ "z": "3782c339.10eaec",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "2d2a125a.f88c0e",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 3781.979206085205,
+ "y": 2964.343970298767,
+ "z": "3782c339.10eaec",
+ "wires": [
+ [
+ "31a35533.1e712a"
+ ]
+ ]
+ },
+ {
+ "id": "85a1194f.afbaf8",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 4018.979335784912,
+ "y": 3128.343852996826,
+ "z": "3782c339.10eaec",
+ "wires": [
+ [
+ "fb1b849e.380a48"
+ ]
+ ]
+ },
+ {
+ "id": "31a35533.1e712a",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 3929.979206085205,
+ "y": 2991.343970298767,
+ "z": "3782c339.10eaec",
+ "wires": [
+ [
+ "6d0bef4f.f9ab1",
+ "b8fa2a3a.504528"
+ ]
+ ]
+ },
+ {
+ "id": "fb1b849e.380a48",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 4182.978847503662,
+ "y": 3133.343852996826,
+ "z": "3782c339.10eaec",
+ "wires": [
+ [
+ "f4d2a4c5.903558"
+ ]
+ ]
+ },
+ {
+ "id": "6d0bef4f.f9ab1",
+ "type": "returnFailure",
+ "name": "return failure",
+ "xml": "<return status='failure'>\n<parameter name='ack-final' value='Y'/>\n<parameter name=\"error-code\" value=\"500\" />\n<parameter name=\"error-message\" value=\"Error adding RRMPolicyr\" />",
+ "comments": "",
+ "x": 4068.97896194458,
+ "y": 3063.343970298767,
+ "z": "3782c339.10eaec",
+ "wires": []
+ },
+ {
+ "id": "f4d2a4c5.903558",
+ "type": "record",
+ "name": "record",
+ "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.FileRecorder\">\n<parameter name=\"file\" value=\"/opt/opendaylight/current/data/log/instantiateRANSlice.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"addRRMPolicyRatio to NRCELLCU Executed Successfully \"/>",
+ "comments": "",
+ "outputs": 1,
+ "x": 4282.979335784912,
+ "y": 3058.344097137451,
+ "z": "3782c339.10eaec",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "d1b1da91.0009b8",
+ "type": "execute",
+ "name": "generate RRMPolicy Ratio URL ToNRCellDU",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$prop.restapi.addRRMPolicyRatio.ToNRCellCU.ransim-mounted`\"/>\n <parameter name=\"outputPath\" value=\"tmp.addRRMPolicyRatio.ToNRCellCU.url\"/>\n <parameter name=\"target\" value=\"{idNearRTRIC}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.nearRTRICId`\"/>",
+ "comments": "",
+ "outputs": 1,
+ "x": 4019.96879196167,
+ "y": 2830.0105018615723,
+ "z": "3782c339.10eaec",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "13ff3a6e.24ae36",
+ "type": "block",
+ "name": "ransim URL",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 3713.9687271118164,
+ "y": 2854.010510444641,
+ "z": "3782c339.10eaec",
+ "wires": [
+ [
+ "d1b1da91.0009b8",
+ "fa695a70.554df8"
+ ]
+ ]
+ },
+ {
+ "id": "fa695a70.554df8",
+ "type": "execute",
+ "name": "populate mountName",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$tmp.addRRMPolicyRatio.ToNRCellCU.url`\"/>\n <parameter name=\"outputPath\" value=\"tmp.addRRMPolicyRatio.ToNRCellCU.url\"/>\n <parameter name=\"target\" value=\"{mountName}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.gNBCUCPList.gNBCUName`\"/>",
+ "comments": "",
+ "outputs": 1,
+ "x": 3956.9687995910645,
+ "y": 2889.01056098938,
+ "z": "3782c339.10eaec",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "afd1888c.df6738",
+ "type": "comment",
+ "name": "Connect to RRM P{olicy Ratio",
+ "info": "when able to talk to latest SDNC",
+ "comments": "",
+ "x": 3701.968593597412,
+ "y": 3101.343608856201,
+ "z": "3782c339.10eaec",
+ "wires": []
+ },
+ {
+ "id": "54f18c03.3df684",
+ "type": "execute",
+ "name": "gNBCUCPList-nFType",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'>\n\t<parameter name='outputPath' value='tmp.gNBCUCPList.nFType' />\n\t<parameter name='source' value=\"`'getRIC-configdb-response.[' + $id1 + '].gNBCUCPList[' + $id2 + '].nFType'`\" />",
+ "comments": "",
+ "outputs": 1,
+ "x": 2756.989616394043,
+ "y": 1962.3440132141113,
+ "z": "3782c339.10eaec",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "ebf82221.c4be3",
+ "type": "block",
+ "name": "CUUP",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 1940.0207176208496,
+ "y": 3512.088726043701,
+ "z": "3782c339.10eaec",
+ "wires": [
+ [
+ "c4d7d9db.d44a78",
+ "134f467b.34acaa",
+ "9ec5b493.1bbbd8",
+ "69e41174.43e5b",
+ "a81cebdf.634838"
+ ]
+ ]
+ },
+ {
+ "id": "66a87db3.dc6fd4",
+ "type": "block",
+ "name": "Add RRM Policy Ratio",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 3308.0209770202637,
+ "y": 5081.089113950729,
+ "z": "3782c339.10eaec",
+ "wires": [
+ [
+ "f01496be.5c1808",
+ "a867ca59.8fb788",
+ "14f953aa.b3df8c",
+ "ec811231.a519e",
+ "a0831317.feb34",
+ "54cab668.c85b58"
+ ]
+ ]
+ },
+ {
+ "id": "2f0f8945.901136",
+ "type": "switchNode",
+ "name": "ransim mounted",
+ "xml": "<switch test='`$prop.ransim-mounted`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 3528.0209770202637,
+ "y": 4368.089722394943,
+ "z": "3782c339.10eaec",
+ "wires": [
+ [
+ "1438b6bc.2a9469",
+ "3a541a03.8c1ca6"
+ ]
+ ]
+ },
+ {
+ "id": "1438b6bc.2a9469",
+ "type": "outcome",
+ "name": "Not Mounted",
+ "xml": "<outcome value='false'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 3769.0209770202637,
+ "y": 4300.08972287178,
+ "z": "3782c339.10eaec",
+ "wires": [
+ [
+ "55548145.d3f67"
+ ]
+ ]
+ },
+ {
+ "id": "3a541a03.8c1ca6",
+ "type": "outcome",
+ "name": "Mounted",
+ "xml": "<outcome value='true'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 3750.021099090576,
+ "y": 4394.089600324631,
+ "z": "3782c339.10eaec",
+ "wires": [
+ [
+ "19aa660f.65583a"
+ ]
+ ]
+ },
+ {
+ "id": "134f467b.34acaa",
+ "type": "for",
+ "name": "For List of CUUP's",
+ "xml": "<for index='id2' start='0' end='`$tmp.CUUPListEntries `' >",
+ "comments": "",
+ "outputs": 1,
+ "x": 2682.020709991455,
+ "y": 3858.089480161667,
+ "z": "3782c339.10eaec",
+ "wires": [
+ [
+ "249d7efd.f9dfb2",
+ "83ae1474.695858",
+ "2a8f212c.08154e",
+ "17fe21fb.ef534e",
+ "1aee4bfc.c72de4",
+ "66a87db3.dc6fd4",
+ "8fecdc9.0fd1a2",
+ "a572f5c.9134a08"
+ ]
+ ]
+ },
+ {
+ "id": "c4d7d9db.d44a78",
+ "type": "record",
+ "name": "record",
+ "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.FileRecorder\">\n<parameter name=\"file\" value=\"/opt/opendaylight/current/data/log/instantiateRANSlice.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"getListofCells-configdb-response. \"/>\n<parameter name=\"field2\" value=\"`$tmp.CUUPListEntries`\"/>",
+ "comments": "",
+ "outputs": 1,
+ "x": 3057.0205078125,
+ "y": 3419.0888671875,
+ "z": "3782c339.10eaec",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "9ec5b493.1bbbd8",
+ "type": "execute",
+ "name": "set CUUP Level parms",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'>\n\t<parameter name='outputPath' value='tmp.CUUPListEntries' />\n\t<parameter name='source' value=\"`'getRIC-configdb-response.[' + $id1 + '].gNBCUUPList_length'`\" />",
+ "comments": "",
+ "outputs": 1,
+ "x": 3030.020595550537,
+ "y": 3350.089214324951,
+ "z": "3782c339.10eaec",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "249d7efd.f9dfb2",
+ "type": "record",
+ "name": "record",
+ "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.FileRecorder\">\n<parameter name=\"file\" value=\"/opt/opendaylight/current/data/log/instantiateRANSlice.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"CUCP Details \"/>\n<parameter name=\"field2\" value=\"`$tmp.gNBCUUPList.gNBCUUPId`\"/>\n<parameter name=\"field3\" value=\"`$tmp.gNBCUUPList.gNBId`\"/>\n<parameter name=\"field4\" value=\"`$tmp.gNBCUUPList.gNBIdLength`\"/>\n<parameter name=\"field5\" value=\"`$tmp.gNBCUUPList.pLMNInfoList_length`\"/>\n<parameter name=\"field6\" value=\"`$tmp.payload.pLMNId`\"/>",
+ "comments": "",
+ "outputs": 1,
+ "x": 3518.0205078125,
+ "y": 3922.089599609375,
+ "z": "3782c339.10eaec",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "83ae1474.695858",
+ "type": "block",
+ "name": "cellCUUPList Level Parms",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 3484.0206451416016,
+ "y": 3851.089230298996,
+ "z": "3782c339.10eaec",
+ "wires": [
+ [
+ "5a878bfc.0ede04",
+ "4295f138.356e8",
+ "a8e80d62.4c0f5",
+ "80ea3cdc.60fbd"
+ ]
+ ]
+ },
+ {
+ "id": "5a878bfc.0ede04",
+ "type": "execute",
+ "name": "gNBCUUPList.gNBCUUPId",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'>\n\t<parameter name='outputPath' value='tmp.gNBCUUPList.gNBCUUPId' />\n\t<parameter name='source' value=\"`'getRIC-configdb-response.[' + $id1 + '].gNBCUUPList[' + $id2 + '].gNBCUUPId'`\" />\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 3917.0207176208496,
+ "y": 3798.089089155197,
+ "z": "3782c339.10eaec",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "4295f138.356e8",
+ "type": "execute",
+ "name": "gNBCUUPList-gNBId",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'>\n\t<parameter name='outputPath' value='tmp.gNBCUUPList.gNBId' />\n\t<parameter name='source' value=\"`'getRIC-configdb-response.[' + $id1 + '].gNBCUUPList[' + $id2 + '].gNBId'`\" />",
+ "comments": "",
+ "outputs": 1,
+ "x": 3942.020839691162,
+ "y": 3865.089214324951,
+ "z": "3782c339.10eaec",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "a8e80d62.4c0f5",
+ "type": "execute",
+ "name": "gNBCUUPList-gNBIdLength",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'>\n\t<parameter name='outputPath' value='tmp.gNBCUUPList.gNBIdLength' />\n\t<parameter name='source' value=\"`'getRIC-configdb-response.[' + $id1 + '].gNBCUUPList[' + $id2 + '].gNBIdLength'`\" />",
+ "comments": "",
+ "outputs": 1,
+ "x": 3960.020606994629,
+ "y": 3909.089134454727,
+ "z": "3782c339.10eaec",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "17fe21fb.ef534e",
+ "type": "for",
+ "name": "For pLMNInfoListEntries",
+ "xml": "<for index='id4' start='0' end='`$tmp.pLMNInfoListEntries`' >",
+ "comments": "",
+ "outputs": 1,
+ "x": 3523.010356903076,
+ "y": 4160.089225053787,
+ "z": "3782c339.10eaec",
+ "wires": [
+ [
+ "1ed61848.2f3628"
+ ]
+ ]
+ },
+ {
+ "id": "2a8f212c.08154e",
+ "type": "record",
+ "name": "record",
+ "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.FileRecorder\">\n<parameter name=\"file\" value=\"/opt/opendaylight/current/data/log/instantiateRANSlice.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"MCC \"/>\n<parameter name=\"field2\" value=\"`$tmp.mcc`\"/>\n<parameter name=\"field3\" value=\"MNC \"/>\n<parameter name=\"field4\" value=\"`$tmp.mnc`\"/>\n<parameter name=\"field5\" value=\"Calculated uLThptPerSlice \"/>\n<parameter name=\"field6\" value=\"`$tmp.uLThptPerSlice`\"/>\n<parameter name=\"field7\" value=\"Calculated dLThptPerSlice \"/>\n<parameter name=\"field8\" value=\"`$tmp.dLThptPerSlice`\"/>",
+ "comments": "",
+ "outputs": 1,
+ "x": 3523.0104789733887,
+ "y": 4014.0891025066376,
+ "z": "3782c339.10eaec",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "1ed61848.2f3628",
+ "type": "block",
+ "name": "pLMNInfoList Parms",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 3774.0105323791504,
+ "y": 4159.0891761779785,
+ "z": "3782c339.10eaec",
+ "wires": [
+ [
+ "f5b82583.cc5558",
+ "3cb6f9ea.fd1736"
+ ]
+ ]
+ },
+ {
+ "id": "f5b82583.cc5558",
+ "type": "execute",
+ "name": "sNSSAI",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'>\n\t<parameter name='outputPath' value='tmp.fromRAN.sNSSAI' />\n\t<parameter name='source' value=\"`'getRIC-configdb-response.[' + $id1 + '].gNBCUUPList[' + $id2 + '].pLMNInfoList[' + $id3 + '].sNSSAI'`\" />",
+ "comments": "",
+ "outputs": 1,
+ "x": 3988.010498046875,
+ "y": 4110.089298248291,
+ "z": "3782c339.10eaec",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "3c125faf.bc1d6",
+ "type": "comment",
+ "name": "Check if sNSSAI already exists in YANG tree",
+ "info": "This needs more work. If sNSSAI already exists in the YANG tree, need to patch the existing pLMNInfoList entry",
+ "comments": "",
+ "x": 3591.0105171203613,
+ "y": 4215.0891761779785,
+ "z": "3782c339.10eaec",
+ "wires": []
+ },
+ {
+ "id": "3cb6f9ea.fd1736",
+ "type": "record",
+ "name": "record",
+ "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.FileRecorder\">\n<parameter name=\"file\" value=\"/opt/opendaylight/current/data/log/instantiateRANSlice.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"sNSSAI from RAN to check if already exists \"/>\n<parameter name=\"field2\" value=\"`$tmp.fromRAN.sNSSAI`\"/>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 3992.0105590820312,
+ "y": 4194.088809967041,
+ "z": "3782c339.10eaec",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "dba9cfb6.3f298",
+ "type": "record",
+ "name": "record",
+ "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.FileRecorder\">\n<parameter name=\"file\" value=\"/opt/opendaylight/current/data/log/instantiateRANSlice.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"Setting variables for PLMNInfoList Entry Add to NRCellCU\"/>\n<parameter name=\"field2\" value=\"`$tmp.addPLMNInfoListEntry.ToNRCellDU.url`\"/>\n<parameter name=\"field3\" value=\"`$tmp.mcc`\"/>\n<parameter name=\"field4\" value=\"`$tmp.mnc`\"/>\n<parameter name=\"field5\" value=\"`$payloadJson.input.sliceProfile.sNSSAI`\"/>\n<parameter name=\"field6\" value=\"`$tmp.uLThptPerSlice`\"/>\n<parameter name=\"field7\" value=\"`$tmp.dLThptPerSlice`\"/>",
+ "comments": "",
+ "outputs": 1,
+ "x": 3912.0216178894043,
+ "y": 4714.422402620316,
+ "z": "3782c339.10eaec",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "1aee4bfc.c72de4",
+ "type": "block",
+ "name": "Add PLMNInfoList Entry",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 3471.0207328796387,
+ "y": 4553.433341741562,
+ "z": "3782c339.10eaec",
+ "wires": [
+ [
+ "dba9cfb6.3f298",
+ "33d22fdb.29249",
+ "b52da1a7.a14b3",
+ "7bc64138.025d4",
+ "963a9cb2.0bfbf",
+ "2f0f8945.901136",
+ "c412700a.e7175"
+ ]
+ ]
+ },
+ {
+ "id": "c412700a.e7175",
+ "type": "execute",
+ "name": "add PLMNInfoListEntry ToGNBCUUPFn using PUT",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"templateFileName\" value=\"`$prop.restapi.templateDir + '/ranSlice-add-get-PLMNInfoListEntry-GNBCUUPFn.json'`\" />\n<parameter name=\"restapiUrl\" value=\"`$prop.controller.url + $tmp.addPLMNInfoListEntry.ToGNBCUUPFn.url`\"/>\n<parameter name=\"restapiUser\" value=\"`$prop.controller.user`\" />\n<parameter name=\"restapiPassword\" value=\"`$prop.controller.pwd`\"/>\n<parameter name=\"httpMethod\" value=\"PUT\"/>\n<parameter name=\"responsePrefix\" value=\"PLMNInfoListEntry-response\"/>\n<parameter name='contentType' value='application/json' /> \n<parameter name='format' value='json' />",
+ "comments": "",
+ "outputs": 1,
+ "x": 3872.0211067199707,
+ "y": 4752.433231115341,
+ "z": "3782c339.10eaec",
+ "wires": [
+ [
+ "6faba505.3e710c",
+ "5bff3d45.80f104"
+ ]
+ ]
+ },
+ {
+ "id": "33d22fdb.29249",
+ "type": "record",
+ "name": "record",
+ "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.FileRecorder\">\n<parameter name=\"file\" value=\"/opt/opendaylight/current/data/log/instantiateRANSlice.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"Add PLMNInfoListEntry ToGNBCUUPFn URL\"/>\n<parameter name=\"field2\" value=\"`$tmp.addPLMNInfoListEntry.ToGNBCUUPFn.url`\"/>",
+ "comments": "",
+ "outputs": 1,
+ "x": 3905.020736694336,
+ "y": 4662.433001756668,
+ "z": "3782c339.10eaec",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "55548145.d3f67",
+ "type": "execute",
+ "name": "generate addPLMNInfoListEntry.ToGNBCUUPFn",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$prop.restapi.addPLMNInfoListEntry.ToGNBCUUPFn`\"/>\n <parameter name=\"outputPath\" value=\"tmp.addPLMNInfoListEntry.ToGNBCUUPFn.url\"/>\n <parameter name=\"target\" value=\"{idNearRTRIC}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.nearRTRICId`\"/>",
+ "comments": "",
+ "outputs": 1,
+ "x": 4081.0207862854004,
+ "y": 4300.089359998703,
+ "z": "3782c339.10eaec",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "b52da1a7.a14b3",
+ "type": "execute",
+ "name": "Populate idGNBDUFunction",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$tmp.addPLMNInfoListEntry.ToGNBCUUPFn.url`\"/>\n <parameter name=\"outputPath\" value=\"tmp.addPLMNInfoListEntry.ToGNBCUUPFn.url\"/>\n <parameter name=\"target\" value=\"{idGNBCUUPFunction}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.gNBCUUPList.gNBCUUPId`\"/>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 3931.0105323791504,
+ "y": 4487.089282751083,
+ "z": "3782c339.10eaec",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "7bc64138.025d4",
+ "type": "execute",
+ "name": "Populate mcc",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$tmp.addPLMNInfoListEntry.ToGNBCUUPFn.url`\"/>\n <parameter name=\"outputPath\" value=\"tmp.addPLMNInfoListEntry.ToGNBCUUPFn.url\"/>\n <parameter name=\"target\" value=\"{mcc}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.mcc`\"/>",
+ "comments": "",
+ "outputs": 1,
+ "x": 3897.0105323791504,
+ "y": 4549.089284658432,
+ "z": "3782c339.10eaec",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "963a9cb2.0bfbf",
+ "type": "execute",
+ "name": "Populate mnc",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$tmp.addPLMNInfoListEntry.ToGNBCUUPFn.url`\"/>\n <parameter name=\"outputPath\" value=\"tmp.addPLMNInfoListEntry.ToGNBCUUPFn.url\"/>\n <parameter name=\"target\" value=\"{mnc}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.mnc`\"/>",
+ "comments": "",
+ "outputs": 1,
+ "x": 3894.0105323791504,
+ "y": 4598.089286565781,
+ "z": "3782c339.10eaec",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "6faba505.3e710c",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 4130.021598815918,
+ "y": 4579.422000646591,
+ "z": "3782c339.10eaec",
+ "wires": [
+ [
+ "7a640c9c.e6b9b4"
+ ]
+ ]
+ },
+ {
+ "id": "5bff3d45.80f104",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 4171.0219650268555,
+ "y": 4737.423099279404,
+ "z": "3782c339.10eaec",
+ "wires": [
+ [
+ "7a1094b7.9d5adc"
+ ]
+ ]
+ },
+ {
+ "id": "7a640c9c.e6b9b4",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 4344.0212326049805,
+ "y": 4505.422733068466,
+ "z": "3782c339.10eaec",
+ "wires": [
+ [
+ "1517722b.b2bcce",
+ "b8fa2a3a.504528"
+ ]
+ ]
+ },
+ {
+ "id": "7a1094b7.9d5adc",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 4185.021354675293,
+ "y": 4800.423221349716,
+ "z": "3782c339.10eaec",
+ "wires": [
+ [
+ "6345e619.212818"
+ ]
+ ]
+ },
+ {
+ "id": "1517722b.b2bcce",
+ "type": "returnFailure",
+ "name": "return failure",
+ "xml": "<return status='failure'>\n<parameter name='ack-final' value='Y'/>\n<parameter name=\"error-code\" value=\"500\" />\n<parameter name=\"error-message\" value=\"Error adding PLMNInfoList Entry to GNBCUUPFn\" />",
+ "comments": "",
+ "x": 4331.020866394043,
+ "y": 4634.422733068466,
+ "z": "3782c339.10eaec",
+ "wires": []
+ },
+ {
+ "id": "6345e619.212818",
+ "type": "record",
+ "name": "record",
+ "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.FileRecorder\">\n<parameter name=\"file\" value=\"/opt/opendaylight/current/data/log/instantiateRANSlice.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"PLMNInfo List Entry Add Executed Successfully \"/>",
+ "comments": "",
+ "outputs": 1,
+ "x": 4332.0217208862305,
+ "y": 4788.423221349716,
+ "z": "3782c339.10eaec",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "7dd00e17.87721",
+ "type": "execute",
+ "name": "generate addPLMNInfoListEntry ToGNBCUUPFn",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$prop.restapi.addPLMNInfoListEntry.ToGNBCUUPFn.ransim-mounted`\"/>\n <parameter name=\"outputPath\" value=\"tmp.addPLMNInfoListEntry.ToGNBCUUPFn.url\"/>\n <parameter name=\"target\" value=\"{idNearRTRIC}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.nearRTRICId`\"/>",
+ "comments": "",
+ "outputs": 1,
+ "x": 4276.010540008545,
+ "y": 4363.089360952377,
+ "z": "3782c339.10eaec",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "19aa660f.65583a",
+ "type": "block",
+ "name": "ransim URL",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 3931.0103721618652,
+ "y": 4395.089362859726,
+ "z": "3782c339.10eaec",
+ "wires": [
+ [
+ "7dd00e17.87721",
+ "7266be2c.c7615"
+ ]
+ ]
+ },
+ {
+ "id": "7266be2c.c7615",
+ "type": "execute",
+ "name": "populate mountName",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$tmp.addPLMNInfoListEntry.ToGNBCUUPFn.url`\"/>\n <parameter name=\"outputPath\" value=\"tmp.addPLMNInfoListEntry.ToGNBCUUPFn.url\"/>\n <parameter name=\"target\" value=\"{mountName}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.gNBCUUPList.gNBCUUPId`\"/>",
+ "comments": "",
+ "outputs": 1,
+ "x": 4195.01086807251,
+ "y": 4427.089362859726,
+ "z": "3782c339.10eaec",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "dd54696d.53b4f8",
+ "type": "comment",
+ "name": "Connect to AddPLMNInfoList Entry",
+ "info": "when able to talk to latest SDNC",
+ "comments": "",
+ "x": 3790.010456085205,
+ "y": 4801.422674894333,
+ "z": "3782c339.10eaec",
+ "wires": []
+ },
+ {
+ "id": "f01496be.5c1808",
+ "type": "switchNode",
+ "name": "ransim mounted",
+ "xml": "<switch test='`$prop.ransim-mounted`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 3540.010227203369,
+ "y": 4908.755387544632,
+ "z": "3782c339.10eaec",
+ "wires": [
+ [
+ "72d23abf.b2d5a4",
+ "93aa7023.45904"
+ ]
+ ]
+ },
+ {
+ "id": "72d23abf.b2d5a4",
+ "type": "outcome",
+ "name": "Not Mounted",
+ "xml": "<outcome value='false'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 3735.01025390625,
+ "y": 4868.755295038223,
+ "z": "3782c339.10eaec",
+ "wires": [
+ [
+ "687a95a0.fa612c"
+ ]
+ ]
+ },
+ {
+ "id": "93aa7023.45904",
+ "type": "outcome",
+ "name": "Mounted",
+ "xml": "<outcome value='true'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 3715.010227203369,
+ "y": 4947.755386590958,
+ "z": "3782c339.10eaec",
+ "wires": [
+ [
+ "72fc8d0a.a7bfb4"
+ ]
+ ]
+ },
+ {
+ "id": "a0831317.feb34",
+ "type": "record",
+ "name": "record",
+ "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.FileRecorder\">\n<parameter name=\"file\" value=\"/opt/opendaylight/current/data/log/instantiateRANSlice.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"Setting variables for addRRMPolicyRatio to GNBCUUPFn\"/>\n<parameter name=\"field2\" value=\"`$tmp.addRRMPolicyRatio.ToGNBCUUPFn.url`\"/>\n<parameter name=\"field3\" value=\"`$tmp.mcc`\"/>\n<parameter name=\"field4\" value=\"`$tmp.mnc`\"/>\n<parameter name=\"field5\" value=\"`$payloadJson.input.sliceProfile.sNSSAI`\"/>\n<parameter name=\"field6\" value=\"`$tmp.uLThptPerSlice`\"/>\n<parameter name=\"field7\" value=\"`$tmp.dLThptPerSlice`\"/>",
+ "comments": "",
+ "outputs": 1,
+ "x": 3695.011333465576,
+ "y": 5172.0890119075775,
+ "z": "3782c339.10eaec",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "54cab668.c85b58",
+ "type": "execute",
+ "name": "add RRM Policy ToGNBCUUPFn using PUT",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"templateFileName\" value=\"`$prop.restapi.templateDir + '/ranSlice-add-RRMPolicyRatio-GNBCUUPFn.json'`\" />\n<parameter name=\"restapiUrl\" value=\"`$prop.controller.url + $tmp.addRRMPolicyRatio.ToGNBCUUPFn.url`\"/>\n<parameter name=\"restapiUser\" value=\"`$prop.controller.user`\" />\n<parameter name=\"restapiPassword\" value=\"`$prop.controller.pwd`\"/>\n<parameter name=\"httpMethod\" value=\"PUT\"/>\n<parameter name=\"responsePrefix\" value=\"addRRMPolicyRatio-response\"/>\n<parameter name='contentType' value='application/json' /> \n<parameter name='format' value='json' />",
+ "comments": "",
+ "outputs": 1,
+ "x": 3756.0110816955566,
+ "y": 5279.0997540950775,
+ "z": "3782c339.10eaec",
+ "wires": [
+ [
+ "e36ca0c0.01616",
+ "b0b52e8e.9097a"
+ ]
+ ]
+ },
+ {
+ "id": "ec811231.a519e",
+ "type": "record",
+ "name": "record",
+ "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.FileRecorder\">\n<parameter name=\"file\" value=\"/opt/opendaylight/current/data/log/instantiateRANSlice.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"addRRMPolicyRatio ToGNBCUUPFn URL\"/>\n<parameter name=\"field2\" value=\"`$tmp.addRRMPolicyRatio.ToGNBCUUPFn.url`\"/>",
+ "comments": "",
+ "outputs": 1,
+ "x": 3686.010601043701,
+ "y": 5116.0992658138275,
+ "z": "3782c339.10eaec",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "687a95a0.fa612c",
+ "type": "execute",
+ "name": "generate addRRMPolicy.ToNRCellDU URL",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$prop.restapi.addRRMPolicyRatio.ToGNBCUUPFn`\"/>\n <parameter name=\"outputPath\" value=\"tmp.addRRMPolicyRatio.ToGNBCUUPFn.url\"/>\n <parameter name=\"target\" value=\"{idNearRTRIC}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.nearRTRICId`\"/>",
+ "comments": "",
+ "outputs": 1,
+ "x": 4018.010227203369,
+ "y": 4863.755386829376,
+ "z": "3782c339.10eaec",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "a867ca59.8fb788",
+ "type": "execute",
+ "name": "Populate idGNBDUFunction",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$tmp.addRRMPolicyRatio.ToGNBCUUPFn.url`\"/>\n <parameter name=\"outputPath\" value=\"tmp.addRRMPolicyRatio.ToGNBCUUPFn.url\"/>\n <parameter name=\"target\" value=\"{idGNBCUUPFunction}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.gNBCUUPList.gNBCUUPId`\"/>",
+ "comments": "",
+ "outputs": 1,
+ "x": 3733.999942779541,
+ "y": 5017.755802869797,
+ "z": "3782c339.10eaec",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "14f953aa.b3df8c",
+ "type": "execute",
+ "name": "Populate id",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$tmp.addRRMPolicyRatio.ToGNBCUUPFn.url`\"/>\n <parameter name=\"outputPath\" value=\"tmp.addRRMPolicyRatio.ToGNBCUUPFn.url\"/>\n <parameter name=\"target\" value=\"{id}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.RRMPolicyRatioID.GNBCUUPFunction`\"/>",
+ "comments": "",
+ "outputs": 1,
+ "x": 3688.000102996826,
+ "y": 5061.75612616539,
+ "z": "3782c339.10eaec",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "e36ca0c0.01616",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 4015.0106315612793,
+ "y": 5089.088723897934,
+ "z": "3782c339.10eaec",
+ "wires": [
+ [
+ "df6bff19.8545d"
+ ]
+ ]
+ },
+ {
+ "id": "b0b52e8e.9097a",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 4078.010601043701,
+ "y": 5276.08913397789,
+ "z": "3782c339.10eaec",
+ "wires": [
+ [
+ "92cf4ce.daf80b"
+ ]
+ ]
+ },
+ {
+ "id": "df6bff19.8545d",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 4235.010387420654,
+ "y": 5078.089212179184,
+ "z": "3782c339.10eaec",
+ "wires": [
+ [
+ "7a754958.e9de08",
+ "b8fa2a3a.504528"
+ ]
+ ]
+ },
+ {
+ "id": "92cf4ce.daf80b",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 4240.009990692139,
+ "y": 5260.0895001888275,
+ "z": "3782c339.10eaec",
+ "wires": [
+ [
+ "996d5fd4.d04a8"
+ ]
+ ]
+ },
+ {
+ "id": "7a754958.e9de08",
+ "type": "returnFailure",
+ "name": "return failure",
+ "xml": "<return status='failure'>\n<parameter name='ack-final' value='Y'/>\n<parameter name=\"error-code\" value=\"500\" />\n<parameter name=\"error-message\" value=\"Error adding RRMPolicy\" />",
+ "comments": "",
+ "x": 4244.010356903076,
+ "y": 5156.0895001888275,
+ "z": "3782c339.10eaec",
+ "wires": []
+ },
+ {
+ "id": "996d5fd4.d04a8",
+ "type": "record",
+ "name": "record",
+ "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.FileRecorder\">\n<parameter name=\"file\" value=\"/opt/opendaylight/current/data/log/instantiateRANSlice.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"addRRMPolicyRatio Executed Successfully \"/>",
+ "comments": "",
+ "outputs": 1,
+ "x": 4393.010601043701,
+ "y": 5242.09011054039,
+ "z": "3782c339.10eaec",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "6e9cf71b.9a8378",
+ "type": "execute",
+ "name": "generate RRMPolicy Ratio URL ToNRCellDU",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$prop.restapi.addRRMPolicyRatio.ToGNBCUUPFn.ransim-mounted`\"/>\n <parameter name=\"outputPath\" value=\"tmp.addRRMPolicyRatio.ToGNBCUUPFn.url\"/>\n <parameter name=\"target\" value=\"{idNearRTRIC}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.nearRTRICId`\"/>",
+ "comments": "",
+ "outputs": 1,
+ "x": 4131.999965667725,
+ "y": 4914.7555067539215,
+ "z": "3782c339.10eaec",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "72fc8d0a.a7bfb4",
+ "type": "block",
+ "name": "ransim URL",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 3860.9999504089355,
+ "y": 4913.755506277084,
+ "z": "3782c339.10eaec",
+ "wires": [
+ [
+ "6e9cf71b.9a8378",
+ "6d72e4e2.b7aecc"
+ ]
+ ]
+ },
+ {
+ "id": "6d72e4e2.b7aecc",
+ "type": "execute",
+ "name": "populate mountName",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$tmp.addRRMPolicyRatio.ToGNBCUUPFn.url`\"/>\n <parameter name=\"outputPath\" value=\"tmp.addRRMPolicyRatio.ToGNBCUUPFn.url\"/>\n <parameter name=\"target\" value=\"{mountName}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.gNBCUUPList.gNBCUUPId`\"/>",
+ "comments": "",
+ "outputs": 1,
+ "x": 4084.99995803833,
+ "y": 4995.755834341049,
+ "z": "3782c339.10eaec",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "bd407945.defe68",
+ "type": "comment",
+ "name": "Connect to RRM P{olicy Ratio",
+ "info": "when able to talk to latest SDNC",
+ "comments": "",
+ "x": 3708.999973297119,
+ "y": 5223.0885236263275,
+ "z": "3782c339.10eaec",
+ "wires": []
+ },
+ {
+ "id": "69e41174.43e5b",
+ "type": "block",
+ "name": "rrmPolicyDedicatedRatio",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 3323.0205039978027,
+ "y": 3563.7659726142883,
+ "z": "3782c339.10eaec",
+ "wires": [
+ [
+ "fc7aa451.c0d1a8",
+ "11601d0a.ec6593"
+ ]
+ ]
+ },
+ {
+ "id": "fc7aa451.c0d1a8",
+ "type": "set",
+ "name": "calculation",
+ "xml": "<set>\n<parameter name='tmp.rRMPolicyDedicatedRatio.CUUP1' value='`$tmp.DRBPerCUUPForSNSSAI * 100`' />\n<parameter name='tmp.rRMPolicyDedicatedRatio.CUUP' value='`$tmp.rRMPolicyDedicatedRatio.CUUP1 / $prop.cuupfunction.maxNumberOfDRBsPerCUUP`' />",
+ "comments": "",
+ "x": 3546.020839691162,
+ "y": 3520.543560028076,
+ "z": "3782c339.10eaec",
+ "wires": []
+ },
+ {
+ "id": "11601d0a.ec6593",
+ "type": "record",
+ "name": "record",
+ "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.FileRecorder\">\n<parameter name=\"file\" value=\"/opt/opendaylight/current/data/log/instantiateRANSlice.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"rRMPolicyDedicatedRatio for CUUP \"/>\n<parameter name=\"field2\" value=\"`$tmp.rRMPolicyDedicatedRatio.CUUP`\"/>",
+ "comments": "",
+ "outputs": 1,
+ "x": 3550.020839691162,
+ "y": 3674.210308074951,
+ "z": "3782c339.10eaec",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "80ea3cdc.60fbd",
+ "type": "execute",
+ "name": "gNBCUUPList-pLMNInfoList_length",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'>\n\t<parameter name='outputPath' value='tmp.pLMNInfoListEntries' />\n\t<parameter name='source' value=\"`'getRIC-configdb-response.[' + $id1 + '].gNBCUUPList[' + $id2 + '].pLMNInfoList_length'`\" />",
+ "comments": "",
+ "outputs": 1,
+ "x": 3976.020606994629,
+ "y": 3950.089140176773,
+ "z": "3782c339.10eaec",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "cd72f2ba.23c42",
+ "type": "execute",
+ "name": "gNBCUUPList-pLMNId",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'>\n\t<parameter name='outputPath' value='tmp.pLMNId' />\n\t<parameter name='source' value=\"`'getRIC-configdb-response.[' + $id1 + '].gNBCUUPList[' + $id2 + '].pLMNId'`\" />",
+ "comments": "",
+ "outputs": 1,
+ "x": 3982.2435340881348,
+ "y": 4037.7650775909424,
+ "z": "3782c339.10eaec",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "cda17900.a581b8",
+ "type": "comment",
+ "name": "Assumption pLMNId in configDB resp",
+ "info": "Assumed that configDB responnse will include pLMNId...currently, it is not there",
+ "comments": "",
+ "x": 4003.243377685547,
+ "y": 3995.7647955417633,
+ "z": "3782c339.10eaec",
+ "wires": []
+ },
+ {
+ "id": "d60161c.59dbda",
+ "type": "for",
+ "name": "For list of cells",
+ "xml": "<for index='idx' start='0' end='`$getListofCells-configdb-response._length `' >",
+ "comments": "",
+ "outputs": 1,
+ "x": 2434.000087738037,
+ "y": 903.0104179382324,
+ "z": "3782c339.10eaec",
+ "wires": [
+ [
+ "48b27ce7.219f34",
+ "36e75fed.15b9c"
+ ]
+ ]
+ },
+ {
+ "id": "36e75fed.15b9c",
+ "type": "record",
+ "name": "record",
+ "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.FileRecorder\">\n<parameter name=\"file\" value=\"/opt/opendaylight/current/data/log/instantiateRANSlice.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"`$tmp.trackingarea.cell`\"/>",
+ "comments": "",
+ "outputs": 1,
+ "x": 2611.000087738037,
+ "y": 951.0104179382324,
+ "z": "3782c339.10eaec",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "48b27ce7.219f34",
+ "type": "execute",
+ "name": "Cells in TrackingArea",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'>\n\t<parameter name='outputPath' value='tmp.trackingarea.cell' />\n\t<parameter name='source' value=\"`'getListofCells-configdb-response.[' + $ids + ']'`\" />",
+ "comments": "",
+ "outputs": 1,
+ "x": 2602.000087738037,
+ "y": 834.6770439147949,
+ "z": "3782c339.10eaec",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "dc15e744.a5e0f8",
+ "type": "comment",
+ "name": "TO DO",
+ "info": "- Use \"List of Cells for Tracking Area\" everywhere list\nof cells are sequenced for Restconf transactions...\nNo need to go through all cells as captured in the configDB\nresponse....localID will be the actual value returned \nin \n<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'>\n\t<parameter name='outputPath' value='tmp.trackingarea.cell' />\n\t<parameter name='source' value=\"`'getListofCells-configdb-response.[' + $ids + ']'`\" />\n\t\n\ttmp.trackingarea.cell would be cellLocalID",
+ "comments": "",
+ "x": 867.0000267028809,
+ "y": 110.01035690307617,
+ "z": "3782c339.10eaec",
+ "wires": []
+ },
+ {
+ "id": "17808f07.373cf1",
+ "type": "execute",
+ "name": "cellLocalID",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'>\n\t<parameter name='outputPath' value='tmp.cellLocalId' />\n\t<parameter name='source' value=\"`'getListofCells-configdb-response.[' + $id3 + ']'`\" />",
+ "comments": "",
+ "outputs": 1,
+ "x": 2546.9998359680176,
+ "y": 2160.343850135803,
+ "z": "3782c339.10eaec",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "93365ab1.b37818",
+ "type": "block",
+ "name": "SO Response",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 562.4937019348145,
+ "y": 928.014651298523,
+ "z": "3782c339.10eaec",
+ "wires": [
+ [
+ "247a2742.74e6e8",
+ "cc0d92f6.b75bc",
+ "f7f6583f.0b3ca8"
+ ]
+ ]
+ },
+ {
+ "id": "247a2742.74e6e8",
+ "type": "set",
+ "name": "set tmp variables for SO response",
+ "xml": "<set>\n<parameter name=\"tmp.so.callbackURL\" value=\"`$payloadJson.input.callbackURL`\"/>\n<parameter name=\"tmp.status\" value=\"`$error-code`\"/>\n<parameter name=\"tmp.reason\" value=\"`$error-message`\"/>\n<parameter name=\"tmp.requestID\" value=\"`$instantiate-r-a-n-slice-input.common-header.request-id `\"/>\n<parameter name=\"tmp.action\" value=\"`$instantiate-r-a-n-slice-input.action`\"/>\n",
+ "comments": "",
+ "x": 868.4948539733887,
+ "y": 844.9140958786011,
+ "z": "3782c339.10eaec",
+ "wires": []
+ },
+ {
+ "id": "cc0d92f6.b75bc",
+ "type": "record",
+ "name": "record SO reply parms",
+ "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.FileRecorder\">\n<parameter name=\"file\" value=\"/opt/opendaylight/current/data/log/so-callback-response.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"URL for SO Callback Response\"/>\n<parameter name='field2' value=\"`$tmp.so.callbackURL`\" />\n<parameter name='field3' value=\"`$tmp.status`\" />\n<parameter name='field4' value=\"`$tmp.reason`\" />\n<parameter name='field5' value=\"`$tmp.requestID`\" />\n<parameter name='field6' value=\"`$tmp.action`\" />\n<parameter name='field7' value=\"`$tmp.CUCPList`\" />\n<parameter name='field8' value=\"`$tmp.CUUPList`\" />\n<parameter name='field9' value=\"`$tmp.DUList`\" />",
+ "comments": "",
+ "outputs": 1,
+ "x": 843.4936943054199,
+ "y": 932.0147933959961,
+ "z": "3782c339.10eaec",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "f7f6583f.0b3ca8",
+ "type": "execute",
+ "name": "Send to SO",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"templateFileName\" value=\"`$prop.restapi.templateDir + '/ranSlice-so-response.json'`\" />\n<parameter name=\"restapiUrl\" value=\"`$tmp.so.callbackURL`\"/>\n<parameter name=\"httpMethod\" value=\"POST\"/>\n<parameter name=\"responsePrefix\" value=\"so-callback-response\"/>\n<parameter name='contentType' value='application/json' /> \n<parameter name='format' value='json' />\n<parameter name='accept' value='application/json' />",
+ "comments": "",
+ "outputs": 1,
+ "x": 708.4937782287598,
+ "y": 1049.0145387649536,
+ "z": "3782c339.10eaec",
+ "wires": [
+ [
+ "9adc3342.b4ec6",
+ "815795d9.7a3888"
+ ]
+ ]
+ },
+ {
+ "id": "9adc3342.b4ec6",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 873.4937782287598,
+ "y": 1029.0145378112793,
+ "z": "3782c339.10eaec",
+ "wires": [
+ [
+ "4e0aa5fe.22f99c"
+ ]
+ ]
+ },
+ {
+ "id": "815795d9.7a3888",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 865.4936714172363,
+ "y": 1102.0144882202148,
+ "z": "3782c339.10eaec",
+ "wires": [
+ [
+ "31e5ea55.aa9c66"
+ ]
+ ]
+ },
+ {
+ "id": "31e5ea55.aa9c66",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 1011.4935150146484,
+ "y": 1107.014596939087,
+ "z": "3782c339.10eaec",
+ "wires": [
+ [
+ "960613d8.52f27"
+ ]
+ ]
+ },
+ {
+ "id": "4e0aa5fe.22f99c",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 1022.4936790466309,
+ "y": 1025.0146732330322,
+ "z": "3782c339.10eaec",
+ "wires": [
+ [
+ "33f8f498.fb10ac",
+ "2282fbe8.5756e4"
+ ]
+ ]
+ },
+ {
+ "id": "33f8f498.fb10ac",
+ "type": "returnFailure",
+ "name": "return failure",
+ "xml": "<return status='failure'>\n<parameter name='ack-final' value='Y'/>\n<parameter name=\"error-code\" value=\"500\" />\n<parameter name=\"error-message\" value=\"Error sending SO Response\" />",
+ "comments": "",
+ "x": 1169.4932975769043,
+ "y": 1036.0144147872925,
+ "z": "3782c339.10eaec",
+ "wires": []
+ },
+ {
+ "id": "960613d8.52f27",
+ "type": "record",
+ "name": "record",
+ "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.FileRecorder\">\n<parameter name=\"file\" value=\"/opt/opendaylight/current/data/log/instantiateRANSlice.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"SO Response Sent \"/>",
+ "comments": "",
+ "outputs": 1,
+ "x": 1172.4934349060059,
+ "y": 1113.0144891738892,
+ "z": "3782c339.10eaec",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "b8fa2a3a.504528",
+ "type": "block",
+ "name": "block : SO Response",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 5680.490093231201,
+ "y": 3294.0105419158936,
+ "z": "3782c339.10eaec",
+ "wires": [
+ [
+ "9e8fa761.488408",
+ "bafb2d39.626bc",
+ "21aa540c.9bee2c"
+ ]
+ ]
+ },
+ {
+ "id": "9e8fa761.488408",
+ "type": "set",
+ "name": "set tmp variables for SO response",
+ "xml": "<set>\n<parameter name=\"tmp.so.callbackURL\" value=\"`$payloadJson.input.callbackURL`\"/>\n<parameter name=\"tmp.status\" value=\"`$error-code`\"/>\n<parameter name=\"tmp.reason\" value=\"`$error-message`\"/>\n<parameter name=\"tmp.requestID\" value=\"`$instantiateRANSlice-input.common-header.request-id`\"/>\n<parameter name=\"tmp.action\" value=\"`$instantiateRANSlice-input.action`\"/>\n",
+ "comments": "",
+ "x": 5998.491069793701,
+ "y": 3217.9102001190186,
+ "z": "3782c339.10eaec",
+ "wires": []
+ },
+ {
+ "id": "bafb2d39.626bc",
+ "type": "record",
+ "name": "record configdb RestAPI parms",
+ "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.FileRecorder\">\n<parameter name=\"file\" value=\"/opt/opendaylight/current/data/log/so-callback-response.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"URL for SO Callback Response\"/>\n<parameter name='field2' value=\"`$tmp.so.callbackURL`\" />\n<parameter name='field3' value=\"`$tmp.status`\" />\n<parameter name='field4' value=\"`$tmp.reason`\" />\n<parameter name='field5' value=\"`$tmp.requestID`\" />\n<parameter name='field6' value=\"`$tmp.action`\" />\n<parameter name='field7' value=\"`$tmp.CUCPList`\" />\n<parameter name='field8' value=\"`$tmp.CUUPList`\" />\n<parameter name='field9' value=\"`$tmp.DUList`\" />",
+ "comments": "",
+ "outputs": 1,
+ "x": 5973.4899559021,
+ "y": 3315.010877609253,
+ "z": "3782c339.10eaec",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "21aa540c.9bee2c",
+ "type": "execute",
+ "name": "Send to SO",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"templateFileName\" value=\"`$prop.restapi.templateDir + '/ranSlice-so-response.json'`\" />\n<parameter name=\"restapiUrl\" value=\"`$tmp.so.callbackURL`\"/>\n<parameter name=\"httpMethod\" value=\"POST\"/>\n<parameter name=\"responsePrefix\" value=\"so-callback-response\"/>\n<parameter name='contentType' value='application/json' /> \n<parameter name='format' value='json' />\n<parameter name='accept' value='application/json' />",
+ "comments": "",
+ "outputs": 1,
+ "x": 5888.489967346191,
+ "y": 3412.0107555389404,
+ "z": "3782c339.10eaec",
+ "wires": [
+ [
+ "44d3e5bf.c0ce6c",
+ "2e76e496.f0582c"
+ ]
+ ]
+ },
+ {
+ "id": "44d3e5bf.c0ce6c",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 6114.48997592926,
+ "y": 3389.010724544525,
+ "z": "3782c339.10eaec",
+ "wires": [
+ [
+ "6e0a9012.e27ff"
+ ]
+ ]
+ },
+ {
+ "id": "2e76e496.f0582c",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 6104.48983001709,
+ "y": 3497.010663986206,
+ "z": "3782c339.10eaec",
+ "wires": [
+ [
+ "49540248.99185c"
+ ]
+ ]
+ },
+ {
+ "id": "49540248.99185c",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 6254.489616394043,
+ "y": 3516.0107250213623,
+ "z": "3782c339.10eaec",
+ "wires": [
+ [
+ "6db43e82.4d8db"
+ ]
+ ]
+ },
+ {
+ "id": "6e0a9012.e27ff",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 6265.489845275879,
+ "y": 3384.0108466148376,
+ "z": "3782c339.10eaec",
+ "wires": [
+ [
+ "436318c9.37cf38"
+ ]
+ ]
+ },
+ {
+ "id": "436318c9.37cf38",
+ "type": "returnFailure",
+ "name": "return failure",
+ "xml": "<return status='failure'>\n<parameter name='ack-final' value='Y'/>\n<parameter name=\"error-code\" value=\"500\" />\n<parameter name=\"error-message\" value=\"Error sending SO Response\" />",
+ "comments": "",
+ "x": 6431.489524841309,
+ "y": 3387.010663986206,
+ "z": "3782c339.10eaec",
+ "wires": []
+ },
+ {
+ "id": "6db43e82.4d8db",
+ "type": "record",
+ "name": "record",
+ "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.FileRecorder\">\n<parameter name=\"file\" value=\"/opt/opendaylight/current/data/log/instantiateRANSlice.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"SO Response Sent \"/>",
+ "comments": "",
+ "outputs": 1,
+ "x": 6418.489631652832,
+ "y": 3522.010663986206,
+ "z": "3782c339.10eaec",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "97ac0173.5eb49",
+ "type": "block",
+ "name": "nearRTRIC",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 1771.98978805542,
+ "y": 1307.3437099456787,
+ "z": "3782c339.10eaec",
+ "wires": [
+ [
+ "b9dfbba1.4288e8",
+ "67d07a7a.ba9654",
+ "1aa2d78a.404fb8"
+ ]
+ ]
+ },
+ {
+ "id": "8abf64e1.c38d08",
+ "type": "execute",
+ "name": "gNBId",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'>\n\t<parameter name='outputPath' value='tmp.gNBId' />\n\t<parameter name='source' value=\"`'getRIC-configdb-response.[' + $id1 + '].gNBId'`\" />",
+ "comments": "",
+ "outputs": 1,
+ "x": 1686.9896659851074,
+ "y": 1060.67702293396,
+ "z": "3782c339.10eaec",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "e31edffc.384aa",
+ "type": "execute",
+ "name": "ranNFNSSIListEntry",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'>\n\t<parameter name='outputPath' value='tmp.ranNFNSSIListEntry' />\n\t<parameter name='source' value=\"`'getRIC-configdb-response.[' + $id1 + '].ranNFNSSIList[0]'`\" />",
+ "comments": "",
+ "outputs": 1,
+ "x": 1749.9897575378418,
+ "y": 1141.6770992279053,
+ "z": "3782c339.10eaec",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "b9dfbba1.4288e8",
+ "type": "set",
+ "name": "Calculate parms",
+ "xml": "<set>\n<parameter name='tmp.nearRTRIC.uLThptPerSlice' value='`$payloadJson.input.sliceProfile.uLThptPerSlice * 1.1`' />\n<parameter name='tmp.nearRTRIC.dLThptPerSlice' value='`$payloadJson.input.sliceProfile.dLThptPerSlice * 1.1`' />\n<parameter name='tmp.nearRTRIC.maxNumberOfConns' value='`$payloadJson.input.sliceProfile.maxNumberOfConns * 1.1`' />",
+ "comments": "",
+ "x": 2020.3229637145996,
+ "y": 1204.6771049499512,
+ "z": "3782c339.10eaec",
+ "wires": []
+ },
+ {
+ "id": "67d07a7a.ba9654",
+ "type": "record",
+ "name": "record",
+ "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.FileRecorder\">\n<parameter name=\"file\" value=\"/opt/opendaylight/current/data/log/instantiateRANSlice.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"Calculated uLThptPerSlice for nearRTRIC \"/>\n<parameter name=\"field2\" value=\"`$tmp.nearRTRIC.uLThptPerSlice`\"/>\n<parameter name=\"field3\" value=\"Calculated dLThptPerSlice for nearRTRIC\"/>\n<parameter name=\"field4\" value=\"`$tmp.nearRTRIC.dLThptPerSlice`\"/>\n<parameter name=\"field5\" value=\"Calculated maxNumberOfConns for nearRTRIC\"/>\n<parameter name=\"field6\" value=\"`$tmp.nearRTRIC.maxNumberOfConns`\"/>",
+ "comments": "",
+ "outputs": 1,
+ "x": 1969.6562614440918,
+ "y": 1307.3438320159912,
+ "z": "3782c339.10eaec",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "1aa2d78a.404fb8",
+ "type": "execute",
+ "name": "Update nearRT RIC Details in ConfigDB",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"restapiUrl\" value=\"`$prop.configdb.url + $prop.restapi.configdb.updatenearRTRIC`\"/>\n<parameter name=\"templateFileName\" value=\"`$prop.restapi.templateDir + '/ranSlice-configDB-updatenearRTRIC.json'`\" />\n<parameter name=\"httpMethod\" value=\"PUT\"/>\n<parameter name=\"responsePrefix\" value=\"update-nearRTRIC-configdb-response\"/>\n<parameter name='contentType' value='application/json' /> \n<parameter name='format' value='json' />\n<parameter name='accept' value='application/json' />\n<parameter name=\"convertResponse\" value=\"true\"/>",
+ "comments": "",
+ "outputs": 1,
+ "x": 2017.656322479248,
+ "y": 1397.6769666671753,
+ "z": "3782c339.10eaec",
+ "wires": [
+ [
+ "2243d0bf.40441",
+ "2f9f082f.cc87b8"
+ ]
+ ]
+ },
+ {
+ "id": "2243d0bf.40441",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2342.6564445495605,
+ "y": 1330.6771478652954,
+ "z": "3782c339.10eaec",
+ "wires": [
+ [
+ "4912261a.248ca8"
+ ]
+ ]
+ },
+ {
+ "id": "2f9f082f.cc87b8",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2373.656337738037,
+ "y": 1452.6769828796387,
+ "z": "3782c339.10eaec",
+ "wires": [
+ [
+ "5ee232a7.1ef76c"
+ ]
+ ]
+ },
+ {
+ "id": "5ee232a7.1ef76c",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 2544.656337738037,
+ "y": 1468.6771049499512,
+ "z": "3782c339.10eaec",
+ "wires": [
+ [
+ "a593f3aa.384f2"
+ ]
+ ]
+ },
+ {
+ "id": "a593f3aa.384f2",
+ "type": "record",
+ "name": "record",
+ "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.FileRecorder\">\n<parameter name=\"file\" value=\"/opt/opendaylight/current/data/log/instantiateRANSlice.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"Successfully Updated NearRT RIC info in ConfigDB\"/>",
+ "comments": "",
+ "outputs": 1,
+ "x": 2717.656337738037,
+ "y": 1466.6772270202637,
+ "z": "3782c339.10eaec",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "e0373836.acd218",
+ "type": "returnFailure",
+ "name": "return failure",
+ "xml": "<return status='failure'>\n<parameter name='ack-final' value='Y'/>\n<parameter name='error-code' value='500'/>\n<parameter name='error-message' value='Error updating nearRTRIC info in ConfigDB. Aborting RPC executiopn'/>",
+ "comments": "",
+ "x": 2637.65629196167,
+ "y": 1422.6771054267883,
+ "z": "3782c339.10eaec",
+ "wires": []
+ },
+ {
+ "id": "4912261a.248ca8",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 2500.6566123962402,
+ "y": 1306.677146434784,
+ "z": "3782c339.10eaec",
+ "wires": [
+ [
+ "e0373836.acd218",
+ "9d73ee69.0fd59",
+ "b8fa2a3a.504528"
+ ]
+ ]
+ },
+ {
+ "id": "9d73ee69.0fd59",
+ "type": "set",
+ "name": "set",
+ "xml": "<set>\n<parameter name='error-code' value='500'/>\n<parameter name='error-message' value='Error updating nearRTRIC info in ConfigDB. Aborting RPC executiopn'/>",
+ "comments": "",
+ "x": 2729.65629196167,
+ "y": 1250.788146495819,
+ "z": "3782c339.10eaec",
+ "wires": []
+ },
+ {
+ "id": "1d9a2d94.d985b2",
+ "type": "execute",
+ "name": "Update cellCU for gNBCUCP in ConfigDB",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"restapiUrl\" value=\"`$prop.configdb.url + $prop.restapi.configdb.updategNBCUCP`\"/>\n<parameter name=\"templateFileName\" value=\"`$prop.restapi.templateDir + '/ranSlice-configDB-updategNBCUCP.json'`\" />\n<parameter name=\"httpMethod\" value=\"PUT\"/>\n<parameter name=\"responsePrefix\" value=\"update-gNBCUCP-configdb-response\"/>\n<parameter name='contentType' value='application/json' /> \n<parameter name='format' value='json' />\n<parameter name='accept' value='application/json' />\n<parameter name=\"convertResponse\" value=\"true\"/>",
+ "comments": "",
+ "outputs": 1,
+ "x": 3120.021251678467,
+ "y": 3176.5417795181274,
+ "z": "3782c339.10eaec",
+ "wires": [
+ [
+ "1b004f38.b89921",
+ "6b1d5536.23a78c"
+ ]
+ ]
+ },
+ {
+ "id": "1b004f38.b89921",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 3984.020839691162,
+ "y": 3216.541851043701,
+ "z": "3782c339.10eaec",
+ "wires": [
+ [
+ "5dcb50b7.44976"
+ ]
+ ]
+ },
+ {
+ "id": "5dcb50b7.44976",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 4212.021083831787,
+ "y": 3208.541851043701,
+ "z": "3782c339.10eaec",
+ "wires": [
+ [
+ "49fc806a.e998a",
+ "b4e917e4.8f6d08",
+ "b8fa2a3a.504528"
+ ]
+ ]
+ },
+ {
+ "id": "b4e917e4.8f6d08",
+ "type": "set",
+ "name": "set",
+ "xml": "<set>\n<parameter name='error-code' value='500'/>\n<parameter name='error-message' value='Error updating configCUCP info in ConfigDB. Aborting RPC executiopn'/>",
+ "comments": "",
+ "x": 4327.020839691162,
+ "y": 3121.652690887451,
+ "z": "3782c339.10eaec",
+ "wires": []
+ },
+ {
+ "id": "49fc806a.e998a",
+ "type": "returnFailure",
+ "name": "return failure",
+ "xml": "<return status='failure'>\n<parameter name='ack-final' value='Y'/>\n<parameter name='error-code' value='500'/>\n<parameter name='error-message' value='Error updating nearRTRIC info in ConfigDB. Aborting RPC executiopn'/>",
+ "comments": "",
+ "x": 4395.020839691162,
+ "y": 3228.541606903076,
+ "z": "3782c339.10eaec",
+ "wires": []
+ },
+ {
+ "id": "6b1d5536.23a78c",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 3989.020839691162,
+ "y": 3264.541606903076,
+ "z": "3782c339.10eaec",
+ "wires": [
+ [
+ "a99acb17.4c8378"
+ ]
+ ]
+ },
+ {
+ "id": "a99acb17.4c8378",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 4154.020839691162,
+ "y": 3263.541851043701,
+ "z": "3782c339.10eaec",
+ "wires": [
+ [
+ "21de19c7.91eef6"
+ ]
+ ]
+ },
+ {
+ "id": "21de19c7.91eef6",
+ "type": "record",
+ "name": "record",
+ "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.FileRecorder\">\n<parameter name=\"file\" value=\"/opt/opendaylight/current/data/log/instantiateRANSlice.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"Successfully Updated gNBCUCP info in ConfigDB\"/>",
+ "comments": "",
+ "outputs": 1,
+ "x": 4306.020839691162,
+ "y": 3276.541851043701,
+ "z": "3782c339.10eaec",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "f1a802f3.e7801",
+ "type": "execute",
+ "name": "Update RRMPolicy for gNBCUCP in ConfigDB",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"restapiUrl\" value=\"`$prop.configdb.url + $prop.restapi.configdb.updateRRMPolicy`\"/>\n<parameter name=\"templateFileName\" value=\"`$prop.restapi.templateDir + '/ranSlice-configDB-updateRRMPolicy-CUCP.json'`\" />\n<parameter name=\"httpMethod\" value=\"PUT\"/>\n<parameter name=\"responsePrefix\" value=\"update-gNBCUCP-rrmpolicy-configdb-response\"/>\n<parameter name='contentType' value='application/json' /> \n<parameter name='format' value='json' />\n<parameter name='accept' value='application/json' />\n<parameter name=\"convertResponse\" value=\"true\"/>",
+ "comments": "",
+ "outputs": 1,
+ "x": 2580.98974609375,
+ "y": 3248.01025390625,
+ "z": "3782c339.10eaec",
+ "wires": [
+ [
+ "d4becda1.f48b7",
+ "ff30f4ef.239178"
+ ]
+ ]
+ },
+ {
+ "id": "6381cd68.8bfad4",
+ "type": "set",
+ "name": "set",
+ "xml": "<set>\n<parameter name='error-code' value='500'/>\n<parameter name='error-message' value='Error updating RRMPolicy CUCP info in ConfigDB. Aborting RPC executiopn'/>",
+ "comments": "",
+ "x": 4305.989986419678,
+ "y": 3314.0105724334717,
+ "z": "3782c339.10eaec",
+ "wires": []
+ },
+ {
+ "id": "24cbb36e.9fa02c",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 4230.989765167236,
+ "y": 3371.8997344970703,
+ "z": "3782c339.10eaec",
+ "wires": [
+ [
+ "b46b09e6.8e3d78",
+ "6381cd68.8bfad4",
+ "b8fa2a3a.504528"
+ ]
+ ]
+ },
+ {
+ "id": "b46b09e6.8e3d78",
+ "type": "returnFailure",
+ "name": "return failure",
+ "xml": "<return status='failure'>\n<parameter name='ack-final' value='Y'/>\n<parameter name='error-code' value='500'/>\n<parameter name='error-message' value='Error updating RRMPolicy CUCP info in ConfigDB. Aborting RPC executiopn'/>",
+ "comments": "",
+ "x": 4397.989879608154,
+ "y": 3405.8991956710815,
+ "z": "3782c339.10eaec",
+ "wires": []
+ },
+ {
+ "id": "73cb4fc7.63af1",
+ "type": "record",
+ "name": "record",
+ "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.FileRecorder\">\n<parameter name=\"file\" value=\"/opt/opendaylight/current/data/log/instantiateRANSlice.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"Successfully Updated RRMPolicy CUCP info in ConfigDB\"/>",
+ "comments": "",
+ "outputs": 1,
+ "x": 3981.98978805542,
+ "y": 3439.8993740081787,
+ "z": "3782c339.10eaec",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "fb6a9e79.9a0c8",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 3822.9903717041016,
+ "y": 3395.8999528884888,
+ "z": "3782c339.10eaec",
+ "wires": [
+ [
+ "73cb4fc7.63af1",
+ "384c1e28.4c1912"
+ ]
+ ]
+ },
+ {
+ "id": "ff30f4ef.239178",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 3729.990036010742,
+ "y": 3327.8983755111694,
+ "z": "3782c339.10eaec",
+ "wires": [
+ [
+ "fb6a9e79.9a0c8"
+ ]
+ ]
+ },
+ {
+ "id": "d4becda1.f48b7",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 3730.989990234375,
+ "y": 3281.8995146751404,
+ "z": "3782c339.10eaec",
+ "wires": [
+ [
+ "24cbb36e.9fa02c"
+ ]
+ ]
+ },
+ {
+ "id": "384c1e28.4c1912",
+ "type": "set",
+ "name": "Increment RRMPolicyID",
+ "xml": "<set>\n<parameter name='prop.configDB.rrmPolicyID' value='`$prop.configDB.rrmPolicyID + 1`' />",
+ "comments": "",
+ "x": 4034.2222023010254,
+ "y": 3391.465057373047,
+ "z": "3782c339.10eaec",
+ "wires": []
+ },
+ {
+ "id": "8fecdc9.0fd1a2",
+ "type": "execute",
+ "name": "Update gNBCUUP in ConfigDB",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"restapiUrl\" value=\"`$prop.configdb.url + $prop.restapi.configdb.updategNBCUUP`\"/>\n<parameter name=\"templateFileName\" value=\"`$prop.restapi.templateDir + '/ranSlice-configDB-updategNBCUUP.json'`\" />\n<parameter name=\"httpMethod\" value=\"PUT\"/>\n<parameter name=\"responsePrefix\" value=\"update-gNBCUUP-configdb-response\"/>\n<parameter name='contentType' value='application/json' /> \n<parameter name='format' value='json' />\n<parameter name='accept' value='application/json' />\n<parameter name=\"convertResponse\" value=\"true\"/>",
+ "comments": "",
+ "outputs": 1,
+ "x": 3264.521251678467,
+ "y": 5326.54160118103,
+ "z": "3782c339.10eaec",
+ "wires": [
+ [
+ "ffaaa59e.3131a8",
+ "3fcb3191.fe796e"
+ ]
+ ]
+ },
+ {
+ "id": "ffaaa59e.3131a8",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 4024.5211448669434,
+ "y": 5390.541712284088,
+ "z": "3782c339.10eaec",
+ "wires": [
+ [
+ "fdb9127b.b4138"
+ ]
+ ]
+ },
+ {
+ "id": "3fcb3191.fe796e",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 4143.520839691162,
+ "y": 5468.541606903076,
+ "z": "3782c339.10eaec",
+ "wires": [
+ [
+ "71f1f8b.d39ba08"
+ ]
+ ]
+ },
+ {
+ "id": "fdb9127b.b4138",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 4261.521144866943,
+ "y": 5382.541834831238,
+ "z": "3782c339.10eaec",
+ "wires": [
+ [
+ "415d1fe4.50d4",
+ "e95eff1.7901f",
+ "b8fa2a3a.504528"
+ ]
+ ]
+ },
+ {
+ "id": "71f1f8b.d39ba08",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 4273.520801544189,
+ "y": 5506.5416049957275,
+ "z": "3782c339.10eaec",
+ "wires": [
+ [
+ "b78b409a.a2d53"
+ ]
+ ]
+ },
+ {
+ "id": "b78b409a.a2d53",
+ "type": "record",
+ "name": "record",
+ "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.FileRecorder\">\n<parameter name=\"file\" value=\"/opt/opendaylight/current/data/log/instantiateRANSlice.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"Successfully Updated gNBCUUP info in ConfigDB\"/>",
+ "comments": "",
+ "outputs": 1,
+ "x": 4398.520805358887,
+ "y": 5476.541605949402,
+ "z": "3782c339.10eaec",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "415d1fe4.50d4",
+ "type": "returnFailure",
+ "name": "return failure",
+ "xml": "<return status='failure'>\n<parameter name='ack-final' value='Y'/>\n<parameter name='error-code' value='500'/>\n<parameter name='error-message' value='Error updating CUUP info in ConfigDB. Aborting RPC executiopn'/>",
+ "comments": "",
+ "x": 4417.520839691162,
+ "y": 5436.541606903076,
+ "z": "3782c339.10eaec",
+ "wires": []
+ },
+ {
+ "id": "e95eff1.7901f",
+ "type": "set",
+ "name": "set",
+ "xml": "<set>\n<parameter name='error-code' value='500'/>\n<parameter name='error-message' value='Error updating configCUUP info in ConfigDB. Aborting RPC executiopn'/>",
+ "comments": "",
+ "x": 4340.520900726318,
+ "y": 5310.6531620025635,
+ "z": "3782c339.10eaec",
+ "wires": []
+ },
+ {
+ "id": "62b5445b.98720c",
+ "type": "set",
+ "name": "set",
+ "xml": "<set>\n<parameter name='error-code' value='500'/>\n<parameter name='error-message' value='Error updating RRMPolicy CUUP info in ConfigDB. Aborting RPC executiopn'/>",
+ "comments": "",
+ "x": 4394.490531921387,
+ "y": 5524.010519981384,
+ "z": "3782c339.10eaec",
+ "wires": []
+ },
+ {
+ "id": "8533c5d2.a17d18",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 4337.489551544189,
+ "y": 5586.899681091309,
+ "z": "3782c339.10eaec",
+ "wires": [
+ [
+ "3d961bb4.e43d94",
+ "62b5445b.98720c",
+ "b8fa2a3a.504528"
+ ]
+ ]
+ },
+ {
+ "id": "3d961bb4.e43d94",
+ "type": "returnFailure",
+ "name": "return failure",
+ "xml": "<return status='failure'>\n<parameter name='ack-final' value='Y'/>\n<parameter name='error-code' value='500'/>\n<parameter name='error-message' value='Error updating RRMPolicy CUUP info in ConfigDB. Aborting RPC executiopn'/>",
+ "comments": "",
+ "x": 4458.490207672119,
+ "y": 5650.899032592773,
+ "z": "3782c339.10eaec",
+ "wires": []
+ },
+ {
+ "id": "bd717e0b.ec86e",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 3884.490036010742,
+ "y": 5531.898375511169,
+ "z": "3782c339.10eaec",
+ "wires": [
+ [
+ "e4fa71e.42b649"
+ ]
+ ]
+ },
+ {
+ "id": "e4fa71e.42b649",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 3854.490436553955,
+ "y": 5620.899682998657,
+ "z": "3782c339.10eaec",
+ "wires": [
+ [
+ "a59ae82d.a33658",
+ "2005154.a896eea"
+ ]
+ ]
+ },
+ {
+ "id": "a59ae82d.a33658",
+ "type": "record",
+ "name": "record",
+ "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.FileRecorder\">\n<parameter name=\"file\" value=\"/opt/opendaylight/current/data/log/instantiateRANSlice.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"Successfully Updated RRMPolicy CUUP info in ConfigDB\"/>",
+ "comments": "",
+ "outputs": 1,
+ "x": 4010.4904403686523,
+ "y": 5655.899684906006,
+ "z": "3782c339.10eaec",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "2005154.a896eea",
+ "type": "set",
+ "name": "Increment RRMPolicyID",
+ "xml": "<set>\n<parameter name='prop.configDB.rrmPolicyID' value='`$prop.configDB.rrmPolicyID + 1`' />",
+ "comments": "",
+ "x": 4061.7228660583496,
+ "y": 5585.464785575867,
+ "z": "3782c339.10eaec",
+ "wires": []
+ },
+ {
+ "id": "a572f5c.9134a08",
+ "type": "execute",
+ "name": "Update RRMPolicy for gNBCUCP in ConfigDB",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"restapiUrl\" value=\"`$prop.configdb.url + $prop.restapi.configdb.updateRRMPolicy`\"/>\n<parameter name=\"templateFileName\" value=\"`$prop.restapi.templateDir + '/ranSlice-configDB-updateRRMPolicy-CUUP.json'`\" />\n<parameter name=\"httpMethod\" value=\"PUT\"/>\n<parameter name=\"responsePrefix\" value=\"update-gNBCUUP-rrmpolicy-configdb-response\"/>\n<parameter name='contentType' value='application/json' /> \n<parameter name='format' value='json' />\n<parameter name='accept' value='application/json' />\n<parameter name=\"convertResponse\" value=\"true\"/>",
+ "comments": "",
+ "outputs": 1,
+ "x": 2902.490077972412,
+ "y": 5499.0103549957275,
+ "z": "3782c339.10eaec",
+ "wires": [
+ [
+ "bd717e0b.ec86e",
+ "ea30d9c4.e516e8"
+ ]
+ ]
+ },
+ {
+ "id": "ea30d9c4.e516e8",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 3889.656337738037,
+ "y": 5468.343852996826,
+ "z": "3782c339.10eaec",
+ "wires": [
+ [
+ "8533c5d2.a17d18"
+ ]
+ ]
+ },
+ {
+ "id": "f2fd9e25.4133c",
+ "type": "block",
+ "name": "block : SO Response",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 2745.32368850708,
+ "y": 7002.678178787231,
+ "z": "3782c339.10eaec",
+ "wires": [
+ [
+ "f02bedd1.dd20e",
+ "9bf49932.a9e288",
+ "cae55542.a94378"
+ ]
+ ]
+ },
+ {
+ "id": "f02bedd1.dd20e",
+ "type": "set",
+ "name": "set tmp variables for SO response",
+ "xml": "<set>\n<parameter name=\"tmp.so.callbackURL\" value=\"`$payloadJson.input.callbackURL`\"/>\n<parameter name=\"tmp.status\" value=\"`$error-code`\"/>\n<parameter name=\"tmp.reason\" value=\"`$error-message`\"/>\n<parameter name=\"tmp.requestID\" value=\"`$instantiateRANSlice-input.common-header.request-id`\"/>\n<parameter name=\"tmp.action\" value=\"`$instantiateRANSlice-input.action`\"/>\n",
+ "comments": "",
+ "x": 2968.3245162963867,
+ "y": 6859.577959060669,
+ "z": "3782c339.10eaec",
+ "wires": []
+ },
+ {
+ "id": "9bf49932.a9e288",
+ "type": "record",
+ "name": "record configdb RestAPI parms",
+ "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.FileRecorder\">\n<parameter name=\"file\" value=\"/opt/opendaylight/current/data/log/so-callback-response.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"URL for SO Callback Response\"/>\n<parameter name='field2' value=\"`$tmp.so.callbackURL`\" />\n<parameter name='field3' value=\"`$tmp.status`\" />\n<parameter name='field4' value=\"`$tmp.reason`\" />\n<parameter name='field5' value=\"`$tmp.requestID`\" />\n<parameter name='field6' value=\"`$tmp.action`\" />\n<parameter name='field7' value=\"`$tmp.CUCPList`\" />\n<parameter name='field8' value=\"`$tmp.CUUPList`\" />\n<parameter name='field9' value=\"`$tmp.DUList`\" />",
+ "comments": "",
+ "outputs": 1,
+ "x": 3018.3240280151367,
+ "y": 6927.678789138794,
+ "z": "3782c339.10eaec",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "cae55542.a94378",
+ "type": "execute",
+ "name": "Send to SO",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"templateFileName\" value=\"`$prop.restapi.templateDir + '/ranSlice-so-response.json'`\" />\n<parameter name=\"restapiUrl\" value=\"`$tmp.so.callbackURL`\"/>\n<parameter name=\"httpMethod\" value=\"POST\"/>\n<parameter name=\"responsePrefix\" value=\"so-callback-response\"/>\n<parameter name='contentType' value='application/json' /> \n<parameter name='format' value='json' />\n<parameter name='accept' value='application/json' />",
+ "comments": "",
+ "outputs": 1,
+ "x": 2858.323600769043,
+ "y": 7113.678300857544,
+ "z": "3782c339.10eaec",
+ "wires": [
+ [
+ "d3c50305.d60a9",
+ "eb79f1e4.c7dc1"
+ ]
+ ]
+ },
+ {
+ "id": "d3c50305.d60a9",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2991.3240280151367,
+ "y": 7024.678544998169,
+ "z": "3782c339.10eaec",
+ "wires": [
+ [
+ "430fca3c.f540f4"
+ ]
+ ]
+ },
+ {
+ "id": "eb79f1e4.c7dc1",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2903.323905944824,
+ "y": 7232.678422927856,
+ "z": "3782c339.10eaec",
+ "wires": [
+ [
+ "b66a3d1d.f73cf"
+ ]
+ ]
+ },
+ {
+ "id": "b66a3d1d.f73cf",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 3040.3237838745117,
+ "y": 7178.678789138794,
+ "z": "3782c339.10eaec",
+ "wires": [
+ [
+ "90ed8d94.e91ca"
+ ]
+ ]
+ },
+ {
+ "id": "430fca3c.f540f4",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 3069.3239669799805,
+ "y": 7096.679033279419,
+ "z": "3782c339.10eaec",
+ "wires": [
+ [
+ "19df6fda.5be54"
+ ]
+ ]
+ },
+ {
+ "id": "19df6fda.5be54",
+ "type": "returnFailure",
+ "name": "return failure",
+ "xml": "<return status='failure'>\n<parameter name='ack-final' value='Y'/>\n<parameter name=\"error-code\" value=\"500\" />\n<parameter name=\"error-message\" value=\"Error sending SO Response\" />",
+ "comments": "",
+ "x": 3172.3232955932617,
+ "y": 7018.678789138794,
+ "z": "3782c339.10eaec",
+ "wires": []
+ },
+ {
+ "id": "90ed8d94.e91ca",
+ "type": "record",
+ "name": "record",
+ "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.FileRecorder\">\n<parameter name=\"file\" value=\"/opt/opendaylight/current/data/log/instantiateRANSlice.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"SO Response Sent \"/>",
+ "comments": "",
+ "outputs": 1,
+ "x": 3132.3239669799805,
+ "y": 7256.678300857544,
+ "z": "3782c339.10eaec",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "864ccc1f.7689",
+ "type": "execute",
+ "name": "Update gNBDU in ConfigDB",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"restapiUrl\" value=\"`$prop.configdb.url + $prop.restapi.configdb.updategNBDU`\"/>\n<parameter name=\"templateFileName\" value=\"`$prop.restapi.templateDir + '/ranSlice-configDB-updategNBDU.json'`\" />\n<parameter name=\"httpMethod\" value=\"PUT\"/>\n<parameter name=\"responsePrefix\" value=\"update-gNBDU-configdb-response\"/>\n<parameter name='contentType' value='application/json' /> \n<parameter name='format' value='json' />\n<parameter name='accept' value='application/json' />\n<parameter name=\"convertResponse\" value=\"true\"/>",
+ "comments": "",
+ "outputs": 1,
+ "x": 2533.323314666748,
+ "y": 6098.011676311493,
+ "z": "3782c339.10eaec",
+ "wires": [
+ [
+ "244b4266.afc5ee",
+ "3e7a0939.bd3286"
+ ]
+ ]
+ },
+ {
+ "id": "244b4266.afc5ee",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2574.3232421875,
+ "y": 6218.012006759644,
+ "z": "3782c339.10eaec",
+ "wires": [
+ [
+ "8551cb3f.3bc918"
+ ]
+ ]
+ },
+ {
+ "id": "3e7a0939.bd3286",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2787.3234214782715,
+ "y": 6108.01263999939,
+ "z": "3782c339.10eaec",
+ "wires": [
+ [
+ "1b4a1141.a7d3cf"
+ ]
+ ]
+ },
+ {
+ "id": "8551cb3f.3bc918",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 2718.3229179382324,
+ "y": 6239.012008190155,
+ "z": "3782c339.10eaec",
+ "wires": [
+ [
+ "80208598.5f50e8",
+ "9e024e9d.b1537",
+ "f2fd9e25.4133c"
+ ]
+ ]
+ },
+ {
+ "id": "1b4a1141.a7d3cf",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 2851.323055267334,
+ "y": 6180.011297225952,
+ "z": "3782c339.10eaec",
+ "wires": [
+ [
+ "5085099d.ecb4c8"
+ ]
+ ]
+ },
+ {
+ "id": "5085099d.ecb4c8",
+ "type": "record",
+ "name": "record",
+ "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.FileRecorder\">\n<parameter name=\"file\" value=\"/opt/opendaylight/current/data/log/instantiateRANSlice.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"Successfully Updated gNBCUUP info in ConfigDB\"/>",
+ "comments": "",
+ "outputs": 1,
+ "x": 2991.322811126709,
+ "y": 6157.009954452515,
+ "z": "3782c339.10eaec",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "80208598.5f50e8",
+ "type": "returnFailure",
+ "name": "return failure",
+ "xml": "<return status='failure'>\n<parameter name='ack-final' value='Y'/>\n<parameter name='error-code' value='500'/>\n<parameter name='error-message' value='Error updating CUUP info in ConfigDB. Aborting RPC executiopn'/>",
+ "comments": "",
+ "x": 2674.322593688965,
+ "y": 6352.011360406876,
+ "z": "3782c339.10eaec",
+ "wires": []
+ },
+ {
+ "id": "9e024e9d.b1537",
+ "type": "set",
+ "name": "set",
+ "xml": "<set>\n<parameter name='error-code' value='500'/>\n<parameter name='error-message' value='Error updating configCUUP info in ConfigDB. Aborting RPC executiopn'/>",
+ "comments": "",
+ "x": 2958.32275390625,
+ "y": 6238.122625350952,
+ "z": "3782c339.10eaec",
+ "wires": []
+ },
+ {
+ "id": "49fe90b0.6eaa9",
+ "type": "set",
+ "name": "set",
+ "xml": "<set>\n<parameter name='error-code' value='500'/>\n<parameter name='error-message' value='Error updating RRMPolicy DU info in ConfigDB. Aborting RPC executiopn'/>",
+ "comments": "",
+ "x": 2636.2926445007324,
+ "y": 6559.480766296387,
+ "z": "3782c339.10eaec",
+ "wires": []
+ },
+ {
+ "id": "d3762e09.41c17",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 2527.291666030884,
+ "y": 6697.368790626526,
+ "z": "3782c339.10eaec",
+ "wires": [
+ [
+ "f2244cd1.6759b",
+ "49fe90b0.6eaa9",
+ "f2fd9e25.4133c"
+ ]
+ ]
+ },
+ {
+ "id": "f2244cd1.6759b",
+ "type": "returnFailure",
+ "name": "return failure",
+ "xml": "<return status='failure'>\n<parameter name='ack-final' value='Y'/>\n<parameter name='error-code' value='500'/>\n<parameter name='error-message' value='Error updating RRMPolicy DU info in ConfigDB. Aborting RPC executiopn'/>",
+ "comments": "",
+ "x": 2476.2923164367676,
+ "y": 6842.368793487549,
+ "z": "3782c339.10eaec",
+ "wires": []
+ },
+ {
+ "id": "1d7dcc79.41fe94",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2270.292308807373,
+ "y": 6480.367482185364,
+ "z": "3782c339.10eaec",
+ "wires": [
+ [
+ "64aa8f18.82459"
+ ]
+ ]
+ },
+ {
+ "id": "64aa8f18.82459",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 2402.2929611206055,
+ "y": 6530.36878490448,
+ "z": "3782c339.10eaec",
+ "wires": [
+ [
+ "f3d0cf14.1b904",
+ "aa097a7b.3cda78"
+ ]
+ ]
+ },
+ {
+ "id": "f3d0cf14.1b904",
+ "type": "record",
+ "name": "record",
+ "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.FileRecorder\">\n<parameter name=\"file\" value=\"/opt/opendaylight/current/data/log/instantiateRANSlice.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"Successfully Updated RRMPolicy DU info in ConfigDB\"/>",
+ "comments": "",
+ "outputs": 1,
+ "x": 2472.2932891845703,
+ "y": 6620.368787765503,
+ "z": "3782c339.10eaec",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "aa097a7b.3cda78",
+ "type": "set",
+ "name": "Increment RRMPolicyID",
+ "xml": "<set>\n<parameter name='prop.configDB.rrmPolicyID' value='`$prop.configDB.rrmPolicyID + 1`' />",
+ "comments": "",
+ "x": 2493.525058746338,
+ "y": 6394.9338846206665,
+ "z": "3782c339.10eaec",
+ "wires": []
+ },
+ {
+ "id": "862bddc0.5e5c4",
+ "type": "execute",
+ "name": "Update RRMPolicy for gNBDU in ConfigDB",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"restapiUrl\" value=\"`$prop.configdb.url + $prop.restapi.configdb.updateRRMPolicy`\"/>\n<parameter name=\"templateFileName\" value=\"`$prop.restapi.templateDir + '/ranSlice-configDB-updateRRMPolicy-DU.json'`\" />\n<parameter name=\"httpMethod\" value=\"PUT\"/>\n<parameter name=\"responsePrefix\" value=\"update-DU-rrmpolicy-configdb-response\"/>\n<parameter name='contentType' value='application/json' /> \n<parameter name='format' value='json' />\n<parameter name='accept' value='application/json' />\n<parameter name=\"convertResponse\" value=\"true\"/>",
+ "comments": "",
+ "outputs": 1,
+ "x": 2166.2921562194824,
+ "y": 6606.479464530945,
+ "z": "3782c339.10eaec",
+ "wires": [
+ [
+ "1d7dcc79.41fe94",
+ "40e682da.477fcc"
+ ]
+ ]
+ },
+ {
+ "id": "40e682da.477fcc",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2351.4583282470703,
+ "y": 6752.81280040741,
+ "z": "3782c339.10eaec",
+ "wires": [
+ [
+ "d3762e09.41c17"
+ ]
+ ]
+ },
+ {
+ "id": "67d51f42.c8718",
+ "type": "for",
+ "name": "For cellCU List",
+ "xml": "<for index='idCell' start='0' end='`$tmp.cellCUListEntries `' >",
+ "comments": "",
+ "outputs": 1,
+ "x": 2606.989677429199,
+ "y": 2401.01038312912,
+ "z": "3782c339.10eaec",
+ "wires": [
+ [
+ "eb0b9b91.860278"
+ ]
+ ]
+ },
+ {
+ "id": "90c97b70.652168",
+ "type": "execute",
+ "name": "gNBCUCPList.gNBCUName",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'>\n\t<parameter name='outputPath' value='tmp.gNBCUCPList.cellLocalId' />\n\t<parameter name='source' value=\"`'getRIC-configdb-response.[' + $id1 + '].gNBCUCPList[' + $id2 + '].cellCUList[' + $idCell + '].cellLocalId'`\" />",
+ "comments": "",
+ "outputs": 1,
+ "x": 2811.9896507263184,
+ "y": 2167.010413169861,
+ "z": "3782c339.10eaec",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "6e5b0733.1fd658",
+ "type": "switchNode",
+ "name": "switch",
+ "xml": "<switch test=\"`$tmp.gNBCUCPList.cellLocalId == $tmp.cellLocalId`\"> \n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2770.9902305603027,
+ "y": 2503.01038646698,
+ "z": "3782c339.10eaec",
+ "wires": [
+ [
+ "175bcdd4.7c41e2"
+ ]
+ ]
+ },
+ {
+ "id": "175bcdd4.7c41e2",
+ "type": "outcomeTrue",
+ "name": "true",
+ "xml": "<outcome value='true'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2842.9902305603027,
+ "y": 2394.010355949402,
+ "z": "3782c339.10eaec",
+ "wires": [
+ [
+ "34e8c09c.9b853"
+ ]
+ ]
+ },
+ {
+ "id": "34e8c09c.9b853",
+ "type": "block",
+ "name": "UpdateCell",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 2906.989860534668,
+ "y": 2260.0103521347046,
+ "z": "3782c339.10eaec",
+ "wires": [
+ [
+ "3bce4f59.1d2eb",
+ "7114e629.77e9f8",
+ "2141ee1e.d6b4b2",
+ "5b90deb5.d3673",
+ "5d5aa187.76c5a",
+ "1d9a2d94.d985b2"
+ ]
+ ]
+ },
+ {
+ "id": "eb0b9b91.860278",
+ "type": "block",
+ "name": "Block",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 2652.989616394043,
+ "y": 2299.010413169861,
+ "z": "3782c339.10eaec",
+ "wires": [
+ [
+ "90c97b70.652168",
+ "6e5b0733.1fd658"
+ ]
+ ]
+ },
+ {
+ "id": "c047063f.881ee8",
+ "type": "for",
+ "name": "For cellDU List",
+ "xml": "<for index='idCell' start='0' end='`$tmp.cellDUListEntries`' >",
+ "comments": "",
+ "outputs": 1,
+ "x": 3397.2440147399902,
+ "y": 6276.015817642212,
+ "z": "3782c339.10eaec",
+ "wires": [
+ [
+ "2c82904f.90ab4"
+ ]
+ ]
+ },
+ {
+ "id": "c2f0a43f.5ddd68",
+ "type": "execute",
+ "name": "gNBDUList.cellLocalId",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'>\n\t<parameter name='outputPath' value='tmp.gNBDUList.cellLocalId' />\n\t<parameter name='source' value=\"`'getRIC-configdb-response.[' + $id1 + '].gNBDUList[' + $id2 + '].cellDUList[' + $idCell + '].cellLocalId'`\" />",
+ "comments": "",
+ "outputs": 1,
+ "x": 3317.2440147399902,
+ "y": 6432.014719009399,
+ "z": "3782c339.10eaec",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "532d1e38.24cd6",
+ "type": "switchNode",
+ "name": "switch",
+ "xml": "<switch test=\"`$tmp.gNBDUList.cellLocalId == $tmp.cellLocalId`\">",
+ "comments": "",
+ "outputs": 1,
+ "x": 3144.243953704834,
+ "y": 6580.014226913452,
+ "z": "3782c339.10eaec",
+ "wires": [
+ [
+ "62a7f7e7.916228"
+ ]
+ ]
+ },
+ {
+ "id": "62a7f7e7.916228",
+ "type": "outcomeTrue",
+ "name": "true",
+ "xml": "<outcome value='true'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 3233.243953704834,
+ "y": 6669.014348983765,
+ "z": "3782c339.10eaec",
+ "wires": [
+ [
+ "697bf4b2.788f7c"
+ ]
+ ]
+ },
+ {
+ "id": "697bf4b2.788f7c",
+ "type": "block",
+ "name": "UpdateCell",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 3345.2441329956055,
+ "y": 6517.014600753784,
+ "z": "3782c339.10eaec",
+ "wires": [
+ [
+ "f128051e.58f4d8",
+ "723405eb.74705c"
+ ]
+ ]
+ },
+ {
+ "id": "2c82904f.90ab4",
+ "type": "block",
+ "name": "Block",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 3100.243434906006,
+ "y": 6456.014293193817,
+ "z": "3782c339.10eaec",
+ "wires": [
+ [
+ "c2f0a43f.5ddd68",
+ "532d1e38.24cd6"
+ ]
+ ]
+ },
+ {
+ "id": "f6cf0566.75b7c8",
+ "type": "block",
+ "name": "rrmPolicyRatioPerCELLCU",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 2352.989589691162,
+ "y": 2051.010356903076,
+ "z": "3782c339.10eaec",
+ "wires": [
+ [
+ "60107b63.4c1e24",
+ "278901fc.626a8e"
+ ]
+ ]
+ },
+ {
+ "id": "278901fc.626a8e",
+ "type": "record",
+ "name": "record",
+ "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.FileRecorder\">\n<parameter name=\"file\" value=\"/opt/opendaylight/current/data/log/instantiateRANSlice.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"rRMPolicyDedicatedRatio for CellCU \"/>\n<parameter name=\"field2\" value=\"`$tmp.rRMPolicyDedicatedRatio.CellCU`\"/>",
+ "comments": "",
+ "outputs": 1,
+ "x": 2561.989345550537,
+ "y": 2098.454936981201,
+ "z": "3782c339.10eaec",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "60107b63.4c1e24",
+ "type": "set",
+ "name": "calculation",
+ "xml": "<set>\n<parameter name='tmp.maxNumberOfConnsPercellCU' value='`$tmp.maxNumberOfConns / $tmp.cellCUListEntries`' />\n<parameter name='tmp.rRMPolicyDedicatedRatio.CellCU1' value='`$tmp.maxNumberOfConnsPercellCU * 100`' />\n<parameter name='tmp.rRMPolicyDedicatedRatio.CellCU' value='`$tmp.rRMPolicyDedicatedRatio.CellCU1 / $prop.nrcellcu.maxNumberOfConnsPerCell`' />",
+ "comments": "",
+ "x": 2556.989833831787,
+ "y": 2034.7883110046387,
+ "z": "3782c339.10eaec",
+ "wires": []
+ },
+ {
+ "id": "a81cebdf.634838",
+ "type": "set",
+ "name": "Calculate for RRM",
+ "xml": "<set>\n<parameter name='tmp.maxNumberOfConns' value='`$payloadJson.input.sliceProfile.maxNumberOfConns * 1.1`' />\n<parameter name='tmp.TotalNumberOfDRBForNSSAI' value='`$tmp.maxNumberOfConns * .6`' />\n<parameter name='tmp.DRBPerCUUPForSNSSAI' value='`$tmp.TotalNumberOfDRBForNSSAI / $tmp.CUUPListEntries`' />",
+ "comments": "",
+ "x": 3232.989589691162,
+ "y": 3485.010356903076,
+ "z": "3782c339.10eaec",
+ "wires": []
+ },
+ {
+ "id": "e5dbe85b.c85da8",
+ "type": "set",
+ "name": "Calculate RRM Parms",
+ "xml": "<set>\n<parameter name='tmp.uLThptPerSlice' value='`$payloadJson.input.sliceProfile.uLThptPerSlice * 1.1`' />\n<parameter name='tmp.dLThptPerSlice' value='`$payloadJson.input.sliceProfile.dLThptPerSlice * 1.1`' />\n<parameter name='tmp.maxNumberOfConns' value='`$payloadJson.input.sliceProfile.maxNumberOfConns * 1.1`' />\n<parameter name='tmp.nearRTRIC.trafficCapacity1' value='`$tmp.uLThptPerSlice + $tmp.dLThptPerSlice`' />\n<parameter name='tmp.nearRTRIC.trafficCapacity' value='`$tmp.nearRTRIC.trafficCapacity1 / 2`' />\n<parameter name='tmp.nearRTRIC.trafficCapacityBPS' value='`$tmp.nearRTRIC.trafficCapacity * 1000000`' />\n<parameter name='tmp.nrcelldu.totalPRBForSNSSAI' value='`$tmp.nearRTRIC.trafficCapacityBPS / 1008000`' />\n",
+ "comments": "",
+ "x": 3346.989589691162,
+ "y": 5784.010356903076,
+ "z": "3782c339.10eaec",
+ "wires": []
+ },
+ {
+ "id": "8305619e.01842",
+ "type": "set",
+ "name": "calculation",
+ "xml": "<set>\n<parameter name='tmp.nrcelldu.PRBPerImpactedCell' value='`$tmp.nrcelldu.totalPRBForSNSSAI / $tmp.DUListEntries`' />\n<parameter name='tmp.rRMPolicyDedicatedRatio.CellDU1' value='`$tmp.nrcelldu.PRBPerImpactedCell * 100`' />\n<parameter name='tmp.rRMPolicyDedicatedRatio.CellDU' value='`$tmp.rRMPolicyDedicatedRatio.CellDU1 / $prop.nrcelldu.TotalPRBsPerCell`' />\n",
+ "comments": "",
+ "x": 3548.989589691162,
+ "y": 5844.010356903076,
+ "z": "3782c339.10eaec",
+ "wires": []
+ },
+ {
+ "id": "2282fbe8.5756e4",
+ "type": "set",
+ "name": "set",
+ "xml": "<set>\n<parameter name='error-code' value='500'/>\n<parameter name='error-message' value='Error sending SO response. Aborting RPC executiopn'/>",
+ "comments": "",
+ "x": 1157.00390625,
+ "y": 940.00390625,
+ "z": "3782c339.10eaec",
+ "wires": []
+ }
+]
diff --git a/platform-logic/ran-slice-api/src/main/resources/graph.versions b/platform-logic/ran-slice-api/src/main/resources/graph.versions
index e22a179b..6ed4d08f 100644
--- a/platform-logic/ran-slice-api/src/main/resources/graph.versions
+++ b/platform-logic/ran-slice-api/src/main/resources/graph.versions
@@ -1,5 +1,6 @@
ran-slice-api configureNearRTRIC ${project.version} sync
ran-slice-api instantiateRANSlice ${project.version} sync
+ran-slice-api instantiateRANSliceAllocate ${project.version} sync
ran-slice-api configureRANSliceInstance ${project.version} sync
ran-slice-api configureCU ${project.version} sync
ran-slice-api configureDU ${project.version} sync
diff --git a/platform-logic/ran-slice-api/src/main/xml/ran-slice-api_instantiateRANSlice.xml b/platform-logic/ran-slice-api/src/main/xml/ran-slice-api_instantiateRANSlice.xml
index f5187e8f..8c7915d6 100644
--- a/platform-logic/ran-slice-api/src/main/xml/ran-slice-api_instantiateRANSlice.xml
+++ b/platform-logic/ran-slice-api/src/main/xml/ran-slice-api_instantiateRANSlice.xml
@@ -15,8 +15,8 @@
<parameter name="field7" value="`$instantiate-r-a-n-slice-input.payload`"/>
</record>
<set>
- <parameter name='code' value='200' />
- <parameter name='message' value='Successful execution of createPolicyInstance RPC' />
+ <parameter name='error-code' value='200' />
+ <parameter name='error-message' value='Successful execution of instantiateRANSice RPC' />
</set>
<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='jsonStringToCtx'>
<parameter name='source' value='instantiate-r-a-n-slice-input.payload' />
@@ -84,6 +84,15 @@
<parameter name='tmp.payload.uLThptPerSlice' value='`$payloadJson.input.sliceProfile.uLThptPerSlice`'/>
<parameter name='tmp.payload.pLMNId' value='`$payloadJson.input.sliceProfile.pLMNIdList[0]`'/>
</set>
+ <set>
+ <parameter name='tmp.RRMPolicyRatioID.NearRTRIC' value="`'NearRTRIC-' + $payloadJson.input.sliceProfile.sliceProfileId + '-' + $payloadJson.input.sliceProfile.coverageAreaList[0]`" />
+ <parameter name='tmp.RRMPolicyRatioID.GNBDUFunction' value="`'GNBDUFunction-' + $payloadJson.input.sliceProfile.sliceProfileId + '-' + $payloadJson.input.sliceProfile.coverageAreaList[0]`" />
+ <parameter name='tmp.RRMPolicyRatioID.NRCellDU' value="`'NRCellDU-' + $payloadJson.input.sliceProfile.sliceProfileId + '-' + $payloadJson.input.sliceProfile.coverageAreaList[0]`" />
+ <parameter name='tmp.RRMPolicyRatioID.GNBCUUPFunction' value="`'GNBCUUPFunction-' + $payloadJson.input.sliceProfile.sliceProfileId + '-' + $payloadJson.input.sliceProfile.coverageAreaList[0]`" />
+ <parameter name='tmp.RRMPolicyRatioID.GNBCUCPFunction' value="`'GNBCUCPFunction-' + $payloadJson.input.sliceProfile.sliceProfileId + '-' + $payloadJson.input.sliceProfile.coverageAreaList[0]`" />
+ <parameter name='tmp.RRMPolicyRatioID.NRCellCU' value="`'NRCellCU-' + $payloadJson.input.sliceProfile.sliceProfileId + '-' + $payloadJson.input.sliceProfile.coverageAreaList[0]`" />
+ <parameter name='prop.ranNetwork.RRMPolicyRatioMemberID' value='`$prop.ranNetwork.RRMPolicyRatioMemberID + 1`' />
+ </set>
<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='substring'>
<parameter name="string" value="`$tmp.payload.pLMNId`" />
<parameter name="result" value="tmp.mcc"/>
@@ -105,1054 +114,57 @@
<switch test='`$prop.configdb-deployed`'>
<outcome value='true'>
<block atomic='true'>
- <block atomic='true'>
- <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >
- <parameter name="source" value="`$prop.restapi.configdb.getNearRTRICsFromTrackingArea`"/>
- <parameter name="outputPath" value="tmp.configdb.getNearRTRICsFromTrackingArea.url"/>
- <parameter name="target" value="{trackingArea}"/>
- <parameter name="replacement" value="`$tmp.payload.trackingArea`"/>
- </execute>
- <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
- <parameter name="file" value="/opt/opendaylight/current/data/log/instantiateRANSlice.log" />
- <parameter name="level" value="info" />
- <parameter name="field1" value="URL for configDB Get NearRTRIC for tracking area"/>
- <parameter name='field2' value="`$prop.configdb.url + $tmp.configdb.getNearRTRICsFromTrackingArea.url`" />
- <parameter name='field3' value="`$tmp.payload.trackingArea`" />
- </record>
- <execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >
- <parameter name="restapiUrl" value="`$prop.configdb.url + $tmp.configdb.getNearRTRICsFromTrackingArea.url`"/>
- <parameter name="httpMethod" value="GET"/>
- <parameter name="responsePrefix" value="getRIC-configdb-response"/>
- <parameter name='contentType' value='application/json' />
- <parameter name='format' value='json' />
- <parameter name='accept' value='application/json' />
- <outcome value='failure'>
- <block>
- <set>
- <parameter name='code' value='500'/>
- <parameter name='message' value='Error Getting Info from ConfigDB. Aborting RPC executiopn'/>
- </set>
- <return status='failure'>
- <parameter name='ack-final' value='Y'/>
- <parameter name='code' value='500'/>
- <parameter name='message' value='Error Getting Info from ConfigDB. Aborting RPC executiopn'/>
- </return>
- </block>
- </outcome>
- <outcome value='success'>
- <block>
- <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
- <parameter name="file" value="/opt/opendaylight/current/data/log/instantiateRANSlice.log" />
- <parameter name="level" value="info" />
- <parameter name="field1" value="Successfully Obtained NearRT RIC info from ConfigDB"/>
- <parameter name="field2" value="`$getRIC-configdb-response._length`"/>
- <parameter name="field3" value="`$getRIC-configdb-response.[0].gNBCUCPList_length`"/>
- <parameter name="field4" value="`$getRIC-configdb-response.[0].gNBCUUPList_length`"/>
- <parameter name="field5" value="`$getRIC-configdb-response.[0].gNBDUList_length`"/>
- </record>
- <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='printContext' >
- <parameter name='filename' value='/opt/opendaylight/current/data/log/ranSlice-instantiateRANSlice-configrsp-context.log' />
- </execute>
- </block>
- </outcome>
- </execute>
- </block>
- <block atomic='true'>
- <block atomic='true'>
- <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >
- <parameter name="source" value="`$prop.restapi.configdb.getListOfCells`"/>
- <parameter name="outputPath" value="tmp.configdb.getListOfCells.url"/>
- <parameter name="target" value="{trackingArea}"/>
- <parameter name="replacement" value="`$tmp.payload.trackingArea`"/>
- </execute>
- <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
- <parameter name="file" value="/opt/opendaylight/current/data/log/instantiateRANSlice.log" />
- <parameter name="level" value="info" />
- <parameter name="field1" value="URL for configDB Get getListOfCells for tracking area"/>
- <parameter name='field2' value="`$prop.configdb.url + $tmp.configdb.getListOfCells.url`" />
- <parameter name='field3' value="`$tmp.payload.trackingArea`" />
- </record>
- <execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >
- <parameter name="restapiUrl" value="`$prop.configdb.url + $tmp.configdb.getListOfCells.url`"/>
- <parameter name="httpMethod" value="GET"/>
- <parameter name="responsePrefix" value="getListofCells-configdb-response"/>
- <parameter name='contentType' value='application/json' />
- <parameter name='format' value='json' />
- <parameter name='accept' value='application/json' />
- <outcome value='failure'>
- <block>
- <set>
- <parameter name='code' value='500'/>
- <parameter name='message' value='Error Getting Info from ConfigDB. Aborting RPC executiopn'/>
- </set>
+ <switch test='`$instantiate-r-a-n-slice-input.action`'>
+ <outcome value='allocate'>
+ <block atomic="true">
+ <call module='GENERIC-RESOURCE-API' rpc='instantiateRANSliceAllocate' mode='sync' >
+ <outcome value='failure'>
<return status='failure'>
- <parameter name='ack-final' value='Y'/>
- <parameter name='code' value='500'/>
- <parameter name='message' value='Error Getting Info from ConfigDB. Aborting RPC executiopn'/>
+ <parameter name='ack-final' value='Y' />
</return>
- </block>
- </outcome>
- <outcome value='success'>
- <block>
- <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
- <parameter name="file" value="/opt/opendaylight/current/data/log/instantiateRANSlice.log" />
- <parameter name="level" value="info" />
- <parameter name="field1" value="Successfully Obtained List of Cells from ConfigDB"/>
- <parameter name="field2" value="`$getListofCells-configdb-response._length`"/>
- <parameter name="field3" value="List of Cells in the Tracking Area Relevant for RAN Slice Instantiation "/>
- </record>
- <for index='idx' start='0' end='`$getListofCells-configdb-response._length `' >
- <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'>
- <parameter name='outputPath' value='tmp.trackingarea.cell' />
- <parameter name='source' value="`'getListofCells-configdb-response.[' + $ids + ']'`" />
- </execute>
- <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
- <parameter name="file" value="/opt/opendaylight/current/data/log/instantiateRANSlice.log" />
- <parameter name="level" value="info" />
- <parameter name="field1" value="`$tmp.trackingarea.cell`"/>
- </record>
- </for>
- <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='printContext' >
- <parameter name='filename' value='/opt/opendaylight/current/data/log/ranSlice-instantiateRANSlice-configrsp-context.log' />
- </execute>
- </block>
- </outcome>
- </execute>
- </block>
- <for index='id1' start='0' end="`$getRIC-configdb-response._length`" >
- <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'>
- <parameter name='outputPath' value='tmp.nearRTRICId' />
- <parameter name='source' value="`'getRIC-configdb-response.[' + $id1 + '].nearRTRICId'`" />
- </execute>
- <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
- <parameter name="file" value="/opt/opendaylight/current/data/log/instantiateRANSlice.log" />
- <parameter name="level" value="info" />
- <parameter name="field1" value="Config Payload Entry# "/>
- <parameter name="field2" value="`$id1`"/>
- <parameter name="field3" value="`$getRIC-configdb-response.[id1].nearRTRICId`"/>
- <parameter name="field4" value="`$getRIC-configdb-response.[id1].gNBId`"/>
- </record>
- <block atomic='true'>
- <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'>
- <parameter name='outputPath' value='tmp.CUCPListEntries' />
- <parameter name='source' value="`'getRIC-configdb-response.[' + $id1 + '].gNBCUCPList_length'`" />
- </execute>
- <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
- <parameter name="file" value="/opt/opendaylight/current/data/log/instantiateRANSlice.log" />
- <parameter name="level" value="info" />
- <parameter name="field1" value="Number of CUCP List Entries "/>
- <parameter name="field2" value="`$tmp.CUCPListEntries`"/>
- </record>
- <block atomic='true'>
- <set>
- <parameter name='tmp.uLThptPerSlicePerCell' value='5' />
- </set>
- <switch test='`$tmp.uLThptPerSlicePerCell`'>
- <outcome value='5'>
- <set>
- <parameter name='tmp.rRMPolicyDedicatedRatio.CellCU' value='10' />
- </set>
- </outcome>
- <outcome value='10'>
- <set>
- <parameter name='tmp.rRMPolicyDedicatedRatio.CellCU' value='20' />
- </set>
- </outcome>
- </switch>
- <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
- <parameter name="file" value="/opt/opendaylight/current/data/log/instantiateRANSlice.log" />
- <parameter name="level" value="info" />
- <parameter name="field1" value="rRMPolicyDedicatedRatio for CellCU "/>
- <parameter name="field2" value="`$tmp.rRMPolicyDedicatedRatio.CellCU`"/>
- </record>
- </block>
- <set>
- <parameter name='tmp.uLThptPerSlice1' value='`$payloadJson.input.sliceProfile.uLThptPerSlice * 1.1`' />
- <parameter name='tmp.uLThptPerSlice' value='`$tmp.uLThptPerSlice1 / $getListofCells-configdb-response._length`' />
- <parameter name='tmp.dLThptPerSlice1' value='`$payloadJson.input.sliceProfile.dLThptPerSlice * 1.1`' />
- <parameter name='tmp.dLThptPerSlice' value='`$tmp.dLThptPerSlice1 / $getListofCells-configdb-response._length`' />
- <parameter name='tmp.maxNumberOfConns1' value='`$payloadJson.input.sliceProfile.maxNumberOfConns * 1.1`' />
- <parameter name='tmp.maxNumberOfConns' value='`$tmp.maxNumberOfConns1 / $getListofCells-configdb-response._length`' />
- </set>
- <for index='id2' start='0' end='`$tmp.CUCPListEntries`' >
- <block atomic='true'>
- <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'>
- <parameter name='outputPath' value='tmp.cellCUListEntries' />
- <parameter name='source' value="`'getRIC-configdb-response.[' + $id1 + '].gNBCUCPList[' + $id2 + '].cellCUList_length'`" />
- </execute>
- <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'>
- <parameter name='outputPath' value='tmp.gNBCUCPList.gNBCUName' />
- <parameter name='source' value="`'getRIC-configdb-response.[' + $id1 + '].gNBCUCPList[' + $id2 + '].gNBCUName'`" />
- </execute>
- <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'>
- <parameter name='outputPath' value='tmp.gNBCUCPList.gNBId' />
- <parameter name='source' value="`'getRIC-configdb-response.[' + $id1 + '].gNBCUCPList[' + $id2 + '].gNBId'`" />
- </execute>
- <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'>
- <parameter name='outputPath' value='tmp.gNBCUCPList.gNBIdLength' />
- <parameter name='source' value="`'getRIC-configdb-response.[' + $id1 + '].gNBCUCPList[' + $id2 + '].gNBIdLength'`" />
- </execute>
- <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'>
- <parameter name='outputPath' value='tmp.gNBCUCPList.nFType' />
- <parameter name='source' value="`'getRIC-configdb-response.[' + $id1 + '].gNBCUCPList[' + $id2 + '].nFType'`" />
- </execute>
- <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'>
- <parameter name='outputPath' value='tmp.gNBCUCPList.pLMNId' />
- <parameter name='source' value="`'getRIC-configdb-response.[' + $id1 + '].gNBCUCPList[' + $id2 + '].pLMNId'`" />
- </execute>
- </block>
- <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
- <parameter name="file" value="/opt/opendaylight/current/data/log/instantiateRANSlice.log" />
- <parameter name="level" value="info" />
- <parameter name="field1" value="Numberof cellCU of Entries "/>
- <parameter name="field2" value="`$tmp.cellCUListEntries`"/>
- <parameter name="field3" value="`$tmp.gNBCUCPList.gNBCUName`"/>
- <parameter name="field4" value="`$tmp.gNBCUCPList.gNBId`"/>
- <parameter name="field5" value="`$tmp.gNBCUCPList.gNBIdLengthh`"/>
- <parameter name="field6" value="`$tmp.gNBCUCPList.nFType`"/>
- <parameter name="field7" value="`$tmp.gNBCUCPList.pLMNId`"/>
- </record>
- <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
- <parameter name="file" value="/opt/opendaylight/current/data/log/instantiateRANSlice.log" />
- <parameter name="level" value="info" />
- <parameter name="field1" value="MCC "/>
- <parameter name="field2" value="`$tmp.mcc`"/>
- <parameter name="field3" value="MNC "/>
- <parameter name="field4" value="`$tmp.mnc`"/>
- <parameter name="field5" value="Calculated uLThptPerSlice "/>
- <parameter name="field6" value="`$tmp.uLThptPerSlice`"/>
- <parameter name="field7" value="Calculated dLThptPerSlice "/>
- <parameter name="field8" value="`$tmp.dLThptPerSlice`"/>
- <parameter name="field9" value="Calculated maxNumberOfConns "/>
- <parameter name="field10" value="`$tmp.maxNumberOfConns`"/>
- </record>
- <for index='id3' start='0' end='`$getListofCells-configdb-response._length `' >
- <block atomic='true'>
- <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'>
- <parameter name='outputPath' value='tmp.pLMNInfoListEntries' />
- <parameter name='source' value="`'getRIC-configdb-response.[' + $id1 + '].gNBCUCPList[' + $id2 + '].cellCUList[' + $id3 + '].pLMNInfoList_length'`" />
- </execute>
- </block>
- <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'>
- <parameter name='outputPath' value='tmp.cellLocalId' />
- <parameter name='source' value="`'getListofCells-configdb-response.[' + $id3 + ']'`" />
- </execute>
- <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
- <parameter name="file" value="/opt/opendaylight/current/data/log/instantiateRANSlice.log" />
- <parameter name="level" value="info" />
- <parameter name="field1" value="Numberof pLMNInfoList Entries "/>
- <parameter name="field2" value="`$tmp.pLMNInfoListEntries`"/>
- <parameter name="field3" value="cellLocalId from Relevant cells "/>
- <parameter name="field4" value="`$tmp.cellLocalId`"/>
- </record>
- <for index='id4' start='0' end='`$tmp.pLMNInfoListEntries`' >
- <block atomic='true'>
- <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'>
- <parameter name='outputPath' value='tmp.fromRAN.sNSSAI' />
- <parameter name='source' value="`'getRIC-configdb-response.[' + $id1 + '].gNBDUList[' + $id2 + '].cellDUList[' + $id3 + '].pLMNInfoList[' + $id4 + '].sNSSAI.sNSSAI'`" />
- </execute>
- <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
- <parameter name="file" value="/opt/opendaylight/current/data/log/instantiateRANSlice.log" />
- <parameter name="level" value="info" />
- <parameter name="field1" value="sNSSAI from RAN to check if already exists "/>
- <parameter name="field2" value="`$tmp.fromRAN.sNSSAI`"/>
- </record>
- </block>
- </for>
- <block atomic='true'>
- <switch test='`$prop.ransim-mounted`'>
- <outcome value='false'>
- <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >
- <parameter name="source" value="`$prop.restapi.addPLMNInfoListEntry.ToNRCellCU`"/>
- <parameter name="outputPath" value="tmp.addPLMNInfoListEntry.ToNRCellCU.url"/>
- <parameter name="target" value="{idNearRTRIC}"/>
- <parameter name="replacement" value="`$tmp.nearRTRICId`"/>
- </execute>
- </outcome>
- <outcome value='true'>
- <block atomic='true'>
- <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >
- <parameter name="source" value="`$prop.restapi.addPLMNInfoListEntry.ToNRCellCU.ransim-mounted`"/>
- <parameter name="outputPath" value="tmp.addPLMNInfoListEntry.ToNRCellCU.url"/>
- <parameter name="target" value="{idNearRTRIC}"/>
- <parameter name="replacement" value="`$tmp.nearRTRICId`"/>
- </execute>
- <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >
- <parameter name="source" value="`$tmp.addPLMNInfoListEntry.ToNRCellCU.url`"/>
- <parameter name="outputPath" value="tmp.addPLMNInfoListEntry.ToNRCellCU.url"/>
- <parameter name="target" value="{mountName}"/>
- <parameter name="replacement" value="`$tmp.gNBCUCPList.gNBCUName`"/>
- </execute>
- </block>
- </outcome>
- </switch>
- <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >
- <parameter name="source" value="`$tmp.addPLMNInfoListEntry.ToNRCellCU.url`"/>
- <parameter name="outputPath" value="tmp.addPLMNInfoListEntry.ToNRCellCU.url"/>
- <parameter name="target" value="{idGNBCUCPFunction}"/>
- <parameter name="replacement" value="`$tmp.gNBCUCPList.gNBCUName`"/>
- </execute>
- <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >
- <parameter name="source" value="`$tmp.addPLMNInfoListEntry.ToNRCellCU.url`"/>
- <parameter name="outputPath" value="tmp.addPLMNInfoListEntry.ToNRCellCU.url"/>
- <parameter name="target" value="{idNRCellCU}"/>
- <parameter name="replacement" value="`$tmp.cellLocalId`"/>
- </execute>
- <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >
- <parameter name="source" value="`$tmp.addPLMNInfoListEntry.ToNRCellCU.url`"/>
- <parameter name="outputPath" value="tmp.addPLMNInfoListEntry.ToNRCellCU.url"/>
- <parameter name="target" value="{mcc}"/>
- <parameter name="replacement" value="`$tmp.mcc`"/>
- </execute>
- <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >
- <parameter name="source" value="`$tmp.addPLMNInfoListEntry.ToNRCellCU.url`"/>
- <parameter name="outputPath" value="tmp.addPLMNInfoListEntry.ToNRCellCU.url"/>
- <parameter name="target" value="{mnc}"/>
- <parameter name="replacement" value="`$tmp.mnc`"/>
- </execute>
- <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
- <parameter name="file" value="/opt/opendaylight/current/data/log/instantiateRANSlice.log" />
- <parameter name="level" value="info" />
- <parameter name="field1" value="Add PLMNInfoListEntry ToNRCellCU URL"/>
- <parameter name="field2" value="`$tmp.addPLMNInfoListEntry.ToNRCellCU.url`"/>
- </record>
- <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
- <parameter name="file" value="/opt/opendaylight/current/data/log/instantiateRANSlice.log" />
- <parameter name="level" value="info" />
- <parameter name="field1" value="Setting variables for PLMNInfoList Entry Add to NRCellCU"/>
- <parameter name="field2" value="`$prop.controller.url + $tmp.addPLMNInfoListEntry.ToNRCellCU.url`"/>
- <parameter name="field3" value="`$tmp.mcc`"/>
- <parameter name="field4" value="`$tmp.mnc`"/>
- <parameter name="field5" value="`$payloadJson.input.sliceProfile.sNSSAI`"/>
- <parameter name="field6" value="`$tmp.uLThptPerSlice`"/>
- <parameter name="field7" value="`$tmp.dLThptPerSlice`"/>
- </record>
- <execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >
- <parameter name="templateFileName" value="`$prop.restapi.templateDir + '/ranSlice-add-get-PLMNInfoListEntry-NRCellCU.json'`" />
- <parameter name="restapiUrl" value="`$prop.controller.url + $tmp.addPLMNInfoListEntry.ToNRCellCU.url`"/>
- <parameter name="restapiUser" value="`$prop.controller.user`" />
- <parameter name="restapiPassword" value="`$prop.controller.pwd`"/>
- <parameter name="httpMethod" value="PUT"/>
- <parameter name="responsePrefix" value="PLMNInfoListEntry-response"/>
- <parameter name='contentType' value='application/json' />
- <parameter name='format' value='json' />
- <outcome value='failure'>
- <block>
- <return status='failure'>
- <parameter name='ack-final' value='Y'/>
- <parameter name="error-code" value="500" />
- <parameter name="error-message" value="Error adding PLMNInfoList Entry to NRCellCU" />
- </return>
- </block>
- </outcome>
- <outcome value='success'>
- <block>
- <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
- <parameter name="file" value="/opt/opendaylight/current/data/log/instantiateRANSlice.log" />
- <parameter name="level" value="info" />
- <parameter name="field1" value="PLMNInfo List Entry Add to NRCELLCU Executed Successfully "/>
- </record>
- </block>
- </outcome>
- </execute>
- </block>
- <block atomic='true'>
- <switch test='`$prop.ransim-mounted`'>
- <outcome value='false'>
- <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >
- <parameter name="source" value="`$prop.restapi.addRRMPolicyRatio.ToNRCellCU`"/>
- <parameter name="outputPath" value="tmp.addRRMPolicyRatio.ToNRCellCU.url"/>
- <parameter name="target" value="{idNearRTRIC}"/>
- <parameter name="replacement" value="`$tmp.nearRTRICId`"/>
- </execute>
- </outcome>
- <outcome value='true'>
- <block atomic='true'>
- <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >
- <parameter name="source" value="`$prop.restapi.addRRMPolicyRatio.ToNRCellCU.ransim-mounted`"/>
- <parameter name="outputPath" value="tmp.addRRMPolicyRatio.ToNRCellCU.url"/>
- <parameter name="target" value="{idNearRTRIC}"/>
- <parameter name="replacement" value="`$tmp.nearRTRICId`"/>
- </execute>
- <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >
- <parameter name="source" value="`$tmp.addRRMPolicyRatio.ToNRCellCU.url`"/>
- <parameter name="outputPath" value="tmp.addRRMPolicyRatio.ToNRCellCU.url"/>
- <parameter name="target" value="{mountName}"/>
- <parameter name="replacement" value="`$tmp.gNBCUCPList.gNBCUName`"/>
- </execute>
- </block>
- </outcome>
- </switch>
- <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >
- <parameter name="source" value="`$tmp.addRRMPolicyRatio.ToNRCellCU.url`"/>
- <parameter name="outputPath" value="tmp.addRRMPolicyRatio.ToNRCellCU.url"/>
- <parameter name="target" value="{idGNBCUCPFunction}"/>
- <parameter name="replacement" value="`$tmp.gNBCUCPList.gNBCUName`"/>
- </execute>
- <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >
- <parameter name="source" value="`$tmp.addRRMPolicyRatio.ToNRCellCU.url`"/>
- <parameter name="outputPath" value="tmp.addRRMPolicyRatio.ToNRCellCU.url"/>
- <parameter name="target" value="{idNRCellCU}"/>
- <parameter name="replacement" value="`$tmp.cellLocalId`"/>
- </execute>
- <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >
- <parameter name="source" value="`$tmp.addRRMPolicyRatio.ToNRCellCU.url`"/>
- <parameter name="outputPath" value="tmp.addRRMPolicyRatio.ToNRCellCU.url"/>
- <parameter name="target" value="{id}"/>
- <parameter name="replacement" value="0"/>
- </execute>
- <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
- <parameter name="file" value="/opt/opendaylight/current/data/log/instantiateRANSlice.log" />
- <parameter name="level" value="info" />
- <parameter name="field1" value="addRRMPolicyRatio ToNRCellCU URL"/>
- <parameter name="field2" value="`$tmp.addRRMPolicyRatio.ToNRCellCU.url`"/>
- </record>
- <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
- <parameter name="file" value="/opt/opendaylight/current/data/log/instantiateRANSlice.log" />
- <parameter name="level" value="info" />
- <parameter name="field1" value="Setting variables for addRRMPolicyRatio to NRCellCU"/>
- <parameter name="field2" value="`$prop.controller.url + $tmp.addRRMPolicyRatio.ToNRCellCU.url`"/>
- <parameter name="field3" value="`$tmp.mcc`"/>
- <parameter name="field4" value="`$tmp.mnc`"/>
- <parameter name="field5" value="`$payloadJson.input.sliceProfile.sNSSAI`"/>
- <parameter name="field6" value="`$tmp.uLThptPerSlice`"/>
- <parameter name="field7" value="`$tmp.dLThptPerSlice`"/>
- </record>
- <execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >
- <parameter name="templateFileName" value="`$prop.restapi.templateDir + '/ranSlice-add-RRMPolicyRatio-NRCellCU.json'`" />
- <parameter name="restapiUrl" value="`$prop.controller.url + $tmp.addRRMPolicyRatio.ToNRCellCU.url`"/>
- <parameter name="restapiUser" value="`$prop.controller.user`" />
- <parameter name="restapiPassword" value="`$prop.controller.pwd`"/>
- <parameter name="httpMethod" value="PUT"/>
- <parameter name="responsePrefix" value="addRRMPolicyRatio-response"/>
- <parameter name='contentType' value='application/json' />
- <parameter name='format' value='json' />
- <outcome value='failure'>
- <block>
- <return status='failure'>
- <parameter name='ack-final' value='Y'/>
- <parameter name="error-code" value="500" />
- <parameter name="error-message" value="Error adding RRMPolicyr" />
- </return>
- </block>
- </outcome>
- <outcome value='success'>
- <block>
- <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
- <parameter name="file" value="/opt/opendaylight/current/data/log/instantiateRANSlice.log" />
- <parameter name="level" value="info" />
- <parameter name="field1" value="addRRMPolicyRatio to NRCELLCU Executed Successfully "/>
- </record>
- </block>
- </outcome>
- </execute>
- </block>
- </for>
- </for>
+ </outcome>
+ </call>
</block>
- <block atomic='true'>
- <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'>
- <parameter name='outputPath' value='tmp.CUUPListEntries' />
- <parameter name='source' value="`'getRIC-configdb-response.[' + $id1 + '].gNBCUUPList_length'`" />
- </execute>
- <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
- <parameter name="file" value="/opt/opendaylight/current/data/log/instantiateRANSlice.log" />
- <parameter name="level" value="info" />
- <parameter name="field1" value="Number of CUUP List Entries "/>
- <parameter name="field2" value="`$tmp.CUUPListEntries`"/>
- </record>
- <block atomic='true'>
- <set>
- <parameter name='tmp.uLThptPerSlicePerCell' value='5' />
- </set>
- <switch test='`$tmp.uLThptPerSlicePerCell`'>
- <outcome value='5'>
- <set>
- <parameter name='tmp.rRMPolicyDedicatedRatio.CUUP' value='10' />
- </set>
- </outcome>
- <outcome value='10'>
- <set>
- <parameter name='tmp.rRMPolicyDedicatedRatio.CUUP' value='20' />
- </set>
- </outcome>
- </switch>
- <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
- <parameter name="file" value="/opt/opendaylight/current/data/log/instantiateRANSlice.log" />
- <parameter name="level" value="info" />
- <parameter name="field1" value="rRMPolicyDedicatedRatio for CUUP "/>
- <parameter name="field2" value="`$tmp.rRMPolicyDedicatedRatio.CUUP`"/>
- </record>
- </block>
- <set>
- <parameter name='tmp.uLThptPerSlice1' value='`$payloadJson.input.sliceProfile.uLThptPerSlice * 1.1`' />
- <parameter name='tmp.uLThptPerSlice' value='`$tmp.uLThptPerSlice1 / $tmp.CUUPListEntries`' />
- <parameter name='tmp.dLThptPerSlice1' value='`$payloadJson.input.sliceProfile.dLThptPerSlice * 1.1`' />
- <parameter name='tmp.dLThptPerSlice' value='`$tmp.dLThptPerSlice1 / $tmp.CUUPListEntries`' />
- <parameter name='tmp.maxNumberOfConns1' value='`$payloadJson.input.sliceProfile.maxNumberOfConns * 1.1`' />
- <parameter name='tmp.maxNumberOfConns' value='`$tmp.maxNumberOfConns1 / $tmp.CUUPListEntries`' />
- </set>
- <for index='id2' start='0' end='`$tmp.CUCPListEntries `' >
- <block atomic='true'>
- <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'>
- <parameter name='outputPath' value='tmp.gNBCUUPList.gNBCUUPId' />
- <parameter name='source' value="`'getRIC-configdb-response.[' + $id1 + '].gNBCUUPList[' + $id2 + '].gNBCUUPId'`" />
- </execute>
- <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'>
- <parameter name='outputPath' value='tmp.gNBCUUPList.gNBId' />
- <parameter name='source' value="`'getRIC-configdb-response.[' + $id1 + '].gNBCUUPList[' + $id2 + '].gNBId'`" />
- </execute>
- <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'>
- <parameter name='outputPath' value='tmp.gNBCUUPList.gNBIdLength' />
- <parameter name='source' value="`'getRIC-configdb-response.[' + $id1 + '].gNBCUUPList[' + $id2 + '].gNBIdLength'`" />
- </execute>
- <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'>
- <parameter name='outputPath' value='tmp.pLMNInfoListEntries' />
- <parameter name='source' value="`'getRIC-configdb-response.[' + $id1 + '].gNBCUUPList[' + $id2 + '].pLMNInfoList_length'`" />
- </execute>
- </block>
- <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
- <parameter name="file" value="/opt/opendaylight/current/data/log/instantiateRANSlice.log" />
- <parameter name="level" value="info" />
- <parameter name="field1" value="CUCP Details "/>
- <parameter name="field2" value="`$tmp.gNBCUUPList.gNBCUUPId`"/>
- <parameter name="field3" value="`$tmp.gNBCUUPList.gNBId`"/>
- <parameter name="field4" value="`$tmp.gNBCUUPList.gNBIdLength`"/>
- <parameter name="field5" value="`$tmp.gNBCUUPList.pLMNInfoList_length`"/>
- <parameter name="field6" value="`$tmp.gNBCUUPList.pLMNId`"/>
- </record>
- <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
- <parameter name="file" value="/opt/opendaylight/current/data/log/instantiateRANSlice.log" />
- <parameter name="level" value="info" />
- <parameter name="field1" value="MCC "/>
- <parameter name="field2" value="`$tmp.mcc`"/>
- <parameter name="field3" value="MNC "/>
- <parameter name="field4" value="`$tmp.mnc`"/>
- <parameter name="field5" value="Calculated uLThptPerSlice "/>
- <parameter name="field6" value="`$tmp.uLThptPerSlice`"/>
- <parameter name="field7" value="Calculated dLThptPerSlice "/>
- <parameter name="field8" value="`$tmp.dLThptPerSlice`"/>
- </record>
- <for index='id4' start='0' end='`$tmp.pLMNInfoListEntries`' >
- <block atomic='true'>
- <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'>
- <parameter name='outputPath' value='tmp.fromRAN.sNSSAI' />
- <parameter name='source' value="`'getRIC-configdb-response.[' + $id1 + '].gNBCUUPList[' + $id2 + '].pLMNInfoList[' + $id3 + '].sNSSAI'`" />
- </execute>
- <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
- <parameter name="file" value="/opt/opendaylight/current/data/log/instantiateRANSlice.log" />
- <parameter name="level" value="info" />
- <parameter name="field1" value="sNSSAI from RAN to check if already exists "/>
- <parameter name="field2" value="`$tmp.fromRAN.sNSSAI`"/>
- </record>
- </block>
- </for>
- <block atomic='true'>
- <switch test='`$prop.ransim-mounted`'>
- <outcome value='false'>
- <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >
- <parameter name="source" value="`$prop.restapi.addPLMNInfoListEntry.ToGNBCUUPFn`"/>
- <parameter name="outputPath" value="tmp.addPLMNInfoListEntry.ToGNBCUUPFn.url"/>
- <parameter name="target" value="{idNearRTRIC}"/>
- <parameter name="replacement" value="`$tmp.nearRTRICId`"/>
- </execute>
- </outcome>
- <outcome value='true'>
- <block atomic='true'>
- <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >
- <parameter name="source" value="`$prop.restapi.addPLMNInfoListEntry.ToGNBCUUPFn.ransim-mounted`"/>
- <parameter name="outputPath" value="tmp.addPLMNInfoListEntry.ToGNBCUUPFn.url"/>
- <parameter name="target" value="{idNearRTRIC}"/>
- <parameter name="replacement" value="`$tmp.nearRTRICId`"/>
- </execute>
- <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >
- <parameter name="source" value="`$tmp.addPLMNInfoListEntry.ToGNBCUUPFn.url`"/>
- <parameter name="outputPath" value="tmp.addPLMNInfoListEntry.ToGNBCUUPFn.url"/>
- <parameter name="target" value="{mountName}"/>
- <parameter name="replacement" value="`$tmp.gNBCUUPList.gNBCUUPId`"/>
- </execute>
- </block>
- </outcome>
- </switch>
- <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >
- <parameter name="source" value="`$tmp.addPLMNInfoListEntry.ToGNBCUUPFn.url`"/>
- <parameter name="outputPath" value="tmp.addPLMNInfoListEntry.ToGNBCUUPFn.url"/>
- <parameter name="target" value="{idGNBCUUPFunction}"/>
- <parameter name="replacement" value="`$tmp.gNBCUUPList.gNBCUUPId`"/>
- </execute>
- <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >
- <parameter name="source" value="`$tmp.addPLMNInfoListEntry.ToGNBCUUPFn.url`"/>
- <parameter name="outputPath" value="tmp.addPLMNInfoListEntry.ToGNBCUUPFn.url"/>
- <parameter name="target" value="{mcc}"/>
- <parameter name="replacement" value="`$tmp.mcc`"/>
- </execute>
- <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >
- <parameter name="source" value="`$tmp.addPLMNInfoListEntry.ToGNBCUUPFn.url`"/>
- <parameter name="outputPath" value="tmp.addPLMNInfoListEntry.ToGNBCUUPFn.url"/>
- <parameter name="target" value="{mnc}"/>
- <parameter name="replacement" value="`$tmp.mnc`"/>
- </execute>
- <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
- <parameter name="file" value="/opt/opendaylight/current/data/log/instantiateRANSlice.log" />
- <parameter name="level" value="info" />
- <parameter name="field1" value="Add PLMNInfoListEntry ToGNBCUUPFn URL"/>
- <parameter name="field2" value="`$tmp.addPLMNInfoListEntry.ToGNBCUUPFn.url`"/>
- </record>
- <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
- <parameter name="file" value="/opt/opendaylight/current/data/log/instantiateRANSlice.log" />
- <parameter name="level" value="info" />
- <parameter name="field1" value="Setting variables for PLMNInfoList Entry Add to NRCellCU"/>
- <parameter name="field2" value="`$tmp.addPLMNInfoListEntry.ToNRCellDU.url`"/>
- <parameter name="field3" value="`$tmp.mcc`"/>
- <parameter name="field4" value="`$tmp.mnc`"/>
- <parameter name="field5" value="`$payloadJson.input.sliceProfile.sNSSAI`"/>
- <parameter name="field6" value="`$tmp.uLThptPerSlice`"/>
- <parameter name="field7" value="`$tmp.dLThptPerSlice`"/>
- </record>
- <execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >
- <parameter name="templateFileName" value="`$prop.restapi.templateDir + '/ranSlice-add-get-PLMNInfoListEntry-GNBCUUPFn.json'`" />
- <parameter name="restapiUrl" value="`$prop.controller.url + $tmp.addPLMNInfoListEntry.ToGNBCUUPFn.url`"/>
- <parameter name="restapiUser" value="`$prop.controller.user`" />
- <parameter name="restapiPassword" value="`$prop.controller.pwd`"/>
- <parameter name="httpMethod" value="PUT"/>
- <parameter name="responsePrefix" value="PLMNInfoListEntry-response"/>
- <parameter name='contentType' value='application/json' />
- <parameter name='format' value='json' />
- <outcome value='failure'>
- <block>
- <return status='failure'>
- <parameter name='ack-final' value='Y'/>
- <parameter name="error-code" value="500" />
- <parameter name="error-message" value="Error adding PLMNInfoList Entry to GNBCUUPFn" />
- </return>
- </block>
- </outcome>
- <outcome value='success'>
- <block>
- <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
- <parameter name="file" value="/opt/opendaylight/current/data/log/instantiateRANSlice.log" />
- <parameter name="level" value="info" />
- <parameter name="field1" value="PLMNInfo List Entry Add Executed Successfully "/>
- </record>
- </block>
- </outcome>
- </execute>
- </block>
- <block atomic='true'>
- <switch test='`$prop.ransim-mounted`'>
- <outcome value='false'>
- <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >
- <parameter name="source" value="`$prop.restapi.addRRMPolicyRatio.ToGNBCUUPFn`"/>
- <parameter name="outputPath" value="tmp.addRRMPolicyRatio.ToGNBCUUPFn.url"/>
- <parameter name="target" value="{idNearRTRIC}"/>
- <parameter name="replacement" value="`$tmp.nearRTRICId`"/>
- </execute>
- </outcome>
- <outcome value='true'>
- <block atomic='true'>
- <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >
- <parameter name="source" value="`$prop.restapi.addRRMPolicyRatio.ToGNBCUUPFn.ransim-mounted`"/>
- <parameter name="outputPath" value="tmp.addRRMPolicyRatio.ToGNBCUUPFn.url"/>
- <parameter name="target" value="{idNearRTRIC}"/>
- <parameter name="replacement" value="`$tmp.nearRTRICId`"/>
- </execute>
- <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >
- <parameter name="source" value="`$tmp.addRRMPolicyRatio.ToGNBCUUPFn.url`"/>
- <parameter name="outputPath" value="tmp.addRRMPolicyRatio.ToGNBCUUPFn.url"/>
- <parameter name="target" value="{mountName}"/>
- <parameter name="replacement" value="`$tmp.gNBCUUPList.gNBCUUPId`"/>
- </execute>
- </block>
- </outcome>
- </switch>
- <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >
- <parameter name="source" value="`$tmp.addRRMPolicyRatio.ToGNBCUUPFn.url`"/>
- <parameter name="outputPath" value="tmp.addRRMPolicyRatio.ToGNBCUUPFn.url"/>
- <parameter name="target" value="{idGNBCUUPFunction}"/>
- <parameter name="replacement" value="`$tmp.gNBCUUPList.gNBCUUPId`"/>
- </execute>
- <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >
- <parameter name="source" value="`$tmp.addRRMPolicyRatio.ToGNBCUUPFn.url`"/>
- <parameter name="outputPath" value="tmp.addRRMPolicyRatio.ToGNBCUUPFn.url"/>
- <parameter name="target" value="{id}"/>
- <parameter name="replacement" value="0"/>
- </execute>
- <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
- <parameter name="file" value="/opt/opendaylight/current/data/log/instantiateRANSlice.log" />
- <parameter name="level" value="info" />
- <parameter name="field1" value="addRRMPolicyRatio ToGNBCUUPFn URL"/>
- <parameter name="field2" value="`$tmp.addRRMPolicyRatio.ToGNBCUUPFn.url`"/>
- </record>
- <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
- <parameter name="file" value="/opt/opendaylight/current/data/log/instantiateRANSlice.log" />
- <parameter name="level" value="info" />
- <parameter name="field1" value="Setting variables for addRRMPolicyRatio to GNBCUUPFn"/>
- <parameter name="field2" value="`$tmp.addRRMPolicyRatio.ToGNBCUUPFn.url`"/>
- <parameter name="field3" value="`$tmp.mcc`"/>
- <parameter name="field4" value="`$tmp.mnc`"/>
- <parameter name="field5" value="`$payloadJson.input.sliceProfile.sNSSAI`"/>
- <parameter name="field6" value="`$tmp.uLThptPerSlice`"/>
- <parameter name="field7" value="`$tmp.dLThptPerSlice`"/>
- </record>
- <execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >
- <parameter name="templateFileName" value="`$prop.restapi.templateDir + '/ranSlice-add-RRMPolicyRatio-GNBCUUPFn.json'`" />
- <parameter name="restapiUrl" value="`$prop.controller.url + $tmp.addRRMPolicyRatio.ToGNBCUUPFn.url`"/>
- <parameter name="restapiUser" value="`$prop.controller.user`" />
- <parameter name="restapiPassword" value="`$prop.controller.pwd`"/>
- <parameter name="httpMethod" value="PUT"/>
- <parameter name="responsePrefix" value="addRRMPolicyRatio-response"/>
- <parameter name='contentType' value='application/json' />
- <parameter name='format' value='json' />
- <outcome value='failure'>
- <block>
- <return status='failure'>
- <parameter name='ack-final' value='Y'/>
- <parameter name="error-code" value="500" />
- <parameter name="error-message" value="Error adding RRMPolicy" />
- </return>
- </block>
- </outcome>
- <outcome value='success'>
- <block>
- <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
- <parameter name="file" value="/opt/opendaylight/current/data/log/instantiateRANSlice.log" />
- <parameter name="level" value="info" />
- <parameter name="field1" value="addRRMPolicyRatio Executed Successfully "/>
- </record>
- </block>
- </outcome>
- </execute>
- </block>
- </for>
+ </outcome>
+ <outcome value='modify-allocate'>
+ <block atomic="true">
+ <call module='GENERIC-RESOURCE-API' rpc='instantiateRANSliceModifyAllocate' mode='sync' >
+ <outcome value='failure'>
+ <return status='failure'>
+ <parameter name='ack-final' value='Y' />
+ </return>
+ </outcome>
+ </call>
</block>
- <block atomic='true'>
- <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'>
- <parameter name='outputPath' value='tmp.DUListEntries' />
- <parameter name='source' value="`'getRIC-configdb-response.[' + $id1 + '].gNBDUList_length'`" />
- </execute>
- <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
- <parameter name="file" value="/opt/opendaylight/current/data/log/instantiateRANSlice.log" />
- <parameter name="level" value="info" />
- <parameter name="field1" value="Number of DU List Entries "/>
- <parameter name="field2" value="`$tmp.DUListEntries`"/>
- </record>
- <block atomic='true'>
- <set>
- <parameter name='tmp.uLThptPerSlicePerCell' value='5' />
- </set>
- <switch test='`$tmp.uLThptPerSlicePerCell`'>
- <outcome value='5'>
- <set>
- <parameter name='tmp.rRMPolicyDedicatedRatio.CellDU' value='10' />
- </set>
- </outcome>
- <outcome value='10'>
- <set>
- <parameter name='tmp.rRMPolicyDedicatedRatio.CellDU' value='20' />
- </set>
- </outcome>
- </switch>
- <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
- <parameter name="file" value="/opt/opendaylight/current/data/log/instantiateRANSlice.log" />
- <parameter name="level" value="info" />
- <parameter name="field1" value="rRMPolicyDedicatedRatio for CellDU "/>
- <parameter name="field2" value="`$tmp.rRMPolicyDedicatedRatio.CellDU`"/>
- </record>
- </block>
- <set>
- <parameter name='tmp.uLThptPerSlice1' value='`$payloadJson.input.sliceProfile.uLThptPerSlice * 1.1`' />
- <parameter name='tmp.uLThptPerSlice' value='`$tmp.uLThptPerSlice1 / $getListofCells-configdb-response._length`' />
- <parameter name='tmp.dLThptPerSlice1' value='`$payloadJson.input.sliceProfile.dLThptPerSlice * 1.1`' />
- <parameter name='tmp.dLThptPerSlice' value='`$tmp.dLThptPerSlice1 / $getListofCells-configdb-response._length`' />
- <parameter name='tmp.maxNumberOfConns1' value='`$payloadJson.input.sliceProfile.maxNumberOfConns * 1.1`' />
- <parameter name='tmp.maxNumberOfConns' value='`$tmp.maxNumberOfConns1 / $getListofCells-configdb-response._length`' />
- </set>
- <for index='id2' start='0' end='`$tmp.DUListEntries`' >
- <block atomic='true'>
- <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'>
- <parameter name='outputPath' value='tmp.cellDUListEntries' />
- <parameter name='source' value="`'getRIC-configdb-response.[' + $id1 + '].gNBDUList[' + $id2 + '].cellDUList_length'`" />
- </execute>
- <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'>
- <parameter name='outputPath' value='tmp.gNBDUList.gNBDUId' />
- <parameter name='source' value="`'getRIC-configdb-response.[' + $id1 + '].gNBDUList[' + $id2 + '].gNBDUId'`" />
- </execute>
- <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'>
- <parameter name='outputPath' value='tmp.gNBDUName' />
- <parameter name='source' value="`'getRIC-configdb-response.[' + $id1 + '].gNBDUList[' + $id2 + '].gNBDUName'`" />
- </execute>
- <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'>
- <parameter name='outputPath' value='tmp.gNBId' />
- <parameter name='source' value="`'getRIC-configdb-response.[' + $id1 + '].gNBDUList[' + $id2 + '].gNBId'`" />
- </execute>
- <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'>
- <parameter name='outputPath' value='tmp.gNBIdLength' />
- <parameter name='source' value="`'getRIC-configdb-response.[' + $id1 + '].gNBDUList[' + $id2 + '].gNBIdLength'`" />
- </execute>
- <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'>
- <parameter name='outputPath' value='tmp.nFType' />
- <parameter name='source' value="`'getRIC-configdb-response.[' + $id1 + '].gNBDUList[' + $id2 + '].nFType'`" />
- </execute>
- <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'>
- <parameter name='outputPath' value='tmp.pLMNId' />
- <parameter name='source' value="`'getRIC-configdb-response.[' + $id1 + '].gNBDUList[' + $id2 + '].pLMNId'`" />
- </execute>
- </block>
- <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
- <parameter name="file" value="/opt/opendaylight/current/data/log/instantiateRANSlice.log" />
- <parameter name="level" value="info" />
- <parameter name="field1" value="Numberof cellDU of Entries "/>
- <parameter name="field2" value="`$tmp.cellDUListEntries`"/>
- <parameter name="field3" value="`$tmp.gNBDUList.gNBDUId`"/>
- <parameter name="field4" value="`$tmp.gNBDUName`"/>
- <parameter name="field5" value="`$tmp.gNBId`"/>
- <parameter name="field6" value="`$tmp.gNBIdLength`"/>
- <parameter name="field7" value="`$tmp.nFType`"/>
- <parameter name="field8" value="`$tmp.pLMNId`"/>
- </record>
- <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
- <parameter name="file" value="/opt/opendaylight/current/data/log/instantiateRANSlice.log" />
- <parameter name="level" value="info" />
- <parameter name="field1" value="MCC "/>
- <parameter name="field2" value="`$tmp.mcc`"/>
- <parameter name="field3" value="MNC "/>
- <parameter name="field4" value="`$tmp.mnc`"/>
- <parameter name="field5" value="Calculated uLThptPerSlice "/>
- <parameter name="field6" value="`$tmp.uLThptPerSlice`"/>
- <parameter name="field7" value="Calculated dLThptPerSlice "/>
- <parameter name="field8" value="`$tmp.dLThptPerSlice`"/>
- </record>
- <for index='id3' start='0' end='`$getListofCells-configdb-response._length `' >
- <block atomic='true'>
- <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'>
- <parameter name='outputPath' value='tmp.pLMNInfoListEntries' />
- <parameter name='source' value="`'getRIC-configdb-response.[' + $id1 + '].gNBDUList[' + $id2 + '].cellDUList[' + $id3 + '].pLMNInfoList_length'`" />
- </execute>
- <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'>
- <parameter name='outputPath' value='tmp.cellLocalId' />
- <parameter name='source' value="`'getRIC-configdb-response.[' + $id1 + '].gNBDUList[' + $id2 + '].cellDUList[' + $id3 + '].cellLocalId'`" />
- </execute>
- </block>
- <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
- <parameter name="file" value="/opt/opendaylight/current/data/log/instantiateRANSlice.log" />
- <parameter name="level" value="info" />
- <parameter name="field1" value="Numberof pLMNInfoList Entries "/>
- <parameter name="field2" value="`$tmp.pLMNInfoListEntries`"/>
- <parameter name="field3" value="cellLocalId "/>
- <parameter name="field4" value="`$tmp.cellLocalId`"/>
- </record>
- <for index='id4' start='0' end='`$tmp.pLMNInfoListEntries`' >
- <block atomic='true'>
- <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'>
- <parameter name='outputPath' value='tmp.fromRAN.sNSSAI' />
- <parameter name='source' value="`'getRIC-configdb-response.[' + $id1 + '].gNBDUList[' + $id2 + '].cellDUList[' + $id3 + '].pLMNInfoList[' + $id4 + '].sNSSAI.sNSSAI'`" />
- </execute>
- <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
- <parameter name="file" value="/opt/opendaylight/current/data/log/instantiateRANSlice.log" />
- <parameter name="level" value="info" />
- <parameter name="field1" value="sNSSAI from RAN to check if already exists "/>
- <parameter name="field2" value="`$tmp.fromRAN.sNSSAI`"/>
- </record>
- </block>
- </for>
- <block atomic='true'>
- <switch test='`$prop.ransim-mounted`'>
- <outcome value='false'>
- <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >
- <parameter name="source" value="`$prop.restapi.addPLMNInfoListEntry.ToNRCellDU`"/>
- <parameter name="outputPath" value="tmp.addPLMNInfoListEntry.ToNRCellDU.url"/>
- <parameter name="target" value="{idNearRTRIC}"/>
- <parameter name="replacement" value="`$tmp.nearRTRICId`"/>
- </execute>
- </outcome>
- <outcome value='true'>
- <block atomic='true'>
- <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >
- <parameter name="source" value="`$prop.restapi.addPLMNInfoListEntry.ToNRCellDU.ransim-mounted`"/>
- <parameter name="outputPath" value="tmp.addPLMNInfoListEntry.ToNRCellDU.url"/>
- <parameter name="target" value="{idNearRTRIC}"/>
- <parameter name="replacement" value="`$tmp.nearRTRICId`"/>
- </execute>
- <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >
- <parameter name="source" value="`$tmp.addPLMNInfoListEntry.ToNRCellDU.url`"/>
- <parameter name="outputPath" value="tmp.addPLMNInfoListEntry.ToNRCellDU.url"/>
- <parameter name="target" value="{mountName}"/>
- <parameter name="replacement" value="`$tmp.gNBDUList.gNBDUId`"/>
- </execute>
- </block>
- </outcome>
- </switch>
- <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >
- <parameter name="source" value="`$tmp.addPLMNInfoListEntry.ToNRCellDU.url`"/>
- <parameter name="outputPath" value="tmp.addPLMNInfoListEntry.ToNRCellDU.url"/>
- <parameter name="target" value="{idGNBDUFunction}"/>
- <parameter name="replacement" value="`$tmp.gNBDUList.gNBDUId`"/>
- </execute>
- <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >
- <parameter name="source" value="`$tmp.addPLMNInfoListEntry.ToNRCellDU.url`"/>
- <parameter name="outputPath" value="tmp.addPLMNInfoListEntry.ToNRCellDU.url"/>
- <parameter name="target" value="{idNRCellDU}"/>
- <parameter name="replacement" value="`$tmp.cellLocalId`"/>
- </execute>
- <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >
- <parameter name="source" value="`$tmp.addPLMNInfoListEntry.ToNRCellDU.url`"/>
- <parameter name="outputPath" value="tmp.addPLMNInfoListEntry.ToNRCellDU.url"/>
- <parameter name="target" value="{mcc}"/>
- <parameter name="replacement" value="`$tmp.mcc`"/>
- </execute>
- <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >
- <parameter name="source" value="`$tmp.addPLMNInfoListEntry.ToNRCellDU.url`"/>
- <parameter name="outputPath" value="tmp.addPLMNInfoListEntry.ToNRCellDU.url"/>
- <parameter name="target" value="{mnc}"/>
- <parameter name="replacement" value="`$tmp.mnc`"/>
- </execute>
- <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
- <parameter name="file" value="/opt/opendaylight/current/data/log/instantiateRANSlice.log" />
- <parameter name="level" value="info" />
- <parameter name="field1" value="Add PLMNInfoListEntry ToNRCellDU URL"/>
- <parameter name="field2" value="`$tmp.addPLMNInfoListEntry.ToNRCellDU.url`"/>
- </record>
- <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
- <parameter name="file" value="/opt/opendaylight/current/data/log/instantiateRANSlice.log" />
- <parameter name="level" value="info" />
- <parameter name="field1" value="Setting variables for PLMNInfoList Entry Add to NRCellDU"/>
- <parameter name="field2" value="`$tmp.addPLMNInfoListEntry.ToNRCellDU.url`"/>
- <parameter name="field3" value="`$tmp.mcc`"/>
- <parameter name="field4" value="`$tmp.mnc`"/>
- <parameter name="field5" value="`$payloadJson.input.sliceProfile.sNSSAI`"/>
- <parameter name="field6" value="`$tmp.uLThptPerSlice`"/>
- <parameter name="field7" value="`$tmp.dLThptPerSlice`"/>
- </record>
- <execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >
- <parameter name="templateFileName" value="`$prop.restapi.templateDir + '/ranSlice-add-get-PLMNInfoListEntry-NRCellDU.json'`" />
- <parameter name="restapiUrl" value="`$prop.controller.url + $tmp.addPLMNInfoListEntry.ToNRCellDU.url`"/>
- <parameter name="restapiUser" value="`$prop.controller.user`" />
- <parameter name="restapiPassword" value="`$prop.controller.pwd`"/>
- <parameter name="httpMethod" value="PUT"/>
- <parameter name="responsePrefix" value="PLMNInfoListEntry-response"/>
- <parameter name='contentType' value='application/json' />
- <parameter name='format' value='json' />
- <outcome value='failure'>
- <block>
- <return status='failure'>
- <parameter name='ack-final' value='Y'/>
- <parameter name="error-code" value="500" />
- <parameter name="error-message" value="Error adding PLMNInfo List Entry to NRCellCUr" />
- </return>
- </block>
- </outcome>
- <outcome value='success'>
- <block>
- <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
- <parameter name="file" value="/opt/opendaylight/current/data/log/instantiateRANSlice.log" />
- <parameter name="level" value="info" />
- <parameter name="field1" value="PLMNInfo List Entry Add to NRCELLDU Executed Successfully "/>
- </record>
- </block>
- </outcome>
- </execute>
- </block>
- <block atomic='true'>
- <switch test='`$prop.ransim-mounted`'>
- <outcome value='false'>
- <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >
- <parameter name="source" value="`$prop.restapi.addRRMPolicyRatio.ToNRCellDU`"/>
- <parameter name="outputPath" value="tmp.addRRMPolicyRatio.ToNRCellDU.url"/>
- <parameter name="target" value="{idNearRTRIC}"/>
- <parameter name="replacement" value="`$tmp.nearRTRICId`"/>
- </execute>
- </outcome>
- <outcome value='true'>
- <block atomic='true'>
- <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >
- <parameter name="source" value="`$prop.restapi.addRRMPolicyRatio.ToNRCellDU.ransim-mounted`"/>
- <parameter name="outputPath" value="tmp.addRRMPolicyRatio.ToNRCellDU.url"/>
- <parameter name="target" value="{idNearRTRIC}"/>
- <parameter name="replacement" value="`$tmp.nearRTRICId`"/>
- </execute>
- <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >
- <parameter name="source" value="`$tmp.addRRMPolicyRatio.ToNRCellDU.url`"/>
- <parameter name="outputPath" value="tmp.addRRMPolicyRatio.ToNRCellDU.url"/>
- <parameter name="target" value="{mountName}"/>
- <parameter name="replacement" value="`$tmp.gNBDUList.gNBDUId`"/>
- </execute>
- </block>
- </outcome>
- </switch>
- <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >
- <parameter name="source" value="`$tmp.addRRMPolicyRatio.ToNRCellDU.url`"/>
- <parameter name="outputPath" value="tmp.addRRMPolicyRatio.ToNRCellDU.url"/>
- <parameter name="target" value="{idGNBDUFunction}"/>
- <parameter name="replacement" value="`$tmp.gNBDUList.gNBDUId`"/>
- </execute>
- <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >
- <parameter name="source" value="`$tmp.addRRMPolicyRatio.ToNRCellDU.url`"/>
- <parameter name="outputPath" value="tmp.addRRMPolicyRatio.ToNRCellDU.url"/>
- <parameter name="target" value="{idNRCellDU}"/>
- <parameter name="replacement" value="`$tmp.cellLocalId`"/>
- </execute>
- <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >
- <parameter name="source" value="`$tmp.addRRMPolicyRatio.ToNRCellDU.url`"/>
- <parameter name="outputPath" value="tmp.addRRMPolicyRatio.ToNRCellDU.url"/>
- <parameter name="target" value="{id}"/>
- <parameter name="replacement" value="0"/>
- </execute>
- <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
- <parameter name="file" value="/opt/opendaylight/current/data/log/instantiateRANSlice.log" />
- <parameter name="level" value="info" />
- <parameter name="field1" value="addRRMPolicyRatio ToNRCellDU URL"/>
- <parameter name="field2" value="`$tmp.addRRMPolicyRatio.ToNRCellDU.url`"/>
- </record>
- <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
- <parameter name="file" value="/opt/opendaylight/current/data/log/instantiateRANSlice.log" />
- <parameter name="level" value="info" />
- <parameter name="field1" value="Setting variables for addRRMPolicyRatio to NRCellDU"/>
- <parameter name="field2" value="`$tmp.addRRMPolicyRatio.ToNRCellDU.url`"/>
- <parameter name="field3" value="`$tmp.mcc`"/>
- <parameter name="field4" value="`$tmp.mnc`"/>
- <parameter name="field5" value="`$payloadJson.input.sliceProfile.sNSSAI`"/>
- <parameter name="field6" value="`$tmp.uLThptPerSlice`"/>
- <parameter name="field7" value="`$tmp.dLThptPerSlice`"/>
- </record>
- <execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >
- <parameter name="templateFileName" value="`$prop.restapi.templateDir + '/ranSlice-add-RRMPolicyRatio-NRCellDU.json'`" />
- <parameter name="restapiUrl" value="`$prop.controller.url + $tmp.addRRMPolicyRatio.ToNRCellDU.url`"/>
- <parameter name="restapiUser" value="`$prop.controller.user`" />
- <parameter name="restapiPassword" value="`$prop.controller.pwd`"/>
- <parameter name="httpMethod" value="PUT"/>
- <parameter name="responsePrefix" value="addRRMPolicyRatio-response"/>
- <parameter name='contentType' value='application/json' />
- <parameter name='format' value='json' />
- <outcome value='failure'>
- <block>
- <return status='failure'>
- <parameter name='ack-final' value='Y'/>
- <parameter name="error-code" value="500" />
- <parameter name="error-message" value="Error adding RRM Policy" />
- </return>
- </block>
- </outcome>
- <outcome value='success'>
- <block>
- <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
- <parameter name="file" value="/opt/opendaylight/current/data/log/instantiateRANSlice.log" />
- <parameter name="level" value="info" />
- <parameter name="field1" value="addRRMPolicyRatio to NRCELLDU Executed Successfully "/>
- </record>
- </block>
- </outcome>
- </execute>
- </block>
- </for>
- </for>
+ </outcome>
+ <outcome value='modify-deallocate'>
+ <block atomic="true">
+ <call module='GENERIC-RESOURCE-API' rpc='instantiateRANSliceModifyDeallocate' mode='sync' >
+ <outcome value='failure'>
+ <return status='failure'>
+ <parameter name='ack-final' value='Y' />
+ </return>
+ </outcome>
+ </call>
+ </block>
+ </outcome>
+ <outcome value='reconfigure'>
+ <block atomic="true">
+ <call module='GENERIC-RESOURCE-API' rpc='instantiateRANSliceReconfigure' mode='sync' >
+ <outcome value='failure'>
+ <return status='failure'>
+ <parameter name='ack-final' value='Y' />
+ </return>
+ </outcome>
+ </call>
</block>
- </for>
- </block>
+ </outcome>
+ </switch>
</block>
</outcome>
</switch>
<return status='success'>
- <parameter name="ack-final-indicator" value="Y" />
+ <parameter name="ack-final" value="Y" />
<parameter name="error-code" value="200" />
<parameter name="error-message" value="SUCCESSFUL Execution" />
</return>
diff --git a/platform-logic/ran-slice-api/src/main/xml/ran-slice-api_instantiateRANSliceAllocate.xml b/platform-logic/ran-slice-api/src/main/xml/ran-slice-api_instantiateRANSliceAllocate.xml
new file mode 100644
index 00000000..151f7fac
--- /dev/null
+++ b/platform-logic/ran-slice-api/src/main/xml/ran-slice-api_instantiateRANSliceAllocate.xml
@@ -0,0 +1,2094 @@
+<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='ran-slice-api' version='${project.version}'>
+ <method rpc='instantiateRANSliceAllocate' mode='sync'>
+ <block atomic='true'>
+ <block atomic='true'>
+ <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >
+ <parameter name="source" value="`$prop.restapi.configdb.getNearRTRICsFromTrackingArea`"/>
+ <parameter name="outputPath" value="tmp.configdb.getNearRTRICsFromTrackingArea.url"/>
+ <parameter name="target" value="{trackingArea}"/>
+ <parameter name="replacement" value="`$tmp.payload.trackingArea`"/>
+ </execute>
+ <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
+ <parameter name="file" value="/opt/opendaylight/current/data/log/instantiateRANSlice.log" />
+ <parameter name="level" value="info" />
+ <parameter name="field1" value="URL for configDB Get NearRTRIC for tracking area"/>
+ <parameter name='field2' value="`$prop.configdb.url + $tmp.configdb.getNearRTRICsFromTrackingArea.url`" />
+ <parameter name='field3' value="`$tmp.payload.trackingArea`" />
+ </record>
+ <execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >
+ <parameter name="restapiUrl" value="`$prop.configdb.url + $tmp.configdb.getNearRTRICsFromTrackingArea.url`"/>
+ <parameter name="httpMethod" value="GET"/>
+ <parameter name="responsePrefix" value="getRIC-configdb-response"/>
+ <parameter name='contentType' value='application/json' />
+ <parameter name='format' value='json' />
+ <parameter name='accept' value='application/json' />
+ <parameter name="convertResponse" value="true"/>
+ <outcome value='failure'>
+ <block>
+ <set>
+ <parameter name='error-code' value='500'/>
+ <parameter name='error-message' value='Error Getting Info from ConfigDB. Aborting RPC executiopn'/>
+ </set>
+ <return status='failure'>
+ <parameter name='ack-final' value='Y'/>
+ <parameter name='error-code' value='500'/>
+ <parameter name='error-message' value='Error Getting Info from ConfigDB. Aborting RPC executiopn'/>
+ </return>
+ <block atomic='true'>
+ <set>
+ <parameter name="tmp.so.callbackURL" value="`$payloadJson.input.callbackURL`"/>
+ <parameter name="tmp.status" value="`$error-code`"/>
+ <parameter name="tmp.reason" value="`$error-message`"/>
+ <parameter name="tmp.requestID" value="`$instantiateRANSlice-input.common-header.request-id`"/>
+ <parameter name="tmp.action" value="`$instantiateRANSlice-input.action`"/>
+ </set>
+ <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
+ <parameter name="file" value="/opt/opendaylight/current/data/log/so-callback-response.log" />
+ <parameter name="level" value="info" />
+ <parameter name="field1" value="URL for SO Callback Response"/>
+ <parameter name='field2' value="`$tmp.so.callbackURL`" />
+ <parameter name='field3' value="`$tmp.status`" />
+ <parameter name='field4' value="`$tmp.reason`" />
+ <parameter name='field5' value="`$tmp.requestID`" />
+ <parameter name='field6' value="`$tmp.action`" />
+ <parameter name='field7' value="`$tmp.CUCPList`" />
+ <parameter name='field8' value="`$tmp.CUUPList`" />
+ <parameter name='field9' value="`$tmp.DUList`" />
+ </record>
+ <execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >
+ <parameter name="templateFileName" value="`$prop.restapi.templateDir + '/ranSlice-so-response.json'`" />
+ <parameter name="restapiUrl" value="`$tmp.so.callbackURL`"/>
+ <parameter name="httpMethod" value="POST"/>
+ <parameter name="responsePrefix" value="so-callback-response"/>
+ <parameter name='contentType' value='application/json' />
+ <parameter name='format' value='json' />
+ <parameter name='accept' value='application/json' />
+ <outcome value='failure'>
+ <block>
+ <return status='failure'>
+ <parameter name='ack-final' value='Y'/>
+ <parameter name="error-code" value="500" />
+ <parameter name="error-message" value="Error sending SO Response" />
+ </return>
+ </block>
+ </outcome>
+ <outcome value='success'>
+ <block>
+ <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
+ <parameter name="file" value="/opt/opendaylight/current/data/log/instantiateRANSlice.log" />
+ <parameter name="level" value="info" />
+ <parameter name="field1" value="SO Response Sent "/>
+ </record>
+ </block>
+ </outcome>
+ </execute>
+ </block>
+ </block>
+ </outcome>
+ <outcome value='success'>
+ <block>
+ <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
+ <parameter name="file" value="/opt/opendaylight/current/data/log/instantiateRANSlice.log" />
+ <parameter name="level" value="info" />
+ <parameter name="field1" value="Successfully Obtained NearRT RIC info from ConfigDB"/>
+ <parameter name="field2" value="`$getRIC-configdb-response._length`"/>
+ <parameter name="field3" value="`$getRIC-configdb-response.[0].gNBCUCPList_length`"/>
+ <parameter name="field4" value="`$getRIC-configdb-response.[0].gNBCUUPList_length`"/>
+ <parameter name="field5" value="`$getRIC-configdb-response.[0].gNBDUList_length`"/>
+ </record>
+ <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='printContext' >
+ <parameter name='filename' value='/opt/opendaylight/current/data/log/ranSlice-instantiateRANSlice-configrsp-context.log' />
+ </execute>
+ </block>
+ </outcome>
+ </execute>
+ </block>
+ <block atomic='true'>
+ <block atomic='true'>
+ <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >
+ <parameter name="source" value="`$prop.restapi.configdb.getListOfCells`"/>
+ <parameter name="outputPath" value="tmp.configdb.getListOfCells.url"/>
+ <parameter name="target" value="{trackingArea}"/>
+ <parameter name="replacement" value="`$tmp.payload.trackingArea`"/>
+ </execute>
+ <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
+ <parameter name="file" value="/opt/opendaylight/current/data/log/instantiateRANSlice.log" />
+ <parameter name="level" value="info" />
+ <parameter name="field1" value="URL for configDB Get getListOfCells for tracking area"/>
+ <parameter name='field2' value="`$prop.configdb.url + $tmp.configdb.getListOfCells.url`" />
+ <parameter name='field3' value="`$tmp.payload.trackingArea`" />
+ </record>
+ <execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >
+ <parameter name="restapiUrl" value="`$prop.configdb.url + $tmp.configdb.getListOfCells.url`"/>
+ <parameter name="httpMethod" value="GET"/>
+ <parameter name="responsePrefix" value="getListofCells-configdb-response"/>
+ <parameter name='contentType' value='application/json' />
+ <parameter name='format' value='json' />
+ <parameter name='accept' value='application/json' />
+ <outcome value='failure'>
+ <block>
+ <set>
+ <parameter name='error-code' value='500'/>
+ <parameter name='error-message' value='Error Getting Info from ConfigDB. Aborting RPC executiopn'/>
+ </set>
+ <return status='failure'>
+ <parameter name='ack-final' value='Y'/>
+ <parameter name='error-code' value='500'/>
+ <parameter name='error-message' value='Error Getting Info from ConfigDB. Aborting RPC executiopn'/>
+ </return>
+ <block atomic='true'>
+ <set>
+ <parameter name="tmp.so.callbackURL" value="`$payloadJson.input.callbackURL`"/>
+ <parameter name="tmp.status" value="`$error-code`"/>
+ <parameter name="tmp.reason" value="`$error-message`"/>
+ <parameter name="tmp.requestID" value="`$instantiateRANSlice-input.common-header.request-id`"/>
+ <parameter name="tmp.action" value="`$instantiateRANSlice-input.action`"/>
+ </set>
+ <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
+ <parameter name="file" value="/opt/opendaylight/current/data/log/so-callback-response.log" />
+ <parameter name="level" value="info" />
+ <parameter name="field1" value="URL for SO Callback Response"/>
+ <parameter name='field2' value="`$tmp.so.callbackURL`" />
+ <parameter name='field3' value="`$tmp.status`" />
+ <parameter name='field4' value="`$tmp.reason`" />
+ <parameter name='field5' value="`$tmp.requestID`" />
+ <parameter name='field6' value="`$tmp.action`" />
+ <parameter name='field7' value="`$tmp.CUCPList`" />
+ <parameter name='field8' value="`$tmp.CUUPList`" />
+ <parameter name='field9' value="`$tmp.DUList`" />
+ </record>
+ <execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >
+ <parameter name="templateFileName" value="`$prop.restapi.templateDir + '/ranSlice-so-response.json'`" />
+ <parameter name="restapiUrl" value="`$tmp.so.callbackURL`"/>
+ <parameter name="httpMethod" value="POST"/>
+ <parameter name="responsePrefix" value="so-callback-response"/>
+ <parameter name='contentType' value='application/json' />
+ <parameter name='format' value='json' />
+ <parameter name='accept' value='application/json' />
+ <outcome value='failure'>
+ <block>
+ <return status='failure'>
+ <parameter name='ack-final' value='Y'/>
+ <parameter name="error-code" value="500" />
+ <parameter name="error-message" value="Error sending SO Response" />
+ </return>
+ </block>
+ </outcome>
+ <outcome value='success'>
+ <block>
+ <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
+ <parameter name="file" value="/opt/opendaylight/current/data/log/instantiateRANSlice.log" />
+ <parameter name="level" value="info" />
+ <parameter name="field1" value="SO Response Sent "/>
+ </record>
+ </block>
+ </outcome>
+ </execute>
+ </block>
+ </block>
+ </outcome>
+ <outcome value='success'>
+ <block>
+ <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
+ <parameter name="file" value="/opt/opendaylight/current/data/log/instantiateRANSlice.log" />
+ <parameter name="level" value="info" />
+ <parameter name="field1" value="Successfully Obtained List of Cells from ConfigDB"/>
+ <parameter name="field2" value="`$getListofCells-configdb-response._length`"/>
+ <parameter name="field3" value="List of Cells in the Tracking Area Relevant for RAN Slice Instantiation "/>
+ </record>
+ <for index='idx' start='0' end='`$getListofCells-configdb-response._length `' >
+ <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'>
+ <parameter name='outputPath' value='tmp.trackingarea.cell' />
+ <parameter name='source' value="`'getListofCells-configdb-response.[' + $ids + ']'`" />
+ </execute>
+ <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
+ <parameter name="file" value="/opt/opendaylight/current/data/log/instantiateRANSlice.log" />
+ <parameter name="level" value="info" />
+ <parameter name="field1" value="`$tmp.trackingarea.cell`"/>
+ </record>
+ </for>
+ <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='printContext' >
+ <parameter name='filename' value='/opt/opendaylight/current/data/log/ranSlice-instantiateRANSlice-configrsp-context.log' />
+ </execute>
+ </block>
+ </outcome>
+ </execute>
+ </block>
+ <for index='id1' start='0' end="`$getRIC-configdb-response._length`" >
+ <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'>
+ <parameter name='outputPath' value='tmp.nearRTRICId' />
+ <parameter name='source' value="`'getRIC-configdb-response.[' + $id1 + '].nearRTRICId'`" />
+ </execute>
+ <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'>
+ <parameter name='outputPath' value='tmp.gNBId' />
+ <parameter name='source' value="`'getRIC-configdb-response.[' + $id1 + '].gNBId'`" />
+ </execute>
+ <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'>
+ <parameter name='outputPath' value='tmp.ranNFNSSIListEntry' />
+ <parameter name='source' value="`'getRIC-configdb-response.[' + $id1 + '].ranNFNSSIList[0]'`" />
+ </execute>
+ <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
+ <parameter name="file" value="/opt/opendaylight/current/data/log/instantiateRANSlice.log" />
+ <parameter name="level" value="info" />
+ <parameter name="field1" value="Config Payload Entry# "/>
+ <parameter name="field2" value="`$id1`"/>
+ <parameter name="field3" value="`$tmp.nearRTRICId`"/>
+ <parameter name="field4" value="`$tmp.gNBId`"/>
+ <parameter name="field5" value="`$tmp.ranNFNSSIListEntry`"/>
+ </record>
+ <block atomic='true'>
+ <set>
+ <parameter name='tmp.nearRTRIC.uLThptPerSlice' value='`$payloadJson.input.sliceProfile.uLThptPerSlice * 1.1`' />
+ <parameter name='tmp.nearRTRIC.dLThptPerSlice' value='`$payloadJson.input.sliceProfile.dLThptPerSlice * 1.1`' />
+ <parameter name='tmp.nearRTRIC.maxNumberOfConns' value='`$payloadJson.input.sliceProfile.maxNumberOfConns * 1.1`' />
+ </set>
+ <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
+ <parameter name="file" value="/opt/opendaylight/current/data/log/instantiateRANSlice.log" />
+ <parameter name="level" value="info" />
+ <parameter name="field1" value="Calculated uLThptPerSlice for nearRTRIC "/>
+ <parameter name="field2" value="`$tmp.nearRTRIC.uLThptPerSlice`"/>
+ <parameter name="field3" value="Calculated dLThptPerSlice for nearRTRIC"/>
+ <parameter name="field4" value="`$tmp.nearRTRIC.dLThptPerSlice`"/>
+ <parameter name="field5" value="Calculated maxNumberOfConns for nearRTRIC"/>
+ <parameter name="field6" value="`$tmp.nearRTRIC.maxNumberOfConns`"/>
+ </record>
+ <execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >
+ <parameter name="restapiUrl" value="`$prop.configdb.url + $prop.restapi.configdb.updatenearRTRIC`"/>
+ <parameter name="templateFileName" value="`$prop.restapi.templateDir + '/ranSlice-configDB-updatenearRTRIC.json'`" />
+ <parameter name="httpMethod" value="PUT"/>
+ <parameter name="responsePrefix" value="update-nearRTRIC-configdb-response"/>
+ <parameter name='contentType' value='application/json' />
+ <parameter name='format' value='json' />
+ <parameter name='accept' value='application/json' />
+ <parameter name="convertResponse" value="true"/>
+ <outcome value='failure'>
+ <block>
+ <set>
+ <parameter name='error-code' value='500'/>
+ <parameter name='error-message' value='Error updating nearRTRIC info in ConfigDB. Aborting RPC executiopn'/>
+ </set>
+ <return status='failure'>
+ <parameter name='ack-final' value='Y'/>
+ <parameter name='error-code' value='500'/>
+ <parameter name='error-message' value='Error updating nearRTRIC info in ConfigDB. Aborting RPC executiopn'/>
+ </return>
+ <block atomic='true'>
+ <set>
+ <parameter name="tmp.so.callbackURL" value="`$payloadJson.input.callbackURL`"/>
+ <parameter name="tmp.status" value="`$error-code`"/>
+ <parameter name="tmp.reason" value="`$error-message`"/>
+ <parameter name="tmp.requestID" value="`$instantiateRANSlice-input.common-header.request-id`"/>
+ <parameter name="tmp.action" value="`$instantiateRANSlice-input.action`"/>
+ </set>
+ <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
+ <parameter name="file" value="/opt/opendaylight/current/data/log/so-callback-response.log" />
+ <parameter name="level" value="info" />
+ <parameter name="field1" value="URL for SO Callback Response"/>
+ <parameter name='field2' value="`$tmp.so.callbackURL`" />
+ <parameter name='field3' value="`$tmp.status`" />
+ <parameter name='field4' value="`$tmp.reason`" />
+ <parameter name='field5' value="`$tmp.requestID`" />
+ <parameter name='field6' value="`$tmp.action`" />
+ <parameter name='field7' value="`$tmp.CUCPList`" />
+ <parameter name='field8' value="`$tmp.CUUPList`" />
+ <parameter name='field9' value="`$tmp.DUList`" />
+ </record>
+ <execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >
+ <parameter name="templateFileName" value="`$prop.restapi.templateDir + '/ranSlice-so-response.json'`" />
+ <parameter name="restapiUrl" value="`$tmp.so.callbackURL`"/>
+ <parameter name="httpMethod" value="POST"/>
+ <parameter name="responsePrefix" value="so-callback-response"/>
+ <parameter name='contentType' value='application/json' />
+ <parameter name='format' value='json' />
+ <parameter name='accept' value='application/json' />
+ <outcome value='failure'>
+ <block>
+ <return status='failure'>
+ <parameter name='ack-final' value='Y'/>
+ <parameter name="error-code" value="500" />
+ <parameter name="error-message" value="Error sending SO Response" />
+ </return>
+ </block>
+ </outcome>
+ <outcome value='success'>
+ <block>
+ <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
+ <parameter name="file" value="/opt/opendaylight/current/data/log/instantiateRANSlice.log" />
+ <parameter name="level" value="info" />
+ <parameter name="field1" value="SO Response Sent "/>
+ </record>
+ </block>
+ </outcome>
+ </execute>
+ </block>
+ </block>
+ </outcome>
+ <outcome value='success'>
+ <block>
+ <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
+ <parameter name="file" value="/opt/opendaylight/current/data/log/instantiateRANSlice.log" />
+ <parameter name="level" value="info" />
+ <parameter name="field1" value="Successfully Updated NearRT RIC info in ConfigDB"/>
+ </record>
+ </block>
+ </outcome>
+ </execute>
+ </block>
+ <block atomic='true'>
+ <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'>
+ <parameter name='outputPath' value='tmp.CUCPListEntries' />
+ <parameter name='source' value="`'getRIC-configdb-response.[' + $id1 + '].gNBCUCPList_length'`" />
+ </execute>
+ <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
+ <parameter name="file" value="/opt/opendaylight/current/data/log/instantiateRANSlice.log" />
+ <parameter name="level" value="info" />
+ <parameter name="field1" value="Number of CUCP List Entries "/>
+ <parameter name="field2" value="`$tmp.CUCPListEntries`"/>
+ </record>
+ <set>
+ <parameter name='tmp.maxNumberOfConns' value='`$payloadJson.input.sliceProfile.maxNumberOfConns * 1.1`' />
+ </set>
+ <for index='id2' start='0' end='`$tmp.CUCPListEntries`' >
+ <block atomic='true'>
+ <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'>
+ <parameter name='outputPath' value='tmp.cellCUListEntries' />
+ <parameter name='source' value="`'getRIC-configdb-response.[' + $id1 + '].gNBCUCPList[' + $id2 + '].cellCUList_length'`" />
+ </execute>
+ <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'>
+ <parameter name='outputPath' value='tmp.gNBCUCPList.gNBCUName' />
+ <parameter name='source' value="`'getRIC-configdb-response.[' + $id1 + '].gNBCUCPList[' + $id2 + '].gNBCUName'`" />
+ </execute>
+ <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'>
+ <parameter name='outputPath' value='tmp.gNBCUCPList.gNBId' />
+ <parameter name='source' value="`'getRIC-configdb-response.[' + $id1 + '].gNBCUCPList[' + $id2 + '].gNBId'`" />
+ </execute>
+ <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'>
+ <parameter name='outputPath' value='tmp.gNBCUCPList.gNBIdLength' />
+ <parameter name='source' value="`'getRIC-configdb-response.[' + $id1 + '].gNBCUCPList[' + $id2 + '].gNBIdLength'`" />
+ </execute>
+ <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'>
+ <parameter name='outputPath' value='tmp.gNBCUCPList.nFType' />
+ <parameter name='source' value="`'getRIC-configdb-response.[' + $id1 + '].gNBCUCPList[' + $id2 + '].nFType'`" />
+ </execute>
+ <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'>
+ <parameter name='outputPath' value='tmp.gNBCUCPList.pLMNId' />
+ <parameter name='source' value="`'getRIC-configdb-response.[' + $id1 + '].gNBCUCPList[' + $id2 + '].pLMNId'`" />
+ </execute>
+ </block>
+ <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
+ <parameter name="file" value="/opt/opendaylight/current/data/log/instantiateRANSlice.log" />
+ <parameter name="level" value="info" />
+ <parameter name="field1" value="Numberof cellCU of Entries "/>
+ <parameter name="field2" value="`$tmp.cellCUListEntries`"/>
+ <parameter name="field3" value="`$tmp.gNBCUCPList.gNBCUName`"/>
+ <parameter name="field4" value="`$tmp.gNBCUCPList.gNBId`"/>
+ <parameter name="field5" value="`$tmp.gNBCUCPList.gNBIdLengthh`"/>
+ <parameter name="field6" value="`$tmp.gNBCUCPList.nFType`"/>
+ <parameter name="field7" value="`$tmp.gNBCUCPList.pLMNId`"/>
+ </record>
+ <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
+ <parameter name="file" value="/opt/opendaylight/current/data/log/instantiateRANSlice.log" />
+ <parameter name="level" value="info" />
+ <parameter name="field1" value="MCC "/>
+ <parameter name="field2" value="`$tmp.mcc`"/>
+ <parameter name="field3" value="MNC "/>
+ <parameter name="field4" value="`$tmp.mnc`"/>
+ <parameter name="field5" value="Calculated uLThptPerSlice "/>
+ <parameter name="field6" value="`$tmp.uLThptPerSlice`"/>
+ <parameter name="field7" value="Calculated dLThptPerSlice "/>
+ <parameter name="field8" value="`$tmp.dLThptPerSlice`"/>
+ <parameter name="field9" value="Calculated maxNumberOfConns "/>
+ <parameter name="field10" value="`$tmp.maxNumberOfConns`"/>
+ </record>
+ <block atomic='true'>
+ <set>
+ <parameter name='tmp.maxNumberOfConnsPercellCU' value='`$tmp.maxNumberOfConns / $tmp.cellCUListEntries`' />
+ <parameter name='tmp.rRMPolicyDedicatedRatio.CellCU1' value='`$tmp.maxNumberOfConnsPercellCU * 100`' />
+ <parameter name='tmp.rRMPolicyDedicatedRatio.CellCU' value='`$tmp.rRMPolicyDedicatedRatio.CellCU1 / $prop.nrcellcu.maxNumberOfConnsPerCell`' />
+ </set>
+ <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
+ <parameter name="file" value="/opt/opendaylight/current/data/log/instantiateRANSlice.log" />
+ <parameter name="level" value="info" />
+ <parameter name="field1" value="rRMPolicyDedicatedRatio for CellCU "/>
+ <parameter name="field2" value="`$tmp.rRMPolicyDedicatedRatio.CellCU`"/>
+ </record>
+ </block>
+ <for index='id3' start='0' end='`$getListofCells-configdb-response._length `' >
+ <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'>
+ <parameter name='outputPath' value='tmp.cellLocalId' />
+ <parameter name='source' value="`'getListofCells-configdb-response.[' + $id3 + ']'`" />
+ </execute>
+ <for index='idCell' start='0' end='`$tmp.cellCUListEntries `' >
+ <block atomic='true'>
+ <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'>
+ <parameter name='outputPath' value='tmp.gNBCUCPList.cellLocalId' />
+ <parameter name='source' value="`'getRIC-configdb-response.[' + $id1 + '].gNBCUCPList[' + $id2 + '].cellCUList[' + $idCell + '].cellLocalId'`" />
+ </execute>
+ <switch test="`$tmp.gNBCUCPList.cellLocalId == $tmp.cellLocalId`">
+ <outcome value='true'>
+ <block atomic='true'>
+ <block atomic='true'>
+ <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'>
+ <parameter name='outputPath' value='tmp.pLMNInfoListEntries' />
+ <parameter name='source' value="`'getRIC-configdb-response.[' + $id1 + '].gNBCUCPList[' + $id2 + '].cellCUList[' + $id3 + '].pLMNInfoList_length'`" />
+ </execute>
+ </block>
+ <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
+ <parameter name="file" value="/opt/opendaylight/current/data/log/instantiateRANSlice.log" />
+ <parameter name="level" value="info" />
+ <parameter name="field1" value="Numberof pLMNInfoList Entries "/>
+ <parameter name="field2" value="`$tmp.pLMNInfoListEntries`"/>
+ <parameter name="field3" value="cellLocalId from Relevant cells "/>
+ <parameter name="field4" value="`$tmp.cellLocalId`"/>
+ </record>
+ <for index='id4' start='0' end='`$tmp.pLMNInfoListEntries`' >
+ <block atomic='true'>
+ <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'>
+ <parameter name='outputPath' value='tmp.fromRAN.sNSSAI' />
+ <parameter name='source' value="`'getRIC-configdb-response.[' + $id1 + '].gNBDUList[' + $id2 + '].cellDUList[' + $id3 + '].pLMNInfoList[' + $id4 + '].sNSSAI.sNSSAI'`" />
+ </execute>
+ <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
+ <parameter name="file" value="/opt/opendaylight/current/data/log/instantiateRANSlice.log" />
+ <parameter name="level" value="info" />
+ <parameter name="field1" value="sNSSAI from RAN to check if already exists "/>
+ <parameter name="field2" value="`$tmp.fromRAN.sNSSAI`"/>
+ </record>
+ </block>
+ </for>
+ <block atomic='true'>
+ <switch test='`$prop.ransim-mounted`'>
+ <outcome value='false'>
+ <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >
+ <parameter name="source" value="`$prop.restapi.addPLMNInfoListEntry.ToNRCellCU`"/>
+ <parameter name="outputPath" value="tmp.addPLMNInfoListEntry.ToNRCellCU.url"/>
+ <parameter name="target" value="{idNearRTRIC}"/>
+ <parameter name="replacement" value="`$tmp.nearRTRICId`"/>
+ </execute>
+ </outcome>
+ <outcome value='true'>
+ <block atomic='true'>
+ <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >
+ <parameter name="source" value="`$prop.restapi.addPLMNInfoListEntry.ToNRCellCU.ransim-mounted`"/>
+ <parameter name="outputPath" value="tmp.addPLMNInfoListEntry.ToNRCellCU.url"/>
+ <parameter name="target" value="{idNearRTRIC}"/>
+ <parameter name="replacement" value="`$tmp.nearRTRICId`"/>
+ </execute>
+ <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >
+ <parameter name="source" value="`$tmp.addPLMNInfoListEntry.ToNRCellCU.url`"/>
+ <parameter name="outputPath" value="tmp.addPLMNInfoListEntry.ToNRCellCU.url"/>
+ <parameter name="target" value="{mountName}"/>
+ <parameter name="replacement" value="`$tmp.gNBCUCPList.gNBCUName`"/>
+ </execute>
+ </block>
+ </outcome>
+ </switch>
+ <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >
+ <parameter name="source" value="`$tmp.addPLMNInfoListEntry.ToNRCellCU.url`"/>
+ <parameter name="outputPath" value="tmp.addPLMNInfoListEntry.ToNRCellCU.url"/>
+ <parameter name="target" value="{idGNBCUCPFunction}"/>
+ <parameter name="replacement" value="`$tmp.gNBCUCPList.gNBCUName`"/>
+ </execute>
+ <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >
+ <parameter name="source" value="`$tmp.addPLMNInfoListEntry.ToNRCellCU.url`"/>
+ <parameter name="outputPath" value="tmp.addPLMNInfoListEntry.ToNRCellCU.url"/>
+ <parameter name="target" value="{idNRCellCU}"/>
+ <parameter name="replacement" value="`$tmp.cellLocalId`"/>
+ </execute>
+ <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >
+ <parameter name="source" value="`$tmp.addPLMNInfoListEntry.ToNRCellCU.url`"/>
+ <parameter name="outputPath" value="tmp.addPLMNInfoListEntry.ToNRCellCU.url"/>
+ <parameter name="target" value="{mcc}"/>
+ <parameter name="replacement" value="`$tmp.mcc`"/>
+ </execute>
+ <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >
+ <parameter name="source" value="`$tmp.addPLMNInfoListEntry.ToNRCellCU.url`"/>
+ <parameter name="outputPath" value="tmp.addPLMNInfoListEntry.ToNRCellCU.url"/>
+ <parameter name="target" value="{mnc}"/>
+ <parameter name="replacement" value="`$tmp.mnc`"/>
+ </execute>
+ <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
+ <parameter name="file" value="/opt/opendaylight/current/data/log/instantiateRANSlice.log" />
+ <parameter name="level" value="info" />
+ <parameter name="field1" value="Add PLMNInfoListEntry ToNRCellCU URL"/>
+ <parameter name="field2" value="`$tmp.addPLMNInfoListEntry.ToNRCellCU.url`"/>
+ </record>
+ <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
+ <parameter name="file" value="/opt/opendaylight/current/data/log/instantiateRANSlice.log" />
+ <parameter name="level" value="info" />
+ <parameter name="field1" value="Setting variables for PLMNInfoList Entry Add to NRCellCU"/>
+ <parameter name="field2" value="`$prop.controller.url + $tmp.addPLMNInfoListEntry.ToNRCellCU.url`"/>
+ <parameter name="field3" value="`$tmp.mcc`"/>
+ <parameter name="field4" value="`$tmp.mnc`"/>
+ <parameter name="field5" value="`$payloadJson.input.sliceProfile.sNSSAI`"/>
+ <parameter name="field6" value="`$tmp.uLThptPerSlice`"/>
+ <parameter name="field7" value="`$tmp.dLThptPerSlice`"/>
+ </record>
+ <execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >
+ <parameter name="templateFileName" value="`$prop.restapi.templateDir + '/ranSlice-add-get-PLMNInfoListEntry-NRCellCU.json'`" />
+ <parameter name="restapiUrl" value="`$prop.controller.url + $tmp.addPLMNInfoListEntry.ToNRCellCU.url`"/>
+ <parameter name="restapiUser" value="`$prop.controller.user`" />
+ <parameter name="restapiPassword" value="`$prop.controller.pwd`"/>
+ <parameter name="httpMethod" value="PUT"/>
+ <parameter name="responsePrefix" value="PLMNInfoListEntry-response"/>
+ <parameter name='contentType' value='application/json' />
+ <parameter name='format' value='json' />
+ <outcome value='failure'>
+ <block>
+ <return status='failure'>
+ <parameter name='ack-final' value='Y'/>
+ <parameter name="error-code" value="500" />
+ <parameter name="error-message" value="Error adding PLMNInfoList Entry to NRCellCU" />
+ </return>
+ <block atomic='true'>
+ <set>
+ <parameter name="tmp.so.callbackURL" value="`$payloadJson.input.callbackURL`"/>
+ <parameter name="tmp.status" value="`$error-code`"/>
+ <parameter name="tmp.reason" value="`$error-message`"/>
+ <parameter name="tmp.requestID" value="`$instantiateRANSlice-input.common-header.request-id`"/>
+ <parameter name="tmp.action" value="`$instantiateRANSlice-input.action`"/>
+ </set>
+ <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
+ <parameter name="file" value="/opt/opendaylight/current/data/log/so-callback-response.log" />
+ <parameter name="level" value="info" />
+ <parameter name="field1" value="URL for SO Callback Response"/>
+ <parameter name='field2' value="`$tmp.so.callbackURL`" />
+ <parameter name='field3' value="`$tmp.status`" />
+ <parameter name='field4' value="`$tmp.reason`" />
+ <parameter name='field5' value="`$tmp.requestID`" />
+ <parameter name='field6' value="`$tmp.action`" />
+ <parameter name='field7' value="`$tmp.CUCPList`" />
+ <parameter name='field8' value="`$tmp.CUUPList`" />
+ <parameter name='field9' value="`$tmp.DUList`" />
+ </record>
+ <execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >
+ <parameter name="templateFileName" value="`$prop.restapi.templateDir + '/ranSlice-so-response.json'`" />
+ <parameter name="restapiUrl" value="`$tmp.so.callbackURL`"/>
+ <parameter name="httpMethod" value="POST"/>
+ <parameter name="responsePrefix" value="so-callback-response"/>
+ <parameter name='contentType' value='application/json' />
+ <parameter name='format' value='json' />
+ <parameter name='accept' value='application/json' />
+ <outcome value='failure'>
+ <block>
+ <return status='failure'>
+ <parameter name='ack-final' value='Y'/>
+ <parameter name="error-code" value="500" />
+ <parameter name="error-message" value="Error sending SO Response" />
+ </return>
+ </block>
+ </outcome>
+ <outcome value='success'>
+ <block>
+ <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
+ <parameter name="file" value="/opt/opendaylight/current/data/log/instantiateRANSlice.log" />
+ <parameter name="level" value="info" />
+ <parameter name="field1" value="SO Response Sent "/>
+ </record>
+ </block>
+ </outcome>
+ </execute>
+ </block>
+ </block>
+ </outcome>
+ <outcome value='success'>
+ <block>
+ <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
+ <parameter name="file" value="/opt/opendaylight/current/data/log/instantiateRANSlice.log" />
+ <parameter name="level" value="info" />
+ <parameter name="field1" value="PLMNInfo List Entry Add to NRCELLCU Executed Successfully "/>
+ </record>
+ </block>
+ </outcome>
+ </execute>
+ </block>
+ <block atomic='true'>
+ <switch test='`$prop.ransim-mounted`'>
+ <outcome value='false'>
+ <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >
+ <parameter name="source" value="`$prop.restapi.addRRMPolicyRatio.ToNRCellCU`"/>
+ <parameter name="outputPath" value="tmp.addRRMPolicyRatio.ToNRCellCU.url"/>
+ <parameter name="target" value="{idNearRTRIC}"/>
+ <parameter name="replacement" value="`$tmp.nearRTRICId`"/>
+ </execute>
+ </outcome>
+ <outcome value='true'>
+ <block atomic='true'>
+ <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >
+ <parameter name="source" value="`$prop.restapi.addRRMPolicyRatio.ToNRCellCU.ransim-mounted`"/>
+ <parameter name="outputPath" value="tmp.addRRMPolicyRatio.ToNRCellCU.url"/>
+ <parameter name="target" value="{idNearRTRIC}"/>
+ <parameter name="replacement" value="`$tmp.nearRTRICId`"/>
+ </execute>
+ <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >
+ <parameter name="source" value="`$tmp.addRRMPolicyRatio.ToNRCellCU.url`"/>
+ <parameter name="outputPath" value="tmp.addRRMPolicyRatio.ToNRCellCU.url"/>
+ <parameter name="target" value="{mountName}"/>
+ <parameter name="replacement" value="`$tmp.gNBCUCPList.gNBCUName`"/>
+ </execute>
+ </block>
+ </outcome>
+ </switch>
+ <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >
+ <parameter name="source" value="`$tmp.addRRMPolicyRatio.ToNRCellCU.url`"/>
+ <parameter name="outputPath" value="tmp.addRRMPolicyRatio.ToNRCellCU.url"/>
+ <parameter name="target" value="{idGNBCUCPFunction}"/>
+ <parameter name="replacement" value="`$tmp.gNBCUCPList.gNBCUName`"/>
+ </execute>
+ <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >
+ <parameter name="source" value="`$tmp.addRRMPolicyRatio.ToNRCellCU.url`"/>
+ <parameter name="outputPath" value="tmp.addRRMPolicyRatio.ToNRCellCU.url"/>
+ <parameter name="target" value="{idNRCellCU}"/>
+ <parameter name="replacement" value="`$tmp.cellLocalId`"/>
+ </execute>
+ <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >
+ <parameter name="source" value="`$tmp.addRRMPolicyRatio.ToNRCellCU.url`"/>
+ <parameter name="outputPath" value="tmp.addRRMPolicyRatio.ToNRCellCU.url"/>
+ <parameter name="target" value="{id}"/>
+ <parameter name="replacement" value="`$tmp.RRMPolicyRatioID.NRCellCU`"/>
+ </execute>
+ <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
+ <parameter name="file" value="/opt/opendaylight/current/data/log/instantiateRANSlice.log" />
+ <parameter name="level" value="info" />
+ <parameter name="field1" value="addRRMPolicyRatio ToNRCellCU URL"/>
+ <parameter name="field2" value="`$tmp.addRRMPolicyRatio.ToNRCellCU.url`"/>
+ </record>
+ <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
+ <parameter name="file" value="/opt/opendaylight/current/data/log/instantiateRANSlice.log" />
+ <parameter name="level" value="info" />
+ <parameter name="field1" value="Setting variables for addRRMPolicyRatio to NRCellCU"/>
+ <parameter name="field2" value="`$prop.controller.url + $tmp.addRRMPolicyRatio.ToNRCellCU.url`"/>
+ <parameter name="field3" value="`$tmp.mcc`"/>
+ <parameter name="field4" value="`$tmp.mnc`"/>
+ <parameter name="field5" value="`$payloadJson.input.sliceProfile.sNSSAI`"/>
+ <parameter name="field6" value="`$tmp.uLThptPerSlice`"/>
+ <parameter name="field7" value="`$tmp.dLThptPerSlice`"/>
+ </record>
+ <execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >
+ <parameter name="templateFileName" value="`$prop.restapi.templateDir + '/ranSlice-add-RRMPolicyRatio-NRCellCU.json'`" />
+ <parameter name="restapiUrl" value="`$prop.controller.url + $tmp.addRRMPolicyRatio.ToNRCellCU.url`"/>
+ <parameter name="restapiUser" value="`$prop.controller.user`" />
+ <parameter name="restapiPassword" value="`$prop.controller.pwd`"/>
+ <parameter name="httpMethod" value="PUT"/>
+ <parameter name="responsePrefix" value="addRRMPolicyRatio-response"/>
+ <parameter name='contentType' value='application/json' />
+ <parameter name='format' value='json' />
+ <outcome value='failure'>
+ <block>
+ <return status='failure'>
+ <parameter name='ack-final' value='Y'/>
+ <parameter name="error-code" value="500" />
+ <parameter name="error-message" value="Error adding RRMPolicyr" />
+ </return>
+ <block atomic='true'>
+ <set>
+ <parameter name="tmp.so.callbackURL" value="`$payloadJson.input.callbackURL`"/>
+ <parameter name="tmp.status" value="`$error-code`"/>
+ <parameter name="tmp.reason" value="`$error-message`"/>
+ <parameter name="tmp.requestID" value="`$instantiateRANSlice-input.common-header.request-id`"/>
+ <parameter name="tmp.action" value="`$instantiateRANSlice-input.action`"/>
+ </set>
+ <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
+ <parameter name="file" value="/opt/opendaylight/current/data/log/so-callback-response.log" />
+ <parameter name="level" value="info" />
+ <parameter name="field1" value="URL for SO Callback Response"/>
+ <parameter name='field2' value="`$tmp.so.callbackURL`" />
+ <parameter name='field3' value="`$tmp.status`" />
+ <parameter name='field4' value="`$tmp.reason`" />
+ <parameter name='field5' value="`$tmp.requestID`" />
+ <parameter name='field6' value="`$tmp.action`" />
+ <parameter name='field7' value="`$tmp.CUCPList`" />
+ <parameter name='field8' value="`$tmp.CUUPList`" />
+ <parameter name='field9' value="`$tmp.DUList`" />
+ </record>
+ <execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >
+ <parameter name="templateFileName" value="`$prop.restapi.templateDir + '/ranSlice-so-response.json'`" />
+ <parameter name="restapiUrl" value="`$tmp.so.callbackURL`"/>
+ <parameter name="httpMethod" value="POST"/>
+ <parameter name="responsePrefix" value="so-callback-response"/>
+ <parameter name='contentType' value='application/json' />
+ <parameter name='format' value='json' />
+ <parameter name='accept' value='application/json' />
+ <outcome value='failure'>
+ <block>
+ <return status='failure'>
+ <parameter name='ack-final' value='Y'/>
+ <parameter name="error-code" value="500" />
+ <parameter name="error-message" value="Error sending SO Response" />
+ </return>
+ </block>
+ </outcome>
+ <outcome value='success'>
+ <block>
+ <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
+ <parameter name="file" value="/opt/opendaylight/current/data/log/instantiateRANSlice.log" />
+ <parameter name="level" value="info" />
+ <parameter name="field1" value="SO Response Sent "/>
+ </record>
+ </block>
+ </outcome>
+ </execute>
+ </block>
+ </block>
+ </outcome>
+ <outcome value='success'>
+ <block>
+ <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
+ <parameter name="file" value="/opt/opendaylight/current/data/log/instantiateRANSlice.log" />
+ <parameter name="level" value="info" />
+ <parameter name="field1" value="addRRMPolicyRatio to NRCELLCU Executed Successfully "/>
+ </record>
+ </block>
+ </outcome>
+ </execute>
+ </block>
+ <execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >
+ <parameter name="restapiUrl" value="`$prop.configdb.url + $prop.restapi.configdb.updategNBCUCP`"/>
+ <parameter name="templateFileName" value="`$prop.restapi.templateDir + '/ranSlice-configDB-updategNBCUCP.json'`" />
+ <parameter name="httpMethod" value="PUT"/>
+ <parameter name="responsePrefix" value="update-gNBCUCP-configdb-response"/>
+ <parameter name='contentType' value='application/json' />
+ <parameter name='format' value='json' />
+ <parameter name='accept' value='application/json' />
+ <parameter name="convertResponse" value="true"/>
+ <outcome value='failure'>
+ <block>
+ <set>
+ <parameter name='error-code' value='500'/>
+ <parameter name='error-message' value='Error updating configCUCP info in ConfigDB. Aborting RPC executiopn'/>
+ </set>
+ <return status='failure'>
+ <parameter name='ack-final' value='Y'/>
+ <parameter name='error-code' value='500'/>
+ <parameter name='error-message' value='Error updating nearRTRIC info in ConfigDB. Aborting RPC executiopn'/>
+ </return>
+ <block atomic='true'>
+ <set>
+ <parameter name="tmp.so.callbackURL" value="`$payloadJson.input.callbackURL`"/>
+ <parameter name="tmp.status" value="`$error-code`"/>
+ <parameter name="tmp.reason" value="`$error-message`"/>
+ <parameter name="tmp.requestID" value="`$instantiateRANSlice-input.common-header.request-id`"/>
+ <parameter name="tmp.action" value="`$instantiateRANSlice-input.action`"/>
+ </set>
+ <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
+ <parameter name="file" value="/opt/opendaylight/current/data/log/so-callback-response.log" />
+ <parameter name="level" value="info" />
+ <parameter name="field1" value="URL for SO Callback Response"/>
+ <parameter name='field2' value="`$tmp.so.callbackURL`" />
+ <parameter name='field3' value="`$tmp.status`" />
+ <parameter name='field4' value="`$tmp.reason`" />
+ <parameter name='field5' value="`$tmp.requestID`" />
+ <parameter name='field6' value="`$tmp.action`" />
+ <parameter name='field7' value="`$tmp.CUCPList`" />
+ <parameter name='field8' value="`$tmp.CUUPList`" />
+ <parameter name='field9' value="`$tmp.DUList`" />
+ </record>
+ <execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >
+ <parameter name="templateFileName" value="`$prop.restapi.templateDir + '/ranSlice-so-response.json'`" />
+ <parameter name="restapiUrl" value="`$tmp.so.callbackURL`"/>
+ <parameter name="httpMethod" value="POST"/>
+ <parameter name="responsePrefix" value="so-callback-response"/>
+ <parameter name='contentType' value='application/json' />
+ <parameter name='format' value='json' />
+ <parameter name='accept' value='application/json' />
+ <outcome value='failure'>
+ <block>
+ <return status='failure'>
+ <parameter name='ack-final' value='Y'/>
+ <parameter name="error-code" value="500" />
+ <parameter name="error-message" value="Error sending SO Response" />
+ </return>
+ </block>
+ </outcome>
+ <outcome value='success'>
+ <block>
+ <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
+ <parameter name="file" value="/opt/opendaylight/current/data/log/instantiateRANSlice.log" />
+ <parameter name="level" value="info" />
+ <parameter name="field1" value="SO Response Sent "/>
+ </record>
+ </block>
+ </outcome>
+ </execute>
+ </block>
+ </block>
+ </outcome>
+ <outcome value='success'>
+ <block>
+ <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
+ <parameter name="file" value="/opt/opendaylight/current/data/log/instantiateRANSlice.log" />
+ <parameter name="level" value="info" />
+ <parameter name="field1" value="Successfully Updated gNBCUCP info in ConfigDB"/>
+ </record>
+ </block>
+ </outcome>
+ </execute>
+ </block>
+ </outcome>
+ </switch>
+ </block>
+ </for>
+ </for>
+ <execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >
+ <parameter name="restapiUrl" value="`$prop.configdb.url + $prop.restapi.configdb.updateRRMPolicy`"/>
+ <parameter name="templateFileName" value="`$prop.restapi.templateDir + '/ranSlice-configDB-updateRRMPolicy-CUCP.json'`" />
+ <parameter name="httpMethod" value="PUT"/>
+ <parameter name="responsePrefix" value="update-gNBCUCP-rrmpolicy-configdb-response"/>
+ <parameter name='contentType' value='application/json' />
+ <parameter name='format' value='json' />
+ <parameter name='accept' value='application/json' />
+ <parameter name="convertResponse" value="true"/>
+ <outcome value='failure'>
+ <block>
+ <block atomic='true'>
+ <set>
+ <parameter name="tmp.so.callbackURL" value="`$payloadJson.input.callbackURL`"/>
+ <parameter name="tmp.status" value="`$error-code`"/>
+ <parameter name="tmp.reason" value="`$error-message`"/>
+ <parameter name="tmp.requestID" value="`$instantiateRANSlice-input.common-header.request-id`"/>
+ <parameter name="tmp.action" value="`$instantiateRANSlice-input.action`"/>
+ </set>
+ <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
+ <parameter name="file" value="/opt/opendaylight/current/data/log/so-callback-response.log" />
+ <parameter name="level" value="info" />
+ <parameter name="field1" value="URL for SO Callback Response"/>
+ <parameter name='field2' value="`$tmp.so.callbackURL`" />
+ <parameter name='field3' value="`$tmp.status`" />
+ <parameter name='field4' value="`$tmp.reason`" />
+ <parameter name='field5' value="`$tmp.requestID`" />
+ <parameter name='field6' value="`$tmp.action`" />
+ <parameter name='field7' value="`$tmp.CUCPList`" />
+ <parameter name='field8' value="`$tmp.CUUPList`" />
+ <parameter name='field9' value="`$tmp.DUList`" />
+ </record>
+ <execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >
+ <parameter name="templateFileName" value="`$prop.restapi.templateDir + '/ranSlice-so-response.json'`" />
+ <parameter name="restapiUrl" value="`$tmp.so.callbackURL`"/>
+ <parameter name="httpMethod" value="POST"/>
+ <parameter name="responsePrefix" value="so-callback-response"/>
+ <parameter name='contentType' value='application/json' />
+ <parameter name='format' value='json' />
+ <parameter name='accept' value='application/json' />
+ <outcome value='failure'>
+ <block>
+ <return status='failure'>
+ <parameter name='ack-final' value='Y'/>
+ <parameter name="error-code" value="500" />
+ <parameter name="error-message" value="Error sending SO Response" />
+ </return>
+ </block>
+ </outcome>
+ <outcome value='success'>
+ <block>
+ <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
+ <parameter name="file" value="/opt/opendaylight/current/data/log/instantiateRANSlice.log" />
+ <parameter name="level" value="info" />
+ <parameter name="field1" value="SO Response Sent "/>
+ </record>
+ </block>
+ </outcome>
+ </execute>
+ </block>
+ <set>
+ <parameter name='error-code' value='500'/>
+ <parameter name='error-message' value='Error updating RRMPolicy CUCP info in ConfigDB. Aborting RPC executiopn'/>
+ </set>
+ <return status='failure'>
+ <parameter name='ack-final' value='Y'/>
+ <parameter name='error-code' value='500'/>
+ <parameter name='error-message' value='Error updating RRMPolicy CUCP info in ConfigDB. Aborting RPC executiopn'/>
+ </return>
+ </block>
+ </outcome>
+ <outcome value='success'>
+ <block>
+ <set>
+ <parameter name='prop.configDB.rrmPolicyID' value='`$prop.configDB.rrmPolicyID + 1`' />
+ </set>
+ <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
+ <parameter name="file" value="/opt/opendaylight/current/data/log/instantiateRANSlice.log" />
+ <parameter name="level" value="info" />
+ <parameter name="field1" value="Successfully Updated RRMPolicy CUCP info in ConfigDB"/>
+ </record>
+ </block>
+ </outcome>
+ </execute>
+ </for>
+ </block>
+ <block atomic='true'>
+ <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'>
+ <parameter name='outputPath' value='tmp.CUUPListEntries' />
+ <parameter name='source' value="`'getRIC-configdb-response.[' + $id1 + '].gNBCUUPList_length'`" />
+ </execute>
+ <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
+ <parameter name="file" value="/opt/opendaylight/current/data/log/instantiateRANSlice.log" />
+ <parameter name="level" value="info" />
+ <parameter name="field1" value="getListofCells-configdb-response. "/>
+ <parameter name="field2" value="`$tmp.CUUPListEntries`"/>
+ </record>
+ <set>
+ <parameter name='tmp.maxNumberOfConns' value='`$payloadJson.input.sliceProfile.maxNumberOfConns * 1.1`' />
+ <parameter name='tmp.TotalNumberOfDRBForNSSAI' value='`$tmp.maxNumberOfConns * .6`' />
+ <parameter name='tmp.DRBPerCUUPForSNSSAI' value='`$tmp.TotalNumberOfDRBForNSSAI / $tmp.CUUPListEntries`' />
+ </set>
+ <block atomic='true'>
+ <set>
+ <parameter name='tmp.rRMPolicyDedicatedRatio.CUUP1' value='`$tmp.DRBPerCUUPForSNSSAI * 100`' />
+ <parameter name='tmp.rRMPolicyDedicatedRatio.CUUP' value='`$tmp.rRMPolicyDedicatedRatio.CUUP1 / $prop.cuupfunction.maxNumberOfDRBsPerCUUP`' />
+ </set>
+ <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
+ <parameter name="file" value="/opt/opendaylight/current/data/log/instantiateRANSlice.log" />
+ <parameter name="level" value="info" />
+ <parameter name="field1" value="rRMPolicyDedicatedRatio for CUUP "/>
+ <parameter name="field2" value="`$tmp.rRMPolicyDedicatedRatio.CUUP`"/>
+ </record>
+ </block>
+ <for index='id2' start='0' end='`$tmp.CUUPListEntries `' >
+ <block atomic='true'>
+ <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'>
+ <parameter name='outputPath' value='tmp.gNBCUUPList.gNBCUUPId' />
+ <parameter name='source' value="`'getRIC-configdb-response.[' + $id1 + '].gNBCUUPList[' + $id2 + '].gNBCUUPId'`" />
+ </execute>
+ <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'>
+ <parameter name='outputPath' value='tmp.gNBCUUPList.gNBId' />
+ <parameter name='source' value="`'getRIC-configdb-response.[' + $id1 + '].gNBCUUPList[' + $id2 + '].gNBId'`" />
+ </execute>
+ <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'>
+ <parameter name='outputPath' value='tmp.gNBCUUPList.gNBIdLength' />
+ <parameter name='source' value="`'getRIC-configdb-response.[' + $id1 + '].gNBCUUPList[' + $id2 + '].gNBIdLength'`" />
+ </execute>
+ <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'>
+ <parameter name='outputPath' value='tmp.pLMNInfoListEntries' />
+ <parameter name='source' value="`'getRIC-configdb-response.[' + $id1 + '].gNBCUUPList[' + $id2 + '].pLMNInfoList_length'`" />
+ </execute>
+ </block>
+ <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
+ <parameter name="file" value="/opt/opendaylight/current/data/log/instantiateRANSlice.log" />
+ <parameter name="level" value="info" />
+ <parameter name="field1" value="CUCP Details "/>
+ <parameter name="field2" value="`$tmp.gNBCUUPList.gNBCUUPId`"/>
+ <parameter name="field3" value="`$tmp.gNBCUUPList.gNBId`"/>
+ <parameter name="field4" value="`$tmp.gNBCUUPList.gNBIdLength`"/>
+ <parameter name="field5" value="`$tmp.gNBCUUPList.pLMNInfoList_length`"/>
+ <parameter name="field6" value="`$tmp.payload.pLMNId`"/>
+ </record>
+ <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
+ <parameter name="file" value="/opt/opendaylight/current/data/log/instantiateRANSlice.log" />
+ <parameter name="level" value="info" />
+ <parameter name="field1" value="MCC "/>
+ <parameter name="field2" value="`$tmp.mcc`"/>
+ <parameter name="field3" value="MNC "/>
+ <parameter name="field4" value="`$tmp.mnc`"/>
+ <parameter name="field5" value="Calculated uLThptPerSlice "/>
+ <parameter name="field6" value="`$tmp.uLThptPerSlice`"/>
+ <parameter name="field7" value="Calculated dLThptPerSlice "/>
+ <parameter name="field8" value="`$tmp.dLThptPerSlice`"/>
+ </record>
+ <for index='id4' start='0' end='`$tmp.pLMNInfoListEntries`' >
+ <block atomic='true'>
+ <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'>
+ <parameter name='outputPath' value='tmp.fromRAN.sNSSAI' />
+ <parameter name='source' value="`'getRIC-configdb-response.[' + $id1 + '].gNBCUUPList[' + $id2 + '].pLMNInfoList[' + $id3 + '].sNSSAI'`" />
+ </execute>
+ <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
+ <parameter name="file" value="/opt/opendaylight/current/data/log/instantiateRANSlice.log" />
+ <parameter name="level" value="info" />
+ <parameter name="field1" value="sNSSAI from RAN to check if already exists "/>
+ <parameter name="field2" value="`$tmp.fromRAN.sNSSAI`"/>
+ </record>
+ </block>
+ </for>
+ <block atomic='true'>
+ <switch test='`$prop.ransim-mounted`'>
+ <outcome value='false'>
+ <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >
+ <parameter name="source" value="`$prop.restapi.addPLMNInfoListEntry.ToGNBCUUPFn`"/>
+ <parameter name="outputPath" value="tmp.addPLMNInfoListEntry.ToGNBCUUPFn.url"/>
+ <parameter name="target" value="{idNearRTRIC}"/>
+ <parameter name="replacement" value="`$tmp.nearRTRICId`"/>
+ </execute>
+ </outcome>
+ <outcome value='true'>
+ <block atomic='true'>
+ <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >
+ <parameter name="source" value="`$prop.restapi.addPLMNInfoListEntry.ToGNBCUUPFn.ransim-mounted`"/>
+ <parameter name="outputPath" value="tmp.addPLMNInfoListEntry.ToGNBCUUPFn.url"/>
+ <parameter name="target" value="{idNearRTRIC}"/>
+ <parameter name="replacement" value="`$tmp.nearRTRICId`"/>
+ </execute>
+ <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >
+ <parameter name="source" value="`$tmp.addPLMNInfoListEntry.ToGNBCUUPFn.url`"/>
+ <parameter name="outputPath" value="tmp.addPLMNInfoListEntry.ToGNBCUUPFn.url"/>
+ <parameter name="target" value="{mountName}"/>
+ <parameter name="replacement" value="`$tmp.gNBCUUPList.gNBCUUPId`"/>
+ </execute>
+ </block>
+ </outcome>
+ </switch>
+ <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >
+ <parameter name="source" value="`$tmp.addPLMNInfoListEntry.ToGNBCUUPFn.url`"/>
+ <parameter name="outputPath" value="tmp.addPLMNInfoListEntry.ToGNBCUUPFn.url"/>
+ <parameter name="target" value="{idGNBCUUPFunction}"/>
+ <parameter name="replacement" value="`$tmp.gNBCUUPList.gNBCUUPId`"/>
+ </execute>
+ <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >
+ <parameter name="source" value="`$tmp.addPLMNInfoListEntry.ToGNBCUUPFn.url`"/>
+ <parameter name="outputPath" value="tmp.addPLMNInfoListEntry.ToGNBCUUPFn.url"/>
+ <parameter name="target" value="{mcc}"/>
+ <parameter name="replacement" value="`$tmp.mcc`"/>
+ </execute>
+ <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >
+ <parameter name="source" value="`$tmp.addPLMNInfoListEntry.ToGNBCUUPFn.url`"/>
+ <parameter name="outputPath" value="tmp.addPLMNInfoListEntry.ToGNBCUUPFn.url"/>
+ <parameter name="target" value="{mnc}"/>
+ <parameter name="replacement" value="`$tmp.mnc`"/>
+ </execute>
+ <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
+ <parameter name="file" value="/opt/opendaylight/current/data/log/instantiateRANSlice.log" />
+ <parameter name="level" value="info" />
+ <parameter name="field1" value="Add PLMNInfoListEntry ToGNBCUUPFn URL"/>
+ <parameter name="field2" value="`$tmp.addPLMNInfoListEntry.ToGNBCUUPFn.url`"/>
+ </record>
+ <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
+ <parameter name="file" value="/opt/opendaylight/current/data/log/instantiateRANSlice.log" />
+ <parameter name="level" value="info" />
+ <parameter name="field1" value="Setting variables for PLMNInfoList Entry Add to NRCellCU"/>
+ <parameter name="field2" value="`$tmp.addPLMNInfoListEntry.ToNRCellDU.url`"/>
+ <parameter name="field3" value="`$tmp.mcc`"/>
+ <parameter name="field4" value="`$tmp.mnc`"/>
+ <parameter name="field5" value="`$payloadJson.input.sliceProfile.sNSSAI`"/>
+ <parameter name="field6" value="`$tmp.uLThptPerSlice`"/>
+ <parameter name="field7" value="`$tmp.dLThptPerSlice`"/>
+ </record>
+ <execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >
+ <parameter name="templateFileName" value="`$prop.restapi.templateDir + '/ranSlice-add-get-PLMNInfoListEntry-GNBCUUPFn.json'`" />
+ <parameter name="restapiUrl" value="`$prop.controller.url + $tmp.addPLMNInfoListEntry.ToGNBCUUPFn.url`"/>
+ <parameter name="restapiUser" value="`$prop.controller.user`" />
+ <parameter name="restapiPassword" value="`$prop.controller.pwd`"/>
+ <parameter name="httpMethod" value="PUT"/>
+ <parameter name="responsePrefix" value="PLMNInfoListEntry-response"/>
+ <parameter name='contentType' value='application/json' />
+ <parameter name='format' value='json' />
+ <outcome value='failure'>
+ <block>
+ <block atomic='true'>
+ <set>
+ <parameter name="tmp.so.callbackURL" value="`$payloadJson.input.callbackURL`"/>
+ <parameter name="tmp.status" value="`$error-code`"/>
+ <parameter name="tmp.reason" value="`$error-message`"/>
+ <parameter name="tmp.requestID" value="`$instantiateRANSlice-input.common-header.request-id`"/>
+ <parameter name="tmp.action" value="`$instantiateRANSlice-input.action`"/>
+ </set>
+ <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
+ <parameter name="file" value="/opt/opendaylight/current/data/log/so-callback-response.log" />
+ <parameter name="level" value="info" />
+ <parameter name="field1" value="URL for SO Callback Response"/>
+ <parameter name='field2' value="`$tmp.so.callbackURL`" />
+ <parameter name='field3' value="`$tmp.status`" />
+ <parameter name='field4' value="`$tmp.reason`" />
+ <parameter name='field5' value="`$tmp.requestID`" />
+ <parameter name='field6' value="`$tmp.action`" />
+ <parameter name='field7' value="`$tmp.CUCPList`" />
+ <parameter name='field8' value="`$tmp.CUUPList`" />
+ <parameter name='field9' value="`$tmp.DUList`" />
+ </record>
+ <execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >
+ <parameter name="templateFileName" value="`$prop.restapi.templateDir + '/ranSlice-so-response.json'`" />
+ <parameter name="restapiUrl" value="`$tmp.so.callbackURL`"/>
+ <parameter name="httpMethod" value="POST"/>
+ <parameter name="responsePrefix" value="so-callback-response"/>
+ <parameter name='contentType' value='application/json' />
+ <parameter name='format' value='json' />
+ <parameter name='accept' value='application/json' />
+ <outcome value='failure'>
+ <block>
+ <return status='failure'>
+ <parameter name='ack-final' value='Y'/>
+ <parameter name="error-code" value="500" />
+ <parameter name="error-message" value="Error sending SO Response" />
+ </return>
+ </block>
+ </outcome>
+ <outcome value='success'>
+ <block>
+ <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
+ <parameter name="file" value="/opt/opendaylight/current/data/log/instantiateRANSlice.log" />
+ <parameter name="level" value="info" />
+ <parameter name="field1" value="SO Response Sent "/>
+ </record>
+ </block>
+ </outcome>
+ </execute>
+ </block>
+ <return status='failure'>
+ <parameter name='ack-final' value='Y'/>
+ <parameter name="error-code" value="500" />
+ <parameter name="error-message" value="Error adding PLMNInfoList Entry to GNBCUUPFn" />
+ </return>
+ </block>
+ </outcome>
+ <outcome value='success'>
+ <block>
+ <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
+ <parameter name="file" value="/opt/opendaylight/current/data/log/instantiateRANSlice.log" />
+ <parameter name="level" value="info" />
+ <parameter name="field1" value="PLMNInfo List Entry Add Executed Successfully "/>
+ </record>
+ </block>
+ </outcome>
+ </execute>
+ </block>
+ <block atomic='true'>
+ <switch test='`$prop.ransim-mounted`'>
+ <outcome value='false'>
+ <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >
+ <parameter name="source" value="`$prop.restapi.addRRMPolicyRatio.ToGNBCUUPFn`"/>
+ <parameter name="outputPath" value="tmp.addRRMPolicyRatio.ToGNBCUUPFn.url"/>
+ <parameter name="target" value="{idNearRTRIC}"/>
+ <parameter name="replacement" value="`$tmp.nearRTRICId`"/>
+ </execute>
+ </outcome>
+ <outcome value='true'>
+ <block atomic='true'>
+ <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >
+ <parameter name="source" value="`$prop.restapi.addRRMPolicyRatio.ToGNBCUUPFn.ransim-mounted`"/>
+ <parameter name="outputPath" value="tmp.addRRMPolicyRatio.ToGNBCUUPFn.url"/>
+ <parameter name="target" value="{idNearRTRIC}"/>
+ <parameter name="replacement" value="`$tmp.nearRTRICId`"/>
+ </execute>
+ <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >
+ <parameter name="source" value="`$tmp.addRRMPolicyRatio.ToGNBCUUPFn.url`"/>
+ <parameter name="outputPath" value="tmp.addRRMPolicyRatio.ToGNBCUUPFn.url"/>
+ <parameter name="target" value="{mountName}"/>
+ <parameter name="replacement" value="`$tmp.gNBCUUPList.gNBCUUPId`"/>
+ </execute>
+ </block>
+ </outcome>
+ </switch>
+ <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >
+ <parameter name="source" value="`$tmp.addRRMPolicyRatio.ToGNBCUUPFn.url`"/>
+ <parameter name="outputPath" value="tmp.addRRMPolicyRatio.ToGNBCUUPFn.url"/>
+ <parameter name="target" value="{idGNBCUUPFunction}"/>
+ <parameter name="replacement" value="`$tmp.gNBCUUPList.gNBCUUPId`"/>
+ </execute>
+ <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >
+ <parameter name="source" value="`$tmp.addRRMPolicyRatio.ToGNBCUUPFn.url`"/>
+ <parameter name="outputPath" value="tmp.addRRMPolicyRatio.ToGNBCUUPFn.url"/>
+ <parameter name="target" value="{id}"/>
+ <parameter name="replacement" value="`$tmp.RRMPolicyRatioID.GNBCUUPFunction`"/>
+ </execute>
+ <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
+ <parameter name="file" value="/opt/opendaylight/current/data/log/instantiateRANSlice.log" />
+ <parameter name="level" value="info" />
+ <parameter name="field1" value="addRRMPolicyRatio ToGNBCUUPFn URL"/>
+ <parameter name="field2" value="`$tmp.addRRMPolicyRatio.ToGNBCUUPFn.url`"/>
+ </record>
+ <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
+ <parameter name="file" value="/opt/opendaylight/current/data/log/instantiateRANSlice.log" />
+ <parameter name="level" value="info" />
+ <parameter name="field1" value="Setting variables for addRRMPolicyRatio to GNBCUUPFn"/>
+ <parameter name="field2" value="`$tmp.addRRMPolicyRatio.ToGNBCUUPFn.url`"/>
+ <parameter name="field3" value="`$tmp.mcc`"/>
+ <parameter name="field4" value="`$tmp.mnc`"/>
+ <parameter name="field5" value="`$payloadJson.input.sliceProfile.sNSSAI`"/>
+ <parameter name="field6" value="`$tmp.uLThptPerSlice`"/>
+ <parameter name="field7" value="`$tmp.dLThptPerSlice`"/>
+ </record>
+ <execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >
+ <parameter name="templateFileName" value="`$prop.restapi.templateDir + '/ranSlice-add-RRMPolicyRatio-GNBCUUPFn.json'`" />
+ <parameter name="restapiUrl" value="`$prop.controller.url + $tmp.addRRMPolicyRatio.ToGNBCUUPFn.url`"/>
+ <parameter name="restapiUser" value="`$prop.controller.user`" />
+ <parameter name="restapiPassword" value="`$prop.controller.pwd`"/>
+ <parameter name="httpMethod" value="PUT"/>
+ <parameter name="responsePrefix" value="addRRMPolicyRatio-response"/>
+ <parameter name='contentType' value='application/json' />
+ <parameter name='format' value='json' />
+ <outcome value='failure'>
+ <block>
+ <block atomic='true'>
+ <set>
+ <parameter name="tmp.so.callbackURL" value="`$payloadJson.input.callbackURL`"/>
+ <parameter name="tmp.status" value="`$error-code`"/>
+ <parameter name="tmp.reason" value="`$error-message`"/>
+ <parameter name="tmp.requestID" value="`$instantiateRANSlice-input.common-header.request-id`"/>
+ <parameter name="tmp.action" value="`$instantiateRANSlice-input.action`"/>
+ </set>
+ <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
+ <parameter name="file" value="/opt/opendaylight/current/data/log/so-callback-response.log" />
+ <parameter name="level" value="info" />
+ <parameter name="field1" value="URL for SO Callback Response"/>
+ <parameter name='field2' value="`$tmp.so.callbackURL`" />
+ <parameter name='field3' value="`$tmp.status`" />
+ <parameter name='field4' value="`$tmp.reason`" />
+ <parameter name='field5' value="`$tmp.requestID`" />
+ <parameter name='field6' value="`$tmp.action`" />
+ <parameter name='field7' value="`$tmp.CUCPList`" />
+ <parameter name='field8' value="`$tmp.CUUPList`" />
+ <parameter name='field9' value="`$tmp.DUList`" />
+ </record>
+ <execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >
+ <parameter name="templateFileName" value="`$prop.restapi.templateDir + '/ranSlice-so-response.json'`" />
+ <parameter name="restapiUrl" value="`$tmp.so.callbackURL`"/>
+ <parameter name="httpMethod" value="POST"/>
+ <parameter name="responsePrefix" value="so-callback-response"/>
+ <parameter name='contentType' value='application/json' />
+ <parameter name='format' value='json' />
+ <parameter name='accept' value='application/json' />
+ <outcome value='failure'>
+ <block>
+ <return status='failure'>
+ <parameter name='ack-final' value='Y'/>
+ <parameter name="error-code" value="500" />
+ <parameter name="error-message" value="Error sending SO Response" />
+ </return>
+ </block>
+ </outcome>
+ <outcome value='success'>
+ <block>
+ <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
+ <parameter name="file" value="/opt/opendaylight/current/data/log/instantiateRANSlice.log" />
+ <parameter name="level" value="info" />
+ <parameter name="field1" value="SO Response Sent "/>
+ </record>
+ </block>
+ </outcome>
+ </execute>
+ </block>
+ <return status='failure'>
+ <parameter name='ack-final' value='Y'/>
+ <parameter name="error-code" value="500" />
+ <parameter name="error-message" value="Error adding RRMPolicy" />
+ </return>
+ </block>
+ </outcome>
+ <outcome value='success'>
+ <block>
+ <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
+ <parameter name="file" value="/opt/opendaylight/current/data/log/instantiateRANSlice.log" />
+ <parameter name="level" value="info" />
+ <parameter name="field1" value="addRRMPolicyRatio Executed Successfully "/>
+ </record>
+ </block>
+ </outcome>
+ </execute>
+ </block>
+ <execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >
+ <parameter name="restapiUrl" value="`$prop.configdb.url + $prop.restapi.configdb.updategNBCUUP`"/>
+ <parameter name="templateFileName" value="`$prop.restapi.templateDir + '/ranSlice-configDB-updategNBCUUP.json'`" />
+ <parameter name="httpMethod" value="PUT"/>
+ <parameter name="responsePrefix" value="update-gNBCUUP-configdb-response"/>
+ <parameter name='contentType' value='application/json' />
+ <parameter name='format' value='json' />
+ <parameter name='accept' value='application/json' />
+ <parameter name="convertResponse" value="true"/>
+ <outcome value='failure'>
+ <block>
+ <block atomic='true'>
+ <set>
+ <parameter name="tmp.so.callbackURL" value="`$payloadJson.input.callbackURL`"/>
+ <parameter name="tmp.status" value="`$error-code`"/>
+ <parameter name="tmp.reason" value="`$error-message`"/>
+ <parameter name="tmp.requestID" value="`$instantiateRANSlice-input.common-header.request-id`"/>
+ <parameter name="tmp.action" value="`$instantiateRANSlice-input.action`"/>
+ </set>
+ <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
+ <parameter name="file" value="/opt/opendaylight/current/data/log/so-callback-response.log" />
+ <parameter name="level" value="info" />
+ <parameter name="field1" value="URL for SO Callback Response"/>
+ <parameter name='field2' value="`$tmp.so.callbackURL`" />
+ <parameter name='field3' value="`$tmp.status`" />
+ <parameter name='field4' value="`$tmp.reason`" />
+ <parameter name='field5' value="`$tmp.requestID`" />
+ <parameter name='field6' value="`$tmp.action`" />
+ <parameter name='field7' value="`$tmp.CUCPList`" />
+ <parameter name='field8' value="`$tmp.CUUPList`" />
+ <parameter name='field9' value="`$tmp.DUList`" />
+ </record>
+ <execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >
+ <parameter name="templateFileName" value="`$prop.restapi.templateDir + '/ranSlice-so-response.json'`" />
+ <parameter name="restapiUrl" value="`$tmp.so.callbackURL`"/>
+ <parameter name="httpMethod" value="POST"/>
+ <parameter name="responsePrefix" value="so-callback-response"/>
+ <parameter name='contentType' value='application/json' />
+ <parameter name='format' value='json' />
+ <parameter name='accept' value='application/json' />
+ <outcome value='failure'>
+ <block>
+ <return status='failure'>
+ <parameter name='ack-final' value='Y'/>
+ <parameter name="error-code" value="500" />
+ <parameter name="error-message" value="Error sending SO Response" />
+ </return>
+ </block>
+ </outcome>
+ <outcome value='success'>
+ <block>
+ <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
+ <parameter name="file" value="/opt/opendaylight/current/data/log/instantiateRANSlice.log" />
+ <parameter name="level" value="info" />
+ <parameter name="field1" value="SO Response Sent "/>
+ </record>
+ </block>
+ </outcome>
+ </execute>
+ </block>
+ <set>
+ <parameter name='error-code' value='500'/>
+ <parameter name='error-message' value='Error updating configCUUP info in ConfigDB. Aborting RPC executiopn'/>
+ </set>
+ <return status='failure'>
+ <parameter name='ack-final' value='Y'/>
+ <parameter name='error-code' value='500'/>
+ <parameter name='error-message' value='Error updating CUUP info in ConfigDB. Aborting RPC executiopn'/>
+ </return>
+ </block>
+ </outcome>
+ <outcome value='success'>
+ <block>
+ <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
+ <parameter name="file" value="/opt/opendaylight/current/data/log/instantiateRANSlice.log" />
+ <parameter name="level" value="info" />
+ <parameter name="field1" value="Successfully Updated gNBCUUP info in ConfigDB"/>
+ </record>
+ </block>
+ </outcome>
+ </execute>
+ <execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >
+ <parameter name="restapiUrl" value="`$prop.configdb.url + $prop.restapi.configdb.updateRRMPolicy`"/>
+ <parameter name="templateFileName" value="`$prop.restapi.templateDir + '/ranSlice-configDB-updateRRMPolicy-CUUP.json'`" />
+ <parameter name="httpMethod" value="PUT"/>
+ <parameter name="responsePrefix" value="update-gNBCUUP-rrmpolicy-configdb-response"/>
+ <parameter name='contentType' value='application/json' />
+ <parameter name='format' value='json' />
+ <parameter name='accept' value='application/json' />
+ <parameter name="convertResponse" value="true"/>
+ <outcome value='failure'>
+ <block>
+ <block atomic='true'>
+ <set>
+ <parameter name="tmp.so.callbackURL" value="`$payloadJson.input.callbackURL`"/>
+ <parameter name="tmp.status" value="`$error-code`"/>
+ <parameter name="tmp.reason" value="`$error-message`"/>
+ <parameter name="tmp.requestID" value="`$instantiateRANSlice-input.common-header.request-id`"/>
+ <parameter name="tmp.action" value="`$instantiateRANSlice-input.action`"/>
+ </set>
+ <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
+ <parameter name="file" value="/opt/opendaylight/current/data/log/so-callback-response.log" />
+ <parameter name="level" value="info" />
+ <parameter name="field1" value="URL for SO Callback Response"/>
+ <parameter name='field2' value="`$tmp.so.callbackURL`" />
+ <parameter name='field3' value="`$tmp.status`" />
+ <parameter name='field4' value="`$tmp.reason`" />
+ <parameter name='field5' value="`$tmp.requestID`" />
+ <parameter name='field6' value="`$tmp.action`" />
+ <parameter name='field7' value="`$tmp.CUCPList`" />
+ <parameter name='field8' value="`$tmp.CUUPList`" />
+ <parameter name='field9' value="`$tmp.DUList`" />
+ </record>
+ <execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >
+ <parameter name="templateFileName" value="`$prop.restapi.templateDir + '/ranSlice-so-response.json'`" />
+ <parameter name="restapiUrl" value="`$tmp.so.callbackURL`"/>
+ <parameter name="httpMethod" value="POST"/>
+ <parameter name="responsePrefix" value="so-callback-response"/>
+ <parameter name='contentType' value='application/json' />
+ <parameter name='format' value='json' />
+ <parameter name='accept' value='application/json' />
+ <outcome value='failure'>
+ <block>
+ <return status='failure'>
+ <parameter name='ack-final' value='Y'/>
+ <parameter name="error-code" value="500" />
+ <parameter name="error-message" value="Error sending SO Response" />
+ </return>
+ </block>
+ </outcome>
+ <outcome value='success'>
+ <block>
+ <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
+ <parameter name="file" value="/opt/opendaylight/current/data/log/instantiateRANSlice.log" />
+ <parameter name="level" value="info" />
+ <parameter name="field1" value="SO Response Sent "/>
+ </record>
+ </block>
+ </outcome>
+ </execute>
+ </block>
+ <set>
+ <parameter name='error-code' value='500'/>
+ <parameter name='error-message' value='Error updating RRMPolicy CUUP info in ConfigDB. Aborting RPC executiopn'/>
+ </set>
+ <return status='failure'>
+ <parameter name='ack-final' value='Y'/>
+ <parameter name='error-code' value='500'/>
+ <parameter name='error-message' value='Error updating RRMPolicy CUUP info in ConfigDB. Aborting RPC executiopn'/>
+ </return>
+ </block>
+ </outcome>
+ <outcome value='success'>
+ <block>
+ <set>
+ <parameter name='prop.configDB.rrmPolicyID' value='`$prop.configDB.rrmPolicyID + 1`' />
+ </set>
+ <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
+ <parameter name="file" value="/opt/opendaylight/current/data/log/instantiateRANSlice.log" />
+ <parameter name="level" value="info" />
+ <parameter name="field1" value="Successfully Updated RRMPolicy CUUP info in ConfigDB"/>
+ </record>
+ </block>
+ </outcome>
+ </execute>
+ </for>
+ </block>
+ <block atomic='true'>
+ <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'>
+ <parameter name='outputPath' value='tmp.DUListEntries' />
+ <parameter name='source' value="`'getRIC-configdb-response.[' + $id1 + '].gNBDUList_length'`" />
+ </execute>
+ <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
+ <parameter name="file" value="/opt/opendaylight/current/data/log/instantiateRANSlice.log" />
+ <parameter name="level" value="info" />
+ <parameter name="field1" value="Number of DU List Entries "/>
+ <parameter name="field2" value="`$tmp.DUListEntries`"/>
+ </record>
+ <set>
+ <parameter name='tmp.uLThptPerSlice' value='`$payloadJson.input.sliceProfile.uLThptPerSlice * 1.1`' />
+ <parameter name='tmp.dLThptPerSlice' value='`$payloadJson.input.sliceProfile.dLThptPerSlice * 1.1`' />
+ <parameter name='tmp.maxNumberOfConns' value='`$payloadJson.input.sliceProfile.maxNumberOfConns * 1.1`' />
+ <parameter name='tmp.nearRTRIC.trafficCapacity1' value='`$tmp.uLThptPerSlice + $tmp.dLThptPerSlice`' />
+ <parameter name='tmp.nearRTRIC.trafficCapacity' value='`$tmp.nearRTRIC.trafficCapacity1 / 2`' />
+ <parameter name='tmp.nearRTRIC.trafficCapacityBPS' value='`$tmp.nearRTRIC.trafficCapacity * 1000000`' />
+ <parameter name='tmp.nrcelldu.totalPRBForSNSSAI' value='`$tmp.nearRTRIC.trafficCapacityBPS / 1008000`' />
+ </set>
+ <block atomic='true'>
+ <set>
+ <parameter name='tmp.nrcelldu.PRBPerImpactedCell' value='`$tmp.nrcelldu.totalPRBForSNSSAI / $tmp.DUListEntries`' />
+ <parameter name='tmp.rRMPolicyDedicatedRatio.CellDU1' value='`$tmp.nrcelldu.PRBPerImpactedCell * 100`' />
+ <parameter name='tmp.rRMPolicyDedicatedRatio.CellDU' value='`$tmp.rRMPolicyDedicatedRatio.CellDU1 / $prop.nrcelldu.TotalPRBsPerCell`' />
+ </set>
+ <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
+ <parameter name="file" value="/opt/opendaylight/current/data/log/instantiateRANSlice.log" />
+ <parameter name="level" value="info" />
+ <parameter name="field1" value="rRMPolicyDedicatedRatio for CellDU "/>
+ <parameter name="field2" value="`$tmp.rRMPolicyDedicatedRatio.CellDU`"/>
+ </record>
+ </block>
+ <for index='id2' start='0' end='`$tmp.DUListEntries`' >
+ <block atomic='true'>
+ <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'>
+ <parameter name='outputPath' value='tmp.cellDUListEntries' />
+ <parameter name='source' value="`'getRIC-configdb-response.[' + $id1 + '].gNBDUList[' + $id2 + '].cellDUList_length'`" />
+ </execute>
+ <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'>
+ <parameter name='outputPath' value='tmp.gNBDUList.gNBDUId' />
+ <parameter name='source' value="`'getRIC-configdb-response.[' + $id1 + '].gNBDUList[' + $id2 + '].gNBDUId'`" />
+ </execute>
+ <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'>
+ <parameter name='outputPath' value='tmp.gNBDUName' />
+ <parameter name='source' value="`'getRIC-configdb-response.[' + $id1 + '].gNBDUList[' + $id2 + '].gNBDUName'`" />
+ </execute>
+ <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'>
+ <parameter name='outputPath' value='tmp.gNBId' />
+ <parameter name='source' value="`'getRIC-configdb-response.[' + $id1 + '].gNBDUList[' + $id2 + '].gNBId'`" />
+ </execute>
+ <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'>
+ <parameter name='outputPath' value='tmp.gNBIdLength' />
+ <parameter name='source' value="`'getRIC-configdb-response.[' + $id1 + '].gNBDUList[' + $id2 + '].gNBIdLength'`" />
+ </execute>
+ <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'>
+ <parameter name='outputPath' value='tmp.nFType' />
+ <parameter name='source' value="`'getRIC-configdb-response.[' + $id1 + '].gNBDUList[' + $id2 + '].nFType'`" />
+ </execute>
+ <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'>
+ <parameter name='outputPath' value='tmp.pLMNId' />
+ <parameter name='source' value="`'getRIC-configdb-response.[' + $id1 + '].gNBDUList[' + $id2 + '].pLMNId'`" />
+ </execute>
+ </block>
+ <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
+ <parameter name="file" value="/opt/opendaylight/current/data/log/instantiateRANSlice.log" />
+ <parameter name="level" value="info" />
+ <parameter name="field1" value="Numberof cellDU of Entries "/>
+ <parameter name="field2" value="`$tmp.cellDUListEntries`"/>
+ <parameter name="field3" value="`$tmp.gNBDUList.gNBDUId`"/>
+ <parameter name="field4" value="`$tmp.gNBDUName`"/>
+ <parameter name="field5" value="`$tmp.gNBId`"/>
+ <parameter name="field6" value="`$tmp.gNBIdLength`"/>
+ <parameter name="field7" value="`$tmp.nFType`"/>
+ <parameter name="field8" value="`$tmp.pLMNId`"/>
+ </record>
+ <execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >
+ <parameter name="restapiUrl" value="`$prop.configdb.url + $prop.restapi.configdb.updategNBDU`"/>
+ <parameter name="templateFileName" value="`$prop.restapi.templateDir + '/ranSlice-configDB-updategNBDU.json'`" />
+ <parameter name="httpMethod" value="PUT"/>
+ <parameter name="responsePrefix" value="update-gNBDU-configdb-response"/>
+ <parameter name='contentType' value='application/json' />
+ <parameter name='format' value='json' />
+ <parameter name='accept' value='application/json' />
+ <parameter name="convertResponse" value="true"/>
+ <outcome value='success'>
+ <block>
+ <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
+ <parameter name="file" value="/opt/opendaylight/current/data/log/instantiateRANSlice.log" />
+ <parameter name="level" value="info" />
+ <parameter name="field1" value="Successfully Updated gNBCUUP info in ConfigDB"/>
+ </record>
+ </block>
+ </outcome>
+ <outcome value='failure'>
+ <block>
+ <set>
+ <parameter name='error-code' value='500'/>
+ <parameter name='error-message' value='Error updating configCUUP info in ConfigDB. Aborting RPC executiopn'/>
+ </set>
+ <return status='failure'>
+ <parameter name='ack-final' value='Y'/>
+ <parameter name='error-code' value='500'/>
+ <parameter name='error-message' value='Error updating CUUP info in ConfigDB. Aborting RPC executiopn'/>
+ </return>
+ <block atomic='true'>
+ <set>
+ <parameter name="tmp.so.callbackURL" value="`$payloadJson.input.callbackURL`"/>
+ <parameter name="tmp.status" value="`$error-code`"/>
+ <parameter name="tmp.reason" value="`$error-message`"/>
+ <parameter name="tmp.requestID" value="`$instantiateRANSlice-input.common-header.request-id`"/>
+ <parameter name="tmp.action" value="`$instantiateRANSlice-input.action`"/>
+ </set>
+ <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
+ <parameter name="file" value="/opt/opendaylight/current/data/log/so-callback-response.log" />
+ <parameter name="level" value="info" />
+ <parameter name="field1" value="URL for SO Callback Response"/>
+ <parameter name='field2' value="`$tmp.so.callbackURL`" />
+ <parameter name='field3' value="`$tmp.status`" />
+ <parameter name='field4' value="`$tmp.reason`" />
+ <parameter name='field5' value="`$tmp.requestID`" />
+ <parameter name='field6' value="`$tmp.action`" />
+ <parameter name='field7' value="`$tmp.CUCPList`" />
+ <parameter name='field8' value="`$tmp.CUUPList`" />
+ <parameter name='field9' value="`$tmp.DUList`" />
+ </record>
+ <execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >
+ <parameter name="templateFileName" value="`$prop.restapi.templateDir + '/ranSlice-so-response.json'`" />
+ <parameter name="restapiUrl" value="`$tmp.so.callbackURL`"/>
+ <parameter name="httpMethod" value="POST"/>
+ <parameter name="responsePrefix" value="so-callback-response"/>
+ <parameter name='contentType' value='application/json' />
+ <parameter name='format' value='json' />
+ <parameter name='accept' value='application/json' />
+ <outcome value='failure'>
+ <block>
+ <return status='failure'>
+ <parameter name='ack-final' value='Y'/>
+ <parameter name="error-code" value="500" />
+ <parameter name="error-message" value="Error sending SO Response" />
+ </return>
+ </block>
+ </outcome>
+ <outcome value='success'>
+ <block>
+ <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
+ <parameter name="file" value="/opt/opendaylight/current/data/log/instantiateRANSlice.log" />
+ <parameter name="level" value="info" />
+ <parameter name="field1" value="SO Response Sent "/>
+ </record>
+ </block>
+ </outcome>
+ </execute>
+ </block>
+ </block>
+ </outcome>
+ </execute>
+ <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
+ <parameter name="file" value="/opt/opendaylight/current/data/log/instantiateRANSlice.log" />
+ <parameter name="level" value="info" />
+ <parameter name="field1" value="MCC "/>
+ <parameter name="field2" value="`$tmp.mcc`"/>
+ <parameter name="field3" value="MNC "/>
+ <parameter name="field4" value="`$tmp.mnc`"/>
+ <parameter name="field5" value="Calculated uLThptPerSlice "/>
+ <parameter name="field6" value="`$tmp.uLThptPerSlice`"/>
+ <parameter name="field7" value="Calculated dLThptPerSlice "/>
+ <parameter name="field8" value="`$tmp.dLThptPerSlice`"/>
+ </record>
+ <for index='id3' start='0' end='`$getListofCells-configdb-response._length `' >
+ <block atomic='true'>
+ <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'>
+ <parameter name='outputPath' value='tmp.pLMNInfoListEntries' />
+ <parameter name='source' value="`'getRIC-configdb-response.[' + $id1 + '].gNBDUList[' + $id2 + '].cellDUList[' + $id3 + '].pLMNInfoList_length'`" />
+ </execute>
+ <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'>
+ <parameter name='outputPath' value='tmp.cellLocalId' />
+ <parameter name='source' value="`'getRIC-configdb-response.[' + $id1 + '].gNBDUList[' + $id2 + '].cellDUList[' + $id3 + '].cellLocalId'`" />
+ </execute>
+ </block>
+ <for index='idCell' start='0' end='`$tmp.cellDUListEntries`' >
+ <block atomic='true'>
+ <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'>
+ <parameter name='outputPath' value='tmp.gNBDUList.cellLocalId' />
+ <parameter name='source' value="`'getRIC-configdb-response.[' + $id1 + '].gNBDUList[' + $id2 + '].cellDUList[' + $idCell + '].cellLocalId'`" />
+ </execute>
+ <switch test="`$tmp.gNBDUList.cellLocalId == $tmp.cellLocalId`">
+ <outcome value='true'>
+ <block atomic='true'>
+ <block atomic='true'>
+ <switch test='`$prop.ransim-mounted`'>
+ <outcome value='false'>
+ <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >
+ <parameter name="source" value="`$prop.restapi.addPLMNInfoListEntry.ToNRCellDU`"/>
+ <parameter name="outputPath" value="tmp.addPLMNInfoListEntry.ToNRCellDU.url"/>
+ <parameter name="target" value="{idNearRTRIC}"/>
+ <parameter name="replacement" value="`$tmp.nearRTRICId`"/>
+ </execute>
+ </outcome>
+ <outcome value='true'>
+ <block atomic='true'>
+ <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >
+ <parameter name="source" value="`$prop.restapi.addPLMNInfoListEntry.ToNRCellDU.ransim-mounted`"/>
+ <parameter name="outputPath" value="tmp.addPLMNInfoListEntry.ToNRCellDU.url"/>
+ <parameter name="target" value="{idNearRTRIC}"/>
+ <parameter name="replacement" value="`$tmp.nearRTRICId`"/>
+ </execute>
+ <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >
+ <parameter name="source" value="`$tmp.addPLMNInfoListEntry.ToNRCellDU.url`"/>
+ <parameter name="outputPath" value="tmp.addPLMNInfoListEntry.ToNRCellDU.url"/>
+ <parameter name="target" value="{mountName}"/>
+ <parameter name="replacement" value="`$tmp.gNBDUList.gNBDUId`"/>
+ </execute>
+ </block>
+ </outcome>
+ </switch>
+ <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >
+ <parameter name="source" value="`$tmp.addPLMNInfoListEntry.ToNRCellDU.url`"/>
+ <parameter name="outputPath" value="tmp.addPLMNInfoListEntry.ToNRCellDU.url"/>
+ <parameter name="target" value="{idGNBDUFunction}"/>
+ <parameter name="replacement" value="`$tmp.gNBDUList.gNBDUId`"/>
+ </execute>
+ <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >
+ <parameter name="source" value="`$tmp.addPLMNInfoListEntry.ToNRCellDU.url`"/>
+ <parameter name="outputPath" value="tmp.addPLMNInfoListEntry.ToNRCellDU.url"/>
+ <parameter name="target" value="{idNRCellDU}"/>
+ <parameter name="replacement" value="`$tmp.cellLocalId`"/>
+ </execute>
+ <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >
+ <parameter name="source" value="`$tmp.addPLMNInfoListEntry.ToNRCellDU.url`"/>
+ <parameter name="outputPath" value="tmp.addPLMNInfoListEntry.ToNRCellDU.url"/>
+ <parameter name="target" value="{mcc}"/>
+ <parameter name="replacement" value="`$tmp.mcc`"/>
+ </execute>
+ <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >
+ <parameter name="source" value="`$tmp.addPLMNInfoListEntry.ToNRCellDU.url`"/>
+ <parameter name="outputPath" value="tmp.addPLMNInfoListEntry.ToNRCellDU.url"/>
+ <parameter name="target" value="{mnc}"/>
+ <parameter name="replacement" value="`$tmp.mnc`"/>
+ </execute>
+ <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
+ <parameter name="file" value="/opt/opendaylight/current/data/log/instantiateRANSlice.log" />
+ <parameter name="level" value="info" />
+ <parameter name="field1" value="Add PLMNInfoListEntry ToNRCellDU URL"/>
+ <parameter name="field2" value="`$tmp.addPLMNInfoListEntry.ToNRCellDU.url`"/>
+ </record>
+ <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
+ <parameter name="file" value="/opt/opendaylight/current/data/log/instantiateRANSlice.log" />
+ <parameter name="level" value="info" />
+ <parameter name="field1" value="Setting variables for PLMNInfoList Entry Add to NRCellDU"/>
+ <parameter name="field2" value="`$tmp.addPLMNInfoListEntry.ToNRCellDU.url`"/>
+ <parameter name="field3" value="`$tmp.mcc`"/>
+ <parameter name="field4" value="`$tmp.mnc`"/>
+ <parameter name="field5" value="`$payloadJson.input.sliceProfile.sNSSAI`"/>
+ <parameter name="field6" value="`$tmp.uLThptPerSlice`"/>
+ <parameter name="field7" value="`$tmp.dLThptPerSlice`"/>
+ </record>
+ <execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >
+ <parameter name="templateFileName" value="`$prop.restapi.templateDir + '/ranSlice-add-get-PLMNInfoListEntry-NRCellDU.json'`" />
+ <parameter name="restapiUrl" value="`$prop.controller.url + $tmp.addPLMNInfoListEntry.ToNRCellDU.url`"/>
+ <parameter name="restapiUser" value="`$prop.controller.user`" />
+ <parameter name="restapiPassword" value="`$prop.controller.pwd`"/>
+ <parameter name="httpMethod" value="PUT"/>
+ <parameter name="responsePrefix" value="PLMNInfoListEntry-response"/>
+ <parameter name='contentType' value='application/json' />
+ <parameter name='format' value='json' />
+ <outcome value='failure'>
+ <block>
+ <block atomic='true'>
+ <set>
+ <parameter name="tmp.so.callbackURL" value="`$payloadJson.input.callbackURL`"/>
+ <parameter name="tmp.status" value="`$error-code`"/>
+ <parameter name="tmp.reason" value="`$error-message`"/>
+ <parameter name="tmp.requestID" value="`$instantiateRANSlice-input.common-header.request-id`"/>
+ <parameter name="tmp.action" value="`$instantiateRANSlice-input.action`"/>
+ </set>
+ <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
+ <parameter name="file" value="/opt/opendaylight/current/data/log/so-callback-response.log" />
+ <parameter name="level" value="info" />
+ <parameter name="field1" value="URL for SO Callback Response"/>
+ <parameter name='field2' value="`$tmp.so.callbackURL`" />
+ <parameter name='field3' value="`$tmp.status`" />
+ <parameter name='field4' value="`$tmp.reason`" />
+ <parameter name='field5' value="`$tmp.requestID`" />
+ <parameter name='field6' value="`$tmp.action`" />
+ <parameter name='field7' value="`$tmp.CUCPList`" />
+ <parameter name='field8' value="`$tmp.CUUPList`" />
+ <parameter name='field9' value="`$tmp.DUList`" />
+ </record>
+ <execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >
+ <parameter name="templateFileName" value="`$prop.restapi.templateDir + '/ranSlice-so-response.json'`" />
+ <parameter name="restapiUrl" value="`$tmp.so.callbackURL`"/>
+ <parameter name="httpMethod" value="POST"/>
+ <parameter name="responsePrefix" value="so-callback-response"/>
+ <parameter name='contentType' value='application/json' />
+ <parameter name='format' value='json' />
+ <parameter name='accept' value='application/json' />
+ <outcome value='failure'>
+ <block>
+ <return status='failure'>
+ <parameter name='ack-final' value='Y'/>
+ <parameter name="error-code" value="500" />
+ <parameter name="error-message" value="Error sending SO Response" />
+ </return>
+ </block>
+ </outcome>
+ <outcome value='success'>
+ <block>
+ <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
+ <parameter name="file" value="/opt/opendaylight/current/data/log/instantiateRANSlice.log" />
+ <parameter name="level" value="info" />
+ <parameter name="field1" value="SO Response Sent "/>
+ </record>
+ </block>
+ </outcome>
+ </execute>
+ </block>
+ <return status='failure'>
+ <parameter name='ack-final' value='Y'/>
+ <parameter name="error-code" value="500" />
+ <parameter name="error-message" value="Error adding PLMNInfo List Entry to NRCellCUr" />
+ </return>
+ </block>
+ </outcome>
+ <outcome value='success'>
+ <block>
+ <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
+ <parameter name="file" value="/opt/opendaylight/current/data/log/instantiateRANSlice.log" />
+ <parameter name="level" value="info" />
+ <parameter name="field1" value="PLMNInfo List Entry Add to NRCELLDU Executed Successfully "/>
+ </record>
+ </block>
+ </outcome>
+ </execute>
+ </block>
+ <block atomic='true'>
+ <switch test='`$prop.ransim-mounted`'>
+ <outcome value='false'>
+ <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >
+ <parameter name="source" value="`$prop.restapi.addRRMPolicyRatio.ToNRCellDU`"/>
+ <parameter name="outputPath" value="tmp.addRRMPolicyRatio.ToNRCellDU.url"/>
+ <parameter name="target" value="{idNearRTRIC}"/>
+ <parameter name="replacement" value="`$tmp.nearRTRICId`"/>
+ </execute>
+ </outcome>
+ <outcome value='true'>
+ <block atomic='true'>
+ <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >
+ <parameter name="source" value="`$prop.restapi.addRRMPolicyRatio.ToNRCellDU.ransim-mounted`"/>
+ <parameter name="outputPath" value="tmp.addRRMPolicyRatio.ToNRCellDU.url"/>
+ <parameter name="target" value="{idNearRTRIC}"/>
+ <parameter name="replacement" value="`$tmp.nearRTRICId`"/>
+ </execute>
+ <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >
+ <parameter name="source" value="`$tmp.addRRMPolicyRatio.ToNRCellDU.url`"/>
+ <parameter name="outputPath" value="tmp.addRRMPolicyRatio.ToNRCellDU.url"/>
+ <parameter name="target" value="{mountName}"/>
+ <parameter name="replacement" value="`$tmp.gNBDUList.gNBDUId`"/>
+ </execute>
+ </block>
+ </outcome>
+ </switch>
+ <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >
+ <parameter name="source" value="`$tmp.addRRMPolicyRatio.ToNRCellDU.url`"/>
+ <parameter name="outputPath" value="tmp.addRRMPolicyRatio.ToNRCellDU.url"/>
+ <parameter name="target" value="{idGNBDUFunction}"/>
+ <parameter name="replacement" value="`$tmp.gNBDUList.gNBDUId`"/>
+ </execute>
+ <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >
+ <parameter name="source" value="`$tmp.addRRMPolicyRatio.ToNRCellDU.url`"/>
+ <parameter name="outputPath" value="tmp.addRRMPolicyRatio.ToNRCellDU.url"/>
+ <parameter name="target" value="{idNRCellDU}"/>
+ <parameter name="replacement" value="`$tmp.cellLocalId`"/>
+ </execute>
+ <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >
+ <parameter name="source" value="`$tmp.addRRMPolicyRatio.ToNRCellDU.url`"/>
+ <parameter name="outputPath" value="tmp.addRRMPolicyRatio.ToNRCellDU.url"/>
+ <parameter name="target" value="{id}"/>
+ <parameter name="replacement" value="`$tmp.RRMPolicyRatioID.NRCellDU`"/>
+ </execute>
+ <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
+ <parameter name="file" value="/opt/opendaylight/current/data/log/instantiateRANSlice.log" />
+ <parameter name="level" value="info" />
+ <parameter name="field1" value="addRRMPolicyRatio ToNRCellDU URL"/>
+ <parameter name="field2" value="`$tmp.addRRMPolicyRatio.ToNRCellDU.url`"/>
+ </record>
+ <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
+ <parameter name="file" value="/opt/opendaylight/current/data/log/instantiateRANSlice.log" />
+ <parameter name="level" value="info" />
+ <parameter name="field1" value="Setting variables for addRRMPolicyRatio to NRCellDU"/>
+ <parameter name="field2" value="`$tmp.addRRMPolicyRatio.ToNRCellDU.url`"/>
+ <parameter name="field3" value="`$tmp.mcc`"/>
+ <parameter name="field4" value="`$tmp.mnc`"/>
+ <parameter name="field5" value="`$payloadJson.input.sliceProfile.sNSSAI`"/>
+ <parameter name="field6" value="`$tmp.uLThptPerSlice`"/>
+ <parameter name="field7" value="`$tmp.dLThptPerSlice`"/>
+ </record>
+ <execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >
+ <parameter name="templateFileName" value="`$prop.restapi.templateDir + '/ranSlice-add-RRMPolicyRatio-NRCellDU.json'`" />
+ <parameter name="restapiUrl" value="`$prop.controller.url + $tmp.addRRMPolicyRatio.ToNRCellDU.url`"/>
+ <parameter name="restapiUser" value="`$prop.controller.user`" />
+ <parameter name="restapiPassword" value="`$prop.controller.pwd`"/>
+ <parameter name="httpMethod" value="PUT"/>
+ <parameter name="responsePrefix" value="addRRMPolicyRatio-response"/>
+ <parameter name='contentType' value='application/json' />
+ <parameter name='format' value='json' />
+ <outcome value='failure'>
+ <block>
+ <block atomic='true'>
+ <set>
+ <parameter name="tmp.so.callbackURL" value="`$payloadJson.input.callbackURL`"/>
+ <parameter name="tmp.status" value="`$error-code`"/>
+ <parameter name="tmp.reason" value="`$error-message`"/>
+ <parameter name="tmp.requestID" value="`$instantiateRANSlice-input.common-header.request-id`"/>
+ <parameter name="tmp.action" value="`$instantiateRANSlice-input.action`"/>
+ </set>
+ <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
+ <parameter name="file" value="/opt/opendaylight/current/data/log/so-callback-response.log" />
+ <parameter name="level" value="info" />
+ <parameter name="field1" value="URL for SO Callback Response"/>
+ <parameter name='field2' value="`$tmp.so.callbackURL`" />
+ <parameter name='field3' value="`$tmp.status`" />
+ <parameter name='field4' value="`$tmp.reason`" />
+ <parameter name='field5' value="`$tmp.requestID`" />
+ <parameter name='field6' value="`$tmp.action`" />
+ <parameter name='field7' value="`$tmp.CUCPList`" />
+ <parameter name='field8' value="`$tmp.CUUPList`" />
+ <parameter name='field9' value="`$tmp.DUList`" />
+ </record>
+ <execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >
+ <parameter name="templateFileName" value="`$prop.restapi.templateDir + '/ranSlice-so-response.json'`" />
+ <parameter name="restapiUrl" value="`$tmp.so.callbackURL`"/>
+ <parameter name="httpMethod" value="POST"/>
+ <parameter name="responsePrefix" value="so-callback-response"/>
+ <parameter name='contentType' value='application/json' />
+ <parameter name='format' value='json' />
+ <parameter name='accept' value='application/json' />
+ <outcome value='failure'>
+ <block>
+ <return status='failure'>
+ <parameter name='ack-final' value='Y'/>
+ <parameter name="error-code" value="500" />
+ <parameter name="error-message" value="Error sending SO Response" />
+ </return>
+ </block>
+ </outcome>
+ <outcome value='success'>
+ <block>
+ <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
+ <parameter name="file" value="/opt/opendaylight/current/data/log/instantiateRANSlice.log" />
+ <parameter name="level" value="info" />
+ <parameter name="field1" value="SO Response Sent "/>
+ </record>
+ </block>
+ </outcome>
+ </execute>
+ </block>
+ <return status='failure'>
+ <parameter name='ack-final' value='Y'/>
+ <parameter name="error-code" value="500" />
+ <parameter name="error-message" value="Error adding RRM Policy" />
+ </return>
+ </block>
+ </outcome>
+ <outcome value='success'>
+ <block>
+ <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
+ <parameter name="file" value="/opt/opendaylight/current/data/log/instantiateRANSlice.log" />
+ <parameter name="level" value="info" />
+ <parameter name="field1" value="addRRMPolicyRatio to NRCELLDU Executed Successfully "/>
+ </record>
+ </block>
+ </outcome>
+ </execute>
+ </block>
+ </block>
+ </outcome>
+ </switch>
+ </block>
+ </for>
+ <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
+ <parameter name="file" value="/opt/opendaylight/current/data/log/instantiateRANSlice.log" />
+ <parameter name="level" value="info" />
+ <parameter name="field1" value="Numberof pLMNInfoList Entries "/>
+ <parameter name="field2" value="`$tmp.pLMNInfoListEntries`"/>
+ <parameter name="field3" value="cellLocalId "/>
+ <parameter name="field4" value="`$tmp.cellLocalId`"/>
+ </record>
+ <for index='id4' start='0' end='`$tmp.pLMNInfoListEntries`' >
+ <block atomic='true'>
+ <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'>
+ <parameter name='outputPath' value='tmp.fromRAN.sNSSAI' />
+ <parameter name='source' value="`'getRIC-configdb-response.[' + $id1 + '].gNBDUList[' + $id2 + '].cellDUList[' + $id3 + '].pLMNInfoList[' + $id4 + '].sNSSAI.sNSSAI'`" />
+ </execute>
+ <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
+ <parameter name="file" value="/opt/opendaylight/current/data/log/instantiateRANSlice.log" />
+ <parameter name="level" value="info" />
+ <parameter name="field1" value="sNSSAI from RAN to check if already exists "/>
+ <parameter name="field2" value="`$tmp.fromRAN.sNSSAI`"/>
+ </record>
+ </block>
+ </for>
+ </for>
+ <execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >
+ <parameter name="restapiUrl" value="`$prop.configdb.url + $prop.restapi.configdb.updateRRMPolicy`"/>
+ <parameter name="templateFileName" value="`$prop.restapi.templateDir + '/ranSlice-configDB-updateRRMPolicy-DU.json'`" />
+ <parameter name="httpMethod" value="PUT"/>
+ <parameter name="responsePrefix" value="update-DU-rrmpolicy-configdb-response"/>
+ <parameter name='contentType' value='application/json' />
+ <parameter name='format' value='json' />
+ <parameter name='accept' value='application/json' />
+ <parameter name="convertResponse" value="true"/>
+ <outcome value='success'>
+ <block>
+ <set>
+ <parameter name='prop.configDB.rrmPolicyID' value='`$prop.configDB.rrmPolicyID + 1`' />
+ </set>
+ <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
+ <parameter name="file" value="/opt/opendaylight/current/data/log/instantiateRANSlice.log" />
+ <parameter name="level" value="info" />
+ <parameter name="field1" value="Successfully Updated RRMPolicy DU info in ConfigDB"/>
+ </record>
+ </block>
+ </outcome>
+ <outcome value='failure'>
+ <block>
+ <set>
+ <parameter name='error-code' value='500'/>
+ <parameter name='error-message' value='Error updating RRMPolicy DU info in ConfigDB. Aborting RPC executiopn'/>
+ </set>
+ <return status='failure'>
+ <parameter name='ack-final' value='Y'/>
+ <parameter name='error-code' value='500'/>
+ <parameter name='error-message' value='Error updating RRMPolicy DU info in ConfigDB. Aborting RPC executiopn'/>
+ </return>
+ <block atomic='true'>
+ <set>
+ <parameter name="tmp.so.callbackURL" value="`$payloadJson.input.callbackURL`"/>
+ <parameter name="tmp.status" value="`$error-code`"/>
+ <parameter name="tmp.reason" value="`$error-message`"/>
+ <parameter name="tmp.requestID" value="`$instantiateRANSlice-input.common-header.request-id`"/>
+ <parameter name="tmp.action" value="`$instantiateRANSlice-input.action`"/>
+ </set>
+ <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
+ <parameter name="file" value="/opt/opendaylight/current/data/log/so-callback-response.log" />
+ <parameter name="level" value="info" />
+ <parameter name="field1" value="URL for SO Callback Response"/>
+ <parameter name='field2' value="`$tmp.so.callbackURL`" />
+ <parameter name='field3' value="`$tmp.status`" />
+ <parameter name='field4' value="`$tmp.reason`" />
+ <parameter name='field5' value="`$tmp.requestID`" />
+ <parameter name='field6' value="`$tmp.action`" />
+ <parameter name='field7' value="`$tmp.CUCPList`" />
+ <parameter name='field8' value="`$tmp.CUUPList`" />
+ <parameter name='field9' value="`$tmp.DUList`" />
+ </record>
+ <execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >
+ <parameter name="templateFileName" value="`$prop.restapi.templateDir + '/ranSlice-so-response.json'`" />
+ <parameter name="restapiUrl" value="`$tmp.so.callbackURL`"/>
+ <parameter name="httpMethod" value="POST"/>
+ <parameter name="responsePrefix" value="so-callback-response"/>
+ <parameter name='contentType' value='application/json' />
+ <parameter name='format' value='json' />
+ <parameter name='accept' value='application/json' />
+ <outcome value='failure'>
+ <block>
+ <return status='failure'>
+ <parameter name='ack-final' value='Y'/>
+ <parameter name="error-code" value="500" />
+ <parameter name="error-message" value="Error sending SO Response" />
+ </return>
+ </block>
+ </outcome>
+ <outcome value='success'>
+ <block>
+ <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
+ <parameter name="file" value="/opt/opendaylight/current/data/log/instantiateRANSlice.log" />
+ <parameter name="level" value="info" />
+ <parameter name="field1" value="SO Response Sent "/>
+ </record>
+ </block>
+ </outcome>
+ </execute>
+ </block>
+ </block>
+ </outcome>
+ </execute>
+ </for>
+ </block>
+ </for>
+ </block>
+ <block atomic='true'>
+ <set>
+ <parameter name="tmp.so.callbackURL" value="`$payloadJson.input.callbackURL`"/>
+ <parameter name="tmp.status" value="`$error-code`"/>
+ <parameter name="tmp.reason" value="`$error-message`"/>
+ <parameter name="tmp.requestID" value="`$instantiate-r-a-n-slice-input.common-header.request-id `"/>
+ <parameter name="tmp.action" value="`$instantiate-r-a-n-slice-input.action`"/>
+ </set>
+ <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
+ <parameter name="file" value="/opt/opendaylight/current/data/log/so-callback-response.log" />
+ <parameter name="level" value="info" />
+ <parameter name="field1" value="URL for SO Callback Response"/>
+ <parameter name='field2' value="`$tmp.so.callbackURL`" />
+ <parameter name='field3' value="`$tmp.status`" />
+ <parameter name='field4' value="`$tmp.reason`" />
+ <parameter name='field5' value="`$tmp.requestID`" />
+ <parameter name='field6' value="`$tmp.action`" />
+ <parameter name='field7' value="`$tmp.CUCPList`" />
+ <parameter name='field8' value="`$tmp.CUUPList`" />
+ <parameter name='field9' value="`$tmp.DUList`" />
+ </record>
+ <execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >
+ <parameter name="templateFileName" value="`$prop.restapi.templateDir + '/ranSlice-so-response.json'`" />
+ <parameter name="restapiUrl" value="`$tmp.so.callbackURL`"/>
+ <parameter name="httpMethod" value="POST"/>
+ <parameter name="responsePrefix" value="so-callback-response"/>
+ <parameter name='contentType' value='application/json' />
+ <parameter name='format' value='json' />
+ <parameter name='accept' value='application/json' />
+ <outcome value='failure'>
+ <block>
+ <set>
+ <parameter name='error-code' value='500'/>
+ <parameter name='error-message' value='Error sending SO response. Aborting RPC executiopn'/>
+ </set>
+ <return status='failure'>
+ <parameter name='ack-final' value='Y'/>
+ <parameter name="error-code" value="500" />
+ <parameter name="error-message" value="Error sending SO Response" />
+ </return>
+ </block>
+ </outcome>
+ <outcome value='success'>
+ <block>
+ <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
+ <parameter name="file" value="/opt/opendaylight/current/data/log/instantiateRANSlice.log" />
+ <parameter name="level" value="info" />
+ <parameter name="field1" value="SO Response Sent "/>
+ </record>
+ </block>
+ </outcome>
+ </execute>
+ </block>
+ <return status='success'>
+ <parameter name="ack-final" value="N" />
+ <parameter name="error-code" value="200" />
+ <parameter name="error-message" value="SUCCESSFUL Execution" />
+ </return>
+ </block>
+ </method>
+</service-logic>