aboutsummaryrefslogtreecommitdiffstats
path: root/platform-logic/generic-resource-api/src/main/json/trans_slicing/GENERIC-RESOURCE-API_tsli-vnf-topology-operation-trans-slice-activate.json
diff options
context:
space:
mode:
Diffstat (limited to 'platform-logic/generic-resource-api/src/main/json/trans_slicing/GENERIC-RESOURCE-API_tsli-vnf-topology-operation-trans-slice-activate.json')
-rw-r--r--platform-logic/generic-resource-api/src/main/json/trans_slicing/GENERIC-RESOURCE-API_tsli-vnf-topology-operation-trans-slice-activate.json1697
1 files changed, 1102 insertions, 595 deletions
diff --git a/platform-logic/generic-resource-api/src/main/json/trans_slicing/GENERIC-RESOURCE-API_tsli-vnf-topology-operation-trans-slice-activate.json b/platform-logic/generic-resource-api/src/main/json/trans_slicing/GENERIC-RESOURCE-API_tsli-vnf-topology-operation-trans-slice-activate.json
index 1e6a51c5..5681c261 100644
--- a/platform-logic/generic-resource-api/src/main/json/trans_slicing/GENERIC-RESOURCE-API_tsli-vnf-topology-operation-trans-slice-activate.json
+++ b/platform-logic/generic-resource-api/src/main/json/trans_slicing/GENERIC-RESOURCE-API_tsli-vnf-topology-operation-trans-slice-activate.json
@@ -1,20 +1,20 @@
[
{
- "id": "d9508d21.fa5b3",
+ "id": "c170e1ed.7b781",
"type": "dgstart",
"name": "DGSTART",
"outputs": 1,
- "x": 144,
- "y": 116,
- "z": "8a9c455f.82beb8",
+ "x": 137,
+ "y": 82,
+ "z": "bc289cb4.31b288",
"wires": [
[
- "cae32381.bce9d"
+ "9970ac63.cab4e"
]
]
},
{
- "id": "cae32381.bce9d",
+ "id": "9970ac63.cab4e",
"type": "service-logic",
"name": "GENERIC-RESOURCE-API ${project.version}",
"module": "GENERIC-RESOURCE-API",
@@ -22,1741 +22,2248 @@
"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": 275.2856903076172,
- "y": 165.23810863494873,
- "z": "8a9c455f.82beb8",
+ "x": 268.2856903076172,
+ "y": 131.23810863494873,
+ "z": "bc289cb4.31b288",
"wires": [
[
- "82cfa8a0.a91dc"
+ "d984e08f.709ec8"
]
]
},
{
- "id": "82cfa8a0.a91dc",
+ "id": "d984e08f.709ec8",
"type": "method",
"name": "method tsli-vnf-topology-operation-trans-slice-activate",
"xml": "<method rpc='tsli-vnf-topology-operation-trans-slice-activate' mode='sync'>\n",
"comments": "",
"outputs": 1,
- "x": 278.4286193847656,
- "y": 250.00003242492676,
- "z": "8a9c455f.82beb8",
+ "x": 271.4286193847656,
+ "y": 216.00003242492676,
+ "z": "bc289cb4.31b288",
"wires": [
[
- "f6fef19d.8fc9f8"
+ "8e4db78f.c5ff38"
]
]
},
{
- "id": "f6fef19d.8fc9f8",
+ "id": "8e4db78f.c5ff38",
"type": "block",
"name": "block : atomic",
"xml": "<block atomic=\"true\">",
"atomic": "true",
"outputs": 1,
- "x": 428.238037109375,
- "y": 379.6666564941406,
- "z": "8a9c455f.82beb8",
+ "x": 421.238037109375,
+ "y": 345.6666564941406,
+ "z": "bc289cb4.31b288",
"wires": [
[
- "c70167ce.7f9118",
- "6aca196e.a4377",
- "e86e6571.913898"
+ "6bde1442.84f93c",
+ "d81cbe5a.85cea",
+ "2a368168.cab60e"
]
]
},
{
- "id": "c70167ce.7f9118",
+ "id": "6bde1442.84f93c",
"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": 696.5716552734375,
- "y": 766.59716796875,
- "z": "8a9c455f.82beb8",
+ "x": 689.5716552734375,
+ "y": 732.59716796875,
+ "z": "bc289cb4.31b288",
"wires": []
},
{
- "id": "d841551.d686928",
+ "id": "233d87e5.a24f7",
"type": "comment",
"name": "new for TransportSlicing",
"info": "",
"comments": "",
- "x": 728,
- "y": 441,
- "z": "8a9c455f.82beb8",
+ "x": 721,
+ "y": 407,
+ "z": "bc289cb4.31b288",
"wires": []
},
{
- "id": "6aca196e.a4377",
+ "id": "d81cbe5a.85cea",
"type": "save",
"name": "get service-instance from aai",
"xml": "<!--<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" -->\n<!--\tresource=\"service-instance\"-->\n<!--\tkey='service-instance.service-instance-id = $service-data.vnfs.vnf[$tmp.vidx].vnf-data.service-information.service-instance-id-->\n<!-- AND customer.global-customer-id = $service-data.vnfs.vnf[$tmp.vidx].vnf-data.service-information.global-customer-id -->\n<!-- AND service-subscription.service-type = $service-data.vnfs.vnf[$tmp.vidx].vnf-data.service-information.subscription-service-type'-->\n<!--\tlocal-only=\"false\"-->\n<!--\tforce=\"true\" pfx=\"tmp.aai.service-instance\">-->\n\n<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\tresource=\"service-instance\"\n\tkey='service-instance.service-instance-id = $vnf-topology-operation-input.service-information.service-instance-id\n AND customer.global-customer-id = $vnf-topology-operation-input.service-information.global-customer-id \n AND service-subscription.service-type = $vnf-topology-operation-input.service-information.subscription-service-type'\n\tlocal-only=\"false\"\n\tforce=\"true\" pfx=\"tmp.aai.service-instance\">\n\n\n<!--$vnf-topology-operation-input.service-information.service-instance-id-->",
"comments": "",
"outputs": 1,
- "x": 748,
- "y": 537,
- "z": "8a9c455f.82beb8",
+ "x": 741,
+ "y": 503,
+ "z": "bc289cb4.31b288",
"wires": [
[
- "8dfdefd.d3d4d9",
- "f6a9e3a5.f26778",
- "6cad2633.e5f528"
+ "b0036e6b.1878c8",
+ "7901c2f.e699b3c",
+ "120c06e4.dff209"
]
]
},
{
- "id": "8dfdefd.d3d4d9",
+ "id": "b0036e6b.1878c8",
"type": "success",
"name": "success",
"xml": "<outcome value='success'>\n",
"comments": "",
"outputs": 1,
- "x": 967,
- "y": 475,
- "z": "8a9c455f.82beb8",
+ "x": 960,
+ "y": 441,
+ "z": "bc289cb4.31b288",
"wires": [
[
- "f2dd8538.5d3378"
+ "9167ffc3.5d91a"
]
]
},
{
- "id": "f6a9e3a5.f26778",
+ "id": "7901c2f.e699b3c",
"type": "not-found",
"name": "not-found",
"xml": "<outcome value='not-found'>\n",
"comments": "",
"outputs": 1,
- "x": 976.490966796875,
- "y": 517.5740356445312,
- "z": "8a9c455f.82beb8",
+ "x": 969.490966796875,
+ "y": 483.57403564453125,
+ "z": "bc289cb4.31b288",
"wires": [
[
- "59b21b6f.e70b7c"
+ "fe34f5d.3d31308"
]
]
},
{
- "id": "6cad2633.e5f528",
+ "id": "120c06e4.dff209",
"type": "failure",
"name": "failure",
"xml": "<outcome value='failure'>\n",
"comments": "",
"outputs": 1,
- "x": 965,
- "y": 564,
- "z": "8a9c455f.82beb8",
+ "x": 958,
+ "y": 530,
+ "z": "bc289cb4.31b288",
"wires": [
[
- "95c7d05e.93c3e"
+ "6d39868f.7f25c8"
]
]
},
{
- "id": "59b21b6f.e70b7c",
+ "id": "fe34f5d.3d31308",
"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 pnf from AnAI with pnf-name = ' + $prop.l3vpn.pe1_id`\" />\n\n",
"comments": "",
- "x": 1130.0623779296875,
- "y": 520.8597717285156,
- "z": "8a9c455f.82beb8",
+ "x": 1123.0623779296875,
+ "y": 486.8597717285156,
+ "z": "bc289cb4.31b288",
"wires": []
},
{
- "id": "95c7d05e.93c3e",
+ "id": "6d39868f.7f25c8",
"type": "returnFailure",
"name": "return failure",
"xml": "<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value='' />\n",
"comments": "",
- "x": 1134,
- "y": 565,
- "z": "8a9c455f.82beb8",
+ "x": 1127,
+ "y": 531,
+ "z": "bc289cb4.31b288",
"wires": []
},
{
- "id": "f2dd8538.5d3378",
+ "id": "9167ffc3.5d91a",
"type": "for",
"name": "for each relationship",
"xml": "<for index='rel-index' start='0' end='`$tmp.aai.service-instance.relationship-list.relationship_length`' >\n",
"comments": "",
"outputs": 1,
- "x": 1164,
- "y": 471,
- "z": "8a9c455f.82beb8",
+ "x": 1157,
+ "y": 437,
+ "z": "bc289cb4.31b288",
"wires": [
[
- "94e5618.e7d282"
+ "5c1ddd56.ddffa4"
]
]
},
{
- "id": "94e5618.e7d282",
+ "id": "5c1ddd56.ddffa4",
"type": "switchNode",
"name": "switch related-to",
"xml": "<switch test='`$tmp.aai.service-instance.relationship-list.relationship[$rel-index].related-to`'>\n",
"comments": "",
"outputs": 1,
- "x": 1387.33349609375,
- "y": 470.99993896484375,
- "z": "8a9c455f.82beb8",
+ "x": 1380.33349609375,
+ "y": 436.99993896484375,
+ "z": "bc289cb4.31b288",
"wires": [
[
- "32140056.199ae"
+ "aeacbf90.6ab9e"
]
]
},
{
- "id": "32140056.199ae",
+ "id": "aeacbf90.6ab9e",
"type": "outcome",
"name": "connectivity",
"xml": "<outcome value='connectivity'>\n",
"comments": "",
"outputs": 1,
- "x": 1588.0001335144043,
- "y": 472.00002098083496,
- "z": "8a9c455f.82beb8",
+ "x": 1581.0001335144043,
+ "y": 438.00002098083496,
+ "z": "bc289cb4.31b288",
"wires": [
[
- "9174febc.b8b998"
+ "7ea091c4.73eb6"
]
]
},
{
- "id": "25e7d332.a761fc",
+ "id": "fd4d27b6.bd205",
"type": "set",
"name": "set attachment_param for OTN A",
"xml": "<set>\n<parameter name='src-node-id' value='`$tmp.aai.vpn-bindingA.src-access-node-id`' />\n<parameter name='dst-node-id' value='`$tmp.aai.vpn-bindingA.dst-access-node-id`' />\n<!--<parameter name='dst-tpn-id' value='1' />-->\n<parameter name='dst-tpn-id' value='`$tmp.aai.vpn-bindingA.customer-vpn-id`' />\n<parameter name='dst-ttp-id' value='`$tmp.aai.vpn-bindingA.dst-access-ltp-id`' />\n<parameter name='slice-instance-id' value='`$tmp.aai.service-instance.service-instance-id`' />\n<parameter name='otn-tunnel-name-src-domain' value='`$tmp.aai.vpn-bindingA.vpn-name`' />\n<parameter name='client-id' value='`$tmp.aai.vpn-bindingA.access-client-id`' />\n<parameter name='provider-id' value='`$tmp.aai.vpn-bindingA.access-provider-id`' />\n<parameter name='topology-id' value='`$tmp.aai.vpn-bindingA.access-topology-id`' />\n",
"comments": "",
- "x": 3849,
- "y": 191,
- "z": "8a9c455f.82beb8",
+ "x": 4400,
+ "y": 154,
+ "z": "bc289cb4.31b288",
"wires": []
},
{
- "id": "fee47d9.4382e",
+ "id": "7648091a.a03898",
"type": "execute",
"name": "execute RestApiCallNode Create OTN tunnel with token",
"xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"templateFileName\" value=\"`$prop.restapi.templateDir + '/' + $prop.restapi.ts-otn-src-domain-creation.templatefile`\" />\n<parameter name=\"restapiUrl\" value=\"`$prop.sdncRestApi.thirdpartySdnc.domainA.url + '/restconf/data/ietf-te:te'`\" />\n<parameter name=\"restapiUser\" value=\"`$prop.sdncRestApi.thirdpartySdnc.domainA.user`\" />\n<parameter name=\"restapiPassword\" value=\"`$prop.sdncRestApi.thirdpartySdnc.domainA.password`\" />\n<parameter name=\"format\" value=\"json\"/>\n<parameter name=\"httpMethod\" value=\"patch\"/>\n<parameter name=\"responsePrefix\" value=\"otn-oof\"/>\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": 3930,
- "y": 506,
- "z": "8a9c455f.82beb8",
+ "x": 4481,
+ "y": 469,
+ "z": "bc289cb4.31b288",
"wires": [
[
- "445402d7.16a9f4",
- "d34714f7.10a51"
+ "9edc273d.67b87",
+ "9c60eb24.47f378"
]
]
},
{
- "id": "445402d7.16a9f4",
+ "id": "9edc273d.67b87",
"type": "failure",
"name": "failure",
"xml": "<outcome value='failure'>\n",
"comments": "",
"outputs": 1,
- "x": 4239.5,
- "y": 475,
- "z": "8a9c455f.82beb8",
+ "x": 4790.5,
+ "y": 438,
+ "z": "bc289cb4.31b288",
"wires": [
[
- "69fb5a0d.27a12c"
+ "9905c30a.05be"
]
]
},
{
- "id": "d34714f7.10a51",
+ "id": "9c60eb24.47f378",
"type": "success",
"name": "success",
"xml": "<outcome value='success'>\n",
"comments": "",
"outputs": 1,
- "x": 4244.5,
- "y": 540,
- "z": "8a9c455f.82beb8",
+ "x": 4795.5,
+ "y": 503,
+ "z": "bc289cb4.31b288",
"wires": [
[
- "f0eccde.2c0533"
+ "8e92f9d2.75f4a8"
]
]
},
{
- "id": "69fb5a0d.27a12c",
+ "id": "9905c30a.05be",
"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 OTN tunnel rest api\" />\n",
"comments": "",
- "x": 4415.5,
- "y": 475,
- "z": "8a9c455f.82beb8",
+ "x": 4966.5,
+ "y": 438,
+ "z": "bc289cb4.31b288",
"wires": []
},
{
- "id": "f0eccde.2c0533",
+ "id": "8e92f9d2.75f4a8",
"type": "block",
"name": "block : atomic",
"xml": "<block atomic=\"true\">",
"atomic": "true",
"comments": "",
"outputs": 1,
- "x": 4411,
- "y": 540,
- "z": "8a9c455f.82beb8",
+ "x": 4962,
+ "y": 503,
+ "z": "bc289cb4.31b288",
"wires": [
[]
]
},
{
- "id": "a96cdedb.06ef48",
+ "id": "7974f996.7603f8",
"type": "set",
"name": "set sotn_value",
"xml": "<set>\n<!--<parameter name='eth-service-name' value='`$tmp.aai.connectivityA.connectivity-id`' />-->\n<parameter name='eth-service-name' value='`$tmp.aai.connectivityA.etht-svc-name`' />\n<parameter name='slice-id' value='`$vnf-topology-operation-input.service-information.service-instance-id`' />\n<parameter name='provider-id' value='`$tmp.aai.connectivityA.access-provider-id`' />\n<parameter name='client-id' value='`$tmp.aai.connectivityA.access-client-id`' />\n<parameter name='topology-id' value='`$tmp.aai.connectivityA.access-topology-id`' />\n<parameter name='otn-tunnel-name' value='`$tmp.aai.vpn-bindingA.vpn-name`' />\n<parameter name='ethernet-end-point-name' value='`$tmp.aai.connectivityA.connectivity-id`' />\n<parameter name='index-number' value='0' />\n<parameter name='eth-node-id' value='`$tmp.aai.connectivityA.access-node-id`' />\n<parameter name='eth-node-tp-id' value='`$tmp.aai.connectivityA.access-ltp-id`' />\n<parameter name='CIR' value='`$tmp.aai.vpn-bindingA.route-distinguisher *1000000`' />\n<parameter name='EIR' value='`$tmp.aai.vpn-bindingA.route-distinguisher *1000000`' />\n<parameter name='cvlan' value='`$tmp.aai.connectivityA.cvlan`' />\n",
"comments": "",
- "x": 3796.5,
- "y": 694,
- "z": "8a9c455f.82beb8",
+ "x": 4347.5,
+ "y": 657,
+ "z": "bc289cb4.31b288",
"wires": []
},
{
- "id": "616c98c7.f82ea8",
+ "id": "1460b865.7cff48",
"type": "execute",
"name": "execute RestApiCallNode Create ethernet Service without token",
"xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"templateFileName\" value=\"`$prop.restapi.templateDir + '/' + $prop.restapi.ts-ethernet-service.templatefile`\" />\n<parameter name=\"restapiUrl\" value=\"`$prop.sdncRestApi.thirdpartySdnc.domainA.url + '/restconf/data/ietf-eth-tran-service:etht-svc'`\" />\n<!--<parameter name=\"restapiUrl\" value=\"`$prop.restapi.connection-oof-url`\" />-->\n<parameter name=\"restapiUser\" value=\"`$prop.sdncRestApi.thirdpartySdnc.domainA.user`\" />\n<parameter name=\"restapiPassword\" value=\"`$prop.sdncRestApi.thirdpartySdnc.domainA.password`\" />\n<parameter name=\"format\" value=\"json\"/>\n<parameter name=\"httpMethod\" value=\"patch\"/>\n<parameter name='dirPath' value=\"/opt/onap/sdnc/restconfapi/yang\" />\n<parameter name=\"responsePrefix\" value=\"vpn-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",
"comments": "",
"outputs": 1,
- "x": 3950.5,
- "y": 742,
- "z": "8a9c455f.82beb8",
+ "x": 4501.5,
+ "y": 705,
+ "z": "bc289cb4.31b288",
"wires": [
[
- "eef8ae3.fdd1a5",
- "8f2e62b6.e98788"
+ "d6a6995b.244f78",
+ "3058a60d.1382f2"
]
]
},
{
- "id": "eef8ae3.fdd1a5",
+ "id": "d6a6995b.244f78",
"type": "failure",
"name": "failure",
"xml": "<outcome value='failure'>\n",
"comments": "",
"outputs": 1,
- "x": 4296,
- "y": 723,
- "z": "8a9c455f.82beb8",
+ "x": 4847,
+ "y": 686,
+ "z": "bc289cb4.31b288",
"wires": [
[
- "f08a069b.6042c8"
+ "9008a0fb.361338"
]
]
},
{
- "id": "8f2e62b6.e98788",
+ "id": "3058a60d.1382f2",
"type": "success",
"name": "success",
"xml": "<outcome value='success'>\n",
"comments": "",
"outputs": 1,
- "x": 4300,
- "y": 763,
- "z": "8a9c455f.82beb8",
+ "x": 4851,
+ "y": 726,
+ "z": "bc289cb4.31b288",
"wires": [
[
- "b227b2c.229c1d"
+ "5c04d202.902b9c"
]
]
},
{
- "id": "f08a069b.6042c8",
+ "id": "9008a0fb.361338",
"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 ethernet service rest api\" />\n",
"comments": "",
- "x": 4454,
- "y": 723,
- "z": "8a9c455f.82beb8",
+ "x": 5005,
+ "y": 686,
+ "z": "bc289cb4.31b288",
"wires": []
},
{
- "id": "b227b2c.229c1d",
+ "id": "5c04d202.902b9c",
"type": "block",
"name": "block : atomic",
"xml": "<block atomic=\"true\">",
"atomic": "true",
"comments": "",
"outputs": 1,
- "x": 4457.5,
- "y": 763,
- "z": "8a9c455f.82beb8",
+ "x": 5008.5,
+ "y": 726,
+ "z": "bc289cb4.31b288",
"wires": [
[
- "2af71c81.1e5aec",
- "5fe9896d.3d8e98"
+ "ec17d55b.a0804",
+ "144849a3.b4133e"
]
]
},
{
- "id": "c5970f4b.9679a8",
+ "id": "471d2a77.3a42ac",
"type": "comment",
"name": "TODO: FIXME:",
"info": "put proper values based on connectivity resource retrieved from AAI",
"comments": "",
- "x": 3794,
- "y": 650,
- "z": "8a9c455f.82beb8",
+ "x": 4345,
+ "y": 613,
+ "z": "bc289cb4.31b288",
"wires": []
},
{
- "id": "2af71c81.1e5aec",
+ "id": "ec17d55b.a0804",
"type": "save",
"name": "update vpn-binding A resource (aka. OTN domainA) in AAI",
"xml": "<update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='vpn-binding' \n key='vpn-binding.vpn-id = $tmp.aai.vpn-bindingA.vpn-id' >\n<parameter name='vpn-id' value='`$tmp.aai.vpn-bindingA.vpn-id`' />\n<parameter name='vpn-name' value='`$tmp.aai.vpn-bindingA.vpn-name`' />\n\n<parameter name='operational-status' value='Activated' />\n",
"comments": "",
"outputs": 1,
- "x": 4788,
- "y": 728,
- "z": "8a9c455f.82beb8",
+ "x": 5339,
+ "y": 691,
+ "z": "bc289cb4.31b288",
"wires": [
[]
]
},
{
- "id": "48dd1ec4.51cb4",
+ "id": "4e9eb117.9357d",
"type": "comment",
"name": "TODO: FIXME",
"info": "use proper vpn-binding id and connectivity id\n\nAlso, does CCSDK support \"update\" operation for vpn-binding and connectivity?",
"comments": "",
- "x": 4652,
- "y": 687,
- "z": "8a9c455f.82beb8",
+ "x": 5203,
+ "y": 650,
+ "z": "bc289cb4.31b288",
"wires": []
},
{
- "id": "5fe9896d.3d8e98",
+ "id": "144849a3.b4133e",
"type": "save",
"name": "update connectivity resource in AAI",
"xml": "<update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='connectivity' \n key='connectivity.connectivity-id = $tmp.aai.connectivityA.connectivity-id'>\n<parameter name='connectivity-id' value='`$tmp.aai.connectivityA.connectivity-id`' />\n<parameter name='operational-status' value='Activated' />\n",
"comments": "",
"outputs": 1,
- "x": 4715,
- "y": 774,
- "z": "8a9c455f.82beb8",
+ "x": 5266,
+ "y": 737,
+ "z": "bc289cb4.31b288",
"wires": [
[]
]
},
{
- "id": "75d6c996.11aeb",
+ "id": "4f40e2d1.4262ec",
"type": "set",
"name": "set pnf-name",
"xml": "<set>\n<parameter name='tmp.src.domainA.pnf-name' value=\"`'networkId-providerId-' +\n $tmp.aai.vpn-bindingA.access-provider-id + '-clientId-' +\n $tmp.aai.vpn-bindingA.access-client-id + '-topologyId-' +\n $tmp.aai.vpn-bindingA.access-topology-id + '-nodeId-' +\n $tmp.aai.vpn-bindingA.src-access-node-id`\" />\n",
"comments": "",
- "x": 3787,
- "y": 239,
- "z": "8a9c455f.82beb8",
+ "x": 4338,
+ "y": 202,
+ "z": "bc289cb4.31b288",
"wires": []
},
{
- "id": "c824ab5b.360f6",
+ "id": "8abcb98.e721cc8",
"type": "get-resource",
"name": "get-resource src pnf",
"xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\t\tresource=\"pnf\" \n\t\tkey=\"pnf.pnf-name = $tmp.src.domainA.pnf-name\"\n pfx='tmp.aai.source-pnf' local-only='false' >\n\n <!--AND depth = '0'\"-->\n",
"comments": "",
"outputs": 1,
- "x": 3813,
- "y": 356,
- "z": "8a9c455f.82beb8",
+ "x": 4364,
+ "y": 319,
+ "z": "bc289cb4.31b288",
"wires": [
[
- "19cd8085.d8fca7",
- "ff1311fc.28b29",
- "929f1027.4a5828"
+ "3115ae28.00936a",
+ "34440f82.2778b8",
+ "5e322ae1.288484"
]
]
},
{
- "id": "19cd8085.d8fca7",
+ "id": "3115ae28.00936a",
"type": "success",
"name": "success",
"xml": "<outcome value='success'>\n",
"comments": "",
"outputs": 1,
- "x": 4008.5001220703125,
- "y": 308,
- "z": "8a9c455f.82beb8",
+ "x": 4559.5001220703125,
+ "y": 271,
+ "z": "bc289cb4.31b288",
"wires": [
[
- "a2185ea8.7f403"
+ "5640c3a4.e53454"
]
]
},
{
- "id": "ff1311fc.28b29",
+ "id": "34440f82.2778b8",
"type": "not-found",
"name": "not-found",
"xml": "<outcome value='not-found'>\n",
"comments": "",
"outputs": 1,
- "x": 4000.5001220703125,
- "y": 363,
- "z": "8a9c455f.82beb8",
+ "x": 4551.5001220703125,
+ "y": 326,
+ "z": "bc289cb4.31b288",
"wires": [
[
- "c3cea897.f88808"
+ "b5a71ca6.0ed8a"
]
]
},
{
- "id": "a2185ea8.7f403",
+ "id": "5640c3a4.e53454",
"type": "block",
"name": "block",
"xml": "<block>\n",
"atomic": "false",
"comments": "",
"outputs": 1,
- "x": 4152.8824462890625,
- "y": 307.6556701660156,
- "z": "8a9c455f.82beb8",
+ "x": 4703.8824462890625,
+ "y": 270.6556701660156,
+ "z": "bc289cb4.31b288",
"wires": [
[
- "eb7f6fc2.5f3468"
+ "4125afdc.dc7c38"
]
]
},
{
- "id": "a0fa7da8.75192",
+ "id": "e2a3abe6.94632",
"type": "outcome",
"name": "esr-thirdparty-sdnc",
"xml": "<outcome value='esr-thirdparty-sdnc'>\n",
"comments": "",
"outputs": 1,
- "x": 4735,
- "y": 310,
- "z": "8a9c455f.82beb8",
+ "x": 5286,
+ "y": 273,
+ "z": "bc289cb4.31b288",
"wires": [
[
- "809287e6.83f07"
+ "e7a85e47.2ddf5"
]
]
},
{
- "id": "eb7f6fc2.5f3468",
+ "id": "4125afdc.dc7c38",
"type": "for",
"name": "for each relationship",
"xml": "<for silentFailure='true' index='spvidx' start='0' end='`$tmp.aai.source-pnf.relationship-list.relationship_length`' >\n",
"comments": "",
"outputs": 1,
- "x": 4337,
- "y": 306,
- "z": "8a9c455f.82beb8",
+ "x": 4888,
+ "y": 269,
+ "z": "bc289cb4.31b288",
"wires": [
[
- "21971ee2.f88962"
+ "7289fd85.50ab7c"
]
]
},
{
- "id": "21971ee2.f88962",
+ "id": "7289fd85.50ab7c",
"type": "switchNode",
"name": "switch related-to",
"xml": "<switch test='`$tmp.aai.source-pnf.relationship-list.relationship[$spvidx].related-to`'>\n",
"comments": "",
"outputs": 1,
- "x": 4532,
- "y": 306,
- "z": "8a9c455f.82beb8",
+ "x": 5083,
+ "y": 269,
+ "z": "bc289cb4.31b288",
"wires": [
[
- "a0fa7da8.75192"
+ "e2a3abe6.94632"
]
]
},
{
- "id": "929f1027.4a5828",
+ "id": "5e322ae1.288484",
"type": "other",
"name": "other",
"xml": "<outcome value='Other'>\n",
"comments": "",
"outputs": 1,
- "x": 4005.5001220703125,
- "y": 420,
- "z": "8a9c455f.82beb8",
+ "x": 4556.5001220703125,
+ "y": 383,
+ "z": "bc289cb4.31b288",
"wires": [
[
- "5ece63ab.72534c"
+ "a5591b6a.a340a8"
]
]
},
{
- "id": "5ece63ab.72534c",
+ "id": "a5591b6a.a340a8",
"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 pnf from AnAI with pnf-name = ' + $prop.connection-attachement.access-node-id`\" />\n\n",
"comments": "",
- "x": 4157.5001220703125,
- "y": 421,
- "z": "8a9c455f.82beb8",
+ "x": 4708.5001220703125,
+ "y": 384,
+ "z": "bc289cb4.31b288",
"wires": []
},
{
- "id": "c3cea897.f88808",
+ "id": "b5a71ca6.0ed8a",
"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 pnf from AnAI with pnf-name = ' + $prop.connection-attachement.access-node-id`\" />\n\n",
"comments": "",
- "x": 4168.5001220703125,
- "y": 364,
- "z": "8a9c455f.82beb8",
+ "x": 4719.5001220703125,
+ "y": 327,
+ "z": "bc289cb4.31b288",
"wires": []
},
{
- "id": "fd9485b.71b4af8",
+ "id": "ca9f1df7.d822c",
"type": "execute",
"name": "get 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 = $tmp.domainA.esr-thirdparty-id AND \n\t\t depth = '1'\"\n pfx='tmp.aai.domainA.esr-thirdparty-sdnc' local-only='false' >",
"comments": "",
"outputs": 1,
- "x": 5120,
- "y": 323,
- "z": "8a9c455f.82beb8",
+ "x": 5671,
+ "y": 286,
+ "z": "bc289cb4.31b288",
"wires": [
[
- "12fe3fd6.ccef78",
- "5cf62e0d.6aa85",
- "156d902b.c3731"
+ "d6fa81cb.78d2d",
+ "bcf1b063.c95248",
+ "109a3661.2bbbd2"
]
]
},
{
- "id": "809287e6.83f07",
+ "id": "e7a85e47.2ddf5",
"type": "block",
"name": "block : atomic",
"xml": "<block atomic=\"true\">",
"atomic": "true",
"outputs": 1,
- "x": 4914,
- "y": 310,
- "z": "8a9c455f.82beb8",
+ "x": 5465,
+ "y": 273,
+ "z": "bc289cb4.31b288",
"wires": [
[
- "a1955015.d4546",
- "fd9485b.71b4af8"
+ "211b93a9.ce5f0c",
+ "ca9f1df7.d822c"
]
]
},
{
- "id": "a1955015.d4546",
+ "id": "211b93a9.ce5f0c",
"type": "set",
"name": "set esr-thirdparty-sdnc domainA id",
"xml": "<set>\n<parameter name='tmp.domainA.esr-thirdparty-id' value=\"`$tmp.aai.source-pnf.relationship-list.relationship[$spvidx].relationship-data[0].relationship-value`\" />\n",
"comments": "",
- "x": 5150,
- "y": 271,
- "z": "8a9c455f.82beb8",
+ "x": 5701,
+ "y": 234,
+ "z": "bc289cb4.31b288",
"wires": []
},
{
- "id": "12fe3fd6.ccef78",
+ "id": "d6fa81cb.78d2d",
"type": "success",
"name": "success",
"xml": "<outcome value='success'>\n",
"comments": "",
"outputs": 1,
- "x": 5330,
- "y": 314,
- "z": "8a9c455f.82beb8",
+ "x": 5881,
+ "y": 277,
+ "z": "bc289cb4.31b288",
"wires": [
[
- "cc3a75a4.21fc7"
+ "bf2e4f3b.81ed8"
]
]
},
{
- "id": "5cf62e0d.6aa85",
+ "id": "bcf1b063.c95248",
"type": "not-found",
"name": "not-found",
"xml": "<outcome value='not-found'>\n",
"comments": "",
"outputs": 1,
- "x": 5322,
- "y": 369,
- "z": "8a9c455f.82beb8",
+ "x": 5873,
+ "y": 332,
+ "z": "bc289cb4.31b288",
"wires": [
[
- "bff3bfa.5f55cc"
+ "bfa4b512.849248"
]
]
},
{
- "id": "156d902b.c3731",
+ "id": "109a3661.2bbbd2",
"type": "other",
"name": "other",
"xml": "<outcome value='Other'>\n",
"comments": "",
"outputs": 1,
- "x": 5327,
- "y": 426,
- "z": "8a9c455f.82beb8",
+ "x": 5878,
+ "y": 389,
+ "z": "bc289cb4.31b288",
"wires": [
[
- "be590afe.7cc5a8"
+ "76f805.e622cffc"
]
]
},
{
- "id": "be590afe.7cc5a8",
+ "id": "76f805.e622cffc",
"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 pnf from AnAI with pnf-name = ' + $prop.connection-attachement.access-node-id`\" />\n\n",
"comments": "",
- "x": 5479,
- "y": 427,
- "z": "8a9c455f.82beb8",
+ "x": 6030,
+ "y": 390,
+ "z": "bc289cb4.31b288",
"wires": []
},
{
- "id": "bff3bfa.5f55cc",
+ "id": "bfa4b512.849248",
"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 pnf from AnAI with pnf-name = ' + $prop.connection-attachement.access-node-id`\" />\n\n",
"comments": "",
- "x": 5490,
- "y": 372,
- "z": "8a9c455f.82beb8",
+ "x": 6041,
+ "y": 335,
+ "z": "bc289cb4.31b288",
"wires": []
},
{
- "id": "cc3a75a4.21fc7",
+ "id": "bf2e4f3b.81ed8",
"type": "block",
"name": "block",
"xml": "<block>\n",
"atomic": "false",
"comments": "",
"outputs": 1,
- "x": 5474.38232421875,
- "y": 311.6556701660156,
- "z": "8a9c455f.82beb8",
+ "x": 6025.38232421875,
+ "y": 274.6556701660156,
+ "z": "bc289cb4.31b288",
"wires": [
[
- "665ad654.79ee8"
+ "76b40334.8bd094"
]
]
},
{
- "id": "665ad654.79ee8",
+ "id": "76b40334.8bd094",
"type": "set",
"name": "set controller domainA data",
"xml": "<set>\n<parameter name='prop.sdncRestApi.thirdpartySdnc.domainA.url' value=\"`$tmp.aai.domainA.esr-thirdparty-sdnc.esr-system-info-list.esr-system-info[0].service-url`\" />\n<parameter name='prop.sdncRestApi.thirdpartySdnc.domainA.user' value=\"`$tmp.aai.domainA.esr-thirdparty-sdnc.esr-system-info-list.esr-system-info[0].user-name`\" />\n<parameter name='prop.sdncRestApi.thirdpartySdnc.domainA.password' value=\"`$tmp.aai.domainA.esr-thirdparty-sdnc.esr-system-info-list.esr-system-info[0].password`\" />\n\n\n<!--<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >-->\n<!--<parameter name=\"restapiUrl\" value=\"`$prop.sdncRestApi.thirdpartySdnc.url + '/restconf/data/ietf-network:networks'`\" />-->\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=\"get\"/>-->\n<!--<parameter name=\"responsePrefix\" value=\"topology\"/>-->\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",
"comments": "",
- "x": 5689,
- "y": 308,
- "z": "8a9c455f.82beb8",
+ "x": 6240,
+ "y": 271,
+ "z": "bc289cb4.31b288",
"wires": []
},
{
- "id": "e86e6571.913898",
+ "id": "2a368168.cab60e",
"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' />",
"comments": "",
"outputs": 1,
- "x": 714,
- "y": 485,
- "z": "8a9c455f.82beb8",
+ "x": 707,
+ "y": 451,
+ "z": "bc289cb4.31b288",
"wires": [
[]
]
},
{
- "id": "27bc86e9.1c4e52",
+ "id": "3bea0429.f0ebac",
"type": "set",
"name": "set attachment_param for OTN B",
"xml": "<set>\n<parameter name='src-node-id' value='`$tmp.aai.vpn-bindingB.src-access-node-id`' />\n<parameter name='dst-node-id' value='`$tmp.aai.vpn-bindingB.dst-access-node-id`' />\n<!--<parameter name='src-tpn-id' value='1' />-->\n<parameter name='src-tpn-id' value='`$tmp.aai.vpn-bindingB.customer-vpn-id`' />\n<parameter name='src-ttp-id' value='`$tmp.aai.vpn-bindingB.src-access-ltp-id`' />\n<parameter name='slice-instance-id' value='`$tmp.aai.service-instance.service-instance-id`' />\n<parameter name='otn-tunnel-name-dst-domain' value='`$tmp.aai.vpn-bindingB.vpn-name`' />\n<parameter name='client-id' value='`$tmp.aai.vpn-bindingB.access-client-id`' />\n<parameter name='provider-id' value='`$tmp.aai.vpn-bindingB.access-provider-id`' />\n<parameter name='topology-id' value='`$tmp.aai.vpn-bindingB.access-topology-id`' />\n",
"comments": "",
- "x": 3829,
- "y": 995,
- "z": "8a9c455f.82beb8",
+ "x": 3807,
+ "y": 1611,
+ "z": "bc289cb4.31b288",
"wires": []
},
{
- "id": "f8350413.ea8398",
+ "id": "d501f859.eecd18",
"type": "execute",
"name": "execute RestApiCallNode Create OTN tunnel with token",
"xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"templateFileName\" value=\"`$prop.restapi.templateDir + '/' + $prop.restapi.ts-otn-dst-domain-creation.templatefile`\" />\n<parameter name=\"restapiUrl\" value=\"`$prop.sdncRestApi.thirdpartySdnc.domainB.url + '/restconf/data/ietf-te:te'`\" />\n<parameter name=\"restapiUser\" value=\"`$prop.sdncRestApi.thirdpartySdnc.domainB.user`\" />\n<parameter name=\"restapiPassword\" value=\"`$prop.sdncRestApi.thirdpartySdnc.domainB.password`\" />\n<parameter name=\"format\" value=\"json\"/>\n<parameter name=\"httpMethod\" value=\"patch\"/>\n<parameter name=\"responsePrefix\" value=\"otn-oof\"/>\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": 3892,
- "y": 1324,
- "z": "8a9c455f.82beb8",
+ "x": 3870,
+ "y": 1940,
+ "z": "bc289cb4.31b288",
"wires": [
[
- "4e841df5.4d2d34",
- "5e6f0ddb.0967b4"
+ "8a516999.f983f8",
+ "e1e3477c.cb45b"
]
]
},
{
- "id": "4e841df5.4d2d34",
+ "id": "8a516999.f983f8",
"type": "failure",
"name": "failure",
"xml": "<outcome value='failure'>\n",
"comments": "",
"outputs": 1,
- "x": 4187.5,
- "y": 1291,
- "z": "8a9c455f.82beb8",
+ "x": 4165.5,
+ "y": 1907,
+ "z": "bc289cb4.31b288",
"wires": [
[
- "8fb2eae.74bbb98"
+ "1f32cbd.2007fb4"
]
]
},
{
- "id": "5e6f0ddb.0967b4",
+ "id": "e1e3477c.cb45b",
"type": "success",
"name": "success",
"xml": "<outcome value='success'>\n",
"comments": "",
"outputs": 1,
- "x": 4192.5,
- "y": 1356,
- "z": "8a9c455f.82beb8",
+ "x": 4170.5,
+ "y": 1972,
+ "z": "bc289cb4.31b288",
"wires": [
[
- "9fef13b3.660c58"
+ "5be15aea.63aa2c"
]
]
},
{
- "id": "8fb2eae.74bbb98",
+ "id": "1f32cbd.2007fb4",
"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 OTN tunnel rest api\" />\n",
"comments": "",
- "x": 4355.5,
- "y": 1291,
- "z": "8a9c455f.82beb8",
+ "x": 4333.5,
+ "y": 1907,
+ "z": "bc289cb4.31b288",
"wires": []
},
{
- "id": "9fef13b3.660c58",
+ "id": "5be15aea.63aa2c",
"type": "block",
"name": "block : atomic",
"xml": "<block atomic=\"true\">",
"atomic": "true",
"comments": "",
"outputs": 1,
- "x": 4366,
- "y": 1356,
- "z": "8a9c455f.82beb8",
+ "x": 4344,
+ "y": 1972,
+ "z": "bc289cb4.31b288",
"wires": [
[]
]
},
{
- "id": "2fd670.86d5219",
+ "id": "32f45e6c.4d0bea",
"type": "set",
"name": "set pnf-name",
"xml": "<set>\n<parameter name='tmp.dst.domainB.pnf-name' value=\"`'networkId-providerId-' +\n $tmp.aai.vpn-bindingB.access-provider-id + '-clientId-' +\n $tmp.aai.vpn-bindingB.access-client-id + '-topologyId-' +\n $tmp.aai.vpn-bindingB.access-topology-id + '-nodeId-' +\n $tmp.aai.vpn-bindingB.dst-access-node-id`\" />\n",
"comments": "",
- "x": 3768,
- "y": 1052,
- "z": "8a9c455f.82beb8",
+ "x": 3746,
+ "y": 1668,
+ "z": "bc289cb4.31b288",
"wires": []
},
{
- "id": "8581969f.3e9f8",
+ "id": "e8ca7925.e0f8c",
"type": "get-resource",
"name": "get-resource dst pnf",
"xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\t\tresource=\"pnf\" \n\t\tkey=\"pnf.pnf-name = $tmp.dst.domainB.pnf-name\"\n pfx='tmp.aai.destination-pnf' local-only='false' >\n\n <!--AND depth = '0'\"-->\n",
"comments": "",
"outputs": 1,
- "x": 3788,
- "y": 1149,
- "z": "8a9c455f.82beb8",
+ "x": 3766,
+ "y": 1765,
+ "z": "bc289cb4.31b288",
"wires": [
[
- "3c9a5980.f5df5e",
- "6737c173.340e3",
- "68a240da.0733"
+ "9bb092a5.d05b48",
+ "221dd2f3.9ac236",
+ "26d51b0f.5d004c"
]
]
},
{
- "id": "3c9a5980.f5df5e",
+ "id": "9bb092a5.d05b48",
"type": "success",
"name": "success",
"xml": "<outcome value='success'>\n",
"comments": "",
"outputs": 1,
- "x": 3990.5001220703125,
- "y": 1102,
- "z": "8a9c455f.82beb8",
+ "x": 3968.5001220703125,
+ "y": 1718,
+ "z": "bc289cb4.31b288",
"wires": [
[
- "ea38c477.b7b2f"
+ "b690bac2.55724"
]
]
},
{
- "id": "6737c173.340e3",
+ "id": "221dd2f3.9ac236",
"type": "not-found",
"name": "not-found",
"xml": "<outcome value='not-found'>\n",
"comments": "",
"outputs": 1,
- "x": 3982.5001220703125,
- "y": 1157,
- "z": "8a9c455f.82beb8",
+ "x": 3960.5001220703125,
+ "y": 1773,
+ "z": "bc289cb4.31b288",
"wires": [
[
- "8bbc992f.718ea"
+ "b19648bb.51984"
]
]
},
{
- "id": "ea38c477.b7b2f",
+ "id": "b690bac2.55724",
"type": "block",
"name": "block",
"xml": "<block>\n",
"atomic": "false",
"comments": "",
"outputs": 1,
- "x": 4134.8824462890625,
- "y": 1099.6556701660156,
- "z": "8a9c455f.82beb8",
+ "x": 4112.8824462890625,
+ "y": 1715.6556701660156,
+ "z": "bc289cb4.31b288",
"wires": [
[
- "18cecfe3.6de9e"
+ "bc889fde.13a798"
]
]
},
{
- "id": "18cecfe3.6de9e",
+ "id": "bc889fde.13a798",
"type": "for",
"name": "for each relationship",
"xml": "<for silentFailure='true' index='dpvidx' start='0' end='`$tmp.aai.destination-pnf.relationship-list.relationship_length`' >\n",
"comments": "",
"outputs": 1,
- "x": 4319,
- "y": 1114,
- "z": "8a9c455f.82beb8",
+ "x": 4297,
+ "y": 1730,
+ "z": "bc289cb4.31b288",
"wires": [
[
- "68f9f038.67b62"
+ "6cdbe20d.6924d4"
]
]
},
{
- "id": "68a240da.0733",
+ "id": "26d51b0f.5d004c",
"type": "other",
"name": "other",
"xml": "<outcome value='Other'>\n",
"comments": "",
"outputs": 1,
- "x": 3987.5001220703125,
- "y": 1214,
- "z": "8a9c455f.82beb8",
+ "x": 3965.5001220703125,
+ "y": 1830,
+ "z": "bc289cb4.31b288",
"wires": [
[
- "20686ade.8b231e"
+ "5f4cb2c4.11fb94"
]
]
},
{
- "id": "20686ade.8b231e",
+ "id": "5f4cb2c4.11fb94",
"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 pnf from AnAI with pnf-name = ' + $prop.connection-attachement.access-node-id`\" />\n\n",
"comments": "",
- "x": 4139.5001220703125,
- "y": 1215,
- "z": "8a9c455f.82beb8",
+ "x": 4117.5001220703125,
+ "y": 1831,
+ "z": "bc289cb4.31b288",
"wires": []
},
{
- "id": "8bbc992f.718ea",
+ "id": "b19648bb.51984",
"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 pnf from AnAI with pnf-name = ' + $prop.connection-attachement.access-node-id`\" />\n\n",
"comments": "",
- "x": 4150.5001220703125,
- "y": 1160,
- "z": "8a9c455f.82beb8",
+ "x": 4128.5001220703125,
+ "y": 1776,
+ "z": "bc289cb4.31b288",
"wires": []
},
{
- "id": "597aa62c.50d3c",
+ "id": "73a1b393.2e09c4",
"type": "outcome",
"name": "esr-thirdparty-sdnc",
"xml": "<outcome value='esr-thirdparty-sdnc'>\n",
"comments": "",
"outputs": 1,
- "x": 4717,
- "y": 1118,
- "z": "8a9c455f.82beb8",
+ "x": 4695,
+ "y": 1734,
+ "z": "bc289cb4.31b288",
"wires": [
[
- "e04d6fa3.eba9f"
+ "ab9ee354.2292b"
]
]
},
{
- "id": "68f9f038.67b62",
+ "id": "6cdbe20d.6924d4",
"type": "switchNode",
"name": "switch related-to",
"xml": "<switch test='`$tmp.aai.destination-pnf.relationship-list.relationship[$dpvidx].related-to`'>\n",
"comments": "",
"outputs": 1,
- "x": 4514,
- "y": 1114,
- "z": "8a9c455f.82beb8",
+ "x": 4492,
+ "y": 1730,
+ "z": "bc289cb4.31b288",
"wires": [
[
- "597aa62c.50d3c"
+ "73a1b393.2e09c4"
]
]
},
{
- "id": "2f50548b.6d0f1c",
+ "id": "1f5d9d19.39869b",
"type": "execute",
"name": "get 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 = $tmp.domainB.esr-thirdparty-id AND \n\t\t depth = '1'\"\n pfx='tmp.aai.domainB.esr-thirdparty-sdnc' local-only='false' >",
"comments": "",
"outputs": 1,
- "x": 5102,
- "y": 1117,
- "z": "8a9c455f.82beb8",
+ "x": 5080,
+ "y": 1733,
+ "z": "bc289cb4.31b288",
"wires": [
[
- "a769e440.df581",
- "a7207c49.d2bbc",
- "1e0583ed.3bab5c"
+ "9355225.5c1536",
+ "66c76394.d1fea4",
+ "2e8b8501.9ee95a"
]
]
},
{
- "id": "e04d6fa3.eba9f",
+ "id": "ab9ee354.2292b",
"type": "block",
"name": "block : atomic",
"xml": "<block atomic=\"true\">",
"atomic": "true",
"outputs": 1,
- "x": 4894,
- "y": 1110,
- "z": "8a9c455f.82beb8",
+ "x": 4872,
+ "y": 1726,
+ "z": "bc289cb4.31b288",
"wires": [
[
- "eacacb80.08d4c",
- "2f50548b.6d0f1c"
+ "28e5278d.3f4238",
+ "1f5d9d19.39869b"
]
]
},
{
- "id": "eacacb80.08d4c",
+ "id": "28e5278d.3f4238",
"type": "set",
"name": "set esr-thirdparty-sdnc domainB id",
"xml": "<set>\n<parameter name='tmp.domainB.esr-thirdparty-id' value=\"`$tmp.aai.destination-pnf.relationship-list.relationship[$dpvidx].relationship-data[0].relationship-value`\" />\n",
"comments": "",
- "x": 5132,
- "y": 1065,
- "z": "8a9c455f.82beb8",
+ "x": 5110,
+ "y": 1681,
+ "z": "bc289cb4.31b288",
"wires": []
},
{
- "id": "61827e75.b97ad8",
+ "id": "8616ea00.2e5968",
"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 pnf from AnAI with pnf-name = ' + $prop.connection-attachement.access-node-id`\" />\n\n",
"comments": "",
- "x": 5461,
- "y": 1221,
- "z": "8a9c455f.82beb8",
+ "x": 5439,
+ "y": 1837,
+ "z": "bc289cb4.31b288",
"wires": []
},
{
- "id": "b6c7c29b.5ee08",
+ "id": "8ef11dae.da91",
"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 pnf from AnAI with pnf-name = ' + $prop.connection-attachement.access-node-id`\" />\n\n",
"comments": "",
- "x": 5472,
- "y": 1166,
- "z": "8a9c455f.82beb8",
+ "x": 5450,
+ "y": 1782,
+ "z": "bc289cb4.31b288",
"wires": []
},
{
- "id": "7c1b7b20.2d7bbc",
+ "id": "d4ab39c.829a8c8",
"type": "block",
"name": "block",
"xml": "<block>\n",
"atomic": "false",
"comments": "",
"outputs": 1,
- "x": 5456.38232421875,
- "y": 1105.6556701660156,
- "z": "8a9c455f.82beb8",
+ "x": 5434.38232421875,
+ "y": 1721.6556701660156,
+ "z": "bc289cb4.31b288",
"wires": [
[
- "9190ad56.af3378"
+ "4d0c934c.0c9114"
]
]
},
{
- "id": "9190ad56.af3378",
+ "id": "4d0c934c.0c9114",
"type": "set",
"name": "set controller domainB data",
"xml": "<set>\n<parameter name='prop.sdncRestApi.thirdpartySdnc.domainB.url' value=\"`$tmp.aai.domainB.esr-thirdparty-sdnc.esr-system-info-list.esr-system-info[0].service-url`\" />\n<parameter name='prop.sdncRestApi.thirdpartySdnc.domainB.user' value=\"`$tmp.aai.domainB.esr-thirdparty-sdnc.esr-system-info-list.esr-system-info[0].user-name`\" />\n<parameter name='prop.sdncRestApi.thirdpartySdnc.domainB.password' value=\"`$tmp.aai.domainB.esr-thirdparty-sdnc.esr-system-info-list.esr-system-info[0].password`\" />\n\n\n<!--<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >-->\n<!--<parameter name=\"restapiUrl\" value=\"`$prop.sdncRestApi.thirdpartySdnc.url + '/restconf/data/ietf-network:networks'`\" />-->\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=\"get\"/>-->\n<!--<parameter name=\"responsePrefix\" value=\"topology\"/>-->\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",
"comments": "",
- "x": 5671,
- "y": 1102,
- "z": "8a9c455f.82beb8",
+ "x": 5649,
+ "y": 1718,
+ "z": "bc289cb4.31b288",
"wires": []
},
{
- "id": "a769e440.df581",
+ "id": "9355225.5c1536",
"type": "success",
"name": "success",
"xml": "<outcome value='success'>\n",
"comments": "",
"outputs": 1,
- "x": 5312,
- "y": 1108,
- "z": "8a9c455f.82beb8",
+ "x": 5290,
+ "y": 1724,
+ "z": "bc289cb4.31b288",
"wires": [
[
- "7c1b7b20.2d7bbc"
+ "d4ab39c.829a8c8"
]
]
},
{
- "id": "a7207c49.d2bbc",
+ "id": "66c76394.d1fea4",
"type": "not-found",
"name": "not-found",
"xml": "<outcome value='not-found'>\n",
"comments": "",
"outputs": 1,
- "x": 5304,
- "y": 1163,
- "z": "8a9c455f.82beb8",
+ "x": 5282,
+ "y": 1779,
+ "z": "bc289cb4.31b288",
"wires": [
[
- "b6c7c29b.5ee08"
+ "8ef11dae.da91"
]
]
},
{
- "id": "1e0583ed.3bab5c",
+ "id": "2e8b8501.9ee95a",
"type": "other",
"name": "other",
"xml": "<outcome value='Other'>\n",
"comments": "",
"outputs": 1,
- "x": 5309,
- "y": 1220,
- "z": "8a9c455f.82beb8",
+ "x": 5287,
+ "y": 1836,
+ "z": "bc289cb4.31b288",
"wires": [
[
- "61827e75.b97ad8"
+ "8616ea00.2e5968"
]
]
},
{
- "id": "9174febc.b8b998",
+ "id": "7ea091c4.73eb6",
"type": "save",
"name": "get connectivity from aai",
"xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\tresource=\"connectivity\"\n\t key=\"connectivity.connectivity-id = $tmp.aai.service-instance.relationship-list.relationship[$rel-index].relationship-data[0].relationship-value\"\n\t\tlocal-only=\"false\" \n\t\tpfx=\"tmp.aai.connectivity\" >\n",
"comments": "",
"outputs": 1,
- "x": 1826,
- "y": 474,
- "z": "8a9c455f.82beb8",
+ "x": 1819,
+ "y": 440,
+ "z": "bc289cb4.31b288",
"wires": [
[
- "c96ce0ff.9fbaf8",
- "96dddcba.eaaec8",
- "4ccaabcc.f5bb34"
+ "cf96a339.12fc08",
+ "ebf1abf2.c0a2b8",
+ "a6813928.711c6"
]
]
},
{
- "id": "c96ce0ff.9fbaf8",
+ "id": "cf96a339.12fc08",
"type": "success",
"name": "success",
"xml": "<outcome value='success'>\n",
"comments": "",
"outputs": 1,
- "x": 2034,
- "y": 438,
- "z": "8a9c455f.82beb8",
+ "x": 2027,
+ "y": 404,
+ "z": "bc289cb4.31b288",
"wires": [
[
- "5281d926.1c9dd"
+ "7e9b774d.9e8c28"
]
]
},
{
- "id": "96dddcba.eaaec8",
+ "id": "ebf1abf2.c0a2b8",
"type": "not-found",
"name": "not-found",
"xml": "<outcome value='not-found'>\n",
"comments": "",
"outputs": 1,
- "x": 2034.490966796875,
- "y": 483.57403564453125,
- "z": "8a9c455f.82beb8",
+ "x": 2027.490966796875,
+ "y": 449.57403564453125,
+ "z": "bc289cb4.31b288",
"wires": [
[
- "50a19d40.768324"
+ "b2e1099a.08fc3"
]
]
},
{
- "id": "4ccaabcc.f5bb34",
+ "id": "a6813928.711c6",
"type": "failure",
"name": "failure",
"xml": "<outcome value='failure'>\n",
"comments": "",
"outputs": 1,
- "x": 2032,
- "y": 527,
- "z": "8a9c455f.82beb8",
+ "x": 2025,
+ "y": 493,
+ "z": "bc289cb4.31b288",
"wires": [
[
- "ffedf4ef.62de2"
+ "8f5ccf37.c152"
]
]
},
{
- "id": "50a19d40.768324",
+ "id": "b2e1099a.08fc3",
"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 pnf from AnAI with pnf-name = ' + $prop.l3vpn.pe1_id`\" />\n\n",
"comments": "",
- "x": 2197.0623779296875,
- "y": 483.8597717285156,
- "z": "8a9c455f.82beb8",
+ "x": 2190.0623779296875,
+ "y": 449.8597717285156,
+ "z": "bc289cb4.31b288",
"wires": []
},
{
- "id": "ffedf4ef.62de2",
+ "id": "8f5ccf37.c152",
"type": "returnFailure",
"name": "return failure",
"xml": "<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value='' />\n",
"comments": "",
- "x": 2201,
- "y": 528,
- "z": "8a9c455f.82beb8",
+ "x": 2194,
+ "y": 494,
+ "z": "bc289cb4.31b288",
"wires": []
},
{
- "id": "113dd07d.86f868",
+ "id": "2f04c146.0a3af6",
"type": "save",
"name": "get vpn-binding from aai",
"xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\tresource=\"vpn-binding\"\n\t key=\"vpn-binding.vpn-id = $tmp.aai.connectivity.relationship-list.relationship[$cridx].relationship-data[0].relationship-value\"\n\t\tlocal-only=\"false\" \n\t\tpfx=\"tmp.aai.vpn-binding\" >\n",
"comments": "",
"outputs": 1,
- "x": 2507,
- "y": 527,
- "z": "8a9c455f.82beb8",
+ "x": 2500,
+ "y": 493,
+ "z": "bc289cb4.31b288",
"wires": [
[
- "2b6a4b71.479d3c",
- "34c32e6f.a9d052",
- "c2c66c33.7e24d"
+ "675654a6.d7ff34",
+ "15ae8ffb.52d9c8",
+ "5de62fdc.3f5a78"
]
]
},
{
- "id": "7a40580d.1d5388",
+ "id": "c4252359.e0b548",
"type": "block",
"name": "block : atomic",
"xml": "<block atomic=\"true\">",
"atomic": "true",
"outputs": 1,
- "x": 2891,
- "y": 527,
- "z": "8a9c455f.82beb8",
+ "x": 2884,
+ "y": 493,
+ "z": "bc289cb4.31b288",
"wires": [
[
- "eeee2acf.9c0ba8",
- "57847c7b.2f3dbc"
+ "cf117e36.f49698",
+ "9e15ad66.cb5638"
]
]
},
{
- "id": "2b6a4b71.479d3c",
+ "id": "675654a6.d7ff34",
"type": "success",
"name": "success",
"xml": "<outcome value='success'>\n",
"comments": "",
"outputs": 1,
- "x": 2718,
- "y": 529,
- "z": "8a9c455f.82beb8",
+ "x": 2711,
+ "y": 495,
+ "z": "bc289cb4.31b288",
"wires": [
[
- "7a40580d.1d5388"
+ "c4252359.e0b548"
]
]
},
{
- "id": "34c32e6f.a9d052",
+ "id": "15ae8ffb.52d9c8",
"type": "not-found",
"name": "not-found",
"xml": "<outcome value='not-found'>\n",
"comments": "",
"outputs": 1,
- "x": 2718.490966796875,
- "y": 574.5740356445312,
- "z": "8a9c455f.82beb8",
+ "x": 2711.490966796875,
+ "y": 540.5740356445312,
+ "z": "bc289cb4.31b288",
"wires": [
[
- "17c937f3.281d28"
+ "1c0c1f66.646011"
]
]
},
{
- "id": "c2c66c33.7e24d",
+ "id": "5de62fdc.3f5a78",
"type": "failure",
"name": "failure",
"xml": "<outcome value='failure'>\n",
"comments": "",
"outputs": 1,
- "x": 2716,
- "y": 618,
- "z": "8a9c455f.82beb8",
+ "x": 2709,
+ "y": 584,
+ "z": "bc289cb4.31b288",
"wires": [
[
- "45484d04.351e94"
+ "96b5913.ff6507"
]
]
},
{
- "id": "45484d04.351e94",
+ "id": "96b5913.ff6507",
"type": "returnFailure",
"name": "return failure",
"xml": "<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value='' />\n",
"comments": "",
- "x": 2883,
- "y": 617,
- "z": "8a9c455f.82beb8",
+ "x": 2876,
+ "y": 583,
+ "z": "bc289cb4.31b288",
"wires": []
},
{
- "id": "17c937f3.281d28",
+ "id": "1c0c1f66.646011",
"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 pnf from AnAI with pnf-name = ' + $prop.l3vpn.pe1_id`\" />\n\n",
"comments": "",
- "x": 2881.0623779296875,
- "y": 574.8597717285156,
- "z": "8a9c455f.82beb8",
+ "x": 2874.0623779296875,
+ "y": 540.8597717285156,
+ "z": "bc289cb4.31b288",
"wires": []
},
{
- "id": "5281d926.1c9dd",
+ "id": "7e9b774d.9e8c28",
"type": "for",
"name": "for each relationship",
"xml": "<for silentFailure='true' index='cridx' start='0' end='`$tmp.aai.connectivity.relationship-list.relationship_length`' >\n\n",
"comments": "",
"outputs": 1,
- "x": 2235,
- "y": 433,
- "z": "8a9c455f.82beb8",
+ "x": 2228,
+ "y": 399,
+ "z": "bc289cb4.31b288",
"wires": [
[
- "24c8cf8c.d35f5"
+ "a33b5641.550dd8"
]
]
},
{
- "id": "24c8cf8c.d35f5",
+ "id": "a33b5641.550dd8",
"type": "switchNode",
"name": "switch related-to",
"xml": "<switch test='`$tmp.aai.connectivity.relationship-list.relationship[$cridx].related-to`'>\n",
"comments": "",
"outputs": 1,
- "x": 2440,
- "y": 433,
- "z": "8a9c455f.82beb8",
+ "x": 2433,
+ "y": 399,
+ "z": "bc289cb4.31b288",
"wires": [
[
- "ffd8562e.6c7ab"
+ "dcc9c2f.bdc72c"
]
]
},
{
- "id": "ffd8562e.6c7ab",
+ "id": "dcc9c2f.bdc72c",
"type": "outcome",
"name": "vpn-binding",
"xml": "<outcome value='vpn-binding'>\n",
"comments": "",
"outputs": 1,
- "x": 2606,
- "y": 433,
- "z": "8a9c455f.82beb8",
+ "x": 2599,
+ "y": 399,
+ "z": "bc289cb4.31b288",
"wires": [
[
- "1639e360.7db745"
+ "b86471e.744979"
]
]
},
{
- "id": "1639e360.7db745",
+ "id": "b86471e.744979",
"type": "block",
"name": "block : atomic",
"xml": "<block atomic=\"true\">",
"atomic": "true",
"outputs": 1,
- "x": 2769,
- "y": 433,
- "z": "8a9c455f.82beb8",
+ "x": 2762,
+ "y": 399,
+ "z": "bc289cb4.31b288",
"wires": [
[
- "113dd07d.86f868",
- "b864657f.9c5a"
+ "2f04c146.0a3af6",
+ "65e4f8bf.6cf8f"
]
]
},
{
- "id": "eeee2acf.9c0ba8",
+ "id": "cf117e36.f49698",
"type": "switchNode",
"name": "switch vpn-binding has dst-access-ltp",
"xml": "<switch test='`$tmp.aai.vpn-binding.dst-access-ltp-id`'>\n",
"comments": "",
"outputs": 1,
- "x": 3145,
- "y": 526,
- "z": "8a9c455f.82beb8",
+ "x": 3138,
+ "y": 492,
+ "z": "bc289cb4.31b288",
"wires": [
[
- "888039c0.be2748",
- "40c5843d.11f78c"
+ "965ac3c2.a1d608",
+ "6bf420f8.6129c8"
]
]
},
{
- "id": "888039c0.be2748",
+ "id": "965ac3c2.a1d608",
"type": "outcome",
"name": "Null",
"xml": "<outcome value=''>\n",
"comments": "",
"outputs": 1,
- "x": 3398,
- "y": 560,
- "z": "8a9c455f.82beb8",
+ "x": 3391,
+ "y": 526,
+ "z": "bc289cb4.31b288",
"wires": [
[
- "d751d093.92a62"
+ "f82e8947.2d7ce8"
]
]
},
{
- "id": "40c5843d.11f78c",
+ "id": "6bf420f8.6129c8",
"type": "other",
"name": "other",
"xml": "<outcome value='Other'>\n",
"comments": "",
"outputs": 1,
- "x": 3398,
- "y": 504,
- "z": "8a9c455f.82beb8",
+ "x": 3391,
+ "y": 470,
+ "z": "bc289cb4.31b288",
"wires": [
[
- "ddefc1a3.6644c8"
+ "aacf39c3.b541a"
]
]
},
{
- "id": "d751d093.92a62",
+ "id": "f82e8947.2d7ce8",
"type": "switchNode",
"name": "switch vpn-binding has src-access-ltp",
"xml": "<switch test='`$tmp.aai.vpn-binding.src-access-ltp-id`'>\n",
"comments": "",
"outputs": 1,
- "x": 3137,
- "y": 1346,
- "z": "8a9c455f.82beb8",
+ "x": 3115,
+ "y": 1962,
+ "z": "bc289cb4.31b288",
"wires": [
[
- "b9609f04.c7afe8",
- "28e97c84.2c5ab4"
+ "10da65e0.f509ca",
+ "73ba091f.6ce2a"
]
]
},
{
- "id": "b9609f04.c7afe8",
+ "id": "10da65e0.f509ca",
"type": "outcome",
"name": "Null",
"xml": "<outcome value=''>\n",
"comments": "",
"outputs": 1,
- "x": 3390,
- "y": 1380,
- "z": "8a9c455f.82beb8",
+ "x": 3368,
+ "y": 1996,
+ "z": "bc289cb4.31b288",
"wires": [
[
- "ee3de09a.383318"
+ "d3f311e2.47dc9"
]
]
},
{
- "id": "28e97c84.2c5ab4",
+ "id": "73ba091f.6ce2a",
"type": "other",
"name": "other",
"xml": "<outcome value='Other'>\n",
"comments": "",
"outputs": 1,
- "x": 3390,
- "y": 1324,
- "z": "8a9c455f.82beb8",
+ "x": 3368,
+ "y": 1940,
+ "z": "bc289cb4.31b288",
"wires": [
[
- "b80c5827.1a79a"
+ "4a6141b6.6b0c98"
]
]
},
{
- "id": "ee3de09a.383318",
+ "id": "d3f311e2.47dc9",
"type": "returnFailure",
"name": "return failure",
"xml": "<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value='' />\n",
"comments": "",
- "x": 3541,
- "y": 1380,
- "z": "8a9c455f.82beb8",
+ "x": 3519,
+ "y": 1996,
+ "z": "bc289cb4.31b288",
"wires": []
},
{
- "id": "8527e1fa.cc6b4",
+ "id": "fb92b32f.578d9",
"type": "set",
"name": "set vpn-bindingA and connectivityA",
"xml": "<set>\n<parameter name='tmp.aai.vpn-bindingA.' value=\"`$tmp.aai.vpn-binding.`\" />\n<parameter name='tmp.aai.connectivityA.' value=\"`$tmp.aai.connectivity.`\" />\n",
"comments": "",
- "x": 3844,
- "y": 131,
- "z": "8a9c455f.82beb8",
+ "x": 4395,
+ "y": 94,
+ "z": "bc289cb4.31b288",
"wires": []
},
{
- "id": "615fdc8e.20c4e4",
+ "id": "16b6eb5a.c037cd",
"type": "set",
"name": "set vpn-bindingB and connectivityB",
"xml": "<set>\n<parameter name='tmp.aai.vpn-bindingB.' value=\"`$tmp.aai.vpn-binding.`\" />\n<parameter name='tmp.aai.connectivityB.' value=\"`$tmp.aai.connectivity.`\" />\n\n",
"comments": "",
- "x": 3825,
- "y": 937,
- "z": "8a9c455f.82beb8",
+ "x": 3803,
+ "y": 1553,
+ "z": "bc289cb4.31b288",
"wires": []
},
{
- "id": "ddefc1a3.6644c8",
+ "id": "b5fbea6d.693118",
"type": "block",
"name": "block : atomic",
"xml": "<block atomic=\"true\">",
"atomic": "true",
"comments": "",
"outputs": 1,
- "x": 3566,
- "y": 506,
- "z": "8a9c455f.82beb8",
+ "x": 4086,
+ "y": 351,
+ "z": "bc289cb4.31b288",
"wires": [
[
- "8527e1fa.cc6b4",
- "25e7d332.a761fc",
- "75d6c996.11aeb",
- "c824ab5b.360f6",
- "a96cdedb.06ef48",
- "616c98c7.f82ea8",
- "fee47d9.4382e"
+ "fb92b32f.578d9",
+ "fd4d27b6.bd205",
+ "4f40e2d1.4262ec",
+ "8abcb98.e721cc8",
+ "7974f996.7603f8",
+ "1460b865.7cff48",
+ "7648091a.a03898"
]
]
},
{
- "id": "b80c5827.1a79a",
+ "id": "4a6141b6.6b0c98",
"type": "block",
"name": "block : atomic",
"xml": "<block atomic=\"true\">",
"atomic": "true",
"outputs": 1,
- "x": 3541,
- "y": 1323,
- "z": "8a9c455f.82beb8",
+ "x": 3519,
+ "y": 1939,
+ "z": "bc289cb4.31b288",
"wires": [
[
- "615fdc8e.20c4e4",
- "27bc86e9.1c4e52",
- "2fd670.86d5219",
- "8581969f.3e9f8",
- "f8350413.ea8398",
- "96b5aedc.4196d",
- "e2e659bb.42dea"
+ "16b6eb5a.c037cd",
+ "3bea0429.f0ebac",
+ "32f45e6c.4d0bea",
+ "e8ca7925.e0f8c",
+ "d501f859.eecd18",
+ "dfc89384.6f3b98",
+ "7e08fa79.0c018c"
]
]
},
{
- "id": "96b5aedc.4196d",
+ "id": "dfc89384.6f3b98",
"type": "set",
"name": "set sotn_value",
"xml": "<set>\n<!--<parameter name='eth-service-name' value='`$tmp.aai.connectivityB.connectivity-id`' />-->\n<parameter name='eth-service-name' value='`$tmp.aai.connectivityB.etht-svc-name`' />\n<parameter name='slice-id' value='`$vnf-topology-operation-input.service-information.service-instance-id`' />\n<parameter name='provider-id' value='`$tmp.aai.connectivityB.access-provider-id`' />\n<parameter name='client-id' value='`$tmp.aai.connectivityB.access-client-id`' />\n<parameter name='topology-id' value='`$tmp.aai.connectivityB.access-topology-id`' />\n<parameter name='otn-tunnel-name' value='`$tmp.aai.vpn-bindingB.vpn-name`' />\n<parameter name='ethernet-end-point-name' value='`$tmp.aai.connectivityB.connectivity-id`' />\n<parameter name='index-number' value='0' />\n<parameter name='eth-node-id' value='`$tmp.aai.connectivityB.access-node-id`' />\n<parameter name='eth-node-tp-id' value='`$tmp.aai.connectivityB.access-ltp-id`' />\n<parameter name='CIR' value='`$tmp.aai.vpn-bindingB.route-distinguisher *1000000`' />\n<parameter name='EIR' value='`$tmp.aai.vpn-bindingB.route-distinguisher *1000000`' />\n<parameter name='cvlan' value='`$tmp.aai.connectivityB.cvlan`' />\n\n",
"comments": "",
- "x": 3770,
- "y": 1466,
- "z": "8a9c455f.82beb8",
+ "x": 3748,
+ "y": 2082,
+ "z": "bc289cb4.31b288",
"wires": []
},
{
- "id": "e2e659bb.42dea",
+ "id": "7e08fa79.0c018c",
"type": "execute",
"name": "execute RestApiCallNode Create ethernet Service without token",
"xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"templateFileName\" value=\"`$prop.restapi.templateDir + '/' + $prop.restapi.ts-ethernet-service.templatefile`\" />\n<parameter name=\"restapiUrl\" value=\"`$prop.sdncRestApi.thirdpartySdnc.domainB.url + '/restconf/data/ietf-eth-tran-service:etht-svc'`\" />\n<!--<parameter name=\"restapiUrl\" value=\"`$prop.restapi.connection-oof-url`\" />-->\n<parameter name=\"restapiUser\" value=\"`$prop.sdncRestApi.thirdpartySdnc.domainB.user`\" />\n<parameter name=\"restapiPassword\" value=\"`$prop.sdncRestApi.thirdpartySdnc.domainB.password`\" />\n<parameter name=\"format\" value=\"json\"/>\n<parameter name=\"httpMethod\" value=\"patch\"/>\n<parameter name='dirPath' value=\"/opt/onap/sdnc/restconfapi/yang\" />\n<parameter name=\"responsePrefix\" value=\"vpn-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",
"comments": "",
"outputs": 1,
- "x": 3924,
- "y": 1514,
- "z": "8a9c455f.82beb8",
+ "x": 3902,
+ "y": 2130,
+ "z": "bc289cb4.31b288",
"wires": [
[
- "a28581db.fa7cb",
- "a3f78a52.db8928"
+ "dd71fa1b.6e05f",
+ "23079c35.06b53c"
]
]
},
{
- "id": "a28581db.fa7cb",
+ "id": "dd71fa1b.6e05f",
"type": "failure",
"name": "failure",
"xml": "<outcome value='failure'>\n",
"comments": "",
"outputs": 1,
- "x": 4269.5,
- "y": 1495,
- "z": "8a9c455f.82beb8",
+ "x": 4247.5,
+ "y": 2111,
+ "z": "bc289cb4.31b288",
"wires": [
[
- "14523534.ce6de3"
+ "531e9904.6c0cf"
]
]
},
{
- "id": "a3f78a52.db8928",
+ "id": "23079c35.06b53c",
"type": "success",
"name": "success",
"xml": "<outcome value='success'>\n",
"comments": "",
"outputs": 1,
- "x": 4273.5,
- "y": 1535,
- "z": "8a9c455f.82beb8",
+ "x": 4251.5,
+ "y": 2151,
+ "z": "bc289cb4.31b288",
"wires": [
[
- "2e9384b8.e29014"
+ "ca751a91.a1fc5"
]
]
},
{
- "id": "14523534.ce6de3",
+ "id": "531e9904.6c0cf",
"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 ethernet service rest api\" />\n",
"comments": "",
- "x": 4427.5,
- "y": 1495,
- "z": "8a9c455f.82beb8",
+ "x": 4405.5,
+ "y": 2111,
+ "z": "bc289cb4.31b288",
"wires": []
},
{
- "id": "2e9384b8.e29014",
+ "id": "ca751a91.a1fc5",
"type": "block",
"name": "block : atomic",
"xml": "<block atomic=\"true\">",
"atomic": "true",
"comments": "",
"outputs": 1,
- "x": 4431,
- "y": 1535,
- "z": "8a9c455f.82beb8",
+ "x": 4409,
+ "y": 2151,
+ "z": "bc289cb4.31b288",
"wires": [
[
- "b54e7482.e242c8",
- "df1f167a.857918"
+ "acce8a06.32f9",
+ "300cb80e.add27"
]
]
},
{
- "id": "364ac531.cfcb5a",
+ "id": "ed3d8ab7.5da83",
"type": "comment",
"name": "TODO: FIXME:",
"info": "put proper values based on connectivity resource retrieved from AAI",
"comments": "",
- "x": 3767.5,
- "y": 1422,
- "z": "8a9c455f.82beb8",
+ "x": 3745.5,
+ "y": 2038,
+ "z": "bc289cb4.31b288",
"wires": []
},
{
- "id": "b54e7482.e242c8",
+ "id": "acce8a06.32f9",
"type": "save",
"name": "update vpn-binding B resource (aka. OTN domainB) in AAI",
"xml": "<update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='vpn-binding' \n key='vpn-binding.vpn-id = $tmp.aai.vpn-bindingB.vpn-id' >\n<parameter name='vpn-id' value='`$tmp.aai.vpn-bindingB.vpn-id`' />\n<parameter name='vpn-name' value='`$tmp.aai.vpn-bindingB.vpn-name`' />\n\n<parameter name='operational-status' value='Activated' />\n",
"comments": "",
"outputs": 1,
- "x": 4771,
- "y": 1534,
- "z": "8a9c455f.82beb8",
+ "x": 4749,
+ "y": 2150,
+ "z": "bc289cb4.31b288",
"wires": [
[]
]
},
{
- "id": "68be1db9.7e03ec",
+ "id": "dd0732a8.6dcd38",
"type": "comment",
"name": "TODO: FIXME",
"info": "use proper vpn-binding id and connectivity\n\nAlso, does CCSDK support \"update\" operation for vpn-binding and connectivity?",
"comments": "",
- "x": 4629,
- "y": 1492,
- "z": "8a9c455f.82beb8",
+ "x": 4607,
+ "y": 2108,
+ "z": "bc289cb4.31b288",
"wires": []
},
{
- "id": "df1f167a.857918",
+ "id": "300cb80e.add27",
"type": "save",
"name": "update connectivity resource in AAI",
"xml": "<update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='connectivity' \n key='connectivity.connectivity-id = $tmp.aai.connectivityB.connectivity-id'>\n<parameter name='connectivity-id' value='`$tmp.aai.connectivityB.connectivity-id`' />\n<parameter name='operational-status' value='Activated' />\n",
"comments": "",
"outputs": 1,
- "x": 4700,
- "y": 1583,
- "z": "8a9c455f.82beb8",
+ "x": 4678,
+ "y": 2199,
+ "z": "bc289cb4.31b288",
"wires": [
[]
]
},
{
- "id": "57847c7b.2f3dbc",
+ "id": "9e15ad66.cb5638",
"type": "set",
- "name": "set attachment_param for OTN",
+ "name": "set attachment_param (gfp-n) for OTN",
"xml": "<set>\n<parameter name='gfp-n' value='`$tmp.aai.vpn-binding.route-distinguisher`' />\n",
"comments": "",
- "x": 3132,
- "y": 432,
- "z": "8a9c455f.82beb8",
+ "x": 3125,
+ "y": 398,
+ "z": "bc289cb4.31b288",
"wires": []
},
{
- "id": "b864657f.9c5a",
+ "id": "65e4f8bf.6cf8f",
"type": "set",
"name": "unset tmp.aai.vpn-binding",
"xml": "<set>\n<parameter name='tmp.aai.vpn-binding.' value='' />\n",
"comments": "",
- "x": 2953,
- "y": 304,
- "z": "8a9c455f.82beb8",
+ "x": 2946,
+ "y": 270,
+ "z": "bc289cb4.31b288",
+ "wires": []
+ },
+ {
+ "id": "198fcdf8.1e22c2",
+ "type": "comment",
+ "name": "only dst ttp exists. No src",
+ "info": "",
+ "comments": "",
+ "x": 3907,
+ "y": 308,
+ "z": "bc289cb4.31b288",
+ "wires": []
+ },
+ {
+ "id": "ca0cd7a2.5ca728",
+ "type": "comment",
+ "name": "only src ttp exists. No dst",
+ "info": "",
+ "comments": "",
+ "x": 3464,
+ "y": 1886,
+ "z": "bc289cb4.31b288",
+ "wires": []
+ },
+ {
+ "id": "aacf39c3.b541a",
+ "type": "switchNode",
+ "name": "switch vpn-binding has src-access-ltp",
+ "xml": "<switch test='`$tmp.aai.vpn-binding.src-access-ltp-id`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 3615,
+ "y": 468,
+ "z": "bc289cb4.31b288",
+ "wires": [
+ [
+ "df2281b1.f49f38",
+ "aea11bc2.879238"
+ ]
+ ]
+ },
+ {
+ "id": "aea11bc2.879238",
+ "type": "other",
+ "name": "other",
+ "xml": "<outcome value='Other'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 3885,
+ "y": 1059,
+ "z": "bc289cb4.31b288",
+ "wires": [
+ [
+ "f4291584.31d5f8"
+ ]
+ ]
+ },
+ {
+ "id": "df2281b1.f49f38",
+ "type": "outcome",
+ "name": "Null",
+ "xml": "<outcome value=''>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 3879,
+ "y": 350,
+ "z": "bc289cb4.31b288",
+ "wires": [
+ [
+ "b5fbea6d.693118"
+ ]
+ ]
+ },
+ {
+ "id": "f4291584.31d5f8",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "outputs": 1,
+ "x": 4043,
+ "y": 1058,
+ "z": "bc289cb4.31b288",
+ "wires": [
+ [
+ "507acb8a.026844",
+ "328f5ebe.d2c3f2",
+ "282b55f0.c4b452",
+ "f1d5dfc2.902f38",
+ "e32fad74.744d"
+ ]
+ ]
+ },
+ {
+ "id": "328f5ebe.d2c3f2",
+ "type": "set",
+ "name": "set attachment_param for OTN G",
+ "xml": "<set>\n<parameter name='src-node-id' value='`$tmp.aai.vpn-bindingG.src-access-node-id`' />\n<parameter name='dst-node-id' value='`$tmp.aai.vpn-bindingG.dst-access-node-id`' />\n<!--<parameter name='dst-tpn-id' value='1' />-->\n<parameter name='src-tpn-id' value='`$tmp.aai.vpn-bindingG.customer-vpn-id`' />\n<parameter name='dst-tpn-id' value='`$tmp.aai.vpn-bindingG.customer-vpn-id`' />\n<parameter name='src-ttp-id' value='`$tmp.aai.vpn-bindingG.src-access-ltp-id`' />\n<parameter name='dst-ttp-id' value='`$tmp.aai.vpn-bindingG.dst-access-ltp-id`' />\n<parameter name='slice-instance-id' value='`$tmp.aai.service-instance.service-instance-id`' />\n<parameter name='otn-tunnel-name-domainG' value='`$tmp.aai.vpn-bindingG.vpn-name`' />\n<parameter name='client-id' value='`$tmp.aai.vpn-bindingG.access-client-id`' />\n<parameter name='provider-id' value='`$tmp.aai.vpn-bindingG.access-provider-id`' />\n<parameter name='topology-id' value='`$tmp.aai.vpn-bindingG.access-topology-id`' />\n",
+ "comments": "",
+ "x": 4307,
+ "y": 941,
+ "z": "bc289cb4.31b288",
+ "wires": []
+ },
+ {
+ "id": "e32fad74.744d",
+ "type": "execute",
+ "name": "execute RestApiCallNode Create OTN tunnel with token",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"templateFileName\" value=\"`$prop.restapi.templateDir + '/' + $prop.restapi.ts-otn-domainG-creation.templatefile`\" />\n<parameter name=\"restapiUrl\" value=\"`$prop.sdncRestApi.thirdpartySdnc.domainG.url + '/restconf/data/ietf-te:te'`\" />\n<parameter name=\"restapiUser\" value=\"`$prop.sdncRestApi.thirdpartySdnc.domainG.user`\" />\n<parameter name=\"restapiPassword\" value=\"`$prop.sdncRestApi.thirdpartySdnc.domainG.password`\" />\n<parameter name=\"format\" value=\"json\"/>\n<parameter name=\"httpMethod\" value=\"patch\"/>\n<parameter name=\"responsePrefix\" value=\"otn-oof\"/>\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": 4388,
+ "y": 1256,
+ "z": "bc289cb4.31b288",
+ "wires": [
+ [
+ "4fa7d7bd.5a2ab",
+ "f472be3.5d0074"
+ ]
+ ]
+ },
+ {
+ "id": "4fa7d7bd.5a2ab",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 4697.5,
+ "y": 1225,
+ "z": "bc289cb4.31b288",
+ "wires": [
+ [
+ "1f127e35.6d237a"
+ ]
+ ]
+ },
+ {
+ "id": "f472be3.5d0074",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 4702.5,
+ "y": 1290,
+ "z": "bc289cb4.31b288",
+ "wires": [
+ [
+ "5d6567d4.56edf"
+ ]
+ ]
+ },
+ {
+ "id": "1f127e35.6d237a",
+ "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 OTN tunnel rest api\" />\n",
+ "comments": "",
+ "x": 4873.5,
+ "y": 1225,
+ "z": "bc289cb4.31b288",
+ "wires": []
+ },
+ {
+ "id": "5d6567d4.56edf",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 4869,
+ "y": 1290,
+ "z": "bc289cb4.31b288",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "282b55f0.c4b452",
+ "type": "set",
+ "name": "set pnf-name",
+ "xml": "<set>\n<parameter name='tmp.domainG.pnf-name' value=\"`'networkId-providerId-' +\n $tmp.aai.vpn-bindingG.access-provider-id + '-clientId-' +\n $tmp.aai.vpn-bindingG.access-client-id + '-topologyId-' +\n $tmp.aai.vpn-bindingG.access-topology-id + '-nodeId-' +\n $tmp.aai.vpn-bindingG.src-access-node-id`\" />\n",
+ "comments": "",
+ "x": 4245,
+ "y": 989,
+ "z": "bc289cb4.31b288",
+ "wires": []
+ },
+ {
+ "id": "f1d5dfc2.902f38",
+ "type": "get-resource",
+ "name": "get-resource src pnf",
+ "xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\t\tresource=\"pnf\" \n\t\tkey=\"pnf.pnf-name = $tmp.domainG.pnf-name\"\n pfx='tmp.aai.domainG-pnf' local-only='false' >\n\n <!--AND depth = '0'\"-->\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 4271,
+ "y": 1106,
+ "z": "bc289cb4.31b288",
+ "wires": [
+ [
+ "b1abc6d5.732f1",
+ "5f6c0c85.ca44ac",
+ "386d37a9.f48098"
+ ]
+ ]
+ },
+ {
+ "id": "b1abc6d5.732f1",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 4466.5001220703125,
+ "y": 1058,
+ "z": "bc289cb4.31b288",
+ "wires": [
+ [
+ "7b990f0b.20c288"
+ ]
+ ]
+ },
+ {
+ "id": "5f6c0c85.ca44ac",
+ "type": "not-found",
+ "name": "not-found",
+ "xml": "<outcome value='not-found'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 4458.5001220703125,
+ "y": 1113,
+ "z": "bc289cb4.31b288",
+ "wires": [
+ [
+ "315f8841.f40a1"
+ ]
+ ]
+ },
+ {
+ "id": "7b990f0b.20c288",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 4610.8824462890625,
+ "y": 1057.6556701660156,
+ "z": "bc289cb4.31b288",
+ "wires": [
+ [
+ "c8fb728b.2dc648"
+ ]
+ ]
+ },
+ {
+ "id": "c8fb728b.2dc648",
+ "type": "for",
+ "name": "for each relationship",
+ "xml": "<for silentFailure='true' index='spvidx' start='0' end='`$tmp.aai.domainG-pnf.relationship-list.relationship_length`' >\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 4795,
+ "y": 1056,
+ "z": "bc289cb4.31b288",
+ "wires": [
+ [
+ "d59f0b39.d31cc8"
+ ]
+ ]
+ },
+ {
+ "id": "d59f0b39.d31cc8",
+ "type": "switchNode",
+ "name": "switch related-to",
+ "xml": "<switch test='`$tmp.aai.domainG-pnf.relationship-list.relationship[$spvidx].related-to`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 4990,
+ "y": 1056,
+ "z": "bc289cb4.31b288",
+ "wires": [
+ [
+ "7e05c38e.6d5cbc"
+ ]
+ ]
+ },
+ {
+ "id": "386d37a9.f48098",
+ "type": "other",
+ "name": "other",
+ "xml": "<outcome value='Other'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 4463.5001220703125,
+ "y": 1170,
+ "z": "bc289cb4.31b288",
+ "wires": [
+ [
+ "46492ab4.cb6c04"
+ ]
+ ]
+ },
+ {
+ "id": "46492ab4.cb6c04",
+ "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 pnf from AnAI with pnf-name = ' + $prop.connection-attachement.access-node-id`\" />\n\n",
+ "comments": "",
+ "x": 4615.5001220703125,
+ "y": 1171,
+ "z": "bc289cb4.31b288",
+ "wires": []
+ },
+ {
+ "id": "315f8841.f40a1",
+ "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 pnf from AnAI with pnf-name = ' + $prop.connection-attachement.access-node-id`\" />\n\n",
+ "comments": "",
+ "x": 4626.5001220703125,
+ "y": 1114,
+ "z": "bc289cb4.31b288",
+ "wires": []
+ },
+ {
+ "id": "507acb8a.026844",
+ "type": "set",
+ "name": "set vpn-bindingG and connectivityG",
+ "xml": "<set>\n<parameter name='tmp.aai.vpn-bindingG.' value=\"`$tmp.aai.vpn-binding.`\" />\n<parameter name='tmp.aai.connectivityG.' value=\"`$tmp.aai.connectivity.`\" />\n",
+ "comments": "",
+ "x": 4302,
+ "y": 881,
+ "z": "bc289cb4.31b288",
+ "wires": []
+ },
+ {
+ "id": "7e05c38e.6d5cbc",
+ "type": "outcome",
+ "name": "esr-thirdparty-sdnc",
+ "xml": "<outcome value='esr-thirdparty-sdnc'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 5193,
+ "y": 1060,
+ "z": "bc289cb4.31b288",
+ "wires": [
+ [
+ "436389a3.57fb78"
+ ]
+ ]
+ },
+ {
+ "id": "6a766cec.04fc1c",
+ "type": "execute",
+ "name": "get 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 = $tmp.domainG.esr-thirdparty-id AND \n\t\t depth = '1'\"\n pfx='tmp.aai.domainG.esr-thirdparty-sdnc' local-only='false' >",
+ "comments": "",
+ "outputs": 1,
+ "x": 5578,
+ "y": 1073,
+ "z": "bc289cb4.31b288",
+ "wires": [
+ [
+ "985e5e77.801e6",
+ "a10da0b1.afaa18",
+ "4e466bf1.fc05c4"
+ ]
+ ]
+ },
+ {
+ "id": "436389a3.57fb78",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "outputs": 1,
+ "x": 5372,
+ "y": 1060,
+ "z": "bc289cb4.31b288",
+ "wires": [
+ [
+ "507f9c6b.ef2c2c",
+ "6a766cec.04fc1c"
+ ]
+ ]
+ },
+ {
+ "id": "507f9c6b.ef2c2c",
+ "type": "set",
+ "name": "set esr-thirdparty-sdnc domainG id",
+ "xml": "<set>\n<parameter name='tmp.domainG.esr-thirdparty-id' value=\"`$tmp.aai.domainG-pnf.relationship-list.relationship[$spvidx].relationship-data[0].relationship-value`\" />\n",
+ "comments": "",
+ "x": 5608,
+ "y": 1021,
+ "z": "bc289cb4.31b288",
+ "wires": []
+ },
+ {
+ "id": "985e5e77.801e6",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 5788,
+ "y": 1064,
+ "z": "bc289cb4.31b288",
+ "wires": [
+ [
+ "37e160ea.8f86d8"
+ ]
+ ]
+ },
+ {
+ "id": "a10da0b1.afaa18",
+ "type": "not-found",
+ "name": "not-found",
+ "xml": "<outcome value='not-found'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 5780,
+ "y": 1119,
+ "z": "bc289cb4.31b288",
+ "wires": [
+ [
+ "81ccddb5.3e1b1"
+ ]
+ ]
+ },
+ {
+ "id": "4e466bf1.fc05c4",
+ "type": "other",
+ "name": "other",
+ "xml": "<outcome value='Other'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 5785,
+ "y": 1176,
+ "z": "bc289cb4.31b288",
+ "wires": [
+ [
+ "c4f4a10b.e46a6"
+ ]
+ ]
+ },
+ {
+ "id": "c4f4a10b.e46a6",
+ "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 pnf from AnAI with pnf-name = ' + $prop.connection-attachement.access-node-id`\" />\n\n",
+ "comments": "",
+ "x": 5937,
+ "y": 1177,
+ "z": "bc289cb4.31b288",
+ "wires": []
+ },
+ {
+ "id": "81ccddb5.3e1b1",
+ "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 pnf from AnAI with pnf-name = ' + $prop.connection-attachement.access-node-id`\" />\n\n",
+ "comments": "",
+ "x": 5948,
+ "y": 1122,
+ "z": "bc289cb4.31b288",
+ "wires": []
+ },
+ {
+ "id": "37e160ea.8f86d8",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 5932.38232421875,
+ "y": 1061.6556701660156,
+ "z": "bc289cb4.31b288",
+ "wires": [
+ [
+ "4cbb09e8.a29488"
+ ]
+ ]
+ },
+ {
+ "id": "4cbb09e8.a29488",
+ "type": "set",
+ "name": "set controller domainG data",
+ "xml": "<set>\n<parameter name='prop.sdncRestApi.thirdpartySdnc.domainG.url' value=\"`$tmp.aai.domainG.esr-thirdparty-sdnc.esr-system-info-list.esr-system-info[0].service-url`\" />\n<parameter name='prop.sdncRestApi.thirdpartySdnc.domainG.user' value=\"`$tmp.aai.domainG.esr-thirdparty-sdnc.esr-system-info-list.esr-system-info[0].user-name`\" />\n<parameter name='prop.sdncRestApi.thirdpartySdnc.domainG.password' value=\"`$tmp.aai.domainG.esr-thirdparty-sdnc.esr-system-info-list.esr-system-info[0].password`\" />\n\n\n<!--<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >-->\n<!--<parameter name=\"restapiUrl\" value=\"`$prop.sdncRestApi.thirdpartySdnc.url + '/restconf/data/ietf-network:networks'`\" />-->\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=\"get\"/>-->\n<!--<parameter name=\"responsePrefix\" value=\"topology\"/>-->\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",
+ "comments": "",
+ "x": 6147,
+ "y": 1058,
+ "z": "bc289cb4.31b288",
+ "wires": []
+ },
+ {
+ "id": "28d376a3.473102",
+ "type": "comment",
+ "name": "both src and dst exist",
+ "info": "",
+ "comments": "",
+ "x": 3921,
+ "y": 999,
+ "z": "bc289cb4.31b288",
"wires": []
}
] \ No newline at end of file