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.json1196
1 files changed, 604 insertions, 592 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 9ffaaf75..3d894d5e 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": "d3bb30c4.60fa",
+ "id": "d5615e24.a00ab8",
"type": "dgstart",
"name": "DGSTART",
"outputs": 1,
- "x": 130,
- "y": 87,
- "z": "bc9d969b.328b8",
+ "x": 156,
+ "y": 95,
+ "z": "8a9c455f.82beb8",
"wires": [
[
- "d58b4202.9cdb3"
+ "90741178.637a68"
]
]
},
{
- "id": "d58b4202.9cdb3",
+ "id": "90741178.637a68",
"type": "service-logic",
"name": "GENERIC-RESOURCE-API ${project.version}",
"module": "GENERIC-RESOURCE-API",
@@ -22,1717 +22,1729 @@
"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": 261.2856903076172,
- "y": 136.23810863494873,
- "z": "bc9d969b.328b8",
+ "x": 287.2856903076172,
+ "y": 144.23810863494873,
+ "z": "8a9c455f.82beb8",
"wires": [
[
- "617bde2e.1132b"
+ "e9aee376.235818"
]
]
},
{
- "id": "617bde2e.1132b",
+ "id": "e9aee376.235818",
"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": 264.4286193847656,
- "y": 221.00003242492676,
- "z": "bc9d969b.328b8",
+ "x": 290.4286193847656,
+ "y": 229.00003242492676,
+ "z": "8a9c455f.82beb8",
"wires": [
[
- "8ac7a60e.72d768"
+ "9c8b5d20.5b6ef8"
]
]
},
{
- "id": "8ac7a60e.72d768",
+ "id": "9c8b5d20.5b6ef8",
"type": "block",
"name": "block : atomic",
"xml": "<block atomic=\"true\">",
"atomic": "true",
"outputs": 1,
- "x": 414.238037109375,
- "y": 350.6666564941406,
- "z": "bc9d969b.328b8",
+ "x": 440.238037109375,
+ "y": 358.6666564941406,
+ "z": "8a9c455f.82beb8",
"wires": [
[
- "72b21bde.5e8f94",
- "9fe7f5eb.e26c6",
- "9bca10ea.41532"
+ "f1c1dc9b.59851",
+ "40fee6aa.417918",
+ "a3f28ac6.d30ed8"
]
]
},
{
- "id": "72b21bde.5e8f94",
+ "id": "f1c1dc9b.59851",
"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": 682.5716552734375,
- "y": 737.59716796875,
- "z": "bc9d969b.328b8",
+ "x": 708.5716552734375,
+ "y": 745.59716796875,
+ "z": "8a9c455f.82beb8",
"wires": []
},
{
- "id": "441fc399.08ca9c",
+ "id": "e4fd4d94.2b8ec8",
"type": "comment",
"name": "new for TransportSlicing",
"info": "",
"comments": "",
- "x": 714,
- "y": 412,
- "z": "bc9d969b.328b8",
+ "x": 740,
+ "y": 420,
+ "z": "8a9c455f.82beb8",
"wires": []
},
{
- "id": "9fe7f5eb.e26c6",
+ "id": "40fee6aa.417918",
"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": 734,
- "y": 508,
- "z": "bc9d969b.328b8",
+ "x": 760,
+ "y": 516,
+ "z": "8a9c455f.82beb8",
"wires": [
[
- "926c12ae.af2a48",
- "5deb4cbf.60b5f4",
- "35c77549.8e65c2"
+ "15f2cda7.88709a",
+ "187b249d.3c85cb",
+ "c12e657e.e2c7f8"
]
]
},
{
- "id": "926c12ae.af2a48",
+ "id": "15f2cda7.88709a",
"type": "success",
"name": "success",
"xml": "<outcome value='success'>\n",
"comments": "",
"outputs": 1,
- "x": 953,
- "y": 446,
- "z": "bc9d969b.328b8",
+ "x": 979,
+ "y": 454,
+ "z": "8a9c455f.82beb8",
"wires": [
[
- "c296586e.046f08"
+ "56c6117d.ed7bc"
]
]
},
{
- "id": "5deb4cbf.60b5f4",
+ "id": "187b249d.3c85cb",
"type": "not-found",
"name": "not-found",
"xml": "<outcome value='not-found'>\n",
"comments": "",
"outputs": 1,
- "x": 962.490966796875,
- "y": 488.57403564453125,
- "z": "bc9d969b.328b8",
+ "x": 988.490966796875,
+ "y": 496.57403564453125,
+ "z": "8a9c455f.82beb8",
"wires": [
[
- "bb46ff52.717af8"
+ "dd3e3cac.482ca8"
]
]
},
{
- "id": "35c77549.8e65c2",
+ "id": "c12e657e.e2c7f8",
"type": "failure",
"name": "failure",
"xml": "<outcome value='failure'>\n",
"comments": "",
"outputs": 1,
- "x": 951,
- "y": 535,
- "z": "bc9d969b.328b8",
+ "x": 977,
+ "y": 543,
+ "z": "8a9c455f.82beb8",
"wires": [
[
- "236d61d5.47d9a6"
+ "d7bbbdd4.b85c7"
]
]
},
{
- "id": "bb46ff52.717af8",
+ "id": "dd3e3cac.482ca8",
"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": 1116.0623779296875,
- "y": 491.8597717285156,
- "z": "bc9d969b.328b8",
+ "x": 1142.0623779296875,
+ "y": 499.8597717285156,
+ "z": "8a9c455f.82beb8",
"wires": []
},
{
- "id": "236d61d5.47d9a6",
+ "id": "d7bbbdd4.b85c7",
"type": "returnFailure",
"name": "return failure",
"xml": "<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value='' />\n",
"comments": "",
- "x": 1120,
- "y": 536,
- "z": "bc9d969b.328b8",
+ "x": 1146,
+ "y": 544,
+ "z": "8a9c455f.82beb8",
"wires": []
},
{
- "id": "c296586e.046f08",
+ "id": "56c6117d.ed7bc",
"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": 1150,
- "y": 442,
- "z": "bc9d969b.328b8",
+ "x": 1176,
+ "y": 450,
+ "z": "8a9c455f.82beb8",
"wires": [
[
- "b77b70ed.c591c"
+ "68f0da0a.13a494"
]
]
},
{
- "id": "b77b70ed.c591c",
+ "id": "68f0da0a.13a494",
"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": 1373.33349609375,
- "y": 441.99993896484375,
- "z": "bc9d969b.328b8",
+ "x": 1399.33349609375,
+ "y": 449.99993896484375,
+ "z": "8a9c455f.82beb8",
"wires": [
[
- "2fc295b4.0602da"
+ "a37a9810.801788"
]
]
},
{
- "id": "2fc295b4.0602da",
+ "id": "a37a9810.801788",
"type": "outcome",
"name": "connectivity",
"xml": "<outcome value='connectivity'>\n",
"comments": "",
"outputs": 1,
- "x": 1574.0001335144043,
- "y": 443.00002098083496,
- "z": "bc9d969b.328b8",
+ "x": 1600.0001335144043,
+ "y": 451.00002098083496,
+ "z": "8a9c455f.82beb8",
"wires": [
[
- "483259b4.af3e1"
+ "2d3714db.b7aad4"
]
]
},
{
- "id": "cba9b813.e1b22",
+ "id": "3d56fd4f.8da4ea",
"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-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": 3835,
- "y": 162,
- "z": "bc9d969b.328b8",
+ "x": 3861,
+ "y": 170,
+ "z": "8a9c455f.82beb8",
"wires": []
},
{
- "id": "c84632a9.494938",
+ "id": "119d7057.187e9",
"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=\"post\"/>\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`\" />",
+ "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": 3916,
- "y": 477,
- "z": "bc9d969b.328b8",
+ "x": 3942,
+ "y": 485,
+ "z": "8a9c455f.82beb8",
"wires": [
[
- "f012f442.27b7b8",
- "961e7c8c.e8988"
+ "a078109.a1f9bf",
+ "c205f5c4.0bdb88"
]
]
},
{
- "id": "f012f442.27b7b8",
+ "id": "a078109.a1f9bf",
"type": "failure",
"name": "failure",
"xml": "<outcome value='failure'>\n",
"comments": "",
"outputs": 1,
- "x": 4225.5,
- "y": 446,
- "z": "bc9d969b.328b8",
+ "x": 4251.5,
+ "y": 454,
+ "z": "8a9c455f.82beb8",
"wires": [
[
- "85de6f60.586588"
+ "3b38ca16.a7fb4e"
]
]
},
{
- "id": "961e7c8c.e8988",
+ "id": "c205f5c4.0bdb88",
"type": "success",
"name": "success",
"xml": "<outcome value='success'>\n",
"comments": "",
"outputs": 1,
- "x": 4230.5,
- "y": 511,
- "z": "bc9d969b.328b8",
+ "x": 4256.5,
+ "y": 519,
+ "z": "8a9c455f.82beb8",
"wires": [
[
- "b3e28f35.f331c"
+ "176e9242.258856"
]
]
},
{
- "id": "85de6f60.586588",
+ "id": "3b38ca16.a7fb4e",
"type": "returnFailure",
"name": "return failure",
- "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n <parameter name=\"error-message\" value=\"Error executing Create vpn rest api\" />\n",
+ "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": 4401.5,
- "y": 446,
- "z": "bc9d969b.328b8",
+ "x": 4427.5,
+ "y": 454,
+ "z": "8a9c455f.82beb8",
"wires": []
},
{
- "id": "b3e28f35.f331c",
+ "id": "176e9242.258856",
"type": "block",
"name": "block : atomic",
"xml": "<block atomic=\"true\">",
"atomic": "true",
"comments": "",
"outputs": 1,
- "x": 4397,
- "y": 511,
- "z": "bc9d969b.328b8",
+ "x": 4423,
+ "y": 519,
+ "z": "8a9c455f.82beb8",
"wires": [
[]
]
},
{
- "id": "9e9578a4.5a4df",
+ "id": "ab834e.f483fcb",
"type": "set",
"name": "set sotn_value",
"xml": "<set>\n<parameter name='eth-service-name' value='`$tmp.aai.connectivityA.connectivity-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",
"comments": "",
- "x": 3782.5,
- "y": 665,
- "z": "bc9d969b.328b8",
+ "x": 3808.5,
+ "y": 673,
+ "z": "8a9c455f.82beb8",
"wires": []
},
{
- "id": "8d5f5723.afac28",
+ "id": "c9d60073.e2df48",
"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=\"post\"/>\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",
+ "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": 3936.5,
- "y": 713,
- "z": "bc9d969b.328b8",
+ "x": 3962.5,
+ "y": 721,
+ "z": "8a9c455f.82beb8",
"wires": [
[
- "7efa3090.e1e078",
- "602bb58a.eb8054"
+ "1e624148.f51b17",
+ "9b38443d.36a338"
]
]
},
{
- "id": "7efa3090.e1e078",
+ "id": "1e624148.f51b17",
"type": "failure",
"name": "failure",
"xml": "<outcome value='failure'>\n",
"comments": "",
"outputs": 1,
- "x": 4282,
- "y": 694,
- "z": "bc9d969b.328b8",
+ "x": 4308,
+ "y": 702,
+ "z": "8a9c455f.82beb8",
"wires": [
[
- "d892eebe.cdbb5"
+ "20712318.8d32fc"
]
]
},
{
- "id": "602bb58a.eb8054",
+ "id": "9b38443d.36a338",
"type": "success",
"name": "success",
"xml": "<outcome value='success'>\n",
"comments": "",
"outputs": 1,
- "x": 4286,
- "y": 734,
- "z": "bc9d969b.328b8",
+ "x": 4312,
+ "y": 742,
+ "z": "8a9c455f.82beb8",
"wires": [
[
- "34660646.412fea"
+ "a4fdbce9.b1c4"
]
]
},
{
- "id": "d892eebe.cdbb5",
+ "id": "20712318.8d32fc",
"type": "returnFailure",
"name": "return failure",
- "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n <parameter name=\"error-message\" value=\"Error executing Create vpn rest api\" />\n",
+ "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": 4440,
- "y": 694,
- "z": "bc9d969b.328b8",
+ "x": 4466,
+ "y": 702,
+ "z": "8a9c455f.82beb8",
"wires": []
},
{
- "id": "34660646.412fea",
+ "id": "a4fdbce9.b1c4",
"type": "block",
"name": "block : atomic",
"xml": "<block atomic=\"true\">",
"atomic": "true",
"comments": "",
"outputs": 1,
- "x": 4443.5,
- "y": 734,
- "z": "bc9d969b.328b8",
+ "x": 4469.5,
+ "y": 742,
+ "z": "8a9c455f.82beb8",
"wires": [
[
- "63e48280.b2cb84",
- "ffe3929d.a2fda"
+ "f9579fb7.928158",
+ "b5483433.ff3288"
]
]
},
{
- "id": "bae980db.b9d408",
+ "id": "320ccbea.c02274",
"type": "comment",
"name": "TODO: FIXME:",
"info": "put proper values based on connectivity resource retrieved from AAI",
"comments": "",
- "x": 3780,
- "y": 621,
- "z": "bc9d969b.328b8",
+ "x": 3806,
+ "y": 629,
+ "z": "8a9c455f.82beb8",
"wires": []
},
{
- "id": "63e48280.b2cb84",
+ "id": "f9579fb7.928158",
"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-id`' />\n\n<parameter name='operational-status' value='Activated' />\n",
"comments": "",
"outputs": 1,
- "x": 4774,
- "y": 699,
- "z": "bc9d969b.328b8",
+ "x": 4800,
+ "y": 707,
+ "z": "8a9c455f.82beb8",
"wires": [
[]
]
},
{
- "id": "2bc3079a.d7dde",
+ "id": "d3281524.0d8478",
"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": 4638,
- "y": 658,
- "z": "bc9d969b.328b8",
+ "x": 4664,
+ "y": 666,
+ "z": "8a9c455f.82beb8",
"wires": []
},
{
- "id": "ffe3929d.a2fda",
+ "id": "b5483433.ff3288",
"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": 4701,
- "y": 745,
- "z": "bc9d969b.328b8",
+ "x": 4727,
+ "y": 753,
+ "z": "8a9c455f.82beb8",
"wires": [
[]
]
},
{
- "id": "f01334b4.1d8928",
+ "id": "5074df67.2ba988",
"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": 3773,
- "y": 210,
- "z": "bc9d969b.328b8",
+ "x": 3799,
+ "y": 218,
+ "z": "8a9c455f.82beb8",
"wires": []
},
{
- "id": "dbf99a2b.67c71",
+ "id": "9fd13730.014208",
"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": 3799,
- "y": 327,
- "z": "bc9d969b.328b8",
+ "x": 3825,
+ "y": 335,
+ "z": "8a9c455f.82beb8",
"wires": [
[
- "27a62f4.f17ab5",
- "1aa65c21.28f974",
- "a732e62d.9d3f9"
+ "e11a5ea7.685f28",
+ "6cb0b7a8.80c24",
+ "a90c44f8.bdb148"
]
]
},
{
- "id": "27a62f4.f17ab5",
+ "id": "e11a5ea7.685f28",
"type": "success",
"name": "success",
"xml": "<outcome value='success'>\n",
"comments": "",
"outputs": 1,
- "x": 3994.5001220703125,
- "y": 279,
- "z": "bc9d969b.328b8",
+ "x": 4020.5001220703125,
+ "y": 287,
+ "z": "8a9c455f.82beb8",
"wires": [
[
- "b04b9242.14b66"
+ "dfb8903c.c1b1d8"
]
]
},
{
- "id": "1aa65c21.28f974",
+ "id": "6cb0b7a8.80c24",
"type": "not-found",
"name": "not-found",
"xml": "<outcome value='not-found'>\n",
"comments": "",
"outputs": 1,
- "x": 3986.5001220703125,
- "y": 334,
- "z": "bc9d969b.328b8",
+ "x": 4012.5001220703125,
+ "y": 342,
+ "z": "8a9c455f.82beb8",
"wires": [
[
- "5b188d77.8ffc8c"
+ "509847ff.264c58"
]
]
},
{
- "id": "b04b9242.14b66",
+ "id": "dfb8903c.c1b1d8",
"type": "block",
"name": "block",
"xml": "<block>\n",
"atomic": "false",
"comments": "",
"outputs": 1,
- "x": 4138.8824462890625,
- "y": 278.6556701660156,
- "z": "bc9d969b.328b8",
+ "x": 4164.8824462890625,
+ "y": 286.6556701660156,
+ "z": "8a9c455f.82beb8",
"wires": [
[
- "14763204.df94c6"
+ "22c6d630.71326a"
]
]
},
{
- "id": "a517ec9b.cf8fc8",
+ "id": "5e775dc4.42bfbc",
"type": "outcome",
"name": "esr-thirdparty-sdnc",
"xml": "<outcome value='esr-thirdparty-sdnc'>\n",
"comments": "",
"outputs": 1,
- "x": 4721,
- "y": 281,
- "z": "bc9d969b.328b8",
+ "x": 4747,
+ "y": 289,
+ "z": "8a9c455f.82beb8",
"wires": [
[
- "37ce34d7.e5314c"
+ "f76a815f.36c178"
]
]
},
{
- "id": "14763204.df94c6",
+ "id": "22c6d630.71326a",
"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": 4323,
- "y": 277,
- "z": "bc9d969b.328b8",
+ "x": 4349,
+ "y": 285,
+ "z": "8a9c455f.82beb8",
"wires": [
[
- "bbbe4e04.e26da"
+ "a3e1c0eb.9f5f88"
]
]
},
{
- "id": "bbbe4e04.e26da",
+ "id": "a3e1c0eb.9f5f88",
"type": "switchNode",
"name": "switch related-to",
"xml": "<switch test='`$tmp.aai.source-pnf.relationship-list.relationship[$spvidx].related-to`'>\n",
"comments": "",
"outputs": 1,
- "x": 4518,
- "y": 277,
- "z": "bc9d969b.328b8",
+ "x": 4544,
+ "y": 285,
+ "z": "8a9c455f.82beb8",
"wires": [
[
- "a517ec9b.cf8fc8"
+ "5e775dc4.42bfbc"
]
]
},
{
- "id": "a732e62d.9d3f9",
+ "id": "a90c44f8.bdb148",
"type": "other",
"name": "other",
"xml": "<outcome value='Other'>\n",
"comments": "",
"outputs": 1,
- "x": 3991.5001220703125,
- "y": 391,
- "z": "bc9d969b.328b8",
+ "x": 4017.5001220703125,
+ "y": 399,
+ "z": "8a9c455f.82beb8",
"wires": [
[
- "ebcd1e8f.a8cb18"
+ "7a5f3123.aad6e8"
]
]
},
{
- "id": "ebcd1e8f.a8cb18",
+ "id": "7a5f3123.aad6e8",
"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": 4143.5001220703125,
- "y": 392,
- "z": "bc9d969b.328b8",
+ "x": 4169.5001220703125,
+ "y": 400,
+ "z": "8a9c455f.82beb8",
"wires": []
},
{
- "id": "5b188d77.8ffc8c",
+ "id": "509847ff.264c58",
"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": 4154.5001220703125,
- "y": 335,
- "z": "bc9d969b.328b8",
+ "x": 4180.5001220703125,
+ "y": 343,
+ "z": "8a9c455f.82beb8",
"wires": []
},
{
- "id": "d99536cb.cbc39",
+ "id": "4ab5c9a1.06e3f",
"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": 5106,
- "y": 294,
- "z": "bc9d969b.328b8",
+ "x": 5132,
+ "y": 302,
+ "z": "8a9c455f.82beb8",
"wires": [
[
- "5f8e12fe.363034",
- "3e541a04.379ece",
- "5e7e63a7.7acdcc"
+ "73f9ea02.2fb1e4",
+ "f8008145.65a48",
+ "81ec8b7a.5856d8"
]
]
},
{
- "id": "37ce34d7.e5314c",
+ "id": "f76a815f.36c178",
"type": "block",
"name": "block : atomic",
"xml": "<block atomic=\"true\">",
"atomic": "true",
"outputs": 1,
- "x": 4900,
- "y": 281,
- "z": "bc9d969b.328b8",
+ "x": 4926,
+ "y": 289,
+ "z": "8a9c455f.82beb8",
"wires": [
[
- "17ccdbf.84352a4",
- "d99536cb.cbc39"
+ "ba856b81.43ed78",
+ "4ab5c9a1.06e3f"
]
]
},
{
- "id": "17ccdbf.84352a4",
+ "id": "ba856b81.43ed78",
"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": 5136,
- "y": 242,
- "z": "bc9d969b.328b8",
+ "x": 5162,
+ "y": 250,
+ "z": "8a9c455f.82beb8",
"wires": []
},
{
- "id": "5f8e12fe.363034",
+ "id": "73f9ea02.2fb1e4",
"type": "success",
"name": "success",
"xml": "<outcome value='success'>\n",
"comments": "",
"outputs": 1,
- "x": 5316,
- "y": 285,
- "z": "bc9d969b.328b8",
+ "x": 5342,
+ "y": 293,
+ "z": "8a9c455f.82beb8",
"wires": [
[
- "a674bdd4.cbe5f"
+ "5955dc9c.10f754"
]
]
},
{
- "id": "3e541a04.379ece",
+ "id": "f8008145.65a48",
"type": "not-found",
"name": "not-found",
"xml": "<outcome value='not-found'>\n",
"comments": "",
"outputs": 1,
- "x": 5308,
- "y": 340,
- "z": "bc9d969b.328b8",
+ "x": 5334,
+ "y": 348,
+ "z": "8a9c455f.82beb8",
"wires": [
[
- "b14ed6a2.e3874"
+ "e3286b6.68c7618"
]
]
},
{
- "id": "5e7e63a7.7acdcc",
+ "id": "81ec8b7a.5856d8",
"type": "other",
"name": "other",
"xml": "<outcome value='Other'>\n",
"comments": "",
"outputs": 1,
- "x": 5313,
- "y": 397,
- "z": "bc9d969b.328b8",
+ "x": 5339,
+ "y": 405,
+ "z": "8a9c455f.82beb8",
"wires": [
[
- "1ce96021.1d8b"
+ "ecd34f94.c447e"
]
]
},
{
- "id": "1ce96021.1d8b",
+ "id": "ecd34f94.c447e",
"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": 5465,
- "y": 398,
- "z": "bc9d969b.328b8",
+ "x": 5491,
+ "y": 406,
+ "z": "8a9c455f.82beb8",
"wires": []
},
{
- "id": "b14ed6a2.e3874",
+ "id": "e3286b6.68c7618",
"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": 5476,
- "y": 343,
- "z": "bc9d969b.328b8",
+ "x": 5502,
+ "y": 351,
+ "z": "8a9c455f.82beb8",
"wires": []
},
{
- "id": "a674bdd4.cbe5f",
+ "id": "5955dc9c.10f754",
"type": "block",
"name": "block",
"xml": "<block>\n",
"atomic": "false",
"comments": "",
"outputs": 1,
- "x": 5460.38232421875,
- "y": 282.6556701660156,
- "z": "bc9d969b.328b8",
+ "x": 5486.38232421875,
+ "y": 290.6556701660156,
+ "z": "8a9c455f.82beb8",
"wires": [
[
- "67e87cc0.72543c"
+ "adf5d068.f7cc"
]
]
},
{
- "id": "67e87cc0.72543c",
+ "id": "adf5d068.f7cc",
"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": 5675,
- "y": 279,
- "z": "bc9d969b.328b8",
+ "x": 5701,
+ "y": 287,
+ "z": "8a9c455f.82beb8",
"wires": []
},
{
- "id": "9bca10ea.41532",
+ "id": "a3f28ac6.d30ed8",
"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": 700,
- "y": 456,
- "z": "bc9d969b.328b8",
+ "x": 726,
+ "y": 464,
+ "z": "8a9c455f.82beb8",
"wires": [
[]
]
},
{
- "id": "9469a92e.1082c",
+ "id": "b8f0eb5.a171218",
"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-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-src-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",
+ "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-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": 3815,
- "y": 966,
- "z": "bc9d969b.328b8",
+ "x": 3841,
+ "y": 974,
+ "z": "8a9c455f.82beb8",
"wires": []
},
{
- "id": "8e72aaca.f223b8",
+ "id": "d94b849.7fdac78",
"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=\"post\"/>\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`\" />",
+ "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": 3878,
- "y": 1295,
- "z": "bc9d969b.328b8",
+ "x": 3904,
+ "y": 1303,
+ "z": "8a9c455f.82beb8",
"wires": [
[
- "4967c60e.7eec88",
- "d728c3b6.b72d4"
+ "bfb79ead.715e28",
+ "d50b4560.d85de8"
]
]
},
{
- "id": "4967c60e.7eec88",
+ "id": "bfb79ead.715e28",
"type": "failure",
"name": "failure",
"xml": "<outcome value='failure'>\n",
"comments": "",
"outputs": 1,
- "x": 4173.5,
- "y": 1262,
- "z": "bc9d969b.328b8",
+ "x": 4199.5,
+ "y": 1270,
+ "z": "8a9c455f.82beb8",
"wires": [
[
- "957f3c62.36bab"
+ "3d3c3af3.12a3b6"
]
]
},
{
- "id": "d728c3b6.b72d4",
+ "id": "d50b4560.d85de8",
"type": "success",
"name": "success",
"xml": "<outcome value='success'>\n",
"comments": "",
"outputs": 1,
- "x": 4178.5,
- "y": 1327,
- "z": "bc9d969b.328b8",
+ "x": 4204.5,
+ "y": 1335,
+ "z": "8a9c455f.82beb8",
"wires": [
[
- "9b37bb11.43c248"
+ "347f5539.8f6cd2"
]
]
},
{
- "id": "957f3c62.36bab",
+ "id": "3d3c3af3.12a3b6",
"type": "returnFailure",
"name": "return failure",
- "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n <parameter name=\"error-message\" value=\"Error executing Create vpn rest api\" />\n",
+ "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": 4341.5,
- "y": 1262,
- "z": "bc9d969b.328b8",
+ "x": 4367.5,
+ "y": 1270,
+ "z": "8a9c455f.82beb8",
"wires": []
},
{
- "id": "9b37bb11.43c248",
+ "id": "347f5539.8f6cd2",
"type": "block",
"name": "block : atomic",
"xml": "<block atomic=\"true\">",
"atomic": "true",
"comments": "",
"outputs": 1,
- "x": 4352,
- "y": 1327,
- "z": "bc9d969b.328b8",
+ "x": 4378,
+ "y": 1335,
+ "z": "8a9c455f.82beb8",
"wires": [
[]
]
},
{
- "id": "24fc86b.f179cfa",
+ "id": "7af2004a.23f66",
"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": 3754,
- "y": 1023,
- "z": "bc9d969b.328b8",
+ "x": 3780,
+ "y": 1031,
+ "z": "8a9c455f.82beb8",
"wires": []
},
{
- "id": "a4e80e5.b17c0f",
+ "id": "9e8fb92f.dc9c38",
"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": 3774,
- "y": 1120,
- "z": "bc9d969b.328b8",
+ "x": 3800,
+ "y": 1128,
+ "z": "8a9c455f.82beb8",
"wires": [
[
- "d87e44a4.312df",
- "c39adf70.78fbd",
- "ae2b50d9.d9592"
+ "3defc723.7feba8",
+ "92e9e56.6323798",
+ "92430372.354f08"
]
]
},
{
- "id": "d87e44a4.312df",
+ "id": "3defc723.7feba8",
"type": "success",
"name": "success",
"xml": "<outcome value='success'>\n",
"comments": "",
"outputs": 1,
- "x": 3976.5001220703125,
- "y": 1073,
- "z": "bc9d969b.328b8",
+ "x": 4002.5001220703125,
+ "y": 1081,
+ "z": "8a9c455f.82beb8",
"wires": [
[
- "1f01bb4d.6d662d"
+ "38216362.304eb4"
]
]
},
{
- "id": "c39adf70.78fbd",
+ "id": "92e9e56.6323798",
"type": "not-found",
"name": "not-found",
"xml": "<outcome value='not-found'>\n",
"comments": "",
"outputs": 1,
- "x": 3968.5001220703125,
- "y": 1128,
- "z": "bc9d969b.328b8",
+ "x": 3994.5001220703125,
+ "y": 1136,
+ "z": "8a9c455f.82beb8",
"wires": [
[
- "7e32fa48.cb95e4"
+ "48eafe9b.93564"
]
]
},
{
- "id": "1f01bb4d.6d662d",
+ "id": "38216362.304eb4",
"type": "block",
"name": "block",
"xml": "<block>\n",
"atomic": "false",
"comments": "",
"outputs": 1,
- "x": 4120.8824462890625,
- "y": 1070.6556701660156,
- "z": "bc9d969b.328b8",
+ "x": 4146.8824462890625,
+ "y": 1078.6556701660156,
+ "z": "8a9c455f.82beb8",
"wires": [
[
- "71c66ab3.44665c"
+ "5738b986.eff058"
]
]
},
{
- "id": "71c66ab3.44665c",
+ "id": "5738b986.eff058",
"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": 4305,
- "y": 1085,
- "z": "bc9d969b.328b8",
+ "x": 4331,
+ "y": 1093,
+ "z": "8a9c455f.82beb8",
"wires": [
[
- "7900c812.a2abd"
+ "424cd2de.fa894c"
]
]
},
{
- "id": "ae2b50d9.d9592",
+ "id": "92430372.354f08",
"type": "other",
"name": "other",
"xml": "<outcome value='Other'>\n",
"comments": "",
"outputs": 1,
- "x": 3973.5001220703125,
- "y": 1185,
- "z": "bc9d969b.328b8",
+ "x": 3999.5001220703125,
+ "y": 1193,
+ "z": "8a9c455f.82beb8",
"wires": [
[
- "c7f28bc4.db74a"
+ "93dd1d01.b545d"
]
]
},
{
- "id": "c7f28bc4.db74a",
+ "id": "93dd1d01.b545d",
"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": 4125.5001220703125,
- "y": 1186,
- "z": "bc9d969b.328b8",
+ "x": 4151.5001220703125,
+ "y": 1194,
+ "z": "8a9c455f.82beb8",
"wires": []
},
{
- "id": "7e32fa48.cb95e4",
+ "id": "48eafe9b.93564",
"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": 4136.5001220703125,
- "y": 1131,
- "z": "bc9d969b.328b8",
+ "x": 4162.5001220703125,
+ "y": 1139,
+ "z": "8a9c455f.82beb8",
"wires": []
},
{
- "id": "d3528946.ee7a88",
+ "id": "38af15c1.7d84ba",
"type": "outcome",
"name": "esr-thirdparty-sdnc",
"xml": "<outcome value='esr-thirdparty-sdnc'>\n",
"comments": "",
"outputs": 1,
- "x": 4703,
- "y": 1089,
- "z": "bc9d969b.328b8",
+ "x": 4729,
+ "y": 1097,
+ "z": "8a9c455f.82beb8",
"wires": [
[
- "746ece73.5c4d48"
+ "d8eb3cd4.227208"
]
]
},
{
- "id": "7900c812.a2abd",
+ "id": "424cd2de.fa894c",
"type": "switchNode",
"name": "switch related-to",
"xml": "<switch test='`$tmp.aai.destination-pnf.relationship-list.relationship[$dpvidx].related-to`'>\n",
"comments": "",
"outputs": 1,
- "x": 4500,
- "y": 1085,
- "z": "bc9d969b.328b8",
+ "x": 4526,
+ "y": 1093,
+ "z": "8a9c455f.82beb8",
"wires": [
[
- "d3528946.ee7a88"
+ "38af15c1.7d84ba"
]
]
},
{
- "id": "f8459d33.082c4",
+ "id": "a9c07a83.518f98",
"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": 5088,
- "y": 1088,
- "z": "bc9d969b.328b8",
+ "x": 5114,
+ "y": 1096,
+ "z": "8a9c455f.82beb8",
"wires": [
[
- "652db70b.f69af",
- "cd87b694.170a2",
- "e10452ec.f851f"
+ "ef0c3c57.987338",
+ "56343453.6f0ce4",
+ "3b68871e.15bfe"
]
]
},
{
- "id": "746ece73.5c4d48",
+ "id": "d8eb3cd4.227208",
"type": "block",
"name": "block : atomic",
"xml": "<block atomic=\"true\">",
"atomic": "true",
"outputs": 1,
- "x": 4880,
- "y": 1081,
- "z": "bc9d969b.328b8",
+ "x": 4906,
+ "y": 1089,
+ "z": "8a9c455f.82beb8",
"wires": [
[
- "13e8c9be.60d2ee",
- "f8459d33.082c4"
+ "f04e0884.6fcbb8",
+ "a9c07a83.518f98"
]
]
},
{
- "id": "13e8c9be.60d2ee",
+ "id": "f04e0884.6fcbb8",
"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": 5118,
- "y": 1036,
- "z": "bc9d969b.328b8",
+ "x": 5144,
+ "y": 1044,
+ "z": "8a9c455f.82beb8",
"wires": []
},
{
- "id": "64b1d1df.af4928",
+ "id": "b02d57da.181518",
"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": 5447,
- "y": 1192,
- "z": "bc9d969b.328b8",
+ "x": 5473,
+ "y": 1200,
+ "z": "8a9c455f.82beb8",
"wires": []
},
{
- "id": "afae5d5f.cf8cd8",
+ "id": "fed20348.5bb418",
"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": 5458,
- "y": 1137,
- "z": "bc9d969b.328b8",
+ "x": 5484,
+ "y": 1145,
+ "z": "8a9c455f.82beb8",
"wires": []
},
{
- "id": "fe8767e6.75d1",
+ "id": "63aaed6a.7bdac4",
"type": "block",
"name": "block",
"xml": "<block>\n",
"atomic": "false",
"comments": "",
"outputs": 1,
- "x": 5442.38232421875,
- "y": 1076.6556701660156,
- "z": "bc9d969b.328b8",
+ "x": 5468.38232421875,
+ "y": 1084.6556701660156,
+ "z": "8a9c455f.82beb8",
"wires": [
[
- "9e679808.748fd"
+ "75824df.2d8fab4"
]
]
},
{
- "id": "9e679808.748fd",
+ "id": "75824df.2d8fab4",
"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": 5657,
- "y": 1073,
- "z": "bc9d969b.328b8",
+ "x": 5683,
+ "y": 1081,
+ "z": "8a9c455f.82beb8",
"wires": []
},
{
- "id": "652db70b.f69af",
+ "id": "ef0c3c57.987338",
"type": "success",
"name": "success",
"xml": "<outcome value='success'>\n",
"comments": "",
"outputs": 1,
- "x": 5298,
- "y": 1079,
- "z": "bc9d969b.328b8",
+ "x": 5324,
+ "y": 1087,
+ "z": "8a9c455f.82beb8",
"wires": [
[
- "fe8767e6.75d1"
+ "63aaed6a.7bdac4"
]
]
},
{
- "id": "cd87b694.170a2",
+ "id": "56343453.6f0ce4",
"type": "not-found",
"name": "not-found",
"xml": "<outcome value='not-found'>\n",
"comments": "",
"outputs": 1,
- "x": 5290,
- "y": 1134,
- "z": "bc9d969b.328b8",
+ "x": 5316,
+ "y": 1142,
+ "z": "8a9c455f.82beb8",
"wires": [
[
- "afae5d5f.cf8cd8"
+ "fed20348.5bb418"
]
]
},
{
- "id": "e10452ec.f851f",
+ "id": "3b68871e.15bfe",
"type": "other",
"name": "other",
"xml": "<outcome value='Other'>\n",
"comments": "",
"outputs": 1,
- "x": 5295,
- "y": 1191,
- "z": "bc9d969b.328b8",
+ "x": 5321,
+ "y": 1199,
+ "z": "8a9c455f.82beb8",
"wires": [
[
- "64b1d1df.af4928"
+ "b02d57da.181518"
]
]
},
{
- "id": "483259b4.af3e1",
+ "id": "2d3714db.b7aad4",
"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": 1812,
- "y": 445,
- "z": "bc9d969b.328b8",
+ "x": 1838,
+ "y": 453,
+ "z": "8a9c455f.82beb8",
"wires": [
[
- "deb24009.8fcaa8",
- "f99db731.cec29",
- "20c66e63.50491a"
+ "ff6cd3bd.d426f",
+ "64ede831.c277d",
+ "c3e64c55.d790f8"
]
]
},
{
- "id": "deb24009.8fcaa8",
+ "id": "ff6cd3bd.d426f",
"type": "success",
"name": "success",
"xml": "<outcome value='success'>\n",
"comments": "",
"outputs": 1,
- "x": 2020,
- "y": 409,
- "z": "bc9d969b.328b8",
+ "x": 2046,
+ "y": 417,
+ "z": "8a9c455f.82beb8",
"wires": [
[
- "4730a3bd.f32424"
+ "ab398477.a58648"
]
]
},
{
- "id": "f99db731.cec29",
+ "id": "64ede831.c277d",
"type": "not-found",
"name": "not-found",
"xml": "<outcome value='not-found'>\n",
"comments": "",
"outputs": 1,
- "x": 2020.490966796875,
- "y": 454.57403564453125,
- "z": "bc9d969b.328b8",
+ "x": 2046.490966796875,
+ "y": 462.57403564453125,
+ "z": "8a9c455f.82beb8",
"wires": [
[
- "5f621d7d.168d04"
+ "575d4e0a.5d761"
]
]
},
{
- "id": "20c66e63.50491a",
+ "id": "c3e64c55.d790f8",
"type": "failure",
"name": "failure",
"xml": "<outcome value='failure'>\n",
"comments": "",
"outputs": 1,
- "x": 2018,
- "y": 498,
- "z": "bc9d969b.328b8",
+ "x": 2044,
+ "y": 506,
+ "z": "8a9c455f.82beb8",
"wires": [
[
- "3d808fc9.409a"
+ "b99b7bb3.94d958"
]
]
},
{
- "id": "5f621d7d.168d04",
+ "id": "575d4e0a.5d761",
"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": 2183.0623779296875,
- "y": 454.8597717285156,
- "z": "bc9d969b.328b8",
+ "x": 2209.0623779296875,
+ "y": 462.8597717285156,
+ "z": "8a9c455f.82beb8",
"wires": []
},
{
- "id": "3d808fc9.409a",
+ "id": "b99b7bb3.94d958",
"type": "returnFailure",
"name": "return failure",
"xml": "<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value='' />\n",
"comments": "",
- "x": 2187,
- "y": 499,
- "z": "bc9d969b.328b8",
+ "x": 2213,
+ "y": 507,
+ "z": "8a9c455f.82beb8",
"wires": []
},
{
- "id": "98bf7163.623b18",
+ "id": "684f9a1f.f6246c",
"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": 2493,
- "y": 498,
- "z": "bc9d969b.328b8",
+ "x": 2519,
+ "y": 506,
+ "z": "8a9c455f.82beb8",
"wires": [
[
- "4a10f363.97f04c",
- "75240e64.8364b",
- "7a8b2677.1e3f6"
+ "7a997c1a.ca4d0c",
+ "5d76d89f.d221e",
+ "d47edd7.a73b9a"
]
]
},
{
- "id": "262c25a6.ad70a2",
+ "id": "11f43428.ee3774",
"type": "block",
"name": "block : atomic",
"xml": "<block atomic=\"true\">",
"atomic": "true",
"outputs": 1,
- "x": 2877,
- "y": 498,
- "z": "bc9d969b.328b8",
+ "x": 2903,
+ "y": 506,
+ "z": "8a9c455f.82beb8",
"wires": [
[
- "471d55bd.ad492c"
+ "9d8c4947.e731c",
+ "a3bb6162.8aa1a8"
]
]
},
{
- "id": "4a10f363.97f04c",
+ "id": "7a997c1a.ca4d0c",
"type": "success",
"name": "success",
"xml": "<outcome value='success'>\n",
"comments": "",
"outputs": 1,
- "x": 2704,
- "y": 500,
- "z": "bc9d969b.328b8",
+ "x": 2730,
+ "y": 508,
+ "z": "8a9c455f.82beb8",
"wires": [
[
- "262c25a6.ad70a2"
+ "11f43428.ee3774"
]
]
},
{
- "id": "75240e64.8364b",
+ "id": "5d76d89f.d221e",
"type": "not-found",
"name": "not-found",
"xml": "<outcome value='not-found'>\n",
"comments": "",
"outputs": 1,
- "x": 2704.490966796875,
- "y": 545.5740356445312,
- "z": "bc9d969b.328b8",
+ "x": 2730.490966796875,
+ "y": 553.5740356445312,
+ "z": "8a9c455f.82beb8",
"wires": [
[
- "1484cf74.c39e71"
+ "38cca479.139cac"
]
]
},
{
- "id": "7a8b2677.1e3f6",
+ "id": "d47edd7.a73b9a",
"type": "failure",
"name": "failure",
"xml": "<outcome value='failure'>\n",
"comments": "",
"outputs": 1,
- "x": 2702,
- "y": 589,
- "z": "bc9d969b.328b8",
+ "x": 2728,
+ "y": 597,
+ "z": "8a9c455f.82beb8",
"wires": [
[
- "d377f001.ff927"
+ "3c7730a0.80743"
]
]
},
{
- "id": "d377f001.ff927",
+ "id": "3c7730a0.80743",
"type": "returnFailure",
"name": "return failure",
"xml": "<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value='' />\n",
"comments": "",
- "x": 2869,
- "y": 588,
- "z": "bc9d969b.328b8",
+ "x": 2895,
+ "y": 596,
+ "z": "8a9c455f.82beb8",
"wires": []
},
{
- "id": "1484cf74.c39e71",
+ "id": "38cca479.139cac",
"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": 2867.0623779296875,
- "y": 545.8597717285156,
- "z": "bc9d969b.328b8",
+ "x": 2893.0623779296875,
+ "y": 553.8597717285156,
+ "z": "8a9c455f.82beb8",
"wires": []
},
{
- "id": "4730a3bd.f32424",
+ "id": "ab398477.a58648",
"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": 2221,
- "y": 404,
- "z": "bc9d969b.328b8",
+ "x": 2247,
+ "y": 412,
+ "z": "8a9c455f.82beb8",
"wires": [
[
- "ed79cbad.42008"
+ "32748804.ce58a"
]
]
},
{
- "id": "ed79cbad.42008",
+ "id": "32748804.ce58a",
"type": "switchNode",
"name": "switch related-to",
"xml": "<switch test='`$tmp.aai.connectivity.relationship-list.relationship[$cridx].related-to`'>\n",
"comments": "",
"outputs": 1,
- "x": 2426,
- "y": 404,
- "z": "bc9d969b.328b8",
+ "x": 2452,
+ "y": 412,
+ "z": "8a9c455f.82beb8",
"wires": [
[
- "87636f23.10a238"
+ "41c73b96.f41a84"
]
]
},
{
- "id": "87636f23.10a238",
+ "id": "41c73b96.f41a84",
"type": "outcome",
"name": "vpn-binding",
"xml": "<outcome value='vpn-binding'>\n",
"comments": "",
"outputs": 1,
- "x": 2592,
- "y": 404,
- "z": "bc9d969b.328b8",
+ "x": 2618,
+ "y": 412,
+ "z": "8a9c455f.82beb8",
"wires": [
[
- "f49319bb.999b88"
+ "cfeba90.49ffe58"
]
]
},
{
- "id": "f49319bb.999b88",
+ "id": "cfeba90.49ffe58",
"type": "block",
"name": "block : atomic",
"xml": "<block atomic=\"true\">",
"atomic": "true",
"outputs": 1,
- "x": 2755,
- "y": 404,
- "z": "bc9d969b.328b8",
+ "x": 2781,
+ "y": 412,
+ "z": "8a9c455f.82beb8",
"wires": [
[
- "98bf7163.623b18"
+ "684f9a1f.f6246c"
]
]
},
{
- "id": "471d55bd.ad492c",
+ "id": "9d8c4947.e731c",
"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": 3131,
- "y": 497,
- "z": "bc9d969b.328b8",
+ "x": 3157,
+ "y": 505,
+ "z": "8a9c455f.82beb8",
"wires": [
[
- "a6851b6e.131e78",
- "f997812a.bb5bf"
+ "c705e3fd.e27bf",
+ "74e33b9a.6a3ba4"
]
]
},
{
- "id": "a6851b6e.131e78",
+ "id": "c705e3fd.e27bf",
"type": "outcome",
"name": "Null",
"xml": "<outcome value=''>\n",
"comments": "",
"outputs": 1,
- "x": 3384,
- "y": 531,
- "z": "bc9d969b.328b8",
+ "x": 3410,
+ "y": 539,
+ "z": "8a9c455f.82beb8",
"wires": [
[
- "9ec23d9e.f5fd3"
+ "ab5b6203.69a998"
]
]
},
{
- "id": "f997812a.bb5bf",
+ "id": "74e33b9a.6a3ba4",
"type": "other",
"name": "other",
"xml": "<outcome value='Other'>\n",
"comments": "",
"outputs": 1,
- "x": 3384,
- "y": 475,
- "z": "bc9d969b.328b8",
+ "x": 3410,
+ "y": 483,
+ "z": "8a9c455f.82beb8",
"wires": [
[
- "a48cbe42.98bbb"
+ "7b04fd35.ba570c"
]
]
},
{
- "id": "9ec23d9e.f5fd3",
+ "id": "ab5b6203.69a998",
"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": 3123,
- "y": 1317,
- "z": "bc9d969b.328b8",
+ "x": 3149,
+ "y": 1325,
+ "z": "8a9c455f.82beb8",
"wires": [
[
- "12733247.02817e",
- "457dfc0a.58968c"
+ "15797e4.5eae102",
+ "55009f8b.9fdc5"
]
]
},
{
- "id": "12733247.02817e",
+ "id": "15797e4.5eae102",
"type": "outcome",
"name": "Null",
"xml": "<outcome value=''>\n",
"comments": "",
"outputs": 1,
- "x": 3376,
- "y": 1351,
- "z": "bc9d969b.328b8",
+ "x": 3402,
+ "y": 1359,
+ "z": "8a9c455f.82beb8",
"wires": [
[
- "13d35870.d79cf8"
+ "4151c132.8e3c28"
]
]
},
{
- "id": "457dfc0a.58968c",
+ "id": "55009f8b.9fdc5",
"type": "other",
"name": "other",
"xml": "<outcome value='Other'>\n",
"comments": "",
"outputs": 1,
- "x": 3376,
- "y": 1295,
- "z": "bc9d969b.328b8",
+ "x": 3402,
+ "y": 1303,
+ "z": "8a9c455f.82beb8",
"wires": [
[
- "b272db0a.663f1"
+ "db74d7f2.74d0f8"
]
]
},
{
- "id": "13d35870.d79cf8",
+ "id": "4151c132.8e3c28",
"type": "returnFailure",
"name": "return failure",
"xml": "<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value='' />\n",
"comments": "",
- "x": 3527,
- "y": 1351,
- "z": "bc9d969b.328b8",
+ "x": 3553,
+ "y": 1359,
+ "z": "8a9c455f.82beb8",
"wires": []
},
{
- "id": "d316857d.f41628",
+ "id": "ad6a538e.8b5998",
"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": 3830,
- "y": 102,
- "z": "bc9d969b.328b8",
+ "x": 3856,
+ "y": 110,
+ "z": "8a9c455f.82beb8",
"wires": []
},
{
- "id": "3accaf74.7f8a68",
+ "id": "51807068.f4c68",
"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": 3811,
- "y": 908,
- "z": "bc9d969b.328b8",
+ "x": 3837,
+ "y": 916,
+ "z": "8a9c455f.82beb8",
"wires": []
},
{
- "id": "a48cbe42.98bbb",
+ "id": "7b04fd35.ba570c",
"type": "block",
"name": "block : atomic",
"xml": "<block atomic=\"true\">",
"atomic": "true",
"comments": "",
"outputs": 1,
- "x": 3552,
- "y": 477,
- "z": "bc9d969b.328b8",
+ "x": 3578,
+ "y": 485,
+ "z": "8a9c455f.82beb8",
"wires": [
[
- "d316857d.f41628",
- "cba9b813.e1b22",
- "f01334b4.1d8928",
- "dbf99a2b.67c71",
- "9e9578a4.5a4df",
- "8d5f5723.afac28",
- "c84632a9.494938"
+ "ad6a538e.8b5998",
+ "3d56fd4f.8da4ea",
+ "5074df67.2ba988",
+ "9fd13730.014208",
+ "ab834e.f483fcb",
+ "c9d60073.e2df48",
+ "119d7057.187e9"
]
]
},
{
- "id": "b272db0a.663f1",
+ "id": "db74d7f2.74d0f8",
"type": "block",
"name": "block : atomic",
"xml": "<block atomic=\"true\">",
"atomic": "true",
"outputs": 1,
- "x": 3527,
- "y": 1294,
- "z": "bc9d969b.328b8",
+ "x": 3553,
+ "y": 1302,
+ "z": "8a9c455f.82beb8",
"wires": [
[
- "3accaf74.7f8a68",
- "9469a92e.1082c",
- "24fc86b.f179cfa",
- "a4e80e5.b17c0f",
- "8e72aaca.f223b8",
- "6e17b735.11933",
- "35d8443b.290754"
+ "51807068.f4c68",
+ "b8f0eb5.a171218",
+ "7af2004a.23f66",
+ "9e8fb92f.dc9c38",
+ "d94b849.7fdac78",
+ "f91c20c6.244a28",
+ "158d95b4.dbf02a"
]
]
},
{
- "id": "6e17b735.11933",
+ "id": "f91c20c6.244a28",
"type": "set",
"name": "set sotn_value",
"xml": "<set>\n<parameter name='eth-service-name' value='`$tmp.aai.connectivityB.connectivity-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",
"comments": "",
- "x": 3756,
- "y": 1437,
- "z": "bc9d969b.328b8",
+ "x": 3782,
+ "y": 1445,
+ "z": "8a9c455f.82beb8",
"wires": []
},
{
- "id": "35d8443b.290754",
+ "id": "158d95b4.dbf02a",
"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": 3910,
- "y": 1485,
- "z": "bc9d969b.328b8",
+ "x": 3936,
+ "y": 1493,
+ "z": "8a9c455f.82beb8",
"wires": [
[
- "3ee71f70.cef2d8",
- "ec28887e.13052"
+ "7e8ddb70.effbcc",
+ "8eaa1ef7.3644e"
]
]
},
{
- "id": "3ee71f70.cef2d8",
+ "id": "7e8ddb70.effbcc",
"type": "failure",
"name": "failure",
"xml": "<outcome value='failure'>\n",
"comments": "",
"outputs": 1,
- "x": 4255.5,
- "y": 1466,
- "z": "bc9d969b.328b8",
+ "x": 4281.5,
+ "y": 1474,
+ "z": "8a9c455f.82beb8",
"wires": [
[
- "146e8cbe.f1427b"
+ "596967d4.0f4de8"
]
]
},
{
- "id": "ec28887e.13052",
+ "id": "8eaa1ef7.3644e",
"type": "success",
"name": "success",
"xml": "<outcome value='success'>\n",
"comments": "",
"outputs": 1,
- "x": 4259.5,
- "y": 1506,
- "z": "bc9d969b.328b8",
+ "x": 4285.5,
+ "y": 1514,
+ "z": "8a9c455f.82beb8",
"wires": [
[
- "6938dd8d.725ce4"
+ "4f294e9d.697c08"
]
]
},
{
- "id": "146e8cbe.f1427b",
+ "id": "596967d4.0f4de8",
"type": "returnFailure",
"name": "return failure",
- "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n <parameter name=\"error-message\" value=\"Error executing Create vpn rest api\" />\n",
+ "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": 4413.5,
- "y": 1466,
- "z": "bc9d969b.328b8",
+ "x": 4439.5,
+ "y": 1474,
+ "z": "8a9c455f.82beb8",
"wires": []
},
{
- "id": "6938dd8d.725ce4",
+ "id": "4f294e9d.697c08",
"type": "block",
"name": "block : atomic",
"xml": "<block atomic=\"true\">",
"atomic": "true",
"comments": "",
"outputs": 1,
- "x": 4417,
- "y": 1506,
- "z": "bc9d969b.328b8",
+ "x": 4443,
+ "y": 1514,
+ "z": "8a9c455f.82beb8",
"wires": [
[
- "3103adf.03ebdd2",
- "abd5a958.8851"
+ "637a80dd.df05",
+ "d2c33ee2.7a3708"
]
]
},
{
- "id": "b5e2d859.f89e48",
+ "id": "78a845.7bb187bc",
"type": "comment",
"name": "TODO: FIXME:",
"info": "put proper values based on connectivity resource retrieved from AAI",
"comments": "",
- "x": 3753.5,
- "y": 1393,
- "z": "bc9d969b.328b8",
+ "x": 3779.5,
+ "y": 1401,
+ "z": "8a9c455f.82beb8",
"wires": []
},
{
- "id": "3103adf.03ebdd2",
+ "id": "637a80dd.df05",
"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-id`' />\n\n<parameter name='operational-status' value='Activated' />\n",
"comments": "",
"outputs": 1,
- "x": 4757,
- "y": 1505,
- "z": "bc9d969b.328b8",
+ "x": 4783,
+ "y": 1513,
+ "z": "8a9c455f.82beb8",
"wires": [
[]
]
},
{
- "id": "1ee5068c.50a041",
+ "id": "88ec2f6d.8d5da",
"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": 4615,
- "y": 1463,
- "z": "bc9d969b.328b8",
+ "x": 4641,
+ "y": 1471,
+ "z": "8a9c455f.82beb8",
"wires": []
},
{
- "id": "abd5a958.8851",
+ "id": "d2c33ee2.7a3708",
"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": 4686,
- "y": 1554,
- "z": "bc9d969b.328b8",
+ "x": 4712,
+ "y": 1562,
+ "z": "8a9c455f.82beb8",
"wires": [
[]
]
+ },
+ {
+ "id": "a3bb6162.8aa1a8",
+ "type": "set",
+ "name": "set attachment_param for OTN",
+ "xml": "<set>\n<parameter name='gfp-n' value='`$tmp.aai.vpn-binding.route-distinguisher`' />\n",
+ "comments": "",
+ "x": 3144,
+ "y": 411,
+ "z": "8a9c455f.82beb8",
+ "wires": []
}
] \ No newline at end of file