summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDan Timoney <dtimoney@att.com>2022-04-27 12:43:21 +0000
committerGerrit Code Review <gerrit@onap.org>2022-04-27 12:43:21 +0000
commita8276664fa3c3faeb4ad1af17d25b0a0cfec4f81 (patch)
tree606d3a2473dc1757d31d49d3421b7ea81f1aa2ae
parent001bdd7ba57281dd618e0b994517a17262c4762e (diff)
parent3fd78f0012ab8228a36acd4e9ccbcfa3c21ecbcf (diff)
Merge "SDN-R RANSlice Reconfigure-CPS bug"
-rw-r--r--odlsli/src/main/properties/ran-slice-api-dg.properties6
-rw-r--r--platform-logic/ran-slice-api/src/main/json/ran-slice-api_instantiateRANSliceReconfigure-cps.json3104
-rw-r--r--platform-logic/ran-slice-api/src/main/xml/ran-slice-api_instantiateRANSliceReconfigure-cps.xml435
-rw-r--r--platform-logic/restapi-templates/src/main/json/cps-templates/cps-patch-configData.json (renamed from platform-logic/restapi-templates/src/main/json/cps-templates/cps-patch-dLThptPerSlice.json)4
-rw-r--r--platform-logic/restapi-templates/src/main/json/cps-templates/cps-patch-uLThptPerSlice.json16
5 files changed, 1674 insertions, 1891 deletions
diff --git a/odlsli/src/main/properties/ran-slice-api-dg.properties b/odlsli/src/main/properties/ran-slice-api-dg.properties
index 46027d0d..562f808d 100644
--- a/odlsli/src/main/properties/ran-slice-api-dg.properties
+++ b/odlsli/src/main/properties/ran-slice-api-dg.properties
@@ -244,10 +244,8 @@ tbdmt.template.put-status-cuup=put-status-gnbcuup
tbdmt.template.put-status-nrcelldu=put-status-nrcelldu
#reconfigure-ran-slice templates
-tbdmt.template.get-plmnid-mcc=get-plmnid-mcc
-tbdmt.template.get-plmnid-mnc=get-plmnid-mnc
-tbdmt.template.patch-dLThptPerSlice=patch-dLThptPerSlice
-tbdmt.template.patch-uLThptPerSlice=patch-uLThptPerSlice
+tbdmt.template.get-plmnid=get-plmnid
+tbdmt.template.patch-configData=patch-configData
#terminate-ran-slice templates
tbdmt.template.getmcc=get-plmnmccid-by-sliceprofileid
diff --git a/platform-logic/ran-slice-api/src/main/json/ran-slice-api_instantiateRANSliceReconfigure-cps.json b/platform-logic/ran-slice-api/src/main/json/ran-slice-api_instantiateRANSliceReconfigure-cps.json
index 07fea53d..61ccb412 100644
--- a/platform-logic/ran-slice-api/src/main/json/ran-slice-api_instantiateRANSliceReconfigure-cps.json
+++ b/platform-logic/ran-slice-api/src/main/json/ran-slice-api_instantiateRANSliceReconfigure-cps.json
@@ -1,36 +1,36 @@
[
{
- "id": "9f061b81.5ee4f8",
+ "id": "42f24ac3.754624",
"type": "method",
"name": "method",
"xml": "<method rpc='instantiateRANSliceReconfigure-cps' mode='sync'>\n",
"comments": "",
"outputs": 1,
- "x": 332.6666946411133,
- "y": 244.0000286102295,
- "z": "4d7c5b65.634a04",
+ "x": 303,
+ "y": 249.00003242492676,
+ "z": "b04c02f8.7bb8d",
"wires": [
[
- "482ddcd8.26f684"
+ "6fbe4157.c9fba"
]
]
},
{
- "id": "1bd8c394.29fc0c",
+ "id": "68c47b35.8bd004",
"type": "dgstart",
"name": "DGSTART",
"outputs": 1,
- "x": 129.66665649414062,
- "y": 133,
- "z": "4d7c5b65.634a04",
+ "x": 99.99996185302734,
+ "y": 138.00000381469727,
+ "z": "b04c02f8.7bb8d",
"wires": [
[
- "308c4369.7525dc"
+ "32a0c031.fb28c"
]
]
},
{
- "id": "308c4369.7525dc",
+ "id": "32a0c031.fb28c",
"type": "service-logic",
"name": "ran-slice-api ${project.version}",
"module": "ran-slice-api",
@@ -38,3854 +38,3878 @@
"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": 375.6666259765625,
- "y": 134.00008296966553,
- "z": "4d7c5b65.634a04",
+ "x": 345.9999313354492,
+ "y": 139.0000867843628,
+ "z": "b04c02f8.7bb8d",
"wires": [
[
- "9f061b81.5ee4f8"
+ "42f24ac3.754624"
]
]
},
{
- "id": "bd9cb92d.d2bc28",
+ "id": "60662e74.a50a6",
"type": "returnSuccess",
"name": "return success",
"xml": "<return status='success'>\n<parameter name=\"ack-final\" value=\"N\" />\n<parameter name=\"error-code\" value=\"200\" />\n<parameter name=\"error-message\" value=\"SUCCESSFUL Execution\" />",
"comments": "",
- "x": 327.1562805175781,
- "y": 2170.0003147125244,
- "z": "4d7c5b65.634a04",
+ "x": 297.48958587646484,
+ "y": 2175.0003185272217,
+ "z": "b04c02f8.7bb8d",
"wires": []
},
{
- "id": "9e06e626.8eae98",
+ "id": "a444d1ed.5fe8d",
"type": "comment",
"name": "instantiateRANSliceReconfigure-cps",
"info": "",
"comments": "",
- "x": 426.6666564941406,
- "y": 45.010406494140625,
- "z": "4d7c5b65.634a04",
+ "x": 396.99996185302734,
+ "y": 50.01041030883789,
+ "z": "b04c02f8.7bb8d",
"wires": []
},
{
- "id": "482ddcd8.26f684",
+ "id": "6fbe4157.c9fba",
"type": "block",
"name": "block : atomic",
"xml": "<block atomic='true'>",
"atomic": "true",
"comments": "",
"outputs": 1,
- "x": 236.6666259765625,
- "y": 351.0104064941406,
- "z": "4d7c5b65.634a04",
+ "x": 206.99993133544922,
+ "y": 356.0104103088379,
+ "z": "b04c02f8.7bb8d",
"wires": [
[
- "bd9cb92d.d2bc28",
- "8d913069.84b02",
- "c151b8d6.48dfa8",
- "89979590.5ecd48"
+ "60662e74.a50a6",
+ "6a170387.02670c",
+ "a21c2c88.d65f1",
+ "6d292701.0f0e88"
]
]
},
{
- "id": "45049f27.1a99",
+ "id": "f750a079.5d59a",
"type": "execute",
"name": "add RRM Policy ToNRCellDU using PUT",
"xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"templateFileName\" value=\"`$prop.restapi.templateDir + '/ranSlice-add-RRMPolicyRatio-NRCellDU.json'`\" />\n<parameter name=\"restapiUrl\" value=\"`$prop.controller.url + $tmp.addRRMPolicyRatio.ToNRCellDU.url`\"/>\n<parameter name=\"restapiUser\" value=\"`$prop.controller.user`\" />\n<parameter name=\"restapiPassword\" value=\"`$prop.controller.pwd`\"/>\n<parameter name=\"httpMethod\" value=\"PUT\"/>\n<parameter name=\"responsePrefix\" value=\"addRRMPolicyRatio-response\"/>\n<parameter name='contentType' value='application/json' /> \n<parameter name='format' value='json' />",
"comments": "",
"outputs": 1,
- "x": 4003.656562805176,
- "y": 7772.020883321762,
- "z": "4d7c5b65.634a04",
+ "x": 3973.9898681640625,
+ "y": 7777.020887136459,
+ "z": "b04c02f8.7bb8d",
"wires": [
[
- "ac24d742.6eff88"
+ "5930a984.62d918"
]
]
},
{
- "id": "ac24d742.6eff88",
+ "id": "5930a984.62d918",
"type": "success",
"name": "success",
"xml": "<outcome value='success'>\n",
"comments": "",
"outputs": 1,
- "x": 4340.656440734863,
- "y": 7798.010385274887,
- "z": "4d7c5b65.634a04",
+ "x": 4310.98974609375,
+ "y": 7803.010389089584,
+ "z": "b04c02f8.7bb8d",
"wires": [
[
- "6befcd06.33f3e4"
+ "28356d0d.823232"
]
]
},
{
- "id": "6befcd06.33f3e4",
+ "id": "28356d0d.823232",
"type": "block",
"name": "block",
"xml": "<block>\n",
"atomic": "false",
"comments": "",
"outputs": 1,
- "x": 4520.656196594238,
- "y": 7795.010385274887,
- "z": "4d7c5b65.634a04",
+ "x": 4490.989501953125,
+ "y": 7800.010389089584,
+ "z": "b04c02f8.7bb8d",
"wires": [
[
- "258c4dc5.68dca2"
+ "c5222768.8a94a8"
]
]
},
{
- "id": "258c4dc5.68dca2",
+ "id": "c5222768.8a94a8",
"type": "record",
"name": "record",
"xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.FileRecorder\">\n<parameter name=\"file\" value=\"/opt/opendaylight/current/data/log/instantiateRANSlice.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"addRRMPolicyRatio to NRCELLDU Executed Successfully \"/>",
"comments": "",
"outputs": 1,
- "x": 4669.656497955322,
- "y": 7821.010577917099,
- "z": "4d7c5b65.634a04",
+ "x": 4639.989803314209,
+ "y": 7826.010581731796,
+ "z": "b04c02f8.7bb8d",
"wires": [
[]
]
},
{
- "id": "89979590.5ecd48",
+ "id": "6d292701.0f0e88",
"type": "block",
"name": "SO Response",
"xml": "<block atomic='true'>",
"atomic": "true",
"comments": "",
"outputs": 1,
- "x": 356.4166564941406,
- "y": 2120.2646436691284,
- "z": "4d7c5b65.634a04",
+ "x": 326.74996185302734,
+ "y": 2125.2646474838257,
+ "z": "b04c02f8.7bb8d",
"wires": [
[
- "5b1e63ee.b0bcac",
- "6a98c3e2.10f9dc",
- "bd81bd27.c9df1",
- "88fbf49.5fc7708"
+ "61e9ed94.6389d4",
+ "c1d3c078.e00ce",
+ "d1a22b52.a80928",
+ "8838ef19.ecca5"
]
]
},
{
- "id": "5b1e63ee.b0bcac",
+ "id": "61e9ed94.6389d4",
"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`\" />\n<parameter name='field7' value=\"`$tmp.CUCPList`\" />\n<parameter name='field8' value=\"`$tmp.CUUPList`\" />\n<parameter name='field9' value=\"`$tmp.DUList`\" />",
"comments": "",
"outputs": 1,
- "x": 758.6666488647461,
- "y": 2238.0149450302124,
- "z": "4d7c5b65.634a04",
+ "x": 728.9999542236328,
+ "y": 2243.0149488449097,
+ "z": "b04c02f8.7bb8d",
"wires": [
[]
]
},
{
- "id": "f6a80048.4c96f",
+ "id": "c92ba98c.0d9f18",
"type": "failure",
"name": "failure",
"xml": "<outcome value='failure'>\n",
"comments": "",
"outputs": 1,
- "x": 896.6667251586914,
- "y": 2301.014757156372,
- "z": "4d7c5b65.634a04",
+ "x": 867.0000305175781,
+ "y": 2306.0147609710693,
+ "z": "b04c02f8.7bb8d",
"wires": [
[
- "93970682.457ea8"
+ "71478961.75a668"
]
]
},
{
- "id": "6ef55787.17d028",
+ "id": "3d4bab2b.d62b14",
"type": "success",
"name": "success",
"xml": "<outcome value='success'>\n",
"comments": "",
"outputs": 1,
- "x": 888.666618347168,
- "y": 2374.0147075653076,
- "z": "4d7c5b65.634a04",
+ "x": 858.9999237060547,
+ "y": 2379.014711380005,
+ "z": "b04c02f8.7bb8d",
"wires": [
[
- "bd8eb24b.e9c4b"
+ "fc7f3410.4219d8"
]
]
},
{
- "id": "bd8eb24b.e9c4b",
+ "id": "fc7f3410.4219d8",
"type": "block",
"name": "block",
"xml": "<block>\n",
"atomic": "false",
"comments": "",
"outputs": 1,
- "x": 1034.66646194458,
- "y": 2379.0148162841797,
- "z": "4d7c5b65.634a04",
+ "x": 1004.9997673034668,
+ "y": 2384.014820098877,
+ "z": "b04c02f8.7bb8d",
"wires": [
[
- "613b4178.27a96"
+ "e6f92ca5.daeda"
]
]
},
{
- "id": "93970682.457ea8",
+ "id": "71478961.75a668",
"type": "block",
"name": "block",
"xml": "<block>\n",
"atomic": "false",
"comments": "",
"outputs": 1,
- "x": 1045.6666259765625,
- "y": 2297.014892578125,
- "z": "4d7c5b65.634a04",
+ "x": 1015.9999313354492,
+ "y": 2302.0148963928223,
+ "z": "b04c02f8.7bb8d",
"wires": [
[
- "496858cf.9a8df8",
- "f0b8a6f.cd94f58"
+ "c55e0c91.0890b",
+ "310e18e.a5284e8"
]
]
},
{
- "id": "496858cf.9a8df8",
+ "id": "c55e0c91.0890b",
"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": 1214.666259765625,
- "y": 2298.0146484375,
- "z": "4d7c5b65.634a04",
+ "x": 1184.9995651245117,
+ "y": 2303.0146522521973,
+ "z": "b04c02f8.7bb8d",
"wires": []
},
{
- "id": "613b4178.27a96",
+ "id": "e6f92ca5.daeda",
"type": "record",
"name": "record",
"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=\"SO Response Sent \"/>",
"comments": "",
"outputs": 1,
- "x": 1215.6663818359375,
- "y": 2383.0146484375,
- "z": "4d7c5b65.634a04",
+ "x": 1185.9996871948242,
+ "y": 2388.0146522521973,
+ "z": "b04c02f8.7bb8d",
"wires": [
[]
]
},
{
- "id": "53f6cef7.f7902",
+ "id": "e70e6789.6b9e38",
"type": "block",
"name": "block : SO Response",
"xml": "<block atomic='true'>",
"atomic": "true",
"comments": "",
"outputs": 1,
- "x": 4019.1577529907227,
- "y": 1238.010576248169,
- "z": "4d7c5b65.634a04",
+ "x": 3989.4910583496094,
+ "y": 1243.0105800628662,
+ "z": "b04c02f8.7bb8d",
"wires": [
[
- "6f3a42bc.806e4c",
- "b0ee0118.94385",
- "fc4a3247.3ff21"
+ "cfa9199c.ecfbc8",
+ "2f82500f.1af2a",
+ "b303f8a6.9e7e58"
]
]
},
{
- "id": "6f3a42bc.806e4c",
+ "id": "cfa9199c.ecfbc8",
"type": "set",
"name": "set tmp variables for SO response",
"xml": "<set>\n<parameter name=\"tmp.so.callbackURL\" value=\"`$payloadJson.input.callbackURL`\"/>\n<parameter name=\"tmp.status\" value=\"`$error-code`\"/>\n<parameter name=\"tmp.reason\" value=\"`$error-message`\"/>\n<parameter name=\"tmp.requestID\" value=\"`$instantiateRANSlice-input.common-header.request-id`\"/>\n<parameter name=\"tmp.action\" value=\"`$instantiateRANSlice-input.action`\"/>\n",
"comments": "",
- "x": 4304.159042358398,
- "y": 1041.9102840423584,
- "z": "4d7c5b65.634a04",
+ "x": 4274.492347717285,
+ "y": 1046.9102878570557,
+ "z": "b04c02f8.7bb8d",
"wires": []
},
{
- "id": "b0ee0118.94385",
+ "id": "2f82500f.1af2a",
"type": "record",
"name": "record configdb RestAPI parms",
"xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.FileRecorder\">\n<parameter name=\"file\" value=\"/opt/opendaylight/current/data/log/so-callback-response.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"URL for SO Callback Response\"/>\n<parameter name='field2' value=\"`$tmp.so.callbackURL`\" />\n<parameter name='field3' value=\"`$tmp.status`\" />\n<parameter name='field4' value=\"`$tmp.reason`\" />\n<parameter name='field5' value=\"`$tmp.requestID`\" />\n<parameter name='field6' value=\"`$tmp.action`\" />\n<parameter name='field7' value=\"`$tmp.CUCPList`\" />\n<parameter name='field8' value=\"`$tmp.CUUPList`\" />\n<parameter name='field9' value=\"`$tmp.DUList`\" />",
"comments": "",
"outputs": 1,
- "x": 4319.157730102539,
- "y": 1135.0109539031982,
- "z": "4d7c5b65.634a04",
+ "x": 4289.491035461426,
+ "y": 1140.0109577178955,
+ "z": "b04c02f8.7bb8d",
"wires": [
[]
]
},
{
- "id": "fc4a3247.3ff21",
+ "id": "b303f8a6.9e7e58",
"type": "execute",
"name": "Send to SO",
"xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"templateFileName\" value=\"`$prop.restapi.templateDir + '/ranSlice-so-response.json'`\" />\n<parameter name=\"restapiUrl\" value=\"`$tmp.so.callbackURL`\"/>\n<parameter name=\"httpMethod\" value=\"POST\"/>\n<parameter name=\"responsePrefix\" value=\"so-callback-response\"/>\n<parameter name='contentType' value='application/json' /> \n<parameter name='format' value='json' />\n<parameter name='accept' value='*/*' />",
"comments": "",
"outputs": 1,
- "x": 4283.157737731934,
- "y": 1258.010793685913,
- "z": "4d7c5b65.634a04",
+ "x": 4253.49104309082,
+ "y": 1263.0107975006104,
+ "z": "b04c02f8.7bb8d",
"wires": [
[
- "382852e9.e0675e",
- "7b78f57e.ba76dc"
+ "596d938c.7f7cfc",
+ "7d899b30.5180a4"
]
]
},
{
- "id": "382852e9.e0675e",
+ "id": "596d938c.7f7cfc",
"type": "failure",
"name": "failure",
"xml": "<outcome value='failure'>\n",
"comments": "",
"outputs": 1,
- "x": 4491.157357215881,
- "y": 1258.0107421875,
- "z": "4d7c5b65.634a04",
+ "x": 4461.490662574768,
+ "y": 1263.0107460021973,
+ "z": "b04c02f8.7bb8d",
"wires": [
[
- "3afb94d4.66d62c"
+ "ab6a107a.a96d9"
]
]
},
{
- "id": "7b78f57e.ba76dc",
+ "id": "7d899b30.5180a4",
"type": "success",
"name": "success",
"xml": "<outcome value='success'>\n",
"comments": "",
"outputs": 1,
- "x": 4491.1572265625,
- "y": 1322.0107421875,
- "z": "4d7c5b65.634a04",
+ "x": 4461.490531921387,
+ "y": 1327.0107460021973,
+ "z": "b04c02f8.7bb8d",
"wires": [
[
- "2853a0d6.ddfa4"
+ "ebc9ab9e.6f98f8"
]
]
},
{
- "id": "2853a0d6.ddfa4",
+ "id": "ebc9ab9e.6f98f8",
"type": "block",
"name": "block",
"xml": "<block>\n",
"atomic": "false",
"comments": "",
"outputs": 1,
- "x": 4637.1572265625,
- "y": 1321.0107421875,
- "z": "4d7c5b65.634a04",
+ "x": 4607.490531921387,
+ "y": 1326.0107460021973,
+ "z": "b04c02f8.7bb8d",
"wires": [
[
- "21499006.1b3cc"
+ "7b8e233c.1f489c"
]
]
},
{
- "id": "3afb94d4.66d62c",
+ "id": "ab6a107a.a96d9",
"type": "block",
"name": "block",
"xml": "<block>\n",
"atomic": "false",
"comments": "",
"outputs": 1,
- "x": 4642.1572265625,
- "y": 1258.0108642578125,
- "z": "4d7c5b65.634a04",
+ "x": 4612.490531921387,
+ "y": 1263.0108680725098,
+ "z": "b04c02f8.7bb8d",
"wires": [
[
- "192c5617.efaa3a"
+ "288324d1.18fb6c"
]
]
},
{
- "id": "192c5617.efaa3a",
+ "id": "288324d1.18fb6c",
"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": 4804.15673828125,
- "y": 1258.0107421875,
- "z": "4d7c5b65.634a04",
+ "x": 4774.490043640137,
+ "y": 1263.0107460021973,
+ "z": "b04c02f8.7bb8d",
"wires": []
},
{
- "id": "21499006.1b3cc",
+ "id": "7b8e233c.1f489c",
"type": "record",
"name": "record",
"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=\"SO Response Sent \"/>",
"comments": "",
"outputs": 1,
- "x": 4803.1572265625,
- "y": 1320.0107421875,
- "z": "4d7c5b65.634a04",
+ "x": 4773.490531921387,
+ "y": 1325.0107460021973,
+ "z": "b04c02f8.7bb8d",
"wires": [
[]
]
},
{
- "id": "f0b8a6f.cd94f58",
+ "id": "310e18e.a5284e8",
"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": 1206.1768798828125,
- "y": 2256.004150390625,
- "z": "4d7c5b65.634a04",
+ "x": 1176.5101852416992,
+ "y": 2261.0041542053223,
+ "z": "b04c02f8.7bb8d",
"wires": []
},
{
- "id": "bd81bd27.c9df1",
+ "id": "d1a22b52.a80928",
"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": 781.0062713623047,
- "y": 2174.000099182129,
- "z": "4d7c5b65.634a04",
+ "x": 751.3395767211914,
+ "y": 2179.000102996826,
+ "z": "b04c02f8.7bb8d",
"wires": [
[]
]
},
{
- "id": "499f16d.22a49e8",
+ "id": "78834354.eb3e7c",
"type": "failure",
"name": "true",
"xml": "<outcome value='true'>\n",
"comments": "",
"outputs": 1,
- "x": 749.6668701171875,
- "y": 397.0000915527344,
- "z": "4d7c5b65.634a04",
+ "x": 720.0001754760742,
+ "y": 402.00009536743164,
+ "z": "b04c02f8.7bb8d",
"wires": [
[
- "dea0e37d.325bd"
+ "bb77978b.85c948"
]
]
},
{
- "id": "8d913069.84b02",
+ "id": "6a170387.02670c",
"type": "execute",
"name": "payload has dLThptPerSlice",
"xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='contains' emitsOutcome='true' >\n <parameter name='source' value='`$instantiate-r-a-n-slice-input.payload`' />\n <parameter name='target' value='dLThptPerSlice' />\n",
"comments": "",
"outputs": 1,
- "x": 517.666748046875,
- "y": 396.00006103515625,
- "z": "4d7c5b65.634a04",
+ "x": 488.0000534057617,
+ "y": 401.0000648498535,
+ "z": "b04c02f8.7bb8d",
"wires": [
[
- "499f16d.22a49e8",
- "ecb7f4cb.922ad8"
+ "78834354.eb3e7c",
+ "4a53d6b2.44ea88"
]
]
},
{
- "id": "ecb7f4cb.922ad8",
+ "id": "4a53d6b2.44ea88",
"type": "failure",
"name": "false",
"xml": "<outcome value='false'>\n",
"comments": "",
"outputs": 1,
- "x": 758.1733093261719,
- "y": 503.000244140625,
- "z": "4d7c5b65.634a04",
+ "x": 728.5066146850586,
+ "y": 508.00024795532227,
+ "z": "b04c02f8.7bb8d",
"wires": [
[
- "dd70b949.f841b8"
+ "44bbe859.c1e698"
]
]
},
{
- "id": "8c9f59db.e6bc48",
+ "id": "3484de2a.4bb172",
"type": "failure",
"name": "true",
"xml": "<outcome value='true'>\n",
"comments": "",
"outputs": 1,
- "x": 744.6670532226562,
- "y": 1994.000244140625,
- "z": "4d7c5b65.634a04",
+ "x": 715.000358581543,
+ "y": 1999.0002479553223,
+ "z": "b04c02f8.7bb8d",
"wires": [
[
- "a73abfea.631e"
+ "d34f1ab9.a4da78"
]
]
},
{
- "id": "dea0e37d.325bd",
+ "id": "bb77978b.85c948",
"type": "block",
"name": "Closed Loop",
"xml": "<block atomic=\"true\">",
"atomic": "true",
"comments": "",
"outputs": 1,
- "x": 766.6668701171875,
- "y": 124.00006103515625,
- "z": "4d7c5b65.634a04",
+ "x": 737.0001754760742,
+ "y": 129.00006484985352,
+ "z": "b04c02f8.7bb8d",
"wires": [
[
- "aac735a1.6f54e8",
- "b917faf1.f2ac38"
+ "31d5834d.109efc",
+ "b46ffb83.57a928"
]
]
},
{
- "id": "a73abfea.631e",
+ "id": "d34f1ab9.a4da78",
"type": "block",
"name": "block : atomic",
"xml": "<block atomic=\"true\">",
"atomic": "true",
"outputs": 1,
- "x": 931.6669502258301,
- "y": 1994.0001430511475,
- "z": "4d7c5b65.634a04",
+ "x": 902.0002555847168,
+ "y": 1999.0001468658447,
+ "z": "b04c02f8.7bb8d",
"wires": [
[
- "93c0ef.485c1f1",
- "cc9c3169.e8025",
- "bf442461.925f88",
- "8142a0c0.4e5e5"
+ "d7f5e145.5f6bf",
+ "cad215b9.78c128",
+ "a88d2ba4.1050e8",
+ "76478475.f28ebc"
]
]
},
{
- "id": "dd70b949.f841b8",
+ "id": "44bbe859.c1e698",
"type": "execute",
"name": "Intelligent Slicing",
"xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='contains' emitsOutcome='true' >\n <parameter name='source' value='`$instantiate-r-a-n-slice-input.payload`' />\n <parameter name='target' value='maxNumberofConns' />\n",
"comments": "",
"outputs": 1,
- "x": 551.6671142578125,
- "y": 1993.000244140625,
- "z": "4d7c5b65.634a04",
+ "x": 522.0004196166992,
+ "y": 1998.0002479553223,
+ "z": "b04c02f8.7bb8d",
"wires": [
[
- "8c9f59db.e6bc48"
+ "3484de2a.4bb172"
]
]
},
{
- "id": "aac735a1.6f54e8",
+ "id": "31d5834d.109efc",
"type": "record",
"name": "record",
"xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.FileRecorder\">\n<parameter name=\"file\" value=\"/opt/opendaylight/current/data/log/closedLoop.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"PAYLOAD contains dLThptPerSlice...Closed loop \"/>\n\n",
"comments": "",
"outputs": 1,
- "x": 971.6666870117188,
- "y": 124.00004577636719,
- "z": "4d7c5b65.634a04",
+ "x": 941.9999923706055,
+ "y": 129.00004959106445,
+ "z": "b04c02f8.7bb8d",
"wires": [
[]
]
},
{
- "id": "93c0ef.485c1f1",
+ "id": "d7f5e145.5f6bf",
"type": "record",
"name": "record",
"xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.FileRecorder\">\n<parameter name=\"file\" value=\"/opt/opendaylight/current/data/log/intelligentSlicing.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"PAYLOAD contains maxNumberofConns...Inntelligent Slicing \"/>\n\n",
"comments": "",
"outputs": 1,
- "x": 1169.6671142578125,
- "y": 1873.000244140625,
- "z": "4d7c5b65.634a04",
+ "x": 1140.0004196166992,
+ "y": 1878.0002479553223,
+ "z": "b04c02f8.7bb8d",
"wires": [
[]
]
},
{
- "id": "c151b8d6.48dfa8",
+ "id": "a21c2c88.d65f1",
"type": "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=\"Reached instantiateRANSliceReconfigure \"/>\n\n",
+ "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.FileRecorder\">\n<parameter name=\"file\" value=\"/opt/opendaylight/current/data/log/instantiateRANSlice.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"Reached instantiateRANSliceReconfigure-cps \"/>\n\n",
"comments": "",
"outputs": 1,
- "x": 450.6666564941406,
- "y": 351.0000238418579,
- "z": "4d7c5b65.634a04",
+ "x": 420.99996185302734,
+ "y": 356.0000276565552,
+ "z": "b04c02f8.7bb8d",
"wires": [
[]
]
},
{
- "id": "b917faf1.f2ac38",
+ "id": "b46ffb83.57a928",
"type": "block",
"name": "NearRTRIC",
"xml": "<block atomic=\"true\">",
"atomic": "true",
"comments": "",
"outputs": 1,
- "x": 986.67724609375,
- "y": 174.01046752929688,
- "z": "4d7c5b65.634a04",
+ "x": 957.0105514526367,
+ "y": 179.01047134399414,
+ "z": "b04c02f8.7bb8d",
"wires": [
[
- "469ed456.870fcc",
- "f59dcce9.2395c"
+ "c4c9ad9d.a3cb9",
+ "8986ed69.8a1cc"
]
]
},
{
- "id": "cc9c3169.e8025",
+ "id": "cad215b9.78c128",
"type": "block",
"name": "CUCP",
"xml": "<block atomic=\"true\">",
"atomic": "true",
"comments": "",
"outputs": 1,
- "x": 1159.6774559020996,
- "y": 1993.0104579925537,
- "z": "4d7c5b65.634a04",
+ "x": 1130.0107612609863,
+ "y": 1998.010461807251,
+ "z": "b04c02f8.7bb8d",
"wires": [
[
- "7dfe3937.33ca78",
- "2f0d0bdc.3fe284"
+ "a44327fa.7b0998",
+ "38d2e269.00fe0e"
]
]
},
{
- "id": "a18381a8.6f5e",
+ "id": "d62a4351.58f9c",
"type": "execute",
"name": "Update slice profile for nearRTRIC",
"xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"templateFileName\" value=\"`$prop.restapi.templateDir + '/ranSlice-closed-loop-nearRTRIC-patch.json'`\" />\n<parameter name=\"restapiUrl\" value=\"`$prop.controller.url + $tmp.restapi.addSliceProfile.ToNearRTRIC.url`\"/>\n<parameter name=\"restapiUser\" value=\"`$prop.controller.user`\" />\n<parameter name=\"restapiPassword\" value=\"`$prop.controller.pwd`\"/>\n<parameter name=\"httpMethod\" value=\"PATCH\"/>\n<parameter name=\"responsePrefix\" value=\"nearRTRIC-slice-patch-response\"/>\n<parameter name='contentType' value='application/yang.patch+json' /> \n<parameter name='format' value='json' />\n<parameter name='accept' value='application/yang.patch-status+json' />",
"comments": "",
"outputs": 1,
- "x": 1605.5662460327148,
- "y": 603.0106582641602,
- "z": "4d7c5b65.634a04",
+ "x": 1575.8995513916016,
+ "y": 608.0106620788574,
+ "z": "b04c02f8.7bb8d",
"wires": [
[
- "46b71058.0a755",
- "2d1f14dd.9f8d4c"
+ "90be2318.fc395",
+ "ce4e6711.e5f9f8"
]
]
},
{
- "id": "46b71058.0a755",
+ "id": "90be2318.fc395",
"type": "failure",
"name": "failure",
"xml": "<outcome value='failure'>\n",
"comments": "",
"outputs": 1,
- "x": 1904.5667457580566,
- "y": 604.0002002716064,
- "z": "4d7c5b65.634a04",
+ "x": 1874.9000511169434,
+ "y": 609.0002040863037,
+ "z": "b04c02f8.7bb8d",
"wires": [
[
- "86e0f783.5c44b8"
+ "1adb2889.3bac67"
]
]
},
{
- "id": "2d1f14dd.9f8d4c",
+ "id": "ce4e6711.e5f9f8",
"type": "success",
"name": "success",
"xml": "<outcome value='success'>\n",
"comments": "",
"outputs": 1,
- "x": 1902.566749572754,
- "y": 690.9999589920044,
- "z": "4d7c5b65.634a04",
+ "x": 1872.9000549316406,
+ "y": 695.9999628067017,
+ "z": "b04c02f8.7bb8d",
"wires": [
[
- "ed74cc8d.297f4"
+ "f0461249.b6292"
]
]
},
{
- "id": "86e0f783.5c44b8",
+ "id": "1adb2889.3bac67",
"type": "block",
"name": "block",
"xml": "<block>\n",
"atomic": "false",
"comments": "",
"outputs": 1,
- "x": 2063.5668716430664,
- "y": 603.0000762939453,
- "z": "4d7c5b65.634a04",
+ "x": 2033.9001770019531,
+ "y": 608.0000801086426,
+ "z": "b04c02f8.7bb8d",
"wires": [
[
- "7680b50c.0d0cfc",
- "b5b9a8ee.178b08",
- "53f6cef7.f7902"
+ "ec4e80d9.edaba",
+ "23a76717.e0a078",
+ "e70e6789.6b9e38"
]
]
},
{
- "id": "ed74cc8d.297f4",
+ "id": "f0461249.b6292",
"type": "block",
"name": "block",
"xml": "<block>\n",
"atomic": "false",
"comments": "",
"outputs": 1,
- "x": 2075.566547393799,
- "y": 690.0001621246338,
- "z": "4d7c5b65.634a04",
+ "x": 2045.8998527526855,
+ "y": 695.000165939331,
+ "z": "b04c02f8.7bb8d",
"wires": [
[
- "d60e382a.987ab8",
- "59e28a75.507424"
+ "8890fe8f.6a6c7",
+ "f1c186b5.fad398"
]
]
},
{
- "id": "606dc018.93301",
+ "id": "5426957e.238efc",
"type": "block",
"name": "Update SiceProfile for NeaeRTRIC",
"xml": "<block atomic='true'>",
"atomic": "true",
"comments": "",
"outputs": 1,
- "x": 1271.666748046875,
- "y": 473.74481201171875,
- "z": "4d7c5b65.634a04",
+ "x": 1242.0000534057617,
+ "y": 478.744815826416,
+ "z": "b04c02f8.7bb8d",
"wires": [
[
- "95120f6f.d2c67",
- "d9f440c.e5360c",
- "322b057f.3273da",
- "a18381a8.6f5e"
+ "e753d012.1355b",
+ "694d8f10.708e2",
+ "e418ee81.0c5e3",
+ "d62a4351.58f9c"
]
]
},
{
- "id": "322b057f.3273da",
+ "id": "e418ee81.0c5e3",
"type": "switchNode",
"name": "ransim mounted",
"xml": "<switch test='`$prop.ransim-mounted`'>\n",
"comments": "",
"outputs": 1,
- "x": 1567.6669921875,
- "y": 390.4010314941406,
- "z": "4d7c5b65.634a04",
+ "x": 1538.0002975463867,
+ "y": 395.4010353088379,
+ "z": "b04c02f8.7bb8d",
"wires": [
[
- "27589ceb.1588b4",
- "2f3eb675.6b0bea"
+ "684269b1.905268",
+ "86e37c15.ec96a"
]
]
},
{
- "id": "27589ceb.1588b4",
+ "id": "684269b1.905268",
"type": "outcome",
"name": "Not Mounted",
"xml": "<outcome value='false'>\n",
"comments": "",
"outputs": 1,
- "x": 1807.6669921875,
- "y": 389.4008483886719,
- "z": "4d7c5b65.634a04",
+ "x": 1778.0002975463867,
+ "y": 394.40085220336914,
+ "z": "b04c02f8.7bb8d",
"wires": [
[
- "99e5f9ee.5c06c8"
+ "83fb0f4e.0d969"
]
]
},
{
- "id": "2f3eb675.6b0bea",
+ "id": "86e37c15.ec96a",
"type": "outcome",
"name": "Mounted",
"xml": "<outcome value='true'>\n",
"comments": "",
"outputs": 1,
- "x": 1798.6671142578125,
- "y": 452.40093994140625,
- "z": "4d7c5b65.634a04",
+ "x": 1769.0004196166992,
+ "y": 457.4009437561035,
+ "z": "b04c02f8.7bb8d",
"wires": [
[
- "1a995263.b3b8ee"
+ "29429f2f.32187"
]
]
},
{
- "id": "d9f440c.e5360c",
+ "id": "694d8f10.708e2",
"type": "record",
"name": "record",
"xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.FileRecorder\">\n<parameter name=\"file\" value=\"/opt/opendaylight/current/data/log/closedLoop.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"Patch SliceProfile ToNearRTRIC url for closed loop:\"/>\n<parameter name=\"field2\" value=\"`$tmp.restapi.addSliceProfile.ToNearRTRIC.url`\"/>",
"comments": "",
"outputs": 1,
- "x": 1535.6673583984375,
- "y": 432.7449951171875,
- "z": "4d7c5b65.634a04",
+ "x": 1506.0006637573242,
+ "y": 437.74499893188477,
+ "z": "b04c02f8.7bb8d",
"wires": [
[]
]
},
{
- "id": "95120f6f.d2c67",
+ "id": "e753d012.1355b",
"type": "record",
"name": "record",
"xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.FileRecorder\">\n<parameter name=\"file\" value=\"/opt/opendaylight/current/data/log/closedLoop.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"Setting variables for PATCH SliceProfile ToNearRTRIC - closed loop\"/>\n<parameter name=\"field2\" value=\"`$prop.controller.url + $tmp.restapi.addSliceProfile.ToNearRTRIC.url`\"/>\n<parameter name=\"field3\" value=\"`$tmp.dLThptPerSlice`\"/>\n<parameter name=\"field4\" value=\"`$tmp.uLThptPerSlice`\"/>\n<parameter name=\"field5\" value=\"`$tmp.nearRTRICId`\"/>\n<parameter name=\"field6\" value=\"`$tmp.sliceProfileId`\"/>",
"comments": "",
"outputs": 1,
- "x": 1535.66796875,
- "y": 482.734375,
- "z": "4d7c5b65.634a04",
+ "x": 1506.0012741088867,
+ "y": 487.73437881469727,
+ "z": "b04c02f8.7bb8d",
"wires": [
[]
]
},
{
- "id": "709901d0.b774a",
+ "id": "a83510a.300eef",
"type": "execute",
"name": "Populate MOUNT NAME",
"xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$tmp.restapi.addSliceProfile.ToNearRTRIC.url`\"/>\n <parameter name=\"outputPath\" value=\"tmp.restapi.addSliceProfile.ToNearRTRIC.url\"/>\n <parameter name=\"target\" value=\"{mountName}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.nearRTRICId`\"/>",
"comments": "",
"outputs": 1,
- "x": 2326.2021484375,
- "y": 556.0000610351562,
- "z": "4d7c5b65.634a04",
+ "x": 2296.5354537963867,
+ "y": 561.0000648498535,
+ "z": "b04c02f8.7bb8d",
"wires": [
[]
]
},
{
- "id": "5b676f7e.7cbec",
+ "id": "b4ec3cb2.c4aa4",
"type": "execute",
"name": "Populate addSliceProfile.ToNearRTRIC URL",
"xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$tmp.restapi.addSliceProfile.ToNearRTRIC.url`\"/>\n <parameter name=\"outputPath\" value=\"tmp.restapi.addSliceProfile.ToNearRTRIC.url\"/>\n <parameter name=\"target\" value=\"{sliceProfileId}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.sliceProfileId`\"/>",
"comments": "",
"outputs": 1,
- "x": 2385.736572265625,
- "y": 513.5990905761719,
- "z": "4d7c5b65.634a04",
+ "x": 2356.0698776245117,
+ "y": 518.5990943908691,
+ "z": "b04c02f8.7bb8d",
"wires": [
[]
]
},
{
- "id": "1a995263.b3b8ee",
+ "id": "29429f2f.32187",
"type": "block",
"name": "ransim URL",
"xml": "<block atomic='true'>",
"atomic": "true",
"comments": "",
"outputs": 1,
- "x": 2030.65673828125,
- "y": 452.4009094238281,
- "z": "4d7c5b65.634a04",
+ "x": 2000.9900436401367,
+ "y": 457.4009132385254,
+ "z": "b04c02f8.7bb8d",
"wires": [
[
- "5dbd3439.28967c",
- "5b676f7e.7cbec",
- "709901d0.b774a"
+ "88bc082a.9d0ec8",
+ "b4ec3cb2.c4aa4",
+ "a83510a.300eef"
]
]
},
{
- "id": "5dbd3439.28967c",
+ "id": "88bc082a.9d0ec8",
"type": "execute",
"name": "generate addSliceProfile.ToNearRTRIC URL",
"xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$prop.restapi.addSliceProfile.ToNearRTRIC.ransim-mounted`\"/>\n <parameter name=\"outputPath\" value=\"tmp.restapi.addSliceProfile.ToNearRTRIC.url\"/>\n <parameter name=\"target\" value=\"{idNearRTRIC}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.nearRTRICId`\"/>",
"comments": "",
"outputs": 1,
- "x": 2383.201416015625,
- "y": 475.00030517578125,
- "z": "4d7c5b65.634a04",
+ "x": 2353.5347213745117,
+ "y": 480.0003089904785,
+ "z": "b04c02f8.7bb8d",
"wires": [
[]
]
},
{
- "id": "77ebd462.27379c",
+ "id": "9bc7f874.d6b758",
"type": "execute",
"name": "Populate addSliceProfile.ToNearRTRIC URL",
"xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$tmp.restapi.addSliceProfile.ToNearRTRIC.url`\"/>\n <parameter name=\"outputPath\" value=\"tmp.restapi.addSliceProfile.ToNearRTRIC.url\"/>\n <parameter name=\"target\" value=\"{sliceProfileId}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.sliceProfileId`\"/>",
"comments": "",
"outputs": 1,
- "x": 2381.20166015625,
- "y": 434.0001525878906,
- "z": "4d7c5b65.634a04",
+ "x": 2351.5349655151367,
+ "y": 439.0001564025879,
+ "z": "b04c02f8.7bb8d",
"wires": [
[]
]
},
{
- "id": "18f4ec66.2b3d24",
+ "id": "bef42d5b.60b5",
"type": "execute",
"name": "generate addSliceProfile.ToNearRTRIC URL",
"xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$prop.restapi.addSliceProfile.ToNearRTRIC`\"/>\n <parameter name=\"outputPath\" value=\"tmp.restapi.addSliceProfile.ToNearRTRIC.url\"/>\n <parameter name=\"target\" value=\"{idNearRTRIC}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.nearRTRICId`\"/>",
"comments": "",
"outputs": 1,
- "x": 2380.6669921875,
- "y": 390.4011535644531,
- "z": "4d7c5b65.634a04",
+ "x": 2351.0002975463867,
+ "y": 395.4011573791504,
+ "z": "b04c02f8.7bb8d",
"wires": [
[]
]
},
{
- "id": "99e5f9ee.5c06c8",
+ "id": "83fb0f4e.0d969",
"type": "block",
"name": "URL",
"xml": "<block atomic='true'>",
"atomic": "true",
"comments": "",
"outputs": 1,
- "x": 2027.8685302734375,
- "y": 389.0000305175781,
- "z": "4d7c5b65.634a04",
+ "x": 1998.2018356323242,
+ "y": 394.0000343322754,
+ "z": "b04c02f8.7bb8d",
"wires": [
[
- "18f4ec66.2b3d24",
- "77ebd462.27379c"
+ "bef42d5b.60b5",
+ "9bc7f874.d6b758"
]
]
},
{
- "id": "f59dcce9.2395c",
+ "id": "8986ed69.8a1cc",
"type": "set",
"name": "set Temp Variables",
"xml": "<set>\n<parameter name='tmp.payload.numberUpdates' value='`$payloadJson.input.additionalproperties.resourceConfig.data_length`'/>\n<parameter name=\"tmp.sliceProfileId\" value=\"`$payloadJson.input.sliceProfile.sliceProfileId`\"/>\n<parameter name='tmp.payload.sNSSAI' value='`$payloadJson.input.sliceProfile.sNSSAI`'/>",
"comments": "",
- "x": 1172.670654296875,
- "y": 69.00393676757812,
- "z": "4d7c5b65.634a04",
+ "x": 1143.0039596557617,
+ "y": 74.00394058227539,
+ "z": "b04c02f8.7bb8d",
"wires": []
},
{
- "id": "469ed456.870fcc",
+ "id": "c4c9ad9d.a3cb9",
"type": "for",
"name": "For Number of patches",
"xml": "<for index='id1' start='0' end=\"`$tmp.payload.numberUpdates`\" >",
"comments": "",
"outputs": 1,
- "x": 1021.670654296875,
- "y": 274.0039367675781,
- "z": "4d7c5b65.634a04",
+ "x": 992.0039596557617,
+ "y": 279.0039405822754,
+ "z": "b04c02f8.7bb8d",
"wires": [
[
- "606dc018.93301",
- "b5dfde0e.035e6",
- "b390b1db.dbb11",
- "2f0d0bdc.3fe284",
- "a837a263.556b8",
- "9071a476.518048"
+ "5426957e.238efc",
+ "446b9013.05815",
+ "c551acb3.bafd1",
+ "38d2e269.00fe0e",
+ "17f55a3d.e1acc6",
+ "29d79b14.d83c24"
]
]
},
{
- "id": "b5dfde0e.035e6",
+ "id": "446b9013.05815",
"type": "set",
"name": "set Temp Variables",
"xml": "<set>\n<parameter name=\"tmp.dLThptPerSlice\" value=\"`$payloadJson.input.additionalproperties.resourceConfig.data[$id1].dLThptPerSlice`\"/>\n<parameter name=\"tmp.uLThptPerSlice\" value=\"`$payloadJson.input.additionalproperties.resourceConfig.data[$id1].uLThptPerSlice`\"/>\n<parameter name=\"tmp.nearRTRICId\" value=\"`$payloadJson.input.additionalproperties.resourceConfig.data[$id1].nearRTRICId`\"/>",
"comments": "",
- "x": 1309.1217041015625,
- "y": 159.01048278808594,
- "z": "4d7c5b65.634a04",
+ "x": 1279.4550094604492,
+ "y": 164.0104866027832,
+ "z": "b04c02f8.7bb8d",
"wires": []
},
{
- "id": "7680b50c.0d0cfc",
+ "id": "ec4e80d9.edaba",
"type": "set",
"name": "set",
"xml": "<set>\n<parameter name='error-code' value='500'/>\n<parameter name='error-message' value='Error Patching slice profile parms for close loop. Exiting close loop operation'/>",
"comments": "",
- "x": 2274.1218910217285,
- "y": 604.0104541778564,
- "z": "4d7c5b65.634a04",
+ "x": 2244.4551963806152,
+ "y": 609.0104579925537,
+ "z": "b04c02f8.7bb8d",
"wires": []
},
{
- "id": "b5b9a8ee.178b08",
+ "id": "23a76717.e0a078",
"type": "returnFailure",
"name": "return failure",
"xml": "<return status='failure'>\n<parameter name='ack-final' value='Y'/>\n<parameter name='error-code' value='500'/>\n<parameter name='error-message' value='Error Patching slice profile parms for close loop. Exiting close loop operation'/>",
"comments": "",
- "x": 2297.121894836426,
- "y": 643.8995742797852,
- "z": "4d7c5b65.634a04",
+ "x": 2267.4552001953125,
+ "y": 648.8995780944824,
+ "z": "b04c02f8.7bb8d",
"wires": []
},
{
- "id": "d60e382a.987ab8",
+ "id": "8890fe8f.6a6c7",
"type": "record",
"name": "record",
"xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.FileRecorder\">\n<parameter name=\"file\" value=\"/opt/opendaylight/current/data/log/closedLoop.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"Successfully PATCHED NearRTRIC for close loop operation\"/>",
"comments": "",
"outputs": 1,
- "x": 2279.121726989746,
- "y": 689.8995361328125,
- "z": "4d7c5b65.634a04",
+ "x": 2249.455032348633,
+ "y": 694.8995399475098,
+ "z": "b04c02f8.7bb8d",
"wires": [
[]
]
},
{
- "id": "59e28a75.507424",
+ "id": "f1c186b5.fad398",
"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-closedloop-nearRTRIC-context.log' />\n\n\n",
"comments": "",
"outputs": 1,
- "x": 2294.8998794555664,
- "y": 740.8994579315186,
- "z": "4d7c5b65.634a04",
+ "x": 2265.233184814453,
+ "y": 745.8994617462158,
+ "z": "b04c02f8.7bb8d",
"wires": [
[]
]
},
{
- "id": "bf442461.925f88",
+ "id": "a88d2ba4.1050e8",
"type": "set",
"name": "set Temp Variables",
"xml": "<set>\n<parameter name='tmp.payload.dataPoints' value='`$payloadJson.input.additionalproperties.resourceConfig.data_length`'/>\n<parameter name=\"tmp.payload.sNSSAI\" value=\"`$payloadJson.input.additionalproperties.resourceConfig.snssai`\"/>\n<parameter name=\"tmp.sliceProfileId\" value=\"`$payloadJson.input.sliceProfile.sliceProfileId`\"/>",
"comments": "",
- "x": 1202.7886962890625,
- "y": 1908.8994140625,
- "z": "4d7c5b65.634a04",
+ "x": 1173.1220016479492,
+ "y": 1913.8994178771973,
+ "z": "b04c02f8.7bb8d",
"wires": []
},
{
- "id": "7dfe3937.33ca78",
+ "id": "a44327fa.7b0998",
"type": "for",
"name": "For Number of data Points",
"xml": "<for index='id-is' start='0' end=\"`$tmp.payload.dataPoints`\" >",
"comments": "",
"outputs": 1,
- "x": 1386.7882080078125,
- "y": 2139.8994140625,
- "z": "4d7c5b65.634a04",
+ "x": 1357.1215133666992,
+ "y": 2144.8994178771973,
+ "z": "b04c02f8.7bb8d",
"wires": [
[
- "56d2328.ebe75cc"
+ "50aaa9c0.d196a8"
]
]
},
{
- "id": "2f0d0bdc.3fe284",
+ "id": "38d2e269.00fe0e",
"type": "block",
"name": "get PLMNId",
"xml": "<block atomic='true'>",
"atomic": "true",
"comments": "",
"outputs": 1,
- "x": 1184.4167785644531,
- "y": 919.7501668930054,
- "z": "4d7c5b65.634a04",
+ "x": 1154.7500839233398,
+ "y": 924.7501707077026,
+ "z": "b04c02f8.7bb8d",
"wires": [
[
- "fdccd5c2.f62b28",
- "e432dc1.4df992",
- "2376f7a2.cf75c8",
- "5c0646e3.0b0dd8",
- "c6230172.e0fc3",
- "ec44d6b8.c095e8",
- "2c66b2a5.586b9e"
+ "ca3a4f96.e2b17",
+ "7059ee51.917c3",
+ "1b106543.cc22eb",
+ "60d6cdb.8397634",
+ "57216495.21a59c",
+ "2fe5cefe.63f692",
+ "45ca227a.d79ecc"
]
]
},
{
- "id": "b390b1db.dbb11",
+ "id": "c551acb3.bafd1",
"type": "block",
"name": "Update NearRTRIC Config",
"xml": "<block atomic=\"true\">",
"atomic": "true",
"comments": "",
"outputs": 1,
- "x": 1112.1666870117188,
- "y": 1510.5,
- "z": "4d7c5b65.634a04",
+ "x": 1082.4999923706055,
+ "y": 1515.5000038146973,
+ "z": "b04c02f8.7bb8d",
"wires": [
[
- "3e21d260.0305ae",
- "99f61b3f.7c9258",
- "4fcdfd93.2b2e94",
- "8c7da0b4.ffdc8",
- "b50c2ced.c3143",
- "8dd65b69.c1c0e8",
- "24ce1a1c.0c4dc6"
+ "9bb1bf49.eea99",
+ "6d06961e.489968",
+ "b31d94ee.f8c428",
+ "47234b33.292a74",
+ "e774ae26.aca33",
+ "97544c6e.709e8",
+ "6334be26.c593f",
+ "15c99720.f87d29",
+ "8ccfa554.2fa6e8",
+ "c5d126b9.e8dfa8",
+ "9e4ab5af.09db38"
]
]
},
{
- "id": "6a98c3e2.10f9dc",
+ "id": "c1d3c078.e00ce",
"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",
"comments": "",
- "x": 791.3541717529297,
- "y": 2122.625093460083,
- "z": "4d7c5b65.634a04",
+ "x": 761.6874771118164,
+ "y": 2127.6250972747803,
+ "z": "b04c02f8.7bb8d",
"wires": []
},
{
- "id": "88fbf49.5fc7708",
+ "id": "8838ef19.ecca5",
"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`\"/>",
"comments": "",
"outputs": 1,
- "x": 732.8541488647461,
- "y": 2332.375202178955,
- "z": "4d7c5b65.634a04",
+ "x": 703.1874542236328,
+ "y": 2337.3752059936523,
+ "z": "b04c02f8.7bb8d",
"wires": [
[
- "f6a80048.4c96f",
- "6ef55787.17d028"
+ "c92ba98c.0d9f18",
+ "3d4bab2b.d62b14"
]
]
},
{
- "id": "3332b0a3.18c75",
+ "id": "50d20a33.2130f4",
"type": "outcome",
"name": "Not Mounted",
"xml": "<outcome value='false'>\n",
"comments": "",
"outputs": 1,
- "x": 2055.416748046875,
- "y": 2063,
- "z": "4d7c5b65.634a04",
+ "x": 2025.7500534057617,
+ "y": 2068.0000038146973,
+ "z": "b04c02f8.7bb8d",
"wires": [
[
- "9fe8a854.d9ada8"
+ "9383bf04.04f8a"
]
]
},
{
- "id": "6e6bdcac.3f3144",
+ "id": "838fdab7.471818",
"type": "outcome",
"name": "Mounted",
"xml": "<outcome value='true'>\n",
"comments": "",
"outputs": 1,
- "x": 2042.4168014526367,
- "y": 2108.0001702308655,
- "z": "4d7c5b65.634a04",
+ "x": 2012.7501068115234,
+ "y": 2113.0001740455627,
+ "z": "b04c02f8.7bb8d",
"wires": [
[
- "dbbfe50d.f18f78"
+ "91c05285.aa16c"
]
]
},
{
- "id": "dbbfe50d.f18f78",
+ "id": "91c05285.aa16c",
"type": "block",
"name": "ransim URL",
"xml": "<block atomic='true'>",
"atomic": "true",
"comments": "",
"outputs": 1,
- "x": 2226.4066162109375,
- "y": 2109.000244140625,
- "z": "4d7c5b65.634a04",
+ "x": 2196.739921569824,
+ "y": 2114.0002479553223,
+ "z": "b04c02f8.7bb8d",
"wires": [
[
- "c9d85598.6f2108",
- "4a5f9e34.0c641"
+ "7ecaa7ed.791a58",
+ "2bfed09c.e1d87"
]
]
},
{
- "id": "9fe8a854.d9ada8",
+ "id": "9383bf04.04f8a",
"type": "block",
"name": "URL",
"xml": "<block atomic='true'>",
"atomic": "true",
"comments": "",
"outputs": 1,
- "x": 2210.6182861328125,
- "y": 2062.59912109375,
- "z": "4d7c5b65.634a04",
+ "x": 2180.951591491699,
+ "y": 2067.5991249084473,
+ "z": "b04c02f8.7bb8d",
"wires": [
[
- "9a2c83bd.5dad5"
+ "1b32ae33.c752b2"
]
]
},
{
- "id": "9a2c83bd.5dad5",
+ "id": "1b32ae33.c752b2",
"type": "execute",
"name": "generate addnSSAIEntry.ToNearRTRIC URL",
"xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$prop.restapi.addnSSAIEntry.ToNearRTRIC`\"/>\n <parameter name=\"outputPath\" value=\"tmp.restapi.addnSSAIEntry.ToNearRTRIC.url\"/>\n <parameter name=\"target\" value=\"{idNearRTRIC}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.nearRTRICId`\"/>",
"comments": "",
"outputs": 1,
- "x": 2484.416748046875,
- "y": 2062.00048828125,
- "z": "4d7c5b65.634a04",
+ "x": 2454.7500534057617,
+ "y": 2067.0004920959473,
+ "z": "b04c02f8.7bb8d",
"wires": [
[]
]
},
{
- "id": "c9d85598.6f2108",
+ "id": "7ecaa7ed.791a58",
"type": "execute",
"name": "generate addnSSAIEntry.ToNearRTRIC URL",
"xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$prop.restapi.addnSSAIEntry.ToNearRTRIC.ransim-mounted`\"/>\n <parameter name=\"outputPath\" value=\"tmp.restapi.addnSSAIEntry.ToNearRTRIC.url\"/>\n <parameter name=\"target\" value=\"{idNearRTRIC}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.nearRTRICId`\"/>",
"comments": "",
"outputs": 1,
- "x": 2536.951177597046,
- "y": 2109.599466353655,
- "z": "4d7c5b65.634a04",
+ "x": 2507.2844829559326,
+ "y": 2114.599470168352,
+ "z": "b04c02f8.7bb8d",
"wires": [
[]
]
},
{
- "id": "4a5f9e34.0c641",
+ "id": "2bfed09c.e1d87",
"type": "execute",
"name": "Populate MOUNT NAME",
"xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$tmp.restapi.addnSSAIEntry.ToNearRTRIC.url`\"/>\n <parameter name=\"outputPath\" value=\"tmp.restapi.addnSSAIEntry.ToNearRTRIC.url\"/>\n <parameter name=\"target\" value=\"{mountName}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.nearRTRICId`\"/>",
"comments": "",
"outputs": 1,
- "x": 2481.95166015625,
- "y": 2150.59912109375,
- "z": "4d7c5b65.634a04",
+ "x": 2452.2849655151367,
+ "y": 2155.5991249084473,
+ "z": "b04c02f8.7bb8d",
"wires": [
[]
]
},
{
- "id": "afec3a59.277408",
+ "id": "38a1a6db.f354ca",
"type": "switchNode",
"name": "ransim mounted",
"xml": "<switch test='`$prop.ransim-mounted`'>\n",
"comments": "",
"outputs": 1,
- "x": 1859.416748046875,
- "y": 2064,
- "z": "4d7c5b65.634a04",
+ "x": 1829.7500534057617,
+ "y": 2069.0000038146973,
+ "z": "b04c02f8.7bb8d",
"wires": [
[
- "3332b0a3.18c75",
- "6e6bdcac.3f3144"
+ "50d20a33.2130f4",
+ "838fdab7.471818"
]
]
},
{
- "id": "c077a64b.c869f8",
+ "id": "16d9e20b.f661ee",
"type": "execute",
"name": "prepare mcc",
"xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$tmp.restapi.addnSSAIEntry.ToNearRTRIC.url`\"/>\n <parameter name=\"outputPath\" value=\"tmp.restapi.addnSSAIEntry.ToNearRTRIC.url\"/>\n <parameter name=\"target\" value=\"{mcc}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.mcc`\"/>",
"comments": "",
"outputs": 1,
- "x": 1849.416748046875,
- "y": 2103,
- "z": "4d7c5b65.634a04",
+ "x": 1819.7500534057617,
+ "y": 2108.0000038146973,
+ "z": "b04c02f8.7bb8d",
"wires": [
[]
]
},
{
- "id": "56e26473.9cbccc",
+ "id": "a6623310.8e5fc",
"type": "execute",
"name": "prepare mnc",
"xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$tmp.restapi.addnSSAIEntry.ToNearRTRIC.url`\"/>\n <parameter name=\"outputPath\" value=\"tmp.restapi.addnSSAIEntry.ToNearRTRIC.url\"/>\n <parameter name=\"target\" value=\"{mnc}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.mnc`\"/>",
"comments": "",
"outputs": 1,
- "x": 1849.916748046875,
- "y": 2143,
- "z": "4d7c5b65.634a04",
+ "x": 1820.2500534057617,
+ "y": 2148.0000038146973,
+ "z": "b04c02f8.7bb8d",
"wires": [
[]
]
},
{
- "id": "56d2328.ebe75cc",
+ "id": "50aaa9c0.d196a8",
"type": "block",
"name": "block : atomic",
"xml": "<block atomic=\"true\">",
"atomic": "true",
"outputs": 1,
- "x": 1606.4166259765625,
- "y": 2142,
- "z": "4d7c5b65.634a04",
+ "x": 1576.7499313354492,
+ "y": 2147.0000038146973,
+ "z": "b04c02f8.7bb8d",
"wires": [
[
- "afec3a59.277408",
- "c077a64b.c869f8",
- "56e26473.9cbccc",
- "bb174bd1.753338",
- "ec554766.4f8778",
- "8381dddd.a8978",
- "f47c2242.987ea"
+ "38a1a6db.f354ca",
+ "16d9e20b.f661ee",
+ "a6623310.8e5fc",
+ "9816dcde.24641",
+ "1c52a1bd.94160e",
+ "24bb6a9e.383946",
+ "119f1719.4a81c9"
]
]
},
{
- "id": "bb174bd1.753338",
+ "id": "9816dcde.24641",
"type": "for",
"name": "For Number of cells",
"xml": "<for index='id2' start='0' end=\"`$tmp.CUCellListEntries`\" >",
"comments": "",
"outputs": 1,
- "x": 1865.6668701171875,
- "y": 2253,
- "z": "4d7c5b65.634a04",
+ "x": 1836.0001754760742,
+ "y": 2258.0000038146973,
+ "z": "b04c02f8.7bb8d",
"wires": [
[
- "80b017d0.e3d138"
+ "5850b05a.5060b"
]
]
},
{
- "id": "d39528dc.0aa948",
+ "id": "ec920e48.6fac4",
"type": "execute",
"name": "cellLocalId",
"xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'>\n\t<parameter name='outputPath' value='tmp.cellLocalId' />\n\t<parameter name='source' value=\"`'payloadJson.input.additionalproperties.resourceConfig.data['+$id-is+'].cellCUList['+$id2+'].cellLocalId'`\" />",
"comments": "",
"outputs": 1,
- "x": 2292.916748046875,
- "y": 2200.500244140625,
- "z": "4d7c5b65.634a04",
+ "x": 2263.2500534057617,
+ "y": 2205.5002479553223,
+ "z": "b04c02f8.7bb8d",
"wires": [
[]
]
},
{
- "id": "80b017d0.e3d138",
+ "id": "5850b05a.5060b",
"type": "block",
"name": "block : atomic",
"xml": "<block atomic=\"true\">",
"atomic": "true",
"outputs": 1,
- "x": 2068.4166259765625,
- "y": 2253,
- "z": "4d7c5b65.634a04",
+ "x": 2038.7499313354492,
+ "y": 2258.0000038146973,
+ "z": "b04c02f8.7bb8d",
"wires": [
[
- "d39528dc.0aa948",
- "99d3e596.541268",
- "a8b88564.0e3ed8",
- "56bbe873.87ce18",
- "a9da99d0.023b68"
+ "ec920e48.6fac4",
+ "9c28ac52.3867b",
+ "20ceffca.4c34b",
+ "b90a2304.0ede9",
+ "444ffc30.e91db4"
]
]
},
{
- "id": "99d3e596.541268",
+ "id": "9c28ac52.3867b",
"type": "execute",
"name": "predictedMaxNumberofConns",
"xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'>\n\t<parameter name='outputPath' value='tmp.predictedMaxNumberofConns' />\n\t<parameter name='source' value=\"`'payloadJson.input.additionalproperties.resourceConfig.data['+$id-is+'].cellCUList['+$id2+'].configData.predictedMaxNumberofConns'`\" />",
"comments": "",
"outputs": 1,
- "x": 2349.1666259765625,
- "y": 2307.500244140625,
- "z": "4d7c5b65.634a04",
+ "x": 2319.499931335449,
+ "y": 2312.5002479553223,
+ "z": "b04c02f8.7bb8d",
"wires": [
[]
]
},
{
- "id": "a8b88564.0e3ed8",
+ "id": "20ceffca.4c34b",
"type": "execute",
"name": "patch NearRTRIC - config",
"xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"templateFileName\" value=\"`$prop.restapi.templateDir + '/ranSlice-closed-loop-nearRTRIC-config-patch.json'`\" />\n<parameter name=\"restapiUrl\" value=\"`$prop.controller.url + $tmp.restapi.addnSSAIEntry.ToNearRTRIC.url`\"/>\n<parameter name=\"restapiUser\" value=\"`$prop.controller.user`\" />\n<parameter name=\"restapiPassword\" value=\"`$prop.controller.pwd`\"/>\n<parameter name=\"httpMethod\" value=\"PATCH\"/>\n<parameter name=\"responsePrefix\" value=\"patch-nearRTRIC-config-response\"/>\n<parameter name='contentType' value='application/yang.patch+json' />\n<parameter name='accept' value='application/yang.patch-status+json'/>\n<parameter name='format' value='json' />",
"comments": "",
"outputs": 1,
- "x": 2332.9166259765625,
- "y": 2379,
- "z": "4d7c5b65.634a04",
+ "x": 2303.249931335449,
+ "y": 2384.0000038146973,
+ "z": "b04c02f8.7bb8d",
"wires": [
[
- "24363a2b.964e46",
- "bb57c66f.f72708"
+ "369c2315.bdc1bc",
+ "67ac42e4.957dec"
]
]
},
{
- "id": "24363a2b.964e46",
+ "id": "369c2315.bdc1bc",
"type": "success",
"name": "success",
"xml": "<outcome value='success'>\n",
"comments": "",
"outputs": 1,
- "x": 2553.416748046875,
- "y": 2379.25,
- "z": "4d7c5b65.634a04",
+ "x": 2523.7500534057617,
+ "y": 2384.2500038146973,
+ "z": "b04c02f8.7bb8d",
"wires": [
[
- "c6c44ad.b771bb8"
+ "34d146c4.2588ba"
]
]
},
{
- "id": "bb57c66f.f72708",
+ "id": "67ac42e4.957dec",
"type": "failure",
"name": "failure",
"xml": "<outcome value='failure'>\n",
"comments": "",
"outputs": 1,
- "x": 2549.9794921875,
- "y": 2415.8125,
- "z": "4d7c5b65.634a04",
+ "x": 2520.3127975463867,
+ "y": 2420.8125038146973,
+ "z": "b04c02f8.7bb8d",
"wires": [
[
- "e15a40fc.968c"
+ "fd00e465.63e8d8"
]
]
},
{
- "id": "e15a40fc.968c",
+ "id": "fd00e465.63e8d8",
"type": "block",
"name": "block",
"xml": "<block>",
"atomic": "false",
"comments": "",
"outputs": 1,
- "x": 2706.979248046875,
- "y": 2415.8125,
- "z": "4d7c5b65.634a04",
+ "x": 2677.3125534057617,
+ "y": 2420.8125038146973,
+ "z": "b04c02f8.7bb8d",
"wires": [
[
- "c203d45e.a94948",
- "af399e.80ed966",
- "53f6cef7.f7902"
+ "be1e785.5461988",
+ "f8beb98f.234fe8",
+ "e70e6789.6b9e38"
]
]
},
{
- "id": "c6c44ad.b771bb8",
+ "id": "34d146c4.2588ba",
"type": "block",
"name": "block : atomic",
"xml": "<block atomic='true'>",
"atomic": "true",
"comments": "",
"outputs": 1,
- "x": 2729.41650390625,
- "y": 2379.25,
- "z": "4d7c5b65.634a04",
+ "x": 2699.7498092651367,
+ "y": 2384.2500038146973,
+ "z": "b04c02f8.7bb8d",
"wires": [
[
- "de0a2639.6f4b28"
+ "b44d708e.7060b"
]
]
},
{
- "id": "c203d45e.a94948",
+ "id": "be1e785.5461988",
"type": "returnFailure",
"name": "return failure",
"xml": "<return status='failure'>\n<parameter name='ack-final' value='Y'/>\n<parameter name='error-code' value='500'/>\n<parameter name='error-message' value='Error Getting Info from ConfigDB. Aborting RPC executiopn'/>",
"comments": "",
- "x": 2922.979248046875,
- "y": 2451.8125,
- "z": "4d7c5b65.634a04",
+ "x": 2893.3125534057617,
+ "y": 2456.8125038146973,
+ "z": "b04c02f8.7bb8d",
"wires": []
},
{
- "id": "af399e.80ed966",
+ "id": "f8beb98f.234fe8",
"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": 2903.979736328125,
- "y": 2415.923583984375,
- "z": "4d7c5b65.634a04",
+ "x": 2874.3130416870117,
+ "y": 2420.9235877990723,
+ "z": "b04c02f8.7bb8d",
"wires": []
},
{
- "id": "de0a2639.6f4b28",
+ "id": "b44d708e.7060b",
"type": "record",
"name": "record",
"xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.FileRecorder\">\n<parameter name=\"file\" value=\"/opt/opendaylight/current/data/log/closedLoop.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"Successfully patched NearRTRIC configuration\"/>",
"comments": "",
"outputs": 1,
- "x": 2904.166259765625,
- "y": 2380.000244140625,
- "z": "4d7c5b65.634a04",
+ "x": 2874.4995651245117,
+ "y": 2385.0002479553223,
+ "z": "b04c02f8.7bb8d",
"wires": [
[]
]
},
{
- "id": "8142a0c0.4e5e5",
+ "id": "76478475.f28ebc",
"type": "record",
"name": "record",
"xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.FileRecorder\">\n<parameter name=\"file\" value=\"/opt/opendaylight/current/data/log/intelligentSlicing.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"Data length \"/>\n<parameter name=\"field2\" value=\"`$tmp.payload.dataPoints`\"/>\n\n\n\n",
"comments": "",
"outputs": 1,
- "x": 1165.1666259765625,
- "y": 1951.9998779296875,
- "z": "4d7c5b65.634a04",
+ "x": 1135.4999313354492,
+ "y": 1956.9998817443848,
+ "z": "b04c02f8.7bb8d",
"wires": [
[]
]
},
{
- "id": "ec554766.4f8778",
+ "id": "1c52a1bd.94160e",
"type": "execute",
"name": "CUCellListEntries",
"xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'>\n\t<parameter name='outputPath' value='tmp.CUCellListEntries' />\n\t<parameter name='source' value=\"`'payloadJson.input.additionalproperties.resourceConfig.data['+$id-is+'].cellCUList_length'`\" />\n\t",
"comments": "",
"outputs": 1,
- "x": 1861.6666259765625,
- "y": 2179.25,
- "z": "4d7c5b65.634a04",
+ "x": 1831.9999313354492,
+ "y": 2184.2500038146973,
+ "z": "b04c02f8.7bb8d",
"wires": [
[]
]
},
{
- "id": "8381dddd.a8978",
+ "id": "24bb6a9e.383946",
"type": "record",
"name": "record",
"xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.FileRecorder\">\n<parameter name=\"file\" value=\"/opt/opendaylight/current/data/log/intelligentSlicing.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"CUCEll List length \"/>\n<parameter name=\"field2\" value=\"`$tmp.CUCellListEntries`\"/>\n\n\n\n",
"comments": "",
"outputs": 1,
- "x": 1827.6666259765625,
- "y": 2217.25,
- "z": "4d7c5b65.634a04",
+ "x": 1797.9999313354492,
+ "y": 2222.2500038146973,
+ "z": "b04c02f8.7bb8d",
"wires": [
[]
]
},
{
- "id": "56bbe873.87ce18",
+ "id": "b90a2304.0ede9",
"type": "record",
"name": "record",
"xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.FileRecorder\">\n<parameter name=\"file\" value=\"/opt/opendaylight/current/data/log/intelligentSlicing.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"cellLocalId\"/>\n<parameter name=\"field2\" value=\"`$tmp.cellLocalId`\"/>\n\n\n\n",
"comments": "",
"outputs": 1,
- "x": 2278.4168701171875,
- "y": 2342.75,
- "z": "4d7c5b65.634a04",
+ "x": 2248.750175476074,
+ "y": 2347.7500038146973,
+ "z": "b04c02f8.7bb8d",
"wires": [
[]
]
},
{
- "id": "f47c2242.987ea",
+ "id": "119f1719.4a81c9",
"type": "set",
"name": "set Temp Variables",
"xml": "<set>\n<parameter name=\"tmp.nearRTRICId\" value=\"`$payloadJson.input.additionalproperties.resourceConfig.data[$id-is].nearRTRICId`\"/>",
"comments": "",
- "x": 1869.1666259765625,
- "y": 2027.5,
- "z": "4d7c5b65.634a04",
+ "x": 1839.4999313354492,
+ "y": 2032.5000038146973,
+ "z": "b04c02f8.7bb8d",
"wires": []
},
{
- "id": "3093a6b1.44582a",
+ "id": "4dc673cb.5860bc",
"type": "set",
"name": "append configParam",
"xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'>\n\t<parameter name='outputPath' value='tmp.cellLocalId' />\n\t<parameter name='source' value=\"`$tmp.cellLocalId`+'-maxNumberofConns'\" />",
"comments": "",
- "x": 2323.9791259765625,
- "y": 2271.625,
- "z": "4d7c5b65.634a04",
+ "x": 2294.312431335449,
+ "y": 2276.6250038146973,
+ "z": "b04c02f8.7bb8d",
"wires": []
},
{
- "id": "a9da99d0.023b68",
+ "id": "444ffc30.e91db4",
"type": "execute",
"name": "append configParam",
"xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='concat'>\n <parameter name=\"source\" value=\"`$tmp.cellLocalId`\" />\n <parameter name=\"target\" value=\"-maxNumberofConns\"/>\n <parameter name=\"outputPath\" value=\"tmp.cellLocalId\" />",
"comments": "",
"outputs": 1,
- "x": 2321.916748046875,
- "y": 2235.75,
- "z": "4d7c5b65.634a04",
+ "x": 2292.2500534057617,
+ "y": 2240.7500038146973,
+ "z": "b04c02f8.7bb8d",
"wires": [
[]
]
},
{
- "id": "a837a263.556b8",
+ "id": "17f55a3d.e1acc6",
"type": "switchNode",
"name": "check nearrtric",
"xml": "<switch test='`$tmp.nearRTRICId == 11 `'>\n",
"comments": "",
"outputs": 1,
- "x": 1297.0667724609375,
- "y": 215,
- "z": "4d7c5b65.634a04",
+ "x": 1267.4000778198242,
+ "y": 220.00000381469727,
+ "z": "b04c02f8.7bb8d",
"wires": [
[
- "ee6e09df.17f748",
- "44ef0006.28225"
+ "70dff647.5a1328",
+ "d3093568.744bf8"
]
]
},
{
- "id": "ee6e09df.17f748",
+ "id": "70dff647.5a1328",
"type": "outcome",
"name": "True",
"xml": "<outcome value='true'>\n",
"comments": "",
"outputs": 1,
- "x": 1526.2669677734375,
- "y": 34.000003814697266,
- "z": "4d7c5b65.634a04",
+ "x": 1496.6002731323242,
+ "y": 39.00000762939453,
+ "z": "b04c02f8.7bb8d",
"wires": [
[
- "29f7310a.05b4de"
+ "47cd16a0.115ab8"
]
]
},
{
- "id": "44ef0006.28225",
+ "id": "d3093568.744bf8",
"type": "outcome",
"name": "False",
"xml": "<outcome value='false'>\n",
"comments": "",
"outputs": 1,
- "x": 1525.066650390625,
- "y": 145,
- "z": "4d7c5b65.634a04",
+ "x": 1495.3999557495117,
+ "y": 150.00000381469727,
+ "z": "b04c02f8.7bb8d",
"wires": [
[
- "6a8e5244.2ed45c"
+ "938f5c6e.d2f6f"
]
]
},
{
- "id": "9071a476.518048",
+ "id": "29d79b14.d83c24",
"type": "block",
"name": "block : atomic",
"xml": "<block atomic='true'>",
"atomic": "true",
"comments": "",
"outputs": 1,
- "x": 1295.066650390625,
- "y": 271,
- "z": "4d7c5b65.634a04",
+ "x": 1265.3999557495117,
+ "y": 276.00000381469727,
+ "z": "b04c02f8.7bb8d",
"wires": [
[
- "c8208c39.b463b"
+ "53138554.47990c"
]
]
},
{
- "id": "c8208c39.b463b",
+ "id": "53138554.47990c",
"type": "execute",
"name": "check policytype",
"xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"restapiUrl\" value=\"`$tmp.policytype.url`\"/>\n<parameter name='format' value='json' />\n<parameter name='httpMethod' value='GET' />\n<parameter name='contentType' value='application/json' />\n<parameter name='responsePrefix' value='get-policytypes-responsse' />",
"comments": "",
"outputs": 1,
- "x": 1550.666748046875,
- "y": 276,
- "z": "4d7c5b65.634a04",
+ "x": 1521.0000534057617,
+ "y": 281.00000381469727,
+ "z": "b04c02f8.7bb8d",
"wires": [
[
- "1c68fa89.5794b5",
- "67b1fe4a.998a"
+ "49000068.3f46a",
+ "bb9784bc.9b03f8"
]
]
},
{
- "id": "1c68fa89.5794b5",
+ "id": "49000068.3f46a",
"type": "success",
"name": "success",
"xml": "<outcome value='success'>\n",
"comments": "",
"outputs": 1,
- "x": 1756.6668701171875,
- "y": 215,
- "z": "4d7c5b65.634a04",
+ "x": 1727.0001754760742,
+ "y": 220.00000381469727,
+ "z": "b04c02f8.7bb8d",
"wires": [
[
- "8d49bba.3039b48"
+ "777cf6db.6780e8"
]
]
},
{
- "id": "8d49bba.3039b48",
+ "id": "777cf6db.6780e8",
"type": "block",
"name": "block : atomic",
"xml": "<block atomic='true'>",
"atomic": "true",
"comments": "",
"outputs": 1,
- "x": 2050.6669921875,
- "y": 212.56729125976562,
- "z": "4d7c5b65.634a04",
+ "x": 2021.0002975463867,
+ "y": 217.5672950744629,
+ "z": "b04c02f8.7bb8d",
"wires": [
[
- "4a65dabe.68fdc4",
- "9831832b.09cf5",
- "652eb8b4.5e5758",
- "b608e3ec.3ad0a"
+ "92c04d59.e6893",
+ "3207bd75.1effd2",
+ "5e01fb67.742b94",
+ "5ccae536.c8f54c"
]
]
},
{
- "id": "4a65dabe.68fdc4",
+ "id": "92c04d59.e6893",
"type": "record",
"name": "record",
"xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.FileRecorder\">\n<parameter name=\"file\" value=\"/opt/opendaylight/current/data/log/closedLoop.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"policy types length \"/>\n<parameter name=\"field2\" value=\"`$tmp.policytypelength`\"/>",
"comments": "",
"outputs": 1,
- "x": 2367.6669921875,
- "y": 90.5672836303711,
- "z": "4d7c5b65.634a04",
+ "x": 2338.0002975463867,
+ "y": 95.56728744506836,
+ "z": "b04c02f8.7bb8d",
"wires": [
[]
]
},
{
- "id": "67b1fe4a.998a",
+ "id": "bb9784bc.9b03f8",
"type": "failure",
"name": "failure",
"xml": "<outcome value='failure'>\n",
"comments": "",
"outputs": 1,
- "x": 1754.6666259765625,
- "y": 273.5673522949219,
- "z": "4d7c5b65.634a04",
+ "x": 1724.9999313354492,
+ "y": 278.56735610961914,
+ "z": "b04c02f8.7bb8d",
"wires": [
[
- "a99e6308.eb03b"
+ "57405cfc.d7c2d4"
]
]
},
{
- "id": "a99e6308.eb03b",
+ "id": "57405cfc.d7c2d4",
"type": "block",
"name": "block : atomic",
"xml": "<block atomic='true'>",
"atomic": "true",
"comments": "",
"outputs": 1,
- "x": 2049.6666259765625,
- "y": 270.5673522949219,
- "z": "4d7c5b65.634a04",
+ "x": 2019.9999313354492,
+ "y": 275.56735610961914,
+ "z": "b04c02f8.7bb8d",
"wires": [
[
- "a4fee6d5.fd3a68"
+ "df6f2667.91a188"
]
]
},
{
- "id": "a4fee6d5.fd3a68",
+ "id": "df6f2667.91a188",
"type": "record",
"name": "record",
"xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.FileRecorder\">\n<parameter name=\"file\" value=\"/opt/opendaylight/current/data/log/closedLoop.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"req error \"/>\n<parameter name=\"field2\" value=\"Failure\"/>",
"comments": "",
"outputs": 1,
- "x": 2248.66650390625,
- "y": 269.5673522949219,
- "z": "4d7c5b65.634a04",
+ "x": 2218.9998092651367,
+ "y": 274.56735610961914,
+ "z": "b04c02f8.7bb8d",
"wires": [
[]
]
},
{
- "id": "9831832b.09cf5",
+ "id": "3207bd75.1effd2",
"type": "execute",
"name": "getpolicylength",
"xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'>\n\t<parameter name='outputPath' value='tmp.policytypelength' />\n\t<parameter name='source' value=\"`'get-policytypes-responsse._length'`\" />",
"comments": "",
"outputs": 1,
- "x": 2392.3564453125,
- "y": 38,
- "z": "4d7c5b65.634a04",
+ "x": 2362.6897506713867,
+ "y": 43.000003814697266,
+ "z": "b04c02f8.7bb8d",
"wires": [
[]
]
},
{
- "id": "652eb8b4.5e5758",
+ "id": "5e01fb67.742b94",
"type": "switchNode",
"name": "check the action",
"xml": "<switch test='`$tmp.policytypelength > 0`'>\n",
"comments": "",
"outputs": 1,
- "x": 2398.6669921875,
- "y": 149,
- "z": "4d7c5b65.634a04",
+ "x": 2369.0002975463867,
+ "y": 154.00000381469727,
+ "z": "b04c02f8.7bb8d",
"wires": [
[
- "b13e9298.92709",
- "4ace453e.713c1c"
+ "9f3b5be6.db1c68",
+ "b42a18ea.6d8788"
]
]
},
{
- "id": "b13e9298.92709",
+ "id": "9f3b5be6.db1c68",
"type": "outcome",
"name": "True",
"xml": "<outcome value='true'>\n",
"comments": "",
"outputs": 1,
- "x": 2653.266845703125,
- "y": 97,
- "z": "4d7c5b65.634a04",
+ "x": 2623.6001510620117,
+ "y": 102.00000381469727,
+ "z": "b04c02f8.7bb8d",
"wires": [
[
- "3e49e38c.34499c"
+ "563bccfa.fef8d4"
]
]
},
{
- "id": "4ace453e.713c1c",
+ "id": "b42a18ea.6d8788",
"type": "outcome",
"name": "False",
"xml": "<outcome value='false'>\n",
"comments": "",
"outputs": 1,
- "x": 2657.266845703125,
- "y": 147,
- "z": "4d7c5b65.634a04",
+ "x": 2627.6001510620117,
+ "y": 152.00000381469727,
+ "z": "b04c02f8.7bb8d",
"wires": [
[
- "183652da.4b65ed"
+ "4ffa9d5c.867604"
]
]
},
{
- "id": "3e49e38c.34499c",
+ "id": "563bccfa.fef8d4",
"type": "block",
"name": "block : atomic",
"xml": "<block atomic='true'>",
"atomic": "true",
"comments": "",
"outputs": 1,
- "x": 2861.266845703125,
- "y": 96,
- "z": "4d7c5b65.634a04",
+ "x": 2831.6001510620117,
+ "y": 101.00000381469727,
+ "z": "b04c02f8.7bb8d",
"wires": [
[
- "b477f524.5c3698"
+ "3dd43848.ecf5f8"
]
]
},
{
- "id": "183652da.4b65ed",
+ "id": "4ffa9d5c.867604",
"type": "block",
"name": "block : atomic",
"xml": "<block atomic='true'>",
"atomic": "true",
"comments": "",
"outputs": 1,
- "x": 2860.26708984375,
- "y": 148,
- "z": "4d7c5b65.634a04",
+ "x": 2830.6003952026367,
+ "y": 153.00000381469727,
+ "z": "b04c02f8.7bb8d",
"wires": [
[
- "a29b2a1e.131ca8",
- "38c0245d.21204c"
+ "2dba44bf.fbf71c",
+ "83cd3327.c2c2a"
]
]
},
{
- "id": "b477f524.5c3698",
+ "id": "3dd43848.ecf5f8",
"type": "record",
"name": "record",
"xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.FileRecorder\">\n<parameter name=\"file\" value=\"/opt/opendaylight/current/data/log/closedLoop.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"policy type already exists \"/>\n<parameter name=\"field2\" value=\"SUCCESSFULL\"/>",
"comments": "",
"outputs": 1,
- "x": 3047.266845703125,
- "y": 96,
- "z": "4d7c5b65.634a04",
+ "x": 3017.6001510620117,
+ "y": 101.00000381469727,
+ "z": "b04c02f8.7bb8d",
"wires": [
[]
]
},
{
- "id": "a29b2a1e.131ca8",
+ "id": "2dba44bf.fbf71c",
"type": "execute",
"name": "create policytype",
"xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"templateFileName\" value=\"`$prop.restapi.templateDir + '/A1policytype.json'`\" />\n<parameter name=\"restapiUrl\" value=\"https://10.31.4.11:30226/events/A1-P\"/>\n<parameter name='format' value='json' />\n<parameter name='httpMethod' value='POST' />\n<parameter name='contentType' value='application/json' />\n<parameter name='responsePrefix' value='dmaap' />",
"comments": "",
"outputs": 1,
- "x": 3087.26708984375,
- "y": 193,
- "z": "4d7c5b65.634a04",
+ "x": 3057.6003952026367,
+ "y": 198.00000381469727,
+ "z": "b04c02f8.7bb8d",
"wires": [
[
- "ca1434a0.d4db48"
+ "107cb97d.06b737"
]
]
},
{
- "id": "38c0245d.21204c",
+ "id": "83cd3327.c2c2a",
"type": "record",
"name": "record",
"xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.FileRecorder\">\n<parameter name=\"file\" value=\"/opt/opendaylight/current/data/log/closedLoop.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"creating new policy \"/>\n<parameter name=\"field2\" value=\"SUCCESSFULL\"/>",
"comments": "",
"outputs": 1,
- "x": 3052.067138671875,
- "y": 147,
- "z": "4d7c5b65.634a04",
+ "x": 3022.4004440307617,
+ "y": 152.00000381469727,
+ "z": "b04c02f8.7bb8d",
"wires": [
[]
]
},
{
- "id": "ca1434a0.d4db48",
+ "id": "107cb97d.06b737",
"type": "success",
"name": "success",
"xml": "<outcome value='success'>\n",
"comments": "",
"outputs": 1,
- "x": 3273.07763671875,
- "y": 192.20010375976562,
- "z": "4d7c5b65.634a04",
+ "x": 3243.4109420776367,
+ "y": 197.2001075744629,
+ "z": "b04c02f8.7bb8d",
"wires": [
[
- "5b25ef14.6ec01"
+ "fc104daf.4d845"
]
]
},
{
- "id": "18d541d4.e97b9e",
+ "id": "3bc82b51.b80974",
"type": "record",
"name": "record",
"xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.FileRecorder\">\n<parameter name=\"file\" value=\"/opt/opendaylight/current/data/log/closedLoop.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"Create policytype \"/>\n<parameter name=\"field2\" value=\"Succesfull\"/>",
"comments": "",
"outputs": 1,
- "x": 3623.666748046875,
- "y": 191,
- "z": "4d7c5b65.634a04",
+ "x": 3594.0000534057617,
+ "y": 196.00000381469727,
+ "z": "b04c02f8.7bb8d",
"wires": [
[]
]
},
{
- "id": "5b25ef14.6ec01",
+ "id": "fc104daf.4d845",
"type": "block",
"name": "block : atomic",
"xml": "<block atomic='true'>",
"atomic": "true",
"comments": "",
"outputs": 1,
- "x": 3434.666748046875,
- "y": 191,
- "z": "4d7c5b65.634a04",
+ "x": 3405.0000534057617,
+ "y": 196.00000381469727,
+ "z": "b04c02f8.7bb8d",
"wires": [
[
- "18d541d4.e97b9e"
+ "3bc82b51.b80974"
]
]
},
{
- "id": "b608e3ec.3ad0a",
+ "id": "5ccae536.c8f54c",
"type": "execute",
"name": "create policyinstance ",
"xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"templateFileName\" value=\"`$prop.restapi.templateDir + '/A1policyinstance.json'`\" />\n<parameter name=\"restapiUrl\" value=\"https://10.31.4.11:30226/events/A1-P\"/>\n<parameter name='format' value='json' />\n<parameter name='httpMethod' value='POST' />\n<parameter name='contentType' value='application/json' />\n<parameter name='responsePrefix' value='dmaap-res' />",
"comments": "",
"outputs": 1,
- "x": 2412.86669921875,
- "y": 210,
- "z": "4d7c5b65.634a04",
+ "x": 2383.2000045776367,
+ "y": 215.00000381469727,
+ "z": "b04c02f8.7bb8d",
"wires": [
[
- "62b5f7bc.ce57e8"
+ "e3715b91.ced348"
]
]
},
{
- "id": "7378693d.36ae88",
+ "id": "c0b8b6c1.03e388",
"type": "record",
"name": "record",
"xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.FileRecorder\">\n<parameter name=\"file\" value=\"/opt/opendaylight/current/data/log/closedLoop.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"Create policyinstance \"/>\n<parameter name=\"field2\" value=\"Succesfull\"/>",
"comments": "",
"outputs": 1,
- "x": 3069.2666015625,
- "y": 253,
- "z": "4d7c5b65.634a04",
+ "x": 3039.5999069213867,
+ "y": 258.00000381469727,
+ "z": "b04c02f8.7bb8d",
"wires": [
[]
]
},
{
- "id": "cfd54615.7b8778",
+ "id": "eb10daee.da7d48",
"type": "block",
"name": "block : atomic",
"xml": "<block atomic='true'>",
"atomic": "true",
"comments": "",
"outputs": 1,
- "x": 2871.266357421875,
- "y": 211,
- "z": "4d7c5b65.634a04",
+ "x": 2841.5996627807617,
+ "y": 216.00000381469727,
+ "z": "b04c02f8.7bb8d",
"wires": [
[
- "7378693d.36ae88"
+ "c0b8b6c1.03e388"
]
]
},
{
- "id": "62b5f7bc.ce57e8",
+ "id": "e3715b91.ced348",
"type": "success",
"name": "success",
"xml": "<outcome value='success'>\n",
"comments": "",
"outputs": 1,
- "x": 2664.26611328125,
- "y": 211.199951171875,
- "z": "4d7c5b65.634a04",
+ "x": 2634.5994186401367,
+ "y": 216.19995498657227,
+ "z": "b04c02f8.7bb8d",
"wires": [
[
- "cfd54615.7b8778"
+ "eb10daee.da7d48"
]
]
},
{
- "id": "29f7310a.05b4de",
+ "id": "47cd16a0.115ab8",
"type": "set",
"name": "set Temp Variables",
"xml": "<set>\n<parameter name='tmp.policytype.url' value='`$prop.a1.policytype.url.nearrtric11`'/>\n<parameter name=\"tmp.policyinstance.url\" value=\"`$prop.a1.policyinstance.url.nearrtric11`\"/>\n",
"comments": "",
- "x": 1774.4666748046875,
- "y": 32.999996185302734,
- "z": "4d7c5b65.634a04",
+ "x": 1744.7999801635742,
+ "y": 38,
+ "z": "b04c02f8.7bb8d",
"wires": []
},
{
- "id": "6a8e5244.2ed45c",
+ "id": "938f5c6e.d2f6f",
"type": "set",
"name": "set Temp Variables",
"xml": "<set>\n<parameter name='tmp.policytype.url' value='`$prop.a1.policytype.url.nearrtric22`'/>\n<parameter name=\"tmp.policyinstance.url\" value=\"`$prop.a1.policyinstance.url.nearrtric22`\"/>\n",
"comments": "",
- "x": 1763.4666748046875,
- "y": 144,
- "z": "4d7c5b65.634a04",
+ "x": 1733.7999801635742,
+ "y": 149.00000381469727,
+ "z": "b04c02f8.7bb8d",
"wires": []
},
{
- "id": "e77514ee.b9e588",
+ "id": "92e3668d.afa988",
"type": "comment",
"name": "A1-adaptor simulators",
"info": "Currently have configured to support 2 near-rt-ric simulators.\nNear-rt-ric simulators has to be run separately and corresponding ip can be configured in the properties file",
"comments": "",
- "x": 804.6666564941406,
- "y": 35.99999713897705,
- "z": "4d7c5b65.634a04",
+ "x": 774.9999618530273,
+ "y": 41.000000953674316,
+ "z": "b04c02f8.7bb8d",
"wires": []
},
{
- "id": "fdccd5c2.f62b28",
+ "id": "ca3a4f96.e2b17",
"type": "execute",
"name": "getAnchors URL",
"xml": "<set>\n\t<parameter name='tmp.getAnchors.URL' value=\"`$prop.restapi.cps.anchors.endpoint`\"/>\n\t",
"comments": "",
"outputs": 1,
- "x": 1462.3333740234375,
- "y": 787.3333778381348,
- "z": "4d7c5b65.634a04",
+ "x": 1432.6666793823242,
+ "y": 792.333381652832,
+ "z": "b04c02f8.7bb8d",
"wires": [
[]
]
},
{
- "id": "e432dc1.4df992",
+ "id": "7059ee51.917c3",
"type": "record",
"name": "record",
"xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.FileRecorder\">\n<parameter name=\"file\" value=\"/opt/opendaylight/current/data/log/closedLoop.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"URL to fetch the anchors\"/>\n<parameter name=\"field2\" value=\"`$tmp.getAnchors.URL`\"/>",
"comments": "",
"outputs": 1,
- "x": 1430.5833740234375,
- "y": 830.0833787918091,
- "z": "4d7c5b65.634a04",
+ "x": 1400.9166793823242,
+ "y": 835.0833826065063,
+ "z": "b04c02f8.7bb8d",
"wires": [
[]
]
},
{
- "id": "2376f7a2.cf75c8",
+ "id": "1b106543.cc22eb",
"type": "execute",
"name": "Get list of anchors from CPS",
"xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"restapiUrl\" value=\"`$tmp.getAnchors.URL`\"/>\n<parameter name=\"httpMethod\" value=\"GET\"/>\n<parameter name=\"restapiUser\" value=\"cpsuser\" />\n<parameter name=\"restapiPassword\" value=\"cpsr0cks!\"/>\n<parameter name=\"responsePrefix\" value=\"get-anchors-cps-response\"/>\n<parameter name='contentType' value='application/json' /> \n<parameter name='format' value='json' />\n<parameter name='accept' value='application/json' />\n<parameter name=\"convertResponse\" value=\"true\"/>",
"comments": "",
"outputs": 1,
- "x": 1498.3889541625977,
- "y": 874.2499656677246,
- "z": "4d7c5b65.634a04",
+ "x": 1468.7222595214844,
+ "y": 879.2499694824219,
+ "z": "b04c02f8.7bb8d",
"wires": [
[
- "e2c43f8b.794dd",
- "b0c9797.521a888"
+ "45962f15.30048",
+ "8a66a7c1.0895d8"
]
]
},
{
- "id": "5c0646e3.0b0dd8",
+ "id": "60d6cdb.8397634",
"type": "execute",
"name": "set anchors size",
"xml": "<set>\n\t<parameter name='tmp.anchors.length' value=\"`$get-anchors-cps-response._length`\"/>\n\t",
"comments": "",
"outputs": 1,
- "x": 1457.737995147705,
- "y": 921.1542634963989,
- "z": "4d7c5b65.634a04",
+ "x": 1428.0713005065918,
+ "y": 926.1542673110962,
+ "z": "b04c02f8.7bb8d",
"wires": [
[]
]
},
{
- "id": "c6230172.e0fc3",
+ "id": "57216495.21a59c",
"type": "execute",
"name": "initialize nearRTRIC size",
"xml": "<set>\n\t<parameter name='tmp.RIC.length' value=\"0\"/>\n\t",
"comments": "",
"outputs": 1,
- "x": 1481.1854248046875,
- "y": 970.8210124969482,
- "z": "4d7c5b65.634a04",
+ "x": 1451.5187301635742,
+ "y": 975.8210163116455,
+ "z": "b04c02f8.7bb8d",
"wires": [
[]
]
},
{
- "id": "ec44d6b8.c095e8",
+ "id": "2fe5cefe.63f692",
"type": "for",
"name": "For anchorsList",
"xml": "<for index='anc' start='0' end='`$tmp.anchors.length`'>",
"comments": "",
"outputs": 1,
- "x": 1453.1852645874023,
- "y": 1015.8611345291138,
- "z": "4d7c5b65.634a04",
+ "x": 1423.518569946289,
+ "y": 1020.861138343811,
+ "z": "b04c02f8.7bb8d",
"wires": [
[
- "540f1da.0b193e4"
+ "932b16ba.24c7e8"
]
]
},
{
- "id": "2c66b2a5.586b9e",
+ "id": "45ca227a.d79ecc",
"type": "for",
"name": "For anchorsList",
"xml": "<for index='anc' start='0' end='`$tmp.anchors.length`'>",
"comments": "",
"outputs": 1,
- "x": 1453.2012100219727,
- "y": 1063.179027557373,
- "z": "4d7c5b65.634a04",
+ "x": 1423.5345153808594,
+ "y": 1068.1790313720703,
+ "z": "b04c02f8.7bb8d",
"wires": [
[
- "11aaa3ed.4a924c"
+ "4de63137.68e19"
]
]
},
{
- "id": "b0c9797.521a888",
+ "id": "8a66a7c1.0895d8",
"type": "failure",
"name": "failure",
"xml": "<outcome value='failure'>\n",
"comments": "",
"outputs": 1,
- "x": 1753.6947021484375,
- "y": 833.8888549804688,
- "z": "4d7c5b65.634a04",
+ "x": 1724.0280075073242,
+ "y": 838.888858795166,
+ "z": "b04c02f8.7bb8d",
"wires": [
[
- "3b9f2e5f.af4d02"
+ "d9fa2a0e.94cbb8"
]
]
},
{
- "id": "e2c43f8b.794dd",
+ "id": "45962f15.30048",
"type": "success",
"name": "success",
"xml": "<outcome value='success'>\n",
"comments": "",
"outputs": 1,
- "x": 1754.6947021484375,
- "y": 873.0833129882812,
- "z": "4d7c5b65.634a04",
+ "x": 1725.0280075073242,
+ "y": 878.0833168029785,
+ "z": "b04c02f8.7bb8d",
"wires": [
[
- "7cc3fcae.700414"
+ "2fae1578.34daca"
]
]
},
{
- "id": "540f1da.0b193e4",
+ "id": "932b16ba.24c7e8",
"type": "block",
"name": "block : atomic",
"xml": "<block atomic='true'>",
"atomic": "true",
"comments": "",
"outputs": 1,
- "x": 1678.574104309082,
- "y": 1016.3888845443726,
- "z": "4d7c5b65.634a04",
+ "x": 1648.9074096679688,
+ "y": 1021.3888883590698,
+ "z": "b04c02f8.7bb8d",
"wires": [
[
- "b2a6435.8b0e5c",
- "6da28c56.8f5794"
+ "cabb2863.4232c8",
+ "d4933645.ba50f8"
]
]
},
{
- "id": "11aaa3ed.4a924c",
+ "id": "4de63137.68e19",
"type": "block",
"name": "block : atomic",
"xml": "<block atomic='true'>",
"atomic": "true",
"comments": "",
"outputs": 1,
- "x": 1673.889045715332,
- "y": 1066.3332452774048,
- "z": "4d7c5b65.634a04",
+ "x": 1644.2223510742188,
+ "y": 1071.333249092102,
+ "z": "b04c02f8.7bb8d",
"wires": [
[
- "f7ee7f22.d5598",
- "a941c0ab.620a"
+ "6f12b0e3.06311",
+ "cbb818dc.57ed08"
]
]
},
{
- "id": "3b9f2e5f.af4d02",
+ "id": "d9fa2a0e.94cbb8",
"type": "block",
"name": "block",
"xml": "<block>",
"atomic": "false",
"comments": "",
"outputs": 1,
- "x": 1909.3890380859375,
- "y": 833.5001831054688,
- "z": "4d7c5b65.634a04",
+ "x": 1879.7223434448242,
+ "y": 838.500186920166,
+ "z": "b04c02f8.7bb8d",
"wires": [
[
- "563dd411.ce4bec",
- "87f2b4f1.95cd08"
+ "8526dc43.93255",
+ "160970b2.191d0f"
]
]
},
{
- "id": "7cc3fcae.700414",
+ "id": "2fae1578.34daca",
"type": "block",
"name": "block : atomic",
"xml": "<block atomic='true'>",
"atomic": "true",
"comments": "",
"outputs": 1,
- "x": 1929.138916015625,
- "y": 873.7499389648438,
- "z": "4d7c5b65.634a04",
+ "x": 1899.4722213745117,
+ "y": 878.749942779541,
+ "z": "b04c02f8.7bb8d",
"wires": [
[
- "c7360c2e.2ad2",
- "ddff613a.99f4"
+ "8d96a63d.e4f008",
+ "58098787.d43038"
]
]
},
{
- "id": "6da28c56.8f5794",
+ "id": "d4933645.ba50f8",
"type": "execute",
"name": "read schemaSet",
"xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'>\n\t<parameter name='outputPath' value='tmp.schemaset.name' />\n\t<parameter name='source' value=\"`'get-anchors-cps-response.['+$anc+'].schemaSetName'`\" />\n\n",
"comments": "",
"outputs": 1,
- "x": 1902.2378463745117,
- "y": 963.2931804656982,
- "z": "4d7c5b65.634a04",
+ "x": 1872.5711517333984,
+ "y": 968.2931842803955,
+ "z": "b04c02f8.7bb8d",
"wires": [
[]
]
},
{
- "id": "b2a6435.8b0e5c",
+ "id": "cabb2863.4232c8",
"type": "switchNode",
"name": "check schemaSetName",
"xml": "<switch test='`$tmp.schemaset.name`'>\n",
"comments": "",
"outputs": 1,
- "x": 1925.7223815917969,
- "y": 1015.3888854980469,
- "z": "4d7c5b65.634a04",
+ "x": 1896.0556869506836,
+ "y": 1020.3888893127441,
+ "z": "b04c02f8.7bb8d",
"wires": [
[
- "7d5e20cf.b122f"
+ "be4abcd7.eda4a"
]
]
},
{
- "id": "f7ee7f22.d5598",
+ "id": "6f12b0e3.06311",
"type": "execute",
"name": "read schemaSet",
"xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'>\n\t<parameter name='outputPath' value='tmp.schemaset.name' />\n\t<parameter name='source' value=\"`'get-anchors-cps-response.['+$anc+'].schemaSetName'`\" />\n\n",
"comments": "",
"outputs": 1,
- "x": 1905.5495338439941,
- "y": 1070.5123624801636,
- "z": "4d7c5b65.634a04",
+ "x": 1875.8828392028809,
+ "y": 1075.5123662948608,
+ "z": "b04c02f8.7bb8d",
"wires": [
[]
]
},
{
- "id": "a941c0ab.620a",
+ "id": "cbb818dc.57ed08",
"type": "switchNode",
"name": "check schemaSetName",
"xml": "<switch test='`$tmp.schemaset.name`'>\n",
"comments": "",
"outputs": 1,
- "x": 1926.5215377807617,
- "y": 1143.7623653411865,
- "z": "4d7c5b65.634a04",
+ "x": 1896.8548431396484,
+ "y": 1148.7623691558838,
+ "z": "b04c02f8.7bb8d",
"wires": [
[
- "beea823c.d83c8"
+ "773495ed.4f883c"
]
]
},
{
- "id": "563dd411.ce4bec",
+ "id": "8526dc43.93255",
"type": "set",
"name": "set",
"xml": "<set>\n<parameter name='error-code' value='500'/>\n<parameter name='error-message' value='Error Getting Info from CPS. Aborting RPC executiopn'/>",
"comments": "",
- "x": 2125.1665649414062,
- "y": 796.3332138061523,
- "z": "4d7c5b65.634a04",
+ "x": 2095.499870300293,
+ "y": 801.3332176208496,
+ "z": "b04c02f8.7bb8d",
"wires": []
},
{
- "id": "87f2b4f1.95cd08",
+ "id": "160970b2.191d0f",
"type": "record",
"name": "record",
"xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.FileRecorder\">\n<parameter name=\"file\" value=\"/opt/opendaylight/current/data/log/closedLoop.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"Failed to fetch anchors from CPS\"/>",
"comments": "",
"outputs": 1,
- "x": 2123.972412109375,
- "y": 832.8610229492188,
- "z": "4d7c5b65.634a04",
+ "x": 2094.3057174682617,
+ "y": 837.861026763916,
+ "z": "b04c02f8.7bb8d",
"wires": [
[]
]
},
{
- "id": "c7360c2e.2ad2",
+ "id": "8d96a63d.e4f008",
"type": "record",
"name": "record",
"xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.FileRecorder\">\n<parameter name=\"file\" value=\"/opt/opendaylight/current/data/log/closedLoop.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"Successfully Obtained anchors from CPS\"/>\n<parameter name=\"field2\" value=\"`$get-anchors-cps-response._length`\"/>",
"comments": "",
"outputs": 1,
- "x": 2127.888427734375,
- "y": 873.9998779296875,
- "z": "4d7c5b65.634a04",
+ "x": 2098.2217330932617,
+ "y": 878.9998817443848,
+ "z": "b04c02f8.7bb8d",
"wires": [
[]
]
},
{
- "id": "ddff613a.99f4",
+ "id": "58098787.d43038",
"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-closedLoop-context.log' />",
"comments": "",
"outputs": 1,
- "x": 2144.4166259765625,
- "y": 916.7498779296875,
- "z": "4d7c5b65.634a04",
+ "x": 2114.749931335449,
+ "y": 921.7498817443848,
+ "z": "b04c02f8.7bb8d",
"wires": [
[]
]
},
{
- "id": "7d5e20cf.b122f",
+ "id": "be4abcd7.eda4a",
"type": "outcome",
"name": "if ran-inventory",
"xml": "<outcome value='ran-inventory'>\n",
"comments": "",
"outputs": 1,
- "x": 2142.0278930664062,
- "y": 1015.8611354827881,
- "z": "4d7c5b65.634a04",
+ "x": 2112.361198425293,
+ "y": 1020.8611392974854,
+ "z": "b04c02f8.7bb8d",
"wires": [
[
- "29a681d4.fadf1e"
+ "c9ca36e0.755eb8"
]
]
},
{
- "id": "beea823c.d83c8",
+ "id": "773495ed.4f883c",
"type": "outcome",
"name": "if ran-inventory",
"xml": "<outcome value='ran-inventory'>\n",
"comments": "",
"outputs": 1,
- "x": 2149.3269653320312,
- "y": 1144.234531402588,
- "z": "4d7c5b65.634a04",
+ "x": 2119.660270690918,
+ "y": 1149.2345352172852,
+ "z": "b04c02f8.7bb8d",
"wires": [
[
- "9d9e9816.080208"
+ "c75c60f3.7ddd"
]
]
},
{
- "id": "29a681d4.fadf1e",
+ "id": "c9ca36e0.755eb8",
"type": "block",
"name": "block : atomic",
"xml": "<block atomic='true'>",
"atomic": "true",
"comments": "",
"outputs": 1,
- "x": 2327.3301391601562,
- "y": 1016.1943836212158,
- "z": "4d7c5b65.634a04",
+ "x": 2297.663444519043,
+ "y": 1021.1943874359131,
+ "z": "b04c02f8.7bb8d",
"wires": [
[
- "f3425f7f.85797",
- "d160bcca.e09da"
+ "bd3325e.a04c5d8",
+ "e2594fd9.bbe41"
]
]
},
{
- "id": "9d9e9816.080208",
+ "id": "c75c60f3.7ddd",
"type": "block",
"name": "block : atomic",
"xml": "<block atomic='true'>",
"atomic": "true",
"comments": "",
"outputs": 1,
- "x": 2350.462715148926,
- "y": 1144.456699371338,
- "z": "4d7c5b65.634a04",
+ "x": 2320.7960205078125,
+ "y": 1149.4567031860352,
+ "z": "b04c02f8.7bb8d",
"wires": [
[
- "f8577db4.f2c6d",
- "eeb6c5cb.590e98"
+ "ab4a2e85.d5055",
+ "d9634ef4.1aa14"
]
]
},
{
- "id": "d160bcca.e09da",
+ "id": "e2594fd9.bbe41",
"type": "execute",
"name": "set nearRTRIC size",
"xml": "<set>\n\t<parameter name='tmp.RIC.length' value=\"`$tmp.RIC.length+1`\"/>\n\t",
"comments": "",
"outputs": 1,
- "x": 2563.301338195801,
- "y": 962.6789206266403,
- "z": "4d7c5b65.634a04",
+ "x": 2533.6346435546875,
+ "y": 967.6789244413376,
+ "z": "b04c02f8.7bb8d",
"wires": [
[]
]
},
{
- "id": "f3425f7f.85797",
+ "id": "bd3325e.a04c5d8",
"type": "record",
"name": "record",
"xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.FileRecorder\">\n<parameter name=\"file\" value=\"/opt/opendaylight/current/data/log/closedLoop.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"Applicable RIC length\"/>\n<parameter name=\"field2\" value=\"`$tmp.RIC.length`\"/>",
"comments": "",
"outputs": 1,
- "x": 2520.243724822998,
- "y": 1014.9998874664307,
- "z": "4d7c5b65.634a04",
+ "x": 2490.5770301818848,
+ "y": 1019.9998912811279,
+ "z": "b04c02f8.7bb8d",
"wires": [
[]
]
},
{
- "id": "f8577db4.f2c6d",
+ "id": "ab4a2e85.d5055",
"type": "execute",
"name": "read anchorName",
"xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'>\n\t<parameter name='outputPath' value='tmp.anchor.name' />\n\t<parameter name='source' value=\"`'get-anchors-cps-response.['+$anc+'].name'`\" />",
"comments": "",
"outputs": 1,
- "x": 2578.444496154785,
- "y": 1094.1110763549805,
- "z": "4d7c5b65.634a04",
+ "x": 2548.777801513672,
+ "y": 1099.1110801696777,
+ "z": "b04c02f8.7bb8d",
"wires": [
[]
]
},
{
- "id": "eeb6c5cb.590e98",
+ "id": "d9634ef4.1aa14",
"type": "block",
"name": "block : atomic",
"xml": "<block atomic='true'>",
"atomic": "true",
"comments": "",
"outputs": 1,
- "x": 2591.3894805908203,
- "y": 1142.8332448005676,
- "z": "4d7c5b65.634a04",
+ "x": 2561.722785949707,
+ "y": 1147.833248615265,
+ "z": "b04c02f8.7bb8d",
"wires": [
[
- "bd769a90.99e7c8",
- "75163575.78825c",
- "f5f59c7b.34b9c",
- "705651e1.fb1af",
- "4a4a3fa0.89175",
- "5bfa480.41ee8b8",
- "8bbc2989.076ef8",
- "a048785c.f71c98",
- "e652ad9b.67808",
- "a000499.2be4cb8",
- "874b4b23.cea4d8",
- "72160438.6565fc"
+ "e9a31ae.98576e8",
+ "859c60d3.e5f3d",
+ "18335f27.526491",
+ "986b500b.efd7",
+ "82068605.3b8bb8",
+ "db9ae584.12e248",
+ "d773ae89.73757",
+ "d70f793c.b395e8"
]
]
},
{
- "id": "874b4b23.cea4d8",
- "type": "execute",
- "name": "read sliceProfileId from input",
- "xml": "<set>\n<parameter name='tmp.sliceprofileid' value=\"`$payloadJson.input.sliceProfile.sliceProfileId`\" />",
+ "id": "9bb1bf49.eea99",
+ "type": "switchNode",
+ "name": "ransim mounted",
+ "xml": "<switch test='`$prop.ransim-mounted`'>\n",
"comments": "",
"outputs": 1,
- "x": 2941.999813079834,
- "y": 916.9998564720154,
- "z": "4d7c5b65.634a04",
+ "x": 1418.3333053588867,
+ "y": 1304.0000038146973,
+ "z": "b04c02f8.7bb8d",
"wires": [
- []
+ [
+ "796353cf.f5955c",
+ "e3ee5a02.95a188"
+ ]
]
},
{
- "id": "72160438.6565fc",
- "type": "record",
- "name": "record",
- "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.FileRecorder\">\n<parameter name=\"file\" value=\"/opt/opendaylight/current/data/log/closedLoop.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"sliceprofileid from input\"/>\n<parameter name=\"field2\" value=\"`$tmp.sliceprofileid`\"/>\n",
+ "id": "796353cf.f5955c",
+ "type": "outcome",
+ "name": "Not Mounted",
+ "xml": "<outcome value='false'>\n",
"comments": "",
"outputs": 1,
- "x": 2869.999813079834,
- "y": 953.9998564720154,
- "z": "4d7c5b65.634a04",
+ "x": 1632.333152770996,
+ "y": 1304.9997596740723,
+ "z": "b04c02f8.7bb8d",
"wires": [
- []
+ [
+ "47c052f2.ce5dfc"
+ ]
]
},
{
- "id": "bd769a90.99e7c8",
- "type": "execute",
- "name": "generate plmnid URL cps",
- "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$prop.restapi.cps.tbdmt.execute.endpoint`\"/>\n <parameter name=\"outputPath\" value=\"tmp.cps.getPLMNID.url\"/>\n <parameter name=\"target\" value=\"{schemaSet}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.schemaset.name`\"/>",
+ "id": "e3ee5a02.95a188",
+ "type": "outcome",
+ "name": "Mounted",
+ "xml": "<outcome value='true'>\n",
"comments": "",
"outputs": 1,
- "x": 2923.639030456543,
- "y": 986.9832997322083,
- "z": "4d7c5b65.634a04",
+ "x": 1624.333351135254,
+ "y": 1346.999843597412,
+ "z": "b04c02f8.7bb8d",
"wires": [
- []
+ [
+ "dd25188f.739358"
+ ]
]
},
{
- "id": "75163575.78825c",
- "type": "execute",
- "name": "prepare tbdmt template",
- "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$tmp.cps.getPLMNID.url`\"/>\n <parameter name=\"outputPath\" value=\"tmp.cps.getPLMNID.url\"/>\n <parameter name=\"target\" value=\"{templateId}\"/>\n <parameter name=\"replacement\" value=\"`$prop.tbdmt.template.get-plmnid-mcc`\"/>",
+ "id": "dd25188f.739358",
+ "type": "block",
+ "name": "ransim URL",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
"comments": "",
"outputs": 1,
- "x": 2920.639030456543,
- "y": 1025.5832362174988,
- "z": "4d7c5b65.634a04",
+ "x": 1798.3232688903809,
+ "y": 1346.999843597412,
+ "z": "b04c02f8.7bb8d",
"wires": [
- []
+ [
+ "ca92e7f3.c6d7e8",
+ "a94e902e.e313d"
+ ]
]
},
{
- "id": "f5f59c7b.34b9c",
- "type": "record",
- "name": "record TBDMT RestAPI params",
- "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.FileRecorder\">\n<parameter name=\"file\" value=\"/opt/opendaylight/current/data/log/closedLoop.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"URL for CPS TDBMT to Get plmnid from sliceprofile\"/>\n<parameter name='field2' value=\"`$tmp.cps.getPLMNID.url`\" />",
+ "id": "47c052f2.ce5dfc",
+ "type": "block",
+ "name": "URL",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 1794.5348167419434,
+ "y": 1305.5989627838135,
+ "z": "b04c02f8.7bb8d",
+ "wires": [
+ [
+ "749a19dd.89a368"
+ ]
+ ]
+ },
+ {
+ "id": "749a19dd.89a368",
+ "type": "execute",
+ "name": "generate addnSSAIEntry.ToNearRTRIC URL",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$prop.restapi.addnSSAIEntry.ToNearRTRIC`\"/>\n <parameter name=\"outputPath\" value=\"tmp.restapi.addnSSAIEntry.ToNearRTRIC.url\"/>\n <parameter name=\"target\" value=\"{idNearRTRIC}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.nearRTRICId`\"/>",
"comments": "",
"outputs": 1,
- "x": 2945.638999938965,
- "y": 1068.7833499908447,
- "z": "4d7c5b65.634a04",
+ "x": 2091.333324432373,
+ "y": 1306.0001678466797,
+ "z": "b04c02f8.7bb8d",
"wires": [
[]
]
},
{
- "id": "705651e1.fb1af",
+ "id": "ca92e7f3.c6d7e8",
"type": "execute",
- "name": "Get pLMNIdmcc from sliceprofileID",
- "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"restapiUrl\" value=\"`$tmp.cps.getPLMNID.url`\"/>\n<parameter name=\"templateFileName\" value=\"`$prop.restapi.templateDir + '/cps-templates/cps-get-plmnid.json'`\" />\n<parameter name=\"httpMethod\" value=\"POST\"/>\n<parameter name=\"responsePrefix\" value=\"getplmnmccid-cps-response\"/>\n<parameter name='contentType' value='application/json' /> \n<parameter name='format' value='json' />\n<parameter name='accept' value='application/json' />\n<parameter name=\"convertResponse\" value=\"true\"/>",
+ "name": "generate addnSSAIEntry.ToNearRTRIC URL",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$prop.restapi.addnSSAIEntry.ToNearRTRIC.ransim-mounted`\"/>\n <parameter name=\"outputPath\" value=\"tmp.restapi.addnSSAIEntry.ToNearRTRIC.url\"/>\n <parameter name=\"target\" value=\"{idNearRTRIC}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.nearRTRICId`\"/>",
"comments": "",
"outputs": 1,
- "x": 2954.6393280029297,
- "y": 1111.7832746505737,
- "z": "4d7c5b65.634a04",
+ "x": 2092.8678283691406,
+ "y": 1347.5992889404297,
+ "z": "b04c02f8.7bb8d",
"wires": [
- [
- "d8528e68.284ff",
- "bcb36ade.065ef8"
- ]
+ []
]
},
{
- "id": "4a4a3fa0.89175",
+ "id": "a94e902e.e313d",
"type": "execute",
- "name": "generate plmnid URL cps",
- "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$prop.restapi.cps.tbdmt.execute.endpoint`\"/>\n <parameter name=\"outputPath\" value=\"tmp.cps.getPLMNMNCID.url\"/>\n <parameter name=\"target\" value=\"{schemaSet}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.schemaset.name`\"/>",
+ "name": "Populate MOUNT NAME",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$tmp.restapi.addnSSAIEntry.ToNearRTRIC.url`\"/>\n <parameter name=\"outputPath\" value=\"tmp.restapi.addnSSAIEntry.ToNearRTRIC.url\"/>\n <parameter name=\"target\" value=\"{mountName}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.nearRTRICId`\"/>",
"comments": "",
"outputs": 1,
- "x": 2917.639015197754,
- "y": 1154.9833045005798,
- "z": "4d7c5b65.634a04",
+ "x": 2033.8681564331055,
+ "y": 1388.5989656448364,
+ "z": "b04c02f8.7bb8d",
"wires": [
[]
]
},
{
- "id": "5bfa480.41ee8b8",
+ "id": "6d06961e.489968",
"type": "execute",
- "name": "prepare tbdmt template",
- "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$tmp.cps.getPLMNMNCID.url`\"/>\n <parameter name=\"outputPath\" value=\"tmp.cps.getPLMNMNCID.url\"/>\n <parameter name=\"target\" value=\"{templateId}\"/>\n <parameter name=\"replacement\" value=\"`$prop.tbdmt.template.get-plmnid-mnc`\"/>",
+ "name": "getAnchors URL",
+ "xml": "<set>\n\t<parameter name='tmp.getAnchors.URL' value=\"`$prop.restapi.cps.anchors.endpoint`\"/>\n\t",
"comments": "",
"outputs": 1,
- "x": 2918.4390258789062,
- "y": 1195.583240032196,
- "z": "4d7c5b65.634a04",
+ "x": 1505.0833435058594,
+ "y": 1589.0000066757202,
+ "z": "b04c02f8.7bb8d",
"wires": [
[]
]
},
{
- "id": "8bbc2989.076ef8",
+ "id": "b31d94ee.f8c428",
"type": "record",
- "name": "record TBDMT RestAPI params",
- "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.FileRecorder\">\n<parameter name=\"file\" value=\"/opt/opendaylight/current/data/log/closedLoop.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"URL for CPS TDBMT to Get plmnid from sliceprofile\"/>\n<parameter name='field2' value=\"`$tmp.cps.getPLMNMNCID.url`\" />",
+ "name": "record",
+ "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.FileRecorder\">\n<parameter name=\"file\" value=\"/opt/opendaylight/current/data/log/closedLoop.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"URL to fetch the anchors\"/>\n<parameter name=\"field2\" value=\"`$tmp.getAnchors.URL`\"/>",
"comments": "",
"outputs": 1,
- "x": 2941.439022064209,
- "y": 1233.7833037376404,
- "z": "4d7c5b65.634a04",
+ "x": 1474.3333435058594,
+ "y": 1633.7500081062317,
+ "z": "b04c02f8.7bb8d",
"wires": [
[]
]
},
{
- "id": "a048785c.f71c98",
+ "id": "47234b33.292a74",
"type": "execute",
- "name": "Get pLMNIdmnc from sliceprofileID",
- "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"restapiUrl\" value=\"`$tmp.cps.getPLMNMNCID.url`\"/>\n<parameter name=\"templateFileName\" value=\"`$prop.restapi.templateDir + '/cps-templates/cps-get-plmnid.json'`\" />\n<parameter name=\"httpMethod\" value=\"POST\"/>\n<parameter name=\"responsePrefix\" value=\"getplmnmncid-cps-response\"/>\n<parameter name='contentType' value='application/json' /> \n<parameter name='format' value='json' />\n<parameter name='accept' value='application/json' />\n<parameter name=\"convertResponse\" value=\"true\"/>",
+ "name": "Get list of anchors from CPS",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"restapiUrl\" value=\"`$tmp.getAnchors.URL`\"/>\n<parameter name=\"httpMethod\" value=\"GET\"/>\n<parameter name=\"restapiUser\" value=\"cpsuser\" />\n<parameter name=\"restapiPassword\" value=\"cpsr0cks!\"/>\n<parameter name=\"responsePrefix\" value=\"get-anchors-cps-response\"/>\n<parameter name='contentType' value='application/json' /> \n<parameter name='format' value='json' />\n<parameter name='accept' value='application/json' />\n<parameter name=\"convertResponse\" value=\"true\"/>",
"comments": "",
"outputs": 1,
- "x": 2949.438804626465,
- "y": 1274.783281326294,
- "z": "4d7c5b65.634a04",
+ "x": 1543.1388473510742,
+ "y": 1677.9166765213013,
+ "z": "b04c02f8.7bb8d",
"wires": [
[
- "c5be1942.f9e138",
- "22fb40b8.c923f"
+ "1f2cd3af.dcf98c",
+ "ab661abe.61bf98"
]
]
},
{
- "id": "e652ad9b.67808",
- "type": "set",
- "name": "set mcc & mnc Variables",
- "xml": "<set>\n<parameter name='tmp.mcc' value='`$tmp.plmn.mcc`'/>\n<parameter name='tmp.mnc' value='`$tmp.plmn.mnc`'/>",
- "comments": "",
- "x": 2916.099937438965,
- "y": 1319.9501123428345,
- "z": "4d7c5b65.634a04",
- "wires": []
- },
- {
- "id": "a000499.2be4cb8",
- "type": "record",
- "name": "record",
- "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.FileRecorder\">\n<parameter name=\"file\" value=\"/opt/opendaylight/current/data/log/closedLoop.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"mcc,mnc values...\"/>\n<parameter name=\"field2\" value=\"`$tmp.mcc`\"/>\n<parameter name=\"field3\" value=\"`$tmp.mnc`\"/>",
+ "id": "e774ae26.aca33",
+ "type": "execute",
+ "name": "set anchors size",
+ "xml": "<set>\n\t<parameter name='tmp.anchors.length' value=\"`$get-anchors-cps-response._length`\"/>\n\t",
"comments": "",
"outputs": 1,
- "x": 2867.9723320007324,
- "y": 1363.7923183441162,
- "z": "4d7c5b65.634a04",
+ "x": 1507.4879684448242,
+ "y": 1803.8209762573242,
+ "z": "b04c02f8.7bb8d",
"wires": [
[]
]
},
{
- "id": "d8528e68.284ff",
- "type": "failure",
- "name": "failure",
- "xml": "<outcome value='failure'>\n",
+ "id": "97544c6e.709e8",
+ "type": "for",
+ "name": "For anchorsList",
+ "xml": "<for index='anc' start='0' end='`$tmp.anchors.length`'>",
"comments": "",
"outputs": 1,
- "x": 3242.4163551330566,
- "y": 1029.69424533844,
- "z": "4d7c5b65.634a04",
+ "x": 1508.9352340698242,
+ "y": 1875.5276851654053,
+ "z": "b04c02f8.7bb8d",
"wires": [
[
- "377995a1.42065a"
+ "ac0cc430.e0a138"
]
]
},
{
- "id": "bcb36ade.065ef8",
- "type": "success",
- "name": "success",
- "xml": "<outcome value='success'>\n",
+ "id": "6334be26.c593f",
+ "type": "for",
+ "name": "For anchorsList",
+ "xml": "<for index='anc' start='0' end='`$tmp.anchors.length`'>",
"comments": "",
"outputs": 1,
- "x": 3247.638359069824,
- "y": 1110.5832443237305,
- "z": "4d7c5b65.634a04",
+ "x": 1505.951026916504,
+ "y": 1926.8457202911377,
+ "z": "b04c02f8.7bb8d",
"wires": [
[
- "f6a6ebc6.51c148"
+ "53d81bc2.9cd3a4"
]
]
},
{
- "id": "c5be1942.f9e138",
+ "id": "ab661abe.61bf98",
"type": "failure",
"name": "failure",
"xml": "<outcome value='failure'>\n",
"comments": "",
"outputs": 1,
- "x": 3246.638359069824,
- "y": 1344.5831680297852,
- "z": "4d7c5b65.634a04",
+ "x": 1760.4443588256836,
+ "y": 1677.5555114746094,
+ "z": "b04c02f8.7bb8d",
"wires": [
[
- "5478652b.fa7ecc"
+ "cc4ba267.71b93"
]
]
},
{
- "id": "22fb40b8.c923f",
+ "id": "1f2cd3af.dcf98c",
"type": "success",
"name": "success",
"xml": "<outcome value='success'>\n",
"comments": "",
"outputs": 1,
- "x": 3246.639335632324,
- "y": 1278.5831680297852,
- "z": "4d7c5b65.634a04",
+ "x": 1756.4445190429688,
+ "y": 1761.749849319458,
+ "z": "b04c02f8.7bb8d",
"wires": [
[
- "1422f96e.e42af7"
+ "ba85d10c.952a5"
]
]
},
{
- "id": "377995a1.42065a",
+ "id": "ac0cc430.e0a138",
"type": "block",
- "name": "block",
- "xml": "<block>",
- "atomic": "false",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
"comments": "",
"outputs": 1,
- "x": 3419.638687133789,
- "y": 1030.5830121040344,
- "z": "4d7c5b65.634a04",
+ "x": 1729.3240776062012,
+ "y": 1876.055516242981,
+ "z": "b04c02f8.7bb8d",
"wires": [
[
- "5b267180.de1b2",
- "8f18659e.f69b78",
- "bc687d8e.5d461",
- "53f6cef7.f7902"
+ "5d76df3c.57899",
+ "10cdde25.56e852"
]
]
},
{
- "id": "f6a6ebc6.51c148",
+ "id": "53d81bc2.9cd3a4",
"type": "block",
"name": "block : atomic",
"xml": "<block atomic='true'>",
"atomic": "true",
"comments": "",
"outputs": 1,
- "x": 3417.527359008789,
- "y": 1109.4719982147217,
- "z": "4d7c5b65.634a04",
+ "x": 1727.6386947631836,
+ "y": 1926.0000171661377,
+ "z": "b04c02f8.7bb8d",
"wires": [
[
- "85dbd4de.56dc68",
- "b0138cc8.abd22"
+ "67cc5255.871eac",
+ "a87ca525.e3ed68"
]
]
},
{
- "id": "5478652b.fa7ecc",
+ "id": "cc4ba267.71b93",
"type": "block",
"name": "block",
"xml": "<block>",
"atomic": "false",
"comments": "",
"outputs": 1,
- "x": 3404.6383628845215,
- "y": 1345.5830764770508,
- "z": "4d7c5b65.634a04",
+ "x": 1911.1388626098633,
+ "y": 1677.166675567627,
+ "z": "b04c02f8.7bb8d",
"wires": [
[
- "74526283.bfee3c",
- "c4866c85.64adf",
- "53f6cef7.f7902"
+ "d53e8295.85ab1",
+ "e99c95e1.e9d698"
]
]
},
{
- "id": "1422f96e.e42af7",
+ "id": "d53e8295.85ab1",
+ "type": "set",
+ "name": "set",
+ "xml": "<set>\n<parameter name='error-code' value='500'/>\n<parameter name='error-message' value='Error Getting Info from CPS. Aborting RPC executiopn'/>",
+ "comments": "",
+ "x": 2070.916374206543,
+ "y": 1676.999846458435,
+ "z": "b04c02f8.7bb8d",
+ "wires": []
+ },
+ {
+ "id": "e99c95e1.e9d698",
+ "type": "record",
+ "name": "record",
+ "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.FileRecorder\">\n<parameter name=\"file\" value=\"/opt/opendaylight/current/data/log/closedLoop.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"Failed to fetch anchors from CPS\"/>",
+ "comments": "",
+ "outputs": 1,
+ "x": 2070.7223587036133,
+ "y": 1717.5276803970337,
+ "z": "b04c02f8.7bb8d",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "ba85d10c.952a5",
"type": "block",
"name": "block : atomic",
"xml": "<block atomic='true'>",
"atomic": "true",
"comments": "",
"outputs": 1,
- "x": 3413.860855102539,
- "y": 1279.3608283996582,
- "z": "4d7c5b65.634a04",
+ "x": 1913.8886947631836,
+ "y": 1762.4166793823242,
+ "z": "b04c02f8.7bb8d",
"wires": [
[
- "3a7ac81f.3363c8",
- "411e5f61.ee056"
+ "d29fe503.3a70a8",
+ "d061e171.2760a"
]
]
},
{
- "id": "8f18659e.f69b78",
+ "id": "d29fe503.3a70a8",
"type": "record",
"name": "record",
- "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.FileRecorder\">\n<parameter name=\"file\" value=\"/opt/opendaylight/current/data/log/closedLoop.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"UNSuccessfully Obtained MCC info from CPS\"/>\n<parameter name=\"field2\" value=\"`$cps-get-plmnid.json`\"/>\n",
+ "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.FileRecorder\">\n<parameter name=\"file\" value=\"/opt/opendaylight/current/data/log/closedLoop.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"Successfully Obtained anchors from CPS\"/>\n<parameter name=\"field2\" value=\"`$get-anchors-cps-response._length`\"/>",
"comments": "",
"outputs": 1,
- "x": 3603.3328704833984,
- "y": 950.6667141914368,
- "z": "4d7c5b65.634a04",
+ "x": 2075.638542175293,
+ "y": 1762.6666793823242,
+ "z": "b04c02f8.7bb8d",
"wires": [
[]
]
},
{
- "id": "5b267180.de1b2",
- "type": "set",
- "name": "set",
- "xml": "<set>\n<parameter name='error-code' value='500'/>\n<parameter name='error-message' value='Error Getting Info from CPS. Aborting RPC executiopn'/>",
- "comments": "",
- "x": 3603.1941986083984,
- "y": 901.4720511436462,
- "z": "4d7c5b65.634a04",
- "wires": []
- },
- {
- "id": "b0138cc8.abd22",
+ "id": "d061e171.2760a",
"type": "execute",
- "name": "read nearRTRICId-PLMN",
- "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'>\n\t<parameter name='outputPath' value='tmp.plmn.mcc' />\n\t<parameter name='source' value=\"`'getplmnmccid-cps-response.[0]'`\" />\n",
+ "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-closedLoop-context.log' />",
"comments": "",
"outputs": 1,
- "x": 3661.349956512451,
- "y": 1052.4496097564697,
- "z": "4d7c5b65.634a04",
+ "x": 2092.1670265197754,
+ "y": 1800.4166803359985,
+ "z": "b04c02f8.7bb8d",
"wires": [
[]
]
},
{
- "id": "85dbd4de.56dc68",
- "type": "record",
- "name": "record",
- "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.FileRecorder\">\n<parameter name=\"file\" value=\"/opt/opendaylight/current/data/log/closedLoop.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"Successfully Obtained MCC info from CPS\"/>\n<parameter name=\"field2\" value=\"`$getplmnmccid-cps-response.httpResponse`\"/>",
+ "id": "10cdde25.56e852",
+ "type": "execute",
+ "name": "read schemaSet",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'>\n\t<parameter name='outputPath' value='tmp.schemaset.name' />\n\t<parameter name='source' value=\"`'get-anchors-cps-response.['+$anc+'].schemaSetName'`\" />\n\n",
"comments": "",
"outputs": 1,
- "x": 3614.1390228271484,
- "y": 1111.8330745697021,
- "z": "4d7c5b65.634a04",
+ "x": 1925.9876556396484,
+ "y": 1832.9596493244171,
+ "z": "b04c02f8.7bb8d",
"wires": [
[]
]
},
{
- "id": "74526283.bfee3c",
- "type": "set",
- "name": "set",
- "xml": "<set>\n<parameter name='error-code' value='500'/>\n<parameter name='error-message' value='Error Getting Info from CPS. Aborting RPC executiopn'/>",
- "comments": "",
- "x": 3601.6380462646484,
- "y": 1337.5831699371338,
- "z": "4d7c5b65.634a04",
- "wires": []
- },
- {
- "id": "411e5f61.ee056",
- "type": "execute",
- "name": "read nearRTRICId-PLMN",
- "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'>\n\t<parameter name='outputPath' value='tmp.plmn.mnc' />\n\t<parameter name='source' value=\"`'getplmnmncid-cps-response.[0]'`\" />\n",
+ "id": "5d76df3c.57899",
+ "type": "switchNode",
+ "name": "check schemaSetName",
+ "xml": "<switch test='`$tmp.schemaset.name`'>\n",
"comments": "",
"outputs": 1,
- "x": 3654.4886322021484,
- "y": 1228.6331329345703,
- "z": "4d7c5b65.634a04",
+ "x": 1951.4723587036133,
+ "y": 1876.0555171966553,
+ "z": "b04c02f8.7bb8d",
"wires": [
- []
+ [
+ "482358eb.b0ae38"
+ ]
]
},
{
- "id": "3a7ac81f.3363c8",
- "type": "record",
- "name": "record",
- "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.FileRecorder\">\n<parameter name=\"file\" value=\"/opt/opendaylight/current/data/log/closedLoop.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"Successfully Obtained MNC info from Cps\"/>\n<parameter name=\"field2\" value=\"`$getplmnmncid-cps-response.httpResponse`\"/>",
+ "id": "67cc5255.871eac",
+ "type": "execute",
+ "name": "read schemaSet",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'>\n\t<parameter name='outputPath' value='tmp.schemaset.name' />\n\t<parameter name='source' value=\"`'get-anchors-cps-response.['+$anc+'].schemaSetName'`\" />\n\n",
"comments": "",
"outputs": 1,
- "x": 3598.6380462646484,
- "y": 1276.083249092102,
- "z": "4d7c5b65.634a04",
+ "x": 1931.2995071411133,
+ "y": 1926.1790523529053,
+ "z": "b04c02f8.7bb8d",
"wires": [
[]
]
},
{
- "id": "bc687d8e.5d461",
- "type": "returnFailure",
- "name": "return failure",
- "xml": "<return status='failure'>\n<parameter name='ack-final' value='Y'/>\n<parameter name='error-code' value='500'/>\n<parameter name='error-message' value='Error Getting Info from ConfigDB. Aborting RPC executiopn'/>",
- "comments": "",
- "x": 3621.9995346069336,
- "y": 989.999885559082,
- "z": "4d7c5b65.634a04",
- "wires": []
- },
- {
- "id": "c4866c85.64adf",
- "type": "returnFailure",
- "name": "return failure",
- "xml": "<return status='failure'>\n<parameter name='ack-final' value='Y'/>\n<parameter name='error-code' value='500'/>\n<parameter name='error-message' value='Error Getting Info from ConfigDB. Aborting RPC executiopn'/>",
- "comments": "",
- "x": 3623.9993743896484,
- "y": 1382.9998378753662,
- "z": "4d7c5b65.634a04",
- "wires": []
- },
- {
- "id": "3e21d260.0305ae",
+ "id": "a87ca525.e3ed68",
"type": "switchNode",
- "name": "ransim mounted",
- "xml": "<switch test='`$prop.ransim-mounted`'>\n",
+ "name": "check schemaSetName",
+ "xml": "<switch test='`$tmp.schemaset.name`'>\n",
"comments": "",
"outputs": 1,
- "x": 1448,
- "y": 1299,
- "z": "4d7c5b65.634a04",
+ "x": 1955.2715110778809,
+ "y": 1971.429054260254,
+ "z": "b04c02f8.7bb8d",
"wires": [
[
- "26c54f86.bf74b",
- "79f29ec2.b22c2"
+ "63e27211.eac73c"
]
]
},
{
- "id": "26c54f86.bf74b",
+ "id": "63e27211.eac73c",
"type": "outcome",
- "name": "Not Mounted",
- "xml": "<outcome value='false'>\n",
+ "name": "if ran-network",
+ "xml": "<outcome value='ran-network'>\n",
"comments": "",
"outputs": 1,
- "x": 1661.9998474121094,
- "y": 1299.999755859375,
- "z": "4d7c5b65.634a04",
+ "x": 2167.077178955078,
+ "y": 1971.901222229004,
+ "z": "b04c02f8.7bb8d",
"wires": [
[
- "3dd49a3.5a86666"
+ "aad91fde.2645a"
]
]
},
{
- "id": "79f29ec2.b22c2",
+ "id": "482358eb.b0ae38",
"type": "outcome",
- "name": "Mounted",
- "xml": "<outcome value='true'>\n",
+ "name": "if ran-network",
+ "xml": "<outcome value='ran-network'>\n",
"comments": "",
"outputs": 1,
- "x": 1654.0000457763672,
- "y": 1341.9998397827148,
- "z": "4d7c5b65.634a04",
+ "x": 2168.777862548828,
+ "y": 1875.5278463363647,
+ "z": "b04c02f8.7bb8d",
"wires": [
[
- "ab008fe8.c3e1c"
+ "c12ea50.9b97958"
]
]
},
{
- "id": "ab008fe8.c3e1c",
+ "id": "c12ea50.9b97958",
"type": "block",
- "name": "ransim URL",
+ "name": "block : atomic",
"xml": "<block atomic='true'>",
"atomic": "true",
"comments": "",
"outputs": 1,
- "x": 1827.9899635314941,
- "y": 1341.9998397827148,
- "z": "4d7c5b65.634a04",
+ "x": 2351.0801162719727,
+ "y": 1874.8610162734985,
+ "z": "b04c02f8.7bb8d",
"wires": [
[
- "197b8787.ab2868",
- "1f06dbc0.549624"
+ "6234a89c.645ce8",
+ "850ee848.058e48"
]
]
},
{
- "id": "3dd49a3.5a86666",
+ "id": "aad91fde.2645a",
"type": "block",
- "name": "URL",
+ "name": "block : atomic",
"xml": "<block atomic='true'>",
"atomic": "true",
"comments": "",
"outputs": 1,
- "x": 1824.2015113830566,
- "y": 1300.5989589691162,
- "z": "4d7c5b65.634a04",
+ "x": 2355.2129287719727,
+ "y": 1972.123390197754,
+ "z": "b04c02f8.7bb8d",
"wires": [
[
- "d9c4f2e2.58fc9"
+ "d1a0b66d.6369a8",
+ "b9fcde15.17355"
]
]
},
{
- "id": "d9c4f2e2.58fc9",
+ "id": "850ee848.058e48",
"type": "execute",
- "name": "generate addnSSAIEntry.ToNearRTRIC URL",
- "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$prop.restapi.addnSSAIEntry.ToNearRTRIC`\"/>\n <parameter name=\"outputPath\" value=\"tmp.restapi.addnSSAIEntry.ToNearRTRIC.url\"/>\n <parameter name=\"target\" value=\"{idNearRTRIC}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.nearRTRICId`\"/>",
+ "name": "set nearRTRIC size",
+ "xml": "<set>\n\t<parameter name='tmp.RIC.length' value=\"`$tmp.RIC.length+1`\"/>\n\t",
"comments": "",
"outputs": 1,
- "x": 2121.0000190734863,
- "y": 1301.0001640319824,
- "z": "4d7c5b65.634a04",
+ "x": 2563.0516395568848,
+ "y": 1837.3457164764404,
+ "z": "b04c02f8.7bb8d",
"wires": [
[]
]
},
{
- "id": "197b8787.ab2868",
- "type": "execute",
- "name": "generate addnSSAIEntry.ToNearRTRIC URL",
- "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$prop.restapi.addnSSAIEntry.ToNearRTRIC.ransim-mounted`\"/>\n <parameter name=\"outputPath\" value=\"tmp.restapi.addnSSAIEntry.ToNearRTRIC.url\"/>\n <parameter name=\"target\" value=\"{idNearRTRIC}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.nearRTRICId`\"/>",
+ "id": "6234a89c.645ce8",
+ "type": "record",
+ "name": "record",
+ "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.FileRecorder\">\n<parameter name=\"file\" value=\"/opt/opendaylight/current/data/log/closedLoop.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"Applicable RIC length\"/>\n<parameter name=\"field2\" value=\"`$tmp.RIC.length`\"/>",
"comments": "",
"outputs": 1,
- "x": 2122.534523010254,
- "y": 1342.5992851257324,
- "z": "4d7c5b65.634a04",
+ "x": 2528.9940223693848,
+ "y": 1874.6666812896729,
+ "z": "b04c02f8.7bb8d",
"wires": [
[]
]
},
{
- "id": "1f06dbc0.549624",
+ "id": "d1a0b66d.6369a8",
"type": "execute",
- "name": "Populate MOUNT NAME",
- "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$tmp.restapi.addnSSAIEntry.ToNearRTRIC.url`\"/>\n <parameter name=\"outputPath\" value=\"tmp.restapi.addnSSAIEntry.ToNearRTRIC.url\"/>\n <parameter name=\"target\" value=\"{mountName}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.nearRTRICId`\"/>",
+ "name": "read anchorName",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'>\n\t<parameter name='outputPath' value='tmp.anchor.name' />\n\t<parameter name='source' value=\"`'get-anchors-cps-response.['+$anc+'].name'`\" />",
"comments": "",
"outputs": 1,
- "x": 2063.5348510742188,
- "y": 1383.5989618301392,
- "z": "4d7c5b65.634a04",
+ "x": 2564.1947021484375,
+ "y": 1930.7778491973877,
+ "z": "b04c02f8.7bb8d",
"wires": [
[]
]
},
{
- "id": "99f61b3f.7c9258",
+ "id": "b9fcde15.17355",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 2571.139045715332,
+ "y": 1982.5000190734863,
+ "z": "b04c02f8.7bb8d",
+ "wires": [
+ [
+ "93a9f128.16a34",
+ "e6973b44.7c8b18",
+ "d9f59159.bccda",
+ "e7e491b1.2463c",
+ "2fd1be24.517232",
+ "78ae1961.bdf7a8",
+ "e209093a.387438",
+ "80c7b689.e218b8",
+ "16b3f743.a85db9",
+ "34a7e97e.ecbd66",
+ "6426c68d.016c98",
+ "1b22ce98.2c6fa1"
+ ]
+ ]
+ },
+ {
+ "id": "e9a31ae.98576e8",
"type": "execute",
- "name": "getAnchors URL",
- "xml": "<set>\n\t<parameter name='tmp.getAnchors.URL' value=\"`$prop.restapi.cps.anchors.endpoint`\"/>\n\t",
+ "name": "read sliceProfileId from input",
+ "xml": "<set>\n<parameter name='tmp.sliceprofileid' value=\"`$payloadJson.input.sliceProfile.sliceProfileId`\" />",
"comments": "",
"outputs": 1,
- "x": 1448.7500381469727,
- "y": 1377.000002861023,
- "z": "4d7c5b65.634a04",
+ "x": 2881,
+ "y": 1016,
+ "z": "b04c02f8.7bb8d",
"wires": [
[]
]
},
{
- "id": "4fcdfd93.2b2e94",
+ "id": "859c60d3.e5f3d",
"type": "record",
"name": "record",
- "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.FileRecorder\">\n<parameter name=\"file\" value=\"/opt/opendaylight/current/data/log/closedLoop.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"URL to fetch the anchors\"/>\n<parameter name=\"field2\" value=\"`$tmp.getAnchors.URL`\"/>",
+ "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.FileRecorder\">\n<parameter name=\"file\" value=\"/opt/opendaylight/current/data/log/closedLoop.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"sliceprofileid from input\"/>\n<parameter name=\"field2\" value=\"`$tmp.sliceprofileid`\"/>\n",
"comments": "",
"outputs": 1,
- "x": 1418.0000381469727,
- "y": 1421.7500042915344,
- "z": "4d7c5b65.634a04",
+ "x": 2814,
+ "y": 1050,
+ "z": "b04c02f8.7bb8d",
"wires": [
[]
]
},
{
- "id": "8c7da0b4.ffdc8",
+ "id": "18335f27.526491",
"type": "execute",
- "name": "Get list of anchors from CPS",
- "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"restapiUrl\" value=\"`$tmp.getAnchors.URL`\"/>\n<parameter name=\"httpMethod\" value=\"GET\"/>\n<parameter name=\"restapiUser\" value=\"cpsuser\" />\n<parameter name=\"restapiPassword\" value=\"cpsr0cks!\"/>\n<parameter name=\"responsePrefix\" value=\"get-anchors-cps-response\"/>\n<parameter name='contentType' value='application/json' /> \n<parameter name='format' value='json' />\n<parameter name='accept' value='application/json' />\n<parameter name=\"convertResponse\" value=\"true\"/>",
+ "name": "generate plmnid URL cps",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$prop.restapi.cps.tbdmt.execute.endpoint`\"/>\n <parameter name=\"outputPath\" value=\"tmp.cps.getPLMNID.url\"/>\n <parameter name=\"target\" value=\"{schemaSet}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.schemaset.name`\"/>",
"comments": "",
"outputs": 1,
- "x": 1486.8055419921875,
- "y": 1465.916672706604,
- "z": "4d7c5b65.634a04",
+ "x": 2870.639217376709,
+ "y": 1082.9834432601929,
+ "z": "b04c02f8.7bb8d",
"wires": [
- [
- "1c00cebc.15e071",
- "655604d5.d3202c"
- ]
+ []
]
},
{
- "id": "b50c2ced.c3143",
+ "id": "986b500b.efd7",
"type": "execute",
- "name": "set anchors size",
- "xml": "<set>\n\t<parameter name='tmp.anchors.length' value=\"`$get-anchors-cps-response._length`\"/>\n\t",
+ "name": "prepare tbdmt template",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$tmp.cps.getPLMNID.url`\"/>\n <parameter name=\"outputPath\" value=\"tmp.cps.getPLMNID.url\"/>\n <parameter name=\"target\" value=\"{templateId}\"/>\n <parameter name=\"replacement\" value=\"`$prop.tbdmt.template.get-plmnid`\"/>",
"comments": "",
"outputs": 1,
- "x": 1451.1546630859375,
- "y": 1591.820972442627,
- "z": "4d7c5b65.634a04",
+ "x": 2862.639217376709,
+ "y": 1116.5833797454834,
+ "z": "b04c02f8.7bb8d",
"wires": [
[]
]
},
{
- "id": "8dd65b69.c1c0e8",
- "type": "for",
- "name": "For anchorsList",
- "xml": "<for index='anc' start='0' end='`$tmp.anchors.length`'>",
+ "id": "82068605.3b8bb8",
+ "type": "record",
+ "name": "record TBDMT RestAPI params",
+ "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.FileRecorder\">\n<parameter name=\"file\" value=\"/opt/opendaylight/current/data/log/closedLoop.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"URL for CPS TDBMT to Get plmnid from sliceprofile\"/>\n<parameter name='field2' value=\"`$tmp.cps.getPLMNID.url`\" />",
"comments": "",
"outputs": 1,
- "x": 1452.6019287109375,
- "y": 1663.527681350708,
- "z": "4d7c5b65.634a04",
+ "x": 2889.639186859131,
+ "y": 1151.7834935188293,
+ "z": "b04c02f8.7bb8d",
"wires": [
- [
- "63f61435.ddcfcc"
- ]
+ []
]
},
{
- "id": "24ce1a1c.0c4dc6",
- "type": "for",
- "name": "For anchorsList",
- "xml": "<for index='anc' start='0' end='`$tmp.anchors.length`'>",
+ "id": "db9ae584.12e248",
+ "type": "execute",
+ "name": "Get pLMNId mcc, mnc from sliceprofileID",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"restapiUrl\" value=\"`$tmp.cps.getPLMNID.url`\"/>\n<parameter name=\"templateFileName\" value=\"`$prop.restapi.templateDir + '/cps-templates/cps-get-plmnid.json'`\" />\n<parameter name=\"httpMethod\" value=\"POST\"/>\n<parameter name=\"responsePrefix\" value=\"getplmnid-cps-response\"/>\n<parameter name='contentType' value='application/json' /> \n<parameter name='format' value='json' />\n<parameter name='accept' value='application/json' />\n<parameter name=\"convertResponse\" value=\"true\"/>",
"comments": "",
"outputs": 1,
- "x": 1449.6177215576172,
- "y": 1714.8457164764404,
- "z": "4d7c5b65.634a04",
+ "x": 2918.6395149230957,
+ "y": 1186.7834181785583,
+ "z": "b04c02f8.7bb8d",
"wires": [
[
- "1e1f2ec4.b57821"
+ "90dc3b92.f00d98",
+ "c624131a.ffad"
]
]
},
{
- "id": "655604d5.d3202c",
+ "id": "90dc3b92.f00d98",
"type": "failure",
"name": "failure",
"xml": "<outcome value='failure'>\n",
"comments": "",
"outputs": 1,
- "x": 1704.1110534667969,
- "y": 1465.555507659912,
- "z": "4d7c5b65.634a04",
+ "x": 3185.4166374206543,
+ "y": 1126.6943535804749,
+ "z": "b04c02f8.7bb8d",
"wires": [
[
- "8d6349e1.873878"
+ "cf0acb5.046e338"
]
]
},
{
- "id": "1c00cebc.15e071",
+ "id": "c624131a.ffad",
"type": "success",
"name": "success",
"xml": "<outcome value='success'>\n",
"comments": "",
"outputs": 1,
- "x": 1700.111213684082,
- "y": 1549.7498455047607,
- "z": "4d7c5b65.634a04",
+ "x": 3191.6385459899902,
+ "y": 1187.583387851715,
+ "z": "b04c02f8.7bb8d",
"wires": [
[
- "2bd9b284.5d46ee"
+ "6c71794d.ded598"
]
]
},
{
- "id": "63f61435.ddcfcc",
+ "id": "cf0acb5.046e338",
"type": "block",
- "name": "block : atomic",
- "xml": "<block atomic='true'>",
- "atomic": "true",
+ "name": "block",
+ "xml": "<block>",
+ "atomic": "false",
"comments": "",
"outputs": 1,
- "x": 1672.9907722473145,
- "y": 1664.0555124282837,
- "z": "4d7c5b65.634a04",
+ "x": 3363.638874053955,
+ "y": 1126.583155632019,
+ "z": "b04c02f8.7bb8d",
"wires": [
[
- "71d4252d.e9918c",
- "c4c1fd8.f3a05"
+ "8363fbc2.8956c8",
+ "e14eede.1c0201",
+ "def3245.d2ff2d8",
+ "e70e6789.6b9e38"
]
]
},
{
- "id": "1e1f2ec4.b57821",
+ "id": "6c71794d.ded598",
"type": "block",
"name": "block : atomic",
"xml": "<block atomic='true'>",
"atomic": "true",
"comments": "",
"outputs": 1,
- "x": 1671.3053894042969,
- "y": 1714.0000133514404,
- "z": "4d7c5b65.634a04",
+ "x": 3361.527545928955,
+ "y": 1187.4721417427063,
+ "z": "b04c02f8.7bb8d",
"wires": [
[
- "13278ede.6bee51",
- "78acf035.46288"
+ "5843895a.a162c8",
+ "77dcdbf5.df3404",
+ "9e39a197.8c271"
]
]
},
{
- "id": "8d6349e1.873878",
- "type": "block",
- "name": "block",
- "xml": "<block>",
- "atomic": "false",
+ "id": "e14eede.1c0201",
+ "type": "record",
+ "name": "record",
+ "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.FileRecorder\">\n<parameter name=\"file\" value=\"/opt/opendaylight/current/data/log/closedLoop.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"Failed to obtain MCC, MNC info from CPS\"/>\n<parameter name=\"field2\" value=\"`$cps-get-plmnid.json`\"/>\n",
"comments": "",
"outputs": 1,
- "x": 1854.8055572509766,
- "y": 1465.1666717529297,
- "z": "4d7c5b65.634a04",
+ "x": 3547.3330574035645,
+ "y": 1046.6668577194214,
+ "z": "b04c02f8.7bb8d",
"wires": [
- [
- "86eeee2b.9e923",
- "ecf3f9cf.0fc3c8"
- ]
+ []
]
},
{
- "id": "86eeee2b.9e923",
+ "id": "8363fbc2.8956c8",
"type": "set",
"name": "set",
"xml": "<set>\n<parameter name='error-code' value='500'/>\n<parameter name='error-message' value='Error Getting Info from CPS. Aborting RPC executiopn'/>",
"comments": "",
- "x": 2014.5830688476562,
- "y": 1464.9998426437378,
- "z": "4d7c5b65.634a04",
+ "x": 3547.1943855285645,
+ "y": 997.4721946716309,
+ "z": "b04c02f8.7bb8d",
"wires": []
},
{
- "id": "ecf3f9cf.0fc3c8",
+ "id": "77dcdbf5.df3404",
+ "type": "execute",
+ "name": "read nearRTRICId-PLMN",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'>\n\t<parameter name='outputPath' value='tmp.plmn.mcc' />\n\t<parameter name='source' value=\"`'getplmnid-cps-response.[0].mcc'`\" />\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 3615.3502311706543,
+ "y": 1150.4497246742249,
+ "z": "b04c02f8.7bb8d",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "5843895a.a162c8",
"type": "record",
"name": "record",
- "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.FileRecorder\">\n<parameter name=\"file\" value=\"/opt/opendaylight/current/data/log/closedLoop.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"Failed to fetch anchors from CPS\"/>",
+ "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.FileRecorder\">\n<parameter name=\"file\" value=\"/opt/opendaylight/current/data/log/closedLoop.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"Successfully Obtained MCC, MNC info from CPS\"/>\n<parameter name=\"field2\" value=\"`$tmp.plmn.mcc`\"/>\n<parameter name=\"field3\" value=\"`$tmp.plmn.mnc`\"/>\n",
"comments": "",
"outputs": 1,
- "x": 2014.3890533447266,
- "y": 1505.5276765823364,
- "z": "4d7c5b65.634a04",
+ "x": 3557.1392936706543,
+ "y": 1225.8332695960999,
+ "z": "b04c02f8.7bb8d",
"wires": [
[]
]
},
{
- "id": "2bd9b284.5d46ee",
- "type": "block",
- "name": "block : atomic",
- "xml": "<block atomic='true'>",
- "atomic": "true",
+ "id": "def3245.d2ff2d8",
+ "type": "returnFailure",
+ "name": "return failure",
+ "xml": "<return status='failure'>\n<parameter name='ack-final' value='Y'/>\n<parameter name='error-code' value='500'/>\n<parameter name='error-message' value='Error Getting Info from ConfigDB. Aborting RPC executiopn'/>",
+ "comments": "",
+ "x": 3565.9997215270996,
+ "y": 1086.0000290870667,
+ "z": "b04c02f8.7bb8d",
+ "wires": []
+ },
+ {
+ "id": "9e39a197.8c271",
+ "type": "execute",
+ "name": "read nearRTRICId-PLMN",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'>\n\t<parameter name='outputPath' value='tmp.plmn.mnc' />\n\t<parameter name='source' value=\"`'getplmnid-cps-response.[0].mnc'`\" />\n",
"comments": "",
"outputs": 1,
- "x": 1857.5553894042969,
- "y": 1550.416675567627,
- "z": "4d7c5b65.634a04",
+ "x": 3613.6668815612793,
+ "y": 1188.0001397132874,
+ "z": "b04c02f8.7bb8d",
"wires": [
- [
- "c866198.4c0c1e8",
- "eb35fb98.e94048"
- ]
+ []
]
},
{
- "id": "c866198.4c0c1e8",
+ "id": "d773ae89.73757",
+ "type": "set",
+ "name": "set mcc & mnc Variables",
+ "xml": "<set>\n<parameter name='tmp.mcc' value='`$tmp.plmn.mcc`'/>\n<parameter name='tmp.mnc' value='`$tmp.plmn.mnc`'/>",
+ "comments": "",
+ "x": 2868.6668968200684,
+ "y": 1222.3334832191467,
+ "z": "b04c02f8.7bb8d",
+ "wires": []
+ },
+ {
+ "id": "d70f793c.b395e8",
"type": "record",
"name": "record",
- "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.FileRecorder\">\n<parameter name=\"file\" value=\"/opt/opendaylight/current/data/log/closedLoop.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"Successfully Obtained anchors from CPS\"/>\n<parameter name=\"field2\" value=\"`$get-anchors-cps-response._length`\"/>",
+ "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.FileRecorder\">\n<parameter name=\"file\" value=\"/opt/opendaylight/current/data/log/closedLoop.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"mcc,mnc values...\"/>\n<parameter name=\"field2\" value=\"`$tmp.mcc`\"/>\n<parameter name=\"field3\" value=\"`$tmp.mnc`\"/>",
"comments": "",
"outputs": 1,
- "x": 2019.3052368164062,
- "y": 1550.666675567627,
- "z": "4d7c5b65.634a04",
+ "x": 2812.666904449463,
+ "y": 1256.3334832191467,
+ "z": "b04c02f8.7bb8d",
"wires": [
[]
]
},
{
- "id": "eb35fb98.e94048",
- "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-closedLoop-context.log' />",
+ "id": "93a9f128.16a34",
+ "type": "set",
+ "name": "set Variables",
+ "xml": "<set>\n<parameter name='tmp.mcc' value='`$tmp.mcc`' />\n<parameter name='tmp.mnc' value='`$tmp.mnc`' />\n<parameter name='tmp.configParameter' value='`dLThptPerSlice`' />\n<parameter name='tmp.configValue' value='`$tmp.dLThptPerSlice`' />",
+ "comments": "",
+ "x": 2867,
+ "y": 1765,
+ "z": "b04c02f8.7bb8d",
+ "wires": []
+ },
+ {
+ "id": "e6973b44.7c8b18",
+ "type": "record",
+ "name": "record",
+ "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.FileRecorder\">\n<parameter name=\"file\" value=\"/opt/opendaylight/current/data/log/closedLoop.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"Inputs\"/>\n<parameter name=\"field2\" value=\"`$tmp.nearRTRICId`\"/>\n<parameter name=\"field3\" value=\"`$tmp.mcc`\"/>\n<parameter name=\"field4\" value=\"`$tmp.mnc`\"/>\n<parameter name=\"field5\" value=\"`$tmp.payload.sNSSAI`\"/>\n<parameter name=\"field6\" value=\"`$tmp.dLThptPerSlice`\"/>\n<parameter name=\"field7\" value=\"`$tmp.configParameter`\"/>\n<parameter name=\"field8\" value=\"`$tmp.configValue`\"/>",
"comments": "",
"outputs": 1,
- "x": 2035.8337211608887,
- "y": 1588.4166765213013,
- "z": "4d7c5b65.634a04",
+ "x": 2846.8051719665527,
+ "y": 1797.6665167808533,
+ "z": "b04c02f8.7bb8d",
"wires": [
[]
]
},
{
- "id": "c4c1fd8.f3a05",
+ "id": "d9f59159.bccda",
"type": "execute",
- "name": "read schemaSet",
- "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'>\n\t<parameter name='outputPath' value='tmp.schemaset.name' />\n\t<parameter name='source' value=\"`'get-anchors-cps-response.['+$anc+'].schemaSetName'`\" />\n\n",
+ "name": "generate dLThptPerSliceURL cps",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$prop.restapi.cps.tbdmt.execute.endpoint`\"/>\n <parameter name=\"outputPath\" value=\"tmp.cps.patchconfigData.url\"/>\n <parameter name=\"target\" value=\"{schemaSet}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.schemaset.name`\"/>",
"comments": "",
"outputs": 1,
- "x": 1869.6543502807617,
- "y": 1620.9596455097198,
- "z": "4d7c5b65.634a04",
+ "x": 2923.4720344543457,
+ "y": 1830.6666946411133,
+ "z": "b04c02f8.7bb8d",
"wires": [
[]
]
},
{
- "id": "71d4252d.e9918c",
- "type": "switchNode",
- "name": "check schemaSetName",
- "xml": "<switch test='`$tmp.schemaset.name`'>\n",
+ "id": "e7e491b1.2463c",
+ "type": "execute",
+ "name": "prepare tbdmt template",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$tmp.cps.patchconfigData.url`\"/>\n <parameter name=\"outputPath\" value=\"tmp.cps.patchconfigData.url\"/>\n <parameter name=\"target\" value=\"{templateId}\"/>\n <parameter name=\"replacement\" value=\"`$prop.tbdmt.template.patch-configData`\"/>",
"comments": "",
"outputs": 1,
- "x": 1895.1390533447266,
- "y": 1664.055513381958,
- "z": "4d7c5b65.634a04",
+ "x": 2889.4720344543457,
+ "y": 1866.2666311264038,
+ "z": "b04c02f8.7bb8d",
"wires": [
- [
- "f465f427.c2b608"
- ]
+ []
]
},
{
- "id": "13278ede.6bee51",
- "type": "execute",
- "name": "read schemaSet",
- "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'>\n\t<parameter name='outputPath' value='tmp.schemaset.name' />\n\t<parameter name='source' value=\"`'get-anchors-cps-response.['+$anc+'].schemaSetName'`\" />\n\n",
+ "id": "2fd1be24.517232",
+ "type": "record",
+ "name": "record TBDMT RestAPI params",
+ "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.FileRecorder\">\n<parameter name=\"file\" value=\"/opt/opendaylight/current/data/log/closedLoop.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"URL for CPS TDBMT to patch dLThptPerSlice\"/>\n<parameter name='field2' value=\"`$tmp.cps.patchconfigData.url`\" />",
"comments": "",
"outputs": 1,
- "x": 1874.9662017822266,
- "y": 1714.179048538208,
- "z": "4d7c5b65.634a04",
+ "x": 2915.4718742370605,
+ "y": 1902.466501235962,
+ "z": "b04c02f8.7bb8d",
"wires": [
[]
]
},
{
- "id": "78acf035.46288",
- "type": "switchNode",
- "name": "check schemaSetName",
- "xml": "<switch test='`$tmp.schemaset.name`'>\n",
+ "id": "78ae1961.bdf7a8",
+ "type": "execute",
+ "name": "patch dLThptPerSlice",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"restapiUrl\" value=\"`$tmp.cps.patchconfigData.url`\"/>\n<parameter name=\"templateFileName\" value=\"`$prop.restapi.templateDir + '/cps-templates/cps-patch-configData.json'`\" />\n<parameter name=\"httpMethod\" value=\"POST\"/>\n<parameter name=\"responsePrefix\" value=\"patchdLThptPerSlice-cps-response\"/>\n<parameter name='contentType' value='application/json' /> \n<parameter name='format' value='json' />\n<parameter name='accept' value='application/json' />\n<parameter name=\"convertResponse\" value=\"true\"/>",
"comments": "",
"outputs": 1,
- "x": 1898.9382057189941,
- "y": 1759.4290504455566,
- "z": "4d7c5b65.634a04",
+ "x": 2882.471836090088,
+ "y": 1937.4665126800537,
+ "z": "b04c02f8.7bb8d",
"wires": [
[
- "9f12f9e9.9452b8"
+ "5dd8e8e6.0f6b58",
+ "57c04402.27d17c"
]
]
},
{
- "id": "9f12f9e9.9452b8",
- "type": "outcome",
- "name": "if ran-network",
- "xml": "<outcome value='ran-network'>\n",
+ "id": "57c04402.27d17c",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
"comments": "",
"outputs": 1,
- "x": 2110.7438735961914,
- "y": 1759.9012184143066,
- "z": "4d7c5b65.634a04",
+ "x": 3131.47123336792,
+ "y": 1936.2663078308105,
+ "z": "b04c02f8.7bb8d",
"wires": [
[
- "3ed1dd57.474582"
+ "f0aa26a4.a8d398"
]
]
},
{
- "id": "f465f427.c2b608",
- "type": "outcome",
- "name": "if ran-network",
- "xml": "<outcome value='ran-network'>\n",
+ "id": "5dd8e8e6.0f6b58",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
"comments": "",
"outputs": 1,
- "x": 2112.4445571899414,
- "y": 1663.5278425216675,
- "z": "4d7c5b65.634a04",
+ "x": 3135.249164581299,
+ "y": 1857.3774547576904,
+ "z": "b04c02f8.7bb8d",
"wires": [
[
- "61f76815.9ea948"
+ "ff3e21ea.4dd2"
]
]
},
{
- "id": "61f76815.9ea948",
+ "id": "ff3e21ea.4dd2",
"type": "block",
- "name": "block : atomic",
- "xml": "<block atomic='true'>",
- "atomic": "true",
+ "name": "block",
+ "xml": "<block>",
+ "atomic": "false",
"comments": "",
"outputs": 1,
- "x": 2294.746810913086,
- "y": 1662.8610124588013,
- "z": "4d7c5b65.634a04",
+ "x": 3265.471237182617,
+ "y": 1859.2663068771362,
+ "z": "b04c02f8.7bb8d",
"wires": [
[
- "2bfe4fd7.4500e",
- "fe178d42.6417a"
+ "c9f609cb.f173a8",
+ "45d1cdff.6e8c24",
+ "737db7b9.9036e8"
]
]
},
{
- "id": "3ed1dd57.474582",
+ "id": "f0aa26a4.a8d398",
"type": "block",
"name": "block : atomic",
"xml": "<block atomic='true'>",
"atomic": "true",
"comments": "",
"outputs": 1,
- "x": 2298.879623413086,
- "y": 1760.1233863830566,
- "z": "4d7c5b65.634a04",
+ "x": 3295.3605575561523,
+ "y": 1937.1553058624268,
+ "z": "b04c02f8.7bb8d",
"wires": [
[
- "5b36931e.63404c",
- "47429c6f.cdaf04"
+ "5f561ca2.24e214"
]
]
},
{
- "id": "fe178d42.6417a",
- "type": "execute",
- "name": "set nearRTRIC size",
- "xml": "<set>\n\t<parameter name='tmp.RIC.length' value=\"`$tmp.RIC.length+1`\"/>\n\t",
+ "id": "5f561ca2.24e214",
+ "type": "record",
+ "name": "record",
+ "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.FileRecorder\">\n<parameter name=\"file\" value=\"/opt/opendaylight/current/data/log/closedLoop.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"Successfully patched dLThptPerSlice\"/>\n<parameter name=\"field2\" value=\"`$patchdLThptPerSlice-cps-response.httpResponse`\"/>",
"comments": "",
"outputs": 1,
- "x": 2506.718334197998,
- "y": 1625.3457126617432,
- "z": "4d7c5b65.634a04",
+ "x": 3474.971893310547,
+ "y": 1937.5163087844849,
+ "z": "b04c02f8.7bb8d",
"wires": [
[]
]
},
{
- "id": "2bfe4fd7.4500e",
+ "id": "737db7b9.9036e8",
+ "type": "returnFailure",
+ "name": "return failure",
+ "xml": "<return status='failure'>\n<parameter name='ack-final' value='Y'/>\n<parameter name='error-code' value='500'/>\n<parameter name='error-message' value='Error Getting Info from ConfigDB. Aborting RPC executiopn'/>",
+ "comments": "",
+ "x": 3436.80517578125,
+ "y": 1857.6667070388794,
+ "z": "b04c02f8.7bb8d",
+ "wires": []
+ },
+ {
+ "id": "c9f609cb.f173a8",
+ "type": "set",
+ "name": "set",
+ "xml": "<set>\n<parameter name='error-code' value='500'/>\n<parameter name='error-message' value='Error Getting Info from CPS. Aborting RPC executiopn'/>",
+ "comments": "",
+ "x": 3417.0269622802734,
+ "y": 1818.1555309295654,
+ "z": "b04c02f8.7bb8d",
+ "wires": []
+ },
+ {
+ "id": "45d1cdff.6e8c24",
"type": "record",
"name": "record",
- "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.FileRecorder\">\n<parameter name=\"file\" value=\"/opt/opendaylight/current/data/log/closedLoop.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"Applicable RIC length\"/>\n<parameter name=\"field2\" value=\"`$tmp.RIC.length`\"/>",
+ "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.FileRecorder\">\n<parameter name=\"file\" value=\"/opt/opendaylight/current/data/log/closedLoop.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"Failed to update CPS\"/>\n<parameter name=\"field2\" value=\"`$cps-patch-configData.json`\"/>\n<parameter name=\"field3\" value=\"`$patchdLThptPerSlice-cps-response.httpResponse`\"/>",
"comments": "",
"outputs": 1,
- "x": 2472.660717010498,
- "y": 1662.6666774749756,
- "z": "4d7c5b65.634a04",
+ "x": 3418.165901184082,
+ "y": 1777.34996175766,
+ "z": "b04c02f8.7bb8d",
"wires": [
[]
]
},
{
- "id": "5b36931e.63404c",
- "type": "execute",
- "name": "read anchorName",
- "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'>\n\t<parameter name='outputPath' value='tmp.anchor.name' />\n\t<parameter name='source' value=\"`'get-anchors-cps-response.['+$anc+'].name'`\" />",
+ "id": "af84ac47.96d83",
+ "type": "set",
+ "name": "set",
+ "xml": "<set>\n<parameter name='error-code' value='500'/>\n<parameter name='error-message' value='Error Getting Info from CPS. Aborting RPC executiopn'/>",
+ "comments": "",
+ "x": 3482.3327102661133,
+ "y": 2117.8052864074707,
+ "z": "b04c02f8.7bb8d",
+ "wires": []
+ },
+ {
+ "id": "24fd6f9e.2bf8d",
+ "type": "returnFailure",
+ "name": "return failure",
+ "xml": "<return status='failure'>\n<parameter name='ack-final' value='Y'/>\n<parameter name='error-code' value='500'/>\n<parameter name='error-message' value='Error Getting Info from ConfigDB. Aborting RPC executiopn'/>",
+ "comments": "",
+ "x": 3506.7780265808105,
+ "y": 2158.316680908203,
+ "z": "b04c02f8.7bb8d",
+ "wires": []
+ },
+ {
+ "id": "129be534.b22acb",
+ "type": "record",
+ "name": "record",
+ "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.FileRecorder\">\n<parameter name=\"file\" value=\"/opt/opendaylight/current/data/log/closedLoop.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"Successfully patched uLThptPerSlice\"/>\n<parameter name=\"field2\" value=\"`$patchuLThptPerSlice-cps-response.httpResponse`\"/>",
"comments": "",
"outputs": 1,
- "x": 2507.861396789551,
- "y": 1718.7778453826904,
- "z": "4d7c5b65.634a04",
+ "x": 3499.2780227661133,
+ "y": 2216.1664142608643,
+ "z": "b04c02f8.7bb8d",
"wires": [
[]
]
},
{
- "id": "47429c6f.cdaf04",
+ "id": "ba549318.a9b07",
"type": "block",
"name": "block : atomic",
"xml": "<block atomic='true'>",
"atomic": "true",
"comments": "",
"outputs": 1,
- "x": 2514.8057403564453,
- "y": 1770.500015258789,
- "z": "4d7c5b65.634a04",
+ "x": 3321.666690826416,
+ "y": 2215.8057374954224,
+ "z": "b04c02f8.7bb8d",
"wires": [
[
- "8998c72c.4ff418",
- "9d7758a7.bd51f8",
- "9d39eb14.0fc3a8",
- "c69db98d.df76b8",
- "74d6c00.8c08c4",
- "eac71052.ffbb4",
- "755837fb.492b88",
- "ee4970e3.bde7c",
- "3f7e1749.9ebda8",
- "93440679.5fd8e8"
+ "129be534.b22acb"
]
]
},
{
- "id": "8998c72c.4ff418",
- "type": "execute",
- "name": "generate dLThptPerSliceURL cps",
- "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$prop.restapi.cps.tbdmt.execute.endpoint`\"/>\n <parameter name=\"outputPath\" value=\"tmp.cps.patchdLThptPerSlice.url\"/>\n <parameter name=\"target\" value=\"{schemaSet}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.schemaset.name`\"/>",
- "comments": "",
- "outputs": 1,
- "x": 2839.750160217285,
- "y": 1668.6666774749756,
- "z": "4d7c5b65.634a04",
- "wires": [
- []
- ]
- },
- {
- "id": "9d7758a7.bd51f8",
- "type": "execute",
- "name": "prepare tbdmt template",
- "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$tmp.cps.patchdLThptPerSlice.url`\"/>\n <parameter name=\"outputPath\" value=\"tmp.cps.patchdLThptPerSlice.url\"/>\n <parameter name=\"target\" value=\"{templateId}\"/>\n <parameter name=\"replacement\" value=\"`$prop.tbdmt.template.patch-dLThptPerSlice`\"/>",
+ "id": "1219c976.9bbc57",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>",
+ "atomic": "false",
"comments": "",
"outputs": 1,
- "x": 2805.750160217285,
- "y": 1704.266613960266,
- "z": "4d7c5b65.634a04",
+ "x": 3286.7773666381836,
+ "y": 2160.916290283203,
+ "z": "b04c02f8.7bb8d",
"wires": [
- []
+ [
+ "af84ac47.96d83",
+ "24fd6f9e.2bf8d",
+ "267fadbf.81adc2"
+ ]
]
},
{
- "id": "9d39eb14.0fc3a8",
- "type": "record",
- "name": "record TBDMT RestAPI params",
- "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.FileRecorder\">\n<parameter name=\"file\" value=\"/opt/opendaylight/current/data/log/closedLoop.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"URL for CPS TDBMT to patch dLThptPerSlice\"/>\n<parameter name='field2' value=\"`$tmp.cps.patchdLThptPerSlice.url`\" />",
+ "id": "2ae8cd06.209dc2",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
"comments": "",
"outputs": 1,
- "x": 2831.75,
- "y": 1740.4664840698242,
- "z": "4d7c5b65.634a04",
+ "x": 3145.7773628234863,
+ "y": 2214.9164142608643,
+ "z": "b04c02f8.7bb8d",
"wires": [
- []
+ [
+ "ba549318.a9b07"
+ ]
]
},
{
- "id": "c69db98d.df76b8",
- "type": "execute",
- "name": "patch dLThptPerSlice",
- "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"restapiUrl\" value=\"`$tmp.cps.patchdLThptPerSlice.url`\"/>\n<parameter name=\"templateFileName\" value=\"`$prop.restapi.templateDir + '/cps-templates/cps-patch-dLThptPerSlice.json'`\" />\n<parameter name=\"httpMethod\" value=\"POST\"/>\n<parameter name=\"responsePrefix\" value=\"patchdLThptPerSlice-cps-response\"/>\n<parameter name='contentType' value='application/json' /> \n<parameter name='format' value='json' />\n<parameter name='accept' value='application/json' />\n<parameter name=\"convertResponse\" value=\"true\"/>",
+ "id": "9d04e94c.4edda8",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
"comments": "",
"outputs": 1,
- "x": 2798.75,
- "y": 1773.4664859771729,
- "z": "4d7c5b65.634a04",
+ "x": 3140.555181503296,
+ "y": 2161.0274114608765,
+ "z": "b04c02f8.7bb8d",
"wires": [
[
- "41285c67.33d5c4",
- "b48fa3de.a329a"
+ "1219c976.9bbc57"
]
]
},
{
- "id": "b48fa3de.a329a",
- "type": "success",
- "name": "success",
- "xml": "<outcome value='success'>\n",
+ "id": "16b3f743.a85db9",
+ "type": "execute",
+ "name": "generate uLThptPerSliceURL cps",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$prop.restapi.cps.tbdmt.execute.endpoint`\"/>\n <parameter name=\"outputPath\" value=\"tmp.cps.patchuLThptPerSlice.url\"/>\n <parameter name=\"target\" value=\"{schemaSet}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.schemaset.name`\"/>",
"comments": "",
"outputs": 1,
- "x": 3047.7493591308594,
- "y": 1774.2662906646729,
- "z": "4d7c5b65.634a04",
+ "x": 2920.777988433838,
+ "y": 2051.316632270813,
+ "z": "b04c02f8.7bb8d",
"wires": [
- [
- "2251f3b0.ca9bac"
- ]
+ []
]
},
{
- "id": "41285c67.33d5c4",
- "type": "failure",
- "name": "failure",
- "xml": "<outcome value='failure'>\n",
+ "id": "34a7e97e.ecbd66",
+ "type": "execute",
+ "name": "prepare tbdmt template",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$tmp.cps.patchuLThptPerSlice.url`\"/>\n <parameter name=\"outputPath\" value=\"tmp.cps.patchuLThptPerSlice.url\"/>\n <parameter name=\"target\" value=\"{templateId}\"/>\n <parameter name=\"replacement\" value=\"`$prop.tbdmt.template.patch-configData`\"/>",
"comments": "",
"outputs": 1,
- "x": 3053.5273513793945,
- "y": 1696.3774547576904,
- "z": "4d7c5b65.634a04",
+ "x": 2890.7778282165527,
+ "y": 2086.916569709778,
+ "z": "b04c02f8.7bb8d",
"wires": [
- [
- "3df4f6bd.dcdc8a"
- ]
+ []
]
},
{
- "id": "2251f3b0.ca9bac",
- "type": "block",
- "name": "block : atomic",
- "xml": "<block atomic='true'>",
- "atomic": "true",
+ "id": "6426c68d.016c98",
+ "type": "record",
+ "name": "record TBDMT RestAPI params",
+ "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.FileRecorder\">\n<parameter name=\"file\" value=\"/opt/opendaylight/current/data/log/closedLoop.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"URL for CPS TDBMT to patch uLThptPerSlice\"/>\n<parameter name='field2' value=\"`$tmp.cps.patchuLThptPerSlice.url`\" />",
"comments": "",
"outputs": 1,
- "x": 3211.638683319092,
- "y": 1775.155288696289,
- "z": "4d7c5b65.634a04",
+ "x": 2916.7778282165527,
+ "y": 2125.1164407730103,
+ "z": "b04c02f8.7bb8d",
"wires": [
- [
- "62c02278.218b8c"
- ]
+ []
]
},
{
- "id": "3df4f6bd.dcdc8a",
- "type": "block",
- "name": "block",
- "xml": "<block>",
- "atomic": "false",
+ "id": "1b22ce98.2c6fa1",
+ "type": "execute",
+ "name": "patch uLThptPerSlice",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"restapiUrl\" value=\"`$tmp.cps.patchuLThptPerSlice.url`\"/>\n<parameter name=\"templateFileName\" value=\"`$prop.restapi.templateDir + '/cps-templates/cps-patch-configData.json'`\" />\n<parameter name=\"httpMethod\" value=\"POST\"/>\n<parameter name=\"responsePrefix\" value=\"patchuLThptPerSlice-cps-response\"/>\n<parameter name='contentType' value='application/json' /> \n<parameter name='format' value='json' />\n<parameter name='accept' value='application/json' />\n<parameter name=\"convertResponse\" value=\"true\"/>",
"comments": "",
"outputs": 1,
- "x": 3181.7493629455566,
- "y": 1697.2662897109985,
- "z": "4d7c5b65.634a04",
+ "x": 2883.7778282165527,
+ "y": 2162.116442680359,
+ "z": "b04c02f8.7bb8d",
"wires": [
[
- "f87039cf.b1f5c8",
- "a17212ca.4c0c7",
- "14cb93e3.154dbc",
- "53f6cef7.f7902"
+ "9d04e94c.4edda8",
+ "2ae8cd06.209dc2"
]
]
},
{
- "id": "f87039cf.b1f5c8",
+ "id": "e209093a.387438",
"type": "set",
- "name": "set",
- "xml": "<set>\n<parameter name='error-code' value='500'/>\n<parameter name='error-message' value='Error Getting Info from CPS. Aborting RPC executiopn'/>",
+ "name": "set Variables",
+ "xml": "<set>\n<parameter name='tmp.configParameter' value='`uLThptPerSlice`' />\n<parameter name='tmp.configValue' value='`$tmp.uLThptPerSlice`' />",
"comments": "",
- "x": 3337.305030822754,
- "y": 1656.1552848815918,
- "z": "4d7c5b65.634a04",
+ "x": 2856.361026763916,
+ "y": 1979.6499471664429,
+ "z": "b04c02f8.7bb8d",
"wires": []
},
{
- "id": "a17212ca.4c0c7",
+ "id": "267fadbf.81adc2",
"type": "record",
"name": "record",
- "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.FileRecorder\">\n<parameter name=\"file\" value=\"/opt/opendaylight/current/data/log/closedLoop.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"Failed to fetch data from CPS\"/>\n<parameter name=\"field2\" value=\"`$cps-patch-dLThptPerSlice.json`\"/>\n",
+ "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.FileRecorder\">\n<parameter name=\"file\" value=\"/opt/opendaylight/current/data/log/closedLoop.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"Failed to update CPS\"/>\n<parameter name=\"field2\" value=\"`$cps-patch-uLThptPerSlice.json`\"/>\n",
"comments": "",
"outputs": 1,
- "x": 3334.4440269470215,
- "y": 1615.3499445915222,
- "z": "4d7c5b65.634a04",
+ "x": 3480.47216796875,
+ "y": 2079,
+ "z": "b04c02f8.7bb8d",
"wires": [
[]
]
},
{
- "id": "62c02278.218b8c",
+ "id": "80c7b689.e218b8",
"type": "record",
"name": "record",
- "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.FileRecorder\">\n<parameter name=\"file\" value=\"/opt/opendaylight/current/data/log/closedLoop.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"Successfully patched dLThptPerSlice\"/>\n<parameter name=\"field2\" value=\"`$patchdLThptPerSlice-cps-response.httpResponse`\"/>",
+ "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.FileRecorder\">\n<parameter name=\"file\" value=\"/opt/opendaylight/current/data/log/closedLoop.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"Inputs\"/>\n<parameter name=\"field2\" value=\"`$tmp.nearRTRICId`\"/>\n<parameter name=\"field3\" value=\"`$tmp.mcc`\"/>\n<parameter name=\"field4\" value=\"`$tmp.mnc`\"/>\n<parameter name=\"field5\" value=\"`$tmp.payload.sNSSAI`\"/>\n<parameter name=\"field6\" value=\"`$tmp.uLThptPerSlice`\"/>\n<parameter name=\"field7\" value=\"`$tmp.configParameter`\"/>\n<parameter name=\"field8\" value=\"`$tmp.configValue`\"/>",
"comments": "",
"outputs": 1,
- "x": 3391.2500190734863,
- "y": 1775.5162916183472,
- "z": "4d7c5b65.634a04",
+ "x": 2837.472053527832,
+ "y": 2015.9999599456787,
+ "z": "b04c02f8.7bb8d",
"wires": [
[]
]
},
{
- "id": "eac71052.ffbb4",
+ "id": "15c99720.f87d29",
"type": "execute",
- "name": "generate uLThptPerSliceURL cps",
- "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$prop.restapi.cps.tbdmt.execute.endpoint`\"/>\n <parameter name=\"outputPath\" value=\"tmp.cps.patchuLThptPerSlice.url\"/>\n <parameter name=\"target\" value=\"{schemaSet}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.schemaset.name`\"/>",
+ "name": "prepare mcc",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$tmp.restapi.addnSSAIEntry.ToNearRTRIC.url`\"/>\n <parameter name=\"outputPath\" value=\"tmp.restapi.addnSSAIEntry.ToNearRTRIC.url\"/>\n <parameter name=\"target\" value=\"{mcc}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.mcc`\"/>",
"comments": "",
"outputs": 1,
- "x": 2835.083656311035,
- "y": 1810.6666812896729,
- "z": "4d7c5b65.634a04",
+ "x": 1434,
+ "y": 1354,
+ "z": "b04c02f8.7bb8d",
"wires": [
[]
]
},
{
- "id": "755837fb.492b88",
+ "id": "8ccfa554.2fa6e8",
"type": "execute",
- "name": "prepare tbdmt template",
- "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$tmp.cps.patchuLThptPerSlice.url`\"/>\n <parameter name=\"outputPath\" value=\"tmp.cps.patchuLThptPerSlice.url\"/>\n <parameter name=\"target\" value=\"{templateId}\"/>\n <parameter name=\"replacement\" value=\"`$prop.tbdmt.template.patch-uLThptPerSlice`\"/>",
+ "name": "prepare mnc",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$tmp.restapi.addnSSAIEntry.ToNearRTRIC.url`\"/>\n <parameter name=\"outputPath\" value=\"tmp.restapi.addnSSAIEntry.ToNearRTRIC.url\"/>\n <parameter name=\"target\" value=\"{mnc}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.mnc`\"/>",
"comments": "",
"outputs": 1,
- "x": 2805.08349609375,
- "y": 1846.2666187286377,
- "z": "4d7c5b65.634a04",
+ "x": 1439.5,
+ "y": 1393.0000009536743,
+ "z": "b04c02f8.7bb8d",
"wires": [
[]
]
},
{
- "id": "ee4970e3.bde7c",
+ "id": "c5d126b9.e8dfa8",
"type": "record",
- "name": "record TBDMT RestAPI params",
- "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.FileRecorder\">\n<parameter name=\"file\" value=\"/opt/opendaylight/current/data/log/closedLoop.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"URL for CPS TDBMT to patch uLThptPerSlice\"/>\n<parameter name='field2' value=\"`$tmp.cps.patchuLThptPerSlice.url`\" />",
+ "name": "record",
+ "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.FileRecorder\">\n<parameter name=\"file\" value=\"/opt/opendaylight/current/data/log/closedLoop.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"Closed loop API params\"/>\n<parameter name=\"field2\" value=\"`$tmp.nearRTRICId`\"/>\n<parameter name=\"field3\" value=\"`$tmp.mcc`\"/>\n<parameter name=\"field4\" value=\"`$tmp.mnc`\"/>\n\n\n\n\n\n\n",
"comments": "",
"outputs": 1,
- "x": 2831.08349609375,
- "y": 1884.4664897918701,
- "z": "4d7c5b65.634a04",
+ "x": 1423.2498359680176,
+ "y": 1445.2498426437378,
+ "z": "b04c02f8.7bb8d",
"wires": [
[]
]
},
{
- "id": "3f7e1749.9ebda8",
+ "id": "9e4ab5af.09db38",
"type": "execute",
- "name": "patch dLThptPerSlice",
- "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"restapiUrl\" value=\"`$tmp.cps.patchuLThptPerSlice.url`\"/>\n<parameter name=\"templateFileName\" value=\"`$prop.restapi.templateDir + '/cps-templates/cps-patch-uLThptPerSlice.json'`\" />\n<parameter name=\"httpMethod\" value=\"POST\"/>\n<parameter name=\"responsePrefix\" value=\"patchuLThptPerSlice-cps-response\"/>\n<parameter name='contentType' value='application/json' /> \n<parameter name='format' value='json' />\n<parameter name='accept' value='application/json' />\n<parameter name=\"convertResponse\" value=\"true\"/>",
+ "name": "patch NearRTRIC - config",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"templateFileName\" value=\"`$prop.restapi.templateDir + '/ranSlice-closed-loop-nearRTRIC-config-patch.json'`\" />\n<parameter name=\"restapiUrl\" value=\"`$prop.controller.url + $tmp.restapi.addnSSAIEntry.ToNearRTRIC.url`\"/>\n<parameter name=\"restapiUser\" value=\"`$prop.controller.user`\" />\n<parameter name=\"restapiPassword\" value=\"`$prop.controller.pwd`\"/>\n<parameter name=\"httpMethod\" value=\"PATCH\"/>\n<parameter name=\"responsePrefix\" value=\"patch-nearRTRIC-config-response\"/>\n<parameter name='contentType' value='application/yang.patch+json' />\n<parameter name='accept' value='application/yang.patch-status+json'/>\n<parameter name='format' value='json' />",
"comments": "",
"outputs": 1,
- "x": 2798.08349609375,
- "y": 1921.4664916992188,
- "z": "4d7c5b65.634a04",
+ "x": 1469.2499961853027,
+ "y": 1512.5000066757202,
+ "z": "b04c02f8.7bb8d",
"wires": [
[
- "434c383e.3ac1a8",
- "628d0768.1183a8"
+ "9efadd8b.23cc",
+ "4f6914a0.63906c"
]
]
},
{
- "id": "628d0768.1183a8",
+ "id": "9efadd8b.23cc",
"type": "success",
"name": "success",
"xml": "<outcome value='success'>\n",
"comments": "",
"outputs": 1,
- "x": 3059.0828552246094,
- "y": 1972.2664184570312,
- "z": "4d7c5b65.634a04",
+ "x": 1702.7500076293945,
+ "y": 1510.7500066757202,
+ "z": "b04c02f8.7bb8d",
"wires": [
[
- "6b324c96.7b9424"
+ "1a5bd839.97e528"
]
]
},
{
- "id": "434c383e.3ac1a8",
+ "id": "4f6914a0.63906c",
"type": "failure",
"name": "failure",
"xml": "<outcome value='failure'>\n",
"comments": "",
"outputs": 1,
- "x": 3054.860849380493,
- "y": 1920.3774604797363,
- "z": "4d7c5b65.634a04",
+ "x": 1713.312831878662,
+ "y": 1558.3125085830688,
+ "z": "b04c02f8.7bb8d",
"wires": [
[
- "ed31ef8a.b1ec1"
+ "496bef32.a732"
]
]
},
{
- "id": "6b324c96.7b9424",
+ "id": "496bef32.a732",
"type": "block",
- "name": "block : atomic",
- "xml": "<block atomic='true'>",
- "atomic": "true",
+ "name": "block",
+ "xml": "<block>",
+ "atomic": "false",
"comments": "",
"outputs": 1,
- "x": 3234.972183227539,
- "y": 1973.1557416915894,
- "z": "4d7c5b65.634a04",
+ "x": 1862.3126754760742,
+ "y": 1559.3123455047607,
+ "z": "b04c02f8.7bb8d",
"wires": [
[
- "a870b460.fe9f68"
+ "f0a65bd4.ddc108",
+ "b19c3f0c.906e"
]
]
},
{
- "id": "ed31ef8a.b1ec1",
+ "id": "1a5bd839.97e528",
"type": "block",
- "name": "block",
- "xml": "<block>",
- "atomic": "false",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
"comments": "",
"outputs": 1,
- "x": 3200.0828590393066,
- "y": 1918.2662944793701,
- "z": "4d7c5b65.634a04",
+ "x": 1870.749683380127,
+ "y": 1509.7500076293945,
+ "z": "b04c02f8.7bb8d",
"wires": [
[
- "c8d7789d.e059f8",
- "50f408ea.d42668",
- "769aebc5.b0fdd4",
- "53f6cef7.f7902"
+ "f4086f6a.704d9"
]
]
},
{
- "id": "c8d7789d.e059f8",
- "type": "set",
- "name": "set",
- "xml": "<set>\n<parameter name='error-code' value='500'/>\n<parameter name='error-message' value='Error Getting Info from CPS. Aborting RPC executiopn'/>",
+ "id": "f0a65bd4.ddc108",
+ "type": "returnFailure",
+ "name": "return failure",
+ "xml": "<return status='failure'>\n<parameter name='ack-final' value='Y'/>\n<parameter name='error-code' value='500'/>\n<parameter name='error-message' value='Error Getting Info from ConfigDB. Aborting RPC executiopn'/>",
"comments": "",
- "x": 3395.6382026672363,
- "y": 1875.1552906036377,
- "z": "4d7c5b65.634a04",
+ "x": 2049.312599182129,
+ "y": 1584.3123679161072,
+ "z": "b04c02f8.7bb8d",
"wires": []
},
{
- "id": "50f408ea.d42668",
- "type": "record",
- "name": "record",
- "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.FileRecorder\">\n<parameter name=\"file\" value=\"/opt/opendaylight/current/data/log/closedLoop.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"UNSuccessfully Obtained MCC info from CPS\"/>\n<parameter name=\"field2\" value=\"`$cps-get-plmnid.json`\"/>\n",
- "comments": "",
- "outputs": 1,
- "x": 3392.7775268554688,
- "y": 1834.3499507904053,
- "z": "4d7c5b65.634a04",
- "wires": [
- []
- ]
- },
- {
- "id": "a870b460.fe9f68",
- "type": "record",
- "name": "record",
- "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.FileRecorder\">\n<parameter name=\"file\" value=\"/opt/opendaylight/current/data/log/closedLoop.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"Successfully patched dLThptPerSlice\"/>\n<parameter name=\"field2\" value=\"`$patchdLThptPerSlice-cps-response.httpResponse`\"/>",
+ "id": "b19c3f0c.906e",
+ "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": "",
- "outputs": 1,
- "x": 3412.5835151672363,
- "y": 1973.5164184570312,
- "z": "4d7c5b65.634a04",
- "wires": [
- []
- ]
+ "x": 2088.3130836486816,
+ "y": 1533.4233756065369,
+ "z": "b04c02f8.7bb8d",
+ "wires": []
},
{
- "id": "74d6c00.8c08c4",
+ "id": "f4086f6a.704d9",
"type": "record",
"name": "record",
- "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.FileRecorder\">\n<parameter name=\"file\" value=\"/opt/opendaylight/current/data/log/closedLoop.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"Inputs\"/>\n<parameter name=\"field2\" value=\"`$tmp.nearRTRICId`\"/>\n<parameter name=\"field3\" value=\"`$tmp.mcc`\"/>\n<parameter name=\"field4\" value=\"`$tmp.mnc`\"/>\n<parameter name=\"field5\" value=\"`$tmp.payload.sNSSAI`\"/>\n<parameter name=\"field6\" value=\"`$tmp.dLThptPerSlice`\"/>\n<parameter name=\"field7\" value=\"`$tmp.uLThptPerSlice`\"/>",
+ "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.FileRecorder\">\n<parameter name=\"file\" value=\"/opt/opendaylight/current/data/log/closedLoop.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"Successfully patched NearRTRIC configuration\"/>",
"comments": "",
"outputs": 1,
- "x": 2757.7506523132324,
- "y": 1633.6666765213013,
- "z": "4d7c5b65.634a04",
+ "x": 2083.499485015869,
+ "y": 1477.5000357627869,
+ "z": "b04c02f8.7bb8d",
"wires": [
[]
]
- },
- {
- "id": "93440679.5fd8e8",
- "type": "set",
- "name": "set Variables",
- "xml": "<set>\n<parameter name='tmp.mcc' value='`$tmp.mcc`' />\n<parameter name='tmp.mnc' value='`$tmp.mnc`' />\n",
- "comments": "",
- "x": 2778.4168281555176,
- "y": 1596.666675567627,
- "z": "4d7c5b65.634a04",
- "wires": []
- },
- {
- "id": "769aebc5.b0fdd4",
- "type": "returnFailure",
- "name": "return failure",
- "xml": "<return status='failure'>\n<parameter name='ack-final' value='Y'/>\n<parameter name='error-code' value='500'/>\n<parameter name='error-message' value='Error Getting Info from ConfigDB. Aborting RPC executiopn'/>",
- "comments": "",
- "x": 3420.0835189819336,
- "y": 1915.6666851043701,
- "z": "4d7c5b65.634a04",
- "wires": []
- },
- {
- "id": "14cb93e3.154dbc",
- "type": "returnFailure",
- "name": "return failure",
- "xml": "<return status='failure'>\n<parameter name='ack-final' value='Y'/>\n<parameter name='error-code' value='500'/>\n<parameter name='error-message' value='Error Getting Info from ConfigDB. Aborting RPC executiopn'/>",
- "comments": "",
- "x": 3357.083351135254,
- "y": 1695.66667842865,
- "z": "4d7c5b65.634a04",
- "wires": []
}
]
diff --git a/platform-logic/ran-slice-api/src/main/xml/ran-slice-api_instantiateRANSliceReconfigure-cps.xml b/platform-logic/ran-slice-api/src/main/xml/ran-slice-api_instantiateRANSliceReconfigure-cps.xml
index 98cf08dc..6fb68ef6 100644
--- a/platform-logic/ran-slice-api/src/main/xml/ran-slice-api_instantiateRANSliceReconfigure-cps.xml
+++ b/platform-logic/ran-slice-api/src/main/xml/ran-slice-api_instantiateRANSliceReconfigure-cps.xml
@@ -6,7 +6,7 @@
<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="Reached instantiateRANSliceReconfigure "/>
+ <parameter name="field1" value="Reached instantiateRANSliceReconfigure-cps "/>
</record>
<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='contains' emitsOutcome='true' >
<parameter name='source' value='`$instantiate-r-a-n-slice-input.payload`' />
@@ -387,7 +387,7 @@
<parameter name="source" value="`$tmp.cps.getPLMNID.url`"/>
<parameter name="outputPath" value="tmp.cps.getPLMNID.url"/>
<parameter name="target" value="{templateId}"/>
- <parameter name="replacement" value="`$prop.tbdmt.template.get-plmnid-mcc`"/>
+ <parameter name="replacement" value="`$prop.tbdmt.template.get-plmnid`"/>
</execute>
<record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
<parameter name="file" value="/opt/opendaylight/current/data/log/closedLoop.log" />
@@ -399,7 +399,7 @@
<parameter name="restapiUrl" value="`$tmp.cps.getPLMNID.url`"/>
<parameter name="templateFileName" value="`$prop.restapi.templateDir + '/cps-templates/cps-get-plmnid.json'`" />
<parameter name="httpMethod" value="POST"/>
- <parameter name="responsePrefix" value="getplmnmccid-cps-response"/>
+ <parameter name="responsePrefix" value="getplmnid-cps-response"/>
<parameter name='contentType' value='application/json' />
<parameter name='format' value='json' />
<parameter name='accept' value='application/json' />
@@ -413,7 +413,7 @@
<record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
<parameter name="file" value="/opt/opendaylight/current/data/log/closedLoop.log" />
<parameter name="level" value="info" />
- <parameter name="field1" value="UNSuccessfully Obtained MCC info from CPS"/>
+ <parameter name="field1" value="Failed to obtain MCC, MNC info from CPS"/>
<parameter name="field2" value="`$cps-get-plmnid.json`"/>
</record>
<return status='failure'>
@@ -476,120 +476,21 @@
<block atomic='true'>
<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'>
<parameter name='outputPath' value='tmp.plmn.mcc' />
- <parameter name='source' value="`'getplmnmccid-cps-response.[0]'`" />
+ <parameter name='source' value="`'getplmnid-cps-response.[0].mcc'`" />
</execute>
- <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
- <parameter name="file" value="/opt/opendaylight/current/data/log/closedLoop.log" />
- <parameter name="level" value="info" />
- <parameter name="field1" value="Successfully Obtained MCC info from CPS"/>
- <parameter name="field2" value="`$getplmnmccid-cps-response.httpResponse`"/>
- </record>
- </block>
- </outcome>
- </execute>
- <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >
- <parameter name="source" value="`$prop.restapi.cps.tbdmt.execute.endpoint`"/>
- <parameter name="outputPath" value="tmp.cps.getPLMNMNCID.url"/>
- <parameter name="target" value="{schemaSet}"/>
- <parameter name="replacement" value="`$tmp.schemaset.name`"/>
- </execute>
- <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >
- <parameter name="source" value="`$tmp.cps.getPLMNMNCID.url`"/>
- <parameter name="outputPath" value="tmp.cps.getPLMNMNCID.url"/>
- <parameter name="target" value="{templateId}"/>
- <parameter name="replacement" value="`$prop.tbdmt.template.get-plmnid-mnc`"/>
- </execute>
- <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
- <parameter name="file" value="/opt/opendaylight/current/data/log/closedLoop.log" />
- <parameter name="level" value="info" />
- <parameter name="field1" value="URL for CPS TDBMT to Get plmnid from sliceprofile"/>
- <parameter name='field2' value="`$tmp.cps.getPLMNMNCID.url`" />
- </record>
- <execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >
- <parameter name="restapiUrl" value="`$tmp.cps.getPLMNMNCID.url`"/>
- <parameter name="templateFileName" value="`$prop.restapi.templateDir + '/cps-templates/cps-get-plmnid.json'`" />
- <parameter name="httpMethod" value="POST"/>
- <parameter name="responsePrefix" value="getplmnmncid-cps-response"/>
- <parameter name='contentType' value='application/json' />
- <parameter name='format' value='json' />
- <parameter name='accept' value='application/json' />
- <parameter name="convertResponse" value="true"/>
- <outcome value='success'>
- <block atomic='true'>
<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'>
<parameter name='outputPath' value='tmp.plmn.mnc' />
- <parameter name='source' value="`'getplmnmncid-cps-response.[0]'`" />
+ <parameter name='source' value="`'getplmnid-cps-response.[0].mnc'`" />
</execute>
<record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
<parameter name="file" value="/opt/opendaylight/current/data/log/closedLoop.log" />
<parameter name="level" value="info" />
- <parameter name="field1" value="Successfully Obtained MNC info from Cps"/>
- <parameter name="field2" value="`$getplmnmncid-cps-response.httpResponse`"/>
+ <parameter name="field1" value="Successfully Obtained MCC, MNC info from CPS"/>
+ <parameter name="field2" value="`$tmp.plmn.mcc`"/>
+ <parameter name="field3" value="`$tmp.plmn.mnc`"/>
</record>
</block>
</outcome>
- <outcome value='failure'>
- <block>
- <block atomic='true'>
- <set>
- <parameter name="tmp.so.callbackURL" value="`$payloadJson.input.callbackURL`"/>
- <parameter name="tmp.status" value="`$error-code`"/>
- <parameter name="tmp.reason" value="`$error-message`"/>
- <parameter name="tmp.requestID" value="`$instantiateRANSlice-input.common-header.request-id`"/>
- <parameter name="tmp.action" value="`$instantiateRANSlice-input.action`"/>
- </set>
- <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
- <parameter name="file" value="/opt/opendaylight/current/data/log/so-callback-response.log" />
- <parameter name="level" value="info" />
- <parameter name="field1" value="URL for SO Callback Response"/>
- <parameter name='field2' value="`$tmp.so.callbackURL`" />
- <parameter name='field3' value="`$tmp.status`" />
- <parameter name='field4' value="`$tmp.reason`" />
- <parameter name='field5' value="`$tmp.requestID`" />
- <parameter name='field6' value="`$tmp.action`" />
- <parameter name='field7' value="`$tmp.CUCPList`" />
- <parameter name='field8' value="`$tmp.CUUPList`" />
- <parameter name='field9' value="`$tmp.DUList`" />
- </record>
- <execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >
- <parameter name="templateFileName" value="`$prop.restapi.templateDir + '/ranSlice-so-response.json'`" />
- <parameter name="restapiUrl" value="`$tmp.so.callbackURL`"/>
- <parameter name="httpMethod" value="POST"/>
- <parameter name="responsePrefix" value="so-callback-response"/>
- <parameter name='contentType' value='application/json' />
- <parameter name='format' value='json' />
- <parameter name='accept' value='*/*' />
- <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/so-callback-response.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 Getting Info from CPS. Aborting RPC executiopn'/>
- </set>
- <return status='failure'>
- <parameter name='ack-final' value='Y'/>
- <parameter name='error-code' value='500'/>
- <parameter name='error-message' value='Error Getting Info from ConfigDB. Aborting RPC executiopn'/>
- </return>
- </block>
- </outcome>
</execute>
<set>
<parameter name='tmp.mcc' value='`$tmp.plmn.mcc`'/>
@@ -638,6 +539,59 @@
</block>
</outcome>
</switch>
+ <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >
+ <parameter name="source" value="`$tmp.restapi.addnSSAIEntry.ToNearRTRIC.url`"/>
+ <parameter name="outputPath" value="tmp.restapi.addnSSAIEntry.ToNearRTRIC.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.restapi.addnSSAIEntry.ToNearRTRIC.url`"/>
+ <parameter name="outputPath" value="tmp.restapi.addnSSAIEntry.ToNearRTRIC.url"/>
+ <parameter name="target" value="{mnc}"/>
+ <parameter name="replacement" value="`$tmp.mnc`"/>
+ </execute>
+ <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
+ <parameter name="file" value="/opt/opendaylight/current/data/log/closedLoop.log" />
+ <parameter name="level" value="info" />
+ <parameter name="field1" value="Closed loop API params"/>
+ <parameter name="field2" value="`$tmp.nearRTRICId`"/>
+ <parameter name="field3" value="`$tmp.mcc`"/>
+ <parameter name="field4" value="`$tmp.mnc`"/>
+ </record>
+ <execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >
+ <parameter name="templateFileName" value="`$prop.restapi.templateDir + '/ranSlice-closed-loop-nearRTRIC-config-patch.json'`" />
+ <parameter name="restapiUrl" value="`$prop.controller.url + $tmp.restapi.addnSSAIEntry.ToNearRTRIC.url`"/>
+ <parameter name="restapiUser" value="`$prop.controller.user`" />
+ <parameter name="restapiPassword" value="`$prop.controller.pwd`"/>
+ <parameter name="httpMethod" value="PATCH"/>
+ <parameter name="responsePrefix" value="patch-nearRTRIC-config-response"/>
+ <parameter name='contentType' value='application/yang.patch+json' />
+ <parameter name='accept' value='application/yang.patch-status+json'/>
+ <parameter name='format' value='json' />
+ <outcome value='success'>
+ <block atomic='true'>
+ <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
+ <parameter name="file" value="/opt/opendaylight/current/data/log/closedLoop.log" />
+ <parameter name="level" value="info" />
+ <parameter name="field1" value="Successfully patched NearRTRIC configuration"/>
+ </record>
+ </block>
+ </outcome>
+ <outcome value='failure'>
+ <block>
+ <set>
+ <parameter name='error-code' value='500'/>
+ <parameter name='error-message' value='Error Getting Info from ConfigDB. Aborting RPC executiopn'/>
+ </set>
+ <return status='failure'>
+ <parameter name='ack-final' value='Y'/>
+ <parameter name='error-code' value='500'/>
+ <parameter name='error-message' value='Error Getting Info from ConfigDB. Aborting RPC executiopn'/>
+ </return>
+ </block>
+ </outcome>
+ </execute>
<set>
<parameter name='tmp.getAnchors.URL' value="`$prop.restapi.cps.anchors.endpoint`"/>
</set>
@@ -727,6 +681,8 @@
<set>
<parameter name='tmp.mcc' value='`$tmp.mcc`' />
<parameter name='tmp.mnc' value='`$tmp.mnc`' />
+ <parameter name='tmp.configParameter' value='`dLThptPerSlice`' />
+ <parameter name='tmp.configValue' value='`$tmp.dLThptPerSlice`' />
</set>
<record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
<parameter name="file" value="/opt/opendaylight/current/data/log/closedLoop.log" />
@@ -737,29 +693,30 @@
<parameter name="field4" value="`$tmp.mnc`"/>
<parameter name="field5" value="`$tmp.payload.sNSSAI`"/>
<parameter name="field6" value="`$tmp.dLThptPerSlice`"/>
- <parameter name="field7" value="`$tmp.uLThptPerSlice`"/>
+ <parameter name="field7" value="`$tmp.configParameter`"/>
+ <parameter name="field8" value="`$tmp.configValue`"/>
</record>
<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >
<parameter name="source" value="`$prop.restapi.cps.tbdmt.execute.endpoint`"/>
- <parameter name="outputPath" value="tmp.cps.patchdLThptPerSlice.url"/>
+ <parameter name="outputPath" value="tmp.cps.patchconfigData.url"/>
<parameter name="target" value="{schemaSet}"/>
<parameter name="replacement" value="`$tmp.schemaset.name`"/>
</execute>
<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >
- <parameter name="source" value="`$tmp.cps.patchdLThptPerSlice.url`"/>
- <parameter name="outputPath" value="tmp.cps.patchdLThptPerSlice.url"/>
+ <parameter name="source" value="`$tmp.cps.patchconfigData.url`"/>
+ <parameter name="outputPath" value="tmp.cps.patchconfigData.url"/>
<parameter name="target" value="{templateId}"/>
- <parameter name="replacement" value="`$prop.tbdmt.template.patch-dLThptPerSlice`"/>
+ <parameter name="replacement" value="`$prop.tbdmt.template.patch-configData`"/>
</execute>
<record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
<parameter name="file" value="/opt/opendaylight/current/data/log/closedLoop.log" />
<parameter name="level" value="info" />
<parameter name="field1" value="URL for CPS TDBMT to patch dLThptPerSlice"/>
- <parameter name='field2' value="`$tmp.cps.patchdLThptPerSlice.url`" />
+ <parameter name='field2' value="`$tmp.cps.patchconfigData.url`" />
</record>
<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >
- <parameter name="restapiUrl" value="`$tmp.cps.patchdLThptPerSlice.url`"/>
- <parameter name="templateFileName" value="`$prop.restapi.templateDir + '/cps-templates/cps-patch-dLThptPerSlice.json'`" />
+ <parameter name="restapiUrl" value="`$tmp.cps.patchconfigData.url`"/>
+ <parameter name="templateFileName" value="`$prop.restapi.templateDir + '/cps-templates/cps-patch-configData.json'`" />
<parameter name="httpMethod" value="POST"/>
<parameter name="responsePrefix" value="patchdLThptPerSlice-cps-response"/>
<parameter name='contentType' value='application/json' />
@@ -768,60 +725,12 @@
<parameter name="convertResponse" value="true"/>
<outcome value='failure'>
<block>
- <block atomic='true'>
- <set>
- <parameter name="tmp.so.callbackURL" value="`$payloadJson.input.callbackURL`"/>
- <parameter name="tmp.status" value="`$error-code`"/>
- <parameter name="tmp.reason" value="`$error-message`"/>
- <parameter name="tmp.requestID" value="`$instantiateRANSlice-input.common-header.request-id`"/>
- <parameter name="tmp.action" value="`$instantiateRANSlice-input.action`"/>
- </set>
- <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
- <parameter name="file" value="/opt/opendaylight/current/data/log/so-callback-response.log" />
- <parameter name="level" value="info" />
- <parameter name="field1" value="URL for SO Callback Response"/>
- <parameter name='field2' value="`$tmp.so.callbackURL`" />
- <parameter name='field3' value="`$tmp.status`" />
- <parameter name='field4' value="`$tmp.reason`" />
- <parameter name='field5' value="`$tmp.requestID`" />
- <parameter name='field6' value="`$tmp.action`" />
- <parameter name='field7' value="`$tmp.CUCPList`" />
- <parameter name='field8' value="`$tmp.CUUPList`" />
- <parameter name='field9' value="`$tmp.DUList`" />
- </record>
- <execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >
- <parameter name="templateFileName" value="`$prop.restapi.templateDir + '/ranSlice-so-response.json'`" />
- <parameter name="restapiUrl" value="`$tmp.so.callbackURL`"/>
- <parameter name="httpMethod" value="POST"/>
- <parameter name="responsePrefix" value="so-callback-response"/>
- <parameter name='contentType' value='application/json' />
- <parameter name='format' value='json' />
- <parameter name='accept' value='*/*' />
- <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/so-callback-response.log" />
- <parameter name="level" value="info" />
- <parameter name="field1" value="SO Response Sent "/>
- </record>
- </block>
- </outcome>
- </execute>
- </block>
<record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
<parameter name="file" value="/opt/opendaylight/current/data/log/closedLoop.log" />
<parameter name="level" value="info" />
- <parameter name="field1" value="Failed to fetch data from CPS"/>
- <parameter name="field2" value="`$cps-patch-dLThptPerSlice.json`"/>
+ <parameter name="field1" value="Failed to update CPS"/>
+ <parameter name="field2" value="`$cps-patch-configData.json`"/>
+ <parameter name="field3" value="`$patchdLThptPerSlice-cps-response.httpResponse`"/>
</record>
<set>
<parameter name='error-code' value='500'/>
@@ -845,6 +754,22 @@
</block>
</outcome>
</execute>
+ <set>
+ <parameter name='tmp.configParameter' value='`uLThptPerSlice`' />
+ <parameter name='tmp.configValue' value='`$tmp.uLThptPerSlice`' />
+ </set>
+ <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
+ <parameter name="file" value="/opt/opendaylight/current/data/log/closedLoop.log" />
+ <parameter name="level" value="info" />
+ <parameter name="field1" value="Inputs"/>
+ <parameter name="field2" value="`$tmp.nearRTRICId`"/>
+ <parameter name="field3" value="`$tmp.mcc`"/>
+ <parameter name="field4" value="`$tmp.mnc`"/>
+ <parameter name="field5" value="`$tmp.payload.sNSSAI`"/>
+ <parameter name="field6" value="`$tmp.uLThptPerSlice`"/>
+ <parameter name="field7" value="`$tmp.configParameter`"/>
+ <parameter name="field8" value="`$tmp.configValue`"/>
+ </record>
<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >
<parameter name="source" value="`$prop.restapi.cps.tbdmt.execute.endpoint`"/>
<parameter name="outputPath" value="tmp.cps.patchuLThptPerSlice.url"/>
@@ -855,7 +780,7 @@
<parameter name="source" value="`$tmp.cps.patchuLThptPerSlice.url`"/>
<parameter name="outputPath" value="tmp.cps.patchuLThptPerSlice.url"/>
<parameter name="target" value="{templateId}"/>
- <parameter name="replacement" value="`$prop.tbdmt.template.patch-uLThptPerSlice`"/>
+ <parameter name="replacement" value="`$prop.tbdmt.template.patch-configData`"/>
</execute>
<record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
<parameter name="file" value="/opt/opendaylight/current/data/log/closedLoop.log" />
@@ -865,7 +790,7 @@
</record>
<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >
<parameter name="restapiUrl" value="`$tmp.cps.patchuLThptPerSlice.url`"/>
- <parameter name="templateFileName" value="`$prop.restapi.templateDir + '/cps-templates/cps-patch-uLThptPerSlice.json'`" />
+ <parameter name="templateFileName" value="`$prop.restapi.templateDir + '/cps-templates/cps-patch-configData.json'`" />
<parameter name="httpMethod" value="POST"/>
<parameter name="responsePrefix" value="patchuLThptPerSlice-cps-response"/>
<parameter name='contentType' value='application/json' />
@@ -874,60 +799,11 @@
<parameter name="convertResponse" value="true"/>
<outcome value='failure'>
<block>
- <block atomic='true'>
- <set>
- <parameter name="tmp.so.callbackURL" value="`$payloadJson.input.callbackURL`"/>
- <parameter name="tmp.status" value="`$error-code`"/>
- <parameter name="tmp.reason" value="`$error-message`"/>
- <parameter name="tmp.requestID" value="`$instantiateRANSlice-input.common-header.request-id`"/>
- <parameter name="tmp.action" value="`$instantiateRANSlice-input.action`"/>
- </set>
- <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
- <parameter name="file" value="/opt/opendaylight/current/data/log/so-callback-response.log" />
- <parameter name="level" value="info" />
- <parameter name="field1" value="URL for SO Callback Response"/>
- <parameter name='field2' value="`$tmp.so.callbackURL`" />
- <parameter name='field3' value="`$tmp.status`" />
- <parameter name='field4' value="`$tmp.reason`" />
- <parameter name='field5' value="`$tmp.requestID`" />
- <parameter name='field6' value="`$tmp.action`" />
- <parameter name='field7' value="`$tmp.CUCPList`" />
- <parameter name='field8' value="`$tmp.CUUPList`" />
- <parameter name='field9' value="`$tmp.DUList`" />
- </record>
- <execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >
- <parameter name="templateFileName" value="`$prop.restapi.templateDir + '/ranSlice-so-response.json'`" />
- <parameter name="restapiUrl" value="`$tmp.so.callbackURL`"/>
- <parameter name="httpMethod" value="POST"/>
- <parameter name="responsePrefix" value="so-callback-response"/>
- <parameter name='contentType' value='application/json' />
- <parameter name='format' value='json' />
- <parameter name='accept' value='*/*' />
- <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/so-callback-response.log" />
- <parameter name="level" value="info" />
- <parameter name="field1" value="SO Response Sent "/>
- </record>
- </block>
- </outcome>
- </execute>
- </block>
<record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
<parameter name="file" value="/opt/opendaylight/current/data/log/closedLoop.log" />
<parameter name="level" value="info" />
- <parameter name="field1" value="UNSuccessfully Obtained MCC info from CPS"/>
- <parameter name="field2" value="`$cps-get-plmnid.json`"/>
+ <parameter name="field1" value="Failed to update CPS"/>
+ <parameter name="field2" value="`$cps-patch-uLThptPerSlice.json`"/>
</record>
<set>
<parameter name='error-code' value='500'/>
@@ -945,8 +821,8 @@
<record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
<parameter name="file" value="/opt/opendaylight/current/data/log/closedLoop.log" />
<parameter name="level" value="info" />
- <parameter name="field1" value="Successfully patched dLThptPerSlice"/>
- <parameter name="field2" value="`$patchdLThptPerSlice-cps-response.httpResponse`"/>
+ <parameter name="field1" value="Successfully patched uLThptPerSlice"/>
+ <parameter name="field2" value="`$patchuLThptPerSlice-cps-response.httpResponse`"/>
</record>
</block>
</outcome>
@@ -1094,7 +970,7 @@
<parameter name="source" value="`$tmp.cps.getPLMNID.url`"/>
<parameter name="outputPath" value="tmp.cps.getPLMNID.url"/>
<parameter name="target" value="{templateId}"/>
- <parameter name="replacement" value="`$prop.tbdmt.template.get-plmnid-mcc`"/>
+ <parameter name="replacement" value="`$prop.tbdmt.template.get-plmnid`"/>
</execute>
<record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
<parameter name="file" value="/opt/opendaylight/current/data/log/closedLoop.log" />
@@ -1106,7 +982,7 @@
<parameter name="restapiUrl" value="`$tmp.cps.getPLMNID.url`"/>
<parameter name="templateFileName" value="`$prop.restapi.templateDir + '/cps-templates/cps-get-plmnid.json'`" />
<parameter name="httpMethod" value="POST"/>
- <parameter name="responsePrefix" value="getplmnmccid-cps-response"/>
+ <parameter name="responsePrefix" value="getplmnid-cps-response"/>
<parameter name='contentType' value='application/json' />
<parameter name='format' value='json' />
<parameter name='accept' value='application/json' />
@@ -1120,7 +996,7 @@
<record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
<parameter name="file" value="/opt/opendaylight/current/data/log/closedLoop.log" />
<parameter name="level" value="info" />
- <parameter name="field1" value="UNSuccessfully Obtained MCC info from CPS"/>
+ <parameter name="field1" value="Failed to obtain MCC, MNC info from CPS"/>
<parameter name="field2" value="`$cps-get-plmnid.json`"/>
</record>
<return status='failure'>
@@ -1183,120 +1059,21 @@
<block atomic='true'>
<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'>
<parameter name='outputPath' value='tmp.plmn.mcc' />
- <parameter name='source' value="`'getplmnmccid-cps-response.[0]'`" />
+ <parameter name='source' value="`'getplmnid-cps-response.[0].mcc'`" />
</execute>
- <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
- <parameter name="file" value="/opt/opendaylight/current/data/log/closedLoop.log" />
- <parameter name="level" value="info" />
- <parameter name="field1" value="Successfully Obtained MCC info from CPS"/>
- <parameter name="field2" value="`$getplmnmccid-cps-response.httpResponse`"/>
- </record>
- </block>
- </outcome>
- </execute>
- <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >
- <parameter name="source" value="`$prop.restapi.cps.tbdmt.execute.endpoint`"/>
- <parameter name="outputPath" value="tmp.cps.getPLMNMNCID.url"/>
- <parameter name="target" value="{schemaSet}"/>
- <parameter name="replacement" value="`$tmp.schemaset.name`"/>
- </execute>
- <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >
- <parameter name="source" value="`$tmp.cps.getPLMNMNCID.url`"/>
- <parameter name="outputPath" value="tmp.cps.getPLMNMNCID.url"/>
- <parameter name="target" value="{templateId}"/>
- <parameter name="replacement" value="`$prop.tbdmt.template.get-plmnid-mnc`"/>
- </execute>
- <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
- <parameter name="file" value="/opt/opendaylight/current/data/log/closedLoop.log" />
- <parameter name="level" value="info" />
- <parameter name="field1" value="URL for CPS TDBMT to Get plmnid from sliceprofile"/>
- <parameter name='field2' value="`$tmp.cps.getPLMNMNCID.url`" />
- </record>
- <execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >
- <parameter name="restapiUrl" value="`$tmp.cps.getPLMNMNCID.url`"/>
- <parameter name="templateFileName" value="`$prop.restapi.templateDir + '/cps-templates/cps-get-plmnid.json'`" />
- <parameter name="httpMethod" value="POST"/>
- <parameter name="responsePrefix" value="getplmnmncid-cps-response"/>
- <parameter name='contentType' value='application/json' />
- <parameter name='format' value='json' />
- <parameter name='accept' value='application/json' />
- <parameter name="convertResponse" value="true"/>
- <outcome value='success'>
- <block atomic='true'>
<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'>
<parameter name='outputPath' value='tmp.plmn.mnc' />
- <parameter name='source' value="`'getplmnmncid-cps-response.[0]'`" />
+ <parameter name='source' value="`'getplmnid-cps-response.[0].mnc'`" />
</execute>
<record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
<parameter name="file" value="/opt/opendaylight/current/data/log/closedLoop.log" />
<parameter name="level" value="info" />
- <parameter name="field1" value="Successfully Obtained MNC info from Cps"/>
- <parameter name="field2" value="`$getplmnmncid-cps-response.httpResponse`"/>
+ <parameter name="field1" value="Successfully Obtained MCC, MNC info from CPS"/>
+ <parameter name="field2" value="`$tmp.plmn.mcc`"/>
+ <parameter name="field3" value="`$tmp.plmn.mnc`"/>
</record>
</block>
</outcome>
- <outcome value='failure'>
- <block>
- <block atomic='true'>
- <set>
- <parameter name="tmp.so.callbackURL" value="`$payloadJson.input.callbackURL`"/>
- <parameter name="tmp.status" value="`$error-code`"/>
- <parameter name="tmp.reason" value="`$error-message`"/>
- <parameter name="tmp.requestID" value="`$instantiateRANSlice-input.common-header.request-id`"/>
- <parameter name="tmp.action" value="`$instantiateRANSlice-input.action`"/>
- </set>
- <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
- <parameter name="file" value="/opt/opendaylight/current/data/log/so-callback-response.log" />
- <parameter name="level" value="info" />
- <parameter name="field1" value="URL for SO Callback Response"/>
- <parameter name='field2' value="`$tmp.so.callbackURL`" />
- <parameter name='field3' value="`$tmp.status`" />
- <parameter name='field4' value="`$tmp.reason`" />
- <parameter name='field5' value="`$tmp.requestID`" />
- <parameter name='field6' value="`$tmp.action`" />
- <parameter name='field7' value="`$tmp.CUCPList`" />
- <parameter name='field8' value="`$tmp.CUUPList`" />
- <parameter name='field9' value="`$tmp.DUList`" />
- </record>
- <execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >
- <parameter name="templateFileName" value="`$prop.restapi.templateDir + '/ranSlice-so-response.json'`" />
- <parameter name="restapiUrl" value="`$tmp.so.callbackURL`"/>
- <parameter name="httpMethod" value="POST"/>
- <parameter name="responsePrefix" value="so-callback-response"/>
- <parameter name='contentType' value='application/json' />
- <parameter name='format' value='json' />
- <parameter name='accept' value='*/*' />
- <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/so-callback-response.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 Getting Info from CPS. Aborting RPC executiopn'/>
- </set>
- <return status='failure'>
- <parameter name='ack-final' value='Y'/>
- <parameter name='error-code' value='500'/>
- <parameter name='error-message' value='Error Getting Info from ConfigDB. Aborting RPC executiopn'/>
- </return>
- </block>
- </outcome>
</execute>
<set>
<parameter name='tmp.mcc' value='`$tmp.plmn.mcc`'/>
diff --git a/platform-logic/restapi-templates/src/main/json/cps-templates/cps-patch-dLThptPerSlice.json b/platform-logic/restapi-templates/src/main/json/cps-templates/cps-patch-configData.json
index 07bc0fac..7a18df9d 100644
--- a/platform-logic/restapi-templates/src/main/json/cps-templates/cps-patch-dLThptPerSlice.json
+++ b/platform-logic/restapi-templates/src/main/json/cps-templates/cps-patch-configData.json
@@ -8,8 +8,8 @@
"payload": {
"configData": [
{
-"configParameter":"dLThptPerSlice",
-"configValue":${tmp.dLThptPerSlice}
+"configParameter":${tmp.configParameter},
+"configValue":${tmp.configValue}
}
]
}
diff --git a/platform-logic/restapi-templates/src/main/json/cps-templates/cps-patch-uLThptPerSlice.json b/platform-logic/restapi-templates/src/main/json/cps-templates/cps-patch-uLThptPerSlice.json
deleted file mode 100644
index ae1ab6cd..00000000
--- a/platform-logic/restapi-templates/src/main/json/cps-templates/cps-patch-uLThptPerSlice.json
+++ /dev/null
@@ -1,16 +0,0 @@
-{
- "inputParameters":{
- "idNearRTRIC":${tmp.nearRTRICId},
- "mcc":${tmp.mcc},
- "mnc":${tmp.mnc},
- "sNssai":${tmp.payload.sNSSAI}
- },
-"payload": {
-"configData": [
-{
-"configParameter":"uLThptPerSlice",
-"configValue":${tmp.uLThptPerSlice}
-}
-]
-}
-}