--- /dev/null
+[\r
+ {\r
+ "id": "a77f6699.47796",\r
+ "type": "dgstart",\r
+ "name": "DGSTART",\r
+ "outputs": 1,\r
+ "x": 106.75,\r
+ "y": 79.77389526367188,\r
+ "z": "e5a6ac34.a7198",\r
+ "wires": [\r
+ [\r
+ "c640c202.91b41"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "c640c202.91b41",\r
+ "type": "service-logic",\r
+ "name": "GENERIC-RESOURCE-API ${project.version}",\r
+ "module": "GENERIC-RESOURCE-API",\r
+ "version": "${project.version}",\r
+ "comments": "",\r
+ "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='GENERIC-RESOURCE-API' version='${project.version}'>",\r
+ "outputs": 1,\r
+ "x": 414.74964904785156,\r
+ "y": 79.77391719818115,\r
+ "z": "e5a6ac34.a7198",\r
+ "wires": [\r
+ [\r
+ "4e95369f.bf41e"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "4e95369f.bf41e",\r
+ "type": "method",\r
+ "name": "method:bbs-internet-profile-vnf-topology-operation-delete-huawei",\r
+ "xml": "<method rpc='bbs-internet-profile-vnf-topology-operation-delete-huawei' mode='sync'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 412.7496337890625,\r
+ "y": 275.77399349212646,\r
+ "z": "e5a6ac34.a7198",\r
+ "wires": [\r
+ [\r
+ "a33839b0.90a02"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "a33839b0.90a02",\r
+ "type": "block",\r
+ "name": "block : atomic",\r
+ "xml": "<block atomic=\"true\">\n",\r
+ "atomic": "false",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 819.7498626708984,\r
+ "y": 276.77395725250244,\r
+ "z": "e5a6ac34.a7198",\r
+ "wires": [\r
+ [\r
+ "2ed02a5c.5d72ce",\r
+ "c8fbb930.846a4",\r
+ "3956ad31.45a35a",\r
+ "bf1fcd53.ddfe",\r
+ "1fd3f69.1d31e89"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "1fd3f69.1d31e89",\r
+ "type": "execute",\r
+ "name": "execute:DeleteInternetProfileInstance",\r
+ "xml": "<execute plugin=\"org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode\" method=\"sendRequest\">\n <parameter name=\"templateFileName\" value=\"`$prop.restapi.templateDir + '/bbs-internet-profile-operation.json'`\" />\n <parameter name=\"restapiUrl\" value=\"`$prop.sdncRestApi.thirdpartySdnc.url + '/DeleteInternetProfileInstance'`\" />\n <parameter name=\"contentType\" value=\"application/json\"/>\n <parameter name=\"httpMethod\" value=\"post\"/>\n <parameter name=\"responsePrefix\" value=\"service-result\"/>",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 1208.4009246826172,\r
+ "y": 280.7347803115845,\r
+ "z": "e5a6ac34.a7198",\r
+ "wires": [\r
+ [\r
+ "4123db34.0e7424",\r
+ "888adbdc.266ba8"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "888adbdc.266ba8",\r
+ "type": "outcome",\r
+ "name": "failure",\r
+ "xml": "<outcome value='failure'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 1509.7339057922363,\r
+ "y": 280.7347803115845,\r
+ "z": "e5a6ac34.a7198",\r
+ "wires": [\r
+ [\r
+ "6237fdd6.7dcb44"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "4123db34.0e7424",\r
+ "type": "outcome",\r
+ "name": "success",\r
+ "xml": "<outcome value='success'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 1518.7338180541992,\r
+ "y": 355.7347822189331,\r
+ "z": "e5a6ac34.a7198",\r
+ "wires": [\r
+ [\r
+ "497cc63b.30848"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "497cc63b.30848",\r
+ "type": "switchNode",\r
+ "name": "switch:service-result",\r
+ "xml": "<switch test=\"`$service-result.errors.error[0].error-message`\">\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 1753.7499389648438,\r
+ "y": 354.7740774154663,\r
+ "z": "e5a6ac34.a7198",\r
+ "wires": [\r
+ [\r
+ "448428e5.a62b48",\r
+ "7cffa4c4.69e0d4"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "6237fdd6.7dcb44",\r
+ "type": "returnFailure",\r
+ "name": "return failure",\r
+ "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 failed to call DeleteInternetProfileInstance\" />\n",\r
+ "comments": "",\r
+ "x": 2018.6675186157227,\r
+ "y": 281.0243282318115,\r
+ "z": "e5a6ac34.a7198",\r
+ "wires": []\r
+ },\r
+ {\r
+ "id": "448428e5.a62b48",\r
+ "type": "outcome",\r
+ "name": "Other",\r
+ "xml": "<outcome value='Other'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 1979.7502784729004,\r
+ "y": 355.7741708755493,\r
+ "z": "e5a6ac34.a7198",\r
+ "wires": [\r
+ [\r
+ "eba25570.9a106"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "7cffa4c4.69e0d4",\r
+ "type": "outcome",\r
+ "name": "NULL",\r
+ "xml": "<outcome value=''>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 1989.749984741211,\r
+ "y": 441.774037361145,\r
+ "z": "e5a6ac34.a7198",\r
+ "wires": [\r
+ [\r
+ "4fc581b8.3b36a"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "eba25570.9a106",\r
+ "type": "returnFailure",\r
+ "name": "return failure",\r
+ "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 DeleteInternetProfileInstance return: '+$service-result.errors.error[0].error-message`\" />\n\n",\r
+ "comments": "",\r
+ "x": 2166.2499465942383,\r
+ "y": 355.7740077972412,\r
+ "z": "e5a6ac34.a7198",\r
+ "wires": []\r
+ },\r
+ {\r
+ "id": "4fc581b8.3b36a",\r
+ "type": "block",\r
+ "name": "block",\r
+ "xml": "<block>\n",\r
+ "atomic": "false",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 2147.9166145324707,\r
+ "y": 442.7740125656128,\r
+ "z": "e5a6ac34.a7198",\r
+ "wires": [\r
+ []\r
+ ]\r
+ },\r
+ {\r
+ "id": "2ed02a5c.5d72ce",\r
+ "type": "returnSuccess",\r
+ "name": "return success",\r
+ "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",\r
+ "comments": "",\r
+ "x": 1147.1387634277344,\r
+ "y": 793.6630086898804,\r
+ "z": "e5a6ac34.a7198",\r
+ "wires": []\r
+ },\r
+ {\r
+ "id": "c8fbb930.846a4",\r
+ "type": "call",\r
+ "name": "call:bbs-internet-profile-vnf-topology-operation-common-huawei",\r
+ "xml": "<call module='GENERIC-RESOURCE-API' rpc='bbs-internet-profile-vnf-topology-operation-common-huawei' mode='sync' >\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 1320.4169082641602,\r
+ "y": 196.77395057678223,\r
+ "z": "e5a6ac34.a7198",\r
+ "wires": [\r
+ []\r
+ ]\r
+ },\r
+ {\r
+ "id": "dea36b4d.64e4",\r
+ "type": "comment",\r
+ "name": "fetch relationship-list",\r
+ "info": "",\r
+ "comments": "",\r
+ "x": 1127.9205322265625,\r
+ "y": 70,\r
+ "z": "e5a6ac34.a7198",\r
+ "wires": []\r
+ },\r
+ {\r
+ "id": "bf1fcd53.ddfe",\r
+ "type": "for",\r
+ "name": "for relationship data",\r
+ "xml": "<for silentFailure='false' index='rdidx' start='0' end=\"`$aai.service-instance.relationship-list.relationship[$ridx].relationship-data_length`\" >",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 1160.393009185791,\r
+ "y": 455.75003242492676,\r
+ "z": "e5a6ac34.a7198",\r
+ "wires": [\r
+ [\r
+ "5f6aa36e.f418f4"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "362b4d43.71efaa",\r
+ "type": "switchNode",\r
+ "name": "switch vnf-id",\r
+ "xml": "<switch test='`$aai.service-instance.relationship-list.relationship[$ridx].relationship-data[$rdidx].relationship-key`'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 1508.6150512695312,\r
+ "y": 455.41671800613403,\r
+ "z": "e5a6ac34.a7198",\r
+ "wires": [\r
+ [\r
+ "dca82cdd.160458"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "dca82cdd.160458",\r
+ "type": "other",\r
+ "name": "generic-vnf.vnf-id",\r
+ "xml": "<outcome value='generic-vnf.vnf-id'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 1681.837272644043,\r
+ "y": 455.5277795791626,\r
+ "z": "e5a6ac34.a7198",\r
+ "wires": [\r
+ [\r
+ "48c7c532.f812c4"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "48c7c532.f812c4",\r
+ "type": "block",\r
+ "name": "block : atomic",\r
+ "xml": "<block atomic='true'>",\r
+ "atomic": "true",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 1861.0594940185547,\r
+ "y": 523.3055810928345,\r
+ "z": "e5a6ac34.a7198",\r
+ "wires": [\r
+ [\r
+ "dbcb4df4.6dfa68"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "dbcb4df4.6dfa68",\r
+ "type": "update",\r
+ "name": "get AAI generic-vnf",\r
+ "xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\t\tresource=\"generic-vnf\" \n\t\tkey=\"generic-vnf.vnf-id = $aai.service-instance.relationship-list.relationship[$ridx].relationship-data[$rdidx].relationship-value\"\n pfx='aai.generic-vnf' local-only='false' >",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 2072.2261810302734,\r
+ "y": 524.3056182861328,\r
+ "z": "e5a6ac34.a7198",\r
+ "wires": [\r
+ [\r
+ "f82b8813.df9498"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "2eceba1e.5f3b96",\r
+ "type": "switchNode",\r
+ "name": "switch vnf-type",\r
+ "xml": "<switch test='`$aai.generic-vnf.vnf-type`'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 2643.50479888916,\r
+ "y": 530.5278158187866,\r
+ "z": "e5a6ac34.a7198",\r
+ "wires": [\r
+ [\r
+ "49b85927.406f78"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "49b85927.406f78",\r
+ "type": "other",\r
+ "name": "InternetProfile",\r
+ "xml": "<outcome value='InternetProfile'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 2837.504554748535,\r
+ "y": 524.5278453826904,\r
+ "z": "e5a6ac34.a7198",\r
+ "wires": [\r
+ [\r
+ "301145e6.198712"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "301145e6.198712",\r
+ "type": "set",\r
+ "name": "set InternetProfile vnf-id",\r
+ "xml": "<set>\n<parameter name='prop.bbs.internetProfileVNFId' value='`$aai.generic-vnf.vnf-id`' />\n",\r
+ "comments": "",\r
+ "x": 3081.504066467285,\r
+ "y": 522.5277700424194,\r
+ "z": "e5a6ac34.a7198",\r
+ "wires": []\r
+ },\r
+ {\r
+ "id": "36ca2449.b1df6c",\r
+ "type": "failure",\r
+ "name": "failure",\r
+ "xml": "<outcome value='failure'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 1340.9482955932617,\r
+ "y": 626.6667156219482,\r
+ "z": "e5a6ac34.a7198",\r
+ "wires": [\r
+ [\r
+ "aa8632c1.a4018"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "f6034493.649d",\r
+ "type": "not-found",\r
+ "name": "not-found",\r
+ "xml": "<outcome value='not-found'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 1348.9482955932617,\r
+ "y": 686.6667156219482,\r
+ "z": "e5a6ac34.a7198",\r
+ "wires": [\r
+ [\r
+ "aa8632c1.a4018"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "aa8632c1.a4018",\r
+ "type": "returnFailure",\r
+ "name": "return failure",\r
+ "xml": "<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value='' />\n",\r
+ "comments": "",\r
+ "x": 1556.9482955932617,\r
+ "y": 661.6667156219482,\r
+ "z": "e5a6ac34.a7198",\r
+ "wires": []\r
+ },\r
+ {\r
+ "id": "5f6aa36e.f418f4",\r
+ "type": "block",\r
+ "name": "block : atomic",\r
+ "xml": "<block atomic='true'>",\r
+ "atomic": "true",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 1343.7538604736328,\r
+ "y": 455.5833511352539,\r
+ "z": "e5a6ac34.a7198",\r
+ "wires": [\r
+ [\r
+ "362b4d43.71efaa"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "f33b322.9852f5",\r
+ "type": "block",\r
+ "name": "block : atomic",\r
+ "xml": "<block atomic='true'>",\r
+ "atomic": "true",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 2460.5039443969727,\r
+ "y": 531.0278158187866,\r
+ "z": "e5a6ac34.a7198",\r
+ "wires": [\r
+ [\r
+ "2eceba1e.5f3b96"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "f82b8813.df9498",\r
+ "type": "success",\r
+ "name": "success",\r
+ "xml": "<outcome value='success'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 2257.9483070373535,\r
+ "y": 523.6667051315308,\r
+ "z": "e5a6ac34.a7198",\r
+ "wires": [\r
+ [\r
+ "f33b322.9852f5"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "3956ad31.45a35a",\r
+ "type": "update",\r
+ "name": "deleteResourceAAI",\r
+ "xml": "<delete plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\t\tresource=\"generic-vnf\" \n\t\tkey=\"generic-vnf.vnf-id = $prop.bbs.internetProfileVNFId\">",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 1150.9112243652344,\r
+ "y": 626.7129230499268,\r
+ "z": "e5a6ac34.a7198",\r
+ "wires": [\r
+ [\r
+ "36ca2449.b1df6c",\r
+ "f6034493.649d"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "95856666.28972",\r
+ "type": "comment",\r
+ "name": "delete AAI resource",\r
+ "info": "",\r
+ "comments": "",\r
+ "x": 1148.6890716552734,\r
+ "y": 573.3796081542969,\r
+ "z": "e5a6ac34.a7198",\r
+ "wires": []\r
+ }\r
+]
\ No newline at end of file