+ "name": "populate cid",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$tmp.add-neighbor-service-url`\"/>\n <parameter name=\"outputPath\" value=\"tmp.add-neighbor-service-url\"/>\n <parameter name=\"target\" value=\"{cid}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.cid`\"/>",
+ "comments": "",
+ "outputs": 1,
+ "x": 873.0001678466797,
+ "y": 321.0103921890259,
+ "z": "5119743a.9ef5ec",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "d6d8f210.b0639",
+ "type": "record",
+ "name": "record",
+ "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.FileRecorder\">\n<parameter name=\"file\" value=\"/opt/opendaylight/current/data/log/add-neighbor.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"Add Neighbor List URL\"/>\n<parameter name=\"field2\" value=\"`$tmp.add-neighbor-service-url`\"/>",
+ "comments": "",
+ "outputs": 1,
+ "x": 959.0000991821289,
+ "y": 179.01039028167725,
+ "z": "5119743a.9ef5ec",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "adc061b8.23a98",
+ "type": "record",
+ "name": "record",
+ "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.FileRecorder\">\n<parameter name=\"file\" value=\"/opt/opendaylight/current/data/log/add-neighbor.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"Add Neighbor List URL\"/>\n<parameter name=\"field2\" value=\"`$tmp.add-neighbor-service-url`\"/>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 986.000057220459,
+ "y": 269.0103907585144,
+ "z": "5119743a.9ef5ec",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "3587edc4.c1b4e2",
+ "type": "record",
+ "name": "record",
+ "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.FileRecorder\">\n<parameter name=\"file\" value=\"/opt/opendaylight/current/data/log/add-neighbor.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"Temporary variable for Neighbor Cell #: \"/>\n<parameter name=\"field2\" value=\"`$idx`\"/>\n<parameter name=\"field3\" value=\"`$tmp.plmnid`\"/>\n<parameter name=\"field4\" value=\"`$tmp.cid`\"/>\n<parameter name=\"field5\" value=\"`$tmp.phy-cell-id`\"/>\n<parameter name=\"field6\" value=\"`$tmp.pnf-name`\"/>\n<parameter name=\"field7\" value=\"`$tmp.blacklisted`\"/>\n<parameter name=\"field8\" value=\"`$tmp.alias`\"/>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 819.0000610351562,
+ "y": 93.01041412353516,
+ "z": "5119743a.9ef5ec",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "7d79f8c7.dc0998",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 950,
+ "y": 986,
+ "z": "5119743a.9ef5ec",
+ "wires": [
+ [
+ "b55a3fbd.f2373"
+ ]
+ ]
+ },
+ {
+ "id": "b55a3fbd.f2373",
+ "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 details about new neighbor \" />",
+ "comments": "",
+ "x": 1152.999813079834,
+ "y": 992.0000429153442,
+ "z": "5119743a.9ef5ec",
+ "wires": []
+ },
+ {
+ "id": "4b83adf6.1b4d14",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 932.9997978210449,
+ "y": 1070.0001287460327,
+ "z": "5119743a.9ef5ec",
+ "wires": [
+ [
+ "f623dc48.7bc69"
+ ]
+ ]
+ },
+ {
+ "id": "f623dc48.7bc69",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 1098.9995956420898,
+ "y": 1074.0000619888306,
+ "z": "5119743a.9ef5ec",
+ "wires": [
+ [
+ "362eeae.fdf5716"
+ ]
+ ]
+ },
+ {
+ "id": "362eeae.fdf5716",
+ "type": "record",
+ "name": "record",
+ "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.FileRecorder\">\n<parameter name=\"file\" value=\"/opt/opendaylight/current/data/log/add-neighbor.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"Details about newly added Neighbor\"/>\n<parameter name=\"field2\" value=\"`$oofpci-neighbor-response.lte-ran-neighbor-list-in-use-lte-cell[0].plmnid`\"/>\n<parameter name=\"field3\" value=\"`$oofpci-neighbor-response.lte-ran-neighbor-list-in-use-lte-cell[0].cid`\"/>\n<parameter name=\"field4\" value=\"`$oofpci-neighbor-response.lte-ran-neighbor-list-in-use-lte-cell[0].phy-cell-id`\"/>\n<parameter name=\"field5\" value=\"`$oofpci-neighbor-response.lte-ran-neighbor-list-in-use-lte-cell[0].pnf-name`\"/>\n<parameter name=\"field6\" value=\"`$oofpci-neighbor-response.lte-ran-neighbor-list-in-use-lte-cell[0].blacklisted`\"/>",
+ "comments": "",
+ "outputs": 1,
+ "x": 1274.9995384216309,
+ "y": 1073.0003290176392,
+ "z": "5119743a.9ef5ec",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "15df17e8.d9f018",
+ "type": "record",
+ "name": "record",
+ "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.FileRecorder\">\n<parameter name=\"file\" value=\"/opt/opendaylight/current/data/log/add-neighbor.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"Setting variables for Neighbor Add PUT operation\"/>\n<parameter name=\"field2\" value=\"`$tmp.add-neighbor-service-url`\"/>\n<parameter name=\"field3\" value=\"`$tmp.plmnid`\"/>\n<parameter name=\"field4\" value=\"`$tmp.cid`\"/>\n<parameter name=\"field5\" value=\"`$tmp.phy-cell-id`\"/>\n<parameter name=\"field6\" value=\"`$tmp.pnf-name`\"/>\n<parameter name=\"field7\" value=\"`$tmp.blacklisted`\"/>",
+ "comments": "",
+ "outputs": 1,
+ "x": 653.0006790161133,
+ "y": 907.3334398269653,
+ "z": "5119743a.9ef5ec",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "250e361f.428f2a",
+ "type": "set",
+ "name": "set tmp variables for the requested neighbor to be added",
+ "xml": "<set>\n<parameter name=\"tmp.plmnid\" value=\"`$add-neighbor-input.lte-ran-neighbor-list-in-use-lte-cell[$idx].plmnid`\"/>\n<parameter name=\"tmp.cid\" value=\"`$add-neighbor-input.lte-ran-neighbor-list-in-use-lte-cell[$idx].cid`\"/>\n<parameter name=\"tmp.phy-cell-id\" value=\"`$add-neighbor-input.lte-ran-neighbor-list-in-use-lte-cell[$idx].phy-cell-id`\"/>\n<parameter name=\"tmp.pnf-name\" value=\"`$add-neighbor-input.lte-ran-neighbor-list-in-use-lte-cell[$idx].pnf-name`\"/>\n<parameter name=\"tmp.blacklisted\" value=\"`$add-neighbor-input.lte-ran-neighbor-list-in-use-lte-cell[$idx].blacklisted`\"/>\n<parameter name=\"tmp.alias\" value=\"`$add-neighbor-input.alias`\"/>",
+ "comments": "",
+ "x": 838.0009155273438,
+ "y": 567.222412109375,
+ "z": "5119743a.9ef5ec",
+ "wires": []
+ },
+ {
+ "id": "6b6a9cd4.106434",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 953.0000839233398,
+ "y": 848.3334331512451,
+ "z": "5119743a.9ef5ec",
+ "wires": [
+ [
+ "58f8ef76.6067d"
+ ]
+ ]
+ },
+ {
+ "id": "8cf43b7e.792208",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 944.0000419616699,
+ "y": 929.3333559036255,
+ "z": "5119743a.9ef5ec",
+ "wires": [
+ [
+ "ccc2d5ee.fb0fe8"
+ ]
+ ]
+ },
+ {
+ "id": "58f8ef76.6067d",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 1086.0000133514404,
+ "y": 807.3334646224976,
+ "z": "5119743a.9ef5ec",
+ "wires": [
+ [
+ "29979cbe.d55e64"
+ ]
+ ]
+ },
+ {
+ "id": "29979cbe.d55e64",
+ "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 adding a new neighbor\" />",
+ "comments": "",
+ "x": 1264.999704360962,
+ "y": 804.3334321975708,
+ "z": "5119743a.9ef5ec",
+ "wires": []
+ },
+ {
+ "id": "ccc2d5ee.fb0fe8",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 1108.999771118164,
+ "y": 928.3334159851074,
+ "z": "5119743a.9ef5ec",
+ "wires": [
+ [
+ "1b563cee.d83563"
+ ]
+ ]
+ },
+ {
+ "id": "1b563cee.d83563",
+ "type": "record",
+ "name": "record",
+ "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.FileRecorder\">\n<parameter name=\"file\" value=\"/opt/opendaylight/current/data/log/add-neighbor.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"PUT New Neighbor Executed Successfully \"/>",
+ "comments": "",
+ "outputs": 1,
+ "x": 1281.999885559082,
+ "y": 929.3334484100342,
+ "z": "5119743a.9ef5ec",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "4d2987ef.ea1658",
+ "type": "execute",
+ "name": "generate neighbor add URL",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$prop.restapi.lte-ran-neighbor-in-use.ransim-mounted`\"/>\n <parameter name=\"outputPath\" value=\"tmp.add-neighbor-service-url\"/>\n <parameter name=\"target\" value=\"{alias}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.alias`\"/>",
+ "comments": "",
+ "outputs": 1,
+ "x": 781.0003051757812,
+ "y": 659.3439331054688,
+ "z": "5119743a.9ef5ec",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "cc502fa8.e9011",
+ "type": "execute",
+ "name": "add a neighbor using PUT",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"templateFileName\" value=\"`$prop.restapi.templateDir + '/oofpcipoc-addNeighbor.json'`\" />\n<parameter name=\"restapiUrl\" value=\"`$prop.controller.url + $tmp.add-neighbor-service-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=\"oofpci-add-neighbor-response\"/>\n<parameter name='contentType' value='application/json' /> \n<parameter name='format' value='json' />",
+ "comments": "",
+ "outputs": 1,
+ "x": 691.000114440918,
+ "y": 954.3439073562622,
+ "z": "5119743a.9ef5ec",
+ "wires": [
+ [
+ "6b6a9cd4.106434",
+ "8cf43b7e.792208"
+ ]
+ ]
+ },
+ {
+ "id": "beeeee7c.ffc14",
+ "type": "execute",
+ "name": "Get newly added neighbor details",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"restapiUrl\" value=\"`$prop.controller.url + $tmp.add-neighbor-service-url`\"/>\n<parameter name=\"restapiUser\" value=\"`$prop.controller.user`\" />\n<parameter name=\"restapiPassword\" value=\"`$prop.controller.pwd`\"/>\n<parameter name=\"httpMethod\" value=\"GET\"/>\n<parameter name=\"responsePrefix\" value=\"oofpci-neighbor-response\"/>\n<parameter name='contentType' value='application/json' /> \n<parameter name='format' value='json' />\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 676.999885559082,
+ "y": 1012.3439540863037,
+ "z": "5119743a.9ef5ec",
+ "wires": [
+ [
+ "7d79f8c7.dc0998",
+ "4b83adf6.1b4d14"
+ ]
+ ]
+ },
+ {
+ "id": "fc7661ec.d45a3",
+ "type": "execute",
+ "name": "populate plmnid",