summaryrefslogtreecommitdiffstats
path: root/platform-logic/generic-resource-api/src/main/json/trans_slicing/GENERIC-RESOURCE-API_tsli-vnf-topology-operation-trans-slice-deactivate.json
diff options
context:
space:
mode:
Diffstat (limited to 'platform-logic/generic-resource-api/src/main/json/trans_slicing/GENERIC-RESOURCE-API_tsli-vnf-topology-operation-trans-slice-deactivate.json')
-rw-r--r--platform-logic/generic-resource-api/src/main/json/trans_slicing/GENERIC-RESOURCE-API_tsli-vnf-topology-operation-trans-slice-deactivate.json1000
1 files changed, 1000 insertions, 0 deletions
diff --git a/platform-logic/generic-resource-api/src/main/json/trans_slicing/GENERIC-RESOURCE-API_tsli-vnf-topology-operation-trans-slice-deactivate.json b/platform-logic/generic-resource-api/src/main/json/trans_slicing/GENERIC-RESOURCE-API_tsli-vnf-topology-operation-trans-slice-deactivate.json
new file mode 100644
index 00000000..3584527b
--- /dev/null
+++ b/platform-logic/generic-resource-api/src/main/json/trans_slicing/GENERIC-RESOURCE-API_tsli-vnf-topology-operation-trans-slice-deactivate.json
@@ -0,0 +1,1000 @@
+[
+ {
+ "id": "fed3eb51.781ac8",
+ "type": "dgstart",
+ "name": "DGSTART",
+ "outputs": 1,
+ "x": 131,
+ "y": 81,
+ "z": "fdc94a5e.7c86f8",
+ "wires": [
+ [
+ "d2a4ea36.881b68"
+ ]
+ ]
+ },
+ {
+ "id": "d2a4ea36.881b68",
+ "type": "service-logic",
+ "name": "GENERIC-RESOURCE-API ${project.version}",
+ "module": "GENERIC-RESOURCE-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='GENERIC-RESOURCE-API' version='${project.version}'>",
+ "outputs": 1,
+ "x": 262.2856903076172,
+ "y": 130.23810863494873,
+ "z": "fdc94a5e.7c86f8",
+ "wires": [
+ [
+ "7b1236d6.83c2c"
+ ]
+ ]
+ },
+ {
+ "id": "7b1236d6.83c2c",
+ "type": "method",
+ "name": "method tsli-vnf-topology-operation-trans-slice-deactivate",
+ "xml": "<method rpc='tsli-vnf-topology-operation-trans-slice-deactivate' mode='sync'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 265.4286193847656,
+ "y": 215.00003242492676,
+ "z": "fdc94a5e.7c86f8",
+ "wires": [
+ [
+ "8228a949.234f38"
+ ]
+ ]
+ },
+ {
+ "id": "8228a949.234f38",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "outputs": 1,
+ "x": 415.238037109375,
+ "y": 344.6666564941406,
+ "z": "fdc94a5e.7c86f8",
+ "wires": [
+ [
+ "341b32a3.25428e",
+ "1a6e5da0.98eb02",
+ "e5c8285b.2b695"
+ ]
+ ]
+ },
+ {
+ "id": "341b32a3.25428e",
+ "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",
+ "comments": "",
+ "x": 689.5716552734375,
+ "y": 611.59716796875,
+ "z": "fdc94a5e.7c86f8",
+ "wires": []
+ },
+ {
+ "id": "f743b3f1.72f9f",
+ "type": "comment",
+ "name": "new for TransportSlicing",
+ "info": "",
+ "comments": "",
+ "x": 721,
+ "y": 286,
+ "z": "fdc94a5e.7c86f8",
+ "wires": []
+ },
+ {
+ "id": "1a6e5da0.98eb02",
+ "type": "save",
+ "name": "get service-instance from aai",
+ "xml": "<!--<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" -->\n<!--\tresource=\"service-instance\"-->\n<!--\tkey='service-instance.service-instance-id = $service-data.vnfs.vnf[$tmp.vidx].vnf-data.service-information.service-instance-id-->\n<!-- AND customer.global-customer-id = $service-data.vnfs.vnf[$tmp.vidx].vnf-data.service-information.global-customer-id -->\n<!-- AND service-subscription.service-type = $service-data.vnfs.vnf[$tmp.vidx].vnf-data.service-information.subscription-service-type'-->\n<!--\tlocal-only=\"false\"-->\n<!--\tforce=\"true\" pfx=\"tmp.aai.service-instance\">-->\n\n<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\tresource=\"service-instance\"\n\tkey='service-instance.service-instance-id = $vnf-topology-operation-input.service-information.service-instance-id\n AND customer.global-customer-id = $vnf-topology-operation-input.service-information.global-customer-id \n AND service-subscription.service-type = $vnf-topology-operation-input.service-information.subscription-service-type'\n\tlocal-only=\"false\"\n\tforce=\"true\" pfx=\"tmp.aai.service-instance\">\n\n\n<!--vnf-topology-operation-input.service-information.service-instance-id-->",
+ "comments": "",
+ "outputs": 1,
+ "x": 741,
+ "y": 382,
+ "z": "fdc94a5e.7c86f8",
+ "wires": [
+ [
+ "2976ce78.f07a42",
+ "de3912b8.6d67e",
+ "77b5fc18.2082a4"
+ ]
+ ]
+ },
+ {
+ "id": "2976ce78.f07a42",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 960,
+ "y": 320,
+ "z": "fdc94a5e.7c86f8",
+ "wires": [
+ [
+ "7ee13e19.7c1348"
+ ]
+ ]
+ },
+ {
+ "id": "de3912b8.6d67e",
+ "type": "not-found",
+ "name": "not-found",
+ "xml": "<outcome value='not-found'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 969.490966796875,
+ "y": 362.57403564453125,
+ "z": "fdc94a5e.7c86f8",
+ "wires": [
+ [
+ "4a305009.90c32"
+ ]
+ ]
+ },
+ {
+ "id": "77b5fc18.2082a4",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 958,
+ "y": 409,
+ "z": "fdc94a5e.7c86f8",
+ "wires": [
+ [
+ "cd4775e4.2da96"
+ ]
+ ]
+ },
+ {
+ "id": "4a305009.90c32",
+ "type": "returnFailure",
+ "name": "return failure",
+ "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",
+ "comments": "",
+ "x": 1123.0623779296875,
+ "y": 365.8597717285156,
+ "z": "fdc94a5e.7c86f8",
+ "wires": []
+ },
+ {
+ "id": "cd4775e4.2da96",
+ "type": "returnFailure",
+ "name": "return failure",
+ "xml": "<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value='' />\n",
+ "comments": "",
+ "x": 1127,
+ "y": 410,
+ "z": "fdc94a5e.7c86f8",
+ "wires": []
+ },
+ {
+ "id": "7ee13e19.7c1348",
+ "type": "for",
+ "name": "for each relationship",
+ "xml": "<for index='rel-index' start='0' end='`$tmp.aai.service-instance.relationship-list.relationship_length`' >\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1157,
+ "y": 316,
+ "z": "fdc94a5e.7c86f8",
+ "wires": [
+ [
+ "bc03982b.15ba78"
+ ]
+ ]
+ },
+ {
+ "id": "bc03982b.15ba78",
+ "type": "switchNode",
+ "name": "switch related-to",
+ "xml": "<switch test='`$tmp.aai.service-instance.relationship-list.relationship[$rel-index].related-to`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1380.33349609375,
+ "y": 315.99993896484375,
+ "z": "fdc94a5e.7c86f8",
+ "wires": [
+ [
+ "aca4b74a.cb3118"
+ ]
+ ]
+ },
+ {
+ "id": "aca4b74a.cb3118",
+ "type": "outcome",
+ "name": "connectivity",
+ "xml": "<outcome value='connectivity'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1581.0001335144043,
+ "y": 317.00002098083496,
+ "z": "fdc94a5e.7c86f8",
+ "wires": [
+ [
+ "2544f612.eeddca"
+ ]
+ ]
+ },
+ {
+ "id": "e5c8285b.2b695",
+ "type": "execute",
+ "name": "execute properties",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.prop.PropertiesNode' method='readProperties' >\n <parameter name='fileName' value='%SDNC_CONFIG_DIR%/generic-resource-api-dg.properties' />\n <parameter name='contextPrefix' value='prop' />",
+ "comments": "",
+ "outputs": 1,
+ "x": 707,
+ "y": 330,
+ "z": "fdc94a5e.7c86f8",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "2544f612.eeddca",
+ "type": "save",
+ "name": "get connectivity from aai",
+ "xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\tresource=\"connectivity\"\n\t key=\"connectivity.connectivity-id = $tmp.aai.service-instance.relationship-list.relationship[$rel-index].relationship-data[0].relationship-value\"\n\t\tlocal-only=\"false\" \n\t\tpfx=\"tmp.aai.connectivity\" >\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1819,
+ "y": 319,
+ "z": "fdc94a5e.7c86f8",
+ "wires": [
+ [
+ "75c7fde8.1d4a84",
+ "563ee44e.bd096c",
+ "bc425b5.1b1fba8"
+ ]
+ ]
+ },
+ {
+ "id": "75c7fde8.1d4a84",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2027,
+ "y": 283,
+ "z": "fdc94a5e.7c86f8",
+ "wires": [
+ [
+ "e6a3b8f2.9e7b38"
+ ]
+ ]
+ },
+ {
+ "id": "563ee44e.bd096c",
+ "type": "not-found",
+ "name": "not-found",
+ "xml": "<outcome value='not-found'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2027.490966796875,
+ "y": 328.57403564453125,
+ "z": "fdc94a5e.7c86f8",
+ "wires": [
+ [
+ "ad15182e.154a8"
+ ]
+ ]
+ },
+ {
+ "id": "bc425b5.1b1fba8",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2025,
+ "y": 372,
+ "z": "fdc94a5e.7c86f8",
+ "wires": [
+ [
+ "8719a717.3cd9f8"
+ ]
+ ]
+ },
+ {
+ "id": "ad15182e.154a8",
+ "type": "returnFailure",
+ "name": "return failure",
+ "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",
+ "comments": "",
+ "x": 2190.0623779296875,
+ "y": 328.8597717285156,
+ "z": "fdc94a5e.7c86f8",
+ "wires": []
+ },
+ {
+ "id": "8719a717.3cd9f8",
+ "type": "returnFailure",
+ "name": "return failure",
+ "xml": "<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value='' />\n",
+ "comments": "",
+ "x": 2194,
+ "y": 373,
+ "z": "fdc94a5e.7c86f8",
+ "wires": []
+ },
+ {
+ "id": "c776a79f.7f2db",
+ "type": "save",
+ "name": "get vpn-binding from aai",
+ "xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\tresource=\"vpn-binding\"\n\t key=\"vpn-binding.vpn-id = $tmp.aai.connectivity.relationship-list.relationship[$cridx].relationship-data[0].relationship-value\"\n\t\tlocal-only=\"false\" \n\t\tpfx=\"tmp.aai.vpn-binding\" >\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2500,
+ "y": 372,
+ "z": "fdc94a5e.7c86f8",
+ "wires": [
+ [
+ "b403a898.9fbc18",
+ "5d1a47a8.0dfe7",
+ "f3733135.d8a078"
+ ]
+ ]
+ },
+ {
+ "id": "c765be65.0f488",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "outputs": 1,
+ "x": 2884,
+ "y": 372,
+ "z": "fdc94a5e.7c86f8",
+ "wires": [
+ [
+ "e9922fb9.764098",
+ "eef29d57.4c4228",
+ "952ea8f1.7bda",
+ "14a01812.a7d138"
+ ]
+ ]
+ },
+ {
+ "id": "b403a898.9fbc18",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2711,
+ "y": 374,
+ "z": "fdc94a5e.7c86f8",
+ "wires": [
+ [
+ "c765be65.0f488"
+ ]
+ ]
+ },
+ {
+ "id": "5d1a47a8.0dfe7",
+ "type": "not-found",
+ "name": "not-found",
+ "xml": "<outcome value='not-found'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2711.490966796875,
+ "y": 419.57403564453125,
+ "z": "fdc94a5e.7c86f8",
+ "wires": [
+ [
+ "1295f1fa.69cac6"
+ ]
+ ]
+ },
+ {
+ "id": "f3733135.d8a078",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2709,
+ "y": 463,
+ "z": "fdc94a5e.7c86f8",
+ "wires": [
+ [
+ "6ac7a77b.f5232"
+ ]
+ ]
+ },
+ {
+ "id": "6ac7a77b.f5232",
+ "type": "returnFailure",
+ "name": "return failure",
+ "xml": "<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value='' />\n",
+ "comments": "",
+ "x": 2876,
+ "y": 462,
+ "z": "fdc94a5e.7c86f8",
+ "wires": []
+ },
+ {
+ "id": "1295f1fa.69cac6",
+ "type": "returnFailure",
+ "name": "return failure",
+ "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",
+ "comments": "",
+ "x": 2874.0623779296875,
+ "y": 419.8597717285156,
+ "z": "fdc94a5e.7c86f8",
+ "wires": []
+ },
+ {
+ "id": "e6a3b8f2.9e7b38",
+ "type": "for",
+ "name": "for each relationship",
+ "xml": "<for silentFailure='true' index='cridx' start='0' end='`$tmp.aai.connectivity.relationship-list.relationship_length`' >\n\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2228,
+ "y": 278,
+ "z": "fdc94a5e.7c86f8",
+ "wires": [
+ [
+ "d8c7aa6c.9474d"
+ ]
+ ]
+ },
+ {
+ "id": "d8c7aa6c.9474d",
+ "type": "switchNode",
+ "name": "switch related-to",
+ "xml": "<switch test='`$tmp.aai.connectivity.relationship-list.relationship[$cridx].related-to`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2433,
+ "y": 278,
+ "z": "fdc94a5e.7c86f8",
+ "wires": [
+ [
+ "6afd9b1f.24ad3c"
+ ]
+ ]
+ },
+ {
+ "id": "6afd9b1f.24ad3c",
+ "type": "outcome",
+ "name": "vpn-binding",
+ "xml": "<outcome value='vpn-binding'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2599,
+ "y": 278,
+ "z": "fdc94a5e.7c86f8",
+ "wires": [
+ [
+ "489d615f.74d2b8"
+ ]
+ ]
+ },
+ {
+ "id": "489d615f.74d2b8",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "outputs": 1,
+ "x": 2762,
+ "y": 278,
+ "z": "fdc94a5e.7c86f8",
+ "wires": [
+ [
+ "c776a79f.7f2db"
+ ]
+ ]
+ },
+ {
+ "id": "e9922fb9.764098",
+ "type": "set",
+ "name": "set pnf-name",
+ "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",
+ "comments": "",
+ "x": 3099,
+ "y": 82,
+ "z": "fdc94a5e.7c86f8",
+ "wires": []
+ },
+ {
+ "id": "eef29d57.4c4228",
+ "type": "get-resource",
+ "name": "get-resource src pnf",
+ "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",
+ "comments": "",
+ "outputs": 1,
+ "x": 3125,
+ "y": 199,
+ "z": "fdc94a5e.7c86f8",
+ "wires": [
+ [
+ "e1caf9b0.f16ef",
+ "8ba822ff.3c855",
+ "3e54396e.89bb66"
+ ]
+ ]
+ },
+ {
+ "id": "e1caf9b0.f16ef",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 3320.5001220703125,
+ "y": 151,
+ "z": "fdc94a5e.7c86f8",
+ "wires": [
+ [
+ "12b4a6a1.bdd529"
+ ]
+ ]
+ },
+ {
+ "id": "8ba822ff.3c855",
+ "type": "not-found",
+ "name": "not-found",
+ "xml": "<outcome value='not-found'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 3312.5001220703125,
+ "y": 206,
+ "z": "fdc94a5e.7c86f8",
+ "wires": [
+ [
+ "6aa3fcb.c3a6c84"
+ ]
+ ]
+ },
+ {
+ "id": "12b4a6a1.bdd529",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 3464.8824462890625,
+ "y": 150.65567016601562,
+ "z": "fdc94a5e.7c86f8",
+ "wires": [
+ [
+ "8559d2a.befa2b"
+ ]
+ ]
+ },
+ {
+ "id": "8559d2a.befa2b",
+ "type": "for",
+ "name": "for each relationship",
+ "xml": "<for silentFailure='true' index='spvidx' start='0' end='`$tmp.aai.source-pnf.relationship-list.relationship_length`' >\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 3649,
+ "y": 149,
+ "z": "fdc94a5e.7c86f8",
+ "wires": [
+ [
+ "a2c1ad39.50b17"
+ ]
+ ]
+ },
+ {
+ "id": "a2c1ad39.50b17",
+ "type": "switchNode",
+ "name": "switch related-to",
+ "xml": "<switch test='`$tmp.aai.source-pnf.relationship-list.relationship[$spvidx].related-to`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 3844,
+ "y": 149,
+ "z": "fdc94a5e.7c86f8",
+ "wires": [
+ [
+ "f7ee255a.8640e"
+ ]
+ ]
+ },
+ {
+ "id": "3e54396e.89bb66",
+ "type": "other",
+ "name": "other",
+ "xml": "<outcome value='Other'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 3317.5001220703125,
+ "y": 263,
+ "z": "fdc94a5e.7c86f8",
+ "wires": [
+ [
+ "ff13ab9d.2deb7"
+ ]
+ ]
+ },
+ {
+ "id": "ff13ab9d.2deb7",
+ "type": "returnFailure",
+ "name": "return failure",
+ "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",
+ "comments": "",
+ "x": 3469.5001220703125,
+ "y": 264,
+ "z": "fdc94a5e.7c86f8",
+ "wires": []
+ },
+ {
+ "id": "6aa3fcb.c3a6c84",
+ "type": "returnFailure",
+ "name": "return failure",
+ "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",
+ "comments": "",
+ "x": 3480.5001220703125,
+ "y": 207,
+ "z": "fdc94a5e.7c86f8",
+ "wires": []
+ },
+ {
+ "id": "d85cad49.e7fe3",
+ "type": "execute",
+ "name": "get esr-thirdparty-sdnc",
+ "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' >",
+ "comments": "",
+ "outputs": 1,
+ "x": 4432,
+ "y": 166,
+ "z": "fdc94a5e.7c86f8",
+ "wires": [
+ [
+ "5b32aba.7fc39d4",
+ "43d71291.c727fc",
+ "6b05861c.156668"
+ ]
+ ]
+ },
+ {
+ "id": "98badb93.a08c9",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "outputs": 1,
+ "x": 4226,
+ "y": 153,
+ "z": "fdc94a5e.7c86f8",
+ "wires": [
+ [
+ "48966cee.55dba4",
+ "d85cad49.e7fe3",
+ "ee878ee.4f8847"
+ ]
+ ]
+ },
+ {
+ "id": "48966cee.55dba4",
+ "type": "set",
+ "name": "set esr-thirdparty-sdnc domain id",
+ "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",
+ "comments": "",
+ "x": 4462,
+ "y": 114,
+ "z": "fdc94a5e.7c86f8",
+ "wires": []
+ },
+ {
+ "id": "5b32aba.7fc39d4",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 4642,
+ "y": 157,
+ "z": "fdc94a5e.7c86f8",
+ "wires": [
+ [
+ "20fc8e76.a69222"
+ ]
+ ]
+ },
+ {
+ "id": "43d71291.c727fc",
+ "type": "not-found",
+ "name": "not-found",
+ "xml": "<outcome value='not-found'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 4634,
+ "y": 212,
+ "z": "fdc94a5e.7c86f8",
+ "wires": [
+ [
+ "51e97aab.2d7044"
+ ]
+ ]
+ },
+ {
+ "id": "6b05861c.156668",
+ "type": "other",
+ "name": "other",
+ "xml": "<outcome value='Other'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 4639,
+ "y": 269,
+ "z": "fdc94a5e.7c86f8",
+ "wires": [
+ [
+ "ef0b1a78.fffea8"
+ ]
+ ]
+ },
+ {
+ "id": "ef0b1a78.fffea8",
+ "type": "returnFailure",
+ "name": "return failure",
+ "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",
+ "comments": "",
+ "x": 4791,
+ "y": 270,
+ "z": "fdc94a5e.7c86f8",
+ "wires": []
+ },
+ {
+ "id": "51e97aab.2d7044",
+ "type": "returnFailure",
+ "name": "return failure",
+ "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",
+ "comments": "",
+ "x": 4802,
+ "y": 215,
+ "z": "fdc94a5e.7c86f8",
+ "wires": []
+ },
+ {
+ "id": "20fc8e76.a69222",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 4786.38232421875,
+ "y": 154.65567016601562,
+ "z": "fdc94a5e.7c86f8",
+ "wires": [
+ [
+ "a8dfc05f.e2f018"
+ ]
+ ]
+ },
+ {
+ "id": "f7ee255a.8640e",
+ "type": "outcome",
+ "name": "esr-thirdparty-sdnc",
+ "xml": "<outcome value='esr-thirdparty-sdnc'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 4047,
+ "y": 153,
+ "z": "fdc94a5e.7c86f8",
+ "wires": [
+ [
+ "98badb93.a08c9"
+ ]
+ ]
+ },
+ {
+ "id": "a8dfc05f.e2f018",
+ "type": "set",
+ "name": "set controller domain data",
+ "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",
+ "comments": "",
+ "x": 5001,
+ "y": 151,
+ "z": "fdc94a5e.7c86f8",
+ "wires": []
+ },
+ {
+ "id": "ee878ee.4f8847",
+ "type": "break",
+ "name": "break",
+ "xml": "<break>\n",
+ "comments": "",
+ "x": 4382,
+ "y": 230,
+ "z": "fdc94a5e.7c86f8",
+ "wires": []
+ },
+ {
+ "id": "952ea8f1.7bda",
+ "type": "execute",
+ "name": "execute RestApiCallNode Delete ethernet Service without token",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"restapiUrl\" value=\"`$prop.sdncRestApi.thirdpartySdnc.domain.url + '/restconf/data/ietf-eth-tran-service:etht-svc/eth-svc-instances=' + $tmp.aai.connectivity.connectivity-id`\" />\n<!--<parameter name=\"restapiUrl\" value=\"`$prop.restapi.connection-oof-url`\" />-->\n<!--<parameter name=\"templateFileName\" value=\"`$prop.restapi.templateDir + '/sotn-ethernet-service.json'`\" />-->\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='dirPath' value=\"/opt/onap/sdnc/restconfapi/yang\" />\n<parameter name=\"responsePrefix\" value=\"vpn-result\"/>\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",
+ "comments": "",
+ "outputs": 1,
+ "x": 3255,
+ "y": 594,
+ "z": "fdc94a5e.7c86f8",
+ "wires": [
+ [
+ "d9dc02b.5b9308",
+ "f01b6c55.209f38"
+ ]
+ ]
+ },
+ {
+ "id": "d9dc02b.5b9308",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 3601.5,
+ "y": 587,
+ "z": "fdc94a5e.7c86f8",
+ "wires": [
+ [
+ "174c3f65.a9f0e1"
+ ]
+ ]
+ },
+ {
+ "id": "f01b6c55.209f38",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 3605.5,
+ "y": 627,
+ "z": "fdc94a5e.7c86f8",
+ "wires": [
+ [
+ "de16161.028de68"
+ ]
+ ]
+ },
+ {
+ "id": "de16161.028de68",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 3763,
+ "y": 627,
+ "z": "fdc94a5e.7c86f8",
+ "wires": [
+ [
+ "1a3ebd6b.2a7953",
+ "30c3e280.4d41f6"
+ ]
+ ]
+ },
+ {
+ "id": "174c3f65.a9f0e1",
+ "type": "returnFailure",
+ "name": "return failure",
+ "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 Create vpn rest api\" />\n",
+ "comments": "",
+ "x": 3759.5,
+ "y": 587,
+ "z": "fdc94a5e.7c86f8",
+ "wires": []
+ },
+ {
+ "id": "1a3ebd6b.2a7953",
+ "type": "save",
+ "name": "update vpn-binding A resource (aka. OTN domainA) in AAI",
+ "xml": "<update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='vpn-binding' \n key='vpn-binding.vpn-id = $tmp.aai.vpn-binding.vpn-id' >\n<parameter name='vpn-id' value='`$tmp.aai.vpn-binding.vpn-id`' />\n<parameter name='vpn-name' value='`$tmp.aai.vpn-binding.vpn-id`' />\n\n<parameter name='operational-status' value='Deactivated' />\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 4091.5,
+ "y": 627,
+ "z": "fdc94a5e.7c86f8",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "30c3e280.4d41f6",
+ "type": "save",
+ "name": "update connectivity resource in AAI",
+ "xml": "<update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='connectivity' \n key='connectivity.connectivity-id = $tmp.aai.connectivity.connectivity-id'>\n<parameter name='connectivity-id' value='`$tmp.aai.connectivity.connectivity-id`' />\n<parameter name='operational-status' value='Deactivated' />\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 4018.5,
+ "y": 673,
+ "z": "fdc94a5e.7c86f8",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "14a01812.a7d138",
+ "type": "execute",
+ "name": "execute RestApiCallNode Create OTN tunnel with token",
+ "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.domainA.url + '/restconf/data/ietf-te:te/tunnels/tunnel=' + $tmp.aai.vpn-binding.vpn-id`\" />\n<parameter name=\"restapiUser\" value=\"`$prop.sdncRestApi.thirdpartySdnc.domainA.user`\" />\n<parameter name=\"restapiPassword\" value=\"`$prop.sdncRestApi.thirdpartySdnc.domainA.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`\" />",
+ "comments": "",
+ "outputs": 1,
+ "x": 3228,
+ "y": 466,
+ "z": "fdc94a5e.7c86f8",
+ "wires": [
+ [
+ "8e721e50.020db",
+ "8f6c71d1.f7e258"
+ ]
+ ]
+ },
+ {
+ "id": "8e721e50.020db",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 3560.5,
+ "y": 436,
+ "z": "fdc94a5e.7c86f8",
+ "wires": [
+ [
+ "b94a74e8.509ec"
+ ]
+ ]
+ },
+ {
+ "id": "8f6c71d1.f7e258",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 3565.5,
+ "y": 501,
+ "z": "fdc94a5e.7c86f8",
+ "wires": [
+ [
+ "e36acb2.364b538"
+ ]
+ ]
+ },
+ {
+ "id": "b94a74e8.509ec",
+ "type": "returnFailure",
+ "name": "return failure",
+ "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 Create vpn rest api\" />\n",
+ "comments": "",
+ "x": 3736.5,
+ "y": 436,
+ "z": "fdc94a5e.7c86f8",
+ "wires": []
+ },
+ {
+ "id": "e36acb2.364b538",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 3732,
+ "y": 501,
+ "z": "fdc94a5e.7c86f8",
+ "wires": [
+ []
+ ]
+ }
+] \ No newline at end of file