+ "x": 824.03125,
+ "y": 544.9202575683594,
+ "z": "b1a89180.b5141",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "298989a7.60397e",
+ "type": "execute",
+ "name": "execute REST DELETE Site",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"restapiUrl\" value=\"`$prop.sdncRestApi.thirdpartySdnc.url + '/restconf/data/huawei-ac-net-l3vpn-svc:l3vpn-svc-cfg/sites/site=' + $prop.l3vpn.site1_name`\" />\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=\"delete\"/>\n<parameter name=\"responsePrefix\" value=\"site-result\"/>\n<parameter name=\"trustStoreFileName\" value=\"/opt/onap/sdnc/data/stores/truststore.openecomp.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": 1604,
+ "y": 668,
+ "z": "b1a89180.b5141",
+ "wires": [
+ [
+ "a48f9d80.400a6",
+ "22e4152.0989b6a"
+ ]
+ ]
+ },
+ {
+ "id": "e2203ccc.e2252",
+ "type": "execute",
+ "name": "execute REST DELETE VRF1",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"restapiUrl\" value=\"`$prop.sdncRestApi.thirdpartySdnc.url + '/restconf/data/huawei-ac-net-l3vpn-svc:l3vpn-svc-cfg/huawei-ac-net-l3vpn-svc-vfi:vrf-attributes/vrf-attribute=' + $prop.l3vpn.vrf1-id`\" />\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=\"delete\"/>\n<parameter name=\"responsePrefix\" value=\"vrf1-result\"/>\n<parameter name=\"trustStoreFileName\" value=\"/opt/onap/sdnc/data/stores/truststore.openecomp.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": 1604,
+ "y": 760,
+ "z": "b1a89180.b5141",
+ "wires": [
+ [
+ "a48f9d80.400a6",
+ "ab599bb0.a4be38"
+ ]
+ ]
+ },
+ {
+ "id": "d01694ec.b6d578",
+ "type": "execute",
+ "name": "execute REST DELETE VRF2",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"restapiUrl\" value=\"`$prop.sdncRestApi.thirdpartySdnc.url + '/restconf/data/huawei-ac-net-l3vpn-svc:l3vpn-svc-cfg/huawei-ac-net-l3vpn-svc-vfi:vrf-attributes/vrf-attribute=' + $prop.l3vpn.vrf2-id`\" />\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=\"delete\"/>\n<parameter name=\"responsePrefix\" value=\"vrf2-result\"/>\n<parameter name=\"trustStoreFileName\" value=\"/opt/onap/sdnc/data/stores/truststore.openecomp.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": 1611,
+ "y": 846,
+ "z": "b1a89180.b5141",
+ "wires": [
+ [
+ "a48f9d80.400a6",
+ "a7e72531.ac08f"
+ ]
+ ]
+ },
+ {
+ "id": "c960eb18.e0632",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 2056,
+ "y": 734,
+ "z": "b1a89180.b5141",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "22e4152.0989b6a",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1877,
+ "y": 673,
+ "z": "b1a89180.b5141",
+ "wires": [
+ [
+ "c62b7174.0cde6"
+ ]
+ ]
+ },
+ {
+ "id": "c62b7174.0cde6",
+ "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 Delete Site rest api\" />\n",
+ "comments": "",
+ "x": 2057.75,
+ "y": 671.7500610351562,
+ "z": "b1a89180.b5141",
+ "wires": []
+ },
+ {
+ "id": "ab599bb0.a4be38",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1896,
+ "y": 805,
+ "z": "b1a89180.b5141",
+ "wires": [
+ [
+ "fd500d75.5f667"
+ ]
+ ]
+ },
+ {
+ "id": "fd500d75.5f667",
+ "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 Delete VRF1 rest api\" />\n",
+ "comments": "",
+ "x": 2076.75,
+ "y": 803.7500610351562,
+ "z": "b1a89180.b5141",
+ "wires": []
+ },
+ {
+ "id": "a7e72531.ac08f",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1894,
+ "y": 879,
+ "z": "b1a89180.b5141",
+ "wires": [
+ [
+ "6fdfb503.fe47a4"
+ ]
+ ]
+ },
+ {
+ "id": "6fdfb503.fe47a4",
+ "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 Delete VRF2 rest api\" />\n",
+ "comments": "",
+ "x": 2074.75,
+ "y": 877.7500610351562,
+ "z": "b1a89180.b5141",
+ "wires": []
+ },
+ {
+ "id": "e1b9eee0.2059b8",
+ "type": "switchNode",
+ "name": "switch site1_name",
+ "xml": "<switch test=\"`$service-data.networks.network[$tmp.nidx].network-data.network-request-input.network-input-parameters.param[$idx].name == 'site1_name'`\">\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1472,
+ "y": 326,
+ "z": "b1a89180.b5141",
+ "wires": [
+ [
+ "dfa9e32d.91d8d8"
+ ]
+ ]
+ },
+ {
+ "id": "f7a24587.ec9238",
+ "type": "switchNode",
+ "name": "switch vrf1_id",
+ "xml": "<switch test=\"`$service-data.networks.network[$tmp.nidx].network-data.network-request-input.network-input-parameters.param[$idx].name == 'vrf1_id'`\">\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1477,
+ "y": 380.5999755859375,
+ "z": "b1a89180.b5141",
+ "wires": [
+ [
+ "c15e7dfb.74d14"
+ ]
+ ]
+ },
+ {
+ "id": "a35f5ef6.a6cd28",
+ "type": "switchNode",
+ "name": "switch vrf2_id",
+ "xml": "<switch test=\"`$service-data.networks.network[$tmp.nidx].network-data.network-request-input.network-input-parameters.param[$idx].name == 'vrf2_id'`\">\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1479,
+ "y": 426.8890075683594,
+ "z": "b1a89180.b5141",
+ "wires": [
+ [
+ "ca400331.dc161"
+ ]
+ ]
+ },
+ {
+ "id": "dfa9e32d.91d8d8",
+ "type": "outcomeTrue",
+ "name": "true",
+ "xml": "<outcome value='true'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1659,
+ "y": 326,
+ "z": "b1a89180.b5141",
+ "wires": [
+ [
+ "9e12816.9f59e"
+ ]
+ ]
+ },
+ {
+ "id": "c15e7dfb.74d14",
+ "type": "outcomeTrue",
+ "name": "true",
+ "xml": "<outcome value='true'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1660.9999389648438,
+ "y": 385.5999755859375,
+ "z": "b1a89180.b5141",
+ "wires": [
+ [
+ "b6297fef.ebefb"
+ ]
+ ]
+ },
+ {
+ "id": "ca400331.dc161",
+ "type": "outcomeTrue",
+ "name": "true",
+ "xml": "<outcome value='true'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1665,
+ "y": 435.8890075683594,
+ "z": "b1a89180.b5141",
+ "wires": [
+ [
+ "b6b8b28d.368718"
+ ]
+ ]
+ },
+ {
+ "id": "9e12816.9f59e",
+ "type": "set",
+ "name": "set site1_name",
+ "xml": "<set>\n<parameter name='prop.l3vpn.site1_name' value='`$service-data.networks.network[$tmp.nidx].network-data.network-request-input.network-input-parameters.param[$idx].value`' />\n",
+ "comments": "",
+ "x": 1827,
+ "y": 326.6000061035156,
+ "z": "b1a89180.b5141",
+ "wires": []
+ },
+ {
+ "id": "b6297fef.ebefb",
+ "type": "set",
+ "name": "set vrf1_id",
+ "xml": "<set>\n<parameter name='prop.l3vpn.vrf1-id' value='`$service-data.networks.network[$tmp.nidx].network-data.network-request-input.network-input-parameters.param[$idx].value`' />\n",
+ "comments": "",
+ "x": 1829.9999389648438,
+ "y": 383.5999755859375,
+ "z": "b1a89180.b5141",
+ "wires": []
+ },
+ {
+ "id": "b6b8b28d.368718",
+ "type": "set",
+ "name": "set vrf2_id",
+ "xml": "<set>\n<parameter name='prop.l3vpn.vrf2-id' value='`$service-data.networks.network[$tmp.nidx].network-data.network-request-input.network-input-parameters.param[$idx].value`' />\n",
+ "comments": "",
+ "x": 1848,
+ "y": 439.8890075683594,
+ "z": "b1a89180.b5141",
+ "wires": []
+ },
+ {
+ "id": "4cb232f8.ebf31c",
+ "type": "outcome",
+ "name": "0",
+ "xml": "<outcome value='0'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1263,
+ "y": 20,
+ "z": "b1a89180.b5141",
+ "wires": [
+ [
+ "55192e25.8885f"
+ ]
+ ]
+ },
+ {
+ "id": "c820d47.424eda8",
+ "type": "set",
+ "name": "set output to api handler",
+ "xml": "<set>\n<parameter name='networkId' value='`$network-topology-operation-input.network-information.network-id`' />\n<parameter name='service-object-path' value=\"`'restconf/config/GENERIC-RESOURCE-API:services/service/'\n + $network-topology-operation-input.service-information.service-instance-id\n + '/service-data/service-topology/'` \" />\n \n",
+ "comments": "",
+ "x": 832,
+ "y": 875,
+ "z": "b1a89180.b5141",
+ "wires": []
+ },
+ {
+ "id": "d94a9bb9.76a0c8",
+ "type": "execute",
+ "name": "execute RestApiCallNode - DELETE network-data",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n <parameter name='restapiUrl' value='`$prop.controller.url + $tmp.nw-url`' />\n <parameter name='restapiUser' value='`$prop.controller.user`' />\n <parameter name='restapiPassword' value='`$prop.controller.pwd`' />\n <parameter name='format' value='json' />\n <parameter name='httpMethod' value='DELETE' />\n <parameter name=\"responsePrefix\" value=\"mdsal-nw\" />",
+ "comments": "",
+ "outputs": 1,
+ "x": 908,
+ "y": 802,
+ "z": "b1a89180.b5141",
+ "wires": [
+ [
+ "e93feae8.46a908",
+ "e4b9f022.5b775",
+ "6dfa3475.c889ec"
+ ]
+ ]
+ },
+ {
+ "id": "e93feae8.46a908",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1179.5873565673828,
+ "y": 789.289436340332,
+ "z": "b1a89180.b5141",
+ "wires": [
+ [
+ "98b108c8.15ac98"
+ ]
+ ]
+ },
+ {
+ "id": "e4b9f022.5b775",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1175.8373184204102,
+ "y": 818.9323314651847,
+ "z": "b1a89180.b5141",
+ "wires": [
+ [
+ "de27e6ee.26b61"
+ ]
+ ]
+ },
+ {
+ "id": "6dfa3475.c889ec",
+ "type": "not-found",
+ "name": "not-found",
+ "xml": "<outcome value='not-found'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1184.8372688293457,
+ "y": 850.4323057159781,
+ "z": "b1a89180.b5141",
+ "wires": [
+ [
+ "de27e6ee.26b61"
+ ]
+ ]
+ },
+ {
+ "id": "98b108c8.15ac98",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 1321.2433242797852,
+ "y": 785.4816055297852,
+ "z": "b1a89180.b5141",