summaryrefslogtreecommitdiffstats
path: root/platform-logic/a1Adapter-api/src/main/json/A1-ADAPTER-API_createPolicyInstance.json
diff options
context:
space:
mode:
authorSandeep Shah <sandeeplinux1068@gmail.com>2019-12-20 15:07:46 -0600
committerSandeep Shah <sandeeplinux1068@gmail.com>2019-12-20 15:07:46 -0600
commit8dd16669775bf23c35c25b6adf2f5adccdda1730 (patch)
treeba01f54c84d6cd529b23e856cc730cab4987a018 /platform-logic/a1Adapter-api/src/main/json/A1-ADAPTER-API_createPolicyInstance.json
parentfc4bb348c8a8b4a5d5f77065b8ebbca16d6ce5b8 (diff)
DG's and Templates for A1 Adapter
Included are 10 DG's, any pertinent templates, and updated properties file Issue-ID: CCSDK-2013 Signed-off-by: SandeepLinux <Sandeep.Shah@ibm.com> Change-Id: Ia2edfb3d1be5043101487289fa15e71d953ddf1c
Diffstat (limited to 'platform-logic/a1Adapter-api/src/main/json/A1-ADAPTER-API_createPolicyInstance.json')
-rw-r--r--platform-logic/a1Adapter-api/src/main/json/A1-ADAPTER-API_createPolicyInstance.json1003
1 files changed, 1003 insertions, 0 deletions
diff --git a/platform-logic/a1Adapter-api/src/main/json/A1-ADAPTER-API_createPolicyInstance.json b/platform-logic/a1Adapter-api/src/main/json/A1-ADAPTER-API_createPolicyInstance.json
new file mode 100644
index 00000000..2c7c272d
--- /dev/null
+++ b/platform-logic/a1Adapter-api/src/main/json/A1-ADAPTER-API_createPolicyInstance.json
@@ -0,0 +1,1003 @@
+[
+ {
+ "id": "9236469b.e33218",
+ "type": "service-logic",
+ "name": "A1-ADAPTER-API ${project.version}",
+ "module": "A1-ADAPTER-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='A1-ADAPTER-API' version='${project.version}'>",
+ "outputs": 1,
+ "x": 173,
+ "y": 99,
+ "z": "778ff71f.21c948",
+ "wires": [
+ [
+ "c9f1cc58.c62c7"
+ ]
+ ]
+ },
+ {
+ "id": "c9f1cc58.c62c7",
+ "type": "method",
+ "name": "method createPolicyInstance",
+ "xml": "<method rpc='createPolicyInstance' mode='sync'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 160,
+ "y": 168,
+ "z": "778ff71f.21c948",
+ "wires": [
+ [
+ "4499058e.f4c35c"
+ ]
+ ]
+ },
+ {
+ "id": "42dffa26.a86494",
+ "type": "record",
+ "name": "record",
+ "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.FileRecorder\">\n<parameter name=\"file\" value=\"/opt/opendaylight/current/data/log/A1-Adapter.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"A1 Adapter Create Policy Instance. RPC Parms:\"/>\n<parameter name=\"field2\" value=\"`$create-policy-instance-input.near-rt-ric-id`\"/>\n<parameter name=\"field3\" value=\"`$create-policy-instance-input.policy-type-id`\"/>\n<parameter name=\"field4\" value=\"`$create-policy-instance-input.policy-instance-id`\"/>\n<parameter name=\"field5\" value=\"A1 Adapter Create Policy Instance. Number of Policy Properties\"/>\n<parameter name=\"field6\" value=\"`$create-policy-instance-input.properties_length`\"/>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 482,
+ "y": 31,
+ "z": "778ff71f.21c948",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "4499058e.f4c35c",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 121,
+ "y": 305,
+ "z": "778ff71f.21c948",
+ "wires": [
+ [
+ "42dffa26.a86494",
+ "4f39d57e.ecab2c",
+ "4e33f9e8.999d18",
+ "73cdcbde.870b64",
+ "db58a7cd.71bd78",
+ "62562bdc.8b71e4",
+ "4e5b3350.571f7c"
+ ]
+ ]
+ },
+ {
+ "id": "1f803634.6e151a",
+ "type": "returnSuccess",
+ "name": "return success",
+ "xml": "<return status='success'>\n<parameter name=\"ack-final-indicator\" value=\"Y\" />\n<parameter name=\"error-code\" value=\"200\" />\n<parameter name=\"error-message\" value=\"`$error-message`\" />\n<parameter name='response-code' value='200' />\n<parameter name='response-message' value='A1 Adapter is healthy'/>\n<parameter name='health-status' value='200'/>\n<parameter name='ack-final' value='Y'/>\n",
+ "comments": "",
+ "x": 231.99999618530273,
+ "y": 1232.0000381469727,
+ "z": "778ff71f.21c948",
+ "wires": []
+ },
+ {
+ "id": "b6def1db.d900e",
+ "type": "dgstart",
+ "name": "DGSTART",
+ "outputs": 1,
+ "x": 101,
+ "y": 37,
+ "z": "778ff71f.21c948",
+ "wires": [
+ [
+ "9236469b.e33218"
+ ]
+ ]
+ },
+ {
+ "id": "4f39d57e.ecab2c",
+ "type": "for",
+ "name": "for 0..properties_length",
+ "xml": "<for index='idx' start='0' end='`$create-policy-instance-input.properties_length`' >",
+ "comments": "",
+ "outputs": 1,
+ "x": 535,
+ "y": 157,
+ "z": "778ff71f.21c948",
+ "wires": [
+ [
+ "49ad936d.7f52ec"
+ ]
+ ]
+ },
+ {
+ "id": "49ad936d.7f52ec",
+ "type": "record",
+ "name": "record",
+ "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.FileRecorder\">\n<parameter name=\"file\" value=\"/opt/opendaylight/current/data/log/A1-Adapter.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"A1 Adapter Create Policy Instance. Properties Name and Value\"/>\n<parameter name=\"field2\" value=\"`$idx`\"/>\n<parameter name=\"field3\" value=\"`$create-policy-instance-input.properties[$idx].property-name`\"/>\n<parameter name=\"field4\" value=\"`$create-policy-instance-input.properties[$idx].property-value`\"/>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 744,
+ "y": 120,
+ "z": "778ff71f.21c948",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "2f3b7d7.b79a582",
+ "type": "execute",
+ "name": "execute TemplateNode",
+ "xml": "<execute plugin=\"org.onap.ccsdk.sli.plugins.template.TemplateNode\" method=\"evaluateTemplate\" >\n <parameter name='templatePath' value='a1-policy-instance-property-payload-template.vtl' />\n <parameter name='output' value='restapi-payload' />\n <parameter name='prefix' value='a1-mediator' />\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1221.0000381469727,
+ "y": 148,
+ "z": "778ff71f.21c948",
+ "wires": [
+ [
+ "c3edaac2.76c898",
+ "a000a8ec.f02a08"
+ ]
+ ]
+ },
+ {
+ "id": "c3edaac2.76c898",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1546.0000381469727,
+ "y": 88,
+ "z": "778ff71f.21c948",
+ "wires": [
+ [
+ "c4887e0b.677ec"
+ ]
+ ]
+ },
+ {
+ "id": "c4887e0b.677ec",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 1737.0000381469727,
+ "y": 86,
+ "z": "778ff71f.21c948",
+ "wires": [
+ [
+ "59d852be.21338c"
+ ]
+ ]
+ },
+ {
+ "id": "59d852be.21338c",
+ "type": "record",
+ "name": "record",
+ "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.FileRecorder\">\n<parameter name=\"file\" value=\"/opt/opendaylight/current/data/log/A1-Adapter.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"__TIMESTAMP__\"/>\n<parameter name=\"field2\" value=\"Redndred A1 Mediator RestAPI payload template as a string\"/>\n<parameter name='field3' value='`$a1-mediator.restapi-payload`' />",
+ "comments": "",
+ "outputs": 1,
+ "x": 1916.0000381469727,
+ "y": 86,
+ "z": "778ff71f.21c948",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "9b6aac0c.da315",
+ "type": "execute",
+ "name": "remove new lines",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replaceAll' >\n <parameter name=\"source\" value=\"`$a1-mediator.restapi-payload`\"/>\n <parameter name=\"outputPath\" value=\"tmp.a1-mediator-restapi.payload\"/>\n <parameter name=\"target\" value=\"\\n\"/>\n <parameter name=\"replacement\" value=\"\"/>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1167.5000534057617,
+ "y": 356.00000619888306,
+ "z": "778ff71f.21c948",
+ "wires": [
+ [
+ "1409ce40.d198e2",
+ "fcccb2fe.5b568"
+ ]
+ ]
+ },
+ {
+ "id": "cfa3b21a.52b7f",
+ "type": "execute",
+ "name": "remove tabs",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replaceAll' >\n <parameter name=\"source\" value=\"`$tmp.a1-mediator-restapi.payload`\"/>\n <parameter name=\"outputPath\" value=\"tmp.a1-mediator-restapi.payload\"/>\n <parameter name=\"target\" value=\"\\t\"/>\n <parameter name=\"replacement\" value=\"\"/>",
+ "comments": "",
+ "outputs": 1,
+ "x": 1087.0000534057617,
+ "y": 540.9999980926514,
+ "z": "778ff71f.21c948",
+ "wires": [
+ [
+ "9936f19c.6654c",
+ "f7c3147.26a20e8"
+ ]
+ ]
+ },
+ {
+ "id": "9936f19c.6654c",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1258.5000534057617,
+ "y": 553.9999980926514,
+ "z": "778ff71f.21c948",
+ "wires": [
+ [
+ "9a0a6599.a41078"
+ ]
+ ]
+ },
+ {
+ "id": "9a0a6599.a41078",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 1435.5000534057617,
+ "y": 558.9999980926514,
+ "z": "778ff71f.21c948",
+ "wires": [
+ [
+ "91f17f26.09e3b"
+ ]
+ ]
+ },
+ {
+ "id": "91f17f26.09e3b",
+ "type": "record",
+ "name": "record",
+ "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.FileRecorder\">\n<parameter name=\"file\" value=\"/opt/opendaylight/current/data/log/A1-Adapter.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"__TIMESTAMP__\"/>\n<parameter name=\"field2\" value=\"Redndred template with tabs removed \\r\"/>\n<parameter name='field3' value='`$tmp.a1-mediator-restapi.payload`' />\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1589.5000076293945,
+ "y": 544.0000076293945,
+ "z": "778ff71f.21c948",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "1409ce40.d198e2",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1324.0001602172852,
+ "y": 272.00000953674316,
+ "z": "778ff71f.21c948",
+ "wires": [
+ [
+ "15aa0921.904b77"
+ ]
+ ]
+ },
+ {
+ "id": "15aa0921.904b77",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 1459.0003128051758,
+ "y": 342.0000419616699,
+ "z": "778ff71f.21c948",
+ "wires": [
+ [
+ "c3e2df84.be4db"
+ ]
+ ]
+ },
+ {
+ "id": "c3e2df84.be4db",
+ "type": "record",
+ "name": "record",
+ "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.FileRecorder\">\n<parameter name=\"file\" value=\"/opt/opendaylight/current/data/log/A1-Adapter.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"__TIMESTAMP__\"/>\n<parameter name=\"field2\" value=\"Redndred template with lines removed \\r\"/>\n<parameter name='field3' value='`$tmp.a1-mediator-restapi.payload`' />",
+ "comments": "",
+ "outputs": 1,
+ "x": 1531.0002517700195,
+ "y": 261.00000381469727,
+ "z": "778ff71f.21c948",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "a000a8ec.f02a08",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1528.0000381469727,
+ "y": 190,
+ "z": "778ff71f.21c948",
+ "wires": [
+ [
+ "1a33b2f4.89b4cd"
+ ]
+ ]
+ },
+ {
+ "id": "1a33b2f4.89b4cd",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 1706.9999160766602,
+ "y": 197,
+ "z": "778ff71f.21c948",
+ "wires": [
+ [
+ "99d35048.265b3",
+ "2fa6b57e.29105a",
+ "5f556c15.ff9d34"
+ ]
+ ]
+ },
+ {
+ "id": "99d35048.265b3",
+ "type": "returnFailure",
+ "name": "return failure",
+ "xml": "<return status='failure'>\n<parameter name='ack-final' value='Y'/>\n<parameter name=\"response-code\" value=\"500\" />\n<parameter name=\"response-message\" value=\"Error creating A1 Mediatory Rest API payload string. Aborting A1 Policy Instance creation\" />",
+ "comments": "",
+ "x": 1705.9996719360352,
+ "y": 292.00000762939453,
+ "z": "778ff71f.21c948",
+ "wires": []
+ },
+ {
+ "id": "fcccb2fe.5b568",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1334.000129699707,
+ "y": 432.0000444948673,
+ "z": "778ff71f.21c948",
+ "wires": [
+ [
+ "bde42de.77475d"
+ ]
+ ]
+ },
+ {
+ "id": "bde42de.77475d",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 1486.9999771118164,
+ "y": 408.00003719329834,
+ "z": "778ff71f.21c948",
+ "wires": [
+ [
+ "a7b92aa1.af88e8",
+ "47758778.282278",
+ "5f556c15.ff9d34"
+ ]
+ ]
+ },
+ {
+ "id": "a7b92aa1.af88e8",
+ "type": "returnFailure",
+ "name": "return failure",
+ "xml": "<return status='failure'>\n<parameter name='ack-final' value='Y'/>\n<parameter name=\"response-code\" value=\"500\" />\n<parameter name=\"response-message\" value=\"Error removing lines from A1 Mediator Rest API payload string. Aborting A1 Policy creation\" />",
+ "comments": "",
+ "x": 1527.9996719360352,
+ "y": 494.00003242492676,
+ "z": "778ff71f.21c948",
+ "wires": []
+ },
+ {
+ "id": "f7c3147.26a20e8",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1263.0000534057617,
+ "y": 622.9999980926514,
+ "z": "778ff71f.21c948",
+ "wires": [
+ [
+ "a84e0601.6e44f8"
+ ]
+ ]
+ },
+ {
+ "id": "a84e0601.6e44f8",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 1438.999885559082,
+ "y": 640.9999923706055,
+ "z": "778ff71f.21c948",
+ "wires": [
+ [
+ "6ec35f94.73b36",
+ "aefc7d8c.affb7",
+ "5f556c15.ff9d34"
+ ]
+ ]
+ },
+ {
+ "id": "6ec35f94.73b36",
+ "type": "returnFailure",
+ "name": "return failure",
+ "xml": "<return status='failure'>\n<parameter name='ack-final' value='Y'/>\n<parameter name=\"response-code\" value=\"500\" />\n<parameter name=\"response-message\" value=\"Error removing tabs from A1 Mediator Rest API payload string. Aborting A1 Policy creation\" />",
+ "comments": "",
+ "x": 1442.999641418457,
+ "y": 742.0000476837158,
+ "z": "778ff71f.21c948",
+ "wires": []
+ },
+ {
+ "id": "d303102b.4952b",
+ "type": "block",
+ "name": "A1 Mediator Payload Generation",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 897.0000152587891,
+ "y": 271.9999952316284,
+ "z": "778ff71f.21c948",
+ "wires": [
+ [
+ "2f3b7d7.b79a582",
+ "9b6aac0c.da315",
+ "cfa3b21a.52b7f"
+ ]
+ ]
+ },
+ {
+ "id": "4e33f9e8.999d18",
+ "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/a1-adapter-api-dg.properties' />\n <parameter name='contextPrefix' value='prop' />\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 526,
+ "y": 110,
+ "z": "778ff71f.21c948",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "73cdcbde.870b64",
+ "type": "record",
+ "name": "record",
+ "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.FileRecorder\">\n<parameter name=\"file\" value=\"/opt/opendaylight/current/data/log/A1-Adapter.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"Properties read .. A1 Mediator Target\"/>\n<parameter name=\"field2\" value=\"`$prop.oofpcipoc.patch.pci.target`\"/>\n<parameter name=\"field3\" value=\"`$prop.controller.user`\"/>\n<parameter name=\"field4\" value=\"`$prop.controller.pwd`\"/>\n<parameter name=\"field5\" value=\"`$prop.controller.url`\"/>\n<parameter name=\"field6\" value=\"A1 Mediator deployed (true/false): \"/>\n<parameter name=\"field7\" value=\"`$prop.ric-plt-A1Mediator-deployed`\"/>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 491,
+ "y": 203,
+ "z": "778ff71f.21c948",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "db58a7cd.71bd78",
+ "type": "switchNode",
+ "name": "A1 Mediator Deployed",
+ "xml": "<switch test='`$prop.ric-plt-A1Mediator-deployed`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 359,
+ "y": 317,
+ "z": "778ff71f.21c948",
+ "wires": [
+ [
+ "bab09024.90a",
+ "2146fa82.3cb466"
+ ]
+ ]
+ },
+ {
+ "id": "bab09024.90a",
+ "type": "outcome",
+ "name": "Not Deployed",
+ "xml": "<outcome value='false'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 286.99999809265137,
+ "y": 896.0001878738403,
+ "z": "778ff71f.21c948",
+ "wires": [
+ [
+ "2177b708.4ad0a8"
+ ]
+ ]
+ },
+ {
+ "id": "2146fa82.3cb466",
+ "type": "outcome",
+ "name": "Deployed",
+ "xml": "<outcome value='true'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 542,
+ "y": 253.00006103515625,
+ "z": "778ff71f.21c948",
+ "wires": [
+ [
+ "627cb5ca.b4b61c"
+ ]
+ ]
+ },
+ {
+ "id": "627cb5ca.b4b61c",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 607,
+ "y": 327,
+ "z": "778ff71f.21c948",
+ "wires": [
+ [
+ "d303102b.4952b",
+ "7ef43213.fd1b9c"
+ ]
+ ]
+ },
+ {
+ "id": "a4ba83eb.986d9",
+ "type": "returnFailure",
+ "name": "return failure",
+ "xml": "<return status='failure'>\n<parameter name='ack-final' value='Y'/>\n<parameter name=\"response-code\" value=\"500\" />\n<parameter name=\"response-message\" value=\"A1 Mediator Not Deployed. Aborting A1 Policy creation\" />",
+ "comments": "",
+ "x": 491.9997615814209,
+ "y": 1043.0000467300415,
+ "z": "778ff71f.21c948",
+ "wires": []
+ },
+ {
+ "id": "47269c5f.7a43c4",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1026.0000915527344,
+ "y": 809.000039100647,
+ "z": "778ff71f.21c948",
+ "wires": [
+ [
+ "ac7bcc09.16f6"
+ ]
+ ]
+ },
+ {
+ "id": "facedb43.cc1068",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1032.0002746582031,
+ "y": 894.0000238418579,
+ "z": "778ff71f.21c948",
+ "wires": [
+ [
+ "149c17e5.9ed988"
+ ]
+ ]
+ },
+ {
+ "id": "149c17e5.9ed988",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 1174.9999084472656,
+ "y": 874.000039100647,
+ "z": "778ff71f.21c948",
+ "wires": [
+ [
+ "b8e1ec8.114761"
+ ]
+ ]
+ },
+ {
+ "id": "ef7f2ae9.007da8",
+ "type": "set",
+ "name": "set tmp variables for input RPC parms",
+ "xml": "<set>\n<parameter name=\"tmp.near-rt-ric-id\" value=\"`$create-policy-instance-input.near-rt-ric-id`\"/>\n<parameter name=\"tmp.policy-type-id\" value=\"`$create-policy-instance-input.policy-type-id`\"/>\n<parameter name=\"tmp.policy-instance-id\" value=\"`$create-policy-instance-input.policy-instance-id`\"/>",
+ "comments": "",
+ "x": 824.0010070800781,
+ "y": 601.8891229629517,
+ "z": "778ff71f.21c948",
+ "wires": []
+ },
+ {
+ "id": "c27de345.6a706",
+ "type": "execute",
+ "name": "Create A1 Policy Instance",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"restapiUrl\" value=\"`$prop.a1Mediator.url + '/' + $tmp.restapi.policy-url`\"/>\n<parameter name=\"format\" value=\"json\"/>\n<parameter name=\"httpMethod\" value=\"PUT\"/>\n<parameter name=\"responsePrefix\" value=\"a1MediatorRsp\"/>\n<parameter name='contentType' value='application/json' />\n<parameter name='accept' value='application/json' />\n<parameter name=\"requestBody\" value=\"`$tmp.a1-mediator-restapi.payload`\"/>\n<parameter name=\"convertResponse\" value=\"false\"/>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 810.0004577636719,
+ "y": 853.0103998184204,
+ "z": "778ff71f.21c948",
+ "wires": [
+ [
+ "47269c5f.7a43c4",
+ "facedb43.cc1068"
+ ]
+ ]
+ },
+ {
+ "id": "b537ed30.b52c6",
+ "type": "execute",
+ "name": "generate A1 Mediator URL 1",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$prop.restapi.policy`\"/>\n <parameter name=\"outputPath\" value=\"tmp.restapi.policy-url\"/>\n <parameter name=\"target\" value=\"{policy_type_id}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.policy-type-id`\"/>",
+ "comments": "",
+ "outputs": 1,
+ "x": 805.0001525878906,
+ "y": 659.0105218887329,
+ "z": "778ff71f.21c948",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "7ef43213.fd1b9c",
+ "type": "block",
+ "name": "A1 Mediator RestAPI Invocation",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 498.00002670288086,
+ "y": 753.0000476837158,
+ "z": "778ff71f.21c948",
+ "wires": [
+ [
+ "a3943e2e.44bd3",
+ "ef7f2ae9.007da8",
+ "b537ed30.b52c6",
+ "cb947e00.e3f53",
+ "c27de345.6a706"
+ ]
+ ]
+ },
+ {
+ "id": "cb947e00.e3f53",
+ "type": "execute",
+ "name": "generate A1 Mediator URL 2",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$tmp.restapi.policy-url`\"/>\n <parameter name=\"outputPath\" value=\"tmp.restapi.policy-url\"/>\n <parameter name=\"target\" value=\"{policy_instance_id}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.policy-instance-id`\"/>",
+ "comments": "",
+ "outputs": 1,
+ "x": 819.0000305175781,
+ "y": 699.0000238418579,
+ "z": "778ff71f.21c948",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "a3943e2e.44bd3",
+ "type": "record",
+ "name": "record",
+ "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.FileRecorder\">\n<parameter name=\"file\" value=\"/opt/opendaylight/current/data/log/A1-Adapter.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"Setting variables for A1 Adapter Create Policy Instance.\"/>\n<parameter name=\"field2\" value=\"`$tmp.near-rt-ric-id`\"/>\n<parameter name=\"field3\" value=\"`$tmp.policy-type-id`\"/>\n<parameter name=\"field4\" value=\"`$tmp.policy-instance-id`\"/>\n<parameter name=\"field5\" value=\"`$tmp.restapi.policy-url`\"/>\n<parameter name=\"field6\" value=\"`$a1-mediator.restapi-payload`\"/>\n<parameter name=\"field7\" value=\"Temporary A1 Mediatory Payload\"/>\n<parameter name=\"field8\" value=\"`$tmp.a1-mediator-restapi.payload`\"/>",
+ "comments": "",
+ "outputs": 1,
+ "x": 763.0000305175781,
+ "y": 796.0000238418579,
+ "z": "778ff71f.21c948",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "b8e1ec8.114761",
+ "type": "record",
+ "name": "record",
+ "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.FileRecorder\">\n<parameter name=\"file\" value=\"/opt/opendaylight/current/data/log/A1-Adapter.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"A1 Policy Instance Accepted.\"/>",
+ "comments": "",
+ "outputs": 1,
+ "x": 1344.0000305175781,
+ "y": 875.000039100647,
+ "z": "778ff71f.21c948",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "ac7bcc09.16f6",
+ "type": "returnFailure",
+ "name": "return failure",
+ "xml": "<return status='failure'>\n<parameter name='ack-final' value='Y'/>\n<parameter name=\"response-code\" value=\"404\" />\n<parameter name=\"response-message\" value=\"Error creating A1 Policy Instance. Aborting A1 Policy creation\" />",
+ "comments": "",
+ "x": 1211.0000305175781,
+ "y": 796.0000238418579,
+ "z": "778ff71f.21c948",
+ "wires": []
+ },
+ {
+ "id": "703f6dc7.f6caf4",
+ "type": "set",
+ "name": "set A1Mediator payload manually",
+ "xml": "<set>\n<parameter name=\"tmp.a1-mediator-restapi.payload\" value='{\"blocking_rate\": 20,\"enforce\": true,\"trigger_threshold\": 10,\"window_length\": 10}'/>",
+ "comments": "",
+ "x": 841.0000305175781,
+ "y": 747.0000238418579,
+ "z": "778ff71f.21c948",
+ "wires": []
+ },
+ {
+ "id": "62562bdc.8b71e4",
+ "type": "set",
+ "name": "set default status value",
+ "xml": "<set>\n<parameter name='response-code' value='200' />\n<parameter name='response-message' value='Successful execution of createPolicyInstance RPC' />",
+ "comments": "",
+ "x": 537,
+ "y": 69,
+ "z": "778ff71f.21c948",
+ "wires": []
+ },
+ {
+ "id": "5f556c15.ff9d34",
+ "type": "block",
+ "name": "DMAAP Reponse Publish",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 2103.7540016174316,
+ "y": 1027.003918170929,
+ "z": "778ff71f.21c948",
+ "wires": [
+ [
+ "ffd3de0b.e57d8",
+ "a5746792.21f028",
+ "426e2627.47e6e8"
+ ]
+ ]
+ },
+ {
+ "id": "a5746792.21f028",
+ "type": "execute",
+ "name": "execute DmaapMsg",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n <parameter name='templateFileName' value=\"`$prop.restapi.templateDir + '/' + $prop.restapi.dmaap-publish-generic-response.template`\" />\n <parameter name='restapiUrl' value=\"`$prop.dmaap-message-router.url + $prop.a1Adapter-dmaap-policy-response.topic`\" />\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": 2405.7541694641113,
+ "y": 994.0032835006714,
+ "z": "778ff71f.21c948",
+ "wires": [
+ [
+ "7cd8c84d.81e0a8",
+ "5ffd4dba.8c3774"
+ ]
+ ]
+ },
+ {
+ "id": "ffd3de0b.e57d8",
+ "type": "set",
+ "name": "set",
+ "xml": "<set>\n<parameter name='tmp.a1-adapter-api.rpc-name' value='createPolicyInstance'/>\n<parameter name='tmp.a1Adapter-dmaap-resp.status-code' value='`$response-code`'/>\n<parameter name='tmp.a1Adapter-dmaap-resp.status-value' value='`$response-message`'/>\n<parameter name='tmp.a1Policy-dmaap-resp.payload' value=\"None\" />",
+ "comments": "",
+ "x": 2386.4209175109863,
+ "y": 708.0038166046143,
+ "z": "778ff71f.21c948",
+ "wires": []
+ },
+ {
+ "id": "7cd8c84d.81e0a8",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2640.2541122436523,
+ "y": 904.9206104278564,
+ "z": "778ff71f.21c948",
+ "wires": [
+ [
+ "ab106710.c0d658"
+ ]
+ ]
+ },
+ {
+ "id": "5ffd4dba.8c3774",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2644.2540321350098,
+ "y": 1043.9204530715942,
+ "z": "778ff71f.21c948",
+ "wires": [
+ [
+ "f35b2f30.6d906"
+ ]
+ ]
+ },
+ {
+ "id": "ab106710.c0d658",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 2800.2539463043213,
+ "y": 906.9206113815308,
+ "z": "778ff71f.21c948",
+ "wires": [
+ [
+ "c07b0869.6c3628"
+ ]
+ ]
+ },
+ {
+ "id": "c07b0869.6c3628",
+ "type": "returnFailure",
+ "name": "return failure",
+ "xml": "<return status='failure'>\n<parameter name='ack-final' value='Y'/>\n<parameter name=\"response-code\" value=\"500\" />\n<parameter name=\"response-message\" value=\"Error publishing DMAAP A1 Policy Response message. \" />",
+ "comments": "",
+ "x": 2986.2539825439453,
+ "y": 899.9208135604858,
+ "z": "778ff71f.21c948",
+ "wires": []
+ },
+ {
+ "id": "f35b2f30.6d906",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 2827.2536754608154,
+ "y": 1036.9205617904663,
+ "z": "778ff71f.21c948",
+ "wires": [
+ [
+ "a2700b22.fdfb98"
+ ]
+ ]
+ },
+ {
+ "id": "a2700b22.fdfb98",
+ "type": "record",
+ "name": "record",
+ "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.FileRecorder\">\n<parameter name=\"file\" value=\"/opt/opendaylight/current/data/log/A1-Adapter.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"DMAAP A1Policy message Successfully Published \"/>",
+ "comments": "",
+ "outputs": 1,
+ "x": 3015.253875732422,
+ "y": 1025.92085647583,
+ "z": "778ff71f.21c948",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "426e2627.47e6e8",
+ "type": "record",
+ "name": "record",
+ "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.FileRecorder\">\n<parameter name=\"file\" value=\"/opt/opendaylight/current/data/log/A1-Adapter.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"__TIMESTAMP__\"/>\n<parameter name=\"field2\" value=\"Before DMAAP Event - template file name, restapiURL\"/>\n<parameter name='field3' value=\"`$prop.restapi.templateDir + '/' + $prop.restapi.dmaap-publish-generic-response.template`\" />\n<parameter name='field4' value=\"`$prop.dmaap-message-router.url + $prop.a1Adapter-dmaap-policy-response.topic`\" />\n<parameter name='field5' value=\"Status Code and Status Value to be published\" />\n<parameter name='field6' value=\"`$tmp.a1Adapter-dmaap-resp.status-code`\" />\n<parameter name='field7' value=\"`$tmp.a1Adapter-dmaap-resp.status-value`\" />\n<parameter name='field8' value=\"A1 Adapter DMAAP Response Payload Not Required\" />\n<parameter name='field9' value=\"`$tmp.a1Policy-dmaap-resp.payload`\" />\n<parameter name='field10' value=\"RPC Name\" />\n<parameter name='field11' value=\"`$tmp.a1-adapter-api.rpc-name`\" />",
+ "comments": "",
+ "outputs": 1,
+ "x": 2413.2540168762207,
+ "y": 861.458818435669,
+ "z": "778ff71f.21c948",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "2177b708.4ad0a8",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 365.9999828338623,
+ "y": 972.0001077651978,
+ "z": "778ff71f.21c948",
+ "wires": [
+ [
+ "a4ba83eb.986d9",
+ "d3648067.22567",
+ "5f556c15.ff9d34"
+ ]
+ ]
+ },
+ {
+ "id": "d3648067.22567",
+ "type": "set",
+ "name": "set",
+ "xml": "<set>\n<parameter name='response-code' value='500'/>\n<parameter name='response-message' value='A1 Mediator Not Deployed'/>\n",
+ "comments": "",
+ "x": 477.00389671325684,
+ "y": 834.5039262771606,
+ "z": "778ff71f.21c948",
+ "wires": []
+ },
+ {
+ "id": "2fa6b57e.29105a",
+ "type": "set",
+ "name": "set",
+ "xml": "<set>\n<parameter name='response-code' value='500'/>\n<parameter name='response-message' value='Error creating A1 Mediator Rest API payload string. Aborting A1 Policy Instance creation'/>",
+ "comments": "",
+ "x": 1899.0039443969727,
+ "y": 166.00390911102295,
+ "z": "778ff71f.21c948",
+ "wires": []
+ },
+ {
+ "id": "47758778.282278",
+ "type": "set",
+ "name": "set",
+ "xml": "<set>\n<parameter name='response-code' value='500'/>\n<parameter name=\"response-message\" value=\"Error removing lines from A1 Mediator Rest API payload string. Aborting A1 Policy Instance creation\" />",
+ "comments": "",
+ "x": 1668.5038223266602,
+ "y": 364.0039048194885,
+ "z": "778ff71f.21c948",
+ "wires": []
+ },
+ {
+ "id": "aefc7d8c.affb7",
+ "type": "set",
+ "name": "set",
+ "xml": "<set>\n<parameter name='response-code' value='500'/>\n<parameter name=\"response-message\" value=\"Error removing tabs from A1 Mediator Rest API payload string. Aborting A1 Policy Instance creation\" />",
+ "comments": "",
+ "x": 1613.5036697387695,
+ "y": 611.0039205551147,
+ "z": "778ff71f.21c948",
+ "wires": []
+ },
+ {
+ "id": "4e5b3350.571f7c",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 131.00390243530273,
+ "y": 1138.004020690918,
+ "z": "778ff71f.21c948",
+ "wires": [
+ [
+ "1f803634.6e151a",
+ "5f556c15.ff9d34"
+ ]
+ ]
+ }
+] \ No newline at end of file