NonRT-RIC A1 Northbound API
[nonrtric.git] / sdnc-a1-controller / oam / platform-logic / generic-resource-api / src / main / json / sdwan / GENERIC-RESOURCE-API_sdwan-vnf-topology-operation-wanport-deactivate.json
diff --git a/sdnc-a1-controller/oam/platform-logic/generic-resource-api/src/main/json/sdwan/GENERIC-RESOURCE-API_sdwan-vnf-topology-operation-wanport-deactivate.json b/sdnc-a1-controller/oam/platform-logic/generic-resource-api/src/main/json/sdwan/GENERIC-RESOURCE-API_sdwan-vnf-topology-operation-wanport-deactivate.json
new file mode 100644 (file)
index 0000000..af6f26c
--- /dev/null
@@ -0,0 +1,736 @@
+[
+  {
+    "id": "160bd41b.750adc",
+    "type": "dgstart",
+    "name": "DGSTART",
+    "outputs": 1,
+    "x": 97,
+    "y": 50,
+    "z": "60265787.2327c8",
+    "wires": [
+      [
+        "7010ff28.09428"
+      ]
+    ]
+  },
+  {
+    "id": "7010ff28.09428",
+    "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": 245.2856903076172,
+    "y": 100.23810863494873,
+    "z": "60265787.2327c8",
+    "wires": [
+      [
+        "f412ee4c.d62e7"
+      ]
+    ]
+  },
+  {
+    "id": "f412ee4c.d62e7",
+    "type": "method",
+    "name": "method sdwan-vnf-topology-operation-wanport-deactivate",
+    "xml": "<method rpc='sdwan-vnf-topology-operation-wanport-deactivate' mode='sync'>\n",
+    "comments": "",
+    "outputs": 1,
+    "x": 279.4286117553711,
+    "y": 184.0000171661377,
+    "z": "60265787.2327c8",
+    "wires": [
+      [
+        "cc23525.50310b"
+      ]
+    ]
+  },
+  {
+    "id": "cc23525.50310b",
+    "type": "block",
+    "name": "block : atomic",
+    "xml": "<block atomic=\"true\">",
+    "atomic": "true",
+    "outputs": 1,
+    "x": 254.66670608520508,
+    "y": 568.6666831970215,
+    "z": "60265787.2327c8",
+    "wires": [
+      [
+        "8af94d5d.882d",
+        "db706027.a79c1",
+        "a0bc8740.7ee818",
+        "13704b55.ddb7b5",
+        "f6e2bea8.930d7",
+        "1d165946.98b807",
+        "e263e9f9.47b878",
+        "ec6fef57.1d937",
+        "f2ee43ab.85fef"
+      ]
+    ]
+  },
+  {
+    "id": "8af94d5d.882d",
+    "type": "switchNode",
+    "name": "switch service-data.vnfs.vnf_length",
+    "xml": "<switch test='`$service-data.vnfs.vnf_length`'>\n",
+    "comments": "",
+    "outputs": 1,
+    "x": 760.0209541320801,
+    "y": 93.02095350623131,
+    "z": "60265787.2327c8",
+    "wires": [
+      [
+        "80fd0bfd.39f738",
+        "7b7c3289.46689c",
+        "eedac48f.477958"
+      ]
+    ]
+  },
+  {
+    "id": "80fd0bfd.39f738",
+    "type": "other",
+    "name": "Null",
+    "xml": "<outcome value=''>\n",
+    "comments": "",
+    "outputs": 1,
+    "x": 1003.020881652832,
+    "y": 118.02103647589684,
+    "z": "60265787.2327c8",
+    "wires": [
+      [
+        "bd8e7274.c99a"
+      ]
+    ]
+  },
+  {
+    "id": "bd8e7274.c99a",
+    "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=\"vnf-topology-operation-input.vnf-request-input.vnf-id not found in service-data\" />\n",
+    "comments": "",
+    "x": 1151.7983932495117,
+    "y": 97.90997156500816,
+    "z": "60265787.2327c8",
+    "wires": []
+  },
+  {
+    "id": "7b7c3289.46689c",
+    "type": "other",
+    "name": "other",
+    "xml": "<outcome value='Other'>\n",
+    "comments": "",
+    "outputs": 1,
+    "x": 1004.0212059020996,
+    "y": 151.02105936408043,
+    "z": "60265787.2327c8",
+    "wires": [
+      [
+        "fc040973.03bed8"
+      ]
+    ]
+  },
+  {
+    "id": "fc040973.03bed8",
+    "type": "block",
+    "name": "block : atomic",
+    "xml": "<block atomic=\"true\">",
+    "atomic": "true",
+    "outputs": 1,
+    "x": 1151.2909088134766,
+    "y": 140.5755818784237,
+    "z": "60265787.2327c8",
+    "wires": [
+      [
+        "41b2ec7a.c9fac4",
+        "ed9b9aab.53af18"
+      ]
+    ]
+  },
+  {
+    "id": "41b2ec7a.c9fac4",
+    "type": "for",
+    "name": "for vidx..service-data.vnfs.vnf_length[]",
+    "xml": "<for index='vidx' start='0' end='`$service-data.vnfs.vnf_length`' >\n",
+    "comments": "",
+    "outputs": 1,
+    "x": 1396.306869506836,
+    "y": 92.44958147406578,
+    "z": "60265787.2327c8",
+    "wires": [
+      [
+        "da4ef740.d83fa8"
+      ]
+    ]
+  },
+  {
+    "id": "ed9b9aab.53af18",
+    "type": "switchNode",
+    "name": "switch tmp.vidx ",
+    "xml": "<switch test=\"`$tmp.vidx`\">\n\n",
+    "comments": "",
+    "outputs": 1,
+    "x": 1327.6082229614258,
+    "y": 140.432760566473,
+    "z": "60265787.2327c8",
+    "wires": [
+      [
+        "742d2b6f.de3234"
+      ]
+    ]
+  },
+  {
+    "id": "742d2b6f.de3234",
+    "type": "outcome",
+    "name": "NULL",
+    "xml": "<outcome value=''>\n",
+    "comments": "",
+    "outputs": 1,
+    "x": 1481.0368614196777,
+    "y": 139.00417360663414,
+    "z": "60265787.2327c8",
+    "wires": [
+      [
+        "373d4940.5a03b6"
+      ]
+    ]
+  },
+  {
+    "id": "cf1a968e.65c658",
+    "type": "switchNode",
+    "name": "switch vnfid found",
+    "xml": "<switch test=\"`$service-data.vnfs.vnf[$vidx].vnf-id == $vnf-topology-operation-input.vnf-information.vnf-id`\">\n\n",
+    "comments": "",
+    "outputs": 1,
+    "x": 1767.735450744629,
+    "y": 89.69969400763512,
+    "z": "60265787.2327c8",
+    "wires": [
+      [
+        "6d3e9e16.89bfe"
+      ]
+    ]
+  },
+  {
+    "id": "373d4940.5a03b6",
+    "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=\"vnf-topology-operation-input.vnf-request-input.vnf-id not found in service-data\" />\n",
+    "comments": "",
+    "x": 1617.4652557373047,
+    "y": 138.14703592658043,
+    "z": "60265787.2327c8",
+    "wires": []
+  },
+  {
+    "id": "6d3e9e16.89bfe",
+    "type": "outcomeTrue",
+    "name": "true",
+    "xml": "<outcome value='true'>\n",
+    "comments": "",
+    "outputs": 1,
+    "x": 1806.687599182129,
+    "y": 144.59241327643394,
+    "z": "60265787.2327c8",
+    "wires": [
+      [
+        "c733e74a.c143c8"
+      ]
+    ]
+  },
+  {
+    "id": "eedac48f.477958",
+    "type": "outcome",
+    "name": "0",
+    "xml": "<outcome value='0'>\n",
+    "comments": "",
+    "outputs": 1,
+    "x": 999.9896278381348,
+    "y": 85.9897321164608,
+    "z": "60265787.2327c8",
+    "wires": [
+      [
+        "bd8e7274.c99a"
+      ]
+    ]
+  },
+  {
+    "id": "da4ef740.d83fa8",
+    "type": "block",
+    "name": "block",
+    "xml": "<block>\n",
+    "atomic": "false",
+    "comments": "",
+    "outputs": 1,
+    "x": 1615.6565017700195,
+    "y": 91.98964247107506,
+    "z": "60265787.2327c8",
+    "wires": [
+      [
+        "cf1a968e.65c658"
+      ]
+    ]
+  },
+  {
+    "id": "db706027.a79c1",
+    "type": "set",
+    "name": "set vnf in service-data",
+    "xml": "<set>\n<!--parameter name='service-data.vnfs.vnf[$tmp.vidx].vnf-id' value='`$vnf-topology-operation-input.vnf-information.vnf-id`' /-->\n<parameter name='service-data.vnfs.vnf[$tmp.vidx].vnf-data.sdnc-request-header.' value='`$vnf-topology-operation-input.sdnc-request-header.`' />\n<parameter name='service-data.vnfs.vnf[$tmp.vidx].vnf-data.request-information.' value='`$vnf-topology-operation-input.request-information.`' />\n<parameter name='service-data.vnfs.vnf[$tmp.vidx].vnf-data.service-information.' value='`$vnf-topology-operation-input.service-information.`' />\n<parameter name='service-data.vnfs.vnf[$tmp.vidx].vnf-data.vnf-information.' value='`$vnf-topology-operation-input.vnf-information.`' />\n\n",
+    "comments": "",
+    "x": 715.334171295166,
+    "y": 741.6668876111507,
+    "z": "60265787.2327c8",
+    "wires": []
+  },
+  {
+    "id": "a0bc8740.7ee818",
+    "type": "set",
+    "name": "set vnfId and vnf-object-path",
+    "xml": "<set>\n<parameter name='vnfId' value='`$vnf-topology-operation-input.vnf-information.vnf-id`' />\n<parameter name=\"vnf-object-path\" value=\"`'restconf/config/GENERIC-RESOURCE-API:services/service/'  + $vnf-topology-operation-input.service-information.service-instance-id  + '/service-data/vnfs/vnf/'  + $vnf-topology-operation-input.vnf-information.vnf-id  + '/vnf-data/'` \" />",
+    "comments": "",
+    "x": 727.8898124694824,
+    "y": 798.8891824185848,
+    "z": "60265787.2327c8",
+    "wires": []
+  },
+  {
+    "id": "13704b55.ddb7b5",
+    "type": "set",
+    "name": "set vnf-level-oper-status to PendingDelete",
+    "xml": "<set>\n<parameter name='service-data.vnfs.vnf[$tmp.vidx].vnf-data.vnf-level-oper-status.order-status' value='PendingDelete' />\n<parameter name='service-data.vnfs.vnf[$tmp.vidx].vnf-data.vnf-level-oper-status.last-rpc-action' value='`$vnf-topology-operation-input.sdnc-request-header.svc-action`' />\n<parameter name='service-data.vnfs.vnf[$tmp.vidx].vnf-data.vnf-level-oper-status.last-action' value='`$vnf-topology-operation-input.request-information.request-action`' />\n",
+    "comments": "",
+    "x": 770.3341865539551,
+    "y": 833.6670182645321,
+    "z": "60265787.2327c8",
+    "wires": []
+  },
+  {
+    "id": "f6e2bea8.930d7",
+    "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": 680.6675567626953,
+    "y": 922.4448512494564,
+    "z": "60265787.2327c8",
+    "wires": []
+  },
+  {
+    "id": "e263e9f9.47b878",
+    "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 = SDWANController AND \n\t\t     depth = '1'\"\n        pfx='tmp.aai.esr-thirdparty-sdnc' local-only='false' >\n\n",
+    "comments": "",
+    "outputs": 1,
+    "x": 740.5003604888916,
+    "y": 261.0001236796379,
+    "z": "60265787.2327c8",
+    "wires": [
+      [
+        "553a8d46.b43834",
+        "4956fcb2.4927a4",
+        "b5f5e61a.4229a8"
+      ]
+    ]
+  },
+  {
+    "id": "553a8d46.b43834",
+    "type": "success",
+    "name": "success",
+    "xml": "<outcome value='success'>\n",
+    "comments": "",
+    "outputs": 1,
+    "x": 959.5003299713135,
+    "y": 220.00012025237083,
+    "z": "60265787.2327c8",
+    "wires": [
+      [
+        "f8d39c98.f3e5a"
+      ]
+    ]
+  },
+  {
+    "id": "4956fcb2.4927a4",
+    "type": "not-found",
+    "name": "not-found",
+    "xml": "<outcome value='not-found'>\n",
+    "comments": "",
+    "outputs": 1,
+    "x": 962.9912967681885,
+    "y": 267.5741558969021,
+    "z": "60265787.2327c8",
+    "wires": [
+      [
+        "60e56df6.080ca4"
+      ]
+    ]
+  },
+  {
+    "id": "b5f5e61a.4229a8",
+    "type": "other",
+    "name": "other",
+    "xml": "<outcome value='Other'>\n",
+    "comments": "",
+    "outputs": 1,
+    "x": 958.3243045806885,
+    "y": 308.90746888518333,
+    "z": "60265787.2327c8",
+    "wires": [
+      [
+        "15107992.3c8136"
+      ]
+    ]
+  },
+  {
+    "id": "15107992.3c8136",
+    "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": 1146.0968608856201,
+    "y": 304.34666165709496,
+    "z": "60265787.2327c8",
+    "wires": []
+  },
+  {
+    "id": "60e56df6.080ca4",
+    "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": 1139.562707901001,
+    "y": 255.85989198088646,
+    "z": "60265787.2327c8",
+    "wires": []
+  },
+  {
+    "id": "f8d39c98.f3e5a",
+    "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].service-url`\" />\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": 1140.0004329681396,
+    "y": 214.00015896558762,
+    "z": "60265787.2327c8",
+    "wires": []
+  },
+  {
+    "id": "1d346910.f82317",
+    "type": "execute",
+    "name": "execute RestApiCallNode device port delete",
+    "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"templateFileName\" value=\"`$prop.restapi.templateDir + '/sdwan-device-port-del.json'`\" />\n<parameter name=\"restapiUrl\" value=\"`$prop.sdncRestApi.thirdpartySdnc.url + '/controller/campus/v1/sdwan/net/ports/action/batch-delete'`\" />\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=\"post\"/>\n<parameter name=\"responsePrefix\" value=\"portResp\"/>\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": 773.0005130767822,
+    "y": 636.6668682992458,
+    "z": "60265787.2327c8",
+    "wires": [
+      [
+        "42db533e.b56eac",
+        "3455c58f.b562ea"
+      ]
+    ]
+  },
+  {
+    "id": "42db533e.b56eac",
+    "type": "success",
+    "name": "success",
+    "xml": "<outcome value='success'>\n",
+    "comments": "",
+    "outputs": 1,
+    "x": 1019.0004978179932,
+    "y": 674.6669569909573,
+    "z": "60265787.2327c8",
+    "wires": [
+      [
+        "77804da4.2bade4"
+      ]
+    ]
+  },
+  {
+    "id": "3455c58f.b562ea",
+    "type": "failure",
+    "name": "failure",
+    "xml": "<outcome value='failure'>\n",
+    "comments": "",
+    "outputs": 1,
+    "x": 1015.0005779266357,
+    "y": 628.6668721139431,
+    "z": "60265787.2327c8",
+    "wires": [
+      [
+        "7c085513.57701c"
+      ]
+    ]
+  },
+  {
+    "id": "7c085513.57701c",
+    "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": 1156.0006694793701,
+    "y": 628.6668730676174,
+    "z": "60265787.2327c8",
+    "wires": []
+  },
+  {
+    "id": "77804da4.2bade4",
+    "type": "block",
+    "name": "block : atomic",
+    "xml": "<block atomic=\"true\">",
+    "atomic": "true",
+    "comments": "",
+    "outputs": 1,
+    "x": 1163.0003643035889,
+    "y": 672.6668759286404,
+    "z": "60265787.2327c8",
+    "wires": [
+      []
+    ]
+  },
+  {
+    "id": "b1683370.08944",
+    "type": "execute",
+    "name": "execute RestApiCallNode wan port delete",
+    "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"templateFileName\" value=\"`$prop.restapi.templateDir + '/sdwan-wan-port-del.json'`\" />\n<parameter name=\"restapiUrl\" value=\"`$prop.sdncRestApi.thirdpartySdnc.url + '/controller/campus/v1/sdwan/net/transport-network-ports/action/batch-delete'`\" />\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=\"post\"/>\n<parameter name=\"responsePrefix\" value=\"portResp\"/>\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": 764.0006809234619,
+    "y": 529.6668654382229,
+    "z": "60265787.2327c8",
+    "wires": [
+      [
+        "25b510d9.36284",
+        "3a348892.4f4ad8"
+      ]
+    ]
+  },
+  {
+    "id": "25b510d9.36284",
+    "type": "success",
+    "name": "success",
+    "xml": "<outcome value='success'>\n",
+    "comments": "",
+    "outputs": 1,
+    "x": 997.0007762908936,
+    "y": 562.6668578088284,
+    "z": "60265787.2327c8",
+    "wires": [
+      [
+        "cc96ff80.a3e57"
+      ]
+    ]
+  },
+  {
+    "id": "3a348892.4f4ad8",
+    "type": "failure",
+    "name": "failure",
+    "xml": "<outcome value='failure'>\n",
+    "comments": "",
+    "outputs": 1,
+    "x": 1001.0008563995361,
+    "y": 498.6669360101223,
+    "z": "60265787.2327c8",
+    "wires": [
+      [
+        "ce0c3d97.4bdf8"
+      ]
+    ]
+  },
+  {
+    "id": "ce0c3d97.4bdf8",
+    "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": 1146.001028060913,
+    "y": 500.6669360101223,
+    "z": "60265787.2327c8",
+    "wires": []
+  },
+  {
+    "id": "cc96ff80.a3e57",
+    "type": "block",
+    "name": "block : atomic",
+    "xml": "<block atomic=\"true\">",
+    "atomic": "true",
+    "comments": "",
+    "outputs": 1,
+    "x": 1153.0006198883057,
+    "y": 560.6668578088284,
+    "z": "60265787.2327c8",
+    "wires": [
+      []
+    ]
+  },
+  {
+    "id": "1d165946.98b807",
+    "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": 707.9999885559082,
+    "y": 136.00003084540367,
+    "z": "60265787.2327c8",
+    "wires": [
+      []
+    ]
+  },
+  {
+    "id": "ec6fef57.1d937",
+    "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.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\"/>",
+    "comments": "",
+    "outputs": 1,
+    "x": 757.0002689361572,
+    "y": 399.6666949689388,
+    "z": "60265787.2327c8",
+    "wires": [
+      [
+        "4f27175.40c29e8",
+        "50a6cd99.43e804"
+      ]
+    ]
+  },
+  {
+    "id": "4f27175.40c29e8",
+    "type": "success",
+    "name": "success",
+    "xml": "<outcome value='success'>\n",
+    "comments": "",
+    "outputs": 1,
+    "x": 991.0003070831299,
+    "y": 385.66671976447105,
+    "z": "60265787.2327c8",
+    "wires": [
+      [
+        "ba76090.b8b84f8"
+      ]
+    ]
+  },
+  {
+    "id": "50a6cd99.43e804",
+    "type": "failure",
+    "name": "failure",
+    "xml": "<outcome value='failure'>\n",
+    "comments": "",
+    "outputs": 1,
+    "x": 984.2502689361572,
+    "y": 431.3095782697201,
+    "z": "60265787.2327c8",
+    "wires": [
+      [
+        "a32d5aa2.e0b408"
+      ]
+    ]
+  },
+  {
+    "id": "a32d5aa2.e0b408",
+    "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": 1137.0002689361572,
+    "y": 431.0596393048763,
+    "z": "60265787.2327c8",
+    "wires": []
+  },
+  {
+    "id": "ba76090.b8b84f8",
+    "type": "set",
+    "name": "set token-id",
+    "xml": "<set>\n<parameter name='prop.sdncRestApi.token_id' value='`$token-result.data.token_id`' />\n",
+    "comments": "",
+    "x": 1145.0003070831299,
+    "y": 386.66671976447105,
+    "z": "60265787.2327c8",
+    "wires": []
+  },
+  {
+    "id": "c733e74a.c143c8",
+    "type": "block",
+    "name": "block : atomic",
+    "xml": "<block atomic=\"true\">",
+    "atomic": "true",
+    "outputs": 1,
+    "x": 1947.0001106262207,
+    "y": 145.00004610419273,
+    "z": "60265787.2327c8",
+    "wires": [
+      [
+        "2115f98.c329d06",
+        "5f1edf6a.5abca",
+        "e126aeff.fd3f4"
+      ]
+    ]
+  },
+  {
+    "id": "f2ee43ab.85fef",
+    "type": "update",
+    "name": "update SDWAN wan port instance configuration in AAI",
+    "xml": "<update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='wan-port-config' \n      key='wan-port-config.wan-port-config-id = $vnf-topology-operation-input.vnf-information.vnf-id' >\n<parameter name='wan-port-config-id' value=\"`$vnf-topology-operation-input.vnf-information.vnf-id`\" />\n<parameter name='operational-status' value='PendingDelete' />\n<parameter name='model-customization-id' value='`$vnf-topology-operation-input.vnf-information.onap-model-information.model-customization-uuid`' />\n<parameter name='model-invariant-id' value='`$vnf-topology-operation-input.vnf-information.onap-model-information.model-invariant-uuid`' />\n<parameter name='model-version-id' value='`$vnf-topology-operation-input.vnf-information.onap-model-information.model-uuid`' />\n",
+    "comments": "",
+    "outputs": 1,
+    "x": 793.0002861022949,
+    "y": 875.0004304349422,
+    "z": "60265787.2327c8",
+    "wires": [
+      []
+    ]
+  },
+  {
+    "id": "2115f98.c329d06",
+    "type": "set",
+    "name": "set tmp.vidx and ctx.vnf-data",
+    "xml": "<set>\n<parameter name='tmp.vidx' value='`$vidx`' />\n<parameter name='ctx.vnf-data.' value='`$service-data.vnfs.vnf[$vidx].`' />\n",
+    "comments": "",
+    "x": 2197.0313453674316,
+    "y": 96.03129276633263,
+    "z": "60265787.2327c8",
+    "wires": []
+  },
+  {
+    "id": "5f1edf6a.5abca",
+    "type": "set",
+    "name": "set vnf-request-input.",
+    "xml": "<set>\n<parameter name='vnf-request-input.' value='`$ctx.vnf-data.vnf-data.vnf-request-input.`' />\n\n",
+    "comments": "",
+    "x": 2169.4776344299316,
+    "y": 142.68892845511436,
+    "z": "60265787.2327c8",
+    "wires": []
+  },
+  {
+    "id": "e126aeff.fd3f4",
+    "type": "call",
+    "name": "call sdwan-get-wan-param",
+    "xml": "<call module='GENERIC-RESOURCE-API' rpc='sdwan-get-wan-param' mode='sync' >\n",
+    "comments": "",
+    "outputs": 1,
+    "x": 2193.477584838867,
+    "y": 192.6889165341854,
+    "z": "60265787.2327c8",
+    "wires": [
+      []
+    ]
+  },
+  {
+    "id": "e35c5cc.ba705a",
+    "type": "call",
+    "name": "call sdwan-get-tenant-auth",
+    "xml": "<call module='GENERIC-RESOURCE-API' rpc='sdwan-get-tenant-auth' mode='sync' >\n",
+    "comments": "",
+    "outputs": 1,
+    "x": 727,
+    "y": 462,
+    "z": "60265787.2327c8",
+    "wires": [
+      []
+    ]
+  }
+]