aboutsummaryrefslogtreecommitdiffstats
path: root/platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_bbs-internet-profile-network-topology-operation-create-huawei.json
diff options
context:
space:
mode:
Diffstat (limited to 'platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_bbs-internet-profile-network-topology-operation-create-huawei.json')
-rw-r--r--platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_bbs-internet-profile-network-topology-operation-create-huawei.json449
1 files changed, 265 insertions, 184 deletions
diff --git a/platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_bbs-internet-profile-network-topology-operation-create-huawei.json b/platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_bbs-internet-profile-network-topology-operation-create-huawei.json
index 49090932..1e7e189f 100644
--- a/platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_bbs-internet-profile-network-topology-operation-create-huawei.json
+++ b/platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_bbs-internet-profile-network-topology-operation-create-huawei.json
@@ -1,20 +1,20 @@
[
{
- "id": "89575381.22e988",
+ "id": "a336222.57d48e",
"type": "dgstart",
"name": "DGSTART",
"outputs": 1,
- "x": 825,
- "y": 430,
- "z": "b2abc2ea.cc1c28",
+ "x": 223.03125,
+ "y": 256.03125,
+ "z": "aab7ce65.cac3d",
"wires": [
[
- "62fc8ed2.1c1c7"
+ "825ef52.3a00b08"
]
]
},
{
- "id": "62fc8ed2.1c1c7",
+ "id": "825ef52.3a00b08",
"type": "service-logic",
"name": "GENERIC-RESOURCE-API ${project.version}",
"module": "GENERIC-RESOURCE-API",
@@ -22,522 +22,603 @@
"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": 1184.9996490478516,
- "y": 431.0000219345093,
- "z": "b2abc2ea.cc1c28",
+ "x": 583.0308990478516,
+ "y": 257.0312719345093,
+ "z": "aab7ce65.cac3d",
"wires": [
[
- "9c1ae725.2fe18"
+ "b1e4bf68.32817"
]
]
},
{
- "id": "9c1ae725.2fe18",
+ "id": "b1e4bf68.32817",
"type": "method",
"name": "method:bbs-internet-profile-network-topology-operation-create-huawei",
"xml": "<method rpc='bbs-internet-profile-network-topology-operation-create-huawei' mode='sync'>\n",
"comments": "",
"outputs": 1,
- "x": 1182.9996643066406,
- "y": 651.0000991821289,
- "z": "b2abc2ea.cc1c28",
+ "x": 581.0309143066406,
+ "y": 477.0313491821289,
+ "z": "aab7ce65.cac3d",
"wires": [
[
- "11984569.4d6beb"
+ "5c27c5cc.716a9c"
]
]
},
{
- "id": "11984569.4d6beb",
+ "id": "5c27c5cc.716a9c",
"type": "block",
"name": "block : atomic",
"xml": "<block atomic=\"true\">\n",
"atomic": "false",
"comments": "",
"outputs": 1,
- "x": 1606.9998626708984,
- "y": 650.0000991821289,
- "z": "b2abc2ea.cc1c28",
+ "x": 1005.0311126708984,
+ "y": 476.0313491821289,
+ "z": "aab7ce65.cac3d",
"wires": [
[
- "673fbee.7c17dc",
- "3a7cb4b2.9f805c",
- "9d9c04a.550a178",
- "7117f977.4492b8"
+ "df661865.6ac258",
+ "ace54c5f.9cbb7",
+ "b56478eb.baf7f8",
+ "67bc1d3.308aae4"
]
]
},
{
- "id": "673fbee.7c17dc",
+ "id": "df661865.6ac258",
"type": "call",
"name": "call:bbs-internet-profile-network-topology-operation-common-huawei",
"xml": "<call module='GENERIC-RESOURCE-API' rpc='bbs-internet-profile-network-topology-operation-common-huawei' mode='sync' >\n",
"comments": "",
"outputs": 1,
- "x": 2123.0001525878906,
- "y": 563.0000190734863,
- "z": "b2abc2ea.cc1c28",
+ "x": 1521.0314025878906,
+ "y": 389.0312690734863,
+ "z": "aab7ce65.cac3d",
"wires": [
[]
]
},
{
- "id": "3a7cb4b2.9f805c",
+ "id": "ace54c5f.9cbb7",
"type": "execute",
"name": "execute:CreateInternetProfileInstance",
"xml": "<execute plugin=\"org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode\" method=\"sendRequest\">\n <parameter name=\"templateFileName\" value=\"`$prop.restapi.templateDir + '/bbs-internet-profile-operation.json'`\" />\n <parameter name=\"restapiUrl\" value=\"`$prop.sdncRestApi.thirdpartySdnc.url + '/CreateInternetProfileInstance'`\" />\n <parameter name=\"contentType\" value=\"application/json\"/>\n <parameter name=\"httpMethod\" value=\"post\"/>\n <parameter name=\"responsePrefix\" value=\"service-result\"/>",
"comments": "",
"outputs": 1,
- "x": 2012.6507873535156,
- "y": 648.9608345031738,
- "z": "b2abc2ea.cc1c28",
+ "x": 1410.6820373535156,
+ "y": 474.9920845031738,
+ "z": "aab7ce65.cac3d",
"wires": [
[
- "5cb835fe.0ebfdc",
- "4e297705.0757e8"
+ "d900182d.b78f38",
+ "632d7421.f9066c"
]
]
},
{
- "id": "4e297705.0757e8",
+ "id": "632d7421.f9066c",
"type": "outcome",
"name": "failure",
"xml": "<outcome value='failure'>\n",
"comments": "",
"outputs": 1,
- "x": 2313.9837684631348,
- "y": 648.9608345031738,
- "z": "b2abc2ea.cc1c28",
+ "x": 1712.0150184631348,
+ "y": 474.9920845031738,
+ "z": "aab7ce65.cac3d",
"wires": [
[
- "340c0c87.92c8b4"
+ "ab6b3ce2.e4f21"
]
]
},
{
- "id": "5cb835fe.0ebfdc",
+ "id": "d900182d.b78f38",
"type": "outcome",
"name": "success",
"xml": "<outcome value='success'>\n",
"comments": "",
"outputs": 1,
- "x": 2322.9836807250977,
- "y": 723.9608364105225,
- "z": "b2abc2ea.cc1c28",
+ "x": 1721.0149307250977,
+ "y": 549.9920864105225,
+ "z": "aab7ce65.cac3d",
"wires": [
[
- "8f2db25f.f4b24"
+ "3236773.1989488"
]
]
},
{
- "id": "8f2db25f.f4b24",
+ "id": "3236773.1989488",
"type": "switchNode",
"name": "switch:service-result",
"xml": "<switch test=\"`$service-result.errors.error[0].error-message`\">\n",
"comments": "",
"outputs": 1,
- "x": 2557.999801635742,
- "y": 723.0001316070557,
- "z": "b2abc2ea.cc1c28",
+ "x": 1956.0310516357422,
+ "y": 549.0313816070557,
+ "z": "aab7ce65.cac3d",
"wires": [
[
- "d3ab0cf2.457f3",
- "dee7fa1f.4d78b"
+ "1a5d7765.109479",
+ "57a6d69.9382728"
]
]
},
{
- "id": "340c0c87.92c8b4",
+ "id": "ab6b3ce2.e4f21",
"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 CreateInternetProfileInstance\" />\n",
"comments": "",
- "x": 2826.250898361206,
- "y": 649.250337600708,
- "z": "b2abc2ea.cc1c28",
+ "x": 2224.282148361206,
+ "y": 475.281587600708,
+ "z": "aab7ce65.cac3d",
"wires": []
},
{
- "id": "d3ab0cf2.457f3",
+ "id": "1a5d7765.109479",
"type": "outcome",
"name": "Other",
"xml": "<outcome value='Other'>\n",
"comments": "",
"outputs": 1,
- "x": 2784.000141143799,
- "y": 724.0002250671387,
- "z": "b2abc2ea.cc1c28",
+ "x": 2182.031391143799,
+ "y": 550.0314750671387,
+ "z": "aab7ce65.cac3d",
"wires": [
[
- "957b2d71.78c288"
+ "8eb57923.9623f8"
]
]
},
{
- "id": "dee7fa1f.4d78b",
+ "id": "57a6d69.9382728",
"type": "outcome",
"name": "NULL",
"xml": "<outcome value=''>\n",
"comments": "",
"outputs": 1,
- "x": 2793.9998474121094,
- "y": 810.0000915527344,
- "z": "b2abc2ea.cc1c28",
+ "x": 2192.0310974121094,
+ "y": 636.0313415527344,
+ "z": "aab7ce65.cac3d",
"wires": [
[
- "e5fb5f82.18f85"
+ "4e694f8b.fdd2b"
]
]
},
{
- "id": "957b2d71.78c288",
+ "id": "8eb57923.9623f8",
"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 CreateInternetProfileInstance return: '+$service-result.errors.error[0].error-message`\" />\n\n",
"comments": "",
- "x": 2970.4998092651367,
- "y": 724.0000619888306,
- "z": "b2abc2ea.cc1c28",
+ "x": 2368.5310592651367,
+ "y": 550.0313119888306,
+ "z": "aab7ce65.cac3d",
"wires": []
},
{
- "id": "e5fb5f82.18f85",
+ "id": "4e694f8b.fdd2b",
"type": "block",
"name": "block",
"xml": "<block>\n",
"atomic": "false",
"comments": "",
"outputs": 1,
- "x": 2952.166477203369,
- "y": 811.0000667572021,
- "z": "b2abc2ea.cc1c28",
+ "x": 2350.197727203369,
+ "y": 637.0313167572021,
+ "z": "aab7ce65.cac3d",
"wires": [
[]
]
},
{
- "id": "9d9c04a.550a178",
+ "id": "b56478eb.baf7f8",
"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": 1917.4999237060547,
- "y": 1448.000192642212,
- "z": "b2abc2ea.cc1c28",
+ "x": 1315.5311737060547,
+ "y": 1274.031442642212,
+ "z": "aab7ce65.cac3d",
"wires": []
},
{
- "id": "c44ed27a.d90d8",
+ "id": "7577071d.7f2498",
"type": "save",
"name": "save:generic-vnf",
- "xml": "<save plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" resource=\"generic-vnf\" key=\"generic-vnf.vnf-id = $vnf-id\" >\n<parameter name= \"vnf-id\" value = \"`$vnf-id`\"/>\n<parameter name= \"vnf-name\" value = \"`$vnf-name`\"/>\n<parameter name= \"vnf-type\" value = \"InternetProfile\"/>\n<parameter name= \"service-id\" value = \"`$network-topology-operation-input.service-information.service-id`\"/><!--to be clarified,service-id different from service-instance-id -->\n<parameter name= \"prov-status\" value = \"ACTIVE\"/>\n<parameter name= \"orchestration-status\" value = \"Active\"/>\n<parameter name= \"ipv4-oam-address\" value = \"169.254.236.13\"/>\n<parameter name= \"in-maint\" value = \"false\" />\n<parameter name= \"is-closed-loop-disabled\" value = \"false\" />\n<parameter name= \"model-invariant-id\" value = \"`$network-topology-operation-input.network-information.onap-model-information.model-invariant-uuid`\"/>\n<parameter name= \"model-version-id\" value = \"`$network-topology-operation-input.network-information.onap-model-information.model-uuid`\"/>\n<parameter name= \"model-customization-id\" value = \"`$network-topology-operation-input.network-information.onap-model-information.model-customization-uuid`\"/>",
+ "xml": "<save plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" resource=\"generic-vnf\" key=\"generic-vnf.vnf-id = $vnf-id\" >\n<parameter name= \"vnf-id\" value = \"`$vnf-id`\"/>\n<parameter name= \"vnf-name\" value = \"`$vnf-name`\"/>\n<parameter name= \"vnf-type\" value = \"InternetProfile\"/>\n<parameter name= \"service-id\" value = \"`$network-topology-operation-input.service-information.service-id`\"/>\n<parameter name= \"prov-status\" value = \"ACTIVE\"/>\n<parameter name= \"orchestration-status\" value = \"Active\"/>\n<parameter name= \"is-closed-loop-disabled\" value = \"false\" />\n<parameter name= \"model-invariant-id\" value = \"`$network-topology-operation-input.network-information.onap-model-information.model-invariant-uuid`\"/>\n<parameter name= \"model-version-id\" value = \"`$network-topology-operation-input.network-information.onap-model-information.model-uuid`\"/>\n<parameter name= \"model-customization-id\" value = \"`$network-topology-operation-input.network-information.onap-model-information.model-customization-uuid`\"/>",
"comments": "",
"outputs": 1,
- "x": 2196.0312366485596,
- "y": 1114.031213760376,
- "z": "b2abc2ea.cc1c28",
+ "x": 1594.0624866485596,
+ "y": 940.062463760376,
+ "z": "aab7ce65.cac3d",
"wires": [
[
- "30abcda.3452c32",
- "d057da2e.575678",
- "d2286b35.a71d48"
+ "de67643d.0a9048",
+ "508bcbf7.e76f04",
+ "840edff8.2907d"
]
]
},
{
- "id": "30abcda.3452c32",
+ "id": "de67643d.0a9048",
"type": "failure",
"name": "failure",
"xml": "<outcome value='failure'>\n",
"comments": "",
"outputs": 1,
- "x": 2432.253091812134,
- "y": 985.9199714660645,
- "z": "b2abc2ea.cc1c28",
+ "x": 1830.2843418121338,
+ "y": 811.9512214660645,
+ "z": "aab7ce65.cac3d",
"wires": [
[
- "819a16a6.0c9978"
+ "fe5bd03.02c593"
]
]
},
{
- "id": "d057da2e.575678",
+ "id": "508bcbf7.e76f04",
"type": "failure",
"name": "not-found",
"xml": "<outcome value='not-found'>\n",
"comments": "",
"outputs": 1,
- "x": 2443.228910446167,
- "y": 1045.9358277320862,
- "z": "b2abc2ea.cc1c28",
+ "x": 1841.260160446167,
+ "y": 871.9670777320862,
+ "z": "aab7ce65.cac3d",
"wires": [
[
- "c90efb31.bd2ff8"
+ "703dd65f.36e058"
]
]
},
{
- "id": "819a16a6.0c9978",
+ "id": "fe5bd03.02c593",
"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=\"Failure calling AAI to save generic-vnf\" />\n",
"comments": "",
- "x": 2668.3956394195557,
- "y": 985.4914364814758,
- "z": "b2abc2ea.cc1c28",
+ "x": 2066.4268894195557,
+ "y": 811.5226864814758,
+ "z": "aab7ce65.cac3d",
"wires": []
},
{
- "id": "c90efb31.bd2ff8",
+ "id": "703dd65f.36e058",
"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=\"generic-vnf instance does not exist in AAI\" />\n",
"comments": "",
- "x": 2663.2764377593994,
- "y": 1046.412142276764,
- "z": "b2abc2ea.cc1c28",
+ "x": 2061.3076877593994,
+ "y": 872.4433922767639,
+ "z": "aab7ce65.cac3d",
"wires": []
},
{
- "id": "d2286b35.a71d48",
+ "id": "840edff8.2907d",
"type": "outcome",
"name": "success",
"xml": "<outcome value='success'>\n",
"comments": "",
"outputs": 1,
- "x": 2436.8397159576416,
- "y": 1111.0623078346252,
- "z": "b2abc2ea.cc1c28",
+ "x": 1834.8709659576416,
+ "y": 937.0935578346252,
+ "z": "aab7ce65.cac3d",
"wires": [
- [
- "cc6c45ae.c943c8"
- ]
+ []
]
},
{
- "id": "cc6c45ae.c943c8",
+ "id": "d7aa4847.5acd58",
"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=\"save generic-vnf success!\" />\n ",
"comments": "",
"outputs": 1,
- "x": 2644.8399696350098,
- "y": 1109.0624370574951,
- "z": "b2abc2ea.cc1c28",
+ "x": 2042.8712196350098,
+ "y": 935.0936870574951,
+ "z": "aab7ce65.cac3d",
"wires": [
[]
]
},
{
- "id": "b746f152.4e5ac",
+ "id": "5fc61219.65927c",
"type": "save",
"name": "save:metadata",
"xml": "<save plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" resource=\"service-instance:metadata\"\n key=\"service-instance.service-instance-id = $network-topology-operation-input.service-information.service-id \n\tAND customer.global-customer-id = $network-topology-operation-input.service-information.global-customer-id\n\t AND service-subscription.service-type = $network-topology-operation-input.service-information.subscription-service-type\n\t AND service-instance.service-instance-id = $network-topology-operation-input.service-information.service-instance-id\" force=\"true\" pfx=\"tmp.AnAI-data\">\n <parameter name=\"metadata.metadatum[0].metaname\" value=\"service-type\" />\n <parameter name=\"metadata.metadatum[0].metaval\" value=\"`$prop.bbs.service_type`\" />\n <parameter name=\"metadata.metadatum[1].metaname\" value=\"up-speed\" />\n <parameter name=\"metadata.metadatum[1].metaval\" value=\"`$prop.bbs.up_speed`\" />\n <parameter name=\"metadata.metadatum[2].metaname\" value=\"down-speed\" />\n <parameter name=\"metadata.metadatum[2].metaval\" value=\"`$prop.bbs.down_speed`\" />\n <parameter name=\"metadata.metadatum[3].metaname\" value=\"cvlan\" />\n <parameter name=\"metadata.metadatum[3].metaval\" value=\"`$prop.bbs.c_vlan`\" />\n <parameter name=\"metadata.metadatum[4].metaname\" value=\"svlan\" />\n <parameter name=\"metadata.metadatum[4].metaval\" value=\"`$prop.bbs.s_vlan`\" />\n <parameter name=\"metadata.metadatum[5].metaname\" value=\"expected-ont-id\" />\n <parameter name=\"metadata.metadatum[5].metaval\" value=\"`$prop.bbs.ont_sn`\" />\n <parameter name=\"metadata.metadatum[6].metaname\" value=\"rgw-mac-address\" />\n <parameter name=\"metadata.metadatum[6].metaval\" value=\"`$prop.bbs.mac`\" />",
"comments": "",
"outputs": 1,
- "x": 2194.5305881500244,
- "y": 1266.0309810638428,
- "z": "b2abc2ea.cc1c28",
+ "x": 1592.5618381500244,
+ "y": 1092.0622310638428,
+ "z": "aab7ce65.cac3d",
"wires": [
[
- "260fcebb.248022",
- "e5ef08e9.671048",
- "a5459cad.aad38"
+ "9b60d426.7e33d8",
+ "c2480a0e.1b1478",
+ "a17ec97.b6aa738"
]
]
},
{
- "id": "260fcebb.248022",
+ "id": "9b60d426.7e33d8",
"type": "failure",
"name": "failure",
"xml": "<outcome value='failure'>\n",
"comments": "",
"outputs": 1,
- "x": 2425.006097793579,
- "y": 1197.3955845832825,
- "z": "b2abc2ea.cc1c28",
+ "x": 1823.037347793579,
+ "y": 1023.4268345832825,
+ "z": "aab7ce65.cac3d",
"wires": [
[
- "e624300e.f97b6"
+ "54deb41c.97ae6c"
]
]
},
{
- "id": "e5ef08e9.671048",
+ "id": "c2480a0e.1b1478",
"type": "failure",
"name": "not-found",
"xml": "<outcome value='not-found'>\n",
"comments": "",
"outputs": 1,
- "x": 2436.982259750366,
- "y": 1267.4115180969238,
- "z": "b2abc2ea.cc1c28",
+ "x": 1835.0135097503662,
+ "y": 1093.4427680969238,
+ "z": "aab7ce65.cac3d",
"wires": [
[
- "15c9d9c7.1da386"
+ "15a91907.6a2f77"
]
]
},
{
- "id": "e624300e.f97b6",
+ "id": "54deb41c.97ae6c",
"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=\"Failure calling AAI to save metadatum\" />\n",
"comments": "",
- "x": 2665.1488933563232,
- "y": 1195.967086315155,
- "z": "b2abc2ea.cc1c28",
+ "x": 2063.1801433563232,
+ "y": 1021.998336315155,
+ "z": "aab7ce65.cac3d",
"wires": []
},
{
- "id": "15c9d9c7.1da386",
+ "id": "15a91907.6a2f77",
"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=\"metadatum instance does not exist in AAI\" />\n",
"comments": "",
- "x": 2662.0297927856445,
- "y": 1266.8877544403076,
- "z": "b2abc2ea.cc1c28",
+ "x": 2060.0610427856445,
+ "y": 1092.9190044403076,
+ "z": "aab7ce65.cac3d",
"wires": []
},
{
- "id": "a5459cad.aad38",
+ "id": "a17ec97.b6aa738",
"type": "outcome",
"name": "success",
"xml": "<outcome value='success'>\n",
"comments": "",
"outputs": 1,
- "x": 2431.592969894409,
- "y": 1337.5379576683044,
- "z": "b2abc2ea.cc1c28",
+ "x": 1829.6242198944092,
+ "y": 1163.5692076683044,
+ "z": "aab7ce65.cac3d",
"wires": [
- [
- "6f08d5bf.9a889c"
- ]
+ []
]
},
{
- "id": "6f08d5bf.9a889c",
+ "id": "e577d9f5.accf98",
"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=\"save metadatum success!\" />\n ",
"comments": "",
"outputs": 1,
- "x": 2642.592969894409,
- "y": 1337.5379576683044,
- "z": "b2abc2ea.cc1c28",
+ "x": 2040.6242198944092,
+ "y": 1163.5692076683044,
+ "z": "aab7ce65.cac3d",
"wires": [
[]
]
},
{
- "id": "7117f977.4492b8",
+ "id": "67bc1d3.308aae4",
"type": "block",
"name": "block",
"xml": "<block>\n",
"atomic": "false",
"comments": "",
"outputs": 1,
- "x": 1891.164836883545,
- "y": 987.9997653961182,
- "z": "b2abc2ea.cc1c28",
+ "x": 1289.196086883545,
+ "y": 814.0310153961182,
+ "z": "aab7ce65.cac3d",
"wires": [
[
- "c44ed27a.d90d8",
- "b746f152.4e5ac",
- "d803f78c.61a4a8",
- "a1487411.171428"
+ "7577071d.7f2498",
+ "5fc61219.65927c",
+ "6fa2d919.edbe98",
+ "a47acb9b.a35478",
+ "3aa091fc.f969ae"
]
]
},
{
- "id": "d803f78c.61a4a8",
+ "id": "6fa2d919.edbe98",
"type": "set",
"name": "set:variables",
"xml": "<set>\n<parameter name='vnf-id' value=\"`$prop.random-data-list[3]`\"/>\n<parameter name='vnf-name' value=\"`'vnf-'+$prop.random-data-list[4]`\"/>\n",
"comments": "",
- "x": 2179.1651859283447,
- "y": 984.332763671875,
- "z": "b2abc2ea.cc1c28",
+ "x": 1577.1964359283447,
+ "y": 810.364013671875,
+ "z": "aab7ce65.cac3d",
"wires": []
},
{
- "id": "a1487411.171428",
+ "id": "a47acb9b.a35478",
"type": "execute",
"name": "execute:generate",
"xml": " <execute plugin=\"org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils\" method=\"generateUUID\">\n <parameter name=\"ctx-destination\" value=\"prop.random-data\"/>",
"comments": "",
"outputs": 1,
- "x": 2200.529399871826,
- "y": 910.030613899231,
- "z": "b2abc2ea.cc1c28",
+ "x": 1598.5606498718262,
+ "y": 736.061863899231,
+ "z": "aab7ce65.cac3d",
"wires": [
[
- "916e0fd0.b9f37"
+ "b904a8e6.00ba98"
]
]
},
{
- "id": "916e0fd0.b9f37",
+ "id": "b904a8e6.00ba98",
"type": "success",
"name": "success",
"xml": "<outcome value='success'>\n",
"comments": "",
"outputs": 1,
- "x": 2429.529342651367,
- "y": 911.0305881500244,
- "z": "b2abc2ea.cc1c28",
+ "x": 1827.5605926513672,
+ "y": 737.0618381500244,
+ "z": "aab7ce65.cac3d",
"wires": [
[
- "8e69817d.115b9"
+ "973e3b14.e96fb8"
]
]
},
{
- "id": "8e69817d.115b9",
+ "id": "973e3b14.e96fb8",
"type": "execute",
"name": "execute",
"xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='split' >\n <parameter name=\"ctx_memory_result_key\" value=\"prop.random-data-list\"/>\n <parameter name=\"original_string\" value=\"`$prop.random-data`\"/>\n <parameter name=\"regex\" value=\"-\"/>\n",
"comments": "",
"outputs": 1,
- "x": 2620.529399871826,
- "y": 909.0305881500244,
- "z": "b2abc2ea.cc1c28",
+ "x": 2018.5606498718262,
+ "y": 735.0618381500244,
+ "z": "aab7ce65.cac3d",
"wires": [
[
- "52b18bce.20b054"
+ "dd3fe058.06716"
]
]
},
{
- "id": "3a61e04b.9260a",
+ "id": "61f078a0.340828",
"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=\"`$prop.random-data`\" />\n ",
"comments": "",
"outputs": 1,
- "x": 2952.529462814331,
- "y": 907.0306491851807,
- "z": "b2abc2ea.cc1c28",
+ "x": 2350.560712814331,
+ "y": 733.0618991851807,
+ "z": "aab7ce65.cac3d",
"wires": [
[]
]
},
{
- "id": "52b18bce.20b054",
+ "id": "dd3fe058.06716",
"type": "outcome",
"name": "success",
"xml": "<outcome value='success'>\n",
"comments": "",
"outputs": 1,
- "x": 2787.52933883667,
- "y": 908.0306186676025,
- "z": "b2abc2ea.cc1c28",
+ "x": 2185.56058883667,
+ "y": 734.0618686676025,
+ "z": "aab7ce65.cac3d",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "3aa091fc.f969ae",
+ "type": "save",
+ "name": "save:relationship",
+ "xml": "<save plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" resource=\"service-instance:relationship-list\" \n key=\"service-instance.service-instance-id = $network-topology-operation-input.service-information.service-id\n AND customer.global-customer-id = $network-topology-operation-input.service-information.global-customer-id\n AND service-subscription.service-type = $network-topology-operation-input.service-information.subscription-service-type \n AND service-instance.service-instance-id = $network-topology-operation-input.service-information.service-instance-id\" force=\"true\" pfx=\"tmp.AnAI-data\">\n<parameter name=\"relationship-list.relationship[0].related-to\" value=\"generic-vnf\" />\n<parameter name=\"relationship-list.relationship[0].related-link\" value=\"`'/network/generic-vnfs/generic-vnf/' + $vnf-id`\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-key\" value=\"generic-vnf.vnf-id\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-value\" value=\"`$vnf-id`\" />",
+ "comments": "",
+ "outputs": 1,
+ "x": 1538.03125,
+ "y": 1312.03125,
+ "z": "aab7ce65.cac3d",
+ "wires": [
+ [
+ "3b4ae4d5.3b347c",
+ "987fe733.92a5d8",
+ "73836da.8f43494"
+ ]
+ ]
+ },
+ {
+ "id": "3b4ae4d5.3b347c",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1768.5067596435547,
+ "y": 1243.3958535194397,
+ "z": "aab7ce65.cac3d",
+ "wires": [
+ [
+ "2856d517.9eb7ba"
+ ]
+ ]
+ },
+ {
+ "id": "987fe733.92a5d8",
+ "type": "failure",
+ "name": "not-found",
+ "xml": "<outcome value='not-found'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1780.4829216003418,
+ "y": 1313.411787033081,
+ "z": "aab7ce65.cac3d",
"wires": [
[
- "3a61e04b.9260a"
+ "43a5ebe7.d55dc4"
]
]
+ },
+ {
+ "id": "2856d517.9eb7ba",
+ "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=\"Failure calling AAI to save metadatum\" />\n",
+ "comments": "",
+ "x": 2008.6495552062988,
+ "y": 1241.9673552513123,
+ "z": "aab7ce65.cac3d",
+ "wires": []
+ },
+ {
+ "id": "43a5ebe7.d55dc4",
+ "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=\"metadatum instance does not exist in AAI\" />\n",
+ "comments": "",
+ "x": 2005.5304546356201,
+ "y": 1312.8880233764648,
+ "z": "aab7ce65.cac3d",
+ "wires": []
+ },
+ {
+ "id": "73836da.8f43494",
+ "type": "outcome",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1775.0936317443848,
+ "y": 1383.5382266044617,
+ "z": "aab7ce65.cac3d",
+ "wires": [
+ []
+ ]
}
] \ No newline at end of file