summaryrefslogtreecommitdiffstats
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.json1738
1 files changed, 1738 insertions, 0 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
new file mode 100644
index 00000000..9ffaaf75
--- /dev/null
+++ b/platform-logic/generic-resource-api/src/main/json/trans_slicing/GENERIC-RESOURCE-API_tsli-vnf-topology-operation-trans-slice-activate.json
@@ -0,0 +1,1738 @@
+[
+ {
+ "id": "d3bb30c4.60fa",
+ "type": "dgstart",
+ "name": "DGSTART",
+ "outputs": 1,
+ "x": 130,
+ "y": 87,
+ "z": "bc9d969b.328b8",
+ "wires": [
+ [
+ "d58b4202.9cdb3"
+ ]
+ ]
+ },
+ {
+ "id": "d58b4202.9cdb3",
+ "type": "service-logic",
+ "name": "GENERIC-RESOURCE-API ${project.version}",
+ "module": "GENERIC-RESOURCE-API",
+ "version": "${project.version}",
+ "comments": "",
+ "xml": "<service-logic xmlns='http://www.onap.org/sdnc/svclogic' xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xsi:schemaLocation='http://www.onap.org/sdnc/svclogic ./svclogic.xsd' module='GENERIC-RESOURCE-API' version='${project.version}'>",
+ "outputs": 1,
+ "x": 261.2856903076172,
+ "y": 136.23810863494873,
+ "z": "bc9d969b.328b8",
+ "wires": [
+ [
+ "617bde2e.1132b"
+ ]
+ ]
+ },
+ {
+ "id": "617bde2e.1132b",
+ "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",
+ "wires": [
+ [
+ "8ac7a60e.72d768"
+ ]
+ ]
+ },
+ {
+ "id": "8ac7a60e.72d768",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "outputs": 1,
+ "x": 414.238037109375,
+ "y": 350.6666564941406,
+ "z": "bc9d969b.328b8",
+ "wires": [
+ [
+ "72b21bde.5e8f94",
+ "9fe7f5eb.e26c6",
+ "9bca10ea.41532"
+ ]
+ ]
+ },
+ {
+ "id": "72b21bde.5e8f94",
+ "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",
+ "wires": []
+ },
+ {
+ "id": "441fc399.08ca9c",
+ "type": "comment",
+ "name": "new for TransportSlicing",
+ "info": "",
+ "comments": "",
+ "x": 714,
+ "y": 412,
+ "z": "bc9d969b.328b8",
+ "wires": []
+ },
+ {
+ "id": "9fe7f5eb.e26c6",
+ "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",
+ "wires": [
+ [
+ "926c12ae.af2a48",
+ "5deb4cbf.60b5f4",
+ "35c77549.8e65c2"
+ ]
+ ]
+ },
+ {
+ "id": "926c12ae.af2a48",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 953,
+ "y": 446,
+ "z": "bc9d969b.328b8",
+ "wires": [
+ [
+ "c296586e.046f08"
+ ]
+ ]
+ },
+ {
+ "id": "5deb4cbf.60b5f4",
+ "type": "not-found",
+ "name": "not-found",
+ "xml": "<outcome value='not-found'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 962.490966796875,
+ "y": 488.57403564453125,
+ "z": "bc9d969b.328b8",
+ "wires": [
+ [
+ "bb46ff52.717af8"
+ ]
+ ]
+ },
+ {
+ "id": "35c77549.8e65c2",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 951,
+ "y": 535,
+ "z": "bc9d969b.328b8",
+ "wires": [
+ [
+ "236d61d5.47d9a6"
+ ]
+ ]
+ },
+ {
+ "id": "bb46ff52.717af8",
+ "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",
+ "wires": []
+ },
+ {
+ "id": "236d61d5.47d9a6",
+ "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",
+ "wires": []
+ },
+ {
+ "id": "c296586e.046f08",
+ "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",
+ "wires": [
+ [
+ "b77b70ed.c591c"
+ ]
+ ]
+ },
+ {
+ "id": "b77b70ed.c591c",
+ "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",
+ "wires": [
+ [
+ "2fc295b4.0602da"
+ ]
+ ]
+ },
+ {
+ "id": "2fc295b4.0602da",
+ "type": "outcome",
+ "name": "connectivity",
+ "xml": "<outcome value='connectivity'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1574.0001335144043,
+ "y": 443.00002098083496,
+ "z": "bc9d969b.328b8",
+ "wires": [
+ [
+ "483259b4.af3e1"
+ ]
+ ]
+ },
+ {
+ "id": "cba9b813.e1b22",
+ "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",
+ "wires": []
+ },
+ {
+ "id": "c84632a9.494938",
+ "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`\" />",
+ "comments": "",
+ "outputs": 1,
+ "x": 3916,
+ "y": 477,
+ "z": "bc9d969b.328b8",
+ "wires": [
+ [
+ "f012f442.27b7b8",
+ "961e7c8c.e8988"
+ ]
+ ]
+ },
+ {
+ "id": "f012f442.27b7b8",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 4225.5,
+ "y": 446,
+ "z": "bc9d969b.328b8",
+ "wires": [
+ [
+ "85de6f60.586588"
+ ]
+ ]
+ },
+ {
+ "id": "961e7c8c.e8988",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 4230.5,
+ "y": 511,
+ "z": "bc9d969b.328b8",
+ "wires": [
+ [
+ "b3e28f35.f331c"
+ ]
+ ]
+ },
+ {
+ "id": "85de6f60.586588",
+ "type": "returnFailure",
+ "name": "return failure",
+ "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n <parameter name=\"error-message\" value=\"Error executing Create vpn rest api\" />\n",
+ "comments": "",
+ "x": 4401.5,
+ "y": 446,
+ "z": "bc9d969b.328b8",
+ "wires": []
+ },
+ {
+ "id": "b3e28f35.f331c",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 4397,
+ "y": 511,
+ "z": "bc9d969b.328b8",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "9e9578a4.5a4df",
+ "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",
+ "wires": []
+ },
+ {
+ "id": "8d5f5723.afac28",
+ "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",
+ "comments": "",
+ "outputs": 1,
+ "x": 3936.5,
+ "y": 713,
+ "z": "bc9d969b.328b8",
+ "wires": [
+ [
+ "7efa3090.e1e078",
+ "602bb58a.eb8054"
+ ]
+ ]
+ },
+ {
+ "id": "7efa3090.e1e078",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 4282,
+ "y": 694,
+ "z": "bc9d969b.328b8",
+ "wires": [
+ [
+ "d892eebe.cdbb5"
+ ]
+ ]
+ },
+ {
+ "id": "602bb58a.eb8054",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 4286,
+ "y": 734,
+ "z": "bc9d969b.328b8",
+ "wires": [
+ [
+ "34660646.412fea"
+ ]
+ ]
+ },
+ {
+ "id": "d892eebe.cdbb5",
+ "type": "returnFailure",
+ "name": "return failure",
+ "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n <parameter name=\"error-message\" value=\"Error executing Create vpn rest api\" />\n",
+ "comments": "",
+ "x": 4440,
+ "y": 694,
+ "z": "bc9d969b.328b8",
+ "wires": []
+ },
+ {
+ "id": "34660646.412fea",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 4443.5,
+ "y": 734,
+ "z": "bc9d969b.328b8",
+ "wires": [
+ [
+ "63e48280.b2cb84",
+ "ffe3929d.a2fda"
+ ]
+ ]
+ },
+ {
+ "id": "bae980db.b9d408",
+ "type": "comment",
+ "name": "TODO: FIXME:",
+ "info": "put proper values based on connectivity resource retrieved from AAI",
+ "comments": "",
+ "x": 3780,
+ "y": 621,
+ "z": "bc9d969b.328b8",
+ "wires": []
+ },
+ {
+ "id": "63e48280.b2cb84",
+ "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",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "2bc3079a.d7dde",
+ "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",
+ "wires": []
+ },
+ {
+ "id": "ffe3929d.a2fda",
+ "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",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "f01334b4.1d8928",
+ "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",
+ "wires": []
+ },
+ {
+ "id": "dbf99a2b.67c71",
+ "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",
+ "wires": [
+ [
+ "27a62f4.f17ab5",
+ "1aa65c21.28f974",
+ "a732e62d.9d3f9"
+ ]
+ ]
+ },
+ {
+ "id": "27a62f4.f17ab5",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 3994.5001220703125,
+ "y": 279,
+ "z": "bc9d969b.328b8",
+ "wires": [
+ [
+ "b04b9242.14b66"
+ ]
+ ]
+ },
+ {
+ "id": "1aa65c21.28f974",
+ "type": "not-found",
+ "name": "not-found",
+ "xml": "<outcome value='not-found'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 3986.5001220703125,
+ "y": 334,
+ "z": "bc9d969b.328b8",
+ "wires": [
+ [
+ "5b188d77.8ffc8c"
+ ]
+ ]
+ },
+ {
+ "id": "b04b9242.14b66",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 4138.8824462890625,
+ "y": 278.6556701660156,
+ "z": "bc9d969b.328b8",
+ "wires": [
+ [
+ "14763204.df94c6"
+ ]
+ ]
+ },
+ {
+ "id": "a517ec9b.cf8fc8",
+ "type": "outcome",
+ "name": "esr-thirdparty-sdnc",
+ "xml": "<outcome value='esr-thirdparty-sdnc'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 4721,
+ "y": 281,
+ "z": "bc9d969b.328b8",
+ "wires": [
+ [
+ "37ce34d7.e5314c"
+ ]
+ ]
+ },
+ {
+ "id": "14763204.df94c6",
+ "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",
+ "wires": [
+ [
+ "bbbe4e04.e26da"
+ ]
+ ]
+ },
+ {
+ "id": "bbbe4e04.e26da",
+ "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",
+ "wires": [
+ [
+ "a517ec9b.cf8fc8"
+ ]
+ ]
+ },
+ {
+ "id": "a732e62d.9d3f9",
+ "type": "other",
+ "name": "other",
+ "xml": "<outcome value='Other'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 3991.5001220703125,
+ "y": 391,
+ "z": "bc9d969b.328b8",
+ "wires": [
+ [
+ "ebcd1e8f.a8cb18"
+ ]
+ ]
+ },
+ {
+ "id": "ebcd1e8f.a8cb18",
+ "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",
+ "wires": []
+ },
+ {
+ "id": "5b188d77.8ffc8c",
+ "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",
+ "wires": []
+ },
+ {
+ "id": "d99536cb.cbc39",
+ "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",
+ "wires": [
+ [
+ "5f8e12fe.363034",
+ "3e541a04.379ece",
+ "5e7e63a7.7acdcc"
+ ]
+ ]
+ },
+ {
+ "id": "37ce34d7.e5314c",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "outputs": 1,
+ "x": 4900,
+ "y": 281,
+ "z": "bc9d969b.328b8",
+ "wires": [
+ [
+ "17ccdbf.84352a4",
+ "d99536cb.cbc39"
+ ]
+ ]
+ },
+ {
+ "id": "17ccdbf.84352a4",
+ "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",
+ "wires": []
+ },
+ {
+ "id": "5f8e12fe.363034",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 5316,
+ "y": 285,
+ "z": "bc9d969b.328b8",
+ "wires": [
+ [
+ "a674bdd4.cbe5f"
+ ]
+ ]
+ },
+ {
+ "id": "3e541a04.379ece",
+ "type": "not-found",
+ "name": "not-found",
+ "xml": "<outcome value='not-found'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 5308,
+ "y": 340,
+ "z": "bc9d969b.328b8",
+ "wires": [
+ [
+ "b14ed6a2.e3874"
+ ]
+ ]
+ },
+ {
+ "id": "5e7e63a7.7acdcc",
+ "type": "other",
+ "name": "other",
+ "xml": "<outcome value='Other'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 5313,
+ "y": 397,
+ "z": "bc9d969b.328b8",
+ "wires": [
+ [
+ "1ce96021.1d8b"
+ ]
+ ]
+ },
+ {
+ "id": "1ce96021.1d8b",
+ "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",
+ "wires": []
+ },
+ {
+ "id": "b14ed6a2.e3874",
+ "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",
+ "wires": []
+ },
+ {
+ "id": "a674bdd4.cbe5f",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 5460.38232421875,
+ "y": 282.6556701660156,
+ "z": "bc9d969b.328b8",
+ "wires": [
+ [
+ "67e87cc0.72543c"
+ ]
+ ]
+ },
+ {
+ "id": "67e87cc0.72543c",
+ "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",
+ "wires": []
+ },
+ {
+ "id": "9bca10ea.41532",
+ "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",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "9469a92e.1082c",
+ "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",
+ "comments": "",
+ "x": 3815,
+ "y": 966,
+ "z": "bc9d969b.328b8",
+ "wires": []
+ },
+ {
+ "id": "8e72aaca.f223b8",
+ "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`\" />",
+ "comments": "",
+ "outputs": 1,
+ "x": 3878,
+ "y": 1295,
+ "z": "bc9d969b.328b8",
+ "wires": [
+ [
+ "4967c60e.7eec88",
+ "d728c3b6.b72d4"
+ ]
+ ]
+ },
+ {
+ "id": "4967c60e.7eec88",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 4173.5,
+ "y": 1262,
+ "z": "bc9d969b.328b8",
+ "wires": [
+ [
+ "957f3c62.36bab"
+ ]
+ ]
+ },
+ {
+ "id": "d728c3b6.b72d4",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 4178.5,
+ "y": 1327,
+ "z": "bc9d969b.328b8",
+ "wires": [
+ [
+ "9b37bb11.43c248"
+ ]
+ ]
+ },
+ {
+ "id": "957f3c62.36bab",
+ "type": "returnFailure",
+ "name": "return failure",
+ "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n <parameter name=\"error-message\" value=\"Error executing Create vpn rest api\" />\n",
+ "comments": "",
+ "x": 4341.5,
+ "y": 1262,
+ "z": "bc9d969b.328b8",
+ "wires": []
+ },
+ {
+ "id": "9b37bb11.43c248",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 4352,
+ "y": 1327,
+ "z": "bc9d969b.328b8",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "24fc86b.f179cfa",
+ "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",
+ "wires": []
+ },
+ {
+ "id": "a4e80e5.b17c0f",
+ "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",
+ "wires": [
+ [
+ "d87e44a4.312df",
+ "c39adf70.78fbd",
+ "ae2b50d9.d9592"
+ ]
+ ]
+ },
+ {
+ "id": "d87e44a4.312df",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 3976.5001220703125,
+ "y": 1073,
+ "z": "bc9d969b.328b8",
+ "wires": [
+ [
+ "1f01bb4d.6d662d"
+ ]
+ ]
+ },
+ {
+ "id": "c39adf70.78fbd",
+ "type": "not-found",
+ "name": "not-found",
+ "xml": "<outcome value='not-found'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 3968.5001220703125,
+ "y": 1128,
+ "z": "bc9d969b.328b8",
+ "wires": [
+ [
+ "7e32fa48.cb95e4"
+ ]
+ ]
+ },
+ {
+ "id": "1f01bb4d.6d662d",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 4120.8824462890625,
+ "y": 1070.6556701660156,
+ "z": "bc9d969b.328b8",
+ "wires": [
+ [
+ "71c66ab3.44665c"
+ ]
+ ]
+ },
+ {
+ "id": "71c66ab3.44665c",
+ "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",
+ "wires": [
+ [
+ "7900c812.a2abd"
+ ]
+ ]
+ },
+ {
+ "id": "ae2b50d9.d9592",
+ "type": "other",
+ "name": "other",
+ "xml": "<outcome value='Other'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 3973.5001220703125,
+ "y": 1185,
+ "z": "bc9d969b.328b8",
+ "wires": [
+ [
+ "c7f28bc4.db74a"
+ ]
+ ]
+ },
+ {
+ "id": "c7f28bc4.db74a",
+ "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",
+ "wires": []
+ },
+ {
+ "id": "7e32fa48.cb95e4",
+ "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",
+ "wires": []
+ },
+ {
+ "id": "d3528946.ee7a88",
+ "type": "outcome",
+ "name": "esr-thirdparty-sdnc",
+ "xml": "<outcome value='esr-thirdparty-sdnc'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 4703,
+ "y": 1089,
+ "z": "bc9d969b.328b8",
+ "wires": [
+ [
+ "746ece73.5c4d48"
+ ]
+ ]
+ },
+ {
+ "id": "7900c812.a2abd",
+ "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",
+ "wires": [
+ [
+ "d3528946.ee7a88"
+ ]
+ ]
+ },
+ {
+ "id": "f8459d33.082c4",
+ "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",
+ "wires": [
+ [
+ "652db70b.f69af",
+ "cd87b694.170a2",
+ "e10452ec.f851f"
+ ]
+ ]
+ },
+ {
+ "id": "746ece73.5c4d48",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "outputs": 1,
+ "x": 4880,
+ "y": 1081,
+ "z": "bc9d969b.328b8",
+ "wires": [
+ [
+ "13e8c9be.60d2ee",
+ "f8459d33.082c4"
+ ]
+ ]
+ },
+ {
+ "id": "13e8c9be.60d2ee",
+ "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",
+ "wires": []
+ },
+ {
+ "id": "64b1d1df.af4928",
+ "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",
+ "wires": []
+ },
+ {
+ "id": "afae5d5f.cf8cd8",
+ "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",
+ "wires": []
+ },
+ {
+ "id": "fe8767e6.75d1",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 5442.38232421875,
+ "y": 1076.6556701660156,
+ "z": "bc9d969b.328b8",
+ "wires": [
+ [
+ "9e679808.748fd"
+ ]
+ ]
+ },
+ {
+ "id": "9e679808.748fd",
+ "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",
+ "wires": []
+ },
+ {
+ "id": "652db70b.f69af",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 5298,
+ "y": 1079,
+ "z": "bc9d969b.328b8",
+ "wires": [
+ [
+ "fe8767e6.75d1"
+ ]
+ ]
+ },
+ {
+ "id": "cd87b694.170a2",
+ "type": "not-found",
+ "name": "not-found",
+ "xml": "<outcome value='not-found'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 5290,
+ "y": 1134,
+ "z": "bc9d969b.328b8",
+ "wires": [
+ [
+ "afae5d5f.cf8cd8"
+ ]
+ ]
+ },
+ {
+ "id": "e10452ec.f851f",
+ "type": "other",
+ "name": "other",
+ "xml": "<outcome value='Other'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 5295,
+ "y": 1191,
+ "z": "bc9d969b.328b8",
+ "wires": [
+ [
+ "64b1d1df.af4928"
+ ]
+ ]
+ },
+ {
+ "id": "483259b4.af3e1",
+ "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",
+ "wires": [
+ [
+ "deb24009.8fcaa8",
+ "f99db731.cec29",
+ "20c66e63.50491a"
+ ]
+ ]
+ },
+ {
+ "id": "deb24009.8fcaa8",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2020,
+ "y": 409,
+ "z": "bc9d969b.328b8",
+ "wires": [
+ [
+ "4730a3bd.f32424"
+ ]
+ ]
+ },
+ {
+ "id": "f99db731.cec29",
+ "type": "not-found",
+ "name": "not-found",
+ "xml": "<outcome value='not-found'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2020.490966796875,
+ "y": 454.57403564453125,
+ "z": "bc9d969b.328b8",
+ "wires": [
+ [
+ "5f621d7d.168d04"
+ ]
+ ]
+ },
+ {
+ "id": "20c66e63.50491a",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2018,
+ "y": 498,
+ "z": "bc9d969b.328b8",
+ "wires": [
+ [
+ "3d808fc9.409a"
+ ]
+ ]
+ },
+ {
+ "id": "5f621d7d.168d04",
+ "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",
+ "wires": []
+ },
+ {
+ "id": "3d808fc9.409a",
+ "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",
+ "wires": []
+ },
+ {
+ "id": "98bf7163.623b18",
+ "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",
+ "wires": [
+ [
+ "4a10f363.97f04c",
+ "75240e64.8364b",
+ "7a8b2677.1e3f6"
+ ]
+ ]
+ },
+ {
+ "id": "262c25a6.ad70a2",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "outputs": 1,
+ "x": 2877,
+ "y": 498,
+ "z": "bc9d969b.328b8",
+ "wires": [
+ [
+ "471d55bd.ad492c"
+ ]
+ ]
+ },
+ {
+ "id": "4a10f363.97f04c",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2704,
+ "y": 500,
+ "z": "bc9d969b.328b8",
+ "wires": [
+ [
+ "262c25a6.ad70a2"
+ ]
+ ]
+ },
+ {
+ "id": "75240e64.8364b",
+ "type": "not-found",
+ "name": "not-found",
+ "xml": "<outcome value='not-found'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2704.490966796875,
+ "y": 545.5740356445312,
+ "z": "bc9d969b.328b8",
+ "wires": [
+ [
+ "1484cf74.c39e71"
+ ]
+ ]
+ },
+ {
+ "id": "7a8b2677.1e3f6",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2702,
+ "y": 589,
+ "z": "bc9d969b.328b8",
+ "wires": [
+ [
+ "d377f001.ff927"
+ ]
+ ]
+ },
+ {
+ "id": "d377f001.ff927",
+ "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",
+ "wires": []
+ },
+ {
+ "id": "1484cf74.c39e71",
+ "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",
+ "wires": []
+ },
+ {
+ "id": "4730a3bd.f32424",
+ "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",
+ "wires": [
+ [
+ "ed79cbad.42008"
+ ]
+ ]
+ },
+ {
+ "id": "ed79cbad.42008",
+ "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",
+ "wires": [
+ [
+ "87636f23.10a238"
+ ]
+ ]
+ },
+ {
+ "id": "87636f23.10a238",
+ "type": "outcome",
+ "name": "vpn-binding",
+ "xml": "<outcome value='vpn-binding'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2592,
+ "y": 404,
+ "z": "bc9d969b.328b8",
+ "wires": [
+ [
+ "f49319bb.999b88"
+ ]
+ ]
+ },
+ {
+ "id": "f49319bb.999b88",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "outputs": 1,
+ "x": 2755,
+ "y": 404,
+ "z": "bc9d969b.328b8",
+ "wires": [
+ [
+ "98bf7163.623b18"
+ ]
+ ]
+ },
+ {
+ "id": "471d55bd.ad492c",
+ "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",
+ "wires": [
+ [
+ "a6851b6e.131e78",
+ "f997812a.bb5bf"
+ ]
+ ]
+ },
+ {
+ "id": "a6851b6e.131e78",
+ "type": "outcome",
+ "name": "Null",
+ "xml": "<outcome value=''>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 3384,
+ "y": 531,
+ "z": "bc9d969b.328b8",
+ "wires": [
+ [
+ "9ec23d9e.f5fd3"
+ ]
+ ]
+ },
+ {
+ "id": "f997812a.bb5bf",
+ "type": "other",
+ "name": "other",
+ "xml": "<outcome value='Other'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 3384,
+ "y": 475,
+ "z": "bc9d969b.328b8",
+ "wires": [
+ [
+ "a48cbe42.98bbb"
+ ]
+ ]
+ },
+ {
+ "id": "9ec23d9e.f5fd3",
+ "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",
+ "wires": [
+ [
+ "12733247.02817e",
+ "457dfc0a.58968c"
+ ]
+ ]
+ },
+ {
+ "id": "12733247.02817e",
+ "type": "outcome",
+ "name": "Null",
+ "xml": "<outcome value=''>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 3376,
+ "y": 1351,
+ "z": "bc9d969b.328b8",
+ "wires": [
+ [
+ "13d35870.d79cf8"
+ ]
+ ]
+ },
+ {
+ "id": "457dfc0a.58968c",
+ "type": "other",
+ "name": "other",
+ "xml": "<outcome value='Other'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 3376,
+ "y": 1295,
+ "z": "bc9d969b.328b8",
+ "wires": [
+ [
+ "b272db0a.663f1"
+ ]
+ ]
+ },
+ {
+ "id": "13d35870.d79cf8",
+ "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",
+ "wires": []
+ },
+ {
+ "id": "d316857d.f41628",
+ "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",
+ "wires": []
+ },
+ {
+ "id": "3accaf74.7f8a68",
+ "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",
+ "wires": []
+ },
+ {
+ "id": "a48cbe42.98bbb",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 3552,
+ "y": 477,
+ "z": "bc9d969b.328b8",
+ "wires": [
+ [
+ "d316857d.f41628",
+ "cba9b813.e1b22",
+ "f01334b4.1d8928",
+ "dbf99a2b.67c71",
+ "9e9578a4.5a4df",
+ "8d5f5723.afac28",
+ "c84632a9.494938"
+ ]
+ ]
+ },
+ {
+ "id": "b272db0a.663f1",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "outputs": 1,
+ "x": 3527,
+ "y": 1294,
+ "z": "bc9d969b.328b8",
+ "wires": [
+ [
+ "3accaf74.7f8a68",
+ "9469a92e.1082c",
+ "24fc86b.f179cfa",
+ "a4e80e5.b17c0f",
+ "8e72aaca.f223b8",
+ "6e17b735.11933",
+ "35d8443b.290754"
+ ]
+ ]
+ },
+ {
+ "id": "6e17b735.11933",
+ "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",
+ "wires": []
+ },
+ {
+ "id": "35d8443b.290754",
+ "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",
+ "wires": [
+ [
+ "3ee71f70.cef2d8",
+ "ec28887e.13052"
+ ]
+ ]
+ },
+ {
+ "id": "3ee71f70.cef2d8",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 4255.5,
+ "y": 1466,
+ "z": "bc9d969b.328b8",
+ "wires": [
+ [
+ "146e8cbe.f1427b"
+ ]
+ ]
+ },
+ {
+ "id": "ec28887e.13052",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 4259.5,
+ "y": 1506,
+ "z": "bc9d969b.328b8",
+ "wires": [
+ [
+ "6938dd8d.725ce4"
+ ]
+ ]
+ },
+ {
+ "id": "146e8cbe.f1427b",
+ "type": "returnFailure",
+ "name": "return failure",
+ "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n <parameter name=\"error-message\" value=\"Error executing Create vpn rest api\" />\n",
+ "comments": "",
+ "x": 4413.5,
+ "y": 1466,
+ "z": "bc9d969b.328b8",
+ "wires": []
+ },
+ {
+ "id": "6938dd8d.725ce4",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 4417,
+ "y": 1506,
+ "z": "bc9d969b.328b8",
+ "wires": [
+ [
+ "3103adf.03ebdd2",
+ "abd5a958.8851"
+ ]
+ ]
+ },
+ {
+ "id": "b5e2d859.f89e48",
+ "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",
+ "wires": []
+ },
+ {
+ "id": "3103adf.03ebdd2",
+ "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",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "1ee5068c.50a041",
+ "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",
+ "wires": []
+ },
+ {
+ "id": "abd5a958.8851",
+ "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",
+ "wires": [
+ []
+ ]
+ }
+] \ No newline at end of file