Clean up A1 controller code
[nonrtric.git] / sdnc-a1-controller / oam / platform-logic / generic-resource-api / src / main / json / GENERIC-RESOURCE-API_bbs-internet-profile-network-topology-operation-delete-huawei.json
diff --git a/sdnc-a1-controller/oam/platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_bbs-internet-profile-network-topology-operation-delete-huawei.json b/sdnc-a1-controller/oam/platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_bbs-internet-profile-network-topology-operation-delete-huawei.json
deleted file mode 100644 (file)
index c5d0622..0000000
+++ /dev/null
@@ -1,487 +0,0 @@
-[\r
-    {\r
-        "id": "8393dc4.b00f62",\r
-        "type": "dgstart",\r
-        "name": "DGSTART",\r
-        "outputs": 1,\r
-        "x": 100.00977325439453,\r
-        "y": 67.509765625,\r
-        "z": "633a4b5b.599dd4",\r
-        "wires": [\r
-            [\r
-                "a8de9e47.ef835"\r
-            ]\r
-        ]\r
-    },\r
-    {\r
-        "id": "a8de9e47.ef835",\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": 408.0094223022461,\r
-        "y": 67.50978755950928,\r
-        "z": "633a4b5b.599dd4",\r
-        "wires": [\r
-            [\r
-                "412ac3c4.59356c"\r
-            ]\r
-        ]\r
-    },\r
-    {\r
-        "id": "412ac3c4.59356c",\r
-        "type": "method",\r
-        "name": "method:bbs-internet-profile-network-topology-operation-delete-huawei",\r
-        "xml": "<method rpc='bbs-internet-profile-network-topology-operation-delete-huawei' mode='sync'>\n",\r
-        "comments": "",\r
-        "outputs": 1,\r
-        "x": 406.00940704345703,\r
-        "y": 263.5098638534546,\r
-        "z": "633a4b5b.599dd4",\r
-        "wires": [\r
-            [\r
-                "d96b6a61.651aa8"\r
-            ]\r
-        ]\r
-    },\r
-    {\r
-        "id": "d96b6a61.651aa8",\r
-        "type": "block",\r
-        "name": "block : atomic",\r
-        "xml": "<block atomic=\"true\">\n",\r
-        "atomic": "false",\r
-        "comments": "",\r
-        "outputs": 1,\r
-        "x": 813.009635925293,\r
-        "y": 264.50982761383057,\r
-        "z": "633a4b5b.599dd4",\r
-        "wires": [\r
-            [\r
-                "ed43d6ea.1722d8",\r
-                "dc1e34e.cfd17c8",\r
-                "4bbf7971.41bc68",\r
-                "643f2b24.3a23e4",\r
-                "17c5a97a.f12a27"\r
-            ]\r
-        ]\r
-    },\r
-    {\r
-        "id": "ed43d6ea.1722d8",\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": 1201.6606979370117,\r
-        "y": 268.4706506729126,\r
-        "z": "633a4b5b.599dd4",\r
-        "wires": [\r
-            [\r
-                "1ac2698.caf4797",\r
-                "a7098526.9b3d78"\r
-            ]\r
-        ]\r
-    },\r
-    {\r
-        "id": "a7098526.9b3d78",\r
-        "type": "outcome",\r
-        "name": "failure",\r
-        "xml": "<outcome value='failure'>\n",\r
-        "comments": "",\r
-        "outputs": 1,\r
-        "x": 1502.9936790466309,\r
-        "y": 268.4706506729126,\r
-        "z": "633a4b5b.599dd4",\r
-        "wires": [\r
-            [\r
-                "9700e544.024e48"\r
-            ]\r
-        ]\r
-    },\r
-    {\r
-        "id": "1ac2698.caf4797",\r
-        "type": "outcome",\r
-        "name": "success",\r
-        "xml": "<outcome value='success'>\n",\r
-        "comments": "",\r
-        "outputs": 1,\r
-        "x": 1511.9935913085938,\r
-        "y": 343.47065258026123,\r
-        "z": "633a4b5b.599dd4",\r
-        "wires": [\r
-            [\r
-                "37607f24.53bf"\r
-            ]\r
-        ]\r
-    },\r
-    {\r
-        "id": "37607f24.53bf",\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": 1747.0097122192383,\r
-        "y": 342.50994777679443,\r
-        "z": "633a4b5b.599dd4",\r
-        "wires": [\r
-            [\r
-                "563023ed.4ba30c",\r
-                "b0e164e3.f2a418"\r
-            ]\r
-        ]\r
-    },\r
-    {\r
-        "id": "9700e544.024e48",\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": 2011.9272918701172,\r
-        "y": 268.76019859313965,\r
-        "z": "633a4b5b.599dd4",\r
-        "wires": []\r
-    },\r
-    {\r
-        "id": "563023ed.4ba30c",\r
-        "type": "outcome",\r
-        "name": "Other",\r
-        "xml": "<outcome value='Other'>\n",\r
-        "comments": "",\r
-        "outputs": 1,\r
-        "x": 1973.010051727295,\r
-        "y": 343.51004123687744,\r
-        "z": "633a4b5b.599dd4",\r
-        "wires": [\r
-            [\r
-                "55172168.37133"\r
-            ]\r
-        ]\r
-    },\r
-    {\r
-        "id": "b0e164e3.f2a418",\r
-        "type": "outcome",\r
-        "name": "NULL",\r
-        "xml": "<outcome value=''>\n",\r
-        "comments": "",\r
-        "outputs": 1,\r
-        "x": 1983.0097579956055,\r
-        "y": 429.50990772247314,\r
-        "z": "633a4b5b.599dd4",\r
-        "wires": [\r
-            [\r
-                "fe385e37.9e9a5"\r
-            ]\r
-        ]\r
-    },\r
-    {\r
-        "id": "55172168.37133",\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": 2159.509719848633,\r
-        "y": 343.50987815856934,\r
-        "z": "633a4b5b.599dd4",\r
-        "wires": []\r
-    },\r
-    {\r
-        "id": "fe385e37.9e9a5",\r
-        "type": "block",\r
-        "name": "block",\r
-        "xml": "<block>\n",\r
-        "atomic": "false",\r
-        "comments": "",\r
-        "outputs": 1,\r
-        "x": 2141.1763877868652,\r
-        "y": 430.5098829269409,\r
-        "z": "633a4b5b.599dd4",\r
-        "wires": [\r
-            []\r
-        ]\r
-    },\r
-    {\r
-        "id": "dc1e34e.cfd17c8",\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": 1140.398536682129,\r
-        "y": 781.3988790512085,\r
-        "z": "633a4b5b.599dd4",\r
-        "wires": []\r
-    },\r
-    {\r
-        "id": "4bbf7971.41bc68",\r
-        "type": "call",\r
-        "name": "call:bbs-internet-profile-network-topology-operation-common-huawei",\r
-        "xml": "<call module='GENERIC-RESOURCE-API' rpc='bbs-internet-profile-network-topology-operation-common-huawei' mode='sync' >\n",\r
-        "comments": "",\r
-        "outputs": 1,\r
-        "x": 1313.6766815185547,\r
-        "y": 184.50982093811035,\r
-        "z": "633a4b5b.599dd4",\r
-        "wires": [\r
-            []\r
-        ]\r
-    },\r
-    {\r
-        "id": "65346647.308a38",\r
-        "type": "comment",\r
-        "name": "fetch relationship-list",\r
-        "info": "",\r
-        "comments": "",\r
-        "x": 1150.1802520751953,\r
-        "y": 389.7358646392822,\r
-        "z": "633a4b5b.599dd4",\r
-        "wires": []\r
-    },\r
-    {\r
-        "id": "643f2b24.3a23e4",\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": 1153.6527824401855,\r
-        "y": 443.4859027862549,\r
-        "z": "633a4b5b.599dd4",\r
-        "wires": [\r
-            [\r
-                "99905752.097928"\r
-            ]\r
-        ]\r
-    },\r
-    {\r
-        "id": "fb8a9592.251f98",\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": 1501.8748245239258,\r
-        "y": 443.15258836746216,\r
-        "z": "633a4b5b.599dd4",\r
-        "wires": [\r
-            [\r
-                "92d4d21b.2f71c"\r
-            ]\r
-        ]\r
-    },\r
-    {\r
-        "id": "92d4d21b.2f71c",\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": 1675.0970458984375,\r
-        "y": 443.2636499404907,\r
-        "z": "633a4b5b.599dd4",\r
-        "wires": [\r
-            [\r
-                "8caf9fcc.5729f"\r
-            ]\r
-        ]\r
-    },\r
-    {\r
-        "id": "8caf9fcc.5729f",\r
-        "type": "block",\r
-        "name": "block : atomic",\r
-        "xml": "<block atomic='true'>",\r
-        "atomic": "true",\r
-        "comments": "",\r
-        "outputs": 1,\r
-        "x": 1854.3192672729492,\r
-        "y": 511.0414514541626,\r
-        "z": "633a4b5b.599dd4",\r
-        "wires": [\r
-            [\r
-                "b3868d5c.48189"\r
-            ]\r
-        ]\r
-    },\r
-    {\r
-        "id": "b3868d5c.48189",\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": 2065.485954284668,\r
-        "y": 512.0414886474609,\r
-        "z": "633a4b5b.599dd4",\r
-        "wires": [\r
-            [\r
-                "df1dd418.bafea8"\r
-            ]\r
-        ]\r
-    },\r
-    {\r
-        "id": "df29b5c0.224818",\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": 2636.7645721435547,\r
-        "y": 518.2636861801147,\r
-        "z": "633a4b5b.599dd4",\r
-        "wires": [\r
-            [\r
-                "859c71d2.e161e"\r
-            ]\r
-        ]\r
-    },\r
-    {\r
-        "id": "859c71d2.e161e",\r
-        "type": "other",\r
-        "name": "InternetProfile",\r
-        "xml": "<outcome value='InternetProfile'>\n",\r
-        "comments": "",\r
-        "outputs": 1,\r
-        "x": 2830.7643280029297,\r
-        "y": 512.2637157440186,\r
-        "z": "633a4b5b.599dd4",\r
-        "wires": [\r
-            [\r
-                "2d3afaef.f0ec06"\r
-            ]\r
-        ]\r
-    },\r
-    {\r
-        "id": "2d3afaef.f0ec06",\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": 3074.7638397216797,\r
-        "y": 510.26364040374756,\r
-        "z": "633a4b5b.599dd4",\r
-        "wires": []\r
-    },\r
-    {\r
-        "id": "485cf5c2.abf84c",\r
-        "type": "failure",\r
-        "name": "failure",\r
-        "xml": "<outcome value='failure'>\n",\r
-        "comments": "",\r
-        "outputs": 1,\r
-        "x": 1334.2080688476562,\r
-        "y": 614.4025859832764,\r
-        "z": "633a4b5b.599dd4",\r
-        "wires": [\r
-            [\r
-                "a29bb2f2.980ac"\r
-            ]\r
-        ]\r
-    },\r
-    {\r
-        "id": "93da79ed.e4ae48",\r
-        "type": "not-found",\r
-        "name": "not-found",\r
-        "xml": "<outcome value='not-found'>\n",\r
-        "comments": "",\r
-        "outputs": 1,\r
-        "x": 1342.2080688476562,\r
-        "y": 674.4025859832764,\r
-        "z": "633a4b5b.599dd4",\r
-        "wires": [\r
-            [\r
-                "a29bb2f2.980ac"\r
-            ]\r
-        ]\r
-    },\r
-    {\r
-        "id": "a29bb2f2.980ac",\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": 1550.2080688476562,\r
-        "y": 649.4025859832764,\r
-        "z": "633a4b5b.599dd4",\r
-        "wires": []\r
-    },\r
-    {\r
-        "id": "99905752.097928",\r
-        "type": "block",\r
-        "name": "block : atomic",\r
-        "xml": "<block atomic='true'>",\r
-        "atomic": "true",\r
-        "comments": "",\r
-        "outputs": 1,\r
-        "x": 1337.0136337280273,\r
-        "y": 443.31922149658203,\r
-        "z": "633a4b5b.599dd4",\r
-        "wires": [\r
-            [\r
-                "fb8a9592.251f98"\r
-            ]\r
-        ]\r
-    },\r
-    {\r
-        "id": "75dc5fdd.d172c",\r
-        "type": "block",\r
-        "name": "block : atomic",\r
-        "xml": "<block atomic='true'>",\r
-        "atomic": "true",\r
-        "comments": "",\r
-        "outputs": 1,\r
-        "x": 2453.763717651367,\r
-        "y": 518.7636861801147,\r
-        "z": "633a4b5b.599dd4",\r
-        "wires": [\r
-            [\r
-                "df29b5c0.224818"\r
-            ]\r
-        ]\r
-    },\r
-    {\r
-        "id": "df1dd418.bafea8",\r
-        "type": "success",\r
-        "name": "success",\r
-        "xml": "<outcome value='success'>\n",\r
-        "comments": "",\r
-        "outputs": 1,\r
-        "x": 2251.208080291748,\r
-        "y": 511.4025754928589,\r
-        "z": "633a4b5b.599dd4",\r
-        "wires": [\r
-            [\r
-                "75dc5fdd.d172c"\r
-            ]\r
-        ]\r
-    },\r
-    {\r
-        "id": "17c5a97a.f12a27",\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": 1144.170997619629,\r
-        "y": 614.4487934112549,\r
-        "z": "633a4b5b.599dd4",\r
-        "wires": [\r
-            [\r
-                "485cf5c2.abf84c",\r
-                "93da79ed.e4ae48"\r
-            ]\r
-        ]\r
-    },\r
-    {\r
-        "id": "63b45757.74e858",\r
-        "type": "comment",\r
-        "name": "delete AAI resource",\r
-        "info": "",\r
-        "comments": "",\r
-        "x": 1141.948844909668,\r
-        "y": 561.115478515625,\r
-        "z": "633a4b5b.599dd4",\r
-        "wires": []\r
-    }\r
-]
\ No newline at end of file