diff options
author | denilson.l65 <denilson.l65@wipro.com> | 2022-03-02 19:51:21 +0000 |
---|---|---|
committer | denilson.l65 <denilson.l65@wipro.com> | 2022-03-02 20:17:09 +0000 |
commit | ede11835bced7683c305ef57aea877016a23d034 (patch) | |
tree | 45a2092abfbcd19a7d32371d54d9678c242c804a /platform-logic | |
parent | 75660992f2d063fcef62d9dbe6f0a13176d14d68 (diff) |
SDN-R RANSlice Reconfigure CPS Integration
Issue-ID: CCSDK-3596
Signed-off-by: denilson.l65 <denilson.l65@wipro.com>
Change-Id: Iec21bed84e2c322ae8617985f689cb799bec1905
Diffstat (limited to 'platform-logic')
6 files changed, 6042 insertions, 458 deletions
diff --git a/platform-logic/ran-slice-api/src/main/json/ran-slice-api_instantiateRANSlice.json b/platform-logic/ran-slice-api/src/main/json/ran-slice-api_instantiateRANSlice.json index 59e32d83..79a2ceca 100644 --- a/platform-logic/ran-slice-api/src/main/json/ran-slice-api_instantiateRANSlice.json +++ b/platform-logic/ran-slice-api/src/main/json/ran-slice-api_instantiateRANSlice.json @@ -1,36 +1,36 @@ [ { - "id": "9c5997f.1b2f868", + "id": "3f941b4b.2702e4", "type": "method", "name": "method", "xml": "<method rpc='instantiateRANSlice' mode='sync'>\n", "comments": "", "outputs": 1, - "x": 180.75, - "y": 245.98958778381348, - "z": "10e7919c.99411e", + "x": 124, + "y": 204.9895896911621, + "z": "f9d3d04a.3c65", "wires": [ [ - "5fe08ab2.6f8d74" + "7a80f952.c6a8b8" ] ] }, { - "id": "d54c429.e02bec", + "id": "1d8737b8.63b7f8", "type": "dgstart", "name": "DGSTART", "outputs": 1, - "x": 183.75, - "y": 95.98958396911621, - "z": "10e7919c.99411e", + "x": 127, + "y": 54.989585876464844, + "z": "f9d3d04a.3c65", "wires": [ [ - "a53fa1e.7af606" + "ce2733d8.99f52" ] ] }, { - "id": "a53fa1e.7af606", + "id": "ce2733d8.99f52", "type": "service-logic", "name": "ran-slice-api ${project.version}", "module": "ran-slice-api", @@ -38,1358 +38,1449 @@ "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": 241.74998474121094, - "y": 156.98967933654785, - "z": "10e7919c.99411e", + "x": 184.99998474121094, + "y": 115.98968124389648, + "z": "f9d3d04a.3c65", "wires": [ [ - "9c5997f.1b2f868" + "3f941b4b.2702e4" ] ] }, { - "id": "5fe08ab2.6f8d74", + "id": "7a80f952.c6a8b8", "type": "block", "name": "block : atomic", "xml": "<block atomic='true'>", "atomic": "true", "comments": "", "outputs": 1, - "x": 190.23959732055664, - "y": 410.9896287918091, - "z": "10e7919c.99411e", + "x": 133.48959732055664, + "y": 369.9896306991577, + "z": "f9d3d04a.3c65", "wires": [ [ - "8af7a6ac.6f8f68", - "3fa9537c.74c23c", - "549c9b20.009974", - "2f71d7ee.1152f8", - "8960b53e.683758", - "77ecb7a4.831ff8", - "78565add.fd2bf4", - "8ecb41b7.616c6", - "fae20792.9b5088" + "41563eb1.4e85c", + "31a05301.7c3e2c", + "ccadd09.547343", + "20cbc620.3646ca", + "fbc241df.458d3", + "c2591232.df978", + "81c6b27a.38845", + "d0bde4c8.642a28", + "a9edd79d.7f4d18" ] ] }, { - "id": "8ecb41b7.616c6", + "id": "d0bde4c8.642a28", "type": "returnSuccess", "name": "return success", "xml": "<return status='success'>\n<parameter name=\"ack-final\" value=\"Y\" />\n<parameter name=\"error-code\" value=\"200\" />\n<parameter name=\"error-message\" value=\"SUCCESSFUL Execution\" />", "comments": "", - "x": 450.23958587646484, - "y": 956.9899950027466, - "z": "10e7919c.99411e", + "x": 393.48958587646484, + "y": 915.9899969100952, + "z": "f9d3d04a.3c65", "wires": [] }, { - "id": "51c1cb02.830f94", + "id": "c9ac38c7.5934a8", "type": "comment", "name": "instantiateRANSlice", "info": "", "comments": "", - "x": 465.75, - "y": 88.99999809265137, - "z": "10e7919c.99411e", + "x": 409, + "y": 48, + "z": "f9d3d04a.3c65", "wires": [] }, { - "id": "8af7a6ac.6f8f68", + "id": "41563eb1.4e85c", "type": "record", "name": "record", "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.FileRecorder\">\n<parameter name=\"file\" value=\"/opt/opendaylight/current/data/log/instantiateRANSlice.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"RPC to handle instantiateRANSlice.: \"/>\n<parameter name=\"field2\" value=\"`$instantiate-r-a-n-slice-input.action`\"/>\n<parameter name=\"field3\" value=\"`$instantiate-r-a-n-slice-input.common-header.timestamp`\"/>\n<parameter name=\"field4\" value=\"`$instantiate-r-a-n-slice-input.common-header.request-id`\"/>\n<parameter name=\"field5\" value=\"`$instantiate-r-a-n-slice-input.common-header.originator-id`\"/>\n<parameter name=\"field6\" value=\"RPC Payload String \"/>\n<parameter name=\"field7\" value=\"`$instantiate-r-a-n-slice-input.payload`\"/>", "comments": "", "outputs": 1, - "x": 523.7503356933594, - "y": 140.0104579925537, - "z": "10e7919c.99411e", + "x": 467.0003356933594, + "y": 99.01045989990234, + "z": "f9d3d04a.3c65", "wires": [ [] ] }, { - "id": "549c9b20.009974", + "id": "ccadd09.547343", "type": "execute", "name": "execute jsonStringToCtx", "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='jsonStringToCtx'>\n\t<parameter name='source' value='instantiate-r-a-n-slice-input.payload' />\n\t<parameter name='outputPath' value='payloadJson' />\n\t<parameter name='isEscaped' value='false' />", "comments": "", "outputs": 1, - "x": 572.7500915527344, - "y": 229.01042556762695, - "z": "10e7919c.99411e", + "x": 516.0000915527344, + "y": 188.0104274749756, + "z": "f9d3d04a.3c65", "wires": [ [ - "e1387c7e.c5255" + "1bc972ad.8fa63d" ] ] }, { - "id": "e1387c7e.c5255", + "id": "1bc972ad.8fa63d", "type": "other", "name": "success", "xml": "<outcome value='success'>\n", "comments": "", "outputs": 1, - "x": 800.7501029968262, - "y": 209.01044082641602, - "z": "10e7919c.99411e", + "x": 744.0001029968262, + "y": 168.01044273376465, + "z": "f9d3d04a.3c65", "wires": [ [ - "5319bb09.5f7994" + "e67c32ca.22c34" ] ] }, { - "id": "38e9a51b.61477a", + "id": "34a92a48.207396", "type": "record", "name": "record", "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.FileRecorder\">\n<parameter name=\"file\" value=\"/opt/opendaylight/current/data/log/instantiateRANSlice.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"Payload for instantiateRANSlice.: \"/>\n<parameter name=\"field2\" value=\"`$payloadJson.input.sliceProfile.sliceProfileId`\"/>\n<parameter name=\"field3\" value=\"`$payloadJson.input.sliceProfile.NSSAI`\"/>\n<parameter name=\"field4\" value=\"`$payloadJson.input.sliceProfile.maxNumberofUEs`\"/>\n<parameter name=\"field5\" value=\"`$payloadJson.input.sliceProfile.latency`\"/>\n<parameter name=\"field6\" value=\"`$payloadJson.input.sliceProfile.uLThptPerSlice`\"/>\n<parameter name=\"field7\" value=\"`$payloadJson.input.sliceProfile.dLThptPerSlice`\"/>\n<parameter name=\"field8\" value=\"`$payloadJson.input.sliceProfile.maxNumberofConns`\"/>\n<parameter name=\"field9\" value=\"`$payloadJson.input.sliceProfile.coverageAreaList[0]`\"/>\n<parameter name=\"field10\" value=\"`$payloadJson.input.sliceProfile.uEMobilityLevel`\"/>\n<parameter name=\"field11\" value=\"`$payloadJson.input.sliceProfile.resourceSharingLevel`\"/>\n<parameter name=\"field12\" value=\"`$payloadJson.input.RANNSSIId`\"/>\n<parameter name=\"field13\" value=\"`$payloadJson.input.RANNFNSSIId`\"/>\n<parameter name=\"field14\" value=\"`$payloadJson.input.callbackURL`\"/>\n\n\n", "comments": "", "outputs": 1, - "x": 1143.7502765655518, - "y": 216.0104694366455, - "z": "10e7919c.99411e", + "x": 1087.0002765655518, + "y": 175.01047134399414, + "z": "f9d3d04a.3c65", "wires": [ [] ] }, { - "id": "2f71d7ee.1152f8", + "id": "20cbc620.3646ca", "type": "execute", "name": "execute Properties", "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.prop.PropertiesNode' method='readProperties' >\n <parameter name='fileName' value='/opt/onap/ccsdk/data/properties/ran-slice-api-dg.properties' />\n <parameter name='contextPrefix' value='prop' />\n", "comments": "", "outputs": 1, - "x": 554.7500534057617, - "y": 314.0103826522827, - "z": "10e7919c.99411e", + "x": 498.0000534057617, + "y": 273.01038455963135, + "z": "f9d3d04a.3c65", "wires": [ [] ] }, { - "id": "8960b53e.683758", + "id": "fbc241df.458d3", "type": "record", "name": "record", "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.FileRecorder\">\n<parameter name=\"file\" value=\"/opt/opendaylight/current/data/log/instantiateRANSlice.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"Properties read .. controller details \"/>\n<parameter name=\"field2\" value=\"`$prop.controller.user`\"/>\n<parameter name=\"field3\" value=\"`$prop.controller.pwd`\"/>\n<parameter name=\"field4\" value=\"`$prop.controller.url`\"/>\n<parameter name=\"field5\" value=\"ransim-mounted (true/false): \"/>\n<parameter name=\"field6\" value=\"`$prop.ransim-mounted`\"/>\n<parameter name=\"field7\" value=\"config DB deployed (true/false): \"/>\n<parameter name=\"field8\" value=\"`$prop.configdb-deployed`\"/>", "comments": "", "outputs": 1, - "x": 533.7500953674316, - "y": 363.01042556762695, - "z": "10e7919c.99411e", + "x": 477.00009536743164, + "y": 322.0104274749756, + "z": "f9d3d04a.3c65", "wires": [ [] ] }, { - "id": "77ecb7a4.831ff8", + "id": "c2591232.df978", "type": "switchNode", "name": "switch configdb deployed", "xml": "<switch test='`$prop.configdb-deployed`'>\n", "comments": "", "outputs": 1, - "x": 426.75011444091797, - "y": 730.8993272781372, - "z": "10e7919c.99411e", + "x": 370.00011444091797, + "y": 689.8993291854858, + "z": "f9d3d04a.3c65", "wires": [ [ - "f59f9016.323c1", - "bb2101f5.74d22" + "73aff694.f5c308", + "17edd644.4e6b2a" ] ] }, { - "id": "f59f9016.323c1", + "id": "73aff694.f5c308", "type": "outcome", "name": "ConfigDB Deployed", "xml": "<outcome value='true'>\n", "comments": "", "outputs": 1, - "x": 646.7501449584961, - "y": 716.8992967605591, - "z": "10e7919c.99411e", + "x": 590.0001449584961, + "y": 675.8992986679077, + "z": "f9d3d04a.3c65", "wires": [ [ - "bec0868c.2beb98" + "ac3dcb7.c4e2a38" ] ] }, { - "id": "3fa9537c.74c23c", + "id": "31a05301.7c3e2c", "type": "set", "name": "set default status value", "xml": "<set>\n<parameter name='error-code' value='200' />\n<parameter name='error-message' value='Successful execution of instantiateRANSice RPC' />", "comments": "", - "x": 572.7500915527344, - "y": 188.0104751586914, - "z": "10e7919c.99411e", + "x": 516.0000915527344, + "y": 147.01047706604004, + "z": "f9d3d04a.3c65", "wires": [] }, { - "id": "e8e9ca45.d5eea8", + "id": "b2d8bfe1.fb9e3", "type": "execute", "name": "printContext", "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='printContext' >\n<parameter name='filename' value='/opt/opendaylight/current/data/log/ranSlice-instantiateRANSlice-context.log' />\n\n\n", "comments": "", "outputs": 1, - "x": 1161.7502746582031, - "y": 150.01044178009033, - "z": "10e7919c.99411e", + "x": 1105.0002746582031, + "y": 109.01044368743896, + "z": "f9d3d04a.3c65", "wires": [ [] ] }, { - "id": "5319bb09.5f7994", + "id": "e67c32ca.22c34", "type": "block", "name": "block : atomic", "xml": "<block atomic='true'>", "atomic": "true", "comments": "", "outputs": 1, - "x": 969.7501907348633, - "y": 184.01043915748596, - "z": "10e7919c.99411e", + "x": 913.0001907348633, + "y": 143.0104410648346, + "z": "f9d3d04a.3c65", "wires": [ [ - "e8e9ca45.d5eea8", - "38e9a51b.61477a" + "b2d8bfe1.fb9e3", + "34a92a48.207396" ] ] }, { - "id": "a82c1628.1048e8", + "id": "b7d815c7.418ce8", "type": "set", "name": "set Temp Variables", "xml": "<set>\n<parameter name='tmp.payload.callbackURL' value='`$payloadJson.input.callbackURL`'/>\n<parameter name='tmp.payload.RANNFNSSIId' value='`$payloadJson.input.RANNFNSSIId`'/>\n<parameter name='tmp.payload.RANNSSIId' value='`$payloadJson.input.RANNSSIId`'/>\n<parameter name='tmp.payload.coverageAreaList_length' value='`$payloadJson.input.sliceProfile.coverageAreaTAList_length`'/>\n<parameter name='tmp.payload.dLThptPerSlice' value='`$payloadJson.input.sliceProfile.dLThptPerSlice`'/>\n<parameter name='tmp.payload.latency' value='`$payloadJson.input.sliceProfile.latency`'/>\n<parameter name='tmp.payload.maxNumberofConns' value='`$payloadJson.input.sliceProfile.maxNumberofConns`'/>\n<parameter name='tmp.payload.maxNumberofUEs' value='`$payloadJson.input.sliceProfile.maxNumberofUEs`'/>\n<parameter name='tmp.payload.resourceSharingLevel' value='`$payloadJson.input.sliceProfile.resourceSharingLevel`'/>\n<parameter name='tmp.payload.sliceProfileId' value='`$payloadJson.input.sliceProfile.sliceProfileId`'/>\n<parameter name='tmp.payload.sNSSAI' value='`$payloadJson.input.sliceProfile.snssaiList[0]`'/>\n<parameter name='tmp.payload.uEMobilityLevel' value='`$payloadJson.input.sliceProfile.uEMobilityLevel`'/>\n<parameter name='tmp.payload.uLThptPerSlice' value='`$payloadJson.input.sliceProfile.uLThptPerSlice`'/>\n<parameter name='tmp.payload.pLMNId' value='`$payloadJson.input.sliceProfile.pLMNIdList[0]`'/>", "comments": "", - "x": 1413.7503280639648, - "y": 390.0104556083679, - "z": "10e7919c.99411e", + "x": 1357.0003280639648, + "y": 349.01045751571655, + "z": "f9d3d04a.3c65", "wires": [] }, { - "id": "bec0868c.2beb98", + "id": "ac3dcb7.c4e2a38", "type": "block", "name": "block : atomic", "xml": "<block atomic='true'>", "atomic": "true", "comments": "", "outputs": 1, - "x": 732.7501678466797, - "y": 823.0000047683716, - "z": "10e7919c.99411e", + "x": 676.0001678466797, + "y": 782.0000066757202, + "z": "f9d3d04a.3c65", "wires": [ [ - "a7f378f7.978f78" + "b41e996d.bd8628" ] ] }, { - "id": "78565add.fd2bf4", + "id": "81c6b27a.38845", "type": "execute", "name": "printContext", "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='printContext' >\n<parameter name='filename' value='/opt/opendaylight/current/data/log/ranSlice-instantiateRANSlice-context.log' />\n\n\n", "comments": "", "outputs": 1, - "x": 546.7500152587891, - "y": 273.0000247955322, - "z": "10e7919c.99411e", + "x": 490.00001525878906, + "y": 232.00002670288086, + "z": "f9d3d04a.3c65", "wires": [ [] ] }, { - "id": "e60a392.ddd87c8", + "id": "c9f45086.19038", "type": "execute", "name": "SliStringUtils - substring MCC", "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='substring'>\n <parameter name=\"string\" value=\"`$tmp.payload.pLMNId`\" />\n <parameter name=\"result\" value=\"tmp.mcc\"/>\n <parameter name=\"begin-index\" value=\"0\" />\n <parameter name=\"end-index\" value=\"3\" />", "comments": "", "outputs": 1, - "x": 1965.0335540771484, - "y": 530.0104942321777, - "z": "10e7919c.99411e", + "x": 1908.2835540771484, + "y": 489.01049613952637, + "z": "f9d3d04a.3c65", "wires": [ [] ] }, { - "id": "347e9e85.5c3b02", + "id": "f455a778.da6da8", "type": "execute", "name": "SliStringUtils - substring MNC", "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='substring'>\n <parameter name=\"string\" value=\"`$tmp.payload.pLMNId`\" />\n <parameter name=\"result\" value=\"tmp.mnc\"/>\n <parameter name=\"begin-index\" value=\"4\" />", "comments": "", "outputs": 1, - "x": 1959.0335311889648, - "y": 566.1013164520264, - "z": "10e7919c.99411e", + "x": 1902.2835311889648, + "y": 525.101318359375, + "z": "f9d3d04a.3c65", "wires": [ [] ] }, { - "id": "16efb65a.cc3cda", + "id": "f80cc38b.62487", "type": "record", "name": "record", "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.FileRecorder\">\n<parameter name=\"file\" value=\"/opt/opendaylight/current/data/log/instantiateRANSlice.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"PLMNID from Payload: MCC-MNC \"/>\n<parameter name=\"field2\" value=\"`$tmp.mcc`\"/>\n<parameter name=\"field3\" value=\"`$tmp.mnc`\"/>", "comments": "", "outputs": 1, - "x": 1366.754295349121, - "y": 581.0038833618164, - "z": "10e7919c.99411e", + "x": 1310.004295349121, + "y": 540.003885269165, + "z": "f9d3d04a.3c65", "wires": [ [] ] }, { - "id": "ca8361d0.5a2d2", + "id": "faaa89ed.ed2b88", "type": "comment", "name": "TO DO", "info": "- Use \"List of Cells for Tracking Area\" everywhere list\nof cells are sequenced for Restconf transactions...\nNo need to go through all cells as captured in the configDB\nresponse....localID will be the actual value returned \nin \n<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'>\n\t<parameter name='outputPath' value='tmp.trackingarea.cell' />\n\t<parameter name='source' value=\"`'getListofCells-configdb-response.[' + $ids + ']'`\" />\n\t\n\ttmp.trackingarea.cell would be cellLocalID", "comments": "", - "x": 820.75, - "y": 127.99999809265137, - "z": "10e7919c.99411e", + "x": 764, + "y": 87, + "z": "f9d3d04a.3c65", "wires": [] }, { - "id": "a7f378f7.978f78", + "id": "b41e996d.bd8628", "type": "switchNode", "name": "switch action", "xml": "<switch test='`$instantiate-r-a-n-slice-input.action`'>", "comments": "", "outputs": 1, - "x": 923.7604866027832, - "y": 828.0104639530182, - "z": "10e7919c.99411e", + "x": 867.0104866027832, + "y": 787.0104658603668, + "z": "f9d3d04a.3c65", "wires": [ [ - "7a47342e.f3effc", - "5ad9990f.809c88", - "62a4b085.11774", - "2f73e76.1120718" + "67a2e052.c60c6", + "5cab371e.d1a488", + "fd1feb8c.2f22b8", + "98376a73.6f9498" ] ] }, { - "id": "7a47342e.f3effc", + "id": "67a2e052.c60c6", "type": "outcome", "name": "allocate", "xml": "<outcome value='allocate'>", "comments": "", "outputs": 1, - "x": 1151.760498046875, - "y": 701.8993473052979, - "z": "10e7919c.99411e", + "x": 1095.010498046875, + "y": 660.8993492126465, + "z": "f9d3d04a.3c65", "wires": [ [ - "f906e932.b1a8e8" + "60ab4a0b.a74734" ] ] }, { - "id": "5ad9990f.809c88", + "id": "5cab371e.d1a488", "type": "outcome", "name": "modify-allocate", "xml": "<outcome value='modify-allocate'>", "comments": "", "outputs": 1, - "x": 1161.4747695922852, - "y": 777.3993899822235, - "z": "10e7919c.99411e", + "x": 1104.7247695922852, + "y": 736.3993918895721, + "z": "f9d3d04a.3c65", "wires": [ [ - "14960bdf.baaca4" + "2e8f21ac.f86bde" ] ] }, { - "id": "62a4b085.11774", + "id": "fd1feb8c.2f22b8", "type": "outcome", "name": "modify-deallocate", "xml": "<outcome value='modify-deallocate'>", "comments": "", "outputs": 1, - "x": 1168.8318710327148, - "y": 867.5422134399414, - "z": "10e7919c.99411e", + "x": 1112.0818710327148, + "y": 826.54221534729, + "z": "f9d3d04a.3c65", "wires": [ [ - "e194c39c.44538" + "eae960f2.ee2d4" ] ] }, { - "id": "2f73e76.1120718", + "id": "98376a73.6f9498", "type": "outcome", "name": "reconfigure", "xml": "<outcome value='reconfigure'>", "comments": "", "outputs": 1, - "x": 1140.8318710327148, - "y": 950.5780229568481, - "z": "10e7919c.99411e", + "x": 1084.0818710327148, + "y": 909.5780248641968, + "z": "f9d3d04a.3c65", "wires": [ [ - "3b102bad.c66ee4" + "bd0a83e6.a0943" ] ] }, { - "id": "f906e932.b1a8e8", + "id": "60ab4a0b.a74734", "type": "block", "name": "block : atomic", "xml": "<block atomic=\"true\">", "atomic": "true", "outputs": 1, - "x": 1364.749864578247, - "y": 686.0000371932983, - "z": "10e7919c.99411e", + "x": 1307.999864578247, + "y": 645.000039100647, + "z": "f9d3d04a.3c65", "wires": [ [ - "f1b88456.8649a8", - "39fc6dd2.f6ca82" + "ca82d73a.f7bce8", + "336d4a7.45bf6b6" ] ] }, { - "id": "14960bdf.baaca4", + "id": "2e8f21ac.f86bde", "type": "block", "name": "block : atomic", "xml": "<block atomic=\"true\">", "atomic": "true", "outputs": 1, - "x": 1384.9643173217773, - "y": 781.5001201629639, - "z": "10e7919c.99411e", + "x": 1328.2143173217773, + "y": 740.5001220703125, + "z": "f9d3d04a.3c65", "wires": [ [ - "2d4a44bb.b66d7c", - "6d40db84.e62604" + "b5579662.017518", + "66b05fb8.b1648" ] ] }, { - "id": "3b102bad.c66ee4", + "id": "bd0a83e6.a0943", "type": "block", "name": "block : atomic", "xml": "<block atomic=\"true\">", "atomic": "true", "outputs": 1, - "x": 1372.571418762207, - "y": 977.4286890029907, - "z": "10e7919c.99411e", + "x": 1315.821418762207, + "y": 936.4286909103394, + "z": "f9d3d04a.3c65", "wires": [ [ - "622120ff.ea39d", - "97272cef.a1821" + "6a839601.d3fdc8", + "57a6446.a7ba7bc" ] ] }, { - "id": "e194c39c.44538", + "id": "eae960f2.ee2d4", "type": "block", "name": "block : atomic", "xml": "<block atomic=\"true\">", "atomic": "true", "outputs": 1, - "x": 1385.4999084472656, - "y": 879.6430101394653, - "z": "10e7919c.99411e", + "x": 1328.7499084472656, + "y": 838.643012046814, + "z": "f9d3d04a.3c65", "wires": [ [ - "6340f688.955738", - "8dfbd3b3.00a37" + "791ddd11.703704", + "411cb249.f2fa5c" ] ] }, { - "id": "f1b88456.8649a8", + "id": "ca82d73a.f7bce8", "type": "call", "name": "call instantiateRANSliceAllocate", "xml": "<call module='ran-slice-api' rpc='instantiateRANSliceAllocate' mode='sync' >\n", "comments": "", "outputs": 1, - "x": 1652.9998474121094, - "y": 674.7500133514404, - "z": "10e7919c.99411e", + "x": 1596.2498474121094, + "y": 633.7500152587891, + "z": "f9d3d04a.3c65", "wires": [ [ - "38611251.625a4e" + "17a1a43.2200f5c" ] ] }, { - "id": "38611251.625a4e", + "id": "17a1a43.2200f5c", "type": "failure", "name": "failure", "xml": "<outcome value='failure'>\n", "comments": "", "outputs": 1, - "x": 1918.8569793701172, - "y": 683.3214559555054, - "z": "10e7919c.99411e", + "x": 1862.1069793701172, + "y": 642.321457862854, + "z": "f9d3d04a.3c65", "wires": [ [ - "485ab503.be350c" + "84f6a89e.970988" ] ] }, { - "id": "485ab503.be350c", + "id": "84f6a89e.970988", "type": "returnFailure", "name": "return failure", "xml": "<return status='failure'>\n<parameter name='ack-final' value='Y' />\n\n", "comments": "", - "x": 2090.8569869995117, - "y": 683.4286088943481, - "z": "10e7919c.99411e", + "x": 2034.1069869995117, + "y": 642.4286108016968, + "z": "f9d3d04a.3c65", "wires": [] }, { - "id": "2d4a44bb.b66d7c", + "id": "b5579662.017518", "type": "call", "name": "call instantiateRANSliceModifyAllocate", "xml": "<call module='ran-slice-api' rpc='instantiateRANSliceModifyAllocate-configDB' mode='sync' >\n", "comments": "", "outputs": 1, - "x": 1673.6787414550781, - "y": 784.7500626444817, - "z": "10e7919c.99411e", + "x": 1616.9287414550781, + "y": 743.7500645518303, + "z": "f9d3d04a.3c65", "wires": [ [ - "e9c29919.baf1a8" + "3b14b216.30136e" ] ] }, { - "id": "e9c29919.baf1a8", + "id": "3b14b216.30136e", "type": "failure", "name": "failure", "xml": "<outcome value='failure'>\n", "comments": "", "outputs": 1, - "x": 1938.7144050598145, - "y": 781.7500820159912, - "z": "10e7919c.99411e", + "x": 1881.9644050598145, + "y": 740.7500839233398, + "z": "f9d3d04a.3c65", "wires": [ [ - "f4459a61.a605d8" + "510851bf.455d7" ] ] }, { - "id": "f4459a61.a605d8", + "id": "510851bf.455d7", "type": "returnFailure", "name": "return failure", "xml": "<return status='failure'>\n<parameter name='ack-final' value='Y' />\n\n", "comments": "", - "x": 2107.285846710205, - "y": 781.4286270141602, - "z": "10e7919c.99411e", + "x": 2050.535846710205, + "y": 740.4286289215088, + "z": "f9d3d04a.3c65", "wires": [] }, { - "id": "622120ff.ea39d", + "id": "6a839601.d3fdc8", "type": "call", "name": "call instantiateRANSliceReconfigure", "xml": "<call module='ran-slice-api' rpc='instantiateRANSliceReconfigure' mode='sync' >\n", "comments": "", "outputs": 1, - "x": 1665.5713424682617, - "y": 977.0357475280762, - "z": "10e7919c.99411e", + "x": 1608.8213424682617, + "y": 936.0357494354248, + "z": "f9d3d04a.3c65", "wires": [ [ - "a5d8b067.d2aaf" + "5da642cc.fd8b0c" ] ] }, { - "id": "a5d8b067.d2aaf", + "id": "5da642cc.fd8b0c", "type": "failure", "name": "failure", "xml": "<outcome value='failure'>\n", "comments": "", "outputs": 1, - "x": 1921.8570671081543, - "y": 977.0357732772827, - "z": "10e7919c.99411e", + "x": 1865.1070671081543, + "y": 936.0357751846313, + "z": "f9d3d04a.3c65", "wires": [ [ - "85641a85.b66f78" + "accf4d38.2835a" ] ] }, { - "id": "85641a85.b66f78", + "id": "accf4d38.2835a", "type": "returnFailure", "name": "return failure", "xml": "<return status='failure'>\n<parameter name='ack-final' value='Y' />\n\n", "comments": "", - "x": 2090.428508758545, - "y": 976.7143182754517, - "z": "10e7919c.99411e", + "x": 2033.678508758545, + "y": 935.7143201828003, + "z": "f9d3d04a.3c65", "wires": [] }, { - "id": "6340f688.955738", + "id": "791ddd11.703704", "type": "call", "name": "call instantiateRANSliceModifyDeallocate", "xml": "<call module='ran-slice-api' rpc='terminateRANSliceInstance-configDB' mode='sync' >\n", "comments": "", "outputs": 1, - "x": 1658.7142028808594, - "y": 878.0358200073242, - "z": "10e7919c.99411e", + "x": 1601.9642028808594, + "y": 837.0358219146729, + "z": "f9d3d04a.3c65", "wires": [ [ - "e8f4a61d.b77d78" + "69fe5d78.ef50f4" ] ] }, { - "id": "e8f4a61d.b77d78", + "id": "69fe5d78.ef50f4", "type": "failure", "name": "failure", "xml": "<outcome value='failure'>\n", "comments": "", "outputs": 1, - "x": 1937.2855796813965, - "y": 876.6072368621826, - "z": "10e7919c.99411e", + "x": 1880.5355796813965, + "y": 835.6072387695312, + "z": "f9d3d04a.3c65", "wires": [ [ - "9d17ea2d.aae6b8" + "49ca4eb3.09c31" ] ] }, { - "id": "9d17ea2d.aae6b8", + "id": "49ca4eb3.09c31", "type": "returnFailure", "name": "return failure", "xml": "<return status='failure'>\n<parameter name='ack-final' value='Y' />\n\n", "comments": "", - "x": 2105.857021331787, - "y": 876.2857818603516, - "z": "10e7919c.99411e", + "x": 2049.107021331787, + "y": 835.2857837677002, + "z": "f9d3d04a.3c65", "wires": [] }, { - "id": "46713467.de13cc", + "id": "e9985b93.6f1848", "type": "set", "name": "set RRMPolicyRatio IDs", "xml": "<set>\n<parameter name='tmp.RRMPolicyRatioID.NearRTRIC' value=\"`'NearRTRIC-' + $payloadJson.input.sliceProfile.sliceProfileId + '-' + $payloadJson.input.sliceProfile.coverageAreaList[0]`\" />\n<parameter name='tmp.RRMPolicyRatioID.GNBDUFunction' value=\"`'GNBDUFunction-' + $payloadJson.input.sliceProfile.sliceProfileId + '-' + $payloadJson.input.sliceProfile.coverageAreaList[0]`\" />\n<parameter name='tmp.RRMPolicyRatioID.NRCellDU' value=\"`'NRCellDU-' + $payloadJson.input.sliceProfile.sliceProfileId + '-' + $payloadJson.input.sliceProfile.coverageAreaList[0]`\" />\n<parameter name='tmp.RRMPolicyRatioID.GNBCUUPFunction' value=\"`'GNBCUUPFunction-' + $payloadJson.input.sliceProfile.sliceProfileId + '-' + $payloadJson.input.sliceProfile.coverageAreaList[0]`\" />\n<parameter name='tmp.RRMPolicyRatioID.GNBCUCPFunction' value=\"`'GNBCUCPFunction-' + $payloadJson.input.sliceProfile.sliceProfileId + '-' + $payloadJson.input.sliceProfile.coverageAreaList[0]`\" />\n<parameter name='tmp.RRMPolicyRatioID.NRCellCU' value=\"`'NRCellCU-' + $payloadJson.input.sliceProfile.sliceProfileId + '-' + $payloadJson.input.sliceProfile.coverageAreaList[0]`\" />\n<parameter name='prop.ranNetwork.RRMPolicyRatioMemberID' value='`$prop.ranNetwork.RRMPolicyRatioMemberID + 1`' />", "comments": "", - "x": 1436.7503280639648, - "y": 435.9999990463257, - "z": "10e7919c.99411e", + "x": 1380.0003280639648, + "y": 395.0000009536743, + "z": "f9d3d04a.3c65", "wires": [] }, { - "id": "9695529c.512d9", + "id": "b98adc33.f7a72", "type": "execute", "name": "execute concat customer-id and @test.com", "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='concat' >\n <parameter name=\"source\" value='`$prop.customer-id`'/>\n <parameter name=\"outputPath\" value=\"tmp.userAccountEmail\"/>\n <parameter name=\"target\" value=\"@test.com\"/>\n\n\n", "comments": "", "outputs": 1, - "x": 399.7500228881836, - "y": 1072.0000085830688, - "z": "10e7919c.99411e", + "x": 343.0000228881836, + "y": 1031.0000104904175, + "z": "f9d3d04a.3c65", "wires": [ [] ] }, { - "id": "39fc6dd2.f6ca82", + "id": "336d4a7.45bf6b6", "type": "record", "name": "record", "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.FileRecorder\">\n<parameter name=\"file\" value=\"/opt/opendaylight/current/data/log/instantiateRANSlice.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"Calling instantiateRANSliceAllocate \"/>", "comments": "", "outputs": 1, - "x": 1600.750015258789, - "y": 615.000039100647, - "z": "10e7919c.99411e", + "x": 1544.000015258789, + "y": 574.0000410079956, + "z": "f9d3d04a.3c65", "wires": [ [] ] }, { - "id": "6d40db84.e62604", + "id": "66b05fb8.b1648", "type": "record", "name": "record", "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.FileRecorder\">\n<parameter name=\"file\" value=\"/opt/opendaylight/current/data/log/instantiateRANSlice.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"Calling instantiateRANSliceModifyAllocate \"/>", "comments": "", "outputs": 1, - "x": 1582.7499694824219, - "y": 726.0000410079956, - "z": "10e7919c.99411e", + "x": 1525.9999694824219, + "y": 685.0000429153442, + "z": "f9d3d04a.3c65", "wires": [ [] ] }, { - "id": "8dfbd3b3.00a37", + "id": "411cb249.f2fa5c", "type": "record", "name": "record", "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.FileRecorder\">\n<parameter name=\"file\" value=\"/opt/opendaylight/current/data/log/instantiateRANSlice.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"Calling instantiateRANSliceModifyDeallocate \"/>", "comments": "", "outputs": 1, - "x": 1576.7499694824219, - "y": 826.0000410079956, - "z": "10e7919c.99411e", + "x": 1519.9999694824219, + "y": 785.0000429153442, + "z": "f9d3d04a.3c65", "wires": [ [] ] }, { - "id": "97272cef.a1821", + "id": "57a6446.a7ba7bc", "type": "record", "name": "record", "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.FileRecorder\">\n<parameter name=\"file\" value=\"/opt/opendaylight/current/data/log/instantiateRANSlice.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"Calling instantiateRANSliceReconfigure \"/>", "comments": "", "outputs": 1, - "x": 1576.7499694824219, - "y": 927.0000410079956, - "z": "10e7919c.99411e", + "x": 1519.9999694824219, + "y": 886.0000429153442, + "z": "f9d3d04a.3c65", "wires": [ [] ] }, { - "id": "9c98890c.ec5da8", + "id": "3740e6e7.14e4ca", "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": 1015.7503509521484, - "y": 285.6667947769165, - "z": "10e7919c.99411e", + "x": 959.0003509521484, + "y": 244.66679668426514, + "z": "f9d3d04a.3c65", "wires": [ [ - "20ced857.c221b8", - "5c3c974.25c8468" + "bf5a631b.0296f", + "a9791043.1e2a2" ] ] }, { - "id": "20ced857.c221b8", + "id": "bf5a631b.0296f", "type": "failure", "name": "true", "xml": "<outcome value='true'>\n", "comments": "", "outputs": 1, - "x": 1234.7503623962402, - "y": 264.6667318344116, - "z": "10e7919c.99411e", + "x": 1178.0003623962402, + "y": 223.66673374176025, + "z": "f9d3d04a.3c65", "wires": [ [ - "f196dde7.3a5cc" + "b4fb03b1.01a16" ] ] }, { - "id": "5c3c974.25c8468", + "id": "a9791043.1e2a2", "type": "failure", "name": "false", "xml": "<outcome value='false'>\n", "comments": "", "outputs": 1, - "x": 1193.7502746582031, - "y": 358.6667137145996, - "z": "10e7919c.99411e", + "x": 1137.0002746582031, + "y": 317.66671562194824, + "z": "f9d3d04a.3c65", "wires": [ [ - "7c0ec46.941ed3c" + "c5d96ba8.2e4e18" ] ] }, { - "id": "7c0ec46.941ed3c", + "id": "c5d96ba8.2e4e18", "type": "execute", "name": "payload contains maxNumberofConns", "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": 1414.7500457763672, - "y": 323.6667137145996, - "z": "10e7919c.99411e", + "x": 1358.0000457763672, + "y": 282.66671562194824, + "z": "f9d3d04a.3c65", "wires": [ [ - "857c2346.8113b" + "3a0ae807.f1d658" ] ] }, { - "id": "f196dde7.3a5cc", + "id": "b4fb03b1.01a16", "type": "block", "name": "block : atomic", "xml": "<block atomic=\"true\">", "atomic": "true", "outputs": 1, - "x": 1669.7500457763672, - "y": 159.66672897338867, - "z": "10e7919c.99411e", + "x": 1613.0000457763672, + "y": 118.6667308807373, + "z": "f9d3d04a.3c65", "wires": [ [ - "d7e9aa43.a7d838", - "19c1468.44715ba" + "8d6407f8.ff4a98", + "846d4889.d79ec8" ] ] }, { - "id": "d7e9aa43.a7d838", + "id": "8d6407f8.ff4a98", "type": "record", "name": "record", "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.FileRecorder\">\n<parameter name=\"file\" value=\"/opt/opendaylight/current/data/log/instantiateRANSlice.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"PAYLOAD contains dLThptPerSlice...Closed loop \"/>\n<parameter name=\"field2\" value=\"Creating temporary variables ONLy for relevant payload fields \"/>\n", "comments": "", "outputs": 1, - "x": 1892.7500534057617, - "y": 118.66672801971436, - "z": "10e7919c.99411e", + "x": 1836.0000534057617, + "y": 77.66672992706299, + "z": "f9d3d04a.3c65", "wires": [ [] ] }, { - "id": "857c2346.8113b", + "id": "3a0ae807.f1d658", "type": "failure", "name": "true", "xml": "<outcome value='true'>\n", "comments": "", "outputs": 1, - "x": 1576.7500457763672, - "y": 245.66671133041382, - "z": "10e7919c.99411e", + "x": 1520.0000457763672, + "y": 204.66671323776245, + "z": "f9d3d04a.3c65", "wires": [ [ - "a18a6.3f67775b" + "23d71f2a.4f7fb" ] ] }, { - "id": "a18a6.3f67775b", + "id": "23d71f2a.4f7fb", "type": "block", "name": "block : atomic", "xml": "<block atomic=\"true\">", "atomic": "true", "outputs": 1, - "x": 1683.750373840332, - "y": 360.66671562194824, - "z": "10e7919c.99411e", + "x": 1627.000373840332, + "y": 319.6667175292969, + "z": "f9d3d04a.3c65", "wires": [ [ - "3235136f.549f4c", - "19c1468.44715ba" + "e31431f5.b0804", + "846d4889.d79ec8" ] ] }, { - "id": "3235136f.549f4c", + "id": "e31431f5.b0804", "type": "record", "name": "record", "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.FileRecorder\">\n<parameter name=\"file\" value=\"/opt/opendaylight/current/data/log/instantiateRANSlice.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"PAYLOAD contains maxNumberofConns...Inntelligent Slicing \"/>\n<parameter name=\"field2\" value=\"Creating temporary variables ONLy for relevant payload fields \"/>\n\n\n", "comments": "", "outputs": 1, - "x": 1740.750373840332, - "y": 249.66671085357666, - "z": "10e7919c.99411e", + "x": 1684.000373840332, + "y": 208.6667127609253, + "z": "f9d3d04a.3c65", "wires": [ [] ] }, { - "id": "19c1468.44715ba", + "id": "846d4889.d79ec8", "type": "set", "name": "set Temp Variables", "xml": "<set>\n<parameter name='tmp.payload.callbackURL' value='`$payloadJson.input.callbackURL`'/>\n<parameter name='tmp.payload.RANNFNSSIId' value='`$payloadJson.input.RANNFNSSIId`'/>\n<parameter name='tmp.payload.RANNSSIId' value='`$payloadJson.input.RANNSSIId`'/>", "comments": "", - "x": 1996.7503814697266, - "y": 272.00004386901855, - "z": "10e7919c.99411e", + "x": 1940.0003814697266, + "y": 231.0000457763672, + "z": "f9d3d04a.3c65", "wires": [] }, { - "id": "fae20792.9b5088", + "id": "a9edd79d.7f4d18", "type": "block", "name": "block : atomic", "xml": "<block atomic='true'>", "atomic": "true", "comments": "", "outputs": 1, - "x": 416.75008392333984, - "y": 427.0000591278076, - "z": "10e7919c.99411e", + "x": 360.00008392333984, + "y": 386.00006103515625, + "z": "f9d3d04a.3c65", "wires": [ [ - "a3cde681.f1e848" + "fe88f514.8c8188" ] ] }, { - "id": "a3cde681.f1e848", + "id": "fe88f514.8c8188", "type": "switchNode", "name": "switch action", "xml": "<switch test='`$instantiate-r-a-n-slice-input.action`'>", "comments": "", "outputs": 1, - "x": 574.7606964111328, - "y": 480.01043701171875, - "z": "10e7919c.99411e", + "x": 518.0106964111328, + "y": 439.0104389190674, + "z": "f9d3d04a.3c65", "wires": [ [ - "237c0e0f.148522", - "3fe8fc80.d3d0c4", - "2e87b1cc.bd552e", - "40cc7ca4.05a624" + "60031c86.71d7c4", + "ad47916a.0739f", + "867e03c7.57509", + "1df6e46e.80d00c" ] ] }, { - "id": "237c0e0f.148522", + "id": "60031c86.71d7c4", "type": "outcome", "name": "reconfigure", "xml": "<outcome value='reconfigure'>", "comments": "", "outputs": 1, - "x": 791.8319129943848, - "y": 339.57797145843506, - "z": "10e7919c.99411e", + "x": 735.0819129943848, + "y": 298.5779733657837, + "z": "f9d3d04a.3c65", "wires": [ [ - "39cdc573.bf0d8a" + "b8589e4d.ee186" ] ] }, { - "id": "39cdc573.bf0d8a", + "id": "b8589e4d.ee186", "type": "block", "name": "block : atomic", "xml": "<block atomic=\"true\">", "atomic": "true", "outputs": 1, - "x": 898.571662902832, - "y": 445.42865657806396, - "z": "10e7919c.99411e", + "x": 841.821662902832, + "y": 404.4286584854126, + "z": "f9d3d04a.3c65", "wires": [ [ - "9c98890c.ec5da8" + "3740e6e7.14e4ca" ] ] }, { - "id": "8b7bd924.08c238", + "id": "d1ca9a13.511f18", "type": "block", "name": "block : atomic", "xml": "<block atomic=\"true\">", "atomic": "true", "outputs": 1, - "x": 1087.4166793823242, - "y": 539.0000190734863, - "z": "10e7919c.99411e", + "x": 1030.6666793823242, + "y": 498.00002098083496, + "z": "f9d3d04a.3c65", "wires": [ [ - "a82c1628.1048e8", - "46713467.de13cc", - "16efb65a.cc3cda", - "b45975b4.70c658" + "b7d815c7.418ce8", + "e9985b93.6f1848", + "f80cc38b.62487", + "fc21e8cf.566358" ] ] }, { - "id": "f49ac68c.646c78", + "id": "c8574743.c29878", "type": "set", "name": "Original set Temp Variables", "xml": "<set>\n<parameter name='tmp.payload.trackingArea' value='`$payloadJson.input.sliceProfile.coverageAreaList[0]`'/>\n<parameter name='tmp.payload.callbackURL' value='`$payloadJson.input.callbackURL`'/>\n<parameter name='tmp.payload.RANNFNSSIId' value='`$payloadJson.input.RANNFNSSIId`'/>\n<parameter name='tmp.payload.RANNSSIId' value='`$payloadJson.input.RANNSSIId`'/>\n<parameter name='tmp.payload.coverageAreaList_length' value='`$payloadJson.input.sliceProfile.coverageAreaList_length`'/>\n<parameter name='tmp.payload.dLThptPerSlice' value='`$payloadJson.input.sliceProfile.dLThptPerSlice`'/>\n<parameter name='tmp.payload.latency' value='`$payloadJson.input.sliceProfile.latency`'/>\n<parameter name='tmp.payload.maxNumberofConns' value='`$payloadJson.input.sliceProfile.maxNumberofConns`'/>\n<parameter name='tmp.payload.maxNumberofUEs' value='`$payloadJson.input.sliceProfile.maxNumberofUEs`'/>\n<parameter name='tmp.payload.resourceSharingLevel' value='`$payloadJson.input.sliceProfile.resourceSharingLevel`'/>\n<parameter name='tmp.payload.sliceProfileId' value='`$payloadJson.input.sliceProfile.sliceProfileId`'/>\n<parameter name='tmp.payload.sNSSAI' value='`$payloadJson.input.sliceProfile.sNSSAI`'/>\n<parameter name='tmp.payload.uEMobilityLevel' value='`$payloadJson.input.sliceProfile.uEMobilityLevel`'/>\n<parameter name='tmp.payload.uLThptPerSlice' value='`$payloadJson.input.sliceProfile.uLThptPerSlice`'/>\n<parameter name='tmp.payload.pLMNId' value='`$payloadJson.input.sliceProfile.pLMNIdList[0]`'/>", "comments": "", - "x": 2386.75, - "y": 279.99999809265137, - "z": "10e7919c.99411e", + "x": 2330, + "y": 239, + "z": "f9d3d04a.3c65", "wires": [] }, { - "id": "3fe8fc80.d3d0c4", + "id": "ad47916a.0739f", "type": "outcome", "name": "allocate", "xml": "<outcome value='allocate'>", "comments": "", "outputs": 1, - "x": 853.4167098999023, - "y": 506.3333549499512, - "z": "10e7919c.99411e", + "x": 796.6667098999023, + "y": 465.3333568572998, + "z": "f9d3d04a.3c65", "wires": [ [ - "8b7bd924.08c238" + "d1ca9a13.511f18" ] ] }, { - "id": "2e87b1cc.bd552e", + "id": "867e03c7.57509", "type": "outcome", "name": "modify-allocate", "xml": "<outcome value='modify-allocate'>", "comments": "", "outputs": 1, - "x": 843.1310653686523, - "y": 551.8333969116211, - "z": "10e7919c.99411e", + "x": 786.3810653686523, + "y": 510.8333988189697, + "z": "f9d3d04a.3c65", "wires": [ [ - "8b7bd924.08c238" + "d1ca9a13.511f18" ] ] }, { - "id": "40cc7ca4.05a624", + "id": "1df6e46e.80d00c", "type": "outcome", "name": "modify-deallocate", "xml": "<outcome value='modify-deallocate'>", "comments": "", "outputs": 1, - "x": 827.4881629943848, - "y": 616.9761905670166, - "z": "10e7919c.99411e", + "x": 770.7381629943848, + "y": 575.9761924743652, + "z": "f9d3d04a.3c65", "wires": [ [ - "8b7bd924.08c238" + "d1ca9a13.511f18" ] ] }, { - "id": "b45975b4.70c658", + "id": "fc21e8cf.566358", "type": "switchNode", "name": "check PLMNId", "xml": "<switch test='`$tmp.payload.pLMNId`'>", "comments": "", "outputs": 1, - "x": 1330.5, - "y": 519.7499980926514, - "z": "10e7919c.99411e", + "x": 1273.75, + "y": 478.75, + "z": "f9d3d04a.3c65", "wires": [ [ - "76986724.c316a8", - "5b5cc8fa.d6ba88" + "18448523.ce63fb", + "619f621a.39ba0c" ] ] }, { - "id": "50ddb749.40aab8", + "id": "75167d2a.0cec34", "type": "block", "name": "block : atomic", "xml": "<block atomic=\"true\">", "atomic": "true", "outputs": 1, - "x": 1704.250114440918, - "y": 500.7500047683716, - "z": "10e7919c.99411e", + "x": 1647.500114440918, + "y": 459.7500066757202, + "z": "f9d3d04a.3c65", "wires": [ [ - "45f4b2d4.e1c22c", - "4426a6b.16ab058" + "b38f4398.feb6", + "85d1a250.a945f" ] ] }, { - "id": "76986724.c316a8", + "id": "18448523.ce63fb", "type": "outcome", "name": "not null", "xml": "<outcome value=''>", "comments": "", "outputs": 1, - "x": 1525.25, - "y": 509.74999809265137, - "z": "10e7919c.99411e", + "x": 1468.5, + "y": 468.75, + "z": "f9d3d04a.3c65", "wires": [ [ - "74bbb6b3.896378" + "1e493cd0.0784c3" ] ] }, { - "id": "5b5cc8fa.d6ba88", + "id": "619f621a.39ba0c", "type": "other", "name": "other", "xml": "<outcome value='Other'>\n", "comments": "", "outputs": 1, - "x": 1519, - "y": 559.7499980926514, - "z": "10e7919c.99411e", + "x": 1462.25, + "y": 518.75, + "z": "f9d3d04a.3c65", "wires": [ [ - "50ddb749.40aab8" + "75167d2a.0cec34" ] ] }, { - "id": "74bbb6b3.896378", + "id": "1e493cd0.0784c3", "type": "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=\"It is allocate-modify flow. PLMNId is null\"/>", "comments": "", "outputs": 1, - "x": 1658, - "y": 444.74999809265137, - "z": "10e7919c.99411e", + "x": 1601.25, + "y": 403.75, + "z": "f9d3d04a.3c65", "wires": [ [] ] }, { - "id": "45f4b2d4.e1c22c", + "id": "b38f4398.feb6", "type": "execute", "name": "split pLMNId", "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='split'>\n <parameter name=\"original_string\" value=\"`$tmp.payload.pLMNId`\" />\n <parameter name=\"regex\" value=\"-\"/>\n <parameter name=\"ctx_memory_result_key\" value=\"tmp.plmnList\" />", "comments": "", "outputs": 1, - "x": 1965.5226135253906, - "y": 383.26230812072754, - "z": "10e7919c.99411e", + "x": 1908.7726135253906, + "y": 342.2623100280762, + "z": "f9d3d04a.3c65", "wires": [ [] ] }, { - "id": "4426a6b.16ab058", + "id": "85d1a250.a945f", "type": "set", "name": "set mcc & mnc Variables", "xml": "<set>\n<parameter name='tmp.mcc' value='`$tmp.plmnList[0]`'/>\n<parameter name='tmp.mnc' value='`$tmp.plmnList[1]`'/>", "comments": "", - "x": 1995.9772033691406, - "y": 430.30774879455566, - "z": "10e7919c.99411e", + "x": 1939.2272033691406, + "y": 389.3077507019043, + "z": "f9d3d04a.3c65", "wires": [] }, { - "id": "bb2101f5.74d22", + "id": "17edd644.4e6b2a", "type": "outcome", "name": "CPS Deployed", "xml": "<outcome value='false'>\n", "comments": "", "outputs": 1, - "x": 640.2500152587891, - "y": 978.750096321106, - "z": "10e7919c.99411e", + "x": 583.5000152587891, + "y": 937.7500982284546, + "z": "f9d3d04a.3c65", "wires": [ [ - "394e9b0d.220f74" + "c11522a6.912a3" ] ] }, { - "id": "394e9b0d.220f74", + "id": "c11522a6.912a3", "type": "block", "name": "block : atomic", "xml": "<block atomic='true'>", "atomic": "true", "comments": "", "outputs": 1, - "x": 815.2501239776611, - "y": 1147.7501649856567, - "z": "10e7919c.99411e", + "x": 758.5001239776611, + "y": 1106.7501668930054, + "z": "f9d3d04a.3c65", "wires": [ [ - "85336e0f.34382" + "9a5be299.ac9e8" ] ] }, { - "id": "85336e0f.34382", + "id": "9a5be299.ac9e8", "type": "switchNode", "name": "switch action", "xml": "<switch test='`$instantiate-r-a-n-slice-input.action`'>", "comments": "", "outputs": 1, - "x": 1029.2502155303955, - "y": 1147.7501649856567, - "z": "10e7919c.99411e", + "x": 972.5002155303955, + "y": 1106.7501668930054, + "z": "f9d3d04a.3c65", "wires": [ [ - "6021ff25.4bc92", - "d27c26f9.e0bbc8" + "c8c0e2dd.5b24e", + "44e41709.edbb68", + "ae5c8c29.c4bdb" ] ] }, { - "id": "1c605b41.1f8055", + "id": "3c7fdccf.25e304", "type": "record", "name": "record", "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.FileRecorder\">\n<parameter name=\"file\" value=\"/opt/opendaylight/current/data/log/instantiateRANSlice.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"Calling instantiateRANSliceModifyAllocate-CPS \"/>", "comments": "", "outputs": 1, - "x": 1635.2502098083496, - "y": 1090.7500677108765, - "z": "10e7919c.99411e", + "x": 1578.5002098083496, + "y": 1049.750069618225, + "z": "f9d3d04a.3c65", "wires": [ [] ] }, { - "id": "1017cf13.795611", + "id": "ae0a8810.afc028", "type": "call", "name": "call instantiateRANSliceModifyAllocate-cps", "xml": "<call module='ran-slice-api' rpc='instantiateRANSliceModifyAllocate-cps' mode='sync' >\n", "comments": "", "outputs": 1, - "x": 1720.929183959961, - "y": 1145.5001220703125, - "z": "10e7919c.99411e", + "x": 1664.179183959961, + "y": 1104.5001239776611, + "z": "f9d3d04a.3c65", "wires": [ [ - "33def680.1ee92a" + "7f7eb2b.fdf5d4c" ] ] }, { - "id": "33def680.1ee92a", + "id": "7f7eb2b.fdf5d4c", "type": "failure", "name": "failure", "xml": "<outcome value='failure'>\n", "comments": "", "outputs": 1, - "x": 1991.2144298553467, - "y": 1146.5000534057617, - "z": "10e7919c.99411e", + "x": 1934.4644298553467, + "y": 1105.5000553131104, + "z": "f9d3d04a.3c65", "wires": [ [ - "c1aa85c5.05aff8" + "a1a6a811.1598f8" ] ] }, { - "id": "c1aa85c5.05aff8", + "id": "a1a6a811.1598f8", "type": "returnFailure", "name": "return failure", "xml": "<return status='failure'>\n<parameter name='ack-final' value='Y' />\n\n", "comments": "", - "x": 2159.7858963012695, - "y": 1146.1786012649536, - "z": "10e7919c.99411e", + "x": 2103.0358963012695, + "y": 1105.1786031723022, + "z": "f9d3d04a.3c65", "wires": [] }, { - "id": "6021ff25.4bc92", + "id": "c8c0e2dd.5b24e", "type": "outcome", "name": "modify-allocate", "xml": "<outcome value='modify-allocate'>", "comments": "", "outputs": 1, - "x": 1231.500144958496, - "y": 1147.7502555847168, - "z": "10e7919c.99411e", + "x": 1174.750144958496, + "y": 1106.7502574920654, + "z": "f9d3d04a.3c65", "wires": [ [ - "99140271.a53c9" + "68fddc03.ce46b4" ] ] }, { - "id": "99140271.a53c9", + "id": "68fddc03.ce46b4", "type": "block", "name": "block : atomic", "xml": "<block atomic=\"true\">", "atomic": "true", "outputs": 1, - "x": 1443.5003185272217, - "y": 1147.7501683235168, - "z": "10e7919c.99411e", + "x": 1386.7503185272217, + "y": 1106.7501702308655, + "z": "f9d3d04a.3c65", "wires": [ [ - "1017cf13.795611", - "1c605b41.1f8055" + "ae0a8810.afc028", + "3c7fdccf.25e304" ] ] }, { - "id": "3ae0261c.6951ea", + "id": "a393354.fe81dc8", "type": "block", "name": "block : atomic", "xml": "<block atomic=\"true\">", "atomic": "true", "outputs": 1, - "x": 1453, - "y": 1265.75, - "z": "10e7919c.99411e", + "x": 1393.25, + "y": 1228.75, + "z": "f9d3d04a.3c65", "wires": [ [ - "143c85f9.fcdf6a", - "d2545a71.9868f8" + "35ed7ed2.b66562", + "57224a6c.760664" ] ] }, { - "id": "d2545a71.9868f8", + "id": "57224a6c.760664", "type": "record", "name": "record", "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.FileRecorder\">\n<parameter name=\"file\" value=\"/opt/opendaylight/current/data/log/instantiateRANSlice.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"Calling instantiateRANSliceModifyAllocate-CPS \"/>", "comments": "", "outputs": 1, - "x": 1644.749891281128, - "y": 1208.7498993873596, - "z": "10e7919c.99411e", + "x": 1587.999891281128, + "y": 1167.7499012947083, + "z": "f9d3d04a.3c65", "wires": [ [] ] }, { - "id": "143c85f9.fcdf6a", + "id": "35ed7ed2.b66562", "type": "call", "name": "call instantiateRANSliceModifyAllocate-cps", "xml": "<call module='ran-slice-api' rpc='terminateRANSliceInstance-cps' mode='sync' >\n", "comments": "", "outputs": 1, - "x": 1730.4288654327393, - "y": 1263.4999537467957, - "z": "10e7919c.99411e", + "x": 1673.6788654327393, + "y": 1222.4999556541443, + "z": "f9d3d04a.3c65", "wires": [ [ - "488c511e.814ef" + "e988a316.a5c4e" ] ] }, { - "id": "488c511e.814ef", + "id": "e988a316.a5c4e", "type": "failure", "name": "failure", "xml": "<outcome value='failure'>\n", "comments": "", "outputs": 1, - "x": 2000.714111328125, - "y": 1264.4998850822449, - "z": "10e7919c.99411e", + "x": 1943.964111328125, + "y": 1223.4998869895935, + "z": "f9d3d04a.3c65", "wires": [ [ - "e629bb75.4c59f8" + "29f59beb.f65aa4" ] ] }, { - "id": "e629bb75.4c59f8", + "id": "29f59beb.f65aa4", "type": "returnFailure", "name": "return failure", "xml": "<return status='failure'>\n<parameter name='ack-final' value='Y' />\n\n", "comments": "", - "x": 2169.285577774048, - "y": 1264.1784329414368, - "z": "10e7919c.99411e", + "x": 2112.535577774048, + "y": 1223.1784348487854, + "z": "f9d3d04a.3c65", "wires": [] }, { - "id": "d27c26f9.e0bbc8", + "id": "44e41709.edbb68", "type": "outcome", "name": "modify-allocate", "xml": "<outcome value='modify-deallocate'>", "comments": "", "outputs": 1, - "x": 1233.0000076293945, - "y": 1268.7500085830688, - "z": "10e7919c.99411e", + "x": 1176.2500076293945, + "y": 1227.7500104904175, + "z": "f9d3d04a.3c65", "wires": [ [ - "3ae0261c.6951ea" + "a393354.fe81dc8" ] ] + }, + { + "id": "ae5c8c29.c4bdb", + "type": "outcome", + "name": "reconfigure", + "xml": "<outcome value='reconfigure'>", + "comments": "", + "outputs": 1, + "x": 1170, + "y": 1338, + "z": "f9d3d04a.3c65", + "wires": [ + [ + "38f25902.34b756" + ] + ] + }, + { + "id": "38f25902.34b756", + "type": "block", + "name": "block : atomic", + "xml": "<block atomic=\"true\">", + "atomic": "true", + "outputs": 1, + "x": 1392.7395477294922, + "y": 1355.8506660461426, + "z": "f9d3d04a.3c65", + "wires": [ + [ + "ed9c90f6.76807", + "e9652107.897be" + ] + ] + }, + { + "id": "ed9c90f6.76807", + "type": "call", + "name": "call instantiateRANSliceReconfigure-cps", + "xml": "<call module='ran-slice-api' rpc='instantiateRANSliceReconfigure-cps' mode='sync' >\n", + "comments": "", + "outputs": 1, + "x": 1685.7394714355469, + "y": 1355.457724571228, + "z": "f9d3d04a.3c65", + "wires": [ + [ + "2d10f5f1.cf9c1a" + ] + ] + }, + { + "id": "2d10f5f1.cf9c1a", + "type": "failure", + "name": "failure", + "xml": "<outcome value='failure'>\n", + "comments": "", + "outputs": 1, + "x": 1942.0251960754395, + "y": 1355.4577503204346, + "z": "f9d3d04a.3c65", + "wires": [ + [ + "47cc910f.395bf" + ] + ] + }, + { + "id": "47cc910f.395bf", + "type": "returnFailure", + "name": "return failure", + "xml": "<return status='failure'>\n<parameter name='ack-final' value='Y' />\n\n", + "comments": "", + "x": 2110.59663772583, + "y": 1355.1362953186035, + "z": "f9d3d04a.3c65", + "wires": [] + }, + { + "id": "e9652107.897be", + "type": "record", + "name": "record", + "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.FileRecorder\">\n<parameter name=\"file\" value=\"/opt/opendaylight/current/data/log/instantiateRANSlice.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"Calling instantiateRANSliceReconfigure-cps \"/>", + "comments": "", + "outputs": 1, + "x": 1596.918098449707, + "y": 1305.4220180511475, + "z": "f9d3d04a.3c65", + "wires": [ + [] + ] } -]
\ No newline at end of file +] 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 new file mode 100644 index 00000000..07fea53d --- /dev/null +++ b/platform-logic/ran-slice-api/src/main/json/ran-slice-api_instantiateRANSliceReconfigure-cps.json @@ -0,0 +1,3891 @@ +[ + { + "id": "9f061b81.5ee4f8", + "type": "method", + "name": "method", + "xml": "<method rpc='instantiateRANSliceReconfigure-cps' mode='sync'>\n", + "comments": "", + "outputs": 1, + "x": 332.6666946411133, + "y": 244.0000286102295, + "z": "4d7c5b65.634a04", + "wires": [ + [ + "482ddcd8.26f684" + ] + ] + }, + { + "id": "1bd8c394.29fc0c", + "type": "dgstart", + "name": "DGSTART", + "outputs": 1, + "x": 129.66665649414062, + "y": 133, + "z": "4d7c5b65.634a04", + "wires": [ + [ + "308c4369.7525dc" + ] + ] + }, + { + "id": "308c4369.7525dc", + "type": "service-logic", + "name": "ran-slice-api ${project.version}", + "module": "ran-slice-api", + "version": "${project.version}", + "comments": "", + "xml": "<service-logic xmlns='http://www.onap.org/sdnc/svclogic' xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xsi:schemaLocation='http://www.onap.org/sdnc/svclogic ./svclogic.xsd' module='ran-slice-api' version='${project.version}'>", + "outputs": 1, + "x": 375.6666259765625, + "y": 134.00008296966553, + "z": "4d7c5b65.634a04", + "wires": [ + [ + "9f061b81.5ee4f8" + ] + ] + }, + { + "id": "bd9cb92d.d2bc28", + "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", + "wires": [] + }, + { + "id": "9e06e626.8eae98", + "type": "comment", + "name": "instantiateRANSliceReconfigure-cps", + "info": "", + "comments": "", + "x": 426.6666564941406, + "y": 45.010406494140625, + "z": "4d7c5b65.634a04", + "wires": [] + }, + { + "id": "482ddcd8.26f684", + "type": "block", + "name": "block : atomic", + "xml": "<block atomic='true'>", + "atomic": "true", + "comments": "", + "outputs": 1, + "x": 236.6666259765625, + "y": 351.0104064941406, + "z": "4d7c5b65.634a04", + "wires": [ + [ + "bd9cb92d.d2bc28", + "8d913069.84b02", + "c151b8d6.48dfa8", + "89979590.5ecd48" + ] + ] + }, + { + "id": "45049f27.1a99", + "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", + "wires": [ + [ + "ac24d742.6eff88" + ] + ] + }, + { + "id": "ac24d742.6eff88", + "type": "success", + "name": "success", + "xml": "<outcome value='success'>\n", + "comments": "", + "outputs": 1, + "x": 4340.656440734863, + "y": 7798.010385274887, + "z": "4d7c5b65.634a04", + "wires": [ + [ + "6befcd06.33f3e4" + ] + ] + }, + { + "id": "6befcd06.33f3e4", + "type": "block", + "name": "block", + "xml": "<block>\n", + "atomic": "false", + "comments": "", + "outputs": 1, + "x": 4520.656196594238, + "y": 7795.010385274887, + "z": "4d7c5b65.634a04", + "wires": [ + [ + "258c4dc5.68dca2" + ] + ] + }, + { + "id": "258c4dc5.68dca2", + "type": "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", + "wires": [ + [] + ] + }, + { + "id": "89979590.5ecd48", + "type": "block", + "name": "SO Response", + "xml": "<block atomic='true'>", + "atomic": "true", + "comments": "", + "outputs": 1, + "x": 356.4166564941406, + "y": 2120.2646436691284, + "z": "4d7c5b65.634a04", + "wires": [ + [ + "5b1e63ee.b0bcac", + "6a98c3e2.10f9dc", + "bd81bd27.c9df1", + "88fbf49.5fc7708" + ] + ] + }, + { + "id": "5b1e63ee.b0bcac", + "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", + "wires": [ + [] + ] + }, + { + "id": "f6a80048.4c96f", + "type": "failure", + "name": "failure", + "xml": "<outcome value='failure'>\n", + "comments": "", + "outputs": 1, + "x": 896.6667251586914, + "y": 2301.014757156372, + "z": "4d7c5b65.634a04", + "wires": [ + [ + "93970682.457ea8" + ] + ] + }, + { + "id": "6ef55787.17d028", + "type": "success", + "name": "success", + "xml": "<outcome value='success'>\n", + "comments": "", + "outputs": 1, + "x": 888.666618347168, + "y": 2374.0147075653076, + "z": "4d7c5b65.634a04", + "wires": [ + [ + "bd8eb24b.e9c4b" + ] + ] + }, + { + "id": "bd8eb24b.e9c4b", + "type": "block", + "name": "block", + "xml": "<block>\n", + "atomic": "false", + "comments": "", + "outputs": 1, + "x": 1034.66646194458, + "y": 2379.0148162841797, + "z": "4d7c5b65.634a04", + "wires": [ + [ + "613b4178.27a96" + ] + ] + }, + { + "id": "93970682.457ea8", + "type": "block", + "name": "block", + "xml": "<block>\n", + "atomic": "false", + "comments": "", + "outputs": 1, + "x": 1045.6666259765625, + "y": 2297.014892578125, + "z": "4d7c5b65.634a04", + "wires": [ + [ + "496858cf.9a8df8", + "f0b8a6f.cd94f58" + ] + ] + }, + { + "id": "496858cf.9a8df8", + "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", + "wires": [] + }, + { + "id": "613b4178.27a96", + "type": "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", + "wires": [ + [] + ] + }, + { + "id": "53f6cef7.f7902", + "type": "block", + "name": "block : SO Response", + "xml": "<block atomic='true'>", + "atomic": "true", + "comments": "", + "outputs": 1, + "x": 4019.1577529907227, + "y": 1238.010576248169, + "z": "4d7c5b65.634a04", + "wires": [ + [ + "6f3a42bc.806e4c", + "b0ee0118.94385", + "fc4a3247.3ff21" + ] + ] + }, + { + "id": "6f3a42bc.806e4c", + "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", + "wires": [] + }, + { + "id": "b0ee0118.94385", + "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", + "wires": [ + [] + ] + }, + { + "id": "fc4a3247.3ff21", + "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", + "wires": [ + [ + "382852e9.e0675e", + "7b78f57e.ba76dc" + ] + ] + }, + { + "id": "382852e9.e0675e", + "type": "failure", + "name": "failure", + "xml": "<outcome value='failure'>\n", + "comments": "", + "outputs": 1, + "x": 4491.157357215881, + "y": 1258.0107421875, + "z": "4d7c5b65.634a04", + "wires": [ + [ + "3afb94d4.66d62c" + ] + ] + }, + { + "id": "7b78f57e.ba76dc", + "type": "success", + "name": "success", + "xml": "<outcome value='success'>\n", + "comments": "", + "outputs": 1, + "x": 4491.1572265625, + "y": 1322.0107421875, + "z": "4d7c5b65.634a04", + "wires": [ + [ + "2853a0d6.ddfa4" + ] + ] + }, + { + "id": "2853a0d6.ddfa4", + "type": "block", + "name": "block", + "xml": "<block>\n", + "atomic": "false", + "comments": "", + "outputs": 1, + "x": 4637.1572265625, + "y": 1321.0107421875, + "z": "4d7c5b65.634a04", + "wires": [ + [ + "21499006.1b3cc" + ] + ] + }, + { + "id": "3afb94d4.66d62c", + "type": "block", + "name": "block", + "xml": "<block>\n", + "atomic": "false", + "comments": "", + "outputs": 1, + "x": 4642.1572265625, + "y": 1258.0108642578125, + "z": "4d7c5b65.634a04", + "wires": [ + [ + "192c5617.efaa3a" + ] + ] + }, + { + "id": "192c5617.efaa3a", + "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", + "wires": [] + }, + { + "id": "21499006.1b3cc", + "type": "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", + "wires": [ + [] + ] + }, + { + "id": "f0b8a6f.cd94f58", + "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", + "wires": [] + }, + { + "id": "bd81bd27.c9df1", + "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", + "wires": [ + [] + ] + }, + { + "id": "499f16d.22a49e8", + "type": "failure", + "name": "true", + "xml": "<outcome value='true'>\n", + "comments": "", + "outputs": 1, + "x": 749.6668701171875, + "y": 397.0000915527344, + "z": "4d7c5b65.634a04", + "wires": [ + [ + "dea0e37d.325bd" + ] + ] + }, + { + "id": "8d913069.84b02", + "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", + "wires": [ + [ + "499f16d.22a49e8", + "ecb7f4cb.922ad8" + ] + ] + }, + { + "id": "ecb7f4cb.922ad8", + "type": "failure", + "name": "false", + "xml": "<outcome value='false'>\n", + "comments": "", + "outputs": 1, + "x": 758.1733093261719, + "y": 503.000244140625, + "z": "4d7c5b65.634a04", + "wires": [ + [ + "dd70b949.f841b8" + ] + ] + }, + { + "id": "8c9f59db.e6bc48", + "type": "failure", + "name": "true", + "xml": "<outcome value='true'>\n", + "comments": "", + "outputs": 1, + "x": 744.6670532226562, + "y": 1994.000244140625, + "z": "4d7c5b65.634a04", + "wires": [ + [ + "a73abfea.631e" + ] + ] + }, + { + "id": "dea0e37d.325bd", + "type": "block", + "name": "Closed Loop", + "xml": "<block atomic=\"true\">", + "atomic": "true", + "comments": "", + "outputs": 1, + "x": 766.6668701171875, + "y": 124.00006103515625, + "z": "4d7c5b65.634a04", + "wires": [ + [ + "aac735a1.6f54e8", + "b917faf1.f2ac38" + ] + ] + }, + { + "id": "a73abfea.631e", + "type": "block", + "name": "block : atomic", + "xml": "<block atomic=\"true\">", + "atomic": "true", + "outputs": 1, + "x": 931.6669502258301, + "y": 1994.0001430511475, + "z": "4d7c5b65.634a04", + "wires": [ + [ + "93c0ef.485c1f1", + "cc9c3169.e8025", + "bf442461.925f88", + "8142a0c0.4e5e5" + ] + ] + }, + { + "id": "dd70b949.f841b8", + "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", + "wires": [ + [ + "8c9f59db.e6bc48" + ] + ] + }, + { + "id": "aac735a1.6f54e8", + "type": "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", + "wires": [ + [] + ] + }, + { + "id": "93c0ef.485c1f1", + "type": "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", + "wires": [ + [] + ] + }, + { + "id": "c151b8d6.48dfa8", + "type": "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", + "comments": "", + "outputs": 1, + "x": 450.6666564941406, + "y": 351.0000238418579, + "z": "4d7c5b65.634a04", + "wires": [ + [] + ] + }, + { + "id": "b917faf1.f2ac38", + "type": "block", + "name": "NearRTRIC", + "xml": "<block atomic=\"true\">", + "atomic": "true", + "comments": "", + "outputs": 1, + "x": 986.67724609375, + "y": 174.01046752929688, + "z": "4d7c5b65.634a04", + "wires": [ + [ + "469ed456.870fcc", + "f59dcce9.2395c" + ] + ] + }, + { + "id": "cc9c3169.e8025", + "type": "block", + "name": "CUCP", + "xml": "<block atomic=\"true\">", + "atomic": "true", + "comments": "", + "outputs": 1, + "x": 1159.6774559020996, + "y": 1993.0104579925537, + "z": "4d7c5b65.634a04", + "wires": [ + [ + "7dfe3937.33ca78", + "2f0d0bdc.3fe284" + ] + ] + }, + { + "id": "a18381a8.6f5e", + "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", + "wires": [ + [ + "46b71058.0a755", + "2d1f14dd.9f8d4c" + ] + ] + }, + { + "id": "46b71058.0a755", + "type": "failure", + "name": "failure", + "xml": "<outcome value='failure'>\n", + "comments": "", + "outputs": 1, + "x": 1904.5667457580566, + "y": 604.0002002716064, + "z": "4d7c5b65.634a04", + "wires": [ + [ + "86e0f783.5c44b8" + ] + ] + }, + { + "id": "2d1f14dd.9f8d4c", + "type": "success", + "name": "success", + "xml": "<outcome value='success'>\n", + "comments": "", + "outputs": 1, + "x": 1902.566749572754, + "y": 690.9999589920044, + "z": "4d7c5b65.634a04", + "wires": [ + [ + "ed74cc8d.297f4" + ] + ] + }, + { + "id": "86e0f783.5c44b8", + "type": "block", + "name": "block", + "xml": "<block>\n", + "atomic": "false", + "comments": "", + "outputs": 1, + "x": 2063.5668716430664, + "y": 603.0000762939453, + "z": "4d7c5b65.634a04", + "wires": [ + [ + "7680b50c.0d0cfc", + "b5b9a8ee.178b08", + "53f6cef7.f7902" + ] + ] + }, + { + "id": "ed74cc8d.297f4", + "type": "block", + "name": "block", + "xml": "<block>\n", + "atomic": "false", + "comments": "", + "outputs": 1, + "x": 2075.566547393799, + "y": 690.0001621246338, + "z": "4d7c5b65.634a04", + "wires": [ + [ + "d60e382a.987ab8", + "59e28a75.507424" + ] + ] + }, + { + "id": "606dc018.93301", + "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", + "wires": [ + [ + "95120f6f.d2c67", + "d9f440c.e5360c", + "322b057f.3273da", + "a18381a8.6f5e" + ] + ] + }, + { + "id": "322b057f.3273da", + "type": "switchNode", + "name": "ransim mounted", + "xml": "<switch test='`$prop.ransim-mounted`'>\n", + "comments": "", + "outputs": 1, + "x": 1567.6669921875, + "y": 390.4010314941406, + "z": "4d7c5b65.634a04", + "wires": [ + [ + "27589ceb.1588b4", + "2f3eb675.6b0bea" + ] + ] + }, + { + "id": "27589ceb.1588b4", + "type": "outcome", + "name": "Not Mounted", + "xml": "<outcome value='false'>\n", + "comments": "", + "outputs": 1, + "x": 1807.6669921875, + "y": 389.4008483886719, + "z": "4d7c5b65.634a04", + "wires": [ + [ + "99e5f9ee.5c06c8" + ] + ] + }, + { + "id": "2f3eb675.6b0bea", + "type": "outcome", + "name": "Mounted", + "xml": "<outcome value='true'>\n", + "comments": "", + "outputs": 1, + "x": 1798.6671142578125, + "y": 452.40093994140625, + "z": "4d7c5b65.634a04", + "wires": [ + [ + "1a995263.b3b8ee" + ] + ] + }, + { + "id": "d9f440c.e5360c", + "type": "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", + "wires": [ + [] + ] + }, + { + "id": "95120f6f.d2c67", + "type": "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", + "wires": [ + [] + ] + }, + { + "id": "709901d0.b774a", + "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", + "wires": [ + [] + ] + }, + { + "id": "5b676f7e.7cbec", + "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", + "wires": [ + [] + ] + }, + { + "id": "1a995263.b3b8ee", + "type": "block", + "name": "ransim URL", + "xml": "<block atomic='true'>", + "atomic": "true", + "comments": "", + "outputs": 1, + "x": 2030.65673828125, + "y": 452.4009094238281, + "z": "4d7c5b65.634a04", + "wires": [ + [ + "5dbd3439.28967c", + "5b676f7e.7cbec", + "709901d0.b774a" + ] + ] + }, + { + "id": "5dbd3439.28967c", + "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", + "wires": [ + [] + ] + }, + { + "id": "77ebd462.27379c", + "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", + "wires": [ + [] + ] + }, + { + "id": "18f4ec66.2b3d24", + "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", + "wires": [ + [] + ] + }, + { + "id": "99e5f9ee.5c06c8", + "type": "block", + "name": "URL", + "xml": "<block atomic='true'>", + "atomic": "true", + "comments": "", + "outputs": 1, + "x": 2027.8685302734375, + "y": 389.0000305175781, + "z": "4d7c5b65.634a04", + "wires": [ + [ + "18f4ec66.2b3d24", + "77ebd462.27379c" + ] + ] + }, + { + "id": "f59dcce9.2395c", + "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", + "wires": [] + }, + { + "id": "469ed456.870fcc", + "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", + "wires": [ + [ + "606dc018.93301", + "b5dfde0e.035e6", + "b390b1db.dbb11", + "2f0d0bdc.3fe284", + "a837a263.556b8", + "9071a476.518048" + ] + ] + }, + { + "id": "b5dfde0e.035e6", + "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", + "wires": [] + }, + { + "id": "7680b50c.0d0cfc", + "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", + "wires": [] + }, + { + "id": "b5b9a8ee.178b08", + "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", + "wires": [] + }, + { + "id": "d60e382a.987ab8", + "type": "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", + "wires": [ + [] + ] + }, + { + "id": "59e28a75.507424", + "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", + "wires": [ + [] + ] + }, + { + "id": "bf442461.925f88", + "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", + "wires": [] + }, + { + "id": "7dfe3937.33ca78", + "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", + "wires": [ + [ + "56d2328.ebe75cc" + ] + ] + }, + { + "id": "2f0d0bdc.3fe284", + "type": "block", + "name": "get PLMNId", + "xml": "<block atomic='true'>", + "atomic": "true", + "comments": "", + "outputs": 1, + "x": 1184.4167785644531, + "y": 919.7501668930054, + "z": "4d7c5b65.634a04", + "wires": [ + [ + "fdccd5c2.f62b28", + "e432dc1.4df992", + "2376f7a2.cf75c8", + "5c0646e3.0b0dd8", + "c6230172.e0fc3", + "ec44d6b8.c095e8", + "2c66b2a5.586b9e" + ] + ] + }, + { + "id": "b390b1db.dbb11", + "type": "block", + "name": "Update NearRTRIC Config", + "xml": "<block atomic=\"true\">", + "atomic": "true", + "comments": "", + "outputs": 1, + "x": 1112.1666870117188, + "y": 1510.5, + "z": "4d7c5b65.634a04", + "wires": [ + [ + "3e21d260.0305ae", + "99f61b3f.7c9258", + "4fcdfd93.2b2e94", + "8c7da0b4.ffdc8", + "b50c2ced.c3143", + "8dd65b69.c1c0e8", + "24ce1a1c.0c4dc6" + ] + ] + }, + { + "id": "6a98c3e2.10f9dc", + "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", + "wires": [] + }, + { + "id": "88fbf49.5fc7708", + "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", + "wires": [ + [ + "f6a80048.4c96f", + "6ef55787.17d028" + ] + ] + }, + { + "id": "3332b0a3.18c75", + "type": "outcome", + "name": "Not Mounted", + "xml": "<outcome value='false'>\n", + "comments": "", + "outputs": 1, + "x": 2055.416748046875, + "y": 2063, + "z": "4d7c5b65.634a04", + "wires": [ + [ + "9fe8a854.d9ada8" + ] + ] + }, + { + "id": "6e6bdcac.3f3144", + "type": "outcome", + "name": "Mounted", + "xml": "<outcome value='true'>\n", + "comments": "", + "outputs": 1, + "x": 2042.4168014526367, + "y": 2108.0001702308655, + "z": "4d7c5b65.634a04", + "wires": [ + [ + "dbbfe50d.f18f78" + ] + ] + }, + { + "id": "dbbfe50d.f18f78", + "type": "block", + "name": "ransim URL", + "xml": "<block atomic='true'>", + "atomic": "true", + "comments": "", + "outputs": 1, + "x": 2226.4066162109375, + "y": 2109.000244140625, + "z": "4d7c5b65.634a04", + "wires": [ + [ + "c9d85598.6f2108", + "4a5f9e34.0c641" + ] + ] + }, + { + "id": "9fe8a854.d9ada8", + "type": "block", + "name": "URL", + "xml": "<block atomic='true'>", + "atomic": "true", + "comments": "", + "outputs": 1, + "x": 2210.6182861328125, + "y": 2062.59912109375, + "z": "4d7c5b65.634a04", + "wires": [ + [ + "9a2c83bd.5dad5" + ] + ] + }, + { + "id": "9a2c83bd.5dad5", + "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", + "wires": [ + [] + ] + }, + { + "id": "c9d85598.6f2108", + "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", + "wires": [ + [] + ] + }, + { + "id": "4a5f9e34.0c641", + "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", + "wires": [ + [] + ] + }, + { + "id": "afec3a59.277408", + "type": "switchNode", + "name": "ransim mounted", + "xml": "<switch test='`$prop.ransim-mounted`'>\n", + "comments": "", + "outputs": 1, + "x": 1859.416748046875, + "y": 2064, + "z": "4d7c5b65.634a04", + "wires": [ + [ + "3332b0a3.18c75", + "6e6bdcac.3f3144" + ] + ] + }, + { + "id": "c077a64b.c869f8", + "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", + "wires": [ + [] + ] + }, + { + "id": "56e26473.9cbccc", + "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", + "wires": [ + [] + ] + }, + { + "id": "56d2328.ebe75cc", + "type": "block", + "name": "block : atomic", + "xml": "<block atomic=\"true\">", + "atomic": "true", + "outputs": 1, + "x": 1606.4166259765625, + "y": 2142, + "z": "4d7c5b65.634a04", + "wires": [ + [ + "afec3a59.277408", + "c077a64b.c869f8", + "56e26473.9cbccc", + "bb174bd1.753338", + "ec554766.4f8778", + "8381dddd.a8978", + "f47c2242.987ea" + ] + ] + }, + { + "id": "bb174bd1.753338", + "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", + "wires": [ + [ + "80b017d0.e3d138" + ] + ] + }, + { + "id": "d39528dc.0aa948", + "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", + "wires": [ + [] + ] + }, + { + "id": "80b017d0.e3d138", + "type": "block", + "name": "block : atomic", + "xml": "<block atomic=\"true\">", + "atomic": "true", + "outputs": 1, + "x": 2068.4166259765625, + "y": 2253, + "z": "4d7c5b65.634a04", + "wires": [ + [ + "d39528dc.0aa948", + "99d3e596.541268", + "a8b88564.0e3ed8", + "56bbe873.87ce18", + "a9da99d0.023b68" + ] + ] + }, + { + "id": "99d3e596.541268", + "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", + "wires": [ + [] + ] + }, + { + "id": "a8b88564.0e3ed8", + "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", + "wires": [ + [ + "24363a2b.964e46", + "bb57c66f.f72708" + ] + ] + }, + { + "id": "24363a2b.964e46", + "type": "success", + "name": "success", + "xml": "<outcome value='success'>\n", + "comments": "", + "outputs": 1, + "x": 2553.416748046875, + "y": 2379.25, + "z": "4d7c5b65.634a04", + "wires": [ + [ + "c6c44ad.b771bb8" + ] + ] + }, + { + "id": "bb57c66f.f72708", + "type": "failure", + "name": "failure", + "xml": "<outcome value='failure'>\n", + "comments": "", + "outputs": 1, + "x": 2549.9794921875, + "y": 2415.8125, + "z": "4d7c5b65.634a04", + "wires": [ + [ + "e15a40fc.968c" + ] + ] + }, + { + "id": "e15a40fc.968c", + "type": "block", + "name": "block", + "xml": "<block>", + "atomic": "false", + "comments": "", + "outputs": 1, + "x": 2706.979248046875, + "y": 2415.8125, + "z": "4d7c5b65.634a04", + "wires": [ + [ + "c203d45e.a94948", + "af399e.80ed966", + "53f6cef7.f7902" + ] + ] + }, + { + "id": "c6c44ad.b771bb8", + "type": "block", + "name": "block : atomic", + "xml": "<block atomic='true'>", + "atomic": "true", + "comments": "", + "outputs": 1, + "x": 2729.41650390625, + "y": 2379.25, + "z": "4d7c5b65.634a04", + "wires": [ + [ + "de0a2639.6f4b28" + ] + ] + }, + { + "id": "c203d45e.a94948", + "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", + "wires": [] + }, + { + "id": "af399e.80ed966", + "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", + "wires": [] + }, + { + "id": "de0a2639.6f4b28", + "type": "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", + "wires": [ + [] + ] + }, + { + "id": "8142a0c0.4e5e5", + "type": "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", + "wires": [ + [] + ] + }, + { + "id": "ec554766.4f8778", + "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", + "wires": [ + [] + ] + }, + { + "id": "8381dddd.a8978", + "type": "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", + "wires": [ + [] + ] + }, + { + "id": "56bbe873.87ce18", + "type": "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", + "wires": [ + [] + ] + }, + { + "id": "f47c2242.987ea", + "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", + "wires": [] + }, + { + "id": "3093a6b1.44582a", + "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", + "wires": [] + }, + { + "id": "a9da99d0.023b68", + "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", + "wires": [ + [] + ] + }, + { + "id": "a837a263.556b8", + "type": "switchNode", + "name": "check nearrtric", + "xml": "<switch test='`$tmp.nearRTRICId == 11 `'>\n", + "comments": "", + "outputs": 1, + "x": 1297.0667724609375, + "y": 215, + "z": "4d7c5b65.634a04", + "wires": [ + [ + "ee6e09df.17f748", + "44ef0006.28225" + ] + ] + }, + { + "id": "ee6e09df.17f748", + "type": "outcome", + "name": "True", + "xml": "<outcome value='true'>\n", + "comments": "", + "outputs": 1, + "x": 1526.2669677734375, + "y": 34.000003814697266, + "z": "4d7c5b65.634a04", + "wires": [ + [ + "29f7310a.05b4de" + ] + ] + }, + { + "id": "44ef0006.28225", + "type": "outcome", + "name": "False", + "xml": "<outcome value='false'>\n", + "comments": "", + "outputs": 1, + "x": 1525.066650390625, + "y": 145, + "z": "4d7c5b65.634a04", + "wires": [ + [ + "6a8e5244.2ed45c" + ] + ] + }, + { + "id": "9071a476.518048", + "type": "block", + "name": "block : atomic", + "xml": "<block atomic='true'>", + "atomic": "true", + "comments": "", + "outputs": 1, + "x": 1295.066650390625, + "y": 271, + "z": "4d7c5b65.634a04", + "wires": [ + [ + "c8208c39.b463b" + ] + ] + }, + { + "id": "c8208c39.b463b", + "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", + "wires": [ + [ + "1c68fa89.5794b5", + "67b1fe4a.998a" + ] + ] + }, + { + "id": "1c68fa89.5794b5", + "type": "success", + "name": "success", + "xml": "<outcome value='success'>\n", + "comments": "", + "outputs": 1, + "x": 1756.6668701171875, + "y": 215, + "z": "4d7c5b65.634a04", + "wires": [ + [ + "8d49bba.3039b48" + ] + ] + }, + { + "id": "8d49bba.3039b48", + "type": "block", + "name": "block : atomic", + "xml": "<block atomic='true'>", + "atomic": "true", + "comments": "", + "outputs": 1, + "x": 2050.6669921875, + "y": 212.56729125976562, + "z": "4d7c5b65.634a04", + "wires": [ + [ + "4a65dabe.68fdc4", + "9831832b.09cf5", + "652eb8b4.5e5758", + "b608e3ec.3ad0a" + ] + ] + }, + { + "id": "4a65dabe.68fdc4", + "type": "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", + "wires": [ + [] + ] + }, + { + "id": "67b1fe4a.998a", + "type": "failure", + "name": "failure", + "xml": "<outcome value='failure'>\n", + "comments": "", + "outputs": 1, + "x": 1754.6666259765625, + "y": 273.5673522949219, + "z": "4d7c5b65.634a04", + "wires": [ + [ + "a99e6308.eb03b" + ] + ] + }, + { + "id": "a99e6308.eb03b", + "type": "block", + "name": "block : atomic", + "xml": "<block atomic='true'>", + "atomic": "true", + "comments": "", + "outputs": 1, + "x": 2049.6666259765625, + "y": 270.5673522949219, + "z": "4d7c5b65.634a04", + "wires": [ + [ + "a4fee6d5.fd3a68" + ] + ] + }, + { + "id": "a4fee6d5.fd3a68", + "type": "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", + "wires": [ + [] + ] + }, + { + "id": "9831832b.09cf5", + "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", + "wires": [ + [] + ] + }, + { + "id": "652eb8b4.5e5758", + "type": "switchNode", + "name": "check the action", + "xml": "<switch test='`$tmp.policytypelength > 0`'>\n", + "comments": "", + "outputs": 1, + "x": 2398.6669921875, + "y": 149, + "z": "4d7c5b65.634a04", + "wires": [ + [ + "b13e9298.92709", + "4ace453e.713c1c" + ] + ] + }, + { + "id": "b13e9298.92709", + "type": "outcome", + "name": "True", + "xml": "<outcome value='true'>\n", + "comments": "", + "outputs": 1, + "x": 2653.266845703125, + "y": 97, + "z": "4d7c5b65.634a04", + "wires": [ + [ + "3e49e38c.34499c" + ] + ] + }, + { + "id": "4ace453e.713c1c", + "type": "outcome", + "name": "False", + "xml": "<outcome value='false'>\n", + "comments": "", + "outputs": 1, + "x": 2657.266845703125, + "y": 147, + "z": "4d7c5b65.634a04", + "wires": [ + [ + "183652da.4b65ed" + ] + ] + }, + { + "id": "3e49e38c.34499c", + "type": "block", + "name": "block : atomic", + "xml": "<block atomic='true'>", + "atomic": "true", + "comments": "", + "outputs": 1, + "x": 2861.266845703125, + "y": 96, + "z": "4d7c5b65.634a04", + "wires": [ + [ + "b477f524.5c3698" + ] + ] + }, + { + "id": "183652da.4b65ed", + "type": "block", + "name": "block : atomic", + "xml": "<block atomic='true'>", + "atomic": "true", + "comments": "", + "outputs": 1, + "x": 2860.26708984375, + "y": 148, + "z": "4d7c5b65.634a04", + "wires": [ + [ + "a29b2a1e.131ca8", + "38c0245d.21204c" + ] + ] + }, + { + "id": "b477f524.5c3698", + "type": "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", + "wires": [ + [] + ] + }, + { + "id": "a29b2a1e.131ca8", + "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", + "wires": [ + [ + "ca1434a0.d4db48" + ] + ] + }, + { + "id": "38c0245d.21204c", + "type": "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", + "wires": [ + [] + ] + }, + { + "id": "ca1434a0.d4db48", + "type": "success", + "name": "success", + "xml": "<outcome value='success'>\n", + "comments": "", + "outputs": 1, + "x": 3273.07763671875, + "y": 192.20010375976562, + "z": "4d7c5b65.634a04", + "wires": [ + [ + "5b25ef14.6ec01" + ] + ] + }, + { + "id": "18d541d4.e97b9e", + "type": "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", + "wires": [ + [] + ] + }, + { + "id": "5b25ef14.6ec01", + "type": "block", + "name": "block : atomic", + "xml": "<block atomic='true'>", + "atomic": "true", + "comments": "", + "outputs": 1, + "x": 3434.666748046875, + "y": 191, + "z": "4d7c5b65.634a04", + "wires": [ + [ + "18d541d4.e97b9e" + ] + ] + }, + { + "id": "b608e3ec.3ad0a", + "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", + "wires": [ + [ + "62b5f7bc.ce57e8" + ] + ] + }, + { + "id": "7378693d.36ae88", + "type": "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", + "wires": [ + [] + ] + }, + { + "id": "cfd54615.7b8778", + "type": "block", + "name": "block : atomic", + "xml": "<block atomic='true'>", + "atomic": "true", + "comments": "", + "outputs": 1, + "x": 2871.266357421875, + "y": 211, + "z": "4d7c5b65.634a04", + "wires": [ + [ + "7378693d.36ae88" + ] + ] + }, + { + "id": "62b5f7bc.ce57e8", + "type": "success", + "name": "success", + "xml": "<outcome value='success'>\n", + "comments": "", + "outputs": 1, + "x": 2664.26611328125, + "y": 211.199951171875, + "z": "4d7c5b65.634a04", + "wires": [ + [ + "cfd54615.7b8778" + ] + ] + }, + { + "id": "29f7310a.05b4de", + "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", + "wires": [] + }, + { + "id": "6a8e5244.2ed45c", + "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", + "wires": [] + }, + { + "id": "e77514ee.b9e588", + "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", + "wires": [] + }, + { + "id": "fdccd5c2.f62b28", + "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", + "wires": [ + [] + ] + }, + { + "id": "e432dc1.4df992", + "type": "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", + "wires": [ + [] + ] + }, + { + "id": "2376f7a2.cf75c8", + "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", + "wires": [ + [ + "e2c43f8b.794dd", + "b0c9797.521a888" + ] + ] + }, + { + "id": "5c0646e3.0b0dd8", + "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", + "wires": [ + [] + ] + }, + { + "id": "c6230172.e0fc3", + "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", + "wires": [ + [] + ] + }, + { + "id": "ec44d6b8.c095e8", + "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", + "wires": [ + [ + "540f1da.0b193e4" + ] + ] + }, + { + "id": "2c66b2a5.586b9e", + "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", + "wires": [ + [ + "11aaa3ed.4a924c" + ] + ] + }, + { + "id": "b0c9797.521a888", + "type": "failure", + "name": "failure", + "xml": "<outcome value='failure'>\n", + "comments": "", + "outputs": 1, + "x": 1753.6947021484375, + "y": 833.8888549804688, + "z": "4d7c5b65.634a04", + "wires": [ + [ + "3b9f2e5f.af4d02" + ] + ] + }, + { + "id": "e2c43f8b.794dd", + "type": "success", + "name": "success", + "xml": "<outcome value='success'>\n", + "comments": "", + "outputs": 1, + "x": 1754.6947021484375, + "y": 873.0833129882812, + "z": "4d7c5b65.634a04", + "wires": [ + [ + "7cc3fcae.700414" + ] + ] + }, + { + "id": "540f1da.0b193e4", + "type": "block", + "name": "block : atomic", + "xml": "<block atomic='true'>", + "atomic": "true", + "comments": "", + "outputs": 1, + "x": 1678.574104309082, + "y": 1016.3888845443726, + "z": "4d7c5b65.634a04", + "wires": [ + [ + "b2a6435.8b0e5c", + "6da28c56.8f5794" + ] + ] + }, + { + "id": "11aaa3ed.4a924c", + "type": "block", + "name": "block : atomic", + "xml": "<block atomic='true'>", + "atomic": "true", + "comments": "", + "outputs": 1, + "x": 1673.889045715332, + "y": 1066.3332452774048, + "z": "4d7c5b65.634a04", + "wires": [ + [ + "f7ee7f22.d5598", + "a941c0ab.620a" + ] + ] + }, + { + "id": "3b9f2e5f.af4d02", + "type": "block", + "name": "block", + "xml": "<block>", + "atomic": "false", + "comments": "", + "outputs": 1, + "x": 1909.3890380859375, + "y": 833.5001831054688, + "z": "4d7c5b65.634a04", + "wires": [ + [ + "563dd411.ce4bec", + "87f2b4f1.95cd08" + ] + ] + }, + { + "id": "7cc3fcae.700414", + "type": "block", + "name": "block : atomic", + "xml": "<block atomic='true'>", + "atomic": "true", + "comments": "", + "outputs": 1, + "x": 1929.138916015625, + "y": 873.7499389648438, + "z": "4d7c5b65.634a04", + "wires": [ + [ + "c7360c2e.2ad2", + "ddff613a.99f4" + ] + ] + }, + { + "id": "6da28c56.8f5794", + "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", + "wires": [ + [] + ] + }, + { + "id": "b2a6435.8b0e5c", + "type": "switchNode", + "name": "check schemaSetName", + "xml": "<switch test='`$tmp.schemaset.name`'>\n", + "comments": "", + "outputs": 1, + "x": 1925.7223815917969, + "y": 1015.3888854980469, + "z": "4d7c5b65.634a04", + "wires": [ + [ + "7d5e20cf.b122f" + ] + ] + }, + { + "id": "f7ee7f22.d5598", + "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", + "wires": [ + [] + ] + }, + { + "id": "a941c0ab.620a", + "type": "switchNode", + "name": "check schemaSetName", + "xml": "<switch test='`$tmp.schemaset.name`'>\n", + "comments": "", + "outputs": 1, + "x": 1926.5215377807617, + "y": 1143.7623653411865, + "z": "4d7c5b65.634a04", + "wires": [ + [ + "beea823c.d83c8" + ] + ] + }, + { + "id": "563dd411.ce4bec", + "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", + "wires": [] + }, + { + "id": "87f2b4f1.95cd08", + "type": "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", + "wires": [ + [] + ] + }, + { + "id": "c7360c2e.2ad2", + "type": "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", + "wires": [ + [] + ] + }, + { + "id": "ddff613a.99f4", + "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", + "wires": [ + [] + ] + }, + { + "id": "7d5e20cf.b122f", + "type": "outcome", + "name": "if ran-inventory", + "xml": "<outcome value='ran-inventory'>\n", + "comments": "", + "outputs": 1, + "x": 2142.0278930664062, + "y": 1015.8611354827881, + "z": "4d7c5b65.634a04", + "wires": [ + [ + "29a681d4.fadf1e" + ] + ] + }, + { + "id": "beea823c.d83c8", + "type": "outcome", + "name": "if ran-inventory", + "xml": "<outcome value='ran-inventory'>\n", + "comments": "", + "outputs": 1, + "x": 2149.3269653320312, + "y": 1144.234531402588, + "z": "4d7c5b65.634a04", + "wires": [ + [ + "9d9e9816.080208" + ] + ] + }, + { + "id": "29a681d4.fadf1e", + "type": "block", + "name": "block : atomic", + "xml": "<block atomic='true'>", + "atomic": "true", + "comments": "", + "outputs": 1, + "x": 2327.3301391601562, + "y": 1016.1943836212158, + "z": "4d7c5b65.634a04", + "wires": [ + [ + "f3425f7f.85797", + "d160bcca.e09da" + ] + ] + }, + { + "id": "9d9e9816.080208", + "type": "block", + "name": "block : atomic", + "xml": "<block atomic='true'>", + "atomic": "true", + "comments": "", + "outputs": 1, + "x": 2350.462715148926, + "y": 1144.456699371338, + "z": "4d7c5b65.634a04", + "wires": [ + [ + "f8577db4.f2c6d", + "eeb6c5cb.590e98" + ] + ] + }, + { + "id": "d160bcca.e09da", + "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", + "wires": [ + [] + ] + }, + { + "id": "f3425f7f.85797", + "type": "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", + "wires": [ + [] + ] + }, + { + "id": "f8577db4.f2c6d", + "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", + "wires": [ + [] + ] + }, + { + "id": "eeb6c5cb.590e98", + "type": "block", + "name": "block : atomic", + "xml": "<block atomic='true'>", + "atomic": "true", + "comments": "", + "outputs": 1, + "x": 2591.3894805908203, + "y": 1142.8332448005676, + "z": "4d7c5b65.634a04", + "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" + ] + ] + }, + { + "id": "874b4b23.cea4d8", + "type": "execute", + "name": "read sliceProfileId from input", + "xml": "<set>\n<parameter name='tmp.sliceprofileid' value=\"`$payloadJson.input.sliceProfile.sliceProfileId`\" />", + "comments": "", + "outputs": 1, + "x": 2941.999813079834, + "y": 916.9998564720154, + "z": "4d7c5b65.634a04", + "wires": [ + [] + ] + }, + { + "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", + "comments": "", + "outputs": 1, + "x": 2869.999813079834, + "y": 953.9998564720154, + "z": "4d7c5b65.634a04", + "wires": [ + [] + ] + }, + { + "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`\"/>", + "comments": "", + "outputs": 1, + "x": 2923.639030456543, + "y": 986.9832997322083, + "z": "4d7c5b65.634a04", + "wires": [ + [] + ] + }, + { + "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`\"/>", + "comments": "", + "outputs": 1, + "x": 2920.639030456543, + "y": 1025.5832362174988, + "z": "4d7c5b65.634a04", + "wires": [ + [] + ] + }, + { + "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`\" />", + "comments": "", + "outputs": 1, + "x": 2945.638999938965, + "y": 1068.7833499908447, + "z": "4d7c5b65.634a04", + "wires": [ + [] + ] + }, + { + "id": "705651e1.fb1af", + "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\"/>", + "comments": "", + "outputs": 1, + "x": 2954.6393280029297, + "y": 1111.7832746505737, + "z": "4d7c5b65.634a04", + "wires": [ + [ + "d8528e68.284ff", + "bcb36ade.065ef8" + ] + ] + }, + { + "id": "4a4a3fa0.89175", + "type": "execute", + "name": "generate plmnid URL cps", + "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$prop.restapi.cps.tbdmt.execute.endpoint`\"/>\n <parameter name=\"outputPath\" value=\"tmp.cps.getPLMNMNCID.url\"/>\n <parameter name=\"target\" value=\"{schemaSet}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.schemaset.name`\"/>", + "comments": "", + "outputs": 1, + "x": 2917.639015197754, + "y": 1154.9833045005798, + "z": "4d7c5b65.634a04", + "wires": [ + [] + ] + }, + { + "id": "5bfa480.41ee8b8", + "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`\"/>", + "comments": "", + "outputs": 1, + "x": 2918.4390258789062, + "y": 1195.583240032196, + "z": "4d7c5b65.634a04", + "wires": [ + [] + ] + }, + { + "id": "8bbc2989.076ef8", + "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`\" />", + "comments": "", + "outputs": 1, + "x": 2941.439022064209, + "y": 1233.7833037376404, + "z": "4d7c5b65.634a04", + "wires": [ + [] + ] + }, + { + "id": "a048785c.f71c98", + "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\"/>", + "comments": "", + "outputs": 1, + "x": 2949.438804626465, + "y": 1274.783281326294, + "z": "4d7c5b65.634a04", + "wires": [ + [ + "c5be1942.f9e138", + "22fb40b8.c923f" + ] + ] + }, + { + "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`\"/>", + "comments": "", + "outputs": 1, + "x": 2867.9723320007324, + "y": 1363.7923183441162, + "z": "4d7c5b65.634a04", + "wires": [ + [] + ] + }, + { + "id": "d8528e68.284ff", + "type": "failure", + "name": "failure", + "xml": "<outcome value='failure'>\n", + "comments": "", + "outputs": 1, + "x": 3242.4163551330566, + "y": 1029.69424533844, + "z": "4d7c5b65.634a04", + "wires": [ + [ + "377995a1.42065a" + ] + ] + }, + { + "id": "bcb36ade.065ef8", + "type": "success", + "name": "success", + "xml": "<outcome value='success'>\n", + "comments": "", + "outputs": 1, + "x": 3247.638359069824, + "y": 1110.5832443237305, + "z": "4d7c5b65.634a04", + "wires": [ + [ + "f6a6ebc6.51c148" + ] + ] + }, + { + "id": "c5be1942.f9e138", + "type": "failure", + "name": "failure", + "xml": "<outcome value='failure'>\n", + "comments": "", + "outputs": 1, + "x": 3246.638359069824, + "y": 1344.5831680297852, + "z": "4d7c5b65.634a04", + "wires": [ + [ + "5478652b.fa7ecc" + ] + ] + }, + { + "id": "22fb40b8.c923f", + "type": "success", + "name": "success", + "xml": "<outcome value='success'>\n", + "comments": "", + "outputs": 1, + "x": 3246.639335632324, + "y": 1278.5831680297852, + "z": "4d7c5b65.634a04", + "wires": [ + [ + "1422f96e.e42af7" + ] + ] + }, + { + "id": "377995a1.42065a", + "type": "block", + "name": "block", + "xml": "<block>", + "atomic": "false", + "comments": "", + "outputs": 1, + "x": 3419.638687133789, + "y": 1030.5830121040344, + "z": "4d7c5b65.634a04", + "wires": [ + [ + "5b267180.de1b2", + "8f18659e.f69b78", + "bc687d8e.5d461", + "53f6cef7.f7902" + ] + ] + }, + { + "id": "f6a6ebc6.51c148", + "type": "block", + "name": "block : atomic", + "xml": "<block atomic='true'>", + "atomic": "true", + "comments": "", + "outputs": 1, + "x": 3417.527359008789, + "y": 1109.4719982147217, + "z": "4d7c5b65.634a04", + "wires": [ + [ + "85dbd4de.56dc68", + "b0138cc8.abd22" + ] + ] + }, + { + "id": "5478652b.fa7ecc", + "type": "block", + "name": "block", + "xml": "<block>", + "atomic": "false", + "comments": "", + "outputs": 1, + "x": 3404.6383628845215, + "y": 1345.5830764770508, + "z": "4d7c5b65.634a04", + "wires": [ + [ + "74526283.bfee3c", + "c4866c85.64adf", + "53f6cef7.f7902" + ] + ] + }, + { + "id": "1422f96e.e42af7", + "type": "block", + "name": "block : atomic", + "xml": "<block atomic='true'>", + "atomic": "true", + "comments": "", + "outputs": 1, + "x": 3413.860855102539, + "y": 1279.3608283996582, + "z": "4d7c5b65.634a04", + "wires": [ + [ + "3a7ac81f.3363c8", + "411e5f61.ee056" + ] + ] + }, + { + "id": "8f18659e.f69b78", + "type": "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": 3603.3328704833984, + "y": 950.6667141914368, + "z": "4d7c5b65.634a04", + "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", + "type": "execute", + "name": "read nearRTRICId-PLMN", + "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'>\n\t<parameter name='outputPath' value='tmp.plmn.mcc' />\n\t<parameter name='source' value=\"`'getplmnmccid-cps-response.[0]'`\" />\n", + "comments": "", + "outputs": 1, + "x": 3661.349956512451, + "y": 1052.4496097564697, + "z": "4d7c5b65.634a04", + "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`\"/>", + "comments": "", + "outputs": 1, + "x": 3614.1390228271484, + "y": 1111.8330745697021, + "z": "4d7c5b65.634a04", + "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", + "comments": "", + "outputs": 1, + "x": 3654.4886322021484, + "y": 1228.6331329345703, + "z": "4d7c5b65.634a04", + "wires": [ + [] + ] + }, + { + "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`\"/>", + "comments": "", + "outputs": 1, + "x": 3598.6380462646484, + "y": 1276.083249092102, + "z": "4d7c5b65.634a04", + "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", + "type": "switchNode", + "name": "ransim mounted", + "xml": "<switch test='`$prop.ransim-mounted`'>\n", + "comments": "", + "outputs": 1, + "x": 1448, + "y": 1299, + "z": "4d7c5b65.634a04", + "wires": [ + [ + "26c54f86.bf74b", + "79f29ec2.b22c2" + ] + ] + }, + { + "id": "26c54f86.bf74b", + "type": "outcome", + "name": "Not Mounted", + "xml": "<outcome value='false'>\n", + "comments": "", + "outputs": 1, + "x": 1661.9998474121094, + "y": 1299.999755859375, + "z": "4d7c5b65.634a04", + "wires": [ + [ + "3dd49a3.5a86666" + ] + ] + }, + { + "id": "79f29ec2.b22c2", + "type": "outcome", + "name": "Mounted", + "xml": "<outcome value='true'>\n", + "comments": "", + "outputs": 1, + "x": 1654.0000457763672, + "y": 1341.9998397827148, + "z": "4d7c5b65.634a04", + "wires": [ + [ + "ab008fe8.c3e1c" + ] + ] + }, + { + "id": "ab008fe8.c3e1c", + "type": "block", + "name": "ransim URL", + "xml": "<block atomic='true'>", + "atomic": "true", + "comments": "", + "outputs": 1, + "x": 1827.9899635314941, + "y": 1341.9998397827148, + "z": "4d7c5b65.634a04", + "wires": [ + [ + "197b8787.ab2868", + "1f06dbc0.549624" + ] + ] + }, + { + "id": "3dd49a3.5a86666", + "type": "block", + "name": "URL", + "xml": "<block atomic='true'>", + "atomic": "true", + "comments": "", + "outputs": 1, + "x": 1824.2015113830566, + "y": 1300.5989589691162, + "z": "4d7c5b65.634a04", + "wires": [ + [ + "d9c4f2e2.58fc9" + ] + ] + }, + { + "id": "d9c4f2e2.58fc9", + "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": 2121.0000190734863, + "y": 1301.0001640319824, + "z": "4d7c5b65.634a04", + "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`\"/>", + "comments": "", + "outputs": 1, + "x": 2122.534523010254, + "y": 1342.5992851257324, + "z": "4d7c5b65.634a04", + "wires": [ + [] + ] + }, + { + "id": "1f06dbc0.549624", + "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": 2063.5348510742188, + "y": 1383.5989618301392, + "z": "4d7c5b65.634a04", + "wires": [ + [] + ] + }, + { + "id": "99f61b3f.7c9258", + "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": 1448.7500381469727, + "y": 1377.000002861023, + "z": "4d7c5b65.634a04", + "wires": [ + [] + ] + }, + { + "id": "4fcdfd93.2b2e94", + "type": "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": 1418.0000381469727, + "y": 1421.7500042915344, + "z": "4d7c5b65.634a04", + "wires": [ + [] + ] + }, + { + "id": "8c7da0b4.ffdc8", + "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": 1486.8055419921875, + "y": 1465.916672706604, + "z": "4d7c5b65.634a04", + "wires": [ + [ + "1c00cebc.15e071", + "655604d5.d3202c" + ] + ] + }, + { + "id": "b50c2ced.c3143", + "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": 1451.1546630859375, + "y": 1591.820972442627, + "z": "4d7c5b65.634a04", + "wires": [ + [] + ] + }, + { + "id": "8dd65b69.c1c0e8", + "type": "for", + "name": "For anchorsList", + "xml": "<for index='anc' start='0' end='`$tmp.anchors.length`'>", + "comments": "", + "outputs": 1, + "x": 1452.6019287109375, + "y": 1663.527681350708, + "z": "4d7c5b65.634a04", + "wires": [ + [ + "63f61435.ddcfcc" + ] + ] + }, + { + "id": "24ce1a1c.0c4dc6", + "type": "for", + "name": "For anchorsList", + "xml": "<for index='anc' start='0' end='`$tmp.anchors.length`'>", + "comments": "", + "outputs": 1, + "x": 1449.6177215576172, + "y": 1714.8457164764404, + "z": "4d7c5b65.634a04", + "wires": [ + [ + "1e1f2ec4.b57821" + ] + ] + }, + { + "id": "655604d5.d3202c", + "type": "failure", + "name": "failure", + "xml": "<outcome value='failure'>\n", + "comments": "", + "outputs": 1, + "x": 1704.1110534667969, + "y": 1465.555507659912, + "z": "4d7c5b65.634a04", + "wires": [ + [ + "8d6349e1.873878" + ] + ] + }, + { + "id": "1c00cebc.15e071", + "type": "success", + "name": "success", + "xml": "<outcome value='success'>\n", + "comments": "", + "outputs": 1, + "x": 1700.111213684082, + "y": 1549.7498455047607, + "z": "4d7c5b65.634a04", + "wires": [ + [ + "2bd9b284.5d46ee" + ] + ] + }, + { + "id": "63f61435.ddcfcc", + "type": "block", + "name": "block : atomic", + "xml": "<block atomic='true'>", + "atomic": "true", + "comments": "", + "outputs": 1, + "x": 1672.9907722473145, + "y": 1664.0555124282837, + "z": "4d7c5b65.634a04", + "wires": [ + [ + "71d4252d.e9918c", + "c4c1fd8.f3a05" + ] + ] + }, + { + "id": "1e1f2ec4.b57821", + "type": "block", + "name": "block : atomic", + "xml": "<block atomic='true'>", + "atomic": "true", + "comments": "", + "outputs": 1, + "x": 1671.3053894042969, + "y": 1714.0000133514404, + "z": "4d7c5b65.634a04", + "wires": [ + [ + "13278ede.6bee51", + "78acf035.46288" + ] + ] + }, + { + "id": "8d6349e1.873878", + "type": "block", + "name": "block", + "xml": "<block>", + "atomic": "false", + "comments": "", + "outputs": 1, + "x": 1854.8055572509766, + "y": 1465.1666717529297, + "z": "4d7c5b65.634a04", + "wires": [ + [ + "86eeee2b.9e923", + "ecf3f9cf.0fc3c8" + ] + ] + }, + { + "id": "86eeee2b.9e923", + "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", + "wires": [] + }, + { + "id": "ecf3f9cf.0fc3c8", + "type": "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": 2014.3890533447266, + "y": 1505.5276765823364, + "z": "4d7c5b65.634a04", + "wires": [ + [] + ] + }, + { + "id": "2bd9b284.5d46ee", + "type": "block", + "name": "block : atomic", + "xml": "<block atomic='true'>", + "atomic": "true", + "comments": "", + "outputs": 1, + "x": 1857.5553894042969, + "y": 1550.416675567627, + "z": "4d7c5b65.634a04", + "wires": [ + [ + "c866198.4c0c1e8", + "eb35fb98.e94048" + ] + ] + }, + { + "id": "c866198.4c0c1e8", + "type": "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": 2019.3052368164062, + "y": 1550.666675567627, + "z": "4d7c5b65.634a04", + "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' />", + "comments": "", + "outputs": 1, + "x": 2035.8337211608887, + "y": 1588.4166765213013, + "z": "4d7c5b65.634a04", + "wires": [ + [] + ] + }, + { + "id": "c4c1fd8.f3a05", + "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": 1869.6543502807617, + "y": 1620.9596455097198, + "z": "4d7c5b65.634a04", + "wires": [ + [] + ] + }, + { + "id": "71d4252d.e9918c", + "type": "switchNode", + "name": "check schemaSetName", + "xml": "<switch test='`$tmp.schemaset.name`'>\n", + "comments": "", + "outputs": 1, + "x": 1895.1390533447266, + "y": 1664.055513381958, + "z": "4d7c5b65.634a04", + "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", + "comments": "", + "outputs": 1, + "x": 1874.9662017822266, + "y": 1714.179048538208, + "z": "4d7c5b65.634a04", + "wires": [ + [] + ] + }, + { + "id": "78acf035.46288", + "type": "switchNode", + "name": "check schemaSetName", + "xml": "<switch test='`$tmp.schemaset.name`'>\n", + "comments": "", + "outputs": 1, + "x": 1898.9382057189941, + "y": 1759.4290504455566, + "z": "4d7c5b65.634a04", + "wires": [ + [ + "9f12f9e9.9452b8" + ] + ] + }, + { + "id": "9f12f9e9.9452b8", + "type": "outcome", + "name": "if ran-network", + "xml": "<outcome value='ran-network'>\n", + "comments": "", + "outputs": 1, + "x": 2110.7438735961914, + "y": 1759.9012184143066, + "z": "4d7c5b65.634a04", + "wires": [ + [ + "3ed1dd57.474582" + ] + ] + }, + { + "id": "f465f427.c2b608", + "type": "outcome", + "name": "if ran-network", + "xml": "<outcome value='ran-network'>\n", + "comments": "", + "outputs": 1, + "x": 2112.4445571899414, + "y": 1663.5278425216675, + "z": "4d7c5b65.634a04", + "wires": [ + [ + "61f76815.9ea948" + ] + ] + }, + { + "id": "61f76815.9ea948", + "type": "block", + "name": "block : atomic", + "xml": "<block atomic='true'>", + "atomic": "true", + "comments": "", + "outputs": 1, + "x": 2294.746810913086, + "y": 1662.8610124588013, + "z": "4d7c5b65.634a04", + "wires": [ + [ + "2bfe4fd7.4500e", + "fe178d42.6417a" + ] + ] + }, + { + "id": "3ed1dd57.474582", + "type": "block", + "name": "block : atomic", + "xml": "<block atomic='true'>", + "atomic": "true", + "comments": "", + "outputs": 1, + "x": 2298.879623413086, + "y": 1760.1233863830566, + "z": "4d7c5b65.634a04", + "wires": [ + [ + "5b36931e.63404c", + "47429c6f.cdaf04" + ] + ] + }, + { + "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", + "comments": "", + "outputs": 1, + "x": 2506.718334197998, + "y": 1625.3457126617432, + "z": "4d7c5b65.634a04", + "wires": [ + [] + ] + }, + { + "id": "2bfe4fd7.4500e", + "type": "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": 2472.660717010498, + "y": 1662.6666774749756, + "z": "4d7c5b65.634a04", + "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'`\" />", + "comments": "", + "outputs": 1, + "x": 2507.861396789551, + "y": 1718.7778453826904, + "z": "4d7c5b65.634a04", + "wires": [ + [] + ] + }, + { + "id": "47429c6f.cdaf04", + "type": "block", + "name": "block : atomic", + "xml": "<block atomic='true'>", + "atomic": "true", + "comments": "", + "outputs": 1, + "x": 2514.8057403564453, + "y": 1770.500015258789, + "z": "4d7c5b65.634a04", + "wires": [ + [ + "8998c72c.4ff418", + "9d7758a7.bd51f8", + "9d39eb14.0fc3a8", + "c69db98d.df76b8", + "74d6c00.8c08c4", + "eac71052.ffbb4", + "755837fb.492b88", + "ee4970e3.bde7c", + "3f7e1749.9ebda8", + "93440679.5fd8e8" + ] + ] + }, + { + "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`\"/>", + "comments": "", + "outputs": 1, + "x": 2805.750160217285, + "y": 1704.266613960266, + "z": "4d7c5b65.634a04", + "wires": [ + [] + ] + }, + { + "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`\" />", + "comments": "", + "outputs": 1, + "x": 2831.75, + "y": 1740.4664840698242, + "z": "4d7c5b65.634a04", + "wires": [ + [] + ] + }, + { + "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\"/>", + "comments": "", + "outputs": 1, + "x": 2798.75, + "y": 1773.4664859771729, + "z": "4d7c5b65.634a04", + "wires": [ + [ + "41285c67.33d5c4", + "b48fa3de.a329a" + ] + ] + }, + { + "id": "b48fa3de.a329a", + "type": "success", + "name": "success", + "xml": "<outcome value='success'>\n", + "comments": "", + "outputs": 1, + "x": 3047.7493591308594, + "y": 1774.2662906646729, + "z": "4d7c5b65.634a04", + "wires": [ + [ + "2251f3b0.ca9bac" + ] + ] + }, + { + "id": "41285c67.33d5c4", + "type": "failure", + "name": "failure", + "xml": "<outcome value='failure'>\n", + "comments": "", + "outputs": 1, + "x": 3053.5273513793945, + "y": 1696.3774547576904, + "z": "4d7c5b65.634a04", + "wires": [ + [ + "3df4f6bd.dcdc8a" + ] + ] + }, + { + "id": "2251f3b0.ca9bac", + "type": "block", + "name": "block : atomic", + "xml": "<block atomic='true'>", + "atomic": "true", + "comments": "", + "outputs": 1, + "x": 3211.638683319092, + "y": 1775.155288696289, + "z": "4d7c5b65.634a04", + "wires": [ + [ + "62c02278.218b8c" + ] + ] + }, + { + "id": "3df4f6bd.dcdc8a", + "type": "block", + "name": "block", + "xml": "<block>", + "atomic": "false", + "comments": "", + "outputs": 1, + "x": 3181.7493629455566, + "y": 1697.2662897109985, + "z": "4d7c5b65.634a04", + "wires": [ + [ + "f87039cf.b1f5c8", + "a17212ca.4c0c7", + "14cb93e3.154dbc", + "53f6cef7.f7902" + ] + ] + }, + { + "id": "f87039cf.b1f5c8", + "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": 3337.305030822754, + "y": 1656.1552848815918, + "z": "4d7c5b65.634a04", + "wires": [] + }, + { + "id": "a17212ca.4c0c7", + "type": "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", + "comments": "", + "outputs": 1, + "x": 3334.4440269470215, + "y": 1615.3499445915222, + "z": "4d7c5b65.634a04", + "wires": [ + [] + ] + }, + { + "id": "62c02278.218b8c", + "type": "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": 3391.2500190734863, + "y": 1775.5162916183472, + "z": "4d7c5b65.634a04", + "wires": [ + [] + ] + }, + { + "id": "eac71052.ffbb4", + "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": 2835.083656311035, + "y": 1810.6666812896729, + "z": "4d7c5b65.634a04", + "wires": [ + [] + ] + }, + { + "id": "755837fb.492b88", + "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`\"/>", + "comments": "", + "outputs": 1, + "x": 2805.08349609375, + "y": 1846.2666187286377, + "z": "4d7c5b65.634a04", + "wires": [ + [] + ] + }, + { + "id": "ee4970e3.bde7c", + "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": 2831.08349609375, + "y": 1884.4664897918701, + "z": "4d7c5b65.634a04", + "wires": [ + [] + ] + }, + { + "id": "3f7e1749.9ebda8", + "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\"/>", + "comments": "", + "outputs": 1, + "x": 2798.08349609375, + "y": 1921.4664916992188, + "z": "4d7c5b65.634a04", + "wires": [ + [ + "434c383e.3ac1a8", + "628d0768.1183a8" + ] + ] + }, + { + "id": "628d0768.1183a8", + "type": "success", + "name": "success", + "xml": "<outcome value='success'>\n", + "comments": "", + "outputs": 1, + "x": 3059.0828552246094, + "y": 1972.2664184570312, + "z": "4d7c5b65.634a04", + "wires": [ + [ + "6b324c96.7b9424" + ] + ] + }, + { + "id": "434c383e.3ac1a8", + "type": "failure", + "name": "failure", + "xml": "<outcome value='failure'>\n", + "comments": "", + "outputs": 1, + "x": 3054.860849380493, + "y": 1920.3774604797363, + "z": "4d7c5b65.634a04", + "wires": [ + [ + "ed31ef8a.b1ec1" + ] + ] + }, + { + "id": "6b324c96.7b9424", + "type": "block", + "name": "block : atomic", + "xml": "<block atomic='true'>", + "atomic": "true", + "comments": "", + "outputs": 1, + "x": 3234.972183227539, + "y": 1973.1557416915894, + "z": "4d7c5b65.634a04", + "wires": [ + [ + "a870b460.fe9f68" + ] + ] + }, + { + "id": "ed31ef8a.b1ec1", + "type": "block", + "name": "block", + "xml": "<block>", + "atomic": "false", + "comments": "", + "outputs": 1, + "x": 3200.0828590393066, + "y": 1918.2662944793701, + "z": "4d7c5b65.634a04", + "wires": [ + [ + "c8d7789d.e059f8", + "50f408ea.d42668", + "769aebc5.b0fdd4", + "53f6cef7.f7902" + ] + ] + }, + { + "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'/>", + "comments": "", + "x": 3395.6382026672363, + "y": 1875.1552906036377, + "z": "4d7c5b65.634a04", + "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`\"/>", + "comments": "", + "outputs": 1, + "x": 3412.5835151672363, + "y": 1973.5164184570312, + "z": "4d7c5b65.634a04", + "wires": [ + [] + ] + }, + { + "id": "74d6c00.8c08c4", + "type": "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`\"/>", + "comments": "", + "outputs": 1, + "x": 2757.7506523132324, + "y": 1633.6666765213013, + "z": "4d7c5b65.634a04", + "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_instantiateRANSlice.xml b/platform-logic/ran-slice-api/src/main/xml/ran-slice-api_instantiateRANSlice.xml index f133d18f..1af8ce37 100644 --- a/platform-logic/ran-slice-api/src/main/xml/ran-slice-api_instantiateRANSlice.xml +++ b/platform-logic/ran-slice-api/src/main/xml/ran-slice-api_instantiateRANSlice.xml @@ -395,6 +395,22 @@ </call> </block> </outcome> + <outcome value='reconfigure'> + <block atomic="true"> + <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder"> + <parameter name="file" value="/opt/opendaylight/current/data/log/instantiateRANSlice.log" /> + <parameter name="level" value="info" /> + <parameter name="field1" value="Calling instantiateRANSliceReconfigure-cps "/> + </record> + <call module='ran-slice-api' rpc='instantiateRANSliceReconfigure-cps' mode='sync' > + <outcome value='failure'> + <return status='failure'> + <parameter name='ack-final' value='Y' /> + </return> + </outcome> + </call> + </block> + </outcome> </switch> </block> </outcome> @@ -406,4 +422,4 @@ </return> </block> </method> -</service-logic>
\ No newline at end of file +</service-logic> 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 new file mode 100644 index 00000000..98cf08dc --- /dev/null +++ b/platform-logic/ran-slice-api/src/main/xml/ran-slice-api_instantiateRANSliceReconfigure-cps.xml @@ -0,0 +1,1554 @@ +<service-logic + xmlns='http://www.onap.org/sdnc/svclogic' + xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xsi:schemaLocation='http://www.onap.org/sdnc/svclogic ./svclogic.xsd' module='ran-slice-api' version='${project.version}'> + <method rpc='instantiateRANSliceReconfigure-cps' mode='sync'> + <block atomic='true'> + <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder"> + <parameter name="file" value="/opt/opendaylight/current/data/log/instantiateRANSlice.log" /> + <parameter name="level" value="info" /> + <parameter name="field1" value="Reached instantiateRANSliceReconfigure "/> + </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`' /> + <parameter name='target' value='dLThptPerSlice' /> + <outcome value='true'> + <block atomic="true"> + <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder"> + <parameter name="file" value="/opt/opendaylight/current/data/log/closedLoop.log" /> + <parameter name="level" value="info" /> + <parameter name="field1" value="PAYLOAD contains dLThptPerSlice...Closed loop "/> + </record> + <block atomic="true"> + <set> + <parameter name='tmp.payload.numberUpdates' value='`$payloadJson.input.additionalproperties.resourceConfig.data_length`'/> + <parameter name="tmp.sliceProfileId" value="`$payloadJson.input.sliceProfile.sliceProfileId`"/> + <parameter name='tmp.payload.sNSSAI' value='`$payloadJson.input.sliceProfile.sNSSAI`'/> + </set> + <for index='id1' start='0' end="`$tmp.payload.numberUpdates`" > + <set> + <parameter name="tmp.dLThptPerSlice" value="`$payloadJson.input.additionalproperties.resourceConfig.data[$id1].dLThptPerSlice`"/> + <parameter name="tmp.uLThptPerSlice" value="`$payloadJson.input.additionalproperties.resourceConfig.data[$id1].uLThptPerSlice`"/> + <parameter name="tmp.nearRTRICId" value="`$payloadJson.input.additionalproperties.resourceConfig.data[$id1].nearRTRICId`"/> + </set> + <switch test='`$tmp.nearRTRICId == 11 `'> + <outcome value='true'> + <set> + <parameter name='tmp.policytype.url' value='`$prop.a1.policytype.url.nearrtric11`'/> + <parameter name="tmp.policyinstance.url" value="`$prop.a1.policyinstance.url.nearrtric11`"/> + </set> + </outcome> + <outcome value='false'> + <set> + <parameter name='tmp.policytype.url' value='`$prop.a1.policytype.url.nearrtric22`'/> + <parameter name="tmp.policyinstance.url" value="`$prop.a1.policyinstance.url.nearrtric22`"/> + </set> + </outcome> + </switch> + <block atomic='true'> + <execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' > + <parameter name="restapiUrl" value="`$tmp.policytype.url`"/> + <parameter name='format' value='json' /> + <parameter name='httpMethod' value='GET' /> + <parameter name='contentType' value='application/json' /> + <parameter name='responsePrefix' value='get-policytypes-responsse' /> + <outcome value='success'> + <block atomic='true'> + <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'> + <parameter name='outputPath' value='tmp.policytypelength' /> + <parameter name='source' value="`'get-policytypes-responsse._length'`" /> + </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="policy types length "/> + <parameter name="field2" value="`$tmp.policytypelength`"/> + </record> + <switch test='`$tmp.policytypelength > 0`'> + <outcome value='true'> + <block atomic='true'> + <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder"> + <parameter name="file" value="/opt/opendaylight/current/data/log/closedLoop.log" /> + <parameter name="level" value="info" /> + <parameter name="field1" value="policy type already exists "/> + <parameter name="field2" value="SUCCESSFULL"/> + </record> + </block> + </outcome> + <outcome value='false'> + <block atomic='true'> + <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder"> + <parameter name="file" value="/opt/opendaylight/current/data/log/closedLoop.log" /> + <parameter name="level" value="info" /> + <parameter name="field1" value="creating new policy "/> + <parameter name="field2" value="SUCCESSFULL"/> + </record> + <execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' > + <parameter name="templateFileName" value="`$prop.restapi.templateDir + '/A1policytype.json'`" /> + <parameter name="restapiUrl" value="https://10.31.4.11:30226/events/A1-P"/> + <parameter name='format' value='json' /> + <parameter name='httpMethod' value='POST' /> + <parameter name='contentType' value='application/json' /> + <parameter name='responsePrefix' value='dmaap' /> + <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="Create policytype "/> + <parameter name="field2" value="Succesfull"/> + </record> + </block> + </outcome> + </execute> + </block> + </outcome> + </switch> + <execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' > + <parameter name="templateFileName" value="`$prop.restapi.templateDir + '/A1policyinstance.json'`" /> + <parameter name="restapiUrl" value="https://10.31.4.11:30226/events/A1-P"/> + <parameter name='format' value='json' /> + <parameter name='httpMethod' value='POST' /> + <parameter name='contentType' value='application/json' /> + <parameter name='responsePrefix' value='dmaap-res' /> + <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="Create policyinstance "/> + <parameter name="field2" value="Succesfull"/> + </record> + </block> + </outcome> + </execute> + </block> + </outcome> + <outcome value='failure'> + <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="req error "/> + <parameter name="field2" value="Failure"/> + </record> + </block> + </outcome> + </execute> + </block> + <block atomic='true'> + <switch test='`$prop.ransim-mounted`'> + <outcome value='false'> + <block atomic='true'> + <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' > + <parameter name="source" value="`$prop.restapi.addSliceProfile.ToNearRTRIC`"/> + <parameter name="outputPath" value="tmp.restapi.addSliceProfile.ToNearRTRIC.url"/> + <parameter name="target" value="{idNearRTRIC}"/> + <parameter name="replacement" value="`$tmp.nearRTRICId`"/> + </execute> + <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' > + <parameter name="source" value="`$tmp.restapi.addSliceProfile.ToNearRTRIC.url`"/> + <parameter name="outputPath" value="tmp.restapi.addSliceProfile.ToNearRTRIC.url"/> + <parameter name="target" value="{sliceProfileId}"/> + <parameter name="replacement" value="`$tmp.sliceProfileId`"/> + </execute> + </block> + </outcome> + <outcome value='true'> + <block atomic='true'> + <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' > + <parameter name="source" value="`$prop.restapi.addSliceProfile.ToNearRTRIC.ransim-mounted`"/> + <parameter name="outputPath" value="tmp.restapi.addSliceProfile.ToNearRTRIC.url"/> + <parameter name="target" value="{idNearRTRIC}"/> + <parameter name="replacement" value="`$tmp.nearRTRICId`"/> + </execute> + <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' > + <parameter name="source" value="`$tmp.restapi.addSliceProfile.ToNearRTRIC.url`"/> + <parameter name="outputPath" value="tmp.restapi.addSliceProfile.ToNearRTRIC.url"/> + <parameter name="target" value="{sliceProfileId}"/> + <parameter name="replacement" value="`$tmp.sliceProfileId`"/> + </execute> + <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' > + <parameter name="source" value="`$tmp.restapi.addSliceProfile.ToNearRTRIC.url`"/> + <parameter name="outputPath" value="tmp.restapi.addSliceProfile.ToNearRTRIC.url"/> + <parameter name="target" value="{mountName}"/> + <parameter name="replacement" value="`$tmp.nearRTRICId`"/> + </execute> + </block> + </outcome> + </switch> + <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="Patch SliceProfile ToNearRTRIC url for closed loop:"/> + <parameter name="field2" value="`$tmp.restapi.addSliceProfile.ToNearRTRIC.url`"/> + </record> + <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="Setting variables for PATCH SliceProfile ToNearRTRIC - closed loop"/> + <parameter name="field2" value="`$prop.controller.url + $tmp.restapi.addSliceProfile.ToNearRTRIC.url`"/> + <parameter name="field3" value="`$tmp.dLThptPerSlice`"/> + <parameter name="field4" value="`$tmp.uLThptPerSlice`"/> + <parameter name="field5" value="`$tmp.nearRTRICId`"/> + <parameter name="field6" value="`$tmp.sliceProfileId`"/> + </record> + <execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' > + <parameter name="templateFileName" value="`$prop.restapi.templateDir + '/ranSlice-closed-loop-nearRTRIC-patch.json'`" /> + <parameter name="restapiUrl" value="`$prop.controller.url + $tmp.restapi.addSliceProfile.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="nearRTRIC-slice-patch-response"/> + <parameter name='contentType' value='application/yang.patch+json' /> + <parameter name='format' value='json' /> + <parameter name='accept' value='application/yang.patch-status+json' /> + <outcome value='failure'> + <block> + <set> + <parameter name='error-code' value='500'/> + <parameter name='error-message' value='Error Patching slice profile parms for close loop. Exiting close loop operation'/> + </set> + <return status='failure'> + <parameter name='ack-final' value='Y'/> + <parameter name='error-code' value='500'/> + <parameter name='error-message' value='Error Patching slice profile parms for close loop. Exiting close loop operation'/> + </return> + <block atomic='true'> + <set> + <parameter name="tmp.so.callbackURL" value="`$payloadJson.input.callbackURL`"/> + <parameter name="tmp.status" value="`$error-code`"/> + <parameter name="tmp.reason" value="`$error-message`"/> + <parameter name="tmp.requestID" value="`$instantiateRANSlice-input.common-header.request-id`"/> + <parameter name="tmp.action" value="`$instantiateRANSlice-input.action`"/> + </set> + <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder"> + <parameter name="file" value="/opt/opendaylight/current/data/log/so-callback-response.log" /> + <parameter name="level" value="info" /> + <parameter name="field1" value="URL for SO Callback Response"/> + <parameter name='field2' value="`$tmp.so.callbackURL`" /> + <parameter name='field3' value="`$tmp.status`" /> + <parameter name='field4' value="`$tmp.reason`" /> + <parameter name='field5' value="`$tmp.requestID`" /> + <parameter name='field6' value="`$tmp.action`" /> + <parameter name='field7' value="`$tmp.CUCPList`" /> + <parameter name='field8' value="`$tmp.CUUPList`" /> + <parameter name='field9' value="`$tmp.DUList`" /> + </record> + <execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' > + <parameter name="templateFileName" value="`$prop.restapi.templateDir + '/ranSlice-so-response.json'`" /> + <parameter name="restapiUrl" value="`$tmp.so.callbackURL`"/> + <parameter name="httpMethod" value="POST"/> + <parameter name="responsePrefix" value="so-callback-response"/> + <parameter name='contentType' value='application/json' /> + <parameter name='format' value='json' /> + <parameter name='accept' value='*/*' /> + <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> + </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/closedLoop.log" /> + <parameter name="level" value="info" /> + <parameter name="field1" value="Successfully PATCHED NearRTRIC for close loop operation"/> + </record> + <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='printContext' > + <parameter name='filename' value='/opt/opendaylight/current/data/log/ranSlice-closedloop-nearRTRIC-context.log' /> + </execute> + </block> + </outcome> + </execute> + </block> + <block atomic='true'> + <set> + <parameter name='tmp.getAnchors.URL' value="`$prop.restapi.cps.anchors.endpoint`"/> + </set> + <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder"> + <parameter name="file" value="/opt/opendaylight/current/data/log/closedLoop.log" /> + <parameter name="level" value="info" /> + <parameter name="field1" value="URL to fetch the anchors"/> + <parameter name="field2" value="`$tmp.getAnchors.URL`"/> + </record> + <execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' > + <parameter name="restapiUrl" value="`$tmp.getAnchors.URL`"/> + <parameter name="httpMethod" value="GET"/> + <parameter name="restapiUser" value="cpsuser" /> + <parameter name="restapiPassword" value="cpsr0cks!"/> + <parameter name="responsePrefix" value="get-anchors-cps-response"/> + <parameter name='contentType' value='application/json' /> + <parameter name='format' value='json' /> + <parameter name='accept' value='application/json' /> + <parameter name="convertResponse" value="true"/> + <outcome value='failure'> + <block> + <set> + <parameter name='error-code' value='500'/> + <parameter name='error-message' value='Error Getting Info from CPS. Aborting RPC executiopn'/> + </set> + <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder"> + <parameter name="file" value="/opt/opendaylight/current/data/log/closedLoop.log" /> + <parameter name="level" value="info" /> + <parameter name="field1" value="Failed to fetch anchors from CPS"/> + </record> + </block> + </outcome> + <outcome value='success'> + <block atomic='true'> + <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder"> + <parameter name="file" value="/opt/opendaylight/current/data/log/closedLoop.log" /> + <parameter name="level" value="info" /> + <parameter name="field1" value="Successfully Obtained anchors from CPS"/> + <parameter name="field2" value="`$get-anchors-cps-response._length`"/> + </record> + <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='printContext' > + <parameter name='filename' value='/opt/opendaylight/current/data/log/ranSlice-closedLoop-context.log' /> + </execute> + </block> + </outcome> + </execute> + <set> + <parameter name='tmp.anchors.length' value="`$get-anchors-cps-response._length`"/> + </set> + <set> + <parameter name='tmp.RIC.length' value="0"/> + </set> + <for index='anc' start='0' end='`$tmp.anchors.length`'> + <block atomic='true'> + <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'> + <parameter name='outputPath' value='tmp.schemaset.name' /> + <parameter name='source' value="`'get-anchors-cps-response.['+$anc+'].schemaSetName'`" /> + </execute> + <switch test='`$tmp.schemaset.name`'> + <outcome value='ran-inventory'> + <block atomic='true'> + <set> + <parameter name='tmp.RIC.length' value="`$tmp.RIC.length+1`"/> + </set> + <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder"> + <parameter name="file" value="/opt/opendaylight/current/data/log/closedLoop.log" /> + <parameter name="level" value="info" /> + <parameter name="field1" value="Applicable RIC length"/> + <parameter name="field2" value="`$tmp.RIC.length`"/> + </record> + </block> + </outcome> + </switch> + </block> + </for> + <for index='anc' start='0' end='`$tmp.anchors.length`'> + <block atomic='true'> + <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'> + <parameter name='outputPath' value='tmp.schemaset.name' /> + <parameter name='source' value="`'get-anchors-cps-response.['+$anc+'].schemaSetName'`" /> + </execute> + <switch test='`$tmp.schemaset.name`'> + <outcome value='ran-inventory'> + <block atomic='true'> + <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'> + <parameter name='outputPath' value='tmp.anchor.name' /> + <parameter name='source' value="`'get-anchors-cps-response.['+$anc+'].name'`" /> + </execute> + <block atomic='true'> + <set> + <parameter name='tmp.sliceprofileid' value="`$payloadJson.input.sliceProfile.sliceProfileId`" /> + </set> + <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder"> + <parameter name="file" value="/opt/opendaylight/current/data/log/closedLoop.log" /> + <parameter name="level" value="info" /> + <parameter name="field1" value="sliceprofileid from input"/> + <parameter name="field2" value="`$tmp.sliceprofileid`"/> + </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.getPLMNID.url"/> + <parameter name="target" value="{schemaSet}"/> + <parameter name="replacement" value="`$tmp.schemaset.name`"/> + </execute> + <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' > + <parameter name="source" value="`$tmp.cps.getPLMNID.url`"/> + <parameter name="outputPath" value="tmp.cps.getPLMNID.url"/> + <parameter name="target" value="{templateId}"/> + <parameter name="replacement" value="`$prop.tbdmt.template.get-plmnid-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="URL for CPS TDBMT to Get plmnid from sliceprofile"/> + <parameter name='field2' value="`$tmp.cps.getPLMNID.url`" /> + </record> + <execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' > + <parameter name="restapiUrl" value="`$tmp.cps.getPLMNID.url`"/> + <parameter name="templateFileName" value="`$prop.restapi.templateDir + '/cps-templates/cps-get-plmnid.json'`" /> + <parameter name="httpMethod" value="POST"/> + <parameter name="responsePrefix" value="getplmnmccid-cps-response"/> + <parameter name='contentType' value='application/json' /> + <parameter name='format' value='json' /> + <parameter name='accept' value='application/json' /> + <parameter name="convertResponse" value="true"/> + <outcome value='failure'> + <block> + <set> + <parameter name='error-code' value='500'/> + <parameter name='error-message' value='Error Getting Info from CPS. Aborting RPC executiopn'/> + </set> + <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`"/> + </record> + <return status='failure'> + <parameter name='ack-final' value='Y'/> + <parameter name='error-code' value='500'/> + <parameter name='error-message' value='Error Getting Info from ConfigDB. Aborting RPC executiopn'/> + </return> + <block atomic='true'> + <set> + <parameter name="tmp.so.callbackURL" value="`$payloadJson.input.callbackURL`"/> + <parameter name="tmp.status" value="`$error-code`"/> + <parameter name="tmp.reason" value="`$error-message`"/> + <parameter name="tmp.requestID" value="`$instantiateRANSlice-input.common-header.request-id`"/> + <parameter name="tmp.action" value="`$instantiateRANSlice-input.action`"/> + </set> + <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder"> + <parameter name="file" value="/opt/opendaylight/current/data/log/so-callback-response.log" /> + <parameter name="level" value="info" /> + <parameter name="field1" value="URL for SO Callback Response"/> + <parameter name='field2' value="`$tmp.so.callbackURL`" /> + <parameter name='field3' value="`$tmp.status`" /> + <parameter name='field4' value="`$tmp.reason`" /> + <parameter name='field5' value="`$tmp.requestID`" /> + <parameter name='field6' value="`$tmp.action`" /> + <parameter name='field7' value="`$tmp.CUCPList`" /> + <parameter name='field8' value="`$tmp.CUUPList`" /> + <parameter name='field9' value="`$tmp.DUList`" /> + </record> + <execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' > + <parameter name="templateFileName" value="`$prop.restapi.templateDir + '/ranSlice-so-response.json'`" /> + <parameter name="restapiUrl" value="`$tmp.so.callbackURL`"/> + <parameter name="httpMethod" value="POST"/> + <parameter name="responsePrefix" value="so-callback-response"/> + <parameter name='contentType' value='application/json' /> + <parameter name='format' value='json' /> + <parameter name='accept' value='*/*' /> + <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> + </block> + </outcome> + <outcome value='success'> + <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]'`" /> + </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]'`" /> + </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`"/> + </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`'/> + <parameter name='tmp.mnc' value='`$tmp.plmn.mnc`'/> + </set> + <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder"> + <parameter name="file" value="/opt/opendaylight/current/data/log/closedLoop.log" /> + <parameter name="level" value="info" /> + <parameter name="field1" value="mcc,mnc values..."/> + <parameter name="field2" value="`$tmp.mcc`"/> + <parameter name="field3" value="`$tmp.mnc`"/> + </record> + </block> + </block> + </outcome> + </switch> + </block> + </for> + </block> + <block atomic="true"> + <switch test='`$prop.ransim-mounted`'> + <outcome value='false'> + <block atomic='true'> + <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' > + <parameter name="source" value="`$prop.restapi.addnSSAIEntry.ToNearRTRIC`"/> + <parameter name="outputPath" value="tmp.restapi.addnSSAIEntry.ToNearRTRIC.url"/> + <parameter name="target" value="{idNearRTRIC}"/> + <parameter name="replacement" value="`$tmp.nearRTRICId`"/> + </execute> + </block> + </outcome> + <outcome value='true'> + <block atomic='true'> + <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' > + <parameter name="source" value="`$prop.restapi.addnSSAIEntry.ToNearRTRIC.ransim-mounted`"/> + <parameter name="outputPath" value="tmp.restapi.addnSSAIEntry.ToNearRTRIC.url"/> + <parameter name="target" value="{idNearRTRIC}"/> + <parameter name="replacement" value="`$tmp.nearRTRICId`"/> + </execute> + <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' > + <parameter name="source" value="`$tmp.restapi.addnSSAIEntry.ToNearRTRIC.url`"/> + <parameter name="outputPath" value="tmp.restapi.addnSSAIEntry.ToNearRTRIC.url"/> + <parameter name="target" value="{mountName}"/> + <parameter name="replacement" value="`$tmp.nearRTRICId`"/> + </execute> + </block> + </outcome> + </switch> + <set> + <parameter name='tmp.getAnchors.URL' value="`$prop.restapi.cps.anchors.endpoint`"/> + </set> + <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder"> + <parameter name="file" value="/opt/opendaylight/current/data/log/closedLoop.log" /> + <parameter name="level" value="info" /> + <parameter name="field1" value="URL to fetch the anchors"/> + <parameter name="field2" value="`$tmp.getAnchors.URL`"/> + </record> + <execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' > + <parameter name="restapiUrl" value="`$tmp.getAnchors.URL`"/> + <parameter name="httpMethod" value="GET"/> + <parameter name="restapiUser" value="cpsuser" /> + <parameter name="restapiPassword" value="cpsr0cks!"/> + <parameter name="responsePrefix" value="get-anchors-cps-response"/> + <parameter name='contentType' value='application/json' /> + <parameter name='format' value='json' /> + <parameter name='accept' value='application/json' /> + <parameter name="convertResponse" value="true"/> + <outcome value='failure'> + <block> + <set> + <parameter name='error-code' value='500'/> + <parameter name='error-message' value='Error Getting Info from CPS. Aborting RPC executiopn'/> + </set> + <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder"> + <parameter name="file" value="/opt/opendaylight/current/data/log/closedLoop.log" /> + <parameter name="level" value="info" /> + <parameter name="field1" value="Failed to fetch anchors from CPS"/> + </record> + </block> + </outcome> + <outcome value='success'> + <block atomic='true'> + <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder"> + <parameter name="file" value="/opt/opendaylight/current/data/log/closedLoop.log" /> + <parameter name="level" value="info" /> + <parameter name="field1" value="Successfully Obtained anchors from CPS"/> + <parameter name="field2" value="`$get-anchors-cps-response._length`"/> + </record> + <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='printContext' > + <parameter name='filename' value='/opt/opendaylight/current/data/log/ranSlice-closedLoop-context.log' /> + </execute> + </block> + </outcome> + </execute> + <set> + <parameter name='tmp.anchors.length' value="`$get-anchors-cps-response._length`"/> + </set> + <for index='anc' start='0' end='`$tmp.anchors.length`'> + <block atomic='true'> + <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'> + <parameter name='outputPath' value='tmp.schemaset.name' /> + <parameter name='source' value="`'get-anchors-cps-response.['+$anc+'].schemaSetName'`" /> + </execute> + <switch test='`$tmp.schemaset.name`'> + <outcome value='ran-network'> + <block atomic='true'> + <set> + <parameter name='tmp.RIC.length' value="`$tmp.RIC.length+1`"/> + </set> + <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder"> + <parameter name="file" value="/opt/opendaylight/current/data/log/closedLoop.log" /> + <parameter name="level" value="info" /> + <parameter name="field1" value="Applicable RIC length"/> + <parameter name="field2" value="`$tmp.RIC.length`"/> + </record> + </block> + </outcome> + </switch> + </block> + </for> + <for index='anc' start='0' end='`$tmp.anchors.length`'> + <block atomic='true'> + <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'> + <parameter name='outputPath' value='tmp.schemaset.name' /> + <parameter name='source' value="`'get-anchors-cps-response.['+$anc+'].schemaSetName'`" /> + </execute> + <switch test='`$tmp.schemaset.name`'> + <outcome value='ran-network'> + <block atomic='true'> + <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'> + <parameter name='outputPath' value='tmp.anchor.name' /> + <parameter name='source' value="`'get-anchors-cps-response.['+$anc+'].name'`" /> + </execute> + <block atomic='true'> + <set> + <parameter name='tmp.mcc' value='`$tmp.mcc`' /> + <parameter name='tmp.mnc' value='`$tmp.mnc`' /> + </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.dLThptPerSlice`"/> + <parameter name="field7" value="`$tmp.uLThptPerSlice`"/> + </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="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="target" value="{templateId}"/> + <parameter name="replacement" value="`$prop.tbdmt.template.patch-dLThptPerSlice`"/> + </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`" /> + </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="httpMethod" value="POST"/> + <parameter name="responsePrefix" value="patchdLThptPerSlice-cps-response"/> + <parameter name='contentType' value='application/json' /> + <parameter name='format' value='json' /> + <parameter name='accept' value='application/json' /> + <parameter name="convertResponse" value="true"/> + <outcome value='failure'> + <block> + <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`"/> + </record> + <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> + <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 dLThptPerSlice"/> + <parameter name="field2" value="`$patchdLThptPerSlice-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.patchuLThptPerSlice.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.patchuLThptPerSlice.url`"/> + <parameter name="outputPath" value="tmp.cps.patchuLThptPerSlice.url"/> + <parameter name="target" value="{templateId}"/> + <parameter name="replacement" value="`$prop.tbdmt.template.patch-uLThptPerSlice`"/> + </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 uLThptPerSlice"/> + <parameter name='field2' value="`$tmp.cps.patchuLThptPerSlice.url`" /> + </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="httpMethod" value="POST"/> + <parameter name="responsePrefix" value="patchuLThptPerSlice-cps-response"/> + <parameter name='contentType' value='application/json' /> + <parameter name='format' value='json' /> + <parameter name='accept' value='application/json' /> + <parameter name="convertResponse" value="true"/> + <outcome value='failure'> + <block> + <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`"/> + </record> + <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> + <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 dLThptPerSlice"/> + <parameter name="field2" value="`$patchdLThptPerSlice-cps-response.httpResponse`"/> + </record> + </block> + </outcome> + </execute> + </block> + </block> + </outcome> + </switch> + </block> + </for> + </block> + </for> + </block> + </block> + </outcome> + <outcome value='false'> + <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='contains' emitsOutcome='true' > + <parameter name='source' value='`$instantiate-r-a-n-slice-input.payload`' /> + <parameter name='target' value='maxNumberofConns' /> + <outcome value='true'> + <block atomic="true"> + <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder"> + <parameter name="file" value="/opt/opendaylight/current/data/log/intelligentSlicing.log" /> + <parameter name="level" value="info" /> + <parameter name="field1" value="PAYLOAD contains maxNumberofConns...Inntelligent Slicing "/> + </record> + <set> + <parameter name='tmp.payload.dataPoints' value='`$payloadJson.input.additionalproperties.resourceConfig.data_length`'/> + <parameter name="tmp.payload.sNSSAI" value="`$payloadJson.input.additionalproperties.resourceConfig.snssai`"/> + <parameter name="tmp.sliceProfileId" value="`$payloadJson.input.sliceProfile.sliceProfileId`"/> + </set> + <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder"> + <parameter name="file" value="/opt/opendaylight/current/data/log/intelligentSlicing.log" /> + <parameter name="level" value="info" /> + <parameter name="field1" value="Data length "/> + <parameter name="field2" value="`$tmp.payload.dataPoints`"/> + </record> + <block atomic="true"> + <block atomic='true'> + <set> + <parameter name='tmp.getAnchors.URL' value="`$prop.restapi.cps.anchors.endpoint`"/> + </set> + <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder"> + <parameter name="file" value="/opt/opendaylight/current/data/log/closedLoop.log" /> + <parameter name="level" value="info" /> + <parameter name="field1" value="URL to fetch the anchors"/> + <parameter name="field2" value="`$tmp.getAnchors.URL`"/> + </record> + <execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' > + <parameter name="restapiUrl" value="`$tmp.getAnchors.URL`"/> + <parameter name="httpMethod" value="GET"/> + <parameter name="restapiUser" value="cpsuser" /> + <parameter name="restapiPassword" value="cpsr0cks!"/> + <parameter name="responsePrefix" value="get-anchors-cps-response"/> + <parameter name='contentType' value='application/json' /> + <parameter name='format' value='json' /> + <parameter name='accept' value='application/json' /> + <parameter name="convertResponse" value="true"/> + <outcome value='failure'> + <block> + <set> + <parameter name='error-code' value='500'/> + <parameter name='error-message' value='Error Getting Info from CPS. Aborting RPC executiopn'/> + </set> + <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder"> + <parameter name="file" value="/opt/opendaylight/current/data/log/closedLoop.log" /> + <parameter name="level" value="info" /> + <parameter name="field1" value="Failed to fetch anchors from CPS"/> + </record> + </block> + </outcome> + <outcome value='success'> + <block atomic='true'> + <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder"> + <parameter name="file" value="/opt/opendaylight/current/data/log/closedLoop.log" /> + <parameter name="level" value="info" /> + <parameter name="field1" value="Successfully Obtained anchors from CPS"/> + <parameter name="field2" value="`$get-anchors-cps-response._length`"/> + </record> + <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='printContext' > + <parameter name='filename' value='/opt/opendaylight/current/data/log/ranSlice-closedLoop-context.log' /> + </execute> + </block> + </outcome> + </execute> + <set> + <parameter name='tmp.anchors.length' value="`$get-anchors-cps-response._length`"/> + </set> + <set> + <parameter name='tmp.RIC.length' value="0"/> + </set> + <for index='anc' start='0' end='`$tmp.anchors.length`'> + <block atomic='true'> + <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'> + <parameter name='outputPath' value='tmp.schemaset.name' /> + <parameter name='source' value="`'get-anchors-cps-response.['+$anc+'].schemaSetName'`" /> + </execute> + <switch test='`$tmp.schemaset.name`'> + <outcome value='ran-inventory'> + <block atomic='true'> + <set> + <parameter name='tmp.RIC.length' value="`$tmp.RIC.length+1`"/> + </set> + <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder"> + <parameter name="file" value="/opt/opendaylight/current/data/log/closedLoop.log" /> + <parameter name="level" value="info" /> + <parameter name="field1" value="Applicable RIC length"/> + <parameter name="field2" value="`$tmp.RIC.length`"/> + </record> + </block> + </outcome> + </switch> + </block> + </for> + <for index='anc' start='0' end='`$tmp.anchors.length`'> + <block atomic='true'> + <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'> + <parameter name='outputPath' value='tmp.schemaset.name' /> + <parameter name='source' value="`'get-anchors-cps-response.['+$anc+'].schemaSetName'`" /> + </execute> + <switch test='`$tmp.schemaset.name`'> + <outcome value='ran-inventory'> + <block atomic='true'> + <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'> + <parameter name='outputPath' value='tmp.anchor.name' /> + <parameter name='source' value="`'get-anchors-cps-response.['+$anc+'].name'`" /> + </execute> + <block atomic='true'> + <set> + <parameter name='tmp.sliceprofileid' value="`$payloadJson.input.sliceProfile.sliceProfileId`" /> + </set> + <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder"> + <parameter name="file" value="/opt/opendaylight/current/data/log/closedLoop.log" /> + <parameter name="level" value="info" /> + <parameter name="field1" value="sliceprofileid from input"/> + <parameter name="field2" value="`$tmp.sliceprofileid`"/> + </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.getPLMNID.url"/> + <parameter name="target" value="{schemaSet}"/> + <parameter name="replacement" value="`$tmp.schemaset.name`"/> + </execute> + <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' > + <parameter name="source" value="`$tmp.cps.getPLMNID.url`"/> + <parameter name="outputPath" value="tmp.cps.getPLMNID.url"/> + <parameter name="target" value="{templateId}"/> + <parameter name="replacement" value="`$prop.tbdmt.template.get-plmnid-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="URL for CPS TDBMT to Get plmnid from sliceprofile"/> + <parameter name='field2' value="`$tmp.cps.getPLMNID.url`" /> + </record> + <execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' > + <parameter name="restapiUrl" value="`$tmp.cps.getPLMNID.url`"/> + <parameter name="templateFileName" value="`$prop.restapi.templateDir + '/cps-templates/cps-get-plmnid.json'`" /> + <parameter name="httpMethod" value="POST"/> + <parameter name="responsePrefix" value="getplmnmccid-cps-response"/> + <parameter name='contentType' value='application/json' /> + <parameter name='format' value='json' /> + <parameter name='accept' value='application/json' /> + <parameter name="convertResponse" value="true"/> + <outcome value='failure'> + <block> + <set> + <parameter name='error-code' value='500'/> + <parameter name='error-message' value='Error Getting Info from CPS. Aborting RPC executiopn'/> + </set> + <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`"/> + </record> + <return status='failure'> + <parameter name='ack-final' value='Y'/> + <parameter name='error-code' value='500'/> + <parameter name='error-message' value='Error Getting Info from ConfigDB. Aborting RPC executiopn'/> + </return> + <block atomic='true'> + <set> + <parameter name="tmp.so.callbackURL" value="`$payloadJson.input.callbackURL`"/> + <parameter name="tmp.status" value="`$error-code`"/> + <parameter name="tmp.reason" value="`$error-message`"/> + <parameter name="tmp.requestID" value="`$instantiateRANSlice-input.common-header.request-id`"/> + <parameter name="tmp.action" value="`$instantiateRANSlice-input.action`"/> + </set> + <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder"> + <parameter name="file" value="/opt/opendaylight/current/data/log/so-callback-response.log" /> + <parameter name="level" value="info" /> + <parameter name="field1" value="URL for SO Callback Response"/> + <parameter name='field2' value="`$tmp.so.callbackURL`" /> + <parameter name='field3' value="`$tmp.status`" /> + <parameter name='field4' value="`$tmp.reason`" /> + <parameter name='field5' value="`$tmp.requestID`" /> + <parameter name='field6' value="`$tmp.action`" /> + <parameter name='field7' value="`$tmp.CUCPList`" /> + <parameter name='field8' value="`$tmp.CUUPList`" /> + <parameter name='field9' value="`$tmp.DUList`" /> + </record> + <execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' > + <parameter name="templateFileName" value="`$prop.restapi.templateDir + '/ranSlice-so-response.json'`" /> + <parameter name="restapiUrl" value="`$tmp.so.callbackURL`"/> + <parameter name="httpMethod" value="POST"/> + <parameter name="responsePrefix" value="so-callback-response"/> + <parameter name='contentType' value='application/json' /> + <parameter name='format' value='json' /> + <parameter name='accept' value='*/*' /> + <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> + </block> + </outcome> + <outcome value='success'> + <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]'`" /> + </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]'`" /> + </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`"/> + </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`'/> + <parameter name='tmp.mnc' value='`$tmp.plmn.mnc`'/> + </set> + <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder"> + <parameter name="file" value="/opt/opendaylight/current/data/log/closedLoop.log" /> + <parameter name="level" value="info" /> + <parameter name="field1" value="mcc,mnc values..."/> + <parameter name="field2" value="`$tmp.mcc`"/> + <parameter name="field3" value="`$tmp.mnc`"/> + </record> + </block> + </block> + </outcome> + </switch> + </block> + </for> + </block> + <for index='id-is' start='0' end="`$tmp.payload.dataPoints`" > + <block atomic="true"> + <set> + <parameter name="tmp.nearRTRICId" value="`$payloadJson.input.additionalproperties.resourceConfig.data[$id-is].nearRTRICId`"/> + </set> + <switch test='`$prop.ransim-mounted`'> + <outcome value='false'> + <block atomic='true'> + <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' > + <parameter name="source" value="`$prop.restapi.addnSSAIEntry.ToNearRTRIC`"/> + <parameter name="outputPath" value="tmp.restapi.addnSSAIEntry.ToNearRTRIC.url"/> + <parameter name="target" value="{idNearRTRIC}"/> + <parameter name="replacement" value="`$tmp.nearRTRICId`"/> + </execute> + </block> + </outcome> + <outcome value='true'> + <block atomic='true'> + <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' > + <parameter name="source" value="`$prop.restapi.addnSSAIEntry.ToNearRTRIC.ransim-mounted`"/> + <parameter name="outputPath" value="tmp.restapi.addnSSAIEntry.ToNearRTRIC.url"/> + <parameter name="target" value="{idNearRTRIC}"/> + <parameter name="replacement" value="`$tmp.nearRTRICId`"/> + </execute> + <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' > + <parameter name="source" value="`$tmp.restapi.addnSSAIEntry.ToNearRTRIC.url`"/> + <parameter name="outputPath" value="tmp.restapi.addnSSAIEntry.ToNearRTRIC.url"/> + <parameter name="target" value="{mountName}"/> + <parameter name="replacement" value="`$tmp.nearRTRICId`"/> + </execute> + </block> + </outcome> + </switch> + <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' > + <parameter name="source" value="`$tmp.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> + <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'> + <parameter name='outputPath' value='tmp.CUCellListEntries' /> + <parameter name='source' value="`'payloadJson.input.additionalproperties.resourceConfig.data['+$id-is+'].cellCUList_length'`" /> + </execute> + <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder"> + <parameter name="file" value="/opt/opendaylight/current/data/log/intelligentSlicing.log" /> + <parameter name="level" value="info" /> + <parameter name="field1" value="CUCEll List length "/> + <parameter name="field2" value="`$tmp.CUCellListEntries`"/> + </record> + <for index='id2' start='0' end="`$tmp.CUCellListEntries`" > + <block atomic="true"> + <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'> + <parameter name='outputPath' value='tmp.cellLocalId' /> + <parameter name='source' value="`'payloadJson.input.additionalproperties.resourceConfig.data['+$id-is+'].cellCUList['+$id2+'].cellLocalId'`" /> + </execute> + <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='concat'> + <parameter name="source" value="`$tmp.cellLocalId`" /> + <parameter name="target" value="-maxNumberofConns"/> + <parameter name="outputPath" value="tmp.cellLocalId" /> + </execute> + <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'> + <parameter name='outputPath' value='tmp.predictedMaxNumberofConns' /> + <parameter name='source' value="`'payloadJson.input.additionalproperties.resourceConfig.data['+$id-is+'].cellCUList['+$id2+'].configData.predictedMaxNumberofConns'`" /> + </execute> + <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder"> + <parameter name="file" value="/opt/opendaylight/current/data/log/intelligentSlicing.log" /> + <parameter name="level" value="info" /> + <parameter name="field1" value="cellLocalId"/> + <parameter name="field2" value="`$tmp.cellLocalId`"/> + </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> + <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 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> + </block> + </for> + </block> + </for> + </block> + </block> + </outcome> + </execute> + </outcome> + </execute> + <block atomic='true'> + <set> + <parameter name="tmp.status" value="`$error-code`"/> + <parameter name="tmp.reason" value="`$error-message`"/> + <parameter name="tmp.requestID" value="`$instantiate-r-a-n-slice-input.common-header.request-id `"/> + <parameter name="tmp.action" value="`$instantiate-r-a-n-slice-input.action`"/> + </set> + <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' > + <parameter name="source" value="`$prop.restapi.so.callbackURL`"/> + <parameter name="outputPath" value="tmp.so.callbackURL"/> + <parameter name="target" value="{requestId}"/> + <parameter name="replacement" value="`$tmp.requestID`"/> + </execute> + <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder"> + <parameter name="file" value="/opt/opendaylight/current/data/log/so-callback-response.log" /> + <parameter name="level" value="info" /> + <parameter name="field1" value="URL for SO Callback Response"/> + <parameter name='field2' value="`$payloadJson.input.callbackURL`" /> + <parameter name='field3' value="`$tmp.status`" /> + <parameter name='field4' value="`$tmp.reason`" /> + <parameter name='field5' value="`$tmp.requestID`" /> + <parameter name='field6' value="`$tmp.action`" /> + <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="`$payloadJson.input.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='*/*' /> + <parameter name="restapiUser" value="`$prop.restapi.so.user`" /> + <parameter name="restapiPassword" value="`$prop.restapi.so.password`"/> + <outcome value='failure'> + <block> + <set> + <parameter name='error-code' value='500'/> + <parameter name='error-message' value='Error sending SO response. Aborting RPC executiopn'/> + </set> + <return status='failure'> + <parameter name='ack-final' value='Y'/> + <parameter name="error-code" value="500" /> + <parameter name="error-message" value="Error sending SO Response" /> + </return> + </block> + </outcome> + <outcome value='success'> + <block> + <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder"> + <parameter name="file" value="/opt/opendaylight/current/data/log/so-callback-response.log" /> + <parameter name="level" value="info" /> + <parameter name="field1" value="SO Response Sent "/> + </record> + </block> + </outcome> + </execute> + </block> + <return status='success'> + <parameter name="ack-final" value="N" /> + <parameter name="error-code" value="200" /> + <parameter name="error-message" value="SUCCESSFUL Execution" /> + </return> + </block> + </method> +</service-logic> 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-dLThptPerSlice.json new file mode 100644 index 00000000..07bc0fac --- /dev/null +++ b/platform-logic/restapi-templates/src/main/json/cps-templates/cps-patch-dLThptPerSlice.json @@ -0,0 +1,16 @@ +{ + "inputParameters":{ + "idNearRTRIC":${tmp.nearRTRICId}, + "mcc":${tmp.mcc}, + "mnc":${tmp.mnc}, + "sNssai":${tmp.payload.sNSSAI} + }, +"payload": { +"configData": [ +{ +"configParameter":"dLThptPerSlice", +"configValue":${tmp.dLThptPerSlice} +} +] +} +} 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 new file mode 100644 index 00000000..ae1ab6cd --- /dev/null +++ b/platform-logic/restapi-templates/src/main/json/cps-templates/cps-patch-uLThptPerSlice.json @@ -0,0 +1,16 @@ +{ + "inputParameters":{ + "idNearRTRIC":${tmp.nearRTRICId}, + "mcc":${tmp.mcc}, + "mnc":${tmp.mnc}, + "sNssai":${tmp.payload.sNSSAI} + }, +"payload": { +"configData": [ +{ +"configParameter":"uLThptPerSlice", +"configValue":${tmp.uLThptPerSlice} +} +] +} +} |