summaryrefslogtreecommitdiffstats
path: root/platform-logic/ran-slice-api
diff options
context:
space:
mode:
Diffstat (limited to 'platform-logic/ran-slice-api')
-rw-r--r--platform-logic/ran-slice-api/src/main/json/ran-slice-api_terminateRANSliceInstance-configDb.json8932
-rw-r--r--platform-logic/ran-slice-api/src/main/json/ran-slice-api_terminateRANSliceInstance-cps.json9372
-rw-r--r--platform-logic/ran-slice-api/src/main/json/ran-slice-api_terminateRANSliceInstance.json8887
-rw-r--r--platform-logic/ran-slice-api/src/main/xml/ran-slice-api_terminateRANSliceInstance-configDb.xml2675
-rw-r--r--platform-logic/ran-slice-api/src/main/xml/ran-slice-api_terminateRANSliceInstance-cps.xml2779
-rw-r--r--platform-logic/ran-slice-api/src/main/xml/ran-slice-api_terminateRANSliceInstance.xml2689
6 files changed, 23867 insertions, 11467 deletions
diff --git a/platform-logic/ran-slice-api/src/main/json/ran-slice-api_terminateRANSliceInstance-configDb.json b/platform-logic/ran-slice-api/src/main/json/ran-slice-api_terminateRANSliceInstance-configDb.json
new file mode 100644
index 00000000..7b515c49
--- /dev/null
+++ b/platform-logic/ran-slice-api/src/main/json/ran-slice-api_terminateRANSliceInstance-configDb.json
@@ -0,0 +1,8932 @@
+[
+ {
+ "id": "2e018cae.b35a74",
+ "type": "dgstart",
+ "name": "DGSTART",
+ "outputs": 1,
+ "x": 131,
+ "y": 78,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ [
+ "fdc5afb4.7b9b1"
+ ]
+ ]
+ },
+ {
+ "id": "fdc5afb4.7b9b1",
+ "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": 186.0000228881836,
+ "y": 164.99996852874756,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ [
+ "e18d9064.b227b"
+ ]
+ ]
+ },
+ {
+ "id": "e18d9064.b227b",
+ "type": "method",
+ "name": "method",
+ "xml": "<method rpc='terminateRANSliceInstance-configDb' mode='sync'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 120,
+ "y": 224.99993419647217,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ [
+ "f289a27.b22f36"
+ ]
+ ]
+ },
+ {
+ "id": "f289a27.b22f36",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 125.99999237060547,
+ "y": 319.7499647140503,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ [
+ "4941bd5.5e39644",
+ "c6862120.d9296",
+ "c6816aa0.2a2318",
+ "98773d2d.d6f83"
+ ]
+ ]
+ },
+ {
+ "id": "4941bd5.5e39644",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 339.99999618530273,
+ "y": 342.99999713897705,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ [
+ "8e03c10b.f0868",
+ "5b1b29a3.be50f8",
+ "9327988c.eb0dd8",
+ "29e00485.3212dc",
+ "86c6b7a3.dd4128",
+ "60eceda0.332524",
+ "e105720e.7db1",
+ "b9c07470.9995d8",
+ "52f3d815.1af068",
+ "36cd41bc.c6635e",
+ "70f7dd72.4d7324",
+ "83702985.d50d18",
+ "8f7a86fa.6a9d48",
+ "725d2a35.1ec024",
+ "10226f17.8ebf61",
+ "6762ecfb.cef0a4"
+ ]
+ ]
+ },
+ {
+ "id": "8e03c10b.f0868",
+ "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": 724.25,
+ "y": 486.2500071525574,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "5b1b29a3.be50f8",
+ "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/terminateRANSlice.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": 664.2500152587891,
+ "y": 537.2500262260437,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "9327988c.eb0dd8",
+ "type": "execute",
+ "name": "Get nearRTRIC for TrackingArea",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"restapiUrl\" value=\"`$prop.configdb.url + $tmp.configdb.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": 654.2500915527344,
+ "y": 589.2500567436218,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ [
+ "27f58fe0.6ac",
+ "f7b3a7e6.7563e8"
+ ]
+ ]
+ },
+ {
+ "id": "27f58fe0.6ac",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 953.0680961608887,
+ "y": 607.0680804252625,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ [
+ "8c3bf072.473e9"
+ ]
+ ]
+ },
+ {
+ "id": "8c3bf072.473e9",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 1123.0679931640625,
+ "y": 608.0681958198547,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ [
+ "16e7a97b.3c1e77",
+ "12628712.6ac459"
+ ]
+ ]
+ },
+ {
+ "id": "16e7a97b.3c1e77",
+ "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/terminateRANSlice.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": 1352.0677604675293,
+ "y": 508.0681757926941,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "12628712.6ac459",
+ "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": 1356.8459777832031,
+ "y": 548.0681977272034,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "f7b3a7e6.7563e8",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 959.0680503845215,
+ "y": 547.0681643486023,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ [
+ "9d25f6f2.4c23a8"
+ ]
+ ]
+ },
+ {
+ "id": "9d25f6f2.4c23a8",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 1239.0681266784668,
+ "y": 453.0682182312012,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ [
+ "cbec2b43.28b248",
+ "8f46169a.4ebf98"
+ ]
+ ]
+ },
+ {
+ "id": "cbec2b43.28b248",
+ "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": 1417.06791305542,
+ "y": 407.1792449951172,
+ "z": "9f8808d.55bc2f8",
+ "wires": []
+ },
+ {
+ "id": "c6862120.d9296",
+ "type": "for",
+ "name": "foreach NearRTRIC",
+ "xml": "<for index='idy' start='0' end='`$getNFNSSIRIC-configdb-response._length`' >\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 321.25,
+ "y": 930.0681796073914,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ [
+ "cbd8298d.9872a8",
+ "3b3de46a.c91f9c",
+ "c855e8de.7d9518",
+ "71e9f766.6e75d8"
+ ]
+ ]
+ },
+ {
+ "id": "cbd8298d.9872a8",
+ "type": "block",
+ "name": "Process NearRTRIC",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 641.6035614013672,
+ "y": 1068.643973827362,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ [
+ "dbc6b5ad.55b078",
+ "6058f66e.9e2f28",
+ "e3ee986a.003218",
+ "bfd5daae.fcaf68",
+ "4705045c.022f3c",
+ "39afb101.1f51ee",
+ "69f78430.48a3fc",
+ "9dd16454.4c7f18"
+ ]
+ ]
+ },
+ {
+ "id": "dbc6b5ad.55b078",
+ "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.RICPLMNEntries' />\n\t<parameter name='source' value=\"`'getNFNSSIRIC-configdb-response.['+ $idy +'].pLMNInfoList_length'`\" />\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 921.7955627441406,
+ "y": 1066.4773683547974,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "a0da22.7bfb95e",
+ "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'`\" />",
+ "comments": "",
+ "outputs": 1,
+ "x": 1768.7960052490234,
+ "y": 818.9775466918945,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "588f2308.79b34c",
+ "type": "execute",
+ "name": "Update nearRT RIC Details in ConfigDB",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"restapiUrl\" value=\"`$tmp.configdb.getNearRTRICNSSAIRemoval.url`\"/>\n<parameter name=\"httpMethod\" value=\"DELETE\"/>\n<parameter name=\"responsePrefix\" value=\"delete-nearRTRIC-configdb-response\"/>\n<parameter name='contentType' value='application/json' /> \n<parameter name='format' value='json' />\n<parameter name='accept' value='application/json' />\n<parameter name=\"convertResponse\" value=\"true\"/>",
+ "comments": "",
+ "outputs": 1,
+ "x": 1694.5129089355469,
+ "y": 1001.4824094772339,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ [
+ "9703d79e.c10198",
+ "a1da21f8.8c4fb"
+ ]
+ ]
+ },
+ {
+ "id": "9703d79e.c10198",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1750.0682220458984,
+ "y": 954.52272605896,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ [
+ "8bcdd488.f6c208"
+ ]
+ ]
+ },
+ {
+ "id": "8bcdd488.f6c208",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 1886.0682830810547,
+ "y": 916.5226955413818,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ [
+ "60297dac.a0ff74",
+ "3de46643.16f1ba"
+ ]
+ ]
+ },
+ {
+ "id": "3de46643.16f1ba",
+ "type": "set",
+ "name": "set",
+ "xml": "<set>\n<parameter name='error-code' value='500'/>\n<parameter name='error-message' value='Error updating nearRTRIC info in ConfigDB. Aborting RPC executiopn'/>",
+ "comments": "",
+ "x": 2035.0679740905762,
+ "y": 879.6336736679077,
+ "z": "9f8808d.55bc2f8",
+ "wires": []
+ },
+ {
+ "id": "60297dac.a0ff74",
+ "type": "returnFailure",
+ "name": "return failure",
+ "xml": "<return status='failure'>\n<parameter name='ack-final' value='Y'/>\n<parameter name='error-code' value='500'/>\n<parameter name='error-message' value='Error updating nearRTRIC info in ConfigDB. Aborting RPC executiopn'/>",
+ "comments": "",
+ "x": 2049.0679779052734,
+ "y": 954.5227422714233,
+ "z": "9f8808d.55bc2f8",
+ "wires": []
+ },
+ {
+ "id": "a1da21f8.8c4fb",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1730.8863067626953,
+ "y": 1068.4317893981934,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ [
+ "6eb3995f.129818"
+ ]
+ ]
+ },
+ {
+ "id": "6eb3995f.129818",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 1880.886215209961,
+ "y": 1083.431926727295,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ [
+ "7a211f6b.175fa"
+ ]
+ ]
+ },
+ {
+ "id": "7a211f6b.175fa",
+ "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/terminateRANSlice.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"Successfully Updated NearRT RIC info in ConfigDB\"/>",
+ "comments": "",
+ "outputs": 1,
+ "x": 2027.8861541748047,
+ "y": 1111.4320030212402,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "741ed2c1.a49e6c",
+ "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": 995.25,
+ "y": 1293.25000333786,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "3b3de46a.c91f9c",
+ "type": "block",
+ "name": "Process CUCP",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 622.2500228881836,
+ "y": 1206.2500567436218,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ [
+ "741ed2c1.a49e6c",
+ "281a50cf.4a69a",
+ "a86e5776.eb6638"
+ ]
+ ]
+ },
+ {
+ "id": "281a50cf.4a69a",
+ "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/terminateRANSlice.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": 967.25,
+ "y": 1358.25000333786,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "a86e5776.eb6638",
+ "type": "for",
+ "name": "foreach CUCP",
+ "xml": "<for index='idz' start='0' end='`$tmp.CUCPList_length`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 995.25,
+ "y": 1433.25000333786,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ [
+ "e0d94cc1.793d8"
+ ]
+ ]
+ },
+ {
+ "id": "e0d94cc1.793d8",
+ "type": "block",
+ "name": "block : process CUCP",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 1216.25,
+ "y": 1440.25000333786,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ [
+ "73c2c277.78387c",
+ "96f9a00c.2dd4b",
+ "6bd26475.319b6c",
+ "940a43d5.75216"
+ ]
+ ]
+ },
+ {
+ "id": "73c2c277.78387c",
+ "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": 1524.2500762939453,
+ "y": 1280.8499941825867,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "96f9a00c.2dd4b",
+ "type": "for",
+ "name": "for cellCUList",
+ "xml": "<for index='idcu' start='0' end='`$tmp.cellCUList_length`' >\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1571.25,
+ "y": 1437.25000333786,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ [
+ "cd4aad2b.8b949"
+ ]
+ ]
+ },
+ {
+ "id": "63dacf0e.5fe4c",
+ "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": 2283.750274658203,
+ "y": 1046.0000162124634,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "5ffc5756.5e8958",
+ "type": "execute",
+ "name": "prepare mnc",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$tmp.deleteSNSSAIListEntry.url`\"/>\n <parameter name=\"outputPath\" value=\"tmp.deleteSNSSAIListEntry.url\"/>\n <parameter name=\"target\" value=\"{mnc}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.mnc`\"/>",
+ "comments": "",
+ "outputs": 1,
+ "x": 2283.50008392334,
+ "y": 1286.500020980835,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "76324694.b34f48",
+ "type": "execute",
+ "name": "terminate sNNSAI ToNRCellCU",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"restapiUrl\" value=\"`$prop.controller.url + $tmp.deleteSNSSAIListEntry.url`\"/>\n<parameter name=\"restapiUser\" value=\"`$prop.controller.user`\" />\n<parameter name=\"restapiPassword\" value=\"`$prop.controller.pwd`\"/>\n<parameter name=\"httpMethod\" value=\"DELETE\"/>\n<parameter name=\"responsePrefix\" value=\"delete-cellCU-sNSSAI-response\"/>\n<parameter name='contentType' value='application/json' /> \n<parameter name='format' value='json' />",
+ "comments": "",
+ "outputs": 1,
+ "x": 2238.2500762939453,
+ "y": 1430.2499732971191,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ [
+ "be520a6.e0d9bf8",
+ "1aa9a5a.6a2f25a"
+ ]
+ ]
+ },
+ {
+ "id": "b737813e.3bd08",
+ "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/terminateRANSliceModifyAllocate.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.sNSSAI`\"/>\n<parameter name=\"field8\" value=\"`$tmp.deleteSNSSAIListEntry.url`\"/>\n\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2287.25008392334,
+ "y": 1378.749972820282,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "ee24d25e.54c5e",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 2085.25,
+ "y": 1044.25000333786,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ [
+ "63dacf0e.5fe4c",
+ "5ffc5756.5e8958",
+ "b737813e.3bd08",
+ "76324694.b34f48",
+ "c5a4151a.bc5a18",
+ "44c0777f.0a1f48",
+ "155c8d29.5c0343",
+ "7f7ae901.c5e7e8",
+ "74893626.9121f8",
+ "bfb88471.c7e148",
+ "c9597d62.890ed",
+ "8ab466e2.c019c8",
+ "674b7fe9.46fa7",
+ "28c4cba1.abbf94",
+ "e2bf4b5a.7ef268"
+ ]
+ ]
+ },
+ {
+ "id": "be520a6.e0d9bf8",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2483.2499389648438,
+ "y": 1452.250069618225,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ [
+ "c7c00844.3b50a8"
+ ]
+ ]
+ },
+ {
+ "id": "c7c00844.3b50a8",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 2666.2499389648438,
+ "y": 1445.2500705718994,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ [
+ "eadf684e.096da8"
+ ]
+ ]
+ },
+ {
+ "id": "eadf684e.096da8",
+ "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/terminateRANSlice.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"Successfully Patched - cellCU PLMNInfo List\"/>",
+ "comments": "",
+ "outputs": 1,
+ "x": 2919.2499465942383,
+ "y": 1442.2503623962402,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "1aa9a5a.6a2f25a",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2465.25008392334,
+ "y": 1400.2499713897705,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ [
+ "6a4ab503.141a9c"
+ ]
+ ]
+ },
+ {
+ "id": "6a4ab503.141a9c",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 2608.2501373291016,
+ "y": 1361.2500686645508,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ [
+ "76a7be3b.18a15",
+ "3e437046.1ea6b",
+ "8f46169a.4ebf98"
+ ]
+ ]
+ },
+ {
+ "id": "76a7be3b.18a15",
+ "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": 2868.2499389648438,
+ "y": 1381.2501678466797,
+ "z": "9f8808d.55bc2f8",
+ "wires": []
+ },
+ {
+ "id": "3e437046.1ea6b",
+ "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": 2792.249942779541,
+ "y": 1343.2500686645508,
+ "z": "9f8808d.55bc2f8",
+ "wires": []
+ },
+ {
+ "id": "c5a4151a.bc5a18",
+ "type": "execute",
+ "name": "prepare idGNBCUCPFunction",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$tmp.deleteSNSSAIListEntry.url`\"/>\n <parameter name=\"outputPath\" value=\"tmp.deleteSNSSAIListEntry.url\"/>\n <parameter name=\"target\" value=\"{idGNBCUCPFunction}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.CUCPName`\"/>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2350.25008392334,
+ "y": 1149.2501153945923,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "44c0777f.0a1f48",
+ "type": "execute",
+ "name": "prepare idNRCellCU",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$tmp.deleteSNSSAIListEntry.url`\"/>\n <parameter name=\"outputPath\" value=\"tmp.deleteSNSSAIListEntry.url\"/>\n <parameter name=\"target\" value=\"{idNRCellCU}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.cellCULocalId`\"/>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2324.25008392334,
+ "y": 1199.000018119812,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "155c8d29.5c0343",
+ "type": "execute",
+ "name": "prepare mcc",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$tmp.deleteSNSSAIListEntry.url`\"/>\n <parameter name=\"outputPath\" value=\"tmp.deleteSNSSAIListEntry.url\"/>\n <parameter name=\"target\" value=\"{mcc}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.mcc`\"/>\n ",
+ "comments": "",
+ "outputs": 1,
+ "x": 2292.0000801086426,
+ "y": 1242.0000190734863,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "6bd26475.319b6c",
+ "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/terminateRANSlice.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": 1574.2500457763672,
+ "y": 1335.2499713897705,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "940a43d5.75216",
+ "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": 1581.25,
+ "y": 1393.25000333786,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "7f7ae901.c5e7e8",
+ "type": "switchNode",
+ "name": "ransim mounted",
+ "xml": "<switch test='`$prop.ransim-mounted`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2374.2503547668457,
+ "y": 991.2500201761723,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ [
+ "e3f1fa11.1e58c8",
+ "4ba63d09.a8f4f4"
+ ]
+ ]
+ },
+ {
+ "id": "e3f1fa11.1e58c8",
+ "type": "outcome",
+ "name": "Not Mounted",
+ "xml": "<outcome value='false'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2609.2503547668457,
+ "y": 993.2498256266117,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ [
+ "2c2ded62.213222"
+ ]
+ ]
+ },
+ {
+ "id": "2c2ded62.213222",
+ "type": "execute",
+ "name": "generate terminate sNSSAItEntry ToNRCellCU",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$prop.restapi.terminateSNSSAIEntry.ToNRCellCU`\"/>\n <parameter name=\"outputPath\" value=\"tmp.deleteSNSSAIListEntry.url\"/>\n <parameter name=\"target\" value=\"{idNearRTRIC}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.nearRTRICId`\"/>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2931.250270843506,
+ "y": 1077.2500082552433,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "4ba63d09.a8f4f4",
+ "type": "outcome",
+ "name": "Mounted",
+ "xml": "<outcome value='true'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2621.2503547668457,
+ "y": 1062.2500216066837,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ [
+ "d5546fdc.4cbb1"
+ ]
+ ]
+ },
+ {
+ "id": "74893626.9121f8",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 1863.25,
+ "y": 1858.25000333786,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ [
+ "86d04374.77df6",
+ "d7a4904c.23939",
+ "d1b9c5f8.003388",
+ "1d5ceb40.ba7135",
+ "b7555125.6d5b6",
+ "e5553137.c1896",
+ "88ba782b.d80da8",
+ "f3c99a06.662a38",
+ "c35eabd3.6ba9a8"
+ ]
+ ]
+ },
+ {
+ "id": "86d04374.77df6",
+ "type": "set",
+ "name": "Calculate RRMPolicyRatio",
+ "xml": "<set>\n<parameter name='tmp.maxNumberOfConnsPercellCU' value='`$tmp.payload.maxNumberofConns / $tmp.cellCUList_length`' />\n<parameter name='tmp.rRMPolicyDedicatedRatio.CellCU1' value='`$tmp.maxNumberOfConnsPercellCU * 100`' />\n<parameter name='tmp.rRMPolicyDedicatedRatio_SliceProfile' value='`$tmp.rRMPolicyDedicatedRatio.CellCU1 / $prop.nrcellcu.maxNumberOfConnsPerCell`' />",
+ "comments": "",
+ "x": 2045.25,
+ "y": 1641.25000333786,
+ "z": "9f8808d.55bc2f8",
+ "wires": []
+ },
+ {
+ "id": "d7a4904c.23939",
+ "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/terminateRANSlice.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"RRMPolicyRatio for this profile is - \"/>\n<parameter name=\"field2\" value=\"`$tmp.rRMPolicyDedicatedRatio_SliceProfile`\"/>",
+ "comments": "",
+ "outputs": 1,
+ "x": 2044.25,
+ "y": 1702.25000333786,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "d1b9c5f8.003388",
+ "type": "switchNode",
+ "name": "ransim mounted",
+ "xml": "<switch test='`$prop.ransim-mounted`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2085.25,
+ "y": 1764.25000333786,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ [
+ "ba2cbde0.41323",
+ "a7822539.bf4d08"
+ ]
+ ]
+ },
+ {
+ "id": "ba2cbde0.41323",
+ "type": "outcome",
+ "name": "Not Mounted",
+ "xml": "<outcome value='false'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2263.25,
+ "y": 1731.249759197235,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ [
+ "389bf0a6.e4dee"
+ ]
+ ]
+ },
+ {
+ "id": "389bf0a6.e4dee",
+ "type": "execute",
+ "name": "fetch RRMPolicyRatio NRCellCU - URL",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$prop.restapi.RRMPolicyRatioEntry.ToNRCellCU`\"/>\n <parameter name=\"outputPath\" value=\"tmp.getRRMPolicyRatio.url\"/>\n <parameter name=\"target\" value=\"{idNearRTRIC}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.nearRTRICId`\"/>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2541.25,
+ "y": 1723.25000333786,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "1d5ceb40.ba7135",
+ "type": "execute",
+ "name": "prepare idGNBCUCPFunction",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$tmp.getRRMPolicyRatio.url`\"/>\n <parameter name=\"outputPath\" value=\"tmp.getRRMPolicyRatio.url\"/>\n <parameter name=\"target\" value=\"{idGNBCUCPFunction}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.CUCPName`\"/>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2120.25,
+ "y": 1836.25000333786,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "b7555125.6d5b6",
+ "type": "execute",
+ "name": "prepare idNRCellCU",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$tmp.getRRMPolicyRatio.url`\"/>\n <parameter name=\"outputPath\" value=\"tmp.getRRMPolicyRatio.url\"/>\n <parameter name=\"target\" value=\"{idNRCellCU}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.cellCULocalId`\"/>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2085.25,
+ "y": 1888.25000333786,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "fe5376a8.b6dfb8",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2371.25,
+ "y": 2015.25000333786,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ [
+ "7a3b6067.008b4"
+ ]
+ ]
+ },
+ {
+ "id": "7a3b6067.008b4",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 2535.2498779296875,
+ "y": 2016.2501254081726,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ [
+ "1b5cfb3f.4e02b5",
+ "785f6397.3df3ec"
+ ]
+ ]
+ },
+ {
+ "id": "1b5cfb3f.4e02b5",
+ "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/terminateRANSlice.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"Successfully Retrieved - RRMPolicyRatio\"/>",
+ "comments": "",
+ "outputs": 1,
+ "x": 2685.2498779296875,
+ "y": 2011.250247478485,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "c09d8344.33b3d",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2367.25,
+ "y": 1936.25000333786,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ [
+ "250289fe.623616"
+ ]
+ ]
+ },
+ {
+ "id": "250289fe.623616",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 2525.250244140625,
+ "y": 1884.25000333786,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ [
+ "28d7439b.67a07c",
+ "565122b7.b38b3c",
+ "8f46169a.4ebf98"
+ ]
+ ]
+ },
+ {
+ "id": "28d7439b.67a07c",
+ "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 in Fetching RRMPolicyRatio - CellCU. Aborting RPC executiopn'/>",
+ "comments": "",
+ "x": 2696.2498779296875,
+ "y": 1945.2500643730164,
+ "z": "9f8808d.55bc2f8",
+ "wires": []
+ },
+ {
+ "id": "565122b7.b38b3c",
+ "type": "set",
+ "name": "set",
+ "xml": "<set>\n<parameter name='error-code' value='500'/>\n<parameter name='error-message' value='Error in retrieving RRMPolicyRatio. Aborting RPC executiopn'/>",
+ "comments": "",
+ "x": 2691.25,
+ "y": 1850.25000333786,
+ "z": "9f8808d.55bc2f8",
+ "wires": []
+ },
+ {
+ "id": "e5553137.c1896",
+ "type": "execute",
+ "name": "fetch RRMPolicyRatio - NRCellCU",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"restapiUrl\" value=\"`$prop.controller.url + $tmp.getRRMPolicyRatio.url`\"/>\n<parameter name=\"restapiUser\" value=\"`$prop.controller.user`\" />\n<parameter name=\"restapiPassword\" value=\"`$prop.controller.pwd`\"/>\n<parameter name=\"httpMethod\" value=\"GET\"/>\n<parameter name=\"responsePrefix\" value=\"get-rrmpolicyratio-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": 2120.25,
+ "y": 1963.25000333786,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ [
+ "c09d8344.33b3d",
+ "fe5376a8.b6dfb8"
+ ]
+ ]
+ },
+ {
+ "id": "785f6397.3df3ec",
+ "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": 2708.2499656677246,
+ "y": 2048.249942302704,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "88ba782b.d80da8",
+ "type": "for",
+ "name": "for each rrmpolicyratio",
+ "xml": "<for index='idcu-rrm' start='0' end='`$tmp.rrmPolicyRatioList_length`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2055.25,
+ "y": 2121.250232219696,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ [
+ "f6a9db1b.bd5f88"
+ ]
+ ]
+ },
+ {
+ "id": "f3c99a06.662a38",
+ "type": "execute",
+ "name": "read rrmpolicyratio list size",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'>\n\t<parameter name='outputPath' value='tmp.rrmPolicyRatioList_length' />\n\t<parameter name='source' value=\"`'get-rrmpolicyratio-response.attributes.RRMPolicyRatio_length'`\" />\n ",
+ "comments": "",
+ "outputs": 1,
+ "x": 2099.25,
+ "y": 2017.25000333786,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "f6a9db1b.bd5f88",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 2276.25,
+ "y": 2141.250232219696,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ [
+ "dc60e1b2.24e36",
+ "c1c0f0c3.6cb7c",
+ "26e1eeb8.ead262",
+ "453b3bec.ed3c24",
+ "598a18b4.512898",
+ "8125e8cb.8661d8",
+ "e9307863.569858",
+ "6321d537.1c1adc",
+ "7dd69cb4.70b534",
+ "5963b2e3.24363c",
+ "558bf697.a3d4e8",
+ "b3960d7f.4908c"
+ ]
+ ]
+ },
+ {
+ "id": "dc60e1b2.24e36",
+ "type": "set",
+ "name": "Calculate updated RRMPolicyRatio",
+ "xml": "<set>\n<parameter name='tmp.rrmPolicyDedicatedRatio_cellCU' value=\"`'$get-rrmpolicyratio-response.attributes.RRMPolicyRatio['+ $idcu-rrm +'].attributes.rRMPolicyDedicatedRatio'`\" />\n<parameter name='tmp.rrmPolicyDedicatedRatio_CellCU_updated' value=\"`$tmp.rrmPolicyDedicatedRatio_cellCU + $tmp.rRMPolicyDedicatedRatio_SliceProfile`\" />",
+ "comments": "",
+ "x": 2497.2498664855957,
+ "y": 2058.250138759613,
+ "z": "9f8808d.55bc2f8",
+ "wires": []
+ },
+ {
+ "id": "c35eabd3.6ba9a8",
+ "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/terminateRANSlice.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"RRMPolicyRatioList size\"/>\n<parameter name=\"field2\" value=\"`$tmp.rrmPolicyRatioList_length`\"/>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2039.25,
+ "y": 2071.25000333786,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "9bb84509.704938",
+ "type": "for",
+ "name": "foreach PLMNInfo",
+ "xml": "<for index='id-cuplmn' start='0' end='`$tmp.pLMNInfoList_length`' >\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2560.3611221313477,
+ "y": 573.472261428833,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ [
+ "1966dcbb.653793"
+ ]
+ ]
+ },
+ {
+ "id": "cd4aad2b.8b949",
+ "type": "block",
+ "name": "block",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 1787.2499771118164,
+ "y": 1313.2499742507935,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ [
+ "2f2d1a47.203916",
+ "f2db2f86.725a9",
+ "bd730031.beff3"
+ ]
+ ]
+ },
+ {
+ "id": "8d1d63b8.52245",
+ "type": "switchNode",
+ "name": "is NSSAI exists",
+ "xml": "<switch test='`$tmp.configDBSNSSAI == $tmp.sNSSAI`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2796.0274810791016,
+ "y": 831.0277628898621,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ [
+ "a666895.58a5978"
+ ]
+ ]
+ },
+ {
+ "id": "a666895.58a5978",
+ "type": "outcome",
+ "name": "True",
+ "xml": "<outcome value='true'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2458.25,
+ "y": 948.2500033378601,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ [
+ "ee24d25e.54c5e"
+ ]
+ ]
+ },
+ {
+ "id": "bfb88471.c7e148",
+ "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/terminateRANSlice.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"NSSAI exists for cucp plmninfo \"/>\n\n\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2248.2500801086426,
+ "y": 930.2500143051147,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "3cf3a513.1d32ba",
+ "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/terminateRANSlice.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": 2835.1388092041016,
+ "y": 766.4722437858582,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "71e6f9e5.e94b58",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 2644.2501373291016,
+ "y": 740.2500758171082,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ [
+ "3cf3a513.1d32ba",
+ "8d1d63b8.52245",
+ "d691b737.3308e8"
+ ]
+ ]
+ },
+ {
+ "id": "d691b737.3308e8",
+ "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-cusnssai +'].sNSSAI'`\" />",
+ "comments": "",
+ "outputs": 1,
+ "x": 3015.1386108398438,
+ "y": 690.472291469574,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "c855e8de.7d9518",
+ "type": "block",
+ "name": "Process CUUP",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 576.25,
+ "y": 1503.25000333786,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ [
+ "8bcabb2a.920c68",
+ "d76c3d2a.0f322",
+ "43c0923f.88b41c"
+ ]
+ ]
+ },
+ {
+ "id": "8bcabb2a.920c68",
+ "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": 907.25,
+ "y": 1513.25000333786,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "d76c3d2a.0f322",
+ "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/terminateRANSlice.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": 879.25,
+ "y": 1578.25000333786,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "43c0923f.88b41c",
+ "type": "for",
+ "name": "foreach CUUP",
+ "xml": "<for index='id-cuup' start='0' end='`$tmp.CUUPList_length`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 907.25,
+ "y": 1653.25000333786,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ [
+ "9f3e5617.862828"
+ ]
+ ]
+ },
+ {
+ "id": "9f3e5617.862828",
+ "type": "block",
+ "name": "block : process CUUP",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 772.250129699707,
+ "y": 2013.2502059936523,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ [
+ "25d875f3.27e68a",
+ "2cbabb2d.8cd0a4",
+ "6509e1f.5e5852",
+ "c6a1a3d8.d0859",
+ "bd2c41d8.5af7f",
+ "28791fbb.46c25",
+ "958427ee.1068f8",
+ "90b3aa5b.0ce5f8",
+ "ab7f6ff.f21ff9",
+ "942881ef.bc1db",
+ "35fa46a4.53dfea",
+ "595a98b5.81e1d8",
+ "730e9c3f.e9da34"
+ ]
+ ]
+ },
+ {
+ "id": "25d875f3.27e68a",
+ "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": 1189.2500457763672,
+ "y": 2066.250024795532,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "2cbabb2d.8cd0a4",
+ "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/terminateRANSlice.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": 1173.2501411437988,
+ "y": 2116.2500743865967,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "6509e1f.5e5852",
+ "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": 1169.2500457763672,
+ "y": 2170.2500762939453,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "c6a1a3d8.d0859",
+ "type": "for",
+ "name": "foreach pLMNInfo",
+ "xml": "<for index='id-plmn' start='0' end='1'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1013.2499923706055,
+ "y": 2305.250228881836,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ [
+ "36280dee.7c78b2"
+ ]
+ ]
+ },
+ {
+ "id": "36280dee.7c78b2",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 1135.2499923706055,
+ "y": 2377.2502315044403,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ [
+ "9a96a4b2.4746f8",
+ "ea26dc5f.4fcf4",
+ "e44d33a9.14a2b"
+ ]
+ ]
+ },
+ {
+ "id": "66a70b2c.f71394",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2263.250270843506,
+ "y": 2885.250334739685,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ [
+ "cebfa53c.925798"
+ ]
+ ]
+ },
+ {
+ "id": "cebfa53c.925798",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 2420.250274658203,
+ "y": 2878.2501397132874,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ [
+ "25911507.0dd0aa",
+ "68375380.f71bfc",
+ "8f46169a.4ebf98"
+ ]
+ ]
+ },
+ {
+ "id": "68375380.f71bfc",
+ "type": "set",
+ "name": "set",
+ "xml": "<set>\n<parameter name='error-code' value='500'/>\n<parameter name='error-message' value='Error removing CUUP PLMNInfoList. Aborting RPC executiopn'/>",
+ "comments": "",
+ "x": 2665.2502822875977,
+ "y": 2879.25053024292,
+ "z": "9f8808d.55bc2f8",
+ "wires": []
+ },
+ {
+ "id": "25911507.0dd0aa",
+ "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 removing CUUP PLMNInfo. Aborting RPC executiopn'/>",
+ "comments": "",
+ "x": 2653.2502822875977,
+ "y": 2914.2505311965942,
+ "z": "9f8808d.55bc2f8",
+ "wires": []
+ },
+ {
+ "id": "1123ccb9.fa35f3",
+ "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/terminateRANSlice.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"Successfully removed - gNBCUUP PLMNInfo Entry\"/>",
+ "comments": "",
+ "outputs": 1,
+ "x": 2643.25008392334,
+ "y": 2962.2503356933594,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "4cbd1ef0.d2fd",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 2487.2500762939453,
+ "y": 2955.250141143799,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ [
+ "1123ccb9.fa35f3"
+ ]
+ ]
+ },
+ {
+ "id": "ab1ecbed.555028",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2327.2500762939453,
+ "y": 2955.2503356933594,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ [
+ "4cbd1ef0.d2fd"
+ ]
+ ]
+ },
+ {
+ "id": "de312c73.46e3f",
+ "type": "switchNode",
+ "name": "ransim mounted",
+ "xml": "<switch test='`$prop.ransim-mounted`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2009.2500267028809,
+ "y": 2676.2503805160522,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ [
+ "137e4acd.8fb195",
+ "47385315.a76dbc"
+ ]
+ ]
+ },
+ {
+ "id": "137e4acd.8fb195",
+ "type": "outcome",
+ "name": "Not Mounted",
+ "xml": "<outcome value='false'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2329.250129699707,
+ "y": 2726.250137835741,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ [
+ "be6107d4.900768"
+ ]
+ ]
+ },
+ {
+ "id": "47385315.a76dbc",
+ "type": "outcome",
+ "name": "Mounted",
+ "xml": "<outcome value='true'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2362.250015258789,
+ "y": 2825.250346660614,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ [
+ "244e108b.98cbb"
+ ]
+ ]
+ },
+ {
+ "id": "be6107d4.900768",
+ "type": "execute",
+ "name": "generate terminate PLMNInfoListEntry CUUP URL",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$prop.restapi.terminateSNSSAIEntry.ToCUUP`\"/>\n <parameter name=\"outputPath\" value=\"tmp.deletePLMNInfo-CUUP.url\"/>\n <parameter name=\"target\" value=\"{idNearRTRIC}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.nearRTRICId`\"/>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2694.250015258789,
+ "y": 2738.250346660614,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "4b2fff65.a27e4",
+ "type": "execute",
+ "name": "prepare idGNBCUUPFunction",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$tmp.deletePLMNInfo-CUUP.url`\"/>\n <parameter name=\"outputPath\" value=\"tmp.deletePLMNInfo-CUUP.url\"/>\n <parameter name=\"target\" value=\"{idGNBCUUPFunction}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.idGNBCUUPFunction`\"/>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2025.2499694824219,
+ "y": 2780.250138282776,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "28791fbb.46c25",
+ "type": "set",
+ "name": "Calculate RRMPolicyRatio",
+ "xml": "<set>\n<parameter name='tmp.maxNumberOfDRBsPerNSSAI' value='`$tmp.payload.maxNumberofConns*4`' />\n<parameter name='tmp.maxNumberOfDRBsPerCUUP' value='`$tmp.maxNumberOfDRBsPerNSSAI /$tmp.CUUPList_length`' />\n<parameter name='tmp.rRMPolicyDedicatedRatio1' value='`$tmp.maxNumberOfDRBsPerCUUP*100`' />\n<parameter name='tmp.rRMPolicyDedicatedRatio-CUUP' value='`$tmp.rRMPolicyDedicatedRatio1/$prop.cuupfunction.maxNumberOfDRBsPerCUUP`' />",
+ "comments": "",
+ "x": 1385.2501373291016,
+ "y": 3155.250389099121,
+ "z": "9f8808d.55bc2f8",
+ "wires": []
+ },
+ {
+ "id": "958427ee.1068f8",
+ "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/terminateRANSlice.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"RRMPolicyRatio for this profile is - \"/>\n<parameter name=\"field2\" value=\"`$tmp.rRMPolicyDedicatedRatio-CUUP`\"/>",
+ "comments": "",
+ "outputs": 1,
+ "x": 1343.2501411437988,
+ "y": 3220.250389099121,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "90b3aa5b.0ce5f8",
+ "type": "switchNode",
+ "name": "ransim mounted",
+ "xml": "<switch test='`$prop.ransim-mounted`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1409.2500457763672,
+ "y": 3266.2501945495605,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ [
+ "1cfec234.759bae",
+ "bdc105e6.3e86f8"
+ ]
+ ]
+ },
+ {
+ "id": "1cfec234.759bae",
+ "type": "outcome",
+ "name": "Not Mounted",
+ "xml": "<outcome value='false'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1718.2499771118164,
+ "y": 3222.2497539520264,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ [
+ "693765cb.8b5f9c"
+ ]
+ ]
+ },
+ {
+ "id": "693765cb.8b5f9c",
+ "type": "execute",
+ "name": "fetch RRMPolicyRatio CUUP - URL",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$prop.restapi.RRMPolicyRatioEntry.ToGNBCUUP`\"/>\n <parameter name=\"outputPath\" value=\"tmp.getRRMPolicyRatio-CUUP.url\"/>\n <parameter name=\"target\" value=\"{idNearRTRIC}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.nearRTRICId`\"/>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1977.2497863769531,
+ "y": 3224.249948978424,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "ab7f6ff.f21ff9",
+ "type": "execute",
+ "name": "prepare idGNBCUUPFunction",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$tmp.getRRMPolicyRatio-CUUP.url`\"/>\n <parameter name=\"outputPath\" value=\"tmp.getRRMPolicyRatio-CUUP.url\"/>\n <parameter name=\"target\" value=\"{idGNBCUUPFunction}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.idGNBCUUPFunction`\"/>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1456.2501430511475,
+ "y": 3315.2503910064697,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "942881ef.bc1db",
+ "type": "execute",
+ "name": "fetch RRMPolicyRatio - CUUP",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"restapiUrl\" value=\"`$prop.controller.url + $tmp.getRRMPolicyRatio-CUUP.url`\"/>\n<parameter name=\"restapiUser\" value=\"`$prop.controller.user`\" />\n<parameter name=\"restapiPassword\" value=\"`$prop.controller.pwd`\"/>\n<parameter name=\"httpMethod\" value=\"GET\"/>\n<parameter name=\"responsePrefix\" value=\"get-rrmpolicyratio-cuup-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": 1475.2501419782639,
+ "y": 3363.250343322754,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ [
+ "aaf87e69.2393a",
+ "a2e70427.57cd28"
+ ]
+ ]
+ },
+ {
+ "id": "aaf87e69.2393a",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1881.2501754760742,
+ "y": 3328.2501459121704,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ [
+ "95cafb56.9e6c28"
+ ]
+ ]
+ },
+ {
+ "id": "95cafb56.9e6c28",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 2055.250175476074,
+ "y": 3339.2499504089355,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ [
+ "16274ba1.66af14",
+ "53d3b8da.6e70f8",
+ "8f46169a.4ebf98"
+ ]
+ ]
+ },
+ {
+ "id": "53d3b8da.6e70f8",
+ "type": "set",
+ "name": "set",
+ "xml": "<set>\n<parameter name='error-code' value='500'/>\n<parameter name='error-message' value='Error in retrieving RRMPolicyRatio. Aborting RPC executiopn'/>",
+ "comments": "",
+ "x": 2247.249984741211,
+ "y": 3284.2499504089355,
+ "z": "9f8808d.55bc2f8",
+ "wires": []
+ },
+ {
+ "id": "16274ba1.66af14",
+ "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 in fetching RRMPolicyRatio. Aborting RPC executiopn'/>",
+ "comments": "",
+ "x": 2291.249984741211,
+ "y": 3328.2499504089355,
+ "z": "9f8808d.55bc2f8",
+ "wires": []
+ },
+ {
+ "id": "4158100a.182b",
+ "type": "execute",
+ "name": "printContext",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='printContext' >\n<parameter name='filename' value='/opt/opendaylight/current/data/log/ranSlice-instantiateRANSlice-configrsp-context.log' />\n\n\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2278.249984741211,
+ "y": 3407.2503423690796,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "d191190e.0b40f8",
+ "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/terminateRANSlice.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"Successfully Retrieved - RRMPolicyRatio\"/>",
+ "comments": "",
+ "outputs": 1,
+ "x": 2270.249984741211,
+ "y": 3363.2503414154053,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "600b1fe2.24b24",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 2061.2499809265137,
+ "y": 3385.2503414154053,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ [
+ "d191190e.0b40f8",
+ "4158100a.182b"
+ ]
+ ]
+ },
+ {
+ "id": "a2e70427.57cd28",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1880.2501754760742,
+ "y": 3384.2501468658447,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ [
+ "600b1fe2.24b24"
+ ]
+ ]
+ },
+ {
+ "id": "35fa46a4.53dfea",
+ "type": "execute",
+ "name": "read rrmpolicyratio list size",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'>\n\t<parameter name='outputPath' value='tmp.rrmPolicyRatioList_CUUP_length' />\n\t<parameter name='source' value=\"`'get-rrmpolicyratio-cuup-response.attributes.RRMPolicyRatio_length'`\" />\n ",
+ "comments": "",
+ "outputs": 1,
+ "x": 1474.2501411437988,
+ "y": 3410.2503929138184,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "595a98b5.81e1d8",
+ "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/terminateRANSlice.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"CUUP - RRMPolicyRatioList size\"/>\n<parameter name=\"field2\" value=\"`$tmp.rrmPolicyRatioList_CUUP_length`\"/>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1437.2501430511475,
+ "y": 3459.2503929138184,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "730e9c3f.e9da34",
+ "type": "for",
+ "name": "for each rrmpolicyratio",
+ "xml": "<for index='idcuup-rrm' start='0' end='`$tmp.rrmPolicyRatioList_CUUP_length`' >\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1492.9166469573975,
+ "y": 3503.5835971832275,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ [
+ "b4ad473e.3dffb8"
+ ]
+ ]
+ },
+ {
+ "id": "b4ad473e.3dffb8",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 1818.9166793823242,
+ "y": 3436.583484172821,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ [
+ "fc663dd6.36133",
+ "1fb5b4aa.078f6b",
+ "c28d92c1.96ba8",
+ "198f83f1.77fbdc",
+ "ee9e0cf.4a229f",
+ "6c3d34f7.4a7bbc",
+ "bfb3d534.017f38",
+ "7cd330e2.d77cb",
+ "fae94f2e.f92bf",
+ "114043a5.304f6c",
+ "a805d7.02515a28"
+ ]
+ ]
+ },
+ {
+ "id": "77340d61.b83724",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 2614.9165573120117,
+ "y": 3670.5837321281433,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ [
+ "ec0d2a5f.3bf678"
+ ]
+ ]
+ },
+ {
+ "id": "ec0d2a5f.3bf678",
+ "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/terminateRANSlice.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"Successfully removed - CUUP RRMpolicyRatio\"/>",
+ "comments": "",
+ "outputs": 1,
+ "x": 2808.9167098999023,
+ "y": 3700.5835490226746,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "62d31df4.721bb4",
+ "type": "set",
+ "name": "set",
+ "xml": "<set>\n<parameter name='error-code' value='500'/>\n<parameter name='error-message' value='Error removing CUUP RRMPolicyRatio. Aborting RPC executiopn'/>",
+ "comments": "",
+ "x": 2874.916528701782,
+ "y": 3757.583426475525,
+ "z": "9f8808d.55bc2f8",
+ "wires": []
+ },
+ {
+ "id": "e379302.c5901d",
+ "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 removing RRMPolicyRatio. Aborting RPC executiopn'/>",
+ "comments": "",
+ "x": 2889.916648864746,
+ "y": 3805.583426475525,
+ "z": "9f8808d.55bc2f8",
+ "wires": []
+ },
+ {
+ "id": "3fa07ea7.49ebc2",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 2611.91707611084,
+ "y": 3732.583365917206,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ [
+ "e379302.c5901d",
+ "62d31df4.721bb4"
+ ]
+ ]
+ },
+ {
+ "id": "fcb9c79a.5fac28",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2394.9165382385254,
+ "y": 3731.5831604003906,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ [
+ "3fa07ea7.49ebc2"
+ ]
+ ]
+ },
+ {
+ "id": "71e9f766.6e75d8",
+ "type": "block",
+ "name": "Process gNBDU",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 939.0001754760742,
+ "y": 4141.000731945038,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ [
+ "28ad074c.d234f8",
+ "d05b4312.6ee3e",
+ "51613b53.dca544"
+ ]
+ ]
+ },
+ {
+ "id": "28ad074c.d234f8",
+ "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": 1268.0001754760742,
+ "y": 4172.000731945038,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "d05b4312.6ee3e",
+ "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/terminateRANSlice.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": 1226.0001602172852,
+ "y": 4233.000731945038,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "51613b53.dca544",
+ "type": "for",
+ "name": "foreach DU",
+ "xml": "<for index='id-du' start='0' end='`$tmp.DUList_length`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1241.0001907348633,
+ "y": 4299.000356674194,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ [
+ "3240f167.c3525e"
+ ]
+ ]
+ },
+ {
+ "id": "3240f167.c3525e",
+ "type": "block",
+ "name": "block : process gNBDU",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 1519.0001754760742,
+ "y": 4304.00070142746,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ [
+ "e2fac503.d38288",
+ "18d33391.ba0bec",
+ "ac5b5cad.3952f",
+ "ee02f2b5.278cd"
+ ]
+ ]
+ },
+ {
+ "id": "e2fac503.d38288",
+ "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": 1798,
+ "y": 4300.00000333786,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "18d33391.ba0bec",
+ "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/terminateRANSlice.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": 1771,
+ "y": 4351.00000333786,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "ac5b5cad.3952f",
+ "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": 1780,
+ "y": 4410.000358581543,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "ee02f2b5.278cd",
+ "type": "for",
+ "name": "for cellDUList",
+ "xml": "<for index='id-celldu' start='0' end='`$tmp.cellDUList_length`' >\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1816.9999771118164,
+ "y": 4489.000261306763,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ [
+ "b9d032fc.fe759"
+ ]
+ ]
+ },
+ {
+ "id": "5d1f423f.307b1c",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 2773.750087738037,
+ "y": 4614.000261306763,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ [
+ "2d4a3a2f.092936",
+ "51a5f12a.1d985",
+ "f6ce7f88.21256",
+ "d56fb202.9b47b",
+ "a67262bd.08bb",
+ "63606e21.97ae",
+ "b83a2fa5.94757",
+ "37830f0a.06492",
+ "863e7e43.25085",
+ "65aae22a.00decc",
+ "331af4f0.8180cc",
+ "c29779b1.b1aa18",
+ "2e2fb2d2.df408e",
+ "ca1dda20.5e3b98",
+ "50278368.db0bdc"
+ ]
+ ]
+ },
+ {
+ "id": "37830f0a.06492",
+ "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/terminateRANSlice.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": 3023.75,
+ "y": 4493.00000333786,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "b83a2fa5.94757",
+ "type": "switchNode",
+ "name": "ransim mounted",
+ "xml": "<switch test='`$prop.ransim-mounted`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 3051.75,
+ "y": 4561.00000333786,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ [
+ "e61804d3.5caf08",
+ "c34ca73b.19fa18"
+ ]
+ ]
+ },
+ {
+ "id": "e61804d3.5caf08",
+ "type": "outcome",
+ "name": "Not Mounted",
+ "xml": "<outcome value='false'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 3259.75,
+ "y": 4525.999759197235,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ [
+ "f91db9b8.98f3d8"
+ ]
+ ]
+ },
+ {
+ "id": "c34ca73b.19fa18",
+ "type": "outcome",
+ "name": "Mounted",
+ "xml": "<outcome value='true'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 3254.7500495910645,
+ "y": 4595.000327587128,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ [
+ "f80fe2bf.0cff6"
+ ]
+ ]
+ },
+ {
+ "id": "f91db9b8.98f3d8",
+ "type": "execute",
+ "name": "generate terminate PLMNInfoListEntry ToNRCellDU",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$prop.restapi.terminateSNSSAIEntry.ToNRCellDU`\"/>\n <parameter name=\"outputPath\" value=\"tmp.deletePLMNInfoListEntry-cellDU.url\"/>\n <parameter name=\"target\" value=\"{idNearRTRIC}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.nearRTRICId`\"/>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 3579.75,
+ "y": 4541.00000333786,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "2d4a3a2f.092936",
+ "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": 3055.750141143799,
+ "y": 4600.000655174255,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "d56fb202.9b47b",
+ "type": "execute",
+ "name": "prepare idGNBDUFunction",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$tmp.deletePLMNInfoListEntry-cellDU.url`\"/>\n <parameter name=\"outputPath\" value=\"tmp.deletePLMNInfoListEntry-cellDU.url\"/>\n <parameter name=\"target\" value=\"{idGNBDUFunction}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.GNBDUId`\"/>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 3103.750213623047,
+ "y": 4714.0001854896545,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "a67262bd.08bb",
+ "type": "execute",
+ "name": "prepare idNRCellDU",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$tmp.deletePLMNInfoListEntry-cellDU.url`\"/>\n <parameter name=\"outputPath\" value=\"tmp.deletePLMNInfoListEntry-cellDU.url\"/>\n <parameter name=\"target\" value=\"{idNRCellDU}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.cellDULocalId`\"/>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 3076.7503967285156,
+ "y": 4769.000187397003,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "63606e21.97ae",
+ "type": "execute",
+ "name": "prepare mcc",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$tmp.deletePLMNInfoListEntry-cellDU.url`\"/>\n <parameter name=\"outputPath\" value=\"tmp.deletePLMNInfoListEntry-cellDU.url\"/>\n <parameter name=\"target\" value=\"{mcc}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.mcc`\"/>\n ",
+ "comments": "",
+ "outputs": 1,
+ "x": 3061.750198364258,
+ "y": 4813.250686645508,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "51a5f12a.1d985",
+ "type": "execute",
+ "name": "prepare mnc",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$tmp.deletePLMNInfoListEntry-cellDU.url`\"/>\n <parameter name=\"outputPath\" value=\"tmp.deletePLMNInfoListEntry-cellDU.url\"/>\n <parameter name=\"target\" value=\"{mnc}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.mnc`\"/>",
+ "comments": "",
+ "outputs": 1,
+ "x": 3062.500442504883,
+ "y": 4857.5002608299255,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "f6ce7f88.21256",
+ "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/terminateRANSlice.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.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.sNSSAI`\"/>\n<parameter name=\"field8\" value=\"`$tmp.deletePLMNInfoListEntry-cellDU.url`\"/>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 3070.7499465942383,
+ "y": 4946.0003662109375,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "863e7e43.25085",
+ "type": "execute",
+ "name": "terminate PLMNInfoListEntry ToNRCellDU",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"restapiUrl\" value=\"`$prop.controller.url + $tmp.deletePLMNInfoListEntry-cellDU.url`\"/>\n<parameter name=\"restapiUser\" value=\"`$prop.controller.user`\" />\n<parameter name=\"restapiPassword\" value=\"`$prop.controller.pwd`\"/>\n<parameter name=\"httpMethod\" value=\"DELETE\"/>\n<parameter name=\"responsePrefix\" value=\"delete-cellDU-PLMNInfoList-response\"/>\n<parameter name='contentType' value='application/json' /> \n<parameter name='format' value='json' />",
+ "comments": "",
+ "outputs": 1,
+ "x": 3118.7499465942383,
+ "y": 4985.249977111816,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ [
+ "bad70294.5c425",
+ "76e2880c.ae80a8"
+ ]
+ ]
+ },
+ {
+ "id": "76e2880c.ae80a8",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 3371.749954223633,
+ "y": 4851.249975204468,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ [
+ "a647dad5.3e2518"
+ ]
+ ]
+ },
+ {
+ "id": "bad70294.5c425",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 3398.749954223633,
+ "y": 4982.249977111816,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ [
+ "e8919fe8.1a01f"
+ ]
+ ]
+ },
+ {
+ "id": "a647dad5.3e2518",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 3535.750343322754,
+ "y": 4825.249975204468,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ [
+ "bcca2568.e04d18",
+ "cdd3bb22.4b36e8",
+ "8f46169a.4ebf98"
+ ]
+ ]
+ },
+ {
+ "id": "e8919fe8.1a01f",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 3542.749954223633,
+ "y": 4980.249977111816,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ [
+ "e015355d.a69928"
+ ]
+ ]
+ },
+ {
+ "id": "e015355d.a69928",
+ "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/instantiateRANSliceModifyAllocate.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"Successfully deleted - cellDU PLMNInfo List\"/>",
+ "comments": "",
+ "outputs": 1,
+ "x": 3714.7495651245117,
+ "y": 4959.250367164612,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "bcca2568.e04d18",
+ "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 deleting NECellDU - PLMNInfo. Aborting RPC executiopn'/>",
+ "comments": "",
+ "x": 3717.749954223633,
+ "y": 4886.249975204468,
+ "z": "9f8808d.55bc2f8",
+ "wires": []
+ },
+ {
+ "id": "cdd3bb22.4b36e8",
+ "type": "set",
+ "name": "set",
+ "xml": "<set>\n<parameter name='error-code' value='500'/>\n<parameter name='error-message' value='Error deleting cellDU PLMNInfoList. Aborting RPC executiopn'/>",
+ "comments": "",
+ "x": 3716.7499561309814,
+ "y": 4820.2499742507935,
+ "z": "9f8808d.55bc2f8",
+ "wires": []
+ },
+ {
+ "id": "65aae22a.00decc",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 2922,
+ "y": 5306.25000333786,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ [
+ "a261b45.b406b48",
+ "84f004cb.996128",
+ "23d7df6a.d91ba",
+ "d9ab6cfd.401e1",
+ "b2a1a5be.88e288",
+ "9f2f5206.95a47",
+ "4aeb76cf.8043a8",
+ "c74da107.4dd28"
+ ]
+ ]
+ },
+ {
+ "id": "a261b45.b406b48",
+ "type": "switchNode",
+ "name": "ransim mounted",
+ "xml": "<switch test='`$prop.ransim-mounted`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 3145.9999465942383,
+ "y": 5279.249979972839,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ [
+ "f2a6b53a.625068",
+ "865f8c11.612f2"
+ ]
+ ]
+ },
+ {
+ "id": "f2a6b53a.625068",
+ "type": "outcome",
+ "name": "Not Mounted",
+ "xml": "<outcome value='false'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 3338.000144958496,
+ "y": 5233.250370025635,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ [
+ "13d9e9d7.9e9db6"
+ ]
+ ]
+ },
+ {
+ "id": "13d9e9d7.9e9db6",
+ "type": "execute",
+ "name": "fetch RRMPolicyRatio NRCellDU - URL",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$prop.restapi.RRMPolicyRatioEntry.ToGNBDU`\"/>\n <parameter name=\"outputPath\" value=\"tmp.getRRMPolicyRatio-gNBDU.url\"/>\n <parameter name=\"target\" value=\"{idNearRTRIC}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.nearRTRICId`\"/>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 3668.0003509521484,
+ "y": 5257.250370025635,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "84f004cb.996128",
+ "type": "execute",
+ "name": "prepare idGNBDUFunction",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$tmp.getRRMPolicyRatio-gNBDU.url`\"/>\n <parameter name=\"outputPath\" value=\"tmp.getRRMPolicyRatio-gNBDU.url\"/>\n <parameter name=\"target\" value=\"{idGNBDUFunction}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.GNBDUId`\"/>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 3170.9999465942383,
+ "y": 5346.249980926514,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "23d7df6a.d91ba",
+ "type": "execute",
+ "name": "prepare idNRCellDU",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$tmp.getRRMPolicyRatio-gNBDU.url`\"/>\n <parameter name=\"outputPath\" value=\"tmp.getRRMPolicyRatio-gNBDU.url\"/>\n <parameter name=\"target\" value=\"{idNRCellDU}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.cellDULocalId`\"/>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 3146.9999465942383,
+ "y": 5403.249981880188,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "d9ab6cfd.401e1",
+ "type": "execute",
+ "name": "fetch RRMPolicyRatio - NRCellDU",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"restapiUrl\" value=\"`$prop.controller.url + $tmp.getRRMPolicyRatio-gNBDU.url`\"/>\n<parameter name=\"restapiUser\" value=\"`$prop.controller.user`\" />\n<parameter name=\"restapiPassword\" value=\"`$prop.controller.pwd`\"/>\n<parameter name=\"httpMethod\" value=\"GET\"/>\n<parameter name=\"responsePrefix\" value=\"get-rrmpolicyratio-du-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": 3181.9999465942383,
+ "y": 5450.249982833862,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ [
+ "6476593c.b0b8e8",
+ "d3c89edc.58233"
+ ]
+ ]
+ },
+ {
+ "id": "6476593c.b0b8e8",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 3405.9999504089355,
+ "y": 5436.249981880188,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ [
+ "ad8ef7b.c20df08"
+ ]
+ ]
+ },
+ {
+ "id": "d3c89edc.58233",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 3433.999954223633,
+ "y": 5496.249982833862,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ [
+ "5abb3b66.20d854"
+ ]
+ ]
+ },
+ {
+ "id": "ad8ef7b.c20df08",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 3570.000343322754,
+ "y": 5420.249980926514,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ [
+ "96810bc6.262678",
+ "7e878d4f.b09934",
+ "8f46169a.4ebf98"
+ ]
+ ]
+ },
+ {
+ "id": "7e878d4f.b09934",
+ "type": "set",
+ "name": "set",
+ "xml": "<set>\n<parameter name='error-code' value='500'/>\n<parameter name='error-message' value='Error in retrieving RRMPolicyRatio. Aborting RPC executiopn'/>",
+ "comments": "",
+ "x": 3770.000347137451,
+ "y": 5384.249980926514,
+ "z": "9f8808d.55bc2f8",
+ "wires": []
+ },
+ {
+ "id": "96810bc6.262678",
+ "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 in Fetching RRMPolicyRatio - CellDU. Aborting RPC executiopn'/>",
+ "comments": "",
+ "x": 3786.999954223633,
+ "y": 5420.249982833862,
+ "z": "9f8808d.55bc2f8",
+ "wires": []
+ },
+ {
+ "id": "5abb3b66.20d854",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 3597.250343322754,
+ "y": 5485.999982833862,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ [
+ "4328811e.e286e",
+ "2e94d06e.e038c"
+ ]
+ ]
+ },
+ {
+ "id": "4328811e.e286e",
+ "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/instantiateRANSliceModifyAllocate.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"Successfully Retrieved - RRMPolicyRatio\"/>",
+ "comments": "",
+ "outputs": 1,
+ "x": 3765.500347137451,
+ "y": 5465.999982833862,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "2e94d06e.e038c",
+ "type": "execute",
+ "name": "printContext",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='printContext' >\n<parameter name='filename' value='/opt/opendaylight/current/data/log/ranSlice-instantiateRANSlice-configrsp-context.log' />\n\n\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 3780.0003509521484,
+ "y": 5510.499982833862,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "b2a1a5be.88e288",
+ "type": "execute",
+ "name": "read rrmpolicyratio list size",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'>\n\t<parameter name='outputPath' value='tmp.rrmPolicyRatioDUList_length' />\n\t<parameter name='source' value=\"`'get-rrmpolicyratio-du-response.attributes.RRMPolicyRatio_length'`\" />\n ",
+ "comments": "",
+ "outputs": 1,
+ "x": 3153.9999465942383,
+ "y": 5506.249982833862,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "9f2f5206.95a47",
+ "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/terminateRANSlice.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"RRMPolicyRatioList size\"/>\n<parameter name=\"field2\" value=\"`$tmp.rrmPolicyRatioDUList_length`\"/>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 3109.9999465942383,
+ "y": 5548.249983787537,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "4aeb76cf.8043a8",
+ "type": "block",
+ "name": "rrmPolicyDedicatedRatio",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 3725.000343322754,
+ "y": 5209.249979019165,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ [
+ "899949b.30539b8",
+ "4c5e87e8.e6c358",
+ "927bd08f.ecc19",
+ "ff8ff24e.3ee0d",
+ "b4638db3.7acfd",
+ "ad2183cd.ee925",
+ "ee4a4fee.224fe",
+ "ae39dbda.f63308",
+ "8468fd88.b22a5",
+ "b19c0c00.da754",
+ "9db473d.479499"
+ ]
+ ]
+ },
+ {
+ "id": "927bd08f.ecc19",
+ "type": "set",
+ "name": "Calculate RRM Parms1",
+ "xml": "<set>\n<parameter name='tmp.uLThptPerSlice' value='`$payloadJson.input.sliceProfile.uLThptPerSlice`' />\n",
+ "comments": "",
+ "x": 4146.989807128906,
+ "y": 4876.572756290436,
+ "z": "9f8808d.55bc2f8",
+ "wires": []
+ },
+ {
+ "id": "ff8ff24e.3ee0d",
+ "type": "set",
+ "name": "Calculate RRM Parms2",
+ "xml": "<set>\n<parameter name='tmp.dLThptPerSlice' value='`$payloadJson.input.sliceProfile.dLThptPerSlice`' />\n",
+ "comments": "",
+ "x": 4155.531066894531,
+ "y": 4921.592775762081,
+ "z": "9f8808d.55bc2f8",
+ "wires": []
+ },
+ {
+ "id": "b4638db3.7acfd",
+ "type": "set",
+ "name": "Calculate RRM Parms3",
+ "xml": "<set>\n<parameter name='tmp.maxNumberOfConns' value='`$payloadJson.input.sliceProfile.maxNumberOfConns`' />",
+ "comments": "",
+ "x": 4145.531188964844,
+ "y": 4976.592653691769,
+ "z": "9f8808d.55bc2f8",
+ "wires": []
+ },
+ {
+ "id": "ad2183cd.ee925",
+ "type": "set",
+ "name": "Calculate RRM Parms4",
+ "xml": "<set>\n<parameter name='tmp.nearRTRIC.trafficCapacity1' value='`$tmp.uLThptPerSlice + $tmp.dLThptPerSlice`' />\n",
+ "comments": "",
+ "x": 4145.531066894531,
+ "y": 5027.592653751373,
+ "z": "9f8808d.55bc2f8",
+ "wires": []
+ },
+ {
+ "id": "ee4a4fee.224fe",
+ "type": "set",
+ "name": "Calculate RRM Parms5",
+ "xml": "<set>\n<parameter name='tmp.nearRTRIC.trafficCapacity' value='`$tmp.nearRTRIC.trafficCapacity1 / 2`' />",
+ "comments": "",
+ "x": 4133.531188964844,
+ "y": 5087.592775762081,
+ "z": "9f8808d.55bc2f8",
+ "wires": []
+ },
+ {
+ "id": "ae39dbda.f63308",
+ "type": "set",
+ "name": "Calculate RRM Parms6",
+ "xml": "<set>\n<parameter name='tmp.nearRTRIC.trafficCapacityBPS' value='`$tmp.nearRTRIC.trafficCapacity * 1000000`' />",
+ "comments": "",
+ "x": 4171.531066894531,
+ "y": 5137.592775762081,
+ "z": "9f8808d.55bc2f8",
+ "wires": []
+ },
+ {
+ "id": "8468fd88.b22a5",
+ "type": "set",
+ "name": "Calculate RRM Parms7",
+ "xml": "<set>\n<parameter name='tmp.nrcelldu.totalPRBForSNSSAI' value='`$tmp.nearRTRIC.trafficCapacityBPS / 1008000`' />\n",
+ "comments": "",
+ "x": 4158.531005859375,
+ "y": 5207.593142032623,
+ "z": "9f8808d.55bc2f8",
+ "wires": []
+ },
+ {
+ "id": "b19c0c00.da754",
+ "type": "set",
+ "name": "calculation8",
+ "xml": "<set>\n<parameter name='tmp.nrcelldu.PRBPerImpactedCell' value='`$tmp.nrcelldu.totalPRBForSNSSAI / $tmp.cellDUList_length`' />\n",
+ "comments": "",
+ "x": 4129.531005859375,
+ "y": 5271.592165470123,
+ "z": "9f8808d.55bc2f8",
+ "wires": []
+ },
+ {
+ "id": "9db473d.479499",
+ "type": "set",
+ "name": "calculation9",
+ "xml": "<set>\n<parameter name='tmp.rRMPolicyDedicatedRatio.CellDU1' value='`$tmp.nrcelldu.PRBPerImpactedCell * 100`' />\n",
+ "comments": "",
+ "x": 4117.531555175781,
+ "y": 5322.592043399811,
+ "z": "9f8808d.55bc2f8",
+ "wires": []
+ },
+ {
+ "id": "4c5e87e8.e6c358",
+ "type": "set",
+ "name": "calculation10",
+ "xml": "<set>\n<parameter name='tmp.rRMPolicyDedicatedRatio.CellDU' value='`$tmp.rRMPolicyDedicatedRatio.CellDU1 / $prop.nrcelldu.TotalPRBsPerCell`' />\n",
+ "comments": "",
+ "x": 4092.9898681640625,
+ "y": 5388.572512149811,
+ "z": "9f8808d.55bc2f8",
+ "wires": []
+ },
+ {
+ "id": "899949b.30539b8",
+ "type": "record",
+ "name": "record",
+ "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.FileRecorder\">\n<parameter name=\"file\" value=\"/opt/opendaylight/current/data/log/instantiateRANSlice.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"rRMPolicyDedicatedRatio for CellDU \"/>\n<parameter name=\"field2\" value=\"`$tmp.rRMPolicyDedicatedRatio.CellDU`\"/>\n<parameter name=\"field3\" value=\"tmp.nearRTRIC.trafficCapacity1 \"/>\n<parameter name=\"field4\" value=\"`$tmp.nearRTRIC.trafficCapacity1`\"/>\n<parameter name=\"field5\" value=\"tmp.nearRTRIC.trafficCapacity \"/>\n<parameter name=\"field6\" value=\"`$tmp.nearRTRIC.trafficCapacity`\"/>\n<parameter name=\"field7\" value=\"tmp.nearRTRIC.trafficCapacityBPS\"/>\n<parameter name=\"field8\" value=\"`$tmp.nearRTRIC.trafficCapacityBPS`\"/>\n<parameter name=\"field9\" value=\"tmp.nrcelldu.totalPRBForSNSSAI \"/>\n<parameter name=\"field10\" value=\"`$tmp.nrcelldu.totalPRBForSNSSAI`\"/>\n<parameter name=\"field11\" value=\"tmp.nrcelldu.PRBPerImpactedCell \"/>\n<parameter name=\"field12\" value=\"`$tmp.nrcelldu.PRBPerImpactedCell`\"/>\n<parameter name=\"field13\" value=\"tmp.rRMPolicyDedicatedRatio.CellDU1 \"/>\n<parameter name=\"field14\" value=\"`$tmp.rRMPolicyDedicatedRatio.CellDU1`\"/>",
+ "comments": "",
+ "outputs": 1,
+ "x": 3918.9997940063477,
+ "y": 5400.693818569183,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "c74da107.4dd28",
+ "type": "for",
+ "name": "for each rrmpolicyratio",
+ "xml": "<for index='iddu-rrm' start='0' end='`$tmp.rrmPolicyRatioDUList_length`' >\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 3139.25,
+ "y": 5590.25000333786,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ [
+ "63b01159.64d62"
+ ]
+ ]
+ },
+ {
+ "id": "63b01159.64d62",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 3350.250343322754,
+ "y": 5592.249984741211,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ [
+ "e02caafe.7e2178",
+ "c01029e4.8b89b8",
+ "ced0a425.87c638",
+ "5ba55daa.5d5c44",
+ "b30f0018.e67aa",
+ "f4262947.ab62c8",
+ "a9a5d540.0562d8",
+ "4de47bd7.839ef4",
+ "c87a723b.288cf",
+ "98e6e0f9.b5916",
+ "1b9e6496.ea1deb"
+ ]
+ ]
+ },
+ {
+ "id": "10d97d69.386523",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 3954.250160217285,
+ "y": 5812.500283718109,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ [
+ "418cc666.899af8"
+ ]
+ ]
+ },
+ {
+ "id": "418cc666.899af8",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 4146.500228881836,
+ "y": 5826.250283718109,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ [
+ "53acea06.9f4674"
+ ]
+ ]
+ },
+ {
+ "id": "53acea06.9f4674",
+ "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/terminateRANSlice.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"Successfully removed - cellDU RRMpolicyRatio\"/>",
+ "comments": "",
+ "outputs": 1,
+ "x": 4344.000595092773,
+ "y": 5817.25004529953,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "b3928b43.b1c9b8",
+ "type": "set",
+ "name": "set",
+ "xml": "<set>\n<parameter name='error-code' value='500'/>\n<parameter name='error-message' value='Error removing cellDU RRMPolicyRatio. Aborting RPC executiopn'/>",
+ "comments": "",
+ "x": 4412.25,
+ "y": 5845.249774456024,
+ "z": "9f8808d.55bc2f8",
+ "wires": []
+ },
+ {
+ "id": "8b7ccad6.fa3a78",
+ "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 removing RRMPolicyRatio for NRCellDU. Aborting RPC executiopn'/>",
+ "comments": "",
+ "x": 4417.2498779296875,
+ "y": 5940.24983549118,
+ "z": "9f8808d.55bc2f8",
+ "wires": []
+ },
+ {
+ "id": "b584011b.1f35b",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 4172.250244140625,
+ "y": 5894.249774456024,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ [
+ "8b7ccad6.fa3a78",
+ "b3928b43.b1c9b8",
+ "8f46169a.4ebf98"
+ ]
+ ]
+ },
+ {
+ "id": "762d7492.35129c",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 3953.25,
+ "y": 5889.249774456024,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ [
+ "b584011b.1f35b"
+ ]
+ ]
+ },
+ {
+ "id": "8f46169a.4ebf98",
+ "type": "block",
+ "name": "block : SO Response",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 4496.734375,
+ "y": 2794.2500059604645,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ [
+ "713a1911.30d4f8",
+ "f13c9c1e.909cc",
+ "6525b1ca.e1c44"
+ ]
+ ]
+ },
+ {
+ "id": "713a1911.30d4f8",
+ "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=\"success\"/>\n<parameter name=\"tmp.reason\" value=\"`$error-message`\"/>\n<parameter name=\"tmp.requestID\" value=\"`$terminate-r-a-n-slice-input.common-header.request-id `\"/>\n<parameter name=\"tmp.action\" value=\"`$terminate-r-a-n-slice-instance-input.action`\"/>\n\n\n\n",
+ "comments": "",
+ "x": 5158.7353515625,
+ "y": 2586.1496641635895,
+ "z": "9f8808d.55bc2f8",
+ "wires": []
+ },
+ {
+ "id": "f13c9c1e.909cc",
+ "type": "record",
+ "name": "record configdb RestAPI parms",
+ "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.FileRecorder\">\n<parameter name=\"file\" value=\"/opt/opendaylight/current/data/log/so-callback-response.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"URL for SO Callback Response\"/>\n<parameter name='field2' value=\"`$tmp.so.callbackURL`\" />\n<parameter name='field3' value=\"`$tmp.status`\" />\n<parameter name='field4' value=\"`$tmp.reason`\" />\n<parameter name='field5' value=\"`$tmp.requestID`\" />\n<parameter name='field6' value=\"`$tmp.action`\" />",
+ "comments": "",
+ "outputs": 1,
+ "x": 5133.734237670898,
+ "y": 2683.250341653824,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "6525b1ca.e1c44",
+ "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-terminate-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\"/>\n<parameter name=\"restapiUser\" value=\"`$prop.restapi.so.user`\" />\n<parameter name=\"restapiPassword\" value=\"`$prop.restapi.so.password`\"/>",
+ "comments": "",
+ "outputs": 1,
+ "x": 5048.73424911499,
+ "y": 2780.2502195835114,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ [
+ "68f5b9fa.70c6b8",
+ "a7e22354.bc79"
+ ]
+ ]
+ },
+ {
+ "id": "68f5b9fa.70c6b8",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 5274.734257698059,
+ "y": 2757.250188589096,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ [
+ "ceeb9e6b.0527f"
+ ]
+ ]
+ },
+ {
+ "id": "a7e22354.bc79",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 5264.734111785889,
+ "y": 2865.250128030777,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ [
+ "5c63c927.8c0488"
+ ]
+ ]
+ },
+ {
+ "id": "5c63c927.8c0488",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 5414.733898162842,
+ "y": 2884.2501890659332,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ [
+ "62c4a28f.c31c5c"
+ ]
+ ]
+ },
+ {
+ "id": "ceeb9e6b.0527f",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 5425.734127044678,
+ "y": 2752.2503106594086,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ [
+ "ebbddef2.7fc3b"
+ ]
+ ]
+ },
+ {
+ "id": "ebbddef2.7fc3b",
+ "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": 5591.733806610107,
+ "y": 2755.250128030777,
+ "z": "9f8808d.55bc2f8",
+ "wires": []
+ },
+ {
+ "id": "62c4a28f.c31c5c",
+ "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/terminateRANSlice.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"SO Response Sent \"/>",
+ "comments": "",
+ "outputs": 1,
+ "x": 5578.733913421631,
+ "y": 2890.250128030777,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "c6816aa0.2a2318",
+ "type": "block",
+ "name": "SO Response",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 578.734375,
+ "y": 4476.2500059604645,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ [
+ "4a535730.5738b8",
+ "85ba33aa.51f85",
+ "1b02957f.731c5b",
+ "346ef174.0740ae"
+ ]
+ ]
+ },
+ {
+ "id": "1b02957f.731c5b",
+ "type": "set",
+ "name": "set tmp variables for SO response",
+ "xml": "<set>\n<parameter name=\"tmp.status\" value=\"success\"/>\n<parameter name=\"tmp.reason\" value=\"`$error-message`\"/>\n<parameter name=\"tmp.requestID\" value=\"`$terminate-r-a-n-slice-input.common-header.request-id `\"/>\n<parameter name=\"tmp.action\" value=\"`$tmp.action`\"/>\n\n\n",
+ "comments": "",
+ "x": 858.7355194091797,
+ "y": 4326.149490594864,
+ "z": "9f8808d.55bc2f8",
+ "wires": []
+ },
+ {
+ "id": "4a535730.5738b8",
+ "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": 855.7343521118164,
+ "y": 4480.250189065933,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "85ba33aa.51f85",
+ "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-termi-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": 724.7344512939453,
+ "y": 4597.249893426895,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ [
+ "8a3cce8c.215ee",
+ "ba61876c.1499c8"
+ ]
+ ]
+ },
+ {
+ "id": "8a3cce8c.215ee",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 889.7344512939453,
+ "y": 4577.249892473221,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ [
+ "2256b439.d4335c"
+ ]
+ ]
+ },
+ {
+ "id": "ba61876c.1499c8",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 881.7343444824219,
+ "y": 4650.249842882156,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ [
+ "844c6968.9e24a8"
+ ]
+ ]
+ },
+ {
+ "id": "844c6968.9e24a8",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 1027.734188079834,
+ "y": 4655.249951601028,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ [
+ "82acce1b.3def2"
+ ]
+ ]
+ },
+ {
+ "id": "2256b439.d4335c",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 1038.7343521118164,
+ "y": 4573.250027894974,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ [
+ "ad9a7017.54621",
+ "f5fae41.c2b0318"
+ ]
+ ]
+ },
+ {
+ "id": "ad9a7017.54621",
+ "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": 1185.7339706420898,
+ "y": 4584.249769449234,
+ "z": "9f8808d.55bc2f8",
+ "wires": []
+ },
+ {
+ "id": "82acce1b.3def2",
+ "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/terminateRANSlice.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"SO Response Sent \"/>",
+ "comments": "",
+ "outputs": 1,
+ "x": 1188.7341079711914,
+ "y": 4661.249843835831,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "f5fae41.c2b0318",
+ "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": 1173.2445793151855,
+ "y": 4488.2392609119415,
+ "z": "9f8808d.55bc2f8",
+ "wires": []
+ },
+ {
+ "id": "346ef174.0740ae",
+ "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": 878.073974609375,
+ "y": 4416.23534321785,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "a7822539.bf4d08",
+ "type": "outcome",
+ "name": "Mounted",
+ "xml": "<outcome value='true'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2280.25,
+ "y": 1791.25000333786,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ [
+ "92cb0c02.bc581"
+ ]
+ ]
+ },
+ {
+ "id": "92cb0c02.bc581",
+ "type": "block",
+ "name": "ransim URL",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 2473.239658355713,
+ "y": 1791.2501254081726,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ [
+ "4cf60af4.317c84",
+ "77b37f53.a479d"
+ ]
+ ]
+ },
+ {
+ "id": "4cf60af4.317c84",
+ "type": "execute",
+ "name": "generate fetchRRMPolicyRatio.ToNRCellCU",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$prop.restapi.RRMPolicyRatioEntry.ToNRCellCU.ransim-mounted`\"/>\n <parameter name=\"outputPath\" value=\"tmp.getRRMPolicyRatio.url\"/>\n <parameter name=\"target\" value=\"{idNearRTRIC}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.nearRTRICId`\"/>",
+ "comments": "",
+ "outputs": 1,
+ "x": 2780.239845275879,
+ "y": 1758.2502264976501,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "77b37f53.a479d",
+ "type": "execute",
+ "name": "populate mountName",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$tmp.getRRMPolicyRatio.url`\"/>\n <parameter name=\"outputPath\" value=\"tmp.getRRMPolicyRatio.url\"/>\n <parameter name=\"target\" value=\"{mountName}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.CUCPName`\"/>",
+ "comments": "",
+ "outputs": 1,
+ "x": 2724.240245819092,
+ "y": 1811.2504200935364,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "d5546fdc.4cbb1",
+ "type": "block",
+ "name": "ransim URL",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 2707.75,
+ "y": 1175.25000333786,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ [
+ "262a7d90.0ff0d2",
+ "34e56f2c.cf785"
+ ]
+ ]
+ },
+ {
+ "id": "34e56f2c.cf785",
+ "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": 2958.750431060791,
+ "y": 1198.25013589859,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "262a7d90.0ff0d2",
+ "type": "execute",
+ "name": "generate TERMINATEPLMNInfoList.ToNRCellCU",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$prop.restapi.terminateSNSSAIEntry.ToNRCellCU.ransim-mounted`\"/>\n <parameter name=\"outputPath\" value=\"tmp.deleteSNSSAIListEntry.url\"/>\n <parameter name=\"target\" value=\"{idNearRTRIC}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.nearRTRICId`\"/>",
+ "comments": "",
+ "outputs": 1,
+ "x": 3014.750030517578,
+ "y": 1145.2499423027039,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "2dae447f.95111c",
+ "type": "execute",
+ "name": "populate mountName",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$tmp.deletePLMNInfo-CUUP.url`\"/>\n <parameter name=\"outputPath\" value=\"tmp.deletePLMNInfo-CUUP.url\"/>\n <parameter name=\"target\" value=\"{mountName}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.idGNBCUUPFunction`\"/>",
+ "comments": "",
+ "outputs": 1,
+ "x": 2785.250015258789,
+ "y": 2840.250346660614,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "4cbee88f.28ea78",
+ "type": "execute",
+ "name": "generate terminatePLMNInfoList.TogNBCUUP",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$prop.restapi.terminateSNSSAIEntry.ToCUUP.ransim-mounted`\"/>\n <parameter name=\"outputPath\" value=\"tmp.deletePLMNInfo-CUUP.url\"/>\n <parameter name=\"target\" value=\"{idNearRTRIC}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.nearRTRICId`\"/>",
+ "comments": "",
+ "outputs": 1,
+ "x": 2859.249725341797,
+ "y": 2789.2501006126404,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "244e108b.98cbb",
+ "type": "block",
+ "name": "ransim URL",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 2539.2496795654297,
+ "y": 2827.2500920295715,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ [
+ "4cbee88f.28ea78",
+ "2dae447f.95111c"
+ ]
+ ]
+ },
+ {
+ "id": "c6ebcb5c.6f2288",
+ "type": "block",
+ "name": "ransim URL",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 2050.2499809265137,
+ "y": 3271.2499494552612,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ [
+ "55733570.57cc7c",
+ "1a4c3314.8ebdbd"
+ ]
+ ]
+ },
+ {
+ "id": "55733570.57cc7c",
+ "type": "execute",
+ "name": "fetch RRMPolicyRatio.TogNBCUUP",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$prop.restapi.RRMPolicyRatioEntry.ToGNBCUUP.ransim-mounted`\"/>\n <parameter name=\"outputPath\" value=\"tmp.getRRMPolicyRatio-CUUP.url\"/>\n <parameter name=\"target\" value=\"{idNearRTRIC}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.nearRTRICId`\"/>",
+ "comments": "",
+ "outputs": 1,
+ "x": 2317.249984741211,
+ "y": 3204.249948501587,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "1a4c3314.8ebdbd",
+ "type": "execute",
+ "name": "populate mountName",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$tmp.getRRMPolicyRatio-CUUP.url`\"/>\n <parameter name=\"outputPath\" value=\"tmp.getRRMPolicyRatio-CUUP.url\"/>\n <parameter name=\"target\" value=\"{mountName}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.idGNBCUUPFunction`\"/>",
+ "comments": "",
+ "outputs": 1,
+ "x": 2291.2501792907715,
+ "y": 3243.250144958496,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "bdc105e6.3e86f8",
+ "type": "outcome",
+ "name": "Mounted",
+ "xml": "<outcome value='true'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1841.7499771118164,
+ "y": 3277.2499504089355,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ [
+ "c6ebcb5c.6f2288"
+ ]
+ ]
+ },
+ {
+ "id": "f80fe2bf.0cff6",
+ "type": "block",
+ "name": "ransim URL",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 3449.75,
+ "y": 4610.25000333786,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ [
+ "cc9fa93.01b4258",
+ "82e5f6ec.c44348"
+ ]
+ ]
+ },
+ {
+ "id": "cc9fa93.01b4258",
+ "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.terminateSNSSAIEntry.ToNRCellDU.ransim-mounted`\"/>\n <parameter name=\"outputPath\" value=\"tmp.deletePLMNInfoListEntry-cellDU.url\"/>\n <parameter name=\"target\" value=\"{idNearRTRIC}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.nearRTRICId`\"/>",
+ "comments": "",
+ "outputs": 1,
+ "x": 3756.750030517578,
+ "y": 4580.249942302704,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "82e5f6ec.c44348",
+ "type": "execute",
+ "name": "populate mountName",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$tmp.deletePLMNInfoListEntry-cellDU.url`\"/>\n <parameter name=\"outputPath\" value=\"tmp.deletePLMNInfoListEntry-cellDU.url\"/>\n <parameter name=\"target\" value=\"{mountName}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.GNBDUId`\"/>",
+ "comments": "",
+ "outputs": 1,
+ "x": 3700.750431060791,
+ "y": 4633.25013589859,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "865f8c11.612f2",
+ "type": "outcome",
+ "name": "Mounted",
+ "xml": "<outcome value='true'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 3340.4999504089355,
+ "y": 5300.249979019165,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ [
+ "786fbafa.331534"
+ ]
+ ]
+ },
+ {
+ "id": "786fbafa.331534",
+ "type": "block",
+ "name": "ransim URL",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 3501.500343322754,
+ "y": 5356.499589920044,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ [
+ "d8b8404d.375b",
+ "1559536c.0899ad"
+ ]
+ ]
+ },
+ {
+ "id": "d8b8404d.375b",
+ "type": "execute",
+ "name": "generate getRRMPolicyRatio.ToNRCellDU",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$prop.restapi.RRMPolicyRatioEntry.ToGNBDU.ransim-mounted`\"/>\n <parameter name=\"outputPath\" value=\"tmp.getRRMPolicyRatio-gNBDU.url\"/>\n <parameter name=\"target\" value=\"{idNearRTRIC}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.nearRTRICId`\"/>",
+ "comments": "",
+ "outputs": 1,
+ "x": 3751.5003509521484,
+ "y": 5300.49958896637,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "1559536c.0899ad",
+ "type": "execute",
+ "name": "populate mountName",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$tmp.getRRMPolicyRatio-gNBDU.url`\"/>\n <parameter name=\"outputPath\" value=\"tmp.getRRMPolicyRatio-gNBDU.url\"/>\n <parameter name=\"target\" value=\"{mountName}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.GNBDUId`\"/>",
+ "comments": "",
+ "outputs": 1,
+ "x": 3742.500343322754,
+ "y": 5341.499980926514,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "7e949b67.6d48c4",
+ "type": "comment",
+ "name": "terminateRANSliceInstance/instantiateRANSliceModifyDeallocate-ConfigDb",
+ "info": "",
+ "comments": "",
+ "x": 802.5000286102295,
+ "y": 65.50000333786011,
+ "z": "9f8808d.55bc2f8",
+ "wires": []
+ },
+ {
+ "id": "29e00485.3212dc",
+ "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/terminateRANSlice.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"RPC to handle terminateRANSlice.: \"/>\n<parameter name=\"field2\" value=\"`$terminate-r-a-n-slice-instance-input.action`\"/>\n<parameter name=\"field3\" value=\"`$terminate-r-a-n-slice-instance-input.common-header.timestamp`\"/>\n<parameter name=\"field4\" value=\"`$terminate-r-a-n-slice-instance-input.common-header.request-id`\"/>\n<parameter name=\"field5\" value=\"`$terminate-r-a-n-slice-instance-input.common-header.originator-id`\"/>\n<parameter name=\"field6\" value=\"RPC Payload String \"/>\n<parameter name=\"field7\" value=\"`$terminate-r-a-n-slice-instance-input.payload`\"/>",
+ "comments": "",
+ "outputs": 1,
+ "x": 502.75000762939453,
+ "y": 102.74999284744263,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "86c6b7a3.dd4128",
+ "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 terminateRANSice RPC' />",
+ "comments": "",
+ "x": 608.7497634887695,
+ "y": 156.75000619888306,
+ "z": "9f8808d.55bc2f8",
+ "wires": []
+ },
+ {
+ "id": "60eceda0.332524",
+ "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-context.log' />\n\n\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 643.7497253417969,
+ "y": 300.73954677581787,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "e105720e.7db1",
+ "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": 663.7497100830078,
+ "y": 341.7499122619629,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "b9c07470.9995d8",
+ "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/terminateRANSlice.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": 674.7497787475586,
+ "y": 411.49999380111694,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "52f3d815.1af068",
+ "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=\"`$tmp.sliceprofileid`\"/>",
+ "comments": "",
+ "outputs": 1,
+ "x": 599.2499923706055,
+ "y": 630.2500286102295,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "36cd41bc.c6635e",
+ "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/terminateRANSlice.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": 560.2500305175781,
+ "y": 662.0000600814819,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "70f7dd72.4d7324",
+ "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": 600.2500457763672,
+ "y": 704.2500448226929,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "83702985.d50d18",
+ "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": 549.5000457763672,
+ "y": 756.0000767707825,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "8f7a86fa.6a9d48",
+ "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/terminateRANSlice.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": 507.24359130859375,
+ "y": 876.9935789108276,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "2f2d1a47.203916",
+ "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": 2089.7776947021484,
+ "y": 572.7221846580505,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "c1c0f0c3.6cb7c",
+ "type": "for",
+ "name": "for each rrmpolicyMember",
+ "xml": "<for index='idcu-rrm1' start='0' end='`$tmp.NRCellCURRMPolicyMembersLength`' >\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2558.749767303467,
+ "y": 2286.333149433136,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ [
+ "d8a07c6c.c322d"
+ ]
+ ]
+ },
+ {
+ "id": "d8a07c6c.c322d",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 2788.416763305664,
+ "y": 2286.444282054901,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ [
+ "908d821.c7a738",
+ "98a857a2.b89188",
+ "9c2da79c.1d1d58",
+ "680068d9.a33498",
+ "939114cf.e5b1e8"
+ ]
+ ]
+ },
+ {
+ "id": "908d821.c7a738",
+ "type": "switchNode",
+ "name": "if length > 0 ",
+ "xml": "<switch test='`$tmp.NRCellCURRMPolicyMembersLength > 0`'>\n\n \n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2927.583595275879,
+ "y": 2199.583086490631,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ [
+ "8057c8a4.7db0a8",
+ "2d77f59.3673e0a"
+ ]
+ ]
+ },
+ {
+ "id": "8057c8a4.7db0a8",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='true'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 3079.250068664551,
+ "y": 2174.1385684013367,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ [
+ "8f4fb20c.927c5"
+ ]
+ ]
+ },
+ {
+ "id": "8f4fb20c.927c5",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 3245.9164695739746,
+ "y": 2175.1389441490173,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ [
+ "b506e974.8821f8"
+ ]
+ ]
+ },
+ {
+ "id": "b506e974.8821f8",
+ "type": "switchNode",
+ "name": "ransim mounted",
+ "xml": "<switch test='`$prop.ransim-mounted`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 3093.694351196289,
+ "y": 2054.027679681778,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ [
+ "9066f554.ceff48",
+ "d59da51.664fe58"
+ ]
+ ]
+ },
+ {
+ "id": "9066f554.ceff48",
+ "type": "outcome",
+ "name": "Not Mounted",
+ "xml": "<outcome value='false'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 3337.028091430664,
+ "y": 2069.9163584709167,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ [
+ "dc4db22.e9b095"
+ ]
+ ]
+ },
+ {
+ "id": "d59da51.664fe58",
+ "type": "outcome",
+ "name": "Mounted",
+ "xml": "<outcome value='true'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 3327.8716011047363,
+ "y": 2110.3606419563293,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ [
+ "8c8f7b18.9864c8"
+ ]
+ ]
+ },
+ {
+ "id": "dc4db22.e9b095",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 3518.4165115356445,
+ "y": 2071.2499585151672,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ [
+ "c1ffe081.a6009"
+ ]
+ ]
+ },
+ {
+ "id": "8c8f7b18.9864c8",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 3509.527587890625,
+ "y": 2113.47199678421,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ [
+ "ed7cbf40.2a87e",
+ "43b732df.253f8c"
+ ]
+ ]
+ },
+ {
+ "id": "c1ffe081.a6009",
+ "type": "execute",
+ "name": "delete RRMPolicyRatio NRCellCU - URL",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$prop.restapi.removeRRMPolicyRatio.ToNRCellCU`\"/>\n <parameter name=\"outputPath\" value=\"tmp.deleteRRMPolicyRatio.url\"/>\n <parameter name=\"target\" value=\"{idNearRTRIC}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.nearRTRICId`\"/>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 3803.694221496582,
+ "y": 2068.4722361564636,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "ed7cbf40.2a87e",
+ "type": "execute",
+ "name": "generate deleteRRMPolicyRatio.ToNRCellCU URL",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$prop.restapi.removeRRMPolicyRatio.ToNRCellCU.ransim-mounted`\"/>\n <parameter name=\"outputPath\" value=\"tmp.deleteRRMPolicyRatio.url\"/>\n <parameter name=\"target\" value=\"{idNearRTRIC}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.nearRTRICId`\"/>",
+ "comments": "",
+ "outputs": 1,
+ "x": 3814.8054809570312,
+ "y": 2111.805597782135,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "43b732df.253f8c",
+ "type": "execute",
+ "name": "populate mountName",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$tmp.deleteRRMPolicyRatio.url`\"/>\n <parameter name=\"outputPath\" value=\"tmp.deleteRRMPolicyRatio.url\"/>\n <parameter name=\"target\" value=\"{mountName}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.CUCPName`\"/>",
+ "comments": "",
+ "outputs": 1,
+ "x": 3739.2497024536133,
+ "y": 2147.3610796928406,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "2d77f59.3673e0a",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='false'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 3082.861053466797,
+ "y": 2228.4721179008484,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ [
+ "9e8091c0.23788"
+ ]
+ ]
+ },
+ {
+ "id": "9e8091c0.23788",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 3268.5281372070312,
+ "y": 2216.8054366111755,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ [
+ "1e5e9104.f4053f",
+ "26e36b4d.5373c4"
+ ]
+ ]
+ },
+ {
+ "id": "1e5e9104.f4053f",
+ "type": "set",
+ "name": "Read RRMPolicyMember-sNSSA",
+ "xml": "<set>\n<parameter name='tmp.RRMPolicyMember_sNSSAI' value=\"`'$get-rrmpolicyratio-response.attributes.RRMPolicyRatio['+ $idcu-rrm+'].attributes.rRMPolicyMemberList['+ $idcu-rrm1 +'].sNSSAI'`\" />",
+ "comments": "",
+ "x": 3560.917106628418,
+ "y": 2180.694749355316,
+ "z": "9f8808d.55bc2f8",
+ "wires": []
+ },
+ {
+ "id": "26e36b4d.5373c4",
+ "type": "switchNode",
+ "name": "find matching RRMPolicyMember",
+ "xml": "<switch test='`$tmp.RRMPolicyMember_sNSSAI==$tmp.sNSSAI`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 3559.8055419921875,
+ "y": 2220.6942439079285,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ [
+ "5fd5d6cf.708bc8"
+ ]
+ ]
+ },
+ {
+ "id": "5fd5d6cf.708bc8",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 3790.638885498047,
+ "y": 2225.1386218070984,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ [
+ "f65a231e.e2ea"
+ ]
+ ]
+ },
+ {
+ "id": "f65a231e.e2ea",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 4014.249725341797,
+ "y": 2221.8053698539734,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ [
+ "24383d1c.4b0022",
+ "24a2ac7a.dd9614",
+ "80d992c8.49cba"
+ ]
+ ]
+ },
+ {
+ "id": "24383d1c.4b0022",
+ "type": "set",
+ "name": "Read RRMPolicyMember-id",
+ "xml": "<set>\n<parameter name='tmp.RRMPolicyMember_id' value=\"`'$get-rrmpolicyratio-response.attributes.RRMPolicyRatio['+ $idcu-rrm+'].attributes.rRMPolicyMemberList['+ $idcu-rrm1 +'].idx'`\" />",
+ "comments": "",
+ "x": 4279.916458129883,
+ "y": 2189.5832562446594,
+ "z": "9f8808d.55bc2f8",
+ "wires": []
+ },
+ {
+ "id": "3d9b81e0.b6523e",
+ "type": "execute",
+ "name": "generate deleteRRMPolicyMember.ToNRCellCU URL",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$prop.restapi.removeRRMPolicyMember.ToNRCellCU`\"/>\n <parameter name=\"outputPath\" value=\"tmp.deleteRRMPolicyRatio.url\"/>\n <parameter name=\"target\" value=\"{idNearRTRIC}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.nearRTRICId`\"/>",
+ "comments": "",
+ "outputs": 1,
+ "x": 4809.360374450684,
+ "y": 2281.805455684662,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "24a2ac7a.dd9614",
+ "type": "switchNode",
+ "name": "ransim mounted",
+ "xml": "<switch test='`$prop.ransim-mounted`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 4237.138465881348,
+ "y": 2285.1389212608337,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ [
+ "ea91230.11bd1e",
+ "7545f2bf.276ddc"
+ ]
+ ]
+ },
+ {
+ "id": "ea91230.11bd1e",
+ "type": "outcome",
+ "name": "Not Mounted",
+ "xml": "<outcome value='false'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 4480.472526550293,
+ "y": 2284.360945224762,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ [
+ "3d9b81e0.b6523e"
+ ]
+ ]
+ },
+ {
+ "id": "7545f2bf.276ddc",
+ "type": "outcome",
+ "name": "Mounted",
+ "xml": "<outcome value='true'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 4471.315940856934,
+ "y": 2335.9163393974304,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ [
+ "95c3b77d.a0d298"
+ ]
+ ]
+ },
+ {
+ "id": "c472577f.78a1a8",
+ "type": "execute",
+ "name": "generate deleteRRMPolicyRatio.ToNRCellCU URL",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$prop.restapi.removeRRMPolicyMember.ToNRCellCU.ransim-mounted`\"/>\n <parameter name=\"outputPath\" value=\"tmp.deleteRRMPolicyRatio.url\"/>\n <parameter name=\"target\" value=\"{idNearRTRIC}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.nearRTRICId`\"/>",
+ "comments": "",
+ "outputs": 1,
+ "x": 4938.527503967285,
+ "y": 2327.3613810539246,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "ef2abebc.4b5ce",
+ "type": "execute",
+ "name": "populate mountName",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$tmp.deleteRRMPolicyRatio.url`\"/>\n <parameter name=\"outputPath\" value=\"tmp.deleteRRMPolicyRatio.url\"/>\n <parameter name=\"target\" value=\"{mountName}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.CUCPName`\"/>",
+ "comments": "",
+ "outputs": 1,
+ "x": 4858.5272216796875,
+ "y": 2386.2497973442078,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "95c3b77d.a0d298",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 4638.249794006348,
+ "y": 2333.4721732139587,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ [
+ "c472577f.78a1a8",
+ "ef2abebc.4b5ce"
+ ]
+ ]
+ },
+ {
+ "id": "26e1eeb8.ead262",
+ "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/terminateRANSlice.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"Delete RRMPolicy URL - \"/>\n<parameter name=\"field2\" value=\"`$tmp.deleteRRMPolicyRatio.url`\"/>\n<parameter name=\"field3\" value=\"RRMPolicyRatio id\"/>\n<parameter name=\"field4\" value=\"`$tmp.RRMPolicyRatio_id`\"/>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2507.8609352111816,
+ "y": 2342.639142513275,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "453b3bec.ed3c24",
+ "type": "execute",
+ "name": "Terminate NRCellCU - RRMPolicyRatio",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"restapiUrl\" value=\"`$prop.controller.url + $tmp.deleteRRMPolicyRatio.url`\"/>\n<parameter name=\"restapiUser\" value=\"`$prop.controller.user`\" />\n<parameter name=\"restapiPassword\" value=\"`$prop.controller.pwd`\"/>\n<parameter name=\"httpMethod\" value=\"DELETE\"/>\n<parameter name=\"responsePrefix\" value=\"delete-cellCU-RRMPolicyRatio-response\"/>\n<parameter name='contentType' value='application/json' /> \n<parameter name='format' value='json' />",
+ "comments": "",
+ "outputs": 1,
+ "x": 2602.6387329101562,
+ "y": 2384.6389594078064,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ [
+ "4650484b.cf0978",
+ "f8a9e793.40e5b8"
+ ]
+ ]
+ },
+ {
+ "id": "4650484b.cf0978",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2888.3888359069824,
+ "y": 2430.3889288902283,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ [
+ "4e4b2c9a.f27204"
+ ]
+ ]
+ },
+ {
+ "id": "4e4b2c9a.f27204",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 3091.8888931274414,
+ "y": 2432.8889298439026,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ [
+ "75cd84fc.37fadc"
+ ]
+ ]
+ },
+ {
+ "id": "75cd84fc.37fadc",
+ "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/terminateRANSlice.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"Successfully Deleted - cellCU RRMpolicyRatio/RRMPolicyMember\"/>",
+ "comments": "",
+ "outputs": 1,
+ "x": 3319.3886528015137,
+ "y": 2340.139141559601,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "58f507d.0e3c2f8",
+ "type": "set",
+ "name": "set",
+ "xml": "<set>\n<parameter name='error-code' value='500'/>\n<parameter name='error-message' value='Error Removing cellCU RRMPolicyRatio. Aborting RPC executiopn'/>",
+ "comments": "",
+ "x": 3332.638641357422,
+ "y": 2383.1388659477234,
+ "z": "9f8808d.55bc2f8",
+ "wires": []
+ },
+ {
+ "id": "2aa06eb6.9a63b2",
+ "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 removing NRCellDU - RRMPolicyRAtio. Aborting RPC executiopn'/>",
+ "comments": "",
+ "x": 3337.6385192871094,
+ "y": 2478.1389269828796,
+ "z": "9f8808d.55bc2f8",
+ "wires": []
+ },
+ {
+ "id": "1b95566a.59691a",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 3088.889320373535,
+ "y": 2484.638961315155,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ [
+ "2aa06eb6.9a63b2",
+ "58f507d.0e3c2f8",
+ "8f46169a.4ebf98"
+ ]
+ ]
+ },
+ {
+ "id": "f8a9e793.40e5b8",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2883.6388359069824,
+ "y": 2469.638961315155,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ [
+ "1b95566a.59691a"
+ ]
+ ]
+ },
+ {
+ "id": "80d992c8.49cba",
+ "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/terminateRANSlice.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"RRMPolicyMember id - \"/>\n<parameter name=\"field2\" value=\"`$tmp.RRMPolicyMember_id`\"/>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 4231.576385498047,
+ "y": 2237.4652819633484,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "c9597d62.890ed",
+ "type": "execute",
+ "name": "prepare sNSSAI",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$tmp.deleteSNSSAIListEntry.url`\"/>\n <parameter name=\"outputPath\" value=\"tmp.deleteSNSSAIListEntry.url\"/>\n <parameter name=\"target\" value=\"{sNssai}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.sNSSAI`\"/>",
+ "comments": "",
+ "outputs": 1,
+ "x": 2297.138946533203,
+ "y": 1331.652853012085,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "98a857a2.b89188",
+ "type": "execute",
+ "name": "prepare idGNBCUCPFunction",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$tmp.deleteRRMPolicyRatio.url`\"/>\n <parameter name=\"outputPath\" value=\"tmp.deleteRRMPolicyRatio.url\"/>\n <parameter name=\"target\" value=\"{idGNBCUCPFunction}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.CUCPName`\"/>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 3045.3265075683594,
+ "y": 2278.7153429985046,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "9c2da79c.1d1d58",
+ "type": "execute",
+ "name": "prepare idNRCellCU",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$tmp.deleteRRMPolicyRatio.url`\"/>\n <parameter name=\"outputPath\" value=\"tmp.deleteRRMPolicyRatio.url\"/>\n <parameter name=\"target\" value=\"{idNRCellCU}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.cellCULocalId`\"/>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 3017.826446533203,
+ "y": 2311.965313434601,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "680068d9.a33498",
+ "type": "execute",
+ "name": "prepare RRMPolicyRatio id",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$tmp.deleteRRMPolicyRatio.url`\"/>\n <parameter name=\"outputPath\" value=\"tmp.deleteRRMPolicyRatio.url\"/>\n <parameter name=\"target\" value=\"{id}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.RRMPolicyRatio_id`\"/>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 3041.264389038086,
+ "y": 2346.5278449058533,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "939114cf.e5b1e8",
+ "type": "execute",
+ "name": "prepare RRMPolicyMember id",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$tmp.getRRMPolicyRatio.url`\"/>\n <parameter name=\"outputPath\" value=\"tmp.getRRMPolicyRatio.url\"/>\n <parameter name=\"target\" value=\"{idx}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.RRMPolicyMember_id`\"/>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 3048.763946533203,
+ "y": 2382.277814388275,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "8ab466e2.c019c8",
+ "type": "execute",
+ "name": "read NFType",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'>\n\t<parameter name='outputPath' value='tmp.cucpNFType' />\n\t<parameter name='source' value=\"`'getNFNSSIRIC-configdb-response.['+ $idy +'].gNBCUCPList['+ $idz +'].nFType'`\" />",
+ "comments": "",
+ "outputs": 1,
+ "x": 2300.013946533203,
+ "y": 1096.3403491973877,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "d10c9390.82cd8",
+ "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.configDBSNSSAI1' />\n <parameter name='source' value=\"`'getNFNSSIRIC-configdb-response.['+ $idy +'].gNBCUUPList['+ $id-cuup +'].pLMNInfoList['+ $id-plmn +'].sNSSAI['+ $id-snssai +'].sNSSAI'`\" />",
+ "comments": "",
+ "outputs": 1,
+ "x": 1574.13916015625,
+ "y": 2621.4726457595825,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "63fe6671.297f68",
+ "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/terminateRANSlice.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"sNSSAI - getNFNSSIRIC-configdb-response\"/>\n<parameter name=\"field2\" value=\"`$tmp.configDBSNSSAI1`\"/>\n<parameter name=\"field3\" value=\"sNSSAI from Request\"/>\n<parameter name=\"field4\" value=\"`$tmp.sNSSAI`\"/>\n\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1428.1390838623047,
+ "y": 2671.472743988037,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "484a93f6.28344c",
+ "type": "switchNode",
+ "name": "is NSSAI exists",
+ "xml": "<switch test='`$tmp.configDBSNSSAI1 == $tmp.sNSSAI`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1435.0282440185547,
+ "y": 2715.0276279449463,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ [
+ "4e8220cb.1efee",
+ "6f4bd7b5.908f38"
+ ]
+ ]
+ },
+ {
+ "id": "4e8220cb.1efee",
+ "type": "outcome",
+ "name": "True",
+ "xml": "<outcome value='true'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1608.2500228881836,
+ "y": 2669.250478744507,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ [
+ "f576c333.0806f"
+ ]
+ ]
+ },
+ {
+ "id": "cb4c199b.3e0788",
+ "type": "execute",
+ "name": "prepare mcc",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$tmp.deletePLMNInfo-CUUP.url`\"/>\n <parameter name=\"outputPath\" value=\"tmp.deletePLMNInfo-CUUP.url\"/>\n <parameter name=\"target\" value=\"{mcc}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.mcc`\"/>\n ",
+ "comments": "",
+ "outputs": 1,
+ "x": 1970.2499771118164,
+ "y": 2820.250334739685,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "e57630c1.8b205",
+ "type": "execute",
+ "name": "prepare mnc",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$tmp.deletePLMNInfo-CUUP.url`\"/>\n <parameter name=\"outputPath\" value=\"tmp.deletePLMNInfo-CUUP.url\"/>\n <parameter name=\"target\" value=\"{mnc}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.mnc`\"/>",
+ "comments": "",
+ "outputs": 1,
+ "x": 1975.7501678466797,
+ "y": 2855.75053024292,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "9155057f.4d20f8",
+ "type": "execute",
+ "name": "prepare sNSSAI",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$tmp.deletePLMNInfo-CUUP.url`\"/>\n <parameter name=\"outputPath\" value=\"tmp.deletePLMNInfo-CUUP.url\"/>\n <parameter name=\"target\" value=\"{sNssai}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.sNSSAI`\"/>",
+ "comments": "",
+ "outputs": 1,
+ "x": 1964.3891372680664,
+ "y": 2890.9028749465942,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "8bf3be00.15712",
+ "type": "execute",
+ "name": "terminate sNNSAI - CUUP",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"restapiUrl\" value=\"`$prop.controller.url + $tmp.deletePLMNInfo-CUUP.url`\"/>\n<parameter name=\"restapiUser\" value=\"`$prop.controller.user`\" />\n<parameter name=\"restapiPassword\" value=\"`$prop.controller.pwd`\"/>\n<parameter name=\"httpMethod\" value=\"DELETE\"/>\n<parameter name=\"responsePrefix\" value=\"delete-CUUP-sNSSAI-response\"/>\n<parameter name='contentType' value='application/json' /> \n<parameter name='format' value='json' />",
+ "comments": "",
+ "outputs": 1,
+ "x": 1977.0001678466797,
+ "y": 2929.2503356933594,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ [
+ "66a70b2c.f71394",
+ "ab1ecbed.555028"
+ ]
+ ]
+ },
+ {
+ "id": "9c8cb70c.b77938",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2399.9165382385254,
+ "y": 3671.5839405059814,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ [
+ "77340d61.b83724"
+ ]
+ ]
+ },
+ {
+ "id": "fc663dd6.36133",
+ "type": "for",
+ "name": "for each rrmpolicyMember",
+ "xml": "<for index='idcu-rrm2' start='0' end='`$tmp.CUUPRRMPolicyMembersLength`' >\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2092.2222442626953,
+ "y": 3608.027786254883,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ [
+ "d13b6763.d28078"
+ ]
+ ]
+ },
+ {
+ "id": "d13b6763.d28078",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 2317.888900756836,
+ "y": 3498.1390647888184,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ [
+ "4888a54.a70465c",
+ "f35fb2ec.0cdc5",
+ "f6b2e0f3.7d366",
+ "bd94d371.35727",
+ "a4f4cb8c.9b68b8"
+ ]
+ ]
+ },
+ {
+ "id": "4888a54.a70465c",
+ "type": "switchNode",
+ "name": "if length > 0 ",
+ "xml": "<switch test='`$tmp.CUUPRRMPolicyMembersLength > 0`'>\n \n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2456.055892944336,
+ "y": 3399.277886867523,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ [
+ "5e683718.58f9b8",
+ "5eebdf7f.60905"
+ ]
+ ]
+ },
+ {
+ "id": "5e683718.58f9b8",
+ "type": "success",
+ "name": "True",
+ "xml": "<outcome value='true'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2604.722499847412,
+ "y": 3353.8329634666443,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ [
+ "264a8b2.060c774"
+ ]
+ ]
+ },
+ {
+ "id": "264a8b2.060c774",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 2764.3888511657715,
+ "y": 3410.833547115326,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ [
+ "3e3204c5.3f38bc",
+ "9bfca7b0.f4f088"
+ ]
+ ]
+ },
+ {
+ "id": "3e3204c5.3f38bc",
+ "type": "switchNode",
+ "name": "ransim mounted",
+ "xml": "<switch test='`$prop.ransim-mounted`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2812.1669311523438,
+ "y": 3226.722415447235,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ [
+ "97b5eb58.2efc18",
+ "266fb720.a9a918"
+ ]
+ ]
+ },
+ {
+ "id": "97b5eb58.2efc18",
+ "type": "outcome",
+ "name": "Not Mounted",
+ "xml": "<outcome value='false'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2855.500473022461,
+ "y": 3305.6109614372253,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ [
+ "f11c1f12.ddfee"
+ ]
+ ]
+ },
+ {
+ "id": "266fb720.a9a918",
+ "type": "outcome",
+ "name": "Mounted",
+ "xml": "<outcome value='true'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2846.343982696533,
+ "y": 3346.055244922638,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ [
+ "6e2c24d5.1fc9cc"
+ ]
+ ]
+ },
+ {
+ "id": "f11c1f12.ddfee",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 3036.8888931274414,
+ "y": 3306.944561481476,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ [
+ "55d63d3a.e975d4",
+ "f201d6da.714358",
+ "1662cdcf.6a2522"
+ ]
+ ]
+ },
+ {
+ "id": "6e2c24d5.1fc9cc",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 3027.999969482422,
+ "y": 3349.166599750519,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ [
+ "44ca97b2.898c88",
+ "a57e8627.c5b9e8"
+ ]
+ ]
+ },
+ {
+ "id": "f201d6da.714358",
+ "type": "execute",
+ "name": "delete RRMPolicyRatio CUUP- URL",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$prop.restapi.removeRRMPolicyRatio.ToCUUP`\"/>\n <parameter name=\"outputPath\" value=\"tmp.deleteRRMPolicyRatio-CUUP.url\"/>\n <parameter name=\"target\" value=\"{idNearRTRIC}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.nearRTRICId`\"/>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 3358.1665000915527,
+ "y": 3206.167140483856,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "44ca97b2.898c88",
+ "type": "execute",
+ "name": "generate deleteRRMPolicyRatio.ToNRCellCU URL",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$prop.restapi.removeRRMPolicyRatio.ToCUUP.ransim-mounted`\"/>\n <parameter name=\"outputPath\" value=\"tmp.deleteRRMPolicyRatio-CUUP.url\"/>\n <parameter name=\"target\" value=\"{idNearRTRIC}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.nearRTRICId`\"/>",
+ "comments": "",
+ "outputs": 1,
+ "x": 3333.277862548828,
+ "y": 3347.5002007484436,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "a57e8627.c5b9e8",
+ "type": "execute",
+ "name": "populate mountName",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$tmp.deleteRRMPolicyRatio-CUUP.url`\"/>\n <parameter name=\"outputPath\" value=\"tmp.deleteRRMPolicyRatio-CUUP.url\"/>\n <parameter name=\"target\" value=\"{mountName}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.idGNBCUUPFunction`\"/>",
+ "comments": "",
+ "outputs": 1,
+ "x": 3257.72208404541,
+ "y": 3383.055682659149,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "5eebdf7f.60905",
+ "type": "failure",
+ "name": "False",
+ "xml": "<outcome value='false'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2604.3336296081543,
+ "y": 3444.166949748993,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ [
+ "c018dc77.5bd9"
+ ]
+ ]
+ },
+ {
+ "id": "c018dc77.5bd9",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 2787.000518798828,
+ "y": 3452.500039577484,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ [
+ "d5ac128.45bfff",
+ "a80aaaca.e997c8",
+ "f1c3a8f8.c94528"
+ ]
+ ]
+ },
+ {
+ "id": "d5ac128.45bfff",
+ "type": "set",
+ "name": "Read RRMPolicyMember-sNSSAI",
+ "xml": "<set>\n<parameter name='tmp.CUUPRRMPolicyMember_sNSSAI' value=\"`'$get-rrmpolicyratio-cuup-response.attributes.RRMPolicyRatio['+ $idcuup-rrm+'].attributes.rRMPolicyMemberList['+ $idcu-rrm2 +'].sNSSAI'`\" />",
+ "comments": "",
+ "x": 3083.3894958496094,
+ "y": 3450.3896050453186,
+ "z": "9f8808d.55bc2f8",
+ "wires": []
+ },
+ {
+ "id": "a80aaaca.e997c8",
+ "type": "switchNode",
+ "name": "find matching RRMPolicyMember",
+ "xml": "<switch test='`$tmp.CUUPRRMPolicyMember_sNSSAI==$tmp.sNSSAI`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 3078.2777786254883,
+ "y": 3493.389214992523,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ [
+ "6a712b9e.d7b4b4"
+ ]
+ ]
+ },
+ {
+ "id": "6a712b9e.d7b4b4",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 3309.1112670898438,
+ "y": 3460.833224773407,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ [
+ "d128da26.d54bc8"
+ ]
+ ]
+ },
+ {
+ "id": "d128da26.d54bc8",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 3532.7221069335938,
+ "y": 3457.499972820282,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ [
+ "544297de.e23558",
+ "e211444f.c5e5a8",
+ "91804a2a.430a98"
+ ]
+ ]
+ },
+ {
+ "id": "544297de.e23558",
+ "type": "set",
+ "name": "Read RRMPolicyMember-id",
+ "xml": "<set>\n<parameter name='tmp.CUUPRRMPolicyMember_id' value=\"`'$get-rrmpolicyratio-cuup-response.attributes.RRMPolicyRatio['+ $idcuup-rrm+'].attributes.rRMPolicyMemberList['+ $idcu-rrm2 +'].idx'`\" />",
+ "comments": "",
+ "x": 3798.3888397216797,
+ "y": 3425.277859210968,
+ "z": "9f8808d.55bc2f8",
+ "wires": []
+ },
+ {
+ "id": "91804a2a.430a98",
+ "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/terminateRANSlice.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"RRMPolicyMember id - \"/>\n<parameter name=\"field2\" value=\"`$tmp.CUUPRRMPolicyMember_id`\"/>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 3750.0487670898438,
+ "y": 3473.159884929657,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "e211444f.c5e5a8",
+ "type": "switchNode",
+ "name": "ransim mounted",
+ "xml": "<switch test='`$prop.ransim-mounted`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 3755.6108474731445,
+ "y": 3520.8335242271423,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ [
+ "37d54489.5110ec",
+ "a51e80e2.10b71"
+ ]
+ ]
+ },
+ {
+ "id": "37d54489.5110ec",
+ "type": "outcome",
+ "name": "Not Mounted",
+ "xml": "<outcome value='false'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 3998.94490814209,
+ "y": 3520.0555481910706,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ [
+ "52518d81.e1afb4"
+ ]
+ ]
+ },
+ {
+ "id": "a51e80e2.10b71",
+ "type": "outcome",
+ "name": "Mounted",
+ "xml": "<outcome value='true'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 3989.7883224487305,
+ "y": 3571.610942363739,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ [
+ "5b9d9e6.e7a486"
+ ]
+ ]
+ },
+ {
+ "id": "52518d81.e1afb4",
+ "type": "execute",
+ "name": "generate deleteRRMPolicyMember.CUUP URL",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$prop.restapi.removeRRMPolicyMember.ToCUUP`\"/>\n <parameter name=\"outputPath\" value=\"tmp.deleteRRMPolicyRatio-CUUP.url\"/>\n <parameter name=\"target\" value=\"{idNearRTRIC}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.nearRTRICId`\"/>",
+ "comments": "",
+ "outputs": 1,
+ "x": 4327.8327560424805,
+ "y": 3517.5000586509705,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "5b9d9e6.e7a486",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 4156.7221755981445,
+ "y": 3569.1667761802673,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ [
+ "f90b0f5d.cdd68",
+ "7c54e102.503ed"
+ ]
+ ]
+ },
+ {
+ "id": "f90b0f5d.cdd68",
+ "type": "execute",
+ "name": "generate deleteRRMPolicyRatio.ToNRCellCU URL",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$prop.restapi.removeRRMPolicyMember.CUUP.ransim-mounted`\"/>\n <parameter name=\"outputPath\" value=\"tmp.deleteRRMPolicyRatio-CUUP.url\"/>\n <parameter name=\"target\" value=\"{idNearRTRIC}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.nearRTRICId`\"/>",
+ "comments": "",
+ "outputs": 1,
+ "x": 4456.999885559082,
+ "y": 3563.055984020233,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "7c54e102.503ed",
+ "type": "execute",
+ "name": "populate mountName",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$tmp.deleteRRMPolicyRatio-CUUP.url`\"/>\n <parameter name=\"outputPath\" value=\"tmp.deleteRRMPolicyRatio-CUUP.url\"/>\n <parameter name=\"target\" value=\"{mountName}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.idGNBCUUPFunction`\"/>",
+ "comments": "",
+ "outputs": 1,
+ "x": 4376.999603271484,
+ "y": 3621.9444003105164,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "f35fb2ec.0cdc5",
+ "type": "execute",
+ "name": "prepare idGNBCUUPFunction",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$tmp.deleteRRMPolicyRatio-CUUP.url`\"/>\n <parameter name=\"outputPath\" value=\"tmp.deleteRRMPolicyRatio-CUUP.url\"/>\n <parameter name=\"target\" value=\"{idGNBCUUPFunction}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.idGNBCUUPFunction`\"/>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2550.5001373291016,
+ "y": 3516.5003447532654,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "f6b2e0f3.7d366",
+ "type": "execute",
+ "name": "prepare RRMPolicyRatio id",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$tmp.deleteRRMPolicyRatio-CUUP.url`\"/>\n <parameter name=\"outputPath\" value=\"tmp.deleteRRMPolicyRatio-CUUP.url\"/>\n <parameter name=\"target\" value=\"{id}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.CUUPRRMPolicyRatio_id`\"/>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2539.4380264282227,
+ "y": 3549.3128452301025,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "bd94d371.35727",
+ "type": "execute",
+ "name": "prepare RRMPolicyMember id",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$tmp.deleteRRMPolicyRatio-CUUP.url`\"/>\n <parameter name=\"outputPath\" value=\"tmp.deleteRRMPolicyRatio-CUUP.url\"/>\n <parameter name=\"target\" value=\"{idx}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.CUUPRRMPolicyMember_id`\"/>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2549.9376373291016,
+ "y": 3586.062846183777,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "1fb5b4aa.078f6b",
+ "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/terminateRANSlice.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"Delete RRMPolicy URL - \"/>\n<parameter name=\"field2\" value=\"`$tmp.deleteRRMPolicyRatio-CUUP.url`\"/>\n<parameter name=\"field3\" value=\"RRMPolicyRatio id\"/>\n<parameter name=\"field4\" value=\"`$tmp.CUUPRRMPolicyRatio_id`\"/>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2038.0343551635742,
+ "y": 3652.4242725372314,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "c28d92c1.96ba8",
+ "type": "execute",
+ "name": "Terminate NRCellCU - RRMPolicyRatio",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"restapiUrl\" value=\"`$prop.controller.url + $tmp.deleteRRMPolicyRatio-CUUP.url`\"/>\n<parameter name=\"restapiUser\" value=\"`$prop.controller.user`\" />\n<parameter name=\"restapiPassword\" value=\"`$prop.controller.pwd`\"/>\n<parameter name=\"httpMethod\" value=\"DELETE\"/>\n<parameter name=\"responsePrefix\" value=\"delete-CUUP-RRMPolicyRatio-response\"/>\n<parameter name='contentType' value='application/json' /> \n<parameter name='format' value='json' />",
+ "comments": "",
+ "outputs": 1,
+ "x": 2114.812286376953,
+ "y": 3698.423490524292,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ [
+ "9c8cb70c.b77938",
+ "fcb9c79a.5fac28"
+ ]
+ ]
+ },
+ {
+ "id": "40e94d3c.6122a4",
+ "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": 2166.437728881836,
+ "y": 4221.125453948975,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "d40620ac.f176c",
+ "type": "for",
+ "name": "foreach PLMNInfo",
+ "xml": "<for index='id-duplmn' start='0' end='`$tmp.DUpLMNInfoList_length`' >\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2209.7713165283203,
+ "y": 4338.125455856323,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ [
+ "1a14cf2c.069a91"
+ ]
+ ]
+ },
+ {
+ "id": "ff36d37.28a253",
+ "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-dusnssai +'].sNSSAI'`\" />",
+ "comments": "",
+ "outputs": 1,
+ "x": 2831.29891204834,
+ "y": 4336.375453948975,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "bd21b7.8f467e48",
+ "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/terminateRANSlice.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": 2751.0487670898438,
+ "y": 4378.3750648498535,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "e8d9adcf.46f42",
+ "type": "switchNode",
+ "name": "is NSSAI exists",
+ "xml": "<switch test='`$tmp.configDBSNSSAI-DU == $tmp.sNSSAI`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2749.1876335144043,
+ "y": 4434.680534362793,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ [
+ "ac193689.4f84b8"
+ ]
+ ]
+ },
+ {
+ "id": "ac193689.4f84b8",
+ "type": "outcome",
+ "name": "True",
+ "xml": "<outcome value='true'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2902.659900665283,
+ "y": 4438.152799606323,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ [
+ "5d1f423f.307b1c"
+ ]
+ ]
+ },
+ {
+ "id": "331af4f0.8180cc",
+ "type": "execute",
+ "name": "prepare sNSSAI",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$tmp.deletePLMNInfoListEntry-cellDU.url`\"/>\n <parameter name=\"outputPath\" value=\"tmp.deletePLMNInfoListEntry-cellDU.url\"/>\n <parameter name=\"target\" value=\"{sNssai}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.sNSSAI`\"/>",
+ "comments": "",
+ "outputs": 1,
+ "x": 3078.1875,
+ "y": 4905.81250333786,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "e02caafe.7e2178",
+ "type": "for",
+ "name": "for each rrmpolicyMember",
+ "xml": "<for index='iddu-rrm2' start='0' end='`$tmp.DURRMPolicyMembersLength`' >\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 3669.4722213745117,
+ "y": 5671.71551322937,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ [
+ "817fa4a5.11a678"
+ ]
+ ]
+ },
+ {
+ "id": "817fa4a5.11a678",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 3887.1390228271484,
+ "y": 5670.82684135437,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ [
+ "221dca87.7bcad6",
+ "468c4071.ae0c3",
+ "98e30429.ae0468",
+ "f903664e.df9698",
+ "312beaa2.664426"
+ ]
+ ]
+ },
+ {
+ "id": "221dca87.7bcad6",
+ "type": "switchNode",
+ "name": "if length > 0 ",
+ "xml": "<switch test='`$tmp.DURRMPolicyMembersLength > 0`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 4044.056137084961,
+ "y": 5585.465371608734,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ [
+ "15f2476e.0aff99",
+ "207fa743.f2f8e8"
+ ]
+ ]
+ },
+ {
+ "id": "15f2476e.0aff99",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='true'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 4186.972393035889,
+ "y": 5543.520587444305,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ [
+ "3d7b1415.eb88fc"
+ ]
+ ]
+ },
+ {
+ "id": "3d7b1415.eb88fc",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 4353.6388511657715,
+ "y": 5543.521047115326,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ [
+ "f3fe13b6.faaaf"
+ ]
+ ]
+ },
+ {
+ "id": "f3fe13b6.faaaf",
+ "type": "switchNode",
+ "name": "ransim mounted",
+ "xml": "<switch test='`$prop.ransim-mounted`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 4201.416732788086,
+ "y": 5422.409782648087,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ [
+ "6ebb8341.0f0bac",
+ "f8898acb.a01f78"
+ ]
+ ]
+ },
+ {
+ "id": "6ebb8341.0f0bac",
+ "type": "outcome",
+ "name": "Not Mounted",
+ "xml": "<outcome value='false'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 4444.750473022461,
+ "y": 5438.298461437225,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ [
+ "7cec6fd6.3f6e8"
+ ]
+ ]
+ },
+ {
+ "id": "f8898acb.a01f78",
+ "type": "outcome",
+ "name": "Mounted",
+ "xml": "<outcome value='true'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 4435.593982696533,
+ "y": 5478.742744922638,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ [
+ "8cbfe85a.8bd8d8"
+ ]
+ ]
+ },
+ {
+ "id": "7cec6fd6.3f6e8",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 4626.138893127441,
+ "y": 5439.632061481476,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ [
+ "67de5fc8.10138"
+ ]
+ ]
+ },
+ {
+ "id": "67de5fc8.10138",
+ "type": "execute",
+ "name": "delete RRMPolicyRatio DU- URL",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$prop.restapi.removeRRMPolicyRatio.ToNRCellDU`\"/>\n <parameter name=\"outputPath\" value=\"tmp.deleteRRMPolicyRatio-DU.url\"/>\n <parameter name=\"target\" value=\"{idNearRTRIC}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.nearRTRICId`\"/>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 4911.416603088379,
+ "y": 5436.854339122772,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "acfa476f.e3fba8",
+ "type": "execute",
+ "name": "generate deleteRRMPolicyRatio.ToNRCellCU URL",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$prop.restapi.removeRRMPolicyRatio.ToNRCellDU.ransim-mounted`\"/>\n <parameter name=\"outputPath\" value=\"tmp.deleteRRMPolicyRatio-DU.url\"/>\n <parameter name=\"target\" value=\"{idNearRTRIC}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.nearRTRICId`\"/>",
+ "comments": "",
+ "outputs": 1,
+ "x": 4922.527862548828,
+ "y": 5480.187700748444,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "d49b38d.ce537c8",
+ "type": "execute",
+ "name": "populate mountName",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$tmp.deleteRRMPolicyRatio-DU.url`\"/>\n <parameter name=\"outputPath\" value=\"tmp.deleteRRMPolicyRatio-DU.url\"/>\n <parameter name=\"target\" value=\"{mountName}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.GNBDUId`\"/>",
+ "comments": "",
+ "outputs": 1,
+ "x": 4846.97208404541,
+ "y": 5515.743182659149,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "8cbfe85a.8bd8d8",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 4617.249969482422,
+ "y": 5481.854099750519,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ [
+ "acfa476f.e3fba8",
+ "d49b38d.ce537c8"
+ ]
+ ]
+ },
+ {
+ "id": "207fa743.f2f8e8",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='false'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 4190.6875,
+ "y": 5615.18750333786,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ [
+ "547b81f2.22b58"
+ ]
+ ]
+ },
+ {
+ "id": "547b81f2.22b58",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 4376.354583740234,
+ "y": 5603.520822048187,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ [
+ "f1f8a10c.0782b",
+ "c8c542da.c39c7"
+ ]
+ ]
+ },
+ {
+ "id": "f1f8a10c.0782b",
+ "type": "set",
+ "name": "Read RRMPolicyMember-sNSSA",
+ "xml": "<set>\n<parameter name='tmp.cellDURRMPolicyMember_sNSSAI' value=\"`'$get-rrmpolicyratio-du-response.attributes.RRMPolicyRatio['+ $iddu-rrm+'].attributes.rRMPolicyMemberList['+ $iddu-rrm2 +'].sNSSAI'`\" />",
+ "comments": "",
+ "x": 4669.993957519531,
+ "y": 5562.410562038422,
+ "z": "9f8808d.55bc2f8",
+ "wires": []
+ },
+ {
+ "id": "c8c542da.c39c7",
+ "type": "switchNode",
+ "name": "find matching RRMPolicyMember",
+ "xml": "<switch test='`$tmp.cellDURRMPolicyMember_sNSSAI==$tmp.sNSSAI`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 4667.631988525391,
+ "y": 5607.40962934494,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ [
+ "a492053b.bb6278"
+ ]
+ ]
+ },
+ {
+ "id": "a492053b.bb6278",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 4898.46533203125,
+ "y": 5611.85400724411,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ [
+ "ea29430d.123c9"
+ ]
+ ]
+ },
+ {
+ "id": "ea29430d.123c9",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 5122.076171875,
+ "y": 5608.520755290985,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ [
+ "91bed5be.79aaf8",
+ "191ead5f.6de843",
+ "27e3a0b9.c0342"
+ ]
+ ]
+ },
+ {
+ "id": "91bed5be.79aaf8",
+ "type": "set",
+ "name": "Read RRMPolicyMember-id",
+ "xml": "<set>\n<parameter name='tmp.CellDURRMPolicyMember_id' value=\"`'$get-rrmpolicyratio-du-response.attributes.RRMPolicyRatio['+ $iddu-rrm+'].attributes.rRMPolicyMemberList['+ $iddu-rrm2 +'].idx'`\" />",
+ "comments": "",
+ "x": 5387.742904663086,
+ "y": 5576.298641681671,
+ "z": "9f8808d.55bc2f8",
+ "wires": []
+ },
+ {
+ "id": "27e3a0b9.c0342",
+ "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/terminateRANSlice.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"RRMPolicyMember id - \"/>\n<parameter name=\"field2\" value=\"`$tmp.CellDURRMPolicyMember_id`\"/>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 5339.40283203125,
+ "y": 5624.18066740036,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "191ead5f.6de843",
+ "type": "switchNode",
+ "name": "ransim mounted",
+ "xml": "<switch test='`$prop.ransim-mounted`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 5344.964912414551,
+ "y": 5671.8543066978455,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ [
+ "3d2c6808.65c8c8",
+ "1067f069.99e65"
+ ]
+ ]
+ },
+ {
+ "id": "3d2c6808.65c8c8",
+ "type": "outcome",
+ "name": "Not Mounted",
+ "xml": "<outcome value='false'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 5588.298973083496,
+ "y": 5671.076330661774,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ [
+ "49381ec9.9de7e"
+ ]
+ ]
+ },
+ {
+ "id": "1067f069.99e65",
+ "type": "outcome",
+ "name": "Mounted",
+ "xml": "<outcome value='true'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 5579.142387390137,
+ "y": 5722.631724834442,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ [
+ "97a3719e.61c39"
+ ]
+ ]
+ },
+ {
+ "id": "49381ec9.9de7e",
+ "type": "execute",
+ "name": "generate deleteRRMPolicyMember.ToNRCellDU URL",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$prop.restapi.removeRRMPolicyMember.ToNRCellDU`\"/>\n <parameter name=\"outputPath\" value=\"tmp.deleteRRMPolicyRatio-DU.url\"/>\n <parameter name=\"target\" value=\"{idNearRTRIC}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.nearRTRICId`\"/>",
+ "comments": "",
+ "outputs": 1,
+ "x": 5917.186820983887,
+ "y": 5668.520841121674,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "97a3719e.61c39",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 5746.076240539551,
+ "y": 5720.1875586509705,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ [
+ "b43a42d5.8e4b9",
+ "cacc71d2.dfda8"
+ ]
+ ]
+ },
+ {
+ "id": "b43a42d5.8e4b9",
+ "type": "execute",
+ "name": "generate deleteRRMPolicyRatio.ToNRCellCU URL",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$prop.restapi.removeRRMPolicyMember.ToNRCellDU.ransim-mounted`\"/>\n <parameter name=\"outputPath\" value=\"tmp.deleteRRMPolicyRatio-DU.url\"/>\n <parameter name=\"target\" value=\"{idNearRTRIC}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.nearRTRICId`\"/>",
+ "comments": "",
+ "outputs": 1,
+ "x": 6046.353950500488,
+ "y": 5714.076766490936,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "cacc71d2.dfda8",
+ "type": "execute",
+ "name": "populate mountName",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$tmp.deleteRRMPolicyRatio-DU.url`\"/>\n <parameter name=\"outputPath\" value=\"tmp.deleteRRMPolicyRatio-DU.url\"/>\n <parameter name=\"target\" value=\"{mountName}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.GNBDUId`\"/>",
+ "comments": "",
+ "outputs": 1,
+ "x": 5966.353668212891,
+ "y": 5772.9651827812195,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "468c4071.ae0c3",
+ "type": "execute",
+ "name": "prepare idGNBDUFunction",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$tmp.deleteRRMPolicyRatio-DU.url`\"/>\n <parameter name=\"outputPath\" value=\"tmp.deleteRRMPolicyRatio-DU.url\"/>\n <parameter name=\"target\" value=\"{idGNBDUFunction}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.GNBDUId`\"/>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 4219.750144958496,
+ "y": 5657.688269615173,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "98e30429.ae0468",
+ "type": "execute",
+ "name": "prepare idNRCellDu",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$tmp.deleteRRMPolicyRatio-DU.url`\"/>\n <parameter name=\"outputPath\" value=\"tmp.deleteRRMPolicyRatio-DU.url\"/>\n <parameter name=\"target\" value=\"{idNRCellDU}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.cellDULocalId`\"/>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 4192.25008392334,
+ "y": 5690.9382400512695,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "f903664e.df9698",
+ "type": "execute",
+ "name": "prepare RRMPolicyRatio id",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$tmp.deleteRRMPolicyRatio-DU.url`\"/>\n <parameter name=\"outputPath\" value=\"tmp.deleteRRMPolicyRatio-DU.url\"/>\n <parameter name=\"target\" value=\"{id}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.cellDURRMPolicyRatio_id`\"/>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 4215.688026428223,
+ "y": 5725.500771522522,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "312beaa2.664426",
+ "type": "execute",
+ "name": "prepare RRMPolicyMember id",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$tmp.deleteRRMPolicyRatio-DU.url`\"/>\n <parameter name=\"outputPath\" value=\"tmp.deleteRRMPolicyRatio-DU.url\"/>\n <parameter name=\"target\" value=\"{idx}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.cellDURRMPolicyMember_sNSSAI`\"/>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 4223.18758392334,
+ "y": 5761.250741004944,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "c01029e4.8b89b8",
+ "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/terminateRANSlice.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"Delete RRMPolicy URL - \"/>\n<parameter name=\"field2\" value=\"`$tmp.deleteRRMPolicyRatio-DU.url`\"/>\n<parameter name=\"field3\" value=\"RRMPolicyRatio id\"/>\n<parameter name=\"field4\" value=\"`$tmp.cellDURRMPolicyRatio_id`\"/>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 3586.035189628601,
+ "y": 5754.112832546234,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "ced0a425.87c638",
+ "type": "execute",
+ "name": "Terminate NRCellDU - RRMPolicyRatio",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"restapiUrl\" value=\"`$prop.controller.url + $tmp.deleteRRMPolicyRatio-DU.url`\"/>\n<parameter name=\"restapiUser\" value=\"`$prop.controller.user`\" />\n<parameter name=\"restapiPassword\" value=\"`$prop.controller.pwd`\"/>\n<parameter name=\"httpMethod\" value=\"DELETE\"/>\n<parameter name=\"responsePrefix\" value=\"delete-cellDU-RRMPolicyRatio-response\"/>\n<parameter name='contentType' value='application/json' /> \n<parameter name='format' value='json' />",
+ "comments": "",
+ "outputs": 1,
+ "x": 3673.312454223633,
+ "y": 5820.362391471863,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ [
+ "10d97d69.386523",
+ "762d7492.35129c"
+ ]
+ ]
+ },
+ {
+ "id": "98773d2d.d6f83",
+ "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": 228.0833339691162,
+ "y": 1691.3333678245544,
+ "z": "9f8808d.55bc2f8",
+ "wires": []
+ },
+ {
+ "id": "6058f66e.9e2f28",
+ "type": "for",
+ "name": "foreach PLMNInfo",
+ "xml": "<for index='id-ric' start='0' end='`$tmp.RICPLMNEntries`' >\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 913.7500686645508,
+ "y": 1183.0001211166382,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ [
+ "51189fb.776bd6"
+ ]
+ ]
+ },
+ {
+ "id": "51189fb.776bd6",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 1096.0000686645508,
+ "y": 1175.0000138282776,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ [
+ "8bea81d3.a0011",
+ "f46f76df.5b3c38"
+ ]
+ ]
+ },
+ {
+ "id": "7d4e8a30.923f74",
+ "type": "switchNode",
+ "name": "is NSSAI exists",
+ "xml": "<switch test='`$tmp.ric.sNSSAI == $tmp.sNSSAI`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1556.000114440918,
+ "y": 777.250075340271,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ [
+ "1d34e195.d87c6e"
+ ]
+ ]
+ },
+ {
+ "id": "aa5269a4.705a48",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 1599.500259399414,
+ "y": 681.2500514984131,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ [
+ "34a0cafb.039ed6",
+ "a0da22.7bfb95e",
+ "588f2308.79b34c",
+ "a0429884.cfd848",
+ "2f7ab827.e25118",
+ "918de726.1bb148",
+ "704ad19e.0b58b"
+ ]
+ ]
+ },
+ {
+ "id": "e3ee986a.003218",
+ "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/terminateRANSlice.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"PLMNInfo List before removal\"/>\n<parameter name=\"field2\" value=\"`$tmp.RICPLMNEntries`\"/>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 898.7500648498535,
+ "y": 1134.5000591278076,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "34a0cafb.039ed6",
+ "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/terminateRANSlice.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"sNSSAI\"/>\n<parameter name=\"field2\" value=\"`$tmp.ric.sNSSAIremoved`\" />\n<parameter name=\"field3\" value=\"nearRTRICId\"/>\n<parameter name=\"field4\" value=\"`$tmp.nearRTRICId`\" />\n<parameter name=\"field5\" value=\"endpoint URL\"/>\n<parameter name=\"field6\" value=\"`$tmp.configdb.getNearRTRICNSSAIRemoval.url`\" />\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1677.4546966552734,
+ "y": 920.0228490829468,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "1d34e195.d87c6e",
+ "type": "outcome",
+ "name": "True",
+ "xml": "<outcome value='true'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1525.0000762939453,
+ "y": 735.5000514984131,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ [
+ "aa5269a4.705a48"
+ ]
+ ]
+ },
+ {
+ "id": "2cdd4c0b.660a04",
+ "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/terminateRANSlice.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"plmninfolistlength in true \"/>\n<parameter name=\"field2\" value=\"`$tmp.pLMNInfoList_length`\"/>\n\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2511.399990081787,
+ "y": 516.1999959945679,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "f2db2f86.725a9",
+ "type": "switchNode",
+ "name": "check the action",
+ "xml": "<switch test='`$tmp.pLMNInfoList_length > 0`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2067.600082397461,
+ "y": 792.800060749054,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ [
+ "b05aecdd.0965e",
+ "1735c8ac.511f67"
+ ]
+ ]
+ },
+ {
+ "id": "b05aecdd.0965e",
+ "type": "outcome",
+ "name": "True",
+ "xml": "<outcome value='true'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2202.5998573303223,
+ "y": 663.8000245094299,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ [
+ "499e10b8.e6312"
+ ]
+ ]
+ },
+ {
+ "id": "1735c8ac.511f67",
+ "type": "outcome",
+ "name": "False",
+ "xml": "<outcome value='false'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2221.599884033203,
+ "y": 714.8000469207764,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ [
+ "ec537b4e.f6a2f8"
+ ]
+ ]
+ },
+ {
+ "id": "2bc354c.a3c8dac",
+ "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/terminateRANSlice.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"plmninfolistlength in false \"/>\n<parameter name=\"field2\" value=\"`$tmp.pLMNInfoList_length`\"/>\n\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2396.400375366211,
+ "y": 793.6001257896423,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "499e10b8.e6312",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 2372.599937438965,
+ "y": 656.0000739097595,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ [
+ "2cdd4c0b.660a04",
+ "9bb84509.704938"
+ ]
+ ]
+ },
+ {
+ "id": "ec537b4e.f6a2f8",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 2357.600051879883,
+ "y": 704.0000491142273,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ [
+ "2bc354c.a3c8dac"
+ ]
+ ]
+ },
+ {
+ "id": "bd730031.beff3",
+ "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/terminateRANSlice.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"`'getNFNSSIRIC-configdb-response.['+ $idy +'].gNBCUCPList['+ $idz +'].cellCUList['+ $idcu +'].pLMNInfoList_length'`\"/>\n<parameter name=\"field2\" value=\"`$tmp.pLMNInfoList_length`\"/>\n\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2067.599868774414,
+ "y": 626.5001158714294,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "bd2c41d8.5af7f",
+ "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/terminateRANSlice.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"cuup_plmninfolength \"/>\n<parameter name=\"field2\" value=\"`$tmp.pLMNInfoList`\"/>\n\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1140.8000411987305,
+ "y": 2223.8999786376953,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "598a18b4.512898",
+ "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/terminateRANSlice.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"RRMPolicyMembersList size\"/>\n<parameter name=\"field2\" value=\"`$tmp.NRCellCURRMPolicyMembersLength`\"/>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2514.999984741211,
+ "y": 2248.4999351501465,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "8125e8cb.8661d8",
+ "type": "execute",
+ "name": "Read RRMPolicy Member List Length",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'>\n\t<parameter name='outputPath' value='tmp.NRCellCURRMPolicyMembersLength' />\n\t<parameter name='source' value=\"`'get-rrmpolicyratio-response.attributes.RRMPolicyRatio['+ $idcu-rrm+'].attributes.rRMPolicyMemberList_length'`\" />\n ",
+ "comments": "",
+ "outputs": 1,
+ "x": 2565.000129699707,
+ "y": 2135.6999340057373,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "e9307863.569858",
+ "type": "execute",
+ "name": "RRMPolicyRatio id",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'>\n\t<parameter name='outputPath' value='tmp.RRMPolicyRatio_id' />\n\t<parameter name='source' value=\"`'get-rrmpolicyratio-response.attributes.RRMPolicyRatio['+ $idcu-rrm+'].id'`\" />\n ",
+ "comments": "",
+ "outputs": 1,
+ "x": 2509.400131225586,
+ "y": 2093.6999320983887,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "725d2a35.1ec024",
+ "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": 541.5000305175781,
+ "y": 804.2500467300415,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "10226f17.8ebf61",
+ "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": 570.70458984375,
+ "y": 838.795488357544,
+ "z": "9f8808d.55bc2f8",
+ "wires": []
+ },
+ {
+ "id": "8bea81d3.a0011",
+ "type": "execute",
+ "name": "read sNSSAIList Length",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'>\n\t<parameter name='outputPath' value='tmp.ric.sNSSAILength' />\n\t<parameter name='source' value=\"`'getNFNSSIRIC-configdb-response.['+ $idy +'].pLMNInfoList['+$id-ric+'].sNSSAI_length'`\" />\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1306.5002899169922,
+ "y": 1164.0000476837158,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "f46f76df.5b3c38",
+ "type": "for",
+ "name": "foreach sNSSAI",
+ "xml": "<for index='id-ric-snssai' start='0' end='`$tmp.ric.sNSSAILength`' >\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1293.5002899169922,
+ "y": 1206.0000476837158,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ [
+ "13a3fad9.38c055"
+ ]
+ ]
+ },
+ {
+ "id": "13a3fad9.38c055",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 1484.5002899169922,
+ "y": 1198.0000476837158,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ [
+ "f1d91e2c.39ea7",
+ "7d4e8a30.923f74"
+ ]
+ ]
+ },
+ {
+ "id": "f1d91e2c.39ea7",
+ "type": "execute",
+ "name": "read sNSSAI",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'>\n\t<parameter name='outputPath' value='tmp.ric.sNSSAI' />\n\t<parameter name='source' value=\"`'getNFNSSIRIC-configdb-response.['+ $idy +'].pLMNInfoList['+$id-ric+'].sNSSAI['+$id-ric-snssai+'].sNSSAI'`\" />\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1474.7502746582031,
+ "y": 1108.0000505447388,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "a0429884.cfd848",
+ "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/terminateRANSlice.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"Matching sNSSAI found in config DB\"/>\n<parameter name=\"field2\" value=\"`$tmp.ric.sNSSAI`\"/>\n<parameter name=\"field3\" value=\"sNSSAI List length before removal\"/>\n<parameter name=\"field4\" value=\"`$tmp.ric.sNSSAILength`\"/>",
+ "comments": "",
+ "outputs": 1,
+ "x": 1743.7501068115234,
+ "y": 652.2500057220459,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "10d38283.7f860d",
+ "type": "execute",
+ "name": "set list prefix",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='setPropertiesForRoot'>\n\n\t<parameter name='root' value=\"`'getNFNSSIRIC-configdb-response.['+idy+'].pLMNInfoList['+id-ric+'].sNSSAI'`\" />\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1801.5,
+ "y": 597.2500042915344,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "2c21c13a.34e51e",
+ "type": "set",
+ "name": "set",
+ "xml": "<set>\n<parameter name=\"`'getNFNSSIRIC-configdb-response.['+ $idy +'].pLMNInfoList['+$id-ric+'].sNSSAI['+$id-ric-snssai+'].sNSSAI'`\" value=\"\" />\n",
+ "comments": "",
+ "x": 1776.250015258789,
+ "y": 740.0001735687256,
+ "z": "9f8808d.55bc2f8",
+ "wires": []
+ },
+ {
+ "id": "2f7ab827.e25118",
+ "type": "execute",
+ "name": "read sNSSAI",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'>\n\t<parameter name='outputPath' value='tmp.ric.sNSSAIremoved' />\n\t<parameter name='source' value=\"`'getNFNSSIRIC-configdb-response.['+ $idy +'].pLMNInfoList['+$id-ric+'].sNSSAI['+$id-ric-snssai+'].sNSSAI'`\" />\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1759.249984741211,
+ "y": 784.9999923706055,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "918de726.1bb148",
+ "type": "execute",
+ "name": "generate removesNSSAIFromRIC URL",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$prop.configdb.url + $prop.restapi.configdb.removenSSAINearRTRIC`\"/>\n <parameter name=\"outputPath\" value=\"tmp.configdb.getNearRTRICNSSAIRemoval.url\"/>\n <parameter name=\"target\" value=\"{nearRTRICId}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.nearRTRICId`\"/>",
+ "comments": "",
+ "outputs": 1,
+ "x": 1824.2499771118164,
+ "y": 856.2501149177551,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "704ad19e.0b58b",
+ "type": "execute",
+ "name": "prepare sNSSAI",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$tmp.configdb.getNearRTRICNSSAIRemoval.url`\"/>\n <parameter name=\"outputPath\" value=\"tmp.configdb.getNearRTRICNSSAIRemoval.url\"/>\n <parameter name=\"target\" value=\"{sNSSAI}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.ric.sNSSAIremoved`\"/>",
+ "comments": "",
+ "outputs": 1,
+ "x": 1751.2500076293945,
+ "y": 892.7500548362732,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "198f83f1.77fbdc",
+ "type": "execute",
+ "name": "Read RRMPolicy Member List Length",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'>\n\t<parameter name='outputPath' value='tmp.CUUPRRMPolicyMembersLength' />\n\t<parameter name='source' value=\"`'get-rrmpolicyratio-cuup-response.attributes.RRMPolicyRatio['+ $idcuup-rrm+'].attributes.rRMPolicyMemberList_length'`\" />\n ",
+ "comments": "",
+ "outputs": 1,
+ "x": 2055.0002517700195,
+ "y": 3518.199954032898,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "ee9e0cf.4a229f",
+ "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/terminateRANSlice.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"CUUP - RRMPolicyMembersList size\"/>\n<parameter name=\"field2\" value=\"`$tmp.CUUPRRMPolicyMembersLength`\"/>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2040.0001754760742,
+ "y": 3566.2000522613525,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "6c3d34f7.4a7bbc",
+ "type": "execute",
+ "name": "RRMPolicyRatio id",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'>\n\t<parameter name='outputPath' value='tmp.CUUPRRMPolicyRatio_id' />\n\t<parameter name='source' value=\"`'get-rrmpolicyratio-cuup-response.attributes.RRMPolicyRatio['+ $idcuup-rrm+'].id'`\" />\n ",
+ "comments": "",
+ "outputs": 1,
+ "x": 2043.799934387207,
+ "y": 3477.1999530792236,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "a4f4cb8c.9b68b8",
+ "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/terminateRANSlice.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"Delete RRMPolicy URL first - \"/>\n<parameter name=\"field2\" value=\"`$tmp.deleteRRMPolicyRatio-CUUP.url`\"/>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2487.0001335144043,
+ "y": 3480.899953842163,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "55d63d3a.e975d4",
+ "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/terminateRANSlice.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"before setting url\" />\n<parameter name=\"field2\" value=\"ransimnot mounted\" />\n\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 3202.199996948242,
+ "y": 3153.300099849701,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "1662cdcf.6a2522",
+ "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/terminateRANSlice.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"Delete RRMPolicy URL after setting - \"/>\n<parameter name=\"field2\" value=\"`$tmp.deleteRRMPolicyRatio-CUUP.url`\"/>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 3235.199951171875,
+ "y": 3266.300052165985,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "9bfca7b0.f4f088",
+ "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/terminateRANSlice.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"Success\" />\n<parameter name=\"field2\" value=\"Tocheck if ransim mounted\" />\n\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2775.60009765625,
+ "y": 3176.10010099411,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "f1c3a8f8.c94528",
+ "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/terminateRANSlice.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"Failure\" />\n<parameter name=\"field2\" value=\"Tocheck if ransim mounted\" />\n\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2991.00004196167,
+ "y": 3404.1001505851746,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "d2de6771.efdbc8",
+ "type": "execute",
+ "name": "generate terminate PLMNInfoListEntry CUUP URL for configdb",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$prop.restapi.configdb.removenSSAICUUP`\"/>\n <parameter name=\"outputPath\" value=\"tmp.deletePLMNInfo-CUUP.configdb.url\"/>\n <parameter name=\"target\" value=\"{gnbCUUPId}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.idGNBCUUPFunction`\"/>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1988.0000305175781,
+ "y": 2983.8000440597534,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "93144760.801e58",
+ "type": "execute",
+ "name": "prepare sNSSAI",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$tmp.deletePLMNInfo-CUUP.configdb.url`\"/>\n <parameter name=\"outputPath\" value=\"tmp.deletePLMNInfo-CUUP.configdb.url\"/>\n <parameter name=\"target\" value=\"{sNSSAI}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.sNSSAI`\"/>",
+ "comments": "",
+ "outputs": 1,
+ "x": 1831.0000228881836,
+ "y": 3023.200240135193,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "79c43870.a2ad08",
+ "type": "execute",
+ "name": "Update nearRT RIC Details in ConfigDB",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"restapiUrl\" value=\"`$prop.configdb.url + $tmp.deletePLMNInfo-CUUP.configdb.url`\"/>\n<parameter name=\"httpMethod\" value=\"DELETE\"/>\n<parameter name=\"responsePrefix\" value=\"delete-CUUP-plmninfo-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": 1894.000015258789,
+ "y": 3071.8000450134277,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ [
+ "681ef506.35dfcc",
+ "3d983c59.485b74"
+ ]
+ ]
+ },
+ {
+ "id": "681ef506.35dfcc",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2152.4000282287598,
+ "y": 3030.200044631958,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ [
+ "25b3c6e1.44971a"
+ ]
+ ]
+ },
+ {
+ "id": "3d983c59.485b74",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2179.4000244140625,
+ "y": 3108.2000455856323,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ [
+ "fe907bcd.788a58"
+ ]
+ ]
+ },
+ {
+ "id": "25b3c6e1.44971a",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 2347.400032043457,
+ "y": 3023.200044631958,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ [
+ "5f2ce104.fe78c",
+ "9d4aca47.87a8b8"
+ ]
+ ]
+ },
+ {
+ "id": "fe907bcd.788a58",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 2353.400032043457,
+ "y": 3101.200044631958,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ [
+ "40489737.9646c8"
+ ]
+ ]
+ },
+ {
+ "id": "40489737.9646c8",
+ "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/terminateRANSlice.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"Successfully removed - gNBCUUP PLMNInfo Entry from configdb\"/>",
+ "comments": "",
+ "outputs": 1,
+ "x": 2532.4000358581543,
+ "y": 3120.2000455856323,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "9d4aca47.87a8b8",
+ "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 removing CUUP PLMNInfo. Aborting RPC executiopn'/>",
+ "comments": "",
+ "x": 2578.6000366210938,
+ "y": 3047.200044631958,
+ "z": "9f8808d.55bc2f8",
+ "wires": []
+ },
+ {
+ "id": "5f2ce104.fe78c",
+ "type": "set",
+ "name": "set",
+ "xml": "<set>\n<parameter name='error-code' value='500'/>\n<parameter name='error-message' value='Error removing CUUP PLMNInfoList. Aborting RPC executiopn'/>",
+ "comments": "",
+ "x": 2579.6000366210938,
+ "y": 3009.2000436782837,
+ "z": "9f8808d.55bc2f8",
+ "wires": []
+ },
+ {
+ "id": "9a96a4b2.4746f8",
+ "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.sNssaiListLength' />\n\t<parameter name='source' value=\"`'getNFNSSIRIC-configdb-response.['+ $idy +'].gNBCUUPList['+ $id-cuup +'].pLMNInfoList['+ $id-plmn +'].sNSSAI_length'`\" />",
+ "comments": "",
+ "outputs": 1,
+ "x": 1300.9999923706055,
+ "y": 2290.599838256836,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "ea26dc5f.4fcf4",
+ "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/terminateRANSlice.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"cuup_plmninfolength_nssailength \"/>\n<parameter name=\"field2\" value=\"`$tmp.sNssaiListLength`\"/>\n\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1298.0000686645508,
+ "y": 2343.800033569336,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "9ee2eddd.0677b",
+ "type": "for",
+ "name": "foreach snssai",
+ "xml": "<for index='id-snssai' start='0' end='`$tmp.sNssaiListLength`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1486.0000915527344,
+ "y": 2505.4004287719727,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ [
+ "aed3b1b4.80a13"
+ ]
+ ]
+ },
+ {
+ "id": "aed3b1b4.80a13",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 1232.0000915527344,
+ "y": 2590.400478363037,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ [
+ "d10c9390.82cd8",
+ "63fe6671.297f68",
+ "484a93f6.28344c"
+ ]
+ ]
+ },
+ {
+ "id": "e44d33a9.14a2b",
+ "type": "switchNode",
+ "name": "check the action",
+ "xml": "<switch test='`$tmp.sNssaiListLength > 0`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1233.9999923706055,
+ "y": 2434.200428009033,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ [
+ "5703963b.e35f08",
+ "bea8c01c.0dcfb"
+ ]
+ ]
+ },
+ {
+ "id": "5703963b.e35f08",
+ "type": "outcome",
+ "name": "True",
+ "xml": "<outcome value='true'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1407.9999961853027,
+ "y": 2380.4000358581543,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ [
+ "69570102.8ef0b"
+ ]
+ ]
+ },
+ {
+ "id": "bea8c01c.0dcfb",
+ "type": "outcome",
+ "name": "False",
+ "xml": "<outcome value='false'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1402.799997329712,
+ "y": 2449.599841117859,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ [
+ "be68ead3.701768"
+ ]
+ ]
+ },
+ {
+ "id": "69570102.8ef0b",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 1505.9999980926514,
+ "y": 2311.0000343322754,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ [
+ "9ee2eddd.0677b",
+ "8d0d6da5.340fb"
+ ]
+ ]
+ },
+ {
+ "id": "be68ead3.701768",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 1548.0000953674316,
+ "y": 2451.000036239624,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ [
+ "e105266c.9446e8"
+ ]
+ ]
+ },
+ {
+ "id": "e105266c.9446e8",
+ "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/terminateRANSlice.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"plmninfolistnssailength in false \"/>\n<parameter name=\"field2\" value=\"`$tmp.sNssaiListLength`\"/>\n\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1625.599998474121,
+ "y": 2396.2000370025635,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "8d0d6da5.340fb",
+ "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/terminateRANSlice.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"plmninfolistnssailength in true \"/>\n<parameter name=\"field2\" value=\"`$tmp.sNssaiListLength`\"/>\n\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1653.400074005127,
+ "y": 2290.200033187866,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "f576c333.0806f",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 1782.2000274658203,
+ "y": 2667.4002838134766,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ [
+ "de312c73.46e3f",
+ "4b2fff65.a27e4",
+ "cb4c199b.3e0788",
+ "e57630c1.8b205",
+ "9155057f.4d20f8",
+ "8bf3be00.15712",
+ "d2de6771.efdbc8",
+ "93144760.801e58",
+ "79c43870.a2ad08",
+ "b24ac4f0.5bb718"
+ ]
+ ]
+ },
+ {
+ "id": "6f4bd7b5.908f38",
+ "type": "outcome",
+ "name": "False",
+ "xml": "<outcome value='false'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1600,
+ "y": 2720.800040245056,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ [
+ "5e543a4c.27e614"
+ ]
+ ]
+ },
+ {
+ "id": "5e543a4c.27e614",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 1750,
+ "y": 2719.800039291382,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ [
+ "94199b4a.78c2b8"
+ ]
+ ]
+ },
+ {
+ "id": "94199b4a.78c2b8",
+ "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/terminateRANSlice.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"nssaimatch in false \"/>\n<parameter name=\"field2\" value=\"`nssai deletion does not takes place`\"/>\n\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1743.0000038146973,
+ "y": 2785.800039291382,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "b24ac4f0.5bb718",
+ "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/terminateRANSlice.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"nssaimatch in True \"/>\n<parameter name=\"field2\" value=\"`Proceeding for nssai deletion`\"/>\n\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1953.0000267028809,
+ "y": 2629.8000869750977,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "bfb3d534.017f38",
+ "type": "execute",
+ "name": "Read RRMPolicyResourcetype",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'>\n\t<parameter name='outputPath' value='tmp.CUUPRRMPolicyMembersResourceType' />\n\t<parameter name='source' value=\"`'get-rrmpolicyratio-cuup-response.attributes.RRMPolicyRatio['+ $idcuup-rrm+'].attributes.resourceType'`\" />\n ",
+ "comments": "",
+ "outputs": 1,
+ "x": 2082.199981689453,
+ "y": 3747.3999576568604,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "7cd330e2.d77cb",
+ "type": "execute",
+ "name": "generate terminate rrmpolicy CUUP URL for configdb",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$prop.restapi.configdb.removenSSAICUUPRRMPOLICY`\"/>\n <parameter name=\"outputPath\" value=\"tmp.deleteRRMPolicy-CUUP.configdb.url\"/>\n <parameter name=\"target\" value=\"{gnbCUUPId}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.idGNBCUUPFunction`\"/>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2143.600128173828,
+ "y": 3788.3999576568604,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "114043a5.304f6c",
+ "type": "execute",
+ "name": "prepare sNSSAI",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$tmp.deleteRRMPolicy-CUUP.configdb.url`\"/>\n <parameter name=\"outputPath\" value=\"tmp.deleteRRMPolicy-CUUP.configdb.url\"/>\n <parameter name=\"target\" value=\"{sNSSAI}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.sNSSAI`\"/>",
+ "comments": "",
+ "outputs": 1,
+ "x": 2017.6000061035156,
+ "y": 3879.3999586105347,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "fae94f2e.f92bf",
+ "type": "execute",
+ "name": "prepare resourcetype",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$tmp.deleteRRMPolicy-CUUP.configdb.url`\"/>\n <parameter name=\"outputPath\" value=\"tmp.deleteRRMPolicy-CUUP.configdb.url\"/>\n <parameter name=\"target\" value=\"{resourcetype}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.CUUPRRMPolicyMembersResourceType`\"/>",
+ "comments": "",
+ "outputs": 1,
+ "x": 2016.5999755859375,
+ "y": 3838.39990234375,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "a805d7.02515a28",
+ "type": "execute",
+ "name": "Update nearRT RIC Details in ConfigDB",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"restapiUrl\" value=\"`$prop.configdb.url + $tmp.deleteRRMPolicy-CUUP.configdb.url`\"/>\n<parameter name=\"httpMethod\" value=\"DELETE\"/>\n<parameter name=\"responsePrefix\" value=\"delete-CUUP-rrmpolicy-configdb-response\"/>\n<parameter name='contentType' value='application/json' /> \n<parameter name='format' value='json' />\n<parameter name='accept' value='application/json' />\n<parameter name=\"convertResponse\" value=\"true\"/>",
+ "comments": "",
+ "outputs": 1,
+ "x": 2071.600128173828,
+ "y": 3937.3999605178833,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ [
+ "4a33f761.9b4d78",
+ "ff522f6b.949ed"
+ ]
+ ]
+ },
+ {
+ "id": "4a33f761.9b4d78",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2317.60009765625,
+ "y": 3878.39990234375,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ [
+ "90c6de4b.bdf2b"
+ ]
+ ]
+ },
+ {
+ "id": "ff522f6b.949ed",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2324.600128173828,
+ "y": 3950.6001567840576,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ [
+ "70cdd3b9.9e906c"
+ ]
+ ]
+ },
+ {
+ "id": "90c6de4b.bdf2b",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 2486.60009765625,
+ "y": 3877.39990234375,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ [
+ "b741a079.6220d",
+ "1b0b8aea.238cb5"
+ ]
+ ]
+ },
+ {
+ "id": "1b0b8aea.238cb5",
+ "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 removing CUUP PLMNInfo. Aborting RPC executiopn'/>",
+ "comments": "",
+ "x": 2675.6001358032227,
+ "y": 3880.399959564209,
+ "z": "9f8808d.55bc2f8",
+ "wires": []
+ },
+ {
+ "id": "b741a079.6220d",
+ "type": "set",
+ "name": "set",
+ "xml": "<set>\n<parameter name='error-code' value='500'/>\n<parameter name='error-message' value='Error removing CUUP PLMNInfoList. Aborting RPC executiopn'/>",
+ "comments": "",
+ "x": 2666.60009765625,
+ "y": 3830.3999013900757,
+ "z": "9f8808d.55bc2f8",
+ "wires": []
+ },
+ {
+ "id": "70cdd3b9.9e906c",
+ "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/terminateRANSlice.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"Successfully removed - gNBCUUP rrmpolicy Entry from configdb\"/>",
+ "comments": "",
+ "outputs": 1,
+ "x": 2567.60009765625,
+ "y": 3962.39990234375,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "b9d032fc.fe759",
+ "type": "block",
+ "name": "block : gNBDU",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 1985.1999778747559,
+ "y": 4296.2002601623535,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ [
+ "40e94d3c.6122a4",
+ "d40620ac.f176c",
+ "57c3b73e.64a1f8",
+ "4deee348.ac344c"
+ ]
+ ]
+ },
+ {
+ "id": "57c3b73e.64a1f8",
+ "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/terminateRANSlice.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"Iterating \"/>\n<parameter name=\"field2\" value=\"`CellDU`\"/>\n\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2104.2000312805176,
+ "y": 4167.200061798096,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "4deee348.ac344c",
+ "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/terminateRANSlice.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"plmninfolengthcelldu \"/>\n<parameter name=\"field2\" value=\"`$tmp.DUpLMNInfoList_length`\"/>\n\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2169.2000312805176,
+ "y": 4294.200063705444,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "c29779b1.b1aa18",
+ "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/terminateRANSlice.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"LocalId \"/>\n<parameter name=\"field2\" value=\"`$tmp.cellDULocalId`\"/>\n\n\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 3060.39990234375,
+ "y": 4660.2001953125,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "5ba55daa.5d5c44",
+ "type": "execute",
+ "name": "RRMPolicyRatio id",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'>\n\t<parameter name='outputPath' value='tmp.cellDURRMPolicyRatio_id' />\n\t<parameter name='source' value=\"`'get-rrmpolicyratio-du-response.attributes.RRMPolicyRatio['+ $iddu-rrm+'].id'`\" />\n ",
+ "comments": "",
+ "outputs": 1,
+ "x": 3583.199951171875,
+ "y": 5534.1998863220215,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "e4e6c6fb.c47608",
+ "type": "set",
+ "name": "RRMPolicyRatio id",
+ "xml": "<set>\n<parameter name='tmp.cellDURRMPolicyRatio_id' value=\"`'$get-rrmpolicyratio-du-response.attributes.RRMPolicyRatio['+ $iddu-rrm+'].id'`\" />",
+ "comments": "",
+ "x": 3952.2503509521484,
+ "y": 5525.750373840332,
+ "z": "9f8808d.55bc2f8",
+ "wires": []
+ },
+ {
+ "id": "b30f0018.e67aa",
+ "type": "execute",
+ "name": "Read RRMPolicy Member List Length",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'>\n\t<parameter name='outputPath' value='tmp.DURRMPolicyMembersLength' />\n\t<parameter name='source' value=\"`'get-rrmpolicyratio-du-response.attributes.RRMPolicyRatio['+ $iddu-rrm+'].attributes.rRMPolicyMemberList_length'`\" />\n ",
+ "comments": "",
+ "outputs": 1,
+ "x": 3645.999954223633,
+ "y": 5575.1998863220215,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "f4262947.ab62c8",
+ "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/terminateRANSlice.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"RRMPOLICYmemberslength\"/>\n<parameter name=\"field2\" value=\"`$tmp.DURRMPolicyMembersLength`\"/>\n\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 3673.7999572753906,
+ "y": 5622.800277709961,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "2e2fb2d2.df408e",
+ "type": "execute",
+ "name": "generate terminate plmn GNBDU URL for configdb",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$prop.restapi.configdb.removenSSAINRCellDU`\"/>\n <parameter name=\"outputPath\" value=\"tmp.deleteplmninfo-GNBDU.configdb.url\"/>\n <parameter name=\"target\" value=\"{idNRCellDU}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.cellDULocalId`\"/>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 3111.39990234375,
+ "y": 5026.39990234375,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "ca1dda20.5e3b98",
+ "type": "execute",
+ "name": "prepare sNSSAI",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$tmp.deleteplmninfo-GNBDU.configdb.url`\"/>\n <parameter name=\"outputPath\" value=\"tmp.deleteplmninfo-GNBDU.configdb.url\"/>\n <parameter name=\"target\" value=\"{sNSSAI}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.sNSSAI`\"/>",
+ "comments": "",
+ "outputs": 1,
+ "x": 3006.4000930786133,
+ "y": 5088.400075912476,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "50278368.db0bdc",
+ "type": "execute",
+ "name": "Update nearRT RIC Details in ConfigDB",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"restapiUrl\" value=\"`$prop.configdb.url + $tmp.deleteplmninfo-GNBDU.configdb.url`\"/>\n<parameter name=\"httpMethod\" value=\"DELETE\"/>\n<parameter name=\"responsePrefix\" value=\"delete-GNBDU-plmninfo-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": 3043.4002838134766,
+ "y": 5141.400075912476,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ [
+ "298a8168.379fbe",
+ "3b081686.0f488a"
+ ]
+ ]
+ },
+ {
+ "id": "298a8168.379fbe",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 3285.399871826172,
+ "y": 5116.39984703064,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ [
+ "208e0a64.f89b86"
+ ]
+ ]
+ },
+ {
+ "id": "3b081686.0f488a",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 3292.39990234375,
+ "y": 5188.600101470947,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ [
+ "f293c3d.3ba024"
+ ]
+ ]
+ },
+ {
+ "id": "208e0a64.f89b86",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 3454.399871826172,
+ "y": 5115.39984703064,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ [
+ "395b7663.cb608a",
+ "28572668.7a176a"
+ ]
+ ]
+ },
+ {
+ "id": "28572668.7a176a",
+ "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 removing CUUP PLMNInfo. Aborting RPC executiopn'/>",
+ "comments": "",
+ "x": 3643.3999099731445,
+ "y": 5118.399904251099,
+ "z": "9f8808d.55bc2f8",
+ "wires": []
+ },
+ {
+ "id": "395b7663.cb608a",
+ "type": "set",
+ "name": "set",
+ "xml": "<set>\n<parameter name='error-code' value='500'/>\n<parameter name='error-message' value='Error removing CUUP PLMNInfoList. Aborting RPC executiopn'/>",
+ "comments": "",
+ "x": 3634.399871826172,
+ "y": 5068.399846076965,
+ "z": "9f8808d.55bc2f8",
+ "wires": []
+ },
+ {
+ "id": "f293c3d.3ba024",
+ "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/terminateRANSlice.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"Successfully removed - gNBDU pmmninfo Entry from configdb\"/>",
+ "comments": "",
+ "outputs": 1,
+ "x": 3515.4001502990723,
+ "y": 5174.4001750946045,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "a9a5d540.0562d8",
+ "type": "execute",
+ "name": "Read RRMPolicyResourcetype",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'>\n\t<parameter name='outputPath' value='tmp.DURRMPolicyMembersResourceType' />\n\t<parameter name='source' value=\"`'get-rrmpolicyratio-du-response.attributes.RRMPolicyRatio['+ $iddu-rrm+'].attributes.resourceType'`\" />\n ",
+ "comments": "",
+ "outputs": 1,
+ "x": 3545.400146484375,
+ "y": 5908.600184440613,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "4de47bd7.839ef4",
+ "type": "execute",
+ "name": "generate terminate rrmpolicy CUUP URL for configdb",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$prop.restapi.configdb.removenSSAICUUPRRMPOLICY`\"/>\n <parameter name=\"outputPath\" value=\"tmp.deleteRRMPolicy-CUUP.configdb.url\"/>\n <parameter name=\"target\" value=\"{gnbCUUPId}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.cellDULocalId`\"/>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 3603.800148010254,
+ "y": 5951.600184440613,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "98e6e0f9.b5916",
+ "type": "execute",
+ "name": "prepare sNSSAI",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$tmp.deleteRRMPolicy-CUUP.configdb.url`\"/>\n <parameter name=\"outputPath\" value=\"tmp.deleteRRMPolicy-CUUP.configdb.url\"/>\n <parameter name=\"target\" value=\"{sNSSAI}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.sNSSAI`\"/>",
+ "comments": "",
+ "outputs": 1,
+ "x": 3498.800148010254,
+ "y": 6036.600185394287,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "c87a723b.288cf",
+ "type": "execute",
+ "name": "prepare resourcetype",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$tmp.deleteRRMPolicy-CUUP.configdb.url`\"/>\n <parameter name=\"outputPath\" value=\"tmp.deleteRRMPolicy-CUUP.configdb.url\"/>\n <parameter name=\"target\" value=\"{resourcetype}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.DURRMPolicyMembersResourceType`\"/>",
+ "comments": "",
+ "outputs": 1,
+ "x": 3508.800148010254,
+ "y": 5991.600185394287,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "1b9e6496.ea1deb",
+ "type": "execute",
+ "name": "Update nearRT RIC Details in ConfigDB",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"restapiUrl\" value=\"`$prop.configdb.url + $tmp.deleteRRMPolicy-CUUP.configdb.url`\"/>\n<parameter name=\"httpMethod\" value=\"DELETE\"/>\n<parameter name=\"responsePrefix\" value=\"delete-DU-rrmpolicy-configdb-response\"/>\n<parameter name='contentType' value='application/json' /> \n<parameter name='format' value='json' />\n<parameter name='accept' value='application/json' />\n<parameter name=\"convertResponse\" value=\"true\"/>",
+ "comments": "",
+ "outputs": 1,
+ "x": 3559.800148010254,
+ "y": 6079.600186824799,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ [
+ "fee8f85a.1a2508",
+ "cb6cfa5c.68bb28"
+ ]
+ ]
+ },
+ {
+ "id": "fee8f85a.1a2508",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 3814.800151824951,
+ "y": 6037.600185394287,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ [
+ "bf1e2915.754598"
+ ]
+ ]
+ },
+ {
+ "id": "cb6cfa5c.68bb28",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 3827.800151824951,
+ "y": 6085.800578117371,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ [
+ "47001e67.9eee5"
+ ]
+ ]
+ },
+ {
+ "id": "bf1e2915.754598",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 3975.8001556396484,
+ "y": 6044.600185394287,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "47001e67.9eee5",
+ "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/terminateRANSlice.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"Successfully removed - gNBDU rrmpolicy Entry from configdb\"/>",
+ "comments": "",
+ "outputs": 1,
+ "x": 3984.8001556396484,
+ "y": 6086.600187301636,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "6321d537.1c1adc",
+ "type": "execute",
+ "name": "Read RRMPolicyResourcetype",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'>\n\t<parameter name='outputPath' value='tmp.CURRMPolicyMembersResourceType' />\n\t<parameter name='source' value=\"`'get-rrmpolicyratio-response.attributes.RRMPolicyRatio['+ $idcu-rrm+'].attributes.resourceType'`\" />\n ",
+ "comments": "",
+ "outputs": 1,
+ "x": 2536.199951171875,
+ "y": 2456.60009765625,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "7dd69cb4.70b534",
+ "type": "execute",
+ "name": "generate terminate rrmpolicy CUUP URL for configdb",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$prop.restapi.configdb.removenSSAICUUPRRMPOLICY`\"/>\n <parameter name=\"outputPath\" value=\"tmp.deleteRRMPolicy-CUUP.configdb.url\"/>\n <parameter name=\"target\" value=\"{gnbCUUPId}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.cellCULocalId`\"/>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2594.599952697754,
+ "y": 2499.60009765625,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "558bf697.a3d4e8",
+ "type": "execute",
+ "name": "prepare sNSSAI",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$tmp.deleteRRMPolicy-CUUP.configdb.url`\"/>\n <parameter name=\"outputPath\" value=\"tmp.deleteRRMPolicy-CUUP.configdb.url\"/>\n <parameter name=\"target\" value=\"{sNSSAI}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.sNSSAI`\"/>",
+ "comments": "",
+ "outputs": 1,
+ "x": 2489.599952697754,
+ "y": 2584.6000986099243,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "5963b2e3.24363c",
+ "type": "execute",
+ "name": "prepare resourcetype",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$tmp.deleteRRMPolicy-CUUP.configdb.url`\"/>\n <parameter name=\"outputPath\" value=\"tmp.deleteRRMPolicy-CUUP.configdb.url\"/>\n <parameter name=\"target\" value=\"{resourcetype}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.CURRMPolicyMembersResourceType`\"/>",
+ "comments": "",
+ "outputs": 1,
+ "x": 2499.599952697754,
+ "y": 2539.6000986099243,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "b3960d7f.4908c",
+ "type": "execute",
+ "name": "Update nearRT RIC Details in ConfigDB",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"restapiUrl\" value=\"`$prop.configdb.url + $tmp.deleteRRMPolicy-CUUP.configdb.url`\"/>\n<parameter name=\"httpMethod\" value=\"DELETE\"/>\n<parameter name=\"responsePrefix\" value=\"delete-CU-rrmpolicy-configdb-response\"/>\n<parameter name='contentType' value='application/json' /> \n<parameter name='format' value='json' />\n<parameter name='accept' value='application/json' />\n<parameter name=\"convertResponse\" value=\"true\"/>",
+ "comments": "",
+ "outputs": 1,
+ "x": 2550.599952697754,
+ "y": 2627.600100040436,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ [
+ "c23dfa51.ce2338",
+ "88b47df2.b6aff"
+ ]
+ ]
+ },
+ {
+ "id": "c23dfa51.ce2338",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2805.599956512451,
+ "y": 2585.6000986099243,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ [
+ "cf99e8d.d37ef18"
+ ]
+ ]
+ },
+ {
+ "id": "88b47df2.b6aff",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2818.599956512451,
+ "y": 2633.800491333008,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ [
+ "9fe58a37.b07148"
+ ]
+ ]
+ },
+ {
+ "id": "cf99e8d.d37ef18",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 2966.5999603271484,
+ "y": 2592.6000986099243,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "9fe58a37.b07148",
+ "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/terminateRANSlice.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"Successfully removed - gNBCU rrmpolicy Entry from configdb\"/>",
+ "comments": "",
+ "outputs": 1,
+ "x": 2975.5999603271484,
+ "y": 2634.600100517273,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "674b7fe9.46fa7",
+ "type": "execute",
+ "name": "generate terminate PLMNInfoListEntry CellCU URL for configdb",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$prop.restapi.configdb.removenSSAINRCellCU`\"/>\n <parameter name=\"outputPath\" value=\"tmp.deletePLMNInfo-CellCU.configdb.url\"/>\n <parameter name=\"target\" value=\"{idNRCellCU}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.cellCULocalId`\"/>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2293.800048828125,
+ "y": 1487.5999755859375,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "28c4cba1.abbf94",
+ "type": "execute",
+ "name": "prepare sNSSAI",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$tmp.deletePLMNInfo-CellCU.configdb.url`\"/>\n <parameter name=\"outputPath\" value=\"tmp.deletePLMNInfo-CellCU.configdb.url\"/>\n <parameter name=\"target\" value=\"{sNSSAI}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.sNSSAI`\"/>",
+ "comments": "",
+ "outputs": 1,
+ "x": 2136.8000411987305,
+ "y": 1527.000171661377,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "e2bf4b5a.7ef268",
+ "type": "execute",
+ "name": "Update nearRT RIC Details in ConfigDB",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"restapiUrl\" value=\"`$prop.configdb.url + $tmp.deletePLMNInfo-CellCU.configdb.url`\"/>\n<parameter name=\"httpMethod\" value=\"DELETE\"/>\n<parameter name=\"responsePrefix\" value=\"delete-CELLCU-plmninfo-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": 2199.800033569336,
+ "y": 1575.5999765396118,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ [
+ "a056981.f313868",
+ "c4838e58.af2e2"
+ ]
+ ]
+ },
+ {
+ "id": "a056981.f313868",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2458.2000465393066,
+ "y": 1533.999976158142,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ [
+ "729d4f78.c5025"
+ ]
+ ]
+ },
+ {
+ "id": "c4838e58.af2e2",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2485.2000427246094,
+ "y": 1611.9999771118164,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ [
+ "aa482839.031be8"
+ ]
+ ]
+ },
+ {
+ "id": "729d4f78.c5025",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 2653.200050354004,
+ "y": 1526.999976158142,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ [
+ "4e5bf54.b88e70c",
+ "8b61600f.5b1a3"
+ ]
+ ]
+ },
+ {
+ "id": "aa482839.031be8",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 2659.200050354004,
+ "y": 1604.999976158142,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ [
+ "265a33fd.f817bc"
+ ]
+ ]
+ },
+ {
+ "id": "265a33fd.f817bc",
+ "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/terminateRANSlice.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"Successfully removed - CEllCU PLMNInfo Entry from configdb\"/>",
+ "comments": "",
+ "outputs": 1,
+ "x": 2838.200054168701,
+ "y": 1623.9999771118164,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "8b61600f.5b1a3",
+ "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 removing CUUP PLMNInfo. Aborting RPC executiopn'/>",
+ "comments": "",
+ "x": 2884.4000549316406,
+ "y": 1550.999976158142,
+ "z": "9f8808d.55bc2f8",
+ "wires": []
+ },
+ {
+ "id": "4e5bf54.b88e70c",
+ "type": "set",
+ "name": "set",
+ "xml": "<set>\n<parameter name='error-code' value='500'/>\n<parameter name='error-message' value='Error removing CUUP PLMNInfoList. Aborting RPC executiopn'/>",
+ "comments": "",
+ "x": 2885.4000549316406,
+ "y": 1512.9999752044678,
+ "z": "9f8808d.55bc2f8",
+ "wires": []
+ },
+ {
+ "id": "1a14cf2c.069a91",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 2331.3999366760254,
+ "y": 4110.000060081482,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ [
+ "6ef50ae0.99f6b4",
+ "2e5e54b6.50f7cc",
+ "6aee5b68.e95934"
+ ]
+ ]
+ },
+ {
+ "id": "6ef50ae0.99f6b4",
+ "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.sNssaiListLengthDU' />\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": 2582.14990234375,
+ "y": 4042.3496067523956,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "2e5e54b6.50f7cc",
+ "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/terminateRANSlice.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"DU_plmninfolength_nssailength \"/>\n<parameter name=\"field2\" value=\"`$tmp.sNssaiListLengthDU`\"/>\n\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2579.1500358581543,
+ "y": 4092.550060272217,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "1c6ba8ba.6541b7",
+ "type": "for",
+ "name": "foreach snssai",
+ "xml": "<for index='id-dusnssai' start='0' end='`$tmp.sNssaiListLengthDU`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2767.150001525879,
+ "y": 4257.150197267532,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ [
+ "47d28d8e.7e6534"
+ ]
+ ]
+ },
+ {
+ "id": "47d28d8e.7e6534",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 2513.150001525879,
+ "y": 4342.150246858597,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ [
+ "ff36d37.28a253",
+ "bd21b7.8f467e48",
+ "e8d9adcf.46f42"
+ ]
+ ]
+ },
+ {
+ "id": "6aee5b68.e95934",
+ "type": "switchNode",
+ "name": "check the action",
+ "xml": "<switch test='`$tmp.sNssaiListLengthDU > 0`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2515.14990234375,
+ "y": 4185.950196504593,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ [
+ "96de2b78.2ef7f8",
+ "710d8b1b.09fce4"
+ ]
+ ]
+ },
+ {
+ "id": "96de2b78.2ef7f8",
+ "type": "outcome",
+ "name": "True",
+ "xml": "<outcome value='true'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2689.1499061584473,
+ "y": 4132.149804353714,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ [
+ "8f9b2ad1.025768"
+ ]
+ ]
+ },
+ {
+ "id": "710d8b1b.09fce4",
+ "type": "outcome",
+ "name": "False",
+ "xml": "<outcome value='false'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2683.9499073028564,
+ "y": 4201.349609613419,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ [
+ "76adef10.ffb57"
+ ]
+ ]
+ },
+ {
+ "id": "8f9b2ad1.025768",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 2787.149908065796,
+ "y": 4062.749802827835,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ [
+ "1c6ba8ba.6541b7",
+ "50212c66.98be54"
+ ]
+ ]
+ },
+ {
+ "id": "76adef10.ffb57",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 2829.150005340576,
+ "y": 4202.749804735184,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ [
+ "14789ddb.87d092"
+ ]
+ ]
+ },
+ {
+ "id": "14789ddb.87d092",
+ "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/terminateRANSlice.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"plmninfolistnssailength in false in DU \"/>\n<parameter name=\"field2\" value=\"`$tmp.sNssaiListLengthDU`\"/>\n\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2906.7499084472656,
+ "y": 4147.949805498123,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "50212c66.98be54",
+ "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/terminateRANSlice.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"plmninfolistnssailength in true in DU \"/>\n<parameter name=\"field2\" value=\"`$tmp.sNssaiListLengthDU`\"/>\n\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2934.5499839782715,
+ "y": 4041.949801683426,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "1966dcbb.653793",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 2613.199951171875,
+ "y": 420.3999938964844,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ [
+ "85f0f199.e85ad",
+ "654785f4.3e85ec",
+ "35093caa.7bdfb4"
+ ]
+ ]
+ },
+ {
+ "id": "85f0f199.e85ad",
+ "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.sNssaiListLengthCU' />\n\t<parameter name='source' value=\"`'getNFNSSIRIC-configdb-response.['+ $idy +'].gNBCUCPList['+ $idz +'].cellCUList['+ $idcu +'].pLMNInfoList['+ $id-cuplmn +'].sNSSAI_length'`\" />",
+ "comments": "",
+ "outputs": 1,
+ "x": 2863.9499168395996,
+ "y": 352.74954056739807,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "654785f4.3e85ec",
+ "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/terminateRANSlice.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"CU_plmninfolength_nssailength \"/>\n<parameter name=\"field2\" value=\"`$tmp.sNssaiListLengthCU`\"/>\n\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2860.950050354004,
+ "y": 402.94999408721924,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "496fdc9.3f5cc24",
+ "type": "for",
+ "name": "foreach snssai",
+ "xml": "<for index='id-cusnssai' start='0' end='`$tmp.sNssaiListLengthCU`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 3048.9500160217285,
+ "y": 567.5501310825348,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ [
+ "71e6f9e5.e94b58"
+ ]
+ ]
+ },
+ {
+ "id": "35093caa.7bdfb4",
+ "type": "switchNode",
+ "name": "check the action",
+ "xml": "<switch test='`$tmp.sNssaiListLengthCU > 0`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2796.9499168395996,
+ "y": 496.35013031959534,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ [
+ "8cdcdb7a.f928d8",
+ "899c5061.0a3aa"
+ ]
+ ]
+ },
+ {
+ "id": "8cdcdb7a.f928d8",
+ "type": "outcome",
+ "name": "True",
+ "xml": "<outcome value='true'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2970.949920654297,
+ "y": 442.54973816871643,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ [
+ "1859cc3b.1a3174"
+ ]
+ ]
+ },
+ {
+ "id": "899c5061.0a3aa",
+ "type": "outcome",
+ "name": "False",
+ "xml": "<outcome value='false'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2966.7500915527344,
+ "y": 492.74956130981445,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ [
+ "aac3ec76.61ada"
+ ]
+ ]
+ },
+ {
+ "id": "1859cc3b.1a3174",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 3068.9499225616455,
+ "y": 373.1497366428375,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ [
+ "496fdc9.3f5cc24",
+ "39a27b61.3b1f64"
+ ]
+ ]
+ },
+ {
+ "id": "aac3ec76.61ada",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 3119.950096130371,
+ "y": 505.1497564315796,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ [
+ "235bb324.60385c"
+ ]
+ ]
+ },
+ {
+ "id": "235bb324.60385c",
+ "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/terminateRANSlice.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"plmninfolistnssailength in false in CU \"/>\n<parameter name=\"field2\" value=\"`$tmp.sNssaiListLengthCU`\"/>\n\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 3296.5499000549316,
+ "y": 502.3497314453125,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "39a27b61.3b1f64",
+ "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/terminateRANSlice.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"plmninfolistnssailength in true in CU \"/>\n<parameter name=\"field2\" value=\"`$tmp.sNssaiListLengthCU`\"/>\n\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 3216.349998474121,
+ "y": 352.34973549842834,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "6762ecfb.cef0a4",
+ "type": "switchNode",
+ "name": "check the action for terminate",
+ "xml": "<switch test='`$terminate-r-a-n-slice-instance-input.action == deallocate`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 632,
+ "y": 227.5000033378601,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ [
+ "256e54f8.3869cc",
+ "cbc969e.5362998"
+ ]
+ ]
+ },
+ {
+ "id": "256e54f8.3869cc",
+ "type": "outcome",
+ "name": "True",
+ "xml": "<outcome value='true'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 842,
+ "y": 146.5000033378601,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ [
+ "f01bc06c.e1c8b"
+ ]
+ ]
+ },
+ {
+ "id": "cbc969e.5362998",
+ "type": "outcome",
+ "name": "False",
+ "xml": "<outcome value='false'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 860.9999885559082,
+ "y": 300.50002670288086,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ [
+ "63117eb4.27b71"
+ ]
+ ]
+ },
+ {
+ "id": "cacfc7c6.6f52b8",
+ "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/terminateRANSlice.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"modify deallocate called\" />\n\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1191.8007507324219,
+ "y": 266.3001022338867,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "f01bc06c.e1c8b",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 1012.0000801086426,
+ "y": 138.7000527381897,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ [
+ "bc3f9e5e.ae929",
+ "834f7993.c76608"
+ ]
+ ]
+ },
+ {
+ "id": "63117eb4.27b71",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 1022.0001831054688,
+ "y": 300.700026512146,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ [
+ "cacfc7c6.6f52b8",
+ "ec3388e.f323578"
+ ]
+ ]
+ },
+ {
+ "id": "bc3f9e5e.ae929",
+ "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/terminateRANSlice.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"deallocate called\" />\n\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1182.7999687194824,
+ "y": 72.50000667572021,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "8ce4a4a8.077338",
+ "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-context.log' />\n\n\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 3274.800048828125,
+ "y": 165.50000190734863,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "bc8ed918.ef6878",
+ "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/terminateRANSlice.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"Payload for terminateRANSlice.: \"/>\n<parameter name=\"field2\" value=\"`$tmp.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": 3293.549945831299,
+ "y": 210.00000190734863,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "f84f8790.5374d8",
+ "type": "switchNode",
+ "name": "check action",
+ "xml": "<switch test='`$tmp.action`'>",
+ "comments": "",
+ "outputs": 1,
+ "x": 3294.300247192383,
+ "y": 96.75,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ [
+ "5218202e.60a1d",
+ "a40fb251.03696"
+ ]
+ ]
+ },
+ {
+ "id": "5218202e.60a1d",
+ "type": "success",
+ "name": "deallocate",
+ "xml": "<outcome value='deallocate'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 3481.300048828125,
+ "y": 107.50002574920654,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ [
+ "3d2d19c3.709246"
+ ]
+ ]
+ },
+ {
+ "id": "de4468e8.48f068",
+ "type": "execute",
+ "name": "read sNSSAI from sliceProfile",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'>\n\t<parameter name='outputPath' value='tmp.sNSSAI' />\n\t<parameter name='source' value=\"`$payloadJson.input.sliceProfile.sNSSAI`\" />\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 3892.3002548217773,
+ "y": 181.50000286102295,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "a40fb251.03696",
+ "type": "failure",
+ "name": "modify-deallocate",
+ "xml": "<outcome value='modify-deallocate'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 3476.300048828125,
+ "y": 205.50000190734863,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ [
+ "d95a2e19.c845f"
+ ]
+ ]
+ },
+ {
+ "id": "78741a05.078744",
+ "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/terminateRANSlice.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"sNSSAI: \"/>\n<parameter name=\"field2\" value=\"`$tmp.sNSSAI`\"/>\n\n\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 3853.5500526428223,
+ "y": 135.50000190734863,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "3d2d19c3.709246",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 3653.550048828125,
+ "y": 107.50000190734863,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ [
+ "78741a05.078744",
+ "c803791a.ecad78"
+ ]
+ ]
+ },
+ {
+ "id": "c803791a.ecad78",
+ "type": "set",
+ "name": "read sNSSAI from input",
+ "xml": "<set>\n<parameter name='tmp.sNSSAI' value=\"`$payloadJson.input.sNSSAI`\"/>",
+ "comments": "",
+ "x": 3855.5500564575195,
+ "y": 86.50000095367432,
+ "z": "9f8808d.55bc2f8",
+ "wires": []
+ },
+ {
+ "id": "1d89edd2.326562",
+ "type": "set",
+ "name": "read action from input",
+ "xml": "<set>\n<parameter name='tmp.action' value=\"`$terminate-r-a-n-slice-instance-input.action`\"/>",
+ "comments": "",
+ "x": 3313.050048828125,
+ "y": 50,
+ "z": "9f8808d.55bc2f8",
+ "wires": []
+ },
+ {
+ "id": "d95a2e19.c845f",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 3670.100051879883,
+ "y": 202.00000190734863,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ [
+ "de4468e8.48f068",
+ "ddf22632.651d18"
+ ]
+ ]
+ },
+ {
+ "id": "ddf22632.651d18",
+ "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/terminateRANSlice.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"modify-deallocate-sNSSAI: \"/>\n<parameter name=\"field2\" value=\"`$tmp.sNSSAI`\"/>\n\n\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 3912.10005569458,
+ "y": 250.00000381469727,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "8a178b1d.f4eb18",
+ "type": "execute",
+ "name": "execute jsonStringToCtx",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='jsonStringToCtx'>\n\t<parameter name='source' value='terminate-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": 2706.199951171875,
+ "y": 137,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ [
+ "eba8eb3.af56018"
+ ]
+ ]
+ },
+ {
+ "id": "eba8eb3.af56018",
+ "type": "other",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2907.4497604370117,
+ "y": 126.25,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ [
+ "47796188.60d39"
+ ]
+ ]
+ },
+ {
+ "id": "47796188.60d39",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 3073.4498596191406,
+ "y": 120.25,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ [
+ "1d89edd2.326562",
+ "f84f8790.5374d8",
+ "8ce4a4a8.077338",
+ "bc8ed918.ef6878"
+ ]
+ ]
+ },
+ {
+ "id": "ec3388e.f323578",
+ "type": "execute",
+ "name": "execute jsonStringToCtx",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='jsonStringToCtx'>\n\t<parameter name='source' value='instantiate-r-a-n-slice-input.payload' />\n\t<parameter name='outputPath' value='payloadJson' />\n\t<parameter name='isEscaped' value='false' />",
+ "comments": "",
+ "outputs": 1,
+ "x": 1305.2001647949219,
+ "y": 347.00000381469727,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ [
+ "551c7a39.f6f354"
+ ]
+ ]
+ },
+ {
+ "id": "551c7a39.f6f354",
+ "type": "other",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1566.1999740600586,
+ "y": 295,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ [
+ "bb9cc7c0.cbb448"
+ ]
+ ]
+ },
+ {
+ "id": "bb9cc7c0.cbb448",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 1737.1999740600586,
+ "y": 296.0000009536743,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ [
+ "81a058de.bf8438",
+ "d8587bc4.f19b48",
+ "c84b5f23.9e568",
+ "82a15925.e24a98",
+ "3cc3117e.14214e",
+ "3dff9dd4.ab6852"
+ ]
+ ]
+ },
+ {
+ "id": "81a058de.bf8438",
+ "type": "set",
+ "name": "read action from input",
+ "xml": "<set>\n<parameter name='tmp.action' value=\"`$instantiate-r-a-n-slice-input.action`\"/>",
+ "comments": "",
+ "x": 1957.2000732421875,
+ "y": 278.00000381469727,
+ "z": "9f8808d.55bc2f8",
+ "wires": []
+ },
+ {
+ "id": "d8587bc4.f19b48",
+ "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-context.log' />\n\n\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1927.1999816894531,
+ "y": 315,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "c84b5f23.9e568",
+ "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/terminateRANSlice.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"Payload for modifyallocateRANSlice.: \"/>\n<parameter name=\"field2\" value=\"`$payloadJson.input.RANNFNSSIId`\"/>\n<parameter name=\"field3\" value=\"`$payloadJson.input.callbackURL`\"/>\n<parameter name=\"field4\" value=\"`$payloadJson.input.sliceProfile.sliceProfileId`\"/>\n\n\n\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1925.9497833251953,
+ "y": 361.5000009536743,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "82a15925.e24a98",
+ "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/terminateRANSlice.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"modify-deallocate-sNSSAI: \"/>\n<parameter name=\"field2\" value=\"`$tmp.sNSSAI`\"/>\n<parameter name=\"field3\" value=\"`$tmp.sliceprofileid`\"/>\n\n\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1917.4000778198242,
+ "y": 495.50000762939453,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "834f7993.c76608",
+ "type": "execute",
+ "name": "execute jsonStringToCtx",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='jsonStringToCtx'>\n\t<parameter name='source' value='terminate-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": 1400.8000679016113,
+ "y": 150,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ [
+ "9457812.4d6b68"
+ ]
+ ]
+ },
+ {
+ "id": "9457812.4d6b68",
+ "type": "other",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1602.8000259399414,
+ "y": 75.99999809265137,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ [
+ "bc6e886d.0d2b48"
+ ]
+ ]
+ },
+ {
+ "id": "bc6e886d.0d2b48",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 1773.8000259399414,
+ "y": 76.99999904632568,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ [
+ "f6fc1e87.b86c6",
+ "c9836f06.5a35c",
+ "2effe823.d20c68",
+ "e8c85559.410848",
+ "6aa3771c.546398",
+ "d57471a8.bc86b"
+ ]
+ ]
+ },
+ {
+ "id": "f6fc1e87.b86c6",
+ "type": "set",
+ "name": "read action from input",
+ "xml": "<set>\n<parameter name='tmp.action' value=\"`$terminate-r-a-n-slice-instance-input.action`\"/>",
+ "comments": "",
+ "x": 1993.8000259399414,
+ "y": 53.99999809265137,
+ "z": "9f8808d.55bc2f8",
+ "wires": []
+ },
+ {
+ "id": "c9836f06.5a35c",
+ "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-context.log' />\n\n\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1963.800033569336,
+ "y": 95.99999809265137,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "2effe823.d20c68",
+ "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/terminateRANSlice.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"Payload for terminateRANSlice.: \"/>\n<parameter name=\"field2\" value=\"`$tmp.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": 1956.800048828125,
+ "y": 133,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "6aa3771c.546398",
+ "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/terminateRANSlice.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"DEallocate sNSSAI: \"/>\n<parameter name=\"field2\" value=\"`$tmp.sNSSAI`\"/>\n<parameter name=\"field3\" value=\"`$tmp.sliceprofileid`\"/>\n\n\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1958.8000793457031,
+ "y": 241.00000381469727,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "e8c85559.410848",
+ "type": "set",
+ "name": "read sNSSAI from input",
+ "xml": "<set>\n<parameter name='tmp.sNSSAI' value=\"`$payloadJson.input.sNSSAI`\"/>",
+ "comments": "",
+ "x": 2023.8000793457031,
+ "y": 171.00000190734863,
+ "z": "9f8808d.55bc2f8",
+ "wires": []
+ },
+ {
+ "id": "3cc3117e.14214e",
+ "type": "set",
+ "name": "read sNSSAI from input sliceprofile",
+ "xml": "<set>\n<parameter name='tmp.sNSSAI' value=\"`$payloadJson.input.sliceProfile.sNSSAI`\"/>",
+ "comments": "",
+ "x": 1982.4000244140625,
+ "y": 406,
+ "z": "9f8808d.55bc2f8",
+ "wires": []
+ },
+ {
+ "id": "3dff9dd4.ab6852",
+ "type": "set",
+ "name": "read SpId from input sliceprofile",
+ "xml": "<set>\n<parameter name='tmp.sliceprofileid' value=\"`$payloadJson.input.sliceProfile.sliceProfileId`\"/>",
+ "comments": "",
+ "x": 2009.800048828125,
+ "y": 451,
+ "z": "9f8808d.55bc2f8",
+ "wires": []
+ },
+ {
+ "id": "d57471a8.bc86b",
+ "type": "set",
+ "name": "read SpId from input ",
+ "xml": "<set>\n<parameter name='tmp.sliceprofileid' value=\"`$payloadJson.input.sliceProfileId`\"/>",
+ "comments": "",
+ "x": 2047.8000793457031,
+ "y": 205.00000190734863,
+ "z": "9f8808d.55bc2f8",
+ "wires": []
+ },
+ {
+ "id": "bfd5daae.fcaf68",
+ "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'`\" />",
+ "comments": "",
+ "outputs": 1,
+ "x": 852.5625305175781,
+ "y": 729.374997138977,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "4705045c.022f3c",
+ "type": "switchNode",
+ "name": "ransim mounted",
+ "xml": "<switch test='`$prop.ransim-mounted`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 835.3750305175781,
+ "y": 782.187497138977,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ [
+ "3465b99a.35d066",
+ "a1e8ada5.6e6b"
+ ]
+ ]
+ },
+ {
+ "id": "3465b99a.35d066",
+ "type": "outcome",
+ "name": "Not Mounted",
+ "xml": "<outcome value='false'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1052.8750610351562,
+ "y": 697.9373302459717,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ [
+ "157d64ca.012ddb"
+ ]
+ ]
+ },
+ {
+ "id": "a1e8ada5.6e6b",
+ "type": "outcome",
+ "name": "Mounted",
+ "xml": "<outcome value='true'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1042.3750305175781,
+ "y": 739.4375009536743,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ [
+ "14dccd03.8e4ad3"
+ ]
+ ]
+ },
+ {
+ "id": "14dccd03.8e4ad3",
+ "type": "block",
+ "name": "ransim URL",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 1191.3746948242188,
+ "y": 752.4376063346863,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ [
+ "85667e11.d1145",
+ "fb4888d6.ac6bb8"
+ ]
+ ]
+ },
+ {
+ "id": "157d64ca.012ddb",
+ "type": "execute",
+ "name": "generate remove sliceProfile url",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$prop.restapi.nearrtric.removeSliceProfile`\"/>\n <parameter name=\"outputPath\" value=\"tmp.deleteSliceProfileEntry.url\"/>\n <parameter name=\"target\" value=\"{idNearRTRIC}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.nearRTRICId`\"/>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1323.6249618530273,
+ "y": 695.6875009536743,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "85667e11.d1145",
+ "type": "execute",
+ "name": "generate sliceprofile removal",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$prop.restapi.nearrtric.removeSliceProfile.ransim-mounted`\"/>\n <parameter name=\"outputPath\" value=\"tmp.deleteSliceProfileEntry.url\"/>\n <parameter name=\"target\" value=\"{idNearRTRIC}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.nearRTRICId`\"/>",
+ "comments": "",
+ "outputs": 1,
+ "x": 1089.6246871948242,
+ "y": 817.43745470047,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "fb4888d6.ac6bb8",
+ "type": "execute",
+ "name": "populate mountName",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$tmp.deleteSliceProfileEntry.url`\"/>\n <parameter name=\"outputPath\" value=\"tmp.deleteSliceProfileEntry.url\"/>\n <parameter name=\"target\" value=\"{mountName}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.nearRTRICId`\"/>",
+ "comments": "",
+ "outputs": 1,
+ "x": 1012.3751449584961,
+ "y": 857.9376392364502,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "69f78430.48a3fc",
+ "type": "execute",
+ "name": "Remove Slice Profile",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"restapiUrl\" value=\"`$prop.controller.url + $tmp.deleteSliceProfileEntry.url`\"/>\n<parameter name=\"restapiUser\" value=\"`$prop.controller.user`\" />\n<parameter name=\"restapiPassword\" value=\"`$prop.controller.pwd`\"/>\n<parameter name=\"httpMethod\" value=\"DELETE\"/>\n<parameter name=\"responsePrefix\" value=\"delete-slice-profile-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\"/>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1012.8751449584961,
+ "y": 1012.1875162124634,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ [
+ "66924de8.f37e54",
+ "b862d96e.55cb28"
+ ]
+ ]
+ },
+ {
+ "id": "66924de8.f37e54",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1214.1250305175781,
+ "y": 880.937497138977,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ [
+ "d3e0ba8.90a2d48"
+ ]
+ ]
+ },
+ {
+ "id": "b862d96e.55cb28",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1197.4431686401367,
+ "y": 953.5965905189514,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ [
+ "8d8ba70f.cba918"
+ ]
+ ]
+ },
+ {
+ "id": "d3e0ba8.90a2d48",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 1381.0000305175781,
+ "y": 862.187497138977,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ [
+ "3e2ff250.a8d48e",
+ "14e27744.691bc9"
+ ]
+ ]
+ },
+ {
+ "id": "14e27744.691bc9",
+ "type": "set",
+ "name": "set",
+ "xml": "<set>\n<parameter name='error-code' value='500'/>\n<parameter name='error-message' value='Error updating nearRTRIC info in ConfigDB. Aborting RPC executiopn'/>",
+ "comments": "",
+ "x": 1529.9997215270996,
+ "y": 825.2984752655029,
+ "z": "9f8808d.55bc2f8",
+ "wires": []
+ },
+ {
+ "id": "3e2ff250.a8d48e",
+ "type": "returnFailure",
+ "name": "return failure",
+ "xml": "<return status='failure'>\n<parameter name='ack-final' value='Y'/>\n<parameter name='error-code' value='500'/>\n<parameter name='error-message' value='Error updating nearRTRIC info in ConfigDB. Aborting RPC executiopn'/>",
+ "comments": "",
+ "x": 1543.9997253417969,
+ "y": 900.1875438690186,
+ "z": "9f8808d.55bc2f8",
+ "wires": []
+ },
+ {
+ "id": "3408ca3e.56abe6",
+ "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/terminateRANSlice.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"Successfully REmoved Slice Profile\"/>",
+ "comments": "",
+ "outputs": 1,
+ "x": 1458.5000610351562,
+ "y": 1022.1875200271606,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "8d8ba70f.cba918",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 1379.0000228881836,
+ "y": 967.9374116659164,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ [
+ "3408ca3e.56abe6"
+ ]
+ ]
+ },
+ {
+ "id": "39afb101.1f51ee",
+ "type": "execute",
+ "name": "prepare slice profile id",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$tmp.deleteSliceProfileEntry.url`\"/>\n <parameter name=\"outputPath\" value=\"tmp.deleteSliceProfileEntry.url\"/>\n <parameter name=\"target\" value=\"{sliceProfileId}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.sliceprofileid`\"/>",
+ "comments": "",
+ "outputs": 1,
+ "x": 934.4375343322754,
+ "y": 918.4375171661377,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "9dd16454.4c7f18",
+ "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/terminateRANSlice.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"sliceprofileid\"/>\n<parameter name=\"field2\" value=\"`$tmp.sliceprofileid`\" />\n<parameter name=\"field3\" value=\"nearRTRICId\"/>\n<parameter name=\"field4\" value=\"`$tmp.nearRTRICId`\" />\n<parameter name=\"field5\" value=\"endpoint URL\"/>\n<parameter name=\"field6\" value=\"`$tmp.deleteSliceProfileEntry.url`\" />\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 914.1250305175781,
+ "y": 967.187497138977,
+ "z": "9f8808d.55bc2f8",
+ "wires": [
+ []
+ ]
+ }
+] \ No newline at end of file
diff --git a/platform-logic/ran-slice-api/src/main/json/ran-slice-api_terminateRANSliceInstance-cps.json b/platform-logic/ran-slice-api/src/main/json/ran-slice-api_terminateRANSliceInstance-cps.json
new file mode 100644
index 00000000..59579803
--- /dev/null
+++ b/platform-logic/ran-slice-api/src/main/json/ran-slice-api_terminateRANSliceInstance-cps.json
@@ -0,0 +1,9372 @@
+[
+ {
+ "id": "2fc302d6.82e3ae",
+ "type": "dgstart",
+ "name": "DGSTART",
+ "outputs": 1,
+ "x": 123,
+ "y": 110.2500057220459,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ [
+ "27a281ce.e8554e"
+ ]
+ ]
+ },
+ {
+ "id": "27a281ce.e8554e",
+ "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": 178.0000228881836,
+ "y": 197.24997425079346,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ [
+ "8d07770b.40d8d8"
+ ]
+ ]
+ },
+ {
+ "id": "8d07770b.40d8d8",
+ "type": "method",
+ "name": "method",
+ "xml": "<method rpc='terminateRANSliceInstance-cps' mode='sync'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 112,
+ "y": 257.24993991851807,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ [
+ "4a5cabc2.a7b434"
+ ]
+ ]
+ },
+ {
+ "id": "4a5cabc2.a7b434",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 117.99999237060547,
+ "y": 351.9999704360962,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ [
+ "915904fb.1e3638",
+ "c456d34.fe5423",
+ "1265ccfb.824893",
+ "e3604cfc.48576",
+ "2ecc0183.03bf1e",
+ "848d52eb.8cc75",
+ "7d478635.d81058",
+ "d1a91050.f5c7d",
+ "f553ee6f.fe81e",
+ "cd297572.69cac8",
+ "e9a10f4d.0c6f2",
+ "c0761ee.a3bd7e",
+ "1c135f07.bdae71",
+ "7634ff46.e0b13",
+ "75690319.28e85c"
+ ]
+ ]
+ },
+ {
+ "id": "61eecf4e.08f1a",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 375.00000762939453,
+ "y": 608.250057220459,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ [
+ "a90ef80c.176158",
+ "33960a6b.e663d6",
+ "566f0c13.3c36f4",
+ "defb0345.d78a8",
+ "9ee9b02d.5d0c5",
+ "f4ad0d69.8a8f4",
+ "2ab20b2.c4662f4",
+ "3c8d387a.bf8218",
+ "5002dadc.f9b734",
+ "23c0289f.7c38a8",
+ "727ee4a2.8509dc",
+ "91b52d7b.490f2",
+ "4d9d7d5d.5fed04",
+ "405b1b1e.551e24",
+ "26f000ef.f9a63"
+ ]
+ ]
+ },
+ {
+ "id": "e42b439f.4e3a6",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 945.0680961608887,
+ "y": 639.3180861473083,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ [
+ "fbbc66fc.f79578"
+ ]
+ ]
+ },
+ {
+ "id": "fbbc66fc.f79578",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 1115.0679931640625,
+ "y": 640.3182015419006,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ [
+ "ffbe99c0.53a808",
+ "8eea7516.4225a8"
+ ]
+ ]
+ },
+ {
+ "id": "ffbe99c0.53a808",
+ "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/terminateRANSlice.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-cps-response._length`\"/>",
+ "comments": "",
+ "outputs": 1,
+ "x": 1338.0678901672363,
+ "y": 618.3181772232056,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "8eea7516.4225a8",
+ "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": 1344.8459167480469,
+ "y": 654.3182754516602,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "24fc36ac.2cc9aa",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 950.0680809020996,
+ "y": 599.3181781768799,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ [
+ "781815a4.a3ee1c"
+ ]
+ ]
+ },
+ {
+ "id": "781815a4.a3ee1c",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 1214.0682792663574,
+ "y": 591.3182258605957,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ [
+ "297876ec.0f7e9a",
+ "86a7278f.d35238"
+ ]
+ ]
+ },
+ {
+ "id": "297876ec.0f7e9a",
+ "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": 1434.0679893493652,
+ "y": 586.4292802810669,
+ "z": "ef6618ab.e71c28",
+ "wires": []
+ },
+ {
+ "id": "26f000ef.f9a63",
+ "type": "for",
+ "name": "foreach NearRTRIC",
+ "xml": "<for index='idy' start='0' end='`$getNFNSSIRIC-cps-response._length`' >\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 478.2499771118164,
+ "y": 1213.3181324005127,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ [
+ "9f21b321.b4642",
+ "60a0fe7f.d8146",
+ "27d156bf.17d99a",
+ "eecde6e4.e3a8f8",
+ "e661d74c.681978"
+ ]
+ ]
+ },
+ {
+ "id": "9f21b321.b4642",
+ "type": "block",
+ "name": "Process NearRTRIC",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 712.6035499572754,
+ "y": 1201.893913269043,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ [
+ "dba510c5.0e5a7",
+ "b7895624.0ca7f8",
+ "15ff5f7d.ac4ce1"
+ ]
+ ]
+ },
+ {
+ "id": "dba510c5.0e5a7",
+ "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.RICPLMNEntries' />\n\t<parameter name='source' value=\"`'getNFNSSIRIC-cps-response.['+ $idy +'].attributes.pLMNInfoList_length'`\" />\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1003.7955551147461,
+ "y": 681.227367401123,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "34883ae0.e4eea6",
+ "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-cps-response.[' + $idy + '].idNearRTRIC'`\" />",
+ "comments": "",
+ "outputs": 1,
+ "x": 1781.7960968017578,
+ "y": 768.2276239395142,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "2b4e3189.9b8a2e",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1725.0681686401367,
+ "y": 959.7726945877075,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ [
+ "c55935b5.790928"
+ ]
+ ]
+ },
+ {
+ "id": "c55935b5.790928",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 1878.0682830810547,
+ "y": 948.7727012634277,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ [
+ "ce52c4be.108d98",
+ "55e4c978.919018"
+ ]
+ ]
+ },
+ {
+ "id": "55e4c978.919018",
+ "type": "set",
+ "name": "set",
+ "xml": "<set>\n<parameter name='error-code' value='500'/>\n<parameter name='error-message' value='Error updating nearRTRIC info in ConfigDB. Aborting RPC executiopn'/>",
+ "comments": "",
+ "x": 2027.0679740905762,
+ "y": 911.8836793899536,
+ "z": "ef6618ab.e71c28",
+ "wires": []
+ },
+ {
+ "id": "ce52c4be.108d98",
+ "type": "returnFailure",
+ "name": "return failure",
+ "xml": "<return status='failure'>\n<parameter name='ack-final' value='Y'/>\n<parameter name='error-code' value='500'/>\n<parameter name='error-message' value='Error updating nearRTRIC info in ConfigDB. Aborting RPC executiopn'/>",
+ "comments": "",
+ "x": 2041.0679779052734,
+ "y": 986.7727479934692,
+ "z": "ef6618ab.e71c28",
+ "wires": []
+ },
+ {
+ "id": "b2a1da52.7c9308",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1722.8863067626953,
+ "y": 1100.6817951202393,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ [
+ "ff899f06.f5f5d"
+ ]
+ ]
+ },
+ {
+ "id": "ff899f06.f5f5d",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 1872.886215209961,
+ "y": 1115.6819324493408,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ [
+ "45b6ca11.f79d04"
+ ]
+ ]
+ },
+ {
+ "id": "45b6ca11.f79d04",
+ "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/terminateRANSlice.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"Successfully Updated NearRT RIC info in cps\"/>",
+ "comments": "",
+ "outputs": 1,
+ "x": 2019.8861541748047,
+ "y": 1143.6820087432861,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "1a8a4142.50086f",
+ "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-cps-response.[' + $idy +'].GNBCUCPFunction_length'`\" />\n ",
+ "comments": "",
+ "outputs": 1,
+ "x": 987.25,
+ "y": 1325.500009059906,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "60a0fe7f.d8146",
+ "type": "block",
+ "name": "Process CUCP",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 665.2500228881836,
+ "y": 1313.500093460083,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ [
+ "1a8a4142.50086f",
+ "14cec2de.b3b30d",
+ "257d60a3.014f"
+ ]
+ ]
+ },
+ {
+ "id": "14cec2de.b3b30d",
+ "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/terminateRANSlice.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": 959.25,
+ "y": 1390.500009059906,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "257d60a3.014f",
+ "type": "for",
+ "name": "foreach CUCP",
+ "xml": "<for index='idz' start='0' end='`$tmp.CUCPList_length`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 987.25,
+ "y": 1465.500009059906,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ [
+ "efa55bbc.3e1cc8"
+ ]
+ ]
+ },
+ {
+ "id": "efa55bbc.3e1cc8",
+ "type": "block",
+ "name": "block : process CUCP",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 1208.25,
+ "y": 1472.500009059906,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ [
+ "fc80606c.b3fbe",
+ "14f13e10.9327a2",
+ "e885f11b.c9aea",
+ "134a4feb.b12ec"
+ ]
+ ]
+ },
+ {
+ "id": "fc80606c.b3fbe",
+ "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-cps-response.['+ $idy +'].GNBCUCPFunction['+ $idz +'].attributes.gNBCUName'`\" />",
+ "comments": "",
+ "outputs": 1,
+ "x": 1516.2500762939453,
+ "y": 1313.0999999046326,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "14f13e10.9327a2",
+ "type": "for",
+ "name": "for cellCUList",
+ "xml": "<for index='idcu' start='0' end='`$tmp.cellCUList_length`' >\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1563.25,
+ "y": 1469.500009059906,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ [
+ "fcd1f3c6.0e5ed"
+ ]
+ ]
+ },
+ {
+ "id": "da0b6865.1a7908",
+ "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-cps-response.['+ $idy +'].GNBCUCPFunction['+ $idz +'].NRCellCU['+ $idcu +'].idNRCellCU'`\" />\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2275.750274658203,
+ "y": 1078.2500219345093,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "e4685a55.406e88",
+ "type": "execute",
+ "name": "prepare mnc",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$tmp.deleteSNSSAIListEntry.url`\"/>\n <parameter name=\"outputPath\" value=\"tmp.deleteSNSSAIListEntry.url\"/>\n <parameter name=\"target\" value=\"{mnc}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.mnc`\"/>",
+ "comments": "",
+ "outputs": 1,
+ "x": 2275.50008392334,
+ "y": 1318.7500267028809,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "8bd7c16b.de00e",
+ "type": "execute",
+ "name": "terminate sNNSAI ToNRCellCU",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"restapiUrl\" value=\"`$prop.controller.url + $tmp.deleteSNSSAIListEntry.url`\"/>\n<parameter name=\"restapiUser\" value=\"`$prop.controller.user`\" />\n<parameter name=\"restapiPassword\" value=\"`$prop.controller.pwd`\"/>\n<parameter name=\"httpMethod\" value=\"DELETE\"/>\n<parameter name=\"responsePrefix\" value=\"delete-cellCU-sNSSAI-response\"/>\n<parameter name='contentType' value='application/json' /> \n<parameter name='format' value='json' />",
+ "comments": "",
+ "outputs": 1,
+ "x": 2237.250030517578,
+ "y": 1452.5001678466797,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ [
+ "8f227315.0314b",
+ "34f969ab.cb9066"
+ ]
+ ]
+ },
+ {
+ "id": "e6862312.8c998",
+ "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/terminateRANSliceModifyAllocate.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.sNSSAI`\"/>\n<parameter name=\"field8\" value=\"`$tmp.deleteSNSSAIListEntry.url`\"/>\n\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2279.25008392334,
+ "y": 1410.9999785423279,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "e3ed491d.954e98",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 2075.249931335449,
+ "y": 1069.500015258789,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ [
+ "da0b6865.1a7908",
+ "e4685a55.406e88",
+ "e6862312.8c998",
+ "cfe58b39.ed0498",
+ "6bf128ac.d071f8",
+ "eadf156.6353ae8",
+ "a674e8bb.cfe268",
+ "c6c9496b.250678",
+ "aaa0dde.d7b212",
+ "8c2f38a0.f9fb28",
+ "c6edfac9.7c9c58",
+ "514dd6f.6906628",
+ "c52bf64c.f7efa8",
+ "9ce076ba.219ae8",
+ "8bd7c16b.de00e"
+ ]
+ ]
+ },
+ {
+ "id": "8f227315.0314b",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2475.2499389648438,
+ "y": 1484.500075340271,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ [
+ "fe1d9725.a71938"
+ ]
+ ]
+ },
+ {
+ "id": "fe1d9725.a71938",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 2658.2499389648438,
+ "y": 1477.5000762939453,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ [
+ "1f64cadd.96c7c5"
+ ]
+ ]
+ },
+ {
+ "id": "1f64cadd.96c7c5",
+ "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/terminateRANSlice.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"Successfully Patched - cellCU PLMNInfo List\"/>",
+ "comments": "",
+ "outputs": 1,
+ "x": 2911.2499465942383,
+ "y": 1474.5003681182861,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "34f969ab.cb9066",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2457.25008392334,
+ "y": 1432.4999771118164,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ [
+ "332ae432.3b7a1c"
+ ]
+ ]
+ },
+ {
+ "id": "332ae432.3b7a1c",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 2600.2501373291016,
+ "y": 1393.5000743865967,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ [
+ "a1315b4e.247908",
+ "f20a8cc0.30eaa",
+ "86a7278f.d35238"
+ ]
+ ]
+ },
+ {
+ "id": "a1315b4e.247908",
+ "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": 2860.2499389648438,
+ "y": 1413.5001735687256,
+ "z": "ef6618ab.e71c28",
+ "wires": []
+ },
+ {
+ "id": "f20a8cc0.30eaa",
+ "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": 2784.249942779541,
+ "y": 1375.5000743865967,
+ "z": "ef6618ab.e71c28",
+ "wires": []
+ },
+ {
+ "id": "cfe58b39.ed0498",
+ "type": "execute",
+ "name": "prepare idGNBCUCPFunction",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$tmp.deleteSNSSAIListEntry.url`\"/>\n <parameter name=\"outputPath\" value=\"tmp.deleteSNSSAIListEntry.url\"/>\n <parameter name=\"target\" value=\"{idGNBCUCPFunction}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.CUCPName`\"/>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2342.25008392334,
+ "y": 1181.5001211166382,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "6bf128ac.d071f8",
+ "type": "execute",
+ "name": "prepare idNRCellCU",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$tmp.deleteSNSSAIListEntry.url`\"/>\n <parameter name=\"outputPath\" value=\"tmp.deleteSNSSAIListEntry.url\"/>\n <parameter name=\"target\" value=\"{idNRCellCU}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.cellCULocalId`\"/>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2316.25008392334,
+ "y": 1231.250023841858,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "eadf156.6353ae8",
+ "type": "execute",
+ "name": "prepare mcc",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$tmp.deleteSNSSAIListEntry.url`\"/>\n <parameter name=\"outputPath\" value=\"tmp.deleteSNSSAIListEntry.url\"/>\n <parameter name=\"target\" value=\"{mcc}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.mcc`\"/>\n ",
+ "comments": "",
+ "outputs": 1,
+ "x": 2284.0000801086426,
+ "y": 1274.2500247955322,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "e885f11b.c9aea",
+ "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/terminateRANSlice.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": 1566.2500457763672,
+ "y": 1367.4999771118164,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "134a4feb.b12ec",
+ "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-cps-response.[' + $idy +'].GNBCUCPFunction[' + $idz +'].NRCellCU_length'`\" />\n ",
+ "comments": "",
+ "outputs": 1,
+ "x": 1573.25,
+ "y": 1425.500009059906,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "a674e8bb.cfe268",
+ "type": "switchNode",
+ "name": "ransim mounted",
+ "xml": "<switch test='`$prop.ransim-mounted`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2271.25008392334,
+ "y": 1033.500020980835,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ [
+ "b68a4e07.b2dd7",
+ "d9e938b.5fdb9c8"
+ ]
+ ]
+ },
+ {
+ "id": "b68a4e07.b2dd7",
+ "type": "outcome",
+ "name": "Not Mounted",
+ "xml": "<outcome value='false'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2506.25008392334,
+ "y": 1035.4998264312744,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ [
+ "7e2204de.3b325c"
+ ]
+ ]
+ },
+ {
+ "id": "7e2204de.3b325c",
+ "type": "execute",
+ "name": "generate terminate sNSSAItEntry ToNRCellCU",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$prop.restapi.terminateSNSSAIEntry.ToNRCellCU`\"/>\n <parameter name=\"outputPath\" value=\"tmp.deleteSNSSAIListEntry.url\"/>\n <parameter name=\"target\" value=\"{idNearRTRIC}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.nearRTRICId`\"/>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2828.25,
+ "y": 1119.500009059906,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "d9e938b.5fdb9c8",
+ "type": "outcome",
+ "name": "Mounted",
+ "xml": "<outcome value='true'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2518.25008392334,
+ "y": 1104.5000224113464,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ [
+ "df53585c.b9fa48"
+ ]
+ ]
+ },
+ {
+ "id": "c6c9496b.250678",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 1855.25,
+ "y": 1890.500009059906,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ [
+ "c0711216.8ce9c",
+ "7b1874fb.c5415c",
+ "7e19a58b.6323ec",
+ "dfbcf2c5.3ff55",
+ "579778ab.278998",
+ "45c1bca2.5e8e04",
+ "61df6e54.11339",
+ "c3d03b5f.8c6898",
+ "bbf378e6.b63a58"
+ ]
+ ]
+ },
+ {
+ "id": "c0711216.8ce9c",
+ "type": "set",
+ "name": "Calculate RRMPolicyRatio",
+ "xml": "<set>\n<parameter name='tmp.maxNumberOfConnsPercellCU' value='`$tmp.payload.maxNumberofConns / $tmp.cellCUList_length`' />\n<parameter name='tmp.rRMPolicyDedicatedRatio.CellCU1' value='`$tmp.maxNumberOfConnsPercellCU * 100`' />\n<parameter name='tmp.rRMPolicyDedicatedRatio_SliceProfile' value='`$tmp.rRMPolicyDedicatedRatio.CellCU1 / $prop.nrcellcu.maxNumberOfConnsPerCell`' />",
+ "comments": "",
+ "x": 2037.25,
+ "y": 1673.500009059906,
+ "z": "ef6618ab.e71c28",
+ "wires": []
+ },
+ {
+ "id": "7b1874fb.c5415c",
+ "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/terminateRANSlice.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"RRMPolicyRatio for this profile is - \"/>\n<parameter name=\"field2\" value=\"`$tmp.rRMPolicyDedicatedRatio_SliceProfile`\"/>",
+ "comments": "",
+ "outputs": 1,
+ "x": 2036.25,
+ "y": 1734.500009059906,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "7e19a58b.6323ec",
+ "type": "switchNode",
+ "name": "ransim mounted",
+ "xml": "<switch test='`$prop.ransim-mounted`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2077.25,
+ "y": 1796.500009059906,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ [
+ "60276eca.ed52d",
+ "e6b24565.3c8fe8"
+ ]
+ ]
+ },
+ {
+ "id": "60276eca.ed52d",
+ "type": "outcome",
+ "name": "Not Mounted",
+ "xml": "<outcome value='false'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2255.25,
+ "y": 1763.499764919281,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ [
+ "dd141b86.78ab68"
+ ]
+ ]
+ },
+ {
+ "id": "dd141b86.78ab68",
+ "type": "execute",
+ "name": "fetch RRMPolicyRatio NRCellCU - URL",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$prop.restapi.RRMPolicyRatioEntry.ToNRCellCU`\"/>\n <parameter name=\"outputPath\" value=\"tmp.getRRMPolicyRatio.url\"/>\n <parameter name=\"target\" value=\"{idNearRTRIC}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.nearRTRICId`\"/>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2533.25,
+ "y": 1755.500009059906,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "dfbcf2c5.3ff55",
+ "type": "execute",
+ "name": "prepare idGNBCUCPFunction",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$tmp.getRRMPolicyRatio.url`\"/>\n <parameter name=\"outputPath\" value=\"tmp.getRRMPolicyRatio.url\"/>\n <parameter name=\"target\" value=\"{idGNBCUCPFunction}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.CUCPName`\"/>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2112.25,
+ "y": 1868.500009059906,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "579778ab.278998",
+ "type": "execute",
+ "name": "prepare idNRCellCU",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$tmp.getRRMPolicyRatio.url`\"/>\n <parameter name=\"outputPath\" value=\"tmp.getRRMPolicyRatio.url\"/>\n <parameter name=\"target\" value=\"{idNRCellCU}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.cellCULocalId`\"/>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2077.25,
+ "y": 1920.500009059906,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "fceb310.bb2c0d",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2363.25,
+ "y": 2047.500009059906,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ [
+ "e4abead.1867818"
+ ]
+ ]
+ },
+ {
+ "id": "e4abead.1867818",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 2527.2498779296875,
+ "y": 2048.5001311302185,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ [
+ "366d6670.9c68aa",
+ "da77f44.4f42e08"
+ ]
+ ]
+ },
+ {
+ "id": "366d6670.9c68aa",
+ "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/terminateRANSlice.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"Successfully Retrieved - RRMPolicyRatio\"/>",
+ "comments": "",
+ "outputs": 1,
+ "x": 2677.2498779296875,
+ "y": 2043.500253200531,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "116f3d7a.fe8f33",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2359.25,
+ "y": 1968.500009059906,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ [
+ "77902d7b.ae4ff4"
+ ]
+ ]
+ },
+ {
+ "id": "77902d7b.ae4ff4",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 2517.250244140625,
+ "y": 1916.500009059906,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ [
+ "fcdb7134.4bc93",
+ "e9c8e0c5.1e294",
+ "86a7278f.d35238"
+ ]
+ ]
+ },
+ {
+ "id": "fcdb7134.4bc93",
+ "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 in Fetching RRMPolicyRatio - CellCU. Aborting RPC executiopn'/>",
+ "comments": "",
+ "x": 2688.2498779296875,
+ "y": 1977.5000700950623,
+ "z": "ef6618ab.e71c28",
+ "wires": []
+ },
+ {
+ "id": "e9c8e0c5.1e294",
+ "type": "set",
+ "name": "set",
+ "xml": "<set>\n<parameter name='error-code' value='500'/>\n<parameter name='error-message' value='Error in retrieving RRMPolicyRatio. Aborting RPC executiopn'/>",
+ "comments": "",
+ "x": 2683.25,
+ "y": 1882.500009059906,
+ "z": "ef6618ab.e71c28",
+ "wires": []
+ },
+ {
+ "id": "45c1bca2.5e8e04",
+ "type": "execute",
+ "name": "fetch RRMPolicyRatio - NRCellCU",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"restapiUrl\" value=\"`$prop.controller.url + $tmp.getRRMPolicyRatio.url`\"/>\n<parameter name=\"restapiUser\" value=\"`$prop.controller.user`\" />\n<parameter name=\"restapiPassword\" value=\"`$prop.controller.pwd`\"/>\n<parameter name=\"httpMethod\" value=\"GET\"/>\n<parameter name=\"responsePrefix\" value=\"get-rrmpolicyratio-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": 2112.25,
+ "y": 1995.500009059906,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ [
+ "116f3d7a.fe8f33",
+ "fceb310.bb2c0d"
+ ]
+ ]
+ },
+ {
+ "id": "da77f44.4f42e08",
+ "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": 2700.2499656677246,
+ "y": 2080.4999480247498,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "61df6e54.11339",
+ "type": "for",
+ "name": "for each rrmpolicyratio",
+ "xml": "<for index='idcu-rrm' start='0' end='`$tmp.rrmPolicyRatioList_length`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2047.25,
+ "y": 2153.500237941742,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ [
+ "95b2986f.e58608"
+ ]
+ ]
+ },
+ {
+ "id": "c3d03b5f.8c6898",
+ "type": "execute",
+ "name": "read rrmpolicyratio list size",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'>\n\t<parameter name='outputPath' value='tmp.rrmPolicyRatioList_length' />\n\t<parameter name='source' value=\"`'get-rrmpolicyratio-response.attributes.RRMPolicyRatio_length'`\" />\n ",
+ "comments": "",
+ "outputs": 1,
+ "x": 2091.25,
+ "y": 2049.500009059906,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "95b2986f.e58608",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 2268.25,
+ "y": 2173.500237941742,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ [
+ "5d789216.d6bbcc",
+ "bf15866.078ce78",
+ "f69925d0.0398b8",
+ "672cacb9.6f85d4",
+ "3b2efef6.f4db92",
+ "6917fdf2.dd9844",
+ "6f0d087a.f937e8",
+ "930a549f.867938",
+ "a5776646.7b9808",
+ "51a270d0.6d0f9"
+ ]
+ ]
+ },
+ {
+ "id": "5d789216.d6bbcc",
+ "type": "set",
+ "name": "Calculate updated RRMPolicyRatio",
+ "xml": "<set>\n<parameter name='tmp.rrmPolicyDedicatedRatio_cellCU' value=\"`'$get-rrmpolicyratio-response.attributes.RRMPolicyRatio['+ $idcu-rrm +'].attributes.rRMPolicyDedicatedRatio'`\" />\n<parameter name='tmp.rrmPolicyDedicatedRatio_CellCU_updated' value=\"`$tmp.rrmPolicyDedicatedRatio_cellCU + $tmp.rRMPolicyDedicatedRatio_SliceProfile`\" />",
+ "comments": "",
+ "x": 2489.2498664855957,
+ "y": 2090.500144481659,
+ "z": "ef6618ab.e71c28",
+ "wires": []
+ },
+ {
+ "id": "bbf378e6.b63a58",
+ "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/terminateRANSlice.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"RRMPolicyRatioList size\"/>\n<parameter name=\"field2\" value=\"`$tmp.rrmPolicyRatioList_length`\"/>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2031.25,
+ "y": 2103.500009059906,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "a4271c85.b4e31",
+ "type": "for",
+ "name": "foreach PLMNInfo",
+ "xml": "<for index='id-cuplmn' start='0' end='`$tmp.pLMNInfoList_length`' >\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2552.3611221313477,
+ "y": 605.7222671508789,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ [
+ "6bd0302.f586ad"
+ ]
+ ]
+ },
+ {
+ "id": "fcd1f3c6.0e5ed",
+ "type": "block",
+ "name": "block",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 1779.2499771118164,
+ "y": 1345.4999799728394,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ [
+ "907603d2.1339e",
+ "1e47fe7b.f65f02",
+ "eb2cc8b8.8811b8"
+ ]
+ ]
+ },
+ {
+ "id": "bbf4a1c6.48d0e",
+ "type": "switchNode",
+ "name": "is NSSAI exists",
+ "xml": "<switch test='`$tmp.configDBSNSSAI == $tmp.sNSSAI`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2769.0274810791016,
+ "y": 842.2778072357178,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ [
+ "5faff031.b5532"
+ ]
+ ]
+ },
+ {
+ "id": "5faff031.b5532",
+ "type": "outcome",
+ "name": "True",
+ "xml": "<outcome value='true'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2192.2499351501465,
+ "y": 923.5000247955322,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ [
+ "e3ed491d.954e98"
+ ]
+ ]
+ },
+ {
+ "id": "aaa0dde.d7b212",
+ "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/terminateRANSlice.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"NSSAI exists for cucp plmninfo \"/>\n\n\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2266.2499351501465,
+ "y": 990.5000257492065,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "66a6e267.dfc32c",
+ "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/terminateRANSlice.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": 2827.1388092041016,
+ "y": 798.722249507904,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "b95f77aa.edfc98",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 2636.2501373291016,
+ "y": 772.500081539154,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ [
+ "66a6e267.dfc32c",
+ "bbf4a1c6.48d0e",
+ "c191c83d.0ed278"
+ ]
+ ]
+ },
+ {
+ "id": "c191c83d.0ed278",
+ "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-cps-response.['+ $idy +'].GNBCUCPFunction['+ $idz +'].NRCellCU['+ $idcu +'].attributes.pLMNInfoList['+ $id-cuplmn +'].sNSSAIList['+ $id-cusnssai +'].sNssai'`\" />\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 3007.1386108398438,
+ "y": 722.7222971916199,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "27d156bf.17d99a",
+ "type": "block",
+ "name": "Process CUUP",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 568.25,
+ "y": 1535.500009059906,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ [
+ "9bc70afb.740798",
+ "28530b29.61bf74",
+ "7774938a.4a229c"
+ ]
+ ]
+ },
+ {
+ "id": "9bc70afb.740798",
+ "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-cps-response.[' + $idy +'].GNBCUUPFunction_length'`\" />\n ",
+ "comments": "",
+ "outputs": 1,
+ "x": 899.25,
+ "y": 1545.500009059906,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "28530b29.61bf74",
+ "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/terminateRANSlice.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": 871.25,
+ "y": 1610.500009059906,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "7774938a.4a229c",
+ "type": "for",
+ "name": "foreach CUUP",
+ "xml": "<for index='id-cuup' start='0' end='`$tmp.CUUPList_length`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 899.25,
+ "y": 1685.500009059906,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ [
+ "74a0ec57.9a1604"
+ ]
+ ]
+ },
+ {
+ "id": "74a0ec57.9a1604",
+ "type": "block",
+ "name": "block : process CUUP",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 764.250129699707,
+ "y": 2045.5002117156982,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ [
+ "9856f937.6cb738",
+ "77adaf37.3fea6",
+ "5ff7e760.b99518",
+ "a2fa3115.9de0c",
+ "ab1a1337.b2d58",
+ "6708ee77.a084a",
+ "f5e9da0.26dd428",
+ "d4bbbf7a.0735b",
+ "1354575.1f5a3a9",
+ "b6699a74.f0bde8",
+ "580350ca.52acc",
+ "21699cfe.f96104",
+ "dd01cea.6808a3"
+ ]
+ ]
+ },
+ {
+ "id": "9856f937.6cb738",
+ "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-cps-response.['+ $idy +'].GNBCUUPFunction['+ $id-cuup +'].idGNBCUUPFunction'`\" />",
+ "comments": "",
+ "outputs": 1,
+ "x": 1181.2500457763672,
+ "y": 2098.500030517578,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "77adaf37.3fea6",
+ "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/terminateRANSlice.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": 1165.2501411437988,
+ "y": 2148.5000801086426,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "5ff7e760.b99518",
+ "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-cps-response.['+ $idy +'].GNBCUUPFunction['+ $id-cuup +'].attributes.pLMNInfoList_length'`\" />",
+ "comments": "",
+ "outputs": 1,
+ "x": 1161.2500457763672,
+ "y": 2202.500082015991,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "a2fa3115.9de0c",
+ "type": "for",
+ "name": "foreach pLMNInfo",
+ "xml": "<for index='id-plmn' start='0' end='1'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1005.2499923706055,
+ "y": 2337.500234603882,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ [
+ "1bc073ce.7ff5ac"
+ ]
+ ]
+ },
+ {
+ "id": "1bc073ce.7ff5ac",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 1127.2499923706055,
+ "y": 2409.500237226486,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ [
+ "6ccb5957.6e97a8",
+ "3a6bc5d.5ee993a",
+ "8a2c4744.a700e8"
+ ]
+ ]
+ },
+ {
+ "id": "f731369c.1f2078",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2255.250270843506,
+ "y": 2917.500340461731,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ [
+ "70956339.580aec"
+ ]
+ ]
+ },
+ {
+ "id": "70956339.580aec",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 2412.250274658203,
+ "y": 2910.5001454353333,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ [
+ "6b63917a.dd9e8",
+ "a6d21843.454a38",
+ "86a7278f.d35238"
+ ]
+ ]
+ },
+ {
+ "id": "a6d21843.454a38",
+ "type": "set",
+ "name": "set",
+ "xml": "<set>\n<parameter name='error-code' value='500'/>\n<parameter name='error-message' value='Error removing CUUP PLMNInfoList. Aborting RPC executiopn'/>",
+ "comments": "",
+ "x": 2657.2502822875977,
+ "y": 2911.500535964966,
+ "z": "ef6618ab.e71c28",
+ "wires": []
+ },
+ {
+ "id": "6b63917a.dd9e8",
+ "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 removing CUUP PLMNInfo. Aborting RPC executiopn'/>",
+ "comments": "",
+ "x": 2645.2502822875977,
+ "y": 2946.50053691864,
+ "z": "ef6618ab.e71c28",
+ "wires": []
+ },
+ {
+ "id": "e7366c55.27d0e",
+ "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/terminateRANSlice.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"Successfully removed - gNBCUUP PLMNInfo Entry\"/>",
+ "comments": "",
+ "outputs": 1,
+ "x": 2635.25008392334,
+ "y": 2994.5003414154053,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "f047b07.947bf5",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 2479.2500762939453,
+ "y": 2987.5001468658447,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ [
+ "e7366c55.27d0e"
+ ]
+ ]
+ },
+ {
+ "id": "1dc9bdec.d9f382",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2319.2500762939453,
+ "y": 2987.5003414154053,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ [
+ "f047b07.947bf5"
+ ]
+ ]
+ },
+ {
+ "id": "de0fc599.a60458",
+ "type": "switchNode",
+ "name": "ransim mounted",
+ "xml": "<switch test='`$prop.ransim-mounted`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2001.2500267028809,
+ "y": 2708.500386238098,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ [
+ "cd465c1d.33451",
+ "6febd0f9.d496"
+ ]
+ ]
+ },
+ {
+ "id": "cd465c1d.33451",
+ "type": "outcome",
+ "name": "Not Mounted",
+ "xml": "<outcome value='false'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2321.250129699707,
+ "y": 2758.500143557787,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ [
+ "fb4608b3.dc6428"
+ ]
+ ]
+ },
+ {
+ "id": "6febd0f9.d496",
+ "type": "outcome",
+ "name": "Mounted",
+ "xml": "<outcome value='true'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2354.250015258789,
+ "y": 2857.50035238266,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ [
+ "a99c6274.c44fa"
+ ]
+ ]
+ },
+ {
+ "id": "fb4608b3.dc6428",
+ "type": "execute",
+ "name": "generate terminate PLMNInfoListEntry CUUP URL",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$prop.restapi.terminateSNSSAIEntry.ToCUUP`\"/>\n <parameter name=\"outputPath\" value=\"tmp.deletePLMNInfo-CUUP.url\"/>\n <parameter name=\"target\" value=\"{idNearRTRIC}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.nearRTRICId`\"/>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2686.250015258789,
+ "y": 2770.50035238266,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "a7cd0e67.196b7",
+ "type": "execute",
+ "name": "prepare idGNBCUUPFunction",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$tmp.deletePLMNInfo-CUUP.url`\"/>\n <parameter name=\"outputPath\" value=\"tmp.deletePLMNInfo-CUUP.url\"/>\n <parameter name=\"target\" value=\"{idGNBCUUPFunction}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.idGNBCUUPFunction`\"/>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2017.2499694824219,
+ "y": 2812.500144004822,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "6708ee77.a084a",
+ "type": "set",
+ "name": "Calculate RRMPolicyRatio",
+ "xml": "<set>\n<parameter name='tmp.maxNumberOfDRBsPerNSSAI' value='`$tmp.payload.maxNumberofConns*4`' />\n<parameter name='tmp.maxNumberOfDRBsPerCUUP' value='`$tmp.maxNumberOfDRBsPerNSSAI /$tmp.CUUPList_length`' />\n<parameter name='tmp.rRMPolicyDedicatedRatio1' value='`$tmp.maxNumberOfDRBsPerCUUP*100`' />\n<parameter name='tmp.rRMPolicyDedicatedRatio-CUUP' value='`$tmp.rRMPolicyDedicatedRatio1/$prop.cuupfunction.maxNumberOfDRBsPerCUUP`' />",
+ "comments": "",
+ "x": 1377.2501373291016,
+ "y": 3187.500394821167,
+ "z": "ef6618ab.e71c28",
+ "wires": []
+ },
+ {
+ "id": "f5e9da0.26dd428",
+ "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/terminateRANSlice.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"RRMPolicyRatio for this profile is - \"/>\n<parameter name=\"field2\" value=\"`$tmp.rRMPolicyDedicatedRatio-CUUP`\"/>",
+ "comments": "",
+ "outputs": 1,
+ "x": 1335.2501411437988,
+ "y": 3252.500394821167,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "d4bbbf7a.0735b",
+ "type": "switchNode",
+ "name": "ransim mounted",
+ "xml": "<switch test='`$prop.ransim-mounted`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1401.2500457763672,
+ "y": 3298.5002002716064,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ [
+ "362a55dc.680b9a",
+ "2250a766.25eda8"
+ ]
+ ]
+ },
+ {
+ "id": "362a55dc.680b9a",
+ "type": "outcome",
+ "name": "Not Mounted",
+ "xml": "<outcome value='false'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1710.2499771118164,
+ "y": 3254.4997596740723,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ [
+ "8d0f0adf.b01368"
+ ]
+ ]
+ },
+ {
+ "id": "8d0f0adf.b01368",
+ "type": "execute",
+ "name": "fetch RRMPolicyRatio CUUP - URL",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$prop.restapi.RRMPolicyRatioEntry.ToGNBCUUP`\"/>\n <parameter name=\"outputPath\" value=\"tmp.getRRMPolicyRatio-CUUP.url\"/>\n <parameter name=\"target\" value=\"{idNearRTRIC}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.nearRTRICId`\"/>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1969.2497863769531,
+ "y": 3256.49995470047,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "1354575.1f5a3a9",
+ "type": "execute",
+ "name": "prepare idGNBCUUPFunction",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$tmp.getRRMPolicyRatio-CUUP.url`\"/>\n <parameter name=\"outputPath\" value=\"tmp.getRRMPolicyRatio-CUUP.url\"/>\n <parameter name=\"target\" value=\"{idGNBCUUPFunction}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.idGNBCUUPFunction`\"/>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1448.2501430511475,
+ "y": 3347.5003967285156,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "b6699a74.f0bde8",
+ "type": "execute",
+ "name": "fetch RRMPolicyRatio - CUUP",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"restapiUrl\" value=\"`$prop.controller.url + $tmp.getRRMPolicyRatio-CUUP.url`\"/>\n<parameter name=\"restapiUser\" value=\"`$prop.controller.user`\" />\n<parameter name=\"restapiPassword\" value=\"`$prop.controller.pwd`\"/>\n<parameter name=\"httpMethod\" value=\"GET\"/>\n<parameter name=\"responsePrefix\" value=\"get-rrmpolicyratio-cuup-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": 1467.2501419782639,
+ "y": 3395.5003490448,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ [
+ "3b91c31a.5efd6c",
+ "6678646.cb12f9c"
+ ]
+ ]
+ },
+ {
+ "id": "3b91c31a.5efd6c",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1873.2501754760742,
+ "y": 3360.5001516342163,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ [
+ "a5535451.b14438"
+ ]
+ ]
+ },
+ {
+ "id": "a5535451.b14438",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 2047.2501754760742,
+ "y": 3371.4999561309814,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ [
+ "9cfb1fad.e0a4e",
+ "ef16bee3.b9b7",
+ "86a7278f.d35238"
+ ]
+ ]
+ },
+ {
+ "id": "ef16bee3.b9b7",
+ "type": "set",
+ "name": "set",
+ "xml": "<set>\n<parameter name='error-code' value='500'/>\n<parameter name='error-message' value='Error in retrieving RRMPolicyRatio. Aborting RPC executiopn'/>",
+ "comments": "",
+ "x": 2239.249984741211,
+ "y": 3316.4999561309814,
+ "z": "ef6618ab.e71c28",
+ "wires": []
+ },
+ {
+ "id": "9cfb1fad.e0a4e",
+ "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 in fetching RRMPolicyRatio. Aborting RPC executiopn'/>",
+ "comments": "",
+ "x": 2283.249984741211,
+ "y": 3360.4999561309814,
+ "z": "ef6618ab.e71c28",
+ "wires": []
+ },
+ {
+ "id": "50abea47.3c39c4",
+ "type": "execute",
+ "name": "printContext",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='printContext' >\n<parameter name='filename' value='/opt/opendaylight/current/data/log/ranSlice-instantiateRANSlice-configrsp-context.log' />\n\n\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2270.249984741211,
+ "y": 3439.5003480911255,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "1e3eb9a5.be1626",
+ "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/terminateRANSlice.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"Successfully Retrieved - RRMPolicyRatio\"/>",
+ "comments": "",
+ "outputs": 1,
+ "x": 2262.249984741211,
+ "y": 3395.500347137451,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "3ab190e9.0f16f",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 2053.2499809265137,
+ "y": 3417.500347137451,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ [
+ "1e3eb9a5.be1626",
+ "50abea47.3c39c4"
+ ]
+ ]
+ },
+ {
+ "id": "6678646.cb12f9c",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1872.2501754760742,
+ "y": 3416.5001525878906,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ [
+ "3ab190e9.0f16f"
+ ]
+ ]
+ },
+ {
+ "id": "580350ca.52acc",
+ "type": "execute",
+ "name": "read rrmpolicyratio list size",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'>\n\t<parameter name='outputPath' value='tmp.rrmPolicyRatioList_CUUP_length' />\n\t<parameter name='source' value=\"`'get-rrmpolicyratio-cuup-response.attributes.RRMPolicyRatio_length'`\" />\n ",
+ "comments": "",
+ "outputs": 1,
+ "x": 1466.2501411437988,
+ "y": 3442.5003986358643,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "21699cfe.f96104",
+ "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/terminateRANSlice.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"CUUP - RRMPolicyRatioList size\"/>\n<parameter name=\"field2\" value=\"`$tmp.rrmPolicyRatioList_CUUP_length`\"/>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1429.2501430511475,
+ "y": 3491.5003986358643,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "dd01cea.6808a3",
+ "type": "for",
+ "name": "for each rrmpolicyratio",
+ "xml": "<for index='idcuup-rrm' start='0' end='`$tmp.rrmPolicyRatioList_CUUP_length`' >\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1484.9166469573975,
+ "y": 3535.8336029052734,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ [
+ "46bd8ed4.c173a"
+ ]
+ ]
+ },
+ {
+ "id": "46bd8ed4.c173a",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 1810.9166793823242,
+ "y": 3468.833489894867,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ [
+ "f82bb9bf.adee38",
+ "58c36fb8.f4dfe",
+ "dc7ec7e1.74ebf8",
+ "fe57d7c.f7b2f28",
+ "2b1fd179.9e31fe",
+ "9fc7c5b.0387d38",
+ "b9a6e18d.cb90d",
+ "8988f981.ab5bc8",
+ "50e238c2.478fb8"
+ ]
+ ]
+ },
+ {
+ "id": "559e943e.90a8ac",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 2606.9165573120117,
+ "y": 3702.833737850189,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ [
+ "dbea6191.b6fb9"
+ ]
+ ]
+ },
+ {
+ "id": "dbea6191.b6fb9",
+ "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/terminateRANSlice.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"Successfully removed - CUUP RRMpolicyRatio\"/>",
+ "comments": "",
+ "outputs": 1,
+ "x": 2800.9167098999023,
+ "y": 3732.8335547447205,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "705587fc.d21528",
+ "type": "set",
+ "name": "set",
+ "xml": "<set>\n<parameter name='error-code' value='500'/>\n<parameter name='error-message' value='Error removing CUUP RRMPolicyRatio. Aborting RPC executiopn'/>",
+ "comments": "",
+ "x": 2866.916528701782,
+ "y": 3789.833432197571,
+ "z": "ef6618ab.e71c28",
+ "wires": []
+ },
+ {
+ "id": "10f16f77.8cc841",
+ "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 removing RRMPolicyRatio. Aborting RPC executiopn'/>",
+ "comments": "",
+ "x": 2881.916648864746,
+ "y": 3837.833432197571,
+ "z": "ef6618ab.e71c28",
+ "wires": []
+ },
+ {
+ "id": "e27c1ccb.1012e",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 2603.91707611084,
+ "y": 3764.8333716392517,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ [
+ "10f16f77.8cc841",
+ "705587fc.d21528"
+ ]
+ ]
+ },
+ {
+ "id": "7ed88f17.7c3a3",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2386.9165382385254,
+ "y": 3763.8331661224365,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ [
+ "e27c1ccb.1012e"
+ ]
+ ]
+ },
+ {
+ "id": "eecde6e4.e3a8f8",
+ "type": "block",
+ "name": "Process gNBDU",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 931.0001754760742,
+ "y": 4173.250737667084,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ [
+ "76145fcc.8ce7b",
+ "402dedb2.a803e4",
+ "bbee6e.03d2419"
+ ]
+ ]
+ },
+ {
+ "id": "76145fcc.8ce7b",
+ "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-cps-response.[' + $idy +'].GNBDUFunction_length'`\" />\n ",
+ "comments": "",
+ "outputs": 1,
+ "x": 1260.0001754760742,
+ "y": 4204.250737667084,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "402dedb2.a803e4",
+ "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/terminateRANSlice.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": 1218.0001602172852,
+ "y": 4265.250737667084,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "bbee6e.03d2419",
+ "type": "for",
+ "name": "foreach DU",
+ "xml": "<for index='id-du' start='0' end='`$tmp.DUList_length`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1233.0001907348633,
+ "y": 4331.25036239624,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ [
+ "6de5245b.782a6c"
+ ]
+ ]
+ },
+ {
+ "id": "6de5245b.782a6c",
+ "type": "block",
+ "name": "block : process gNBDU",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 1511.0001754760742,
+ "y": 4336.250707149506,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ [
+ "7d317821.61d7c8",
+ "c99a7bb2.d2c4f8",
+ "cb1c80ff.a4959",
+ "c1fc5387.33572"
+ ]
+ ]
+ },
+ {
+ "id": "7d317821.61d7c8",
+ "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-cps-response.['+ $idy +'].GNBDUFunction['+ $id-du +'].idGNBDUFunction'`\" />",
+ "comments": "",
+ "outputs": 1,
+ "x": 1790,
+ "y": 4332.250009059906,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "c99a7bb2.d2c4f8",
+ "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/terminateRANSlice.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": 1763,
+ "y": 4383.250009059906,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "cb1c80ff.a4959",
+ "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 +'].GNBDUFunction[' + $id-du +'].NRCellDU_length'`\" />\n ",
+ "comments": "",
+ "outputs": 1,
+ "x": 1772,
+ "y": 4442.250364303589,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "c1fc5387.33572",
+ "type": "for",
+ "name": "for cellDUList",
+ "xml": "<for index='id-celldu' start='0' end='`$tmp.cellDUList_length`' >\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1808.9999771118164,
+ "y": 4521.250267028809,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ [
+ "e3e4bd80.17ff5"
+ ]
+ ]
+ },
+ {
+ "id": "47b8e29b.68b05c",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 2765.750087738037,
+ "y": 4646.250267028809,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ [
+ "ebbfda07.d46a88",
+ "4e279e5c.a4eee",
+ "c71f0415.b873e8",
+ "989b72d8.79a82",
+ "e0591127.1aa78",
+ "838735f7.074d68",
+ "9202a636.ecee78",
+ "ce857891.b48ff8",
+ "c2bbc497.437918",
+ "60877c7e.f704b4",
+ "a0cd0fbb.6491d",
+ "4734669f.9445a8",
+ "b2cb93a7.0ea5b",
+ "5e5d6483.74da7c",
+ "abfcd08f.28a71"
+ ]
+ ]
+ },
+ {
+ "id": "ce857891.b48ff8",
+ "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/terminateRANSlice.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": 3015.75,
+ "y": 4525.250009059906,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "9202a636.ecee78",
+ "type": "switchNode",
+ "name": "ransim mounted",
+ "xml": "<switch test='`$prop.ransim-mounted`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 3043.75,
+ "y": 4593.250009059906,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ [
+ "582e6609.faff28",
+ "f772487a.c66838"
+ ]
+ ]
+ },
+ {
+ "id": "582e6609.faff28",
+ "type": "outcome",
+ "name": "Not Mounted",
+ "xml": "<outcome value='false'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 3251.75,
+ "y": 4558.249764919281,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ [
+ "1f2df361.c3e70d"
+ ]
+ ]
+ },
+ {
+ "id": "f772487a.c66838",
+ "type": "outcome",
+ "name": "Mounted",
+ "xml": "<outcome value='true'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 3246.7500495910645,
+ "y": 4627.250333309174,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ [
+ "160b7724.4df4a9"
+ ]
+ ]
+ },
+ {
+ "id": "1f2df361.c3e70d",
+ "type": "execute",
+ "name": "generate terminate PLMNInfoListEntry ToNRCellDU",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$prop.restapi.terminateSNSSAIEntry.ToNRCellDU`\"/>\n <parameter name=\"outputPath\" value=\"tmp.deletePLMNInfoListEntry-cellDU.url\"/>\n <parameter name=\"target\" value=\"{idNearRTRIC}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.nearRTRICId`\"/>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 3571.75,
+ "y": 4573.250009059906,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "ebbfda07.d46a88",
+ "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": 3047.750141143799,
+ "y": 4632.250660896301,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "989b72d8.79a82",
+ "type": "execute",
+ "name": "prepare idGNBDUFunction",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$tmp.deletePLMNInfoListEntry-cellDU.url`\"/>\n <parameter name=\"outputPath\" value=\"tmp.deletePLMNInfoListEntry-cellDU.url\"/>\n <parameter name=\"target\" value=\"{idGNBDUFunction}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.GNBDUId`\"/>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 3095.750213623047,
+ "y": 4746.2501912117,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "e0591127.1aa78",
+ "type": "execute",
+ "name": "prepare idNRCellDU",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$tmp.deletePLMNInfoListEntry-cellDU.url`\"/>\n <parameter name=\"outputPath\" value=\"tmp.deletePLMNInfoListEntry-cellDU.url\"/>\n <parameter name=\"target\" value=\"{idNRCellDU}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.cellDULocalId`\"/>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 3068.7503967285156,
+ "y": 4801.250193119049,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "838735f7.074d68",
+ "type": "execute",
+ "name": "prepare mcc",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$tmp.deletePLMNInfoListEntry-cellDU.url`\"/>\n <parameter name=\"outputPath\" value=\"tmp.deletePLMNInfoListEntry-cellDU.url\"/>\n <parameter name=\"target\" value=\"{mcc}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.mcc`\"/>\n ",
+ "comments": "",
+ "outputs": 1,
+ "x": 3053.750198364258,
+ "y": 4845.500692367554,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "4e279e5c.a4eee",
+ "type": "execute",
+ "name": "prepare mnc",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$tmp.deletePLMNInfoListEntry-cellDU.url`\"/>\n <parameter name=\"outputPath\" value=\"tmp.deletePLMNInfoListEntry-cellDU.url\"/>\n <parameter name=\"target\" value=\"{mnc}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.mnc`\"/>",
+ "comments": "",
+ "outputs": 1,
+ "x": 3054.500442504883,
+ "y": 4889.750266551971,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "c71f0415.b873e8",
+ "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/terminateRANSlice.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.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.sNSSAI`\"/>\n<parameter name=\"field8\" value=\"`$tmp.deletePLMNInfoListEntry-cellDU.url`\"/>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 3062.7499465942383,
+ "y": 4978.250371932983,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "c2bbc497.437918",
+ "type": "execute",
+ "name": "terminate PLMNInfoListEntry ToNRCellDU",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"restapiUrl\" value=\"`$prop.controller.url + $tmp.deletePLMNInfoListEntry-cellDU.url`\"/>\n<parameter name=\"restapiUser\" value=\"`$prop.controller.user`\" />\n<parameter name=\"restapiPassword\" value=\"`$prop.controller.pwd`\"/>\n<parameter name=\"httpMethod\" value=\"DELETE\"/>\n<parameter name=\"responsePrefix\" value=\"delete-cellDU-PLMNInfoList-response\"/>\n<parameter name='contentType' value='application/json' /> \n<parameter name='format' value='json' />",
+ "comments": "",
+ "outputs": 1,
+ "x": 3110.7499465942383,
+ "y": 5017.499982833862,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ [
+ "f67ae9b2.d91b98",
+ "eda6f1d0.16c07"
+ ]
+ ]
+ },
+ {
+ "id": "eda6f1d0.16c07",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 3363.749954223633,
+ "y": 4883.499980926514,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ [
+ "beedc21.59a444"
+ ]
+ ]
+ },
+ {
+ "id": "f67ae9b2.d91b98",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 3390.749954223633,
+ "y": 5014.499982833862,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ [
+ "b4ac4492.bb7348"
+ ]
+ ]
+ },
+ {
+ "id": "beedc21.59a444",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 3527.750343322754,
+ "y": 4857.499980926514,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ [
+ "3cdb3e0c.c9e822",
+ "6377aba4.4e1d74",
+ "86a7278f.d35238"
+ ]
+ ]
+ },
+ {
+ "id": "b4ac4492.bb7348",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 3534.749954223633,
+ "y": 5012.499982833862,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ [
+ "8e740662.df0ea8"
+ ]
+ ]
+ },
+ {
+ "id": "8e740662.df0ea8",
+ "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/instantiateRANSliceModifyAllocate.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"Successfully deleted - cellDU PLMNInfo List\"/>",
+ "comments": "",
+ "outputs": 1,
+ "x": 3706.7495651245117,
+ "y": 4991.500372886658,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "3cdb3e0c.c9e822",
+ "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 deleting NECellDU - PLMNInfo. Aborting RPC executiopn'/>",
+ "comments": "",
+ "x": 3709.749954223633,
+ "y": 4918.499980926514,
+ "z": "ef6618ab.e71c28",
+ "wires": []
+ },
+ {
+ "id": "6377aba4.4e1d74",
+ "type": "set",
+ "name": "set",
+ "xml": "<set>\n<parameter name='error-code' value='500'/>\n<parameter name='error-message' value='Error deleting cellDU PLMNInfoList. Aborting RPC executiopn'/>",
+ "comments": "",
+ "x": 3708.7499561309814,
+ "y": 4852.499979972839,
+ "z": "ef6618ab.e71c28",
+ "wires": []
+ },
+ {
+ "id": "60877c7e.f704b4",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 2914,
+ "y": 5338.500009059906,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ [
+ "2a46ba54.429216",
+ "90363258.58443",
+ "f6d5ea85.89e9c8",
+ "b02dd3ad.ec429",
+ "2d25771d.f89158",
+ "bba6efea.49983",
+ "df68ec93.f7152",
+ "fab35c07.8a393"
+ ]
+ ]
+ },
+ {
+ "id": "2a46ba54.429216",
+ "type": "switchNode",
+ "name": "ransim mounted",
+ "xml": "<switch test='`$prop.ransim-mounted`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 3137.9999465942383,
+ "y": 5311.499985694885,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ [
+ "9fe18faa.a0f84",
+ "aa35c14e.99f5f"
+ ]
+ ]
+ },
+ {
+ "id": "9fe18faa.a0f84",
+ "type": "outcome",
+ "name": "Not Mounted",
+ "xml": "<outcome value='false'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 3330.000144958496,
+ "y": 5265.500375747681,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ [
+ "2423dd23.e54072"
+ ]
+ ]
+ },
+ {
+ "id": "2423dd23.e54072",
+ "type": "execute",
+ "name": "fetch RRMPolicyRatio NRCellDU - URL",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$prop.restapi.RRMPolicyRatioEntry.ToGNBDU`\"/>\n <parameter name=\"outputPath\" value=\"tmp.getRRMPolicyRatio-gNBDU.url\"/>\n <parameter name=\"target\" value=\"{idNearRTRIC}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.nearRTRICId`\"/>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 3660.0003509521484,
+ "y": 5289.500375747681,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "90363258.58443",
+ "type": "execute",
+ "name": "prepare idGNBDUFunction",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$tmp.getRRMPolicyRatio-gNBDU.url`\"/>\n <parameter name=\"outputPath\" value=\"tmp.getRRMPolicyRatio-gNBDU.url\"/>\n <parameter name=\"target\" value=\"{idGNBDUFunction}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.GNBDUId`\"/>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 3162.9999465942383,
+ "y": 5378.49998664856,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "f6d5ea85.89e9c8",
+ "type": "execute",
+ "name": "prepare idNRCellDU",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$tmp.getRRMPolicyRatio-gNBDU.url`\"/>\n <parameter name=\"outputPath\" value=\"tmp.getRRMPolicyRatio-gNBDU.url\"/>\n <parameter name=\"target\" value=\"{idNRCellDU}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.cellDULocalId`\"/>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 3138.9999465942383,
+ "y": 5435.499987602234,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "b02dd3ad.ec429",
+ "type": "execute",
+ "name": "fetch RRMPolicyRatio - NRCellDU",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"restapiUrl\" value=\"`$prop.controller.url + $tmp.getRRMPolicyRatio-gNBDU.url`\"/>\n<parameter name=\"restapiUser\" value=\"`$prop.controller.user`\" />\n<parameter name=\"restapiPassword\" value=\"`$prop.controller.pwd`\"/>\n<parameter name=\"httpMethod\" value=\"GET\"/>\n<parameter name=\"responsePrefix\" value=\"get-rrmpolicyratio-du-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": 3173.9999465942383,
+ "y": 5482.499988555908,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ [
+ "b57d19e7.548a18",
+ "df0e63b4.de489"
+ ]
+ ]
+ },
+ {
+ "id": "b57d19e7.548a18",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 3397.9999504089355,
+ "y": 5468.499987602234,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ [
+ "37bdbcbc.662a04"
+ ]
+ ]
+ },
+ {
+ "id": "df0e63b4.de489",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 3425.999954223633,
+ "y": 5528.499988555908,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ [
+ "bca5f748.ae09c8"
+ ]
+ ]
+ },
+ {
+ "id": "37bdbcbc.662a04",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 3562.000343322754,
+ "y": 5452.49998664856,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ [
+ "bbf6fe5e.9ebd6",
+ "a3665298.088d4",
+ "86a7278f.d35238"
+ ]
+ ]
+ },
+ {
+ "id": "a3665298.088d4",
+ "type": "set",
+ "name": "set",
+ "xml": "<set>\n<parameter name='error-code' value='500'/>\n<parameter name='error-message' value='Error in retrieving RRMPolicyRatio. Aborting RPC executiopn'/>",
+ "comments": "",
+ "x": 3762.000347137451,
+ "y": 5416.49998664856,
+ "z": "ef6618ab.e71c28",
+ "wires": []
+ },
+ {
+ "id": "bbf6fe5e.9ebd6",
+ "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 in Fetching RRMPolicyRatio - CellDU. Aborting RPC executiopn'/>",
+ "comments": "",
+ "x": 3778.999954223633,
+ "y": 5452.499988555908,
+ "z": "ef6618ab.e71c28",
+ "wires": []
+ },
+ {
+ "id": "bca5f748.ae09c8",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 3589.250343322754,
+ "y": 5518.249988555908,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ [
+ "c036dd8f.0b775",
+ "6381203e.c0e7e"
+ ]
+ ]
+ },
+ {
+ "id": "c036dd8f.0b775",
+ "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/instantiateRANSliceModifyAllocate.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"Successfully Retrieved - RRMPolicyRatio\"/>",
+ "comments": "",
+ "outputs": 1,
+ "x": 3757.500347137451,
+ "y": 5498.249988555908,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "6381203e.c0e7e",
+ "type": "execute",
+ "name": "printContext",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='printContext' >\n<parameter name='filename' value='/opt/opendaylight/current/data/log/ranSlice-instantiateRANSlice-configrsp-context.log' />\n\n\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 3772.0003509521484,
+ "y": 5542.749988555908,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "2d25771d.f89158",
+ "type": "execute",
+ "name": "read rrmpolicyratio list size",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'>\n\t<parameter name='outputPath' value='tmp.rrmPolicyRatioDUList_length' />\n\t<parameter name='source' value=\"`'get-rrmpolicyratio-du-response.attributes.RRMPolicyRatio_length'`\" />\n ",
+ "comments": "",
+ "outputs": 1,
+ "x": 3145.9999465942383,
+ "y": 5538.499988555908,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "bba6efea.49983",
+ "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/terminateRANSlice.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"RRMPolicyRatioList size\"/>\n<parameter name=\"field2\" value=\"`$tmp.rrmPolicyRatioDUList_length`\"/>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 3101.9999465942383,
+ "y": 5580.4999895095825,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "df68ec93.f7152",
+ "type": "block",
+ "name": "rrmPolicyDedicatedRatio",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 3717.000343322754,
+ "y": 5241.499984741211,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ [
+ "8dff4ba1.356208",
+ "748e1d72.6aec34",
+ "5687c665.3d66c8",
+ "6c58dbcc.0312d4",
+ "cf586feb.3f85f",
+ "9bd25672.099568",
+ "8ce33bb1.456d58",
+ "1b28c419.181bfc",
+ "9835b420.63cae8",
+ "e5710ecc.f30db",
+ "2910c8a9.7f88f8"
+ ]
+ ]
+ },
+ {
+ "id": "5687c665.3d66c8",
+ "type": "set",
+ "name": "Calculate RRM Parms1",
+ "xml": "<set>\n<parameter name='tmp.uLThptPerSlice' value='`$payloadJson.input.sliceProfile.uLThptPerSlice`' />\n",
+ "comments": "",
+ "x": 4138.989807128906,
+ "y": 4908.822762012482,
+ "z": "ef6618ab.e71c28",
+ "wires": []
+ },
+ {
+ "id": "6c58dbcc.0312d4",
+ "type": "set",
+ "name": "Calculate RRM Parms2",
+ "xml": "<set>\n<parameter name='tmp.dLThptPerSlice' value='`$payloadJson.input.sliceProfile.dLThptPerSlice`' />\n",
+ "comments": "",
+ "x": 4147.531066894531,
+ "y": 4953.842781484127,
+ "z": "ef6618ab.e71c28",
+ "wires": []
+ },
+ {
+ "id": "cf586feb.3f85f",
+ "type": "set",
+ "name": "Calculate RRM Parms3",
+ "xml": "<set>\n<parameter name='tmp.maxNumberOfConns' value='`$payloadJson.input.sliceProfile.maxNumberOfConns`' />",
+ "comments": "",
+ "x": 4137.531188964844,
+ "y": 5008.8426594138145,
+ "z": "ef6618ab.e71c28",
+ "wires": []
+ },
+ {
+ "id": "9bd25672.099568",
+ "type": "set",
+ "name": "Calculate RRM Parms4",
+ "xml": "<set>\n<parameter name='tmp.nearRTRIC.trafficCapacity1' value='`$tmp.uLThptPerSlice + $tmp.dLThptPerSlice`' />\n",
+ "comments": "",
+ "x": 4137.531066894531,
+ "y": 5059.842659473419,
+ "z": "ef6618ab.e71c28",
+ "wires": []
+ },
+ {
+ "id": "8ce33bb1.456d58",
+ "type": "set",
+ "name": "Calculate RRM Parms5",
+ "xml": "<set>\n<parameter name='tmp.nearRTRIC.trafficCapacity' value='`$tmp.nearRTRIC.trafficCapacity1 / 2`' />",
+ "comments": "",
+ "x": 4125.531188964844,
+ "y": 5119.842781484127,
+ "z": "ef6618ab.e71c28",
+ "wires": []
+ },
+ {
+ "id": "1b28c419.181bfc",
+ "type": "set",
+ "name": "Calculate RRM Parms6",
+ "xml": "<set>\n<parameter name='tmp.nearRTRIC.trafficCapacityBPS' value='`$tmp.nearRTRIC.trafficCapacity * 1000000`' />",
+ "comments": "",
+ "x": 4163.531066894531,
+ "y": 5169.842781484127,
+ "z": "ef6618ab.e71c28",
+ "wires": []
+ },
+ {
+ "id": "9835b420.63cae8",
+ "type": "set",
+ "name": "Calculate RRM Parms7",
+ "xml": "<set>\n<parameter name='tmp.nrcelldu.totalPRBForSNSSAI' value='`$tmp.nearRTRIC.trafficCapacityBPS / 1008000`' />\n",
+ "comments": "",
+ "x": 4150.531005859375,
+ "y": 5239.843147754669,
+ "z": "ef6618ab.e71c28",
+ "wires": []
+ },
+ {
+ "id": "e5710ecc.f30db",
+ "type": "set",
+ "name": "calculation8",
+ "xml": "<set>\n<parameter name='tmp.nrcelldu.PRBPerImpactedCell' value='`$tmp.nrcelldu.totalPRBForSNSSAI / $tmp.cellDUList_length`' />\n",
+ "comments": "",
+ "x": 4121.531005859375,
+ "y": 5303.842171192169,
+ "z": "ef6618ab.e71c28",
+ "wires": []
+ },
+ {
+ "id": "2910c8a9.7f88f8",
+ "type": "set",
+ "name": "calculation9",
+ "xml": "<set>\n<parameter name='tmp.rRMPolicyDedicatedRatio.CellDU1' value='`$tmp.nrcelldu.PRBPerImpactedCell * 100`' />\n",
+ "comments": "",
+ "x": 4109.531555175781,
+ "y": 5354.842049121857,
+ "z": "ef6618ab.e71c28",
+ "wires": []
+ },
+ {
+ "id": "748e1d72.6aec34",
+ "type": "set",
+ "name": "calculation10",
+ "xml": "<set>\n<parameter name='tmp.rRMPolicyDedicatedRatio.CellDU' value='`$tmp.rRMPolicyDedicatedRatio.CellDU1 / $prop.nrcelldu.TotalPRBsPerCell`' />\n",
+ "comments": "",
+ "x": 4084.9898681640625,
+ "y": 5420.822517871857,
+ "z": "ef6618ab.e71c28",
+ "wires": []
+ },
+ {
+ "id": "8dff4ba1.356208",
+ "type": "record",
+ "name": "record",
+ "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.FileRecorder\">\n<parameter name=\"file\" value=\"/opt/opendaylight/current/data/log/instantiateRANSlice.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"rRMPolicyDedicatedRatio for CellDU \"/>\n<parameter name=\"field2\" value=\"`$tmp.rRMPolicyDedicatedRatio.CellDU`\"/>\n<parameter name=\"field3\" value=\"tmp.nearRTRIC.trafficCapacity1 \"/>\n<parameter name=\"field4\" value=\"`$tmp.nearRTRIC.trafficCapacity1`\"/>\n<parameter name=\"field5\" value=\"tmp.nearRTRIC.trafficCapacity \"/>\n<parameter name=\"field6\" value=\"`$tmp.nearRTRIC.trafficCapacity`\"/>\n<parameter name=\"field7\" value=\"tmp.nearRTRIC.trafficCapacityBPS\"/>\n<parameter name=\"field8\" value=\"`$tmp.nearRTRIC.trafficCapacityBPS`\"/>\n<parameter name=\"field9\" value=\"tmp.nrcelldu.totalPRBForSNSSAI \"/>\n<parameter name=\"field10\" value=\"`$tmp.nrcelldu.totalPRBForSNSSAI`\"/>\n<parameter name=\"field11\" value=\"tmp.nrcelldu.PRBPerImpactedCell \"/>\n<parameter name=\"field12\" value=\"`$tmp.nrcelldu.PRBPerImpactedCell`\"/>\n<parameter name=\"field13\" value=\"tmp.rRMPolicyDedicatedRatio.CellDU1 \"/>\n<parameter name=\"field14\" value=\"`$tmp.rRMPolicyDedicatedRatio.CellDU1`\"/>",
+ "comments": "",
+ "outputs": 1,
+ "x": 3910.9997940063477,
+ "y": 5432.943824291229,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "fab35c07.8a393",
+ "type": "for",
+ "name": "for each rrmpolicyratio",
+ "xml": "<for index='iddu-rrm' start='0' end='`$tmp.rrmPolicyRatioDUList_length`' >\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 3131.25,
+ "y": 5622.500009059906,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ [
+ "242e0ea7.a01722"
+ ]
+ ]
+ },
+ {
+ "id": "242e0ea7.a01722",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 3342.250343322754,
+ "y": 5624.499990463257,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ [
+ "969e0685.f850b8",
+ "3c6e1a79.f26096",
+ "aa2e708b.e308a",
+ "4203c5c.ffe3e3c",
+ "4215cbad.f74294",
+ "35ec1dcf.6b70f2",
+ "fc856f47.9a3c5",
+ "2a875355.2f2dcc",
+ "5c5f4115.5dccd"
+ ]
+ ]
+ },
+ {
+ "id": "77051153.b9545",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 3946.250160217285,
+ "y": 5844.750289440155,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ [
+ "db6d8510.b1f948"
+ ]
+ ]
+ },
+ {
+ "id": "db6d8510.b1f948",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 4138.500228881836,
+ "y": 5858.500289440155,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ [
+ "fd72482b.782be8"
+ ]
+ ]
+ },
+ {
+ "id": "fd72482b.782be8",
+ "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/terminateRANSlice.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"Successfully removed - cellDU RRMpolicyRatio\"/>",
+ "comments": "",
+ "outputs": 1,
+ "x": 4336.000595092773,
+ "y": 5849.500051021576,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "1422c9f5.506f26",
+ "type": "set",
+ "name": "set",
+ "xml": "<set>\n<parameter name='error-code' value='500'/>\n<parameter name='error-message' value='Error removing cellDU RRMPolicyRatio. Aborting RPC executiopn'/>",
+ "comments": "",
+ "x": 4404.25,
+ "y": 5877.49978017807,
+ "z": "ef6618ab.e71c28",
+ "wires": []
+ },
+ {
+ "id": "723db737.6846c8",
+ "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 removing RRMPolicyRatio for NRCellDU. Aborting RPC executiopn'/>",
+ "comments": "",
+ "x": 4409.2498779296875,
+ "y": 5972.499841213226,
+ "z": "ef6618ab.e71c28",
+ "wires": []
+ },
+ {
+ "id": "93bbc5eb.b554a8",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 4164.250244140625,
+ "y": 5926.49978017807,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ [
+ "723db737.6846c8",
+ "1422c9f5.506f26",
+ "86a7278f.d35238"
+ ]
+ ]
+ },
+ {
+ "id": "d2b03e66.99c87",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 3945.25,
+ "y": 5921.49978017807,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ [
+ "93bbc5eb.b554a8"
+ ]
+ ]
+ },
+ {
+ "id": "86a7278f.d35238",
+ "type": "block",
+ "name": "block : SO Response",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 4488.734375,
+ "y": 2826.5000116825104,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ [
+ "da43e71c.cf65c8",
+ "92154f9e.512d4",
+ "ed5ff34a.259f9"
+ ]
+ ]
+ },
+ {
+ "id": "da43e71c.cf65c8",
+ "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=\"success\"/>\n<parameter name=\"tmp.reason\" value=\"`$error-message`\"/>\n<parameter name=\"tmp.requestID\" value=\"`$terminate-r-a-n-slice-input.common-header.request-id `\"/>\n<parameter name=\"tmp.action\" value=\"`$terminate-r-a-n-slice-instance-input.action`\"/>\n\n\n\n",
+ "comments": "",
+ "x": 5150.7353515625,
+ "y": 2618.3996698856354,
+ "z": "ef6618ab.e71c28",
+ "wires": []
+ },
+ {
+ "id": "92154f9e.512d4",
+ "type": "record",
+ "name": "record configdb RestAPI parms",
+ "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.FileRecorder\">\n<parameter name=\"file\" value=\"/opt/opendaylight/current/data/log/so-callback-response.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"URL for SO Callback Response\"/>\n<parameter name='field2' value=\"`$tmp.so.callbackURL`\" />\n<parameter name='field3' value=\"`$tmp.status`\" />\n<parameter name='field4' value=\"`$tmp.reason`\" />\n<parameter name='field5' value=\"`$tmp.requestID`\" />\n<parameter name='field6' value=\"`$tmp.action`\" />",
+ "comments": "",
+ "outputs": 1,
+ "x": 5125.734237670898,
+ "y": 2715.5003473758698,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "ed5ff34a.259f9",
+ "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-terminate-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\"/>\n<parameter name=\"restapiUser\" value=\"`$prop.restapi.so.user`\" />\n<parameter name=\"restapiPassword\" value=\"`$prop.restapi.so.password`\"/>",
+ "comments": "",
+ "outputs": 1,
+ "x": 5040.73424911499,
+ "y": 2812.5002253055573,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ [
+ "94d331d7.9e92",
+ "3ba00a85.1e49e6"
+ ]
+ ]
+ },
+ {
+ "id": "94d331d7.9e92",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 5266.734257698059,
+ "y": 2789.500194311142,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ [
+ "3d0b2b8f.9a9274"
+ ]
+ ]
+ },
+ {
+ "id": "3ba00a85.1e49e6",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 5256.734111785889,
+ "y": 2897.500133752823,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ [
+ "c1c092dd.a63be"
+ ]
+ ]
+ },
+ {
+ "id": "c1c092dd.a63be",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 5406.733898162842,
+ "y": 2916.500194787979,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ [
+ "61da69a2.a9b298"
+ ]
+ ]
+ },
+ {
+ "id": "3d0b2b8f.9a9274",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 5417.734127044678,
+ "y": 2784.5003163814545,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ [
+ "8dd4dce2.b062d"
+ ]
+ ]
+ },
+ {
+ "id": "8dd4dce2.b062d",
+ "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": 5583.733806610107,
+ "y": 2787.500133752823,
+ "z": "ef6618ab.e71c28",
+ "wires": []
+ },
+ {
+ "id": "61da69a2.a9b298",
+ "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/terminateRANSlice.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"SO Response Sent \"/>",
+ "comments": "",
+ "outputs": 1,
+ "x": 5570.733913421631,
+ "y": 2922.500133752823,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "915904fb.1e3638",
+ "type": "block",
+ "name": "SO Response",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 570.734375,
+ "y": 4508.50001168251,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ [
+ "d0bcc0b9.4a364",
+ "311e3dfa.63a242",
+ "1d68fbdc.ba74c4",
+ "a12bb5.43f8d448"
+ ]
+ ]
+ },
+ {
+ "id": "1d68fbdc.ba74c4",
+ "type": "set",
+ "name": "set tmp variables for SO response",
+ "xml": "<set>\n<parameter name=\"tmp.status\" value=\"success\"/>\n<parameter name=\"tmp.reason\" value=\"`$error-message`\"/>\n<parameter name=\"tmp.requestID\" value=\"`$terminate-r-a-n-slice-input.common-header.request-id `\"/>\n<parameter name=\"tmp.action\" value=\"`$tmp.action`\"/>\n\n\n",
+ "comments": "",
+ "x": 850.7355194091797,
+ "y": 4358.39949631691,
+ "z": "ef6618ab.e71c28",
+ "wires": []
+ },
+ {
+ "id": "d0bcc0b9.4a364",
+ "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": 847.7343521118164,
+ "y": 4512.500194787979,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "311e3dfa.63a242",
+ "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-termi-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": 716.7344512939453,
+ "y": 4629.499899148941,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ [
+ "a04c3484.3d25f8",
+ "e61fe0ee.b5224"
+ ]
+ ]
+ },
+ {
+ "id": "a04c3484.3d25f8",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 881.7344512939453,
+ "y": 4609.499898195267,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ [
+ "a7e6cc2a.eb0c7"
+ ]
+ ]
+ },
+ {
+ "id": "e61fe0ee.b5224",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 873.7343444824219,
+ "y": 4682.499848604202,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ [
+ "54b00c26.7346a4"
+ ]
+ ]
+ },
+ {
+ "id": "54b00c26.7346a4",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 1019.734188079834,
+ "y": 4687.499957323074,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ [
+ "8e01ee3a.8ad23"
+ ]
+ ]
+ },
+ {
+ "id": "a7e6cc2a.eb0c7",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 1030.7343521118164,
+ "y": 4605.50003361702,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ [
+ "34eb0190.4684fe",
+ "5482e5dd.7c2b8c"
+ ]
+ ]
+ },
+ {
+ "id": "34eb0190.4684fe",
+ "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": 1177.7339706420898,
+ "y": 4616.49977517128,
+ "z": "ef6618ab.e71c28",
+ "wires": []
+ },
+ {
+ "id": "8e01ee3a.8ad23",
+ "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/terminateRANSlice.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"SO Response Sent \"/>",
+ "comments": "",
+ "outputs": 1,
+ "x": 1180.7341079711914,
+ "y": 4693.499849557877,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "5482e5dd.7c2b8c",
+ "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": 1165.2445793151855,
+ "y": 4520.489266633987,
+ "z": "ef6618ab.e71c28",
+ "wires": []
+ },
+ {
+ "id": "a12bb5.43f8d448",
+ "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": 870.073974609375,
+ "y": 4448.485348939896,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "e6b24565.3c8fe8",
+ "type": "outcome",
+ "name": "Mounted",
+ "xml": "<outcome value='true'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2272.25,
+ "y": 1823.500009059906,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ [
+ "656dc107.984c"
+ ]
+ ]
+ },
+ {
+ "id": "656dc107.984c",
+ "type": "block",
+ "name": "ransim URL",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 2465.239658355713,
+ "y": 1823.5001311302185,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ [
+ "8012518.b5bfdb",
+ "f91ea328.ebc47"
+ ]
+ ]
+ },
+ {
+ "id": "8012518.b5bfdb",
+ "type": "execute",
+ "name": "generate fetchRRMPolicyRatio.ToNRCellCU",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$prop.restapi.RRMPolicyRatioEntry.ToNRCellCU.ransim-mounted`\"/>\n <parameter name=\"outputPath\" value=\"tmp.getRRMPolicyRatio.url\"/>\n <parameter name=\"target\" value=\"{idNearRTRIC}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.nearRTRICId`\"/>",
+ "comments": "",
+ "outputs": 1,
+ "x": 2772.239845275879,
+ "y": 1790.500232219696,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "f91ea328.ebc47",
+ "type": "execute",
+ "name": "populate mountName",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$tmp.getRRMPolicyRatio.url`\"/>\n <parameter name=\"outputPath\" value=\"tmp.getRRMPolicyRatio.url\"/>\n <parameter name=\"target\" value=\"{mountName}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.CUCPName`\"/>",
+ "comments": "",
+ "outputs": 1,
+ "x": 2716.240245819092,
+ "y": 1843.5004258155823,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "df53585c.b9fa48",
+ "type": "block",
+ "name": "ransim URL",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 2699.75,
+ "y": 1207.500009059906,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ [
+ "225894d1.8370fc",
+ "95590d66.9470f"
+ ]
+ ]
+ },
+ {
+ "id": "95590d66.9470f",
+ "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": 2950.750431060791,
+ "y": 1230.500141620636,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "225894d1.8370fc",
+ "type": "execute",
+ "name": "generate TERMINATEPLMNInfoList.ToNRCellCU",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$prop.restapi.terminateSNSSAIEntry.ToNRCellCU.ransim-mounted`\"/>\n <parameter name=\"outputPath\" value=\"tmp.deleteSNSSAIListEntry.url\"/>\n <parameter name=\"target\" value=\"{idNearRTRIC}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.nearRTRICId`\"/>",
+ "comments": "",
+ "outputs": 1,
+ "x": 3006.750030517578,
+ "y": 1177.4999480247498,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "de96ded3.4fa2f",
+ "type": "execute",
+ "name": "populate mountName",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$tmp.deletePLMNInfo-CUUP.url`\"/>\n <parameter name=\"outputPath\" value=\"tmp.deletePLMNInfo-CUUP.url\"/>\n <parameter name=\"target\" value=\"{mountName}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.idGNBCUUPFunction`\"/>",
+ "comments": "",
+ "outputs": 1,
+ "x": 2777.250015258789,
+ "y": 2872.50035238266,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "4d3c0364.97325c",
+ "type": "execute",
+ "name": "generate terminatePLMNInfoList.TogNBCUUP",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$prop.restapi.terminateSNSSAIEntry.ToCUUP.ransim-mounted`\"/>\n <parameter name=\"outputPath\" value=\"tmp.deletePLMNInfo-CUUP.url\"/>\n <parameter name=\"target\" value=\"{idNearRTRIC}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.nearRTRICId`\"/>",
+ "comments": "",
+ "outputs": 1,
+ "x": 2851.249725341797,
+ "y": 2821.5001063346863,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "a99c6274.c44fa",
+ "type": "block",
+ "name": "ransim URL",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 2531.2496795654297,
+ "y": 2859.5000977516174,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ [
+ "4d3c0364.97325c",
+ "de96ded3.4fa2f"
+ ]
+ ]
+ },
+ {
+ "id": "50c98569.82627c",
+ "type": "block",
+ "name": "ransim URL",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 2042.2499809265137,
+ "y": 3303.499955177307,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ [
+ "351d6399.5cd30c",
+ "a5e99380.d4a59"
+ ]
+ ]
+ },
+ {
+ "id": "351d6399.5cd30c",
+ "type": "execute",
+ "name": "fetch RRMPolicyRatio.TogNBCUUP",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$prop.restapi.RRMPolicyRatioEntry.ToGNBCUUP.ransim-mounted`\"/>\n <parameter name=\"outputPath\" value=\"tmp.getRRMPolicyRatio-CUUP.url\"/>\n <parameter name=\"target\" value=\"{idNearRTRIC}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.nearRTRICId`\"/>",
+ "comments": "",
+ "outputs": 1,
+ "x": 2309.249984741211,
+ "y": 3236.499954223633,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "a5e99380.d4a59",
+ "type": "execute",
+ "name": "populate mountName",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$tmp.getRRMPolicyRatio-CUUP.url`\"/>\n <parameter name=\"outputPath\" value=\"tmp.getRRMPolicyRatio-CUUP.url\"/>\n <parameter name=\"target\" value=\"{mountName}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.idGNBCUUPFunction`\"/>",
+ "comments": "",
+ "outputs": 1,
+ "x": 2283.2501792907715,
+ "y": 3275.500150680542,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "2250a766.25eda8",
+ "type": "outcome",
+ "name": "Mounted",
+ "xml": "<outcome value='true'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1833.7499771118164,
+ "y": 3309.4999561309814,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ [
+ "50c98569.82627c"
+ ]
+ ]
+ },
+ {
+ "id": "160b7724.4df4a9",
+ "type": "block",
+ "name": "ransim URL",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 3441.75,
+ "y": 4642.500009059906,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ [
+ "264ce025.0807b",
+ "2b5b3237.0e1efe"
+ ]
+ ]
+ },
+ {
+ "id": "264ce025.0807b",
+ "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.terminateSNSSAIEntry.ToNRCellDU.ransim-mounted`\"/>\n <parameter name=\"outputPath\" value=\"tmp.deletePLMNInfoListEntry-cellDU.url\"/>\n <parameter name=\"target\" value=\"{idNearRTRIC}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.nearRTRICId`\"/>",
+ "comments": "",
+ "outputs": 1,
+ "x": 3748.750030517578,
+ "y": 4612.49994802475,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "2b5b3237.0e1efe",
+ "type": "execute",
+ "name": "populate mountName",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$tmp.deletePLMNInfoListEntry-cellDU.url`\"/>\n <parameter name=\"outputPath\" value=\"tmp.deletePLMNInfoListEntry-cellDU.url\"/>\n <parameter name=\"target\" value=\"{mountName}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.GNBDUId`\"/>",
+ "comments": "",
+ "outputs": 1,
+ "x": 3692.750431060791,
+ "y": 4665.500141620636,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "aa35c14e.99f5f",
+ "type": "outcome",
+ "name": "Mounted",
+ "xml": "<outcome value='true'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 3332.4999504089355,
+ "y": 5332.499984741211,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ [
+ "b1405a60.ac92a8"
+ ]
+ ]
+ },
+ {
+ "id": "b1405a60.ac92a8",
+ "type": "block",
+ "name": "ransim URL",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 3493.500343322754,
+ "y": 5388.74959564209,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ [
+ "dd2a8f8c.e107d",
+ "e03fb918.ca7628"
+ ]
+ ]
+ },
+ {
+ "id": "dd2a8f8c.e107d",
+ "type": "execute",
+ "name": "generate getRRMPolicyRatio.ToNRCellDU",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$prop.restapi.RRMPolicyRatioEntry.ToGNBDU.ransim-mounted`\"/>\n <parameter name=\"outputPath\" value=\"tmp.getRRMPolicyRatio-gNBDU.url\"/>\n <parameter name=\"target\" value=\"{idNearRTRIC}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.nearRTRICId`\"/>",
+ "comments": "",
+ "outputs": 1,
+ "x": 3743.5003509521484,
+ "y": 5332.7495946884155,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "e03fb918.ca7628",
+ "type": "execute",
+ "name": "populate mountName",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$tmp.getRRMPolicyRatio-gNBDU.url`\"/>\n <parameter name=\"outputPath\" value=\"tmp.getRRMPolicyRatio-gNBDU.url\"/>\n <parameter name=\"target\" value=\"{mountName}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.GNBDUId`\"/>",
+ "comments": "",
+ "outputs": 1,
+ "x": 3734.500343322754,
+ "y": 5373.74998664856,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "8f101564.7b6a68",
+ "type": "comment",
+ "name": "terminateRANSliceInstance/instantiateRANSliceModifyDeallocate-CPS",
+ "info": "",
+ "comments": "",
+ "x": 794.5000286102295,
+ "y": 97.750009059906,
+ "z": "ef6618ab.e71c28",
+ "wires": []
+ },
+ {
+ "id": "1265ccfb.824893",
+ "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/terminateRANSlice.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"RPC to handle terminateRANSlice.: \"/>\n<parameter name=\"field2\" value=\"`$terminate-r-a-n-slice-instance-input.action`\"/>\n<parameter name=\"field3\" value=\"`$terminate-r-a-n-slice-instance-input.common-header.timestamp`\"/>\n<parameter name=\"field4\" value=\"`$terminate-r-a-n-slice-instance-input.common-header.request-id`\"/>\n<parameter name=\"field5\" value=\"`$terminate-r-a-n-slice-instance-input.common-header.originator-id`\"/>\n<parameter name=\"field6\" value=\"RPC Payload String \"/>\n<parameter name=\"field7\" value=\"`$terminate-r-a-n-slice-instance-input.payload`\"/>",
+ "comments": "",
+ "outputs": 1,
+ "x": 413.7500305175781,
+ "y": 75,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "e3604cfc.48576",
+ "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 terminateRANSice RPC' />",
+ "comments": "",
+ "x": 438.7498092651367,
+ "y": 119.00001907348633,
+ "z": "ef6618ab.e71c28",
+ "wires": []
+ },
+ {
+ "id": "848d52eb.8cc75",
+ "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-context.log' />\n\n\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 527.749813079834,
+ "y": 189.98953437805176,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "7d478635.d81058",
+ "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": 566.7497634887695,
+ "y": 225.99991035461426,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "d1a91050.f5c7d",
+ "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/terminateRANSlice.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": 587.7497634887695,
+ "y": 262.75000858306885,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "a90ef80c.176158",
+ "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/terminateRANSlice.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": 629.4935874938965,
+ "y": 1104.743522644043,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "907603d2.1339e",
+ "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-cps-response.['+ $idy +'].GNBCUCPFunction['+ $idz +'].NRCellCU['+ $idcu +'].attributes.pLMNInfoList_length'`\" />",
+ "comments": "",
+ "outputs": 1,
+ "x": 2081.7776947021484,
+ "y": 604.9721903800964,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "bf15866.078ce78",
+ "type": "for",
+ "name": "for each rrmpolicyMember",
+ "xml": "<for index='idcu-rrm1' start='0' end='`$tmp.NRCellCURRMPolicyMembersLength`' >\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2550.749767303467,
+ "y": 2318.583155155182,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ [
+ "f5cb88dc.a371c8"
+ ]
+ ]
+ },
+ {
+ "id": "f5cb88dc.a371c8",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 2780.416763305664,
+ "y": 2318.694287776947,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ [
+ "4de91968.5984d8",
+ "ee7af470.070a48",
+ "c0ee8345.b60eb",
+ "3e40d822.6b3008",
+ "9c0cb6c5.a91938"
+ ]
+ ]
+ },
+ {
+ "id": "4de91968.5984d8",
+ "type": "switchNode",
+ "name": "if length > 0 ",
+ "xml": "<switch test='`$tmp.NRCellCURRMPolicyMembersLength > 0`'>\n\n \n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2919.583595275879,
+ "y": 2231.833092212677,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ [
+ "fd3be88a.350e78",
+ "32af5c3a.596024"
+ ]
+ ]
+ },
+ {
+ "id": "fd3be88a.350e78",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='true'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 3071.250068664551,
+ "y": 2206.3885741233826,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ [
+ "72da6984.9ea608"
+ ]
+ ]
+ },
+ {
+ "id": "72da6984.9ea608",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 3237.9164695739746,
+ "y": 2207.3889498710632,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ [
+ "ae18d644.440868"
+ ]
+ ]
+ },
+ {
+ "id": "ae18d644.440868",
+ "type": "switchNode",
+ "name": "ransim mounted",
+ "xml": "<switch test='`$prop.ransim-mounted`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 3085.694351196289,
+ "y": 2086.277685403824,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ [
+ "90dc7898.ac75a8",
+ "17d96053.23ca3"
+ ]
+ ]
+ },
+ {
+ "id": "90dc7898.ac75a8",
+ "type": "outcome",
+ "name": "Not Mounted",
+ "xml": "<outcome value='false'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 3329.028091430664,
+ "y": 2102.1663641929626,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ [
+ "344ab0a7.26b28"
+ ]
+ ]
+ },
+ {
+ "id": "17d96053.23ca3",
+ "type": "outcome",
+ "name": "Mounted",
+ "xml": "<outcome value='true'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 3319.8716011047363,
+ "y": 2142.6106476783752,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ [
+ "efb17bc0.abe2d8"
+ ]
+ ]
+ },
+ {
+ "id": "344ab0a7.26b28",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 3510.4165115356445,
+ "y": 2103.499964237213,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ [
+ "7114d556.6dd30c"
+ ]
+ ]
+ },
+ {
+ "id": "efb17bc0.abe2d8",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 3501.527587890625,
+ "y": 2145.722002506256,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ [
+ "b651f452.31d918",
+ "9838b8bf.63bba8"
+ ]
+ ]
+ },
+ {
+ "id": "7114d556.6dd30c",
+ "type": "execute",
+ "name": "delete RRMPolicyRatio NRCellCU - URL",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$prop.restapi.removeRRMPolicyRatio.ToNRCellCU`\"/>\n <parameter name=\"outputPath\" value=\"tmp.deleteRRMPolicyRatio.url\"/>\n <parameter name=\"target\" value=\"{idNearRTRIC}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.nearRTRICId`\"/>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 3795.694221496582,
+ "y": 2100.7222418785095,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "b651f452.31d918",
+ "type": "execute",
+ "name": "generate deleteRRMPolicyRatio.ToNRCellCU URL",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$prop.restapi.removeRRMPolicyRatio.ToNRCellCU.ransim-mounted`\"/>\n <parameter name=\"outputPath\" value=\"tmp.deleteRRMPolicyRatio.url\"/>\n <parameter name=\"target\" value=\"{idNearRTRIC}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.nearRTRICId`\"/>",
+ "comments": "",
+ "outputs": 1,
+ "x": 3806.8054809570312,
+ "y": 2144.055603504181,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "9838b8bf.63bba8",
+ "type": "execute",
+ "name": "populate mountName",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$tmp.deleteRRMPolicyRatio.url`\"/>\n <parameter name=\"outputPath\" value=\"tmp.deleteRRMPolicyRatio.url\"/>\n <parameter name=\"target\" value=\"{mountName}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.CUCPName`\"/>",
+ "comments": "",
+ "outputs": 1,
+ "x": 3731.2497024536133,
+ "y": 2179.6110854148865,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "32af5c3a.596024",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='false'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 3074.861053466797,
+ "y": 2260.7221236228943,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ [
+ "717697b8.50d648"
+ ]
+ ]
+ },
+ {
+ "id": "717697b8.50d648",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 3260.5281372070312,
+ "y": 2249.0554423332214,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ [
+ "2f0c683.4f69298",
+ "e61d872b.51c228"
+ ]
+ ]
+ },
+ {
+ "id": "2f0c683.4f69298",
+ "type": "set",
+ "name": "Read RRMPolicyMember-sNSSA",
+ "xml": "<set>\n<parameter name='tmp.RRMPolicyMember_sNSSAI' value=\"`'$get-rrmpolicyratio-response.attributes.RRMPolicyRatio['+ $idcu-rrm+'].attributes.rRMPolicyMemberList['+ $idcu-rrm1 +'].sNSSAI'`\" />",
+ "comments": "",
+ "x": 3552.917106628418,
+ "y": 2212.944755077362,
+ "z": "ef6618ab.e71c28",
+ "wires": []
+ },
+ {
+ "id": "e61d872b.51c228",
+ "type": "switchNode",
+ "name": "find matching RRMPolicyMember",
+ "xml": "<switch test='`$tmp.RRMPolicyMember_sNSSAI==$tmp.sNSSAI`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 3551.8055419921875,
+ "y": 2252.9442496299744,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ [
+ "3accf9bd.08c7b6"
+ ]
+ ]
+ },
+ {
+ "id": "3accf9bd.08c7b6",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 3782.638885498047,
+ "y": 2257.3886275291443,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ [
+ "d5d89612.3d3528"
+ ]
+ ]
+ },
+ {
+ "id": "d5d89612.3d3528",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 4006.249725341797,
+ "y": 2254.0553755760193,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ [
+ "ff448220.a1efe",
+ "c7b7fd29.c8df2",
+ "55af628d.5f572c"
+ ]
+ ]
+ },
+ {
+ "id": "ff448220.a1efe",
+ "type": "set",
+ "name": "Read RRMPolicyMember-id",
+ "xml": "<set>\n<parameter name='tmp.RRMPolicyMember_id' value=\"`'$get-rrmpolicyratio-response.attributes.RRMPolicyRatio['+ $idcu-rrm+'].attributes.rRMPolicyMemberList['+ $idcu-rrm1 +'].idx'`\" />",
+ "comments": "",
+ "x": 4271.916458129883,
+ "y": 2221.8332619667053,
+ "z": "ef6618ab.e71c28",
+ "wires": []
+ },
+ {
+ "id": "ac3b1d0d.a1fd7",
+ "type": "execute",
+ "name": "generate deleteRRMPolicyMember.ToNRCellCU URL",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$prop.restapi.removeRRMPolicyMember.ToNRCellCU`\"/>\n <parameter name=\"outputPath\" value=\"tmp.deleteRRMPolicyRatio.url\"/>\n <parameter name=\"target\" value=\"{idNearRTRIC}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.nearRTRICId`\"/>",
+ "comments": "",
+ "outputs": 1,
+ "x": 4801.360374450684,
+ "y": 2314.0554614067078,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "c7b7fd29.c8df2",
+ "type": "switchNode",
+ "name": "ransim mounted",
+ "xml": "<switch test='`$prop.ransim-mounted`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 4229.138465881348,
+ "y": 2317.3889269828796,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ [
+ "d4cdc97e.ad6b88",
+ "12532403.3fe08c"
+ ]
+ ]
+ },
+ {
+ "id": "d4cdc97e.ad6b88",
+ "type": "outcome",
+ "name": "Not Mounted",
+ "xml": "<outcome value='false'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 4472.472526550293,
+ "y": 2316.610950946808,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ [
+ "ac3b1d0d.a1fd7"
+ ]
+ ]
+ },
+ {
+ "id": "12532403.3fe08c",
+ "type": "outcome",
+ "name": "Mounted",
+ "xml": "<outcome value='true'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 4463.315940856934,
+ "y": 2368.1663451194763,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ [
+ "cddecda9.2e57e"
+ ]
+ ]
+ },
+ {
+ "id": "c51a2207.443e4",
+ "type": "execute",
+ "name": "generate deleteRRMPolicyRatio.ToNRCellCU URL",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$prop.restapi.removeRRMPolicyMember.ToNRCellCU.ransim-mounted`\"/>\n <parameter name=\"outputPath\" value=\"tmp.deleteRRMPolicyRatio.url\"/>\n <parameter name=\"target\" value=\"{idNearRTRIC}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.nearRTRICId`\"/>",
+ "comments": "",
+ "outputs": 1,
+ "x": 4930.527503967285,
+ "y": 2359.6113867759705,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "dcbaf818.0a7008",
+ "type": "execute",
+ "name": "populate mountName",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$tmp.deleteRRMPolicyRatio.url`\"/>\n <parameter name=\"outputPath\" value=\"tmp.deleteRRMPolicyRatio.url\"/>\n <parameter name=\"target\" value=\"{mountName}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.CUCPName`\"/>",
+ "comments": "",
+ "outputs": 1,
+ "x": 4850.5272216796875,
+ "y": 2418.4998030662537,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "cddecda9.2e57e",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 4630.249794006348,
+ "y": 2365.7221789360046,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ [
+ "c51a2207.443e4",
+ "dcbaf818.0a7008"
+ ]
+ ]
+ },
+ {
+ "id": "f69925d0.0398b8",
+ "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/terminateRANSlice.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"Delete RRMPolicy URL - \"/>\n<parameter name=\"field2\" value=\"`$tmp.deleteRRMPolicyRatio.url`\"/>\n<parameter name=\"field3\" value=\"RRMPolicyRatio id\"/>\n<parameter name=\"field4\" value=\"`$tmp.RRMPolicyRatio_id`\"/>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2499.8609352111816,
+ "y": 2374.889148235321,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "672cacb9.6f85d4",
+ "type": "execute",
+ "name": "Terminate NRCellCU - RRMPolicyRatio",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"restapiUrl\" value=\"`$prop.controller.url + $tmp.deleteRRMPolicyRatio.url`\"/>\n<parameter name=\"restapiUser\" value=\"`$prop.controller.user`\" />\n<parameter name=\"restapiPassword\" value=\"`$prop.controller.pwd`\"/>\n<parameter name=\"httpMethod\" value=\"DELETE\"/>\n<parameter name=\"responsePrefix\" value=\"delete-cellCU-RRMPolicyRatio-response\"/>\n<parameter name='contentType' value='application/json' /> \n<parameter name='format' value='json' />",
+ "comments": "",
+ "outputs": 1,
+ "x": 2594.6387329101562,
+ "y": 2416.8889651298523,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ [
+ "d8d77892.ec9ac8",
+ "89c3213e.72fa2"
+ ]
+ ]
+ },
+ {
+ "id": "d8d77892.ec9ac8",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2880.3888359069824,
+ "y": 2462.638934612274,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ [
+ "c9fcfcec.44f11"
+ ]
+ ]
+ },
+ {
+ "id": "c9fcfcec.44f11",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 3083.8888931274414,
+ "y": 2465.1389355659485,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ [
+ "889c6b33.e73368"
+ ]
+ ]
+ },
+ {
+ "id": "889c6b33.e73368",
+ "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/terminateRANSlice.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"Successfully Deleted - cellCU RRMpolicyRatio/RRMPolicyMember\"/>",
+ "comments": "",
+ "outputs": 1,
+ "x": 3311.3886528015137,
+ "y": 2372.3891472816467,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "8493398c.628a48",
+ "type": "set",
+ "name": "set",
+ "xml": "<set>\n<parameter name='error-code' value='500'/>\n<parameter name='error-message' value='Error Removing cellCU RRMPolicyRatio. Aborting RPC executiopn'/>",
+ "comments": "",
+ "x": 3324.638641357422,
+ "y": 2415.3888716697693,
+ "z": "ef6618ab.e71c28",
+ "wires": []
+ },
+ {
+ "id": "8d0bbd02.7cc77",
+ "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 removing NRCellDU - RRMPolicyRAtio. Aborting RPC executiopn'/>",
+ "comments": "",
+ "x": 3329.6385192871094,
+ "y": 2510.3889327049255,
+ "z": "ef6618ab.e71c28",
+ "wires": []
+ },
+ {
+ "id": "9a36c927.c25bb8",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 3080.889320373535,
+ "y": 2516.888967037201,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ [
+ "8d0bbd02.7cc77",
+ "8493398c.628a48",
+ "86a7278f.d35238"
+ ]
+ ]
+ },
+ {
+ "id": "89c3213e.72fa2",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2875.6388359069824,
+ "y": 2501.888967037201,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ [
+ "9a36c927.c25bb8"
+ ]
+ ]
+ },
+ {
+ "id": "55af628d.5f572c",
+ "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/terminateRANSlice.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"RRMPolicyMember id - \"/>\n<parameter name=\"field2\" value=\"`$tmp.RRMPolicyMember_id`\"/>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 4223.576385498047,
+ "y": 2269.7152876853943,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "8c2f38a0.f9fb28",
+ "type": "execute",
+ "name": "prepare sNSSAI",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$tmp.deleteSNSSAIListEntry.url`\"/>\n <parameter name=\"outputPath\" value=\"tmp.deleteSNSSAIListEntry.url\"/>\n <parameter name=\"target\" value=\"{sNssai}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.sNSSAI`\"/>",
+ "comments": "",
+ "outputs": 1,
+ "x": 2289.138946533203,
+ "y": 1363.9028587341309,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "ee7af470.070a48",
+ "type": "execute",
+ "name": "prepare idGNBCUCPFunction",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$tmp.deleteRRMPolicyRatio.url`\"/>\n <parameter name=\"outputPath\" value=\"tmp.deleteRRMPolicyRatio.url\"/>\n <parameter name=\"target\" value=\"{idGNBCUCPFunction}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.CUCPName`\"/>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 3037.3265075683594,
+ "y": 2310.9653487205505,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "c0ee8345.b60eb",
+ "type": "execute",
+ "name": "prepare idNRCellCU",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$tmp.deleteRRMPolicyRatio.url`\"/>\n <parameter name=\"outputPath\" value=\"tmp.deleteRRMPolicyRatio.url\"/>\n <parameter name=\"target\" value=\"{idNRCellCU}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.cellCULocalId`\"/>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 3009.826446533203,
+ "y": 2344.2153191566467,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "3e40d822.6b3008",
+ "type": "execute",
+ "name": "prepare RRMPolicyRatio id",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$tmp.deleteRRMPolicyRatio.url`\"/>\n <parameter name=\"outputPath\" value=\"tmp.deleteRRMPolicyRatio.url\"/>\n <parameter name=\"target\" value=\"{id}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.RRMPolicyRatio_id`\"/>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 3033.264389038086,
+ "y": 2378.777850627899,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "9c0cb6c5.a91938",
+ "type": "execute",
+ "name": "prepare RRMPolicyMember id",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$tmp.getRRMPolicyRatio.url`\"/>\n <parameter name=\"outputPath\" value=\"tmp.getRRMPolicyRatio.url\"/>\n <parameter name=\"target\" value=\"{idx}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.RRMPolicyMember_id`\"/>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 3040.763946533203,
+ "y": 2414.527820110321,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "c6edfac9.7c9c58",
+ "type": "execute",
+ "name": "read NFType",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'>\n\t<parameter name='outputPath' value='tmp.cucpNFType' />\n\t<parameter name='source' value=\"`'getNFNSSIRIC-cps-response.['+ $idy +'].gNBCUCPList['+ $idz +'].nFType'`\" />",
+ "comments": "",
+ "outputs": 1,
+ "x": 2292.013946533203,
+ "y": 1128.5903549194336,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "1b88da83.b7eeb5",
+ "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.configDBSNSSAI1' />\n <parameter name='source' value=\"`'getNFNSSIRIC-cps-response.['+ $idy +'].GNBCUUPFunction['+ $id-cuup +'].attributes.pLMNInfoList['+ $id-plmn +'].sNSSAIList['+ $id-snssai +'].sNssai'`\" />\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1566.13916015625,
+ "y": 2653.7226514816284,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "81a294ba.0e11e8",
+ "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/terminateRANSlice.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"sNSSAI - getNFNSSIRIC-configdb-response\"/>\n<parameter name=\"field2\" value=\"`$tmp.configDBSNSSAI1`\"/>\n<parameter name=\"field3\" value=\"sNSSAI from Request\"/>\n<parameter name=\"field4\" value=\"`$tmp.sNSSAI`\"/>\n\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1420.1390838623047,
+ "y": 2703.722749710083,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "54d6339e.a38aec",
+ "type": "switchNode",
+ "name": "is NSSAI exists",
+ "xml": "<switch test='`$tmp.configDBSNSSAI1 == $tmp.sNSSAI`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1427.0282440185547,
+ "y": 2747.277633666992,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ [
+ "276143e5.03bb8c",
+ "e635ef1e.b8037"
+ ]
+ ]
+ },
+ {
+ "id": "276143e5.03bb8c",
+ "type": "outcome",
+ "name": "True",
+ "xml": "<outcome value='true'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1600.2500228881836,
+ "y": 2701.5004844665527,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ [
+ "55957445.1f742c"
+ ]
+ ]
+ },
+ {
+ "id": "93bc35c0.833c98",
+ "type": "execute",
+ "name": "prepare mcc",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$tmp.deletePLMNInfo-CUUP.url`\"/>\n <parameter name=\"outputPath\" value=\"tmp.deletePLMNInfo-CUUP.url\"/>\n <parameter name=\"target\" value=\"{mcc}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.mcc`\"/>\n ",
+ "comments": "",
+ "outputs": 1,
+ "x": 1962.2499771118164,
+ "y": 2852.500340461731,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "153e8344.b21fcd",
+ "type": "execute",
+ "name": "prepare mnc",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$tmp.deletePLMNInfo-CUUP.url`\"/>\n <parameter name=\"outputPath\" value=\"tmp.deletePLMNInfo-CUUP.url\"/>\n <parameter name=\"target\" value=\"{mnc}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.mnc`\"/>",
+ "comments": "",
+ "outputs": 1,
+ "x": 1967.7501678466797,
+ "y": 2888.000535964966,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "ecd0711.911899",
+ "type": "execute",
+ "name": "prepare sNSSAI",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$tmp.deletePLMNInfo-CUUP.url`\"/>\n <parameter name=\"outputPath\" value=\"tmp.deletePLMNInfo-CUUP.url\"/>\n <parameter name=\"target\" value=\"{sNssai}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.sNSSAI`\"/>",
+ "comments": "",
+ "outputs": 1,
+ "x": 1956.3891372680664,
+ "y": 2923.15288066864,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "66f45efa.a8ba4",
+ "type": "execute",
+ "name": "terminate sNNSAI - CUUP",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"restapiUrl\" value=\"`$prop.controller.url + $tmp.deletePLMNInfo-CUUP.url`\"/>\n<parameter name=\"restapiUser\" value=\"`$prop.controller.user`\" />\n<parameter name=\"restapiPassword\" value=\"`$prop.controller.pwd`\"/>\n<parameter name=\"httpMethod\" value=\"DELETE\"/>\n<parameter name=\"responsePrefix\" value=\"delete-CUUP-sNSSAI-response\"/>\n<parameter name='contentType' value='application/json' /> \n<parameter name='format' value='json' />",
+ "comments": "",
+ "outputs": 1,
+ "x": 1969.0001678466797,
+ "y": 2961.5003414154053,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ [
+ "f731369c.1f2078",
+ "1dc9bdec.d9f382"
+ ]
+ ]
+ },
+ {
+ "id": "410cf853.2a1e78",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2391.9165382385254,
+ "y": 3703.8339462280273,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ [
+ "559e943e.90a8ac"
+ ]
+ ]
+ },
+ {
+ "id": "f82bb9bf.adee38",
+ "type": "for",
+ "name": "for each rrmpolicyMember",
+ "xml": "<for index='idcu-rrm2' start='0' end='`$tmp.CUUPRRMPolicyMembersLength`' >\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2084.2222442626953,
+ "y": 3640.2777919769287,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ [
+ "28c3a324.a0b91c"
+ ]
+ ]
+ },
+ {
+ "id": "28c3a324.a0b91c",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 2309.888900756836,
+ "y": 3530.3890705108643,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ [
+ "93158c88.68e73",
+ "25c33e22.4b4582",
+ "f0f0f73c.3cc7a8",
+ "74150b42.d93ce4",
+ "814d0d47.dc151"
+ ]
+ ]
+ },
+ {
+ "id": "93158c88.68e73",
+ "type": "switchNode",
+ "name": "if length > 0 ",
+ "xml": "<switch test='`$tmp.CUUPRRMPolicyMembersLength > 0`'>\n \n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2448.055892944336,
+ "y": 3431.527892589569,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ [
+ "3c9ad90f.5cbbe6",
+ "f8de9f4d.8a2f5"
+ ]
+ ]
+ },
+ {
+ "id": "3c9ad90f.5cbbe6",
+ "type": "success",
+ "name": "True",
+ "xml": "<outcome value='true'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2596.722499847412,
+ "y": 3386.08296918869,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ [
+ "a746dc11.ec75c"
+ ]
+ ]
+ },
+ {
+ "id": "a746dc11.ec75c",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 2756.3888511657715,
+ "y": 3443.083552837372,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ [
+ "b3dc5050.4c54c",
+ "80534116.ca9af"
+ ]
+ ]
+ },
+ {
+ "id": "b3dc5050.4c54c",
+ "type": "switchNode",
+ "name": "ransim mounted",
+ "xml": "<switch test='`$prop.ransim-mounted`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2804.1669311523438,
+ "y": 3258.972421169281,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ [
+ "692c82fc.02dd2c",
+ "173fc19c.87bcde"
+ ]
+ ]
+ },
+ {
+ "id": "692c82fc.02dd2c",
+ "type": "outcome",
+ "name": "Not Mounted",
+ "xml": "<outcome value='false'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2847.500473022461,
+ "y": 3337.8609671592712,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ [
+ "855ba5f7.0c5788"
+ ]
+ ]
+ },
+ {
+ "id": "173fc19c.87bcde",
+ "type": "outcome",
+ "name": "Mounted",
+ "xml": "<outcome value='true'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2838.343982696533,
+ "y": 3378.305250644684,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ [
+ "5fb3e19c.4fe5e"
+ ]
+ ]
+ },
+ {
+ "id": "855ba5f7.0c5788",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 3028.8888931274414,
+ "y": 3339.1945672035217,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ [
+ "c29b3e94.917ca",
+ "230243f4.b1d3ac",
+ "c9ed0d14.ac512"
+ ]
+ ]
+ },
+ {
+ "id": "5fb3e19c.4fe5e",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 3019.999969482422,
+ "y": 3381.4166054725647,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ [
+ "5d773c44.2fc9b4",
+ "3680afb.372cb5"
+ ]
+ ]
+ },
+ {
+ "id": "230243f4.b1d3ac",
+ "type": "execute",
+ "name": "delete RRMPolicyRatio CUUP- URL",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$prop.restapi.removeRRMPolicyRatio.ToCUUP`\"/>\n <parameter name=\"outputPath\" value=\"tmp.deleteRRMPolicyRatio-CUUP.url\"/>\n <parameter name=\"target\" value=\"{idNearRTRIC}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.nearRTRICId`\"/>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 3350.1665000915527,
+ "y": 3238.417146205902,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "5d773c44.2fc9b4",
+ "type": "execute",
+ "name": "generate deleteRRMPolicyRatio.ToNRCellCU URL",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$prop.restapi.removeRRMPolicyRatio.ToCUUP.ransim-mounted`\"/>\n <parameter name=\"outputPath\" value=\"tmp.deleteRRMPolicyRatio-CUUP.url\"/>\n <parameter name=\"target\" value=\"{idNearRTRIC}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.nearRTRICId`\"/>",
+ "comments": "",
+ "outputs": 1,
+ "x": 3325.277862548828,
+ "y": 3379.7502064704895,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "3680afb.372cb5",
+ "type": "execute",
+ "name": "populate mountName",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$tmp.deleteRRMPolicyRatio-CUUP.url`\"/>\n <parameter name=\"outputPath\" value=\"tmp.deleteRRMPolicyRatio-CUUP.url\"/>\n <parameter name=\"target\" value=\"{mountName}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.idGNBCUUPFunction`\"/>",
+ "comments": "",
+ "outputs": 1,
+ "x": 3249.72208404541,
+ "y": 3415.305688381195,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "f8de9f4d.8a2f5",
+ "type": "failure",
+ "name": "False",
+ "xml": "<outcome value='false'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2596.3336296081543,
+ "y": 3476.416955471039,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ [
+ "372f6399.fbe82c"
+ ]
+ ]
+ },
+ {
+ "id": "372f6399.fbe82c",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 2779.000518798828,
+ "y": 3484.75004529953,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ [
+ "c826720f.e7abe",
+ "b943ca8c.dc0588",
+ "8437179b.8ec7a8"
+ ]
+ ]
+ },
+ {
+ "id": "c826720f.e7abe",
+ "type": "set",
+ "name": "Read RRMPolicyMember-sNSSAI",
+ "xml": "<set>\n<parameter name='tmp.CUUPRRMPolicyMember_sNSSAI' value=\"`'$get-rrmpolicyratio-cuup-response.attributes.RRMPolicyRatio['+ $idcuup-rrm+'].attributes.rRMPolicyMemberList['+ $idcu-rrm2 +'].sNSSAI'`\" />",
+ "comments": "",
+ "x": 3075.3894958496094,
+ "y": 3482.6396107673645,
+ "z": "ef6618ab.e71c28",
+ "wires": []
+ },
+ {
+ "id": "b943ca8c.dc0588",
+ "type": "switchNode",
+ "name": "find matching RRMPolicyMember",
+ "xml": "<switch test='`$tmp.CUUPRRMPolicyMember_sNSSAI==$tmp.sNSSAI`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 3070.2777786254883,
+ "y": 3525.639220714569,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ [
+ "e2627326.2d84"
+ ]
+ ]
+ },
+ {
+ "id": "e2627326.2d84",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 3301.1112670898438,
+ "y": 3493.083230495453,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ [
+ "fbaa4d41.1c083"
+ ]
+ ]
+ },
+ {
+ "id": "fbaa4d41.1c083",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 3524.7221069335938,
+ "y": 3489.749978542328,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ [
+ "1362be16.41b692",
+ "ac4e8854.da6348",
+ "649ff35.3b4d30c"
+ ]
+ ]
+ },
+ {
+ "id": "1362be16.41b692",
+ "type": "set",
+ "name": "Read RRMPolicyMember-id",
+ "xml": "<set>\n<parameter name='tmp.CUUPRRMPolicyMember_id' value=\"`'$get-rrmpolicyratio-cuup-response.attributes.RRMPolicyRatio['+ $idcuup-rrm+'].attributes.rRMPolicyMemberList['+ $idcu-rrm2 +'].idx'`\" />",
+ "comments": "",
+ "x": 3790.3888397216797,
+ "y": 3457.527864933014,
+ "z": "ef6618ab.e71c28",
+ "wires": []
+ },
+ {
+ "id": "649ff35.3b4d30c",
+ "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/terminateRANSlice.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"RRMPolicyMember id - \"/>\n<parameter name=\"field2\" value=\"`$tmp.CUUPRRMPolicyMember_id`\"/>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 3742.0487670898438,
+ "y": 3505.409890651703,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "ac4e8854.da6348",
+ "type": "switchNode",
+ "name": "ransim mounted",
+ "xml": "<switch test='`$prop.ransim-mounted`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 3747.6108474731445,
+ "y": 3553.0835299491882,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ [
+ "b9c47227.ccdc6",
+ "39bb9059.2905f"
+ ]
+ ]
+ },
+ {
+ "id": "b9c47227.ccdc6",
+ "type": "outcome",
+ "name": "Not Mounted",
+ "xml": "<outcome value='false'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 3990.94490814209,
+ "y": 3552.3055539131165,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ [
+ "3e74737c.d92dec"
+ ]
+ ]
+ },
+ {
+ "id": "39bb9059.2905f",
+ "type": "outcome",
+ "name": "Mounted",
+ "xml": "<outcome value='true'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 3981.7883224487305,
+ "y": 3603.860948085785,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ [
+ "2c126c58.8f06c4"
+ ]
+ ]
+ },
+ {
+ "id": "3e74737c.d92dec",
+ "type": "execute",
+ "name": "generate deleteRRMPolicyMember.CUUP URL",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$prop.restapi.removeRRMPolicyMember.ToCUUP`\"/>\n <parameter name=\"outputPath\" value=\"tmp.deleteRRMPolicyRatio-CUUP.url\"/>\n <parameter name=\"target\" value=\"{idNearRTRIC}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.nearRTRICId`\"/>",
+ "comments": "",
+ "outputs": 1,
+ "x": 4319.8327560424805,
+ "y": 3549.7500643730164,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "2c126c58.8f06c4",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 4148.7221755981445,
+ "y": 3601.4167819023132,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ [
+ "7e5e82d8.f2cb0c",
+ "4b252233.88a5dc"
+ ]
+ ]
+ },
+ {
+ "id": "7e5e82d8.f2cb0c",
+ "type": "execute",
+ "name": "generate deleteRRMPolicyRatio.ToNRCellCU URL",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$prop.restapi.removeRRMPolicyMember.CUUP.ransim-mounted`\"/>\n <parameter name=\"outputPath\" value=\"tmp.deleteRRMPolicyRatio-CUUP.url\"/>\n <parameter name=\"target\" value=\"{idNearRTRIC}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.nearRTRICId`\"/>",
+ "comments": "",
+ "outputs": 1,
+ "x": 4448.999885559082,
+ "y": 3595.305989742279,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "4b252233.88a5dc",
+ "type": "execute",
+ "name": "populate mountName",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$tmp.deleteRRMPolicyRatio-CUUP.url`\"/>\n <parameter name=\"outputPath\" value=\"tmp.deleteRRMPolicyRatio-CUUP.url\"/>\n <parameter name=\"target\" value=\"{mountName}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.idGNBCUUPFunction`\"/>",
+ "comments": "",
+ "outputs": 1,
+ "x": 4368.999603271484,
+ "y": 3654.1944060325623,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "25c33e22.4b4582",
+ "type": "execute",
+ "name": "prepare idGNBCUUPFunction",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$tmp.deleteRRMPolicyRatio-CUUP.url`\"/>\n <parameter name=\"outputPath\" value=\"tmp.deleteRRMPolicyRatio-CUUP.url\"/>\n <parameter name=\"target\" value=\"{idGNBCUUPFunction}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.idGNBCUUPFunction`\"/>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2542.5001373291016,
+ "y": 3548.7503504753113,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "f0f0f73c.3cc7a8",
+ "type": "execute",
+ "name": "prepare RRMPolicyRatio id",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$tmp.deleteRRMPolicyRatio-CUUP.url`\"/>\n <parameter name=\"outputPath\" value=\"tmp.deleteRRMPolicyRatio-CUUP.url\"/>\n <parameter name=\"target\" value=\"{id}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.CUUPRRMPolicyRatio_id`\"/>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2531.4380264282227,
+ "y": 3581.5628509521484,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "74150b42.d93ce4",
+ "type": "execute",
+ "name": "prepare RRMPolicyMember id",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$tmp.deleteRRMPolicyRatio-CUUP.url`\"/>\n <parameter name=\"outputPath\" value=\"tmp.deleteRRMPolicyRatio-CUUP.url\"/>\n <parameter name=\"target\" value=\"{idx}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.CUUPRRMPolicyMember_id`\"/>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2541.9376373291016,
+ "y": 3618.3128519058228,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "58c36fb8.f4dfe",
+ "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/terminateRANSlice.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"Delete RRMPolicy URL - \"/>\n<parameter name=\"field2\" value=\"`$tmp.deleteRRMPolicyRatio-CUUP.url`\"/>\n<parameter name=\"field3\" value=\"RRMPolicyRatio id\"/>\n<parameter name=\"field4\" value=\"`$tmp.CUUPRRMPolicyRatio_id`\"/>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2030.0343551635742,
+ "y": 3684.6742782592773,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "dc7ec7e1.74ebf8",
+ "type": "execute",
+ "name": "Terminate NRCellCU - RRMPolicyRatio",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"restapiUrl\" value=\"`$prop.controller.url + $tmp.deleteRRMPolicyRatio-CUUP.url`\"/>\n<parameter name=\"restapiUser\" value=\"`$prop.controller.user`\" />\n<parameter name=\"restapiPassword\" value=\"`$prop.controller.pwd`\"/>\n<parameter name=\"httpMethod\" value=\"DELETE\"/>\n<parameter name=\"responsePrefix\" value=\"delete-CUUP-RRMPolicyRatio-response\"/>\n<parameter name='contentType' value='application/json' /> \n<parameter name='format' value='json' />",
+ "comments": "",
+ "outputs": 1,
+ "x": 2106.812286376953,
+ "y": 3730.673496246338,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ [
+ "410cf853.2a1e78",
+ "7ed88f17.7c3a3"
+ ]
+ ]
+ },
+ {
+ "id": "9bc85a3f.4f97b8",
+ "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-cps-response.['+ $idy +'].GNBDUFunction['+ $id-du +'].NRCellDU['+ $id-celldu +'].attributes.pLMNInfoList_length'`\" />\n\t",
+ "comments": "",
+ "outputs": 1,
+ "x": 2158.437728881836,
+ "y": 4253.3754596710205,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "390b889.487c978",
+ "type": "for",
+ "name": "foreach PLMNInfo",
+ "xml": "<for index='id-duplmn' start='0' end='`$tmp.DUpLMNInfoList_length`' >\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2201.7713165283203,
+ "y": 4370.375461578369,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ [
+ "2f1d5905.26edc6"
+ ]
+ ]
+ },
+ {
+ "id": "4d74a9ab.0a99b8",
+ "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-cps-response.['+ $idy +'].GNBDUFunction['+ $id-du +'].NRCellDU['+ $id-celldu +'].attributes.pLMNInfoList['+ $id-duplmn +'].sNSSAIList['+ $id-dusnssai +'].sNssai'`\" />\n\t",
+ "comments": "",
+ "outputs": 1,
+ "x": 2823.29891204834,
+ "y": 4368.6254596710205,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "52a23239.3966bc",
+ "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/terminateRANSlice.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": 2743.0487670898438,
+ "y": 4410.625070571899,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "9db8a2d.1060f6",
+ "type": "switchNode",
+ "name": "is NSSAI exists",
+ "xml": "<switch test='`$tmp.configDBSNSSAI-DU == $tmp.sNSSAI`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2741.1876335144043,
+ "y": 4466.930540084839,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ [
+ "74941460.666fcc"
+ ]
+ ]
+ },
+ {
+ "id": "74941460.666fcc",
+ "type": "outcome",
+ "name": "True",
+ "xml": "<outcome value='true'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2894.659900665283,
+ "y": 4470.402805328369,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ [
+ "47b8e29b.68b05c"
+ ]
+ ]
+ },
+ {
+ "id": "a0cd0fbb.6491d",
+ "type": "execute",
+ "name": "prepare sNSSAI",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$tmp.deletePLMNInfoListEntry-cellDU.url`\"/>\n <parameter name=\"outputPath\" value=\"tmp.deletePLMNInfoListEntry-cellDU.url\"/>\n <parameter name=\"target\" value=\"{sNssai}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.sNSSAI`\"/>",
+ "comments": "",
+ "outputs": 1,
+ "x": 3070.1875,
+ "y": 4938.062509059906,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "969e0685.f850b8",
+ "type": "for",
+ "name": "for each rrmpolicyMember",
+ "xml": "<for index='iddu-rrm2' start='0' end='`$tmp.DURRMPolicyMembersLength`' >\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 3661.4722213745117,
+ "y": 5703.965518951416,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ [
+ "1809465d.9c9f8a"
+ ]
+ ]
+ },
+ {
+ "id": "1809465d.9c9f8a",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 3879.1390228271484,
+ "y": 5703.076847076416,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ [
+ "339f697a.dd3e66",
+ "6499a345.d7027c",
+ "420a8b96.8ef064",
+ "d37ffbec.0600c8",
+ "d3868686.13f658"
+ ]
+ ]
+ },
+ {
+ "id": "339f697a.dd3e66",
+ "type": "switchNode",
+ "name": "if length > 0 ",
+ "xml": "<switch test='`$tmp.DURRMPolicyMembersLength > 0`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 4036.056137084961,
+ "y": 5617.71537733078,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ [
+ "a71ed519.6ac118",
+ "3b7bdbc1.3a8654"
+ ]
+ ]
+ },
+ {
+ "id": "a71ed519.6ac118",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='true'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 4178.972393035889,
+ "y": 5575.770593166351,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ [
+ "cca6f31.8a6801"
+ ]
+ ]
+ },
+ {
+ "id": "cca6f31.8a6801",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 4345.6388511657715,
+ "y": 5575.771052837372,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ [
+ "c1bc64d5.0f59b8"
+ ]
+ ]
+ },
+ {
+ "id": "c1bc64d5.0f59b8",
+ "type": "switchNode",
+ "name": "ransim mounted",
+ "xml": "<switch test='`$prop.ransim-mounted`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 4193.416732788086,
+ "y": 5454.659788370132,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ [
+ "c319e81d.1bf0f8",
+ "2450544e.c7636c"
+ ]
+ ]
+ },
+ {
+ "id": "c319e81d.1bf0f8",
+ "type": "outcome",
+ "name": "Not Mounted",
+ "xml": "<outcome value='false'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 4436.750473022461,
+ "y": 5470.548467159271,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ [
+ "8f0c66d0.fc45e8"
+ ]
+ ]
+ },
+ {
+ "id": "2450544e.c7636c",
+ "type": "outcome",
+ "name": "Mounted",
+ "xml": "<outcome value='true'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 4427.593982696533,
+ "y": 5510.992750644684,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ [
+ "9663ef07.c3e0f"
+ ]
+ ]
+ },
+ {
+ "id": "8f0c66d0.fc45e8",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 4618.138893127441,
+ "y": 5471.882067203522,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ [
+ "39c65f25.faaa"
+ ]
+ ]
+ },
+ {
+ "id": "39c65f25.faaa",
+ "type": "execute",
+ "name": "delete RRMPolicyRatio DU- URL",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$prop.restapi.removeRRMPolicyRatio.ToNRCellDU`\"/>\n <parameter name=\"outputPath\" value=\"tmp.deleteRRMPolicyRatio-DU.url\"/>\n <parameter name=\"target\" value=\"{idNearRTRIC}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.nearRTRICId`\"/>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 4903.416603088379,
+ "y": 5469.104344844818,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "58ed9fdc.f70ce",
+ "type": "execute",
+ "name": "generate deleteRRMPolicyRatio.ToNRCellCU URL",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$prop.restapi.removeRRMPolicyRatio.ToNRCellDU.ransim-mounted`\"/>\n <parameter name=\"outputPath\" value=\"tmp.deleteRRMPolicyRatio-DU.url\"/>\n <parameter name=\"target\" value=\"{idNearRTRIC}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.nearRTRICId`\"/>",
+ "comments": "",
+ "outputs": 1,
+ "x": 4914.527862548828,
+ "y": 5512.4377064704895,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "4d235858.c42ce8",
+ "type": "execute",
+ "name": "populate mountName",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$tmp.deleteRRMPolicyRatio-DU.url`\"/>\n <parameter name=\"outputPath\" value=\"tmp.deleteRRMPolicyRatio-DU.url\"/>\n <parameter name=\"target\" value=\"{mountName}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.GNBDUId`\"/>",
+ "comments": "",
+ "outputs": 1,
+ "x": 4838.97208404541,
+ "y": 5547.993188381195,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "9663ef07.c3e0f",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 4609.249969482422,
+ "y": 5514.104105472565,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ [
+ "58ed9fdc.f70ce",
+ "4d235858.c42ce8"
+ ]
+ ]
+ },
+ {
+ "id": "3b7bdbc1.3a8654",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='false'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 4182.6875,
+ "y": 5647.437509059906,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ [
+ "3d7dab21.8e1514"
+ ]
+ ]
+ },
+ {
+ "id": "3d7dab21.8e1514",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 4368.354583740234,
+ "y": 5635.770827770233,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ [
+ "e6e6b5c1.daa598",
+ "84c2fa8.a66d308"
+ ]
+ ]
+ },
+ {
+ "id": "e6e6b5c1.daa598",
+ "type": "set",
+ "name": "Read RRMPolicyMember-sNSSA",
+ "xml": "<set>\n<parameter name='tmp.cellDURRMPolicyMember_sNSSAI' value=\"`'$get-rrmpolicyratio-du-response.attributes.RRMPolicyRatio['+ $iddu-rrm+'].attributes.rRMPolicyMemberList['+ $iddu-rrm2 +'].sNSSAI'`\" />",
+ "comments": "",
+ "x": 4661.993957519531,
+ "y": 5594.6605677604675,
+ "z": "ef6618ab.e71c28",
+ "wires": []
+ },
+ {
+ "id": "84c2fa8.a66d308",
+ "type": "switchNode",
+ "name": "find matching RRMPolicyMember",
+ "xml": "<switch test='`$tmp.cellDURRMPolicyMember_sNSSAI==$tmp.sNSSAI`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 4659.631988525391,
+ "y": 5639.659635066986,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ [
+ "e2debe19.05c79"
+ ]
+ ]
+ },
+ {
+ "id": "e2debe19.05c79",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 4890.46533203125,
+ "y": 5644.104012966156,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ [
+ "71840f36.bc53e"
+ ]
+ ]
+ },
+ {
+ "id": "71840f36.bc53e",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 5114.076171875,
+ "y": 5640.770761013031,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ [
+ "bc75a65e.a247d8",
+ "fbf33cbb.f7dd5",
+ "1a7f21b0.035cfe"
+ ]
+ ]
+ },
+ {
+ "id": "bc75a65e.a247d8",
+ "type": "set",
+ "name": "Read RRMPolicyMember-id",
+ "xml": "<set>\n<parameter name='tmp.CellDURRMPolicyMember_id' value=\"`'$get-rrmpolicyratio-du-response.attributes.RRMPolicyRatio['+ $iddu-rrm+'].attributes.rRMPolicyMemberList['+ $iddu-rrm2 +'].idx'`\" />",
+ "comments": "",
+ "x": 5379.742904663086,
+ "y": 5608.548647403717,
+ "z": "ef6618ab.e71c28",
+ "wires": []
+ },
+ {
+ "id": "1a7f21b0.035cfe",
+ "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/terminateRANSlice.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"RRMPolicyMember id - \"/>\n<parameter name=\"field2\" value=\"`$tmp.CellDURRMPolicyMember_id`\"/>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 5331.40283203125,
+ "y": 5656.430673122406,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "fbf33cbb.f7dd5",
+ "type": "switchNode",
+ "name": "ransim mounted",
+ "xml": "<switch test='`$prop.ransim-mounted`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 5336.964912414551,
+ "y": 5704.104312419891,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ [
+ "744f772c.11e608",
+ "ffc5c4e0.f3cb98"
+ ]
+ ]
+ },
+ {
+ "id": "744f772c.11e608",
+ "type": "outcome",
+ "name": "Not Mounted",
+ "xml": "<outcome value='false'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 5580.298973083496,
+ "y": 5703.32633638382,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ [
+ "d89b50a6.4ab1d"
+ ]
+ ]
+ },
+ {
+ "id": "ffc5c4e0.f3cb98",
+ "type": "outcome",
+ "name": "Mounted",
+ "xml": "<outcome value='true'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 5571.142387390137,
+ "y": 5754.881730556488,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ [
+ "267d3403.20ea7c"
+ ]
+ ]
+ },
+ {
+ "id": "d89b50a6.4ab1d",
+ "type": "execute",
+ "name": "generate deleteRRMPolicyMember.ToNRCellDU URL",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$prop.restapi.removeRRMPolicyMember.ToNRCellDU`\"/>\n <parameter name=\"outputPath\" value=\"tmp.deleteRRMPolicyRatio-DU.url\"/>\n <parameter name=\"target\" value=\"{idNearRTRIC}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.nearRTRICId`\"/>",
+ "comments": "",
+ "outputs": 1,
+ "x": 5909.186820983887,
+ "y": 5700.7708468437195,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "267d3403.20ea7c",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 5738.076240539551,
+ "y": 5752.437564373016,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ [
+ "2a7f1faa.0789c",
+ "ec7b11c1.05fdb"
+ ]
+ ]
+ },
+ {
+ "id": "2a7f1faa.0789c",
+ "type": "execute",
+ "name": "generate deleteRRMPolicyRatio.ToNRCellCU URL",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$prop.restapi.removeRRMPolicyMember.ToNRCellDU.ransim-mounted`\"/>\n <parameter name=\"outputPath\" value=\"tmp.deleteRRMPolicyRatio-DU.url\"/>\n <parameter name=\"target\" value=\"{idNearRTRIC}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.nearRTRICId`\"/>",
+ "comments": "",
+ "outputs": 1,
+ "x": 6038.353950500488,
+ "y": 5746.326772212982,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "ec7b11c1.05fdb",
+ "type": "execute",
+ "name": "populate mountName",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$tmp.deleteRRMPolicyRatio-DU.url`\"/>\n <parameter name=\"outputPath\" value=\"tmp.deleteRRMPolicyRatio-DU.url\"/>\n <parameter name=\"target\" value=\"{mountName}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.GNBDUId`\"/>",
+ "comments": "",
+ "outputs": 1,
+ "x": 5958.353668212891,
+ "y": 5805.215188503265,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "6499a345.d7027c",
+ "type": "execute",
+ "name": "prepare idGNBDUFunction",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$tmp.deleteRRMPolicyRatio-DU.url`\"/>\n <parameter name=\"outputPath\" value=\"tmp.deleteRRMPolicyRatio-DU.url\"/>\n <parameter name=\"target\" value=\"{idGNBDUFunction}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.GNBDUId`\"/>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 4211.750144958496,
+ "y": 5689.938275337219,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "420a8b96.8ef064",
+ "type": "execute",
+ "name": "prepare idNRCellDu",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$tmp.deleteRRMPolicyRatio-DU.url`\"/>\n <parameter name=\"outputPath\" value=\"tmp.deleteRRMPolicyRatio-DU.url\"/>\n <parameter name=\"target\" value=\"{idNRCellDU}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.cellDULocalId`\"/>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 4184.25008392334,
+ "y": 5723.188245773315,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "d37ffbec.0600c8",
+ "type": "execute",
+ "name": "prepare RRMPolicyRatio id",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$tmp.deleteRRMPolicyRatio-DU.url`\"/>\n <parameter name=\"outputPath\" value=\"tmp.deleteRRMPolicyRatio-DU.url\"/>\n <parameter name=\"target\" value=\"{id}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.cellDURRMPolicyRatio_id`\"/>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 4207.688026428223,
+ "y": 5757.750777244568,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "d3868686.13f658",
+ "type": "execute",
+ "name": "prepare RRMPolicyMember id",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$tmp.deleteRRMPolicyRatio-DU.url`\"/>\n <parameter name=\"outputPath\" value=\"tmp.deleteRRMPolicyRatio-DU.url\"/>\n <parameter name=\"target\" value=\"{idx}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.cellDURRMPolicyMember_sNSSAI`\"/>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 4215.18758392334,
+ "y": 5793.50074672699,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "3c6e1a79.f26096",
+ "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/terminateRANSlice.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"Delete RRMPolicy URL - \"/>\n<parameter name=\"field2\" value=\"`$tmp.deleteRRMPolicyRatio-DU.url`\"/>\n<parameter name=\"field3\" value=\"RRMPolicyRatio id\"/>\n<parameter name=\"field4\" value=\"`$tmp.cellDURRMPolicyRatio_id`\"/>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 3578.035189628601,
+ "y": 5786.36283826828,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "aa2e708b.e308a",
+ "type": "execute",
+ "name": "Terminate NRCellDU - RRMPolicyRatio",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"restapiUrl\" value=\"`$prop.controller.url + $tmp.deleteRRMPolicyRatio-DU.url`\"/>\n<parameter name=\"restapiUser\" value=\"`$prop.controller.user`\" />\n<parameter name=\"restapiPassword\" value=\"`$prop.controller.pwd`\"/>\n<parameter name=\"httpMethod\" value=\"DELETE\"/>\n<parameter name=\"responsePrefix\" value=\"delete-cellDU-RRMPolicyRatio-response\"/>\n<parameter name='contentType' value='application/json' /> \n<parameter name='format' value='json' />",
+ "comments": "",
+ "outputs": 1,
+ "x": 3665.312454223633,
+ "y": 5852.612397193909,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ [
+ "77051153.b9545",
+ "d2b03e66.99c87"
+ ]
+ ]
+ },
+ {
+ "id": "c456d34.fe5423",
+ "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": 220.0833339691162,
+ "y": 1723.5833735466003,
+ "z": "ef6618ab.e71c28",
+ "wires": []
+ },
+ {
+ "id": "b7895624.0ca7f8",
+ "type": "for",
+ "name": "foreach PLMNInfo",
+ "xml": "<for index='id-ric' start='0' end='`$tmp.RICPLMNEntries`' >\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 987.0000991821289,
+ "y": 798.5000524520874,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ [
+ "76e6f7a.3ca4d08"
+ ]
+ ]
+ },
+ {
+ "id": "76e6f7a.3ca4d08",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 1168.2500686645508,
+ "y": 780.5000038146973,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ [
+ "94c9e791.10cd98",
+ "564ce9e2.d06238"
+ ]
+ ]
+ },
+ {
+ "id": "49b437f3.5cf978",
+ "type": "switchNode",
+ "name": "is NSSAI exists",
+ "xml": "<switch test='`$tmp.ric.sNSSAI == $tmp.sNSSAI`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1366.2500915527344,
+ "y": 811.7500858306885,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ [
+ "3976d7ae.f2c0a8",
+ "5cd1fb3d.1481e4"
+ ]
+ ]
+ },
+ {
+ "id": "e22a1b59.fe9f38",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 1590.5002670288086,
+ "y": 722.5000829696655,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ [
+ "fb9fe418.9a17b8",
+ "34883ae0.e4eea6",
+ "2978a6c1.06fe2a",
+ "989e4f58.38bde",
+ "1659b31f.61c47d",
+ "1404947f.e16acc",
+ "54425eac.eaaf6"
+ ]
+ ]
+ },
+ {
+ "id": "15ff5f7d.ac4ce1",
+ "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/terminateRANSlice.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"PLMNInfo List before removal\"/>\n<parameter name=\"field2\" value=\"`$tmp.RICPLMNEntries`\"/>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 958.25,
+ "y": 724.2500057220459,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "fb9fe418.9a17b8",
+ "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/terminateRANSlice.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"sNSSAI\"/>\n<parameter name=\"field2\" value=\"`$tmp.ric.sNSSAIremoved`\" />\n<parameter name=\"field3\" value=\"nearRTRICId\"/>\n<parameter name=\"field4\" value=\"`$tmp.nearRTRICId`\" />\n<parameter name=\"field5\" value=\"endpoint URL\"/>\n<parameter name=\"field6\" value=\"`$tmp.configdb.getNearRTRICNSSAIRemoval.url`\" />\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1728.454689025879,
+ "y": 919.2728900909424,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "3976d7ae.f2c0a8",
+ "type": "outcome",
+ "name": "True",
+ "xml": "<outcome value='true'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1517.0000762939453,
+ "y": 767.750057220459,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ [
+ "e22a1b59.fe9f38"
+ ]
+ ]
+ },
+ {
+ "id": "5cd1fb3d.1481e4",
+ "type": "failure",
+ "name": "false",
+ "xml": "<outcome value='false'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1519.7499923706055,
+ "y": 829.2499876022339,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ [
+ "3bb606bc.e67bca"
+ ]
+ ]
+ },
+ {
+ "id": "3bb606bc.e67bca",
+ "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/terminateRANSlice.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"NSSAI doesn't exist \"/>\n\n\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1505.7499961853027,
+ "y": 890.2500371932983,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "64f89e65.0ab4b",
+ "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/terminateRANSlice.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"plmninfolistlength in true \"/>\n<parameter name=\"field2\" value=\"`$tmp.pLMNInfoList_length`\"/>\n\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2503.399990081787,
+ "y": 548.4500017166138,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "1e47fe7b.f65f02",
+ "type": "switchNode",
+ "name": "check the action",
+ "xml": "<switch test='`$tmp.pLMNInfoList_length > 0`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2106.5999298095703,
+ "y": 808.0501098632812,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ [
+ "41fbb677.47daa8",
+ "fa6f994b.ad8d78"
+ ]
+ ]
+ },
+ {
+ "id": "41fbb677.47daa8",
+ "type": "outcome",
+ "name": "True",
+ "xml": "<outcome value='true'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2194.5998573303223,
+ "y": 696.0500302314758,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ [
+ "6c8d3861.194578"
+ ]
+ ]
+ },
+ {
+ "id": "fa6f994b.ad8d78",
+ "type": "outcome",
+ "name": "False",
+ "xml": "<outcome value='false'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2213.599884033203,
+ "y": 747.0500526428223,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ [
+ "db983423.8e86a8"
+ ]
+ ]
+ },
+ {
+ "id": "a6a0663a.c18978",
+ "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/terminateRANSlice.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"plmninfolistlength in false \"/>\n<parameter name=\"field2\" value=\"`$tmp.pLMNInfoList_length`\"/>\n\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2388.400375366211,
+ "y": 825.8501315116882,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "6c8d3861.194578",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 2364.599937438965,
+ "y": 688.2500796318054,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ [
+ "64f89e65.0ab4b",
+ "a4271c85.b4e31"
+ ]
+ ]
+ },
+ {
+ "id": "db983423.8e86a8",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 2349.600051879883,
+ "y": 736.2500548362732,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ [
+ "a6a0663a.c18978"
+ ]
+ ]
+ },
+ {
+ "id": "eb2cc8b8.8811b8",
+ "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/terminateRANSlice.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"`'getNFNSSIRIC-cps-response.['+ $idy +'].GNBCUCPFunction['+ $idz +'].NRCellCU['+ $idcu +'].attributes.pLMNInfoList_length'`\"/>\n<parameter name=\"field2\" value=\"`$tmp.pLMNInfoList_length`\"/>\n\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2059.599868774414,
+ "y": 658.7501215934753,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "ab1a1337.b2d58",
+ "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/terminateRANSlice.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"cuup_plmninfolength \"/>\n<parameter name=\"field2\" value=\"`$tmp.pLMNInfoList`\"/>\n\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1132.8000411987305,
+ "y": 2256.149984359741,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "3b2efef6.f4db92",
+ "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/terminateRANSlice.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"RRMPolicyMembersList size\"/>\n<parameter name=\"field2\" value=\"`$tmp.NRCellCURRMPolicyMembersLength`\"/>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2506.999984741211,
+ "y": 2280.7499408721924,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "6917fdf2.dd9844",
+ "type": "execute",
+ "name": "Read RRMPolicy Member List Length",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'>\n\t<parameter name='outputPath' value='tmp.NRCellCURRMPolicyMembersLength' />\n\t<parameter name='source' value=\"`'get-rrmpolicyratio-response.attributes.RRMPolicyRatio['+ $idcu-rrm+'].attributes.rRMPolicyMemberList_length'`\" />\n ",
+ "comments": "",
+ "outputs": 1,
+ "x": 2557.000129699707,
+ "y": 2167.949939727783,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "6f0d087a.f937e8",
+ "type": "execute",
+ "name": "RRMPolicyRatio id",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'>\n\t<parameter name='outputPath' value='tmp.RRMPolicyRatio_id' />\n\t<parameter name='source' value=\"`'get-rrmpolicyratio-response.attributes.RRMPolicyRatio['+ $idcu-rrm+'].id'`\" />\n ",
+ "comments": "",
+ "outputs": 1,
+ "x": 2501.400131225586,
+ "y": 2125.9499378204346,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "33960a6b.e663d6",
+ "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": 664.9545745849609,
+ "y": 1065.2954750061035,
+ "z": "ef6618ab.e71c28",
+ "wires": []
+ },
+ {
+ "id": "94c9e791.10cd98",
+ "type": "execute",
+ "name": "read sNSSAIList Length",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'>\n\t<parameter name='outputPath' value='tmp.ric.sNSSAILength' />\n\t<parameter name='source' value=\"`'getNFNSSIRIC-cps-response.['+ $idy +'].attributes.pLMNInfoList['+$id-ric+'].sNSSAIList_length'`\" />\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1287.0001678466797,
+ "y": 689.5000343322754,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "564ce9e2.d06238",
+ "type": "for",
+ "name": "foreach sNSSAI",
+ "xml": "<for index='id-ric-snssai' start='0' end='`$tmp.ric.sNSSAILength`' >\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1346.0001678466797,
+ "y": 721.5000343322754,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ [
+ "536ee724.83a118"
+ ]
+ ]
+ },
+ {
+ "id": "536ee724.83a118",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 1557.000072479248,
+ "y": 633.5000333786011,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ [
+ "1a0e5e3f.3e9692",
+ "49b437f3.5cf978",
+ "3d27856c.95527a"
+ ]
+ ]
+ },
+ {
+ "id": "1a0e5e3f.3e9692",
+ "type": "execute",
+ "name": "read sNSSAI",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'>\n\t<parameter name='outputPath' value='tmp.ric.sNSSAI' />\n\t<parameter name='source' value=\"`'getNFNSSIRIC-cps-response.['+ $idy +'].attributes.pLMNInfoList['+$id-ric+'].sNSSAIList['+$id-ric-snssai+'].sNssai'`\" />\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1749.0001678466797,
+ "y": 529.5000505447388,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "2978a6c1.06fe2a",
+ "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/terminateRANSlice.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"Matching sNSSAI found in config DB\"/>\n<parameter name=\"field2\" value=\"`$tmp.ric.sNSSAI`\"/>\n<parameter name=\"field3\" value=\"sNSSAI List length before removal\"/>\n<parameter name=\"field4\" value=\"`$tmp.ric.sNSSAILength`\"/>",
+ "comments": "",
+ "outputs": 1,
+ "x": 1735.7501068115234,
+ "y": 684.5000114440918,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "989e4f58.38bde",
+ "type": "execute",
+ "name": "read sNSSAI",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'>\n\t<parameter name='outputPath' value='tmp.ric.sNSSAIremoved' />\n\t<parameter name='source' value=\"`'getNFNSSIRIC-cps-response.['+ $idy +'].attributes.pLMNInfoList['+$id-ric+'].sNSSAIList['+$id-ric-snssai+'].sNssai'`\" />\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1763.25,
+ "y": 731.2500839233398,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "fe57d7c.f7b2f28",
+ "type": "execute",
+ "name": "Read RRMPolicy Member List Length",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'>\n\t<parameter name='outputPath' value='tmp.CUUPRRMPolicyMembersLength' />\n\t<parameter name='source' value=\"`'get-rrmpolicyratio-cuup-response.attributes.RRMPolicyRatio['+ $idcuup-rrm+'].attributes.rRMPolicyMemberList_length'`\" />\n ",
+ "comments": "",
+ "outputs": 1,
+ "x": 2047.0002517700195,
+ "y": 3550.449959754944,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "2b1fd179.9e31fe",
+ "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/terminateRANSlice.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"CUUP - RRMPolicyMembersList size\"/>\n<parameter name=\"field2\" value=\"`$tmp.CUUPRRMPolicyMembersLength`\"/>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2032.0001754760742,
+ "y": 3598.4500579833984,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "9fc7c5b.0387d38",
+ "type": "execute",
+ "name": "RRMPolicyRatio id",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'>\n\t<parameter name='outputPath' value='tmp.CUUPRRMPolicyRatio_id' />\n\t<parameter name='source' value=\"`'get-rrmpolicyratio-cuup-response.attributes.RRMPolicyRatio['+ $idcuup-rrm+'].id'`\" />\n ",
+ "comments": "",
+ "outputs": 1,
+ "x": 2035.799934387207,
+ "y": 3509.4499588012695,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "814d0d47.dc151",
+ "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/terminateRANSlice.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"Delete RRMPolicy URL first - \"/>\n<parameter name=\"field2\" value=\"`$tmp.deleteRRMPolicyRatio-CUUP.url`\"/>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2479.0001335144043,
+ "y": 3513.149959564209,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "c29b3e94.917ca",
+ "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/terminateRANSlice.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"before setting url\" />\n<parameter name=\"field2\" value=\"ransimnot mounted\" />\n\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 3194.199996948242,
+ "y": 3185.550105571747,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "c9ed0d14.ac512",
+ "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/terminateRANSlice.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"Delete RRMPolicy URL after setting - \"/>\n<parameter name=\"field2\" value=\"`$tmp.deleteRRMPolicyRatio-CUUP.url`\"/>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 3227.199951171875,
+ "y": 3298.550057888031,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "80534116.ca9af",
+ "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/terminateRANSlice.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"Success\" />\n<parameter name=\"field2\" value=\"Tocheck if ransim mounted\" />\n\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2767.60009765625,
+ "y": 3208.350106716156,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "8437179b.8ec7a8",
+ "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/terminateRANSlice.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"Failure\" />\n<parameter name=\"field2\" value=\"Tocheck if ransim mounted\" />\n\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2983.00004196167,
+ "y": 3436.3501563072205,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "6a11af4f.d7015",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2144.4000282287598,
+ "y": 3062.450050354004,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ [
+ "b98f7b7f.c5d088"
+ ]
+ ]
+ },
+ {
+ "id": "6c216737.b275e8",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2171.4000244140625,
+ "y": 3140.450051307678,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ [
+ "c9008e39.94f08"
+ ]
+ ]
+ },
+ {
+ "id": "b98f7b7f.c5d088",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 2339.400032043457,
+ "y": 3055.450050354004,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ [
+ "415cbbf8.9d4124",
+ "86fa30e7.dfbfa"
+ ]
+ ]
+ },
+ {
+ "id": "c9008e39.94f08",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 2345.400032043457,
+ "y": 3133.450050354004,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ [
+ "3c49989a.5061b8"
+ ]
+ ]
+ },
+ {
+ "id": "3c49989a.5061b8",
+ "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/terminateRANSlice.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"Successfully removed - gNBCUUP PLMNInfo Entry from configdb\"/>",
+ "comments": "",
+ "outputs": 1,
+ "x": 2524.4000358581543,
+ "y": 3152.450051307678,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "86fa30e7.dfbfa",
+ "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 removing CUUP PLMNInfo. Aborting RPC executiopn'/>",
+ "comments": "",
+ "x": 2570.6000366210938,
+ "y": 3079.450050354004,
+ "z": "ef6618ab.e71c28",
+ "wires": []
+ },
+ {
+ "id": "415cbbf8.9d4124",
+ "type": "set",
+ "name": "set",
+ "xml": "<set>\n<parameter name='error-code' value='500'/>\n<parameter name='error-message' value='Error removing CUUP PLMNInfoList. Aborting RPC executiopn'/>",
+ "comments": "",
+ "x": 2571.6000366210938,
+ "y": 3041.4500494003296,
+ "z": "ef6618ab.e71c28",
+ "wires": []
+ },
+ {
+ "id": "6ccb5957.6e97a8",
+ "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.sNssaiListLength' />\n\t<parameter name='source' value=\"`'getNFNSSIRIC-cps-response.['+ $idy +'].GNBCUUPFunction['+ $id-cuup +'].attributes.pLMNInfoList['+ $id-plmn +'].sNSSAIList_length'`\" />",
+ "comments": "",
+ "outputs": 1,
+ "x": 1292.9999923706055,
+ "y": 2322.849843978882,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "3a6bc5d.5ee993a",
+ "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/terminateRANSlice.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"cuup_plmninfolength_nssailength \"/>\n<parameter name=\"field2\" value=\"`$tmp.sNssaiListLength`\"/>\n\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1290.0000686645508,
+ "y": 2376.050039291382,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "b7a0d3b1.e2614",
+ "type": "for",
+ "name": "foreach snssai",
+ "xml": "<for index='id-snssai' start='0' end='`$tmp.sNssaiListLength`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1478.0000915527344,
+ "y": 2537.6504344940186,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ [
+ "9f941657.84b308"
+ ]
+ ]
+ },
+ {
+ "id": "9f941657.84b308",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 1224.0000915527344,
+ "y": 2622.650484085083,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ [
+ "1b88da83.b7eeb5",
+ "81a294ba.0e11e8",
+ "54d6339e.a38aec"
+ ]
+ ]
+ },
+ {
+ "id": "8a2c4744.a700e8",
+ "type": "switchNode",
+ "name": "check the action",
+ "xml": "<switch test='`$tmp.sNssaiListLength > 0`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1225.9999923706055,
+ "y": 2466.450433731079,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ [
+ "a4c55d63.5547b",
+ "22c42819.378698"
+ ]
+ ]
+ },
+ {
+ "id": "a4c55d63.5547b",
+ "type": "outcome",
+ "name": "True",
+ "xml": "<outcome value='true'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1399.9999961853027,
+ "y": 2412.6500415802,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ [
+ "99b88c3f.d9bc"
+ ]
+ ]
+ },
+ {
+ "id": "22c42819.378698",
+ "type": "outcome",
+ "name": "False",
+ "xml": "<outcome value='false'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1394.799997329712,
+ "y": 2481.849846839905,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ [
+ "d70198d9.23c128"
+ ]
+ ]
+ },
+ {
+ "id": "99b88c3f.d9bc",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 1497.9999980926514,
+ "y": 2343.2500400543213,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ [
+ "b7a0d3b1.e2614",
+ "3cefb342.1f4b8c"
+ ]
+ ]
+ },
+ {
+ "id": "d70198d9.23c128",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 1540.0000953674316,
+ "y": 2483.25004196167,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ [
+ "4b40780c.a75688"
+ ]
+ ]
+ },
+ {
+ "id": "4b40780c.a75688",
+ "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/terminateRANSlice.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"plmninfolistnssailength in false \"/>\n<parameter name=\"field2\" value=\"`$tmp.sNssaiListLength`\"/>\n\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1617.599998474121,
+ "y": 2428.4500427246094,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "3cefb342.1f4b8c",
+ "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/terminateRANSlice.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"plmninfolistnssailength in true \"/>\n<parameter name=\"field2\" value=\"`$tmp.sNssaiListLength`\"/>\n\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1645.400074005127,
+ "y": 2322.450038909912,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "55957445.1f742c",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 1774.2000274658203,
+ "y": 2699.6502895355225,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ [
+ "de0fc599.a60458",
+ "a7cd0e67.196b7",
+ "93bc35c0.833c98",
+ "153e8344.b21fcd",
+ "ecd0711.911899",
+ "66f45efa.a8ba4",
+ "1a9722f0.c4a64d",
+ "8fd00b15.09c6f8",
+ "191dc287.aec87d",
+ "f0b44ecd.02e3e"
+ ]
+ ]
+ },
+ {
+ "id": "e635ef1e.b8037",
+ "type": "outcome",
+ "name": "False",
+ "xml": "<outcome value='false'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1592,
+ "y": 2753.050045967102,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ [
+ "49f10bf5.59a174"
+ ]
+ ]
+ },
+ {
+ "id": "49f10bf5.59a174",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 1742,
+ "y": 2752.0500450134277,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ [
+ "24898117.75da8e"
+ ]
+ ]
+ },
+ {
+ "id": "24898117.75da8e",
+ "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/terminateRANSlice.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"nssaimatch in false \"/>\n<parameter name=\"field2\" value=\"`nssai deletion does not takes place`\"/>\n\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1735.0000038146973,
+ "y": 2818.0500450134277,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "1a9722f0.c4a64d",
+ "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/terminateRANSlice.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"nssaimatch in True \"/>\n<parameter name=\"field2\" value=\"`Proceeding for nssai deletion`\"/>\n\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1945.0000267028809,
+ "y": 2662.0500926971436,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "6b827803.541a98",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2309.60009765625,
+ "y": 3910.649908065796,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ [
+ "deb8a1a6.1a997"
+ ]
+ ]
+ },
+ {
+ "id": "67c67695.b83e18",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2316.600128173828,
+ "y": 3982.8501625061035,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ [
+ "80446c8f.34c37"
+ ]
+ ]
+ },
+ {
+ "id": "deb8a1a6.1a997",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 2478.60009765625,
+ "y": 3909.649908065796,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ [
+ "1c2d1634.30322a",
+ "db339ac4.beef58"
+ ]
+ ]
+ },
+ {
+ "id": "db339ac4.beef58",
+ "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 removing CUUP PLMNInfo. Aborting RPC executiopn'/>",
+ "comments": "",
+ "x": 2667.6001358032227,
+ "y": 3912.649965286255,
+ "z": "ef6618ab.e71c28",
+ "wires": []
+ },
+ {
+ "id": "1c2d1634.30322a",
+ "type": "set",
+ "name": "set",
+ "xml": "<set>\n<parameter name='error-code' value='500'/>\n<parameter name='error-message' value='Error removing CUUP PLMNInfoList. Aborting RPC executiopn'/>",
+ "comments": "",
+ "x": 2658.60009765625,
+ "y": 3862.6499071121216,
+ "z": "ef6618ab.e71c28",
+ "wires": []
+ },
+ {
+ "id": "80446c8f.34c37",
+ "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/terminateRANSlice.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"Successfully removed - gNBCUUP rrmpolicy Entry from configdb\"/>",
+ "comments": "",
+ "outputs": 1,
+ "x": 2559.60009765625,
+ "y": 3994.649908065796,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "e3e4bd80.17ff5",
+ "type": "block",
+ "name": "block : gNBDU",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 1977.1999778747559,
+ "y": 4328.450265884399,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ [
+ "9bc85a3f.4f97b8",
+ "390b889.487c978",
+ "654f9275.7690ac",
+ "6d164dd8.0d2cd4"
+ ]
+ ]
+ },
+ {
+ "id": "654f9275.7690ac",
+ "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/terminateRANSlice.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"Iterating \"/>\n<parameter name=\"field2\" value=\"`CellDU`\"/>\n\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2096.2000312805176,
+ "y": 4199.450067520142,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "6d164dd8.0d2cd4",
+ "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/terminateRANSlice.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"plmninfolengthcelldu \"/>\n<parameter name=\"field2\" value=\"`$tmp.DUpLMNInfoList_length`\"/>\n\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2161.2000312805176,
+ "y": 4326.45006942749,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "4734669f.9445a8",
+ "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/terminateRANSlice.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"LocalId \"/>\n<parameter name=\"field2\" value=\"`$tmp.cellDULocalId`\"/>\n\n\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 3052.39990234375,
+ "y": 4692.450201034546,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "4203c5c.ffe3e3c",
+ "type": "execute",
+ "name": "RRMPolicyRatio id",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'>\n\t<parameter name='outputPath' value='tmp.cellDURRMPolicyRatio_id' />\n\t<parameter name='source' value=\"`'get-rrmpolicyratio-du-response.attributes.RRMPolicyRatio['+ $iddu-rrm+'].id'`\" />\n ",
+ "comments": "",
+ "outputs": 1,
+ "x": 3575.199951171875,
+ "y": 5566.449892044067,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "90a911a7.ea2cc",
+ "type": "set",
+ "name": "RRMPolicyRatio id",
+ "xml": "<set>\n<parameter name='tmp.cellDURRMPolicyRatio_id' value=\"`'$get-rrmpolicyratio-du-response.attributes.RRMPolicyRatio['+ $iddu-rrm+'].id'`\" />",
+ "comments": "",
+ "x": 3944.2503509521484,
+ "y": 5558.000379562378,
+ "z": "ef6618ab.e71c28",
+ "wires": []
+ },
+ {
+ "id": "4215cbad.f74294",
+ "type": "execute",
+ "name": "Read RRMPolicy Member List Length",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'>\n\t<parameter name='outputPath' value='tmp.DURRMPolicyMembersLength' />\n\t<parameter name='source' value=\"`'get-rrmpolicyratio-du-response.attributes.RRMPolicyRatio['+ $iddu-rrm+'].attributes.rRMPolicyMemberList_length'`\" />\n ",
+ "comments": "",
+ "outputs": 1,
+ "x": 3637.999954223633,
+ "y": 5607.449892044067,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "35ec1dcf.6b70f2",
+ "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/terminateRANSlice.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"RRMPOLICYmemberslength\"/>\n<parameter name=\"field2\" value=\"`$tmp.DURRMPolicyMembersLength`\"/>\n\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 3665.7999572753906,
+ "y": 5655.050283432007,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "9cbbdff1.2db93",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 3277.399871826172,
+ "y": 5148.649852752686,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ [
+ "aa918963.569728"
+ ]
+ ]
+ },
+ {
+ "id": "87aacf63.99c86",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 3284.39990234375,
+ "y": 5220.850107192993,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ [
+ "9767745b.f63dd8"
+ ]
+ ]
+ },
+ {
+ "id": "aa918963.569728",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 3446.399871826172,
+ "y": 5147.649852752686,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ [
+ "5d865a21.032204",
+ "e727a194.52baa"
+ ]
+ ]
+ },
+ {
+ "id": "e727a194.52baa",
+ "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 removing CUUP PLMNInfo. Aborting RPC executiopn'/>",
+ "comments": "",
+ "x": 3635.3999099731445,
+ "y": 5150.6499099731445,
+ "z": "ef6618ab.e71c28",
+ "wires": []
+ },
+ {
+ "id": "5d865a21.032204",
+ "type": "set",
+ "name": "set",
+ "xml": "<set>\n<parameter name='error-code' value='500'/>\n<parameter name='error-message' value='Error removing CUUP PLMNInfoList. Aborting RPC executiopn'/>",
+ "comments": "",
+ "x": 3626.399871826172,
+ "y": 5100.649851799011,
+ "z": "ef6618ab.e71c28",
+ "wires": []
+ },
+ {
+ "id": "9767745b.f63dd8",
+ "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/terminateRANSlice.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"Successfully removed - gNBDU pmmninfo Entry from configdb\"/>",
+ "comments": "",
+ "outputs": 1,
+ "x": 3507.4001502990723,
+ "y": 5206.65018081665,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "f4950f8e.2c2cb",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 3806.800151824951,
+ "y": 6069.850191116333,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ [
+ "a883fe7f.66d31"
+ ]
+ ]
+ },
+ {
+ "id": "639111e1.a2174",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 3819.800151824951,
+ "y": 6118.0505838394165,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ [
+ "4ec1c50c.57dc9c"
+ ]
+ ]
+ },
+ {
+ "id": "a883fe7f.66d31",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 3967.8001556396484,
+ "y": 6076.850191116333,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "4ec1c50c.57dc9c",
+ "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/terminateRANSlice.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"Successfully removed - gNBDU rrmpolicy Entry from configdb\"/>",
+ "comments": "",
+ "outputs": 1,
+ "x": 3976.8001556396484,
+ "y": 6118.850193023682,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "bb5d6dd6.83647",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2797.599956512451,
+ "y": 2617.85010433197,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ [
+ "82ee16f0.061ff8"
+ ]
+ ]
+ },
+ {
+ "id": "4e7786b8.1d6608",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2810.599956512451,
+ "y": 2666.0504970550537,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ [
+ "cc04d001.6e479"
+ ]
+ ]
+ },
+ {
+ "id": "82ee16f0.061ff8",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 2958.5999603271484,
+ "y": 2624.85010433197,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "cc04d001.6e479",
+ "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/terminateRANSlice.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"Successfully removed - gNBCU rrmpolicy Entry from configdb\"/>",
+ "comments": "",
+ "outputs": 1,
+ "x": 2967.5999603271484,
+ "y": 2666.850106239319,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "1c04f0a6.c01d1f",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2450.2000465393066,
+ "y": 1566.249981880188,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ [
+ "1647b2cc.a29dcd"
+ ]
+ ]
+ },
+ {
+ "id": "6f9f097f.cee4a8",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2477.2000427246094,
+ "y": 1644.2499828338623,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ [
+ "dc9d954a.ad8688"
+ ]
+ ]
+ },
+ {
+ "id": "1647b2cc.a29dcd",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 2645.200050354004,
+ "y": 1559.249981880188,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ [
+ "c1fa60a0.4a4f",
+ "6ccc6a9b.564634"
+ ]
+ ]
+ },
+ {
+ "id": "dc9d954a.ad8688",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 2651.200050354004,
+ "y": 1637.249981880188,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ [
+ "fd30666f.d718f8"
+ ]
+ ]
+ },
+ {
+ "id": "fd30666f.d718f8",
+ "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/terminateRANSlice.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"Successfully removed - CEllCU PLMNInfo Entry from configdb\"/>",
+ "comments": "",
+ "outputs": 1,
+ "x": 2836.2000427246094,
+ "y": 1648.250072479248,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "6ccc6a9b.564634",
+ "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 removing CUUP PLMNInfo. Aborting RPC executiopn'/>",
+ "comments": "",
+ "x": 2875.4002380371094,
+ "y": 1589.250072479248,
+ "z": "ef6618ab.e71c28",
+ "wires": []
+ },
+ {
+ "id": "c1fa60a0.4a4f",
+ "type": "set",
+ "name": "set",
+ "xml": "<set>\n<parameter name='error-code' value='500'/>\n<parameter name='error-message' value='Error removing CUUP PLMNInfoList. Aborting RPC executiopn'/>",
+ "comments": "",
+ "x": 2877.4000549316406,
+ "y": 1545.2499809265137,
+ "z": "ef6618ab.e71c28",
+ "wires": []
+ },
+ {
+ "id": "2f1d5905.26edc6",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 2323.3999366760254,
+ "y": 4142.250065803528,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ [
+ "511b3d8.e8e85c4",
+ "2233c411.5c43bc",
+ "7f3c5d5b.f93c74"
+ ]
+ ]
+ },
+ {
+ "id": "511b3d8.e8e85c4",
+ "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.sNssaiListLengthDU' />\n\t<parameter name='source' value=\"`'getNFNSSIRIC-cps-response.['+ $idy +'].GNBDUFunction['+ $id-du +'].NRCellDU['+ $id-celldu +'].attributes.pLMNInfoList['+ $id-duplmn +'].sNSSAIList_length'`\" />",
+ "comments": "",
+ "outputs": 1,
+ "x": 2574.14990234375,
+ "y": 4074.5996124744415,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "2233c411.5c43bc",
+ "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/terminateRANSlice.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"DU_plmninfolength_nssailength \"/>\n<parameter name=\"field2\" value=\"`$tmp.sNssaiListLengthDU`\"/>\n\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2571.1500358581543,
+ "y": 4124.800065994263,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "eb0d8d98.74c5f",
+ "type": "for",
+ "name": "foreach snssai",
+ "xml": "<for index='id-dusnssai' start='0' end='`$tmp.sNssaiListLengthDU`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2759.150001525879,
+ "y": 4289.400202989578,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ [
+ "398d85e2.2dc40a"
+ ]
+ ]
+ },
+ {
+ "id": "398d85e2.2dc40a",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 2505.150001525879,
+ "y": 4374.400252580643,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ [
+ "4d74a9ab.0a99b8",
+ "52a23239.3966bc",
+ "9db8a2d.1060f6"
+ ]
+ ]
+ },
+ {
+ "id": "7f3c5d5b.f93c74",
+ "type": "switchNode",
+ "name": "check the action",
+ "xml": "<switch test='`$tmp.sNssaiListLengthDU > 0`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2507.14990234375,
+ "y": 4218.200202226639,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ [
+ "98689bbe.1a57e8",
+ "aec9e093.8be21"
+ ]
+ ]
+ },
+ {
+ "id": "98689bbe.1a57e8",
+ "type": "outcome",
+ "name": "True",
+ "xml": "<outcome value='true'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2681.1499061584473,
+ "y": 4164.39981007576,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ [
+ "78873c9c.d43254"
+ ]
+ ]
+ },
+ {
+ "id": "aec9e093.8be21",
+ "type": "outcome",
+ "name": "False",
+ "xml": "<outcome value='false'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2675.9499073028564,
+ "y": 4233.5996153354645,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ [
+ "dd3f9417.0506a8"
+ ]
+ ]
+ },
+ {
+ "id": "78873c9c.d43254",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 2779.149908065796,
+ "y": 4094.999808549881,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ [
+ "eb0d8d98.74c5f",
+ "954a8eb7.63db1"
+ ]
+ ]
+ },
+ {
+ "id": "dd3f9417.0506a8",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 2821.150005340576,
+ "y": 4234.99981045723,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ [
+ "1309ef6e.4f2021"
+ ]
+ ]
+ },
+ {
+ "id": "1309ef6e.4f2021",
+ "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/terminateRANSlice.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"plmninfolistnssailength in false in DU \"/>\n<parameter name=\"field2\" value=\"`$tmp.sNssaiListLengthDU`\"/>\n\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2898.7499084472656,
+ "y": 4180.199811220169,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "954a8eb7.63db1",
+ "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/terminateRANSlice.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"plmninfolistnssailength in true in DU \"/>\n<parameter name=\"field2\" value=\"`$tmp.sNssaiListLengthDU`\"/>\n\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2926.5499839782715,
+ "y": 4074.199807405472,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "6bd0302.f586ad",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 2605.199951171875,
+ "y": 452.6499996185303,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ [
+ "aa44c473.bbbba8",
+ "1197617b.cc494f",
+ "47d51a79.b061b4"
+ ]
+ ]
+ },
+ {
+ "id": "aa44c473.bbbba8",
+ "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.sNssaiListLengthCU' />\n\t<parameter name='source' value=\"`'getNFNSSIRIC-cps-response.['+ $idy +'].GNBCUCPFunction['+ $idz +'].NRCellCU['+ $idcu +'].attributes.pLMNInfoList['+ $id-cuplmn +'].sNSSAIList_length'`\" />\n\t",
+ "comments": "",
+ "outputs": 1,
+ "x": 2855.9499168395996,
+ "y": 384.99954628944397,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "1197617b.cc494f",
+ "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/terminateRANSlice.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"CU_plmninfolength_nssailength \"/>\n<parameter name=\"field2\" value=\"`$tmp.sNssaiListLengthCU`\"/>\n\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2852.950050354004,
+ "y": 435.19999980926514,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "6a3e5da4.710c24",
+ "type": "for",
+ "name": "foreach snssai",
+ "xml": "<for index='id-cusnssai' start='0' end='`$tmp.sNssaiListLengthCU`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 3084.9500427246094,
+ "y": 596.8000812530518,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ [
+ "b95f77aa.edfc98"
+ ]
+ ]
+ },
+ {
+ "id": "47d51a79.b061b4",
+ "type": "switchNode",
+ "name": "check the action",
+ "xml": "<switch test='`$tmp.sNssaiListLengthCU > 0`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2788.9499168395996,
+ "y": 528.6001360416412,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ [
+ "ee0b4387.d21a3",
+ "98516663.868528"
+ ]
+ ]
+ },
+ {
+ "id": "ee0b4387.d21a3",
+ "type": "outcome",
+ "name": "True",
+ "xml": "<outcome value='true'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2962.949920654297,
+ "y": 474.79974389076233,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ [
+ "673cb023.6620e"
+ ]
+ ]
+ },
+ {
+ "id": "98516663.868528",
+ "type": "outcome",
+ "name": "False",
+ "xml": "<outcome value='false'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2958.7500915527344,
+ "y": 524.9995670318604,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ [
+ "11fa41de.1dd61e"
+ ]
+ ]
+ },
+ {
+ "id": "673cb023.6620e",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 3060.9499225616455,
+ "y": 405.3997423648834,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ [
+ "6a3e5da4.710c24",
+ "4429e363.cc313c"
+ ]
+ ]
+ },
+ {
+ "id": "11fa41de.1dd61e",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 3130.950241088867,
+ "y": 531.3997688293457,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ [
+ "47352264.a09ccc"
+ ]
+ ]
+ },
+ {
+ "id": "47352264.a09ccc",
+ "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/terminateRANSlice.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"plmninfolistnssailength in false in CU \"/>\n<parameter name=\"field2\" value=\"`$tmp.sNssaiListLengthCU`\"/>\n\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 3302.5498542785645,
+ "y": 527.5997200012207,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "4429e363.cc313c",
+ "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/terminateRANSlice.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"plmninfolistnssailength in true in CU \"/>\n<parameter name=\"field2\" value=\"`$tmp.sNssaiListLengthCU`\"/>\n\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 3208.349998474121,
+ "y": 384.59974122047424,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "2ecc0183.03bf1e",
+ "type": "switchNode",
+ "name": "check the action for terminate",
+ "xml": "<switch test='`$terminate-r-a-n-slice-instance-input.action == deallocate`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 502.0000534057617,
+ "y": 156.75000762939453,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ [
+ "b11099b8.398bb8",
+ "dc47b287.5a833"
+ ]
+ ]
+ },
+ {
+ "id": "b11099b8.398bb8",
+ "type": "outcome",
+ "name": "True",
+ "xml": "<outcome value='true'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 811.9999885559082,
+ "y": 139.75000762939453,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ [
+ "9ed8fded.20c86"
+ ]
+ ]
+ },
+ {
+ "id": "dc47b287.5a833",
+ "type": "outcome",
+ "name": "False",
+ "xml": "<outcome value='false'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 830.0000381469727,
+ "y": 192.7500343322754,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ [
+ "9a8f6761.93b8b8"
+ ]
+ ]
+ },
+ {
+ "id": "b4c0abb3.7aab88",
+ "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/terminateRANSlice.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"modify deallocate called\" />\n\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1182.80082321167,
+ "y": 176.55010604858398,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "9ed8fded.20c86",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 979.0000877380371,
+ "y": 138.9500560760498,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ [
+ "7c60a0f0.f2104",
+ "801a0715.f6d848"
+ ]
+ ]
+ },
+ {
+ "id": "9a8f6761.93b8b8",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 993.0001983642578,
+ "y": 189.95000743865967,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ [
+ "b4c0abb3.7aab88",
+ "83b16463.dd6eb8"
+ ]
+ ]
+ },
+ {
+ "id": "7c60a0f0.f2104",
+ "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/terminateRANSlice.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"deallocate called\" />\n\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1173.7998962402344,
+ "y": 91.7500114440918,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "97b942e3.1632f",
+ "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-context.log' />\n\n\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 3266.800048828125,
+ "y": 197.75000762939453,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "611b8716.230608",
+ "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/terminateRANSlice.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"Payload for terminateRANSlice.: \"/>\n<parameter name=\"field2\" value=\"`$tmp.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": 3285.549945831299,
+ "y": 242.25000762939453,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "744a4706.5da928",
+ "type": "switchNode",
+ "name": "check action",
+ "xml": "<switch test='`$tmp.action`'>",
+ "comments": "",
+ "outputs": 1,
+ "x": 3286.300247192383,
+ "y": 129.0000057220459,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ [
+ "395e0258.e633ee",
+ "59bc6ee5.be7ec"
+ ]
+ ]
+ },
+ {
+ "id": "395e0258.e633ee",
+ "type": "success",
+ "name": "deallocate",
+ "xml": "<outcome value='deallocate'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 3473.300048828125,
+ "y": 139.75003147125244,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ [
+ "9d02eabc.3fe868"
+ ]
+ ]
+ },
+ {
+ "id": "126e64bf.e1a05b",
+ "type": "execute",
+ "name": "read sNSSAI from sliceProfile",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'>\n\t<parameter name='outputPath' value='tmp.sNSSAI' />\n\t<parameter name='source' value=\"`$payloadJson.input.sliceProfile.sNSSAI`\" />\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 3884.3002548217773,
+ "y": 213.75000858306885,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "59bc6ee5.be7ec",
+ "type": "failure",
+ "name": "modify-deallocate",
+ "xml": "<outcome value='modify-deallocate'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 3468.300048828125,
+ "y": 237.75000762939453,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ [
+ "352b15f4.9cbada"
+ ]
+ ]
+ },
+ {
+ "id": "995091a5.6c2b7",
+ "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/terminateRANSlice.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"sNSSAI: \"/>\n<parameter name=\"field2\" value=\"`$tmp.sNSSAI`\"/>\n\n\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 3845.5500526428223,
+ "y": 167.75000762939453,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "9d02eabc.3fe868",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 3645.550048828125,
+ "y": 139.75000762939453,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ [
+ "995091a5.6c2b7",
+ "e62c2bc5.167978"
+ ]
+ ]
+ },
+ {
+ "id": "e62c2bc5.167978",
+ "type": "set",
+ "name": "read sNSSAI from input",
+ "xml": "<set>\n<parameter name='tmp.sNSSAI' value=\"`$payloadJson.input.sNSSAI`\"/>",
+ "comments": "",
+ "x": 3847.5500564575195,
+ "y": 118.75000667572021,
+ "z": "ef6618ab.e71c28",
+ "wires": []
+ },
+ {
+ "id": "2aefaaa4.57bd36",
+ "type": "set",
+ "name": "read action from input",
+ "xml": "<set>\n<parameter name='tmp.action' value=\"`$terminate-r-a-n-slice-instance-input.action`\"/>",
+ "comments": "",
+ "x": 3305.050048828125,
+ "y": 82.2500057220459,
+ "z": "ef6618ab.e71c28",
+ "wires": []
+ },
+ {
+ "id": "352b15f4.9cbada",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 3662.100051879883,
+ "y": 234.25000762939453,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ [
+ "126e64bf.e1a05b",
+ "b1bb195d.4d98a8"
+ ]
+ ]
+ },
+ {
+ "id": "b1bb195d.4d98a8",
+ "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/terminateRANSlice.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"modify-deallocate-sNSSAI: \"/>\n<parameter name=\"field2\" value=\"`$tmp.sNSSAI`\"/>\n\n\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 3904.10005569458,
+ "y": 282.25000953674316,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "96220425.ce73c8",
+ "type": "execute",
+ "name": "execute jsonStringToCtx",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='jsonStringToCtx'>\n\t<parameter name='source' value='terminate-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": 2698.199951171875,
+ "y": 169.2500057220459,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ [
+ "b9da093c.cc3548"
+ ]
+ ]
+ },
+ {
+ "id": "b9da093c.cc3548",
+ "type": "other",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2899.4497604370117,
+ "y": 158.5000057220459,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ [
+ "bdba449.3ba15b8"
+ ]
+ ]
+ },
+ {
+ "id": "bdba449.3ba15b8",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 3065.4498596191406,
+ "y": 152.5000057220459,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ [
+ "2aefaaa4.57bd36",
+ "744a4706.5da928",
+ "97b942e3.1632f",
+ "611b8716.230608"
+ ]
+ ]
+ },
+ {
+ "id": "83b16463.dd6eb8",
+ "type": "execute",
+ "name": "execute jsonStringToCtx",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='jsonStringToCtx'>\n\t<parameter name='source' value='instantiate-r-a-n-slice-input.payload' />\n\t<parameter name='outputPath' value='payloadJson' />\n\t<parameter name='isEscaped' value='false' />",
+ "comments": "",
+ "outputs": 1,
+ "x": 1238.2002639770508,
+ "y": 214.25000762939453,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ [
+ "4b228987.44f8e8"
+ ]
+ ]
+ },
+ {
+ "id": "4b228987.44f8e8",
+ "type": "other",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1489.2001686096191,
+ "y": 201.25000762939453,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ [
+ "86f6aa9d.434f98"
+ ]
+ ]
+ },
+ {
+ "id": "86f6aa9d.434f98",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 1705.200050354004,
+ "y": 213.25000953674316,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ [
+ "f94e0a69.3b5168",
+ "e3e3f738.d2ec58",
+ "4d60a6b0.4d4c78",
+ "47c1ddd3.3df444",
+ "b8bd1677.bb8f78",
+ "b721916b.7b937",
+ "2d81f5e.c8e490a"
+ ]
+ ]
+ },
+ {
+ "id": "f94e0a69.3b5168",
+ "type": "set",
+ "name": "read action from input",
+ "xml": "<set>\n<parameter name='tmp.action' value=\"`$instantiate-r-a-n-slice-input.action`\"/>",
+ "comments": "",
+ "x": 1982.2000045776367,
+ "y": 299.2500286102295,
+ "z": "ef6618ab.e71c28",
+ "wires": []
+ },
+ {
+ "id": "e3e3f738.d2ec58",
+ "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-context.log' />\n\n\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1922.2000045776367,
+ "y": 371.25000381469727,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "4d60a6b0.4d4c78",
+ "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/terminateRANSlice.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"Payload for modifyallocateRANSlice.: \"/>\n<parameter name=\"field2\" value=\"`$payloadJson.input.RANNFNSSIId`\"/>\n<parameter name=\"field3\" value=\"`$payloadJson.input.callbackURL`\"/>\n<parameter name=\"field4\" value=\"`$payloadJson.input.sliceProfile.sliceProfileId`\"/>\n\n\n\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1919.949806213379,
+ "y": 407.7500057220459,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "47c1ddd3.3df444",
+ "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/terminateRANSlice.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"modify-deallocate-sNSSAI: \"/>\n<parameter name=\"field2\" value=\"`$tmp.sNSSAI`\"/>\n<parameter name=\"field3\" value=\"`$tmp.sliceprofileid`\"/>\n\n\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1909.4000778198242,
+ "y": 527.7500133514404,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "801a0715.f6d848",
+ "type": "execute",
+ "name": "execute jsonStringToCtx",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='jsonStringToCtx'>\n\t<parameter name='source' value='terminate-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": 1286.7999954223633,
+ "y": 134.25000762939453,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ [
+ "699a595d.1a2648"
+ ]
+ ]
+ },
+ {
+ "id": "699a595d.1a2648",
+ "type": "other",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1594.8000259399414,
+ "y": 108.25000381469727,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ [
+ "fa90dc26.275c8"
+ ]
+ ]
+ },
+ {
+ "id": "fa90dc26.275c8",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 1765.8000259399414,
+ "y": 109.25000476837158,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ [
+ "6c5171ff.4b29",
+ "73992bcb.3e01a4",
+ "f74473d1.2107c",
+ "ba05dce8.ccc4f",
+ "3902ad7c.866bb2",
+ "f8fbb1ee.d5667",
+ "58909a66.4f93d4"
+ ]
+ ]
+ },
+ {
+ "id": "6c5171ff.4b29",
+ "type": "set",
+ "name": "read action from input",
+ "xml": "<set>\n<parameter name='tmp.action' value=\"`$terminate-r-a-n-slice-instance-input.action`\"/>",
+ "comments": "",
+ "x": 1986.8000030517578,
+ "y": 60,
+ "z": "ef6618ab.e71c28",
+ "wires": []
+ },
+ {
+ "id": "73992bcb.3e01a4",
+ "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-context.log' />\n\n\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1967.8000030517578,
+ "y": 130.25000762939453,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "f74473d1.2107c",
+ "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/terminateRANSlice.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"Payload for terminateRANSlice.: \"/>\n<parameter name=\"field2\" value=\"`$tmp.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": 1972.8000030517578,
+ "y": 161.25000762939453,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "3902ad7c.866bb2",
+ "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/terminateRANSlice.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"DEallocate sNSSAI: \"/>\n<parameter name=\"field2\" value=\"`$tmp.sNSSAI`\"/>\n<parameter name=\"field3\" value=\"`$tmp.sliceprofileid`\"/>\n\n\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1960.7999801635742,
+ "y": 266.25000858306885,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "ba05dce8.ccc4f",
+ "type": "set",
+ "name": "read sNSSAI from input",
+ "xml": "<set>\n<parameter name='tmp.sNSSAI' value=\"`$payloadJson.input.sNSSAI`\"/>",
+ "comments": "",
+ "x": 2021.7999801635742,
+ "y": 195.25000762939453,
+ "z": "ef6618ab.e71c28",
+ "wires": []
+ },
+ {
+ "id": "b8bd1677.bb8f78",
+ "type": "set",
+ "name": "read sNSSAI from input sliceprofile",
+ "xml": "<set>\n<parameter name='tmp.sNSSAI' value=\"`$payloadJson.input.sliceProfile.sNSSAI`\"/>",
+ "comments": "",
+ "x": 1986.400001525879,
+ "y": 446.2500057220459,
+ "z": "ef6618ab.e71c28",
+ "wires": []
+ },
+ {
+ "id": "b721916b.7b937",
+ "type": "set",
+ "name": "read SpId from input sliceprofile",
+ "xml": "<set>\n<parameter name='tmp.sliceprofileid' value=\"`$payloadJson.input.sliceProfile.sliceProfileId`\"/>",
+ "comments": "",
+ "x": 2001.800048828125,
+ "y": 483.2500057220459,
+ "z": "ef6618ab.e71c28",
+ "wires": []
+ },
+ {
+ "id": "f8fbb1ee.d5667",
+ "type": "set",
+ "name": "read SpId from input ",
+ "xml": "<set>\n<parameter name='tmp.sliceprofileid' value=\"`$payloadJson.input.sliceProfileId`\"/>",
+ "comments": "",
+ "x": 2043.7999801635742,
+ "y": 231.25000858306885,
+ "z": "ef6618ab.e71c28",
+ "wires": []
+ },
+ {
+ "id": "e9a10f4d.0c6f2",
+ "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": 762.1999816894531,
+ "y": 345.2500343322754,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ [
+ "dbeea395.8c3ca",
+ "25820e30.75f5b2"
+ ]
+ ]
+ },
+ {
+ "id": "dbeea395.8c3ca",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1042.2000617980957,
+ "y": 286.9722023010254,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ [
+ "c2981c7a.2705d"
+ ]
+ ]
+ },
+ {
+ "id": "25820e30.75f5b2",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1014.2557640075684,
+ "y": 369.80552864074707,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ [
+ "246e6d87.c3aa62"
+ ]
+ ]
+ },
+ {
+ "id": "c2981c7a.2705d",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 1199.9501647949219,
+ "y": 285.97229957580566,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ [
+ "93f1aeea.7b671",
+ "f8310a8.4ba15f8"
+ ]
+ ]
+ },
+ {
+ "id": "246e6d87.c3aa62",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 1189.700065612793,
+ "y": 370.4722270965576,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ [
+ "e535eca5.6fb25",
+ "9107d9cf.f639d8"
+ ]
+ ]
+ },
+ {
+ "id": "93f1aeea.7b671",
+ "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": 1379.6997756958008,
+ "y": 312.5833110809326,
+ "z": "ef6618ab.e71c28",
+ "wires": []
+ },
+ {
+ "id": "e535eca5.6fb25",
+ "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/terminateRANSlice.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": 1391.4497756958008,
+ "y": 362.22227668762207,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "9107d9cf.f639d8",
+ "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' />\n\n\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1426.2279968261719,
+ "y": 417.47227668762207,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "cd297572.69cac8",
+ "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/terminateRANSlice.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": 753.8945693969727,
+ "y": 305.7222261428833,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "f8310a8.4ba15f8",
+ "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/terminateRANSlice.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"Failed to fetch anchors from CPS\"/>",
+ "comments": "",
+ "outputs": 1,
+ "x": 1367.3945999145508,
+ "y": 267.7222261428833,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "f553ee6f.fe81e",
+ "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": 778.1445159912109,
+ "y": 268.472225189209,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "c0761ee.a3bd7e",
+ "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": 688.048957824707,
+ "y": 386.07101917266846,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "58a0dd44.8fbbf4",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 689.9377136230469,
+ "y": 532.4042720794678,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ [
+ "e487cff1.9ecc",
+ "bcc6f080.57b92"
+ ]
+ ]
+ },
+ {
+ "id": "8dbf3bb2.a39b78",
+ "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'`\" />\n\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1561.4934310913086,
+ "y": 515.1822023391724,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "7634ff46.e0b13",
+ "type": "for",
+ "name": "For anchorsList",
+ "xml": "<for index='anc' start='0' end='`$tmp.anchors.length`'>",
+ "comments": "",
+ "outputs": 1,
+ "x": 586.2340087890625,
+ "y": 470.1820659637451,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ [
+ "3e6eb38c.8ba68c"
+ ]
+ ]
+ },
+ {
+ "id": "3e6eb38c.8ba68c",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 775.1228790283203,
+ "y": 467.95981216430664,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ [
+ "3f777cef.1ab084",
+ "baa1c777.b56f58"
+ ]
+ ]
+ },
+ {
+ "id": "3f777cef.1ab084",
+ "type": "switchNode",
+ "name": "check schemaSetName",
+ "xml": "<switch test='`$tmp.schemaset.name`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 986.2711334228516,
+ "y": 463.95988750457764,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ [
+ "8b5bca1d.8f0ab8"
+ ]
+ ]
+ },
+ {
+ "id": "baa1c777.b56f58",
+ "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": 975.0488662719727,
+ "y": 419.95986223220825,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "8b5bca1d.8f0ab8",
+ "type": "outcome",
+ "name": "if ran-network",
+ "xml": "<outcome value='ran-network'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1211.8266067504883,
+ "y": 457.1821041107178,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ [
+ "14243a4c.a83bb6"
+ ]
+ ]
+ },
+ {
+ "id": "14243a4c.a83bb6",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 1391.9624481201172,
+ "y": 464.4042720794678,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ [
+ "e0df91d1.f1017",
+ "2a4f7390.ffd38c"
+ ]
+ ]
+ },
+ {
+ "id": "1c135f07.bdae71",
+ "type": "execute",
+ "name": "initialize earRTRIC size",
+ "xml": "<set>\n\t<parameter name='tmp.RIC.length' value=\"0\"/>\n\t",
+ "comments": "",
+ "outputs": 1,
+ "x": 694.2463684082031,
+ "y": 421.73762130737305,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "e0df91d1.f1017",
+ "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/terminateRANSlice.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": 1607.542625427246,
+ "y": 469.0710201263428,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "bcc6f080.57b92",
+ "type": "switchNode",
+ "name": "check schemaSetName",
+ "xml": "<switch test='`$tmp.schemaset.name`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 929.3204040527344,
+ "y": 548.0833263397217,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ [
+ "6e154725.a06508"
+ ]
+ ]
+ },
+ {
+ "id": "e487cff1.9ecc",
+ "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": 927.0981674194336,
+ "y": 508.0832996368408,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "6e154725.a06508",
+ "type": "outcome",
+ "name": "if ran-network",
+ "xml": "<outcome value='ran-network'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1166.875991821289,
+ "y": 528.305591583252,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ [
+ "9733103b.ac886"
+ ]
+ ]
+ },
+ {
+ "id": "9733103b.ac886",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 1353.011833190918,
+ "y": 515.5277590751648,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ [
+ "8dbf3bb2.a39b78",
+ "61eecf4e.08f1a"
+ ]
+ ]
+ },
+ {
+ "id": "75690319.28e85c",
+ "type": "for",
+ "name": "For anchorsList",
+ "xml": "<for index='anc' start='0' end='`$tmp.anchors.length`'>",
+ "comments": "",
+ "outputs": 1,
+ "x": 477,
+ "y": 535.2500057220459,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ [
+ "58a0dd44.8fbbf4"
+ ]
+ ]
+ },
+ {
+ "id": "2a4f7390.ffd38c",
+ "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": 1623.6000442504883,
+ "y": 428.2500228881836,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "566f0c13.3c36f4",
+ "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": 675,
+ "y": 619.0000076293945,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "defb0345.d78a8",
+ "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": 629.0000534057617,
+ "y": 657.0000095367432,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "9ee9b02d.5d0c5",
+ "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/terminateRANSlice.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": 640.0000076293945,
+ "y": 694.0000095367432,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "f4ad0d69.8a8f4",
+ "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": 655.9999618530273,
+ "y": 731.0000104904175,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ [
+ "24fc36ac.2cc9aa",
+ "e42b439f.4e3a6"
+ ]
+ ]
+ },
+ {
+ "id": "58909a66.4f93d4",
+ "type": "set",
+ "name": "read rannfnssiid from input",
+ "xml": "<set>\n<parameter name='tmp.payload.RANNFNSSIId' value=\"`$payloadJson.input.RANNFNSSIId`\"/>",
+ "comments": "",
+ "x": 2003.6000061035156,
+ "y": 96,
+ "z": "ef6618ab.e71c28",
+ "wires": []
+ },
+ {
+ "id": "2d81f5e.c8e490a",
+ "type": "set",
+ "name": "read rannfnssiid from input",
+ "xml": "<set>\n<parameter name='tmp.payload.RANNFNSSIId' value=\"`$payloadJson.input.RANNFNSSIId`\"/>",
+ "comments": "",
+ "x": 1983.6000061035156,
+ "y": 336.00000381469727,
+ "z": "ef6618ab.e71c28",
+ "wires": []
+ },
+ {
+ "id": "2ab20b2.c4662f4",
+ "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": 668.0000076293945,
+ "y": 768.4000225067139,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "3c8d387a.bf8218",
+ "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": 679.0000076293945,
+ "y": 803.0000228881836,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "5002dadc.f9b734",
+ "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/terminateRANSlice.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": 689.0000076293945,
+ "y": 837.200023651123,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "23c0289f.7c38a8",
+ "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": 722,
+ "y": 874.2000122070312,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ [
+ "e277d055.4e27",
+ "f7b00508.eded38"
+ ]
+ ]
+ },
+ {
+ "id": "f7b00508.eded38",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 928,
+ "y": 929.4000244140625,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ [
+ "5e221115.468af"
+ ]
+ ]
+ },
+ {
+ "id": "5e221115.468af",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 1085,
+ "y": 930.4000244140625,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ [
+ "96cdea7f.288788",
+ "b546918c.604f7",
+ "63add92d.fca458"
+ ]
+ ]
+ },
+ {
+ "id": "96cdea7f.288788",
+ "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/terminateRANSlice.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": 1234.00004196167,
+ "y": 913.4000005722046,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "e277d055.4e27",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 949,
+ "y": 870.4000244140625,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ [
+ "7c238c11.b6f524"
+ ]
+ ]
+ },
+ {
+ "id": "7c238c11.b6f524",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 1081,
+ "y": 874.4000244140625,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ [
+ "5ea6bd82.86b724"
+ ]
+ ]
+ },
+ {
+ "id": "5ea6bd82.86b724",
+ "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": 1212,
+ "y": 876.4000244140625,
+ "z": "ef6618ab.e71c28",
+ "wires": []
+ },
+ {
+ "id": "727ee4a2.8509dc",
+ "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": 656.8000106811523,
+ "y": 937.0000381469727,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "91b52d7b.490f2",
+ "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/terminateRANSlice.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": 664.8000106811523,
+ "y": 971.2000379562378,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "4d9d7d5d.5fed04",
+ "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": 693.8000106811523,
+ "y": 1008.2000026702881,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ [
+ "ddb46764.c46498",
+ "8ea5bea5.8c5b4"
+ ]
+ ]
+ },
+ {
+ "id": "8ea5bea5.8c5b4",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 931.8000335693359,
+ "y": 1072.6000385284424,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ [
+ "228441c4.5742be"
+ ]
+ ]
+ },
+ {
+ "id": "228441c4.5742be",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 1087.8000411987305,
+ "y": 1071.6000385284424,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ [
+ "4d611dc3.340854",
+ "2c8c89f5.a2c7e6",
+ "a44275d7.21c2a8"
+ ]
+ ]
+ },
+ {
+ "id": "4d611dc3.340854",
+ "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/terminateRANSlice.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": 1255.7999439239502,
+ "y": 1075.6001377105713,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "ddb46764.c46498",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 953.7999877929688,
+ "y": 1005.5999755859375,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ [
+ "fd86b8da.a98d88"
+ ]
+ ]
+ },
+ {
+ "id": "fd86b8da.a98d88",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 1085.7999877929688,
+ "y": 1009.5999755859375,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ [
+ "33177827.1857f8"
+ ]
+ ]
+ },
+ {
+ "id": "33177827.1857f8",
+ "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": 1219.7999420166016,
+ "y": 1026.6000022888184,
+ "z": "ef6618ab.e71c28",
+ "wires": []
+ },
+ {
+ "id": "405b1b1e.551e24",
+ "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": 664,
+ "y": 906.4000244140625,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "b546918c.604f7",
+ "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/terminateRANSlice.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": 1241.00004196167,
+ "y": 986.2000017166138,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "63add92d.fca458",
+ "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": 1307.6001358032227,
+ "y": 949.6000003814697,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "2c8c89f5.a2c7e6",
+ "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": 1315.4000396728516,
+ "y": 1122.4000644683838,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "a44275d7.21c2a8",
+ "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/terminateRANSlice.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": 1281.4000244140625,
+ "y": 1159.800048828125,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "3d27856c.95527a",
+ "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/terminateRANSlice.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"snssai from cps response\"/>\n<parameter name=\"field2\" value=\"`$tmp.ric.sNSSAI`\"/>",
+ "comments": "",
+ "outputs": 1,
+ "x": 1765.199951171875,
+ "y": 581.4000244140625,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "1659b31f.61c47d",
+ "type": "execute",
+ "name": "generate delete nssai from rtric 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.deletenssai.rtric.url\"/>\n <parameter name=\"target\" value=\"{schemaSet}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.schemaset.name`\"/>",
+ "comments": "",
+ "outputs": 1,
+ "x": 1812.6000518798828,
+ "y": 814.4000110626221,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "1404947f.e16acc",
+ "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.deletenssai.rtric.url`\"/>\n <parameter name=\"outputPath\" value=\"tmp.cps.deletenssai.rtric.url\"/>\n <parameter name=\"target\" value=\"{templateId}\"/>\n <parameter name=\"replacement\" value=\"`$prop.tbdmt.template.delete-nssai-from-rtric`\"/>",
+ "comments": "",
+ "outputs": 1,
+ "x": 1774.599998474121,
+ "y": 857.4000358581543,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "54425eac.eaaf6",
+ "type": "execute",
+ "name": "delete snssai from nearrtic",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"restapiUrl\" value=\"`$tmp.cps.deletenssai.rtric.url`\"/>\n<parameter name=\"templateFileName\" value=\"`$prop.restapi.templateDir + '/cps-templates/delete-nearrtic-nssai.json'`\" />\n<parameter name=\"httpMethod\" value=\"POST\"/>\n<parameter name=\"responsePrefix\" value=\"cps--nearrtic-nssai-delete-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": 1566.4000244140625,
+ "y": 1020.2000122070312,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ [
+ "2b4e3189.9b8a2e",
+ "b2a1da52.7c9308"
+ ]
+ ]
+ },
+ {
+ "id": "e661d74c.681978",
+ "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/terminateRANSlice.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"`nearrtric length`\"/>\n<parameter name=\"field2\" value=\"`$getNFNSSIRIC-cps-response._length`\"/>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 666.9999847412109,
+ "y": 1159.599967956543,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "514dd6f.6906628",
+ "type": "execute",
+ "name": "generate delete nssai from cucp 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.deletenssai.cellcu.plmn.url\"/>\n <parameter name=\"target\" value=\"{schemaSet}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.schemaset.name`\"/>",
+ "comments": "",
+ "outputs": 1,
+ "x": 2227.39990234375,
+ "y": 1516.800048828125,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "c52bf64c.f7efa8",
+ "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.deletenssai.cellcu.plmn.url`\"/>\n <parameter name=\"outputPath\" value=\"tmp.cps.deletenssai.cellcu.plmn.url\"/>\n <parameter name=\"target\" value=\"{templateId}\"/>\n <parameter name=\"replacement\" value=\"`$prop.tbdmt.template.delete-nssai-from-cucp-plmninfo`\"/>",
+ "comments": "",
+ "outputs": 1,
+ "x": 2189.3998489379883,
+ "y": 1559.8000736236572,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "9ce076ba.219ae8",
+ "type": "execute",
+ "name": "delete snssai from cucp plmninfo",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"restapiUrl\" value=\"`$tmp.cps.deletenssai.cellcu.plmn.url`\"/>\n<parameter name=\"templateFileName\" value=\"`$prop.restapi.templateDir + '/cps-templates/delete-cucp-plmn-nssai.json'`\" />\n<parameter name=\"httpMethod\" value=\"POST\"/>\n<parameter name=\"responsePrefix\" value=\"cps-cucp-plmninfo-nssai-delete-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": 2199,
+ "y": 1609.4000244140625,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ [
+ "1c04f0a6.c01d1f",
+ "6f9f097f.cee4a8"
+ ]
+ ]
+ },
+ {
+ "id": "930a549f.867938",
+ "type": "execute",
+ "name": "generate delete nssai from cucp 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.deletenssai.cellcu.rrmpolicy.url\"/>\n <parameter name=\"target\" value=\"{schemaSet}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.schemaset.name`\"/>",
+ "comments": "",
+ "outputs": 1,
+ "x": 2513.39990234375,
+ "y": 2533.199951171875,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "a5776646.7b9808",
+ "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.deletenssai.cellcu.rrmpolicy.url`\"/>\n <parameter name=\"outputPath\" value=\"tmp.cps.deletenssai.cellcu.rrmpolicy.url\"/>\n <parameter name=\"target\" value=\"{templateId}\"/>\n <parameter name=\"replacement\" value=\"`$prop.tbdmt.template.delete-nssai-from-cucp-rrmpolicy`\"/>",
+ "comments": "",
+ "outputs": 1,
+ "x": 2475.3998489379883,
+ "y": 2576.199975967407,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "51a270d0.6d0f9",
+ "type": "execute",
+ "name": "delete snssai from cucp rrm",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"restapiUrl\" value=\"`$tmp.cps.deletenssai.cellcu.rrmpolicy.url`\"/>\n<parameter name=\"templateFileName\" value=\"`$prop.restapi.templateDir + '/cps-templates/delete-cucp-rrmpolicy-nssai.json'`\" />\n<parameter name=\"httpMethod\" value=\"POST\"/>\n<parameter name=\"responsePrefix\" value=\"cps-cucp-rrmpolicy-nssai-delete-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": 2485,
+ "y": 2625.7999267578125,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ [
+ "bb5d6dd6.83647",
+ "4e7786b8.1d6608"
+ ]
+ ]
+ },
+ {
+ "id": "191dc287.aec87d",
+ "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.deletenssai.cuup.plmn.url`\"/>\n <parameter name=\"outputPath\" value=\"tmp.cps.deletenssai.cuup.plmn.url\"/>\n <parameter name=\"target\" value=\"{templateId}\"/>\n <parameter name=\"replacement\" value=\"`$prop.tbdmt.template.delete-nssai-from-cuup-plmninfo`\"/>",
+ "comments": "",
+ "outputs": 1,
+ "x": 1935,
+ "y": 3078.199951171875,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "8fd00b15.09c6f8",
+ "type": "execute",
+ "name": "generate delete nssai from cuup 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.deletenssai.cuup.plmn.url\"/>\n <parameter name=\"target\" value=\"{schemaSet}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.schemaset.name`\"/>",
+ "comments": "",
+ "outputs": 1,
+ "x": 1971.0000305175781,
+ "y": 3023.200044631958,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "f0b44ecd.02e3e",
+ "type": "execute",
+ "name": "delete snssai from cuup plmninfo",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"restapiUrl\" value=\"`$tmp.cps.deletenssai.cuup.plmn.url`\"/>\n<parameter name=\"templateFileName\" value=\"`$prop.restapi.templateDir + '/cps-templates/delete-cuup-plmn-nssai.json'`\" />\n<parameter name=\"httpMethod\" value=\"POST\"/>\n<parameter name=\"responsePrefix\" value=\"cps-cuup-plmninfo-nssai-delete-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": 1944.6001510620117,
+ "y": 3127.7999019622803,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ [
+ "6a11af4f.d7015",
+ "6c216737.b275e8"
+ ]
+ ]
+ },
+ {
+ "id": "b9a6e18d.cb90d",
+ "type": "execute",
+ "name": "generate delete nssai from cucp 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.deletenssai.cuup.rrmpolicy.url\"/>\n <parameter name=\"target\" value=\"{schemaSet}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.schemaset.name`\"/>",
+ "comments": "",
+ "outputs": 1,
+ "x": 2044.5999755859375,
+ "y": 3885.39990234375,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "8988f981.ab5bc8",
+ "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.deletenssai.cuup.rrmpolicy.url`\"/>\n <parameter name=\"outputPath\" value=\"tmp.cps.deletenssai.cuup.rrmpolicy.url\"/>\n <parameter name=\"target\" value=\"{templateId}\"/>\n <parameter name=\"replacement\" value=\"`$prop.tbdmt.template.delete-nssai-from-cuup-rrmpolicy`\"/>",
+ "comments": "",
+ "outputs": 1,
+ "x": 2006.5999221801758,
+ "y": 3928.399927139282,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "50e238c2.478fb8",
+ "type": "execute",
+ "name": "delete snssai from cucp rrm",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"restapiUrl\" value=\"`$tmp.cps.deletenssai.cuup.rrmpolicy.url`\"/>\n<parameter name=\"templateFileName\" value=\"`$prop.restapi.templateDir + '/cps-templates/delete-cuup-rrm-nssai.json'`\" />\n<parameter name=\"httpMethod\" value=\"POST\"/>\n<parameter name=\"responsePrefix\" value=\"cps-cuup-rrm-nssai-delete-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": 2016.2000732421875,
+ "y": 3977.9998779296875,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ [
+ "6b827803.541a98",
+ "67c67695.b83e18"
+ ]
+ ]
+ },
+ {
+ "id": "b2cb93a7.0ea5b",
+ "type": "execute",
+ "name": "generate delete nssai from celldu 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.deletenssai.celldu.plmn.url\"/>\n <parameter name=\"target\" value=\"{schemaSet}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.schemaset.name`\"/>",
+ "comments": "",
+ "outputs": 1,
+ "x": 3077,
+ "y": 5087.39990234375,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "5e5d6483.74da7c",
+ "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.deletenssai.celldu.plmn.url`\"/>\n <parameter name=\"outputPath\" value=\"tmp.cps.deletenssai.celldu.plmn.url\"/>\n <parameter name=\"target\" value=\"{templateId}\"/>\n <parameter name=\"replacement\" value=\"`$prop.tbdmt.template.delete-nssai-from-du-plmninfo`\"/>",
+ "comments": "",
+ "outputs": 1,
+ "x": 3038.9999465942383,
+ "y": 5130.399927139282,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "abfcd08f.28a71",
+ "type": "execute",
+ "name": "delete snssai from du plmninfo",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"restapiUrl\" value=\"`$tmp.cps.deletenssai.celldu.plmn.url`\"/>\n<parameter name=\"templateFileName\" value=\"`$prop.restapi.templateDir + '/cps-templates/delete-celldu-plmn-nssai.json'`\" />\n<parameter name=\"httpMethod\" value=\"POST\"/>\n<parameter name=\"responsePrefix\" value=\"cps-du-plmninfo-nssai-delete-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": 3048.60009765625,
+ "y": 5179.9998779296875,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ [
+ "9cbbdff1.2db93",
+ "87aacf63.99c86"
+ ]
+ ]
+ },
+ {
+ "id": "fc856f47.9a3c5",
+ "type": "execute",
+ "name": "generate delete nssai from du 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.deletenssai.du.rrmpolicy.url\"/>\n <parameter name=\"target\" value=\"{schemaSet}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.schemaset.name`\"/>",
+ "comments": "",
+ "outputs": 1,
+ "x": 3559,
+ "y": 6012.60009765625,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "2a875355.2f2dcc",
+ "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.deletenssai.du.rrmpolicy.url`\"/>\n <parameter name=\"outputPath\" value=\"tmp.cps.deletenssai.du.rrmpolicy.url\"/>\n <parameter name=\"target\" value=\"{templateId}\"/>\n <parameter name=\"replacement\" value=\"`$prop.tbdmt.template.delete-nssai-from-du-rrmpolicy`\"/>",
+ "comments": "",
+ "outputs": 1,
+ "x": 3520.9999465942383,
+ "y": 6055.600122451782,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "5c5f4115.5dccd",
+ "type": "execute",
+ "name": "delete snssai from du rrm",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"restapiUrl\" value=\"`$tmp.cps.deletenssai.du.rrmpolicy.url`\"/>\n<parameter name=\"templateFileName\" value=\"`$prop.restapi.templateDir + '/cps-templates/delete-celldu-rrm-nssai.json '`\" />\n<parameter name=\"httpMethod\" value=\"POST\"/>\n<parameter name=\"responsePrefix\" value=\"cps-du-rrm-nssai-delete-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": 3530.60009765625,
+ "y": 6105.2000732421875,
+ "z": "ef6618ab.e71c28",
+ "wires": [
+ [
+ "f4950f8e.2c2cb",
+ "639111e1.a2174"
+ ]
+ ]
+ }
+] \ No newline at end of file
diff --git a/platform-logic/ran-slice-api/src/main/json/ran-slice-api_terminateRANSliceInstance.json b/platform-logic/ran-slice-api/src/main/json/ran-slice-api_terminateRANSliceInstance.json
index 191922df..76f062f4 100644
--- a/platform-logic/ran-slice-api/src/main/json/ran-slice-api_terminateRANSliceInstance.json
+++ b/platform-logic/ran-slice-api/src/main/json/ran-slice-api_terminateRANSliceInstance.json
@@ -1,8932 +1,219 @@
[
{
- "id": "ab2cbb38.5b1548",
- "type": "dgstart",
- "name": "DGSTART",
- "outputs": 1,
- "x": 125.93746948242188,
- "y": 110.50000286102295,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- [
- "3e75b5d2.86b88a"
- ]
- ]
- },
- {
- "id": "3e75b5d2.86b88a",
- "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": 180.93749237060547,
- "y": 197.4999713897705,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- [
- "a15e1668.6d4628"
- ]
- ]
- },
- {
- "id": "a15e1668.6d4628",
+ "id": "5d7a8a4.399b674",
"type": "method",
"name": "method",
"xml": "<method rpc='terminateRANSliceInstance' mode='sync'>\n",
"comments": "",
"outputs": 1,
- "x": 114.93746948242188,
- "y": 257.4999370574951,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- [
- "f44f2ad6.d53e78"
- ]
- ]
- },
- {
- "id": "f44f2ad6.d53e78",
- "type": "block",
- "name": "block : atomic",
- "xml": "<block atomic='true'>",
- "atomic": "true",
- "comments": "",
- "outputs": 1,
- "x": 120.93746185302734,
- "y": 352.24996757507324,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- [
- "ee062576.4060c8",
- "42d82aa2.3e3df4",
- "d22e193.150cbe8",
- "a84fd19d.c1404"
- ]
- ]
- },
- {
- "id": "ee062576.4060c8",
- "type": "block",
- "name": "block : atomic",
- "xml": "<block atomic='true'>",
- "atomic": "true",
- "comments": "",
- "outputs": 1,
- "x": 334.9374656677246,
- "y": 375.5,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- [
- "39d6dc48.05e714",
- "5f419111.c2c5f",
- "a38c938a.944e7",
- "b67e87df.a032b8",
- "f66621ca.ced9",
- "5f4a0c3f.45ca24",
- "a69df01f.bc74e",
- "45d0c578.c8ba6c",
- "b34924a0.5577b8",
- "163035c2.3d2eba",
- "9f643c74.9b9b1",
- "aa19d446.f11918",
- "9086874c.666548",
- "c7c7906e.14877",
- "95f7659d.31ef38",
- "f35c14d5.f3fb48"
- ]
- ]
- },
- {
- "id": "39d6dc48.05e714",
- "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": 719.1874694824219,
- "y": 518.7500100135803,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- []
- ]
- },
- {
- "id": "5f419111.c2c5f",
- "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/terminateRANSlice.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": 659.1874847412109,
- "y": 569.7500290870667,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- []
- ]
- },
- {
- "id": "a38c938a.944e7",
- "type": "execute",
- "name": "Get nearRTRIC for TrackingArea",
- "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"restapiUrl\" value=\"`$prop.configdb.url + $tmp.configdb.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": 649.1875610351562,
- "y": 621.7500596046448,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- [
- "24fd35b1.3b958a",
- "26e3bdce.b60de2"
- ]
- ]
- },
- {
- "id": "24fd35b1.3b958a",
- "type": "success",
- "name": "success",
- "xml": "<outcome value='success'>\n",
- "comments": "",
- "outputs": 1,
- "x": 948.0055656433105,
- "y": 639.5680832862854,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- [
- "1854053f.336d5b"
- ]
- ]
- },
- {
- "id": "1854053f.336d5b",
- "type": "block",
- "name": "block : atomic",
- "xml": "<block atomic='true'>",
- "atomic": "true",
- "comments": "",
- "outputs": 1,
- "x": 1118.0054626464844,
- "y": 640.5681986808777,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- [
- "7c423082.59fa8",
- "bc4f95b0.f6d498"
- ]
- ]
- },
- {
- "id": "7c423082.59fa8",
- "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/terminateRANSlice.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": 1347.0052299499512,
- "y": 540.568178653717,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- []
- ]
- },
- {
- "id": "bc4f95b0.f6d498",
- "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": 1351.783447265625,
- "y": 580.5682005882263,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- []
- ]
- },
- {
- "id": "26e3bdce.b60de2",
- "type": "failure",
- "name": "failure",
- "xml": "<outcome value='failure'>\n",
- "comments": "",
- "outputs": 1,
- "x": 954.0055198669434,
- "y": 579.5681672096252,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- [
- "ec8cb0ec.551ee"
- ]
- ]
- },
- {
- "id": "ec8cb0ec.551ee",
- "type": "block",
- "name": "block",
- "xml": "<block>",
- "atomic": "false",
- "comments": "",
- "outputs": 1,
- "x": 1234.0055961608887,
- "y": 485.5682210922241,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- [
- "fe941869.f84c68",
- "96bc23d2.c6dae"
- ]
- ]
- },
- {
- "id": "fe941869.f84c68",
- "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": 1412.0053825378418,
- "y": 439.67924785614014,
- "z": "7dbbf2af.ccfd8c",
- "wires": []
- },
- {
- "id": "42d82aa2.3e3df4",
- "type": "for",
- "name": "foreach NearRTRIC",
- "xml": "<for index='idy' start='0' end='`$getNFNSSIRIC-configdb-response._length`' >\n",
- "comments": "",
- "outputs": 1,
- "x": 316.1874694824219,
- "y": 962.5681824684143,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- [
- "1e406d44.f9c303",
- "d6faf49.1476608",
- "42e489d3.c47a38",
- "e90ee938.3216c8"
- ]
- ]
- },
- {
- "id": "1e406d44.f9c303",
- "type": "block",
- "name": "Process NearRTRIC",
- "xml": "<block atomic='true'>",
- "atomic": "true",
- "comments": "",
- "outputs": 1,
- "x": 636.5410308837891,
- "y": 1101.143976688385,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- [
- "ceea0525.15ef08",
- "627d8fb4.50f7c",
- "4ac4d944.26ab78",
- "9c27065a.121fe8",
- "dc6f5c5d.19069",
- "13495f7c.967481",
- "cd467a3c.ebd308",
- "4d8386dc.633268"
- ]
- ]
- },
- {
- "id": "ceea0525.15ef08",
- "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.RICPLMNEntries' />\n\t<parameter name='source' value=\"`'getNFNSSIRIC-configdb-response.['+ $idy +'].pLMNInfoList_length'`\" />\n",
- "comments": "",
- "outputs": 1,
- "x": 916.7330322265625,
- "y": 1098.9773712158203,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- []
- ]
- },
- {
- "id": "d1172c03.a940d",
- "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'`\" />",
- "comments": "",
- "outputs": 1,
- "x": 1763.7334747314453,
- "y": 851.4775495529175,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- []
- ]
- },
- {
- "id": "479bb8b1.85a0f8",
- "type": "execute",
- "name": "Update nearRT RIC Details in ConfigDB",
- "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"restapiUrl\" value=\"`$tmp.configdb.getNearRTRICNSSAIRemoval.url`\"/>\n<parameter name=\"httpMethod\" value=\"DELETE\"/>\n<parameter name=\"responsePrefix\" value=\"delete-nearRTRIC-configdb-response\"/>\n<parameter name='contentType' value='application/json' /> \n<parameter name='format' value='json' />\n<parameter name='accept' value='application/json' />\n<parameter name=\"convertResponse\" value=\"true\"/>",
- "comments": "",
- "outputs": 1,
- "x": 1689.4503784179688,
- "y": 1033.9824123382568,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- [
- "440ca3a5.bcebdc",
- "97c6e527.9bbfc8"
- ]
- ]
- },
- {
- "id": "440ca3a5.bcebdc",
- "type": "failure",
- "name": "failure",
- "xml": "<outcome value='failure'>\n",
- "comments": "",
- "outputs": 1,
- "x": 1745.0056915283203,
- "y": 987.0227289199829,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- [
- "b84a5f78.02411"
- ]
- ]
- },
- {
- "id": "b84a5f78.02411",
- "type": "block",
- "name": "block : atomic",
- "xml": "<block atomic='true'>",
- "atomic": "true",
- "comments": "",
- "outputs": 1,
- "x": 1881.0057525634766,
- "y": 949.0226984024048,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- [
- "61446378.c8e6ac",
- "651b4733.567088"
- ]
- ]
- },
- {
- "id": "651b4733.567088",
- "type": "set",
- "name": "set",
- "xml": "<set>\n<parameter name='error-code' value='500'/>\n<parameter name='error-message' value='Error updating nearRTRIC info in ConfigDB. Aborting RPC executiopn'/>",
- "comments": "",
- "x": 2030.005443572998,
- "y": 912.1336765289307,
- "z": "7dbbf2af.ccfd8c",
- "wires": []
- },
- {
- "id": "61446378.c8e6ac",
- "type": "returnFailure",
- "name": "return failure",
- "xml": "<return status='failure'>\n<parameter name='ack-final' value='Y'/>\n<parameter name='error-code' value='500'/>\n<parameter name='error-message' value='Error updating nearRTRIC info in ConfigDB. Aborting RPC executiopn'/>",
- "comments": "",
- "x": 2044.0054473876953,
- "y": 987.0227451324463,
- "z": "7dbbf2af.ccfd8c",
- "wires": []
- },
- {
- "id": "97c6e527.9bbfc8",
- "type": "success",
- "name": "success",
- "xml": "<outcome value='success'>\n",
- "comments": "",
- "outputs": 1,
- "x": 1725.8237762451172,
- "y": 1100.9317922592163,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- [
- "20b0f9ad.435826"
- ]
- ]
- },
- {
- "id": "20b0f9ad.435826",
- "type": "block",
- "name": "block : atomic",
- "xml": "<block atomic='true'>",
- "atomic": "true",
- "comments": "",
- "outputs": 1,
- "x": 1875.8236846923828,
- "y": 1115.9319295883179,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- [
- "5c50d1d6.f0dd"
- ]
- ]
- },
- {
- "id": "5c50d1d6.f0dd",
- "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/terminateRANSlice.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"Successfully Updated NearRT RIC info in ConfigDB\"/>",
- "comments": "",
- "outputs": 1,
- "x": 2022.8236236572266,
- "y": 1143.9320058822632,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- []
- ]
- },
- {
- "id": "f52fd913.aa6e38",
- "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": 990.1874694824219,
- "y": 1325.750006198883,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- []
- ]
- },
- {
- "id": "d6faf49.1476608",
- "type": "block",
- "name": "Process CUCP",
- "xml": "<block atomic='true'>",
- "atomic": "true",
- "comments": "",
- "outputs": 1,
- "x": 617.1874923706055,
- "y": 1238.7500596046448,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- [
- "f52fd913.aa6e38",
- "2c781da9.43b782",
- "b7c31d2d.f1bb7"
- ]
- ]
- },
- {
- "id": "2c781da9.43b782",
- "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/terminateRANSlice.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": 962.1874694824219,
- "y": 1390.750006198883,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- []
- ]
- },
- {
- "id": "b7c31d2d.f1bb7",
- "type": "for",
- "name": "foreach CUCP",
- "xml": "<for index='idz' start='0' end='`$tmp.CUCPList_length`'>\n",
- "comments": "",
- "outputs": 1,
- "x": 990.1874694824219,
- "y": 1465.750006198883,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- [
- "c905b2f.499c55"
- ]
- ]
- },
- {
- "id": "c905b2f.499c55",
- "type": "block",
- "name": "block : process CUCP",
- "xml": "<block atomic='true'>",
- "atomic": "true",
- "comments": "",
- "outputs": 1,
- "x": 1211.1874694824219,
- "y": 1472.750006198883,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- [
- "7cb85390.59d7ec",
- "75fd0e0c.34803",
- "a8794fee.39dd9",
- "d3134450.6d7398"
- ]
- ]
- },
- {
- "id": "7cb85390.59d7ec",
- "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": 1519.1875457763672,
- "y": 1313.3499970436096,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- []
- ]
- },
- {
- "id": "75fd0e0c.34803",
- "type": "for",
- "name": "for cellCUList",
- "xml": "<for index='idcu' start='0' end='`$tmp.cellCUList_length`' >\n",
- "comments": "",
- "outputs": 1,
- "x": 1566.1874694824219,
- "y": 1469.750006198883,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- [
- "896adb9d.6b6f18"
- ]
- ]
- },
- {
- "id": "42004097.48331",
- "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": 2278.687744140625,
- "y": 1078.5000190734863,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- []
- ]
- },
- {
- "id": "6050a6af.fb9708",
- "type": "execute",
- "name": "prepare mnc",
- "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$tmp.deleteSNSSAIListEntry.url`\"/>\n <parameter name=\"outputPath\" value=\"tmp.deleteSNSSAIListEntry.url\"/>\n <parameter name=\"target\" value=\"{mnc}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.mnc`\"/>",
- "comments": "",
- "outputs": 1,
- "x": 2278.4375534057617,
- "y": 1319.000023841858,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- []
- ]
- },
- {
- "id": "c30f4bc2.fc6a48",
- "type": "execute",
- "name": "terminate sNNSAI ToNRCellCU",
- "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"restapiUrl\" value=\"`$prop.controller.url + $tmp.deleteSNSSAIListEntry.url`\"/>\n<parameter name=\"restapiUser\" value=\"`$prop.controller.user`\" />\n<parameter name=\"restapiPassword\" value=\"`$prop.controller.pwd`\"/>\n<parameter name=\"httpMethod\" value=\"DELETE\"/>\n<parameter name=\"responsePrefix\" value=\"delete-cellCU-sNSSAI-response\"/>\n<parameter name='contentType' value='application/json' /> \n<parameter name='format' value='json' />",
- "comments": "",
- "outputs": 1,
- "x": 2233.187545776367,
- "y": 1462.749976158142,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- [
- "f826c3e8.c515c",
- "74b0ae9b.c7b95"
- ]
- ]
- },
- {
- "id": "b2866624.012f38",
- "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/terminateRANSliceModifyAllocate.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.sNSSAI`\"/>\n<parameter name=\"field8\" value=\"`$tmp.deleteSNSSAIListEntry.url`\"/>\n\n",
- "comments": "",
- "outputs": 1,
- "x": 2282.1875534057617,
- "y": 1411.249975681305,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- []
- ]
- },
- {
- "id": "befe3d9f.2f52e",
- "type": "block",
- "name": "block : atomic",
- "xml": "<block atomic='true'>",
- "atomic": "true",
- "comments": "",
- "outputs": 1,
- "x": 2080.187469482422,
- "y": 1076.750006198883,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- [
- "42004097.48331",
- "6050a6af.fb9708",
- "b2866624.012f38",
- "c30f4bc2.fc6a48",
- "e1d27409.d87fc8",
- "dc27eb4.85c4418",
- "534a357f.61495c",
- "afa479a9.ecfaa8",
- "568231be.e9007",
- "8473f3a2.0a471",
- "1f8dc56d.ad39bb",
- "1785991.56ac167",
- "e6acac07.9093c",
- "e003ea87.add6f8",
- "167c0e22.901b82"
- ]
- ]
- },
- {
- "id": "f826c3e8.c515c",
- "type": "success",
- "name": "success",
- "xml": "<outcome value='success'>\n",
- "comments": "",
- "outputs": 1,
- "x": 2478.1874084472656,
- "y": 1484.750072479248,
- "z": "7dbbf2af.ccfd8c",
+ "x": 149,
+ "y": 275.00000381469727,
+ "z": "ae173881.f63c38",
"wires": [
[
- "41cfa86.8432458"
+ "1bd2d18e.d8968e"
]
]
},
{
- "id": "41cfa86.8432458",
- "type": "block",
- "name": "block : atomic",
- "xml": "<block atomic='true'>",
- "atomic": "true",
- "comments": "",
- "outputs": 1,
- "x": 2661.1874084472656,
- "y": 1477.7500734329224,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- [
- "3d327d82.d34362"
- ]
- ]
- },
- {
- "id": "3d327d82.d34362",
- "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/terminateRANSlice.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"Successfully Patched - cellCU PLMNInfo List\"/>",
- "comments": "",
- "outputs": 1,
- "x": 2914.18741607666,
- "y": 1474.7503652572632,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- []
- ]
- },
- {
- "id": "74b0ae9b.c7b95",
- "type": "failure",
- "name": "failure",
- "xml": "<outcome value='failure'>\n",
- "comments": "",
- "outputs": 1,
- "x": 2460.1875534057617,
- "y": 1432.7499742507935,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- [
- "16245cc0.373293"
- ]
- ]
- },
- {
- "id": "16245cc0.373293",
- "type": "block",
- "name": "block : atomic",
- "xml": "<block atomic='true'>",
- "atomic": "true",
- "comments": "",
- "outputs": 1,
- "x": 2603.1876068115234,
- "y": 1393.7500715255737,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- [
- "50d6cc65.334744",
- "b5d9e3e6.a0c6c",
- "96bc23d2.c6dae"
- ]
- ]
- },
- {
- "id": "50d6cc65.334744",
- "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": 2863.1874084472656,
- "y": 1413.7501707077026,
- "z": "7dbbf2af.ccfd8c",
- "wires": []
- },
- {
- "id": "b5d9e3e6.a0c6c",
- "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": 2787.187412261963,
- "y": 1375.7500715255737,
- "z": "7dbbf2af.ccfd8c",
- "wires": []
- },
- {
- "id": "e1d27409.d87fc8",
- "type": "execute",
- "name": "prepare idGNBCUCPFunction",
- "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$tmp.deleteSNSSAIListEntry.url`\"/>\n <parameter name=\"outputPath\" value=\"tmp.deleteSNSSAIListEntry.url\"/>\n <parameter name=\"target\" value=\"{idGNBCUCPFunction}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.CUCPName`\"/>\n",
- "comments": "",
- "outputs": 1,
- "x": 2345.1875534057617,
- "y": 1181.7501182556152,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- []
- ]
- },
- {
- "id": "dc27eb4.85c4418",
- "type": "execute",
- "name": "prepare idNRCellCU",
- "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$tmp.deleteSNSSAIListEntry.url`\"/>\n <parameter name=\"outputPath\" value=\"tmp.deleteSNSSAIListEntry.url\"/>\n <parameter name=\"target\" value=\"{idNRCellCU}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.cellCULocalId`\"/>\n",
- "comments": "",
- "outputs": 1,
- "x": 2319.1875534057617,
- "y": 1231.500020980835,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- []
- ]
- },
- {
- "id": "534a357f.61495c",
- "type": "execute",
- "name": "prepare mcc",
- "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$tmp.deleteSNSSAIListEntry.url`\"/>\n <parameter name=\"outputPath\" value=\"tmp.deleteSNSSAIListEntry.url\"/>\n <parameter name=\"target\" value=\"{mcc}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.mcc`\"/>\n ",
- "comments": "",
- "outputs": 1,
- "x": 2286.9375495910645,
- "y": 1274.5000219345093,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- []
- ]
- },
- {
- "id": "a8794fee.39dd9",
- "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/terminateRANSlice.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": 1569.187515258789,
- "y": 1367.7499742507935,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- []
- ]
- },
- {
- "id": "d3134450.6d7398",
- "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": 1576.1874694824219,
- "y": 1425.750006198883,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- []
- ]
- },
- {
- "id": "afa479a9.ecfaa8",
- "type": "switchNode",
- "name": "ransim mounted",
- "xml": "<switch test='`$prop.ransim-mounted`'>\n",
- "comments": "",
- "outputs": 1,
- "x": 2369.1878242492676,
- "y": 1023.7500230371952,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- [
- "66d9e235.76e98c",
- "abfa97de.dcee38"
- ]
- ]
- },
- {
- "id": "66d9e235.76e98c",
- "type": "outcome",
- "name": "Not Mounted",
- "xml": "<outcome value='false'>\n",
- "comments": "",
- "outputs": 1,
- "x": 2604.1878242492676,
- "y": 1025.7498284876347,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- [
- "226723d7.1352ac"
- ]
- ]
- },
- {
- "id": "226723d7.1352ac",
- "type": "execute",
- "name": "generate terminate sNSSAItEntry ToNRCellCU",
- "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$prop.restapi.terminateSNSSAIEntry.ToNRCellCU`\"/>\n <parameter name=\"outputPath\" value=\"tmp.deleteSNSSAIListEntry.url\"/>\n <parameter name=\"target\" value=\"{idNearRTRIC}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.nearRTRICId`\"/>\n",
- "comments": "",
- "outputs": 1,
- "x": 2926.1877403259277,
- "y": 1109.7500111162663,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- []
- ]
- },
- {
- "id": "abfa97de.dcee38",
- "type": "outcome",
- "name": "Mounted",
- "xml": "<outcome value='true'>\n",
- "comments": "",
- "outputs": 1,
- "x": 2616.1878242492676,
- "y": 1094.7500244677067,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- [
- "3bf36cbe.1eac64"
- ]
- ]
- },
- {
- "id": "568231be.e9007",
- "type": "block",
- "name": "block : atomic",
- "xml": "<block atomic='true'>",
- "atomic": "true",
- "comments": "",
- "outputs": 1,
- "x": 1858.1874694824219,
- "y": 1890.750006198883,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- [
- "31d0d99a.1e31c6",
- "7065e02e.fe117",
- "b0e943e3.07cbe",
- "8b9ea572.01f998",
- "1b417a56.408906",
- "18100639.1a24ea",
- "67b6b32e.bbf47c",
- "f62abaf2.608288",
- "eb3c3874.8d9fc8"
- ]
- ]
- },
- {
- "id": "31d0d99a.1e31c6",
- "type": "set",
- "name": "Calculate RRMPolicyRatio",
- "xml": "<set>\n<parameter name='tmp.maxNumberOfConnsPercellCU' value='`$tmp.payload.maxNumberofConns / $tmp.cellCUList_length`' />\n<parameter name='tmp.rRMPolicyDedicatedRatio.CellCU1' value='`$tmp.maxNumberOfConnsPercellCU * 100`' />\n<parameter name='tmp.rRMPolicyDedicatedRatio_SliceProfile' value='`$tmp.rRMPolicyDedicatedRatio.CellCU1 / $prop.nrcellcu.maxNumberOfConnsPerCell`' />",
- "comments": "",
- "x": 2040.1874694824219,
- "y": 1673.750006198883,
- "z": "7dbbf2af.ccfd8c",
- "wires": []
- },
- {
- "id": "7065e02e.fe117",
- "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/terminateRANSlice.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"RRMPolicyRatio for this profile is - \"/>\n<parameter name=\"field2\" value=\"`$tmp.rRMPolicyDedicatedRatio_SliceProfile`\"/>",
- "comments": "",
- "outputs": 1,
- "x": 2039.1874694824219,
- "y": 1734.750006198883,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- []
- ]
- },
- {
- "id": "b0e943e3.07cbe",
- "type": "switchNode",
- "name": "ransim mounted",
- "xml": "<switch test='`$prop.ransim-mounted`'>\n",
- "comments": "",
- "outputs": 1,
- "x": 2080.187469482422,
- "y": 1796.750006198883,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- [
- "63cc6347.1d755c",
- "cf71a64b.b0e0c8"
- ]
- ]
- },
- {
- "id": "63cc6347.1d755c",
- "type": "outcome",
- "name": "Not Mounted",
- "xml": "<outcome value='false'>\n",
- "comments": "",
- "outputs": 1,
- "x": 2258.187469482422,
- "y": 1763.749762058258,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- [
- "843ab4ae.bbc048"
- ]
- ]
- },
- {
- "id": "843ab4ae.bbc048",
- "type": "execute",
- "name": "fetch RRMPolicyRatio NRCellCU - URL",
- "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$prop.restapi.RRMPolicyRatioEntry.ToNRCellCU`\"/>\n <parameter name=\"outputPath\" value=\"tmp.getRRMPolicyRatio.url\"/>\n <parameter name=\"target\" value=\"{idNearRTRIC}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.nearRTRICId`\"/>\n",
- "comments": "",
- "outputs": 1,
- "x": 2536.187469482422,
- "y": 1755.750006198883,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- []
- ]
- },
- {
- "id": "8b9ea572.01f998",
- "type": "execute",
- "name": "prepare idGNBCUCPFunction",
- "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$tmp.getRRMPolicyRatio.url`\"/>\n <parameter name=\"outputPath\" value=\"tmp.getRRMPolicyRatio.url\"/>\n <parameter name=\"target\" value=\"{idGNBCUCPFunction}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.CUCPName`\"/>\n",
- "comments": "",
- "outputs": 1,
- "x": 2115.187469482422,
- "y": 1868.750006198883,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- []
- ]
- },
- {
- "id": "1b417a56.408906",
- "type": "execute",
- "name": "prepare idNRCellCU",
- "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$tmp.getRRMPolicyRatio.url`\"/>\n <parameter name=\"outputPath\" value=\"tmp.getRRMPolicyRatio.url\"/>\n <parameter name=\"target\" value=\"{idNRCellCU}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.cellCULocalId`\"/>\n",
- "comments": "",
- "outputs": 1,
- "x": 2080.187469482422,
- "y": 1920.750006198883,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- []
- ]
- },
- {
- "id": "9ba1c217.6108f",
- "type": "success",
- "name": "success",
- "xml": "<outcome value='success'>\n",
- "comments": "",
- "outputs": 1,
- "x": 2366.187469482422,
- "y": 2047.750006198883,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- [
- "2b5b505.a7e46b"
- ]
- ]
- },
- {
- "id": "2b5b505.a7e46b",
- "type": "block",
- "name": "block : atomic",
- "xml": "<block atomic='true'>",
- "atomic": "true",
- "comments": "",
- "outputs": 1,
- "x": 2530.1873474121094,
- "y": 2048.7501282691956,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- [
- "3cabb34c.4265ec",
- "e8b718e7.1c4b88"
- ]
- ]
- },
- {
- "id": "3cabb34c.4265ec",
- "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/terminateRANSlice.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"Successfully Retrieved - RRMPolicyRatio\"/>",
- "comments": "",
- "outputs": 1,
- "x": 2680.1873474121094,
- "y": 2043.750250339508,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- []
- ]
- },
- {
- "id": "b2283918.ba1868",
- "type": "failure",
- "name": "failure",
- "xml": "<outcome value='failure'>\n",
- "comments": "",
- "outputs": 1,
- "x": 2362.187469482422,
- "y": 1968.750006198883,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- [
- "dc1ed07.767e83"
- ]
- ]
- },
- {
- "id": "dc1ed07.767e83",
- "type": "block",
- "name": "block : atomic",
- "xml": "<block atomic='true'>",
- "atomic": "true",
- "comments": "",
- "outputs": 1,
- "x": 2520.187713623047,
- "y": 1916.750006198883,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- [
- "872ccc72.03626",
- "8325d214.0e469",
- "96bc23d2.c6dae"
- ]
- ]
- },
- {
- "id": "872ccc72.03626",
- "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 in Fetching RRMPolicyRatio - CellCU. Aborting RPC executiopn'/>",
- "comments": "",
- "x": 2691.1873474121094,
- "y": 1977.7500672340393,
- "z": "7dbbf2af.ccfd8c",
- "wires": []
- },
- {
- "id": "8325d214.0e469",
- "type": "set",
- "name": "set",
- "xml": "<set>\n<parameter name='error-code' value='500'/>\n<parameter name='error-message' value='Error in retrieving RRMPolicyRatio. Aborting RPC executiopn'/>",
- "comments": "",
- "x": 2686.187469482422,
- "y": 1882.750006198883,
- "z": "7dbbf2af.ccfd8c",
- "wires": []
- },
- {
- "id": "18100639.1a24ea",
- "type": "execute",
- "name": "fetch RRMPolicyRatio - NRCellCU",
- "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"restapiUrl\" value=\"`$prop.controller.url + $tmp.getRRMPolicyRatio.url`\"/>\n<parameter name=\"restapiUser\" value=\"`$prop.controller.user`\" />\n<parameter name=\"restapiPassword\" value=\"`$prop.controller.pwd`\"/>\n<parameter name=\"httpMethod\" value=\"GET\"/>\n<parameter name=\"responsePrefix\" value=\"get-rrmpolicyratio-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": 2115.187469482422,
- "y": 1995.750006198883,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- [
- "b2283918.ba1868",
- "9ba1c217.6108f"
- ]
- ]
- },
- {
- "id": "e8b718e7.1c4b88",
- "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": 2703.1874351501465,
- "y": 2080.749945163727,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- []
- ]
- },
- {
- "id": "67b6b32e.bbf47c",
- "type": "for",
- "name": "for each rrmpolicyratio",
- "xml": "<for index='idcu-rrm' start='0' end='`$tmp.rrmPolicyRatioList_length`'>\n",
- "comments": "",
- "outputs": 1,
- "x": 2050.187469482422,
- "y": 2153.750235080719,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- [
- "cfc19ebc.ebfd8"
- ]
- ]
- },
- {
- "id": "f62abaf2.608288",
- "type": "execute",
- "name": "read rrmpolicyratio list size",
- "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'>\n\t<parameter name='outputPath' value='tmp.rrmPolicyRatioList_length' />\n\t<parameter name='source' value=\"`'get-rrmpolicyratio-response.attributes.RRMPolicyRatio_length'`\" />\n ",
- "comments": "",
- "outputs": 1,
- "x": 2094.187469482422,
- "y": 2049.750006198883,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- []
- ]
- },
- {
- "id": "cfc19ebc.ebfd8",
- "type": "block",
- "name": "block : atomic",
- "xml": "<block atomic='true'>",
- "atomic": "true",
- "comments": "",
- "outputs": 1,
- "x": 2271.187469482422,
- "y": 2173.750235080719,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- [
- "1ec1a04f.366fe",
- "46c85195.a22de",
- "f1b67974.7382f8",
- "a1342146.e25a6",
- "5fef4230.9c857c",
- "6d7ae401.d6df2c",
- "9c532b5d.f0d518",
- "ff1e8d16.e8f14",
- "e9d595ba.da8798",
- "bcdd3642.205538",
- "75e674c6.e4e7ec",
- "15f1b3ba.7f395c"
- ]
- ]
- },
- {
- "id": "1ec1a04f.366fe",
- "type": "set",
- "name": "Calculate updated RRMPolicyRatio",
- "xml": "<set>\n<parameter name='tmp.rrmPolicyDedicatedRatio_cellCU' value=\"`'$get-rrmpolicyratio-response.attributes.RRMPolicyRatio['+ $idcu-rrm +'].attributes.rRMPolicyDedicatedRatio'`\" />\n<parameter name='tmp.rrmPolicyDedicatedRatio_CellCU_updated' value=\"`$tmp.rrmPolicyDedicatedRatio_cellCU + $tmp.rRMPolicyDedicatedRatio_SliceProfile`\" />",
- "comments": "",
- "x": 2492.1873359680176,
- "y": 2090.750141620636,
- "z": "7dbbf2af.ccfd8c",
- "wires": []
- },
- {
- "id": "eb3c3874.8d9fc8",
- "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/terminateRANSlice.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"RRMPolicyRatioList size\"/>\n<parameter name=\"field2\" value=\"`$tmp.rrmPolicyRatioList_length`\"/>\n",
- "comments": "",
- "outputs": 1,
- "x": 2034.1874694824219,
- "y": 2103.750006198883,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- []
- ]
- },
- {
- "id": "ac2cacb3.f66fe",
- "type": "for",
- "name": "foreach PLMNInfo",
- "xml": "<for index='id-cuplmn' start='0' end='`$tmp.pLMNInfoList_length`' >\n",
- "comments": "",
- "outputs": 1,
- "x": 2555.2985916137695,
- "y": 605.972264289856,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- [
- "4e83f89.0415408"
- ]
- ]
- },
- {
- "id": "896adb9d.6b6f18",
- "type": "block",
- "name": "block",
- "xml": "<block atomic='true'>",
- "atomic": "true",
- "comments": "",
- "outputs": 1,
- "x": 1782.1874465942383,
- "y": 1345.7499771118164,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- [
- "24f3bd47.aa5b72",
- "ad615746.bbf1e8",
- "7a26e192.c21df"
- ]
- ]
- },
- {
- "id": "d6b537e8.0fef58",
- "type": "switchNode",
- "name": "is NSSAI exists",
- "xml": "<switch test='`$tmp.configDBSNSSAI == $tmp.sNSSAI`'>\n",
- "comments": "",
- "outputs": 1,
- "x": 2790.9649505615234,
- "y": 863.527765750885,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- [
- "8201b3bc.3ade8"
- ]
- ]
- },
- {
- "id": "8201b3bc.3ade8",
- "type": "outcome",
- "name": "True",
- "xml": "<outcome value='true'>\n",
- "comments": "",
- "outputs": 1,
- "x": 2453.187469482422,
- "y": 980.750006198883,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- [
- "befe3d9f.2f52e"
- ]
- ]
- },
- {
- "id": "8473f3a2.0a471",
- "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/terminateRANSlice.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"NSSAI exists for cucp plmninfo \"/>\n\n\n",
- "comments": "",
- "outputs": 1,
- "x": 2243.1875495910645,
- "y": 962.7500171661377,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- []
- ]
- },
- {
- "id": "32791068.e42dc",
- "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/terminateRANSlice.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": 2830.0762786865234,
- "y": 798.9722466468811,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- []
- ]
- },
- {
- "id": "ad6ce437.1f4cf8",
- "type": "block",
- "name": "block : atomic",
- "xml": "<block atomic='true'>",
- "atomic": "true",
- "comments": "",
- "outputs": 1,
- "x": 2639.1876068115234,
- "y": 772.7500786781311,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- [
- "32791068.e42dc",
- "d6b537e8.0fef58",
- "60b9733.364df8c"
- ]
- ]
- },
- {
- "id": "60b9733.364df8c",
- "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-cusnssai +'].sNSSAI'`\" />",
- "comments": "",
- "outputs": 1,
- "x": 3010.0760803222656,
- "y": 722.9722943305969,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- []
- ]
- },
- {
- "id": "42e489d3.c47a38",
- "type": "block",
- "name": "Process CUUP",
- "xml": "<block atomic='true'>",
- "atomic": "true",
- "comments": "",
- "outputs": 1,
- "x": 571.1874694824219,
- "y": 1535.750006198883,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- [
- "8d1ecf94.56c75",
- "17e983b1.0f5acc",
- "25527780.2599c8"
- ]
- ]
- },
- {
- "id": "8d1ecf94.56c75",
- "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": 902.1874694824219,
- "y": 1545.750006198883,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- []
- ]
- },
- {
- "id": "17e983b1.0f5acc",
- "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/terminateRANSlice.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": 874.1874694824219,
- "y": 1610.750006198883,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- []
- ]
- },
- {
- "id": "25527780.2599c8",
- "type": "for",
- "name": "foreach CUUP",
- "xml": "<for index='id-cuup' start='0' end='`$tmp.CUUPList_length`'>\n",
- "comments": "",
- "outputs": 1,
- "x": 902.1874694824219,
- "y": 1685.750006198883,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- [
- "f767918b.c1909"
- ]
- ]
- },
- {
- "id": "f767918b.c1909",
- "type": "block",
- "name": "block : process CUUP",
- "xml": "<block atomic='true'>",
- "atomic": "true",
- "comments": "",
- "outputs": 1,
- "x": 767.1875991821289,
- "y": 2045.7502088546753,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- [
- "47bac32b.d6df2c",
- "607f15a1.e3bfdc",
- "1244a86b.f09588",
- "cd23d77e.638378",
- "3237bde0.394412",
- "1013b9f.df67c46",
- "7540d398.4d7e7c",
- "53716e4f.0e078",
- "675f0053.7c06e",
- "ce6a8825.08e218",
- "731b1530.4c3bac",
- "f17c73fb.f3c46",
- "a5e1144f.668608"
- ]
- ]
- },
- {
- "id": "47bac32b.d6df2c",
- "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": 1184.187515258789,
- "y": 2098.750027656555,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- []
- ]
- },
- {
- "id": "607f15a1.e3bfdc",
- "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/terminateRANSlice.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": 1168.1876106262207,
- "y": 2148.7500772476196,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- []
- ]
- },
- {
- "id": "1244a86b.f09588",
- "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": 1164.187515258789,
- "y": 2202.7500791549683,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- []
- ]
- },
- {
- "id": "cd23d77e.638378",
- "type": "for",
- "name": "foreach pLMNInfo",
- "xml": "<for index='id-plmn' start='0' end='1'>\n",
- "comments": "",
- "outputs": 1,
- "x": 1008.1874618530273,
- "y": 2337.750231742859,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- [
- "76531b0.fcdd0e4"
- ]
- ]
- },
- {
- "id": "76531b0.fcdd0e4",
- "type": "block",
- "name": "block : atomic",
- "xml": "<block atomic='true'>",
- "atomic": "true",
- "comments": "",
- "outputs": 1,
- "x": 1130.1874618530273,
- "y": 2409.7502343654633,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- [
- "e69dbd8f.eeb1f",
- "d9e7e9d6.d4c918",
- "ed65fd40.81f58"
- ]
- ]
- },
- {
- "id": "f6f2ec79.71ec3",
- "type": "failure",
- "name": "failure",
- "xml": "<outcome value='failure'>\n",
- "comments": "",
+ "id": "a8565007.84d53",
+ "type": "dgstart",
+ "name": "DGSTART",
"outputs": 1,
- "x": 2258.1877403259277,
- "y": 2917.750337600708,
- "z": "7dbbf2af.ccfd8c",
+ "x": 152,
+ "y": 125,
+ "z": "ae173881.f63c38",
"wires": [
[
- "11ce79c1.a1eb76"
+ "757edbb2.896d14"
]
]
},
{
- "id": "11ce79c1.a1eb76",
- "type": "block",
- "name": "block : atomic",
- "xml": "<block atomic='true'>",
- "atomic": "true",
+ "id": "757edbb2.896d14",
+ "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": 2415.187744140625,
- "y": 2910.7501425743103,
- "z": "7dbbf2af.ccfd8c",
+ "x": 209.99998474121094,
+ "y": 186.00009536743164,
+ "z": "ae173881.f63c38",
"wires": [
[
- "b6ec5207.c85b3",
- "a49dd287.9dcb7",
- "96bc23d2.c6dae"
+ "5d7a8a4.399b674"
]
]
},
{
- "id": "a49dd287.9dcb7",
- "type": "set",
- "name": "set",
- "xml": "<set>\n<parameter name='error-code' value='500'/>\n<parameter name='error-message' value='Error removing CUUP PLMNInfoList. Aborting RPC executiopn'/>",
- "comments": "",
- "x": 2660.1877517700195,
- "y": 2911.750533103943,
- "z": "7dbbf2af.ccfd8c",
- "wires": []
- },
- {
- "id": "b6ec5207.c85b3",
- "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 removing CUUP PLMNInfo. Aborting RPC executiopn'/>",
- "comments": "",
- "x": 2648.1877517700195,
- "y": 2946.750534057617,
- "z": "7dbbf2af.ccfd8c",
- "wires": []
- },
- {
- "id": "e29d71e1.f7537",
- "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/terminateRANSlice.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"Successfully removed - gNBCUUP PLMNInfo Entry\"/>",
- "comments": "",
- "outputs": 1,
- "x": 2638.1875534057617,
- "y": 2994.7503385543823,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- []
- ]
- },
- {
- "id": "b3e805cf.7e3048",
+ "id": "1bd2d18e.d8968e",
"type": "block",
"name": "block : atomic",
"xml": "<block atomic='true'>",
"atomic": "true",
"comments": "",
"outputs": 1,
- "x": 2482.187545776367,
- "y": 2987.750144004822,
- "z": "7dbbf2af.ccfd8c",
+ "x": 303,
+ "y": 352,
+ "z": "ae173881.f63c38",
"wires": [
[
- "e29d71e1.f7537"
+ "fa817d28.5fff"
]
]
},
{
- "id": "68b90674.2ffc88",
- "type": "success",
- "name": "success",
- "xml": "<outcome value='success'>\n",
- "comments": "",
- "outputs": 1,
- "x": 2322.187545776367,
- "y": 2987.7503385543823,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- [
- "b3e805cf.7e3048"
- ]
- ]
- },
- {
- "id": "c445baf.1e26e48",
+ "id": "fa817d28.5fff",
"type": "switchNode",
- "name": "ransim mounted",
- "xml": "<switch test='`$prop.ransim-mounted`'>\n",
+ "name": "switch configdb deployed",
+ "xml": "<switch test='`$prop.configdb-deployed`'>\n",
"comments": "",
"outputs": 1,
- "x": 2004.1874961853027,
- "y": 2708.750383377075,
- "z": "7dbbf2af.ccfd8c",
+ "x": 476.00000762939453,
+ "y": 282.00000381469727,
+ "z": "ae173881.f63c38",
"wires": [
[
- "b909a3bc.308e9",
- "b7b3c806.452168"
+ "deb8bda.62c444",
+ "dc2e7a56.adbfa8"
]
]
},
{
- "id": "b909a3bc.308e9",
+ "id": "deb8bda.62c444",
"type": "outcome",
- "name": "Not Mounted",
- "xml": "<outcome value='false'>\n",
- "comments": "",
- "outputs": 1,
- "x": 2324.187599182129,
- "y": 2758.750140696764,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- [
- "71d180ff.6606e"
- ]
- ]
- },
- {
- "id": "b7b3c806.452168",
- "type": "outcome",
- "name": "Mounted",
+ "name": "ConfigDB Deployed",
"xml": "<outcome value='true'>\n",
"comments": "",
"outputs": 1,
- "x": 2357.187484741211,
- "y": 2857.750349521637,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- [
- "8d00366e.864018"
- ]
- ]
- },
- {
- "id": "71d180ff.6606e",
- "type": "execute",
- "name": "generate terminate PLMNInfoListEntry CUUP URL",
- "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$prop.restapi.terminateSNSSAIEntry.ToCUUP`\"/>\n <parameter name=\"outputPath\" value=\"tmp.deletePLMNInfo-CUUP.url\"/>\n <parameter name=\"target\" value=\"{idNearRTRIC}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.nearRTRICId`\"/>\n",
- "comments": "",
- "outputs": 1,
- "x": 2689.187484741211,
- "y": 2770.750349521637,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- []
- ]
- },
- {
- "id": "bfa0e8f3.c5e558",
- "type": "execute",
- "name": "prepare idGNBCUUPFunction",
- "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$tmp.deletePLMNInfo-CUUP.url`\"/>\n <parameter name=\"outputPath\" value=\"tmp.deletePLMNInfo-CUUP.url\"/>\n <parameter name=\"target\" value=\"{idGNBCUUPFunction}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.idGNBCUUPFunction`\"/>\n",
- "comments": "",
- "outputs": 1,
- "x": 2020.1874389648438,
- "y": 2812.750141143799,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- []
- ]
- },
- {
- "id": "1013b9f.df67c46",
- "type": "set",
- "name": "Calculate RRMPolicyRatio",
- "xml": "<set>\n<parameter name='tmp.maxNumberOfDRBsPerNSSAI' value='`$tmp.payload.maxNumberofConns*4`' />\n<parameter name='tmp.maxNumberOfDRBsPerCUUP' value='`$tmp.maxNumberOfDRBsPerNSSAI /$tmp.CUUPList_length`' />\n<parameter name='tmp.rRMPolicyDedicatedRatio1' value='`$tmp.maxNumberOfDRBsPerCUUP*100`' />\n<parameter name='tmp.rRMPolicyDedicatedRatio-CUUP' value='`$tmp.rRMPolicyDedicatedRatio1/$prop.cuupfunction.maxNumberOfDRBsPerCUUP`' />",
- "comments": "",
- "x": 1380.1876068115234,
- "y": 3187.750391960144,
- "z": "7dbbf2af.ccfd8c",
- "wires": []
- },
- {
- "id": "7540d398.4d7e7c",
- "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/terminateRANSlice.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"RRMPolicyRatio for this profile is - \"/>\n<parameter name=\"field2\" value=\"`$tmp.rRMPolicyDedicatedRatio-CUUP`\"/>",
- "comments": "",
- "outputs": 1,
- "x": 1338.1876106262207,
- "y": 3252.750391960144,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- []
- ]
- },
- {
- "id": "53716e4f.0e078",
- "type": "switchNode",
- "name": "ransim mounted",
- "xml": "<switch test='`$prop.ransim-mounted`'>\n",
- "comments": "",
- "outputs": 1,
- "x": 1404.187515258789,
- "y": 3298.7501974105835,
- "z": "7dbbf2af.ccfd8c",
+ "x": 727.0000305175781,
+ "y": 256.9999694824219,
+ "z": "ae173881.f63c38",
"wires": [
[
- "f570d5a6.8d8608",
- "2a1244f1.a07f1c"
+ "c7bc97f2.0ae808"
]
]
},
{
- "id": "f570d5a6.8d8608",
+ "id": "dc2e7a56.adbfa8",
"type": "outcome",
- "name": "Not Mounted",
+ "name": "CPS Deployed",
"xml": "<outcome value='false'>\n",
"comments": "",
"outputs": 1,
- "x": 1713.1874465942383,
- "y": 3254.7497568130493,
- "z": "7dbbf2af.ccfd8c",
+ "x": 682.0000076293945,
+ "y": 406.0000057220459,
+ "z": "ae173881.f63c38",
"wires": [
[
- "bb5e403b.03f39"
+ "e37ba065.98f6d"
]
]
},
{
- "id": "bb5e403b.03f39",
- "type": "execute",
- "name": "fetch RRMPolicyRatio CUUP - URL",
- "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$prop.restapi.RRMPolicyRatioEntry.ToGNBCUUP`\"/>\n <parameter name=\"outputPath\" value=\"tmp.getRRMPolicyRatio-CUUP.url\"/>\n <parameter name=\"target\" value=\"{idNearRTRIC}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.nearRTRICId`\"/>\n",
- "comments": "",
- "outputs": 1,
- "x": 1972.187255859375,
- "y": 3256.749951839447,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- []
- ]
- },
- {
- "id": "675f0053.7c06e",
- "type": "execute",
- "name": "prepare idGNBCUUPFunction",
- "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$tmp.getRRMPolicyRatio-CUUP.url`\"/>\n <parameter name=\"outputPath\" value=\"tmp.getRRMPolicyRatio-CUUP.url\"/>\n <parameter name=\"target\" value=\"{idGNBCUUPFunction}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.idGNBCUUPFunction`\"/>\n",
- "comments": "",
- "outputs": 1,
- "x": 1451.1876125335693,
- "y": 3347.7503938674927,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- []
- ]
- },
- {
- "id": "ce6a8825.08e218",
- "type": "execute",
- "name": "fetch RRMPolicyRatio - CUUP",
- "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"restapiUrl\" value=\"`$prop.controller.url + $tmp.getRRMPolicyRatio-CUUP.url`\"/>\n<parameter name=\"restapiUser\" value=\"`$prop.controller.user`\" />\n<parameter name=\"restapiPassword\" value=\"`$prop.controller.pwd`\"/>\n<parameter name=\"httpMethod\" value=\"GET\"/>\n<parameter name=\"responsePrefix\" value=\"get-rrmpolicyratio-cuup-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": 1470.1876114606857,
- "y": 3395.750346183777,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- [
- "fd89aea9.7b5b3",
- "7f95c0e4.f485a"
- ]
- ]
- },
- {
- "id": "fd89aea9.7b5b3",
- "type": "failure",
- "name": "failure",
- "xml": "<outcome value='failure'>\n",
- "comments": "",
- "outputs": 1,
- "x": 1876.187644958496,
- "y": 3360.7501487731934,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- [
- "3680e62.12fa31a"
- ]
- ]
- },
- {
- "id": "3680e62.12fa31a",
- "type": "block",
- "name": "block : atomic",
- "xml": "<block atomic='true'>",
- "atomic": "true",
- "comments": "",
- "outputs": 1,
- "x": 2050.187644958496,
- "y": 3371.7499532699585,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- [
- "48ae1a5d.537aa4",
- "65883337.6e50dc",
- "96bc23d2.c6dae"
- ]
- ]
- },
- {
- "id": "65883337.6e50dc",
- "type": "set",
- "name": "set",
- "xml": "<set>\n<parameter name='error-code' value='500'/>\n<parameter name='error-message' value='Error in retrieving RRMPolicyRatio. Aborting RPC executiopn'/>",
- "comments": "",
- "x": 2242.187454223633,
- "y": 3316.7499532699585,
- "z": "7dbbf2af.ccfd8c",
- "wires": []
- },
- {
- "id": "48ae1a5d.537aa4",
- "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 in fetching RRMPolicyRatio. Aborting RPC executiopn'/>",
- "comments": "",
- "x": 2286.187454223633,
- "y": 3360.7499532699585,
- "z": "7dbbf2af.ccfd8c",
- "wires": []
- },
- {
- "id": "64787e93.580a7",
- "type": "execute",
- "name": "printContext",
- "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='printContext' >\n<parameter name='filename' value='/opt/opendaylight/current/data/log/ranSlice-instantiateRANSlice-configrsp-context.log' />\n\n\n",
- "comments": "",
- "outputs": 1,
- "x": 2273.187454223633,
- "y": 3439.7503452301025,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- []
- ]
- },
- {
- "id": "96fec774.ba6cc8",
- "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/terminateRANSlice.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"Successfully Retrieved - RRMPolicyRatio\"/>",
- "comments": "",
- "outputs": 1,
- "x": 2265.187454223633,
- "y": 3395.750344276428,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- []
- ]
- },
- {
- "id": "9b510cd4.14479",
- "type": "block",
- "name": "block : atomic",
- "xml": "<block atomic='true'>",
- "atomic": "true",
- "comments": "",
- "outputs": 1,
- "x": 2056.1874504089355,
- "y": 3417.750344276428,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- [
- "96fec774.ba6cc8",
- "64787e93.580a7"
- ]
- ]
- },
- {
- "id": "7f95c0e4.f485a",
- "type": "success",
- "name": "success",
- "xml": "<outcome value='success'>\n",
- "comments": "",
- "outputs": 1,
- "x": 1875.187644958496,
- "y": 3416.7501497268677,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- [
- "9b510cd4.14479"
- ]
- ]
- },
- {
- "id": "731b1530.4c3bac",
- "type": "execute",
- "name": "read rrmpolicyratio list size",
- "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'>\n\t<parameter name='outputPath' value='tmp.rrmPolicyRatioList_CUUP_length' />\n\t<parameter name='source' value=\"`'get-rrmpolicyratio-cuup-response.attributes.RRMPolicyRatio_length'`\" />\n ",
- "comments": "",
- "outputs": 1,
- "x": 1469.1876106262207,
- "y": 3442.7503957748413,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- []
- ]
- },
- {
- "id": "f17c73fb.f3c46",
- "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/terminateRANSlice.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"CUUP - RRMPolicyRatioList size\"/>\n<parameter name=\"field2\" value=\"`$tmp.rrmPolicyRatioList_CUUP_length`\"/>\n",
- "comments": "",
- "outputs": 1,
- "x": 1432.1876125335693,
- "y": 3491.7503957748413,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- []
- ]
- },
- {
- "id": "a5e1144f.668608",
- "type": "for",
- "name": "for each rrmpolicyratio",
- "xml": "<for index='idcuup-rrm' start='0' end='`$tmp.rrmPolicyRatioList_CUUP_length`' >\n",
- "comments": "",
- "outputs": 1,
- "x": 1487.8541164398193,
- "y": 3536.0836000442505,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- [
- "e9ae6ba6.789d18"
- ]
- ]
- },
- {
- "id": "e9ae6ba6.789d18",
- "type": "block",
- "name": "block : atomic",
- "xml": "<block atomic='true'>",
- "atomic": "true",
- "comments": "",
- "outputs": 1,
- "x": 1813.854148864746,
- "y": 3469.083487033844,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- [
- "ee8bcbfb.3c7bd8",
- "f7776fb3.813fd",
- "b886c16f.ec3f9",
- "2f976a24.2999e6",
- "ec777e18.0bdc2",
- "904594a7.bb7d18",
- "f7497ee4.8284d",
- "a9af97f3.056d68",
- "3ac47774.109b28",
- "2ace0ee9.26c332",
- "726fc2f.51f473c"
- ]
- ]
- },
- {
- "id": "86b69dff.b5e4d",
+ "id": "e37ba065.98f6d",
"type": "block",
"name": "block : atomic",
"xml": "<block atomic='true'>",
"atomic": "true",
"comments": "",
"outputs": 1,
- "x": 2609.8540267944336,
- "y": 3703.0837349891663,
- "z": "7dbbf2af.ccfd8c",
+ "x": 903.0000114440918,
+ "y": 401.99998140335083,
+ "z": "ae173881.f63c38",
"wires": [
[
- "e6c20713.cecbb8"
+ "e72f4d6.6af97b",
+ "c8bd2cef.30f8"
]
]
},
{
- "id": "e6c20713.cecbb8",
- "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/terminateRANSlice.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"Successfully removed - CUUP RRMpolicyRatio\"/>",
- "comments": "",
- "outputs": 1,
- "x": 2803.854179382324,
- "y": 3733.0835518836975,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- []
- ]
- },
- {
- "id": "26a35a8e.893d66",
- "type": "set",
- "name": "set",
- "xml": "<set>\n<parameter name='error-code' value='500'/>\n<parameter name='error-message' value='Error removing CUUP RRMPolicyRatio. Aborting RPC executiopn'/>",
- "comments": "",
- "x": 2869.853998184204,
- "y": 3790.083429336548,
- "z": "7dbbf2af.ccfd8c",
- "wires": []
- },
- {
- "id": "1c5249b9.4a95e6",
- "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 removing RRMPolicyRatio. Aborting RPC executiopn'/>",
- "comments": "",
- "x": 2884.854118347168,
- "y": 3838.083429336548,
- "z": "7dbbf2af.ccfd8c",
- "wires": []
- },
- {
- "id": "f1c91196.7e76a",
+ "id": "c7bc97f2.0ae808",
"type": "block",
"name": "block : atomic",
"xml": "<block atomic='true'>",
"atomic": "true",
"comments": "",
"outputs": 1,
- "x": 2606.8545455932617,
- "y": 3765.0833687782288,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- [
- "1c5249b9.4a95e6",
- "26a35a8e.893d66"
- ]
- ]
- },
- {
- "id": "84ca50d3.1e31c",
- "type": "failure",
- "name": "failure",
- "xml": "<outcome value='failure'>\n",
- "comments": "",
- "outputs": 1,
- "x": 2389.8540077209473,
- "y": 3764.0831632614136,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- [
- "f1c91196.7e76a"
- ]
- ]
- },
- {
- "id": "e90ee938.3216c8",
- "type": "block",
- "name": "Process gNBDU",
- "xml": "<block atomic='true'>",
- "atomic": "true",
- "comments": "",
- "outputs": 1,
- "x": 933.9376449584961,
- "y": 4173.500734806061,
- "z": "7dbbf2af.ccfd8c",
+ "x": 940,
+ "y": 266,
+ "z": "ae173881.f63c38",
"wires": [
[
- "582f726c.7fcb3c",
- "1b44b755.afa449",
- "1bb458b2.a3c417"
+ "d57d2de3.9e931",
+ "b1b35d47.3428a"
]
]
},
{
- "id": "582f726c.7fcb3c",
- "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": 1262.937644958496,
- "y": 4204.500734806061,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- []
- ]
- },
- {
- "id": "1b44b755.afa449",
- "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/terminateRANSlice.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": 1220.937629699707,
- "y": 4265.500734806061,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- []
- ]
- },
- {
- "id": "1bb458b2.a3c417",
- "type": "for",
- "name": "foreach DU",
- "xml": "<for index='id-du' start='0' end='`$tmp.DUList_length`'>\n",
- "comments": "",
- "outputs": 1,
- "x": 1235.9376602172852,
- "y": 4331.500359535217,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- [
- "65c34acb.018754"
- ]
- ]
- },
- {
- "id": "65c34acb.018754",
- "type": "block",
- "name": "block : process gNBDU",
- "xml": "<block atomic='true'>",
- "atomic": "true",
- "comments": "",
- "outputs": 1,
- "x": 1513.937644958496,
- "y": 4336.500704288483,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- [
- "ef834b23.f949a8",
- "9d52922e.885b2",
- "6f64d23b.fb001c",
- "b8bec295.59384"
- ]
- ]
- },
- {
- "id": "ef834b23.f949a8",
- "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": 1792.9374694824219,
- "y": 4332.500006198883,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- []
- ]
- },
- {
- "id": "9d52922e.885b2",
+ "id": "d57d2de3.9e931",
"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/terminateRANSlice.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"GNBDUId \"/>\n<parameter name=\"field2\" value=\"`$tmp.GNBDUId`\"/>\n\n",
+ "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": 1765.9374694824219,
- "y": 4383.500006198883,
- "z": "7dbbf2af.ccfd8c",
+ "x": 1124,
+ "y": 223,
+ "z": "ae173881.f63c38",
"wires": [
[]
]
},
{
- "id": "6f64d23b.fb001c",
- "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 ",
+ "id": "b1b35d47.3428a",
+ "type": "call",
+ "name": "call terminateRanslice-configdb",
+ "xml": "<call module='ran-slice-api' rpc='terminateRANSliceInstance-configDb' mode='sync' >\n",
"comments": "",
"outputs": 1,
- "x": 1774.9374694824219,
- "y": 4442.500361442566,
- "z": "7dbbf2af.ccfd8c",
+ "x": 1209.678897857666,
+ "y": 277.75000762939453,
+ "z": "ae173881.f63c38",
"wires": [
[]
]
},
{
- "id": "b8bec295.59384",
- "type": "for",
- "name": "for cellDUList",
- "xml": "<for index='id-celldu' start='0' end='`$tmp.cellDUList_length`' >\n",
- "comments": "",
- "outputs": 1,
- "x": 1811.9374465942383,
- "y": 4521.500264167786,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- [
- "53bf66bc.532388"
- ]
- ]
- },
- {
- "id": "19c1319d.1cd4ae",
- "type": "block",
- "name": "block : atomic",
- "xml": "<block atomic='true'>",
- "atomic": "true",
- "comments": "",
- "outputs": 1,
- "x": 2768.687557220459,
- "y": 4646.500264167786,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- [
- "3ccc2304.a817cc",
- "6f7bbbaa.eb58d4",
- "14a22058.3f097",
- "6cbe6134.18dde",
- "ea26dd74.bf47e",
- "507051ae.80ece",
- "e0b12c63.862a",
- "c8c318d3.b0b3a8",
- "2bdf58a0.e21e08",
- "789a7902.741ec8",
- "d0124a83.aa2ab8",
- "1c6b37a8.400fe8",
- "710788ba.683388",
- "ab779797.43fff8",
- "2623a9f9.8193d6"
- ]
- ]
- },
- {
- "id": "c8c318d3.b0b3a8",
+ "id": "e72f4d6.6af97b",
"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/terminateRANSlice.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": 3018.687469482422,
- "y": 4525.500006198883,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- []
- ]
- },
- {
- "id": "e0b12c63.862a",
- "type": "switchNode",
- "name": "ransim mounted",
- "xml": "<switch test='`$prop.ransim-mounted`'>\n",
- "comments": "",
- "outputs": 1,
- "x": 3046.687469482422,
- "y": 4593.500006198883,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- [
- "ecc13f89.797d3",
- "748efaf2.894f34"
- ]
- ]
- },
- {
- "id": "ecc13f89.797d3",
- "type": "outcome",
- "name": "Not Mounted",
- "xml": "<outcome value='false'>\n",
- "comments": "",
- "outputs": 1,
- "x": 3254.687469482422,
- "y": 4558.499762058258,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- [
- "c9b0f6a4.354ec8"
- ]
- ]
- },
- {
- "id": "748efaf2.894f34",
- "type": "outcome",
- "name": "Mounted",
- "xml": "<outcome value='true'>\n",
- "comments": "",
- "outputs": 1,
- "x": 3249.6875190734863,
- "y": 4627.500330448151,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- [
- "cd7be5a3.adf0c8"
- ]
- ]
- },
- {
- "id": "c9b0f6a4.354ec8",
- "type": "execute",
- "name": "generate terminate PLMNInfoListEntry ToNRCellDU",
- "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$prop.restapi.terminateSNSSAIEntry.ToNRCellDU`\"/>\n <parameter name=\"outputPath\" value=\"tmp.deletePLMNInfoListEntry-cellDU.url\"/>\n <parameter name=\"target\" value=\"{idNearRTRIC}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.nearRTRICId`\"/>\n",
- "comments": "",
- "outputs": 1,
- "x": 3574.687469482422,
- "y": 4573.500006198883,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- []
- ]
- },
- {
- "id": "3ccc2304.a817cc",
- "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": 3050.6876106262207,
- "y": 4632.500658035278,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- []
- ]
- },
- {
- "id": "6cbe6134.18dde",
- "type": "execute",
- "name": "prepare idGNBDUFunction",
- "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$tmp.deletePLMNInfoListEntry-cellDU.url`\"/>\n <parameter name=\"outputPath\" value=\"tmp.deletePLMNInfoListEntry-cellDU.url\"/>\n <parameter name=\"target\" value=\"{idGNBDUFunction}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.GNBDUId`\"/>\n",
- "comments": "",
- "outputs": 1,
- "x": 3098.6876831054688,
- "y": 4746.5001883506775,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- []
- ]
- },
- {
- "id": "ea26dd74.bf47e",
- "type": "execute",
- "name": "prepare idNRCellDU",
- "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$tmp.deletePLMNInfoListEntry-cellDU.url`\"/>\n <parameter name=\"outputPath\" value=\"tmp.deletePLMNInfoListEntry-cellDU.url\"/>\n <parameter name=\"target\" value=\"{idNRCellDU}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.cellDULocalId`\"/>\n",
+ "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": 3071.6878662109375,
- "y": 4801.500190258026,
- "z": "7dbbf2af.ccfd8c",
+ "x": 1107,
+ "y": 401,
+ "z": "ae173881.f63c38",
"wires": [
[]
]
},
{
- "id": "507051ae.80ece",
- "type": "execute",
- "name": "prepare mcc",
- "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$tmp.deletePLMNInfoListEntry-cellDU.url`\"/>\n <parameter name=\"outputPath\" value=\"tmp.deletePLMNInfoListEntry-cellDU.url\"/>\n <parameter name=\"target\" value=\"{mcc}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.mcc`\"/>\n ",
+ "id": "c8bd2cef.30f8",
+ "type": "call",
+ "name": "call terminateRanslice-cps",
+ "xml": "<call module='ran-slice-api' rpc='terminateRANSliceInstance-cps' mode='sync' >\n",
"comments": "",
"outputs": 1,
- "x": 3056.6876678466797,
- "y": 4845.750689506531,
- "z": "7dbbf2af.ccfd8c",
+ "x": 1192.678897857666,
+ "y": 455.75000762939453,
+ "z": "ae173881.f63c38",
"wires": [
[]
]
},
{
- "id": "6f7bbbaa.eb58d4",
- "type": "execute",
- "name": "prepare mnc",
- "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$tmp.deletePLMNInfoListEntry-cellDU.url`\"/>\n <parameter name=\"outputPath\" value=\"tmp.deletePLMNInfoListEntry-cellDU.url\"/>\n <parameter name=\"target\" value=\"{mnc}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.mnc`\"/>",
- "comments": "",
- "outputs": 1,
- "x": 3057.4379119873047,
- "y": 4890.0002636909485,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- []
- ]
- },
- {
- "id": "14a22058.3f097",
- "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/terminateRANSlice.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.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.sNSSAI`\"/>\n<parameter name=\"field8\" value=\"`$tmp.deletePLMNInfoListEntry-cellDU.url`\"/>\n",
- "comments": "",
- "outputs": 1,
- "x": 3065.68741607666,
- "y": 4978.50036907196,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- []
- ]
- },
- {
- "id": "2bdf58a0.e21e08",
- "type": "execute",
- "name": "terminate PLMNInfoListEntry ToNRCellDU",
- "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"restapiUrl\" value=\"`$prop.controller.url + $tmp.deletePLMNInfoListEntry-cellDU.url`\"/>\n<parameter name=\"restapiUser\" value=\"`$prop.controller.user`\" />\n<parameter name=\"restapiPassword\" value=\"`$prop.controller.pwd`\"/>\n<parameter name=\"httpMethod\" value=\"DELETE\"/>\n<parameter name=\"responsePrefix\" value=\"delete-cellDU-PLMNInfoList-response\"/>\n<parameter name='contentType' value='application/json' /> \n<parameter name='format' value='json' />",
- "comments": "",
- "outputs": 1,
- "x": 3113.68741607666,
- "y": 5017.749979972839,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- [
- "f008e422.d5eee8",
- "cab537eb.c5ec18"
- ]
- ]
- },
- {
- "id": "cab537eb.c5ec18",
- "type": "failure",
- "name": "failure",
- "xml": "<outcome value='failure'>\n",
- "comments": "",
- "outputs": 1,
- "x": 3366.6874237060547,
- "y": 4883.749978065491,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- [
- "f8769385.9e43c"
- ]
- ]
- },
- {
- "id": "f008e422.d5eee8",
- "type": "success",
- "name": "success",
- "xml": "<outcome value='success'>\n",
- "comments": "",
- "outputs": 1,
- "x": 3393.6874237060547,
- "y": 5014.749979972839,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- [
- "4d95ae8c.8a24a"
- ]
- ]
- },
- {
- "id": "f8769385.9e43c",
- "type": "block",
- "name": "block : atomic",
- "xml": "<block atomic='true'>",
- "atomic": "true",
- "comments": "",
- "outputs": 1,
- "x": 3530.687812805176,
- "y": 4857.749978065491,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- [
- "6fc85235.81968c",
- "97a40b80.fa9278",
- "96bc23d2.c6dae"
- ]
- ]
- },
- {
- "id": "4d95ae8c.8a24a",
- "type": "block",
- "name": "block : atomic",
- "xml": "<block atomic='true'>",
- "atomic": "true",
- "comments": "",
- "outputs": 1,
- "x": 3537.6874237060547,
- "y": 5012.749979972839,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- [
- "3825691c.53f876"
- ]
- ]
- },
- {
- "id": "3825691c.53f876",
- "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/instantiateRANSliceModifyAllocate.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"Successfully deleted - cellDU PLMNInfo List\"/>",
- "comments": "",
- "outputs": 1,
- "x": 3709.6870346069336,
- "y": 4991.750370025635,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- []
- ]
- },
- {
- "id": "6fc85235.81968c",
- "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 deleting NECellDU - PLMNInfo. Aborting RPC executiopn'/>",
- "comments": "",
- "x": 3712.6874237060547,
- "y": 4918.749978065491,
- "z": "7dbbf2af.ccfd8c",
- "wires": []
- },
- {
- "id": "97a40b80.fa9278",
- "type": "set",
- "name": "set",
- "xml": "<set>\n<parameter name='error-code' value='500'/>\n<parameter name='error-message' value='Error deleting cellDU PLMNInfoList. Aborting RPC executiopn'/>",
- "comments": "",
- "x": 3711.6874256134033,
- "y": 4852.749977111816,
- "z": "7dbbf2af.ccfd8c",
- "wires": []
- },
- {
- "id": "789a7902.741ec8",
- "type": "block",
- "name": "block : atomic",
- "xml": "<block atomic='true'>",
- "atomic": "true",
- "comments": "",
- "outputs": 1,
- "x": 2916.937469482422,
- "y": 5338.750006198883,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- [
- "62f0dd3.1be2924",
- "75a44e5d.3f067",
- "7b739c2a.3f2a64",
- "79017cf0.345254",
- "add21299.9274c",
- "471082b0.638dec",
- "800b88d6.12cf98",
- "47bef9c7.0d71a8"
- ]
- ]
- },
- {
- "id": "62f0dd3.1be2924",
- "type": "switchNode",
- "name": "ransim mounted",
- "xml": "<switch test='`$prop.ransim-mounted`'>\n",
- "comments": "",
- "outputs": 1,
- "x": 3140.93741607666,
- "y": 5311.749982833862,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- [
- "41f49c7f.41bb44",
- "5d7d6216.dd5d9c"
- ]
- ]
- },
- {
- "id": "41f49c7f.41bb44",
- "type": "outcome",
- "name": "Not Mounted",
- "xml": "<outcome value='false'>\n",
- "comments": "",
- "outputs": 1,
- "x": 3332.937614440918,
- "y": 5265.750372886658,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- [
- "1a0aaabc.882725"
- ]
- ]
- },
- {
- "id": "1a0aaabc.882725",
- "type": "execute",
- "name": "fetch RRMPolicyRatio NRCellDU - URL",
- "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$prop.restapi.RRMPolicyRatioEntry.ToGNBDU`\"/>\n <parameter name=\"outputPath\" value=\"tmp.getRRMPolicyRatio-gNBDU.url\"/>\n <parameter name=\"target\" value=\"{idNearRTRIC}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.nearRTRICId`\"/>\n",
- "comments": "",
- "outputs": 1,
- "x": 3662.9378204345703,
- "y": 5289.750372886658,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- []
- ]
- },
- {
- "id": "75a44e5d.3f067",
- "type": "execute",
- "name": "prepare idGNBDUFunction",
- "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$tmp.getRRMPolicyRatio-gNBDU.url`\"/>\n <parameter name=\"outputPath\" value=\"tmp.getRRMPolicyRatio-gNBDU.url\"/>\n <parameter name=\"target\" value=\"{idGNBDUFunction}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.GNBDUId`\"/>\n",
- "comments": "",
- "outputs": 1,
- "x": 3165.93741607666,
- "y": 5378.749983787537,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- []
- ]
- },
- {
- "id": "7b739c2a.3f2a64",
- "type": "execute",
- "name": "prepare idNRCellDU",
- "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$tmp.getRRMPolicyRatio-gNBDU.url`\"/>\n <parameter name=\"outputPath\" value=\"tmp.getRRMPolicyRatio-gNBDU.url\"/>\n <parameter name=\"target\" value=\"{idNRCellDU}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.cellDULocalId`\"/>\n",
- "comments": "",
- "outputs": 1,
- "x": 3141.93741607666,
- "y": 5435.749984741211,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- []
- ]
- },
- {
- "id": "79017cf0.345254",
- "type": "execute",
- "name": "fetch RRMPolicyRatio - NRCellDU",
- "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"restapiUrl\" value=\"`$prop.controller.url + $tmp.getRRMPolicyRatio-gNBDU.url`\"/>\n<parameter name=\"restapiUser\" value=\"`$prop.controller.user`\" />\n<parameter name=\"restapiPassword\" value=\"`$prop.controller.pwd`\"/>\n<parameter name=\"httpMethod\" value=\"GET\"/>\n<parameter name=\"responsePrefix\" value=\"get-rrmpolicyratio-du-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": 3176.93741607666,
- "y": 5482.749985694885,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- [
- "6d6b10de.c6776",
- "80dd5b29.ed9d08"
- ]
- ]
- },
- {
- "id": "6d6b10de.c6776",
- "type": "failure",
- "name": "failure",
- "xml": "<outcome value='failure'>\n",
- "comments": "",
- "outputs": 1,
- "x": 3400.9374198913574,
- "y": 5468.749984741211,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- [
- "5355197e.72f3c8"
- ]
- ]
- },
- {
- "id": "80dd5b29.ed9d08",
- "type": "success",
- "name": "success",
- "xml": "<outcome value='success'>\n",
- "comments": "",
- "outputs": 1,
- "x": 3428.9374237060547,
- "y": 5528.749985694885,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- [
- "40ce45c9.052afc"
- ]
- ]
- },
- {
- "id": "5355197e.72f3c8",
- "type": "block",
- "name": "block : atomic",
- "xml": "<block atomic='true'>",
- "atomic": "true",
- "comments": "",
- "outputs": 1,
- "x": 3564.937812805176,
- "y": 5452.749983787537,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- [
- "c0f9bf0.670f84",
- "a8e370f7.2dd37",
- "96bc23d2.c6dae"
- ]
- ]
- },
- {
- "id": "a8e370f7.2dd37",
- "type": "set",
- "name": "set",
- "xml": "<set>\n<parameter name='error-code' value='500'/>\n<parameter name='error-message' value='Error in retrieving RRMPolicyRatio. Aborting RPC executiopn'/>",
- "comments": "",
- "x": 3764.937816619873,
- "y": 5416.749983787537,
- "z": "7dbbf2af.ccfd8c",
- "wires": []
- },
- {
- "id": "c0f9bf0.670f84",
- "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 in Fetching RRMPolicyRatio - CellDU. Aborting RPC executiopn'/>",
- "comments": "",
- "x": 3781.9374237060547,
- "y": 5452.749985694885,
- "z": "7dbbf2af.ccfd8c",
- "wires": []
- },
- {
- "id": "40ce45c9.052afc",
- "type": "block",
- "name": "block : atomic",
- "xml": "<block atomic='true'>",
- "atomic": "true",
- "comments": "",
- "outputs": 1,
- "x": 3592.187812805176,
- "y": 5518.499985694885,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- [
- "5c659621.ec7748",
- "bd17d743.bafdf8"
- ]
- ]
- },
- {
- "id": "5c659621.ec7748",
- "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/instantiateRANSliceModifyAllocate.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"Successfully Retrieved - RRMPolicyRatio\"/>",
- "comments": "",
- "outputs": 1,
- "x": 3760.437816619873,
- "y": 5498.499985694885,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- []
- ]
- },
- {
- "id": "bd17d743.bafdf8",
- "type": "execute",
- "name": "printContext",
- "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='printContext' >\n<parameter name='filename' value='/opt/opendaylight/current/data/log/ranSlice-instantiateRANSlice-configrsp-context.log' />\n\n\n",
- "comments": "",
- "outputs": 1,
- "x": 3774.9378204345703,
- "y": 5542.999985694885,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- []
- ]
- },
- {
- "id": "add21299.9274c",
- "type": "execute",
- "name": "read rrmpolicyratio list size",
- "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'>\n\t<parameter name='outputPath' value='tmp.rrmPolicyRatioDUList_length' />\n\t<parameter name='source' value=\"`'get-rrmpolicyratio-du-response.attributes.RRMPolicyRatio_length'`\" />\n ",
- "comments": "",
- "outputs": 1,
- "x": 3148.93741607666,
- "y": 5538.749985694885,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- []
- ]
- },
- {
- "id": "471082b0.638dec",
- "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/terminateRANSlice.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"RRMPolicyRatioList size\"/>\n<parameter name=\"field2\" value=\"`$tmp.rrmPolicyRatioDUList_length`\"/>\n",
- "comments": "",
- "outputs": 1,
- "x": 3104.93741607666,
- "y": 5580.74998664856,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- []
- ]
- },
- {
- "id": "800b88d6.12cf98",
- "type": "block",
- "name": "rrmPolicyDedicatedRatio",
- "xml": "<block atomic='true'>",
- "atomic": "true",
- "comments": "",
- "outputs": 1,
- "x": 3719.937812805176,
- "y": 5241.749981880188,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- [
- "a69697b3.655b08",
- "ba7222b5.15814",
- "7abcf82.59a0d08",
- "7ccf97f7.625748",
- "2c2fd4af.6b330c",
- "e6803b6c.da2058",
- "31e6c7f7.60b3e8",
- "1c37db97.866184",
- "d0c053fa.51f29",
- "693ff94c.26eed8",
- "892a5262.221e1"
- ]
- ]
- },
- {
- "id": "7abcf82.59a0d08",
- "type": "set",
- "name": "Calculate RRM Parms1",
- "xml": "<set>\n<parameter name='tmp.uLThptPerSlice' value='`$payloadJson.input.sliceProfile.uLThptPerSlice`' />\n",
- "comments": "",
- "x": 4141.927276611328,
- "y": 4909.072759151459,
- "z": "7dbbf2af.ccfd8c",
- "wires": []
- },
- {
- "id": "7ccf97f7.625748",
- "type": "set",
- "name": "Calculate RRM Parms2",
- "xml": "<set>\n<parameter name='tmp.dLThptPerSlice' value='`$payloadJson.input.sliceProfile.dLThptPerSlice`' />\n",
- "comments": "",
- "x": 4150.468536376953,
- "y": 4954.092778623104,
- "z": "7dbbf2af.ccfd8c",
- "wires": []
- },
- {
- "id": "2c2fd4af.6b330c",
- "type": "set",
- "name": "Calculate RRM Parms3",
- "xml": "<set>\n<parameter name='tmp.maxNumberOfConns' value='`$payloadJson.input.sliceProfile.maxNumberOfConns`' />",
- "comments": "",
- "x": 4140.468658447266,
- "y": 5009.092656552792,
- "z": "7dbbf2af.ccfd8c",
- "wires": []
- },
- {
- "id": "e6803b6c.da2058",
- "type": "set",
- "name": "Calculate RRM Parms4",
- "xml": "<set>\n<parameter name='tmp.nearRTRIC.trafficCapacity1' value='`$tmp.uLThptPerSlice + $tmp.dLThptPerSlice`' />\n",
- "comments": "",
- "x": 4140.468536376953,
- "y": 5060.092656612396,
- "z": "7dbbf2af.ccfd8c",
- "wires": []
- },
- {
- "id": "31e6c7f7.60b3e8",
- "type": "set",
- "name": "Calculate RRM Parms5",
- "xml": "<set>\n<parameter name='tmp.nearRTRIC.trafficCapacity' value='`$tmp.nearRTRIC.trafficCapacity1 / 2`' />",
- "comments": "",
- "x": 4128.468658447266,
- "y": 5120.092778623104,
- "z": "7dbbf2af.ccfd8c",
- "wires": []
- },
- {
- "id": "1c37db97.866184",
- "type": "set",
- "name": "Calculate RRM Parms6",
- "xml": "<set>\n<parameter name='tmp.nearRTRIC.trafficCapacityBPS' value='`$tmp.nearRTRIC.trafficCapacity * 1000000`' />",
- "comments": "",
- "x": 4166.468536376953,
- "y": 5170.092778623104,
- "z": "7dbbf2af.ccfd8c",
- "wires": []
- },
- {
- "id": "d0c053fa.51f29",
- "type": "set",
- "name": "Calculate RRM Parms7",
- "xml": "<set>\n<parameter name='tmp.nrcelldu.totalPRBForSNSSAI' value='`$tmp.nearRTRIC.trafficCapacityBPS / 1008000`' />\n",
- "comments": "",
- "x": 4153.468475341797,
- "y": 5240.093144893646,
- "z": "7dbbf2af.ccfd8c",
- "wires": []
- },
- {
- "id": "693ff94c.26eed8",
- "type": "set",
- "name": "calculation8",
- "xml": "<set>\n<parameter name='tmp.nrcelldu.PRBPerImpactedCell' value='`$tmp.nrcelldu.totalPRBForSNSSAI / $tmp.cellDUList_length`' />\n",
- "comments": "",
- "x": 4124.468475341797,
- "y": 5304.092168331146,
- "z": "7dbbf2af.ccfd8c",
- "wires": []
- },
- {
- "id": "892a5262.221e1",
- "type": "set",
- "name": "calculation9",
- "xml": "<set>\n<parameter name='tmp.rRMPolicyDedicatedRatio.CellDU1' value='`$tmp.nrcelldu.PRBPerImpactedCell * 100`' />\n",
- "comments": "",
- "x": 4112.469024658203,
- "y": 5355.092046260834,
- "z": "7dbbf2af.ccfd8c",
- "wires": []
- },
- {
- "id": "ba7222b5.15814",
- "type": "set",
- "name": "calculation10",
- "xml": "<set>\n<parameter name='tmp.rRMPolicyDedicatedRatio.CellDU' value='`$tmp.rRMPolicyDedicatedRatio.CellDU1 / $prop.nrcelldu.TotalPRBsPerCell`' />\n",
- "comments": "",
- "x": 4087.9273376464844,
- "y": 5421.072515010834,
- "z": "7dbbf2af.ccfd8c",
- "wires": []
- },
- {
- "id": "a69697b3.655b08",
- "type": "record",
- "name": "record",
- "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.FileRecorder\">\n<parameter name=\"file\" value=\"/opt/opendaylight/current/data/log/instantiateRANSlice.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"rRMPolicyDedicatedRatio for CellDU \"/>\n<parameter name=\"field2\" value=\"`$tmp.rRMPolicyDedicatedRatio.CellDU`\"/>\n<parameter name=\"field3\" value=\"tmp.nearRTRIC.trafficCapacity1 \"/>\n<parameter name=\"field4\" value=\"`$tmp.nearRTRIC.trafficCapacity1`\"/>\n<parameter name=\"field5\" value=\"tmp.nearRTRIC.trafficCapacity \"/>\n<parameter name=\"field6\" value=\"`$tmp.nearRTRIC.trafficCapacity`\"/>\n<parameter name=\"field7\" value=\"tmp.nearRTRIC.trafficCapacityBPS\"/>\n<parameter name=\"field8\" value=\"`$tmp.nearRTRIC.trafficCapacityBPS`\"/>\n<parameter name=\"field9\" value=\"tmp.nrcelldu.totalPRBForSNSSAI \"/>\n<parameter name=\"field10\" value=\"`$tmp.nrcelldu.totalPRBForSNSSAI`\"/>\n<parameter name=\"field11\" value=\"tmp.nrcelldu.PRBPerImpactedCell \"/>\n<parameter name=\"field12\" value=\"`$tmp.nrcelldu.PRBPerImpactedCell`\"/>\n<parameter name=\"field13\" value=\"tmp.rRMPolicyDedicatedRatio.CellDU1 \"/>\n<parameter name=\"field14\" value=\"`$tmp.rRMPolicyDedicatedRatio.CellDU1`\"/>",
- "comments": "",
- "outputs": 1,
- "x": 3913.9372634887695,
- "y": 5433.193821430206,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- []
- ]
- },
- {
- "id": "47bef9c7.0d71a8",
- "type": "for",
- "name": "for each rrmpolicyratio",
- "xml": "<for index='iddu-rrm' start='0' end='`$tmp.rrmPolicyRatioDUList_length`' >\n",
- "comments": "",
- "outputs": 1,
- "x": 3134.187469482422,
- "y": 5622.750006198883,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- [
- "528c1d67.f57b04"
- ]
- ]
- },
- {
- "id": "528c1d67.f57b04",
- "type": "block",
- "name": "block : atomic",
- "xml": "<block atomic='true'>",
- "atomic": "true",
- "comments": "",
- "outputs": 1,
- "x": 3345.187812805176,
- "y": 5624.749987602234,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- [
- "62ecc111.352e3",
- "4920a244.7f5c6c",
- "2fdb88a6.a26b88",
- "f0025173.8bc81",
- "3cec9739.39d9f8",
- "110794fb.6c79bb",
- "b0f385f8.012f48",
- "3b954572.23a3ba",
- "31c13c9.04fb3c4",
- "dc8d2eaf.fac9f",
- "5e725b04.67a0f4"
- ]
- ]
- },
- {
- "id": "ae16bd76.9a8ff",
- "type": "success",
- "name": "success",
- "xml": "<outcome value='success'>\n",
- "comments": "",
- "outputs": 1,
- "x": 3949.187629699707,
- "y": 5845.000286579132,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- [
- "8bf604ef.4dbf28"
- ]
- ]
- },
- {
- "id": "8bf604ef.4dbf28",
- "type": "block",
- "name": "block : atomic",
- "xml": "<block atomic='true'>",
- "atomic": "true",
- "comments": "",
- "outputs": 1,
- "x": 4141.437698364258,
- "y": 5858.750286579132,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- [
- "68ee709a.b4c93"
- ]
- ]
- },
- {
- "id": "68ee709a.b4c93",
- "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/terminateRANSlice.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"Successfully removed - cellDU RRMpolicyRatio\"/>",
- "comments": "",
- "outputs": 1,
- "x": 4338.938064575195,
- "y": 5849.750048160553,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- []
- ]
- },
- {
- "id": "e0e13208.118e9",
- "type": "set",
- "name": "set",
- "xml": "<set>\n<parameter name='error-code' value='500'/>\n<parameter name='error-message' value='Error removing cellDU RRMPolicyRatio. Aborting RPC executiopn'/>",
- "comments": "",
- "x": 4407.187469482422,
- "y": 5877.749777317047,
- "z": "7dbbf2af.ccfd8c",
- "wires": []
- },
- {
- "id": "a9572443.06ee98",
- "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 removing RRMPolicyRatio for NRCellDU. Aborting RPC executiopn'/>",
- "comments": "",
- "x": 4412.187347412109,
- "y": 5972.749838352203,
- "z": "7dbbf2af.ccfd8c",
- "wires": []
- },
- {
- "id": "54b8ae3a.c8806",
- "type": "block",
- "name": "block : atomic",
- "xml": "<block atomic='true'>",
- "atomic": "true",
- "comments": "",
- "outputs": 1,
- "x": 4167.187713623047,
- "y": 5926.749777317047,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- [
- "a9572443.06ee98",
- "e0e13208.118e9",
- "96bc23d2.c6dae"
- ]
- ]
- },
- {
- "id": "2b2a79ae.5fefe6",
- "type": "failure",
- "name": "failure",
- "xml": "<outcome value='failure'>\n",
- "comments": "",
- "outputs": 1,
- "x": 3948.187469482422,
- "y": 5921.749777317047,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- [
- "54b8ae3a.c8806"
- ]
- ]
- },
- {
- "id": "96bc23d2.c6dae",
- "type": "block",
- "name": "block : SO Response",
- "xml": "<block atomic='true'>",
- "atomic": "true",
- "comments": "",
- "outputs": 1,
- "x": 4491.671844482422,
- "y": 2826.7500088214874,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- [
- "bfb42204.8499",
- "81dba352.2590b",
- "3db6ea08.753196"
- ]
- ]
- },
- {
- "id": "bfb42204.8499",
- "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=\"success\"/>\n<parameter name=\"tmp.reason\" value=\"`$error-message`\"/>\n<parameter name=\"tmp.requestID\" value=\"`$terminate-r-a-n-slice-input.common-header.request-id `\"/>\n<parameter name=\"tmp.action\" value=\"`$terminate-r-a-n-slice-instance-input.action`\"/>\n\n\n\n",
- "comments": "",
- "x": 5153.672821044922,
- "y": 2618.6496670246124,
- "z": "7dbbf2af.ccfd8c",
- "wires": []
- },
- {
- "id": "81dba352.2590b",
- "type": "record",
- "name": "record configdb RestAPI parms",
- "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.FileRecorder\">\n<parameter name=\"file\" value=\"/opt/opendaylight/current/data/log/so-callback-response.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"URL for SO Callback Response\"/>\n<parameter name='field2' value=\"`$tmp.so.callbackURL`\" />\n<parameter name='field3' value=\"`$tmp.status`\" />\n<parameter name='field4' value=\"`$tmp.reason`\" />\n<parameter name='field5' value=\"`$tmp.requestID`\" />\n<parameter name='field6' value=\"`$tmp.action`\" />",
- "comments": "",
- "outputs": 1,
- "x": 5128.67170715332,
- "y": 2715.750344514847,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- []
- ]
- },
- {
- "id": "3db6ea08.753196",
- "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-terminate-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\"/>\n<parameter name=\"restapiUser\" value=\"`$prop.restapi.so.user`\" />\n<parameter name=\"restapiPassword\" value=\"`$prop.restapi.so.password`\"/>",
- "comments": "",
- "outputs": 1,
- "x": 5043.671718597412,
- "y": 2812.7502224445343,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- [
- "614653ba.f5434c",
- "7e4f1a46.00cc14"
- ]
- ]
- },
- {
- "id": "614653ba.f5434c",
- "type": "failure",
- "name": "failure",
- "xml": "<outcome value='failure'>\n",
- "comments": "",
- "outputs": 1,
- "x": 5269.671727180481,
- "y": 2789.750191450119,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- [
- "ecdd307d.108f1"
- ]
- ]
- },
- {
- "id": "7e4f1a46.00cc14",
- "type": "success",
- "name": "success",
- "xml": "<outcome value='success'>\n",
- "comments": "",
- "outputs": 1,
- "x": 5259.671581268311,
- "y": 2897.7501308918,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- [
- "acecf568.1e7908"
- ]
- ]
- },
- {
- "id": "acecf568.1e7908",
- "type": "block",
- "name": "block",
- "xml": "<block>\n",
- "atomic": "false",
- "comments": "",
- "outputs": 1,
- "x": 5409.671367645264,
- "y": 2916.750191926956,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- [
- "927e9c52.4b741"
- ]
- ]
- },
- {
- "id": "ecdd307d.108f1",
- "type": "block",
- "name": "block",
- "xml": "<block>\n",
- "atomic": "false",
- "comments": "",
- "outputs": 1,
- "x": 5420.6715965271,
- "y": 2784.7503135204315,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- [
- "564d082d.a38d18"
- ]
- ]
- },
- {
- "id": "564d082d.a38d18",
- "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": 5586.671276092529,
- "y": 2787.7501308918,
- "z": "7dbbf2af.ccfd8c",
- "wires": []
- },
- {
- "id": "927e9c52.4b741",
- "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/terminateRANSlice.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"SO Response Sent \"/>",
- "comments": "",
- "outputs": 1,
- "x": 5573.671382904053,
- "y": 2922.7501308918,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- []
- ]
- },
- {
- "id": "d22e193.150cbe8",
- "type": "block",
- "name": "SO Response",
- "xml": "<block atomic='true'>",
- "atomic": "true",
- "comments": "",
- "outputs": 1,
- "x": 573.6718444824219,
- "y": 4508.750008821487,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- [
- "840e3956.011b68",
- "90c6746e.bbc4a8",
- "23ee5b7a.40e3c4",
- "6aad6f38.8196f"
- ]
- ]
- },
- {
- "id": "23ee5b7a.40e3c4",
- "type": "set",
- "name": "set tmp variables for SO response",
- "xml": "<set>\n<parameter name=\"tmp.status\" value=\"success\"/>\n<parameter name=\"tmp.reason\" value=\"`$error-message`\"/>\n<parameter name=\"tmp.requestID\" value=\"`$terminate-r-a-n-slice-input.common-header.request-id `\"/>\n<parameter name=\"tmp.action\" value=\"`$tmp.action`\"/>\n\n\n",
- "comments": "",
- "x": 853.6729888916016,
- "y": 4358.649493455887,
- "z": "7dbbf2af.ccfd8c",
- "wires": []
- },
- {
- "id": "840e3956.011b68",
- "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": 850.6718215942383,
- "y": 4512.750191926956,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- []
- ]
- },
- {
- "id": "90c6746e.bbc4a8",
- "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-termi-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": 719.6719207763672,
- "y": 4629.749896287918,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- [
- "355d4643.f4a52a",
- "52ff37ef.75aec8"
- ]
- ]
- },
- {
- "id": "355d4643.f4a52a",
- "type": "failure",
- "name": "failure",
- "xml": "<outcome value='failure'>\n",
- "comments": "",
- "outputs": 1,
- "x": 884.6719207763672,
- "y": 4609.749895334244,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- [
- "463c3e58.83f39"
- ]
- ]
- },
- {
- "id": "52ff37ef.75aec8",
- "type": "success",
- "name": "success",
- "xml": "<outcome value='success'>\n",
- "comments": "",
- "outputs": 1,
- "x": 876.6718139648438,
- "y": 4682.749845743179,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- [
- "3f2628b1.c9af88"
- ]
- ]
- },
- {
- "id": "3f2628b1.c9af88",
- "type": "block",
- "name": "block",
- "xml": "<block>\n",
- "atomic": "false",
- "comments": "",
- "outputs": 1,
- "x": 1022.6716575622559,
- "y": 4687.749954462051,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- [
- "7147a089.01cd3"
- ]
- ]
- },
- {
- "id": "463c3e58.83f39",
- "type": "block",
- "name": "block",
- "xml": "<block>\n",
- "atomic": "false",
- "comments": "",
- "outputs": 1,
- "x": 1033.6718215942383,
- "y": 4605.750030755997,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- [
- "73420e15.3d06c",
- "801c9504.b25868"
- ]
- ]
- },
- {
- "id": "73420e15.3d06c",
- "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": 1180.6714401245117,
- "y": 4616.749772310257,
- "z": "7dbbf2af.ccfd8c",
- "wires": []
- },
- {
- "id": "7147a089.01cd3",
- "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/terminateRANSlice.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"SO Response Sent \"/>",
- "comments": "",
- "outputs": 1,
- "x": 1183.6715774536133,
- "y": 4693.749846696854,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- []
- ]
- },
- {
- "id": "801c9504.b25868",
- "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": 1168.1820487976074,
- "y": 4520.7392637729645,
- "z": "7dbbf2af.ccfd8c",
- "wires": []
- },
- {
- "id": "6aad6f38.8196f",
- "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": 873.0114440917969,
- "y": 4448.735346078873,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- []
- ]
- },
- {
- "id": "cf71a64b.b0e0c8",
- "type": "outcome",
- "name": "Mounted",
- "xml": "<outcome value='true'>\n",
- "comments": "",
- "outputs": 1,
- "x": 2275.187469482422,
- "y": 1823.750006198883,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- [
- "a8308c1c.2ffee"
- ]
- ]
- },
- {
- "id": "a8308c1c.2ffee",
- "type": "block",
- "name": "ransim URL",
- "xml": "<block atomic='true'>",
- "atomic": "true",
- "comments": "",
- "outputs": 1,
- "x": 2468.1771278381348,
- "y": 1823.7501282691956,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- [
- "508d0070.47a66",
- "35d3119b.a7f02e"
- ]
- ]
- },
- {
- "id": "508d0070.47a66",
- "type": "execute",
- "name": "generate fetchRRMPolicyRatio.ToNRCellCU",
- "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$prop.restapi.RRMPolicyRatioEntry.ToNRCellCU.ransim-mounted`\"/>\n <parameter name=\"outputPath\" value=\"tmp.getRRMPolicyRatio.url\"/>\n <parameter name=\"target\" value=\"{idNearRTRIC}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.nearRTRICId`\"/>",
- "comments": "",
- "outputs": 1,
- "x": 2775.177314758301,
- "y": 1790.750229358673,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- []
- ]
- },
- {
- "id": "35d3119b.a7f02e",
- "type": "execute",
- "name": "populate mountName",
- "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$tmp.getRRMPolicyRatio.url`\"/>\n <parameter name=\"outputPath\" value=\"tmp.getRRMPolicyRatio.url\"/>\n <parameter name=\"target\" value=\"{mountName}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.CUCPName`\"/>",
- "comments": "",
- "outputs": 1,
- "x": 2719.1777153015137,
- "y": 1843.7504229545593,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- []
- ]
- },
- {
- "id": "3bf36cbe.1eac64",
- "type": "block",
- "name": "ransim URL",
- "xml": "<block atomic='true'>",
- "atomic": "true",
- "comments": "",
- "outputs": 1,
- "x": 2702.687469482422,
- "y": 1207.750006198883,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- [
- "da113a6f.191e88",
- "d69bb7b1.a0ff58"
- ]
- ]
- },
- {
- "id": "d69bb7b1.a0ff58",
- "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": 2953.687900543213,
- "y": 1230.750138759613,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- []
- ]
- },
- {
- "id": "da113a6f.191e88",
- "type": "execute",
- "name": "generate TERMINATEPLMNInfoList.ToNRCellCU",
- "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$prop.restapi.terminateSNSSAIEntry.ToNRCellCU.ransim-mounted`\"/>\n <parameter name=\"outputPath\" value=\"tmp.deleteSNSSAIListEntry.url\"/>\n <parameter name=\"target\" value=\"{idNearRTRIC}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.nearRTRICId`\"/>",
- "comments": "",
- "outputs": 1,
- "x": 3009.6875,
- "y": 1177.7499451637268,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- []
- ]
- },
- {
- "id": "c16d1d9c.0dbf4",
- "type": "execute",
- "name": "populate mountName",
- "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$tmp.deletePLMNInfo-CUUP.url`\"/>\n <parameter name=\"outputPath\" value=\"tmp.deletePLMNInfo-CUUP.url\"/>\n <parameter name=\"target\" value=\"{mountName}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.idGNBCUUPFunction`\"/>",
- "comments": "",
- "outputs": 1,
- "x": 2780.187484741211,
- "y": 2872.750349521637,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- []
- ]
- },
- {
- "id": "7b64d6c0.b69498",
- "type": "execute",
- "name": "generate terminatePLMNInfoList.TogNBCUUP",
- "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$prop.restapi.terminateSNSSAIEntry.ToCUUP.ransim-mounted`\"/>\n <parameter name=\"outputPath\" value=\"tmp.deletePLMNInfo-CUUP.url\"/>\n <parameter name=\"target\" value=\"{idNearRTRIC}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.nearRTRICId`\"/>",
- "comments": "",
- "outputs": 1,
- "x": 2854.1871948242188,
- "y": 2821.7501034736633,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- []
- ]
- },
- {
- "id": "8d00366e.864018",
- "type": "block",
- "name": "ransim URL",
- "xml": "<block atomic='true'>",
- "atomic": "true",
- "comments": "",
- "outputs": 1,
- "x": 2534.1871490478516,
- "y": 2859.7500948905945,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- [
- "7b64d6c0.b69498",
- "c16d1d9c.0dbf4"
- ]
- ]
- },
- {
- "id": "e0a16e2d.ab49b",
- "type": "block",
- "name": "ransim URL",
- "xml": "<block atomic='true'>",
- "atomic": "true",
- "comments": "",
- "outputs": 1,
- "x": 2045.1874504089355,
- "y": 3303.749952316284,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- [
- "64a33c12.a00234",
- "36d41966.753e66"
- ]
- ]
- },
- {
- "id": "64a33c12.a00234",
- "type": "execute",
- "name": "fetch RRMPolicyRatio.TogNBCUUP",
- "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$prop.restapi.RRMPolicyRatioEntry.ToGNBCUUP.ransim-mounted`\"/>\n <parameter name=\"outputPath\" value=\"tmp.getRRMPolicyRatio-CUUP.url\"/>\n <parameter name=\"target\" value=\"{idNearRTRIC}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.nearRTRICId`\"/>",
- "comments": "",
- "outputs": 1,
- "x": 2312.187454223633,
- "y": 3236.74995136261,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- []
- ]
- },
- {
- "id": "36d41966.753e66",
- "type": "execute",
- "name": "populate mountName",
- "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$tmp.getRRMPolicyRatio-CUUP.url`\"/>\n <parameter name=\"outputPath\" value=\"tmp.getRRMPolicyRatio-CUUP.url\"/>\n <parameter name=\"target\" value=\"{mountName}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.idGNBCUUPFunction`\"/>",
- "comments": "",
- "outputs": 1,
- "x": 2286.1876487731934,
- "y": 3275.750147819519,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- []
- ]
- },
- {
- "id": "2a1244f1.a07f1c",
- "type": "outcome",
- "name": "Mounted",
- "xml": "<outcome value='true'>\n",
- "comments": "",
- "outputs": 1,
- "x": 1836.6874465942383,
- "y": 3309.7499532699585,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- [
- "e0a16e2d.ab49b"
- ]
- ]
- },
- {
- "id": "cd7be5a3.adf0c8",
- "type": "block",
- "name": "ransim URL",
- "xml": "<block atomic='true'>",
- "atomic": "true",
- "comments": "",
- "outputs": 1,
- "x": 3444.687469482422,
- "y": 4642.750006198883,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- [
- "20e0658f.f28e4a",
- "76804136.c0ef7"
- ]
- ]
- },
- {
- "id": "20e0658f.f28e4a",
- "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.terminateSNSSAIEntry.ToNRCellDU.ransim-mounted`\"/>\n <parameter name=\"outputPath\" value=\"tmp.deletePLMNInfoListEntry-cellDU.url\"/>\n <parameter name=\"target\" value=\"{idNearRTRIC}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.nearRTRICId`\"/>",
- "comments": "",
- "outputs": 1,
- "x": 3751.6875,
- "y": 4612.749945163727,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- []
- ]
- },
- {
- "id": "76804136.c0ef7",
- "type": "execute",
- "name": "populate mountName",
- "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$tmp.deletePLMNInfoListEntry-cellDU.url`\"/>\n <parameter name=\"outputPath\" value=\"tmp.deletePLMNInfoListEntry-cellDU.url\"/>\n <parameter name=\"target\" value=\"{mountName}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.GNBDUId`\"/>",
- "comments": "",
- "outputs": 1,
- "x": 3695.687900543213,
- "y": 4665.750138759613,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- []
- ]
- },
- {
- "id": "5d7d6216.dd5d9c",
- "type": "outcome",
- "name": "Mounted",
- "xml": "<outcome value='true'>\n",
- "comments": "",
- "outputs": 1,
- "x": 3335.4374198913574,
- "y": 5332.749981880188,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- [
- "79d9f2a4.cfaedc"
- ]
- ]
- },
- {
- "id": "79d9f2a4.cfaedc",
- "type": "block",
- "name": "ransim URL",
- "xml": "<block atomic='true'>",
- "atomic": "true",
- "comments": "",
- "outputs": 1,
- "x": 3496.437812805176,
- "y": 5388.999592781067,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- [
- "4ed4aad5.917ba4",
- "fcafc397.48512"
- ]
- ]
- },
- {
- "id": "4ed4aad5.917ba4",
- "type": "execute",
- "name": "generate getRRMPolicyRatio.ToNRCellDU",
- "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$prop.restapi.RRMPolicyRatioEntry.ToGNBDU.ransim-mounted`\"/>\n <parameter name=\"outputPath\" value=\"tmp.getRRMPolicyRatio-gNBDU.url\"/>\n <parameter name=\"target\" value=\"{idNearRTRIC}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.nearRTRICId`\"/>",
- "comments": "",
- "outputs": 1,
- "x": 3746.4378204345703,
- "y": 5332.999591827393,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- []
- ]
- },
- {
- "id": "fcafc397.48512",
- "type": "execute",
- "name": "populate mountName",
- "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$tmp.getRRMPolicyRatio-gNBDU.url`\"/>\n <parameter name=\"outputPath\" value=\"tmp.getRRMPolicyRatio-gNBDU.url\"/>\n <parameter name=\"target\" value=\"{mountName}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.GNBDUId`\"/>",
- "comments": "",
- "outputs": 1,
- "x": 3737.437812805176,
- "y": 5373.999983787537,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- []
- ]
- },
- {
- "id": "a57a302e.5c86a",
+ "id": "238e69cb.6016d6",
"type": "comment",
"name": "terminateRANSliceInstance/instantiateRANSliceModifyDeallocate",
"info": "",
"comments": "",
- "x": 797.4374980926514,
- "y": 98.00000619888306,
- "z": "7dbbf2af.ccfd8c",
- "wires": []
- },
- {
- "id": "b67e87df.a032b8",
- "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/terminateRANSlice.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"RPC to handle terminateRANSlice.: \"/>\n<parameter name=\"field2\" value=\"`$terminate-r-a-n-slice-instance-input.action`\"/>\n<parameter name=\"field3\" value=\"`$terminate-r-a-n-slice-instance-input.common-header.timestamp`\"/>\n<parameter name=\"field4\" value=\"`$terminate-r-a-n-slice-instance-input.common-header.request-id`\"/>\n<parameter name=\"field5\" value=\"`$terminate-r-a-n-slice-instance-input.common-header.originator-id`\"/>\n<parameter name=\"field6\" value=\"RPC Payload String \"/>\n<parameter name=\"field7\" value=\"`$terminate-r-a-n-slice-instance-input.payload`\"/>",
- "comments": "",
- "outputs": 1,
- "x": 497.6874771118164,
- "y": 135.24999570846558,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- []
- ]
- },
- {
- "id": "f66621ca.ced9",
- "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 terminateRANSice RPC' />",
- "comments": "",
- "x": 603.6872329711914,
- "y": 189.250009059906,
- "z": "7dbbf2af.ccfd8c",
- "wires": []
- },
- {
- "id": "5f4a0c3f.45ca24",
- "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-context.log' />\n\n\n",
- "comments": "",
- "outputs": 1,
- "x": 638.6871948242188,
- "y": 333.2395496368408,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- []
- ]
- },
- {
- "id": "a69df01f.bc74e",
- "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": 658.6871795654297,
- "y": 374.24991512298584,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- []
- ]
- },
- {
- "id": "45d0c578.c8ba6c",
- "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/terminateRANSlice.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": 669.6872482299805,
- "y": 443.9999966621399,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- []
- ]
- },
- {
- "id": "b34924a0.5577b8",
- "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=\"`$tmp.sliceprofileid`\"/>",
- "comments": "",
- "outputs": 1,
- "x": 594.1874618530273,
- "y": 662.7500314712524,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- []
- ]
- },
- {
- "id": "163035c2.3d2eba",
- "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/terminateRANSlice.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": 555.1875,
- "y": 694.5000629425049,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- []
- ]
- },
- {
- "id": "9f643c74.9b9b1",
- "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": 595.1875152587891,
- "y": 736.7500476837158,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- []
- ]
- },
- {
- "id": "aa19d446.f11918",
- "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": 544.4375152587891,
- "y": 788.5000796318054,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- []
- ]
- },
- {
- "id": "9086874c.666548",
- "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/terminateRANSlice.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": 502.1810607910156,
- "y": 909.4935817718506,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- []
- ]
- },
- {
- "id": "24f3bd47.aa5b72",
- "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": 2084.7151641845703,
- "y": 605.2221875190735,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- []
- ]
- },
- {
- "id": "46c85195.a22de",
- "type": "for",
- "name": "for each rrmpolicyMember",
- "xml": "<for index='idcu-rrm1' start='0' end='`$tmp.NRCellCURRMPolicyMembersLength`' >\n",
- "comments": "",
- "outputs": 1,
- "x": 2553.6872367858887,
- "y": 2318.833152294159,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- [
- "18267cf5.231bd3"
- ]
- ]
- },
- {
- "id": "18267cf5.231bd3",
- "type": "block",
- "name": "block : atomic",
- "xml": "<block atomic='true'>",
- "atomic": "true",
- "comments": "",
- "outputs": 1,
- "x": 2783.354232788086,
- "y": 2318.944284915924,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- [
- "bb3793cb.f7ec2",
- "96ae15b5.89b348",
- "ef839ecd.5091a",
- "df594b4d.0a9fe8",
- "160d644e.9945bc"
- ]
- ]
- },
- {
- "id": "bb3793cb.f7ec2",
- "type": "switchNode",
- "name": "if length > 0 ",
- "xml": "<switch test='`$tmp.NRCellCURRMPolicyMembersLength > 0`'>\n\n \n",
- "comments": "",
- "outputs": 1,
- "x": 2922.521064758301,
- "y": 2232.083089351654,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- [
- "982ada76.de9ef8",
- "aeda2bf5.fb0cf8"
- ]
- ]
- },
- {
- "id": "982ada76.de9ef8",
- "type": "success",
- "name": "success",
- "xml": "<outcome value='true'>\n",
- "comments": "",
- "outputs": 1,
- "x": 3074.1875381469727,
- "y": 2206.6385712623596,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- [
- "b8637337.43f2d"
- ]
- ]
- },
- {
- "id": "b8637337.43f2d",
- "type": "block",
- "name": "block : atomic",
- "xml": "<block atomic='true'>",
- "atomic": "true",
- "comments": "",
- "outputs": 1,
- "x": 3240.8539390563965,
- "y": 2207.6389470100403,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- [
- "19e44a74.420226"
- ]
- ]
- },
- {
- "id": "19e44a74.420226",
- "type": "switchNode",
- "name": "ransim mounted",
- "xml": "<switch test='`$prop.ransim-mounted`'>\n",
- "comments": "",
- "outputs": 1,
- "x": 3088.631820678711,
- "y": 2086.527682542801,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- [
- "c68e98ce.4d53f8",
- "c240a23a.91fd6"
- ]
- ]
- },
- {
- "id": "c68e98ce.4d53f8",
- "type": "outcome",
- "name": "Not Mounted",
- "xml": "<outcome value='false'>\n",
- "comments": "",
- "outputs": 1,
- "x": 3331.965560913086,
- "y": 2102.4163613319397,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- [
- "29366a5c.c76f86"
- ]
- ]
- },
- {
- "id": "c240a23a.91fd6",
- "type": "outcome",
- "name": "Mounted",
- "xml": "<outcome value='true'>\n",
- "comments": "",
- "outputs": 1,
- "x": 3322.809070587158,
- "y": 2142.8606448173523,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- [
- "4d82494e.9c66e8"
- ]
- ]
- },
- {
- "id": "29366a5c.c76f86",
- "type": "block",
- "name": "block : atomic",
- "xml": "<block atomic='true'>",
- "atomic": "true",
- "comments": "",
- "outputs": 1,
- "x": 3513.3539810180664,
- "y": 2103.74996137619,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- [
- "834ea9d0.722278"
- ]
- ]
- },
- {
- "id": "4d82494e.9c66e8",
- "type": "block",
- "name": "block : atomic",
- "xml": "<block atomic='true'>",
- "atomic": "true",
- "comments": "",
- "outputs": 1,
- "x": 3504.465057373047,
- "y": 2145.971999645233,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- [
- "2702afd4.754d7",
- "730c5daf.0d06d4"
- ]
- ]
- },
- {
- "id": "834ea9d0.722278",
- "type": "execute",
- "name": "delete RRMPolicyRatio NRCellCU - URL",
- "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$prop.restapi.removeRRMPolicyRatio.ToNRCellCU`\"/>\n <parameter name=\"outputPath\" value=\"tmp.deleteRRMPolicyRatio.url\"/>\n <parameter name=\"target\" value=\"{idNearRTRIC}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.nearRTRICId`\"/>\n",
- "comments": "",
- "outputs": 1,
- "x": 3798.631690979004,
- "y": 2100.9722390174866,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- []
- ]
- },
- {
- "id": "2702afd4.754d7",
- "type": "execute",
- "name": "generate deleteRRMPolicyRatio.ToNRCellCU URL",
- "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$prop.restapi.removeRRMPolicyRatio.ToNRCellCU.ransim-mounted`\"/>\n <parameter name=\"outputPath\" value=\"tmp.deleteRRMPolicyRatio.url\"/>\n <parameter name=\"target\" value=\"{idNearRTRIC}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.nearRTRICId`\"/>",
- "comments": "",
- "outputs": 1,
- "x": 3809.742950439453,
- "y": 2144.305600643158,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- []
- ]
- },
- {
- "id": "730c5daf.0d06d4",
- "type": "execute",
- "name": "populate mountName",
- "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$tmp.deleteRRMPolicyRatio.url`\"/>\n <parameter name=\"outputPath\" value=\"tmp.deleteRRMPolicyRatio.url\"/>\n <parameter name=\"target\" value=\"{mountName}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.CUCPName`\"/>",
- "comments": "",
- "outputs": 1,
- "x": 3734.187171936035,
- "y": 2179.8610825538635,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- []
- ]
- },
- {
- "id": "aeda2bf5.fb0cf8",
- "type": "failure",
- "name": "failure",
- "xml": "<outcome value='false'>\n",
- "comments": "",
- "outputs": 1,
- "x": 3077.7985229492188,
- "y": 2260.9721207618713,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- [
- "5a2fc110.99836"
- ]
- ]
- },
- {
- "id": "5a2fc110.99836",
- "type": "block",
- "name": "block : atomic",
- "xml": "<block atomic='true'>",
- "atomic": "true",
- "comments": "",
- "outputs": 1,
- "x": 3263.465606689453,
- "y": 2249.3054394721985,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- [
- "6f86a737.76e898",
- "eeec7bb6.9b2208"
- ]
- ]
- },
- {
- "id": "6f86a737.76e898",
- "type": "set",
- "name": "Read RRMPolicyMember-sNSSA",
- "xml": "<set>\n<parameter name='tmp.RRMPolicyMember_sNSSAI' value=\"`'$get-rrmpolicyratio-response.attributes.RRMPolicyRatio['+ $idcu-rrm+'].attributes.rRMPolicyMemberList['+ $idcu-rrm1 +'].sNSSAI'`\" />",
- "comments": "",
- "x": 3555.85457611084,
- "y": 2213.194752216339,
- "z": "7dbbf2af.ccfd8c",
- "wires": []
- },
- {
- "id": "eeec7bb6.9b2208",
- "type": "switchNode",
- "name": "find matching RRMPolicyMember",
- "xml": "<switch test='`$tmp.RRMPolicyMember_sNSSAI==$tmp.sNSSAI`'>\n",
- "comments": "",
- "outputs": 1,
- "x": 3554.7430114746094,
- "y": 2253.1942467689514,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- [
- "9e7e603e.8b7a"
- ]
- ]
- },
- {
- "id": "9e7e603e.8b7a",
- "type": "success",
- "name": "success",
- "xml": "<outcome value='success'>\n",
- "comments": "",
- "outputs": 1,
- "x": 3785.5763549804688,
- "y": 2257.6386246681213,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- [
- "fdedad1b.01304"
- ]
- ]
- },
- {
- "id": "fdedad1b.01304",
- "type": "block",
- "name": "block : atomic",
- "xml": "<block atomic='true'>",
- "atomic": "true",
- "comments": "",
- "outputs": 1,
- "x": 4009.1871948242188,
- "y": 2254.3053727149963,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- [
- "f7580f29.a08fe",
- "10312f77.944571",
- "53b3c677.c12258"
- ]
- ]
- },
- {
- "id": "f7580f29.a08fe",
- "type": "set",
- "name": "Read RRMPolicyMember-id",
- "xml": "<set>\n<parameter name='tmp.RRMPolicyMember_id' value=\"`'$get-rrmpolicyratio-response.attributes.RRMPolicyRatio['+ $idcu-rrm+'].attributes.rRMPolicyMemberList['+ $idcu-rrm1 +'].idx'`\" />",
- "comments": "",
- "x": 4274.853927612305,
- "y": 2222.0832591056824,
- "z": "7dbbf2af.ccfd8c",
- "wires": []
- },
- {
- "id": "5c3b4ead.c198a",
- "type": "execute",
- "name": "generate deleteRRMPolicyMember.ToNRCellCU URL",
- "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$prop.restapi.removeRRMPolicyMember.ToNRCellCU`\"/>\n <parameter name=\"outputPath\" value=\"tmp.deleteRRMPolicyRatio.url\"/>\n <parameter name=\"target\" value=\"{idNearRTRIC}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.nearRTRICId`\"/>",
- "comments": "",
- "outputs": 1,
- "x": 4804.2978439331055,
- "y": 2314.305458545685,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- []
- ]
- },
- {
- "id": "10312f77.944571",
- "type": "switchNode",
- "name": "ransim mounted",
- "xml": "<switch test='`$prop.ransim-mounted`'>\n",
- "comments": "",
- "outputs": 1,
- "x": 4232.0759353637695,
- "y": 2317.6389241218567,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- [
- "5206463c.c5fd78",
- "e910ab56.66b578"
- ]
- ]
- },
- {
- "id": "5206463c.c5fd78",
- "type": "outcome",
- "name": "Not Mounted",
- "xml": "<outcome value='false'>\n",
- "comments": "",
- "outputs": 1,
- "x": 4475.409996032715,
- "y": 2316.860948085785,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- [
- "5c3b4ead.c198a"
- ]
- ]
- },
- {
- "id": "e910ab56.66b578",
- "type": "outcome",
- "name": "Mounted",
- "xml": "<outcome value='true'>\n",
- "comments": "",
- "outputs": 1,
- "x": 4466.2534103393555,
- "y": 2368.4163422584534,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- [
- "f3c39e77.2ae7b"
- ]
- ]
- },
- {
- "id": "700bf196.ca76a",
- "type": "execute",
- "name": "generate deleteRRMPolicyRatio.ToNRCellCU URL",
- "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$prop.restapi.removeRRMPolicyMember.ToNRCellCU.ransim-mounted`\"/>\n <parameter name=\"outputPath\" value=\"tmp.deleteRRMPolicyRatio.url\"/>\n <parameter name=\"target\" value=\"{idNearRTRIC}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.nearRTRICId`\"/>",
- "comments": "",
- "outputs": 1,
- "x": 4933.464973449707,
- "y": 2359.8613839149475,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- []
- ]
- },
- {
- "id": "b8475e43.0048c",
- "type": "execute",
- "name": "populate mountName",
- "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$tmp.deleteRRMPolicyRatio.url`\"/>\n <parameter name=\"outputPath\" value=\"tmp.deleteRRMPolicyRatio.url\"/>\n <parameter name=\"target\" value=\"{mountName}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.CUCPName`\"/>",
- "comments": "",
- "outputs": 1,
- "x": 4853.464691162109,
- "y": 2418.7498002052307,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- []
- ]
- },
- {
- "id": "f3c39e77.2ae7b",
- "type": "block",
- "name": "block : atomic",
- "xml": "<block atomic='true'>",
- "atomic": "true",
- "comments": "",
- "outputs": 1,
- "x": 4633.1872634887695,
- "y": 2365.9721760749817,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- [
- "700bf196.ca76a",
- "b8475e43.0048c"
- ]
- ]
- },
- {
- "id": "f1b67974.7382f8",
- "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/terminateRANSlice.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"Delete RRMPolicy URL - \"/>\n<parameter name=\"field2\" value=\"`$tmp.deleteRRMPolicyRatio.url`\"/>\n<parameter name=\"field3\" value=\"RRMPolicyRatio id\"/>\n<parameter name=\"field4\" value=\"`$tmp.RRMPolicyRatio_id`\"/>\n",
- "comments": "",
- "outputs": 1,
- "x": 2502.7984046936035,
- "y": 2375.139145374298,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- []
- ]
- },
- {
- "id": "a1342146.e25a6",
- "type": "execute",
- "name": "Terminate NRCellCU - RRMPolicyRatio",
- "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"restapiUrl\" value=\"`$prop.controller.url + $tmp.deleteRRMPolicyRatio.url`\"/>\n<parameter name=\"restapiUser\" value=\"`$prop.controller.user`\" />\n<parameter name=\"restapiPassword\" value=\"`$prop.controller.pwd`\"/>\n<parameter name=\"httpMethod\" value=\"DELETE\"/>\n<parameter name=\"responsePrefix\" value=\"delete-cellCU-RRMPolicyRatio-response\"/>\n<parameter name='contentType' value='application/json' /> \n<parameter name='format' value='json' />",
- "comments": "",
- "outputs": 1,
- "x": 2597.576202392578,
- "y": 2417.1389622688293,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- [
- "e542396b.9b5028",
- "fa583439.c7df88"
- ]
- ]
- },
- {
- "id": "e542396b.9b5028",
- "type": "success",
- "name": "success",
- "xml": "<outcome value='success'>\n",
- "comments": "",
- "outputs": 1,
- "x": 2883.3263053894043,
- "y": 2462.888931751251,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- [
- "150338a3.d501d7"
- ]
- ]
- },
- {
- "id": "150338a3.d501d7",
- "type": "block",
- "name": "block : atomic",
- "xml": "<block atomic='true'>",
- "atomic": "true",
- "comments": "",
- "outputs": 1,
- "x": 3086.8263626098633,
- "y": 2465.3889327049255,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- [
- "c02aae61.17846"
- ]
- ]
- },
- {
- "id": "c02aae61.17846",
- "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/terminateRANSlice.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"Successfully Deleted - cellCU RRMpolicyRatio/RRMPolicyMember\"/>",
- "comments": "",
- "outputs": 1,
- "x": 3314.3261222839355,
- "y": 2372.639144420624,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- []
- ]
- },
- {
- "id": "5994a51a.211e4c",
- "type": "set",
- "name": "set",
- "xml": "<set>\n<parameter name='error-code' value='500'/>\n<parameter name='error-message' value='Error Removing cellCU RRMPolicyRatio. Aborting RPC executiopn'/>",
- "comments": "",
- "x": 3327.5761108398438,
- "y": 2415.6388688087463,
- "z": "7dbbf2af.ccfd8c",
- "wires": []
- },
- {
- "id": "74d8f1db.5893e",
- "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 removing NRCellDU - RRMPolicyRAtio. Aborting RPC executiopn'/>",
- "comments": "",
- "x": 3332.5759887695312,
- "y": 2510.6389298439026,
- "z": "7dbbf2af.ccfd8c",
- "wires": []
- },
- {
- "id": "9261ad7e.c97c5",
- "type": "block",
- "name": "block : atomic",
- "xml": "<block atomic='true'>",
- "atomic": "true",
- "comments": "",
- "outputs": 1,
- "x": 3083.826789855957,
- "y": 2517.138964176178,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- [
- "74d8f1db.5893e",
- "5994a51a.211e4c",
- "96bc23d2.c6dae"
- ]
- ]
- },
- {
- "id": "fa583439.c7df88",
- "type": "failure",
- "name": "failure",
- "xml": "<outcome value='failure'>\n",
- "comments": "",
- "outputs": 1,
- "x": 2878.5763053894043,
- "y": 2502.138964176178,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- [
- "9261ad7e.c97c5"
- ]
- ]
- },
- {
- "id": "53b3c677.c12258",
- "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/terminateRANSlice.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"RRMPolicyMember id - \"/>\n<parameter name=\"field2\" value=\"`$tmp.RRMPolicyMember_id`\"/>\n",
- "comments": "",
- "outputs": 1,
- "x": 4226.513854980469,
- "y": 2269.9652848243713,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- []
- ]
- },
- {
- "id": "1f8dc56d.ad39bb",
- "type": "execute",
- "name": "prepare sNSSAI",
- "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$tmp.deleteSNSSAIListEntry.url`\"/>\n <parameter name=\"outputPath\" value=\"tmp.deleteSNSSAIListEntry.url\"/>\n <parameter name=\"target\" value=\"{sNssai}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.sNSSAI`\"/>",
- "comments": "",
- "outputs": 1,
- "x": 2292.076416015625,
- "y": 1364.152855873108,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- []
- ]
- },
- {
- "id": "96ae15b5.89b348",
- "type": "execute",
- "name": "prepare idGNBCUCPFunction",
- "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$tmp.deleteRRMPolicyRatio.url`\"/>\n <parameter name=\"outputPath\" value=\"tmp.deleteRRMPolicyRatio.url\"/>\n <parameter name=\"target\" value=\"{idGNBCUCPFunction}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.CUCPName`\"/>\n",
- "comments": "",
- "outputs": 1,
- "x": 3040.2639770507812,
- "y": 2311.2153458595276,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- []
- ]
- },
- {
- "id": "ef839ecd.5091a",
- "type": "execute",
- "name": "prepare idNRCellCU",
- "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$tmp.deleteRRMPolicyRatio.url`\"/>\n <parameter name=\"outputPath\" value=\"tmp.deleteRRMPolicyRatio.url\"/>\n <parameter name=\"target\" value=\"{idNRCellCU}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.cellCULocalId`\"/>\n",
- "comments": "",
- "outputs": 1,
- "x": 3012.763916015625,
- "y": 2344.465316295624,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- []
- ]
- },
- {
- "id": "df594b4d.0a9fe8",
- "type": "execute",
- "name": "prepare RRMPolicyRatio id",
- "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$tmp.deleteRRMPolicyRatio.url`\"/>\n <parameter name=\"outputPath\" value=\"tmp.deleteRRMPolicyRatio.url\"/>\n <parameter name=\"target\" value=\"{id}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.RRMPolicyRatio_id`\"/>\n",
- "comments": "",
- "outputs": 1,
- "x": 3036.201858520508,
- "y": 2379.027847766876,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- []
- ]
- },
- {
- "id": "160d644e.9945bc",
- "type": "execute",
- "name": "prepare RRMPolicyMember id",
- "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$tmp.getRRMPolicyRatio.url`\"/>\n <parameter name=\"outputPath\" value=\"tmp.getRRMPolicyRatio.url\"/>\n <parameter name=\"target\" value=\"{idx}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.RRMPolicyMember_id`\"/>\n",
- "comments": "",
- "outputs": 1,
- "x": 3043.701416015625,
- "y": 2414.777817249298,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- []
- ]
- },
- {
- "id": "1785991.56ac167",
- "type": "execute",
- "name": "read NFType",
- "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'>\n\t<parameter name='outputPath' value='tmp.cucpNFType' />\n\t<parameter name='source' value=\"`'getNFNSSIRIC-configdb-response.['+ $idy +'].gNBCUCPList['+ $idz +'].nFType'`\" />",
- "comments": "",
- "outputs": 1,
- "x": 2294.951416015625,
- "y": 1128.8403520584106,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- []
- ]
- },
- {
- "id": "8fa4df32.142dc",
- "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.configDBSNSSAI1' />\n <parameter name='source' value=\"`'getNFNSSIRIC-configdb-response.['+ $idy +'].gNBCUUPList['+ $id-cuup +'].pLMNInfoList['+ $id-plmn +'].sNSSAI['+ $id-snssai +'].sNSSAI'`\" />",
- "comments": "",
- "outputs": 1,
- "x": 1569.0766296386719,
- "y": 2653.9726486206055,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- []
- ]
- },
- {
- "id": "b1adda7f.308948",
- "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/terminateRANSlice.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"sNSSAI - getNFNSSIRIC-configdb-response\"/>\n<parameter name=\"field2\" value=\"`$tmp.configDBSNSSAI1`\"/>\n<parameter name=\"field3\" value=\"sNSSAI from Request\"/>\n<parameter name=\"field4\" value=\"`$tmp.sNSSAI`\"/>\n\n",
- "comments": "",
- "outputs": 1,
- "x": 1423.0765533447266,
- "y": 2703.97274684906,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- []
- ]
- },
- {
- "id": "3cc00a06.5560b6",
- "type": "switchNode",
- "name": "is NSSAI exists",
- "xml": "<switch test='`$tmp.configDBSNSSAI1 == $tmp.sNSSAI`'>\n",
- "comments": "",
- "outputs": 1,
- "x": 1429.9657135009766,
- "y": 2747.5276308059692,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- [
- "e54d6cd0.5ca6b",
- "a7793847.31e9f8"
- ]
- ]
- },
- {
- "id": "e54d6cd0.5ca6b",
- "type": "outcome",
- "name": "True",
- "xml": "<outcome value='true'>\n",
- "comments": "",
- "outputs": 1,
- "x": 1603.1874923706055,
- "y": 2701.75048160553,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- [
- "a0ddd52c.fd3058"
- ]
- ]
- },
- {
- "id": "79470742.1ad3c8",
- "type": "execute",
- "name": "prepare mcc",
- "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$tmp.deletePLMNInfo-CUUP.url`\"/>\n <parameter name=\"outputPath\" value=\"tmp.deletePLMNInfo-CUUP.url\"/>\n <parameter name=\"target\" value=\"{mcc}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.mcc`\"/>\n ",
- "comments": "",
- "outputs": 1,
- "x": 1965.1874465942383,
- "y": 2852.750337600708,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- []
- ]
- },
- {
- "id": "c328d0be.82c19",
- "type": "execute",
- "name": "prepare mnc",
- "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$tmp.deletePLMNInfo-CUUP.url`\"/>\n <parameter name=\"outputPath\" value=\"tmp.deletePLMNInfo-CUUP.url\"/>\n <parameter name=\"target\" value=\"{mnc}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.mnc`\"/>",
- "comments": "",
- "outputs": 1,
- "x": 1970.6876373291016,
- "y": 2888.250533103943,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- []
- ]
- },
- {
- "id": "f992d688.012618",
- "type": "execute",
- "name": "prepare sNSSAI",
- "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$tmp.deletePLMNInfo-CUUP.url`\"/>\n <parameter name=\"outputPath\" value=\"tmp.deletePLMNInfo-CUUP.url\"/>\n <parameter name=\"target\" value=\"{sNssai}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.sNSSAI`\"/>",
- "comments": "",
- "outputs": 1,
- "x": 1959.3266067504883,
- "y": 2923.402877807617,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- []
- ]
- },
- {
- "id": "9c7e75.4c2dd188",
- "type": "execute",
- "name": "terminate sNNSAI - CUUP",
- "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"restapiUrl\" value=\"`$prop.controller.url + $tmp.deletePLMNInfo-CUUP.url`\"/>\n<parameter name=\"restapiUser\" value=\"`$prop.controller.user`\" />\n<parameter name=\"restapiPassword\" value=\"`$prop.controller.pwd`\"/>\n<parameter name=\"httpMethod\" value=\"DELETE\"/>\n<parameter name=\"responsePrefix\" value=\"delete-CUUP-sNSSAI-response\"/>\n<parameter name='contentType' value='application/json' /> \n<parameter name='format' value='json' />",
- "comments": "",
- "outputs": 1,
- "x": 1971.9376373291016,
- "y": 2961.7503385543823,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- [
- "f6f2ec79.71ec3",
- "68b90674.2ffc88"
- ]
- ]
- },
- {
- "id": "13823fd6.0655",
- "type": "success",
- "name": "success",
- "xml": "<outcome value='success'>\n",
- "comments": "",
- "outputs": 1,
- "x": 2394.8540077209473,
- "y": 3704.0839433670044,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- [
- "86b69dff.b5e4d"
- ]
- ]
- },
- {
- "id": "ee8bcbfb.3c7bd8",
- "type": "for",
- "name": "for each rrmpolicyMember",
- "xml": "<for index='idcu-rrm2' start='0' end='`$tmp.CUUPRRMPolicyMembersLength`' >\n",
- "comments": "",
- "outputs": 1,
- "x": 2087.159713745117,
- "y": 3640.5277891159058,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- [
- "1890ffcc.1a59b"
- ]
- ]
- },
- {
- "id": "1890ffcc.1a59b",
- "type": "block",
- "name": "block : atomic",
- "xml": "<block atomic='true'>",
- "atomic": "true",
- "comments": "",
- "outputs": 1,
- "x": 2312.826370239258,
- "y": 3530.6390676498413,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- [
- "a1c228b0.110cf8",
- "1f148330.077d3d",
- "d6e8e92e.fa5f08",
- "f823ca63.c76588",
- "8e2e4de4.ab048"
- ]
- ]
- },
- {
- "id": "a1c228b0.110cf8",
- "type": "switchNode",
- "name": "if length > 0 ",
- "xml": "<switch test='`$tmp.CUUPRRMPolicyMembersLength > 0`'>\n \n",
- "comments": "",
- "outputs": 1,
- "x": 2450.993362426758,
- "y": 3431.777889728546,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- [
- "10ff2554.4a5e3b",
- "50877e82.d4515"
- ]
- ]
- },
- {
- "id": "10ff2554.4a5e3b",
- "type": "success",
- "name": "True",
- "xml": "<outcome value='true'>\n",
- "comments": "",
- "outputs": 1,
- "x": 2599.659969329834,
- "y": 3386.3329663276672,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- [
- "9c8e172.e19f3e8"
- ]
- ]
- },
- {
- "id": "9c8e172.e19f3e8",
- "type": "block",
- "name": "block : atomic",
- "xml": "<block atomic='true'>",
- "atomic": "true",
- "comments": "",
- "outputs": 1,
- "x": 2759.3263206481934,
- "y": 3443.333549976349,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- [
- "67cca0fe.8f03e",
- "4aec1c37.d2ff24"
- ]
- ]
- },
- {
- "id": "67cca0fe.8f03e",
- "type": "switchNode",
- "name": "ransim mounted",
- "xml": "<switch test='`$prop.ransim-mounted`'>\n",
- "comments": "",
- "outputs": 1,
- "x": 2807.1044006347656,
- "y": 3259.222418308258,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- [
- "f8291b2c.62b258",
- "76a9d5d3.2199bc"
- ]
- ]
- },
- {
- "id": "f8291b2c.62b258",
- "type": "outcome",
- "name": "Not Mounted",
- "xml": "<outcome value='false'>\n",
- "comments": "",
- "outputs": 1,
- "x": 2850.437942504883,
- "y": 3338.1109642982483,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- [
- "5d9d17a6.dd9ee8"
- ]
- ]
- },
- {
- "id": "76a9d5d3.2199bc",
- "type": "outcome",
- "name": "Mounted",
- "xml": "<outcome value='true'>\n",
- "comments": "",
- "outputs": 1,
- "x": 2841.281452178955,
- "y": 3378.555247783661,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- [
- "7d11f4ac.cd34ac"
- ]
- ]
- },
- {
- "id": "5d9d17a6.dd9ee8",
- "type": "block",
- "name": "block : atomic",
- "xml": "<block atomic='true'>",
- "atomic": "true",
- "comments": "",
- "outputs": 1,
- "x": 3031.8263626098633,
- "y": 3339.444564342499,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- [
- "5076729c.ead31c",
- "202a446.1aab7bc",
- "114b3bf.98b33c4"
- ]
- ]
- },
- {
- "id": "7d11f4ac.cd34ac",
- "type": "block",
- "name": "block : atomic",
- "xml": "<block atomic='true'>",
- "atomic": "true",
- "comments": "",
- "outputs": 1,
- "x": 3022.9374389648438,
- "y": 3381.6666026115417,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- [
- "b7475b62.102488",
- "a6d2416e.3182b"
- ]
- ]
- },
- {
- "id": "202a446.1aab7bc",
- "type": "execute",
- "name": "delete RRMPolicyRatio CUUP- URL",
- "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$prop.restapi.removeRRMPolicyRatio.ToCUUP`\"/>\n <parameter name=\"outputPath\" value=\"tmp.deleteRRMPolicyRatio-CUUP.url\"/>\n <parameter name=\"target\" value=\"{idNearRTRIC}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.nearRTRICId`\"/>\n",
- "comments": "",
- "outputs": 1,
- "x": 3353.1039695739746,
- "y": 3238.667143344879,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- []
- ]
- },
- {
- "id": "b7475b62.102488",
- "type": "execute",
- "name": "generate deleteRRMPolicyRatio.ToNRCellCU URL",
- "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$prop.restapi.removeRRMPolicyRatio.ToCUUP.ransim-mounted`\"/>\n <parameter name=\"outputPath\" value=\"tmp.deleteRRMPolicyRatio-CUUP.url\"/>\n <parameter name=\"target\" value=\"{idNearRTRIC}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.nearRTRICId`\"/>",
- "comments": "",
- "outputs": 1,
- "x": 3328.21533203125,
- "y": 3380.0002036094666,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- []
- ]
- },
- {
- "id": "a6d2416e.3182b",
- "type": "execute",
- "name": "populate mountName",
- "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$tmp.deleteRRMPolicyRatio-CUUP.url`\"/>\n <parameter name=\"outputPath\" value=\"tmp.deleteRRMPolicyRatio-CUUP.url\"/>\n <parameter name=\"target\" value=\"{mountName}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.idGNBCUUPFunction`\"/>",
- "comments": "",
- "outputs": 1,
- "x": 3252.659553527832,
- "y": 3415.555685520172,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- []
- ]
- },
- {
- "id": "50877e82.d4515",
- "type": "failure",
- "name": "False",
- "xml": "<outcome value='false'>\n",
- "comments": "",
- "outputs": 1,
- "x": 2599.271099090576,
- "y": 3476.666952610016,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- [
- "53bdd94c.7d7d58"
- ]
- ]
- },
- {
- "id": "53bdd94c.7d7d58",
- "type": "block",
- "name": "block : atomic",
- "xml": "<block atomic='true'>",
- "atomic": "true",
- "comments": "",
- "outputs": 1,
- "x": 2781.93798828125,
- "y": 3485.000042438507,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- [
- "4541fc8d.b17394",
- "2d1f3c78.990674",
- "79670665.c5b0f8"
- ]
- ]
- },
- {
- "id": "4541fc8d.b17394",
- "type": "set",
- "name": "Read RRMPolicyMember-sNSSAI",
- "xml": "<set>\n<parameter name='tmp.CUUPRRMPolicyMember_sNSSAI' value=\"`'$get-rrmpolicyratio-cuup-response.attributes.RRMPolicyRatio['+ $idcuup-rrm+'].attributes.rRMPolicyMemberList['+ $idcu-rrm2 +'].sNSSAI'`\" />",
- "comments": "",
- "x": 3078.3269653320312,
- "y": 3482.8896079063416,
- "z": "7dbbf2af.ccfd8c",
- "wires": []
- },
- {
- "id": "2d1f3c78.990674",
- "type": "switchNode",
- "name": "find matching RRMPolicyMember",
- "xml": "<switch test='`$tmp.CUUPRRMPolicyMember_sNSSAI==$tmp.sNSSAI`'>\n",
- "comments": "",
- "outputs": 1,
- "x": 3073.21524810791,
- "y": 3525.889217853546,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- [
- "288eec82.77a1c4"
- ]
- ]
- },
- {
- "id": "288eec82.77a1c4",
- "type": "success",
- "name": "success",
- "xml": "<outcome value='success'>\n",
- "comments": "",
- "outputs": 1,
- "x": 3304.0487365722656,
- "y": 3493.33322763443,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- [
- "2cec80f.bb65a8"
- ]
- ]
- },
- {
- "id": "2cec80f.bb65a8",
- "type": "block",
- "name": "block : atomic",
- "xml": "<block atomic='true'>",
- "atomic": "true",
- "comments": "",
- "outputs": 1,
- "x": 3527.6595764160156,
- "y": 3489.999975681305,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- [
- "b9828127.cbde9",
- "680aaab6.fadde4",
- "8ab94664.5fec38"
- ]
- ]
- },
- {
- "id": "b9828127.cbde9",
- "type": "set",
- "name": "Read RRMPolicyMember-id",
- "xml": "<set>\n<parameter name='tmp.CUUPRRMPolicyMember_id' value=\"`'$get-rrmpolicyratio-cuup-response.attributes.RRMPolicyRatio['+ $idcuup-rrm+'].attributes.rRMPolicyMemberList['+ $idcu-rrm2 +'].idx'`\" />",
- "comments": "",
- "x": 3793.3263092041016,
- "y": 3457.777862071991,
- "z": "7dbbf2af.ccfd8c",
- "wires": []
- },
- {
- "id": "8ab94664.5fec38",
- "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/terminateRANSlice.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"RRMPolicyMember id - \"/>\n<parameter name=\"field2\" value=\"`$tmp.CUUPRRMPolicyMember_id`\"/>\n",
- "comments": "",
- "outputs": 1,
- "x": 3744.9862365722656,
- "y": 3505.65988779068,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- []
- ]
- },
- {
- "id": "680aaab6.fadde4",
- "type": "switchNode",
- "name": "ransim mounted",
- "xml": "<switch test='`$prop.ransim-mounted`'>\n",
- "comments": "",
- "outputs": 1,
- "x": 3750.5483169555664,
- "y": 3553.3335270881653,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- [
- "d898bdf.66a304",
- "500aaa6b.c368d4"
- ]
- ]
- },
- {
- "id": "d898bdf.66a304",
- "type": "outcome",
- "name": "Not Mounted",
- "xml": "<outcome value='false'>\n",
- "comments": "",
- "outputs": 1,
- "x": 3993.8823776245117,
- "y": 3552.5555510520935,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- [
- "93e4ad9d.3b614"
- ]
- ]
- },
- {
- "id": "500aaa6b.c368d4",
- "type": "outcome",
- "name": "Mounted",
- "xml": "<outcome value='true'>\n",
- "comments": "",
- "outputs": 1,
- "x": 3984.7257919311523,
- "y": 3604.110945224762,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- [
- "1409e1b0.bb052e"
- ]
- ]
- },
- {
- "id": "93e4ad9d.3b614",
- "type": "execute",
- "name": "generate deleteRRMPolicyMember.CUUP URL",
- "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$prop.restapi.removeRRMPolicyMember.ToCUUP`\"/>\n <parameter name=\"outputPath\" value=\"tmp.deleteRRMPolicyRatio-CUUP.url\"/>\n <parameter name=\"target\" value=\"{idNearRTRIC}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.nearRTRICId`\"/>",
- "comments": "",
- "outputs": 1,
- "x": 4322.770225524902,
- "y": 3550.0000615119934,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- []
- ]
- },
- {
- "id": "1409e1b0.bb052e",
- "type": "block",
- "name": "block : atomic",
- "xml": "<block atomic='true'>",
- "atomic": "true",
- "comments": "",
- "outputs": 1,
- "x": 4151.659645080566,
- "y": 3601.6667790412903,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- [
- "d61366a4.26bf58",
- "5e94e939.bd8928"
- ]
- ]
- },
- {
- "id": "d61366a4.26bf58",
- "type": "execute",
- "name": "generate deleteRRMPolicyRatio.ToNRCellCU URL",
- "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$prop.restapi.removeRRMPolicyMember.CUUP.ransim-mounted`\"/>\n <parameter name=\"outputPath\" value=\"tmp.deleteRRMPolicyRatio-CUUP.url\"/>\n <parameter name=\"target\" value=\"{idNearRTRIC}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.nearRTRICId`\"/>",
- "comments": "",
- "outputs": 1,
- "x": 4451.937355041504,
- "y": 3595.555986881256,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- []
- ]
- },
- {
- "id": "5e94e939.bd8928",
- "type": "execute",
- "name": "populate mountName",
- "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$tmp.deleteRRMPolicyRatio-CUUP.url`\"/>\n <parameter name=\"outputPath\" value=\"tmp.deleteRRMPolicyRatio-CUUP.url\"/>\n <parameter name=\"target\" value=\"{mountName}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.idGNBCUUPFunction`\"/>",
- "comments": "",
- "outputs": 1,
- "x": 4371.937072753906,
- "y": 3654.4444031715393,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- []
- ]
- },
- {
- "id": "1f148330.077d3d",
- "type": "execute",
- "name": "prepare idGNBCUUPFunction",
- "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$tmp.deleteRRMPolicyRatio-CUUP.url`\"/>\n <parameter name=\"outputPath\" value=\"tmp.deleteRRMPolicyRatio-CUUP.url\"/>\n <parameter name=\"target\" value=\"{idGNBCUUPFunction}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.idGNBCUUPFunction`\"/>\n",
- "comments": "",
- "outputs": 1,
- "x": 2545.4376068115234,
- "y": 3549.0003476142883,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- []
- ]
- },
- {
- "id": "d6e8e92e.fa5f08",
- "type": "execute",
- "name": "prepare RRMPolicyRatio id",
- "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$tmp.deleteRRMPolicyRatio-CUUP.url`\"/>\n <parameter name=\"outputPath\" value=\"tmp.deleteRRMPolicyRatio-CUUP.url\"/>\n <parameter name=\"target\" value=\"{id}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.CUUPRRMPolicyRatio_id`\"/>\n",
- "comments": "",
- "outputs": 1,
- "x": 2534.3754959106445,
- "y": 3581.8128480911255,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- []
- ]
- },
- {
- "id": "f823ca63.c76588",
- "type": "execute",
- "name": "prepare RRMPolicyMember id",
- "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$tmp.deleteRRMPolicyRatio-CUUP.url`\"/>\n <parameter name=\"outputPath\" value=\"tmp.deleteRRMPolicyRatio-CUUP.url\"/>\n <parameter name=\"target\" value=\"{idx}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.CUUPRRMPolicyMember_id`\"/>\n",
- "comments": "",
- "outputs": 1,
- "x": 2544.8751068115234,
- "y": 3618.5628490448,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- []
- ]
- },
- {
- "id": "f7776fb3.813fd",
- "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/terminateRANSlice.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"Delete RRMPolicy URL - \"/>\n<parameter name=\"field2\" value=\"`$tmp.deleteRRMPolicyRatio-CUUP.url`\"/>\n<parameter name=\"field3\" value=\"RRMPolicyRatio id\"/>\n<parameter name=\"field4\" value=\"`$tmp.CUUPRRMPolicyRatio_id`\"/>\n",
- "comments": "",
- "outputs": 1,
- "x": 2032.971824645996,
- "y": 3684.9242753982544,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- []
- ]
- },
- {
- "id": "b886c16f.ec3f9",
- "type": "execute",
- "name": "Terminate NRCellCU - RRMPolicyRatio",
- "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"restapiUrl\" value=\"`$prop.controller.url + $tmp.deleteRRMPolicyRatio-CUUP.url`\"/>\n<parameter name=\"restapiUser\" value=\"`$prop.controller.user`\" />\n<parameter name=\"restapiPassword\" value=\"`$prop.controller.pwd`\"/>\n<parameter name=\"httpMethod\" value=\"DELETE\"/>\n<parameter name=\"responsePrefix\" value=\"delete-CUUP-RRMPolicyRatio-response\"/>\n<parameter name='contentType' value='application/json' /> \n<parameter name='format' value='json' />",
- "comments": "",
- "outputs": 1,
- "x": 2109.749755859375,
- "y": 3730.923493385315,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- [
- "13823fd6.0655",
- "84ca50d3.1e31c"
- ]
- ]
- },
- {
- "id": "dd8a2b25.19ba28",
- "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": 2161.375198364258,
- "y": 4253.625456809998,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- []
- ]
- },
- {
- "id": "62d32210.5d22bc",
- "type": "for",
- "name": "foreach PLMNInfo",
- "xml": "<for index='id-duplmn' start='0' end='`$tmp.DUpLMNInfoList_length`' >\n",
- "comments": "",
- "outputs": 1,
- "x": 2204.708786010742,
- "y": 4370.625458717346,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- [
- "9dac9c85.ee826"
- ]
- ]
- },
- {
- "id": "57798dd0.ea3d04",
- "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-dusnssai +'].sNSSAI'`\" />",
- "comments": "",
- "outputs": 1,
- "x": 2826.2363815307617,
- "y": 4368.875456809998,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- []
- ]
- },
- {
- "id": "553c22c1.d7f38c",
- "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/terminateRANSlice.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": 2745.9862365722656,
- "y": 4410.8750677108765,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- []
- ]
- },
- {
- "id": "ab1def53.0564f",
- "type": "switchNode",
- "name": "is NSSAI exists",
- "xml": "<switch test='`$tmp.configDBSNSSAI-DU == $tmp.sNSSAI`'>\n",
- "comments": "",
- "outputs": 1,
- "x": 2744.125102996826,
- "y": 4467.180537223816,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- [
- "3ab2f389.ebcf4c"
- ]
- ]
- },
- {
- "id": "3ab2f389.ebcf4c",
- "type": "outcome",
- "name": "True",
- "xml": "<outcome value='true'>\n",
- "comments": "",
- "outputs": 1,
- "x": 2897.597370147705,
- "y": 4470.652802467346,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- [
- "19c1319d.1cd4ae"
- ]
- ]
- },
- {
- "id": "d0124a83.aa2ab8",
- "type": "execute",
- "name": "prepare sNSSAI",
- "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$tmp.deletePLMNInfoListEntry-cellDU.url`\"/>\n <parameter name=\"outputPath\" value=\"tmp.deletePLMNInfoListEntry-cellDU.url\"/>\n <parameter name=\"target\" value=\"{sNssai}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.sNSSAI`\"/>",
- "comments": "",
- "outputs": 1,
- "x": 3073.124969482422,
- "y": 4938.312506198883,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- []
- ]
- },
- {
- "id": "62ecc111.352e3",
- "type": "for",
- "name": "for each rrmpolicyMember",
- "xml": "<for index='iddu-rrm2' start='0' end='`$tmp.DURRMPolicyMembersLength`' >\n",
- "comments": "",
- "outputs": 1,
- "x": 3664.4096908569336,
- "y": 5704.215516090393,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- [
- "a044a425.d4a8f8"
- ]
- ]
- },
- {
- "id": "a044a425.d4a8f8",
- "type": "block",
- "name": "block : atomic",
- "xml": "<block atomic='true'>",
- "atomic": "true",
- "comments": "",
- "outputs": 1,
- "x": 3882.0764923095703,
- "y": 5703.326844215393,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- [
- "4c0eb91e.016be8",
- "66462011.f48f2",
- "9a8989c6.9de3f8",
- "5cd69f40.d5bb",
- "341237e5.667278"
- ]
- ]
- },
- {
- "id": "4c0eb91e.016be8",
- "type": "switchNode",
- "name": "if length > 0 ",
- "xml": "<switch test='`$tmp.DURRMPolicyMembersLength > 0`'>\n",
- "comments": "",
- "outputs": 1,
- "x": 4038.993606567383,
- "y": 5617.965374469757,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- [
- "f995b42b.c62888",
- "5850fe3f.e7ae9"
- ]
- ]
- },
- {
- "id": "f995b42b.c62888",
- "type": "success",
- "name": "success",
- "xml": "<outcome value='true'>\n",
- "comments": "",
- "outputs": 1,
- "x": 4181.909862518311,
- "y": 5576.020590305328,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- [
- "8ab6b27e.d114c"
- ]
- ]
- },
- {
- "id": "8ab6b27e.d114c",
- "type": "block",
- "name": "block : atomic",
- "xml": "<block atomic='true'>",
- "atomic": "true",
- "comments": "",
- "outputs": 1,
- "x": 4348.576320648193,
- "y": 5576.021049976349,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- [
- "32032a83.0e2796"
- ]
- ]
- },
- {
- "id": "32032a83.0e2796",
- "type": "switchNode",
- "name": "ransim mounted",
- "xml": "<switch test='`$prop.ransim-mounted`'>\n",
- "comments": "",
- "outputs": 1,
- "x": 4196.354202270508,
- "y": 5454.9097855091095,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- [
- "657a7bbc.3a03a4",
- "1ff67891.fe0d97"
- ]
- ]
- },
- {
- "id": "657a7bbc.3a03a4",
- "type": "outcome",
- "name": "Not Mounted",
- "xml": "<outcome value='false'>\n",
- "comments": "",
- "outputs": 1,
- "x": 4439.687942504883,
- "y": 5470.798464298248,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- [
- "243456be.4c9d4a"
- ]
- ]
- },
- {
- "id": "1ff67891.fe0d97",
- "type": "outcome",
- "name": "Mounted",
- "xml": "<outcome value='true'>\n",
- "comments": "",
- "outputs": 1,
- "x": 4430.531452178955,
- "y": 5511.242747783661,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- [
- "539c9037.11277"
- ]
- ]
- },
- {
- "id": "243456be.4c9d4a",
- "type": "block",
- "name": "block : atomic",
- "xml": "<block atomic='true'>",
- "atomic": "true",
- "comments": "",
- "outputs": 1,
- "x": 4621.076362609863,
- "y": 5472.132064342499,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- [
- "50f4a2d7.1c2d7c"
- ]
- ]
- },
- {
- "id": "50f4a2d7.1c2d7c",
- "type": "execute",
- "name": "delete RRMPolicyRatio DU- URL",
- "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$prop.restapi.removeRRMPolicyRatio.ToNRCellDU`\"/>\n <parameter name=\"outputPath\" value=\"tmp.deleteRRMPolicyRatio-DU.url\"/>\n <parameter name=\"target\" value=\"{idNearRTRIC}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.nearRTRICId`\"/>\n",
- "comments": "",
- "outputs": 1,
- "x": 4906.354072570801,
- "y": 5469.354341983795,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- []
- ]
- },
- {
- "id": "5cfd6451.1e572c",
- "type": "execute",
- "name": "generate deleteRRMPolicyRatio.ToNRCellCU URL",
- "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$prop.restapi.removeRRMPolicyRatio.ToNRCellDU.ransim-mounted`\"/>\n <parameter name=\"outputPath\" value=\"tmp.deleteRRMPolicyRatio-DU.url\"/>\n <parameter name=\"target\" value=\"{idNearRTRIC}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.nearRTRICId`\"/>",
- "comments": "",
- "outputs": 1,
- "x": 4917.46533203125,
- "y": 5512.687703609467,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- []
- ]
- },
- {
- "id": "1453b231.a0918e",
- "type": "execute",
- "name": "populate mountName",
- "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$tmp.deleteRRMPolicyRatio-DU.url`\"/>\n <parameter name=\"outputPath\" value=\"tmp.deleteRRMPolicyRatio-DU.url\"/>\n <parameter name=\"target\" value=\"{mountName}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.GNBDUId`\"/>",
- "comments": "",
- "outputs": 1,
- "x": 4841.909553527832,
- "y": 5548.243185520172,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- []
- ]
- },
- {
- "id": "539c9037.11277",
- "type": "block",
- "name": "block : atomic",
- "xml": "<block atomic='true'>",
- "atomic": "true",
- "comments": "",
- "outputs": 1,
- "x": 4612.187438964844,
- "y": 5514.354102611542,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- [
- "5cfd6451.1e572c",
- "1453b231.a0918e"
- ]
- ]
- },
- {
- "id": "5850fe3f.e7ae9",
- "type": "failure",
- "name": "failure",
- "xml": "<outcome value='false'>\n",
- "comments": "",
- "outputs": 1,
- "x": 4185.624969482422,
- "y": 5647.687506198883,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- [
- "dcfa97ae.90fe08"
- ]
- ]
- },
- {
- "id": "dcfa97ae.90fe08",
- "type": "block",
- "name": "block : atomic",
- "xml": "<block atomic='true'>",
- "atomic": "true",
- "comments": "",
- "outputs": 1,
- "x": 4371.292053222656,
- "y": 5636.02082490921,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- [
- "a6148645.d746d8",
- "48a80fd.c4ce0f"
- ]
- ]
- },
- {
- "id": "a6148645.d746d8",
- "type": "set",
- "name": "Read RRMPolicyMember-sNSSA",
- "xml": "<set>\n<parameter name='tmp.cellDURRMPolicyMember_sNSSAI' value=\"`'$get-rrmpolicyratio-du-response.attributes.RRMPolicyRatio['+ $iddu-rrm+'].attributes.rRMPolicyMemberList['+ $iddu-rrm2 +'].sNSSAI'`\" />",
- "comments": "",
- "x": 4664.931427001953,
- "y": 5594.910564899445,
- "z": "7dbbf2af.ccfd8c",
- "wires": []
- },
- {
- "id": "48a80fd.c4ce0f",
- "type": "switchNode",
- "name": "find matching RRMPolicyMember",
- "xml": "<switch test='`$tmp.cellDURRMPolicyMember_sNSSAI==$tmp.sNSSAI`'>\n",
- "comments": "",
- "outputs": 1,
- "x": 4662.5694580078125,
- "y": 5639.909632205963,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- [
- "5e803bf8.de57d4"
- ]
- ]
- },
- {
- "id": "5e803bf8.de57d4",
- "type": "success",
- "name": "success",
- "xml": "<outcome value='success'>\n",
- "comments": "",
- "outputs": 1,
- "x": 4893.402801513672,
- "y": 5644.354010105133,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- [
- "e3314a9.64d25b8"
- ]
- ]
- },
- {
- "id": "e3314a9.64d25b8",
- "type": "block",
- "name": "block : atomic",
- "xml": "<block atomic='true'>",
- "atomic": "true",
- "comments": "",
- "outputs": 1,
- "x": 5117.013641357422,
- "y": 5641.020758152008,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- [
- "8ff1c9be.f5ab98",
- "2d5fe3bf.b83dfc",
- "7ddc9df8.be23b4"
- ]
- ]
- },
- {
- "id": "8ff1c9be.f5ab98",
- "type": "set",
- "name": "Read RRMPolicyMember-id",
- "xml": "<set>\n<parameter name='tmp.CellDURRMPolicyMember_id' value=\"`'$get-rrmpolicyratio-du-response.attributes.RRMPolicyRatio['+ $iddu-rrm+'].attributes.rRMPolicyMemberList['+ $iddu-rrm2 +'].idx'`\" />",
- "comments": "",
- "x": 5382.680374145508,
- "y": 5608.798644542694,
- "z": "7dbbf2af.ccfd8c",
+ "x": 687,
+ "y": 64,
+ "z": "ae173881.f63c38",
"wires": []
- },
- {
- "id": "7ddc9df8.be23b4",
- "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/terminateRANSlice.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"RRMPolicyMember id - \"/>\n<parameter name=\"field2\" value=\"`$tmp.CellDURRMPolicyMember_id`\"/>\n",
- "comments": "",
- "outputs": 1,
- "x": 5334.340301513672,
- "y": 5656.680670261383,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- []
- ]
- },
- {
- "id": "2d5fe3bf.b83dfc",
- "type": "switchNode",
- "name": "ransim mounted",
- "xml": "<switch test='`$prop.ransim-mounted`'>\n",
- "comments": "",
- "outputs": 1,
- "x": 5339.902381896973,
- "y": 5704.354309558868,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- [
- "873127af.ddb218",
- "1ad28b62.5d6235"
- ]
- ]
- },
- {
- "id": "873127af.ddb218",
- "type": "outcome",
- "name": "Not Mounted",
- "xml": "<outcome value='false'>\n",
- "comments": "",
- "outputs": 1,
- "x": 5583.236442565918,
- "y": 5703.576333522797,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- [
- "feebd6c6.117e18"
- ]
- ]
- },
- {
- "id": "1ad28b62.5d6235",
- "type": "outcome",
- "name": "Mounted",
- "xml": "<outcome value='true'>\n",
- "comments": "",
- "outputs": 1,
- "x": 5574.079856872559,
- "y": 5755.131727695465,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- [
- "8e4d9ad5.5b1d08"
- ]
- ]
- },
- {
- "id": "feebd6c6.117e18",
- "type": "execute",
- "name": "generate deleteRRMPolicyMember.ToNRCellDU URL",
- "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$prop.restapi.removeRRMPolicyMember.ToNRCellDU`\"/>\n <parameter name=\"outputPath\" value=\"tmp.deleteRRMPolicyRatio-DU.url\"/>\n <parameter name=\"target\" value=\"{idNearRTRIC}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.nearRTRICId`\"/>",
- "comments": "",
- "outputs": 1,
- "x": 5912.124290466309,
- "y": 5701.0208439826965,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- []
- ]
- },
- {
- "id": "8e4d9ad5.5b1d08",
- "type": "block",
- "name": "block : atomic",
- "xml": "<block atomic='true'>",
- "atomic": "true",
- "comments": "",
- "outputs": 1,
- "x": 5741.013710021973,
- "y": 5752.687561511993,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- [
- "7138de03.cc1be",
- "1fd3a3c2.2d5dbc"
- ]
- ]
- },
- {
- "id": "7138de03.cc1be",
- "type": "execute",
- "name": "generate deleteRRMPolicyRatio.ToNRCellCU URL",
- "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$prop.restapi.removeRRMPolicyMember.ToNRCellDU.ransim-mounted`\"/>\n <parameter name=\"outputPath\" value=\"tmp.deleteRRMPolicyRatio-DU.url\"/>\n <parameter name=\"target\" value=\"{idNearRTRIC}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.nearRTRICId`\"/>",
- "comments": "",
- "outputs": 1,
- "x": 6041.29141998291,
- "y": 5746.576769351959,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- []
- ]
- },
- {
- "id": "1fd3a3c2.2d5dbc",
- "type": "execute",
- "name": "populate mountName",
- "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$tmp.deleteRRMPolicyRatio-DU.url`\"/>\n <parameter name=\"outputPath\" value=\"tmp.deleteRRMPolicyRatio-DU.url\"/>\n <parameter name=\"target\" value=\"{mountName}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.GNBDUId`\"/>",
- "comments": "",
- "outputs": 1,
- "x": 5961.2911376953125,
- "y": 5805.465185642242,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- []
- ]
- },
- {
- "id": "66462011.f48f2",
- "type": "execute",
- "name": "prepare idGNBDUFunction",
- "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$tmp.deleteRRMPolicyRatio-DU.url`\"/>\n <parameter name=\"outputPath\" value=\"tmp.deleteRRMPolicyRatio-DU.url\"/>\n <parameter name=\"target\" value=\"{idGNBDUFunction}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.GNBDUId`\"/>\n",
- "comments": "",
- "outputs": 1,
- "x": 4214.687614440918,
- "y": 5690.188272476196,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- []
- ]
- },
- {
- "id": "9a8989c6.9de3f8",
- "type": "execute",
- "name": "prepare idNRCellDu",
- "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$tmp.deleteRRMPolicyRatio-DU.url`\"/>\n <parameter name=\"outputPath\" value=\"tmp.deleteRRMPolicyRatio-DU.url\"/>\n <parameter name=\"target\" value=\"{idNRCellDU}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.cellDULocalId`\"/>\n",
- "comments": "",
- "outputs": 1,
- "x": 4187.187553405762,
- "y": 5723.4382429122925,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- []
- ]
- },
- {
- "id": "5cd69f40.d5bb",
- "type": "execute",
- "name": "prepare RRMPolicyRatio id",
- "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$tmp.deleteRRMPolicyRatio-DU.url`\"/>\n <parameter name=\"outputPath\" value=\"tmp.deleteRRMPolicyRatio-DU.url\"/>\n <parameter name=\"target\" value=\"{id}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.cellDURRMPolicyRatio_id`\"/>\n",
- "comments": "",
- "outputs": 1,
- "x": 4210.6254959106445,
- "y": 5758.000774383545,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- []
- ]
- },
- {
- "id": "341237e5.667278",
- "type": "execute",
- "name": "prepare RRMPolicyMember id",
- "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$tmp.deleteRRMPolicyRatio-DU.url`\"/>\n <parameter name=\"outputPath\" value=\"tmp.deleteRRMPolicyRatio-DU.url\"/>\n <parameter name=\"target\" value=\"{idx}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.cellDURRMPolicyMember_sNSSAI`\"/>\n",
- "comments": "",
- "outputs": 1,
- "x": 4218.125053405762,
- "y": 5793.750743865967,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- []
- ]
- },
- {
- "id": "4920a244.7f5c6c",
- "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/terminateRANSlice.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"Delete RRMPolicy URL - \"/>\n<parameter name=\"field2\" value=\"`$tmp.deleteRRMPolicyRatio-DU.url`\"/>\n<parameter name=\"field3\" value=\"RRMPolicyRatio id\"/>\n<parameter name=\"field4\" value=\"`$tmp.cellDURRMPolicyRatio_id`\"/>\n",
- "comments": "",
- "outputs": 1,
- "x": 3580.972659111023,
- "y": 5786.612835407257,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- []
- ]
- },
- {
- "id": "2fdb88a6.a26b88",
- "type": "execute",
- "name": "Terminate NRCellDU - RRMPolicyRatio",
- "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"restapiUrl\" value=\"`$prop.controller.url + $tmp.deleteRRMPolicyRatio-DU.url`\"/>\n<parameter name=\"restapiUser\" value=\"`$prop.controller.user`\" />\n<parameter name=\"restapiPassword\" value=\"`$prop.controller.pwd`\"/>\n<parameter name=\"httpMethod\" value=\"DELETE\"/>\n<parameter name=\"responsePrefix\" value=\"delete-cellDU-RRMPolicyRatio-response\"/>\n<parameter name='contentType' value='application/json' /> \n<parameter name='format' value='json' />",
- "comments": "",
- "outputs": 1,
- "x": 3668.2499237060547,
- "y": 5852.862394332886,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- [
- "ae16bd76.9a8ff",
- "2b2a79ae.5fefe6"
- ]
- ]
- },
- {
- "id": "a84fd19d.c1404",
- "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": 223.0208034515381,
- "y": 1723.8333706855774,
- "z": "7dbbf2af.ccfd8c",
- "wires": []
- },
- {
- "id": "627d8fb4.50f7c",
- "type": "for",
- "name": "foreach PLMNInfo",
- "xml": "<for index='id-ric' start='0' end='`$tmp.RICPLMNEntries`' >\n",
- "comments": "",
- "outputs": 1,
- "x": 908.6875381469727,
- "y": 1215.5001239776611,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- [
- "6d045faa.cf75"
- ]
- ]
- },
- {
- "id": "6d045faa.cf75",
- "type": "block",
- "name": "block : atomic",
- "xml": "<block atomic='true'>",
- "atomic": "true",
- "comments": "",
- "outputs": 1,
- "x": 1090.9375381469727,
- "y": 1207.5000166893005,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- [
- "860157a8.dd1568",
- "40e552a6.e5ed3c"
- ]
- ]
- },
- {
- "id": "e17075dc.31d448",
- "type": "switchNode",
- "name": "is NSSAI exists",
- "xml": "<switch test='`$tmp.ric.sNSSAI == $tmp.sNSSAI`'>\n",
- "comments": "",
- "outputs": 1,
- "x": 1550.9375839233398,
- "y": 809.750078201294,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- [
- "db4b8fbb.3e0f9"
- ]
- ]
- },
- {
- "id": "a0c610d.e60e8f",
- "type": "block",
- "name": "block : atomic",
- "xml": "<block atomic='true'>",
- "atomic": "true",
- "comments": "",
- "outputs": 1,
- "x": 1594.437728881836,
- "y": 713.750054359436,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- [
- "4c03f81a.4abc48",
- "d1172c03.a940d",
- "479bb8b1.85a0f8",
- "9488ad00.cdf51",
- "28b0eeea.30d3f2",
- "f627a38d.f4158",
- "c81c4e2d.4ebc2"
- ]
- ]
- },
- {
- "id": "4ac4d944.26ab78",
- "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/terminateRANSlice.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"PLMNInfo List before removal\"/>\n<parameter name=\"field2\" value=\"`$tmp.RICPLMNEntries`\"/>\n",
- "comments": "",
- "outputs": 1,
- "x": 893.6875343322754,
- "y": 1167.0000619888306,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- []
- ]
- },
- {
- "id": "4c03f81a.4abc48",
- "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/terminateRANSlice.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"sNSSAI\"/>\n<parameter name=\"field2\" value=\"`$tmp.ric.sNSSAIremoved`\" />\n<parameter name=\"field3\" value=\"nearRTRICId\"/>\n<parameter name=\"field4\" value=\"`$tmp.nearRTRICId`\" />\n<parameter name=\"field5\" value=\"endpoint URL\"/>\n<parameter name=\"field6\" value=\"`$tmp.configdb.getNearRTRICNSSAIRemoval.url`\" />\n",
- "comments": "",
- "outputs": 1,
- "x": 1672.3921661376953,
- "y": 952.5228519439697,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- []
- ]
- },
- {
- "id": "db4b8fbb.3e0f9",
- "type": "outcome",
- "name": "True",
- "xml": "<outcome value='true'>\n",
- "comments": "",
- "outputs": 1,
- "x": 1519.9375457763672,
- "y": 768.000054359436,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- [
- "a0c610d.e60e8f"
- ]
- ]
- },
- {
- "id": "39239b55.0dd4b4",
- "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/terminateRANSlice.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"plmninfolistlength in true \"/>\n<parameter name=\"field2\" value=\"`$tmp.pLMNInfoList_length`\"/>\n\n",
- "comments": "",
- "outputs": 1,
- "x": 2506.337459564209,
- "y": 548.6999988555908,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- []
- ]
- },
- {
- "id": "ad615746.bbf1e8",
- "type": "switchNode",
- "name": "check the action",
- "xml": "<switch test='`$tmp.pLMNInfoList_length > 0`'>\n",
- "comments": "",
- "outputs": 1,
- "x": 2062.537551879883,
- "y": 825.3000636100769,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- [
- "2e26bf75.9a4c1",
- "83840802.03bf28"
- ]
- ]
- },
- {
- "id": "2e26bf75.9a4c1",
- "type": "outcome",
- "name": "True",
- "xml": "<outcome value='true'>\n",
- "comments": "",
- "outputs": 1,
- "x": 2197.537326812744,
- "y": 696.3000273704529,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- [
- "149c1532.8be88b"
- ]
- ]
- },
- {
- "id": "83840802.03bf28",
- "type": "outcome",
- "name": "False",
- "xml": "<outcome value='false'>\n",
- "comments": "",
- "outputs": 1,
- "x": 2216.537353515625,
- "y": 747.3000497817993,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- [
- "a7a48f7a.3978b"
- ]
- ]
- },
- {
- "id": "fc81945.c629668",
- "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/terminateRANSlice.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"plmninfolistlength in false \"/>\n<parameter name=\"field2\" value=\"`$tmp.pLMNInfoList_length`\"/>\n\n",
- "comments": "",
- "outputs": 1,
- "x": 2391.337844848633,
- "y": 826.1001286506653,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- []
- ]
- },
- {
- "id": "149c1532.8be88b",
- "type": "block",
- "name": "block : atomic",
- "xml": "<block atomic='true'>",
- "atomic": "true",
- "comments": "",
- "outputs": 1,
- "x": 2367.5374069213867,
- "y": 688.5000767707825,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- [
- "39239b55.0dd4b4",
- "ac2cacb3.f66fe"
- ]
- ]
- },
- {
- "id": "a7a48f7a.3978b",
- "type": "block",
- "name": "block : atomic",
- "xml": "<block atomic='true'>",
- "atomic": "true",
- "comments": "",
- "outputs": 1,
- "x": 2352.5375213623047,
- "y": 736.5000519752502,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- [
- "fc81945.c629668"
- ]
- ]
- },
- {
- "id": "7a26e192.c21df",
- "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/terminateRANSlice.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"`'getNFNSSIRIC-configdb-response.['+ $idy +'].gNBCUCPList['+ $idz +'].cellCUList['+ $idcu +'].pLMNInfoList_length'`\"/>\n<parameter name=\"field2\" value=\"`$tmp.pLMNInfoList_length`\"/>\n\n",
- "comments": "",
- "outputs": 1,
- "x": 2062.537338256836,
- "y": 659.0001187324524,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- []
- ]
- },
- {
- "id": "3237bde0.394412",
- "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/terminateRANSlice.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"cuup_plmninfolength \"/>\n<parameter name=\"field2\" value=\"`$tmp.pLMNInfoList`\"/>\n\n",
- "comments": "",
- "outputs": 1,
- "x": 1135.7375106811523,
- "y": 2256.3999814987183,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- []
- ]
- },
- {
- "id": "5fef4230.9c857c",
- "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/terminateRANSlice.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"RRMPolicyMembersList size\"/>\n<parameter name=\"field2\" value=\"`$tmp.NRCellCURRMPolicyMembersLength`\"/>\n",
- "comments": "",
- "outputs": 1,
- "x": 2509.937454223633,
- "y": 2280.9999380111694,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- []
- ]
- },
- {
- "id": "6d7ae401.d6df2c",
- "type": "execute",
- "name": "Read RRMPolicy Member List Length",
- "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'>\n\t<parameter name='outputPath' value='tmp.NRCellCURRMPolicyMembersLength' />\n\t<parameter name='source' value=\"`'get-rrmpolicyratio-response.attributes.RRMPolicyRatio['+ $idcu-rrm+'].attributes.rRMPolicyMemberList_length'`\" />\n ",
- "comments": "",
- "outputs": 1,
- "x": 2559.937599182129,
- "y": 2168.1999368667603,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- []
- ]
- },
- {
- "id": "9c532b5d.f0d518",
- "type": "execute",
- "name": "RRMPolicyRatio id",
- "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'>\n\t<parameter name='outputPath' value='tmp.RRMPolicyRatio_id' />\n\t<parameter name='source' value=\"`'get-rrmpolicyratio-response.attributes.RRMPolicyRatio['+ $idcu-rrm+'].id'`\" />\n ",
- "comments": "",
- "outputs": 1,
- "x": 2504.337600708008,
- "y": 2126.1999349594116,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- []
- ]
- },
- {
- "id": "c7c7906e.14877",
- "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": 536.4375,
- "y": 836.7500495910645,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- []
- ]
- },
- {
- "id": "95f7659d.31ef38",
- "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": 565.6420593261719,
- "y": 871.2954912185669,
- "z": "7dbbf2af.ccfd8c",
- "wires": []
- },
- {
- "id": "860157a8.dd1568",
- "type": "execute",
- "name": "read sNSSAIList Length",
- "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'>\n\t<parameter name='outputPath' value='tmp.ric.sNSSAILength' />\n\t<parameter name='source' value=\"`'getNFNSSIRIC-configdb-response.['+ $idy +'].pLMNInfoList['+$id-ric+'].sNSSAI_length'`\" />\n",
- "comments": "",
- "outputs": 1,
- "x": 1301.437759399414,
- "y": 1196.5000505447388,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- []
- ]
- },
- {
- "id": "40e552a6.e5ed3c",
- "type": "for",
- "name": "foreach sNSSAI",
- "xml": "<for index='id-ric-snssai' start='0' end='`$tmp.ric.sNSSAILength`' >\n",
- "comments": "",
- "outputs": 1,
- "x": 1288.437759399414,
- "y": 1238.5000505447388,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- [
- "456f7507.d0b75c"
- ]
- ]
- },
- {
- "id": "456f7507.d0b75c",
- "type": "block",
- "name": "block : atomic",
- "xml": "<block atomic='true'>",
- "atomic": "true",
- "comments": "",
- "outputs": 1,
- "x": 1479.437759399414,
- "y": 1230.5000505447388,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- [
- "51d6eca9.67bcc4",
- "e17075dc.31d448"
- ]
- ]
- },
- {
- "id": "51d6eca9.67bcc4",
- "type": "execute",
- "name": "read sNSSAI",
- "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'>\n\t<parameter name='outputPath' value='tmp.ric.sNSSAI' />\n\t<parameter name='source' value=\"`'getNFNSSIRIC-configdb-response.['+ $idy +'].pLMNInfoList['+$id-ric+'].sNSSAI['+$id-ric-snssai+'].sNSSAI'`\" />\n",
- "comments": "",
- "outputs": 1,
- "x": 1469.687744140625,
- "y": 1140.5000534057617,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- []
- ]
- },
- {
- "id": "9488ad00.cdf51",
- "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/terminateRANSlice.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"Matching sNSSAI found in config DB\"/>\n<parameter name=\"field2\" value=\"`$tmp.ric.sNSSAI`\"/>\n<parameter name=\"field3\" value=\"sNSSAI List length before removal\"/>\n<parameter name=\"field4\" value=\"`$tmp.ric.sNSSAILength`\"/>",
- "comments": "",
- "outputs": 1,
- "x": 1738.6875762939453,
- "y": 684.7500085830688,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- []
- ]
- },
- {
- "id": "447e4902.fc55f8",
- "type": "execute",
- "name": "set list prefix",
- "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='setPropertiesForRoot'>\n\n\t<parameter name='root' value=\"`'getNFNSSIRIC-configdb-response.['+idy+'].pLMNInfoList['+id-ric+'].sNSSAI'`\" />\n",
- "comments": "",
- "outputs": 1,
- "x": 1796.4374694824219,
- "y": 629.7500071525574,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- []
- ]
- },
- {
- "id": "18624b92.112da4",
- "type": "set",
- "name": "set",
- "xml": "<set>\n<parameter name=\"`'getNFNSSIRIC-configdb-response.['+ $idy +'].pLMNInfoList['+$id-ric+'].sNSSAI['+$id-ric-snssai+'].sNSSAI'`\" value=\"\" />\n",
- "comments": "",
- "x": 1771.187484741211,
- "y": 772.5001764297485,
- "z": "7dbbf2af.ccfd8c",
- "wires": []
- },
- {
- "id": "28b0eeea.30d3f2",
- "type": "execute",
- "name": "read sNSSAI",
- "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'>\n\t<parameter name='outputPath' value='tmp.ric.sNSSAIremoved' />\n\t<parameter name='source' value=\"`'getNFNSSIRIC-configdb-response.['+ $idy +'].pLMNInfoList['+$id-ric+'].sNSSAI['+$id-ric-snssai+'].sNSSAI'`\" />\n",
- "comments": "",
- "outputs": 1,
- "x": 1754.1874542236328,
- "y": 817.4999952316284,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- []
- ]
- },
- {
- "id": "f627a38d.f4158",
- "type": "execute",
- "name": "generate removesNSSAIFromRIC URL",
- "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$prop.configdb.url + $prop.restapi.configdb.removenSSAINearRTRIC`\"/>\n <parameter name=\"outputPath\" value=\"tmp.configdb.getNearRTRICNSSAIRemoval.url\"/>\n <parameter name=\"target\" value=\"{nearRTRICId}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.nearRTRICId`\"/>",
- "comments": "",
- "outputs": 1,
- "x": 1819.1874465942383,
- "y": 888.7501177787781,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- []
- ]
- },
- {
- "id": "c81c4e2d.4ebc2",
- "type": "execute",
- "name": "prepare sNSSAI",
- "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$tmp.configdb.getNearRTRICNSSAIRemoval.url`\"/>\n <parameter name=\"outputPath\" value=\"tmp.configdb.getNearRTRICNSSAIRemoval.url\"/>\n <parameter name=\"target\" value=\"{sNSSAI}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.ric.sNSSAIremoved`\"/>",
- "comments": "",
- "outputs": 1,
- "x": 1746.1874771118164,
- "y": 925.2500576972961,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- []
- ]
- },
- {
- "id": "2f976a24.2999e6",
- "type": "execute",
- "name": "Read RRMPolicy Member List Length",
- "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'>\n\t<parameter name='outputPath' value='tmp.CUUPRRMPolicyMembersLength' />\n\t<parameter name='source' value=\"`'get-rrmpolicyratio-cuup-response.attributes.RRMPolicyRatio['+ $idcuup-rrm+'].attributes.rRMPolicyMemberList_length'`\" />\n ",
- "comments": "",
- "outputs": 1,
- "x": 2049.9377212524414,
- "y": 3550.699956893921,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- []
- ]
- },
- {
- "id": "ec777e18.0bdc2",
- "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/terminateRANSlice.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"CUUP - RRMPolicyMembersList size\"/>\n<parameter name=\"field2\" value=\"`$tmp.CUUPRRMPolicyMembersLength`\"/>\n",
- "comments": "",
- "outputs": 1,
- "x": 2034.937644958496,
- "y": 3598.7000551223755,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- []
- ]
- },
- {
- "id": "904594a7.bb7d18",
- "type": "execute",
- "name": "RRMPolicyRatio id",
- "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'>\n\t<parameter name='outputPath' value='tmp.CUUPRRMPolicyRatio_id' />\n\t<parameter name='source' value=\"`'get-rrmpolicyratio-cuup-response.attributes.RRMPolicyRatio['+ $idcuup-rrm+'].id'`\" />\n ",
- "comments": "",
- "outputs": 1,
- "x": 2038.737403869629,
- "y": 3509.6999559402466,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- []
- ]
- },
- {
- "id": "8e2e4de4.ab048",
- "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/terminateRANSlice.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"Delete RRMPolicy URL first - \"/>\n<parameter name=\"field2\" value=\"`$tmp.deleteRRMPolicyRatio-CUUP.url`\"/>\n",
- "comments": "",
- "outputs": 1,
- "x": 2481.937602996826,
- "y": 3513.399956703186,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- []
- ]
- },
- {
- "id": "5076729c.ead31c",
- "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/terminateRANSlice.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"before setting url\" />\n<parameter name=\"field2\" value=\"ransimnot mounted\" />\n\n",
- "comments": "",
- "outputs": 1,
- "x": 3197.137466430664,
- "y": 3185.800102710724,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- []
- ]
- },
- {
- "id": "114b3bf.98b33c4",
- "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/terminateRANSlice.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"Delete RRMPolicy URL after setting - \"/>\n<parameter name=\"field2\" value=\"`$tmp.deleteRRMPolicyRatio-CUUP.url`\"/>\n",
- "comments": "",
- "outputs": 1,
- "x": 3230.137420654297,
- "y": 3298.800055027008,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- []
- ]
- },
- {
- "id": "4aec1c37.d2ff24",
- "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/terminateRANSlice.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"Success\" />\n<parameter name=\"field2\" value=\"Tocheck if ransim mounted\" />\n\n",
- "comments": "",
- "outputs": 1,
- "x": 2770.537567138672,
- "y": 3208.600103855133,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- []
- ]
- },
- {
- "id": "79670665.c5b0f8",
- "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/terminateRANSlice.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"Failure\" />\n<parameter name=\"field2\" value=\"Tocheck if ransim mounted\" />\n\n",
- "comments": "",
- "outputs": 1,
- "x": 2985.937511444092,
- "y": 3436.6001534461975,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- []
- ]
- },
- {
- "id": "7d1eb89d.ae5768",
- "type": "execute",
- "name": "generate terminate PLMNInfoListEntry CUUP URL for configdb",
- "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$prop.restapi.configdb.removenSSAICUUP`\"/>\n <parameter name=\"outputPath\" value=\"tmp.deletePLMNInfo-CUUP.configdb.url\"/>\n <parameter name=\"target\" value=\"{gnbCUUPId}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.idGNBCUUPFunction`\"/>\n",
- "comments": "",
- "outputs": 1,
- "x": 1982.9375,
- "y": 3016.3000469207764,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- []
- ]
- },
- {
- "id": "1a922a3e.bc9b96",
- "type": "execute",
- "name": "prepare sNSSAI",
- "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$tmp.deletePLMNInfo-CUUP.configdb.url`\"/>\n <parameter name=\"outputPath\" value=\"tmp.deletePLMNInfo-CUUP.configdb.url\"/>\n <parameter name=\"target\" value=\"{sNSSAI}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.sNSSAI`\"/>",
- "comments": "",
- "outputs": 1,
- "x": 1825.9374923706055,
- "y": 3055.700242996216,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- []
- ]
- },
- {
- "id": "8c1c51d7.95c51",
- "type": "execute",
- "name": "Update nearRT RIC Details in ConfigDB",
- "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"restapiUrl\" value=\"`$prop.configdb.url + $tmp.deletePLMNInfo-CUUP.configdb.url`\"/>\n<parameter name=\"httpMethod\" value=\"DELETE\"/>\n<parameter name=\"responsePrefix\" value=\"delete-CUUP-plmninfo-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": 1888.937484741211,
- "y": 3104.3000478744507,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- [
- "3902bf5f.e01ce",
- "d3581ecc.b9fd6"
- ]
- ]
- },
- {
- "id": "3902bf5f.e01ce",
- "type": "failure",
- "name": "failure",
- "xml": "<outcome value='failure'>\n",
- "comments": "",
- "outputs": 1,
- "x": 2147.3374977111816,
- "y": 3062.700047492981,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- [
- "8ca8d0ce.575fb"
- ]
- ]
- },
- {
- "id": "d3581ecc.b9fd6",
- "type": "success",
- "name": "success",
- "xml": "<outcome value='success'>\n",
- "comments": "",
- "outputs": 1,
- "x": 2174.3374938964844,
- "y": 3140.7000484466553,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- [
- "b97663cd.538dc"
- ]
- ]
- },
- {
- "id": "8ca8d0ce.575fb",
- "type": "block",
- "name": "block : atomic",
- "xml": "<block atomic='true'>",
- "atomic": "true",
- "comments": "",
- "outputs": 1,
- "x": 2342.337501525879,
- "y": 3055.700047492981,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- [
- "d42d15ba.290d18",
- "f55a1f63.5640d"
- ]
- ]
- },
- {
- "id": "b97663cd.538dc",
- "type": "block",
- "name": "block : atomic",
- "xml": "<block atomic='true'>",
- "atomic": "true",
- "comments": "",
- "outputs": 1,
- "x": 2348.337501525879,
- "y": 3133.700047492981,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- [
- "fd899390.b0eb1"
- ]
- ]
- },
- {
- "id": "fd899390.b0eb1",
- "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/terminateRANSlice.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"Successfully removed - gNBCUUP PLMNInfo Entry from configdb\"/>",
- "comments": "",
- "outputs": 1,
- "x": 2527.337505340576,
- "y": 3152.7000484466553,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- []
- ]
- },
- {
- "id": "f55a1f63.5640d",
- "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 removing CUUP PLMNInfo. Aborting RPC executiopn'/>",
- "comments": "",
- "x": 2573.5375061035156,
- "y": 3079.700047492981,
- "z": "7dbbf2af.ccfd8c",
- "wires": []
- },
- {
- "id": "d42d15ba.290d18",
- "type": "set",
- "name": "set",
- "xml": "<set>\n<parameter name='error-code' value='500'/>\n<parameter name='error-message' value='Error removing CUUP PLMNInfoList. Aborting RPC executiopn'/>",
- "comments": "",
- "x": 2574.5375061035156,
- "y": 3041.7000465393066,
- "z": "7dbbf2af.ccfd8c",
- "wires": []
- },
- {
- "id": "e69dbd8f.eeb1f",
- "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.sNssaiListLength' />\n\t<parameter name='source' value=\"`'getNFNSSIRIC-configdb-response.['+ $idy +'].gNBCUUPList['+ $id-cuup +'].pLMNInfoList['+ $id-plmn +'].sNSSAI_length'`\" />",
- "comments": "",
- "outputs": 1,
- "x": 1295.9374618530273,
- "y": 2323.099841117859,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- []
- ]
- },
- {
- "id": "d9e7e9d6.d4c918",
- "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/terminateRANSlice.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"cuup_plmninfolength_nssailength \"/>\n<parameter name=\"field2\" value=\"`$tmp.sNssaiListLength`\"/>\n\n",
- "comments": "",
- "outputs": 1,
- "x": 1292.9375381469727,
- "y": 2376.300036430359,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- []
- ]
- },
- {
- "id": "a2b0bd3b.f33d1",
- "type": "for",
- "name": "foreach snssai",
- "xml": "<for index='id-snssai' start='0' end='`$tmp.sNssaiListLength`'>\n",
- "comments": "",
- "outputs": 1,
- "x": 1480.9375610351562,
- "y": 2537.9004316329956,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- [
- "efe2cb29.7b61b8"
- ]
- ]
- },
- {
- "id": "efe2cb29.7b61b8",
- "type": "block",
- "name": "block : atomic",
- "xml": "<block atomic='true'>",
- "atomic": "true",
- "comments": "",
- "outputs": 1,
- "x": 1226.9375610351562,
- "y": 2622.90048122406,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- [
- "8fa4df32.142dc",
- "b1adda7f.308948",
- "3cc00a06.5560b6"
- ]
- ]
- },
- {
- "id": "ed65fd40.81f58",
- "type": "switchNode",
- "name": "check the action",
- "xml": "<switch test='`$tmp.sNssaiListLength > 0`'>\n",
- "comments": "",
- "outputs": 1,
- "x": 1228.9374618530273,
- "y": 2466.700430870056,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- [
- "a53b434f.d3ad7",
- "95d069bb.8816f8"
- ]
- ]
- },
- {
- "id": "a53b434f.d3ad7",
- "type": "outcome",
- "name": "True",
- "xml": "<outcome value='true'>\n",
- "comments": "",
- "outputs": 1,
- "x": 1402.9374656677246,
- "y": 2412.9000387191772,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- [
- "9e4dd15d.af7a2"
- ]
- ]
- },
- {
- "id": "95d069bb.8816f8",
- "type": "outcome",
- "name": "False",
- "xml": "<outcome value='false'>\n",
- "comments": "",
- "outputs": 1,
- "x": 1397.7374668121338,
- "y": 2482.099843978882,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- [
- "5f9bd4a8.ad376c"
- ]
- ]
- },
- {
- "id": "9e4dd15d.af7a2",
- "type": "block",
- "name": "block : atomic",
- "xml": "<block atomic='true'>",
- "atomic": "true",
- "comments": "",
- "outputs": 1,
- "x": 1500.9374675750732,
- "y": 2343.5000371932983,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- [
- "a2b0bd3b.f33d1",
- "24c81ed2.edae52"
- ]
- ]
- },
- {
- "id": "5f9bd4a8.ad376c",
- "type": "block",
- "name": "block : atomic",
- "xml": "<block atomic='true'>",
- "atomic": "true",
- "comments": "",
- "outputs": 1,
- "x": 1542.9375648498535,
- "y": 2483.500039100647,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- [
- "125ad7a8.070a78"
- ]
- ]
- },
- {
- "id": "125ad7a8.070a78",
- "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/terminateRANSlice.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"plmninfolistnssailength in false \"/>\n<parameter name=\"field2\" value=\"`$tmp.sNssaiListLength`\"/>\n\n",
- "comments": "",
- "outputs": 1,
- "x": 1620.537467956543,
- "y": 2428.7000398635864,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- []
- ]
- },
- {
- "id": "24c81ed2.edae52",
- "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/terminateRANSlice.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"plmninfolistnssailength in true \"/>\n<parameter name=\"field2\" value=\"`$tmp.sNssaiListLength`\"/>\n\n",
- "comments": "",
- "outputs": 1,
- "x": 1648.3375434875488,
- "y": 2322.700036048889,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- []
- ]
- },
- {
- "id": "a0ddd52c.fd3058",
- "type": "block",
- "name": "block : atomic",
- "xml": "<block atomic='true'>",
- "atomic": "true",
- "comments": "",
- "outputs": 1,
- "x": 1777.1374969482422,
- "y": 2699.9002866744995,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- [
- "c445baf.1e26e48",
- "bfa0e8f3.c5e558",
- "79470742.1ad3c8",
- "c328d0be.82c19",
- "f992d688.012618",
- "9c7e75.4c2dd188",
- "7d1eb89d.ae5768",
- "1a922a3e.bc9b96",
- "8c1c51d7.95c51",
- "a7b14fd6.8883d"
- ]
- ]
- },
- {
- "id": "a7793847.31e9f8",
- "type": "outcome",
- "name": "False",
- "xml": "<outcome value='false'>\n",
- "comments": "",
- "outputs": 1,
- "x": 1594.9374694824219,
- "y": 2753.300043106079,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- [
- "6e6de793.c48fa8"
- ]
- ]
- },
- {
- "id": "6e6de793.c48fa8",
- "type": "block",
- "name": "block : atomic",
- "xml": "<block atomic='true'>",
- "atomic": "true",
- "comments": "",
- "outputs": 1,
- "x": 1744.9374694824219,
- "y": 2752.300042152405,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- [
- "22c4948e.ec886c"
- ]
- ]
- },
- {
- "id": "22c4948e.ec886c",
- "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/terminateRANSlice.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"nssaimatch in false \"/>\n<parameter name=\"field2\" value=\"`nssai deletion does not takes place`\"/>\n\n",
- "comments": "",
- "outputs": 1,
- "x": 1737.9374732971191,
- "y": 2818.300042152405,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- []
- ]
- },
- {
- "id": "a7b14fd6.8883d",
- "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/terminateRANSlice.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"nssaimatch in True \"/>\n<parameter name=\"field2\" value=\"`Proceeding for nssai deletion`\"/>\n\n",
- "comments": "",
- "outputs": 1,
- "x": 1947.9374961853027,
- "y": 2662.3000898361206,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- []
- ]
- },
- {
- "id": "f7497ee4.8284d",
- "type": "execute",
- "name": "Read RRMPolicyResourcetype",
- "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'>\n\t<parameter name='outputPath' value='tmp.CUUPRRMPolicyMembersResourceType' />\n\t<parameter name='source' value=\"`'get-rrmpolicyratio-cuup-response.attributes.RRMPolicyRatio['+ $idcuup-rrm+'].attributes.resourceType'`\" />\n ",
- "comments": "",
- "outputs": 1,
- "x": 2077.137451171875,
- "y": 3779.8999605178833,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- []
- ]
- },
- {
- "id": "a9af97f3.056d68",
- "type": "execute",
- "name": "generate terminate rrmpolicy CUUP URL for configdb",
- "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$prop.restapi.configdb.removenSSAICUUPRRMPOLICY`\"/>\n <parameter name=\"outputPath\" value=\"tmp.deleteRRMPolicy-CUUP.configdb.url\"/>\n <parameter name=\"target\" value=\"{gnbCUUPId}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.idGNBCUUPFunction`\"/>\n",
- "comments": "",
- "outputs": 1,
- "x": 2138.53759765625,
- "y": 3820.8999605178833,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- []
- ]
- },
- {
- "id": "2ace0ee9.26c332",
- "type": "execute",
- "name": "prepare sNSSAI",
- "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$tmp.deleteRRMPolicy-CUUP.configdb.url`\"/>\n <parameter name=\"outputPath\" value=\"tmp.deleteRRMPolicy-CUUP.configdb.url\"/>\n <parameter name=\"target\" value=\"{sNSSAI}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.sNSSAI`\"/>",
- "comments": "",
- "outputs": 1,
- "x": 2012.5374755859375,
- "y": 3911.8999614715576,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- []
- ]
- },
- {
- "id": "3ac47774.109b28",
- "type": "execute",
- "name": "prepare resourcetype",
- "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$tmp.deleteRRMPolicy-CUUP.configdb.url`\"/>\n <parameter name=\"outputPath\" value=\"tmp.deleteRRMPolicy-CUUP.configdb.url\"/>\n <parameter name=\"target\" value=\"{resourcetype}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.CUUPRRMPolicyMembersResourceType`\"/>",
- "comments": "",
- "outputs": 1,
- "x": 2011.5374450683594,
- "y": 3870.899905204773,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- []
- ]
- },
- {
- "id": "726fc2f.51f473c",
- "type": "execute",
- "name": "Update nearRT RIC Details in ConfigDB",
- "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"restapiUrl\" value=\"`$prop.configdb.url + $tmp.deleteRRMPolicy-CUUP.configdb.url`\"/>\n<parameter name=\"httpMethod\" value=\"DELETE\"/>\n<parameter name=\"responsePrefix\" value=\"delete-CUUP-rrmpolicy-configdb-response\"/>\n<parameter name='contentType' value='application/json' /> \n<parameter name='format' value='json' />\n<parameter name='accept' value='application/json' />\n<parameter name=\"convertResponse\" value=\"true\"/>",
- "comments": "",
- "outputs": 1,
- "x": 2066.53759765625,
- "y": 3969.8999633789062,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- [
- "ad7a0321.83b31",
- "483d33c5.7af65c"
- ]
- ]
- },
- {
- "id": "ad7a0321.83b31",
- "type": "failure",
- "name": "failure",
- "xml": "<outcome value='failure'>\n",
- "comments": "",
- "outputs": 1,
- "x": 2312.537567138672,
- "y": 3910.899905204773,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- [
- "d9aa3e7a.014e1"
- ]
- ]
- },
- {
- "id": "483d33c5.7af65c",
- "type": "success",
- "name": "success",
- "xml": "<outcome value='success'>\n",
- "comments": "",
- "outputs": 1,
- "x": 2319.53759765625,
- "y": 3983.1001596450806,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- [
- "b7bed467.8c0c68"
- ]
- ]
- },
- {
- "id": "d9aa3e7a.014e1",
- "type": "block",
- "name": "block : atomic",
- "xml": "<block atomic='true'>",
- "atomic": "true",
- "comments": "",
- "outputs": 1,
- "x": 2481.537567138672,
- "y": 3909.899905204773,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- [
- "b9d2c4bb.b0ac78",
- "3dcdb759.781678"
- ]
- ]
- },
- {
- "id": "3dcdb759.781678",
- "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 removing CUUP PLMNInfo. Aborting RPC executiopn'/>",
- "comments": "",
- "x": 2670.5376052856445,
- "y": 3912.899962425232,
- "z": "7dbbf2af.ccfd8c",
- "wires": []
- },
- {
- "id": "b9d2c4bb.b0ac78",
- "type": "set",
- "name": "set",
- "xml": "<set>\n<parameter name='error-code' value='500'/>\n<parameter name='error-message' value='Error removing CUUP PLMNInfoList. Aborting RPC executiopn'/>",
- "comments": "",
- "x": 2661.537567138672,
- "y": 3862.8999042510986,
- "z": "7dbbf2af.ccfd8c",
- "wires": []
- },
- {
- "id": "b7bed467.8c0c68",
- "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/terminateRANSlice.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"Successfully removed - gNBCUUP rrmpolicy Entry from configdb\"/>",
- "comments": "",
- "outputs": 1,
- "x": 2562.537567138672,
- "y": 3994.899905204773,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- []
- ]
- },
- {
- "id": "53bf66bc.532388",
- "type": "block",
- "name": "block : gNBDU",
- "xml": "<block atomic='true'>",
- "atomic": "true",
- "comments": "",
- "outputs": 1,
- "x": 1980.1374473571777,
- "y": 4328.7002630233765,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- [
- "dd8a2b25.19ba28",
- "62d32210.5d22bc",
- "9a11cafc.860298",
- "55d4a739.9f0a68"
- ]
- ]
- },
- {
- "id": "9a11cafc.860298",
- "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/terminateRANSlice.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"Iterating \"/>\n<parameter name=\"field2\" value=\"`CellDU`\"/>\n\n",
- "comments": "",
- "outputs": 1,
- "x": 2099.1375007629395,
- "y": 4199.700064659119,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- []
- ]
- },
- {
- "id": "55d4a739.9f0a68",
- "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/terminateRANSlice.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"plmninfolengthcelldu \"/>\n<parameter name=\"field2\" value=\"`$tmp.DUpLMNInfoList_length`\"/>\n\n",
- "comments": "",
- "outputs": 1,
- "x": 2164.1375007629395,
- "y": 4326.700066566467,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- []
- ]
- },
- {
- "id": "1c6b37a8.400fe8",
- "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/terminateRANSlice.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"LocalId \"/>\n<parameter name=\"field2\" value=\"`$tmp.cellDULocalId`\"/>\n\n\n",
- "comments": "",
- "outputs": 1,
- "x": 3055.337371826172,
- "y": 4692.700198173523,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- []
- ]
- },
- {
- "id": "f0025173.8bc81",
- "type": "execute",
- "name": "RRMPolicyRatio id",
- "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'>\n\t<parameter name='outputPath' value='tmp.cellDURRMPolicyRatio_id' />\n\t<parameter name='source' value=\"`'get-rrmpolicyratio-du-response.attributes.RRMPolicyRatio['+ $iddu-rrm+'].id'`\" />\n ",
- "comments": "",
- "outputs": 1,
- "x": 3578.137420654297,
- "y": 5566.699889183044,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- []
- ]
- },
- {
- "id": "50d5f57a.28f54c",
- "type": "set",
- "name": "RRMPolicyRatio id",
- "xml": "<set>\n<parameter name='tmp.cellDURRMPolicyRatio_id' value=\"`'$get-rrmpolicyratio-du-response.attributes.RRMPolicyRatio['+ $iddu-rrm+'].id'`\" />",
- "comments": "",
- "x": 3947.1878204345703,
- "y": 5558.250376701355,
- "z": "7dbbf2af.ccfd8c",
- "wires": []
- },
- {
- "id": "3cec9739.39d9f8",
- "type": "execute",
- "name": "Read RRMPolicy Member List Length",
- "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'>\n\t<parameter name='outputPath' value='tmp.DURRMPolicyMembersLength' />\n\t<parameter name='source' value=\"`'get-rrmpolicyratio-du-response.attributes.RRMPolicyRatio['+ $iddu-rrm+'].attributes.rRMPolicyMemberList_length'`\" />\n ",
- "comments": "",
- "outputs": 1,
- "x": 3640.9374237060547,
- "y": 5607.699889183044,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- []
- ]
- },
- {
- "id": "110794fb.6c79bb",
- "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/terminateRANSlice.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"RRMPOLICYmemberslength\"/>\n<parameter name=\"field2\" value=\"`$tmp.DURRMPolicyMembersLength`\"/>\n\n",
- "comments": "",
- "outputs": 1,
- "x": 3668.7374267578125,
- "y": 5655.300280570984,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- []
- ]
- },
- {
- "id": "710788ba.683388",
- "type": "execute",
- "name": "generate terminate plmn GNBDU URL for configdb",
- "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$prop.restapi.configdb.removenSSAINRCellDU`\"/>\n <parameter name=\"outputPath\" value=\"tmp.deleteplmninfo-GNBDU.configdb.url\"/>\n <parameter name=\"target\" value=\"{idNRCellDU}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.cellDULocalId`\"/>\n",
- "comments": "",
- "outputs": 1,
- "x": 3106.337371826172,
- "y": 5058.899905204773,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- []
- ]
- },
- {
- "id": "ab779797.43fff8",
- "type": "execute",
- "name": "prepare sNSSAI",
- "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$tmp.deleteplmninfo-GNBDU.configdb.url`\"/>\n <parameter name=\"outputPath\" value=\"tmp.deleteplmninfo-GNBDU.configdb.url\"/>\n <parameter name=\"target\" value=\"{sNSSAI}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.sNSSAI`\"/>",
- "comments": "",
- "outputs": 1,
- "x": 3001.337562561035,
- "y": 5120.9000787734985,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- []
- ]
- },
- {
- "id": "2623a9f9.8193d6",
- "type": "execute",
- "name": "Update nearRT RIC Details in ConfigDB",
- "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"restapiUrl\" value=\"`$prop.configdb.url + $tmp.deleteplmninfo-GNBDU.configdb.url`\"/>\n<parameter name=\"httpMethod\" value=\"DELETE\"/>\n<parameter name=\"responsePrefix\" value=\"delete-GNBDU-plmninfo-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": 3038.3377532958984,
- "y": 5173.9000787734985,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- [
- "cd9d1e81.c52f7",
- "2bdd7981.9b98a6"
- ]
- ]
- },
- {
- "id": "cd9d1e81.c52f7",
- "type": "failure",
- "name": "failure",
- "xml": "<outcome value='failure'>\n",
- "comments": "",
- "outputs": 1,
- "x": 3280.3373413085938,
- "y": 5148.899849891663,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- [
- "b24b6ca8.64a59"
- ]
- ]
- },
- {
- "id": "2bdd7981.9b98a6",
- "type": "success",
- "name": "success",
- "xml": "<outcome value='success'>\n",
- "comments": "",
- "outputs": 1,
- "x": 3287.337371826172,
- "y": 5221.10010433197,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- [
- "33c91db3.7cb762"
- ]
- ]
- },
- {
- "id": "b24b6ca8.64a59",
- "type": "block",
- "name": "block : atomic",
- "xml": "<block atomic='true'>",
- "atomic": "true",
- "comments": "",
- "outputs": 1,
- "x": 3449.3373413085938,
- "y": 5147.899849891663,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- [
- "78e3acb2.3bc4b4",
- "92728418.374928"
- ]
- ]
- },
- {
- "id": "92728418.374928",
- "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 removing CUUP PLMNInfo. Aborting RPC executiopn'/>",
- "comments": "",
- "x": 3638.3373794555664,
- "y": 5150.899907112122,
- "z": "7dbbf2af.ccfd8c",
- "wires": []
- },
- {
- "id": "78e3acb2.3bc4b4",
- "type": "set",
- "name": "set",
- "xml": "<set>\n<parameter name='error-code' value='500'/>\n<parameter name='error-message' value='Error removing CUUP PLMNInfoList. Aborting RPC executiopn'/>",
- "comments": "",
- "x": 3629.3373413085938,
- "y": 5100.899848937988,
- "z": "7dbbf2af.ccfd8c",
- "wires": []
- },
- {
- "id": "33c91db3.7cb762",
- "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/terminateRANSlice.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"Successfully removed - gNBDU pmmninfo Entry from configdb\"/>",
- "comments": "",
- "outputs": 1,
- "x": 3510.337619781494,
- "y": 5206.900177955627,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- []
- ]
- },
- {
- "id": "b0f385f8.012f48",
- "type": "execute",
- "name": "Read RRMPolicyResourcetype",
- "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'>\n\t<parameter name='outputPath' value='tmp.DURRMPolicyMembersResourceType' />\n\t<parameter name='source' value=\"`'get-rrmpolicyratio-du-response.attributes.RRMPolicyRatio['+ $iddu-rrm+'].attributes.resourceType'`\" />\n ",
- "comments": "",
- "outputs": 1,
- "x": 3540.337615966797,
- "y": 5941.100187301636,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- []
- ]
- },
- {
- "id": "3b954572.23a3ba",
- "type": "execute",
- "name": "generate terminate rrmpolicy CUUP URL for configdb",
- "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$prop.restapi.configdb.removenSSAICUUPRRMPOLICY`\"/>\n <parameter name=\"outputPath\" value=\"tmp.deleteRRMPolicy-CUUP.configdb.url\"/>\n <parameter name=\"target\" value=\"{gnbCUUPId}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.cellDULocalId`\"/>\n",
- "comments": "",
- "outputs": 1,
- "x": 3598.737617492676,
- "y": 5984.100187301636,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- []
- ]
- },
- {
- "id": "dc8d2eaf.fac9f",
- "type": "execute",
- "name": "prepare sNSSAI",
- "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$tmp.deleteRRMPolicy-CUUP.configdb.url`\"/>\n <parameter name=\"outputPath\" value=\"tmp.deleteRRMPolicy-CUUP.configdb.url\"/>\n <parameter name=\"target\" value=\"{sNSSAI}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.sNSSAI`\"/>",
- "comments": "",
- "outputs": 1,
- "x": 3493.737617492676,
- "y": 6069.10018825531,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- []
- ]
- },
- {
- "id": "31c13c9.04fb3c4",
- "type": "execute",
- "name": "prepare resourcetype",
- "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$tmp.deleteRRMPolicy-CUUP.configdb.url`\"/>\n <parameter name=\"outputPath\" value=\"tmp.deleteRRMPolicy-CUUP.configdb.url\"/>\n <parameter name=\"target\" value=\"{resourcetype}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.DURRMPolicyMembersResourceType`\"/>",
- "comments": "",
- "outputs": 1,
- "x": 3503.737617492676,
- "y": 6024.10018825531,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- []
- ]
- },
- {
- "id": "5e725b04.67a0f4",
- "type": "execute",
- "name": "Update nearRT RIC Details in ConfigDB",
- "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"restapiUrl\" value=\"`$prop.configdb.url + $tmp.deleteRRMPolicy-CUUP.configdb.url`\"/>\n<parameter name=\"httpMethod\" value=\"DELETE\"/>\n<parameter name=\"responsePrefix\" value=\"delete-DU-rrmpolicy-configdb-response\"/>\n<parameter name='contentType' value='application/json' /> \n<parameter name='format' value='json' />\n<parameter name='accept' value='application/json' />\n<parameter name=\"convertResponse\" value=\"true\"/>",
- "comments": "",
- "outputs": 1,
- "x": 3554.737617492676,
- "y": 6112.1001896858215,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- [
- "b43a35d2.f46d38",
- "5c31f16d.97a37"
- ]
- ]
- },
- {
- "id": "b43a35d2.f46d38",
- "type": "failure",
- "name": "failure",
- "xml": "<outcome value='failure'>\n",
- "comments": "",
- "outputs": 1,
- "x": 3809.737621307373,
- "y": 6070.10018825531,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- [
- "bfc39caf.d0946"
- ]
- ]
- },
- {
- "id": "5c31f16d.97a37",
- "type": "success",
- "name": "success",
- "xml": "<outcome value='success'>\n",
- "comments": "",
- "outputs": 1,
- "x": 3822.737621307373,
- "y": 6118.300580978394,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- [
- "cba92c50.eab75"
- ]
- ]
- },
- {
- "id": "bfc39caf.d0946",
- "type": "block",
- "name": "block : atomic",
- "xml": "<block atomic='true'>",
- "atomic": "true",
- "comments": "",
- "outputs": 1,
- "x": 3970.7376251220703,
- "y": 6077.10018825531,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- []
- ]
- },
- {
- "id": "cba92c50.eab75",
- "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/terminateRANSlice.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"Successfully removed - gNBDU rrmpolicy Entry from configdb\"/>",
- "comments": "",
- "outputs": 1,
- "x": 3979.7376251220703,
- "y": 6119.100190162659,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- []
- ]
- },
- {
- "id": "ff1e8d16.e8f14",
- "type": "execute",
- "name": "Read RRMPolicyResourcetype",
- "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'>\n\t<parameter name='outputPath' value='tmp.CURRMPolicyMembersResourceType' />\n\t<parameter name='source' value=\"`'get-rrmpolicyratio-response.attributes.RRMPolicyRatio['+ $idcu-rrm+'].attributes.resourceType'`\" />\n ",
- "comments": "",
- "outputs": 1,
- "x": 2531.137420654297,
- "y": 2489.100100517273,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- []
- ]
- },
- {
- "id": "e9d595ba.da8798",
- "type": "execute",
- "name": "generate terminate rrmpolicy CUUP URL for configdb",
- "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$prop.restapi.configdb.removenSSAICUUPRRMPOLICY`\"/>\n <parameter name=\"outputPath\" value=\"tmp.deleteRRMPolicy-CUUP.configdb.url\"/>\n <parameter name=\"target\" value=\"{gnbCUUPId}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.cellCULocalId`\"/>\n",
- "comments": "",
- "outputs": 1,
- "x": 2589.537422180176,
- "y": 2532.100100517273,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- []
- ]
- },
- {
- "id": "75e674c6.e4e7ec",
- "type": "execute",
- "name": "prepare sNSSAI",
- "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$tmp.deleteRRMPolicy-CUUP.configdb.url`\"/>\n <parameter name=\"outputPath\" value=\"tmp.deleteRRMPolicy-CUUP.configdb.url\"/>\n <parameter name=\"target\" value=\"{sNSSAI}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.sNSSAI`\"/>",
- "comments": "",
- "outputs": 1,
- "x": 2484.537422180176,
- "y": 2617.1001014709473,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- []
- ]
- },
- {
- "id": "bcdd3642.205538",
- "type": "execute",
- "name": "prepare resourcetype",
- "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$tmp.deleteRRMPolicy-CUUP.configdb.url`\"/>\n <parameter name=\"outputPath\" value=\"tmp.deleteRRMPolicy-CUUP.configdb.url\"/>\n <parameter name=\"target\" value=\"{resourcetype}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.CURRMPolicyMembersResourceType`\"/>",
- "comments": "",
- "outputs": 1,
- "x": 2494.537422180176,
- "y": 2572.1001014709473,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- []
- ]
- },
- {
- "id": "15f1b3ba.7f395c",
- "type": "execute",
- "name": "Update nearRT RIC Details in ConfigDB",
- "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"restapiUrl\" value=\"`$prop.configdb.url + $tmp.deleteRRMPolicy-CUUP.configdb.url`\"/>\n<parameter name=\"httpMethod\" value=\"DELETE\"/>\n<parameter name=\"responsePrefix\" value=\"delete-CU-rrmpolicy-configdb-response\"/>\n<parameter name='contentType' value='application/json' /> \n<parameter name='format' value='json' />\n<parameter name='accept' value='application/json' />\n<parameter name=\"convertResponse\" value=\"true\"/>",
- "comments": "",
- "outputs": 1,
- "x": 2545.537422180176,
- "y": 2660.1001029014587,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- [
- "162e717e.ef11af",
- "f17933e5.5c686"
- ]
- ]
- },
- {
- "id": "162e717e.ef11af",
- "type": "failure",
- "name": "failure",
- "xml": "<outcome value='failure'>\n",
- "comments": "",
- "outputs": 1,
- "x": 2800.537425994873,
- "y": 2618.1001014709473,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- [
- "a07e848e.b2ec78"
- ]
- ]
- },
- {
- "id": "f17933e5.5c686",
- "type": "success",
- "name": "success",
- "xml": "<outcome value='success'>\n",
- "comments": "",
- "outputs": 1,
- "x": 2813.537425994873,
- "y": 2666.3004941940308,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- [
- "4569fa29.9761d4"
- ]
- ]
- },
- {
- "id": "a07e848e.b2ec78",
- "type": "block",
- "name": "block : atomic",
- "xml": "<block atomic='true'>",
- "atomic": "true",
- "comments": "",
- "outputs": 1,
- "x": 2961.5374298095703,
- "y": 2625.1001014709473,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- []
- ]
- },
- {
- "id": "4569fa29.9761d4",
- "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/terminateRANSlice.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"Successfully removed - gNBCU rrmpolicy Entry from configdb\"/>",
- "comments": "",
- "outputs": 1,
- "x": 2970.5374298095703,
- "y": 2667.100103378296,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- []
- ]
- },
- {
- "id": "e6acac07.9093c",
- "type": "execute",
- "name": "generate terminate PLMNInfoListEntry CellCU URL for configdb",
- "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$prop.restapi.configdb.removenSSAINRCellCU`\"/>\n <parameter name=\"outputPath\" value=\"tmp.deletePLMNInfo-CellCU.configdb.url\"/>\n <parameter name=\"target\" value=\"{idNRCellCU}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.cellCULocalId`\"/>\n",
- "comments": "",
- "outputs": 1,
- "x": 2288.737518310547,
- "y": 1520.0999784469604,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- []
- ]
- },
- {
- "id": "e003ea87.add6f8",
- "type": "execute",
- "name": "prepare sNSSAI",
- "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$tmp.deletePLMNInfo-CellCU.configdb.url`\"/>\n <parameter name=\"outputPath\" value=\"tmp.deletePLMNInfo-CellCU.configdb.url\"/>\n <parameter name=\"target\" value=\"{sNSSAI}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.sNSSAI`\"/>",
- "comments": "",
- "outputs": 1,
- "x": 2131.7375106811523,
- "y": 1559.5001745224,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- []
- ]
- },
- {
- "id": "167c0e22.901b82",
- "type": "execute",
- "name": "Update nearRT RIC Details in ConfigDB",
- "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"restapiUrl\" value=\"`$prop.configdb.url + $tmp.deletePLMNInfo-CellCU.configdb.url`\"/>\n<parameter name=\"httpMethod\" value=\"DELETE\"/>\n<parameter name=\"responsePrefix\" value=\"delete-CELLCU-plmninfo-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": 2194.737503051758,
- "y": 1608.0999794006348,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- [
- "bd05ffc.53b06",
- "75b51cd0.bcd294"
- ]
- ]
- },
- {
- "id": "bd05ffc.53b06",
- "type": "failure",
- "name": "failure",
- "xml": "<outcome value='failure'>\n",
- "comments": "",
- "outputs": 1,
- "x": 2453.1375160217285,
- "y": 1566.499979019165,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- [
- "fa6b1d08.2256f"
- ]
- ]
- },
- {
- "id": "75b51cd0.bcd294",
- "type": "success",
- "name": "success",
- "xml": "<outcome value='success'>\n",
- "comments": "",
- "outputs": 1,
- "x": 2480.1375122070312,
- "y": 1644.4999799728394,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- [
- "3dc520.c6c85ae"
- ]
- ]
- },
- {
- "id": "fa6b1d08.2256f",
- "type": "block",
- "name": "block : atomic",
- "xml": "<block atomic='true'>",
- "atomic": "true",
- "comments": "",
- "outputs": 1,
- "x": 2648.137519836426,
- "y": 1559.499979019165,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- [
- "505accef.2e3454",
- "8f30284f.20e3a8"
- ]
- ]
- },
- {
- "id": "3dc520.c6c85ae",
- "type": "block",
- "name": "block : atomic",
- "xml": "<block atomic='true'>",
- "atomic": "true",
- "comments": "",
- "outputs": 1,
- "x": 2654.137519836426,
- "y": 1637.499979019165,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- [
- "a855b0a4.5dd58"
- ]
- ]
- },
- {
- "id": "a855b0a4.5dd58",
- "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/terminateRANSlice.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"Successfully removed - CEllCU PLMNInfo Entry from configdb\"/>",
- "comments": "",
- "outputs": 1,
- "x": 2833.137523651123,
- "y": 1656.4999799728394,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- []
- ]
- },
- {
- "id": "8f30284f.20e3a8",
- "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 removing CUUP PLMNInfo. Aborting RPC executiopn'/>",
- "comments": "",
- "x": 2879.3375244140625,
- "y": 1583.499979019165,
- "z": "7dbbf2af.ccfd8c",
- "wires": []
- },
- {
- "id": "505accef.2e3454",
- "type": "set",
- "name": "set",
- "xml": "<set>\n<parameter name='error-code' value='500'/>\n<parameter name='error-message' value='Error removing CUUP PLMNInfoList. Aborting RPC executiopn'/>",
- "comments": "",
- "x": 2880.3375244140625,
- "y": 1545.4999780654907,
- "z": "7dbbf2af.ccfd8c",
- "wires": []
- },
- {
- "id": "9dac9c85.ee826",
- "type": "block",
- "name": "block : atomic",
- "xml": "<block atomic='true'>",
- "atomic": "true",
- "comments": "",
- "outputs": 1,
- "x": 2326.3374061584473,
- "y": 4142.500062942505,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- [
- "a6dc58d6.ae0068",
- "e5975bbd.e96d98",
- "c47a66d9.4f2d18"
- ]
- ]
- },
- {
- "id": "a6dc58d6.ae0068",
- "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.sNssaiListLengthDU' />\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": 2577.087371826172,
- "y": 4074.8496096134186,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- []
- ]
- },
- {
- "id": "e5975bbd.e96d98",
- "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/terminateRANSlice.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"DU_plmninfolength_nssailength \"/>\n<parameter name=\"field2\" value=\"`$tmp.sNssaiListLengthDU`\"/>\n\n",
- "comments": "",
- "outputs": 1,
- "x": 2574.087505340576,
- "y": 4125.05006313324,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- []
- ]
- },
- {
- "id": "61c3d845.b03188",
- "type": "for",
- "name": "foreach snssai",
- "xml": "<for index='id-dusnssai' start='0' end='`$tmp.sNssaiListLengthDU`'>\n",
- "comments": "",
- "outputs": 1,
- "x": 2762.087471008301,
- "y": 4289.650200128555,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- [
- "da67b0bc.8c7b3"
- ]
- ]
- },
- {
- "id": "da67b0bc.8c7b3",
- "type": "block",
- "name": "block : atomic",
- "xml": "<block atomic='true'>",
- "atomic": "true",
- "comments": "",
- "outputs": 1,
- "x": 2508.087471008301,
- "y": 4374.65024971962,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- [
- "57798dd0.ea3d04",
- "553c22c1.d7f38c",
- "ab1def53.0564f"
- ]
- ]
- },
- {
- "id": "c47a66d9.4f2d18",
- "type": "switchNode",
- "name": "check the action",
- "xml": "<switch test='`$tmp.sNssaiListLengthDU > 0`'>\n",
- "comments": "",
- "outputs": 1,
- "x": 2510.087371826172,
- "y": 4218.450199365616,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- [
- "b735ee77.c7f87",
- "f0750106.84eb4"
- ]
- ]
- },
- {
- "id": "b735ee77.c7f87",
- "type": "outcome",
- "name": "True",
- "xml": "<outcome value='true'>\n",
- "comments": "",
- "outputs": 1,
- "x": 2684.087375640869,
- "y": 4164.649807214737,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- [
- "6683083.4b909f8"
- ]
- ]
- },
- {
- "id": "f0750106.84eb4",
- "type": "outcome",
- "name": "False",
- "xml": "<outcome value='false'>\n",
- "comments": "",
- "outputs": 1,
- "x": 2678.8873767852783,
- "y": 4233.8496124744415,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- [
- "fe59e210.8af75"
- ]
- ]
- },
- {
- "id": "6683083.4b909f8",
- "type": "block",
- "name": "block : atomic",
- "xml": "<block atomic='true'>",
- "atomic": "true",
- "comments": "",
- "outputs": 1,
- "x": 2782.087377548218,
- "y": 4095.249805688858,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- [
- "61c3d845.b03188",
- "8a718a7d.e0c168"
- ]
- ]
- },
- {
- "id": "fe59e210.8af75",
- "type": "block",
- "name": "block : atomic",
- "xml": "<block atomic='true'>",
- "atomic": "true",
- "comments": "",
- "outputs": 1,
- "x": 2824.087474822998,
- "y": 4235.249807596207,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- [
- "4a9dab66.0d6df4"
- ]
- ]
- },
- {
- "id": "4a9dab66.0d6df4",
- "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/terminateRANSlice.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"plmninfolistnssailength in false in DU \"/>\n<parameter name=\"field2\" value=\"`$tmp.sNssaiListLengthDU`\"/>\n\n",
- "comments": "",
- "outputs": 1,
- "x": 2901.6873779296875,
- "y": 4180.449808359146,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- []
- ]
- },
- {
- "id": "8a718a7d.e0c168",
- "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/terminateRANSlice.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"plmninfolistnssailength in true in DU \"/>\n<parameter name=\"field2\" value=\"`$tmp.sNssaiListLengthDU`\"/>\n\n",
- "comments": "",
- "outputs": 1,
- "x": 2929.4874534606934,
- "y": 4074.449804544449,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- []
- ]
- },
- {
- "id": "4e83f89.0415408",
- "type": "block",
- "name": "block : atomic",
- "xml": "<block atomic='true'>",
- "atomic": "true",
- "comments": "",
- "outputs": 1,
- "x": 2608.137420654297,
- "y": 452.8999967575073,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- [
- "e0137cdd.35094",
- "e1c52a0a.9a7108",
- "5859fc47.20bfd4"
- ]
- ]
- },
- {
- "id": "e0137cdd.35094",
- "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.sNssaiListLengthCU' />\n\t<parameter name='source' value=\"`'getNFNSSIRIC-configdb-response.['+ $idy +'].gNBCUCPList['+ $idz +'].cellCUList['+ $idcu +'].pLMNInfoList['+ $id-cuplmn +'].sNSSAI_length'`\" />",
- "comments": "",
- "outputs": 1,
- "x": 2858.8873863220215,
- "y": 385.249543428421,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- []
- ]
- },
- {
- "id": "e1c52a0a.9a7108",
- "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/terminateRANSlice.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"CU_plmninfolength_nssailength \"/>\n<parameter name=\"field2\" value=\"`$tmp.sNssaiListLengthCU`\"/>\n\n",
- "comments": "",
- "outputs": 1,
- "x": 2855.887519836426,
- "y": 435.4499969482422,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- []
- ]
- },
- {
- "id": "9aa06737.51c1f8",
- "type": "for",
- "name": "foreach snssai",
- "xml": "<for index='id-cusnssai' start='0' end='`$tmp.sNssaiListLengthCU`'>\n",
- "comments": "",
- "outputs": 1,
- "x": 3043.8874855041504,
- "y": 600.0501339435577,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- [
- "ad6ce437.1f4cf8"
- ]
- ]
- },
- {
- "id": "5859fc47.20bfd4",
- "type": "switchNode",
- "name": "check the action",
- "xml": "<switch test='`$tmp.sNssaiListLengthCU > 0`'>\n",
- "comments": "",
- "outputs": 1,
- "x": 2791.8873863220215,
- "y": 528.8501331806183,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- [
- "aa737ed1.6a961",
- "c8177674.b30438"
- ]
- ]
- },
- {
- "id": "aa737ed1.6a961",
- "type": "outcome",
- "name": "True",
- "xml": "<outcome value='true'>\n",
- "comments": "",
- "outputs": 1,
- "x": 2965.8873901367188,
- "y": 475.0497410297394,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- [
- "f2b53721.af67c8"
- ]
- ]
- },
- {
- "id": "c8177674.b30438",
- "type": "outcome",
- "name": "False",
- "xml": "<outcome value='false'>\n",
- "comments": "",
- "outputs": 1,
- "x": 2961.6875610351562,
- "y": 525.2495641708374,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- [
- "f3ce3792.e50918"
- ]
- ]
- },
- {
- "id": "f2b53721.af67c8",
- "type": "block",
- "name": "block : atomic",
- "xml": "<block atomic='true'>",
- "atomic": "true",
- "comments": "",
- "outputs": 1,
- "x": 3063.8873920440674,
- "y": 405.6497395038605,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- [
- "9aa06737.51c1f8",
- "2efddcd5.94ceb4"
- ]
- ]
- },
- {
- "id": "f3ce3792.e50918",
- "type": "block",
- "name": "block : atomic",
- "xml": "<block atomic='true'>",
- "atomic": "true",
- "comments": "",
- "outputs": 1,
- "x": 3114.887565612793,
- "y": 537.6497592926025,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- [
- "b7522f6c.9b0c8"
- ]
- ]
- },
- {
- "id": "b7522f6c.9b0c8",
- "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/terminateRANSlice.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"plmninfolistnssailength in false in CU \"/>\n<parameter name=\"field2\" value=\"`$tmp.sNssaiListLengthCU`\"/>\n\n",
- "comments": "",
- "outputs": 1,
- "x": 3291.4873695373535,
- "y": 534.8497343063354,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- []
- ]
- },
- {
- "id": "2efddcd5.94ceb4",
- "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/terminateRANSlice.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"plmninfolistnssailength in true in CU \"/>\n<parameter name=\"field2\" value=\"`$tmp.sNssaiListLengthCU`\"/>\n\n",
- "comments": "",
- "outputs": 1,
- "x": 3211.287467956543,
- "y": 384.8497383594513,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- []
- ]
- },
- {
- "id": "f35c14d5.f3fb48",
- "type": "switchNode",
- "name": "check the action for terminate",
- "xml": "<switch test='`$terminate-r-a-n-slice-instance-input.action == deallocate`'>\n",
- "comments": "",
- "outputs": 1,
- "x": 626.9374694824219,
- "y": 260.00000619888306,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- [
- "be39d2c7.72ae8",
- "1e70a6a7.0c1ba9"
- ]
- ]
- },
- {
- "id": "be39d2c7.72ae8",
- "type": "outcome",
- "name": "True",
- "xml": "<outcome value='true'>\n",
- "comments": "",
- "outputs": 1,
- "x": 836.9374694824219,
- "y": 179.00000619888306,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- [
- "ba308818.919e88"
- ]
- ]
- },
- {
- "id": "1e70a6a7.0c1ba9",
- "type": "outcome",
- "name": "False",
- "xml": "<outcome value='false'>\n",
- "comments": "",
- "outputs": 1,
- "x": 855.9374580383301,
- "y": 333.0000295639038,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- [
- "795710d6.8ab0a"
- ]
- ]
- },
- {
- "id": "a8659210.b1071",
- "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/terminateRANSlice.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"modify deallocate called\" />\n\n",
- "comments": "",
- "outputs": 1,
- "x": 1186.7382202148438,
- "y": 298.80010509490967,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- []
- ]
- },
- {
- "id": "ba308818.919e88",
- "type": "block",
- "name": "block : atomic",
- "xml": "<block atomic='true'>",
- "atomic": "true",
- "comments": "",
- "outputs": 1,
- "x": 1006.9375495910645,
- "y": 171.20005559921265,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- [
- "2961a7d4.e35bb8",
- "ab273474.d6aa08"
- ]
- ]
- },
- {
- "id": "795710d6.8ab0a",
- "type": "block",
- "name": "block : atomic",
- "xml": "<block atomic='true'>",
- "atomic": "true",
- "comments": "",
- "outputs": 1,
- "x": 1016.9376525878906,
- "y": 333.20002937316895,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- [
- "a8659210.b1071",
- "411586f6.d75028"
- ]
- ]
- },
- {
- "id": "2961a7d4.e35bb8",
- "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/terminateRANSlice.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"deallocate called\" />\n\n",
- "comments": "",
- "outputs": 1,
- "x": 1177.7374382019043,
- "y": 105.00000953674316,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- []
- ]
- },
- {
- "id": "71ee3244.3f6c6c",
- "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-context.log' />\n\n\n",
- "comments": "",
- "outputs": 1,
- "x": 3269.737518310547,
- "y": 198.00000476837158,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- []
- ]
- },
- {
- "id": "ea4a7f65.a142d",
- "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/terminateRANSlice.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"Payload for terminateRANSlice.: \"/>\n<parameter name=\"field2\" value=\"`$tmp.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": 3288.4874153137207,
- "y": 242.50000476837158,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- []
- ]
- },
- {
- "id": "2332d772.0a7c98",
- "type": "switchNode",
- "name": "check action",
- "xml": "<switch test='`$tmp.action`'>",
- "comments": "",
- "outputs": 1,
- "x": 3289.2377166748047,
- "y": 129.25000286102295,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- [
- "64feef5b.a749",
- "e60a8ab4.836f68"
- ]
- ]
- },
- {
- "id": "64feef5b.a749",
- "type": "success",
- "name": "deallocate",
- "xml": "<outcome value='deallocate'>\n",
- "comments": "",
- "outputs": 1,
- "x": 3476.237518310547,
- "y": 140.0000286102295,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- [
- "5f43b123.70519"
- ]
- ]
- },
- {
- "id": "d8c0873e.407948",
- "type": "execute",
- "name": "read sNSSAI from sliceProfile",
- "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'>\n\t<parameter name='outputPath' value='tmp.sNSSAI' />\n\t<parameter name='source' value=\"`$payloadJson.input.sliceProfile.sNSSAI`\" />\n",
- "comments": "",
- "outputs": 1,
- "x": 3887.237724304199,
- "y": 214.0000057220459,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- []
- ]
- },
- {
- "id": "e60a8ab4.836f68",
- "type": "failure",
- "name": "modify-deallocate",
- "xml": "<outcome value='modify-deallocate'>\n",
- "comments": "",
- "outputs": 1,
- "x": 3471.237518310547,
- "y": 238.00000476837158,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- [
- "3a14a027.4fa99"
- ]
- ]
- },
- {
- "id": "282e962e.a0db5a",
- "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/terminateRANSlice.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"sNSSAI: \"/>\n<parameter name=\"field2\" value=\"`$tmp.sNSSAI`\"/>\n\n\n",
- "comments": "",
- "outputs": 1,
- "x": 3848.487522125244,
- "y": 168.00000476837158,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- []
- ]
- },
- {
- "id": "5f43b123.70519",
- "type": "block",
- "name": "block : atomic",
- "xml": "<block atomic='true'>",
- "atomic": "true",
- "comments": "",
- "outputs": 1,
- "x": 3648.487518310547,
- "y": 140.00000476837158,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- [
- "282e962e.a0db5a",
- "d55c8f44.8dcb4"
- ]
- ]
- },
- {
- "id": "d55c8f44.8dcb4",
- "type": "set",
- "name": "read sNSSAI from input",
- "xml": "<set>\n<parameter name='tmp.sNSSAI' value=\"`$payloadJson.input.sNSSAI`\"/>",
- "comments": "",
- "x": 3850.4875259399414,
- "y": 119.00000381469727,
- "z": "7dbbf2af.ccfd8c",
- "wires": []
- },
- {
- "id": "fc0ce4ec.2b3278",
- "type": "set",
- "name": "read action from input",
- "xml": "<set>\n<parameter name='tmp.action' value=\"`$terminate-r-a-n-slice-instance-input.action`\"/>",
- "comments": "",
- "x": 3307.987518310547,
- "y": 82.50000286102295,
- "z": "7dbbf2af.ccfd8c",
- "wires": []
- },
- {
- "id": "3a14a027.4fa99",
- "type": "block",
- "name": "block : atomic",
- "xml": "<block atomic='true'>",
- "atomic": "true",
- "comments": "",
- "outputs": 1,
- "x": 3665.0375213623047,
- "y": 234.50000476837158,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- [
- "d8c0873e.407948",
- "73ad016b.f6a04"
- ]
- ]
- },
- {
- "id": "73ad016b.f6a04",
- "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/terminateRANSlice.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"modify-deallocate-sNSSAI: \"/>\n<parameter name=\"field2\" value=\"`$tmp.sNSSAI`\"/>\n\n\n",
- "comments": "",
- "outputs": 1,
- "x": 3907.037525177002,
- "y": 282.5000066757202,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- []
- ]
- },
- {
- "id": "fdf53f68.9b808",
- "type": "execute",
- "name": "execute jsonStringToCtx",
- "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='jsonStringToCtx'>\n\t<parameter name='source' value='terminate-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": 2701.137420654297,
- "y": 169.50000286102295,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- [
- "c5d7c697.59a738"
- ]
- ]
- },
- {
- "id": "c5d7c697.59a738",
- "type": "other",
- "name": "success",
- "xml": "<outcome value='success'>\n",
- "comments": "",
- "outputs": 1,
- "x": 2902.3872299194336,
- "y": 158.75000286102295,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- [
- "ffce6f8f.d9463"
- ]
- ]
- },
- {
- "id": "ffce6f8f.d9463",
- "type": "block",
- "name": "block : atomic",
- "xml": "<block atomic='true'>",
- "atomic": "true",
- "comments": "",
- "outputs": 1,
- "x": 3068.3873291015625,
- "y": 152.75000286102295,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- [
- "fc0ce4ec.2b3278",
- "2332d772.0a7c98",
- "71ee3244.3f6c6c",
- "ea4a7f65.a142d"
- ]
- ]
- },
- {
- "id": "411586f6.d75028",
- "type": "execute",
- "name": "execute jsonStringToCtx",
- "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='jsonStringToCtx'>\n\t<parameter name='source' value='instantiate-r-a-n-slice-input.payload' />\n\t<parameter name='outputPath' value='payloadJson' />\n\t<parameter name='isEscaped' value='false' />",
- "comments": "",
- "outputs": 1,
- "x": 1300.1376342773438,
- "y": 379.5000066757202,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- [
- "1ea03f41.d87241"
- ]
- ]
- },
- {
- "id": "1ea03f41.d87241",
- "type": "other",
- "name": "success",
- "xml": "<outcome value='success'>\n",
- "comments": "",
- "outputs": 1,
- "x": 1561.1374435424805,
- "y": 327.50000286102295,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- [
- "235ab0fa.baf27"
- ]
- ]
- },
- {
- "id": "235ab0fa.baf27",
- "type": "block",
- "name": "block : atomic",
- "xml": "<block atomic='true'>",
- "atomic": "true",
- "comments": "",
- "outputs": 1,
- "x": 1732.1374435424805,
- "y": 328.50000381469727,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- [
- "e9ab7ba8.ba2a48",
- "3ab109e1.469ed6",
- "531ec500.b69ecc",
- "c2795157.ead99",
- "c46cff24.3f3ca",
- "4e9ea98d.a94e08"
- ]
- ]
- },
- {
- "id": "e9ab7ba8.ba2a48",
- "type": "set",
- "name": "read action from input",
- "xml": "<set>\n<parameter name='tmp.action' value=\"`$instantiate-r-a-n-slice-input.action`\"/>",
- "comments": "",
- "x": 1952.1375427246094,
- "y": 310.5000066757202,
- "z": "7dbbf2af.ccfd8c",
- "wires": []
- },
- {
- "id": "3ab109e1.469ed6",
- "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-context.log' />\n\n\n",
- "comments": "",
- "outputs": 1,
- "x": 1922.137451171875,
- "y": 347.50000286102295,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- []
- ]
- },
- {
- "id": "531ec500.b69ecc",
- "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/terminateRANSlice.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"Payload for modifyallocateRANSlice.: \"/>\n<parameter name=\"field2\" value=\"`$payloadJson.input.RANNFNSSIId`\"/>\n<parameter name=\"field3\" value=\"`$payloadJson.input.callbackURL`\"/>\n<parameter name=\"field4\" value=\"`$payloadJson.input.sliceProfile.sliceProfileId`\"/>\n\n\n\n",
- "comments": "",
- "outputs": 1,
- "x": 1920.8872528076172,
- "y": 394.00000381469727,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- []
- ]
- },
- {
- "id": "c2795157.ead99",
- "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/terminateRANSlice.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"modify-deallocate-sNSSAI: \"/>\n<parameter name=\"field2\" value=\"`$tmp.sNSSAI`\"/>\n<parameter name=\"field3\" value=\"`$tmp.sliceprofileid`\"/>\n\n\n",
- "comments": "",
- "outputs": 1,
- "x": 1912.337547302246,
- "y": 528.0000104904175,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- []
- ]
- },
- {
- "id": "ab273474.d6aa08",
- "type": "execute",
- "name": "execute jsonStringToCtx",
- "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='jsonStringToCtx'>\n\t<parameter name='source' value='terminate-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": 1395.7375373840332,
- "y": 182.50000286102295,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- [
- "cee69f4f.a2b73"
- ]
- ]
- },
- {
- "id": "cee69f4f.a2b73",
- "type": "other",
- "name": "success",
- "xml": "<outcome value='success'>\n",
- "comments": "",
- "outputs": 1,
- "x": 1597.7374954223633,
- "y": 108.50000095367432,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- [
- "5123566a.747ba8"
- ]
- ]
- },
- {
- "id": "5123566a.747ba8",
- "type": "block",
- "name": "block : atomic",
- "xml": "<block atomic='true'>",
- "atomic": "true",
- "comments": "",
- "outputs": 1,
- "x": 1768.7374954223633,
- "y": 109.50000190734863,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- [
- "22cf997a.f16fb6",
- "2452aeb0.585dd2",
- "df34217.cef9be",
- "4c89e4b7.f008ac",
- "1ae4e467.6f532c",
- "fe6ed4e9.3b1f78"
- ]
- ]
- },
- {
- "id": "22cf997a.f16fb6",
- "type": "set",
- "name": "read action from input",
- "xml": "<set>\n<parameter name='tmp.action' value=\"`$terminate-r-a-n-slice-instance-input.action`\"/>",
- "comments": "",
- "x": 1988.7374954223633,
- "y": 86.50000095367432,
- "z": "7dbbf2af.ccfd8c",
- "wires": []
- },
- {
- "id": "2452aeb0.585dd2",
- "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-context.log' />\n\n\n",
- "comments": "",
- "outputs": 1,
- "x": 1958.7375030517578,
- "y": 128.50000095367432,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- []
- ]
- },
- {
- "id": "df34217.cef9be",
- "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/terminateRANSlice.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"Payload for terminateRANSlice.: \"/>\n<parameter name=\"field2\" value=\"`$tmp.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": 1951.7375183105469,
- "y": 165.50000286102295,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- []
- ]
- },
- {
- "id": "1ae4e467.6f532c",
- "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/terminateRANSlice.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"DEallocate sNSSAI: \"/>\n<parameter name=\"field2\" value=\"`$tmp.sNSSAI`\"/>\n<parameter name=\"field3\" value=\"`$tmp.sliceprofileid`\"/>\n\n\n",
- "comments": "",
- "outputs": 1,
- "x": 1953.737548828125,
- "y": 273.5000066757202,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- []
- ]
- },
- {
- "id": "4c89e4b7.f008ac",
- "type": "set",
- "name": "read sNSSAI from input",
- "xml": "<set>\n<parameter name='tmp.sNSSAI' value=\"`$payloadJson.input.sNSSAI`\"/>",
- "comments": "",
- "x": 2018.737548828125,
- "y": 203.50000476837158,
- "z": "7dbbf2af.ccfd8c",
- "wires": []
- },
- {
- "id": "c46cff24.3f3ca",
- "type": "set",
- "name": "read sNSSAI from input sliceprofile",
- "xml": "<set>\n<parameter name='tmp.sNSSAI' value=\"`$payloadJson.input.sliceProfile.sNSSAI`\"/>",
- "comments": "",
- "x": 1977.3374938964844,
- "y": 438.50000286102295,
- "z": "7dbbf2af.ccfd8c",
- "wires": []
- },
- {
- "id": "4e9ea98d.a94e08",
- "type": "set",
- "name": "read SpId from input sliceprofile",
- "xml": "<set>\n<parameter name='tmp.sliceprofileid' value=\"`$payloadJson.input.sliceProfile.sliceProfileId`\"/>",
- "comments": "",
- "x": 2004.7375183105469,
- "y": 483.50000286102295,
- "z": "7dbbf2af.ccfd8c",
- "wires": []
- },
- {
- "id": "fe6ed4e9.3b1f78",
- "type": "set",
- "name": "read SpId from input ",
- "xml": "<set>\n<parameter name='tmp.sliceprofileid' value=\"`$payloadJson.input.sliceProfileId`\"/>",
- "comments": "",
- "x": 2042.737548828125,
- "y": 237.50000476837158,
- "z": "7dbbf2af.ccfd8c",
- "wires": []
- },
- {
- "id": "9c27065a.121fe8",
- "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'`\" />",
- "comments": "",
- "outputs": 1,
- "x": 847.5,
- "y": 761.875,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- []
- ]
- },
- {
- "id": "dc6f5c5d.19069",
- "type": "switchNode",
- "name": "ransim mounted",
- "xml": "<switch test='`$prop.ransim-mounted`'>\n",
- "comments": "",
- "outputs": 1,
- "x": 830.3125,
- "y": 814.6875,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- [
- "b9eb91f2.91722",
- "9e6449f8.230918"
- ]
- ]
- },
- {
- "id": "b9eb91f2.91722",
- "type": "outcome",
- "name": "Not Mounted",
- "xml": "<outcome value='false'>\n",
- "comments": "",
- "outputs": 1,
- "x": 1047.8125305175781,
- "y": 730.4373331069946,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- [
- "9cfb3d86.53f5d"
- ]
- ]
- },
- {
- "id": "9e6449f8.230918",
- "type": "outcome",
- "name": "Mounted",
- "xml": "<outcome value='true'>\n",
- "comments": "",
- "outputs": 1,
- "x": 1037.3125,
- "y": 771.9375038146973,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- [
- "c06723d0.11693"
- ]
- ]
- },
- {
- "id": "c06723d0.11693",
- "type": "block",
- "name": "ransim URL",
- "xml": "<block atomic='true'>",
- "atomic": "true",
- "comments": "",
- "outputs": 1,
- "x": 1186.3121643066406,
- "y": 784.9376091957092,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- [
- "a6810ff4.93fe9",
- "759b90a0.4de46"
- ]
- ]
- },
- {
- "id": "9cfb3d86.53f5d",
- "type": "execute",
- "name": "generate remove sliceProfile url",
- "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$prop.restapi.nearrtric.removeSliceProfile`\"/>\n <parameter name=\"outputPath\" value=\"tmp.deleteSliceProfileEntry.url\"/>\n <parameter name=\"target\" value=\"{idNearRTRIC}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.nearRTRICId`\"/>\n",
- "comments": "",
- "outputs": 1,
- "x": 1318.5624313354492,
- "y": 728.1875038146973,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- []
- ]
- },
- {
- "id": "a6810ff4.93fe9",
- "type": "execute",
- "name": "generate sliceprofile removal",
- "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$prop.restapi.nearrtric.removeSliceProfile.ransim-mounted`\"/>\n <parameter name=\"outputPath\" value=\"tmp.deleteSliceProfileEntry.url\"/>\n <parameter name=\"target\" value=\"{idNearRTRIC}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.nearRTRICId`\"/>",
- "comments": "",
- "outputs": 1,
- "x": 1084.562156677246,
- "y": 849.9374575614929,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- []
- ]
- },
- {
- "id": "759b90a0.4de46",
- "type": "execute",
- "name": "populate mountName",
- "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$tmp.deleteSliceProfileEntry.url`\"/>\n <parameter name=\"outputPath\" value=\"tmp.deleteSliceProfileEntry.url\"/>\n <parameter name=\"target\" value=\"{mountName}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.nearRTRICId`\"/>",
- "comments": "",
- "outputs": 1,
- "x": 1007.312614440918,
- "y": 890.4376420974731,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- []
- ]
- },
- {
- "id": "cd467a3c.ebd308",
- "type": "execute",
- "name": "Remove Slice Profile",
- "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"restapiUrl\" value=\"`$prop.controller.url + $tmp.deleteSliceProfileEntry.url`\"/>\n<parameter name=\"restapiUser\" value=\"`$prop.controller.user`\" />\n<parameter name=\"restapiPassword\" value=\"`$prop.controller.pwd`\"/>\n<parameter name=\"httpMethod\" value=\"DELETE\"/>\n<parameter name=\"responsePrefix\" value=\"delete-slice-profile-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\"/>\n",
- "comments": "",
- "outputs": 1,
- "x": 1007.812614440918,
- "y": 1044.6875190734863,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- [
- "248f7539.80f80a",
- "fe50e02f.34e6a"
- ]
- ]
- },
- {
- "id": "248f7539.80f80a",
- "type": "failure",
- "name": "failure",
- "xml": "<outcome value='failure'>\n",
- "comments": "",
- "outputs": 1,
- "x": 1209.0625,
- "y": 913.4375,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- [
- "474adbe.5237424"
- ]
- ]
- },
- {
- "id": "fe50e02f.34e6a",
- "type": "success",
- "name": "success",
- "xml": "<outcome value='success'>\n",
- "comments": "",
- "outputs": 1,
- "x": 1192.3806381225586,
- "y": 986.0965933799744,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- [
- "9d8f45bc.4383f8"
- ]
- ]
- },
- {
- "id": "474adbe.5237424",
- "type": "block",
- "name": "block : atomic",
- "xml": "<block atomic='true'>",
- "atomic": "true",
- "comments": "",
- "outputs": 1,
- "x": 1375.9375,
- "y": 894.6875,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- [
- "579a1802.2390b8",
- "53530b53.9b2494"
- ]
- ]
- },
- {
- "id": "53530b53.9b2494",
- "type": "set",
- "name": "set",
- "xml": "<set>\n<parameter name='error-code' value='500'/>\n<parameter name='error-message' value='Error updating nearRTRIC info in ConfigDB. Aborting RPC executiopn'/>",
- "comments": "",
- "x": 1524.9371910095215,
- "y": 857.7984781265259,
- "z": "7dbbf2af.ccfd8c",
- "wires": []
- },
- {
- "id": "579a1802.2390b8",
- "type": "returnFailure",
- "name": "return failure",
- "xml": "<return status='failure'>\n<parameter name='ack-final' value='Y'/>\n<parameter name='error-code' value='500'/>\n<parameter name='error-message' value='Error updating nearRTRIC info in ConfigDB. Aborting RPC executiopn'/>",
- "comments": "",
- "x": 1538.9371948242188,
- "y": 932.6875467300415,
- "z": "7dbbf2af.ccfd8c",
- "wires": []
- },
- {
- "id": "17e5f427.41e40c",
- "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/terminateRANSlice.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"Successfully REmoved Slice Profile\"/>",
- "comments": "",
- "outputs": 1,
- "x": 1453.4375305175781,
- "y": 1054.6875228881836,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- []
- ]
- },
- {
- "id": "9d8f45bc.4383f8",
- "type": "block",
- "name": "block : atomic",
- "xml": "<block atomic='true'>",
- "atomic": "true",
- "comments": "",
- "outputs": 1,
- "x": 1373.9374923706055,
- "y": 1000.4374145269394,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- [
- "17e5f427.41e40c"
- ]
- ]
- },
- {
- "id": "13495f7c.967481",
- "type": "execute",
- "name": "prepare slice profile id",
- "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$tmp.deleteSliceProfileEntry.url`\"/>\n <parameter name=\"outputPath\" value=\"tmp.deleteSliceProfileEntry.url\"/>\n <parameter name=\"target\" value=\"{sliceProfileId}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.sliceprofileid`\"/>",
- "comments": "",
- "outputs": 1,
- "x": 929.3750038146973,
- "y": 950.9375200271606,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- []
- ]
- },
- {
- "id": "4d8386dc.633268",
- "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/terminateRANSlice.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"sliceprofileid\"/>\n<parameter name=\"field2\" value=\"`$tmp.sliceprofileid`\" />\n<parameter name=\"field3\" value=\"nearRTRICId\"/>\n<parameter name=\"field4\" value=\"`$tmp.nearRTRICId`\" />\n<parameter name=\"field5\" value=\"endpoint URL\"/>\n<parameter name=\"field6\" value=\"`$tmp.deleteSliceProfileEntry.url`\" />\n",
- "comments": "",
- "outputs": 1,
- "x": 909.0625,
- "y": 999.6875,
- "z": "7dbbf2af.ccfd8c",
- "wires": [
- []
- ]
}
] \ No newline at end of file
diff --git a/platform-logic/ran-slice-api/src/main/xml/ran-slice-api_terminateRANSliceInstance-configDb.xml b/platform-logic/ran-slice-api/src/main/xml/ran-slice-api_terminateRANSliceInstance-configDb.xml
new file mode 100644
index 00000000..8b29480a
--- /dev/null
+++ b/platform-logic/ran-slice-api/src/main/xml/ran-slice-api_terminateRANSliceInstance-configDb.xml
@@ -0,0 +1,2675 @@
+<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='terminateRANSliceInstance-configDb' mode='sync'>
+ <block atomic='true'>
+ <block atomic='true'>
+ <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
+ <parameter name="file" value="/opt/opendaylight/current/data/log/terminateRANSlice.log" />
+ <parameter name="level" value="info" />
+ <parameter name="field1" value="RPC to handle terminateRANSlice.: "/>
+ <parameter name="field2" value="`$terminate-r-a-n-slice-instance-input.action`"/>
+ <parameter name="field3" value="`$terminate-r-a-n-slice-instance-input.common-header.timestamp`"/>
+ <parameter name="field4" value="`$terminate-r-a-n-slice-instance-input.common-header.request-id`"/>
+ <parameter name="field5" value="`$terminate-r-a-n-slice-instance-input.common-header.originator-id`"/>
+ <parameter name="field6" value="RPC Payload String "/>
+ <parameter name="field7" value="`$terminate-r-a-n-slice-instance-input.payload`"/>
+ </record>
+ <set>
+ <parameter name='error-code' value='200' />
+ <parameter name='error-message' value='Successful execution of terminateRANSice RPC' />
+ </set>
+ <switch test='`$terminate-r-a-n-slice-instance-input.action == deallocate`'>
+ <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/terminateRANSlice.log" />
+ <parameter name="level" value="info" />
+ <parameter name="field1" value="deallocate called" />
+ </record>
+ <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='jsonStringToCtx'>
+ <parameter name='source' value='terminate-r-a-n-slice-instance-input.payload' />
+ <parameter name='outputPath' value='payloadJson' />
+ <parameter name='isEscaped' value='false' />
+ <outcome value='success'>
+ <block atomic='true'>
+ <set>
+ <parameter name='tmp.action' value="`$terminate-r-a-n-slice-instance-input.action`"/>
+ </set>
+ <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='printContext' >
+ <parameter name='filename' value='/opt/opendaylight/current/data/log/ranSlice-terminateRANSlice-context.log' />
+ </execute>
+ <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
+ <parameter name="file" value="/opt/opendaylight/current/data/log/terminateRANSlice.log" />
+ <parameter name="level" value="info" />
+ <parameter name="field1" value="Payload for terminateRANSlice.: "/>
+ <parameter name="field2" value="`$tmp.sNSSAI`"/>
+ <parameter name="field3" value="`$payloadJson.input.RANNFNSSIId`"/>
+ <parameter name="field4" value="`$payloadJson.input.callbackURL`"/>
+ <parameter name="field5" value="`$payloadJson.input.sliceProfileId`"/>
+ </record>
+ <set>
+ <parameter name='tmp.sNSSAI' value="`$payloadJson.input.sNSSAI`"/>
+ </set>
+ <set>
+ <parameter name='tmp.sliceprofileid' value="`$payloadJson.input.sliceProfileId`"/>
+ </set>
+ <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
+ <parameter name="file" value="/opt/opendaylight/current/data/log/terminateRANSlice.log" />
+ <parameter name="level" value="info" />
+ <parameter name="field1" value="DEallocate sNSSAI: "/>
+ <parameter name="field2" value="`$tmp.sNSSAI`"/>
+ <parameter name="field3" value="`$tmp.sliceprofileid`"/>
+ </record>
+ </block>
+ </outcome>
+ </execute>
+ </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/terminateRANSlice.log" />
+ <parameter name="level" value="info" />
+ <parameter name="field1" value="modify deallocate called" />
+ </record>
+ <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='jsonStringToCtx'>
+ <parameter name='source' value='instantiate-r-a-n-slice-input.payload' />
+ <parameter name='outputPath' value='payloadJson' />
+ <parameter name='isEscaped' value='false' />
+ <outcome value='success'>
+ <block atomic='true'>
+ <set>
+ <parameter name='tmp.action' value="`$instantiate-r-a-n-slice-input.action`"/>
+ </set>
+ <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='printContext' >
+ <parameter name='filename' value='/opt/opendaylight/current/data/log/ranSlice-terminateRANSlice-context.log' />
+ </execute>
+ <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
+ <parameter name="file" value="/opt/opendaylight/current/data/log/terminateRANSlice.log" />
+ <parameter name="level" value="info" />
+ <parameter name="field1" value="Payload for modifyallocateRANSlice.: "/>
+ <parameter name="field2" value="`$payloadJson.input.RANNFNSSIId`"/>
+ <parameter name="field3" value="`$payloadJson.input.callbackURL`"/>
+ <parameter name="field4" value="`$payloadJson.input.sliceProfile.sliceProfileId`"/>
+ </record>
+ <set>
+ <parameter name='tmp.sNSSAI' value="`$payloadJson.input.sliceProfile.sNSSAI`"/>
+ </set>
+ <set>
+ <parameter name='tmp.sliceprofileid' value="`$payloadJson.input.sliceProfile.sliceProfileId`"/>
+ </set>
+ <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
+ <parameter name="file" value="/opt/opendaylight/current/data/log/terminateRANSlice.log" />
+ <parameter name="level" value="info" />
+ <parameter name="field1" value="modify-deallocate-sNSSAI: "/>
+ <parameter name="field2" value="`$tmp.sNSSAI`"/>
+ <parameter name="field3" value="`$tmp.sliceprofileid`"/>
+ </record>
+ </block>
+ </outcome>
+ </execute>
+ </block>
+ </outcome>
+ </switch>
+ <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='printContext' >
+ <parameter name='filename' value='/opt/opendaylight/current/data/log/ranSlice-terminateRANSlice-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/terminateRANSlice.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>
+ <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/terminateRANSlice.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="success"/>
+ <parameter name="tmp.reason" value="`$error-message`"/>
+ <parameter name="tmp.requestID" value="`$terminate-r-a-n-slice-input.common-header.request-id `"/>
+ <parameter name="tmp.action" value="`$terminate-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="`$payloadJson.input.callbackURL`"/>
+ <parameter name="httpMethod" value="POST"/>
+ <parameter name="responsePrefix" value="so-callback-terminate-response"/>
+ <parameter name='contentType' value='application/json' />
+ <parameter name='format' value='json' />
+ <parameter name='accept' value='*/*' />
+ <parameter name="convertResponse" value="true"/>
+ <parameter name="restapiUser" value="`$prop.restapi.so.user`" />
+ <parameter name="restapiPassword" value="`$prop.restapi.so.password`"/>
+ <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/terminateRANSlice.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/terminateRANSlice.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-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.configdb.getplmn`"/>
+ <parameter name="outputPath" value="tmp.configdb.getPLMNId.url"/>
+ <parameter name="target" value="{sliceProfileId}"/>
+ <parameter name="replacement" value="`$tmp.sliceprofileid`"/>
+ </execute>
+ <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
+ <parameter name="file" value="/opt/opendaylight/current/data/log/terminateRANSlice.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>
+ <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>
+ <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
+ <parameter name="file" value="/opt/opendaylight/current/data/log/terminateRANSlice.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>
+ </block>
+ <for index='idy' start='0' end='`$getNFNSSIRIC-configdb-response._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>
+ <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.nearrtric.removeSliceProfile`"/>
+ <parameter name="outputPath" value="tmp.deleteSliceProfileEntry.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.nearrtric.removeSliceProfile.ransim-mounted`"/>
+ <parameter name="outputPath" value="tmp.deleteSliceProfileEntry.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.deleteSliceProfileEntry.url`"/>
+ <parameter name="outputPath" value="tmp.deleteSliceProfileEntry.url"/>
+ <parameter name="target" value="{mountName}"/>
+ <parameter name="replacement" value="`$tmp.nearRTRICId`"/>
+ </execute>
+ </block>
+ </outcome>
+ </switch>
+ <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >
+ <parameter name="source" value="`$tmp.deleteSliceProfileEntry.url`"/>
+ <parameter name="outputPath" value="tmp.deleteSliceProfileEntry.url"/>
+ <parameter name="target" value="{sliceProfileId}"/>
+ <parameter name="replacement" value="`$tmp.sliceprofileid`"/>
+ </execute>
+ <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
+ <parameter name="file" value="/opt/opendaylight/current/data/log/terminateRANSlice.log" />
+ <parameter name="level" value="info" />
+ <parameter name="field1" value="sliceprofileid"/>
+ <parameter name="field2" value="`$tmp.sliceprofileid`" />
+ <parameter name="field3" value="nearRTRICId"/>
+ <parameter name="field4" value="`$tmp.nearRTRICId`" />
+ <parameter name="field5" value="endpoint URL"/>
+ <parameter name="field6" value="`$tmp.deleteSliceProfileEntry.url`" />
+ </record>
+ <execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >
+ <parameter name="restapiUrl" value="`$prop.controller.url + $tmp.deleteSliceProfileEntry.url`"/>
+ <parameter name="restapiUser" value="`$prop.controller.user`" />
+ <parameter name="restapiPassword" value="`$prop.controller.pwd`"/>
+ <parameter name="httpMethod" value="DELETE"/>
+ <parameter name="responsePrefix" value="delete-slice-profile-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 atomic='true'>
+ <set>
+ <parameter name='error-code' value='500'/>
+ <parameter name='error-message' value='Error updating nearRTRIC info in ConfigDB. Aborting RPC executiopn'/>
+ </set>
+ <return status='failure'>
+ <parameter name='ack-final' value='Y'/>
+ <parameter name='error-code' value='500'/>
+ <parameter name='error-message' value='Error updating nearRTRIC info in ConfigDB. Aborting RPC executiopn'/>
+ </return>
+ </block>
+ </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/terminateRANSlice.log" />
+ <parameter name="level" value="info" />
+ <parameter name="field1" value="Successfully REmoved Slice Profile"/>
+ </record>
+ </block>
+ </outcome>
+ </execute>
+ <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'>
+ <parameter name='outputPath' value='tmp.RICPLMNEntries' />
+ <parameter name='source' value="`'getNFNSSIRIC-configdb-response.['+ $idy +'].pLMNInfoList_length'`" />
+ </execute>
+ <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
+ <parameter name="file" value="/opt/opendaylight/current/data/log/terminateRANSlice.log" />
+ <parameter name="level" value="info" />
+ <parameter name="field1" value="PLMNInfo List before removal"/>
+ <parameter name="field2" value="`$tmp.RICPLMNEntries`"/>
+ </record>
+ <for index='id-ric' start='0' end='`$tmp.RICPLMNEntries`' >
+ <block atomic='true'>
+ <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'>
+ <parameter name='outputPath' value='tmp.ric.sNSSAILength' />
+ <parameter name='source' value="`'getNFNSSIRIC-configdb-response.['+ $idy +'].pLMNInfoList['+$id-ric+'].sNSSAI_length'`" />
+ </execute>
+ <for index='id-ric-snssai' start='0' end='`$tmp.ric.sNSSAILength`' >
+ <block atomic='true'>
+ <switch test='`$tmp.ric.sNSSAI == $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/terminateRANSlice.log" />
+ <parameter name="level" value="info" />
+ <parameter name="field1" value="Matching sNSSAI found in config DB"/>
+ <parameter name="field2" value="`$tmp.ric.sNSSAI`"/>
+ <parameter name="field3" value="sNSSAI List length before removal"/>
+ <parameter name="field4" value="`$tmp.ric.sNSSAILength`"/>
+ </record>
+ <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'>
+ <parameter name='outputPath' value='tmp.ric.sNSSAIremoved' />
+ <parameter name='source' value="`'getNFNSSIRIC-configdb-response.['+ $idy +'].pLMNInfoList['+$id-ric+'].sNSSAI['+$id-ric-snssai+'].sNSSAI'`" />
+ </execute>
+ <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>
+ <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >
+ <parameter name="source" value="`$prop.configdb.url + $prop.restapi.configdb.removenSSAINearRTRIC`"/>
+ <parameter name="outputPath" value="tmp.configdb.getNearRTRICNSSAIRemoval.url"/>
+ <parameter name="target" value="{nearRTRICId}"/>
+ <parameter name="replacement" value="`$tmp.nearRTRICId`"/>
+ </execute>
+ <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >
+ <parameter name="source" value="`$tmp.configdb.getNearRTRICNSSAIRemoval.url`"/>
+ <parameter name="outputPath" value="tmp.configdb.getNearRTRICNSSAIRemoval.url"/>
+ <parameter name="target" value="{sNSSAI}"/>
+ <parameter name="replacement" value="`$tmp.ric.sNSSAIremoved`"/>
+ </execute>
+ <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
+ <parameter name="file" value="/opt/opendaylight/current/data/log/terminateRANSlice.log" />
+ <parameter name="level" value="info" />
+ <parameter name="field1" value="sNSSAI"/>
+ <parameter name="field2" value="`$tmp.ric.sNSSAIremoved`" />
+ <parameter name="field3" value="nearRTRICId"/>
+ <parameter name="field4" value="`$tmp.nearRTRICId`" />
+ <parameter name="field5" value="endpoint URL"/>
+ <parameter name="field6" value="`$tmp.configdb.getNearRTRICNSSAIRemoval.url`" />
+ </record>
+ <execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >
+ <parameter name="restapiUrl" value="`$tmp.configdb.getNearRTRICNSSAIRemoval.url`"/>
+ <parameter name="httpMethod" value="DELETE"/>
+ <parameter name="responsePrefix" value="delete-nearRTRIC-configdb-response"/>
+ <parameter name='contentType' value='application/json' />
+ <parameter name='format' value='json' />
+ <parameter name='accept' value='application/json' />
+ <parameter name="convertResponse" value="true"/>
+ <outcome value='failure'>
+ <block atomic='true'>
+ <set>
+ <parameter name='error-code' value='500'/>
+ <parameter name='error-message' value='Error updating nearRTRIC info in ConfigDB. Aborting RPC executiopn'/>
+ </set>
+ <return status='failure'>
+ <parameter name='ack-final' value='Y'/>
+ <parameter name='error-code' value='500'/>
+ <parameter name='error-message' value='Error updating nearRTRIC info in ConfigDB. Aborting RPC executiopn'/>
+ </return>
+ </block>
+ </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/terminateRANSlice.log" />
+ <parameter name="level" value="info" />
+ <parameter name="field1" value="Successfully Updated NearRT RIC info in ConfigDB"/>
+ </record>
+ </block>
+ </outcome>
+ </execute>
+ </block>
+ </outcome>
+ </switch>
+ <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'>
+ <parameter name='outputPath' value='tmp.ric.sNSSAI' />
+ <parameter name='source' value="`'getNFNSSIRIC-configdb-response.['+ $idy +'].pLMNInfoList['+$id-ric+'].sNSSAI['+$id-ric-snssai+'].sNSSAI'`" />
+ </execute>
+ </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/terminateRANSlice.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/terminateRANSlice.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.pLMNInfoList_length' />
+ <parameter name='source' value="`'getNFNSSIRIC-configdb-response.['+ $idy +'].gNBCUCPList['+ $idz +'].cellCUList['+ $idcu +'].pLMNInfoList_length'`" />
+ </execute>
+ <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
+ <parameter name="file" value="/opt/opendaylight/current/data/log/terminateRANSlice.log" />
+ <parameter name="level" value="info" />
+ <parameter name="field1" value="`'getNFNSSIRIC-configdb-response.['+ $idy +'].gNBCUCPList['+ $idz +'].cellCUList['+ $idcu +'].pLMNInfoList_length'`"/>
+ <parameter name="field2" value="`$tmp.pLMNInfoList_length`"/>
+ </record>
+ <switch test='`$tmp.pLMNInfoList_length > 0`'>
+ <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/terminateRANSlice.log" />
+ <parameter name="level" value="info" />
+ <parameter name="field1" value="plmninfolistlength in true "/>
+ <parameter name="field2" value="`$tmp.pLMNInfoList_length`"/>
+ </record>
+ <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.sNssaiListLengthCU' />
+ <parameter name='source' value="`'getNFNSSIRIC-configdb-response.['+ $idy +'].gNBCUCPList['+ $idz +'].cellCUList['+ $idcu +'].pLMNInfoList['+ $id-cuplmn +'].sNSSAI_length'`" />
+ </execute>
+ <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
+ <parameter name="file" value="/opt/opendaylight/current/data/log/terminateRANSlice.log" />
+ <parameter name="level" value="info" />
+ <parameter name="field1" value="CU_plmninfolength_nssailength "/>
+ <parameter name="field2" value="`$tmp.sNssaiListLengthCU`"/>
+ </record>
+ <switch test='`$tmp.sNssaiListLengthCU > 0`'>
+ <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/terminateRANSlice.log" />
+ <parameter name="level" value="info" />
+ <parameter name="field1" value="plmninfolistnssailength in true in CU "/>
+ <parameter name="field2" value="`$tmp.sNssaiListLengthCU`"/>
+ </record>
+ <for index='id-cusnssai' start='0' end='`$tmp.sNssaiListLengthCU`'>
+ <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-cusnssai +'].sNSSAI'`" />
+ </execute>
+ <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
+ <parameter name="file" value="/opt/opendaylight/current/data/log/terminateRANSlice.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/terminateRANSlice.log" />
+ <parameter name="level" value="info" />
+ <parameter name="field1" value="NSSAI exists for cucp plmninfo "/>
+ </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.terminateSNSSAIEntry.ToNRCellCU`"/>
+ <parameter name="outputPath" value="tmp.deleteSNSSAIListEntry.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.terminateSNSSAIEntry.ToNRCellCU.ransim-mounted`"/>
+ <parameter name="outputPath" value="tmp.deleteSNSSAIListEntry.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.SliPluginUtils' method='getAttributeValue'>
+ <parameter name='outputPath' value='tmp.cucpNFType' />
+ <parameter name='source' value="`'getNFNSSIRIC-configdb-response.['+ $idy +'].gNBCUCPList['+ $idz +'].nFType'`" />
+ </execute>
+ <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >
+ <parameter name="source" value="`$tmp.deleteSNSSAIListEntry.url`"/>
+ <parameter name="outputPath" value="tmp.deleteSNSSAIListEntry.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.deleteSNSSAIListEntry.url`"/>
+ <parameter name="outputPath" value="tmp.deleteSNSSAIListEntry.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.deleteSNSSAIListEntry.url`"/>
+ <parameter name="outputPath" value="tmp.deleteSNSSAIListEntry.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.deleteSNSSAIListEntry.url`"/>
+ <parameter name="outputPath" value="tmp.deleteSNSSAIListEntry.url"/>
+ <parameter name="target" value="{mnc}"/>
+ <parameter name="replacement" value="`$tmp.mnc`"/>
+ </execute>
+ <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >
+ <parameter name="source" value="`$tmp.deleteSNSSAIListEntry.url`"/>
+ <parameter name="outputPath" value="tmp.deleteSNSSAIListEntry.url"/>
+ <parameter name="target" value="{sNssai}"/>
+ <parameter name="replacement" value="`$tmp.sNSSAI`"/>
+ </execute>
+ <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
+ <parameter name="file" value="/opt/opendaylight/current/data/log/terminateRANSliceModifyAllocate.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.sNSSAI`"/>
+ <parameter name="field8" value="`$tmp.deleteSNSSAIListEntry.url`"/>
+ </record>
+ <execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >
+ <parameter name="restapiUrl" value="`$prop.controller.url + $tmp.deleteSNSSAIListEntry.url`"/>
+ <parameter name="restapiUser" value="`$prop.controller.user`" />
+ <parameter name="restapiPassword" value="`$prop.controller.pwd`"/>
+ <parameter name="httpMethod" value="DELETE"/>
+ <parameter name="responsePrefix" value="delete-cellCU-sNSSAI-response"/>
+ <parameter name='contentType' value='application/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="success"/>
+ <parameter name="tmp.reason" value="`$error-message`"/>
+ <parameter name="tmp.requestID" value="`$terminate-r-a-n-slice-input.common-header.request-id `"/>
+ <parameter name="tmp.action" value="`$terminate-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="`$payloadJson.input.callbackURL`"/>
+ <parameter name="httpMethod" value="POST"/>
+ <parameter name="responsePrefix" value="so-callback-terminate-response"/>
+ <parameter name='contentType' value='application/json' />
+ <parameter name='format' value='json' />
+ <parameter name='accept' value='*/*' />
+ <parameter name="convertResponse" value="true"/>
+ <parameter name="restapiUser" value="`$prop.restapi.so.user`" />
+ <parameter name="restapiPassword" value="`$prop.restapi.so.password`"/>
+ <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/terminateRANSlice.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/terminateRANSlice.log" />
+ <parameter name="level" value="info" />
+ <parameter name="field1" value="Successfully Patched - cellCU PLMNInfo List"/>
+ </record>
+ </block>
+ </outcome>
+ </execute>
+ <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >
+ <parameter name="source" value="`$prop.restapi.configdb.removenSSAINRCellCU`"/>
+ <parameter name="outputPath" value="tmp.deletePLMNInfo-CellCU.configdb.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.deletePLMNInfo-CellCU.configdb.url`"/>
+ <parameter name="outputPath" value="tmp.deletePLMNInfo-CellCU.configdb.url"/>
+ <parameter name="target" value="{sNSSAI}"/>
+ <parameter name="replacement" value="`$tmp.sNSSAI`"/>
+ </execute>
+ <execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >
+ <parameter name="restapiUrl" value="`$prop.configdb.url + $tmp.deletePLMNInfo-CellCU.configdb.url`"/>
+ <parameter name="httpMethod" value="DELETE"/>
+ <parameter name="responsePrefix" value="delete-CELLCU-plmninfo-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 atomic='true'>
+ <set>
+ <parameter name='error-code' value='500'/>
+ <parameter name='error-message' value='Error removing 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 removing CUUP 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/terminateRANSlice.log" />
+ <parameter name="level" value="info" />
+ <parameter name="field1" value="Successfully removed - CEllCU PLMNInfo Entry from configdb"/>
+ </record>
+ </block>
+ </outcome>
+ </execute>
+ <block atomic='true'>
+ <set>
+ <parameter name='tmp.maxNumberOfConnsPercellCU' value='`$tmp.payload.maxNumberofConns / $tmp.cellCUList_length`' />
+ <parameter name='tmp.rRMPolicyDedicatedRatio.CellCU1' value='`$tmp.maxNumberOfConnsPercellCU * 100`' />
+ <parameter name='tmp.rRMPolicyDedicatedRatio_SliceProfile' value='`$tmp.rRMPolicyDedicatedRatio.CellCU1 / $prop.nrcellcu.maxNumberOfConnsPerCell`' />
+ </set>
+ <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
+ <parameter name="file" value="/opt/opendaylight/current/data/log/terminateRANSlice.log" />
+ <parameter name="level" value="info" />
+ <parameter name="field1" value="RRMPolicyRatio for this profile is - "/>
+ <parameter name="field2" value="`$tmp.rRMPolicyDedicatedRatio_SliceProfile`"/>
+ </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.RRMPolicyRatioEntry.ToNRCellCU`"/>
+ <parameter name="outputPath" value="tmp.getRRMPolicyRatio.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.RRMPolicyRatioEntry.ToNRCellCU.ransim-mounted`"/>
+ <parameter name="outputPath" value="tmp.getRRMPolicyRatio.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.getRRMPolicyRatio.url`"/>
+ <parameter name="outputPath" value="tmp.getRRMPolicyRatio.url"/>
+ <parameter name="target" value="{mountName}"/>
+ <parameter name="replacement" value="`$tmp.CUCPName`"/>
+ </execute>
+ </block>
+ </outcome>
+ </switch>
+ <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >
+ <parameter name="source" value="`$tmp.getRRMPolicyRatio.url`"/>
+ <parameter name="outputPath" value="tmp.getRRMPolicyRatio.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.getRRMPolicyRatio.url`"/>
+ <parameter name="outputPath" value="tmp.getRRMPolicyRatio.url"/>
+ <parameter name="target" value="{idNRCellCU}"/>
+ <parameter name="replacement" value="`$tmp.cellCULocalId`"/>
+ </execute>
+ <execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >
+ <parameter name="restapiUrl" value="`$prop.controller.url + $tmp.getRRMPolicyRatio.url`"/>
+ <parameter name="restapiUser" value="`$prop.controller.user`" />
+ <parameter name="restapiPassword" value="`$prop.controller.pwd`"/>
+ <parameter name="httpMethod" value="GET"/>
+ <parameter name="responsePrefix" value="get-rrmpolicyratio-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 atomic='true'>
+ <set>
+ <parameter name='error-code' value='500'/>
+ <parameter name='error-message' value='Error in retrieving RRMPolicyRatio. 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 in Fetching RRMPolicyRatio - CellCU. Aborting RPC executiopn'/>
+ </return>
+ <block atomic='true'>
+ <set>
+ <parameter name="tmp.so.callbackURL" value="`$payloadJson.input.callbackURL`"/>
+ <parameter name="tmp.status" value="success"/>
+ <parameter name="tmp.reason" value="`$error-message`"/>
+ <parameter name="tmp.requestID" value="`$terminate-r-a-n-slice-input.common-header.request-id `"/>
+ <parameter name="tmp.action" value="`$terminate-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="`$payloadJson.input.callbackURL`"/>
+ <parameter name="httpMethod" value="POST"/>
+ <parameter name="responsePrefix" value="so-callback-terminate-response"/>
+ <parameter name='contentType' value='application/json' />
+ <parameter name='format' value='json' />
+ <parameter name='accept' value='*/*' />
+ <parameter name="convertResponse" value="true"/>
+ <parameter name="restapiUser" value="`$prop.restapi.so.user`" />
+ <parameter name="restapiPassword" value="`$prop.restapi.so.password`"/>
+ <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/terminateRANSlice.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/terminateRANSlice.log" />
+ <parameter name="level" value="info" />
+ <parameter name="field1" value="Successfully Retrieved - RRMPolicyRatio"/>
+ </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.SliPluginUtils' method='getAttributeValue'>
+ <parameter name='outputPath' value='tmp.rrmPolicyRatioList_length' />
+ <parameter name='source' value="`'get-rrmpolicyratio-response.attributes.RRMPolicyRatio_length'`" />
+ </execute>
+ <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
+ <parameter name="file" value="/opt/opendaylight/current/data/log/terminateRANSlice.log" />
+ <parameter name="level" value="info" />
+ <parameter name="field1" value="RRMPolicyRatioList size"/>
+ <parameter name="field2" value="`$tmp.rrmPolicyRatioList_length`"/>
+ </record>
+ <for index='idcu-rrm' start='0' end='`$tmp.rrmPolicyRatioList_length`'>
+ <block atomic='true'>
+ <set>
+ <parameter name='tmp.rrmPolicyDedicatedRatio_cellCU' value="`'$get-rrmpolicyratio-response.attributes.RRMPolicyRatio['+ $idcu-rrm +'].attributes.rRMPolicyDedicatedRatio'`" />
+ <parameter name='tmp.rrmPolicyDedicatedRatio_CellCU_updated' value="`$tmp.rrmPolicyDedicatedRatio_cellCU + $tmp.rRMPolicyDedicatedRatio_SliceProfile`" />
+ </set>
+ <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'>
+ <parameter name='outputPath' value='tmp.RRMPolicyRatio_id' />
+ <parameter name='source' value="`'get-rrmpolicyratio-response.attributes.RRMPolicyRatio['+ $idcu-rrm+'].id'`" />
+ </execute>
+ <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'>
+ <parameter name='outputPath' value='tmp.NRCellCURRMPolicyMembersLength' />
+ <parameter name='source' value="`'get-rrmpolicyratio-response.attributes.RRMPolicyRatio['+ $idcu-rrm+'].attributes.rRMPolicyMemberList_length'`" />
+ </execute>
+ <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
+ <parameter name="file" value="/opt/opendaylight/current/data/log/terminateRANSlice.log" />
+ <parameter name="level" value="info" />
+ <parameter name="field1" value="RRMPolicyMembersList size"/>
+ <parameter name="field2" value="`$tmp.NRCellCURRMPolicyMembersLength`"/>
+ </record>
+ <for index='idcu-rrm1' start='0' end='`$tmp.NRCellCURRMPolicyMembersLength`' >
+ <block atomic='true'>
+ <switch test='`$tmp.NRCellCURRMPolicyMembersLength > 0`'>
+ <outcome value='true'>
+ <block atomic='true'>
+ <switch test='`$prop.ransim-mounted`'>
+ <outcome value='false'>
+ <block atomic='true'>
+ <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >
+ <parameter name="source" value="`$prop.restapi.removeRRMPolicyRatio.ToNRCellCU`"/>
+ <parameter name="outputPath" value="tmp.deleteRRMPolicyRatio.url"/>
+ <parameter name="target" value="{idNearRTRIC}"/>
+ <parameter name="replacement" value="`$tmp.nearRTRICId`"/>
+ </execute>
+ </block>
+ </outcome>
+ <outcome value='true'>
+ <block atomic='true'>
+ <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >
+ <parameter name="source" value="`$prop.restapi.removeRRMPolicyRatio.ToNRCellCU.ransim-mounted`"/>
+ <parameter name="outputPath" value="tmp.deleteRRMPolicyRatio.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.deleteRRMPolicyRatio.url`"/>
+ <parameter name="outputPath" value="tmp.deleteRRMPolicyRatio.url"/>
+ <parameter name="target" value="{mountName}"/>
+ <parameter name="replacement" value="`$tmp.CUCPName`"/>
+ </execute>
+ </block>
+ </outcome>
+ </switch>
+ </block>
+ </outcome>
+ <outcome value='false'>
+ <block atomic='true'>
+ <set>
+ <parameter name='tmp.RRMPolicyMember_sNSSAI' value="`'$get-rrmpolicyratio-response.attributes.RRMPolicyRatio['+ $idcu-rrm+'].attributes.rRMPolicyMemberList['+ $idcu-rrm1 +'].sNSSAI'`" />
+ </set>
+ <switch test='`$tmp.RRMPolicyMember_sNSSAI==$tmp.sNSSAI`'>
+ <outcome value='success'>
+ <block atomic='true'>
+ <set>
+ <parameter name='tmp.RRMPolicyMember_id' value="`'$get-rrmpolicyratio-response.attributes.RRMPolicyRatio['+ $idcu-rrm+'].attributes.rRMPolicyMemberList['+ $idcu-rrm1 +'].idx'`" />
+ </set>
+ <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
+ <parameter name="file" value="/opt/opendaylight/current/data/log/terminateRANSlice.log" />
+ <parameter name="level" value="info" />
+ <parameter name="field1" value="RRMPolicyMember id - "/>
+ <parameter name="field2" value="`$tmp.RRMPolicyMember_id`"/>
+ </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.removeRRMPolicyMember.ToNRCellCU`"/>
+ <parameter name="outputPath" value="tmp.deleteRRMPolicyRatio.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.removeRRMPolicyMember.ToNRCellCU.ransim-mounted`"/>
+ <parameter name="outputPath" value="tmp.deleteRRMPolicyRatio.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.deleteRRMPolicyRatio.url`"/>
+ <parameter name="outputPath" value="tmp.deleteRRMPolicyRatio.url"/>
+ <parameter name="target" value="{mountName}"/>
+ <parameter name="replacement" value="`$tmp.CUCPName`"/>
+ </execute>
+ </block>
+ </outcome>
+ </switch>
+ </block>
+ </outcome>
+ </switch>
+ </block>
+ </outcome>
+ </switch>
+ <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >
+ <parameter name="source" value="`$tmp.deleteRRMPolicyRatio.url`"/>
+ <parameter name="outputPath" value="tmp.deleteRRMPolicyRatio.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.deleteRRMPolicyRatio.url`"/>
+ <parameter name="outputPath" value="tmp.deleteRRMPolicyRatio.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.deleteRRMPolicyRatio.url`"/>
+ <parameter name="outputPath" value="tmp.deleteRRMPolicyRatio.url"/>
+ <parameter name="target" value="{id}"/>
+ <parameter name="replacement" value="`$tmp.RRMPolicyRatio_id`"/>
+ </execute>
+ <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >
+ <parameter name="source" value="`$tmp.getRRMPolicyRatio.url`"/>
+ <parameter name="outputPath" value="tmp.getRRMPolicyRatio.url"/>
+ <parameter name="target" value="{idx}"/>
+ <parameter name="replacement" value="`$tmp.RRMPolicyMember_id`"/>
+ </execute>
+ </block>
+ </for>
+ <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
+ <parameter name="file" value="/opt/opendaylight/current/data/log/terminateRANSlice.log" />
+ <parameter name="level" value="info" />
+ <parameter name="field1" value="Delete RRMPolicy URL - "/>
+ <parameter name="field2" value="`$tmp.deleteRRMPolicyRatio.url`"/>
+ <parameter name="field3" value="RRMPolicyRatio id"/>
+ <parameter name="field4" value="`$tmp.RRMPolicyRatio_id`"/>
+ </record>
+ <execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >
+ <parameter name="restapiUrl" value="`$prop.controller.url + $tmp.deleteRRMPolicyRatio.url`"/>
+ <parameter name="restapiUser" value="`$prop.controller.user`" />
+ <parameter name="restapiPassword" value="`$prop.controller.pwd`"/>
+ <parameter name="httpMethod" value="DELETE"/>
+ <parameter name="responsePrefix" value="delete-cellCU-RRMPolicyRatio-response"/>
+ <parameter name='contentType' value='application/json' />
+ <parameter name='format' value='json' />
+ <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/terminateRANSlice.log" />
+ <parameter name="level" value="info" />
+ <parameter name="field1" value="Successfully Deleted - cellCU RRMpolicyRatio/RRMPolicyMember"/>
+ </record>
+ </block>
+ </outcome>
+ <outcome value='failure'>
+ <block atomic='true'>
+ <set>
+ <parameter name='error-code' value='500'/>
+ <parameter name='error-message' value='Error Removing cellCU RRMPolicyRatio. 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 removing NRCellDU - RRMPolicyRAtio. Aborting RPC executiopn'/>
+ </return>
+ <block atomic='true'>
+ <set>
+ <parameter name="tmp.so.callbackURL" value="`$payloadJson.input.callbackURL`"/>
+ <parameter name="tmp.status" value="success"/>
+ <parameter name="tmp.reason" value="`$error-message`"/>
+ <parameter name="tmp.requestID" value="`$terminate-r-a-n-slice-input.common-header.request-id `"/>
+ <parameter name="tmp.action" value="`$terminate-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="`$payloadJson.input.callbackURL`"/>
+ <parameter name="httpMethod" value="POST"/>
+ <parameter name="responsePrefix" value="so-callback-terminate-response"/>
+ <parameter name='contentType' value='application/json' />
+ <parameter name='format' value='json' />
+ <parameter name='accept' value='*/*' />
+ <parameter name="convertResponse" value="true"/>
+ <parameter name="restapiUser" value="`$prop.restapi.so.user`" />
+ <parameter name="restapiPassword" value="`$prop.restapi.so.password`"/>
+ <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/terminateRANSlice.log" />
+ <parameter name="level" value="info" />
+ <parameter name="field1" value="SO Response Sent "/>
+ </record>
+ </block>
+ </outcome>
+ </execute>
+ </block>
+ </block>
+ </outcome>
+ </execute>
+ <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'>
+ <parameter name='outputPath' value='tmp.CURRMPolicyMembersResourceType' />
+ <parameter name='source' value="`'get-rrmpolicyratio-response.attributes.RRMPolicyRatio['+ $idcu-rrm+'].attributes.resourceType'`" />
+ </execute>
+ <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >
+ <parameter name="source" value="`$prop.restapi.configdb.removenSSAICUUPRRMPOLICY`"/>
+ <parameter name="outputPath" value="tmp.deleteRRMPolicy-CUUP.configdb.url"/>
+ <parameter name="target" value="{gnbCUUPId}"/>
+ <parameter name="replacement" value="`$tmp.cellCULocalId`"/>
+ </execute>
+ <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >
+ <parameter name="source" value="`$tmp.deleteRRMPolicy-CUUP.configdb.url`"/>
+ <parameter name="outputPath" value="tmp.deleteRRMPolicy-CUUP.configdb.url"/>
+ <parameter name="target" value="{resourcetype}"/>
+ <parameter name="replacement" value="`$tmp.CURRMPolicyMembersResourceType`"/>
+ </execute>
+ <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >
+ <parameter name="source" value="`$tmp.deleteRRMPolicy-CUUP.configdb.url`"/>
+ <parameter name="outputPath" value="tmp.deleteRRMPolicy-CUUP.configdb.url"/>
+ <parameter name="target" value="{sNSSAI}"/>
+ <parameter name="replacement" value="`$tmp.sNSSAI`"/>
+ </execute>
+ <execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >
+ <parameter name="restapiUrl" value="`$prop.configdb.url + $tmp.deleteRRMPolicy-CUUP.configdb.url`"/>
+ <parameter name="httpMethod" value="DELETE"/>
+ <parameter name="responsePrefix" value="delete-CU-rrmpolicy-configdb-response"/>
+ <parameter name='contentType' value='application/json' />
+ <parameter name='format' value='json' />
+ <parameter name='accept' value='application/json' />
+ <parameter name="convertResponse" value="true"/>
+ <outcome value='failure'>
+ <block atomic='true'></block>
+ </outcome>
+ <outcome value='success'>
+ <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
+ <parameter name="file" value="/opt/opendaylight/current/data/log/terminateRANSlice.log" />
+ <parameter name="level" value="info" />
+ <parameter name="field1" value="Successfully removed - gNBCU rrmpolicy Entry from configdb"/>
+ </record>
+ </outcome>
+ </execute>
+ </block>
+ </for>
+ </block>
+ </block>
+ </outcome>
+ </switch>
+ </block>
+ </for>
+ </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/terminateRANSlice.log" />
+ <parameter name="level" value="info" />
+ <parameter name="field1" value="plmninfolistnssailength in false in CU "/>
+ <parameter name="field2" value="`$tmp.sNssaiListLengthCU`"/>
+ </record>
+ </block>
+ </outcome>
+ </switch>
+ </block>
+ </for>
+ </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/terminateRANSlice.log" />
+ <parameter name="level" value="info" />
+ <parameter name="field1" value="plmninfolistlength in false "/>
+ <parameter name="field2" value="`$tmp.pLMNInfoList_length`"/>
+ </record>
+ </block>
+ </outcome>
+ </switch>
+ </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/terminateRANSlice.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/terminateRANSlice.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>
+ <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
+ <parameter name="file" value="/opt/opendaylight/current/data/log/terminateRANSlice.log" />
+ <parameter name="level" value="info" />
+ <parameter name="field1" value="cuup_plmninfolength "/>
+ <parameter name="field2" value="`$tmp.pLMNInfoList`"/>
+ </record>
+ <for index='id-plmn' start='0' end='1'>
+ <block atomic='true'>
+ <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'>
+ <parameter name='outputPath' value='tmp.sNssaiListLength' />
+ <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/terminateRANSlice.log" />
+ <parameter name="level" value="info" />
+ <parameter name="field1" value="cuup_plmninfolength_nssailength "/>
+ <parameter name="field2" value="`$tmp.sNssaiListLength`"/>
+ </record>
+ <switch test='`$tmp.sNssaiListLength > 0`'>
+ <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/terminateRANSlice.log" />
+ <parameter name="level" value="info" />
+ <parameter name="field1" value="plmninfolistnssailength in true "/>
+ <parameter name="field2" value="`$tmp.sNssaiListLength`"/>
+ </record>
+ <for index='id-snssai' start='0' end='`$tmp.sNssaiListLength`'>
+ <block atomic='true'>
+ <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'>
+ <parameter name='outputPath' value='tmp.configDBSNSSAI1' />
+ <parameter name='source' value="`'getNFNSSIRIC-configdb-response.['+ $idy +'].gNBCUUPList['+ $id-cuup +'].pLMNInfoList['+ $id-plmn +'].sNSSAI['+ $id-snssai +'].sNSSAI'`" />
+ </execute>
+ <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
+ <parameter name="file" value="/opt/opendaylight/current/data/log/terminateRANSlice.log" />
+ <parameter name="level" value="info" />
+ <parameter name="field1" value="sNSSAI - getNFNSSIRIC-configdb-response"/>
+ <parameter name="field2" value="`$tmp.configDBSNSSAI1`"/>
+ <parameter name="field3" value="sNSSAI from Request"/>
+ <parameter name="field4" value="`$tmp.sNSSAI`"/>
+ </record>
+ <switch test='`$tmp.configDBSNSSAI1 == $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/terminateRANSlice.log" />
+ <parameter name="level" value="info" />
+ <parameter name="field1" value="nssaimatch in True "/>
+ <parameter name="field2" value="`Proceeding for nssai deletion`"/>
+ </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.terminateSNSSAIEntry.ToCUUP`"/>
+ <parameter name="outputPath" value="tmp.deletePLMNInfo-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.terminateSNSSAIEntry.ToCUUP.ransim-mounted`"/>
+ <parameter name="outputPath" value="tmp.deletePLMNInfo-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.deletePLMNInfo-CUUP.url`"/>
+ <parameter name="outputPath" value="tmp.deletePLMNInfo-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.deletePLMNInfo-CUUP.url`"/>
+ <parameter name="outputPath" value="tmp.deletePLMNInfo-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.deletePLMNInfo-CUUP.url`"/>
+ <parameter name="outputPath" value="tmp.deletePLMNInfo-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.deletePLMNInfo-CUUP.url`"/>
+ <parameter name="outputPath" value="tmp.deletePLMNInfo-CUUP.url"/>
+ <parameter name="target" value="{mnc}"/>
+ <parameter name="replacement" value="`$tmp.mnc`"/>
+ </execute>
+ <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >
+ <parameter name="source" value="`$tmp.deletePLMNInfo-CUUP.url`"/>
+ <parameter name="outputPath" value="tmp.deletePLMNInfo-CUUP.url"/>
+ <parameter name="target" value="{sNssai}"/>
+ <parameter name="replacement" value="`$tmp.sNSSAI`"/>
+ </execute>
+ <execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >
+ <parameter name="restapiUrl" value="`$prop.controller.url + $tmp.deletePLMNInfo-CUUP.url`"/>
+ <parameter name="restapiUser" value="`$prop.controller.user`" />
+ <parameter name="restapiPassword" value="`$prop.controller.pwd`"/>
+ <parameter name="httpMethod" value="DELETE"/>
+ <parameter name="responsePrefix" value="delete-CUUP-sNSSAI-response"/>
+ <parameter name='contentType' value='application/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="success"/>
+ <parameter name="tmp.reason" value="`$error-message`"/>
+ <parameter name="tmp.requestID" value="`$terminate-r-a-n-slice-input.common-header.request-id `"/>
+ <parameter name="tmp.action" value="`$terminate-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="`$payloadJson.input.callbackURL`"/>
+ <parameter name="httpMethod" value="POST"/>
+ <parameter name="responsePrefix" value="so-callback-terminate-response"/>
+ <parameter name='contentType' value='application/json' />
+ <parameter name='format' value='json' />
+ <parameter name='accept' value='*/*' />
+ <parameter name="convertResponse" value="true"/>
+ <parameter name="restapiUser" value="`$prop.restapi.so.user`" />
+ <parameter name="restapiPassword" value="`$prop.restapi.so.password`"/>
+ <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/terminateRANSlice.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 removing 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 removing CUUP 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/terminateRANSlice.log" />
+ <parameter name="level" value="info" />
+ <parameter name="field1" value="Successfully removed - gNBCUUP PLMNInfo Entry"/>
+ </record>
+ </block>
+ </outcome>
+ </execute>
+ <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >
+ <parameter name="source" value="`$prop.restapi.configdb.removenSSAICUUP`"/>
+ <parameter name="outputPath" value="tmp.deletePLMNInfo-CUUP.configdb.url"/>
+ <parameter name="target" value="{gnbCUUPId}"/>
+ <parameter name="replacement" value="`$tmp.idGNBCUUPFunction`"/>
+ </execute>
+ <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >
+ <parameter name="source" value="`$tmp.deletePLMNInfo-CUUP.configdb.url`"/>
+ <parameter name="outputPath" value="tmp.deletePLMNInfo-CUUP.configdb.url"/>
+ <parameter name="target" value="{sNSSAI}"/>
+ <parameter name="replacement" value="`$tmp.sNSSAI`"/>
+ </execute>
+ <execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >
+ <parameter name="restapiUrl" value="`$prop.configdb.url + $tmp.deletePLMNInfo-CUUP.configdb.url`"/>
+ <parameter name="httpMethod" value="DELETE"/>
+ <parameter name="responsePrefix" value="delete-CUUP-plmninfo-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 atomic='true'>
+ <set>
+ <parameter name='error-code' value='500'/>
+ <parameter name='error-message' value='Error removing 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 removing CUUP 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/terminateRANSlice.log" />
+ <parameter name="level" value="info" />
+ <parameter name="field1" value="Successfully removed - gNBCUUP PLMNInfo Entry from configdb"/>
+ </record>
+ </block>
+ </outcome>
+ </execute>
+ </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/terminateRANSlice.log" />
+ <parameter name="level" value="info" />
+ <parameter name="field1" value="nssaimatch in false "/>
+ <parameter name="field2" value="`nssai deletion does not takes place`"/>
+ </record>
+ </block>
+ </outcome>
+ </switch>
+ </block>
+ </for>
+ </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/terminateRANSlice.log" />
+ <parameter name="level" value="info" />
+ <parameter name="field1" value="plmninfolistnssailength in false "/>
+ <parameter name="field2" value="`$tmp.sNssaiListLength`"/>
+ </record>
+ </block>
+ </outcome>
+ </switch>
+ </block>
+ </for>
+ <set>
+ <parameter name='tmp.maxNumberOfDRBsPerNSSAI' value='`$tmp.payload.maxNumberofConns*4`' />
+ <parameter name='tmp.maxNumberOfDRBsPerCUUP' value='`$tmp.maxNumberOfDRBsPerNSSAI /$tmp.CUUPList_length`' />
+ <parameter name='tmp.rRMPolicyDedicatedRatio1' value='`$tmp.maxNumberOfDRBsPerCUUP*100`' />
+ <parameter name='tmp.rRMPolicyDedicatedRatio-CUUP' value='`$tmp.rRMPolicyDedicatedRatio1/$prop.cuupfunction.maxNumberOfDRBsPerCUUP`' />
+ </set>
+ <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
+ <parameter name="file" value="/opt/opendaylight/current/data/log/terminateRANSlice.log" />
+ <parameter name="level" value="info" />
+ <parameter name="field1" value="RRMPolicyRatio for this profile is - "/>
+ <parameter name="field2" value="`$tmp.rRMPolicyDedicatedRatio-CUUP`"/>
+ </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.RRMPolicyRatioEntry.ToGNBCUUP`"/>
+ <parameter name="outputPath" value="tmp.getRRMPolicyRatio-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.RRMPolicyRatioEntry.ToGNBCUUP.ransim-mounted`"/>
+ <parameter name="outputPath" value="tmp.getRRMPolicyRatio-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.getRRMPolicyRatio-CUUP.url`"/>
+ <parameter name="outputPath" value="tmp.getRRMPolicyRatio-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.getRRMPolicyRatio-CUUP.url`"/>
+ <parameter name="outputPath" value="tmp.getRRMPolicyRatio-CUUP.url"/>
+ <parameter name="target" value="{idGNBCUUPFunction}"/>
+ <parameter name="replacement" value="`$tmp.idGNBCUUPFunction`"/>
+ </execute>
+ <execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >
+ <parameter name="restapiUrl" value="`$prop.controller.url + $tmp.getRRMPolicyRatio-CUUP.url`"/>
+ <parameter name="restapiUser" value="`$prop.controller.user`" />
+ <parameter name="restapiPassword" value="`$prop.controller.pwd`"/>
+ <parameter name="httpMethod" value="GET"/>
+ <parameter name="responsePrefix" value="get-rrmpolicyratio-cuup-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 atomic='true'>
+ <block atomic='true'>
+ <set>
+ <parameter name="tmp.so.callbackURL" value="`$payloadJson.input.callbackURL`"/>
+ <parameter name="tmp.status" value="success"/>
+ <parameter name="tmp.reason" value="`$error-message`"/>
+ <parameter name="tmp.requestID" value="`$terminate-r-a-n-slice-input.common-header.request-id `"/>
+ <parameter name="tmp.action" value="`$terminate-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="`$payloadJson.input.callbackURL`"/>
+ <parameter name="httpMethod" value="POST"/>
+ <parameter name="responsePrefix" value="so-callback-terminate-response"/>
+ <parameter name='contentType' value='application/json' />
+ <parameter name='format' value='json' />
+ <parameter name='accept' value='*/*' />
+ <parameter name="convertResponse" value="true"/>
+ <parameter name="restapiUser" value="`$prop.restapi.so.user`" />
+ <parameter name="restapiPassword" value="`$prop.restapi.so.password`"/>
+ <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/terminateRANSlice.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 in retrieving RRMPolicyRatio. 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 in fetching RRMPolicyRatio. 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/terminateRANSlice.log" />
+ <parameter name="level" value="info" />
+ <parameter name="field1" value="Successfully Retrieved - RRMPolicyRatio"/>
+ </record>
+ <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='printContext' >
+ <parameter name='filename' value='/opt/opendaylight/current/data/log/ranSlice-instantiateRANSlice-configrsp-context.log' />
+ </execute>
+ </block>
+ </outcome>
+ </execute>
+ <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'>
+ <parameter name='outputPath' value='tmp.rrmPolicyRatioList_CUUP_length' />
+ <parameter name='source' value="`'get-rrmpolicyratio-cuup-response.attributes.RRMPolicyRatio_length'`" />
+ </execute>
+ <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
+ <parameter name="file" value="/opt/opendaylight/current/data/log/terminateRANSlice.log" />
+ <parameter name="level" value="info" />
+ <parameter name="field1" value="CUUP - RRMPolicyRatioList size"/>
+ <parameter name="field2" value="`$tmp.rrmPolicyRatioList_CUUP_length`"/>
+ </record>
+ <for index='idcuup-rrm' start='0' end='`$tmp.rrmPolicyRatioList_CUUP_length`' >
+ <block atomic='true'>
+ <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'>
+ <parameter name='outputPath' value='tmp.CUUPRRMPolicyRatio_id' />
+ <parameter name='source' value="`'get-rrmpolicyratio-cuup-response.attributes.RRMPolicyRatio['+ $idcuup-rrm+'].id'`" />
+ </execute>
+ <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'>
+ <parameter name='outputPath' value='tmp.CUUPRRMPolicyMembersLength' />
+ <parameter name='source' value="`'get-rrmpolicyratio-cuup-response.attributes.RRMPolicyRatio['+ $idcuup-rrm+'].attributes.rRMPolicyMemberList_length'`" />
+ </execute>
+ <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
+ <parameter name="file" value="/opt/opendaylight/current/data/log/terminateRANSlice.log" />
+ <parameter name="level" value="info" />
+ <parameter name="field1" value="CUUP - RRMPolicyMembersList size"/>
+ <parameter name="field2" value="`$tmp.CUUPRRMPolicyMembersLength`"/>
+ </record>
+ <for index='idcu-rrm2' start='0' end='`$tmp.CUUPRRMPolicyMembersLength`' >
+ <block atomic='true'>
+ <switch test='`$tmp.CUUPRRMPolicyMembersLength > 0`'>
+ <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/terminateRANSlice.log" />
+ <parameter name="level" value="info" />
+ <parameter name="field1" value="Success" />
+ <parameter name="field2" value="Tocheck if ransim mounted" />
+ </record>
+ <switch test='`$prop.ransim-mounted`'>
+ <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/terminateRANSlice.log" />
+ <parameter name="level" value="info" />
+ <parameter name="field1" value="before setting url" />
+ <parameter name="field2" value="ransimnot mounted" />
+ </record>
+ <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >
+ <parameter name="source" value="`$prop.restapi.removeRRMPolicyRatio.ToCUUP`"/>
+ <parameter name="outputPath" value="tmp.deleteRRMPolicyRatio-CUUP.url"/>
+ <parameter name="target" value="{idNearRTRIC}"/>
+ <parameter name="replacement" value="`$tmp.nearRTRICId`"/>
+ </execute>
+ <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
+ <parameter name="file" value="/opt/opendaylight/current/data/log/terminateRANSlice.log" />
+ <parameter name="level" value="info" />
+ <parameter name="field1" value="Delete RRMPolicy URL after setting - "/>
+ <parameter name="field2" value="`$tmp.deleteRRMPolicyRatio-CUUP.url`"/>
+ </record>
+ </block>
+ </outcome>
+ <outcome value='true'>
+ <block atomic='true'>
+ <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >
+ <parameter name="source" value="`$prop.restapi.removeRRMPolicyRatio.ToCUUP.ransim-mounted`"/>
+ <parameter name="outputPath" value="tmp.deleteRRMPolicyRatio-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.deleteRRMPolicyRatio-CUUP.url`"/>
+ <parameter name="outputPath" value="tmp.deleteRRMPolicyRatio-CUUP.url"/>
+ <parameter name="target" value="{mountName}"/>
+ <parameter name="replacement" value="`$tmp.idGNBCUUPFunction`"/>
+ </execute>
+ </block>
+ </outcome>
+ </switch>
+ </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/terminateRANSlice.log" />
+ <parameter name="level" value="info" />
+ <parameter name="field1" value="Failure" />
+ <parameter name="field2" value="Tocheck if ransim mounted" />
+ </record>
+ <set>
+ <parameter name='tmp.CUUPRRMPolicyMember_sNSSAI' value="`'$get-rrmpolicyratio-cuup-response.attributes.RRMPolicyRatio['+ $idcuup-rrm+'].attributes.rRMPolicyMemberList['+ $idcu-rrm2 +'].sNSSAI'`" />
+ </set>
+ <switch test='`$tmp.CUUPRRMPolicyMember_sNSSAI==$tmp.sNSSAI`'>
+ <outcome value='success'>
+ <block atomic='true'>
+ <set>
+ <parameter name='tmp.CUUPRRMPolicyMember_id' value="`'$get-rrmpolicyratio-cuup-response.attributes.RRMPolicyRatio['+ $idcuup-rrm+'].attributes.rRMPolicyMemberList['+ $idcu-rrm2 +'].idx'`" />
+ </set>
+ <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
+ <parameter name="file" value="/opt/opendaylight/current/data/log/terminateRANSlice.log" />
+ <parameter name="level" value="info" />
+ <parameter name="field1" value="RRMPolicyMember id - "/>
+ <parameter name="field2" value="`$tmp.CUUPRRMPolicyMember_id`"/>
+ </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.removeRRMPolicyMember.ToCUUP`"/>
+ <parameter name="outputPath" value="tmp.deleteRRMPolicyRatio-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.removeRRMPolicyMember.CUUP.ransim-mounted`"/>
+ <parameter name="outputPath" value="tmp.deleteRRMPolicyRatio-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.deleteRRMPolicyRatio-CUUP.url`"/>
+ <parameter name="outputPath" value="tmp.deleteRRMPolicyRatio-CUUP.url"/>
+ <parameter name="target" value="{mountName}"/>
+ <parameter name="replacement" value="`$tmp.idGNBCUUPFunction`"/>
+ </execute>
+ </block>
+ </outcome>
+ </switch>
+ </block>
+ </outcome>
+ </switch>
+ </block>
+ </outcome>
+ </switch>
+ <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
+ <parameter name="file" value="/opt/opendaylight/current/data/log/terminateRANSlice.log" />
+ <parameter name="level" value="info" />
+ <parameter name="field1" value="Delete RRMPolicy URL first - "/>
+ <parameter name="field2" value="`$tmp.deleteRRMPolicyRatio-CUUP.url`"/>
+ </record>
+ <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >
+ <parameter name="source" value="`$tmp.deleteRRMPolicyRatio-CUUP.url`"/>
+ <parameter name="outputPath" value="tmp.deleteRRMPolicyRatio-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.deleteRRMPolicyRatio-CUUP.url`"/>
+ <parameter name="outputPath" value="tmp.deleteRRMPolicyRatio-CUUP.url"/>
+ <parameter name="target" value="{id}"/>
+ <parameter name="replacement" value="`$tmp.CUUPRRMPolicyRatio_id`"/>
+ </execute>
+ <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >
+ <parameter name="source" value="`$tmp.deleteRRMPolicyRatio-CUUP.url`"/>
+ <parameter name="outputPath" value="tmp.deleteRRMPolicyRatio-CUUP.url"/>
+ <parameter name="target" value="{idx}"/>
+ <parameter name="replacement" value="`$tmp.CUUPRRMPolicyMember_id`"/>
+ </execute>
+ </block>
+ </for>
+ <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
+ <parameter name="file" value="/opt/opendaylight/current/data/log/terminateRANSlice.log" />
+ <parameter name="level" value="info" />
+ <parameter name="field1" value="Delete RRMPolicy URL - "/>
+ <parameter name="field2" value="`$tmp.deleteRRMPolicyRatio-CUUP.url`"/>
+ <parameter name="field3" value="RRMPolicyRatio id"/>
+ <parameter name="field4" value="`$tmp.CUUPRRMPolicyRatio_id`"/>
+ </record>
+ <execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >
+ <parameter name="restapiUrl" value="`$prop.controller.url + $tmp.deleteRRMPolicyRatio-CUUP.url`"/>
+ <parameter name="restapiUser" value="`$prop.controller.user`" />
+ <parameter name="restapiPassword" value="`$prop.controller.pwd`"/>
+ <parameter name="httpMethod" value="DELETE"/>
+ <parameter name="responsePrefix" value="delete-CUUP-RRMPolicyRatio-response"/>
+ <parameter name='contentType' value='application/json' />
+ <parameter name='format' value='json' />
+ <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/terminateRANSlice.log" />
+ <parameter name="level" value="info" />
+ <parameter name="field1" value="Successfully removed - CUUP RRMpolicyRatio"/>
+ </record>
+ </block>
+ </outcome>
+ <outcome value='failure'>
+ <block atomic='true'>
+ <set>
+ <parameter name='error-code' value='500'/>
+ <parameter name='error-message' value='Error removing CUUP RRMPolicyRatio. 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 removing RRMPolicyRatio. Aborting RPC executiopn'/>
+ </return>
+ </block>
+ </outcome>
+ </execute>
+ <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'>
+ <parameter name='outputPath' value='tmp.CUUPRRMPolicyMembersResourceType' />
+ <parameter name='source' value="`'get-rrmpolicyratio-cuup-response.attributes.RRMPolicyRatio['+ $idcuup-rrm+'].attributes.resourceType'`" />
+ </execute>
+ <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >
+ <parameter name="source" value="`$prop.restapi.configdb.removenSSAICUUPRRMPOLICY`"/>
+ <parameter name="outputPath" value="tmp.deleteRRMPolicy-CUUP.configdb.url"/>
+ <parameter name="target" value="{gnbCUUPId}"/>
+ <parameter name="replacement" value="`$tmp.idGNBCUUPFunction`"/>
+ </execute>
+ <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >
+ <parameter name="source" value="`$tmp.deleteRRMPolicy-CUUP.configdb.url`"/>
+ <parameter name="outputPath" value="tmp.deleteRRMPolicy-CUUP.configdb.url"/>
+ <parameter name="target" value="{resourcetype}"/>
+ <parameter name="replacement" value="`$tmp.CUUPRRMPolicyMembersResourceType`"/>
+ </execute>
+ <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >
+ <parameter name="source" value="`$tmp.deleteRRMPolicy-CUUP.configdb.url`"/>
+ <parameter name="outputPath" value="tmp.deleteRRMPolicy-CUUP.configdb.url"/>
+ <parameter name="target" value="{sNSSAI}"/>
+ <parameter name="replacement" value="`$tmp.sNSSAI`"/>
+ </execute>
+ <execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >
+ <parameter name="restapiUrl" value="`$prop.configdb.url + $tmp.deleteRRMPolicy-CUUP.configdb.url`"/>
+ <parameter name="httpMethod" value="DELETE"/>
+ <parameter name="responsePrefix" value="delete-CUUP-rrmpolicy-configdb-response"/>
+ <parameter name='contentType' value='application/json' />
+ <parameter name='format' value='json' />
+ <parameter name='accept' value='application/json' />
+ <parameter name="convertResponse" value="true"/>
+ <outcome value='failure'>
+ <block atomic='true'>
+ <set>
+ <parameter name='error-code' value='500'/>
+ <parameter name='error-message' value='Error removing 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 removing CUUP PLMNInfo. Aborting RPC executiopn'/>
+ </return>
+ </block>
+ </outcome>
+ <outcome value='success'>
+ <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
+ <parameter name="file" value="/opt/opendaylight/current/data/log/terminateRANSlice.log" />
+ <parameter name="level" value="info" />
+ <parameter name="field1" value="Successfully removed - gNBCUUP rrmpolicy Entry from configdb"/>
+ </record>
+ </outcome>
+ </execute>
+ </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/terminateRANSlice.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/terminateRANSlice.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 atomic='true'>
+ <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
+ <parameter name="file" value="/opt/opendaylight/current/data/log/terminateRANSlice.log" />
+ <parameter name="level" value="info" />
+ <parameter name="field1" value="Iterating "/>
+ <parameter name="field2" value="`CellDU`"/>
+ </record>
+ <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>
+ <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
+ <parameter name="file" value="/opt/opendaylight/current/data/log/terminateRANSlice.log" />
+ <parameter name="level" value="info" />
+ <parameter name="field1" value="plmninfolengthcelldu "/>
+ <parameter name="field2" value="`$tmp.DUpLMNInfoList_length`"/>
+ </record>
+ <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.sNssaiListLengthDU' />
+ <parameter name='source' value="`'getNFNSSIRIC-configdb-response.['+ $idy +'].gNBDUList['+ $id-du +'].cellDUList['+ $id-celldu +'].pLMNInfoList['+ $id-duplmn +'].sNSSAI_length'`" />
+ </execute>
+ <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
+ <parameter name="file" value="/opt/opendaylight/current/data/log/terminateRANSlice.log" />
+ <parameter name="level" value="info" />
+ <parameter name="field1" value="DU_plmninfolength_nssailength "/>
+ <parameter name="field2" value="`$tmp.sNssaiListLengthDU`"/>
+ </record>
+ <switch test='`$tmp.sNssaiListLengthDU > 0`'>
+ <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/terminateRANSlice.log" />
+ <parameter name="level" value="info" />
+ <parameter name="field1" value="plmninfolistnssailength in true in DU "/>
+ <parameter name="field2" value="`$tmp.sNssaiListLengthDU`"/>
+ </record>
+ <for index='id-dusnssai' start='0' end='`$tmp.sNssaiListLengthDU`'>
+ <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-dusnssai +'].sNSSAI'`" />
+ </execute>
+ <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
+ <parameter name="file" value="/opt/opendaylight/current/data/log/terminateRANSlice.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'>
+ <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
+ <parameter name="file" value="/opt/opendaylight/current/data/log/terminateRANSlice.log" />
+ <parameter name="level" value="info" />
+ <parameter name="field1" value="CellDU 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.terminateSNSSAIEntry.ToNRCellDU`"/>
+ <parameter name="outputPath" value="tmp.deletePLMNInfoListEntry-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.terminateSNSSAIEntry.ToNRCellDU.ransim-mounted`"/>
+ <parameter name="outputPath" value="tmp.deletePLMNInfoListEntry-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.deletePLMNInfoListEntry-cellDU.url`"/>
+ <parameter name="outputPath" value="tmp.deletePLMNInfoListEntry-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.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>
+ <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
+ <parameter name="file" value="/opt/opendaylight/current/data/log/terminateRANSlice.log" />
+ <parameter name="level" value="info" />
+ <parameter name="field1" value="LocalId "/>
+ <parameter name="field2" value="`$tmp.cellDULocalId`"/>
+ </record>
+ <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >
+ <parameter name="source" value="`$tmp.deletePLMNInfoListEntry-cellDU.url`"/>
+ <parameter name="outputPath" value="tmp.deletePLMNInfoListEntry-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.deletePLMNInfoListEntry-cellDU.url`"/>
+ <parameter name="outputPath" value="tmp.deletePLMNInfoListEntry-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.deletePLMNInfoListEntry-cellDU.url`"/>
+ <parameter name="outputPath" value="tmp.deletePLMNInfoListEntry-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.deletePLMNInfoListEntry-cellDU.url`"/>
+ <parameter name="outputPath" value="tmp.deletePLMNInfoListEntry-cellDU.url"/>
+ <parameter name="target" value="{mnc}"/>
+ <parameter name="replacement" value="`$tmp.mnc`"/>
+ </execute>
+ <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >
+ <parameter name="source" value="`$tmp.deletePLMNInfoListEntry-cellDU.url`"/>
+ <parameter name="outputPath" value="tmp.deletePLMNInfoListEntry-cellDU.url"/>
+ <parameter name="target" value="{sNssai}"/>
+ <parameter name="replacement" value="`$tmp.sNSSAI`"/>
+ </execute>
+ <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
+ <parameter name="file" value="/opt/opendaylight/current/data/log/terminateRANSlice.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.GNBDUId`"/>
+ <parameter name="field4" value="`$tmp.cellDULocalId`"/>
+ <parameter name="field5" value="`$tmp.mcc`"/>
+ <parameter name="field6" value="`$tmp.mnc`"/>
+ <parameter name="field7" value="`$tmp.sNSSAI`"/>
+ <parameter name="field8" value="`$tmp.deletePLMNInfoListEntry-cellDU.url`"/>
+ </record>
+ <execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >
+ <parameter name="restapiUrl" value="`$prop.controller.url + $tmp.deletePLMNInfoListEntry-cellDU.url`"/>
+ <parameter name="restapiUser" value="`$prop.controller.user`" />
+ <parameter name="restapiPassword" value="`$prop.controller.pwd`"/>
+ <parameter name="httpMethod" value="DELETE"/>
+ <parameter name="responsePrefix" value="delete-cellDU-PLMNInfoList-response"/>
+ <parameter name='contentType' value='application/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="success"/>
+ <parameter name="tmp.reason" value="`$error-message`"/>
+ <parameter name="tmp.requestID" value="`$terminate-r-a-n-slice-input.common-header.request-id `"/>
+ <parameter name="tmp.action" value="`$terminate-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="`$payloadJson.input.callbackURL`"/>
+ <parameter name="httpMethod" value="POST"/>
+ <parameter name="responsePrefix" value="so-callback-terminate-response"/>
+ <parameter name='contentType' value='application/json' />
+ <parameter name='format' value='json' />
+ <parameter name='accept' value='*/*' />
+ <parameter name="convertResponse" value="true"/>
+ <parameter name="restapiUser" value="`$prop.restapi.so.user`" />
+ <parameter name="restapiPassword" value="`$prop.restapi.so.password`"/>
+ <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/terminateRANSlice.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 deleting 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 deleting 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/instantiateRANSliceModifyAllocate.log" />
+ <parameter name="level" value="info" />
+ <parameter name="field1" value="Successfully deleted - cellDU PLMNInfo List"/>
+ </record>
+ </block>
+ </outcome>
+ </execute>
+ <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >
+ <parameter name="source" value="`$prop.restapi.configdb.removenSSAINRCellDU`"/>
+ <parameter name="outputPath" value="tmp.deleteplmninfo-GNBDU.configdb.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.deleteplmninfo-GNBDU.configdb.url`"/>
+ <parameter name="outputPath" value="tmp.deleteplmninfo-GNBDU.configdb.url"/>
+ <parameter name="target" value="{sNSSAI}"/>
+ <parameter name="replacement" value="`$tmp.sNSSAI`"/>
+ </execute>
+ <execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >
+ <parameter name="restapiUrl" value="`$prop.configdb.url + $tmp.deleteplmninfo-GNBDU.configdb.url`"/>
+ <parameter name="httpMethod" value="DELETE"/>
+ <parameter name="responsePrefix" value="delete-GNBDU-plmninfo-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 atomic='true'>
+ <set>
+ <parameter name='error-code' value='500'/>
+ <parameter name='error-message' value='Error removing 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 removing CUUP PLMNInfo. Aborting RPC executiopn'/>
+ </return>
+ </block>
+ </outcome>
+ <outcome value='success'>
+ <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
+ <parameter name="file" value="/opt/opendaylight/current/data/log/terminateRANSlice.log" />
+ <parameter name="level" value="info" />
+ <parameter name="field1" value="Successfully removed - gNBDU pmmninfo Entry from configdb"/>
+ </record>
+ </outcome>
+ </execute>
+ <block atomic='true'>
+ <block atomic='true'>
+ <set>
+ <parameter name='tmp.uLThptPerSlice' value='`$payloadJson.input.sliceProfile.uLThptPerSlice`' />
+ </set>
+ <set>
+ <parameter name='tmp.dLThptPerSlice' value='`$payloadJson.input.sliceProfile.dLThptPerSlice`' />
+ </set>
+ <set>
+ <parameter name='tmp.maxNumberOfConns' value='`$payloadJson.input.sliceProfile.maxNumberOfConns`' />
+ </set>
+ <set>
+ <parameter name='tmp.nearRTRIC.trafficCapacity1' value='`$tmp.uLThptPerSlice + $tmp.dLThptPerSlice`' />
+ </set>
+ <set>
+ <parameter name='tmp.nearRTRIC.trafficCapacity' value='`$tmp.nearRTRIC.trafficCapacity1 / 2`' />
+ </set>
+ <set>
+ <parameter name='tmp.nearRTRIC.trafficCapacityBPS' value='`$tmp.nearRTRIC.trafficCapacity * 1000000`' />
+ </set>
+ <set>
+ <parameter name='tmp.nrcelldu.totalPRBForSNSSAI' value='`$tmp.nearRTRIC.trafficCapacityBPS / 1008000`' />
+ </set>
+ <set>
+ <parameter name='tmp.nrcelldu.PRBPerImpactedCell' value='`$tmp.nrcelldu.totalPRBForSNSSAI / $tmp.cellDUList_length`' />
+ </set>
+ <set>
+ <parameter name='tmp.rRMPolicyDedicatedRatio.CellDU1' value='`$tmp.nrcelldu.PRBPerImpactedCell * 100`' />
+ </set>
+ <set>
+ <parameter name='tmp.rRMPolicyDedicatedRatio.CellDU' value='`$tmp.rRMPolicyDedicatedRatio.CellDU1 / $prop.nrcelldu.TotalPRBsPerCell`' />
+ </set>
+ <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
+ <parameter name="file" value="/opt/opendaylight/current/data/log/instantiateRANSlice.log" />
+ <parameter name="level" value="info" />
+ <parameter name="field1" value="rRMPolicyDedicatedRatio for CellDU "/>
+ <parameter name="field2" value="`$tmp.rRMPolicyDedicatedRatio.CellDU`"/>
+ <parameter name="field3" value="tmp.nearRTRIC.trafficCapacity1 "/>
+ <parameter name="field4" value="`$tmp.nearRTRIC.trafficCapacity1`"/>
+ <parameter name="field5" value="tmp.nearRTRIC.trafficCapacity "/>
+ <parameter name="field6" value="`$tmp.nearRTRIC.trafficCapacity`"/>
+ <parameter name="field7" value="tmp.nearRTRIC.trafficCapacityBPS"/>
+ <parameter name="field8" value="`$tmp.nearRTRIC.trafficCapacityBPS`"/>
+ <parameter name="field9" value="tmp.nrcelldu.totalPRBForSNSSAI "/>
+ <parameter name="field10" value="`$tmp.nrcelldu.totalPRBForSNSSAI`"/>
+ <parameter name="field11" value="tmp.nrcelldu.PRBPerImpactedCell "/>
+ <parameter name="field12" value="`$tmp.nrcelldu.PRBPerImpactedCell`"/>
+ <parameter name="field13" value="tmp.rRMPolicyDedicatedRatio.CellDU1 "/>
+ <parameter name="field14" value="`$tmp.rRMPolicyDedicatedRatio.CellDU1`"/>
+ </record>
+ </block>
+ <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.RRMPolicyRatioEntry.ToGNBDU`"/>
+ <parameter name="outputPath" value="tmp.getRRMPolicyRatio-gNBDU.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.RRMPolicyRatioEntry.ToGNBDU.ransim-mounted`"/>
+ <parameter name="outputPath" value="tmp.getRRMPolicyRatio-gNBDU.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.getRRMPolicyRatio-gNBDU.url`"/>
+ <parameter name="outputPath" value="tmp.getRRMPolicyRatio-gNBDU.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.getRRMPolicyRatio-gNBDU.url`"/>
+ <parameter name="outputPath" value="tmp.getRRMPolicyRatio-gNBDU.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.getRRMPolicyRatio-gNBDU.url`"/>
+ <parameter name="outputPath" value="tmp.getRRMPolicyRatio-gNBDU.url"/>
+ <parameter name="target" value="{idNRCellDU}"/>
+ <parameter name="replacement" value="`$tmp.cellDULocalId`"/>
+ </execute>
+ <execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >
+ <parameter name="restapiUrl" value="`$prop.controller.url + $tmp.getRRMPolicyRatio-gNBDU.url`"/>
+ <parameter name="restapiUser" value="`$prop.controller.user`" />
+ <parameter name="restapiPassword" value="`$prop.controller.pwd`"/>
+ <parameter name="httpMethod" value="GET"/>
+ <parameter name="responsePrefix" value="get-rrmpolicyratio-du-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 atomic='true'>
+ <block atomic='true'>
+ <set>
+ <parameter name="tmp.so.callbackURL" value="`$payloadJson.input.callbackURL`"/>
+ <parameter name="tmp.status" value="success"/>
+ <parameter name="tmp.reason" value="`$error-message`"/>
+ <parameter name="tmp.requestID" value="`$terminate-r-a-n-slice-input.common-header.request-id `"/>
+ <parameter name="tmp.action" value="`$terminate-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="`$payloadJson.input.callbackURL`"/>
+ <parameter name="httpMethod" value="POST"/>
+ <parameter name="responsePrefix" value="so-callback-terminate-response"/>
+ <parameter name='contentType' value='application/json' />
+ <parameter name='format' value='json' />
+ <parameter name='accept' value='*/*' />
+ <parameter name="convertResponse" value="true"/>
+ <parameter name="restapiUser" value="`$prop.restapi.so.user`" />
+ <parameter name="restapiPassword" value="`$prop.restapi.so.password`"/>
+ <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/terminateRANSlice.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 in retrieving RRMPolicyRatio. 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 in Fetching RRMPolicyRatio - CellDU. 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/instantiateRANSliceModifyAllocate.log" />
+ <parameter name="level" value="info" />
+ <parameter name="field1" value="Successfully Retrieved - RRMPolicyRatio"/>
+ </record>
+ <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='printContext' >
+ <parameter name='filename' value='/opt/opendaylight/current/data/log/ranSlice-instantiateRANSlice-configrsp-context.log' />
+ </execute>
+ </block>
+ </outcome>
+ </execute>
+ <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'>
+ <parameter name='outputPath' value='tmp.rrmPolicyRatioDUList_length' />
+ <parameter name='source' value="`'get-rrmpolicyratio-du-response.attributes.RRMPolicyRatio_length'`" />
+ </execute>
+ <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
+ <parameter name="file" value="/opt/opendaylight/current/data/log/terminateRANSlice.log" />
+ <parameter name="level" value="info" />
+ <parameter name="field1" value="RRMPolicyRatioList size"/>
+ <parameter name="field2" value="`$tmp.rrmPolicyRatioDUList_length`"/>
+ </record>
+ <for index='iddu-rrm' start='0' end='`$tmp.rrmPolicyRatioDUList_length`' >
+ <block atomic='true'>
+ <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'>
+ <parameter name='outputPath' value='tmp.cellDURRMPolicyRatio_id' />
+ <parameter name='source' value="`'get-rrmpolicyratio-du-response.attributes.RRMPolicyRatio['+ $iddu-rrm+'].id'`" />
+ </execute>
+ <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'>
+ <parameter name='outputPath' value='tmp.DURRMPolicyMembersLength' />
+ <parameter name='source' value="`'get-rrmpolicyratio-du-response.attributes.RRMPolicyRatio['+ $iddu-rrm+'].attributes.rRMPolicyMemberList_length'`" />
+ </execute>
+ <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
+ <parameter name="file" value="/opt/opendaylight/current/data/log/terminateRANSlice.log" />
+ <parameter name="level" value="info" />
+ <parameter name="field1" value="RRMPOLICYmemberslength"/>
+ <parameter name="field2" value="`$tmp.DURRMPolicyMembersLength`"/>
+ </record>
+ <for index='iddu-rrm2' start='0' end='`$tmp.DURRMPolicyMembersLength`' >
+ <block atomic='true'>
+ <switch test='`$tmp.DURRMPolicyMembersLength > 0`'>
+ <outcome value='true'>
+ <block atomic='true'>
+ <switch test='`$prop.ransim-mounted`'>
+ <outcome value='false'>
+ <block atomic='true'>
+ <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >
+ <parameter name="source" value="`$prop.restapi.removeRRMPolicyRatio.ToNRCellDU`"/>
+ <parameter name="outputPath" value="tmp.deleteRRMPolicyRatio-DU.url"/>
+ <parameter name="target" value="{idNearRTRIC}"/>
+ <parameter name="replacement" value="`$tmp.nearRTRICId`"/>
+ </execute>
+ </block>
+ </outcome>
+ <outcome value='true'>
+ <block atomic='true'>
+ <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >
+ <parameter name="source" value="`$prop.restapi.removeRRMPolicyRatio.ToNRCellDU.ransim-mounted`"/>
+ <parameter name="outputPath" value="tmp.deleteRRMPolicyRatio-DU.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.deleteRRMPolicyRatio-DU.url`"/>
+ <parameter name="outputPath" value="tmp.deleteRRMPolicyRatio-DU.url"/>
+ <parameter name="target" value="{mountName}"/>
+ <parameter name="replacement" value="`$tmp.GNBDUId`"/>
+ </execute>
+ </block>
+ </outcome>
+ </switch>
+ </block>
+ </outcome>
+ <outcome value='false'>
+ <block atomic='true'>
+ <set>
+ <parameter name='tmp.cellDURRMPolicyMember_sNSSAI' value="`'$get-rrmpolicyratio-du-response.attributes.RRMPolicyRatio['+ $iddu-rrm+'].attributes.rRMPolicyMemberList['+ $iddu-rrm2 +'].sNSSAI'`" />
+ </set>
+ <switch test='`$tmp.cellDURRMPolicyMember_sNSSAI==$tmp.sNSSAI`'>
+ <outcome value='success'>
+ <block atomic='true'>
+ <set>
+ <parameter name='tmp.CellDURRMPolicyMember_id' value="`'$get-rrmpolicyratio-du-response.attributes.RRMPolicyRatio['+ $iddu-rrm+'].attributes.rRMPolicyMemberList['+ $iddu-rrm2 +'].idx'`" />
+ </set>
+ <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
+ <parameter name="file" value="/opt/opendaylight/current/data/log/terminateRANSlice.log" />
+ <parameter name="level" value="info" />
+ <parameter name="field1" value="RRMPolicyMember id - "/>
+ <parameter name="field2" value="`$tmp.CellDURRMPolicyMember_id`"/>
+ </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.removeRRMPolicyMember.ToNRCellDU`"/>
+ <parameter name="outputPath" value="tmp.deleteRRMPolicyRatio-DU.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.removeRRMPolicyMember.ToNRCellDU.ransim-mounted`"/>
+ <parameter name="outputPath" value="tmp.deleteRRMPolicyRatio-DU.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.deleteRRMPolicyRatio-DU.url`"/>
+ <parameter name="outputPath" value="tmp.deleteRRMPolicyRatio-DU.url"/>
+ <parameter name="target" value="{mountName}"/>
+ <parameter name="replacement" value="`$tmp.GNBDUId`"/>
+ </execute>
+ </block>
+ </outcome>
+ </switch>
+ </block>
+ </outcome>
+ </switch>
+ </block>
+ </outcome>
+ </switch>
+ <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >
+ <parameter name="source" value="`$tmp.deleteRRMPolicyRatio-DU.url`"/>
+ <parameter name="outputPath" value="tmp.deleteRRMPolicyRatio-DU.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.deleteRRMPolicyRatio-DU.url`"/>
+ <parameter name="outputPath" value="tmp.deleteRRMPolicyRatio-DU.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.deleteRRMPolicyRatio-DU.url`"/>
+ <parameter name="outputPath" value="tmp.deleteRRMPolicyRatio-DU.url"/>
+ <parameter name="target" value="{id}"/>
+ <parameter name="replacement" value="`$tmp.cellDURRMPolicyRatio_id`"/>
+ </execute>
+ <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >
+ <parameter name="source" value="`$tmp.deleteRRMPolicyRatio-DU.url`"/>
+ <parameter name="outputPath" value="tmp.deleteRRMPolicyRatio-DU.url"/>
+ <parameter name="target" value="{idx}"/>
+ <parameter name="replacement" value="`$tmp.cellDURRMPolicyMember_sNSSAI`"/>
+ </execute>
+ </block>
+ </for>
+ <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
+ <parameter name="file" value="/opt/opendaylight/current/data/log/terminateRANSlice.log" />
+ <parameter name="level" value="info" />
+ <parameter name="field1" value="Delete RRMPolicy URL - "/>
+ <parameter name="field2" value="`$tmp.deleteRRMPolicyRatio-DU.url`"/>
+ <parameter name="field3" value="RRMPolicyRatio id"/>
+ <parameter name="field4" value="`$tmp.cellDURRMPolicyRatio_id`"/>
+ </record>
+ <execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >
+ <parameter name="restapiUrl" value="`$prop.controller.url + $tmp.deleteRRMPolicyRatio-DU.url`"/>
+ <parameter name="restapiUser" value="`$prop.controller.user`" />
+ <parameter name="restapiPassword" value="`$prop.controller.pwd`"/>
+ <parameter name="httpMethod" value="DELETE"/>
+ <parameter name="responsePrefix" value="delete-cellDU-RRMPolicyRatio-response"/>
+ <parameter name='contentType' value='application/json' />
+ <parameter name='format' value='json' />
+ <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/terminateRANSlice.log" />
+ <parameter name="level" value="info" />
+ <parameter name="field1" value="Successfully removed - cellDU RRMpolicyRatio"/>
+ </record>
+ </block>
+ </outcome>
+ <outcome value='failure'>
+ <block atomic='true'>
+ <block atomic='true'>
+ <set>
+ <parameter name="tmp.so.callbackURL" value="`$payloadJson.input.callbackURL`"/>
+ <parameter name="tmp.status" value="success"/>
+ <parameter name="tmp.reason" value="`$error-message`"/>
+ <parameter name="tmp.requestID" value="`$terminate-r-a-n-slice-input.common-header.request-id `"/>
+ <parameter name="tmp.action" value="`$terminate-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="`$payloadJson.input.callbackURL`"/>
+ <parameter name="httpMethod" value="POST"/>
+ <parameter name="responsePrefix" value="so-callback-terminate-response"/>
+ <parameter name='contentType' value='application/json' />
+ <parameter name='format' value='json' />
+ <parameter name='accept' value='*/*' />
+ <parameter name="convertResponse" value="true"/>
+ <parameter name="restapiUser" value="`$prop.restapi.so.user`" />
+ <parameter name="restapiPassword" value="`$prop.restapi.so.password`"/>
+ <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/terminateRANSlice.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 removing cellDU RRMPolicyRatio. 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 removing RRMPolicyRatio for NRCellDU. Aborting RPC executiopn'/>
+ </return>
+ </block>
+ </outcome>
+ </execute>
+ <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'>
+ <parameter name='outputPath' value='tmp.DURRMPolicyMembersResourceType' />
+ <parameter name='source' value="`'get-rrmpolicyratio-du-response.attributes.RRMPolicyRatio['+ $iddu-rrm+'].attributes.resourceType'`" />
+ </execute>
+ <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >
+ <parameter name="source" value="`$prop.restapi.configdb.removenSSAICUUPRRMPOLICY`"/>
+ <parameter name="outputPath" value="tmp.deleteRRMPolicy-CUUP.configdb.url"/>
+ <parameter name="target" value="{gnbCUUPId}"/>
+ <parameter name="replacement" value="`$tmp.cellDULocalId`"/>
+ </execute>
+ <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >
+ <parameter name="source" value="`$tmp.deleteRRMPolicy-CUUP.configdb.url`"/>
+ <parameter name="outputPath" value="tmp.deleteRRMPolicy-CUUP.configdb.url"/>
+ <parameter name="target" value="{resourcetype}"/>
+ <parameter name="replacement" value="`$tmp.DURRMPolicyMembersResourceType`"/>
+ </execute>
+ <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >
+ <parameter name="source" value="`$tmp.deleteRRMPolicy-CUUP.configdb.url`"/>
+ <parameter name="outputPath" value="tmp.deleteRRMPolicy-CUUP.configdb.url"/>
+ <parameter name="target" value="{sNSSAI}"/>
+ <parameter name="replacement" value="`$tmp.sNSSAI`"/>
+ </execute>
+ <execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >
+ <parameter name="restapiUrl" value="`$prop.configdb.url + $tmp.deleteRRMPolicy-CUUP.configdb.url`"/>
+ <parameter name="httpMethod" value="DELETE"/>
+ <parameter name="responsePrefix" value="delete-DU-rrmpolicy-configdb-response"/>
+ <parameter name='contentType' value='application/json' />
+ <parameter name='format' value='json' />
+ <parameter name='accept' value='application/json' />
+ <parameter name="convertResponse" value="true"/>
+ <outcome value='failure'>
+ <block atomic='true'></block>
+ </outcome>
+ <outcome value='success'>
+ <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
+ <parameter name="file" value="/opt/opendaylight/current/data/log/terminateRANSlice.log" />
+ <parameter name="level" value="info" />
+ <parameter name="field1" value="Successfully removed - gNBDU rrmpolicy Entry from configdb"/>
+ </record>
+ </outcome>
+ </execute>
+ </block>
+ </for>
+ </block>
+ </block>
+ </outcome>
+ </switch>
+ </block>
+ </for>
+ </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/terminateRANSlice.log" />
+ <parameter name="level" value="info" />
+ <parameter name="field1" value="plmninfolistnssailength in false in DU "/>
+ <parameter name="field2" value="`$tmp.sNssaiListLengthDU`"/>
+ </record>
+ </block>
+ </outcome>
+ </switch>
+ </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="success"/>
+ <parameter name="tmp.reason" value="`$error-message`"/>
+ <parameter name="tmp.requestID" value="`$terminate-r-a-n-slice-input.common-header.request-id `"/>
+ <parameter name="tmp.action" value="`$tmp.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-termi-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/terminateRANSlice.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_terminateRANSliceInstance-cps.xml b/platform-logic/ran-slice-api/src/main/xml/ran-slice-api_terminateRANSliceInstance-cps.xml
new file mode 100644
index 00000000..4d8c1b9c
--- /dev/null
+++ b/platform-logic/ran-slice-api/src/main/xml/ran-slice-api_terminateRANSliceInstance-cps.xml
@@ -0,0 +1,2779 @@
+<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='terminateRANSliceInstance-cps' mode='sync'>
+ <block atomic='true'>
+ <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
+ <parameter name="file" value="/opt/opendaylight/current/data/log/terminateRANSlice.log" />
+ <parameter name="level" value="info" />
+ <parameter name="field1" value="RPC to handle terminateRANSlice.: "/>
+ <parameter name="field2" value="`$terminate-r-a-n-slice-instance-input.action`"/>
+ <parameter name="field3" value="`$terminate-r-a-n-slice-instance-input.common-header.timestamp`"/>
+ <parameter name="field4" value="`$terminate-r-a-n-slice-instance-input.common-header.request-id`"/>
+ <parameter name="field5" value="`$terminate-r-a-n-slice-instance-input.common-header.originator-id`"/>
+ <parameter name="field6" value="RPC Payload String "/>
+ <parameter name="field7" value="`$terminate-r-a-n-slice-instance-input.payload`"/>
+ </record>
+ <set>
+ <parameter name='error-code' value='200' />
+ <parameter name='error-message' value='Successful execution of terminateRANSice RPC' />
+ </set>
+ <switch test='`$terminate-r-a-n-slice-instance-input.action == deallocate`'>
+ <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/terminateRANSlice.log" />
+ <parameter name="level" value="info" />
+ <parameter name="field1" value="deallocate called" />
+ </record>
+ <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='jsonStringToCtx'>
+ <parameter name='source' value='terminate-r-a-n-slice-instance-input.payload' />
+ <parameter name='outputPath' value='payloadJson' />
+ <parameter name='isEscaped' value='false' />
+ <outcome value='success'>
+ <block atomic='true'>
+ <set>
+ <parameter name='tmp.action' value="`$terminate-r-a-n-slice-instance-input.action`"/>
+ </set>
+ <set>
+ <parameter name='tmp.payload.RANNFNSSIId' value="`$payloadJson.input.RANNFNSSIId`"/>
+ </set>
+ <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='printContext' >
+ <parameter name='filename' value='/opt/opendaylight/current/data/log/ranSlice-terminateRANSlice-context.log' />
+ </execute>
+ <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
+ <parameter name="file" value="/opt/opendaylight/current/data/log/terminateRANSlice.log" />
+ <parameter name="level" value="info" />
+ <parameter name="field1" value="Payload for terminateRANSlice.: "/>
+ <parameter name="field2" value="`$tmp.sNSSAI`"/>
+ <parameter name="field3" value="`$payloadJson.input.RANNFNSSIId`"/>
+ <parameter name="field4" value="`$payloadJson.input.callbackURL`"/>
+ <parameter name="field5" value="`$payloadJson.input.sliceProfileId`"/>
+ </record>
+ <set>
+ <parameter name='tmp.sNSSAI' value="`$payloadJson.input.sNSSAI`"/>
+ </set>
+ <set>
+ <parameter name='tmp.sliceprofileid' value="`$payloadJson.input.sliceProfileId`"/>
+ </set>
+ <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
+ <parameter name="file" value="/opt/opendaylight/current/data/log/terminateRANSlice.log" />
+ <parameter name="level" value="info" />
+ <parameter name="field1" value="DEallocate sNSSAI: "/>
+ <parameter name="field2" value="`$tmp.sNSSAI`"/>
+ <parameter name="field3" value="`$tmp.sliceprofileid`"/>
+ </record>
+ </block>
+ </outcome>
+ </execute>
+ </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/terminateRANSlice.log" />
+ <parameter name="level" value="info" />
+ <parameter name="field1" value="modify deallocate called" />
+ </record>
+ <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='jsonStringToCtx'>
+ <parameter name='source' value='instantiate-r-a-n-slice-input.payload' />
+ <parameter name='outputPath' value='payloadJson' />
+ <parameter name='isEscaped' value='false' />
+ <outcome value='success'>
+ <block atomic='true'>
+ <set>
+ <parameter name='tmp.action' value="`$instantiate-r-a-n-slice-input.action`"/>
+ </set>
+ <set>
+ <parameter name='tmp.payload.RANNFNSSIId' value="`$payloadJson.input.RANNFNSSIId`"/>
+ </set>
+ <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='printContext' >
+ <parameter name='filename' value='/opt/opendaylight/current/data/log/ranSlice-terminateRANSlice-context.log' />
+ </execute>
+ <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
+ <parameter name="file" value="/opt/opendaylight/current/data/log/terminateRANSlice.log" />
+ <parameter name="level" value="info" />
+ <parameter name="field1" value="Payload for modifyallocateRANSlice.: "/>
+ <parameter name="field2" value="`$payloadJson.input.RANNFNSSIId`"/>
+ <parameter name="field3" value="`$payloadJson.input.callbackURL`"/>
+ <parameter name="field4" value="`$payloadJson.input.sliceProfile.sliceProfileId`"/>
+ </record>
+ <set>
+ <parameter name='tmp.sNSSAI' value="`$payloadJson.input.sliceProfile.sNSSAI`"/>
+ </set>
+ <set>
+ <parameter name='tmp.sliceprofileid' value="`$payloadJson.input.sliceProfile.sliceProfileId`"/>
+ </set>
+ <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
+ <parameter name="file" value="/opt/opendaylight/current/data/log/terminateRANSlice.log" />
+ <parameter name="level" value="info" />
+ <parameter name="field1" value="modify-deallocate-sNSSAI: "/>
+ <parameter name="field2" value="`$tmp.sNSSAI`"/>
+ <parameter name="field3" value="`$tmp.sliceprofileid`"/>
+ </record>
+ </block>
+ </outcome>
+ </execute>
+ </block>
+ </outcome>
+ </switch>
+ <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='printContext' >
+ <parameter name='filename' value='/opt/opendaylight/current/data/log/ranSlice-terminateRANSlice-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/terminateRANSlice.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>
+ <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/terminateRANSlice.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>
+ <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
+ <parameter name="file" value="/opt/opendaylight/current/data/log/terminateRANSlice.log" />
+ <parameter name="level" value="info" />
+ <parameter name="field1" value="Failed to fetch anchors from CPS"/>
+ </record>
+ <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/terminateRANSlice.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/terminateRANSlice.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/terminateRANSlice.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 ConfigDB. Aborting RPC executiopn'/>
+ </set>
+ <block atomic='true'>
+ <set>
+ <parameter name="tmp.so.callbackURL" value="`$payloadJson.input.callbackURL`"/>
+ <parameter name="tmp.status" value="success"/>
+ <parameter name="tmp.reason" value="`$error-message`"/>
+ <parameter name="tmp.requestID" value="`$terminate-r-a-n-slice-input.common-header.request-id `"/>
+ <parameter name="tmp.action" value="`$terminate-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="`$payloadJson.input.callbackURL`"/>
+ <parameter name="httpMethod" value="POST"/>
+ <parameter name="responsePrefix" value="so-callback-terminate-response"/>
+ <parameter name='contentType' value='application/json' />
+ <parameter name='format' value='json' />
+ <parameter name='accept' value='*/*' />
+ <parameter name="convertResponse" value="true"/>
+ <parameter name="restapiUser" value="`$prop.restapi.so.user`" />
+ <parameter name="restapiPassword" value="`$prop.restapi.so.password`"/>
+ <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/terminateRANSlice.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/terminateRANSlice.log" />
+ <parameter name="level" value="info" />
+ <parameter name="field1" value="Successfully Obtained NearRT RIC info from ConfigDB"/>
+ <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/terminateRANSlice.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 ConfigDB. 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/terminateRANSlice.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/terminateRANSlice.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/terminateRANSlice.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 ConfigDB. 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/terminateRANSlice.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/terminateRANSlice.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>
+ <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
+ <parameter name="file" value="/opt/opendaylight/current/data/log/terminateRANSlice.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>
+ <for index='idy' start='0' end='`$getNFNSSIRIC-cps-response._length`' >
+ <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
+ <parameter name="file" value="/opt/opendaylight/current/data/log/terminateRANSlice.log" />
+ <parameter name="level" value="info" />
+ <parameter name="field1" value="`nearrtric length`"/>
+ <parameter name="field2" value="`$getNFNSSIRIC-cps-response._length`"/>
+ </record>
+ <block atomic='true'>
+ <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'>
+ <parameter name='outputPath' value='tmp.RICPLMNEntries' />
+ <parameter name='source' value="`'getNFNSSIRIC-cps-response.['+ $idy +'].attributes.pLMNInfoList_length'`" />
+ </execute>
+ <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
+ <parameter name="file" value="/opt/opendaylight/current/data/log/terminateRANSlice.log" />
+ <parameter name="level" value="info" />
+ <parameter name="field1" value="PLMNInfo List before removal"/>
+ <parameter name="field2" value="`$tmp.RICPLMNEntries`"/>
+ </record>
+ <for index='id-ric' start='0' end='`$tmp.RICPLMNEntries`' >
+ <block atomic='true'>
+ <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'>
+ <parameter name='outputPath' value='tmp.ric.sNSSAILength' />
+ <parameter name='source' value="`'getNFNSSIRIC-cps-response.['+ $idy +'].attributes.pLMNInfoList['+$id-ric+'].sNSSAIList_length'`" />
+ </execute>
+ <for index='id-ric-snssai' start='0' end='`$tmp.ric.sNSSAILength`' >
+ <block atomic='true'>
+ <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'>
+ <parameter name='outputPath' value='tmp.ric.sNSSAI' />
+ <parameter name='source' value="`'getNFNSSIRIC-cps-response.['+ $idy +'].attributes.pLMNInfoList['+$id-ric+'].sNSSAIList['+$id-ric-snssai+'].sNssai'`" />
+ </execute>
+ <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
+ <parameter name="file" value="/opt/opendaylight/current/data/log/terminateRANSlice.log" />
+ <parameter name="level" value="info" />
+ <parameter name="field1" value="snssai from cps response"/>
+ <parameter name="field2" value="`$tmp.ric.sNSSAI`"/>
+ </record>
+ <switch test='`$tmp.ric.sNSSAI == $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/terminateRANSlice.log" />
+ <parameter name="level" value="info" />
+ <parameter name="field1" value="Matching sNSSAI found in config DB"/>
+ <parameter name="field2" value="`$tmp.ric.sNSSAI`"/>
+ <parameter name="field3" value="sNSSAI List length before removal"/>
+ <parameter name="field4" value="`$tmp.ric.sNSSAILength`"/>
+ </record>
+ <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'>
+ <parameter name='outputPath' value='tmp.ric.sNSSAIremoved' />
+ <parameter name='source' value="`'getNFNSSIRIC-cps-response.['+ $idy +'].attributes.pLMNInfoList['+$id-ric+'].sNSSAIList['+$id-ric-snssai+'].sNssai'`" />
+ </execute>
+ <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'>
+ <parameter name='outputPath' value='tmp.nearRTRICId' />
+ <parameter name='source' value="`'getNFNSSIRIC-cps-response.[' + $idy + '].idNearRTRIC'`" />
+ </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.deletenssai.rtric.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.deletenssai.rtric.url`"/>
+ <parameter name="outputPath" value="tmp.cps.deletenssai.rtric.url"/>
+ <parameter name="target" value="{templateId}"/>
+ <parameter name="replacement" value="`$prop.tbdmt.template.delete-nssai-from-rtric`"/>
+ </execute>
+ <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
+ <parameter name="file" value="/opt/opendaylight/current/data/log/terminateRANSlice.log" />
+ <parameter name="level" value="info" />
+ <parameter name="field1" value="sNSSAI"/>
+ <parameter name="field2" value="`$tmp.ric.sNSSAIremoved`" />
+ <parameter name="field3" value="nearRTRICId"/>
+ <parameter name="field4" value="`$tmp.nearRTRICId`" />
+ <parameter name="field5" value="endpoint URL"/>
+ <parameter name="field6" value="`$tmp.configdb.getNearRTRICNSSAIRemoval.url`" />
+ </record>
+ <execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >
+ <parameter name="restapiUrl" value="`$tmp.cps.deletenssai.rtric.url`"/>
+ <parameter name="templateFileName" value="`$prop.restapi.templateDir + '/cps-templates/delete-nearrtic-nssai.json'`" />
+ <parameter name="httpMethod" value="POST"/>
+ <parameter name="responsePrefix" value="cps--nearrtic-nssai-delete-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 atomic='true'>
+ <set>
+ <parameter name='error-code' value='500'/>
+ <parameter name='error-message' value='Error updating nearRTRIC info in ConfigDB. Aborting RPC executiopn'/>
+ </set>
+ <return status='failure'>
+ <parameter name='ack-final' value='Y'/>
+ <parameter name='error-code' value='500'/>
+ <parameter name='error-message' value='Error updating nearRTRIC info in ConfigDB. Aborting RPC executiopn'/>
+ </return>
+ </block>
+ </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/terminateRANSlice.log" />
+ <parameter name="level" value="info" />
+ <parameter name="field1" value="Successfully Updated NearRT RIC info in cps"/>
+ </record>
+ </block>
+ </outcome>
+ </execute>
+ </block>
+ </outcome>
+ <outcome value='false'>
+ <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
+ <parameter name="file" value="/opt/opendaylight/current/data/log/terminateRANSlice.log" />
+ <parameter name="level" value="info" />
+ <parameter name="field1" value="NSSAI doesn't exist "/>
+ </record>
+ </outcome>
+ </switch>
+ </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-cps-response.[' + $idy +'].GNBCUCPFunction_length'`" />
+ </execute>
+ <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
+ <parameter name="file" value="/opt/opendaylight/current/data/log/terminateRANSlice.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-cps-response.['+ $idy +'].GNBCUCPFunction['+ $idz +'].attributes.gNBCUName'`" />
+ </execute>
+ <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
+ <parameter name="file" value="/opt/opendaylight/current/data/log/terminateRANSlice.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-cps-response.[' + $idy +'].GNBCUCPFunction[' + $idz +'].NRCellCU_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.pLMNInfoList_length' />
+ <parameter name='source' value="`'getNFNSSIRIC-cps-response.['+ $idy +'].GNBCUCPFunction['+ $idz +'].NRCellCU['+ $idcu +'].attributes.pLMNInfoList_length'`" />
+ </execute>
+ <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
+ <parameter name="file" value="/opt/opendaylight/current/data/log/terminateRANSlice.log" />
+ <parameter name="level" value="info" />
+ <parameter name="field1" value="`'getNFNSSIRIC-cps-response.['+ $idy +'].GNBCUCPFunction['+ $idz +'].NRCellCU['+ $idcu +'].attributes.pLMNInfoList_length'`"/>
+ <parameter name="field2" value="`$tmp.pLMNInfoList_length`"/>
+ </record>
+ <switch test='`$tmp.pLMNInfoList_length > 0`'>
+ <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/terminateRANSlice.log" />
+ <parameter name="level" value="info" />
+ <parameter name="field1" value="plmninfolistlength in true "/>
+ <parameter name="field2" value="`$tmp.pLMNInfoList_length`"/>
+ </record>
+ <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.sNssaiListLengthCU' />
+ <parameter name='source' value="`'getNFNSSIRIC-cps-response.['+ $idy +'].GNBCUCPFunction['+ $idz +'].NRCellCU['+ $idcu +'].attributes.pLMNInfoList['+ $id-cuplmn +'].sNSSAIList_length'`" />
+ </execute>
+ <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
+ <parameter name="file" value="/opt/opendaylight/current/data/log/terminateRANSlice.log" />
+ <parameter name="level" value="info" />
+ <parameter name="field1" value="CU_plmninfolength_nssailength "/>
+ <parameter name="field2" value="`$tmp.sNssaiListLengthCU`"/>
+ </record>
+ <switch test='`$tmp.sNssaiListLengthCU > 0`'>
+ <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/terminateRANSlice.log" />
+ <parameter name="level" value="info" />
+ <parameter name="field1" value="plmninfolistnssailength in true in CU "/>
+ <parameter name="field2" value="`$tmp.sNssaiListLengthCU`"/>
+ </record>
+ <for index='id-cusnssai' start='0' end='`$tmp.sNssaiListLengthCU`'>
+ <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-cps-response.['+ $idy +'].GNBCUCPFunction['+ $idz +'].NRCellCU['+ $idcu +'].attributes.pLMNInfoList['+ $id-cuplmn +'].sNSSAIList['+ $id-cusnssai +'].sNssai'`" />
+ </execute>
+ <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
+ <parameter name="file" value="/opt/opendaylight/current/data/log/terminateRANSlice.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/terminateRANSlice.log" />
+ <parameter name="level" value="info" />
+ <parameter name="field1" value="NSSAI exists for cucp plmninfo "/>
+ </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.terminateSNSSAIEntry.ToNRCellCU`"/>
+ <parameter name="outputPath" value="tmp.deleteSNSSAIListEntry.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.terminateSNSSAIEntry.ToNRCellCU.ransim-mounted`"/>
+ <parameter name="outputPath" value="tmp.deleteSNSSAIListEntry.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-cps-response.['+ $idy +'].GNBCUCPFunction['+ $idz +'].NRCellCU['+ $idcu +'].idNRCellCU'`" />
+ </execute>
+ <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'>
+ <parameter name='outputPath' value='tmp.cucpNFType' />
+ <parameter name='source' value="`'getNFNSSIRIC-cps-response.['+ $idy +'].gNBCUCPList['+ $idz +'].nFType'`" />
+ </execute>
+ <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >
+ <parameter name="source" value="`$tmp.deleteSNSSAIListEntry.url`"/>
+ <parameter name="outputPath" value="tmp.deleteSNSSAIListEntry.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.deleteSNSSAIListEntry.url`"/>
+ <parameter name="outputPath" value="tmp.deleteSNSSAIListEntry.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.deleteSNSSAIListEntry.url`"/>
+ <parameter name="outputPath" value="tmp.deleteSNSSAIListEntry.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.deleteSNSSAIListEntry.url`"/>
+ <parameter name="outputPath" value="tmp.deleteSNSSAIListEntry.url"/>
+ <parameter name="target" value="{mnc}"/>
+ <parameter name="replacement" value="`$tmp.mnc`"/>
+ </execute>
+ <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >
+ <parameter name="source" value="`$tmp.deleteSNSSAIListEntry.url`"/>
+ <parameter name="outputPath" value="tmp.deleteSNSSAIListEntry.url"/>
+ <parameter name="target" value="{sNssai}"/>
+ <parameter name="replacement" value="`$tmp.sNSSAI`"/>
+ </execute>
+ <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
+ <parameter name="file" value="/opt/opendaylight/current/data/log/terminateRANSliceModifyAllocate.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.sNSSAI`"/>
+ <parameter name="field8" value="`$tmp.deleteSNSSAIListEntry.url`"/>
+ </record>
+ <execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >
+ <parameter name="restapiUrl" value="`$prop.controller.url + $tmp.deleteSNSSAIListEntry.url`"/>
+ <parameter name="restapiUser" value="`$prop.controller.user`" />
+ <parameter name="restapiPassword" value="`$prop.controller.pwd`"/>
+ <parameter name="httpMethod" value="DELETE"/>
+ <parameter name="responsePrefix" value="delete-cellCU-sNSSAI-response"/>
+ <parameter name='contentType' value='application/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="success"/>
+ <parameter name="tmp.reason" value="`$error-message`"/>
+ <parameter name="tmp.requestID" value="`$terminate-r-a-n-slice-input.common-header.request-id `"/>
+ <parameter name="tmp.action" value="`$terminate-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="`$payloadJson.input.callbackURL`"/>
+ <parameter name="httpMethod" value="POST"/>
+ <parameter name="responsePrefix" value="so-callback-terminate-response"/>
+ <parameter name='contentType' value='application/json' />
+ <parameter name='format' value='json' />
+ <parameter name='accept' value='*/*' />
+ <parameter name="convertResponse" value="true"/>
+ <parameter name="restapiUser" value="`$prop.restapi.so.user`" />
+ <parameter name="restapiPassword" value="`$prop.restapi.so.password`"/>
+ <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/terminateRANSlice.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/terminateRANSlice.log" />
+ <parameter name="level" value="info" />
+ <parameter name="field1" value="Successfully Patched - cellCU PLMNInfo List"/>
+ </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.deletenssai.cellcu.plmn.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.deletenssai.cellcu.plmn.url`"/>
+ <parameter name="outputPath" value="tmp.cps.deletenssai.cellcu.plmn.url"/>
+ <parameter name="target" value="{templateId}"/>
+ <parameter name="replacement" value="`$prop.tbdmt.template.delete-nssai-from-cucp-plmninfo`"/>
+ </execute>
+ <execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >
+ <parameter name="restapiUrl" value="`$tmp.cps.deletenssai.cellcu.plmn.url`"/>
+ <parameter name="templateFileName" value="`$prop.restapi.templateDir + '/cps-templates/delete-cucp-plmn-nssai.json'`" />
+ <parameter name="httpMethod" value="POST"/>
+ <parameter name="responsePrefix" value="cps-cucp-plmninfo-nssai-delete-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 atomic='true'>
+ <set>
+ <parameter name='error-code' value='500'/>
+ <parameter name='error-message' value='Error removing 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 removing CUUP 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/terminateRANSlice.log" />
+ <parameter name="level" value="info" />
+ <parameter name="field1" value="Successfully removed - CEllCU PLMNInfo Entry from configdb"/>
+ </record>
+ </block>
+ </outcome>
+ </execute>
+ <block atomic='true'>
+ <set>
+ <parameter name='tmp.maxNumberOfConnsPercellCU' value='`$tmp.payload.maxNumberofConns / $tmp.cellCUList_length`' />
+ <parameter name='tmp.rRMPolicyDedicatedRatio.CellCU1' value='`$tmp.maxNumberOfConnsPercellCU * 100`' />
+ <parameter name='tmp.rRMPolicyDedicatedRatio_SliceProfile' value='`$tmp.rRMPolicyDedicatedRatio.CellCU1 / $prop.nrcellcu.maxNumberOfConnsPerCell`' />
+ </set>
+ <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
+ <parameter name="file" value="/opt/opendaylight/current/data/log/terminateRANSlice.log" />
+ <parameter name="level" value="info" />
+ <parameter name="field1" value="RRMPolicyRatio for this profile is - "/>
+ <parameter name="field2" value="`$tmp.rRMPolicyDedicatedRatio_SliceProfile`"/>
+ </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.RRMPolicyRatioEntry.ToNRCellCU`"/>
+ <parameter name="outputPath" value="tmp.getRRMPolicyRatio.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.RRMPolicyRatioEntry.ToNRCellCU.ransim-mounted`"/>
+ <parameter name="outputPath" value="tmp.getRRMPolicyRatio.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.getRRMPolicyRatio.url`"/>
+ <parameter name="outputPath" value="tmp.getRRMPolicyRatio.url"/>
+ <parameter name="target" value="{mountName}"/>
+ <parameter name="replacement" value="`$tmp.CUCPName`"/>
+ </execute>
+ </block>
+ </outcome>
+ </switch>
+ <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >
+ <parameter name="source" value="`$tmp.getRRMPolicyRatio.url`"/>
+ <parameter name="outputPath" value="tmp.getRRMPolicyRatio.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.getRRMPolicyRatio.url`"/>
+ <parameter name="outputPath" value="tmp.getRRMPolicyRatio.url"/>
+ <parameter name="target" value="{idNRCellCU}"/>
+ <parameter name="replacement" value="`$tmp.cellCULocalId`"/>
+ </execute>
+ <execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >
+ <parameter name="restapiUrl" value="`$prop.controller.url + $tmp.getRRMPolicyRatio.url`"/>
+ <parameter name="restapiUser" value="`$prop.controller.user`" />
+ <parameter name="restapiPassword" value="`$prop.controller.pwd`"/>
+ <parameter name="httpMethod" value="GET"/>
+ <parameter name="responsePrefix" value="get-rrmpolicyratio-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 atomic='true'>
+ <set>
+ <parameter name='error-code' value='500'/>
+ <parameter name='error-message' value='Error in retrieving RRMPolicyRatio. 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 in Fetching RRMPolicyRatio - CellCU. Aborting RPC executiopn'/>
+ </return>
+ <block atomic='true'>
+ <set>
+ <parameter name="tmp.so.callbackURL" value="`$payloadJson.input.callbackURL`"/>
+ <parameter name="tmp.status" value="success"/>
+ <parameter name="tmp.reason" value="`$error-message`"/>
+ <parameter name="tmp.requestID" value="`$terminate-r-a-n-slice-input.common-header.request-id `"/>
+ <parameter name="tmp.action" value="`$terminate-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="`$payloadJson.input.callbackURL`"/>
+ <parameter name="httpMethod" value="POST"/>
+ <parameter name="responsePrefix" value="so-callback-terminate-response"/>
+ <parameter name='contentType' value='application/json' />
+ <parameter name='format' value='json' />
+ <parameter name='accept' value='*/*' />
+ <parameter name="convertResponse" value="true"/>
+ <parameter name="restapiUser" value="`$prop.restapi.so.user`" />
+ <parameter name="restapiPassword" value="`$prop.restapi.so.password`"/>
+ <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/terminateRANSlice.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/terminateRANSlice.log" />
+ <parameter name="level" value="info" />
+ <parameter name="field1" value="Successfully Retrieved - RRMPolicyRatio"/>
+ </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.SliPluginUtils' method='getAttributeValue'>
+ <parameter name='outputPath' value='tmp.rrmPolicyRatioList_length' />
+ <parameter name='source' value="`'get-rrmpolicyratio-response.attributes.RRMPolicyRatio_length'`" />
+ </execute>
+ <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
+ <parameter name="file" value="/opt/opendaylight/current/data/log/terminateRANSlice.log" />
+ <parameter name="level" value="info" />
+ <parameter name="field1" value="RRMPolicyRatioList size"/>
+ <parameter name="field2" value="`$tmp.rrmPolicyRatioList_length`"/>
+ </record>
+ <for index='idcu-rrm' start='0' end='`$tmp.rrmPolicyRatioList_length`'>
+ <block atomic='true'>
+ <set>
+ <parameter name='tmp.rrmPolicyDedicatedRatio_cellCU' value="`'$get-rrmpolicyratio-response.attributes.RRMPolicyRatio['+ $idcu-rrm +'].attributes.rRMPolicyDedicatedRatio'`" />
+ <parameter name='tmp.rrmPolicyDedicatedRatio_CellCU_updated' value="`$tmp.rrmPolicyDedicatedRatio_cellCU + $tmp.rRMPolicyDedicatedRatio_SliceProfile`" />
+ </set>
+ <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'>
+ <parameter name='outputPath' value='tmp.RRMPolicyRatio_id' />
+ <parameter name='source' value="`'get-rrmpolicyratio-response.attributes.RRMPolicyRatio['+ $idcu-rrm+'].id'`" />
+ </execute>
+ <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'>
+ <parameter name='outputPath' value='tmp.NRCellCURRMPolicyMembersLength' />
+ <parameter name='source' value="`'get-rrmpolicyratio-response.attributes.RRMPolicyRatio['+ $idcu-rrm+'].attributes.rRMPolicyMemberList_length'`" />
+ </execute>
+ <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
+ <parameter name="file" value="/opt/opendaylight/current/data/log/terminateRANSlice.log" />
+ <parameter name="level" value="info" />
+ <parameter name="field1" value="RRMPolicyMembersList size"/>
+ <parameter name="field2" value="`$tmp.NRCellCURRMPolicyMembersLength`"/>
+ </record>
+ <for index='idcu-rrm1' start='0' end='`$tmp.NRCellCURRMPolicyMembersLength`' >
+ <block atomic='true'>
+ <switch test='`$tmp.NRCellCURRMPolicyMembersLength > 0`'>
+ <outcome value='true'>
+ <block atomic='true'>
+ <switch test='`$prop.ransim-mounted`'>
+ <outcome value='false'>
+ <block atomic='true'>
+ <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >
+ <parameter name="source" value="`$prop.restapi.removeRRMPolicyRatio.ToNRCellCU`"/>
+ <parameter name="outputPath" value="tmp.deleteRRMPolicyRatio.url"/>
+ <parameter name="target" value="{idNearRTRIC}"/>
+ <parameter name="replacement" value="`$tmp.nearRTRICId`"/>
+ </execute>
+ </block>
+ </outcome>
+ <outcome value='true'>
+ <block atomic='true'>
+ <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >
+ <parameter name="source" value="`$prop.restapi.removeRRMPolicyRatio.ToNRCellCU.ransim-mounted`"/>
+ <parameter name="outputPath" value="tmp.deleteRRMPolicyRatio.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.deleteRRMPolicyRatio.url`"/>
+ <parameter name="outputPath" value="tmp.deleteRRMPolicyRatio.url"/>
+ <parameter name="target" value="{mountName}"/>
+ <parameter name="replacement" value="`$tmp.CUCPName`"/>
+ </execute>
+ </block>
+ </outcome>
+ </switch>
+ </block>
+ </outcome>
+ <outcome value='false'>
+ <block atomic='true'>
+ <set>
+ <parameter name='tmp.RRMPolicyMember_sNSSAI' value="`'$get-rrmpolicyratio-response.attributes.RRMPolicyRatio['+ $idcu-rrm+'].attributes.rRMPolicyMemberList['+ $idcu-rrm1 +'].sNSSAI'`" />
+ </set>
+ <switch test='`$tmp.RRMPolicyMember_sNSSAI==$tmp.sNSSAI`'>
+ <outcome value='success'>
+ <block atomic='true'>
+ <set>
+ <parameter name='tmp.RRMPolicyMember_id' value="`'$get-rrmpolicyratio-response.attributes.RRMPolicyRatio['+ $idcu-rrm+'].attributes.rRMPolicyMemberList['+ $idcu-rrm1 +'].idx'`" />
+ </set>
+ <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
+ <parameter name="file" value="/opt/opendaylight/current/data/log/terminateRANSlice.log" />
+ <parameter name="level" value="info" />
+ <parameter name="field1" value="RRMPolicyMember id - "/>
+ <parameter name="field2" value="`$tmp.RRMPolicyMember_id`"/>
+ </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.removeRRMPolicyMember.ToNRCellCU`"/>
+ <parameter name="outputPath" value="tmp.deleteRRMPolicyRatio.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.removeRRMPolicyMember.ToNRCellCU.ransim-mounted`"/>
+ <parameter name="outputPath" value="tmp.deleteRRMPolicyRatio.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.deleteRRMPolicyRatio.url`"/>
+ <parameter name="outputPath" value="tmp.deleteRRMPolicyRatio.url"/>
+ <parameter name="target" value="{mountName}"/>
+ <parameter name="replacement" value="`$tmp.CUCPName`"/>
+ </execute>
+ </block>
+ </outcome>
+ </switch>
+ </block>
+ </outcome>
+ </switch>
+ </block>
+ </outcome>
+ </switch>
+ <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >
+ <parameter name="source" value="`$tmp.deleteRRMPolicyRatio.url`"/>
+ <parameter name="outputPath" value="tmp.deleteRRMPolicyRatio.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.deleteRRMPolicyRatio.url`"/>
+ <parameter name="outputPath" value="tmp.deleteRRMPolicyRatio.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.deleteRRMPolicyRatio.url`"/>
+ <parameter name="outputPath" value="tmp.deleteRRMPolicyRatio.url"/>
+ <parameter name="target" value="{id}"/>
+ <parameter name="replacement" value="`$tmp.RRMPolicyRatio_id`"/>
+ </execute>
+ <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >
+ <parameter name="source" value="`$tmp.getRRMPolicyRatio.url`"/>
+ <parameter name="outputPath" value="tmp.getRRMPolicyRatio.url"/>
+ <parameter name="target" value="{idx}"/>
+ <parameter name="replacement" value="`$tmp.RRMPolicyMember_id`"/>
+ </execute>
+ </block>
+ </for>
+ <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
+ <parameter name="file" value="/opt/opendaylight/current/data/log/terminateRANSlice.log" />
+ <parameter name="level" value="info" />
+ <parameter name="field1" value="Delete RRMPolicy URL - "/>
+ <parameter name="field2" value="`$tmp.deleteRRMPolicyRatio.url`"/>
+ <parameter name="field3" value="RRMPolicyRatio id"/>
+ <parameter name="field4" value="`$tmp.RRMPolicyRatio_id`"/>
+ </record>
+ <execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >
+ <parameter name="restapiUrl" value="`$prop.controller.url + $tmp.deleteRRMPolicyRatio.url`"/>
+ <parameter name="restapiUser" value="`$prop.controller.user`" />
+ <parameter name="restapiPassword" value="`$prop.controller.pwd`"/>
+ <parameter name="httpMethod" value="DELETE"/>
+ <parameter name="responsePrefix" value="delete-cellCU-RRMPolicyRatio-response"/>
+ <parameter name='contentType' value='application/json' />
+ <parameter name='format' value='json' />
+ <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/terminateRANSlice.log" />
+ <parameter name="level" value="info" />
+ <parameter name="field1" value="Successfully Deleted - cellCU RRMpolicyRatio/RRMPolicyMember"/>
+ </record>
+ </block>
+ </outcome>
+ <outcome value='failure'>
+ <block atomic='true'>
+ <set>
+ <parameter name='error-code' value='500'/>
+ <parameter name='error-message' value='Error Removing cellCU RRMPolicyRatio. 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 removing NRCellDU - RRMPolicyRAtio. Aborting RPC executiopn'/>
+ </return>
+ <block atomic='true'>
+ <set>
+ <parameter name="tmp.so.callbackURL" value="`$payloadJson.input.callbackURL`"/>
+ <parameter name="tmp.status" value="success"/>
+ <parameter name="tmp.reason" value="`$error-message`"/>
+ <parameter name="tmp.requestID" value="`$terminate-r-a-n-slice-input.common-header.request-id `"/>
+ <parameter name="tmp.action" value="`$terminate-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="`$payloadJson.input.callbackURL`"/>
+ <parameter name="httpMethod" value="POST"/>
+ <parameter name="responsePrefix" value="so-callback-terminate-response"/>
+ <parameter name='contentType' value='application/json' />
+ <parameter name='format' value='json' />
+ <parameter name='accept' value='*/*' />
+ <parameter name="convertResponse" value="true"/>
+ <parameter name="restapiUser" value="`$prop.restapi.so.user`" />
+ <parameter name="restapiPassword" value="`$prop.restapi.so.password`"/>
+ <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/terminateRANSlice.log" />
+ <parameter name="level" value="info" />
+ <parameter name="field1" value="SO Response Sent "/>
+ </record>
+ </block>
+ </outcome>
+ </execute>
+ </block>
+ </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.deletenssai.cellcu.rrmpolicy.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.deletenssai.cellcu.rrmpolicy.url`"/>
+ <parameter name="outputPath" value="tmp.cps.deletenssai.cellcu.rrmpolicy.url"/>
+ <parameter name="target" value="{templateId}"/>
+ <parameter name="replacement" value="`$prop.tbdmt.template.delete-nssai-from-cucp-rrmpolicy`"/>
+ </execute>
+ <execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >
+ <parameter name="restapiUrl" value="`$tmp.cps.deletenssai.cellcu.rrmpolicy.url`"/>
+ <parameter name="templateFileName" value="`$prop.restapi.templateDir + '/cps-templates/delete-cucp-rrmpolicy-nssai.json'`" />
+ <parameter name="httpMethod" value="POST"/>
+ <parameter name="responsePrefix" value="cps-cucp-rrmpolicy-nssai-delete-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 atomic='true'></block>
+ </outcome>
+ <outcome value='success'>
+ <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
+ <parameter name="file" value="/opt/opendaylight/current/data/log/terminateRANSlice.log" />
+ <parameter name="level" value="info" />
+ <parameter name="field1" value="Successfully removed - gNBCU rrmpolicy Entry from configdb"/>
+ </record>
+ </outcome>
+ </execute>
+ </block>
+ </for>
+ </block>
+ </block>
+ </outcome>
+ </switch>
+ </block>
+ </for>
+ </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/terminateRANSlice.log" />
+ <parameter name="level" value="info" />
+ <parameter name="field1" value="plmninfolistnssailength in false in CU "/>
+ <parameter name="field2" value="`$tmp.sNssaiListLengthCU`"/>
+ </record>
+ </block>
+ </outcome>
+ </switch>
+ </block>
+ </for>
+ </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/terminateRANSlice.log" />
+ <parameter name="level" value="info" />
+ <parameter name="field1" value="plmninfolistlength in false "/>
+ <parameter name="field2" value="`$tmp.pLMNInfoList_length`"/>
+ </record>
+ </block>
+ </outcome>
+ </switch>
+ </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-cps-response.[' + $idy +'].GNBCUUPFunction_length'`" />
+ </execute>
+ <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
+ <parameter name="file" value="/opt/opendaylight/current/data/log/terminateRANSlice.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-cps-response.['+ $idy +'].GNBCUUPFunction['+ $id-cuup +'].idGNBCUUPFunction'`" />
+ </execute>
+ <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
+ <parameter name="file" value="/opt/opendaylight/current/data/log/terminateRANSlice.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-cps-response.['+ $idy +'].GNBCUUPFunction['+ $id-cuup +'].attributes.pLMNInfoList_length'`" />
+ </execute>
+ <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
+ <parameter name="file" value="/opt/opendaylight/current/data/log/terminateRANSlice.log" />
+ <parameter name="level" value="info" />
+ <parameter name="field1" value="cuup_plmninfolength "/>
+ <parameter name="field2" value="`$tmp.pLMNInfoList`"/>
+ </record>
+ <for index='id-plmn' start='0' end='1'>
+ <block atomic='true'>
+ <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'>
+ <parameter name='outputPath' value='tmp.sNssaiListLength' />
+ <parameter name='source' value="`'getNFNSSIRIC-cps-response.['+ $idy +'].GNBCUUPFunction['+ $id-cuup +'].attributes.pLMNInfoList['+ $id-plmn +'].sNSSAIList_length'`" />
+ </execute>
+ <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
+ <parameter name="file" value="/opt/opendaylight/current/data/log/terminateRANSlice.log" />
+ <parameter name="level" value="info" />
+ <parameter name="field1" value="cuup_plmninfolength_nssailength "/>
+ <parameter name="field2" value="`$tmp.sNssaiListLength`"/>
+ </record>
+ <switch test='`$tmp.sNssaiListLength > 0`'>
+ <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/terminateRANSlice.log" />
+ <parameter name="level" value="info" />
+ <parameter name="field1" value="plmninfolistnssailength in true "/>
+ <parameter name="field2" value="`$tmp.sNssaiListLength`"/>
+ </record>
+ <for index='id-snssai' start='0' end='`$tmp.sNssaiListLength`'>
+ <block atomic='true'>
+ <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'>
+ <parameter name='outputPath' value='tmp.configDBSNSSAI1' />
+ <parameter name='source' value="`'getNFNSSIRIC-cps-response.['+ $idy +'].GNBCUUPFunction['+ $id-cuup +'].attributes.pLMNInfoList['+ $id-plmn +'].sNSSAIList['+ $id-snssai +'].sNssai'`" />
+ </execute>
+ <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
+ <parameter name="file" value="/opt/opendaylight/current/data/log/terminateRANSlice.log" />
+ <parameter name="level" value="info" />
+ <parameter name="field1" value="sNSSAI - getNFNSSIRIC-configdb-response"/>
+ <parameter name="field2" value="`$tmp.configDBSNSSAI1`"/>
+ <parameter name="field3" value="sNSSAI from Request"/>
+ <parameter name="field4" value="`$tmp.sNSSAI`"/>
+ </record>
+ <switch test='`$tmp.configDBSNSSAI1 == $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/terminateRANSlice.log" />
+ <parameter name="level" value="info" />
+ <parameter name="field1" value="nssaimatch in True "/>
+ <parameter name="field2" value="`Proceeding for nssai deletion`"/>
+ </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.terminateSNSSAIEntry.ToCUUP`"/>
+ <parameter name="outputPath" value="tmp.deletePLMNInfo-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.terminateSNSSAIEntry.ToCUUP.ransim-mounted`"/>
+ <parameter name="outputPath" value="tmp.deletePLMNInfo-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.deletePLMNInfo-CUUP.url`"/>
+ <parameter name="outputPath" value="tmp.deletePLMNInfo-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.deletePLMNInfo-CUUP.url`"/>
+ <parameter name="outputPath" value="tmp.deletePLMNInfo-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.deletePLMNInfo-CUUP.url`"/>
+ <parameter name="outputPath" value="tmp.deletePLMNInfo-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.deletePLMNInfo-CUUP.url`"/>
+ <parameter name="outputPath" value="tmp.deletePLMNInfo-CUUP.url"/>
+ <parameter name="target" value="{mnc}"/>
+ <parameter name="replacement" value="`$tmp.mnc`"/>
+ </execute>
+ <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >
+ <parameter name="source" value="`$tmp.deletePLMNInfo-CUUP.url`"/>
+ <parameter name="outputPath" value="tmp.deletePLMNInfo-CUUP.url"/>
+ <parameter name="target" value="{sNssai}"/>
+ <parameter name="replacement" value="`$tmp.sNSSAI`"/>
+ </execute>
+ <execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >
+ <parameter name="restapiUrl" value="`$prop.controller.url + $tmp.deletePLMNInfo-CUUP.url`"/>
+ <parameter name="restapiUser" value="`$prop.controller.user`" />
+ <parameter name="restapiPassword" value="`$prop.controller.pwd`"/>
+ <parameter name="httpMethod" value="DELETE"/>
+ <parameter name="responsePrefix" value="delete-CUUP-sNSSAI-response"/>
+ <parameter name='contentType' value='application/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="success"/>
+ <parameter name="tmp.reason" value="`$error-message`"/>
+ <parameter name="tmp.requestID" value="`$terminate-r-a-n-slice-input.common-header.request-id `"/>
+ <parameter name="tmp.action" value="`$terminate-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="`$payloadJson.input.callbackURL`"/>
+ <parameter name="httpMethod" value="POST"/>
+ <parameter name="responsePrefix" value="so-callback-terminate-response"/>
+ <parameter name='contentType' value='application/json' />
+ <parameter name='format' value='json' />
+ <parameter name='accept' value='*/*' />
+ <parameter name="convertResponse" value="true"/>
+ <parameter name="restapiUser" value="`$prop.restapi.so.user`" />
+ <parameter name="restapiPassword" value="`$prop.restapi.so.password`"/>
+ <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/terminateRANSlice.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 removing 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 removing CUUP 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/terminateRANSlice.log" />
+ <parameter name="level" value="info" />
+ <parameter name="field1" value="Successfully removed - gNBCUUP PLMNInfo Entry"/>
+ </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.deletenssai.cuup.plmn.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.deletenssai.cuup.plmn.url`"/>
+ <parameter name="outputPath" value="tmp.cps.deletenssai.cuup.plmn.url"/>
+ <parameter name="target" value="{templateId}"/>
+ <parameter name="replacement" value="`$prop.tbdmt.template.delete-nssai-from-cuup-plmninfo`"/>
+ </execute>
+ <execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >
+ <parameter name="restapiUrl" value="`$tmp.cps.deletenssai.cuup.plmn.url`"/>
+ <parameter name="templateFileName" value="`$prop.restapi.templateDir + '/cps-templates/delete-cuup-plmn-nssai.json'`" />
+ <parameter name="httpMethod" value="POST"/>
+ <parameter name="responsePrefix" value="cps-cuup-plmninfo-nssai-delete-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 atomic='true'>
+ <set>
+ <parameter name='error-code' value='500'/>
+ <parameter name='error-message' value='Error removing 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 removing CUUP 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/terminateRANSlice.log" />
+ <parameter name="level" value="info" />
+ <parameter name="field1" value="Successfully removed - gNBCUUP PLMNInfo Entry from configdb"/>
+ </record>
+ </block>
+ </outcome>
+ </execute>
+ </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/terminateRANSlice.log" />
+ <parameter name="level" value="info" />
+ <parameter name="field1" value="nssaimatch in false "/>
+ <parameter name="field2" value="`nssai deletion does not takes place`"/>
+ </record>
+ </block>
+ </outcome>
+ </switch>
+ </block>
+ </for>
+ </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/terminateRANSlice.log" />
+ <parameter name="level" value="info" />
+ <parameter name="field1" value="plmninfolistnssailength in false "/>
+ <parameter name="field2" value="`$tmp.sNssaiListLength`"/>
+ </record>
+ </block>
+ </outcome>
+ </switch>
+ </block>
+ </for>
+ <set>
+ <parameter name='tmp.maxNumberOfDRBsPerNSSAI' value='`$tmp.payload.maxNumberofConns*4`' />
+ <parameter name='tmp.maxNumberOfDRBsPerCUUP' value='`$tmp.maxNumberOfDRBsPerNSSAI /$tmp.CUUPList_length`' />
+ <parameter name='tmp.rRMPolicyDedicatedRatio1' value='`$tmp.maxNumberOfDRBsPerCUUP*100`' />
+ <parameter name='tmp.rRMPolicyDedicatedRatio-CUUP' value='`$tmp.rRMPolicyDedicatedRatio1/$prop.cuupfunction.maxNumberOfDRBsPerCUUP`' />
+ </set>
+ <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
+ <parameter name="file" value="/opt/opendaylight/current/data/log/terminateRANSlice.log" />
+ <parameter name="level" value="info" />
+ <parameter name="field1" value="RRMPolicyRatio for this profile is - "/>
+ <parameter name="field2" value="`$tmp.rRMPolicyDedicatedRatio-CUUP`"/>
+ </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.RRMPolicyRatioEntry.ToGNBCUUP`"/>
+ <parameter name="outputPath" value="tmp.getRRMPolicyRatio-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.RRMPolicyRatioEntry.ToGNBCUUP.ransim-mounted`"/>
+ <parameter name="outputPath" value="tmp.getRRMPolicyRatio-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.getRRMPolicyRatio-CUUP.url`"/>
+ <parameter name="outputPath" value="tmp.getRRMPolicyRatio-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.getRRMPolicyRatio-CUUP.url`"/>
+ <parameter name="outputPath" value="tmp.getRRMPolicyRatio-CUUP.url"/>
+ <parameter name="target" value="{idGNBCUUPFunction}"/>
+ <parameter name="replacement" value="`$tmp.idGNBCUUPFunction`"/>
+ </execute>
+ <execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >
+ <parameter name="restapiUrl" value="`$prop.controller.url + $tmp.getRRMPolicyRatio-CUUP.url`"/>
+ <parameter name="restapiUser" value="`$prop.controller.user`" />
+ <parameter name="restapiPassword" value="`$prop.controller.pwd`"/>
+ <parameter name="httpMethod" value="GET"/>
+ <parameter name="responsePrefix" value="get-rrmpolicyratio-cuup-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 atomic='true'>
+ <block atomic='true'>
+ <set>
+ <parameter name="tmp.so.callbackURL" value="`$payloadJson.input.callbackURL`"/>
+ <parameter name="tmp.status" value="success"/>
+ <parameter name="tmp.reason" value="`$error-message`"/>
+ <parameter name="tmp.requestID" value="`$terminate-r-a-n-slice-input.common-header.request-id `"/>
+ <parameter name="tmp.action" value="`$terminate-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="`$payloadJson.input.callbackURL`"/>
+ <parameter name="httpMethod" value="POST"/>
+ <parameter name="responsePrefix" value="so-callback-terminate-response"/>
+ <parameter name='contentType' value='application/json' />
+ <parameter name='format' value='json' />
+ <parameter name='accept' value='*/*' />
+ <parameter name="convertResponse" value="true"/>
+ <parameter name="restapiUser" value="`$prop.restapi.so.user`" />
+ <parameter name="restapiPassword" value="`$prop.restapi.so.password`"/>
+ <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/terminateRANSlice.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 in retrieving RRMPolicyRatio. 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 in fetching RRMPolicyRatio. 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/terminateRANSlice.log" />
+ <parameter name="level" value="info" />
+ <parameter name="field1" value="Successfully Retrieved - RRMPolicyRatio"/>
+ </record>
+ <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='printContext' >
+ <parameter name='filename' value='/opt/opendaylight/current/data/log/ranSlice-instantiateRANSlice-configrsp-context.log' />
+ </execute>
+ </block>
+ </outcome>
+ </execute>
+ <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'>
+ <parameter name='outputPath' value='tmp.rrmPolicyRatioList_CUUP_length' />
+ <parameter name='source' value="`'get-rrmpolicyratio-cuup-response.attributes.RRMPolicyRatio_length'`" />
+ </execute>
+ <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
+ <parameter name="file" value="/opt/opendaylight/current/data/log/terminateRANSlice.log" />
+ <parameter name="level" value="info" />
+ <parameter name="field1" value="CUUP - RRMPolicyRatioList size"/>
+ <parameter name="field2" value="`$tmp.rrmPolicyRatioList_CUUP_length`"/>
+ </record>
+ <for index='idcuup-rrm' start='0' end='`$tmp.rrmPolicyRatioList_CUUP_length`' >
+ <block atomic='true'>
+ <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'>
+ <parameter name='outputPath' value='tmp.CUUPRRMPolicyRatio_id' />
+ <parameter name='source' value="`'get-rrmpolicyratio-cuup-response.attributes.RRMPolicyRatio['+ $idcuup-rrm+'].id'`" />
+ </execute>
+ <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'>
+ <parameter name='outputPath' value='tmp.CUUPRRMPolicyMembersLength' />
+ <parameter name='source' value="`'get-rrmpolicyratio-cuup-response.attributes.RRMPolicyRatio['+ $idcuup-rrm+'].attributes.rRMPolicyMemberList_length'`" />
+ </execute>
+ <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
+ <parameter name="file" value="/opt/opendaylight/current/data/log/terminateRANSlice.log" />
+ <parameter name="level" value="info" />
+ <parameter name="field1" value="CUUP - RRMPolicyMembersList size"/>
+ <parameter name="field2" value="`$tmp.CUUPRRMPolicyMembersLength`"/>
+ </record>
+ <for index='idcu-rrm2' start='0' end='`$tmp.CUUPRRMPolicyMembersLength`' >
+ <block atomic='true'>
+ <switch test='`$tmp.CUUPRRMPolicyMembersLength > 0`'>
+ <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/terminateRANSlice.log" />
+ <parameter name="level" value="info" />
+ <parameter name="field1" value="Success" />
+ <parameter name="field2" value="Tocheck if ransim mounted" />
+ </record>
+ <switch test='`$prop.ransim-mounted`'>
+ <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/terminateRANSlice.log" />
+ <parameter name="level" value="info" />
+ <parameter name="field1" value="before setting url" />
+ <parameter name="field2" value="ransimnot mounted" />
+ </record>
+ <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >
+ <parameter name="source" value="`$prop.restapi.removeRRMPolicyRatio.ToCUUP`"/>
+ <parameter name="outputPath" value="tmp.deleteRRMPolicyRatio-CUUP.url"/>
+ <parameter name="target" value="{idNearRTRIC}"/>
+ <parameter name="replacement" value="`$tmp.nearRTRICId`"/>
+ </execute>
+ <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
+ <parameter name="file" value="/opt/opendaylight/current/data/log/terminateRANSlice.log" />
+ <parameter name="level" value="info" />
+ <parameter name="field1" value="Delete RRMPolicy URL after setting - "/>
+ <parameter name="field2" value="`$tmp.deleteRRMPolicyRatio-CUUP.url`"/>
+ </record>
+ </block>
+ </outcome>
+ <outcome value='true'>
+ <block atomic='true'>
+ <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >
+ <parameter name="source" value="`$prop.restapi.removeRRMPolicyRatio.ToCUUP.ransim-mounted`"/>
+ <parameter name="outputPath" value="tmp.deleteRRMPolicyRatio-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.deleteRRMPolicyRatio-CUUP.url`"/>
+ <parameter name="outputPath" value="tmp.deleteRRMPolicyRatio-CUUP.url"/>
+ <parameter name="target" value="{mountName}"/>
+ <parameter name="replacement" value="`$tmp.idGNBCUUPFunction`"/>
+ </execute>
+ </block>
+ </outcome>
+ </switch>
+ </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/terminateRANSlice.log" />
+ <parameter name="level" value="info" />
+ <parameter name="field1" value="Failure" />
+ <parameter name="field2" value="Tocheck if ransim mounted" />
+ </record>
+ <set>
+ <parameter name='tmp.CUUPRRMPolicyMember_sNSSAI' value="`'$get-rrmpolicyratio-cuup-response.attributes.RRMPolicyRatio['+ $idcuup-rrm+'].attributes.rRMPolicyMemberList['+ $idcu-rrm2 +'].sNSSAI'`" />
+ </set>
+ <switch test='`$tmp.CUUPRRMPolicyMember_sNSSAI==$tmp.sNSSAI`'>
+ <outcome value='success'>
+ <block atomic='true'>
+ <set>
+ <parameter name='tmp.CUUPRRMPolicyMember_id' value="`'$get-rrmpolicyratio-cuup-response.attributes.RRMPolicyRatio['+ $idcuup-rrm+'].attributes.rRMPolicyMemberList['+ $idcu-rrm2 +'].idx'`" />
+ </set>
+ <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
+ <parameter name="file" value="/opt/opendaylight/current/data/log/terminateRANSlice.log" />
+ <parameter name="level" value="info" />
+ <parameter name="field1" value="RRMPolicyMember id - "/>
+ <parameter name="field2" value="`$tmp.CUUPRRMPolicyMember_id`"/>
+ </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.removeRRMPolicyMember.ToCUUP`"/>
+ <parameter name="outputPath" value="tmp.deleteRRMPolicyRatio-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.removeRRMPolicyMember.CUUP.ransim-mounted`"/>
+ <parameter name="outputPath" value="tmp.deleteRRMPolicyRatio-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.deleteRRMPolicyRatio-CUUP.url`"/>
+ <parameter name="outputPath" value="tmp.deleteRRMPolicyRatio-CUUP.url"/>
+ <parameter name="target" value="{mountName}"/>
+ <parameter name="replacement" value="`$tmp.idGNBCUUPFunction`"/>
+ </execute>
+ </block>
+ </outcome>
+ </switch>
+ </block>
+ </outcome>
+ </switch>
+ </block>
+ </outcome>
+ </switch>
+ <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
+ <parameter name="file" value="/opt/opendaylight/current/data/log/terminateRANSlice.log" />
+ <parameter name="level" value="info" />
+ <parameter name="field1" value="Delete RRMPolicy URL first - "/>
+ <parameter name="field2" value="`$tmp.deleteRRMPolicyRatio-CUUP.url`"/>
+ </record>
+ <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >
+ <parameter name="source" value="`$tmp.deleteRRMPolicyRatio-CUUP.url`"/>
+ <parameter name="outputPath" value="tmp.deleteRRMPolicyRatio-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.deleteRRMPolicyRatio-CUUP.url`"/>
+ <parameter name="outputPath" value="tmp.deleteRRMPolicyRatio-CUUP.url"/>
+ <parameter name="target" value="{id}"/>
+ <parameter name="replacement" value="`$tmp.CUUPRRMPolicyRatio_id`"/>
+ </execute>
+ <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >
+ <parameter name="source" value="`$tmp.deleteRRMPolicyRatio-CUUP.url`"/>
+ <parameter name="outputPath" value="tmp.deleteRRMPolicyRatio-CUUP.url"/>
+ <parameter name="target" value="{idx}"/>
+ <parameter name="replacement" value="`$tmp.CUUPRRMPolicyMember_id`"/>
+ </execute>
+ </block>
+ </for>
+ <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
+ <parameter name="file" value="/opt/opendaylight/current/data/log/terminateRANSlice.log" />
+ <parameter name="level" value="info" />
+ <parameter name="field1" value="Delete RRMPolicy URL - "/>
+ <parameter name="field2" value="`$tmp.deleteRRMPolicyRatio-CUUP.url`"/>
+ <parameter name="field3" value="RRMPolicyRatio id"/>
+ <parameter name="field4" value="`$tmp.CUUPRRMPolicyRatio_id`"/>
+ </record>
+ <execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >
+ <parameter name="restapiUrl" value="`$prop.controller.url + $tmp.deleteRRMPolicyRatio-CUUP.url`"/>
+ <parameter name="restapiUser" value="`$prop.controller.user`" />
+ <parameter name="restapiPassword" value="`$prop.controller.pwd`"/>
+ <parameter name="httpMethod" value="DELETE"/>
+ <parameter name="responsePrefix" value="delete-CUUP-RRMPolicyRatio-response"/>
+ <parameter name='contentType' value='application/json' />
+ <parameter name='format' value='json' />
+ <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/terminateRANSlice.log" />
+ <parameter name="level" value="info" />
+ <parameter name="field1" value="Successfully removed - CUUP RRMpolicyRatio"/>
+ </record>
+ </block>
+ </outcome>
+ <outcome value='failure'>
+ <block atomic='true'>
+ <set>
+ <parameter name='error-code' value='500'/>
+ <parameter name='error-message' value='Error removing CUUP RRMPolicyRatio. 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 removing RRMPolicyRatio. Aborting RPC executiopn'/>
+ </return>
+ </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.deletenssai.cuup.rrmpolicy.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.deletenssai.cuup.rrmpolicy.url`"/>
+ <parameter name="outputPath" value="tmp.cps.deletenssai.cuup.rrmpolicy.url"/>
+ <parameter name="target" value="{templateId}"/>
+ <parameter name="replacement" value="`$prop.tbdmt.template.delete-nssai-from-cuup-rrmpolicy`"/>
+ </execute>
+ <execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >
+ <parameter name="restapiUrl" value="`$tmp.cps.deletenssai.cuup.rrmpolicy.url`"/>
+ <parameter name="templateFileName" value="`$prop.restapi.templateDir + '/cps-templates/delete-cuup-rrm-nssai.json'`" />
+ <parameter name="httpMethod" value="POST"/>
+ <parameter name="responsePrefix" value="cps-cuup-rrm-nssai-delete-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 atomic='true'>
+ <set>
+ <parameter name='error-code' value='500'/>
+ <parameter name='error-message' value='Error removing 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 removing CUUP PLMNInfo. Aborting RPC executiopn'/>
+ </return>
+ </block>
+ </outcome>
+ <outcome value='success'>
+ <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
+ <parameter name="file" value="/opt/opendaylight/current/data/log/terminateRANSlice.log" />
+ <parameter name="level" value="info" />
+ <parameter name="field1" value="Successfully removed - gNBCUUP rrmpolicy Entry from configdb"/>
+ </record>
+ </outcome>
+ </execute>
+ </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-cps-response.[' + $idy +'].GNBDUFunction_length'`" />
+ </execute>
+ <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
+ <parameter name="file" value="/opt/opendaylight/current/data/log/terminateRANSlice.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-cps-response.['+ $idy +'].GNBDUFunction['+ $id-du +'].idGNBDUFunction'`" />
+ </execute>
+ <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
+ <parameter name="file" value="/opt/opendaylight/current/data/log/terminateRANSlice.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 +'].GNBDUFunction[' + $id-du +'].NRCellDU_length'`" />
+ </execute>
+ <for index='id-celldu' start='0' end='`$tmp.cellDUList_length`' >
+ <block atomic='true'>
+ <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
+ <parameter name="file" value="/opt/opendaylight/current/data/log/terminateRANSlice.log" />
+ <parameter name="level" value="info" />
+ <parameter name="field1" value="Iterating "/>
+ <parameter name="field2" value="`CellDU`"/>
+ </record>
+ <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'>
+ <parameter name='outputPath' value='tmp.DUpLMNInfoList_length' />
+ <parameter name='source' value="`'getNFNSSIRIC-cps-response.['+ $idy +'].GNBDUFunction['+ $id-du +'].NRCellDU['+ $id-celldu +'].attributes.pLMNInfoList_length'`" />
+ </execute>
+ <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
+ <parameter name="file" value="/opt/opendaylight/current/data/log/terminateRANSlice.log" />
+ <parameter name="level" value="info" />
+ <parameter name="field1" value="plmninfolengthcelldu "/>
+ <parameter name="field2" value="`$tmp.DUpLMNInfoList_length`"/>
+ </record>
+ <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.sNssaiListLengthDU' />
+ <parameter name='source' value="`'getNFNSSIRIC-cps-response.['+ $idy +'].GNBDUFunction['+ $id-du +'].NRCellDU['+ $id-celldu +'].attributes.pLMNInfoList['+ $id-duplmn +'].sNSSAIList_length'`" />
+ </execute>
+ <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
+ <parameter name="file" value="/opt/opendaylight/current/data/log/terminateRANSlice.log" />
+ <parameter name="level" value="info" />
+ <parameter name="field1" value="DU_plmninfolength_nssailength "/>
+ <parameter name="field2" value="`$tmp.sNssaiListLengthDU`"/>
+ </record>
+ <switch test='`$tmp.sNssaiListLengthDU > 0`'>
+ <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/terminateRANSlice.log" />
+ <parameter name="level" value="info" />
+ <parameter name="field1" value="plmninfolistnssailength in true in DU "/>
+ <parameter name="field2" value="`$tmp.sNssaiListLengthDU`"/>
+ </record>
+ <for index='id-dusnssai' start='0' end='`$tmp.sNssaiListLengthDU`'>
+ <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-cps-response.['+ $idy +'].GNBDUFunction['+ $id-du +'].NRCellDU['+ $id-celldu +'].attributes.pLMNInfoList['+ $id-duplmn +'].sNSSAIList['+ $id-dusnssai +'].sNssai'`" />
+ </execute>
+ <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
+ <parameter name="file" value="/opt/opendaylight/current/data/log/terminateRANSlice.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'>
+ <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
+ <parameter name="file" value="/opt/opendaylight/current/data/log/terminateRANSlice.log" />
+ <parameter name="level" value="info" />
+ <parameter name="field1" value="CellDU 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.terminateSNSSAIEntry.ToNRCellDU`"/>
+ <parameter name="outputPath" value="tmp.deletePLMNInfoListEntry-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.terminateSNSSAIEntry.ToNRCellDU.ransim-mounted`"/>
+ <parameter name="outputPath" value="tmp.deletePLMNInfoListEntry-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.deletePLMNInfoListEntry-cellDU.url`"/>
+ <parameter name="outputPath" value="tmp.deletePLMNInfoListEntry-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.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>
+ <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
+ <parameter name="file" value="/opt/opendaylight/current/data/log/terminateRANSlice.log" />
+ <parameter name="level" value="info" />
+ <parameter name="field1" value="LocalId "/>
+ <parameter name="field2" value="`$tmp.cellDULocalId`"/>
+ </record>
+ <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >
+ <parameter name="source" value="`$tmp.deletePLMNInfoListEntry-cellDU.url`"/>
+ <parameter name="outputPath" value="tmp.deletePLMNInfoListEntry-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.deletePLMNInfoListEntry-cellDU.url`"/>
+ <parameter name="outputPath" value="tmp.deletePLMNInfoListEntry-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.deletePLMNInfoListEntry-cellDU.url`"/>
+ <parameter name="outputPath" value="tmp.deletePLMNInfoListEntry-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.deletePLMNInfoListEntry-cellDU.url`"/>
+ <parameter name="outputPath" value="tmp.deletePLMNInfoListEntry-cellDU.url"/>
+ <parameter name="target" value="{mnc}"/>
+ <parameter name="replacement" value="`$tmp.mnc`"/>
+ </execute>
+ <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >
+ <parameter name="source" value="`$tmp.deletePLMNInfoListEntry-cellDU.url`"/>
+ <parameter name="outputPath" value="tmp.deletePLMNInfoListEntry-cellDU.url"/>
+ <parameter name="target" value="{sNssai}"/>
+ <parameter name="replacement" value="`$tmp.sNSSAI`"/>
+ </execute>
+ <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
+ <parameter name="file" value="/opt/opendaylight/current/data/log/terminateRANSlice.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.GNBDUId`"/>
+ <parameter name="field4" value="`$tmp.cellDULocalId`"/>
+ <parameter name="field5" value="`$tmp.mcc`"/>
+ <parameter name="field6" value="`$tmp.mnc`"/>
+ <parameter name="field7" value="`$tmp.sNSSAI`"/>
+ <parameter name="field8" value="`$tmp.deletePLMNInfoListEntry-cellDU.url`"/>
+ </record>
+ <execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >
+ <parameter name="restapiUrl" value="`$prop.controller.url + $tmp.deletePLMNInfoListEntry-cellDU.url`"/>
+ <parameter name="restapiUser" value="`$prop.controller.user`" />
+ <parameter name="restapiPassword" value="`$prop.controller.pwd`"/>
+ <parameter name="httpMethod" value="DELETE"/>
+ <parameter name="responsePrefix" value="delete-cellDU-PLMNInfoList-response"/>
+ <parameter name='contentType' value='application/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="success"/>
+ <parameter name="tmp.reason" value="`$error-message`"/>
+ <parameter name="tmp.requestID" value="`$terminate-r-a-n-slice-input.common-header.request-id `"/>
+ <parameter name="tmp.action" value="`$terminate-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="`$payloadJson.input.callbackURL`"/>
+ <parameter name="httpMethod" value="POST"/>
+ <parameter name="responsePrefix" value="so-callback-terminate-response"/>
+ <parameter name='contentType' value='application/json' />
+ <parameter name='format' value='json' />
+ <parameter name='accept' value='*/*' />
+ <parameter name="convertResponse" value="true"/>
+ <parameter name="restapiUser" value="`$prop.restapi.so.user`" />
+ <parameter name="restapiPassword" value="`$prop.restapi.so.password`"/>
+ <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/terminateRANSlice.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 deleting 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 deleting 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/instantiateRANSliceModifyAllocate.log" />
+ <parameter name="level" value="info" />
+ <parameter name="field1" value="Successfully deleted - cellDU PLMNInfo List"/>
+ </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.deletenssai.celldu.plmn.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.deletenssai.celldu.plmn.url`"/>
+ <parameter name="outputPath" value="tmp.cps.deletenssai.celldu.plmn.url"/>
+ <parameter name="target" value="{templateId}"/>
+ <parameter name="replacement" value="`$prop.tbdmt.template.delete-nssai-from-du-plmninfo`"/>
+ </execute>
+ <execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >
+ <parameter name="restapiUrl" value="`$tmp.cps.deletenssai.celldu.plmn.url`"/>
+ <parameter name="templateFileName" value="`$prop.restapi.templateDir + '/cps-templates/delete-celldu-plmn-nssai.json'`" />
+ <parameter name="httpMethod" value="POST"/>
+ <parameter name="responsePrefix" value="cps-du-plmninfo-nssai-delete-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 atomic='true'>
+ <set>
+ <parameter name='error-code' value='500'/>
+ <parameter name='error-message' value='Error removing 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 removing CUUP PLMNInfo. Aborting RPC executiopn'/>
+ </return>
+ </block>
+ </outcome>
+ <outcome value='success'>
+ <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
+ <parameter name="file" value="/opt/opendaylight/current/data/log/terminateRANSlice.log" />
+ <parameter name="level" value="info" />
+ <parameter name="field1" value="Successfully removed - gNBDU pmmninfo Entry from configdb"/>
+ </record>
+ </outcome>
+ </execute>
+ <block atomic='true'>
+ <block atomic='true'>
+ <set>
+ <parameter name='tmp.uLThptPerSlice' value='`$payloadJson.input.sliceProfile.uLThptPerSlice`' />
+ </set>
+ <set>
+ <parameter name='tmp.dLThptPerSlice' value='`$payloadJson.input.sliceProfile.dLThptPerSlice`' />
+ </set>
+ <set>
+ <parameter name='tmp.maxNumberOfConns' value='`$payloadJson.input.sliceProfile.maxNumberOfConns`' />
+ </set>
+ <set>
+ <parameter name='tmp.nearRTRIC.trafficCapacity1' value='`$tmp.uLThptPerSlice + $tmp.dLThptPerSlice`' />
+ </set>
+ <set>
+ <parameter name='tmp.nearRTRIC.trafficCapacity' value='`$tmp.nearRTRIC.trafficCapacity1 / 2`' />
+ </set>
+ <set>
+ <parameter name='tmp.nearRTRIC.trafficCapacityBPS' value='`$tmp.nearRTRIC.trafficCapacity * 1000000`' />
+ </set>
+ <set>
+ <parameter name='tmp.nrcelldu.totalPRBForSNSSAI' value='`$tmp.nearRTRIC.trafficCapacityBPS / 1008000`' />
+ </set>
+ <set>
+ <parameter name='tmp.nrcelldu.PRBPerImpactedCell' value='`$tmp.nrcelldu.totalPRBForSNSSAI / $tmp.cellDUList_length`' />
+ </set>
+ <set>
+ <parameter name='tmp.rRMPolicyDedicatedRatio.CellDU1' value='`$tmp.nrcelldu.PRBPerImpactedCell * 100`' />
+ </set>
+ <set>
+ <parameter name='tmp.rRMPolicyDedicatedRatio.CellDU' value='`$tmp.rRMPolicyDedicatedRatio.CellDU1 / $prop.nrcelldu.TotalPRBsPerCell`' />
+ </set>
+ <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
+ <parameter name="file" value="/opt/opendaylight/current/data/log/instantiateRANSlice.log" />
+ <parameter name="level" value="info" />
+ <parameter name="field1" value="rRMPolicyDedicatedRatio for CellDU "/>
+ <parameter name="field2" value="`$tmp.rRMPolicyDedicatedRatio.CellDU`"/>
+ <parameter name="field3" value="tmp.nearRTRIC.trafficCapacity1 "/>
+ <parameter name="field4" value="`$tmp.nearRTRIC.trafficCapacity1`"/>
+ <parameter name="field5" value="tmp.nearRTRIC.trafficCapacity "/>
+ <parameter name="field6" value="`$tmp.nearRTRIC.trafficCapacity`"/>
+ <parameter name="field7" value="tmp.nearRTRIC.trafficCapacityBPS"/>
+ <parameter name="field8" value="`$tmp.nearRTRIC.trafficCapacityBPS`"/>
+ <parameter name="field9" value="tmp.nrcelldu.totalPRBForSNSSAI "/>
+ <parameter name="field10" value="`$tmp.nrcelldu.totalPRBForSNSSAI`"/>
+ <parameter name="field11" value="tmp.nrcelldu.PRBPerImpactedCell "/>
+ <parameter name="field12" value="`$tmp.nrcelldu.PRBPerImpactedCell`"/>
+ <parameter name="field13" value="tmp.rRMPolicyDedicatedRatio.CellDU1 "/>
+ <parameter name="field14" value="`$tmp.rRMPolicyDedicatedRatio.CellDU1`"/>
+ </record>
+ </block>
+ <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.RRMPolicyRatioEntry.ToGNBDU`"/>
+ <parameter name="outputPath" value="tmp.getRRMPolicyRatio-gNBDU.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.RRMPolicyRatioEntry.ToGNBDU.ransim-mounted`"/>
+ <parameter name="outputPath" value="tmp.getRRMPolicyRatio-gNBDU.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.getRRMPolicyRatio-gNBDU.url`"/>
+ <parameter name="outputPath" value="tmp.getRRMPolicyRatio-gNBDU.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.getRRMPolicyRatio-gNBDU.url`"/>
+ <parameter name="outputPath" value="tmp.getRRMPolicyRatio-gNBDU.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.getRRMPolicyRatio-gNBDU.url`"/>
+ <parameter name="outputPath" value="tmp.getRRMPolicyRatio-gNBDU.url"/>
+ <parameter name="target" value="{idNRCellDU}"/>
+ <parameter name="replacement" value="`$tmp.cellDULocalId`"/>
+ </execute>
+ <execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >
+ <parameter name="restapiUrl" value="`$prop.controller.url + $tmp.getRRMPolicyRatio-gNBDU.url`"/>
+ <parameter name="restapiUser" value="`$prop.controller.user`" />
+ <parameter name="restapiPassword" value="`$prop.controller.pwd`"/>
+ <parameter name="httpMethod" value="GET"/>
+ <parameter name="responsePrefix" value="get-rrmpolicyratio-du-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 atomic='true'>
+ <block atomic='true'>
+ <set>
+ <parameter name="tmp.so.callbackURL" value="`$payloadJson.input.callbackURL`"/>
+ <parameter name="tmp.status" value="success"/>
+ <parameter name="tmp.reason" value="`$error-message`"/>
+ <parameter name="tmp.requestID" value="`$terminate-r-a-n-slice-input.common-header.request-id `"/>
+ <parameter name="tmp.action" value="`$terminate-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="`$payloadJson.input.callbackURL`"/>
+ <parameter name="httpMethod" value="POST"/>
+ <parameter name="responsePrefix" value="so-callback-terminate-response"/>
+ <parameter name='contentType' value='application/json' />
+ <parameter name='format' value='json' />
+ <parameter name='accept' value='*/*' />
+ <parameter name="convertResponse" value="true"/>
+ <parameter name="restapiUser" value="`$prop.restapi.so.user`" />
+ <parameter name="restapiPassword" value="`$prop.restapi.so.password`"/>
+ <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/terminateRANSlice.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 in retrieving RRMPolicyRatio. 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 in Fetching RRMPolicyRatio - CellDU. 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/instantiateRANSliceModifyAllocate.log" />
+ <parameter name="level" value="info" />
+ <parameter name="field1" value="Successfully Retrieved - RRMPolicyRatio"/>
+ </record>
+ <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='printContext' >
+ <parameter name='filename' value='/opt/opendaylight/current/data/log/ranSlice-instantiateRANSlice-configrsp-context.log' />
+ </execute>
+ </block>
+ </outcome>
+ </execute>
+ <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'>
+ <parameter name='outputPath' value='tmp.rrmPolicyRatioDUList_length' />
+ <parameter name='source' value="`'get-rrmpolicyratio-du-response.attributes.RRMPolicyRatio_length'`" />
+ </execute>
+ <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
+ <parameter name="file" value="/opt/opendaylight/current/data/log/terminateRANSlice.log" />
+ <parameter name="level" value="info" />
+ <parameter name="field1" value="RRMPolicyRatioList size"/>
+ <parameter name="field2" value="`$tmp.rrmPolicyRatioDUList_length`"/>
+ </record>
+ <for index='iddu-rrm' start='0' end='`$tmp.rrmPolicyRatioDUList_length`' >
+ <block atomic='true'>
+ <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'>
+ <parameter name='outputPath' value='tmp.cellDURRMPolicyRatio_id' />
+ <parameter name='source' value="`'get-rrmpolicyratio-du-response.attributes.RRMPolicyRatio['+ $iddu-rrm+'].id'`" />
+ </execute>
+ <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'>
+ <parameter name='outputPath' value='tmp.DURRMPolicyMembersLength' />
+ <parameter name='source' value="`'get-rrmpolicyratio-du-response.attributes.RRMPolicyRatio['+ $iddu-rrm+'].attributes.rRMPolicyMemberList_length'`" />
+ </execute>
+ <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
+ <parameter name="file" value="/opt/opendaylight/current/data/log/terminateRANSlice.log" />
+ <parameter name="level" value="info" />
+ <parameter name="field1" value="RRMPOLICYmemberslength"/>
+ <parameter name="field2" value="`$tmp.DURRMPolicyMembersLength`"/>
+ </record>
+ <for index='iddu-rrm2' start='0' end='`$tmp.DURRMPolicyMembersLength`' >
+ <block atomic='true'>
+ <switch test='`$tmp.DURRMPolicyMembersLength > 0`'>
+ <outcome value='true'>
+ <block atomic='true'>
+ <switch test='`$prop.ransim-mounted`'>
+ <outcome value='false'>
+ <block atomic='true'>
+ <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >
+ <parameter name="source" value="`$prop.restapi.removeRRMPolicyRatio.ToNRCellDU`"/>
+ <parameter name="outputPath" value="tmp.deleteRRMPolicyRatio-DU.url"/>
+ <parameter name="target" value="{idNearRTRIC}"/>
+ <parameter name="replacement" value="`$tmp.nearRTRICId`"/>
+ </execute>
+ </block>
+ </outcome>
+ <outcome value='true'>
+ <block atomic='true'>
+ <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >
+ <parameter name="source" value="`$prop.restapi.removeRRMPolicyRatio.ToNRCellDU.ransim-mounted`"/>
+ <parameter name="outputPath" value="tmp.deleteRRMPolicyRatio-DU.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.deleteRRMPolicyRatio-DU.url`"/>
+ <parameter name="outputPath" value="tmp.deleteRRMPolicyRatio-DU.url"/>
+ <parameter name="target" value="{mountName}"/>
+ <parameter name="replacement" value="`$tmp.GNBDUId`"/>
+ </execute>
+ </block>
+ </outcome>
+ </switch>
+ </block>
+ </outcome>
+ <outcome value='false'>
+ <block atomic='true'>
+ <set>
+ <parameter name='tmp.cellDURRMPolicyMember_sNSSAI' value="`'$get-rrmpolicyratio-du-response.attributes.RRMPolicyRatio['+ $iddu-rrm+'].attributes.rRMPolicyMemberList['+ $iddu-rrm2 +'].sNSSAI'`" />
+ </set>
+ <switch test='`$tmp.cellDURRMPolicyMember_sNSSAI==$tmp.sNSSAI`'>
+ <outcome value='success'>
+ <block atomic='true'>
+ <set>
+ <parameter name='tmp.CellDURRMPolicyMember_id' value="`'$get-rrmpolicyratio-du-response.attributes.RRMPolicyRatio['+ $iddu-rrm+'].attributes.rRMPolicyMemberList['+ $iddu-rrm2 +'].idx'`" />
+ </set>
+ <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
+ <parameter name="file" value="/opt/opendaylight/current/data/log/terminateRANSlice.log" />
+ <parameter name="level" value="info" />
+ <parameter name="field1" value="RRMPolicyMember id - "/>
+ <parameter name="field2" value="`$tmp.CellDURRMPolicyMember_id`"/>
+ </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.removeRRMPolicyMember.ToNRCellDU`"/>
+ <parameter name="outputPath" value="tmp.deleteRRMPolicyRatio-DU.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.removeRRMPolicyMember.ToNRCellDU.ransim-mounted`"/>
+ <parameter name="outputPath" value="tmp.deleteRRMPolicyRatio-DU.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.deleteRRMPolicyRatio-DU.url`"/>
+ <parameter name="outputPath" value="tmp.deleteRRMPolicyRatio-DU.url"/>
+ <parameter name="target" value="{mountName}"/>
+ <parameter name="replacement" value="`$tmp.GNBDUId`"/>
+ </execute>
+ </block>
+ </outcome>
+ </switch>
+ </block>
+ </outcome>
+ </switch>
+ </block>
+ </outcome>
+ </switch>
+ <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >
+ <parameter name="source" value="`$tmp.deleteRRMPolicyRatio-DU.url`"/>
+ <parameter name="outputPath" value="tmp.deleteRRMPolicyRatio-DU.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.deleteRRMPolicyRatio-DU.url`"/>
+ <parameter name="outputPath" value="tmp.deleteRRMPolicyRatio-DU.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.deleteRRMPolicyRatio-DU.url`"/>
+ <parameter name="outputPath" value="tmp.deleteRRMPolicyRatio-DU.url"/>
+ <parameter name="target" value="{id}"/>
+ <parameter name="replacement" value="`$tmp.cellDURRMPolicyRatio_id`"/>
+ </execute>
+ <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >
+ <parameter name="source" value="`$tmp.deleteRRMPolicyRatio-DU.url`"/>
+ <parameter name="outputPath" value="tmp.deleteRRMPolicyRatio-DU.url"/>
+ <parameter name="target" value="{idx}"/>
+ <parameter name="replacement" value="`$tmp.cellDURRMPolicyMember_sNSSAI`"/>
+ </execute>
+ </block>
+ </for>
+ <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
+ <parameter name="file" value="/opt/opendaylight/current/data/log/terminateRANSlice.log" />
+ <parameter name="level" value="info" />
+ <parameter name="field1" value="Delete RRMPolicy URL - "/>
+ <parameter name="field2" value="`$tmp.deleteRRMPolicyRatio-DU.url`"/>
+ <parameter name="field3" value="RRMPolicyRatio id"/>
+ <parameter name="field4" value="`$tmp.cellDURRMPolicyRatio_id`"/>
+ </record>
+ <execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >
+ <parameter name="restapiUrl" value="`$prop.controller.url + $tmp.deleteRRMPolicyRatio-DU.url`"/>
+ <parameter name="restapiUser" value="`$prop.controller.user`" />
+ <parameter name="restapiPassword" value="`$prop.controller.pwd`"/>
+ <parameter name="httpMethod" value="DELETE"/>
+ <parameter name="responsePrefix" value="delete-cellDU-RRMPolicyRatio-response"/>
+ <parameter name='contentType' value='application/json' />
+ <parameter name='format' value='json' />
+ <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/terminateRANSlice.log" />
+ <parameter name="level" value="info" />
+ <parameter name="field1" value="Successfully removed - cellDU RRMpolicyRatio"/>
+ </record>
+ </block>
+ </outcome>
+ <outcome value='failure'>
+ <block atomic='true'>
+ <block atomic='true'>
+ <set>
+ <parameter name="tmp.so.callbackURL" value="`$payloadJson.input.callbackURL`"/>
+ <parameter name="tmp.status" value="success"/>
+ <parameter name="tmp.reason" value="`$error-message`"/>
+ <parameter name="tmp.requestID" value="`$terminate-r-a-n-slice-input.common-header.request-id `"/>
+ <parameter name="tmp.action" value="`$terminate-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="`$payloadJson.input.callbackURL`"/>
+ <parameter name="httpMethod" value="POST"/>
+ <parameter name="responsePrefix" value="so-callback-terminate-response"/>
+ <parameter name='contentType' value='application/json' />
+ <parameter name='format' value='json' />
+ <parameter name='accept' value='*/*' />
+ <parameter name="convertResponse" value="true"/>
+ <parameter name="restapiUser" value="`$prop.restapi.so.user`" />
+ <parameter name="restapiPassword" value="`$prop.restapi.so.password`"/>
+ <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/terminateRANSlice.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 removing cellDU RRMPolicyRatio. 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 removing RRMPolicyRatio for NRCellDU. Aborting RPC executiopn'/>
+ </return>
+ </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.deletenssai.du.rrmpolicy.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.deletenssai.du.rrmpolicy.url`"/>
+ <parameter name="outputPath" value="tmp.cps.deletenssai.du.rrmpolicy.url"/>
+ <parameter name="target" value="{templateId}"/>
+ <parameter name="replacement" value="`$prop.tbdmt.template.delete-nssai-from-du-rrmpolicy`"/>
+ </execute>
+ <execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >
+ <parameter name="restapiUrl" value="`$tmp.cps.deletenssai.du.rrmpolicy.url`"/>
+ <parameter name="templateFileName" value="`$prop.restapi.templateDir + '/cps-templates/delete-celldu-rrm-nssai.json '`" />
+ <parameter name="httpMethod" value="POST"/>
+ <parameter name="responsePrefix" value="cps-du-rrm-nssai-delete-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 atomic='true'></block>
+ </outcome>
+ <outcome value='success'>
+ <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
+ <parameter name="file" value="/opt/opendaylight/current/data/log/terminateRANSlice.log" />
+ <parameter name="level" value="info" />
+ <parameter name="field1" value="Successfully removed - gNBDU rrmpolicy Entry from configdb"/>
+ </record>
+ </outcome>
+ </execute>
+ </block>
+ </for>
+ </block>
+ </block>
+ </outcome>
+ </switch>
+ </block>
+ </for>
+ </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/terminateRANSlice.log" />
+ <parameter name="level" value="info" />
+ <parameter name="field1" value="plmninfolistnssailength in false in DU "/>
+ <parameter name="field2" value="`$tmp.sNssaiListLengthDU`"/>
+ </record>
+ </block>
+ </outcome>
+ </switch>
+ </block>
+ </for>
+ </block>
+ </for>
+ </block>
+ </for>
+ </block>
+ </for>
+ </block>
+ </block>
+ </outcome>
+ </switch>
+ </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="success"/>
+ <parameter name="tmp.reason" value="`$error-message`"/>
+ <parameter name="tmp.requestID" value="`$terminate-r-a-n-slice-input.common-header.request-id `"/>
+ <parameter name="tmp.action" value="`$tmp.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-termi-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/terminateRANSlice.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_terminateRANSliceInstance.xml b/platform-logic/ran-slice-api/src/main/xml/ran-slice-api_terminateRANSliceInstance.xml
index 93239cb1..7ef1cf84 100644
--- a/platform-logic/ran-slice-api/src/main/xml/ran-slice-api_terminateRANSliceInstance.xml
+++ b/platform-logic/ran-slice-api/src/main/xml/ran-slice-api_terminateRANSliceInstance.xml
@@ -3,2673 +3,28 @@
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='terminateRANSliceInstance' mode='sync'>
<block atomic='true'>
- <block atomic='true'>
- <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
- <parameter name="file" value="/opt/opendaylight/current/data/log/terminateRANSlice.log" />
- <parameter name="level" value="info" />
- <parameter name="field1" value="RPC to handle terminateRANSlice.: "/>
- <parameter name="field2" value="`$terminate-r-a-n-slice-instance-input.action`"/>
- <parameter name="field3" value="`$terminate-r-a-n-slice-instance-input.common-header.timestamp`"/>
- <parameter name="field4" value="`$terminate-r-a-n-slice-instance-input.common-header.request-id`"/>
- <parameter name="field5" value="`$terminate-r-a-n-slice-instance-input.common-header.originator-id`"/>
- <parameter name="field6" value="RPC Payload String "/>
- <parameter name="field7" value="`$terminate-r-a-n-slice-instance-input.payload`"/>
- </record>
- <set>
- <parameter name='error-code' value='200' />
- <parameter name='error-message' value='Successful execution of terminateRANSice RPC' />
- </set>
- <switch test='`$terminate-r-a-n-slice-instance-input.action == deallocate`'>
- <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/terminateRANSlice.log" />
- <parameter name="level" value="info" />
- <parameter name="field1" value="deallocate called" />
- </record>
- <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='jsonStringToCtx'>
- <parameter name='source' value='terminate-r-a-n-slice-instance-input.payload' />
- <parameter name='outputPath' value='payloadJson' />
- <parameter name='isEscaped' value='false' />
- <outcome value='success'>
- <block atomic='true'>
- <set>
- <parameter name='tmp.action' value="`$terminate-r-a-n-slice-instance-input.action`"/>
- </set>
- <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='printContext' >
- <parameter name='filename' value='/opt/opendaylight/current/data/log/ranSlice-terminateRANSlice-context.log' />
- </execute>
- <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
- <parameter name="file" value="/opt/opendaylight/current/data/log/terminateRANSlice.log" />
- <parameter name="level" value="info" />
- <parameter name="field1" value="Payload for terminateRANSlice.: "/>
- <parameter name="field2" value="`$tmp.sNSSAI`"/>
- <parameter name="field3" value="`$payloadJson.input.RANNFNSSIId`"/>
- <parameter name="field4" value="`$payloadJson.input.callbackURL`"/>
- <parameter name="field5" value="`$payloadJson.input.sliceProfileId`"/>
- </record>
- <set>
- <parameter name='tmp.sNSSAI' value="`$payloadJson.input.sNSSAI`"/>
- </set>
- <set>
- <parameter name='tmp.sliceprofileid' value="`$payloadJson.input.sliceProfileId`"/>
- </set>
- <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
- <parameter name="file" value="/opt/opendaylight/current/data/log/terminateRANSlice.log" />
- <parameter name="level" value="info" />
- <parameter name="field1" value="DEallocate sNSSAI: "/>
- <parameter name="field2" value="`$tmp.sNSSAI`"/>
- <parameter name="field3" value="`$tmp.sliceprofileid`"/>
- </record>
- </block>
- </outcome>
- </execute>
- </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/terminateRANSlice.log" />
- <parameter name="level" value="info" />
- <parameter name="field1" value="modify deallocate called" />
- </record>
- <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='jsonStringToCtx'>
- <parameter name='source' value='instantiate-r-a-n-slice-input.payload' />
- <parameter name='outputPath' value='payloadJson' />
- <parameter name='isEscaped' value='false' />
- <outcome value='success'>
- <block atomic='true'>
- <set>
- <parameter name='tmp.action' value="`$instantiate-r-a-n-slice-input.action`"/>
- </set>
- <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='printContext' >
- <parameter name='filename' value='/opt/opendaylight/current/data/log/ranSlice-terminateRANSlice-context.log' />
- </execute>
- <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
- <parameter name="file" value="/opt/opendaylight/current/data/log/terminateRANSlice.log" />
- <parameter name="level" value="info" />
- <parameter name="field1" value="Payload for modifyallocateRANSlice.: "/>
- <parameter name="field2" value="`$payloadJson.input.RANNFNSSIId`"/>
- <parameter name="field3" value="`$payloadJson.input.callbackURL`"/>
- <parameter name="field4" value="`$payloadJson.input.sliceProfile.sliceProfileId`"/>
- </record>
- <set>
- <parameter name='tmp.sNSSAI' value="`$payloadJson.input.sliceProfile.sNSSAI`"/>
- </set>
- <set>
- <parameter name='tmp.sliceprofileid' value="`$payloadJson.input.sliceProfile.sliceProfileId`"/>
- </set>
- <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
- <parameter name="file" value="/opt/opendaylight/current/data/log/terminateRANSlice.log" />
- <parameter name="level" value="info" />
- <parameter name="field1" value="modify-deallocate-sNSSAI: "/>
- <parameter name="field2" value="`$tmp.sNSSAI`"/>
- <parameter name="field3" value="`$tmp.sliceprofileid`"/>
- </record>
- </block>
- </outcome>
- </execute>
- </block>
- </outcome>
- </switch>
- <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='printContext' >
- <parameter name='filename' value='/opt/opendaylight/current/data/log/ranSlice-terminateRANSlice-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/terminateRANSlice.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>
- <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/terminateRANSlice.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="success"/>
- <parameter name="tmp.reason" value="`$error-message`"/>
- <parameter name="tmp.requestID" value="`$terminate-r-a-n-slice-input.common-header.request-id `"/>
- <parameter name="tmp.action" value="`$terminate-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="`$payloadJson.input.callbackURL`"/>
- <parameter name="httpMethod" value="POST"/>
- <parameter name="responsePrefix" value="so-callback-terminate-response"/>
- <parameter name='contentType' value='application/json' />
- <parameter name='format' value='json' />
- <parameter name='accept' value='*/*' />
- <parameter name="convertResponse" value="true"/>
- <parameter name="restapiUser" value="`$prop.restapi.so.user`" />
- <parameter name="restapiPassword" value="`$prop.restapi.so.password`"/>
- <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/terminateRANSlice.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/terminateRANSlice.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-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.configdb.getplmn`"/>
- <parameter name="outputPath" value="tmp.configdb.getPLMNId.url"/>
- <parameter name="target" value="{sliceProfileId}"/>
- <parameter name="replacement" value="`$tmp.sliceprofileid`"/>
- </execute>
- <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
- <parameter name="file" value="/opt/opendaylight/current/data/log/terminateRANSlice.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>
- <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>
- <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
- <parameter name="file" value="/opt/opendaylight/current/data/log/terminateRANSlice.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>
- </block>
- <for index='idy' start='0' end='`$getNFNSSIRIC-configdb-response._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>
- <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.nearrtric.removeSliceProfile`"/>
- <parameter name="outputPath" value="tmp.deleteSliceProfileEntry.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.nearrtric.removeSliceProfile.ransim-mounted`"/>
- <parameter name="outputPath" value="tmp.deleteSliceProfileEntry.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.deleteSliceProfileEntry.url`"/>
- <parameter name="outputPath" value="tmp.deleteSliceProfileEntry.url"/>
- <parameter name="target" value="{mountName}"/>
- <parameter name="replacement" value="`$tmp.nearRTRICId`"/>
- </execute>
- </block>
- </outcome>
- </switch>
- <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >
- <parameter name="source" value="`$tmp.deleteSliceProfileEntry.url`"/>
- <parameter name="outputPath" value="tmp.deleteSliceProfileEntry.url"/>
- <parameter name="target" value="{sliceProfileId}"/>
- <parameter name="replacement" value="`$tmp.sliceprofileid`"/>
- </execute>
- <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
- <parameter name="file" value="/opt/opendaylight/current/data/log/terminateRANSlice.log" />
- <parameter name="level" value="info" />
- <parameter name="field1" value="sliceprofileid"/>
- <parameter name="field2" value="`$tmp.sliceprofileid`" />
- <parameter name="field3" value="nearRTRICId"/>
- <parameter name="field4" value="`$tmp.nearRTRICId`" />
- <parameter name="field5" value="endpoint URL"/>
- <parameter name="field6" value="`$tmp.deleteSliceProfileEntry.url`" />
- </record>
- <execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >
- <parameter name="restapiUrl" value="`$prop.controller.url + $tmp.deleteSliceProfileEntry.url`"/>
- <parameter name="restapiUser" value="`$prop.controller.user`" />
- <parameter name="restapiPassword" value="`$prop.controller.pwd`"/>
- <parameter name="httpMethod" value="DELETE"/>
- <parameter name="responsePrefix" value="delete-slice-profile-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 atomic='true'>
- <set>
- <parameter name='error-code' value='500'/>
- <parameter name='error-message' value='Error updating nearRTRIC info in ConfigDB. Aborting RPC executiopn'/>
- </set>
- <return status='failure'>
- <parameter name='ack-final' value='Y'/>
- <parameter name='error-code' value='500'/>
- <parameter name='error-message' value='Error updating nearRTRIC info in ConfigDB. Aborting RPC executiopn'/>
- </return>
- </block>
- </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/terminateRANSlice.log" />
- <parameter name="level" value="info" />
- <parameter name="field1" value="Successfully REmoved Slice Profile"/>
- </record>
- </block>
- </outcome>
- </execute>
- <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'>
- <parameter name='outputPath' value='tmp.RICPLMNEntries' />
- <parameter name='source' value="`'getNFNSSIRIC-configdb-response.['+ $idy +'].pLMNInfoList_length'`" />
- </execute>
- <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
- <parameter name="file" value="/opt/opendaylight/current/data/log/terminateRANSlice.log" />
- <parameter name="level" value="info" />
- <parameter name="field1" value="PLMNInfo List before removal"/>
- <parameter name="field2" value="`$tmp.RICPLMNEntries`"/>
- </record>
- <for index='id-ric' start='0' end='`$tmp.RICPLMNEntries`' >
- <block atomic='true'>
- <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'>
- <parameter name='outputPath' value='tmp.ric.sNSSAILength' />
- <parameter name='source' value="`'getNFNSSIRIC-configdb-response.['+ $idy +'].pLMNInfoList['+$id-ric+'].sNSSAI_length'`" />
- </execute>
- <for index='id-ric-snssai' start='0' end='`$tmp.ric.sNSSAILength`' >
- <block atomic='true'>
- <switch test='`$tmp.ric.sNSSAI == $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/terminateRANSlice.log" />
- <parameter name="level" value="info" />
- <parameter name="field1" value="Matching sNSSAI found in config DB"/>
- <parameter name="field2" value="`$tmp.ric.sNSSAI`"/>
- <parameter name="field3" value="sNSSAI List length before removal"/>
- <parameter name="field4" value="`$tmp.ric.sNSSAILength`"/>
- </record>
- <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'>
- <parameter name='outputPath' value='tmp.ric.sNSSAIremoved' />
- <parameter name='source' value="`'getNFNSSIRIC-configdb-response.['+ $idy +'].pLMNInfoList['+$id-ric+'].sNSSAI['+$id-ric-snssai+'].sNSSAI'`" />
- </execute>
- <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>
- <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >
- <parameter name="source" value="`$prop.configdb.url + $prop.restapi.configdb.removenSSAINearRTRIC`"/>
- <parameter name="outputPath" value="tmp.configdb.getNearRTRICNSSAIRemoval.url"/>
- <parameter name="target" value="{nearRTRICId}"/>
- <parameter name="replacement" value="`$tmp.nearRTRICId`"/>
- </execute>
- <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >
- <parameter name="source" value="`$tmp.configdb.getNearRTRICNSSAIRemoval.url`"/>
- <parameter name="outputPath" value="tmp.configdb.getNearRTRICNSSAIRemoval.url"/>
- <parameter name="target" value="{sNSSAI}"/>
- <parameter name="replacement" value="`$tmp.ric.sNSSAIremoved`"/>
- </execute>
- <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
- <parameter name="file" value="/opt/opendaylight/current/data/log/terminateRANSlice.log" />
- <parameter name="level" value="info" />
- <parameter name="field1" value="sNSSAI"/>
- <parameter name="field2" value="`$tmp.ric.sNSSAIremoved`" />
- <parameter name="field3" value="nearRTRICId"/>
- <parameter name="field4" value="`$tmp.nearRTRICId`" />
- <parameter name="field5" value="endpoint URL"/>
- <parameter name="field6" value="`$tmp.configdb.getNearRTRICNSSAIRemoval.url`" />
- </record>
- <execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >
- <parameter name="restapiUrl" value="`$tmp.configdb.getNearRTRICNSSAIRemoval.url`"/>
- <parameter name="httpMethod" value="DELETE"/>
- <parameter name="responsePrefix" value="delete-nearRTRIC-configdb-response"/>
- <parameter name='contentType' value='application/json' />
- <parameter name='format' value='json' />
- <parameter name='accept' value='application/json' />
- <parameter name="convertResponse" value="true"/>
- <outcome value='failure'>
- <block atomic='true'>
- <set>
- <parameter name='error-code' value='500'/>
- <parameter name='error-message' value='Error updating nearRTRIC info in ConfigDB. Aborting RPC executiopn'/>
- </set>
- <return status='failure'>
- <parameter name='ack-final' value='Y'/>
- <parameter name='error-code' value='500'/>
- <parameter name='error-message' value='Error updating nearRTRIC info in ConfigDB. Aborting RPC executiopn'/>
- </return>
- </block>
- </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/terminateRANSlice.log" />
- <parameter name="level" value="info" />
- <parameter name="field1" value="Successfully Updated NearRT RIC info in ConfigDB"/>
- </record>
- </block>
- </outcome>
- </execute>
- </block>
- </outcome>
- </switch>
- <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'>
- <parameter name='outputPath' value='tmp.ric.sNSSAI' />
- <parameter name='source' value="`'getNFNSSIRIC-configdb-response.['+ $idy +'].pLMNInfoList['+$id-ric+'].sNSSAI['+$id-ric-snssai+'].sNSSAI'`" />
- </execute>
- </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/terminateRANSlice.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/terminateRANSlice.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.pLMNInfoList_length' />
- <parameter name='source' value="`'getNFNSSIRIC-configdb-response.['+ $idy +'].gNBCUCPList['+ $idz +'].cellCUList['+ $idcu +'].pLMNInfoList_length'`" />
- </execute>
- <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
- <parameter name="file" value="/opt/opendaylight/current/data/log/terminateRANSlice.log" />
- <parameter name="level" value="info" />
- <parameter name="field1" value="`'getNFNSSIRIC-configdb-response.['+ $idy +'].gNBCUCPList['+ $idz +'].cellCUList['+ $idcu +'].pLMNInfoList_length'`"/>
- <parameter name="field2" value="`$tmp.pLMNInfoList_length`"/>
- </record>
- <switch test='`$tmp.pLMNInfoList_length > 0`'>
- <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/terminateRANSlice.log" />
- <parameter name="level" value="info" />
- <parameter name="field1" value="plmninfolistlength in true "/>
- <parameter name="field2" value="`$tmp.pLMNInfoList_length`"/>
- </record>
- <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.sNssaiListLengthCU' />
- <parameter name='source' value="`'getNFNSSIRIC-configdb-response.['+ $idy +'].gNBCUCPList['+ $idz +'].cellCUList['+ $idcu +'].pLMNInfoList['+ $id-cuplmn +'].sNSSAI_length'`" />
- </execute>
- <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
- <parameter name="file" value="/opt/opendaylight/current/data/log/terminateRANSlice.log" />
- <parameter name="level" value="info" />
- <parameter name="field1" value="CU_plmninfolength_nssailength "/>
- <parameter name="field2" value="`$tmp.sNssaiListLengthCU`"/>
- </record>
- <switch test='`$tmp.sNssaiListLengthCU > 0`'>
- <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/terminateRANSlice.log" />
- <parameter name="level" value="info" />
- <parameter name="field1" value="plmninfolistnssailength in true in CU "/>
- <parameter name="field2" value="`$tmp.sNssaiListLengthCU`"/>
- </record>
- <for index='id-cusnssai' start='0' end='`$tmp.sNssaiListLengthCU`'>
- <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-cusnssai +'].sNSSAI'`" />
- </execute>
- <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
- <parameter name="file" value="/opt/opendaylight/current/data/log/terminateRANSlice.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/terminateRANSlice.log" />
- <parameter name="level" value="info" />
- <parameter name="field1" value="NSSAI exists for cucp plmninfo "/>
- </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.terminateSNSSAIEntry.ToNRCellCU`"/>
- <parameter name="outputPath" value="tmp.deleteSNSSAIListEntry.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.terminateSNSSAIEntry.ToNRCellCU.ransim-mounted`"/>
- <parameter name="outputPath" value="tmp.deleteSNSSAIListEntry.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.SliPluginUtils' method='getAttributeValue'>
- <parameter name='outputPath' value='tmp.cucpNFType' />
- <parameter name='source' value="`'getNFNSSIRIC-configdb-response.['+ $idy +'].gNBCUCPList['+ $idz +'].nFType'`" />
- </execute>
- <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >
- <parameter name="source" value="`$tmp.deleteSNSSAIListEntry.url`"/>
- <parameter name="outputPath" value="tmp.deleteSNSSAIListEntry.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.deleteSNSSAIListEntry.url`"/>
- <parameter name="outputPath" value="tmp.deleteSNSSAIListEntry.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.deleteSNSSAIListEntry.url`"/>
- <parameter name="outputPath" value="tmp.deleteSNSSAIListEntry.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.deleteSNSSAIListEntry.url`"/>
- <parameter name="outputPath" value="tmp.deleteSNSSAIListEntry.url"/>
- <parameter name="target" value="{mnc}"/>
- <parameter name="replacement" value="`$tmp.mnc`"/>
- </execute>
- <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >
- <parameter name="source" value="`$tmp.deleteSNSSAIListEntry.url`"/>
- <parameter name="outputPath" value="tmp.deleteSNSSAIListEntry.url"/>
- <parameter name="target" value="{sNssai}"/>
- <parameter name="replacement" value="`$tmp.sNSSAI`"/>
- </execute>
- <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
- <parameter name="file" value="/opt/opendaylight/current/data/log/terminateRANSliceModifyAllocate.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.sNSSAI`"/>
- <parameter name="field8" value="`$tmp.deleteSNSSAIListEntry.url`"/>
- </record>
- <execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >
- <parameter name="restapiUrl" value="`$prop.controller.url + $tmp.deleteSNSSAIListEntry.url`"/>
- <parameter name="restapiUser" value="`$prop.controller.user`" />
- <parameter name="restapiPassword" value="`$prop.controller.pwd`"/>
- <parameter name="httpMethod" value="DELETE"/>
- <parameter name="responsePrefix" value="delete-cellCU-sNSSAI-response"/>
- <parameter name='contentType' value='application/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="success"/>
- <parameter name="tmp.reason" value="`$error-message`"/>
- <parameter name="tmp.requestID" value="`$terminate-r-a-n-slice-input.common-header.request-id `"/>
- <parameter name="tmp.action" value="`$terminate-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="`$payloadJson.input.callbackURL`"/>
- <parameter name="httpMethod" value="POST"/>
- <parameter name="responsePrefix" value="so-callback-terminate-response"/>
- <parameter name='contentType' value='application/json' />
- <parameter name='format' value='json' />
- <parameter name='accept' value='*/*' />
- <parameter name="convertResponse" value="true"/>
- <parameter name="restapiUser" value="`$prop.restapi.so.user`" />
- <parameter name="restapiPassword" value="`$prop.restapi.so.password`"/>
- <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/terminateRANSlice.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/terminateRANSlice.log" />
- <parameter name="level" value="info" />
- <parameter name="field1" value="Successfully Patched - cellCU PLMNInfo List"/>
- </record>
- </block>
- </outcome>
- </execute>
- <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >
- <parameter name="source" value="`$prop.restapi.configdb.removenSSAINRCellCU`"/>
- <parameter name="outputPath" value="tmp.deletePLMNInfo-CellCU.configdb.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.deletePLMNInfo-CellCU.configdb.url`"/>
- <parameter name="outputPath" value="tmp.deletePLMNInfo-CellCU.configdb.url"/>
- <parameter name="target" value="{sNSSAI}"/>
- <parameter name="replacement" value="`$tmp.sNSSAI`"/>
- </execute>
- <execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >
- <parameter name="restapiUrl" value="`$prop.configdb.url + $tmp.deletePLMNInfo-CellCU.configdb.url`"/>
- <parameter name="httpMethod" value="DELETE"/>
- <parameter name="responsePrefix" value="delete-CELLCU-plmninfo-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 atomic='true'>
- <set>
- <parameter name='error-code' value='500'/>
- <parameter name='error-message' value='Error removing 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 removing CUUP 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/terminateRANSlice.log" />
- <parameter name="level" value="info" />
- <parameter name="field1" value="Successfully removed - CEllCU PLMNInfo Entry from configdb"/>
- </record>
- </block>
- </outcome>
- </execute>
- <block atomic='true'>
- <set>
- <parameter name='tmp.maxNumberOfConnsPercellCU' value='`$tmp.payload.maxNumberofConns / $tmp.cellCUList_length`' />
- <parameter name='tmp.rRMPolicyDedicatedRatio.CellCU1' value='`$tmp.maxNumberOfConnsPercellCU * 100`' />
- <parameter name='tmp.rRMPolicyDedicatedRatio_SliceProfile' value='`$tmp.rRMPolicyDedicatedRatio.CellCU1 / $prop.nrcellcu.maxNumberOfConnsPerCell`' />
- </set>
- <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
- <parameter name="file" value="/opt/opendaylight/current/data/log/terminateRANSlice.log" />
- <parameter name="level" value="info" />
- <parameter name="field1" value="RRMPolicyRatio for this profile is - "/>
- <parameter name="field2" value="`$tmp.rRMPolicyDedicatedRatio_SliceProfile`"/>
- </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.RRMPolicyRatioEntry.ToNRCellCU`"/>
- <parameter name="outputPath" value="tmp.getRRMPolicyRatio.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.RRMPolicyRatioEntry.ToNRCellCU.ransim-mounted`"/>
- <parameter name="outputPath" value="tmp.getRRMPolicyRatio.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.getRRMPolicyRatio.url`"/>
- <parameter name="outputPath" value="tmp.getRRMPolicyRatio.url"/>
- <parameter name="target" value="{mountName}"/>
- <parameter name="replacement" value="`$tmp.CUCPName`"/>
- </execute>
- </block>
- </outcome>
- </switch>
- <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >
- <parameter name="source" value="`$tmp.getRRMPolicyRatio.url`"/>
- <parameter name="outputPath" value="tmp.getRRMPolicyRatio.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.getRRMPolicyRatio.url`"/>
- <parameter name="outputPath" value="tmp.getRRMPolicyRatio.url"/>
- <parameter name="target" value="{idNRCellCU}"/>
- <parameter name="replacement" value="`$tmp.cellCULocalId`"/>
- </execute>
- <execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >
- <parameter name="restapiUrl" value="`$prop.controller.url + $tmp.getRRMPolicyRatio.url`"/>
- <parameter name="restapiUser" value="`$prop.controller.user`" />
- <parameter name="restapiPassword" value="`$prop.controller.pwd`"/>
- <parameter name="httpMethod" value="GET"/>
- <parameter name="responsePrefix" value="get-rrmpolicyratio-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 atomic='true'>
- <set>
- <parameter name='error-code' value='500'/>
- <parameter name='error-message' value='Error in retrieving RRMPolicyRatio. 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 in Fetching RRMPolicyRatio - CellCU. Aborting RPC executiopn'/>
- </return>
- <block atomic='true'>
- <set>
- <parameter name="tmp.so.callbackURL" value="`$payloadJson.input.callbackURL`"/>
- <parameter name="tmp.status" value="success"/>
- <parameter name="tmp.reason" value="`$error-message`"/>
- <parameter name="tmp.requestID" value="`$terminate-r-a-n-slice-input.common-header.request-id `"/>
- <parameter name="tmp.action" value="`$terminate-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="`$payloadJson.input.callbackURL`"/>
- <parameter name="httpMethod" value="POST"/>
- <parameter name="responsePrefix" value="so-callback-terminate-response"/>
- <parameter name='contentType' value='application/json' />
- <parameter name='format' value='json' />
- <parameter name='accept' value='*/*' />
- <parameter name="convertResponse" value="true"/>
- <parameter name="restapiUser" value="`$prop.restapi.so.user`" />
- <parameter name="restapiPassword" value="`$prop.restapi.so.password`"/>
- <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/terminateRANSlice.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/terminateRANSlice.log" />
- <parameter name="level" value="info" />
- <parameter name="field1" value="Successfully Retrieved - RRMPolicyRatio"/>
- </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.SliPluginUtils' method='getAttributeValue'>
- <parameter name='outputPath' value='tmp.rrmPolicyRatioList_length' />
- <parameter name='source' value="`'get-rrmpolicyratio-response.attributes.RRMPolicyRatio_length'`" />
- </execute>
- <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
- <parameter name="file" value="/opt/opendaylight/current/data/log/terminateRANSlice.log" />
- <parameter name="level" value="info" />
- <parameter name="field1" value="RRMPolicyRatioList size"/>
- <parameter name="field2" value="`$tmp.rrmPolicyRatioList_length`"/>
- </record>
- <for index='idcu-rrm' start='0' end='`$tmp.rrmPolicyRatioList_length`'>
- <block atomic='true'>
- <set>
- <parameter name='tmp.rrmPolicyDedicatedRatio_cellCU' value="`'$get-rrmpolicyratio-response.attributes.RRMPolicyRatio['+ $idcu-rrm +'].attributes.rRMPolicyDedicatedRatio'`" />
- <parameter name='tmp.rrmPolicyDedicatedRatio_CellCU_updated' value="`$tmp.rrmPolicyDedicatedRatio_cellCU + $tmp.rRMPolicyDedicatedRatio_SliceProfile`" />
- </set>
- <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'>
- <parameter name='outputPath' value='tmp.RRMPolicyRatio_id' />
- <parameter name='source' value="`'get-rrmpolicyratio-response.attributes.RRMPolicyRatio['+ $idcu-rrm+'].id'`" />
- </execute>
- <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'>
- <parameter name='outputPath' value='tmp.NRCellCURRMPolicyMembersLength' />
- <parameter name='source' value="`'get-rrmpolicyratio-response.attributes.RRMPolicyRatio['+ $idcu-rrm+'].attributes.rRMPolicyMemberList_length'`" />
- </execute>
- <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
- <parameter name="file" value="/opt/opendaylight/current/data/log/terminateRANSlice.log" />
- <parameter name="level" value="info" />
- <parameter name="field1" value="RRMPolicyMembersList size"/>
- <parameter name="field2" value="`$tmp.NRCellCURRMPolicyMembersLength`"/>
- </record>
- <for index='idcu-rrm1' start='0' end='`$tmp.NRCellCURRMPolicyMembersLength`' >
- <block atomic='true'>
- <switch test='`$tmp.NRCellCURRMPolicyMembersLength > 0`'>
- <outcome value='true'>
- <block atomic='true'>
- <switch test='`$prop.ransim-mounted`'>
- <outcome value='false'>
- <block atomic='true'>
- <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >
- <parameter name="source" value="`$prop.restapi.removeRRMPolicyRatio.ToNRCellCU`"/>
- <parameter name="outputPath" value="tmp.deleteRRMPolicyRatio.url"/>
- <parameter name="target" value="{idNearRTRIC}"/>
- <parameter name="replacement" value="`$tmp.nearRTRICId`"/>
- </execute>
- </block>
- </outcome>
- <outcome value='true'>
- <block atomic='true'>
- <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >
- <parameter name="source" value="`$prop.restapi.removeRRMPolicyRatio.ToNRCellCU.ransim-mounted`"/>
- <parameter name="outputPath" value="tmp.deleteRRMPolicyRatio.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.deleteRRMPolicyRatio.url`"/>
- <parameter name="outputPath" value="tmp.deleteRRMPolicyRatio.url"/>
- <parameter name="target" value="{mountName}"/>
- <parameter name="replacement" value="`$tmp.CUCPName`"/>
- </execute>
- </block>
- </outcome>
- </switch>
- </block>
- </outcome>
- <outcome value='false'>
- <block atomic='true'>
- <set>
- <parameter name='tmp.RRMPolicyMember_sNSSAI' value="`'$get-rrmpolicyratio-response.attributes.RRMPolicyRatio['+ $idcu-rrm+'].attributes.rRMPolicyMemberList['+ $idcu-rrm1 +'].sNSSAI'`" />
- </set>
- <switch test='`$tmp.RRMPolicyMember_sNSSAI==$tmp.sNSSAI`'>
- <outcome value='success'>
- <block atomic='true'>
- <set>
- <parameter name='tmp.RRMPolicyMember_id' value="`'$get-rrmpolicyratio-response.attributes.RRMPolicyRatio['+ $idcu-rrm+'].attributes.rRMPolicyMemberList['+ $idcu-rrm1 +'].idx'`" />
- </set>
- <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
- <parameter name="file" value="/opt/opendaylight/current/data/log/terminateRANSlice.log" />
- <parameter name="level" value="info" />
- <parameter name="field1" value="RRMPolicyMember id - "/>
- <parameter name="field2" value="`$tmp.RRMPolicyMember_id`"/>
- </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.removeRRMPolicyMember.ToNRCellCU`"/>
- <parameter name="outputPath" value="tmp.deleteRRMPolicyRatio.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.removeRRMPolicyMember.ToNRCellCU.ransim-mounted`"/>
- <parameter name="outputPath" value="tmp.deleteRRMPolicyRatio.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.deleteRRMPolicyRatio.url`"/>
- <parameter name="outputPath" value="tmp.deleteRRMPolicyRatio.url"/>
- <parameter name="target" value="{mountName}"/>
- <parameter name="replacement" value="`$tmp.CUCPName`"/>
- </execute>
- </block>
- </outcome>
- </switch>
- </block>
- </outcome>
- </switch>
- </block>
- </outcome>
- </switch>
- <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >
- <parameter name="source" value="`$tmp.deleteRRMPolicyRatio.url`"/>
- <parameter name="outputPath" value="tmp.deleteRRMPolicyRatio.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.deleteRRMPolicyRatio.url`"/>
- <parameter name="outputPath" value="tmp.deleteRRMPolicyRatio.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.deleteRRMPolicyRatio.url`"/>
- <parameter name="outputPath" value="tmp.deleteRRMPolicyRatio.url"/>
- <parameter name="target" value="{id}"/>
- <parameter name="replacement" value="`$tmp.RRMPolicyRatio_id`"/>
- </execute>
- <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >
- <parameter name="source" value="`$tmp.getRRMPolicyRatio.url`"/>
- <parameter name="outputPath" value="tmp.getRRMPolicyRatio.url"/>
- <parameter name="target" value="{idx}"/>
- <parameter name="replacement" value="`$tmp.RRMPolicyMember_id`"/>
- </execute>
- </block>
- </for>
- <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
- <parameter name="file" value="/opt/opendaylight/current/data/log/terminateRANSlice.log" />
- <parameter name="level" value="info" />
- <parameter name="field1" value="Delete RRMPolicy URL - "/>
- <parameter name="field2" value="`$tmp.deleteRRMPolicyRatio.url`"/>
- <parameter name="field3" value="RRMPolicyRatio id"/>
- <parameter name="field4" value="`$tmp.RRMPolicyRatio_id`"/>
- </record>
- <execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >
- <parameter name="restapiUrl" value="`$prop.controller.url + $tmp.deleteRRMPolicyRatio.url`"/>
- <parameter name="restapiUser" value="`$prop.controller.user`" />
- <parameter name="restapiPassword" value="`$prop.controller.pwd`"/>
- <parameter name="httpMethod" value="DELETE"/>
- <parameter name="responsePrefix" value="delete-cellCU-RRMPolicyRatio-response"/>
- <parameter name='contentType' value='application/json' />
- <parameter name='format' value='json' />
- <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/terminateRANSlice.log" />
- <parameter name="level" value="info" />
- <parameter name="field1" value="Successfully Deleted - cellCU RRMpolicyRatio/RRMPolicyMember"/>
- </record>
- </block>
- </outcome>
- <outcome value='failure'>
- <block atomic='true'>
- <set>
- <parameter name='error-code' value='500'/>
- <parameter name='error-message' value='Error Removing cellCU RRMPolicyRatio. 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 removing NRCellDU - RRMPolicyRAtio. Aborting RPC executiopn'/>
- </return>
- <block atomic='true'>
- <set>
- <parameter name="tmp.so.callbackURL" value="`$payloadJson.input.callbackURL`"/>
- <parameter name="tmp.status" value="success"/>
- <parameter name="tmp.reason" value="`$error-message`"/>
- <parameter name="tmp.requestID" value="`$terminate-r-a-n-slice-input.common-header.request-id `"/>
- <parameter name="tmp.action" value="`$terminate-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="`$payloadJson.input.callbackURL`"/>
- <parameter name="httpMethod" value="POST"/>
- <parameter name="responsePrefix" value="so-callback-terminate-response"/>
- <parameter name='contentType' value='application/json' />
- <parameter name='format' value='json' />
- <parameter name='accept' value='*/*' />
- <parameter name="convertResponse" value="true"/>
- <parameter name="restapiUser" value="`$prop.restapi.so.user`" />
- <parameter name="restapiPassword" value="`$prop.restapi.so.password`"/>
- <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/terminateRANSlice.log" />
- <parameter name="level" value="info" />
- <parameter name="field1" value="SO Response Sent "/>
- </record>
- </block>
- </outcome>
- </execute>
- </block>
- </block>
- </outcome>
- </execute>
- <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'>
- <parameter name='outputPath' value='tmp.CURRMPolicyMembersResourceType' />
- <parameter name='source' value="`'get-rrmpolicyratio-response.attributes.RRMPolicyRatio['+ $idcu-rrm+'].attributes.resourceType'`" />
- </execute>
- <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >
- <parameter name="source" value="`$prop.restapi.configdb.removenSSAICUUPRRMPOLICY`"/>
- <parameter name="outputPath" value="tmp.deleteRRMPolicy-CUUP.configdb.url"/>
- <parameter name="target" value="{gnbCUUPId}"/>
- <parameter name="replacement" value="`$tmp.cellCULocalId`"/>
- </execute>
- <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >
- <parameter name="source" value="`$tmp.deleteRRMPolicy-CUUP.configdb.url`"/>
- <parameter name="outputPath" value="tmp.deleteRRMPolicy-CUUP.configdb.url"/>
- <parameter name="target" value="{resourcetype}"/>
- <parameter name="replacement" value="`$tmp.CURRMPolicyMembersResourceType`"/>
- </execute>
- <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >
- <parameter name="source" value="`$tmp.deleteRRMPolicy-CUUP.configdb.url`"/>
- <parameter name="outputPath" value="tmp.deleteRRMPolicy-CUUP.configdb.url"/>
- <parameter name="target" value="{sNSSAI}"/>
- <parameter name="replacement" value="`$tmp.sNSSAI`"/>
- </execute>
- <execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >
- <parameter name="restapiUrl" value="`$prop.configdb.url + $tmp.deleteRRMPolicy-CUUP.configdb.url`"/>
- <parameter name="httpMethod" value="DELETE"/>
- <parameter name="responsePrefix" value="delete-CU-rrmpolicy-configdb-response"/>
- <parameter name='contentType' value='application/json' />
- <parameter name='format' value='json' />
- <parameter name='accept' value='application/json' />
- <parameter name="convertResponse" value="true"/>
- <outcome value='failure'>
- <block atomic='true'></block>
- </outcome>
- <outcome value='success'>
- <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
- <parameter name="file" value="/opt/opendaylight/current/data/log/terminateRANSlice.log" />
- <parameter name="level" value="info" />
- <parameter name="field1" value="Successfully removed - gNBCU rrmpolicy Entry from configdb"/>
- </record>
- </outcome>
- </execute>
- </block>
- </for>
- </block>
- </block>
- </outcome>
- </switch>
- </block>
- </for>
- </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/terminateRANSlice.log" />
- <parameter name="level" value="info" />
- <parameter name="field1" value="plmninfolistnssailength in false in CU "/>
- <parameter name="field2" value="`$tmp.sNssaiListLengthCU`"/>
- </record>
- </block>
- </outcome>
- </switch>
- </block>
- </for>
- </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/terminateRANSlice.log" />
- <parameter name="level" value="info" />
- <parameter name="field1" value="plmninfolistlength in false "/>
- <parameter name="field2" value="`$tmp.pLMNInfoList_length`"/>
- </record>
- </block>
- </outcome>
- </switch>
- </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/terminateRANSlice.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/terminateRANSlice.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>
- <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
- <parameter name="file" value="/opt/opendaylight/current/data/log/terminateRANSlice.log" />
- <parameter name="level" value="info" />
- <parameter name="field1" value="cuup_plmninfolength "/>
- <parameter name="field2" value="`$tmp.pLMNInfoList`"/>
- </record>
- <for index='id-plmn' start='0' end='1'>
- <block atomic='true'>
- <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'>
- <parameter name='outputPath' value='tmp.sNssaiListLength' />
- <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/terminateRANSlice.log" />
- <parameter name="level" value="info" />
- <parameter name="field1" value="cuup_plmninfolength_nssailength "/>
- <parameter name="field2" value="`$tmp.sNssaiListLength`"/>
- </record>
- <switch test='`$tmp.sNssaiListLength > 0`'>
- <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/terminateRANSlice.log" />
- <parameter name="level" value="info" />
- <parameter name="field1" value="plmninfolistnssailength in true "/>
- <parameter name="field2" value="`$tmp.sNssaiListLength`"/>
- </record>
- <for index='id-snssai' start='0' end='`$tmp.sNssaiListLength`'>
- <block atomic='true'>
- <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'>
- <parameter name='outputPath' value='tmp.configDBSNSSAI1' />
- <parameter name='source' value="`'getNFNSSIRIC-configdb-response.['+ $idy +'].gNBCUUPList['+ $id-cuup +'].pLMNInfoList['+ $id-plmn +'].sNSSAI['+ $id-snssai +'].sNSSAI'`" />
- </execute>
- <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
- <parameter name="file" value="/opt/opendaylight/current/data/log/terminateRANSlice.log" />
- <parameter name="level" value="info" />
- <parameter name="field1" value="sNSSAI - getNFNSSIRIC-configdb-response"/>
- <parameter name="field2" value="`$tmp.configDBSNSSAI1`"/>
- <parameter name="field3" value="sNSSAI from Request"/>
- <parameter name="field4" value="`$tmp.sNSSAI`"/>
- </record>
- <switch test='`$tmp.configDBSNSSAI1 == $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/terminateRANSlice.log" />
- <parameter name="level" value="info" />
- <parameter name="field1" value="nssaimatch in True "/>
- <parameter name="field2" value="`Proceeding for nssai deletion`"/>
- </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.terminateSNSSAIEntry.ToCUUP`"/>
- <parameter name="outputPath" value="tmp.deletePLMNInfo-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.terminateSNSSAIEntry.ToCUUP.ransim-mounted`"/>
- <parameter name="outputPath" value="tmp.deletePLMNInfo-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.deletePLMNInfo-CUUP.url`"/>
- <parameter name="outputPath" value="tmp.deletePLMNInfo-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.deletePLMNInfo-CUUP.url`"/>
- <parameter name="outputPath" value="tmp.deletePLMNInfo-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.deletePLMNInfo-CUUP.url`"/>
- <parameter name="outputPath" value="tmp.deletePLMNInfo-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.deletePLMNInfo-CUUP.url`"/>
- <parameter name="outputPath" value="tmp.deletePLMNInfo-CUUP.url"/>
- <parameter name="target" value="{mnc}"/>
- <parameter name="replacement" value="`$tmp.mnc`"/>
- </execute>
- <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >
- <parameter name="source" value="`$tmp.deletePLMNInfo-CUUP.url`"/>
- <parameter name="outputPath" value="tmp.deletePLMNInfo-CUUP.url"/>
- <parameter name="target" value="{sNssai}"/>
- <parameter name="replacement" value="`$tmp.sNSSAI`"/>
- </execute>
- <execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >
- <parameter name="restapiUrl" value="`$prop.controller.url + $tmp.deletePLMNInfo-CUUP.url`"/>
- <parameter name="restapiUser" value="`$prop.controller.user`" />
- <parameter name="restapiPassword" value="`$prop.controller.pwd`"/>
- <parameter name="httpMethod" value="DELETE"/>
- <parameter name="responsePrefix" value="delete-CUUP-sNSSAI-response"/>
- <parameter name='contentType' value='application/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="success"/>
- <parameter name="tmp.reason" value="`$error-message`"/>
- <parameter name="tmp.requestID" value="`$terminate-r-a-n-slice-input.common-header.request-id `"/>
- <parameter name="tmp.action" value="`$terminate-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="`$payloadJson.input.callbackURL`"/>
- <parameter name="httpMethod" value="POST"/>
- <parameter name="responsePrefix" value="so-callback-terminate-response"/>
- <parameter name='contentType' value='application/json' />
- <parameter name='format' value='json' />
- <parameter name='accept' value='*/*' />
- <parameter name="convertResponse" value="true"/>
- <parameter name="restapiUser" value="`$prop.restapi.so.user`" />
- <parameter name="restapiPassword" value="`$prop.restapi.so.password`"/>
- <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/terminateRANSlice.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 removing 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 removing CUUP 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/terminateRANSlice.log" />
- <parameter name="level" value="info" />
- <parameter name="field1" value="Successfully removed - gNBCUUP PLMNInfo Entry"/>
- </record>
- </block>
- </outcome>
- </execute>
- <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >
- <parameter name="source" value="`$prop.restapi.configdb.removenSSAICUUP`"/>
- <parameter name="outputPath" value="tmp.deletePLMNInfo-CUUP.configdb.url"/>
- <parameter name="target" value="{gnbCUUPId}"/>
- <parameter name="replacement" value="`$tmp.idGNBCUUPFunction`"/>
- </execute>
- <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >
- <parameter name="source" value="`$tmp.deletePLMNInfo-CUUP.configdb.url`"/>
- <parameter name="outputPath" value="tmp.deletePLMNInfo-CUUP.configdb.url"/>
- <parameter name="target" value="{sNSSAI}"/>
- <parameter name="replacement" value="`$tmp.sNSSAI`"/>
- </execute>
- <execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >
- <parameter name="restapiUrl" value="`$prop.configdb.url + $tmp.deletePLMNInfo-CUUP.configdb.url`"/>
- <parameter name="httpMethod" value="DELETE"/>
- <parameter name="responsePrefix" value="delete-CUUP-plmninfo-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 atomic='true'>
- <set>
- <parameter name='error-code' value='500'/>
- <parameter name='error-message' value='Error removing 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 removing CUUP 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/terminateRANSlice.log" />
- <parameter name="level" value="info" />
- <parameter name="field1" value="Successfully removed - gNBCUUP PLMNInfo Entry from configdb"/>
- </record>
- </block>
- </outcome>
- </execute>
- </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/terminateRANSlice.log" />
- <parameter name="level" value="info" />
- <parameter name="field1" value="nssaimatch in false "/>
- <parameter name="field2" value="`nssai deletion does not takes place`"/>
- </record>
- </block>
- </outcome>
- </switch>
- </block>
- </for>
- </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/terminateRANSlice.log" />
- <parameter name="level" value="info" />
- <parameter name="field1" value="plmninfolistnssailength in false "/>
- <parameter name="field2" value="`$tmp.sNssaiListLength`"/>
- </record>
- </block>
- </outcome>
- </switch>
- </block>
- </for>
- <set>
- <parameter name='tmp.maxNumberOfDRBsPerNSSAI' value='`$tmp.payload.maxNumberofConns*4`' />
- <parameter name='tmp.maxNumberOfDRBsPerCUUP' value='`$tmp.maxNumberOfDRBsPerNSSAI /$tmp.CUUPList_length`' />
- <parameter name='tmp.rRMPolicyDedicatedRatio1' value='`$tmp.maxNumberOfDRBsPerCUUP*100`' />
- <parameter name='tmp.rRMPolicyDedicatedRatio-CUUP' value='`$tmp.rRMPolicyDedicatedRatio1/$prop.cuupfunction.maxNumberOfDRBsPerCUUP`' />
- </set>
- <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
- <parameter name="file" value="/opt/opendaylight/current/data/log/terminateRANSlice.log" />
- <parameter name="level" value="info" />
- <parameter name="field1" value="RRMPolicyRatio for this profile is - "/>
- <parameter name="field2" value="`$tmp.rRMPolicyDedicatedRatio-CUUP`"/>
- </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.RRMPolicyRatioEntry.ToGNBCUUP`"/>
- <parameter name="outputPath" value="tmp.getRRMPolicyRatio-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.RRMPolicyRatioEntry.ToGNBCUUP.ransim-mounted`"/>
- <parameter name="outputPath" value="tmp.getRRMPolicyRatio-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.getRRMPolicyRatio-CUUP.url`"/>
- <parameter name="outputPath" value="tmp.getRRMPolicyRatio-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.getRRMPolicyRatio-CUUP.url`"/>
- <parameter name="outputPath" value="tmp.getRRMPolicyRatio-CUUP.url"/>
- <parameter name="target" value="{idGNBCUUPFunction}"/>
- <parameter name="replacement" value="`$tmp.idGNBCUUPFunction`"/>
- </execute>
- <execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >
- <parameter name="restapiUrl" value="`$prop.controller.url + $tmp.getRRMPolicyRatio-CUUP.url`"/>
- <parameter name="restapiUser" value="`$prop.controller.user`" />
- <parameter name="restapiPassword" value="`$prop.controller.pwd`"/>
- <parameter name="httpMethod" value="GET"/>
- <parameter name="responsePrefix" value="get-rrmpolicyratio-cuup-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 atomic='true'>
- <block atomic='true'>
- <set>
- <parameter name="tmp.so.callbackURL" value="`$payloadJson.input.callbackURL`"/>
- <parameter name="tmp.status" value="success"/>
- <parameter name="tmp.reason" value="`$error-message`"/>
- <parameter name="tmp.requestID" value="`$terminate-r-a-n-slice-input.common-header.request-id `"/>
- <parameter name="tmp.action" value="`$terminate-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="`$payloadJson.input.callbackURL`"/>
- <parameter name="httpMethod" value="POST"/>
- <parameter name="responsePrefix" value="so-callback-terminate-response"/>
- <parameter name='contentType' value='application/json' />
- <parameter name='format' value='json' />
- <parameter name='accept' value='*/*' />
- <parameter name="convertResponse" value="true"/>
- <parameter name="restapiUser" value="`$prop.restapi.so.user`" />
- <parameter name="restapiPassword" value="`$prop.restapi.so.password`"/>
- <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/terminateRANSlice.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 in retrieving RRMPolicyRatio. 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 in fetching RRMPolicyRatio. 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/terminateRANSlice.log" />
- <parameter name="level" value="info" />
- <parameter name="field1" value="Successfully Retrieved - RRMPolicyRatio"/>
- </record>
- <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='printContext' >
- <parameter name='filename' value='/opt/opendaylight/current/data/log/ranSlice-instantiateRANSlice-configrsp-context.log' />
- </execute>
- </block>
- </outcome>
- </execute>
- <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'>
- <parameter name='outputPath' value='tmp.rrmPolicyRatioList_CUUP_length' />
- <parameter name='source' value="`'get-rrmpolicyratio-cuup-response.attributes.RRMPolicyRatio_length'`" />
- </execute>
- <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
- <parameter name="file" value="/opt/opendaylight/current/data/log/terminateRANSlice.log" />
- <parameter name="level" value="info" />
- <parameter name="field1" value="CUUP - RRMPolicyRatioList size"/>
- <parameter name="field2" value="`$tmp.rrmPolicyRatioList_CUUP_length`"/>
- </record>
- <for index='idcuup-rrm' start='0' end='`$tmp.rrmPolicyRatioList_CUUP_length`' >
- <block atomic='true'>
- <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'>
- <parameter name='outputPath' value='tmp.CUUPRRMPolicyRatio_id' />
- <parameter name='source' value="`'get-rrmpolicyratio-cuup-response.attributes.RRMPolicyRatio['+ $idcuup-rrm+'].id'`" />
- </execute>
- <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'>
- <parameter name='outputPath' value='tmp.CUUPRRMPolicyMembersLength' />
- <parameter name='source' value="`'get-rrmpolicyratio-cuup-response.attributes.RRMPolicyRatio['+ $idcuup-rrm+'].attributes.rRMPolicyMemberList_length'`" />
- </execute>
- <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
- <parameter name="file" value="/opt/opendaylight/current/data/log/terminateRANSlice.log" />
- <parameter name="level" value="info" />
- <parameter name="field1" value="CUUP - RRMPolicyMembersList size"/>
- <parameter name="field2" value="`$tmp.CUUPRRMPolicyMembersLength`"/>
- </record>
- <for index='idcu-rrm2' start='0' end='`$tmp.CUUPRRMPolicyMembersLength`' >
- <block atomic='true'>
- <switch test='`$tmp.CUUPRRMPolicyMembersLength > 0`'>
- <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/terminateRANSlice.log" />
- <parameter name="level" value="info" />
- <parameter name="field1" value="Success" />
- <parameter name="field2" value="Tocheck if ransim mounted" />
- </record>
- <switch test='`$prop.ransim-mounted`'>
- <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/terminateRANSlice.log" />
- <parameter name="level" value="info" />
- <parameter name="field1" value="before setting url" />
- <parameter name="field2" value="ransimnot mounted" />
- </record>
- <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >
- <parameter name="source" value="`$prop.restapi.removeRRMPolicyRatio.ToCUUP`"/>
- <parameter name="outputPath" value="tmp.deleteRRMPolicyRatio-CUUP.url"/>
- <parameter name="target" value="{idNearRTRIC}"/>
- <parameter name="replacement" value="`$tmp.nearRTRICId`"/>
- </execute>
- <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
- <parameter name="file" value="/opt/opendaylight/current/data/log/terminateRANSlice.log" />
- <parameter name="level" value="info" />
- <parameter name="field1" value="Delete RRMPolicy URL after setting - "/>
- <parameter name="field2" value="`$tmp.deleteRRMPolicyRatio-CUUP.url`"/>
- </record>
- </block>
- </outcome>
- <outcome value='true'>
- <block atomic='true'>
- <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >
- <parameter name="source" value="`$prop.restapi.removeRRMPolicyRatio.ToCUUP.ransim-mounted`"/>
- <parameter name="outputPath" value="tmp.deleteRRMPolicyRatio-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.deleteRRMPolicyRatio-CUUP.url`"/>
- <parameter name="outputPath" value="tmp.deleteRRMPolicyRatio-CUUP.url"/>
- <parameter name="target" value="{mountName}"/>
- <parameter name="replacement" value="`$tmp.idGNBCUUPFunction`"/>
- </execute>
- </block>
- </outcome>
- </switch>
- </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/terminateRANSlice.log" />
- <parameter name="level" value="info" />
- <parameter name="field1" value="Failure" />
- <parameter name="field2" value="Tocheck if ransim mounted" />
- </record>
- <set>
- <parameter name='tmp.CUUPRRMPolicyMember_sNSSAI' value="`'$get-rrmpolicyratio-cuup-response.attributes.RRMPolicyRatio['+ $idcuup-rrm+'].attributes.rRMPolicyMemberList['+ $idcu-rrm2 +'].sNSSAI'`" />
- </set>
- <switch test='`$tmp.CUUPRRMPolicyMember_sNSSAI==$tmp.sNSSAI`'>
- <outcome value='success'>
- <block atomic='true'>
- <set>
- <parameter name='tmp.CUUPRRMPolicyMember_id' value="`'$get-rrmpolicyratio-cuup-response.attributes.RRMPolicyRatio['+ $idcuup-rrm+'].attributes.rRMPolicyMemberList['+ $idcu-rrm2 +'].idx'`" />
- </set>
- <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
- <parameter name="file" value="/opt/opendaylight/current/data/log/terminateRANSlice.log" />
- <parameter name="level" value="info" />
- <parameter name="field1" value="RRMPolicyMember id - "/>
- <parameter name="field2" value="`$tmp.CUUPRRMPolicyMember_id`"/>
- </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.removeRRMPolicyMember.ToCUUP`"/>
- <parameter name="outputPath" value="tmp.deleteRRMPolicyRatio-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.removeRRMPolicyMember.CUUP.ransim-mounted`"/>
- <parameter name="outputPath" value="tmp.deleteRRMPolicyRatio-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.deleteRRMPolicyRatio-CUUP.url`"/>
- <parameter name="outputPath" value="tmp.deleteRRMPolicyRatio-CUUP.url"/>
- <parameter name="target" value="{mountName}"/>
- <parameter name="replacement" value="`$tmp.idGNBCUUPFunction`"/>
- </execute>
- </block>
- </outcome>
- </switch>
- </block>
- </outcome>
- </switch>
- </block>
- </outcome>
- </switch>
- <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
- <parameter name="file" value="/opt/opendaylight/current/data/log/terminateRANSlice.log" />
- <parameter name="level" value="info" />
- <parameter name="field1" value="Delete RRMPolicy URL first - "/>
- <parameter name="field2" value="`$tmp.deleteRRMPolicyRatio-CUUP.url`"/>
- </record>
- <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >
- <parameter name="source" value="`$tmp.deleteRRMPolicyRatio-CUUP.url`"/>
- <parameter name="outputPath" value="tmp.deleteRRMPolicyRatio-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.deleteRRMPolicyRatio-CUUP.url`"/>
- <parameter name="outputPath" value="tmp.deleteRRMPolicyRatio-CUUP.url"/>
- <parameter name="target" value="{id}"/>
- <parameter name="replacement" value="`$tmp.CUUPRRMPolicyRatio_id`"/>
- </execute>
- <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >
- <parameter name="source" value="`$tmp.deleteRRMPolicyRatio-CUUP.url`"/>
- <parameter name="outputPath" value="tmp.deleteRRMPolicyRatio-CUUP.url"/>
- <parameter name="target" value="{idx}"/>
- <parameter name="replacement" value="`$tmp.CUUPRRMPolicyMember_id`"/>
- </execute>
- </block>
- </for>
- <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
- <parameter name="file" value="/opt/opendaylight/current/data/log/terminateRANSlice.log" />
- <parameter name="level" value="info" />
- <parameter name="field1" value="Delete RRMPolicy URL - "/>
- <parameter name="field2" value="`$tmp.deleteRRMPolicyRatio-CUUP.url`"/>
- <parameter name="field3" value="RRMPolicyRatio id"/>
- <parameter name="field4" value="`$tmp.CUUPRRMPolicyRatio_id`"/>
- </record>
- <execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >
- <parameter name="restapiUrl" value="`$prop.controller.url + $tmp.deleteRRMPolicyRatio-CUUP.url`"/>
- <parameter name="restapiUser" value="`$prop.controller.user`" />
- <parameter name="restapiPassword" value="`$prop.controller.pwd`"/>
- <parameter name="httpMethod" value="DELETE"/>
- <parameter name="responsePrefix" value="delete-CUUP-RRMPolicyRatio-response"/>
- <parameter name='contentType' value='application/json' />
- <parameter name='format' value='json' />
- <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/terminateRANSlice.log" />
- <parameter name="level" value="info" />
- <parameter name="field1" value="Successfully removed - CUUP RRMpolicyRatio"/>
- </record>
- </block>
- </outcome>
- <outcome value='failure'>
- <block atomic='true'>
- <set>
- <parameter name='error-code' value='500'/>
- <parameter name='error-message' value='Error removing CUUP RRMPolicyRatio. 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 removing RRMPolicyRatio. Aborting RPC executiopn'/>
- </return>
- </block>
- </outcome>
- </execute>
- <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'>
- <parameter name='outputPath' value='tmp.CUUPRRMPolicyMembersResourceType' />
- <parameter name='source' value="`'get-rrmpolicyratio-cuup-response.attributes.RRMPolicyRatio['+ $idcuup-rrm+'].attributes.resourceType'`" />
- </execute>
- <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >
- <parameter name="source" value="`$prop.restapi.configdb.removenSSAICUUPRRMPOLICY`"/>
- <parameter name="outputPath" value="tmp.deleteRRMPolicy-CUUP.configdb.url"/>
- <parameter name="target" value="{gnbCUUPId}"/>
- <parameter name="replacement" value="`$tmp.idGNBCUUPFunction`"/>
- </execute>
- <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >
- <parameter name="source" value="`$tmp.deleteRRMPolicy-CUUP.configdb.url`"/>
- <parameter name="outputPath" value="tmp.deleteRRMPolicy-CUUP.configdb.url"/>
- <parameter name="target" value="{resourcetype}"/>
- <parameter name="replacement" value="`$tmp.CUUPRRMPolicyMembersResourceType`"/>
- </execute>
- <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >
- <parameter name="source" value="`$tmp.deleteRRMPolicy-CUUP.configdb.url`"/>
- <parameter name="outputPath" value="tmp.deleteRRMPolicy-CUUP.configdb.url"/>
- <parameter name="target" value="{sNSSAI}"/>
- <parameter name="replacement" value="`$tmp.sNSSAI`"/>
- </execute>
- <execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >
- <parameter name="restapiUrl" value="`$prop.configdb.url + $tmp.deleteRRMPolicy-CUUP.configdb.url`"/>
- <parameter name="httpMethod" value="DELETE"/>
- <parameter name="responsePrefix" value="delete-CUUP-rrmpolicy-configdb-response"/>
- <parameter name='contentType' value='application/json' />
- <parameter name='format' value='json' />
- <parameter name='accept' value='application/json' />
- <parameter name="convertResponse" value="true"/>
- <outcome value='failure'>
- <block atomic='true'>
- <set>
- <parameter name='error-code' value='500'/>
- <parameter name='error-message' value='Error removing 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 removing CUUP PLMNInfo. Aborting RPC executiopn'/>
- </return>
- </block>
- </outcome>
- <outcome value='success'>
- <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
- <parameter name="file" value="/opt/opendaylight/current/data/log/terminateRANSlice.log" />
- <parameter name="level" value="info" />
- <parameter name="field1" value="Successfully removed - gNBCUUP rrmpolicy Entry from configdb"/>
- </record>
- </outcome>
- </execute>
- </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/terminateRANSlice.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/terminateRANSlice.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 atomic='true'>
- <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
- <parameter name="file" value="/opt/opendaylight/current/data/log/terminateRANSlice.log" />
- <parameter name="level" value="info" />
- <parameter name="field1" value="Iterating "/>
- <parameter name="field2" value="`CellDU`"/>
- </record>
- <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>
- <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
- <parameter name="file" value="/opt/opendaylight/current/data/log/terminateRANSlice.log" />
- <parameter name="level" value="info" />
- <parameter name="field1" value="plmninfolengthcelldu "/>
- <parameter name="field2" value="`$tmp.DUpLMNInfoList_length`"/>
- </record>
- <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.sNssaiListLengthDU' />
- <parameter name='source' value="`'getNFNSSIRIC-configdb-response.['+ $idy +'].gNBDUList['+ $id-du +'].cellDUList['+ $id-celldu +'].pLMNInfoList['+ $id-duplmn +'].sNSSAI_length'`" />
- </execute>
- <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
- <parameter name="file" value="/opt/opendaylight/current/data/log/terminateRANSlice.log" />
- <parameter name="level" value="info" />
- <parameter name="field1" value="DU_plmninfolength_nssailength "/>
- <parameter name="field2" value="`$tmp.sNssaiListLengthDU`"/>
- </record>
- <switch test='`$tmp.sNssaiListLengthDU > 0`'>
- <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/terminateRANSlice.log" />
- <parameter name="level" value="info" />
- <parameter name="field1" value="plmninfolistnssailength in true in DU "/>
- <parameter name="field2" value="`$tmp.sNssaiListLengthDU`"/>
- </record>
- <for index='id-dusnssai' start='0' end='`$tmp.sNssaiListLengthDU`'>
- <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-dusnssai +'].sNSSAI'`" />
- </execute>
- <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
- <parameter name="file" value="/opt/opendaylight/current/data/log/terminateRANSlice.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'>
- <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
- <parameter name="file" value="/opt/opendaylight/current/data/log/terminateRANSlice.log" />
- <parameter name="level" value="info" />
- <parameter name="field1" value="CellDU 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.terminateSNSSAIEntry.ToNRCellDU`"/>
- <parameter name="outputPath" value="tmp.deletePLMNInfoListEntry-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.terminateSNSSAIEntry.ToNRCellDU.ransim-mounted`"/>
- <parameter name="outputPath" value="tmp.deletePLMNInfoListEntry-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.deletePLMNInfoListEntry-cellDU.url`"/>
- <parameter name="outputPath" value="tmp.deletePLMNInfoListEntry-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.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>
- <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
- <parameter name="file" value="/opt/opendaylight/current/data/log/terminateRANSlice.log" />
- <parameter name="level" value="info" />
- <parameter name="field1" value="LocalId "/>
- <parameter name="field2" value="`$tmp.cellDULocalId`"/>
- </record>
- <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >
- <parameter name="source" value="`$tmp.deletePLMNInfoListEntry-cellDU.url`"/>
- <parameter name="outputPath" value="tmp.deletePLMNInfoListEntry-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.deletePLMNInfoListEntry-cellDU.url`"/>
- <parameter name="outputPath" value="tmp.deletePLMNInfoListEntry-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.deletePLMNInfoListEntry-cellDU.url`"/>
- <parameter name="outputPath" value="tmp.deletePLMNInfoListEntry-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.deletePLMNInfoListEntry-cellDU.url`"/>
- <parameter name="outputPath" value="tmp.deletePLMNInfoListEntry-cellDU.url"/>
- <parameter name="target" value="{mnc}"/>
- <parameter name="replacement" value="`$tmp.mnc`"/>
- </execute>
- <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >
- <parameter name="source" value="`$tmp.deletePLMNInfoListEntry-cellDU.url`"/>
- <parameter name="outputPath" value="tmp.deletePLMNInfoListEntry-cellDU.url"/>
- <parameter name="target" value="{sNssai}"/>
- <parameter name="replacement" value="`$tmp.sNSSAI`"/>
- </execute>
- <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
- <parameter name="file" value="/opt/opendaylight/current/data/log/terminateRANSlice.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.GNBDUId`"/>
- <parameter name="field4" value="`$tmp.cellDULocalId`"/>
- <parameter name="field5" value="`$tmp.mcc`"/>
- <parameter name="field6" value="`$tmp.mnc`"/>
- <parameter name="field7" value="`$tmp.sNSSAI`"/>
- <parameter name="field8" value="`$tmp.deletePLMNInfoListEntry-cellDU.url`"/>
- </record>
- <execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >
- <parameter name="restapiUrl" value="`$prop.controller.url + $tmp.deletePLMNInfoListEntry-cellDU.url`"/>
- <parameter name="restapiUser" value="`$prop.controller.user`" />
- <parameter name="restapiPassword" value="`$prop.controller.pwd`"/>
- <parameter name="httpMethod" value="DELETE"/>
- <parameter name="responsePrefix" value="delete-cellDU-PLMNInfoList-response"/>
- <parameter name='contentType' value='application/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="success"/>
- <parameter name="tmp.reason" value="`$error-message`"/>
- <parameter name="tmp.requestID" value="`$terminate-r-a-n-slice-input.common-header.request-id `"/>
- <parameter name="tmp.action" value="`$terminate-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="`$payloadJson.input.callbackURL`"/>
- <parameter name="httpMethod" value="POST"/>
- <parameter name="responsePrefix" value="so-callback-terminate-response"/>
- <parameter name='contentType' value='application/json' />
- <parameter name='format' value='json' />
- <parameter name='accept' value='*/*' />
- <parameter name="convertResponse" value="true"/>
- <parameter name="restapiUser" value="`$prop.restapi.so.user`" />
- <parameter name="restapiPassword" value="`$prop.restapi.so.password`"/>
- <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/terminateRANSlice.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 deleting 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 deleting 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/instantiateRANSliceModifyAllocate.log" />
- <parameter name="level" value="info" />
- <parameter name="field1" value="Successfully deleted - cellDU PLMNInfo List"/>
- </record>
- </block>
- </outcome>
- </execute>
- <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >
- <parameter name="source" value="`$prop.restapi.configdb.removenSSAINRCellDU`"/>
- <parameter name="outputPath" value="tmp.deleteplmninfo-GNBDU.configdb.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.deleteplmninfo-GNBDU.configdb.url`"/>
- <parameter name="outputPath" value="tmp.deleteplmninfo-GNBDU.configdb.url"/>
- <parameter name="target" value="{sNSSAI}"/>
- <parameter name="replacement" value="`$tmp.sNSSAI`"/>
- </execute>
- <execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >
- <parameter name="restapiUrl" value="`$prop.configdb.url + $tmp.deleteplmninfo-GNBDU.configdb.url`"/>
- <parameter name="httpMethod" value="DELETE"/>
- <parameter name="responsePrefix" value="delete-GNBDU-plmninfo-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 atomic='true'>
- <set>
- <parameter name='error-code' value='500'/>
- <parameter name='error-message' value='Error removing 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 removing CUUP PLMNInfo. Aborting RPC executiopn'/>
- </return>
- </block>
- </outcome>
- <outcome value='success'>
- <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
- <parameter name="file" value="/opt/opendaylight/current/data/log/terminateRANSlice.log" />
- <parameter name="level" value="info" />
- <parameter name="field1" value="Successfully removed - gNBDU pmmninfo Entry from configdb"/>
- </record>
- </outcome>
- </execute>
- <block atomic='true'>
- <block atomic='true'>
- <set>
- <parameter name='tmp.uLThptPerSlice' value='`$payloadJson.input.sliceProfile.uLThptPerSlice`' />
- </set>
- <set>
- <parameter name='tmp.dLThptPerSlice' value='`$payloadJson.input.sliceProfile.dLThptPerSlice`' />
- </set>
- <set>
- <parameter name='tmp.maxNumberOfConns' value='`$payloadJson.input.sliceProfile.maxNumberOfConns`' />
- </set>
- <set>
- <parameter name='tmp.nearRTRIC.trafficCapacity1' value='`$tmp.uLThptPerSlice + $tmp.dLThptPerSlice`' />
- </set>
- <set>
- <parameter name='tmp.nearRTRIC.trafficCapacity' value='`$tmp.nearRTRIC.trafficCapacity1 / 2`' />
- </set>
- <set>
- <parameter name='tmp.nearRTRIC.trafficCapacityBPS' value='`$tmp.nearRTRIC.trafficCapacity * 1000000`' />
- </set>
- <set>
- <parameter name='tmp.nrcelldu.totalPRBForSNSSAI' value='`$tmp.nearRTRIC.trafficCapacityBPS / 1008000`' />
- </set>
- <set>
- <parameter name='tmp.nrcelldu.PRBPerImpactedCell' value='`$tmp.nrcelldu.totalPRBForSNSSAI / $tmp.cellDUList_length`' />
- </set>
- <set>
- <parameter name='tmp.rRMPolicyDedicatedRatio.CellDU1' value='`$tmp.nrcelldu.PRBPerImpactedCell * 100`' />
- </set>
- <set>
- <parameter name='tmp.rRMPolicyDedicatedRatio.CellDU' value='`$tmp.rRMPolicyDedicatedRatio.CellDU1 / $prop.nrcelldu.TotalPRBsPerCell`' />
- </set>
- <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
- <parameter name="file" value="/opt/opendaylight/current/data/log/instantiateRANSlice.log" />
- <parameter name="level" value="info" />
- <parameter name="field1" value="rRMPolicyDedicatedRatio for CellDU "/>
- <parameter name="field2" value="`$tmp.rRMPolicyDedicatedRatio.CellDU`"/>
- <parameter name="field3" value="tmp.nearRTRIC.trafficCapacity1 "/>
- <parameter name="field4" value="`$tmp.nearRTRIC.trafficCapacity1`"/>
- <parameter name="field5" value="tmp.nearRTRIC.trafficCapacity "/>
- <parameter name="field6" value="`$tmp.nearRTRIC.trafficCapacity`"/>
- <parameter name="field7" value="tmp.nearRTRIC.trafficCapacityBPS"/>
- <parameter name="field8" value="`$tmp.nearRTRIC.trafficCapacityBPS`"/>
- <parameter name="field9" value="tmp.nrcelldu.totalPRBForSNSSAI "/>
- <parameter name="field10" value="`$tmp.nrcelldu.totalPRBForSNSSAI`"/>
- <parameter name="field11" value="tmp.nrcelldu.PRBPerImpactedCell "/>
- <parameter name="field12" value="`$tmp.nrcelldu.PRBPerImpactedCell`"/>
- <parameter name="field13" value="tmp.rRMPolicyDedicatedRatio.CellDU1 "/>
- <parameter name="field14" value="`$tmp.rRMPolicyDedicatedRatio.CellDU1`"/>
- </record>
- </block>
- <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.RRMPolicyRatioEntry.ToGNBDU`"/>
- <parameter name="outputPath" value="tmp.getRRMPolicyRatio-gNBDU.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.RRMPolicyRatioEntry.ToGNBDU.ransim-mounted`"/>
- <parameter name="outputPath" value="tmp.getRRMPolicyRatio-gNBDU.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.getRRMPolicyRatio-gNBDU.url`"/>
- <parameter name="outputPath" value="tmp.getRRMPolicyRatio-gNBDU.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.getRRMPolicyRatio-gNBDU.url`"/>
- <parameter name="outputPath" value="tmp.getRRMPolicyRatio-gNBDU.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.getRRMPolicyRatio-gNBDU.url`"/>
- <parameter name="outputPath" value="tmp.getRRMPolicyRatio-gNBDU.url"/>
- <parameter name="target" value="{idNRCellDU}"/>
- <parameter name="replacement" value="`$tmp.cellDULocalId`"/>
- </execute>
- <execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >
- <parameter name="restapiUrl" value="`$prop.controller.url + $tmp.getRRMPolicyRatio-gNBDU.url`"/>
- <parameter name="restapiUser" value="`$prop.controller.user`" />
- <parameter name="restapiPassword" value="`$prop.controller.pwd`"/>
- <parameter name="httpMethod" value="GET"/>
- <parameter name="responsePrefix" value="get-rrmpolicyratio-du-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 atomic='true'>
- <block atomic='true'>
- <set>
- <parameter name="tmp.so.callbackURL" value="`$payloadJson.input.callbackURL`"/>
- <parameter name="tmp.status" value="success"/>
- <parameter name="tmp.reason" value="`$error-message`"/>
- <parameter name="tmp.requestID" value="`$terminate-r-a-n-slice-input.common-header.request-id `"/>
- <parameter name="tmp.action" value="`$terminate-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="`$payloadJson.input.callbackURL`"/>
- <parameter name="httpMethod" value="POST"/>
- <parameter name="responsePrefix" value="so-callback-terminate-response"/>
- <parameter name='contentType' value='application/json' />
- <parameter name='format' value='json' />
- <parameter name='accept' value='*/*' />
- <parameter name="convertResponse" value="true"/>
- <parameter name="restapiUser" value="`$prop.restapi.so.user`" />
- <parameter name="restapiPassword" value="`$prop.restapi.so.password`"/>
- <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/terminateRANSlice.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 in retrieving RRMPolicyRatio. 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 in Fetching RRMPolicyRatio - CellDU. 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/instantiateRANSliceModifyAllocate.log" />
- <parameter name="level" value="info" />
- <parameter name="field1" value="Successfully Retrieved - RRMPolicyRatio"/>
- </record>
- <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='printContext' >
- <parameter name='filename' value='/opt/opendaylight/current/data/log/ranSlice-instantiateRANSlice-configrsp-context.log' />
- </execute>
- </block>
- </outcome>
- </execute>
- <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'>
- <parameter name='outputPath' value='tmp.rrmPolicyRatioDUList_length' />
- <parameter name='source' value="`'get-rrmpolicyratio-du-response.attributes.RRMPolicyRatio_length'`" />
- </execute>
- <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
- <parameter name="file" value="/opt/opendaylight/current/data/log/terminateRANSlice.log" />
- <parameter name="level" value="info" />
- <parameter name="field1" value="RRMPolicyRatioList size"/>
- <parameter name="field2" value="`$tmp.rrmPolicyRatioDUList_length`"/>
- </record>
- <for index='iddu-rrm' start='0' end='`$tmp.rrmPolicyRatioDUList_length`' >
- <block atomic='true'>
- <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'>
- <parameter name='outputPath' value='tmp.cellDURRMPolicyRatio_id' />
- <parameter name='source' value="`'get-rrmpolicyratio-du-response.attributes.RRMPolicyRatio['+ $iddu-rrm+'].id'`" />
- </execute>
- <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'>
- <parameter name='outputPath' value='tmp.DURRMPolicyMembersLength' />
- <parameter name='source' value="`'get-rrmpolicyratio-du-response.attributes.RRMPolicyRatio['+ $iddu-rrm+'].attributes.rRMPolicyMemberList_length'`" />
- </execute>
- <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
- <parameter name="file" value="/opt/opendaylight/current/data/log/terminateRANSlice.log" />
- <parameter name="level" value="info" />
- <parameter name="field1" value="RRMPOLICYmemberslength"/>
- <parameter name="field2" value="`$tmp.DURRMPolicyMembersLength`"/>
- </record>
- <for index='iddu-rrm2' start='0' end='`$tmp.DURRMPolicyMembersLength`' >
- <block atomic='true'>
- <switch test='`$tmp.DURRMPolicyMembersLength > 0`'>
- <outcome value='true'>
- <block atomic='true'>
- <switch test='`$prop.ransim-mounted`'>
- <outcome value='false'>
- <block atomic='true'>
- <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >
- <parameter name="source" value="`$prop.restapi.removeRRMPolicyRatio.ToNRCellDU`"/>
- <parameter name="outputPath" value="tmp.deleteRRMPolicyRatio-DU.url"/>
- <parameter name="target" value="{idNearRTRIC}"/>
- <parameter name="replacement" value="`$tmp.nearRTRICId`"/>
- </execute>
- </block>
- </outcome>
- <outcome value='true'>
- <block atomic='true'>
- <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >
- <parameter name="source" value="`$prop.restapi.removeRRMPolicyRatio.ToNRCellDU.ransim-mounted`"/>
- <parameter name="outputPath" value="tmp.deleteRRMPolicyRatio-DU.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.deleteRRMPolicyRatio-DU.url`"/>
- <parameter name="outputPath" value="tmp.deleteRRMPolicyRatio-DU.url"/>
- <parameter name="target" value="{mountName}"/>
- <parameter name="replacement" value="`$tmp.GNBDUId`"/>
- </execute>
- </block>
- </outcome>
- </switch>
- </block>
- </outcome>
- <outcome value='false'>
- <block atomic='true'>
- <set>
- <parameter name='tmp.cellDURRMPolicyMember_sNSSAI' value="`'$get-rrmpolicyratio-du-response.attributes.RRMPolicyRatio['+ $iddu-rrm+'].attributes.rRMPolicyMemberList['+ $iddu-rrm2 +'].sNSSAI'`" />
- </set>
- <switch test='`$tmp.cellDURRMPolicyMember_sNSSAI==$tmp.sNSSAI`'>
- <outcome value='success'>
- <block atomic='true'>
- <set>
- <parameter name='tmp.CellDURRMPolicyMember_id' value="`'$get-rrmpolicyratio-du-response.attributes.RRMPolicyRatio['+ $iddu-rrm+'].attributes.rRMPolicyMemberList['+ $iddu-rrm2 +'].idx'`" />
- </set>
- <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
- <parameter name="file" value="/opt/opendaylight/current/data/log/terminateRANSlice.log" />
- <parameter name="level" value="info" />
- <parameter name="field1" value="RRMPolicyMember id - "/>
- <parameter name="field2" value="`$tmp.CellDURRMPolicyMember_id`"/>
- </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.removeRRMPolicyMember.ToNRCellDU`"/>
- <parameter name="outputPath" value="tmp.deleteRRMPolicyRatio-DU.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.removeRRMPolicyMember.ToNRCellDU.ransim-mounted`"/>
- <parameter name="outputPath" value="tmp.deleteRRMPolicyRatio-DU.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.deleteRRMPolicyRatio-DU.url`"/>
- <parameter name="outputPath" value="tmp.deleteRRMPolicyRatio-DU.url"/>
- <parameter name="target" value="{mountName}"/>
- <parameter name="replacement" value="`$tmp.GNBDUId`"/>
- </execute>
- </block>
- </outcome>
- </switch>
- </block>
- </outcome>
- </switch>
- </block>
- </outcome>
- </switch>
- <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >
- <parameter name="source" value="`$tmp.deleteRRMPolicyRatio-DU.url`"/>
- <parameter name="outputPath" value="tmp.deleteRRMPolicyRatio-DU.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.deleteRRMPolicyRatio-DU.url`"/>
- <parameter name="outputPath" value="tmp.deleteRRMPolicyRatio-DU.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.deleteRRMPolicyRatio-DU.url`"/>
- <parameter name="outputPath" value="tmp.deleteRRMPolicyRatio-DU.url"/>
- <parameter name="target" value="{id}"/>
- <parameter name="replacement" value="`$tmp.cellDURRMPolicyRatio_id`"/>
- </execute>
- <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >
- <parameter name="source" value="`$tmp.deleteRRMPolicyRatio-DU.url`"/>
- <parameter name="outputPath" value="tmp.deleteRRMPolicyRatio-DU.url"/>
- <parameter name="target" value="{idx}"/>
- <parameter name="replacement" value="`$tmp.cellDURRMPolicyMember_sNSSAI`"/>
- </execute>
- </block>
- </for>
- <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
- <parameter name="file" value="/opt/opendaylight/current/data/log/terminateRANSlice.log" />
- <parameter name="level" value="info" />
- <parameter name="field1" value="Delete RRMPolicy URL - "/>
- <parameter name="field2" value="`$tmp.deleteRRMPolicyRatio-DU.url`"/>
- <parameter name="field3" value="RRMPolicyRatio id"/>
- <parameter name="field4" value="`$tmp.cellDURRMPolicyRatio_id`"/>
- </record>
- <execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >
- <parameter name="restapiUrl" value="`$prop.controller.url + $tmp.deleteRRMPolicyRatio-DU.url`"/>
- <parameter name="restapiUser" value="`$prop.controller.user`" />
- <parameter name="restapiPassword" value="`$prop.controller.pwd`"/>
- <parameter name="httpMethod" value="DELETE"/>
- <parameter name="responsePrefix" value="delete-cellDU-RRMPolicyRatio-response"/>
- <parameter name='contentType' value='application/json' />
- <parameter name='format' value='json' />
- <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/terminateRANSlice.log" />
- <parameter name="level" value="info" />
- <parameter name="field1" value="Successfully removed - cellDU RRMpolicyRatio"/>
- </record>
- </block>
- </outcome>
- <outcome value='failure'>
- <block atomic='true'>
- <block atomic='true'>
- <set>
- <parameter name="tmp.so.callbackURL" value="`$payloadJson.input.callbackURL`"/>
- <parameter name="tmp.status" value="success"/>
- <parameter name="tmp.reason" value="`$error-message`"/>
- <parameter name="tmp.requestID" value="`$terminate-r-a-n-slice-input.common-header.request-id `"/>
- <parameter name="tmp.action" value="`$terminate-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="`$payloadJson.input.callbackURL`"/>
- <parameter name="httpMethod" value="POST"/>
- <parameter name="responsePrefix" value="so-callback-terminate-response"/>
- <parameter name='contentType' value='application/json' />
- <parameter name='format' value='json' />
- <parameter name='accept' value='*/*' />
- <parameter name="convertResponse" value="true"/>
- <parameter name="restapiUser" value="`$prop.restapi.so.user`" />
- <parameter name="restapiPassword" value="`$prop.restapi.so.password`"/>
- <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/terminateRANSlice.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 removing cellDU RRMPolicyRatio. 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 removing RRMPolicyRatio for NRCellDU. Aborting RPC executiopn'/>
- </return>
- </block>
- </outcome>
- </execute>
- <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'>
- <parameter name='outputPath' value='tmp.DURRMPolicyMembersResourceType' />
- <parameter name='source' value="`'get-rrmpolicyratio-du-response.attributes.RRMPolicyRatio['+ $iddu-rrm+'].attributes.resourceType'`" />
- </execute>
- <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >
- <parameter name="source" value="`$prop.restapi.configdb.removenSSAICUUPRRMPOLICY`"/>
- <parameter name="outputPath" value="tmp.deleteRRMPolicy-CUUP.configdb.url"/>
- <parameter name="target" value="{gnbCUUPId}"/>
- <parameter name="replacement" value="`$tmp.cellDULocalId`"/>
- </execute>
- <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >
- <parameter name="source" value="`$tmp.deleteRRMPolicy-CUUP.configdb.url`"/>
- <parameter name="outputPath" value="tmp.deleteRRMPolicy-CUUP.configdb.url"/>
- <parameter name="target" value="{resourcetype}"/>
- <parameter name="replacement" value="`$tmp.DURRMPolicyMembersResourceType`"/>
- </execute>
- <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >
- <parameter name="source" value="`$tmp.deleteRRMPolicy-CUUP.configdb.url`"/>
- <parameter name="outputPath" value="tmp.deleteRRMPolicy-CUUP.configdb.url"/>
- <parameter name="target" value="{sNSSAI}"/>
- <parameter name="replacement" value="`$tmp.sNSSAI`"/>
- </execute>
- <execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >
- <parameter name="restapiUrl" value="`$prop.configdb.url + $tmp.deleteRRMPolicy-CUUP.configdb.url`"/>
- <parameter name="httpMethod" value="DELETE"/>
- <parameter name="responsePrefix" value="delete-DU-rrmpolicy-configdb-response"/>
- <parameter name='contentType' value='application/json' />
- <parameter name='format' value='json' />
- <parameter name='accept' value='application/json' />
- <parameter name="convertResponse" value="true"/>
- <outcome value='failure'>
- <block atomic='true'></block>
- </outcome>
- <outcome value='success'>
- <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
- <parameter name="file" value="/opt/opendaylight/current/data/log/terminateRANSlice.log" />
- <parameter name="level" value="info" />
- <parameter name="field1" value="Successfully removed - gNBDU rrmpolicy Entry from configdb"/>
- </record>
- </outcome>
- </execute>
- </block>
- </for>
- </block>
- </block>
- </outcome>
- </switch>
- </block>
- </for>
- </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/terminateRANSlice.log" />
- <parameter name="level" value="info" />
- <parameter name="field1" value="plmninfolistnssailength in false in DU "/>
- <parameter name="field2" value="`$tmp.sNssaiListLengthDU`"/>
- </record>
- </block>
- </outcome>
- </switch>
- </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="success"/>
- <parameter name="tmp.reason" value="`$error-message`"/>
- <parameter name="tmp.requestID" value="`$terminate-r-a-n-slice-input.common-header.request-id `"/>
- <parameter name="tmp.action" value="`$tmp.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-termi-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/terminateRANSlice.log" />
- <parameter name="level" value="info" />
- <parameter name="field1" value="SO Response Sent "/>
- </record>
- </block>
- </outcome>
- </execute>
- </block>
+ <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='terminateRANSliceInstance-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='terminateRANSliceInstance-cps' mode='sync' ></call>
+ </block>
+ </outcome>
+ </switch>
</block>
</method>
</service-logic> \ No newline at end of file