summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoryashwanth <gandhapu.yashwanth@wipro.com>2021-09-16 18:36:22 +0000
committerDan Timoney <dtimoney@att.com>2021-09-16 20:05:07 +0000
commitda2e77325edbb7c8b97f25fa19f23481c0a8c029 (patch)
tree1c181b072e1bac2952f874f8eb4df5a05cf27d98
parent4016bbd242fefa3ee22a22b2c2944b615fe0b835 (diff)
ActivateRANSliceInstance - CPS Integration
Issue-ID: CCSDK-3338 Signed-off-by: yashwanth <gandhapu.yashwanth@wipro.com> Change-Id: I43d608dcb0c0be4272fae4545a2e2f3accc484e9
-rw-r--r--platform-logic/ran-slice-api/src/main/json/ran-slice-api_activateRANSliceInstance-configdb.json3090
-rw-r--r--platform-logic/ran-slice-api/src/main/json/ran-slice-api_activateRANSliceInstance-cps.json3828
-rw-r--r--platform-logic/ran-slice-api/src/main/json/ran-slice-api_activateRANSliceInstance.json3296
-rw-r--r--platform-logic/ran-slice-api/src/main/xml/ran-slice-api_activateRANSliceInstance-configdb.xml932
-rw-r--r--platform-logic/ran-slice-api/src/main/xml/ran-slice-api_activateRANSliceInstance-cps.xml1119
-rw-r--r--platform-logic/ran-slice-api/src/main/xml/ran-slice-api_activateRANSliceInstance.xml960
6 files changed, 9216 insertions, 4009 deletions
diff --git a/platform-logic/ran-slice-api/src/main/json/ran-slice-api_activateRANSliceInstance-configdb.json b/platform-logic/ran-slice-api/src/main/json/ran-slice-api_activateRANSliceInstance-configdb.json
new file mode 100644
index 00000000..a52e00f5
--- /dev/null
+++ b/platform-logic/ran-slice-api/src/main/json/ran-slice-api_activateRANSliceInstance-configdb.json
@@ -0,0 +1,3090 @@
+[
+ {
+ "id": "5cff533.ee6e9ac",
+ "type": "dgstart",
+ "name": "DGSTART",
+ "outputs": 1,
+ "x": 113,
+ "y": 63.66666793823242,
+ "z": "d1ed7801.f49678",
+ "wires": [
+ [
+ "29a6cffb.deaae"
+ ]
+ ]
+ },
+ {
+ "id": "29a6cffb.deaae",
+ "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": 198.0000228881836,
+ "y": 130.6666374206543,
+ "z": "d1ed7801.f49678",
+ "wires": [
+ [
+ "80cebf59.ce589"
+ ]
+ ]
+ },
+ {
+ "id": "80cebf59.ce589",
+ "type": "method",
+ "name": "method",
+ "xml": "<method rpc='activateRANSliceInstance' mode='sync'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 132,
+ "y": 190.6666030883789,
+ "z": "d1ed7801.f49678",
+ "wires": [
+ [
+ "302cc533.59953a"
+ ]
+ ]
+ },
+ {
+ "id": "302cc533.59953a",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 154.5000114440918,
+ "y": 271.1666717529297,
+ "z": "d1ed7801.f49678",
+ "wires": [
+ [
+ "666ecdad.b370a4",
+ "e3c41d6b.28b97",
+ "88930a1a.ea9d58",
+ "78781314.82d14c",
+ "16406ee7.babe71",
+ "85e5a7d8.35f4c8",
+ "f048d6c7.ea6328",
+ "217a94aa.8e440c",
+ "a8d64ef4.1ff1c",
+ "5c69f25e.ad28ac",
+ "50dfd244.61a03c",
+ "5d700bcb.6e4444",
+ "a9192810.870fa8",
+ "379f4388.b4953c",
+ "f9cb74ce.a0d4a8",
+ "b9f23541.f12148",
+ "3d877225.e9399e",
+ "d7950fa6.48464",
+ "e82f33f.243c9d",
+ "6f3e96e.76eef68",
+ "1464a38f.dd272c"
+ ]
+ ]
+ },
+ {
+ "id": "666ecdad.b370a4",
+ "type": "execute",
+ "name": "generate getNearRTRICsFromRANNFNSSI URL",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$prop.restapi.configdb.getNearRTRICByNSSI`\"/>\n <parameter name=\"outputPath\" value=\"tmp.configdb.getNearRTRICByNSSI.url\"/>\n <parameter name=\"target\" value=\"{ranNFNSSIId}\"/>\n <parameter name=\"replacement\" value=\"`$payloadJson.input.RANNFNSSIId`\"/>",
+ "comments": "",
+ "outputs": 1,
+ "x": 736.2500610351562,
+ "y": 466.36112785339355,
+ "z": "d1ed7801.f49678",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "e3c41d6b.28b97",
+ "type": "record",
+ "name": "record configdb RestAPI params",
+ "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.FileRecorder\">\n<parameter name=\"file\" value=\"/opt/opendaylight/current/data/log/activateRANSlice.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"URL for configDB to Get NearRTRIC for RANNFNSSI\"/>\n<parameter name='field2' value=\"`$prop.configdb.url + $tmp.configdb.getNearRTRICByNSSI.url`\" />\n<parameter name='field3' value=\"`$ranNFNSSIId`\" />",
+ "comments": "",
+ "outputs": 1,
+ "x": 676.2500152587891,
+ "y": 502.91669511795044,
+ "z": "d1ed7801.f49678",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "88930a1a.ea9d58",
+ "type": "execute",
+ "name": "Get nearRTRIC for NFNSSI",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"restapiUrl\" value=\"`$prop.configdb.url + $tmp.configdb.getNearRTRICByNSSI.url`\"/>\n<parameter name=\"httpMethod\" value=\"GET\"/>\n<parameter name=\"responsePrefix\" value=\"getNFNSSIRIC-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": 666.2500915527344,
+ "y": 554.9167256355286,
+ "z": "d1ed7801.f49678",
+ "wires": [
+ [
+ "d12f5b75.1fc3b8",
+ "f633be2c.20ba"
+ ]
+ ]
+ },
+ {
+ "id": "d12f5b75.1fc3b8",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 965.0680961608887,
+ "y": 572.7347493171692,
+ "z": "d1ed7801.f49678",
+ "wires": [
+ [
+ "6ca0966a.cd3738"
+ ]
+ ]
+ },
+ {
+ "id": "6ca0966a.cd3738",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 1135.0679931640625,
+ "y": 573.7348647117615,
+ "z": "d1ed7801.f49678",
+ "wires": [
+ [
+ "4e5ee3e8.54815c",
+ "ae665b19.821998"
+ ]
+ ]
+ },
+ {
+ "id": "4e5ee3e8.54815c",
+ "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/activateRANSlice.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"Successfully Obtained NearRT RIC info from ConfigDB\"/>\n<parameter name=\"field2\" value=\"`$getNFNSSIRIC-configdb-response._length`\"/>",
+ "comments": "",
+ "outputs": 1,
+ "x": 1358.0677909851074,
+ "y": 518.7348484992981,
+ "z": "d1ed7801.f49678",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "ae665b19.821998",
+ "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-activateRANSlice-context.log' />\n\n\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1353.845932006836,
+ "y": 589.7348561286926,
+ "z": "d1ed7801.f49678",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "f633be2c.20ba",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 971.0680503845215,
+ "y": 512.734833240509,
+ "z": "d1ed7801.f49678",
+ "wires": [
+ [
+ "ecd5ff69.13969"
+ ]
+ ]
+ },
+ {
+ "id": "ecd5ff69.13969",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 1251.0681266784668,
+ "y": 418.7348871231079,
+ "z": "d1ed7801.f49678",
+ "wires": [
+ [
+ "1d503010.4fa7d",
+ "d50580ac.cbc9d"
+ ]
+ ]
+ },
+ {
+ "id": "1d503010.4fa7d",
+ "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": 1429.06791305542,
+ "y": 372.8459138870239,
+ "z": "d1ed7801.f49678",
+ "wires": []
+ },
+ {
+ "id": "78781314.82d14c",
+ "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/activateRANSlice.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"RPC to handle activateRANSlice.: \"/>\n<parameter name=\"field2\" value=\"`$activate-r-a-n-slice-instance-input.action`\"/>\n<parameter name=\"field3\" value=\"`$activate-r-a-n-slice-instance-input.timestamp`\"/>\n<parameter name=\"field4\" value=\"`$activate-r-a-n-slice-instance-input.common-header.request-id`\"/>\n<parameter name=\"field5\" value=\"`$activate-r-a-n-slice-instance-input.common-header.originator-id`\"/>\n<parameter name=\"field6\" value=\"RPC Payload String \"/>\n<parameter name=\"field7\" value=\"`$activate-r-a-n-slice-instance-input.payload`\"/>",
+ "comments": "",
+ "outputs": 1,
+ "x": 641,
+ "y": 79.66665458679199,
+ "z": "d1ed7801.f49678",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "16406ee7.babe71",
+ "type": "set",
+ "name": "set default status value",
+ "xml": "<set>\n<parameter name='error-code' value='200' />\n<parameter name='error-message' value='Successful execution of activateRANSice RPC' />",
+ "comments": "",
+ "x": 679.999755859375,
+ "y": 122.6666669845581,
+ "z": "d1ed7801.f49678",
+ "wires": []
+ },
+ {
+ "id": "85e5a7d8.35f4c8",
+ "type": "execute",
+ "name": "execute jsonStringToCtx",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='jsonStringToCtx'>\n\t<parameter name='source' value='activate-r-a-n-slice-instance-input.payload' />\n\t<parameter name='outputPath' value='payloadJson' />\n\t<parameter name='isEscaped' value='false' />",
+ "comments": "",
+ "outputs": 1,
+ "x": 684.9997711181641,
+ "y": 167.41665267944336,
+ "z": "d1ed7801.f49678",
+ "wires": [
+ [
+ "59ef85a1.2c467c"
+ ]
+ ]
+ },
+ {
+ "id": "f048d6c7.ea6328",
+ "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-activateRANSlice-context.log' />\n\n\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 644.6386184692383,
+ "y": 256.40620613098145,
+ "z": "d1ed7801.f49678",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "217a94aa.8e440c",
+ "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": 673.5275650024414,
+ "y": 297.41662979125977,
+ "z": "d1ed7801.f49678",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "a8d64ef4.1ff1c",
+ "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/activateRANSlice.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": 642.5832805633545,
+ "y": 342.8611469268799,
+ "z": "d1ed7801.f49678",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "59ef85a1.2c467c",
+ "type": "other",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 951.4997825622559,
+ "y": 169.41664218902588,
+ "z": "d1ed7801.f49678",
+ "wires": [
+ [
+ "ff6f0a1c.ae0478"
+ ]
+ ]
+ },
+ {
+ "id": "ff6f0a1c.ae0478",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 1151.4999389648438,
+ "y": 172.1666383743286,
+ "z": "d1ed7801.f49678",
+ "wires": [
+ [
+ "74b4afa4.f4321",
+ "7d9ad18.fcc0f3"
+ ]
+ ]
+ },
+ {
+ "id": "74b4afa4.f4321",
+ "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-activateRANSlice-context.log' />\n\n\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1341.500015258789,
+ "y": 133.666672706604,
+ "z": "d1ed7801.f49678",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "7d9ad18.fcc0f3",
+ "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/activateRANSlice.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"Payload for activateRANSlice.: \"/>\n<parameter name=\"field2\" value=\"`$payloadJson.input.sNSSAI`\"/>\n<parameter name=\"field3\" value=\"`$payloadJson.input.RANNFNSSIId`\"/>\n<parameter name=\"field4\" value=\"`$payloadJson.input.callbackURL`\"/>\n<parameter name=\"field5\" value=\"`$payloadJson.input.sliceProfileId`\"/>\n\n\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1340.74995803833,
+ "y": 197.66668891906738,
+ "z": "d1ed7801.f49678",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "5c69f25e.ad28ac",
+ "type": "for",
+ "name": "foreach NearRTRIC",
+ "xml": "<for index='idy' start='0' end='`$tmp.RICList_length`' >\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 418.9375915527344,
+ "y": 995.5416851043701,
+ "z": "d1ed7801.f49678",
+ "wires": [
+ [
+ "1d88ea8d.53a715",
+ "f1a1c257.e418c",
+ "ca964445.270868",
+ "2cb76601.d9cada"
+ ]
+ ]
+ },
+ {
+ "id": "1d88ea8d.53a715",
+ "type": "block",
+ "name": "Process CUCP",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 684.1875305175781,
+ "y": 988.9736156463623,
+ "z": "d1ed7801.f49678",
+ "wires": [
+ [
+ "e31cbd46.17ee",
+ "aedf4ca0.e7e8e",
+ "4bbb940d.a4caac"
+ ]
+ ]
+ },
+ {
+ "id": "e31cbd46.17ee",
+ "type": "execute",
+ "name": "read CUCP list size",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'>\n\t<parameter name='outputPath' value='tmp.CUCPList_length' />\n\t<parameter name='source' value=\"`'getNFNSSIRIC-configdb-response.[' + $idy +'].gNBCUCPList_length'`\" />\n ",
+ "comments": "",
+ "outputs": 1,
+ "x": 1030.437515258789,
+ "y": 858.7235240936279,
+ "z": "d1ed7801.f49678",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "aedf4ca0.e7e8e",
+ "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/activateRANSlice.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"Number of CUCP List Entries \"/>\n<parameter name=\"field2\" value=\"`$tmp.CUCPList_length`\"/>\n<parameter name=\"field3\" value=\"for the NearRTRIC\"/>\n<parameter name=\"field4\" value=\"`$tmp.nearRTRICId`\"/>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 989.9374961853027,
+ "y": 906.2236013412476,
+ "z": "d1ed7801.f49678",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "4bbb940d.a4caac",
+ "type": "for",
+ "name": "foreach CUCP",
+ "xml": "<for index='idz' start='0' end='`$tmp.CUCPList_length`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1006.6876220703125,
+ "y": 956.2236020565033,
+ "z": "d1ed7801.f49678",
+ "wires": [
+ [
+ "a477bc82.81b55"
+ ]
+ ]
+ },
+ {
+ "id": "a477bc82.81b55",
+ "type": "block",
+ "name": "block : process CUCP",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 1217.687515258789,
+ "y": 919.4734954833984,
+ "z": "d1ed7801.f49678",
+ "wires": [
+ [
+ "6d1dad06.36c6d4",
+ "6ce60690.a09ed8",
+ "d794ee3e.25a13",
+ "f3743894.06d978"
+ ]
+ ]
+ },
+ {
+ "id": "6d1dad06.36c6d4",
+ "type": "execute",
+ "name": "read CUCP name",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'>\n\t<parameter name='outputPath' value='tmp.CUCPName' />\n\t<parameter name='source' value=\"`'getNFNSSIRIC-configdb-response.['+ $idy +'].gNBCUCPList['+ $idz +'].gNBCUName'`\" />",
+ "comments": "",
+ "outputs": 1,
+ "x": 1472.4376068115234,
+ "y": 649.5568962097168,
+ "z": "d1ed7801.f49678",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "d794ee3e.25a13",
+ "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/activateRANSlice.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"CUCPName \"/>\n<parameter name=\"field2\" value=\"`$tmp.CUCPName`\"/>\n\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1444.187614440918,
+ "y": 704.7235069274902,
+ "z": "d1ed7801.f49678",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "f3743894.06d978",
+ "type": "execute",
+ "name": "read cellCU list size",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'>\n\t<parameter name='outputPath' value='tmp.cellCUList_length' />\n\t<parameter name='source' value=\"`'getNFNSSIRIC-configdb-response.[' + $idy +'].gNBCUCPList[' + $idz +'].cellCUList_length'`\" />\n ",
+ "comments": "",
+ "outputs": 1,
+ "x": 1481.4375228881836,
+ "y": 752.4735221862793,
+ "z": "d1ed7801.f49678",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "6ce60690.a09ed8",
+ "type": "for",
+ "name": "for cellCUList",
+ "xml": "<for index='idcu' start='0' end='`$tmp.cellCUList_length`' >\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1456.4374923706055,
+ "y": 805.2235374450684,
+ "z": "d1ed7801.f49678",
+ "wires": [
+ [
+ "748061d6.af9fa"
+ ]
+ ]
+ },
+ {
+ "id": "748061d6.af9fa",
+ "type": "block",
+ "name": "block",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 1671.4375343322754,
+ "y": 805.473554611206,
+ "z": "d1ed7801.f49678",
+ "wires": [
+ [
+ "8c28af29.115fd",
+ "db24199a.8cfc78",
+ "50355151.eb926"
+ ]
+ ]
+ },
+ {
+ "id": "8c28af29.115fd",
+ "type": "execute",
+ "name": "read PLMNList size",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'>\n\t<parameter name='outputPath' value='tmp.pLMNInfoList_length' />\n\t<parameter name='source' value=\"`'getNFNSSIRIC-configdb-response.['+ $idy +'].gNBCUCPList['+ $idz +'].cellCUList['+ $idcu +'].pLMNInfoList_length'`\" />",
+ "comments": "",
+ "outputs": 1,
+ "x": 1888.3964233398438,
+ "y": 744.1265239715576,
+ "z": "d1ed7801.f49678",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "50355151.eb926",
+ "type": "for",
+ "name": "foreach PLMNInfo",
+ "xml": "<for index='id-cuplmn' start='0' end='`$tmp.pLMNInfoList_length`' >\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1888.4241485595703,
+ "y": 823.3207906484604,
+ "z": "d1ed7801.f49678",
+ "wires": [
+ [
+ "58e2850a.a5484c"
+ ]
+ ]
+ },
+ {
+ "id": "58e2850a.a5484c",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 2095.313056945801,
+ "y": 765.0985851287842,
+ "z": "d1ed7801.f49678",
+ "wires": [
+ [
+ "fb737c3b.904ff",
+ "babec019.ba3f3"
+ ]
+ ]
+ },
+ {
+ "id": "b14f7f73.800f2",
+ "type": "execute",
+ "name": "read sNSSAI from getNFNSSIRIC-configdb-response",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'>\n\t<parameter name='outputPath' value='tmp.configDBSNSSAI' />\n\t<parameter name='source' value=\"`'getNFNSSIRIC-configdb-response.['+ $idy +'].gNBCUCPList['+ $idz +'].cellCUList['+ $idcu +'].pLMNInfoList['+ $id-cuplmn +'].sNSSAI['+$id-cunssai+'].sNSSAI'`\" />",
+ "comments": "",
+ "outputs": 1,
+ "x": 2445.7574768066406,
+ "y": 778.0985803604126,
+ "z": "d1ed7801.f49678",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "4b92bb45.32d8c4",
+ "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/activateRANSlice.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"sNSSAI - getNFNSSIRIC-configdb-response\"/>\n<parameter name=\"field2\" value=\"`$tmp.configDBSNSSAI`\"/>\n<parameter name=\"field3\" value=\"sNSSAI from request\"/>\n<parameter name=\"field4\" value=\"`$tmp.sNSSAI`\"/>\n\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2304.5353813171387,
+ "y": 811.6541061401367,
+ "z": "d1ed7801.f49678",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "ccc6e66c.69f758",
+ "type": "switchNode",
+ "name": "is NSSAI exists",
+ "xml": "<switch test='`$tmp.configDBSNSSAI == $tmp.sNSSAI`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2340.0908584594727,
+ "y": 852.8763341903687,
+ "z": "d1ed7801.f49678",
+ "wires": [
+ [
+ "e658c4c2.335c18"
+ ]
+ ]
+ },
+ {
+ "id": "e658c4c2.335c18",
+ "type": "outcome",
+ "name": "True",
+ "xml": "<outcome value='true'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2529.563056945801,
+ "y": 853.0986633300781,
+ "z": "d1ed7801.f49678",
+ "wires": [
+ [
+ "34a31c3d.45b4a4"
+ ]
+ ]
+ },
+ {
+ "id": "34a31c3d.45b4a4",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 2750.1875,
+ "y": 850.8541679382324,
+ "z": "d1ed7801.f49678",
+ "wires": [
+ [
+ "24eec6ca.92354a",
+ "73519b37.01f084",
+ "657b647a.1dc85c",
+ "728808c9.d37108",
+ "dd6b153e.625b98",
+ "c2803c76.48a6a",
+ "2aeb726a.d5be4e",
+ "bbc09881.a83178",
+ "cfd2003a.83916"
+ ]
+ ]
+ },
+ {
+ "id": "cfd2003a.83916",
+ "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/activateRANSlice.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"CellCU is applicable for the NSSAI \"/>\n\n\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2945.1875,
+ "y": 845.8541679382324,
+ "z": "d1ed7801.f49678",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "bbc09881.a83178",
+ "type": "switchNode",
+ "name": "ransim mounted",
+ "xml": "<switch test='`$prop.ransim-mounted`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2973.1875,
+ "y": 913.8541679382324,
+ "z": "d1ed7801.f49678",
+ "wires": [
+ [
+ "7c145e10.91e4b",
+ "669a1199.8448"
+ ]
+ ]
+ },
+ {
+ "id": "7c145e10.91e4b",
+ "type": "outcome",
+ "name": "Not Mounted",
+ "xml": "<outcome value='false'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 3181.1875,
+ "y": 878.8539237976074,
+ "z": "d1ed7801.f49678",
+ "wires": [
+ [
+ "d3b43228.ed7a6"
+ ]
+ ]
+ },
+ {
+ "id": "d3b43228.ed7a6",
+ "type": "execute",
+ "name": "generate patch PLMNInfoListEntry ToNRCellCU",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$prop.restapi.patchPLMNInfoListEntry.ToNRCellCU`\"/>\n <parameter name=\"outputPath\" value=\"tmp.patchPLMNInfoListEntry.url\"/>\n <parameter name=\"target\" value=\"{idNearRTRIC}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.nearRTRICId`\"/>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 3501.1875,
+ "y": 893.8541679382324,
+ "z": "d1ed7801.f49678",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "486e157.492e2ec",
+ "type": "execute",
+ "name": "generate patchPLMNInfoList.ToNRCellCU",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$prop.restapi.patchPLMNInfoListEntry.ToNRCellCU.ransim-mounted`\"/>\n <parameter name=\"outputPath\" value=\"tmp.patchPLMNInfoListEntry.url\"/>\n <parameter name=\"target\" value=\"{idNearRTRIC}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.nearRTRICId`\"/>",
+ "comments": "",
+ "outputs": 1,
+ "x": 3679.687530517578,
+ "y": 951.8541069030762,
+ "z": "d1ed7801.f49678",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "8c4050b7.59905",
+ "type": "execute",
+ "name": "populate mountName",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$tmp.patchPLMNInfoListEntry.url`\"/>\n <parameter name=\"outputPath\" value=\"tmp.patchPLMNInfoListEntry.url\"/>\n <parameter name=\"target\" value=\"{mountName}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.CUCPName`\"/>",
+ "comments": "",
+ "outputs": 1,
+ "x": 3623.687931060791,
+ "y": 1004.8543004989624,
+ "z": "d1ed7801.f49678",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "26af655d.ac728a",
+ "type": "block",
+ "name": "ransim URL",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 3372.6875,
+ "y": 981.8541679382324,
+ "z": "d1ed7801.f49678",
+ "wires": [
+ [
+ "486e157.492e2ec",
+ "8c4050b7.59905"
+ ]
+ ]
+ },
+ {
+ "id": "669a1199.8448",
+ "type": "outcome",
+ "name": "Mounted",
+ "xml": "<outcome value='true'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 3169.1875,
+ "y": 980.8541679382324,
+ "z": "d1ed7801.f49678",
+ "wires": [
+ [
+ "26af655d.ac728a"
+ ]
+ ]
+ },
+ {
+ "id": "24eec6ca.92354a",
+ "type": "execute",
+ "name": "read cellCU",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'>\n\t<parameter name='outputPath' value='tmp.cellCULocalId' />\n\t<parameter name='source' value=\"`'getNFNSSIRIC-configdb-response.['+ $idy +'].gNBCUCPList['+ $idz +'].cellCUList['+ $idcu +'].cellLocalId'`\" />",
+ "comments": "",
+ "outputs": 1,
+ "x": 2940.1875,
+ "y": 1013.8541679382324,
+ "z": "d1ed7801.f49678",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "dd6b153e.625b98",
+ "type": "execute",
+ "name": "prepare idGNBCUCPFunction",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$tmp.patchPLMNInfoListEntry.url`\"/>\n <parameter name=\"outputPath\" value=\"tmp.patchPLMNInfoListEntry.url\"/>\n <parameter name=\"target\" value=\"{idGNBCUCPFunction}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.CUCPName`\"/>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2967.1875,
+ "y": 1077.8541679382324,
+ "z": "d1ed7801.f49678",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "c2803c76.48a6a",
+ "type": "execute",
+ "name": "prepare idNRCellCU",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$tmp.patchPLMNInfoListEntry.url`\"/>\n <parameter name=\"outputPath\" value=\"tmp.patchPLMNInfoListEntry.url\"/>\n <parameter name=\"target\" value=\"{idNRCellCU}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.cellCULocalId`\"/>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2928.187759399414,
+ "y": 1123.354196548462,
+ "z": "d1ed7801.f49678",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "2aeb726a.d5be4e",
+ "type": "execute",
+ "name": "prepare mcc",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$tmp.patchPLMNInfoListEntry.url`\"/>\n <parameter name=\"outputPath\" value=\"tmp.patchPLMNInfoListEntry.url\"/>\n <parameter name=\"target\" value=\"{mcc}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.mcc`\"/>\n ",
+ "comments": "",
+ "outputs": 1,
+ "x": 2893.9375610351562,
+ "y": 1205.104224205017,
+ "z": "d1ed7801.f49678",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "73519b37.01f084",
+ "type": "execute",
+ "name": "prepare mnc",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$tmp.patchPLMNInfoListEntry.url`\"/>\n <parameter name=\"outputPath\" value=\"tmp.patchPLMNInfoListEntry.url\"/>\n <parameter name=\"target\" value=\"{mnc}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.mnc`\"/>",
+ "comments": "",
+ "outputs": 1,
+ "x": 2882.68798828125,
+ "y": 1265.3542404174805,
+ "z": "d1ed7801.f49678",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "657b647a.1dc85c",
+ "type": "record",
+ "name": "record API params",
+ "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.FileRecorder\">\n<parameter name=\"file\" value=\"/opt/opendaylight/current/data/log/activateRANSlice.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"patch cellCU NSSAI parameters\"/>\n<parameter name=\"field2\" value=\"`$tmp.nearRTRICId`\"/>\n<parameter name=\"field3\" value=\"`$tmp.CUCPName`\"/>\n<parameter name=\"field4\" value=\"`$tmp.cellCULocalId`\"/>\n<parameter name=\"field5\" value=\"`$tmp.mcc`\"/>\n<parameter name=\"field6\" value=\"`$tmp.mnc`\"/>\n<parameter name=\"field7\" value=\"`$tmp.patchPLMNInfoListEntry.url`\"/>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2879.1875,
+ "y": 1333.8541679382324,
+ "z": "d1ed7801.f49678",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "728808c9.d37108",
+ "type": "execute",
+ "name": "activate PLMNInfoListEntry ToNRCellDU",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"templateFileName\" value=\"`$prop.restapi.templateDir + '/ranSlice-patch-sNSSAI-status.json'`\" />\n<parameter name=\"restapiUrl\" value=\"`$prop.controller.url + $tmp.patchPLMNInfoListEntry.url`\"/>\n<parameter name=\"restapiUser\" value=\"`$prop.controller.user`\" />\n<parameter name=\"restapiPassword\" value=\"`$prop.controller.pwd`\"/>\n<parameter name=\"httpMethod\" value=\"PATCH\"/>\n<parameter name=\"responsePrefix\" value=\"activate-cellCU-PLMNInfoList-response\"/>\n<parameter name='contentType' value='application/yang.patch+json' />\n<parameter name='accept' value='application/yang.patch-status+json'/>\n<parameter name='format' value='json' />",
+ "comments": "",
+ "outputs": 1,
+ "x": 2919.1876068115234,
+ "y": 1396.8541412353516,
+ "z": "d1ed7801.f49678",
+ "wires": [
+ [
+ "8a94a067.f3301",
+ "3c056e58.b00c92"
+ ]
+ ]
+ },
+ {
+ "id": "3c056e58.b00c92",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 3135.18758392334,
+ "y": 1275.8541412353516,
+ "z": "d1ed7801.f49678",
+ "wires": [
+ [
+ "652aec57.ea3014"
+ ]
+ ]
+ },
+ {
+ "id": "652aec57.ea3014",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 3285.187858581543,
+ "y": 1234.8543243408203,
+ "z": "d1ed7801.f49678",
+ "wires": [
+ [
+ "bea1270c.9024d8",
+ "5dacb409.a8884c",
+ "d50580ac.cbc9d"
+ ]
+ ]
+ },
+ {
+ "id": "5dacb409.a8884c",
+ "type": "set",
+ "name": "set",
+ "xml": "<set>\n<parameter name='error-code' value='500'/>\n<parameter name='error-message' value='Error patching cellCU PLMNInfoList. Aborting RPC executiopn'/>",
+ "comments": "",
+ "x": 3451.187614440918,
+ "y": 1200.8543243408203,
+ "z": "d1ed7801.f49678",
+ "wires": []
+ },
+ {
+ "id": "bea1270c.9024d8",
+ "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 NRcellCU - PLMNInfo. Aborting RPC executiopn'/>",
+ "comments": "",
+ "x": 3456.1874923706055,
+ "y": 1295.8543853759766,
+ "z": "d1ed7801.f49678",
+ "wires": []
+ },
+ {
+ "id": "42b8141f.3e5b2c",
+ "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/activateRANSlice.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"Successfully Patched - cellCU PLMNInfo List\"/>",
+ "comments": "",
+ "outputs": 1,
+ "x": 3541.1874618530273,
+ "y": 1388.8545684814453,
+ "z": "d1ed7801.f49678",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "fb920a8b.9a3828",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 3343.187400817871,
+ "y": 1391.8544464111328,
+ "z": "d1ed7801.f49678",
+ "wires": [
+ [
+ "42b8141f.3e5b2c"
+ ]
+ ]
+ },
+ {
+ "id": "8a94a067.f3301",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 3170.187614440918,
+ "y": 1392.8543853759766,
+ "z": "d1ed7801.f49678",
+ "wires": [
+ [
+ "fb920a8b.9a3828"
+ ]
+ ]
+ },
+ {
+ "id": "50dfd244.61a03c",
+ "type": "execute",
+ "name": "read sNSSAI from input",
+ "xml": "<set>\n<parameter name='tmp.sNSSAI' value=\"`$payloadJson.input.sNSSAI`\" />\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 692.6875152587891,
+ "y": 213.66667366027832,
+ "z": "d1ed7801.f49678",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "f1a1c257.e418c",
+ "type": "block",
+ "name": "Process CUUP",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 685.1875534057617,
+ "y": 1130.854193687439,
+ "z": "d1ed7801.f49678",
+ "wires": [
+ [
+ "8c7e805a.75031",
+ "f1bcc118.d5bef",
+ "db0bbd4d.b879e"
+ ]
+ ]
+ },
+ {
+ "id": "8c7e805a.75031",
+ "type": "execute",
+ "name": "read CUUP list size",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'>\n\t<parameter name='outputPath' value='tmp.CUUPList_length' />\n\t<parameter name='source' value=\"`'getNFNSSIRIC-configdb-response.[' + $idy +'].gNBCUUPList_length'`\" />\n ",
+ "comments": "",
+ "outputs": 1,
+ "x": 1016.187557220459,
+ "y": 1030.854190826416,
+ "z": "d1ed7801.f49678",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "f1bcc118.d5bef",
+ "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/activateRANSlice.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"Number of CUCP List Entries \"/>\n<parameter name=\"field2\" value=\"`$tmp.CUUPList_length`\"/>\n<parameter name=\"field3\" value=\"for the NearRTRIC\"/>\n<parameter name=\"field4\" value=\"`$tmp.nearRTRICId`\"/>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 973.1876220703125,
+ "y": 1082.1041932106018,
+ "z": "d1ed7801.f49678",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "db0bbd4d.b879e",
+ "type": "for",
+ "name": "foreach CUUP",
+ "xml": "<for index='id-cuup' start='0' end='`$tmp.CUUPList_length`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 998.6875152587891,
+ "y": 1130.8541927337646,
+ "z": "d1ed7801.f49678",
+ "wires": [
+ [
+ "e3f52f92.a0982"
+ ]
+ ]
+ },
+ {
+ "id": "e3f52f92.a0982",
+ "type": "block",
+ "name": "block : process CUUP",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 1222.1875610351562,
+ "y": 1114.1042385101318,
+ "z": "d1ed7801.f49678",
+ "wires": [
+ [
+ "a4704939.791ef8",
+ "f57a1d66.09362",
+ "a759d9ec.fff038",
+ "ad8147ff.97d348"
+ ]
+ ]
+ },
+ {
+ "id": "a4704939.791ef8",
+ "type": "execute",
+ "name": "read CUUP id",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'>\n\t<parameter name='outputPath' value='tmp.idGNBCUUPFunction' />\n\t<parameter name='source' value=\"`'getNFNSSIRIC-configdb-response.['+ $idy +'].gNBCUUPList['+ $id-cuup +'].gNBCUUPId'`\" />",
+ "comments": "",
+ "outputs": 1,
+ "x": 1466.1875,
+ "y": 889.3541679382324,
+ "z": "d1ed7801.f49678",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "f57a1d66.09362",
+ "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/activateRANSlice.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"idGNBCUUPFunction \"/>\n<parameter name=\"field2\" value=\"`$tmp.idGNBCUUPFunction`\"/>\n\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1462.1875,
+ "y": 943.3541679382324,
+ "z": "d1ed7801.f49678",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "a759d9ec.fff038",
+ "type": "execute",
+ "name": "read plmninfolist size",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'>\n\t<parameter name='outputPath' value='tmp.pLMNInfoList' />\n\t<parameter name='source' value=\"`'getNFNSSIRIC-configdb-response.['+ $idy +'].gNBCUUPList['+ $id-cuup +'].pLMNInfoList_length'`\" />",
+ "comments": "",
+ "outputs": 1,
+ "x": 1513.1875,
+ "y": 1008.3541679382324,
+ "z": "d1ed7801.f49678",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "ad8147ff.97d348",
+ "type": "for",
+ "name": "foreach pLMNInfo",
+ "xml": "<for index='id-plmn' start='0' end='`$tmp.pLMNInfoList`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1499.1875,
+ "y": 1063.3541679382324,
+ "z": "d1ed7801.f49678",
+ "wires": [
+ [
+ "dc2400ca.fd07e"
+ ]
+ ]
+ },
+ {
+ "id": "e5bbe9de.e12928",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 1738.3125,
+ "y": 1060.5416679382324,
+ "z": "d1ed7801.f49678",
+ "wires": [
+ [
+ "116e91.57b7b17",
+ "796b25a4.b111ec",
+ "8f8b0b52.1e6b88",
+ "c56a0948.d9efb8",
+ "9dca12e8.9048e",
+ "ab2f25e7.72f538"
+ ]
+ ]
+ },
+ {
+ "id": "116e91.57b7b17",
+ "type": "switchNode",
+ "name": "ransim mounted",
+ "xml": "<switch test='`$prop.ransim-mounted`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1951.562759399414,
+ "y": 1061.2918167114258,
+ "z": "d1ed7801.f49678",
+ "wires": [
+ [
+ "b35468ae.49e5f8",
+ "5e36c60a.6a1578"
+ ]
+ ]
+ },
+ {
+ "id": "b35468ae.49e5f8",
+ "type": "outcome",
+ "name": "Not Mounted",
+ "xml": "<outcome value='false'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2164.562641143799,
+ "y": 1028.7914352416992,
+ "z": "d1ed7801.f49678",
+ "wires": [
+ [
+ "4b8207f2.432e78"
+ ]
+ ]
+ },
+ {
+ "id": "4b8207f2.432e78",
+ "type": "execute",
+ "name": "generate patch PLMNInfoListEntry CUUP URL",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$prop.restapi.patchPLMNInfoListEntry.ToGNBCUUP`\"/>\n <parameter name=\"outputPath\" value=\"tmp.patchPLMNInfoList-CUUP.url\"/>\n <parameter name=\"target\" value=\"{idNearRTRIC}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.nearRTRICId`\"/>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2489.5625228881836,
+ "y": 983.7917394638062,
+ "z": "d1ed7801.f49678",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "1c769fca.24a33",
+ "type": "execute",
+ "name": "generate patchPLMNInfoList.TogNBCUUP",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$prop.restapi.patchPLMNInfoListEntry.ToGNBCUUP.ransim-mounted`\"/>\n <parameter name=\"outputPath\" value=\"tmp.patchPLMNInfoList-CUUP.url\"/>\n <parameter name=\"target\" value=\"{idNearRTRIC}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.nearRTRICId`\"/>",
+ "comments": "",
+ "outputs": 1,
+ "x": 2600.3120651245117,
+ "y": 1066.5414505004883,
+ "z": "d1ed7801.f49678",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "af9a45f1.2e5218",
+ "type": "execute",
+ "name": "populate mountName",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$tmp.patchPLMNInfoList-CUUP.url`\"/>\n <parameter name=\"outputPath\" value=\"tmp.patchPLMNInfoList-CUUP.url\"/>\n <parameter name=\"target\" value=\"{mountName}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.idGNBCUUPFunction`\"/>",
+ "comments": "",
+ "outputs": 1,
+ "x": 2584.3125858306885,
+ "y": 1134.5417108535767,
+ "z": "d1ed7801.f49678",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "f548888d.52ce48",
+ "type": "block",
+ "name": "ransim URL",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 2324.562370300293,
+ "y": 1125.2914509773254,
+ "z": "d1ed7801.f49678",
+ "wires": [
+ [
+ "1c769fca.24a33",
+ "af9a45f1.2e5218"
+ ]
+ ]
+ },
+ {
+ "id": "5e36c60a.6a1578",
+ "type": "outcome",
+ "name": "Mounted",
+ "xml": "<outcome value='true'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2150.062515258789,
+ "y": 1114.5417098999023,
+ "z": "d1ed7801.f49678",
+ "wires": [
+ [
+ "f548888d.52ce48"
+ ]
+ ]
+ },
+ {
+ "id": "796b25a4.b111ec",
+ "type": "execute",
+ "name": "prepare idGNBCUUPFunction",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$tmp.patchPLMNInfoList-CUUP.url`\"/>\n <parameter name=\"outputPath\" value=\"tmp.patchPLMNInfoList-CUUP.url\"/>\n <parameter name=\"target\" value=\"{idGNBCUUPFunction}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.idGNBCUUPFunction`\"/>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2020.2221374511719,
+ "y": 1174.3263745307922,
+ "z": "d1ed7801.f49678",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "8f8b0b52.1e6b88",
+ "type": "execute",
+ "name": "patch PLMNInfoListEntry gNBCUUP",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"templateFileName\" value=\"`$prop.restapi.templateDir + '/ranSlice-patch-sNSSAI-status.json'`\" />\n<parameter name=\"restapiUrl\" value=\"`$prop.controller.url + $tmp.patchPLMNInfoList-CUUP.url`\"/>\n<parameter name=\"restapiUser\" value=\"`$prop.controller.user`\" />\n<parameter name=\"restapiPassword\" value=\"`$prop.controller.pwd`\"/>\n<parameter name=\"httpMethod\" value=\"PATCH\"/>\n<parameter name=\"responsePrefix\" value=\"activate-gNBCUUP-PLMNInfoList-response\"/>\n<parameter name='contentType' value='application/yang.patch+json' />\n<parameter name='accept' value='application/yang.patch-status+json'/>\n<parameter name='format' value='json' />",
+ "comments": "",
+ "outputs": 1,
+ "x": 1969.5556335449219,
+ "y": 1287.9930458068848,
+ "z": "d1ed7801.f49678",
+ "wires": [
+ [
+ "bb4d989b.a04cd8",
+ "aa066d3d.d7c3"
+ ]
+ ]
+ },
+ {
+ "id": "bb4d989b.a04cd8",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2296.0001525878906,
+ "y": 1251.1044073104858,
+ "z": "d1ed7801.f49678",
+ "wires": [
+ [
+ "a110d361.154bc"
+ ]
+ ]
+ },
+ {
+ "id": "aa066d3d.d7c3",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2290.000030517578,
+ "y": 1318.1043462753296,
+ "z": "d1ed7801.f49678",
+ "wires": [
+ [
+ "7e3894ea.de258c"
+ ]
+ ]
+ },
+ {
+ "id": "a110d361.154bc",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 2473.000274658203,
+ "y": 1240.1042852401733,
+ "z": "d1ed7801.f49678",
+ "wires": [
+ [
+ "39dd38ad.8e62c8",
+ "d133c7f3.0d6df8",
+ "d50580ac.cbc9d"
+ ]
+ ]
+ },
+ {
+ "id": "7e3894ea.de258c",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 2470.000030517578,
+ "y": 1323.1041631698608,
+ "z": "d1ed7801.f49678",
+ "wires": [
+ [
+ "1181bb9e.41a574"
+ ]
+ ]
+ },
+ {
+ "id": "1181bb9e.41a574",
+ "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/activateRANSlice.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"Successfully Patched - gNBCUUP PLMNInfo List\"/>",
+ "comments": "",
+ "outputs": 1,
+ "x": 2622.999725341797,
+ "y": 1323.1044073104858,
+ "z": "d1ed7801.f49678",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "39dd38ad.8e62c8",
+ "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 patching CUUP PLMNInfo. Aborting RPC executiopn'/>",
+ "comments": "",
+ "x": 2677.7502365112305,
+ "y": 1240.604564666748,
+ "z": "d1ed7801.f49678",
+ "wires": []
+ },
+ {
+ "id": "d133c7f3.0d6df8",
+ "type": "set",
+ "name": "set",
+ "xml": "<set>\n<parameter name='error-code' value='500'/>\n<parameter name='error-message' value='Error patching CUUP PLMNInfoList. Aborting RPC executiopn'/>",
+ "comments": "",
+ "x": 2682.7504234313965,
+ "y": 1186.6047005653381,
+ "z": "d1ed7801.f49678",
+ "wires": []
+ },
+ {
+ "id": "ca964445.270868",
+ "type": "block",
+ "name": "Process gNBDU",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 679.5625076293945,
+ "y": 1279.2916927337646,
+ "z": "d1ed7801.f49678",
+ "wires": [
+ [
+ "60374cf7.c54df4",
+ "acd0741.cde8688",
+ "798e3427.6f079c"
+ ]
+ ]
+ },
+ {
+ "id": "60374cf7.c54df4",
+ "type": "execute",
+ "name": "read DUlist size",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'>\n\t<parameter name='outputPath' value='tmp.DUList_length' />\n\t<parameter name='source' value=\"`'getNFNSSIRIC-configdb-response.[' + $idy +'].gNBDUList_length'`\" />\n ",
+ "comments": "",
+ "outputs": 1,
+ "x": 1012.3125305175781,
+ "y": 1185.2916793823242,
+ "z": "d1ed7801.f49678",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "acd0741.cde8688",
+ "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/activateRANSlice.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"Number of DU List Entries \"/>\n<parameter name=\"field2\" value=\"`$tmp.DUList_length`\"/>\n<parameter name=\"field3\" value=\"for the NearRTRIC\"/>\n<parameter name=\"field4\" value=\"`$tmp.nearRTRICId`\"/>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 985.312557220459,
+ "y": 1228.7917404174805,
+ "z": "d1ed7801.f49678",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "798e3427.6f079c",
+ "type": "for",
+ "name": "foreach DU",
+ "xml": "<for index='id-du' start='0' end='`$tmp.DUList_length`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 997.3125305175781,
+ "y": 1280.0416679382324,
+ "z": "d1ed7801.f49678",
+ "wires": [
+ [
+ "4d85ea7e.403b54"
+ ]
+ ]
+ },
+ {
+ "id": "4d85ea7e.403b54",
+ "type": "block",
+ "name": "block : process gNBDU",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 1278.3125,
+ "y": 1281.0416374206543,
+ "z": "d1ed7801.f49678",
+ "wires": [
+ [
+ "2c804031.ea88b",
+ "c20d4746.4fadb8",
+ "42054159.ce5d7",
+ "899cc013.9f6f7"
+ ]
+ ]
+ },
+ {
+ "id": "2c804031.ea88b",
+ "type": "execute",
+ "name": "read DU id",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'>\n\t<parameter name='outputPath' value='tmp.GNBDUId' />\n\t<parameter name='source' value=\"`'getNFNSSIRIC-configdb-response.['+ $idy +'].gNBDUList['+ $id-du +'].gNBDUId'`\" />",
+ "comments": "",
+ "outputs": 1,
+ "x": 1557.3123245239258,
+ "y": 1277.0409393310547,
+ "z": "d1ed7801.f49678",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "c20d4746.4fadb8",
+ "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/activateRANSlice.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"GNBDUId \"/>\n<parameter name=\"field2\" value=\"`$tmp.GNBDUId`\"/>\n\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1530.3123245239258,
+ "y": 1328.0409393310547,
+ "z": "d1ed7801.f49678",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "42054159.ce5d7",
+ "type": "execute",
+ "name": "read cellDU list size",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'>\n\t<parameter name='outputPath' value='tmp.cellDUList_length' />\n\t<parameter name='source' value=\"`'getNFNSSIRIC-configdb-response.[' + $idy +'].gNBDUList[' + $id-du +'].cellDUList_length'`\" />\n ",
+ "comments": "",
+ "outputs": 1,
+ "x": 1571.3123245239258,
+ "y": 1377.0409393310547,
+ "z": "d1ed7801.f49678",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "899cc013.9f6f7",
+ "type": "for",
+ "name": "for cellDUList",
+ "xml": "<for index='id-celldu' start='0' end='`$tmp.cellDUList_length`' >\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1561.3123245239258,
+ "y": 1421.0409393310547,
+ "z": "d1ed7801.f49678",
+ "wires": [
+ [
+ "ad2f62cd.bfdd7"
+ ]
+ ]
+ },
+ {
+ "id": "ad2f62cd.bfdd7",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 1721.062385559082,
+ "y": 1420.7910642623901,
+ "z": "d1ed7801.f49678",
+ "wires": [
+ [
+ "fc5ab7b1.d5b378",
+ "464b542f.37084c",
+ "1de1fac1.d35265"
+ ]
+ ]
+ },
+ {
+ "id": "fc5ab7b1.d5b378",
+ "type": "execute",
+ "name": "read PLMNList size",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'>\n\t<parameter name='outputPath' value='tmp.DUpLMNInfoList_length' />\n\t<parameter name='source' value=\"`'getNFNSSIRIC-configdb-response.['+ $idy +'].gNBDUList['+ $id-du +'].cellDUList['+ $id-celldu +'].pLMNInfoList_length'`\" />",
+ "comments": "",
+ "outputs": 1,
+ "x": 1969.25,
+ "y": 1420.5416679382324,
+ "z": "d1ed7801.f49678",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "464b542f.37084c",
+ "type": "for",
+ "name": "foreach PLMNInfo",
+ "xml": "<for index='id-duplmn' start='0' end='`$tmp.DUpLMNInfoList_length`' >\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1947.5833740234375,
+ "y": 1490.5416679382324,
+ "z": "d1ed7801.f49678",
+ "wires": [
+ [
+ "2c99b72.ad82448"
+ ]
+ ]
+ },
+ {
+ "id": "2c99b72.ad82448",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 2132.9721603393555,
+ "y": 1484.56937789917,
+ "z": "d1ed7801.f49678",
+ "wires": [
+ [
+ "13dd363.0ebddca",
+ "e949b2da.b8d16"
+ ]
+ ]
+ },
+ {
+ "id": "ad9f55d2.8dd238",
+ "type": "execute",
+ "name": "read sNSSAI from getNFNSSIRIC-configdb-response",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'>\n\t<parameter name='outputPath' value='tmp.configDBSNSSAI-DU' />\n\t<parameter name='source' value=\"`'getNFNSSIRIC-configdb-response.['+ $idy +'].gNBDUList['+ $id-du +'].cellDUList['+ $id-celldu +'].pLMNInfoList['+ $id-duplmn +'].sNSSAI['+$id-dunssai+'].sNSSAI'`\" />",
+ "comments": "",
+ "outputs": 1,
+ "x": 2485.527862548828,
+ "y": 1458.6533187627792,
+ "z": "d1ed7801.f49678",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "8a1ae64b.0ee3e8",
+ "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/activateRANSlice.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"sNSSAI - getNFNSSIRIC-configdb-response\"/>\n<parameter name=\"field2\" value=\"`$tmp.configDBSNSSAI-DU`\"/>\n<parameter name=\"field3\" value=\"sNSSAI from request\"/>\n<parameter name=\"field4\" value=\"`$tmp.sNSSAI`\"/>\n\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2358.8610763549805,
+ "y": 1501.5419877767563,
+ "z": "d1ed7801.f49678",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "b372e52a.3b17b8",
+ "type": "switchNode",
+ "name": "is NSSAI exists",
+ "xml": "<switch test='`$tmp.configDBSNSSAI-DU == $tmp.sNSSAI`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2356.9999923706055,
+ "y": 1542.0974992513657,
+ "z": "d1ed7801.f49678",
+ "wires": [
+ [
+ "fe93c78f.f91d18"
+ ]
+ ]
+ },
+ {
+ "id": "fe93c78f.f91d18",
+ "type": "outcome",
+ "name": "True",
+ "xml": "<outcome value='true'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2530.4724349975586,
+ "y": 1547.8198207616806,
+ "z": "d1ed7801.f49678",
+ "wires": [
+ [
+ "b4dafbf2.c32438"
+ ]
+ ]
+ },
+ {
+ "id": "b4dafbf2.c32438",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 2712.500129699707,
+ "y": 1499.7918910980225,
+ "z": "d1ed7801.f49678",
+ "wires": [
+ [
+ "721df19.911991",
+ "ad33f1e2.1f442",
+ "aa3f5c54.b1ff",
+ "7bf6a0fa.78272",
+ "ed7bc479.772488",
+ "e3a236ea.7a8fe8",
+ "fa098be9.a6f2c8"
+ ]
+ ]
+ },
+ {
+ "id": "3fb77cec.bd13b4",
+ "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/activateRANSlice.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"CellDU is applicable for the NSSAI \"/>\n\n\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2925.0004959106445,
+ "y": 1468.5418912172318,
+ "z": "d1ed7801.f49678",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "721df19.911991",
+ "type": "switchNode",
+ "name": "ransim mounted",
+ "xml": "<switch test='`$prop.ransim-mounted`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2929.2500076293945,
+ "y": 1526.5419235229492,
+ "z": "d1ed7801.f49678",
+ "wires": [
+ [
+ "38615202.b77a1e",
+ "a011653f.03dda8"
+ ]
+ ]
+ },
+ {
+ "id": "38615202.b77a1e",
+ "type": "outcome",
+ "name": "Not Mounted",
+ "xml": "<outcome value='false'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 3138.500499725342,
+ "y": 1481.541464805603,
+ "z": "d1ed7801.f49678",
+ "wires": [
+ [
+ "aa530664.9ca788"
+ ]
+ ]
+ },
+ {
+ "id": "a011653f.03dda8",
+ "type": "outcome",
+ "name": "Mounted",
+ "xml": "<outcome value='true'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 3133.500499725342,
+ "y": 1543.0421676635742,
+ "z": "d1ed7801.f49678",
+ "wires": [
+ [
+ "da3d810.b5d8d8"
+ ]
+ ]
+ },
+ {
+ "id": "aa530664.9ca788",
+ "type": "execute",
+ "name": "generate patch PLMNInfoListEntry ToNRCellDU",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$prop.restapi.patchPLMNInfoListEntry.ToNRCellDU`\"/>\n <parameter name=\"outputPath\" value=\"tmp.patchPLMNInfoListEntry-cellDU.url\"/>\n <parameter name=\"target\" value=\"{idNearRTRIC}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.nearRTRICId`\"/>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 3484.750259399414,
+ "y": 1480.2919216156006,
+ "z": "d1ed7801.f49678",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "da3d810.b5d8d8",
+ "type": "block",
+ "name": "ransim URL",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 3311.0000762939453,
+ "y": 1549.5418014526367,
+ "z": "d1ed7801.f49678",
+ "wires": [
+ [
+ "70f711ae.9e416",
+ "2d22f2a1.bee86e"
+ ]
+ ]
+ },
+ {
+ "id": "70f711ae.9e416",
+ "type": "execute",
+ "name": "generate patchPLMNInfoList.ToNRCellDU",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$prop.restapi.patchPLMNInfoListEntry.ToNRCellDU.ransim-mounted`\"/>\n <parameter name=\"outputPath\" value=\"tmp.patchPLMNInfoListEntry-cellDU.url\"/>\n <parameter name=\"target\" value=\"{idNearRTRIC}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.nearRTRICId`\"/>",
+ "comments": "",
+ "outputs": 1,
+ "x": 3593.000442504883,
+ "y": 1538.2918014526367,
+ "z": "d1ed7801.f49678",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "2d22f2a1.bee86e",
+ "type": "execute",
+ "name": "populate mountName",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$tmp.patchPLMNInfoListEntry-cellDU.url`\"/>\n <parameter name=\"outputPath\" value=\"tmp.patchPLMNInfoListEntry-cellDU.url\"/>\n <parameter name=\"target\" value=\"{mountName}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.GNBDUId`\"/>",
+ "comments": "",
+ "outputs": 1,
+ "x": 3543.250747680664,
+ "y": 1598.7918329238892,
+ "z": "d1ed7801.f49678",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "ad33f1e2.1f442",
+ "type": "execute",
+ "name": "prepare idGNBDUFunction",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$tmp.patchPLMNInfoListEntry-cellDU.url`\"/>\n <parameter name=\"outputPath\" value=\"tmp.patchPLMNInfoListEntry-cellDU.url\"/>\n <parameter name=\"target\" value=\"{idGNBDUFunction}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.GNBDUId`\"/>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2976.1250610351562,
+ "y": 1653.3541059494019,
+ "z": "d1ed7801.f49678",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "aa3f5c54.b1ff",
+ "type": "execute",
+ "name": "prepare idNRCellDU",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$tmp.patchPLMNInfoListEntry-cellDU.url`\"/>\n <parameter name=\"outputPath\" value=\"tmp.patchPLMNInfoListEntry-cellDU.url\"/>\n <parameter name=\"target\" value=\"{idNRCellDU}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.cellDULocalId`\"/>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2949.125244140625,
+ "y": 1708.3541078567505,
+ "z": "d1ed7801.f49678",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "7bf6a0fa.78272",
+ "type": "execute",
+ "name": "prepare mcc",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$tmp.patchPLMNInfoListEntry-cellDU.url`\"/>\n <parameter name=\"outputPath\" value=\"tmp.patchPLMNInfoListEntry-cellDU.url\"/>\n <parameter name=\"target\" value=\"{mcc}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.mcc`\"/>\n ",
+ "comments": "",
+ "outputs": 1,
+ "x": 2929.1249389648438,
+ "y": 1771.354413986206,
+ "z": "d1ed7801.f49678",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "ed7bc479.772488",
+ "type": "execute",
+ "name": "prepare mnc",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$tmp.patchPLMNInfoListEntry-cellDU.url`\"/>\n <parameter name=\"outputPath\" value=\"tmp.patchPLMNInfoListEntry-cellDU.url\"/>\n <parameter name=\"target\" value=\"{mnc}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.mnc`\"/>",
+ "comments": "",
+ "outputs": 1,
+ "x": 2931.1251831054688,
+ "y": 1829.3540468215942,
+ "z": "d1ed7801.f49678",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "e3a236ea.7a8fe8",
+ "type": "record",
+ "name": "record API params",
+ "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.FileRecorder\">\n<parameter name=\"file\" value=\"/opt/opendaylight/current/data/log/activateRANSlice.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"patch cellDU NSSAI parameters\"/>\n<parameter name=\"field2\" value=\"`$tmp.nearRTRICId`\"/>\n<parameter name=\"field3\" value=\"`$tmp.GNBDUId`\"/>\n<parameter name=\"field4\" value=\"`$tmp.cellDULocalId`\"/>\n<parameter name=\"field5\" value=\"`$tmp.mcc`\"/>\n<parameter name=\"field6\" value=\"`$tmp.mnc`\"/>\n<parameter name=\"field7\" value=\"`$tmp.patchPLMNInfoListEntry-cellDU.url`\"/>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2936.1248168945312,
+ "y": 1897.3545379638672,
+ "z": "d1ed7801.f49678",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "fa098be9.a6f2c8",
+ "type": "execute",
+ "name": "patch PLMNInfoListEntry ToNRCellDU",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"templateFileName\" value=\"`$prop.restapi.templateDir + '/ranSlice-patch-sNSSAI-status.json'`\" />\n<parameter name=\"restapiUrl\" value=\"`$prop.controller.url + $tmp.patchPLMNInfoListEntry-cellDU.url`\"/>\n<parameter name=\"restapiUser\" value=\"`$prop.controller.user`\" />\n<parameter name=\"restapiPassword\" value=\"`$prop.controller.pwd`\"/>\n<parameter name=\"httpMethod\" value=\"PATCH\"/>\n<parameter name=\"responsePrefix\" value=\"activate-cellDU-PLMNInfoList-response\"/>\n<parameter name='contentType' value='application/yang.patch+json' />\n<parameter name='accept' value='application/yang.patch-status+json'/>\n<parameter name='format' value='json' />",
+ "comments": "",
+ "outputs": 1,
+ "x": 2993.1248474121094,
+ "y": 1972.6039237976074,
+ "z": "d1ed7801.f49678",
+ "wires": [
+ [
+ "fc716723.e5af98",
+ "db2f5d85.2ea97"
+ ]
+ ]
+ },
+ {
+ "id": "db2f5d85.2ea97",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 3260.1248474121094,
+ "y": 1872.6039237976074,
+ "z": "d1ed7801.f49678",
+ "wires": [
+ [
+ "9c568d7b.4440d"
+ ]
+ ]
+ },
+ {
+ "id": "9c568d7b.4440d",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 3418.1250915527344,
+ "y": 1820.6039237976074,
+ "z": "d1ed7801.f49678",
+ "wires": [
+ [
+ "16580081.68b02f",
+ "fe0665a8.387608",
+ "d50580ac.cbc9d"
+ ]
+ ]
+ },
+ {
+ "id": "fe0665a8.387608",
+ "type": "set",
+ "name": "set",
+ "xml": "<set>\n<parameter name='error-code' value='500'/>\n<parameter name='error-message' value='Error patching cellDU PLMNInfoList. Aborting RPC executiopn'/>",
+ "comments": "",
+ "x": 3584.1248474121094,
+ "y": 1786.6039237976074,
+ "z": "d1ed7801.f49678",
+ "wires": []
+ },
+ {
+ "id": "16580081.68b02f",
+ "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 NECellDU - PLMNInfo. Aborting RPC executiopn'/>",
+ "comments": "",
+ "x": 3589.124725341797,
+ "y": 1881.6039848327637,
+ "z": "d1ed7801.f49678",
+ "wires": []
+ },
+ {
+ "id": "29e4ab84.4b9054",
+ "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/activateRANSlice.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"Successfully Patched - cellDU PLMNInfo List\"/>",
+ "comments": "",
+ "outputs": 1,
+ "x": 3573.124725341797,
+ "y": 1967.6041679382324,
+ "z": "d1ed7801.f49678",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "4464eaf8.6c5754",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 3427.1248474121094,
+ "y": 1968.6039264202118,
+ "z": "d1ed7801.f49678",
+ "wires": [
+ [
+ "29e4ab84.4b9054"
+ ]
+ ]
+ },
+ {
+ "id": "fc716723.e5af98",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 3259.1248474121094,
+ "y": 1971.6039237976074,
+ "z": "d1ed7801.f49678",
+ "wires": [
+ [
+ "4464eaf8.6c5754"
+ ]
+ ]
+ },
+ {
+ "id": "5d700bcb.6e4444",
+ "type": "execute",
+ "name": "get PLMNId URL",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$prop.restapi.configdb.getplmn`\"/>\n <parameter name=\"outputPath\" value=\"tmp.configdb.getPLMNId.url\"/>\n <parameter name=\"target\" value=\"{sliceProfileId}\"/>\n <parameter name=\"replacement\" value=\"`$payloadJson.input.sliceProfileId`\"/>",
+ "comments": "",
+ "outputs": 1,
+ "x": 640.8125305175781,
+ "y": 612.1041793823242,
+ "z": "d1ed7801.f49678",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "a9192810.870fa8",
+ "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/activateRANSlice.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"Get PLMN from SliceProfileId URL: \"/>\n<parameter name=\"field2\" value=\"`$tmp.configdb.getPLMNId.url`\"/>\n\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 614.3125305175781,
+ "y": 667.6042108535767,
+ "z": "d1ed7801.f49678",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "379f4388.b4953c",
+ "type": "execute",
+ "name": "Get PLMN from Sliceprofile id",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"restapiUrl\" value=\"`$prop.configdb.url + $tmp.configdb.getPLMNId.url`\"/>\n<parameter name=\"httpMethod\" value=\"GET\"/>\n<parameter name=\"responsePrefix\" value=\"getPLMN-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": 683.0625152587891,
+ "y": 721.1041469573975,
+ "z": "d1ed7801.f49678",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "f9cb74ce.a0d4a8",
+ "type": "execute",
+ "name": "read PLMN Id",
+ "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=\"`getPLMN-configdb-response.plmnId`\" />\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 636.0625076293945,
+ "y": 760.2153882980347,
+ "z": "d1ed7801.f49678",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "238023dc.8566dc",
+ "type": "execute",
+ "name": "find MCC",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='substring'>\n <parameter name=\"string\" value=\"`$tmp.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": 1195.534782409668,
+ "y": 739.2432578802109,
+ "z": "d1ed7801.f49678",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "3aa793c2.9eac5c",
+ "type": "execute",
+ "name": "find MNC",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='substring'>\n <parameter name=\"string\" value=\"`$tmp.pLMNId`\" />\n <parameter name=\"result\" value=\"tmp.mnc\"/>\n <parameter name=\"begin-index\" value=\"4\" />",
+ "comments": "",
+ "outputs": 1,
+ "x": 1206.201530456543,
+ "y": 777.0209678411484,
+ "z": "d1ed7801.f49678",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "b9f23541.f12148",
+ "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/activateRANSlice.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"`$tmp.pLMNId`\"/>\n<parameter name=\"field2\" value=\"`$tmp.mcc`\"/>\n<parameter name=\"field3\" value=\"`$tmp.mnc`\"/>",
+ "comments": "",
+ "outputs": 1,
+ "x": 607.4171524047852,
+ "y": 870.7921524047852,
+ "z": "d1ed7801.f49678",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "d50580ac.cbc9d",
+ "type": "block",
+ "name": "block : SO Response",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 4062.0625,
+ "y": 1619.15775680542,
+ "z": "d1ed7801.f49678",
+ "wires": [
+ [
+ "f1edf53a.42ff38",
+ "db427fff.78edc",
+ "d48c97fc.718418"
+ ]
+ ]
+ },
+ {
+ "id": "f1edf53a.42ff38",
+ "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=\"`$activate-r-a-n-slice-instance-input.common-header.request-id`\"/>\n<parameter name=\"tmp.action\" value=\"`$activate-r-a-n-slice-instance-input.action`\"/>\n",
+ "comments": "",
+ "x": 4441.206283569336,
+ "y": 1476.771743774414,
+ "z": "d1ed7801.f49678",
+ "wires": []
+ },
+ {
+ "id": "db427fff.78edc",
+ "type": "record",
+ "name": "record 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`\" />",
+ "comments": "",
+ "outputs": 1,
+ "x": 4444.776741027832,
+ "y": 1542.4438304901123,
+ "z": "d1ed7801.f49678",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "d48c97fc.718418",
+ "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-activate-response\"/>\n<parameter name='contentType' value='application/json' /> \n<parameter name='format' value='json' />\n<parameter name='accept' value='*/*' />\n<parameter name=\"convertResponse\" value=\"true\"/>",
+ "comments": "",
+ "outputs": 1,
+ "x": 4371.205307006836,
+ "y": 1620.872405052185,
+ "z": "d1ed7801.f49678",
+ "wires": [
+ [
+ "8cacd907.37c0c8",
+ "7e622c94.f93944"
+ ]
+ ]
+ },
+ {
+ "id": "8cacd907.37c0c8",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 4608.633865356445,
+ "y": 1603.5864562988281,
+ "z": "d1ed7801.f49678",
+ "wires": [
+ [
+ "d8587501.17d718"
+ ]
+ ]
+ },
+ {
+ "id": "d8587501.17d718",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 4801.062232971191,
+ "y": 1594.3008937835693,
+ "z": "d1ed7801.f49678",
+ "wires": [
+ [
+ "e2913b6c.e8e908"
+ ]
+ ]
+ },
+ {
+ "id": "e2913b6c.e8e908",
+ "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": 5002.7761154174805,
+ "y": 1583.0150055885315,
+ "z": "d1ed7801.f49678",
+ "wires": []
+ },
+ {
+ "id": "652fd2c0.67d33c",
+ "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/activateRANSlice.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"SO Response Sent \"/>",
+ "comments": "",
+ "outputs": 1,
+ "x": 4996.91939163208,
+ "y": 1658.0150718688965,
+ "z": "d1ed7801.f49678",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "517629ae.3f9148",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 4812.919242858887,
+ "y": 1663.4435138702393,
+ "z": "d1ed7801.f49678",
+ "wires": [
+ [
+ "652fd2c0.67d33c"
+ ]
+ ]
+ },
+ {
+ "id": "7e622c94.f93944",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 4602.919189453125,
+ "y": 1667.3007526397705,
+ "z": "d1ed7801.f49678",
+ "wires": [
+ [
+ "517629ae.3f9148"
+ ]
+ ]
+ },
+ {
+ "id": "3d877225.e9399e",
+ "type": "block",
+ "name": "SO Response",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 609.5625,
+ "y": 1596.300579071045,
+ "z": "d1ed7801.f49678",
+ "wires": [
+ [
+ "3997fd94.a61942",
+ "b6633284.60d13",
+ "cdff2f1c.66a17",
+ "460eebaa.96cde4"
+ ]
+ ]
+ },
+ {
+ "id": "cdff2f1c.66a17",
+ "type": "set",
+ "name": "set tmp variables for SO response",
+ "xml": "<set>\n<parameter name=\"tmp.status\" value=\"`$error-code`\"/>\n<parameter name=\"tmp.reason\" value=\"`$error-message`\"/>\n<parameter name=\"tmp.requestID\" value=\"`$activate-r-a-n-slice-input.common-header.request-id `\"/>\n<parameter name=\"tmp.action\" value=\"`$activate-r-a-n-slice-input.action`\"/>\n",
+ "comments": "",
+ "x": 889.5636444091797,
+ "y": 1446.2000637054443,
+ "z": "d1ed7801.f49678",
+ "wires": []
+ },
+ {
+ "id": "3997fd94.a61942",
+ "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=\"`$payloadJson.input.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`\" />",
+ "comments": "",
+ "outputs": 1,
+ "x": 886.5624771118164,
+ "y": 1600.3007621765137,
+ "z": "d1ed7801.f49678",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "b6633284.60d13",
+ "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=\"`$payloadJson.input.callbackURL`\"/>\n<parameter name=\"httpMethod\" value=\"POST\"/>\n<parameter name=\"responsePrefix\" value=\"so-callback-activate-response\"/>\n<parameter name='contentType' value='application/json' /> \n<parameter name='format' value='json' />\n<parameter name='accept' value='*/*' />\n<parameter name=\"restapiUser\" value=\"`$prop.restapi.so.user`\" />\n<parameter name=\"restapiPassword\" value=\"`$prop.restapi.so.password`\"/>",
+ "comments": "",
+ "outputs": 1,
+ "x": 755.5625762939453,
+ "y": 1717.3004665374756,
+ "z": "d1ed7801.f49678",
+ "wires": [
+ [
+ "8f0c5c02.629d2",
+ "ba3a7306.efc7b"
+ ]
+ ]
+ },
+ {
+ "id": "8f0c5c02.629d2",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 920.5625762939453,
+ "y": 1697.3004655838013,
+ "z": "d1ed7801.f49678",
+ "wires": [
+ [
+ "1117358b.f3459a"
+ ]
+ ]
+ },
+ {
+ "id": "ba3a7306.efc7b",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 912.5624694824219,
+ "y": 1770.3004159927368,
+ "z": "d1ed7801.f49678",
+ "wires": [
+ [
+ "6eaf02b7.c3befc"
+ ]
+ ]
+ },
+ {
+ "id": "6eaf02b7.c3befc",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 1058.562313079834,
+ "y": 1775.300524711609,
+ "z": "d1ed7801.f49678",
+ "wires": [
+ [
+ "d074c75b.338f58"
+ ]
+ ]
+ },
+ {
+ "id": "1117358b.f3459a",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 1069.5624771118164,
+ "y": 1693.3006010055542,
+ "z": "d1ed7801.f49678",
+ "wires": [
+ [
+ "6ce1ce27.46abb",
+ "42940bfc.c025e4"
+ ]
+ ]
+ },
+ {
+ "id": "6ce1ce27.46abb",
+ "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": 1216.5620956420898,
+ "y": 1704.3003425598145,
+ "z": "d1ed7801.f49678",
+ "wires": []
+ },
+ {
+ "id": "d074c75b.338f58",
+ "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/activateRANSlice.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"SO Response Sent \"/>",
+ "comments": "",
+ "outputs": 1,
+ "x": 1219.5622329711914,
+ "y": 1781.3004169464111,
+ "z": "d1ed7801.f49678",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "42940bfc.c025e4",
+ "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": 1204.0727043151855,
+ "y": 1608.289834022522,
+ "z": "d1ed7801.f49678",
+ "wires": []
+ },
+ {
+ "id": "460eebaa.96cde4",
+ "type": "execute",
+ "name": "generate URL for SO Callback",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$prop.restapi.so.callbackURL`\"/>\n <parameter name=\"outputPath\" value=\"tmp.so.callbackURL\"/>\n <parameter name=\"target\" value=\"{requestId}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.requestID`\"/>",
+ "comments": "",
+ "outputs": 1,
+ "x": 908.902099609375,
+ "y": 1536.2859163284302,
+ "z": "d1ed7801.f49678",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "d7950fa6.48464",
+ "type": "returnSuccess",
+ "name": "return success",
+ "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": 267.0625,
+ "y": 1112.7291679382324,
+ "z": "d1ed7801.f49678",
+ "wires": []
+ },
+ {
+ "id": "e82f33f.243c9d",
+ "type": "execute",
+ "name": "read RIC list size",
+ "xml": "<set>\n<parameter name='tmp.RICList_length' value=\"`$getNFNSSIRIC-configdb-response._length`\"/>",
+ "comments": "",
+ "outputs": 1,
+ "x": 636.0555038452148,
+ "y": 903.388837814331,
+ "z": "d1ed7801.f49678",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "d914b800.2d3b68",
+ "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/activateRANSlice.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"cellLocalId \"/>\n<parameter name=\"field2\" value=\"`$tmp.cellLocalId`\"/>\n\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1850.4999084472656,
+ "y": 695.0556983947754,
+ "z": "d1ed7801.f49678",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "b6d230c2.d14dd",
+ "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/activateRANSlice.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"pLMNInfoList_length \"/>\n<parameter name=\"field2\" value=\"`$tmp.pLMNInfoList_length`\"/>\n\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1850.4999465942383,
+ "y": 786.1667079925537,
+ "z": "d1ed7801.f49678",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "61a6c21d.5f535c",
+ "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/activateRANSlice.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"PLMNInfo exists\"/>\n\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2310.4998474121094,
+ "y": 733.3888740539551,
+ "z": "d1ed7801.f49678",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "4d92f336.7f419c",
+ "type": "execute",
+ "name": "read 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=\"`'getNFNSSIRIC-configdb-response.[' + $idy +'].nearRTRICId'`\" />\n ",
+ "comments": "",
+ "outputs": 1,
+ "x": 782.9999923706055,
+ "y": 935.8888072967529,
+ "z": "d1ed7801.f49678",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "2cb76601.d9cada",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 590.7777404785156,
+ "y": 952.5555000305176,
+ "z": "d1ed7801.f49678",
+ "wires": [
+ [
+ "4d92f336.7f419c"
+ ]
+ ]
+ },
+ {
+ "id": "c56a0948.d9efb8",
+ "type": "execute",
+ "name": "prepare nearRTRICId",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$tmp.patchPLMNInfoList-CUUP.url`\"/>\n <parameter name=\"outputPath\" value=\"tmp.patchPLMNInfoList-CUUP.url\"/>\n <parameter name=\"target\" value=\"{idNearRTRIC}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.nearRTRICId`\"/>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1979.6665954589844,
+ "y": 1138.1111030578613,
+ "z": "d1ed7801.f49678",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "9dca12e8.9048e",
+ "type": "execute",
+ "name": "prepare mcc",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$tmp.patchPLMNInfoList-CUUP.url`\"/>\n <parameter name=\"outputPath\" value=\"tmp.patchPLMNInfoList-CUUP.url\"/>\n <parameter name=\"target\" value=\"{mcc}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.mcc`\"/>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1976.3332214355469,
+ "y": 1214.7777290344238,
+ "z": "d1ed7801.f49678",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "ab2f25e7.72f538",
+ "type": "execute",
+ "name": "prepare mnc",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$tmp.patchPLMNInfoList-CUUP.url`\"/>\n <parameter name=\"outputPath\" value=\"tmp.patchPLMNInfoList-CUUP.url\"/>\n <parameter name=\"target\" value=\"{mnc}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.mnc`\"/>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1972.9998474121094,
+ "y": 1248.1111030578613,
+ "z": "d1ed7801.f49678",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "9cbc67f.5408898",
+ "type": "execute",
+ "name": "read sNSSAI from getNFNSSIRIC-configdb-response",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'>\n\t<parameter name='outputPath' value='tmp.configDBSNSSAI' />\n\t<parameter name='source' value=\"`'getNFNSSIRIC-configdb-response.['+ $idy +'].gNBCUUPList['+ $id-cuup +'].pLMNInfoList['+ $id-plmn +'].sNSSAI['+$id-cuupnssai+'].sNSSAI'`\" />",
+ "comments": "",
+ "outputs": 1,
+ "x": 2045.8334197998047,
+ "y": 952.3333648443222,
+ "z": "d1ed7801.f49678",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "9040c865.b8b448",
+ "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/activateRANSlice.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"sNSSAI - getNFNSSIRIC-configdb-response\"/>\n<parameter name=\"field2\" value=\"`$tmp.configDBSNSSAI`\"/>\n<parameter name=\"field3\" value=\"sNSSAI from request\"/>\n<parameter name=\"field4\" value=\"`$tmp.sNSSAI`\"/>\n\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1902.7226104736328,
+ "y": 992.1111348867416,
+ "z": "d1ed7801.f49678",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "648875fa.a1e58c",
+ "type": "switchNode",
+ "name": "is NSSAI exists",
+ "xml": "<switch test='`$tmp.configDBSNSSAI == $tmp.sNSSAI`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1905.9445724487305,
+ "y": 1027.22223508358,
+ "z": "d1ed7801.f49678",
+ "wires": [
+ [
+ "ddc0bc52.3336a",
+ "b0ad4562.e34528"
+ ]
+ ]
+ },
+ {
+ "id": "ddc0bc52.3336a",
+ "type": "outcome",
+ "name": "True",
+ "xml": "<outcome value='true'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2088.6391792297363,
+ "y": 997.3334401845932,
+ "z": "d1ed7801.f49678",
+ "wires": [
+ [
+ "e5bbe9de.e12928"
+ ]
+ ]
+ },
+ {
+ "id": "dc2400ca.fd07e",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 1704.9443054199219,
+ "y": 980.3332710266113,
+ "z": "d1ed7801.f49678",
+ "wires": [
+ [
+ "ae01a5a3.1574b8",
+ "351f58be.4b3448",
+ "19eff89.de05507"
+ ]
+ ]
+ },
+ {
+ "id": "b0ad4562.e34528",
+ "type": "outcome",
+ "name": "false",
+ "xml": "<outcome value='false'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2223.277576446533,
+ "y": 989.9999746084213,
+ "z": "d1ed7801.f49678",
+ "wires": [
+ [
+ "a6bd4794.c1ab58"
+ ]
+ ]
+ },
+ {
+ "id": "a6bd4794.c1ab58",
+ "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/activateRANSlice.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"sNSSAI doesn't match\"/>\n\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2418.2777366638184,
+ "y": 936.9999284744263,
+ "z": "d1ed7801.f49678",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "db24199a.8cfc78",
+ "type": "execute",
+ "name": "read cell id",
+ "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=\"`'getNFNSSIRIC-configdb-response.['+ $idy +'].gNBCUCPList['+ $idz +'].cellCUList['+ $idcu +'].cellLocalId'`\" />",
+ "comments": "",
+ "outputs": 1,
+ "x": 1869.3888397216797,
+ "y": 642.5555105209351,
+ "z": "d1ed7801.f49678",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "1de1fac1.d35265",
+ "type": "execute",
+ "name": "read cellDU",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'>\n\t<parameter name='outputPath' value='tmp.cellDULocalId' />\n\t<parameter name='source' value=\"`'getNFNSSIRIC-configdb-response.['+ $idy +'].gNBDUList['+ $id-du +'].cellDUList['+ $id-celldu +'].cellLocalId'`\" />",
+ "comments": "",
+ "outputs": 1,
+ "x": 1948.5555114746094,
+ "y": 1345.8888130187988,
+ "z": "d1ed7801.f49678",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "adacbad7.24c918",
+ "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/activateRANSlice.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"cellLocalId \"/>\n<parameter name=\"field2\" value=\"`$tmp.cellDULocalId`\"/>\n\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1947.930191040039,
+ "y": 1381.2011938095093,
+ "z": "d1ed7801.f49678",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "6f3e96e.76eef68",
+ "type": "switchNode",
+ "name": "check the action",
+ "xml": "<switch test='`$activate-r-a-n-slice-instance-input.action == activate`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 652.1666641235352,
+ "y": 390.3333144187927,
+ "z": "d1ed7801.f49678",
+ "wires": [
+ [
+ "4ae975c4.21fe2c",
+ "2635fad5.384ac6"
+ ]
+ ]
+ },
+ {
+ "id": "4ae975c4.21fe2c",
+ "type": "outcome",
+ "name": "True",
+ "xml": "<outcome value='true'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 879.6666603088379,
+ "y": 335.88891792297363,
+ "z": "d1ed7801.f49678",
+ "wires": [
+ [
+ "923a6072.28e91"
+ ]
+ ]
+ },
+ {
+ "id": "2635fad5.384ac6",
+ "type": "outcome",
+ "name": "False",
+ "xml": "<outcome value='false'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 881.8888053894043,
+ "y": 394.77780532836914,
+ "z": "d1ed7801.f49678",
+ "wires": [
+ [
+ "41266f8c.595af"
+ ]
+ ]
+ },
+ {
+ "id": "bc36a9a2.17eaf8",
+ "type": "set",
+ "name": "set status as ACTIVE",
+ "xml": "<set>\n<parameter name='tmp.status' value='ACTIVE' />",
+ "comments": "",
+ "x": 1334.1112327575684,
+ "y": 305.8888816833496,
+ "z": "d1ed7801.f49678",
+ "wires": []
+ },
+ {
+ "id": "16d10d1a.8d5573",
+ "type": "set",
+ "name": "set status as INACTIVE",
+ "xml": "<set>\n<parameter name='tmp.status' value='INACTIVE' />",
+ "comments": "",
+ "x": 1308.555576324463,
+ "y": 339.22223567962646,
+ "z": "d1ed7801.f49678",
+ "wires": []
+ },
+ {
+ "id": "923a6072.28e91",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 1089.666660308838,
+ "y": 323.66662788391113,
+ "z": "d1ed7801.f49678",
+ "wires": [
+ [
+ "bc36a9a2.17eaf8"
+ ]
+ ]
+ },
+ {
+ "id": "41266f8c.595af",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 1086.3334045410156,
+ "y": 380.33335638046265,
+ "z": "d1ed7801.f49678",
+ "wires": [
+ [
+ "16d10d1a.8d5573"
+ ]
+ ]
+ },
+ {
+ "id": "1464a38f.dd272c",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "outputs": 1,
+ "x": 656.25,
+ "y": 821.4166692495346,
+ "z": "d1ed7801.f49678",
+ "wires": [
+ [
+ "b1181fc9.04dab",
+ "fce0a4b3.3bb418"
+ ]
+ ]
+ },
+ {
+ "id": "b1181fc9.04dab",
+ "type": "execute",
+ "name": "split pLMNId",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='split'>\n <parameter name=\"original_string\" value=\"`$tmp.pLMNId`\" />\n <parameter name=\"regex\" value=\"-\"/>\n <parameter name=\"ctx_memory_result_key\" value=\"tmp.plmnList\" />",
+ "comments": "",
+ "outputs": 1,
+ "x": 917.5224990844727,
+ "y": 703.9289726018906,
+ "z": "d1ed7801.f49678",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "fce0a4b3.3bb418",
+ "type": "set",
+ "name": "set mcc & mnc Variables",
+ "xml": "<set>\n<parameter name='tmp.mcc' value='`$tmp.plmnList[0]`'/>\n<parameter name='tmp.mnc' value='`$tmp.plmnList[1]`'/>",
+ "comments": "",
+ "x": 947.9770889282227,
+ "y": 750.9744132757187,
+ "z": "d1ed7801.f49678",
+ "wires": []
+ },
+ {
+ "id": "fb737c3b.904ff",
+ "type": "execute",
+ "name": "read snssailist size",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'>\n\t<parameter name='outputPath' value='tmp.snssaiList_length' />\n\t<parameter name='source' value=\"`'getNFNSSIRIC-configdb-response.['+ $idy +'].gNBCUCPList['+ $idz +'].cellCUList['+ $idcu +'].pLMNInfoList['+$id-cuplmn+'].sNSSAI_length'`\" />",
+ "comments": "",
+ "outputs": 1,
+ "x": 2308,
+ "y": 660.6666692495346,
+ "z": "d1ed7801.f49678",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "babec019.ba3f3",
+ "type": "for",
+ "name": "foreach snssai",
+ "xml": "<for index='id-cunssai' start='0' end='`$tmp.snssaiList_length`' >\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2316,
+ "y": 700.6666692495346,
+ "z": "d1ed7801.f49678",
+ "wires": [
+ [
+ "c5dee108.611ce"
+ ]
+ ]
+ },
+ {
+ "id": "c5dee108.611ce",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 2509.25,
+ "y": 703.1666692495346,
+ "z": "d1ed7801.f49678",
+ "wires": [
+ [
+ "b14f7f73.800f2",
+ "4b92bb45.32d8c4",
+ "ccc6e66c.69f758"
+ ]
+ ]
+ },
+ {
+ "id": "ae01a5a3.1574b8",
+ "type": "execute",
+ "name": "read snssailist size",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'>\n\t<parameter name='outputPath' value='tmp.snssaiListup_length' />\n\t<parameter name='source' value=\"`'getNFNSSIRIC-configdb-response.['+ $idy +'].gNBCUUPList['+ $id-cuup +'].pLMNInfoList['+$id-plmn+'].sNSSAI_length'`\" />",
+ "comments": "",
+ "outputs": 1,
+ "x": 1941.999984741211,
+ "y": 852.9167226552963,
+ "z": "d1ed7801.f49678",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "351f58be.4b3448",
+ "type": "for",
+ "name": "foreach snssai",
+ "xml": "<for index='id-cuupnssai' start='0' end='`$tmp.snssaiListup_length`' >\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1928.0000228881836,
+ "y": 910.9167236089706,
+ "z": "d1ed7801.f49678",
+ "wires": [
+ [
+ "85252e3c.f2181"
+ ]
+ ]
+ },
+ {
+ "id": "85252e3c.f2181",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 2137.2499923706055,
+ "y": 907.4167236089706,
+ "z": "d1ed7801.f49678",
+ "wires": [
+ [
+ "9cbc67f.5408898",
+ "9040c865.b8b448",
+ "648875fa.a1e58c"
+ ]
+ ]
+ },
+ {
+ "id": "13dd363.0ebddca",
+ "type": "execute",
+ "name": "read snssailist size",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'>\n\t<parameter name='outputPath' value='tmp.snssaiListdu_length' />\n\t<parameter name='source' value=\"`'getNFNSSIRIC-configdb-response.['+ $idy +'].gNBDUList['+ $id-du +'].cellDUList['+ $id-celldu +'].pLMNInfoList['+$id-duplmn+'].sNSSAI_length'`\" />",
+ "comments": "",
+ "outputs": 1,
+ "x": 2330,
+ "y": 1353.9166692495346,
+ "z": "d1ed7801.f49678",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "e949b2da.b8d16",
+ "type": "for",
+ "name": "foreach snssai",
+ "xml": "<for index='id-dunssai' start='0' end='`$tmp.snssaiListdu_length`' >\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2338,
+ "y": 1393.9166692495346,
+ "z": "d1ed7801.f49678",
+ "wires": [
+ [
+ "2cb8fd8a.6d1762"
+ ]
+ ]
+ },
+ {
+ "id": "2cb8fd8a.6d1762",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 2531.25,
+ "y": 1396.4166692495346,
+ "z": "d1ed7801.f49678",
+ "wires": [
+ [
+ "ad9f55d2.8dd238",
+ "8a1ae64b.0ee3e8",
+ "b372e52a.3b17b8"
+ ]
+ ]
+ },
+ {
+ "id": "19eff89.de05507",
+ "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/activateRANSlice.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"CUUP - snssaiList_length\"/>\n<parameter name=\"field2\" value=\"`$tmp.snssaiListup_length`\"/>\n\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1942.25,
+ "y": 880.4166692495346,
+ "z": "d1ed7801.f49678",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "d55655f1.0b2c68",
+ "type": "comment",
+ "name": "activateRANSliceInstance-configdb",
+ "info": "",
+ "comments": "",
+ "x": 366.3333320617676,
+ "y": 43,
+ "z": "d1ed7801.f49678",
+ "wires": []
+ }
+] \ No newline at end of file
diff --git a/platform-logic/ran-slice-api/src/main/json/ran-slice-api_activateRANSliceInstance-cps.json b/platform-logic/ran-slice-api/src/main/json/ran-slice-api_activateRANSliceInstance-cps.json
new file mode 100644
index 00000000..80a62b66
--- /dev/null
+++ b/platform-logic/ran-slice-api/src/main/json/ran-slice-api_activateRANSliceInstance-cps.json
@@ -0,0 +1,3828 @@
+[
+ {
+ "id": "a6cabde9.61956",
+ "type": "dgstart",
+ "name": "DGSTART",
+ "outputs": 1,
+ "x": 164.00000381469727,
+ "y": 600.9999980926514,
+ "z": "f3e1d289.cac95",
+ "wires": [
+ [
+ "328d40d0.197ce"
+ ]
+ ]
+ },
+ {
+ "id": "328d40d0.197ce",
+ "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": 260.00002670288086,
+ "y": 690.9999904632568,
+ "z": "f3e1d289.cac95",
+ "wires": [
+ [
+ "b84b2858.60f378"
+ ]
+ ]
+ },
+ {
+ "id": "b84b2858.60f378",
+ "type": "method",
+ "name": "method",
+ "xml": "<method rpc='activateRANSliceInstance' mode='sync'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 194.00000381469727,
+ "y": 750.9999561309814,
+ "z": "f3e1d289.cac95",
+ "wires": [
+ [
+ "892ae408.5068c8"
+ ]
+ ]
+ },
+ {
+ "id": "892ae408.5068c8",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 122.50003051757812,
+ "y": 975.5000610351562,
+ "z": "f3e1d289.cac95",
+ "wires": [
+ [
+ "c48152e0.42c3a",
+ "c50cf103.ec45d",
+ "92f87327.58a7f",
+ "47fba020.d6181",
+ "322b31cf.1ee57e",
+ "7fe08e14.e069a",
+ "7aec3d2c.379dd4",
+ "1f3d7d4e.c118f3",
+ "565d0f86.e63b6",
+ "25ec2edb.5190e2",
+ "6018a94e.523c68",
+ "37f8ca4b.bc4116",
+ "f7cfb69b.9c27d8",
+ "116c7858.aac138",
+ "d7780e63.dfef7",
+ "940dfe19.cae3c",
+ "f07e8ef0.f0f35",
+ "23542b05.dc2d04",
+ "ab179ac7.711488",
+ "40671fa8.d6f66",
+ "2fe6cae9.b1b516",
+ "3c2d99e7.498126"
+ ]
+ ]
+ },
+ {
+ "id": "fdf4ad99.2cfdf",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1068.0681457519531,
+ "y": 1333.0680770874023,
+ "z": "f3e1d289.cac95",
+ "wires": [
+ [
+ "d803a559.e3a978"
+ ]
+ ]
+ },
+ {
+ "id": "d803a559.e3a978",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 1269.0680656433105,
+ "y": 1320.0682487487793,
+ "z": "f3e1d289.cac95",
+ "wires": [
+ [
+ "f7e28921.7b5d18",
+ "10de8a80.d7e346"
+ ]
+ ]
+ },
+ {
+ "id": "34d78223.0c58ce",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1125.068063735962,
+ "y": 1269.068247795105,
+ "z": "f3e1d289.cac95",
+ "wires": [
+ [
+ "805528d9.829e58"
+ ]
+ ]
+ },
+ {
+ "id": "805528d9.829e58",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 1305.068229675293,
+ "y": 1237.0682458877563,
+ "z": "f3e1d289.cac95",
+ "wires": [
+ [
+ "41b2c593.f9442c",
+ "3f7b61b1.4ea72e"
+ ]
+ ]
+ },
+ {
+ "id": "c48152e0.42c3a",
+ "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/activateRANSlice.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"RPC to handle activateRANSlice.: \"/>\n<parameter name=\"field2\" value=\"`$activate-r-a-n-slice-instance-input.action`\"/>\n<parameter name=\"field3\" value=\"`$activate-r-a-n-slice-instance-input.timestamp`\"/>\n<parameter name=\"field4\" value=\"`$activate-r-a-n-slice-instance-input.common-header.request-id`\"/>\n<parameter name=\"field5\" value=\"`$activate-r-a-n-slice-instance-input.common-header.originator-id`\"/>\n<parameter name=\"field6\" value=\"RPC Payload String \"/>\n<parameter name=\"field7\" value=\"`$activate-r-a-n-slice-instance-input.payload`\"/>",
+ "comments": "",
+ "outputs": 1,
+ "x": 585.0000228881836,
+ "y": 630.0000076293945,
+ "z": "f3e1d289.cac95",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "c50cf103.ec45d",
+ "type": "set",
+ "name": "set default status value",
+ "xml": "<set>\n<parameter name='error-code' value='200' />\n<parameter name='error-message' value='Successful execution of activateRANSice RPC' />",
+ "comments": "",
+ "x": 828.9997596740723,
+ "y": 609.0000267028809,
+ "z": "f3e1d289.cac95",
+ "wires": []
+ },
+ {
+ "id": "92f87327.58a7f",
+ "type": "execute",
+ "name": "execute jsonStringToCtx",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='jsonStringToCtx'>\n\t<parameter name='source' value='activate-r-a-n-slice-instance-input.payload' />\n\t<parameter name='outputPath' value='payloadJson' />\n\t<parameter name='isEscaped' value='false' />",
+ "comments": "",
+ "outputs": 1,
+ "x": 833.9997596740723,
+ "y": 649.7500076293945,
+ "z": "f3e1d289.cac95",
+ "wires": [
+ [
+ "9f092da5.e65fd"
+ ]
+ ]
+ },
+ {
+ "id": "47fba020.d6181",
+ "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-activateRANSlice-context.log' />\n\n\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 795.6385917663574,
+ "y": 725.7395677566528,
+ "z": "f3e1d289.cac95",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "322b31cf.1ee57e",
+ "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": 813.527587890625,
+ "y": 762.7499856948853,
+ "z": "f3e1d289.cac95",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "7fe08e14.e069a",
+ "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/activateRANSlice.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": 776.5832538604736,
+ "y": 802.1945266723633,
+ "z": "f3e1d289.cac95",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "9f092da5.e65fd",
+ "type": "other",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1114.9442176818848,
+ "y": 651.8611936569214,
+ "z": "f3e1d289.cac95",
+ "wires": [
+ [
+ "5fbd9f7f.48db9"
+ ]
+ ]
+ },
+ {
+ "id": "5fbd9f7f.48db9",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 1369.5000381469727,
+ "y": 656.4999942779541,
+ "z": "f3e1d289.cac95",
+ "wires": [
+ [
+ "a5837cca.c9d93",
+ "4ab67361.c7254c"
+ ]
+ ]
+ },
+ {
+ "id": "a5837cca.c9d93",
+ "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-activateRANSlice-context.log' />\n\n\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1531.50004196167,
+ "y": 624.0000343322754,
+ "z": "f3e1d289.cac95",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "4ab67361.c7254c",
+ "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/activateRANSlice.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"Payload for activateRANSlice.: \"/>\n<parameter name=\"field2\" value=\"`$payloadJson.input.sNSSAI`\"/>\n<parameter name=\"field3\" value=\"`$payloadJson.input.RANNFNSSIId`\"/>\n<parameter name=\"field4\" value=\"`$payloadJson.input.callbackURL`\"/>\n<parameter name=\"field5\" value=\"`$payloadJson.input.sliceProfileId`\"/>\n\n\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1546.75004196167,
+ "y": 688.0000457763672,
+ "z": "f3e1d289.cac95",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "7aec3d2c.379dd4",
+ "type": "for",
+ "name": "foreach NearRTRIC",
+ "xml": "<for index='idy' start='0' end='`$tmp.RICList_length`' >\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 175.9376106262207,
+ "y": 2244.875436782837,
+ "z": "f3e1d289.cac95",
+ "wires": [
+ [
+ "8d86a77c.2c5b58",
+ "6c75da5f.7f31b4",
+ "f1418956.9bf3f8",
+ "9f973845.f5fb18"
+ ]
+ ]
+ },
+ {
+ "id": "8d86a77c.2c5b58",
+ "type": "block",
+ "name": "Process CUCP",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 358.187557220459,
+ "y": 2157.307029724121,
+ "z": "f3e1d289.cac95",
+ "wires": [
+ [
+ "a5b3b0a6.0cef1",
+ "58c76ee2.8c12a",
+ "565ecb56.fe78a4"
+ ]
+ ]
+ },
+ {
+ "id": "a5b3b0a6.0cef1",
+ "type": "execute",
+ "name": "read CUCP list size",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'>\n\t<parameter name='outputPath' value='tmp.CUCPList_length' />\n\t<parameter name='source' value=\"`'getNFNSSIRIC-configdb-response.[' + $idy +'].gNBCUCPList_length'`\" />\n ",
+ "comments": "",
+ "outputs": 1,
+ "x": 936.4375343322754,
+ "y": 1955.0570278167725,
+ "z": "f3e1d289.cac95",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "58c76ee2.8c12a",
+ "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/activateRANSlice.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"Number of CUCP List Entries \"/>\n<parameter name=\"field2\" value=\"`$tmp.CUCPList_length`\"/>\n<parameter name=\"field3\" value=\"for the NearRTRIC\"/>\n<parameter name=\"field4\" value=\"`$tmp.nearRTRICId`\"/>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 885.9375305175781,
+ "y": 1994.5570240020752,
+ "z": "f3e1d289.cac95",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "565ecb56.fe78a4",
+ "type": "for",
+ "name": "foreach CUCP",
+ "xml": "<for index='idz' start='0' end='`$tmp.CUCPList_length`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 836.6876945495605,
+ "y": 2034.5570249557495,
+ "z": "f3e1d289.cac95",
+ "wires": [
+ [
+ "4b6e468c.a45a78"
+ ]
+ ]
+ },
+ {
+ "id": "4b6e468c.a45a78",
+ "type": "block",
+ "name": "block : process CUCP",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 1449.6875381469727,
+ "y": 1575.8068714141846,
+ "z": "f3e1d289.cac95",
+ "wires": [
+ [
+ "d7875195.981e3",
+ "61e70d08.812174",
+ "80501239.f246b",
+ "6246ea6b.c0bd24"
+ ]
+ ]
+ },
+ {
+ "id": "d7875195.981e3",
+ "type": "execute",
+ "name": "read CUCP name",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'>\n\t<parameter name='outputPath' value='tmp.CUCPName' />\n\t<parameter name='source' value=\"`'getNFNSSIRIC-configdb-response.['+ $idy +'].gNBCUCPList['+ $idz +'].gNBCUName'`\" />",
+ "comments": "",
+ "outputs": 1,
+ "x": 1626.437915802002,
+ "y": 1375.890323638916,
+ "z": "f3e1d289.cac95",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "80501239.f246b",
+ "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/activateRANSlice.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"CUCPName \"/>\n<parameter name=\"field2\" value=\"`$tmp.CUCPName`\"/>\n\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1633.187915802002,
+ "y": 1412.0568284988403,
+ "z": "f3e1d289.cac95",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "6246ea6b.c0bd24",
+ "type": "execute",
+ "name": "read cellCU list size",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'>\n\t<parameter name='outputPath' value='tmp.cellCUList_length' />\n\t<parameter name='source' value=\"`'getNFNSSIRIC-configdb-response.[' + $idy +'].gNBCUCPList[' + $idz +'].cellCUList_length'`\" />\n ",
+ "comments": "",
+ "outputs": 1,
+ "x": 1681.4377479553223,
+ "y": 1448.8069925308228,
+ "z": "f3e1d289.cac95",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "61e70d08.812174",
+ "type": "for",
+ "name": "for cellCUList",
+ "xml": "<for index='idcu' start='0' end='`$tmp.cellCUList_length`' >\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1761.4377555847168,
+ "y": 1487.556993484497,
+ "z": "f3e1d289.cac95",
+ "wires": [
+ [
+ "2dd5e85d.ba4808"
+ ]
+ ]
+ },
+ {
+ "id": "2dd5e85d.ba4808",
+ "type": "block",
+ "name": "block",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 1737.4375915527344,
+ "y": 1293.8069076538086,
+ "z": "f3e1d289.cac95",
+ "wires": [
+ [
+ "11e866bc.a36379",
+ "6eef273f.bcc7d8",
+ "1193485c.4c1df8"
+ ]
+ ]
+ },
+ {
+ "id": "11e866bc.a36379",
+ "type": "execute",
+ "name": "read PLMNList size",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'>\n\t<parameter name='outputPath' value='tmp.pLMNInfoList_length' />\n\t<parameter name='source' value=\"`'getNFNSSIRIC-configdb-response.['+ $idy +'].gNBCUCPList['+ $idz +'].cellCUList['+ $idcu +'].pLMNInfoList_length'`\" />",
+ "comments": "",
+ "outputs": 1,
+ "x": 1950.396427154541,
+ "y": 1304.4598770141602,
+ "z": "f3e1d289.cac95",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "1193485c.4c1df8",
+ "type": "for",
+ "name": "foreach PLMNInfo",
+ "xml": "<for index='id-cuplmn' start='0' end='`$tmp.pLMNInfoList_length`' >\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1950.4241523742676,
+ "y": 1383.654143691063,
+ "z": "f3e1d289.cac95",
+ "wires": [
+ [
+ "6027ccc1.599c64"
+ ]
+ ]
+ },
+ {
+ "id": "6027ccc1.599c64",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 2157.313060760498,
+ "y": 1325.4319381713867,
+ "z": "f3e1d289.cac95",
+ "wires": [
+ [
+ "6841431c.020a2c",
+ "d5f12d4.b35f5d"
+ ]
+ ]
+ },
+ {
+ "id": "f89ba912.658ee8",
+ "type": "execute",
+ "name": "read sNSSAI from getNFNSSIRIC-configdb-response",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'>\n\t<parameter name='outputPath' value='tmp.configDBSNSSAI' />\n\t<parameter name='source' value=\"`'getNFNSSIRIC-configdb-response.['+ $idy +'].gNBCUCPList['+ $idz +'].cellCUList['+ $idcu +'].pLMNInfoList['+ $id-cuplmn +'].sNSSAI['+$id-cunssai+'].sNSSAI'`\" />",
+ "comments": "",
+ "outputs": 1,
+ "x": 2507.757480621338,
+ "y": 1338.4319334030151,
+ "z": "f3e1d289.cac95",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "236f0778.82ee78",
+ "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/activateRANSlice.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"sNSSAI - getNFNSSIRIC-configdb-response\"/>\n<parameter name=\"field2\" value=\"`$tmp.configDBSNSSAI`\"/>\n<parameter name=\"field3\" value=\"sNSSAI from request\"/>\n<parameter name=\"field4\" value=\"`$tmp.sNSSAI`\"/>\n\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2366.535385131836,
+ "y": 1371.9874591827393,
+ "z": "f3e1d289.cac95",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "482f3d28.6fce24",
+ "type": "switchNode",
+ "name": "is NSSAI exists",
+ "xml": "<switch test='`$tmp.configDBSNSSAI == $tmp.sNSSAI`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2402.09086227417,
+ "y": 1413.2096872329712,
+ "z": "f3e1d289.cac95",
+ "wires": [
+ [
+ "314540b4.d9596"
+ ]
+ ]
+ },
+ {
+ "id": "314540b4.d9596",
+ "type": "outcome",
+ "name": "True",
+ "xml": "<outcome value='true'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2591.563060760498,
+ "y": 1413.4320163726807,
+ "z": "f3e1d289.cac95",
+ "wires": [
+ [
+ "4da9126a.38fd6c"
+ ]
+ ]
+ },
+ {
+ "id": "4da9126a.38fd6c",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 2812.1875038146973,
+ "y": 1411.187520980835,
+ "z": "f3e1d289.cac95",
+ "wires": [
+ [
+ "144c0d6c.475c83",
+ "e0c4707d.c49b2",
+ "929f1660.c602d8",
+ "98aa87d6.4b06f8",
+ "1d092783.beac68",
+ "9c61d72a.ad90e8",
+ "42776786.fd3808",
+ "718ada55.b927e4",
+ "16b6bcd5.9eea13"
+ ]
+ ]
+ },
+ {
+ "id": "16b6bcd5.9eea13",
+ "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/activateRANSlice.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"CellCU is applicable for the NSSAI \"/>\n\n\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 3007.1875038146973,
+ "y": 1406.187520980835,
+ "z": "f3e1d289.cac95",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "718ada55.b927e4",
+ "type": "switchNode",
+ "name": "ransim mounted",
+ "xml": "<switch test='`$prop.ransim-mounted`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 3035.1875038146973,
+ "y": 1474.187520980835,
+ "z": "f3e1d289.cac95",
+ "wires": [
+ [
+ "be69c7b2.ecbb98",
+ "c8289e15.16118"
+ ]
+ ]
+ },
+ {
+ "id": "be69c7b2.ecbb98",
+ "type": "outcome",
+ "name": "Not Mounted",
+ "xml": "<outcome value='false'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 3243.1875038146973,
+ "y": 1439.18727684021,
+ "z": "f3e1d289.cac95",
+ "wires": [
+ [
+ "75410775.cfb988"
+ ]
+ ]
+ },
+ {
+ "id": "75410775.cfb988",
+ "type": "execute",
+ "name": "generate patch PLMNInfoListEntry ToNRCellCU",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$prop.restapi.patchPLMNInfoListEntry.ToNRCellCU`\"/>\n <parameter name=\"outputPath\" value=\"tmp.patchPLMNInfoListEntry.url\"/>\n <parameter name=\"target\" value=\"{idNearRTRIC}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.nearRTRICId`\"/>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 3563.1875038146973,
+ "y": 1454.187520980835,
+ "z": "f3e1d289.cac95",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "386279e7.5d56d6",
+ "type": "execute",
+ "name": "generate patchPLMNInfoList.ToNRCellCU",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$prop.restapi.patchPLMNInfoListEntry.ToNRCellCU.ransim-mounted`\"/>\n <parameter name=\"outputPath\" value=\"tmp.patchPLMNInfoListEntry.url\"/>\n <parameter name=\"target\" value=\"{idNearRTRIC}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.nearRTRICId`\"/>",
+ "comments": "",
+ "outputs": 1,
+ "x": 3741.6875343322754,
+ "y": 1512.1874599456787,
+ "z": "f3e1d289.cac95",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "ab8ef5cd.afcc88",
+ "type": "execute",
+ "name": "populate mountName",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$tmp.patchPLMNInfoListEntry.url`\"/>\n <parameter name=\"outputPath\" value=\"tmp.patchPLMNInfoListEntry.url\"/>\n <parameter name=\"target\" value=\"{mountName}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.CUCPName`\"/>",
+ "comments": "",
+ "outputs": 1,
+ "x": 3685.6879348754883,
+ "y": 1565.187653541565,
+ "z": "f3e1d289.cac95",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "69c917f4.e1dae8",
+ "type": "block",
+ "name": "ransim URL",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 3434.6875038146973,
+ "y": 1542.187520980835,
+ "z": "f3e1d289.cac95",
+ "wires": [
+ [
+ "386279e7.5d56d6",
+ "ab8ef5cd.afcc88"
+ ]
+ ]
+ },
+ {
+ "id": "c8289e15.16118",
+ "type": "outcome",
+ "name": "Mounted",
+ "xml": "<outcome value='true'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 3231.1875038146973,
+ "y": 1541.187520980835,
+ "z": "f3e1d289.cac95",
+ "wires": [
+ [
+ "69c917f4.e1dae8"
+ ]
+ ]
+ },
+ {
+ "id": "144c0d6c.475c83",
+ "type": "execute",
+ "name": "read cellCU",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'>\n\t<parameter name='outputPath' value='tmp.cellCULocalId' />\n\t<parameter name='source' value=\"`'getNFNSSIRIC-configdb-response.['+ $idy +'].gNBCUCPList['+ $idz +'].cellCUList['+ $idcu +'].cellLocalId'`\" />",
+ "comments": "",
+ "outputs": 1,
+ "x": 3002.1875038146973,
+ "y": 1574.187520980835,
+ "z": "f3e1d289.cac95",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "1d092783.beac68",
+ "type": "execute",
+ "name": "prepare idGNBCUCPFunction",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$tmp.patchPLMNInfoListEntry.url`\"/>\n <parameter name=\"outputPath\" value=\"tmp.patchPLMNInfoListEntry.url\"/>\n <parameter name=\"target\" value=\"{idGNBCUCPFunction}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.CUCPName`\"/>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 3029.1875038146973,
+ "y": 1638.187520980835,
+ "z": "f3e1d289.cac95",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "9c61d72a.ad90e8",
+ "type": "execute",
+ "name": "prepare idNRCellCU",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$tmp.patchPLMNInfoListEntry.url`\"/>\n <parameter name=\"outputPath\" value=\"tmp.patchPLMNInfoListEntry.url\"/>\n <parameter name=\"target\" value=\"{idNRCellCU}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.cellCULocalId`\"/>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2990.1877632141113,
+ "y": 1683.6875495910645,
+ "z": "f3e1d289.cac95",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "42776786.fd3808",
+ "type": "execute",
+ "name": "prepare mcc",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$tmp.patchPLMNInfoListEntry.url`\"/>\n <parameter name=\"outputPath\" value=\"tmp.patchPLMNInfoListEntry.url\"/>\n <parameter name=\"target\" value=\"{mcc}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.mcc`\"/>\n ",
+ "comments": "",
+ "outputs": 1,
+ "x": 2955.9375648498535,
+ "y": 1765.4375772476196,
+ "z": "f3e1d289.cac95",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "e0c4707d.c49b2",
+ "type": "execute",
+ "name": "prepare mnc",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$tmp.patchPLMNInfoListEntry.url`\"/>\n <parameter name=\"outputPath\" value=\"tmp.patchPLMNInfoListEntry.url\"/>\n <parameter name=\"target\" value=\"{mnc}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.mnc`\"/>",
+ "comments": "",
+ "outputs": 1,
+ "x": 2944.6879920959473,
+ "y": 1825.687593460083,
+ "z": "f3e1d289.cac95",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "929f1660.c602d8",
+ "type": "record",
+ "name": "record API params",
+ "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.FileRecorder\">\n<parameter name=\"file\" value=\"/opt/opendaylight/current/data/log/activateRANSlice.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"patch cellCU NSSAI parameters\"/>\n<parameter name=\"field2\" value=\"`$tmp.nearRTRICId`\"/>\n<parameter name=\"field3\" value=\"`$tmp.CUCPName`\"/>\n<parameter name=\"field4\" value=\"`$tmp.cellCULocalId`\"/>\n<parameter name=\"field5\" value=\"`$tmp.mcc`\"/>\n<parameter name=\"field6\" value=\"`$tmp.mnc`\"/>\n<parameter name=\"field7\" value=\"`$tmp.patchPLMNInfoListEntry.url`\"/>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2941.1875038146973,
+ "y": 1894.187520980835,
+ "z": "f3e1d289.cac95",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "98aa87d6.4b06f8",
+ "type": "execute",
+ "name": "activate PLMNInfoListEntry ToNRCellDU",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"templateFileName\" value=\"`$prop.restapi.templateDir + '/ranSlice-patch-sNSSAI-status.json'`\" />\n<parameter name=\"restapiUrl\" value=\"`$prop.controller.url + $tmp.patchPLMNInfoListEntry.url`\"/>\n<parameter name=\"restapiUser\" value=\"`$prop.controller.user`\" />\n<parameter name=\"restapiPassword\" value=\"`$prop.controller.pwd`\"/>\n<parameter name=\"httpMethod\" value=\"PATCH\"/>\n<parameter name=\"responsePrefix\" value=\"activate-cellCU-PLMNInfoList-response\"/>\n<parameter name='contentType' value='application/yang.patch+json' />\n<parameter name='accept' value='application/yang.patch-status+json'/>\n<parameter name='format' value='json' />",
+ "comments": "",
+ "outputs": 1,
+ "x": 2981.1876106262207,
+ "y": 1957.187494277954,
+ "z": "f3e1d289.cac95",
+ "wires": [
+ [
+ "5c3d555a.0929bc",
+ "51bee1f.57d932"
+ ]
+ ]
+ },
+ {
+ "id": "51bee1f.57d932",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 3197.187587738037,
+ "y": 1836.187494277954,
+ "z": "f3e1d289.cac95",
+ "wires": [
+ [
+ "932fbc1d.aa065"
+ ]
+ ]
+ },
+ {
+ "id": "932fbc1d.aa065",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 3347.1878623962402,
+ "y": 1795.1876773834229,
+ "z": "f3e1d289.cac95",
+ "wires": [
+ [
+ "1e08b47a.bdaa2c",
+ "b1cac050.4be82",
+ "41b2c593.f9442c"
+ ]
+ ]
+ },
+ {
+ "id": "b1cac050.4be82",
+ "type": "set",
+ "name": "set",
+ "xml": "<set>\n<parameter name='error-code' value='500'/>\n<parameter name='error-message' value='Error patching cellCU PLMNInfoList. Aborting RPC executiopn'/>",
+ "comments": "",
+ "x": 3513.1876182556152,
+ "y": 1761.1876773834229,
+ "z": "f3e1d289.cac95",
+ "wires": []
+ },
+ {
+ "id": "1e08b47a.bdaa2c",
+ "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 NRcellCU - PLMNInfo. Aborting RPC executiopn'/>",
+ "comments": "",
+ "x": 3518.1874961853027,
+ "y": 1856.187738418579,
+ "z": "f3e1d289.cac95",
+ "wires": []
+ },
+ {
+ "id": "157fc176.66457f",
+ "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/activateRANSlice.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"Successfully Patched - cellCU PLMNInfo List\"/>",
+ "comments": "",
+ "outputs": 1,
+ "x": 3603.1874656677246,
+ "y": 1949.1879215240479,
+ "z": "f3e1d289.cac95",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "e5f05fdd.286e7",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 3405.1874046325684,
+ "y": 1952.1877994537354,
+ "z": "f3e1d289.cac95",
+ "wires": [
+ [
+ "157fc176.66457f"
+ ]
+ ]
+ },
+ {
+ "id": "5c3d555a.0929bc",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 3232.1876182556152,
+ "y": 1953.187738418579,
+ "z": "f3e1d289.cac95",
+ "wires": [
+ [
+ "e5f05fdd.286e7"
+ ]
+ ]
+ },
+ {
+ "id": "1f3d7d4e.c118f3",
+ "type": "execute",
+ "name": "read sNSSAI from input",
+ "xml": "<set>\n<parameter name='tmp.sNSSAI' value=\"`$payloadJson.input.sNSSAI`\" />\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 830.6875038146973,
+ "y": 687.0000438690186,
+ "z": "f3e1d289.cac95",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "6c75da5f.7f31b4",
+ "type": "block",
+ "name": "Process CUUP",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 671.1876029968262,
+ "y": 2145.1875133514404,
+ "z": "f3e1d289.cac95",
+ "wires": [
+ [
+ "7175f605.095b58",
+ "ff0b7d4a.11c95",
+ "a9e59ae6.04d928"
+ ]
+ ]
+ },
+ {
+ "id": "7175f605.095b58",
+ "type": "execute",
+ "name": "read CUUP list size",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'>\n\t<parameter name='outputPath' value='tmp.CUUPList_length' />\n\t<parameter name='source' value=\"`'getNFNSSIRIC-configdb-response.[' + $idy +'].gNBCUUPList_length'`\" />\n ",
+ "comments": "",
+ "outputs": 1,
+ "x": 1102.1876907348633,
+ "y": 2017.1875610351562,
+ "z": "f3e1d289.cac95",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "ff0b7d4a.11c95",
+ "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/activateRANSlice.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"Number of CUCP List Entries \"/>\n<parameter name=\"field2\" value=\"`$tmp.CUUPList_length`\"/>\n<parameter name=\"field3\" value=\"for the NearRTRIC\"/>\n<parameter name=\"field4\" value=\"`$tmp.nearRTRICId`\"/>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1069.1876945495605,
+ "y": 2056.437562942505,
+ "z": "f3e1d289.cac95",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "a9e59ae6.04d928",
+ "type": "for",
+ "name": "foreach CUUP",
+ "xml": "<for index='id-cuup' start='0' end='`$tmp.CUUPList_length`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1050.6875305175781,
+ "y": 2097.187562942505,
+ "z": "f3e1d289.cac95",
+ "wires": [
+ [
+ "513db610.55b838"
+ ]
+ ]
+ },
+ {
+ "id": "513db610.55b838",
+ "type": "block",
+ "name": "block : process CUUP",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 1312.1875381469727,
+ "y": 1986.4376754760742,
+ "z": "f3e1d289.cac95",
+ "wires": [
+ [
+ "526ca756.1782d8",
+ "43e13082.1c5f9",
+ "f15ae3e.214cc2",
+ "d8bf6d28.beec6"
+ ]
+ ]
+ },
+ {
+ "id": "526ca756.1782d8",
+ "type": "execute",
+ "name": "read CUUP id",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'>\n\t<parameter name='outputPath' value='tmp.idGNBCUUPFunction' />\n\t<parameter name='source' value=\"`'getNFNSSIRIC-configdb-response.['+ $idy +'].gNBCUUPList['+ $id-cuup +'].gNBCUUPId'`\" />",
+ "comments": "",
+ "outputs": 1,
+ "x": 1504.187587738037,
+ "y": 1631.687505722046,
+ "z": "f3e1d289.cac95",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "43e13082.1c5f9",
+ "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/activateRANSlice.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"idGNBCUUPFunction \"/>\n<parameter name=\"field2\" value=\"`$tmp.idGNBCUUPFunction`\"/>\n\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1508.187587738037,
+ "y": 1677.6875076293945,
+ "z": "f3e1d289.cac95",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "f15ae3e.214cc2",
+ "type": "execute",
+ "name": "read plmninfolist size",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'>\n\t<parameter name='outputPath' value='tmp.pLMNInfoList' />\n\t<parameter name='source' value=\"`'getNFNSSIRIC-configdb-response.['+ $idy +'].gNBCUUPList['+ $id-cuup +'].pLMNInfoList_length'`\" />",
+ "comments": "",
+ "outputs": 1,
+ "x": 1553.1875801086426,
+ "y": 1710.6875092200935,
+ "z": "f3e1d289.cac95",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "d8bf6d28.beec6",
+ "type": "for",
+ "name": "foreach pLMNInfo",
+ "xml": "<for index='id-plmn' start='0' end='`$tmp.pLMNInfoList`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1561.187587738037,
+ "y": 1765.6875104904175,
+ "z": "f3e1d289.cac95",
+ "wires": [
+ [
+ "f15c6d84.0314"
+ ]
+ ]
+ },
+ {
+ "id": "cce89c36.b780e",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 1800.3125038146973,
+ "y": 1620.875020980835,
+ "z": "f3e1d289.cac95",
+ "wires": [
+ [
+ "185a0819.038c28",
+ "7aa20531.fc938c",
+ "51ccf1aa.22223",
+ "2124cf02.35d0c",
+ "1d2f0748.1c2f99",
+ "3e5a3205.656e4e"
+ ]
+ ]
+ },
+ {
+ "id": "185a0819.038c28",
+ "type": "switchNode",
+ "name": "ransim mounted",
+ "xml": "<switch test='`$prop.ransim-mounted`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2022.4518508911133,
+ "y": 1648.2918739318848,
+ "z": "f3e1d289.cac95",
+ "wires": [
+ [
+ "bc4524d2.337018",
+ "ffd741ab.f4ed6"
+ ]
+ ]
+ },
+ {
+ "id": "bc4524d2.337018",
+ "type": "outcome",
+ "name": "Not Mounted",
+ "xml": "<outcome value='false'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2226.562644958496,
+ "y": 1589.1247882843018,
+ "z": "f3e1d289.cac95",
+ "wires": [
+ [
+ "698a499b.c0e498"
+ ]
+ ]
+ },
+ {
+ "id": "698a499b.c0e498",
+ "type": "execute",
+ "name": "generate patch PLMNInfoListEntry CUUP URL",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$prop.restapi.patchPLMNInfoListEntry.ToGNBCUUP`\"/>\n <parameter name=\"outputPath\" value=\"tmp.patchPLMNInfoList-CUUP.url\"/>\n <parameter name=\"target\" value=\"{idNearRTRIC}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.nearRTRICId`\"/>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2551.562526702881,
+ "y": 1544.1250925064087,
+ "z": "f3e1d289.cac95",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "9a494e9f.7249",
+ "type": "execute",
+ "name": "generate patchPLMNInfoList.TogNBCUUP",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$prop.restapi.patchPLMNInfoListEntry.ToGNBCUUP.ransim-mounted`\"/>\n <parameter name=\"outputPath\" value=\"tmp.patchPLMNInfoList-CUUP.url\"/>\n <parameter name=\"target\" value=\"{idNearRTRIC}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.nearRTRICId`\"/>",
+ "comments": "",
+ "outputs": 1,
+ "x": 2662.312068939209,
+ "y": 1626.8748035430908,
+ "z": "f3e1d289.cac95",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "37e39989.09eaf6",
+ "type": "execute",
+ "name": "populate mountName",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$tmp.patchPLMNInfoList-CUUP.url`\"/>\n <parameter name=\"outputPath\" value=\"tmp.patchPLMNInfoList-CUUP.url\"/>\n <parameter name=\"target\" value=\"{mountName}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.idGNBCUUPFunction`\"/>",
+ "comments": "",
+ "outputs": 1,
+ "x": 2646.3125896453857,
+ "y": 1694.8750638961792,
+ "z": "f3e1d289.cac95",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "1dceaf61.aa8ea1",
+ "type": "block",
+ "name": "ransim URL",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 2386.5623741149902,
+ "y": 1685.624804019928,
+ "z": "f3e1d289.cac95",
+ "wires": [
+ [
+ "9a494e9f.7249",
+ "37e39989.09eaf6"
+ ]
+ ]
+ },
+ {
+ "id": "ffd741ab.f4ed6",
+ "type": "outcome",
+ "name": "Mounted",
+ "xml": "<outcome value='true'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2212.0625190734863,
+ "y": 1674.8750629425049,
+ "z": "f3e1d289.cac95",
+ "wires": [
+ [
+ "1dceaf61.aa8ea1"
+ ]
+ ]
+ },
+ {
+ "id": "7aa20531.fc938c",
+ "type": "execute",
+ "name": "prepare idGNBCUUPFunction",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$tmp.patchPLMNInfoList-CUUP.url`\"/>\n <parameter name=\"outputPath\" value=\"tmp.patchPLMNInfoList-CUUP.url\"/>\n <parameter name=\"target\" value=\"{idGNBCUUPFunction}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.idGNBCUUPFunction`\"/>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2082.222141265869,
+ "y": 1734.6597275733948,
+ "z": "f3e1d289.cac95",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "51ccf1aa.22223",
+ "type": "execute",
+ "name": "patch PLMNInfoListEntry gNBCUUP",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"templateFileName\" value=\"`$prop.restapi.templateDir + '/ranSlice-patch-sNSSAI-status.json'`\" />\n<parameter name=\"restapiUrl\" value=\"`$prop.controller.url + $tmp.patchPLMNInfoList-CUUP.url`\"/>\n<parameter name=\"restapiUser\" value=\"`$prop.controller.user`\" />\n<parameter name=\"restapiPassword\" value=\"`$prop.controller.pwd`\"/>\n<parameter name=\"httpMethod\" value=\"PATCH\"/>\n<parameter name=\"responsePrefix\" value=\"activate-gNBCUUP-PLMNInfoList-response\"/>\n<parameter name='contentType' value='application/yang.patch+json' />\n<parameter name='accept' value='application/yang.patch-status+json'/>\n<parameter name='format' value='json' />",
+ "comments": "",
+ "outputs": 1,
+ "x": 2031.5556373596191,
+ "y": 1848.3263988494873,
+ "z": "f3e1d289.cac95",
+ "wires": [
+ [
+ "63c01c91.fa3b34",
+ "220bb420.ec744c"
+ ]
+ ]
+ },
+ {
+ "id": "63c01c91.fa3b34",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2358.000156402588,
+ "y": 1811.4377603530884,
+ "z": "f3e1d289.cac95",
+ "wires": [
+ [
+ "790e9472.1129bc"
+ ]
+ ]
+ },
+ {
+ "id": "220bb420.ec744c",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2352.0000343322754,
+ "y": 1878.4376993179321,
+ "z": "f3e1d289.cac95",
+ "wires": [
+ [
+ "4718b038.f4633"
+ ]
+ ]
+ },
+ {
+ "id": "790e9472.1129bc",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 2535.0002784729004,
+ "y": 1800.4376382827759,
+ "z": "f3e1d289.cac95",
+ "wires": [
+ [
+ "56405409.4e6a7c",
+ "c476a9f.0ec7758",
+ "41b2c593.f9442c"
+ ]
+ ]
+ },
+ {
+ "id": "4718b038.f4633",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 2532.0000343322754,
+ "y": 1883.4375162124634,
+ "z": "f3e1d289.cac95",
+ "wires": [
+ [
+ "150a9857.243b68"
+ ]
+ ]
+ },
+ {
+ "id": "150a9857.243b68",
+ "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/activateRANSlice.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"Successfully Patched - gNBCUUP PLMNInfo List\"/>",
+ "comments": "",
+ "outputs": 1,
+ "x": 2684.999729156494,
+ "y": 1883.4377603530884,
+ "z": "f3e1d289.cac95",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "56405409.4e6a7c",
+ "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 patching CUUP PLMNInfo. Aborting RPC executiopn'/>",
+ "comments": "",
+ "x": 2739.7502403259277,
+ "y": 1800.9379177093506,
+ "z": "f3e1d289.cac95",
+ "wires": []
+ },
+ {
+ "id": "c476a9f.0ec7758",
+ "type": "set",
+ "name": "set",
+ "xml": "<set>\n<parameter name='error-code' value='500'/>\n<parameter name='error-message' value='Error patching CUUP PLMNInfoList. Aborting RPC executiopn'/>",
+ "comments": "",
+ "x": 2744.7504272460938,
+ "y": 1746.9380536079407,
+ "z": "f3e1d289.cac95",
+ "wires": []
+ },
+ {
+ "id": "f1418956.9bf3f8",
+ "type": "block",
+ "name": "Process gNBDU",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 799.5625190734863,
+ "y": 2297.625068664551,
+ "z": "f3e1d289.cac95",
+ "wires": [
+ [
+ "fad32c0f.b08fc",
+ "98148527.743688",
+ "d3310764.1a0d08"
+ ]
+ ]
+ },
+ {
+ "id": "fad32c0f.b08fc",
+ "type": "execute",
+ "name": "read DUlist size",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'>\n\t<parameter name='outputPath' value='tmp.DUList_length' />\n\t<parameter name='source' value=\"`'getNFNSSIRIC-configdb-response.[' + $idy +'].gNBDUList_length'`\" />\n ",
+ "comments": "",
+ "outputs": 1,
+ "x": 1024.3125305175781,
+ "y": 2149.6250648498535,
+ "z": "f3e1d289.cac95",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "98148527.743688",
+ "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/activateRANSlice.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"Number of DU List Entries \"/>\n<parameter name=\"field2\" value=\"`$tmp.DUList_length`\"/>\n<parameter name=\"field3\" value=\"for the NearRTRIC\"/>\n<parameter name=\"field4\" value=\"`$tmp.nearRTRICId`\"/>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1027.3126945495605,
+ "y": 2191.125228881836,
+ "z": "f3e1d289.cac95",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "d3310764.1a0d08",
+ "type": "for",
+ "name": "foreach DU",
+ "xml": "<for index='id-du' start='0' end='`$tmp.DUList_length`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1019.3125305175781,
+ "y": 2228.375066757202,
+ "z": "f3e1d289.cac95",
+ "wires": [
+ [
+ "d01a4536.afab58"
+ ]
+ ]
+ },
+ {
+ "id": "d01a4536.afab58",
+ "type": "block",
+ "name": "block : process gNBDU",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 1308.31254196167,
+ "y": 2071.3750171661377,
+ "z": "f3e1d289.cac95",
+ "wires": [
+ [
+ "c1e54b85.da2b98",
+ "46095ab0.a6b044",
+ "a1a21e4c.faf6e",
+ "751f6325.f3890c"
+ ]
+ ]
+ },
+ {
+ "id": "c1e54b85.da2b98",
+ "type": "execute",
+ "name": "read DU id",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'>\n\t<parameter name='outputPath' value='tmp.GNBDUId' />\n\t<parameter name='source' value=\"`'getNFNSSIRIC-configdb-response.['+ $idy +'].gNBDUList['+ $id-du +'].gNBDUId'`\" />",
+ "comments": "",
+ "outputs": 1,
+ "x": 1619.312328338623,
+ "y": 1837.3742923736572,
+ "z": "f3e1d289.cac95",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "46095ab0.a6b044",
+ "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/activateRANSlice.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"GNBDUId \"/>\n<parameter name=\"field2\" value=\"`$tmp.GNBDUId`\"/>\n\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1592.312328338623,
+ "y": 1888.3742923736572,
+ "z": "f3e1d289.cac95",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "a1a21e4c.faf6e",
+ "type": "execute",
+ "name": "read cellDU list size",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'>\n\t<parameter name='outputPath' value='tmp.cellDUList_length' />\n\t<parameter name='source' value=\"`'getNFNSSIRIC-configdb-response.[' + $idy +'].gNBDUList[' + $id-du +'].cellDUList_length'`\" />\n ",
+ "comments": "",
+ "outputs": 1,
+ "x": 1633.312328338623,
+ "y": 1937.3742923736572,
+ "z": "f3e1d289.cac95",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "751f6325.f3890c",
+ "type": "for",
+ "name": "for cellDUList",
+ "xml": "<for index='id-celldu' start='0' end='`$tmp.cellDUList_length`' >\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1623.312328338623,
+ "y": 1981.3742923736572,
+ "z": "f3e1d289.cac95",
+ "wires": [
+ [
+ "69ae697a.bd4e38"
+ ]
+ ]
+ },
+ {
+ "id": "69ae697a.bd4e38",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 1783.0623893737793,
+ "y": 1981.1244173049927,
+ "z": "f3e1d289.cac95",
+ "wires": [
+ [
+ "4c22431.e17e2bc",
+ "57921e76.a538f",
+ "3f0f3109.752fce"
+ ]
+ ]
+ },
+ {
+ "id": "4c22431.e17e2bc",
+ "type": "execute",
+ "name": "read PLMNList size",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'>\n\t<parameter name='outputPath' value='tmp.DUpLMNInfoList_length' />\n\t<parameter name='source' value=\"`'getNFNSSIRIC-configdb-response.['+ $idy +'].gNBDUList['+ $id-du +'].cellDUList['+ $id-celldu +'].pLMNInfoList_length'`\" />",
+ "comments": "",
+ "outputs": 1,
+ "x": 2031.2500038146973,
+ "y": 1980.875020980835,
+ "z": "f3e1d289.cac95",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "57921e76.a538f",
+ "type": "for",
+ "name": "foreach PLMNInfo",
+ "xml": "<for index='id-duplmn' start='0' end='`$tmp.DUpLMNInfoList_length`' >\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2009.5833778381348,
+ "y": 2050.875020980835,
+ "z": "f3e1d289.cac95",
+ "wires": [
+ [
+ "84326baf.40be38"
+ ]
+ ]
+ },
+ {
+ "id": "84326baf.40be38",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 2194.9721641540527,
+ "y": 2044.9027309417725,
+ "z": "f3e1d289.cac95",
+ "wires": [
+ [
+ "573d7254.61b9ec",
+ "395b9043.c9bc8"
+ ]
+ ]
+ },
+ {
+ "id": "d406860f.792db8",
+ "type": "execute",
+ "name": "read sNSSAI from getNFNSSIRIC-configdb-response",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'>\n\t<parameter name='outputPath' value='tmp.configDBSNSSAI-DU' />\n\t<parameter name='source' value=\"`'getNFNSSIRIC-configdb-response.['+ $idy +'].gNBDUList['+ $id-du +'].cellDUList['+ $id-celldu +'].pLMNInfoList['+ $id-duplmn +'].sNSSAI['+$id-dunssai+'].sNSSAI'`\" />",
+ "comments": "",
+ "outputs": 1,
+ "x": 2547.5278663635254,
+ "y": 2018.9866718053818,
+ "z": "f3e1d289.cac95",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "13435487.dbdebb",
+ "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/activateRANSlice.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"sNSSAI - getNFNSSIRIC-configdb-response\"/>\n<parameter name=\"field2\" value=\"`$tmp.configDBSNSSAI-DU`\"/>\n<parameter name=\"field3\" value=\"sNSSAI from request\"/>\n<parameter name=\"field4\" value=\"`$tmp.sNSSAI`\"/>\n\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2420.8610801696777,
+ "y": 2061.875340819359,
+ "z": "f3e1d289.cac95",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "7b0ddb79.15c6c4",
+ "type": "switchNode",
+ "name": "is NSSAI exists",
+ "xml": "<switch test='`$tmp.configDBSNSSAI-DU == $tmp.sNSSAI`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2418.9999961853027,
+ "y": 2102.430852293968,
+ "z": "f3e1d289.cac95",
+ "wires": [
+ [
+ "6f84ca10.255ec4"
+ ]
+ ]
+ },
+ {
+ "id": "6f84ca10.255ec4",
+ "type": "outcome",
+ "name": "True",
+ "xml": "<outcome value='true'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2592.472438812256,
+ "y": 2108.153173804283,
+ "z": "f3e1d289.cac95",
+ "wires": [
+ [
+ "e2f193ed.0e1ff"
+ ]
+ ]
+ },
+ {
+ "id": "e2f193ed.0e1ff",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 2774.5001335144043,
+ "y": 2060.125244140625,
+ "z": "f3e1d289.cac95",
+ "wires": [
+ [
+ "9de7d1a1.cd694",
+ "ef725caf.18971",
+ "d5a7e617.e853e8",
+ "e16c9bb7.910c08",
+ "8f20a79.69e8f58",
+ "6c7eb50c.54215c",
+ "b840edb9.e0803"
+ ]
+ ]
+ },
+ {
+ "id": "afa3cc45.fe027",
+ "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/activateRANSlice.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"CellDU is applicable for the NSSAI \"/>\n\n\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2987.000499725342,
+ "y": 2028.8752442598343,
+ "z": "f3e1d289.cac95",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "9de7d1a1.cd694",
+ "type": "switchNode",
+ "name": "ransim mounted",
+ "xml": "<switch test='`$prop.ransim-mounted`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2991.250011444092,
+ "y": 2086.8752765655518,
+ "z": "f3e1d289.cac95",
+ "wires": [
+ [
+ "b82e7d15.1cc56",
+ "99943f79.216dc"
+ ]
+ ]
+ },
+ {
+ "id": "b82e7d15.1cc56",
+ "type": "outcome",
+ "name": "Not Mounted",
+ "xml": "<outcome value='false'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 3200.500503540039,
+ "y": 2041.8748178482056,
+ "z": "f3e1d289.cac95",
+ "wires": [
+ [
+ "8a4843.5fab57c"
+ ]
+ ]
+ },
+ {
+ "id": "99943f79.216dc",
+ "type": "outcome",
+ "name": "Mounted",
+ "xml": "<outcome value='true'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 3195.500503540039,
+ "y": 2103.3755207061768,
+ "z": "f3e1d289.cac95",
+ "wires": [
+ [
+ "920c0416.927338"
+ ]
+ ]
+ },
+ {
+ "id": "8a4843.5fab57c",
+ "type": "execute",
+ "name": "generate patch PLMNInfoListEntry ToNRCellDU",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$prop.restapi.patchPLMNInfoListEntry.ToNRCellDU`\"/>\n <parameter name=\"outputPath\" value=\"tmp.patchPLMNInfoListEntry-cellDU.url\"/>\n <parameter name=\"target\" value=\"{idNearRTRIC}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.nearRTRICId`\"/>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 3546.7502632141113,
+ "y": 2040.6252746582031,
+ "z": "f3e1d289.cac95",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "920c0416.927338",
+ "type": "block",
+ "name": "ransim URL",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 3373.0000801086426,
+ "y": 2109.8751544952393,
+ "z": "f3e1d289.cac95",
+ "wires": [
+ [
+ "89fd2c37.6c54d",
+ "310b2856.c31028"
+ ]
+ ]
+ },
+ {
+ "id": "89fd2c37.6c54d",
+ "type": "execute",
+ "name": "generate patchPLMNInfoList.ToNRCellDU",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$prop.restapi.patchPLMNInfoListEntry.ToNRCellDU.ransim-mounted`\"/>\n <parameter name=\"outputPath\" value=\"tmp.patchPLMNInfoListEntry-cellDU.url\"/>\n <parameter name=\"target\" value=\"{idNearRTRIC}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.nearRTRICId`\"/>",
+ "comments": "",
+ "outputs": 1,
+ "x": 3655.00044631958,
+ "y": 2098.6251544952393,
+ "z": "f3e1d289.cac95",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "310b2856.c31028",
+ "type": "execute",
+ "name": "populate mountName",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$tmp.patchPLMNInfoListEntry-cellDU.url`\"/>\n <parameter name=\"outputPath\" value=\"tmp.patchPLMNInfoListEntry-cellDU.url\"/>\n <parameter name=\"target\" value=\"{mountName}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.GNBDUId`\"/>",
+ "comments": "",
+ "outputs": 1,
+ "x": 3605.2507514953613,
+ "y": 2159.1251859664917,
+ "z": "f3e1d289.cac95",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "ef725caf.18971",
+ "type": "execute",
+ "name": "prepare idGNBDUFunction",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$tmp.patchPLMNInfoListEntry-cellDU.url`\"/>\n <parameter name=\"outputPath\" value=\"tmp.patchPLMNInfoListEntry-cellDU.url\"/>\n <parameter name=\"target\" value=\"{idGNBDUFunction}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.GNBDUId`\"/>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 3038.1250648498535,
+ "y": 2213.6874589920044,
+ "z": "f3e1d289.cac95",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "d5a7e617.e853e8",
+ "type": "execute",
+ "name": "prepare idNRCellDU",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$tmp.patchPLMNInfoListEntry-cellDU.url`\"/>\n <parameter name=\"outputPath\" value=\"tmp.patchPLMNInfoListEntry-cellDU.url\"/>\n <parameter name=\"target\" value=\"{idNRCellDU}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.cellDULocalId`\"/>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 3011.1252479553223,
+ "y": 2268.687460899353,
+ "z": "f3e1d289.cac95",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "e16c9bb7.910c08",
+ "type": "execute",
+ "name": "prepare mcc",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$tmp.patchPLMNInfoListEntry-cellDU.url`\"/>\n <parameter name=\"outputPath\" value=\"tmp.patchPLMNInfoListEntry-cellDU.url\"/>\n <parameter name=\"target\" value=\"{mcc}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.mcc`\"/>\n ",
+ "comments": "",
+ "outputs": 1,
+ "x": 2991.124942779541,
+ "y": 2331.6877670288086,
+ "z": "f3e1d289.cac95",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "8f20a79.69e8f58",
+ "type": "execute",
+ "name": "prepare mnc",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$tmp.patchPLMNInfoListEntry-cellDU.url`\"/>\n <parameter name=\"outputPath\" value=\"tmp.patchPLMNInfoListEntry-cellDU.url\"/>\n <parameter name=\"target\" value=\"{mnc}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.mnc`\"/>",
+ "comments": "",
+ "outputs": 1,
+ "x": 2993.125186920166,
+ "y": 2389.687399864197,
+ "z": "f3e1d289.cac95",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "6c7eb50c.54215c",
+ "type": "record",
+ "name": "record API params",
+ "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.FileRecorder\">\n<parameter name=\"file\" value=\"/opt/opendaylight/current/data/log/activateRANSlice.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"patch cellDU NSSAI parameters\"/>\n<parameter name=\"field2\" value=\"`$tmp.nearRTRICId`\"/>\n<parameter name=\"field3\" value=\"`$tmp.GNBDUId`\"/>\n<parameter name=\"field4\" value=\"`$tmp.cellDULocalId`\"/>\n<parameter name=\"field5\" value=\"`$tmp.mcc`\"/>\n<parameter name=\"field6\" value=\"`$tmp.mnc`\"/>\n<parameter name=\"field7\" value=\"`$tmp.patchPLMNInfoListEntry-cellDU.url`\"/>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2998.1248207092285,
+ "y": 2457.6878910064697,
+ "z": "f3e1d289.cac95",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "b840edb9.e0803",
+ "type": "execute",
+ "name": "patch PLMNInfoListEntry ToNRCellDU",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"templateFileName\" value=\"`$prop.restapi.templateDir + '/ranSlice-patch-sNSSAI-status.json'`\" />\n<parameter name=\"restapiUrl\" value=\"`$prop.controller.url + $tmp.patchPLMNInfoListEntry-cellDU.url`\"/>\n<parameter name=\"restapiUser\" value=\"`$prop.controller.user`\" />\n<parameter name=\"restapiPassword\" value=\"`$prop.controller.pwd`\"/>\n<parameter name=\"httpMethod\" value=\"PATCH\"/>\n<parameter name=\"responsePrefix\" value=\"activate-cellDU-PLMNInfoList-response\"/>\n<parameter name='contentType' value='application/yang.patch+json' />\n<parameter name='accept' value='application/yang.patch-status+json'/>\n<parameter name='format' value='json' />",
+ "comments": "",
+ "outputs": 1,
+ "x": 3055.1248512268066,
+ "y": 2532.93727684021,
+ "z": "f3e1d289.cac95",
+ "wires": [
+ [
+ "80be372a.3eafa8",
+ "6b52bf7f.6dc93"
+ ]
+ ]
+ },
+ {
+ "id": "6b52bf7f.6dc93",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 3322.1248512268066,
+ "y": 2432.93727684021,
+ "z": "f3e1d289.cac95",
+ "wires": [
+ [
+ "aaddd4f3.f50168"
+ ]
+ ]
+ },
+ {
+ "id": "aaddd4f3.f50168",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 3480.1250953674316,
+ "y": 2380.93727684021,
+ "z": "f3e1d289.cac95",
+ "wires": [
+ [
+ "b4d9e206.d9732",
+ "1d434bba.7b3e64",
+ "41b2c593.f9442c"
+ ]
+ ]
+ },
+ {
+ "id": "1d434bba.7b3e64",
+ "type": "set",
+ "name": "set",
+ "xml": "<set>\n<parameter name='error-code' value='500'/>\n<parameter name='error-message' value='Error patching cellDU PLMNInfoList. Aborting RPC executiopn'/>",
+ "comments": "",
+ "x": 3646.1248512268066,
+ "y": 2346.93727684021,
+ "z": "f3e1d289.cac95",
+ "wires": []
+ },
+ {
+ "id": "b4d9e206.d9732",
+ "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 NECellDU - PLMNInfo. Aborting RPC executiopn'/>",
+ "comments": "",
+ "x": 3651.124729156494,
+ "y": 2441.937337875366,
+ "z": "f3e1d289.cac95",
+ "wires": []
+ },
+ {
+ "id": "e335f095.7ae5a",
+ "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/activateRANSlice.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"Successfully Patched - cellDU PLMNInfo List\"/>",
+ "comments": "",
+ "outputs": 1,
+ "x": 3635.124729156494,
+ "y": 2527.937520980835,
+ "z": "f3e1d289.cac95",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "f7547b41.792fb8",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 3489.1248512268066,
+ "y": 2528.9372794628143,
+ "z": "f3e1d289.cac95",
+ "wires": [
+ [
+ "e335f095.7ae5a"
+ ]
+ ]
+ },
+ {
+ "id": "80be372a.3eafa8",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 3321.1248512268066,
+ "y": 2531.93727684021,
+ "z": "f3e1d289.cac95",
+ "wires": [
+ [
+ "f7547b41.792fb8"
+ ]
+ ]
+ },
+ {
+ "id": "2fe6cae9.b1b516",
+ "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/activateRANSlice.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"`$tmp.pLMNId`\"/>\n<parameter name=\"field2\" value=\"`$tmp.mcc`\"/>\n<parameter name=\"field3\" value=\"`$tmp.mnc`\"/>",
+ "comments": "",
+ "outputs": 1,
+ "x": 561.8889465332031,
+ "y": 1833.0146312713623,
+ "z": "f3e1d289.cac95",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "41b2c593.f9442c",
+ "type": "block",
+ "name": "block : SO Response",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 4124.062503814697,
+ "y": 2179.4911098480225,
+ "z": "f3e1d289.cac95",
+ "wires": [
+ [
+ "664c0610.ca3098",
+ "5d344cf6.3804d4",
+ "ebc16fa1.86b06"
+ ]
+ ]
+ },
+ {
+ "id": "664c0610.ca3098",
+ "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=\"`$activate-r-a-n-slice-instance-input.common-header.request-id`\"/>\n<parameter name=\"tmp.action\" value=\"`$activate-r-a-n-slice-instance-input.action`\"/>\n",
+ "comments": "",
+ "x": 4503.206287384033,
+ "y": 2037.1050968170166,
+ "z": "f3e1d289.cac95",
+ "wires": []
+ },
+ {
+ "id": "5d344cf6.3804d4",
+ "type": "record",
+ "name": "record 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`\" />",
+ "comments": "",
+ "outputs": 1,
+ "x": 4506.776744842529,
+ "y": 2102.777183532715,
+ "z": "f3e1d289.cac95",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "ebc16fa1.86b06",
+ "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-activate-response\"/>\n<parameter name='contentType' value='application/json' /> \n<parameter name='format' value='json' />\n<parameter name='accept' value='*/*' />\n<parameter name=\"convertResponse\" value=\"true\"/>",
+ "comments": "",
+ "outputs": 1,
+ "x": 4433.205310821533,
+ "y": 2181.2057580947876,
+ "z": "f3e1d289.cac95",
+ "wires": [
+ [
+ "ec3e74b5.a9dac8",
+ "a50e3373.088c2"
+ ]
+ ]
+ },
+ {
+ "id": "ec3e74b5.a9dac8",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 4670.633869171143,
+ "y": 2163.9198093414307,
+ "z": "f3e1d289.cac95",
+ "wires": [
+ [
+ "f205612.af7d2a"
+ ]
+ ]
+ },
+ {
+ "id": "f205612.af7d2a",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 4863.062236785889,
+ "y": 2154.634246826172,
+ "z": "f3e1d289.cac95",
+ "wires": [
+ [
+ "3f3391b9.1c518e"
+ ]
+ ]
+ },
+ {
+ "id": "3f3391b9.1c518e",
+ "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": 5064.776119232178,
+ "y": 2143.348358631134,
+ "z": "f3e1d289.cac95",
+ "wires": []
+ },
+ {
+ "id": "2c15ca38.e01556",
+ "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/activateRANSlice.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"SO Response Sent \"/>",
+ "comments": "",
+ "outputs": 1,
+ "x": 5058.919395446777,
+ "y": 2218.348424911499,
+ "z": "f3e1d289.cac95",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "304d3a47.a68376",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 4874.919246673584,
+ "y": 2223.776866912842,
+ "z": "f3e1d289.cac95",
+ "wires": [
+ [
+ "2c15ca38.e01556"
+ ]
+ ]
+ },
+ {
+ "id": "a50e3373.088c2",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 4664.919193267822,
+ "y": 2227.634105682373,
+ "z": "f3e1d289.cac95",
+ "wires": [
+ [
+ "304d3a47.a68376"
+ ]
+ ]
+ },
+ {
+ "id": "565d0f86.e63b6",
+ "type": "block",
+ "name": "SO Response",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 193.56254959106445,
+ "y": 2479.634229660034,
+ "z": "f3e1d289.cac95",
+ "wires": [
+ [
+ "a33b4f8b.eb4ea",
+ "b3e81441.306338",
+ "30a13788.b44458",
+ "e32dce76.ce133"
+ ]
+ ]
+ },
+ {
+ "id": "30a13788.b44458",
+ "type": "set",
+ "name": "set tmp variables for SO response",
+ "xml": "<set>\n<parameter name=\"tmp.status\" value=\"`$error-code`\"/>\n<parameter name=\"tmp.reason\" value=\"`$error-message`\"/>\n<parameter name=\"tmp.requestID\" value=\"`$activate-r-a-n-slice-input.common-header.request-id `\"/>\n<parameter name=\"tmp.action\" value=\"`$activate-r-a-n-slice-input.action`\"/>\n",
+ "comments": "",
+ "x": 509.563663482666,
+ "y": 2298.5336322784424,
+ "z": "f3e1d289.cac95",
+ "wires": []
+ },
+ {
+ "id": "a33b4f8b.eb4ea",
+ "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=\"`$payloadJson.input.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`\" />",
+ "comments": "",
+ "outputs": 1,
+ "x": 459.56252670288086,
+ "y": 2454.634222984314,
+ "z": "f3e1d289.cac95",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "b3e81441.306338",
+ "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=\"`$payloadJson.input.callbackURL`\"/>\n<parameter name=\"httpMethod\" value=\"POST\"/>\n<parameter name=\"responsePrefix\" value=\"so-callback-activate-response\"/>\n<parameter name='contentType' value='application/json' /> \n<parameter name='format' value='json' />\n<parameter name='accept' value='*/*' />\n<parameter name=\"restapiUser\" value=\"`$prop.restapi.so.user`\" />\n<parameter name=\"restapiPassword\" value=\"`$prop.restapi.so.password`\"/>",
+ "comments": "",
+ "outputs": 1,
+ "x": 451.56260681152344,
+ "y": 2524.6339015960693,
+ "z": "f3e1d289.cac95",
+ "wires": [
+ [
+ "fc7013d9.4a109",
+ "ed979d44.31e2b"
+ ]
+ ]
+ },
+ {
+ "id": "fc7013d9.4a109",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 795.5626106262207,
+ "y": 2425.6338996887207,
+ "z": "f3e1d289.cac95",
+ "wires": [
+ [
+ "d974fdb1.9d86a"
+ ]
+ ]
+ },
+ {
+ "id": "ed979d44.31e2b",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 881.5625305175781,
+ "y": 2516.6339025497437,
+ "z": "f3e1d289.cac95",
+ "wires": [
+ [
+ "ec581dfb.92df3"
+ ]
+ ]
+ },
+ {
+ "id": "ec581dfb.92df3",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 1120.5623168945312,
+ "y": 2335.6338777542114,
+ "z": "f3e1d289.cac95",
+ "wires": [
+ [
+ "738f7896.1530a8"
+ ]
+ ]
+ },
+ {
+ "id": "d974fdb1.9d86a",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 1131.5624809265137,
+ "y": 2253.6339540481567,
+ "z": "f3e1d289.cac95",
+ "wires": [
+ [
+ "e03ff9aa.45c688",
+ "abfa7a70.e96a98"
+ ]
+ ]
+ },
+ {
+ "id": "e03ff9aa.45c688",
+ "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": 1278.562099456787,
+ "y": 2264.633695602417,
+ "z": "f3e1d289.cac95",
+ "wires": []
+ },
+ {
+ "id": "738f7896.1530a8",
+ "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/activateRANSlice.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"SO Response Sent \"/>",
+ "comments": "",
+ "outputs": 1,
+ "x": 1281.5622367858887,
+ "y": 2341.6337699890137,
+ "z": "f3e1d289.cac95",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "abfa7a70.e96a98",
+ "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": 1266.0727081298828,
+ "y": 2168.6231870651245,
+ "z": "f3e1d289.cac95",
+ "wires": []
+ },
+ {
+ "id": "e32dce76.ce133",
+ "type": "execute",
+ "name": "generate URL for SO Callback",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$prop.restapi.so.callbackURL`\"/>\n <parameter name=\"outputPath\" value=\"tmp.so.callbackURL\"/>\n <parameter name=\"target\" value=\"{requestId}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.requestID`\"/>",
+ "comments": "",
+ "outputs": 1,
+ "x": 511.90212631225586,
+ "y": 2380.619409561157,
+ "z": "f3e1d289.cac95",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "25ec2edb.5190e2",
+ "type": "returnSuccess",
+ "name": "return success",
+ "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": 161.00000381469727,
+ "y": 2032.0625581741333,
+ "z": "f3e1d289.cac95",
+ "wires": []
+ },
+ {
+ "id": "6018a94e.523c68",
+ "type": "execute",
+ "name": "read RIC list size",
+ "xml": "<set>\n<parameter name='tmp.RICList_length' value=\"`$getNFNSSIRIC-cps-response._length`\"/>",
+ "comments": "",
+ "outputs": 1,
+ "x": 581.722240447998,
+ "y": 1877.0558156967163,
+ "z": "f3e1d289.cac95",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "da1f393f.fd1958",
+ "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/activateRANSlice.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"cellLocalId \"/>\n<parameter name=\"field2\" value=\"`$tmp.cellLocalId`\"/>\n\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1912.499912261963,
+ "y": 1255.389051437378,
+ "z": "f3e1d289.cac95",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "bbc8d64.6ac3b28",
+ "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/activateRANSlice.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"pLMNInfoList_length \"/>\n<parameter name=\"field2\" value=\"`$tmp.pLMNInfoList_length`\"/>\n\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1912.4999504089355,
+ "y": 1346.5000610351562,
+ "z": "f3e1d289.cac95",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "834572a6.4a16e",
+ "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/activateRANSlice.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"PLMNInfo exists\"/>\n\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2372.4998512268066,
+ "y": 1293.7222270965576,
+ "z": "f3e1d289.cac95",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "3e18dd6e.84b502",
+ "type": "execute",
+ "name": "read 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=\"`'getNFNSSIRIC-configdb-response.[' + $idy +'].nearRTRICId'`\" />\n ",
+ "comments": "",
+ "outputs": 1,
+ "x": 463.0000190734863,
+ "y": 2062.2222290039062,
+ "z": "f3e1d289.cac95",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "9f973845.f5fb18",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 260.7777214050293,
+ "y": 2084.888897895813,
+ "z": "f3e1d289.cac95",
+ "wires": [
+ [
+ "3e18dd6e.84b502"
+ ]
+ ]
+ },
+ {
+ "id": "2124cf02.35d0c",
+ "type": "execute",
+ "name": "prepare nearRTRICId",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$tmp.patchPLMNInfoList-CUUP.url`\"/>\n <parameter name=\"outputPath\" value=\"tmp.patchPLMNInfoList-CUUP.url\"/>\n <parameter name=\"target\" value=\"{idNearRTRIC}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.nearRTRICId`\"/>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2041.6665992736816,
+ "y": 1698.4444561004639,
+ "z": "f3e1d289.cac95",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "1d2f0748.1c2f99",
+ "type": "execute",
+ "name": "prepare mcc",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$tmp.patchPLMNInfoList-CUUP.url`\"/>\n <parameter name=\"outputPath\" value=\"tmp.patchPLMNInfoList-CUUP.url\"/>\n <parameter name=\"target\" value=\"{mcc}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.mcc`\"/>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2038.3332252502441,
+ "y": 1775.1110820770264,
+ "z": "f3e1d289.cac95",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "3e5a3205.656e4e",
+ "type": "execute",
+ "name": "prepare mnc",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$tmp.patchPLMNInfoList-CUUP.url`\"/>\n <parameter name=\"outputPath\" value=\"tmp.patchPLMNInfoList-CUUP.url\"/>\n <parameter name=\"target\" value=\"{mnc}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.mnc`\"/>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2034.9998512268066,
+ "y": 1808.4444561004639,
+ "z": "f3e1d289.cac95",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "22b9d404.77280c",
+ "type": "execute",
+ "name": "read sNSSAI from getNFNSSIRIC-configdb-response",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'>\n\t<parameter name='outputPath' value='tmp.configDBSNSSAI' />\n\t<parameter name='source' value=\"`'getNFNSSIRIC-configdb-response.['+ $idy +'].gNBCUUPList['+ $id-cuup +'].pLMNInfoList['+ $id-plmn +'].sNSSAI['+$id-cuupnssai+'].sNSSAI'`\" />",
+ "comments": "",
+ "outputs": 1,
+ "x": 2107.833423614502,
+ "y": 1512.6667178869247,
+ "z": "f3e1d289.cac95",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "f55399d3.6b8fb8",
+ "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/activateRANSlice.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"sNSSAI - getNFNSSIRIC-configdb-response\"/>\n<parameter name=\"field2\" value=\"`$tmp.configDBSNSSAI`\"/>\n<parameter name=\"field3\" value=\"sNSSAI from request\"/>\n<parameter name=\"field4\" value=\"`$tmp.sNSSAI`\"/>\n\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1964.72261428833,
+ "y": 1552.4444879293442,
+ "z": "f3e1d289.cac95",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "fd5dd255.728ac",
+ "type": "switchNode",
+ "name": "is NSSAI exists",
+ "xml": "<switch test='`$tmp.configDBSNSSAI == $tmp.sNSSAI`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2007.9447555541992,
+ "y": 1601.9999618530273,
+ "z": "f3e1d289.cac95",
+ "wires": [
+ [
+ "cdfb9f8c.1da4c",
+ "24c0d031.a9b7d"
+ ]
+ ]
+ },
+ {
+ "id": "cdfb9f8c.1da4c",
+ "type": "outcome",
+ "name": "True",
+ "xml": "<outcome value='true'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2150.6391830444336,
+ "y": 1557.6667932271957,
+ "z": "f3e1d289.cac95",
+ "wires": [
+ [
+ "cce89c36.b780e"
+ ]
+ ]
+ },
+ {
+ "id": "f15c6d84.0314",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 1766.9443092346191,
+ "y": 1540.6666240692139,
+ "z": "f3e1d289.cac95",
+ "wires": [
+ [
+ "ee9b49a4.c0c418",
+ "7e3aef42.e60cf",
+ "ab6a6808.280548"
+ ]
+ ]
+ },
+ {
+ "id": "24c0d031.a9b7d",
+ "type": "outcome",
+ "name": "false",
+ "xml": "<outcome value='false'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2285.2775802612305,
+ "y": 1550.3333276510239,
+ "z": "f3e1d289.cac95",
+ "wires": [
+ [
+ "d5ba5400.774c88"
+ ]
+ ]
+ },
+ {
+ "id": "d5ba5400.774c88",
+ "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/activateRANSlice.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"sNSSAI doesn't match\"/>\n\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2480.2777404785156,
+ "y": 1497.3332815170288,
+ "z": "f3e1d289.cac95",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "6eef273f.bcc7d8",
+ "type": "execute",
+ "name": "read cell id",
+ "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=\"`'getNFNSSIRIC-configdb-response.['+ $idy +'].gNBCUCPList['+ $idz +'].cellCUList['+ $idcu +'].cellLocalId'`\" />",
+ "comments": "",
+ "outputs": 1,
+ "x": 1931.388843536377,
+ "y": 1202.8888635635376,
+ "z": "f3e1d289.cac95",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "3f0f3109.752fce",
+ "type": "execute",
+ "name": "read cellDU",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'>\n\t<parameter name='outputPath' value='tmp.cellDULocalId' />\n\t<parameter name='source' value=\"`'getNFNSSIRIC-configdb-response.['+ $idy +'].gNBDUList['+ $id-du +'].cellDUList['+ $id-celldu +'].cellLocalId'`\" />",
+ "comments": "",
+ "outputs": 1,
+ "x": 2010.5555152893066,
+ "y": 1906.2221660614014,
+ "z": "f3e1d289.cac95",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "2d8deef9.ae1272",
+ "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/activateRANSlice.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"cellLocalId \"/>\n<parameter name=\"field2\" value=\"`$tmp.cellDULocalId`\"/>\n\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2009.9301948547363,
+ "y": 1941.5345468521118,
+ "z": "f3e1d289.cac95",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "37f8ca4b.bc4116",
+ "type": "switchNode",
+ "name": "check the action",
+ "xml": "<switch test='`$activate-r-a-n-slice-instance-input.action == activate`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 798.166675567627,
+ "y": 841.6666946411133,
+ "z": "f3e1d289.cac95",
+ "wires": [
+ [
+ "b4d05d5d.96195",
+ "c9f09e95.e69fd"
+ ]
+ ]
+ },
+ {
+ "id": "b4d05d5d.96195",
+ "type": "outcome",
+ "name": "True",
+ "xml": "<outcome value='true'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1134.666820526123,
+ "y": 784.2222843170166,
+ "z": "f3e1d289.cac95",
+ "wires": [
+ [
+ "3a84966d.34e61a"
+ ]
+ ]
+ },
+ {
+ "id": "c9f09e95.e69fd",
+ "type": "outcome",
+ "name": "False",
+ "xml": "<outcome value='false'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1135.889045715332,
+ "y": 837.1112022399902,
+ "z": "f3e1d289.cac95",
+ "wires": [
+ [
+ "20489234.75219e"
+ ]
+ ]
+ },
+ {
+ "id": "fb588e6.1b3587",
+ "type": "set",
+ "name": "set status as ACTIVE",
+ "xml": "<set>\n<parameter name='tmp.status' value='ACTIVE' />",
+ "comments": "",
+ "x": 1672.1112480163574,
+ "y": 770.2222537994385,
+ "z": "f3e1d289.cac95",
+ "wires": []
+ },
+ {
+ "id": "306ad8b.84ab028",
+ "type": "set",
+ "name": "set status as INACTIVE",
+ "xml": "<set>\n<parameter name='tmp.status' value='INACTIVE' />",
+ "comments": "",
+ "x": 1630.555591583252,
+ "y": 839.555609703064,
+ "z": "f3e1d289.cac95",
+ "wires": []
+ },
+ {
+ "id": "3a84966d.34e61a",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 1431.6668281555176,
+ "y": 761.9999942779541,
+ "z": "f3e1d289.cac95",
+ "wires": [
+ [
+ "fb588e6.1b3587"
+ ]
+ ]
+ },
+ {
+ "id": "20489234.75219e",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 1322.3334121704102,
+ "y": 811.6666927337646,
+ "z": "f3e1d289.cac95",
+ "wires": [
+ [
+ "306ad8b.84ab028"
+ ]
+ ]
+ },
+ {
+ "id": "6841431c.020a2c",
+ "type": "execute",
+ "name": "read snssailist size",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'>\n\t<parameter name='outputPath' value='tmp.snssaiList_length' />\n\t<parameter name='source' value=\"`'getNFNSSIRIC-configdb-response.['+ $idy +'].gNBCUCPList['+ $idz +'].cellCUList['+ $idcu +'].pLMNInfoList['+$id-cuplmn+'].sNSSAI_length'`\" />",
+ "comments": "",
+ "outputs": 1,
+ "x": 2370.0000038146973,
+ "y": 1221.0000222921371,
+ "z": "f3e1d289.cac95",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "d5f12d4.b35f5d",
+ "type": "for",
+ "name": "foreach snssai",
+ "xml": "<for index='id-cunssai' start='0' end='`$tmp.snssaiList_length`' >\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2378.0000038146973,
+ "y": 1261.0000222921371,
+ "z": "f3e1d289.cac95",
+ "wires": [
+ [
+ "3193eaa9.e97fe6"
+ ]
+ ]
+ },
+ {
+ "id": "3193eaa9.e97fe6",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 2571.2500038146973,
+ "y": 1263.5000222921371,
+ "z": "f3e1d289.cac95",
+ "wires": [
+ [
+ "f89ba912.658ee8",
+ "236f0778.82ee78",
+ "482f3d28.6fce24"
+ ]
+ ]
+ },
+ {
+ "id": "ee9b49a4.c0c418",
+ "type": "execute",
+ "name": "read snssailist size",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'>\n\t<parameter name='outputPath' value='tmp.snssaiListup_length' />\n\t<parameter name='source' value=\"`'getNFNSSIRIC-configdb-response.['+ $idy +'].gNBCUUPList['+ $id-cuup +'].pLMNInfoList['+$id-plmn+'].sNSSAI_length'`\" />",
+ "comments": "",
+ "outputs": 1,
+ "x": 2003.9999885559082,
+ "y": 1413.2500756978989,
+ "z": "f3e1d289.cac95",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "7e3aef42.e60cf",
+ "type": "for",
+ "name": "foreach snssai",
+ "xml": "<for index='id-cuupnssai' start='0' end='`$tmp.snssaiListup_length`' >\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1990.0000267028809,
+ "y": 1471.2500766515732,
+ "z": "f3e1d289.cac95",
+ "wires": [
+ [
+ "2439d56a.0c3daa"
+ ]
+ ]
+ },
+ {
+ "id": "2439d56a.0c3daa",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 2199.2499961853027,
+ "y": 1467.7500766515732,
+ "z": "f3e1d289.cac95",
+ "wires": [
+ [
+ "22b9d404.77280c",
+ "f55399d3.6b8fb8",
+ "fd5dd255.728ac"
+ ]
+ ]
+ },
+ {
+ "id": "573d7254.61b9ec",
+ "type": "execute",
+ "name": "read snssailist size",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'>\n\t<parameter name='outputPath' value='tmp.snssaiListdu_length' />\n\t<parameter name='source' value=\"`'getNFNSSIRIC-configdb-response.['+ $idy +'].gNBDUList['+ $id-du +'].cellDUList['+ $id-celldu +'].pLMNInfoList['+$id-duplmn+'].sNSSAI_length'`\" />",
+ "comments": "",
+ "outputs": 1,
+ "x": 2392.0000038146973,
+ "y": 1914.2500222921371,
+ "z": "f3e1d289.cac95",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "395b9043.c9bc8",
+ "type": "for",
+ "name": "foreach snssai",
+ "xml": "<for index='id-dunssai' start='0' end='`$tmp.snssaiListdu_length`' >\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2400.0000038146973,
+ "y": 1954.2500222921371,
+ "z": "f3e1d289.cac95",
+ "wires": [
+ [
+ "91d81bff.ebc588"
+ ]
+ ]
+ },
+ {
+ "id": "91d81bff.ebc588",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 2593.2500038146973,
+ "y": 1956.7500222921371,
+ "z": "f3e1d289.cac95",
+ "wires": [
+ [
+ "d406860f.792db8",
+ "13435487.dbdebb",
+ "7b0ddb79.15c6c4"
+ ]
+ ]
+ },
+ {
+ "id": "ab6a6808.280548",
+ "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/activateRANSlice.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"CUUP - snssaiList_length\"/>\n<parameter name=\"field2\" value=\"`$tmp.snssaiListup_length`\"/>\n\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2004.2500038146973,
+ "y": 1440.7500222921371,
+ "z": "f3e1d289.cac95",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "116c7858.aac138",
+ "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/activateRANSlice.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"URL to fetch the anchors\"/>\n<parameter name=\"field2\" value=\"`$tmp.getAnchors.URL`\"/>",
+ "comments": "",
+ "outputs": 1,
+ "x": 766.694501876831,
+ "y": 914.7500705718994,
+ "z": "f3e1d289.cac95",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "f7cfb69b.9c27d8",
+ "type": "execute",
+ "name": "getAnchors URL",
+ "xml": "<set>\n\t<parameter name='tmp.getAnchors.URL' value=\"`$prop.restapi.cps.anchors.endpoint`\"/>\n\t",
+ "comments": "",
+ "outputs": 1,
+ "x": 795.9444618225098,
+ "y": 877.5000705718994,
+ "z": "f3e1d289.cac95",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "d7780e63.dfef7",
+ "type": "execute",
+ "name": "set anchors size",
+ "xml": "<set>\n\t<parameter name='tmp.anchors.length' value=\"`$get-anchors-cps-response._length`\"/>\n\t",
+ "comments": "",
+ "outputs": 1,
+ "x": 787.8490180969238,
+ "y": 993.8210067749023,
+ "z": "f3e1d289.cac95",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "4fdac4df.8afdcc",
+ "type": "execute",
+ "name": "read schemaSet",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'>\n\t<parameter name='outputPath' value='tmp.schemaset.name' />\n\t<parameter name='source' value=\"`'get-anchors-cps-response.['+$anc+'].schemaSetName'`\" />\n\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1103.8489074707031,
+ "y": 1025.709882736206,
+ "z": "f3e1d289.cac95",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "940dfe19.cae3c",
+ "type": "execute",
+ "name": "initialize nearRTRIC size",
+ "xml": "<set>\n\t<parameter name='tmp.RIC.length' value=\"0\"/>\n\t",
+ "comments": "",
+ "outputs": 1,
+ "x": 812.0464057922363,
+ "y": 1038.4876747131348,
+ "z": "f3e1d289.cac95",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "cc77fe2f.74da4",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 708.0000038146973,
+ "y": 1173.000020980835,
+ "z": "f3e1d289.cac95",
+ "wires": [
+ [
+ "dbbdba44.c73298",
+ "e61e92b2.75535"
+ ]
+ ]
+ },
+ {
+ "id": "44798c38.c2c674",
+ "type": "execute",
+ "name": "read anchorName",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'>\n\t<parameter name='outputPath' value='tmp.anchor.name' />\n\t<parameter name='source' value=\"`'get-anchors-cps-response.['+$anc+'].name'`\" />",
+ "comments": "",
+ "outputs": 1,
+ "x": 1579.555721282959,
+ "y": 1155.7779512405396,
+ "z": "f3e1d289.cac95",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "f07e8ef0.f0f35",
+ "type": "for",
+ "name": "For anchorsList",
+ "xml": "<for index='anc' start='0' end='`$tmp.anchors.length`'>",
+ "comments": "",
+ "outputs": 1,
+ "x": 604.2962989807129,
+ "y": 1110.7778148651123,
+ "z": "f3e1d289.cac95",
+ "wires": [
+ [
+ "b2c62c0d.d023c"
+ ]
+ ]
+ },
+ {
+ "id": "b2c62c0d.d023c",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 793.1851692199707,
+ "y": 1108.5555610656738,
+ "z": "f3e1d289.cac95",
+ "wires": [
+ [
+ "f3696963.b06c68",
+ "4fdac4df.8afdcc"
+ ]
+ ]
+ },
+ {
+ "id": "f3696963.b06c68",
+ "type": "switchNode",
+ "name": "check schemaSetName",
+ "xml": "<switch test='`$tmp.schemaset.name`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1048.333438873291,
+ "y": 1099.5555992126465,
+ "z": "f3e1d289.cac95",
+ "wires": [
+ [
+ "b676b7ef.fd2e18"
+ ]
+ ]
+ },
+ {
+ "id": "b676b7ef.fd2e18",
+ "type": "outcome",
+ "name": "if ran-network",
+ "xml": "<outcome value='ran-network'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1248.8889503479004,
+ "y": 1099.7778778076172,
+ "z": "f3e1d289.cac95",
+ "wires": [
+ [
+ "a0c159cc.1c8a68"
+ ]
+ ]
+ },
+ {
+ "id": "a0c159cc.1c8a68",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 1436.6914291381836,
+ "y": 1096.1111793518066,
+ "z": "f3e1d289.cac95",
+ "wires": [
+ [
+ "1ff22c13.6ba054",
+ "e0f9f75a.d90ee8"
+ ]
+ ]
+ },
+ {
+ "id": "1ff22c13.6ba054",
+ "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/activateRANSlice.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"Applicable RIC length\"/>\n<parameter name=\"field2\" value=\"`$tmp.RIC.length`\"/>",
+ "comments": "",
+ "outputs": 1,
+ "x": 1625.6049156188965,
+ "y": 1109.66676902771,
+ "z": "f3e1d289.cac95",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "e61e92b2.75535",
+ "type": "switchNode",
+ "name": "check schemaSetName",
+ "xml": "<switch test='`$tmp.schemaset.name`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 947.3826942443848,
+ "y": 1188.6790752410889,
+ "z": "f3e1d289.cac95",
+ "wires": [
+ [
+ "cfdb45e5.210c98"
+ ]
+ ]
+ },
+ {
+ "id": "dbbdba44.c73298",
+ "type": "execute",
+ "name": "read schemaSet",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'>\n\t<parameter name='outputPath' value='tmp.schemaset.name' />\n\t<parameter name='source' value=\"`'get-anchors-cps-response.['+$anc+'].schemaSetName'`\" />\n\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 945.160457611084,
+ "y": 1148.679048538208,
+ "z": "f3e1d289.cac95",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "cfdb45e5.210c98",
+ "type": "outcome",
+ "name": "if ran-network",
+ "xml": "<outcome value='ran-network'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1184.9382820129395,
+ "y": 1168.9013404846191,
+ "z": "f3e1d289.cac95",
+ "wires": [
+ [
+ "6ef0fef5.bd25a"
+ ]
+ ]
+ },
+ {
+ "id": "6ef0fef5.bd25a",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 1371.0741233825684,
+ "y": 1156.123507976532,
+ "z": "f3e1d289.cac95",
+ "wires": [
+ [
+ "44798c38.c2c674",
+ "fa6eb99.0705648"
+ ]
+ ]
+ },
+ {
+ "id": "23542b05.dc2d04",
+ "type": "for",
+ "name": "For anchorsList",
+ "xml": "<for index='anc' start='0' end='`$tmp.anchors.length`'>",
+ "comments": "",
+ "outputs": 1,
+ "x": 495.0622901916504,
+ "y": 1175.845754623413,
+ "z": "f3e1d289.cac95",
+ "wires": [
+ [
+ "cc77fe2f.74da4"
+ ]
+ ]
+ },
+ {
+ "id": "e0f9f75a.d90ee8",
+ "type": "execute",
+ "name": "set nearRTRIC size",
+ "xml": "<set>\n\t<parameter name='tmp.RIC.length' value=\"`$tmp.RIC.length+1`\"/>\n\t",
+ "comments": "",
+ "outputs": 1,
+ "x": 1641.6623344421387,
+ "y": 1068.8457717895508,
+ "z": "f3e1d289.cac95",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "fa6eb99.0705648",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 358.0000801086426,
+ "y": 1332.0000438690186,
+ "z": "f3e1d289.cac95",
+ "wires": [
+ [
+ "13083ff9.9ba0e",
+ "c73b13b7.6457f",
+ "a89d60f9.b3afd",
+ "58956a6f.0dc844",
+ "936c36c7.351c48",
+ "4fb00909.42b0e8",
+ "fb96c84e.999d28",
+ "324af10d.a689ce",
+ "ccfe8154.aca67",
+ "da661827.9a24e8",
+ "70f4b332.3f67bc",
+ "1636d37a.32239d",
+ "e1689a9d.e9a138"
+ ]
+ ]
+ },
+ {
+ "id": "13083ff9.9ba0e",
+ "type": "execute",
+ "name": "generate getNearRTRICsFromRANNFNSSI URL",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$prop.restapi.cps.tbdmt.execute.endpoint`\"/>\n <parameter name=\"outputPath\" value=\"tmp.cps.getNearRTRICByNSSI.url\"/>\n <parameter name=\"target\" value=\"{schemaSet}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.anchor.name`\"/>",
+ "comments": "",
+ "outputs": 1,
+ "x": 714.0000038146973,
+ "y": 1251.0000438690186,
+ "z": "f3e1d289.cac95",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "c73b13b7.6457f",
+ "type": "execute",
+ "name": "prepare tbdmt template",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$tmp.cps.getNearRTRICByNSSI.url`\"/>\n <parameter name=\"outputPath\" value=\"tmp.cps.getNearRTRICByNSSI.url\"/>\n <parameter name=\"target\" value=\"{templateId}\"/>\n <parameter name=\"replacement\" value=\"`$prop.tbdmt.template.get-nearrtric-by-rannfnssi`\"/>",
+ "comments": "",
+ "outputs": 1,
+ "x": 634.000057220459,
+ "y": 1293.0000448226929,
+ "z": "f3e1d289.cac95",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "a89d60f9.b3afd",
+ "type": "record",
+ "name": "record TBDMT RestAPI params",
+ "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.FileRecorder\">\n<parameter name=\"file\" value=\"/opt/opendaylight/current/data/log/activateRANSlice.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"URL for CPS TDBMT to Get NearRTRIC for RANNFNSSI\"/>\n<parameter name='field2' value=\"`$tmp.cps.getNearRTRICByNSSI.url`\" />",
+ "comments": "",
+ "outputs": 1,
+ "x": 661.0000190734863,
+ "y": 1334.0000457763672,
+ "z": "f3e1d289.cac95",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "58956a6f.0dc844",
+ "type": "execute",
+ "name": "Get nearRTRIC for RANNFNSSIId",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"restapiUrl\" value=\"`$tmp.cps.getNearRTRICByNSSI.url`\"/>\n<parameter name=\"templateFileName\" value=\"`$prop.restapi.templateDir + '/cps-templates/cps-get-nearrtric-by-rannfnssi.json'`\" />\n<parameter name=\"httpMethod\" value=\"POST\"/>\n<parameter name=\"responsePrefix\" value=\"getNFNSSIRIC-cps-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": 660.9999580383301,
+ "y": 1379.0000476837158,
+ "z": "f3e1d289.cac95",
+ "wires": [
+ [
+ "34d78223.0c58ce",
+ "fdf4ad99.2cfdf"
+ ]
+ ]
+ },
+ {
+ "id": "936c36c7.351c48",
+ "type": "execute",
+ "name": "generate plmnid URL cps",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$prop.restapi.cps.tbdmt.execute.endpoint`\"/>\n <parameter name=\"outputPath\" value=\"tmp.cps.getPLMNID.url\"/>\n <parameter name=\"target\" value=\"{schemaSet}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.schemaset.name`\"/>",
+ "comments": "",
+ "outputs": 1,
+ "x": 629.0000190734863,
+ "y": 1418.400113105774,
+ "z": "f3e1d289.cac95",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "4fb00909.42b0e8",
+ "type": "execute",
+ "name": "prepare tbdmt template",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$tmp.cps.getPLMNID.url`\"/>\n <parameter name=\"outputPath\" value=\"tmp.cps.getPLMNID.url\"/>\n <parameter name=\"target\" value=\"{templateId}\"/>\n <parameter name=\"replacement\" value=\"`$prop.tbdmt.template.getmcc`\"/>",
+ "comments": "",
+ "outputs": 1,
+ "x": 626.0000190734863,
+ "y": 1457.0000495910645,
+ "z": "f3e1d289.cac95",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "fb96c84e.999d28",
+ "type": "record",
+ "name": "record TBDMT RestAPI params",
+ "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.FileRecorder\">\n<parameter name=\"file\" value=\"/opt/opendaylight/current/data/log/activateRANSlice.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"URL for CPS TDBMT to Get plmnid from sliceprofile\"/>\n<parameter name='field2' value=\"`$tmp.cps.getPLMNID.url`\" />",
+ "comments": "",
+ "outputs": 1,
+ "x": 648.0000190734863,
+ "y": 1499.2000827789307,
+ "z": "f3e1d289.cac95",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "324af10d.a689ce",
+ "type": "execute",
+ "name": "Get PLMNMCCID from sliceprofileID",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"restapiUrl\" value=\"`$tmp.cps.getPLMNID.url`\"/>\n<parameter name=\"templateFileName\" value=\"`$prop.restapi.templateDir + '/cps-templates/cps-get-plmnid.json'`\" />\n<parameter name=\"httpMethod\" value=\"POST\"/>\n<parameter name=\"responsePrefix\" value=\"getplmnmccid-cps-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": 659.0001029968262,
+ "y": 1538.2000007629395,
+ "z": "f3e1d289.cac95",
+ "wires": [
+ [
+ "9b979001.e19ea",
+ "91ce8e96.7b954"
+ ]
+ ]
+ },
+ {
+ "id": "da661827.9a24e8",
+ "type": "execute",
+ "name": "prepare tbdmt template",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$tmp.cps.getPLMNMNCID.url`\"/>\n <parameter name=\"outputPath\" value=\"tmp.cps.getPLMNMNCID.url\"/>\n <parameter name=\"target\" value=\"{templateId}\"/>\n <parameter name=\"replacement\" value=\"`$prop.tbdmt.template.get-plmnmncid-from-sliceprofile`\"/>",
+ "comments": "",
+ "outputs": 1,
+ "x": 623.8000144958496,
+ "y": 1621.0000534057617,
+ "z": "f3e1d289.cac95",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "70f4b332.3f67bc",
+ "type": "record",
+ "name": "record TBDMT RestAPI params",
+ "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.FileRecorder\">\n<parameter name=\"file\" value=\"/opt/opendaylight/current/data/log/activateRANSlice.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"URL for CPS TDBMT to Get plmnid from sliceprofile\"/>\n<parameter name='field2' value=\"`$tmp.cps.getPLMNMNCID.url`\" />",
+ "comments": "",
+ "outputs": 1,
+ "x": 633.8000144958496,
+ "y": 1661.200086593628,
+ "z": "f3e1d289.cac95",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "1636d37a.32239d",
+ "type": "execute",
+ "name": "Get PLMNMNCID from sliceprofileID",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"restapiUrl\" value=\"`$tmp.cps.getPLMNMNCID.url`\"/>\n<parameter name=\"templateFileName\" value=\"`$prop.restapi.templateDir + '/cps-templates/cps-get-plmnid.json'`\" />\n<parameter name=\"httpMethod\" value=\"POST\"/>\n<parameter name=\"responsePrefix\" value=\"getplmnmncid-cps-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": 656.8000068664551,
+ "y": 1718.2000064849854,
+ "z": "f3e1d289.cac95",
+ "wires": [
+ [
+ "d00daa63.3b6d68",
+ "a3771879.f87528"
+ ]
+ ]
+ },
+ {
+ "id": "ccfe8154.aca67",
+ "type": "execute",
+ "name": "generate plmnid URL cps",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$prop.restapi.cps.tbdmt.execute.endpoint`\"/>\n <parameter name=\"outputPath\" value=\"tmp.cps.getPLMNMNCID.url\"/>\n <parameter name=\"target\" value=\"{schemaSet}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.schemaset.name`\"/>",
+ "comments": "",
+ "outputs": 1,
+ "x": 623.0000038146973,
+ "y": 1580.4001178741455,
+ "z": "f3e1d289.cac95",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "91ce8e96.7b954",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 945.0000267028809,
+ "y": 1536.0000495910645,
+ "z": "f3e1d289.cac95",
+ "wires": [
+ [
+ "3bcccbe.161eb34"
+ ]
+ ]
+ },
+ {
+ "id": "3bcccbe.161eb34",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 1107.8888778686523,
+ "y": 1516.8889636993408,
+ "z": "f3e1d289.cac95",
+ "wires": [
+ [
+ "98958a16.366c78",
+ "ee434a02.367d08",
+ "71f9eb9e.acfe74"
+ ]
+ ]
+ },
+ {
+ "id": "98958a16.366c78",
+ "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/activateRANSlice.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"Successfully Obtained MCC info from CPS\"/>\n<parameter name=\"field2\" value=\"`$getplmnmccid-cps-response.httpResponse`\"/>",
+ "comments": "",
+ "outputs": 1,
+ "x": 1332.0001983642578,
+ "y": 1425.0000486373901,
+ "z": "f3e1d289.cac95",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "9b979001.e19ea",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 954.7778167724609,
+ "y": 1469.1111392974854,
+ "z": "f3e1d289.cac95",
+ "wires": [
+ [
+ "bfe4df7a.0da4b"
+ ]
+ ]
+ },
+ {
+ "id": "bfe4df7a.0da4b",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 1181.0000228881836,
+ "y": 1386.0000467300415,
+ "z": "f3e1d289.cac95",
+ "wires": [
+ [
+ "50b582ea.3d097c"
+ ]
+ ]
+ },
+ {
+ "id": "50b582ea.3d097c",
+ "type": "set",
+ "name": "set",
+ "xml": "<set>\n<parameter name='error-code' value='500'/>\n<parameter name='error-message' value='Error Getting Info from CPS. Aborting RPC executiopn'/>",
+ "comments": "",
+ "x": 1387.5555686950684,
+ "y": 1380.8889083862305,
+ "z": "f3e1d289.cac95",
+ "wires": []
+ },
+ {
+ "id": "ee434a02.367d08",
+ "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/activateRANSlice.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"plmn mcc value\"/>\n<parameter name=\"field2\" value=\"`$tmp.plmn.mcc`\"/>",
+ "comments": "",
+ "outputs": 1,
+ "x": 1341.4447555541992,
+ "y": 1515.5779647827148,
+ "z": "f3e1d289.cac95",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "71f9eb9e.acfe74",
+ "type": "execute",
+ "name": "read nearRTRICId-PLMN",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'>\n\t<parameter name='outputPath' value='tmp.plmn.mcc' />\n\t<parameter name='source' value=\"`'getplmnmccid-cps-response.[0]'`\" />\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1386.7114791870117,
+ "y": 1477.8665885925293,
+ "z": "f3e1d289.cac95",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "a3771879.f87528",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 892.000186920166,
+ "y": 1747.0000562667847,
+ "z": "f3e1d289.cac95",
+ "wires": [
+ [
+ "1b4d1194.6bc91e"
+ ]
+ ]
+ },
+ {
+ "id": "1b4d1194.6bc91e",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 1062.2224426269531,
+ "y": 1753.7778301239014,
+ "z": "f3e1d289.cac95",
+ "wires": [
+ [
+ "fac57686.038168",
+ "58af5240.0f96cc",
+ "7785af20.f9a24"
+ ]
+ ]
+ },
+ {
+ "id": "fac57686.038168",
+ "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/activateRANSlice.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"Successfully Obtained plmnmnc info from Cps\"/>\n<parameter name=\"field2\" value=\"`$getplmnid-cps-response`\"/>",
+ "comments": "",
+ "outputs": 1,
+ "x": 1303.9998779296875,
+ "y": 1676.0002975463867,
+ "z": "f3e1d289.cac95",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "d00daa63.3b6d68",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 891.9999465942383,
+ "y": 1698.000051498413,
+ "z": "f3e1d289.cac95",
+ "wires": [
+ [
+ "f8094fa5.8b02d"
+ ]
+ ]
+ },
+ {
+ "id": "f8094fa5.8b02d",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 1026.0001106262207,
+ "y": 1678.0000534057617,
+ "z": "f3e1d289.cac95",
+ "wires": [
+ [
+ "bf121d2e.6ec78"
+ ]
+ ]
+ },
+ {
+ "id": "bf121d2e.6ec78",
+ "type": "set",
+ "name": "set",
+ "xml": "<set>\n<parameter name='error-code' value='500'/>\n<parameter name='error-message' value='Error Getting Info from CPS. Aborting RPC executiopn'/>",
+ "comments": "",
+ "x": 1163.999870300293,
+ "y": 1655.0000524520874,
+ "z": "f3e1d289.cac95",
+ "wires": []
+ },
+ {
+ "id": "58af5240.0f96cc",
+ "type": "execute",
+ "name": "read nearRTRICId-PLMN",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'>\n\t<parameter name='outputPath' value='tmp.plmn.mnc' />\n\t<parameter name='source' value=\"`'getplmnmncid-cps-response.[0]'`\" />\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1293.5999717712402,
+ "y": 1726.8001041412354,
+ "z": "f3e1d289.cac95",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "7785af20.f9a24",
+ "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/activateRANSlice.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"plmn mnc value\"/>\n<parameter name=\"field2\" value=\"`$tmp.plmn.mnc`\"/>",
+ "comments": "",
+ "outputs": 1,
+ "x": 1271.5999717712402,
+ "y": 1776.2000885009766,
+ "z": "f3e1d289.cac95",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "10de8a80.d7e346",
+ "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/activateRANSlice.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"Successfully Obtained NearRT RIC info from CPS\"/>\n<parameter name=\"field2\" value=\"`$getNFNSSIRIC-cps-response._length`\"/>",
+ "comments": "",
+ "outputs": 1,
+ "x": 1476.0000495910645,
+ "y": 1287.0000400543213,
+ "z": "f3e1d289.cac95",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "f7e28921.7b5d18",
+ "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-terminateRANSlice-configrsp-context.log' />\n\n\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1490.7780456542969,
+ "y": 1329.0002040863037,
+ "z": "f3e1d289.cac95",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "3f7b61b1.4ea72e",
+ "type": "set",
+ "name": "set",
+ "xml": "<set>\n<parameter name='error-code' value='500'/>\n<parameter name='error-message' value='Error Getting Info from CPS. Aborting RPC executiopn'/>",
+ "comments": "",
+ "x": 1520.0002174377441,
+ "y": 1223.1111240386963,
+ "z": "f3e1d289.cac95",
+ "wires": []
+ },
+ {
+ "id": "ab179ac7.711488",
+ "type": "execute",
+ "name": "read sliceProfileId from input",
+ "xml": "<set>\n<parameter name='tmp.sliceprofileid' value=\"`$payloadJson.input.sliceProfileId`\" />",
+ "comments": "",
+ "outputs": 1,
+ "x": 1097.8333740234375,
+ "y": 704.3333640098572,
+ "z": "f3e1d289.cac95",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "40671fa8.d6f66",
+ "type": "execute",
+ "name": "read RANNFNSSIId from input",
+ "xml": "<set>\n<parameter name='tmp.payload.RANNFNSSIId' value=\"`$payloadJson.input.RANNFNSSIId`\" />\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1105.8333740234375,
+ "y": 739.3333654403687,
+ "z": "f3e1d289.cac95",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "f46e9a3e.486758",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1061.5556201934814,
+ "y": 895.5555973052979,
+ "z": "f3e1d289.cac95",
+ "wires": [
+ [
+ "89d2a8b7.399f48"
+ ]
+ ]
+ },
+ {
+ "id": "26dde326.819b2c",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1058.05570602417,
+ "y": 979.5000038146973,
+ "z": "f3e1d289.cac95",
+ "wires": [
+ [
+ "d69340f3.62264"
+ ]
+ ]
+ },
+ {
+ "id": "89d2a8b7.399f48",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 1243.7501068115234,
+ "y": 895.6667747497559,
+ "z": "f3e1d289.cac95",
+ "wires": [
+ [
+ "b3d2ffd9.729d1",
+ "34ea2449.16afcc"
+ ]
+ ]
+ },
+ {
+ "id": "d69340f3.62264",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 1233.5000076293945,
+ "y": 980.1667022705078,
+ "z": "f3e1d289.cac95",
+ "wires": [
+ [
+ "e848df1a.2a5c9",
+ "eef6716a.ea024"
+ ]
+ ]
+ },
+ {
+ "id": "b3d2ffd9.729d1",
+ "type": "set",
+ "name": "set",
+ "xml": "<set>\n<parameter name='error-code' value='500'/>\n<parameter name='error-message' value='Error Getting Info from CPS. Aborting RPC executiopn'/>",
+ "comments": "",
+ "x": 1401.2775535583496,
+ "y": 854.4999933242798,
+ "z": "f3e1d289.cac95",
+ "wires": []
+ },
+ {
+ "id": "e848df1a.2a5c9",
+ "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/activateRANSlice.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"Successfully Obtained anchors from CPS\"/>\n<parameter name=\"field2\" value=\"`$get-anchors-cps-response._length`\"/>",
+ "comments": "",
+ "outputs": 1,
+ "x": 1435.2497177124023,
+ "y": 971.9167518615723,
+ "z": "f3e1d289.cac95",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "eef6716a.ea024",
+ "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-modifyallocate-cps-context.log' />",
+ "comments": "",
+ "outputs": 1,
+ "x": 1470.0279388427734,
+ "y": 1027.1667518615723,
+ "z": "f3e1d289.cac95",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "34ea2449.16afcc",
+ "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/activateRANSlice.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"Failed to fetch anchors from CPS\"/>",
+ "comments": "",
+ "outputs": 1,
+ "x": 1420.0834884643555,
+ "y": 928.5278301239014,
+ "z": "f3e1d289.cac95",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "3c2d99e7.498126",
+ "type": "execute",
+ "name": "Get list of anchors from CPS",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"restapiUrl\" value=\"`$tmp.getAnchors.URL`\"/>\n<parameter name=\"httpMethod\" value=\"GET\"/>\n<parameter name=\"restapiUser\" value=\"cpsuser\" />\n<parameter name=\"restapiPassword\" value=\"cpsr0cks!\"/>\n<parameter name=\"responsePrefix\" value=\"get-anchors-cps-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": 813.0000190734863,
+ "y": 953.6666889190674,
+ "z": "f3e1d289.cac95",
+ "wires": [
+ [
+ "26dde326.819b2c",
+ "f46e9a3e.486758"
+ ]
+ ]
+ },
+ {
+ "id": "e1689a9d.e9a138",
+ "type": "set",
+ "name": "set mcc & mnc Variables",
+ "xml": "<set>\n<parameter name='tmp.mcc' value='`$tmp.plmn.mcc`'/>\n<parameter name='tmp.mnc' value='`$tmp.plmn.mnc`'/>",
+ "comments": "",
+ "x": 615.4610137939453,
+ "y": 1775.3667078018188,
+ "z": "f3e1d289.cac95",
+ "wires": []
+ }
+] \ No newline at end of file
diff --git a/platform-logic/ran-slice-api/src/main/json/ran-slice-api_activateRANSliceInstance.json b/platform-logic/ran-slice-api/src/main/json/ran-slice-api_activateRANSliceInstance.json
index ffa203f9..5460fa8f 100644
--- a/platform-logic/ran-slice-api/src/main/json/ran-slice-api_activateRANSliceInstance.json
+++ b/platform-logic/ran-slice-api/src/main/json/ran-slice-api_activateRANSliceInstance.json
@@ -1,3079 +1,219 @@
-[
- {
- "id": "7e7f57f9.68d4a8",
- "type": "dgstart",
- "name": "DGSTART",
- "outputs": 1,
- "x": 173.75,
- "y": 113.99999868869781,
- "z": "c2a8a65f.f4fdf8",
- "wires": [
- [
- "e0a548b9.052988"
- ]
- ]
- },
- {
- "id": "e0a548b9.052988",
- "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": 258.7500228881836,
- "y": 180.9999681711197,
- "z": "c2a8a65f.f4fdf8",
- "wires": [
- [
- "a75312a.544d3f"
- ]
- ]
- },
- {
- "id": "a75312a.544d3f",
- "type": "method",
- "name": "method",
- "xml": "<method rpc='activateRANSliceInstance' mode='sync'>\n",
- "comments": "",
- "outputs": 1,
- "x": 192.75,
- "y": 240.9999338388443,
- "z": "c2a8a65f.f4fdf8",
- "wires": [
- [
- "ca025241.dabb2"
- ]
- ]
- },
- {
- "id": "ca025241.dabb2",
- "type": "block",
- "name": "block : atomic",
- "xml": "<block atomic='true'>",
- "atomic": "true",
- "comments": "",
- "outputs": 1,
- "x": 215.2500114440918,
- "y": 321.5000025033951,
- "z": "c2a8a65f.f4fdf8",
- "wires": [
- [
- "a8976ed2.1843f",
- "ea5daf11.a6e81",
- "a2693dc1.a5517",
- "eea21e4d.c1324",
- "321cec92.0945e4",
- "15bab992.f28f76",
- "414370ce.8928c",
- "2f0812f8.b4db6e",
- "ad2fd587.1bd148",
- "810a8bcc.d27738",
- "c1737e13.d4add",
- "b7134c47.dc4b9",
- "66c6e126.b5c0e",
- "1bdc1194.f7cbee",
- "ba7f558f.10b808",
- "c6c21f7.66307e",
- "d112a202.14d86",
- "cebd9071.34ebd",
- "1cb02382.300dbc",
- "9643217e.8cc45",
- "5841dea.bd55b2"
- ]
- ]
- },
- {
- "id": "a8976ed2.1843f",
- "type": "execute",
- "name": "generate getNearRTRICsFromRANNFNSSI URL",
- "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$prop.restapi.configdb.getNearRTRICByNSSI`\"/>\n <parameter name=\"outputPath\" value=\"tmp.configdb.getNearRTRICByNSSI.url\"/>\n <parameter name=\"target\" value=\"{ranNFNSSIId}\"/>\n <parameter name=\"replacement\" value=\"`$payloadJson.input.RANNFNSSIId`\"/>",
- "comments": "",
- "outputs": 1,
- "x": 797.0000610351562,
- "y": 516.694458603859,
- "z": "c2a8a65f.f4fdf8",
- "wires": [
- []
- ]
- },
- {
- "id": "ea5daf11.a6e81",
- "type": "record",
- "name": "record configdb RestAPI params",
- "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.FileRecorder\">\n<parameter name=\"file\" value=\"/opt/opendaylight/current/data/log/activateRANSlice.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"URL for configDB to Get NearRTRIC for RANNFNSSI\"/>\n<parameter name='field2' value=\"`$prop.configdb.url + $tmp.configdb.getNearRTRICByNSSI.url`\" />\n<parameter name='field3' value=\"`$ranNFNSSIId`\" />",
- "comments": "",
- "outputs": 1,
- "x": 737.0000152587891,
- "y": 553.2500258684158,
- "z": "c2a8a65f.f4fdf8",
- "wires": [
- []
- ]
- },
- {
- "id": "a2693dc1.a5517",
- "type": "execute",
- "name": "Get nearRTRIC for NFNSSI",
- "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"restapiUrl\" value=\"`$prop.configdb.url + $tmp.configdb.getNearRTRICByNSSI.url`\"/>\n<parameter name=\"httpMethod\" value=\"GET\"/>\n<parameter name=\"responsePrefix\" value=\"getNFNSSIRIC-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": 727.0000915527344,
- "y": 605.250056385994,
- "z": "c2a8a65f.f4fdf8",
- "wires": [
- [
- "78009660.f04068",
- "afb10f5f.82d4a"
- ]
- ]
- },
- {
- "id": "78009660.f04068",
- "type": "success",
- "name": "success",
- "xml": "<outcome value='success'>\n",
- "comments": "",
- "outputs": 1,
- "x": 1025.8180961608887,
- "y": 623.0680800676346,
- "z": "c2a8a65f.f4fdf8",
- "wires": [
- [
- "6e5d0b68.fb3eb4"
- ]
- ]
- },
- {
- "id": "6e5d0b68.fb3eb4",
- "type": "block",
- "name": "block : atomic",
- "xml": "<block atomic='true'>",
- "atomic": "true",
- "comments": "",
- "outputs": 1,
- "x": 1195.8179931640625,
- "y": 624.0681954622269,
- "z": "c2a8a65f.f4fdf8",
- "wires": [
- [
- "a5285567.465e58",
- "a50018dd.454668"
- ]
- ]
- },
- {
- "id": "a5285567.465e58",
- "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/activateRANSlice.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"Successfully Obtained NearRT RIC info from ConfigDB\"/>\n<parameter name=\"field2\" value=\"`$getNFNSSIRIC-configdb-response._length`\"/>",
- "comments": "",
- "outputs": 1,
- "x": 1418.8177909851074,
- "y": 569.0681792497635,
- "z": "c2a8a65f.f4fdf8",
- "wires": [
- []
- ]
- },
- {
- "id": "a50018dd.454668",
- "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-activateRANSlice-context.log' />\n\n\n",
- "comments": "",
- "outputs": 1,
- "x": 1414.595932006836,
- "y": 640.068186879158,
- "z": "c2a8a65f.f4fdf8",
- "wires": [
- []
- ]
- },
- {
- "id": "afb10f5f.82d4a",
- "type": "failure",
- "name": "failure",
- "xml": "<outcome value='failure'>\n",
- "comments": "",
- "outputs": 1,
- "x": 1031.8180503845215,
- "y": 563.0681639909744,
- "z": "c2a8a65f.f4fdf8",
- "wires": [
- [
- "5c56eeae.73a1c"
- ]
- ]
- },
- {
- "id": "5c56eeae.73a1c",
- "type": "block",
- "name": "block",
- "xml": "<block>",
- "atomic": "false",
- "comments": "",
- "outputs": 1,
- "x": 1311.8181266784668,
- "y": 469.0682178735733,
- "z": "c2a8a65f.f4fdf8",
- "wires": [
- [
- "94237ecf.f5aa3",
- "538f7285.97feac"
- ]
- ]
- },
- {
- "id": "94237ecf.f5aa3",
- "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": 1489.81791305542,
- "y": 423.1792446374893,
- "z": "c2a8a65f.f4fdf8",
- "wires": []
- },
- {
- "id": "eea21e4d.c1324",
- "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/activateRANSlice.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"RPC to handle activateRANSlice.: \"/>\n<parameter name=\"field2\" value=\"`$activate-r-a-n-slice-instance-input.action`\"/>\n<parameter name=\"field3\" value=\"`$activate-r-a-n-slice-instance-input.timestamp`\"/>\n<parameter name=\"field4\" value=\"`$activate-r-a-n-slice-instance-input.common-header.request-id`\"/>\n<parameter name=\"field5\" value=\"`$activate-r-a-n-slice-instance-input.common-header.originator-id`\"/>\n<parameter name=\"field6\" value=\"RPC Payload String \"/>\n<parameter name=\"field7\" value=\"`$activate-r-a-n-slice-instance-input.payload`\"/>",
- "comments": "",
- "outputs": 1,
- "x": 701.75,
- "y": 129.99998533725739,
- "z": "c2a8a65f.f4fdf8",
- "wires": [
- []
- ]
- },
- {
- "id": "321cec92.0945e4",
- "type": "set",
- "name": "set default status value",
- "xml": "<set>\n<parameter name='error-code' value='200' />\n<parameter name='error-message' value='Successful execution of activateRANSice RPC' />",
- "comments": "",
- "x": 740.749755859375,
- "y": 172.9999977350235,
- "z": "c2a8a65f.f4fdf8",
- "wires": []
- },
- {
- "id": "15bab992.f28f76",
- "type": "execute",
- "name": "execute jsonStringToCtx",
- "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='jsonStringToCtx'>\n\t<parameter name='source' value='activate-r-a-n-slice-instance-input.payload' />\n\t<parameter name='outputPath' value='payloadJson' />\n\t<parameter name='isEscaped' value='false' />",
- "comments": "",
- "outputs": 1,
- "x": 745.7497711181641,
- "y": 217.74998342990875,
- "z": "c2a8a65f.f4fdf8",
- "wires": [
- [
- "61d81fc8.9d5af"
- ]
- ]
- },
- {
- "id": "414370ce.8928c",
- "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-activateRANSlice-context.log' />\n\n\n",
- "comments": "",
- "outputs": 1,
- "x": 705.3886184692383,
- "y": 306.73953688144684,
- "z": "c2a8a65f.f4fdf8",
- "wires": [
- []
- ]
- },
- {
- "id": "2f0812f8.b4db6e",
- "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": 734.2775650024414,
- "y": 347.74996054172516,
- "z": "c2a8a65f.f4fdf8",
- "wires": [
- []
- ]
- },
- {
- "id": "ad2fd587.1bd148",
- "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/activateRANSlice.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": 703.3332805633545,
- "y": 393.1944776773453,
- "z": "c2a8a65f.f4fdf8",
- "wires": [
- []
- ]
- },
- {
- "id": "61d81fc8.9d5af",
- "type": "other",
- "name": "success",
- "xml": "<outcome value='success'>\n",
- "comments": "",
- "outputs": 1,
- "x": 1012.2497825622559,
- "y": 219.74997293949127,
- "z": "c2a8a65f.f4fdf8",
- "wires": [
- [
- "fd6d7e63.3837"
- ]
- ]
- },
- {
- "id": "fd6d7e63.3837",
- "type": "block",
- "name": "block : atomic",
- "xml": "<block atomic='true'>",
- "atomic": "true",
- "comments": "",
- "outputs": 1,
- "x": 1212.2499389648438,
- "y": 222.499969124794,
- "z": "c2a8a65f.f4fdf8",
- "wires": [
- [
- "5d3f3b83.b6e944",
- "3a1c4335.62918c"
- ]
- ]
- },
- {
- "id": "5d3f3b83.b6e944",
- "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-activateRANSlice-context.log' />\n\n\n",
- "comments": "",
- "outputs": 1,
- "x": 1402.250015258789,
- "y": 184.0000034570694,
- "z": "c2a8a65f.f4fdf8",
- "wires": [
- []
- ]
- },
- {
- "id": "3a1c4335.62918c",
- "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/activateRANSlice.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"Payload for activateRANSlice.: \"/>\n<parameter name=\"field2\" value=\"`$payloadJson.input.sNSSAI`\"/>\n<parameter name=\"field3\" value=\"`$payloadJson.input.RANNFNSSIId`\"/>\n<parameter name=\"field4\" value=\"`$payloadJson.input.callbackURL`\"/>\n<parameter name=\"field5\" value=\"`$payloadJson.input.sliceProfileId`\"/>\n\n\n",
- "comments": "",
- "outputs": 1,
- "x": 1401.49995803833,
- "y": 248.00001966953278,
- "z": "c2a8a65f.f4fdf8",
- "wires": [
- []
- ]
- },
- {
- "id": "810a8bcc.d27738",
- "type": "for",
- "name": "foreach NearRTRIC",
- "xml": "<for index='idy' start='0' end='`$tmp.RICList_length`' >\n",
- "comments": "",
- "outputs": 1,
- "x": 479.6875915527344,
- "y": 1045.8750158548355,
- "z": "c2a8a65f.f4fdf8",
- "wires": [
- [
- "d1d406d5.b352f8",
- "d3bfcb5d.5e0c68",
- "739e0e6a.a06dc",
- "3d251ba4.ddf994"
- ]
- ]
- },
- {
- "id": "d1d406d5.b352f8",
- "type": "block",
- "name": "Process CUCP",
- "xml": "<block atomic='true'>",
- "atomic": "true",
- "comments": "",
- "outputs": 1,
- "x": 744.9375305175781,
- "y": 1039.3069463968277,
- "z": "c2a8a65f.f4fdf8",
- "wires": [
- [
- "73836647.480298",
- "ddcee4ff.55dbc8",
- "1801b56d.80bfcb"
- ]
- ]
- },
- {
- "id": "73836647.480298",
- "type": "execute",
- "name": "read CUCP list size",
- "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'>\n\t<parameter name='outputPath' value='tmp.CUCPList_length' />\n\t<parameter name='source' value=\"`'getNFNSSIRIC-configdb-response.[' + $idy +'].gNBCUCPList_length'`\" />\n ",
- "comments": "",
- "outputs": 1,
- "x": 1091.187515258789,
- "y": 909.0568548440933,
- "z": "c2a8a65f.f4fdf8",
- "wires": [
- []
- ]
- },
- {
- "id": "ddcee4ff.55dbc8",
- "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/activateRANSlice.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"Number of CUCP List Entries \"/>\n<parameter name=\"field2\" value=\"`$tmp.CUCPList_length`\"/>\n<parameter name=\"field3\" value=\"for the NearRTRIC\"/>\n<parameter name=\"field4\" value=\"`$tmp.nearRTRICId`\"/>\n",
- "comments": "",
- "outputs": 1,
- "x": 1050.6874961853027,
- "y": 956.556932091713,
- "z": "c2a8a65f.f4fdf8",
- "wires": [
- []
- ]
- },
- {
- "id": "1801b56d.80bfcb",
- "type": "for",
- "name": "foreach CUCP",
- "xml": "<for index='idz' start='0' end='`$tmp.CUCPList_length`'>\n",
- "comments": "",
- "outputs": 1,
- "x": 1067.4376220703125,
- "y": 1006.5569328069687,
- "z": "c2a8a65f.f4fdf8",
- "wires": [
- [
- "a3b66ccd.4f09"
- ]
- ]
- },
- {
- "id": "a3b66ccd.4f09",
- "type": "block",
- "name": "block : process CUCP",
- "xml": "<block atomic='true'>",
- "atomic": "true",
- "comments": "",
- "outputs": 1,
- "x": 1278.437515258789,
- "y": 969.8068262338638,
- "z": "c2a8a65f.f4fdf8",
- "wires": [
- [
- "8b472262.56054",
- "201e764e.7a470a",
- "5e82baed.893d74",
- "5851fd1b.cfccc4"
- ]
- ]
- },
- {
- "id": "8b472262.56054",
- "type": "execute",
- "name": "read CUCP name",
- "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'>\n\t<parameter name='outputPath' value='tmp.CUCPName' />\n\t<parameter name='source' value=\"`'getNFNSSIRIC-configdb-response.['+ $idy +'].gNBCUCPList['+ $idz +'].gNBCUName'`\" />",
- "comments": "",
- "outputs": 1,
- "x": 1533.1876068115234,
- "y": 699.8902269601822,
- "z": "c2a8a65f.f4fdf8",
- "wires": [
- []
- ]
- },
- {
- "id": "5e82baed.893d74",
- "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/activateRANSlice.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"CUCPName \"/>\n<parameter name=\"field2\" value=\"`$tmp.CUCPName`\"/>\n\n",
- "comments": "",
- "outputs": 1,
- "x": 1504.937614440918,
- "y": 755.0568376779556,
- "z": "c2a8a65f.f4fdf8",
- "wires": [
- []
- ]
- },
- {
- "id": "5851fd1b.cfccc4",
- "type": "execute",
- "name": "read cellCU list size",
- "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'>\n\t<parameter name='outputPath' value='tmp.cellCUList_length' />\n\t<parameter name='source' value=\"`'getNFNSSIRIC-configdb-response.[' + $idy +'].gNBCUCPList[' + $idz +'].cellCUList_length'`\" />\n ",
- "comments": "",
- "outputs": 1,
- "x": 1542.1875228881836,
- "y": 802.8068529367447,
- "z": "c2a8a65f.f4fdf8",
- "wires": [
- []
- ]
- },
- {
- "id": "201e764e.7a470a",
- "type": "for",
- "name": "for cellCUList",
- "xml": "<for index='idcu' start='0' end='`$tmp.cellCUList_length`' >\n",
- "comments": "",
- "outputs": 1,
- "x": 1517.1874923706055,
- "y": 855.5568681955338,
- "z": "c2a8a65f.f4fdf8",
- "wires": [
- [
- "5ea01a4e.80ba44"
- ]
- ]
- },
- {
- "id": "5ea01a4e.80ba44",
- "type": "block",
- "name": "block",
- "xml": "<block atomic='true'>",
- "atomic": "true",
- "comments": "",
- "outputs": 1,
- "x": 1732.1875343322754,
- "y": 855.8068853616714,
- "z": "c2a8a65f.f4fdf8",
- "wires": [
- [
- "9e3b1dc1.6c61f",
- "f07a1efc.c684b",
- "ec5e5e59.9e151"
- ]
- ]
- },
- {
- "id": "9e3b1dc1.6c61f",
- "type": "execute",
- "name": "read PLMNList size",
- "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'>\n\t<parameter name='outputPath' value='tmp.pLMNInfoList_length' />\n\t<parameter name='source' value=\"`'getNFNSSIRIC-configdb-response.['+ $idy +'].gNBCUCPList['+ $idz +'].cellCUList['+ $idcu +'].pLMNInfoList_length'`\" />",
- "comments": "",
- "outputs": 1,
- "x": 1949.1464233398438,
- "y": 794.459854722023,
- "z": "c2a8a65f.f4fdf8",
- "wires": [
- []
- ]
- },
- {
- "id": "ec5e5e59.9e151",
- "type": "for",
- "name": "foreach PLMNInfo",
- "xml": "<for index='id-cuplmn' start='0' end='`$tmp.pLMNInfoList_length`' >\n",
- "comments": "",
- "outputs": 1,
- "x": 1949.1741485595703,
- "y": 873.6541213989258,
- "z": "c2a8a65f.f4fdf8",
- "wires": [
- [
- "ab10a71a.f0f088"
- ]
- ]
- },
- {
- "id": "ab10a71a.f0f088",
- "type": "block",
- "name": "block : atomic",
- "xml": "<block atomic='true'>",
- "atomic": "true",
- "comments": "",
- "outputs": 1,
- "x": 2156.063056945801,
- "y": 815.4319158792496,
- "z": "c2a8a65f.f4fdf8",
- "wires": [
- [
- "d927155a.039578",
- "74ff916a.e9c5b"
- ]
- ]
- },
- {
- "id": "1c0a37ea.375948",
- "type": "execute",
- "name": "read sNSSAI from getNFNSSIRIC-configdb-response",
- "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'>\n\t<parameter name='outputPath' value='tmp.configDBSNSSAI' />\n\t<parameter name='source' value=\"`'getNFNSSIRIC-configdb-response.['+ $idy +'].gNBCUCPList['+ $idz +'].cellCUList['+ $idcu +'].pLMNInfoList['+ $id-cuplmn +'].sNSSAI['+$id-cunssai+'].sNSSAI'`\" />",
- "comments": "",
- "outputs": 1,
- "x": 2506.5074768066406,
- "y": 828.431911110878,
- "z": "c2a8a65f.f4fdf8",
- "wires": [
- []
- ]
- },
- {
- "id": "ecaa22b7.75297",
- "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/activateRANSlice.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"sNSSAI - getNFNSSIRIC-configdb-response\"/>\n<parameter name=\"field2\" value=\"`$tmp.configDBSNSSAI`\"/>\n<parameter name=\"field3\" value=\"sNSSAI from request\"/>\n<parameter name=\"field4\" value=\"`$tmp.sNSSAI`\"/>\n\n",
- "comments": "",
- "outputs": 1,
- "x": 2365.2853813171387,
- "y": 861.9874368906021,
- "z": "c2a8a65f.f4fdf8",
- "wires": [
- []
- ]
- },
- {
- "id": "e298fc24.8e892",
- "type": "switchNode",
- "name": "is NSSAI exists",
- "xml": "<switch test='`$tmp.configDBSNSSAI == $tmp.sNSSAI`'>\n",
- "comments": "",
- "outputs": 1,
- "x": 2400.8408584594727,
- "y": 903.209664940834,
- "z": "c2a8a65f.f4fdf8",
- "wires": [
- [
- "21911260.2606be"
- ]
- ]
- },
- {
- "id": "21911260.2606be",
- "type": "outcome",
- "name": "True",
- "xml": "<outcome value='true'>\n",
- "comments": "",
- "outputs": 1,
- "x": 2590.313056945801,
- "y": 903.4319940805435,
- "z": "c2a8a65f.f4fdf8",
- "wires": [
- [
- "91f70aa6.6b1398"
- ]
- ]
- },
- {
- "id": "91f70aa6.6b1398",
- "type": "block",
- "name": "block : atomic",
- "xml": "<block atomic='true'>",
- "atomic": "true",
- "comments": "",
- "outputs": 1,
- "x": 2810.9375,
- "y": 901.1874986886978,
- "z": "c2a8a65f.f4fdf8",
- "wires": [
- [
- "3ac96f1.5a7c49",
- "ed6c8d84.a453d",
- "e0580039.6073f",
- "95118930.b4f2c8",
- "2d01d668.17cdfa",
- "3eb0ec20.fcc6e4",
- "11949605.39b68a",
- "4d5700a7.9e4b9",
- "8fd5d47f.d75348"
- ]
- ]
- },
- {
- "id": "8fd5d47f.d75348",
- "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/activateRANSlice.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"CellCU is applicable for the NSSAI \"/>\n\n\n",
- "comments": "",
- "outputs": 1,
- "x": 3005.9375,
- "y": 896.1874986886978,
- "z": "c2a8a65f.f4fdf8",
- "wires": [
- []
- ]
- },
- {
- "id": "4d5700a7.9e4b9",
- "type": "switchNode",
- "name": "ransim mounted",
- "xml": "<switch test='`$prop.ransim-mounted`'>\n",
- "comments": "",
- "outputs": 1,
- "x": 3033.9375,
- "y": 964.1874986886978,
- "z": "c2a8a65f.f4fdf8",
- "wires": [
- [
- "936a32a4.3da42",
- "1d0f282f.5a75d8"
- ]
- ]
- },
- {
- "id": "936a32a4.3da42",
- "type": "outcome",
- "name": "Not Mounted",
- "xml": "<outcome value='false'>\n",
- "comments": "",
- "outputs": 1,
- "x": 3241.9375,
- "y": 929.1872545480728,
- "z": "c2a8a65f.f4fdf8",
- "wires": [
- [
- "b12f82de.74904"
- ]
- ]
- },
- {
- "id": "b12f82de.74904",
- "type": "execute",
- "name": "generate patch PLMNInfoListEntry ToNRCellCU",
- "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$prop.restapi.patchPLMNInfoListEntry.ToNRCellCU`\"/>\n <parameter name=\"outputPath\" value=\"tmp.patchPLMNInfoListEntry.url\"/>\n <parameter name=\"target\" value=\"{idNearRTRIC}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.nearRTRICId`\"/>\n",
- "comments": "",
- "outputs": 1,
- "x": 3561.9375,
- "y": 944.1874986886978,
- "z": "c2a8a65f.f4fdf8",
- "wires": [
- []
- ]
- },
- {
- "id": "bf71d53a.a976b8",
- "type": "execute",
- "name": "generate patchPLMNInfoList.ToNRCellCU",
- "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$prop.restapi.patchPLMNInfoListEntry.ToNRCellCU.ransim-mounted`\"/>\n <parameter name=\"outputPath\" value=\"tmp.patchPLMNInfoListEntry.url\"/>\n <parameter name=\"target\" value=\"{idNearRTRIC}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.nearRTRICId`\"/>",
- "comments": "",
- "outputs": 1,
- "x": 3740.437530517578,
- "y": 1002.1874376535416,
- "z": "c2a8a65f.f4fdf8",
- "wires": [
- []
- ]
- },
- {
- "id": "6cb878c6.5f97c8",
- "type": "execute",
- "name": "populate mountName",
- "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$tmp.patchPLMNInfoListEntry.url`\"/>\n <parameter name=\"outputPath\" value=\"tmp.patchPLMNInfoListEntry.url\"/>\n <parameter name=\"target\" value=\"{mountName}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.CUCPName`\"/>",
- "comments": "",
- "outputs": 1,
- "x": 3684.437931060791,
- "y": 1055.1876312494278,
- "z": "c2a8a65f.f4fdf8",
- "wires": [
- []
- ]
- },
- {
- "id": "668c976b.241a38",
- "type": "block",
- "name": "ransim URL",
- "xml": "<block atomic='true'>",
- "atomic": "true",
- "comments": "",
- "outputs": 1,
- "x": 3433.4375,
- "y": 1032.1874986886978,
- "z": "c2a8a65f.f4fdf8",
- "wires": [
- [
- "bf71d53a.a976b8",
- "6cb878c6.5f97c8"
- ]
- ]
- },
- {
- "id": "1d0f282f.5a75d8",
- "type": "outcome",
- "name": "Mounted",
- "xml": "<outcome value='true'>\n",
- "comments": "",
- "outputs": 1,
- "x": 3229.9375,
- "y": 1031.1874986886978,
- "z": "c2a8a65f.f4fdf8",
- "wires": [
- [
- "668c976b.241a38"
- ]
- ]
- },
- {
- "id": "3ac96f1.5a7c49",
- "type": "execute",
- "name": "read cellCU",
- "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'>\n\t<parameter name='outputPath' value='tmp.cellCULocalId' />\n\t<parameter name='source' value=\"`'getNFNSSIRIC-configdb-response.['+ $idy +'].gNBCUCPList['+ $idz +'].cellCUList['+ $idcu +'].cellLocalId'`\" />",
- "comments": "",
- "outputs": 1,
- "x": 3000.9375,
- "y": 1064.1874986886978,
- "z": "c2a8a65f.f4fdf8",
- "wires": [
- []
- ]
- },
- {
- "id": "2d01d668.17cdfa",
- "type": "execute",
- "name": "prepare idGNBCUCPFunction",
- "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$tmp.patchPLMNInfoListEntry.url`\"/>\n <parameter name=\"outputPath\" value=\"tmp.patchPLMNInfoListEntry.url\"/>\n <parameter name=\"target\" value=\"{idGNBCUCPFunction}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.CUCPName`\"/>\n",
- "comments": "",
- "outputs": 1,
- "x": 3027.9375,
- "y": 1128.1874986886978,
- "z": "c2a8a65f.f4fdf8",
- "wires": [
- []
- ]
- },
- {
- "id": "3eb0ec20.fcc6e4",
- "type": "execute",
- "name": "prepare idNRCellCU",
- "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$tmp.patchPLMNInfoListEntry.url`\"/>\n <parameter name=\"outputPath\" value=\"tmp.patchPLMNInfoListEntry.url\"/>\n <parameter name=\"target\" value=\"{idNRCellCU}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.cellCULocalId`\"/>\n",
- "comments": "",
- "outputs": 1,
- "x": 2988.937759399414,
- "y": 1173.6875272989273,
- "z": "c2a8a65f.f4fdf8",
- "wires": [
- []
- ]
- },
- {
- "id": "11949605.39b68a",
- "type": "execute",
- "name": "prepare mcc",
- "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$tmp.patchPLMNInfoListEntry.url`\"/>\n <parameter name=\"outputPath\" value=\"tmp.patchPLMNInfoListEntry.url\"/>\n <parameter name=\"target\" value=\"{mcc}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.mcc`\"/>\n ",
- "comments": "",
- "outputs": 1,
- "x": 2954.6875610351562,
- "y": 1255.4375549554825,
- "z": "c2a8a65f.f4fdf8",
- "wires": [
- []
- ]
- },
- {
- "id": "ed6c8d84.a453d",
- "type": "execute",
- "name": "prepare mnc",
- "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$tmp.patchPLMNInfoListEntry.url`\"/>\n <parameter name=\"outputPath\" value=\"tmp.patchPLMNInfoListEntry.url\"/>\n <parameter name=\"target\" value=\"{mnc}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.mnc`\"/>",
- "comments": "",
- "outputs": 1,
- "x": 2943.43798828125,
- "y": 1315.6875711679459,
- "z": "c2a8a65f.f4fdf8",
- "wires": [
- []
- ]
- },
- {
- "id": "e0580039.6073f",
- "type": "record",
- "name": "record API params",
- "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.FileRecorder\">\n<parameter name=\"file\" value=\"/opt/opendaylight/current/data/log/activateRANSlice.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"patch cellCU NSSAI parameters\"/>\n<parameter name=\"field2\" value=\"`$tmp.nearRTRICId`\"/>\n<parameter name=\"field3\" value=\"`$tmp.CUCPName`\"/>\n<parameter name=\"field4\" value=\"`$tmp.cellCULocalId`\"/>\n<parameter name=\"field5\" value=\"`$tmp.mcc`\"/>\n<parameter name=\"field6\" value=\"`$tmp.mnc`\"/>\n<parameter name=\"field7\" value=\"`$tmp.patchPLMNInfoListEntry.url`\"/>\n",
- "comments": "",
- "outputs": 1,
- "x": 2939.9375,
- "y": 1384.1874986886978,
- "z": "c2a8a65f.f4fdf8",
- "wires": [
- []
- ]
- },
- {
- "id": "95118930.b4f2c8",
- "type": "execute",
- "name": "activate PLMNInfoListEntry ToNRCellDU",
- "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"templateFileName\" value=\"`$prop.restapi.templateDir + '/ranSlice-patch-sNSSAI-status.json'`\" />\n<parameter name=\"restapiUrl\" value=\"`$prop.controller.url + $tmp.patchPLMNInfoListEntry.url`\"/>\n<parameter name=\"restapiUser\" value=\"`$prop.controller.user`\" />\n<parameter name=\"restapiPassword\" value=\"`$prop.controller.pwd`\"/>\n<parameter name=\"httpMethod\" value=\"PATCH\"/>\n<parameter name=\"responsePrefix\" value=\"activate-cellCU-PLMNInfoList-response\"/>\n<parameter name='contentType' value='application/yang.patch+json' />\n<parameter name='accept' value='application/yang.patch-status+json'/>\n<parameter name='format' value='json' />",
- "comments": "",
- "outputs": 1,
- "x": 2979.9376068115234,
- "y": 1447.187471985817,
- "z": "c2a8a65f.f4fdf8",
- "wires": [
- [
- "bc546df6.f43d2",
- "d876075a.a6f398"
- ]
- ]
- },
- {
- "id": "d876075a.a6f398",
- "type": "failure",
- "name": "failure",
- "xml": "<outcome value='failure'>\n",
- "comments": "",
- "outputs": 1,
- "x": 3195.93758392334,
- "y": 1326.187471985817,
- "z": "c2a8a65f.f4fdf8",
- "wires": [
- [
- "ce3d2506.e6dea8"
- ]
- ]
- },
- {
- "id": "ce3d2506.e6dea8",
- "type": "block",
- "name": "block : atomic",
- "xml": "<block atomic='true'>",
- "atomic": "true",
- "comments": "",
- "outputs": 1,
- "x": 3345.937858581543,
- "y": 1285.1876550912857,
- "z": "c2a8a65f.f4fdf8",
- "wires": [
- [
- "dbcb0862.e03178",
- "24aba666.9c72aa",
- "538f7285.97feac"
- ]
- ]
- },
- {
- "id": "24aba666.9c72aa",
- "type": "set",
- "name": "set",
- "xml": "<set>\n<parameter name='error-code' value='500'/>\n<parameter name='error-message' value='Error patching cellCU PLMNInfoList. Aborting RPC executiopn'/>",
- "comments": "",
- "x": 3511.937614440918,
- "y": 1251.1876550912857,
- "z": "c2a8a65f.f4fdf8",
- "wires": []
- },
- {
- "id": "dbcb0862.e03178",
- "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 NRcellCU - PLMNInfo. Aborting RPC executiopn'/>",
- "comments": "",
- "x": 3516.9374923706055,
- "y": 1346.187716126442,
- "z": "c2a8a65f.f4fdf8",
- "wires": []
- },
- {
- "id": "33e06199.cd7fce",
- "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/activateRANSlice.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"Successfully Patched - cellCU PLMNInfo List\"/>",
- "comments": "",
- "outputs": 1,
- "x": 3601.9374618530273,
- "y": 1439.1878992319107,
- "z": "c2a8a65f.f4fdf8",
- "wires": [
- []
- ]
- },
- {
- "id": "74ec673a.1a0948",
- "type": "block",
- "name": "block : atomic",
- "xml": "<block atomic='true'>",
- "atomic": "true",
- "comments": "",
- "outputs": 1,
- "x": 3403.937400817871,
- "y": 1442.1877771615982,
- "z": "c2a8a65f.f4fdf8",
- "wires": [
- [
- "33e06199.cd7fce"
- ]
- ]
- },
- {
- "id": "bc546df6.f43d2",
- "type": "success",
- "name": "success",
- "xml": "<outcome value='success'>\n",
- "comments": "",
- "outputs": 1,
- "x": 3230.937614440918,
- "y": 1443.187716126442,
- "z": "c2a8a65f.f4fdf8",
- "wires": [
- [
- "74ec673a.1a0948"
- ]
- ]
- },
- {
- "id": "c1737e13.d4add",
- "type": "execute",
- "name": "read sNSSAI from input",
- "xml": "<set>\n<parameter name='tmp.sNSSAI' value=\"`$payloadJson.input.sNSSAI`\" />\n",
- "comments": "",
- "outputs": 1,
- "x": 753.4375152587891,
- "y": 264.0000044107437,
- "z": "c2a8a65f.f4fdf8",
- "wires": [
- []
- ]
- },
- {
- "id": "d3bfcb5d.5e0c68",
- "type": "block",
- "name": "Process CUUP",
- "xml": "<block atomic='true'>",
- "atomic": "true",
- "comments": "",
- "outputs": 1,
- "x": 745.9375534057617,
- "y": 1181.1875244379044,
- "z": "c2a8a65f.f4fdf8",
- "wires": [
- [
- "71fd34c6.f1147c",
- "12958f62.9badf1",
- "f593572e.022718"
- ]
- ]
- },
- {
- "id": "71fd34c6.f1147c",
- "type": "execute",
- "name": "read CUUP list size",
- "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'>\n\t<parameter name='outputPath' value='tmp.CUUPList_length' />\n\t<parameter name='source' value=\"`'getNFNSSIRIC-configdb-response.[' + $idy +'].gNBCUUPList_length'`\" />\n ",
- "comments": "",
- "outputs": 1,
- "x": 1076.937557220459,
- "y": 1081.1875215768814,
- "z": "c2a8a65f.f4fdf8",
- "wires": [
- []
- ]
- },
- {
- "id": "12958f62.9badf1",
- "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/activateRANSlice.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"Number of CUCP List Entries \"/>\n<parameter name=\"field2\" value=\"`$tmp.CUUPList_length`\"/>\n<parameter name=\"field3\" value=\"for the NearRTRIC\"/>\n<parameter name=\"field4\" value=\"`$tmp.nearRTRICId`\"/>\n",
- "comments": "",
- "outputs": 1,
- "x": 1033.9376220703125,
- "y": 1132.4375239610672,
- "z": "c2a8a65f.f4fdf8",
- "wires": [
- []
- ]
- },
- {
- "id": "f593572e.022718",
- "type": "for",
- "name": "foreach CUUP",
- "xml": "<for index='id-cuup' start='0' end='`$tmp.CUUPList_length`'>\n",
- "comments": "",
- "outputs": 1,
- "x": 1059.437515258789,
- "y": 1181.18752348423,
- "z": "c2a8a65f.f4fdf8",
- "wires": [
- [
- "5f700171.8de5"
- ]
- ]
- },
- {
- "id": "5f700171.8de5",
- "type": "block",
- "name": "block : process CUUP",
- "xml": "<block atomic='true'>",
- "atomic": "true",
- "comments": "",
- "outputs": 1,
- "x": 1282.9375610351562,
- "y": 1164.4375692605972,
- "z": "c2a8a65f.f4fdf8",
- "wires": [
- [
- "948fba7d.44e2c8",
- "3ad78fe3.15cad",
- "b64d5430.741fb8",
- "9e647c26.5f5ea"
- ]
- ]
- },
- {
- "id": "948fba7d.44e2c8",
- "type": "execute",
- "name": "read CUUP id",
- "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'>\n\t<parameter name='outputPath' value='tmp.idGNBCUUPFunction' />\n\t<parameter name='source' value=\"`'getNFNSSIRIC-configdb-response.['+ $idy +'].gNBCUUPList['+ $id-cuup +'].gNBCUUPId'`\" />",
- "comments": "",
- "outputs": 1,
- "x": 1526.9375,
- "y": 939.6874986886978,
- "z": "c2a8a65f.f4fdf8",
- "wires": [
- []
- ]
- },
- {
- "id": "3ad78fe3.15cad",
- "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/activateRANSlice.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"idGNBCUUPFunction \"/>\n<parameter name=\"field2\" value=\"`$tmp.idGNBCUUPFunction`\"/>\n\n",
- "comments": "",
- "outputs": 1,
- "x": 1522.9375,
- "y": 993.6874986886978,
- "z": "c2a8a65f.f4fdf8",
- "wires": [
- []
- ]
- },
- {
- "id": "b64d5430.741fb8",
- "type": "execute",
- "name": "read plmninfolist size",
- "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'>\n\t<parameter name='outputPath' value='tmp.pLMNInfoList' />\n\t<parameter name='source' value=\"`'getNFNSSIRIC-configdb-response.['+ $idy +'].gNBCUUPList['+ $id-cuup +'].pLMNInfoList_length'`\" />",
- "comments": "",
- "outputs": 1,
- "x": 1573.9375,
- "y": 1058.6874986886978,
- "z": "c2a8a65f.f4fdf8",
- "wires": [
- []
- ]
- },
- {
- "id": "9e647c26.5f5ea",
- "type": "for",
- "name": "foreach pLMNInfo",
- "xml": "<for index='id-plmn' start='0' end='`$tmp.pLMNInfoList`'>\n",
- "comments": "",
- "outputs": 1,
- "x": 1559.9375,
- "y": 1113.6874986886978,
- "z": "c2a8a65f.f4fdf8",
- "wires": [
- [
- "51ac29dc.473308"
- ]
- ]
- },
- {
- "id": "aeb42d0d.8b6e2",
- "type": "block",
- "name": "block : atomic",
- "xml": "<block atomic='true'>",
- "atomic": "true",
- "comments": "",
- "outputs": 1,
- "x": 1799.0625,
- "y": 1110.8749986886978,
- "z": "c2a8a65f.f4fdf8",
- "wires": [
- [
- "623726a6.6ca868",
- "75fa7150.1d74a",
- "8ffa5671.6a9758",
- "d243ac82.e496d",
- "529b3f7c.a9647",
- "c8d88690.37d198"
- ]
- ]
- },
- {
- "id": "623726a6.6ca868",
- "type": "switchNode",
- "name": "ransim mounted",
- "xml": "<switch test='`$prop.ransim-mounted`'>\n",
- "comments": "",
- "outputs": 1,
- "x": 2012.312759399414,
- "y": 1111.6251474618912,
- "z": "c2a8a65f.f4fdf8",
- "wires": [
- [
- "1574cbb4.d9d7b4",
- "c27d343d.c9b748"
- ]
- ]
- },
- {
- "id": "1574cbb4.d9d7b4",
- "type": "outcome",
- "name": "Not Mounted",
- "xml": "<outcome value='false'>\n",
- "comments": "",
- "outputs": 1,
- "x": 2225.312641143799,
- "y": 1079.1247659921646,
- "z": "c2a8a65f.f4fdf8",
- "wires": [
- [
- "199eaee.b2dec51"
- ]
- ]
- },
- {
- "id": "199eaee.b2dec51",
- "type": "execute",
- "name": "generate patch PLMNInfoListEntry CUUP URL",
- "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$prop.restapi.patchPLMNInfoListEntry.ToGNBCUUP`\"/>\n <parameter name=\"outputPath\" value=\"tmp.patchPLMNInfoList-CUUP.url\"/>\n <parameter name=\"target\" value=\"{idNearRTRIC}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.nearRTRICId`\"/>\n",
- "comments": "",
- "outputs": 1,
- "x": 2550.3125228881836,
- "y": 1034.1250702142715,
- "z": "c2a8a65f.f4fdf8",
- "wires": [
- []
- ]
- },
- {
- "id": "35f8c642.f5e20a",
- "type": "execute",
- "name": "generate patchPLMNInfoList.TogNBCUUP",
- "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$prop.restapi.patchPLMNInfoListEntry.ToGNBCUUP.ransim-mounted`\"/>\n <parameter name=\"outputPath\" value=\"tmp.patchPLMNInfoList-CUUP.url\"/>\n <parameter name=\"target\" value=\"{idNearRTRIC}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.nearRTRICId`\"/>",
- "comments": "",
- "outputs": 1,
- "x": 2661.0620651245117,
- "y": 1116.8747812509537,
- "z": "c2a8a65f.f4fdf8",
- "wires": [
- []
- ]
- },
- {
- "id": "ccf5dbf1.5ce4e8",
- "type": "execute",
- "name": "populate mountName",
- "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$tmp.patchPLMNInfoList-CUUP.url`\"/>\n <parameter name=\"outputPath\" value=\"tmp.patchPLMNInfoList-CUUP.url\"/>\n <parameter name=\"target\" value=\"{mountName}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.idGNBCUUPFunction`\"/>",
- "comments": "",
- "outputs": 1,
- "x": 2645.0625858306885,
- "y": 1184.875041604042,
- "z": "c2a8a65f.f4fdf8",
- "wires": [
- []
- ]
- },
- {
- "id": "104e9bd3.77a704",
- "type": "block",
- "name": "ransim URL",
- "xml": "<block atomic='true'>",
- "atomic": "true",
- "comments": "",
- "outputs": 1,
- "x": 2385.312370300293,
- "y": 1175.6247817277908,
- "z": "c2a8a65f.f4fdf8",
- "wires": [
- [
- "35f8c642.f5e20a",
- "ccf5dbf1.5ce4e8"
- ]
- ]
- },
- {
- "id": "c27d343d.c9b748",
- "type": "outcome",
- "name": "Mounted",
- "xml": "<outcome value='true'>\n",
- "comments": "",
- "outputs": 1,
- "x": 2210.812515258789,
- "y": 1164.8750406503677,
- "z": "c2a8a65f.f4fdf8",
- "wires": [
- [
- "104e9bd3.77a704"
- ]
- ]
- },
- {
- "id": "75fa7150.1d74a",
- "type": "execute",
- "name": "prepare idGNBCUUPFunction",
- "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$tmp.patchPLMNInfoList-CUUP.url`\"/>\n <parameter name=\"outputPath\" value=\"tmp.patchPLMNInfoList-CUUP.url\"/>\n <parameter name=\"target\" value=\"{idGNBCUUPFunction}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.idGNBCUUPFunction`\"/>\n",
- "comments": "",
- "outputs": 1,
- "x": 2080.972137451172,
- "y": 1224.6597052812576,
- "z": "c2a8a65f.f4fdf8",
- "wires": [
- []
- ]
- },
- {
- "id": "8ffa5671.6a9758",
- "type": "execute",
- "name": "patch PLMNInfoListEntry gNBCUUP",
- "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"templateFileName\" value=\"`$prop.restapi.templateDir + '/ranSlice-patch-sNSSAI-status.json'`\" />\n<parameter name=\"restapiUrl\" value=\"`$prop.controller.url + $tmp.patchPLMNInfoList-CUUP.url`\"/>\n<parameter name=\"restapiUser\" value=\"`$prop.controller.user`\" />\n<parameter name=\"restapiPassword\" value=\"`$prop.controller.pwd`\"/>\n<parameter name=\"httpMethod\" value=\"PATCH\"/>\n<parameter name=\"responsePrefix\" value=\"activate-gNBCUUP-PLMNInfoList-response\"/>\n<parameter name='contentType' value='application/yang.patch+json' />\n<parameter name='accept' value='application/yang.patch-status+json'/>\n<parameter name='format' value='json' />",
- "comments": "",
- "outputs": 1,
- "x": 2030.3056335449219,
- "y": 1338.3263765573502,
- "z": "c2a8a65f.f4fdf8",
- "wires": [
- [
- "aee628aa.1dff38",
- "36758e2f.9d4b12"
- ]
- ]
- },
- {
- "id": "aee628aa.1dff38",
- "type": "failure",
- "name": "failure",
- "xml": "<outcome value='failure'>\n",
- "comments": "",
- "outputs": 1,
- "x": 2356.7501525878906,
- "y": 1301.4377380609512,
- "z": "c2a8a65f.f4fdf8",
- "wires": [
- [
- "6af793d.727876c"
- ]
- ]
- },
- {
- "id": "36758e2f.9d4b12",
- "type": "success",
- "name": "success",
- "xml": "<outcome value='success'>\n",
- "comments": "",
- "outputs": 1,
- "x": 2350.750030517578,
- "y": 1368.437677025795,
- "z": "c2a8a65f.f4fdf8",
- "wires": [
- [
- "4446c6a.38c1b38"
- ]
- ]
- },
- {
- "id": "6af793d.727876c",
- "type": "block",
- "name": "block : atomic",
- "xml": "<block atomic='true'>",
- "atomic": "true",
- "comments": "",
- "outputs": 1,
- "x": 2533.750274658203,
- "y": 1290.4376159906387,
- "z": "c2a8a65f.f4fdf8",
- "wires": [
- [
- "2859116f.738e1e",
- "6ecd39bc.1a9398",
- "538f7285.97feac"
- ]
- ]
- },
- {
- "id": "4446c6a.38c1b38",
- "type": "block",
- "name": "block : atomic",
- "xml": "<block atomic='true'>",
- "atomic": "true",
- "comments": "",
- "outputs": 1,
- "x": 2530.750030517578,
- "y": 1373.4374939203262,
- "z": "c2a8a65f.f4fdf8",
- "wires": [
- [
- "9b50c133.dc596"
- ]
- ]
- },
- {
- "id": "9b50c133.dc596",
- "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/activateRANSlice.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"Successfully Patched - gNBCUUP PLMNInfo List\"/>",
- "comments": "",
- "outputs": 1,
- "x": 2683.749725341797,
- "y": 1373.4377380609512,
- "z": "c2a8a65f.f4fdf8",
- "wires": [
- []
- ]
- },
- {
- "id": "2859116f.738e1e",
- "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 patching CUUP PLMNInfo. Aborting RPC executiopn'/>",
- "comments": "",
- "x": 2738.5002365112305,
- "y": 1290.9378954172134,
- "z": "c2a8a65f.f4fdf8",
- "wires": []
- },
- {
- "id": "6ecd39bc.1a9398",
- "type": "set",
- "name": "set",
- "xml": "<set>\n<parameter name='error-code' value='500'/>\n<parameter name='error-message' value='Error patching CUUP PLMNInfoList. Aborting RPC executiopn'/>",
- "comments": "",
- "x": 2743.5004234313965,
- "y": 1236.9380313158035,
- "z": "c2a8a65f.f4fdf8",
- "wires": []
- },
- {
- "id": "739e0e6a.a06dc",
- "type": "block",
- "name": "Process gNBDU",
- "xml": "<block atomic='true'>",
- "atomic": "true",
- "comments": "",
- "outputs": 1,
- "x": 740.3125076293945,
- "y": 1329.62502348423,
- "z": "c2a8a65f.f4fdf8",
- "wires": [
- [
- "1649d417.1f910c",
- "6b5b1e1d.ae91f",
- "3e526a87.42e9c6"
- ]
- ]
- },
- {
- "id": "1649d417.1f910c",
- "type": "execute",
- "name": "read DUlist size",
- "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'>\n\t<parameter name='outputPath' value='tmp.DUList_length' />\n\t<parameter name='source' value=\"`'getNFNSSIRIC-configdb-response.[' + $idy +'].gNBDUList_length'`\" />\n ",
- "comments": "",
- "outputs": 1,
- "x": 1073.0625305175781,
- "y": 1235.6250101327896,
- "z": "c2a8a65f.f4fdf8",
- "wires": [
- []
- ]
- },
- {
- "id": "6b5b1e1d.ae91f",
- "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/activateRANSlice.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"Number of DU List Entries \"/>\n<parameter name=\"field2\" value=\"`$tmp.DUList_length`\"/>\n<parameter name=\"field3\" value=\"for the NearRTRIC\"/>\n<parameter name=\"field4\" value=\"`$tmp.nearRTRICId`\"/>\n",
- "comments": "",
- "outputs": 1,
- "x": 1046.062557220459,
- "y": 1279.1250711679459,
- "z": "c2a8a65f.f4fdf8",
- "wires": [
- []
- ]
- },
- {
- "id": "3e526a87.42e9c6",
- "type": "for",
- "name": "foreach DU",
- "xml": "<for index='id-du' start='0' end='`$tmp.DUList_length`'>\n",
- "comments": "",
- "outputs": 1,
- "x": 1058.0625305175781,
- "y": 1330.3749986886978,
- "z": "c2a8a65f.f4fdf8",
- "wires": [
- [
- "a9f77ffa.524c5"
- ]
- ]
- },
- {
- "id": "a9f77ffa.524c5",
- "type": "block",
- "name": "block : process gNBDU",
- "xml": "<block atomic='true'>",
- "atomic": "true",
- "comments": "",
- "outputs": 1,
- "x": 1339.0625,
- "y": 1331.3749681711197,
- "z": "c2a8a65f.f4fdf8",
- "wires": [
- [
- "25be6f65.10a55",
- "26b26756.cfb158",
- "675f2ac9.3ee7b4",
- "5bce0634.eb0878"
- ]
- ]
- },
- {
- "id": "25be6f65.10a55",
- "type": "execute",
- "name": "read DU id",
- "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'>\n\t<parameter name='outputPath' value='tmp.GNBDUId' />\n\t<parameter name='source' value=\"`'getNFNSSIRIC-configdb-response.['+ $idy +'].gNBDUList['+ $id-du +'].gNBDUId'`\" />",
- "comments": "",
- "outputs": 1,
- "x": 1618.0623245239258,
- "y": 1327.37427008152,
- "z": "c2a8a65f.f4fdf8",
- "wires": [
- []
- ]
- },
- {
- "id": "26b26756.cfb158",
- "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/activateRANSlice.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"GNBDUId \"/>\n<parameter name=\"field2\" value=\"`$tmp.GNBDUId`\"/>\n\n",
- "comments": "",
- "outputs": 1,
- "x": 1591.0623245239258,
- "y": 1378.37427008152,
- "z": "c2a8a65f.f4fdf8",
- "wires": [
- []
- ]
- },
- {
- "id": "675f2ac9.3ee7b4",
- "type": "execute",
- "name": "read cellDU list size",
- "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'>\n\t<parameter name='outputPath' value='tmp.cellDUList_length' />\n\t<parameter name='source' value=\"`'getNFNSSIRIC-configdb-response.[' + $idy +'].gNBDUList[' + $id-du +'].cellDUList_length'`\" />\n ",
- "comments": "",
- "outputs": 1,
- "x": 1632.0623245239258,
- "y": 1427.37427008152,
- "z": "c2a8a65f.f4fdf8",
- "wires": [
- []
- ]
- },
- {
- "id": "5bce0634.eb0878",
- "type": "for",
- "name": "for cellDUList",
- "xml": "<for index='id-celldu' start='0' end='`$tmp.cellDUList_length`' >\n",
- "comments": "",
- "outputs": 1,
- "x": 1622.0623245239258,
- "y": 1471.37427008152,
- "z": "c2a8a65f.f4fdf8",
- "wires": [
- [
- "794d6324.ce72cc"
- ]
- ]
- },
- {
- "id": "794d6324.ce72cc",
- "type": "block",
- "name": "block",
- "xml": "<block>\n",
- "atomic": "false",
- "comments": "",
- "outputs": 1,
- "x": 1781.812385559082,
- "y": 1471.1243950128555,
- "z": "c2a8a65f.f4fdf8",
- "wires": [
- [
- "7333dc3f.3584f4",
- "c357f392.8f3b6",
- "af15dd5.a6c422"
- ]
- ]
- },
- {
- "id": "7333dc3f.3584f4",
- "type": "execute",
- "name": "read PLMNList size",
- "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'>\n\t<parameter name='outputPath' value='tmp.DUpLMNInfoList_length' />\n\t<parameter name='source' value=\"`'getNFNSSIRIC-configdb-response.['+ $idy +'].gNBDUList['+ $id-du +'].cellDUList['+ $id-celldu +'].pLMNInfoList_length'`\" />",
- "comments": "",
- "outputs": 1,
- "x": 2030,
- "y": 1470.8749986886978,
- "z": "c2a8a65f.f4fdf8",
- "wires": [
- []
- ]
- },
- {
- "id": "c357f392.8f3b6",
- "type": "for",
- "name": "foreach PLMNInfo",
- "xml": "<for index='id-duplmn' start='0' end='`$tmp.DUpLMNInfoList_length`' >\n",
- "comments": "",
- "outputs": 1,
- "x": 2008.3333740234375,
- "y": 1540.8749986886978,
- "z": "c2a8a65f.f4fdf8",
- "wires": [
- [
- "7f76b79e.a609a8"
- ]
- ]
- },
- {
- "id": "7f76b79e.a609a8",
- "type": "block",
- "name": "block : atomic",
- "xml": "<block atomic='true'>",
- "atomic": "true",
- "comments": "",
- "outputs": 1,
- "x": 2193.7221603393555,
- "y": 1534.9027086496353,
- "z": "c2a8a65f.f4fdf8",
- "wires": [
- [
- "2a0b3e44.22f042",
- "d2b6fc8.a0801"
- ]
- ]
- },
- {
- "id": "6d2985a2.a415bc",
- "type": "execute",
- "name": "read sNSSAI from getNFNSSIRIC-configdb-response",
- "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'>\n\t<parameter name='outputPath' value='tmp.configDBSNSSAI-DU' />\n\t<parameter name='source' value=\"`'getNFNSSIRIC-configdb-response.['+ $idy +'].gNBDUList['+ $id-du +'].cellDUList['+ $id-celldu +'].pLMNInfoList['+ $id-duplmn +'].sNSSAI['+$id-dunssai+'].sNSSAI'`\" />",
- "comments": "",
- "outputs": 1,
- "x": 2546.277862548828,
- "y": 1508.9866495132446,
- "z": "c2a8a65f.f4fdf8",
- "wires": [
- []
- ]
- },
- {
- "id": "18e75616.57f2da",
- "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/activateRANSlice.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"sNSSAI - getNFNSSIRIC-configdb-response\"/>\n<parameter name=\"field2\" value=\"`$tmp.configDBSNSSAI-DU`\"/>\n<parameter name=\"field3\" value=\"sNSSAI from request\"/>\n<parameter name=\"field4\" value=\"`$tmp.sNSSAI`\"/>\n\n",
- "comments": "",
- "outputs": 1,
- "x": 2419.6110763549805,
- "y": 1551.8753185272217,
- "z": "c2a8a65f.f4fdf8",
- "wires": [
- []
- ]
- },
- {
- "id": "244e64a3.dccd7c",
- "type": "switchNode",
- "name": "is NSSAI exists",
- "xml": "<switch test='`$tmp.configDBSNSSAI-DU == $tmp.sNSSAI`'>\n",
- "comments": "",
- "outputs": 1,
- "x": 2417.7499923706055,
- "y": 1592.430830001831,
- "z": "c2a8a65f.f4fdf8",
- "wires": [
- [
- "9b9ba6b.1773458"
- ]
- ]
- },
- {
- "id": "9b9ba6b.1773458",
- "type": "outcome",
- "name": "True",
- "xml": "<outcome value='true'>\n",
- "comments": "",
- "outputs": 1,
- "x": 2591.2224349975586,
- "y": 1598.153151512146,
- "z": "c2a8a65f.f4fdf8",
- "wires": [
- [
- "3c34a824.4a8b78"
- ]
- ]
- },
- {
- "id": "3c34a824.4a8b78",
- "type": "block",
- "name": "block : atomic",
- "xml": "<block atomic='true'>",
- "atomic": "true",
- "comments": "",
- "outputs": 1,
- "x": 2773.250129699707,
- "y": 1550.1252218484879,
- "z": "c2a8a65f.f4fdf8",
- "wires": [
- [
- "1111612d.45f1df",
- "ef6a8da8.e0c27",
- "ec70dc8a.269",
- "66d8b8cc.1ef7f8",
- "11ff5d37.9cf913",
- "f49fbb07.7c2b18",
- "3694d5a8.b1ed5a"
- ]
- ]
- },
- {
- "id": "bb0e0b1d.4af928",
- "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/activateRANSlice.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"CellDU is applicable for the NSSAI \"/>\n\n\n",
- "comments": "",
- "outputs": 1,
- "x": 2985.7504959106445,
- "y": 1518.8752219676971,
- "z": "c2a8a65f.f4fdf8",
- "wires": [
- []
- ]
- },
- {
- "id": "1111612d.45f1df",
- "type": "switchNode",
- "name": "ransim mounted",
- "xml": "<switch test='`$prop.ransim-mounted`'>\n",
- "comments": "",
- "outputs": 1,
- "x": 2990.0000076293945,
- "y": 1576.8752542734146,
- "z": "c2a8a65f.f4fdf8",
- "wires": [
- [
- "6ae15f82.91e01",
- "4b299a62.6808b4"
- ]
- ]
- },
- {
- "id": "6ae15f82.91e01",
- "type": "outcome",
- "name": "Not Mounted",
- "xml": "<outcome value='false'>\n",
- "comments": "",
- "outputs": 1,
- "x": 3199.250499725342,
- "y": 1531.8747955560684,
- "z": "c2a8a65f.f4fdf8",
- "wires": [
- [
- "1bac1a75.adf2a6"
- ]
- ]
- },
- {
- "id": "4b299a62.6808b4",
- "type": "outcome",
- "name": "Mounted",
- "xml": "<outcome value='true'>\n",
- "comments": "",
- "outputs": 1,
- "x": 3194.250499725342,
- "y": 1593.3754984140396,
- "z": "c2a8a65f.f4fdf8",
- "wires": [
- [
- "d1986902.69ea38"
- ]
- ]
- },
- {
- "id": "1bac1a75.adf2a6",
- "type": "execute",
- "name": "generate patch PLMNInfoListEntry ToNRCellDU",
- "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$prop.restapi.patchPLMNInfoListEntry.ToNRCellDU`\"/>\n <parameter name=\"outputPath\" value=\"tmp.patchPLMNInfoListEntry-cellDU.url\"/>\n <parameter name=\"target\" value=\"{idNearRTRIC}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.nearRTRICId`\"/>\n",
- "comments": "",
- "outputs": 1,
- "x": 3545.500259399414,
- "y": 1530.625252366066,
- "z": "c2a8a65f.f4fdf8",
- "wires": [
- []
- ]
- },
- {
- "id": "d1986902.69ea38",
- "type": "block",
- "name": "ransim URL",
- "xml": "<block atomic='true'>",
- "atomic": "true",
- "comments": "",
- "outputs": 1,
- "x": 3371.7500762939453,
- "y": 1599.875132203102,
- "z": "c2a8a65f.f4fdf8",
- "wires": [
- [
- "7d11036e.cd195c",
- "461385d5.ef603c"
- ]
- ]
- },
- {
- "id": "7d11036e.cd195c",
- "type": "execute",
- "name": "generate patchPLMNInfoList.ToNRCellDU",
- "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$prop.restapi.patchPLMNInfoListEntry.ToNRCellDU.ransim-mounted`\"/>\n <parameter name=\"outputPath\" value=\"tmp.patchPLMNInfoListEntry-cellDU.url\"/>\n <parameter name=\"target\" value=\"{idNearRTRIC}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.nearRTRICId`\"/>",
- "comments": "",
- "outputs": 1,
- "x": 3653.750442504883,
- "y": 1588.625132203102,
- "z": "c2a8a65f.f4fdf8",
- "wires": [
- []
- ]
- },
- {
- "id": "461385d5.ef603c",
- "type": "execute",
- "name": "populate mountName",
- "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$tmp.patchPLMNInfoListEntry-cellDU.url`\"/>\n <parameter name=\"outputPath\" value=\"tmp.patchPLMNInfoListEntry-cellDU.url\"/>\n <parameter name=\"target\" value=\"{mountName}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.GNBDUId`\"/>",
- "comments": "",
- "outputs": 1,
- "x": 3604.000747680664,
- "y": 1649.1251636743546,
- "z": "c2a8a65f.f4fdf8",
- "wires": [
- []
- ]
- },
- {
- "id": "ef6a8da8.e0c27",
- "type": "execute",
- "name": "prepare idGNBDUFunction",
- "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$tmp.patchPLMNInfoListEntry-cellDU.url`\"/>\n <parameter name=\"outputPath\" value=\"tmp.patchPLMNInfoListEntry-cellDU.url\"/>\n <parameter name=\"target\" value=\"{idGNBDUFunction}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.GNBDUId`\"/>\n",
- "comments": "",
- "outputs": 1,
- "x": 3036.8750610351562,
- "y": 1703.6874366998672,
- "z": "c2a8a65f.f4fdf8",
- "wires": [
- []
- ]
- },
- {
- "id": "ec70dc8a.269",
- "type": "execute",
- "name": "prepare idNRCellDU",
- "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$tmp.patchPLMNInfoListEntry-cellDU.url`\"/>\n <parameter name=\"outputPath\" value=\"tmp.patchPLMNInfoListEntry-cellDU.url\"/>\n <parameter name=\"target\" value=\"{idNRCellDU}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.cellDULocalId`\"/>\n",
- "comments": "",
- "outputs": 1,
- "x": 3009.875244140625,
- "y": 1758.6874386072159,
- "z": "c2a8a65f.f4fdf8",
- "wires": [
- []
- ]
- },
- {
- "id": "66d8b8cc.1ef7f8",
- "type": "execute",
- "name": "prepare mcc",
- "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$tmp.patchPLMNInfoListEntry-cellDU.url`\"/>\n <parameter name=\"outputPath\" value=\"tmp.patchPLMNInfoListEntry-cellDU.url\"/>\n <parameter name=\"target\" value=\"{mcc}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.mcc`\"/>\n ",
- "comments": "",
- "outputs": 1,
- "x": 2989.8749389648438,
- "y": 1821.6877447366714,
- "z": "c2a8a65f.f4fdf8",
- "wires": [
- []
- ]
- },
- {
- "id": "11ff5d37.9cf913",
- "type": "execute",
- "name": "prepare mnc",
- "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$tmp.patchPLMNInfoListEntry-cellDU.url`\"/>\n <parameter name=\"outputPath\" value=\"tmp.patchPLMNInfoListEntry-cellDU.url\"/>\n <parameter name=\"target\" value=\"{mnc}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.mnc`\"/>",
- "comments": "",
- "outputs": 1,
- "x": 2991.8751831054688,
- "y": 1879.6873775720596,
- "z": "c2a8a65f.f4fdf8",
- "wires": [
- []
- ]
- },
- {
- "id": "f49fbb07.7c2b18",
- "type": "record",
- "name": "record API params",
- "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.FileRecorder\">\n<parameter name=\"file\" value=\"/opt/opendaylight/current/data/log/activateRANSlice.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"patch cellDU NSSAI parameters\"/>\n<parameter name=\"field2\" value=\"`$tmp.nearRTRICId`\"/>\n<parameter name=\"field3\" value=\"`$tmp.GNBDUId`\"/>\n<parameter name=\"field4\" value=\"`$tmp.cellDULocalId`\"/>\n<parameter name=\"field5\" value=\"`$tmp.mcc`\"/>\n<parameter name=\"field6\" value=\"`$tmp.mnc`\"/>\n<parameter name=\"field7\" value=\"`$tmp.patchPLMNInfoListEntry-cellDU.url`\"/>\n",
- "comments": "",
- "outputs": 1,
- "x": 2996.8748168945312,
- "y": 1947.6878687143326,
- "z": "c2a8a65f.f4fdf8",
- "wires": [
- []
- ]
- },
- {
- "id": "3694d5a8.b1ed5a",
- "type": "execute",
- "name": "patch PLMNInfoListEntry ToNRCellDU",
- "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"templateFileName\" value=\"`$prop.restapi.templateDir + '/ranSlice-patch-sNSSAI-status.json'`\" />\n<parameter name=\"restapiUrl\" value=\"`$prop.controller.url + $tmp.patchPLMNInfoListEntry-cellDU.url`\"/>\n<parameter name=\"restapiUser\" value=\"`$prop.controller.user`\" />\n<parameter name=\"restapiPassword\" value=\"`$prop.controller.pwd`\"/>\n<parameter name=\"httpMethod\" value=\"PATCH\"/>\n<parameter name=\"responsePrefix\" value=\"activate-cellDU-PLMNInfoList-response\"/>\n<parameter name='contentType' value='application/yang.patch+json' />\n<parameter name='accept' value='application/yang.patch-status+json'/>\n<parameter name='format' value='json' />",
- "comments": "",
- "outputs": 1,
- "x": 3053.8748474121094,
- "y": 2022.9372545480728,
- "z": "c2a8a65f.f4fdf8",
- "wires": [
- [
- "42db944d.8c0fbc",
- "6035db45.1d73f4"
- ]
- ]
- },
- {
- "id": "6035db45.1d73f4",
- "type": "failure",
- "name": "failure",
- "xml": "<outcome value='failure'>\n",
- "comments": "",
- "outputs": 1,
- "x": 3320.8748474121094,
- "y": 1922.9372545480728,
- "z": "c2a8a65f.f4fdf8",
- "wires": [
- [
- "adfca1f7.0d0c1"
- ]
- ]
- },
- {
- "id": "adfca1f7.0d0c1",
- "type": "block",
- "name": "block : atomic",
- "xml": "<block atomic='true'>",
- "atomic": "true",
- "comments": "",
- "outputs": 1,
- "x": 3478.8750915527344,
- "y": 1870.9372545480728,
- "z": "c2a8a65f.f4fdf8",
- "wires": [
- [
- "e7089cb1.1a41d",
- "1274c7c0.6942b8",
- "538f7285.97feac"
- ]
- ]
- },
- {
- "id": "1274c7c0.6942b8",
- "type": "set",
- "name": "set",
- "xml": "<set>\n<parameter name='error-code' value='500'/>\n<parameter name='error-message' value='Error patching cellDU PLMNInfoList. Aborting RPC executiopn'/>",
- "comments": "",
- "x": 3644.8748474121094,
- "y": 1836.9372545480728,
- "z": "c2a8a65f.f4fdf8",
- "wires": []
- },
- {
- "id": "e7089cb1.1a41d",
- "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 NECellDU - PLMNInfo. Aborting RPC executiopn'/>",
- "comments": "",
- "x": 3649.874725341797,
- "y": 1931.937315583229,
- "z": "c2a8a65f.f4fdf8",
- "wires": []
- },
- {
- "id": "b2bdee8f.d0e01",
- "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/activateRANSlice.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"Successfully Patched - cellDU PLMNInfo List\"/>",
- "comments": "",
- "outputs": 1,
- "x": 3633.874725341797,
- "y": 2017.9374986886978,
- "z": "c2a8a65f.f4fdf8",
- "wires": [
- []
- ]
- },
- {
- "id": "d6013d07.92ca5",
- "type": "block",
- "name": "block : atomic",
- "xml": "<block atomic='true'>",
- "atomic": "true",
- "comments": "",
- "outputs": 1,
- "x": 3487.8748474121094,
- "y": 2018.9372571706772,
- "z": "c2a8a65f.f4fdf8",
- "wires": [
- [
- "b2bdee8f.d0e01"
- ]
- ]
- },
- {
- "id": "42db944d.8c0fbc",
- "type": "success",
- "name": "success",
- "xml": "<outcome value='success'>\n",
- "comments": "",
- "outputs": 1,
- "x": 3319.8748474121094,
- "y": 2021.9372545480728,
- "z": "c2a8a65f.f4fdf8",
- "wires": [
- [
- "d6013d07.92ca5"
- ]
- ]
- },
- {
- "id": "b7134c47.dc4b9",
- "type": "execute",
- "name": "get PLMNId URL",
- "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$prop.restapi.configdb.getplmn`\"/>\n <parameter name=\"outputPath\" value=\"tmp.configdb.getPLMNId.url\"/>\n <parameter name=\"target\" value=\"{sliceProfileId}\"/>\n <parameter name=\"replacement\" value=\"`$payloadJson.input.sliceProfileId`\"/>",
- "comments": "",
- "outputs": 1,
- "x": 701.5625305175781,
- "y": 662.4375101327896,
- "z": "c2a8a65f.f4fdf8",
- "wires": [
- []
- ]
- },
- {
- "id": "66c6e126.b5c0e",
- "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/activateRANSlice.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"Get PLMN from SliceProfileId URL: \"/>\n<parameter name=\"field2\" value=\"`$tmp.configdb.getPLMNId.url`\"/>\n\n",
- "comments": "",
- "outputs": 1,
- "x": 675.0625305175781,
- "y": 717.937541604042,
- "z": "c2a8a65f.f4fdf8",
- "wires": [
- []
- ]
- },
- {
- "id": "1bdc1194.f7cbee",
- "type": "execute",
- "name": "Get PLMN from Sliceprofile id",
- "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"restapiUrl\" value=\"`$prop.configdb.url + $tmp.configdb.getPLMNId.url`\"/>\n<parameter name=\"httpMethod\" value=\"GET\"/>\n<parameter name=\"responsePrefix\" value=\"getPLMN-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": 743.8125152587891,
- "y": 771.4374777078629,
- "z": "c2a8a65f.f4fdf8",
- "wires": [
- []
- ]
- },
- {
- "id": "ba7f558f.10b808",
- "type": "execute",
- "name": "read PLMN Id",
- "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=\"`getPLMN-configdb-response.plmnId`\" />\n",
- "comments": "",
- "outputs": 1,
- "x": 696.8125076293945,
- "y": 810.5487190485001,
- "z": "c2a8a65f.f4fdf8",
- "wires": [
- []
- ]
- },
- {
- "id": "eac38896.d67558",
- "type": "execute",
- "name": "find MCC",
- "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='substring'>\n <parameter name=\"string\" value=\"`$tmp.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": 1256.284782409668,
- "y": 789.5765886306763,
- "z": "c2a8a65f.f4fdf8",
- "wires": [
- []
- ]
- },
- {
- "id": "1d969c9b.373d23",
- "type": "execute",
- "name": "find MNC",
- "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='substring'>\n <parameter name=\"string\" value=\"`$tmp.pLMNId`\" />\n <parameter name=\"result\" value=\"tmp.mnc\"/>\n <parameter name=\"begin-index\" value=\"4\" />",
- "comments": "",
- "outputs": 1,
- "x": 1266.951530456543,
- "y": 827.3542985916138,
- "z": "c2a8a65f.f4fdf8",
- "wires": [
- []
- ]
- },
- {
- "id": "c6c21f7.66307e",
- "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/activateRANSlice.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"`$tmp.pLMNId`\"/>\n<parameter name=\"field2\" value=\"`$tmp.mcc`\"/>\n<parameter name=\"field3\" value=\"`$tmp.mnc`\"/>",
- "comments": "",
- "outputs": 1,
- "x": 668.1671524047852,
- "y": 921.1254831552505,
- "z": "c2a8a65f.f4fdf8",
- "wires": [
- []
- ]
- },
- {
- "id": "538f7285.97feac",
- "type": "block",
- "name": "block : SO Response",
- "xml": "<block atomic='true'>",
- "atomic": "true",
- "comments": "",
- "outputs": 1,
- "x": 4122.8125,
- "y": 1669.4910875558853,
- "z": "c2a8a65f.f4fdf8",
- "wires": [
- [
- "6403be78.5d82",
- "35baae05.3737a2",
- "4f35fe3d.ca573"
- ]
- ]
- },
- {
- "id": "6403be78.5d82",
- "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=\"`$activate-r-a-n-slice-instance-input.common-header.request-id`\"/>\n<parameter name=\"tmp.action\" value=\"`$activate-r-a-n-slice-instance-input.action`\"/>\n",
- "comments": "",
- "x": 4501.956283569336,
- "y": 1527.1050745248795,
- "z": "c2a8a65f.f4fdf8",
- "wires": []
- },
- {
- "id": "35baae05.3737a2",
- "type": "record",
- "name": "record 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`\" />",
- "comments": "",
- "outputs": 1,
- "x": 4505.526741027832,
- "y": 1592.7771612405777,
- "z": "c2a8a65f.f4fdf8",
- "wires": [
- []
- ]
- },
- {
- "id": "4f35fe3d.ca573",
- "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-activate-response\"/>\n<parameter name='contentType' value='application/json' /> \n<parameter name='format' value='json' />\n<parameter name='accept' value='*/*' />\n<parameter name=\"convertResponse\" value=\"true\"/>",
- "comments": "",
- "outputs": 1,
- "x": 4431.955307006836,
- "y": 1671.2057358026505,
- "z": "c2a8a65f.f4fdf8",
- "wires": [
- [
- "55bab65f.15fba8",
- "14008385.7c0d9c"
- ]
- ]
- },
- {
- "id": "55bab65f.15fba8",
- "type": "failure",
- "name": "failure",
- "xml": "<outcome value='failure'>\n",
- "comments": "",
- "outputs": 1,
- "x": 4669.383865356445,
- "y": 1653.9197870492935,
- "z": "c2a8a65f.f4fdf8",
- "wires": [
- [
- "666823a.cd278dc"
- ]
- ]
- },
- {
- "id": "666823a.cd278dc",
- "type": "block",
- "name": "block",
- "xml": "<block>\n",
- "atomic": "false",
- "comments": "",
- "outputs": 1,
- "x": 4861.812232971191,
- "y": 1644.6342245340347,
- "z": "c2a8a65f.f4fdf8",
- "wires": [
- [
- "ac397400.1ea37"
- ]
- ]
- },
- {
- "id": "ac397400.1ea37",
- "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": 5063.5261154174805,
- "y": 1633.348336338997,
- "z": "c2a8a65f.f4fdf8",
- "wires": []
- },
- {
- "id": "13a85374.dc470d",
- "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/activateRANSlice.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"SO Response Sent \"/>",
- "comments": "",
- "outputs": 1,
- "x": 5057.66939163208,
- "y": 1708.3484026193619,
- "z": "c2a8a65f.f4fdf8",
- "wires": [
- []
- ]
- },
- {
- "id": "c5e0bcf5.1da6a",
- "type": "block",
- "name": "block",
- "xml": "<block>\n",
- "atomic": "false",
- "comments": "",
- "outputs": 1,
- "x": 4873.669242858887,
- "y": 1713.7768446207047,
- "z": "c2a8a65f.f4fdf8",
- "wires": [
- [
- "13a85374.dc470d"
- ]
- ]
- },
- {
- "id": "14008385.7c0d9c",
- "type": "success",
- "name": "success",
- "xml": "<outcome value='success'>\n",
- "comments": "",
- "outputs": 1,
- "x": 4663.669189453125,
- "y": 1717.634083390236,
- "z": "c2a8a65f.f4fdf8",
- "wires": [
- [
- "c5e0bcf5.1da6a"
- ]
- ]
- },
- {
- "id": "d112a202.14d86",
- "type": "block",
- "name": "SO Response",
- "xml": "<block atomic='true'>",
- "atomic": "true",
- "comments": "",
- "outputs": 1,
- "x": 670.3125,
- "y": 1646.6339098215103,
- "z": "c2a8a65f.f4fdf8",
- "wires": [
- [
- "be8548bb.49dc68",
- "a7b79856.9ac328",
- "3213abee.d1bdf4",
- "12ab8339.c11cad"
- ]
- ]
- },
- {
- "id": "3213abee.d1bdf4",
- "type": "set",
- "name": "set tmp variables for SO response",
- "xml": "<set>\n<parameter name=\"tmp.status\" value=\"`$error-code`\"/>\n<parameter name=\"tmp.reason\" value=\"`$error-message`\"/>\n<parameter name=\"tmp.requestID\" value=\"`$activate-r-a-n-slice-input.common-header.request-id `\"/>\n<parameter name=\"tmp.action\" value=\"`$activate-r-a-n-slice-input.action`\"/>\n",
- "comments": "",
- "x": 950.3136444091797,
- "y": 1496.5333944559097,
- "z": "c2a8a65f.f4fdf8",
- "wires": []
- },
- {
- "id": "be8548bb.49dc68",
- "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=\"`$payloadJson.input.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`\" />",
- "comments": "",
- "outputs": 1,
- "x": 947.3124771118164,
- "y": 1650.634092926979,
- "z": "c2a8a65f.f4fdf8",
- "wires": [
- []
- ]
- },
- {
- "id": "a7b79856.9ac328",
- "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=\"`$payloadJson.input.callbackURL`\"/>\n<parameter name=\"httpMethod\" value=\"POST\"/>\n<parameter name=\"responsePrefix\" value=\"so-callback-activate-response\"/>\n<parameter name='contentType' value='application/json' /> \n<parameter name='format' value='json' />\n<parameter name='accept' value='*/*' />\n<parameter name=\"restapiUser\" value=\"`$prop.restapi.so.user`\" />\n<parameter name=\"restapiPassword\" value=\"`$prop.restapi.so.password`\"/>",
- "comments": "",
- "outputs": 1,
- "x": 816.3125762939453,
- "y": 1767.633797287941,
- "z": "c2a8a65f.f4fdf8",
- "wires": [
- [
- "d43e359a.459548",
- "d7154949.62a598"
- ]
- ]
- },
- {
- "id": "d43e359a.459548",
- "type": "failure",
- "name": "failure",
- "xml": "<outcome value='failure'>\n",
- "comments": "",
- "outputs": 1,
- "x": 981.3125762939453,
- "y": 1747.6337963342667,
- "z": "c2a8a65f.f4fdf8",
- "wires": [
- [
- "db93be20.d4c9a"
- ]
- ]
- },
- {
- "id": "d7154949.62a598",
- "type": "success",
- "name": "success",
- "xml": "<outcome value='success'>\n",
- "comments": "",
- "outputs": 1,
- "x": 973.3124694824219,
- "y": 1820.6337467432022,
- "z": "c2a8a65f.f4fdf8",
- "wires": [
- [
- "1cdebc40.cea3d4"
- ]
- ]
- },
- {
- "id": "1cdebc40.cea3d4",
- "type": "block",
- "name": "block",
- "xml": "<block>\n",
- "atomic": "false",
- "comments": "",
- "outputs": 1,
- "x": 1119.312313079834,
- "y": 1825.6338554620743,
- "z": "c2a8a65f.f4fdf8",
- "wires": [
- [
- "6a559c9e.74ffb4"
- ]
- ]
- },
- {
- "id": "db93be20.d4c9a",
- "type": "block",
- "name": "block",
- "xml": "<block>\n",
- "atomic": "false",
- "comments": "",
- "outputs": 1,
- "x": 1130.3124771118164,
- "y": 1743.6339317560196,
- "z": "c2a8a65f.f4fdf8",
- "wires": [
- [
- "ff299a70.cace58",
- "e497bce3.f3499"
- ]
- ]
- },
- {
- "id": "ff299a70.cace58",
- "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": 1277.3120956420898,
- "y": 1754.6336733102798,
- "z": "c2a8a65f.f4fdf8",
- "wires": []
- },
- {
- "id": "6a559c9e.74ffb4",
- "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/activateRANSlice.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"SO Response Sent \"/>",
- "comments": "",
- "outputs": 1,
- "x": 1280.3122329711914,
- "y": 1831.6337476968765,
- "z": "c2a8a65f.f4fdf8",
- "wires": [
- []
- ]
- },
- {
- "id": "e497bce3.f3499",
- "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": 1264.8227043151855,
- "y": 1658.6231647729874,
- "z": "c2a8a65f.f4fdf8",
- "wires": []
- },
- {
- "id": "12ab8339.c11cad",
- "type": "execute",
- "name": "generate URL for SO Callback",
- "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$prop.restapi.so.callbackURL`\"/>\n <parameter name=\"outputPath\" value=\"tmp.so.callbackURL\"/>\n <parameter name=\"target\" value=\"{requestId}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.requestID`\"/>",
- "comments": "",
- "outputs": 1,
- "x": 969.652099609375,
- "y": 1586.6192470788956,
- "z": "c2a8a65f.f4fdf8",
- "wires": [
- []
- ]
- },
- {
- "id": "cebd9071.34ebd",
- "type": "returnSuccess",
- "name": "return success",
- "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": 327.8125,
- "y": 1163.0624986886978,
- "z": "c2a8a65f.f4fdf8",
- "wires": []
- },
- {
- "id": "1cb02382.300dbc",
- "type": "execute",
- "name": "read RIC list size",
- "xml": "<set>\n<parameter name='tmp.RICList_length' value=\"`$getNFNSSIRIC-configdb-response._length`\"/>",
- "comments": "",
- "outputs": 1,
- "x": 696.8055038452148,
- "y": 953.7221685647964,
- "z": "c2a8a65f.f4fdf8",
- "wires": [
- []
- ]
- },
- {
- "id": "8353a8a3.3990f8",
- "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/activateRANSlice.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"cellLocalId \"/>\n<parameter name=\"field2\" value=\"`$tmp.cellLocalId`\"/>\n\n",
- "comments": "",
- "outputs": 1,
- "x": 1911.2499084472656,
- "y": 745.3890291452408,
- "z": "c2a8a65f.f4fdf8",
- "wires": [
- []
- ]
- },
- {
- "id": "65ede1f4.b65c2",
- "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/activateRANSlice.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"pLMNInfoList_length \"/>\n<parameter name=\"field2\" value=\"`$tmp.pLMNInfoList_length`\"/>\n\n",
- "comments": "",
- "outputs": 1,
- "x": 1911.2499465942383,
- "y": 836.5000387430191,
- "z": "c2a8a65f.f4fdf8",
- "wires": [
- []
- ]
- },
- {
- "id": "43b3554a.d72b5c",
- "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/activateRANSlice.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"PLMNInfo exists\"/>\n\n",
- "comments": "",
- "outputs": 1,
- "x": 2371.2498474121094,
- "y": 783.7222048044205,
- "z": "c2a8a65f.f4fdf8",
- "wires": [
- []
- ]
- },
- {
- "id": "ae3d93e1.a7a45",
- "type": "execute",
- "name": "read 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=\"`'getNFNSSIRIC-configdb-response.[' + $idy +'].nearRTRICId'`\" />\n ",
- "comments": "",
- "outputs": 1,
- "x": 843.7499923706055,
- "y": 986.2221380472183,
- "z": "c2a8a65f.f4fdf8",
- "wires": [
- []
- ]
- },
- {
- "id": "3d251ba4.ddf994",
- "type": "block",
- "name": "block : atomic",
- "xml": "<block atomic='true'>",
- "atomic": "true",
- "comments": "",
- "outputs": 1,
- "x": 651.5277404785156,
- "y": 1002.888830780983,
- "z": "c2a8a65f.f4fdf8",
- "wires": [
- [
- "ae3d93e1.a7a45"
- ]
- ]
- },
- {
- "id": "d243ac82.e496d",
- "type": "execute",
- "name": "prepare nearRTRICId",
- "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$tmp.patchPLMNInfoList-CUUP.url`\"/>\n <parameter name=\"outputPath\" value=\"tmp.patchPLMNInfoList-CUUP.url\"/>\n <parameter name=\"target\" value=\"{idNearRTRIC}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.nearRTRICId`\"/>\n",
- "comments": "",
- "outputs": 1,
- "x": 2040.4165954589844,
- "y": 1188.4444338083267,
- "z": "c2a8a65f.f4fdf8",
- "wires": [
- []
- ]
- },
- {
- "id": "529b3f7c.a9647",
- "type": "execute",
- "name": "prepare mcc",
- "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$tmp.patchPLMNInfoList-CUUP.url`\"/>\n <parameter name=\"outputPath\" value=\"tmp.patchPLMNInfoList-CUUP.url\"/>\n <parameter name=\"target\" value=\"{mcc}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.mcc`\"/>\n",
- "comments": "",
- "outputs": 1,
- "x": 2037.0832214355469,
- "y": 1265.1110597848892,
- "z": "c2a8a65f.f4fdf8",
- "wires": [
- []
- ]
- },
- {
- "id": "c8d88690.37d198",
- "type": "execute",
- "name": "prepare mnc",
- "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$tmp.patchPLMNInfoList-CUUP.url`\"/>\n <parameter name=\"outputPath\" value=\"tmp.patchPLMNInfoList-CUUP.url\"/>\n <parameter name=\"target\" value=\"{mnc}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.mnc`\"/>\n",
- "comments": "",
- "outputs": 1,
- "x": 2033.7498474121094,
- "y": 1298.4444338083267,
- "z": "c2a8a65f.f4fdf8",
- "wires": [
- []
- ]
- },
- {
- "id": "ec2b70ec.e4dcb",
- "type": "execute",
- "name": "read sNSSAI from getNFNSSIRIC-configdb-response",
- "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'>\n\t<parameter name='outputPath' value='tmp.configDBSNSSAI' />\n\t<parameter name='source' value=\"`'getNFNSSIRIC-configdb-response.['+ $idy +'].gNBCUUPList['+ $id-cuup +'].pLMNInfoList['+ $id-plmn +'].sNSSAI['+$id-cuupnssai+'].sNSSAI'`\" />",
- "comments": "",
- "outputs": 1,
- "x": 2106.5834197998047,
- "y": 1002.6666955947876,
- "z": "c2a8a65f.f4fdf8",
- "wires": [
- []
- ]
- },
- {
- "id": "72b414ad.1d2d0c",
- "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/activateRANSlice.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"sNSSAI - getNFNSSIRIC-configdb-response\"/>\n<parameter name=\"field2\" value=\"`$tmp.configDBSNSSAI`\"/>\n<parameter name=\"field3\" value=\"sNSSAI from request\"/>\n<parameter name=\"field4\" value=\"`$tmp.sNSSAI`\"/>\n\n",
- "comments": "",
- "outputs": 1,
- "x": 1963.4726104736328,
- "y": 1042.444465637207,
- "z": "c2a8a65f.f4fdf8",
- "wires": [
- []
- ]
- },
- {
- "id": "720819d9.bc5d78",
- "type": "switchNode",
- "name": "is NSSAI exists",
- "xml": "<switch test='`$tmp.configDBSNSSAI == $tmp.sNSSAI`'>\n",
- "comments": "",
- "outputs": 1,
- "x": 1966.6945724487305,
- "y": 1077.5555658340454,
- "z": "c2a8a65f.f4fdf8",
- "wires": [
- [
- "ce68019d.d9b15",
- "4c5e2da7.e835f4"
- ]
- ]
- },
- {
- "id": "ce68019d.d9b15",
- "type": "outcome",
- "name": "True",
- "xml": "<outcome value='true'>\n",
- "comments": "",
- "outputs": 1,
- "x": 2149.3891792297363,
- "y": 1047.6667709350586,
- "z": "c2a8a65f.f4fdf8",
- "wires": [
- [
- "aeb42d0d.8b6e2"
- ]
- ]
- },
- {
- "id": "51ac29dc.473308",
- "type": "block",
- "name": "block : atomic",
- "xml": "<block atomic='true'>",
- "atomic": "true",
- "comments": "",
- "outputs": 1,
- "x": 1765.6943054199219,
- "y": 1030.6666017770767,
- "z": "c2a8a65f.f4fdf8",
- "wires": [
- [
- "90abe626.d80828",
- "cf5bb551.50bc48",
- "567e4ef1.2569d"
- ]
- ]
- },
- {
- "id": "4c5e2da7.e835f4",
- "type": "outcome",
- "name": "false",
- "xml": "<outcome value='false'>\n",
- "comments": "",
- "outputs": 1,
- "x": 2284.027576446533,
- "y": 1040.3333053588867,
- "z": "c2a8a65f.f4fdf8",
- "wires": [
- [
- "9ef2cf06.62985"
- ]
- ]
- },
- {
- "id": "9ef2cf06.62985",
- "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/activateRANSlice.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"sNSSAI doesn't match\"/>\n\n",
- "comments": "",
- "outputs": 1,
- "x": 2479.0277366638184,
- "y": 987.3332592248917,
- "z": "c2a8a65f.f4fdf8",
- "wires": [
- []
- ]
- },
- {
- "id": "f07a1efc.c684b",
- "type": "execute",
- "name": "read cell id",
- "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=\"`'getNFNSSIRIC-configdb-response.['+ $idy +'].gNBCUCPList['+ $idz +'].cellCUList['+ $idcu +'].cellLocalId'`\" />",
- "comments": "",
- "outputs": 1,
- "x": 1930.1388397216797,
- "y": 692.8888412714005,
- "z": "c2a8a65f.f4fdf8",
- "wires": [
- []
- ]
- },
- {
- "id": "af15dd5.a6c422",
- "type": "execute",
- "name": "read cellDU",
- "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'>\n\t<parameter name='outputPath' value='tmp.cellDULocalId' />\n\t<parameter name='source' value=\"`'getNFNSSIRIC-configdb-response.['+ $idy +'].gNBDUList['+ $id-du +'].cellDUList['+ $id-celldu +'].cellLocalId'`\" />",
- "comments": "",
- "outputs": 1,
- "x": 2009.3055114746094,
- "y": 1396.2221437692642,
- "z": "c2a8a65f.f4fdf8",
- "wires": [
- []
- ]
- },
- {
- "id": "23a3ebb3.2e07c4",
- "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/activateRANSlice.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"cellLocalId \"/>\n<parameter name=\"field2\" value=\"`$tmp.cellDULocalId`\"/>\n\n",
- "comments": "",
- "outputs": 1,
- "x": 2008.680191040039,
- "y": 1431.5345245599747,
- "z": "c2a8a65f.f4fdf8",
- "wires": [
- []
- ]
- },
- {
- "id": "9643217e.8cc45",
- "type": "switchNode",
- "name": "check the action",
- "xml": "<switch test='`$activate-r-a-n-slice-instance-input.action == activate`'>\n",
- "comments": "",
- "outputs": 1,
- "x": 712.9166641235352,
- "y": 440.6666451692581,
- "z": "c2a8a65f.f4fdf8",
- "wires": [
- [
- "a99d2439.51cb18",
- "87d1a970.979638"
- ]
- ]
- },
- {
- "id": "a99d2439.51cb18",
- "type": "outcome",
- "name": "True",
- "xml": "<outcome value='true'>\n",
- "comments": "",
- "outputs": 1,
- "x": 940.4166603088379,
- "y": 386.222248673439,
- "z": "c2a8a65f.f4fdf8",
- "wires": [
- [
- "bcdf9c78.c8fb1"
- ]
- ]
- },
- {
- "id": "87d1a970.979638",
- "type": "outcome",
- "name": "False",
- "xml": "<outcome value='false'>\n",
- "comments": "",
- "outputs": 1,
- "x": 942.6388053894043,
- "y": 445.11113607883453,
- "z": "c2a8a65f.f4fdf8",
- "wires": [
- [
- "4dba95dc.4decdc"
- ]
- ]
- },
- {
- "id": "9c35bb65.560c98",
- "type": "set",
- "name": "set status as ACTIVE",
- "xml": "<set>\n<parameter name='tmp.status' value='ACTIVE' />",
- "comments": "",
- "x": 1394.8612327575684,
- "y": 356.222212433815,
- "z": "c2a8a65f.f4fdf8",
- "wires": []
- },
- {
- "id": "1ca88a0f.7c8306",
- "type": "set",
- "name": "set status as INACTIVE",
- "xml": "<set>\n<parameter name='tmp.status' value='INACTIVE' />",
- "comments": "",
- "x": 1369.305576324463,
- "y": 389.55556643009186,
- "z": "c2a8a65f.f4fdf8",
- "wires": []
- },
- {
- "id": "bcdf9c78.c8fb1",
- "type": "block",
- "name": "block : atomic",
- "xml": "<block atomic='true'>",
- "atomic": "true",
- "comments": "",
- "outputs": 1,
- "x": 1150.416660308838,
- "y": 373.9999586343765,
- "z": "c2a8a65f.f4fdf8",
- "wires": [
- [
- "9c35bb65.560c98"
- ]
- ]
- },
- {
- "id": "4dba95dc.4decdc",
- "type": "block",
- "name": "block : atomic",
- "xml": "<block atomic='true'>",
- "atomic": "true",
- "comments": "",
- "outputs": 1,
- "x": 1147.0834045410156,
- "y": 430.66668713092804,
- "z": "c2a8a65f.f4fdf8",
- "wires": [
- [
- "1ca88a0f.7c8306"
- ]
- ]
- },
- {
- "id": "5841dea.bd55b2",
- "type": "block",
- "name": "block : atomic",
- "xml": "<block atomic=\"true\">",
- "atomic": "true",
- "outputs": 1,
- "x": 717,
- "y": 871.75,
- "z": "c2a8a65f.f4fdf8",
- "wires": [
- [
- "a454dbd9.309b08",
- "e2aeea87.1a49f8"
- ]
- ]
- },
- {
- "id": "a454dbd9.309b08",
- "type": "execute",
- "name": "split pLMNId",
- "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='split'>\n <parameter name=\"original_string\" value=\"`$tmp.pLMNId`\" />\n <parameter name=\"regex\" value=\"-\"/>\n <parameter name=\"ctx_memory_result_key\" value=\"tmp.plmnList\" />",
- "comments": "",
- "outputs": 1,
- "x": 978.2724990844727,
- "y": 754.262303352356,
- "z": "c2a8a65f.f4fdf8",
- "wires": [
- []
- ]
- },
- {
- "id": "e2aeea87.1a49f8",
- "type": "set",
- "name": "set mcc & mnc Variables",
- "xml": "<set>\n<parameter name='tmp.mcc' value='`$tmp.plmnList[0]`'/>\n<parameter name='tmp.mnc' value='`$tmp.plmnList[1]`'/>",
- "comments": "",
- "x": 1008.7270889282227,
- "y": 801.3077440261841,
- "z": "c2a8a65f.f4fdf8",
- "wires": []
- },
- {
- "id": "d927155a.039578",
- "type": "execute",
- "name": "read snssailist size",
- "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'>\n\t<parameter name='outputPath' value='tmp.snssaiList_length' />\n\t<parameter name='source' value=\"`'getNFNSSIRIC-configdb-response.['+ $idy +'].gNBCUCPList['+ $idz +'].cellCUList['+ $idcu +'].pLMNInfoList['+$id-cuplmn+'].sNSSAI_length'`\" />",
- "comments": "",
- "outputs": 1,
- "x": 2368.75,
- "y": 711,
- "z": "c2a8a65f.f4fdf8",
- "wires": [
- []
- ]
- },
- {
- "id": "74ff916a.e9c5b",
- "type": "for",
- "name": "foreach snssai",
- "xml": "<for index='id-cunssai' start='0' end='`$tmp.snssaiList_length`' >\n",
- "comments": "",
- "outputs": 1,
- "x": 2376.75,
- "y": 751,
- "z": "c2a8a65f.f4fdf8",
- "wires": [
- [
- "f7606cb5.7a1c7"
- ]
- ]
- },
- {
- "id": "f7606cb5.7a1c7",
- "type": "block",
- "name": "block : atomic",
- "xml": "<block atomic='true'>",
- "atomic": "true",
- "comments": "",
- "outputs": 1,
- "x": 2570,
- "y": 753.5,
- "z": "c2a8a65f.f4fdf8",
- "wires": [
- [
- "1c0a37ea.375948",
- "ecaa22b7.75297",
- "e298fc24.8e892"
- ]
- ]
- },
- {
- "id": "90abe626.d80828",
- "type": "execute",
- "name": "read snssailist size",
- "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'>\n\t<parameter name='outputPath' value='tmp.snssaiListup_length' />\n\t<parameter name='source' value=\"`'getNFNSSIRIC-configdb-response.['+ $idy +'].gNBCUUPList['+ $id-cuup +'].pLMNInfoList['+$id-plmn+'].sNSSAI_length'`\" />",
- "comments": "",
- "outputs": 1,
- "x": 2002.749984741211,
- "y": 903.2500534057617,
- "z": "c2a8a65f.f4fdf8",
- "wires": [
- []
- ]
- },
- {
- "id": "cf5bb551.50bc48",
- "type": "for",
- "name": "foreach snssai",
- "xml": "<for index='id-cuupnssai' start='0' end='`$tmp.snssaiListup_length`' >\n",
- "comments": "",
- "outputs": 1,
- "x": 1988.7500228881836,
- "y": 961.250054359436,
- "z": "c2a8a65f.f4fdf8",
- "wires": [
- [
- "c4f6f336.48282"
- ]
- ]
- },
- {
- "id": "c4f6f336.48282",
- "type": "block",
- "name": "block : atomic",
- "xml": "<block atomic='true'>",
- "atomic": "true",
- "comments": "",
- "outputs": 1,
- "x": 2197.9999923706055,
- "y": 957.750054359436,
- "z": "c2a8a65f.f4fdf8",
- "wires": [
- [
- "ec2b70ec.e4dcb",
- "72b414ad.1d2d0c",
- "720819d9.bc5d78"
- ]
- ]
- },
- {
- "id": "2a0b3e44.22f042",
- "type": "execute",
- "name": "read snssailist size",
- "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'>\n\t<parameter name='outputPath' value='tmp.snssaiListdu_length' />\n\t<parameter name='source' value=\"`'getNFNSSIRIC-configdb-response.['+ $idy +'].gNBDUList['+ $id-du +'].cellDUList['+ $id-celldu +'].pLMNInfoList['+$id-duplmn+'].sNSSAI_length'`\" />",
- "comments": "",
- "outputs": 1,
- "x": 2390.75,
- "y": 1404.25,
- "z": "c2a8a65f.f4fdf8",
- "wires": [
- []
- ]
- },
- {
- "id": "d2b6fc8.a0801",
- "type": "for",
- "name": "foreach snssai",
- "xml": "<for index='id-dunssai' start='0' end='`$tmp.snssaiListdu_length`' >\n",
- "comments": "",
- "outputs": 1,
- "x": 2398.75,
- "y": 1444.25,
- "z": "c2a8a65f.f4fdf8",
- "wires": [
- [
- "2368c209.6d976e"
- ]
- ]
- },
- {
- "id": "2368c209.6d976e",
- "type": "block",
- "name": "block : atomic",
- "xml": "<block atomic='true'>",
- "atomic": "true",
- "comments": "",
- "outputs": 1,
- "x": 2592,
- "y": 1446.75,
- "z": "c2a8a65f.f4fdf8",
- "wires": [
- [
- "6d2985a2.a415bc",
- "18e75616.57f2da",
- "244e64a3.dccd7c"
- ]
- ]
- },
- {
- "id": "567e4ef1.2569d",
- "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/activateRANSlice.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"CUUP - snssaiList_length\"/>\n<parameter name=\"field2\" value=\"`$tmp.snssaiListup_length`\"/>\n\n",
- "comments": "",
- "outputs": 1,
- "x": 2003,
- "y": 930.75,
- "z": "c2a8a65f.f4fdf8",
- "wires": [
- []
- ]
- }
+[
+ {
+ "id": "cbeeb2b4.08be",
+ "type": "method",
+ "name": "method",
+ "xml": "<method rpc='activateRANSliceInstance' mode='sync'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 127.77777099609375,
+ "y": 262.1111030578613,
+ "z": "bd96de55.9bb33",
+ "wires": [
+ [
+ "4934df84.366e5"
+ ]
+ ]
+ },
+ {
+ "id": "83fc8fd.86fe57",
+ "type": "dgstart",
+ "name": "DGSTART",
+ "outputs": 1,
+ "x": 130.77777099609375,
+ "y": 112.11109924316406,
+ "z": "bd96de55.9bb33",
+ "wires": [
+ [
+ "80b48287.4a7dc"
+ ]
+ ]
+ },
+ {
+ "id": "80b48287.4a7dc",
+ "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": 188.7777557373047,
+ "y": 173.1111946105957,
+ "z": "bd96de55.9bb33",
+ "wires": [
+ [
+ "cbeeb2b4.08be"
+ ]
+ ]
+ },
+ {
+ "id": "4934df84.366e5",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 281.77777099609375,
+ "y": 339.11109924316406,
+ "z": "bd96de55.9bb33",
+ "wires": [
+ [
+ "792d5f61.e1a"
+ ]
+ ]
+ },
+ {
+ "id": "792d5f61.e1a",
+ "type": "switchNode",
+ "name": "switch configdb deployed",
+ "xml": "<switch test='`$prop.configdb-deployed`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 454.7777786254883,
+ "y": 269.1111030578613,
+ "z": "bd96de55.9bb33",
+ "wires": [
+ [
+ "3f02381e.f83f98",
+ "39b8dcff.f57854"
+ ]
+ ]
+ },
+ {
+ "id": "3f02381e.f83f98",
+ "type": "outcome",
+ "name": "ConfigDB Deployed",
+ "xml": "<outcome value='true'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 705.7778015136719,
+ "y": 244.11106872558594,
+ "z": "bd96de55.9bb33",
+ "wires": [
+ [
+ "f5e5b350.07f74"
+ ]
+ ]
+ },
+ {
+ "id": "39b8dcff.f57854",
+ "type": "outcome",
+ "name": "CPS Deployed",
+ "xml": "<outcome value='false'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 660.7777786254883,
+ "y": 393.11110496520996,
+ "z": "bd96de55.9bb33",
+ "wires": [
+ [
+ "6ba3a8da.c6fb28"
+ ]
+ ]
+ },
+ {
+ "id": "6ba3a8da.c6fb28",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 881.7777824401855,
+ "y": 389.1110806465149,
+ "z": "bd96de55.9bb33",
+ "wires": [
+ [
+ "8bbc92db.7c75",
+ "d10e4755.9fd258"
+ ]
+ ]
+ },
+ {
+ "id": "f5e5b350.07f74",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 918.7777709960938,
+ "y": 253.11109924316406,
+ "z": "bd96de55.9bb33",
+ "wires": [
+ [
+ "16326111.d238cf",
+ "f00a9827.ca6c88"
+ ]
+ ]
+ },
+ {
+ "id": "16326111.d238cf",
+ "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=\"Calling instantiateRANSliceModifyAllocate-CPS \"/>",
+ "comments": "",
+ "outputs": 1,
+ "x": 1102.7777709960938,
+ "y": 210.11109924316406,
+ "z": "bd96de55.9bb33",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "f00a9827.ca6c88",
+ "type": "call",
+ "name": "call activateRanslice-configdb",
+ "xml": "<call module='ran-slice-api' rpc='activateRANSliceInstance-configDb' mode='sync' >\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1186.2344970703125,
+ "y": 264.8611354827881,
+ "z": "bd96de55.9bb33",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "8bbc92db.7c75",
+ "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=\"Calling instantiateRANSliceModifyAllocate-CPS \"/>",
+ "comments": "",
+ "outputs": 1,
+ "x": 1085.7777709960938,
+ "y": 388.11109924316406,
+ "z": "bd96de55.9bb33",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "d10e4755.9fd258",
+ "type": "call",
+ "name": "call activateRanslice-cps",
+ "xml": "<call module='ran-slice-api' rpc='activateRANSliceInstance-cps' mode='sync' >\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1171.4566688537598,
+ "y": 442.8611068725586,
+ "z": "bd96de55.9bb33",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "78b5a044.95fba",
+ "type": "comment",
+ "name": "activateRANSliceInstance",
+ "info": "",
+ "comments": "",
+ "x": 665.7777709960938,
+ "y": 51.11109924316406,
+ "z": "bd96de55.9bb33",
+ "wires": []
+ }
] \ No newline at end of file
diff --git a/platform-logic/ran-slice-api/src/main/xml/ran-slice-api_activateRANSliceInstance-configdb.xml b/platform-logic/ran-slice-api/src/main/xml/ran-slice-api_activateRANSliceInstance-configdb.xml
new file mode 100644
index 00000000..0cd09eba
--- /dev/null
+++ b/platform-logic/ran-slice-api/src/main/xml/ran-slice-api_activateRANSliceInstance-configdb.xml
@@ -0,0 +1,932 @@
+<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='activateRANSliceInstance' mode='sync'>
+ <block atomic='true'>
+ <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
+ <parameter name="file" value="/opt/opendaylight/current/data/log/activateRANSlice.log" />
+ <parameter name="level" value="info" />
+ <parameter name="field1" value="RPC to handle activateRANSlice.: "/>
+ <parameter name="field2" value="`$activate-r-a-n-slice-instance-input.action`"/>
+ <parameter name="field3" value="`$activate-r-a-n-slice-instance-input.timestamp`"/>
+ <parameter name="field4" value="`$activate-r-a-n-slice-instance-input.common-header.request-id`"/>
+ <parameter name="field5" value="`$activate-r-a-n-slice-instance-input.common-header.originator-id`"/>
+ <parameter name="field6" value="RPC Payload String "/>
+ <parameter name="field7" value="`$activate-r-a-n-slice-instance-input.payload`"/>
+ </record>
+ <set>
+ <parameter name='error-code' value='200' />
+ <parameter name='error-message' value='Successful execution of activateRANSice RPC' />
+ </set>
+ <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='jsonStringToCtx'>
+ <parameter name='source' value='activate-r-a-n-slice-instance-input.payload' />
+ <parameter name='outputPath' value='payloadJson' />
+ <parameter name='isEscaped' value='false' />
+ <outcome value='success'>
+ <block atomic='true'>
+ <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='printContext' >
+ <parameter name='filename' value='/opt/opendaylight/current/data/log/ranSlice-activateRANSlice-context.log' />
+ </execute>
+ <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
+ <parameter name="file" value="/opt/opendaylight/current/data/log/activateRANSlice.log" />
+ <parameter name="level" value="info" />
+ <parameter name="field1" value="Payload for activateRANSlice.: "/>
+ <parameter name="field2" value="`$payloadJson.input.sNSSAI`"/>
+ <parameter name="field3" value="`$payloadJson.input.RANNFNSSIId`"/>
+ <parameter name="field4" value="`$payloadJson.input.callbackURL`"/>
+ <parameter name="field5" value="`$payloadJson.input.sliceProfileId`"/>
+ </record>
+ </block>
+ </outcome>
+ </execute>
+ <set>
+ <parameter name='tmp.sNSSAI' value="`$payloadJson.input.sNSSAI`" />
+ </set>
+ <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='printContext' >
+ <parameter name='filename' value='/opt/opendaylight/current/data/log/ranSlice-activateRANSlice-context.log' />
+ </execute>
+ <execute plugin='org.onap.ccsdk.sli.plugins.prop.PropertiesNode' method='readProperties' >
+ <parameter name='fileName' value='/opt/onap/ccsdk/data/properties/ran-slice-api-dg.properties' />
+ <parameter name='contextPrefix' value='prop' />
+ </execute>
+ <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
+ <parameter name="file" value="/opt/opendaylight/current/data/log/activateRANSlice.log" />
+ <parameter name="level" value="info" />
+ <parameter name="field1" value="Properties read .. controller details "/>
+ <parameter name="field2" value="`$prop.controller.user`"/>
+ <parameter name="field3" value="`$prop.controller.pwd`"/>
+ <parameter name="field4" value="`$prop.controller.url`"/>
+ <parameter name="field5" value="ransim-mounted (true/false): "/>
+ <parameter name="field6" value="`$prop.ransim-mounted`"/>
+ <parameter name="field7" value="config DB deployed (true/false): "/>
+ <parameter name="field8" value="`$prop.configdb-deployed`"/>
+ </record>
+ <switch test='`$activate-r-a-n-slice-instance-input.action == activate`'>
+ <outcome value='true'>
+ <block atomic='true'>
+ <set>
+ <parameter name='tmp.status' value='ACTIVE' />
+ </set>
+ </block>
+ </outcome>
+ <outcome value='false'>
+ <block atomic='true'>
+ <set>
+ <parameter name='tmp.status' value='INACTIVE' />
+ </set>
+ </block>
+ </outcome>
+ </switch>
+ <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >
+ <parameter name="source" value="`$prop.restapi.configdb.getNearRTRICByNSSI`"/>
+ <parameter name="outputPath" value="tmp.configdb.getNearRTRICByNSSI.url"/>
+ <parameter name="target" value="{ranNFNSSIId}"/>
+ <parameter name="replacement" value="`$payloadJson.input.RANNFNSSIId`"/>
+ </execute>
+ <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
+ <parameter name="file" value="/opt/opendaylight/current/data/log/activateRANSlice.log" />
+ <parameter name="level" value="info" />
+ <parameter name="field1" value="URL for configDB to Get NearRTRIC for RANNFNSSI"/>
+ <parameter name='field2' value="`$prop.configdb.url + $tmp.configdb.getNearRTRICByNSSI.url`" />
+ <parameter name='field3' value="`$ranNFNSSIId`" />
+ </record>
+ <execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >
+ <parameter name="restapiUrl" value="`$prop.configdb.url + $tmp.configdb.getNearRTRICByNSSI.url`"/>
+ <parameter name="httpMethod" value="GET"/>
+ <parameter name="responsePrefix" value="getNFNSSIRIC-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>
+ <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="`$activate-r-a-n-slice-instance-input.common-header.request-id`"/>
+ <parameter name="tmp.action" value="`$activate-r-a-n-slice-instance-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`" />
+ </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-activate-response"/>
+ <parameter name='contentType' value='application/json' />
+ <parameter name='format' value='json' />
+ <parameter name='accept' value='*/*' />
+ <parameter name="convertResponse" value="true"/>
+ <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/activateRANSlice.log" />
+ <parameter name="level" value="info" />
+ <parameter name="field1" value="SO Response Sent "/>
+ </record>
+ </block>
+ </outcome>
+ </execute>
+ </block>
+ </block>
+ </outcome>
+ <outcome value='success'>
+ <block atomic='true'>
+ <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
+ <parameter name="file" value="/opt/opendaylight/current/data/log/activateRANSlice.log" />
+ <parameter name="level" value="info" />
+ <parameter name="field1" value="Successfully Obtained NearRT RIC info from ConfigDB"/>
+ <parameter name="field2" value="`$getNFNSSIRIC-configdb-response._length`"/>
+ </record>
+ <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='printContext' >
+ <parameter name='filename' value='/opt/opendaylight/current/data/log/ranSlice-activateRANSlice-context.log' />
+ </execute>
+ </block>
+ </outcome>
+ </execute>
+ <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >
+ <parameter name="source" value="`$prop.restapi.configdb.getplmn`"/>
+ <parameter name="outputPath" value="tmp.configdb.getPLMNId.url"/>
+ <parameter name="target" value="{sliceProfileId}"/>
+ <parameter name="replacement" value="`$payloadJson.input.sliceProfileId`"/>
+ </execute>
+ <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
+ <parameter name="file" value="/opt/opendaylight/current/data/log/activateRANSlice.log" />
+ <parameter name="level" value="info" />
+ <parameter name="field1" value="Get PLMN from SliceProfileId URL: "/>
+ <parameter name="field2" value="`$tmp.configdb.getPLMNId.url`"/>
+ </record>
+ <execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >
+ <parameter name="restapiUrl" value="`$prop.configdb.url + $tmp.configdb.getPLMNId.url`"/>
+ <parameter name="httpMethod" value="GET"/>
+ <parameter name="responsePrefix" value="getPLMN-configdb-response"/>
+ <parameter name='contentType' value='application/json' />
+ <parameter name='format' value='json' />
+ <parameter name='accept' value='application/json' />
+ <parameter name="convertResponse" value="true"/>
+ </execute>
+ <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'>
+ <parameter name='outputPath' value='tmp.pLMNId' />
+ <parameter name='source' value="`getPLMN-configdb-response.plmnId`" />
+ </execute>
+ <block atomic="true">
+ <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='split'>
+ <parameter name="original_string" value="`$tmp.pLMNId`" />
+ <parameter name="regex" value="-"/>
+ <parameter name="ctx_memory_result_key" value="tmp.plmnList" />
+ </execute>
+ <set>
+ <parameter name='tmp.mcc' value='`$tmp.plmnList[0]`'/>
+ <parameter name='tmp.mnc' value='`$tmp.plmnList[1]`'/>
+ </set>
+ </block>
+ <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
+ <parameter name="file" value="/opt/opendaylight/current/data/log/activateRANSlice.log" />
+ <parameter name="level" value="info" />
+ <parameter name="field1" value="`$tmp.pLMNId`"/>
+ <parameter name="field2" value="`$tmp.mcc`"/>
+ <parameter name="field3" value="`$tmp.mnc`"/>
+ </record>
+ <set>
+ <parameter name='tmp.RICList_length' value="`$getNFNSSIRIC-configdb-response._length`"/>
+ </set>
+ <for index='idy' start='0' end='`$tmp.RICList_length`' >
+ <block atomic='true'>
+ <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'>
+ <parameter name='outputPath' value='tmp.nearRTRICId' />
+ <parameter name='source' value="`'getNFNSSIRIC-configdb-response.[' + $idy +'].nearRTRICId'`" />
+ </execute>
+ </block>
+ <block atomic='true'>
+ <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'>
+ <parameter name='outputPath' value='tmp.CUCPList_length' />
+ <parameter name='source' value="`'getNFNSSIRIC-configdb-response.[' + $idy +'].gNBCUCPList_length'`" />
+ </execute>
+ <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
+ <parameter name="file" value="/opt/opendaylight/current/data/log/activateRANSlice.log" />
+ <parameter name="level" value="info" />
+ <parameter name="field1" value="Number of CUCP List Entries "/>
+ <parameter name="field2" value="`$tmp.CUCPList_length`"/>
+ <parameter name="field3" value="for the NearRTRIC"/>
+ <parameter name="field4" value="`$tmp.nearRTRICId`"/>
+ </record>
+ <for index='idz' start='0' end='`$tmp.CUCPList_length`'>
+ <block atomic='true'>
+ <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'>
+ <parameter name='outputPath' value='tmp.CUCPName' />
+ <parameter name='source' value="`'getNFNSSIRIC-configdb-response.['+ $idy +'].gNBCUCPList['+ $idz +'].gNBCUName'`" />
+ </execute>
+ <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
+ <parameter name="file" value="/opt/opendaylight/current/data/log/activateRANSlice.log" />
+ <parameter name="level" value="info" />
+ <parameter name="field1" value="CUCPName "/>
+ <parameter name="field2" value="`$tmp.CUCPName`"/>
+ </record>
+ <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'>
+ <parameter name='outputPath' value='tmp.cellCUList_length' />
+ <parameter name='source' value="`'getNFNSSIRIC-configdb-response.[' + $idy +'].gNBCUCPList[' + $idz +'].cellCUList_length'`" />
+ </execute>
+ <for index='idcu' start='0' end='`$tmp.cellCUList_length`' >
+ <block atomic='true'>
+ <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'>
+ <parameter name='outputPath' value='tmp.cellLocalId' />
+ <parameter name='source' value="`'getNFNSSIRIC-configdb-response.['+ $idy +'].gNBCUCPList['+ $idz +'].cellCUList['+ $idcu +'].cellLocalId'`" />
+ </execute>
+ <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'>
+ <parameter name='outputPath' value='tmp.pLMNInfoList_length' />
+ <parameter name='source' value="`'getNFNSSIRIC-configdb-response.['+ $idy +'].gNBCUCPList['+ $idz +'].cellCUList['+ $idcu +'].pLMNInfoList_length'`" />
+ </execute>
+ <for index='id-cuplmn' start='0' end='`$tmp.pLMNInfoList_length`' >
+ <block atomic='true'>
+ <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'>
+ <parameter name='outputPath' value='tmp.snssaiList_length' />
+ <parameter name='source' value="`'getNFNSSIRIC-configdb-response.['+ $idy +'].gNBCUCPList['+ $idz +'].cellCUList['+ $idcu +'].pLMNInfoList['+$id-cuplmn+'].sNSSAI_length'`" />
+ </execute>
+ <for index='id-cunssai' start='0' end='`$tmp.snssaiList_length`' >
+ <block atomic='true'>
+ <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'>
+ <parameter name='outputPath' value='tmp.configDBSNSSAI' />
+ <parameter name='source' value="`'getNFNSSIRIC-configdb-response.['+ $idy +'].gNBCUCPList['+ $idz +'].cellCUList['+ $idcu +'].pLMNInfoList['+ $id-cuplmn +'].sNSSAI['+$id-cunssai+'].sNSSAI'`" />
+ </execute>
+ <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
+ <parameter name="file" value="/opt/opendaylight/current/data/log/activateRANSlice.log" />
+ <parameter name="level" value="info" />
+ <parameter name="field1" value="sNSSAI - getNFNSSIRIC-configdb-response"/>
+ <parameter name="field2" value="`$tmp.configDBSNSSAI`"/>
+ <parameter name="field3" value="sNSSAI from request"/>
+ <parameter name="field4" value="`$tmp.sNSSAI`"/>
+ </record>
+ <switch test='`$tmp.configDBSNSSAI == $tmp.sNSSAI`'>
+ <outcome value='true'>
+ <block atomic='true'>
+ <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
+ <parameter name="file" value="/opt/opendaylight/current/data/log/activateRANSlice.log" />
+ <parameter name="level" value="info" />
+ <parameter name="field1" value="CellCU is applicable for the NSSAI "/>
+ </record>
+ <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.patchPLMNInfoListEntry.ToNRCellCU`"/>
+ <parameter name="outputPath" value="tmp.patchPLMNInfoListEntry.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.patchPLMNInfoListEntry.ToNRCellCU.ransim-mounted`"/>
+ <parameter name="outputPath" value="tmp.patchPLMNInfoListEntry.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.patchPLMNInfoListEntry.url`"/>
+ <parameter name="outputPath" value="tmp.patchPLMNInfoListEntry.url"/>
+ <parameter name="target" value="{mountName}"/>
+ <parameter name="replacement" value="`$tmp.CUCPName`"/>
+ </execute>
+ </block>
+ </outcome>
+ </switch>
+ <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'>
+ <parameter name='outputPath' value='tmp.cellCULocalId' />
+ <parameter name='source' value="`'getNFNSSIRIC-configdb-response.['+ $idy +'].gNBCUCPList['+ $idz +'].cellCUList['+ $idcu +'].cellLocalId'`" />
+ </execute>
+ <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >
+ <parameter name="source" value="`$tmp.patchPLMNInfoListEntry.url`"/>
+ <parameter name="outputPath" value="tmp.patchPLMNInfoListEntry.url"/>
+ <parameter name="target" value="{idGNBCUCPFunction}"/>
+ <parameter name="replacement" value="`$tmp.CUCPName`"/>
+ </execute>
+ <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >
+ <parameter name="source" value="`$tmp.patchPLMNInfoListEntry.url`"/>
+ <parameter name="outputPath" value="tmp.patchPLMNInfoListEntry.url"/>
+ <parameter name="target" value="{idNRCellCU}"/>
+ <parameter name="replacement" value="`$tmp.cellCULocalId`"/>
+ </execute>
+ <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >
+ <parameter name="source" value="`$tmp.patchPLMNInfoListEntry.url`"/>
+ <parameter name="outputPath" value="tmp.patchPLMNInfoListEntry.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.patchPLMNInfoListEntry.url`"/>
+ <parameter name="outputPath" value="tmp.patchPLMNInfoListEntry.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/activateRANSlice.log" />
+ <parameter name="level" value="info" />
+ <parameter name="field1" value="patch cellCU NSSAI parameters"/>
+ <parameter name="field2" value="`$tmp.nearRTRICId`"/>
+ <parameter name="field3" value="`$tmp.CUCPName`"/>
+ <parameter name="field4" value="`$tmp.cellCULocalId`"/>
+ <parameter name="field5" value="`$tmp.mcc`"/>
+ <parameter name="field6" value="`$tmp.mnc`"/>
+ <parameter name="field7" value="`$tmp.patchPLMNInfoListEntry.url`"/>
+ </record>
+ <execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >
+ <parameter name="templateFileName" value="`$prop.restapi.templateDir + '/ranSlice-patch-sNSSAI-status.json'`" />
+ <parameter name="restapiUrl" value="`$prop.controller.url + $tmp.patchPLMNInfoListEntry.url`"/>
+ <parameter name="restapiUser" value="`$prop.controller.user`" />
+ <parameter name="restapiPassword" value="`$prop.controller.pwd`"/>
+ <parameter name="httpMethod" value="PATCH"/>
+ <parameter name="responsePrefix" value="activate-cellCU-PLMNInfoList-response"/>
+ <parameter name='contentType' value='application/yang.patch+json' />
+ <parameter name='accept' value='application/yang.patch-status+json'/>
+ <parameter name='format' value='json' />
+ <outcome value='failure'>
+ <block atomic='true'>
+ <set>
+ <parameter name='error-code' value='500'/>
+ <parameter name='error-message' value='Error patching cellCU PLMNInfoList. 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 NRcellCU - PLMNInfo. 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="`$activate-r-a-n-slice-instance-input.common-header.request-id`"/>
+ <parameter name="tmp.action" value="`$activate-r-a-n-slice-instance-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`" />
+ </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-activate-response"/>
+ <parameter name='contentType' value='application/json' />
+ <parameter name='format' value='json' />
+ <parameter name='accept' value='*/*' />
+ <parameter name="convertResponse" value="true"/>
+ <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/activateRANSlice.log" />
+ <parameter name="level" value="info" />
+ <parameter name="field1" value="SO Response Sent "/>
+ </record>
+ </block>
+ </outcome>
+ </execute>
+ </block>
+ </block>
+ </outcome>
+ <outcome value='success'>
+ <block atomic='true'>
+ <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
+ <parameter name="file" value="/opt/opendaylight/current/data/log/activateRANSlice.log" />
+ <parameter name="level" value="info" />
+ <parameter name="field1" value="Successfully Patched - cellCU PLMNInfo List"/>
+ </record>
+ </block>
+ </outcome>
+ </execute>
+ </block>
+ </outcome>
+ </switch>
+ </block>
+ </for>
+ </block>
+ </for>
+ </block>
+ </for>
+ </block>
+ </for>
+ </block>
+ <block atomic='true'>
+ <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'>
+ <parameter name='outputPath' value='tmp.CUUPList_length' />
+ <parameter name='source' value="`'getNFNSSIRIC-configdb-response.[' + $idy +'].gNBCUUPList_length'`" />
+ </execute>
+ <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
+ <parameter name="file" value="/opt/opendaylight/current/data/log/activateRANSlice.log" />
+ <parameter name="level" value="info" />
+ <parameter name="field1" value="Number of CUCP List Entries "/>
+ <parameter name="field2" value="`$tmp.CUUPList_length`"/>
+ <parameter name="field3" value="for the NearRTRIC"/>
+ <parameter name="field4" value="`$tmp.nearRTRICId`"/>
+ </record>
+ <for index='id-cuup' start='0' end='`$tmp.CUUPList_length`'>
+ <block atomic='true'>
+ <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'>
+ <parameter name='outputPath' value='tmp.idGNBCUUPFunction' />
+ <parameter name='source' value="`'getNFNSSIRIC-configdb-response.['+ $idy +'].gNBCUUPList['+ $id-cuup +'].gNBCUUPId'`" />
+ </execute>
+ <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
+ <parameter name="file" value="/opt/opendaylight/current/data/log/activateRANSlice.log" />
+ <parameter name="level" value="info" />
+ <parameter name="field1" value="idGNBCUUPFunction "/>
+ <parameter name="field2" value="`$tmp.idGNBCUUPFunction`"/>
+ </record>
+ <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'>
+ <parameter name='outputPath' value='tmp.pLMNInfoList' />
+ <parameter name='source' value="`'getNFNSSIRIC-configdb-response.['+ $idy +'].gNBCUUPList['+ $id-cuup +'].pLMNInfoList_length'`" />
+ </execute>
+ <for index='id-plmn' start='0' end='`$tmp.pLMNInfoList`'>
+ <block atomic='true'>
+ <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'>
+ <parameter name='outputPath' value='tmp.snssaiListup_length' />
+ <parameter name='source' value="`'getNFNSSIRIC-configdb-response.['+ $idy +'].gNBCUUPList['+ $id-cuup +'].pLMNInfoList['+$id-plmn+'].sNSSAI_length'`" />
+ </execute>
+ <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
+ <parameter name="file" value="/opt/opendaylight/current/data/log/activateRANSlice.log" />
+ <parameter name="level" value="info" />
+ <parameter name="field1" value="CUUP - snssaiList_length"/>
+ <parameter name="field2" value="`$tmp.snssaiListup_length`"/>
+ </record>
+ <for index='id-cuupnssai' start='0' end='`$tmp.snssaiListup_length`' >
+ <block atomic='true'>
+ <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'>
+ <parameter name='outputPath' value='tmp.configDBSNSSAI' />
+ <parameter name='source' value="`'getNFNSSIRIC-configdb-response.['+ $idy +'].gNBCUUPList['+ $id-cuup +'].pLMNInfoList['+ $id-plmn +'].sNSSAI['+$id-cuupnssai+'].sNSSAI'`" />
+ </execute>
+ <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
+ <parameter name="file" value="/opt/opendaylight/current/data/log/activateRANSlice.log" />
+ <parameter name="level" value="info" />
+ <parameter name="field1" value="sNSSAI - getNFNSSIRIC-configdb-response"/>
+ <parameter name="field2" value="`$tmp.configDBSNSSAI`"/>
+ <parameter name="field3" value="sNSSAI from request"/>
+ <parameter name="field4" value="`$tmp.sNSSAI`"/>
+ </record>
+ <switch test='`$tmp.configDBSNSSAI == $tmp.sNSSAI`'>
+ <outcome value='false'>
+ <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
+ <parameter name="file" value="/opt/opendaylight/current/data/log/activateRANSlice.log" />
+ <parameter name="level" value="info" />
+ <parameter name="field1" value="sNSSAI doesn't match"/>
+ </record>
+ </outcome>
+ <outcome value='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.patchPLMNInfoListEntry.ToGNBCUUP`"/>
+ <parameter name="outputPath" value="tmp.patchPLMNInfoList-CUUP.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.patchPLMNInfoListEntry.ToGNBCUUP.ransim-mounted`"/>
+ <parameter name="outputPath" value="tmp.patchPLMNInfoList-CUUP.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.patchPLMNInfoList-CUUP.url`"/>
+ <parameter name="outputPath" value="tmp.patchPLMNInfoList-CUUP.url"/>
+ <parameter name="target" value="{mountName}"/>
+ <parameter name="replacement" value="`$tmp.idGNBCUUPFunction`"/>
+ </execute>
+ </block>
+ </outcome>
+ </switch>
+ <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >
+ <parameter name="source" value="`$tmp.patchPLMNInfoList-CUUP.url`"/>
+ <parameter name="outputPath" value="tmp.patchPLMNInfoList-CUUP.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.patchPLMNInfoList-CUUP.url`"/>
+ <parameter name="outputPath" value="tmp.patchPLMNInfoList-CUUP.url"/>
+ <parameter name="target" value="{idGNBCUUPFunction}"/>
+ <parameter name="replacement" value="`$tmp.idGNBCUUPFunction`"/>
+ </execute>
+ <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >
+ <parameter name="source" value="`$tmp.patchPLMNInfoList-CUUP.url`"/>
+ <parameter name="outputPath" value="tmp.patchPLMNInfoList-CUUP.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.patchPLMNInfoList-CUUP.url`"/>
+ <parameter name="outputPath" value="tmp.patchPLMNInfoList-CUUP.url"/>
+ <parameter name="target" value="{mnc}"/>
+ <parameter name="replacement" value="`$tmp.mnc`"/>
+ </execute>
+ <execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >
+ <parameter name="templateFileName" value="`$prop.restapi.templateDir + '/ranSlice-patch-sNSSAI-status.json'`" />
+ <parameter name="restapiUrl" value="`$prop.controller.url + $tmp.patchPLMNInfoList-CUUP.url`"/>
+ <parameter name="restapiUser" value="`$prop.controller.user`" />
+ <parameter name="restapiPassword" value="`$prop.controller.pwd`"/>
+ <parameter name="httpMethod" value="PATCH"/>
+ <parameter name="responsePrefix" value="activate-gNBCUUP-PLMNInfoList-response"/>
+ <parameter name='contentType' value='application/yang.patch+json' />
+ <parameter name='accept' value='application/yang.patch-status+json'/>
+ <parameter name='format' value='json' />
+ <outcome value='failure'>
+ <block atomic='true'>
+ <set>
+ <parameter name='error-code' value='500'/>
+ <parameter name='error-message' value='Error patching CUUP PLMNInfoList. 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 patching CUUP PLMNInfo. 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="`$activate-r-a-n-slice-instance-input.common-header.request-id`"/>
+ <parameter name="tmp.action" value="`$activate-r-a-n-slice-instance-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`" />
+ </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-activate-response"/>
+ <parameter name='contentType' value='application/json' />
+ <parameter name='format' value='json' />
+ <parameter name='accept' value='*/*' />
+ <parameter name="convertResponse" value="true"/>
+ <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/activateRANSlice.log" />
+ <parameter name="level" value="info" />
+ <parameter name="field1" value="SO Response Sent "/>
+ </record>
+ </block>
+ </outcome>
+ </execute>
+ </block>
+ </block>
+ </outcome>
+ <outcome value='success'>
+ <block atomic='true'>
+ <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
+ <parameter name="file" value="/opt/opendaylight/current/data/log/activateRANSlice.log" />
+ <parameter name="level" value="info" />
+ <parameter name="field1" value="Successfully Patched - gNBCUUP PLMNInfo List"/>
+ </record>
+ </block>
+ </outcome>
+ </execute>
+ </block>
+ </outcome>
+ </switch>
+ </block>
+ </for>
+ </block>
+ </for>
+ </block>
+ </for>
+ </block>
+ <block atomic='true'>
+ <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'>
+ <parameter name='outputPath' value='tmp.DUList_length' />
+ <parameter name='source' value="`'getNFNSSIRIC-configdb-response.[' + $idy +'].gNBDUList_length'`" />
+ </execute>
+ <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
+ <parameter name="file" value="/opt/opendaylight/current/data/log/activateRANSlice.log" />
+ <parameter name="level" value="info" />
+ <parameter name="field1" value="Number of DU List Entries "/>
+ <parameter name="field2" value="`$tmp.DUList_length`"/>
+ <parameter name="field3" value="for the NearRTRIC"/>
+ <parameter name="field4" value="`$tmp.nearRTRICId`"/>
+ </record>
+ <for index='id-du' start='0' end='`$tmp.DUList_length`'>
+ <block atomic='true'>
+ <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'>
+ <parameter name='outputPath' value='tmp.GNBDUId' />
+ <parameter name='source' value="`'getNFNSSIRIC-configdb-response.['+ $idy +'].gNBDUList['+ $id-du +'].gNBDUId'`" />
+ </execute>
+ <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
+ <parameter name="file" value="/opt/opendaylight/current/data/log/activateRANSlice.log" />
+ <parameter name="level" value="info" />
+ <parameter name="field1" value="GNBDUId "/>
+ <parameter name="field2" value="`$tmp.GNBDUId`"/>
+ </record>
+ <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'>
+ <parameter name='outputPath' value='tmp.cellDUList_length' />
+ <parameter name='source' value="`'getNFNSSIRIC-configdb-response.[' + $idy +'].gNBDUList[' + $id-du +'].cellDUList_length'`" />
+ </execute>
+ <for index='id-celldu' start='0' end='`$tmp.cellDUList_length`' >
+ <block>
+ <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'>
+ <parameter name='outputPath' value='tmp.cellDULocalId' />
+ <parameter name='source' value="`'getNFNSSIRIC-configdb-response.['+ $idy +'].gNBDUList['+ $id-du +'].cellDUList['+ $id-celldu +'].cellLocalId'`" />
+ </execute>
+ <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'>
+ <parameter name='outputPath' value='tmp.DUpLMNInfoList_length' />
+ <parameter name='source' value="`'getNFNSSIRIC-configdb-response.['+ $idy +'].gNBDUList['+ $id-du +'].cellDUList['+ $id-celldu +'].pLMNInfoList_length'`" />
+ </execute>
+ <for index='id-duplmn' start='0' end='`$tmp.DUpLMNInfoList_length`' >
+ <block atomic='true'>
+ <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'>
+ <parameter name='outputPath' value='tmp.snssaiListdu_length' />
+ <parameter name='source' value="`'getNFNSSIRIC-configdb-response.['+ $idy +'].gNBDUList['+ $id-du +'].cellDUList['+ $id-celldu +'].pLMNInfoList['+$id-duplmn+'].sNSSAI_length'`" />
+ </execute>
+ <for index='id-dunssai' start='0' end='`$tmp.snssaiListdu_length`' >
+ <block atomic='true'>
+ <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'>
+ <parameter name='outputPath' value='tmp.configDBSNSSAI-DU' />
+ <parameter name='source' value="`'getNFNSSIRIC-configdb-response.['+ $idy +'].gNBDUList['+ $id-du +'].cellDUList['+ $id-celldu +'].pLMNInfoList['+ $id-duplmn +'].sNSSAI['+$id-dunssai+'].sNSSAI'`" />
+ </execute>
+ <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
+ <parameter name="file" value="/opt/opendaylight/current/data/log/activateRANSlice.log" />
+ <parameter name="level" value="info" />
+ <parameter name="field1" value="sNSSAI - getNFNSSIRIC-configdb-response"/>
+ <parameter name="field2" value="`$tmp.configDBSNSSAI-DU`"/>
+ <parameter name="field3" value="sNSSAI from request"/>
+ <parameter name="field4" value="`$tmp.sNSSAI`"/>
+ </record>
+ <switch test='`$tmp.configDBSNSSAI-DU == $tmp.sNSSAI`'>
+ <outcome value='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.patchPLMNInfoListEntry.ToNRCellDU`"/>
+ <parameter name="outputPath" value="tmp.patchPLMNInfoListEntry-cellDU.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.patchPLMNInfoListEntry.ToNRCellDU.ransim-mounted`"/>
+ <parameter name="outputPath" value="tmp.patchPLMNInfoListEntry-cellDU.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.patchPLMNInfoListEntry-cellDU.url`"/>
+ <parameter name="outputPath" value="tmp.patchPLMNInfoListEntry-cellDU.url"/>
+ <parameter name="target" value="{mountName}"/>
+ <parameter name="replacement" value="`$tmp.GNBDUId`"/>
+ </execute>
+ </block>
+ </outcome>
+ </switch>
+ <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >
+ <parameter name="source" value="`$tmp.patchPLMNInfoListEntry-cellDU.url`"/>
+ <parameter name="outputPath" value="tmp.patchPLMNInfoListEntry-cellDU.url"/>
+ <parameter name="target" value="{idGNBDUFunction}"/>
+ <parameter name="replacement" value="`$tmp.GNBDUId`"/>
+ </execute>
+ <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >
+ <parameter name="source" value="`$tmp.patchPLMNInfoListEntry-cellDU.url`"/>
+ <parameter name="outputPath" value="tmp.patchPLMNInfoListEntry-cellDU.url"/>
+ <parameter name="target" value="{idNRCellDU}"/>
+ <parameter name="replacement" value="`$tmp.cellDULocalId`"/>
+ </execute>
+ <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >
+ <parameter name="source" value="`$tmp.patchPLMNInfoListEntry-cellDU.url`"/>
+ <parameter name="outputPath" value="tmp.patchPLMNInfoListEntry-cellDU.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.patchPLMNInfoListEntry-cellDU.url`"/>
+ <parameter name="outputPath" value="tmp.patchPLMNInfoListEntry-cellDU.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/activateRANSlice.log" />
+ <parameter name="level" value="info" />
+ <parameter name="field1" value="patch cellDU NSSAI parameters"/>
+ <parameter name="field2" value="`$tmp.nearRTRICId`"/>
+ <parameter name="field3" value="`$tmp.GNBDUId`"/>
+ <parameter name="field4" value="`$tmp.cellDULocalId`"/>
+ <parameter name="field5" value="`$tmp.mcc`"/>
+ <parameter name="field6" value="`$tmp.mnc`"/>
+ <parameter name="field7" value="`$tmp.patchPLMNInfoListEntry-cellDU.url`"/>
+ </record>
+ <execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >
+ <parameter name="templateFileName" value="`$prop.restapi.templateDir + '/ranSlice-patch-sNSSAI-status.json'`" />
+ <parameter name="restapiUrl" value="`$prop.controller.url + $tmp.patchPLMNInfoListEntry-cellDU.url`"/>
+ <parameter name="restapiUser" value="`$prop.controller.user`" />
+ <parameter name="restapiPassword" value="`$prop.controller.pwd`"/>
+ <parameter name="httpMethod" value="PATCH"/>
+ <parameter name="responsePrefix" value="activate-cellDU-PLMNInfoList-response"/>
+ <parameter name='contentType' value='application/yang.patch+json' />
+ <parameter name='accept' value='application/yang.patch-status+json'/>
+ <parameter name='format' value='json' />
+ <outcome value='failure'>
+ <block atomic='true'>
+ <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="`$activate-r-a-n-slice-instance-input.common-header.request-id`"/>
+ <parameter name="tmp.action" value="`$activate-r-a-n-slice-instance-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`" />
+ </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-activate-response"/>
+ <parameter name='contentType' value='application/json' />
+ <parameter name='format' value='json' />
+ <parameter name='accept' value='*/*' />
+ <parameter name="convertResponse" value="true"/>
+ <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/activateRANSlice.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 patching cellDU PLMNInfoList. 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 NECellDU - PLMNInfo. Aborting RPC executiopn'/>
+ </return>
+ </block>
+ </outcome>
+ <outcome value='success'>
+ <block atomic='true'>
+ <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
+ <parameter name="file" value="/opt/opendaylight/current/data/log/activateRANSlice.log" />
+ <parameter name="level" value="info" />
+ <parameter name="field1" value="Successfully Patched - cellDU PLMNInfo List"/>
+ </record>
+ </block>
+ </outcome>
+ </execute>
+ </block>
+ </outcome>
+ </switch>
+ </block>
+ </for>
+ </block>
+ </for>
+ </block>
+ </for>
+ </block>
+ </for>
+ </block>
+ </for>
+ <return status='success'>
+ <parameter name="ack-final" value="Y" />
+ <parameter name="error-code" value="200" />
+ <parameter name="error-message" value="SUCCESSFUL Execution" />
+ </return>
+ <block atomic='true'>
+ <set>
+ <parameter name="tmp.status" value="`$error-code`"/>
+ <parameter name="tmp.reason" value="`$error-message`"/>
+ <parameter name="tmp.requestID" value="`$activate-r-a-n-slice-input.common-header.request-id `"/>
+ <parameter name="tmp.action" value="`$activate-r-a-n-slice-input.action`"/>
+ </set>
+ <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >
+ <parameter name="source" value="`$prop.restapi.so.callbackURL`"/>
+ <parameter name="outputPath" value="tmp.so.callbackURL"/>
+ <parameter name="target" value="{requestId}"/>
+ <parameter name="replacement" value="`$tmp.requestID`"/>
+ </execute>
+ <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="`$payloadJson.input.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`" />
+ </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="`$payloadJson.input.callbackURL`"/>
+ <parameter name="httpMethod" value="POST"/>
+ <parameter name="responsePrefix" value="so-callback-activate-response"/>
+ <parameter name='contentType' value='application/json' />
+ <parameter name='format' value='json' />
+ <parameter name='accept' value='*/*' />
+ <parameter name="restapiUser" value="`$prop.restapi.so.user`" />
+ <parameter name="restapiPassword" value="`$prop.restapi.so.password`"/>
+ <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/activateRANSlice.log" />
+ <parameter name="level" value="info" />
+ <parameter name="field1" value="SO Response Sent "/>
+ </record>
+ </block>
+ </outcome>
+ </execute>
+ </block>
+ </block>
+ </method>
+</service-logic> \ No newline at end of file
diff --git a/platform-logic/ran-slice-api/src/main/xml/ran-slice-api_activateRANSliceInstance-cps.xml b/platform-logic/ran-slice-api/src/main/xml/ran-slice-api_activateRANSliceInstance-cps.xml
new file mode 100644
index 00000000..4fd07d12
--- /dev/null
+++ b/platform-logic/ran-slice-api/src/main/xml/ran-slice-api_activateRANSliceInstance-cps.xml
@@ -0,0 +1,1119 @@
+<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='activateRANSliceInstance' mode='sync'>
+ <block atomic='true'>
+ <set>
+ <parameter name='error-code' value='200' />
+ <parameter name='error-message' value='Successful execution of activateRANSice RPC' />
+ </set>
+ <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
+ <parameter name="file" value="/opt/opendaylight/current/data/log/activateRANSlice.log" />
+ <parameter name="level" value="info" />
+ <parameter name="field1" value="RPC to handle activateRANSlice.: "/>
+ <parameter name="field2" value="`$activate-r-a-n-slice-instance-input.action`"/>
+ <parameter name="field3" value="`$activate-r-a-n-slice-instance-input.timestamp`"/>
+ <parameter name="field4" value="`$activate-r-a-n-slice-instance-input.common-header.request-id`"/>
+ <parameter name="field5" value="`$activate-r-a-n-slice-instance-input.common-header.originator-id`"/>
+ <parameter name="field6" value="RPC Payload String "/>
+ <parameter name="field7" value="`$activate-r-a-n-slice-instance-input.payload`"/>
+ </record>
+ <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='jsonStringToCtx'>
+ <parameter name='source' value='activate-r-a-n-slice-instance-input.payload' />
+ <parameter name='outputPath' value='payloadJson' />
+ <parameter name='isEscaped' value='false' />
+ <outcome value='success'>
+ <block atomic='true'>
+ <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='printContext' >
+ <parameter name='filename' value='/opt/opendaylight/current/data/log/ranSlice-activateRANSlice-context.log' />
+ </execute>
+ <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
+ <parameter name="file" value="/opt/opendaylight/current/data/log/activateRANSlice.log" />
+ <parameter name="level" value="info" />
+ <parameter name="field1" value="Payload for activateRANSlice.: "/>
+ <parameter name="field2" value="`$payloadJson.input.sNSSAI`"/>
+ <parameter name="field3" value="`$payloadJson.input.RANNFNSSIId`"/>
+ <parameter name="field4" value="`$payloadJson.input.callbackURL`"/>
+ <parameter name="field5" value="`$payloadJson.input.sliceProfileId`"/>
+ </record>
+ </block>
+ </outcome>
+ </execute>
+ <set>
+ <parameter name='tmp.sNSSAI' value="`$payloadJson.input.sNSSAI`" />
+ </set>
+ <set>
+ <parameter name='tmp.sliceprofileid' value="`$payloadJson.input.sliceProfileId`" />
+ </set>
+ <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='printContext' >
+ <parameter name='filename' value='/opt/opendaylight/current/data/log/ranSlice-activateRANSlice-context.log' />
+ </execute>
+ <set>
+ <parameter name='tmp.payload.RANNFNSSIId' value="`$payloadJson.input.RANNFNSSIId`" />
+ </set>
+ <execute plugin='org.onap.ccsdk.sli.plugins.prop.PropertiesNode' method='readProperties' >
+ <parameter name='fileName' value='/opt/onap/ccsdk/data/properties/ran-slice-api-dg.properties' />
+ <parameter name='contextPrefix' value='prop' />
+ </execute>
+ <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
+ <parameter name="file" value="/opt/opendaylight/current/data/log/activateRANSlice.log" />
+ <parameter name="level" value="info" />
+ <parameter name="field1" value="Properties read .. controller details "/>
+ <parameter name="field2" value="`$prop.controller.user`"/>
+ <parameter name="field3" value="`$prop.controller.pwd`"/>
+ <parameter name="field4" value="`$prop.controller.url`"/>
+ <parameter name="field5" value="ransim-mounted (true/false): "/>
+ <parameter name="field6" value="`$prop.ransim-mounted`"/>
+ <parameter name="field7" value="config DB deployed (true/false): "/>
+ <parameter name="field8" value="`$prop.configdb-deployed`"/>
+ </record>
+ <switch test='`$activate-r-a-n-slice-instance-input.action == activate`'>
+ <outcome value='true'>
+ <block atomic='true'>
+ <set>
+ <parameter name='tmp.status' value='ACTIVE' />
+ </set>
+ </block>
+ </outcome>
+ <outcome value='false'>
+ <block atomic='true'>
+ <set>
+ <parameter name='tmp.status' value='INACTIVE' />
+ </set>
+ </block>
+ </outcome>
+ </switch>
+ <set>
+ <parameter name='tmp.getAnchors.URL' value="`$prop.restapi.cps.anchors.endpoint`"/>
+ </set>
+ <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
+ <parameter name="file" value="/opt/opendaylight/current/data/log/activateRANSlice.log" />
+ <parameter name="level" value="info" />
+ <parameter name="field1" value="URL to fetch the anchors"/>
+ <parameter name="field2" value="`$tmp.getAnchors.URL`"/>
+ </record>
+ <execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >
+ <parameter name="restapiUrl" value="`$tmp.getAnchors.URL`"/>
+ <parameter name="httpMethod" value="GET"/>
+ <parameter name="restapiUser" value="cpsuser" />
+ <parameter name="restapiPassword" value="cpsr0cks!"/>
+ <parameter name="responsePrefix" value="get-anchors-cps-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 CPS. Aborting RPC executiopn'/>
+ </set>
+ <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
+ <parameter name="file" value="/opt/opendaylight/current/data/log/activateRANSlice.log" />
+ <parameter name="level" value="info" />
+ <parameter name="field1" value="Failed to fetch anchors from CPS"/>
+ </record>
+ </block>
+ </outcome>
+ <outcome value='success'>
+ <block atomic='true'>
+ <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
+ <parameter name="file" value="/opt/opendaylight/current/data/log/activateRANSlice.log" />
+ <parameter name="level" value="info" />
+ <parameter name="field1" value="Successfully Obtained anchors from CPS"/>
+ <parameter name="field2" value="`$get-anchors-cps-response._length`"/>
+ </record>
+ <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='printContext' >
+ <parameter name='filename' value='/opt/opendaylight/current/data/log/ranSlice-modifyallocate-cps-context.log' />
+ </execute>
+ </block>
+ </outcome>
+ </execute>
+ <set>
+ <parameter name='tmp.anchors.length' value="`$get-anchors-cps-response._length`"/>
+ </set>
+ <set>
+ <parameter name='tmp.RIC.length' value="0"/>
+ </set>
+ <for index='anc' start='0' end='`$tmp.anchors.length`'>
+ <block atomic='true'>
+ <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'>
+ <parameter name='outputPath' value='tmp.schemaset.name' />
+ <parameter name='source' value="`'get-anchors-cps-response.['+$anc+'].schemaSetName'`" />
+ </execute>
+ <switch test='`$tmp.schemaset.name`'>
+ <outcome value='ran-network'>
+ <block atomic='true'>
+ <set>
+ <parameter name='tmp.RIC.length' value="`$tmp.RIC.length+1`"/>
+ </set>
+ <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
+ <parameter name="file" value="/opt/opendaylight/current/data/log/activateRANSlice.log" />
+ <parameter name="level" value="info" />
+ <parameter name="field1" value="Applicable RIC length"/>
+ <parameter name="field2" value="`$tmp.RIC.length`"/>
+ </record>
+ </block>
+ </outcome>
+ </switch>
+ </block>
+ </for>
+ <for index='anc' start='0' end='`$tmp.anchors.length`'>
+ <block atomic='true'>
+ <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'>
+ <parameter name='outputPath' value='tmp.schemaset.name' />
+ <parameter name='source' value="`'get-anchors-cps-response.['+$anc+'].schemaSetName'`" />
+ </execute>
+ <switch test='`$tmp.schemaset.name`'>
+ <outcome value='ran-network'>
+ <block atomic='true'>
+ <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'>
+ <parameter name='outputPath' value='tmp.anchor.name' />
+ <parameter name='source' value="`'get-anchors-cps-response.['+$anc+'].name'`" />
+ </execute>
+ <block atomic='true'>
+ <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >
+ <parameter name="source" value="`$prop.restapi.cps.tbdmt.execute.endpoint`"/>
+ <parameter name="outputPath" value="tmp.cps.getNearRTRICByNSSI.url"/>
+ <parameter name="target" value="{schemaSet}"/>
+ <parameter name="replacement" value="`$tmp.anchor.name`"/>
+ </execute>
+ <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >
+ <parameter name="source" value="`$tmp.cps.getNearRTRICByNSSI.url`"/>
+ <parameter name="outputPath" value="tmp.cps.getNearRTRICByNSSI.url"/>
+ <parameter name="target" value="{templateId}"/>
+ <parameter name="replacement" value="`$prop.tbdmt.template.get-nearrtric-by-rannfnssi`"/>
+ </execute>
+ <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
+ <parameter name="file" value="/opt/opendaylight/current/data/log/activateRANSlice.log" />
+ <parameter name="level" value="info" />
+ <parameter name="field1" value="URL for CPS TDBMT to Get NearRTRIC for RANNFNSSI"/>
+ <parameter name='field2' value="`$tmp.cps.getNearRTRICByNSSI.url`" />
+ </record>
+ <execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >
+ <parameter name="restapiUrl" value="`$tmp.cps.getNearRTRICByNSSI.url`"/>
+ <parameter name="templateFileName" value="`$prop.restapi.templateDir + '/cps-templates/cps-get-nearrtric-by-rannfnssi.json'`" />
+ <parameter name="httpMethod" value="POST"/>
+ <parameter name="responsePrefix" value="getNFNSSIRIC-cps-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 CPS. Aborting RPC executiopn'/>
+ </set>
+ <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="`$activate-r-a-n-slice-instance-input.common-header.request-id`"/>
+ <parameter name="tmp.action" value="`$activate-r-a-n-slice-instance-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`" />
+ </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-activate-response"/>
+ <parameter name='contentType' value='application/json' />
+ <parameter name='format' value='json' />
+ <parameter name='accept' value='*/*' />
+ <parameter name="convertResponse" value="true"/>
+ <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/activateRANSlice.log" />
+ <parameter name="level" value="info" />
+ <parameter name="field1" value="SO Response Sent "/>
+ </record>
+ </block>
+ </outcome>
+ </execute>
+ </block>
+ </block>
+ </outcome>
+ <outcome value='success'>
+ <block atomic='true'>
+ <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
+ <parameter name="file" value="/opt/opendaylight/current/data/log/activateRANSlice.log" />
+ <parameter name="level" value="info" />
+ <parameter name="field1" value="Successfully Obtained NearRT RIC info from CPS"/>
+ <parameter name="field2" value="`$getNFNSSIRIC-cps-response._length`"/>
+ </record>
+ <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='printContext' >
+ <parameter name='filename' value='/opt/opendaylight/current/data/log/ranSlice-terminateRANSlice-configrsp-context.log' />
+ </execute>
+ </block>
+ </outcome>
+ </execute>
+ <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >
+ <parameter name="source" value="`$prop.restapi.cps.tbdmt.execute.endpoint`"/>
+ <parameter name="outputPath" value="tmp.cps.getPLMNID.url"/>
+ <parameter name="target" value="{schemaSet}"/>
+ <parameter name="replacement" value="`$tmp.schemaset.name`"/>
+ </execute>
+ <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >
+ <parameter name="source" value="`$tmp.cps.getPLMNID.url`"/>
+ <parameter name="outputPath" value="tmp.cps.getPLMNID.url"/>
+ <parameter name="target" value="{templateId}"/>
+ <parameter name="replacement" value="`$prop.tbdmt.template.getmcc`"/>
+ </execute>
+ <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
+ <parameter name="file" value="/opt/opendaylight/current/data/log/activateRANSlice.log" />
+ <parameter name="level" value="info" />
+ <parameter name="field1" value="URL for CPS TDBMT to Get plmnid from sliceprofile"/>
+ <parameter name='field2' value="`$tmp.cps.getPLMNID.url`" />
+ </record>
+ <execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >
+ <parameter name="restapiUrl" value="`$tmp.cps.getPLMNID.url`"/>
+ <parameter name="templateFileName" value="`$prop.restapi.templateDir + '/cps-templates/cps-get-plmnid.json'`" />
+ <parameter name="httpMethod" value="POST"/>
+ <parameter name="responsePrefix" value="getplmnmccid-cps-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 CPS. Aborting RPC executiopn'/>
+ </set>
+ </block>
+ </outcome>
+ <outcome value='success'>
+ <block atomic='true'>
+ <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
+ <parameter name="file" value="/opt/opendaylight/current/data/log/activateRANSlice.log" />
+ <parameter name="level" value="info" />
+ <parameter name="field1" value="Successfully Obtained MCC info from CPS"/>
+ <parameter name="field2" value="`$getplmnmccid-cps-response.httpResponse`"/>
+ </record>
+ <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'>
+ <parameter name='outputPath' value='tmp.plmn.mcc' />
+ <parameter name='source' value="`'getplmnmccid-cps-response.[0]'`" />
+ </execute>
+ <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
+ <parameter name="file" value="/opt/opendaylight/current/data/log/activateRANSlice.log" />
+ <parameter name="level" value="info" />
+ <parameter name="field1" value="plmn mcc value"/>
+ <parameter name="field2" value="`$tmp.plmn.mcc`"/>
+ </record>
+ </block>
+ </outcome>
+ </execute>
+ <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >
+ <parameter name="source" value="`$prop.restapi.cps.tbdmt.execute.endpoint`"/>
+ <parameter name="outputPath" value="tmp.cps.getPLMNMNCID.url"/>
+ <parameter name="target" value="{schemaSet}"/>
+ <parameter name="replacement" value="`$tmp.schemaset.name`"/>
+ </execute>
+ <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >
+ <parameter name="source" value="`$tmp.cps.getPLMNMNCID.url`"/>
+ <parameter name="outputPath" value="tmp.cps.getPLMNMNCID.url"/>
+ <parameter name="target" value="{templateId}"/>
+ <parameter name="replacement" value="`$prop.tbdmt.template.get-plmnmncid-from-sliceprofile`"/>
+ </execute>
+ <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
+ <parameter name="file" value="/opt/opendaylight/current/data/log/activateRANSlice.log" />
+ <parameter name="level" value="info" />
+ <parameter name="field1" value="URL for CPS TDBMT to Get plmnid from sliceprofile"/>
+ <parameter name='field2' value="`$tmp.cps.getPLMNMNCID.url`" />
+ </record>
+ <execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >
+ <parameter name="restapiUrl" value="`$tmp.cps.getPLMNMNCID.url`"/>
+ <parameter name="templateFileName" value="`$prop.restapi.templateDir + '/cps-templates/cps-get-plmnid.json'`" />
+ <parameter name="httpMethod" value="POST"/>
+ <parameter name="responsePrefix" value="getplmnmncid-cps-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 CPS. Aborting RPC executiopn'/>
+ </set>
+ </block>
+ </outcome>
+ <outcome value='success'>
+ <block atomic='true'>
+ <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
+ <parameter name="file" value="/opt/opendaylight/current/data/log/activateRANSlice.log" />
+ <parameter name="level" value="info" />
+ <parameter name="field1" value="Successfully Obtained plmnmnc info from Cps"/>
+ <parameter name="field2" value="`$getplmnid-cps-response`"/>
+ </record>
+ <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'>
+ <parameter name='outputPath' value='tmp.plmn.mnc' />
+ <parameter name='source' value="`'getplmnmncid-cps-response.[0]'`" />
+ </execute>
+ <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
+ <parameter name="file" value="/opt/opendaylight/current/data/log/activateRANSlice.log" />
+ <parameter name="level" value="info" />
+ <parameter name="field1" value="plmn mnc value"/>
+ <parameter name="field2" value="`$tmp.plmn.mnc`"/>
+ </record>
+ </block>
+ </outcome>
+ </execute>
+ <set>
+ <parameter name='tmp.mcc' value='`$tmp.plmn.mcc`'/>
+ <parameter name='tmp.mnc' value='`$tmp.plmn.mnc`'/>
+ </set>
+ </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/activateRANSlice.log" />
+ <parameter name="level" value="info" />
+ <parameter name="field1" value="`$tmp.pLMNId`"/>
+ <parameter name="field2" value="`$tmp.mcc`"/>
+ <parameter name="field3" value="`$tmp.mnc`"/>
+ </record>
+ <set>
+ <parameter name='tmp.RICList_length' value="`$getNFNSSIRIC-cps-response._length`"/>
+ </set>
+ <return status='success'>
+ <parameter name="ack-final" value="Y" />
+ <parameter name="error-code" value="200" />
+ <parameter name="error-message" value="SUCCESSFUL Execution" />
+ </return>
+ <for index='idy' start='0' end='`$tmp.RICList_length`' >
+ <block atomic='true'>
+ <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'>
+ <parameter name='outputPath' value='tmp.nearRTRICId' />
+ <parameter name='source' value="`'getNFNSSIRIC-configdb-response.[' + $idy +'].nearRTRICId'`" />
+ </execute>
+ </block>
+ <block atomic='true'>
+ <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'>
+ <parameter name='outputPath' value='tmp.CUUPList_length' />
+ <parameter name='source' value="`'getNFNSSIRIC-configdb-response.[' + $idy +'].gNBCUUPList_length'`" />
+ </execute>
+ <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
+ <parameter name="file" value="/opt/opendaylight/current/data/log/activateRANSlice.log" />
+ <parameter name="level" value="info" />
+ <parameter name="field1" value="Number of CUCP List Entries "/>
+ <parameter name="field2" value="`$tmp.CUUPList_length`"/>
+ <parameter name="field3" value="for the NearRTRIC"/>
+ <parameter name="field4" value="`$tmp.nearRTRICId`"/>
+ </record>
+ <for index='id-cuup' start='0' end='`$tmp.CUUPList_length`'>
+ <block atomic='true'>
+ <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'>
+ <parameter name='outputPath' value='tmp.idGNBCUUPFunction' />
+ <parameter name='source' value="`'getNFNSSIRIC-configdb-response.['+ $idy +'].gNBCUUPList['+ $id-cuup +'].gNBCUUPId'`" />
+ </execute>
+ <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
+ <parameter name="file" value="/opt/opendaylight/current/data/log/activateRANSlice.log" />
+ <parameter name="level" value="info" />
+ <parameter name="field1" value="idGNBCUUPFunction "/>
+ <parameter name="field2" value="`$tmp.idGNBCUUPFunction`"/>
+ </record>
+ <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'>
+ <parameter name='outputPath' value='tmp.pLMNInfoList' />
+ <parameter name='source' value="`'getNFNSSIRIC-configdb-response.['+ $idy +'].gNBCUUPList['+ $id-cuup +'].pLMNInfoList_length'`" />
+ </execute>
+ <for index='id-plmn' start='0' end='`$tmp.pLMNInfoList`'>
+ <block atomic='true'>
+ <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'>
+ <parameter name='outputPath' value='tmp.snssaiListup_length' />
+ <parameter name='source' value="`'getNFNSSIRIC-configdb-response.['+ $idy +'].gNBCUUPList['+ $id-cuup +'].pLMNInfoList['+$id-plmn+'].sNSSAI_length'`" />
+ </execute>
+ <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
+ <parameter name="file" value="/opt/opendaylight/current/data/log/activateRANSlice.log" />
+ <parameter name="level" value="info" />
+ <parameter name="field1" value="CUUP - snssaiList_length"/>
+ <parameter name="field2" value="`$tmp.snssaiListup_length`"/>
+ </record>
+ <for index='id-cuupnssai' start='0' end='`$tmp.snssaiListup_length`' >
+ <block atomic='true'>
+ <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'>
+ <parameter name='outputPath' value='tmp.configDBSNSSAI' />
+ <parameter name='source' value="`'getNFNSSIRIC-configdb-response.['+ $idy +'].gNBCUUPList['+ $id-cuup +'].pLMNInfoList['+ $id-plmn +'].sNSSAI['+$id-cuupnssai+'].sNSSAI'`" />
+ </execute>
+ <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
+ <parameter name="file" value="/opt/opendaylight/current/data/log/activateRANSlice.log" />
+ <parameter name="level" value="info" />
+ <parameter name="field1" value="sNSSAI - getNFNSSIRIC-configdb-response"/>
+ <parameter name="field2" value="`$tmp.configDBSNSSAI`"/>
+ <parameter name="field3" value="sNSSAI from request"/>
+ <parameter name="field4" value="`$tmp.sNSSAI`"/>
+ </record>
+ <switch test='`$tmp.configDBSNSSAI == $tmp.sNSSAI`'>
+ <outcome value='false'>
+ <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
+ <parameter name="file" value="/opt/opendaylight/current/data/log/activateRANSlice.log" />
+ <parameter name="level" value="info" />
+ <parameter name="field1" value="sNSSAI doesn't match"/>
+ </record>
+ </outcome>
+ <outcome value='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.patchPLMNInfoListEntry.ToGNBCUUP`"/>
+ <parameter name="outputPath" value="tmp.patchPLMNInfoList-CUUP.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.patchPLMNInfoListEntry.ToGNBCUUP.ransim-mounted`"/>
+ <parameter name="outputPath" value="tmp.patchPLMNInfoList-CUUP.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.patchPLMNInfoList-CUUP.url`"/>
+ <parameter name="outputPath" value="tmp.patchPLMNInfoList-CUUP.url"/>
+ <parameter name="target" value="{mountName}"/>
+ <parameter name="replacement" value="`$tmp.idGNBCUUPFunction`"/>
+ </execute>
+ </block>
+ </outcome>
+ </switch>
+ <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >
+ <parameter name="source" value="`$tmp.patchPLMNInfoList-CUUP.url`"/>
+ <parameter name="outputPath" value="tmp.patchPLMNInfoList-CUUP.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.patchPLMNInfoList-CUUP.url`"/>
+ <parameter name="outputPath" value="tmp.patchPLMNInfoList-CUUP.url"/>
+ <parameter name="target" value="{idGNBCUUPFunction}"/>
+ <parameter name="replacement" value="`$tmp.idGNBCUUPFunction`"/>
+ </execute>
+ <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >
+ <parameter name="source" value="`$tmp.patchPLMNInfoList-CUUP.url`"/>
+ <parameter name="outputPath" value="tmp.patchPLMNInfoList-CUUP.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.patchPLMNInfoList-CUUP.url`"/>
+ <parameter name="outputPath" value="tmp.patchPLMNInfoList-CUUP.url"/>
+ <parameter name="target" value="{mnc}"/>
+ <parameter name="replacement" value="`$tmp.mnc`"/>
+ </execute>
+ <execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >
+ <parameter name="templateFileName" value="`$prop.restapi.templateDir + '/ranSlice-patch-sNSSAI-status.json'`" />
+ <parameter name="restapiUrl" value="`$prop.controller.url + $tmp.patchPLMNInfoList-CUUP.url`"/>
+ <parameter name="restapiUser" value="`$prop.controller.user`" />
+ <parameter name="restapiPassword" value="`$prop.controller.pwd`"/>
+ <parameter name="httpMethod" value="PATCH"/>
+ <parameter name="responsePrefix" value="activate-gNBCUUP-PLMNInfoList-response"/>
+ <parameter name='contentType' value='application/yang.patch+json' />
+ <parameter name='accept' value='application/yang.patch-status+json'/>
+ <parameter name='format' value='json' />
+ <outcome value='failure'>
+ <block atomic='true'>
+ <set>
+ <parameter name='error-code' value='500'/>
+ <parameter name='error-message' value='Error patching CUUP PLMNInfoList. 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 patching CUUP PLMNInfo. 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="`$activate-r-a-n-slice-instance-input.common-header.request-id`"/>
+ <parameter name="tmp.action" value="`$activate-r-a-n-slice-instance-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`" />
+ </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-activate-response"/>
+ <parameter name='contentType' value='application/json' />
+ <parameter name='format' value='json' />
+ <parameter name='accept' value='*/*' />
+ <parameter name="convertResponse" value="true"/>
+ <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/activateRANSlice.log" />
+ <parameter name="level" value="info" />
+ <parameter name="field1" value="SO Response Sent "/>
+ </record>
+ </block>
+ </outcome>
+ </execute>
+ </block>
+ </block>
+ </outcome>
+ <outcome value='success'>
+ <block atomic='true'>
+ <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
+ <parameter name="file" value="/opt/opendaylight/current/data/log/activateRANSlice.log" />
+ <parameter name="level" value="info" />
+ <parameter name="field1" value="Successfully Patched - gNBCUUP PLMNInfo List"/>
+ </record>
+ </block>
+ </outcome>
+ </execute>
+ </block>
+ </outcome>
+ </switch>
+ </block>
+ </for>
+ </block>
+ </for>
+ </block>
+ </for>
+ </block>
+ <block atomic='true'>
+ <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'>
+ <parameter name='outputPath' value='tmp.CUCPList_length' />
+ <parameter name='source' value="`'getNFNSSIRIC-configdb-response.[' + $idy +'].gNBCUCPList_length'`" />
+ </execute>
+ <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
+ <parameter name="file" value="/opt/opendaylight/current/data/log/activateRANSlice.log" />
+ <parameter name="level" value="info" />
+ <parameter name="field1" value="Number of CUCP List Entries "/>
+ <parameter name="field2" value="`$tmp.CUCPList_length`"/>
+ <parameter name="field3" value="for the NearRTRIC"/>
+ <parameter name="field4" value="`$tmp.nearRTRICId`"/>
+ </record>
+ <for index='idz' start='0' end='`$tmp.CUCPList_length`'>
+ <block atomic='true'>
+ <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'>
+ <parameter name='outputPath' value='tmp.CUCPName' />
+ <parameter name='source' value="`'getNFNSSIRIC-configdb-response.['+ $idy +'].gNBCUCPList['+ $idz +'].gNBCUName'`" />
+ </execute>
+ <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
+ <parameter name="file" value="/opt/opendaylight/current/data/log/activateRANSlice.log" />
+ <parameter name="level" value="info" />
+ <parameter name="field1" value="CUCPName "/>
+ <parameter name="field2" value="`$tmp.CUCPName`"/>
+ </record>
+ <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'>
+ <parameter name='outputPath' value='tmp.cellCUList_length' />
+ <parameter name='source' value="`'getNFNSSIRIC-configdb-response.[' + $idy +'].gNBCUCPList[' + $idz +'].cellCUList_length'`" />
+ </execute>
+ <for index='idcu' start='0' end='`$tmp.cellCUList_length`' >
+ <block atomic='true'>
+ <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'>
+ <parameter name='outputPath' value='tmp.cellLocalId' />
+ <parameter name='source' value="`'getNFNSSIRIC-configdb-response.['+ $idy +'].gNBCUCPList['+ $idz +'].cellCUList['+ $idcu +'].cellLocalId'`" />
+ </execute>
+ <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'>
+ <parameter name='outputPath' value='tmp.pLMNInfoList_length' />
+ <parameter name='source' value="`'getNFNSSIRIC-configdb-response.['+ $idy +'].gNBCUCPList['+ $idz +'].cellCUList['+ $idcu +'].pLMNInfoList_length'`" />
+ </execute>
+ <for index='id-cuplmn' start='0' end='`$tmp.pLMNInfoList_length`' >
+ <block atomic='true'>
+ <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'>
+ <parameter name='outputPath' value='tmp.snssaiList_length' />
+ <parameter name='source' value="`'getNFNSSIRIC-configdb-response.['+ $idy +'].gNBCUCPList['+ $idz +'].cellCUList['+ $idcu +'].pLMNInfoList['+$id-cuplmn+'].sNSSAI_length'`" />
+ </execute>
+ <for index='id-cunssai' start='0' end='`$tmp.snssaiList_length`' >
+ <block atomic='true'>
+ <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'>
+ <parameter name='outputPath' value='tmp.configDBSNSSAI' />
+ <parameter name='source' value="`'getNFNSSIRIC-configdb-response.['+ $idy +'].gNBCUCPList['+ $idz +'].cellCUList['+ $idcu +'].pLMNInfoList['+ $id-cuplmn +'].sNSSAI['+$id-cunssai+'].sNSSAI'`" />
+ </execute>
+ <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
+ <parameter name="file" value="/opt/opendaylight/current/data/log/activateRANSlice.log" />
+ <parameter name="level" value="info" />
+ <parameter name="field1" value="sNSSAI - getNFNSSIRIC-configdb-response"/>
+ <parameter name="field2" value="`$tmp.configDBSNSSAI`"/>
+ <parameter name="field3" value="sNSSAI from request"/>
+ <parameter name="field4" value="`$tmp.sNSSAI`"/>
+ </record>
+ <switch test='`$tmp.configDBSNSSAI == $tmp.sNSSAI`'>
+ <outcome value='true'>
+ <block atomic='true'>
+ <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
+ <parameter name="file" value="/opt/opendaylight/current/data/log/activateRANSlice.log" />
+ <parameter name="level" value="info" />
+ <parameter name="field1" value="CellCU is applicable for the NSSAI "/>
+ </record>
+ <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.patchPLMNInfoListEntry.ToNRCellCU`"/>
+ <parameter name="outputPath" value="tmp.patchPLMNInfoListEntry.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.patchPLMNInfoListEntry.ToNRCellCU.ransim-mounted`"/>
+ <parameter name="outputPath" value="tmp.patchPLMNInfoListEntry.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.patchPLMNInfoListEntry.url`"/>
+ <parameter name="outputPath" value="tmp.patchPLMNInfoListEntry.url"/>
+ <parameter name="target" value="{mountName}"/>
+ <parameter name="replacement" value="`$tmp.CUCPName`"/>
+ </execute>
+ </block>
+ </outcome>
+ </switch>
+ <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'>
+ <parameter name='outputPath' value='tmp.cellCULocalId' />
+ <parameter name='source' value="`'getNFNSSIRIC-configdb-response.['+ $idy +'].gNBCUCPList['+ $idz +'].cellCUList['+ $idcu +'].cellLocalId'`" />
+ </execute>
+ <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >
+ <parameter name="source" value="`$tmp.patchPLMNInfoListEntry.url`"/>
+ <parameter name="outputPath" value="tmp.patchPLMNInfoListEntry.url"/>
+ <parameter name="target" value="{idGNBCUCPFunction}"/>
+ <parameter name="replacement" value="`$tmp.CUCPName`"/>
+ </execute>
+ <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >
+ <parameter name="source" value="`$tmp.patchPLMNInfoListEntry.url`"/>
+ <parameter name="outputPath" value="tmp.patchPLMNInfoListEntry.url"/>
+ <parameter name="target" value="{idNRCellCU}"/>
+ <parameter name="replacement" value="`$tmp.cellCULocalId`"/>
+ </execute>
+ <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >
+ <parameter name="source" value="`$tmp.patchPLMNInfoListEntry.url`"/>
+ <parameter name="outputPath" value="tmp.patchPLMNInfoListEntry.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.patchPLMNInfoListEntry.url`"/>
+ <parameter name="outputPath" value="tmp.patchPLMNInfoListEntry.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/activateRANSlice.log" />
+ <parameter name="level" value="info" />
+ <parameter name="field1" value="patch cellCU NSSAI parameters"/>
+ <parameter name="field2" value="`$tmp.nearRTRICId`"/>
+ <parameter name="field3" value="`$tmp.CUCPName`"/>
+ <parameter name="field4" value="`$tmp.cellCULocalId`"/>
+ <parameter name="field5" value="`$tmp.mcc`"/>
+ <parameter name="field6" value="`$tmp.mnc`"/>
+ <parameter name="field7" value="`$tmp.patchPLMNInfoListEntry.url`"/>
+ </record>
+ <execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >
+ <parameter name="templateFileName" value="`$prop.restapi.templateDir + '/ranSlice-patch-sNSSAI-status.json'`" />
+ <parameter name="restapiUrl" value="`$prop.controller.url + $tmp.patchPLMNInfoListEntry.url`"/>
+ <parameter name="restapiUser" value="`$prop.controller.user`" />
+ <parameter name="restapiPassword" value="`$prop.controller.pwd`"/>
+ <parameter name="httpMethod" value="PATCH"/>
+ <parameter name="responsePrefix" value="activate-cellCU-PLMNInfoList-response"/>
+ <parameter name='contentType' value='application/yang.patch+json' />
+ <parameter name='accept' value='application/yang.patch-status+json'/>
+ <parameter name='format' value='json' />
+ <outcome value='failure'>
+ <block atomic='true'>
+ <set>
+ <parameter name='error-code' value='500'/>
+ <parameter name='error-message' value='Error patching cellCU PLMNInfoList. 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 NRcellCU - PLMNInfo. 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="`$activate-r-a-n-slice-instance-input.common-header.request-id`"/>
+ <parameter name="tmp.action" value="`$activate-r-a-n-slice-instance-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`" />
+ </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-activate-response"/>
+ <parameter name='contentType' value='application/json' />
+ <parameter name='format' value='json' />
+ <parameter name='accept' value='*/*' />
+ <parameter name="convertResponse" value="true"/>
+ <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/activateRANSlice.log" />
+ <parameter name="level" value="info" />
+ <parameter name="field1" value="SO Response Sent "/>
+ </record>
+ </block>
+ </outcome>
+ </execute>
+ </block>
+ </block>
+ </outcome>
+ <outcome value='success'>
+ <block atomic='true'>
+ <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
+ <parameter name="file" value="/opt/opendaylight/current/data/log/activateRANSlice.log" />
+ <parameter name="level" value="info" />
+ <parameter name="field1" value="Successfully Patched - cellCU PLMNInfo List"/>
+ </record>
+ </block>
+ </outcome>
+ </execute>
+ </block>
+ </outcome>
+ </switch>
+ </block>
+ </for>
+ </block>
+ </for>
+ </block>
+ </for>
+ </block>
+ </for>
+ </block>
+ <block atomic='true'>
+ <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'>
+ <parameter name='outputPath' value='tmp.DUList_length' />
+ <parameter name='source' value="`'getNFNSSIRIC-configdb-response.[' + $idy +'].gNBDUList_length'`" />
+ </execute>
+ <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
+ <parameter name="file" value="/opt/opendaylight/current/data/log/activateRANSlice.log" />
+ <parameter name="level" value="info" />
+ <parameter name="field1" value="Number of DU List Entries "/>
+ <parameter name="field2" value="`$tmp.DUList_length`"/>
+ <parameter name="field3" value="for the NearRTRIC"/>
+ <parameter name="field4" value="`$tmp.nearRTRICId`"/>
+ </record>
+ <for index='id-du' start='0' end='`$tmp.DUList_length`'>
+ <block atomic='true'>
+ <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'>
+ <parameter name='outputPath' value='tmp.GNBDUId' />
+ <parameter name='source' value="`'getNFNSSIRIC-configdb-response.['+ $idy +'].gNBDUList['+ $id-du +'].gNBDUId'`" />
+ </execute>
+ <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
+ <parameter name="file" value="/opt/opendaylight/current/data/log/activateRANSlice.log" />
+ <parameter name="level" value="info" />
+ <parameter name="field1" value="GNBDUId "/>
+ <parameter name="field2" value="`$tmp.GNBDUId`"/>
+ </record>
+ <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'>
+ <parameter name='outputPath' value='tmp.cellDUList_length' />
+ <parameter name='source' value="`'getNFNSSIRIC-configdb-response.[' + $idy +'].gNBDUList[' + $id-du +'].cellDUList_length'`" />
+ </execute>
+ <for index='id-celldu' start='0' end='`$tmp.cellDUList_length`' >
+ <block>
+ <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'>
+ <parameter name='outputPath' value='tmp.cellDULocalId' />
+ <parameter name='source' value="`'getNFNSSIRIC-configdb-response.['+ $idy +'].gNBDUList['+ $id-du +'].cellDUList['+ $id-celldu +'].cellLocalId'`" />
+ </execute>
+ <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'>
+ <parameter name='outputPath' value='tmp.DUpLMNInfoList_length' />
+ <parameter name='source' value="`'getNFNSSIRIC-configdb-response.['+ $idy +'].gNBDUList['+ $id-du +'].cellDUList['+ $id-celldu +'].pLMNInfoList_length'`" />
+ </execute>
+ <for index='id-duplmn' start='0' end='`$tmp.DUpLMNInfoList_length`' >
+ <block atomic='true'>
+ <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'>
+ <parameter name='outputPath' value='tmp.snssaiListdu_length' />
+ <parameter name='source' value="`'getNFNSSIRIC-configdb-response.['+ $idy +'].gNBDUList['+ $id-du +'].cellDUList['+ $id-celldu +'].pLMNInfoList['+$id-duplmn+'].sNSSAI_length'`" />
+ </execute>
+ <for index='id-dunssai' start='0' end='`$tmp.snssaiListdu_length`' >
+ <block atomic='true'>
+ <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'>
+ <parameter name='outputPath' value='tmp.configDBSNSSAI-DU' />
+ <parameter name='source' value="`'getNFNSSIRIC-configdb-response.['+ $idy +'].gNBDUList['+ $id-du +'].cellDUList['+ $id-celldu +'].pLMNInfoList['+ $id-duplmn +'].sNSSAI['+$id-dunssai+'].sNSSAI'`" />
+ </execute>
+ <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
+ <parameter name="file" value="/opt/opendaylight/current/data/log/activateRANSlice.log" />
+ <parameter name="level" value="info" />
+ <parameter name="field1" value="sNSSAI - getNFNSSIRIC-configdb-response"/>
+ <parameter name="field2" value="`$tmp.configDBSNSSAI-DU`"/>
+ <parameter name="field3" value="sNSSAI from request"/>
+ <parameter name="field4" value="`$tmp.sNSSAI`"/>
+ </record>
+ <switch test='`$tmp.configDBSNSSAI-DU == $tmp.sNSSAI`'>
+ <outcome value='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.patchPLMNInfoListEntry.ToNRCellDU`"/>
+ <parameter name="outputPath" value="tmp.patchPLMNInfoListEntry-cellDU.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.patchPLMNInfoListEntry.ToNRCellDU.ransim-mounted`"/>
+ <parameter name="outputPath" value="tmp.patchPLMNInfoListEntry-cellDU.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.patchPLMNInfoListEntry-cellDU.url`"/>
+ <parameter name="outputPath" value="tmp.patchPLMNInfoListEntry-cellDU.url"/>
+ <parameter name="target" value="{mountName}"/>
+ <parameter name="replacement" value="`$tmp.GNBDUId`"/>
+ </execute>
+ </block>
+ </outcome>
+ </switch>
+ <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >
+ <parameter name="source" value="`$tmp.patchPLMNInfoListEntry-cellDU.url`"/>
+ <parameter name="outputPath" value="tmp.patchPLMNInfoListEntry-cellDU.url"/>
+ <parameter name="target" value="{idGNBDUFunction}"/>
+ <parameter name="replacement" value="`$tmp.GNBDUId`"/>
+ </execute>
+ <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >
+ <parameter name="source" value="`$tmp.patchPLMNInfoListEntry-cellDU.url`"/>
+ <parameter name="outputPath" value="tmp.patchPLMNInfoListEntry-cellDU.url"/>
+ <parameter name="target" value="{idNRCellDU}"/>
+ <parameter name="replacement" value="`$tmp.cellDULocalId`"/>
+ </execute>
+ <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >
+ <parameter name="source" value="`$tmp.patchPLMNInfoListEntry-cellDU.url`"/>
+ <parameter name="outputPath" value="tmp.patchPLMNInfoListEntry-cellDU.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.patchPLMNInfoListEntry-cellDU.url`"/>
+ <parameter name="outputPath" value="tmp.patchPLMNInfoListEntry-cellDU.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/activateRANSlice.log" />
+ <parameter name="level" value="info" />
+ <parameter name="field1" value="patch cellDU NSSAI parameters"/>
+ <parameter name="field2" value="`$tmp.nearRTRICId`"/>
+ <parameter name="field3" value="`$tmp.GNBDUId`"/>
+ <parameter name="field4" value="`$tmp.cellDULocalId`"/>
+ <parameter name="field5" value="`$tmp.mcc`"/>
+ <parameter name="field6" value="`$tmp.mnc`"/>
+ <parameter name="field7" value="`$tmp.patchPLMNInfoListEntry-cellDU.url`"/>
+ </record>
+ <execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >
+ <parameter name="templateFileName" value="`$prop.restapi.templateDir + '/ranSlice-patch-sNSSAI-status.json'`" />
+ <parameter name="restapiUrl" value="`$prop.controller.url + $tmp.patchPLMNInfoListEntry-cellDU.url`"/>
+ <parameter name="restapiUser" value="`$prop.controller.user`" />
+ <parameter name="restapiPassword" value="`$prop.controller.pwd`"/>
+ <parameter name="httpMethod" value="PATCH"/>
+ <parameter name="responsePrefix" value="activate-cellDU-PLMNInfoList-response"/>
+ <parameter name='contentType' value='application/yang.patch+json' />
+ <parameter name='accept' value='application/yang.patch-status+json'/>
+ <parameter name='format' value='json' />
+ <outcome value='failure'>
+ <block atomic='true'>
+ <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="`$activate-r-a-n-slice-instance-input.common-header.request-id`"/>
+ <parameter name="tmp.action" value="`$activate-r-a-n-slice-instance-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`" />
+ </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-activate-response"/>
+ <parameter name='contentType' value='application/json' />
+ <parameter name='format' value='json' />
+ <parameter name='accept' value='*/*' />
+ <parameter name="convertResponse" value="true"/>
+ <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/activateRANSlice.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 patching cellDU PLMNInfoList. 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 NECellDU - PLMNInfo. Aborting RPC executiopn'/>
+ </return>
+ </block>
+ </outcome>
+ <outcome value='success'>
+ <block atomic='true'>
+ <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
+ <parameter name="file" value="/opt/opendaylight/current/data/log/activateRANSlice.log" />
+ <parameter name="level" value="info" />
+ <parameter name="field1" value="Successfully Patched - cellDU PLMNInfo List"/>
+ </record>
+ </block>
+ </outcome>
+ </execute>
+ </block>
+ </outcome>
+ </switch>
+ </block>
+ </for>
+ </block>
+ </for>
+ </block>
+ </for>
+ </block>
+ </for>
+ </block>
+ </for>
+ <block atomic='true'>
+ <set>
+ <parameter name="tmp.status" value="`$error-code`"/>
+ <parameter name="tmp.reason" value="`$error-message`"/>
+ <parameter name="tmp.requestID" value="`$activate-r-a-n-slice-input.common-header.request-id `"/>
+ <parameter name="tmp.action" value="`$activate-r-a-n-slice-input.action`"/>
+ </set>
+ <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >
+ <parameter name="source" value="`$prop.restapi.so.callbackURL`"/>
+ <parameter name="outputPath" value="tmp.so.callbackURL"/>
+ <parameter name="target" value="{requestId}"/>
+ <parameter name="replacement" value="`$tmp.requestID`"/>
+ </execute>
+ <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="`$payloadJson.input.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`" />
+ </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="`$payloadJson.input.callbackURL`"/>
+ <parameter name="httpMethod" value="POST"/>
+ <parameter name="responsePrefix" value="so-callback-activate-response"/>
+ <parameter name='contentType' value='application/json' />
+ <parameter name='format' value='json' />
+ <parameter name='accept' value='*/*' />
+ <parameter name="restapiUser" value="`$prop.restapi.so.user`" />
+ <parameter name="restapiPassword" value="`$prop.restapi.so.password`"/>
+ <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/activateRANSlice.log" />
+ <parameter name="level" value="info" />
+ <parameter name="field1" value="SO Response Sent "/>
+ </record>
+ </block>
+ </outcome>
+ </execute>
+ </block>
+ </block>
+ </method>
+</service-logic> \ No newline at end of file
diff --git a/platform-logic/ran-slice-api/src/main/xml/ran-slice-api_activateRANSliceInstance.xml b/platform-logic/ran-slice-api/src/main/xml/ran-slice-api_activateRANSliceInstance.xml
index 47e91575..9185c2fd 100644
--- a/platform-logic/ran-slice-api/src/main/xml/ran-slice-api_activateRANSliceInstance.xml
+++ b/platform-logic/ran-slice-api/src/main/xml/ran-slice-api_activateRANSliceInstance.xml
@@ -1,932 +1,30 @@
-<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='activateRANSliceInstance' mode='sync'>
- <block atomic='true'>
- <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
- <parameter name="file" value="/opt/opendaylight/current/data/log/activateRANSlice.log" />
- <parameter name="level" value="info" />
- <parameter name="field1" value="RPC to handle activateRANSlice.: "/>
- <parameter name="field2" value="`$activate-r-a-n-slice-instance-input.action`"/>
- <parameter name="field3" value="`$activate-r-a-n-slice-instance-input.timestamp`"/>
- <parameter name="field4" value="`$activate-r-a-n-slice-instance-input.common-header.request-id`"/>
- <parameter name="field5" value="`$activate-r-a-n-slice-instance-input.common-header.originator-id`"/>
- <parameter name="field6" value="RPC Payload String "/>
- <parameter name="field7" value="`$activate-r-a-n-slice-instance-input.payload`"/>
- </record>
- <set>
- <parameter name='error-code' value='200' />
- <parameter name='error-message' value='Successful execution of activateRANSice RPC' />
- </set>
- <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='jsonStringToCtx'>
- <parameter name='source' value='activate-r-a-n-slice-instance-input.payload' />
- <parameter name='outputPath' value='payloadJson' />
- <parameter name='isEscaped' value='false' />
- <outcome value='success'>
- <block atomic='true'>
- <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='printContext' >
- <parameter name='filename' value='/opt/opendaylight/current/data/log/ranSlice-activateRANSlice-context.log' />
- </execute>
- <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
- <parameter name="file" value="/opt/opendaylight/current/data/log/activateRANSlice.log" />
- <parameter name="level" value="info" />
- <parameter name="field1" value="Payload for activateRANSlice.: "/>
- <parameter name="field2" value="`$payloadJson.input.sNSSAI`"/>
- <parameter name="field3" value="`$payloadJson.input.RANNFNSSIId`"/>
- <parameter name="field4" value="`$payloadJson.input.callbackURL`"/>
- <parameter name="field5" value="`$payloadJson.input.sliceProfileId`"/>
- </record>
- </block>
- </outcome>
- </execute>
- <set>
- <parameter name='tmp.sNSSAI' value="`$payloadJson.input.sNSSAI`" />
- </set>
- <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='printContext' >
- <parameter name='filename' value='/opt/opendaylight/current/data/log/ranSlice-activateRANSlice-context.log' />
- </execute>
- <execute plugin='org.onap.ccsdk.sli.plugins.prop.PropertiesNode' method='readProperties' >
- <parameter name='fileName' value='/opt/onap/ccsdk/data/properties/ran-slice-api-dg.properties' />
- <parameter name='contextPrefix' value='prop' />
- </execute>
- <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
- <parameter name="file" value="/opt/opendaylight/current/data/log/activateRANSlice.log" />
- <parameter name="level" value="info" />
- <parameter name="field1" value="Properties read .. controller details "/>
- <parameter name="field2" value="`$prop.controller.user`"/>
- <parameter name="field3" value="`$prop.controller.pwd`"/>
- <parameter name="field4" value="`$prop.controller.url`"/>
- <parameter name="field5" value="ransim-mounted (true/false): "/>
- <parameter name="field6" value="`$prop.ransim-mounted`"/>
- <parameter name="field7" value="config DB deployed (true/false): "/>
- <parameter name="field8" value="`$prop.configdb-deployed`"/>
- </record>
- <switch test='`$activate-r-a-n-slice-instance-input.action == activate`'>
- <outcome value='true'>
- <block atomic='true'>
- <set>
- <parameter name='tmp.status' value='ACTIVE' />
- </set>
- </block>
- </outcome>
- <outcome value='false'>
- <block atomic='true'>
- <set>
- <parameter name='tmp.status' value='INACTIVE' />
- </set>
- </block>
- </outcome>
- </switch>
- <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >
- <parameter name="source" value="`$prop.restapi.configdb.getNearRTRICByNSSI`"/>
- <parameter name="outputPath" value="tmp.configdb.getNearRTRICByNSSI.url"/>
- <parameter name="target" value="{ranNFNSSIId}"/>
- <parameter name="replacement" value="`$payloadJson.input.RANNFNSSIId`"/>
- </execute>
- <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
- <parameter name="file" value="/opt/opendaylight/current/data/log/activateRANSlice.log" />
- <parameter name="level" value="info" />
- <parameter name="field1" value="URL for configDB to Get NearRTRIC for RANNFNSSI"/>
- <parameter name='field2' value="`$prop.configdb.url + $tmp.configdb.getNearRTRICByNSSI.url`" />
- <parameter name='field3' value="`$ranNFNSSIId`" />
- </record>
- <execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >
- <parameter name="restapiUrl" value="`$prop.configdb.url + $tmp.configdb.getNearRTRICByNSSI.url`"/>
- <parameter name="httpMethod" value="GET"/>
- <parameter name="responsePrefix" value="getNFNSSIRIC-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>
- <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="`$activate-r-a-n-slice-instance-input.common-header.request-id`"/>
- <parameter name="tmp.action" value="`$activate-r-a-n-slice-instance-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`" />
- </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-activate-response"/>
- <parameter name='contentType' value='application/json' />
- <parameter name='format' value='json' />
- <parameter name='accept' value='*/*' />
- <parameter name="convertResponse" value="true"/>
- <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/activateRANSlice.log" />
- <parameter name="level" value="info" />
- <parameter name="field1" value="SO Response Sent "/>
- </record>
- </block>
- </outcome>
- </execute>
- </block>
- </block>
- </outcome>
- <outcome value='success'>
- <block atomic='true'>
- <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
- <parameter name="file" value="/opt/opendaylight/current/data/log/activateRANSlice.log" />
- <parameter name="level" value="info" />
- <parameter name="field1" value="Successfully Obtained NearRT RIC info from ConfigDB"/>
- <parameter name="field2" value="`$getNFNSSIRIC-configdb-response._length`"/>
- </record>
- <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='printContext' >
- <parameter name='filename' value='/opt/opendaylight/current/data/log/ranSlice-activateRANSlice-context.log' />
- </execute>
- </block>
- </outcome>
- </execute>
- <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >
- <parameter name="source" value="`$prop.restapi.configdb.getplmn`"/>
- <parameter name="outputPath" value="tmp.configdb.getPLMNId.url"/>
- <parameter name="target" value="{sliceProfileId}"/>
- <parameter name="replacement" value="`$payloadJson.input.sliceProfileId`"/>
- </execute>
- <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
- <parameter name="file" value="/opt/opendaylight/current/data/log/activateRANSlice.log" />
- <parameter name="level" value="info" />
- <parameter name="field1" value="Get PLMN from SliceProfileId URL: "/>
- <parameter name="field2" value="`$tmp.configdb.getPLMNId.url`"/>
- </record>
- <execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >
- <parameter name="restapiUrl" value="`$prop.configdb.url + $tmp.configdb.getPLMNId.url`"/>
- <parameter name="httpMethod" value="GET"/>
- <parameter name="responsePrefix" value="getPLMN-configdb-response"/>
- <parameter name='contentType' value='application/json' />
- <parameter name='format' value='json' />
- <parameter name='accept' value='application/json' />
- <parameter name="convertResponse" value="true"/>
- </execute>
- <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'>
- <parameter name='outputPath' value='tmp.pLMNId' />
- <parameter name='source' value="`getPLMN-configdb-response.plmnId`" />
- </execute>
- <block atomic="true">
- <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='split'>
- <parameter name="original_string" value="`$tmp.pLMNId`" />
- <parameter name="regex" value="-"/>
- <parameter name="ctx_memory_result_key" value="tmp.plmnList" />
- </execute>
- <set>
- <parameter name='tmp.mcc' value='`$tmp.plmnList[0]`'/>
- <parameter name='tmp.mnc' value='`$tmp.plmnList[1]`'/>
- </set>
- </block>
- <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
- <parameter name="file" value="/opt/opendaylight/current/data/log/activateRANSlice.log" />
- <parameter name="level" value="info" />
- <parameter name="field1" value="`$tmp.pLMNId`"/>
- <parameter name="field2" value="`$tmp.mcc`"/>
- <parameter name="field3" value="`$tmp.mnc`"/>
- </record>
- <set>
- <parameter name='tmp.RICList_length' value="`$getNFNSSIRIC-configdb-response._length`"/>
- </set>
- <for index='idy' start='0' end='`$tmp.RICList_length`' >
- <block atomic='true'>
- <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'>
- <parameter name='outputPath' value='tmp.nearRTRICId' />
- <parameter name='source' value="`'getNFNSSIRIC-configdb-response.[' + $idy +'].nearRTRICId'`" />
- </execute>
- </block>
- <block atomic='true'>
- <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'>
- <parameter name='outputPath' value='tmp.CUCPList_length' />
- <parameter name='source' value="`'getNFNSSIRIC-configdb-response.[' + $idy +'].gNBCUCPList_length'`" />
- </execute>
- <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
- <parameter name="file" value="/opt/opendaylight/current/data/log/activateRANSlice.log" />
- <parameter name="level" value="info" />
- <parameter name="field1" value="Number of CUCP List Entries "/>
- <parameter name="field2" value="`$tmp.CUCPList_length`"/>
- <parameter name="field3" value="for the NearRTRIC"/>
- <parameter name="field4" value="`$tmp.nearRTRICId`"/>
- </record>
- <for index='idz' start='0' end='`$tmp.CUCPList_length`'>
- <block atomic='true'>
- <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'>
- <parameter name='outputPath' value='tmp.CUCPName' />
- <parameter name='source' value="`'getNFNSSIRIC-configdb-response.['+ $idy +'].gNBCUCPList['+ $idz +'].gNBCUName'`" />
- </execute>
- <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
- <parameter name="file" value="/opt/opendaylight/current/data/log/activateRANSlice.log" />
- <parameter name="level" value="info" />
- <parameter name="field1" value="CUCPName "/>
- <parameter name="field2" value="`$tmp.CUCPName`"/>
- </record>
- <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'>
- <parameter name='outputPath' value='tmp.cellCUList_length' />
- <parameter name='source' value="`'getNFNSSIRIC-configdb-response.[' + $idy +'].gNBCUCPList[' + $idz +'].cellCUList_length'`" />
- </execute>
- <for index='idcu' start='0' end='`$tmp.cellCUList_length`' >
- <block atomic='true'>
- <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'>
- <parameter name='outputPath' value='tmp.cellLocalId' />
- <parameter name='source' value="`'getNFNSSIRIC-configdb-response.['+ $idy +'].gNBCUCPList['+ $idz +'].cellCUList['+ $idcu +'].cellLocalId'`" />
- </execute>
- <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'>
- <parameter name='outputPath' value='tmp.pLMNInfoList_length' />
- <parameter name='source' value="`'getNFNSSIRIC-configdb-response.['+ $idy +'].gNBCUCPList['+ $idz +'].cellCUList['+ $idcu +'].pLMNInfoList_length'`" />
- </execute>
- <for index='id-cuplmn' start='0' end='`$tmp.pLMNInfoList_length`' >
- <block atomic='true'>
- <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'>
- <parameter name='outputPath' value='tmp.snssaiList_length' />
- <parameter name='source' value="`'getNFNSSIRIC-configdb-response.['+ $idy +'].gNBCUCPList['+ $idz +'].cellCUList['+ $idcu +'].pLMNInfoList['+$id-cuplmn+'].sNSSAI_length'`" />
- </execute>
- <for index='id-cunssai' start='0' end='`$tmp.snssaiList_length`' >
- <block atomic='true'>
- <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'>
- <parameter name='outputPath' value='tmp.configDBSNSSAI' />
- <parameter name='source' value="`'getNFNSSIRIC-configdb-response.['+ $idy +'].gNBCUCPList['+ $idz +'].cellCUList['+ $idcu +'].pLMNInfoList['+ $id-cuplmn +'].sNSSAI['+$id-cunssai+'].sNSSAI'`" />
- </execute>
- <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
- <parameter name="file" value="/opt/opendaylight/current/data/log/activateRANSlice.log" />
- <parameter name="level" value="info" />
- <parameter name="field1" value="sNSSAI - getNFNSSIRIC-configdb-response"/>
- <parameter name="field2" value="`$tmp.configDBSNSSAI`"/>
- <parameter name="field3" value="sNSSAI from request"/>
- <parameter name="field4" value="`$tmp.sNSSAI`"/>
- </record>
- <switch test='`$tmp.configDBSNSSAI == $tmp.sNSSAI`'>
- <outcome value='true'>
- <block atomic='true'>
- <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
- <parameter name="file" value="/opt/opendaylight/current/data/log/activateRANSlice.log" />
- <parameter name="level" value="info" />
- <parameter name="field1" value="CellCU is applicable for the NSSAI "/>
- </record>
- <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.patchPLMNInfoListEntry.ToNRCellCU`"/>
- <parameter name="outputPath" value="tmp.patchPLMNInfoListEntry.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.patchPLMNInfoListEntry.ToNRCellCU.ransim-mounted`"/>
- <parameter name="outputPath" value="tmp.patchPLMNInfoListEntry.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.patchPLMNInfoListEntry.url`"/>
- <parameter name="outputPath" value="tmp.patchPLMNInfoListEntry.url"/>
- <parameter name="target" value="{mountName}"/>
- <parameter name="replacement" value="`$tmp.CUCPName`"/>
- </execute>
- </block>
- </outcome>
- </switch>
- <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'>
- <parameter name='outputPath' value='tmp.cellCULocalId' />
- <parameter name='source' value="`'getNFNSSIRIC-configdb-response.['+ $idy +'].gNBCUCPList['+ $idz +'].cellCUList['+ $idcu +'].cellLocalId'`" />
- </execute>
- <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >
- <parameter name="source" value="`$tmp.patchPLMNInfoListEntry.url`"/>
- <parameter name="outputPath" value="tmp.patchPLMNInfoListEntry.url"/>
- <parameter name="target" value="{idGNBCUCPFunction}"/>
- <parameter name="replacement" value="`$tmp.CUCPName`"/>
- </execute>
- <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >
- <parameter name="source" value="`$tmp.patchPLMNInfoListEntry.url`"/>
- <parameter name="outputPath" value="tmp.patchPLMNInfoListEntry.url"/>
- <parameter name="target" value="{idNRCellCU}"/>
- <parameter name="replacement" value="`$tmp.cellCULocalId`"/>
- </execute>
- <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >
- <parameter name="source" value="`$tmp.patchPLMNInfoListEntry.url`"/>
- <parameter name="outputPath" value="tmp.patchPLMNInfoListEntry.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.patchPLMNInfoListEntry.url`"/>
- <parameter name="outputPath" value="tmp.patchPLMNInfoListEntry.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/activateRANSlice.log" />
- <parameter name="level" value="info" />
- <parameter name="field1" value="patch cellCU NSSAI parameters"/>
- <parameter name="field2" value="`$tmp.nearRTRICId`"/>
- <parameter name="field3" value="`$tmp.CUCPName`"/>
- <parameter name="field4" value="`$tmp.cellCULocalId`"/>
- <parameter name="field5" value="`$tmp.mcc`"/>
- <parameter name="field6" value="`$tmp.mnc`"/>
- <parameter name="field7" value="`$tmp.patchPLMNInfoListEntry.url`"/>
- </record>
- <execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >
- <parameter name="templateFileName" value="`$prop.restapi.templateDir + '/ranSlice-patch-sNSSAI-status.json'`" />
- <parameter name="restapiUrl" value="`$prop.controller.url + $tmp.patchPLMNInfoListEntry.url`"/>
- <parameter name="restapiUser" value="`$prop.controller.user`" />
- <parameter name="restapiPassword" value="`$prop.controller.pwd`"/>
- <parameter name="httpMethod" value="PATCH"/>
- <parameter name="responsePrefix" value="activate-cellCU-PLMNInfoList-response"/>
- <parameter name='contentType' value='application/yang.patch+json' />
- <parameter name='accept' value='application/yang.patch-status+json'/>
- <parameter name='format' value='json' />
- <outcome value='failure'>
- <block atomic='true'>
- <set>
- <parameter name='error-code' value='500'/>
- <parameter name='error-message' value='Error patching cellCU PLMNInfoList. 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 NRcellCU - PLMNInfo. 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="`$activate-r-a-n-slice-instance-input.common-header.request-id`"/>
- <parameter name="tmp.action" value="`$activate-r-a-n-slice-instance-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`" />
- </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-activate-response"/>
- <parameter name='contentType' value='application/json' />
- <parameter name='format' value='json' />
- <parameter name='accept' value='*/*' />
- <parameter name="convertResponse" value="true"/>
- <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/activateRANSlice.log" />
- <parameter name="level" value="info" />
- <parameter name="field1" value="SO Response Sent "/>
- </record>
- </block>
- </outcome>
- </execute>
- </block>
- </block>
- </outcome>
- <outcome value='success'>
- <block atomic='true'>
- <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
- <parameter name="file" value="/opt/opendaylight/current/data/log/activateRANSlice.log" />
- <parameter name="level" value="info" />
- <parameter name="field1" value="Successfully Patched - cellCU PLMNInfo List"/>
- </record>
- </block>
- </outcome>
- </execute>
- </block>
- </outcome>
- </switch>
- </block>
- </for>
- </block>
- </for>
- </block>
- </for>
- </block>
- </for>
- </block>
- <block atomic='true'>
- <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'>
- <parameter name='outputPath' value='tmp.CUUPList_length' />
- <parameter name='source' value="`'getNFNSSIRIC-configdb-response.[' + $idy +'].gNBCUUPList_length'`" />
- </execute>
- <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
- <parameter name="file" value="/opt/opendaylight/current/data/log/activateRANSlice.log" />
- <parameter name="level" value="info" />
- <parameter name="field1" value="Number of CUCP List Entries "/>
- <parameter name="field2" value="`$tmp.CUUPList_length`"/>
- <parameter name="field3" value="for the NearRTRIC"/>
- <parameter name="field4" value="`$tmp.nearRTRICId`"/>
- </record>
- <for index='id-cuup' start='0' end='`$tmp.CUUPList_length`'>
- <block atomic='true'>
- <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'>
- <parameter name='outputPath' value='tmp.idGNBCUUPFunction' />
- <parameter name='source' value="`'getNFNSSIRIC-configdb-response.['+ $idy +'].gNBCUUPList['+ $id-cuup +'].gNBCUUPId'`" />
- </execute>
- <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
- <parameter name="file" value="/opt/opendaylight/current/data/log/activateRANSlice.log" />
- <parameter name="level" value="info" />
- <parameter name="field1" value="idGNBCUUPFunction "/>
- <parameter name="field2" value="`$tmp.idGNBCUUPFunction`"/>
- </record>
- <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'>
- <parameter name='outputPath' value='tmp.pLMNInfoList' />
- <parameter name='source' value="`'getNFNSSIRIC-configdb-response.['+ $idy +'].gNBCUUPList['+ $id-cuup +'].pLMNInfoList_length'`" />
- </execute>
- <for index='id-plmn' start='0' end='`$tmp.pLMNInfoList`'>
- <block atomic='true'>
- <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'>
- <parameter name='outputPath' value='tmp.snssaiListup_length' />
- <parameter name='source' value="`'getNFNSSIRIC-configdb-response.['+ $idy +'].gNBCUUPList['+ $id-cuup +'].pLMNInfoList['+$id-plmn+'].sNSSAI_length'`" />
- </execute>
- <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
- <parameter name="file" value="/opt/opendaylight/current/data/log/activateRANSlice.log" />
- <parameter name="level" value="info" />
- <parameter name="field1" value="CUUP - snssaiList_length"/>
- <parameter name="field2" value="`$tmp.snssaiListup_length`"/>
- </record>
- <for index='id-cuupnssai' start='0' end='`$tmp.snssaiListup_length`' >
- <block atomic='true'>
- <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'>
- <parameter name='outputPath' value='tmp.configDBSNSSAI' />
- <parameter name='source' value="`'getNFNSSIRIC-configdb-response.['+ $idy +'].gNBCUUPList['+ $id-cuup +'].pLMNInfoList['+ $id-plmn +'].sNSSAI['+$id-cuupnssai+'].sNSSAI'`" />
- </execute>
- <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
- <parameter name="file" value="/opt/opendaylight/current/data/log/activateRANSlice.log" />
- <parameter name="level" value="info" />
- <parameter name="field1" value="sNSSAI - getNFNSSIRIC-configdb-response"/>
- <parameter name="field2" value="`$tmp.configDBSNSSAI`"/>
- <parameter name="field3" value="sNSSAI from request"/>
- <parameter name="field4" value="`$tmp.sNSSAI`"/>
- </record>
- <switch test='`$tmp.configDBSNSSAI == $tmp.sNSSAI`'>
- <outcome value='false'>
- <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
- <parameter name="file" value="/opt/opendaylight/current/data/log/activateRANSlice.log" />
- <parameter name="level" value="info" />
- <parameter name="field1" value="sNSSAI doesn't match"/>
- </record>
- </outcome>
- <outcome value='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.patchPLMNInfoListEntry.ToGNBCUUP`"/>
- <parameter name="outputPath" value="tmp.patchPLMNInfoList-CUUP.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.patchPLMNInfoListEntry.ToGNBCUUP.ransim-mounted`"/>
- <parameter name="outputPath" value="tmp.patchPLMNInfoList-CUUP.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.patchPLMNInfoList-CUUP.url`"/>
- <parameter name="outputPath" value="tmp.patchPLMNInfoList-CUUP.url"/>
- <parameter name="target" value="{mountName}"/>
- <parameter name="replacement" value="`$tmp.idGNBCUUPFunction`"/>
- </execute>
- </block>
- </outcome>
- </switch>
- <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >
- <parameter name="source" value="`$tmp.patchPLMNInfoList-CUUP.url`"/>
- <parameter name="outputPath" value="tmp.patchPLMNInfoList-CUUP.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.patchPLMNInfoList-CUUP.url`"/>
- <parameter name="outputPath" value="tmp.patchPLMNInfoList-CUUP.url"/>
- <parameter name="target" value="{idGNBCUUPFunction}"/>
- <parameter name="replacement" value="`$tmp.idGNBCUUPFunction`"/>
- </execute>
- <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >
- <parameter name="source" value="`$tmp.patchPLMNInfoList-CUUP.url`"/>
- <parameter name="outputPath" value="tmp.patchPLMNInfoList-CUUP.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.patchPLMNInfoList-CUUP.url`"/>
- <parameter name="outputPath" value="tmp.patchPLMNInfoList-CUUP.url"/>
- <parameter name="target" value="{mnc}"/>
- <parameter name="replacement" value="`$tmp.mnc`"/>
- </execute>
- <execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >
- <parameter name="templateFileName" value="`$prop.restapi.templateDir + '/ranSlice-patch-sNSSAI-status.json'`" />
- <parameter name="restapiUrl" value="`$prop.controller.url + $tmp.patchPLMNInfoList-CUUP.url`"/>
- <parameter name="restapiUser" value="`$prop.controller.user`" />
- <parameter name="restapiPassword" value="`$prop.controller.pwd`"/>
- <parameter name="httpMethod" value="PATCH"/>
- <parameter name="responsePrefix" value="activate-gNBCUUP-PLMNInfoList-response"/>
- <parameter name='contentType' value='application/yang.patch+json' />
- <parameter name='accept' value='application/yang.patch-status+json'/>
- <parameter name='format' value='json' />
- <outcome value='failure'>
- <block atomic='true'>
- <set>
- <parameter name='error-code' value='500'/>
- <parameter name='error-message' value='Error patching CUUP PLMNInfoList. 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 patching CUUP PLMNInfo. 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="`$activate-r-a-n-slice-instance-input.common-header.request-id`"/>
- <parameter name="tmp.action" value="`$activate-r-a-n-slice-instance-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`" />
- </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-activate-response"/>
- <parameter name='contentType' value='application/json' />
- <parameter name='format' value='json' />
- <parameter name='accept' value='*/*' />
- <parameter name="convertResponse" value="true"/>
- <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/activateRANSlice.log" />
- <parameter name="level" value="info" />
- <parameter name="field1" value="SO Response Sent "/>
- </record>
- </block>
- </outcome>
- </execute>
- </block>
- </block>
- </outcome>
- <outcome value='success'>
- <block atomic='true'>
- <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
- <parameter name="file" value="/opt/opendaylight/current/data/log/activateRANSlice.log" />
- <parameter name="level" value="info" />
- <parameter name="field1" value="Successfully Patched - gNBCUUP PLMNInfo List"/>
- </record>
- </block>
- </outcome>
- </execute>
- </block>
- </outcome>
- </switch>
- </block>
- </for>
- </block>
- </for>
- </block>
- </for>
- </block>
- <block atomic='true'>
- <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'>
- <parameter name='outputPath' value='tmp.DUList_length' />
- <parameter name='source' value="`'getNFNSSIRIC-configdb-response.[' + $idy +'].gNBDUList_length'`" />
- </execute>
- <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
- <parameter name="file" value="/opt/opendaylight/current/data/log/activateRANSlice.log" />
- <parameter name="level" value="info" />
- <parameter name="field1" value="Number of DU List Entries "/>
- <parameter name="field2" value="`$tmp.DUList_length`"/>
- <parameter name="field3" value="for the NearRTRIC"/>
- <parameter name="field4" value="`$tmp.nearRTRICId`"/>
- </record>
- <for index='id-du' start='0' end='`$tmp.DUList_length`'>
- <block atomic='true'>
- <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'>
- <parameter name='outputPath' value='tmp.GNBDUId' />
- <parameter name='source' value="`'getNFNSSIRIC-configdb-response.['+ $idy +'].gNBDUList['+ $id-du +'].gNBDUId'`" />
- </execute>
- <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
- <parameter name="file" value="/opt/opendaylight/current/data/log/activateRANSlice.log" />
- <parameter name="level" value="info" />
- <parameter name="field1" value="GNBDUId "/>
- <parameter name="field2" value="`$tmp.GNBDUId`"/>
- </record>
- <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'>
- <parameter name='outputPath' value='tmp.cellDUList_length' />
- <parameter name='source' value="`'getNFNSSIRIC-configdb-response.[' + $idy +'].gNBDUList[' + $id-du +'].cellDUList_length'`" />
- </execute>
- <for index='id-celldu' start='0' end='`$tmp.cellDUList_length`' >
- <block>
- <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'>
- <parameter name='outputPath' value='tmp.cellDULocalId' />
- <parameter name='source' value="`'getNFNSSIRIC-configdb-response.['+ $idy +'].gNBDUList['+ $id-du +'].cellDUList['+ $id-celldu +'].cellLocalId'`" />
- </execute>
- <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'>
- <parameter name='outputPath' value='tmp.DUpLMNInfoList_length' />
- <parameter name='source' value="`'getNFNSSIRIC-configdb-response.['+ $idy +'].gNBDUList['+ $id-du +'].cellDUList['+ $id-celldu +'].pLMNInfoList_length'`" />
- </execute>
- <for index='id-duplmn' start='0' end='`$tmp.DUpLMNInfoList_length`' >
- <block atomic='true'>
- <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'>
- <parameter name='outputPath' value='tmp.snssaiListdu_length' />
- <parameter name='source' value="`'getNFNSSIRIC-configdb-response.['+ $idy +'].gNBDUList['+ $id-du +'].cellDUList['+ $id-celldu +'].pLMNInfoList['+$id-duplmn+'].sNSSAI_length'`" />
- </execute>
- <for index='id-dunssai' start='0' end='`$tmp.snssaiListdu_length`' >
- <block atomic='true'>
- <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'>
- <parameter name='outputPath' value='tmp.configDBSNSSAI-DU' />
- <parameter name='source' value="`'getNFNSSIRIC-configdb-response.['+ $idy +'].gNBDUList['+ $id-du +'].cellDUList['+ $id-celldu +'].pLMNInfoList['+ $id-duplmn +'].sNSSAI['+$id-dunssai+'].sNSSAI'`" />
- </execute>
- <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
- <parameter name="file" value="/opt/opendaylight/current/data/log/activateRANSlice.log" />
- <parameter name="level" value="info" />
- <parameter name="field1" value="sNSSAI - getNFNSSIRIC-configdb-response"/>
- <parameter name="field2" value="`$tmp.configDBSNSSAI-DU`"/>
- <parameter name="field3" value="sNSSAI from request"/>
- <parameter name="field4" value="`$tmp.sNSSAI`"/>
- </record>
- <switch test='`$tmp.configDBSNSSAI-DU == $tmp.sNSSAI`'>
- <outcome value='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.patchPLMNInfoListEntry.ToNRCellDU`"/>
- <parameter name="outputPath" value="tmp.patchPLMNInfoListEntry-cellDU.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.patchPLMNInfoListEntry.ToNRCellDU.ransim-mounted`"/>
- <parameter name="outputPath" value="tmp.patchPLMNInfoListEntry-cellDU.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.patchPLMNInfoListEntry-cellDU.url`"/>
- <parameter name="outputPath" value="tmp.patchPLMNInfoListEntry-cellDU.url"/>
- <parameter name="target" value="{mountName}"/>
- <parameter name="replacement" value="`$tmp.GNBDUId`"/>
- </execute>
- </block>
- </outcome>
- </switch>
- <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >
- <parameter name="source" value="`$tmp.patchPLMNInfoListEntry-cellDU.url`"/>
- <parameter name="outputPath" value="tmp.patchPLMNInfoListEntry-cellDU.url"/>
- <parameter name="target" value="{idGNBDUFunction}"/>
- <parameter name="replacement" value="`$tmp.GNBDUId`"/>
- </execute>
- <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >
- <parameter name="source" value="`$tmp.patchPLMNInfoListEntry-cellDU.url`"/>
- <parameter name="outputPath" value="tmp.patchPLMNInfoListEntry-cellDU.url"/>
- <parameter name="target" value="{idNRCellDU}"/>
- <parameter name="replacement" value="`$tmp.cellDULocalId`"/>
- </execute>
- <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >
- <parameter name="source" value="`$tmp.patchPLMNInfoListEntry-cellDU.url`"/>
- <parameter name="outputPath" value="tmp.patchPLMNInfoListEntry-cellDU.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.patchPLMNInfoListEntry-cellDU.url`"/>
- <parameter name="outputPath" value="tmp.patchPLMNInfoListEntry-cellDU.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/activateRANSlice.log" />
- <parameter name="level" value="info" />
- <parameter name="field1" value="patch cellDU NSSAI parameters"/>
- <parameter name="field2" value="`$tmp.nearRTRICId`"/>
- <parameter name="field3" value="`$tmp.GNBDUId`"/>
- <parameter name="field4" value="`$tmp.cellDULocalId`"/>
- <parameter name="field5" value="`$tmp.mcc`"/>
- <parameter name="field6" value="`$tmp.mnc`"/>
- <parameter name="field7" value="`$tmp.patchPLMNInfoListEntry-cellDU.url`"/>
- </record>
- <execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >
- <parameter name="templateFileName" value="`$prop.restapi.templateDir + '/ranSlice-patch-sNSSAI-status.json'`" />
- <parameter name="restapiUrl" value="`$prop.controller.url + $tmp.patchPLMNInfoListEntry-cellDU.url`"/>
- <parameter name="restapiUser" value="`$prop.controller.user`" />
- <parameter name="restapiPassword" value="`$prop.controller.pwd`"/>
- <parameter name="httpMethod" value="PATCH"/>
- <parameter name="responsePrefix" value="activate-cellDU-PLMNInfoList-response"/>
- <parameter name='contentType' value='application/yang.patch+json' />
- <parameter name='accept' value='application/yang.patch-status+json'/>
- <parameter name='format' value='json' />
- <outcome value='failure'>
- <block atomic='true'>
- <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="`$activate-r-a-n-slice-instance-input.common-header.request-id`"/>
- <parameter name="tmp.action" value="`$activate-r-a-n-slice-instance-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`" />
- </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-activate-response"/>
- <parameter name='contentType' value='application/json' />
- <parameter name='format' value='json' />
- <parameter name='accept' value='*/*' />
- <parameter name="convertResponse" value="true"/>
- <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/activateRANSlice.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 patching cellDU PLMNInfoList. 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 NECellDU - PLMNInfo. Aborting RPC executiopn'/>
- </return>
- </block>
- </outcome>
- <outcome value='success'>
- <block atomic='true'>
- <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
- <parameter name="file" value="/opt/opendaylight/current/data/log/activateRANSlice.log" />
- <parameter name="level" value="info" />
- <parameter name="field1" value="Successfully Patched - cellDU PLMNInfo List"/>
- </record>
- </block>
- </outcome>
- </execute>
- </block>
- </outcome>
- </switch>
- </block>
- </for>
- </block>
- </for>
- </block>
- </for>
- </block>
- </for>
- </block>
- </for>
- <return status='success'>
- <parameter name="ack-final" value="Y" />
- <parameter name="error-code" value="200" />
- <parameter name="error-message" value="SUCCESSFUL Execution" />
- </return>
- <block atomic='true'>
- <set>
- <parameter name="tmp.status" value="`$error-code`"/>
- <parameter name="tmp.reason" value="`$error-message`"/>
- <parameter name="tmp.requestID" value="`$activate-r-a-n-slice-input.common-header.request-id `"/>
- <parameter name="tmp.action" value="`$activate-r-a-n-slice-input.action`"/>
- </set>
- <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >
- <parameter name="source" value="`$prop.restapi.so.callbackURL`"/>
- <parameter name="outputPath" value="tmp.so.callbackURL"/>
- <parameter name="target" value="{requestId}"/>
- <parameter name="replacement" value="`$tmp.requestID`"/>
- </execute>
- <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="`$payloadJson.input.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`" />
- </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="`$payloadJson.input.callbackURL`"/>
- <parameter name="httpMethod" value="POST"/>
- <parameter name="responsePrefix" value="so-callback-activate-response"/>
- <parameter name='contentType' value='application/json' />
- <parameter name='format' value='json' />
- <parameter name='accept' value='*/*' />
- <parameter name="restapiUser" value="`$prop.restapi.so.user`" />
- <parameter name="restapiPassword" value="`$prop.restapi.so.password`"/>
- <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/activateRANSlice.log" />
- <parameter name="level" value="info" />
- <parameter name="field1" value="SO Response Sent "/>
- </record>
- </block>
- </outcome>
- </execute>
- </block>
- </block>
- </method>
+<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='activateRANSliceInstance' mode='sync'>
+ <block atomic='true'>
+ <switch test='`$prop.configdb-deployed`'>
+ <outcome value='true'>
+ <block atomic='true'>
+ <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="Calling instantiateRANSliceModifyAllocate-CPS "/>
+ </record>
+ <call module='ran-slice-api' rpc='activateRANSliceInstance-configDb' mode='sync' ></call>
+ </block>
+ </outcome>
+ <outcome value='false'>
+ <block atomic='true'>
+ <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="Calling instantiateRANSliceModifyAllocate-CPS "/>
+ </record>
+ <call module='ran-slice-api' rpc='activateRANSliceInstance-cps' mode='sync' ></call>
+ </block>
+ </outcome>
+ </switch>
+ </block>
+ </method>
</service-logic> \ No newline at end of file