aboutsummaryrefslogtreecommitdiffstats
path: root/platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_site-vnf-topology-operation-deactivate.json
diff options
context:
space:
mode:
Diffstat (limited to 'platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_site-vnf-topology-operation-deactivate.json')
-rw-r--r--platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_site-vnf-topology-operation-deactivate.json1012
1 files changed, 619 insertions, 393 deletions
diff --git a/platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_site-vnf-topology-operation-deactivate.json b/platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_site-vnf-topology-operation-deactivate.json
index 26456855..38cff210 100644
--- a/platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_site-vnf-topology-operation-deactivate.json
+++ b/platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_site-vnf-topology-operation-deactivate.json
@@ -1,733 +1,959 @@
[
{
- "id": "c9ac4983.326288",
+ "id": "d86fdeaf.90856",
+ "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": 182.8570785522461,
+ "y": 146.23809719085693,
+ "z": "662bc73e.2f2df8",
+ "wires": [
+ [
+ "8c1fcf5.c30ac3"
+ ]
+ ]
+ },
+ {
+ "id": "c3f643e9.793bf",
"type": "dgstart",
"name": "DGSTART",
"outputs": 1,
- "x": 259.03125,
- "y": 199.03125,
- "z": "33fa79d5.e5dbd6",
+ "x": 107.57137298583984,
+ "y": 105.99998569488525,
+ "z": "662bc73e.2f2df8",
"wires": [
[
- "a919b1fb.cf167"
+ "d86fdeaf.90856"
]
]
},
{
- "id": "a919b1fb.cf167",
- "type": "service-logic",
- "name": "GENERIC-RESOURCE-API ${project.version}",
- "module": "GENERIC-RESOURCE-API",
- "version": "${project.version}",
+ "id": "8c1fcf5.c30ac3",
+ "type": "method",
+ "name": "method site-vnf-topology-operation-deactivate",
+ "xml": "<method rpc='site-vnf-topology-operation-deactivate' mode='sync'>",
"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": 471.03125381469727,
- "y": 271.0312671661377,
- "z": "33fa79d5.e5dbd6",
+ "x": 176,
+ "y": 185.99997997283936,
+ "z": "662bc73e.2f2df8",
"wires": [
[
- "20189583.354efa"
+ "ed73a4d4.18b998"
]
]
},
{
- "id": "20189583.354efa",
- "type": "method",
- "name": "sdwan-get-site-param",
- "xml": "<method rpc='sdwan-get-site-param' mode='sync'>\n",
- "comments": "",
+ "id": "ed73a4d4.18b998",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
"outputs": 1,
- "x": 459.0313720703125,
- "y": 359.03125,
- "z": "33fa79d5.e5dbd6",
+ "x": 216.73809814453125,
+ "y": 257.69349098205566,
+ "z": "662bc73e.2f2df8",
"wires": [
[
- "c2456569.00bd88"
+ "59f08d7c.e40f14",
+ "c44bdf39.f49ac",
+ "af671a8b.af38d8",
+ "35b8b725.755a88",
+ "6ebc8511.a2521c",
+ "cf959324.083ab",
+ "82cb066d.91c668",
+ "2ec82407.2cc83c",
+ "ab2363bc.936b4"
]
]
},
{
- "id": "c2456569.00bd88",
+ "id": "6ebc8511.a2521c",
"type": "block",
"name": "block : atomic",
- "xml": "<block atomic=\"true\">\n",
- "atomic": "false",
- "comments": "",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
"outputs": 1,
- "x": 466.03126525878906,
- "y": 445.0313081741333,
- "z": "33fa79d5.e5dbd6",
+ "x": 623.7856979370117,
+ "y": 122.8095064163208,
+ "z": "662bc73e.2f2df8",
"wires": [
[
- "4e2d26a4.4c1808"
+ "3eca00ab.dea9f",
+ "33bd2a9b.930326",
+ "fb6a76d8.c72038",
+ "d8062777.1e2a88"
]
]
},
{
- "id": "4e2d26a4.4c1808",
- "type": "for",
- "name": "for each sdwan-get-request-input-param",
- "xml": "<for index='idx' start='0' end='`$vnf-request-input.vnf-input-parameters.param_length`' >\n\n",
+ "id": "3eca00ab.dea9f",
+ "type": "switchNode",
+ "name": "switch service-data.vnfs.vnf_length",
+ "xml": "<switch test='`$service-data.vnfs.vnf_length`'>\n",
"comments": "",
"outputs": 1,
- "x": 502.6980285644531,
- "y": 527.697904586792,
- "z": "33fa79d5.e5dbd6",
+ "x": 903.6747055053711,
+ "y": 148.14282417297363,
+ "z": "662bc73e.2f2df8",
"wires": [
[
- "e3603253.51629"
+ "b63df83d.881f98",
+ "2d9f4a28.834cf6"
]
]
},
{
- "id": "e3603253.51629",
- "type": "block",
- "name": "block",
- "xml": "<block>\n",
- "atomic": "false",
+ "id": "b63df83d.881f98",
+ "type": "other",
+ "name": "outcome Null",
+ "xml": "<outcome value=''>\n",
"comments": "",
"outputs": 1,
- "x": 789.5315780639648,
- "y": 445.03135204315186,
- "z": "33fa79d5.e5dbd6",
+ "x": 1157.2858276367188,
+ "y": 129.80951118469238,
+ "z": "662bc73e.2f2df8",
"wires": [
[
- "4fbcc568.ce097c",
- "9e4fbe84.7d2fb",
- "ed14265a.99d948",
- "773d0e91.45e91",
- "a690711f.67d26",
- "f96e2736.deb9e8",
- "5bc913df.9a308c",
- "8619f18f.0dd93",
- "1ee73b7b.ea9285",
- "5cd558f4.7f3258",
- "dbf73ee2.461c2",
- "bbcb741c.0eb968",
- "cd952f17.46c77"
+ "ce144d22.a6862"
]
]
},
{
- "id": "4fbcc568.ce097c",
- "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": "ce144d22.a6862",
+ "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": 993.0323181152344,
- "y": 814.032012462616,
- "z": "33fa79d5.e5dbd6",
+ "x": 1331.2858428955078,
+ "y": 129.80951118469238,
+ "z": "662bc73e.2f2df8",
"wires": []
},
{
- "id": "9e4fbe84.7d2fb",
- "type": "switchNode",
- "name": "switch name",
- "xml": "<switch test=\"`$vnf-request-input.vnf-input-parameters.param[$idx].name == 'name'`\">\n",
+ "id": "2d9f4a28.834cf6",
+ "type": "other",
+ "name": "other",
+ "xml": "<outcome value='Other'>\n",
"comments": "",
"outputs": 1,
- "x": 1009.0312881469727,
- "y": 241.031325340271,
- "z": "33fa79d5.e5dbd6",
+ "x": 1140.7857971191406,
+ "y": 165.80952167510986,
+ "z": "662bc73e.2f2df8",
"wires": [
[
- "3261cfb2.83caf"
+ "5e80a5f7.14668c"
]
]
},
{
- "id": "3261cfb2.83caf",
- "type": "outcomeTrue",
- "name": "true",
- "xml": "<outcome value='true'>\n",
- "comments": "",
+ "id": "5e80a5f7.14668c",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
"outputs": 1,
- "x": 1151.0312881469727,
- "y": 242.031325340271,
- "z": "33fa79d5.e5dbd6",
+ "x": 1322.7859954833984,
+ "y": 176.80952739715576,
+ "z": "662bc73e.2f2df8",
"wires": [
[
- "e4e6bc65.0ec81"
+ "68893bf6.030534",
+ "ef8a4172.bf9b"
]
]
},
{
- "id": "e4e6bc65.0ec81",
- "type": "set",
- "name": "set name",
- "xml": "<set>\n<parameter name='prop.device.name' value='`$vnf-request-input.vnf-input-parameters.param[$idx].value`' />\n",
+ "id": "ef8a4172.bf9b",
+ "type": "switchNode",
+ "name": "switch tmp.vidx ",
+ "xml": "<switch test=\"`$tmp.vidx`\">\n\n",
"comments": "",
- "x": 1285.0312881469727,
- "y": 242.63133144378662,
- "z": "33fa79d5.e5dbd6",
- "wires": []
+ "outputs": 1,
+ "x": 1512.785888671875,
+ "y": 193.80952167510986,
+ "z": "662bc73e.2f2df8",
+ "wires": [
+ [
+ "3898f902.da4f46"
+ ]
+ ]
},
{
- "id": "ed14265a.99d948",
+ "id": "fb6a76d8.c72038",
"type": "switchNode",
- "name": "switch name",
- "xml": "<switch test=\"`$vnf-request-input.vnf-input-parameters.param[$idx].name == 'name'`\">\n",
+ "name": "switch vnf-level-oper-status",
+ "xml": "<switch test='`$service-data.vnfs.vnf[$tmp.vidx].vnf-data.vnf-level-oper-status.order-status`'>\n",
"comments": "",
"outputs": 1,
- "x": 1005.0313949584961,
- "y": 332.0312833786011,
- "z": "33fa79d5.e5dbd6",
+ "x": 866.952507019043,
+ "y": 243.69837760925293,
+ "z": "662bc73e.2f2df8",
"wires": [
[
- "81ce8f79.a82a1"
+ "9a6e14da.4f6898",
+ "830ab1c4.069de"
]
]
},
{
- "id": "81ce8f79.a82a1",
- "type": "outcomeTrue",
- "name": "true",
- "xml": "<outcome value='true'>\n",
+ "id": "9a6e14da.4f6898",
+ "type": "outcome",
+ "name": "outcome Active",
+ "xml": "<outcome value='Active'>\n",
"comments": "",
"outputs": 1,
- "x": 1183.0314083099365,
- "y": 335.0312833786011,
- "z": "33fa79d5.e5dbd6",
+ "x": 1173.7858200073242,
+ "y": 224.8094997406006,
+ "z": "662bc73e.2f2df8",
"wires": [
[
- "6599a894.64adf8"
+ "c41182b7.2c8a4"
]
]
},
{
- "id": "6599a894.64adf8",
- "type": "set",
- "name": "set name",
- "xml": "<set>\n<parameter name='prop.site.name' value='`$vnf-request-input.vnf-input-parameters.param[$idx].value`' />\n",
+ "id": "830ab1c4.069de",
+ "type": "other",
+ "name": "other",
+ "xml": "<outcome value='Other'>\n",
"comments": "",
- "x": 1330.0314178466797,
- "y": 334.6312789916992,
- "z": "33fa79d5.e5dbd6",
+ "outputs": 1,
+ "x": 1141.7858200073242,
+ "y": 264.8094997406006,
+ "z": "662bc73e.2f2df8",
+ "wires": [
+ [
+ "ff8457d6.891c88"
+ ]
+ ]
+ },
+ {
+ "id": "ff8457d6.891c88",
+ "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 is not in appropriate state for activate. Current state is ' + $service-data.vnfs.vnf[$tmp.nidx].vnf-data.vnf-level-oper-status.order-status`\" />",
+ "comments": "",
+ "x": 1299.2858200073242,
+ "y": 264.8094997406006,
+ "z": "662bc73e.2f2df8",
"wires": []
},
{
- "id": "5cd558f4.7f3258",
+ "id": "33bd2a9b.930326",
"type": "switchNode",
- "name": "switch type",
- "xml": "<switch test=\"`$vnf-request-input.vnf-input-parameters.param[$idx].name == 'type'`\">\n",
+ "name": "switch vnf-id",
+ "xml": "<switch test=\"`$vnf-topology-operation-input.vnf-information.vnf-id`\">\n",
"comments": "",
"outputs": 1,
- "x": 983.9270668029785,
- "y": 630.0047330856323,
- "z": "33fa79d5.e5dbd6",
+ "x": 845.7858047485352,
+ "y": 88.80949878692627,
+ "z": "662bc73e.2f2df8",
"wires": [
[
- "48783360.87fe7c"
+ "660d1ca1.7f5824"
]
]
},
{
- "id": "48783360.87fe7c",
- "type": "outcomeTrue",
- "name": "true",
- "xml": "<outcome value='true'>\n",
+ "id": "660d1ca1.7f5824",
+ "type": "outcome",
+ "name": "NULL",
+ "xml": "<outcome value=''>",
"comments": "",
"outputs": 1,
- "x": 1162.9269104003906,
- "y": 631.0046529769897,
- "z": "33fa79d5.e5dbd6",
+ "x": 988.7857971191406,
+ "y": 88.80950164794922,
+ "z": "662bc73e.2f2df8",
"wires": [
[
- "b59fb35a.098b9"
+ "da90fecc.888a8"
]
]
},
{
- "id": "b59fb35a.098b9",
- "type": "set",
- "name": "set type",
- "xml": "<set>\n<parameter name='prop.site.type' value='`$vnf-request-input.vnf-input-parameters.param[$idx].value`' />\n<parameter name='prop.site.sdwan' value='true' />",
+ "id": "da90fecc.888a8",
+ "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-information.vnf-id is a required input\" />\n",
"comments": "",
- "x": 1312.9269218444824,
- "y": 632.6046676635742,
- "z": "33fa79d5.e5dbd6",
+ "x": 1137.2857971191406,
+ "y": 88.8095006942749,
+ "z": "662bc73e.2f2df8",
"wires": []
},
{
- "id": "dbf73ee2.461c2",
- "type": "switchNode",
- "name": "switch role",
- "xml": "<switch test=\"`$vnf-request-input.vnf-input-parameters.param[$idx].name == 'role'`\">\n",
+ "id": "68893bf6.030534",
+ "type": "for",
+ "name": "for vidx..service-data.vnfs.vnf[]",
+ "xml": "<for index='vidx' start='0' end='`$service-data.vnfs.vnf_length`' >\n",
"comments": "",
"outputs": 1,
- "x": 984.9267425537109,
- "y": 674.0047731399536,
- "z": "33fa79d5.e5dbd6",
+ "x": 1558.2859191894531,
+ "y": 155.80951118469238,
+ "z": "662bc73e.2f2df8",
"wires": [
[
- "8ceba6c3.5c88c8"
+ "32659e4e.c6e252"
]
]
},
{
- "id": "8ceba6c3.5c88c8",
- "type": "outcomeTrue",
- "name": "true",
- "xml": "<outcome value='true'>\n",
+ "id": "32659e4e.c6e252",
+ "type": "switchNode",
+ "name": "switch vnf-id 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": 1154.9267501831055,
- "y": 684.0047359466553,
- "z": "33fa79d5.e5dbd6",
+ "x": 1844.2859191894531,
+ "y": 155.80951118469238,
+ "z": "662bc73e.2f2df8",
"wires": [
[
- "832f2789.d30da8"
+ "760edd7e.39ca84"
]
]
},
{
- "id": "773d0e91.45e91",
- "type": "switchNode",
- "name": "switch location-name",
- "xml": "<switch test=\"`$vnf-request-input.vnf-input-parameters.param[$idx].name == 'location-name'`\">\n",
+ "id": "760edd7e.39ca84",
+ "type": "outcomeTrue",
+ "name": "true",
+ "xml": "<outcome value='true'>\n",
"comments": "",
"outputs": 1,
- "x": 1027.9265823364258,
- "y": 374.0045919418335,
- "z": "33fa79d5.e5dbd6",
+ "x": 2029.7859954833984,
+ "y": 155.80951309204102,
+ "z": "662bc73e.2f2df8",
"wires": [
[
- "85468ea4.c68d2"
+ "e7380240.e1e34"
]
]
},
{
- "id": "85468ea4.c68d2",
- "type": "outcomeTrue",
- "name": "true",
- "xml": "<outcome value='true'>\n",
+ "id": "e7380240.e1e34",
+ "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].vnf-data.`' />\n",
+ "comments": "",
+ "x": 2237.785919189453,
+ "y": 155.80951118469238,
+ "z": "662bc73e.2f2df8",
+ "wires": []
+ },
+ {
+ "id": "9f76132b.ac81b",
+ "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-information.vnf-id not found in service-data\" />\n",
+ "comments": "",
+ "x": 1804.285888671875,
+ "y": 193.80952167510986,
+ "z": "662bc73e.2f2df8",
+ "wires": []
+ },
+ {
+ "id": "3898f902.da4f46",
+ "type": "outcome",
+ "name": "NULL",
+ "xml": "<outcome value=''>\n",
"comments": "",
"outputs": 1,
- "x": 1191.9267539978027,
- "y": 374.0045928955078,
- "z": "33fa79d5.e5dbd6",
+ "x": 1666.785888671875,
+ "y": 193.80952167510986,
+ "z": "662bc73e.2f2df8",
"wires": [
[
- "bc94b24c.9dce8"
+ "9f76132b.ac81b"
]
]
},
{
- "id": "bc94b24c.9dce8",
+ "id": "59f08d7c.e40f14",
"type": "set",
- "name": "set location-name",
- "xml": "<set>\n<parameter name='prop.site.location-name' value='`$vnf-request-input.vnf-input-parameters.param[$idx].value`' />\n",
+ "name": "set vnf in service-data",
+ "xml": "<set>\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.`' />",
"comments": "",
- "x": 1353.9267654418945,
- "y": 373.6046495437622,
- "z": "33fa79d5.e5dbd6",
+ "x": 610.5715866088867,
+ "y": 591.0002222061157,
+ "z": "662bc73e.2f2df8",
"wires": []
},
{
- "id": "a690711f.67d26",
- "type": "switchNode",
- "name": "switch address",
- "xml": "<switch test=\"`$vnf-request-input.vnf-input-parameters.param[$idx].name == 'address'`\">\n",
+ "id": "c44bdf39.f49ac",
+ "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": 632.1271820068359,
+ "y": 628.2224435806274,
+ "z": "662bc73e.2f2df8",
+ "wires": []
+ },
+ {
+ "id": "35b8b725.755a88",
+ "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": 585.9049634933472,
+ "y": 778.7778730392456,
+ "z": "662bc73e.2f2df8",
+ "wires": []
+ },
+ {
+ "id": "af671a8b.af38d8",
+ "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": 670.5715866088867,
+ "y": 672.0002851486206,
+ "z": "662bc73e.2f2df8",
+ "wires": []
+ },
+ {
+ "id": "c41182b7.2c8a4",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
"outputs": 1,
- "x": 1010.9265823364258,
- "y": 410.00459575653076,
- "z": "33fa79d5.e5dbd6",
+ "x": 1367.713279724121,
+ "y": 228.88886868953705,
+ "z": "662bc73e.2f2df8",
"wires": [
- [
- "5c1e569f.3488e8"
- ]
+ []
]
},
{
- "id": "5c1e569f.3488e8",
- "type": "outcomeTrue",
- "name": "true",
- "xml": "<outcome value='true'>\n",
+ "id": "d8062777.1e2a88",
+ "type": "execute",
+ "name": "execute requiredParameters",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='requiredParameters' >\n<parameter name=\"vnf-topology-operation-input.vnf-information.vnf-id\" value=\"$vnf-topology-operation-input.vnf-information.vnf-id\"/>\n\n",
"comments": "",
"outputs": 1,
- "x": 1180.9264297485352,
- "y": 418.00459480285645,
- "z": "33fa79d5.e5dbd6",
+ "x": 895.5716171264648,
+ "y": 50.999999046325684,
+ "z": "662bc73e.2f2df8",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "b2ebc544.1e6068",
+ "type": "comment",
+ "name": "site-vnf-topology-operation-deactivate",
+ "info": "",
+ "comments": "",
+ "x": 489.8570785522461,
+ "y": 51.238097190856934,
+ "z": "662bc73e.2f2df8",
+ "wires": []
+ },
+ {
+ "id": "cf959324.083ab",
+ "type": "for",
+ "name": "for loop idx - VNF input parameters",
+ "xml": "<for index='idx' start='0' end='`$service-data.vnfs.vnf[$tmp.vidx].vnf-data.vnf-request-input.vnf-input-parameters.param_length`' >\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 667.8572273254395,
+ "y": 322.00002098083496,
+ "z": "662bc73e.2f2df8",
"wires": [
[
- "b976d806.368f48"
+ "fe2f83f9.8338"
]
]
},
{
- "id": "b976d806.368f48",
- "type": "set",
- "name": "set location-address",
- "xml": "<set>\n<parameter name='prop.site.location-address' value='`$vnf-request-input.vnf-input-parameters.param[$idx].value`' />\n",
+ "id": "fe2f83f9.8338",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
"comments": "",
- "x": 1368.9266052246094,
- "y": 413.60457038879395,
- "z": "33fa79d5.e5dbd6",
- "wires": []
+ "outputs": 1,
+ "x": 874.7529640197754,
+ "y": 321.92188453674316,
+ "z": "662bc73e.2f2df8",
+ "wires": [
+ [
+ "550bedb1.f170d4",
+ "b37adbd9.2464a8"
+ ]
+ ]
},
{
- "id": "f96e2736.deb9e8",
+ "id": "550bedb1.f170d4",
"type": "switchNode",
- "name": "switch postcode",
- "xml": "<switch test=\"`$vnf-request-input.vnf-input-parameters.param[$idx].name == 'postcode'`\">\n",
+ "name": "switch role",
+ "xml": "<switch test=\"`$service-data.vnfs.vnf[$tmp.vidx].vnf-data.vnf-request-input.vnf-input-parameters.param[$idx].name == 'role'`\">\n",
"comments": "",
"outputs": 1,
- "x": 1011.9265823364258,
- "y": 452.0045566558838,
- "z": "33fa79d5.e5dbd6",
+ "x": 1011.8701667785645,
+ "y": 321.89532470703125,
+ "z": "662bc73e.2f2df8",
"wires": [
[
- "e2c2334c.42179"
+ "de4a1711.c3fb08"
]
]
},
{
- "id": "e2c2334c.42179",
+ "id": "de4a1711.c3fb08",
"type": "outcomeTrue",
"name": "true",
"xml": "<outcome value='true'>\n",
"comments": "",
"outputs": 1,
- "x": 1176.9267539978027,
- "y": 451.0045566558838,
- "z": "33fa79d5.e5dbd6",
+ "x": 1151.870174407959,
+ "y": 322.89532470703125,
+ "z": "662bc73e.2f2df8",
+ "wires": [
+ [
+ "d4dca6e6.2c3458"
+ ]
+ ]
+ },
+ {
+ "id": "d4dca6e6.2c3458",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "outputs": 1,
+ "x": 1300.419822692871,
+ "y": 323.92201805114746,
+ "z": "662bc73e.2f2df8",
"wires": [
[
- "8da40933.edfaf8"
+ "8481bd23.50386"
]
]
},
{
- "id": "8da40933.edfaf8",
+ "id": "8481bd23.50386",
"type": "set",
- "name": "set location-postcode",
- "xml": "<set>\n<parameter name='prop.site.location-postcode' value='`$vnf-request-input.vnf-input-parameters.param[$idx].value`' />\n",
+ "name": "set role",
+ "xml": "<set>\n<parameter name='prop.site.role' value='`$service-data.vnfs.vnf[$tmp.vidx].vnf-data.vnf-request-input.vnf-input-parameters.param[$idx].value`' />\n<parameter name='prop.site.sdwan' value=\"true\" />\n",
"comments": "",
- "x": 1363.9266052246094,
- "y": 452.6045732498169,
- "z": "33fa79d5.e5dbd6",
+ "x": 1444.7531852722168,
+ "y": 324.92203521728516,
+ "z": "662bc73e.2f2df8",
"wires": []
},
{
- "id": "bbcb741c.0eb968",
+ "id": "82cb066d.91c668",
"type": "switchNode",
- "name": "switch controlPoint",
- "xml": "<switch test=\"`$vnf-request-input.vnf-input-parameters.param[$idx].name == 'controlPoint'`\">\n",
+ "name": "switch prop.site.sdwan",
+ "xml": "<switch test=\"`$prop.site.sdwan`\">\n",
"comments": "",
"outputs": 1,
- "x": 1003.8099670410156,
- "y": 734.0315742492676,
- "z": "33fa79d5.e5dbd6",
+ "x": 641.8570785522461,
+ "y": 477.00004291534424,
+ "z": "662bc73e.2f2df8",
"wires": [
[
- "6a2baa92.dd77f4"
+ "44689f8b.efef2"
]
]
},
{
- "id": "6a2baa92.dd77f4",
+ "id": "44689f8b.efef2",
"type": "outcomeTrue",
"name": "true",
"xml": "<outcome value='true'>\n",
"comments": "",
"outputs": 1,
- "x": 1165.8098907470703,
- "y": 730.0315971374512,
- "z": "33fa79d5.e5dbd6",
+ "x": 822.8572120666504,
+ "y": 478.0000696182251,
+ "z": "662bc73e.2f2df8",
"wires": [
[
- "fd4f1adb.5ec4b8"
+ "92d1a385.88b4d"
]
]
},
{
- "id": "9ab3bfdb.b8822",
- "type": "set",
- "name": "set role",
- "xml": "<set>\n<parameter name='prop.site.role' value='`$vnf-request-input.vnf-input-parameters.param[$idx].value`' />\n\n",
+ "id": "1f34e7d.f4ed818",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
"comments": "",
- "x": 1526.8100395202637,
- "y": 660.0315113067627,
- "z": "33fa79d5.e5dbd6",
- "wires": []
+ "outputs": 1,
+ "x": 1527.357234954834,
+ "y": 446.00012397766113,
+ "z": "662bc73e.2f2df8",
+ "wires": [
+ [
+ "444dfd43.933654"
+ ]
+ ]
},
{
- "id": "44d73030.0da8d",
+ "id": "444dfd43.933654",
"type": "set",
- "name": "set controlPoint",
- "xml": "<set>\n<parameter name='prop.site.controlPoint' value='`$vnf-request-input.vnf-input-parameters.param[$idx].value`' />\n\n",
+ "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": 1550.8099174499512,
- "y": 750.0315952301025,
- "z": "33fa79d5.e5dbd6",
+ "x": 1715.8573303222656,
+ "y": 440.0001336336136,
+ "z": "662bc73e.2f2df8",
"wires": []
},
{
- "id": "a9190ca.3c93df",
- "type": "execute",
- "name": "execute split roles",
- "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='split' >\n<parameter name=\"original_string\" value='`$prop.site.role`'/>\n<parameter name=\"regex\" value=\",\"/>\n<parameter name=\"ctx_memory_result_key\" value=\"prop.site.roles\"/>\n",
+ "id": "20f5a47d.bf5c7c",
+ "type": "not-found",
+ "name": "not-found",
+ "xml": "<outcome value='not-found'>\n",
"comments": "",
"outputs": 1,
- "x": 1565.4762649536133,
- "y": 707.0314292907715,
- "z": "33fa79d5.e5dbd6",
+ "x": 1530.848201751709,
+ "y": 493.5741596221924,
+ "z": "662bc73e.2f2df8",
"wires": [
- []
+ [
+ "efd0bf42.a45d2"
+ ]
]
},
{
- "id": "832f2789.d30da8",
- "type": "block",
- "name": "block : atomic",
- "xml": "<block atomic=\"true\">",
- "atomic": "true",
+ "id": "efd0bf42.a45d2",
+ "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": 1704.4196128845215,
+ "y": 481.85989570617676,
+ "z": "662bc73e.2f2df8",
+ "wires": []
+ },
+ {
+ "id": "43e41f52.73e87",
+ "type": "other",
+ "name": "other",
+ "xml": "<outcome value='Other'>\n",
+ "comments": "",
"outputs": 1,
- "x": 1312.4764022827148,
- "y": 687.0314292907715,
- "z": "33fa79d5.e5dbd6",
+ "x": 1523.181209564209,
+ "y": 534.9074726104736,
+ "z": "662bc73e.2f2df8",
"wires": [
[
- "9ab3bfdb.b8822",
- "a9190ca.3c93df"
+ "b91e604b.71e8a"
]
]
},
{
- "id": "fd4f1adb.5ec4b8",
- "type": "block",
- "name": "block : atomic",
- "xml": "<block atomic=\"true\">",
- "atomic": "true",
+ "id": "b91e604b.71e8a",
+ "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": 1710.9537658691406,
+ "y": 530.3466653823853,
+ "z": "662bc73e.2f2df8",
+ "wires": []
+ },
+ {
+ "id": "5edbf1df.1812f",
+ "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": 1324.4762382507324,
- "y": 734.0313529968262,
- "z": "33fa79d5.e5dbd6",
+ "x": 1260.3571472167969,
+ "y": 494.0001298189163,
+ "z": "662bc73e.2f2df8",
"wires": [
[
- "44d73030.0da8d",
- "2ecea48f.cefbcc"
+ "1f34e7d.f4ed818",
+ "20f5a47d.bf5c7c",
+ "43e41f52.73e87"
]
]
},
{
- "id": "2ecea48f.cefbcc",
+ "id": "850d49b7.5d6588",
"type": "execute",
- "name": "execute split control points",
- "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='split' >\n<parameter name=\"original_string\" value='`$prop.site.controlPoint`'/>\n<parameter name=\"regex\" value=\",\"/>\n<parameter name=\"ctx_memory_result_key\" value=\"prop.site.controlpoints\"/>\n",
+ "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.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": 1575.4763946533203,
- "y": 802.031455039978,
- "z": "33fa79d5.e5dbd6",
+ "x": 1288.8574905395508,
+ "y": 692.0002012252808,
+ "z": "662bc73e.2f2df8",
+ "wires": [
+ [
+ "ea765af1.578958",
+ "a315c86f.c08e38"
+ ]
+ ]
+ },
+ {
+ "id": "27adc5f9.0dcbfa",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 1782.5236206054688,
+ "y": 665.8889733552933,
+ "z": "662bc73e.2f2df8",
"wires": [
[]
]
},
{
- "id": "5bc913df.9a308c",
- "type": "switchNode",
- "name": "switch latitude",
- "xml": "<switch test=\"`$vnf-request-input.vnf-input-parameters.param[$idx].name == 'latitude'`\">\n",
+ "id": "ffec3641.8f04a8",
+ "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": 1757.96826171875,
+ "y": 727.4443560838699,
+ "z": "662bc73e.2f2df8",
+ "wires": []
+ },
+ {
+ "id": "a315c86f.c08e38",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
"comments": "",
"outputs": 1,
- "x": 1002.1428909301758,
- "y": 496.03133392333984,
- "z": "33fa79d5.e5dbd6",
+ "x": 1612.96826171875,
+ "y": 724.4443560838699,
+ "z": "662bc73e.2f2df8",
"wires": [
[
- "408fca65.ceeb84"
+ "ffec3641.8f04a8"
]
]
},
{
- "id": "408fca65.ceeb84",
- "type": "outcomeTrue",
- "name": "true",
- "xml": "<outcome value='true'>\n",
+ "id": "ea765af1.578958",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
"comments": "",
"outputs": 1,
- "x": 1178.1427383422852,
- "y": 491.03129291534424,
- "z": "33fa79d5.e5dbd6",
+ "x": 1609.4126358032227,
+ "y": 666.1111413240433,
+ "z": "662bc73e.2f2df8",
"wires": [
[
- "fff4ca4.988db38"
+ "27adc5f9.0dcbfa"
]
]
},
{
- "id": "fff4ca4.988db38",
- "type": "set",
- "name": "set location-latitude",
- "xml": "<set>\n<parameter name='prop.site.location-latitude' value='`$vnf-request-input.vnf-input-parameters.param[$idx].value`' />\n",
+ "id": "326c4c2.f406bb4",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
"comments": "",
- "x": 1352.1427459716797,
- "y": 489.63130950927734,
- "z": "33fa79d5.e5dbd6",
- "wires": []
+ "outputs": 1,
+ "x": 1526.611125946045,
+ "y": 572.0040856599808,
+ "z": "662bc73e.2f2df8",
+ "wires": [
+ [
+ "9184b52b.37e358"
+ ]
+ ]
},
{
- "id": "8619f18f.0dd93",
- "type": "switchNode",
- "name": "switch longitude",
- "xml": "<switch test=\"`$vnf-request-input.vnf-input-parameters.param[$idx].name == 'longitude'`\">\n",
+ "id": "e3754930.79e2e8",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
"comments": "",
"outputs": 1,
- "x": 1005.1428909301758,
- "y": 536.0313768386841,
- "z": "33fa79d5.e5dbd6",
+ "x": 1518.861125946045,
+ "y": 613.646968960762,
+ "z": "662bc73e.2f2df8",
"wires": [
[
- "f2c6dced.9082e"
+ "41ddc45.064fd3c"
]
]
},
{
- "id": "f2c6dced.9082e",
- "type": "outcomeTrue",
- "name": "true",
- "xml": "<outcome value='true'>\n",
+ "id": "41ddc45.064fd3c",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
"comments": "",
"outputs": 1,
- "x": 1177.1428985595703,
- "y": 531.031418800354,
- "z": "33fa79d5.e5dbd6",
+ "x": 1644.944622039795,
+ "y": 613.8930016756058,
+ "z": "662bc73e.2f2df8",
"wires": [
- [
- "dc9fd2db.e7bb7"
- ]
+ []
]
},
{
- "id": "dc9fd2db.e7bb7",
+ "id": "9184b52b.37e358",
"type": "set",
- "name": "set location-latitude",
- "xml": "<set>\n<parameter name='prop.site.location-latitude' value='`$vnf-request-input.vnf-input-parameters.param[$idx].value`' />\n",
+ "name": "set token-id",
+ "xml": "<set>\n<parameter name='prop.sdncRestApi.token_id' value='`$token-result.data.token_id`' />\n",
"comments": "",
- "x": 1359.1427536010742,
- "y": 534.6312704086304,
- "z": "33fa79d5.e5dbd6",
+ "x": 1663.611125946045,
+ "y": 572.0040856599808,
+ "z": "662bc73e.2f2df8",
"wires": []
},
{
- "id": "95b5a3d.f7b926",
- "type": "outcomeTrue",
- "name": "true",
- "xml": "<outcome value='true'>\n",
+ "id": "6736685b.bef9d8",
+ "type": "comment",
+ "name": "tmp.thirdparty-sdnc-id is hardcoded value?",
+ "info": "",
"comments": "",
+ "x": 1256.8610382080078,
+ "y": 461.0040513277054,
+ "z": "662bc73e.2f2df8",
+ "wires": []
+ },
+ {
+ "id": "92d1a385.88b4d",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
"outputs": 1,
- "x": 1168.1428985595703,
- "y": 581.031421661377,
- "z": "33fa79d5.e5dbd6",
+ "x": 983.8571472167969,
+ "y": 478.66657733917236,
+ "z": "662bc73e.2f2df8",
"wires": [
[
- "9b797058.27cec"
+ "5edbf1df.1812f",
+ "5a50b7d1.a81c28",
+ "850d49b7.5d6588"
]
]
},
{
- "id": "e75918af.752508",
- "type": "set",
- "name": "set emails",
- "xml": "<set>\n<parameter name='prop.site.emails' value='`$vnf-request-input.vnf-input-parameters.param[$idx].value`' />\n",
+ "id": "2ec82407.2cc83c",
+ "type": "save",
+ "name": "update siteInstance configuration in AAI",
+ "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='site-resource' \n key='site-resource.id = $vnf-topology-operation-input.vnf-information.vnf-id' >\n<parameter name='id' value='`$vnf-topology-operation-input.vnf-information.vnf-id`' /> \n<parameter name='operational-status' value='PendingDelete' />\n",
"comments": "",
- "x": 1526.142593383789,
- "y": 549.6312737464905,
- "z": "33fa79d5.e5dbd6",
- "wires": []
+ "outputs": 1,
+ "x": 663.8571701049805,
+ "y": 711.0001020431519,
+ "z": "662bc73e.2f2df8",
+ "wires": [
+ []
+ ]
},
{
- "id": "1ee73b7b.ea9285",
+ "id": "b37adbd9.2464a8",
"type": "switchNode",
- "name": "switch emails",
- "xml": "<switch test=\"`$vnf-request-input.vnf-input-parameters.param[$idx].name == 'emails'`\">\n",
+ "name": "switch siteId",
+ "xml": "<switch test=\"`$service-data.vnfs.vnf[$tmp.vidx].vnf-data.vnf-request-input.vnf-input-parameters.param[$idx].name == 'siteId'`\">\n",
"comments": "",
"outputs": 1,
- "x": 995.1429672241211,
- "y": 581.031421661377,
- "z": "33fa79d5.e5dbd6",
+ "x": 1011.8700637817383,
+ "y": 396.8953676223755,
+ "z": "662bc73e.2f2df8",
"wires": [
[
- "95b5a3d.f7b926"
+ "a2554bc6.d49ce8"
]
]
},
{
- "id": "931cb5f.e240e48",
- "type": "execute",
- "name": "execute split emails",
- "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='split' >\n<parameter name=\"original_string\" value='`$prop.site.emails`'/>\n<parameter name=\"regex\" value=\",\"/>\n<parameter name=\"ctx_memory_result_key\" value=\"prop.site.email\"/>\n",
+ "id": "a2554bc6.d49ce8",
+ "type": "outcomeTrue",
+ "name": "true",
+ "xml": "<outcome value='true'>\n",
"comments": "",
"outputs": 1,
- "x": 1551.808937072754,
- "y": 596.0311765670776,
- "z": "33fa79d5.e5dbd6",
+ "x": 1151.8700714111328,
+ "y": 397.8953676223755,
+ "z": "662bc73e.2f2df8",
"wires": [
- []
+ [
+ "6ecb0b06.7fedc4"
+ ]
]
},
{
- "id": "9b797058.27cec",
+ "id": "6ecb0b06.7fedc4",
"type": "block",
"name": "block : atomic",
"xml": "<block atomic=\"true\">",
"atomic": "true",
"outputs": 1,
- "x": 1330.1429061889648,
- "y": 582.0313391685486,
- "z": "33fa79d5.e5dbd6",
+ "x": 1300.419719696045,
+ "y": 398.9220609664917,
+ "z": "662bc73e.2f2df8",
"wires": [
[
- "e75918af.752508",
- "931cb5f.e240e48"
+ "83210993.fce798"
]
]
},
{
- "id": "cd952f17.46c77",
- "type": "switchNode",
- "name": "switch description",
- "xml": "<switch test=\"`$vnf-request-input.vnf-input-parameters.param[$idx].name == 'description'`\">\n",
+ "id": "83210993.fce798",
+ "type": "set",
+ "name": "set siteId",
+ "xml": "<set>\n<parameter name='prop.site.siteId' value='`$service-data.vnfs.vnf[$tmp.vidx].vnf-data.vnf-request-input.vnf-input-parameters.param[$idx].value`' />\n\n",
"comments": "",
- "outputs": 1,
- "x": 1010.03125,
- "y": 286.03125,
- "z": "33fa79d5.e5dbd6",
- "wires": [
- [
- "e92216b6.4260b8"
- ]
- ]
+ "x": 1444.7530822753906,
+ "y": 399.9220781326294,
+ "z": "662bc73e.2f2df8",
+ "wires": []
},
{
- "id": "e92216b6.4260b8",
- "type": "outcomeTrue",
- "name": "true",
- "xml": "<outcome value='true'>\n",
+ "id": "48d793e7.102a6c",
+ "type": "comment",
+ "name": "Get siteId to delete",
+ "info": "",
+ "comments": "",
+ "x": 1023.857048034668,
+ "y": 366.0000238418579,
+ "z": "662bc73e.2f2df8",
+ "wires": []
+ },
+ {
+ "id": "5a50b7d1.a81c28",
+ "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": 1152.03125,
- "y": 287.03125,
- "z": "33fa79d5.e5dbd6",
+ "x": 1277.0000762939453,
+ "y": 595.0000381469727,
+ "z": "662bc73e.2f2df8",
"wires": [
[
- "adffc0ee.7e0ff"
+ "326c4c2.f406bb4",
+ "e3754930.79e2e8"
]
]
},
{
- "id": "adffc0ee.7e0ff",
- "type": "set",
- "name": "set description",
- "xml": "<set>\n<parameter name='prop.device.description' value='`$vnf-request-input.vnf-input-parameters.param[$idx].value`' />\n",
+ "id": "ab2363bc.936b4",
+ "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": "",
- "x": 1286.03125,
- "y": 287.6312561035156,
- "z": "33fa79d5.e5dbd6",
- "wires": []
+ "outputs": 1,
+ "x": 617,
+ "y": 232,
+ "z": "662bc73e.2f2df8",
+ "wires": [
+ []
+ ]
}
]