+ "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": 831,
+ "y": 1126,
+ "z": "b1a89180.b5141",
+ "wires": []
+ },
+ {
+ "id": "68e3068e.972fd8",
+ "type": "switchNode",
+ "name": "switch $service-data.networks.network_length",
+ "xml": "<switch test='`$service-data.networks.network_length`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 895,
+ "y": 980,
+ "z": "b1a89180.b5141",
+ "wires": [
+ [
+ "cabb40c6.f63f28",
+ "d81def66.527288"
+ ]
+ ]
+ },
+ {
+ "id": "bb92afab.51f5a",
+ "type": "comment",
+ "name": "Remove network from service data",
+ "info": "",
+ "comments": "",
+ "x": 879.2342529296875,
+ "y": 936.991943359375,
+ "z": "b1a89180.b5141",
+ "wires": []
+ },
+ {
+ "id": "9977e826.19c58",
+ "type": "comment",
+ "name": "If only one remove all networks",
+ "info": "",
+ "comments": "",
+ "x": 1269.4179611206055,
+ "y": 941.2592601776123,
+ "z": "b1a89180.b5141",
+ "wires": []
+ },
+ {
+ "id": "cabb40c6.f63f28",
+ "type": "outcome",
+ "name": "1",
+ "xml": "<outcome value='1'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1198.0475997924805,
+ "y": 976.6664867401123,
+ "z": "b1a89180.b5141",
+ "wires": [
+ [
+ "fbcf7a1e.85d56"
+ ]
+ ]
+ },
+ {
+ "id": "fbcf7a1e.85d56",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "outputs": 1,
+ "x": 1377.3809127807617,
+ "y": 977.370283126831,
+ "z": "b1a89180.b5141",
+ "wires": [
+ [
+ "2a5e806c.406808",
+ "4e176ca1.1f7854"
+ ]
+ ]
+ },
+ {
+ "id": "d81def66.527288",
+ "type": "other",
+ "name": "other",
+ "xml": "<outcome value='Other'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1164.4285507202148,
+ "y": 1128.9998044967651,
+ "z": "b1a89180.b5141",
+ "wires": [
+ [
+ "eec0d25e.96de08"
+ ]
+ ]
+ },
+ {
+ "id": "eec0d25e.96de08",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "outputs": 1,
+ "x": 1386.4284286499023,
+ "y": 1128.9998044967651,
+ "z": "b1a89180.b5141",
+ "wires": [
+ [
+ "30d886fb.de580a",
+ "4f8e70aa.dbe688",
+ "1413b75.f99b949",
+ "ec576987.8b044"
+ ]
+ ]
+ },
+ {
+ "id": "2a5e806c.406808",
+ "type": "set",
+ "name": "Remove networks",
+ "xml": "<set>\n\t<parameter name=\"service-data.networks.\" value=\"\"/>\n\n",
+ "comments": "",
+ "x": 1630.66650390625,
+ "y": 980.3333129882812,
+ "z": "b1a89180.b5141",
+ "wires": []
+ },
+ {
+ "id": "4e176ca1.1f7854",
+ "type": "set",
+ "name": "set new network length",
+ "xml": "<set>\n\t<parameter name=\"service-data.networks.network_length\" value=\"0\"/>\n\n\t\n",
+ "comments": "",
+ "x": 1646.9998779296875,
+ "y": 1015.0369710922241,
+ "z": "b1a89180.b5141",
+ "wires": []
+ },
+ {
+ "id": "ec576987.8b044",
+ "type": "set",
+ "name": "Set new network length",
+ "xml": "<set>\n\t<parameter name=\"tmp.new_length\" value=\"`$service-data.networks.network_length - 1`\"/>\n\t\n\t\n",
+ "comments": "",
+ "x": 1653.1322021484375,
+ "y": 1066.2591552734375,
+ "z": "b1a89180.b5141",
+ "wires": []
+ },
+ {
+ "id": "30d886fb.de580a",
+ "type": "for",
+ "name": "for snidx..service-data.networks.network[]",
+ "xml": "<for silentFailure='true' index='snidx' start='`$tmp.nidx + 1`' end='`$service-data.networks.network_length`' >\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1701.83740234375,
+ "y": 1118.5631103515625,
+ "z": "b1a89180.b5141",
+ "wires": [
+ [
+ "161f519b.8ac7e6"
+ ]
+ ]
+ },
+ {
+ "id": "1413b75.f99b949",
+ "type": "set",
+ "name": "set new network length",
+ "xml": "<set>\n\t<parameter name=\"service-data.networks.network_length\" value=\"`$service-data.networks.network_length - 1`\"/>\n\n\t\n",
+ "comments": "",
+ "x": 1660.296272277832,
+ "y": 1162.333369255066,
+ "z": "b1a89180.b5141",
+ "wires": []
+ },
+ {
+ "id": "4f8e70aa.dbe688",
+ "type": "set",
+ "name": "Remove networks",
+ "xml": "<set>\n\t<parameter name=\"service-data.networks.network[$tmp.new_length].\" value=\"\"/>\n\n",
+ "comments": "",
+ "x": 1640.1427383422852,
+ "y": 1200.3013143539429,
+ "z": "b1a89180.b5141",
+ "wires": []
+ },
+ {
+ "id": "161f519b.8ac7e6",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 1990.4284133911133,
+ "y": 1127.999789237976,
+ "z": "b1a89180.b5141",