summaryrefslogtreecommitdiffstats
path: root/platform-logic
diff options
context:
space:
mode:
authorHariharan <hariharan.38@wipro.com>2021-08-05 11:54:57 +0530
committerHariharan <rh20085046@wipro.com>2021-08-05 12:01:43 +0530
commit7cd7fe946ae07d21a3daf57a5f2868f4b4b2e7fc (patch)
treeb4c49bc4b2d72df0001c2bd84b4b5029df389f0f /platform-logic
parenta6e92d163cc81a268771cc5da4952a9aefc8c4e3 (diff)
RAN Slice - Termination testing
Issue-ID: CCSDK-3393 Change-Id: I6b99330eb7869fbca6c840fc994fb12131f3420a Signed-off-by: Hariharan <rh20085046@wipro.com>
Diffstat (limited to 'platform-logic')
-rw-r--r--platform-logic/ran-slice-api/src/main/json/ran-slice-api_terminateRANSliceInstance.json8065
-rw-r--r--platform-logic/ran-slice-api/src/main/xml/ran-slice-api_terminateRANSliceInstance.xml4090
2 files changed, 6754 insertions, 5401 deletions
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 db2c3c0f..e20a83d0 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,20 +1,20 @@
[
{
- "id": "13b54916.0b6007",
+ "id": "62502bcc.66f714",
"type": "dgstart",
"name": "DGSTART",
"outputs": 1,
- "x": 256.3888854980469,
- "y": 149.16665887832642,
- "z": "5d875c6b.4b4c54",
+ "x": 159,
+ "y": 51,
+ "z": "681fe365.17b79c",
"wires": [
[
- "1c8660a6.4c1f1f"
+ "572064bb.8831ec"
]
]
},
{
- "id": "1c8660a6.4c1f1f",
+ "id": "572064bb.8831ec",
"type": "service-logic",
"name": "ran-slice-api ${project.version}",
"module": "ran-slice-api",
@@ -22,7306 +22,8665 @@
"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": 311.38890838623047,
- "y": 236.16662740707397,
- "z": "5d875c6b.4b4c54",
+ "x": 214.0000228881836,
+ "y": 137.99996852874756,
+ "z": "681fe365.17b79c",
"wires": [
[
- "fe73b1e2.82cbe"
+ "4b7ee4fc.d1e35c"
]
]
},
{
- "id": "fe73b1e2.82cbe",
+ "id": "4b7ee4fc.d1e35c",
"type": "method",
"name": "method",
"xml": "<method rpc='terminateRANSliceInstance' mode='sync'>\n",
"comments": "",
"outputs": 1,
- "x": 245.38888549804688,
- "y": 296.1665930747986,
- "z": "5d875c6b.4b4c54",
+ "x": 148,
+ "y": 197.99993419647217,
+ "z": "681fe365.17b79c",
"wires": [
[
- "2c945b9d.9762d4"
+ "1dd439.8696abc7"
]
]
},
{
- "id": "2c945b9d.9762d4",
+ "id": "1dd439.8696abc7",
"type": "block",
"name": "block : atomic",
"xml": "<block atomic='true'>",
"atomic": "true",
"comments": "",
"outputs": 1,
- "x": 251.38887786865234,
- "y": 390.9166235923767,
- "z": "5d875c6b.4b4c54",
+ "x": 153.99999237060547,
+ "y": 292.7499647140503,
+ "z": "681fe365.17b79c",
"wires": [
[
- "15a06d8f.7a3ca2",
- "ca819b40.18b7a8",
- "4f957f97.ee3ed",
- "fa5127b8.c6a188"
+ "a13999d5.13dfa8",
+ "9afe8a2f.2c9ce8",
+ "cf25ee61.62168",
+ "4b4f8ae1.4d04f4"
]
]
},
{
- "id": "15a06d8f.7a3ca2",
+ "id": "a13999d5.13dfa8",
"type": "block",
"name": "block : atomic",
"xml": "<block atomic='true'>",
"atomic": "true",
"comments": "",
"outputs": 1,
- "x": 465.3888816833496,
- "y": 414.16665601730347,
- "z": "5d875c6b.4b4c54",
+ "x": 367.99999618530273,
+ "y": 315.99999713897705,
+ "z": "681fe365.17b79c",
"wires": [
[
- "8a4d1167.682ac",
- "28a2cb6f.774dd4",
- "c2420cc1.98cd5",
- "7fa621ae.c91f3",
- "b7f191d.9954e7",
- "485b1e79.bbde2",
- "30294ae6.eaaeb6",
- "941bdbd9.3f4b08",
- "7597a7a3.d53198",
- "9cee919c.bea0b",
- "ba93432d.8ae6f",
- "b2d5bb29.9e1f58",
- "f014e0f.8062b2",
- "35f03911.133576",
- "92345751.f84618",
- "926f95e.bc62b68"
+ "28056d13.1adb12",
+ "5657f5bf.8033dc",
+ "33f9c89c.22e448",
+ "1de52104.ed19af",
+ "9122bb4.b278948",
+ "29a4c2d.d7ff73e",
+ "598df4a4.b19ffc",
+ "3a4a34c3.80f96c",
+ "55ae2ce.34cb9d4",
+ "4e6886e3.a23638",
+ "48fde408.564d5c",
+ "47449884.5cadd8",
+ "477a6692.3ec148",
+ "9e3e6385.08739",
+ "f9a1e52.1e42318",
+ "5d7613c4.1e14ec"
]
]
},
{
- "id": "8a4d1167.682ac",
+ "id": "28056d13.1adb12",
"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": 849.6388854980469,
- "y": 557.4166660308838,
- "z": "5d875c6b.4b4c54",
+ "x": 752.25,
+ "y": 459.2500071525574,
+ "z": "681fe365.17b79c",
"wires": [
[]
]
},
{
- "id": "28a2cb6f.774dd4",
+ "id": "5657f5bf.8033dc",
"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": 789.6389007568359,
- "y": 608.4166851043701,
- "z": "5d875c6b.4b4c54",
+ "x": 692.2500152587891,
+ "y": 510.2500262260437,
+ "z": "681fe365.17b79c",
"wires": [
[]
]
},
{
- "id": "c2420cc1.98cd5",
+ "id": "33f9c89c.22e448",
"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": 779.6389770507812,
- "y": 660.4167156219482,
- "z": "5d875c6b.4b4c54",
+ "x": 682.2500915527344,
+ "y": 562.2500567436218,
+ "z": "681fe365.17b79c",
"wires": [
[
- "43cb7753.13bff8",
- "84692e0e.f962a"
+ "afa2e394.6a35f",
+ "8146c8e6.857c38"
]
]
},
{
- "id": "43cb7753.13bff8",
+ "id": "afa2e394.6a35f",
"type": "success",
"name": "success",
"xml": "<outcome value='success'>\n",
"comments": "",
"outputs": 1,
- "x": 1078.4569816589355,
- "y": 678.2347393035889,
- "z": "5d875c6b.4b4c54",
+ "x": 981.0680961608887,
+ "y": 580.0680804252625,
+ "z": "681fe365.17b79c",
"wires": [
[
- "bfa2467c.975828"
+ "b3857860.08b528"
]
]
},
{
- "id": "bfa2467c.975828",
+ "id": "b3857860.08b528",
"type": "block",
"name": "block : atomic",
"xml": "<block atomic='true'>",
"atomic": "true",
"comments": "",
"outputs": 1,
- "x": 1248.4568786621094,
- "y": 679.2348546981812,
- "z": "5d875c6b.4b4c54",
+ "x": 1151.0679931640625,
+ "y": 581.0681958198547,
+ "z": "681fe365.17b79c",
"wires": [
[
- "ebf3b22f.4a068",
- "68a4387a.832838"
+ "6c3736e0.b50ee8",
+ "9e72e683.e31d08"
]
]
},
{
- "id": "ebf3b22f.4a068",
+ "id": "6c3736e0.b50ee8",
"type": "record",
"name": "record",
"xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.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": 1471.4566764831543,
- "y": 624.2348384857178,
- "z": "5d875c6b.4b4c54",
+ "x": 1380.0677604675293,
+ "y": 481.0681757926941,
+ "z": "681fe365.17b79c",
"wires": [
[]
]
},
{
- "id": "68a4387a.832838",
+ "id": "9e72e683.e31d08",
"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": 1467.2348175048828,
- "y": 695.2348461151123,
- "z": "5d875c6b.4b4c54",
+ "x": 1384.8459777832031,
+ "y": 521.0681977272034,
+ "z": "681fe365.17b79c",
"wires": [
[]
]
},
{
- "id": "84692e0e.f962a",
+ "id": "8146c8e6.857c38",
"type": "failure",
"name": "failure",
"xml": "<outcome value='failure'>\n",
"comments": "",
"outputs": 1,
- "x": 1084.4569358825684,
- "y": 618.2348232269287,
- "z": "5d875c6b.4b4c54",
+ "x": 987.0680503845215,
+ "y": 520.0681643486023,
+ "z": "681fe365.17b79c",
"wires": [
[
- "ee193480.ded158"
+ "b902a94c.b40e78"
]
]
},
{
- "id": "ee193480.ded158",
+ "id": "b902a94c.b40e78",
"type": "block",
"name": "block",
"xml": "<block>",
"atomic": "false",
"comments": "",
"outputs": 1,
- "x": 1364.4570121765137,
- "y": 524.2348771095276,
- "z": "5d875c6b.4b4c54",
+ "x": 1267.0681266784668,
+ "y": 426.0682182312012,
+ "z": "681fe365.17b79c",
"wires": [
[
- "bb69198d.0fefb8",
- "64e216ec.bfca58"
+ "349fa81a.830bc8",
+ "ad094b5c.97bfa8"
]
]
},
{
- "id": "bb69198d.0fefb8",
+ "id": "349fa81a.830bc8",
"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": 1542.4567985534668,
- "y": 478.3459038734436,
- "z": "5d875c6b.4b4c54",
+ "x": 1445.06791305542,
+ "y": 380.1792449951172,
+ "z": "681fe365.17b79c",
"wires": []
},
{
- "id": "ca819b40.18b7a8",
+ "id": "9afe8a2f.2c9ce8",
"type": "for",
"name": "foreach NearRTRIC",
"xml": "<for index='idy' start='0' end='`$getNFNSSIRIC-configdb-response._length`' >\n",
"comments": "",
"outputs": 1,
- "x": 446.6388854980469,
- "y": 1001.2348384857178,
- "z": "5d875c6b.4b4c54",
+ "x": 349.25,
+ "y": 903.0681796073914,
+ "z": "681fe365.17b79c",
"wires": [
[
- "25b3a4a9.908a0c",
- "a80c0ed6.0f83f",
- "221fc1b6.a4a77e",
- "1faf1601.2669fa"
+ "b10a743f.24f7b8",
+ "4a8f6a0e.6c7b64",
+ "b79aca29.8b4fd8",
+ "20b1cd7e.4eef42"
]
]
},
{
- "id": "25b3a4a9.908a0c",
+ "id": "b10a743f.24f7b8",
"type": "block",
"name": "Process NearRTRIC",
"xml": "<block atomic='true'>",
"atomic": "true",
"comments": "",
"outputs": 1,
- "x": 766.9924468994141,
- "y": 1139.8106327056885,
- "z": "5d875c6b.4b4c54",
+ "x": 669.6035614013672,
+ "y": 1041.643973827362,
+ "z": "681fe365.17b79c",
"wires": [
[
- "79a53f2d.b5491",
- "88535fa9.03811",
- "3b91f995.943196",
- "d38ca491.690178",
- "8318ccb3.e2df6",
- "2c07f0f9.fb597",
- "8045c217.a14b",
- "58a66c79.4d6444",
- "a0ff73b.d53929"
+ "1c4b1870.639c38",
+ "2df95230.31a61e",
+ "29762dac.dd5972"
]
]
},
{
- "id": "79a53f2d.b5491",
+ "id": "1c4b1870.639c38",
"type": "execute",
- "name": "read nearRTRICId",
- "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'>\n\t<parameter name='outputPath' value='tmp.nearRTRICId' />\n\t<parameter name='source' value=\"`'getNFNSSIRIC-configdb-response.['+ $idy +'].nearRTRICId'`\" />\n",
+ "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": 1162.1844100952148,
- "y": 792.143964767456,
- "z": "5d875c6b.4b4c54",
+ "x": 1039.795555114746,
+ "y": 621.9773616790771,
+ "z": "681fe365.17b79c",
"wires": [
[]
]
},
{
- "id": "88535fa9.03811",
+ "id": "cf13d6c4.d6c488",
"type": "execute",
- "name": "read gNBId",
- "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'>\n\t<parameter name='outputPath' value='tmp.gNBId' />\n\t<parameter name='source' value=\"`'getNFNSSIRIC-configdb-response.[' + $idy + '].gNBId'`\" />",
+ "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": 1132.1843795776367,
- "y": 984.1440277099609,
- "z": "5d875c6b.4b4c54",
+ "x": 1796.7960052490234,
+ "y": 791.9775466918945,
+ "z": "681fe365.17b79c",
"wires": [
[]
]
},
{
- "id": "3b91f995.943196",
+ "id": "61730f64.f5dd9",
"type": "execute",
"name": "Update nearRT RIC Details in ConfigDB",
- "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"restapiUrl\" value=\"`$prop.configdb.url + $prop.restapi.configdb.updatenearRTRIC`\"/>\n<parameter name=\"templateFileName\" value=\"`$prop.restapi.templateDir + '/ranSlice-configDB-removenearRTRIC-PLMNInfo.json'`\" />\n<parameter name=\"httpMethod\" value=\"PUT\"/>\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\"/>",
+ "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": 1237.901512145996,
- "y": 1179.6490125656128,
- "z": "5d875c6b.4b4c54",
+ "x": 1557.5128631591797,
+ "y": 974.4823522567749,
+ "z": "681fe365.17b79c",
"wires": [
[
- "40b8bfe7.b3c7a",
- "69fb9607.8ef588"
+ "303c493d.895316",
+ "79aca7eb.88b728"
]
]
},
{
- "id": "40b8bfe7.b3c7a",
+ "id": "303c493d.895316",
"type": "failure",
"name": "failure",
"xml": "<outcome value='failure'>\n",
"comments": "",
"outputs": 1,
- "x": 1605.4570007324219,
- "y": 1220.6893062591553,
- "z": "5d875c6b.4b4c54",
+ "x": 1778.0682220458984,
+ "y": 927.52272605896,
+ "z": "681fe365.17b79c",
"wires": [
[
- "55ac305d.b4eb2"
+ "23dc74e6.0257ac"
]
]
},
{
- "id": "55ac305d.b4eb2",
+ "id": "23dc74e6.0257ac",
"type": "block",
- "name": "block",
- "xml": "<block>",
- "atomic": "false",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
"comments": "",
"outputs": 1,
- "x": 1737.4571228027344,
- "y": 1182.6893062591553,
- "z": "5d875c6b.4b4c54",
+ "x": 1914.0682830810547,
+ "y": 889.5226955413818,
+ "z": "681fe365.17b79c",
"wires": [
[
- "bd9d9a7e.99b7f8",
- "d71a4184.466f"
+ "3e603f60.a577f",
+ "b24def43.a968d"
]
]
},
{
- "id": "d71a4184.466f",
+ "id": "b24def43.a968d",
"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": 1926.4568786621094,
- "y": 1129.800329208374,
- "z": "5d875c6b.4b4c54",
+ "x": 2063.067974090576,
+ "y": 852.6336736679077,
+ "z": "681fe365.17b79c",
"wires": []
},
{
- "id": "bd9d9a7e.99b7f8",
+ "id": "3e603f60.a577f",
"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": 1934.4568786621094,
- "y": 1229.6893672943115,
- "z": "5d875c6b.4b4c54",
+ "x": 2077.0679779052734,
+ "y": 927.5227422714233,
+ "z": "681fe365.17b79c",
"wires": []
},
{
- "id": "69fb9607.8ef588",
+ "id": "79aca7eb.88b728",
"type": "success",
"name": "success",
"xml": "<outcome value='success'>\n",
"comments": "",
"outputs": 1,
- "x": 1603.2751159667969,
- "y": 1320.598424911499,
- "z": "5d875c6b.4b4c54",
+ "x": 1758.8863067626953,
+ "y": 1041.4317893981934,
+ "z": "681fe365.17b79c",
"wires": [
[
- "8c6b92b0.8f7e3"
+ "fc776177.7b3d1"
]
]
},
{
- "id": "8c6b92b0.8f7e3",
+ "id": "fc776177.7b3d1",
"type": "block",
- "name": "block",
- "xml": "<block>\n",
- "atomic": "false",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
"comments": "",
"outputs": 1,
- "x": 1767.2749938964844,
- "y": 1321.5985469818115,
- "z": "5d875c6b.4b4c54",
+ "x": 1908.886215209961,
+ "y": 1056.431926727295,
+ "z": "681fe365.17b79c",
"wires": [
[
- "60c71f0b.4e0b8"
+ "8a18101f.fd109"
]
]
},
{
- "id": "60c71f0b.4e0b8",
+ "id": "8a18101f.fd109",
"type": "record",
"name": "record",
- "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.FileRecorder\">\n<parameter name=\"file\" value=\"/opt/opendaylight/current/data/log/instantiateRANSlice.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"Successfully Updated NearRT RIC info in ConfigDB\"/>",
+ "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.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": 1917.2749938964844,
- "y": 1316.598669052124,
- "z": "5d875c6b.4b4c54",
+ "x": 2055.8861541748047,
+ "y": 1084.4320030212402,
+ "z": "681fe365.17b79c",
"wires": [
[]
]
},
{
- "id": "a210b89d.d67618",
+ "id": "c64cd960.80d958",
"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": 1120.6388854980469,
- "y": 1364.4166622161865,
- "z": "5d875c6b.4b4c54",
+ "x": 1023.25,
+ "y": 1266.25000333786,
+ "z": "681fe365.17b79c",
"wires": [
[]
]
},
{
- "id": "a80c0ed6.0f83f",
+ "id": "4a8f6a0e.6c7b64",
"type": "block",
"name": "Process CUCP",
"xml": "<block atomic='true'>",
"atomic": "true",
"comments": "",
"outputs": 1,
- "x": 747.6389083862305,
- "y": 1277.4167156219482,
- "z": "5d875c6b.4b4c54",
+ "x": 650.2500228881836,
+ "y": 1179.2500567436218,
+ "z": "681fe365.17b79c",
"wires": [
[
- "a210b89d.d67618",
- "77fae2fc.54a83c",
- "c78a7431.326578"
+ "c64cd960.80d958",
+ "4c608981.fa98a8",
+ "12fdf229.11278e"
]
]
},
{
- "id": "77fae2fc.54a83c",
+ "id": "4c608981.fa98a8",
"type": "record",
"name": "record",
"xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.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": 1092.6388854980469,
- "y": 1429.4166622161865,
- "z": "5d875c6b.4b4c54",
+ "x": 995.25,
+ "y": 1331.25000333786,
+ "z": "681fe365.17b79c",
"wires": [
[]
]
},
{
- "id": "c78a7431.326578",
+ "id": "12fdf229.11278e",
"type": "for",
"name": "foreach CUCP",
"xml": "<for index='idz' start='0' end='`$tmp.CUCPList_length`'>\n",
"comments": "",
"outputs": 1,
- "x": 1120.6388854980469,
- "y": 1504.4166622161865,
- "z": "5d875c6b.4b4c54",
+ "x": 1023.25,
+ "y": 1406.25000333786,
+ "z": "681fe365.17b79c",
"wires": [
[
- "f3835687.f3ad28"
+ "4cb7fc25.089984"
]
]
},
{
- "id": "f3835687.f3ad28",
+ "id": "4cb7fc25.089984",
"type": "block",
"name": "block : process CUCP",
"xml": "<block atomic='true'>",
"atomic": "true",
"comments": "",
"outputs": 1,
- "x": 1341.6388854980469,
- "y": 1511.4166622161865,
- "z": "5d875c6b.4b4c54",
+ "x": 1244.25,
+ "y": 1413.25000333786,
+ "z": "681fe365.17b79c",
"wires": [
[
- "293ade3b.3e9282",
- "d33f3a13.3a80b8",
- "55636713.753228",
- "ac92bba5.c8a268"
+ "4b242a2b.90f1f4",
+ "1166c62e.d8c12a",
+ "8fdca167.05448",
+ "b2f34792.7f01a8"
]
]
},
{
- "id": "293ade3b.3e9282",
+ "id": "4b242a2b.90f1f4",
"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": 1692.6388854980469,
- "y": 1364.4166622161865,
- "z": "5d875c6b.4b4c54",
+ "x": 1552.2500762939453,
+ "y": 1253.8499941825867,
+ "z": "681fe365.17b79c",
"wires": [
[]
]
},
{
- "id": "d33f3a13.3a80b8",
+ "id": "1166c62e.d8c12a",
"type": "for",
"name": "for cellCUList",
"xml": "<for index='idcu' start='0' end='`$tmp.cellCUList_length`' >\n",
"comments": "",
"outputs": 1,
- "x": 1696.6388854980469,
- "y": 1508.4166622161865,
- "z": "5d875c6b.4b4c54",
+ "x": 1599.25,
+ "y": 1410.25000333786,
+ "z": "681fe365.17b79c",
"wires": [
[
- "80ff59e2.0c6828"
+ "60331864.c5e1a8"
]
]
},
{
- "id": "9f3dc0ca.d175e",
+ "id": "9c11898d.0a7fc8",
"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": 2433.1391525268555,
- "y": 1227.1666660308838,
- "z": "5d875c6b.4b4c54",
+ "x": 2311.750274658203,
+ "y": 1019.0000162124634,
+ "z": "681fe365.17b79c",
"wires": [
[]
]
},
{
- "id": "d25fdd3c.e7a3a",
+ "id": "99a6ac2a.09a37",
"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": 2411.888999938965,
- "y": 1473.6666107177734,
- "z": "5d875c6b.4b4c54",
+ "x": 2311.50008392334,
+ "y": 1259.500020980835,
+ "z": "681fe365.17b79c",
"wires": [
[]
]
},
{
- "id": "4429c413.53d4fc",
+ "id": "a9ca0959.5091f8",
"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": 2379.6389923095703,
- "y": 1661.4166355133057,
- "z": "5d875c6b.4b4c54",
+ "x": 2266.2500762939453,
+ "y": 1403.2499732971191,
+ "z": "681fe365.17b79c",
"wires": [
[
- "46115720.68ee88",
- "8c0b5b7f.7bdf08"
+ "b1b19a45.9c2198",
+ "d9b2ac55.976ce"
]
]
},
{
- "id": "5d11528.48bd2ac",
+ "id": "37c8ac10.105a14",
"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": 2379.638885498047,
- "y": 1595.916675567627,
- "z": "5d875c6b.4b4c54",
+ "x": 2315.25008392334,
+ "y": 1351.749972820282,
+ "z": "681fe365.17b79c",
"wires": [
[]
]
},
{
- "id": "cc17591c.133a48",
+ "id": "a4df9676.1618b8",
"type": "block",
"name": "block : atomic",
"xml": "<block atomic='true'>",
"atomic": "true",
"comments": "",
"outputs": 1,
- "x": 2210.638885498047,
- "y": 1115.4166622161865,
- "z": "5d875c6b.4b4c54",
+ "x": 2113.25,
+ "y": 1017.2500033378601,
+ "z": "681fe365.17b79c",
"wires": [
[
- "9f3dc0ca.d175e",
- "d25fdd3c.e7a3a",
- "5d11528.48bd2ac",
- "4429c413.53d4fc",
- "4ff52e11.4c359",
- "f74d3af1.4779d8",
- "2b4b7928.bb17c6",
- "d6873e5f.16b53",
- "53ee972c.bda038",
- "f200b6d5.a81168",
- "24ec030e.cd504c",
- "1063593f.f773f7",
- "261c63a2.cfa8fc"
+ "9c11898d.0a7fc8",
+ "99a6ac2a.09a37",
+ "37c8ac10.105a14",
+ "a9ca0959.5091f8",
+ "93948746.ca3508",
+ "c8a10ed9.91f9f",
+ "f437215e.10d3b",
+ "ead169b0.125258",
+ "7a851d1e.4e26f4",
+ "b90d780e.3c4118",
+ "abe2baeb.40e348",
+ "b45cc7bf.8981f8",
+ "9cbbc061.21112",
+ "d8ee9881.173788",
+ "99c863bb.a06a2"
]
]
},
{
- "id": "46115720.68ee88",
+ "id": "b1b19a45.9c2198",
"type": "success",
"name": "success",
"xml": "<outcome value='success'>\n",
"comments": "",
"outputs": 1,
- "x": 2630.638999938965,
- "y": 1657.4168796539307,
- "z": "5d875c6b.4b4c54",
+ "x": 2511.2499389648438,
+ "y": 1425.250069618225,
+ "z": "681fe365.17b79c",
"wires": [
[
- "3a88b361.e3682c"
+ "4e2a8ab7.3aeda4"
]
]
},
{
- "id": "3a88b361.e3682c",
+ "id": "4e2a8ab7.3aeda4",
"type": "block",
"name": "block : atomic",
"xml": "<block atomic='true'>",
"atomic": "true",
"comments": "",
"outputs": 1,
- "x": 2803.638786315918,
- "y": 1656.416940689087,
- "z": "5d875c6b.4b4c54",
+ "x": 2694.2499389648438,
+ "y": 1418.2500705718994,
+ "z": "681fe365.17b79c",
"wires": [
[
- "90004ec.2abd9b"
+ "bd20d085.ba5e8"
]
]
},
{
- "id": "90004ec.2abd9b",
+ "id": "bd20d085.ba5e8",
"type": "record",
"name": "record",
"xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.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": 3001.638847351074,
- "y": 1653.4170627593994,
- "z": "5d875c6b.4b4c54",
+ "x": 2947.2499465942383,
+ "y": 1415.2503623962402,
+ "z": "681fe365.17b79c",
"wires": [
[]
]
},
{
- "id": "8c0b5b7f.7bdf08",
+ "id": "d9b2ac55.976ce",
"type": "failure",
"name": "failure",
"xml": "<outcome value='failure'>\n",
"comments": "",
"outputs": 1,
- "x": 2595.6389694213867,
- "y": 1540.4166355133057,
- "z": "5d875c6b.4b4c54",
+ "x": 2493.25008392334,
+ "y": 1373.2499713897705,
+ "z": "681fe365.17b79c",
"wires": [
[
- "edcd118.a0bb6f"
+ "2dfc0093.aea07"
]
]
},
{
- "id": "edcd118.a0bb6f",
+ "id": "2dfc0093.aea07",
"type": "block",
"name": "block : atomic",
"xml": "<block atomic='true'>",
"atomic": "true",
"comments": "",
"outputs": 1,
- "x": 2745.63924407959,
- "y": 1499.4168186187744,
- "z": "5d875c6b.4b4c54",
+ "x": 2636.2501373291016,
+ "y": 1334.2500686645508,
+ "z": "681fe365.17b79c",
"wires": [
[
- "879c280b.1029e8",
- "c0273093.0ef2e",
- "64e216ec.bfca58"
+ "722ede7.d15322",
+ "3798963b.5543aa",
+ "ad094b5c.97bfa8"
]
]
},
{
- "id": "879c280b.1029e8",
+ "id": "722ede7.d15322",
"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": 2916.6388778686523,
- "y": 1560.4168796539307,
- "z": "5d875c6b.4b4c54",
+ "x": 2896.2499389648438,
+ "y": 1354.2501678466797,
+ "z": "681fe365.17b79c",
"wires": []
},
{
- "id": "c0273093.0ef2e",
+ "id": "3798963b.5543aa",
"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": 2911.638999938965,
- "y": 1465.4168186187744,
- "z": "5d875c6b.4b4c54",
+ "x": 2820.249942779541,
+ "y": 1316.2500686645508,
+ "z": "681fe365.17b79c",
"wires": []
},
{
- "id": "4ff52e11.4c359",
+ "id": "93948746.ca3508",
"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": 2467.638916015625,
- "y": 1327.4167575836182,
- "z": "5d875c6b.4b4c54",
+ "x": 2378.25008392334,
+ "y": 1122.2501153945923,
+ "z": "681fe365.17b79c",
"wires": [
[]
]
},
{
- "id": "f74d3af1.4779d8",
+ "id": "c8a10ed9.91f9f",
"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": 2448.6389083862305,
- "y": 1374.1666374206543,
- "z": "5d875c6b.4b4c54",
+ "x": 2352.25008392334,
+ "y": 1172.000018119812,
+ "z": "681fe365.17b79c",
"wires": [
[]
]
},
{
- "id": "2b4b7928.bb17c6",
+ "id": "f437215e.10d3b",
"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": 2424.3888778686523,
- "y": 1417.1666707992554,
- "z": "5d875c6b.4b4c54",
+ "x": 2320.0000801086426,
+ "y": 1215.0000190734863,
+ "z": "681fe365.17b79c",
"wires": [
[]
]
},
{
- "id": "55636713.753228",
+ "id": "8fdca167.05448",
"type": "record",
"name": "record",
"xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.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": 1665.6388854980469,
- "y": 1415.4166622161865,
- "z": "5d875c6b.4b4c54",
+ "x": 1602.2500457763672,
+ "y": 1308.2499713897705,
+ "z": "681fe365.17b79c",
"wires": [
[]
]
},
{
- "id": "ac92bba5.c8a268",
+ "id": "b2f34792.7f01a8",
"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": 1706.6388854980469,
- "y": 1464.4166622161865,
- "z": "5d875c6b.4b4c54",
+ "x": 1609.25,
+ "y": 1366.25000333786,
+ "z": "681fe365.17b79c",
"wires": [
[]
]
},
{
- "id": "d6873e5f.16b53",
+ "id": "ead169b0.125258",
"type": "switchNode",
"name": "ransim mounted",
"xml": "<switch test='`$prop.ransim-mounted`'>\n",
"comments": "",
"outputs": 1,
- "x": 2433.638885498047,
- "y": 1178.4166622161865,
- "z": "5d875c6b.4b4c54",
+ "x": 2307.25008392334,
+ "y": 974.2500152587891,
+ "z": "681fe365.17b79c",
"wires": [
[
- "34e6ea9e.b1bdc6",
- "9ce0b9e2.64fd18"
+ "c8994121.aded2",
+ "75cad47a.7ade6c"
]
]
},
{
- "id": "34e6ea9e.b1bdc6",
+ "id": "c8994121.aded2",
"type": "outcome",
"name": "Not Mounted",
"xml": "<outcome value='false'>\n",
"comments": "",
"outputs": 1,
- "x": 2641.638885498047,
- "y": 1143.4164180755615,
- "z": "5d875c6b.4b4c54",
+ "x": 2542.25008392334,
+ "y": 976.2498207092285,
+ "z": "681fe365.17b79c",
"wires": [
[
- "59068b77.755684"
+ "81abe548.460dc8"
]
]
},
{
- "id": "59068b77.755684",
+ "id": "81abe548.460dc8",
"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": 2961.638885498047,
- "y": 1158.4166622161865,
- "z": "5d875c6b.4b4c54",
+ "x": 2864.25,
+ "y": 1060.25000333786,
+ "z": "681fe365.17b79c",
"wires": [
[]
]
},
{
- "id": "9ce0b9e2.64fd18",
+ "id": "75cad47a.7ade6c",
"type": "outcome",
"name": "Mounted",
"xml": "<outcome value='true'>\n",
"comments": "",
"outputs": 1,
- "x": 2629.638885498047,
- "y": 1245.4166622161865,
- "z": "5d875c6b.4b4c54",
+ "x": 2554.25008392334,
+ "y": 1045.2500166893005,
+ "z": "681fe365.17b79c",
"wires": [
[
- "f574854d.da65d8"
+ "774ee683.2fa458"
]
]
},
{
- "id": "53ee972c.bda038",
+ "id": "7a851d1e.4e26f4",
"type": "block",
"name": "block : atomic",
"xml": "<block atomic='true'>",
"atomic": "true",
"comments": "",
"outputs": 1,
- "x": 1988.6388854980469,
- "y": 1929.4166622161865,
- "z": "5d875c6b.4b4c54",
+ "x": 1891.25,
+ "y": 1831.25000333786,
+ "z": "681fe365.17b79c",
"wires": [
[
- "6b056548.ab52bc",
- "b348ab17.934188",
- "6d3d4b6b.749524",
- "754ee45f.12c16c",
- "f1cfbf18.b2243",
- "7925f33.dcf840c",
- "545ce814.c92928",
- "205d965c.61e96a",
- "7b4444ec.313bdc"
+ "4bc81889.c3e488",
+ "13de5646.12b86a",
+ "b8bc45c1.9b91b8",
+ "62a739ea.2b3de8",
+ "f9a1e0f0.4cf34",
+ "59f372a7.4cc0dc",
+ "a91f5808.a93658",
+ "5fd18804.b77ea8",
+ "f8513007.e48d1"
]
]
},
{
- "id": "6b056548.ab52bc",
+ "id": "4bc81889.c3e488",
"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": 2170.638885498047,
- "y": 1712.4166622161865,
- "z": "5d875c6b.4b4c54",
+ "x": 2073.25,
+ "y": 1614.25000333786,
+ "z": "681fe365.17b79c",
"wires": []
},
{
- "id": "b348ab17.934188",
+ "id": "13de5646.12b86a",
"type": "record",
"name": "record",
- "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.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.CellCU`\"/>",
+ "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.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": 2169.638885498047,
- "y": 1768.4166622161865,
- "z": "5d875c6b.4b4c54",
+ "x": 2072.25,
+ "y": 1675.25000333786,
+ "z": "681fe365.17b79c",
"wires": [
[]
]
},
{
- "id": "6d3d4b6b.749524",
+ "id": "b8bc45c1.9b91b8",
"type": "switchNode",
"name": "ransim mounted",
"xml": "<switch test='`$prop.ransim-mounted`'>\n",
"comments": "",
"outputs": 1,
- "x": 2210.638885498047,
- "y": 1835.4166622161865,
- "z": "5d875c6b.4b4c54",
+ "x": 2113.25,
+ "y": 1737.25000333786,
+ "z": "681fe365.17b79c",
"wires": [
[
- "52da5d1a.0cca24",
- "910f0fe5.fe248"
+ "a683a41c.1d4058",
+ "9e6c15e.198abe8"
]
]
},
{
- "id": "52da5d1a.0cca24",
+ "id": "a683a41c.1d4058",
"type": "outcome",
"name": "Not Mounted",
"xml": "<outcome value='false'>\n",
"comments": "",
"outputs": 1,
- "x": 2388.638885498047,
- "y": 1802.4164180755615,
- "z": "5d875c6b.4b4c54",
+ "x": 2291.25,
+ "y": 1704.249759197235,
+ "z": "681fe365.17b79c",
"wires": [
[
- "8d09c6f.665b538"
+ "30e2245e.8ab33c"
]
]
},
{
- "id": "8d09c6f.665b538",
+ "id": "30e2245e.8ab33c",
"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": 2666.638885498047,
- "y": 1794.4166622161865,
- "z": "5d875c6b.4b4c54",
+ "x": 2569.25,
+ "y": 1696.25000333786,
+ "z": "681fe365.17b79c",
"wires": [
[]
]
},
{
- "id": "754ee45f.12c16c",
+ "id": "62a739ea.2b3de8",
"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": 2245.638885498047,
- "y": 1907.4166622161865,
- "z": "5d875c6b.4b4c54",
+ "x": 2148.25,
+ "y": 1809.25000333786,
+ "z": "681fe365.17b79c",
"wires": [
[]
]
},
{
- "id": "f1cfbf18.b2243",
+ "id": "f9a1e0f0.4cf34",
"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": 2210.638885498047,
- "y": 1959.4166622161865,
- "z": "5d875c6b.4b4c54",
+ "x": 2113.25,
+ "y": 1861.25000333786,
+ "z": "681fe365.17b79c",
"wires": [
[]
]
},
{
- "id": "589411b8.d17cf",
+ "id": "ec7b3808.4058b8",
"type": "success",
"name": "success",
"xml": "<outcome value='success'>\n",
"comments": "",
"outputs": 1,
- "x": 2496.638885498047,
- "y": 2086.4166622161865,
- "z": "5d875c6b.4b4c54",
+ "x": 2399.25,
+ "y": 1988.25000333786,
+ "z": "681fe365.17b79c",
"wires": [
[
- "69298f81.7bc1a"
+ "f7955dc4.a78a7"
]
]
},
{
- "id": "69298f81.7bc1a",
+ "id": "f7955dc4.a78a7",
"type": "block",
"name": "block : atomic",
"xml": "<block atomic='true'>",
"atomic": "true",
"comments": "",
"outputs": 1,
- "x": 2660.6387634277344,
- "y": 2087.416784286499,
- "z": "5d875c6b.4b4c54",
+ "x": 2563.2498779296875,
+ "y": 1989.2501254081726,
+ "z": "681fe365.17b79c",
"wires": [
[
- "b3c93505.359eb8",
- "59c05b13.4d5584"
+ "44e438.54d37bc8",
+ "f4c556d2.a897e8"
]
]
},
{
- "id": "b3c93505.359eb8",
+ "id": "44e438.54d37bc8",
"type": "record",
"name": "record",
"xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.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": 2810.6387634277344,
- "y": 2082.4169063568115,
- "z": "5d875c6b.4b4c54",
+ "x": 2713.2498779296875,
+ "y": 1984.250247478485,
+ "z": "681fe365.17b79c",
"wires": [
[]
]
},
{
- "id": "45ec013e.d3c1c",
+ "id": "33a55b89.b58dc4",
"type": "failure",
"name": "failure",
"xml": "<outcome value='failure'>\n",
"comments": "",
"outputs": 1,
- "x": 2492.638885498047,
- "y": 2007.4166622161865,
- "z": "5d875c6b.4b4c54",
+ "x": 2395.25,
+ "y": 1909.25000333786,
+ "z": "681fe365.17b79c",
"wires": [
[
- "d3c9a44c.060d38"
+ "b15c872.ddc6978"
]
]
},
{
- "id": "d3c9a44c.060d38",
+ "id": "b15c872.ddc6978",
"type": "block",
"name": "block : atomic",
"xml": "<block atomic='true'>",
"atomic": "true",
"comments": "",
"outputs": 1,
- "x": 2650.639129638672,
- "y": 1955.4166622161865,
- "z": "5d875c6b.4b4c54",
+ "x": 2553.250244140625,
+ "y": 1857.25000333786,
+ "z": "681fe365.17b79c",
"wires": [
[
- "49e1b3c0.3eda1c",
- "d701e69a.7c76e8",
- "64e216ec.bfca58"
+ "ced8e9ed.01f3a8",
+ "c478c403.a695c8",
+ "ad094b5c.97bfa8"
]
]
},
{
- "id": "49e1b3c0.3eda1c",
+ "id": "ced8e9ed.01f3a8",
"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": 2821.6387634277344,
- "y": 2016.4167232513428,
- "z": "5d875c6b.4b4c54",
+ "x": 2724.2498779296875,
+ "y": 1918.2500643730164,
+ "z": "681fe365.17b79c",
"wires": []
},
{
- "id": "d701e69a.7c76e8",
+ "id": "c478c403.a695c8",
"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": 2816.638885498047,
- "y": 1921.4166622161865,
- "z": "5d875c6b.4b4c54",
+ "x": 2719.25,
+ "y": 1823.25000333786,
+ "z": "681fe365.17b79c",
"wires": []
},
{
- "id": "7925f33.dcf840c",
+ "id": "59f372a7.4cc0dc",
"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": 2245.638885498047,
- "y": 2034.4166622161865,
- "z": "5d875c6b.4b4c54",
+ "x": 2148.25,
+ "y": 1936.25000333786,
+ "z": "681fe365.17b79c",
"wires": [
[
- "45ec013e.d3c1c",
- "589411b8.d17cf"
+ "33a55b89.b58dc4",
+ "ec7b3808.4058b8"
]
]
},
{
- "id": "59c05b13.4d5584",
+ "id": "f4c556d2.a897e8",
"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": 2825.638885498047,
- "y": 2145.4166622161865,
- "z": "5d875c6b.4b4c54",
+ "x": 2736.2499656677246,
+ "y": 2021.2499423027039,
+ "z": "681fe365.17b79c",
"wires": [
[]
]
},
{
- "id": "545ce814.c92928",
+ "id": "a91f5808.a93658",
"type": "for",
"name": "for each rrmpolicyratio",
- "xml": "<for index='idcu-rrm' start='0' end='`$tmp.rrmPolicyRatioList_length`' >\n",
+ "xml": "<for index='idcu-rrm' start='0' end='`$tmp.rrmPolicyRatioList_length`'>\n",
"comments": "",
"outputs": 1,
- "x": 2180.638885498047,
- "y": 2192.4168910980225,
- "z": "5d875c6b.4b4c54",
+ "x": 2083.25,
+ "y": 2094.250232219696,
+ "z": "681fe365.17b79c",
"wires": [
[
- "91db87cc.23ab88"
+ "35918787.88c868"
]
]
},
{
- "id": "205d965c.61e96a",
+ "id": "5fd18804.b77ea8",
"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 ",
+ "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": 2224.638885498047,
- "y": 2088.4166622161865,
- "z": "5d875c6b.4b4c54",
+ "x": 2127.25,
+ "y": 1990.25000333786,
+ "z": "681fe365.17b79c",
"wires": [
[]
]
},
{
- "id": "91db87cc.23ab88",
+ "id": "35918787.88c868",
"type": "block",
"name": "block : atomic",
"xml": "<block atomic='true'>",
"atomic": "true",
"comments": "",
"outputs": 1,
- "x": 2401.638885498047,
- "y": 2212.4168910980225,
- "z": "5d875c6b.4b4c54",
+ "x": 2304.25,
+ "y": 2114.250232219696,
+ "z": "681fe365.17b79c",
"wires": [
[
- "9f49845e.0050c8",
- "10bed330.9d26bd",
- "b7aab5d6.a5d488",
- "cac94f43.7988e",
- "57aa1331.9d81bc",
- "e85a3a4.22a94c8",
- "4c947865.0ffd58",
- "d93b6f67.8d487",
- "47c5c1a5.8d72c",
- "b2ace9e0.9edfb8"
+ "ce2ea549.0f1118",
+ "8d0a43d7.ec465",
+ "161f1fd6.b2ae4",
+ "b2831a61.7b70f8",
+ "714dfa37.1b8884",
+ "e55f953e.ae8588",
+ "b932805a.88184",
+ "f8bd009c.44741",
+ "875be4d4.5e6918",
+ "bfbb2edf.2f752",
+ "57973a51.8c2c54",
+ "558c117b.eb578"
]
]
},
{
- "id": "9f49845e.0050c8",
+ "id": "ce2ea549.0f1118",
"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": 2726.638885498047,
- "y": 2189.4168910980225,
- "z": "5d875c6b.4b4c54",
+ "x": 2525.2498664855957,
+ "y": 2031.250138759613,
+ "z": "681fe365.17b79c",
"wires": []
},
{
- "id": "7b4444ec.313bdc",
+ "id": "f8513007.e48d1",
"type": "record",
"name": "record",
"xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.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": 2164.638885498047,
- "y": 2142.4166622161865,
- "z": "5d875c6b.4b4c54",
+ "x": 2067.25,
+ "y": 2044.25000333786,
+ "z": "681fe365.17b79c",
"wires": [
[]
]
},
{
- "id": "9f6e5cf6.2e6b1",
+ "id": "aa710b38.7299d8",
"type": "for",
"name": "foreach PLMNInfo",
"xml": "<for index='id-cuplmn' start='0' end='`$tmp.pLMNInfoList_length`' >\n",
"comments": "",
"outputs": 1,
- "x": 2257.7499084472656,
- "y": 923.6388731002808,
- "z": "5d875c6b.4b4c54",
+ "x": 2588.3611221313477,
+ "y": 546.472261428833,
+ "z": "681fe365.17b79c",
"wires": [
[
- "5bd57ea8.8bdc"
+ "6e69020c.ffa84c"
]
]
},
{
- "id": "80ff59e2.0c6828",
+ "id": "60331864.c5e1a8",
"type": "block",
"name": "block",
"xml": "<block atomic='true'>",
"atomic": "true",
"comments": "",
"outputs": 1,
- "x": 1916.6388854980469,
- "y": 1417.4166622161865,
- "z": "5d875c6b.4b4c54",
+ "x": 1815.2499771118164,
+ "y": 1286.2499742507935,
+ "z": "681fe365.17b79c",
"wires": [
[
- "9f6e5cf6.2e6b1",
- "dcc1e616.a66a58"
+ "84a59109.b2389",
+ "411987bd.6a71b8",
+ "615004fe.554e1c"
]
]
},
{
- "id": "ddf84184.f49eb",
+ "id": "54c5833d.bb252c",
"type": "switchNode",
"name": "is NSSAI exists",
"xml": "<switch test='`$tmp.configDBSNSSAI == $tmp.sNSSAI`'>\n",
"comments": "",
"outputs": 1,
- "x": 2680.4166870117188,
- "y": 934.194411277771,
- "z": "5d875c6b.4b4c54",
+ "x": 2824.0274810791016,
+ "y": 804.0277628898621,
+ "z": "681fe365.17b79c",
"wires": [
[
- "4535b231.1fd40c"
+ "eb3203bf.9dd31"
]
]
},
{
- "id": "4535b231.1fd40c",
+ "id": "eb3203bf.9dd31",
"type": "outcome",
"name": "True",
"xml": "<outcome value='true'>\n",
"comments": "",
"outputs": 1,
- "x": 2583.638885498047,
- "y": 1019.4166622161865,
- "z": "5d875c6b.4b4c54",
+ "x": 2486.25,
+ "y": 921.2500033378601,
+ "z": "681fe365.17b79c",
"wires": [
[
- "cc17591c.133a48"
+ "a4df9676.1618b8"
]
]
},
{
- "id": "f200b6d5.a81168",
+ "id": "b90d780e.3c4118",
"type": "record",
"name": "record",
- "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.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 \"/>\n\n\n",
+ "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.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": 2405.638885498047,
- "y": 1110.4166622161865,
- "z": "5d875c6b.4b4c54",
+ "x": 2276.2500801086426,
+ "y": 903.2500143051147,
+ "z": "681fe365.17b79c",
"wires": [
[]
]
},
{
- "id": "fa26149a.2c7198",
+ "id": "2a178a2.39b2c76",
"type": "record",
"name": "record",
"xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.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": 2641.527847290039,
- "y": 869.6388444900513,
- "z": "5d875c6b.4b4c54",
+ "x": 2863.1388092041016,
+ "y": 739.4722437858582,
+ "z": "681fe365.17b79c",
"wires": [
[]
]
},
{
- "id": "5bd57ea8.8bdc",
+ "id": "731a2191.f9dfb",
"type": "block",
"name": "block : atomic",
"xml": "<block atomic='true'>",
"atomic": "true",
"comments": "",
"outputs": 1,
- "x": 2435.638885498047,
- "y": 846.4166622161865,
- "z": "5d875c6b.4b4c54",
+ "x": 2672.2501373291016,
+ "y": 713.2500758171082,
+ "z": "681fe365.17b79c",
"wires": [
[
- "fa26149a.2c7198",
- "ddf84184.f49eb",
- "f9c032b0.6c509"
+ "2a178a2.39b2c76",
+ "54c5833d.bb252c",
+ "d021cf43.653b9"
]
]
},
{
- "id": "f9c032b0.6c509",
+ "id": "d021cf43.653b9",
"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.sNSSAI'`\" />",
+ "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": 2770.5277404785156,
- "y": 801.6388931274414,
- "z": "5d875c6b.4b4c54",
+ "x": 3043.1386108398438,
+ "y": 663.472291469574,
+ "z": "681fe365.17b79c",
"wires": [
[]
]
},
{
- "id": "24ec030e.cd504c",
- "type": "block",
- "name": "block : atomic",
- "xml": "<block atomic='true'>",
- "atomic": "true",
- "comments": "",
- "outputs": 1,
- "x": 1805.6388397216797,
- "y": 2394.4166736602783,
- "z": "5d875c6b.4b4c54",
- "wires": [
- [
- "a8581b0.49378e8",
- "cab5cd7b.682a4",
- "ae40960a.6e1e88"
- ]
- ]
- },
- {
- "id": "a8581b0.49378e8",
- "type": "execute",
- "name": "Update cellCU for gNBCUCP in ConfigDB",
- "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"restapiUrl\" value=\"`$prop.configdb.url + $prop.restapi.configdb.updategNBCUCP`\"/>\n<parameter name=\"templateFileName\" value=\"`$prop.restapi.templateDir + '/ranSlice-configDB-removegNBCUCP.json'`\" />\n<parameter name=\"httpMethod\" value=\"PUT\"/>\n<parameter name=\"responsePrefix\" value=\"remove-gNBCUCP-configdb-response\"/>\n<parameter name='contentType' value='application/json' /> \n<parameter name='format' value='json' />\n<parameter name='accept' value='application/json' />\n<parameter name=\"convertResponse\" value=\"true\"/>",
- "comments": "",
- "outputs": 1,
- "x": 2088.6388397216797,
- "y": 2394.4166736602783,
- "z": "5d875c6b.4b4c54",
- "wires": [
- [
- "66689ab6.972234",
- "3613c031.be978"
- ]
- ]
- },
- {
- "id": "3613c031.be978",
- "type": "success",
- "name": "success",
- "xml": "<outcome value='success'>\n",
- "comments": "",
- "outputs": 1,
- "x": 2324.6388397216797,
- "y": 2466.4166736602783,
- "z": "5d875c6b.4b4c54",
- "wires": [
- [
- "f216f679.2b6c58"
- ]
- ]
- },
- {
- "id": "66689ab6.972234",
- "type": "failure",
- "name": "failure",
- "xml": "<outcome value='failure'>\n",
- "comments": "",
- "outputs": 1,
- "x": 2375.6388397216797,
- "y": 2365.4169178009033,
- "z": "5d875c6b.4b4c54",
- "wires": [
- [
- "ea9cd975.e4bac8"
- ]
- ]
- },
- {
- "id": "ea9cd975.e4bac8",
- "type": "block",
- "name": "block : atomic",
- "xml": "<block atomic='true'>",
- "atomic": "true",
- "comments": "",
- "outputs": 1,
- "x": 2568.8889541625977,
- "y": 2510.166732788086,
- "z": "5d875c6b.4b4c54",
- "wires": [
- [
- "7e0aa803.b632a8",
- "950c5034.5b9f1",
- "64e216ec.bfca58"
- ]
- ]
- },
- {
- "id": "950c5034.5b9f1",
- "type": "set",
- "name": "set",
- "xml": "<set>\n<parameter name='error-code' value='500'/>\n<parameter name='error-message' value='Error in updating Config DB - NRCellCU. Aborting RPC executiopn'/>",
- "comments": "",
- "x": 2738.638771057129,
- "y": 2497.611343860626,
- "z": "5d875c6b.4b4c54",
- "wires": []
- },
- {
- "id": "7e0aa803.b632a8",
- "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 in ConfigDB. Aborting RPC executiopn'/>",
- "comments": "",
- "x": 2738.638473510742,
- "y": 2542.4167346954346,
- "z": "5d875c6b.4b4c54",
- "wires": []
- },
- {
- "id": "b092f8b7.785738",
- "type": "record",
- "name": "record",
- "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.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 ConfigDB - NRCellCU pLMNinfo \"/>",
- "comments": "",
- "outputs": 1,
- "x": 2574.6388397216797,
- "y": 2553.4166736602783,
- "z": "5d875c6b.4b4c54",
- "wires": [
- []
- ]
- },
- {
- "id": "f216f679.2b6c58",
- "type": "block",
- "name": "block",
- "xml": "<block>\n",
- "atomic": "false",
- "comments": "",
- "outputs": 1,
- "x": 2410.6388244628906,
- "y": 2547.4167346954346,
- "z": "5d875c6b.4b4c54",
- "wires": [
- [
- "b092f8b7.785738"
- ]
- ]
- },
- {
- "id": "b2ace9e0.9edfb8",
- "type": "execute",
- "name": "Update RRMPolicy for gNBCUCP in ConfigDB",
- "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"restapiUrl\" value=\"`$prop.configdb.url + $prop.restapi.configdb.updateRRMPolicy`\"/>\n<parameter name=\"templateFileName\" value=\"`$prop.restapi.templateDir + '/ranSlice-configDB-removeRRMPolicyMember-CUCP.json'`\" />\n<parameter name=\"httpMethod\" value=\"PUT\"/>\n<parameter name=\"responsePrefix\" value=\"remove-gNBCUCP-rrmpolicy-configdb-response\"/>\n<parameter name='contentType' value='application/json' /> \n<parameter name='format' value='json' />\n<parameter name='accept' value='application/json' />\n<parameter name=\"convertResponse\" value=\"true\"/>",
- "comments": "",
- "outputs": 1,
- "x": 2109.638885498047,
- "y": 2680.4166622161865,
- "z": "5d875c6b.4b4c54",
- "wires": [
- [
- "cb3f1f17.3f02d",
- "57784c5e.7f9454"
- ]
- ]
- },
- {
- "id": "cb3f1f17.3f02d",
- "type": "failure",
- "name": "failure",
- "xml": "<outcome value='failure'>\n",
- "comments": "",
- "outputs": 1,
- "x": 2407.638885498047,
- "y": 2630.4166622161865,
- "z": "5d875c6b.4b4c54",
- "wires": [
- [
- "214aed7a.fa9512"
- ]
- ]
- },
- {
- "id": "57784c5e.7f9454",
- "type": "success",
- "name": "success",
- "xml": "<outcome value='success'>\n",
- "comments": "",
- "outputs": 1,
- "x": 2407.638885498047,
- "y": 2740.4164180755615,
- "z": "5d875c6b.4b4c54",
- "wires": [
- [
- "8a3d5438.473688"
- ]
- ]
- },
- {
- "id": "214aed7a.fa9512",
- "type": "block",
- "name": "block : atomic",
- "xml": "<block atomic='true'>",
- "atomic": "true",
- "comments": "",
- "outputs": 1,
- "x": 2610.638885498047,
- "y": 2627.4166622161865,
- "z": "5d875c6b.4b4c54",
- "wires": [
- [
- "dade9961.641c08",
- "4b0b3c7b.284154",
- "64e216ec.bfca58"
- ]
- ]
- },
- {
- "id": "4b0b3c7b.284154",
- "type": "set",
- "name": "set",
- "xml": "<set>\n<parameter name='error-code' value='500'/>\n<parameter name='error-message' value='Error in updating RRMPolicyRatio - NRCellCU. Aborting RPC executiopn'/>",
- "comments": "",
- "x": 2776.638641357422,
- "y": 2593.4166622161865,
- "z": "5d875c6b.4b4c54",
- "wires": []
- },
- {
- "id": "dade9961.641c08",
- "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-RRMPolicyRatio in ConfigDB. Aborting RPC executiopn'/>",
- "comments": "",
- "x": 2781.6385192871094,
- "y": 2688.416723251343,
- "z": "5d875c6b.4b4c54",
- "wires": []
- },
- {
- "id": "8a3d5438.473688",
- "type": "block",
- "name": "block",
- "xml": "<block>\n",
- "atomic": "false",
- "comments": "",
- "outputs": 1,
- "x": 2588.638885498047,
- "y": 2734.4166622161865,
- "z": "5d875c6b.4b4c54",
- "wires": [
- [
- "72c18a44.d21cf4"
- ]
- ]
- },
- {
- "id": "72c18a44.d21cf4",
- "type": "record",
- "name": "record",
- "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.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 ConfigDB - NRCellCU RRMPolicyRatio \"/>",
- "comments": "",
- "outputs": 1,
- "x": 2754.638885498047,
- "y": 2735.4166622161865,
- "z": "5d875c6b.4b4c54",
- "wires": [
- []
- ]
- },
- {
- "id": "221fc1b6.a4a77e",
+ "id": "b79aca29.8b4fd8",
"type": "block",
"name": "Process CUUP",
"xml": "<block atomic='true'>",
"atomic": "true",
"comments": "",
"outputs": 1,
- "x": 701.6388854980469,
- "y": 1574.4166622161865,
- "z": "5d875c6b.4b4c54",
+ "x": 604.25,
+ "y": 1476.25000333786,
+ "z": "681fe365.17b79c",
"wires": [
[
- "34ae32c9.abf47e",
- "4d4bc6b8.a73168",
- "696f3821.ac7238"
+ "390c92be.363bae",
+ "db0968ab.63e588",
+ "1dcdbe00.729ff2"
]
]
},
{
- "id": "34ae32c9.abf47e",
+ "id": "390c92be.363bae",
"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": 1032.6388854980469,
- "y": 1584.4166622161865,
- "z": "5d875c6b.4b4c54",
+ "x": 935.25,
+ "y": 1486.25000333786,
+ "z": "681fe365.17b79c",
"wires": [
[]
]
},
{
- "id": "4d4bc6b8.a73168",
+ "id": "db0968ab.63e588",
"type": "record",
"name": "record",
"xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.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": 1004.6388854980469,
- "y": 1649.4166622161865,
- "z": "5d875c6b.4b4c54",
+ "x": 907.25,
+ "y": 1551.25000333786,
+ "z": "681fe365.17b79c",
"wires": [
[]
]
},
{
- "id": "696f3821.ac7238",
+ "id": "1dcdbe00.729ff2",
"type": "for",
"name": "foreach CUUP",
"xml": "<for index='id-cuup' start='0' end='`$tmp.CUUPList_length`'>\n",
"comments": "",
"outputs": 1,
- "x": 1032.6388854980469,
- "y": 1724.4166622161865,
- "z": "5d875c6b.4b4c54",
+ "x": 935.25,
+ "y": 1626.25000333786,
+ "z": "681fe365.17b79c",
"wires": [
[
- "2089220a.3b13fe"
+ "e2ec8c48.6d886"
]
]
},
{
- "id": "2089220a.3b13fe",
+ "id": "e2ec8c48.6d886",
"type": "block",
"name": "block : process CUUP",
"xml": "<block atomic='true'>",
"atomic": "true",
"comments": "",
"outputs": 1,
- "x": 1253.6388854980469,
- "y": 1731.4166622161865,
- "z": "5d875c6b.4b4c54",
+ "x": 800.250129699707,
+ "y": 1986.2502059936523,
+ "z": "681fe365.17b79c",
"wires": [
[
- "7ab19067.34abd",
- "591e5606.f47478",
- "55fe52ed.4d0c3c",
- "84b0e711.1d1a48"
+ "9dc494c6.2df118",
+ "22c7dabc.bd3326",
+ "a518b034.922ad",
+ "24593147.e7d6de",
+ "b5ba08f.5a3f3f8",
+ "18115eaf.388eb1",
+ "e70e3765.75b1f8",
+ "16883fd4.17cb1",
+ "7ef41.8ec040bf8",
+ "ab8499f1.764808",
+ "3ebdce6c.110842",
+ "291001de.d4d50e",
+ "bd924f54.c1842"
]
]
},
{
- "id": "7ab19067.34abd",
+ "id": "9dc494c6.2df118",
"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": 1487.6388854980469,
- "y": 1565.4166622161865,
- "z": "5d875c6b.4b4c54",
+ "x": 1217.2500457763672,
+ "y": 2039.2500247955322,
+ "z": "681fe365.17b79c",
"wires": [
[]
]
},
{
- "id": "591e5606.f47478",
+ "id": "22c7dabc.bd3326",
"type": "record",
"name": "record",
"xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.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": 1483.6388854980469,
- "y": 1619.4166622161865,
- "z": "5d875c6b.4b4c54",
+ "x": 1201.2501411437988,
+ "y": 2089.2500743865967,
+ "z": "681fe365.17b79c",
"wires": [
[]
]
},
{
- "id": "55fe52ed.4d0c3c",
+ "id": "a518b034.922ad",
"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": 1534.6388854980469,
- "y": 1684.4166622161865,
- "z": "5d875c6b.4b4c54",
+ "x": 1197.2500457763672,
+ "y": 2143.2500762939453,
+ "z": "681fe365.17b79c",
"wires": [
[]
]
},
{
- "id": "84b0e711.1d1a48",
+ "id": "24593147.e7d6de",
"type": "for",
"name": "foreach pLMNInfo",
- "xml": "<for index='id-plmn' start='0' end='`$tmp.pLMNInfoList`'>\n",
+ "xml": "<for index='id-plmn' start='0' end='1'>\n",
"comments": "",
"outputs": 1,
- "x": 1520.6388854980469,
- "y": 1739.4166622161865,
- "z": "5d875c6b.4b4c54",
+ "x": 1041.2499923706055,
+ "y": 2278.250228881836,
+ "z": "681fe365.17b79c",
"wires": [
[
- "3c027fdb.5d42c"
+ "c77ba88c.ad56f8"
]
]
},
{
- "id": "3c027fdb.5d42c",
+ "id": "c77ba88c.ad56f8",
"type": "block",
"name": "block : atomic",
"xml": "<block atomic='true'>",
"atomic": "true",
"comments": "",
"outputs": 1,
- "x": 1486.6388854980469,
- "y": 2815.4166622161865,
- "z": "5d875c6b.4b4c54",
+ "x": 1163.2499923706055,
+ "y": 2350.2502315044403,
+ "z": "681fe365.17b79c",
"wires": [
[
- "5892741a.10faec",
- "4127e412.d5a67c",
- "30548ec4.6acdb2",
- "2340eca5.443c94",
- "133335da.d1bbaa",
- "a0533e6a.89e61",
- "9315bfdb.a2f6b",
- "7bcfae2a.8d80b",
- "1f2613d5.3c5b6c",
- "9e05d876.aa5098",
- "2d906f67.af8d2",
- "5f217c6b.8aad94",
- "59cd7c57.9edea4",
- "2fca4cb4.2738c4",
- "ce6d719c.49011",
- "94dbe6eb.647a58",
- "10895895.6f3bd7"
+ "fdc0ff7c.ee3fc",
+ "59f3a197.71b95",
+ "5c179b5b.37ced4"
]
]
},
{
- "id": "1f89eb4f.56d5b5",
+ "id": "880cb6d6.d4b0b8",
"type": "failure",
"name": "failure",
"xml": "<outcome value='failure'>\n",
"comments": "",
"outputs": 1,
- "x": 2116.6390380859375,
- "y": 3015.41690158844,
- "z": "5d875c6b.4b4c54",
+ "x": 2291.250270843506,
+ "y": 2858.250334739685,
+ "z": "681fe365.17b79c",
"wires": [
[
- "5c88e0fe.aa427"
+ "40a6a820.627d08"
]
]
},
{
- "id": "5c88e0fe.aa427",
+ "id": "40a6a820.627d08",
"type": "block",
"name": "block : atomic",
"xml": "<block atomic='true'>",
"atomic": "true",
"comments": "",
"outputs": 1,
- "x": 2293.63916015625,
- "y": 3004.4167795181274,
- "z": "5d875c6b.4b4c54",
+ "x": 2448.250274658203,
+ "y": 2851.2501397132874,
+ "z": "681fe365.17b79c",
"wires": [
[
- "370129e2.e5bde6",
- "9a87f5b3.733728",
- "64e216ec.bfca58"
+ "1e5e96f9.deb9b9",
+ "228683d5.376c2c",
+ "ad094b5c.97bfa8"
]
]
},
{
- "id": "9a87f5b3.733728",
+ "id": "228683d5.376c2c",
"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": 2558.639175415039,
- "y": 2974.4171867370605,
- "z": "5d875c6b.4b4c54",
+ "x": 2693.2502822875977,
+ "y": 2852.25053024292,
+ "z": "681fe365.17b79c",
"wires": []
},
{
- "id": "370129e2.e5bde6",
+ "id": "1e5e96f9.deb9b9",
"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": 2552.639175415039,
- "y": 3015.4171867370605,
- "z": "5d875c6b.4b4c54",
+ "x": 2681.2502822875977,
+ "y": 2887.2505311965942,
+ "z": "681fe365.17b79c",
"wires": []
},
{
- "id": "838e485c.8df738",
+ "id": "af9dfd26.dc4ec",
"type": "record",
"name": "record",
"xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.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": 2443.6386108398438,
- "y": 3087.41690158844,
- "z": "5d875c6b.4b4c54",
+ "x": 2671.25008392334,
+ "y": 2935.2503356933594,
+ "z": "681fe365.17b79c",
"wires": [
[]
]
},
{
- "id": "555b59c4.5368d8",
+ "id": "4da4b3f9.815d1c",
"type": "block",
"name": "block : atomic",
"xml": "<block atomic='true'>",
"atomic": "true",
"comments": "",
"outputs": 1,
- "x": 2290.638916015625,
- "y": 3087.416657447815,
- "z": "5d875c6b.4b4c54",
+ "x": 2515.2500762939453,
+ "y": 2928.250141143799,
+ "z": "681fe365.17b79c",
"wires": [
[
- "838e485c.8df738"
+ "af9dfd26.dc4ec"
]
]
},
{
- "id": "5c354916.643298",
+ "id": "4594eb50.161444",
"type": "success",
"name": "success",
"xml": "<outcome value='success'>\n",
"comments": "",
"outputs": 1,
- "x": 2110.638916015625,
- "y": 3082.4168405532837,
- "z": "5d875c6b.4b4c54",
+ "x": 2355.2500762939453,
+ "y": 2928.2503356933594,
+ "z": "681fe365.17b79c",
"wires": [
[
- "555b59c4.5368d8"
+ "4da4b3f9.815d1c"
]
]
},
{
- "id": "99583120.d2f27",
+ "id": "144fa13.e80855f",
"type": "switchNode",
"name": "ransim mounted",
"xml": "<switch test='`$prop.ransim-mounted`'>\n",
"comments": "",
"outputs": 1,
- "x": 2228.638900756836,
- "y": 2815.4170627593994,
- "z": "5d875c6b.4b4c54",
+ "x": 2037.2500267028809,
+ "y": 2649.2503805160522,
+ "z": "681fe365.17b79c",
"wires": [
[
- "7af6a37f.bc7d0c",
- "8bdc8ed1.58fdf"
+ "d924133c.0f1c",
+ "cc1aca29.288338"
]
]
},
{
- "id": "7af6a37f.bc7d0c",
+ "id": "d924133c.0f1c",
"type": "outcome",
"name": "Not Mounted",
"xml": "<outcome value='false'>\n",
"comments": "",
"outputs": 1,
- "x": 2499.638900756836,
- "y": 2794.4167613983154,
- "z": "5d875c6b.4b4c54",
+ "x": 2357.250129699707,
+ "y": 2699.250137835741,
+ "z": "681fe365.17b79c",
"wires": [
[
- "dffa165d.c08c68"
+ "2880a30.6b2b15e"
]
]
},
{
- "id": "8bdc8ed1.58fdf",
+ "id": "cc1aca29.288338",
"type": "outcome",
"name": "Mounted",
"xml": "<outcome value='true'>\n",
"comments": "",
"outputs": 1,
- "x": 2487.638900756836,
- "y": 2896.4170055389404,
- "z": "5d875c6b.4b4c54",
+ "x": 2390.250015258789,
+ "y": 2798.250346660614,
+ "z": "681fe365.17b79c",
"wires": [
[
- "2649f371.df5dbc"
+ "80f5bdc1.78aaf"
]
]
},
{
- "id": "dffa165d.c08c68",
+ "id": "2880a30.6b2b15e",
"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": 2819.638900756836,
- "y": 2809.4170055389404,
- "z": "5d875c6b.4b4c54",
+ "x": 2722.250015258789,
+ "y": 2711.250346660614,
+ "z": "681fe365.17b79c",
"wires": [
[]
]
},
{
- "id": "5892741a.10faec",
+ "id": "4db12306.f9576c",
"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": 1818.6388702392578,
- "y": 2838.416696548462,
- "z": "5d875c6b.4b4c54",
+ "x": 2053.249969482422,
+ "y": 2753.250138282776,
+ "z": "681fe365.17b79c",
"wires": [
[]
]
},
{
- "id": "10bed330.9d26bd",
- "type": "set",
- "name": "RRMPolicyRatio id",
- "xml": "<set>\n<parameter name='tmp.RRMPolicyRatio_id' value=\"`'$get-rrmpolicyratio-response.attributes.RRMPolicyRatio['+ $idcu-rrm+'].id'`\" />",
- "comments": "",
- "x": 2676.416793823242,
- "y": 2228.4165897369385,
- "z": "5d875c6b.4b4c54",
- "wires": []
- },
- {
- "id": "4127e412.d5a67c",
+ "id": "18115eaf.388eb1",
"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": 1787.6390991210938,
- "y": 3085.4171562194824,
- "z": "5d875c6b.4b4c54",
+ "x": 1413.2501373291016,
+ "y": 3128.250389099121,
+ "z": "681fe365.17b79c",
"wires": []
},
{
- "id": "30548ec4.6acdb2",
+ "id": "e70e3765.75b1f8",
"type": "record",
"name": "record",
"xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.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": 1733.6390914916992,
- "y": 3157.4171600341797,
- "z": "5d875c6b.4b4c54",
+ "x": 1371.2501411437988,
+ "y": 3193.250389099121,
+ "z": "681fe365.17b79c",
"wires": [
[]
]
},
{
- "id": "2340eca5.443c94",
+ "id": "16883fd4.17cb1",
"type": "switchNode",
"name": "ransim mounted",
"xml": "<switch test='`$prop.ransim-mounted`'>\n",
"comments": "",
"outputs": 1,
- "x": 1744.6388854980469,
- "y": 3232.4166622161865,
- "z": "5d875c6b.4b4c54",
+ "x": 1437.2500457763672,
+ "y": 3239.2501945495605,
+ "z": "681fe365.17b79c",
"wires": [
[
- "79b460d5.c662",
- "7575da63.dd4fa4"
+ "f3536205.b6d18",
+ "2406512.40e87ae"
]
]
},
{
- "id": "79b460d5.c662",
+ "id": "f3536205.b6d18",
"type": "outcome",
"name": "Not Mounted",
"xml": "<outcome value='false'>\n",
"comments": "",
"outputs": 1,
- "x": 1922.6388854980469,
- "y": 3199.4164180755615,
- "z": "5d875c6b.4b4c54",
+ "x": 1746.2499771118164,
+ "y": 3195.2497539520264,
+ "z": "681fe365.17b79c",
"wires": [
[
- "86755db9.7d83f"
+ "5313b96e.3e1918"
]
]
},
{
- "id": "86755db9.7d83f",
+ "id": "5313b96e.3e1918",
"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": 2217.638916015625,
- "y": 3145.416718482971,
- "z": "5d875c6b.4b4c54",
+ "x": 2005.2497863769531,
+ "y": 3197.249948978424,
+ "z": "681fe365.17b79c",
"wires": [
[]
]
},
{
- "id": "133335da.d1bbaa",
+ "id": "7ef41.8ec040bf8",
"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": 1781.6389694213867,
- "y": 3287.416675567627,
- "z": "5d875c6b.4b4c54",
+ "x": 1484.2501430511475,
+ "y": 3288.2503910064697,
+ "z": "681fe365.17b79c",
"wires": [
[]
]
},
{
- "id": "a0533e6a.89e61",
+ "id": "ab8499f1.764808",
"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": 1777.6391372680664,
- "y": 3344.4166765213013,
- "z": "5d875c6b.4b4c54",
+ "x": 1503.2501419782639,
+ "y": 3336.250343322754,
+ "z": "681fe365.17b79c",
"wires": [
[
- "d29f14c4.2beeb8",
- "3d6aa90a.1b02e6"
+ "e7156499.457a18",
+ "f9535ec6.7927"
]
]
},
{
- "id": "d29f14c4.2beeb8",
+ "id": "e7156499.457a18",
"type": "failure",
"name": "failure",
"xml": "<outcome value='failure'>\n",
"comments": "",
"outputs": 1,
- "x": 2027.6389808654785,
- "y": 3334.4168405532837,
- "z": "5d875c6b.4b4c54",
+ "x": 1909.2501754760742,
+ "y": 3301.2501459121704,
+ "z": "681fe365.17b79c",
"wires": [
[
- "8e9195f9.2c7a68"
+ "67da9057.2ebc"
]
]
},
{
- "id": "8e9195f9.2c7a68",
+ "id": "67da9057.2ebc",
"type": "block",
"name": "block : atomic",
"xml": "<block atomic='true'>",
"atomic": "true",
"comments": "",
"outputs": 1,
- "x": 2188.639129638672,
- "y": 3353.4166622161865,
- "z": "5d875c6b.4b4c54",
+ "x": 2083.250175476074,
+ "y": 3312.2499504089355,
+ "z": "681fe365.17b79c",
"wires": [
[
- "dbec3cb4.3579f",
- "f755aa7.e876158",
- "64e216ec.bfca58"
+ "8e112a81.27a5e8",
+ "a9910653.13d4b8",
+ "ad094b5c.97bfa8"
]
]
},
{
- "id": "f755aa7.e876158",
+ "id": "a9910653.13d4b8",
"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": 2354.638885498047,
- "y": 3319.4166622161865,
- "z": "5d875c6b.4b4c54",
+ "x": 2275.249984741211,
+ "y": 3257.2499504089355,
+ "z": "681fe365.17b79c",
"wires": []
},
{
- "id": "dbec3cb4.3579f",
+ "id": "8e112a81.27a5e8",
"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": 2404.638687133789,
- "y": 3374.416645050049,
- "z": "5d875c6b.4b4c54",
+ "x": 2319.249984741211,
+ "y": 3301.2499504089355,
+ "z": "681fe365.17b79c",
"wires": []
},
{
- "id": "69a0577b.0915c8",
+ "id": "91367f6d.db4a3",
"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": 2402.638961791992,
- "y": 3460.4171328544617,
- "z": "5d875c6b.4b4c54",
+ "x": 2306.249984741211,
+ "y": 3380.2503423690796,
+ "z": "681fe365.17b79c",
"wires": [
[]
]
},
{
- "id": "fa22ec90.e399d",
+ "id": "682358ee.9fe208",
"type": "record",
"name": "record",
"xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.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": 2383.6387481689453,
- "y": 3417.416889190674,
- "z": "5d875c6b.4b4c54",
+ "x": 2298.249984741211,
+ "y": 3336.2503414154053,
+ "z": "681fe365.17b79c",
"wires": [
[]
]
},
{
- "id": "43e42fa1.89d73",
+ "id": "f2497616.c61088",
"type": "block",
"name": "block : atomic",
"xml": "<block atomic='true'>",
"atomic": "true",
"comments": "",
"outputs": 1,
- "x": 2186.6388397216797,
- "y": 3399.4170718193054,
- "z": "5d875c6b.4b4c54",
+ "x": 2089.2499809265137,
+ "y": 3358.2503414154053,
+ "z": "681fe365.17b79c",
"wires": [
[
- "fa22ec90.e399d",
- "69a0577b.0915c8"
+ "682358ee.9fe208",
+ "91367f6d.db4a3"
]
]
},
{
- "id": "3d6aa90a.1b02e6",
+ "id": "f9535ec6.7927",
"type": "success",
"name": "success",
"xml": "<outcome value='success'>\n",
"comments": "",
"outputs": 1,
- "x": 2028.6390533447266,
- "y": 3389.416949748993,
- "z": "5d875c6b.4b4c54",
+ "x": 1908.2501754760742,
+ "y": 3357.2501468658447,
+ "z": "681fe365.17b79c",
"wires": [
[
- "43e42fa1.89d73"
+ "f2497616.c61088"
]
]
},
{
- "id": "9315bfdb.a2f6b",
+ "id": "3ebdce6c.110842",
"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 ",
+ "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": 1765.6389923095703,
- "y": 3387.416645050049,
- "z": "5d875c6b.4b4c54",
+ "x": 1502.2501411437988,
+ "y": 3383.2503929138184,
+ "z": "681fe365.17b79c",
"wires": [
[]
]
},
{
- "id": "7bcfae2a.8d80b",
+ "id": "291001de.d4d50e",
"type": "record",
"name": "record",
- "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.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.tmp.rrmPolicyRatioList_CUUP_length`\"/>\n",
+ "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.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": 1703.6390838623047,
- "y": 3431.416706085205,
- "z": "5d875c6b.4b4c54",
+ "x": 1465.2501430511475,
+ "y": 3432.2503929138184,
+ "z": "681fe365.17b79c",
"wires": [
[]
]
},
{
- "id": "1f2613d5.3c5b6c",
+ "id": "bd924f54.c1842",
"type": "for",
"name": "for each rrmpolicyratio",
"xml": "<for index='idcuup-rrm' start='0' end='`$tmp.rrmPolicyRatioList_CUUP_length`' >\n",
"comments": "",
"outputs": 1,
- "x": 1745.3055267333984,
- "y": 3481.750202178955,
- "z": "5d875c6b.4b4c54",
+ "x": 1520.9166469573975,
+ "y": 3476.5835971832275,
+ "z": "681fe365.17b79c",
"wires": [
[
- "4ed20655.2841a8"
+ "358b4d42.dd07f2"
]
]
},
{
- "id": "4ed20655.2841a8",
+ "id": "358b4d42.dd07f2",
"type": "block",
"name": "block : atomic",
"xml": "<block atomic='true'>",
"atomic": "true",
"comments": "",
"outputs": 1,
- "x": 1944.305564880371,
- "y": 3507.7501430511475,
- "z": "5d875c6b.4b4c54",
+ "x": 1846.9166793823242,
+ "y": 3409.583484172821,
+ "z": "681fe365.17b79c",
"wires": [
[
- "96d6c20a.f3dc3",
- "35604442.22acbc",
- "e0ad1a99.4afc98",
- "c436bb12.fb3218",
- "680e2356.45dadc",
- "a2f2dac8.2bb8b8",
- "a0d3e29.b99a22",
- "7545b5bb.fec49c"
+ "cda8ee51.c8dd3",
+ "2d907870.04c9d8",
+ "6dcd6d8b.8f8a74",
+ "80c78ee4.73906",
+ "4270a600.32d2fc",
+ "57e3012b.50b3f",
+ "75f31ef6.92277",
+ "c3a3fdd9.ccf7",
+ "cf2e8dfd.da164",
+ "f259ca88.208ba8",
+ "ce9627e7.f46608"
]
]
},
{
- "id": "3c7beedb.e32b72",
+ "id": "5482832f.65a86c",
"type": "block",
"name": "block : atomic",
"xml": "<block atomic='true'>",
"atomic": "true",
"comments": "",
"outputs": 1,
- "x": 2740.3054428100586,
- "y": 3741.7503910064697,
- "z": "5d875c6b.4b4c54",
+ "x": 2642.9165573120117,
+ "y": 3643.5837321281433,
+ "z": "681fe365.17b79c",
"wires": [
[
- "d35a8344.134aa"
+ "e6c1d86d.e682b8"
]
]
},
{
- "id": "d35a8344.134aa",
+ "id": "e6c1d86d.e682b8",
"type": "record",
"name": "record",
"xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.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": 2934.305595397949,
- "y": 3771.750207901001,
- "z": "5d875c6b.4b4c54",
+ "x": 2836.9167098999023,
+ "y": 3673.5835490226746,
+ "z": "681fe365.17b79c",
"wires": [
[]
]
},
{
- "id": "c3e90459.cc53b8",
+ "id": "ebe018b3.5a55b8",
"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": 3000.305414199829,
- "y": 3828.7500853538513,
- "z": "5d875c6b.4b4c54",
+ "x": 2902.916528701782,
+ "y": 3730.583426475525,
+ "z": "681fe365.17b79c",
"wires": []
},
{
- "id": "fcc67fd8.ef1ad",
+ "id": "7c3a20e2.bb93",
"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": 3015.305534362793,
- "y": 3876.7500853538513,
- "z": "5d875c6b.4b4c54",
- "wires": []
- },
- {
- "id": "8e1e0f62.d4b88",
- "type": "block",
- "name": "block : atomic",
- "xml": "<block atomic='true'>",
- "atomic": "true",
- "comments": "",
- "outputs": 1,
- "x": 2737.3059616088867,
- "y": 3803.750024795532,
- "z": "5d875c6b.4b4c54",
- "wires": [
- [
- "fcc67fd8.ef1ad",
- "c3e90459.cc53b8"
- ]
- ]
- },
- {
- "id": "2b3faeb4.a48ed2",
- "type": "failure",
- "name": "failure",
- "xml": "<outcome value='failure'>\n",
- "comments": "",
- "outputs": 1,
- "x": 2516.3054733276367,
- "y": 3780.750024318695,
- "z": "5d875c6b.4b4c54",
- "wires": [
- [
- "8e1e0f62.d4b88"
- ]
- ]
- },
- {
- "id": "9e05d876.aa5098",
- "type": "block",
- "name": "block : atomic",
- "xml": "<block atomic='true'>",
- "atomic": "true",
- "comments": "",
- "outputs": 1,
- "x": 1699.9723052978516,
- "y": 3940.083523750305,
- "z": "5d875c6b.4b4c54",
- "wires": [
- [
- "d25784cf.08f9d8",
- "a79aaedd.650cb",
- "7d8bd7ea.d3c8b8",
- "bc9e3843.b4d938"
- ]
- ]
- },
- {
- "id": "d25784cf.08f9d8",
- "type": "execute",
- "name": "Update gNBCUUP in ConfigDB",
- "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"restapiUrl\" value=\"`$prop.configdb.url + $prop.restapi.configdb.updategNBCUUP`\"/>\n<parameter name=\"templateFileName\" value=\"`$prop.restapi.templateDir + '/restapi.configDB.updategNBCUUP.templatefile'`\" />\n<parameter name=\"httpMethod\" value=\"PUT\"/>\n<parameter name=\"responsePrefix\" value=\"update-gNBCUUP-configdb-response\"/>\n<parameter name='contentType' value='application/json' /> \n<parameter name='format' value='json' />\n<parameter name='accept' value='application/json' />\n<parameter name=\"convertResponse\" value=\"true\"/>",
- "comments": "",
- "outputs": 1,
- "x": 2032.9722595214844,
- "y": 3941.0834102630615,
- "z": "5d875c6b.4b4c54",
- "wires": [
- [
- "3358e0fe.e1dbd",
- "b415d4aa.816a48"
- ]
- ]
- },
- {
- "id": "3358e0fe.e1dbd",
- "type": "failure",
- "name": "failure",
- "xml": "<outcome value='failure'>\n",
- "comments": "",
- "outputs": 1,
- "x": 2319.9722595214844,
- "y": 3912.0836544036865,
- "z": "5d875c6b.4b4c54",
- "wires": [
- [
- "8e8b459c.ef1818"
- ]
- ]
- },
- {
- "id": "b415d4aa.816a48",
- "type": "success",
- "name": "success",
- "xml": "<outcome value='success'>\n",
- "comments": "",
- "outputs": 1,
- "x": 2268.9722595214844,
- "y": 4013.0834102630615,
- "z": "5d875c6b.4b4c54",
- "wires": [
- [
- "f4a060e7.e58e1"
- ]
- ]
- },
- {
- "id": "f4a060e7.e58e1",
- "type": "block",
- "name": "block",
- "xml": "<block>\n",
- "atomic": "false",
- "comments": "",
- "outputs": 1,
- "x": 2390.9721298217773,
- "y": 4060.0834016799927,
- "z": "5d875c6b.4b4c54",
- "wires": [
- [
- "f31d2512.795d88"
- ]
- ]
- },
- {
- "id": "8e8b459c.ef1818",
- "type": "block",
- "name": "block : atomic",
- "xml": "<block atomic='true'>",
- "atomic": "true",
- "comments": "",
- "outputs": 1,
- "x": 2511.9722595214844,
- "y": 4028.0834102630615,
- "z": "5d875c6b.4b4c54",
- "wires": [
- [
- "5bb3484c.ee7918",
- "ec6bbc89.9e9f6",
- "64e216ec.bfca58"
- ]
- ]
- },
- {
- "id": "f31d2512.795d88",
- "type": "record",
- "name": "record",
- "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.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 ConfigDB - NRCellCU pLMNinfo \"/>",
- "comments": "",
- "outputs": 1,
- "x": 2530.9723739624023,
- "y": 4064.083462715149,
- "z": "5d875c6b.4b4c54",
- "wires": [
- []
- ]
- },
- {
- "id": "5bb3484c.ee7918",
- "type": "returnFailure",
- "name": "return failure",
- "xml": "<return status='failure'>\n<parameter name='ack-final' value='Y'/>\n<parameter name='error-code' value='500'/>\n<parameter name='error-message' value='Error updating CUUP-PLMNInfo in ConfigDB. Aborting RPC executiopn'/>",
- "comments": "",
- "x": 2682.971893310547,
- "y": 4089.083471298218,
- "z": "5d875c6b.4b4c54",
+ "x": 2917.916648864746,
+ "y": 3778.583426475525,
+ "z": "681fe365.17b79c",
"wires": []
},
{
- "id": "ec6bbc89.9e9f6",
- "type": "set",
- "name": "set",
- "xml": "<set>\n<parameter name='error-code' value='500'/>\n<parameter name='error-message' value='Error in updating Config DB - NRCellCU. Aborting RPC executiopn'/>",
- "comments": "",
- "x": 2677.9720611572266,
- "y": 3996.0833988189697,
- "z": "5d875c6b.4b4c54",
- "wires": []
- },
- {
- "id": "76794f83.cd47d",
- "type": "set",
- "name": "set",
- "xml": "<set>\n<parameter name='error-code' value='500'/>\n<parameter name='error-message' value='Error in updating RRMPolicyRatio - CUUP. Aborting RPC executiopn'/>",
- "comments": "",
- "x": 2720.9720611572266,
- "y": 4140.08339881897,
- "z": "5d875c6b.4b4c54",
- "wires": []
- },
- {
- "id": "2fd9f56c.66bcea",
- "type": "returnFailure",
- "name": "return failure",
- "xml": "<return status='failure'>\n<parameter name='ack-final' value='Y'/>\n<parameter name='error-code' value='500'/>\n<parameter name='error-message' value='Error updating CUUP-RRMPolicyRatio in ConfigDB. Aborting RPC executiopn'/>",
- "comments": "",
- "x": 2725.971939086914,
- "y": 4235.083459854126,
- "z": "5d875c6b.4b4c54",
- "wires": []
- },
- {
- "id": "8983cfa0.bd2f5",
+ "id": "1fdda310.efc3bd",
"type": "block",
"name": "block : atomic",
"xml": "<block atomic='true'>",
"atomic": "true",
"comments": "",
"outputs": 1,
- "x": 2554.9723052978516,
- "y": 4174.08339881897,
- "z": "5d875c6b.4b4c54",
- "wires": [
- [
- "2fd9f56c.66bcea",
- "76794f83.cd47d",
- "64e216ec.bfca58"
- ]
- ]
- },
- {
- "id": "5dc273f7.d271ec",
- "type": "record",
- "name": "record",
- "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.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 ConfigDB - CUUP RRMPolicyRatio \"/>",
- "comments": "",
- "outputs": 1,
- "x": 2698.9723052978516,
- "y": 4282.08339881897,
- "z": "5d875c6b.4b4c54",
- "wires": [
- []
- ]
- },
- {
- "id": "16ac4386.c47f7c",
- "type": "block",
- "name": "block",
- "xml": "<block>\n",
- "atomic": "false",
- "comments": "",
- "outputs": 1,
- "x": 2532.9723052978516,
- "y": 4281.08339881897,
- "z": "5d875c6b.4b4c54",
- "wires": [
- [
- "5dc273f7.d271ec"
- ]
- ]
- },
- {
- "id": "710a2275.57653c",
- "type": "success",
- "name": "success",
- "xml": "<outcome value='success'>\n",
- "comments": "",
- "outputs": 1,
- "x": 2351.9723052978516,
- "y": 4287.083154678345,
- "z": "5d875c6b.4b4c54",
+ "x": 2639.91707611084,
+ "y": 3705.583365917206,
+ "z": "681fe365.17b79c",
"wires": [
[
- "16ac4386.c47f7c"
+ "7c3a20e2.bb93",
+ "ebe018b3.5a55b8"
]
]
},
{
- "id": "b816bbbf.a9bc48",
+ "id": "81dbf1c4.f6ab9",
"type": "failure",
"name": "failure",
"xml": "<outcome value='failure'>\n",
"comments": "",
"outputs": 1,
- "x": 2351.9723052978516,
- "y": 4177.08339881897,
- "z": "5d875c6b.4b4c54",
- "wires": [
- [
- "8983cfa0.bd2f5"
- ]
- ]
- },
- {
- "id": "a79aaedd.650cb",
- "type": "execute",
- "name": "Update RRMPolicy for gNBCUUP in ConfigDB",
- "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"restapiUrl\" value=\"`$prop.configdb.url + $prop.restapi.configdb.updateRRMPolicy`\"/>\n<parameter name=\"templateFileName\" value=\"`$prop.restapi.templateDir + '/ranSlice-configDB-removeRRMPolicy-CUUP.json'`\" />\n<parameter name=\"httpMethod\" value=\"PUT\"/>\n<parameter name=\"responsePrefix\" value=\"delete-gNBCUUP-rrmpolicy-configdb-response\"/>\n<parameter name='contentType' value='application/json' /> \n<parameter name='format' value='json' />\n<parameter name='accept' value='application/json' />\n<parameter name=\"convertResponse\" value=\"true\"/>",
- "comments": "",
- "outputs": 1,
- "x": 2051.472396850586,
- "y": 4210.833646774292,
- "z": "5d875c6b.4b4c54",
+ "x": 2422.9165382385254,
+ "y": 3704.5831604003906,
+ "z": "681fe365.17b79c",
"wires": [
[
- "b816bbbf.a9bc48",
- "710a2275.57653c"
+ "1fdda310.efc3bd"
]
]
},
{
- "id": "1faf1601.2669fa",
+ "id": "20b1cd7e.4eef42",
"type": "block",
"name": "Process gNBDU",
"xml": "<block atomic='true'>",
"atomic": "true",
"comments": "",
"outputs": 1,
- "x": 1064.389060974121,
- "y": 4212.167390823364,
- "z": "5d875c6b.4b4c54",
+ "x": 967.0001754760742,
+ "y": 4114.000731945038,
+ "z": "681fe365.17b79c",
"wires": [
[
- "2ff42930.53a7a6",
- "a21f2124.e5ed3",
- "d0a914ba.b40bb8"
+ "5117c7e1.aa3ff8",
+ "cc83a77a.7ea698",
+ "c93d7ca9.89681"
]
]
},
{
- "id": "2ff42930.53a7a6",
+ "id": "5117c7e1.aa3ff8",
"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": 1393.389060974121,
- "y": 4243.167390823364,
- "z": "5d875c6b.4b4c54",
+ "x": 1296.0001754760742,
+ "y": 4145.000731945038,
+ "z": "681fe365.17b79c",
"wires": [
[]
]
},
{
- "id": "a21f2124.e5ed3",
+ "id": "cc83a77a.7ea698",
"type": "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=\"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",
+ "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.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": 1351.389045715332,
- "y": 4304.167390823364,
- "z": "5d875c6b.4b4c54",
+ "x": 1254.0001602172852,
+ "y": 4206.000731945038,
+ "z": "681fe365.17b79c",
"wires": [
[]
]
},
{
- "id": "d0a914ba.b40bb8",
+ "id": "c93d7ca9.89681",
"type": "for",
"name": "foreach DU",
"xml": "<for index='id-du' start='0' end='`$tmp.DUList_length`'>\n",
"comments": "",
"outputs": 1,
- "x": 1363.3890914916992,
- "y": 4374.167390823364,
- "z": "5d875c6b.4b4c54",
+ "x": 1269.0001907348633,
+ "y": 4272.000356674194,
+ "z": "681fe365.17b79c",
"wires": [
[
- "4558ce70.982c6"
+ "62543ed0.737ba"
]
]
},
{
- "id": "4558ce70.982c6",
+ "id": "62543ed0.737ba",
"type": "block",
"name": "block : process gNBDU",
"xml": "<block atomic='true'>",
"atomic": "true",
"comments": "",
"outputs": 1,
- "x": 1644.389060974121,
- "y": 4375.167360305786,
- "z": "5d875c6b.4b4c54",
+ "x": 1547.0001754760742,
+ "y": 4277.00070142746,
+ "z": "681fe365.17b79c",
"wires": [
[
- "8ca51e33.1c76f",
- "322ebbf8.73f024",
- "7457cf96.44126",
- "5d860438.a120dc"
+ "6c75d78e.cd0aa8",
+ "c9a5618f.3f7a2",
+ "751771a2.1a138",
+ "9096a058.b945c"
]
]
},
{
- "id": "8ca51e33.1c76f",
+ "id": "6c75d78e.cd0aa8",
"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": 1923.3888854980469,
- "y": 4371.1666622161865,
- "z": "5d875c6b.4b4c54",
+ "x": 1826,
+ "y": 4273.00000333786,
+ "z": "681fe365.17b79c",
"wires": [
[]
]
},
{
- "id": "322ebbf8.73f024",
+ "id": "c9a5618f.3f7a2",
"type": "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=\"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/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": 1896.3888854980469,
- "y": 4422.1666622161865,
- "z": "5d875c6b.4b4c54",
+ "x": 1799,
+ "y": 4324.00000333786,
+ "z": "681fe365.17b79c",
"wires": [
[]
]
},
{
- "id": "7457cf96.44126",
+ "id": "751771a2.1a138",
"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": 1937.3888854980469,
- "y": 4471.1666622161865,
- "z": "5d875c6b.4b4c54",
+ "x": 1808,
+ "y": 4383.000358581543,
+ "z": "681fe365.17b79c",
"wires": [
[]
]
},
{
- "id": "5d860438.a120dc",
+ "id": "9096a058.b945c",
"type": "for",
"name": "for cellDUList",
"xml": "<for index='id-celldu' start='0' end='`$tmp.cellDUList_length`' >\n",
"comments": "",
"outputs": 1,
- "x": 1927.3888854980469,
- "y": 4515.1666622161865,
- "z": "5d875c6b.4b4c54",
+ "x": 1844.9999771118164,
+ "y": 4462.000261306763,
+ "z": "681fe365.17b79c",
"wires": [
[
- "2bf11eaa.4763e2",
- "172ed894.1d8ac7"
+ "3bf672d8.2ca8ae"
]
]
},
{
- "id": "4b99aec5.45498",
+ "id": "6cc28b13.198d84",
"type": "block",
"name": "block : atomic",
"xml": "<block atomic='true'>",
"atomic": "true",
"comments": "",
"outputs": 1,
- "x": 2954.138885498047,
- "y": 4569.1666622161865,
- "z": "5d875c6b.4b4c54",
+ "x": 2801.750087738037,
+ "y": 4587.000261306763,
+ "z": "681fe365.17b79c",
"wires": [
[
- "4445cd18.9600c4",
- "872e480f.b465f8",
- "f5d4c601.354688",
- "11a0d679.90098a",
- "f2dcbb4e.8038e8",
- "726f7922.b45ba8",
- "a10594b5.5c8fb8",
- "b0e28d4e.4976b",
- "b7827b8b.3a1708",
- "8c35785a.ba3828",
- "ef4ec23.31a6e4",
- "f5f4e46a.0c8e38"
+ "28b606d9.ccd93a",
+ "62c2785.467a688",
+ "8820f797.c88e08",
+ "ed352474.10d9e8",
+ "81aeb088.da33",
+ "45a4a653.3864d8",
+ "6e0ef52d.5aaefc",
+ "94a85cd2.636af",
+ "e06200dc.fccdd",
+ "d7bffafc.dfc748",
+ "78a62f70.66a53",
+ "31736e25.f21fa2",
+ "fc5e8045.0b54b",
+ "37597cbc.0bed04",
+ "dc22d02e.6e6fe"
]
]
},
{
- "id": "b0e28d4e.4976b",
+ "id": "94a85cd2.636af",
"type": "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=\"CellDU is applicable for the NSSAI \"/>\n\n\n",
+ "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.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": 3149.138885498047,
- "y": 4564.1666622161865,
- "z": "5d875c6b.4b4c54",
+ "x": 3051.75,
+ "y": 4466.00000333786,
+ "z": "681fe365.17b79c",
"wires": [
[]
]
},
{
- "id": "a10594b5.5c8fb8",
+ "id": "6e0ef52d.5aaefc",
"type": "switchNode",
"name": "ransim mounted",
"xml": "<switch test='`$prop.ransim-mounted`'>\n",
"comments": "",
"outputs": 1,
- "x": 3177.138885498047,
- "y": 4632.1666622161865,
- "z": "5d875c6b.4b4c54",
+ "x": 3079.75,
+ "y": 4534.00000333786,
+ "z": "681fe365.17b79c",
"wires": [
[
- "95d9cd08.e7de8",
- "a61d5125.dc085"
+ "e35db034.136b5",
+ "b8b0ac6c.0eaf1"
]
]
},
{
- "id": "95d9cd08.e7de8",
+ "id": "e35db034.136b5",
"type": "outcome",
"name": "Not Mounted",
"xml": "<outcome value='false'>\n",
"comments": "",
"outputs": 1,
- "x": 3385.138885498047,
- "y": 4597.1664180755615,
- "z": "5d875c6b.4b4c54",
+ "x": 3287.75,
+ "y": 4498.999759197235,
+ "z": "681fe365.17b79c",
"wires": [
[
- "69b5d8b5.7904c8"
+ "fc7c4f4f.26814"
]
]
},
{
- "id": "a61d5125.dc085",
+ "id": "b8b0ac6c.0eaf1",
"type": "outcome",
"name": "Mounted",
"xml": "<outcome value='true'>\n",
"comments": "",
"outputs": 1,
- "x": 3380.1389350891113,
- "y": 4666.166986465454,
- "z": "5d875c6b.4b4c54",
+ "x": 3282.7500495910645,
+ "y": 4568.000327587128,
+ "z": "681fe365.17b79c",
"wires": [
[
- "92f49b5d.cdaff8"
+ "579d239c.3fb1cc"
]
]
},
{
- "id": "69b5d8b5.7904c8",
+ "id": "fc7c4f4f.26814",
"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": 3705.138885498047,
- "y": 4612.1666622161865,
- "z": "5d875c6b.4b4c54",
+ "x": 3607.75,
+ "y": 4514.00000333786,
+ "z": "681fe365.17b79c",
"wires": [
[]
]
},
{
- "id": "4445cd18.9600c4",
+ "id": "28b606d9.ccd93a",
"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 +'].cellCUList['+ $id-celldu +'].cellLocalId'`\" />",
+ "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": 3174.1390380859375,
- "y": 4720.1669063568115,
- "z": "5d875c6b.4b4c54",
+ "x": 3083.750141143799,
+ "y": 4573.000655174255,
+ "z": "681fe365.17b79c",
"wires": [
[]
]
},
{
- "id": "11a0d679.90098a",
+ "id": "ed352474.10d9e8",
"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": 3229.1390991210938,
- "y": 4785.166844367981,
- "z": "5d875c6b.4b4c54",
+ "x": 3131.750213623047,
+ "y": 4687.0001854896545,
+ "z": "681fe365.17b79c",
"wires": [
[]
]
},
{
- "id": "f2dcbb4e.8038e8",
+ "id": "81aeb088.da33",
"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.cellCULocalId`\"/>\n",
+ "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": 3202.1392822265625,
- "y": 4840.16684627533,
- "z": "5d875c6b.4b4c54",
+ "x": 3104.7503967285156,
+ "y": 4742.000187397003,
+ "z": "681fe365.17b79c",
"wires": [
[]
]
},
{
- "id": "726f7922.b45ba8",
+ "id": "45a4a653.3864d8",
"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": 3187.1390838623047,
- "y": 4884.417345523834,
- "z": "5d875c6b.4b4c54",
+ "x": 3089.750198364258,
+ "y": 4786.250686645508,
+ "z": "681fe365.17b79c",
"wires": [
[]
]
},
{
- "id": "872e480f.b465f8",
+ "id": "62c2785.467a688",
"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": 3187.8893280029297,
- "y": 4928.666919708252,
- "z": "5d875c6b.4b4c54",
+ "x": 3090.500442504883,
+ "y": 4830.5002608299255,
+ "z": "681fe365.17b79c",
"wires": [
[]
]
},
{
- "id": "f5d4c601.354688",
+ "id": "8820f797.c88e08",
"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": 3189.1388549804688,
- "y": 5029.167276382446,
- "z": "5d875c6b.4b4c54",
+ "x": 3098.7499465942383,
+ "y": 4919.0003662109375,
+ "z": "681fe365.17b79c",
"wires": [
[]
]
},
{
- "id": "b7827b8b.3a1708",
+ "id": "e06200dc.fccdd",
"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": 3246.138885498047,
- "y": 5104.4166622161865,
- "z": "5d875c6b.4b4c54",
+ "x": 3146.7499465942383,
+ "y": 4958.249977111816,
+ "z": "681fe365.17b79c",
"wires": [
[
- "f7556fcd.b1055",
- "a60331c9.05575"
+ "5d696c32.9049b4",
+ "a5fd979b.d8abf8"
]
]
},
{
- "id": "a60331c9.05575",
+ "id": "a5fd979b.d8abf8",
"type": "failure",
"name": "failure",
"xml": "<outcome value='failure'>\n",
"comments": "",
"outputs": 1,
- "x": 3513.138885498047,
- "y": 5004.4166622161865,
- "z": "5d875c6b.4b4c54",
+ "x": 3399.749954223633,
+ "y": 4824.249975204468,
+ "z": "681fe365.17b79c",
"wires": [
[
- "885e3fb2.8834"
+ "9da89aca.da91d8"
]
]
},
{
- "id": "f7556fcd.b1055",
+ "id": "5d696c32.9049b4",
"type": "success",
"name": "success",
"xml": "<outcome value='success'>\n",
"comments": "",
"outputs": 1,
- "x": 3512.138885498047,
- "y": 5103.4166622161865,
- "z": "5d875c6b.4b4c54",
+ "x": 3426.749954223633,
+ "y": 4955.249977111816,
+ "z": "681fe365.17b79c",
"wires": [
[
- "48a43a70.160724"
+ "e26eee45.7c83"
]
]
},
{
- "id": "885e3fb2.8834",
+ "id": "9da89aca.da91d8",
"type": "block",
"name": "block : atomic",
"xml": "<block atomic='true'>",
"atomic": "true",
"comments": "",
"outputs": 1,
- "x": 3671.139129638672,
- "y": 4952.4166622161865,
- "z": "5d875c6b.4b4c54",
+ "x": 3563.750343322754,
+ "y": 4798.249975204468,
+ "z": "681fe365.17b79c",
"wires": [
[
- "e016f82d.0fc048",
- "4100e640.65c688",
- "64e216ec.bfca58"
+ "99790677.a54548",
+ "309d6bd3.a93094",
+ "ad094b5c.97bfa8"
]
]
},
{
- "id": "48a43a70.160724",
+ "id": "e26eee45.7c83",
"type": "block",
"name": "block : atomic",
"xml": "<block atomic='true'>",
"atomic": "true",
"comments": "",
"outputs": 1,
- "x": 3680.138885498047,
- "y": 5100.416664838791,
- "z": "5d875c6b.4b4c54",
+ "x": 3570.749954223633,
+ "y": 4953.249977111816,
+ "z": "681fe365.17b79c",
"wires": [
[
- "bec552fc.bfa94"
+ "4088e67f.5cd168"
]
]
},
{
- "id": "bec552fc.bfa94",
+ "id": "4088e67f.5cd168",
"type": "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": 3826.1387634277344,
- "y": 5099.4169063568115,
- "z": "5d875c6b.4b4c54",
+ "x": 3742.7495651245117,
+ "y": 4932.250367164612,
+ "z": "681fe365.17b79c",
"wires": [
[]
]
},
{
- "id": "e016f82d.0fc048",
+ "id": "99790677.a54548",
"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": 3842.1387634277344,
- "y": 5013.416723251343,
- "z": "5d875c6b.4b4c54",
+ "x": 3745.749954223633,
+ "y": 4859.249975204468,
+ "z": "681fe365.17b79c",
"wires": []
},
{
- "id": "4100e640.65c688",
+ "id": "309d6bd3.a93094",
"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": 3837.138885498047,
- "y": 4918.4166622161865,
- "z": "5d875c6b.4b4c54",
+ "x": 3744.7499561309814,
+ "y": 4793.2499742507935,
+ "z": "681fe365.17b79c",
"wires": []
},
{
- "id": "8c35785a.ba3828",
+ "id": "d7bffafc.dfc748",
"type": "block",
"name": "block : atomic",
"xml": "<block atomic='true'>",
"atomic": "true",
"comments": "",
"outputs": 1,
- "x": 3047.388885498047,
- "y": 5377.4166622161865,
- "z": "5d875c6b.4b4c54",
+ "x": 2950,
+ "y": 5279.25000333786,
+ "z": "681fe365.17b79c",
"wires": [
[
- "12e635c0.94b48a",
- "44ed566.8d86fa8",
- "b4de1e89.82b6e",
- "91d81242.ff2b8",
- "315ed92f.8f67d6",
- "78564a5d.1a40a4",
- "b38ec85.557de38",
- "9ff095d2.ab37b8"
+ "2cb1bcc.d127644",
+ "7b13ee3e.1c26e",
+ "d8800150.29cff",
+ "f99b60b4.1820e",
+ "f8fa6067.7b247",
+ "8c5535e2.08e498",
+ "583ca659.cf56a8",
+ "378939d.f9eb1c6"
]
]
},
{
- "id": "12e635c0.94b48a",
+ "id": "2cb1bcc.d127644",
"type": "switchNode",
"name": "ransim mounted",
"xml": "<switch test='`$prop.ransim-mounted`'>\n",
"comments": "",
"outputs": 1,
- "x": 3269.388885498047,
- "y": 5283.4166622161865,
- "z": "5d875c6b.4b4c54",
+ "x": 3173.9999465942383,
+ "y": 5252.249979972839,
+ "z": "681fe365.17b79c",
"wires": [
[
- "428d1db9.79b144",
- "4bd777f4.13f2a8"
+ "6e4ab177.0e2b4",
+ "4f10c4f5.ddb28c"
]
]
},
{
- "id": "428d1db9.79b144",
+ "id": "6e4ab177.0e2b4",
"type": "outcome",
"name": "Not Mounted",
"xml": "<outcome value='false'>\n",
"comments": "",
"outputs": 1,
- "x": 3452.3891220092773,
- "y": 5221.4169921875,
- "z": "5d875c6b.4b4c54",
+ "x": 3366.000144958496,
+ "y": 5206.250370025635,
+ "z": "681fe365.17b79c",
"wires": [
[
- "f40b7948.cce758"
+ "b92f0cf.1b455f"
]
]
},
{
- "id": "f40b7948.cce758",
+ "id": "b92f0cf.1b455f",
"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": 3752.3889923095703,
- "y": 5222.4171142578125,
- "z": "5d875c6b.4b4c54",
+ "x": 3696.0003509521484,
+ "y": 5230.250370025635,
+ "z": "681fe365.17b79c",
"wires": [
[]
]
},
{
- "id": "44ed566.8d86fa8",
+ "id": "7b13ee3e.1c26e",
"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": 3304.388885498047,
- "y": 5355.4166622161865,
- "z": "5d875c6b.4b4c54",
+ "x": 3198.9999465942383,
+ "y": 5319.249980926514,
+ "z": "681fe365.17b79c",
"wires": [
[]
]
},
{
- "id": "b4de1e89.82b6e",
+ "id": "d8800150.29cff",
"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": 3269.388885498047,
- "y": 5407.4166622161865,
- "z": "5d875c6b.4b4c54",
+ "x": 3174.9999465942383,
+ "y": 5376.249981880188,
+ "z": "681fe365.17b79c",
"wires": [
[]
]
},
{
- "id": "91d81242.ff2b8",
+ "id": "f99b60b4.1820e",
"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": 3304.388885498047,
- "y": 5482.4166622161865,
- "z": "5d875c6b.4b4c54",
+ "x": 3209.9999465942383,
+ "y": 5423.249982833862,
+ "z": "681fe365.17b79c",
"wires": [
[
- "adf4c60.a7c5138",
- "ef578ee8.b1e35"
+ "95c3716a.1a3d",
+ "4f022d2.4b19dd4"
]
]
},
{
- "id": "adf4c60.a7c5138",
+ "id": "95c3716a.1a3d",
"type": "failure",
"name": "failure",
"xml": "<outcome value='failure'>\n",
"comments": "",
"outputs": 1,
- "x": 3551.388885498047,
- "y": 5455.4166622161865,
- "z": "5d875c6b.4b4c54",
+ "x": 3433.9999504089355,
+ "y": 5409.249981880188,
+ "z": "681fe365.17b79c",
"wires": [
[
- "28d06dec.581572"
+ "bbcb1256.3447d"
]
]
},
{
- "id": "ef578ee8.b1e35",
+ "id": "4f022d2.4b19dd4",
"type": "success",
"name": "success",
"xml": "<outcome value='success'>\n",
"comments": "",
"outputs": 1,
- "x": 3555.388885498047,
- "y": 5534.4166622161865,
- "z": "5d875c6b.4b4c54",
+ "x": 3461.999954223633,
+ "y": 5469.249982833862,
+ "z": "681fe365.17b79c",
"wires": [
[
- "23a1a2a3.4c62ee"
+ "47b51283.a0079c"
]
]
},
{
- "id": "28d06dec.581572",
+ "id": "bbcb1256.3447d",
"type": "block",
"name": "block : atomic",
"xml": "<block atomic='true'>",
"atomic": "true",
"comments": "",
"outputs": 1,
- "x": 3709.389129638672,
- "y": 5403.4166622161865,
- "z": "5d875c6b.4b4c54",
+ "x": 3598.000343322754,
+ "y": 5393.249980926514,
+ "z": "681fe365.17b79c",
"wires": [
[
- "de4b3cb4.b5216",
- "acd2a528.0b0078",
- "64e216ec.bfca58"
+ "c3e1437a.57e3f",
+ "c5278cf4.749ff",
+ "ad094b5c.97bfa8"
]
]
},
{
- "id": "acd2a528.0b0078",
+ "id": "c5278cf4.749ff",
"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": 3875.388885498047,
- "y": 5369.4166622161865,
- "z": "5d875c6b.4b4c54",
+ "x": 3798.000347137451,
+ "y": 5357.249980926514,
+ "z": "681fe365.17b79c",
"wires": []
},
{
- "id": "de4b3cb4.b5216",
+ "id": "c3e1437a.57e3f",
"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": 3880.3887634277344,
- "y": 5464.416723251343,
- "z": "5d875c6b.4b4c54",
+ "x": 3814.999954223633,
+ "y": 5393.249982833862,
+ "z": "681fe365.17b79c",
"wires": []
},
{
- "id": "23a1a2a3.4c62ee",
+ "id": "47b51283.a0079c",
"type": "block",
"name": "block : atomic",
"xml": "<block atomic='true'>",
"atomic": "true",
"comments": "",
"outputs": 1,
- "x": 3700.6390991210938,
- "y": 5469.1668176651,
- "z": "5d875c6b.4b4c54",
+ "x": 3625.250343322754,
+ "y": 5458.999982833862,
+ "z": "681fe365.17b79c",
"wires": [
[
- "c17f1a79.6a7608",
- "6741f30b.d7331c"
+ "4f25fd97.94b6a4",
+ "8465f71a.65d2a8"
]
]
},
{
- "id": "c17f1a79.6a7608",
+ "id": "4f25fd97.94b6a4",
"type": "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": 3866.88916015625,
- "y": 5509.166816711426,
- "z": "5d875c6b.4b4c54",
+ "x": 3793.500347137451,
+ "y": 5438.999982833862,
+ "z": "681fe365.17b79c",
"wires": [
[]
]
},
{
- "id": "6741f30b.d7331c",
+ "id": "8465f71a.65d2a8",
"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": 3869.3894081115723,
- "y": 5544.666696548462,
- "z": "5d875c6b.4b4c54",
+ "x": 3808.0003509521484,
+ "y": 5483.499982833862,
+ "z": "681fe365.17b79c",
"wires": [
[]
]
},
{
- "id": "315ed92f.8f67d6",
+ "id": "f8fa6067.7b247",
"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 ",
+ "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": 3283.388885498047,
- "y": 5536.4166622161865,
- "z": "5d875c6b.4b4c54",
+ "x": 3181.9999465942383,
+ "y": 5479.249982833862,
+ "z": "681fe365.17b79c",
"wires": [
[]
]
},
{
- "id": "78564a5d.1a40a4",
+ "id": "8c5535e2.08e498",
"type": "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=\"RRMPolicyRatioList size\"/>\n<parameter name=\"field2\" value=\"`$tmp.rrmPolicyRatioList_length`\"/>\n",
+ "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.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": 3223.388885498047,
- "y": 5590.4166622161865,
- "z": "5d875c6b.4b4c54",
+ "x": 3137.9999465942383,
+ "y": 5521.249983787537,
+ "z": "681fe365.17b79c",
"wires": [
[]
]
},
{
- "id": "b38ec85.557de38",
+ "id": "583ca659.cf56a8",
"type": "block",
"name": "rrmPolicyDedicatedRatio",
"xml": "<block atomic='true'>",
"atomic": "true",
"comments": "",
"outputs": 1,
- "x": 3828.3889236450195,
- "y": 5167.416751861572,
- "z": "5d875c6b.4b4c54",
+ "x": 3753.000343322754,
+ "y": 5182.249979019165,
+ "z": "681fe365.17b79c",
"wires": [
[
- "634bf489.b3040c",
- "159ece06.ffdd02",
- "a88709b8.2aa6a8",
- "498fe9d5.172a38",
- "51c45b62.47d2c4",
- "2582027c.6df7ee",
- "754e9802.9ca7c8",
- "666ba66d.e7bd28",
- "a2c01564.2784e8",
- "24ca79c1.9e86e6",
- "325e0169.75ff7e"
+ "11ccc50c.187a6b",
+ "904e2fa9.9a829",
+ "96305e85.1d1dd",
+ "4941850f.50f45c",
+ "7cb77148.10d35",
+ "157ff441.fcb5dc",
+ "e8bb2902.fe7698",
+ "d5ffe250.a083b",
+ "dd5541c0.45d2c",
+ "40cce691.8bb5d8",
+ "4178334.18bdecc"
]
]
},
{
- "id": "a88709b8.2aa6a8",
+ "id": "96305e85.1d1dd",
"type": "set",
"name": "Calculate RRM Parms1",
"xml": "<set>\n<parameter name='tmp.uLThptPerSlice' value='`$payloadJson.input.sliceProfile.uLThptPerSlice`' />\n",
"comments": "",
- "x": 4272.378692626953,
- "y": 4947.739415168762,
- "z": "5d875c6b.4b4c54",
+ "x": 4174.989807128906,
+ "y": 4849.572756290436,
+ "z": "681fe365.17b79c",
"wires": []
},
{
- "id": "498fe9d5.172a38",
+ "id": "4941850f.50f45c",
"type": "set",
"name": "Calculate RRM Parms2",
"xml": "<set>\n<parameter name='tmp.dLThptPerSlice' value='`$payloadJson.input.sliceProfile.dLThptPerSlice`' />\n",
"comments": "",
- "x": 4280.919952392578,
- "y": 4992.759434640408,
- "z": "5d875c6b.4b4c54",
+ "x": 4183.531066894531,
+ "y": 4894.592775762081,
+ "z": "681fe365.17b79c",
"wires": []
},
{
- "id": "51c45b62.47d2c4",
+ "id": "7cb77148.10d35",
"type": "set",
"name": "Calculate RRM Parms3",
"xml": "<set>\n<parameter name='tmp.maxNumberOfConns' value='`$payloadJson.input.sliceProfile.maxNumberOfConns`' />",
"comments": "",
- "x": 4270.920074462891,
- "y": 5047.759312570095,
- "z": "5d875c6b.4b4c54",
+ "x": 4173.531188964844,
+ "y": 4949.592653691769,
+ "z": "681fe365.17b79c",
"wires": []
},
{
- "id": "2582027c.6df7ee",
+ "id": "157ff441.fcb5dc",
"type": "set",
"name": "Calculate RRM Parms4",
"xml": "<set>\n<parameter name='tmp.nearRTRIC.trafficCapacity1' value='`$tmp.uLThptPerSlice + $tmp.dLThptPerSlice`' />\n",
"comments": "",
- "x": 4270.919952392578,
- "y": 5098.7593126297,
- "z": "5d875c6b.4b4c54",
+ "x": 4173.531066894531,
+ "y": 5000.592653751373,
+ "z": "681fe365.17b79c",
"wires": []
},
{
- "id": "754e9802.9ca7c8",
+ "id": "e8bb2902.fe7698",
"type": "set",
"name": "Calculate RRM Parms5",
"xml": "<set>\n<parameter name='tmp.nearRTRIC.trafficCapacity' value='`$tmp.nearRTRIC.trafficCapacity1 / 2`' />",
"comments": "",
- "x": 4258.920074462891,
- "y": 5158.759434640408,
- "z": "5d875c6b.4b4c54",
+ "x": 4161.531188964844,
+ "y": 5060.592775762081,
+ "z": "681fe365.17b79c",
"wires": []
},
{
- "id": "666ba66d.e7bd28",
+ "id": "d5ffe250.a083b",
"type": "set",
"name": "Calculate RRM Parms6",
"xml": "<set>\n<parameter name='tmp.nearRTRIC.trafficCapacityBPS' value='`$tmp.nearRTRIC.trafficCapacity * 1000000`' />",
"comments": "",
- "x": 4296.919952392578,
- "y": 5208.759434640408,
- "z": "5d875c6b.4b4c54",
+ "x": 4199.531066894531,
+ "y": 5110.592775762081,
+ "z": "681fe365.17b79c",
"wires": []
},
{
- "id": "a2c01564.2784e8",
+ "id": "dd5541c0.45d2c",
"type": "set",
"name": "Calculate RRM Parms7",
"xml": "<set>\n<parameter name='tmp.nrcelldu.totalPRBForSNSSAI' value='`$tmp.nearRTRIC.trafficCapacityBPS / 1008000`' />\n",
"comments": "",
- "x": 4283.919891357422,
- "y": 5278.75980091095,
- "z": "5d875c6b.4b4c54",
+ "x": 4186.531005859375,
+ "y": 5180.593142032623,
+ "z": "681fe365.17b79c",
"wires": []
},
{
- "id": "24ca79c1.9e86e6",
+ "id": "40cce691.8bb5d8",
"type": "set",
"name": "calculation8",
"xml": "<set>\n<parameter name='tmp.nrcelldu.PRBPerImpactedCell' value='`$tmp.nrcelldu.totalPRBForSNSSAI / $tmp.cellDUList_length`' />\n",
"comments": "",
- "x": 4254.919891357422,
- "y": 5342.75882434845,
- "z": "5d875c6b.4b4c54",
+ "x": 4157.531005859375,
+ "y": 5244.592165470123,
+ "z": "681fe365.17b79c",
"wires": []
},
{
- "id": "325e0169.75ff7e",
+ "id": "4178334.18bdecc",
"type": "set",
"name": "calculation9",
"xml": "<set>\n<parameter name='tmp.rRMPolicyDedicatedRatio.CellDU1' value='`$tmp.nrcelldu.PRBPerImpactedCell * 100`' />\n",
"comments": "",
- "x": 4242.920440673828,
- "y": 5393.758702278137,
- "z": "5d875c6b.4b4c54",
+ "x": 4145.531555175781,
+ "y": 5295.592043399811,
+ "z": "681fe365.17b79c",
"wires": []
},
{
- "id": "159ece06.ffdd02",
+ "id": "904e2fa9.9a829",
"type": "set",
"name": "calculation10",
"xml": "<set>\n<parameter name='tmp.rRMPolicyDedicatedRatio.CellDU' value='`$tmp.rRMPolicyDedicatedRatio.CellDU1 / $prop.nrcelldu.TotalPRBsPerCell`' />\n",
"comments": "",
- "x": 4218.378753662109,
- "y": 5459.739171028137,
- "z": "5d875c6b.4b4c54",
+ "x": 4120.9898681640625,
+ "y": 5361.572512149811,
+ "z": "681fe365.17b79c",
"wires": []
},
{
- "id": "634bf489.b3040c",
+ "id": "11ccc50c.187a6b",
"type": "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": 4044.3886795043945,
- "y": 5471.86047744751,
- "z": "5d875c6b.4b4c54",
+ "x": 3946.9997940063477,
+ "y": 5373.693818569183,
+ "z": "681fe365.17b79c",
"wires": [
[]
]
},
{
- "id": "9ff095d2.ab37b8",
+ "id": "378939d.f9eb1c6",
"type": "for",
"name": "for each rrmpolicyratio",
"xml": "<for index='iddu-rrm' start='0' end='`$tmp.rrmPolicyRatioDUList_length`' >\n",
"comments": "",
"outputs": 1,
- "x": 3264.638885498047,
- "y": 5661.4166622161865,
- "z": "5d875c6b.4b4c54",
+ "x": 3167.25,
+ "y": 5563.25000333786,
+ "z": "681fe365.17b79c",
"wires": [
[
- "20d39fe.6a4076"
+ "e87917ad.095378"
]
]
},
{
- "id": "20d39fe.6a4076",
+ "id": "e87917ad.095378",
"type": "block",
"name": "block : atomic",
"xml": "<block atomic='true'>",
"atomic": "true",
"comments": "",
"outputs": 1,
- "x": 3485.638885498047,
- "y": 5681.4166622161865,
- "z": "5d875c6b.4b4c54",
+ "x": 3378.250343322754,
+ "y": 5565.249984741211,
+ "z": "681fe365.17b79c",
"wires": [
[
- "39858349.b73dac",
- "ab6c8152.d016f",
- "a3778dfc.3c17b",
- "1dbf0a7e.210a96",
- "5daf7f84.24d9d",
- "f64e2531.bfe9d8",
- "bb5ea2d5.54a8",
- "2c3ebac3.2ff846"
+ "419b3c7a.8d5e74",
+ "4a1ab775.d40cd8",
+ "71190a4a.d6c7d4",
+ "dd0943a9.ce117",
+ "487b5c6e.7df114",
+ "96a66afb.020568",
+ "3dfa7158.bac68e",
+ "fc300b44.066298",
+ "3ced6e0d.d08312",
+ "c65bc00f.5d59c",
+ "3c9a098d.1d1ba6"
]
]
},
{
- "id": "39858349.b73dac",
- "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": 3762.6390380859375,
- "y": 5584.916941642761,
- "z": "5d875c6b.4b4c54",
- "wires": []
- },
- {
- "id": "e7e90fb8.db687",
+ "id": "c3e1a651.fcce08",
"type": "success",
"name": "success",
"xml": "<outcome value='success'>\n",
"comments": "",
"outputs": 1,
- "x": 4079.639045715332,
- "y": 5883.666942596436,
- "z": "5d875c6b.4b4c54",
+ "x": 3982.250160217285,
+ "y": 5785.500283718109,
+ "z": "681fe365.17b79c",
"wires": [
[
- "825d74b8.e0d108"
+ "b504213d.84065"
]
]
},
{
- "id": "825d74b8.e0d108",
+ "id": "b504213d.84065",
"type": "block",
"name": "block : atomic",
"xml": "<block atomic='true'>",
"atomic": "true",
"comments": "",
"outputs": 1,
- "x": 4271.889114379883,
- "y": 5897.416942596436,
- "z": "5d875c6b.4b4c54",
+ "x": 4174.500228881836,
+ "y": 5799.250283718109,
+ "z": "681fe365.17b79c",
"wires": [
[
- "511b666a.0d43b8"
+ "6397a62b.809c88"
]
]
},
{
- "id": "511b666a.0d43b8",
+ "id": "6397a62b.809c88",
"type": "record",
"name": "record",
"xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.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": 4469.38948059082,
- "y": 5888.416704177856,
- "z": "5d875c6b.4b4c54",
+ "x": 4372.000595092773,
+ "y": 5790.25004529953,
+ "z": "681fe365.17b79c",
"wires": [
[]
]
},
{
- "id": "a478b6ee.d92258",
+ "id": "dc141615.33e088",
"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": 4537.638885498047,
- "y": 5916.416433334351,
- "z": "5d875c6b.4b4c54",
+ "x": 4440.25,
+ "y": 5818.249774456024,
+ "z": "681fe365.17b79c",
"wires": []
},
{
- "id": "64d7d924.040e98",
+ "id": "3c5a7f08.76c71",
"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": 4542.638763427734,
- "y": 6011.416494369507,
- "z": "5d875c6b.4b4c54",
+ "x": 4445.2498779296875,
+ "y": 5913.24983549118,
+ "z": "681fe365.17b79c",
"wires": []
},
{
- "id": "bdfeaafa.e54c48",
+ "id": "970932ee.f74e7",
"type": "block",
"name": "block : atomic",
"xml": "<block atomic='true'>",
"atomic": "true",
"comments": "",
"outputs": 1,
- "x": 4297.639129638672,
- "y": 5965.416433334351,
- "z": "5d875c6b.4b4c54",
+ "x": 4200.250244140625,
+ "y": 5867.249774456024,
+ "z": "681fe365.17b79c",
"wires": [
[
- "64d7d924.040e98",
- "a478b6ee.d92258",
- "64e216ec.bfca58"
+ "3c5a7f08.76c71",
+ "dc141615.33e088",
+ "ad094b5c.97bfa8"
]
]
},
{
- "id": "a22a04f6.640d18",
+ "id": "94221c7f.4de61",
"type": "failure",
"name": "failure",
"xml": "<outcome value='failure'>\n",
"comments": "",
"outputs": 1,
- "x": 4078.638885498047,
- "y": 5960.416433334351,
- "z": "5d875c6b.4b4c54",
+ "x": 3981.25,
+ "y": 5862.249774456024,
+ "z": "681fe365.17b79c",
"wires": [
[
- "bdfeaafa.e54c48"
+ "970932ee.f74e7"
]
]
},
{
- "id": "ef4ec23.31a6e4",
- "type": "block",
- "name": "block : atomic",
- "xml": "<block atomic='true'>",
- "atomic": "true",
- "comments": "",
- "outputs": 1,
- "x": 3000.1389770507812,
- "y": 5965.416759490967,
- "z": "5d875c6b.4b4c54",
- "wires": [
- [
- "1a309b6e.c21b05",
- "70d76cd.3265c94",
- "490de212.f261fc",
- "2798ec67.4d5e74"
- ]
- ]
- },
- {
- "id": "1a309b6e.c21b05",
- "type": "execute",
- "name": "Update cellDU for gNBDU in ConfigDB",
- "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"restapiUrl\" value=\"`$prop.configdb.url + $prop.restapi.configdb.updategNBDU`\"/>\n<parameter name=\"templateFileName\" value=\"`$prop.restapi.templateDir + '/ranSlice-configDB-removegNBDU.json'`\" />\n<parameter name=\"httpMethod\" value=\"PUT\"/>\n<parameter name=\"responsePrefix\" value=\"delete-gNBDU-configdb-response\"/>\n<parameter name='contentType' value='application/json' /> \n<parameter name='format' value='json' />\n<parameter name='accept' value='application/json' />\n<parameter name=\"convertResponse\" value=\"true\"/>",
- "comments": "",
- "outputs": 1,
- "x": 3385.639392852783,
- "y": 6067.166706085205,
- "z": "5d875c6b.4b4c54",
- "wires": [
- [
- "4ee14cb4.fb81e4",
- "31e628cb.3dc4a8"
- ]
- ]
- },
- {
- "id": "4ee14cb4.fb81e4",
- "type": "failure",
- "name": "failure",
- "xml": "<outcome value='failure'>\n",
- "comments": "",
- "outputs": 1,
- "x": 3718.888973236084,
- "y": 6048.167682647705,
- "z": "5d875c6b.4b4c54",
- "wires": [
- [
- "e1bf2b3d.d3b538"
- ]
- ]
- },
- {
- "id": "31e628cb.3dc4a8",
- "type": "success",
- "name": "success",
- "xml": "<outcome value='success'>\n",
- "comments": "",
- "outputs": 1,
- "x": 3650.3891563415527,
- "y": 6135.416828155518,
- "z": "5d875c6b.4b4c54",
- "wires": [
- [
- "4e838663.bb3798"
- ]
- ]
- },
- {
- "id": "4e838663.bb3798",
- "type": "block",
- "name": "block",
- "xml": "<block>\n",
- "atomic": "false",
- "comments": "",
- "outputs": 1,
- "x": 3785.138870239258,
- "y": 6126.416723251343,
- "z": "5d875c6b.4b4c54",
- "wires": [
- [
- "fa9fe57c.0337a8"
- ]
- ]
- },
- {
- "id": "e1bf2b3d.d3b538",
- "type": "block",
- "name": "block : atomic",
- "xml": "<block atomic='true'>",
- "atomic": "true",
- "comments": "",
- "outputs": 1,
- "x": 3942.138885498047,
- "y": 6060.4166622161865,
- "z": "5d875c6b.4b4c54",
- "wires": [
- [
- "ec043b60.9fe7e8",
- "a6de0614.1f1bc8",
- "64e216ec.bfca58"
- ]
- ]
- },
- {
- "id": "a6de0614.1f1bc8",
- "type": "set",
- "name": "set",
- "xml": "<set>\n<parameter name='error-code' value='500'/>\n<parameter name='error-message' value='Error in updating Config DB - NRCellDU. Aborting RPC executiopn'/>",
- "comments": "",
- "x": 4108.138687133789,
- "y": 6028.416650772095,
- "z": "5d875c6b.4b4c54",
- "wires": []
- },
- {
- "id": "fa9fe57c.0337a8",
- "type": "record",
- "name": "record",
- "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.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 ConfigDB - NRCellCU pLMNinfo \"/>",
- "comments": "",
- "outputs": 1,
- "x": 3949.138885498047,
- "y": 6132.4166622161865,
- "z": "5d875c6b.4b4c54",
- "wires": [
- []
- ]
- },
- {
- "id": "ec043b60.9fe7e8",
- "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 NRCellDU-PLMNInfo in ConfigDB. Aborting RPC executiopn'/>",
- "comments": "",
- "x": 4113.138519287109,
- "y": 6121.416723251343,
- "z": "5d875c6b.4b4c54",
- "wires": []
- },
- {
- "id": "48ca54bd.5a394c",
- "type": "set",
- "name": "set",
- "xml": "<set>\n<parameter name='error-code' value='500'/>\n<parameter name='error-message' value='Error in updating RRMPolicyRatio - NRCellDU. Aborting RPC executiopn'/>",
- "comments": "",
- "x": 4151.138687133789,
- "y": 6172.416650772095,
- "z": "5d875c6b.4b4c54",
- "wires": []
- },
- {
- "id": "f8f5aab8.7e3878",
- "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 NRCellDU-RRMPolicyRatio in ConfigDB. Aborting RPC executiopn'/>",
- "comments": "",
- "x": 4156.138565063477,
- "y": 6267.416711807251,
- "z": "5d875c6b.4b4c54",
- "wires": []
- },
- {
- "id": "ce49ccfd.1e8be",
- "type": "block",
- "name": "block : atomic",
- "xml": "<block atomic='true'>",
- "atomic": "true",
- "comments": "",
- "outputs": 1,
- "x": 3985.138931274414,
- "y": 6206.416650772095,
- "z": "5d875c6b.4b4c54",
- "wires": [
- [
- "f8f5aab8.7e3878",
- "48ca54bd.5a394c",
- "64e216ec.bfca58"
- ]
- ]
- },
- {
- "id": "af583334.1944",
- "type": "failure",
- "name": "failure",
- "xml": "<outcome value='failure'>\n",
- "comments": "",
- "outputs": 1,
- "x": 3782.138931274414,
- "y": 6209.416650772095,
- "z": "5d875c6b.4b4c54",
- "wires": [
- [
- "ce49ccfd.1e8be"
- ]
- ]
- },
- {
- "id": "70d76cd.3265c94",
- "type": "execute",
- "name": "Update RRMPolicy for gNBDU in ConfigDB",
- "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"restapiUrl\" value=\"`$prop.configdb.url + $prop.restapi.configdb.updateRRMPolicy`\"/>\n<parameter name=\"templateFileName\" value=\"`$prop.restapi.templateDir + '/ranSlice-configDB-removeRRMPolicy-DU.json'`\" />\n<parameter name=\"httpMethod\" value=\"PUT\"/>\n<parameter name=\"responsePrefix\" value=\"delete-gNBDU-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": 3352.8890380859375,
- "y": 6294.417080402374,
- "z": "5d875c6b.4b4c54",
- "wires": [
- [
- "af583334.1944",
- "64e93d9a.136f54"
- ]
- ]
- },
- {
- "id": "64e93d9a.136f54",
- "type": "success",
- "name": "success",
- "xml": "<outcome value='success'>\n",
- "comments": "",
- "outputs": 1,
- "x": 3782.138931274414,
- "y": 6319.41640663147,
- "z": "5d875c6b.4b4c54",
- "wires": [
- [
- "db60e771.2ddaa8"
- ]
- ]
- },
- {
- "id": "db60e771.2ddaa8",
- "type": "block",
- "name": "block",
- "xml": "<block>\n",
- "atomic": "false",
- "comments": "",
- "outputs": 1,
- "x": 3963.138931274414,
- "y": 6313.416650772095,
- "z": "5d875c6b.4b4c54",
- "wires": [
- [
- "c990aeec.68c73"
- ]
- ]
- },
- {
- "id": "c990aeec.68c73",
- "type": "record",
- "name": "record",
- "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.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 ConfigDB - NRCellDU RRMPolicyRatio \"/>",
- "comments": "",
- "outputs": 1,
- "x": 4129.138931274414,
- "y": 6314.416650772095,
- "z": "5d875c6b.4b4c54",
- "wires": [
- []
- ]
- },
- {
- "id": "64e216ec.bfca58",
+ "id": "ad094b5c.97bfa8",
"type": "block",
"name": "block : SO Response",
"xml": "<block atomic='true'>",
"atomic": "true",
"comments": "",
"outputs": 1,
- "x": 4622.123260498047,
- "y": 2865.416664838791,
- "z": "5d875c6b.4b4c54",
+ "x": 4524.734375,
+ "y": 2767.2500059604645,
+ "z": "681fe365.17b79c",
"wires": [
[
- "7e38f9a7.15f508",
- "bab3223.d7f4fe",
- "928303ce.8f62"
+ "f9776580.bee4c8",
+ "e6e71565.4b3c58",
+ "90776720.3db8a8"
]
]
},
{
- "id": "7e38f9a7.15f508",
+ "id": "f9776580.bee4c8",
"type": "set",
"name": "set tmp variables for SO response",
- "xml": "<set>\n<parameter name=\"tmp.so.callbackURL\" value=\"`$payloadJson.input.callbackURL`\"/>\n<parameter name=\"tmp.status\" value=\"`$error-code`\"/>\n<parameter name=\"tmp.reason\" value=\"`$error-message`\"/>\n<parameter name=\"tmp.requestID\" value=\"`$terminateRANSlice-input.common-header.request-id`\"/>\n<parameter name=\"tmp.action\" value=\"`$terminateRANSlice-input.action`\"/>\n",
+ "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": 5284.124237060547,
- "y": 2657.316323041916,
- "z": "5d875c6b.4b4c54",
+ "x": 5186.7353515625,
+ "y": 2559.1496641635895,
+ "z": "681fe365.17b79c",
"wires": []
},
{
- "id": "bab3223.d7f4fe",
+ "id": "e6e71565.4b3c58",
"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": 5259.123123168945,
- "y": 2754.4170005321503,
- "z": "5d875c6b.4b4c54",
+ "x": 5161.734237670898,
+ "y": 2656.250341653824,
+ "z": "681fe365.17b79c",
"wires": [
[]
]
},
{
- "id": "928303ce.8f62",
+ "id": "90776720.3db8a8",
"type": "execute",
"name": "Send to SO",
- "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"templateFileName\" value=\"`$prop.restapi.templateDir + '/ranSlice-so-response.json'`\" />\n<parameter name=\"restapiUrl\" value=\"`$tmp.so.callbackURL`\"/>\n<parameter name=\"httpMethod\" value=\"POST\"/>\n<parameter name=\"responsePrefix\" value=\"so-callback-modify-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\"/>",
+ "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": 5174.123134613037,
- "y": 2851.4168784618378,
- "z": "5d875c6b.4b4c54",
+ "x": 5076.73424911499,
+ "y": 2753.2502195835114,
+ "z": "681fe365.17b79c",
"wires": [
[
- "cd9528a9.ad16b8",
- "e7a3b171.83c7a"
+ "8d0fa9f7.b2b218",
+ "36ba5058.4e65f"
]
]
},
{
- "id": "cd9528a9.ad16b8",
+ "id": "8d0fa9f7.b2b218",
"type": "failure",
"name": "failure",
"xml": "<outcome value='failure'>\n",
"comments": "",
"outputs": 1,
- "x": 5400.123143196106,
- "y": 2828.4168474674225,
- "z": "5d875c6b.4b4c54",
+ "x": 5302.734257698059,
+ "y": 2730.250188589096,
+ "z": "681fe365.17b79c",
"wires": [
[
- "f8e2ec4a.dfccb"
+ "fe48ffab.88a9e"
]
]
},
{
- "id": "e7a3b171.83c7a",
+ "id": "36ba5058.4e65f",
"type": "success",
"name": "success",
"xml": "<outcome value='success'>\n",
"comments": "",
"outputs": 1,
- "x": 5390.122997283936,
- "y": 2936.4167869091034,
- "z": "5d875c6b.4b4c54",
+ "x": 5292.734111785889,
+ "y": 2838.250128030777,
+ "z": "681fe365.17b79c",
"wires": [
[
- "3a2d6420.fda44c"
+ "1d31c34d.eb9cad"
]
]
},
{
- "id": "3a2d6420.fda44c",
+ "id": "1d31c34d.eb9cad",
"type": "block",
"name": "block",
"xml": "<block>\n",
"atomic": "false",
"comments": "",
"outputs": 1,
- "x": 5540.122783660889,
- "y": 2955.4168479442596,
- "z": "5d875c6b.4b4c54",
+ "x": 5442.733898162842,
+ "y": 2857.2501890659332,
+ "z": "681fe365.17b79c",
"wires": [
[
- "fbfe90f9.d6f22"
+ "c7521a04.23d468"
]
]
},
{
- "id": "f8e2ec4a.dfccb",
+ "id": "fe48ffab.88a9e",
"type": "block",
"name": "block",
"xml": "<block>\n",
"atomic": "false",
"comments": "",
"outputs": 1,
- "x": 5551.123012542725,
- "y": 2823.416969537735,
- "z": "5d875c6b.4b4c54",
+ "x": 5453.734127044678,
+ "y": 2725.2503106594086,
+ "z": "681fe365.17b79c",
"wires": [
[
- "7ff5477a.f56748"
+ "38ef15b7.f3c28a"
]
]
},
{
- "id": "7ff5477a.f56748",
+ "id": "38ef15b7.f3c28a",
"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": 5717.122692108154,
- "y": 2826.4167869091034,
- "z": "5d875c6b.4b4c54",
+ "x": 5619.733806610107,
+ "y": 2728.250128030777,
+ "z": "681fe365.17b79c",
"wires": []
},
{
- "id": "fbfe90f9.d6f22",
+ "id": "c7521a04.23d468",
"type": "record",
"name": "record",
"xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.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": 5704.122798919678,
- "y": 2961.4167869091034,
- "z": "5d875c6b.4b4c54",
+ "x": 5606.733913421631,
+ "y": 2863.250128030777,
+ "z": "681fe365.17b79c",
"wires": [
[]
]
},
{
- "id": "4f957f97.ee3ed",
+ "id": "cf25ee61.62168",
"type": "block",
"name": "SO Response",
"xml": "<block atomic='true'>",
"atomic": "true",
"comments": "",
"outputs": 1,
- "x": 704.1232604980469,
- "y": 4547.416664838791,
- "z": "5d875c6b.4b4c54",
+ "x": 606.734375,
+ "y": 4449.2500059604645,
+ "z": "681fe365.17b79c",
"wires": [
[
- "25656d42.c8b032",
- "22d1099c.43c226",
- "ca075afd.0fd808",
- "3fe55660.cbf3ea"
+ "a9f82ab9.becff8",
+ "543afd90.024e64",
+ "3a69da65.01ea36",
+ "de0a0ada.a67e18"
]
]
},
{
- "id": "ca075afd.0fd808",
+ "id": "3a69da65.01ea36",
"type": "set",
"name": "set tmp variables for SO response",
- "xml": "<set>\n<parameter name=\"tmp.status\" value=\"`$error-code`\"/>\n<parameter name=\"tmp.reason\" value=\"`$error-message`\"/>\n<parameter name=\"tmp.requestID\" value=\"`$instantiate-r-a-n-slice-input.common-header.request-id `\"/>\n<parameter name=\"tmp.action\" value=\"`$instantiate-r-a-n-slice-input.action`\"/>\n",
+ "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": 984.1244049072266,
- "y": 4397.31614947319,
- "z": "5d875c6b.4b4c54",
+ "x": 886.7355194091797,
+ "y": 4299.149490594864,
+ "z": "681fe365.17b79c",
"wires": []
},
{
- "id": "25656d42.c8b032",
+ "id": "a9f82ab9.becff8",
"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": 981.1232376098633,
- "y": 4551.41684794426,
- "z": "5d875c6b.4b4c54",
+ "x": 883.7343521118164,
+ "y": 4453.250189065933,
+ "z": "681fe365.17b79c",
"wires": [
[]
]
},
{
- "id": "22d1099c.43c226",
+ "id": "543afd90.024e64",
"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-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`\"/>",
+ "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": 850.1233367919922,
- "y": 4668.416552305222,
- "z": "5d875c6b.4b4c54",
+ "x": 752.7344512939453,
+ "y": 4570.249893426895,
+ "z": "681fe365.17b79c",
"wires": [
[
- "bc258777.679b68",
- "e00f36fe.17df48"
+ "daba264f.1664e8",
+ "c73e7e93.b685c"
]
]
},
{
- "id": "bc258777.679b68",
+ "id": "daba264f.1664e8",
"type": "failure",
"name": "failure",
"xml": "<outcome value='failure'>\n",
"comments": "",
"outputs": 1,
- "x": 1015.1233367919922,
- "y": 4648.416551351547,
- "z": "5d875c6b.4b4c54",
+ "x": 917.7344512939453,
+ "y": 4550.249892473221,
+ "z": "681fe365.17b79c",
"wires": [
[
- "cff1dd31.41661"
+ "c0deb7fa.b4f218"
]
]
},
{
- "id": "e00f36fe.17df48",
+ "id": "c73e7e93.b685c",
"type": "success",
"name": "success",
"xml": "<outcome value='success'>\n",
"comments": "",
"outputs": 1,
- "x": 1007.1232299804688,
- "y": 4721.416501760483,
- "z": "5d875c6b.4b4c54",
+ "x": 909.7343444824219,
+ "y": 4623.249842882156,
+ "z": "681fe365.17b79c",
"wires": [
[
- "8ec407a6.4e6bf8"
+ "fada3fce.c1f98"
]
]
},
{
- "id": "8ec407a6.4e6bf8",
+ "id": "fada3fce.c1f98",
"type": "block",
"name": "block",
"xml": "<block>\n",
"atomic": "false",
"comments": "",
"outputs": 1,
- "x": 1153.1230735778809,
- "y": 4726.416610479355,
- "z": "5d875c6b.4b4c54",
+ "x": 1055.734188079834,
+ "y": 4628.249951601028,
+ "z": "681fe365.17b79c",
"wires": [
[
- "53cd4c85.4aa104"
+ "ca3537bf.0c5cc8"
]
]
},
{
- "id": "cff1dd31.41661",
+ "id": "c0deb7fa.b4f218",
"type": "block",
"name": "block",
"xml": "<block>\n",
"atomic": "false",
"comments": "",
"outputs": 1,
- "x": 1164.1232376098633,
- "y": 4644.4166867733,
- "z": "5d875c6b.4b4c54",
+ "x": 1066.7343521118164,
+ "y": 4546.250027894974,
+ "z": "681fe365.17b79c",
"wires": [
[
- "de73ae6a.42914",
- "5c2df1a3.ca7d1"
+ "d580c3df.332cf",
+ "797d20ce.18396"
]
]
},
{
- "id": "de73ae6a.42914",
+ "id": "d580c3df.332cf",
"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": 1311.1228561401367,
- "y": 4655.41642832756,
- "z": "5d875c6b.4b4c54",
+ "x": 1213.7339706420898,
+ "y": 4557.249769449234,
+ "z": "681fe365.17b79c",
"wires": []
},
{
- "id": "53cd4c85.4aa104",
+ "id": "ca3537bf.0c5cc8",
"type": "record",
"name": "record",
"xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.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": 1314.1229934692383,
- "y": 4732.416502714157,
- "z": "5d875c6b.4b4c54",
+ "x": 1216.7341079711914,
+ "y": 4634.249843835831,
+ "z": "681fe365.17b79c",
"wires": [
[]
]
},
{
- "id": "5c2df1a3.ca7d1",
+ "id": "797d20ce.18396",
"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": 1298.6334648132324,
- "y": 4559.405919790268,
- "z": "5d875c6b.4b4c54",
+ "x": 1201.2445793151855,
+ "y": 4461.2392609119415,
+ "z": "681fe365.17b79c",
"wires": []
},
{
- "id": "3fe55660.cbf3ea",
+ "id": "de0a0ada.a67e18",
"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": 1003.4628601074219,
- "y": 4487.402002096176,
- "z": "5d875c6b.4b4c54",
+ "x": 906.073974609375,
+ "y": 4389.23534321785,
+ "z": "681fe365.17b79c",
"wires": [
[]
]
},
{
- "id": "910f0fe5.fe248",
+ "id": "9e6c15e.198abe8",
"type": "outcome",
"name": "Mounted",
"xml": "<outcome value='true'>\n",
"comments": "",
"outputs": 1,
- "x": 2405.638885498047,
- "y": 1862.4166622161865,
- "z": "5d875c6b.4b4c54",
+ "x": 2308.25,
+ "y": 1764.25000333786,
+ "z": "681fe365.17b79c",
"wires": [
[
- "14202f76.802311"
+ "e0ee586e.2501d8"
]
]
},
{
- "id": "14202f76.802311",
+ "id": "e0ee586e.2501d8",
"type": "block",
"name": "ransim URL",
"xml": "<block atomic='true'>",
"atomic": "true",
"comments": "",
"outputs": 1,
- "x": 2598.6285438537598,
- "y": 1862.416784286499,
- "z": "5d875c6b.4b4c54",
+ "x": 2501.239658355713,
+ "y": 1764.2501254081726,
+ "z": "681fe365.17b79c",
"wires": [
[
- "114a5f29.b92ff1",
- "42d91e90.23ffa"
+ "28e68584.b3e98a",
+ "1efb01ae.c8758e"
]
]
},
{
- "id": "114a5f29.b92ff1",
+ "id": "28e68584.b3e98a",
"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": 2905.628730773926,
- "y": 1829.4168853759766,
- "z": "5d875c6b.4b4c54",
+ "x": 2808.239845275879,
+ "y": 1731.2502264976501,
+ "z": "681fe365.17b79c",
"wires": [
[]
]
},
{
- "id": "42d91e90.23ffa",
+ "id": "1efb01ae.c8758e",
"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": 2849.6291313171387,
- "y": 1882.4170789718628,
- "z": "5d875c6b.4b4c54",
+ "x": 2752.240245819092,
+ "y": 1784.2504200935364,
+ "z": "681fe365.17b79c",
"wires": [
[]
]
},
{
- "id": "f574854d.da65d8",
+ "id": "774ee683.2fa458",
"type": "block",
"name": "ransim URL",
"xml": "<block atomic='true'>",
"atomic": "true",
"comments": "",
"outputs": 1,
- "x": 2833.138885498047,
- "y": 1246.4166622161865,
- "z": "5d875c6b.4b4c54",
+ "x": 2735.75,
+ "y": 1148.25000333786,
+ "z": "681fe365.17b79c",
"wires": [
[
- "f009c4f0.43b2a8",
- "7d64db96.14d294"
+ "2e1becad.7be994",
+ "f0034ce.5cce0b"
]
]
},
{
- "id": "7d64db96.14d294",
+ "id": "f0034ce.5cce0b",
"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": 3084.139316558838,
- "y": 1269.4167947769165,
- "z": "5d875c6b.4b4c54",
+ "x": 2986.750431060791,
+ "y": 1171.25013589859,
+ "z": "681fe365.17b79c",
"wires": [
[]
]
},
{
- "id": "f009c4f0.43b2a8",
+ "id": "2e1becad.7be994",
"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": 3140.138916015625,
- "y": 1216.4166011810303,
- "z": "5d875c6b.4b4c54",
+ "x": 3042.750030517578,
+ "y": 1118.2499423027039,
+ "z": "681fe365.17b79c",
"wires": [
[]
]
},
{
- "id": "15d65f32.603751",
+ "id": "9d08a978.89ba88",
"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": 2910.638900756836,
- "y": 2911.4170055389404,
- "z": "5d875c6b.4b4c54",
+ "x": 2813.250015258789,
+ "y": 2813.250346660614,
+ "z": "681fe365.17b79c",
"wires": [
[]
]
},
{
- "id": "8b1d30dd.fa96b",
+ "id": "fd81f49d.284fc8",
"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": 2984.6386108398438,
- "y": 2860.416759490967,
- "z": "5d875c6b.4b4c54",
+ "x": 2887.249725341797,
+ "y": 2762.2501006126404,
+ "z": "681fe365.17b79c",
"wires": [
[]
]
},
{
- "id": "2649f371.df5dbc",
+ "id": "80f5bdc1.78aaf",
"type": "block",
"name": "ransim URL",
"xml": "<block atomic='true'>",
"atomic": "true",
"comments": "",
"outputs": 1,
- "x": 2664.6385650634766,
- "y": 2898.416750907898,
- "z": "5d875c6b.4b4c54",
+ "x": 2567.2496795654297,
+ "y": 2800.2500920295715,
+ "z": "681fe365.17b79c",
"wires": [
[
- "8b1d30dd.fa96b",
- "15d65f32.603751"
+ "fd81f49d.284fc8",
+ "9d08a978.89ba88"
]
]
},
{
- "id": "e085629b.c369c",
+ "id": "e56d8930.4e9058",
"type": "block",
"name": "ransim URL",
"xml": "<block atomic='true'>",
"atomic": "true",
"comments": "",
"outputs": 1,
- "x": 2152.638885498047,
- "y": 3243.4166622161865,
- "z": "5d875c6b.4b4c54",
+ "x": 2078.2499809265137,
+ "y": 3244.2499494552612,
+ "z": "681fe365.17b79c",
"wires": [
[
- "ded9797.34dca88",
- "49310d49.69ecd4"
+ "12f718ef.cb46b7",
+ "9816acdf.8076e"
]
]
},
{
- "id": "ded9797.34dca88",
+ "id": "12f718ef.cb46b7",
"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": 2454.6388206481934,
- "y": 3203.416723251343,
- "z": "5d875c6b.4b4c54",
+ "x": 2345.249984741211,
+ "y": 3177.249948501587,
+ "z": "681fe365.17b79c",
"wires": [
[]
]
},
{
- "id": "49310d49.69ecd4",
+ "id": "9816acdf.8076e",
"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": 2398.6392211914062,
- "y": 3256.416916847229,
- "z": "5d875c6b.4b4c54",
+ "x": 2319.2501792907715,
+ "y": 3216.250144958496,
+ "z": "681fe365.17b79c",
"wires": [
[]
]
},
{
- "id": "7575da63.dd4fa4",
+ "id": "2406512.40e87ae",
"type": "outcome",
"name": "Mounted",
"xml": "<outcome value='true'>\n",
"comments": "",
"outputs": 1,
- "x": 1925.1388854980469,
- "y": 3252.4166622161865,
- "z": "5d875c6b.4b4c54",
+ "x": 1869.7499771118164,
+ "y": 3250.2499504089355,
+ "z": "681fe365.17b79c",
"wires": [
[
- "e085629b.c369c"
+ "e56d8930.4e9058"
]
]
},
{
- "id": "92f49b5d.cdaff8",
+ "id": "579d239c.3fb1cc",
"type": "block",
"name": "ransim URL",
"xml": "<block atomic='true'>",
"atomic": "true",
"comments": "",
"outputs": 1,
- "x": 3575.138885498047,
- "y": 4681.4166622161865,
- "z": "5d875c6b.4b4c54",
+ "x": 3477.75,
+ "y": 4583.25000333786,
+ "z": "681fe365.17b79c",
"wires": [
[
- "399ca7bd.018e18",
- "8be46c41.8c25c"
+ "e037676b.f3dec8",
+ "d5b1d8c4.61ddd8"
]
]
},
{
- "id": "399ca7bd.018e18",
+ "id": "e037676b.f3dec8",
"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": 3882.138916015625,
- "y": 4651.41660118103,
- "z": "5d875c6b.4b4c54",
+ "x": 3784.750030517578,
+ "y": 4553.249942302704,
+ "z": "681fe365.17b79c",
"wires": [
[]
]
},
{
- "id": "8be46c41.8c25c",
+ "id": "d5b1d8c4.61ddd8",
"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": 3826.139316558838,
- "y": 4704.4167947769165,
- "z": "5d875c6b.4b4c54",
+ "x": 3728.750431060791,
+ "y": 4606.25013589859,
+ "z": "681fe365.17b79c",
"wires": [
[]
]
},
{
- "id": "4bd777f4.13f2a8",
+ "id": "4f10c4f5.ddb28c",
"type": "outcome",
"name": "Mounted",
"xml": "<outcome value='true'>\n",
"comments": "",
"outputs": 1,
- "x": 3471.888885498047,
- "y": 5304.4166622161865,
- "z": "5d875c6b.4b4c54",
+ "x": 3368.4999504089355,
+ "y": 5273.249979019165,
+ "z": "681fe365.17b79c",
"wires": [
[
- "47171b0f.01aa44"
+ "18f37305.8b516d"
]
]
},
{
- "id": "47171b0f.01aa44",
+ "id": "18f37305.8b516d",
"type": "block",
"name": "ransim URL",
"xml": "<block atomic='true'>",
"atomic": "true",
"comments": "",
"outputs": 1,
- "x": 3638.88911819458,
- "y": 5302.666259765625,
- "z": "5d875c6b.4b4c54",
+ "x": 3529.500343322754,
+ "y": 5329.499589920044,
+ "z": "681fe365.17b79c",
"wires": [
[
- "b563af73.92284",
- "52090741.a98b48"
+ "46cef023.14095",
+ "52cab61a.9b69a8"
]
]
},
{
- "id": "b563af73.92284",
+ "id": "46cef023.14095",
"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": 3885.8889350891113,
- "y": 5269.666259765625,
- "z": "5d875c6b.4b4c54",
+ "x": 3779.5003509521484,
+ "y": 5273.49958896637,
+ "z": "681fe365.17b79c",
"wires": [
[]
]
},
{
- "id": "52090741.a98b48",
+ "id": "52cab61a.9b69a8",
"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": 3828.8894233703613,
- "y": 5330.6666259765625,
- "z": "5d875c6b.4b4c54",
+ "x": 3770.500343322754,
+ "y": 5314.499980926514,
+ "z": "681fe365.17b79c",
"wires": [
[]
]
},
{
- "id": "fa8b103b.c90c4",
+ "id": "cd2aa7b2.90ac88",
"type": "comment",
"name": "terminateRANSliceInstance/instantiateRANSliceModifyDeallocate",
"info": "",
"comments": "",
- "x": 927.8889141082764,
- "y": 136.66666221618652,
- "z": "5d875c6b.4b4c54",
+ "x": 830.5000286102295,
+ "y": 38.50000333786011,
+ "z": "681fe365.17b79c",
"wires": []
},
{
- "id": "7fa621ae.c91f3",
+ "id": "1de52104.ed19af",
"type": "record",
"name": "record",
- "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.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-input.action`\"/>\n<parameter name=\"field3\" value=\"`$terminate-r-a-n-slice-input.common-header.timestamp`\"/>\n<parameter name=\"field4\" value=\"`$terminate-r-a-n-slice-input.common-header.request-id`\"/>\n<parameter name=\"field5\" value=\"`$terminate-r-a-n-slice-input.common-header.originator-id`\"/>\n<parameter name=\"field6\" value=\"RPC Payload String \"/>\n<parameter name=\"field7\" value=\"`$terminate-r-a-n-slice-input.payload`\"/>",
+ "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.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": 758.1388778686523,
- "y": 238.9166464805603,
- "z": "5d875c6b.4b4c54",
+ "x": 530.7500076293945,
+ "y": 75.74999284744263,
+ "z": "681fe365.17b79c",
"wires": [
[]
]
},
{
- "id": "b7f191d.9954e7",
+ "id": "9122bb4.b278948",
"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": 807.1386337280273,
- "y": 286.916663646698,
- "z": "5d875c6b.4b4c54",
+ "x": 636.7497634887695,
+ "y": 129.75000619888306,
+ "z": "681fe365.17b79c",
"wires": []
},
{
- "id": "485b1e79.bbde2",
+ "id": "29a4c2d.d7ff73e",
"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-input.payload' />\n\t<parameter name='outputPath' value='payloadJson' />\n\t<parameter name='isEscaped' value='false' />",
+ "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": 807.1386337280273,
- "y": 327.91661405563354,
- "z": "5d875c6b.4b4c54",
+ "x": 671.7497253417969,
+ "y": 273.73954677581787,
+ "z": "681fe365.17b79c",
"wires": [
- [
- "3d0c87b9.c409a8"
- ]
+ []
]
},
{
- "id": "30294ae6.eaaeb6",
+ "id": "598df4a4.b19ffc",
"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",
+ "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": 769.1386108398438,
- "y": 371.9062056541443,
- "z": "5d875c6b.4b4c54",
+ "x": 691.7497100830078,
+ "y": 314.7499122619629,
+ "z": "681fe365.17b79c",
"wires": [
[]
]
},
{
- "id": "941bdbd9.3f4b08",
+ "id": "3a4a34c3.80f96c",
+ "type": "record",
+ "name": "record",
+ "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.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": 702.7497787475586,
+ "y": 384.49999380111694,
+ "z": "681fe365.17b79c",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "55ae2ce.34cb9d4",
"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",
+ "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": 789.1385955810547,
- "y": 412.9165711402893,
- "z": "5d875c6b.4b4c54",
+ "x": 652.2499923706055,
+ "y": 635.750027179718,
+ "z": "681fe365.17b79c",
"wires": [
[]
]
},
{
- "id": "7597a7a3.d53198",
+ "id": "4e6886e3.a23638",
"type": "record",
"name": "record",
- "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.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`\"/>",
+ "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.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": 800.1386642456055,
- "y": 482.66665267944336,
- "z": "5d875c6b.4b4c54",
+ "x": 623.2500228881836,
+ "y": 697.5000519752502,
+ "z": "681fe365.17b79c",
"wires": [
[]
]
},
{
- "id": "3d0c87b9.c409a8",
- "type": "other",
+ "id": "48fde408.564d5c",
+ "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": 688.2500076293945,
+ "y": 757.250006198883,
+ "z": "681fe365.17b79c",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "47449884.5cadd8",
+ "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": 641.25,
+ "y": 815.2500548362732,
+ "z": "681fe365.17b79c",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "477a6692.3ec148",
+ "type": "record",
+ "name": "record",
+ "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.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": 631.4935302734375,
+ "y": 982.493510723114,
+ "z": "681fe365.17b79c",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "84a59109.b2389",
+ "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": 2117.7776947021484,
+ "y": 545.7221846580505,
+ "z": "681fe365.17b79c",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "8d0a43d7.ec465",
+ "type": "for",
+ "name": "for each rrmpolicyMember",
+ "xml": "<for index='idcu-rrm1' start='0' end='`$tmp.NRCellCURRMPolicyMembersLength`' >\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2586.749767303467,
+ "y": 2259.333149433136,
+ "z": "681fe365.17b79c",
+ "wires": [
+ [
+ "ee23469d.b1eb28"
+ ]
+ ]
+ },
+ {
+ "id": "ee23469d.b1eb28",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 2816.416763305664,
+ "y": 2259.444282054901,
+ "z": "681fe365.17b79c",
+ "wires": [
+ [
+ "7a818a33.d6fc14",
+ "d175e82a.acb388",
+ "1628cada.6921f5",
+ "2fd77fd1.e4a59",
+ "441562fc.91809c"
+ ]
+ ]
+ },
+ {
+ "id": "7a818a33.d6fc14",
+ "type": "switchNode",
+ "name": "if length > 0 ",
+ "xml": "<switch test='`$tmp.NRCellCURRMPolicyMembersLength > 0`'>\n\n \n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2955.583595275879,
+ "y": 2172.583086490631,
+ "z": "681fe365.17b79c",
+ "wires": [
+ [
+ "91adb60a.8cb418",
+ "1bcd314.a7b9ccf"
+ ]
+ ]
+ },
+ {
+ "id": "91adb60a.8cb418",
+ "type": "success",
"name": "success",
- "xml": "<outcome value='success'>\n",
+ "xml": "<outcome value='true'>\n",
"comments": "",
"outputs": 1,
- "x": 1092.3886260986328,
- "y": 391.1666407585144,
- "z": "5d875c6b.4b4c54",
+ "x": 3107.250068664551,
+ "y": 2147.1385684013367,
+ "z": "681fe365.17b79c",
"wires": [
[
- "d21bad35.2f372"
+ "30d013b8.c7e45c"
]
]
},
{
- "id": "d21bad35.2f372",
+ "id": "30d013b8.c7e45c",
"type": "block",
"name": "block : atomic",
"xml": "<block atomic='true'>",
"atomic": "true",
"comments": "",
"outputs": 1,
- "x": 1272.3887939453125,
- "y": 385.1666407585144,
- "z": "5d875c6b.4b4c54",
+ "x": 3273.9164695739746,
+ "y": 2148.1389441490173,
+ "z": "681fe365.17b79c",
"wires": [
[
- "faedc62b.fa4868",
- "b34d2337.c36bb",
- "36a4dafe.d19156"
+ "93669e64.a3703"
]
]
},
{
- "id": "faedc62b.fa4868",
+ "id": "93669e64.a3703",
+ "type": "switchNode",
+ "name": "ransim mounted",
+ "xml": "<switch test='`$prop.ransim-mounted`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 3121.694351196289,
+ "y": 2027.027679681778,
+ "z": "681fe365.17b79c",
+ "wires": [
+ [
+ "770075a9.f6528c",
+ "42f3ed4d.e7f564"
+ ]
+ ]
+ },
+ {
+ "id": "770075a9.f6528c",
+ "type": "outcome",
+ "name": "Not Mounted",
+ "xml": "<outcome value='false'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 3365.028091430664,
+ "y": 2042.9163584709167,
+ "z": "681fe365.17b79c",
+ "wires": [
+ [
+ "d50061c2.12c73"
+ ]
+ ]
+ },
+ {
+ "id": "42f3ed4d.e7f564",
+ "type": "outcome",
+ "name": "Mounted",
+ "xml": "<outcome value='true'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 3355.8716011047363,
+ "y": 2083.3606419563293,
+ "z": "681fe365.17b79c",
+ "wires": [
+ [
+ "97180c02.407e7"
+ ]
+ ]
+ },
+ {
+ "id": "d50061c2.12c73",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 3546.4165115356445,
+ "y": 2044.2499585151672,
+ "z": "681fe365.17b79c",
+ "wires": [
+ [
+ "8a5b9f90.fd4b5"
+ ]
+ ]
+ },
+ {
+ "id": "97180c02.407e7",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 3537.527587890625,
+ "y": 2086.47199678421,
+ "z": "681fe365.17b79c",
+ "wires": [
+ [
+ "3033725b.b1ab1e",
+ "b85b5e04.af828"
+ ]
+ ]
+ },
+ {
+ "id": "8a5b9f90.fd4b5",
"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",
+ "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": 1484.8888244628906,
- "y": 384.16664573550224,
- "z": "5d875c6b.4b4c54",
+ "x": 3831.694221496582,
+ "y": 2041.4722361564636,
+ "z": "681fe365.17b79c",
"wires": [
[]
]
},
{
- "id": "b34d2337.c36bb",
- "type": "record",
- "name": "record",
- "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.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",
+ "id": "3033725b.b1ab1e",
+ "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": 1481.6387977600098,
- "y": 425.666672706604,
- "z": "5d875c6b.4b4c54",
+ "x": 3842.8054809570312,
+ "y": 2084.805597782135,
+ "z": "681fe365.17b79c",
"wires": [
[]
]
},
{
- "id": "36a4dafe.d19156",
+ "id": "b85b5e04.af828",
+ "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": 3767.2497024536133,
+ "y": 2120.3610796928406,
+ "z": "681fe365.17b79c",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "1bcd314.a7b9ccf",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='false'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 3110.861053466797,
+ "y": 2201.4721179008484,
+ "z": "681fe365.17b79c",
+ "wires": [
+ [
+ "23782736.1c7578"
+ ]
+ ]
+ },
+ {
+ "id": "23782736.1c7578",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 3296.5281372070312,
+ "y": 2189.8054366111755,
+ "z": "681fe365.17b79c",
+ "wires": [
+ [
+ "b3f13f22.b7c39",
+ "e2b944e4.7d6fe8"
+ ]
+ ]
+ },
+ {
+ "id": "b3f13f22.b7c39",
+ "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": 3588.917106628418,
+ "y": 2153.694749355316,
+ "z": "681fe365.17b79c",
+ "wires": []
+ },
+ {
+ "id": "e2b944e4.7d6fe8",
"type": "switchNode",
- "name": "check action",
- "xml": "<switch test='`$instantiate-r-a-n-slice-input.action`==deallocate'>",
+ "name": "find matching RRMPolicyMember",
+ "xml": "<switch test='`$tmp.RRMPolicyMember_sNSSAI==$tmp.sNSSAI`'>\n",
"comments": "",
"outputs": 1,
- "x": 1492.3891906738281,
- "y": 319.4166603088379,
- "z": "5d875c6b.4b4c54",
+ "x": 3587.8055419921875,
+ "y": 2193.6942439079285,
+ "z": "681fe365.17b79c",
"wires": [
[
- "a572b20.72c925",
- "b0df7991.61e8d8"
+ "995ca390.9084f"
]
]
},
{
- "id": "a572b20.72c925",
+ "id": "995ca390.9084f",
"type": "success",
- "name": "terminate",
+ "name": "success",
"xml": "<outcome value='success'>\n",
"comments": "",
"outputs": 1,
- "x": 1682.3888931274414,
- "y": 350.16666746139526,
- "z": "5d875c6b.4b4c54",
+ "x": 3818.638885498047,
+ "y": 2198.1386218070984,
+ "z": "681fe365.17b79c",
"wires": [
[
- "9a4a274d.d94778"
+ "240a42c0.bb25ee"
]
]
},
{
- "id": "9a4a274d.d94778",
+ "id": "240a42c0.bb25ee",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 4042.249725341797,
+ "y": 2194.8053698539734,
+ "z": "681fe365.17b79c",
+ "wires": [
+ [
+ "8fcafc65.a8bcd",
+ "18463543.a9b2cb",
+ "6fa82472.8c635c"
+ ]
+ ]
+ },
+ {
+ "id": "8fcafc65.a8bcd",
+ "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": 4307.916458129883,
+ "y": 2162.5832562446594,
+ "z": "681fe365.17b79c",
+ "wires": []
+ },
+ {
+ "id": "36ec693b.2217d6",
"type": "execute",
- "name": "read sNSSAI from input",
- "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.NSSAI`\" />\n",
+ "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": 1950.6388931274414,
- "y": 348.1666741371155,
- "z": "5d875c6b.4b4c54",
+ "x": 4837.360374450684,
+ "y": 2254.805455684662,
+ "z": "681fe365.17b79c",
"wires": [
[]
]
},
{
- "id": "e21c06e4.206928",
+ "id": "18463543.a9b2cb",
+ "type": "switchNode",
+ "name": "ransim mounted",
+ "xml": "<switch test='`$prop.ransim-mounted`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 4265.138465881348,
+ "y": 2258.1389212608337,
+ "z": "681fe365.17b79c",
+ "wires": [
+ [
+ "caefb9c8.c0f608",
+ "86c27b6.8318888"
+ ]
+ ]
+ },
+ {
+ "id": "caefb9c8.c0f608",
+ "type": "outcome",
+ "name": "Not Mounted",
+ "xml": "<outcome value='false'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 4508.472526550293,
+ "y": 2257.360945224762,
+ "z": "681fe365.17b79c",
+ "wires": [
+ [
+ "36ec693b.2217d6"
+ ]
+ ]
+ },
+ {
+ "id": "86c27b6.8318888",
+ "type": "outcome",
+ "name": "Mounted",
+ "xml": "<outcome value='true'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 4499.315940856934,
+ "y": 2308.9163393974304,
+ "z": "681fe365.17b79c",
+ "wires": [
+ [
+ "940abeb7.a2bd8"
+ ]
+ ]
+ },
+ {
+ "id": "a76004cc.2097d8",
"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.NSSAI`\" />\n",
+ "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": 1961.3889236450195,
- "y": 417.1666626930237,
- "z": "5d875c6b.4b4c54",
+ "x": 4966.527503967285,
+ "y": 2300.3613810539246,
+ "z": "681fe365.17b79c",
"wires": [
[]
]
},
{
- "id": "b0df7991.61e8d8",
- "type": "failure",
- "name": "modify-deallocate",
- "xml": "<outcome value='failure'>\n",
+ "id": "68f1b990.92a8f8",
+ "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": 1709.3888931274414,
- "y": 421.1666626930237,
- "z": "5d875c6b.4b4c54",
+ "x": 4886.5272216796875,
+ "y": 2359.2497973442078,
+ "z": "681fe365.17b79c",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "940abeb7.a2bd8",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 4666.249794006348,
+ "y": 2306.4721732139587,
+ "z": "681fe365.17b79c",
"wires": [
[
- "e21c06e4.206928"
+ "a76004cc.2097d8",
+ "68f1b990.92a8f8"
]
]
},
{
- "id": "9cee919c.bea0b",
+ "id": "161f1fd6.b2ae4",
+ "type": "record",
+ "name": "record",
+ "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.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": 2535.8609352111816,
+ "y": 2315.639142513275,
+ "z": "681fe365.17b79c",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "b2831a61.7b70f8",
"type": "execute",
- "name": "get PLMNId URL",
- "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$prop.restapi.configdb.getplmn`\"/>\n <parameter name=\"outputPath\" value=\"tmp.configdb.getPLMNId.url\"/>\n <parameter name=\"target\" value=\"{sliceProfileId}\"/>\n <parameter name=\"replacement\" value=\"`$payloadJson.input.sliceProfileId`\"/>",
+ "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": 2630.6387329101562,
+ "y": 2357.6389594078064,
+ "z": "681fe365.17b79c",
+ "wires": [
+ [
+ "78f4ddb9.581ff4",
+ "b13c92c9.72f3a"
+ ]
+ ]
+ },
+ {
+ "id": "78f4ddb9.581ff4",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2916.3888359069824,
+ "y": 2403.3889288902283,
+ "z": "681fe365.17b79c",
+ "wires": [
+ [
+ "dcea762d.5ebf28"
+ ]
+ ]
+ },
+ {
+ "id": "dcea762d.5ebf28",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
"comments": "",
"outputs": 1,
- "x": 749.6388778686523,
- "y": 733.9166860580444,
- "z": "5d875c6b.4b4c54",
+ "x": 3119.8888931274414,
+ "y": 2405.8889298439026,
+ "z": "681fe365.17b79c",
+ "wires": [
+ [
+ "fa4fc2bc.a8266"
+ ]
+ ]
+ },
+ {
+ "id": "fa4fc2bc.a8266",
+ "type": "record",
+ "name": "record",
+ "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.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": 3347.3886528015137,
+ "y": 2313.139141559601,
+ "z": "681fe365.17b79c",
"wires": [
[]
]
},
{
- "id": "ba93432d.8ae6f",
+ "id": "a8ab8f1c.73a63",
+ "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": 3360.638641357422,
+ "y": 2356.1388659477234,
+ "z": "681fe365.17b79c",
+ "wires": []
+ },
+ {
+ "id": "33c478c3.0c73f8",
+ "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": 3365.6385192871094,
+ "y": 2451.1389269828796,
+ "z": "681fe365.17b79c",
+ "wires": []
+ },
+ {
+ "id": "e66a98fa.23da98",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 3116.889320373535,
+ "y": 2457.638961315155,
+ "z": "681fe365.17b79c",
+ "wires": [
+ [
+ "33c478c3.0c73f8",
+ "a8ab8f1c.73a63",
+ "ad094b5c.97bfa8"
+ ]
+ ]
+ },
+ {
+ "id": "b13c92c9.72f3a",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2911.6388359069824,
+ "y": 2442.638961315155,
+ "z": "681fe365.17b79c",
+ "wires": [
+ [
+ "e66a98fa.23da98"
+ ]
+ ]
+ },
+ {
+ "id": "6fa82472.8c635c",
"type": "record",
"name": "record",
- "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.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",
+ "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.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": 720.6389083862305,
- "y": 795.6667108535767,
- "z": "5d875c6b.4b4c54",
+ "x": 4259.576385498047,
+ "y": 2210.4652819633484,
+ "z": "681fe365.17b79c",
"wires": [
[]
]
},
{
- "id": "b2d5bb29.9e1f58",
+ "id": "abe2baeb.40e348",
"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\"/>",
+ "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": 785.6388931274414,
- "y": 855.4166650772095,
- "z": "5d875c6b.4b4c54",
+ "x": 2325.138946533203,
+ "y": 1304.652853012085,
+ "z": "681fe365.17b79c",
"wires": [
[]
]
},
{
- "id": "f014e0f.8062b2",
+ "id": "d175e82a.acb388",
"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",
+ "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": 3073.3265075683594,
+ "y": 2251.7153429985046,
+ "z": "681fe365.17b79c",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "1628cada.6921f5",
+ "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": 738.6388854980469,
- "y": 913.4167137145996,
- "z": "5d875c6b.4b4c54",
+ "x": 3045.826446533203,
+ "y": 2284.965313434601,
+ "z": "681fe365.17b79c",
"wires": [
[]
]
},
{
- "id": "35f03911.133576",
+ "id": "2fd77fd1.e4a59",
"type": "execute",
- "name": "find MCC",
- "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='substring'>\n <parameter name=\"string\" value=\"`$tmp.pLMNId`\" />\n <parameter name=\"result\" value=\"tmp.mcc\"/>\n <parameter name=\"begin-index\" value=\"0\" />\n <parameter name=\"end-index\" value=\"3\" />",
+ "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": 731.8888931274414,
- "y": 972.6667766571045,
- "z": "5d875c6b.4b4c54",
+ "x": 3069.264389038086,
+ "y": 2319.5278449058533,
+ "z": "681fe365.17b79c",
"wires": [
[]
]
},
{
- "id": "92345751.f84618",
+ "id": "441562fc.91809c",
"type": "execute",
- "name": "find MNC",
- "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='substring'>\n <parameter name=\"string\" value=\"`$tmp.pLMNId`\" />\n <parameter name=\"result\" value=\"tmp.mnc\"/>\n <parameter name=\"begin-index\" value=\"4\" />",
+ "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": 731.8889465332031,
- "y": 1023.666654586792,
- "z": "5d875c6b.4b4c54",
+ "x": 3076.763946533203,
+ "y": 2355.277814388275,
+ "z": "681fe365.17b79c",
"wires": [
[]
]
},
{
- "id": "926f95e.bc62b68",
+ "id": "b45cc7bf.8981f8",
+ "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": 2328.013946533203,
+ "y": 1069.3403491973877,
+ "z": "681fe365.17b79c",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "be30729d.352f3",
+ "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": 1602.13916015625,
+ "y": 2594.4726457595825,
+ "z": "681fe365.17b79c",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "27f9305c.03079",
"type": "record",
"name": "record",
- "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.FileRecorder\">\n<parameter name=\"file\" value=\"/opt/opendaylight/current/data/log/instantiateRANSlice.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"`$tmp.pLMNId`\"/>\n<parameter name=\"field2\" value=\"`$tmp.mcc`\"/>\n<parameter name=\"field3\" value=\"`$tmp.mnc`\"/>",
+ "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.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": 728.8824157714844,
- "y": 1080.6601696014404,
- "z": "5d875c6b.4b4c54",
+ "x": 1456.1390838623047,
+ "y": 2644.472743988037,
+ "z": "681fe365.17b79c",
"wires": [
[]
]
},
{
- "id": "d38ca491.690178",
+ "id": "5624d3a.5123d2c",
+ "type": "switchNode",
+ "name": "is NSSAI exists",
+ "xml": "<switch test='`$tmp.configDBSNSSAI1 == $tmp.sNSSAI`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1463.0282440185547,
+ "y": 2688.0276279449463,
+ "z": "681fe365.17b79c",
+ "wires": [
+ [
+ "8d44ed60.31bdf",
+ "91640b48.773fc8"
+ ]
+ ]
+ },
+ {
+ "id": "8d44ed60.31bdf",
+ "type": "outcome",
+ "name": "True",
+ "xml": "<outcome value='true'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1636.2500228881836,
+ "y": 2642.250478744507,
+ "z": "681fe365.17b79c",
+ "wires": [
+ [
+ "ec648819.193ac8"
+ ]
+ ]
+ },
+ {
+ "id": "9e872e2d.a50dc",
"type": "execute",
- "name": "generate getNearRTRICById URL",
- "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$prop.restapi.configdb.getNearRTRICById`\"/>\n <parameter name=\"outputPath\" value=\"tmp.configdb.getNearRTRICById.url\"/>\n <parameter name=\"target\" value=\"{nearRTRICId}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.nearRTRICId`\"/>",
+ "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": 1205.6389617919922,
- "y": 841.1667003631592,
- "z": "5d875c6b.4b4c54",
+ "x": 1998.2499771118164,
+ "y": 2793.250334739685,
+ "z": "681fe365.17b79c",
"wires": [
[]
]
},
{
- "id": "8318ccb3.e2df6",
- "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/terminateRANSliceModifyAllocate.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"URL for configDB to Get NearRTRIC for NearRTRICId\"/>\n<parameter name='field2' value=\"`$prop.configdb.url + $tmp.configdb.getNearRTRICById.url`\" />\n<parameter name='field3' value=\"`$nearRTRICId`\" />",
+ "id": "b9198955.fb6e38",
+ "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": 1201.638916015625,
- "y": 891.1667766571045,
- "z": "5d875c6b.4b4c54",
+ "x": 2003.7501678466797,
+ "y": 2828.75053024292,
+ "z": "681fe365.17b79c",
"wires": [
[]
]
},
{
- "id": "2c07f0f9.fb597",
+ "id": "e152a54.0928658",
"type": "execute",
- "name": "Get nearRTRIC for nearRTRICId",
- "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"restapiUrl\" value=\"`$prop.configdb.url + $tmp.configdb.getNearRTRICById.url`\"/>\n<parameter name=\"httpMethod\" value=\"GET\"/>\n<parameter name=\"responsePrefix\" value=\"getNearRTRICById-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\"/>",
+ "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": 1992.3891372680664,
+ "y": 2863.9028749465942,
+ "z": "681fe365.17b79c",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "ad3ea034.b772c",
+ "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": 2005.0001678466797,
+ "y": 2902.2503356933594,
+ "z": "681fe365.17b79c",
+ "wires": [
+ [
+ "880cb6d6.d4b0b8",
+ "4594eb50.161444"
+ ]
+ ]
+ },
+ {
+ "id": "485d7fd7.a4ea9",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2427.9165382385254,
+ "y": 3644.5839405059814,
+ "z": "681fe365.17b79c",
+ "wires": [
+ [
+ "5482832f.65a86c"
+ ]
+ ]
+ },
+ {
+ "id": "cda8ee51.c8dd3",
+ "type": "for",
+ "name": "for each rrmpolicyMember",
+ "xml": "<for index='idcu-rrm2' start='0' end='`$tmp.CUUPRRMPolicyMembersLength`' >\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2120.2222442626953,
+ "y": 3581.027786254883,
+ "z": "681fe365.17b79c",
+ "wires": [
+ [
+ "976bfa25.a4e6d8"
+ ]
+ ]
+ },
+ {
+ "id": "976bfa25.a4e6d8",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 2345.888900756836,
+ "y": 3471.1390647888184,
+ "z": "681fe365.17b79c",
+ "wires": [
+ [
+ "40fda035.3c346",
+ "3bf69c69.a43924",
+ "9f2ab222.4805",
+ "8523ea44.7a0898",
+ "68e1a6fb.7b3038"
+ ]
+ ]
+ },
+ {
+ "id": "40fda035.3c346",
+ "type": "switchNode",
+ "name": "if length > 0 ",
+ "xml": "<switch test='`$tmp.CUUPRRMPolicyMembersLength > 0`'>\n \n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2484.055892944336,
+ "y": 3372.277886867523,
+ "z": "681fe365.17b79c",
+ "wires": [
+ [
+ "4a95c73a.bd5818",
+ "299092ec.4f94ee"
+ ]
+ ]
+ },
+ {
+ "id": "4a95c73a.bd5818",
+ "type": "success",
+ "name": "True",
+ "xml": "<outcome value='true'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2632.722499847412,
+ "y": 3326.8329634666443,
+ "z": "681fe365.17b79c",
+ "wires": [
+ [
+ "8a107f01.6629d"
+ ]
+ ]
+ },
+ {
+ "id": "8a107f01.6629d",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 2792.3888511657715,
+ "y": 3383.833547115326,
+ "z": "681fe365.17b79c",
+ "wires": [
+ [
+ "a2066ac5.655ec8",
+ "549253e4.9adfac"
+ ]
+ ]
+ },
+ {
+ "id": "a2066ac5.655ec8",
+ "type": "switchNode",
+ "name": "ransim mounted",
+ "xml": "<switch test='`$prop.ransim-mounted`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2840.1669311523438,
+ "y": 3199.722415447235,
+ "z": "681fe365.17b79c",
+ "wires": [
+ [
+ "62789a95.7abe44",
+ "6525774b.52a8f8"
+ ]
+ ]
+ },
+ {
+ "id": "62789a95.7abe44",
+ "type": "outcome",
+ "name": "Not Mounted",
+ "xml": "<outcome value='false'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2883.500473022461,
+ "y": 3278.6109614372253,
+ "z": "681fe365.17b79c",
+ "wires": [
+ [
+ "5a86a6bc.5c0af8"
+ ]
+ ]
+ },
+ {
+ "id": "6525774b.52a8f8",
+ "type": "outcome",
+ "name": "Mounted",
+ "xml": "<outcome value='true'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2874.343982696533,
+ "y": 3319.055244922638,
+ "z": "681fe365.17b79c",
+ "wires": [
+ [
+ "70aa389e.a34318"
+ ]
+ ]
+ },
+ {
+ "id": "5a86a6bc.5c0af8",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 3064.8888931274414,
+ "y": 3279.944561481476,
+ "z": "681fe365.17b79c",
+ "wires": [
+ [
+ "d7229dd0.69289",
+ "f07f39b4.b6e5f8",
+ "7247259b.963b9c"
+ ]
+ ]
+ },
+ {
+ "id": "70aa389e.a34318",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
"comments": "",
"outputs": 1,
- "x": 1200.6390228271484,
- "y": 934.166898727417,
- "z": "5d875c6b.4b4c54",
+ "x": 3055.999969482422,
+ "y": 3322.166599750519,
+ "z": "681fe365.17b79c",
"wires": [
[
- "ced9eac3.be2828",
- "e6b6fe08.ea73d"
+ "3d797d7c.1afe82",
+ "eed8719a.a190e"
]
]
},
{
- "id": "ced9eac3.be2828",
+ "id": "f07f39b4.b6e5f8",
+ "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": 3386.1665000915527,
+ "y": 3179.167140483856,
+ "z": "681fe365.17b79c",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "3d797d7c.1afe82",
+ "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": 3361.277862548828,
+ "y": 3320.5002007484436,
+ "z": "681fe365.17b79c",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "eed8719a.a190e",
+ "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": 3285.72208404541,
+ "y": 3356.055682659149,
+ "z": "681fe365.17b79c",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "299092ec.4f94ee",
"type": "failure",
- "name": "failure",
- "xml": "<outcome value='failure'>\n",
+ "name": "False",
+ "xml": "<outcome value='false'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2632.3336296081543,
+ "y": 3417.166949748993,
+ "z": "681fe365.17b79c",
+ "wires": [
+ [
+ "4a95431c.70f23c"
+ ]
+ ]
+ },
+ {
+ "id": "4a95431c.70f23c",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
"comments": "",
"outputs": 1,
- "x": 1476.3888854980469,
- "y": 931.1666622161865,
- "z": "5d875c6b.4b4c54",
+ "x": 2815.000518798828,
+ "y": 3425.500039577484,
+ "z": "681fe365.17b79c",
"wires": [
[
- "35a5fa3c.604ff6"
+ "f3edc121.dc54c",
+ "eb7faaa4.236888",
+ "44e516c5.1c0268"
]
]
},
{
- "id": "e6b6fe08.ea73d",
+ "id": "f3edc121.dc54c",
+ "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": 3111.3894958496094,
+ "y": 3423.3896050453186,
+ "z": "681fe365.17b79c",
+ "wires": []
+ },
+ {
+ "id": "eb7faaa4.236888",
+ "type": "switchNode",
+ "name": "find matching RRMPolicyMember",
+ "xml": "<switch test='`$tmp.CUUPRRMPolicyMember_sNSSAI==$tmp.sNSSAI`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 3106.2777786254883,
+ "y": 3466.389214992523,
+ "z": "681fe365.17b79c",
+ "wires": [
+ [
+ "2047fa72.8af306"
+ ]
+ ]
+ },
+ {
+ "id": "2047fa72.8af306",
"type": "success",
"name": "success",
"xml": "<outcome value='success'>\n",
"comments": "",
"outputs": 1,
- "x": 1470.388931274414,
- "y": 991.1665782928467,
- "z": "5d875c6b.4b4c54",
+ "x": 3337.1112670898438,
+ "y": 3433.833224773407,
+ "z": "681fe365.17b79c",
"wires": [
[
- "57c5d9c4.661078"
+ "359033fe.1a7d3c"
]
]
},
{
- "id": "35a5fa3c.604ff6",
+ "id": "359033fe.1a7d3c",
"type": "block",
- "name": "block",
- "xml": "<block>",
- "atomic": "false",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
"comments": "",
"outputs": 1,
- "x": 1646.0557708740234,
- "y": 922.5000638961792,
- "z": "5d875c6b.4b4c54",
+ "x": 3560.7221069335938,
+ "y": 3430.499972820282,
+ "z": "681fe365.17b79c",
"wires": [
[
- "90069086.9bf3d",
- "64e216ec.bfca58"
+ "4d5fc4b1.c2afec",
+ "23c7d6da.504a6a",
+ "2223cf6.d9cd53"
]
]
},
{
- "id": "90069086.9bf3d",
+ "id": "4d5fc4b1.c2afec",
"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'/>",
+ "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": 1850.3888339996338,
- "y": 883.277738571167,
- "z": "5d875c6b.4b4c54",
+ "x": 3826.3888397216797,
+ "y": 3398.277859210968,
+ "z": "681fe365.17b79c",
"wires": []
},
{
- "id": "6a0bff9f.e783a",
+ "id": "2223cf6.d9cd53",
"type": "record",
"name": "record",
- "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.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=\"`$getNearRTRICById-configdb-response`\"/>",
+ "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.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": 1863.3886260986328,
- "y": 937.1666774749756,
- "z": "5d875c6b.4b4c54",
+ "x": 3778.0487670898438,
+ "y": 3446.159884929657,
+ "z": "681fe365.17b79c",
"wires": [
[]
]
},
{
- "id": "dc10964c.5ef7f8",
+ "id": "23c7d6da.504a6a",
+ "type": "switchNode",
+ "name": "ransim mounted",
+ "xml": "<switch test='`$prop.ransim-mounted`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 3783.6108474731445,
+ "y": 3493.8335242271423,
+ "z": "681fe365.17b79c",
+ "wires": [
+ [
+ "8437cb4c.202b68",
+ "168c5d63.e199f3"
+ ]
+ ]
+ },
+ {
+ "id": "8437cb4c.202b68",
+ "type": "outcome",
+ "name": "Not Mounted",
+ "xml": "<outcome value='false'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 4026.94490814209,
+ "y": 3493.0555481910706,
+ "z": "681fe365.17b79c",
+ "wires": [
+ [
+ "8403aa2d.ece708"
+ ]
+ ]
+ },
+ {
+ "id": "168c5d63.e199f3",
+ "type": "outcome",
+ "name": "Mounted",
+ "xml": "<outcome value='true'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 4017.7883224487305,
+ "y": 3544.610942363739,
+ "z": "681fe365.17b79c",
+ "wires": [
+ [
+ "34a4274d.228e98"
+ ]
+ ]
+ },
+ {
+ "id": "8403aa2d.ece708",
"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",
+ "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": 1859.1667671203613,
- "y": 1008.1666851043701,
- "z": "5d875c6b.4b4c54",
+ "x": 4355.8327560424805,
+ "y": 3490.5000586509705,
+ "z": "681fe365.17b79c",
"wires": [
[]
]
},
{
- "id": "57c5d9c4.661078",
+ "id": "34a4274d.228e98",
"type": "block",
"name": "block : atomic",
"xml": "<block atomic='true'>",
"atomic": "true",
"comments": "",
"outputs": 1,
- "x": 1640.388828277588,
- "y": 992.166693687439,
- "z": "5d875c6b.4b4c54",
+ "x": 4184.7221755981445,
+ "y": 3542.1667761802673,
+ "z": "681fe365.17b79c",
"wires": [
[
- "dc10964c.5ef7f8",
- "6a0bff9f.e783a"
+ "bba97216.61a4e",
+ "b42ffe76.91a9"
]
]
},
{
- "id": "8045c217.a14b",
+ "id": "bba97216.61a4e",
+ "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": 4484.999885559082,
+ "y": 3536.055984020233,
+ "z": "681fe365.17b79c",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "b42ffe76.91a9",
+ "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": 4404.999603271484,
+ "y": 3594.9444003105164,
+ "z": "681fe365.17b79c",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "3bf69c69.a43924",
"type": "execute",
- "name": "remove sNSSAI from context",
- "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='ctxListRemove' >\n<parameter name=\"list_pfx\" value=\"`$getNearRTRICById-configdb-response`\" />\n<parameter name=\"value\" value=\"`$getNearRTRICById-configdb-response.pLMNInfoList[0].sNSSAI.sNSSAI`\" />",
+ "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": 2578.5001373291016,
+ "y": 3489.5003447532654,
+ "z": "681fe365.17b79c",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "9f2ab222.4805",
+ "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": 2567.4380264282227,
+ "y": 3522.3128452301025,
+ "z": "681fe365.17b79c",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "8523ea44.7a0898",
+ "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": 2577.9376373291016,
+ "y": 3559.062846183777,
+ "z": "681fe365.17b79c",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "2d907870.04c9d8",
+ "type": "record",
+ "name": "record",
+ "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.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": 1187.1945037841797,
- "y": 1073.3612518310547,
- "z": "5d875c6b.4b4c54",
+ "x": 2066.034355163574,
+ "y": 3625.4242725372314,
+ "z": "681fe365.17b79c",
"wires": [
[]
]
},
{
- "id": "dcc1e616.a66a58",
+ "id": "6dcd6d8b.8f8a74",
+ "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": 2142.812286376953,
+ "y": 3671.423490524292,
+ "z": "681fe365.17b79c",
+ "wires": [
+ [
+ "485d7fd7.a4ea9",
+ "81dbf1c4.f6ab9"
+ ]
+ ]
+ },
+ {
+ "id": "1a09eab5.8fb4d5",
"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 '`\" />",
+ "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": 2243.166473388672,
- "y": 859.8888301849365,
- "z": "5d875c6b.4b4c54",
+ "x": 2194.437728881836,
+ "y": 4194.125453948975,
+ "z": "681fe365.17b79c",
"wires": [
[]
]
},
{
- "id": "b7aab5d6.a5d488",
- "type": "set",
- "name": "Read RRMPolicy Member List Length",
- "xml": "<set>\n<parameter name='tmp.NRCellCURRMPolicyMembersLength' value=\"`'$get-rrmpolicyratio-response.attributes.RRMPolicyRatio['+ $idcu-rrm+'].attributes.rRMPolicyMemberList_length'`\" />",
+ "id": "a8c983be.71b54",
+ "type": "for",
+ "name": "foreach PLMNInfo",
+ "xml": "<for index='id-duplmn' start='0' end='`$tmp.DUpLMNInfoList_length`' >\n",
"comments": "",
- "x": 2706.16650390625,
- "y": 2266.722059249878,
- "z": "5d875c6b.4b4c54",
- "wires": []
+ "outputs": 1,
+ "x": 2237.7713165283203,
+ "y": 4311.125455856323,
+ "z": "681fe365.17b79c",
+ "wires": [
+ [
+ "7ff37c7f.b02e84"
+ ]
+ ]
+ },
+ {
+ "id": "ba53b011.6cacf",
+ "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": 2859.29891204834,
+ "y": 4309.375453948975,
+ "z": "681fe365.17b79c",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "79da80d7.0799b",
+ "type": "record",
+ "name": "record",
+ "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.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": 2779.0487670898438,
+ "y": 4351.3750648498535,
+ "z": "681fe365.17b79c",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "ca93bc12.6b465",
+ "type": "switchNode",
+ "name": "is NSSAI exists",
+ "xml": "<switch test='`$tmp.configDBSNSSAI-DU == $tmp.sNSSAI`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2777.1876335144043,
+ "y": 4407.680534362793,
+ "z": "681fe365.17b79c",
+ "wires": [
+ [
+ "5da516e.208e1e8"
+ ]
+ ]
+ },
+ {
+ "id": "5da516e.208e1e8",
+ "type": "outcome",
+ "name": "True",
+ "xml": "<outcome value='true'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2930.659900665283,
+ "y": 4411.152799606323,
+ "z": "681fe365.17b79c",
+ "wires": [
+ [
+ "6cc28b13.198d84"
+ ]
+ ]
+ },
+ {
+ "id": "78a62f70.66a53",
+ "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": 3106.1875,
+ "y": 4878.81250333786,
+ "z": "681fe365.17b79c",
+ "wires": [
+ []
+ ]
},
{
- "id": "cac94f43.7988e",
+ "id": "419b3c7a.8d5e74",
"type": "for",
"name": "for each rrmpolicyMember",
- "xml": "<for index='idcu-rrm1' start='0' end='`$tmp.NRCellCURRMPolicyMembersLength`' >\n",
+ "xml": "<for index='iddu-rrm2' start='0' end='`$tmp.DURRMPolicyMembersLength`' >\n",
"comments": "",
"outputs": 1,
- "x": 2687.138687133789,
- "y": 2309.499922275543,
- "z": "5d875c6b.4b4c54",
+ "x": 3697.4722213745117,
+ "y": 5644.71551322937,
+ "z": "681fe365.17b79c",
"wires": [
[
- "17d93ed6.5e1c41"
+ "9bef1746.084298"
]
]
},
{
- "id": "17d93ed6.5e1c41",
+ "id": "9bef1746.084298",
"type": "block",
"name": "block : atomic",
"xml": "<block atomic='true'>",
"atomic": "true",
"comments": "",
"outputs": 1,
- "x": 2903.805488586426,
- "y": 2305.6110668182373,
- "z": "5d875c6b.4b4c54",
+ "x": 3915.1390228271484,
+ "y": 5643.82684135437,
+ "z": "681fe365.17b79c",
"wires": [
[
- "80a219a9.cb4fa8",
- "1c636d7a.76bbd3",
- "cfe4eb87.f9ce98",
- "16d7a78b.89b958",
- "61fb2172.2e08a"
+ "ab01c8e3.401bb8",
+ "67081354.58f73c",
+ "51bbb837.90d658",
+ "eeb5bbb0.1d6178",
+ "1e206743.3e5689"
]
]
},
{
- "id": "80a219a9.cb4fa8",
+ "id": "ab01c8e3.401bb8",
"type": "switchNode",
"name": "if length > 0 ",
- "xml": "<switch test='`$tmp.NRCellCURRMPolicyMembersLeangth`>0'>\n",
+ "xml": "<switch test='`$tmp.DURRMPolicyMembersLength > 0`'>\n",
"comments": "",
"outputs": 1,
- "x": 3052.972480773926,
- "y": 2270.7497453689575,
- "z": "5d875c6b.4b4c54",
+ "x": 4072.056137084961,
+ "y": 5558.465371608734,
+ "z": "681fe365.17b79c",
"wires": [
[
- "90b11368.b8378",
- "94d76e54.f4b62"
+ "11a49643.82feda",
+ "84eaecde.16ac4"
]
]
},
{
- "id": "90b11368.b8378",
+ "id": "11a49643.82feda",
"type": "success",
"name": "success",
- "xml": "<outcome value='success'>\n",
+ "xml": "<outcome value='true'>\n",
"comments": "",
"outputs": 1,
- "x": 3204.6388969421387,
- "y": 2246.3051433563232,
- "z": "5d875c6b.4b4c54",
+ "x": 4214.972393035889,
+ "y": 5516.520587444305,
+ "z": "681fe365.17b79c",
"wires": [
[
- "928e9705.a89d38"
+ "4a3b73e1.f2a4ac"
]
]
},
{
- "id": "928e9705.a89d38",
+ "id": "4a3b73e1.f2a4ac",
"type": "block",
"name": "block : atomic",
"xml": "<block atomic='true'>",
"atomic": "true",
"comments": "",
"outputs": 1,
- "x": 3371.3053550720215,
- "y": 2246.3056030273438,
- "z": "5d875c6b.4b4c54",
+ "x": 4381.6388511657715,
+ "y": 5516.521047115326,
+ "z": "681fe365.17b79c",
"wires": [
[
- "c8662394.eae76"
+ "5550981e.495028"
]
]
},
{
- "id": "c8662394.eae76",
+ "id": "5550981e.495028",
"type": "switchNode",
"name": "ransim mounted",
"xml": "<switch test='`$prop.ransim-mounted`'>\n",
"comments": "",
"outputs": 1,
- "x": 3219.083236694336,
- "y": 2125.1943385601044,
- "z": "5d875c6b.4b4c54",
+ "x": 4229.416732788086,
+ "y": 5395.409782648087,
+ "z": "681fe365.17b79c",
"wires": [
[
- "e677db79.580d78",
- "dd2ac7e6.9925a8"
+ "a42c02b.48062",
+ "5f174b6.c0149b4"
]
]
},
{
- "id": "e677db79.580d78",
+ "id": "a42c02b.48062",
"type": "outcome",
"name": "Not Mounted",
"xml": "<outcome value='false'>\n",
"comments": "",
"outputs": 1,
- "x": 3462.416976928711,
- "y": 2141.083017349243,
- "z": "5d875c6b.4b4c54",
+ "x": 4472.750473022461,
+ "y": 5411.298461437225,
+ "z": "681fe365.17b79c",
"wires": [
[
- "5c1ef2cf.2bc89c"
+ "bebaeb62.53f558"
]
]
},
{
- "id": "dd2ac7e6.9925a8",
+ "id": "5f174b6.c0149b4",
"type": "outcome",
"name": "Mounted",
"xml": "<outcome value='true'>\n",
"comments": "",
"outputs": 1,
- "x": 3453.260486602783,
- "y": 2181.5273008346558,
- "z": "5d875c6b.4b4c54",
+ "x": 4463.593982696533,
+ "y": 5451.742744922638,
+ "z": "681fe365.17b79c",
"wires": [
[
- "3feb197e.7eee96"
+ "287d0ad9.cbaf16"
]
]
},
{
- "id": "5c1ef2cf.2bc89c",
+ "id": "bebaeb62.53f558",
"type": "block",
"name": "block : atomic",
"xml": "<block atomic='true'>",
"atomic": "true",
"comments": "",
"outputs": 1,
- "x": 3643.8053970336914,
- "y": 2142.4166173934937,
- "z": "5d875c6b.4b4c54",
+ "x": 4654.138893127441,
+ "y": 5412.632061481476,
+ "z": "681fe365.17b79c",
"wires": [
[
- "9ad9b7f2.be01a8"
+ "682537c.8c9fec8"
]
]
},
{
- "id": "3feb197e.7eee96",
- "type": "block",
- "name": "block : atomic",
- "xml": "<block atomic='true'>",
- "atomic": "true",
+ "id": "682537c.8c9fec8",
+ "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": 3634.916473388672,
- "y": 2184.6386556625366,
- "z": "5d875c6b.4b4c54",
+ "x": 4939.416603088379,
+ "y": 5409.854339122772,
+ "z": "681fe365.17b79c",
"wires": [
- [
- "71cc87aa.8b2aa8",
- "cf5f7048.c50b9"
- ]
+ []
]
},
{
- "id": "9ad9b7f2.be01a8",
+ "id": "865d667d.44a788",
"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",
+ "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": 3929.083106994629,
- "y": 2139.63889503479,
- "z": "5d875c6b.4b4c54",
+ "x": 4950.527862548828,
+ "y": 5453.187700748444,
+ "z": "681fe365.17b79c",
"wires": [
[]
]
},
{
- "id": "71cc87aa.8b2aa8",
+ "id": "c25a5885.480138",
"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`\"/>",
+ "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": 3940.194366455078,
- "y": 2182.9722566604614,
- "z": "5d875c6b.4b4c54",
+ "x": 4874.97208404541,
+ "y": 5488.743182659149,
+ "z": "681fe365.17b79c",
"wires": [
[]
]
},
{
- "id": "cf5f7048.c50b9",
- "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`\"/>",
+ "id": "287d0ad9.cbaf16",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
"comments": "",
"outputs": 1,
- "x": 3864.63858795166,
- "y": 2218.527738571167,
- "z": "5d875c6b.4b4c54",
+ "x": 4645.249969482422,
+ "y": 5454.854099750519,
+ "z": "681fe365.17b79c",
"wires": [
- []
+ [
+ "865d667d.44a788",
+ "c25a5885.480138"
+ ]
]
},
{
- "id": "94d76e54.f4b62",
+ "id": "84eaecde.16ac4",
"type": "failure",
"name": "failure",
- "xml": "<outcome value='failure'>\n",
+ "xml": "<outcome value='false'>\n",
"comments": "",
"outputs": 1,
- "x": 3208.2499389648438,
- "y": 2299.638776779175,
- "z": "5d875c6b.4b4c54",
+ "x": 4218.6875,
+ "y": 5588.18750333786,
+ "z": "681fe365.17b79c",
"wires": [
[
- "43619232.8fe1fc"
+ "62cc2b9d.546bb4"
]
]
},
{
- "id": "43619232.8fe1fc",
+ "id": "62cc2b9d.546bb4",
"type": "block",
"name": "block : atomic",
"xml": "<block atomic='true'>",
"atomic": "true",
"comments": "",
"outputs": 1,
- "x": 3393.917022705078,
- "y": 2287.972095489502,
- "z": "5d875c6b.4b4c54",
+ "x": 4404.354583740234,
+ "y": 5576.520822048187,
+ "z": "681fe365.17b79c",
"wires": [
[
- "7b60a95a.311d38",
- "4dd7b0ec.5f578"
+ "175773e3.cc37dc",
+ "fb24bd1d.849a9"
]
]
},
{
- "id": "7b60a95a.311d38",
+ "id": "175773e3.cc37dc",
"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'`\" />",
+ "xml": "<set>\n<parameter name='tmp.cellDURRMPolicyMember_sNSSAI' value=\"`'$get-rrmpolicyratio-du-response.attributes.RRMPolicyRatio['+ $iddu-rrm+'].attributes.rRMPolicyMemberList['+ $iddu-rrm2 +'].sNSSAI'`\" />",
"comments": "",
- "x": 3686.305992126465,
- "y": 2251.8614082336426,
- "z": "5d875c6b.4b4c54",
+ "x": 4697.993957519531,
+ "y": 5535.410562038422,
+ "z": "681fe365.17b79c",
"wires": []
},
{
- "id": "4dd7b0ec.5f578",
+ "id": "fb24bd1d.849a9",
"type": "switchNode",
"name": "find matching RRMPolicyMember",
- "xml": "<switch test='`$tmp.RRMPolicyMember_sNSSAI==$tmp.sNSSAI`'>\n",
+ "xml": "<switch test='`$tmp.cellDURRMPolicyMember_sNSSAI==$tmp.sNSSAI`'>\n",
"comments": "",
"outputs": 1,
- "x": 3685.1944274902344,
- "y": 2291.860902786255,
- "z": "5d875c6b.4b4c54",
+ "x": 4695.631988525391,
+ "y": 5580.40962934494,
+ "z": "681fe365.17b79c",
"wires": [
[
- "aeb12330.5d927"
+ "5178497a.c66ab8"
]
]
},
{
- "id": "aeb12330.5d927",
+ "id": "5178497a.c66ab8",
"type": "success",
"name": "success",
"xml": "<outcome value='success'>\n",
"comments": "",
"outputs": 1,
- "x": 3916.0277709960938,
- "y": 2296.305280685425,
- "z": "5d875c6b.4b4c54",
+ "x": 4926.46533203125,
+ "y": 5584.85400724411,
+ "z": "681fe365.17b79c",
"wires": [
[
- "b5e8a0ad.669d3"
+ "2b7a1103.21e69e"
]
]
},
{
- "id": "b5e8a0ad.669d3",
+ "id": "2b7a1103.21e69e",
"type": "block",
"name": "block : atomic",
"xml": "<block atomic='true'>",
"atomic": "true",
"comments": "",
"outputs": 1,
- "x": 4139.638610839844,
- "y": 2292.9720287323,
- "z": "5d875c6b.4b4c54",
+ "x": 5150.076171875,
+ "y": 5581.520755290985,
+ "z": "681fe365.17b79c",
"wires": [
[
- "182e3e07.d731f2",
- "b41b6ede.e30bc",
- "b0c9ebb0.f7a748"
+ "4bf0ba64.99cd64",
+ "49bec677.8498b8",
+ "39296eb4.0ec192"
]
]
},
{
- "id": "182e3e07.d731f2",
+ "id": "4bf0ba64.99cd64",
"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'`\" />",
+ "xml": "<set>\n<parameter name='tmp.CellDURRMPolicyMember_id' value=\"`'$get-rrmpolicyratio-du-response.attributes.RRMPolicyRatio['+ $iddu-rrm+'].attributes.rRMPolicyMemberList['+ $iddu-rrm2 +'].idx'`\" />",
"comments": "",
- "x": 4405.30534362793,
- "y": 2260.749915122986,
- "z": "5d875c6b.4b4c54",
+ "x": 5415.742904663086,
+ "y": 5549.298641681671,
+ "z": "681fe365.17b79c",
"wires": []
},
{
- "id": "c37eaedd.ad4e7",
- "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`\"/>",
+ "id": "39296eb4.0ec192",
+ "type": "record",
+ "name": "record",
+ "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.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": 4934.7492599487305,
- "y": 2352.9721145629883,
- "z": "5d875c6b.4b4c54",
+ "x": 5367.40283203125,
+ "y": 5597.18066740036,
+ "z": "681fe365.17b79c",
"wires": [
[]
]
},
{
- "id": "b41b6ede.e30bc",
+ "id": "49bec677.8498b8",
"type": "switchNode",
"name": "ransim mounted",
"xml": "<switch test='`$prop.ransim-mounted`'>\n",
"comments": "",
"outputs": 1,
- "x": 4362.5273513793945,
- "y": 2356.30558013916,
- "z": "5d875c6b.4b4c54",
+ "x": 5372.964912414551,
+ "y": 5644.8543066978455,
+ "z": "681fe365.17b79c",
"wires": [
[
- "503f844f.64c01c",
- "7161c9.ab814e38"
+ "fce33118.ec5fd",
+ "8218be6f.080e6"
]
]
},
{
- "id": "503f844f.64c01c",
+ "id": "fce33118.ec5fd",
"type": "outcome",
"name": "Not Mounted",
"xml": "<outcome value='false'>\n",
"comments": "",
"outputs": 1,
- "x": 4605.86141204834,
- "y": 2355.5276041030884,
- "z": "5d875c6b.4b4c54",
+ "x": 5616.298973083496,
+ "y": 5644.076330661774,
+ "z": "681fe365.17b79c",
"wires": [
[
- "c37eaedd.ad4e7"
+ "e0e45f3c.5ef9c"
]
]
},
{
- "id": "7161c9.ab814e38",
+ "id": "8218be6f.080e6",
"type": "outcome",
"name": "Mounted",
"xml": "<outcome value='true'>\n",
"comments": "",
"outputs": 1,
- "x": 4596.7048263549805,
- "y": 2407.082998275757,
- "z": "5d875c6b.4b4c54",
+ "x": 5607.142387390137,
+ "y": 5695.631724834442,
+ "z": "681fe365.17b79c",
"wires": [
[
- "88b74872.c635b8"
+ "44f1224c.d6f38c"
]
]
},
{
- "id": "f6f7cf4d.7b0e",
+ "id": "e0e45f3c.5ef9c",
+ "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": 5945.186820983887,
+ "y": 5641.520841121674,
+ "z": "681fe365.17b79c",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "44f1224c.d6f38c",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 5774.076240539551,
+ "y": 5693.1875586509705,
+ "z": "681fe365.17b79c",
+ "wires": [
+ [
+ "e3154c8e.1db27",
+ "2dc2c715.203168"
+ ]
+ ]
+ },
+ {
+ "id": "e3154c8e.1db27",
"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`\"/>",
+ "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": 5063.916389465332,
- "y": 2398.528039932251,
- "z": "5d875c6b.4b4c54",
+ "x": 6074.353950500488,
+ "y": 5687.076766490936,
+ "z": "681fe365.17b79c",
"wires": [
[]
]
},
{
- "id": "4767a964.7b9188",
+ "id": "2dc2c715.203168",
"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`\"/>",
+ "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": 4983.916107177734,
- "y": 2457.416456222534,
- "z": "5d875c6b.4b4c54",
+ "x": 5994.353668212891,
+ "y": 5745.9651827812195,
+ "z": "681fe365.17b79c",
"wires": [
[]
]
},
{
- "id": "88b74872.c635b8",
- "type": "block",
- "name": "block : atomic",
- "xml": "<block atomic='true'>",
- "atomic": "true",
+ "id": "67081354.58f73c",
+ "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": 4763.6386795043945,
- "y": 2404.638832092285,
- "z": "5d875c6b.4b4c54",
+ "x": 4247.750144958496,
+ "y": 5630.688269615173,
+ "z": "681fe365.17b79c",
"wires": [
- [
- "f6f7cf4d.7b0e",
- "4767a964.7b9188"
- ]
+ []
+ ]
+ },
+ {
+ "id": "51bbb837.90d658",
+ "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": 4220.25008392334,
+ "y": 5663.9382400512695,
+ "z": "681fe365.17b79c",
+ "wires": [
+ []
]
},
{
- "id": "57aa1331.9d81bc",
+ "id": "eeb5bbb0.1d6178",
+ "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": 4243.688026428223,
+ "y": 5698.500771522522,
+ "z": "681fe365.17b79c",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "1e206743.3e5689",
+ "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": 4251.18758392334,
+ "y": 5734.250741004944,
+ "z": "681fe365.17b79c",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "4a1ab775.d40cd8",
"type": "record",
"name": "record",
- "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.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",
+ "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.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": 2633.2498207092285,
- "y": 2413.8058013916016,
- "z": "5d875c6b.4b4c54",
+ "x": 3614.035189628601,
+ "y": 5727.112832546234,
+ "z": "681fe365.17b79c",
"wires": [
[]
]
},
{
- "id": "e85a3a4.22a94c8",
+ "id": "71190a4a.d6c7d4",
"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' />",
+ "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": 2728.027618408203,
- "y": 2455.805618286133,
- "z": "5d875c6b.4b4c54",
+ "x": 3701.312454223633,
+ "y": 5793.362391471863,
+ "z": "681fe365.17b79c",
"wires": [
[
- "dd522b09.1e1be8",
- "3f291ef9.746d92"
+ "c3e1a651.fcce08",
+ "94221c7f.4de61"
]
]
},
{
- "id": "dd522b09.1e1be8",
- "type": "success",
- "name": "success",
- "xml": "<outcome value='success'>\n",
+ "id": "4b4f8ae1.4d04f4",
+ "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": 256.0833339691162,
+ "y": 1664.3333678245544,
+ "z": "681fe365.17b79c",
+ "wires": []
+ },
+ {
+ "id": "2df95230.31a61e",
+ "type": "for",
+ "name": "foreach PLMNInfo",
+ "xml": "<for index='id-ric' start='0' end='`$tmp.RICPLMNEntries`' >\n",
"comments": "",
"outputs": 1,
- "x": 3013.7777214050293,
- "y": 2501.5555877685547,
- "z": "5d875c6b.4b4c54",
+ "x": 1013.0000534057617,
+ "y": 712.2500514984131,
+ "z": "681fe365.17b79c",
"wires": [
[
- "ff459b9.377d368"
+ "e9250659.cd2a98"
]
]
},
{
- "id": "ff459b9.377d368",
+ "id": "e9250659.cd2a98",
"type": "block",
"name": "block : atomic",
"xml": "<block atomic='true'>",
"atomic": "true",
"comments": "",
"outputs": 1,
- "x": 3217.2777786254883,
- "y": 2504.055588722229,
- "z": "5d875c6b.4b4c54",
+ "x": 1210.25,
+ "y": 694.2500042915344,
+ "z": "681fe365.17b79c",
"wires": [
[
- "50a7a704.b2d218"
+ "132c0105.fd3bff",
+ "e17349fb.a93e98"
]
]
},
{
- "id": "50a7a704.b2d218",
+ "id": "cff035e0.5202f8",
+ "type": "switchNode",
+ "name": "is NSSAI exists",
+ "xml": "<switch test='`$tmp.ric.sNSSAI == $tmp.sNSSAI`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1385.2499771118164,
+ "y": 741.5000486373901,
+ "z": "681fe365.17b79c",
+ "wires": [
+ [
+ "13f08b41.a30fa5"
+ ]
+ ]
+ },
+ {
+ "id": "3085002d.6fbc9",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 1627.500259399414,
+ "y": 654.2500514984131,
+ "z": "681fe365.17b79c",
+ "wires": [
+ [
+ "9add7f06.c1df6",
+ "cf13d6c4.d6c488",
+ "61730f64.f5dd9",
+ "88a345ab.17f1a8",
+ "f60f717d.ccb86",
+ "cc300987.609d18",
+ "3d0dd40f.2855dc"
+ ]
+ ]
+ },
+ {
+ "id": "29762dac.dd5972",
"type": "record",
"name": "record",
- "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.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\"/>",
+ "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.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": 3444.7775382995605,
- "y": 2411.3058004379272,
- "z": "5d875c6b.4b4c54",
+ "x": 994.25,
+ "y": 665,
+ "z": "681fe365.17b79c",
"wires": [
[]
]
},
{
- "id": "8ace21ab.b1133",
- "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'/>",
+ "id": "9add7f06.c1df6",
+ "type": "record",
+ "name": "record",
+ "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.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": "",
- "x": 3458.0275268554688,
- "y": 2454.30552482605,
- "z": "5d875c6b.4b4c54",
- "wires": []
+ "outputs": 1,
+ "x": 1705.4546966552734,
+ "y": 893.0228490829468,
+ "z": "681fe365.17b79c",
+ "wires": [
+ []
+ ]
},
{
- "id": "14c40d9e.470832",
- "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'/>",
+ "id": "13f08b41.a30fa5",
+ "type": "outcome",
+ "name": "True",
+ "xml": "<outcome value='true'>\n",
"comments": "",
- "x": 3463.0274047851562,
- "y": 2549.305585861206,
- "z": "5d875c6b.4b4c54",
- "wires": []
+ "outputs": 1,
+ "x": 1553.0000762939453,
+ "y": 708.5000514984131,
+ "z": "681fe365.17b79c",
+ "wires": [
+ [
+ "3085002d.6fbc9"
+ ]
+ ]
+ },
+ {
+ "id": "f8cbcae3.d42898",
+ "type": "failure",
+ "name": "false",
+ "xml": "<outcome value='false'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1425.75,
+ "y": 831,
+ "z": "681fe365.17b79c",
+ "wires": [
+ [
+ "4860f747.6f2588"
+ ]
+ ]
+ },
+ {
+ "id": "4860f747.6f2588",
+ "type": "record",
+ "name": "record",
+ "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.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": 1421.75,
+ "y": 876,
+ "z": "681fe365.17b79c",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "d72cfacf.381158",
+ "type": "record",
+ "name": "record",
+ "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.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": 2539.399990081787,
+ "y": 489.19999599456787,
+ "z": "681fe365.17b79c",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "411987bd.6a71b8",
+ "type": "switchNode",
+ "name": "check the action",
+ "xml": "<switch test='`$tmp.pLMNInfoList_length > 0`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2095.600082397461,
+ "y": 765.800060749054,
+ "z": "681fe365.17b79c",
+ "wires": [
+ [
+ "bbed825b.f57ac",
+ "3f02158c.add85a"
+ ]
+ ]
+ },
+ {
+ "id": "bbed825b.f57ac",
+ "type": "outcome",
+ "name": "True",
+ "xml": "<outcome value='true'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2230.5998573303223,
+ "y": 636.8000245094299,
+ "z": "681fe365.17b79c",
+ "wires": [
+ [
+ "32b20b0d.818f84"
+ ]
+ ]
+ },
+ {
+ "id": "3f02158c.add85a",
+ "type": "outcome",
+ "name": "False",
+ "xml": "<outcome value='false'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2249.599884033203,
+ "y": 687.8000469207764,
+ "z": "681fe365.17b79c",
+ "wires": [
+ [
+ "2d394f29.95bfe"
+ ]
+ ]
+ },
+ {
+ "id": "8bea641e.7f78f8",
+ "type": "record",
+ "name": "record",
+ "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.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": 2424.400375366211,
+ "y": 766.6001257896423,
+ "z": "681fe365.17b79c",
+ "wires": [
+ []
+ ]
},
{
- "id": "57b4f994.258048",
+ "id": "32b20b0d.818f84",
"type": "block",
"name": "block : atomic",
"xml": "<block atomic='true'>",
"atomic": "true",
"comments": "",
"outputs": 1,
- "x": 3214.278205871582,
- "y": 2555.8056201934814,
- "z": "5d875c6b.4b4c54",
+ "x": 2400.599937438965,
+ "y": 629.0000739097595,
+ "z": "681fe365.17b79c",
"wires": [
[
- "14c40d9e.470832",
- "8ace21ab.b1133",
- "64e216ec.bfca58"
+ "d72cfacf.381158",
+ "aa710b38.7299d8"
]
]
},
{
- "id": "3f291ef9.746d92",
- "type": "failure",
- "name": "failure",
- "xml": "<outcome value='failure'>\n",
+ "id": "2d394f29.95bfe",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
"comments": "",
"outputs": 1,
- "x": 3009.0277214050293,
- "y": 2540.8056201934814,
- "z": "5d875c6b.4b4c54",
+ "x": 2385.600051879883,
+ "y": 677.0000491142273,
+ "z": "681fe365.17b79c",
"wires": [
[
- "57b4f994.258048"
+ "8bea641e.7f78f8"
]
]
},
{
- "id": "b0c9ebb0.f7a748",
+ "id": "615004fe.554e1c",
"type": "record",
"name": "record",
- "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.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",
+ "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.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": 4356.965270996094,
- "y": 2308.631940841675,
- "z": "5d875c6b.4b4c54",
+ "x": 2095.599868774414,
+ "y": 599.5001158714294,
+ "z": "681fe365.17b79c",
"wires": [
[]
]
},
{
- "id": "1063593f.f773f7",
- "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`\"/>",
+ "id": "b5ba08f.5a3f3f8",
+ "type": "record",
+ "name": "record",
+ "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.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": 2408.5277709960938,
- "y": 1535.8194408416748,
- "z": "5d875c6b.4b4c54",
+ "x": 1168.8000411987305,
+ "y": 2196.8999786376953,
+ "z": "681fe365.17b79c",
"wires": [
[]
]
},
{
- "id": "1c636d7a.76bbd3",
- "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",
+ "id": "714dfa37.1b8884",
+ "type": "record",
+ "name": "record",
+ "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.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": 3170.7153930664062,
- "y": 2349.882001876831,
- "z": "5d875c6b.4b4c54",
+ "x": 2542.999984741211,
+ "y": 2221.4999351501465,
+ "z": "681fe365.17b79c",
"wires": [
[]
]
},
{
- "id": "cfe4eb87.f9ce98",
+ "id": "e55f953e.ae8588",
"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",
+ "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": 3143.21533203125,
- "y": 2383.1319723129272,
- "z": "5d875c6b.4b4c54",
+ "x": 2593.000129699707,
+ "y": 2108.6999340057373,
+ "z": "681fe365.17b79c",
"wires": [
[]
]
},
{
- "id": "16d7a78b.89b958",
+ "id": "b932805a.88184",
"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",
+ "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": 3166.653274536133,
- "y": 2417.6945037841797,
- "z": "5d875c6b.4b4c54",
+ "x": 2537.400131225586,
+ "y": 2066.6999320983887,
+ "z": "681fe365.17b79c",
"wires": [
[]
]
},
{
- "id": "61fb2172.2e08a",
+ "id": "9e3e6385.08739",
"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",
+ "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": 3174.15283203125,
- "y": 2453.4444732666016,
- "z": "5d875c6b.4b4c54",
+ "x": 659.5,
+ "y": 871.0000042915344,
+ "z": "681fe365.17b79c",
"wires": [
[]
]
},
{
- "id": "cab5cd7b.682a4",
+ "id": "f9a1e52.1e42318",
+ "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": 689.95458984375,
+ "y": 918.0454449653625,
+ "z": "681fe365.17b79c",
+ "wires": []
+ },
+ {
+ "id": "132c0105.fd3bff",
"type": "execute",
- "name": "remove sNSSAI from context",
- "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='ctxListRemove' >\n<parameter name=\"list_pfx\" value=\"`'$getNFNSSIRIC-configdb-response.[' +$idy +'].gNBCUCPList['+$idz +'].cellCUList['+ $idcu +'].pLMNInfoList'`\" />\n<parameter name=\"value\" value=\"`$tmp.sNSSAI`\" />",
+ "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": 2058.5279083251953,
- "y": 2275.819499015808,
- "z": "5d875c6b.4b4c54",
+ "x": 1412,
+ "y": 558.2500042915344,
+ "z": "681fe365.17b79c",
"wires": [
[]
]
},
{
- "id": "ae40960a.6e1e88",
+ "id": "e17349fb.a93e98",
+ "type": "for",
+ "name": "foreach sNSSAI",
+ "xml": "<for index='id-ric-snssai' start='0' end='`$tmp.ric.sNSSAILength`' >\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1399,
+ "y": 600.2500042915344,
+ "z": "681fe365.17b79c",
+ "wires": [
+ [
+ "ca1ece70.b9e06"
+ ]
+ ]
+ },
+ {
+ "id": "ca1ece70.b9e06",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 1590,
+ "y": 592.2500042915344,
+ "z": "681fe365.17b79c",
+ "wires": [
+ [
+ "97edef79.690cf",
+ "cff035e0.5202f8"
+ ]
+ ]
+ },
+ {
+ "id": "97edef79.690cf",
"type": "execute",
- "name": "prepare updated PLMNInfo list",
- "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue' >\n<parameter name=\"tmp.pLMNInfoList\" value=\"`'$getNFNSSIRIC-configdb-response.[' +$idy +'].gNBCUCPList['+$idz +'].cellCUList['+ $idcu +'].pLMNInfoList'`\" />\n",
+ "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": 2067.9027709960938,
- "y": 2334.256940841675,
- "z": "5d875c6b.4b4c54",
+ "x": 1783.999984741211,
+ "y": 512.2500071525574,
+ "z": "681fe365.17b79c",
"wires": [
[]
]
},
{
- "id": "58a66c79.4d6444",
+ "id": "88a345ab.17f1a8",
+ "type": "record",
+ "name": "record",
+ "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.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": 1771.7501068115234,
+ "y": 625.2500057220459,
+ "z": "681fe365.17b79c",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "b1472f5c.61cce",
"type": "execute",
- "name": "read gNBIdLength",
- "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'>\n\t<parameter name='outputPath' value='tmp.gNBIdLength' />\n\t<parameter name='source' value=\"`'getNFNSSIRIC-configdb-response.[' + $idy + '].gNBIdLength'`\" />",
+ "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": 1151.6527709960938,
- "y": 1024.8819389343262,
- "z": "5d875c6b.4b4c54",
+ "x": 1829.5,
+ "y": 570.2500042915344,
+ "z": "681fe365.17b79c",
"wires": [
[]
]
},
{
- "id": "261c63a2.cfa8fc",
+ "id": "f9a91980.a13638",
+ "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": 1804.250015258789,
+ "y": 713.0001735687256,
+ "z": "681fe365.17b79c",
+ "wires": []
+ },
+ {
+ "id": "f60f717d.ccb86",
"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'`\" />",
+ "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": 2435.4027709960938,
- "y": 1280.5069408416748,
- "z": "5d875c6b.4b4c54",
+ "x": 1787.249984741211,
+ "y": 757.9999923706055,
+ "z": "681fe365.17b79c",
"wires": [
[]
]
},
{
- "id": "4c947865.0ffd58",
+ "id": "cc300987.609d18",
"type": "execute",
- "name": "read RRMPolicyMembers List",
- "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'>\n\t<parameter name='outputPath' value='tmp.NRCellCURRMPolicyMembersList' />\n\t<parameter name='source' value=\"`'$get-rrmpolicyratio-response.attributes.RRMPolicyRatio['+ $idcu-rrm +'].attributes.rRMPolicyMemberList'`\" />",
+ "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": 2096.965560913086,
- "y": 2516.1320066452026,
- "z": "5d875c6b.4b4c54",
+ "x": 1852.2499771118164,
+ "y": 829.2501149177551,
+ "z": "681fe365.17b79c",
"wires": [
[]
]
},
{
- "id": "d93b6f67.8d487",
+ "id": "3d0dd40f.2855dc",
"type": "execute",
- "name": "remove sNSSAI from context",
- "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='ctxListRemove' >\n<parameter name=\"list_pfx\" value=\"`$tmp.NRCellCURRMPolicyMembersList`\" />\n<parameter name=\"value\" value=\"`$tmp.sNSSAI`\" />",
+ "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": 2095.7154083251953,
- "y": 2567.6945066452026,
- "z": "5d875c6b.4b4c54",
+ "x": 1779.2500076293945,
+ "y": 865.7500548362732,
+ "z": "681fe365.17b79c",
"wires": [
[]
]
},
{
- "id": "47c5c1a5.8d72c",
+ "id": "80c78ee4.73906",
"type": "execute",
- "name": "prepare updated RRMPolicyMember list",
- "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue' >\n<parameter name=\"tmp.CellCURRMMembersList\" value=\"`'$get-rrmpolicyratio-response.attributes.RRMPolicyRatio['+ $idcu-rrm +'].attributes.rRMPolicyMemberList'`\" />\n",
+ "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": 2103.8402709960938,
- "y": 2620.194440841675,
- "z": "5d875c6b.4b4c54",
+ "x": 2083.0002517700195,
+ "y": 3491.199954032898,
+ "z": "681fe365.17b79c",
"wires": [
[]
]
},
{
- "id": "2d906f67.af8d2",
+ "id": "4270a600.32d2fc",
+ "type": "record",
+ "name": "record",
+ "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.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": 2068.000175476074,
+ "y": 3539.2000522613525,
+ "z": "681fe365.17b79c",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "57e3012b.50b3f",
"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\t<parameter name='source' value=\"`'getNFNSSIRIC-configdb-response.['+ $idy +'].gNBCUUPList['+ $id-cuup +'].pLMNInfoList['+ $id-plmn +'].sNSSAI.sNSSAI'`\" />",
+ "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": 1905.5279998779297,
- "y": 2727.639169692993,
- "z": "5d875c6b.4b4c54",
+ "x": 2071.799934387207,
+ "y": 3450.1999530792236,
+ "z": "681fe365.17b79c",
"wires": [
[]
]
},
{
- "id": "5f217c6b.8aad94",
+ "id": "68e1a6fb.7b3038",
"type": "record",
"name": "record",
- "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=\"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",
+ "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.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": 1760.5279693603516,
- "y": 2762.639108657837,
- "z": "5d875c6b.4b4c54",
+ "x": 2515.0001335144043,
+ "y": 3453.899953842163,
+ "z": "681fe365.17b79c",
"wires": [
[]
]
},
{
- "id": "59cd7c57.9edea4",
- "type": "switchNode",
- "name": "is NSSAI exists",
- "xml": "<switch test='`$tmp.configDBSNSSAI1 == $tmp.sNSSAI`'>\n",
+ "id": "d7229dd0.69289",
+ "type": "record",
+ "name": "record",
+ "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.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": 1779.417007446289,
- "y": 2798.194589614868,
- "z": "5d875c6b.4b4c54",
+ "x": 3230.199996948242,
+ "y": 3126.300099849701,
+ "z": "681fe365.17b79c",
"wires": [
- [
- "2fac8a53.516586"
- ]
+ []
]
},
{
- "id": "2fac8a53.516586",
- "type": "outcome",
- "name": "True",
- "xml": "<outcome value='true'>\n",
+ "id": "7247259b.963b9c",
+ "type": "record",
+ "name": "record",
+ "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.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": 1983.638900756836,
- "y": 2805.4171237945557,
- "z": "5d875c6b.4b4c54",
+ "x": 3263.199951171875,
+ "y": 3239.300052165985,
+ "z": "681fe365.17b79c",
"wires": [
- [
- "99583120.d2f27"
- ]
+ []
]
},
{
- "id": "2fca4cb4.2738c4",
- "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 ",
+ "id": "549253e4.9adfac",
+ "type": "record",
+ "name": "record",
+ "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.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": 2803.60009765625,
+ "y": 3149.10010099411,
+ "z": "681fe365.17b79c",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "44e516c5.1c0268",
+ "type": "record",
+ "name": "record",
+ "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.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": 1769.6388854980469,
- "y": 2878.4166622161865,
- "z": "5d875c6b.4b4c54",
+ "x": 3019.00004196167,
+ "y": 3377.1001505851746,
+ "z": "681fe365.17b79c",
"wires": [
[]
]
},
{
- "id": "ce6d719c.49011",
+ "id": "3a5aa655.217c0a",
"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`\"/>",
+ "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": 1772.1389923095703,
- "y": 2918.9171237945557,
- "z": "5d875c6b.4b4c54",
+ "x": 2016.0000305175781,
+ "y": 2956.8000440597534,
+ "z": "681fe365.17b79c",
"wires": [
[]
]
},
{
- "id": "94dbe6eb.647a58",
+ "id": "9b2d73cb.8acaa",
"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`\"/>",
+ "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": 1779.7778778076172,
- "y": 2962.069528579712,
- "z": "5d875c6b.4b4c54",
+ "x": 1859.0000228881836,
+ "y": 2996.200240135193,
+ "z": "681fe365.17b79c",
"wires": [
[]
]
},
{
- "id": "10895895.6f3bd7",
+ "id": "fb827cb5.f070e",
"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' />",
+ "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": 1822.3889617919922,
- "y": 3017.4166984558105,
- "z": "5d875c6b.4b4c54",
+ "x": 1922.000015258789,
+ "y": 3044.8000450134277,
+ "z": "681fe365.17b79c",
"wires": [
[
- "1f89eb4f.56d5b5",
- "5c354916.643298"
+ "8e330d1.8f3c4f",
+ "d7e39049.2d67a"
]
]
},
{
- "id": "831a8a0f.0dd228",
- "type": "success",
- "name": "success",
- "xml": "<outcome value='success'>\n",
+ "id": "8e330d1.8f3c4f",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
"comments": "",
"outputs": 1,
- "x": 2526.305374145508,
- "y": 3726.750623703003,
- "z": "5d875c6b.4b4c54",
+ "x": 2180.4000282287598,
+ "y": 3003.200044631958,
+ "z": "681fe365.17b79c",
"wires": [
[
- "3c7beedb.e32b72"
+ "e12b9c7c.757b"
]
]
},
{
- "id": "96d6c20a.f3dc3",
- "type": "set",
- "name": "Read RRMPolicy Member List Length",
- "xml": "<set>\n<parameter name='tmp.CUUPRRMPolicyMembersLength' value=\"`'$get-rrmpolicyratio-cuup-response.attributes.RRMPolicyRatio['+ $idcuup-rrm+'].attributes.rRMPolicyMemberList_length'`\" />",
+ "id": "d7e39049.2d67a",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
"comments": "",
- "x": 2224.638885498047,
- "y": 3502.4166622161865,
- "z": "5d875c6b.4b4c54",
- "wires": []
+ "outputs": 1,
+ "x": 2207.4000244140625,
+ "y": 3081.2000455856323,
+ "z": "681fe365.17b79c",
+ "wires": [
+ [
+ "93c86d.b72a379"
+ ]
+ ]
},
{
- "id": "35604442.22acbc",
- "type": "for",
- "name": "for each rrmpolicyMember",
- "xml": "<for index='idcu-rrm2' start='0' end='`$tmp.CUUPRRMPolicyMembersLength`' >\n",
+ "id": "e12b9c7c.757b",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
"comments": "",
"outputs": 1,
- "x": 2205.611068725586,
- "y": 3545.194525241852,
- "z": "5d875c6b.4b4c54",
+ "x": 2375.400032043457,
+ "y": 2996.200044631958,
+ "z": "681fe365.17b79c",
"wires": [
[
- "6aa3e792.bfbc28"
+ "6f56c1e5.df8e5",
+ "2ce01f3b.97fa1"
]
]
},
{
- "id": "6aa3e792.bfbc28",
+ "id": "93c86d.b72a379",
"type": "block",
"name": "block : atomic",
"xml": "<block atomic='true'>",
"atomic": "true",
"comments": "",
"outputs": 1,
- "x": 2422.2778701782227,
- "y": 3541.305669784546,
- "z": "5d875c6b.4b4c54",
+ "x": 2381.400032043457,
+ "y": 3074.200044631958,
+ "z": "681fe365.17b79c",
"wires": [
[
- "75f18c54.ee0f64",
- "8034aed7.3787",
- "4b872453.4a096c",
- "6ee0d9b.b4d7928"
+ "b111e2a1.a27af"
]
]
},
{
- "id": "75f18c54.ee0f64",
- "type": "switchNode",
- "name": "if length > 0 ",
- "xml": "<switch test='`$tmp.CUUPRRMPolicyMembersLength`>0'>\n",
+ "id": "b111e2a1.a27af",
+ "type": "record",
+ "name": "record",
+ "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.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": 2571.4448623657227,
- "y": 3506.444348335266,
- "z": "5d875c6b.4b4c54",
+ "x": 2560.4000358581543,
+ "y": 3093.2000455856323,
+ "z": "681fe365.17b79c",
"wires": [
- [
- "9acab90b.96f038",
- "11fff539.623bab"
- ]
+ []
]
},
{
- "id": "9acab90b.96f038",
- "type": "success",
- "name": "success",
- "xml": "<outcome value='success'>\n",
+ "id": "2ce01f3b.97fa1",
+ "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": 2606.6000366210938,
+ "y": 3020.200044631958,
+ "z": "681fe365.17b79c",
+ "wires": []
+ },
+ {
+ "id": "6f56c1e5.df8e5",
+ "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": 2607.6000366210938,
+ "y": 2982.2000436782837,
+ "z": "681fe365.17b79c",
+ "wires": []
+ },
+ {
+ "id": "fdc0ff7c.ee3fc",
+ "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": 2723.1112785339355,
- "y": 3481.999746322632,
- "z": "5d875c6b.4b4c54",
+ "x": 1328.9999923706055,
+ "y": 2263.599838256836,
+ "z": "681fe365.17b79c",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "59f3a197.71b95",
+ "type": "record",
+ "name": "record",
+ "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.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": 1326.0000686645508,
+ "y": 2316.800033569336,
+ "z": "681fe365.17b79c",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "786097b9.2ed618",
+ "type": "for",
+ "name": "foreach snssai",
+ "xml": "<for index='id-snssai' start='0' end='`$tmp.sNssaiListLength`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1514.0000915527344,
+ "y": 2478.4004287719727,
+ "z": "681fe365.17b79c",
"wires": [
[
- "7c331d2.e9232e4"
+ "893e8751.d204c8"
]
]
},
{
- "id": "7c331d2.e9232e4",
+ "id": "893e8751.d204c8",
"type": "block",
"name": "block : atomic",
"xml": "<block atomic='true'>",
"atomic": "true",
"comments": "",
"outputs": 1,
- "x": 2889.7777366638184,
- "y": 3482.0002059936523,
- "z": "5d875c6b.4b4c54",
+ "x": 1260.0000915527344,
+ "y": 2563.400478363037,
+ "z": "681fe365.17b79c",
"wires": [
[
- "73ebd9de.505328"
+ "be30729d.352f3",
+ "27f9305c.03079",
+ "5624d3a.5123d2c"
]
]
},
{
- "id": "73ebd9de.505328",
+ "id": "5c179b5b.37ced4",
"type": "switchNode",
- "name": "ransim mounted",
- "xml": "<switch test='`$prop.ransim-mounted`'>\n",
+ "name": "check the action",
+ "xml": "<switch test='`$tmp.sNssaiListLength > 0`'>\n",
"comments": "",
"outputs": 1,
- "x": 2737.555618286133,
- "y": 3360.888941526413,
- "z": "5d875c6b.4b4c54",
+ "x": 1261.9999923706055,
+ "y": 2407.200428009033,
+ "z": "681fe365.17b79c",
"wires": [
[
- "249284a2.501abc",
- "abc12033.dc74a"
+ "612ff568.abd7cc",
+ "8251537f.4ff64"
]
]
},
{
- "id": "249284a2.501abc",
+ "id": "612ff568.abd7cc",
"type": "outcome",
- "name": "Not Mounted",
- "xml": "<outcome value='false'>\n",
+ "name": "True",
+ "xml": "<outcome value='true'>\n",
"comments": "",
"outputs": 1,
- "x": 2980.889358520508,
- "y": 3376.7776203155518,
- "z": "5d875c6b.4b4c54",
+ "x": 1435.9999961853027,
+ "y": 2353.4000358581543,
+ "z": "681fe365.17b79c",
"wires": [
[
- "a2511f33.47ad6"
+ "203bbf87.6a945"
]
]
},
{
- "id": "abc12033.dc74a",
+ "id": "8251537f.4ff64",
"type": "outcome",
- "name": "Mounted",
- "xml": "<outcome value='true'>\n",
+ "name": "False",
+ "xml": "<outcome value='false'>\n",
"comments": "",
"outputs": 1,
- "x": 2971.73286819458,
- "y": 3417.2219038009644,
- "z": "5d875c6b.4b4c54",
+ "x": 1430.799997329712,
+ "y": 2422.599841117859,
+ "z": "681fe365.17b79c",
"wires": [
[
- "e4eac5db.1111a8"
+ "fa5fb0b0.6fbb3"
]
]
},
{
- "id": "a2511f33.47ad6",
+ "id": "203bbf87.6a945",
"type": "block",
"name": "block : atomic",
"xml": "<block atomic='true'>",
"atomic": "true",
"comments": "",
"outputs": 1,
- "x": 3162.2777786254883,
- "y": 3378.1112203598022,
- "z": "5d875c6b.4b4c54",
+ "x": 1533.9999980926514,
+ "y": 2284.0000343322754,
+ "z": "681fe365.17b79c",
"wires": [
[
- "f99d837e.53586"
+ "786097b9.2ed618",
+ "d904c835.9ac858"
]
]
},
{
- "id": "e4eac5db.1111a8",
+ "id": "fa5fb0b0.6fbb3",
"type": "block",
"name": "block : atomic",
"xml": "<block atomic='true'>",
"atomic": "true",
"comments": "",
"outputs": 1,
- "x": 3153.3888549804688,
- "y": 3420.333258628845,
- "z": "5d875c6b.4b4c54",
+ "x": 1576.0000953674316,
+ "y": 2424.000036239624,
+ "z": "681fe365.17b79c",
"wires": [
[
- "71a434da.3555bc",
- "fc619ae8.b470f8"
+ "39e2ffc7.d358f"
]
]
},
{
- "id": "f99d837e.53586",
- "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",
+ "id": "39e2ffc7.d358f",
+ "type": "record",
+ "name": "record",
+ "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.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": 3447.555488586426,
- "y": 3375.3334980010986,
- "z": "5d875c6b.4b4c54",
+ "x": 1653.599998474121,
+ "y": 2369.2000370025635,
+ "z": "681fe365.17b79c",
"wires": [
[]
]
},
{
- "id": "71a434da.3555bc",
- "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`\"/>",
+ "id": "d904c835.9ac858",
+ "type": "record",
+ "name": "record",
+ "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.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": 3458.666748046875,
- "y": 3418.66685962677,
- "z": "5d875c6b.4b4c54",
+ "x": 1681.400074005127,
+ "y": 2263.200033187866,
+ "z": "681fe365.17b79c",
"wires": [
[]
]
},
{
- "id": "fc619ae8.b470f8",
- "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`\"/>",
+ "id": "ec648819.193ac8",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
"comments": "",
"outputs": 1,
- "x": 3383.110969543457,
- "y": 3454.2223415374756,
- "z": "5d875c6b.4b4c54",
+ "x": 1810.2000274658203,
+ "y": 2640.4002838134766,
+ "z": "681fe365.17b79c",
"wires": [
- []
+ [
+ "144fa13.e80855f",
+ "4db12306.f9576c",
+ "9e872e2d.a50dc",
+ "b9198955.fb6e38",
+ "e152a54.0928658",
+ "ad3ea034.b772c",
+ "3a5aa655.217c0a",
+ "9b2d73cb.8acaa",
+ "fb827cb5.f070e",
+ "5a98b905.00d298"
+ ]
]
},
{
- "id": "11fff539.623bab",
- "type": "failure",
- "name": "failure",
- "xml": "<outcome value='failure'>\n",
+ "id": "91640b48.773fc8",
+ "type": "outcome",
+ "name": "False",
+ "xml": "<outcome value='false'>\n",
"comments": "",
"outputs": 1,
- "x": 2726.7223205566406,
- "y": 3535.3333797454834,
- "z": "5d875c6b.4b4c54",
+ "x": 1628,
+ "y": 2693.800040245056,
+ "z": "681fe365.17b79c",
"wires": [
[
- "89395cb.12860a"
+ "b2f45fa0.36d07"
]
]
},
{
- "id": "89395cb.12860a",
+ "id": "b2f45fa0.36d07",
"type": "block",
"name": "block : atomic",
"xml": "<block atomic='true'>",
"atomic": "true",
"comments": "",
"outputs": 1,
- "x": 2912.389404296875,
- "y": 3523.6666984558105,
- "z": "5d875c6b.4b4c54",
+ "x": 1778,
+ "y": 2692.800039291382,
+ "z": "681fe365.17b79c",
"wires": [
[
- "2bdede66.398562",
- "d94a3ff4.3581a"
+ "546fadd3.b99304"
]
]
},
{
- "id": "2bdede66.398562",
- "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'`\" />",
+ "id": "546fadd3.b99304",
+ "type": "record",
+ "name": "record",
+ "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.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": "",
- "x": 3204.7783737182617,
- "y": 3487.556011199951,
- "z": "5d875c6b.4b4c54",
- "wires": []
+ "outputs": 1,
+ "x": 1771.0000038146973,
+ "y": 2758.800039291382,
+ "z": "681fe365.17b79c",
+ "wires": [
+ []
+ ]
},
{
- "id": "d94a3ff4.3581a",
- "type": "switchNode",
- "name": "find matching RRMPolicyMember",
- "xml": "<switch test='`$tmp.CUUPRRMPolicyMember_sNSSAI==$tmp.sNSSAI`'>\n",
+ "id": "5a98b905.00d298",
+ "type": "record",
+ "name": "record",
+ "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.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": 1981.0000267028809,
+ "y": 2602.8000869750977,
+ "z": "681fe365.17b79c",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "75f31ef6.92277",
+ "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": 2110.199981689453,
+ "y": 3720.3999576568604,
+ "z": "681fe365.17b79c",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "c3a3fdd9.ccf7",
+ "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": 2171.600128173828,
+ "y": 3761.3999576568604,
+ "z": "681fe365.17b79c",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "f259ca88.208ba8",
+ "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": 2045.6000061035156,
+ "y": 3852.3999586105347,
+ "z": "681fe365.17b79c",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "cf2e8dfd.da164",
+ "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": 2044.5999755859375,
+ "y": 3811.39990234375,
+ "z": "681fe365.17b79c",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "ce9627e7.f46608",
+ "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": 2099.600128173828,
+ "y": 3910.3999605178833,
+ "z": "681fe365.17b79c",
+ "wires": [
+ [
+ "8dba0f18.7791c",
+ "b98881f5.8f88f"
+ ]
+ ]
+ },
+ {
+ "id": "8dba0f18.7791c",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
"comments": "",
"outputs": 1,
- "x": 3203.6668090820312,
- "y": 3527.5555057525635,
- "z": "5d875c6b.4b4c54",
+ "x": 2345.60009765625,
+ "y": 3851.39990234375,
+ "z": "681fe365.17b79c",
"wires": [
[
- "3fdd739b.53f96c"
+ "a3eb9f30.0e2c4"
]
]
},
{
- "id": "3fdd739b.53f96c",
+ "id": "b98881f5.8f88f",
"type": "success",
"name": "success",
"xml": "<outcome value='success'>\n",
"comments": "",
"outputs": 1,
- "x": 3434.5001525878906,
- "y": 3531.9998836517334,
- "z": "5d875c6b.4b4c54",
+ "x": 2352.600128173828,
+ "y": 3923.6001567840576,
+ "z": "681fe365.17b79c",
"wires": [
[
- "54981564.c9bc7c"
+ "102e371a.fde299"
]
]
},
{
- "id": "54981564.c9bc7c",
+ "id": "a3eb9f30.0e2c4",
"type": "block",
"name": "block : atomic",
"xml": "<block atomic='true'>",
"atomic": "true",
"comments": "",
"outputs": 1,
- "x": 3658.1109924316406,
- "y": 3528.6666316986084,
- "z": "5d875c6b.4b4c54",
+ "x": 2514.60009765625,
+ "y": 3850.39990234375,
+ "z": "681fe365.17b79c",
"wires": [
[
- "2547429c.dedc5e",
- "b70b28af.06b758",
- "c512fb69.d615e8"
+ "406c227e.45374c",
+ "dd45538e.6f3b4"
]
]
},
{
- "id": "2547429c.dedc5e",
+ "id": "dd45538e.6f3b4",
+ "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": 2703.6001358032227,
+ "y": 3853.399959564209,
+ "z": "681fe365.17b79c",
+ "wires": []
+ },
+ {
+ "id": "406c227e.45374c",
"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'`\" />",
+ "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": 3923.7777252197266,
- "y": 3496.4445180892944,
- "z": "5d875c6b.4b4c54",
+ "x": 2694.60009765625,
+ "y": 3803.3999013900757,
+ "z": "681fe365.17b79c",
"wires": []
},
{
- "id": "c512fb69.d615e8",
+ "id": "102e371a.fde299",
"type": "record",
"name": "record",
- "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.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",
+ "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.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": 3875.4376525878906,
- "y": 3544.3265438079834,
- "z": "5d875c6b.4b4c54",
+ "x": 2595.60009765625,
+ "y": 3935.39990234375,
+ "z": "681fe365.17b79c",
"wires": [
[]
]
},
{
- "id": "b70b28af.06b758",
- "type": "switchNode",
- "name": "ransim mounted",
- "xml": "<switch test='`$prop.ransim-mounted`'>\n",
+ "id": "3bf672d8.2ca8ae",
+ "type": "block",
+ "name": "block : gNBDU",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
"comments": "",
"outputs": 1,
- "x": 3880.9997329711914,
- "y": 3592.0001831054688,
- "z": "5d875c6b.4b4c54",
+ "x": 2013.1999778747559,
+ "y": 4269.2002601623535,
+ "z": "681fe365.17b79c",
"wires": [
[
- "d2220340.a5b14",
- "5cfd8274.4c38ec"
+ "1a09eab5.8fb4d5",
+ "a8c983be.71b54",
+ "1b4d1262.0f377e",
+ "38afa430.f0fa0c"
]
]
},
{
- "id": "d2220340.a5b14",
- "type": "outcome",
- "name": "Not Mounted",
- "xml": "<outcome value='false'>\n",
+ "id": "1b4d1262.0f377e",
+ "type": "record",
+ "name": "record",
+ "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.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": 2132.2000312805176,
+ "y": 4140.200061798096,
+ "z": "681fe365.17b79c",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "38afa430.f0fa0c",
+ "type": "record",
+ "name": "record",
+ "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.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": 2197.2000312805176,
+ "y": 4267.200063705444,
+ "z": "681fe365.17b79c",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "31736e25.f21fa2",
+ "type": "record",
+ "name": "record",
+ "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.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": 3088.39990234375,
+ "y": 4633.2001953125,
+ "z": "681fe365.17b79c",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "dd0943a9.ce117",
+ "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": 4124.333793640137,
- "y": 3591.222207069397,
- "z": "5d875c6b.4b4c54",
+ "x": 3611.199951171875,
+ "y": 5507.1998863220215,
+ "z": "681fe365.17b79c",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "a39116a0.330918",
+ "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": 3980.2503509521484,
+ "y": 5498.750373840332,
+ "z": "681fe365.17b79c",
+ "wires": []
+ },
+ {
+ "id": "487b5c6e.7df114",
+ "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": 3673.999954223633,
+ "y": 5548.1998863220215,
+ "z": "681fe365.17b79c",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "96a66afb.020568",
+ "type": "record",
+ "name": "record",
+ "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.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": 3701.7999572753906,
+ "y": 5595.800277709961,
+ "z": "681fe365.17b79c",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "fc5e8045.0b54b",
+ "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": 3139.39990234375,
+ "y": 4999.39990234375,
+ "z": "681fe365.17b79c",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "37597cbc.0bed04",
+ "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": 3034.4000930786133,
+ "y": 5061.400075912476,
+ "z": "681fe365.17b79c",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "dc22d02e.6e6fe",
+ "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": 3071.4002838134766,
+ "y": 5114.400075912476,
+ "z": "681fe365.17b79c",
"wires": [
[
- "a1b0d65f.3c6f48"
+ "970c2ef9.58e39",
+ "cb563901.266e88"
]
]
},
{
- "id": "5cfd8274.4c38ec",
- "type": "outcome",
- "name": "Mounted",
- "xml": "<outcome value='true'>\n",
+ "id": "970c2ef9.58e39",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
"comments": "",
"outputs": 1,
- "x": 4115.177207946777,
- "y": 3642.7776012420654,
- "z": "5d875c6b.4b4c54",
+ "x": 3313.399871826172,
+ "y": 5089.39984703064,
+ "z": "681fe365.17b79c",
"wires": [
[
- "2cf453a4.45fdac"
+ "4a852b2.e02e4d4"
]
]
},
{
- "id": "a1b0d65f.3c6f48",
- "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`\"/>",
+ "id": "cb563901.266e88",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
"comments": "",
"outputs": 1,
- "x": 4453.221641540527,
- "y": 3588.666717529297,
- "z": "5d875c6b.4b4c54",
+ "x": 3320.39990234375,
+ "y": 5161.600101470947,
+ "z": "681fe365.17b79c",
"wires": [
- []
+ [
+ "63cb1c57.10f9b4"
+ ]
]
},
{
- "id": "2cf453a4.45fdac",
+ "id": "4a852b2.e02e4d4",
"type": "block",
"name": "block : atomic",
"xml": "<block atomic='true'>",
"atomic": "true",
"comments": "",
"outputs": 1,
- "x": 4282.111061096191,
- "y": 3640.3334350585938,
- "z": "5d875c6b.4b4c54",
+ "x": 3482.399871826172,
+ "y": 5088.39984703064,
+ "z": "681fe365.17b79c",
"wires": [
[
- "996750a.9bd63b",
- "e2f9738f.5395b"
+ "f5cd4698.bcdb08",
+ "bd3c1ce5.c6e53"
]
]
},
{
- "id": "996750a.9bd63b",
- "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`\"/>",
+ "id": "bd3c1ce5.c6e53",
+ "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": 3671.3999099731445,
+ "y": 5091.399904251099,
+ "z": "681fe365.17b79c",
+ "wires": []
+ },
+ {
+ "id": "f5cd4698.bcdb08",
+ "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": 3662.399871826172,
+ "y": 5041.399846076965,
+ "z": "681fe365.17b79c",
+ "wires": []
+ },
+ {
+ "id": "63cb1c57.10f9b4",
+ "type": "record",
+ "name": "record",
+ "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.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": 4582.388771057129,
- "y": 3634.2226428985596,
- "z": "5d875c6b.4b4c54",
+ "x": 3543.4001502990723,
+ "y": 5147.4001750946045,
+ "z": "681fe365.17b79c",
"wires": [
[]
]
},
{
- "id": "e2f9738f.5395b",
+ "id": "3dfa7158.bac68e",
"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`\"/>",
+ "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": 4502.388488769531,
- "y": 3693.111059188843,
- "z": "5d875c6b.4b4c54",
+ "x": 3573.400146484375,
+ "y": 5881.600184440613,
+ "z": "681fe365.17b79c",
"wires": [
[]
]
},
{
- "id": "8034aed7.3787",
+ "id": "fc300b44.066298",
"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",
+ "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": 2670.8888778686523,
- "y": 3583.6667671203613,
- "z": "5d875c6b.4b4c54",
+ "x": 3631.800148010254,
+ "y": 5924.600184440613,
+ "z": "681fe365.17b79c",
"wires": [
[]
]
},
{
- "id": "4b872453.4a096c",
+ "id": "c65bc00f.5d59c",
"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",
+ "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": 2667.8268661499023,
- "y": 3623.479389190674,
- "z": "5d875c6b.4b4c54",
+ "x": 3526.800148010254,
+ "y": 6009.600185394287,
+ "z": "681fe365.17b79c",
"wires": [
[]
]
},
{
- "id": "6ee0d9b.b4d7928",
+ "id": "3ced6e0d.d08312",
"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",
+ "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": 2676.3264694213867,
- "y": 3667.229389190674,
- "z": "5d875c6b.4b4c54",
+ "x": 3536.800148010254,
+ "y": 5964.600185394287,
+ "z": "681fe365.17b79c",
"wires": [
[]
]
},
{
- "id": "c436bb12.fb3218",
- "type": "record",
- "name": "record",
- "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.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",
+ "id": "3c9a098d.1d1ba6",
+ "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": 2177.42329788208,
- "y": 3615.590717315674,
- "z": "5d875c6b.4b4c54",
+ "x": 3587.800148010254,
+ "y": 6052.600186824799,
+ "z": "681fe365.17b79c",
"wires": [
- []
+ [
+ "b65ba96c.a34208",
+ "67ea2fda.efaab"
+ ]
]
},
{
- "id": "680e2356.45dadc",
- "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.ur`\"/>\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' />",
+ "id": "b65ba96c.a34208",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
"comments": "",
"outputs": 1,
- "x": 2263.2012519836426,
- "y": 3669.590229034424,
- "z": "5d875c6b.4b4c54",
+ "x": 3842.800151824951,
+ "y": 6010.600185394287,
+ "z": "681fe365.17b79c",
"wires": [
[
- "831a8a0f.0dd228",
- "2b3faeb4.a48ed2"
+ "a0b7b2e2.6c017"
]
]
},
{
- "id": "e0ad1a99.4afc98",
- "type": "set",
- "name": "RRMPolicyRatio id",
- "xml": "<set>\n<parameter name='tmp.CUUPRRMPolicyRatio_id' value=\"`'$get-rrmpolicyratio-cuup-response.attributes.RRMPolicyRatio['+ $idcuup-rrm+'].id'`\" />",
+ "id": "67ea2fda.efaab",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
"comments": "",
- "x": 2182.138885498047,
- "y": 3457.6666622161865,
- "z": "5d875c6b.4b4c54",
- "wires": []
+ "outputs": 1,
+ "x": 3855.800151824951,
+ "y": 6058.800578117371,
+ "z": "681fe365.17b79c",
+ "wires": [
+ [
+ "161471a3.7d09be"
+ ]
+ ]
},
{
- "id": "7d8bd7ea.d3c8b8",
- "type": "execute",
- "name": "remove sNSSAI from context",
- "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='ctxListRemove' >\n<parameter name=\"list_pfx\" value=\"`'$getNFNSSIRIC-configdb-response.[' +$idy +'].gNBCUUPList['+$id-cuup+'].pLMNInfoList'`\" />\n<parameter name=\"value\" value=\"`$tmp.sNSSAI`\" />",
+ "id": "a0b7b2e2.6c017",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
"comments": "",
"outputs": 1,
- "x": 2042.1388854980469,
- "y": 3815.4166622161865,
- "z": "5d875c6b.4b4c54",
+ "x": 4003.8001556396484,
+ "y": 6017.600185394287,
+ "z": "681fe365.17b79c",
"wires": [
[]
]
},
{
- "id": "bc9e3843.b4d938",
- "type": "execute",
- "name": "prepare updated PLMNInfo list",
- "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue' >\n<parameter name=\"tmp.pLMNInfoList-CUUP\" value=\"`'$getNFNSSIRIC-configdb-response.[' +$idy +'].gNBCUCPList['+$idz +'].cellCUList['+ $id-cuup +'].pLMNInfoList'`\" />\n",
+ "id": "161471a3.7d09be",
+ "type": "record",
+ "name": "record",
+ "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.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": 2051.5137481689453,
- "y": 3873.854104042053,
- "z": "5d875c6b.4b4c54",
+ "x": 4012.8001556396484,
+ "y": 6059.600187301636,
+ "z": "681fe365.17b79c",
"wires": [
[]
]
},
{
- "id": "a2f2dac8.2bb8b8",
+ "id": "f8bd009c.44741",
"type": "execute",
- "name": "read RRMPolicyMembers List",
- "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'>\n\t<parameter name='outputPath' value='tmp.CUUPRRMPolicyMembersList' />\n\t<parameter name='source' value=\"`'$get-rrmpolicyratio-cuup-response.attributes.RRMPolicyRatio['+ $idcuup-rrm +'].attributes.rRMPolicyMemberList'`\" />",
+ "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": 2041.638931274414,
- "y": 4053.6668968200684,
- "z": "5d875c6b.4b4c54",
+ "x": 2564.199951171875,
+ "y": 2429.60009765625,
+ "z": "681fe365.17b79c",
"wires": [
[]
]
},
{
- "id": "a0d3e29.b99a22",
+ "id": "875be4d4.5e6918",
"type": "execute",
- "name": "remove sNSSAI from context",
- "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='ctxListRemove' >\n<parameter name=\"list_pfx\" value=\"`$tmp.CUUPRRMPolicyMembersList`\" />\n<parameter name=\"value\" value=\"`$tmp.sNSSAI`\" />",
+ "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": 2040.388931274414,
- "y": 4099.229335784912,
- "z": "5d875c6b.4b4c54",
+ "x": 2622.599952697754,
+ "y": 2472.60009765625,
+ "z": "681fe365.17b79c",
"wires": [
[]
]
},
{
- "id": "7545b5bb.fec49c",
+ "id": "57973a51.8c2c54",
"type": "execute",
- "name": "prepare updated RRMPolicyMember list",
- "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue' >\n<parameter name=\"tmp.CellCURRMMembersList\" value=\"`'$get-rrmpolicyratio-cuup-response.attributes.RRMPolicyRatio['+ $idcuup-rrm +'].attributes.rRMPolicyMemberList'`\" />\n",
+ "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": 2074.5137481689453,
- "y": 4150.729274749756,
- "z": "5d875c6b.4b4c54",
+ "x": 2517.599952697754,
+ "y": 2557.6000986099243,
+ "z": "681fe365.17b79c",
"wires": [
[]
]
},
{
- "id": "2bf11eaa.4763e2",
+ "id": "bfbb2edf.2f752",
"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 '`\" />",
+ "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": 2179.8266372680664,
- "y": 4437.291784286499,
- "z": "5d875c6b.4b4c54",
+ "x": 2527.599952697754,
+ "y": 2512.6000986099243,
+ "z": "681fe365.17b79c",
"wires": [
[]
]
},
{
- "id": "172ed894.1d8ac7",
- "type": "for",
- "name": "foreach PLMNInfo",
- "xml": "<for index='id-duplmn' start='0' end='`$tmp.DUpLMNInfoList_length`' >\n",
+ "id": "558c117b.eb578",
+ "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": 2578.599952697754,
+ "y": 2600.600100040436,
+ "z": "681fe365.17b79c",
+ "wires": [
+ [
+ "34654bbd.6f9cd4",
+ "61bd7c01.466ef4"
+ ]
+ ]
+ },
+ {
+ "id": "34654bbd.6f9cd4",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
"comments": "",
"outputs": 1,
- "x": 2158.160011291504,
- "y": 4507.291784286499,
- "z": "5d875c6b.4b4c54",
+ "x": 2833.599956512451,
+ "y": 2558.6000986099243,
+ "z": "681fe365.17b79c",
"wires": [
[
- "b8f3e108.9f7ed"
+ "a8c877fa.780ce8"
]
]
},
{
- "id": "b8f3e108.9f7ed",
+ "id": "61bd7c01.466ef4",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2846.599956512451,
+ "y": 2606.800491333008,
+ "z": "681fe365.17b79c",
+ "wires": [
+ [
+ "42d079b.aca4d88"
+ ]
+ ]
+ },
+ {
+ "id": "a8c877fa.780ce8",
"type": "block",
"name": "block : atomic",
"xml": "<block atomic='true'>",
"atomic": "true",
"comments": "",
"outputs": 1,
- "x": 2343.548797607422,
- "y": 4501.3194942474365,
- "z": "5d875c6b.4b4c54",
+ "x": 2994.5999603271484,
+ "y": 2565.6000986099243,
+ "z": "681fe365.17b79c",
"wires": [
- [
- "ae6bd32.040153",
- "3750602f.1207f",
- "2a92610b.738c3e"
- ]
+ []
+ ]
+ },
+ {
+ "id": "42d079b.aca4d88",
+ "type": "record",
+ "name": "record",
+ "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.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": 3003.5999603271484,
+ "y": 2607.600100517273,
+ "z": "681fe365.17b79c",
+ "wires": [
+ []
]
},
{
- "id": "2a92610b.738c3e",
+ "id": "9cbbc061.21112",
"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.sNSSAI'`\" />",
+ "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": 2709.6878051757812,
- "y": 4386.541969299316,
- "z": "5d875c6b.4b4c54",
+ "x": 2321.800048828125,
+ "y": 1460.5999755859375,
+ "z": "681fe365.17b79c",
"wires": [
[]
]
},
{
- "id": "ae6bd32.040153",
- "type": "record",
- "name": "record",
- "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.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",
+ "id": "d8ee9881.173788",
+ "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": 2579.4378051757812,
- "y": 4454.541847229004,
- "z": "5d875c6b.4b4c54",
+ "x": 2164.8000411987305,
+ "y": 1500.000171661377,
+ "z": "681fe365.17b79c",
"wires": [
[]
]
},
{
- "id": "3750602f.1207f",
- "type": "switchNode",
- "name": "is NSSAI exists",
- "xml": "<switch test='`$tmp.configDBSNSSAI-DU == $tmp.sNSSAI`'>\n",
+ "id": "99c863bb.a06a2",
+ "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": 2574.5767211914062,
- "y": 4527.8475131988525,
- "z": "5d875c6b.4b4c54",
+ "x": 2227.800033569336,
+ "y": 1548.5999765396118,
+ "z": "681fe365.17b79c",
"wires": [
[
- "f7a5a594.2f2708"
+ "4ff57e1e.5755a",
+ "73250f4a.bdceb"
]
]
},
{
- "id": "f7a5a594.2f2708",
- "type": "outcome",
- "name": "True",
- "xml": "<outcome value='true'>\n",
+ "id": "4ff57e1e.5755a",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
"comments": "",
"outputs": 1,
- "x": 2744.048858642578,
- "y": 4554.319683074951,
- "z": "5d875c6b.4b4c54",
+ "x": 2486.2000465393066,
+ "y": 1506.999976158142,
+ "z": "681fe365.17b79c",
"wires": [
[
- "4b99aec5.45498"
+ "da61a63.df44658"
]
]
},
{
- "id": "f5f4e46a.0c8e38",
- "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`\"/>",
+ "id": "73250f4a.bdceb",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
"comments": "",
"outputs": 1,
- "x": 3203.576385498047,
- "y": 4976.9791622161865,
- "z": "5d875c6b.4b4c54",
+ "x": 2513.2000427246094,
+ "y": 1584.9999771118164,
+ "z": "681fe365.17b79c",
"wires": [
- []
+ [
+ "f99fff0e.400ac"
+ ]
]
},
{
- "id": "ab6c8152.d016f",
- "type": "set",
- "name": "Read RRMPolicy Member List Length",
- "xml": "<set>\n<parameter name='tmp.DURRMPolicyMembersLength' value=\"`'$get-rrmpolicyratio-du-response.attributes.RRMPolicyRatio['+ $iddu-rrm+'].attributes.rRMPolicyMemberList_length'`\" />",
+ "id": "da61a63.df44658",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
"comments": "",
- "x": 3813.888885498047,
- "y": 5635.1041622161865,
- "z": "5d875c6b.4b4c54",
- "wires": []
+ "outputs": 1,
+ "x": 2681.200050354004,
+ "y": 1499.999976158142,
+ "z": "681fe365.17b79c",
+ "wires": [
+ [
+ "57df227e.6d767c",
+ "17b46f22.2c4ce1"
+ ]
+ ]
},
{
- "id": "a3778dfc.3c17b",
- "type": "for",
- "name": "for each rrmpolicyMember",
- "xml": "<for index='iddu-rrm2' start='0' end='`$tmp.DURRMPolicyMembersLength`' >\n",
+ "id": "f99fff0e.400ac",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
"comments": "",
"outputs": 1,
- "x": 3794.861068725586,
- "y": 5677.882025241852,
- "z": "5d875c6b.4b4c54",
+ "x": 2687.200050354004,
+ "y": 1577.999976158142,
+ "z": "681fe365.17b79c",
"wires": [
[
- "1c11.362913efca"
+ "7e89d315.e20edc"
]
]
},
{
- "id": "1c11.362913efca",
+ "id": "7e89d315.e20edc",
+ "type": "record",
+ "name": "record",
+ "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.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": 2866.200054168701,
+ "y": 1596.9999771118164,
+ "z": "681fe365.17b79c",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "17b46f22.2c4ce1",
+ "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": 2912.4000549316406,
+ "y": 1523.999976158142,
+ "z": "681fe365.17b79c",
+ "wires": []
+ },
+ {
+ "id": "57df227e.6d767c",
+ "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": 2913.4000549316406,
+ "y": 1485.9999752044678,
+ "z": "681fe365.17b79c",
+ "wires": []
+ },
+ {
+ "id": "7ff37c7f.b02e84",
"type": "block",
"name": "block : atomic",
"xml": "<block atomic='true'>",
"atomic": "true",
"comments": "",
"outputs": 1,
- "x": 4011.5278701782227,
- "y": 5673.993169784546,
- "z": "5d875c6b.4b4c54",
+ "x": 2359.3999366760254,
+ "y": 4083.000060081482,
+ "z": "681fe365.17b79c",
"wires": [
[
- "d788c4ea.2680a8",
- "d9589d3.9d1046",
- "90cbedb9.56af4",
- "a2f1007f.bb643",
- "81d17f68.5545a"
+ "6740dc9f.71ec44",
+ "774658e0.74a298",
+ "d6c5d5ed.30fc68"
]
]
},
{
- "id": "d788c4ea.2680a8",
- "type": "switchNode",
- "name": "if length > 0 ",
- "xml": "<switch test='`$tmp.DURRMPolicyMembersLength`>0'>\n",
+ "id": "6740dc9f.71ec44",
+ "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": 4169.445022583008,
- "y": 5656.632030487061,
- "z": "5d875c6b.4b4c54",
+ "x": 2610.14990234375,
+ "y": 4015.3496067523956,
+ "z": "681fe365.17b79c",
"wires": [
- [
- "1c239ad.9353065",
- "eadfadc4.ac4f5"
- ]
+ []
]
},
{
- "id": "1c239ad.9353065",
- "type": "success",
- "name": "success",
- "xml": "<outcome value='success'>\n",
+ "id": "774658e0.74a298",
+ "type": "record",
+ "name": "record",
+ "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.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": 2607.1500358581543,
+ "y": 4065.550060272217,
+ "z": "681fe365.17b79c",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "337db247.c2fe7e",
+ "type": "for",
+ "name": "foreach snssai",
+ "xml": "<for index='id-dusnssai' start='0' end='`$tmp.sNssaiListLengthDU`'>\n",
"comments": "",
"outputs": 1,
- "x": 4312.361278533936,
- "y": 5614.687246322632,
- "z": "5d875c6b.4b4c54",
+ "x": 2795.150001525879,
+ "y": 4230.150197267532,
+ "z": "681fe365.17b79c",
"wires": [
[
- "7837475d.836b28"
+ "133b96ae.ed80a9"
]
]
},
{
- "id": "7837475d.836b28",
+ "id": "133b96ae.ed80a9",
"type": "block",
"name": "block : atomic",
"xml": "<block atomic='true'>",
"atomic": "true",
"comments": "",
"outputs": 1,
- "x": 4479.027736663818,
- "y": 5614.687705993652,
- "z": "5d875c6b.4b4c54",
+ "x": 2541.150001525879,
+ "y": 4315.150246858597,
+ "z": "681fe365.17b79c",
"wires": [
[
- "5230b458.39bbcc"
+ "ba53b011.6cacf",
+ "79da80d7.0799b",
+ "ca93bc12.6b465"
]
]
},
{
- "id": "5230b458.39bbcc",
+ "id": "d6c5d5ed.30fc68",
"type": "switchNode",
- "name": "ransim mounted",
- "xml": "<switch test='`$prop.ransim-mounted`'>\n",
+ "name": "check the action",
+ "xml": "<switch test='`$tmp.sNssaiListLengthDU > 0`'>\n",
"comments": "",
"outputs": 1,
- "x": 4326.805618286133,
- "y": 5493.576441526413,
- "z": "5d875c6b.4b4c54",
+ "x": 2543.14990234375,
+ "y": 4158.950196504593,
+ "z": "681fe365.17b79c",
"wires": [
[
- "5f6410eb.6889d",
- "41dae099.daaa5"
+ "4aa3d4ed.beb08c",
+ "12d533dd.e71aac"
]
]
},
{
- "id": "5f6410eb.6889d",
+ "id": "4aa3d4ed.beb08c",
"type": "outcome",
- "name": "Not Mounted",
- "xml": "<outcome value='false'>\n",
+ "name": "True",
+ "xml": "<outcome value='true'>\n",
"comments": "",
"outputs": 1,
- "x": 4570.139358520508,
- "y": 5509.465120315552,
- "z": "5d875c6b.4b4c54",
+ "x": 2717.1499061584473,
+ "y": 4105.149804353714,
+ "z": "681fe365.17b79c",
"wires": [
[
- "2487d875.4dc6b8"
+ "c509333b.3ae73"
]
]
},
{
- "id": "41dae099.daaa5",
+ "id": "12d533dd.e71aac",
"type": "outcome",
- "name": "Mounted",
- "xml": "<outcome value='true'>\n",
+ "name": "False",
+ "xml": "<outcome value='false'>\n",
"comments": "",
"outputs": 1,
- "x": 4560.98286819458,
- "y": 5549.909403800964,
- "z": "5d875c6b.4b4c54",
+ "x": 2711.9499073028564,
+ "y": 4174.349609613419,
+ "z": "681fe365.17b79c",
"wires": [
[
- "7c49ff75.eeeb6"
+ "b7e8ccc0.b1672"
]
]
},
{
- "id": "2487d875.4dc6b8",
+ "id": "c509333b.3ae73",
"type": "block",
"name": "block : atomic",
"xml": "<block atomic='true'>",
"atomic": "true",
"comments": "",
"outputs": 1,
- "x": 4751.527778625488,
- "y": 5510.798720359802,
- "z": "5d875c6b.4b4c54",
+ "x": 2815.149908065796,
+ "y": 4035.749802827835,
+ "z": "681fe365.17b79c",
"wires": [
[
- "76804628.441888"
+ "337db247.c2fe7e",
+ "9266d7bf.db4298"
]
]
},
{
- "id": "76804628.441888",
- "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",
+ "id": "b7e8ccc0.b1672",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
"comments": "",
"outputs": 1,
- "x": 5036.805488586426,
- "y": 5508.020998001099,
- "z": "5d875c6b.4b4c54",
+ "x": 2857.150005340576,
+ "y": 4175.749804735184,
+ "z": "681fe365.17b79c",
"wires": [
- []
+ [
+ "fa38e911.b82678"
+ ]
]
},
{
- "id": "b221c7c0.9abf48",
- "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`\"/>",
+ "id": "fa38e911.b82678",
+ "type": "record",
+ "name": "record",
+ "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.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": 5047.916748046875,
- "y": 5551.35435962677,
- "z": "5d875c6b.4b4c54",
+ "x": 2934.7499084472656,
+ "y": 4120.949805498123,
+ "z": "681fe365.17b79c",
"wires": [
[]
]
},
{
- "id": "74ddc161.83683",
- "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`\"/>",
+ "id": "9266d7bf.db4298",
+ "type": "record",
+ "name": "record",
+ "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.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": 4972.360969543457,
- "y": 5586.909841537476,
- "z": "5d875c6b.4b4c54",
+ "x": 2962.5499839782715,
+ "y": 4014.949801683426,
+ "z": "681fe365.17b79c",
"wires": [
[]
]
},
{
- "id": "7c49ff75.eeeb6",
+ "id": "6e69020c.ffa84c",
"type": "block",
"name": "block : atomic",
"xml": "<block atomic='true'>",
"atomic": "true",
"comments": "",
"outputs": 1,
- "x": 4742.638854980469,
- "y": 5553.020758628845,
- "z": "5d875c6b.4b4c54",
+ "x": 2641.199951171875,
+ "y": 393.3999938964844,
+ "z": "681fe365.17b79c",
"wires": [
[
- "b221c7c0.9abf48",
- "74ddc161.83683"
+ "ea60bc2c.f3ce4",
+ "6337305.6eeabd",
+ "e2c08dd6.fcaaf"
]
]
},
{
- "id": "eadfadc4.ac4f5",
- "type": "failure",
- "name": "failure",
- "xml": "<outcome value='failure'>\n",
+ "id": "ea60bc2c.f3ce4",
+ "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": 2891.9499168395996,
+ "y": 325.74954056739807,
+ "z": "681fe365.17b79c",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "6337305.6eeabd",
+ "type": "record",
+ "name": "record",
+ "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.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": 4316.076385498047,
- "y": 5686.3541622161865,
- "z": "5d875c6b.4b4c54",
+ "x": 2888.950050354004,
+ "y": 375.94999408721924,
+ "z": "681fe365.17b79c",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "f9c4fc8.90513",
+ "type": "for",
+ "name": "foreach snssai",
+ "xml": "<for index='id-cusnssai' start='0' end='`$tmp.sNssaiListLengthCU`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 3076.9500160217285,
+ "y": 540.5501310825348,
+ "z": "681fe365.17b79c",
"wires": [
[
- "3b76515c.851ade"
+ "731a2191.f9dfb"
]
]
},
{
- "id": "3b76515c.851ade",
- "type": "block",
- "name": "block : atomic",
- "xml": "<block atomic='true'>",
- "atomic": "true",
+ "id": "e2c08dd6.fcaaf",
+ "type": "switchNode",
+ "name": "check the action",
+ "xml": "<switch test='`$tmp.sNssaiListLengthCU > 0`'>\n",
"comments": "",
"outputs": 1,
- "x": 4501.743469238281,
- "y": 5674.687480926514,
- "z": "5d875c6b.4b4c54",
+ "x": 2824.9499168395996,
+ "y": 469.35013031959534,
+ "z": "681fe365.17b79c",
"wires": [
[
- "c172d021.f515f",
- "a91c78a6.87ed58"
+ "5adc7d2.dd38d84",
+ "10d1ebf0.68d2c4"
]
]
},
{
- "id": "c172d021.f515f",
- "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'`\" />",
+ "id": "5adc7d2.dd38d84",
+ "type": "outcome",
+ "name": "True",
+ "xml": "<outcome value='true'>\n",
"comments": "",
- "x": 4795.382843017578,
- "y": 5633.577220916748,
- "z": "5d875c6b.4b4c54",
- "wires": []
+ "outputs": 1,
+ "x": 2998.949920654297,
+ "y": 415.54973816871643,
+ "z": "681fe365.17b79c",
+ "wires": [
+ [
+ "faa71bdf.bbd398"
+ ]
+ ]
},
{
- "id": "a91c78a6.87ed58",
- "type": "switchNode",
- "name": "find matching RRMPolicyMember",
- "xml": "<switch test='`$tmp.cellDURRMPolicyMember_sNSSAI==$tmp.sNSSAI`'>\n",
+ "id": "10d1ebf0.68d2c4",
+ "type": "outcome",
+ "name": "False",
+ "xml": "<outcome value='false'>\n",
"comments": "",
"outputs": 1,
- "x": 4793.0208740234375,
- "y": 5678.576288223267,
- "z": "5d875c6b.4b4c54",
+ "x": 2994.7500915527344,
+ "y": 465.74956130981445,
+ "z": "681fe365.17b79c",
"wires": [
[
- "bbd935a7.b37938"
+ "ebd30403.5f2f58"
]
]
},
{
- "id": "bbd935a7.b37938",
- "type": "success",
- "name": "success",
- "xml": "<outcome value='success'>\n",
+ "id": "faa71bdf.bbd398",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
"comments": "",
"outputs": 1,
- "x": 5023.854217529297,
- "y": 5683.0206661224365,
- "z": "5d875c6b.4b4c54",
+ "x": 3096.9499225616455,
+ "y": 346.1497366428375,
+ "z": "681fe365.17b79c",
"wires": [
[
- "26b29c69.c8fda4"
+ "f9c4fc8.90513",
+ "f57a14ae.3c4058"
]
]
},
{
- "id": "26b29c69.c8fda4",
+ "id": "ebd30403.5f2f58",
"type": "block",
"name": "block : atomic",
"xml": "<block atomic='true'>",
"atomic": "true",
"comments": "",
"outputs": 1,
- "x": 5247.465057373047,
- "y": 5679.6874141693115,
- "z": "5d875c6b.4b4c54",
+ "x": 3147.950096130371,
+ "y": 478.1497564315796,
+ "z": "681fe365.17b79c",
"wires": [
[
- "15f75912.238567",
- "f030a787.47d218",
- "265be62b.1619fa"
+ "49b19cb2.416634"
]
]
},
{
- "id": "15f75912.238567",
- "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'`\" />",
+ "id": "49b19cb2.416634",
+ "type": "record",
+ "name": "record",
+ "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.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": "",
- "x": 5513.131790161133,
- "y": 5647.465300559998,
- "z": "5d875c6b.4b4c54",
- "wires": []
+ "outputs": 1,
+ "x": 3324.5499000549316,
+ "y": 475.3497314453125,
+ "z": "681fe365.17b79c",
+ "wires": [
+ []
+ ]
},
{
- "id": "265be62b.1619fa",
+ "id": "f57a14ae.3c4058",
"type": "record",
"name": "record",
- "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.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",
+ "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.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": 5464.791717529297,
- "y": 5695.3473262786865,
- "z": "5d875c6b.4b4c54",
+ "x": 3244.349998474121,
+ "y": 325.34973549842834,
+ "z": "681fe365.17b79c",
"wires": [
[]
]
},
{
- "id": "f030a787.47d218",
+ "id": "5d7613c4.1e14ec",
"type": "switchNode",
- "name": "ransim mounted",
- "xml": "<switch test='`$prop.ransim-mounted`'>\n",
+ "name": "check the action for terminate",
+ "xml": "<switch test='`$terminate-r-a-n-slice-instance-input.action == deallocate`'>\n",
"comments": "",
"outputs": 1,
- "x": 5470.353797912598,
- "y": 5743.020965576172,
- "z": "5d875c6b.4b4c54",
+ "x": 660,
+ "y": 200.5000033378601,
+ "z": "681fe365.17b79c",
"wires": [
[
- "a4376ce5.14551",
- "b578a560.c8ff98"
+ "f02356b0.6de838",
+ "a41c0012.ee0be"
]
]
},
{
- "id": "a4376ce5.14551",
+ "id": "f02356b0.6de838",
"type": "outcome",
- "name": "Not Mounted",
- "xml": "<outcome value='false'>\n",
+ "name": "True",
+ "xml": "<outcome value='true'>\n",
"comments": "",
"outputs": 1,
- "x": 5713.687858581543,
- "y": 5742.2429895401,
- "z": "5d875c6b.4b4c54",
+ "x": 870,
+ "y": 119.50000333786011,
+ "z": "681fe365.17b79c",
"wires": [
[
- "e46c3cff.35fe7"
+ "34257438.f039cc"
]
]
},
{
- "id": "b578a560.c8ff98",
+ "id": "a41c0012.ee0be",
"type": "outcome",
- "name": "Mounted",
- "xml": "<outcome value='true'>\n",
+ "name": "False",
+ "xml": "<outcome value='false'>\n",
"comments": "",
"outputs": 1,
- "x": 5704.531272888184,
- "y": 5793.798383712769,
- "z": "5d875c6b.4b4c54",
+ "x": 888.9999885559082,
+ "y": 273.50002670288086,
+ "z": "681fe365.17b79c",
"wires": [
[
- "3399b4c5.e6721c"
+ "3f71f50f.bfb31a"
]
]
},
{
- "id": "e46c3cff.35fe7",
- "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`\"/>",
+ "id": "8c2b4fb0.9c3af",
+ "type": "record",
+ "name": "record",
+ "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.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": 6042.575706481934,
- "y": 5739.6875,
- "z": "5d875c6b.4b4c54",
+ "x": 1219.8007507324219,
+ "y": 239.30010223388672,
+ "z": "681fe365.17b79c",
"wires": [
[]
]
},
{
- "id": "3399b4c5.e6721c",
+ "id": "34257438.f039cc",
"type": "block",
"name": "block : atomic",
"xml": "<block atomic='true'>",
"atomic": "true",
"comments": "",
"outputs": 1,
- "x": 5871.465126037598,
- "y": 5791.354217529297,
- "z": "5d875c6b.4b4c54",
+ "x": 1040.0000801086426,
+ "y": 111.7000527381897,
+ "z": "681fe365.17b79c",
"wires": [
[
- "a5ed56e4.8b7cf8",
- "412dffaf.717f3"
+ "edc863cd.4c065",
+ "62627cc.ad28b84"
]
]
},
{
- "id": "a5ed56e4.8b7cf8",
- "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`\"/>",
+ "id": "3f71f50f.bfb31a",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
"comments": "",
"outputs": 1,
- "x": 6171.742835998535,
- "y": 5785.243425369263,
- "z": "5d875c6b.4b4c54",
+ "x": 1050.0001831054688,
+ "y": 273.700026512146,
+ "z": "681fe365.17b79c",
"wires": [
- []
+ [
+ "8c2b4fb0.9c3af",
+ "ff8631bd.6cfcf"
+ ]
]
},
{
- "id": "412dffaf.717f3",
- "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`\"/>",
+ "id": "edc863cd.4c065",
+ "type": "record",
+ "name": "record",
+ "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.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": 6091.7425537109375,
- "y": 5844.131841659546,
- "z": "5d875c6b.4b4c54",
+ "x": 1210.7999687194824,
+ "y": 45.500006675720215,
+ "z": "681fe365.17b79c",
"wires": [
[]
]
},
{
- "id": "d9589d3.9d1046",
+ "id": "5c716f1e.34b",
"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",
+ "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": 4345.139030456543,
- "y": 5728.8549284935,
- "z": "5d875c6b.4b4c54",
+ "x": 3302.800048828125,
+ "y": 138.50000190734863,
+ "z": "681fe365.17b79c",
"wires": [
[]
]
},
{
- "id": "90cbedb9.56af4",
- "type": "execute",
- "name": "prepare idNRCellCU",
- "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",
+ "id": "ddeb48d8.c64e38",
+ "type": "record",
+ "name": "record",
+ "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.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": 4317.638969421387,
- "y": 5762.104898929596,
- "z": "5d875c6b.4b4c54",
+ "x": 3321.549945831299,
+ "y": 183.00000190734863,
+ "z": "681fe365.17b79c",
"wires": [
[]
]
},
{
- "id": "a2f1007f.bb643",
+ "id": "4114cd81.dc40a4",
+ "type": "switchNode",
+ "name": "check action",
+ "xml": "<switch test='`$tmp.action`'>",
+ "comments": "",
+ "outputs": 1,
+ "x": 3322.300247192383,
+ "y": 69.75,
+ "z": "681fe365.17b79c",
+ "wires": [
+ [
+ "2237a97e.6e8ce6",
+ "69fe5985.2d2b48"
+ ]
+ ]
+ },
+ {
+ "id": "2237a97e.6e8ce6",
+ "type": "success",
+ "name": "deallocate",
+ "xml": "<outcome value='deallocate'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 3509.300048828125,
+ "y": 80.50002574920654,
+ "z": "681fe365.17b79c",
+ "wires": [
+ [
+ "57900bf5.5165c4"
+ ]
+ ]
+ },
+ {
+ "id": "898231d5.b9473",
"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",
+ "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": 4341.0769119262695,
- "y": 5796.667430400848,
- "z": "5d875c6b.4b4c54",
+ "x": 3920.3002548217773,
+ "y": 154.50000286102295,
+ "z": "681fe365.17b79c",
"wires": [
[]
]
},
{
- "id": "81d17f68.5545a",
- "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",
+ "id": "69fe5985.2d2b48",
+ "type": "failure",
+ "name": "modify-deallocate",
+ "xml": "<outcome value='modify-deallocate'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 3504.300048828125,
+ "y": 178.50000190734863,
+ "z": "681fe365.17b79c",
+ "wires": [
+ [
+ "d9fb6d98.dc5ab"
+ ]
+ ]
+ },
+ {
+ "id": "c43a7e48.c891f",
+ "type": "record",
+ "name": "record",
+ "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.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": 4348.576469421387,
- "y": 5832.41739988327,
- "z": "5d875c6b.4b4c54",
+ "x": 3881.5500526428223,
+ "y": 108.50000190734863,
+ "z": "681fe365.17b79c",
"wires": [
[]
]
},
{
- "id": "1dbf0a7e.210a96",
+ "id": "57900bf5.5165c4",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 3681.550048828125,
+ "y": 80.50000190734863,
+ "z": "681fe365.17b79c",
+ "wires": [
+ [
+ "c43a7e48.c891f",
+ "e218fee3.836c3"
+ ]
+ ]
+ },
+ {
+ "id": "e218fee3.836c3",
+ "type": "set",
+ "name": "read sNSSAI from input",
+ "xml": "<set>\n<parameter name='tmp.sNSSAI' value=\"`$payloadJson.input.sNSSAI`\"/>",
+ "comments": "",
+ "x": 3883.5500564575195,
+ "y": 59.500000953674316,
+ "z": "681fe365.17b79c",
+ "wires": []
+ },
+ {
+ "id": "f7b8b284.68822",
+ "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": 3341.050048828125,
+ "y": 23,
+ "z": "681fe365.17b79c",
+ "wires": []
+ },
+ {
+ "id": "d9fb6d98.dc5ab",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 3698.100051879883,
+ "y": 175.00000190734863,
+ "z": "681fe365.17b79c",
+ "wires": [
+ [
+ "898231d5.b9473",
+ "a5799116.cf38a"
+ ]
+ ]
+ },
+ {
+ "id": "a5799116.cf38a",
"type": "record",
"name": "record",
- "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.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",
+ "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.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": 3711.424075126648,
- "y": 5825.279491424561,
- "z": "5d875c6b.4b4c54",
+ "x": 3940.10005569458,
+ "y": 223.00000381469727,
+ "z": "681fe365.17b79c",
"wires": [
[]
]
},
{
- "id": "5daf7f84.24d9d",
+ "id": "c6867b74.42eca8",
"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' />",
+ "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": 2734.199951171875,
+ "y": 110,
+ "z": "681fe365.17b79c",
+ "wires": [
+ [
+ "c370df41.5a98f"
+ ]
+ ]
+ },
+ {
+ "id": "c370df41.5a98f",
+ "type": "other",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2935.4497604370117,
+ "y": 99.25,
+ "z": "681fe365.17b79c",
+ "wires": [
+ [
+ "e240bfcf.89f1a"
+ ]
+ ]
+ },
+ {
+ "id": "e240bfcf.89f1a",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
"comments": "",
"outputs": 1,
- "x": 3783.701416015625,
- "y": 5898.529005050659,
- "z": "5d875c6b.4b4c54",
+ "x": 3101.4498596191406,
+ "y": 93.25,
+ "z": "681fe365.17b79c",
"wires": [
[
- "e7e90fb8.db687",
- "a22a04f6.640d18"
+ "f7b8b284.68822",
+ "4114cd81.dc40a4",
+ "5c716f1e.34b",
+ "ddeb48d8.c64e38"
]
]
},
{
- "id": "490de212.f261fc",
+ "id": "ff8631bd.6cfcf",
"type": "execute",
- "name": "remove sNSSAI from context",
- "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='ctxListRemove' >\n<parameter name=\"list_pfx\" value=\"`'$getNFNSSIRIC-configdb-response.[' +$idy +'].gNBDUList['+$id-du +'].cellCUList['+ $id-celldu +'].pLMNInfoList'`\" />\n<parameter name=\"value\" value=\"`$tmp.sNSSAI`\" />",
+ "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": 3363.576385498047,
- "y": 5933.8541622161865,
- "z": "5d875c6b.4b4c54",
+ "x": 1333.2001647949219,
+ "y": 320.00000381469727,
+ "z": "681fe365.17b79c",
"wires": [
- []
+ [
+ "d44cf593.409d78"
+ ]
+ ]
+ },
+ {
+ "id": "d44cf593.409d78",
+ "type": "other",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1594.1999740600586,
+ "y": 268,
+ "z": "681fe365.17b79c",
+ "wires": [
+ [
+ "1a8e8463.6e1cac"
+ ]
]
},
{
- "id": "2798ec67.4d5e74",
+ "id": "1a8e8463.6e1cac",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 1765.1999740600586,
+ "y": 269.0000009536743,
+ "z": "681fe365.17b79c",
+ "wires": [
+ [
+ "55fac337.1bb07c",
+ "6956064c.db7758",
+ "891aa56b.e3e208",
+ "d12e26d5.f8e5b8",
+ "612cfde.0b0cf04",
+ "24a7035.a5e46fc"
+ ]
+ ]
+ },
+ {
+ "id": "55fac337.1bb07c",
+ "type": "set",
+ "name": "read action from input",
+ "xml": "<set>\n<parameter name='tmp.action' value=\"`$instantiate-r-a-n-slice-input.action`\"/>",
+ "comments": "",
+ "x": 1985.2000732421875,
+ "y": 251.00000381469727,
+ "z": "681fe365.17b79c",
+ "wires": []
+ },
+ {
+ "id": "6956064c.db7758",
"type": "execute",
- "name": "prepare updated PLMNInfo list",
- "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue' >\n<parameter name=\"tmp.ceLLDUpLMNInfoList\" value=\"`'$getNFNSSIRIC-configdb-response.[' +$idy +'].gNBDUList['+$id-du +'].cellCUList['+ $id-celldu +'].pLMNInfoList'`\" />\n",
+ "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": 3372.9512481689453,
- "y": 5992.291604042053,
- "z": "5d875c6b.4b4c54",
+ "x": 1955.1999816894531,
+ "y": 288,
+ "z": "681fe365.17b79c",
"wires": [
[]
]
},
{
- "id": "f64e2531.bfe9d8",
- "type": "execute",
- "name": "read RRMPolicyMembers List",
- "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'>\n\t<parameter name='outputPath' value='tmp.NRCellDURRMPolicyMembersList' />\n\t<parameter name='source' value=\"`'$get-rrmpolicyratio-du-response.attributes.RRMPolicyRatio['+ $iddu-rrm+'].attributes.rRMPolicyMemberList'`\" />",
+ "id": "891aa56b.e3e208",
+ "type": "record",
+ "name": "record",
+ "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.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": 3363.576385498047,
- "y": 6136.3541622161865,
- "z": "5d875c6b.4b4c54",
+ "x": 1953.9497833251953,
+ "y": 334.5000009536743,
+ "z": "681fe365.17b79c",
"wires": [
[]
]
},
{
- "id": "bb5ea2d5.54a8",
- "type": "execute",
- "name": "remove sNSSAI from context",
- "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='ctxListRemove' >\n<parameter name=\"list_pfx\" value=\"`$tmp.NRCellDURRMPolicyMembersList`\" />\n<parameter name=\"value\" value=\"`$tmp.sNSSAI`\" />",
+ "id": "d12e26d5.f8e5b8",
+ "type": "record",
+ "name": "record",
+ "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.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": 3362.3262329101562,
- "y": 6187.9166622161865,
- "z": "5d875c6b.4b4c54",
+ "x": 1945.4000778198242,
+ "y": 468.50000762939453,
+ "z": "681fe365.17b79c",
"wires": [
[]
]
},
{
- "id": "2c3ebac3.2ff846",
+ "id": "62627cc.ad28b84",
"type": "execute",
- "name": "prepare updated RRMPolicyMember list",
- "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue' >\n<parameter name=\"tmp.CellDURRMMembersList\" value=\"`'$get-rrmpolicyratio-du-response.attributes.RRMPolicyRatio['+ $iddu-rrm+'].attributes.rRMPolicyMemberList'`\" />\n",
+ "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": 3370.4510955810547,
- "y": 6240.416596412659,
- "z": "5d875c6b.4b4c54",
+ "x": 1428.8000679016113,
+ "y": 123,
+ "z": "681fe365.17b79c",
"wires": [
- []
+ [
+ "dfd96611.c23fa8"
+ ]
+ ]
+ },
+ {
+ "id": "dfd96611.c23fa8",
+ "type": "other",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1630.8000259399414,
+ "y": 48.99999809265137,
+ "z": "681fe365.17b79c",
+ "wires": [
+ [
+ "82baaeb7.084c9"
+ ]
]
},
{
- "id": "a0ff73b.d53929",
+ "id": "82baaeb7.084c9",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 1801.8000259399414,
+ "y": 49.999999046325684,
+ "z": "681fe365.17b79c",
+ "wires": [
+ [
+ "f4ea7153.1e445",
+ "61de822f.baef2c",
+ "51156788.f2a778",
+ "dc28934c.bf03",
+ "2b705c38.4bd364",
+ "d81a0a.007775f8"
+ ]
+ ]
+ },
+ {
+ "id": "f4ea7153.1e445",
+ "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": 2021.8000259399414,
+ "y": 26.999998092651367,
+ "z": "681fe365.17b79c",
+ "wires": []
+ },
+ {
+ "id": "61de822f.baef2c",
"type": "execute",
- "name": "prepare updated PLMNInfo list",
- "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue' >\n<parameter name=\"tmp.pLMNInfoList-RIC\" value=\"`'$getNearRTRICById-configdb-response.pLMNInfoList'`\" />\n",
+ "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": 1199.826416015625,
- "y": 1118.8541870117188,
- "z": "5d875c6b.4b4c54",
+ "x": 1991.800033569336,
+ "y": 68.99999809265137,
+ "z": "681fe365.17b79c",
"wires": [
[]
]
},
{
- "id": "fa5127b8.c6a188",
- "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\" />",
+ "id": "51156788.f2a778",
+ "type": "record",
+ "name": "record",
+ "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.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": 1984.800048828125,
+ "y": 106,
+ "z": "681fe365.17b79c",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "2b705c38.4bd364",
+ "type": "record",
+ "name": "record",
+ "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.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": 1986.8000793457031,
+ "y": 214.00000381469727,
+ "z": "681fe365.17b79c",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "dc28934c.bf03",
+ "type": "set",
+ "name": "read sNSSAI from input",
+ "xml": "<set>\n<parameter name='tmp.sNSSAI' value=\"`$payloadJson.input.sNSSAI`\"/>",
+ "comments": "",
+ "x": 2051.800079345703,
+ "y": 144.00000190734863,
+ "z": "681fe365.17b79c",
+ "wires": []
+ },
+ {
+ "id": "612cfde.0b0cf04",
+ "type": "set",
+ "name": "read sNSSAI from input sliceprofile",
+ "xml": "<set>\n<parameter name='tmp.sNSSAI' value=\"`$payloadJson.input.sliceProfile.sNSSAI`\"/>",
+ "comments": "",
+ "x": 2010.4000244140625,
+ "y": 379,
+ "z": "681fe365.17b79c",
+ "wires": []
+ },
+ {
+ "id": "24a7035.a5e46fc",
+ "type": "set",
+ "name": "read SpId from input sliceprofile",
+ "xml": "<set>\n<parameter name='tmp.sliceprofileid' value=\"`$payloadJson.input.sliceProfile.sliceProfileId`\"/>",
+ "comments": "",
+ "x": 2037.800048828125,
+ "y": 424,
+ "z": "681fe365.17b79c",
+ "wires": []
+ },
+ {
+ "id": "d81a0a.007775f8",
+ "type": "set",
+ "name": "read SpId from input ",
+ "xml": "<set>\n<parameter name='tmp.sliceprofileid' value=\"`$payloadJson.input.sliceProfileId`\"/>",
"comments": "",
- "x": 353.4722194671631,
- "y": 1762.5000267028809,
- "z": "5d875c6b.4b4c54",
+ "x": 2075.800079345703,
+ "y": 178.00000190734863,
+ "z": "681fe365.17b79c",
"wires": []
}
] \ 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 ddf618d6..93d226f5 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
@@ -8,52 +8,110 @@
<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-input.action`"/>
- <parameter name="field3" value="`$terminate-r-a-n-slice-input.common-header.timestamp`"/>
- <parameter name="field4" value="`$terminate-r-a-n-slice-input.common-header.request-id`"/>
- <parameter name="field5" value="`$terminate-r-a-n-slice-input.common-header.originator-id`"/>
+ <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-input.payload`"/>
+ <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>
- <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='jsonStringToCtx'>
- <parameter name='source' value='terminate-r-a-n-slice-input.payload' />
- <parameter name='outputPath' value='payloadJson' />
- <parameter name='isEscaped' value='false' />
- <outcome value='success'>
+ <switch test='`$terminate-r-a-n-slice-instance-input.action == deallocate`'>
+ <outcome value='true'>
<block atomic='true'>
- <switch test='`$instantiate-r-a-n-slice-input.action`==deallocate'>
+ <record plugin="org.onap.ccsdk.sli.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'>
- <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'>
- <parameter name='outputPath' value='tmp.sNSSAI' />
- <parameter name='source' value="`$payloadJson.input.NSSAI`" />
- </execute>
- </outcome>
- <outcome value='failure'>
- <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'>
- <parameter name='outputPath' value='tmp.sNSSAI' />
- <parameter name='source' value="`$payloadJson.input.sliceProfile.NSSAI`" />
- </execute>
+ <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>
- </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>
+ </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="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`"/>
+ <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>
- </execute>
+ </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>
@@ -103,10 +161,10 @@
<block atomic='true'>
<set>
<parameter name="tmp.so.callbackURL" value="`$payloadJson.input.callbackURL`"/>
- <parameter name="tmp.status" value="`$error-code`"/>
+ <parameter name="tmp.status" value="success"/>
<parameter name="tmp.reason" value="`$error-message`"/>
- <parameter name="tmp.requestID" value="`$terminateRANSlice-input.common-header.request-id`"/>
- <parameter name="tmp.action" value="`$terminateRANSlice-input.action`"/>
+ <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" />
@@ -120,13 +178,15 @@
</record>
<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >
<parameter name="templateFileName" value="`$prop.restapi.templateDir + '/ranSlice-so-response.json'`" />
- <parameter name="restapiUrl" value="`$tmp.so.callbackURL`"/>
+ <parameter name="restapiUrl" value="`$payloadJson.input.callbackURL`"/>
<parameter name="httpMethod" value="POST"/>
- <parameter name="responsePrefix" value="so-callback-modify-response"/>
+ <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'>
@@ -167,7 +227,7 @@
<parameter name="source" value="`$prop.restapi.configdb.getplmn`"/>
<parameter name="outputPath" value="tmp.configdb.getPLMNId.url"/>
<parameter name="target" value="{sliceProfileId}"/>
- <parameter name="replacement" value="`$payloadJson.input.sliceProfileId`"/>
+ <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" />
@@ -186,21 +246,19 @@
</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='substring'>
- <parameter name="string" value="`$tmp.pLMNId`" />
- <parameter name="result" value="tmp.mcc"/>
- <parameter name="begin-index" value="0" />
- <parameter name="end-index" value="3" />
+ <parameter name='source' value="`getPLMN-configdb-response.plmnId`" />
</execute>
- <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='substring'>
- <parameter name="string" value="`$tmp.pLMNId`" />
- <parameter name="result" value="tmp.mnc"/>
- <parameter name="begin-index" value="4" />
+ <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/instantiateRANSlice.log" />
+ <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`"/>
@@ -210,146 +268,106 @@
<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>
- <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >
- <parameter name="source" value="`$prop.restapi.configdb.getNearRTRICById`"/>
- <parameter name="outputPath" value="tmp.configdb.getNearRTRICById.url"/>
- <parameter name="target" value="{nearRTRICId}"/>
- <parameter name="replacement" value="`$tmp.nearRTRICId`"/>
+ <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/terminateRANSliceModifyAllocate.log" />
+ <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 NearRTRICId"/>
- <parameter name='field2' value="`$prop.configdb.url + $tmp.configdb.getNearRTRICById.url`" />
- <parameter name='field3' value="`$nearRTRICId`" />
+ <parameter name="field1" value="PLMNInfo List before removal"/>
+ <parameter name="field2" value="`$tmp.RICPLMNEntries`"/>
</record>
- <execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >
- <parameter name="restapiUrl" value="`$prop.configdb.url + $tmp.configdb.getNearRTRICById.url`"/>
- <parameter name="httpMethod" value="GET"/>
- <parameter name="responsePrefix" value="getNearRTRICById-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>
+ <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'>
- <set>
- <parameter name="tmp.so.callbackURL" value="`$payloadJson.input.callbackURL`"/>
- <parameter name="tmp.status" value="`$error-code`"/>
- <parameter name="tmp.reason" value="`$error-message`"/>
- <parameter name="tmp.requestID" value="`$terminateRANSlice-input.common-header.request-id`"/>
- <parameter name="tmp.action" value="`$terminateRANSlice-input.action`"/>
- </set>
- <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
- <parameter name="file" value="/opt/opendaylight/current/data/log/so-callback-response.log" />
- <parameter name="level" value="info" />
- <parameter name="field1" value="URL for SO Callback Response"/>
- <parameter name='field2' value="`$tmp.so.callbackURL`" />
- <parameter name='field3' value="`$tmp.status`" />
- <parameter name='field4' value="`$tmp.reason`" />
- <parameter name='field5' value="`$tmp.requestID`" />
- <parameter name='field6' value="`$tmp.action`" />
- </record>
- <execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >
- <parameter name="templateFileName" value="`$prop.restapi.templateDir + '/ranSlice-so-response.json'`" />
- <parameter name="restapiUrl" value="`$tmp.so.callbackURL`"/>
- <parameter name="httpMethod" value="POST"/>
- <parameter name="responsePrefix" value="so-callback-modify-response"/>
- <parameter name='contentType' value='application/json' />
- <parameter name='format' value='json' />
- <parameter name='accept' value='*/*' />
- <parameter name="convertResponse" value="true"/>
- <outcome value='failure'>
- <block>
- <return status='failure'>
- <parameter name='ack-final' value='Y'/>
- <parameter name="error-code" value="500" />
- <parameter name="error-message" value="Error sending SO Response" />
- </return>
- </block>
- </outcome>
- <outcome value='success'>
- <block>
+ <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>
+ <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="SO Response Sent "/>
+ <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>
- </execute>
+ </switch>
</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="`$getNearRTRICById-configdb-response`"/>
- </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.gNBId' />
- <parameter name='source' value="`'getNFNSSIRIC-configdb-response.[' + $idy + '].gNBId'`" />
- </execute>
- <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'>
- <parameter name='outputPath' value='tmp.gNBIdLength' />
- <parameter name='source' value="`'getNFNSSIRIC-configdb-response.[' + $idy + '].gNBIdLength'`" />
- </execute>
- <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='ctxListRemove' >
- <parameter name="list_pfx" value="`$getNearRTRICById-configdb-response`" />
- <parameter name="value" value="`$getNearRTRICById-configdb-response.pLMNInfoList[0].sNSSAI.sNSSAI`" />
- </execute>
- <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue' >
- <parameter name="tmp.pLMNInfoList-RIC" value="`'$getNearRTRICById-configdb-response.pLMNInfoList'`" />
- </execute>
- <execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >
- <parameter name="restapiUrl" value="`$prop.configdb.url + $prop.restapi.configdb.updatenearRTRIC`"/>
- <parameter name="templateFileName" value="`$prop.restapi.templateDir + '/ranSlice-configDB-removenearRTRIC-PLMNInfo.json'`" />
- <parameter name="httpMethod" value="PUT"/>
- <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>
- <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>
- <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
- <parameter name="file" value="/opt/opendaylight/current/data/log/instantiateRANSlice.log" />
- <parameter name="level" value="info" />
- <parameter name="field1" value="Successfully Updated NearRT RIC info in ConfigDB"/>
- </record>
- </block>
- </outcome>
- </execute>
+ </for>
+ </block>
+ </for>
</block>
<block atomic='true'>
<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'>
@@ -384,492 +402,856 @@
<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 '`" />
+ <parameter name='source' value="`'getNFNSSIRIC-configdb-response.['+ $idy +'].gNBCUCPList['+ $idz +'].cellCUList['+ $idcu +'].pLMNInfoList_length'`" />
</execute>
- <for index='id-cuplmn' start='0' end='`$tmp.pLMNInfoList_length`' >
- <block atomic='true'>
- <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'>
- <parameter name='outputPath' value='tmp.configDBSNSSAI' />
- <parameter name='source' value="`'getNFNSSIRIC-configdb-response.['+ $idy +'].gNBCUCPList['+ $idz +'].cellCUList['+ $idcu +'].pLMNInfoList['+ $id-cuplmn +'].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.configDBSNSSAI`"/>
- <parameter name="field3" value="sNSSAI from request"/>
- <parameter name="field4" value="`$tmp.sNSSAI`"/>
- </record>
- <switch test='`$tmp.configDBSNSSAI == $tmp.sNSSAI`'>
- <outcome value='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="`'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'>
- <record plugin="org.onap.ccsdk.sli.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 "/>
- </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`"/>
+ <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/terminateRANSliceModifyAllocate.log" />
+ <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.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`"/>
+ <parameter name="field1" value="CU_plmninfolength_nssailength "/>
+ <parameter name="field2" value="`$tmp.sNssaiListLengthCU`"/>
</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="`$error-code`"/>
- <parameter name="tmp.reason" value="`$error-message`"/>
- <parameter name="tmp.requestID" value="`$terminateRANSlice-input.common-header.request-id`"/>
- <parameter name="tmp.action" value="`$terminateRANSlice-input.action`"/>
- </set>
- <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
- <parameter name="file" value="/opt/opendaylight/current/data/log/so-callback-response.log" />
- <parameter name="level" value="info" />
- <parameter name="field1" value="URL for SO Callback Response"/>
- <parameter name='field2' value="`$tmp.so.callbackURL`" />
- <parameter name='field3' value="`$tmp.status`" />
- <parameter name='field4' value="`$tmp.reason`" />
- <parameter name='field5' value="`$tmp.requestID`" />
- <parameter name='field6' value="`$tmp.action`" />
- </record>
- <execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >
- <parameter name="templateFileName" value="`$prop.restapi.templateDir + '/ranSlice-so-response.json'`" />
- <parameter name="restapiUrl" value="`$tmp.so.callbackURL`"/>
- <parameter name="httpMethod" value="POST"/>
- <parameter name="responsePrefix" value="so-callback-modify-response"/>
- <parameter name='contentType' value='application/json' />
- <parameter name='format' value='json' />
- <parameter name='accept' value='*/*' />
- <parameter name="convertResponse" value="true"/>
- <outcome value='failure'>
- <block>
- <return status='failure'>
- <parameter name='ack-final' value='Y'/>
- <parameter name="error-code" value="500" />
- <parameter name="error-message" value="Error sending SO Response" />
- </return>
- </block>
- </outcome>
- <outcome value='success'>
- <block>
- <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
- <parameter name="file" value="/opt/opendaylight/current/data/log/terminateRANSlice.log" />
- <parameter name="level" value="info" />
- <parameter name="field1" value="SO Response Sent "/>
- </record>
- </block>
- </outcome>
- </execute>
- </block>
- </block>
- </outcome>
- <outcome value='success'>
+ <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="Successfully Patched - cellCU PLMNInfo List"/>
+ <parameter name="field1" value="plmninfolistnssailength in true in CU "/>
+ <parameter name="field2" value="`$tmp.sNssaiListLengthCU`"/>
</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.CellCU`"/>
- </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>
+ <for index='id-cusnssai' start='0' end='`$tmp.sNssaiListLengthCU`'>
<block atomic='true'>
- <set>
- <parameter name="tmp.so.callbackURL" value="`$payloadJson.input.callbackURL`"/>
- <parameter name="tmp.status" value="`$error-code`"/>
- <parameter name="tmp.reason" value="`$error-message`"/>
- <parameter name="tmp.requestID" value="`$terminateRANSlice-input.common-header.request-id`"/>
- <parameter name="tmp.action" value="`$terminateRANSlice-input.action`"/>
- </set>
+ <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/so-callback-response.log" />
+ <parameter name="file" value="/opt/opendaylight/current/data/log/terminateRANSlice.log" />
<parameter name="level" value="info" />
- <parameter name="field1" value="URL for SO Callback Response"/>
- <parameter name='field2' value="`$tmp.so.callbackURL`" />
- <parameter name='field3' value="`$tmp.status`" />
- <parameter name='field4' value="`$tmp.reason`" />
- <parameter name='field5' value="`$tmp.requestID`" />
- <parameter name='field6' value="`$tmp.action`" />
+ <parameter name="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>
- <execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >
- <parameter name="templateFileName" value="`$prop.restapi.templateDir + '/ranSlice-so-response.json'`" />
- <parameter name="restapiUrl" value="`$tmp.so.callbackURL`"/>
- <parameter name="httpMethod" value="POST"/>
- <parameter name="responsePrefix" value="so-callback-modify-response"/>
- <parameter name='contentType' value='application/json' />
- <parameter name='format' value='json' />
- <parameter name='accept' value='*/*' />
- <parameter name="convertResponse" value="true"/>
- <outcome value='failure'>
- <block>
- <return status='failure'>
- <parameter name='ack-final' value='Y'/>
- <parameter name="error-code" value="500" />
- <parameter name="error-message" value="Error sending SO Response" />
- </return>
- </block>
- </outcome>
- <outcome value='success'>
- <block>
+ <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="SO Response Sent "/>
+ <parameter name="field1" value="NSSAI exists for cucp plmninfo "/>
</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>
- <set>
- <parameter name='tmp.RRMPolicyRatio_id' value="`'$get-rrmpolicyratio-response.attributes.RRMPolicyRatio['+ $idcu-rrm+'].id'`" />
- </set>
- <set>
- <parameter name='tmp.NRCellCURRMPolicyMembersLength' value="`'$get-rrmpolicyratio-response.attributes.RRMPolicyRatio['+ $idcu-rrm+'].attributes.rRMPolicyMemberList_length'`" />
- </set>
- <for index='idcu-rrm1' start='0' end='`$tmp.NRCellCURRMPolicyMembersLength`' >
- <block atomic='true'>
- <switch test='`$tmp.NRCellCURRMPolicyMembersLeangth`>0'>
- <outcome value='success'>
- <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>
+ <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.removeRRMPolicyRatio.ToNRCellCU.ransim-mounted`"/>
- <parameter name="outputPath" value="tmp.deleteRRMPolicyRatio.url"/>
+ <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.deleteRRMPolicyRatio.url`"/>
- <parameter name="outputPath" value="tmp.deleteRRMPolicyRatio.url"/>
+ <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>
- </block>
- </outcome>
- <outcome value='failure'>
- <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`'>
+ <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.RRMPolicyMember_id' value="`'$get-rrmpolicyratio-response.attributes.RRMPolicyRatio['+ $idcu-rrm+'].attributes.rRMPolicyMemberList['+ $idcu-rrm1 +'].idx'`" />
+ <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="RRMPolicyMember id - "/>
- <parameter name="field2" value="`$tmp.RRMPolicyMember_id`"/>
+ <parameter name="field1" value="RRMPolicyMembersList size"/>
+ <parameter name="field2" value="`$tmp.NRCellCURRMPolicyMembersLength`"/>
</record>
- <switch test='`$prop.ransim-mounted`'>
- <outcome value='false'>
+ <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="`$prop.restapi.removeRRMPolicyMember.ToNRCellCU`"/>
+ <parameter name="source" value="`$tmp.deleteRRMPolicyRatio.url`"/>
<parameter name="outputPath" value="tmp.deleteRRMPolicyRatio.url"/>
- <parameter name="target" value="{idNearRTRIC}"/>
- <parameter name="replacement" value="`$tmp.nearRTRICId`"/>
+ <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='true'>
+ <outcome value='failure'>
<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>
+ <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>
- </switch>
+ </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>
- </outcome>
- </switch>
+ </for>
+ </block>
</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>
+ </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="Delete RRMPolicy URL - "/>
- <parameter name="field2" value="`$tmp.deleteRRMPolicyRatio.url`"/>
- <parameter name="field3" value="RRMPolicyRatio id"/>
- <parameter name="field4" value="`$tmp.RRMPolicyRatio_id`"/>
+ <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.deleteRRMPolicyRatio.url`"/>
+ <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-cellCU-RRMPolicyRatio-response"/>
+ <parameter name="responsePrefix" value="delete-CUUP-sNSSAI-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="`$error-code`"/>
+ <parameter name="tmp.status" value="success"/>
<parameter name="tmp.reason" value="`$error-message`"/>
- <parameter name="tmp.requestID" value="`$terminateRANSlice-input.common-header.request-id`"/>
- <parameter name="tmp.action" value="`$terminateRANSlice-input.action`"/>
+ <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" />
@@ -883,13 +1265,15 @@
</record>
<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >
<parameter name="templateFileName" value="`$prop.restapi.templateDir + '/ranSlice-so-response.json'`" />
- <parameter name="restapiUrl" value="`$tmp.so.callbackURL`"/>
+ <parameter name="restapiUrl" value="`$payloadJson.input.callbackURL`"/>
<parameter name="httpMethod" value="POST"/>
- <parameter name="responsePrefix" value="so-callback-modify-response"/>
+ <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'>
@@ -910,25 +1294,43 @@
</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.SliPluginUtils' method='getAttributeValue'>
- <parameter name='outputPath' value='tmp.NRCellCURRMPolicyMembersList' />
- <parameter name='source' value="`'$get-rrmpolicyratio-response.attributes.RRMPolicyRatio['+ $idcu-rrm +'].attributes.rRMPolicyMemberList'`" />
- </execute>
- <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='ctxListRemove' >
- <parameter name="list_pfx" value="`$tmp.NRCellCURRMPolicyMembersList`" />
- <parameter name="value" value="`$tmp.sNSSAI`" />
+ <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.SliPluginUtils' method='getAttributeValue' >
- <parameter name="tmp.CellCURRMMembersList" value="`'$get-rrmpolicyratio-response.attributes.RRMPolicyRatio['+ $idcu-rrm +'].attributes.rRMPolicyMemberList'`" />
+ <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 + $prop.restapi.configdb.updateRRMPolicy`"/>
- <parameter name="templateFileName" value="`$prop.restapi.templateDir + '/ranSlice-configDB-removeRRMPolicyMember-CUCP.json'`" />
- <parameter name="httpMethod" value="PUT"/>
- <parameter name="responsePrefix" value="remove-gNBCUCP-rrmpolicy-configdb-response"/>
+ <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' />
@@ -937,816 +1339,434 @@
<block atomic='true'>
<set>
<parameter name='error-code' value='500'/>
- <parameter name='error-message' value='Error in updating RRMPolicyRatio - NRCellCU. Aborting RPC executiopn'/>
+ <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 updating NRCellCU-RRMPolicyRatio in ConfigDB. Aborting RPC executiopn'/>
+ <parameter name='error-message' value='Error removing CUUP PLMNInfo. Aborting RPC executiopn'/>
</return>
- <block atomic='true'>
- <set>
- <parameter name="tmp.so.callbackURL" value="`$payloadJson.input.callbackURL`"/>
- <parameter name="tmp.status" value="`$error-code`"/>
- <parameter name="tmp.reason" value="`$error-message`"/>
- <parameter name="tmp.requestID" value="`$terminateRANSlice-input.common-header.request-id`"/>
- <parameter name="tmp.action" value="`$terminateRANSlice-input.action`"/>
- </set>
- <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
- <parameter name="file" value="/opt/opendaylight/current/data/log/so-callback-response.log" />
- <parameter name="level" value="info" />
- <parameter name="field1" value="URL for SO Callback Response"/>
- <parameter name='field2' value="`$tmp.so.callbackURL`" />
- <parameter name='field3' value="`$tmp.status`" />
- <parameter name='field4' value="`$tmp.reason`" />
- <parameter name='field5' value="`$tmp.requestID`" />
- <parameter name='field6' value="`$tmp.action`" />
- </record>
- <execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >
- <parameter name="templateFileName" value="`$prop.restapi.templateDir + '/ranSlice-so-response.json'`" />
- <parameter name="restapiUrl" value="`$tmp.so.callbackURL`"/>
- <parameter name="httpMethod" value="POST"/>
- <parameter name="responsePrefix" value="so-callback-modify-response"/>
- <parameter name='contentType' value='application/json' />
- <parameter name='format' value='json' />
- <parameter name='accept' value='*/*' />
- <parameter name="convertResponse" value="true"/>
- <outcome value='failure'>
- <block>
- <return status='failure'>
- <parameter name='ack-final' value='Y'/>
- <parameter name="error-code" value="500" />
- <parameter name="error-message" value="Error sending SO Response" />
- </return>
- </block>
- </outcome>
- <outcome value='success'>
- <block>
- <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
- <parameter name="file" value="/opt/opendaylight/current/data/log/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>
+ <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 ConfigDB - NRCellCU RRMPolicyRatio "/>
+ <parameter name="field1" value="Successfully removed - gNBCUUP PLMNInfo Entry from configdb"/>
</record>
</block>
</outcome>
</execute>
</block>
- </for>
- </block>
- <block atomic='true'>
- <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='ctxListRemove' >
- <parameter name="list_pfx" value="`'$getNFNSSIRIC-configdb-response.[' +$idy +'].gNBCUCPList['+$idz +'].cellCUList['+ $idcu +'].pLMNInfoList'`" />
- <parameter name="value" value="`$tmp.sNSSAI`" />
- </execute>
- <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue' >
- <parameter name="tmp.pLMNInfoList" value="`'$getNFNSSIRIC-configdb-response.[' +$idy +'].gNBCUCPList['+$idz +'].cellCUList['+ $idcu +'].pLMNInfoList'`" />
- </execute>
- <execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >
- <parameter name="restapiUrl" value="`$prop.configdb.url + $prop.restapi.configdb.updategNBCUCP`"/>
- <parameter name="templateFileName" value="`$prop.restapi.templateDir + '/ranSlice-configDB-removegNBCUCP.json'`" />
- <parameter name="httpMethod" value="PUT"/>
- <parameter name="responsePrefix" value="remove-gNBCUCP-configdb-response"/>
- <parameter name='contentType' value='application/json' />
- <parameter name='format' value='json' />
- <parameter name='accept' value='application/json' />
- <parameter name="convertResponse" value="true"/>
- <outcome value='failure'>
- <block atomic='true'>
- <set>
- <parameter name='error-code' value='500'/>
- <parameter name='error-message' value='Error in updating Config DB - NRCellCU. 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 in ConfigDB. Aborting RPC executiopn'/>
- </return>
- <block atomic='true'>
- <set>
- <parameter name="tmp.so.callbackURL" value="`$payloadJson.input.callbackURL`"/>
- <parameter name="tmp.status" value="`$error-code`"/>
- <parameter name="tmp.reason" value="`$error-message`"/>
- <parameter name="tmp.requestID" value="`$terminateRANSlice-input.common-header.request-id`"/>
- <parameter name="tmp.action" value="`$terminateRANSlice-input.action`"/>
- </set>
- <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
- <parameter name="file" value="/opt/opendaylight/current/data/log/so-callback-response.log" />
- <parameter name="level" value="info" />
- <parameter name="field1" value="URL for SO Callback Response"/>
- <parameter name='field2' value="`$tmp.so.callbackURL`" />
- <parameter name='field3' value="`$tmp.status`" />
- <parameter name='field4' value="`$tmp.reason`" />
- <parameter name='field5' value="`$tmp.requestID`" />
- <parameter name='field6' value="`$tmp.action`" />
- </record>
- <execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >
- <parameter name="templateFileName" value="`$prop.restapi.templateDir + '/ranSlice-so-response.json'`" />
- <parameter name="restapiUrl" value="`$tmp.so.callbackURL`"/>
- <parameter name="httpMethod" value="POST"/>
- <parameter name="responsePrefix" value="so-callback-modify-response"/>
- <parameter name='contentType' value='application/json' />
- <parameter name='format' value='json' />
- <parameter name='accept' value='*/*' />
- <parameter name="convertResponse" value="true"/>
- <outcome value='failure'>
- <block>
- <return status='failure'>
- <parameter name='ack-final' value='Y'/>
- <parameter name="error-code" value="500" />
- <parameter name="error-message" value="Error sending SO Response" />
- </return>
- </block>
- </outcome>
- <outcome value='success'>
- <block>
- <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
- <parameter name="file" value="/opt/opendaylight/current/data/log/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>
- <record plugin="org.onap.ccsdk.sli.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 ConfigDB - NRCellCU pLMNinfo "/>
- </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>
- </outcome>
- </switch>
- </block>
- </for>
+ </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>
- </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>
+ <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="idGNBCUUPFunction "/>
- <parameter name="field2" value="`$tmp.idGNBCUUPFunction`"/>
+ <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.pLMNInfoList' />
- <parameter name='source' value="`'getNFNSSIRIC-configdb-response.['+ $idy +'].gNBCUUPList['+ $id-cuup +'].pLMNInfoList_length'`" />
+ <parameter name='outputPath' value='tmp.rrmPolicyRatioList_CUUP_length' />
+ <parameter name='source' value="`'get-rrmpolicyratio-cuup-response.attributes.RRMPolicyRatio_length'`" />
</execute>
- <for index='id-plmn' start='0' end='`$tmp.pLMNInfoList`'>
+ <record plugin="org.onap.ccsdk.sli.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.configDBSNSSAI1' />
- <parameter name='source' value="`'getNFNSSIRIC-configdb-response.['+ $idy +'].gNBCUUPList['+ $id-cuup +'].pLMNInfoList['+ $id-plmn +'].sNSSAI.sNSSAI'`" />
+ <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/terminateRANSliceModifyAllocate.log" />
+ <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`"/>
+ <parameter name="field1" value="CUUP - RRMPolicyMembersList size"/>
+ <parameter name="field2" value="`$tmp.CUUPRRMPolicyMembersLength`"/>
</record>
- <switch test='`$tmp.configDBSNSSAI1 == $tmp.sNSSAI`'>
- <outcome value='true'>
- <switch test='`$prop.ransim-mounted`'>
- <outcome value='false'>
- <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >
- <parameter name="source" value="`$prop.restapi.terminateSNSSAIEntry.ToCUUP`"/>
- <parameter name="outputPath" value="tmp.deletePLMNInfo-CUUP.url"/>
- <parameter name="target" value="{idNearRTRIC}"/>
- <parameter name="replacement" value="`$tmp.nearRTRICId`"/>
- </execute>
- </outcome>
+ <for index='idcu-rrm2' start='0' end='`$tmp.CUUPRRMPolicyMembersLength`' >
+ <block atomic='true'>
+ <switch test='`$tmp.CUUPRRMPolicyMembersLength > 0`'>
<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>
+ <record plugin="org.onap.ccsdk.sli.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>
- </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>
+ <record plugin="org.onap.ccsdk.sli.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.deletePLMNInfo-CUUP.url`"/>
+ <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-sNSSAI-response"/>
+ <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'>
- <block atomic='true'>
- <set>
- <parameter name="tmp.so.callbackURL" value="`$payloadJson.input.callbackURL`"/>
- <parameter name="tmp.status" value="`$error-code`"/>
- <parameter name="tmp.reason" value="`$error-message`"/>
- <parameter name="tmp.requestID" value="`$terminateRANSlice-input.common-header.request-id`"/>
- <parameter name="tmp.action" value="`$terminateRANSlice-input.action`"/>
- </set>
- <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
- <parameter name="file" value="/opt/opendaylight/current/data/log/so-callback-response.log" />
- <parameter name="level" value="info" />
- <parameter name="field1" value="URL for SO Callback Response"/>
- <parameter name='field2' value="`$tmp.so.callbackURL`" />
- <parameter name='field3' value="`$tmp.status`" />
- <parameter name='field4' value="`$tmp.reason`" />
- <parameter name='field5' value="`$tmp.requestID`" />
- <parameter name='field6' value="`$tmp.action`" />
- </record>
- <execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >
- <parameter name="templateFileName" value="`$prop.restapi.templateDir + '/ranSlice-so-response.json'`" />
- <parameter name="restapiUrl" value="`$tmp.so.callbackURL`"/>
- <parameter name="httpMethod" value="POST"/>
- <parameter name="responsePrefix" value="so-callback-modify-response"/>
- <parameter name='contentType' value='application/json' />
- <parameter name='format' value='json' />
- <parameter name='accept' value='*/*' />
- <parameter name="convertResponse" value="true"/>
- <outcome value='failure'>
- <block>
- <return status='failure'>
- <parameter name='ack-final' value='Y'/>
- <parameter name="error-code" value="500" />
- <parameter name="error-message" value="Error sending SO Response" />
- </return>
- </block>
- </outcome>
- <outcome value='success'>
- <block>
- <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
- <parameter name="file" value="/opt/opendaylight/current/data/log/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'/>
+ <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 CUUP PLMNInfo. Aborting RPC executiopn'/>
+ <parameter name='error-message' value='Error removing 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 removed - gNBCUUP PLMNInfo Entry"/>
- </record>
- </block>
- </outcome>
</execute>
- <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.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="`$tmp.getRRMPolicyRatio-CUUP.url`"/>
- <parameter name="outputPath" value="tmp.getRRMPolicyRatio-CUUP.url"/>
- <parameter name="target" value="{idGNBCUUPFunction}"/>
+ <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.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="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'>
- <block atomic='true'>
- <set>
- <parameter name="tmp.so.callbackURL" value="`$payloadJson.input.callbackURL`"/>
- <parameter name="tmp.status" value="`$error-code`"/>
- <parameter name="tmp.reason" value="`$error-message`"/>
- <parameter name="tmp.requestID" value="`$terminateRANSlice-input.common-header.request-id`"/>
- <parameter name="tmp.action" value="`$terminateRANSlice-input.action`"/>
- </set>
- <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
- <parameter name="file" value="/opt/opendaylight/current/data/log/so-callback-response.log" />
- <parameter name="level" value="info" />
- <parameter name="field1" value="URL for SO Callback Response"/>
- <parameter name='field2' value="`$tmp.so.callbackURL`" />
- <parameter name='field3' value="`$tmp.status`" />
- <parameter name='field4' value="`$tmp.reason`" />
- <parameter name='field5' value="`$tmp.requestID`" />
- <parameter name='field6' value="`$tmp.action`" />
- </record>
- <execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >
- <parameter name="templateFileName" value="`$prop.restapi.templateDir + '/ranSlice-so-response.json'`" />
- <parameter name="restapiUrl" value="`$tmp.so.callbackURL`"/>
- <parameter name="httpMethod" value="POST"/>
- <parameter name="responsePrefix" value="so-callback-modify-response"/>
- <parameter name='contentType' value='application/json' />
- <parameter name='format' value='json' />
- <parameter name='accept' value='*/*' />
- <parameter name="convertResponse" value="true"/>
- <outcome value='failure'>
- <block>
- <return status='failure'>
- <parameter name='ack-final' value='Y'/>
- <parameter name="error-code" value="500" />
- <parameter name="error-message" value="Error sending SO Response" />
- </return>
- </block>
- </outcome>
- <outcome value='success'>
- <block>
- <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
- <parameter name="file" value="/opt/opendaylight/current/data/log/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'/>
+ <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 in fetching RRMPolicyRatio. Aborting RPC executiopn'/>
+ <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 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.tmp.rrmPolicyRatioList_CUUP_length`"/>
- </record>
- <for index='idcuup-rrm' start='0' end='`$tmp.rrmPolicyRatioList_CUUP_length`' >
- <block atomic='true'>
- <set>
- <parameter name='tmp.CUUPRRMPolicyRatio_id' value="`'$get-rrmpolicyratio-cuup-response.attributes.RRMPolicyRatio['+ $idcuup-rrm+'].id'`" />
- </set>
- <set>
- <parameter name='tmp.CUUPRRMPolicyMembersLength' value="`'$get-rrmpolicyratio-cuup-response.attributes.RRMPolicyRatio['+ $idcuup-rrm+'].attributes.rRMPolicyMemberList_length'`" />
- </set>
- <for index='idcu-rrm2' start='0' end='`$tmp.CUUPRRMPolicyMembersLength`' >
- <block atomic='true'>
- <switch test='`$tmp.CUUPRRMPolicyMembersLength`>0'>
- <outcome value='success'>
- <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.ToCUUP`"/>
- <parameter name="outputPath" value="tmp.deleteRRMPolicyRatio-CUUP.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.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='failure'>
- <block atomic='true'>
- <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>
- <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`"/>
+ <parameter name="field1" value="Successfully removed - gNBCUUP rrmpolicy Entry from configdb"/>
</record>
- <execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >
- <parameter name="restapiUrl" value="`$prop.controller.url + $tmp.deleteRRMPolicyRatio-CUUP.ur`"/>
- <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.CUUPRRMPolicyMembersList' />
- <parameter name='source' value="`'$get-rrmpolicyratio-cuup-response.attributes.RRMPolicyRatio['+ $idcuup-rrm +'].attributes.rRMPolicyMemberList'`" />
- </execute>
- <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='ctxListRemove' >
- <parameter name="list_pfx" value="`$tmp.CUUPRRMPolicyMembersList`" />
- <parameter name="value" value="`$tmp.sNSSAI`" />
- </execute>
- <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue' >
- <parameter name="tmp.CellCURRMMembersList" value="`'$get-rrmpolicyratio-cuup-response.attributes.RRMPolicyRatio['+ $idcuup-rrm +'].attributes.rRMPolicyMemberList'`" />
- </execute>
- </block>
- </for>
- <block atomic='true'>
- <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='ctxListRemove' >
- <parameter name="list_pfx" value="`'$getNFNSSIRIC-configdb-response.[' +$idy +'].gNBCUUPList['+$id-cuup+'].pLMNInfoList'`" />
- <parameter name="value" value="`$tmp.sNSSAI`" />
- </execute>
- <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue' >
- <parameter name="tmp.pLMNInfoList-CUUP" value="`'$getNFNSSIRIC-configdb-response.[' +$idy +'].gNBCUCPList['+$idz +'].cellCUList['+ $id-cuup +'].pLMNInfoList'`" />
- </execute>
- <execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >
- <parameter name="restapiUrl" value="`$prop.configdb.url + $prop.restapi.configdb.updategNBCUUP`"/>
- <parameter name="templateFileName" value="`$prop.restapi.templateDir + '/restapi.configDB.updategNBCUUP.templatefile'`" />
- <parameter name="httpMethod" value="PUT"/>
- <parameter name="responsePrefix" value="update-gNBCUUP-configdb-response"/>
- <parameter name='contentType' value='application/json' />
- <parameter name='format' value='json' />
- <parameter name='accept' value='application/json' />
- <parameter name="convertResponse" value="true"/>
- <outcome value='failure'>
- <block atomic='true'>
- <block atomic='true'>
- <set>
- <parameter name="tmp.so.callbackURL" value="`$payloadJson.input.callbackURL`"/>
- <parameter name="tmp.status" value="`$error-code`"/>
- <parameter name="tmp.reason" value="`$error-message`"/>
- <parameter name="tmp.requestID" value="`$terminateRANSlice-input.common-header.request-id`"/>
- <parameter name="tmp.action" value="`$terminateRANSlice-input.action`"/>
- </set>
- <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
- <parameter name="file" value="/opt/opendaylight/current/data/log/so-callback-response.log" />
- <parameter name="level" value="info" />
- <parameter name="field1" value="URL for SO Callback Response"/>
- <parameter name='field2' value="`$tmp.so.callbackURL`" />
- <parameter name='field3' value="`$tmp.status`" />
- <parameter name='field4' value="`$tmp.reason`" />
- <parameter name='field5' value="`$tmp.requestID`" />
- <parameter name='field6' value="`$tmp.action`" />
- </record>
- <execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >
- <parameter name="templateFileName" value="`$prop.restapi.templateDir + '/ranSlice-so-response.json'`" />
- <parameter name="restapiUrl" value="`$tmp.so.callbackURL`"/>
- <parameter name="httpMethod" value="POST"/>
- <parameter name="responsePrefix" value="so-callback-modify-response"/>
- <parameter name='contentType' value='application/json' />
- <parameter name='format' value='json' />
- <parameter name='accept' value='*/*' />
- <parameter name="convertResponse" value="true"/>
- <outcome value='failure'>
- <block>
- <return status='failure'>
- <parameter name='ack-final' value='Y'/>
- <parameter name="error-code" value="500" />
- <parameter name="error-message" value="Error sending SO Response" />
- </return>
- </block>
- </outcome>
- <outcome value='success'>
- <block>
- <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
- <parameter name="file" value="/opt/opendaylight/current/data/log/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 updating Config DB - NRCellCU. Aborting RPC executiopn'/>
- </set>
- <return status='failure'>
- <parameter name='ack-final' value='Y'/>
- <parameter name='error-code' value='500'/>
- <parameter name='error-message' value='Error updating CUUP-PLMNInfo in ConfigDB. Aborting RPC executiopn'/>
- </return>
- </block>
- </outcome>
- <outcome value='success'>
- <block>
- <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
- <parameter name="file" value="/opt/opendaylight/current/data/log/terminateRANSlice.log" />
- <parameter name="level" value="info" />
- <parameter name="field1" value="Successfully updated ConfigDB - NRCellCU pLMNinfo "/>
- </record>
- </block>
- </outcome>
- </execute>
- <execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >
- <parameter name="restapiUrl" value="`$prop.configdb.url + $prop.restapi.configdb.updateRRMPolicy`"/>
- <parameter name="templateFileName" value="`$prop.restapi.templateDir + '/ranSlice-configDB-removeRRMPolicy-CUUP.json'`" />
- <parameter name="httpMethod" value="PUT"/>
- <parameter name="responsePrefix" value="delete-gNBCUUP-rrmpolicy-configdb-response"/>
- <parameter name='contentType' value='application/json' />
- <parameter name='format' value='json' />
- <parameter name='accept' value='application/json' />
- <parameter name="convertResponse" value="true"/>
- <outcome value='failure'>
- <block atomic='true'>
- <block atomic='true'>
- <set>
- <parameter name="tmp.so.callbackURL" value="`$payloadJson.input.callbackURL`"/>
- <parameter name="tmp.status" value="`$error-code`"/>
- <parameter name="tmp.reason" value="`$error-message`"/>
- <parameter name="tmp.requestID" value="`$terminateRANSlice-input.common-header.request-id`"/>
- <parameter name="tmp.action" value="`$terminateRANSlice-input.action`"/>
- </set>
- <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
- <parameter name="file" value="/opt/opendaylight/current/data/log/so-callback-response.log" />
- <parameter name="level" value="info" />
- <parameter name="field1" value="URL for SO Callback Response"/>
- <parameter name='field2' value="`$tmp.so.callbackURL`" />
- <parameter name='field3' value="`$tmp.status`" />
- <parameter name='field4' value="`$tmp.reason`" />
- <parameter name='field5' value="`$tmp.requestID`" />
- <parameter name='field6' value="`$tmp.action`" />
- </record>
- <execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >
- <parameter name="templateFileName" value="`$prop.restapi.templateDir + '/ranSlice-so-response.json'`" />
- <parameter name="restapiUrl" value="`$tmp.so.callbackURL`"/>
- <parameter name="httpMethod" value="POST"/>
- <parameter name="responsePrefix" value="so-callback-modify-response"/>
- <parameter name='contentType' value='application/json' />
- <parameter name='format' value='json' />
- <parameter name='accept' value='*/*' />
- <parameter name="convertResponse" value="true"/>
- <outcome value='failure'>
- <block>
- <return status='failure'>
- <parameter name='ack-final' value='Y'/>
- <parameter name="error-code" value="500" />
- <parameter name="error-message" value="Error sending SO Response" />
- </return>
- </block>
- </outcome>
- <outcome value='success'>
- <block>
- <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
- <parameter name="file" value="/opt/opendaylight/current/data/log/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 updating RRMPolicyRatio - CUUP. Aborting RPC executiopn'/>
- </set>
- <return status='failure'>
- <parameter name='ack-final' value='Y'/>
- <parameter name='error-code' value='500'/>
- <parameter name='error-message' value='Error updating CUUP-RRMPolicyRatio in ConfigDB. Aborting RPC executiopn'/>
- </return>
- </block>
- </outcome>
- <outcome value='success'>
- <block>
- <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
- <parameter name="file" value="/opt/opendaylight/current/data/log/terminateRANSlice.log" />
- <parameter name="level" value="info" />
- <parameter name="field1" value="Successfully updated ConfigDB - CUUP RRMPolicyRatio "/>
- </record>
- </block>
- </outcome>
- </execute>
- </block>
+ </outcome>
+ </execute>
</block>
</for>
</block>
@@ -1758,7 +1778,7 @@
<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/instantiateRANSliceModifyAllocate.log" />
+ <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`"/>
@@ -1772,7 +1792,7 @@
<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/instantiateRANSliceModifyAllocate.log" />
+ <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`"/>
@@ -1782,754 +1802,728 @@
<parameter name='source' value="`'getNFNSSIRIC-configdb-response.[' + $idy +'].gNBDUList[' + $id-du +'].cellDUList_length'`" />
</execute>
<for index='id-celldu' start='0' end='`$tmp.cellDUList_length`' >
- <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'>
- <parameter name='outputPath' value='tmp.DUpLMNInfoList_length' />
- <parameter name='source' value="`'getNFNSSIRIC-configdb-response.['+ $idy +'].gNBDUList['+ $id-du +'].cellDUList['+ $id-celldu +'].pLMNInfoList_length '`" />
- </execute>
- <for index='id-duplmn' start='0' end='`$tmp.DUpLMNInfoList_length`' >
- <block atomic='true'>
- <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'>
- <parameter name='outputPath' value='tmp.configDBSNSSAI-DU' />
- <parameter name='source' value="`'getNFNSSIRIC-configdb-response.['+ $idy +'].gNBDUList['+ $id-du +'].cellDUList['+ $id-celldu +'].pLMNInfoList['+ $id-duplmn +'].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.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/instantiateRANSliceModifyAllocate.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'>
+ <record plugin="org.onap.ccsdk.sli.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.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 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>
- </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 +'].cellCUList['+ $id-celldu +'].cellLocalId'`" />
- </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="{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.cellCULocalId`"/>
- </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="`$error-code`"/>
- <parameter name="tmp.reason" value="`$error-message`"/>
- <parameter name="tmp.requestID" value="`$terminateRANSlice-input.common-header.request-id`"/>
- <parameter name="tmp.action" value="`$terminateRANSlice-input.action`"/>
- </set>
- <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
- <parameter name="file" value="/opt/opendaylight/current/data/log/so-callback-response.log" />
- <parameter name="level" value="info" />
- <parameter name="field1" value="URL for SO Callback Response"/>
- <parameter name='field2' value="`$tmp.so.callbackURL`" />
- <parameter name='field3' value="`$tmp.status`" />
- <parameter name='field4' value="`$tmp.reason`" />
- <parameter name='field5' value="`$tmp.requestID`" />
- <parameter name='field6' value="`$tmp.action`" />
- </record>
- <execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >
- <parameter name="templateFileName" value="`$prop.restapi.templateDir + '/ranSlice-so-response.json'`" />
- <parameter name="restapiUrl" value="`$tmp.so.callbackURL`"/>
- <parameter name="httpMethod" value="POST"/>
- <parameter name="responsePrefix" value="so-callback-modify-response"/>
- <parameter name='contentType' value='application/json' />
- <parameter name='format' value='json' />
- <parameter name='accept' value='*/*' />
- <parameter name="convertResponse" value="true"/>
- <outcome value='failure'>
- <block>
- <return status='failure'>
- <parameter name='ack-final' value='Y'/>
- <parameter name="error-code" value="500" />
- <parameter name="error-message" value="Error sending SO Response" />
- </return>
- </block>
- </outcome>
- <outcome value='success'>
- <block>
- <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
- <parameter name="file" value="/opt/opendaylight/current/data/log/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="file" value="/opt/opendaylight/current/data/log/terminateRANSlice.log" />
<parameter name="level" value="info" />
- <parameter name="field1" value="Successfully deleted - cellDU PLMNInfo List"/>
+ <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>
- </block>
- </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="`$error-code`"/>
- <parameter name="tmp.reason" value="`$error-message`"/>
- <parameter name="tmp.requestID" value="`$terminateRANSlice-input.common-header.request-id`"/>
- <parameter name="tmp.action" value="`$terminateRANSlice-input.action`"/>
- </set>
- <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
- <parameter name="file" value="/opt/opendaylight/current/data/log/so-callback-response.log" />
- <parameter name="level" value="info" />
- <parameter name="field1" value="URL for SO Callback Response"/>
- <parameter name='field2' value="`$tmp.so.callbackURL`" />
- <parameter name='field3' value="`$tmp.status`" />
- <parameter name='field4' value="`$tmp.reason`" />
- <parameter name='field5' value="`$tmp.requestID`" />
- <parameter name='field6' value="`$tmp.action`" />
- </record>
- <execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >
- <parameter name="templateFileName" value="`$prop.restapi.templateDir + '/ranSlice-so-response.json'`" />
- <parameter name="restapiUrl" value="`$tmp.so.callbackURL`"/>
- <parameter name="httpMethod" value="POST"/>
- <parameter name="responsePrefix" value="so-callback-modify-response"/>
- <parameter name='contentType' value='application/json' />
- <parameter name='format' value='json' />
- <parameter name='accept' value='*/*' />
- <parameter name="convertResponse" value="true"/>
- <outcome value='failure'>
- <block>
- <return status='failure'>
- <parameter name='ack-final' value='Y'/>
- <parameter name="error-code" value="500" />
- <parameter name="error-message" value="Error sending SO Response" />
- </return>
- </block>
- </outcome>
- <outcome value='success'>
- <block>
+ <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="SO Response Sent "/>
+ <parameter name="field1" value="Successfully removed - gNBDU pmmninfo Entry from configdb"/>
</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/instantiateRANSliceModifyAllocate.log" />
- <parameter name="level" value="info" />
- <parameter name="field1" value="RRMPolicyRatioList size"/>
- <parameter name="field2" value="`$tmp.rrmPolicyRatioList_length`"/>
- </record>
- <for index='iddu-rrm' start='0' end='`$tmp.rrmPolicyRatioDUList_length`' >
- <block atomic='true'>
- <set>
- <parameter name='tmp.cellDURRMPolicyRatio_id' value="`'$get-rrmpolicyratio-du-response.attributes.RRMPolicyRatio['+ $iddu-rrm+'].id'`" />
- </set>
- <set>
- <parameter name='tmp.DURRMPolicyMembersLength' value="`'$get-rrmpolicyratio-du-response.attributes.RRMPolicyRatio['+ $iddu-rrm+'].attributes.rRMPolicyMemberList_length'`" />
- </set>
- <for index='iddu-rrm2' start='0' end='`$tmp.DURRMPolicyMembersLength`' >
- <block atomic='true'>
- <switch test='`$tmp.DURRMPolicyMembersLength`>0'>
- <outcome value='success'>
- <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='failure'>
+ </outcome>
+ </execute>
+ <block atomic='true'>
<block atomic='true'>
<set>
- <parameter name='tmp.cellDURRMPolicyMember_sNSSAI' value="`'$get-rrmpolicyratio-du-response.attributes.RRMPolicyRatio['+ $iddu-rrm+'].attributes.rRMPolicyMemberList['+ $iddu-rrm2 +'].sNSSAI'`" />
+ <parameter name='tmp.uLThptPerSlice' value='`$payloadJson.input.sliceProfile.uLThptPerSlice`' />
</set>
- <switch test='`$tmp.cellDURRMPolicyMember_sNSSAI==$tmp.sNSSAI`'>
- <outcome value='success'>
+ <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.CellDURRMPolicyMember_id' value="`'$get-rrmpolicyratio-du-response.attributes.RRMPolicyRatio['+ $iddu-rrm+'].attributes.rRMPolicyMemberList['+ $iddu-rrm2 +'].idx'`" />
+ <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/terminateRANSlice.log" />
+ <parameter name="file" value="/opt/opendaylight/current/data/log/so-callback-response.log" />
<parameter name="level" value="info" />
- <parameter name="field1" value="RRMPolicyMember id - "/>
- <parameter name="field2" value="`$tmp.CellDURRMPolicyMember_id`"/>
+ <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>
- <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>
+ <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='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>
+ <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>
- </switch>
+ </execute>
</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="`$error-code`"/>
- <parameter name="tmp.reason" value="`$error-message`"/>
- <parameter name="tmp.requestID" value="`$terminateRANSlice-input.common-header.request-id`"/>
- <parameter name="tmp.action" value="`$terminateRANSlice-input.action`"/>
- </set>
- <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
- <parameter name="file" value="/opt/opendaylight/current/data/log/so-callback-response.log" />
- <parameter name="level" value="info" />
- <parameter name="field1" value="URL for SO Callback Response"/>
- <parameter name='field2' value="`$tmp.so.callbackURL`" />
- <parameter name='field3' value="`$tmp.status`" />
- <parameter name='field4' value="`$tmp.reason`" />
- <parameter name='field5' value="`$tmp.requestID`" />
- <parameter name='field6' value="`$tmp.action`" />
- </record>
- <execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >
- <parameter name="templateFileName" value="`$prop.restapi.templateDir + '/ranSlice-so-response.json'`" />
- <parameter name="restapiUrl" value="`$tmp.so.callbackURL`"/>
- <parameter name="httpMethod" value="POST"/>
- <parameter name="responsePrefix" value="so-callback-modify-response"/>
- <parameter name='contentType' value='application/json' />
- <parameter name='format' value='json' />
- <parameter name='accept' value='*/*' />
- <parameter name="convertResponse" value="true"/>
- <outcome value='failure'>
- <block>
+ <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 sending SO Response" />
+ <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>
+ <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="file" value="/opt/opendaylight/current/data/log/instantiateRANSliceModifyAllocate.log" />
<parameter name="level" value="info" />
- <parameter name="field1" value="SO Response Sent "/>
+ <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>
- <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.NRCellDURRMPolicyMembersList' />
- <parameter name='source' value="`'$get-rrmpolicyratio-du-response.attributes.RRMPolicyRatio['+ $iddu-rrm+'].attributes.rRMPolicyMemberList'`" />
- </execute>
- <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='ctxListRemove' >
- <parameter name="list_pfx" value="`$tmp.NRCellDURRMPolicyMembersList`" />
- <parameter name="value" value="`$tmp.sNSSAI`" />
- </execute>
- <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue' >
- <parameter name="tmp.CellDURRMMembersList" value="`'$get-rrmpolicyratio-du-response.attributes.RRMPolicyRatio['+ $iddu-rrm+'].attributes.rRMPolicyMemberList'`" />
- </execute>
+ </switch>
</block>
</for>
</block>
+ </outcome>
+ <outcome value='false'>
<block atomic='true'>
- <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='ctxListRemove' >
- <parameter name="list_pfx" value="`'$getNFNSSIRIC-configdb-response.[' +$idy +'].gNBDUList['+$id-du +'].cellCUList['+ $id-celldu +'].pLMNInfoList'`" />
- <parameter name="value" value="`$tmp.sNSSAI`" />
- </execute>
- <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue' >
- <parameter name="tmp.ceLLDUpLMNInfoList" value="`'$getNFNSSIRIC-configdb-response.[' +$idy +'].gNBDUList['+$id-du +'].cellCUList['+ $id-celldu +'].pLMNInfoList'`" />
- </execute>
- <execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >
- <parameter name="restapiUrl" value="`$prop.configdb.url + $prop.restapi.configdb.updategNBDU`"/>
- <parameter name="templateFileName" value="`$prop.restapi.templateDir + '/ranSlice-configDB-removegNBDU.json'`" />
- <parameter name="httpMethod" value="PUT"/>
- <parameter name="responsePrefix" value="delete-gNBDU-configdb-response"/>
- <parameter name='contentType' value='application/json' />
- <parameter name='format' value='json' />
- <parameter name='accept' value='application/json' />
- <parameter name="convertResponse" value="true"/>
- <outcome value='failure'>
- <block atomic='true'>
- <block atomic='true'>
- <set>
- <parameter name="tmp.so.callbackURL" value="`$payloadJson.input.callbackURL`"/>
- <parameter name="tmp.status" value="`$error-code`"/>
- <parameter name="tmp.reason" value="`$error-message`"/>
- <parameter name="tmp.requestID" value="`$terminateRANSlice-input.common-header.request-id`"/>
- <parameter name="tmp.action" value="`$terminateRANSlice-input.action`"/>
- </set>
- <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
- <parameter name="file" value="/opt/opendaylight/current/data/log/so-callback-response.log" />
- <parameter name="level" value="info" />
- <parameter name="field1" value="URL for SO Callback Response"/>
- <parameter name='field2' value="`$tmp.so.callbackURL`" />
- <parameter name='field3' value="`$tmp.status`" />
- <parameter name='field4' value="`$tmp.reason`" />
- <parameter name='field5' value="`$tmp.requestID`" />
- <parameter name='field6' value="`$tmp.action`" />
- </record>
- <execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >
- <parameter name="templateFileName" value="`$prop.restapi.templateDir + '/ranSlice-so-response.json'`" />
- <parameter name="restapiUrl" value="`$tmp.so.callbackURL`"/>
- <parameter name="httpMethod" value="POST"/>
- <parameter name="responsePrefix" value="so-callback-modify-response"/>
- <parameter name='contentType' value='application/json' />
- <parameter name='format' value='json' />
- <parameter name='accept' value='*/*' />
- <parameter name="convertResponse" value="true"/>
- <outcome value='failure'>
- <block>
- <return status='failure'>
- <parameter name='ack-final' value='Y'/>
- <parameter name="error-code" value="500" />
- <parameter name="error-message" value="Error sending SO Response" />
- </return>
- </block>
- </outcome>
- <outcome value='success'>
- <block>
- <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
- <parameter name="file" value="/opt/opendaylight/current/data/log/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 updating Config DB - NRCellDU. 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 NRCellDU-PLMNInfo in ConfigDB. Aborting RPC executiopn'/>
- </return>
- </block>
- </outcome>
- <outcome value='success'>
- <block>
- <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
- <parameter name="file" value="/opt/opendaylight/current/data/log/terminateRANSlice.log" />
- <parameter name="level" value="info" />
- <parameter name="field1" value="Successfully updated ConfigDB - NRCellCU pLMNinfo "/>
- </record>
- </block>
- </outcome>
- </execute>
- <execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >
- <parameter name="restapiUrl" value="`$prop.configdb.url + $prop.restapi.configdb.updateRRMPolicy`"/>
- <parameter name="templateFileName" value="`$prop.restapi.templateDir + '/ranSlice-configDB-removeRRMPolicy-DU.json'`" />
- <parameter name="httpMethod" value="PUT"/>
- <parameter name="responsePrefix" value="delete-gNBDU-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 atomic='true'>
- <set>
- <parameter name="tmp.so.callbackURL" value="`$payloadJson.input.callbackURL`"/>
- <parameter name="tmp.status" value="`$error-code`"/>
- <parameter name="tmp.reason" value="`$error-message`"/>
- <parameter name="tmp.requestID" value="`$terminateRANSlice-input.common-header.request-id`"/>
- <parameter name="tmp.action" value="`$terminateRANSlice-input.action`"/>
- </set>
- <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
- <parameter name="file" value="/opt/opendaylight/current/data/log/so-callback-response.log" />
- <parameter name="level" value="info" />
- <parameter name="field1" value="URL for SO Callback Response"/>
- <parameter name='field2' value="`$tmp.so.callbackURL`" />
- <parameter name='field3' value="`$tmp.status`" />
- <parameter name='field4' value="`$tmp.reason`" />
- <parameter name='field5' value="`$tmp.requestID`" />
- <parameter name='field6' value="`$tmp.action`" />
- </record>
- <execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >
- <parameter name="templateFileName" value="`$prop.restapi.templateDir + '/ranSlice-so-response.json'`" />
- <parameter name="restapiUrl" value="`$tmp.so.callbackURL`"/>
- <parameter name="httpMethod" value="POST"/>
- <parameter name="responsePrefix" value="so-callback-modify-response"/>
- <parameter name='contentType' value='application/json' />
- <parameter name='format' value='json' />
- <parameter name='accept' value='*/*' />
- <parameter name="convertResponse" value="true"/>
- <outcome value='failure'>
- <block>
- <return status='failure'>
- <parameter name='ack-final' value='Y'/>
- <parameter name="error-code" value="500" />
- <parameter name="error-message" value="Error sending SO Response" />
- </return>
- </block>
- </outcome>
- <outcome value='success'>
- <block>
- <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
- <parameter name="file" value="/opt/opendaylight/current/data/log/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 updating RRMPolicyRatio - NRCellDU. 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 NRCellDU-RRMPolicyRatio in ConfigDB. Aborting RPC executiopn'/>
- </return>
- </block>
- </outcome>
- <outcome value='success'>
- <block>
- <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
- <parameter name="file" value="/opt/opendaylight/current/data/log/terminateRANSlice.log" />
- <parameter name="level" value="info" />
- <parameter name="field1" value="Successfully updated ConfigDB - NRCellDU RRMPolicyRatio "/>
- </record>
- </block>
- </outcome>
- </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="plmninfolistnssailength in false in DU "/>
+ <parameter name="field2" value="`$tmp.sNssaiListLengthDU`"/>
+ </record>
</block>
- </block>
- </outcome>
- </switch>
- </block>
- </for>
+ </outcome>
+ </switch>
+ </block>
+ </for>
+ </block>
</for>
</block>
</for>
@@ -2542,10 +2536,10 @@
</return>
<block atomic='true'>
<set>
- <parameter name="tmp.status" value="`$error-code`"/>
+ <parameter name="tmp.status" value="success"/>
<parameter name="tmp.reason" value="`$error-message`"/>
- <parameter name="tmp.requestID" value="`$instantiate-r-a-n-slice-input.common-header.request-id `"/>
- <parameter name="tmp.action" value="`$instantiate-r-a-n-slice-input.action`"/>
+ <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`"/>
@@ -2567,7 +2561,7 @@
<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-response"/>
+ <parameter name="responsePrefix" value="so-callback-termi-response"/>
<parameter name='contentType' value='application/json' />
<parameter name='format' value='json' />
<parameter name='accept' value='*/*' />