aboutsummaryrefslogtreecommitdiffstats
path: root/platform-logic/generic-resource-api/src/main/json/sdwan/GENERIC-RESOURCE-API_sdwan-vf-operation-site-deactivate.json
diff options
context:
space:
mode:
Diffstat (limited to 'platform-logic/generic-resource-api/src/main/json/sdwan/GENERIC-RESOURCE-API_sdwan-vf-operation-site-deactivate.json')
-rw-r--r--platform-logic/generic-resource-api/src/main/json/sdwan/GENERIC-RESOURCE-API_sdwan-vf-operation-site-deactivate.json1066
1 files changed, 1066 insertions, 0 deletions
diff --git a/platform-logic/generic-resource-api/src/main/json/sdwan/GENERIC-RESOURCE-API_sdwan-vf-operation-site-deactivate.json b/platform-logic/generic-resource-api/src/main/json/sdwan/GENERIC-RESOURCE-API_sdwan-vf-operation-site-deactivate.json
new file mode 100644
index 00000000..581bad70
--- /dev/null
+++ b/platform-logic/generic-resource-api/src/main/json/sdwan/GENERIC-RESOURCE-API_sdwan-vf-operation-site-deactivate.json
@@ -0,0 +1,1066 @@
+[
+ {
+ "id": "5c29a6ba.038668",
+ "type": "method",
+ "name": "method sdwan-vf-operation-site-deactivate",
+ "xml": "<method rpc='sdwan-vf-operation-site-deactivate' mode='sync'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 236.00390625,
+ "y": 176.58634185791016,
+ "z": "1fcdaf2d.f82361",
+ "wires": [
+ [
+ "c10a5ef9.eb1cc"
+ ]
+ ]
+ },
+ {
+ "id": "7b112072.6efee",
+ "type": "dgstart",
+ "name": "DGSTART",
+ "outputs": 1,
+ "x": 145.00390625,
+ "y": 20,
+ "z": "1fcdaf2d.f82361",
+ "wires": [
+ [
+ "c6cd33c4.247fe"
+ ]
+ ]
+ },
+ {
+ "id": "c6cd33c4.247fe",
+ "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": 224.28961181640625,
+ "y": 82.23810958862305,
+ "z": "1fcdaf2d.f82361",
+ "wires": [
+ [
+ "5c29a6ba.038668"
+ ]
+ ]
+ },
+ {
+ "id": "c10a5ef9.eb1cc",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "outputs": 1,
+ "x": 222.6705780029297,
+ "y": 361.6667137145996,
+ "z": "1fcdaf2d.f82361",
+ "wires": [
+ [
+ "987b6cfb.095a4",
+ "2421aa48.a967a6",
+ "a7501bce.e84ca8",
+ "c42c3129.16bb4",
+ "67b10f8d.c3d57",
+ "7db6c871.1ca638",
+ "5c7d3c9a.2071e4",
+ "7e398340.b85bfc",
+ "27be343.61169cc",
+ "4d4441d6.c778f",
+ "2c4e5cc7.b76554",
+ "f0d9af80.b3024",
+ "1cc606fc.7b90b9"
+ ]
+ ]
+ },
+ {
+ "id": "2421aa48.a967a6",
+ "type": "for",
+ "name": "for each vnf",
+ "xml": "<for index='idx' start='0' end='`$service-data.vnfs.vnf_length`' >\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 568.035270690918,
+ "y": 256.2691411972046,
+ "z": "1fcdaf2d.f82361",
+ "wires": [
+ [
+ "f656e0b.31e062"
+ ]
+ ]
+ },
+ {
+ "id": "987b6cfb.095a4",
+ "type": "switchNode",
+ "name": "switch vnf_length",
+ "xml": "<switch test='`$service-data.vnfs.vnf_length`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 573.0039253234863,
+ "y": 195.00001049041748,
+ "z": "1fcdaf2d.f82361",
+ "wires": [
+ [
+ "d40e76d0.d5ce48"
+ ]
+ ]
+ },
+ {
+ "id": "d40e76d0.d5ce48",
+ "type": "outcome",
+ "name": "NULL",
+ "xml": "<outcome value=''>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 753.00390625,
+ "y": 194,
+ "z": "1fcdaf2d.f82361",
+ "wires": [
+ [
+ "de4bbf24.9eba4"
+ ]
+ ]
+ },
+ {
+ "id": "de4bbf24.9eba4",
+ "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": 902.4326324462891,
+ "y": 195.14291763305664,
+ "z": "1fcdaf2d.f82361",
+ "wires": []
+ },
+ {
+ "id": "f656e0b.31e062",
+ "type": "switchNode",
+ "name": "switch this vnf-id == input vnf-id",
+ "xml": "<switch test=\"`$service-data.vnfs.vnf[$idx].vnf-id == $vf-module-topology-operation-input.vnf-information.vnf-id`\"> \n",
+ "comments": "",
+ "outputs": 1,
+ "x": 791.0039215087891,
+ "y": 257.00000619888306,
+ "z": "1fcdaf2d.f82361",
+ "wires": [
+ [
+ "4eea1b40.3a5ae4"
+ ]
+ ]
+ },
+ {
+ "id": "4eea1b40.3a5ae4",
+ "type": "outcomeTrue",
+ "name": "true",
+ "xml": "<outcome value='true'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1006.00390625,
+ "y": 255,
+ "z": "1fcdaf2d.f82361",
+ "wires": [
+ [
+ "efdee9f.d679018"
+ ]
+ ]
+ },
+ {
+ "id": "efdee9f.d679018",
+ "type": "set",
+ "name": "set vnf-index",
+ "xml": "<set>\n<parameter name='vnf-index' value='`$idx`' />\n",
+ "comments": "",
+ "x": 1170.00390625,
+ "y": 250,
+ "z": "1fcdaf2d.f82361",
+ "wires": []
+ },
+ {
+ "id": "a7501bce.e84ca8",
+ "type": "switchNode",
+ "name": "switch vf-modules.vf-module_length",
+ "xml": "<switch test='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module_length`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 618.0039138793945,
+ "y": 327.99999046325684,
+ "z": "1fcdaf2d.f82361",
+ "wires": [
+ [
+ "ad789953.0300c8",
+ "a370bc16.16cab",
+ "be5b6663.110a88"
+ ]
+ ]
+ },
+ {
+ "id": "a370bc16.16cab",
+ "type": "outcome",
+ "name": "NULL",
+ "xml": "<outcome value=''>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 840.00390625,
+ "y": 362,
+ "z": "1fcdaf2d.f82361",
+ "wires": [
+ [
+ "22440a59.760c56"
+ ]
+ ]
+ },
+ {
+ "id": "ad789953.0300c8",
+ "type": "outcome",
+ "name": "0",
+ "xml": "<outcome value='0'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 845.0039024353027,
+ "y": 308.9999990463257,
+ "z": "1fcdaf2d.f82361",
+ "wires": [
+ [
+ "22440a59.760c56"
+ ]
+ ]
+ },
+ {
+ "id": "22440a59.760c56",
+ "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": 1003.00390625,
+ "y": 322,
+ "z": "1fcdaf2d.f82361",
+ "wires": []
+ },
+ {
+ "id": "be5b6663.110a88",
+ "type": "other",
+ "name": "other",
+ "xml": "<outcome value='Other'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 840.00390625,
+ "y": 423,
+ "z": "1fcdaf2d.f82361",
+ "wires": [
+ [
+ "cb5b975f.044798"
+ ]
+ ]
+ },
+ {
+ "id": "da67128d.15fa1",
+ "type": "set",
+ "name": "set vf-module_length",
+ "xml": "<set>\n<parameter name='vf-module-length' value='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module_length`' />\n\n",
+ "comments": "",
+ "x": 1194.003921508789,
+ "y": 421.0000139474869,
+ "z": "1fcdaf2d.f82361",
+ "wires": []
+ },
+ {
+ "id": "cb5b975f.044798",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "outputs": 1,
+ "x": 1001.0039520263672,
+ "y": 419.99999141693115,
+ "z": "1fcdaf2d.f82361",
+ "wires": [
+ [
+ "da67128d.15fa1",
+ "8901c130.f196d"
+ ]
+ ]
+ },
+ {
+ "id": "8901c130.f196d",
+ "type": "for",
+ "name": "for each existing vf-index",
+ "xml": "<for index='idx' start='0' end='`$vf-module-length`' >\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1213.003890991211,
+ "y": 473.99999046325684,
+ "z": "1fcdaf2d.f82361",
+ "wires": [
+ [
+ "332a4ae3.ad50b6"
+ ]
+ ]
+ },
+ {
+ "id": "332a4ae3.ad50b6",
+ "type": "switchNode",
+ "name": "switch vf-module-id found",
+ "xml": "<switch test=\"`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$idx].vf-module-id == $vf-module-topology-operation-input.vf-module-information.vf-module-id`\">\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1456.00390625,
+ "y": 469,
+ "z": "1fcdaf2d.f82361",
+ "wires": [
+ [
+ "e0471cb4.f94dd"
+ ]
+ ]
+ },
+ {
+ "id": "e0471cb4.f94dd",
+ "type": "outcomeTrue",
+ "name": "true",
+ "xml": "<outcome value='true'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1654.0039348602295,
+ "y": 456.0000066757202,
+ "z": "1fcdaf2d.f82361",
+ "wires": [
+ [
+ "1ca5dda0.751ea2"
+ ]
+ ]
+ },
+ {
+ "id": "1ca5dda0.751ea2",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "outputs": 1,
+ "x": 1806.00390625,
+ "y": 458,
+ "z": "1fcdaf2d.f82361",
+ "wires": [
+ [
+ "3077bb99.f991c4",
+ "96d4f974.763d28",
+ "37f06523.6ef90a"
+ ]
+ ]
+ },
+ {
+ "id": "3077bb99.f991c4",
+ "type": "set",
+ "name": "set tmp.vidx and ctx.vnf-data",
+ "xml": "<set>\n<parameter name='tmp.vidx' value='`$idx`' />\n<parameter name='ctx.vf-module-data.' value='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$idx].vf-module-data.`' />\n",
+ "comments": "",
+ "x": 2028.00390625,
+ "y": 454,
+ "z": "1fcdaf2d.f82361",
+ "wires": []
+ },
+ {
+ "id": "96d4f974.763d28",
+ "type": "set",
+ "name": "set vf-module-request-input.",
+ "xml": "<set>\n<parameter name='vf-module-request-input.' value='`$ctx.vf-module-data.vf-module-request-input.`' />\n\n",
+ "comments": "",
+ "x": 2034.00390625,
+ "y": 503,
+ "z": "1fcdaf2d.f82361",
+ "wires": []
+ },
+ {
+ "id": "37f06523.6ef90a",
+ "type": "call",
+ "name": "call sdwan-get-vf-module-site-param",
+ "xml": "<call module='GENERIC-RESOURCE-API' rpc='sdwan-get-vf-module-site-param' mode='sync' >\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2062.0041275024414,
+ "y": 551.0000057220459,
+ "z": "1fcdaf2d.f82361",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "67b10f8d.c3d57",
+ "type": "record",
+ "name": "record",
+ "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.FileRecorder\">\n<parameter name=\"file\" value=\"/opt/opendaylight/current/data/log/svclogic.log\"/>\n<parameter name=\"field1\" value=\"__TIMESTAMP__\"/>\n<parameter name=\"field2\" value=\"Provided alloted resource length\"/>\n<parameter name=\"field3\" value=\"'parameters length'\"/>\n<parameter name=\"field4\" value='`$vnf-topology-operation-input.vnf-request-input.vnf-input-parameters.param_length`'/>\n\n\n\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 533.0039806365967,
+ "y": 554.0000057220459,
+ "z": "1fcdaf2d.f82361",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "c42c3129.16bb4",
+ "type": "switchNode",
+ "name": "switch tmp.vidx ",
+ "xml": "<switch test=\"`$tmp.vidx`\">\n\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 557.0351257324219,
+ "y": 501.0160732269287,
+ "z": "1fcdaf2d.f82361",
+ "wires": [
+ [
+ "288e4f16.fdb24"
+ ]
+ ]
+ },
+ {
+ "id": "288e4f16.fdb24",
+ "type": "outcome",
+ "name": "NULL",
+ "xml": "<outcome value=''>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 704.4637680053711,
+ "y": 500.5874834060669,
+ "z": "1fcdaf2d.f82361",
+ "wires": [
+ [
+ "6d758b04.419134"
+ ]
+ ]
+ },
+ {
+ "id": "6d758b04.419134",
+ "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": 853.8924942016602,
+ "y": 501.73040103912354,
+ "z": "1fcdaf2d.f82361",
+ "wires": []
+ },
+ {
+ "id": "7db6c871.1ca638",
+ "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": 564.0351448059082,
+ "y": 603.0160584449768,
+ "z": "1fcdaf2d.f82361",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "5c7d3c9a.2071e4",
+ "type": "for",
+ "name": "for loop idx - VF-module input parameters",
+ "xml": "<for index='idx' start='0' end='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$tmp.vidx].vf-module-data.vf-module-request-input.vf-module-input-parameters.param_length`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 604.0039367675781,
+ "y": 678.4548873901367,
+ "z": "1fcdaf2d.f82361",
+ "wires": [
+ [
+ "f399c5e.d5b6e38"
+ ]
+ ]
+ },
+ {
+ "id": "f399c5e.d5b6e38",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 857.8997802734375,
+ "y": 675.3768310546875,
+ "z": "1fcdaf2d.f82361",
+ "wires": [
+ [
+ "6f7dac79.02cc84",
+ "69380680.bf88e8"
+ ]
+ ]
+ },
+ {
+ "id": "6f7dac79.02cc84",
+ "type": "switchNode",
+ "name": "switch type",
+ "xml": "<switch test=\"`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$tmp.vidx].vf-module-data.vf-module-request-input.vf-module-input-parameters.param[$idx].name == 'type'`\">\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 995.0169830322266,
+ "y": 675.3502712249756,
+ "z": "1fcdaf2d.f82361",
+ "wires": [
+ [
+ "8d1befdb.32c39"
+ ]
+ ]
+ },
+ {
+ "id": "8d1befdb.32c39",
+ "type": "outcomeTrue",
+ "name": "true",
+ "xml": "<outcome value='true'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1135.016990661621,
+ "y": 676.3502712249756,
+ "z": "1fcdaf2d.f82361",
+ "wires": [
+ [
+ "79096937.65ad98"
+ ]
+ ]
+ },
+ {
+ "id": "79096937.65ad98",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "outputs": 1,
+ "x": 1283.5666389465332,
+ "y": 677.3769645690918,
+ "z": "1fcdaf2d.f82361",
+ "wires": [
+ [
+ "50251b49.1faa44"
+ ]
+ ]
+ },
+ {
+ "id": "50251b49.1faa44",
+ "type": "set",
+ "name": "set type and sdwan flag",
+ "xml": "<set>\n<parameter name='prop.site.type' value='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$tmp.vidx].vf-module-data.vf-module-request-input.vf-module-input-parameters.param[$idx].value`' />\n<parameter name='prop.site.sdwan' value=\"true\" />\n",
+ "comments": "",
+ "x": 1498.9000129699707,
+ "y": 677.3769731521606,
+ "z": "1fcdaf2d.f82361",
+ "wires": []
+ },
+ {
+ "id": "69380680.bf88e8",
+ "type": "switchNode",
+ "name": "switch siteId",
+ "xml": "<switch test=\"`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$tmp.vidx].vf-module-data.vf-module-request-input.vf-module-input-parameters.param[$idx].name == 'siteId'`\">\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 995.0168800354004,
+ "y": 750.3503141403198,
+ "z": "1fcdaf2d.f82361",
+ "wires": [
+ [
+ "89a7d161.ebf8a"
+ ]
+ ]
+ },
+ {
+ "id": "89a7d161.ebf8a",
+ "type": "outcomeTrue",
+ "name": "true",
+ "xml": "<outcome value='true'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1135.016887664795,
+ "y": 751.3503141403198,
+ "z": "1fcdaf2d.f82361",
+ "wires": [
+ [
+ "8cbeced8.b613d"
+ ]
+ ]
+ },
+ {
+ "id": "8cbeced8.b613d",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "outputs": 1,
+ "x": 1283.566535949707,
+ "y": 752.377007484436,
+ "z": "1fcdaf2d.f82361",
+ "wires": [
+ [
+ "5b3b802.4f9668"
+ ]
+ ]
+ },
+ {
+ "id": "5b3b802.4f9668",
+ "type": "set",
+ "name": "set siteId",
+ "xml": "<set>\n<parameter name='prop.site.siteId' value='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$tmp.vidx].vf-module-data.vf-module-request-input.vf-module-input-parameters.param[$idx].value`' />\n\n",
+ "comments": "",
+ "x": 1427.8998985290527,
+ "y": 753.3770246505737,
+ "z": "1fcdaf2d.f82361",
+ "wires": []
+ },
+ {
+ "id": "db911ea5.5cc8d",
+ "type": "comment",
+ "name": "Get siteId to delete",
+ "info": "",
+ "comments": "",
+ "x": 1007.0038642883301,
+ "y": 719.4549703598022,
+ "z": "1fcdaf2d.f82361",
+ "wires": []
+ },
+ {
+ "id": "7e398340.b85bfc",
+ "type": "switchNode",
+ "name": "switch prop.site.sdwan",
+ "xml": "<switch test=\"`$prop.site.sdwan`\">\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 533.5116882324219,
+ "y": 845.1213359832764,
+ "z": "1fcdaf2d.f82361",
+ "wires": [
+ [
+ "c63fd2c7.67fc"
+ ]
+ ]
+ },
+ {
+ "id": "c63fd2c7.67fc",
+ "type": "outcomeTrue",
+ "name": "true",
+ "xml": "<outcome value='true'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 714.5118217468262,
+ "y": 846.1213626861572,
+ "z": "1fcdaf2d.f82361",
+ "wires": [
+ [
+ "653ef686.4a6068"
+ ]
+ ]
+ },
+ {
+ "id": "69850da3.9c7b14",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1419.0118446350098,
+ "y": 814.1214170455933,
+ "z": "1fcdaf2d.f82361",
+ "wires": [
+ [
+ "ba061c2b.bf22f"
+ ]
+ ]
+ },
+ {
+ "id": "ba061c2b.bf22f",
+ "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": 1607.5119400024414,
+ "y": 808.1214267015457,
+ "z": "1fcdaf2d.f82361",
+ "wires": []
+ },
+ {
+ "id": "85b7f6ac.e36598",
+ "type": "not-found",
+ "name": "not-found",
+ "xml": "<outcome value='not-found'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1422.5028114318848,
+ "y": 861.6954526901245,
+ "z": "1fcdaf2d.f82361",
+ "wires": [
+ [
+ "1b75ce4a.6d0092"
+ ]
+ ]
+ },
+ {
+ "id": "1b75ce4a.6d0092",
+ "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": 1596.0742225646973,
+ "y": 849.9811887741089,
+ "z": "1fcdaf2d.f82361",
+ "wires": []
+ },
+ {
+ "id": "5b05b37.dea904c",
+ "type": "other",
+ "name": "other",
+ "xml": "<outcome value='Other'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1414.8358192443848,
+ "y": 903.0287656784058,
+ "z": "1fcdaf2d.f82361",
+ "wires": [
+ [
+ "fb9dc1ca.b519e"
+ ]
+ ]
+ },
+ {
+ "id": "fb9dc1ca.b519e",
+ "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": 1602.6083755493164,
+ "y": 898.4679584503174,
+ "z": "1fcdaf2d.f82361",
+ "wires": []
+ },
+ {
+ "id": "31c7dfa0.a2acb",
+ "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": 1152.0117568969727,
+ "y": 862.1214228868484,
+ "z": "1fcdaf2d.f82361",
+ "wires": [
+ [
+ "69850da3.9c7b14",
+ "85b7f6ac.e36598",
+ "5b05b37.dea904c"
+ ]
+ ]
+ },
+ {
+ "id": "c256fc10.56b7c",
+ "type": "execute",
+ "name": "execute RestApiCallNode Create SDWAN site",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"templateFileName\" value=\"`$prop.restapi.templateDir + '/sdwan-site-del.json'`\" />\n<parameter name=\"restapiUrl\" value=\"`$prop.sdncRestApi.thirdpartySdnc.url + '/controller/campus/v1/sdwan/net/sites/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=\"site-result\"/>\n<parameter name=\"trustStoreFileName\" value=\"/opt/onap/sdnc/data/stores/truststore.onap.client.jks\"/>\n<parameter name=\"trustStorePassword\" value=\"adminadmin\"/>\n<parameter name=\"keyStoreFileName\" value=\"/opt/onap/sdnc/data/stores/sdnc.p12\"/>\n<parameter name=\"keyStorePassword\" value=\"adminadmin\"/>\n<parameter name='customHttpHeaders' value=\"`'X-ACCESS-TOKEN=' + $prop.sdncRestApi.token_id`\" />",
+ "comments": "",
+ "outputs": 1,
+ "x": 1180.5121002197266,
+ "y": 1060.121494293213,
+ "z": "1fcdaf2d.f82361",
+ "wires": [
+ [
+ "626ea124.c2d19",
+ "77fd4a1.6d0b0b4"
+ ]
+ ]
+ },
+ {
+ "id": "6007a527.cdf6fc",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 1576.1784210205078,
+ "y": 1040.0103092193604,
+ "z": "1fcdaf2d.f82361",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "1facc57c.dbee2b",
+ "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": 1573.6229209899902,
+ "y": 1074.5656490325928,
+ "z": "1fcdaf2d.f82361",
+ "wires": []
+ },
+ {
+ "id": "2b4696aa.b04baa",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1442.6230182647705,
+ "y": 1076.5657682418823,
+ "z": "1fcdaf2d.f82361",
+ "wires": [
+ [
+ "1facc57c.dbee2b"
+ ]
+ ]
+ },
+ {
+ "id": "1fb3f457.93c7fc",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1434.0672721862793,
+ "y": 1039.2324876785278,
+ "z": "1fcdaf2d.f82361",
+ "wires": [
+ [
+ "6007a527.cdf6fc"
+ ]
+ ]
+ },
+ {
+ "id": "199f525b.bab65e",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1418.2657356262207,
+ "y": 940.1253787279129,
+ "z": "1fcdaf2d.f82361",
+ "wires": [
+ [
+ "e85c3a39.e5bd58"
+ ]
+ ]
+ },
+ {
+ "id": "b6235f60.69d19",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1410.5157356262207,
+ "y": 981.7682620286942,
+ "z": "1fcdaf2d.f82361",
+ "wires": [
+ [
+ "429813db.05fa0c"
+ ]
+ ]
+ },
+ {
+ "id": "429813db.05fa0c",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 1536.5992317199707,
+ "y": 982.0142947435379,
+ "z": "1fcdaf2d.f82361",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "e85c3a39.e5bd58",
+ "type": "set",
+ "name": "set token-id",
+ "xml": "<set>\n<parameter name='prop.sdncRestApi.token_id' value='`$token-result.data.token_id`' />\n",
+ "comments": "",
+ "x": 1555.2657356262207,
+ "y": 940.1253787279129,
+ "z": "1fcdaf2d.f82361",
+ "wires": []
+ },
+ {
+ "id": "cfb510cb.1323d",
+ "type": "comment",
+ "name": "tmp.thirdparty-sdnc-id is hardcoded value?",
+ "info": "",
+ "comments": "",
+ "x": 1147.515609741211,
+ "y": 826.1253840923309,
+ "z": "1fcdaf2d.f82361",
+ "wires": []
+ },
+ {
+ "id": "653ef686.4a6068",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "outputs": 1,
+ "x": 875.5117568969727,
+ "y": 846.7878704071045,
+ "z": "1fcdaf2d.f82361",
+ "wires": [
+ [
+ "31c7dfa0.a2acb",
+ "d00d4af5.3de678",
+ "f5120e80.4ebea",
+ "c256fc10.56b7c"
+ ]
+ ]
+ },
+ {
+ "id": "d00d4af5.3de678",
+ "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": 1168.654685974121,
+ "y": 963.1213312149048,
+ "z": "1fcdaf2d.f82361",
+ "wires": [
+ [
+ "199f525b.bab65e",
+ "b6235f60.69d19"
+ ]
+ ]
+ },
+ {
+ "id": "f5120e80.4ebea",
+ "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": 1128.6546096801758,
+ "y": 1012.1212921142578,
+ "z": "1fcdaf2d.f82361",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "626ea124.c2d19",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1436.6546096801758,
+ "y": 1137.1212921142578,
+ "z": "1fcdaf2d.f82361",
+ "wires": [
+ [
+ "352b1b5f.73bb64"
+ ]
+ ]
+ },
+ {
+ "id": "352b1b5f.73bb64",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 1592.6546096801758,
+ "y": 1137.1212921142578,
+ "z": "1fcdaf2d.f82361",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "77fd4a1.6d0b0b4",
+ "type": "other",
+ "name": "other",
+ "xml": "<outcome value='Other'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1436.6546096801758,
+ "y": 1186.1212921142578,
+ "z": "1fcdaf2d.f82361",
+ "wires": [
+ [
+ "a435af2d.1ebe4"
+ ]
+ ]
+ },
+ {
+ "id": "a435af2d.1ebe4",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 1614.6546096801758,
+ "y": 1183.1212921142578,
+ "z": "1fcdaf2d.f82361",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "27be343.61169cc",
+ "type": "set",
+ "name": "copy input data to service data",
+ "xml": "<set>\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$tmp.vidx].vf-module-data.sdnc-request-header.' value='`$vf-module-topology-operation-input.sdnc-request-header.`' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$tmp.vidx].vf-module-data.request-information.' value='`$vf-module-topology-operation-input.request-information.`' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$tmp.vidx].vf-module-data.service-information.' value='`$vf-module-topology-operation-input.service-information.`' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$tmp.vidx].vf-module-data.vf-module-information.' value='`$vf-module-topology-operation-input.vf-module-information.`' />\n",
+ "comments": "",
+ "x": 558.4484710693359,
+ "y": 912.5660271644592,
+ "z": "1fcdaf2d.f82361",
+ "wires": []
+ },
+ {
+ "id": "4d4441d6.c778f",
+ "type": "set",
+ "name": "set vf-module-object-path",
+ "xml": "<set>\n<parameter name='vf-module-object-path' value=\"`'restconf/config/GENERIC-RESOURCE-API:services/service/'\n + $vf-module-topology-operation-input.service-information.service-instance-id\n + '/service-data/vnfs/vnf/'\n + $service-data.vnfs.vnf[$vnf-index].vnf-id\n + '/vnf-data/vf-modules/vf-module/'\n + $vf-module-topology-operation-input.vf-module-information.vf-module-id\n + '/vf-module-data/vf-module-topology/'`\"/>\n<parameter name='vnf-object-path'\n value=\"`'restconf/config/GENERIC-RESOURCE-API:services/service/'\n + $vf-module-topology-operation-input.service-information.service-instance-id\n + '/service-data/vnfs/vnf/'\n + $service-data.vnfs.vnf[$vnf-index].vnf-id\n + '/vnf-data/vnf-topology/'`\"/>\n<parameter name='service-object-path'\n value=\"`'restconf/config/GENERIC-RESOURCE-API:services/service/'\n + $vf-module-topology-operation-input.service-information.service-instance-id\n + '/service-data/service-topology/'`\"/>\n",
+ "comments": "",
+ "x": 542.1151275634766,
+ "y": 953.9827690124512,
+ "z": "1fcdaf2d.f82361",
+ "wires": []
+ },
+ {
+ "id": "2c4e5cc7.b76554",
+ "type": "set",
+ "name": "set vf-module-oper-status to PendingDelete",
+ "xml": "<set>\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$tmp.vidx].vf-module-data.vf-module-level-oper-status.order-status' value='PendingDelete' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$tmp.vidx].vf-module-data.vf-module-level-oper-status.last-rpc-action' value='`$vf-module-topology-operation-input.sdnc-request-header.svc-action`' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$tmp.vidx].vf-module-data.vf-module-level-oper-status.last-action' value='`$vf-module-topology-operation-input.sdnc-request-header.request-action`' />\n",
+ "comments": "",
+ "x": 597.5952453613281,
+ "y": 1003.5700263977051,
+ "z": "1fcdaf2d.f82361",
+ "wires": []
+ },
+ {
+ "id": "1cc606fc.7b90b9",
+ "type": "save",
+ "name": "update site instance configuration in AAI",
+ "xml": "<update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='device' \n key='device.device-id = $vf-module-topology-operation-input.vf-module-information.vf-module-id' >\n<parameter name='device-id' value='`$vf-module-topology-operation-input.vf-module-information.vf-module-id`' />\n<!--parameter name='device-id' value='`$deviceResp.success[0].id`' /-->\n<parameter name='operational-status' value='PendingDelete' />\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 586.781982421875,
+ "y": 1052.4551830291748,
+ "z": "1fcdaf2d.f82361",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "f0d9af80.b3024",
+ "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": 507.5597839355469,
+ "y": 1103.8992748260498,
+ "z": "1fcdaf2d.f82361",
+ "wires": []
+ }
+] \ No newline at end of file