summaryrefslogtreecommitdiffstats
path: root/platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_bbs-access-connectivity-vnf-topology-operation-delete-huawei.json
diff options
context:
space:
mode:
Diffstat (limited to 'platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_bbs-access-connectivity-vnf-topology-operation-delete-huawei.json')
-rw-r--r--platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_bbs-access-connectivity-vnf-topology-operation-delete-huawei.json929
1 files changed, 929 insertions, 0 deletions
diff --git a/platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_bbs-access-connectivity-vnf-topology-operation-delete-huawei.json b/platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_bbs-access-connectivity-vnf-topology-operation-delete-huawei.json
new file mode 100644
index 00000000..6f8e2913
--- /dev/null
+++ b/platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_bbs-access-connectivity-vnf-topology-operation-delete-huawei.json
@@ -0,0 +1,929 @@
+[
+ {
+ "id": "bc4c5d4f.d1f19",
+ "type": "dgstart",
+ "name": "DGSTART",
+ "outputs": 1,
+ "x": 102.75,
+ "y": 220.99998664855957,
+ "z": "910bbedd.5fbce8",
+ "wires": [
+ [
+ "38c45b07.ed34e4"
+ ]
+ ]
+ },
+ {
+ "id": "38c45b07.ed34e4",
+ "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": 490.74988174438477,
+ "y": 220.99999141693115,
+ "z": "910bbedd.5fbce8",
+ "wires": [
+ [
+ "c3a71c48.0be57"
+ ]
+ ]
+ },
+ {
+ "id": "c3a71c48.0be57",
+ "type": "method",
+ "name": "method:bbs-access-connectivity-vnf-topology-operation-delete-huawei",
+ "xml": "<method rpc='bbs-access-connectivity-vnf-topology-operation-delete-huawei' mode='sync'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 453.74988174438477,
+ "y": 339.99999141693115,
+ "z": "910bbedd.5fbce8",
+ "wires": [
+ [
+ "1015d7d8.bba218"
+ ]
+ ]
+ },
+ {
+ "id": "1015d7d8.bba218",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 851.7499885559082,
+ "y": 338.99999141693115,
+ "z": "910bbedd.5fbce8",
+ "wires": [
+ [
+ "6803db15.0d8f74",
+ "681e5161.fa20d",
+ "a6b40423.ac2ca8",
+ "374f03c.b97d77c",
+ "2e181216.27ccce",
+ "188e79ba.5e9486",
+ "b4b9141a.0cfd8",
+ "653e84f8.bbdd14",
+ "d2d50667.fd62f"
+ ]
+ ]
+ },
+ {
+ "id": "6803db15.0d8f74",
+ "type": "execute",
+ "name": "excute:readProperties",
+ "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\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1293.750286102295,
+ "y": 193.1110725402832,
+ "z": "910bbedd.5fbce8",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "188e79ba.5e9486",
+ "type": "for",
+ "name": "for:vnf-input-paramters",
+ "xml": "<for index='idx' start='0' end='`$vnf-input-parameters.param_length`' >\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1297.7503089904785,
+ "y": 414.9999179840088,
+ "z": "910bbedd.5fbce8",
+ "wires": [
+ [
+ "d9d4b7b.6b23c48"
+ ]
+ ]
+ },
+ {
+ "id": "2e181216.27ccce",
+ "type": "execute",
+ "name": "execute:querryTokenID",
+ "xml": " <execute plugin=\"org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode\" method=\"sendRequest\">\n <parameter name=\"templateFileName\" value=\"`$prop.restapi.templateDir + '/bbs-token-template.json'`\"/>\n <parameter name=\"restapiUrl\" value=\"`$prop.sdncRestApi.thirdpartySdnc.url+'/rest/plat/smapp/v1/oauth/token'`\"/>\n <parameter name=\"format\" value=\"json\"/>\n <parameter name=\"httpMethod\" value=\"put\"/>\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\"/>\n\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1288.7503089904785,
+ "y": 324.9999942779541,
+ "z": "910bbedd.5fbce8",
+ "wires": [
+ [
+ "4f1fa17d.4f00e8",
+ "b7d32671.97a41"
+ ]
+ ]
+ },
+ {
+ "id": "b7d32671.97a41",
+ "type": "outcome",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1587.916934967041,
+ "y": 321.2499942779541,
+ "z": "910bbedd.5fbce8",
+ "wires": [
+ [
+ "21337368.af64c4"
+ ]
+ ]
+ },
+ {
+ "id": "4f1fa17d.4f00e8",
+ "type": "outcome",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1583.916934967041,
+ "y": 215.24996376037598,
+ "z": "910bbedd.5fbce8",
+ "wires": [
+ [
+ "d9ad86f3.bd8048"
+ ]
+ ]
+ },
+ {
+ "id": "5ebb3e61.f6be88",
+ "type": "returnFailure",
+ "name": "return failure",
+ "xml": "<return status='failure'>\n<parameter name='ack-final' value='Y'/>\n<parameter name=\"error-code\" value=\"500\" />\n<parameter name=\"error-message\" value=\"Error executing queryTokenID,vaule is null\" />\n",
+ "comments": "",
+ "x": 2131.0307388305664,
+ "y": 263.6136484146118,
+ "z": "910bbedd.5fbce8",
+ "wires": []
+ },
+ {
+ "id": "4f940f96.eff4d",
+ "type": "outcome",
+ "name": "NULL",
+ "xml": "<outcome value=''>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1954.750316619873,
+ "y": 263.99995040893555,
+ "z": "910bbedd.5fbce8",
+ "wires": [
+ [
+ "5ebb3e61.f6be88"
+ ]
+ ]
+ },
+ {
+ "id": "21337368.af64c4",
+ "type": "switchNode",
+ "name": "switch:token ",
+ "xml": "<switch test='`$token-result.accessSession`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1783.7503356933594,
+ "y": 322.99993896484375,
+ "z": "910bbedd.5fbce8",
+ "wires": [
+ [
+ "4f940f96.eff4d",
+ "c7c2da18.3fe03"
+ ]
+ ]
+ },
+ {
+ "id": "c7c2da18.3fe03",
+ "type": "outcome",
+ "name": "Other",
+ "xml": "<outcome value='Other'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1955.750316619873,
+ "y": 320.99995040893555,
+ "z": "910bbedd.5fbce8",
+ "wires": [
+ [
+ "626983c2.287bfc"
+ ]
+ ]
+ },
+ {
+ "id": "626983c2.287bfc",
+ "type": "set",
+ "name": "set:token-id",
+ "xml": "<set>\n<parameter name='prop.sdncRestApi.token_id' value='`$token-result.accessSession`' />\n",
+ "comments": "",
+ "x": 2130.2503089904785,
+ "y": 320.2499942779541,
+ "z": "910bbedd.5fbce8",
+ "wires": []
+ },
+ {
+ "id": "8811eeaf.bc7fe",
+ "type": "record",
+ "name": "log file",
+ "xml": " <record plugin=\"org.onap.ccsdk.sli.core.sli.recording.FileRecorder\">\n <parameter name=\"file\" value=\"/opt/oak/logx.txt\" />\n <parameter name=\"field1\" value=\"__TIMESTAMP__\" />\n <parameter name=\"field2\" value=\"sucess executing Get token rest api\" />\n <parameter name=\"field3\" value=\"`$token-result.accessSession`\" />\n ",
+ "comments": "",
+ "outputs": 1,
+ "x": 2341.7503089904785,
+ "y": 317.99993324279785,
+ "z": "910bbedd.5fbce8",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "374f03c.b97d77c",
+ "type": "set",
+ "name": "set:variables",
+ "xml": "<set>\n<parameter name='prop.sdncRestApi.thirdpartySdnc.url' value='https://172.30.0.55:26335' />\n<parameter name='vnf-input-parameters.' value='`$vnf-topology-operation-input.vnf-request-input.vnf-input-parameters.`' />\n",
+ "comments": "",
+ "x": 1259.750286102295,
+ "y": 113.00014877319336,
+ "z": "910bbedd.5fbce8",
+ "wires": []
+ },
+ {
+ "id": "d2d50667.fd62f",
+ "type": "execute",
+ "name": "execute:deleteAccessConnectivityService",
+ "xml": "<execute plugin=\"org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode\" method=\"sendRequest\">\n <parameter name=\"restapiUrl\" value=\"`$prop.sdncRestApi.thirdpartySdnc.url + '/ws/rest/1002/FanOpenAPI/DeactivateOnt?serviceID='+$prop.bbs.serviceID`\" />\n <parameter name=\"httpMethod\" value=\"get\"/>\n <parameter name=\"contentType\" value=\"application/x-www-form-urlencoded\"/>\n <parameter name=\"responsePrefix\" value=\"service-result\"/>\n <parameter name=\"customHttpHeaders\" value=\"`'X-Auth-Token=' + $prop.sdncRestApi.token_id`\"/>\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": 1353.7506103515625,
+ "y": 562.0001220703125,
+ "z": "910bbedd.5fbce8",
+ "wires": [
+ [
+ "6a07c07d.4ffc58",
+ "3aea3fb0.9f27a8"
+ ]
+ ]
+ },
+ {
+ "id": "6a07c07d.4ffc58",
+ "type": "outcome",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1654.750587463379,
+ "y": 535.000078201294,
+ "z": "910bbedd.5fbce8",
+ "wires": [
+ [
+ "144af758.7f6181"
+ ]
+ ]
+ },
+ {
+ "id": "3aea3fb0.9f27a8",
+ "type": "outcome",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1654.750560760498,
+ "y": 594.0000779628754,
+ "z": "910bbedd.5fbce8",
+ "wires": [
+ [
+ "47b72aff.6069ec"
+ ]
+ ]
+ },
+ {
+ "id": "106fbc3e.7d35bc",
+ "type": "outcome",
+ "name": "NULL",
+ "xml": "<outcome value=''>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2140.7506713867188,
+ "y": 491.00001215934753,
+ "z": "910bbedd.5fbce8",
+ "wires": [
+ [
+ "bdf75bc7.7d075"
+ ]
+ ]
+ },
+ {
+ "id": "bdf75bc7.7d075",
+ "type": "returnFailure",
+ "name": "return failure",
+ "xml": "<return status='failure'>\n<parameter name='ack-final' value='Y'/>\n<parameter name=\"error-code\" value=\"500\" />\n<parameter name=\"error-message\" value=\"$vnf-input-parameters.param[$idx].name +' value is null, please check it.'\" />\n",
+ "comments": "",
+ "x": 2325.6596183776855,
+ "y": 490.90906524658203,
+ "z": "910bbedd.5fbce8",
+ "wires": []
+ },
+ {
+ "id": "d9d4b7b.6b23c48",
+ "type": "switchNode",
+ "name": "switch:serviceID",
+ "xml": "<switch test=\"`$vnf-input-parameters.param[$idx].name == 'serviceID'`\">\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1572.7503356933594,
+ "y": 414.0000057220459,
+ "z": "910bbedd.5fbce8",
+ "wires": [
+ [
+ "750b21bf.a6927"
+ ]
+ ]
+ },
+ {
+ "id": "750b21bf.a6927",
+ "type": "outcomeTrue",
+ "name": "true",
+ "xml": "<outcome value='true'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1745.750220298767,
+ "y": 413.00000381469727,
+ "z": "910bbedd.5fbce8",
+ "wires": [
+ [
+ "1f68191d.946c67"
+ ]
+ ]
+ },
+ {
+ "id": "36a67602.b4e502",
+ "type": "set",
+ "name": "set:serviceID",
+ "xml": "<set>\n<parameter name='prop.bbs.serviceID' value='`$vnf-input-parameters.param[$idx].value`' />\n",
+ "comments": "",
+ "x": 2316.750186920166,
+ "y": 412.6000156402588,
+ "z": "910bbedd.5fbce8",
+ "wires": []
+ },
+ {
+ "id": "1f68191d.946c67",
+ "type": "switchNode",
+ "name": "switch:serviceID value",
+ "xml": "<switch test='`$vnf-input-parameters.param[$idx].value`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1927.8984375,
+ "y": 412.7776794433594,
+ "z": "910bbedd.5fbce8",
+ "wires": [
+ [
+ "ea1ff2ea.50521",
+ "106fbc3e.7d35bc"
+ ]
+ ]
+ },
+ {
+ "id": "ea1ff2ea.50521",
+ "type": "outcome",
+ "name": "Other",
+ "xml": "<outcome value='Other'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2134.898380279541,
+ "y": 413.77768898010254,
+ "z": "910bbedd.5fbce8",
+ "wires": [
+ [
+ "36a67602.b4e502"
+ ]
+ ]
+ },
+ {
+ "id": "681e5161.fa20d",
+ "type": "call",
+ "name": "call:validate-bbs-vnf-input-parameters",
+ "xml": "<call module='GENERIC-RESOURCE-API' rpc='validate-bbs-vnf-input-parameters' mode='sync' >\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1364.2499694824219,
+ "y": 47,
+ "z": "910bbedd.5fbce8",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "47b72aff.6069ec",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 1831.250358581543,
+ "y": 595.000256061554,
+ "z": "910bbedd.5fbce8",
+ "wires": [
+ [
+ "303e36f6.0c3352"
+ ]
+ ]
+ },
+ {
+ "id": "303e36f6.0c3352",
+ "type": "switchNode",
+ "name": "switch:service-result",
+ "xml": "<switch test=\"`$service-result.errors.error[0].error-message`\">\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2049.2502365112305,
+ "y": 594.0001034736633,
+ "z": "910bbedd.5fbce8",
+ "wires": [
+ [
+ "68e091fa.27fed8",
+ "ab19b7c4.709eb"
+ ]
+ ]
+ },
+ {
+ "id": "68e091fa.27fed8",
+ "type": "outcome",
+ "name": "Other",
+ "xml": "<outcome value='Other'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2283.2502822875977,
+ "y": 595.000063419342,
+ "z": "910bbedd.5fbce8",
+ "wires": [
+ [
+ "8fc10bf.11b3578"
+ ]
+ ]
+ },
+ {
+ "id": "ab19b7c4.709eb",
+ "type": "outcome",
+ "name": "NULL",
+ "xml": "<outcome value=''>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2285.2502822875977,
+ "y": 681.000063419342,
+ "z": "910bbedd.5fbce8",
+ "wires": [
+ [
+ "40892b06.efda94"
+ ]
+ ]
+ },
+ {
+ "id": "301afc46.923fdc",
+ "type": "record",
+ "name": "log error",
+ "xml": " <record plugin=\"org.onap.ccsdk.sli.core.sli.recording.FileRecorder\">\n <parameter name=\"file\" value=\"/opt/oak/logx.txt\" />\n <parameter name=\"field1\" value=\"deleteAccessConnectivityService falied!\" />\n <parameter name=\"field2\" value=\"`$service-result.errors.error[0].error-info.error-code`\" />\n <parameter name=\"field3\" value=\"`$service-result.errors.error[0].error-message`\" />\n <parameter name=\"field4\" value=\"`$service-result.errors.error[0].error-tag`\" />\n ",
+ "comments": "",
+ "outputs": 1,
+ "x": 2723.25044631958,
+ "y": 582.0000801086426,
+ "z": "910bbedd.5fbce8",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "a6b40423.ac2ca8",
+ "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": 1257.2501220703125,
+ "y": 1178,
+ "z": "910bbedd.5fbce8",
+ "wires": []
+ },
+ {
+ "id": "8fc10bf.11b3578",
+ "type": "returnFailure",
+ "name": "return failure",
+ "xml": "<return status='failure'>\n<parameter name='ack-final' value='Y'/>\n<parameter name=\"error-code\" value=\"500\" />\n<parameter name=\"error-message\" value=\"`'Error deleteAccessConnectivityService return: '+$service-result.errors.error[0].error-message`\" />\n\n",
+ "comments": "",
+ "x": 2483.24995803833,
+ "y": 594.9999980926514,
+ "z": "910bbedd.5fbce8",
+ "wires": []
+ },
+ {
+ "id": "40892b06.efda94",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 2469.2499771118164,
+ "y": 680.2726716995239,
+ "z": "910bbedd.5fbce8",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "d9ad86f3.bd8048",
+ "type": "returnFailure",
+ "name": "return failure",
+ "xml": "<return status='failure'>\n<parameter name='ack-final' value='Y'/>\n<parameter name=\"error-code\" value=\"500\" />\n<parameter name=\"error-message\" value=\"Error failed to call queryTokenID\" />\n",
+ "comments": "",
+ "x": 1776.414794921875,
+ "y": 218.1193084716797,
+ "z": "910bbedd.5fbce8",
+ "wires": []
+ },
+ {
+ "id": "144af758.7f6181",
+ "type": "returnFailure",
+ "name": "return failure",
+ "xml": "<return status='failure'>\n<parameter name='ack-final' value='Y'/>\n<parameter name=\"error-code\" value=\"500\" />\n<parameter name=\"error-message\" value=\"Error failed to call deleteAccessConnectivityService\" />\n",
+ "comments": "",
+ "x": 1825.022705078125,
+ "y": 533.3635730743408,
+ "z": "910bbedd.5fbce8",
+ "wires": []
+ },
+ {
+ "id": "b6c16596.5c7c28",
+ "type": "record",
+ "name": "log file",
+ "xml": " <record plugin=\"org.onap.ccsdk.sli.core.sli.recording.FileRecorder\">\n <parameter name=\"file\" value=\"/opt/oak/logx.txt\" />\n <parameter name=\"field1\" value=\"deleteAccessConnectivityService success!\" />\n ",
+ "comments": "",
+ "outputs": 1,
+ "x": 2688.250503540039,
+ "y": 678.000147819519,
+ "z": "910bbedd.5fbce8",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "653e84f8.bbdd14",
+ "type": "update",
+ "name": "deleteResourceAAI",
+ "xml": "<delete plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\t\tresource=\"generic-vnf\" \n\t\tkey=\"generic-vnf.vnf-id = $prop.bbs.accessConnectivityVNFId\">",
+ "comments": "",
+ "outputs": 1,
+ "x": 1277.5,
+ "y": 1009.00390625,
+ "z": "910bbedd.5fbce8",
+ "wires": [
+ [
+ "b41b6e9c.1adb4",
+ "88408d5b.2bbfc"
+ ]
+ ]
+ },
+ {
+ "id": "f48317c3.07c1f8",
+ "type": "comment",
+ "name": "delete resource from AAI",
+ "info": "",
+ "comments": "",
+ "x": 1289.5,
+ "y": 831.00390625,
+ "z": "910bbedd.5fbce8",
+ "wires": []
+ },
+ {
+ "id": "1310b851.c4289",
+ "type": "for",
+ "name": "for relationship-list",
+ "xml": "<for silentFailure='true' index='ridx' start='0' end=\"`$aai.service-instance.relationship-list.relationship_length`\" >\n\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1897.2501983642578,
+ "y": 801.0040102005005,
+ "z": "910bbedd.5fbce8",
+ "wires": [
+ [
+ "ae25bd57.d493d"
+ ]
+ ]
+ },
+ {
+ "id": "2fcbbd67.547f72",
+ "type": "comment",
+ "name": "get generic-vnf of type AccessConnectivity",
+ "info": "",
+ "comments": "",
+ "x": 1965.2501068115234,
+ "y": 754.0039329528809,
+ "z": "910bbedd.5fbce8",
+ "wires": []
+ },
+ {
+ "id": "b4b9141a.0cfd8",
+ "type": "update",
+ "name": "get AAI service-instance",
+ "xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\t\tresource=\"service-instance\" \n\t\tkey=\"customer.global-customer-id = $vnf-topology-operation-input.service-information.global-customer-id AND\n\t\t\tservice-subscription.service-type = $vnf-topology-operation-input.service-information.subscription-service-type AND\n\t\t\tservice-instance.service-instance-id = $vnf-topology-operation-input.service-information.service-instance-id\"\n pfx='aai.service-instance' local-only='false' >",
+ "comments": "",
+ "outputs": 1,
+ "x": 1290.25,
+ "y": 748.0040283203125,
+ "z": "910bbedd.5fbce8",
+ "wires": [
+ [
+ "cb45bd7f.6bb5c",
+ "f400169e.cf5978"
+ ]
+ ]
+ },
+ {
+ "id": "55a732ae.2107cc",
+ "type": "comment",
+ "name": "fetch relationship-list",
+ "info": "",
+ "comments": "",
+ "x": 1281.25,
+ "y": 635.00390625,
+ "z": "910bbedd.5fbce8",
+ "wires": []
+ },
+ {
+ "id": "cb45bd7f.6bb5c",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1550.250244140625,
+ "y": 695.00390625,
+ "z": "910bbedd.5fbce8",
+ "wires": [
+ [
+ "7f971e3d.47d1a"
+ ]
+ ]
+ },
+ {
+ "id": "7f971e3d.47d1a",
+ "type": "returnFailure",
+ "name": "return failure",
+ "xml": "<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value='' />\n",
+ "comments": "",
+ "x": 1728.25,
+ "y": 699.00390625,
+ "z": "910bbedd.5fbce8",
+ "wires": []
+ },
+ {
+ "id": "f400169e.cf5978",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1544.5001029968262,
+ "y": 800.7538871765137,
+ "z": "910bbedd.5fbce8",
+ "wires": [
+ [
+ "52fa2c61.864a04"
+ ]
+ ]
+ },
+ {
+ "id": "52fa2c61.864a04",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 1709.500072479248,
+ "y": 800.7539024353027,
+ "z": "910bbedd.5fbce8",
+ "wires": [
+ [
+ "1310b851.c4289"
+ ]
+ ]
+ },
+ {
+ "id": "ae25bd57.d493d",
+ "type": "for",
+ "name": "for relationship data",
+ "xml": "<for silentFailure='false' index='rdidx' start='0' end=\"`$aai.service-instance.relationship-list.relationship[$ridx].relationship-data_length`\" >",
+ "comments": "",
+ "outputs": 1,
+ "x": 2104.500244140625,
+ "y": 801.7539672851562,
+ "z": "910bbedd.5fbce8",
+ "wires": [
+ [
+ "f5970165.f7806"
+ ]
+ ]
+ },
+ {
+ "id": "8a56e636.4f7278",
+ "type": "switchNode",
+ "name": "switch vnf-id",
+ "xml": "<switch test='`$aai.service-instance.relationship-list.relationship[$ridx].relationship-data[$rdidx].relationship-key`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2368.5000228881836,
+ "y": 803.7539052963257,
+ "z": "910bbedd.5fbce8",
+ "wires": [
+ [
+ "75f76578.cb5554"
+ ]
+ ]
+ },
+ {
+ "id": "75f76578.cb5554",
+ "type": "other",
+ "name": "generic-vnf.vnf-id",
+ "xml": "<outcome value='generic-vnf.vnf-id'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2561.5,
+ "y": 802.75390625,
+ "z": "910bbedd.5fbce8",
+ "wires": [
+ [
+ "dead2f7a.e665e8"
+ ]
+ ]
+ },
+ {
+ "id": "dead2f7a.e665e8",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 2746.4999923706055,
+ "y": 802.7539052963257,
+ "z": "910bbedd.5fbce8",
+ "wires": [
+ [
+ "eae921f2.e87618"
+ ]
+ ]
+ },
+ {
+ "id": "eae921f2.e87618",
+ "type": "update",
+ "name": "get AAI generic-vnf",
+ "xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\t\tresource=\"generic-vnf\" \n\t\tkey=\"generic-vnf.vnf-id = $aai.service-instance.relationship-list.relationship[$ridx].relationship-data[$rdidx].relationship-value\"\n pfx='aai.generic-vnf' local-only='false' >",
+ "comments": "",
+ "outputs": 1,
+ "x": 2954,
+ "y": 803.75390625,
+ "z": "910bbedd.5fbce8",
+ "wires": [
+ [
+ "b9ebb66b.17626"
+ ]
+ ]
+ },
+ {
+ "id": "7851584b.b526c8",
+ "type": "switchNode",
+ "name": "switch vnf-type",
+ "xml": "<switch test='`$aai.generic-vnf.vnf-type`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 3426.5009765625,
+ "y": 882.75390625,
+ "z": "910bbedd.5fbce8",
+ "wires": [
+ [
+ "a3dcce28.fb6658"
+ ]
+ ]
+ },
+ {
+ "id": "a3dcce28.fb6658",
+ "type": "other",
+ "name": "AccessConnectivity",
+ "xml": "<outcome value='AccessConnectivity'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 3618.500648498535,
+ "y": 871.7539482116699,
+ "z": "910bbedd.5fbce8",
+ "wires": [
+ [
+ "bea7fa49.6293f"
+ ]
+ ]
+ },
+ {
+ "id": "bea7fa49.6293f",
+ "type": "set",
+ "name": "set AccessConnectivity vnf-id",
+ "xml": "<set>\n<parameter name='prop.bbs.accessConnectivityVNFId' value='`$aai.generic-vnf.vnf-id`' />\n",
+ "comments": "",
+ "x": 3862.500160217285,
+ "y": 869.7538728713989,
+ "z": "910bbedd.5fbce8",
+ "wires": []
+ },
+ {
+ "id": "88408d5b.2bbfc",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1495.5,
+ "y": 978.00390625,
+ "z": "910bbedd.5fbce8",
+ "wires": [
+ [
+ "574ff2aa.24627c"
+ ]
+ ]
+ },
+ {
+ "id": "b41b6e9c.1adb4",
+ "type": "not-found",
+ "name": "not-found",
+ "xml": "<outcome value='not-found'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1499.5,
+ "y": 1041.00390625,
+ "z": "910bbedd.5fbce8",
+ "wires": [
+ [
+ "574ff2aa.24627c"
+ ]
+ ]
+ },
+ {
+ "id": "574ff2aa.24627c",
+ "type": "returnFailure",
+ "name": "return failure",
+ "xml": "<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value='' />\n",
+ "comments": "",
+ "x": 1720.5,
+ "y": 1008.00390625,
+ "z": "910bbedd.5fbce8",
+ "wires": []
+ },
+ {
+ "id": "f5970165.f7806",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 2254.75,
+ "y": 837.2539043426514,
+ "z": "910bbedd.5fbce8",
+ "wires": [
+ [
+ "8a56e636.4f7278"
+ ]
+ ]
+ },
+ {
+ "id": "7ba155f0.72fa54",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 3241.5000381469727,
+ "y": 878.2539186477661,
+ "z": "910bbedd.5fbce8",
+ "wires": [
+ [
+ "7851584b.b526c8"
+ ]
+ ]
+ },
+ {
+ "id": "b9ebb66b.17626",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 3144.5,
+ "y": 802.0039043426514,
+ "z": "910bbedd.5fbce8",
+ "wires": [
+ [
+ "7ba155f0.72fa54"
+ ]
+ ]
+ }
+] \ No newline at end of file