Support individual CLL deletion, and UNI removal from Ethernet Service, and
[sdnc/oam.git] / platform-logic / generic-resource-api / src / main / json / cloud_leased_line / GENERIC-RESOURCE-API_cll-vnf-topology-operation-cll-delete-VPNBs.json
diff --git a/platform-logic/generic-resource-api/src/main/json/cloud_leased_line/GENERIC-RESOURCE-API_cll-vnf-topology-operation-cll-delete-VPNBs.json b/platform-logic/generic-resource-api/src/main/json/cloud_leased_line/GENERIC-RESOURCE-API_cll-vnf-topology-operation-cll-delete-VPNBs.json
new file mode 100644 (file)
index 0000000..de9383d
--- /dev/null
@@ -0,0 +1,966 @@
+[\r
+    {\r
+        "id": "a88af18.67fae9",\r
+        "type": "switchNode",\r
+        "name": "switch related-to",\r
+        "xml": "<switch test='`$tmp.aai.source-pnf.relationship-list.relationship[$spvidx].related-to`'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 2806.316619873047,\r
+        "y": 668.88330078125,\r
+        "z": "347519d8.005516",\r
+        "wires": [\r
+            [\r
+                "d17bb726.fa65e8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "d17bb726.fa65e8",\r
+        "type": "outcome",\r
+        "name": "esr-thirdparty-sdnc",\r
+        "xml": "<outcome value='esr-thirdparty-sdnc'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 2943.316619873047,\r
+        "y": 756.88330078125,\r
+        "z": "347519d8.005516",\r
+        "wires": [\r
+            [\r
+                "141e9731.53d429"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "5a075e5f.de06b8",\r
+        "type": "execute",\r
+        "name": "get esr-thirdparty-sdnc",\r
+        "xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\t\tresource=\"esr-thirdparty-sdnc\" \n\t\tkey=\"esr-thirdparty-sdnc.thirdparty-sdnc-id = $tmp.domain.esr-thirdparty-id AND \n\t\t     depth = '1'\"\n        pfx='tmp.aai.domain.esr-thirdparty-sdnc' local-only='false' >",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 3328.316619873047,\r
+        "y": 769.88330078125,\r
+        "z": "347519d8.005516",\r
+        "wires": [\r
+            [\r
+                "bfab05fb.6c1fd",\r
+                "66b97fa3.09fba8",\r
+                "a61f3fb8.28c2b"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "141e9731.53d429",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic=\"true\">",\r
+        "atomic": "true",\r
+        "outputs": 1,\r
+        "x": 3122.316619873047,\r
+        "y": 756.88330078125,\r
+        "z": "347519d8.005516",\r
+        "wires": [\r
+            [\r
+                "6ba56bd3.970cc4",\r
+                "5a075e5f.de06b8",\r
+                "f743ac29.02b56"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "6ba56bd3.970cc4",\r
+        "type": "set",\r
+        "name": "set esr-thirdparty-sdnc domain id",\r
+        "xml": "<set>\n<parameter name='tmp.domain.esr-thirdparty-id' value=\"`$tmp.aai.source-pnf.relationship-list.relationship[$spvidx].relationship-data[0].relationship-value`\" />\n",\r
+        "comments": "",\r
+        "x": 3358.316619873047,\r
+        "y": 717.88330078125,\r
+        "z": "347519d8.005516",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "bfab05fb.6c1fd",\r
+        "type": "success",\r
+        "name": "success",\r
+        "xml": "<outcome value='success'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 3538.316619873047,\r
+        "y": 760.88330078125,\r
+        "z": "347519d8.005516",\r
+        "wires": [\r
+            [\r
+                "9395b4f9.f11e08"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "66b97fa3.09fba8",\r
+        "type": "not-found",\r
+        "name": "not-found",\r
+        "xml": "<outcome value='not-found'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 3530.316619873047,\r
+        "y": 815.88330078125,\r
+        "z": "347519d8.005516",\r
+        "wires": [\r
+            [\r
+                "6a113c41.2b7f84"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "a61f3fb8.28c2b",\r
+        "type": "other",\r
+        "name": "other",\r
+        "xml": "<outcome value='Other'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 3535.316619873047,\r
+        "y": 872.88330078125,\r
+        "z": "347519d8.005516",\r
+        "wires": [\r
+            [\r
+                "ae24d388.debf2"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "ae24d388.debf2",\r
+        "type": "returnFailure",\r
+        "name": "return failure",\r
+        "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n    <parameter name=\"error-message\" value=\"`'Unexpected error occurred while querying pnf from AnAI with pnf-name = ' + $prop.connection-attachement.access-node-id`\" />\n\n",\r
+        "comments": "",\r
+        "x": 3687.316619873047,\r
+        "y": 873.88330078125,\r
+        "z": "347519d8.005516",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "6a113c41.2b7f84",\r
+        "type": "returnFailure",\r
+        "name": "return failure",\r
+        "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n    <parameter name=\"error-message\" value=\"`'An error occurred while querying pnf from AnAI with pnf-name = ' + $prop.connection-attachement.access-node-id`\" />\n\n",\r
+        "comments": "",\r
+        "x": 3698.316619873047,\r
+        "y": 818.88330078125,\r
+        "z": "347519d8.005516",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "9395b4f9.f11e08",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 3682.698944091797,\r
+        "y": 758.5389709472656,\r
+        "z": "347519d8.005516",\r
+        "wires": [\r
+            [\r
+                "e30efe2.36b498"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "e30efe2.36b498",\r
+        "type": "set",\r
+        "name": "set controller domain data",\r
+        "xml": "<set>\n<parameter name='prop.sdncRestApi.thirdpartySdnc.domain.url' value=\"`$tmp.aai.domain.esr-thirdparty-sdnc.esr-system-info-list.esr-system-info[0].service-url`\" />\n<parameter name='prop.sdncRestApi.thirdpartySdnc.domain.user' value=\"`$tmp.aai.domain.esr-thirdparty-sdnc.esr-system-info-list.esr-system-info[0].user-name`\" />\n<parameter name='prop.sdncRestApi.thirdpartySdnc.domain.password' value=\"`$tmp.aai.domain.esr-thirdparty-sdnc.esr-system-info-list.esr-system-info[0].password`\" />\n\n\n<!--<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >-->\n<!--<parameter name=\"restapiUrl\" value=\"`$prop.sdncRestApi.thirdpartySdnc.url + '/restconf/data/ietf-network:networks'`\" />-->\n<!--<parameter name=\"restapiUser\" value=\"`$prop.sdncRestApi.thirdpartySdnc.user`\" />-->\n<!--<parameter name=\"restapiPassword\" value=\"`$prop.sdncRestApi.thirdpartySdnc.password`\" />-->\n<!--<parameter name=\"format\" value=\"json\"/>-->\n<!--<parameter name=\"httpMethod\" value=\"get\"/>-->\n<!--<parameter name=\"responsePrefix\" value=\"topology\"/>-->\n<!--<parameter name=\"trustStoreFileName\" value=\"/opt/onap/sdnc/data/stores/truststore.onap.client.jks\"/>-->\n<!--<parameter name=\"trustStorePassword\" value=\"adminadmin\"/>-->\n<!--<parameter name=\"keyStoreFileName\" value=\"/opt/onap/sdnc/data/stores/sdnc.p12\"/>-->\n<!--<parameter name=\"keyStorePassword\" value=\"adminadmin\"/>-->\n",\r
+        "comments": "",\r
+        "x": 3897.316619873047,\r
+        "y": 754.88330078125,\r
+        "z": "347519d8.005516",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "f743ac29.02b56",\r
+        "type": "break",\r
+        "name": "break",\r
+        "xml": "<break>\n",\r
+        "comments": "",\r
+        "x": 3278.316619873047,\r
+        "y": 833.88330078125,\r
+        "z": "347519d8.005516",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "98d7bf6.4dfe7c",\r
+        "type": "returnFailure",\r
+        "name": "return failure",\r
+        "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n    <parameter name=\"error-message\" value=\"Error executing delete OTN tunnel rest api\" />\n",\r
+        "comments": "",\r
+        "x": 2698.816619873047,\r
+        "y": 955.88330078125,\r
+        "z": "347519d8.005516",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "61820fcc.882e",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic=\"true\">",\r
+        "atomic": "true",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 2694.316619873047,\r
+        "y": 1020.88330078125,\r
+        "z": "347519d8.005516",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "5b3a4445.ce6224",\r
+        "type": "for",\r
+        "name": "for each relationship",\r
+        "xml": "<for silentFailure='true' index='spvidx' start='0' end='`$tmp.aai.source-pnf.relationship-list.relationship_length`' >\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 2604.3164978027344,\r
+        "y": 741.88330078125,\r
+        "z": "347519d8.005516",\r
+        "wires": [\r
+            [\r
+                "a88af18.67fae9"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "132ce225.b79cae",\r
+        "type": "set",\r
+        "name": "set pnf-name",\r
+        "xml": "<set>\n<parameter name='tmp.domain.pnf-name' value=\"`'networkId-providerId-' +\n                                                   $tmp.aai.vpn-binding.access-provider-id + '-clientId-' +\n                                                   $tmp.aai.vpn-binding.access-client-id + '-topologyId-' +\n                                                   $tmp.aai.vpn-binding.access-topology-id + '-nodeId-' +\n                                                   $tmp.aai.vpn-binding.src-access-node-id`\" />\n",\r
+        "comments": "",\r
+        "x": 2052.316375732422,\r
+        "y": 721.88330078125,\r
+        "z": "347519d8.005516",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "5cdb5a7a.54733c",\r
+        "type": "get-resource",\r
+        "name": "get-resource src pnf",\r
+        "xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\t\tresource=\"pnf\" \n\t\tkey=\"pnf.pnf-name = $tmp.domain.pnf-name\"\n        pfx='tmp.aai.source-pnf' local-only='false' >\n\n        <!--AND depth = '0'\"-->\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 2080.3164978027344,\r
+        "y": 791.88330078125,\r
+        "z": "347519d8.005516",\r
+        "wires": [\r
+            [\r
+                "6c0f168f.8aad68",\r
+                "cd12f0b4.568798",\r
+                "80b1b093.b4332"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "6c0f168f.8aad68",\r
+        "type": "success",\r
+        "name": "success",\r
+        "xml": "<outcome value='success'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 2275.816619873047,\r
+        "y": 743.88330078125,\r
+        "z": "347519d8.005516",\r
+        "wires": [\r
+            [\r
+                "99130a65.69efe8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "cd12f0b4.568798",\r
+        "type": "not-found",\r
+        "name": "not-found",\r
+        "xml": "<outcome value='not-found'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 2267.816619873047,\r
+        "y": 798.88330078125,\r
+        "z": "347519d8.005516",\r
+        "wires": [\r
+            [\r
+                "80ce6dda.3e5e5"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "99130a65.69efe8",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 2420.198944091797,\r
+        "y": 743.5389709472656,\r
+        "z": "347519d8.005516",\r
+        "wires": [\r
+            [\r
+                "5b3a4445.ce6224"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "80b1b093.b4332",\r
+        "type": "other",\r
+        "name": "other",\r
+        "xml": "<outcome value='Other'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 2272.816619873047,\r
+        "y": 855.88330078125,\r
+        "z": "347519d8.005516",\r
+        "wires": [\r
+            [\r
+                "b4d035fe.9cf0b"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "b4d035fe.9cf0b",\r
+        "type": "returnFailure",\r
+        "name": "return failure",\r
+        "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n    <parameter name=\"error-message\" value=\"`'Unexpected error occurred while querying pnf from AnAI with pnf-name = ' + $prop.connection-attachement.access-node-id`\" />\n\n",\r
+        "comments": "",\r
+        "x": 2424.816619873047,\r
+        "y": 856.88330078125,\r
+        "z": "347519d8.005516",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "80ce6dda.3e5e5",\r
+        "type": "returnFailure",\r
+        "name": "return failure",\r
+        "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n    <parameter name=\"error-message\" value=\"`'An error occurred while querying pnf from AnAI with pnf-name = ' + $prop.connection-attachement.access-node-id`\" />\n\n",\r
+        "comments": "",\r
+        "x": 2435.816619873047,\r
+        "y": 799.88330078125,\r
+        "z": "347519d8.005516",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "cbce5afd.0d149",\r
+        "type": "execute",\r
+        "name": "execute RestApiCallNode Delete OTN tunnel with token",\r
+        "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<!--<parameter name=\"templateFileName\" value=\"`$prop.restapi.templateDir + '/' + $prop.restapi.ts-otn-src-domain-creation.templatefile`\" />-->\n<parameter name=\"restapiUrl\" value=\"`$prop.sdncRestApi.thirdpartySdnc.domain.url + '/restconf/data/ietf-te:te/tunnels/tunnel=' + $tmp.aai.vpn-binding.vpn-name`\" />\n<parameter name=\"restapiUser\" value=\"`$prop.sdncRestApi.thirdpartySdnc.domain.user`\" />\n<parameter name=\"restapiPassword\" value=\"`$prop.sdncRestApi.thirdpartySdnc.domain.password`\" />\n<parameter name=\"format\" value=\"json\"/>\n<parameter name=\"httpMethod\" value=\"delete\"/>\n<parameter name=\"responsePrefix\" value=\"otn-oof\"/>\n<parameter name=\"trustStoreFileName\" value=\"/opt/onap/sdnc/data/stores/truststore.onap.client.jks\"/>\n<parameter name=\"trustStorePassword\" value=\"adminadmin\"/>\n<parameter name=\"keyStoreFileName\" value=\"/opt/onap/sdnc/data/stores/sdnc.p12\"/>\n<parameter name=\"keyStorePassword\" value=\"adminadmin\"/>\n<parameter name='customHttpHeaders' value=\"`'X-ACCESS-TOKEN=' + $prop.sdncRestApi.token_id`\" />",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 2190.316619873047,\r
+        "y": 985.88330078125,\r
+        "z": "347519d8.005516",\r
+        "wires": [\r
+            [\r
+                "38dfa115.008496",\r
+                "f31653a0.9143e8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "38dfa115.008496",\r
+        "type": "failure",\r
+        "name": "failure",\r
+        "xml": "<outcome value='failure'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 2522.816619873047,\r
+        "y": 955.88330078125,\r
+        "z": "347519d8.005516",\r
+        "wires": [\r
+            [\r
+                "98d7bf6.4dfe7c"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "f31653a0.9143e8",\r
+        "type": "success",\r
+        "name": "success",\r
+        "xml": "<outcome value='success'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 2527.816619873047,\r
+        "y": 1020.88330078125,\r
+        "z": "347519d8.005516",\r
+        "wires": [\r
+            [\r
+                "61820fcc.882e"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "30af1423.cd4b6c",\r
+        "type": "save",\r
+        "name": "delete vpn-binding resource in AAI",\r
+        "xml": "<delete plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='vpn-binding' \n      key='vpn-binding.vpn-id = $tmp.aai.vpn-binding.vpn-id' >\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 2113.316619873047,\r
+        "y": 1116.88330078125,\r
+        "z": "347519d8.005516",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "d0b44cbe.a16a5",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic=\"true\">",\r
+        "atomic": "true",\r
+        "outputs": 1,\r
+        "x": 1822.3166198730469,\r
+        "y": 941.88330078125,\r
+        "z": "347519d8.005516",\r
+        "wires": [\r
+            [\r
+                "132ce225.b79cae",\r
+                "5cdb5a7a.54733c",\r
+                "cbce5afd.0d149",\r
+                "30af1423.cd4b6c",\r
+                "b097652b.150d7",\r
+                "e258ce61.c84d28"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "b097652b.150d7",\r
+        "type": "set",\r
+        "name": "unset tmp.aai.vpn-binding",\r
+        "xml": "<set>\n<parameter name='tmp.aai.vpn-binding.' value=\"\" />\n",\r
+        "comments": "",\r
+        "x": 2101.5164489746094,\r
+        "y": 624.88330078125,\r
+        "z": "347519d8.005516",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "e258ce61.c84d28",\r
+        "type": "set",\r
+        "name": "set tmp.aai.vpn-binding",\r
+        "xml": "<set>\n<parameter name='tmp.aai.vpn-binding.' value=\"`$tmp.aai.all-vpn-bindings.vpn-binding[$vpnbidx].`\" />\n",\r
+        "comments": "",\r
+        "x": 2093.5164489746094,\r
+        "y": 673.88330078125,\r
+        "z": "347519d8.005516",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "3c24f82.dfab088",\r
+        "type": "comment",\r
+        "name": "find all OTNs that have srcTtpOtnLayer and increase their bandwidth",\r
+        "info": "",\r
+        "comments": "",\r
+        "x": 1023.5003967285156,\r
+        "y": 746.39990234375,\r
+        "z": "347519d8.005516",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "570ad10f.ad92f8",\r
+        "type": "save",\r
+        "name": "get all-vpn-bindings from aai",\r
+        "xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\tresource=\"vpn-bindings\"\n\t    key=\"selflink = 'https://aai.onap:8443/aai/v24/network/vpn-bindings\"\n\t\tlocal-only=\"false\" \n\t\tpfx=\"tmp.aai.all-vpn-bindings\" >\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 921.5003967285156,\r
+        "y": 781.39990234375,\r
+        "z": "347519d8.005516",\r
+        "wires": [\r
+            [\r
+                "f405b75.e7a9fc8",\r
+                "4e9de096.f468b",\r
+                "9757d76.73f10a8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "f405b75.e7a9fc8",\r
+        "type": "success",\r
+        "name": "success",\r
+        "xml": "<outcome value='success'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1126.5003967285156,\r
+        "y": 778.39990234375,\r
+        "z": "347519d8.005516",\r
+        "wires": [\r
+            [\r
+                "5de56166.922018"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "4e9de096.f468b",\r
+        "type": "not-found",\r
+        "name": "not-found",\r
+        "xml": "<outcome value='not-found'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1109.9913635253906,\r
+        "y": 839.9739379882812,\r
+        "z": "347519d8.005516",\r
+        "wires": [\r
+            [\r
+                "a1062ebe.b15808"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "9757d76.73f10a8",\r
+        "type": "failure",\r
+        "name": "failure",\r
+        "xml": "<outcome value='failure'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1107.5003967285156,\r
+        "y": 883.39990234375,\r
+        "z": "347519d8.005516",\r
+        "wires": [\r
+            [\r
+                "10e74f8b.3fb4a8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "5de56166.922018",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic=\"true\">",\r
+        "atomic": "true",\r
+        "outputs": 1,\r
+        "x": 1294.5006408691406,\r
+        "y": 773.39990234375,\r
+        "z": "347519d8.005516",\r
+        "wires": [\r
+            [\r
+                "fdc657b.398c8a8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "a1062ebe.b15808",\r
+        "type": "returnFailure",\r
+        "name": "return failure",\r
+        "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n    <parameter name=\"error-message\" value=\"`'An error occurred while querying pnf from AnAI with pnf-name = ' + $prop.l3vpn.pe1_id`\" />\n\n",\r
+        "comments": "",\r
+        "x": 1272.5627746582031,\r
+        "y": 840.2596740722656,\r
+        "z": "347519d8.005516",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "10e74f8b.3fb4a8",\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": 1274.5003967285156,\r
+        "y": 882.39990234375,\r
+        "z": "347519d8.005516",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "fdc657b.398c8a8",\r
+        "type": "for",\r
+        "name": "for vpnidx in all-vpn-bindings",\r
+        "xml": "<for index='vpnbidx' start='0' end='`$tmp.aai.all-vpn-bindings.vpn-binding_length`' >\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 920.5007019042969,\r
+        "y": 1018.39990234375,\r
+        "z": "347519d8.005516",\r
+        "wires": [\r
+            [\r
+                "5a8644f1.6f626c"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "5a8644f1.6f626c",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic='true'>",\r
+        "atomic": "true",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1150.5004577636719,\r
+        "y": 1006.39990234375,\r
+        "z": "347519d8.005516",\r
+        "wires": [\r
+            [\r
+                "71241a5.135ba64"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "71241a5.135ba64",\r
+        "type": "switchNode",\r
+        "name": "switch ops-note is srcTtpOtnLayer",\r
+        "xml": "<switch test=\"`$tmp.aai.all-vpn-bindings.vpn-binding[$vpnbidx].ops-note == $tmp.srcTtpOtnLayer `\">\n\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1386.3168640136719,\r
+        "y": 1005.56640625,\r
+        "z": "347519d8.005516",\r
+        "wires": [\r
+            [\r
+                "4253fbea.3b4874",\r
+                "6cef3566.dab14c"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "4253fbea.3b4874",\r
+        "type": "outcomeTrue",\r
+        "name": "true",\r
+        "xml": "<outcome value='true'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1616.3168640136719,\r
+        "y": 1000.56591796875,\r
+        "z": "347519d8.005516",\r
+        "wires": [\r
+            [\r
+                "d0b44cbe.a16a5"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "6cef3566.dab14c",\r
+        "type": "outcomeFalse",\r
+        "name": "false",\r
+        "xml": "<outcome value='false'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1627.3168640136719,\r
+        "y": 1043.56591796875,\r
+        "z": "347519d8.005516",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "3070392b.33f8c6",\r
+        "type": "set",\r
+        "name": "set srcTtp OTN layer",\r
+        "xml": "<set>\n<!--<parameter name='tmp.srcTtpOtnLayer' value=\"`$tmp.pce-src-node + '-' + -->\n<!--                                             $param-prefix-domainA[$param-prefix-domainA_length -2] + '-' +-->\n<!--                                             $tmp.source.ttp-id`\" />-->\n\n<parameter name='tmp.srcTtpOtnLayer' value=\"`$tmp.pce-src-node`\" />\n\n\n",\r
+        "comments": "",\r
+        "x": 1170.9999694824219,\r
+        "y": 593.283203125,\r
+        "z": "347519d8.005516",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "45e829a.7cbd958",\r
+        "type": "set",\r
+        "name": "unset tmp.aai.all-vpn-bindings",\r
+        "xml": "<set>\n<parameter name='tmp.aai.all-vpn-bindings.' value='' />\n",\r
+        "comments": "",\r
+        "x": 900.2001037597656,\r
+        "y": 707.39990234375,\r
+        "z": "347519d8.005516",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "304ed1d7.4f9efe",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 663.9999694824219,\r
+        "y": 737.2333984375,\r
+        "z": "347519d8.005516",\r
+        "wires": [\r
+            [\r
+                "45e829a.7cbd958",\r
+                "570ad10f.ad92f8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "7df4e9d5.2bc648",\r
+        "type": "switchNode",\r
+        "name": "switch provider-id domainA",\r
+        "xml": "<switch test='`$allNetworksList.network-resource[$netwidx].provider-id == $param-prefix-domainA-pnfName[2]`'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1515.9999694824219,\r
+        "y": 455.283203125,\r
+        "z": "347519d8.005516",\r
+        "wires": [\r
+            [\r
+                "a43c232c.85575"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "561ea33d.a2ffb4",\r
+        "type": "for",\r
+        "name": "for netwidx..allNetworksList_length",\r
+        "xml": "<for index='netwidx' start='0' end='`$allNetworksList.network-resource_length`' >",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1222.9999694824219,\r
+        "y": 449.283203125,\r
+        "z": "347519d8.005516",\r
+        "wires": [\r
+            [\r
+                "7df4e9d5.2bc648"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "2e515252.bebdb6",\r
+        "type": "not-found",\r
+        "name": "not-found",\r
+        "xml": "<outcome value='not-found'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1477.9999694824219,\r
+        "y": 406.283203125,\r
+        "z": "347519d8.005516",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "36a9a792.12dcb8",\r
+        "type": "set",\r
+        "name": "unset parameters",\r
+        "xml": "<set>\n<parameter name='tmp.pce-src-node.' value='' />\n",\r
+        "comments": "",\r
+        "x": 1166.9999694824219,\r
+        "y": 501.283203125,\r
+        "z": "347519d8.005516",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "2a69687a.5611c",\r
+        "type": "set",\r
+        "name": "set tmp.pce-src-node",\r
+        "xml": "<set>\n<!--<parameter name='tmp.pce-src-node' value=\"`$param-prefix-domainA-pnfName[0] + '-' +-->\n<!--                                                   $param-prefix-domainA-pnfName[1] + '-' +-->\n<!--                                                   $param-prefix-domainA-pnfName[2] + '-' +-->\n<!--                                                   $param-prefix-domainA-pnfName[3] + '-' +-->\n<!--                                                   $param-prefix-domainA-pnfName[4] + '-' +-->\n<!--                                                   $param-prefix-domainA-pnfName[5] + '-' +-->\n<!--                                                   1 + '-' +-->\n<!--                                                   $param-prefix-domainA-pnfName[7] + '-' +-->\n<!--                                                   $param-prefix-domainA-pnfName[8]`\" />-->\n\n<parameter name='tmp.pce-src-node' value=\"`$param-prefix-domainA-pnfName[0] + '-' +\n                                                   $param-prefix-domainA-pnfName[1] + '-' +\n                                                   $param-prefix-domainA-pnfName[2] + '-' +\n                                                   $param-prefix-domainA-pnfName[3] + '-' +\n                                                   $param-prefix-domainA-pnfName[4] + '-' +\n                                                   $param-prefix-domainA-pnfName[5] + '-' +\n                                                   $otnTopoIdSrc + '-' +\n                                                   $param-prefix-domainA-pnfName[7] + '-' +\n                                                   $param-prefix-domainA-pnfName[8]`\" />",\r
+        "comments": "",\r
+        "x": 1174.9999694824219,\r
+        "y": 546.283203125,\r
+        "z": "347519d8.005516",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "f3c1922.734777",\r
+        "type": "set",\r
+        "name": "unset otnTopoIdSrc",\r
+        "xml": "<set>\n<parameter name='otnTopoIdSrc' value='' />\n",\r
+        "comments": "",\r
+        "x": 1171.9999694824219,\r
+        "y": 399.283203125,\r
+        "z": "347519d8.005516",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "a43c232c.85575",\r
+        "type": "outcomeTrue",\r
+        "name": "true",\r
+        "xml": "<outcome value='true'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1424.9999694824219,\r
+        "y": 523.283203125,\r
+        "z": "347519d8.005516",\r
+        "wires": [\r
+            [\r
+                "f8e0e906.2dd5c"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "f8e0e906.2dd5c",\r
+        "type": "switchNode",\r
+        "name": "switch te-topo-id",\r
+        "xml": "<switch test='`$allNetworksList.network-resource[$netwidx].te-topo-id != $param-prefix-domainA-pnfName[6]`'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1609.9999694824219,\r
+        "y": 522.283203125,\r
+        "z": "347519d8.005516",\r
+        "wires": [\r
+            [\r
+                "8c6726fe.7433a8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "cc1b4364.1c9f18",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic='true'>",\r
+        "atomic": "true",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 866.9999694824219,\r
+        "y": 421.283203125,\r
+        "z": "347519d8.005516",\r
+        "wires": [\r
+            [\r
+                "7c0eef33.a4cac8",\r
+                "ba37203f.b37c18",\r
+                "36a9a792.12dcb8",\r
+                "2a69687a.5611c",\r
+                "3070392b.33f8c6",\r
+                "561ea33d.a2ffb4",\r
+                "304ed1d7.4f9efe"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "59a1e33e.932044",\r
+        "type": "comment",\r
+        "name": "The following section is to find srcTtp OTN layer (its long name)",\r
+        "info": "The following section is to find srcTtp OTN layer (its long name)",\r
+        "comments": "",\r
+        "x": 851.9999694824219,\r
+        "y": 355.283203125,\r
+        "z": "347519d8.005516",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "ba37203f.b37c18",\r
+        "type": "get-resource",\r
+        "name": "get-resource network-resources-list",\r
+        "xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\tresource=\"network-resources\"\n\t    key=\"selflink = 'https://aai.onap:8443/aai/v24/network/network-resources?depth=0'\"\n\t\tlocal-only=\"false\" \n\t\tpfx=\"allNetworksList\" >",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1230.9999694824219,\r
+        "y": 342.283203125,\r
+        "z": "347519d8.005516",\r
+        "wires": [\r
+            [\r
+                "c06f47ba.39269",\r
+                "e8314c16.79663",\r
+                "2e515252.bebdb6"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "c06f47ba.39269",\r
+        "type": "success",\r
+        "name": "success",\r
+        "xml": "<outcome value='success'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1466.9999694824219,\r
+        "y": 325.283203125,\r
+        "z": "347519d8.005516",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "e8314c16.79663",\r
+        "type": "other",\r
+        "name": "other",\r
+        "xml": "<outcome value='Other'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1463.9999694824219,\r
+        "y": 366.283203125,\r
+        "z": "347519d8.005516",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "7c0eef33.a4cac8",\r
+        "type": "set",\r
+        "name": "unset parameters",\r
+        "xml": "<set>\n<parameter name='allNetworksList.' value='' />\n",\r
+        "comments": "",\r
+        "x": 1179.9999694824219,\r
+        "y": 299.283203125,\r
+        "z": "347519d8.005516",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "8c6726fe.7433a8",\r
+        "type": "outcomeTrue",\r
+        "name": "true",\r
+        "xml": "<outcome value='true'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1801.9999694824219,\r
+        "y": 525.283203125,\r
+        "z": "347519d8.005516",\r
+        "wires": [\r
+            [\r
+                "99c0dc88.ef82e8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "99c0dc88.ef82e8",\r
+        "type": "set",\r
+        "name": "set otnTopoIdSrc",\r
+        "xml": "<set>\n<parameter name='otnTopoIdSrc' value='`$allNetworksList.network-resource[$netwidx].te-topo-id`' />\n",\r
+        "comments": "",\r
+        "x": 1973.9999694824219,\r
+        "y": 521.283203125,\r
+        "z": "347519d8.005516",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "d2cbaaf0.8cf72",\r
+        "type": "dgstart",\r
+        "name": "DGSTART",\r
+        "outputs": 1,\r
+        "x": 154.88333129882812,\r
+        "y": 89.88333129882812,\r
+        "z": "347519d8.005516",\r
+        "wires": [\r
+            [\r
+                "a811003b.ca91f8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "a811003b.ca91f8",\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": 439.1690216064453,\r
+        "y": 151.12143993377686,\r
+        "z": "347519d8.005516",\r
+        "wires": [\r
+            [\r
+                "5803201b.e752d"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "5803201b.e752d",\r
+        "type": "method",\r
+        "name": "method cll-vnf-topology-operation-cll-delete-VPNBs",\r
+        "xml": "<method rpc='cll-vnf-topology-operation-cll-delete-VPNBs' mode='sync'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 445.3119354248047,\r
+        "y": 235.88336181640625,\r
+        "z": "347519d8.005516",\r
+        "wires": [\r
+            [\r
+                "cc1b4364.1c9f18"\r
+            ]\r
+        ]\r
+    }\r
+]
\ No newline at end of file