Update underlay DG for delete flow
[sdnc/oam.git] / platform-logic / generic-resource-api / src / main / json / GENERIC-RESOURCE-API_network-topology-operation-delete.json
index 38d9936..cdc84ac 100644 (file)
@@ -1,20 +1,20 @@
 [
   {
-    "id": "5b1da5a1.42a48c",
+    "id": "ba06c89a.024e98",
     "type": "dgstart",
     "name": "DGSTART",
     "outputs": 1,
-    "x": 84,
-    "y": 118.11099243164062,
-    "z": "cb78d918.7fc128",
+    "x": 113.03125,
+    "y": 95.03125,
+    "z": "b1a89180.b5141",
     "wires": [
       [
-        "93750cf9.1f2d78"
+        "35e8925f.3178be"
       ]
     ]
   },
   {
-    "id": "93750cf9.1f2d78",
+    "id": "35e8925f.3178be",
     "type": "service-logic",
     "name": "GENERIC-RESOURCE-API ${project.version}",
     "module": "GENERIC-RESOURCE-API",
     "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": 296.00000381469727,
-    "y": 190.11100959777832,
-    "z": "cb78d918.7fc128",
+    "x": 325.03125381469727,
+    "y": 167.0312671661377,
+    "z": "b1a89180.b5141",
     "wires": [
       [
-        "86c0b848.b39ba"
+        "f972abf0.8e2ed8"
       ]
     ]
   },
   {
-    "id": "86c0b848.b39ba",
+    "id": "f972abf0.8e2ed8",
     "type": "method",
     "name": "method network-topology-operation-delete",
     "xml": "<method rpc='network-topology-operation-delete' mode='sync'>\n",
     "comments": "",
     "outputs": 1,
-    "x": 284.0001220703125,
-    "y": 278.1109924316406,
-    "z": "cb78d918.7fc128",
+    "x": 313.0313720703125,
+    "y": 255.03125,
+    "z": "b1a89180.b5141",
     "wires": [
       [
-        "77e3cc35.7d7cd4"
+        "61264142.433c9"
       ]
     ]
   },
   {
-    "id": "77e3cc35.7d7cd4",
+    "id": "61264142.433c9",
     "type": "block",
     "name": "block : atomic",
     "xml": "<block atomic=\"true\">\n",
     "atomic": "false",
     "comments": "",
     "outputs": 1,
-    "x": 560.0000305175781,
-    "y": 286.11100578308105,
-    "z": "cb78d918.7fc128",
+    "x": 589.0312805175781,
+    "y": 263.03126335144043,
+    "z": "b1a89180.b5141",
     "wires": [
       [
-        "be2e1456.227648",
-        "a1897ab9.0fe448",
-        "b9226511.aff8f8",
-        "bac94eb6.f12e88",
-        "d9cb698f.15b1f",
-        "4f7bc968.61f5a",
-        "af92894.71fa378",
-        "4a75daf.1521ba4",
-        "70ae31cf.a526f"
+        "6c17c5f9.a1c91c",
+        "17a845f7.81ad5a",
+        "1c470b8.4988df5",
+        "ae6fca7d.b3be38",
+        "30cf8a2a.4aa6d6",
+        "3287501.60ecab",
+        "19bbbbde.0c4ee4",
+        "99fa60a9.97d56",
+        "a9f02234.2759e8",
+        "d94a9bb9.76a0c8",
+        "c820d47.424eda8",
+        "6c64d01.a0fff3"
       ]
     ]
   },
   {
-    "id": "be2e1456.227648",
+    "id": "6c17c5f9.a1c91c",
     "type": "call",
     "name": "call GENERIC-RESOURCE-API:validate-network-input-parameters",
     "xml": "<call module='GENERIC-RESOURCE-API' rpc='validate-network-input-parameters' mode='sync' >\n",
     "comments": "",
     "outputs": 1,
-    "x": 881,
-    "y": 69.11099243164062,
-    "z": "cb78d918.7fc128",
+    "x": 910.03125,
+    "y": 46.03125,
+    "z": "b1a89180.b5141",
     "wires": [
       []
     ]
   },
   {
-    "id": "a1897ab9.0fe448",
+    "id": "17a845f7.81ad5a",
     "type": "get-resource",
     "name": "get-resource 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.thirdparty-sdnc-id AND \n\t\t     depth = '1'\"\n        pfx='tmp.aai.esr-thirdparty-sdnc' local-only='false' >\n\n",
     "comments": "",
     "outputs": 1,
-    "x": 825,
-    "y": 514.1109619140625,
-    "z": "cb78d918.7fc128",
+    "x": 854.03125,
+    "y": 491.0312194824219,
+    "z": "b1a89180.b5141",
     "wires": [
       [
-        "75e7b934.cb3dd8",
-        "796a59b1.8d0548",
-        "5c8d6866.b859a"
+        "f27f6e92.d1699",
+        "2cd26321.b8d7fc",
+        "207daa4b.421516"
       ]
     ]
   },
   {
-    "id": "75e7b934.cb3dd8",
+    "id": "f27f6e92.d1699",
     "type": "success",
     "name": "success",
     "xml": "<outcome value='success'>\n",
     "comments": "",
     "outputs": 1,
-    "x": 1063,
-    "y": 470.1109924316406,
-    "z": "cb78d918.7fc128",
+    "x": 1092.03125,
+    "y": 447.03125,
+    "z": "b1a89180.b5141",
     "wires": [
       [
-        "cf00d60e.b98ae8"
+        "4f5e00fc.7741e"
       ]
     ]
   },
   {
-    "id": "796a59b1.8d0548",
+    "id": "2cd26321.b8d7fc",
     "type": "not-found",
     "name": "not-found",
     "xml": "<outcome value='not-found'>\n",
     "comments": "",
     "outputs": 1,
-    "x": 1067.490966796875,
-    "y": 511.68505859375,
-    "z": "cb78d918.7fc128",
+    "x": 1096.522216796875,
+    "y": 488.6053161621094,
+    "z": "b1a89180.b5141",
     "wires": [
       [
-        "b91067cd.af8e68"
+        "2d398a89.807716"
       ]
     ]
   },
   {
-    "id": "5c8d6866.b859a",
+    "id": "207daa4b.421516",
     "type": "other",
     "name": "other",
     "xml": "<outcome value='Other'>\n",
     "comments": "",
     "outputs": 1,
-    "x": 1060.823974609375,
-    "y": 563.018310546875,
-    "z": "cb78d918.7fc128",
+    "x": 1089.855224609375,
+    "y": 539.9385681152344,
+    "z": "b1a89180.b5141",
     "wires": [
       [
-        "977f0d12.35997"
+        "8e9c4cf9.162de"
       ]
     ]
   },
   {
-    "id": "b91067cd.af8e68",
+    "id": "2d398a89.807716",
     "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=\"Network model is_bound_to_vpn=true but no vpn_binding is present\" />\n\n",
     "comments": "",
-    "x": 1243.0623779296875,
-    "y": 509.97076416015625,
-    "z": "cb78d918.7fc128",
+    "x": 1272.0936279296875,
+    "y": 486.8910217285156,
+    "z": "b1a89180.b5141",
     "wires": []
   },
   {
-    "id": "977f0d12.35997",
+    "id": "8e9c4cf9.162de",
     "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 retrieving vpn binding\" />\n\n",
     "comments": "",
-    "x": 1221.5965576171875,
-    "y": 561.45751953125,
-    "z": "cb78d918.7fc128",
+    "x": 1250.6278076171875,
+    "y": 538.3777770996094,
+    "z": "b1a89180.b5141",
     "wires": []
   },
   {
-    "id": "b9226511.aff8f8",
+    "id": "1c470b8.4988df5",
     "type": "for",
     "name": "for each network-input-parameters",
     "xml": "<for index='idx' start='0' end='`$service-data.networks.network[$tmp.nidx].network-data.network-request-input.network-input-parameters.param_length`' >\n",
     "comments": "",
     "outputs": 1,
-    "x": 843,
-    "y": 247.11099243164062,
-    "z": "cb78d918.7fc128",
+    "x": 872.03125,
+    "y": 224.03125,
+    "z": "b1a89180.b5141",
     "wires": [
       [
-        "1203f51d.6f9be3"
+        "c4d07fe0.ade9b"
       ]
     ]
   },
   {
-    "id": "1203f51d.6f9be3",
+    "id": "c4d07fe0.ade9b",
     "type": "block",
     "name": "block",
     "xml": "<block>\n",
     "atomic": "false",
     "comments": "",
     "outputs": 1,
-    "x": 1124.8333740234375,
-    "y": 225.4443359375,
-    "z": "cb78d918.7fc128",
+    "x": 1153.8646240234375,
+    "y": 202.36459350585938,
+    "z": "b1a89180.b5141",
     "wires": [
       [
-        "f23590e3.3d3e",
-        "9c473946.08b4",
-        "634e4197.82f778"
+        "c0182537.1ffaf8",
+        "ce9d1ad8.d1f0c8",
+        "ae7fca3e.07e458",
+        "e1b9eee0.2059b8",
+        "f7a24587.ec9238",
+        "a35f5ef6.a6cd28"
       ]
     ]
   },
   {
-    "id": "f23590e3.3d3e",
+    "id": "c0182537.1ffaf8",
     "type": "switchNode",
     "name": "switch name",
     "xml": "<switch test=\"`$service-data.networks.network[$tmp.nidx].network-data.network-request-input.network-input-parameters.param[$idx].name == 'name'`\">\n",
     "comments": "",
     "outputs": 1,
-    "x": 1333,
-    "y": 186.11099243164062,
-    "z": "cb78d918.7fc128",
+    "x": 1362.03125,
+    "y": 163.03125,
+    "z": "b1a89180.b5141",
     "wires": [
       [
-        "722e293e.27d6a8"
+        "c674745c.2d98c8"
       ]
     ]
   },
   {
-    "id": "722e293e.27d6a8",
+    "id": "c674745c.2d98c8",
     "type": "outcomeTrue",
     "name": "true",
     "xml": "<outcome value='true'>\n",
     "comments": "",
     "outputs": 1,
-    "x": 1520,
-    "y": 186.11099243164062,
-    "z": "cb78d918.7fc128",
+    "x": 1549.03125,
+    "y": 163.03125,
+    "z": "b1a89180.b5141",
     "wires": [
       [
-        "ed3016dc.763f5"
+        "ff72bcee.d766c"
       ]
     ]
   },
   {
-    "id": "ed3016dc.763f5",
+    "id": "ff72bcee.d766c",
     "type": "set",
     "name": "set name",
     "xml": "<set>\n<parameter name='prop.l3vpn.name' value='`$service-data.networks.network[$tmp.nidx].network-data.network-request-input.network-input-parameters.param[$idx].value`' />\n",
     "comments": "",
-    "x": 1688,
-    "y": 186.71099853515625,
-    "z": "cb78d918.7fc128",
+    "x": 1717.03125,
+    "y": 163.63125610351562,
+    "z": "b1a89180.b5141",
     "wires": []
   },
   {
-    "id": "9c473946.08b4",
+    "id": "ce9d1ad8.d1f0c8",
     "type": "switchNode",
     "name": "switch service-type",
-    "xml": "<switch test=\"`$service-data.networks.network[$tmp.nidx].network-data.network-request-input.network-input-parameters.param[$idx].name == 'service-type'`\">\n",
+    "xml": "<switch test=\"`$service-data.networks.network[$tmp.nidx].network-data.network-request-input.network-input-parameters.param[$idx].name == 'serviceType'`\">\n",
     "comments": "",
     "outputs": 1,
-    "x": 1338,
-    "y": 240.71096801757812,
-    "z": "cb78d918.7fc128",
+    "x": 1367.03125,
+    "y": 217.6312255859375,
+    "z": "b1a89180.b5141",
     "wires": [
       [
-        "406e37de.0fb498"
+        "7439fd72.4e49b4"
       ]
     ]
   },
   {
-    "id": "406e37de.0fb498",
+    "id": "7439fd72.4e49b4",
     "type": "outcomeTrue",
     "name": "true",
     "xml": "<outcome value='true'>\n",
     "comments": "",
     "outputs": 1,
-    "x": 1521.9999389648438,
-    "y": 245.71096801757812,
-    "z": "cb78d918.7fc128",
+    "x": 1551.0311889648438,
+    "y": 222.6312255859375,
+    "z": "b1a89180.b5141",
     "wires": [
       [
-        "3e9c73.d1f31b8e"
+        "4c0474c2.96c4ac"
       ]
     ]
   },
   {
-    "id": "3e9c73.d1f31b8e",
+    "id": "4c0474c2.96c4ac",
     "type": "set",
     "name": "set service-type",
     "xml": "<set>\n<parameter name='prop.l3vpn.service-type' value='`$service-data.networks.network[$tmp.nidx].network-data.network-request-input.network-input-parameters.param[$idx].value`' />\n",
     "comments": "",
-    "x": 1690.9999389648438,
-    "y": 243.71096801757812,
-    "z": "cb78d918.7fc128",
+    "x": 1720.0311889648438,
+    "y": 220.6312255859375,
+    "z": "b1a89180.b5141",
     "wires": []
   },
   {
-    "id": "cf00d60e.b98ae8",
+    "id": "4f5e00fc.7741e",
     "type": "set",
     "name": "set controller data",
-    "xml": "<set>\n<parameter name='prop.sdncRestApi.thirdpartySdnc.url' value=\"`$tmp.aai.esr-thirdparty-sdnc.esr-system-info-list.esr-system-info[0].serviceUrl`\" />\n<parameter name='prop.sdncRestApi.templateDir' value='/opt/onap/sdnc/data' />\n<parameter name='prop.sdncRestApi.thirdpartySdnc.user' value=\"`$tmp.aai.esr-thirdparty-sdnc.esr-system-info-list.esr-system-info[0].user-name`\" />\n<parameter name='prop.sdncRestApi.thirdpartySdnc.password' value=\"`$tmp.aai.esr-thirdparty-sdnc.esr-system-info-list.esr-system-info[0].password`\" />\n",
+    "xml": "<set>\n<parameter name='prop.sdncRestApi.thirdpartySdnc.url' value=\"`$tmp.aai.esr-thirdparty-sdnc.esr-system-info-list.esr-system-info[0].serviceUrl`\" />\n<parameter name='prop.sdncRestApi.thirdpartySdnc.user' value=\"`$tmp.aai.esr-thirdparty-sdnc.esr-system-info-list.esr-system-info[0].user-name`\" />\n<parameter name='prop.sdncRestApi.thirdpartySdnc.password' value=\"`$tmp.aai.esr-thirdparty-sdnc.esr-system-info-list.esr-system-info[0].password`\" />\n",
     "comments": "",
-    "x": 1249,
-    "y": 467.1109619140625,
-    "z": "cb78d918.7fc128",
+    "x": 1278.03125,
+    "y": 444.0312194824219,
+    "z": "b1a89180.b5141",
     "wires": []
   },
   {
-    "id": "91ceb00c.aa0fd",
+    "id": "d58d3bad.af4188",
     "type": "execute",
     "name": "execute REST DELETE VPN",
-    "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"templateFileName\" value=\"`$prop.sdncRestApi.tempDir +'/l3smvpntemplate.json'`\" />\n<parameter name=\"restapiUrl\" value=\"`$prop.sdncRestApi.thirdpartySdnc.url + '/restconf/data/huawei-ac-net-l3vpn-svc:l3vpn-svc-cfg/vpn-services/vpnservice=' + $prop.l3vpn.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=\"restapi-result\"/>",
+    "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/vpn-services/vpnservice=' + $prop.l3vpn.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=\"vpn-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": 1314,
-    "y": 600.1109924316406,
-    "z": "cb78d918.7fc128",
+    "x": 1604.03125,
+    "y": 925.03125,
+    "z": "b1a89180.b5141",
     "wires": [
-      []
+      [
+        "a48f9d80.400a6",
+        "17b55d13.d0f583"
+      ]
     ]
   },
   {
-    "id": "bac94eb6.f12e88",
+    "id": "6c64d01.a0fff3",
     "type": "switchNode",
     "name": "switch service-type",
     "xml": "<switch test=\"`$prop.l3vpn.service-type`\">\n",
     "comments": "",
     "outputs": 1,
-    "x": 784,
-    "y": 618.1109924316406,
-    "z": "cb78d918.7fc128",
+    "x": 813.03125,
+    "y": 595.03125,
+    "z": "b1a89180.b5141",
     "wires": [
       [
-        "31607169.f993a6"
+        "f5f24c7e.c89f9"
       ]
     ]
   },
   {
-    "id": "31607169.f993a6",
+    "id": "f5f24c7e.c89f9",
     "type": "outcomeTrue",
     "name": "l3vpn-ipwan",
     "xml": "<outcome value='l3vpn-ipwan'>\n",
     "comments": "",
     "outputs": 1,
-    "x": 1034,
-    "y": 602.1109924316406,
-    "z": "cb78d918.7fc128",
+    "x": 1070.03125,
+    "y": 596.0312271118164,
+    "z": "b1a89180.b5141",
     "wires": [
       [
-        "91ceb00c.aa0fd"
+        "730f31fc.13307"
       ]
     ]
   },
   {
-    "id": "d9cb698f.15b1f",
+    "id": "ae6fca7d.b3be38",
     "type": "switchNode",
     "name": "switch service-data.networks.network_length",
     "xml": "<switch test='`$service-data.networks.network_length`'>\n",
     "comments": "",
     "outputs": 1,
-    "x": 823,
-    "y": 142.11099243164062,
-    "z": "cb78d918.7fc128",
+    "x": 852.03125,
+    "y": 119.03125,
+    "z": "b1a89180.b5141",
     "wires": [
       [
-        "652472f9.d0128c",
-        "2b9737f2.ff2e58"
+        "520c693e.a9d358",
+        "655f0893.61f278",
+        "4cb232f8.ebf31c"
       ]
     ]
   },
   {
-    "id": "652472f9.d0128c",
+    "id": "520c693e.a9d358",
     "type": "other",
-    "name": "outcome Null",
+    "name": "Null",
     "xml": "<outcome value=''>\n",
     "comments": "",
     "outputs": 1,
-    "x": 1268,
-    "y": 68.11105346679688,
-    "z": "cb78d918.7fc128",
+    "x": 1269.03125,
+    "y": 56.03131103515625,
+    "z": "b1a89180.b5141",
     "wires": [
       [
-        "56dffac.74ce404"
+        "55192e25.8885f"
       ]
     ]
   },
   {
-    "id": "56dffac.74ce404",
+    "id": "55192e25.8885f",
     "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=\"network-topology-operation-input.network-request-input.network-id not found in service-data\" />\n",
     "comments": "",
-    "x": 1458.7774658203125,
-    "y": 55,
-    "z": "cb78d918.7fc128",
+    "x": 1487.8087158203125,
+    "y": 31.920257568359375,
+    "z": "b1a89180.b5141",
     "wires": []
   },
   {
-    "id": "2b9737f2.ff2e58",
+    "id": "655f0893.61f278",
     "type": "other",
     "name": "other",
     "xml": "<outcome value='Other'>\n",
     "comments": "",
     "outputs": 1,
-    "x": 1152.0003662109375,
-    "y": 133.11106872558594,
-    "z": "cb78d918.7fc128",
+    "x": 1181.0316162109375,
+    "y": 110.03132629394531,
+    "z": "b1a89180.b5141",
     "wires": [
       [
-        "5d39d6e3.de1a58"
+        "f1d97fd4.8fa63"
       ]
     ]
   },
   {
-    "id": "5d39d6e3.de1a58",
+    "id": "f1d97fd4.8fa63",
     "type": "block",
     "name": "block : atomic",
     "xml": "<block atomic=\"true\">",
     "atomic": "true",
     "outputs": 1,
-    "x": 1323.2698974609375,
-    "y": 116.66560363769531,
-    "z": "cb78d918.7fc128",
+    "x": 1352.3011474609375,
+    "y": 93.58586120605469,
+    "z": "b1a89180.b5141",
     "wires": [
       [
-        "2ac08a71.09b5de",
-        "9c86a373.825778"
+        "e876eb36.5c4d68",
+        "34cad983.d68aa6"
       ]
     ]
   },
   {
-    "id": "2ac08a71.09b5de",
+    "id": "e876eb36.5c4d68",
     "type": "for",
     "name": "for nidx..service-data.networks.network[]",
     "xml": "<for index='nidx' start='0' end='`$service-data.networks.network_length`' >\n",
     "comments": "",
     "outputs": 1,
-    "x": 1621.285888671875,
-    "y": 97.53961181640625,
-    "z": "cb78d918.7fc128",
+    "x": 1650.317138671875,
+    "y": 74.45986938476562,
+    "z": "b1a89180.b5141",
     "wires": [
       [
-        "5db8c267.915c24"
+        "5659c979.043e78"
       ]
     ]
   },
   {
-    "id": "9c86a373.825778",
+    "id": "34cad983.d68aa6",
     "type": "switchNode",
     "name": "switch tmp.nidx ",
     "xml": "<switch test=\"`$tmp.nidx`\">\n\n",
     "comments": "",
     "outputs": 1,
-    "x": 1542.5872802734375,
-    "y": 140.52279663085938,
-    "z": "cb78d918.7fc128",
+    "x": 1571.6185302734375,
+    "y": 117.44305419921875,
+    "z": "b1a89180.b5141",
     "wires": [
       [
-        "3d81dbd3.1a6114"
+        "42b4cc11.e782c4"
       ]
     ]
   },
   {
-    "id": "3d81dbd3.1a6114",
+    "id": "42b4cc11.e782c4",
     "type": "outcome",
     "name": "NULL",
     "xml": "<outcome value=''>\n",
     "comments": "",
     "outputs": 1,
-    "x": 1743.015869140625,
-    "y": 146.09420776367188,
-    "z": "cb78d918.7fc128",
+    "x": 1772.047119140625,
+    "y": 123.01446533203125,
+    "z": "b1a89180.b5141",
     "wires": [
       [
-        "75e88bb1.8a62cc"
+        "fffba6d3.fe8418"
       ]
     ]
   },
   {
-    "id": "5db8c267.915c24",
+    "id": "5659c979.043e78",
     "type": "switchNode",
     "name": "switch networkid found",
     "xml": "<switch test=\"`$service-data.networks.network[$nidx].network-id == $network-topology-operation-input.network-information.network-id`\">\n\n",
     "comments": "",
     "outputs": 1,
-    "x": 1931.7144775390625,
-    "y": 95.78970336914062,
-    "z": "cb78d918.7fc128",
+    "x": 1960.7457275390625,
+    "y": 72.7099609375,
+    "z": "b1a89180.b5141",
     "wires": [
       [
-        "e928a560.5b1c7"
+        "c95e7fc4.b303b"
       ]
     ]
   },
   {
-    "id": "75e88bb1.8a62cc",
+    "id": "fffba6d3.fe8418",
     "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=\"network-topology-operation-input.network-request-input.network-id not found in service-data\" />\n",
     "comments": "",
-    "x": 1914.4443359375,
-    "y": 146.237060546875,
-    "z": "cb78d918.7fc128",
+    "x": 1943.4755859375,
+    "y": 123.15731811523438,
+    "z": "b1a89180.b5141",
     "wires": []
   },
   {
-    "id": "e928a560.5b1c7",
+    "id": "c95e7fc4.b303b",
     "type": "outcomeTrue",
     "name": "true",
     "xml": "<outcome value='true'>\n",
     "comments": "",
     "outputs": 1,
-    "x": 2137.666748046875,
-    "y": 94.68243408203125,
-    "z": "cb78d918.7fc128",
+    "x": 2166.697998046875,
+    "y": 71.60269165039062,
+    "z": "b1a89180.b5141",
     "wires": [
       [
-        "4ba4d636.a30d6"
+        "6b863b90.836d94"
       ]
     ]
   },
   {
-    "id": "4ba4d636.a30d6",
+    "id": "6b863b90.836d94",
     "type": "set",
     "name": "set tmp.nidx and ctx.network-data",
     "xml": "<set>\n<parameter name='tmp.nidx' value='`$nidx`' />\n<parameter name='ctx.network-data.' value='`$service-data.networks.network[$nidx].`' />\n",
     "comments": "",
-    "x": 2376.198486328125,
-    "y": 90.43243408203125,
-    "z": "cb78d918.7fc128",
+    "x": 2405.229736328125,
+    "y": 67.35269165039062,
+    "z": "b1a89180.b5141",
     "wires": []
   },
   {
-    "id": "4f7bc968.61f5a",
-    "type": "block",
-    "name": "block : saveNetworkData",
-    "xml": "<block atomic=\"true\">",
-    "atomic": "true",
+    "id": "30cf8a2a.4aa6d6",
+    "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": 806.6978149414062,
+    "y": 941.364501953125,
+    "z": "b1a89180.b5141",
+    "wires": []
+  },
+  {
+    "id": "3287501.60ecab",
+    "type": "get-resource",
+    "name": "get-resource pnf",
+    "xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\t\tresource=\"pnf\" \n\t\tkey=\"pnf.pnf-name = $prop.l3vpn.pe1_id AND \n\t\t     depth = '0'\"\n        pfx='tmp.aai.pnf' local-only='false' >\n\n",
     "comments": "",
     "outputs": 1,
-    "x": 802,
-    "y": 708.1109924316406,
-    "z": "cb78d918.7fc128",
+    "x": 810.03125,
+    "y": 368.9202575683594,
+    "z": "b1a89180.b5141",
     "wires": [
       [
-        "79d9aff3.77d7a8",
-        "7c1ac8d9.cf4248",
-        "305a1978.b12f4e",
-        "93b679b.6a51508"
+        "c2bd93d4.a50d6",
+        "50eb06db.534748",
+        "a9ca7e11.e6b52"
       ]
     ]
   },
   {
-    "id": "af92894.71fa378",
-    "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",
+    "id": "c2bd93d4.a50d6",
+    "type": "success",
+    "name": "success",
+    "xml": "<outcome value='success'>\n",
     "comments": "",
-    "x": 754.6665649414062,
-    "y": 926.4442749023438,
-    "z": "cb78d918.7fc128",
-    "wires": []
+    "outputs": 1,
+    "x": 1004.03125,
+    "y": 306.9202575683594,
+    "z": "b1a89180.b5141",
+    "wires": [
+      [
+        "70989a52.14a154"
+      ]
+    ]
   },
   {
-    "id": "305a1978.b12f4e",
-    "type": "set",
-    "name": "copy input to service-data",
-    "xml": "<set>\n<parameter name='service-data.networks.network[$tmp.nidx].network-data.sdnc-request-header.' value='`$network-topology-operation-input.sdnc-request-header.`' />\n<parameter name='service-data.networks.network[$tmp.nidx].network-data.request-information.' value='`$network-topology-operation-input.request-information.`' />\n",
+    "id": "50eb06db.534748",
+    "type": "not-found",
+    "name": "not-found",
+    "xml": "<outcome value='not-found'>\n",
+    "comments": "",
+    "outputs": 1,
+    "x": 1013.522216796875,
+    "y": 349.4942932128906,
+    "z": "b1a89180.b5141",
+    "wires": [
+      [
+        "a043bfd1.99253"
+      ]
+    ]
+  },
+  {
+    "id": "a9ca7e11.e6b52",
+    "type": "other",
+    "name": "other",
+    "xml": "<outcome value='Other'>\n",
     "comments": "",
-    "x": 1095.0000076293945,
-    "y": 688.4443044662476,
-    "z": "cb78d918.7fc128",
+    "outputs": 1,
+    "x": 1006.855224609375,
+    "y": 397.8276062011719,
+    "z": "b1a89180.b5141",
+    "wires": [
+      [
+        "a1cb98a2.af1948"
+      ]
+    ]
+  },
+  {
+    "id": "a043bfd1.99253",
+    "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 esr-thirdparty-sdnc from AnAI with thirdparty-sdnc-id = ' + $tmp.thirdparty-sdnc-id`\" />\n\n",
+    "comments": "",
+    "x": 1199.0936279296875,
+    "y": 350.780029296875,
+    "z": "b1a89180.b5141",
     "wires": []
   },
   {
-    "id": "79d9aff3.77d7a8",
-    "type": "set",
-    "name": "set networkId",
-    "xml": "<set>\n<parameter name='networkId' value='`$network-topology-operation-input.network-information.network-id`' />\n",
+    "id": "a1cb98a2.af1948",
+    "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 esr-thirdparty-sdnc from AnAI with thirdparty-sdnc-id = ' + $tmp.thirdparty-sdnc-id`\" />\n\n",
     "comments": "",
-    "x": 1059.2895622253418,
-    "y": 732.1621513366699,
-    "z": "cb78d918.7fc128",
+    "x": 1195.6278076171875,
+    "y": 401.26678466796875,
+    "z": "b1a89180.b5141",
     "wires": []
   },
   {
-    "id": "7c1ac8d9.cf4248",
+    "id": "70989a52.14a154",
     "type": "set",
-    "name": "set object-path",
-    "xml": "<set>\n<parameter name='network-object-path' value=\"`'restconf/config/GENERIC-RESOURCE-API:services/service/'\n + $network-topology-operation-input.service-information.service-instance-id\n + '/service-data/networks/network/'\n + $networkId\n + '/network-data/'` \" />\n \n",
+    "name": "set tmp.thirdparty-sdnc-id",
+    "xml": "<set>\n<parameter name='tmp.thirdparty-sdnc-id' value=\"`$tmp.aai.pnf.relationship-list.relationship[0].relationship-data[0].relationship-value`\" />\n",
     "comments": "",
-    "x": 1065.0039291381836,
-    "y": 769.30504322052,
-    "z": "cb78d918.7fc128",
+    "x": 1218.03125,
+    "y": 302.9202575683594,
+    "z": "b1a89180.b5141",
     "wires": []
   },
   {
-    "id": "93b679b.6a51508",
+    "id": "ae7fca3e.07e458",
+    "type": "switchNode",
+    "name": "switch pe1_id",
+    "xml": "<switch test=\"`$service-data.networks.network[$tmp.nidx].network-data.network-request-input.network-input-parameters.param[$idx].name == 'pe1_id'`\">\n",
+    "comments": "",
+    "outputs": 1,
+    "x": 1369.03125,
+    "y": 263.9202575683594,
+    "z": "b1a89180.b5141",
+    "wires": [
+      [
+        "7fbf4ad7.4e3104"
+      ]
+    ]
+  },
+  {
+    "id": "7fbf4ad7.4e3104",
+    "type": "outcomeTrue",
+    "name": "true",
+    "xml": "<outcome value='true'>\n",
+    "comments": "",
+    "outputs": 1,
+    "x": 1555.03125,
+    "y": 272.9202575683594,
+    "z": "b1a89180.b5141",
+    "wires": [
+      [
+        "63b25ae1.3cec14"
+      ]
+    ]
+  },
+  {
+    "id": "63b25ae1.3cec14",
     "type": "set",
-    "name": "set network-level-oper-status",
-    "xml": "<set>\n<parameter name='service-data.networks.network[$tmp.nidx].network-data.network-level-oper-status.order-status' value='Deleted' />\n<parameter name='service-data.networks.network[$tmp.nidx].network-data.network-level-oper-status.last-rpc-action' value='`$network-topology-operation-input.sdnc-request-header.svc-action`' />\n<parameter name='service-data.networks.network[$tmp.nidx].network-data.network-level-oper-status.last-action' value='`$network-topology-operation-input.request-information.request-action`' />\n",
+    "name": "set pe1_id",
+    "xml": "<set>\n<parameter name='prop.l3vpn.pe1_id' value='`$service-data.networks.network[$tmp.nidx].network-data.network-request-input.network-input-parameters.param[$idx].value`' />\n",
     "comments": "",
-    "x": 1108.9999389648438,
-    "y": 816.4442625045776,
-    "z": "cb78d918.7fc128",
+    "x": 1738.03125,
+    "y": 276.9202575683594,
+    "z": "b1a89180.b5141",
     "wires": []
   },
   {
-    "id": "4a75daf.1521ba4",
-    "type": "get-resource",
-    "name": "get-resource pnf",
-    "xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\t\tresource=\"pnf\" \n\t\tkey=\"pnf.pnf-name = $prop.l3vpn.pe1_id AND \n\t\t     depth = '0'\"\n        pfx='tmp.aai.pnf' local-only='false' >\n\n",
+    "id": "19bbbbde.0c4ee4",
+    "type": "delete",
+    "name": "delete underlay configuration in AAI",
+    "xml": "<delete plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" resource='configuration' \n        key='configuration.configuration-id = $network-topology-operation-input.network-information.network-id'>\n",
+    "comments": "",
+    "outputs": 1,
+    "x": 858.03125,
+    "y": 687.9202880859375,
+    "z": "b1a89180.b5141",
+    "wires": [
+      []
+    ]
+  },
+  {
+    "id": "1f654f28.833041",
+    "type": "execute",
+    "name": "execute RestApiCallNode Get token",
+    "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"templateFileName\" value=\"`$prop.restapi.templateDir + '/actokentemplate.json'`\" />\n<parameter name=\"restapiUrl\" value=\"`$prop.sdncRestApi.thirdpartySdnc.url + '/controller/v2/tokens'`\" />\n<parameter name=\"format\" value=\"json\"/>\n<parameter name=\"httpMethod\" value=\"post\"/>\n<parameter name=\"responsePrefix\" value=\"token-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\"/>",
     "comments": "",
     "outputs": 1,
-    "x": 781,
-    "y": 392,
-    "z": "cb78d918.7fc128",
+    "x": 1623.03125,
+    "y": 586.6979141235352,
+    "z": "b1a89180.b5141",
     "wires": [
       [
-        "b89fb093.0489a8",
-        "6b28b3fc.71f09c",
-        "6a884f6a.df82b8"
+        "ca41c77.6b99238",
+        "b6f946b3.5d1538"
       ]
     ]
   },
   {
-    "id": "b89fb093.0489a8",
+    "id": "ca41c77.6b99238",
     "type": "success",
     "name": "success",
     "xml": "<outcome value='success'>\n",
     "comments": "",
     "outputs": 1,
-    "x": 975,
-    "y": 330,
-    "z": "cb78d918.7fc128",
+    "x": 1863.03125,
+    "y": 549.6979141235352,
+    "z": "b1a89180.b5141",
     "wires": [
       [
-        "af6e1f5.d3f8c6"
+        "fb54fc36.0391d"
       ]
     ]
   },
   {
-    "id": "6b28b3fc.71f09c",
-    "type": "not-found",
-    "name": "not-found",
-    "xml": "<outcome value='not-found'>\n",
+    "id": "b6f946b3.5d1538",
+    "type": "failure",
+    "name": "failure",
+    "xml": "<outcome value='failure'>\n",
     "comments": "",
     "outputs": 1,
-    "x": 984.490966796875,
-    "y": 372.57403564453125,
-    "z": "cb78d918.7fc128",
+    "x": 1870.28125,
+    "y": 616.3407974243164,
+    "z": "b1a89180.b5141",
     "wires": [
       [
-        "f8931666.61247"
+        "987fca22.525748"
       ]
     ]
   },
   {
-    "id": "6a884f6a.df82b8",
-    "type": "other",
-    "name": "other",
-    "xml": "<outcome value='Other'>\n",
+    "id": "987fca22.525748",
+    "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 get token rest api\" />\n",
+    "comments": "",
+    "x": 2051.03125,
+    "y": 615.0908584594727,
+    "z": "b1a89180.b5141",
+    "wires": []
+  },
+  {
+    "id": "fb54fc36.0391d",
+    "type": "set",
+    "name": "set token-id",
+    "xml": "<set>\n<parameter name='prop.sdncRestApi.token_id' value='$token-result.data.token_id' />\n",
+    "comments": "",
+    "x": 2048.03125,
+    "y": 546.6979141235352,
+    "z": "b1a89180.b5141",
+    "wires": []
+  },
+  {
+    "id": "a48f9d80.400a6",
+    "type": "success",
+    "name": "success",
+    "xml": "<outcome value='success'>\n",
+    "comments": "",
+    "outputs": 1,
+    "x": 1899.03125,
+    "y": 737.6979370117188,
+    "z": "b1a89180.b5141",
+    "wires": [
+      [
+        "c960eb18.e0632"
+      ]
+    ]
+  },
+  {
+    "id": "17b55d13.d0f583",
+    "type": "failure",
+    "name": "failure",
+    "xml": "<outcome value='failure'>\n",
     "comments": "",
     "outputs": 1,
-    "x": 977.823974609375,
-    "y": 420.9073486328125,
-    "z": "cb78d918.7fc128",
+    "x": 1851.28125,
+    "y": 978.3407592773438,
+    "z": "b1a89180.b5141",
     "wires": [
       [
-        "d28c6955.33e8f"
+        "896de823.531688"
       ]
     ]
   },
   {
-    "id": "f8931666.61247",
+    "id": "896de823.531688",
     "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 esr-thirdparty-sdnc from AnAI with thirdparty-sdnc-id = ' + $tmp.thirdparty-sdnc-id`\" />\n\n",
+    "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 VPN rest api\" />\n",
+    "comments": "",
+    "x": 2040.03125,
+    "y": 981.0908813476562,
+    "z": "b1a89180.b5141",
+    "wires": []
+  },
+  {
+    "id": "730f31fc.13307",
+    "type": "block",
+    "name": "block : atomic",
+    "xml": "<block atomic='true'>",
+    "atomic": "true",
+    "comments": "",
+    "outputs": 1,
+    "x": 1294.03125,
+    "y": 597.6979141235352,
+    "z": "b1a89180.b5141",
+    "wires": [
+      [
+        "d58d3bad.af4188",
+        "e2203ccc.e2252",
+        "d01694ec.b6d578",
+        "1f654f28.833041",
+        "298989a7.60397e"
+      ]
+    ]
+  },
+  {
+    "id": "99fa60a9.97d56",
+    "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' />\n",
+    "comments": "",
+    "outputs": 1,
+    "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": 1170.0623779296875,
-    "y": 373.8597717285156,
-    "z": "cb78d918.7fc128",
+    "x": 2057.75,
+    "y": 671.7500610351562,
+    "z": "b1a89180.b5141",
     "wires": []
   },
   {
-    "id": "d28c6955.33e8f",
+    "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=\"`'Unexpected error occurred while querying esr-thirdparty-sdnc from AnAI with thirdparty-sdnc-id = ' + $tmp.thirdparty-sdnc-id`\" />\n\n",
+    "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": 1166.5965576171875,
-    "y": 424.3465270996094,
-    "z": "cb78d918.7fc128",
+    "x": 2076.75,
+    "y": 803.7500610351562,
+    "z": "b1a89180.b5141",
     "wires": []
   },
   {
-    "id": "af6e1f5.d3f8c6",
-    "type": "set",
-    "name": "set tmp.thirdparty-sdnc-id",
-    "xml": "<set>\n<parameter name='tmp.thirdparty-sdnc-id' value=\"`$tmp.aai.pnf.relationship-list.relationship[0].relationship-data[0].relationship-value`\" />\n",
+    "id": "a7e72531.ac08f",
+    "type": "failure",
+    "name": "failure",
+    "xml": "<outcome value='failure'>\n",
     "comments": "",
-    "x": 1189,
-    "y": 326,
-    "z": "cb78d918.7fc128",
+    "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": "634e4197.82f778",
+    "id": "e1b9eee0.2059b8",
     "type": "switchNode",
-    "name": "switch pe1_id",
-    "xml": "<switch test=\"`$service-data.networks.network[$tmp.nidx].network-data.network-request-input.network-input-parameters.param[$idx].name == 'pe1_id'`\">\n",
+    "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": 1340,
-    "y": 287,
-    "z": "cb78d918.7fc128",
+    "x": 1660.9999389648438,
+    "y": 385.5999755859375,
+    "z": "b1a89180.b5141",
     "wires": [
       [
-        "5329ae02.4dab98"
+        "b6297fef.ebefb"
       ]
     ]
   },
   {
-    "id": "5329ae02.4dab98",
+    "id": "ca400331.dc161",
     "type": "outcomeTrue",
     "name": "true",
     "xml": "<outcome value='true'>\n",
     "comments": "",
     "outputs": 1,
-    "x": 1526,
-    "y": 296,
-    "z": "cb78d918.7fc128",
+    "x": 1665,
+    "y": 435.8890075683594,
+    "z": "b1a89180.b5141",
     "wires": [
       [
-        "19f03810.34cf68"
+        "b6b8b28d.368718"
       ]
     ]
   },
   {
-    "id": "19f03810.34cf68",
+    "id": "9e12816.9f59e",
     "type": "set",
-    "name": "set pe1_id",
-    "xml": "<set>\n<parameter name='prop.l3vpn.pe1_id' value='`$service-data.networks.network[$tmp.nidx].network-data.network-request-input.network-input-parameters.param[$idx].value`' />\n",
+    "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": 1709,
-    "y": 300,
-    "z": "cb78d918.7fc128",
+    "x": 1827,
+    "y": 326.6000061035156,
+    "z": "b1a89180.b5141",
     "wires": []
   },
   {
-    "id": "70ae31cf.a526f",
-    "type": "delete",
-    "name": "delete underlay configuration in AAI",
-    "xml": "<delete plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" resource='configuration' \n        key='configuration.configuration-id = $network-topology-operation-input.network-information.network-id'>\n",
+    "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": 812,
-    "y": 854,
-    "z": "cb78d918.7fc128",
+    "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",
     "wires": [
       []
     ]
+  },
+  {
+    "id": "de27e6ee.26b61",
+    "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 updating md-sal for network-data\" />",
+    "comments": "",
+    "x": 1345.5873565673828,
+    "y": 819.6823553070426,
+    "z": "b1a89180.b5141",
+    "wires": []
+  },
+  {
+    "id": "a9f02234.2759e8",
+    "type": "set",
+    "name": "set tmp.nw-url",
+    "xml": "<set>\n<parameter name='tmp.nw-url' value=\"`'/restconf/config/GENERIC-RESOURCE-API:services/service/'\n + $network-topology-operation-input.service-information.service-instance-id\n + '/service-data/networks/network/' \n + $network-topology-operation-input.network-information.network-id` \" />",
+    "comments": "",
+    "x": 809,
+    "y": 748,
+    "z": "b1a89180.b5141",
+    "wires": []
   }
 ]