aboutsummaryrefslogtreecommitdiffstats
path: root/platform-logic/generic-resource-api
diff options
context:
space:
mode:
Diffstat (limited to 'platform-logic/generic-resource-api')
-rw-r--r--platform-logic/generic-resource-api/src/main/json/p2p_eline/GENERIC-RESOURCE-API_p2p-vnf-topology-operation-p2p-activate.json2379
-rw-r--r--platform-logic/generic-resource-api/src/main/json/p2p_eline/GENERIC-RESOURCE-API_p2p-vnf-topology-operation-p2p-create.json5170
-rw-r--r--platform-logic/generic-resource-api/src/main/json/p2p_eline/GENERIC-RESOURCE-API_p2p-vnf-topology-operation-p2p-deactivate.json1062
-rw-r--r--platform-logic/generic-resource-api/src/main/json/p2p_eline/GENERIC-RESOURCE-API_p2p-vnf-topology-operation-p2p-delete.json1058
-rw-r--r--platform-logic/generic-resource-api/src/main/json/p2p_eline/GENERIC-RESOURCE-API_p2p-vnf-topology-operation-p2p-modify.json5647
-rwxr-xr-xplatform-logic/generic-resource-api/src/main/resources/graph.versions7
-rw-r--r--platform-logic/generic-resource-api/src/main/xml/p2p_eline/GENERIC-RESOURCE-API_p2p-vnf-topology-operation-p2p-activate.xml637
-rw-r--r--platform-logic/generic-resource-api/src/main/xml/p2p_eline/GENERIC-RESOURCE-API_p2p-vnf-topology-operation-p2p-create.xml1146
-rw-r--r--platform-logic/generic-resource-api/src/main/xml/p2p_eline/GENERIC-RESOURCE-API_p2p-vnf-topology-operation-p2p-deactivate.xml262
-rw-r--r--platform-logic/generic-resource-api/src/main/xml/p2p_eline/GENERIC-RESOURCE-API_p2p-vnf-topology-operation-p2p-delete.xml249
-rw-r--r--platform-logic/generic-resource-api/src/main/xml/p2p_eline/GENERIC-RESOURCE-API_p2p-vnf-topology-operation-p2p-modify.xml1425
11 files changed, 19041 insertions, 1 deletions
diff --git a/platform-logic/generic-resource-api/src/main/json/p2p_eline/GENERIC-RESOURCE-API_p2p-vnf-topology-operation-p2p-activate.json b/platform-logic/generic-resource-api/src/main/json/p2p_eline/GENERIC-RESOURCE-API_p2p-vnf-topology-operation-p2p-activate.json
new file mode 100644
index 00000000..8047f55a
--- /dev/null
+++ b/platform-logic/generic-resource-api/src/main/json/p2p_eline/GENERIC-RESOURCE-API_p2p-vnf-topology-operation-p2p-activate.json
@@ -0,0 +1,2379 @@
+[
+ {
+ "id": "94b540c9.238618",
+ "type": "dgstart",
+ "name": "DGSTART",
+ "outputs": 1,
+ "x": 149.75,
+ "y": 94.75,
+ "z": "30d84baa.6f57bc",
+ "wires": [
+ [
+ "dda31e25.b7e27"
+ ]
+ ]
+ },
+ {
+ "id": "dda31e25.b7e27",
+ "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": 281.0356903076172,
+ "y": 143.98810863494873,
+ "z": "30d84baa.6f57bc",
+ "wires": [
+ [
+ "a1958103.ff3f88"
+ ]
+ ]
+ },
+ {
+ "id": "a1958103.ff3f88",
+ "type": "method",
+ "name": "method p2p-vnf-topology-operation-p2p-activate",
+ "xml": "<method rpc='p2p-vnf-topology-operation-p2p-activate' mode='sync'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 284.1786193847656,
+ "y": 228.75003242492676,
+ "z": "30d84baa.6f57bc",
+ "wires": [
+ [
+ "a73db057.8ff74"
+ ]
+ ]
+ },
+ {
+ "id": "a73db057.8ff74",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "outputs": 1,
+ "x": 433.988037109375,
+ "y": 358.4166564941406,
+ "z": "30d84baa.6f57bc",
+ "wires": [
+ [
+ "91bdee0e.c7f15",
+ "957a18ba.9d8e",
+ "11da7ad8.21f09d"
+ ]
+ ]
+ },
+ {
+ "id": "91bdee0e.c7f15",
+ "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": 702.3216552734375,
+ "y": 745.34716796875,
+ "z": "30d84baa.6f57bc",
+ "wires": []
+ },
+ {
+ "id": "1d1c9d38.a24823",
+ "type": "comment",
+ "name": "new for TransportSlicing",
+ "info": "",
+ "comments": "",
+ "x": 733.75,
+ "y": 419.75,
+ "z": "30d84baa.6f57bc",
+ "wires": []
+ },
+ {
+ "id": "957a18ba.9d8e",
+ "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": 753.75,
+ "y": 515.75,
+ "z": "30d84baa.6f57bc",
+ "wires": [
+ [
+ "255854de.861404",
+ "fd908507.674308",
+ "4a62dd9f.61cdac"
+ ]
+ ]
+ },
+ {
+ "id": "255854de.861404",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 972.75,
+ "y": 453.75,
+ "z": "30d84baa.6f57bc",
+ "wires": [
+ [
+ "622587e3.99be58"
+ ]
+ ]
+ },
+ {
+ "id": "fd908507.674308",
+ "type": "not-found",
+ "name": "not-found",
+ "xml": "<outcome value='not-found'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 982.240966796875,
+ "y": 496.32403564453125,
+ "z": "30d84baa.6f57bc",
+ "wires": [
+ [
+ "d8fc9dc9.3e6cf"
+ ]
+ ]
+ },
+ {
+ "id": "4a62dd9f.61cdac",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 970.75,
+ "y": 542.75,
+ "z": "30d84baa.6f57bc",
+ "wires": [
+ [
+ "5e548c85.32cd14"
+ ]
+ ]
+ },
+ {
+ "id": "d8fc9dc9.3e6cf",
+ "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": 1135.8123779296875,
+ "y": 499.6097717285156,
+ "z": "30d84baa.6f57bc",
+ "wires": []
+ },
+ {
+ "id": "5e548c85.32cd14",
+ "type": "returnFailure",
+ "name": "return failure",
+ "xml": "<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value='' />\n",
+ "comments": "",
+ "x": 1139.75,
+ "y": 543.75,
+ "z": "30d84baa.6f57bc",
+ "wires": []
+ },
+ {
+ "id": "622587e3.99be58",
+ "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": 1169.75,
+ "y": 449.75,
+ "z": "30d84baa.6f57bc",
+ "wires": [
+ [
+ "439a3ae3.2ab694"
+ ]
+ ]
+ },
+ {
+ "id": "439a3ae3.2ab694",
+ "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": 1393.08349609375,
+ "y": 449.74993896484375,
+ "z": "30d84baa.6f57bc",
+ "wires": [
+ [
+ "1016c8ba.b6da07"
+ ]
+ ]
+ },
+ {
+ "id": "1016c8ba.b6da07",
+ "type": "outcome",
+ "name": "connectivity",
+ "xml": "<outcome value='connectivity'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1593.7501335144043,
+ "y": 450.75002098083496,
+ "z": "30d84baa.6f57bc",
+ "wires": [
+ [
+ "f655b129.6c8e3"
+ ]
+ ]
+ },
+ {
+ "id": "7d98821b.e6839c",
+ "type": "set",
+ "name": "set attachment_param for OTN A",
+ "xml": "<set>\n<parameter name='src-node-id' value='`$tmp.aai.vpn-bindingA.src-access-node-id`' />\n<parameter name='dst-node-id' value='`$tmp.aai.vpn-bindingA.dst-access-node-id`' />\n<!--<parameter name='dst-tpn-id' value='1' />-->\n<parameter name='dst-tpn-id' value='`$tmp.aai.vpn-bindingA.customer-vpn-id`' />\n<parameter name='dst-ttp-id' value='`$tmp.aai.vpn-bindingA.dst-access-ltp-id`' />\n<parameter name='slice-instance-id' value='`$tmp.aai.service-instance.service-instance-id`' />\n<parameter name='otn-tunnel-name-src-domain' value='`$tmp.aai.vpn-bindingA.vpn-name`' />\n<parameter name='client-id' value='`$tmp.aai.vpn-bindingA.access-client-id`' />\n<parameter name='provider-id' value='`$tmp.aai.vpn-bindingA.access-provider-id`' />\n<parameter name='topology-id' value='`$tmp.aai.vpn-bindingA.access-topology-id`' />\n",
+ "comments": "",
+ "x": 4412.75,
+ "y": 166.75,
+ "z": "30d84baa.6f57bc",
+ "wires": []
+ },
+ {
+ "id": "c978ce8f.5eb918",
+ "type": "execute",
+ "name": "execute RestApiCallNode Create OTN tunnel with token",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"templateFileName\" value=\"`$prop.restapi.templateDir + '/' + $prop.restapi.ts-otn-src-domain-creation.templatefile`\" />\n<parameter name=\"restapiUrl\" value=\"`$prop.sdncRestApi.thirdpartySdnc.domainA.url + '/restconf/data/ietf-te:te'`\" />\n<parameter name=\"restapiUser\" value=\"`$prop.sdncRestApi.thirdpartySdnc.domainA.user`\" />\n<parameter name=\"restapiPassword\" value=\"`$prop.sdncRestApi.thirdpartySdnc.domainA.password`\" />\n<parameter name=\"format\" value=\"json\"/>\n<parameter name=\"httpMethod\" value=\"patch\"/>\n<parameter name=\"responsePrefix\" value=\"otn-oof\"/>\n<parameter name=\"trustStoreFileName\" value=\"/opt/onap/sdnc/data/stores/truststore.onap.client.jks\"/>\n<parameter name=\"trustStorePassword\" value=\"adminadmin\"/>\n<parameter name=\"keyStoreFileName\" value=\"/opt/onap/sdnc/data/stores/sdnc.p12\"/>\n<parameter name=\"keyStorePassword\" value=\"adminadmin\"/>\n<parameter name='customHttpHeaders' value=\"`'X-ACCESS-TOKEN=' + $prop.sdncRestApi.token_id`\" />",
+ "comments": "",
+ "outputs": 1,
+ "x": 4493.75,
+ "y": 481.75,
+ "z": "30d84baa.6f57bc",
+ "wires": [
+ [
+ "c08a95fe.6696f8",
+ "b0f4c0f5.92a118"
+ ]
+ ]
+ },
+ {
+ "id": "c08a95fe.6696f8",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 4803.25,
+ "y": 450.75,
+ "z": "30d84baa.6f57bc",
+ "wires": [
+ [
+ "f00f23ff.750aa8"
+ ]
+ ]
+ },
+ {
+ "id": "b0f4c0f5.92a118",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 4808.25,
+ "y": 515.75,
+ "z": "30d84baa.6f57bc",
+ "wires": [
+ [
+ "c22d4e2c.b8095"
+ ]
+ ]
+ },
+ {
+ "id": "f00f23ff.750aa8",
+ "type": "returnFailure",
+ "name": "return failure",
+ "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n <parameter name=\"error-message\" value=\"Error executing Create OTN tunnel rest api\" />\n",
+ "comments": "",
+ "x": 4979.25,
+ "y": 450.75,
+ "z": "30d84baa.6f57bc",
+ "wires": []
+ },
+ {
+ "id": "c22d4e2c.b8095",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 4974.75,
+ "y": 515.75,
+ "z": "30d84baa.6f57bc",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "d1f1dcb6.1fec3",
+ "type": "set",
+ "name": "set sotn_value",
+ "xml": "<set>\n<!--<parameter name='eth-service-name' value='`$tmp.aai.connectivityA.connectivity-id`' />-->\n<parameter name='eth-service-name' value='`$tmp.aai.connectivityA.etht-svc-name`' />\n<parameter name='slice-id' value='`$vnf-topology-operation-input.service-information.service-instance-id`' />\n<parameter name='provider-id' value='`$tmp.aai.connectivityA.access-provider-id`' />\n<parameter name='client-id' value='`$tmp.aai.connectivityA.access-client-id`' />\n<parameter name='topology-id' value='`$tmp.aai.connectivityA.access-topology-id`' />\n<parameter name='otn-tunnel-name' value='`$tmp.aai.vpn-bindingA.vpn-name`' />\n<parameter name='ethernet-end-point-name' value='`$tmp.aai.connectivityA.connectivity-id`' />\n<parameter name='index-number' value='0' />\n<parameter name='eth-node-id' value='`$tmp.aai.connectivityA.access-node-id`' />\n<parameter name='eth-node-tp-id' value='`$tmp.aai.connectivityA.access-ltp-id`' />\n<parameter name='CIR' value='`$tmp.aai.vpn-bindingA.route-distinguisher *1000000`' />\n<parameter name='EIR' value='`$tmp.aai.vpn-bindingA.route-distinguisher *1000000`' />\n<parameter name='cvlan' value='`$tmp.aai.connectivityA.cvlan`' />\n",
+ "comments": "",
+ "x": 4360.25,
+ "y": 669.75,
+ "z": "30d84baa.6f57bc",
+ "wires": []
+ },
+ {
+ "id": "251b183d.cbc77",
+ "type": "execute",
+ "name": "execute RestApiCallNode Create ethernet Service without token",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"templateFileName\" value=\"`$prop.restapi.templateDir + '/' + $prop.restapi.ts-ethernet-service.templatefile`\" />\n<parameter name=\"restapiUrl\" value=\"`$prop.sdncRestApi.thirdpartySdnc.domainA.url + '/restconf/data/ietf-eth-tran-service:etht-svc'`\" />\n<!--<parameter name=\"restapiUrl\" value=\"`$prop.restapi.connection-oof-url`\" />-->\n<parameter name=\"restapiUser\" value=\"`$prop.sdncRestApi.thirdpartySdnc.domainA.user`\" />\n<parameter name=\"restapiPassword\" value=\"`$prop.sdncRestApi.thirdpartySdnc.domainA.password`\" />\n<parameter name=\"format\" value=\"json\"/>\n<parameter name=\"httpMethod\" value=\"patch\"/>\n<parameter name='dirPath' value=\"/opt/onap/sdnc/restconfapi/yang\" />\n<parameter name=\"responsePrefix\" value=\"vpn-result\"/>\n<parameter name=\"trustStoreFileName\" value=\"/opt/onap/sdnc/data/stores/truststore.onap.client.jks\"/>\n<parameter name=\"trustStorePassword\" value=\"adminadmin\"/>\n<parameter name=\"keyStoreFileName\" value=\"/opt/onap/sdnc/data/stores/sdnc.p12\"/>\n<parameter name=\"keyStorePassword\" value=\"adminadmin\"/>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 4514.25,
+ "y": 717.75,
+ "z": "30d84baa.6f57bc",
+ "wires": [
+ [
+ "be60985c.4fbc58",
+ "b84a3cc3.684a28"
+ ]
+ ]
+ },
+ {
+ "id": "be60985c.4fbc58",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 4859.75,
+ "y": 698.75,
+ "z": "30d84baa.6f57bc",
+ "wires": [
+ [
+ "305db122.d214ee"
+ ]
+ ]
+ },
+ {
+ "id": "b84a3cc3.684a28",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 4863.75,
+ "y": 738.75,
+ "z": "30d84baa.6f57bc",
+ "wires": [
+ [
+ "d6fb6749.eab338"
+ ]
+ ]
+ },
+ {
+ "id": "305db122.d214ee",
+ "type": "returnFailure",
+ "name": "return failure",
+ "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n <parameter name=\"error-message\" value=\"Error executing Create ethernet service rest api\" />\n",
+ "comments": "",
+ "x": 5017.75,
+ "y": 698.75,
+ "z": "30d84baa.6f57bc",
+ "wires": []
+ },
+ {
+ "id": "d6fb6749.eab338",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 5021.25,
+ "y": 738.75,
+ "z": "30d84baa.6f57bc",
+ "wires": [
+ [
+ "4fa6f4cb.4aa39c",
+ "f065baf1.f73c4",
+ "677bc6cc.c2278"
+ ]
+ ]
+ },
+ {
+ "id": "d7ddb4d7.9c1b5",
+ "type": "comment",
+ "name": "TODO: FIXME:",
+ "info": "put proper values based on connectivity resource retrieved from AAI",
+ "comments": "",
+ "x": 4357.75,
+ "y": 625.75,
+ "z": "30d84baa.6f57bc",
+ "wires": []
+ },
+ {
+ "id": "4fa6f4cb.4aa39c",
+ "type": "save",
+ "name": "update vpn-binding A resource (aka. OTN domainA) in AAI",
+ "xml": "<update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='vpn-binding' \n key='vpn-binding.vpn-id = $tmp.aai.vpn-bindingA.vpn-id' >\n<parameter name='vpn-id' value='`$tmp.aai.vpn-bindingA.vpn-id`' />\n<parameter name='vpn-name' value='`$tmp.aai.vpn-bindingA.vpn-name`' />\n\n<parameter name='operational-status' value='Activated' />\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 5351.75,
+ "y": 703.75,
+ "z": "30d84baa.6f57bc",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "e1a352b3.d1c22",
+ "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": 5215.75,
+ "y": 662.75,
+ "z": "30d84baa.6f57bc",
+ "wires": []
+ },
+ {
+ "id": "f065baf1.f73c4",
+ "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": 5278.75,
+ "y": 749.75,
+ "z": "30d84baa.6f57bc",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "d8047beb.a120a",
+ "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": 4350.75,
+ "y": 214.75,
+ "z": "30d84baa.6f57bc",
+ "wires": []
+ },
+ {
+ "id": "c0003a50.a00b1",
+ "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": 4376.75,
+ "y": 331.75,
+ "z": "30d84baa.6f57bc",
+ "wires": [
+ [
+ "767b670a.725628",
+ "8de69881.7810c",
+ "dbb97564.e7a91"
+ ]
+ ]
+ },
+ {
+ "id": "767b670a.725628",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 4572.2501220703125,
+ "y": 283.75,
+ "z": "30d84baa.6f57bc",
+ "wires": [
+ [
+ "9fa9eef6.966618"
+ ]
+ ]
+ },
+ {
+ "id": "8de69881.7810c",
+ "type": "not-found",
+ "name": "not-found",
+ "xml": "<outcome value='not-found'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 4564.2501220703125,
+ "y": 338.75,
+ "z": "30d84baa.6f57bc",
+ "wires": [
+ [
+ "2b81f91f.bfddb6"
+ ]
+ ]
+ },
+ {
+ "id": "9fa9eef6.966618",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 4716.6324462890625,
+ "y": 283.4056701660156,
+ "z": "30d84baa.6f57bc",
+ "wires": [
+ [
+ "33a206d2.a6527a"
+ ]
+ ]
+ },
+ {
+ "id": "4f3c702b.c83bb",
+ "type": "outcome",
+ "name": "esr-thirdparty-sdnc",
+ "xml": "<outcome value='esr-thirdparty-sdnc'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 5298.75,
+ "y": 285.75,
+ "z": "30d84baa.6f57bc",
+ "wires": [
+ [
+ "cb134ba5.74bf48"
+ ]
+ ]
+ },
+ {
+ "id": "33a206d2.a6527a",
+ "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": 4900.75,
+ "y": 281.75,
+ "z": "30d84baa.6f57bc",
+ "wires": [
+ [
+ "893da1cb.bc091"
+ ]
+ ]
+ },
+ {
+ "id": "893da1cb.bc091",
+ "type": "switchNode",
+ "name": "switch related-to",
+ "xml": "<switch test='`$tmp.aai.source-pnf.relationship-list.relationship[$spvidx].related-to`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 5095.75,
+ "y": 281.75,
+ "z": "30d84baa.6f57bc",
+ "wires": [
+ [
+ "4f3c702b.c83bb"
+ ]
+ ]
+ },
+ {
+ "id": "dbb97564.e7a91",
+ "type": "other",
+ "name": "other",
+ "xml": "<outcome value='Other'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 4569.2501220703125,
+ "y": 395.75,
+ "z": "30d84baa.6f57bc",
+ "wires": [
+ [
+ "b75e061e.d5ec88"
+ ]
+ ]
+ },
+ {
+ "id": "b75e061e.d5ec88",
+ "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": 4721.2501220703125,
+ "y": 396.75,
+ "z": "30d84baa.6f57bc",
+ "wires": []
+ },
+ {
+ "id": "2b81f91f.bfddb6",
+ "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": 4732.2501220703125,
+ "y": 339.75,
+ "z": "30d84baa.6f57bc",
+ "wires": []
+ },
+ {
+ "id": "848a4c57.f2a3d",
+ "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": 5683.75,
+ "y": 298.75,
+ "z": "30d84baa.6f57bc",
+ "wires": [
+ [
+ "2e1535a4.41297a",
+ "1778db70.6907f5",
+ "72b5f7c.70da408"
+ ]
+ ]
+ },
+ {
+ "id": "cb134ba5.74bf48",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "outputs": 1,
+ "x": 5477.75,
+ "y": 285.75,
+ "z": "30d84baa.6f57bc",
+ "wires": [
+ [
+ "19fba605.f323fa",
+ "848a4c57.f2a3d"
+ ]
+ ]
+ },
+ {
+ "id": "19fba605.f323fa",
+ "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": 5713.75,
+ "y": 246.75,
+ "z": "30d84baa.6f57bc",
+ "wires": []
+ },
+ {
+ "id": "2e1535a4.41297a",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 5893.75,
+ "y": 289.75,
+ "z": "30d84baa.6f57bc",
+ "wires": [
+ [
+ "780f3b99.e0b614"
+ ]
+ ]
+ },
+ {
+ "id": "1778db70.6907f5",
+ "type": "not-found",
+ "name": "not-found",
+ "xml": "<outcome value='not-found'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 5885.75,
+ "y": 344.75,
+ "z": "30d84baa.6f57bc",
+ "wires": [
+ [
+ "142c73b0.fb0d8c"
+ ]
+ ]
+ },
+ {
+ "id": "72b5f7c.70da408",
+ "type": "other",
+ "name": "other",
+ "xml": "<outcome value='Other'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 5890.75,
+ "y": 401.75,
+ "z": "30d84baa.6f57bc",
+ "wires": [
+ [
+ "4764feda.35a838"
+ ]
+ ]
+ },
+ {
+ "id": "4764feda.35a838",
+ "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": 6042.75,
+ "y": 402.75,
+ "z": "30d84baa.6f57bc",
+ "wires": []
+ },
+ {
+ "id": "142c73b0.fb0d8c",
+ "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": 6053.75,
+ "y": 347.75,
+ "z": "30d84baa.6f57bc",
+ "wires": []
+ },
+ {
+ "id": "780f3b99.e0b614",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 6038.13232421875,
+ "y": 287.4056701660156,
+ "z": "30d84baa.6f57bc",
+ "wires": [
+ [
+ "bba0e779.8df588"
+ ]
+ ]
+ },
+ {
+ "id": "bba0e779.8df588",
+ "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": 6252.75,
+ "y": 283.75,
+ "z": "30d84baa.6f57bc",
+ "wires": []
+ },
+ {
+ "id": "11da7ad8.21f09d",
+ "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": 719.75,
+ "y": 463.75,
+ "z": "30d84baa.6f57bc",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "97981e3f.7665d",
+ "type": "set",
+ "name": "set attachment_param for OTN B",
+ "xml": "<set>\n<parameter name='src-node-id' value='`$tmp.aai.vpn-bindingB.src-access-node-id`' />\n<parameter name='dst-node-id' value='`$tmp.aai.vpn-bindingB.dst-access-node-id`' />\n<!--<parameter name='src-tpn-id' value='1' />-->\n<parameter name='src-tpn-id' value='`$tmp.aai.vpn-bindingB.customer-vpn-id`' />\n<parameter name='src-ttp-id' value='`$tmp.aai.vpn-bindingB.src-access-ltp-id`' />\n<parameter name='slice-instance-id' value='`$tmp.aai.service-instance.service-instance-id`' />\n<parameter name='otn-tunnel-name-dst-domain' value='`$tmp.aai.vpn-bindingB.vpn-name`' />\n<parameter name='client-id' value='`$tmp.aai.vpn-bindingB.access-client-id`' />\n<parameter name='provider-id' value='`$tmp.aai.vpn-bindingB.access-provider-id`' />\n<parameter name='topology-id' value='`$tmp.aai.vpn-bindingB.access-topology-id`' />\n",
+ "comments": "",
+ "x": 3819.75,
+ "y": 1623.75,
+ "z": "30d84baa.6f57bc",
+ "wires": []
+ },
+ {
+ "id": "1bef475b.0876b9",
+ "type": "execute",
+ "name": "execute RestApiCallNode Create OTN tunnel with token",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"templateFileName\" value=\"`$prop.restapi.templateDir + '/' + $prop.restapi.ts-otn-dst-domain-creation.templatefile`\" />\n<parameter name=\"restapiUrl\" value=\"`$prop.sdncRestApi.thirdpartySdnc.domainB.url + '/restconf/data/ietf-te:te'`\" />\n<parameter name=\"restapiUser\" value=\"`$prop.sdncRestApi.thirdpartySdnc.domainB.user`\" />\n<parameter name=\"restapiPassword\" value=\"`$prop.sdncRestApi.thirdpartySdnc.domainB.password`\" />\n<parameter name=\"format\" value=\"json\"/>\n<parameter name=\"httpMethod\" value=\"patch\"/>\n<parameter name=\"responsePrefix\" value=\"otn-oof\"/>\n<parameter name=\"trustStoreFileName\" value=\"/opt/onap/sdnc/data/stores/truststore.onap.client.jks\"/>\n<parameter name=\"trustStorePassword\" value=\"adminadmin\"/>\n<parameter name=\"keyStoreFileName\" value=\"/opt/onap/sdnc/data/stores/sdnc.p12\"/>\n<parameter name=\"keyStorePassword\" value=\"adminadmin\"/>\n<parameter name='customHttpHeaders' value=\"`'X-ACCESS-TOKEN=' + $prop.sdncRestApi.token_id`\" />",
+ "comments": "",
+ "outputs": 1,
+ "x": 3882.75,
+ "y": 1952.75,
+ "z": "30d84baa.6f57bc",
+ "wires": [
+ [
+ "a5d1d793.c9259",
+ "24fe1da2.474a9a"
+ ]
+ ]
+ },
+ {
+ "id": "a5d1d793.c9259",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 4178.25,
+ "y": 1919.75,
+ "z": "30d84baa.6f57bc",
+ "wires": [
+ [
+ "b911fc3e.201c1"
+ ]
+ ]
+ },
+ {
+ "id": "24fe1da2.474a9a",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 4183.25,
+ "y": 1984.75,
+ "z": "30d84baa.6f57bc",
+ "wires": [
+ [
+ "467082f5.e654ac"
+ ]
+ ]
+ },
+ {
+ "id": "b911fc3e.201c1",
+ "type": "returnFailure",
+ "name": "return failure",
+ "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n <parameter name=\"error-message\" value=\"Error executing Create OTN tunnel rest api\" />\n",
+ "comments": "",
+ "x": 4346.25,
+ "y": 1919.75,
+ "z": "30d84baa.6f57bc",
+ "wires": []
+ },
+ {
+ "id": "467082f5.e654ac",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 4356.75,
+ "y": 1984.75,
+ "z": "30d84baa.6f57bc",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "ace90237.5528b8",
+ "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": 3758.75,
+ "y": 1680.75,
+ "z": "30d84baa.6f57bc",
+ "wires": []
+ },
+ {
+ "id": "e4aaac37.9b5738",
+ "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": 3778.75,
+ "y": 1777.75,
+ "z": "30d84baa.6f57bc",
+ "wires": [
+ [
+ "57142ea4.bc3bb",
+ "cc1afb43.a5676",
+ "86a15efe.377578"
+ ]
+ ]
+ },
+ {
+ "id": "57142ea4.bc3bb",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 3981.2501220703125,
+ "y": 1730.75,
+ "z": "30d84baa.6f57bc",
+ "wires": [
+ [
+ "19ef9dfe.b1b91a"
+ ]
+ ]
+ },
+ {
+ "id": "cc1afb43.a5676",
+ "type": "not-found",
+ "name": "not-found",
+ "xml": "<outcome value='not-found'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 3973.2501220703125,
+ "y": 1785.75,
+ "z": "30d84baa.6f57bc",
+ "wires": [
+ [
+ "fc294828.8c7aa"
+ ]
+ ]
+ },
+ {
+ "id": "19ef9dfe.b1b91a",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 4125.6324462890625,
+ "y": 1728.4056701660156,
+ "z": "30d84baa.6f57bc",
+ "wires": [
+ [
+ "a34e91d1.6b4f48"
+ ]
+ ]
+ },
+ {
+ "id": "a34e91d1.6b4f48",
+ "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": 4309.75,
+ "y": 1742.75,
+ "z": "30d84baa.6f57bc",
+ "wires": [
+ [
+ "bcf409d1.2bca88"
+ ]
+ ]
+ },
+ {
+ "id": "86a15efe.377578",
+ "type": "other",
+ "name": "other",
+ "xml": "<outcome value='Other'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 3978.2501220703125,
+ "y": 1842.75,
+ "z": "30d84baa.6f57bc",
+ "wires": [
+ [
+ "9228ece.bfbed9"
+ ]
+ ]
+ },
+ {
+ "id": "9228ece.bfbed9",
+ "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": 4130.2501220703125,
+ "y": 1843.75,
+ "z": "30d84baa.6f57bc",
+ "wires": []
+ },
+ {
+ "id": "fc294828.8c7aa",
+ "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": 4141.2501220703125,
+ "y": 1788.75,
+ "z": "30d84baa.6f57bc",
+ "wires": []
+ },
+ {
+ "id": "8fd77208.a2c738",
+ "type": "outcome",
+ "name": "esr-thirdparty-sdnc",
+ "xml": "<outcome value='esr-thirdparty-sdnc'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 4707.75,
+ "y": 1746.75,
+ "z": "30d84baa.6f57bc",
+ "wires": [
+ [
+ "2b23a5a1.db882a"
+ ]
+ ]
+ },
+ {
+ "id": "bcf409d1.2bca88",
+ "type": "switchNode",
+ "name": "switch related-to",
+ "xml": "<switch test='`$tmp.aai.destination-pnf.relationship-list.relationship[$dpvidx].related-to`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 4504.75,
+ "y": 1742.75,
+ "z": "30d84baa.6f57bc",
+ "wires": [
+ [
+ "8fd77208.a2c738"
+ ]
+ ]
+ },
+ {
+ "id": "ee733a11.b10eb8",
+ "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": 5092.75,
+ "y": 1745.75,
+ "z": "30d84baa.6f57bc",
+ "wires": [
+ [
+ "8e9e736e.ee5478",
+ "98c4188c.f20b2",
+ "454707d0.8a14d8"
+ ]
+ ]
+ },
+ {
+ "id": "2b23a5a1.db882a",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "outputs": 1,
+ "x": 4884.75,
+ "y": 1738.75,
+ "z": "30d84baa.6f57bc",
+ "wires": [
+ [
+ "923bc8de.eb024",
+ "ee733a11.b10eb8"
+ ]
+ ]
+ },
+ {
+ "id": "923bc8de.eb024",
+ "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": 5122.75,
+ "y": 1693.75,
+ "z": "30d84baa.6f57bc",
+ "wires": []
+ },
+ {
+ "id": "35e39fbb.1f604",
+ "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": 5451.75,
+ "y": 1849.75,
+ "z": "30d84baa.6f57bc",
+ "wires": []
+ },
+ {
+ "id": "13ebe3ed.f2247c",
+ "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": 5462.75,
+ "y": 1794.75,
+ "z": "30d84baa.6f57bc",
+ "wires": []
+ },
+ {
+ "id": "b78b9bfd.914f38",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 5447.13232421875,
+ "y": 1734.4056701660156,
+ "z": "30d84baa.6f57bc",
+ "wires": [
+ [
+ "4076fb5b.40dc5c"
+ ]
+ ]
+ },
+ {
+ "id": "4076fb5b.40dc5c",
+ "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": 5661.75,
+ "y": 1730.75,
+ "z": "30d84baa.6f57bc",
+ "wires": []
+ },
+ {
+ "id": "8e9e736e.ee5478",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 5302.75,
+ "y": 1736.75,
+ "z": "30d84baa.6f57bc",
+ "wires": [
+ [
+ "b78b9bfd.914f38"
+ ]
+ ]
+ },
+ {
+ "id": "98c4188c.f20b2",
+ "type": "not-found",
+ "name": "not-found",
+ "xml": "<outcome value='not-found'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 5294.75,
+ "y": 1791.75,
+ "z": "30d84baa.6f57bc",
+ "wires": [
+ [
+ "13ebe3ed.f2247c"
+ ]
+ ]
+ },
+ {
+ "id": "454707d0.8a14d8",
+ "type": "other",
+ "name": "other",
+ "xml": "<outcome value='Other'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 5299.75,
+ "y": 1848.75,
+ "z": "30d84baa.6f57bc",
+ "wires": [
+ [
+ "35e39fbb.1f604"
+ ]
+ ]
+ },
+ {
+ "id": "f655b129.6c8e3",
+ "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": 1831.75,
+ "y": 452.75,
+ "z": "30d84baa.6f57bc",
+ "wires": [
+ [
+ "d8fbecfc.eada5",
+ "70aafcb6.3ffce4",
+ "18daf882.cb46e7"
+ ]
+ ]
+ },
+ {
+ "id": "d8fbecfc.eada5",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2039.75,
+ "y": 416.75,
+ "z": "30d84baa.6f57bc",
+ "wires": [
+ [
+ "92d3d22d.c618f8"
+ ]
+ ]
+ },
+ {
+ "id": "70aafcb6.3ffce4",
+ "type": "not-found",
+ "name": "not-found",
+ "xml": "<outcome value='not-found'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2040.240966796875,
+ "y": 462.32403564453125,
+ "z": "30d84baa.6f57bc",
+ "wires": [
+ [
+ "de1e5ed.546bf2"
+ ]
+ ]
+ },
+ {
+ "id": "18daf882.cb46e7",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2037.75,
+ "y": 505.75,
+ "z": "30d84baa.6f57bc",
+ "wires": [
+ [
+ "b369c83a.de60d8"
+ ]
+ ]
+ },
+ {
+ "id": "de1e5ed.546bf2",
+ "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": 2202.8123779296875,
+ "y": 462.6097717285156,
+ "z": "30d84baa.6f57bc",
+ "wires": []
+ },
+ {
+ "id": "b369c83a.de60d8",
+ "type": "returnFailure",
+ "name": "return failure",
+ "xml": "<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value='' />\n",
+ "comments": "",
+ "x": 2206.75,
+ "y": 506.75,
+ "z": "30d84baa.6f57bc",
+ "wires": []
+ },
+ {
+ "id": "98b87635.4ab2",
+ "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": 2512.75,
+ "y": 505.75,
+ "z": "30d84baa.6f57bc",
+ "wires": [
+ [
+ "133fd3a1.d9493c",
+ "1efd7812.84eb68",
+ "be58cccd.20957"
+ ]
+ ]
+ },
+ {
+ "id": "c3829b9e.475158",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "outputs": 1,
+ "x": 2892.75,
+ "y": 593.75,
+ "z": "30d84baa.6f57bc",
+ "wires": [
+ [
+ "52401003.e54ba8"
+ ]
+ ]
+ },
+ {
+ "id": "133fd3a1.d9493c",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2723.75,
+ "y": 594.75,
+ "z": "30d84baa.6f57bc",
+ "wires": [
+ [
+ "c3829b9e.475158"
+ ]
+ ]
+ },
+ {
+ "id": "1efd7812.84eb68",
+ "type": "not-found",
+ "name": "not-found",
+ "xml": "<outcome value='not-found'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2726.240966796875,
+ "y": 490.32403564453125,
+ "z": "30d84baa.6f57bc",
+ "wires": [
+ [
+ "3a938444.bd8bbc"
+ ]
+ ]
+ },
+ {
+ "id": "be58cccd.20957",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2721.75,
+ "y": 534.75,
+ "z": "30d84baa.6f57bc",
+ "wires": [
+ [
+ "9589b818.4000b"
+ ]
+ ]
+ },
+ {
+ "id": "9589b818.4000b",
+ "type": "returnFailure",
+ "name": "return failure",
+ "xml": "<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value='' />\n",
+ "comments": "",
+ "x": 2889.75,
+ "y": 534.75,
+ "z": "30d84baa.6f57bc",
+ "wires": []
+ },
+ {
+ "id": "3a938444.bd8bbc",
+ "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": 2888.8125,
+ "y": 489.6097412109375,
+ "z": "30d84baa.6f57bc",
+ "wires": []
+ },
+ {
+ "id": "92d3d22d.c618f8",
+ "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": 2240.75,
+ "y": 411.75,
+ "z": "30d84baa.6f57bc",
+ "wires": [
+ [
+ "7db3ded6.deaf"
+ ]
+ ]
+ },
+ {
+ "id": "7db3ded6.deaf",
+ "type": "switchNode",
+ "name": "switch related-to",
+ "xml": "<switch test='`$tmp.aai.connectivity.relationship-list.relationship[$cridx].related-to`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2445.75,
+ "y": 411.75,
+ "z": "30d84baa.6f57bc",
+ "wires": [
+ [
+ "cfbe6a35.f2fd5"
+ ]
+ ]
+ },
+ {
+ "id": "cfbe6a35.f2fd5",
+ "type": "outcome",
+ "name": "vpn-binding",
+ "xml": "<outcome value='vpn-binding'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2611.75,
+ "y": 411.75,
+ "z": "30d84baa.6f57bc",
+ "wires": [
+ [
+ "66d97a83.58a794"
+ ]
+ ]
+ },
+ {
+ "id": "66d97a83.58a794",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "outputs": 1,
+ "x": 2774.75,
+ "y": 411.75,
+ "z": "30d84baa.6f57bc",
+ "wires": [
+ [
+ "98b87635.4ab2",
+ "eec13dad.1221b"
+ ]
+ ]
+ },
+ {
+ "id": "ae8dd7ac.9cc1d",
+ "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": 3333.75,
+ "y": 694.75,
+ "z": "30d84baa.6f57bc",
+ "wires": [
+ [
+ "8935f293.cb1e78",
+ "f32e6b37.4758a8"
+ ]
+ ]
+ },
+ {
+ "id": "8935f293.cb1e78",
+ "type": "outcome",
+ "name": "Null",
+ "xml": "<outcome value=''>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 3547.75,
+ "y": 731.75,
+ "z": "30d84baa.6f57bc",
+ "wires": [
+ [
+ "394930dc.1bf1c"
+ ]
+ ]
+ },
+ {
+ "id": "f32e6b37.4758a8",
+ "type": "other",
+ "name": "other",
+ "xml": "<outcome value='Other'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 3549.75,
+ "y": 669.75,
+ "z": "30d84baa.6f57bc",
+ "wires": [
+ [
+ "d8995170.21ddb"
+ ]
+ ]
+ },
+ {
+ "id": "394930dc.1bf1c",
+ "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": 3127.75,
+ "y": 1974.75,
+ "z": "30d84baa.6f57bc",
+ "wires": [
+ [
+ "2a89d450.3404ec",
+ "667fc503.5791f4"
+ ]
+ ]
+ },
+ {
+ "id": "2a89d450.3404ec",
+ "type": "outcome",
+ "name": "Null",
+ "xml": "<outcome value=''>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 3380.75,
+ "y": 2008.75,
+ "z": "30d84baa.6f57bc",
+ "wires": [
+ [
+ "566098c5.d0033"
+ ]
+ ]
+ },
+ {
+ "id": "667fc503.5791f4",
+ "type": "other",
+ "name": "other",
+ "xml": "<outcome value='Other'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 3380.75,
+ "y": 1952.75,
+ "z": "30d84baa.6f57bc",
+ "wires": [
+ [
+ "4eef4aff.e3dcc4"
+ ]
+ ]
+ },
+ {
+ "id": "566098c5.d0033",
+ "type": "returnFailure",
+ "name": "return failure",
+ "xml": "<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value='' />\n",
+ "comments": "",
+ "x": 3531.75,
+ "y": 2008.75,
+ "z": "30d84baa.6f57bc",
+ "wires": []
+ },
+ {
+ "id": "72ddf5d3.8c5f4c",
+ "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": 4407.75,
+ "y": 106.75,
+ "z": "30d84baa.6f57bc",
+ "wires": []
+ },
+ {
+ "id": "be167b48.23b5b",
+ "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": 3815.75,
+ "y": 1565.75,
+ "z": "30d84baa.6f57bc",
+ "wires": []
+ },
+ {
+ "id": "65804ebf.2b9b08",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 4098.75,
+ "y": 363.75,
+ "z": "30d84baa.6f57bc",
+ "wires": [
+ [
+ "72ddf5d3.8c5f4c",
+ "7d98821b.e6839c",
+ "d8047beb.a120a",
+ "c0003a50.a00b1",
+ "d1f1dcb6.1fec3",
+ "251b183d.cbc77",
+ "c978ce8f.5eb918"
+ ]
+ ]
+ },
+ {
+ "id": "4eef4aff.e3dcc4",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "outputs": 1,
+ "x": 3531.75,
+ "y": 1951.75,
+ "z": "30d84baa.6f57bc",
+ "wires": [
+ [
+ "be167b48.23b5b",
+ "97981e3f.7665d",
+ "ace90237.5528b8",
+ "e4aaac37.9b5738",
+ "1bef475b.0876b9",
+ "8a69ea43.cdd878",
+ "bacb99d3.7d15e8"
+ ]
+ ]
+ },
+ {
+ "id": "8a69ea43.cdd878",
+ "type": "set",
+ "name": "set sotn_value",
+ "xml": "<set>\n<!--<parameter name='eth-service-name' value='`$tmp.aai.connectivityB.connectivity-id`' />-->\n<parameter name='eth-service-name' value='`$tmp.aai.connectivityB.etht-svc-name`' />\n<parameter name='slice-id' value='`$vnf-topology-operation-input.service-information.service-instance-id`' />\n<parameter name='provider-id' value='`$tmp.aai.connectivityB.access-provider-id`' />\n<parameter name='client-id' value='`$tmp.aai.connectivityB.access-client-id`' />\n<parameter name='topology-id' value='`$tmp.aai.connectivityB.access-topology-id`' />\n<parameter name='otn-tunnel-name' value='`$tmp.aai.vpn-bindingB.vpn-name`' />\n<parameter name='ethernet-end-point-name' value='`$tmp.aai.connectivityB.connectivity-id`' />\n<parameter name='index-number' value='0' />\n<parameter name='eth-node-id' value='`$tmp.aai.connectivityB.access-node-id`' />\n<parameter name='eth-node-tp-id' value='`$tmp.aai.connectivityB.access-ltp-id`' />\n<parameter name='CIR' value='`$tmp.aai.vpn-bindingB.route-distinguisher *1000000`' />\n<parameter name='EIR' value='`$tmp.aai.vpn-bindingB.route-distinguisher *1000000`' />\n<parameter name='cvlan' value='`$tmp.aai.connectivityB.cvlan`' />\n\n",
+ "comments": "",
+ "x": 3760.75,
+ "y": 2094.75,
+ "z": "30d84baa.6f57bc",
+ "wires": []
+ },
+ {
+ "id": "bacb99d3.7d15e8",
+ "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": 3914.75,
+ "y": 2142.75,
+ "z": "30d84baa.6f57bc",
+ "wires": [
+ [
+ "17e90060.f79b78",
+ "52bf852c.fdb45c"
+ ]
+ ]
+ },
+ {
+ "id": "17e90060.f79b78",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 4260.25,
+ "y": 2123.75,
+ "z": "30d84baa.6f57bc",
+ "wires": [
+ [
+ "ea0fe23c.016da8"
+ ]
+ ]
+ },
+ {
+ "id": "52bf852c.fdb45c",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 4264.25,
+ "y": 2163.75,
+ "z": "30d84baa.6f57bc",
+ "wires": [
+ [
+ "e4c3d59d.96b0f8"
+ ]
+ ]
+ },
+ {
+ "id": "ea0fe23c.016da8",
+ "type": "returnFailure",
+ "name": "return failure",
+ "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n <parameter name=\"error-message\" value=\"Error executing Create ethernet service rest api\" />\n",
+ "comments": "",
+ "x": 4418.25,
+ "y": 2123.75,
+ "z": "30d84baa.6f57bc",
+ "wires": []
+ },
+ {
+ "id": "e4c3d59d.96b0f8",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 4421.75,
+ "y": 2163.75,
+ "z": "30d84baa.6f57bc",
+ "wires": [
+ [
+ "22d7dd70.1841ea",
+ "3dfc3096.80b288",
+ "d67d1410.76b2b8"
+ ]
+ ]
+ },
+ {
+ "id": "d5f7c980.553e1",
+ "type": "comment",
+ "name": "TODO: FIXME:",
+ "info": "put proper values based on connectivity resource retrieved from AAI",
+ "comments": "",
+ "x": 3758.25,
+ "y": 2050.75,
+ "z": "30d84baa.6f57bc",
+ "wires": []
+ },
+ {
+ "id": "22d7dd70.1841ea",
+ "type": "save",
+ "name": "update vpn-binding B resource (aka. OTN domainB) in AAI",
+ "xml": "<update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='vpn-binding' \n key='vpn-binding.vpn-id = $tmp.aai.vpn-bindingB.vpn-id' >\n<parameter name='vpn-id' value='`$tmp.aai.vpn-bindingB.vpn-id`' />\n<parameter name='vpn-name' value='`$tmp.aai.vpn-bindingB.vpn-name`' />\n\n<parameter name='operational-status' value='Activated' />\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 4761.75,
+ "y": 2162.75,
+ "z": "30d84baa.6f57bc",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "e6c0853.c278578",
+ "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": 4619.75,
+ "y": 2120.75,
+ "z": "30d84baa.6f57bc",
+ "wires": []
+ },
+ {
+ "id": "3dfc3096.80b288",
+ "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": 4690.75,
+ "y": 2211.75,
+ "z": "30d84baa.6f57bc",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "d6d9459c.52e34",
+ "type": "set",
+ "name": "set attachment_param (gfp-n) for OTN",
+ "xml": "<set>\n<parameter name='gfp-n' value='`$tmp.aai.vpn-binding.route-distinguisher`' />\n",
+ "comments": "",
+ "x": 3324.75,
+ "y": 634.75,
+ "z": "30d84baa.6f57bc",
+ "wires": []
+ },
+ {
+ "id": "eec13dad.1221b",
+ "type": "set",
+ "name": "unset tmp.aai.vpn-binding",
+ "xml": "<set>\n<parameter name='tmp.aai.vpn-binding.' value='' />\n",
+ "comments": "",
+ "x": 2958.75,
+ "y": 282.75,
+ "z": "30d84baa.6f57bc",
+ "wires": []
+ },
+ {
+ "id": "6859175e.358ec8",
+ "type": "comment",
+ "name": "only dst ttp exists. No src",
+ "info": "",
+ "comments": "",
+ "x": 3919.75,
+ "y": 320.75,
+ "z": "30d84baa.6f57bc",
+ "wires": []
+ },
+ {
+ "id": "cf1e5b9b.e9493",
+ "type": "comment",
+ "name": "only src ttp exists. No dst",
+ "info": "",
+ "comments": "",
+ "x": 3476.75,
+ "y": 1898.75,
+ "z": "30d84baa.6f57bc",
+ "wires": []
+ },
+ {
+ "id": "d8995170.21ddb",
+ "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": 3655.75,
+ "y": 482.75,
+ "z": "30d84baa.6f57bc",
+ "wires": [
+ [
+ "f7ea2bd8.a0e408",
+ "d911a9d9.6b12a8"
+ ]
+ ]
+ },
+ {
+ "id": "d911a9d9.6b12a8",
+ "type": "other",
+ "name": "other",
+ "xml": "<outcome value='Other'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 3897.75,
+ "y": 1071.75,
+ "z": "30d84baa.6f57bc",
+ "wires": [
+ [
+ "60ce8d2.37a5f74"
+ ]
+ ]
+ },
+ {
+ "id": "f7ea2bd8.a0e408",
+ "type": "outcome",
+ "name": "Null",
+ "xml": "<outcome value=''>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 3891.75,
+ "y": 362.75,
+ "z": "30d84baa.6f57bc",
+ "wires": [
+ [
+ "65804ebf.2b9b08"
+ ]
+ ]
+ },
+ {
+ "id": "60ce8d2.37a5f74",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "outputs": 1,
+ "x": 4055.75,
+ "y": 1070.75,
+ "z": "30d84baa.6f57bc",
+ "wires": [
+ [
+ "250c851.82c85fa",
+ "3a8c3466.1fa784",
+ "44e0a0bb.d00d2",
+ "17d8e4eb.b52ccb",
+ "dd94b2c2.353ff8"
+ ]
+ ]
+ },
+ {
+ "id": "3a8c3466.1fa784",
+ "type": "set",
+ "name": "set attachment_param for OTN G",
+ "xml": "<set>\n<parameter name='src-node-id' value='`$tmp.aai.vpn-bindingG.src-access-node-id`' />\n<parameter name='dst-node-id' value='`$tmp.aai.vpn-bindingG.dst-access-node-id`' />\n<!--<parameter name='dst-tpn-id' value='1' />-->\n<parameter name='src-tpn-id' value='`$tmp.aai.vpn-bindingG.customer-vpn-id`' />\n<parameter name='dst-tpn-id' value='`$tmp.aai.vpn-bindingG.customer-vpn-id`' />\n<parameter name='src-ttp-id' value='`$tmp.aai.vpn-bindingG.src-access-ltp-id`' />\n<parameter name='dst-ttp-id' value='`$tmp.aai.vpn-bindingG.dst-access-ltp-id`' />\n<parameter name='slice-instance-id' value='`$tmp.aai.service-instance.service-instance-id`' />\n<parameter name='otn-tunnel-name-domainG' value='`$tmp.aai.vpn-bindingG.vpn-name`' />\n<parameter name='client-id' value='`$tmp.aai.vpn-bindingG.access-client-id`' />\n<parameter name='provider-id' value='`$tmp.aai.vpn-bindingG.access-provider-id`' />\n<parameter name='topology-id' value='`$tmp.aai.vpn-bindingG.access-topology-id`' />\n",
+ "comments": "",
+ "x": 4319.75,
+ "y": 953.75,
+ "z": "30d84baa.6f57bc",
+ "wires": []
+ },
+ {
+ "id": "dd94b2c2.353ff8",
+ "type": "execute",
+ "name": "execute RestApiCallNode Create OTN tunnel with token",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"templateFileName\" value=\"`$prop.restapi.templateDir + '/' + $prop.restapi.ts-otn-domainG-creation.templatefile`\" />\n<parameter name=\"restapiUrl\" value=\"`$prop.sdncRestApi.thirdpartySdnc.domainG.url + '/restconf/data/ietf-te:te'`\" />\n<parameter name=\"restapiUser\" value=\"`$prop.sdncRestApi.thirdpartySdnc.domainG.user`\" />\n<parameter name=\"restapiPassword\" value=\"`$prop.sdncRestApi.thirdpartySdnc.domainG.password`\" />\n<parameter name=\"format\" value=\"json\"/>\n<parameter name=\"httpMethod\" value=\"patch\"/>\n<parameter name=\"responsePrefix\" value=\"otn-oof\"/>\n<parameter name=\"trustStoreFileName\" value=\"/opt/onap/sdnc/data/stores/truststore.onap.client.jks\"/>\n<parameter name=\"trustStorePassword\" value=\"adminadmin\"/>\n<parameter name=\"keyStoreFileName\" value=\"/opt/onap/sdnc/data/stores/sdnc.p12\"/>\n<parameter name=\"keyStorePassword\" value=\"adminadmin\"/>\n<parameter name='customHttpHeaders' value=\"`'X-ACCESS-TOKEN=' + $prop.sdncRestApi.token_id`\" />",
+ "comments": "",
+ "outputs": 1,
+ "x": 4400.75,
+ "y": 1268.75,
+ "z": "30d84baa.6f57bc",
+ "wires": [
+ [
+ "d78a59cb.d6e7a",
+ "667608aa.9739d"
+ ]
+ ]
+ },
+ {
+ "id": "d78a59cb.d6e7a",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 4710.25,
+ "y": 1237.75,
+ "z": "30d84baa.6f57bc",
+ "wires": [
+ [
+ "790b52bf.2108ec"
+ ]
+ ]
+ },
+ {
+ "id": "667608aa.9739d",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 4715.25,
+ "y": 1302.75,
+ "z": "30d84baa.6f57bc",
+ "wires": [
+ [
+ "5fb9f65f.6d5da"
+ ]
+ ]
+ },
+ {
+ "id": "790b52bf.2108ec",
+ "type": "returnFailure",
+ "name": "return failure",
+ "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n <parameter name=\"error-message\" value=\"Error executing Create OTN tunnel rest api\" />\n",
+ "comments": "",
+ "x": 4886.25,
+ "y": 1237.75,
+ "z": "30d84baa.6f57bc",
+ "wires": []
+ },
+ {
+ "id": "5fb9f65f.6d5da",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 4881.75,
+ "y": 1302.75,
+ "z": "30d84baa.6f57bc",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "44e0a0bb.d00d2",
+ "type": "set",
+ "name": "set pnf-name",
+ "xml": "<set>\n<parameter name='tmp.domainG.pnf-name' value=\"`'networkId-providerId-' +\n $tmp.aai.vpn-bindingG.access-provider-id + '-clientId-' +\n $tmp.aai.vpn-bindingG.access-client-id + '-topologyId-' +\n $tmp.aai.vpn-bindingG.access-topology-id + '-nodeId-' +\n $tmp.aai.vpn-bindingG.src-access-node-id`\" />\n",
+ "comments": "",
+ "x": 4257.75,
+ "y": 1001.75,
+ "z": "30d84baa.6f57bc",
+ "wires": []
+ },
+ {
+ "id": "17d8e4eb.b52ccb",
+ "type": "get-resource",
+ "name": "get-resource src pnf",
+ "xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\t\tresource=\"pnf\" \n\t\tkey=\"pnf.pnf-name = $tmp.domainG.pnf-name\"\n pfx='tmp.aai.domainG-pnf' local-only='false' >\n\n <!--AND depth = '0'\"-->\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 4283.75,
+ "y": 1118.75,
+ "z": "30d84baa.6f57bc",
+ "wires": [
+ [
+ "a8ae3ef3.33406",
+ "fcb06d11.9b839",
+ "1567721b.17fbc6"
+ ]
+ ]
+ },
+ {
+ "id": "a8ae3ef3.33406",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 4479.2501220703125,
+ "y": 1070.75,
+ "z": "30d84baa.6f57bc",
+ "wires": [
+ [
+ "dc6575fd.da6538"
+ ]
+ ]
+ },
+ {
+ "id": "fcb06d11.9b839",
+ "type": "not-found",
+ "name": "not-found",
+ "xml": "<outcome value='not-found'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 4471.2501220703125,
+ "y": 1125.75,
+ "z": "30d84baa.6f57bc",
+ "wires": [
+ [
+ "9508c711.df3318"
+ ]
+ ]
+ },
+ {
+ "id": "dc6575fd.da6538",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 4623.6324462890625,
+ "y": 1070.4056701660156,
+ "z": "30d84baa.6f57bc",
+ "wires": [
+ [
+ "5887f01d.382f28"
+ ]
+ ]
+ },
+ {
+ "id": "5887f01d.382f28",
+ "type": "for",
+ "name": "for each relationship",
+ "xml": "<for silentFailure='true' index='spvidx' start='0' end='`$tmp.aai.domainG-pnf.relationship-list.relationship_length`' >\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 4807.75,
+ "y": 1068.75,
+ "z": "30d84baa.6f57bc",
+ "wires": [
+ [
+ "7c993206.50f554"
+ ]
+ ]
+ },
+ {
+ "id": "7c993206.50f554",
+ "type": "switchNode",
+ "name": "switch related-to",
+ "xml": "<switch test='`$tmp.aai.domainG-pnf.relationship-list.relationship[$spvidx].related-to`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 5002.75,
+ "y": 1068.75,
+ "z": "30d84baa.6f57bc",
+ "wires": [
+ [
+ "f4906a1c.c87a88"
+ ]
+ ]
+ },
+ {
+ "id": "1567721b.17fbc6",
+ "type": "other",
+ "name": "other",
+ "xml": "<outcome value='Other'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 4476.2501220703125,
+ "y": 1182.75,
+ "z": "30d84baa.6f57bc",
+ "wires": [
+ [
+ "9c97fc0c.fac84"
+ ]
+ ]
+ },
+ {
+ "id": "9c97fc0c.fac84",
+ "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": 4628.2501220703125,
+ "y": 1183.75,
+ "z": "30d84baa.6f57bc",
+ "wires": []
+ },
+ {
+ "id": "9508c711.df3318",
+ "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": 4639.2501220703125,
+ "y": 1126.75,
+ "z": "30d84baa.6f57bc",
+ "wires": []
+ },
+ {
+ "id": "250c851.82c85fa",
+ "type": "set",
+ "name": "set vpn-bindingG and connectivityG",
+ "xml": "<set>\n<parameter name='tmp.aai.vpn-bindingG.' value=\"`$tmp.aai.vpn-binding.`\" />\n<parameter name='tmp.aai.connectivityG.' value=\"`$tmp.aai.connectivity.`\" />\n",
+ "comments": "",
+ "x": 4314.75,
+ "y": 893.75,
+ "z": "30d84baa.6f57bc",
+ "wires": []
+ },
+ {
+ "id": "f4906a1c.c87a88",
+ "type": "outcome",
+ "name": "esr-thirdparty-sdnc",
+ "xml": "<outcome value='esr-thirdparty-sdnc'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 5205.75,
+ "y": 1072.75,
+ "z": "30d84baa.6f57bc",
+ "wires": [
+ [
+ "f2ceb67e.1c0c"
+ ]
+ ]
+ },
+ {
+ "id": "d6942a62.437338",
+ "type": "execute",
+ "name": "get esr-thirdparty-sdnc",
+ "xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\t\tresource=\"esr-thirdparty-sdnc\" \n\t\tkey=\"esr-thirdparty-sdnc.thirdparty-sdnc-id = $tmp.domainG.esr-thirdparty-id AND \n\t\t depth = '1'\"\n pfx='tmp.aai.domainG.esr-thirdparty-sdnc' local-only='false' >",
+ "comments": "",
+ "outputs": 1,
+ "x": 5590.75,
+ "y": 1085.75,
+ "z": "30d84baa.6f57bc",
+ "wires": [
+ [
+ "2bfb5437.ab1884",
+ "14e65a71.083eb6",
+ "1ec347c1.300068"
+ ]
+ ]
+ },
+ {
+ "id": "f2ceb67e.1c0c",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "outputs": 1,
+ "x": 5384.75,
+ "y": 1072.75,
+ "z": "30d84baa.6f57bc",
+ "wires": [
+ [
+ "e257c8b7.b2bd68",
+ "d6942a62.437338"
+ ]
+ ]
+ },
+ {
+ "id": "e257c8b7.b2bd68",
+ "type": "set",
+ "name": "set esr-thirdparty-sdnc domainG id",
+ "xml": "<set>\n<parameter name='tmp.domainG.esr-thirdparty-id' value=\"`$tmp.aai.domainG-pnf.relationship-list.relationship[$spvidx].relationship-data[0].relationship-value`\" />\n",
+ "comments": "",
+ "x": 5620.75,
+ "y": 1033.75,
+ "z": "30d84baa.6f57bc",
+ "wires": []
+ },
+ {
+ "id": "2bfb5437.ab1884",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 5800.75,
+ "y": 1076.75,
+ "z": "30d84baa.6f57bc",
+ "wires": [
+ [
+ "c27aaf5c.aef2b8"
+ ]
+ ]
+ },
+ {
+ "id": "14e65a71.083eb6",
+ "type": "not-found",
+ "name": "not-found",
+ "xml": "<outcome value='not-found'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 5792.75,
+ "y": 1131.75,
+ "z": "30d84baa.6f57bc",
+ "wires": [
+ [
+ "d07e83df.f79d38"
+ ]
+ ]
+ },
+ {
+ "id": "1ec347c1.300068",
+ "type": "other",
+ "name": "other",
+ "xml": "<outcome value='Other'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 5797.75,
+ "y": 1188.75,
+ "z": "30d84baa.6f57bc",
+ "wires": [
+ [
+ "d1674575.d6f7d8"
+ ]
+ ]
+ },
+ {
+ "id": "d1674575.d6f7d8",
+ "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": 5949.75,
+ "y": 1189.75,
+ "z": "30d84baa.6f57bc",
+ "wires": []
+ },
+ {
+ "id": "d07e83df.f79d38",
+ "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": 5960.75,
+ "y": 1134.75,
+ "z": "30d84baa.6f57bc",
+ "wires": []
+ },
+ {
+ "id": "c27aaf5c.aef2b8",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 5945.13232421875,
+ "y": 1074.4056701660156,
+ "z": "30d84baa.6f57bc",
+ "wires": [
+ [
+ "1298a74.3cdd059"
+ ]
+ ]
+ },
+ {
+ "id": "1298a74.3cdd059",
+ "type": "set",
+ "name": "set controller domainG data",
+ "xml": "<set>\n<parameter name='prop.sdncRestApi.thirdpartySdnc.domainG.url' value=\"`$tmp.aai.domainG.esr-thirdparty-sdnc.esr-system-info-list.esr-system-info[0].service-url`\" />\n<parameter name='prop.sdncRestApi.thirdpartySdnc.domainG.user' value=\"`$tmp.aai.domainG.esr-thirdparty-sdnc.esr-system-info-list.esr-system-info[0].user-name`\" />\n<parameter name='prop.sdncRestApi.thirdpartySdnc.domainG.password' value=\"`$tmp.aai.domainG.esr-thirdparty-sdnc.esr-system-info-list.esr-system-info[0].password`\" />\n\n\n<!--<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >-->\n<!--<parameter name=\"restapiUrl\" value=\"`$prop.sdncRestApi.thirdpartySdnc.url + '/restconf/data/ietf-network:networks'`\" />-->\n<!--<parameter name=\"restapiUser\" value=\"`$prop.sdncRestApi.thirdpartySdnc.user`\" />-->\n<!--<parameter name=\"restapiPassword\" value=\"`$prop.sdncRestApi.thirdpartySdnc.password`\" />-->\n<!--<parameter name=\"format\" value=\"json\"/>-->\n<!--<parameter name=\"httpMethod\" value=\"get\"/>-->\n<!--<parameter name=\"responsePrefix\" value=\"topology\"/>-->\n<!--<parameter name=\"trustStoreFileName\" value=\"/opt/onap/sdnc/data/stores/truststore.onap.client.jks\"/>-->\n<!--<parameter name=\"trustStorePassword\" value=\"adminadmin\"/>-->\n<!--<parameter name=\"keyStoreFileName\" value=\"/opt/onap/sdnc/data/stores/sdnc.p12\"/>-->\n<!--<parameter name=\"keyStorePassword\" value=\"adminadmin\"/>-->\n",
+ "comments": "",
+ "x": 6159.75,
+ "y": 1070.75,
+ "z": "30d84baa.6f57bc",
+ "wires": []
+ },
+ {
+ "id": "8ad3b61d.5ba128",
+ "type": "comment",
+ "name": "both src and dst exist",
+ "info": "",
+ "comments": "",
+ "x": 3933.75,
+ "y": 1011.75,
+ "z": "30d84baa.6f57bc",
+ "wires": []
+ },
+ {
+ "id": "52401003.e54ba8",
+ "type": "switchNode",
+ "name": "switch vpn-binding is not already Activated (i.e. is either Created or Modified)",
+ "xml": "<switch test=\"`$tmp.aai.vpn-binding.operational-status != 'Activated' `\">\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2495.75,
+ "y": 738.75,
+ "z": "30d84baa.6f57bc",
+ "wires": [
+ [
+ "84b154c7.dcfaf",
+ "d81b7512.e15008"
+ ]
+ ]
+ },
+ {
+ "id": "d81b7512.e15008",
+ "type": "outcomeFalse",
+ "name": "false",
+ "xml": "<outcome value='false'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2902.75,
+ "y": 756.75,
+ "z": "30d84baa.6f57bc",
+ "wires": [
+ [
+ "cf7d3373.5ca978"
+ ]
+ ]
+ },
+ {
+ "id": "84b154c7.dcfaf",
+ "type": "outcomeTrue",
+ "name": "true",
+ "xml": "<outcome value='true'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2902.75,
+ "y": 701.75,
+ "z": "30d84baa.6f57bc",
+ "wires": [
+ [
+ "37e2ea9b.dd967e"
+ ]
+ ]
+ },
+ {
+ "id": "37e2ea9b.dd967e",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "outputs": 1,
+ "x": 3058.75,
+ "y": 699.75,
+ "z": "30d84baa.6f57bc",
+ "wires": [
+ [
+ "d6d9459c.52e34",
+ "ae8dd7ac.9cc1d"
+ ]
+ ]
+ },
+ {
+ "id": "cf7d3373.5ca978",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 3035.75,
+ "y": 757.75,
+ "z": "30d84baa.6f57bc",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "677bc6cc.c2278",
+ "type": "save",
+ "name": "update service-instance resource in AAI",
+ "xml": "<update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='service-instance' \n key='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<parameter name='service-instance-id' value='`$tmp.aai.service-instance.service-instance-id`' />\n<parameter name='orchestration-status' value='Activated' />\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 5298.5,
+ "y": 810.25,
+ "z": "30d84baa.6f57bc",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "d67d1410.76b2b8",
+ "type": "save",
+ "name": "update service-instance resource in AAI",
+ "xml": "<update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='service-instance' \n key='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<parameter name='service-instance-id' value='`$tmp.aai.service-instance.service-instance-id`' />\n<parameter name='orchestration-status' value='Activated' />\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 4710.25,
+ "y": 2278,
+ "z": "30d84baa.6f57bc",
+ "wires": [
+ []
+ ]
+ }
+] \ No newline at end of file
diff --git a/platform-logic/generic-resource-api/src/main/json/p2p_eline/GENERIC-RESOURCE-API_p2p-vnf-topology-operation-p2p-create.json b/platform-logic/generic-resource-api/src/main/json/p2p_eline/GENERIC-RESOURCE-API_p2p-vnf-topology-operation-p2p-create.json
new file mode 100644
index 00000000..d08dd5a7
--- /dev/null
+++ b/platform-logic/generic-resource-api/src/main/json/p2p_eline/GENERIC-RESOURCE-API_p2p-vnf-topology-operation-p2p-create.json
@@ -0,0 +1,5170 @@
+[
+ {
+ "id": "63d6efcd.91928",
+ "type": "dgstart",
+ "name": "DGSTART",
+ "outputs": 1,
+ "x": 117.75,
+ "y": 202.75,
+ "z": "265dc029.a18eb8",
+ "wires": [
+ [
+ "52717356.ffbb94"
+ ]
+ ]
+ },
+ {
+ "id": "52717356.ffbb94",
+ "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": 402.0356903076172,
+ "y": 263.98810863494873,
+ "z": "265dc029.a18eb8",
+ "wires": [
+ [
+ "84b7b306.9f6af8"
+ ]
+ ]
+ },
+ {
+ "id": "84b7b306.9f6af8",
+ "type": "method",
+ "name": "method p2p-vnf-topology-operation-p2p-create",
+ "xml": "<method rpc='p2p-vnf-topology-operation-p2p-create' mode='sync'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 408.17860412597656,
+ "y": 348.7500305175781,
+ "z": "265dc029.a18eb8",
+ "wires": [
+ [
+ "7e2299c2.fed878"
+ ]
+ ]
+ },
+ {
+ "id": "7e2299c2.fed878",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "outputs": 1,
+ "x": 777.988037109375,
+ "y": 373.41668701171875,
+ "z": "265dc029.a18eb8",
+ "wires": [
+ [
+ "78c59c4d.b8fa2c",
+ "dabba24a.9b138",
+ "8be878cc.82db9"
+ ]
+ ]
+ },
+ {
+ "id": "78c59c4d.b8fa2c",
+ "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": 1079.321533203125,
+ "y": 644.3469848632812,
+ "z": "265dc029.a18eb8",
+ "wires": []
+ },
+ {
+ "id": "dabba24a.9b138",
+ "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[$vnf-index].vnf-data.service-information.service-instance-id-->\n<!-- AND customer.global-customer-id = $service-data.vnfs.vnf[$vnf-index].vnf-data.service-information.global-customer-id -->\n<!-- AND service-subscription.service-type = $service-data.vnfs.vnf[$vnf-index].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<!--<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" -->\n<!--\tresource=\"service-instance\"-->\n<!--\tkey='service-instance.service-instance-id = $service-data.service-information.service-instance-id-->\n<!-- AND customer.global-customer-id = $service-data.vnfs.vnf[$vnf-index].vnf-data.service-information.global-customer-id -->\n<!-- AND service-subscription.service-type = $service-data.vnfs.vnf[$vnf-index].vnf-data.service-information.subscription-service-type'-->\n<!--\tlocal-only=\"false\"-->\n<!--\tforce=\"true\" pfx=\"tmp.aai.service-instance\">-->",
+ "comments": "",
+ "outputs": 1,
+ "x": 1100.75,
+ "y": 346.75,
+ "z": "265dc029.a18eb8",
+ "wires": [
+ [
+ "bb092529.d25fb8",
+ "4416c12c.f02068",
+ "148b7d66.64da3b"
+ ]
+ ]
+ },
+ {
+ "id": "bb092529.d25fb8",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1325.75,
+ "y": 204.75,
+ "z": "265dc029.a18eb8",
+ "wires": [
+ [
+ "3a48b7db.b6fde8"
+ ]
+ ]
+ },
+ {
+ "id": "4416c12c.f02068",
+ "type": "not-found",
+ "name": "not-found",
+ "xml": "<outcome value='not-found'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1321.240966796875,
+ "y": 274.32403564453125,
+ "z": "265dc029.a18eb8",
+ "wires": [
+ [
+ "f3e87723.d8879"
+ ]
+ ]
+ },
+ {
+ "id": "148b7d66.64da3b",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1309.75,
+ "y": 320.75,
+ "z": "265dc029.a18eb8",
+ "wires": [
+ [
+ "e5cc88dc.b07a2"
+ ]
+ ]
+ },
+ {
+ "id": "3a48b7db.b6fde8",
+ "type": "switchNode",
+ "name": "switch allotted-resources_length != 0",
+ "xml": "<switch test='`$tmp.aai.service-instance.allotted-resources.allotted-resource_length != 0`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1564.75,
+ "y": 201.75,
+ "z": "265dc029.a18eb8",
+ "wires": [
+ [
+ "604cb7eb.7b1a68",
+ "ce2646b2.7561a"
+ ]
+ ]
+ },
+ {
+ "id": "f3e87723.d8879",
+ "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": 1474.8123779296875,
+ "y": 277.6097717285156,
+ "z": "265dc029.a18eb8",
+ "wires": []
+ },
+ {
+ "id": "e5cc88dc.b07a2",
+ "type": "returnFailure",
+ "name": "return failure",
+ "xml": "<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value='' />\n",
+ "comments": "",
+ "x": 1478.75,
+ "y": 321.75,
+ "z": "265dc029.a18eb8",
+ "wires": []
+ },
+ {
+ "id": "604cb7eb.7b1a68",
+ "type": "outcomeTrue",
+ "name": "true",
+ "xml": "<outcome value='true'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1777.75,
+ "y": 225.75,
+ "z": "265dc029.a18eb8",
+ "wires": [
+ [
+ "b4021335.1e3ac"
+ ]
+ ]
+ },
+ {
+ "id": "ce2646b2.7561a",
+ "type": "outcomeFalse",
+ "name": "false",
+ "xml": "<outcome value='false'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1779.75,
+ "y": 165.75,
+ "z": "265dc029.a18eb8",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "5b1f2cfd.e132ac",
+ "type": "comment",
+ "name": "new for TransportSlicing",
+ "info": "",
+ "comments": "",
+ "x": 1079.75,
+ "y": 234.75,
+ "z": "265dc029.a18eb8",
+ "wires": []
+ },
+ {
+ "id": "b4021335.1e3ac",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 1762.75,
+ "y": 313.75,
+ "z": "265dc029.a18eb8",
+ "wires": [
+ [
+ "e47816c1.46d19",
+ "bf3fdeb7.6e1648",
+ "b761fd8.2b6b08",
+ "50d31847.5f509",
+ "9bdaad5a.e56e08"
+ ]
+ ]
+ },
+ {
+ "id": "d40580c2.e45d78",
+ "type": "set",
+ "name": "set network-route-A",
+ "xml": "<set>\n<parameter name='network-route-A' value=\"`$tmp.aai.logical-link.link-name`\" />\n<!--<parameter name='network-route-A' value=\"`$tmp.aai.logical-link.link-id`\" />-->\n\n\n",
+ "comments": "",
+ "x": 2625.75,
+ "y": 913.75,
+ "z": "265dc029.a18eb8",
+ "wires": []
+ },
+ {
+ "id": "b659bcf9.848a1",
+ "type": "set",
+ "name": "set network-route-B",
+ "xml": "<set>\n<parameter name='network-route-B' value=\"`$tmp.aai.logical-link.link-name2`\" />\n\n\n",
+ "comments": "",
+ "x": 2626.75,
+ "y": 968.75,
+ "z": "265dc029.a18eb8",
+ "wires": []
+ },
+ {
+ "id": "2fd2492.76d5db6",
+ "type": "save",
+ "name": "get allotted-resource from aai",
+ "xml": "<!--<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" -->\n<!--\tresource=\"allotted-resource\"-->\n<!--\tkey='service-instance.service-instance-id = $service-data.vnfs.vnf[$vnf-index].vnf-data.service-information.service-instance-id-->\n<!-- AND customer.global-customer-id = $service-data.vnfs.vnf[$vnf-index].vnf-data.service-information.global-customer-id -->\n<!-- AND service-subscription.service-type = $service-data.vnfs.vnf[$vnf-index].vnf-data.service-information.subscription-service-type-->\n<!-- AND allotted-resource.id = $allotted-resource-id'-->\n<!--\tlocal-only=\"false\"-->\n<!--\tforce=\"true\" pfx=\"tmp.aai.allotted-resource\">-->\n\n<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\tresource=\"allotted-resource\"\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 AND allotted-resource.id = $allotted-resource-id'\n\tlocal-only=\"false\"\n\tforce=\"true\" pfx=\"tmp.aai.allotted-resource\">\n\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2248.75,
+ "y": 364.75,
+ "z": "265dc029.a18eb8",
+ "wires": [
+ [
+ "c9dda2b1.43ab8",
+ "ef111932.8f23",
+ "cbe8fd1f.6baa2"
+ ]
+ ]
+ },
+ {
+ "id": "c9dda2b1.43ab8",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2464.75,
+ "y": 431.75,
+ "z": "265dc029.a18eb8",
+ "wires": [
+ [
+ "17fe2d2.f198953"
+ ]
+ ]
+ },
+ {
+ "id": "ef111932.8f23",
+ "type": "not-found",
+ "name": "not-found",
+ "xml": "<outcome value='not-found'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2465.240966796875,
+ "y": 331.323974609375,
+ "z": "265dc029.a18eb8",
+ "wires": [
+ [
+ "87a60ba4.535a68"
+ ]
+ ]
+ },
+ {
+ "id": "cbe8fd1f.6baa2",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2460.75,
+ "y": 380.75,
+ "z": "265dc029.a18eb8",
+ "wires": [
+ [
+ "22e5c805.c55278"
+ ]
+ ]
+ },
+ {
+ "id": "87a60ba4.535a68",
+ "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": 2642.8125,
+ "y": 331.6097412109375,
+ "z": "265dc029.a18eb8",
+ "wires": []
+ },
+ {
+ "id": "22e5c805.c55278",
+ "type": "returnFailure",
+ "name": "return failure",
+ "xml": "<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value='' />\n",
+ "comments": "",
+ "x": 2642.75,
+ "y": 380.75,
+ "z": "265dc029.a18eb8",
+ "wires": []
+ },
+ {
+ "id": "caff6575.521c18",
+ "type": "save",
+ "name": "get logical-link from aai",
+ "xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\tresource=\"logical-link\"\n\tkey='logical-link.link-name = $logical-link-name'\n\tlocal-only=\"false\"\n\tforce=\"true\" pfx=\"tmp.aai.logical-link\">",
+ "comments": "",
+ "outputs": 1,
+ "x": 1983.75,
+ "y": 853.75,
+ "z": "265dc029.a18eb8",
+ "wires": [
+ [
+ "b6506162.cc4e28",
+ "aa283f4f.6ff15",
+ "4fc62792.1d1aa"
+ ]
+ ]
+ },
+ {
+ "id": "b6506162.cc4e28",
+ "type": "not-found",
+ "name": "not-found",
+ "xml": "<outcome value='not-found'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2275.240966796875,
+ "y": 832.323974609375,
+ "z": "265dc029.a18eb8",
+ "wires": [
+ [
+ "854cdcdd.af5178"
+ ]
+ ]
+ },
+ {
+ "id": "aa283f4f.6ff15",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2263.75,
+ "y": 876.75,
+ "z": "265dc029.a18eb8",
+ "wires": [
+ [
+ "4317fabe.8b662c"
+ ]
+ ]
+ },
+ {
+ "id": "854cdcdd.af5178",
+ "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": 2423.8125,
+ "y": 832.6097412109375,
+ "z": "265dc029.a18eb8",
+ "wires": []
+ },
+ {
+ "id": "4317fabe.8b662c",
+ "type": "returnFailure",
+ "name": "return failure",
+ "xml": "<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value='' />\n",
+ "comments": "",
+ "x": 2422.75,
+ "y": 876.75,
+ "z": "265dc029.a18eb8",
+ "wires": []
+ },
+ {
+ "id": "4fc62792.1d1aa",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2270.75,
+ "y": 955.75,
+ "z": "265dc029.a18eb8",
+ "wires": [
+ [
+ "ab7c1440.9f704"
+ ]
+ ]
+ },
+ {
+ "id": "ab7c1440.9f704",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 2409.75,
+ "y": 955.75,
+ "z": "265dc029.a18eb8",
+ "wires": [
+ [
+ "d40580c2.e45d78",
+ "b659bcf9.848a1",
+ "a136fb28.0b527",
+ "1648afc0.52dbc8",
+ "b920e24f.94b628",
+ "558b33bb.a28914",
+ "14b3fe.dfa6ec02",
+ "cd49f082.fc7e6",
+ "ccca18a2.ea7ad8",
+ "348e2352.849ddc",
+ "631d9619.9d9ee",
+ "c3b37174.45567"
+ ]
+ ]
+ },
+ {
+ "id": "a136fb28.0b527",
+ "type": "save",
+ "name": "get network-route-A from aai",
+ "xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\tresource=\"network-route\"\n\tkey='network-route.route-id = $network-route-A'\n\tlocal-only=\"false\"\n\tforce=\"true\" pfx=\"tmp.aai.network-route-A\">",
+ "comments": "",
+ "outputs": 1,
+ "x": 2638.75,
+ "y": 1036.75,
+ "z": "265dc029.a18eb8",
+ "wires": [
+ [
+ "1145371f.91a831",
+ "5a2e1129.154e8",
+ "b9792c95.c6cf1"
+ ]
+ ]
+ },
+ {
+ "id": "1648afc0.52dbc8",
+ "type": "save",
+ "name": "get network-route-B from aai",
+ "xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\tresource=\"network-route\"\n\tkey='network-route.route-id = $network-route-B'\n\tlocal-only=\"false\"\n\tforce=\"true\" pfx=\"tmp.aai.network-route-B\">",
+ "comments": "",
+ "outputs": 1,
+ "x": 2617.75,
+ "y": 1638.7498779296875,
+ "z": "265dc029.a18eb8",
+ "wires": [
+ [
+ "2e980743.252ac8",
+ "1e789473.1cf9ec",
+ "90160a99.2f8a58"
+ ]
+ ]
+ },
+ {
+ "id": "1145371f.91a831",
+ "type": "not-found",
+ "name": "not-found",
+ "xml": "<outcome value='not-found'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2839.75,
+ "y": 920.75,
+ "z": "265dc029.a18eb8",
+ "wires": [
+ [
+ "3ed8df93.4273e"
+ ]
+ ]
+ },
+ {
+ "id": "5a2e1129.154e8",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2835.259033203125,
+ "y": 970.176025390625,
+ "z": "265dc029.a18eb8",
+ "wires": [
+ [
+ "33754642.9ad63a"
+ ]
+ ]
+ },
+ {
+ "id": "b9792c95.c6cf1",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2839.259033203125,
+ "y": 1021.176025390625,
+ "z": "265dc029.a18eb8",
+ "wires": [
+ [
+ "64d30532.9bdba4"
+ ]
+ ]
+ },
+ {
+ "id": "3ed8df93.4273e",
+ "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": 2988.321533203125,
+ "y": 920.0357666015625,
+ "z": "265dc029.a18eb8",
+ "wires": []
+ },
+ {
+ "id": "33754642.9ad63a",
+ "type": "returnFailure",
+ "name": "return failure",
+ "xml": "<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value='' />\n",
+ "comments": "",
+ "x": 2978.259033203125,
+ "y": 970.176025390625,
+ "z": "265dc029.a18eb8",
+ "wires": []
+ },
+ {
+ "id": "2e980743.252ac8",
+ "type": "not-found",
+ "name": "not-found",
+ "xml": "<outcome value='not-found'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2840.75,
+ "y": 1608.7498779296875,
+ "z": "265dc029.a18eb8",
+ "wires": [
+ [
+ "9b0a176a.3fd41"
+ ]
+ ]
+ },
+ {
+ "id": "1e789473.1cf9ec",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2836.259033203125,
+ "y": 1658.1759033203125,
+ "z": "265dc029.a18eb8",
+ "wires": [
+ [
+ "b94ccd2f.84b8b8"
+ ]
+ ]
+ },
+ {
+ "id": "90160a99.2f8a58",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2840.259033203125,
+ "y": 1709.1759033203125,
+ "z": "265dc029.a18eb8",
+ "wires": [
+ [
+ "8f6fd298.ecc1e8"
+ ]
+ ]
+ },
+ {
+ "id": "9b0a176a.3fd41",
+ "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": 2989.321533203125,
+ "y": 1608.03564453125,
+ "z": "265dc029.a18eb8",
+ "wires": []
+ },
+ {
+ "id": "b94ccd2f.84b8b8",
+ "type": "returnFailure",
+ "name": "return failure",
+ "xml": "<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value='' />\n",
+ "comments": "",
+ "x": 2979.259033203125,
+ "y": 1658.1759033203125,
+ "z": "265dc029.a18eb8",
+ "wires": []
+ },
+ {
+ "id": "da7f1dce.5cb46",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "outputs": 1,
+ "x": 3653.41650390625,
+ "y": 1064.75,
+ "z": "265dc029.a18eb8",
+ "wires": [
+ [
+ "826c0f72.a70018",
+ "36f8f99c.c030b6",
+ "57c1cc0d.dcb6ac",
+ "9cbc6da7.b032e",
+ "992f0b42.313448"
+ ]
+ ]
+ },
+ {
+ "id": "b7d2e547.bd45e8",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 3480.75,
+ "y": 1065.75,
+ "z": "265dc029.a18eb8",
+ "wires": [
+ [
+ "da7f1dce.5cb46"
+ ]
+ ]
+ },
+ {
+ "id": "647aea0c.904444",
+ "type": "not-found",
+ "name": "not-found",
+ "xml": "<outcome value='not-found'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 3490.240966796875,
+ "y": 1108.3240356445312,
+ "z": "265dc029.a18eb8",
+ "wires": [
+ [
+ "99f9ef28.22d7a"
+ ]
+ ]
+ },
+ {
+ "id": "1b3a301d.df26c",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 3478.75,
+ "y": 1154.75,
+ "z": "265dc029.a18eb8",
+ "wires": [
+ [
+ "6ff92d51.144e3c"
+ ]
+ ]
+ },
+ {
+ "id": "99f9ef28.22d7a",
+ "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": 3643.8123779296875,
+ "y": 1111.6097717285156,
+ "z": "265dc029.a18eb8",
+ "wires": []
+ },
+ {
+ "id": "6ff92d51.144e3c",
+ "type": "returnFailure",
+ "name": "return failure",
+ "xml": "<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value='' />\n",
+ "comments": "",
+ "x": 3647.75,
+ "y": 1155.75,
+ "z": "265dc029.a18eb8",
+ "wires": []
+ },
+ {
+ "id": "64d30532.9bdba4",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "outputs": 1,
+ "x": 3000.75,
+ "y": 1022.75,
+ "z": "265dc029.a18eb8",
+ "wires": [
+ [
+ "f7fe7886.c5f688",
+ "97630cf9.61551"
+ ]
+ ]
+ },
+ {
+ "id": "8f6fd298.ecc1e8",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "outputs": 1,
+ "x": 2990.75,
+ "y": 1710.7498779296875,
+ "z": "265dc029.a18eb8",
+ "wires": [
+ [
+ "d321b170.fefc18",
+ "ffb149d2.1a2f38"
+ ]
+ ]
+ },
+ {
+ "id": "821eddca.0e3588",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "outputs": 1,
+ "x": 3621.41650390625,
+ "y": 1900.75,
+ "z": "265dc029.a18eb8",
+ "wires": [
+ [
+ "e0128afe.007bf",
+ "2edd1a44.e4eb5e",
+ "af1082c8.2a9af",
+ "ebc710f0.247328",
+ "5282e7ba.b5ae6"
+ ]
+ ]
+ },
+ {
+ "id": "a826813e.688038",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 3448.75,
+ "y": 1901.75,
+ "z": "265dc029.a18eb8",
+ "wires": [
+ [
+ "821eddca.0e3588"
+ ]
+ ]
+ },
+ {
+ "id": "31b9c040.452a38",
+ "type": "not-found",
+ "name": "not-found",
+ "xml": "<outcome value='not-found'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 3458.240966796875,
+ "y": 1944.3240356445312,
+ "z": "265dc029.a18eb8",
+ "wires": [
+ [
+ "17be006a.5f45e"
+ ]
+ ]
+ },
+ {
+ "id": "28d3d57c.d8ea12",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 3446.75,
+ "y": 1990.75,
+ "z": "265dc029.a18eb8",
+ "wires": [
+ [
+ "2fae66b5.5bd00a"
+ ]
+ ]
+ },
+ {
+ "id": "17be006a.5f45e",
+ "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": 3611.8123779296875,
+ "y": 1947.6097717285156,
+ "z": "265dc029.a18eb8",
+ "wires": []
+ },
+ {
+ "id": "2fae66b5.5bd00a",
+ "type": "returnFailure",
+ "name": "return failure",
+ "xml": "<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value='' />\n",
+ "comments": "",
+ "x": 3615.75,
+ "y": 1991.75,
+ "z": "265dc029.a18eb8",
+ "wires": []
+ },
+ {
+ "id": "826c0f72.a70018",
+ "type": "execute",
+ "name": "execute split tp-id to get pnf-name",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='split' >\n<parameter name=\"original_string\" value='`$tmp.aai.network-route-A.p-interface-src.interface-name`'/>\n<!--<parameter name=\"regex\" value=\"[^-]+$\"/>-->\n<parameter name=\"regex\" value=\"[-]+\"/>\n<parameter name=\"ctx_memory_result_key\" value=\"param-prefix-domainA\"/>\n\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 3917.75,
+ "y": 1048.75,
+ "z": "265dc029.a18eb8",
+ "wires": [
+ [
+ "2cce3874.ab433",
+ "ee660e5a.b83a"
+ ]
+ ]
+ },
+ {
+ "id": "ee660e5a.b83a",
+ "type": "failure",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 4140.75,
+ "y": 1003.75,
+ "z": "265dc029.a18eb8",
+ "wires": [
+ [
+ "5270775.80a9288"
+ ]
+ ]
+ },
+ {
+ "id": "2cce3874.ab433",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 4142.75,
+ "y": 1067.75,
+ "z": "265dc029.a18eb8",
+ "wires": [
+ [
+ "838db3c8.831b8"
+ ]
+ ]
+ },
+ {
+ "id": "6ce9021f.48b204",
+ "type": "set",
+ "name": "set ltpId",
+ "xml": "<set>\n<parameter name='tmp.src.ltpId' value='`$param-prefix-domainA[$param-prefix-domainA_length -1]`' />\n",
+ "comments": "",
+ "x": 4475.75,
+ "y": 958.75,
+ "z": "265dc029.a18eb8",
+ "wires": []
+ },
+ {
+ "id": "838db3c8.831b8",
+ "type": "returnFailure",
+ "name": "return failure",
+ "xml": "<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value=\"An error occured while splitting sna1_route\" />\n",
+ "comments": "",
+ "x": 4304.75,
+ "y": 1063.75,
+ "z": "265dc029.a18eb8",
+ "wires": []
+ },
+ {
+ "id": "5270775.80a9288",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "outputs": 1,
+ "x": 4305.75,
+ "y": 1000.75,
+ "z": "265dc029.a18eb8",
+ "wires": [
+ [
+ "a369f63d.8d0208",
+ "6ce9021f.48b204"
+ ]
+ ]
+ },
+ {
+ "id": "a369f63d.8d0208",
+ "type": "set",
+ "name": "set pnf-name",
+ "xml": "<set>\n<parameter name='tmp.src.pnf-name' value='`$param-prefix-domainA[$param-prefix-domainA_length -3]`' />\n",
+ "comments": "",
+ "x": 4476.75,
+ "y": 1066.75,
+ "z": "265dc029.a18eb8",
+ "wires": []
+ },
+ {
+ "id": "dc0e098a.8d3498",
+ "type": "comment",
+ "name": "TODO: FIXME",
+ "info": "using the output of regex string arrays,\nconcatinate index 0 to index[length-2] all together\nin order to assemble the correct pnf-name",
+ "comments": "",
+ "x": 4477.75,
+ "y": 1015.75,
+ "z": "265dc029.a18eb8",
+ "wires": []
+ },
+ {
+ "id": "57c1cc0d.dcb6ac",
+ "type": "save",
+ "name": "save connectivity resource in AAI",
+ "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='connectivity' \n key='connectivity.connectivity-id = $uuid.connectivity-domainA-uuid'>\n<parameter name='connectivity-id' value='`$uuid.connectivity-domainA-uuid`' />\n<parameter name='etht-svc-name' value='`$prop.ethernet-service-name`' />\n<parameter name='operational-status' value='Created' />\n<parameter name='access-provider-id' value='`$param-prefix-domainA[$param-prefix-domainA_length -9]`' />\n<parameter name='access-client-id' value='`$param-prefix-domainA[$param-prefix-domainA_length -7]`' />\n<parameter name='access-topology-id' value='`$param-prefix-domainA[$param-prefix-domainA_length -5]`' />\n<parameter name='access-node-id' value='`$param-prefix-domainA[$param-prefix-domainA_length -3]`' />\n<parameter name='access-ltp-id' value='`$param-prefix-domainA[$param-prefix-domainA_length -1]`' />\n<parameter name='cvlan' value='`$tmp.aai.network-route-A.logical-interface-id`' />\n\n<parameter name='bandwidth-profile-name' value='`$gfp`' />\n<parameter name='vpn-type' value='`$prop.sotn.vpnType`' />\n<parameter name='cir' value='`$gfp *1000000`' />\n<parameter name='eir' value='`$gfp *1000000`' />\n<parameter name='cbs' value='`$prop.sotn.cbs`' />\n<parameter name='ebs' value='`$prop.sotn.ebs`' />\n<!--<parameter name='color-aware' value='`$prop.sotn.colorAware`' />-->\n<!--<parameter name='coupling-flag' value='`$prop.sotn.couplingFlag`' />-->\n<!--<parameter name='etht-svc-name' value='`$prop.sotn.etht-svc-name`' />-->\n<!--<parameter name='model-customization-id' value='`$network-topology-operation-input.network-information.onap-model-information.model-customization-uuid`' />-->\n<!--<parameter name='model-invariant-id' value='`$network-topology-operation-input.network-information.onap-model-information.model-invariant-uuid`' />-->\n<!--<parameter name='model-version-id' value='`$network-topology-operation-input.network-information.onap-model-information.model-uuid`' />-->\n<parameter name='connectivity-selflink' value=\"`'restconf/config/GENERIC-RESOURCE-API:services/service/' + $network-topology-operation-input.service-information.service-instance-id + '/service-data/networks/network/' + $prop.sotn.network-id + '/network-data/'` \" />\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 3919.75,
+ "y": 1207.75,
+ "z": "265dc029.a18eb8",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "36f8f99c.c030b6",
+ "type": "execute",
+ "name": "execute UUID generator for connectivity domainA",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='generateUUID' >\n<parameter name=\"ctx-destination\" value=\"uuid.connectivity-domainA-uuid\"/>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 3964.75,
+ "y": 1117.75,
+ "z": "265dc029.a18eb8",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "dbdce200.a0ebf",
+ "type": "comment",
+ "name": "TODO: FIXME",
+ "info": "using the output of regex string arrays,\nconcatinate index 0 to index[?] all together\nin order to assemble the correct values for provider-id, \ntopology-id, node-id, etc.",
+ "comments": "",
+ "x": 3853.75,
+ "y": 1158.75,
+ "z": "265dc029.a18eb8",
+ "wires": []
+ },
+ {
+ "id": "e0128afe.007bf",
+ "type": "execute",
+ "name": "execute split tp-id to get pnf-name",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='split' >\n<parameter name=\"original_string\" value='`$tmp.aai.network-route-B.p-interface-dst.interface-name`'/>\n<!--<parameter name=\"regex\" value=\"[^-]+$\"/>-->\n<parameter name=\"regex\" value=\"[-]+\"/>\n<parameter name=\"ctx_memory_result_key\" value=\"param-prefix-domainB\"/>\n\n\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 3907.75,
+ "y": 1904.7501220703125,
+ "z": "265dc029.a18eb8",
+ "wires": [
+ [
+ "a6039dc8.090cc",
+ "5bb0c93.9199ab8"
+ ]
+ ]
+ },
+ {
+ "id": "5bb0c93.9199ab8",
+ "type": "failure",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 4130.75,
+ "y": 1859.7501220703125,
+ "z": "265dc029.a18eb8",
+ "wires": [
+ [
+ "d06cbf2c.85f9c"
+ ]
+ ]
+ },
+ {
+ "id": "a6039dc8.090cc",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 4132.75,
+ "y": 1923.7501220703125,
+ "z": "265dc029.a18eb8",
+ "wires": [
+ [
+ "9ac2c145.9482"
+ ]
+ ]
+ },
+ {
+ "id": "5b53dee5.e8008",
+ "type": "set",
+ "name": "set ltpId",
+ "xml": "<set>\n<parameter name='tmp.dst.ltpId' value='`$param-prefix-domainB[$param-prefix-domainB_length -1]`' />\n",
+ "comments": "",
+ "x": 4465.75,
+ "y": 1817.7501220703125,
+ "z": "265dc029.a18eb8",
+ "wires": []
+ },
+ {
+ "id": "9ac2c145.9482",
+ "type": "returnFailure",
+ "name": "return failure",
+ "xml": "<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value=\"An error occured while splitting sna1_route\" />\n",
+ "comments": "",
+ "x": 4291.75,
+ "y": 1942.7501220703125,
+ "z": "265dc029.a18eb8",
+ "wires": []
+ },
+ {
+ "id": "d06cbf2c.85f9c",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "outputs": 1,
+ "x": 4295.75,
+ "y": 1856.7501220703125,
+ "z": "265dc029.a18eb8",
+ "wires": [
+ [
+ "5b53dee5.e8008",
+ "1365606a.f41bb8"
+ ]
+ ]
+ },
+ {
+ "id": "1365606a.f41bb8",
+ "type": "set",
+ "name": "set pnf-name",
+ "xml": "<set>\n<parameter name='tmp.dst.pnf-name' value='`$param-prefix-domainB[$param-prefix-domainB_length -3]`' />\n",
+ "comments": "",
+ "x": 4466.75,
+ "y": 1922.7501220703125,
+ "z": "265dc029.a18eb8",
+ "wires": []
+ },
+ {
+ "id": "d703d891.d4c1c",
+ "type": "comment",
+ "name": "TODO: FIXME",
+ "info": "using the output of regex string arrays,\nconcatinate index 0 to index[length-2] all together\nin order to assemble the correct pnf-name",
+ "comments": "",
+ "x": 4461.75,
+ "y": 1871.7501220703125,
+ "z": "265dc029.a18eb8",
+ "wires": []
+ },
+ {
+ "id": "af1082c8.2a9af",
+ "type": "save",
+ "name": "save connectivity resource in AAI",
+ "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='connectivity' \n key='connectivity.connectivity-id = $prop.connectivity-domainB-uuid'>\n<parameter name='connectivity-id' value='`$prop.connectivity-domainB-uuid`' />\n<parameter name='etht-svc-name' value='`$prop.ethernet-service-name`' />\n<parameter name='operational-status' value='Created' />\n<parameter name='access-provider-id' value='`$param-prefix-domainB[$param-prefix-domainB_length -9]`' />\n<parameter name='access-client-id' value='`$param-prefix-domainB[$param-prefix-domainB_length -7]`' />\n<parameter name='access-topology-id' value='`$param-prefix-domainB[$param-prefix-domainB_length -5]`' />\n<parameter name='access-node-id' value='`$param-prefix-domainB[$param-prefix-domainB_length -3]`' />\n<parameter name='access-ltp-id' value='`$param-prefix-domainB[$param-prefix-domainB_length -1]`' />\n<parameter name='cvlan' value='`$tmp.aai.network-route-B.logical-interface-id`' />\n\n\n<parameter name='bandwidth-profile-name' value='`$gfp`' />\n<parameter name='vpn-type' value='`$prop.sotn.vpnType`' />\n<parameter name='cir' value='`$gfp *1000000`' />\n<parameter name='eir' value='`$gfp *1000000`' />\n<parameter name='cbs' value='`$prop.sotn.cbs`' />\n<parameter name='ebs' value='`$prop.sotn.ebs`' />\n<!--<parameter name='color-aware' value='`$prop.sotn.colorAware`' />-->\n<!--<parameter name='coupling-flag' value='`$prop.sotn.couplingFlag`' />-->\n<!--<parameter name='etht-svc-name' value='`$prop.sotn.etht-svc-name`' />-->\n<!--<parameter name='model-customization-id' value='`$network-topology-operation-input.network-information.onap-model-information.model-customization-uuid`' />-->\n<!--<parameter name='model-invariant-id' value='`$network-topology-operation-input.network-information.onap-model-information.model-invariant-uuid`' />-->\n<!--<parameter name='model-version-id' value='`$network-topology-operation-input.network-information.onap-model-information.model-uuid`' />-->\n<parameter name='connectivity-selflink' value=\"`'restconf/config/GENERIC-RESOURCE-API:services/service/' + $network-topology-operation-input.service-information.service-instance-id + '/service-data/networks/network/' + $prop.sotn.network-id + '/network-data/'` \" />\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 3909.75,
+ "y": 2063.7501220703125,
+ "z": "265dc029.a18eb8",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "2edd1a44.e4eb5e",
+ "type": "execute",
+ "name": "execute UUID generator for connectivity domainB",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='generateUUID' >\n<parameter name=\"ctx-destination\" value=\"prop.connectivity-domainB-uuid\"/>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 3954.75,
+ "y": 1973.7501220703125,
+ "z": "265dc029.a18eb8",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "fc18d76a.4302d",
+ "type": "comment",
+ "name": "TODO: FIXME",
+ "info": "using the output of regex string arrays,\nconcatinate index 0 to index[?] all together\nin order to assemble the correct values for provider-id, \ntopology-id, node-id, etc.",
+ "comments": "",
+ "x": 3843.75,
+ "y": 2011.7501220703125,
+ "z": "265dc029.a18eb8",
+ "wires": []
+ },
+ {
+ "id": "b920e24f.94b628",
+ "type": "set",
+ "name": "set attachment_param",
+ "xml": "<set>\n<parameter name='prop.connection-attachment.access-provider-id' value='`$param-prefix-domainA[$param-prefix-domainA_length -9]`' />\n<parameter name='prop.connection-attachment.access-client-id' value='`$param-prefix-domainA[$param-prefix-domainA_length -7]`' />\n<parameter name='prop.connection-attachment.access-topology-id' value='`$param-prefix-domainA[$param-prefix-domainA_length -5]`' />\n<parameter name='prop.connection-attachment.access-node-id' value='`$param-prefix-domainA[$param-prefix-domainA_length -3]`' />\n<parameter name='prop.connection-attachment.access-ltp-id' value='`$param-prefix-domainA[$param-prefix-domainA_length -1]`' />\n\n<parameter name='prop.remote.connection-attachment.access-provider-id' value='`$param-prefix-domainB[$param-prefix-domainB_length -9]`' />\n<parameter name='prop.remote.connection-attachment.access-client-id' value='`$param-prefix-domainB[$param-prefix-domainB_length -7]`' />\n<parameter name='prop.remote.connection-attachment.access-topology-id' value='`$param-prefix-domainB[$param-prefix-domainB_length -5]`' />\n<parameter name='prop.remote.connection-attachment.access-node-id' value='`$param-prefix-domainB[$param-prefix-domainB_length -3]`' />\n<parameter name='prop.remote.connection-attachment.access-ltp-id' value='`$param-prefix-domainB[$param-prefix-domainB_length -1]`' />\n\n<!--<parameter name='prop.remote.connection-attachment.access-provider-id' value='`$oof.vpn.access-provider-id`' />-->\n<!--<parameter name='prop.remote.connection-attachment.access-client-id' value='`$oof.vpn.access-client-id`' />-->\n<!--<parameter name='prop.remote.connection-attachment.access-topology-id' value='`$oof.vpn.access-topology-id`' />-->\n<!--<parameter name='prop.remote.connection-attachment.access-node-id' value='`$oof.vpn.access-node-id`' />-->\n<!--<parameter name='prop.remote.connection-attachment.access-ltp-id' value='`$oof.vpn.src-access-ltp-id`' />-->\n",
+ "comments": "",
+ "x": 2653.75,
+ "y": 2123.7501220703125,
+ "z": "265dc029.a18eb8",
+ "wires": []
+ },
+ {
+ "id": "7dfe65de.953a14",
+ "type": "comment",
+ "name": "TODO: FIXME",
+ "info": "put proper values for src topology-id, node-id, ltp-id, etc (in domain A)\nand dst topology-id, node-id, ltp-id, etc (in domain B)",
+ "comments": "",
+ "x": 2619.75,
+ "y": 2057.7501220703125,
+ "z": "265dc029.a18eb8",
+ "wires": []
+ },
+ {
+ "id": "9cbc6da7.b032e",
+ "type": "save",
+ "name": "save TNNSSI (transport service instance) relationship to connectivity in AAI",
+ "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='service-instance:relationship-list' \n key='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 force=\"true\" pfx=\"tmp.AnAI-data\">\n<parameter name=\"relationship-list.relationship[0].related-to\" value=\"connectivity\" />\n<parameter name=\"relationship-list.relationship[0].related-link\" value=\"`'/network/connectivities/connectivity/' + $uuid.connectivity-domainA-uuid`\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-key\" value=\"connectivity.connectivity-id\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-value\" value=\"`$uuid.connectivity-domainA-uuid`\" />\n\n\n<!--<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='service-instance:relationship-list' -->\n<!-- key='service-instance.service-instance-id = $service-data.service-information.service-instance-id -->\n<!-- AND customer.global-customer-id = $service-data.networks.network[$nidx].network-data.service-information.global-customer-id -->\n<!-- AND service-subscription.service-type = $service-data.networks.network[$nidx].network-data.service-information.subscription-service-type' -->\n<!-- force=\"true\" pfx=\"tmp.AnAI-data\">-->\n<!--<parameter name=\"relationship-list.relationship[0].related-to\" value=\"connectivity\" />-->\n<!--<parameter name=\"relationship-list.relationship[0].related-link\" value=\"`'/network/connectivities/connectivity/' + $prop.sotn.network-id`\" />-->\n<!--<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-key\" value=\"connectivity.connectivity-id\" />-->\n<!--<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-value\" value=\"`$prop.sotn.network-id`\" />-->",
+ "comments": "",
+ "outputs": 1,
+ "x": 4047.75,
+ "y": 1255.75,
+ "z": "265dc029.a18eb8",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "ebc710f0.247328",
+ "type": "save",
+ "name": "save TNNSSI (transport service instance) relationship to connectivity in AAI",
+ "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='service-instance:relationship-list' \n key='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 force=\"true\" pfx=\"tmp.AnAI-data\">\n<parameter name=\"relationship-list.relationship[0].related-to\" value=\"connectivity\" />\n<parameter name=\"relationship-list.relationship[0].related-link\" value=\"`'/network/connectivities/connectivity/' + $prop.connectivity-domainB-uuid`\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-key\" value=\"connectivity.connectivity-id\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-value\" value=\"`$prop.connectivity-domainB-uuid`\" />\n\n\n<!--<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='service-instance:relationship-list' -->\n<!-- key='service-instance.service-instance-id = $service-data.service-information.service-instance-id -->\n<!-- AND customer.global-customer-id = $service-data.networks.network[$nidx].network-data.service-information.global-customer-id -->\n<!-- AND service-subscription.service-type = $service-data.networks.network[$nidx].network-data.service-information.subscription-service-type' -->\n<!-- force=\"true\" pfx=\"tmp.AnAI-data\">-->\n<!--<parameter name=\"relationship-list.relationship[0].related-to\" value=\"connectivity\" />-->\n<!--<parameter name=\"relationship-list.relationship[0].related-link\" value=\"`'/network/connectivities/connectivity/' + $prop.sotn.network-id`\" />-->\n<!--<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-key\" value=\"connectivity.connectivity-id\" />-->\n<!--<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-value\" value=\"`$prop.sotn.network-id`\" />-->",
+ "comments": "",
+ "outputs": 1,
+ "x": 4036.75,
+ "y": 2128.7501220703125,
+ "z": "265dc029.a18eb8",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "a4a52ebd.07da98",
+ "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": 5091.75,
+ "y": 775.75,
+ "z": "265dc029.a18eb8",
+ "wires": [
+ [
+ "147a8d1b.1ee80b",
+ "d765c1e1.9d8848",
+ "55e4f273.918784"
+ ]
+ ]
+ },
+ {
+ "id": "17fe2d2.f198953",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "outputs": 1,
+ "x": 2644.75,
+ "y": 431.75,
+ "z": "265dc029.a18eb8",
+ "wires": [
+ [
+ "92c83ff4.32672"
+ ]
+ ]
+ },
+ {
+ "id": "fa993007.6297d",
+ "type": "outcome",
+ "name": "logical-link",
+ "xml": "<outcome value='logical-link'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1574.7501220703125,
+ "y": 848.7501220703125,
+ "z": "265dc029.a18eb8",
+ "wires": [
+ [
+ "71dec788.b2b82"
+ ]
+ ]
+ },
+ {
+ "id": "9822d888.33539",
+ "type": "switchNode",
+ "name": "switch allotted-resource.relationship-list not empty",
+ "xml": "<switch test='`$tmp.aai.allotted-resource.relationship-list.relationship_length != 0`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2312.75,
+ "y": 554.75,
+ "z": "265dc029.a18eb8",
+ "wires": [
+ [
+ "bb40c414.d4fe5",
+ "986079fe.da93b"
+ ]
+ ]
+ },
+ {
+ "id": "986079fe.da93b",
+ "type": "outcomeFalse",
+ "name": "false",
+ "xml": "<outcome value='false'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2622.75,
+ "y": 561.75,
+ "z": "265dc029.a18eb8",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "bb40c414.d4fe5",
+ "type": "outcomeTrue",
+ "name": "true",
+ "xml": "<outcome value='true'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2621.75,
+ "y": 615.75,
+ "z": "265dc029.a18eb8",
+ "wires": [
+ [
+ "7898c9b3.45357"
+ ]
+ ]
+ },
+ {
+ "id": "256c12f1.36937e",
+ "type": "set",
+ "name": "set the current logical-link-name",
+ "xml": "<set>\n<parameter name='logical-link-name' value=\"`$tmp.aai.allotted-resource.relationship-list.relationship[$idx].relationship-data[0].relationship-value`\" />\n\n\n",
+ "comments": "",
+ "x": 1994.75,
+ "y": 798.75,
+ "z": "265dc029.a18eb8",
+ "wires": []
+ },
+ {
+ "id": "71dec788.b2b82",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "outputs": 1,
+ "x": 1751.75,
+ "y": 841.75,
+ "z": "265dc029.a18eb8",
+ "wires": [
+ [
+ "256c12f1.36937e",
+ "caff6575.521c18"
+ ]
+ ]
+ },
+ {
+ "id": "b640b2e3.7d557",
+ "type": "comment",
+ "name": "Question?",
+ "info": "How to know if DG would send this get request\nin \"nodes\" namespace instead of \"network\" namespace?",
+ "comments": "",
+ "x": 3180.75,
+ "y": 1027.75,
+ "z": "265dc029.a18eb8",
+ "wires": []
+ },
+ {
+ "id": "f7fe7886.c5f688",
+ "type": "save",
+ "name": "get p-interface-src from aai",
+ "xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\tresource=\"p-interface\"\n\t key=\"pnf.pnf-name = $tmp.src.domainA.pnf-name\n\t AND p-interface.interface-name = $tmp.aai.network-route-A.next-hop\"\n\t\tlocal-only=\"false\" \n\t\tpfx=\"tmp.aai.network-route-A.p-interface-src\" >\n\n<!--<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" -->\n<!--\tresource=\"p-interface\"-->\n<!--\t key=\"pnf.pnf-name = $unique-src-node-Id-->\n<!--\t and p-interface.interface-name = $tmp.aai.endpointA.relationship-list.relationship[$rel-index].relationship-data[0].relationship-value\"-->\n<!--\t\tlocal-only=\"false\" -->\n<!--\t\tpfx=\"tmp.aai.endpointA.p-interface-src\" >-->\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 3223.75,
+ "y": 1092.75,
+ "z": "265dc029.a18eb8",
+ "wires": [
+ [
+ "b7d2e547.bd45e8",
+ "647aea0c.904444",
+ "1b3a301d.df26c"
+ ]
+ ]
+ },
+ {
+ "id": "d321b170.fefc18",
+ "type": "save",
+ "name": "get p-interface-dst from aai",
+ "xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\tresource=\"p-interface\"\n\t key=\"pnf.pnf-name = $tmp.dst.domainB.pnf-name\n\t AND p-interface.interface-name = $tmp.aai.network-route-B.next-hop\"\n\t\tlocal-only=\"false\" \n\t\tpfx=\"tmp.aai.network-route-B.p-interface-dst\" >\n\n<!--<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" -->\n<!--\tresource=\"p-interface\"-->\n<!--\t key=\"pnf.pnf-name = $unique-src-node-Id-->\n<!--\t and p-interface.interface-name = $tmp.aai.endpointA.relationship-list.relationship[$rel-index].relationship-data[0].relationship-value\"-->\n<!--\t\tlocal-only=\"false\" -->\n<!--\t\tpfx=\"tmp.aai.endpointA.p-interface-src\" >-->\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 3220.75,
+ "y": 1936.75,
+ "z": "265dc029.a18eb8",
+ "wires": [
+ [
+ "a826813e.688038",
+ "31b9c040.452a38",
+ "28d3d57c.d8ea12"
+ ]
+ ]
+ },
+ {
+ "id": "9ef3c368.db5f5",
+ "type": "comment",
+ "name": "Question?",
+ "info": "How to know if DG would send this get request\nin \"nodes\" namespace instead of \"network\" namespace?",
+ "comments": "",
+ "x": 3181.75,
+ "y": 1880.75,
+ "z": "265dc029.a18eb8",
+ "wires": []
+ },
+ {
+ "id": "92c83ff4.32672",
+ "type": "save",
+ "name": "get allotted-resource relationship from aai",
+ "xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\tresource=\"allotted-resource:relationship-list\"\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 AND allotted-resource.id = $allotted-resource-id'\n\tlocal-only=\"false\"\n\tforce=\"true\" pfx=\"tmp.aai.allotted-resource.relationship-list\">\n\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2937.75,
+ "y": 378.75,
+ "z": "265dc029.a18eb8",
+ "wires": [
+ [
+ "95b0e196.505ca",
+ "18577af2.228375",
+ "e930ed34.7c0138"
+ ]
+ ]
+ },
+ {
+ "id": "18577af2.228375",
+ "type": "not-found",
+ "name": "not-found",
+ "xml": "<outcome value='not-found'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 3211.240966796875,
+ "y": 271.323974609375,
+ "z": "265dc029.a18eb8",
+ "wires": [
+ [
+ "88d8bef2.b299b"
+ ]
+ ]
+ },
+ {
+ "id": "88d8bef2.b299b",
+ "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": 3388.8125,
+ "y": 271.6097412109375,
+ "z": "265dc029.a18eb8",
+ "wires": []
+ },
+ {
+ "id": "e930ed34.7c0138",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 3206.75,
+ "y": 320.75,
+ "z": "265dc029.a18eb8",
+ "wires": [
+ [
+ "d9c208e6.92ace8"
+ ]
+ ]
+ },
+ {
+ "id": "d9c208e6.92ace8",
+ "type": "returnFailure",
+ "name": "return failure",
+ "xml": "<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value='' />\n",
+ "comments": "",
+ "x": 3388.75,
+ "y": 320.75,
+ "z": "265dc029.a18eb8",
+ "wires": []
+ },
+ {
+ "id": "95b0e196.505ca",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 3210.75,
+ "y": 371.75,
+ "z": "265dc029.a18eb8",
+ "wires": [
+ [
+ "1e6206a8.c04df9"
+ ]
+ ]
+ },
+ {
+ "id": "1e6206a8.c04df9",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "outputs": 1,
+ "x": 3390.75,
+ "y": 371.75,
+ "z": "265dc029.a18eb8",
+ "wires": [
+ [
+ "9822d888.33539"
+ ]
+ ]
+ },
+ {
+ "id": "7e565315.5e9c94",
+ "type": "for",
+ "name": "for each allotted-resource relationship",
+ "xml": "<for index='idx' start='0' end='`$tmp.aai.allotted-resource.relationship-list.relationship_length`' >\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2881.75,
+ "y": 595.75,
+ "z": "265dc029.a18eb8",
+ "wires": [
+ [
+ "ad48e1c.1164d2"
+ ]
+ ]
+ },
+ {
+ "id": "ad48e1c.1164d2",
+ "type": "switchNode",
+ "name": "switch related-to",
+ "xml": "<switch test='`$tmp.aai.allotted-resource.relationship-list.relationship[$idx].related-to`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 3161.75,
+ "y": 595.75,
+ "z": "265dc029.a18eb8",
+ "wires": [
+ [
+ "fa993007.6297d"
+ ]
+ ]
+ },
+ {
+ "id": "f45e9748.7b5398",
+ "type": "outcome",
+ "name": "network-policy",
+ "xml": "<outcome value='network-policy'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 3366.75,
+ "y": 569.75,
+ "z": "265dc029.a18eb8",
+ "wires": [
+ [
+ "765d29c.dd249d8"
+ ]
+ ]
+ },
+ {
+ "id": "765d29c.dd249d8",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "outputs": 1,
+ "x": 3543.7498779296875,
+ "y": 562.7498779296875,
+ "z": "265dc029.a18eb8",
+ "wires": [
+ [
+ "75683ebe.1d381",
+ "bda78544.b92ef8"
+ ]
+ ]
+ },
+ {
+ "id": "75683ebe.1d381",
+ "type": "set",
+ "name": "set the 1st network-policy-id",
+ "xml": "<set>\n<parameter name='network-policy-id' value=\"`$tmp.aai.allotted-resource.relationship-list.relationship[$idx].relationship-data[0].relationship-value`\" />\n\n\n",
+ "comments": "",
+ "x": 3786.7498779296875,
+ "y": 519.7498779296875,
+ "z": "265dc029.a18eb8",
+ "wires": []
+ },
+ {
+ "id": "bda78544.b92ef8",
+ "type": "save",
+ "name": "get network-policy from aai",
+ "xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\tresource=\"network-policy\"\n\tkey='network-policy.network-policy-id = $network-policy-id'\n\tlocal-only=\"false\"\n\tforce=\"true\" pfx=\"tmp.aai.network-policy\">",
+ "comments": "",
+ "outputs": 1,
+ "x": 3775.7498779296875,
+ "y": 574.7498779296875,
+ "z": "265dc029.a18eb8",
+ "wires": [
+ [
+ "ca6a5b49.f6776",
+ "a806a879.064e2",
+ "e87f6cd7.19d238"
+ ]
+ ]
+ },
+ {
+ "id": "e87f6cd7.19d238",
+ "type": "not-found",
+ "name": "not-found",
+ "xml": "<outcome value='not-found'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 4028.75,
+ "y": 460.75,
+ "z": "265dc029.a18eb8",
+ "wires": [
+ [
+ "8b6c5048.f1e68"
+ ]
+ ]
+ },
+ {
+ "id": "8b6c5048.f1e68",
+ "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": 4177.321533203125,
+ "y": 461.0357666015625,
+ "z": "265dc029.a18eb8",
+ "wires": []
+ },
+ {
+ "id": "180d4dab.bdf5aa",
+ "type": "returnFailure",
+ "name": "return failure",
+ "xml": "<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value='' />\n",
+ "comments": "",
+ "x": 4176.259033203125,
+ "y": 505.176025390625,
+ "z": "265dc029.a18eb8",
+ "wires": []
+ },
+ {
+ "id": "a806a879.064e2",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 4017.259033203125,
+ "y": 505.176025390625,
+ "z": "265dc029.a18eb8",
+ "wires": [
+ [
+ "180d4dab.bdf5aa"
+ ]
+ ]
+ },
+ {
+ "id": "ca6a5b49.f6776",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 4024.259033203125,
+ "y": 584.176025390625,
+ "z": "265dc029.a18eb8",
+ "wires": [
+ [
+ "64e4dfe7.932de"
+ ]
+ ]
+ },
+ {
+ "id": "64e4dfe7.932de",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 4163.259033203125,
+ "y": 584.176025390625,
+ "z": "265dc029.a18eb8",
+ "wires": [
+ [
+ "ee6b0ff5.49f928",
+ "2bb1c801.8cdbe"
+ ]
+ ]
+ },
+ {
+ "id": "ee6b0ff5.49f928",
+ "type": "set",
+ "name": "set the max bandwidth",
+ "xml": "<set>\n<parameter name='maximum-bandwidth' value=\"`$tmp.aai.network-policy.max-bandwidth`\" />\n<parameter name='route-distinguisher' value='`$maximum-bandwidth /1000 *4 /5 +1`' />\n\n\n\n",
+ "comments": "",
+ "x": 4368.75,
+ "y": 581.75,
+ "z": "265dc029.a18eb8",
+ "wires": []
+ },
+ {
+ "id": "97630cf9.61551",
+ "type": "execute",
+ "name": "execute split tp-id to get pnf-name",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='split' >\n<parameter name=\"original_string\" value='`$tmp.aai.network-route-A.next-hop`'/>\n<!--<parameter name=\"regex\" value=\"[^-]+$\"/>-->\n<parameter name=\"regex\" value=\"[-]+\"/>\n<parameter name=\"ctx_memory_result_key\" value=\"param-prefix-domainA-pnfName\"/>\n\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 3224.75,
+ "y": 762.75,
+ "z": "265dc029.a18eb8",
+ "wires": [
+ [
+ "934ca0f9.e9628",
+ "acb0ef25.bdb28"
+ ]
+ ]
+ },
+ {
+ "id": "acb0ef25.bdb28",
+ "type": "failure",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 3447.75,
+ "y": 748.75,
+ "z": "265dc029.a18eb8",
+ "wires": [
+ [
+ "86c41dd1.cd9b3"
+ ]
+ ]
+ },
+ {
+ "id": "934ca0f9.e9628",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 3449.75,
+ "y": 781.75,
+ "z": "265dc029.a18eb8",
+ "wires": [
+ [
+ "7c1914e6.7de444"
+ ]
+ ]
+ },
+ {
+ "id": "7c1914e6.7de444",
+ "type": "returnFailure",
+ "name": "return failure",
+ "xml": "<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value=\"An error occured while splitting sna1_route\" />\n",
+ "comments": "",
+ "x": 3592.75,
+ "y": 778.75,
+ "z": "265dc029.a18eb8",
+ "wires": []
+ },
+ {
+ "id": "86c41dd1.cd9b3",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "outputs": 1,
+ "x": 3595.75,
+ "y": 741.75,
+ "z": "265dc029.a18eb8",
+ "wires": [
+ [
+ "9c125821.e182b8",
+ "15e72cc8.739c23"
+ ]
+ ]
+ },
+ {
+ "id": "9c125821.e182b8",
+ "type": "set",
+ "name": "set pnf-name",
+ "xml": "<set>\n<parameter name='tmp.src.domainA.pnf-name' value=\"`$param-prefix-domainA-pnfName[0] + '-' +\n $param-prefix-domainA-pnfName[1] + '-' +\n $param-prefix-domainA-pnfName[2] + '-' +\n $param-prefix-domainA-pnfName[3] + '-' +\n $param-prefix-domainA-pnfName[4] + '-' +\n $param-prefix-domainA-pnfName[5] + '-' +\n $param-prefix-domainA-pnfName[6] + '-' +\n $param-prefix-domainA-pnfName[7] + '-' +\n $param-prefix-domainA-pnfName[8]`\" />\n",
+ "comments": "",
+ "x": 3757.75,
+ "y": 736.75,
+ "z": "265dc029.a18eb8",
+ "wires": []
+ },
+ {
+ "id": "ffb149d2.1a2f38",
+ "type": "execute",
+ "name": "execute split tp-id to get pnf-name",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='split' >\n<parameter name=\"original_string\" value='`$tmp.aai.network-route-B.next-hop`'/>\n<!--<parameter name=\"regex\" value=\"[^-]+$\"/>-->\n<parameter name=\"regex\" value=\"[-]+\"/>\n<parameter name=\"ctx_memory_result_key\" value=\"param-prefix-domainB-pnfName\"/>\n\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 3238.75,
+ "y": 1599.7498779296875,
+ "z": "265dc029.a18eb8",
+ "wires": [
+ [
+ "bf5eff49.e98d88",
+ "54638e9e.e4ced"
+ ]
+ ]
+ },
+ {
+ "id": "54638e9e.e4ced",
+ "type": "failure",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 3461.75,
+ "y": 1585.7498779296875,
+ "z": "265dc029.a18eb8",
+ "wires": [
+ [
+ "16f61dc.50bc1e2"
+ ]
+ ]
+ },
+ {
+ "id": "bf5eff49.e98d88",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 3463.75,
+ "y": 1618.7498779296875,
+ "z": "265dc029.a18eb8",
+ "wires": [
+ [
+ "9dee5daf.af14f"
+ ]
+ ]
+ },
+ {
+ "id": "9dee5daf.af14f",
+ "type": "returnFailure",
+ "name": "return failure",
+ "xml": "<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value=\"An error occured while splitting sna1_route\" />\n",
+ "comments": "",
+ "x": 3606.75,
+ "y": 1615.7498779296875,
+ "z": "265dc029.a18eb8",
+ "wires": []
+ },
+ {
+ "id": "16f61dc.50bc1e2",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "outputs": 1,
+ "x": 3609.75,
+ "y": 1578.7498779296875,
+ "z": "265dc029.a18eb8",
+ "wires": [
+ [
+ "8dcdd4c8.096dc8",
+ "d98e4cd6.39d27"
+ ]
+ ]
+ },
+ {
+ "id": "8dcdd4c8.096dc8",
+ "type": "set",
+ "name": "set pnf-name",
+ "xml": "<set>\n<parameter name='tmp.dst.domainB.pnf-name' value=\"`$param-prefix-domainB-pnfName[0] + '-' +\n $param-prefix-domainB-pnfName[1] + '-' +\n $param-prefix-domainB-pnfName[2] + '-' +\n $param-prefix-domainB-pnfName[3] + '-' +\n $param-prefix-domainB-pnfName[4] + '-' +\n $param-prefix-domainB-pnfName[5] + '-' +\n $param-prefix-domainB-pnfName[6] + '-' +\n $param-prefix-domainB-pnfName[7] + '-' +\n $param-prefix-domainB-pnfName[8]`\" />\n",
+ "comments": "",
+ "x": 3803.75,
+ "y": 1581.75,
+ "z": "265dc029.a18eb8",
+ "wires": []
+ },
+ {
+ "id": "8be878cc.82db9",
+ "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": 1067.75,
+ "y": 286.75,
+ "z": "265dc029.a18eb8",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "992f0b42.313448",
+ "type": "for",
+ "name": "for each relationship",
+ "xml": "<for silentFailure='true' index='pividx' start='0' end='`$tmp.aai.network-route-A.p-interface-src.relationship-list.relationship_length`' >\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 3871.75,
+ "y": 1332.75,
+ "z": "265dc029.a18eb8",
+ "wires": [
+ [
+ "b7afaa03.1d1688"
+ ]
+ ]
+ },
+ {
+ "id": "b7afaa03.1d1688",
+ "type": "switchNode",
+ "name": "switch related-to",
+ "xml": "<switch test='`$tmp.aai.network-route-A.p-interface-src.relationship-list.relationship[$pividx].related-to`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 4077.75,
+ "y": 1332.75,
+ "z": "265dc029.a18eb8",
+ "wires": [
+ [
+ "40933173.919508"
+ ]
+ ]
+ },
+ {
+ "id": "40933173.919508",
+ "type": "outcome",
+ "name": "tunnel-termination-point",
+ "xml": "<outcome value='tunnel-termination-point'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 4293.03564453125,
+ "y": 1332.57177734375,
+ "z": "265dc029.a18eb8",
+ "wires": [
+ [
+ "8a032b26.4ca96"
+ ]
+ ]
+ },
+ {
+ "id": "8a032b26.4ca96",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "outputs": 1,
+ "x": 4499.8671875,
+ "y": 1333.09033203125,
+ "z": "265dc029.a18eb8",
+ "wires": [
+ [
+ "2723496.6122eb6",
+ "e5650eda.402e4",
+ "1295e367.d34e2d"
+ ]
+ ]
+ },
+ {
+ "id": "2723496.6122eb6",
+ "type": "set",
+ "name": "set source ttp-id",
+ "xml": "<set>\n<parameter name='tmp.source.ttp-id' value=\"`$tmp.aai.network-route-A.p-interface-src.relationship-list.relationship[$pividx].relationship-data[0].relationship-value`\" />\n",
+ "comments": "",
+ "x": 4714.8671875,
+ "y": 1295.09033203125,
+ "z": "265dc029.a18eb8",
+ "wires": []
+ },
+ {
+ "id": "e5650eda.402e4",
+ "type": "get-resource",
+ "name": "get-resource src TTP",
+ "xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\t\tresource=\"tunnel-termination-point\" \n\t\tkey=\"tunnel-termination-point.ttp-id = $tmp.source.ttp-id \n\t\tAND depth = '0'\"\n pfx='tmp.aai.source-ttp' local-only='false' >\n\n\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 4711.8671875,
+ "y": 1334.09033203125,
+ "z": "265dc029.a18eb8",
+ "wires": [
+ [
+ "217f847a.1b8f9c"
+ ]
+ ]
+ },
+ {
+ "id": "1295e367.d34e2d",
+ "type": "break",
+ "name": "break",
+ "xml": "<break>\n",
+ "comments": "",
+ "x": 4667.3671875,
+ "y": 1376.09033203125,
+ "z": "265dc029.a18eb8",
+ "wires": []
+ },
+ {
+ "id": "217f847a.1b8f9c",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 4892.3671875,
+ "y": 1333.09033203125,
+ "z": "265dc029.a18eb8",
+ "wires": [
+ [
+ "9a62abd2.875488"
+ ]
+ ]
+ },
+ {
+ "id": "9a62abd2.875488",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "outputs": 1,
+ "x": 5050.3671875,
+ "y": 1333.09033203125,
+ "z": "265dc029.a18eb8",
+ "wires": [
+ [
+ "84d611e0.38611"
+ ]
+ ]
+ },
+ {
+ "id": "84d611e0.38611",
+ "type": "set",
+ "name": "set source tunnel tp ip",
+ "xml": "<set>\n<parameter name='source.tunnel-tp-id' value=\"`$tmp.aai.source-ttp.tunnel-tp-id`\" />\n",
+ "comments": "",
+ "x": 5257.3671875,
+ "y": 1333.09033203125,
+ "z": "265dc029.a18eb8",
+ "wires": []
+ },
+ {
+ "id": "5282e7ba.b5ae6",
+ "type": "for",
+ "name": "for each relationship",
+ "xml": "<for silentFailure='true' index='dividx' start='0' end='`$tmp.aai.network-route-B.p-interface-dst.relationship-list.relationship_length`' >\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 3868.75,
+ "y": 2201.7501220703125,
+ "z": "265dc029.a18eb8",
+ "wires": [
+ [
+ "bd545475.b3b6c"
+ ]
+ ]
+ },
+ {
+ "id": "bd545475.b3b6c",
+ "type": "switchNode",
+ "name": "switch related-to",
+ "xml": "<switch test='`$tmp.aai.network-route-B.p-interface-dst.relationship-list.relationship[$dividx].related-to`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 4074.75,
+ "y": 2201.7501220703125,
+ "z": "265dc029.a18eb8",
+ "wires": [
+ [
+ "83564e37.d48218"
+ ]
+ ]
+ },
+ {
+ "id": "83564e37.d48218",
+ "type": "outcome",
+ "name": "tunnel-termination-point",
+ "xml": "<outcome value='tunnel-termination-point'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 4290.03564453125,
+ "y": 2201.5718994140625,
+ "z": "265dc029.a18eb8",
+ "wires": [
+ [
+ "93bbce92.5201a"
+ ]
+ ]
+ },
+ {
+ "id": "93bbce92.5201a",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "outputs": 1,
+ "x": 4496.8671875,
+ "y": 2202.0904541015625,
+ "z": "265dc029.a18eb8",
+ "wires": [
+ [
+ "fd9657a3.dc9388",
+ "30813f1a.ba22e",
+ "20bd551d.f1ff8a"
+ ]
+ ]
+ },
+ {
+ "id": "fd9657a3.dc9388",
+ "type": "set",
+ "name": "set destination ttp-id",
+ "xml": "<set>\n<parameter name='tmp.destination.ttp-id' value=\"`$tmp.aai.network-route-B.p-interface-dst.relationship-list.relationship[$dividx].relationship-data[0].relationship-value`\" />\n",
+ "comments": "",
+ "x": 4711.8671875,
+ "y": 2164.0904541015625,
+ "z": "265dc029.a18eb8",
+ "wires": []
+ },
+ {
+ "id": "30813f1a.ba22e",
+ "type": "get-resource",
+ "name": "get-resource src TTP",
+ "xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\t\tresource=\"tunnel-termination-point\" \n\t\tkey=\"tunnel-termination-point.ttp-id = $tmp.destination.ttp-id \n\t\tAND depth = '0'\"\n pfx='tmp.aai.destination-ttp' local-only='false' >\n\n\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 4708.8671875,
+ "y": 2203.0904541015625,
+ "z": "265dc029.a18eb8",
+ "wires": [
+ [
+ "a170e3c8.bc39e8"
+ ]
+ ]
+ },
+ {
+ "id": "20bd551d.f1ff8a",
+ "type": "break",
+ "name": "break",
+ "xml": "<break>\n",
+ "comments": "",
+ "x": 4664.3671875,
+ "y": 2245.0904541015625,
+ "z": "265dc029.a18eb8",
+ "wires": []
+ },
+ {
+ "id": "a170e3c8.bc39e8",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 4889.3671875,
+ "y": 2202.0904541015625,
+ "z": "265dc029.a18eb8",
+ "wires": [
+ [
+ "2f28ce6e.7c805a"
+ ]
+ ]
+ },
+ {
+ "id": "2f28ce6e.7c805a",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "outputs": 1,
+ "x": 5047.3671875,
+ "y": 2202.0904541015625,
+ "z": "265dc029.a18eb8",
+ "wires": [
+ [
+ "8acb087c.8a0c18"
+ ]
+ ]
+ },
+ {
+ "id": "8acb087c.8a0c18",
+ "type": "set",
+ "name": "set destination tunnel tp ip",
+ "xml": "<set>\n<parameter name='destination.tunnel-tp-id' value=\"`$tmp.aai.destination-ttp.tunnel-tp-id`\" />\n",
+ "comments": "",
+ "x": 5254.3671875,
+ "y": 2202.0904541015625,
+ "z": "265dc029.a18eb8",
+ "wires": []
+ },
+ {
+ "id": "15e72cc8.739c23",
+ "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": 3784.75,
+ "y": 808.75,
+ "z": "265dc029.a18eb8",
+ "wires": [
+ [
+ "4a52b982.f91c28",
+ "a11e568c.3be85",
+ "99ab9191.08f9c8"
+ ]
+ ]
+ },
+ {
+ "id": "4a52b982.f91c28",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 3980.2501220703125,
+ "y": 760.75,
+ "z": "265dc029.a18eb8",
+ "wires": [
+ [
+ "b692ef38.8280a"
+ ]
+ ]
+ },
+ {
+ "id": "a11e568c.3be85",
+ "type": "not-found",
+ "name": "not-found",
+ "xml": "<outcome value='not-found'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 3972.2501220703125,
+ "y": 815.75,
+ "z": "265dc029.a18eb8",
+ "wires": [
+ [
+ "e2c6f054.dcba8"
+ ]
+ ]
+ },
+ {
+ "id": "99ab9191.08f9c8",
+ "type": "other",
+ "name": "other",
+ "xml": "<outcome value='Other'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 3977.2501220703125,
+ "y": 872.75,
+ "z": "265dc029.a18eb8",
+ "wires": [
+ [
+ "b3b61906.89b6c"
+ ]
+ ]
+ },
+ {
+ "id": "b3b61906.89b6c",
+ "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": 4129.2501220703125,
+ "y": 873.75,
+ "z": "265dc029.a18eb8",
+ "wires": []
+ },
+ {
+ "id": "e2c6f054.dcba8",
+ "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": 4140.2501220703125,
+ "y": 818.75,
+ "z": "265dc029.a18eb8",
+ "wires": []
+ },
+ {
+ "id": "b692ef38.8280a",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 4124.6324462890625,
+ "y": 758.4056701660156,
+ "z": "265dc029.a18eb8",
+ "wires": [
+ [
+ "7c1e7393.5f430c"
+ ]
+ ]
+ },
+ {
+ "id": "bfce8ca8.7f158",
+ "type": "outcome",
+ "name": "esr-thirdparty-sdnc",
+ "xml": "<outcome value='esr-thirdparty-sdnc'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 4706.75,
+ "y": 776.75,
+ "z": "265dc029.a18eb8",
+ "wires": [
+ [
+ "66e0242c.eca1f4"
+ ]
+ ]
+ },
+ {
+ "id": "66e0242c.eca1f4",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "outputs": 1,
+ "x": 4883.75,
+ "y": 768.75,
+ "z": "265dc029.a18eb8",
+ "wires": [
+ [
+ "bb4e4d04.403498",
+ "a4a52ebd.07da98"
+ ]
+ ]
+ },
+ {
+ "id": "7c1e7393.5f430c",
+ "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": 4308.75,
+ "y": 772.75,
+ "z": "265dc029.a18eb8",
+ "wires": [
+ [
+ "fdc19a74.7f3248"
+ ]
+ ]
+ },
+ {
+ "id": "fdc19a74.7f3248",
+ "type": "switchNode",
+ "name": "switch related-to",
+ "xml": "<switch test='`$tmp.aai.source-pnf.relationship-list.relationship[$spvidx].related-to`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 4503.75,
+ "y": 772.75,
+ "z": "265dc029.a18eb8",
+ "wires": [
+ [
+ "bfce8ca8.7f158",
+ "86b82394.a43d88"
+ ]
+ ]
+ },
+ {
+ "id": "bb4e4d04.403498",
+ "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": 5121.75,
+ "y": 723.75,
+ "z": "265dc029.a18eb8",
+ "wires": []
+ },
+ {
+ "id": "147a8d1b.1ee80b",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 5301.75,
+ "y": 766.75,
+ "z": "265dc029.a18eb8",
+ "wires": [
+ [
+ "b87f751d.f3da7"
+ ]
+ ]
+ },
+ {
+ "id": "d765c1e1.9d8848",
+ "type": "not-found",
+ "name": "not-found",
+ "xml": "<outcome value='not-found'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 5293.75,
+ "y": 821.75,
+ "z": "265dc029.a18eb8",
+ "wires": [
+ [
+ "df22bf16.07f7a"
+ ]
+ ]
+ },
+ {
+ "id": "55e4f273.918784",
+ "type": "other",
+ "name": "other",
+ "xml": "<outcome value='Other'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 5298.75,
+ "y": 878.75,
+ "z": "265dc029.a18eb8",
+ "wires": [
+ [
+ "6f4ec167.ab122"
+ ]
+ ]
+ },
+ {
+ "id": "6f4ec167.ab122",
+ "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": 5450.75,
+ "y": 879.75,
+ "z": "265dc029.a18eb8",
+ "wires": []
+ },
+ {
+ "id": "df22bf16.07f7a",
+ "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": 5461.75,
+ "y": 824.75,
+ "z": "265dc029.a18eb8",
+ "wires": []
+ },
+ {
+ "id": "b87f751d.f3da7",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 5446.13232421875,
+ "y": 764.4056701660156,
+ "z": "265dc029.a18eb8",
+ "wires": [
+ [
+ "65560228.e1b304"
+ ]
+ ]
+ },
+ {
+ "id": "65560228.e1b304",
+ "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": 5660.75,
+ "y": 760.75,
+ "z": "265dc029.a18eb8",
+ "wires": []
+ },
+ {
+ "id": "d98e4cd6.39d27",
+ "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.dst.domainB.pnf-name\"\n pfx='tmp.aai.destination-pnf' local-only='false' >\n\n <!--AND depth = '0'\"-->\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 3825.75,
+ "y": 1649.75,
+ "z": "265dc029.a18eb8",
+ "wires": [
+ [
+ "2868cde5.076bda",
+ "b742f188.d99c98",
+ "7bcbe6e5.b6855"
+ ]
+ ]
+ },
+ {
+ "id": "2868cde5.076bda",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 4021.2501220703125,
+ "y": 1601.75,
+ "z": "265dc029.a18eb8",
+ "wires": [
+ [
+ "ddae6fe1.18737"
+ ]
+ ]
+ },
+ {
+ "id": "b742f188.d99c98",
+ "type": "not-found",
+ "name": "not-found",
+ "xml": "<outcome value='not-found'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 4013.2501220703125,
+ "y": 1656.75,
+ "z": "265dc029.a18eb8",
+ "wires": [
+ [
+ "22adb7ad.9c7eb8"
+ ]
+ ]
+ },
+ {
+ "id": "7bcbe6e5.b6855",
+ "type": "other",
+ "name": "other",
+ "xml": "<outcome value='Other'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 4018.2501220703125,
+ "y": 1713.75,
+ "z": "265dc029.a18eb8",
+ "wires": [
+ [
+ "8bbca88.4bf3658"
+ ]
+ ]
+ },
+ {
+ "id": "8bbca88.4bf3658",
+ "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": 4170.2501220703125,
+ "y": 1714.75,
+ "z": "265dc029.a18eb8",
+ "wires": []
+ },
+ {
+ "id": "22adb7ad.9c7eb8",
+ "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": 4181.2501220703125,
+ "y": 1659.75,
+ "z": "265dc029.a18eb8",
+ "wires": []
+ },
+ {
+ "id": "ddae6fe1.18737",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 4165.6324462890625,
+ "y": 1599.4056701660156,
+ "z": "265dc029.a18eb8",
+ "wires": [
+ [
+ "745549ac.76522"
+ ]
+ ]
+ },
+ {
+ "id": "6c51f1bb.fdd338",
+ "type": "outcome",
+ "name": "esr-thirdparty-sdnc",
+ "xml": "<outcome value='esr-thirdparty-sdnc'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 4747.75,
+ "y": 1617.75,
+ "z": "265dc029.a18eb8",
+ "wires": [
+ [
+ "bec84375.9834d8"
+ ]
+ ]
+ },
+ {
+ "id": "bec84375.9834d8",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "outputs": 1,
+ "x": 4924.75,
+ "y": 1609.75,
+ "z": "265dc029.a18eb8",
+ "wires": [
+ [
+ "10746af3.442ea5",
+ "c8d59f37.05516"
+ ]
+ ]
+ },
+ {
+ "id": "745549ac.76522",
+ "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": 4349.75,
+ "y": 1613.75,
+ "z": "265dc029.a18eb8",
+ "wires": [
+ [
+ "6f4edcf8.0264a4"
+ ]
+ ]
+ },
+ {
+ "id": "6f4edcf8.0264a4",
+ "type": "switchNode",
+ "name": "switch related-to",
+ "xml": "<switch test='`$tmp.aai.destination-pnf.relationship-list.relationship[$dpvidx].related-to`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 4544.75,
+ "y": 1613.75,
+ "z": "265dc029.a18eb8",
+ "wires": [
+ [
+ "6c51f1bb.fdd338",
+ "bd360057.ae7f88"
+ ]
+ ]
+ },
+ {
+ "id": "c8d59f37.05516",
+ "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": 5132.75,
+ "y": 1616.75,
+ "z": "265dc029.a18eb8",
+ "wires": [
+ [
+ "cfff8041.7a41a",
+ "e8bb74eb.2b006",
+ "38cb0a35.e7b596"
+ ]
+ ]
+ },
+ {
+ "id": "10746af3.442ea5",
+ "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": 5162.75,
+ "y": 1564.75,
+ "z": "265dc029.a18eb8",
+ "wires": []
+ },
+ {
+ "id": "cfff8041.7a41a",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 5342.75,
+ "y": 1607.75,
+ "z": "265dc029.a18eb8",
+ "wires": [
+ [
+ "48760758.d51b1"
+ ]
+ ]
+ },
+ {
+ "id": "e8bb74eb.2b006",
+ "type": "not-found",
+ "name": "not-found",
+ "xml": "<outcome value='not-found'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 5334.75,
+ "y": 1662.75,
+ "z": "265dc029.a18eb8",
+ "wires": [
+ [
+ "cd0857ad.373e5"
+ ]
+ ]
+ },
+ {
+ "id": "38cb0a35.e7b596",
+ "type": "other",
+ "name": "other",
+ "xml": "<outcome value='Other'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 5339.75,
+ "y": 1719.75,
+ "z": "265dc029.a18eb8",
+ "wires": [
+ [
+ "dc5ac250.081388"
+ ]
+ ]
+ },
+ {
+ "id": "dc5ac250.081388",
+ "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": 5491.75,
+ "y": 1720.75,
+ "z": "265dc029.a18eb8",
+ "wires": []
+ },
+ {
+ "id": "cd0857ad.373e5",
+ "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": 5502.75,
+ "y": 1665.75,
+ "z": "265dc029.a18eb8",
+ "wires": []
+ },
+ {
+ "id": "48760758.d51b1",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 5487.13232421875,
+ "y": 1605.4056701660156,
+ "z": "265dc029.a18eb8",
+ "wires": [
+ [
+ "4f464150.595d48"
+ ]
+ ]
+ },
+ {
+ "id": "4f464150.595d48",
+ "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": 5701.75,
+ "y": 1601.75,
+ "z": "265dc029.a18eb8",
+ "wires": []
+ },
+ {
+ "id": "7898c9b3.45357",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "outputs": 1,
+ "x": 2785.75,
+ "y": 541.75,
+ "z": "265dc029.a18eb8",
+ "wires": [
+ [
+ "7e565315.5e9c94",
+ "d1780d52.965428"
+ ]
+ ]
+ },
+ {
+ "id": "d1780d52.965428",
+ "type": "for",
+ "name": "for each allotted-resource relationship",
+ "xml": "<for index='idx' start='0' end='`$tmp.aai.allotted-resource.relationship-list.relationship_length`' >\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 3066.75,
+ "y": 497.75,
+ "z": "265dc029.a18eb8",
+ "wires": [
+ [
+ "3ca961.874bbea"
+ ]
+ ]
+ },
+ {
+ "id": "3ca961.874bbea",
+ "type": "switchNode",
+ "name": "switch related-to",
+ "xml": "<switch test='`$tmp.aai.allotted-resource.relationship-list.relationship[$idx].related-to`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 3328.75,
+ "y": 497.75,
+ "z": "265dc029.a18eb8",
+ "wires": [
+ [
+ "f45e9748.7b5398"
+ ]
+ ]
+ },
+ {
+ "id": "86b82394.a43d88",
+ "type": "outcome",
+ "name": "network-resource",
+ "xml": "<outcome value='network-resource'>",
+ "comments": "",
+ "outputs": 1,
+ "x": 4709.75,
+ "y": 850.75,
+ "z": "265dc029.a18eb8",
+ "wires": [
+ [
+ "d6ae6456.c7b7d"
+ ]
+ ]
+ },
+ {
+ "id": "d6ae6456.c7b7d",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "outputs": 1,
+ "x": 4886.75,
+ "y": 842.75,
+ "z": "265dc029.a18eb8",
+ "wires": [
+ [
+ "e0c26dc1.c6609"
+ ]
+ ]
+ },
+ {
+ "id": "e0c26dc1.c6609",
+ "type": "set",
+ "name": "set domainA ethernet layer network-id",
+ "xml": "<set>\n<parameter name='tmp.domainA.eth-network-id' value=\"`$tmp.aai.source-pnf.relationship-list.relationship[$spvidx].relationship-data[0].relationship-value`\" />\n",
+ "comments": "",
+ "x": 5121.75,
+ "y": 966.75,
+ "z": "265dc029.a18eb8",
+ "wires": []
+ },
+ {
+ "id": "d695d085.dfc6b8",
+ "type": "set",
+ "name": "set domainB ethernet layer network-id",
+ "xml": "<set>\n<parameter name='tmp.domainB.eth-network-id' value=\"`$tmp.aai.destination-pnf.relationship-list.relationship[$dpvidx].relationship-data[0].relationship-value`\" />\n",
+ "comments": "",
+ "x": 5161.75,
+ "y": 1806.75,
+ "z": "265dc029.a18eb8",
+ "wires": []
+ },
+ {
+ "id": "d2aa9e81.4a2188",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "outputs": 1,
+ "x": 4926.75,
+ "y": 1682.75,
+ "z": "265dc029.a18eb8",
+ "wires": [
+ [
+ "d695d085.dfc6b8"
+ ]
+ ]
+ },
+ {
+ "id": "bd360057.ae7f88",
+ "type": "outcome",
+ "name": "network-resource",
+ "xml": "<outcome value='network-resource'>",
+ "comments": "",
+ "outputs": 1,
+ "x": 4749.75,
+ "y": 1690.75,
+ "z": "265dc029.a18eb8",
+ "wires": [
+ [
+ "d2aa9e81.4a2188"
+ ]
+ ]
+ },
+ {
+ "id": "2bb1c801.8cdbe",
+ "type": "set",
+ "name": "set the max bandwidth",
+ "xml": "<set>\n<parameter name='gfp' value='`$maximum-bandwidth /1000 *4 /5 +1`' />\n\n\n\n",
+ "comments": "",
+ "x": 4367.75,
+ "y": 627.75,
+ "z": "265dc029.a18eb8",
+ "wires": []
+ },
+ {
+ "id": "f8e47c26.52e4d8",
+ "type": "execute",
+ "name": "execute UUID generator for ethernet-service-name",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='generateUUID' >\n<parameter name=\"ctx-destination\" value=\"prop.ethernet-service-name\"/>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2723.75,
+ "y": 761.75,
+ "z": "265dc029.a18eb8",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "cd49f082.fc7e6",
+ "type": "execute",
+ "name": "execute UUID generator for otn-tunnel-name",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='generateUUID' >\n<parameter name=\"ctx-destination\" value=\"prop.otn-tunnel-name\"/>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2704.75,
+ "y": 811.75,
+ "z": "265dc029.a18eb8",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "e47816c1.46d19",
+ "type": "for",
+ "name": "for each allotted-resource",
+ "xml": "<for index='aridx' start='0' end='`$tmp.aai.service-instance.allotted-resources.allotted-resource_length`' >\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1965.75,
+ "y": 345.75,
+ "z": "265dc029.a18eb8",
+ "wires": [
+ [
+ "d88bc8a5.b522",
+ "2fd2492.76d5db6"
+ ]
+ ]
+ },
+ {
+ "id": "d88bc8a5.b522",
+ "type": "set",
+ "name": "set the current allotted-resource-id",
+ "xml": "<set>\n<parameter name='allotted-resource-id' value=\"`$tmp.aai.service-instance.allotted-resources.allotted-resource[$aridx].id`\" />\n\n\n",
+ "comments": "",
+ "x": 2245.75,
+ "y": 283.75,
+ "z": "265dc029.a18eb8",
+ "wires": []
+ },
+ {
+ "id": "558b33bb.a28914",
+ "type": "set",
+ "name": "set query_param",
+ "xml": "<set>\n<parameter name='prop.ethsrvType' value='`$network-route-A`' />\n\n",
+ "comments": "",
+ "x": 2634.75,
+ "y": 2176.7501220703125,
+ "z": "265dc029.a18eb8",
+ "wires": []
+ },
+ {
+ "id": "14b3fe.dfa6ec02",
+ "type": "set",
+ "name": "unset parameters",
+ "xml": "<set>\n<parameter name='domain-A.tunnel-tp-id' value='' />\n<parameter name='domain-A.node-id' value='' />\n<parameter name='domain-A.network-id' value=\"\" />\n<parameter name='domain-A.provider-id' value=\"\" />\n<parameter name='domain-A.client-id' value=\"\" />\n<parameter name='domain-A.te-topo-id' value=\"\" />\n<parameter name='domain-A.network-type' value=\"\" />\n<parameter name='domain-A.ltpId' value=\"\" />\n<parameter name='tmp.domain-A.network-id' value=\"\" />\n<parameter name='tmp.domain-A.ttp-id' value=\"\" />\n<parameter name='network-route-A' value=\"\" />\n<!--<parameter name='domain-A.' value=\"\" />-->\n\n<parameter name='request-id' value='' />\n<parameter name='otn-source-node' value='' />\n<parameter name='otn-dest-node' value='' />\n<parameter name='bw-odu' value=\"\" />\n<parameter name='src-ttp-id' value='' />\n<parameter name='dst-ttp-id' value='' />\n\n<parameter name='domain-B.tunnel-tp-id' value='' />\n<parameter name='domain-B.node-id' value='' />\n<parameter name='domain-B.network-id' value=\"\" />\n<parameter name='domain-B.provider-id' value=\"\" />\n<parameter name='domain-B.client-id' value=\"\" />\n<parameter name='domain-B.te-topo-id' value=\"\" />\n<parameter name='domain-B.network-type' value=\"\" />\n<parameter name='domain-B.ltpId' value=\"\" />\n<parameter name='tmp.domain-B.network-id' value=\"\" />\n<parameter name='tmp.domain-B.ttp-id' value=\"\" />\n<parameter name='network-route-B' value=\"\" />\n<!--<parameter name='domain-B.' value=\"\" />-->\n\n\n\n\n\n",
+ "comments": "",
+ "x": 2604.75,
+ "y": 4019.75,
+ "z": "265dc029.a18eb8",
+ "wires": []
+ },
+ {
+ "id": "ccca18a2.ea7ad8",
+ "type": "set",
+ "name": "set new ethernet-service-name",
+ "xml": "<set>\n<!--<parameter name='prop.ethernet-service-name' value=\"`$tmp.aai.logical-link.link-name`\" />-->\n<parameter name='prop.ethernet-service-name' value=\"`$tmp.aai.logical-link.link-id`\" />\n\n\n",
+ "comments": "",
+ "x": 2661.75,
+ "y": 856.75,
+ "z": "265dc029.a18eb8",
+ "wires": []
+ },
+ {
+ "id": "cca04ac5.91465",
+ "type": "for",
+ "name": "for vidx..tmp.otninfo_length[]",
+ "xml": "<for index='otnidx' start='0' end='`$tmp.otninfo_length`' >",
+ "comments": "",
+ "outputs": 1,
+ "x": 2960.75,
+ "y": 2573.7501220703125,
+ "z": "265dc029.a18eb8",
+ "wires": [
+ [
+ "632d67d8.477b4"
+ ]
+ ]
+ },
+ {
+ "id": "509c5188.74c83",
+ "type": "save",
+ "name": "save vpn-binding otnIdx resource (aka. OTN) in AAI",
+ "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='vpn-binding' \n key='vpn-binding.vpn-id = $prop.vpn-binding-otnidx-uuid' >\n<parameter name='vpn-id' value='`$prop.vpn-binding-otnidx-uuid`' />\n<parameter name='vpn-name' value='`$prop.otn-tunnel-name`' />\n<!--<parameter name='customer-vpn-id' value='`($idx + 1) * 10`' />-->\n<parameter name='customer-vpn-id' value='`($maxtpn + $gfp)`' />\n<!--<parameter name='access-provider-id' value='`$tmp.otninfo[$otnidx].dstPort.dst-access-provider-id`' />-->\n<parameter name='access-provider-id' value='`$tmp.access-provider-id`' />\n<!--<parameter name='access-client-id' value='`$tmp.otninfo[$otnidx].dstPort.dst-access-client-id`' />-->\n<parameter name='access-client-id' value='`$tmp.access-client-id`' />\n<!--<parameter name='access-topology-id' value='`$tmp.otninfo[$otnidx].dstPort.dst-access-topology-id`' />-->\n<parameter name='access-topology-id' value='`$tmp.access-topology-id`' />\n<!--<parameter name='src-access-node-id' value='`$tmp.otninfo[$otnidx].srcPort.src-access-node-id`' />-->\n<parameter name='src-access-node-id' value='`$tmp.domainG-src-access-node-id`' />\n<parameter name='src-access-ltp-id' value='`$tmp.otninfo[$otnidx].srcPort.src-tunnel-tp-id`' />\n<!--<parameter name='dst-access-node-id' value='`$tmp.otninfo[$otnidx].dstPort.dst-access-node-id`' />-->\n<parameter name='dst-access-node-id' value='`$tmp.domainG-dst-access-node-id`' />\n<parameter name='dst-access-ltp-id' value='`$tmp.otninfo[$otnidx].dstPort.dst-tunnel-tp-id`' />\n<parameter name='route-distinguisher' value='`$gfp`' />\n<parameter name='operational-status' value='Created' />\n<!--<parameter name='model-customization-id' value='`$network-topology-operation-input.network-information.onap-model-information.model-customization-uuid`' />-->\n<!--<parameter name='model-invariant-id' value='`$network-topology-operation-input.network-information.onap-model-information.model-invariant-uuid`' />-->\n<!--<parameter name='model-version-id' value='`$network-topology-operation-input.network-information.onap-model-information.model-uuid`' />-->\n\n\n<parameter name='vpn-region' value='`$prop.sdncRestApi.thirdpartySdnc.domainG.url`' />\n<parameter name='vpn-description' value='`$prop.sdncRestApi.thirdpartySdnc.domainG.user`' />\n<parameter name='vpn-platform' value='`$prop.sdncRestApi.thirdpartySdnc.domainG.password`' />\n\n<!-- The following line is in lieu of vpn-binding.slice-id (new attribute in latest AAI) -->\n<parameter name='ops-note' value='`$tmp.aai.service-instance.service-instance-id`' />\n\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 3778.75,
+ "y": 3008.75,
+ "z": "265dc029.a18eb8",
+ "wires": [
+ [
+ "47e5c711.f9e42"
+ ]
+ ]
+ },
+ {
+ "id": "e45b6160.4b64a",
+ "type": "save",
+ "name": "save connectivity-A relationship to vpn-binding-A, in AAI",
+ "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='vpn-binding:relationship-list' \n key='vpn-binding.vpn-id = $prop.vpn-binding-otnidx-uuid' \n force=\"true\" pfx=\"tmp.AnAI-data\">\n<parameter name=\"relationship-list.relationship[0].related-to\" value=\"connectivity\" />\n<parameter name=\"relationship-list.relationship[0].related-link\" value=\"`'/network/connectivities/connectivity/' + $uuid.connectivity-domainA-uuid`\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-key\" value=\"connectivity.connectivity-id\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-value\" value=\"`$uuid.connectivity-domainA-uuid`\" />",
+ "comments": "",
+ "outputs": 1,
+ "x": 4346.249755859375,
+ "y": 3117.75,
+ "z": "265dc029.a18eb8",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "47e5c711.f9e42",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 4084.75,
+ "y": 3007.75,
+ "z": "265dc029.a18eb8",
+ "wires": [
+ [
+ "145a15c9.c3f512"
+ ]
+ ]
+ },
+ {
+ "id": "145a15c9.c3f512",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 4294.25,
+ "y": 3008.00390625,
+ "z": "265dc029.a18eb8",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "7555fbf6.cdbdcc",
+ "type": "execute",
+ "name": "execute UUID generator for vpn-binding $otnidx",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='generateUUID' >\n<parameter name=\"ctx-destination\" value=\"prop.vpn-binding-otnidx-uuid\"/>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 3811.75,
+ "y": 2487.75,
+ "z": "265dc029.a18eb8",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "6602c404.9c0314",
+ "type": "switchNode",
+ "name": "switch otnidx == 0",
+ "xml": "<switch test='`$otnidx == 0`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 3687.75,
+ "y": 3125.75,
+ "z": "265dc029.a18eb8",
+ "wires": [
+ [
+ "ecf5d9ca.029638",
+ "7cbff457.bc10a4"
+ ]
+ ]
+ },
+ {
+ "id": "ecf5d9ca.029638",
+ "type": "outcomeTrue",
+ "name": "true",
+ "xml": "<outcome value='true'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 3870.75,
+ "y": 3125.75,
+ "z": "265dc029.a18eb8",
+ "wires": [
+ [
+ "8b66f50b.a495e"
+ ]
+ ]
+ },
+ {
+ "id": "7cbff457.bc10a4",
+ "type": "outcomeFalse",
+ "name": "false",
+ "xml": "<outcome value='false'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 3695.75,
+ "y": 3272.75,
+ "z": "265dc029.a18eb8",
+ "wires": [
+ [
+ "98fe960.02a01e8"
+ ]
+ ]
+ },
+ {
+ "id": "a6856d07.c2a888",
+ "type": "switchNode",
+ "name": "switch otnidx == last",
+ "xml": "<switch test='`$otnidx == $tmp.otninfo_length - 1`'>\n\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 4036.75,
+ "y": 3353.75,
+ "z": "265dc029.a18eb8",
+ "wires": [
+ [
+ "95cc5926.bc205",
+ "51ef39f3.21a02"
+ ]
+ ]
+ },
+ {
+ "id": "95cc5926.bc205",
+ "type": "outcomeTrue",
+ "name": "true",
+ "xml": "<outcome value='true'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 4221.75,
+ "y": 3354.75,
+ "z": "265dc029.a18eb8",
+ "wires": [
+ [
+ "7a243a1b.dc43dc"
+ ]
+ ]
+ },
+ {
+ "id": "51ef39f3.21a02",
+ "type": "outcomeFalse",
+ "name": "false",
+ "xml": "<outcome value='false'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 4240.75,
+ "y": 3620.75,
+ "z": "265dc029.a18eb8",
+ "wires": [
+ [
+ "d80d30d2.312238"
+ ]
+ ]
+ },
+ {
+ "id": "5262e36b.131f54",
+ "type": "save",
+ "name": "save connectivity-B relationship to vpn-binding-B, in AAI",
+ "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='vpn-binding:relationship-list' \n key='vpn-binding.vpn-id = $prop.vpn-binding-otnidx-uuid' \n force=\"true\" pfx=\"tmp.AnAI-data\">\n<parameter name=\"relationship-list.relationship[0].related-to\" value=\"connectivity\" />\n<parameter name=\"relationship-list.relationship[0].related-link\" value=\"`'/network/connectivities/connectivity/' + $prop.connectivity-domainB-uuid`\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-key\" value=\"connectivity.connectivity-id\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-value\" value=\"`$prop.connectivity-domainB-uuid`\" />",
+ "comments": "",
+ "outputs": 1,
+ "x": 4651.75,
+ "y": 3355.75,
+ "z": "265dc029.a18eb8",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "fe37c597.d52ae8",
+ "type": "execute",
+ "name": "execute UUID generator for connectivity domain otnidx",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='generateUUID' >\n<parameter name=\"ctx-destination\" value=\"uuid.connectivity-otnidx-uuid\"/>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 4725.75,
+ "y": 3653.75,
+ "z": "265dc029.a18eb8",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "f1eb5c8d.f0efd",
+ "type": "save",
+ "name": "save connectivity resource in AAI",
+ "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='connectivity' \n key='connectivity.connectivity-id = $uuid.connectivity-otnidx-uuid'>\n<parameter name='connectivity-id' value='`$uuid.connectivity-otnidx-uuid`' />\n<!--<parameter name='etht-svc-name' value='`$prop.ethernet-service-name`' />-->\n<parameter name='operational-status' value='Created' />\n<!--<parameter name='access-provider-id' value='`$tmp.otninfo[$otnidx].dstPort.dst-access-provider-id`' />-->\n<!--<parameter name='access-client-id' value='`$tmp.otninfo[$otnidx].dstPort.dst-access-client-id`' />-->\n<!--<parameter name='access-topology-id' value='`$tmp.otninfo[$otnidx].dstPort.dst-access-topology-id`' />-->\n<!--<parameter name='access-node-id' value='`$tmp.otninfo[$otnidx].srcPort.src-access-node-id`' />-->\n<!--<parameter name='access-ltp-id' value='``' />-->\n<!--<parameter name='cvlan' value='`$tmp.aai.network-route-A.logical-interface-id`' />-->\n\n<!--<parameter name='bandwidth-profile-name' value='`$prop.sotn.etht-svc-name`' />-->\n<parameter name='bandwidth-profile-name' value='`$gfp`' />\n<parameter name='vpn-type' value='dummy' />\n<parameter name='cir' value='`$gfp *1000000`' />\n<parameter name='eir' value='`$gfp *1000000`' />\n<!--<parameter name='cbs' value='`$prop.sotn.cbs`' />-->\n<!--<parameter name='ebs' value='`$prop.sotn.ebs`' />-->\n<!--<parameter name='color-aware' value='`$prop.sotn.colorAware`' />-->\n<!--<parameter name='coupling-flag' value='`$prop.sotn.couplingFlag`' />-->\n<!--<parameter name='etht-svc-name' value='`$prop.sotn.etht-svc-name`' />-->\n<!--<parameter name='model-customization-id' value='`$network-topology-operation-input.network-information.onap-model-information.model-customization-uuid`' />-->\n<!--<parameter name='model-invariant-id' value='`$network-topology-operation-input.network-information.onap-model-information.model-invariant-uuid`' />-->\n<!--<parameter name='model-version-id' value='`$network-topology-operation-input.network-information.onap-model-information.model-uuid`' />-->\n<parameter name='connectivity-selflink' value=\"`'restconf/config/GENERIC-RESOURCE-API:services/service/' + $network-topology-operation-input.service-information.service-instance-id + '/service-data/networks/network/' + $prop.sotn.network-id + '/network-data/'` \" />\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 4661.75,
+ "y": 3704.75,
+ "z": "265dc029.a18eb8",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "269da2fb.91d39e",
+ "type": "save",
+ "name": "save TNNSSI (transport service instance) relationship to connectivity in AAI",
+ "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='service-instance:relationship-list' \n key='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 force=\"true\" pfx=\"tmp.AnAI-data\">\n<parameter name=\"relationship-list.relationship[0].related-to\" value=\"connectivity\" />\n<parameter name=\"relationship-list.relationship[0].related-link\" value=\"`'/network/connectivities/connectivity/' + $uuid.connectivity-otnidx-uuid`\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-key\" value=\"connectivity.connectivity-id\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-value\" value=\"`$uuid.connectivity-otnidx-uuid`\" />\n\n\n<!--<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='service-instance:relationship-list' -->\n<!-- key='service-instance.service-instance-id = $service-data.service-information.service-instance-id -->\n<!-- AND customer.global-customer-id = $service-data.networks.network[$nidx].network-data.service-information.global-customer-id -->\n<!-- AND service-subscription.service-type = $service-data.networks.network[$nidx].network-data.service-information.subscription-service-type' -->\n<!-- force=\"true\" pfx=\"tmp.AnAI-data\">-->\n<!--<parameter name=\"relationship-list.relationship[0].related-to\" value=\"connectivity\" />-->\n<!--<parameter name=\"relationship-list.relationship[0].related-link\" value=\"`'/network/connectivities/connectivity/' + $prop.sotn.network-id`\" />-->\n<!--<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-key\" value=\"connectivity.connectivity-id\" />-->\n<!--<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-value\" value=\"`$prop.sotn.network-id`\" />-->",
+ "comments": "",
+ "outputs": 1,
+ "x": 4790.75,
+ "y": 3754.75,
+ "z": "265dc029.a18eb8",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "72735598.b392e4",
+ "type": "comment",
+ "name": "connectivity has not been created for middle domains, so we have to create one",
+ "info": "",
+ "comments": "",
+ "x": 4800.75,
+ "y": 3597.75,
+ "z": "265dc029.a18eb8",
+ "wires": []
+ },
+ {
+ "id": "c95e91b6.ee604",
+ "type": "save",
+ "name": "save connectivity-otnidx relationship to vpn-binding-otnidx, in AAI",
+ "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='vpn-binding:relationship-list' \n key='vpn-binding.vpn-id = $prop.vpn-binding-otnidx-uuid' \n force=\"true\" pfx=\"tmp.AnAI-data\">\n<parameter name=\"relationship-list.relationship[0].related-to\" value=\"connectivity\" />\n<parameter name=\"relationship-list.relationship[0].related-link\" value=\"`'/network/connectivities/connectivity/' + $uuid.connectivity-otnidx-uuid`\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-key\" value=\"connectivity.connectivity-id\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-value\" value=\"`$uuid.connectivity-otnidx-uuid`\" />",
+ "comments": "",
+ "outputs": 1,
+ "x": 4758.75,
+ "y": 3813.75,
+ "z": "265dc029.a18eb8",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "d80d30d2.312238",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 4397.75,
+ "y": 3621.75,
+ "z": "265dc029.a18eb8",
+ "wires": [
+ [
+ "fe37c597.d52ae8",
+ "f1eb5c8d.f0efd",
+ "269da2fb.91d39e",
+ "c95e91b6.ee604",
+ "e869dcfa.21d6a"
+ ]
+ ]
+ },
+ {
+ "id": "632d67d8.477b4",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 3229.75,
+ "y": 2573.7501220703125,
+ "z": "265dc029.a18eb8",
+ "wires": [
+ [
+ "7555fbf6.cdbdcc",
+ "509c5188.74c83",
+ "6602c404.9c0314",
+ "a7981473.cca18",
+ "67f8bed4.589038",
+ "84f21d5d.cb936",
+ "cf841c7f.9aedb"
+ ]
+ ]
+ },
+ {
+ "id": "355e2bbf.8d08b4",
+ "type": "set",
+ "name": "set attachment_param domain A",
+ "xml": "<set>\n<parameter name='slice-instance-id' value='`$tmp.aai.service-instance.service-instance-id`' />\n\n\n\n",
+ "comments": "",
+ "x": 4275.75,
+ "y": 3169.75,
+ "z": "265dc029.a18eb8",
+ "wires": []
+ },
+ {
+ "id": "5e65478a.e55ec8",
+ "type": "execute",
+ "name": "execute RestApiCallNode domainA UNI Coloring",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"templateFileName\" value=\"`$prop.restapi.templateDir + '/' + $prop.restapi.ts-coloring-uni-port.templatefile`\" />\n<parameter name=\"restapiUrl\" value=\"`$prop.sdncRestApi.thirdpartySdnc.domainA.url + '/restconf/data/ietf-network:networks/network=' + $tmp.domainA.eth-network-id + '/node=' + $tmp.src.pnf-name + '/ietf-network-topology:termination-point=' + $tmp.src.ltpId + '/ietf-te-topology: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": 4328.75,
+ "y": 3213.75,
+ "z": "265dc029.a18eb8",
+ "wires": [
+ [
+ "6aa94454.63c71c",
+ "8b32fc97.557eb"
+ ]
+ ]
+ },
+ {
+ "id": "8b32fc97.557eb",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 4599.75,
+ "y": 3198.75,
+ "z": "265dc029.a18eb8",
+ "wires": [
+ [
+ "25abbf8d.056b1"
+ ]
+ ]
+ },
+ {
+ "id": "6aa94454.63c71c",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 4597.750213623047,
+ "y": 3256.74990940094,
+ "z": "265dc029.a18eb8",
+ "wires": [
+ [
+ "e943d471.fc5ba"
+ ]
+ ]
+ },
+ {
+ "id": "25abbf8d.056b1",
+ "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 UNI Coloring for domain A\" />\n",
+ "comments": "",
+ "x": 4739.750247955322,
+ "y": 3198.7500009536743,
+ "z": "265dc029.a18eb8",
+ "wires": []
+ },
+ {
+ "id": "e943d471.fc5ba",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 4745.77725982666,
+ "y": 3247.495394706726,
+ "z": "265dc029.a18eb8",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "8b66f50b.a495e",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 4011.75,
+ "y": 3115.75,
+ "z": "265dc029.a18eb8",
+ "wires": [
+ [
+ "e45b6160.4b64a",
+ "355e2bbf.8d08b4"
+ ]
+ ]
+ },
+ {
+ "id": "7a243a1b.dc43dc",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 4355.75,
+ "y": 3355.75,
+ "z": "265dc029.a18eb8",
+ "wires": [
+ [
+ "5262e36b.131f54",
+ "74f9fcf1.d739a4"
+ ]
+ ]
+ },
+ {
+ "id": "74f9fcf1.d739a4",
+ "type": "set",
+ "name": "set attachment_param domain B",
+ "xml": "<set>\n<parameter name='slice-instance-id' value='`$tmp.aai.service-instance.service-instance-id`' />\n\n\n",
+ "comments": "",
+ "x": 4575.75,
+ "y": 3399.75,
+ "z": "265dc029.a18eb8",
+ "wires": []
+ },
+ {
+ "id": "14bf600d.e67a7",
+ "type": "execute",
+ "name": "execute RestApiCallNode domainB UNI Coloring",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"templateFileName\" value=\"`$prop.restapi.templateDir + '/' + $prop.restapi.ts-coloring-uni-port.templatefile`\" />\n<parameter name=\"restapiUrl\" value=\"`$prop.sdncRestApi.thirdpartySdnc.domainB.url + '/restconf/data/ietf-network:networks/network=' + $tmp.domainB.eth-network-id + '/node=' + $tmp.dst.pnf-name + '/ietf-network-topology:termination-point=' + $tmp.dst.ltpId + '/ietf-te-topology: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": 4626.75,
+ "y": 3443.75,
+ "z": "265dc029.a18eb8",
+ "wires": [
+ [
+ "b9df2951.d6312",
+ "2675c857.253648"
+ ]
+ ]
+ },
+ {
+ "id": "2675c857.253648",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 4889.75,
+ "y": 3423.75,
+ "z": "265dc029.a18eb8",
+ "wires": [
+ [
+ "ee37ae98.df0788"
+ ]
+ ]
+ },
+ {
+ "id": "b9df2951.d6312",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 4890.750213623047,
+ "y": 3474.74990940094,
+ "z": "265dc029.a18eb8",
+ "wires": [
+ [
+ "6b1e1b93.fd4064"
+ ]
+ ]
+ },
+ {
+ "id": "ee37ae98.df0788",
+ "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 UNI coloring for domain B\" />\n",
+ "comments": "",
+ "x": 5029.750247955322,
+ "y": 3423.7500009536743,
+ "z": "265dc029.a18eb8",
+ "wires": []
+ },
+ {
+ "id": "6b1e1b93.fd4064",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 5035.77725982666,
+ "y": 3472.495394706726,
+ "z": "265dc029.a18eb8",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "e869dcfa.21d6a",
+ "type": "set",
+ "name": "set attachment_param domain otnidx",
+ "xml": "<set>\n<parameter name='slice-instance-id' value='`$tmp.aai.service-instance.service-instance-id`' />\n\n",
+ "comments": "",
+ "x": 4672.75,
+ "y": 3873.75,
+ "z": "265dc029.a18eb8",
+ "wires": []
+ },
+ {
+ "id": "7226b3cc.67998c",
+ "type": "save",
+ "name": "get all-vpn-bindings from aai",
+ "xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\tresource=\"vpn-bindings\"\n\t key=\"selflink = 'https://aai.onap:8443/aai/v21/network/vpn-bindings\"\n\t\tlocal-only=\"false\" \n\t\tpfx=\"tmp.aai.all-vpn-bindings\" >\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1991.75,
+ "y": 4220.75,
+ "z": "265dc029.a18eb8",
+ "wires": [
+ [
+ "afb2b4e.a4009c8",
+ "c2c67e99.895238",
+ "f60b7df.b2997"
+ ]
+ ]
+ },
+ {
+ "id": "afb2b4e.a4009c8",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2179.75,
+ "y": 4233.75,
+ "z": "265dc029.a18eb8",
+ "wires": [
+ [
+ "81feb431.c2cd38"
+ ]
+ ]
+ },
+ {
+ "id": "c2c67e99.895238",
+ "type": "not-found",
+ "name": "not-found",
+ "xml": "<outcome value='not-found'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2180.240966796875,
+ "y": 4279.324035644531,
+ "z": "265dc029.a18eb8",
+ "wires": [
+ [
+ "63caf3db.7d3514"
+ ]
+ ]
+ },
+ {
+ "id": "f60b7df.b2997",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2177.75,
+ "y": 4322.75,
+ "z": "265dc029.a18eb8",
+ "wires": [
+ [
+ "bc2cc67c.a26e68"
+ ]
+ ]
+ },
+ {
+ "id": "81feb431.c2cd38",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "outputs": 1,
+ "x": 2352.75,
+ "y": 4231.75,
+ "z": "265dc029.a18eb8",
+ "wires": [
+ [
+ "799860e4.4d402"
+ ]
+ ]
+ },
+ {
+ "id": "63caf3db.7d3514",
+ "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": 2342.8123779296875,
+ "y": 4279.609771728516,
+ "z": "265dc029.a18eb8",
+ "wires": []
+ },
+ {
+ "id": "bc2cc67c.a26e68",
+ "type": "returnFailure",
+ "name": "return failure",
+ "xml": "<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value='' />\n",
+ "comments": "",
+ "x": 2344.75,
+ "y": 4321.75,
+ "z": "265dc029.a18eb8",
+ "wires": []
+ },
+ {
+ "id": "e9edd1fa.062c48",
+ "type": "for",
+ "name": "for vidx..tmp.otninfo_length[]",
+ "xml": "<for index='dmnsidx' start='0' end='`$otn-tunnel-slice_length`' >\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1980.75,
+ "y": 4411.75,
+ "z": "265dc029.a18eb8",
+ "wires": [
+ [
+ "213a40e6.50fa5"
+ ]
+ ]
+ },
+ {
+ "id": "ef976188.656f28",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 2790.75,
+ "y": 4411.75,
+ "z": "265dc029.a18eb8",
+ "wires": [
+ [
+ "17b05ad0.008d15"
+ ]
+ ]
+ },
+ {
+ "id": "21007b2.f080e84",
+ "type": "for",
+ "name": "for vidx..tmp.otninfo_length[]",
+ "xml": "<for index='stunidx' start='0' end='`$otn-tunnel-slice[$dmnsidx].list_length`' >\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2562.75,
+ "y": 4411.75,
+ "z": "265dc029.a18eb8",
+ "wires": [
+ [
+ "ef976188.656f28"
+ ]
+ ]
+ },
+ {
+ "id": "51229269.4b1c8c",
+ "type": "set",
+ "name": "set providerValue",
+ "xml": "<set>\n<parameter name='providerValue' value='`$tmp.aai.all-vpn-bindings.vpn-binding[$vpnbidx].access-provider-id`' />\n<parameter name='found' value='false' />\n\n\n",
+ "comments": "",
+ "x": 3682.75,
+ "y": 4178.75,
+ "z": "265dc029.a18eb8",
+ "wires": []
+ },
+ {
+ "id": "35c690e7.fe6c",
+ "type": "set",
+ "name": "set",
+ "xml": "<set>\n<parameter name='testingvalue' value='$tmp.otninfo_length -1' />\n",
+ "comments": "",
+ "x": 3984.75,
+ "y": 3304.75,
+ "z": "265dc029.a18eb8",
+ "wires": []
+ },
+ {
+ "id": "98fe960.02a01e8",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 3819.75,
+ "y": 3279.75,
+ "z": "265dc029.a18eb8",
+ "wires": [
+ [
+ "35c690e7.fe6c",
+ "a6856d07.c2a888"
+ ]
+ ]
+ },
+ {
+ "id": "50d31847.5f509",
+ "type": "set",
+ "name": "set tmp.arr",
+ "xml": "<set>\n<parameter name='tmp.arr' value='' />\n<parameter name='tmp.arridx' value='0' />\n<parameter name='tmp.arr_length' value='0' />\n\n<parameter name='otn-tunnel-slice' value='' />\n<parameter name='otn-tunnel-slice_length' value='0' />\n\n<!--<parameter name='tmp.slicevpns' value='' />-->\n<!--<parameter name='tmp.slicevpns_length' value='0' />-->\n\n<!--<parameter name='tmp.slicevpnuuids' value='' />-->\n<!--<parameter name='tmp.slicevpnuuids.' value='' />-->\n\n\n",
+ "comments": "",
+ "x": 1939.75,
+ "y": 295.75,
+ "z": "265dc029.a18eb8",
+ "wires": []
+ },
+ {
+ "id": "799860e4.4d402",
+ "type": "for",
+ "name": "for vpnidx in all-vpn-bindings",
+ "xml": "<for index='vpnbidx' start='0' end='`$tmp.aai.all-vpn-bindings.vpn-binding_length`' >\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2581.75,
+ "y": 4232.75,
+ "z": "265dc029.a18eb8",
+ "wires": [
+ [
+ "abc14f3.125f83"
+ ]
+ ]
+ },
+ {
+ "id": "abc14f3.125f83",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 2796.75,
+ "y": 4233.75,
+ "z": "265dc029.a18eb8",
+ "wires": [
+ [
+ "cf481547.940d"
+ ]
+ ]
+ },
+ {
+ "id": "22357a40.6f5826",
+ "type": "for",
+ "name": "for arridx in tmp.arr",
+ "xml": "<for index='arridx' start='0' end='`$tmp.arr_length`' >\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 4249.75,
+ "y": 4153.75,
+ "z": "265dc029.a18eb8",
+ "wires": [
+ [
+ "6890c215.76779c"
+ ]
+ ]
+ },
+ {
+ "id": "a03f6736.1a323",
+ "type": "switchNode",
+ "name": "switch $tmp.arr_length != 0",
+ "xml": "<switch test='`$tmp.arr_length != 0`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 3715.75,
+ "y": 4233.75,
+ "z": "265dc029.a18eb8",
+ "wires": [
+ [
+ "9db4f6d6.d9ce7",
+ "6099e33b.8b2e7c"
+ ]
+ ]
+ },
+ {
+ "id": "9db4f6d6.d9ce7",
+ "type": "outcomeTrue",
+ "name": "true",
+ "xml": "<outcome value='true'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 3911.75,
+ "y": 4203.75,
+ "z": "265dc029.a18eb8",
+ "wires": [
+ [
+ "6cbffd71.0d955c"
+ ]
+ ]
+ },
+ {
+ "id": "6099e33b.8b2e7c",
+ "type": "outcomeFalse",
+ "name": "false",
+ "xml": "<outcome value='false'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 3912.75,
+ "y": 4274.75,
+ "z": "265dc029.a18eb8",
+ "wires": [
+ [
+ "cb3a25fd.09afe8"
+ ]
+ ]
+ },
+ {
+ "id": "6cbffd71.0d955c",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 4062.75,
+ "y": 4201.75,
+ "z": "265dc029.a18eb8",
+ "wires": [
+ [
+ "22357a40.6f5826",
+ "691995c9.4a5b7c"
+ ]
+ ]
+ },
+ {
+ "id": "6890c215.76779c",
+ "type": "switchNode",
+ "name": "switch tmp.arr[$arridx] == $providerValue",
+ "xml": "<switch test='`$tmp.arr[$arridx] == $providerValue`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 4540.75,
+ "y": 4153.75,
+ "z": "265dc029.a18eb8",
+ "wires": [
+ [
+ "31547cc0.03bc84",
+ "df9fb700.28a918"
+ ]
+ ]
+ },
+ {
+ "id": "31547cc0.03bc84",
+ "type": "outcomeTrue",
+ "name": "true",
+ "xml": "<outcome value='true'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 4815.75,
+ "y": 4122.75,
+ "z": "265dc029.a18eb8",
+ "wires": [
+ [
+ "bf755b2.9db4a28"
+ ]
+ ]
+ },
+ {
+ "id": "df9fb700.28a918",
+ "type": "outcomeFalse",
+ "name": "false",
+ "xml": "<outcome value='false'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 4816.75,
+ "y": 4193.75,
+ "z": "265dc029.a18eb8",
+ "wires": [
+ [
+ "7fbeef42.b23dd"
+ ]
+ ]
+ },
+ {
+ "id": "bf755b2.9db4a28",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 4966.75,
+ "y": 4120.75,
+ "z": "265dc029.a18eb8",
+ "wires": [
+ [
+ "a9bad327.3607d8",
+ "47f11e50.783bc8",
+ "c8d8ebb6.b093d8",
+ "aab03464.9d75e",
+ "aa4f54f.319aaa8"
+ ]
+ ]
+ },
+ {
+ "id": "a9bad327.3607d8",
+ "type": "set",
+ "name": "set found to true",
+ "xml": "<set>\n<parameter name='found' value='true' />\n\n\n",
+ "comments": "",
+ "x": 5154.75,
+ "y": 4080.75,
+ "z": "265dc029.a18eb8",
+ "wires": []
+ },
+ {
+ "id": "47f11e50.783bc8",
+ "type": "save",
+ "name": "store $arridx somewhere in vpn-binding",
+ "xml": "<update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='vpn-binding' \n key='vpn-binding.vpn-id = $tmp.aai.all-vpn-bindings.vpn-binding[$vpnbidx].vpn-id' >\n<parameter name='vpn-id' value='`$tmp.aai.all-vpn-bindings.vpn-binding[$vpnbidx].vpn-id`' />\n<parameter name='vpn-type' value='`$arridx`' />\n\n\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 5226.75,
+ "y": 4125.75,
+ "z": "265dc029.a18eb8",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "aa4f54f.319aaa8",
+ "type": "set",
+ "name": "set twoD arr",
+ "xml": "<set>\n\n<!--<parameter name='`tmp.arr[$arridx + 1]`' value='`$providerValue`' />-->\n<!--<parameter name='tmp.arr_length' value='`$tmp.arr_length + 1`' />-->\n\n<parameter name='`otn-tunnel-slice[$arridx].list[$sizeOfSliceList].request-id`' value='`$tmp.aai.all-vpn-bindings.vpn-binding[$vpnbidx].vpn-id`' />\n<parameter name='`otn-tunnel-slice[$arridx].list[$sizeOfSliceList].otn-source-node`' value='`$tmp.aai.all-vpn-bindings.vpn-binding[$vpnbidx].src-access-node-id`' />\n<parameter name='`otn-tunnel-slice[$arridx].list[$sizeOfSliceList].otn-dest-node`' value='`$tmp.aai.all-vpn-bindings.vpn-binding[$vpnbidx].dst-access-node-id`' />\n<parameter name='`otn-tunnel-slice[$arridx].list[$sizeOfSliceList].bw-odu`' value=\"`'0,' + $gfp`\" />\n<parameter name='`otn-tunnel-slice[$arridx].list[$sizeOfSliceList].src-ttp-id`' value='`$tmp.aai.all-vpn-bindings.vpn-binding[$vpnbidx].src-access-ltp-id`' />\n<parameter name='`otn-tunnel-slice[$arridx].list[$sizeOfSliceList].dst-ttp-id`' value='`$tmp.aai.all-vpn-bindings.vpn-binding[$vpnbidx].dst-access-ltp-id`' />\n<parameter name='slice-instance-id' value='`$tmp.aai.service-instance.service-instance-id`' />\n\n<parameter name='`otn-tunnel-slice[$arridx].list[$sizeOfSliceList].domainurl`' value=\"`$tmp.aai.all-vpn-bindings.vpn-binding[$vpnbidx].vpn-region`\" />\n<parameter name='`otn-tunnel-slice[$arridx].list[$sizeOfSliceList].domainuser`' value='`$tmp.aai.all-vpn-bindings.vpn-binding[$vpnbidx].vpn-description`' />\n<parameter name='`otn-tunnel-slice[$arridx].list[$sizeOfSliceList].domainpassword`' value='`$tmp.aai.all-vpn-bindings.vpn-binding[$vpnbidx].vpn-platform`' />\n\n<!--<parameter name='otn-tunnel-slice_length' value='`$arridx + 2`' />-->\n<parameter name='`otn-tunnel-slice[$arridx].list_length`' value='`$sizeOfSliceList + 1`' />\n\n",
+ "comments": "",
+ "x": 5141.75,
+ "y": 4252.75,
+ "z": "265dc029.a18eb8",
+ "wires": []
+ },
+ {
+ "id": "aab03464.9d75e",
+ "type": "set",
+ "name": "set sizeOfSliceList",
+ "xml": "<set>\n<parameter name='sizeOfSliceList' value='`$otn-tunnel-slice[$arridx].list_length`' />\n\n\n",
+ "comments": "",
+ "x": 5162.75,
+ "y": 4188.75,
+ "z": "265dc029.a18eb8",
+ "wires": []
+ },
+ {
+ "id": "cb3a25fd.09afe8",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 4064.75,
+ "y": 4274.75,
+ "z": "265dc029.a18eb8",
+ "wires": [
+ [
+ "6bbef268.dd7bec",
+ "a07fd57f.628ce8"
+ ]
+ ]
+ },
+ {
+ "id": "6bbef268.dd7bec",
+ "type": "save",
+ "name": "store $arridx somewhere in vpn-binding",
+ "xml": "<update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='vpn-binding' \n key='vpn-binding.vpn-id = $tmp.aai.all-vpn-bindings.vpn-binding[$vpnbidx].vpn-id' >\n<parameter name='vpn-id' value='`$tmp.aai.all-vpn-bindings.vpn-binding[$vpnbidx].vpn-id`' />\n<parameter name='vpn-type' value='0' />\n\n\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 4319.75,
+ "y": 4267.75,
+ "z": "265dc029.a18eb8",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "a07fd57f.628ce8",
+ "type": "set",
+ "name": "set twoD array",
+ "xml": "<set>\n<parameter name='tmp.arr[0]' value='`$providerValue`' />\n<parameter name='tmp.arr_length' value='1' />\n\n<parameter name='`otn-tunnel-slice[0].list[0].request-id`' value='`$tmp.aai.all-vpn-bindings.vpn-binding[$vpnbidx].vpn-id`' />\n<parameter name='`otn-tunnel-slice[0].list[0].otn-source-node`' value='`$tmp.aai.all-vpn-bindings.vpn-binding[$vpnbidx].src-access-node-id`' />\n<parameter name='`otn-tunnel-slice[0].list[0].otn-dest-node`' value='`$tmp.aai.all-vpn-bindings.vpn-binding[$vpnbidx].dst-access-node-id`' />\n<parameter name='`otn-tunnel-slice[0].list[0].bw-odu`' value=\"`'0,' + $gfp`\" />\n<parameter name='`otn-tunnel-slice[0].list[0].src-ttp-id`' value='`$tmp.aai.all-vpn-bindings.vpn-binding[$vpnbidx].src-access-ltp-id`' />\n<parameter name='`otn-tunnel-slice[0].list[0].dst-ttp-id`' value='`$tmp.aai.all-vpn-bindings.vpn-binding[$vpnbidx].dst-access-ltp-id`' />\n<parameter name='slice-instance-id' value='`$tmp.aai.service-instance.service-instance-id`' />\n\n<parameter name='`otn-tunnel-slice[0].list[0].domainurl`' value=\"`$tmp.aai.all-vpn-bindings.vpn-binding[$vpnbidx].vpn-region`\" />\n<parameter name='`otn-tunnel-slice[0].list[0].domainuser`' value='`$tmp.aai.all-vpn-bindings.vpn-binding[$vpnbidx].vpn-description`' />\n<parameter name='`otn-tunnel-slice[0].list[0].domainpassword`' value='`$tmp.aai.all-vpn-bindings.vpn-binding[$vpnbidx].vpn-platform`' />\n\n<parameter name='otn-tunnel-slice_length' value='1' />\n<parameter name='otn-tunnel-slice[0].list_length' value='1' />\n\n",
+ "comments": "",
+ "x": 4247.75,
+ "y": 4314.75,
+ "z": "265dc029.a18eb8",
+ "wires": []
+ },
+ {
+ "id": "691995c9.4a5b7c",
+ "type": "switchNode",
+ "name": "switch found?",
+ "xml": "<switch test='`$found`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 4240.75,
+ "y": 4198.75,
+ "z": "265dc029.a18eb8",
+ "wires": [
+ [
+ "62e3ceb.ffa193",
+ "b6d5bce1.09744"
+ ]
+ ]
+ },
+ {
+ "id": "62e3ceb.ffa193",
+ "type": "outcomeTrue",
+ "name": "true",
+ "xml": "<outcome value='true'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 4400.75,
+ "y": 4190.75,
+ "z": "265dc029.a18eb8",
+ "wires": [
+ [
+ "1a17890a.8f540f"
+ ]
+ ]
+ },
+ {
+ "id": "b6d5bce1.09744",
+ "type": "outcomeFalse",
+ "name": "false",
+ "xml": "<outcome value='false'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 4398.75,
+ "y": 4227.75,
+ "z": "265dc029.a18eb8",
+ "wires": [
+ [
+ "5a545bc0.7dd69c"
+ ]
+ ]
+ },
+ {
+ "id": "1a17890a.8f540f",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 4525.75,
+ "y": 4190.75,
+ "z": "265dc029.a18eb8",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "f0fb3ac4.b3f8f",
+ "type": "save",
+ "name": "store $arridx+1 somewhere in vpn-binding",
+ "xml": "<update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='vpn-binding' \n key='vpn-binding.vpn-id = $tmp.aai.all-vpn-bindings.vpn-binding[$vpnbidx].vpn-id' >\n<parameter name='vpn-id' value='`$tmp.aai.all-vpn-bindings.vpn-binding[$vpnbidx].vpn-id`' />\n<parameter name='vpn-type' value='`$arridx + 1`' />\n\n\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 4832.75,
+ "y": 4248.75,
+ "z": "265dc029.a18eb8",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "5a545bc0.7dd69c",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 4558.75,
+ "y": 4235.75,
+ "z": "265dc029.a18eb8",
+ "wires": [
+ [
+ "f0fb3ac4.b3f8f",
+ "bad15fff.31fcb8"
+ ]
+ ]
+ },
+ {
+ "id": "bad15fff.31fcb8",
+ "type": "set",
+ "name": "set twoD array",
+ "xml": "<set>\n<parameter name='`tmp.arr[$arridx + 1]`' value='`$providerValue`' />\n<parameter name='tmp.arr_length' value='`$tmp.arr_length + 1`' />\n\n<parameter name='`otn-tunnel-slice[$arridx + 1].list[0].request-id`' value='`$tmp.aai.all-vpn-bindings.vpn-binding[$vpnbidx].vpn-id`' />\n<parameter name='`otn-tunnel-slice[$arridx + 1].list[0].otn-source-node`' value='`$tmp.aai.all-vpn-bindings.vpn-binding[$vpnbidx].src-access-node-id`' />\n<parameter name='`otn-tunnel-slice[$arridx + 1].list[0].otn-dest-node`' value='`$tmp.aai.all-vpn-bindings.vpn-binding[$vpnbidx].dst-access-node-id`' />\n<parameter name='`otn-tunnel-slice[$arridx + 1].list[0].bw-odu`' value=\"`'0,' + $gfp`\" />\n<parameter name='`otn-tunnel-slice[$arridx + 1].list[0].src-ttp-id`' value='`$tmp.aai.all-vpn-bindings.vpn-binding[$vpnbidx].src-access-ltp-id`' />\n<parameter name='`otn-tunnel-slice[$arridx + 1].list[0].dst-ttp-id`' value='`$tmp.aai.all-vpn-bindings.vpn-binding[$vpnbidx].dst-access-ltp-id`' />\n<parameter name='slice-instance-id' value='`$tmp.aai.service-instance.service-instance-id`' />\n\n<parameter name='`otn-tunnel-slice[$arridx + 1].list[0].domainurl`' value=\"`$tmp.aai.all-vpn-bindings.vpn-binding[$vpnbidx].vpn-region`\" />\n<parameter name='`otn-tunnel-slice[$arridx + 1].list[0].domainuser`' value='`$tmp.aai.all-vpn-bindings.vpn-binding[$vpnbidx].vpn-description`' />\n<parameter name='`otn-tunnel-slice[$arridx + 1].list[0].domainpassword`' value='`$tmp.aai.all-vpn-bindings.vpn-binding[$vpnbidx].vpn-platform`' />\n\n<parameter name='otn-tunnel-slice_length' value='`$arridx + 2`' />\n<parameter name='`otn-tunnel-slice[$arridx + 1].list_length`' value='1' />\n\n",
+ "comments": "",
+ "x": 4749.75,
+ "y": 4294.75,
+ "z": "265dc029.a18eb8",
+ "wires": []
+ },
+ {
+ "id": "7fbeef42.b23dd",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 4949.75,
+ "y": 4192.75,
+ "z": "265dc029.a18eb8",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "c8d8ebb6.b093d8",
+ "type": "break",
+ "name": "break",
+ "xml": "<break>\n",
+ "comments": "",
+ "x": 5120.75,
+ "y": 4319.75,
+ "z": "265dc029.a18eb8",
+ "wires": []
+ },
+ {
+ "id": "a7981473.cca18",
+ "type": "switchNode",
+ "name": "switch dstPort == NULL",
+ "xml": "<switch test=\"`$tmp.otninfo[$otnidx].dstPort.dst-access-provider-id == ''`\">\n\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 3521.75,
+ "y": 2577.7501220703125,
+ "z": "265dc029.a18eb8",
+ "wires": [
+ [
+ "c33d9535.8046e8",
+ "63062baf.1fbb34"
+ ]
+ ]
+ },
+ {
+ "id": "c33d9535.8046e8",
+ "type": "outcomeTrue",
+ "name": "true",
+ "xml": "<outcome value='true'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 3891.75,
+ "y": 2538.75,
+ "z": "265dc029.a18eb8",
+ "wires": [
+ [
+ "45a9cb43.516104"
+ ]
+ ]
+ },
+ {
+ "id": "63062baf.1fbb34",
+ "type": "outcomeFalse",
+ "name": "false",
+ "xml": "<outcome value='false'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 3892.75,
+ "y": 2584.75,
+ "z": "265dc029.a18eb8",
+ "wires": [
+ [
+ "f89446bd.e3f558"
+ ]
+ ]
+ },
+ {
+ "id": "45a9cb43.516104",
+ "type": "set",
+ "name": "set access-provider-id and client-id",
+ "xml": "<set>\n<parameter name='tmp.access-provider-id' value='`$tmp.otninfo[$otnidx].srcPort.src-access-provider-id`' />\n<parameter name='tmp.access-client-id' value='`$tmp.otninfo[$otnidx].srcPort.src-access-client-id`' />\n<parameter name='tmp.access-topology-id' value='`$tmp.otninfo[$otnidx].srcPort.src-access-topology-id`' />\n<parameter name='tmp.srcdstpnf-id' value='`$tmp.otninfo[$otnidx].srcPort.src-access-node-id`' />\n",
+ "comments": "",
+ "x": 4105.75,
+ "y": 2537.75,
+ "z": "265dc029.a18eb8",
+ "wires": []
+ },
+ {
+ "id": "f89446bd.e3f558",
+ "type": "set",
+ "name": "set access-provider-id and client-id",
+ "xml": "<set>\n<parameter name='tmp.access-provider-id' value='`$tmp.otninfo[$otnidx].dstPort.dst-access-provider-id`' />\n<parameter name='tmp.access-client-id' value='`$tmp.otninfo[$otnidx].dstPort.dst-access-client-id`' />\n<parameter name='tmp.access-topology-id' value='`$tmp.otninfo[$otnidx].dstPort.dst-access-topology-id`' />\n<parameter name='tmp.srcdstpnf-id' value='`$tmp.otninfo[$otnidx].dstPort.dst-access-node-id`' />\n",
+ "comments": "",
+ "x": 4103.75,
+ "y": 2582.75,
+ "z": "265dc029.a18eb8",
+ "wires": []
+ },
+ {
+ "id": "17b05ad0.008d15",
+ "type": "set",
+ "name": "set attachment_param sliceG",
+ "xml": "<set>\n<parameter name='`otn-tunnel-sliceG-list[$stunidx].request-id`' value='`$otn-tunnel-slice[$dmnsidx].list[$stunidx].request-id`' />\n<parameter name='`otn-tunnel-sliceG-list[$stunidx].otn-source-node`' value='`$otn-tunnel-slice[$dmnsidx].list[$stunidx].otn-source-node`' />\n<parameter name='`otn-tunnel-sliceG-list[$stunidx].otn-dest-node`' value='`$otn-tunnel-slice[$dmnsidx].list[$stunidx].otn-dest-node`' />\n<parameter name='`otn-tunnel-sliceG-list[$stunidx].bw-odu`' value=\"`$otn-tunnel-slice[$dmnsidx].list[$stunidx].bw-odu`\" />\n<parameter name='`otn-tunnel-sliceG-list[$stunidx].src-ttp-id`' value='`$otn-tunnel-slice[$dmnsidx].list[$stunidx].src-ttp-id`' />\n<parameter name='`otn-tunnel-sliceG-list[$stunidx].dst-ttp-id`' value='`$otn-tunnel-slice[$dmnsidx].list[$stunidx].dst-ttp-id`' />\n<parameter name='slice-instance-id' value='`$tmp.aai.service-instance.service-instance-id`' />\n\n<parameter name='otn-tunnel-sliceG-list_length' value='`$stunidx + 1`' />\n\n\n<parameter name=\"tmp.domainG.restapiUrl\" value=\"`$otn-tunnel-slice[$dmnsidx].list[$stunidx].domainurl`\" />\n<parameter name=\"tmp.domainG.restapiUser\" value=\"`$otn-tunnel-slice[$dmnsidx].list[$stunidx].domainuser`\" />\n<parameter name=\"tmp.domainG.restapiPassword\" value=\"`$otn-tunnel-slice[$dmnsidx].list[$stunidx].domainpassword`\" />",
+ "comments": "",
+ "x": 3043.75,
+ "y": 4409.75,
+ "z": "265dc029.a18eb8",
+ "wires": []
+ },
+ {
+ "id": "7cf6092b.1331b",
+ "type": "execute",
+ "name": "execute RestApiCallNode sliceG creation domainG",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"templateFileName\" value=\"`$prop.restapi.templateDir + '/' + $prop.restapi.transport-sliceG-list-creation.templatefile`\" />\n<parameter name=\"restapiUrl\" value=\"`$tmp.domainG.restapiUrl + '/restconf/operations/ietf-optical-slice:create-optical-slice'`\" />\n<parameter name=\"restapiUser\" value=\"`$tmp.domainG.restapiUser`\" />\n<parameter name=\"restapiPassword\" value=\"`tmp.domainG.restapiPassword`\" />\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`\" />\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2628.75,
+ "y": 4517.75,
+ "z": "265dc029.a18eb8",
+ "wires": [
+ [
+ "37bbe2d.a04a59e",
+ "ec906b95.a9e49"
+ ]
+ ]
+ },
+ {
+ "id": "ec906b95.a9e49",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2911.75,
+ "y": 4497.75,
+ "z": "265dc029.a18eb8",
+ "wires": [
+ [
+ "4e96bd46.3d74cc"
+ ]
+ ]
+ },
+ {
+ "id": "37bbe2d.a04a59e",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2912.750213623047,
+ "y": 4548.74990940094,
+ "z": "265dc029.a18eb8",
+ "wires": [
+ [
+ "9691327c.3cba08"
+ ]
+ ]
+ },
+ {
+ "id": "4e96bd46.3d74cc",
+ "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 slice creation api for domain A\" />\n",
+ "comments": "",
+ "x": 3051.7502479553223,
+ "y": 4497.750000953674,
+ "z": "265dc029.a18eb8",
+ "wires": []
+ },
+ {
+ "id": "9691327c.3cba08",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 3057.77725982666,
+ "y": 4546.495394706726,
+ "z": "265dc029.a18eb8",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "67f8bed4.589038",
+ "type": "set",
+ "name": "set srcdstpnf-name",
+ "xml": "<set>\n<parameter name='tmp.srcdstpnf-name' value=\"`'networkId-providerId-' + \n $tmp.access-provider-id + '-clientId-' +\n $tmp.access-client-id + '-topologyId-' + \n $tmp.access-topology-id + '-nodeId-' + \n $tmp.srcdstpnf-id`\" />\n\n",
+ "comments": "",
+ "x": 3701.75,
+ "y": 2651.75,
+ "z": "265dc029.a18eb8",
+ "wires": []
+ },
+ {
+ "id": "84f21d5d.cb936",
+ "type": "get-resource",
+ "name": "get-resource tmp.srcdstpnf-name",
+ "xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\t\tresource=\"pnf\" \n\t\tkey=\"pnf.pnf-name = $tmp.srcdstpnf-name\"\n pfx='tmp.aai.srcdst-pnf' local-only='false' >\n\n <!--AND depth = '0'\"-->\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 3745.75,
+ "y": 2699.75,
+ "z": "265dc029.a18eb8",
+ "wires": [
+ [
+ "843896b4.ca2438",
+ "ac8c03cf.0b987",
+ "317bf09e.750c58"
+ ]
+ ]
+ },
+ {
+ "id": "843896b4.ca2438",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 3958.25,
+ "y": 2646.75,
+ "z": "265dc029.a18eb8",
+ "wires": [
+ [
+ "6887d40d.f6aafc"
+ ]
+ ]
+ },
+ {
+ "id": "ac8c03cf.0b987",
+ "type": "not-found",
+ "name": "not-found",
+ "xml": "<outcome value='not-found'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 3970.25,
+ "y": 2696.75,
+ "z": "265dc029.a18eb8",
+ "wires": [
+ [
+ "1adffb9b.f04b4c"
+ ]
+ ]
+ },
+ {
+ "id": "317bf09e.750c58",
+ "type": "other",
+ "name": "other",
+ "xml": "<outcome value='Other'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 3961.25,
+ "y": 2751.75,
+ "z": "265dc029.a18eb8",
+ "wires": [
+ [
+ "1d79ff10.1f9c61"
+ ]
+ ]
+ },
+ {
+ "id": "1d79ff10.1f9c61",
+ "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": 4106.25,
+ "y": 2750.75,
+ "z": "265dc029.a18eb8",
+ "wires": []
+ },
+ {
+ "id": "1adffb9b.f04b4c",
+ "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": 4117.25,
+ "y": 2693.75,
+ "z": "265dc029.a18eb8",
+ "wires": []
+ },
+ {
+ "id": "6887d40d.f6aafc",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 4083.6324462890625,
+ "y": 2640.4056701660156,
+ "z": "265dc029.a18eb8",
+ "wires": [
+ [
+ "b8e05e44.e79d2"
+ ]
+ ]
+ },
+ {
+ "id": "9d661556.4c1148",
+ "type": "outcome",
+ "name": "esr-thirdparty-sdnc",
+ "xml": "<outcome value='esr-thirdparty-sdnc'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 4642.75,
+ "y": 2658.75,
+ "z": "265dc029.a18eb8",
+ "wires": [
+ [
+ "2a2f98dd.6349d"
+ ]
+ ]
+ },
+ {
+ "id": "2a2f98dd.6349d",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "outputs": 1,
+ "x": 4819.75,
+ "y": 2650.75,
+ "z": "265dc029.a18eb8",
+ "wires": [
+ [
+ "8fec35b6.fb7118",
+ "8057ed3d.b8b71"
+ ]
+ ]
+ },
+ {
+ "id": "b8e05e44.e79d2",
+ "type": "for",
+ "name": "for each relationship",
+ "xml": "<for silentFailure='true' index='spvidx' start='0' end='`$tmp.aai.srcdst-pnf.relationship-list.relationship_length`' >\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 4244.75,
+ "y": 2654.75,
+ "z": "265dc029.a18eb8",
+ "wires": [
+ [
+ "20794f9a.c05a58"
+ ]
+ ]
+ },
+ {
+ "id": "20794f9a.c05a58",
+ "type": "switchNode",
+ "name": "switch related-to",
+ "xml": "<switch test='`$tmp.aai.srcdst-pnf.relationship-list.relationship[$spvidx].related-to`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 4439.75,
+ "y": 2654.75,
+ "z": "265dc029.a18eb8",
+ "wires": [
+ [
+ "9d661556.4c1148"
+ ]
+ ]
+ },
+ {
+ "id": "8057ed3d.b8b71",
+ "type": "execute",
+ "name": "get esr-thirdparty-sdnc",
+ "xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\t\tresource=\"esr-thirdparty-sdnc\" \n\t\tkey=\"esr-thirdparty-sdnc.thirdparty-sdnc-id = $tmp.domainG.esr-thirdparty-id AND \n\t\t depth = '1'\"\n pfx='tmp.aai.domainG.esr-thirdparty-sdnc' local-only='false' >",
+ "comments": "",
+ "outputs": 1,
+ "x": 5027.75,
+ "y": 2657.75,
+ "z": "265dc029.a18eb8",
+ "wires": [
+ [
+ "326bc8b9.4e89f8",
+ "c42e4071.ccae88",
+ "2f974d9f.6edb3a"
+ ]
+ ]
+ },
+ {
+ "id": "8fec35b6.fb7118",
+ "type": "set",
+ "name": "set esr-thirdparty-sdnc domainG id",
+ "xml": "<set>\n<parameter name='tmp.domainG.esr-thirdparty-id' value=\"`$tmp.aai.srcdst-pnf.relationship-list.relationship[$spvidx].relationship-data[0].relationship-value`\" />\n",
+ "comments": "",
+ "x": 5057.75,
+ "y": 2605.75,
+ "z": "265dc029.a18eb8",
+ "wires": []
+ },
+ {
+ "id": "326bc8b9.4e89f8",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 5237.75,
+ "y": 2648.75,
+ "z": "265dc029.a18eb8",
+ "wires": [
+ [
+ "bbcf0dbb.ad16f8"
+ ]
+ ]
+ },
+ {
+ "id": "c42e4071.ccae88",
+ "type": "not-found",
+ "name": "not-found",
+ "xml": "<outcome value='not-found'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 5229.75,
+ "y": 2703.75,
+ "z": "265dc029.a18eb8",
+ "wires": [
+ [
+ "5371f364.6c9824"
+ ]
+ ]
+ },
+ {
+ "id": "2f974d9f.6edb3a",
+ "type": "other",
+ "name": "other",
+ "xml": "<outcome value='Other'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 5234.75,
+ "y": 2760.75,
+ "z": "265dc029.a18eb8",
+ "wires": [
+ [
+ "32c39ad7.59b1f6"
+ ]
+ ]
+ },
+ {
+ "id": "32c39ad7.59b1f6",
+ "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": 5386.75,
+ "y": 2761.75,
+ "z": "265dc029.a18eb8",
+ "wires": []
+ },
+ {
+ "id": "5371f364.6c9824",
+ "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": 5397.75,
+ "y": 2706.75,
+ "z": "265dc029.a18eb8",
+ "wires": []
+ },
+ {
+ "id": "bbcf0dbb.ad16f8",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 5382.13232421875,
+ "y": 2646.4056701660156,
+ "z": "265dc029.a18eb8",
+ "wires": [
+ [
+ "3a973226.73340e"
+ ]
+ ]
+ },
+ {
+ "id": "3a973226.73340e",
+ "type": "set",
+ "name": "set controller domainA data",
+ "xml": "<set>\n<parameter name='prop.sdncRestApi.thirdpartySdnc.domainG.url' value=\"`$tmp.aai.domainG.esr-thirdparty-sdnc.esr-system-info-list.esr-system-info[0].service-url`\" />\n<parameter name='prop.sdncRestApi.thirdpartySdnc.domainG.user' value=\"`$tmp.aai.domainG.esr-thirdparty-sdnc.esr-system-info-list.esr-system-info[0].user-name`\" />\n<parameter name='prop.sdncRestApi.thirdpartySdnc.domainG.password' value=\"`$tmp.aai.domainG.esr-thirdparty-sdnc.esr-system-info-list.esr-system-info[0].password`\" />\n\n\n<!--<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >-->\n<!--<parameter name=\"restapiUrl\" value=\"`$prop.sdncRestApi.thirdpartySdnc.url + '/restconf/data/ietf-network:networks'`\" />-->\n<!--<parameter name=\"restapiUser\" value=\"`$prop.sdncRestApi.thirdpartySdnc.user`\" />-->\n<!--<parameter name=\"restapiPassword\" value=\"`$prop.sdncRestApi.thirdpartySdnc.password`\" />-->\n<!--<parameter name=\"format\" value=\"json\"/>-->\n<!--<parameter name=\"httpMethod\" value=\"get\"/>-->\n<!--<parameter name=\"responsePrefix\" value=\"topology\"/>-->\n<!--<parameter name=\"trustStoreFileName\" value=\"/opt/onap/sdnc/data/stores/truststore.onap.client.jks\"/>-->\n<!--<parameter name=\"trustStorePassword\" value=\"adminadmin\"/>-->\n<!--<parameter name=\"keyStoreFileName\" value=\"/opt/onap/sdnc/data/stores/sdnc.p12\"/>-->\n<!--<parameter name=\"keyStorePassword\" value=\"adminadmin\"/>-->\n",
+ "comments": "",
+ "x": 5596.75,
+ "y": 2642.75,
+ "z": "265dc029.a18eb8",
+ "wires": []
+ },
+ {
+ "id": "213a40e6.50fa5",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 2212.75,
+ "y": 4409.75,
+ "z": "265dc029.a18eb8",
+ "wires": [
+ [
+ "21007b2.f080e84",
+ "7cf6092b.1331b"
+ ]
+ ]
+ },
+ {
+ "id": "cf841c7f.9aedb",
+ "type": "switchNode",
+ "name": "switch dmnsidx == 0 (domainA)",
+ "xml": "<switch test='`$otnidx == 0`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 3715.75,
+ "y": 2868.75,
+ "z": "265dc029.a18eb8",
+ "wires": [
+ [
+ "1b951b0e.92335d",
+ "f7aacac2.db3d8"
+ ]
+ ]
+ },
+ {
+ "id": "1b951b0e.92335d",
+ "type": "outcomeTrue",
+ "name": "true",
+ "xml": "<outcome value='true'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 3916.75,
+ "y": 2866.75,
+ "z": "265dc029.a18eb8",
+ "wires": [
+ [
+ "9efec827.a86c9"
+ ]
+ ]
+ },
+ {
+ "id": "8c34835c.e791b",
+ "type": "set",
+ "name": "set pce-src-node",
+ "xml": "<set>\n<parameter name='tmp.pce-src-node' value='`$tmp.srcdstpnf-name`' />",
+ "comments": "",
+ "x": 4197.75,
+ "y": 2816.75,
+ "z": "265dc029.a18eb8",
+ "wires": []
+ },
+ {
+ "id": "b7bb7b24.1b292",
+ "type": "switchNode",
+ "name": "switch dmnsidx == last (domainB)",
+ "xml": "<switch test='`$otnidx == $tmp.otninfo_length - 1`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 4133.75,
+ "y": 2917.75,
+ "z": "265dc029.a18eb8",
+ "wires": [
+ [
+ "fd4b8583.fd9098",
+ "bed77cd6.05b48"
+ ]
+ ]
+ },
+ {
+ "id": "fd4b8583.fd9098",
+ "type": "outcomeTrue",
+ "name": "true",
+ "xml": "<outcome value='true'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 4363.75,
+ "y": 2913.75,
+ "z": "265dc029.a18eb8",
+ "wires": [
+ [
+ "16a0b639.60baea"
+ ]
+ ]
+ },
+ {
+ "id": "b96f50fd.127ab8",
+ "type": "set",
+ "name": "set attachment_param domain B",
+ "xml": "<set>\n<parameter name='tmp.domainG-src-access-node-id' value='`$tmp.otninfo[$otnidx].srcPort.src-access-node-id`' />\n<parameter name='tmp.domainG-dst-access-node-id' value='`$param-prefix-domainB[$param-prefix-domainB_length -3]`' />",
+ "comments": "",
+ "x": 4700.75,
+ "y": 2857.75,
+ "z": "265dc029.a18eb8",
+ "wires": []
+ },
+ {
+ "id": "f7aacac2.db3d8",
+ "type": "outcomeFalse",
+ "name": "false",
+ "xml": "<outcome value='false'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 3916.75,
+ "y": 2915.75,
+ "z": "265dc029.a18eb8",
+ "wires": [
+ [
+ "b7bb7b24.1b292"
+ ]
+ ]
+ },
+ {
+ "id": "bed77cd6.05b48",
+ "type": "outcomeFalse",
+ "name": "false",
+ "xml": "<outcome value='false'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 4364.75,
+ "y": 2959.75,
+ "z": "265dc029.a18eb8",
+ "wires": [
+ [
+ "6600d5fa.31b8fc"
+ ]
+ ]
+ },
+ {
+ "id": "6600d5fa.31b8fc",
+ "type": "set",
+ "name": "set attachment_param domain G",
+ "xml": "<set>\n<parameter name='tmp.domainG-src-access-node-id' value='`$tmp.otninfo[$otnidx].srcPort.src-access-node-id`' />\n<parameter name='tmp.domainG-dst-access-node-id' value='`$tmp.otninfo[$otnidx].dstPort.dst-access-node-id`' />",
+ "comments": "",
+ "x": 4578.75,
+ "y": 2959.75,
+ "z": "265dc029.a18eb8",
+ "wires": []
+ },
+ {
+ "id": "3048e42b.381204",
+ "type": "set",
+ "name": "set tmp.slicevpns",
+ "xml": "<set>\n<parameter name='`tmp.slicevpns[$tmp.slicevpns_length]`' value=\"`$prop.vpn-binding-otnidx-uuid`\" />\n<parameter name='tmp.slicevpns_length' value=\"`$tmp.slicevpns_length + 1`\" />\n\n<parameter name='`tmp.slicevpnuuids[$prop.vpn-binding-otnidx-uuid]`' value=\"`$prop.vpn-binding-otnidx-uuid`\" />\n\n",
+ "comments": "",
+ "x": 4476.75,
+ "y": 3008.75,
+ "z": "265dc029.a18eb8",
+ "wires": []
+ },
+ {
+ "id": "cf481547.940d",
+ "type": "switchNode",
+ "name": "switch vpnuuid is for this slice",
+ "xml": "<!--<switch test=\"`$tmp.slicevpnuuids[$tmp.aai.all-vpn-bindings.vpn-binding[$vpnbidx].vpn-id] != '' `\">-->\n\n<!-- Replace vpn-type with slice-id (a new attribbute in the latest AAI) -->\n<switch test=\"`$tmp.aai.all-vpn-bindings.vpn-binding[$vpnbidx].ops-note == $tmp.aai.service-instance.service-instance-id `\">\n\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 3040.75,
+ "y": 4232.75,
+ "z": "265dc029.a18eb8",
+ "wires": [
+ [
+ "8d7304cc.0aa318",
+ "ffcae489.323bb8"
+ ]
+ ]
+ },
+ {
+ "id": "8d7304cc.0aa318",
+ "type": "outcomeTrue",
+ "name": "true",
+ "xml": "<outcome value='true'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 3257.75,
+ "y": 4211.75,
+ "z": "265dc029.a18eb8",
+ "wires": [
+ [
+ "c5705cb.18e75a"
+ ]
+ ]
+ },
+ {
+ "id": "ffcae489.323bb8",
+ "type": "outcomeFalse",
+ "name": "false",
+ "xml": "<outcome value='false'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 3257.75,
+ "y": 4260.75,
+ "z": "265dc029.a18eb8",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "c5705cb.18e75a",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 3425.75,
+ "y": 4211.75,
+ "z": "265dc029.a18eb8",
+ "wires": [
+ [
+ "51229269.4b1c8c",
+ "a03f6736.1a323"
+ ]
+ ]
+ },
+ {
+ "id": "a574d94d.6c4aa8",
+ "type": "set",
+ "name": "set attachment_param domain A",
+ "xml": "<set>\n<parameter name='tmp.domainG-src-access-node-id' value='`$param-prefix-domainA[$param-prefix-domainA_length -3]`' />\n<parameter name='tmp.domainG-dst-access-node-id' value='`$tmp.otninfo[$otnidx].dstPort.dst-access-node-id`' />",
+ "comments": "",
+ "x": 4252.75,
+ "y": 2863.75,
+ "z": "265dc029.a18eb8",
+ "wires": []
+ },
+ {
+ "id": "9efec827.a86c9",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 4040.75,
+ "y": 2857.75,
+ "z": "265dc029.a18eb8",
+ "wires": [
+ [
+ "a574d94d.6c4aa8"
+ ]
+ ]
+ },
+ {
+ "id": "d2a8a4e9.34f1c8",
+ "type": "set",
+ "name": "set pce-src-node",
+ "xml": "<set>\n<parameter name='tmp.pce-dst-node' value='`$tmp.srcdstpnf-name`' />",
+ "comments": "",
+ "x": 4652.75,
+ "y": 2905.75,
+ "z": "265dc029.a18eb8",
+ "wires": []
+ },
+ {
+ "id": "16a0b639.60baea",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 4496.75,
+ "y": 2889.75,
+ "z": "265dc029.a18eb8",
+ "wires": [
+ [
+ "b96f50fd.127ab8"
+ ]
+ ]
+ },
+ {
+ "id": "bf3fdeb7.6e1648",
+ "type": "get-resource",
+ "name": "get-resource pnfs-list",
+ "xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\tresource=\"pnfs\"\n\t key=\"selflink = 'https://aai.onap:8443/aai/v25/network/pnfs?depth=0' depth = 0\"\n\t\tlocal-only=\"false\" \n\t\tpfx=\"ccsdkTopopnfs\" >",
+ "comments": "",
+ "outputs": 1,
+ "x": 1982.75,
+ "y": 154.75,
+ "z": "265dc029.a18eb8",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "b761fd8.2b6b08",
+ "type": "get-resource",
+ "name": "get-resource logical-links",
+ "xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\tresource=\"logical-links\"\n\t key=\"selflink = 'https://aai.onap:8443/aai/v25/network/logical-links?depth=0'\"\n\t\tlocal-only=\"false\" \n\t\tpfx=\"ccsdkTopologicalLinks\" >",
+ "comments": "",
+ "outputs": 1,
+ "x": 1994.75,
+ "y": 195.75,
+ "z": "265dc029.a18eb8",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "a66f6106.d6897",
+ "type": "comment",
+ "name": "The following two nodes are for PCE",
+ "info": "",
+ "comments": "",
+ "x": 2018.75,
+ "y": 117.75,
+ "z": "265dc029.a18eb8",
+ "wires": []
+ },
+ {
+ "id": "8f7720f3.7aae9",
+ "type": "set",
+ "name": "set tmp.arr",
+ "xml": "<set>\n<parameter name='tmp.arr.' value='' />\n<parameter name='tmp.arridx' value='0' />\n<parameter name='otn-tunnel-slice.' value='' />\n\n\n",
+ "comments": "",
+ "x": 1939.75,
+ "y": 241.75,
+ "z": "265dc029.a18eb8",
+ "wires": []
+ },
+ {
+ "id": "631d9619.9d9ee",
+ "type": "execute",
+ "name": "execute printContext",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='printContext' >\n <parameter name=\"filename\" value=\"`$filenamemm`\" />\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1592.75,
+ "y": 2373.7496337890625,
+ "z": "265dc029.a18eb8",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "1cbcaef8.fee281",
+ "type": "set",
+ "name": "set maxtpn",
+ "xml": "<set>\n<parameter name='maxtpn' value='`($maxtpn + $gfp)`' />",
+ "comments": "",
+ "x": 3656.75,
+ "y": 3056.75,
+ "z": "265dc029.a18eb8",
+ "wires": []
+ },
+ {
+ "id": "c3b37174.45567",
+ "type": "call",
+ "name": "call GENERIC-RESOURCE-API:tsli-vnf-topology-operation-find-maximum-used-tpn",
+ "xml": "<call module='GENERIC-RESOURCE-API' rpc='tsli-vnf-topology-operation-find-maximum-used-tpn' mode='sync' >\n\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1791.75,
+ "y": 2421.7498779296875,
+ "z": "265dc029.a18eb8",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "348e2352.849ddc",
+ "type": "switchNode",
+ "name": "switch src and dst same domain?",
+ "xml": "<switch test=\"`$param-prefix-domainA[$param-prefix-domainA_length -9] == $param-prefix-domainB[$param-prefix-domainB_length -9]`\">\n \n `\n\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1607.3334350585938,
+ "y": 2483.3336181640625,
+ "z": "265dc029.a18eb8",
+ "wires": [
+ [
+ "4a5bbbb8.21f4f4",
+ "f0483d5d.c65838"
+ ]
+ ]
+ },
+ {
+ "id": "4a5bbbb8.21f4f4",
+ "type": "outcomeTrue",
+ "name": "true",
+ "xml": "<outcome value='true'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1802.3333129882812,
+ "y": 2597.3336181640625,
+ "z": "265dc029.a18eb8",
+ "wires": [
+ [
+ "277d2781.ec4fb8"
+ ]
+ ]
+ },
+ {
+ "id": "f0483d5d.c65838",
+ "type": "outcomeFalse",
+ "name": "false",
+ "xml": "<outcome value='false'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1821.3333740234375,
+ "y": 2496.33349609375,
+ "z": "265dc029.a18eb8",
+ "wires": [
+ [
+ "69fab2f3.f4d724"
+ ]
+ ]
+ },
+ {
+ "id": "69fab2f3.f4d724",
+ "type": "call",
+ "name": "call GENERIC-RESOURCE-API:tsli-vnf-topology-operation-get-otn-tunnel-path-from-oof",
+ "xml": "<call module='GENERIC-RESOURCE-API' rpc='tsli-vnf-topology-operation-get-otn-tunnel-path-from-oof' mode='sync' >\n\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2228.6668701171875,
+ "y": 2502.6666259765625,
+ "z": "265dc029.a18eb8",
+ "wires": [
+ [
+ "41433a02.61754c"
+ ]
+ ]
+ },
+ {
+ "id": "277d2781.ec4fb8",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 1952.666748046875,
+ "y": 2597.6666259765625,
+ "z": "265dc029.a18eb8",
+ "wires": [
+ [
+ "db17525b.9cda9",
+ "98634dfa.681d6",
+ "59852974.659be",
+ "f9710261.9f9158"
+ ]
+ ]
+ },
+ {
+ "id": "41433a02.61754c",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 2655,
+ "y": 2502.3336181640625,
+ "z": "265dc029.a18eb8",
+ "wires": [
+ [
+ "cca04ac5.91465"
+ ]
+ ]
+ },
+ {
+ "id": "db17525b.9cda9",
+ "type": "execute",
+ "name": "execute UUID generator for vpn-binding $otnidx",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='generateUUID' >\n<parameter name=\"ctx-destination\" value=\"prop.vpn-binding-samedomain-uuid\"/>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2236.6666259765625,
+ "y": 2603.33349609375,
+ "z": "265dc029.a18eb8",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "98634dfa.681d6",
+ "type": "set",
+ "name": "set attachment_param Same Domain",
+ "xml": "<set>\n<parameter name='tmp.sameDomain-src-access-node-id' value='`$param-prefix-domainA[$param-prefix-domainA_length -3]`' />\n<parameter name='tmp.sameDomain-dst-access-node-id' value='`$param-prefix-domainB[$param-prefix-domainB_length -3]`' />\n",
+ "comments": "",
+ "x": 2204.6666259765625,
+ "y": 2663.66650390625,
+ "z": "265dc029.a18eb8",
+ "wires": []
+ },
+ {
+ "id": "59852974.659be",
+ "type": "save",
+ "name": "save vpn-binding same domain resource (aka. OTN) in AAI",
+ "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='vpn-binding' \n key='vpn-binding.vpn-id = $prop.vpn-binding-samedomain-uuid' >\n<parameter name='vpn-id' value='`$prop.vpn-binding-samedomain-uuid`' />\n<parameter name='vpn-name' value='`$prop.otn-tunnel-name`' />\n<!--<parameter name='customer-vpn-id' value='`($idx + 1) * 10`' />-->\n<parameter name='customer-vpn-id' value='`($maxtpn + $gfp)`' />\n<!--<parameter name='access-provider-id' value='`$tmp.otninfo[$otnidx].dstPort.dst-access-provider-id`' />-->\n<parameter name='access-provider-id' value='`$param-prefix-domainA[$param-prefix-domainA_length -9]`' />\n<!--<parameter name='access-client-id' value='`$tmp.otninfo[$otnidx].dstPort.dst-access-client-id`' />-->\n<parameter name='access-client-id' value='`$param-prefix-domainA[$param-prefix-domainA_length -7]`' />\n<!--<parameter name='access-topology-id' value='`$tmp.otninfo[$otnidx].dstPort.dst-access-topology-id`' />-->\n<parameter name='access-topology-id' value='`$param-prefix-domainA[$param-prefix-domainA_length -5]`' />\n<!--<parameter name='src-access-node-id' value='`$tmp.otninfo[$otnidx].srcPort.src-access-node-id`' />-->\n<parameter name='src-access-node-id' value='`$tmp.sameDomain-src-access-node-id`' />\n<!--<parameter name='src-access-ltp-id' value='`$tmp.otninfo[$otnidx].srcPort.src-tunnel-tp-id`' />-->\n<!--<parameter name='dst-access-node-id' value='`$tmp.otninfo[$otnidx].dstPort.dst-access-node-id`' />-->\n<parameter name='dst-access-node-id' value='`$tmp.sameDomain-dst-access-node-id`' />\n<!--<parameter name='dst-access-ltp-id' value='`$tmp.otninfo[$otnidx].dstPort.dst-tunnel-tp-id`' />-->\n<parameter name='route-distinguisher' value='`$gfp`' />\n<parameter name='operational-status' value='Created' />\n<!--<parameter name='model-customization-id' value='`$network-topology-operation-input.network-information.onap-model-information.model-customization-uuid`' />-->\n<!--<parameter name='model-invariant-id' value='`$network-topology-operation-input.network-information.onap-model-information.model-invariant-uuid`' />-->\n<!--<parameter name='model-version-id' value='`$network-topology-operation-input.network-information.onap-model-information.model-uuid`' />-->\n\n\n<parameter name='vpn-region' value='`$prop.sdncRestApi.thirdpartySdnc.domainG.url`' />\n<parameter name='vpn-description' value='`$prop.sdncRestApi.thirdpartySdnc.domainG.user`' />\n<parameter name='vpn-platform' value='`$prop.sdncRestApi.thirdpartySdnc.domainG.password`' />\n\n<!-- The following line is in lieu of vpn-binding.slice-id (new attribute in latest AAI) -->\n<parameter name='ops-note' value='`$tmp.aai.service-instance.service-instance-id`' />\n\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2269.9998779296875,
+ "y": 2719.66650390625,
+ "z": "265dc029.a18eb8",
+ "wires": [
+ [
+ "733c1bcc.d90d64"
+ ]
+ ]
+ },
+ {
+ "id": "733c1bcc.d90d64",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2586.9998779296875,
+ "y": 2721.66650390625,
+ "z": "265dc029.a18eb8",
+ "wires": [
+ [
+ "c2cbdd5e.c4e688"
+ ]
+ ]
+ },
+ {
+ "id": "c2cbdd5e.c4e688",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 2750.4998779296875,
+ "y": 2720.92041015625,
+ "z": "265dc029.a18eb8",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "9bdaad5a.e56e08",
+ "type": "call",
+ "name": "call GENERIC-RESOURCE-API:p2p-vnf-topology-operation-p2p-activate",
+ "xml": "<call module='GENERIC-RESOURCE-API' rpc='p2p-vnf-topology-operation-p2p-activate' mode='sync' >\n\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2186.666748046875,
+ "y": 4145.3330078125,
+ "z": "265dc029.a18eb8",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "f9710261.9f9158",
+ "type": "save",
+ "name": "save connectivity-domainA relationship to vpn-binding-sameDomain, in AAI",
+ "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='vpn-binding:relationship-list' \n key='vpn-binding.vpn-id = $prop.vpn-binding-samedomain-uuid' \n force=\"true\" pfx=\"tmp.AnAI-data\">\n<parameter name=\"relationship-list.relationship[0].related-to\" value=\"connectivity\" />\n<parameter name=\"relationship-list.relationship[0].related-link\" value=\"`'/network/connectivities/connectivity/' + $uuid.connectivity-domainA-uuid`\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-key\" value=\"connectivity.connectivity-id\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-value\" value=\"`$uuid.connectivity-domainA-uuid`\" />",
+ "comments": "",
+ "outputs": 1,
+ "x": 2318.666259765625,
+ "y": 2774.333251953125,
+ "z": "265dc029.a18eb8",
+ "wires": [
+ []
+ ]
+ }
+] \ No newline at end of file
diff --git a/platform-logic/generic-resource-api/src/main/json/p2p_eline/GENERIC-RESOURCE-API_p2p-vnf-topology-operation-p2p-deactivate.json b/platform-logic/generic-resource-api/src/main/json/p2p_eline/GENERIC-RESOURCE-API_p2p-vnf-topology-operation-p2p-deactivate.json
new file mode 100644
index 00000000..c9a977f4
--- /dev/null
+++ b/platform-logic/generic-resource-api/src/main/json/p2p_eline/GENERIC-RESOURCE-API_p2p-vnf-topology-operation-p2p-deactivate.json
@@ -0,0 +1,1062 @@
+[
+ {
+ "id": "7987293a.445a38",
+ "type": "dgstart",
+ "name": "DGSTART",
+ "outputs": 1,
+ "x": 167.75,
+ "y": 154,
+ "z": "316d1be5.aa32c4",
+ "wires": [
+ [
+ "45444450.d7f6dc"
+ ]
+ ]
+ },
+ {
+ "id": "45444450.d7f6dc",
+ "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": 299.0356903076172,
+ "y": 203.23810863494873,
+ "z": "316d1be5.aa32c4",
+ "wires": [
+ [
+ "ae3ab411.371d58"
+ ]
+ ]
+ },
+ {
+ "id": "ae3ab411.371d58",
+ "type": "method",
+ "name": "method tsli-vnf-topology-operation-trans-slice-deactivate",
+ "xml": "<method rpc='tsli-vnf-topology-operation-trans-slice-deactivate' mode='sync'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 302.1786193847656,
+ "y": 288.00003242492676,
+ "z": "316d1be5.aa32c4",
+ "wires": [
+ [
+ "d12b8d84.55791"
+ ]
+ ]
+ },
+ {
+ "id": "d12b8d84.55791",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "outputs": 1,
+ "x": 451.988037109375,
+ "y": 417.6666564941406,
+ "z": "316d1be5.aa32c4",
+ "wires": [
+ [
+ "1c123ec2.4b5549",
+ "134fd372.6771b5",
+ "ab4d5dd1.8ac7f"
+ ]
+ ]
+ },
+ {
+ "id": "1c123ec2.4b5549",
+ "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": 726.3216552734375,
+ "y": 684.59716796875,
+ "z": "316d1be5.aa32c4",
+ "wires": []
+ },
+ {
+ "id": "901e34f6.602458",
+ "type": "comment",
+ "name": "new for TransportSlicing",
+ "info": "",
+ "comments": "",
+ "x": 757.75,
+ "y": 359,
+ "z": "316d1be5.aa32c4",
+ "wires": []
+ },
+ {
+ "id": "134fd372.6771b5",
+ "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": 777.75,
+ "y": 455,
+ "z": "316d1be5.aa32c4",
+ "wires": [
+ [
+ "2d1d6b25.d0297c",
+ "507ea16f.c4686",
+ "afd8f070.eec4e8"
+ ]
+ ]
+ },
+ {
+ "id": "2d1d6b25.d0297c",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 996.75,
+ "y": 393,
+ "z": "316d1be5.aa32c4",
+ "wires": [
+ [
+ "97138a32.2f3f5"
+ ]
+ ]
+ },
+ {
+ "id": "507ea16f.c4686",
+ "type": "not-found",
+ "name": "not-found",
+ "xml": "<outcome value='not-found'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1006.240966796875,
+ "y": 435.57403564453125,
+ "z": "316d1be5.aa32c4",
+ "wires": [
+ [
+ "888faa2.34cabd8"
+ ]
+ ]
+ },
+ {
+ "id": "afd8f070.eec4e8",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 994.75,
+ "y": 482,
+ "z": "316d1be5.aa32c4",
+ "wires": [
+ [
+ "50c527ec.505a7"
+ ]
+ ]
+ },
+ {
+ "id": "888faa2.34cabd8",
+ "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": 1159.8123779296875,
+ "y": 438.8597717285156,
+ "z": "316d1be5.aa32c4",
+ "wires": []
+ },
+ {
+ "id": "50c527ec.505a7",
+ "type": "returnFailure",
+ "name": "return failure",
+ "xml": "<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value='' />\n",
+ "comments": "",
+ "x": 1163.75,
+ "y": 483,
+ "z": "316d1be5.aa32c4",
+ "wires": []
+ },
+ {
+ "id": "97138a32.2f3f5",
+ "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": 1193.75,
+ "y": 389,
+ "z": "316d1be5.aa32c4",
+ "wires": [
+ [
+ "73002c56.e20dcc"
+ ]
+ ]
+ },
+ {
+ "id": "73002c56.e20dcc",
+ "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": 1417.08349609375,
+ "y": 388.99993896484375,
+ "z": "316d1be5.aa32c4",
+ "wires": [
+ [
+ "f5ce1b9b.6f43c"
+ ]
+ ]
+ },
+ {
+ "id": "f5ce1b9b.6f43c",
+ "type": "outcome",
+ "name": "connectivity",
+ "xml": "<outcome value='connectivity'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1617.7501335144043,
+ "y": 390.00002098083496,
+ "z": "316d1be5.aa32c4",
+ "wires": [
+ [
+ "5b31678.585da18"
+ ]
+ ]
+ },
+ {
+ "id": "ab4d5dd1.8ac7f",
+ "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": 743.75,
+ "y": 403,
+ "z": "316d1be5.aa32c4",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "5b31678.585da18",
+ "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": 1855.75,
+ "y": 392,
+ "z": "316d1be5.aa32c4",
+ "wires": [
+ [
+ "7e6bd44c.4a0d84",
+ "3c965ca8.a0aa94",
+ "a01cc737.c0329"
+ ]
+ ]
+ },
+ {
+ "id": "7e6bd44c.4a0d84",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2063.75,
+ "y": 356,
+ "z": "316d1be5.aa32c4",
+ "wires": [
+ [
+ "acdeaad5.a6cc1"
+ ]
+ ]
+ },
+ {
+ "id": "3c965ca8.a0aa94",
+ "type": "not-found",
+ "name": "not-found",
+ "xml": "<outcome value='not-found'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2064.240966796875,
+ "y": 401.57403564453125,
+ "z": "316d1be5.aa32c4",
+ "wires": [
+ [
+ "905f7b79.76f648"
+ ]
+ ]
+ },
+ {
+ "id": "a01cc737.c0329",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2061.75,
+ "y": 445,
+ "z": "316d1be5.aa32c4",
+ "wires": [
+ [
+ "76441f4c.a06df"
+ ]
+ ]
+ },
+ {
+ "id": "905f7b79.76f648",
+ "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": 2226.8123779296875,
+ "y": 401.8597717285156,
+ "z": "316d1be5.aa32c4",
+ "wires": []
+ },
+ {
+ "id": "76441f4c.a06df",
+ "type": "returnFailure",
+ "name": "return failure",
+ "xml": "<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value='' />\n",
+ "comments": "",
+ "x": 2230.75,
+ "y": 446,
+ "z": "316d1be5.aa32c4",
+ "wires": []
+ },
+ {
+ "id": "40981562.d0dc0c",
+ "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": 2536.75,
+ "y": 445,
+ "z": "316d1be5.aa32c4",
+ "wires": [
+ [
+ "b886e1a9.d43df",
+ "4c757dd3.2c3a1c",
+ "490d4ff6.7bfb2"
+ ]
+ ]
+ },
+ {
+ "id": "29ed7f6b.7ef5c",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "outputs": 1,
+ "x": 2920.75,
+ "y": 445,
+ "z": "316d1be5.aa32c4",
+ "wires": [
+ [
+ "dbce8d50.3a5c2",
+ "697b34e.12e544c",
+ "595bb85e.e54e8",
+ "e28e0e7a.57d778"
+ ]
+ ]
+ },
+ {
+ "id": "b886e1a9.d43df",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2747.75,
+ "y": 447,
+ "z": "316d1be5.aa32c4",
+ "wires": [
+ [
+ "29ed7f6b.7ef5c"
+ ]
+ ]
+ },
+ {
+ "id": "4c757dd3.2c3a1c",
+ "type": "not-found",
+ "name": "not-found",
+ "xml": "<outcome value='not-found'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2748.240966796875,
+ "y": 492.57403564453125,
+ "z": "316d1be5.aa32c4",
+ "wires": [
+ [
+ "cd02fceb.e80ee8"
+ ]
+ ]
+ },
+ {
+ "id": "490d4ff6.7bfb2",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2745.75,
+ "y": 536,
+ "z": "316d1be5.aa32c4",
+ "wires": [
+ [
+ "10b6485e.f13c18"
+ ]
+ ]
+ },
+ {
+ "id": "10b6485e.f13c18",
+ "type": "returnFailure",
+ "name": "return failure",
+ "xml": "<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value='' />\n",
+ "comments": "",
+ "x": 2912.75,
+ "y": 535,
+ "z": "316d1be5.aa32c4",
+ "wires": []
+ },
+ {
+ "id": "cd02fceb.e80ee8",
+ "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": 2910.8123779296875,
+ "y": 492.8597717285156,
+ "z": "316d1be5.aa32c4",
+ "wires": []
+ },
+ {
+ "id": "acdeaad5.a6cc1",
+ "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": 2264.75,
+ "y": 351,
+ "z": "316d1be5.aa32c4",
+ "wires": [
+ [
+ "590f481d.6deaf8"
+ ]
+ ]
+ },
+ {
+ "id": "590f481d.6deaf8",
+ "type": "switchNode",
+ "name": "switch related-to",
+ "xml": "<switch test='`$tmp.aai.connectivity.relationship-list.relationship[$cridx].related-to`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2469.75,
+ "y": 351,
+ "z": "316d1be5.aa32c4",
+ "wires": [
+ [
+ "3e88a914.31d29e"
+ ]
+ ]
+ },
+ {
+ "id": "3e88a914.31d29e",
+ "type": "outcome",
+ "name": "vpn-binding",
+ "xml": "<outcome value='vpn-binding'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2635.75,
+ "y": 351,
+ "z": "316d1be5.aa32c4",
+ "wires": [
+ [
+ "d5611bfd.8b5ba8"
+ ]
+ ]
+ },
+ {
+ "id": "d5611bfd.8b5ba8",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "outputs": 1,
+ "x": 2798.75,
+ "y": 351,
+ "z": "316d1be5.aa32c4",
+ "wires": [
+ [
+ "40981562.d0dc0c"
+ ]
+ ]
+ },
+ {
+ "id": "dbce8d50.3a5c2",
+ "type": "set",
+ "name": "set pnf-name",
+ "xml": "<set>\n<parameter name='tmp.domain.pnf-name' value=\"`'networkId-providerId-' +\n $tmp.aai.vpn-binding.access-provider-id + '-clientId-' +\n $tmp.aai.vpn-binding.access-client-id + '-topologyId-' +\n $tmp.aai.vpn-binding.access-topology-id + '-nodeId-' +\n $tmp.aai.vpn-binding.src-access-node-id`\" />\n",
+ "comments": "",
+ "x": 3135.75,
+ "y": 155,
+ "z": "316d1be5.aa32c4",
+ "wires": []
+ },
+ {
+ "id": "697b34e.12e544c",
+ "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.domain.pnf-name\"\n pfx='tmp.aai.source-pnf' local-only='false' >\n\n <!--AND depth = '0'\"-->\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 3161.75,
+ "y": 272,
+ "z": "316d1be5.aa32c4",
+ "wires": [
+ [
+ "d00072ef.37f678",
+ "e25ba00b.85ab78",
+ "af08c977.c21ff8"
+ ]
+ ]
+ },
+ {
+ "id": "d00072ef.37f678",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 3357.2501220703125,
+ "y": 224,
+ "z": "316d1be5.aa32c4",
+ "wires": [
+ [
+ "5add0fc2.e455a8"
+ ]
+ ]
+ },
+ {
+ "id": "e25ba00b.85ab78",
+ "type": "not-found",
+ "name": "not-found",
+ "xml": "<outcome value='not-found'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 3349.2501220703125,
+ "y": 279,
+ "z": "316d1be5.aa32c4",
+ "wires": [
+ [
+ "e5b74ae2.bf4d7"
+ ]
+ ]
+ },
+ {
+ "id": "5add0fc2.e455a8",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 3501.6324462890625,
+ "y": 223.65567016601562,
+ "z": "316d1be5.aa32c4",
+ "wires": [
+ [
+ "7c91c82b.801f4"
+ ]
+ ]
+ },
+ {
+ "id": "7c91c82b.801f4",
+ "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": 3685.75,
+ "y": 222,
+ "z": "316d1be5.aa32c4",
+ "wires": [
+ [
+ "40f3da44.52c9bc"
+ ]
+ ]
+ },
+ {
+ "id": "40f3da44.52c9bc",
+ "type": "switchNode",
+ "name": "switch related-to",
+ "xml": "<switch test='`$tmp.aai.source-pnf.relationship-list.relationship[$spvidx].related-to`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 3880.75,
+ "y": 222,
+ "z": "316d1be5.aa32c4",
+ "wires": [
+ [
+ "ec33b794.fa679"
+ ]
+ ]
+ },
+ {
+ "id": "af08c977.c21ff8",
+ "type": "other",
+ "name": "other",
+ "xml": "<outcome value='Other'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 3354.2501220703125,
+ "y": 336,
+ "z": "316d1be5.aa32c4",
+ "wires": [
+ [
+ "d0c572d6.450d98"
+ ]
+ ]
+ },
+ {
+ "id": "d0c572d6.450d98",
+ "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": 3506.2501220703125,
+ "y": 337,
+ "z": "316d1be5.aa32c4",
+ "wires": []
+ },
+ {
+ "id": "e5b74ae2.bf4d7",
+ "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": 3517.2501220703125,
+ "y": 280,
+ "z": "316d1be5.aa32c4",
+ "wires": []
+ },
+ {
+ "id": "5f838eee.116ce",
+ "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.domain.esr-thirdparty-id AND \n\t\t depth = '1'\"\n pfx='tmp.aai.domain.esr-thirdparty-sdnc' local-only='false' >",
+ "comments": "",
+ "outputs": 1,
+ "x": 4468.75,
+ "y": 239,
+ "z": "316d1be5.aa32c4",
+ "wires": [
+ [
+ "50b81d5a.269cfc",
+ "baecba51.c84f4",
+ "3764c57a.2235a2"
+ ]
+ ]
+ },
+ {
+ "id": "c9bd9c8c.3dcca",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "outputs": 1,
+ "x": 4262.75,
+ "y": 226,
+ "z": "316d1be5.aa32c4",
+ "wires": [
+ [
+ "df5cc029.1b2a68",
+ "5f838eee.116ce",
+ "7167c2a2.e60ca4"
+ ]
+ ]
+ },
+ {
+ "id": "df5cc029.1b2a68",
+ "type": "set",
+ "name": "set esr-thirdparty-sdnc domain id",
+ "xml": "<set>\n<parameter name='tmp.domain.esr-thirdparty-id' value=\"`$tmp.aai.source-pnf.relationship-list.relationship[$spvidx].relationship-data[0].relationship-value`\" />\n",
+ "comments": "",
+ "x": 4498.75,
+ "y": 187,
+ "z": "316d1be5.aa32c4",
+ "wires": []
+ },
+ {
+ "id": "50b81d5a.269cfc",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 4678.75,
+ "y": 230,
+ "z": "316d1be5.aa32c4",
+ "wires": [
+ [
+ "cd3637d1.c154d8"
+ ]
+ ]
+ },
+ {
+ "id": "baecba51.c84f4",
+ "type": "not-found",
+ "name": "not-found",
+ "xml": "<outcome value='not-found'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 4670.75,
+ "y": 285,
+ "z": "316d1be5.aa32c4",
+ "wires": [
+ [
+ "47ed2855.6b69a"
+ ]
+ ]
+ },
+ {
+ "id": "3764c57a.2235a2",
+ "type": "other",
+ "name": "other",
+ "xml": "<outcome value='Other'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 4675.75,
+ "y": 342,
+ "z": "316d1be5.aa32c4",
+ "wires": [
+ [
+ "c2dbfa93.1077a"
+ ]
+ ]
+ },
+ {
+ "id": "c2dbfa93.1077a",
+ "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": 4827.75,
+ "y": 343,
+ "z": "316d1be5.aa32c4",
+ "wires": []
+ },
+ {
+ "id": "47ed2855.6b69a",
+ "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": 4838.75,
+ "y": 288,
+ "z": "316d1be5.aa32c4",
+ "wires": []
+ },
+ {
+ "id": "cd3637d1.c154d8",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 4823.13232421875,
+ "y": 227.65567016601562,
+ "z": "316d1be5.aa32c4",
+ "wires": [
+ [
+ "a315466.e353338"
+ ]
+ ]
+ },
+ {
+ "id": "ec33b794.fa679",
+ "type": "outcome",
+ "name": "esr-thirdparty-sdnc",
+ "xml": "<outcome value='esr-thirdparty-sdnc'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 4083.75,
+ "y": 226,
+ "z": "316d1be5.aa32c4",
+ "wires": [
+ [
+ "c9bd9c8c.3dcca"
+ ]
+ ]
+ },
+ {
+ "id": "a315466.e353338",
+ "type": "set",
+ "name": "set controller domain data",
+ "xml": "<set>\n<parameter name='prop.sdncRestApi.thirdpartySdnc.domain.url' value=\"`$tmp.aai.domain.esr-thirdparty-sdnc.esr-system-info-list.esr-system-info[0].service-url`\" />\n<parameter name='prop.sdncRestApi.thirdpartySdnc.domain.user' value=\"`$tmp.aai.domain.esr-thirdparty-sdnc.esr-system-info-list.esr-system-info[0].user-name`\" />\n<parameter name='prop.sdncRestApi.thirdpartySdnc.domain.password' value=\"`$tmp.aai.domain.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": 5037.75,
+ "y": 224,
+ "z": "316d1be5.aa32c4",
+ "wires": []
+ },
+ {
+ "id": "7167c2a2.e60ca4",
+ "type": "break",
+ "name": "break",
+ "xml": "<break>\n",
+ "comments": "",
+ "x": 4418.75,
+ "y": 303,
+ "z": "316d1be5.aa32c4",
+ "wires": []
+ },
+ {
+ "id": "921a6da5.facfa8",
+ "type": "execute",
+ "name": "execute RestApiCallNode Delete ethernet Service without token",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"restapiUrl\" value=\"`$prop.sdncRestApi.thirdpartySdnc.domain.url + '/restconf/data/ietf-eth-tran-service:etht-svc/etht-svc-instances=' + $tmp.aai.connectivity.etht-svc-name`\" />\n<!--<parameter name=\"restapiUrl\" value=\"`$prop.restapi.connection-oof-url`\" />-->\n<!--<parameter name=\"templateFileName\" value=\"`$prop.restapi.templateDir + '/sotn-ethernet-service.json'`\" />-->\n<parameter name=\"restapiUser\" value=\"`$prop.sdncRestApi.thirdpartySdnc.domain.user`\" />\n<parameter name=\"restapiPassword\" value=\"`$prop.sdncRestApi.thirdpartySdnc.domain.password`\" />\n<parameter name=\"format\" value=\"json\"/>\n<parameter name=\"httpMethod\" value=\"delete\"/>\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": 3796.75,
+ "y": 652,
+ "z": "316d1be5.aa32c4",
+ "wires": [
+ [
+ "f23ad1ae.7a421",
+ "2e318f27.a95f18"
+ ]
+ ]
+ },
+ {
+ "id": "f23ad1ae.7a421",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 4143.25,
+ "y": 645,
+ "z": "316d1be5.aa32c4",
+ "wires": [
+ [
+ "e679ed8f.b4a3b"
+ ]
+ ]
+ },
+ {
+ "id": "2e318f27.a95f18",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 4147.25,
+ "y": 685,
+ "z": "316d1be5.aa32c4",
+ "wires": [
+ [
+ "85d951e1.733df8"
+ ]
+ ]
+ },
+ {
+ "id": "85d951e1.733df8",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 4304.75,
+ "y": 685,
+ "z": "316d1be5.aa32c4",
+ "wires": [
+ [
+ "cd6438e5.f17948",
+ "9dae1cfd.fe5bb8",
+ "c8b6c5b0.42c5d"
+ ]
+ ]
+ },
+ {
+ "id": "e679ed8f.b4a3b",
+ "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 delete ethernet service rest api\" />\n",
+ "comments": "",
+ "x": 4301.25,
+ "y": 645,
+ "z": "316d1be5.aa32c4",
+ "wires": []
+ },
+ {
+ "id": "cd6438e5.f17948",
+ "type": "save",
+ "name": "update vpn-binding 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-binding.vpn-id' >\n<parameter name='vpn-id' value='`$tmp.aai.vpn-binding.vpn-id`' />\n<parameter name='vpn-name' value='`$tmp.aai.vpn-binding.vpn-name`' />\n\n<parameter name='operational-status' value='Deactivated' />\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 4633.25,
+ "y": 685,
+ "z": "316d1be5.aa32c4",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "9dae1cfd.fe5bb8",
+ "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.connectivity.connectivity-id'>\n<parameter name='connectivity-id' value='`$tmp.aai.connectivity.connectivity-id`' />\n<parameter name='operational-status' value='Deactivated' />\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 4560.25,
+ "y": 731,
+ "z": "316d1be5.aa32c4",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "595bb85e.e54e8",
+ "type": "execute",
+ "name": "execute RestApiCallNode Delete 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.domain.url + '/restconf/data/ietf-te:te/tunnels/tunnel=' + $tmp.aai.vpn-binding.vpn-name`\" />\n<parameter name=\"restapiUser\" value=\"`$prop.sdncRestApi.thirdpartySdnc.domain.user`\" />\n<parameter name=\"restapiPassword\" value=\"`$prop.sdncRestApi.thirdpartySdnc.domain.password`\" />\n<parameter name=\"format\" value=\"json\"/>\n<parameter name=\"httpMethod\" value=\"delete\"/>\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": 3264.75,
+ "y": 539,
+ "z": "316d1be5.aa32c4",
+ "wires": [
+ [
+ "3b1365ed.b0919a",
+ "2f6c4f0a.446848"
+ ]
+ ]
+ },
+ {
+ "id": "3b1365ed.b0919a",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 3597.25,
+ "y": 509,
+ "z": "316d1be5.aa32c4",
+ "wires": [
+ [
+ "fc7e9165.b22f48"
+ ]
+ ]
+ },
+ {
+ "id": "2f6c4f0a.446848",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 3602.25,
+ "y": 574,
+ "z": "316d1be5.aa32c4",
+ "wires": [
+ [
+ "12d60626.768032"
+ ]
+ ]
+ },
+ {
+ "id": "fc7e9165.b22f48",
+ "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 delete OTN tunnel rest api\" />\n",
+ "comments": "",
+ "x": 3773.25,
+ "y": 509,
+ "z": "316d1be5.aa32c4",
+ "wires": []
+ },
+ {
+ "id": "12d60626.768032",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 3768.75,
+ "y": 574,
+ "z": "316d1be5.aa32c4",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "e28e0e7a.57d778",
+ "type": "switchNode",
+ "name": "switch connectivity has ethernet service",
+ "xml": "<switch test='`$tmp.aai.connectivity.etht-svc-name`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 3202.75,
+ "y": 674,
+ "z": "316d1be5.aa32c4",
+ "wires": [
+ [
+ "58217adc.044174",
+ "7dc25247.ea55a4"
+ ]
+ ]
+ },
+ {
+ "id": "7dc25247.ea55a4",
+ "type": "other",
+ "name": "other",
+ "xml": "<outcome value='Other'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 3455.75,
+ "y": 652,
+ "z": "316d1be5.aa32c4",
+ "wires": [
+ [
+ "921a6da5.facfa8"
+ ]
+ ]
+ },
+ {
+ "id": "58217adc.044174",
+ "type": "outcome",
+ "name": "Null",
+ "xml": "<outcome value=''>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 3455.75,
+ "y": 708,
+ "z": "316d1be5.aa32c4",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "c8b6c5b0.42c5d",
+ "type": "save",
+ "name": "update service-instance resource in AAI",
+ "xml": "<update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='service-instance' \n key='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<parameter name='service-instance-id' value='`$tmp.aai.service-instance.service-instance-id`' />\n<parameter name='orchestration-status' value='Deactivated' />\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 4578,
+ "y": 784.75,
+ "z": "316d1be5.aa32c4",
+ "wires": [
+ []
+ ]
+ }
+] \ No newline at end of file
diff --git a/platform-logic/generic-resource-api/src/main/json/p2p_eline/GENERIC-RESOURCE-API_p2p-vnf-topology-operation-p2p-delete.json b/platform-logic/generic-resource-api/src/main/json/p2p_eline/GENERIC-RESOURCE-API_p2p-vnf-topology-operation-p2p-delete.json
new file mode 100644
index 00000000..1e28b050
--- /dev/null
+++ b/platform-logic/generic-resource-api/src/main/json/p2p_eline/GENERIC-RESOURCE-API_p2p-vnf-topology-operation-p2p-delete.json
@@ -0,0 +1,1058 @@
+[
+ {
+ "id": "1ffbc02a.2de6d",
+ "type": "dgstart",
+ "name": "DGSTART",
+ "outputs": 1,
+ "x": 133,
+ "y": 76,
+ "z": "e2fe7a53.da009",
+ "wires": [
+ [
+ "74e0b2b2.75108c"
+ ]
+ ]
+ },
+ {
+ "id": "74e0b2b2.75108c",
+ "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": 264.2856903076172,
+ "y": 125.23810863494873,
+ "z": "e2fe7a53.da009",
+ "wires": [
+ [
+ "f846ccbd.4406d8"
+ ]
+ ]
+ },
+ {
+ "id": "f846ccbd.4406d8",
+ "type": "method",
+ "name": "method tsli-vnf-topology-operation-trans-slice-delete",
+ "xml": "<method rpc='tsli-vnf-topology-operation-trans-slice-delete' mode='sync'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 267.4286193847656,
+ "y": 210.00003242492676,
+ "z": "e2fe7a53.da009",
+ "wires": [
+ [
+ "dc51143b.674018"
+ ]
+ ]
+ },
+ {
+ "id": "dc51143b.674018",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "outputs": 1,
+ "x": 417.238037109375,
+ "y": 339.6666564941406,
+ "z": "e2fe7a53.da009",
+ "wires": [
+ [
+ "45b2aaee.4a9d2c",
+ "3e78a125.3512fe",
+ "45ccee1d.26f07"
+ ]
+ ]
+ },
+ {
+ "id": "45b2aaee.4a9d2c",
+ "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": 713.5716552734375,
+ "y": 616.59716796875,
+ "z": "e2fe7a53.da009",
+ "wires": []
+ },
+ {
+ "id": "9ea4d60.c51a0a8",
+ "type": "comment",
+ "name": "new for TransportSlicing",
+ "info": "",
+ "comments": "",
+ "x": 745,
+ "y": 291,
+ "z": "e2fe7a53.da009",
+ "wires": []
+ },
+ {
+ "id": "3e78a125.3512fe",
+ "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\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": 765,
+ "y": 387,
+ "z": "e2fe7a53.da009",
+ "wires": [
+ [
+ "86ee6067.0c17a8",
+ "bf4bb2c3.815168",
+ "ac6196ae.1ef19"
+ ]
+ ]
+ },
+ {
+ "id": "86ee6067.0c17a8",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 984,
+ "y": 325,
+ "z": "e2fe7a53.da009",
+ "wires": [
+ [
+ "eb95b4de.4ca18"
+ ]
+ ]
+ },
+ {
+ "id": "bf4bb2c3.815168",
+ "type": "not-found",
+ "name": "not-found",
+ "xml": "<outcome value='not-found'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 993.490966796875,
+ "y": 367.57403564453125,
+ "z": "e2fe7a53.da009",
+ "wires": [
+ [
+ "4da0ff5c.9fdf8"
+ ]
+ ]
+ },
+ {
+ "id": "ac6196ae.1ef19",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 982,
+ "y": 414,
+ "z": "e2fe7a53.da009",
+ "wires": [
+ [
+ "49170b5b.8b327c"
+ ]
+ ]
+ },
+ {
+ "id": "4da0ff5c.9fdf8",
+ "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": 1147.0623779296875,
+ "y": 370.8597717285156,
+ "z": "e2fe7a53.da009",
+ "wires": []
+ },
+ {
+ "id": "49170b5b.8b327c",
+ "type": "returnFailure",
+ "name": "return failure",
+ "xml": "<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value='' />\n",
+ "comments": "",
+ "x": 1151,
+ "y": 415,
+ "z": "e2fe7a53.da009",
+ "wires": []
+ },
+ {
+ "id": "eb95b4de.4ca18",
+ "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": 1181,
+ "y": 321,
+ "z": "e2fe7a53.da009",
+ "wires": [
+ [
+ "4f2c512c.91fb8"
+ ]
+ ]
+ },
+ {
+ "id": "4f2c512c.91fb8",
+ "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": 1404.33349609375,
+ "y": 320.99993896484375,
+ "z": "e2fe7a53.da009",
+ "wires": [
+ [
+ "fa463b5.38a29c8"
+ ]
+ ]
+ },
+ {
+ "id": "fa463b5.38a29c8",
+ "type": "outcome",
+ "name": "connectivity",
+ "xml": "<outcome value='connectivity'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1605.0001335144043,
+ "y": 322.00002098083496,
+ "z": "e2fe7a53.da009",
+ "wires": [
+ [
+ "e51d2b5.f353758"
+ ]
+ ]
+ },
+ {
+ "id": "45ccee1d.26f07",
+ "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": 731,
+ "y": 335,
+ "z": "e2fe7a53.da009",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "e51d2b5.f353758",
+ "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": 1843,
+ "y": 324,
+ "z": "e2fe7a53.da009",
+ "wires": [
+ [
+ "bd96538d.fc9d98",
+ "d296a5a5.03f2d8",
+ "59d0b561.049ff4"
+ ]
+ ]
+ },
+ {
+ "id": "bd96538d.fc9d98",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2051,
+ "y": 288,
+ "z": "e2fe7a53.da009",
+ "wires": [
+ [
+ "a935f75b.7b8ae8"
+ ]
+ ]
+ },
+ {
+ "id": "d296a5a5.03f2d8",
+ "type": "not-found",
+ "name": "not-found",
+ "xml": "<outcome value='not-found'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2051.490966796875,
+ "y": 333.57403564453125,
+ "z": "e2fe7a53.da009",
+ "wires": [
+ [
+ "b4d9ea13.dc5c6"
+ ]
+ ]
+ },
+ {
+ "id": "59d0b561.049ff4",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2049,
+ "y": 377,
+ "z": "e2fe7a53.da009",
+ "wires": [
+ [
+ "cc59ead5.ab58f"
+ ]
+ ]
+ },
+ {
+ "id": "b4d9ea13.dc5c6",
+ "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": 2214.0623779296875,
+ "y": 333.8597717285156,
+ "z": "e2fe7a53.da009",
+ "wires": []
+ },
+ {
+ "id": "cc59ead5.ab58f",
+ "type": "returnFailure",
+ "name": "return failure",
+ "xml": "<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value='' />\n",
+ "comments": "",
+ "x": 2218,
+ "y": 378,
+ "z": "e2fe7a53.da009",
+ "wires": []
+ },
+ {
+ "id": "2055e9c.9575d16",
+ "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": 2524,
+ "y": 377,
+ "z": "e2fe7a53.da009",
+ "wires": [
+ [
+ "1719bc42.5de0cc",
+ "b2907373.b3b1a",
+ "fb17b477.f9109"
+ ]
+ ]
+ },
+ {
+ "id": "c87f5113.e0af38",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "outputs": 1,
+ "x": 2908,
+ "y": 377,
+ "z": "e2fe7a53.da009",
+ "wires": [
+ [
+ "1985ee34.d96bba",
+ "52698c53.01b1dc",
+ "6e17a44c.f8e15c",
+ "9562cdef.811fc8",
+ "51f18b3b.809efc",
+ "9405a159.40925",
+ "e776447c.da84c8"
+ ]
+ ]
+ },
+ {
+ "id": "1719bc42.5de0cc",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2735,
+ "y": 379,
+ "z": "e2fe7a53.da009",
+ "wires": [
+ [
+ "c87f5113.e0af38"
+ ]
+ ]
+ },
+ {
+ "id": "b2907373.b3b1a",
+ "type": "not-found",
+ "name": "not-found",
+ "xml": "<outcome value='not-found'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2735.490966796875,
+ "y": 424.57403564453125,
+ "z": "e2fe7a53.da009",
+ "wires": [
+ [
+ "34c1a665.03471a"
+ ]
+ ]
+ },
+ {
+ "id": "fb17b477.f9109",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2733,
+ "y": 468,
+ "z": "e2fe7a53.da009",
+ "wires": [
+ [
+ "8d4bf215.03d04"
+ ]
+ ]
+ },
+ {
+ "id": "8d4bf215.03d04",
+ "type": "returnFailure",
+ "name": "return failure",
+ "xml": "<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value='' />\n",
+ "comments": "",
+ "x": 2900,
+ "y": 467,
+ "z": "e2fe7a53.da009",
+ "wires": []
+ },
+ {
+ "id": "34c1a665.03471a",
+ "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": 2898.0623779296875,
+ "y": 424.8597717285156,
+ "z": "e2fe7a53.da009",
+ "wires": []
+ },
+ {
+ "id": "a935f75b.7b8ae8",
+ "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": 2252,
+ "y": 283,
+ "z": "e2fe7a53.da009",
+ "wires": [
+ [
+ "67091bed.864304"
+ ]
+ ]
+ },
+ {
+ "id": "67091bed.864304",
+ "type": "switchNode",
+ "name": "switch related-to",
+ "xml": "<switch test='`$tmp.aai.connectivity.relationship-list.relationship[$cridx].related-to`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2457,
+ "y": 283,
+ "z": "e2fe7a53.da009",
+ "wires": [
+ [
+ "4e4ac25c.008624"
+ ]
+ ]
+ },
+ {
+ "id": "4e4ac25c.008624",
+ "type": "outcome",
+ "name": "vpn-binding",
+ "xml": "<outcome value='vpn-binding'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2623,
+ "y": 283,
+ "z": "e2fe7a53.da009",
+ "wires": [
+ [
+ "7c62e56b.ccfd7c"
+ ]
+ ]
+ },
+ {
+ "id": "7c62e56b.ccfd7c",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "outputs": 1,
+ "x": 2786,
+ "y": 283,
+ "z": "e2fe7a53.da009",
+ "wires": [
+ [
+ "2055e9c.9575d16"
+ ]
+ ]
+ },
+ {
+ "id": "1985ee34.d96bba",
+ "type": "set",
+ "name": "set pnf-name",
+ "xml": "<set>\n<parameter name='tmp.domain.pnf-name' value=\"`'networkId-providerId-' +\n $tmp.aai.vpn-binding.access-provider-id + '-clientId-' +\n $tmp.aai.vpn-binding.access-client-id + '-topologyId-' +\n $tmp.aai.vpn-binding.access-topology-id + '-nodeId-' +\n $tmp.aai.vpn-binding.src-access-node-id`\" />\n",
+ "comments": "",
+ "x": 3123,
+ "y": 87,
+ "z": "e2fe7a53.da009",
+ "wires": []
+ },
+ {
+ "id": "52698c53.01b1dc",
+ "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.domain.pnf-name\"\n pfx='tmp.aai.source-pnf' local-only='false' >\n\n <!--AND depth = '0'\"-->\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 3149,
+ "y": 204,
+ "z": "e2fe7a53.da009",
+ "wires": [
+ [
+ "df3dfd24.e7243",
+ "21f9901e.5c5cb",
+ "23d5d99c.1069c6"
+ ]
+ ]
+ },
+ {
+ "id": "df3dfd24.e7243",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 3344.5001220703125,
+ "y": 156,
+ "z": "e2fe7a53.da009",
+ "wires": [
+ [
+ "b45e1015.15138"
+ ]
+ ]
+ },
+ {
+ "id": "21f9901e.5c5cb",
+ "type": "not-found",
+ "name": "not-found",
+ "xml": "<outcome value='not-found'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 3336.5001220703125,
+ "y": 211,
+ "z": "e2fe7a53.da009",
+ "wires": [
+ [
+ "77f6a688.81ce38"
+ ]
+ ]
+ },
+ {
+ "id": "b45e1015.15138",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 3488.8824462890625,
+ "y": 155.65567016601562,
+ "z": "e2fe7a53.da009",
+ "wires": [
+ [
+ "a3edca1c.ba087"
+ ]
+ ]
+ },
+ {
+ "id": "a3edca1c.ba087",
+ "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": 3673,
+ "y": 154,
+ "z": "e2fe7a53.da009",
+ "wires": [
+ [
+ "db4aebfd.10c0f"
+ ]
+ ]
+ },
+ {
+ "id": "db4aebfd.10c0f",
+ "type": "switchNode",
+ "name": "switch related-to",
+ "xml": "<switch test='`$tmp.aai.source-pnf.relationship-list.relationship[$spvidx].related-to`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 3868,
+ "y": 154,
+ "z": "e2fe7a53.da009",
+ "wires": [
+ [
+ "47e44765.fd9158"
+ ]
+ ]
+ },
+ {
+ "id": "23d5d99c.1069c6",
+ "type": "other",
+ "name": "other",
+ "xml": "<outcome value='Other'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 3341.5001220703125,
+ "y": 268,
+ "z": "e2fe7a53.da009",
+ "wires": [
+ [
+ "4952922a.0e6edc"
+ ]
+ ]
+ },
+ {
+ "id": "4952922a.0e6edc",
+ "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": 3493.5001220703125,
+ "y": 269,
+ "z": "e2fe7a53.da009",
+ "wires": []
+ },
+ {
+ "id": "77f6a688.81ce38",
+ "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": 3504.5001220703125,
+ "y": 212,
+ "z": "e2fe7a53.da009",
+ "wires": []
+ },
+ {
+ "id": "fa4dfe6b.cee79",
+ "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.domain.esr-thirdparty-id AND \n\t\t depth = '1'\"\n pfx='tmp.aai.domain.esr-thirdparty-sdnc' local-only='false' >",
+ "comments": "",
+ "outputs": 1,
+ "x": 4456,
+ "y": 171,
+ "z": "e2fe7a53.da009",
+ "wires": [
+ [
+ "cbb209f7.a6664",
+ "74e5e9b0.d9729",
+ "a328bb91.cda89"
+ ]
+ ]
+ },
+ {
+ "id": "3f03e2fb.b5f81e",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "outputs": 1,
+ "x": 4250,
+ "y": 158,
+ "z": "e2fe7a53.da009",
+ "wires": [
+ [
+ "8d9a188f.1a7a4",
+ "fa4dfe6b.cee79",
+ "920b64ba.47efa"
+ ]
+ ]
+ },
+ {
+ "id": "8d9a188f.1a7a4",
+ "type": "set",
+ "name": "set esr-thirdparty-sdnc domain id",
+ "xml": "<set>\n<parameter name='tmp.domain.esr-thirdparty-id' value=\"`$tmp.aai.source-pnf.relationship-list.relationship[$spvidx].relationship-data[0].relationship-value`\" />\n",
+ "comments": "",
+ "x": 4486,
+ "y": 119,
+ "z": "e2fe7a53.da009",
+ "wires": []
+ },
+ {
+ "id": "cbb209f7.a6664",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 4666,
+ "y": 162,
+ "z": "e2fe7a53.da009",
+ "wires": [
+ [
+ "d166346a.002478"
+ ]
+ ]
+ },
+ {
+ "id": "74e5e9b0.d9729",
+ "type": "not-found",
+ "name": "not-found",
+ "xml": "<outcome value='not-found'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 4658,
+ "y": 217,
+ "z": "e2fe7a53.da009",
+ "wires": [
+ [
+ "73697be7.45641c"
+ ]
+ ]
+ },
+ {
+ "id": "a328bb91.cda89",
+ "type": "other",
+ "name": "other",
+ "xml": "<outcome value='Other'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 4663,
+ "y": 274,
+ "z": "e2fe7a53.da009",
+ "wires": [
+ [
+ "482cf24f.1774ec"
+ ]
+ ]
+ },
+ {
+ "id": "482cf24f.1774ec",
+ "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": 4815,
+ "y": 275,
+ "z": "e2fe7a53.da009",
+ "wires": []
+ },
+ {
+ "id": "73697be7.45641c",
+ "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": 4826,
+ "y": 220,
+ "z": "e2fe7a53.da009",
+ "wires": []
+ },
+ {
+ "id": "d166346a.002478",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 4810.38232421875,
+ "y": 159.65567016601562,
+ "z": "e2fe7a53.da009",
+ "wires": [
+ [
+ "2f421760.45d288"
+ ]
+ ]
+ },
+ {
+ "id": "47e44765.fd9158",
+ "type": "outcome",
+ "name": "esr-thirdparty-sdnc",
+ "xml": "<outcome value='esr-thirdparty-sdnc'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 4071,
+ "y": 158,
+ "z": "e2fe7a53.da009",
+ "wires": [
+ [
+ "3f03e2fb.b5f81e"
+ ]
+ ]
+ },
+ {
+ "id": "2f421760.45d288",
+ "type": "set",
+ "name": "set controller domain data",
+ "xml": "<set>\n<parameter name='prop.sdncRestApi.thirdpartySdnc.domain.url' value=\"`$tmp.aai.domain.esr-thirdparty-sdnc.esr-system-info-list.esr-system-info[0].service-url`\" />\n<parameter name='prop.sdncRestApi.thirdpartySdnc.domain.user' value=\"`$tmp.aai.domain.esr-thirdparty-sdnc.esr-system-info-list.esr-system-info[0].user-name`\" />\n<parameter name='prop.sdncRestApi.thirdpartySdnc.domain.password' value=\"`$tmp.aai.domain.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": 5025,
+ "y": 156,
+ "z": "e2fe7a53.da009",
+ "wires": []
+ },
+ {
+ "id": "920b64ba.47efa",
+ "type": "break",
+ "name": "break",
+ "xml": "<break>\n",
+ "comments": "",
+ "x": 4406,
+ "y": 235,
+ "z": "e2fe7a53.da009",
+ "wires": []
+ },
+ {
+ "id": "9405a159.40925",
+ "type": "execute",
+ "name": "execute RestApiCallNode Delete transport slice without token",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"templateFileName\" value=\"`$prop.restapi.templateDir + '/' + $prop.restapi.transport-slice-creation.templatefile`\" />\n<parameter name=\"restapiUrl\" value=\"`$prop.sdncRestApi.thirdpartySdnc.domain.url + '/restconf/operations/ietf-optical-slice:deallocate-optical-slice'`\" />\n<parameter name=\"restapiUser\" value=\"`$prop.sdncRestApi.thirdpartySdnc.domain.user`\" />\n<parameter name=\"restapiPassword\" value=\"`$prop.sdncRestApi.thirdpartySdnc.domain.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`\" />\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 3273,
+ "y": 502,
+ "z": "e2fe7a53.da009",
+ "wires": [
+ [
+ "ecacf915.574818",
+ "e290fc99.96c1d8"
+ ]
+ ]
+ },
+ {
+ "id": "ecacf915.574818",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 3616.5,
+ "y": 497,
+ "z": "e2fe7a53.da009",
+ "wires": [
+ [
+ "6c0fb618.3be698"
+ ]
+ ]
+ },
+ {
+ "id": "e290fc99.96c1d8",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 3620.5,
+ "y": 537,
+ "z": "e2fe7a53.da009",
+ "wires": [
+ [
+ "735428f1.2ceb3"
+ ]
+ ]
+ },
+ {
+ "id": "735428f1.2ceb3",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 3778,
+ "y": 537,
+ "z": "e2fe7a53.da009",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "6c0fb618.3be698",
+ "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 deallocate transport slice rest api\" />\n",
+ "comments": "",
+ "x": 3774.5,
+ "y": 497,
+ "z": "e2fe7a53.da009",
+ "wires": []
+ },
+ {
+ "id": "6e17a44c.f8e15c",
+ "type": "set",
+ "name": "set attachment_param for TN NSSSI deleteion in PNC",
+ "xml": "<set>\n<parameter name='slice-instance-id' value='`$tmp.aai.service-instance.service-instance-id`' />\n\n",
+ "comments": "",
+ "x": 3249,
+ "y": 377,
+ "z": "e2fe7a53.da009",
+ "wires": []
+ },
+ {
+ "id": "9562cdef.811fc8",
+ "type": "save",
+ "name": "delete connectivity resource in AAI",
+ "xml": "<delete plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='connectivity' \n key='connectivity.connectivity-id = $tmp.aai.connectivity.connectivity-id'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 3179,
+ "y": 812,
+ "z": "e2fe7a53.da009",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "51f18b3b.809efc",
+ "type": "save",
+ "name": "delete vpn-binding resource in AAI",
+ "xml": "<delete plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='vpn-binding' \n key='vpn-binding.vpn-id = $tmp.aai.vpn-binding.vpn-id' >\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 3175,
+ "y": 856,
+ "z": "e2fe7a53.da009",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "9ec21c40.e14a88",
+ "type": "execute",
+ "name": "execute RestApiCallNode domain UNI deColoring",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<!--<parameter name=\"templateFileName\" value=\"`$prop.restapi.templateDir + '/' + $prop.restapi.ts-coloring-uni-port.templatefile`\" />-->\n<parameter name=\"restapiUrl\" value=\"`$prop.sdncRestApi.thirdpartySdnc.domain.url + '/restconf/data/ietf-network:networks/network=networkId-providerId-' + $tmp.aai.connectivity.access-provider-id + '-clientId-' + $tmp.aai.connectivity.access-client-id + '-topologyId-' + $tmp.aai.connectivity.access-topology-id + '/node=' + $tmp.aai.connectivity.access-node-id + '/ietf-network-topology:termination-point=' + $tmp.aai.connectivity.access-ltp-id + '/ietf-te-topology:te/ietf-optical-slice:slice-id-list=' + $slice-instance-id `\" />\n<parameter name=\"restapiUser\" value=\"`$prop.sdncRestApi.thirdpartySdnc.domain.user`\" />\n<parameter name=\"restapiPassword\" value=\"`$prop.sdncRestApi.thirdpartySdnc.domain.password`\" />\n<parameter name=\"format\" value=\"json\"/>\n<parameter name=\"httpMethod\" value=\"delete\"/>\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`\" />\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 3759,
+ "y": 676,
+ "z": "e2fe7a53.da009",
+ "wires": [
+ [
+ "f05a4dc0.054df",
+ "f0f39295.b7b9a8"
+ ]
+ ]
+ },
+ {
+ "id": "f0f39295.b7b9a8",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 4025,
+ "y": 656,
+ "z": "e2fe7a53.da009",
+ "wires": [
+ [
+ "b586e36a.93b3e8"
+ ]
+ ]
+ },
+ {
+ "id": "f05a4dc0.054df",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 4026.000213623047,
+ "y": 706.9999094009399,
+ "z": "e2fe7a53.da009",
+ "wires": [
+ [
+ "67ce9419.db502c"
+ ]
+ ]
+ },
+ {
+ "id": "b586e36a.93b3e8",
+ "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 decoloring UNI rest api\" />\n",
+ "comments": "",
+ "x": 4165.000247955322,
+ "y": 656.0000009536743,
+ "z": "e2fe7a53.da009",
+ "wires": []
+ },
+ {
+ "id": "67ce9419.db502c",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 4171.02725982666,
+ "y": 704.7453947067261,
+ "z": "e2fe7a53.da009",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "e776447c.da84c8",
+ "type": "switchNode",
+ "name": "switch connectivity has ethernet service",
+ "xml": "<switch test='`$tmp.aai.connectivity.etht-svc-name`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 3208,
+ "y": 693,
+ "z": "e2fe7a53.da009",
+ "wires": [
+ [
+ "a367a533.706f78",
+ "4d988de7.d09044"
+ ]
+ ]
+ },
+ {
+ "id": "4d988de7.d09044",
+ "type": "other",
+ "name": "other",
+ "xml": "<outcome value='Other'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 3446,
+ "y": 676,
+ "z": "e2fe7a53.da009",
+ "wires": [
+ [
+ "9ec21c40.e14a88"
+ ]
+ ]
+ },
+ {
+ "id": "a367a533.706f78",
+ "type": "outcome",
+ "name": "Null",
+ "xml": "<outcome value=''>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 3458,
+ "y": 743,
+ "z": "e2fe7a53.da009",
+ "wires": [
+ []
+ ]
+ }
+] \ No newline at end of file
diff --git a/platform-logic/generic-resource-api/src/main/json/p2p_eline/GENERIC-RESOURCE-API_p2p-vnf-topology-operation-p2p-modify.json b/platform-logic/generic-resource-api/src/main/json/p2p_eline/GENERIC-RESOURCE-API_p2p-vnf-topology-operation-p2p-modify.json
new file mode 100644
index 00000000..df10744c
--- /dev/null
+++ b/platform-logic/generic-resource-api/src/main/json/p2p_eline/GENERIC-RESOURCE-API_p2p-vnf-topology-operation-p2p-modify.json
@@ -0,0 +1,5647 @@
+[
+ {
+ "id": "b86b0fef.6d8f2",
+ "type": "dgstart",
+ "name": "DGSTART",
+ "outputs": 1,
+ "x": 228.56666564941406,
+ "y": 144.56666564941406,
+ "z": "25a21122.0e2cfe",
+ "wires": [
+ [
+ "2128d45c.da5aa4"
+ ]
+ ]
+ },
+ {
+ "id": "2128d45c.da5aa4",
+ "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": 453.85235595703125,
+ "y": 218.8047742843628,
+ "z": "25a21122.0e2cfe",
+ "wires": [
+ [
+ "70e99b08.a81814"
+ ]
+ ]
+ },
+ {
+ "id": "70e99b08.a81814",
+ "type": "method",
+ "name": "method tsli-vnf-topology-operation-trans-slice-modify",
+ "xml": "<method rpc='tsli-vnf-topology-operation-trans-slice-modify' mode='sync'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 459.9952697753906,
+ "y": 303.5666961669922,
+ "z": "25a21122.0e2cfe",
+ "wires": [
+ [
+ "3d648e68.8f83fa"
+ ]
+ ]
+ },
+ {
+ "id": "3d648e68.8f83fa",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "outputs": 1,
+ "x": 829.8047027587891,
+ "y": 328.2333526611328,
+ "z": "25a21122.0e2cfe",
+ "wires": [
+ [
+ "4898a5d2.c4814c",
+ "43d16cc8.33970c",
+ "dd074b01.699d5"
+ ]
+ ]
+ },
+ {
+ "id": "4898a5d2.c4814c",
+ "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": 1085.138198852539,
+ "y": 482.1636505126953,
+ "z": "25a21122.0e2cfe",
+ "wires": []
+ },
+ {
+ "id": "43d16cc8.33970c",
+ "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[$vnf-index].vnf-data.service-information.service-instance-id-->\n<!-- AND customer.global-customer-id = $service-data.vnfs.vnf[$vnf-index].vnf-data.service-information.global-customer-id -->\n<!-- AND service-subscription.service-type = $service-data.vnfs.vnf[$vnf-index].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<!--<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" -->\n<!--\tresource=\"service-instance\"-->\n<!--\tkey='service-instance.service-instance-id = $service-data.service-information.service-instance-id-->\n<!-- AND customer.global-customer-id = $service-data.vnfs.vnf[$vnf-index].vnf-data.service-information.global-customer-id -->\n<!-- AND service-subscription.service-type = $service-data.vnfs.vnf[$vnf-index].vnf-data.service-information.subscription-service-type'-->\n<!--\tlocal-only=\"false\"-->\n<!--\tforce=\"true\" pfx=\"tmp.aai.service-instance\">-->",
+ "comments": "",
+ "outputs": 1,
+ "x": 1152.566665649414,
+ "y": 301.56666564941406,
+ "z": "25a21122.0e2cfe",
+ "wires": [
+ [
+ "5739653.c5aef1c",
+ "4e5f3667.ce514",
+ "7d9553c0.a90d3c"
+ ]
+ ]
+ },
+ {
+ "id": "5739653.c5aef1c",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1377.566665649414,
+ "y": 159.56666564941406,
+ "z": "25a21122.0e2cfe",
+ "wires": [
+ [
+ "fc0ebeea.3842e8"
+ ]
+ ]
+ },
+ {
+ "id": "4e5f3667.ce514",
+ "type": "not-found",
+ "name": "not-found",
+ "xml": "<outcome value='not-found'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1373.057632446289,
+ "y": 229.1407012939453,
+ "z": "25a21122.0e2cfe",
+ "wires": [
+ [
+ "9ccb6432.a6f758"
+ ]
+ ]
+ },
+ {
+ "id": "7d9553c0.a90d3c",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1361.566665649414,
+ "y": 275.56666564941406,
+ "z": "25a21122.0e2cfe",
+ "wires": [
+ [
+ "2159c0a9.b6525"
+ ]
+ ]
+ },
+ {
+ "id": "fc0ebeea.3842e8",
+ "type": "switchNode",
+ "name": "switch allotted-resources_length != 0",
+ "xml": "<switch test='`$tmp.aai.service-instance.allotted-resources.allotted-resource_length != 0`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1616.566665649414,
+ "y": 156.56666564941406,
+ "z": "25a21122.0e2cfe",
+ "wires": [
+ [
+ "9f0f2f3b.2aa0c8",
+ "29eb9fec.58b94"
+ ]
+ ]
+ },
+ {
+ "id": "9ccb6432.a6f758",
+ "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": 1526.6290435791016,
+ "y": 232.4264373779297,
+ "z": "25a21122.0e2cfe",
+ "wires": []
+ },
+ {
+ "id": "2159c0a9.b6525",
+ "type": "returnFailure",
+ "name": "return failure",
+ "xml": "<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value='' />\n",
+ "comments": "",
+ "x": 1530.566665649414,
+ "y": 276.56666564941406,
+ "z": "25a21122.0e2cfe",
+ "wires": []
+ },
+ {
+ "id": "9f0f2f3b.2aa0c8",
+ "type": "outcomeTrue",
+ "name": "true",
+ "xml": "<outcome value='true'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1829.566665649414,
+ "y": 180.56666564941406,
+ "z": "25a21122.0e2cfe",
+ "wires": [
+ [
+ "c939819f.3d19a"
+ ]
+ ]
+ },
+ {
+ "id": "29eb9fec.58b94",
+ "type": "outcomeFalse",
+ "name": "false",
+ "xml": "<outcome value='false'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1831.566665649414,
+ "y": 120.56666564941406,
+ "z": "25a21122.0e2cfe",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "1c8a1ea6.0feed9",
+ "type": "comment",
+ "name": "new for TransportSlicing",
+ "info": "",
+ "comments": "",
+ "x": 1131.566665649414,
+ "y": 189.56666564941406,
+ "z": "25a21122.0e2cfe",
+ "wires": []
+ },
+ {
+ "id": "c939819f.3d19a",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 1774.566665649414,
+ "y": 362.56666564941406,
+ "z": "25a21122.0e2cfe",
+ "wires": [
+ [
+ "f0cde51e.fc048",
+ "5a4aff44.5be78",
+ "e781046f.1418e",
+ "127eaa7a.98449e",
+ "8780743f.a296a",
+ "323fc4b1.60fe74"
+ ]
+ ]
+ },
+ {
+ "id": "db6151f2.0aacb",
+ "type": "set",
+ "name": "set network-route-A",
+ "xml": "<set>\n<parameter name='network-route-A' value=\"`$tmp.aai.logical-link.link-name`\" />\n<!--<parameter name='network-route-A' value=\"`$tmp.aai.logical-link.link-id`\" />-->\n\n\n",
+ "comments": "",
+ "x": 4343.566665649414,
+ "y": 869.5666656494141,
+ "z": "25a21122.0e2cfe",
+ "wires": []
+ },
+ {
+ "id": "e016be81.6c64f",
+ "type": "set",
+ "name": "set network-route-B",
+ "xml": "<set>\n<parameter name='network-route-B' value=\"`$tmp.aai.logical-link.link-name2`\" />\n\n\n",
+ "comments": "",
+ "x": 4344.566665649414,
+ "y": 924.5666656494141,
+ "z": "25a21122.0e2cfe",
+ "wires": []
+ },
+ {
+ "id": "103cc7a8.7e9b88",
+ "type": "save",
+ "name": "get allotted-resource from aai",
+ "xml": "<!--<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" -->\n<!--\tresource=\"allotted-resource\"-->\n<!--\tkey='service-instance.service-instance-id = $service-data.vnfs.vnf[$vnf-index].vnf-data.service-information.service-instance-id-->\n<!-- AND customer.global-customer-id = $service-data.vnfs.vnf[$vnf-index].vnf-data.service-information.global-customer-id -->\n<!-- AND service-subscription.service-type = $service-data.vnfs.vnf[$vnf-index].vnf-data.service-information.subscription-service-type-->\n<!-- AND allotted-resource.id = $allotted-resource-id'-->\n<!--\tlocal-only=\"false\"-->\n<!--\tforce=\"true\" pfx=\"tmp.aai.allotted-resource\">-->\n\n<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\tresource=\"allotted-resource\"\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 AND allotted-resource.id = $allotted-resource-id'\n\tlocal-only=\"false\"\n\tforce=\"true\" pfx=\"tmp.aai.allotted-resource\">\n\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2300.566665649414,
+ "y": 319.56666564941406,
+ "z": "25a21122.0e2cfe",
+ "wires": [
+ [
+ "f2966e51.e2caf8",
+ "2b2db624.af7c1a",
+ "626f780f.86dfb8"
+ ]
+ ]
+ },
+ {
+ "id": "f2966e51.e2caf8",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2516.566665649414,
+ "y": 386.56666564941406,
+ "z": "25a21122.0e2cfe",
+ "wires": [
+ [
+ "8eff1c95.000698"
+ ]
+ ]
+ },
+ {
+ "id": "2b2db624.af7c1a",
+ "type": "not-found",
+ "name": "not-found",
+ "xml": "<outcome value='not-found'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2517.057632446289,
+ "y": 286.14064025878906,
+ "z": "25a21122.0e2cfe",
+ "wires": [
+ [
+ "e741338f.fadbb8"
+ ]
+ ]
+ },
+ {
+ "id": "626f780f.86dfb8",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2512.566665649414,
+ "y": 335.56666564941406,
+ "z": "25a21122.0e2cfe",
+ "wires": [
+ [
+ "2cb8a0b4.ed0f98"
+ ]
+ ]
+ },
+ {
+ "id": "e741338f.fadbb8",
+ "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": 2694.629165649414,
+ "y": 286.42640686035156,
+ "z": "25a21122.0e2cfe",
+ "wires": []
+ },
+ {
+ "id": "2cb8a0b4.ed0f98",
+ "type": "returnFailure",
+ "name": "return failure",
+ "xml": "<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value='' />\n",
+ "comments": "",
+ "x": 2694.566665649414,
+ "y": 335.56666564941406,
+ "z": "25a21122.0e2cfe",
+ "wires": []
+ },
+ {
+ "id": "1c10a7b4.762648",
+ "type": "save",
+ "name": "get logical-link from aai",
+ "xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\tresource=\"logical-link\"\n\tkey='logical-link.link-name = $logical-link-name'\n\tlocal-only=\"false\"\n\tforce=\"true\" pfx=\"tmp.aai.logical-link\">",
+ "comments": "",
+ "outputs": 1,
+ "x": 3569.566665649414,
+ "y": 840.5666656494141,
+ "z": "25a21122.0e2cfe",
+ "wires": [
+ [
+ "54f63921.d24288",
+ "11c3d54e.f4363b",
+ "e636914f.ca32e"
+ ]
+ ]
+ },
+ {
+ "id": "54f63921.d24288",
+ "type": "not-found",
+ "name": "not-found",
+ "xml": "<outcome value='not-found'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 3861.057632446289,
+ "y": 819.1406402587891,
+ "z": "25a21122.0e2cfe",
+ "wires": [
+ [
+ "4ad84bdb.1011e4"
+ ]
+ ]
+ },
+ {
+ "id": "11c3d54e.f4363b",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 3849.566665649414,
+ "y": 863.5666656494141,
+ "z": "25a21122.0e2cfe",
+ "wires": [
+ [
+ "611bd1d0.bbec68"
+ ]
+ ]
+ },
+ {
+ "id": "4ad84bdb.1011e4",
+ "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": 4009.629165649414,
+ "y": 819.4264068603516,
+ "z": "25a21122.0e2cfe",
+ "wires": []
+ },
+ {
+ "id": "611bd1d0.bbec68",
+ "type": "returnFailure",
+ "name": "return failure",
+ "xml": "<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value='' />\n",
+ "comments": "",
+ "x": 4008.566665649414,
+ "y": 863.5666656494141,
+ "z": "25a21122.0e2cfe",
+ "wires": []
+ },
+ {
+ "id": "e636914f.ca32e",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 3855.566665649414,
+ "y": 910.5666656494141,
+ "z": "25a21122.0e2cfe",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "4dddc413.6cd63c",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 4009.566665649414,
+ "y": 949.5666656494141,
+ "z": "25a21122.0e2cfe",
+ "wires": [
+ [
+ "db6151f2.0aacb",
+ "e016be81.6c64f",
+ "9f8998d0.ce9c48",
+ "44a9159e.85e724",
+ "8f0ab711.e0d798",
+ "d96045a7.1a29c8",
+ "7c9d6be0.59e3fc",
+ "5f01b0d6.663678",
+ "96f11e74.5cf9",
+ "32dd1d69.d1982a",
+ "fefb165c.6d9d48",
+ "afd6fb79.f36b6",
+ "1a397526.128d93"
+ ]
+ ]
+ },
+ {
+ "id": "9f8998d0.ce9c48",
+ "type": "save",
+ "name": "get network-route-A from aai",
+ "xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\tresource=\"network-route\"\n\tkey='network-route.route-id = $network-route-A'\n\tlocal-only=\"false\"\n\tforce=\"true\" pfx=\"tmp.aai.network-route-A\">",
+ "comments": "",
+ "outputs": 1,
+ "x": 4356.566665649414,
+ "y": 992.5666656494141,
+ "z": "25a21122.0e2cfe",
+ "wires": [
+ [
+ "ad94bc3e.2edb18",
+ "3c6b8cbe.35a074",
+ "e925e05d.5c3e7"
+ ]
+ ]
+ },
+ {
+ "id": "44a9159e.85e724",
+ "type": "save",
+ "name": "get network-route-B from aai",
+ "xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\tresource=\"network-route\"\n\tkey='network-route.route-id = $network-route-B'\n\tlocal-only=\"false\"\n\tforce=\"true\" pfx=\"tmp.aai.network-route-B\">",
+ "comments": "",
+ "outputs": 1,
+ "x": 4335.566665649414,
+ "y": 1594.5665435791016,
+ "z": "25a21122.0e2cfe",
+ "wires": [
+ [
+ "ce3181da.534ae8",
+ "dd474f13.0169c8",
+ "1e53e46c.6ee5dc"
+ ]
+ ]
+ },
+ {
+ "id": "ad94bc3e.2edb18",
+ "type": "not-found",
+ "name": "not-found",
+ "xml": "<outcome value='not-found'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 4557.566665649414,
+ "y": 876.5666656494141,
+ "z": "25a21122.0e2cfe",
+ "wires": [
+ [
+ "11095a88.1d6375"
+ ]
+ ]
+ },
+ {
+ "id": "3c6b8cbe.35a074",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 4553.075698852539,
+ "y": 925.9926910400391,
+ "z": "25a21122.0e2cfe",
+ "wires": [
+ [
+ "1c85f4a2.49e393"
+ ]
+ ]
+ },
+ {
+ "id": "e925e05d.5c3e7",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 4557.075698852539,
+ "y": 976.9926910400391,
+ "z": "25a21122.0e2cfe",
+ "wires": [
+ [
+ "7e7cdd76.7cfb84"
+ ]
+ ]
+ },
+ {
+ "id": "11095a88.1d6375",
+ "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": 4706.138198852539,
+ "y": 875.8524322509766,
+ "z": "25a21122.0e2cfe",
+ "wires": []
+ },
+ {
+ "id": "1c85f4a2.49e393",
+ "type": "returnFailure",
+ "name": "return failure",
+ "xml": "<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value='' />\n",
+ "comments": "",
+ "x": 4696.075698852539,
+ "y": 925.9926910400391,
+ "z": "25a21122.0e2cfe",
+ "wires": []
+ },
+ {
+ "id": "ce3181da.534ae8",
+ "type": "not-found",
+ "name": "not-found",
+ "xml": "<outcome value='not-found'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 4558.566665649414,
+ "y": 1564.5665435791016,
+ "z": "25a21122.0e2cfe",
+ "wires": [
+ [
+ "b22dee41.00f36"
+ ]
+ ]
+ },
+ {
+ "id": "dd474f13.0169c8",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 4554.075698852539,
+ "y": 1613.9925689697266,
+ "z": "25a21122.0e2cfe",
+ "wires": [
+ [
+ "6933584e.ecc31"
+ ]
+ ]
+ },
+ {
+ "id": "1e53e46c.6ee5dc",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 4558.075698852539,
+ "y": 1664.9925689697266,
+ "z": "25a21122.0e2cfe",
+ "wires": [
+ [
+ "b7fe5d85.6c90f"
+ ]
+ ]
+ },
+ {
+ "id": "b22dee41.00f36",
+ "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": 4707.138198852539,
+ "y": 1563.852310180664,
+ "z": "25a21122.0e2cfe",
+ "wires": []
+ },
+ {
+ "id": "6933584e.ecc31",
+ "type": "returnFailure",
+ "name": "return failure",
+ "xml": "<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value='' />\n",
+ "comments": "",
+ "x": 4697.075698852539,
+ "y": 1613.9925689697266,
+ "z": "25a21122.0e2cfe",
+ "wires": []
+ },
+ {
+ "id": "95843474.b9bce8",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "outputs": 1,
+ "x": 5371.233169555664,
+ "y": 1020.5666656494141,
+ "z": "25a21122.0e2cfe",
+ "wires": [
+ [
+ "b4615ea7.1bce1",
+ "be2e7ced.c4df",
+ "ce2c131b.42f24",
+ "71b17710.70c14",
+ "89a7842f.afd83"
+ ]
+ ]
+ },
+ {
+ "id": "4503129f.bd2fd4",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 5198.566665649414,
+ "y": 1021.5666656494141,
+ "z": "25a21122.0e2cfe",
+ "wires": [
+ [
+ "95843474.b9bce8"
+ ]
+ ]
+ },
+ {
+ "id": "8659354b.96b4a",
+ "type": "not-found",
+ "name": "not-found",
+ "xml": "<outcome value='not-found'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 5208.057632446289,
+ "y": 1064.1407012939453,
+ "z": "25a21122.0e2cfe",
+ "wires": [
+ [
+ "df26ebdc.1c7d8"
+ ]
+ ]
+ },
+ {
+ "id": "f14e9aee.41ddd",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 5196.566665649414,
+ "y": 1110.566665649414,
+ "z": "25a21122.0e2cfe",
+ "wires": [
+ [
+ "779f16ad.79c298"
+ ]
+ ]
+ },
+ {
+ "id": "df26ebdc.1c7d8",
+ "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": 5361.629043579102,
+ "y": 1067.4264373779297,
+ "z": "25a21122.0e2cfe",
+ "wires": []
+ },
+ {
+ "id": "779f16ad.79c298",
+ "type": "returnFailure",
+ "name": "return failure",
+ "xml": "<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value='' />\n",
+ "comments": "",
+ "x": 5365.566665649414,
+ "y": 1111.566665649414,
+ "z": "25a21122.0e2cfe",
+ "wires": []
+ },
+ {
+ "id": "7e7cdd76.7cfb84",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "outputs": 1,
+ "x": 4718.566665649414,
+ "y": 978.5666656494141,
+ "z": "25a21122.0e2cfe",
+ "wires": [
+ [
+ "d6ce477c.e6b1",
+ "6ff01134.d27b1"
+ ]
+ ]
+ },
+ {
+ "id": "b7fe5d85.6c90f",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "outputs": 1,
+ "x": 4708.566665649414,
+ "y": 1666.5665435791016,
+ "z": "25a21122.0e2cfe",
+ "wires": [
+ [
+ "44dc4d90.b0cc4c",
+ "abe40e95.5db908"
+ ]
+ ]
+ },
+ {
+ "id": "12aedd33.0f1043",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "outputs": 1,
+ "x": 5339.233169555664,
+ "y": 1856.566665649414,
+ "z": "25a21122.0e2cfe",
+ "wires": [
+ [
+ "e22e2a42.a26b1",
+ "cf28df7d.f3d4b",
+ "daaed265.7759a8",
+ "cb8398b0.7dbb5",
+ "7bc8d59f.6d2444"
+ ]
+ ]
+ },
+ {
+ "id": "9a2935ba.2db97",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 5166.566665649414,
+ "y": 1857.566665649414,
+ "z": "25a21122.0e2cfe",
+ "wires": [
+ [
+ "12aedd33.0f1043"
+ ]
+ ]
+ },
+ {
+ "id": "dcc235b8.72838",
+ "type": "not-found",
+ "name": "not-found",
+ "xml": "<outcome value='not-found'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 5176.057632446289,
+ "y": 1900.1407012939453,
+ "z": "25a21122.0e2cfe",
+ "wires": [
+ [
+ "6a73fa3d.d6c2b4"
+ ]
+ ]
+ },
+ {
+ "id": "262965f5.6cf9ea",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 5164.566665649414,
+ "y": 1946.566665649414,
+ "z": "25a21122.0e2cfe",
+ "wires": [
+ [
+ "403c1229.13a954"
+ ]
+ ]
+ },
+ {
+ "id": "6a73fa3d.d6c2b4",
+ "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": 5329.629043579102,
+ "y": 1903.4264373779297,
+ "z": "25a21122.0e2cfe",
+ "wires": []
+ },
+ {
+ "id": "403c1229.13a954",
+ "type": "returnFailure",
+ "name": "return failure",
+ "xml": "<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value='' />\n",
+ "comments": "",
+ "x": 5333.566665649414,
+ "y": 1947.566665649414,
+ "z": "25a21122.0e2cfe",
+ "wires": []
+ },
+ {
+ "id": "b4615ea7.1bce1",
+ "type": "execute",
+ "name": "execute split tp-id to get pnf-name",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='split' >\n<parameter name=\"original_string\" value='`$tmp.aai.network-route-A.p-interface-src.interface-name`'/>\n<!--<parameter name=\"regex\" value=\"[^-]+$\"/>-->\n<parameter name=\"regex\" value=\"[-]+\"/>\n<parameter name=\"ctx_memory_result_key\" value=\"param-prefix-domainA\"/>\n\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 5635.566665649414,
+ "y": 1004.5666656494141,
+ "z": "25a21122.0e2cfe",
+ "wires": [
+ [
+ "7fca3373.091184",
+ "84a28ee2.eeb658"
+ ]
+ ]
+ },
+ {
+ "id": "84a28ee2.eeb658",
+ "type": "failure",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 5858.566665649414,
+ "y": 959.5666656494141,
+ "z": "25a21122.0e2cfe",
+ "wires": [
+ [
+ "70d4fffc.d22c5"
+ ]
+ ]
+ },
+ {
+ "id": "7fca3373.091184",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 5860.566665649414,
+ "y": 1023.5666656494141,
+ "z": "25a21122.0e2cfe",
+ "wires": [
+ [
+ "3dce84d0.b85dd4"
+ ]
+ ]
+ },
+ {
+ "id": "850dbb90.b4b68",
+ "type": "set",
+ "name": "set ltpId",
+ "xml": "<set>\n<parameter name='tmp.src.ltpId' value='`$param-prefix-domainA[$param-prefix-domainA_length -1]`' />\n",
+ "comments": "",
+ "x": 6193.566665649414,
+ "y": 914.5666656494141,
+ "z": "25a21122.0e2cfe",
+ "wires": []
+ },
+ {
+ "id": "3dce84d0.b85dd4",
+ "type": "returnFailure",
+ "name": "return failure",
+ "xml": "<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value=\"An error occured while splitting sna1_route\" />\n",
+ "comments": "",
+ "x": 6022.566665649414,
+ "y": 1019.5666656494141,
+ "z": "25a21122.0e2cfe",
+ "wires": []
+ },
+ {
+ "id": "70d4fffc.d22c5",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "outputs": 1,
+ "x": 6023.566665649414,
+ "y": 956.5666656494141,
+ "z": "25a21122.0e2cfe",
+ "wires": [
+ [
+ "caf9269d.270b2",
+ "850dbb90.b4b68"
+ ]
+ ]
+ },
+ {
+ "id": "caf9269d.270b2",
+ "type": "set",
+ "name": "set pnf-name",
+ "xml": "<set>\n<parameter name='tmp.src.pnf-name' value='`$param-prefix-domainA[$param-prefix-domainA_length -3]`' />\n",
+ "comments": "",
+ "x": 6194.566665649414,
+ "y": 1022.5666656494141,
+ "z": "25a21122.0e2cfe",
+ "wires": []
+ },
+ {
+ "id": "59bf2583.d75a84",
+ "type": "comment",
+ "name": "TODO: FIXME",
+ "info": "using the output of regex string arrays,\nconcatinate index 0 to index[length-2] all together\nin order to assemble the correct pnf-name",
+ "comments": "",
+ "x": 6195.566665649414,
+ "y": 971.5666656494141,
+ "z": "25a21122.0e2cfe",
+ "wires": []
+ },
+ {
+ "id": "be2e7ced.c4df",
+ "type": "execute",
+ "name": "execute UUID generator for connectivity domainA",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='generateUUID' >\n<parameter name=\"ctx-destination\" value=\"uuid.connectivity-domainA-uuid\"/>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 5682.566665649414,
+ "y": 1073.566665649414,
+ "z": "25a21122.0e2cfe",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "27594e13.316c22",
+ "type": "comment",
+ "name": "TODO: FIXME",
+ "info": "using the output of regex string arrays,\nconcatinate index 0 to index[?] all together\nin order to assemble the correct values for provider-id, \ntopology-id, node-id, etc.",
+ "comments": "",
+ "x": 5571.566665649414,
+ "y": 1114.566665649414,
+ "z": "25a21122.0e2cfe",
+ "wires": []
+ },
+ {
+ "id": "e22e2a42.a26b1",
+ "type": "execute",
+ "name": "execute split tp-id to get pnf-name",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='split' >\n<parameter name=\"original_string\" value='`$tmp.aai.network-route-B.p-interface-dst.interface-name`'/>\n<!--<parameter name=\"regex\" value=\"[^-]+$\"/>-->\n<parameter name=\"regex\" value=\"[-]+\"/>\n<parameter name=\"ctx_memory_result_key\" value=\"param-prefix-domainB\"/>\n\n\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 5625.566665649414,
+ "y": 1860.5667877197266,
+ "z": "25a21122.0e2cfe",
+ "wires": [
+ [
+ "b2f644ca.d12c2",
+ "b58bca2c.4bf2c"
+ ]
+ ]
+ },
+ {
+ "id": "b58bca2c.4bf2c",
+ "type": "failure",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 5848.566665649414,
+ "y": 1815.5667877197266,
+ "z": "25a21122.0e2cfe",
+ "wires": [
+ [
+ "983024ad.f8675"
+ ]
+ ]
+ },
+ {
+ "id": "b2f644ca.d12c2",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 5850.566665649414,
+ "y": 1879.5667877197266,
+ "z": "25a21122.0e2cfe",
+ "wires": [
+ [
+ "4af84f4.a49b8b"
+ ]
+ ]
+ },
+ {
+ "id": "c96d7934.c0e9e8",
+ "type": "set",
+ "name": "set ltpId",
+ "xml": "<set>\n<parameter name='tmp.dst.ltpId' value='`$param-prefix-domainB[$param-prefix-domainB_length -1]`' />\n",
+ "comments": "",
+ "x": 6183.566665649414,
+ "y": 1773.5667877197266,
+ "z": "25a21122.0e2cfe",
+ "wires": []
+ },
+ {
+ "id": "4af84f4.a49b8b",
+ "type": "returnFailure",
+ "name": "return failure",
+ "xml": "<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value=\"An error occured while splitting sna1_route\" />\n",
+ "comments": "",
+ "x": 6009.566665649414,
+ "y": 1898.5667877197266,
+ "z": "25a21122.0e2cfe",
+ "wires": []
+ },
+ {
+ "id": "983024ad.f8675",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "outputs": 1,
+ "x": 6013.566665649414,
+ "y": 1812.5667877197266,
+ "z": "25a21122.0e2cfe",
+ "wires": [
+ [
+ "c96d7934.c0e9e8",
+ "183e4dc8.9e45ba"
+ ]
+ ]
+ },
+ {
+ "id": "183e4dc8.9e45ba",
+ "type": "set",
+ "name": "set pnf-name",
+ "xml": "<set>\n<parameter name='tmp.dst.pnf-name' value='`$param-prefix-domainB[$param-prefix-domainB_length -3]`' />\n",
+ "comments": "",
+ "x": 6184.566665649414,
+ "y": 1878.5667877197266,
+ "z": "25a21122.0e2cfe",
+ "wires": []
+ },
+ {
+ "id": "57730d78.763bfc",
+ "type": "comment",
+ "name": "TODO: FIXME",
+ "info": "using the output of regex string arrays,\nconcatinate index 0 to index[length-2] all together\nin order to assemble the correct pnf-name",
+ "comments": "",
+ "x": 6179.566665649414,
+ "y": 1827.5667877197266,
+ "z": "25a21122.0e2cfe",
+ "wires": []
+ },
+ {
+ "id": "daaed265.7759a8",
+ "type": "save",
+ "name": "save connectivity resource in AAI",
+ "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='connectivity' \n key='connectivity.connectivity-id = $prop.connectivity-domainB-uuid'>\n<parameter name='connectivity-id' value='`$prop.connectivity-domainB-uuid`' />\n<parameter name='etht-svc-name' value='`$prop.ethernet-service-name`' />\n<parameter name='operational-status' value='Created' />\n<parameter name='access-provider-id' value='`$param-prefix-domainB[$param-prefix-domainB_length -9]`' />\n<parameter name='access-client-id' value='`$param-prefix-domainB[$param-prefix-domainB_length -7]`' />\n<parameter name='access-topology-id' value='`$param-prefix-domainB[$param-prefix-domainB_length -5]`' />\n<parameter name='access-node-id' value='`$param-prefix-domainB[$param-prefix-domainB_length -3]`' />\n<parameter name='access-ltp-id' value='`$param-prefix-domainB[$param-prefix-domainB_length -1]`' />\n<parameter name='cvlan' value='`$tmp.aai.network-route-B.logical-interface-id`' />\n\n<parameter name='bandwidth-profile-name' value='`$gfp`' />\n<parameter name='vpn-type' value='`$prop.sotn.vpnType`' />\n<parameter name='cir' value='`$gfp *1000000`' />\n<parameter name='eir' value='`$gfp *1000000`' />\n<parameter name='cbs' value='`$prop.sotn.cbs`' />\n<parameter name='ebs' value='`$prop.sotn.ebs`' />\n<!--<parameter name='color-aware' value='`$prop.sotn.colorAware`' />-->\n<!--<parameter name='coupling-flag' value='`$prop.sotn.couplingFlag`' />-->\n<!--<parameter name='etht-svc-name' value='`$prop.sotn.etht-svc-name`' />-->\n<!--<parameter name='model-customization-id' value='`$network-topology-operation-input.network-information.onap-model-information.model-customization-uuid`' />-->\n<!--<parameter name='model-invariant-id' value='`$network-topology-operation-input.network-information.onap-model-information.model-invariant-uuid`' />-->\n<!--<parameter name='model-version-id' value='`$network-topology-operation-input.network-information.onap-model-information.model-uuid`' />-->\n<parameter name='connectivity-selflink' value=\"`'restconf/config/GENERIC-RESOURCE-API:services/service/' + $network-topology-operation-input.service-information.service-instance-id + '/service-data/networks/network/' + $prop.sotn.network-id + '/network-data/'` \" />\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 5627.566665649414,
+ "y": 2019.5667877197266,
+ "z": "25a21122.0e2cfe",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "cf28df7d.f3d4b",
+ "type": "execute",
+ "name": "execute UUID generator for connectivity domainB",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='generateUUID' >\n<parameter name=\"ctx-destination\" value=\"prop.connectivity-domainB-uuid\"/>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 5672.566665649414,
+ "y": 1929.5667877197266,
+ "z": "25a21122.0e2cfe",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "9f3e922b.b3211",
+ "type": "comment",
+ "name": "TODO: FIXME",
+ "info": "using the output of regex string arrays,\nconcatinate index 0 to index[?] all together\nin order to assemble the correct values for provider-id, \ntopology-id, node-id, etc.",
+ "comments": "",
+ "x": 5561.566665649414,
+ "y": 1967.5667877197266,
+ "z": "25a21122.0e2cfe",
+ "wires": []
+ },
+ {
+ "id": "8f0ab711.e0d798",
+ "type": "call",
+ "name": "call GENERIC-RESOURCE-API:tsli-vnf-topology-operation-get-otn-tunnel-path-from-oof",
+ "xml": "<call module='GENERIC-RESOURCE-API' rpc='tsli-vnf-topology-operation-get-otn-tunnel-path-from-oof' mode='sync' >\n\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 4556.566665649414,
+ "y": 2264.566665649414,
+ "z": "25a21122.0e2cfe",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "d96045a7.1a29c8",
+ "type": "set",
+ "name": "set attachment_param",
+ "xml": "<set>\n<parameter name='prop.connection-attachment.access-provider-id' value='`$param-prefix-domainA[$param-prefix-domainA_length -9]`' />\n<parameter name='prop.connection-attachment.access-client-id' value='`$param-prefix-domainA[$param-prefix-domainA_length -7]`' />\n<parameter name='prop.connection-attachment.access-topology-id' value='`$param-prefix-domainA[$param-prefix-domainA_length -5]`' />\n<parameter name='prop.connection-attachment.access-node-id' value='`$param-prefix-domainA[$param-prefix-domainA_length -3]`' />\n<parameter name='prop.connection-attachment.access-ltp-id' value='`$param-prefix-domainA[$param-prefix-domainA_length -1]`' />\n\n<parameter name='prop.remote.connection-attachment.access-provider-id' value='`$param-prefix-domainB[$param-prefix-domainB_length -9]`' />\n<parameter name='prop.remote.connection-attachment.access-client-id' value='`$param-prefix-domainB[$param-prefix-domainB_length -7]`' />\n<parameter name='prop.remote.connection-attachment.access-topology-id' value='`$param-prefix-domainB[$param-prefix-domainB_length -5]`' />\n<parameter name='prop.remote.connection-attachment.access-node-id' value='`$param-prefix-domainB[$param-prefix-domainB_length -3]`' />\n<parameter name='prop.remote.connection-attachment.access-ltp-id' value='`$param-prefix-domainB[$param-prefix-domainB_length -1]`' />\n\n<!--<parameter name='prop.remote.connection-attachment.access-provider-id' value='`$oof.vpn.access-provider-id`' />-->\n<!--<parameter name='prop.remote.connection-attachment.access-client-id' value='`$oof.vpn.access-client-id`' />-->\n<!--<parameter name='prop.remote.connection-attachment.access-topology-id' value='`$oof.vpn.access-topology-id`' />-->\n<!--<parameter name='prop.remote.connection-attachment.access-node-id' value='`$oof.vpn.access-node-id`' />-->\n<!--<parameter name='prop.remote.connection-attachment.access-ltp-id' value='`$oof.vpn.src-access-ltp-id`' />-->\n",
+ "comments": "",
+ "x": 4350.566665649414,
+ "y": 2165.566665649414,
+ "z": "25a21122.0e2cfe",
+ "wires": []
+ },
+ {
+ "id": "d2d69fa1.baa39",
+ "type": "comment",
+ "name": "TODO: FIXME",
+ "info": "put proper values for src topology-id, node-id, ltp-id, etc (in domain A)\nand dst topology-id, node-id, ltp-id, etc (in domain B)",
+ "comments": "",
+ "x": 4324.566665649414,
+ "y": 2118.566665649414,
+ "z": "25a21122.0e2cfe",
+ "wires": []
+ },
+ {
+ "id": "ce2c131b.42f24",
+ "type": "save",
+ "name": "save TNNSSI (transport service instance) relationship to connectivity in AAI",
+ "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='service-instance:relationship-list' \n key='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 force=\"true\" pfx=\"tmp.AnAI-data\">\n<parameter name=\"relationship-list.relationship[0].related-to\" value=\"connectivity\" />\n<parameter name=\"relationship-list.relationship[0].related-link\" value=\"`'/network/connectivities/connectivity/' + $uuid.connectivity-domainA-uuid`\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-key\" value=\"connectivity.connectivity-id\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-value\" value=\"`$uuid.connectivity-domainA-uuid`\" />\n\n\n<!--<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='service-instance:relationship-list' -->\n<!-- key='service-instance.service-instance-id = $service-data.service-information.service-instance-id -->\n<!-- AND customer.global-customer-id = $service-data.networks.network[$nidx].network-data.service-information.global-customer-id -->\n<!-- AND service-subscription.service-type = $service-data.networks.network[$nidx].network-data.service-information.subscription-service-type' -->\n<!-- force=\"true\" pfx=\"tmp.AnAI-data\">-->\n<!--<parameter name=\"relationship-list.relationship[0].related-to\" value=\"connectivity\" />-->\n<!--<parameter name=\"relationship-list.relationship[0].related-link\" value=\"`'/network/connectivities/connectivity/' + $prop.sotn.network-id`\" />-->\n<!--<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-key\" value=\"connectivity.connectivity-id\" />-->\n<!--<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-value\" value=\"`$prop.sotn.network-id`\" />-->",
+ "comments": "",
+ "outputs": 1,
+ "x": 5765.566665649414,
+ "y": 1211.566665649414,
+ "z": "25a21122.0e2cfe",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "cb8398b0.7dbb5",
+ "type": "save",
+ "name": "save TNNSSI (transport service instance) relationship to connectivity in AAI",
+ "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='service-instance:relationship-list' \n key='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 force=\"true\" pfx=\"tmp.AnAI-data\">\n<parameter name=\"relationship-list.relationship[0].related-to\" value=\"connectivity\" />\n<parameter name=\"relationship-list.relationship[0].related-link\" value=\"`'/network/connectivities/connectivity/' + $prop.connectivity-domainB-uuid`\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-key\" value=\"connectivity.connectivity-id\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-value\" value=\"`$prop.connectivity-domainB-uuid`\" />\n\n\n<!--<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='service-instance:relationship-list' -->\n<!-- key='service-instance.service-instance-id = $service-data.service-information.service-instance-id -->\n<!-- AND customer.global-customer-id = $service-data.networks.network[$nidx].network-data.service-information.global-customer-id -->\n<!-- AND service-subscription.service-type = $service-data.networks.network[$nidx].network-data.service-information.subscription-service-type' -->\n<!-- force=\"true\" pfx=\"tmp.AnAI-data\">-->\n<!--<parameter name=\"relationship-list.relationship[0].related-to\" value=\"connectivity\" />-->\n<!--<parameter name=\"relationship-list.relationship[0].related-link\" value=\"`'/network/connectivities/connectivity/' + $prop.sotn.network-id`\" />-->\n<!--<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-key\" value=\"connectivity.connectivity-id\" />-->\n<!--<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-value\" value=\"`$prop.sotn.network-id`\" />-->",
+ "comments": "",
+ "outputs": 1,
+ "x": 5754.566665649414,
+ "y": 2084.5667877197266,
+ "z": "25a21122.0e2cfe",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "92b1873d.551bc",
+ "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": 6809.566665649414,
+ "y": 731.5666656494141,
+ "z": "25a21122.0e2cfe",
+ "wires": [
+ [
+ "3b96c7df.05e2",
+ "1eec19a2.07645e",
+ "b1213bca.c3532"
+ ]
+ ]
+ },
+ {
+ "id": "8eff1c95.000698",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "outputs": 1,
+ "x": 2696.566665649414,
+ "y": 386.56666564941406,
+ "z": "25a21122.0e2cfe",
+ "wires": [
+ [
+ "ad97eaf2.db3cf"
+ ]
+ ]
+ },
+ {
+ "id": "5c4d87c2.cacd08",
+ "type": "outcome",
+ "name": "logical-link",
+ "xml": "<outcome value='logical-link'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1093.5667877197266,
+ "y": 781.5667877197266,
+ "z": "25a21122.0e2cfe",
+ "wires": [
+ [
+ "ba05feca.357468"
+ ]
+ ]
+ },
+ {
+ "id": "41f5506e.8f5aa",
+ "type": "switchNode",
+ "name": "switch allotted-resource.relationship-list not empty",
+ "xml": "<switch test='`$tmp.aai.allotted-resource.relationship-list.relationship_length != 0`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2259.566665649414,
+ "y": 480.56666564941406,
+ "z": "25a21122.0e2cfe",
+ "wires": [
+ [
+ "8b2a546b.9f5318",
+ "f654fc01.bf0048"
+ ]
+ ]
+ },
+ {
+ "id": "f654fc01.bf0048",
+ "type": "outcomeFalse",
+ "name": "false",
+ "xml": "<outcome value='false'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2580.566665649414,
+ "y": 462.56666564941406,
+ "z": "25a21122.0e2cfe",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "8b2a546b.9f5318",
+ "type": "outcomeTrue",
+ "name": "true",
+ "xml": "<outcome value='true'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2562.566665649414,
+ "y": 560.5666656494141,
+ "z": "25a21122.0e2cfe",
+ "wires": [
+ [
+ "24772c6a.a8483c"
+ ]
+ ]
+ },
+ {
+ "id": "94799b47.aa87f8",
+ "type": "set",
+ "name": "set the current logical-link-name",
+ "xml": "<set>\n<parameter name='logical-link-name' value=\"`$tmp.aai.allotted-resource.relationship-list.relationship[$idx].relationship-data[0].relationship-value`\" />\n<parameter name='currLinkIsFound' value=\"false\" />\n\n\n",
+ "comments": "",
+ "x": 1516.566665649414,
+ "y": 684.5666656494141,
+ "z": "25a21122.0e2cfe",
+ "wires": []
+ },
+ {
+ "id": "ba05feca.357468",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "outputs": 1,
+ "x": 1270.566665649414,
+ "y": 774.5666656494141,
+ "z": "25a21122.0e2cfe",
+ "wires": [
+ [
+ "94799b47.aa87f8",
+ "433e887a.5dd2c",
+ "fc0b0bdf.af57e8"
+ ]
+ ]
+ },
+ {
+ "id": "fa0822cd.53caf",
+ "type": "comment",
+ "name": "Question?",
+ "info": "How to know if DG would send this get request\nin \"nodes\" namespace instead of \"network\" namespace?",
+ "comments": "",
+ "x": 4898.566665649414,
+ "y": 983.5666656494141,
+ "z": "25a21122.0e2cfe",
+ "wires": []
+ },
+ {
+ "id": "d6ce477c.e6b1",
+ "type": "save",
+ "name": "get p-interface-src from aai",
+ "xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\tresource=\"p-interface\"\n\t key=\"pnf.pnf-name = $tmp.src.domainA.pnf-name\n\t AND p-interface.interface-name = $tmp.aai.network-route-A.next-hop\"\n\t\tlocal-only=\"false\" \n\t\tpfx=\"tmp.aai.network-route-A.p-interface-src\" >\n\n<!--<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" -->\n<!--\tresource=\"p-interface\"-->\n<!--\t key=\"pnf.pnf-name = $unique-src-node-Id-->\n<!--\t and p-interface.interface-name = $tmp.aai.endpointA.relationship-list.relationship[$rel-index].relationship-data[0].relationship-value\"-->\n<!--\t\tlocal-only=\"false\" -->\n<!--\t\tpfx=\"tmp.aai.endpointA.p-interface-src\" >-->\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 4941.566665649414,
+ "y": 1048.566665649414,
+ "z": "25a21122.0e2cfe",
+ "wires": [
+ [
+ "4503129f.bd2fd4",
+ "8659354b.96b4a",
+ "f14e9aee.41ddd"
+ ]
+ ]
+ },
+ {
+ "id": "44dc4d90.b0cc4c",
+ "type": "save",
+ "name": "get p-interface-dst from aai",
+ "xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\tresource=\"p-interface\"\n\t key=\"pnf.pnf-name = $tmp.dst.domainB.pnf-name\n\t AND p-interface.interface-name = $tmp.aai.network-route-B.next-hop\"\n\t\tlocal-only=\"false\" \n\t\tpfx=\"tmp.aai.network-route-B.p-interface-dst\" >\n\n<!--<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" -->\n<!--\tresource=\"p-interface\"-->\n<!--\t key=\"pnf.pnf-name = $unique-src-node-Id-->\n<!--\t and p-interface.interface-name = $tmp.aai.endpointA.relationship-list.relationship[$rel-index].relationship-data[0].relationship-value\"-->\n<!--\t\tlocal-only=\"false\" -->\n<!--\t\tpfx=\"tmp.aai.endpointA.p-interface-src\" >-->\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 4938.566665649414,
+ "y": 1892.566665649414,
+ "z": "25a21122.0e2cfe",
+ "wires": [
+ [
+ "9a2935ba.2db97",
+ "dcc235b8.72838",
+ "262965f5.6cf9ea"
+ ]
+ ]
+ },
+ {
+ "id": "2ca1c6c2.0f0f22",
+ "type": "comment",
+ "name": "Question?",
+ "info": "How to know if DG would send this get request\nin \"nodes\" namespace instead of \"network\" namespace?",
+ "comments": "",
+ "x": 4899.566665649414,
+ "y": 1836.566665649414,
+ "z": "25a21122.0e2cfe",
+ "wires": []
+ },
+ {
+ "id": "ad97eaf2.db3cf",
+ "type": "save",
+ "name": "get allotted-resource relationship from aai",
+ "xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\tresource=\"allotted-resource:relationship-list\"\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 AND allotted-resource.id = $allotted-resource-id'\n\tlocal-only=\"false\"\n\tforce=\"true\" pfx=\"tmp.aai.allotted-resource.relationship-list\">\n\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2989.566665649414,
+ "y": 333.56666564941406,
+ "z": "25a21122.0e2cfe",
+ "wires": [
+ [
+ "ef5e96fe.587c78",
+ "e171a2b9.a46c9",
+ "ed7e8b76.daabf"
+ ]
+ ]
+ },
+ {
+ "id": "e171a2b9.a46c9",
+ "type": "not-found",
+ "name": "not-found",
+ "xml": "<outcome value='not-found'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 3263.057632446289,
+ "y": 226.14064025878906,
+ "z": "25a21122.0e2cfe",
+ "wires": [
+ [
+ "ae21063b.421918"
+ ]
+ ]
+ },
+ {
+ "id": "ae21063b.421918",
+ "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": 3440.629165649414,
+ "y": 226.42640686035156,
+ "z": "25a21122.0e2cfe",
+ "wires": []
+ },
+ {
+ "id": "ed7e8b76.daabf",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 3258.566665649414,
+ "y": 275.56666564941406,
+ "z": "25a21122.0e2cfe",
+ "wires": [
+ [
+ "1fe6476a.260d99"
+ ]
+ ]
+ },
+ {
+ "id": "1fe6476a.260d99",
+ "type": "returnFailure",
+ "name": "return failure",
+ "xml": "<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value='' />\n",
+ "comments": "",
+ "x": 3440.566665649414,
+ "y": 275.56666564941406,
+ "z": "25a21122.0e2cfe",
+ "wires": []
+ },
+ {
+ "id": "ef5e96fe.587c78",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 3262.566665649414,
+ "y": 326.56666564941406,
+ "z": "25a21122.0e2cfe",
+ "wires": [
+ [
+ "5ed5bf6.6fd244"
+ ]
+ ]
+ },
+ {
+ "id": "5ed5bf6.6fd244",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "outputs": 1,
+ "x": 3442.566665649414,
+ "y": 326.56666564941406,
+ "z": "25a21122.0e2cfe",
+ "wires": [
+ [
+ "41f5506e.8f5aa"
+ ]
+ ]
+ },
+ {
+ "id": "99ef6a45.9ad878",
+ "type": "for",
+ "name": "for each allotted-resource relationship",
+ "xml": "<for index='idx' start='0' end='`$tmp.aai.allotted-resource.relationship-list.relationship_length`' >\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 868.5666656494141,
+ "y": 710.5666656494141,
+ "z": "25a21122.0e2cfe",
+ "wires": [
+ [
+ "99689150.5b9778"
+ ]
+ ]
+ },
+ {
+ "id": "99689150.5b9778",
+ "type": "switchNode",
+ "name": "switch related-to",
+ "xml": "<switch test='`$tmp.aai.allotted-resource.relationship-list.relationship[$idx].related-to`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1139.566665649414,
+ "y": 706.5666656494141,
+ "z": "25a21122.0e2cfe",
+ "wires": [
+ [
+ "5c4d87c2.cacd08"
+ ]
+ ]
+ },
+ {
+ "id": "2bf740bc.b587b",
+ "type": "outcome",
+ "name": "network-policy",
+ "xml": "<outcome value='network-policy'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 3418.566665649414,
+ "y": 524.5666656494141,
+ "z": "25a21122.0e2cfe",
+ "wires": [
+ [
+ "3a3c2a70.68a7ee"
+ ]
+ ]
+ },
+ {
+ "id": "3a3c2a70.68a7ee",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "outputs": 1,
+ "x": 3595.5665435791016,
+ "y": 517.5665435791016,
+ "z": "25a21122.0e2cfe",
+ "wires": [
+ [
+ "e9454f9d.caf03",
+ "6d43a86.3d48758"
+ ]
+ ]
+ },
+ {
+ "id": "e9454f9d.caf03",
+ "type": "set",
+ "name": "set the 1st network-policy-id",
+ "xml": "<set>\n<parameter name='network-policy-id' value=\"`$tmp.aai.allotted-resource.relationship-list.relationship[$idx].relationship-data[0].relationship-value`\" />\n\n\n",
+ "comments": "",
+ "x": 3838.5665435791016,
+ "y": 474.56654357910156,
+ "z": "25a21122.0e2cfe",
+ "wires": []
+ },
+ {
+ "id": "6d43a86.3d48758",
+ "type": "save",
+ "name": "get network-policy from aai",
+ "xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\tresource=\"network-policy\"\n\tkey='network-policy.network-policy-id = $network-policy-id'\n\tlocal-only=\"false\"\n\tforce=\"true\" pfx=\"tmp.aai.network-policy\">",
+ "comments": "",
+ "outputs": 1,
+ "x": 3827.5665435791016,
+ "y": 529.5665435791016,
+ "z": "25a21122.0e2cfe",
+ "wires": [
+ [
+ "8a364a72.424c28",
+ "fd07ec43.4387a",
+ "4d3c4393.f4c224"
+ ]
+ ]
+ },
+ {
+ "id": "4d3c4393.f4c224",
+ "type": "not-found",
+ "name": "not-found",
+ "xml": "<outcome value='not-found'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 4080.566665649414,
+ "y": 415.56666564941406,
+ "z": "25a21122.0e2cfe",
+ "wires": [
+ [
+ "8a48cdf4.281a78"
+ ]
+ ]
+ },
+ {
+ "id": "8a48cdf4.281a78",
+ "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": 4229.138198852539,
+ "y": 415.85243225097656,
+ "z": "25a21122.0e2cfe",
+ "wires": []
+ },
+ {
+ "id": "81c305db.010dc",
+ "type": "returnFailure",
+ "name": "return failure",
+ "xml": "<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value='' />\n",
+ "comments": "",
+ "x": 4228.075698852539,
+ "y": 459.99269104003906,
+ "z": "25a21122.0e2cfe",
+ "wires": []
+ },
+ {
+ "id": "fd07ec43.4387a",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 4069.075698852539,
+ "y": 459.99269104003906,
+ "z": "25a21122.0e2cfe",
+ "wires": [
+ [
+ "81c305db.010dc"
+ ]
+ ]
+ },
+ {
+ "id": "8a364a72.424c28",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 4076.075698852539,
+ "y": 538.9926910400391,
+ "z": "25a21122.0e2cfe",
+ "wires": [
+ [
+ "41b3b67d.c6f8e8"
+ ]
+ ]
+ },
+ {
+ "id": "41b3b67d.c6f8e8",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 4215.075698852539,
+ "y": 538.9926910400391,
+ "z": "25a21122.0e2cfe",
+ "wires": [
+ [
+ "f0091688.66654",
+ "4f7a1356.449274"
+ ]
+ ]
+ },
+ {
+ "id": "f0091688.66654",
+ "type": "set",
+ "name": "set the max bandwidth",
+ "xml": "<set>\n<parameter name='maximum-bandwidth' value=\"`$tmp.aai.network-policy.max-bandwidth`\" />\n<parameter name='route-distinguisher' value='`$maximum-bandwidth /1000 *4 /5 +1`' />\n\n\n\n",
+ "comments": "",
+ "x": 4420.566665649414,
+ "y": 536.5666656494141,
+ "z": "25a21122.0e2cfe",
+ "wires": []
+ },
+ {
+ "id": "6ff01134.d27b1",
+ "type": "execute",
+ "name": "execute split tp-id to get pnf-name",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='split' >\n<parameter name=\"original_string\" value='`$tmp.aai.network-route-A.next-hop`'/>\n<!--<parameter name=\"regex\" value=\"[^-]+$\"/>-->\n<parameter name=\"regex\" value=\"[-]+\"/>\n<parameter name=\"ctx_memory_result_key\" value=\"param-prefix-domainA-pnfName\"/>\n\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 4942.566665649414,
+ "y": 718.5666656494141,
+ "z": "25a21122.0e2cfe",
+ "wires": [
+ [
+ "39467319.609964",
+ "3cc969fb.c20abe"
+ ]
+ ]
+ },
+ {
+ "id": "3cc969fb.c20abe",
+ "type": "failure",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 5165.566665649414,
+ "y": 704.5666656494141,
+ "z": "25a21122.0e2cfe",
+ "wires": [
+ [
+ "2dfb867b.202c62"
+ ]
+ ]
+ },
+ {
+ "id": "39467319.609964",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 5167.566665649414,
+ "y": 737.5666656494141,
+ "z": "25a21122.0e2cfe",
+ "wires": [
+ [
+ "fb83e9be.2efe"
+ ]
+ ]
+ },
+ {
+ "id": "fb83e9be.2efe",
+ "type": "returnFailure",
+ "name": "return failure",
+ "xml": "<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value=\"An error occured while splitting sna1_route\" />\n",
+ "comments": "",
+ "x": 5310.566665649414,
+ "y": 734.5666656494141,
+ "z": "25a21122.0e2cfe",
+ "wires": []
+ },
+ {
+ "id": "2dfb867b.202c62",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "outputs": 1,
+ "x": 5313.566665649414,
+ "y": 697.5666656494141,
+ "z": "25a21122.0e2cfe",
+ "wires": [
+ [
+ "15d7491f.df8677",
+ "965ca101.13418"
+ ]
+ ]
+ },
+ {
+ "id": "15d7491f.df8677",
+ "type": "set",
+ "name": "set pnf-name",
+ "xml": "<set>\n<parameter name='tmp.src.domainA.pnf-name' value=\"`$param-prefix-domainA-pnfName[0] + '-' +\n $param-prefix-domainA-pnfName[1] + '-' +\n $param-prefix-domainA-pnfName[2] + '-' +\n $param-prefix-domainA-pnfName[3] + '-' +\n $param-prefix-domainA-pnfName[4] + '-' +\n $param-prefix-domainA-pnfName[5] + '-' +\n $param-prefix-domainA-pnfName[6] + '-' +\n $param-prefix-domainA-pnfName[7] + '-' +\n $param-prefix-domainA-pnfName[8]`\" />\n",
+ "comments": "",
+ "x": 5475.566665649414,
+ "y": 692.5666656494141,
+ "z": "25a21122.0e2cfe",
+ "wires": []
+ },
+ {
+ "id": "abe40e95.5db908",
+ "type": "execute",
+ "name": "execute split tp-id to get pnf-name",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='split' >\n<parameter name=\"original_string\" value='`$tmp.aai.network-route-B.next-hop`'/>\n<!--<parameter name=\"regex\" value=\"[^-]+$\"/>-->\n<parameter name=\"regex\" value=\"[-]+\"/>\n<parameter name=\"ctx_memory_result_key\" value=\"param-prefix-domainB-pnfName\"/>\n\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 4956.566665649414,
+ "y": 1555.5665435791016,
+ "z": "25a21122.0e2cfe",
+ "wires": [
+ [
+ "d51c262f.477ec",
+ "4509355c.99159c"
+ ]
+ ]
+ },
+ {
+ "id": "4509355c.99159c",
+ "type": "failure",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 5179.566665649414,
+ "y": 1541.5665435791016,
+ "z": "25a21122.0e2cfe",
+ "wires": [
+ [
+ "d6d3b9d3.95749"
+ ]
+ ]
+ },
+ {
+ "id": "d51c262f.477ec",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 5181.566665649414,
+ "y": 1574.5665435791016,
+ "z": "25a21122.0e2cfe",
+ "wires": [
+ [
+ "41fb7895.687548"
+ ]
+ ]
+ },
+ {
+ "id": "41fb7895.687548",
+ "type": "returnFailure",
+ "name": "return failure",
+ "xml": "<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value=\"An error occured while splitting sna1_route\" />\n",
+ "comments": "",
+ "x": 5324.566665649414,
+ "y": 1571.5665435791016,
+ "z": "25a21122.0e2cfe",
+ "wires": []
+ },
+ {
+ "id": "d6d3b9d3.95749",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "outputs": 1,
+ "x": 5327.566665649414,
+ "y": 1534.5665435791016,
+ "z": "25a21122.0e2cfe",
+ "wires": [
+ [
+ "dc31fe9c.b39df",
+ "22e60879.c39a9"
+ ]
+ ]
+ },
+ {
+ "id": "dc31fe9c.b39df",
+ "type": "set",
+ "name": "set pnf-name",
+ "xml": "<set>\n<parameter name='tmp.dst.domainB.pnf-name' value=\"`$param-prefix-domainB-pnfName[0] + '-' +\n $param-prefix-domainB-pnfName[1] + '-' +\n $param-prefix-domainB-pnfName[2] + '-' +\n $param-prefix-domainB-pnfName[3] + '-' +\n $param-prefix-domainB-pnfName[4] + '-' +\n $param-prefix-domainB-pnfName[5] + '-' +\n $param-prefix-domainB-pnfName[6] + '-' +\n $param-prefix-domainB-pnfName[7] + '-' +\n $param-prefix-domainB-pnfName[8]`\" />\n",
+ "comments": "",
+ "x": 5521.566665649414,
+ "y": 1537.566665649414,
+ "z": "25a21122.0e2cfe",
+ "wires": []
+ },
+ {
+ "id": "dd074b01.699d5",
+ "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": 1119.566665649414,
+ "y": 241.56666564941406,
+ "z": "25a21122.0e2cfe",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "71b17710.70c14",
+ "type": "for",
+ "name": "for each relationship",
+ "xml": "<for silentFailure='true' index='pividx' start='0' end='`$tmp.aai.network-route-A.p-interface-src.relationship-list.relationship_length`' >\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 5589.566665649414,
+ "y": 1288.566665649414,
+ "z": "25a21122.0e2cfe",
+ "wires": [
+ [
+ "262b12c7.d4eb86"
+ ]
+ ]
+ },
+ {
+ "id": "262b12c7.d4eb86",
+ "type": "switchNode",
+ "name": "switch related-to",
+ "xml": "<switch test='`$tmp.aai.network-route-A.p-interface-src.relationship-list.relationship[$pividx].related-to`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 5795.566665649414,
+ "y": 1288.566665649414,
+ "z": "25a21122.0e2cfe",
+ "wires": [
+ [
+ "5944b4c4.a90d9c"
+ ]
+ ]
+ },
+ {
+ "id": "5944b4c4.a90d9c",
+ "type": "outcome",
+ "name": "tunnel-termination-point",
+ "xml": "<outcome value='tunnel-termination-point'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 6010.852310180664,
+ "y": 1288.388442993164,
+ "z": "25a21122.0e2cfe",
+ "wires": [
+ [
+ "97ca4a46.233f6"
+ ]
+ ]
+ },
+ {
+ "id": "97ca4a46.233f6",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "outputs": 1,
+ "x": 6217.683853149414,
+ "y": 1288.906997680664,
+ "z": "25a21122.0e2cfe",
+ "wires": [
+ [
+ "18a90b5a.512eed",
+ "9b9213f3.dfc428",
+ "21506293.2b15d6"
+ ]
+ ]
+ },
+ {
+ "id": "18a90b5a.512eed",
+ "type": "set",
+ "name": "set source ttp-id",
+ "xml": "<set>\n<parameter name='tmp.source.ttp-id' value=\"`$tmp.aai.network-route-A.p-interface-src.relationship-list.relationship[$pividx].relationship-data[0].relationship-value`\" />\n",
+ "comments": "",
+ "x": 6432.683853149414,
+ "y": 1250.906997680664,
+ "z": "25a21122.0e2cfe",
+ "wires": []
+ },
+ {
+ "id": "9b9213f3.dfc428",
+ "type": "get-resource",
+ "name": "get-resource src TTP",
+ "xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\t\tresource=\"tunnel-termination-point\" \n\t\tkey=\"tunnel-termination-point.ttp-id = $tmp.source.ttp-id \n\t\tAND depth = '0'\"\n pfx='tmp.aai.source-ttp' local-only='false' >\n\n\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 6429.683853149414,
+ "y": 1289.906997680664,
+ "z": "25a21122.0e2cfe",
+ "wires": [
+ [
+ "8cbab548.0454b"
+ ]
+ ]
+ },
+ {
+ "id": "21506293.2b15d6",
+ "type": "break",
+ "name": "break",
+ "xml": "<break>\n",
+ "comments": "",
+ "x": 6385.183853149414,
+ "y": 1331.906997680664,
+ "z": "25a21122.0e2cfe",
+ "wires": []
+ },
+ {
+ "id": "8cbab548.0454b",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 6610.183853149414,
+ "y": 1288.906997680664,
+ "z": "25a21122.0e2cfe",
+ "wires": [
+ [
+ "326ba546.7f7e7a"
+ ]
+ ]
+ },
+ {
+ "id": "326ba546.7f7e7a",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "outputs": 1,
+ "x": 6768.183853149414,
+ "y": 1288.906997680664,
+ "z": "25a21122.0e2cfe",
+ "wires": [
+ [
+ "49cced3d.6f7764"
+ ]
+ ]
+ },
+ {
+ "id": "49cced3d.6f7764",
+ "type": "set",
+ "name": "set source tunnel tp ip",
+ "xml": "<set>\n<parameter name='source.tunnel-tp-id' value=\"`$tmp.aai.source-ttp.tunnel-tp-id`\" />\n",
+ "comments": "",
+ "x": 6975.183853149414,
+ "y": 1288.906997680664,
+ "z": "25a21122.0e2cfe",
+ "wires": []
+ },
+ {
+ "id": "7bc8d59f.6d2444",
+ "type": "for",
+ "name": "for each relationship",
+ "xml": "<for silentFailure='true' index='dividx' start='0' end='`$tmp.aai.network-route-B.p-interface-dst.relationship-list.relationship_length`' >\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 5586.566665649414,
+ "y": 2157.5667877197266,
+ "z": "25a21122.0e2cfe",
+ "wires": [
+ [
+ "8f6d6d5b.1cead8"
+ ]
+ ]
+ },
+ {
+ "id": "8f6d6d5b.1cead8",
+ "type": "switchNode",
+ "name": "switch related-to",
+ "xml": "<switch test='`$tmp.aai.network-route-B.p-interface-dst.relationship-list.relationship[$dividx].related-to`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 5792.566665649414,
+ "y": 2157.5667877197266,
+ "z": "25a21122.0e2cfe",
+ "wires": [
+ [
+ "e19b436a.7033d"
+ ]
+ ]
+ },
+ {
+ "id": "e19b436a.7033d",
+ "type": "outcome",
+ "name": "tunnel-termination-point",
+ "xml": "<outcome value='tunnel-termination-point'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 6007.852310180664,
+ "y": 2157.3885650634766,
+ "z": "25a21122.0e2cfe",
+ "wires": [
+ [
+ "bec0ab0f.3e04c8"
+ ]
+ ]
+ },
+ {
+ "id": "bec0ab0f.3e04c8",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "outputs": 1,
+ "x": 6214.683853149414,
+ "y": 2157.9071197509766,
+ "z": "25a21122.0e2cfe",
+ "wires": [
+ [
+ "27fbcba1.3d3b74",
+ "ceb087f2.f1a2d",
+ "f5af142d.56f9a8"
+ ]
+ ]
+ },
+ {
+ "id": "27fbcba1.3d3b74",
+ "type": "set",
+ "name": "set destination ttp-id",
+ "xml": "<set>\n<parameter name='tmp.destination.ttp-id' value=\"`$tmp.aai.network-route-B.p-interface-dst.relationship-list.relationship[$dividx].relationship-data[0].relationship-value`\" />\n",
+ "comments": "",
+ "x": 6429.683853149414,
+ "y": 2119.9071197509766,
+ "z": "25a21122.0e2cfe",
+ "wires": []
+ },
+ {
+ "id": "ceb087f2.f1a2d",
+ "type": "get-resource",
+ "name": "get-resource src TTP",
+ "xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\t\tresource=\"tunnel-termination-point\" \n\t\tkey=\"tunnel-termination-point.ttp-id = $tmp.destination.ttp-id \n\t\tAND depth = '0'\"\n pfx='tmp.aai.destination-ttp' local-only='false' >\n\n\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 6426.683853149414,
+ "y": 2158.9071197509766,
+ "z": "25a21122.0e2cfe",
+ "wires": [
+ [
+ "3dd2b911.678516"
+ ]
+ ]
+ },
+ {
+ "id": "f5af142d.56f9a8",
+ "type": "break",
+ "name": "break",
+ "xml": "<break>\n",
+ "comments": "",
+ "x": 6382.183853149414,
+ "y": 2200.9071197509766,
+ "z": "25a21122.0e2cfe",
+ "wires": []
+ },
+ {
+ "id": "3dd2b911.678516",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 6607.183853149414,
+ "y": 2157.9071197509766,
+ "z": "25a21122.0e2cfe",
+ "wires": [
+ [
+ "2d748944.5ecffe"
+ ]
+ ]
+ },
+ {
+ "id": "2d748944.5ecffe",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "outputs": 1,
+ "x": 6765.183853149414,
+ "y": 2157.9071197509766,
+ "z": "25a21122.0e2cfe",
+ "wires": [
+ [
+ "6570963f.999c3"
+ ]
+ ]
+ },
+ {
+ "id": "6570963f.999c3",
+ "type": "set",
+ "name": "set destination tunnel tp ip",
+ "xml": "<set>\n<parameter name='destination.tunnel-tp-id' value=\"`$tmp.aai.destination-ttp.tunnel-tp-id`\" />\n",
+ "comments": "",
+ "x": 6972.183853149414,
+ "y": 2157.9071197509766,
+ "z": "25a21122.0e2cfe",
+ "wires": []
+ },
+ {
+ "id": "965ca101.13418",
+ "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": 5502.566665649414,
+ "y": 764.5666656494141,
+ "z": "25a21122.0e2cfe",
+ "wires": [
+ [
+ "50b56074.398fb8",
+ "37713986.ac02f6",
+ "9d9c191d.f7c08"
+ ]
+ ]
+ },
+ {
+ "id": "50b56074.398fb8",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 5698.066787719727,
+ "y": 716.5666656494141,
+ "z": "25a21122.0e2cfe",
+ "wires": [
+ [
+ "e3c2a355.360d3"
+ ]
+ ]
+ },
+ {
+ "id": "37713986.ac02f6",
+ "type": "not-found",
+ "name": "not-found",
+ "xml": "<outcome value='not-found'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 5690.066787719727,
+ "y": 771.5666656494141,
+ "z": "25a21122.0e2cfe",
+ "wires": [
+ [
+ "f545ca2e.f44db"
+ ]
+ ]
+ },
+ {
+ "id": "9d9c191d.f7c08",
+ "type": "other",
+ "name": "other",
+ "xml": "<outcome value='Other'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 5695.066787719727,
+ "y": 828.5666656494141,
+ "z": "25a21122.0e2cfe",
+ "wires": [
+ [
+ "e48b21a8.d61508"
+ ]
+ ]
+ },
+ {
+ "id": "e48b21a8.d61508",
+ "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": 5847.066787719727,
+ "y": 829.5666656494141,
+ "z": "25a21122.0e2cfe",
+ "wires": []
+ },
+ {
+ "id": "f545ca2e.f44db",
+ "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": 5858.066787719727,
+ "y": 774.5666656494141,
+ "z": "25a21122.0e2cfe",
+ "wires": []
+ },
+ {
+ "id": "e3c2a355.360d3",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 5842.449111938477,
+ "y": 714.2223358154297,
+ "z": "25a21122.0e2cfe",
+ "wires": [
+ [
+ "206fadad.185672"
+ ]
+ ]
+ },
+ {
+ "id": "16b234e1.30a8c3",
+ "type": "outcome",
+ "name": "esr-thirdparty-sdnc",
+ "xml": "<outcome value='esr-thirdparty-sdnc'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 6424.566665649414,
+ "y": 732.5666656494141,
+ "z": "25a21122.0e2cfe",
+ "wires": [
+ [
+ "e787bf98.1dda3"
+ ]
+ ]
+ },
+ {
+ "id": "e787bf98.1dda3",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "outputs": 1,
+ "x": 6601.566665649414,
+ "y": 724.5666656494141,
+ "z": "25a21122.0e2cfe",
+ "wires": [
+ [
+ "71a48553.06547c",
+ "92b1873d.551bc"
+ ]
+ ]
+ },
+ {
+ "id": "206fadad.185672",
+ "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": 6026.566665649414,
+ "y": 728.5666656494141,
+ "z": "25a21122.0e2cfe",
+ "wires": [
+ [
+ "69c3e96a.358898"
+ ]
+ ]
+ },
+ {
+ "id": "69c3e96a.358898",
+ "type": "switchNode",
+ "name": "switch related-to",
+ "xml": "<switch test='`$tmp.aai.source-pnf.relationship-list.relationship[$spvidx].related-to`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 6221.566665649414,
+ "y": 728.5666656494141,
+ "z": "25a21122.0e2cfe",
+ "wires": [
+ [
+ "16b234e1.30a8c3",
+ "90deb9f8.a72b18"
+ ]
+ ]
+ },
+ {
+ "id": "71a48553.06547c",
+ "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": 6839.566665649414,
+ "y": 679.5666656494141,
+ "z": "25a21122.0e2cfe",
+ "wires": []
+ },
+ {
+ "id": "3b96c7df.05e2",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 7019.566665649414,
+ "y": 722.5666656494141,
+ "z": "25a21122.0e2cfe",
+ "wires": [
+ [
+ "6f8ea6fb.24df1"
+ ]
+ ]
+ },
+ {
+ "id": "1eec19a2.07645e",
+ "type": "not-found",
+ "name": "not-found",
+ "xml": "<outcome value='not-found'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 7011.566665649414,
+ "y": 777.5666656494141,
+ "z": "25a21122.0e2cfe",
+ "wires": [
+ [
+ "91f5de57.10361"
+ ]
+ ]
+ },
+ {
+ "id": "b1213bca.c3532",
+ "type": "other",
+ "name": "other",
+ "xml": "<outcome value='Other'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 7016.566665649414,
+ "y": 834.5666656494141,
+ "z": "25a21122.0e2cfe",
+ "wires": [
+ [
+ "62327f7e.aacf68"
+ ]
+ ]
+ },
+ {
+ "id": "62327f7e.aacf68",
+ "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": 7168.566665649414,
+ "y": 835.5666656494141,
+ "z": "25a21122.0e2cfe",
+ "wires": []
+ },
+ {
+ "id": "91f5de57.10361",
+ "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": 7179.566665649414,
+ "y": 780.5666656494141,
+ "z": "25a21122.0e2cfe",
+ "wires": []
+ },
+ {
+ "id": "6f8ea6fb.24df1",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 7163.948989868164,
+ "y": 720.2223358154297,
+ "z": "25a21122.0e2cfe",
+ "wires": [
+ [
+ "10e59332.2edbc5"
+ ]
+ ]
+ },
+ {
+ "id": "10e59332.2edbc5",
+ "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": 7378.566665649414,
+ "y": 716.5666656494141,
+ "z": "25a21122.0e2cfe",
+ "wires": []
+ },
+ {
+ "id": "22e60879.c39a9",
+ "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.dst.domainB.pnf-name\"\n pfx='tmp.aai.destination-pnf' local-only='false' >\n\n <!--AND depth = '0'\"-->\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 5543.566665649414,
+ "y": 1605.566665649414,
+ "z": "25a21122.0e2cfe",
+ "wires": [
+ [
+ "3be38b30.4b1f64",
+ "53e462a7.300ecc",
+ "be7dfbd6.3bfbb"
+ ]
+ ]
+ },
+ {
+ "id": "3be38b30.4b1f64",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 5739.066787719727,
+ "y": 1557.566665649414,
+ "z": "25a21122.0e2cfe",
+ "wires": [
+ [
+ "3d4c22c4.8bc33e"
+ ]
+ ]
+ },
+ {
+ "id": "53e462a7.300ecc",
+ "type": "not-found",
+ "name": "not-found",
+ "xml": "<outcome value='not-found'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 5731.066787719727,
+ "y": 1612.566665649414,
+ "z": "25a21122.0e2cfe",
+ "wires": [
+ [
+ "cc499006.fb3a6"
+ ]
+ ]
+ },
+ {
+ "id": "be7dfbd6.3bfbb",
+ "type": "other",
+ "name": "other",
+ "xml": "<outcome value='Other'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 5736.066787719727,
+ "y": 1669.566665649414,
+ "z": "25a21122.0e2cfe",
+ "wires": [
+ [
+ "95cfda12.13aa08"
+ ]
+ ]
+ },
+ {
+ "id": "95cfda12.13aa08",
+ "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": 5888.066787719727,
+ "y": 1670.566665649414,
+ "z": "25a21122.0e2cfe",
+ "wires": []
+ },
+ {
+ "id": "cc499006.fb3a6",
+ "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": 5899.066787719727,
+ "y": 1615.566665649414,
+ "z": "25a21122.0e2cfe",
+ "wires": []
+ },
+ {
+ "id": "3d4c22c4.8bc33e",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 5883.449111938477,
+ "y": 1555.2223358154297,
+ "z": "25a21122.0e2cfe",
+ "wires": [
+ [
+ "7d552eed.53cb2"
+ ]
+ ]
+ },
+ {
+ "id": "6ebd5273.de974c",
+ "type": "outcome",
+ "name": "esr-thirdparty-sdnc",
+ "xml": "<outcome value='esr-thirdparty-sdnc'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 6465.566665649414,
+ "y": 1573.566665649414,
+ "z": "25a21122.0e2cfe",
+ "wires": [
+ [
+ "d2cb326b.2ce928"
+ ]
+ ]
+ },
+ {
+ "id": "d2cb326b.2ce928",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "outputs": 1,
+ "x": 6642.566665649414,
+ "y": 1565.566665649414,
+ "z": "25a21122.0e2cfe",
+ "wires": [
+ [
+ "afdd7500.c5c358",
+ "995d487d.d5b57"
+ ]
+ ]
+ },
+ {
+ "id": "7d552eed.53cb2",
+ "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": 6067.566665649414,
+ "y": 1569.566665649414,
+ "z": "25a21122.0e2cfe",
+ "wires": [
+ [
+ "6d34d717.589238"
+ ]
+ ]
+ },
+ {
+ "id": "6d34d717.589238",
+ "type": "switchNode",
+ "name": "switch related-to",
+ "xml": "<switch test='`$tmp.aai.destination-pnf.relationship-list.relationship[$dpvidx].related-to`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 6262.566665649414,
+ "y": 1569.566665649414,
+ "z": "25a21122.0e2cfe",
+ "wires": [
+ [
+ "6ebd5273.de974c",
+ "9bbf0d49.94213"
+ ]
+ ]
+ },
+ {
+ "id": "995d487d.d5b57",
+ "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": 6850.566665649414,
+ "y": 1572.566665649414,
+ "z": "25a21122.0e2cfe",
+ "wires": [
+ [
+ "bb91f7ce.3ad978",
+ "8e3f2e93.c1d45",
+ "c8e3caf1.3f9eb8"
+ ]
+ ]
+ },
+ {
+ "id": "afdd7500.c5c358",
+ "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": 6880.566665649414,
+ "y": 1520.566665649414,
+ "z": "25a21122.0e2cfe",
+ "wires": []
+ },
+ {
+ "id": "bb91f7ce.3ad978",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 7060.566665649414,
+ "y": 1563.566665649414,
+ "z": "25a21122.0e2cfe",
+ "wires": [
+ [
+ "ced1d2ca.c0f7c"
+ ]
+ ]
+ },
+ {
+ "id": "8e3f2e93.c1d45",
+ "type": "not-found",
+ "name": "not-found",
+ "xml": "<outcome value='not-found'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 7052.566665649414,
+ "y": 1618.566665649414,
+ "z": "25a21122.0e2cfe",
+ "wires": [
+ [
+ "20b91ac9.f7bb0e"
+ ]
+ ]
+ },
+ {
+ "id": "c8e3caf1.3f9eb8",
+ "type": "other",
+ "name": "other",
+ "xml": "<outcome value='Other'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 7057.566665649414,
+ "y": 1675.566665649414,
+ "z": "25a21122.0e2cfe",
+ "wires": [
+ [
+ "625c69e0.19da8"
+ ]
+ ]
+ },
+ {
+ "id": "625c69e0.19da8",
+ "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": 7209.566665649414,
+ "y": 1676.566665649414,
+ "z": "25a21122.0e2cfe",
+ "wires": []
+ },
+ {
+ "id": "20b91ac9.f7bb0e",
+ "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": 7220.566665649414,
+ "y": 1621.566665649414,
+ "z": "25a21122.0e2cfe",
+ "wires": []
+ },
+ {
+ "id": "ced1d2ca.c0f7c",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 7204.948989868164,
+ "y": 1561.2223358154297,
+ "z": "25a21122.0e2cfe",
+ "wires": [
+ [
+ "483f20c0.02d49"
+ ]
+ ]
+ },
+ {
+ "id": "483f20c0.02d49",
+ "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": 7419.566665649414,
+ "y": 1557.566665649414,
+ "z": "25a21122.0e2cfe",
+ "wires": []
+ },
+ {
+ "id": "24772c6a.a8483c",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "outputs": 1,
+ "x": 416.56666564941406,
+ "y": 686.5666656494141,
+ "z": "25a21122.0e2cfe",
+ "wires": [
+ [
+ "3dd61cc7.9b7d74",
+ "99ef6a45.9ad878"
+ ]
+ ]
+ },
+ {
+ "id": "3dd61cc7.9b7d74",
+ "type": "for",
+ "name": "for each allotted-resource relationship",
+ "xml": "<for index='idx' start='0' end='`$tmp.aai.allotted-resource.relationship-list.relationship_length`' >\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 862.5666656494141,
+ "y": 545.5666656494141,
+ "z": "25a21122.0e2cfe",
+ "wires": [
+ [
+ "51cf951b.e925c4"
+ ]
+ ]
+ },
+ {
+ "id": "51cf951b.e925c4",
+ "type": "switchNode",
+ "name": "switch related-to",
+ "xml": "<switch test='`$tmp.aai.allotted-resource.relationship-list.relationship[$idx].related-to`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 3227.566665649414,
+ "y": 527.5666656494141,
+ "z": "25a21122.0e2cfe",
+ "wires": [
+ [
+ "2bf740bc.b587b"
+ ]
+ ]
+ },
+ {
+ "id": "90deb9f8.a72b18",
+ "type": "outcome",
+ "name": "network-resource",
+ "xml": "<outcome value='network-resource'>",
+ "comments": "",
+ "outputs": 1,
+ "x": 6427.566665649414,
+ "y": 806.5666656494141,
+ "z": "25a21122.0e2cfe",
+ "wires": [
+ [
+ "d620e654.6255c"
+ ]
+ ]
+ },
+ {
+ "id": "d620e654.6255c",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "outputs": 1,
+ "x": 6604.566665649414,
+ "y": 798.5666656494141,
+ "z": "25a21122.0e2cfe",
+ "wires": [
+ [
+ "4397af3f.dc85e"
+ ]
+ ]
+ },
+ {
+ "id": "4397af3f.dc85e",
+ "type": "set",
+ "name": "set domainA ethernet layer network-id",
+ "xml": "<set>\n<parameter name='tmp.domainA.eth-network-id' value=\"`$tmp.aai.source-pnf.relationship-list.relationship[$spvidx].relationship-data[0].relationship-value`\" />\n",
+ "comments": "",
+ "x": 6839.566665649414,
+ "y": 922.5666656494141,
+ "z": "25a21122.0e2cfe",
+ "wires": []
+ },
+ {
+ "id": "40a79108.ee4848",
+ "type": "set",
+ "name": "set domainB ethernet layer network-id",
+ "xml": "<set>\n<parameter name='tmp.domainB.eth-network-id' value=\"`$tmp.aai.destination-pnf.relationship-list.relationship[$dpvidx].relationship-data[0].relationship-value`\" />\n",
+ "comments": "",
+ "x": 6879.566665649414,
+ "y": 1762.566665649414,
+ "z": "25a21122.0e2cfe",
+ "wires": []
+ },
+ {
+ "id": "607a3e65.d46208",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "outputs": 1,
+ "x": 6644.566665649414,
+ "y": 1638.566665649414,
+ "z": "25a21122.0e2cfe",
+ "wires": [
+ [
+ "40a79108.ee4848"
+ ]
+ ]
+ },
+ {
+ "id": "9bbf0d49.94213",
+ "type": "outcome",
+ "name": "network-resource",
+ "xml": "<outcome value='network-resource'>",
+ "comments": "",
+ "outputs": 1,
+ "x": 6467.566665649414,
+ "y": 1646.566665649414,
+ "z": "25a21122.0e2cfe",
+ "wires": [
+ [
+ "607a3e65.d46208"
+ ]
+ ]
+ },
+ {
+ "id": "4f7a1356.449274",
+ "type": "set",
+ "name": "set the max bandwidth",
+ "xml": "<set>\n<parameter name='gfp' value='`$maximum-bandwidth /1000 *4 /5 +1`' />\n\n\n\n",
+ "comments": "",
+ "x": 4419.566665649414,
+ "y": 582.5666656494141,
+ "z": "25a21122.0e2cfe",
+ "wires": []
+ },
+ {
+ "id": "d1460a52.2dc398",
+ "type": "execute",
+ "name": "execute UUID generator for ethernet-service-name",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='generateUUID' >\n<parameter name=\"ctx-destination\" value=\"prop.ethernet-service-name\"/>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 4441.566665649414,
+ "y": 717.5666656494141,
+ "z": "25a21122.0e2cfe",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "96f11e74.5cf9",
+ "type": "execute",
+ "name": "execute UUID generator for otn-tunnel-name",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='generateUUID' >\n<parameter name=\"ctx-destination\" value=\"prop.otn-tunnel-name\"/>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 4422.566665649414,
+ "y": 767.5666656494141,
+ "z": "25a21122.0e2cfe",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "f0cde51e.fc048",
+ "type": "for",
+ "name": "for each allotted-resource",
+ "xml": "<for index='aridx' start='0' end='`$tmp.aai.service-instance.allotted-resources.allotted-resource_length`' >\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2032.566665649414,
+ "y": 315.56666564941406,
+ "z": "25a21122.0e2cfe",
+ "wires": [
+ [
+ "fe22e044.99d4c8",
+ "103cc7a8.7e9b88"
+ ]
+ ]
+ },
+ {
+ "id": "fe22e044.99d4c8",
+ "type": "set",
+ "name": "set the current allotted-resource-id",
+ "xml": "<set>\n<parameter name='allotted-resource-id' value=\"`$tmp.aai.service-instance.allotted-resources.allotted-resource[$aridx].id`\" />\n\n\n",
+ "comments": "",
+ "x": 2297.566665649414,
+ "y": 238.56666564941406,
+ "z": "25a21122.0e2cfe",
+ "wires": []
+ },
+ {
+ "id": "7c9d6be0.59e3fc",
+ "type": "set",
+ "name": "set query_param",
+ "xml": "<set>\n<parameter name='prop.ethsrvType' value='`$network-route-A`' />\n\n",
+ "comments": "",
+ "x": 4339.566665649414,
+ "y": 2217.566665649414,
+ "z": "25a21122.0e2cfe",
+ "wires": []
+ },
+ {
+ "id": "5f01b0d6.663678",
+ "type": "set",
+ "name": "unset parameters",
+ "xml": "<set>\n<parameter name='domain-A.tunnel-tp-id' value='' />\n<parameter name='domain-A.node-id' value='' />\n<parameter name='domain-A.network-id' value=\"\" />\n<parameter name='domain-A.provider-id' value=\"\" />\n<parameter name='domain-A.client-id' value=\"\" />\n<parameter name='domain-A.te-topo-id' value=\"\" />\n<parameter name='domain-A.network-type' value=\"\" />\n<parameter name='domain-A.ltpId' value=\"\" />\n<parameter name='tmp.domain-A.network-id' value=\"\" />\n<parameter name='tmp.domain-A.ttp-id' value=\"\" />\n<parameter name='network-route-A' value=\"\" />\n<!--<parameter name='domain-A.' value=\"\" />-->\n\n<parameter name='request-id' value='' />\n<parameter name='otn-source-node' value='' />\n<parameter name='otn-dest-node' value='' />\n<parameter name='bw-odu' value=\"\" />\n<parameter name='src-ttp-id' value='' />\n<parameter name='dst-ttp-id' value='' />\n\n<parameter name='domain-B.tunnel-tp-id' value='' />\n<parameter name='domain-B.node-id' value='' />\n<parameter name='domain-B.network-id' value=\"\" />\n<parameter name='domain-B.provider-id' value=\"\" />\n<parameter name='domain-B.client-id' value=\"\" />\n<parameter name='domain-B.te-topo-id' value=\"\" />\n<parameter name='domain-B.network-type' value=\"\" />\n<parameter name='domain-B.ltpId' value=\"\" />\n<parameter name='tmp.domain-B.network-id' value=\"\" />\n<parameter name='tmp.domain-B.ttp-id' value=\"\" />\n<parameter name='network-route-B' value=\"\" />\n<!--<parameter name='domain-B.' value=\"\" />-->\n\n\n\n\n\n",
+ "comments": "",
+ "x": 4322.566665649414,
+ "y": 3975.566665649414,
+ "z": "25a21122.0e2cfe",
+ "wires": []
+ },
+ {
+ "id": "32dd1d69.d1982a",
+ "type": "set",
+ "name": "set new ethernet-service-name",
+ "xml": "<set>\n<!--<parameter name='prop.ethernet-service-name' value=\"`$tmp.aai.logical-link.link-name`\" />-->\n<parameter name='prop.ethernet-service-name' value=\"`$tmp.aai.logical-link.link-id`\" />\n\n\n",
+ "comments": "",
+ "x": 4379.566665649414,
+ "y": 812.5666656494141,
+ "z": "25a21122.0e2cfe",
+ "wires": []
+ },
+ {
+ "id": "fefb165c.6d9d48",
+ "type": "for",
+ "name": "for vidx..tmp.otninfo_length[]",
+ "xml": "<for index='otnidx' start='0' end='`$tmp.otninfo_length`' >",
+ "comments": "",
+ "outputs": 1,
+ "x": 4368.566665649414,
+ "y": 2457.566665649414,
+ "z": "25a21122.0e2cfe",
+ "wires": [
+ [
+ "15c5a249.e6ba26"
+ ]
+ ]
+ },
+ {
+ "id": "1531085f.c55ba",
+ "type": "save",
+ "name": "save vpn-binding otnIdx resource (aka. OTN) in AAI",
+ "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='vpn-binding' \n key='vpn-binding.vpn-id = $prop.vpn-binding-otnidx-uuid' >\n<parameter name='vpn-id' value='`$prop.vpn-binding-otnidx-uuid`' />\n<parameter name='vpn-name' value='`$prop.otn-tunnel-name`' />\n<!--<parameter name='customer-vpn-id' value='`($idx + 1) * 10`' />-->\n<parameter name='customer-vpn-id' value='`($maxtpn + $gfp)`' />\n<!--<parameter name='access-provider-id' value='`$tmp.otninfo[$otnidx].dstPort.dst-access-provider-id`' />-->\n<parameter name='access-provider-id' value='`$tmp.access-provider-id`' />\n<!--<parameter name='access-client-id' value='`$tmp.otninfo[$otnidx].dstPort.dst-access-client-id`' />-->\n<parameter name='access-client-id' value='`$tmp.access-client-id`' />\n<!--<parameter name='access-topology-id' value='`$tmp.otninfo[$otnidx].dstPort.dst-access-topology-id`' />-->\n<parameter name='access-topology-id' value='`$tmp.access-topology-id`' />\n<!--<parameter name='src-access-node-id' value='`$tmp.otninfo[$otnidx].srcPort.src-access-node-id`' />-->\n<parameter name='src-access-node-id' value='`$tmp.domainG-src-access-node-id`' />\n<parameter name='src-access-ltp-id' value='`$tmp.otninfo[$otnidx].srcPort.src-tunnel-tp-id`' />\n<!--<parameter name='dst-access-node-id' value='`$tmp.otninfo[$otnidx].dstPort.dst-access-node-id`' />-->\n<parameter name='dst-access-node-id' value='`$tmp.domainG-dst-access-node-id`' />\n<parameter name='dst-access-ltp-id' value='`$tmp.otninfo[$otnidx].dstPort.dst-tunnel-tp-id`' />\n<parameter name='route-distinguisher' value='`$gfp`' />\n<parameter name='operational-status' value='Created' />\n<!--<parameter name='model-customization-id' value='`$network-topology-operation-input.network-information.onap-model-information.model-customization-uuid`' />-->\n<!--<parameter name='model-invariant-id' value='`$network-topology-operation-input.network-information.onap-model-information.model-invariant-uuid`' />-->\n<!--<parameter name='model-version-id' value='`$network-topology-operation-input.network-information.onap-model-information.model-uuid`' />-->\n\n\n<parameter name='vpn-region' value='`$prop.sdncRestApi.thirdpartySdnc.domainG.url`' />\n<parameter name='vpn-description' value='`$prop.sdncRestApi.thirdpartySdnc.domainG.user`' />\n<parameter name='vpn-platform' value='`$prop.sdncRestApi.thirdpartySdnc.domainG.password`' />\n\n<!-- The following line is in lieu of vpn-binding.slice-id (new attribute in latest AAI) -->\n<parameter name='ops-note' value='`$tmp.aai.service-instance.service-instance-id`' />\n\n\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 5496.566665649414,
+ "y": 2964.566665649414,
+ "z": "25a21122.0e2cfe",
+ "wires": [
+ [
+ "fcadaec7.4e387"
+ ]
+ ]
+ },
+ {
+ "id": "24f90323.65c334",
+ "type": "save",
+ "name": "save connectivity-A relationship to vpn-binding-A, in AAI",
+ "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='vpn-binding:relationship-list' \n key='vpn-binding.vpn-id = $prop.vpn-binding-otnidx-uuid' \n force=\"true\" pfx=\"tmp.AnAI-data\">\n<parameter name=\"relationship-list.relationship[0].related-to\" value=\"connectivity\" />\n<parameter name=\"relationship-list.relationship[0].related-link\" value=\"`'/network/connectivities/connectivity/' + $uuid.connectivity-domainA-uuid`\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-key\" value=\"connectivity.connectivity-id\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-value\" value=\"`$uuid.connectivity-domainA-uuid`\" />",
+ "comments": "",
+ "outputs": 1,
+ "x": 6069.066665649414,
+ "y": 3068.566665649414,
+ "z": "25a21122.0e2cfe",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "fcadaec7.4e387",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 5802.566665649414,
+ "y": 2963.566665649414,
+ "z": "25a21122.0e2cfe",
+ "wires": [
+ [
+ "47fc66cf.f2219"
+ ]
+ ]
+ },
+ {
+ "id": "47fc66cf.f2219",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 6012.066665649414,
+ "y": 2963.820571899414,
+ "z": "25a21122.0e2cfe",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "e4910759.e9a85",
+ "type": "execute",
+ "name": "execute UUID generator for vpn-binding $otnidx",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='generateUUID' >\n<parameter name=\"ctx-destination\" value=\"prop.vpn-binding-otnidx-uuid\"/>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 5532.566665649414,
+ "y": 2428.566665649414,
+ "z": "25a21122.0e2cfe",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "19efb26.3a5054e",
+ "type": "switchNode",
+ "name": "switch otnidx == 0",
+ "xml": "<switch test='`$otnidx == 0`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 5405.566665649414,
+ "y": 3081.566665649414,
+ "z": "25a21122.0e2cfe",
+ "wires": [
+ [
+ "6ac91bae.a4e2fc",
+ "f696dd3e.08c3d"
+ ]
+ ]
+ },
+ {
+ "id": "6ac91bae.a4e2fc",
+ "type": "outcomeTrue",
+ "name": "true",
+ "xml": "<outcome value='true'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 5588.566665649414,
+ "y": 3081.566665649414,
+ "z": "25a21122.0e2cfe",
+ "wires": [
+ [
+ "5559f5ba.2a16b4"
+ ]
+ ]
+ },
+ {
+ "id": "f696dd3e.08c3d",
+ "type": "outcomeFalse",
+ "name": "false",
+ "xml": "<outcome value='false'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 5413.566665649414,
+ "y": 3228.566665649414,
+ "z": "25a21122.0e2cfe",
+ "wires": [
+ [
+ "16a87f5a.f1d3a9"
+ ]
+ ]
+ },
+ {
+ "id": "b74045ae.325b78",
+ "type": "switchNode",
+ "name": "switch otnidx == last",
+ "xml": "<switch test='`$otnidx == $tmp.otninfo_length - 1`'>\n\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 5754.566665649414,
+ "y": 3309.566665649414,
+ "z": "25a21122.0e2cfe",
+ "wires": [
+ [
+ "93c212f0.0f2258",
+ "d060ce07.272bc8"
+ ]
+ ]
+ },
+ {
+ "id": "93c212f0.0f2258",
+ "type": "outcomeTrue",
+ "name": "true",
+ "xml": "<outcome value='true'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 5939.566665649414,
+ "y": 3310.566665649414,
+ "z": "25a21122.0e2cfe",
+ "wires": [
+ [
+ "8ce15cd2.dd2d"
+ ]
+ ]
+ },
+ {
+ "id": "d060ce07.272bc8",
+ "type": "outcomeFalse",
+ "name": "false",
+ "xml": "<outcome value='false'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 5958.566665649414,
+ "y": 3576.566665649414,
+ "z": "25a21122.0e2cfe",
+ "wires": [
+ [
+ "1b72857d.e58193"
+ ]
+ ]
+ },
+ {
+ "id": "a4b93978.557f9",
+ "type": "save",
+ "name": "save connectivity-B relationship to vpn-binding-B, in AAI",
+ "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='vpn-binding:relationship-list' \n key='vpn-binding.vpn-id = $prop.vpn-binding-otnidx-uuid' \n force=\"true\" pfx=\"tmp.AnAI-data\">\n<parameter name=\"relationship-list.relationship[0].related-to\" value=\"connectivity\" />\n<parameter name=\"relationship-list.relationship[0].related-link\" value=\"`'/network/connectivities/connectivity/' + $prop.connectivity-domainB-uuid`\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-key\" value=\"connectivity.connectivity-id\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-value\" value=\"`$prop.connectivity-domainB-uuid`\" />",
+ "comments": "",
+ "outputs": 1,
+ "x": 6369.566665649414,
+ "y": 3311.566665649414,
+ "z": "25a21122.0e2cfe",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "c7b0c40a.9c6038",
+ "type": "execute",
+ "name": "execute UUID generator for connectivity domain otnidx",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='generateUUID' >\n<parameter name=\"ctx-destination\" value=\"uuid.connectivity-otnidx-uuid\"/>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 6443.566665649414,
+ "y": 3609.566665649414,
+ "z": "25a21122.0e2cfe",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "689f50a5.dff04",
+ "type": "save",
+ "name": "save connectivity resource in AAI",
+ "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='connectivity' \n key='connectivity.connectivity-id = $uuid.connectivity-otnidx-uuid'>\n<parameter name='connectivity-id' value='`$uuid.connectivity-otnidx-uuid`' />\n<!--<parameter name='etht-svc-name' value='`$prop.ethernet-service-name`' />-->\n<parameter name='operational-status' value='Created' />\n<!--<parameter name='access-provider-id' value='`$tmp.otninfo[$otnidx].dstPort.dst-access-provider-id`' />-->\n<!--<parameter name='access-client-id' value='`$tmp.otninfo[$otnidx].dstPort.dst-access-client-id`' />-->\n<!--<parameter name='access-topology-id' value='`$tmp.otninfo[$otnidx].dstPort.dst-access-topology-id`' />-->\n<!--<parameter name='access-node-id' value='`$tmp.otninfo[$otnidx].srcPort.src-access-node-id`' />-->\n<!--<parameter name='access-ltp-id' value='``' />-->\n<!--<parameter name='cvlan' value='`$tmp.aai.network-route-A.logical-interface-id`' />-->\n\n<parameter name='bandwidth-profile-name' value='`$gfp`' />\n<parameter name='vpn-type' value='dummy' />\n<parameter name='cir' value='`$gfp *1000000`' />\n<parameter name='eir' value='`$gfp *1000000`' />\n<!--<parameter name='CBS' value='`$prop.sotn.cbs`' />-->\n<!--<parameter name='EBS' value='`$prop.sotn.ebs`' />-->\n<!--<parameter name='color-aware' value='`$prop.sotn.colorAware`' />-->\n<!--<parameter name='coupling-flag' value='`$prop.sotn.couplingFlag`' />-->\n<!--<parameter name='etht-svc-name' value='`$prop.sotn.etht-svc-name`' />-->\n<!--<parameter name='model-customization-id' value='`$network-topology-operation-input.network-information.onap-model-information.model-customization-uuid`' />-->\n<!--<parameter name='model-invariant-id' value='`$network-topology-operation-input.network-information.onap-model-information.model-invariant-uuid`' />-->\n<!--<parameter name='model-version-id' value='`$network-topology-operation-input.network-information.onap-model-information.model-uuid`' />-->\n<parameter name='connectivity-selflink' value=\"`'restconf/config/GENERIC-RESOURCE-API:services/service/' + $network-topology-operation-input.service-information.service-instance-id + '/service-data/networks/network/' + $prop.sotn.network-id + '/network-data/'` \" />\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 6379.566665649414,
+ "y": 3660.566665649414,
+ "z": "25a21122.0e2cfe",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "67d0e07e.cd61f8",
+ "type": "save",
+ "name": "save TNNSSI (transport service instance) relationship to connectivity in AAI",
+ "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='service-instance:relationship-list' \n key='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 force=\"true\" pfx=\"tmp.AnAI-data\">\n<parameter name=\"relationship-list.relationship[0].related-to\" value=\"connectivity\" />\n<parameter name=\"relationship-list.relationship[0].related-link\" value=\"`'/network/connectivities/connectivity/' + $uuid.connectivity-otnidx-uuid`\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-key\" value=\"connectivity.connectivity-id\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-value\" value=\"`$uuid.connectivity-otnidx-uuid`\" />\n\n\n<!--<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='service-instance:relationship-list' -->\n<!-- key='service-instance.service-instance-id = $service-data.service-information.service-instance-id -->\n<!-- AND customer.global-customer-id = $service-data.networks.network[$nidx].network-data.service-information.global-customer-id -->\n<!-- AND service-subscription.service-type = $service-data.networks.network[$nidx].network-data.service-information.subscription-service-type' -->\n<!-- force=\"true\" pfx=\"tmp.AnAI-data\">-->\n<!--<parameter name=\"relationship-list.relationship[0].related-to\" value=\"connectivity\" />-->\n<!--<parameter name=\"relationship-list.relationship[0].related-link\" value=\"`'/network/connectivities/connectivity/' + $prop.sotn.network-id`\" />-->\n<!--<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-key\" value=\"connectivity.connectivity-id\" />-->\n<!--<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-value\" value=\"`$prop.sotn.network-id`\" />-->",
+ "comments": "",
+ "outputs": 1,
+ "x": 6508.566665649414,
+ "y": 3710.566665649414,
+ "z": "25a21122.0e2cfe",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "8bcc08c5.9c4d7",
+ "type": "comment",
+ "name": "connectivity has not been created for middle domains, so we have to create one",
+ "info": "",
+ "comments": "",
+ "x": 6518.566665649414,
+ "y": 3553.566665649414,
+ "z": "25a21122.0e2cfe",
+ "wires": []
+ },
+ {
+ "id": "64006ab7.c64d44",
+ "type": "save",
+ "name": "save connectivity-otnidx relationship to vpn-binding-otnidx, in AAI",
+ "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='vpn-binding:relationship-list' \n key='vpn-binding.vpn-id = $prop.vpn-binding-otnidx-uuid' \n force=\"true\" pfx=\"tmp.AnAI-data\">\n<parameter name=\"relationship-list.relationship[0].related-to\" value=\"connectivity\" />\n<parameter name=\"relationship-list.relationship[0].related-link\" value=\"`'/network/connectivities/connectivity/' + $uuid.connectivity-otnidx-uuid`\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-key\" value=\"connectivity.connectivity-id\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-value\" value=\"`$uuid.connectivity-otnidx-uuid`\" />",
+ "comments": "",
+ "outputs": 1,
+ "x": 6476.566665649414,
+ "y": 3769.566665649414,
+ "z": "25a21122.0e2cfe",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "1b72857d.e58193",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 6115.566665649414,
+ "y": 3577.566665649414,
+ "z": "25a21122.0e2cfe",
+ "wires": [
+ [
+ "c7b0c40a.9c6038",
+ "689f50a5.dff04",
+ "67d0e07e.cd61f8",
+ "64006ab7.c64d44",
+ "9642c24b.bc1f8"
+ ]
+ ]
+ },
+ {
+ "id": "15c5a249.e6ba26",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 4625.566665649414,
+ "y": 2457.566665649414,
+ "z": "25a21122.0e2cfe",
+ "wires": [
+ [
+ "e4910759.e9a85",
+ "1531085f.c55ba",
+ "19efb26.3a5054e",
+ "ad7dc399.bf418",
+ "59469467.70a6d4",
+ "982e5c66.4703f8",
+ "e9c05ada.bb249"
+ ]
+ ]
+ },
+ {
+ "id": "b962e9bf.f7ec68",
+ "type": "set",
+ "name": "set attachment_param domain A",
+ "xml": "<set>\n<parameter name='slice-instance-id' value='`$tmp.aai.service-instance.service-instance-id`' />\n\n\n\n",
+ "comments": "",
+ "x": 5993.566665649414,
+ "y": 3125.566665649414,
+ "z": "25a21122.0e2cfe",
+ "wires": []
+ },
+ {
+ "id": "7f4b2d0d.ab9d0c",
+ "type": "execute",
+ "name": "execute RestApiCallNode domainA UNI Coloring",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"templateFileName\" value=\"`$prop.restapi.templateDir + '/' + $prop.restapi.ts-coloring-uni-port.templatefile`\" />\n<parameter name=\"restapiUrl\" value=\"`$prop.sdncRestApi.thirdpartySdnc.domainA.url + '/restconf/data/ietf-network:networks/network=' + $tmp.domainA.eth-network-id + '/node=' + $tmp.src.pnf-name + '/ietf-network-topology:termination-point=' + $tmp.src.ltpId + '/ietf-te-topology: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": 6046.566665649414,
+ "y": 3169.566665649414,
+ "z": "25a21122.0e2cfe",
+ "wires": [
+ [
+ "d0a8f560.124258",
+ "e919fb8f.48aeb"
+ ]
+ ]
+ },
+ {
+ "id": "e919fb8f.48aeb",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 6317.566665649414,
+ "y": 3154.566665649414,
+ "z": "25a21122.0e2cfe",
+ "wires": [
+ [
+ "408ad253.15a054"
+ ]
+ ]
+ },
+ {
+ "id": "d0a8f560.124258",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 6315.566879272461,
+ "y": 3212.566575050354,
+ "z": "25a21122.0e2cfe",
+ "wires": [
+ [
+ "bfaa06ad.2149c"
+ ]
+ ]
+ },
+ {
+ "id": "408ad253.15a054",
+ "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 UNI Coloring for domain A\" />\n",
+ "comments": "",
+ "x": 6457.566913604736,
+ "y": 3154.5666666030884,
+ "z": "25a21122.0e2cfe",
+ "wires": []
+ },
+ {
+ "id": "bfaa06ad.2149c",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 6463.593925476074,
+ "y": 3203.31206035614,
+ "z": "25a21122.0e2cfe",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "5559f5ba.2a16b4",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 5729.566665649414,
+ "y": 3071.566665649414,
+ "z": "25a21122.0e2cfe",
+ "wires": [
+ [
+ "24f90323.65c334",
+ "7f4b2d0d.ab9d0c",
+ "b962e9bf.f7ec68"
+ ]
+ ]
+ },
+ {
+ "id": "8ce15cd2.dd2d",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 6073.566665649414,
+ "y": 3311.566665649414,
+ "z": "25a21122.0e2cfe",
+ "wires": [
+ [
+ "a4b93978.557f9",
+ "fc367338.14f248",
+ "546374c7.67c9c4"
+ ]
+ ]
+ },
+ {
+ "id": "546374c7.67c9c4",
+ "type": "set",
+ "name": "set attachment_param domain B",
+ "xml": "<set>\n<parameter name='slice-instance-id' value='`$tmp.aai.service-instance.service-instance-id`' />\n\n\n",
+ "comments": "",
+ "x": 6293.566665649414,
+ "y": 3355.566665649414,
+ "z": "25a21122.0e2cfe",
+ "wires": []
+ },
+ {
+ "id": "fc367338.14f248",
+ "type": "execute",
+ "name": "execute RestApiCallNode domainB UNI Coloring",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"templateFileName\" value=\"`$prop.restapi.templateDir + '/' + $prop.restapi.ts-coloring-uni-port.templatefile`\" />\n<parameter name=\"restapiUrl\" value=\"`$prop.sdncRestApi.thirdpartySdnc.domainB.url + '/restconf/data/ietf-network:networks/network=' + $tmp.domainB.eth-network-id + '/node=' + $tmp.dst.pnf-name + '/ietf-network-topology:termination-point=' + $tmp.dst.ltpId + '/ietf-te-topology: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": 6344.566665649414,
+ "y": 3399.566665649414,
+ "z": "25a21122.0e2cfe",
+ "wires": [
+ [
+ "edc516eb.d6818",
+ "889681a1.8aebb"
+ ]
+ ]
+ },
+ {
+ "id": "889681a1.8aebb",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 6607.566665649414,
+ "y": 3379.566665649414,
+ "z": "25a21122.0e2cfe",
+ "wires": [
+ [
+ "b62983f6.8b1c68"
+ ]
+ ]
+ },
+ {
+ "id": "edc516eb.d6818",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 6608.566879272461,
+ "y": 3430.566575050354,
+ "z": "25a21122.0e2cfe",
+ "wires": [
+ [
+ "51aaba5d.abae2c"
+ ]
+ ]
+ },
+ {
+ "id": "b62983f6.8b1c68",
+ "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 UNI coloring for domain B\" />\n",
+ "comments": "",
+ "x": 6747.566913604736,
+ "y": 3379.5666666030884,
+ "z": "25a21122.0e2cfe",
+ "wires": []
+ },
+ {
+ "id": "51aaba5d.abae2c",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 6753.593925476074,
+ "y": 3428.31206035614,
+ "z": "25a21122.0e2cfe",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "9642c24b.bc1f8",
+ "type": "set",
+ "name": "set attachment_param domain otnidx",
+ "xml": "<set>\n<parameter name='slice-instance-id' value='`$tmp.aai.service-instance.service-instance-id`' />\n\n",
+ "comments": "",
+ "x": 6390.566665649414,
+ "y": 3829.566665649414,
+ "z": "25a21122.0e2cfe",
+ "wires": []
+ },
+ {
+ "id": "127eaa7a.98449e",
+ "type": "save",
+ "name": "get all-vpn-bindings from aai",
+ "xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\tresource=\"vpn-bindings\"\n\t key=\"selflink = 'https://aai.onap:8443/aai/v21/network/vpn-bindings\"\n\t\tlocal-only=\"false\" \n\t\tpfx=\"tmp.aai.all-vpn-bindings\" >\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 3709.566665649414,
+ "y": 4176.566665649414,
+ "z": "25a21122.0e2cfe",
+ "wires": [
+ [
+ "4f7f9fac.fe049",
+ "7f9abc32.a826f4",
+ "58223279.e77444"
+ ]
+ ]
+ },
+ {
+ "id": "4f7f9fac.fe049",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 3897.566665649414,
+ "y": 4189.566665649414,
+ "z": "25a21122.0e2cfe",
+ "wires": [
+ [
+ "f21f6a6d.7c0b9"
+ ]
+ ]
+ },
+ {
+ "id": "7f9abc32.a826f4",
+ "type": "not-found",
+ "name": "not-found",
+ "xml": "<outcome value='not-found'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 3898.057632446289,
+ "y": 4235.140701293945,
+ "z": "25a21122.0e2cfe",
+ "wires": [
+ [
+ "5b9e9e7e.bd3fb8"
+ ]
+ ]
+ },
+ {
+ "id": "58223279.e77444",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 3895.566665649414,
+ "y": 4278.566665649414,
+ "z": "25a21122.0e2cfe",
+ "wires": [
+ [
+ "81ac9378.5e17c8"
+ ]
+ ]
+ },
+ {
+ "id": "f21f6a6d.7c0b9",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "outputs": 1,
+ "x": 4070.566665649414,
+ "y": 4187.566665649414,
+ "z": "25a21122.0e2cfe",
+ "wires": [
+ [
+ "1562d3ab.607dc4"
+ ]
+ ]
+ },
+ {
+ "id": "5b9e9e7e.bd3fb8",
+ "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": 4060.6290435791016,
+ "y": 4235.42643737793,
+ "z": "25a21122.0e2cfe",
+ "wires": []
+ },
+ {
+ "id": "81ac9378.5e17c8",
+ "type": "returnFailure",
+ "name": "return failure",
+ "xml": "<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value='' />\n",
+ "comments": "",
+ "x": 4062.566665649414,
+ "y": 4277.566665649414,
+ "z": "25a21122.0e2cfe",
+ "wires": []
+ },
+ {
+ "id": "e781046f.1418e",
+ "type": "for",
+ "name": "for vidx..tmp.otninfo_length[]",
+ "xml": "<for index='dmnsidx' start='0' end='`$otn-tunnel-slice_length`' >\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 3698.566665649414,
+ "y": 4367.566665649414,
+ "z": "25a21122.0e2cfe",
+ "wires": [
+ [
+ "d5bebf9c.374a9"
+ ]
+ ]
+ },
+ {
+ "id": "a7536813.9c6d5",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 4508.566665649414,
+ "y": 4367.566665649414,
+ "z": "25a21122.0e2cfe",
+ "wires": [
+ [
+ "a13486f2.279748"
+ ]
+ ]
+ },
+ {
+ "id": "d852a581.272668",
+ "type": "for",
+ "name": "for vidx..tmp.otninfo_length[]",
+ "xml": "<for index='stunidx' start='0' end='`$otn-tunnel-slice[$dmnsidx].list_length`' >\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 4280.566665649414,
+ "y": 4367.566665649414,
+ "z": "25a21122.0e2cfe",
+ "wires": [
+ [
+ "a7536813.9c6d5"
+ ]
+ ]
+ },
+ {
+ "id": "35196fa7.3e82b8",
+ "type": "set",
+ "name": "set providerValue",
+ "xml": "<set>\n<parameter name='providerValue' value='`$tmp.aai.all-vpn-bindings.vpn-binding[$vpnbidx].access-provider-id`' />\n<parameter name='found' value='false' />\n\n\n",
+ "comments": "",
+ "x": 5400.566665649414,
+ "y": 4134.566665649414,
+ "z": "25a21122.0e2cfe",
+ "wires": []
+ },
+ {
+ "id": "1b7fbbc1.fdc524",
+ "type": "set",
+ "name": "set",
+ "xml": "<set>\n<parameter name='testingvalue' value='$tmp.otninfo_length -1' />\n",
+ "comments": "",
+ "x": 5702.566665649414,
+ "y": 3260.566665649414,
+ "z": "25a21122.0e2cfe",
+ "wires": []
+ },
+ {
+ "id": "16a87f5a.f1d3a9",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 5537.566665649414,
+ "y": 3235.566665649414,
+ "z": "25a21122.0e2cfe",
+ "wires": [
+ [
+ "1b7fbbc1.fdc524",
+ "b74045ae.325b78"
+ ]
+ ]
+ },
+ {
+ "id": "5a4aff44.5be78",
+ "type": "set",
+ "name": "set tmp.arr",
+ "xml": "<set>\n<parameter name='tmp.arr' value='' />\n<parameter name='tmp.arridx' value='0' />\n<parameter name='tmp.arr_length' value='0' />\n\n<parameter name='otn-tunnel-slice' value='' />\n<parameter name='otn-tunnel-slice_length' value='0' />\n\n<!--<parameter name='tmp.slicevpns' value='' />-->\n<!--<parameter name='tmp.slicevpns_length' value='0' />-->\n\n<!--<parameter name='tmp.slicevpnuuids' value='' />-->\n<!--<parameter name='tmp.slicevpnuuids.' value='' />-->\n\n<parameter name='bwModified' value='false' />\n",
+ "comments": "",
+ "x": 1991.566665649414,
+ "y": 265.56666564941406,
+ "z": "25a21122.0e2cfe",
+ "wires": []
+ },
+ {
+ "id": "1562d3ab.607dc4",
+ "type": "for",
+ "name": "for vpnidx in all-vpn-bindings",
+ "xml": "<for index='vpnbidx' start='0' end='`$tmp.aai.all-vpn-bindings.vpn-binding_length`' >\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 4299.566665649414,
+ "y": 4188.566665649414,
+ "z": "25a21122.0e2cfe",
+ "wires": [
+ [
+ "1d7f1d69.47cb1b"
+ ]
+ ]
+ },
+ {
+ "id": "1d7f1d69.47cb1b",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 4514.566665649414,
+ "y": 4189.566665649414,
+ "z": "25a21122.0e2cfe",
+ "wires": [
+ [
+ "25f755d1.b61592"
+ ]
+ ]
+ },
+ {
+ "id": "5d5ba3f2.74414c",
+ "type": "for",
+ "name": "for arridx in tmp.arr",
+ "xml": "<for index='arridx' start='0' end='`$tmp.arr_length`' >\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 5967.566665649414,
+ "y": 4109.566665649414,
+ "z": "25a21122.0e2cfe",
+ "wires": [
+ [
+ "c853cdfd.dbbe38"
+ ]
+ ]
+ },
+ {
+ "id": "b4d44dab.0baa88",
+ "type": "switchNode",
+ "name": "switch $tmp.arr_length != 0",
+ "xml": "<switch test='`$tmp.arr_length != 0`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 5433.566665649414,
+ "y": 4189.566665649414,
+ "z": "25a21122.0e2cfe",
+ "wires": [
+ [
+ "62eec498.21eadc",
+ "978a0072.3fd11"
+ ]
+ ]
+ },
+ {
+ "id": "62eec498.21eadc",
+ "type": "outcomeTrue",
+ "name": "true",
+ "xml": "<outcome value='true'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 5629.566665649414,
+ "y": 4159.566665649414,
+ "z": "25a21122.0e2cfe",
+ "wires": [
+ [
+ "899efa3b.42e148"
+ ]
+ ]
+ },
+ {
+ "id": "978a0072.3fd11",
+ "type": "outcomeFalse",
+ "name": "false",
+ "xml": "<outcome value='false'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 5630.566665649414,
+ "y": 4230.566665649414,
+ "z": "25a21122.0e2cfe",
+ "wires": [
+ [
+ "214f2c3d.6d899c"
+ ]
+ ]
+ },
+ {
+ "id": "899efa3b.42e148",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 5780.566665649414,
+ "y": 4157.566665649414,
+ "z": "25a21122.0e2cfe",
+ "wires": [
+ [
+ "5d5ba3f2.74414c",
+ "a601628e.52c128"
+ ]
+ ]
+ },
+ {
+ "id": "c853cdfd.dbbe38",
+ "type": "switchNode",
+ "name": "switch tmp.arr[$arridx] == $providerValue",
+ "xml": "<switch test='`$tmp.arr[$arridx] == $providerValue`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 6258.566665649414,
+ "y": 4109.566665649414,
+ "z": "25a21122.0e2cfe",
+ "wires": [
+ [
+ "32f1af6e.548f98",
+ "aa4fe454.7a4ce"
+ ]
+ ]
+ },
+ {
+ "id": "32f1af6e.548f98",
+ "type": "outcomeTrue",
+ "name": "true",
+ "xml": "<outcome value='true'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 6533.566665649414,
+ "y": 4078.566665649414,
+ "z": "25a21122.0e2cfe",
+ "wires": [
+ [
+ "811e814b.5875b8"
+ ]
+ ]
+ },
+ {
+ "id": "aa4fe454.7a4ce",
+ "type": "outcomeFalse",
+ "name": "false",
+ "xml": "<outcome value='false'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 6534.566665649414,
+ "y": 4149.566665649414,
+ "z": "25a21122.0e2cfe",
+ "wires": [
+ [
+ "989bacbe.4af828"
+ ]
+ ]
+ },
+ {
+ "id": "811e814b.5875b8",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 6684.566665649414,
+ "y": 4076.566665649414,
+ "z": "25a21122.0e2cfe",
+ "wires": [
+ [
+ "af4f903c.21f488",
+ "2d6d2965.4ae4be",
+ "e5b6e917.a4d33",
+ "1c32b22d.5aadde",
+ "1865add8.1adbe2"
+ ]
+ ]
+ },
+ {
+ "id": "af4f903c.21f488",
+ "type": "set",
+ "name": "set found to true",
+ "xml": "<set>\n<parameter name='found' value='true' />\n\n\n",
+ "comments": "",
+ "x": 6872.566665649414,
+ "y": 4036.566665649414,
+ "z": "25a21122.0e2cfe",
+ "wires": []
+ },
+ {
+ "id": "2d6d2965.4ae4be",
+ "type": "save",
+ "name": "store $arridx somewhere in vpn-binding",
+ "xml": "<update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='vpn-binding' \n key='vpn-binding.vpn-id = $tmp.aai.all-vpn-bindings.vpn-binding[$vpnbidx].vpn-id' >\n<parameter name='vpn-id' value='`$tmp.aai.all-vpn-bindings.vpn-binding[$vpnbidx].vpn-id`' />\n<parameter name='vpn-type' value='`$arridx`' />\n\n\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 6944.566665649414,
+ "y": 4081.566665649414,
+ "z": "25a21122.0e2cfe",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "1865add8.1adbe2",
+ "type": "set",
+ "name": "set twoD arr",
+ "xml": "<set>\n\n<!--<parameter name='`tmp.arr[$arridx + 1]`' value='`$providerValue`' />-->\n<!--<parameter name='tmp.arr_length' value='`$tmp.arr_length + 1`' />-->\n\n<parameter name='`otn-tunnel-slice[$arridx].list[$sizeOfSliceList].request-id`' value='`$tmp.aai.all-vpn-bindings.vpn-binding[$vpnbidx].vpn-id`' />\n<parameter name='`otn-tunnel-slice[$arridx].list[$sizeOfSliceList].otn-source-node`' value='`$tmp.aai.all-vpn-bindings.vpn-binding[$vpnbidx].src-access-node-id`' />\n<parameter name='`otn-tunnel-slice[$arridx].list[$sizeOfSliceList].otn-dest-node`' value='`$tmp.aai.all-vpn-bindings.vpn-binding[$vpnbidx].dst-access-node-id`' />\n<parameter name='`otn-tunnel-slice[$arridx].list[$sizeOfSliceList].bw-odu`' value=\"`'0,' + $gfp`\" />\n<parameter name='`otn-tunnel-slice[$arridx].list[$sizeOfSliceList].src-ttp-id`' value='`$tmp.aai.all-vpn-bindings.vpn-binding[$vpnbidx].src-access-ltp-id`' />\n<parameter name='`otn-tunnel-slice[$arridx].list[$sizeOfSliceList].dst-ttp-id`' value='`$tmp.aai.all-vpn-bindings.vpn-binding[$vpnbidx].dst-access-ltp-id`' />\n<parameter name='slice-instance-id' value='`$tmp.aai.service-instance.service-instance-id`' />\n\n<parameter name='`otn-tunnel-slice[$arridx].list[$sizeOfSliceList].domainurl`' value=\"`$tmp.aai.all-vpn-bindings.vpn-binding[$vpnbidx].vpn-region`\" />\n<parameter name='`otn-tunnel-slice[$arridx].list[$sizeOfSliceList].domainuser`' value='`$tmp.aai.all-vpn-bindings.vpn-binding[$vpnbidx].vpn-description`' />\n<parameter name='`otn-tunnel-slice[$arridx].list[$sizeOfSliceList].domainpassword`' value='`$tmp.aai.all-vpn-bindings.vpn-binding[$vpnbidx].vpn-platform`' />\n\n<!--<parameter name='otn-tunnel-slice_length' value='`$arridx + 2`' />-->\n<parameter name='`otn-tunnel-slice[$arridx].list_length`' value='`$sizeOfSliceList + 1`' />\n\n",
+ "comments": "",
+ "x": 6859.566665649414,
+ "y": 4208.566665649414,
+ "z": "25a21122.0e2cfe",
+ "wires": []
+ },
+ {
+ "id": "1c32b22d.5aadde",
+ "type": "set",
+ "name": "set sizeOfSliceList",
+ "xml": "<set>\n<parameter name='sizeOfSliceList' value='`$otn-tunnel-slice[$arridx].list_length`' />\n\n\n",
+ "comments": "",
+ "x": 6880.566665649414,
+ "y": 4144.566665649414,
+ "z": "25a21122.0e2cfe",
+ "wires": []
+ },
+ {
+ "id": "214f2c3d.6d899c",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 5782.566665649414,
+ "y": 4230.566665649414,
+ "z": "25a21122.0e2cfe",
+ "wires": [
+ [
+ "2a37cb43.8a38d4",
+ "2a56e17b.8d5c2e"
+ ]
+ ]
+ },
+ {
+ "id": "2a37cb43.8a38d4",
+ "type": "save",
+ "name": "store $arridx somewhere in vpn-binding",
+ "xml": "<update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='vpn-binding' \n key='vpn-binding.vpn-id = $tmp.aai.all-vpn-bindings.vpn-binding[$vpnbidx].vpn-id' >\n<parameter name='vpn-id' value='`$tmp.aai.all-vpn-bindings.vpn-binding[$vpnbidx].vpn-id`' />\n<parameter name='vpn-type' value='0' />\n\n\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 6037.566665649414,
+ "y": 4223.566665649414,
+ "z": "25a21122.0e2cfe",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "2a56e17b.8d5c2e",
+ "type": "set",
+ "name": "set twoD array",
+ "xml": "<set>\n<parameter name='tmp.arr[0]' value='`$providerValue`' />\n<parameter name='tmp.arr_length' value='1' />\n\n<parameter name='`otn-tunnel-slice[0].list[0].request-id`' value='`$tmp.aai.all-vpn-bindings.vpn-binding[$vpnbidx].vpn-id`' />\n<parameter name='`otn-tunnel-slice[0].list[0].otn-source-node`' value='`$tmp.aai.all-vpn-bindings.vpn-binding[$vpnbidx].src-access-node-id`' />\n<parameter name='`otn-tunnel-slice[0].list[0].otn-dest-node`' value='`$tmp.aai.all-vpn-bindings.vpn-binding[$vpnbidx].dst-access-node-id`' />\n<parameter name='`otn-tunnel-slice[0].list[0].bw-odu`' value=\"`'0,' + $gfp`\" />\n<parameter name='`otn-tunnel-slice[0].list[0].src-ttp-id`' value='`$tmp.aai.all-vpn-bindings.vpn-binding[$vpnbidx].src-access-ltp-id`' />\n<parameter name='`otn-tunnel-slice[0].list[0].dst-ttp-id`' value='`$tmp.aai.all-vpn-bindings.vpn-binding[$vpnbidx].dst-access-ltp-id`' />\n<parameter name='slice-instance-id' value='`$tmp.aai.service-instance.service-instance-id`' />\n\n<parameter name='`otn-tunnel-slice[0].list[0].domainurl`' value=\"`$tmp.aai.all-vpn-bindings.vpn-binding[$vpnbidx].vpn-region`\" />\n<parameter name='`otn-tunnel-slice[0].list[0].domainuser`' value='`$tmp.aai.all-vpn-bindings.vpn-binding[$vpnbidx].vpn-description`' />\n<parameter name='`otn-tunnel-slice[0].list[0].domainpassword`' value='`$tmp.aai.all-vpn-bindings.vpn-binding[$vpnbidx].vpn-platform`' />\n\n<parameter name='otn-tunnel-slice_length' value='1' />\n<parameter name='otn-tunnel-slice[0].list_length' value='1' />\n\n",
+ "comments": "",
+ "x": 5965.566665649414,
+ "y": 4270.566665649414,
+ "z": "25a21122.0e2cfe",
+ "wires": []
+ },
+ {
+ "id": "a601628e.52c128",
+ "type": "switchNode",
+ "name": "switch found?",
+ "xml": "<switch test='`$found`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 5958.566665649414,
+ "y": 4154.566665649414,
+ "z": "25a21122.0e2cfe",
+ "wires": [
+ [
+ "38e10d32.2b93c2",
+ "dbcc850c.fc8dd"
+ ]
+ ]
+ },
+ {
+ "id": "38e10d32.2b93c2",
+ "type": "outcomeTrue",
+ "name": "true",
+ "xml": "<outcome value='true'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 6118.566665649414,
+ "y": 4146.566665649414,
+ "z": "25a21122.0e2cfe",
+ "wires": [
+ [
+ "b21401a.fc6228"
+ ]
+ ]
+ },
+ {
+ "id": "dbcc850c.fc8dd",
+ "type": "outcomeFalse",
+ "name": "false",
+ "xml": "<outcome value='false'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 6116.566665649414,
+ "y": 4183.566665649414,
+ "z": "25a21122.0e2cfe",
+ "wires": [
+ [
+ "e4683213.00ce18"
+ ]
+ ]
+ },
+ {
+ "id": "b21401a.fc6228",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 6243.566665649414,
+ "y": 4146.566665649414,
+ "z": "25a21122.0e2cfe",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "a2a7d328.f35de8",
+ "type": "save",
+ "name": "store $arridx+1 somewhere in vpn-binding",
+ "xml": "<update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='vpn-binding' \n key='vpn-binding.vpn-id = $tmp.aai.all-vpn-bindings.vpn-binding[$vpnbidx].vpn-id' >\n<parameter name='vpn-id' value='`$tmp.aai.all-vpn-bindings.vpn-binding[$vpnbidx].vpn-id`' />\n<parameter name='vpn-type' value='`$arridx + 1`' />\n\n\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 6550.566665649414,
+ "y": 4204.566665649414,
+ "z": "25a21122.0e2cfe",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "e4683213.00ce18",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 6276.566665649414,
+ "y": 4191.566665649414,
+ "z": "25a21122.0e2cfe",
+ "wires": [
+ [
+ "a2a7d328.f35de8",
+ "930daebd.33fb78"
+ ]
+ ]
+ },
+ {
+ "id": "930daebd.33fb78",
+ "type": "set",
+ "name": "set twoD array",
+ "xml": "<set>\n<parameter name='`tmp.arr[$arridx + 1]`' value='`$providerValue`' />\n<parameter name='tmp.arr_length' value='`$tmp.arr_length + 1`' />\n\n<parameter name='`otn-tunnel-slice[$arridx + 1].list[0].request-id`' value='`$tmp.aai.all-vpn-bindings.vpn-binding[$vpnbidx].vpn-id`' />\n<parameter name='`otn-tunnel-slice[$arridx + 1].list[0].otn-source-node`' value='`$tmp.aai.all-vpn-bindings.vpn-binding[$vpnbidx].src-access-node-id`' />\n<parameter name='`otn-tunnel-slice[$arridx + 1].list[0].otn-dest-node`' value='`$tmp.aai.all-vpn-bindings.vpn-binding[$vpnbidx].dst-access-node-id`' />\n<parameter name='`otn-tunnel-slice[$arridx + 1].list[0].bw-odu`' value=\"`'0,' + $gfp`\" />\n<parameter name='`otn-tunnel-slice[$arridx + 1].list[0].src-ttp-id`' value='`$tmp.aai.all-vpn-bindings.vpn-binding[$vpnbidx].src-access-ltp-id`' />\n<parameter name='`otn-tunnel-slice[$arridx + 1].list[0].dst-ttp-id`' value='`$tmp.aai.all-vpn-bindings.vpn-binding[$vpnbidx].dst-access-ltp-id`' />\n<parameter name='slice-instance-id' value='`$tmp.aai.service-instance.service-instance-id`' />\n\n<parameter name='`otn-tunnel-slice[$arridx + 1].list[0].domainurl`' value=\"`$tmp.aai.all-vpn-bindings.vpn-binding[$vpnbidx].vpn-region`\" />\n<parameter name='`otn-tunnel-slice[$arridx + 1].list[0].domainuser`' value='`$tmp.aai.all-vpn-bindings.vpn-binding[$vpnbidx].vpn-description`' />\n<parameter name='`otn-tunnel-slice[$arridx + 1].list[0].domainpassword`' value='`$tmp.aai.all-vpn-bindings.vpn-binding[$vpnbidx].vpn-platform`' />\n\n<parameter name='otn-tunnel-slice_length' value='`$arridx + 2`' />\n<parameter name='`otn-tunnel-slice[$arridx + 1].list_length`' value='1' />\n\n",
+ "comments": "",
+ "x": 6467.566665649414,
+ "y": 4250.566665649414,
+ "z": "25a21122.0e2cfe",
+ "wires": []
+ },
+ {
+ "id": "989bacbe.4af828",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 6667.566665649414,
+ "y": 4148.566665649414,
+ "z": "25a21122.0e2cfe",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "e5b6e917.a4d33",
+ "type": "break",
+ "name": "break",
+ "xml": "<break>\n",
+ "comments": "",
+ "x": 6838.566665649414,
+ "y": 4275.566665649414,
+ "z": "25a21122.0e2cfe",
+ "wires": []
+ },
+ {
+ "id": "ad7dc399.bf418",
+ "type": "switchNode",
+ "name": "switch dstPort == NULL",
+ "xml": "<switch test=\"`$tmp.otninfo[$otnidx].dstPort.dst-access-provider-id == ''`\">\n\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 5235.566665649414,
+ "y": 2487.566665649414,
+ "z": "25a21122.0e2cfe",
+ "wires": [
+ [
+ "359b938e.1f1cd4",
+ "64d68365.eb604c"
+ ]
+ ]
+ },
+ {
+ "id": "359b938e.1f1cd4",
+ "type": "outcomeTrue",
+ "name": "true",
+ "xml": "<outcome value='true'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 5624.566665649414,
+ "y": 2465.566665649414,
+ "z": "25a21122.0e2cfe",
+ "wires": [
+ [
+ "73a3115c.3a191"
+ ]
+ ]
+ },
+ {
+ "id": "64d68365.eb604c",
+ "type": "outcomeFalse",
+ "name": "false",
+ "xml": "<outcome value='false'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 5625.566665649414,
+ "y": 2511.566665649414,
+ "z": "25a21122.0e2cfe",
+ "wires": [
+ [
+ "40a2bbc1.5980e4"
+ ]
+ ]
+ },
+ {
+ "id": "73a3115c.3a191",
+ "type": "set",
+ "name": "set access-provider-id and client-id",
+ "xml": "<set>\n<parameter name='tmp.access-provider-id' value='`$tmp.otninfo[$otnidx].srcPort.src-access-provider-id`' />\n<parameter name='tmp.access-client-id' value='`$tmp.otninfo[$otnidx].srcPort.src-access-client-id`' />\n<parameter name='tmp.access-topology-id' value='`$tmp.otninfo[$otnidx].srcPort.src-access-topology-id`' />\n<parameter name='tmp.srcdstpnf-id' value='`$tmp.otninfo[$otnidx].srcPort.src-access-node-id`' />\n",
+ "comments": "",
+ "x": 5838.566665649414,
+ "y": 2464.566665649414,
+ "z": "25a21122.0e2cfe",
+ "wires": []
+ },
+ {
+ "id": "40a2bbc1.5980e4",
+ "type": "set",
+ "name": "set access-provider-id and client-id",
+ "xml": "<set>\n<parameter name='tmp.access-provider-id' value='`$tmp.otninfo[$otnidx].dstPort.dst-access-provider-id`' />\n<parameter name='tmp.access-client-id' value='`$tmp.otninfo[$otnidx].dstPort.dst-access-client-id`' />\n<parameter name='tmp.access-topology-id' value='`$tmp.otninfo[$otnidx].dstPort.dst-access-topology-id`' />\n<parameter name='tmp.srcdstpnf-id' value='`$tmp.otninfo[$otnidx].dstPort.dst-access-node-id`' />\n",
+ "comments": "",
+ "x": 5836.566665649414,
+ "y": 2509.566665649414,
+ "z": "25a21122.0e2cfe",
+ "wires": []
+ },
+ {
+ "id": "a13486f2.279748",
+ "type": "set",
+ "name": "set attachment_param sliceG",
+ "xml": "<set>\n<parameter name='`otn-tunnel-sliceG-list[$stunidx].request-id`' value='`$otn-tunnel-slice[$dmnsidx].list[$stunidx].request-id`' />\n<parameter name='`otn-tunnel-sliceG-list[$stunidx].otn-source-node`' value='`$otn-tunnel-slice[$dmnsidx].list[$stunidx].otn-source-node`' />\n<parameter name='`otn-tunnel-sliceG-list[$stunidx].otn-dest-node`' value='`$otn-tunnel-slice[$dmnsidx].list[$stunidx].otn-dest-node`' />\n<parameter name='`otn-tunnel-sliceG-list[$stunidx].bw-odu`' value=\"`$otn-tunnel-slice[$dmnsidx].list[$stunidx].bw-odu`\" />\n<parameter name='`otn-tunnel-sliceG-list[$stunidx].src-ttp-id`' value='`$otn-tunnel-slice[$dmnsidx].list[$stunidx].src-ttp-id`' />\n<parameter name='`otn-tunnel-sliceG-list[$stunidx].dst-ttp-id`' value='`$otn-tunnel-slice[$dmnsidx].list[$stunidx].dst-ttp-id`' />\n<parameter name='slice-instance-id' value='`$tmp.aai.service-instance.service-instance-id`' />\n\n<parameter name='otn-tunnel-sliceG-list_length' value='`$stunidx + 1`' />\n\n\n<parameter name=\"tmp.domainG.restapiUrl\" value=\"`$otn-tunnel-slice[$dmnsidx].list[$stunidx].domainurl`\" />\n<parameter name=\"tmp.domainG.restapiUser\" value=\"`$otn-tunnel-slice[$dmnsidx].list[$stunidx].domainuser`\" />\n<parameter name=\"tmp.domainG.restapiPassword\" value=\"`$otn-tunnel-slice[$dmnsidx].list[$stunidx].domainpassword`\" />",
+ "comments": "",
+ "x": 4761.566665649414,
+ "y": 4365.566665649414,
+ "z": "25a21122.0e2cfe",
+ "wires": []
+ },
+ {
+ "id": "3fa485d1.c8f9c2",
+ "type": "execute",
+ "name": "execute RestApiCallNode sliceG creation domainG",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"templateFileName\" value=\"`$prop.restapi.templateDir + '/' + $prop.restapi.transport-sliceG-list-creation.templatefile`\" />\n<parameter name=\"restapiUrl\" value=\"`$tmp.domainG.restapiUrl + '/restconf/operations/ietf-optical-slice:create-optical-slice'`\" />\n<parameter name=\"restapiUser\" value=\"`$tmp.domainG.restapiUser`\" />\n<parameter name=\"restapiPassword\" value=\"`tmp.domainG.restapiPassword`\" />\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`\" />\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 4346.566665649414,
+ "y": 4473.566665649414,
+ "z": "25a21122.0e2cfe",
+ "wires": [
+ [
+ "f023dd0f.b91278",
+ "29f41b43.8a7c44"
+ ]
+ ]
+ },
+ {
+ "id": "29f41b43.8a7c44",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 4629.566665649414,
+ "y": 4453.566665649414,
+ "z": "25a21122.0e2cfe",
+ "wires": [
+ [
+ "e71ba272.6cc34"
+ ]
+ ]
+ },
+ {
+ "id": "f023dd0f.b91278",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 4630.566879272461,
+ "y": 4504.566575050354,
+ "z": "25a21122.0e2cfe",
+ "wires": [
+ [
+ "7f431198.b36fd"
+ ]
+ ]
+ },
+ {
+ "id": "e71ba272.6cc34",
+ "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 slice creation api for domain A\" />\n",
+ "comments": "",
+ "x": 4769.566913604736,
+ "y": 4453.566666603088,
+ "z": "25a21122.0e2cfe",
+ "wires": []
+ },
+ {
+ "id": "7f431198.b36fd",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 4775.593925476074,
+ "y": 4502.31206035614,
+ "z": "25a21122.0e2cfe",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "59469467.70a6d4",
+ "type": "set",
+ "name": "set srcdstpnf-name",
+ "xml": "<set>\n<parameter name='tmp.srcdstpnf-name' value=\"`'networkId-providerId-' + \n $tmp.access-provider-id + '-clientId-' +\n $tmp.access-client-id + '-topologyId-' + \n $tmp.access-topology-id + '-nodeId-' + \n $tmp.srcdstpnf-id`\" />\n\n",
+ "comments": "",
+ "x": 5419.566665649414,
+ "y": 2607.566665649414,
+ "z": "25a21122.0e2cfe",
+ "wires": []
+ },
+ {
+ "id": "982e5c66.4703f8",
+ "type": "get-resource",
+ "name": "get-resource tmp.srcdstpnf-name",
+ "xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\t\tresource=\"pnf\" \n\t\tkey=\"pnf.pnf-name = $tmp.srcdstpnf-name\"\n pfx='tmp.aai.srcdst-pnf' local-only='false' >\n\n <!--AND depth = '0'\"-->\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 5463.566665649414,
+ "y": 2655.566665649414,
+ "z": "25a21122.0e2cfe",
+ "wires": [
+ [
+ "48087d37.a26c6c",
+ "da051a0e.70b99",
+ "11fa1a3.3e28f66"
+ ]
+ ]
+ },
+ {
+ "id": "48087d37.a26c6c",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 5676.066665649414,
+ "y": 2602.566665649414,
+ "z": "25a21122.0e2cfe",
+ "wires": [
+ [
+ "d7b6e1d4.5db9c8"
+ ]
+ ]
+ },
+ {
+ "id": "da051a0e.70b99",
+ "type": "not-found",
+ "name": "not-found",
+ "xml": "<outcome value='not-found'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 5688.066665649414,
+ "y": 2652.566665649414,
+ "z": "25a21122.0e2cfe",
+ "wires": [
+ [
+ "8bafac6.5725d5"
+ ]
+ ]
+ },
+ {
+ "id": "11fa1a3.3e28f66",
+ "type": "other",
+ "name": "other",
+ "xml": "<outcome value='Other'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 5679.066665649414,
+ "y": 2707.566665649414,
+ "z": "25a21122.0e2cfe",
+ "wires": [
+ [
+ "1bd627d5.df5018"
+ ]
+ ]
+ },
+ {
+ "id": "1bd627d5.df5018",
+ "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": 5824.066665649414,
+ "y": 2706.566665649414,
+ "z": "25a21122.0e2cfe",
+ "wires": []
+ },
+ {
+ "id": "8bafac6.5725d5",
+ "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": 5835.066665649414,
+ "y": 2649.566665649414,
+ "z": "25a21122.0e2cfe",
+ "wires": []
+ },
+ {
+ "id": "d7b6e1d4.5db9c8",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 5801.449111938477,
+ "y": 2596.2223358154297,
+ "z": "25a21122.0e2cfe",
+ "wires": [
+ [
+ "7412b5af.ff0f9c"
+ ]
+ ]
+ },
+ {
+ "id": "2b52018c.262d56",
+ "type": "outcome",
+ "name": "esr-thirdparty-sdnc",
+ "xml": "<outcome value='esr-thirdparty-sdnc'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 6360.566665649414,
+ "y": 2614.566665649414,
+ "z": "25a21122.0e2cfe",
+ "wires": [
+ [
+ "691fa48a.848bcc"
+ ]
+ ]
+ },
+ {
+ "id": "691fa48a.848bcc",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "outputs": 1,
+ "x": 6537.566665649414,
+ "y": 2606.566665649414,
+ "z": "25a21122.0e2cfe",
+ "wires": [
+ [
+ "40d861d8.1df158",
+ "6005e754.3b403"
+ ]
+ ]
+ },
+ {
+ "id": "7412b5af.ff0f9c",
+ "type": "for",
+ "name": "for each relationship",
+ "xml": "<for silentFailure='true' index='spvidx' start='0' end='`$tmp.aai.srcdst-pnf.relationship-list.relationship_length`' >\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 5962.566665649414,
+ "y": 2610.566665649414,
+ "z": "25a21122.0e2cfe",
+ "wires": [
+ [
+ "cee0c51f.59e4e8"
+ ]
+ ]
+ },
+ {
+ "id": "cee0c51f.59e4e8",
+ "type": "switchNode",
+ "name": "switch related-to",
+ "xml": "<switch test='`$tmp.aai.srcdst-pnf.relationship-list.relationship[$spvidx].related-to`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 6157.566665649414,
+ "y": 2610.566665649414,
+ "z": "25a21122.0e2cfe",
+ "wires": [
+ [
+ "2b52018c.262d56"
+ ]
+ ]
+ },
+ {
+ "id": "6005e754.3b403",
+ "type": "execute",
+ "name": "get esr-thirdparty-sdnc",
+ "xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\t\tresource=\"esr-thirdparty-sdnc\" \n\t\tkey=\"esr-thirdparty-sdnc.thirdparty-sdnc-id = $tmp.domainG.esr-thirdparty-id AND \n\t\t depth = '1'\"\n pfx='tmp.aai.domainG.esr-thirdparty-sdnc' local-only='false' >",
+ "comments": "",
+ "outputs": 1,
+ "x": 6745.566665649414,
+ "y": 2613.566665649414,
+ "z": "25a21122.0e2cfe",
+ "wires": [
+ [
+ "ba9890c1.c4a288",
+ "659d7a5f.8396d4",
+ "c60c2b5.88a3ed8"
+ ]
+ ]
+ },
+ {
+ "id": "40d861d8.1df158",
+ "type": "set",
+ "name": "set esr-thirdparty-sdnc domainG id",
+ "xml": "<set>\n<parameter name='tmp.domainG.esr-thirdparty-id' value=\"`$tmp.aai.srcdst-pnf.relationship-list.relationship[$spvidx].relationship-data[0].relationship-value`\" />\n",
+ "comments": "",
+ "x": 6775.566665649414,
+ "y": 2561.566665649414,
+ "z": "25a21122.0e2cfe",
+ "wires": []
+ },
+ {
+ "id": "ba9890c1.c4a288",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 6955.566665649414,
+ "y": 2604.566665649414,
+ "z": "25a21122.0e2cfe",
+ "wires": [
+ [
+ "203ebc79.0da80c"
+ ]
+ ]
+ },
+ {
+ "id": "659d7a5f.8396d4",
+ "type": "not-found",
+ "name": "not-found",
+ "xml": "<outcome value='not-found'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 6947.566665649414,
+ "y": 2659.566665649414,
+ "z": "25a21122.0e2cfe",
+ "wires": [
+ [
+ "23f5bad7.571c16"
+ ]
+ ]
+ },
+ {
+ "id": "c60c2b5.88a3ed8",
+ "type": "other",
+ "name": "other",
+ "xml": "<outcome value='Other'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 6952.566665649414,
+ "y": 2716.566665649414,
+ "z": "25a21122.0e2cfe",
+ "wires": [
+ [
+ "d78cb5ab.fdf3"
+ ]
+ ]
+ },
+ {
+ "id": "d78cb5ab.fdf3",
+ "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": 7104.566665649414,
+ "y": 2717.566665649414,
+ "z": "25a21122.0e2cfe",
+ "wires": []
+ },
+ {
+ "id": "23f5bad7.571c16",
+ "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": 7115.566665649414,
+ "y": 2662.566665649414,
+ "z": "25a21122.0e2cfe",
+ "wires": []
+ },
+ {
+ "id": "203ebc79.0da80c",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 7099.948989868164,
+ "y": 2602.2223358154297,
+ "z": "25a21122.0e2cfe",
+ "wires": [
+ [
+ "510e20cb.08311"
+ ]
+ ]
+ },
+ {
+ "id": "510e20cb.08311",
+ "type": "set",
+ "name": "set controller domainA data",
+ "xml": "<set>\n<parameter name='prop.sdncRestApi.thirdpartySdnc.domainG.url' value=\"`$tmp.aai.domainG.esr-thirdparty-sdnc.esr-system-info-list.esr-system-info[0].service-url`\" />\n<parameter name='prop.sdncRestApi.thirdpartySdnc.domainG.user' value=\"`$tmp.aai.domainG.esr-thirdparty-sdnc.esr-system-info-list.esr-system-info[0].user-name`\" />\n<parameter name='prop.sdncRestApi.thirdpartySdnc.domainG.password' value=\"`$tmp.aai.domainG.esr-thirdparty-sdnc.esr-system-info-list.esr-system-info[0].password`\" />\n\n\n<!--<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >-->\n<!--<parameter name=\"restapiUrl\" value=\"`$prop.sdncRestApi.thirdpartySdnc.url + '/restconf/data/ietf-network:networks'`\" />-->\n<!--<parameter name=\"restapiUser\" value=\"`$prop.sdncRestApi.thirdpartySdnc.user`\" />-->\n<!--<parameter name=\"restapiPassword\" value=\"`$prop.sdncRestApi.thirdpartySdnc.password`\" />-->\n<!--<parameter name=\"format\" value=\"json\"/>-->\n<!--<parameter name=\"httpMethod\" value=\"get\"/>-->\n<!--<parameter name=\"responsePrefix\" value=\"topology\"/>-->\n<!--<parameter name=\"trustStoreFileName\" value=\"/opt/onap/sdnc/data/stores/truststore.onap.client.jks\"/>-->\n<!--<parameter name=\"trustStorePassword\" value=\"adminadmin\"/>-->\n<!--<parameter name=\"keyStoreFileName\" value=\"/opt/onap/sdnc/data/stores/sdnc.p12\"/>-->\n<!--<parameter name=\"keyStorePassword\" value=\"adminadmin\"/>-->\n",
+ "comments": "",
+ "x": 7314.566665649414,
+ "y": 2598.566665649414,
+ "z": "25a21122.0e2cfe",
+ "wires": []
+ },
+ {
+ "id": "d5bebf9c.374a9",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 3930.566665649414,
+ "y": 4365.566665649414,
+ "z": "25a21122.0e2cfe",
+ "wires": [
+ [
+ "d852a581.272668",
+ "3fa485d1.c8f9c2"
+ ]
+ ]
+ },
+ {
+ "id": "e9c05ada.bb249",
+ "type": "switchNode",
+ "name": "switch dmnsidx == 0 (domainA)",
+ "xml": "<switch test='`$otnidx == 0`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 5433.566665649414,
+ "y": 2824.566665649414,
+ "z": "25a21122.0e2cfe",
+ "wires": [
+ [
+ "e3270b50.ca16b",
+ "1493e80e.a20608"
+ ]
+ ]
+ },
+ {
+ "id": "e3270b50.ca16b",
+ "type": "outcomeTrue",
+ "name": "true",
+ "xml": "<outcome value='true'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 5634.566665649414,
+ "y": 2822.566665649414,
+ "z": "25a21122.0e2cfe",
+ "wires": [
+ [
+ "8c1f5350.45b238"
+ ]
+ ]
+ },
+ {
+ "id": "8c1f5350.45b238",
+ "type": "set",
+ "name": "set attachment_param domain A",
+ "xml": "<set>\n<parameter name='tmp.domainG-src-access-node-id' value='`$param-prefix-domainA[$param-prefix-domainA_length -3]`' />\n<parameter name='tmp.domainG-dst-access-node-id' value='`$tmp.otninfo[$otnidx].dstPort.dst-access-node-id`' />",
+ "comments": "",
+ "x": 5848.566665649414,
+ "y": 2824.566665649414,
+ "z": "25a21122.0e2cfe",
+ "wires": []
+ },
+ {
+ "id": "efd041d2.1f57c",
+ "type": "switchNode",
+ "name": "switch dmnsidx == last (domainB)",
+ "xml": "<switch test='`$otnidx == $tmp.otninfo_length - 1`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 5851.566665649414,
+ "y": 2873.566665649414,
+ "z": "25a21122.0e2cfe",
+ "wires": [
+ [
+ "18ead70f.a7a7d1",
+ "86ea5500.031798"
+ ]
+ ]
+ },
+ {
+ "id": "18ead70f.a7a7d1",
+ "type": "outcomeTrue",
+ "name": "true",
+ "xml": "<outcome value='true'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 6081.566665649414,
+ "y": 2869.566665649414,
+ "z": "25a21122.0e2cfe",
+ "wires": [
+ [
+ "45ea107a.0ebac8"
+ ]
+ ]
+ },
+ {
+ "id": "45ea107a.0ebac8",
+ "type": "set",
+ "name": "set attachment_param domain B",
+ "xml": "<set>\n<parameter name='tmp.domainG-src-access-node-id' value='`$tmp.otninfo[$otnidx].srcPort.src-access-node-id`' />\n<parameter name='tmp.domainG-dst-access-node-id' value='`$param-prefix-domainB[$param-prefix-domainB_length -3]`' />",
+ "comments": "",
+ "x": 6295.566665649414,
+ "y": 2872.566665649414,
+ "z": "25a21122.0e2cfe",
+ "wires": []
+ },
+ {
+ "id": "1493e80e.a20608",
+ "type": "outcomeFalse",
+ "name": "false",
+ "xml": "<outcome value='false'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 5634.566665649414,
+ "y": 2871.566665649414,
+ "z": "25a21122.0e2cfe",
+ "wires": [
+ [
+ "efd041d2.1f57c"
+ ]
+ ]
+ },
+ {
+ "id": "86ea5500.031798",
+ "type": "outcomeFalse",
+ "name": "false",
+ "xml": "<outcome value='false'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 6082.566665649414,
+ "y": 2915.566665649414,
+ "z": "25a21122.0e2cfe",
+ "wires": [
+ [
+ "7828b5dc.b70c4c"
+ ]
+ ]
+ },
+ {
+ "id": "7828b5dc.b70c4c",
+ "type": "set",
+ "name": "set attachment_param domain G",
+ "xml": "<set>\n<parameter name='tmp.domainG-src-access-node-id' value='`$tmp.otninfo[$otnidx].srcPort.src-access-node-id`' />\n<parameter name='tmp.domainG-dst-access-node-id' value='`$tmp.otninfo[$otnidx].dstPort.dst-access-node-id`' />",
+ "comments": "",
+ "x": 6296.566665649414,
+ "y": 2915.566665649414,
+ "z": "25a21122.0e2cfe",
+ "wires": []
+ },
+ {
+ "id": "72c2b2cc.2ba44c",
+ "type": "set",
+ "name": "set tmp.slicevpns",
+ "xml": "<set>\n<parameter name='`tmp.slicevpns[$tmp.slicevpns_length]`' value=\"`$prop.vpn-binding-otnidx-uuid`\" />\n<parameter name='tmp.slicevpns_length' value=\"`$tmp.slicevpns_length + 1`\" />\n\n<parameter name='`tmp.slicevpnuuids[$prop.vpn-binding-otnidx-uuid]`' value=\"`$prop.vpn-binding-otnidx-uuid`\" />\n\n",
+ "comments": "",
+ "x": 6194.566665649414,
+ "y": 2964.566665649414,
+ "z": "25a21122.0e2cfe",
+ "wires": []
+ },
+ {
+ "id": "25f755d1.b61592",
+ "type": "switchNode",
+ "name": "switch vpnuuid is for this slice",
+ "xml": "<!--<switch test=\"`$tmp.slicevpnuuids[$tmp.aai.all-vpn-bindings.vpn-binding[$vpnbidx].vpn-id] != '' `\">-->\n \n<!-- Replace vpn-type with slice-id (a new attribbute in the latest AAI) -->\n<switch test=\"`$tmp.aai.all-vpn-bindings.vpn-binding[$vpnbidx].ops-note == $tmp.aai.service-instance.service-instance-id `\">\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 4758.566665649414,
+ "y": 4188.566665649414,
+ "z": "25a21122.0e2cfe",
+ "wires": [
+ [
+ "15207d44.a4310b",
+ "179e4c90.1525b3"
+ ]
+ ]
+ },
+ {
+ "id": "15207d44.a4310b",
+ "type": "outcomeTrue",
+ "name": "true",
+ "xml": "<outcome value='true'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 4975.566665649414,
+ "y": 4167.566665649414,
+ "z": "25a21122.0e2cfe",
+ "wires": [
+ [
+ "64fe7f3a.b5df9"
+ ]
+ ]
+ },
+ {
+ "id": "179e4c90.1525b3",
+ "type": "outcomeFalse",
+ "name": "false",
+ "xml": "<outcome value='false'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 4975.566665649414,
+ "y": 4216.566665649414,
+ "z": "25a21122.0e2cfe",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "64fe7f3a.b5df9",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 5143.566665649414,
+ "y": 4167.566665649414,
+ "z": "25a21122.0e2cfe",
+ "wires": [
+ [
+ "35196fa7.3e82b8",
+ "b4d44dab.0baa88"
+ ]
+ ]
+ },
+ {
+ "id": "433e887a.5dd2c",
+ "type": "save",
+ "name": "get logical-link from aai",
+ "xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\tresource=\"logical-link\"\n\tkey='logical-link.link-name = $logical-link-name'\n\tlocal-only=\"false\"\n\tforce=\"true\" pfx=\"tmp.aai.logical-link\">",
+ "comments": "",
+ "outputs": 1,
+ "x": 1483.566665649414,
+ "y": 798.5666656494141,
+ "z": "25a21122.0e2cfe",
+ "wires": [
+ [
+ "4058fc82.6dfacc",
+ "4151c29c.d64b0c",
+ "5541a408.f0ed0c"
+ ]
+ ]
+ },
+ {
+ "id": "4058fc82.6dfacc",
+ "type": "not-found",
+ "name": "not-found",
+ "xml": "<outcome value='not-found'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1696.057632446289,
+ "y": 765.1406402587891,
+ "z": "25a21122.0e2cfe",
+ "wires": [
+ [
+ "417a2c30.fd69ac"
+ ]
+ ]
+ },
+ {
+ "id": "4151c29c.d64b0c",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1684.566665649414,
+ "y": 809.5666656494141,
+ "z": "25a21122.0e2cfe",
+ "wires": [
+ [
+ "2fc8bb7d.787cac"
+ ]
+ ]
+ },
+ {
+ "id": "417a2c30.fd69ac",
+ "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": 1844.629165649414,
+ "y": 765.4264068603516,
+ "z": "25a21122.0e2cfe",
+ "wires": []
+ },
+ {
+ "id": "2fc8bb7d.787cac",
+ "type": "returnFailure",
+ "name": "return failure",
+ "xml": "<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value='' />\n",
+ "comments": "",
+ "x": 1843.566665649414,
+ "y": 809.5666656494141,
+ "z": "25a21122.0e2cfe",
+ "wires": []
+ },
+ {
+ "id": "5541a408.f0ed0c",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1689.566665649414,
+ "y": 852.5666656494141,
+ "z": "25a21122.0e2cfe",
+ "wires": [
+ [
+ "e145a9c3.48d208"
+ ]
+ ]
+ },
+ {
+ "id": "e145a9c3.48d208",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 835.5666656494141,
+ "y": 1191.566665649414,
+ "z": "25a21122.0e2cfe",
+ "wires": [
+ [
+ "88efa0d6.0c1808"
+ ]
+ ]
+ },
+ {
+ "id": "88efa0d6.0c1808",
+ "type": "for",
+ "name": "for each svc-instance relationship",
+ "xml": "<for index='rel-index' start='0' end='`$tmp.aai.service-instance.relationship-list.relationship_length`' >\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1109.566665649414,
+ "y": 1191.566665649414,
+ "z": "25a21122.0e2cfe",
+ "wires": [
+ [
+ "c2dd1c9b.b3dd48"
+ ]
+ ]
+ },
+ {
+ "id": "c2dd1c9b.b3dd48",
+ "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": 1344.900161743164,
+ "y": 1192.566665649414,
+ "z": "25a21122.0e2cfe",
+ "wires": [
+ [
+ "e5b1da68.bc54"
+ ]
+ ]
+ },
+ {
+ "id": "e5b1da68.bc54",
+ "type": "outcome",
+ "name": "connectivity",
+ "xml": "<outcome value='connectivity'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 628.5669097900391,
+ "y": 1345.566665649414,
+ "z": "25a21122.0e2cfe",
+ "wires": [
+ [
+ "fb4c81c8.58ec08"
+ ]
+ ]
+ },
+ {
+ "id": "68774cff.da4f7c",
+ "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": 1017.5666656494141,
+ "y": 1350.566665649414,
+ "z": "25a21122.0e2cfe",
+ "wires": [
+ [
+ "ae979c86.2af0a",
+ "c51e116c.9e96e",
+ "bc29e653.3cf5f8"
+ ]
+ ]
+ },
+ {
+ "id": "ae979c86.2af0a",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1213.566665649414,
+ "y": 1315.566665649414,
+ "z": "25a21122.0e2cfe",
+ "wires": [
+ [
+ "323455e1.4146ea"
+ ]
+ ]
+ },
+ {
+ "id": "c51e116c.9e96e",
+ "type": "not-found",
+ "name": "not-found",
+ "xml": "<outcome value='not-found'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1214.057632446289,
+ "y": 1361.1407012939453,
+ "z": "25a21122.0e2cfe",
+ "wires": [
+ [
+ "bf9be58f.d0c428"
+ ]
+ ]
+ },
+ {
+ "id": "bc29e653.3cf5f8",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1178.566665649414,
+ "y": 1406.566665649414,
+ "z": "25a21122.0e2cfe",
+ "wires": [
+ [
+ "dd499616.1dbe"
+ ]
+ ]
+ },
+ {
+ "id": "bf9be58f.d0c428",
+ "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": 1373.629165649414,
+ "y": 1358.4264068603516,
+ "z": "25a21122.0e2cfe",
+ "wires": []
+ },
+ {
+ "id": "dd499616.1dbe",
+ "type": "returnFailure",
+ "name": "return failure",
+ "xml": "<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value='' />\n",
+ "comments": "",
+ "x": 1331.566665649414,
+ "y": 1408.566665649414,
+ "z": "25a21122.0e2cfe",
+ "wires": []
+ },
+ {
+ "id": "66825a6f.db4e3c",
+ "type": "switchNode",
+ "name": "switch loglink-id exists in conn",
+ "xml": "<switch test='`$tmp.aai.logical-link.link-id == $tmp.aai.connectivity.etht-svc-name`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1606.566665649414,
+ "y": 1298.566665649414,
+ "z": "25a21122.0e2cfe",
+ "wires": [
+ [
+ "85e80e78.a683f",
+ "e9363fe4.4910f8"
+ ]
+ ]
+ },
+ {
+ "id": "85e80e78.a683f",
+ "type": "outcomeTrue",
+ "name": "true",
+ "xml": "<outcome value='true'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1817.566665649414,
+ "y": 1263.566665649414,
+ "z": "25a21122.0e2cfe",
+ "wires": [
+ [
+ "ea49207.e144c6"
+ ]
+ ]
+ },
+ {
+ "id": "e9363fe4.4910f8",
+ "type": "outcomeFalse",
+ "name": "false",
+ "xml": "<outcome value='false'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1814.566665649414,
+ "y": 1324.566665649414,
+ "z": "25a21122.0e2cfe",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "a72bfa1e.2c0188",
+ "type": "set",
+ "name": "set currLinkIsFound",
+ "xml": "<set>\n<parameter name='currLinkIsFound' value=\"true\" />\n\n\n",
+ "comments": "",
+ "x": 2155.566665649414,
+ "y": 1236.566665649414,
+ "z": "25a21122.0e2cfe",
+ "wires": []
+ },
+ {
+ "id": "ea49207.e144c6",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "outputs": 1,
+ "x": 1969.566665649414,
+ "y": 1264.566665649414,
+ "z": "25a21122.0e2cfe",
+ "wires": [
+ [
+ "a72bfa1e.2c0188"
+ ]
+ ]
+ },
+ {
+ "id": "77625e01.45cfa",
+ "type": "break",
+ "name": "break",
+ "xml": "<break>\n",
+ "comments": "",
+ "x": 2122.566665649414,
+ "y": 1292.566665649414,
+ "z": "25a21122.0e2cfe",
+ "wires": []
+ },
+ {
+ "id": "747752c5.edcc6c",
+ "type": "comment",
+ "name": "currLinkIsFound. Go to the next logical-link",
+ "info": "",
+ "comments": "",
+ "x": 2127.566665649414,
+ "y": 1186.566665649414,
+ "z": "25a21122.0e2cfe",
+ "wires": []
+ },
+ {
+ "id": "fc0b0bdf.af57e8",
+ "type": "switchNode",
+ "name": "switch currLinkIsFound",
+ "xml": "<switch test='`$currLinkIsFound`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1409.566665649414,
+ "y": 916.5666656494141,
+ "z": "25a21122.0e2cfe",
+ "wires": [
+ [
+ "ec2c299e.a7094",
+ "12a10d8.78ec073"
+ ]
+ ]
+ },
+ {
+ "id": "ec2c299e.a7094",
+ "type": "outcomeTrue",
+ "name": "true",
+ "xml": "<outcome value='true'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1595.566665649414,
+ "y": 895.5666656494141,
+ "z": "25a21122.0e2cfe",
+ "wires": [
+ [
+ "43c18e2d.dbbe18"
+ ]
+ ]
+ },
+ {
+ "id": "12a10d8.78ec073",
+ "type": "outcomeFalse",
+ "name": "false",
+ "xml": "<outcome value='false'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1592.566665649414,
+ "y": 1031.566665649414,
+ "z": "25a21122.0e2cfe",
+ "wires": [
+ [
+ "4dddc413.6cd63c"
+ ]
+ ]
+ },
+ {
+ "id": "43c18e2d.dbbe18",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "outputs": 1,
+ "x": 1837.566665649414,
+ "y": 890.5666656494141,
+ "z": "25a21122.0e2cfe",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "6e81ab2b.cd2004",
+ "type": "comment",
+ "name": "A new logical-link has been found: modify process should be triggered",
+ "info": "",
+ "comments": "",
+ "x": 1783.566665649414,
+ "y": 994.5666656494141,
+ "z": "25a21122.0e2cfe",
+ "wires": []
+ },
+ {
+ "id": "323455e1.4146ea",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "outputs": 1,
+ "x": 1377.566665649414,
+ "y": 1299.566665649414,
+ "z": "25a21122.0e2cfe",
+ "wires": [
+ [
+ "66825a6f.db4e3c",
+ "4b0ae75c.1aab4"
+ ]
+ ]
+ },
+ {
+ "id": "4b0ae75c.1aab4",
+ "type": "switchNode",
+ "name": "switch connectivityBW == gfp",
+ "xml": "<switch test='`$tmp.aai.connectivity.bandwidth-profile-name == $gfp`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1607.566665649414,
+ "y": 1389.566665649414,
+ "z": "25a21122.0e2cfe",
+ "wires": [
+ [
+ "c8e4becf.570ed8",
+ "efb821b0.8f5c8"
+ ]
+ ]
+ },
+ {
+ "id": "c8e4becf.570ed8",
+ "type": "outcomeTrue",
+ "name": "true",
+ "xml": "<outcome value='true'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1812.566665649414,
+ "y": 1385.566665649414,
+ "z": "25a21122.0e2cfe",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "efb821b0.8f5c8",
+ "type": "outcomeFalse",
+ "name": "false",
+ "xml": "<outcome value='false'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1814.566665649414,
+ "y": 1435.566665649414,
+ "z": "25a21122.0e2cfe",
+ "wires": [
+ [
+ "35c21580.2c9b32"
+ ]
+ ]
+ },
+ {
+ "id": "fd83a72b.0cf5a8",
+ "type": "set",
+ "name": "set bwModified",
+ "xml": "<set>\n<parameter name='bwModified' value=\"true\" />\n\n\n",
+ "comments": "",
+ "x": 2163.566665649414,
+ "y": 1413.566665649414,
+ "z": "25a21122.0e2cfe",
+ "wires": []
+ },
+ {
+ "id": "35c21580.2c9b32",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "outputs": 1,
+ "x": 1968.566665649414,
+ "y": 1434.566665649414,
+ "z": "25a21122.0e2cfe",
+ "wires": [
+ [
+ "fd83a72b.0cf5a8",
+ "b1b00645.427888"
+ ]
+ ]
+ },
+ {
+ "id": "b1b00645.427888",
+ "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": 988.5666656494141,
+ "y": 1639.566665649414,
+ "z": "25a21122.0e2cfe",
+ "wires": [
+ [
+ "3c4549a7.0d1376"
+ ]
+ ]
+ },
+ {
+ "id": "3c4549a7.0d1376",
+ "type": "switchNode",
+ "name": "switch related-to",
+ "xml": "<switch test='`$tmp.aai.connectivity.relationship-list.relationship[$cridx].related-to`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1193.566665649414,
+ "y": 1639.566665649414,
+ "z": "25a21122.0e2cfe",
+ "wires": [
+ [
+ "adf26b65.8f90e"
+ ]
+ ]
+ },
+ {
+ "id": "adf26b65.8f90e",
+ "type": "outcome",
+ "name": "vpn-binding",
+ "xml": "<outcome value='vpn-binding'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1359.566665649414,
+ "y": 1639.566665649414,
+ "z": "25a21122.0e2cfe",
+ "wires": [
+ [
+ "64e47481.3a26d4"
+ ]
+ ]
+ },
+ {
+ "id": "64e47481.3a26d4",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "outputs": 1,
+ "x": 1522.566665649414,
+ "y": 1639.566665649414,
+ "z": "25a21122.0e2cfe",
+ "wires": [
+ [
+ "6e6ea5ef.8c2224",
+ "d5aad2e.d2c753"
+ ]
+ ]
+ },
+ {
+ "id": "d5aad2e.d2c753",
+ "type": "set",
+ "name": "unset tmp.aai.vpn-binding",
+ "xml": "<set>\n<parameter name='tmp.aai.vpn-binding.' value='' />\n",
+ "comments": "",
+ "x": 1751.566665649414,
+ "y": 1579.566665649414,
+ "z": "25a21122.0e2cfe",
+ "wires": []
+ },
+ {
+ "id": "6e6ea5ef.8c2224",
+ "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": 1260.566665649414,
+ "y": 1733.566665649414,
+ "z": "25a21122.0e2cfe",
+ "wires": [
+ [
+ "8146e5c8.89f0a",
+ "7ba4a096.c89f48",
+ "d58f3b9.ef82248"
+ ]
+ ]
+ },
+ {
+ "id": "f88195dd.98254",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "outputs": 1,
+ "x": 1644.566665649414,
+ "y": 1733.566665649414,
+ "z": "25a21122.0e2cfe",
+ "wires": [
+ [
+ "1f6be69e.efcee9",
+ "dca75bc1.9206a8"
+ ]
+ ]
+ },
+ {
+ "id": "8146e5c8.89f0a",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1471.566665649414,
+ "y": 1735.566665649414,
+ "z": "25a21122.0e2cfe",
+ "wires": [
+ [
+ "f88195dd.98254"
+ ]
+ ]
+ },
+ {
+ "id": "7ba4a096.c89f48",
+ "type": "not-found",
+ "name": "not-found",
+ "xml": "<outcome value='not-found'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1472.057632446289,
+ "y": 1781.1407012939453,
+ "z": "25a21122.0e2cfe",
+ "wires": [
+ [
+ "e8dc9623.1376d8"
+ ]
+ ]
+ },
+ {
+ "id": "d58f3b9.ef82248",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1469.566665649414,
+ "y": 1824.566665649414,
+ "z": "25a21122.0e2cfe",
+ "wires": [
+ [
+ "1a1a5ddc.251932"
+ ]
+ ]
+ },
+ {
+ "id": "1a1a5ddc.251932",
+ "type": "returnFailure",
+ "name": "return failure",
+ "xml": "<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value='' />\n",
+ "comments": "",
+ "x": 1636.566665649414,
+ "y": 1841.566665649414,
+ "z": "25a21122.0e2cfe",
+ "wires": []
+ },
+ {
+ "id": "e8dc9623.1376d8",
+ "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": 1634.6290435791016,
+ "y": 1781.4264373779297,
+ "z": "25a21122.0e2cfe",
+ "wires": []
+ },
+ {
+ "id": "fb4c81c8.58ec08",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "outputs": 1,
+ "x": 800.5666656494141,
+ "y": 1345.566665649414,
+ "z": "25a21122.0e2cfe",
+ "wires": [
+ [
+ "68774cff.da4f7c",
+ "458e84.00aae97c"
+ ]
+ ]
+ },
+ {
+ "id": "458e84.00aae97c",
+ "type": "set",
+ "name": "unset tmp.aai.connectivity",
+ "xml": "<set>\n<parameter name='tmp.aai.connectivity.' value='' />\n",
+ "comments": "",
+ "x": 1020.5666656494141,
+ "y": 1293.566665649414,
+ "z": "25a21122.0e2cfe",
+ "wires": []
+ },
+ {
+ "id": "1f6be69e.efcee9",
+ "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-binding.vpn-id' >\n<parameter name='vpn-id' value='`$tmp.aai.vpn-binding.vpn-id`' />\n<parameter name='vpn-name' value='`$tmp.aai.vpn-binding.vpn-name`' />\n<parameter name='route-distinguisher' value='`$gfp`' />\n<parameter name='operational-status' value='Modified' />\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1995.066665649414,
+ "y": 1728.566665649414,
+ "z": "25a21122.0e2cfe",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "dca75bc1.9206a8",
+ "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.connectivity.connectivity-id'>\n<parameter name='connectivity-id' value='`$tmp.aai.connectivity.connectivity-id`' />\n<parameter name='operational-status' value='Modified' />\n<parameter name='bandwidth-profile-name' value='`$gfp`' />\n<parameter name='cir' value='`$gfp *1000000`' />\n<parameter name='eir' value='`$gfp *1000000`' />\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1922.066665649414,
+ "y": 1792.566665649414,
+ "z": "25a21122.0e2cfe",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "ee7fd236.9ed9a8",
+ "type": "comment",
+ "name": "The following two nodes are for PCE",
+ "info": "",
+ "comments": "",
+ "x": 2066.566665649414,
+ "y": 120.56666564941406,
+ "z": "25a21122.0e2cfe",
+ "wires": []
+ },
+ {
+ "id": "323fc4b1.60fe74",
+ "type": "get-resource",
+ "name": "get-resource pnfs-list",
+ "xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\tresource=\"pnfs\"\n\t key=\"selflink = 'https://aai.onap:8443/aai/v25/network/pnfs?depth=0' depth = 0\"\n\t\tlocal-only=\"false\" \n\t\tpfx=\"ccsdkTopopnfs\" >",
+ "comments": "",
+ "outputs": 1,
+ "x": 2026.566665649414,
+ "y": 164.56666564941406,
+ "z": "25a21122.0e2cfe",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "8780743f.a296a",
+ "type": "get-resource",
+ "name": "get-resource logical-links",
+ "xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\tresource=\"logical-links\"\n\t key=\"selflink = 'https://aai.onap:8443/aai/v25/network/logical-links?depth=0'\"\n\t\tlocal-only=\"false\" \n\t\tpfx=\"ccsdkTopologicalLinks\" >",
+ "comments": "",
+ "outputs": 1,
+ "x": 2039.566665649414,
+ "y": 209.56666564941406,
+ "z": "25a21122.0e2cfe",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "afd6fb79.f36b6",
+ "type": "execute",
+ "name": "execute printContext",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='printContext' >\n <parameter name=\"filename\" value=\"`$filenamemm`\" />\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 4346.566665649414,
+ "y": 2326.566665649414,
+ "z": "25a21122.0e2cfe",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "89a7842f.afd83",
+ "type": "save",
+ "name": "save connectivity resource in AAI",
+ "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='connectivity' \n key='connectivity.connectivity-id = $uuid.connectivity-domainA-uuid'>\n<parameter name='connectivity-id' value='`$uuid.connectivity-domainA-uuid`' />\n<parameter name='etht-svc-name' value='`$prop.ethernet-service-name`' />\n<parameter name='operational-status' value='Created' />\n<parameter name='access-provider-id' value='`$param-prefix-domainA[$param-prefix-domainA_length -9]`' />\n<parameter name='access-client-id' value='`$param-prefix-domainA[$param-prefix-domainA_length -7]`' />\n<parameter name='access-topology-id' value='`$param-prefix-domainA[$param-prefix-domainA_length -5]`' />\n<parameter name='access-node-id' value='`$param-prefix-domainA[$param-prefix-domainA_length -3]`' />\n<parameter name='access-ltp-id' value='`$param-prefix-domainA[$param-prefix-domainA_length -1]`' />\n<parameter name='cvlan' value='`$tmp.aai.network-route-A.logical-interface-id`' />\n\n<parameter name='bandwidth-profile-name' value='`$gfp`' />\n<parameter name='vpn-type' value='`$prop.sotn.vpnType`' />\n<parameter name='cir' value='`$gfp *1000000`' />\n<parameter name='eir' value='`$gfp *1000000`' />\n<parameter name='cbs' value='`$prop.sotn.cbs`' />\n<parameter name='ebs' value='`$prop.sotn.ebs`' />\n<!--<parameter name='color-aware' value='`$prop.sotn.colorAware`' />-->\n<!--<parameter name='coupling-flag' value='`$prop.sotn.couplingFlag`' />-->\n<!--<parameter name='etht-svc-name' value='`$prop.sotn.etht-svc-name`' />-->\n<!--<parameter name='model-customization-id' value='`$network-topology-operation-input.network-information.onap-model-information.model-customization-uuid`' />-->\n<!--<parameter name='model-invariant-id' value='`$network-topology-operation-input.network-information.onap-model-information.model-invariant-uuid`' />-->\n<!--<parameter name='model-version-id' value='`$network-topology-operation-input.network-information.onap-model-information.model-uuid`' />-->\n<parameter name='connectivity-selflink' value=\"`'restconf/config/GENERIC-RESOURCE-API:services/service/' + $network-topology-operation-input.service-information.service-instance-id + '/service-data/networks/network/' + $prop.sotn.network-id + '/network-data/'` \" />\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 5637.566665649414,
+ "y": 1163.566665649414,
+ "z": "25a21122.0e2cfe",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "1a397526.128d93",
+ "type": "call",
+ "name": "call GENERIC-RESOURCE-API:tsli-vnf-topology-operation-find-maximum-used-tpn",
+ "xml": "<call module='GENERIC-RESOURCE-API' rpc='tsli-vnf-topology-operation-find-maximum-used-tpn' mode='sync' >\n\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 4535.566665649414,
+ "y": 2398.566665649414,
+ "z": "25a21122.0e2cfe",
+ "wires": [
+ []
+ ]
+ }
+] \ No newline at end of file
diff --git a/platform-logic/generic-resource-api/src/main/resources/graph.versions b/platform-logic/generic-resource-api/src/main/resources/graph.versions
index 20061645..dbf06928 100755
--- a/platform-logic/generic-resource-api/src/main/resources/graph.versions
+++ b/platform-logic/generic-resource-api/src/main/resources/graph.versions
@@ -302,4 +302,9 @@ GENERIC-RESOURCE-API cll-vnf-topology-operation-cll-delete ${project.version} sy
GENERIC-RESOURCE-API cll-vnf-topology-operation-cll-modify ${project.version} sync
GENERIC-RESOURCE-API cll-vnf-topology-operation-cll-delete-VPNBs ${project.version} sync
GENERIC-RESOURCE-API cll-vnf-topology-operation-cll-searchVpnName ${project.version} sync
-GENERIC-RESOURCE-API cll-vnf-topology-operation-cll-callbackdg-notification 777 sync \ No newline at end of file
+GENERIC-RESOURCE-API cll-vnf-topology-operation-cll-callbackdg-notification 777 sync
+GENERIC-RESOURCE-API p2p-vnf-topology-operation-p2p-create ${project.version} sync
+GENERIC-RESOURCE-API p2p-vnf-topology-operation-p2p-activate ${project.version} sync
+GENERIC-RESOURCE-API p2p-vnf-topology-operation-p2p-deactivate ${project.version} sync
+GENERIC-RESOURCE-API p2p-vnf-topology-operation-p2p-delete ${project.version} sync
+GENERIC-RESOURCE-API p2p-vnf-topology-operation-p2p-modify ${project.version} sync \ No newline at end of file
diff --git a/platform-logic/generic-resource-api/src/main/xml/p2p_eline/GENERIC-RESOURCE-API_p2p-vnf-topology-operation-p2p-activate.xml b/platform-logic/generic-resource-api/src/main/xml/p2p_eline/GENERIC-RESOURCE-API_p2p-vnf-topology-operation-p2p-activate.xml
new file mode 100644
index 00000000..7662ce84
--- /dev/null
+++ b/platform-logic/generic-resource-api/src/main/xml/p2p_eline/GENERIC-RESOURCE-API_p2p-vnf-topology-operation-p2p-activate.xml
@@ -0,0 +1,637 @@
+<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}'>
+ <method rpc='p2p-vnf-topology-operation-p2p-activate' mode='sync'>
+ <block atomic="true">
+ <execute plugin='org.onap.ccsdk.sli.plugins.prop.PropertiesNode' method='readProperties' >
+ <parameter name='fileName' value='%SDNC_CONFIG_DIR%/generic-resource-api-dg.properties' />
+ <parameter name='contextPrefix' value='prop' />
+ </execute>
+ <!--<get-resource plugin="org.onap.ccsdk.sli.adaptors.aai.AAIService" -->
+ <!-- resource="service-instance"-->
+ <!-- key='service-instance.service-instance-id = $service-data.vnfs.vnf[$tmp.vidx].vnf-data.service-information.service-instance-id-->
+ <!-- AND customer.global-customer-id = $service-data.vnfs.vnf[$tmp.vidx].vnf-data.service-information.global-customer-id -->
+ <!-- AND service-subscription.service-type = $service-data.vnfs.vnf[$tmp.vidx].vnf-data.service-information.subscription-service-type'-->
+ <!-- local-only="false"-->
+ <!-- force="true" pfx="tmp.aai.service-instance">-->
+ <get-resource plugin="org.onap.ccsdk.sli.adaptors.aai.AAIService"
+ resource="service-instance"
+ key='service-instance.service-instance-id = $vnf-topology-operation-input.service-information.service-instance-id
+ AND customer.global-customer-id = $vnf-topology-operation-input.service-information.global-customer-id
+ AND service-subscription.service-type = $vnf-topology-operation-input.service-information.subscription-service-type'
+ local-only="false"
+ force="true" pfx="tmp.aai.service-instance">
+ <!--$vnf-topology-operation-input.service-information.service-instance-id-->
+ <outcome value='success'>
+ <for index='rel-index' start='0' end='`$tmp.aai.service-instance.relationship-list.relationship_length`' >
+ <switch test='`$tmp.aai.service-instance.relationship-list.relationship[$rel-index].related-to`'>
+ <outcome value='connectivity'>
+ <get-resource plugin="org.onap.ccsdk.sli.adaptors.aai.AAIService"
+ resource="connectivity"
+ key="connectivity.connectivity-id = $tmp.aai.service-instance.relationship-list.relationship[$rel-index].relationship-data[0].relationship-value"
+ local-only="false"
+ pfx="tmp.aai.connectivity" >
+ <outcome value='success'>
+ <for silentFailure='true' index='cridx' start='0' end='`$tmp.aai.connectivity.relationship-list.relationship_length`' >
+ <switch test='`$tmp.aai.connectivity.relationship-list.relationship[$cridx].related-to`'>
+ <outcome value='vpn-binding'>
+ <block atomic="true">
+ <set>
+ <parameter name='tmp.aai.vpn-binding.' value='' />
+ </set>
+ <get-resource plugin="org.onap.ccsdk.sli.adaptors.aai.AAIService"
+ resource="vpn-binding"
+ key="vpn-binding.vpn-id = $tmp.aai.connectivity.relationship-list.relationship[$cridx].relationship-data[0].relationship-value"
+ local-only="false"
+ pfx="tmp.aai.vpn-binding" >
+ <outcome value='not-found'>
+ <return status='failure'>
+ <parameter name='ack-final' value='Y'/>
+ <parameter name="error-code" value="500" />
+ <parameter name="error-message" value="`'An error occurred while querying pnf from AnAI with pnf-name = ' + $prop.l3vpn.pe1_id`" />
+ </return>
+ </outcome>
+ <outcome value='failure'>
+ <return status='failure'>
+ <parameter name='error-code' value='' />
+ <parameter name='error-message' value='' />
+ </return>
+ </outcome>
+ <outcome value='success'>
+ <block atomic="true">
+ <switch test="`$tmp.aai.vpn-binding.operational-status != 'Activated' `">
+ <outcome value='true'>
+ <block atomic="true">
+ <set>
+ <parameter name='gfp-n' value='`$tmp.aai.vpn-binding.route-distinguisher`' />
+ </set>
+ <switch test='`$tmp.aai.vpn-binding.dst-access-ltp-id`'>
+ <outcome value='Other'>
+ <switch test='`$tmp.aai.vpn-binding.src-access-ltp-id`'>
+ <outcome value=''>
+ <block atomic="true">
+ <set>
+ <parameter name='tmp.aai.vpn-bindingA.' value="`$tmp.aai.vpn-binding.`" />
+ <parameter name='tmp.aai.connectivityA.' value="`$tmp.aai.connectivity.`" />
+ </set>
+ <set>
+ <parameter name='src-node-id' value='`$tmp.aai.vpn-bindingA.src-access-node-id`' />
+ <parameter name='dst-node-id' value='`$tmp.aai.vpn-bindingA.dst-access-node-id`' />
+ <!--<parameter name='dst-tpn-id' value='1' />-->
+ <parameter name='dst-tpn-id' value='`$tmp.aai.vpn-bindingA.customer-vpn-id`' />
+ <parameter name='dst-ttp-id' value='`$tmp.aai.vpn-bindingA.dst-access-ltp-id`' />
+ <parameter name='slice-instance-id' value='`$tmp.aai.service-instance.service-instance-id`' />
+ <parameter name='otn-tunnel-name-src-domain' value='`$tmp.aai.vpn-bindingA.vpn-name`' />
+ <parameter name='client-id' value='`$tmp.aai.vpn-bindingA.access-client-id`' />
+ <parameter name='provider-id' value='`$tmp.aai.vpn-bindingA.access-provider-id`' />
+ <parameter name='topology-id' value='`$tmp.aai.vpn-bindingA.access-topology-id`' />
+ </set>
+ <set>
+ <parameter name='tmp.src.domainA.pnf-name' value="`'networkId-providerId-' +
+ $tmp.aai.vpn-bindingA.access-provider-id + '-clientId-' +
+ $tmp.aai.vpn-bindingA.access-client-id + '-topologyId-' +
+ $tmp.aai.vpn-bindingA.access-topology-id + '-nodeId-' +
+ $tmp.aai.vpn-bindingA.src-access-node-id`" />
+ </set>
+ <get-resource plugin="org.onap.ccsdk.sli.adaptors.aai.AAIService"
+ resource="pnf"
+ key="pnf.pnf-name = $tmp.src.domainA.pnf-name"
+ pfx='tmp.aai.source-pnf' local-only='false' >
+ <!--AND depth = '0'"-->
+ <outcome value='success'>
+ <block>
+ <for silentFailure='true' index='spvidx' start='0' end='`$tmp.aai.source-pnf.relationship-list.relationship_length`' >
+ <switch test='`$tmp.aai.source-pnf.relationship-list.relationship[$spvidx].related-to`'>
+ <outcome value='esr-thirdparty-sdnc'>
+ <block atomic="true">
+ <set>
+ <parameter name='tmp.domainA.esr-thirdparty-id' value="`$tmp.aai.source-pnf.relationship-list.relationship[$spvidx].relationship-data[0].relationship-value`" />
+ </set>
+ <get-resource plugin="org.onap.ccsdk.sli.adaptors.aai.AAIService"
+ resource="esr-thirdparty-sdnc"
+ key="esr-thirdparty-sdnc.thirdparty-sdnc-id = $tmp.domainA.esr-thirdparty-id AND
+ depth = '1'"
+ pfx='tmp.aai.domainA.esr-thirdparty-sdnc' local-only='false' >
+ <outcome value='success'>
+ <block>
+ <set>
+ <parameter name='prop.sdncRestApi.thirdpartySdnc.domainA.url' value="`$tmp.aai.domainA.esr-thirdparty-sdnc.esr-system-info-list.esr-system-info[0].service-url`" />
+ <parameter name='prop.sdncRestApi.thirdpartySdnc.domainA.user' value="`$tmp.aai.domainA.esr-thirdparty-sdnc.esr-system-info-list.esr-system-info[0].user-name`" />
+ <parameter name='prop.sdncRestApi.thirdpartySdnc.domainA.password' value="`$tmp.aai.domainA.esr-thirdparty-sdnc.esr-system-info-list.esr-system-info[0].password`" />
+ <!--<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >-->
+ <!--<parameter name="restapiUrl" value="`$prop.sdncRestApi.thirdpartySdnc.url + '/restconf/data/ietf-network:networks'`" />-->
+ <!--<parameter name="restapiUser" value="`$prop.sdncRestApi.thirdpartySdnc.user`" />-->
+ <!--<parameter name="restapiPassword" value="`$prop.sdncRestApi.thirdpartySdnc.password`" />-->
+ <!--<parameter name="format" value="json"/>-->
+ <!--<parameter name="httpMethod" value="get"/>-->
+ <!--<parameter name="responsePrefix" value="topology"/>-->
+ <!--<parameter name="trustStoreFileName" value="/opt/onap/sdnc/data/stores/truststore.onap.client.jks"/>-->
+ <!--<parameter name="trustStorePassword" value="adminadmin"/>-->
+ <!--<parameter name="keyStoreFileName" value="/opt/onap/sdnc/data/stores/sdnc.p12"/>-->
+ <!--<parameter name="keyStorePassword" value="adminadmin"/>-->
+ </set>
+ </block>
+ </outcome>
+ <outcome value='not-found'>
+ <return status='failure'>
+ <parameter name='ack-final' value='Y'/>
+ <parameter name="error-code" value="500" />
+ <parameter name="error-message" value="`'An error occurred while querying pnf from AnAI with pnf-name = ' + $prop.connection-attachement.access-node-id`" />
+ </return>
+ </outcome>
+ <outcome value='Other'>
+ <return status='failure'>
+ <parameter name='ack-final' value='Y'/>
+ <parameter name="error-code" value="500" />
+ <parameter name="error-message" value="`'Unexpected error occurred while querying pnf from AnAI with pnf-name = ' + $prop.connection-attachement.access-node-id`" />
+ </return>
+ </outcome>
+ </get-resource>
+ </block>
+ </outcome>
+ </switch>
+ </for>
+ </block>
+ </outcome>
+ <outcome value='not-found'>
+ <return status='failure'>
+ <parameter name='ack-final' value='Y'/>
+ <parameter name="error-code" value="500" />
+ <parameter name="error-message" value="`'An error occurred while querying pnf from AnAI with pnf-name = ' + $prop.connection-attachement.access-node-id`" />
+ </return>
+ </outcome>
+ <outcome value='Other'>
+ <return status='failure'>
+ <parameter name='ack-final' value='Y'/>
+ <parameter name="error-code" value="500" />
+ <parameter name="error-message" value="`'Unexpected error occurred while querying pnf from AnAI with pnf-name = ' + $prop.connection-attachement.access-node-id`" />
+ </return>
+ </outcome>
+ </get-resource>
+ <execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >
+ <parameter name="templateFileName" value="`$prop.restapi.templateDir + '/' + $prop.restapi.ts-otn-src-domain-creation.templatefile`" />
+ <parameter name="restapiUrl" value="`$prop.sdncRestApi.thirdpartySdnc.domainA.url + '/restconf/data/ietf-te:te'`" />
+ <parameter name="restapiUser" value="`$prop.sdncRestApi.thirdpartySdnc.domainA.user`" />
+ <parameter name="restapiPassword" value="`$prop.sdncRestApi.thirdpartySdnc.domainA.password`" />
+ <parameter name="format" value="json"/>
+ <parameter name="httpMethod" value="patch"/>
+ <parameter name="responsePrefix" value="otn-oof"/>
+ <parameter name="trustStoreFileName" value="/opt/onap/sdnc/data/stores/truststore.onap.client.jks"/>
+ <parameter name="trustStorePassword" value="adminadmin"/>
+ <parameter name="keyStoreFileName" value="/opt/onap/sdnc/data/stores/sdnc.p12"/>
+ <parameter name="keyStorePassword" value="adminadmin"/>
+ <parameter name='customHttpHeaders' value="`'X-ACCESS-TOKEN=' + $prop.sdncRestApi.token_id`" />
+ <outcome value='failure'>
+ <return status='failure'>
+ <parameter name='ack-final' value='Y'/>
+ <parameter name="error-code" value="500" />
+ <parameter name="error-message" value="Error executing Create OTN tunnel rest api" />
+ </return>
+ </outcome>
+ <outcome value='success'>
+ <block atomic="true"></block>
+ </outcome>
+ </execute>
+ <set>
+ <!--<parameter name='eth-service-name' value='`$tmp.aai.connectivityA.connectivity-id`' />-->
+ <parameter name='eth-service-name' value='`$tmp.aai.connectivityA.etht-svc-name`' />
+ <parameter name='slice-id' value='`$vnf-topology-operation-input.service-information.service-instance-id`' />
+ <parameter name='provider-id' value='`$tmp.aai.connectivityA.access-provider-id`' />
+ <parameter name='client-id' value='`$tmp.aai.connectivityA.access-client-id`' />
+ <parameter name='topology-id' value='`$tmp.aai.connectivityA.access-topology-id`' />
+ <parameter name='otn-tunnel-name' value='`$tmp.aai.vpn-bindingA.vpn-name`' />
+ <parameter name='ethernet-end-point-name' value='`$tmp.aai.connectivityA.connectivity-id`' />
+ <parameter name='index-number' value='0' />
+ <parameter name='eth-node-id' value='`$tmp.aai.connectivityA.access-node-id`' />
+ <parameter name='eth-node-tp-id' value='`$tmp.aai.connectivityA.access-ltp-id`' />
+ <parameter name='CIR' value='`$tmp.aai.vpn-bindingA.route-distinguisher *1000000`' />
+ <parameter name='EIR' value='`$tmp.aai.vpn-bindingA.route-distinguisher *1000000`' />
+ <parameter name='cvlan' value='`$tmp.aai.connectivityA.cvlan`' />
+ </set>
+ <execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >
+ <parameter name="templateFileName" value="`$prop.restapi.templateDir + '/' + $prop.restapi.ts-ethernet-service.templatefile`" />
+ <parameter name="restapiUrl" value="`$prop.sdncRestApi.thirdpartySdnc.domainA.url + '/restconf/data/ietf-eth-tran-service:etht-svc'`" />
+ <!--<parameter name="restapiUrl" value="`$prop.restapi.connection-oof-url`" />-->
+ <parameter name="restapiUser" value="`$prop.sdncRestApi.thirdpartySdnc.domainA.user`" />
+ <parameter name="restapiPassword" value="`$prop.sdncRestApi.thirdpartySdnc.domainA.password`" />
+ <parameter name="format" value="json"/>
+ <parameter name="httpMethod" value="patch"/>
+ <parameter name='dirPath' value="/opt/onap/sdnc/restconfapi/yang" />
+ <parameter name="responsePrefix" value="vpn-result"/>
+ <parameter name="trustStoreFileName" value="/opt/onap/sdnc/data/stores/truststore.onap.client.jks"/>
+ <parameter name="trustStorePassword" value="adminadmin"/>
+ <parameter name="keyStoreFileName" value="/opt/onap/sdnc/data/stores/sdnc.p12"/>
+ <parameter name="keyStorePassword" value="adminadmin"/>
+ <outcome value='failure'>
+ <return status='failure'>
+ <parameter name='ack-final' value='Y'/>
+ <parameter name="error-code" value="500" />
+ <parameter name="error-message" value="Error executing Create ethernet service rest api" />
+ </return>
+ </outcome>
+ <outcome value='success'>
+ <block atomic="true">
+ <update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='vpn-binding'
+ key='vpn-binding.vpn-id = $tmp.aai.vpn-bindingA.vpn-id' >
+ <parameter name='vpn-id' value='`$tmp.aai.vpn-bindingA.vpn-id`' />
+ <parameter name='vpn-name' value='`$tmp.aai.vpn-bindingA.vpn-name`' />
+ <parameter name='operational-status' value='Activated' />
+ </update>
+ <update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='connectivity'
+ key='connectivity.connectivity-id = $tmp.aai.connectivityA.connectivity-id'>
+ <parameter name='connectivity-id' value='`$tmp.aai.connectivityA.connectivity-id`' />
+ <parameter name='operational-status' value='Activated' />
+ </update>
+ <update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='service-instance'
+ key='service-instance.service-instance-id = $vnf-topology-operation-input.service-information.service-instance-id
+ AND customer.global-customer-id = $vnf-topology-operation-input.service-information.global-customer-id
+ AND service-subscription.service-type = $vnf-topology-operation-input.service-information.subscription-service-type'>
+ <parameter name='service-instance-id' value='`$tmp.aai.service-instance.service-instance-id`' />
+ <parameter name='orchestration-status' value='Activated' />
+ </update>
+ </block>
+ </outcome>
+ </execute>
+ </block>
+ </outcome>
+ <outcome value='Other'>
+ <block atomic="true">
+ <set>
+ <parameter name='tmp.aai.vpn-bindingG.' value="`$tmp.aai.vpn-binding.`" />
+ <parameter name='tmp.aai.connectivityG.' value="`$tmp.aai.connectivity.`" />
+ </set>
+ <set>
+ <parameter name='src-node-id' value='`$tmp.aai.vpn-bindingG.src-access-node-id`' />
+ <parameter name='dst-node-id' value='`$tmp.aai.vpn-bindingG.dst-access-node-id`' />
+ <!--<parameter name='dst-tpn-id' value='1' />-->
+ <parameter name='src-tpn-id' value='`$tmp.aai.vpn-bindingG.customer-vpn-id`' />
+ <parameter name='dst-tpn-id' value='`$tmp.aai.vpn-bindingG.customer-vpn-id`' />
+ <parameter name='src-ttp-id' value='`$tmp.aai.vpn-bindingG.src-access-ltp-id`' />
+ <parameter name='dst-ttp-id' value='`$tmp.aai.vpn-bindingG.dst-access-ltp-id`' />
+ <parameter name='slice-instance-id' value='`$tmp.aai.service-instance.service-instance-id`' />
+ <parameter name='otn-tunnel-name-domainG' value='`$tmp.aai.vpn-bindingG.vpn-name`' />
+ <parameter name='client-id' value='`$tmp.aai.vpn-bindingG.access-client-id`' />
+ <parameter name='provider-id' value='`$tmp.aai.vpn-bindingG.access-provider-id`' />
+ <parameter name='topology-id' value='`$tmp.aai.vpn-bindingG.access-topology-id`' />
+ </set>
+ <set>
+ <parameter name='tmp.domainG.pnf-name' value="`'networkId-providerId-' +
+ $tmp.aai.vpn-bindingG.access-provider-id + '-clientId-' +
+ $tmp.aai.vpn-bindingG.access-client-id + '-topologyId-' +
+ $tmp.aai.vpn-bindingG.access-topology-id + '-nodeId-' +
+ $tmp.aai.vpn-bindingG.src-access-node-id`" />
+ </set>
+ <get-resource plugin="org.onap.ccsdk.sli.adaptors.aai.AAIService"
+ resource="pnf"
+ key="pnf.pnf-name = $tmp.domainG.pnf-name"
+ pfx='tmp.aai.domainG-pnf' local-only='false' >
+ <!--AND depth = '0'"-->
+ <outcome value='success'>
+ <block>
+ <for silentFailure='true' index='spvidx' start='0' end='`$tmp.aai.domainG-pnf.relationship-list.relationship_length`' >
+ <switch test='`$tmp.aai.domainG-pnf.relationship-list.relationship[$spvidx].related-to`'>
+ <outcome value='esr-thirdparty-sdnc'>
+ <block atomic="true">
+ <set>
+ <parameter name='tmp.domainG.esr-thirdparty-id' value="`$tmp.aai.domainG-pnf.relationship-list.relationship[$spvidx].relationship-data[0].relationship-value`" />
+ </set>
+ <get-resource plugin="org.onap.ccsdk.sli.adaptors.aai.AAIService"
+ resource="esr-thirdparty-sdnc"
+ key="esr-thirdparty-sdnc.thirdparty-sdnc-id = $tmp.domainG.esr-thirdparty-id AND
+ depth = '1'"
+ pfx='tmp.aai.domainG.esr-thirdparty-sdnc' local-only='false' >
+ <outcome value='success'>
+ <block>
+ <set>
+ <parameter name='prop.sdncRestApi.thirdpartySdnc.domainG.url' value="`$tmp.aai.domainG.esr-thirdparty-sdnc.esr-system-info-list.esr-system-info[0].service-url`" />
+ <parameter name='prop.sdncRestApi.thirdpartySdnc.domainG.user' value="`$tmp.aai.domainG.esr-thirdparty-sdnc.esr-system-info-list.esr-system-info[0].user-name`" />
+ <parameter name='prop.sdncRestApi.thirdpartySdnc.domainG.password' value="`$tmp.aai.domainG.esr-thirdparty-sdnc.esr-system-info-list.esr-system-info[0].password`" />
+ <!--<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >-->
+ <!--<parameter name="restapiUrl" value="`$prop.sdncRestApi.thirdpartySdnc.url + '/restconf/data/ietf-network:networks'`" />-->
+ <!--<parameter name="restapiUser" value="`$prop.sdncRestApi.thirdpartySdnc.user`" />-->
+ <!--<parameter name="restapiPassword" value="`$prop.sdncRestApi.thirdpartySdnc.password`" />-->
+ <!--<parameter name="format" value="json"/>-->
+ <!--<parameter name="httpMethod" value="get"/>-->
+ <!--<parameter name="responsePrefix" value="topology"/>-->
+ <!--<parameter name="trustStoreFileName" value="/opt/onap/sdnc/data/stores/truststore.onap.client.jks"/>-->
+ <!--<parameter name="trustStorePassword" value="adminadmin"/>-->
+ <!--<parameter name="keyStoreFileName" value="/opt/onap/sdnc/data/stores/sdnc.p12"/>-->
+ <!--<parameter name="keyStorePassword" value="adminadmin"/>-->
+ </set>
+ </block>
+ </outcome>
+ <outcome value='not-found'>
+ <return status='failure'>
+ <parameter name='ack-final' value='Y'/>
+ <parameter name="error-code" value="500" />
+ <parameter name="error-message" value="`'An error occurred while querying pnf from AnAI with pnf-name = ' + $prop.connection-attachement.access-node-id`" />
+ </return>
+ </outcome>
+ <outcome value='Other'>
+ <return status='failure'>
+ <parameter name='ack-final' value='Y'/>
+ <parameter name="error-code" value="500" />
+ <parameter name="error-message" value="`'Unexpected error occurred while querying pnf from AnAI with pnf-name = ' + $prop.connection-attachement.access-node-id`" />
+ </return>
+ </outcome>
+ </get-resource>
+ </block>
+ </outcome>
+ </switch>
+ </for>
+ </block>
+ </outcome>
+ <outcome value='not-found'>
+ <return status='failure'>
+ <parameter name='ack-final' value='Y'/>
+ <parameter name="error-code" value="500" />
+ <parameter name="error-message" value="`'An error occurred while querying pnf from AnAI with pnf-name = ' + $prop.connection-attachement.access-node-id`" />
+ </return>
+ </outcome>
+ <outcome value='Other'>
+ <return status='failure'>
+ <parameter name='ack-final' value='Y'/>
+ <parameter name="error-code" value="500" />
+ <parameter name="error-message" value="`'Unexpected error occurred while querying pnf from AnAI with pnf-name = ' + $prop.connection-attachement.access-node-id`" />
+ </return>
+ </outcome>
+ </get-resource>
+ <execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >
+ <parameter name="templateFileName" value="`$prop.restapi.templateDir + '/' + $prop.restapi.ts-otn-domainG-creation.templatefile`" />
+ <parameter name="restapiUrl" value="`$prop.sdncRestApi.thirdpartySdnc.domainG.url + '/restconf/data/ietf-te:te'`" />
+ <parameter name="restapiUser" value="`$prop.sdncRestApi.thirdpartySdnc.domainG.user`" />
+ <parameter name="restapiPassword" value="`$prop.sdncRestApi.thirdpartySdnc.domainG.password`" />
+ <parameter name="format" value="json"/>
+ <parameter name="httpMethod" value="patch"/>
+ <parameter name="responsePrefix" value="otn-oof"/>
+ <parameter name="trustStoreFileName" value="/opt/onap/sdnc/data/stores/truststore.onap.client.jks"/>
+ <parameter name="trustStorePassword" value="adminadmin"/>
+ <parameter name="keyStoreFileName" value="/opt/onap/sdnc/data/stores/sdnc.p12"/>
+ <parameter name="keyStorePassword" value="adminadmin"/>
+ <parameter name='customHttpHeaders' value="`'X-ACCESS-TOKEN=' + $prop.sdncRestApi.token_id`" />
+ <outcome value='failure'>
+ <return status='failure'>
+ <parameter name='ack-final' value='Y'/>
+ <parameter name="error-code" value="500" />
+ <parameter name="error-message" value="Error executing Create OTN tunnel rest api" />
+ </return>
+ </outcome>
+ <outcome value='success'>
+ <block atomic="true"></block>
+ </outcome>
+ </execute>
+ </block>
+ </outcome>
+ </switch>
+ </outcome>
+ <outcome value=''>
+ <switch test='`$tmp.aai.vpn-binding.src-access-ltp-id`'>
+ <outcome value='Other'>
+ <block atomic="true">
+ <set>
+ <parameter name='tmp.aai.vpn-bindingB.' value="`$tmp.aai.vpn-binding.`" />
+ <parameter name='tmp.aai.connectivityB.' value="`$tmp.aai.connectivity.`" />
+ </set>
+ <set>
+ <parameter name='src-node-id' value='`$tmp.aai.vpn-bindingB.src-access-node-id`' />
+ <parameter name='dst-node-id' value='`$tmp.aai.vpn-bindingB.dst-access-node-id`' />
+ <!--<parameter name='src-tpn-id' value='1' />-->
+ <parameter name='src-tpn-id' value='`$tmp.aai.vpn-bindingB.customer-vpn-id`' />
+ <parameter name='src-ttp-id' value='`$tmp.aai.vpn-bindingB.src-access-ltp-id`' />
+ <parameter name='slice-instance-id' value='`$tmp.aai.service-instance.service-instance-id`' />
+ <parameter name='otn-tunnel-name-dst-domain' value='`$tmp.aai.vpn-bindingB.vpn-name`' />
+ <parameter name='client-id' value='`$tmp.aai.vpn-bindingB.access-client-id`' />
+ <parameter name='provider-id' value='`$tmp.aai.vpn-bindingB.access-provider-id`' />
+ <parameter name='topology-id' value='`$tmp.aai.vpn-bindingB.access-topology-id`' />
+ </set>
+ <set>
+ <parameter name='tmp.dst.domainB.pnf-name' value="`'networkId-providerId-' +
+ $tmp.aai.vpn-bindingB.access-provider-id + '-clientId-' +
+ $tmp.aai.vpn-bindingB.access-client-id + '-topologyId-' +
+ $tmp.aai.vpn-bindingB.access-topology-id + '-nodeId-' +
+ $tmp.aai.vpn-bindingB.dst-access-node-id`" />
+ </set>
+ <get-resource plugin="org.onap.ccsdk.sli.adaptors.aai.AAIService"
+ resource="pnf"
+ key="pnf.pnf-name = $tmp.dst.domainB.pnf-name"
+ pfx='tmp.aai.destination-pnf' local-only='false' >
+ <!--AND depth = '0'"-->
+ <outcome value='success'>
+ <block>
+ <for silentFailure='true' index='dpvidx' start='0' end='`$tmp.aai.destination-pnf.relationship-list.relationship_length`' >
+ <switch test='`$tmp.aai.destination-pnf.relationship-list.relationship[$dpvidx].related-to`'>
+ <outcome value='esr-thirdparty-sdnc'>
+ <block atomic="true">
+ <set>
+ <parameter name='tmp.domainB.esr-thirdparty-id' value="`$tmp.aai.destination-pnf.relationship-list.relationship[$dpvidx].relationship-data[0].relationship-value`" />
+ </set>
+ <get-resource plugin="org.onap.ccsdk.sli.adaptors.aai.AAIService"
+ resource="esr-thirdparty-sdnc"
+ key="esr-thirdparty-sdnc.thirdparty-sdnc-id = $tmp.domainB.esr-thirdparty-id AND
+ depth = '1'"
+ pfx='tmp.aai.domainB.esr-thirdparty-sdnc' local-only='false' >
+ <outcome value='success'>
+ <block>
+ <set>
+ <parameter name='prop.sdncRestApi.thirdpartySdnc.domainB.url' value="`$tmp.aai.domainB.esr-thirdparty-sdnc.esr-system-info-list.esr-system-info[0].service-url`" />
+ <parameter name='prop.sdncRestApi.thirdpartySdnc.domainB.user' value="`$tmp.aai.domainB.esr-thirdparty-sdnc.esr-system-info-list.esr-system-info[0].user-name`" />
+ <parameter name='prop.sdncRestApi.thirdpartySdnc.domainB.password' value="`$tmp.aai.domainB.esr-thirdparty-sdnc.esr-system-info-list.esr-system-info[0].password`" />
+ <!--<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >-->
+ <!--<parameter name="restapiUrl" value="`$prop.sdncRestApi.thirdpartySdnc.url + '/restconf/data/ietf-network:networks'`" />-->
+ <!--<parameter name="restapiUser" value="`$prop.sdncRestApi.thirdpartySdnc.user`" />-->
+ <!--<parameter name="restapiPassword" value="`$prop.sdncRestApi.thirdpartySdnc.password`" />-->
+ <!--<parameter name="format" value="json"/>-->
+ <!--<parameter name="httpMethod" value="get"/>-->
+ <!--<parameter name="responsePrefix" value="topology"/>-->
+ <!--<parameter name="trustStoreFileName" value="/opt/onap/sdnc/data/stores/truststore.onap.client.jks"/>-->
+ <!--<parameter name="trustStorePassword" value="adminadmin"/>-->
+ <!--<parameter name="keyStoreFileName" value="/opt/onap/sdnc/data/stores/sdnc.p12"/>-->
+ <!--<parameter name="keyStorePassword" value="adminadmin"/>-->
+ </set>
+ </block>
+ </outcome>
+ <outcome value='not-found'>
+ <return status='failure'>
+ <parameter name='ack-final' value='Y'/>
+ <parameter name="error-code" value="500" />
+ <parameter name="error-message" value="`'An error occurred while querying pnf from AnAI with pnf-name = ' + $prop.connection-attachement.access-node-id`" />
+ </return>
+ </outcome>
+ <outcome value='Other'>
+ <return status='failure'>
+ <parameter name='ack-final' value='Y'/>
+ <parameter name="error-code" value="500" />
+ <parameter name="error-message" value="`'Unexpected error occurred while querying pnf from AnAI with pnf-name = ' + $prop.connection-attachement.access-node-id`" />
+ </return>
+ </outcome>
+ </get-resource>
+ </block>
+ </outcome>
+ </switch>
+ </for>
+ </block>
+ </outcome>
+ <outcome value='not-found'>
+ <return status='failure'>
+ <parameter name='ack-final' value='Y'/>
+ <parameter name="error-code" value="500" />
+ <parameter name="error-message" value="`'An error occurred while querying pnf from AnAI with pnf-name = ' + $prop.connection-attachement.access-node-id`" />
+ </return>
+ </outcome>
+ <outcome value='Other'>
+ <return status='failure'>
+ <parameter name='ack-final' value='Y'/>
+ <parameter name="error-code" value="500" />
+ <parameter name="error-message" value="`'Unexpected error occurred while querying pnf from AnAI with pnf-name = ' + $prop.connection-attachement.access-node-id`" />
+ </return>
+ </outcome>
+ </get-resource>
+ <execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >
+ <parameter name="templateFileName" value="`$prop.restapi.templateDir + '/' + $prop.restapi.ts-otn-dst-domain-creation.templatefile`" />
+ <parameter name="restapiUrl" value="`$prop.sdncRestApi.thirdpartySdnc.domainB.url + '/restconf/data/ietf-te:te'`" />
+ <parameter name="restapiUser" value="`$prop.sdncRestApi.thirdpartySdnc.domainB.user`" />
+ <parameter name="restapiPassword" value="`$prop.sdncRestApi.thirdpartySdnc.domainB.password`" />
+ <parameter name="format" value="json"/>
+ <parameter name="httpMethod" value="patch"/>
+ <parameter name="responsePrefix" value="otn-oof"/>
+ <parameter name="trustStoreFileName" value="/opt/onap/sdnc/data/stores/truststore.onap.client.jks"/>
+ <parameter name="trustStorePassword" value="adminadmin"/>
+ <parameter name="keyStoreFileName" value="/opt/onap/sdnc/data/stores/sdnc.p12"/>
+ <parameter name="keyStorePassword" value="adminadmin"/>
+ <parameter name='customHttpHeaders' value="`'X-ACCESS-TOKEN=' + $prop.sdncRestApi.token_id`" />
+ <outcome value='failure'>
+ <return status='failure'>
+ <parameter name='ack-final' value='Y'/>
+ <parameter name="error-code" value="500" />
+ <parameter name="error-message" value="Error executing Create OTN tunnel rest api" />
+ </return>
+ </outcome>
+ <outcome value='success'>
+ <block atomic="true"></block>
+ </outcome>
+ </execute>
+ <set>
+ <!--<parameter name='eth-service-name' value='`$tmp.aai.connectivityB.connectivity-id`' />-->
+ <parameter name='eth-service-name' value='`$tmp.aai.connectivityB.etht-svc-name`' />
+ <parameter name='slice-id' value='`$vnf-topology-operation-input.service-information.service-instance-id`' />
+ <parameter name='provider-id' value='`$tmp.aai.connectivityB.access-provider-id`' />
+ <parameter name='client-id' value='`$tmp.aai.connectivityB.access-client-id`' />
+ <parameter name='topology-id' value='`$tmp.aai.connectivityB.access-topology-id`' />
+ <parameter name='otn-tunnel-name' value='`$tmp.aai.vpn-bindingB.vpn-name`' />
+ <parameter name='ethernet-end-point-name' value='`$tmp.aai.connectivityB.connectivity-id`' />
+ <parameter name='index-number' value='0' />
+ <parameter name='eth-node-id' value='`$tmp.aai.connectivityB.access-node-id`' />
+ <parameter name='eth-node-tp-id' value='`$tmp.aai.connectivityB.access-ltp-id`' />
+ <parameter name='CIR' value='`$tmp.aai.vpn-bindingB.route-distinguisher *1000000`' />
+ <parameter name='EIR' value='`$tmp.aai.vpn-bindingB.route-distinguisher *1000000`' />
+ <parameter name='cvlan' value='`$tmp.aai.connectivityB.cvlan`' />
+ </set>
+ <execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >
+ <parameter name="templateFileName" value="`$prop.restapi.templateDir + '/' + $prop.restapi.ts-ethernet-service.templatefile`" />
+ <parameter name="restapiUrl" value="`$prop.sdncRestApi.thirdpartySdnc.domainB.url + '/restconf/data/ietf-eth-tran-service:etht-svc'`" />
+ <!--<parameter name="restapiUrl" value="`$prop.restapi.connection-oof-url`" />-->
+ <parameter name="restapiUser" value="`$prop.sdncRestApi.thirdpartySdnc.domainB.user`" />
+ <parameter name="restapiPassword" value="`$prop.sdncRestApi.thirdpartySdnc.domainB.password`" />
+ <parameter name="format" value="json"/>
+ <parameter name="httpMethod" value="patch"/>
+ <parameter name='dirPath' value="/opt/onap/sdnc/restconfapi/yang" />
+ <parameter name="responsePrefix" value="vpn-result"/>
+ <parameter name="trustStoreFileName" value="/opt/onap/sdnc/data/stores/truststore.onap.client.jks"/>
+ <parameter name="trustStorePassword" value="adminadmin"/>
+ <parameter name="keyStoreFileName" value="/opt/onap/sdnc/data/stores/sdnc.p12"/>
+ <parameter name="keyStorePassword" value="adminadmin"/>
+ <outcome value='failure'>
+ <return status='failure'>
+ <parameter name='ack-final' value='Y'/>
+ <parameter name="error-code" value="500" />
+ <parameter name="error-message" value="Error executing Create ethernet service rest api" />
+ </return>
+ </outcome>
+ <outcome value='success'>
+ <block atomic="true">
+ <update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='vpn-binding'
+ key='vpn-binding.vpn-id = $tmp.aai.vpn-bindingB.vpn-id' >
+ <parameter name='vpn-id' value='`$tmp.aai.vpn-bindingB.vpn-id`' />
+ <parameter name='vpn-name' value='`$tmp.aai.vpn-bindingB.vpn-name`' />
+ <parameter name='operational-status' value='Activated' />
+ </update>
+ <update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='connectivity'
+ key='connectivity.connectivity-id = $tmp.aai.connectivityB.connectivity-id'>
+ <parameter name='connectivity-id' value='`$tmp.aai.connectivityB.connectivity-id`' />
+ <parameter name='operational-status' value='Activated' />
+ </update>
+ <update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='service-instance'
+ key='service-instance.service-instance-id = $vnf-topology-operation-input.service-information.service-instance-id
+ AND customer.global-customer-id = $vnf-topology-operation-input.service-information.global-customer-id
+ AND service-subscription.service-type = $vnf-topology-operation-input.service-information.subscription-service-type'>
+ <parameter name='service-instance-id' value='`$tmp.aai.service-instance.service-instance-id`' />
+ <parameter name='orchestration-status' value='Activated' />
+ </update>
+ </block>
+ </outcome>
+ </execute>
+ </block>
+ </outcome>
+ <outcome value=''>
+ <return status='failure'>
+ <parameter name='error-code' value='' />
+ <parameter name='error-message' value='' />
+ </return>
+ </outcome>
+ </switch>
+ </outcome>
+ </switch>
+ </block>
+ </outcome>
+ <outcome value='false'>
+ <block></block>
+ </outcome>
+ </switch>
+ </block>
+ </outcome>
+ </get-resource>
+ </block>
+ </outcome>
+ </switch>
+ </for>
+ </outcome>
+ <outcome value='not-found'>
+ <return status='failure'>
+ <parameter name='ack-final' value='Y'/>
+ <parameter name="error-code" value="500" />
+ <parameter name="error-message" value="`'An error occurred while querying pnf from AnAI with pnf-name = ' + $prop.l3vpn.pe1_id`" />
+ </return>
+ </outcome>
+ <outcome value='failure'>
+ <return status='failure'>
+ <parameter name='error-code' value='' />
+ <parameter name='error-message' value='' />
+ </return>
+ </outcome>
+ </get-resource>
+ </outcome>
+ </switch>
+ </for>
+ </outcome>
+ <outcome value='not-found'>
+ <return status='failure'>
+ <parameter name='ack-final' value='Y'/>
+ <parameter name="error-code" value="500" />
+ <parameter name="error-message" value="`'An error occurred while querying pnf from AnAI with pnf-name = ' + $prop.l3vpn.pe1_id`" />
+ </return>
+ </outcome>
+ <outcome value='failure'>
+ <return status='failure'>
+ <parameter name='error-code' value='' />
+ <parameter name='error-message' value='' />
+ </return>
+ </outcome>
+ </get-resource>
+ <return status='success'>
+ <parameter name="ack-final-indicator" value="Y" />
+ <parameter name="error-code" value="200" />
+ <parameter name="error-message" value="`$error-message`" />
+ </return>
+ </block>
+ </method>
+</service-logic> \ No newline at end of file
diff --git a/platform-logic/generic-resource-api/src/main/xml/p2p_eline/GENERIC-RESOURCE-API_p2p-vnf-topology-operation-p2p-create.xml b/platform-logic/generic-resource-api/src/main/xml/p2p_eline/GENERIC-RESOURCE-API_p2p-vnf-topology-operation-p2p-create.xml
new file mode 100644
index 00000000..82c22637
--- /dev/null
+++ b/platform-logic/generic-resource-api/src/main/xml/p2p_eline/GENERIC-RESOURCE-API_p2p-vnf-topology-operation-p2p-create.xml
@@ -0,0 +1,1146 @@
+<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}'>
+ <method rpc='p2p-vnf-topology-operation-p2p-create' mode='sync'>
+ <block atomic="true">
+ <execute plugin='org.onap.ccsdk.sli.plugins.prop.PropertiesNode' method='readProperties' >
+ <parameter name='fileName' value='%SDNC_CONFIG_DIR%/generic-resource-api-dg.properties' />
+ <parameter name='contextPrefix' value='prop' />
+ </execute>
+ <!--<get-resource plugin="org.onap.ccsdk.sli.adaptors.aai.AAIService" -->
+ <!-- resource="service-instance"-->
+ <!-- key='service-instance.service-instance-id = $service-data.vnfs.vnf[$vnf-index].vnf-data.service-information.service-instance-id-->
+ <!-- AND customer.global-customer-id = $service-data.vnfs.vnf[$vnf-index].vnf-data.service-information.global-customer-id -->
+ <!-- AND service-subscription.service-type = $service-data.vnfs.vnf[$vnf-index].vnf-data.service-information.subscription-service-type'-->
+ <!-- local-only="false"-->
+ <!-- force="true" pfx="tmp.aai.service-instance">-->
+ <get-resource plugin="org.onap.ccsdk.sli.adaptors.aai.AAIService"
+ resource="service-instance"
+ key='service-instance.service-instance-id = $vnf-topology-operation-input.service-information.service-instance-id
+ AND customer.global-customer-id = $vnf-topology-operation-input.service-information.global-customer-id
+ AND service-subscription.service-type = $vnf-topology-operation-input.service-information.subscription-service-type'
+ local-only="false"
+ force="true" pfx="tmp.aai.service-instance">
+ <!--<get-resource plugin="org.onap.ccsdk.sli.adaptors.aai.AAIService" -->
+ <!-- resource="service-instance"-->
+ <!-- key='service-instance.service-instance-id = $service-data.service-information.service-instance-id-->
+ <!-- AND customer.global-customer-id = $service-data.vnfs.vnf[$vnf-index].vnf-data.service-information.global-customer-id -->
+ <!-- AND service-subscription.service-type = $service-data.vnfs.vnf[$vnf-index].vnf-data.service-information.subscription-service-type'-->
+ <!-- local-only="false"-->
+ <!-- force="true" pfx="tmp.aai.service-instance">-->
+ <outcome value='success'>
+ <switch test='`$tmp.aai.service-instance.allotted-resources.allotted-resource_length != 0`'>
+ <outcome value='false'></outcome>
+ <outcome value='true'>
+ <block>
+ <get-resource plugin="org.onap.ccsdk.sli.adaptors.aai.AAIService"
+ resource="pnfs"
+ key="selflink = 'https://aai.onap:8443/aai/v25/network/pnfs?depth=0' depth = 0"
+ local-only="false"
+ pfx="ccsdkTopopnfs" ></get-resource>
+ <get-resource plugin="org.onap.ccsdk.sli.adaptors.aai.AAIService"
+ resource="logical-links"
+ key="selflink = 'https://aai.onap:8443/aai/v25/network/logical-links?depth=0'"
+ local-only="false"
+ pfx="ccsdkTopologicalLinks" ></get-resource>
+ <set>
+ <parameter name='tmp.arr' value='' />
+ <parameter name='tmp.arridx' value='0' />
+ <parameter name='tmp.arr_length' value='0' />
+ <parameter name='otn-tunnel-slice' value='' />
+ <parameter name='otn-tunnel-slice_length' value='0' />
+ <!--<parameter name='tmp.slicevpns' value='' />-->
+ <!--<parameter name='tmp.slicevpns_length' value='0' />-->
+ <!--<parameter name='tmp.slicevpnuuids' value='' />-->
+ <!--<parameter name='tmp.slicevpnuuids.' value='' />-->
+ </set>
+ <for index='aridx' start='0' end='`$tmp.aai.service-instance.allotted-resources.allotted-resource_length`' >
+ <set>
+ <parameter name='allotted-resource-id' value="`$tmp.aai.service-instance.allotted-resources.allotted-resource[$aridx].id`" />
+ </set>
+ <!--<get-resource plugin="org.onap.ccsdk.sli.adaptors.aai.AAIService" -->
+ <!-- resource="allotted-resource"-->
+ <!-- key='service-instance.service-instance-id = $service-data.vnfs.vnf[$vnf-index].vnf-data.service-information.service-instance-id-->
+ <!-- AND customer.global-customer-id = $service-data.vnfs.vnf[$vnf-index].vnf-data.service-information.global-customer-id -->
+ <!-- AND service-subscription.service-type = $service-data.vnfs.vnf[$vnf-index].vnf-data.service-information.subscription-service-type-->
+ <!-- AND allotted-resource.id = $allotted-resource-id'-->
+ <!-- local-only="false"-->
+ <!-- force="true" pfx="tmp.aai.allotted-resource">-->
+ <get-resource plugin="org.onap.ccsdk.sli.adaptors.aai.AAIService"
+ resource="allotted-resource"
+ key='service-instance.service-instance-id = $vnf-topology-operation-input.service-information.service-instance-id
+ AND customer.global-customer-id = $vnf-topology-operation-input.service-information.global-customer-id
+ AND service-subscription.service-type = $vnf-topology-operation-input.service-information.subscription-service-type
+ AND allotted-resource.id = $allotted-resource-id'
+ local-only="false"
+ force="true" pfx="tmp.aai.allotted-resource">
+ <outcome value='not-found'>
+ <return status='failure'>
+ <parameter name='ack-final' value='Y'/>
+ <parameter name="error-code" value="500" />
+ <parameter name="error-message" value="`'An error occurred while querying pnf from AnAI with pnf-name = ' + $prop.l3vpn.pe1_id`" />
+ </return>
+ </outcome>
+ <outcome value='failure'>
+ <return status='failure'>
+ <parameter name='error-code' value='' />
+ <parameter name='error-message' value='' />
+ </return>
+ </outcome>
+ <outcome value='success'>
+ <block atomic="true">
+ <get-resource plugin="org.onap.ccsdk.sli.adaptors.aai.AAIService"
+ resource="allotted-resource:relationship-list"
+ key='service-instance.service-instance-id = $vnf-topology-operation-input.service-information.service-instance-id
+ AND customer.global-customer-id = $vnf-topology-operation-input.service-information.global-customer-id
+ AND service-subscription.service-type = $vnf-topology-operation-input.service-information.subscription-service-type
+ AND allotted-resource.id = $allotted-resource-id'
+ local-only="false"
+ force="true" pfx="tmp.aai.allotted-resource.relationship-list">
+ <outcome value='not-found'>
+ <return status='failure'>
+ <parameter name='ack-final' value='Y'/>
+ <parameter name="error-code" value="500" />
+ <parameter name="error-message" value="`'An error occurred while querying pnf from AnAI with pnf-name = ' + $prop.l3vpn.pe1_id`" />
+ </return>
+ </outcome>
+ <outcome value='failure'>
+ <return status='failure'>
+ <parameter name='error-code' value='' />
+ <parameter name='error-message' value='' />
+ </return>
+ </outcome>
+ <outcome value='success'>
+ <block atomic="true">
+ <switch test='`$tmp.aai.allotted-resource.relationship-list.relationship_length != 0`'>
+ <outcome value='false'></outcome>
+ <outcome value='true'>
+ <block atomic="true">
+ <for index='idx' start='0' end='`$tmp.aai.allotted-resource.relationship-list.relationship_length`' >
+ <switch test='`$tmp.aai.allotted-resource.relationship-list.relationship[$idx].related-to`'>
+ <outcome value='network-policy'>
+ <block atomic="true">
+ <set>
+ <parameter name='network-policy-id' value="`$tmp.aai.allotted-resource.relationship-list.relationship[$idx].relationship-data[0].relationship-value`" />
+ </set>
+ <get-resource plugin="org.onap.ccsdk.sli.adaptors.aai.AAIService"
+ resource="network-policy"
+ key='network-policy.network-policy-id = $network-policy-id'
+ local-only="false"
+ force="true" pfx="tmp.aai.network-policy">
+ <outcome value='not-found'>
+ <return status='failure'>
+ <parameter name='ack-final' value='Y'/>
+ <parameter name="error-code" value="500" />
+ <parameter name="error-message" value="`'An error occurred while querying pnf from AnAI with pnf-name = ' + $prop.l3vpn.pe1_id`" />
+ </return>
+ </outcome>
+ <outcome value='failure'>
+ <return status='failure'>
+ <parameter name='error-code' value='' />
+ <parameter name='error-message' value='' />
+ </return>
+ </outcome>
+ <outcome value='success'>
+ <block>
+ <set>
+ <parameter name='maximum-bandwidth' value="`$tmp.aai.network-policy.max-bandwidth`" />
+ <parameter name='route-distinguisher' value='`$maximum-bandwidth /1000 *4 /5 +1`' />
+ </set>
+ <set>
+ <parameter name='gfp' value='`$maximum-bandwidth /1000 *4 /5 +1`' />
+ </set>
+ </block>
+ </outcome>
+ </get-resource>
+ </block>
+ </outcome>
+ </switch>
+ </for>
+ <for index='idx' start='0' end='`$tmp.aai.allotted-resource.relationship-list.relationship_length`' >
+ <switch test='`$tmp.aai.allotted-resource.relationship-list.relationship[$idx].related-to`'>
+ <outcome value='logical-link'>
+ <block atomic="true">
+ <set>
+ <parameter name='logical-link-name' value="`$tmp.aai.allotted-resource.relationship-list.relationship[$idx].relationship-data[0].relationship-value`" />
+ </set>
+ <get-resource plugin="org.onap.ccsdk.sli.adaptors.aai.AAIService"
+ resource="logical-link"
+ key='logical-link.link-name = $logical-link-name'
+ local-only="false"
+ force="true" pfx="tmp.aai.logical-link">
+ <outcome value='not-found'>
+ <return status='failure'>
+ <parameter name='ack-final' value='Y'/>
+ <parameter name="error-code" value="500" />
+ <parameter name="error-message" value="`'An error occurred while querying pnf from AnAI with pnf-name = ' + $prop.l3vpn.pe1_id`" />
+ </return>
+ </outcome>
+ <outcome value='failure'>
+ <return status='failure'>
+ <parameter name='error-code' value='' />
+ <parameter name='error-message' value='' />
+ </return>
+ </outcome>
+ <outcome value='success'>
+ <block>
+ <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='generateUUID' >
+ <parameter name="ctx-destination" value="prop.otn-tunnel-name"/>
+ </execute>
+ <set>
+ <!--<parameter name='prop.ethernet-service-name' value="`$tmp.aai.logical-link.link-name`" />-->
+ <parameter name='prop.ethernet-service-name' value="`$tmp.aai.logical-link.link-id`" />
+ </set>
+ <set>
+ <parameter name='network-route-A' value="`$tmp.aai.logical-link.link-name`" />
+ <!--<parameter name='network-route-A' value="`$tmp.aai.logical-link.link-id`" />-->
+ </set>
+ <set>
+ <parameter name='network-route-B' value="`$tmp.aai.logical-link.link-name2`" />
+ </set>
+ <get-resource plugin="org.onap.ccsdk.sli.adaptors.aai.AAIService"
+ resource="network-route"
+ key='network-route.route-id = $network-route-A'
+ local-only="false"
+ force="true" pfx="tmp.aai.network-route-A">
+ <outcome value='not-found'>
+ <return status='failure'>
+ <parameter name='ack-final' value='Y'/>
+ <parameter name="error-code" value="500" />
+ <parameter name="error-message" value="`'An error occurred while querying pnf from AnAI with pnf-name = ' + $prop.l3vpn.pe1_id`" />
+ </return>
+ </outcome>
+ <outcome value='failure'>
+ <return status='failure'>
+ <parameter name='error-code' value='' />
+ <parameter name='error-message' value='' />
+ </return>
+ </outcome>
+ <outcome value='success'>
+ <block atomic="true">
+ <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='split' >
+ <parameter name="original_string" value='`$tmp.aai.network-route-A.next-hop`'/>
+ <!--<parameter name="regex" value="[^-]+$"/>-->
+ <parameter name="regex" value="[-]+"/>
+ <parameter name="ctx_memory_result_key" value="param-prefix-domainA-pnfName"/>
+ <outcome value='success'>
+ <block atomic="true">
+ <set>
+ <parameter name='tmp.src.domainA.pnf-name' value="`$param-prefix-domainA-pnfName[0] + '-' +
+ $param-prefix-domainA-pnfName[1] + '-' +
+ $param-prefix-domainA-pnfName[2] + '-' +
+ $param-prefix-domainA-pnfName[3] + '-' +
+ $param-prefix-domainA-pnfName[4] + '-' +
+ $param-prefix-domainA-pnfName[5] + '-' +
+ $param-prefix-domainA-pnfName[6] + '-' +
+ $param-prefix-domainA-pnfName[7] + '-' +
+ $param-prefix-domainA-pnfName[8]`" />
+ </set>
+ <get-resource plugin="org.onap.ccsdk.sli.adaptors.aai.AAIService"
+ resource="pnf"
+ key="pnf.pnf-name = $tmp.src.domainA.pnf-name"
+ pfx='tmp.aai.source-pnf' local-only='false' >
+ <!--AND depth = '0'"-->
+ <outcome value='success'>
+ <block>
+ <for silentFailure='true' index='spvidx' start='0' end='`$tmp.aai.source-pnf.relationship-list.relationship_length`' >
+ <switch test='`$tmp.aai.source-pnf.relationship-list.relationship[$spvidx].related-to`'>
+ <outcome value='esr-thirdparty-sdnc'>
+ <block atomic="true">
+ <set>
+ <parameter name='tmp.domainA.esr-thirdparty-id' value="`$tmp.aai.source-pnf.relationship-list.relationship[$spvidx].relationship-data[0].relationship-value`" />
+ </set>
+ <get-resource plugin="org.onap.ccsdk.sli.adaptors.aai.AAIService"
+ resource="esr-thirdparty-sdnc"
+ key="esr-thirdparty-sdnc.thirdparty-sdnc-id = $tmp.domainA.esr-thirdparty-id AND
+ depth = '1'"
+ pfx='tmp.aai.domainA.esr-thirdparty-sdnc' local-only='false' >
+ <outcome value='success'>
+ <block>
+ <set>
+ <parameter name='prop.sdncRestApi.thirdpartySdnc.domainA.url' value="`$tmp.aai.domainA.esr-thirdparty-sdnc.esr-system-info-list.esr-system-info[0].service-url`" />
+ <parameter name='prop.sdncRestApi.thirdpartySdnc.domainA.user' value="`$tmp.aai.domainA.esr-thirdparty-sdnc.esr-system-info-list.esr-system-info[0].user-name`" />
+ <parameter name='prop.sdncRestApi.thirdpartySdnc.domainA.password' value="`$tmp.aai.domainA.esr-thirdparty-sdnc.esr-system-info-list.esr-system-info[0].password`" />
+ <!--<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >-->
+ <!--<parameter name="restapiUrl" value="`$prop.sdncRestApi.thirdpartySdnc.url + '/restconf/data/ietf-network:networks'`" />-->
+ <!--<parameter name="restapiUser" value="`$prop.sdncRestApi.thirdpartySdnc.user`" />-->
+ <!--<parameter name="restapiPassword" value="`$prop.sdncRestApi.thirdpartySdnc.password`" />-->
+ <!--<parameter name="format" value="json"/>-->
+ <!--<parameter name="httpMethod" value="get"/>-->
+ <!--<parameter name="responsePrefix" value="topology"/>-->
+ <!--<parameter name="trustStoreFileName" value="/opt/onap/sdnc/data/stores/truststore.onap.client.jks"/>-->
+ <!--<parameter name="trustStorePassword" value="adminadmin"/>-->
+ <!--<parameter name="keyStoreFileName" value="/opt/onap/sdnc/data/stores/sdnc.p12"/>-->
+ <!--<parameter name="keyStorePassword" value="adminadmin"/>-->
+ </set>
+ </block>
+ </outcome>
+ <outcome value='not-found'>
+ <return status='failure'>
+ <parameter name='ack-final' value='Y'/>
+ <parameter name="error-code" value="500" />
+ <parameter name="error-message" value="`'An error occurred while querying pnf from AnAI with pnf-name = ' + $prop.connection-attachement.access-node-id`" />
+ </return>
+ </outcome>
+ <outcome value='Other'>
+ <return status='failure'>
+ <parameter name='ack-final' value='Y'/>
+ <parameter name="error-code" value="500" />
+ <parameter name="error-message" value="`'Unexpected error occurred while querying pnf from AnAI with pnf-name = ' + $prop.connection-attachement.access-node-id`" />
+ </return>
+ </outcome>
+ </get-resource>
+ </block>
+ </outcome>
+ <outcome value='network-resource'>
+ <block atomic="true">
+ <set>
+ <parameter name='tmp.domainA.eth-network-id' value="`$tmp.aai.source-pnf.relationship-list.relationship[$spvidx].relationship-data[0].relationship-value`" />
+ </set>
+ </block>
+ </outcome>
+ </switch>
+ </for>
+ </block>
+ </outcome>
+ <outcome value='not-found'>
+ <return status='failure'>
+ <parameter name='ack-final' value='Y'/>
+ <parameter name="error-code" value="500" />
+ <parameter name="error-message" value="`'An error occurred while querying pnf from AnAI with pnf-name = ' + $prop.connection-attachement.access-node-id`" />
+ </return>
+ </outcome>
+ <outcome value='Other'>
+ <return status='failure'>
+ <parameter name='ack-final' value='Y'/>
+ <parameter name="error-code" value="500" />
+ <parameter name="error-message" value="`'Unexpected error occurred while querying pnf from AnAI with pnf-name = ' + $prop.connection-attachement.access-node-id`" />
+ </return>
+ </outcome>
+ </get-resource>
+ </block>
+ </outcome>
+ <outcome value='failure'>
+ <return status='failure'>
+ <parameter name='error-code' value='' />
+ <parameter name='error-message' value="An error occured while splitting sna1_route" />
+ </return>
+ </outcome>
+ </execute>
+ <get-resource plugin="org.onap.ccsdk.sli.adaptors.aai.AAIService"
+ resource="p-interface"
+ key="pnf.pnf-name = $tmp.src.domainA.pnf-name
+ AND p-interface.interface-name = $tmp.aai.network-route-A.next-hop"
+ local-only="false"
+ pfx="tmp.aai.network-route-A.p-interface-src" >
+ <!--<get-resource plugin="org.onap.ccsdk.sli.adaptors.aai.AAIService" -->
+ <!-- resource="p-interface"-->
+ <!-- key="pnf.pnf-name = $unique-src-node-Id-->
+ <!-- and p-interface.interface-name = $tmp.aai.endpointA.relationship-list.relationship[$rel-index].relationship-data[0].relationship-value"-->
+ <!-- local-only="false" -->
+ <!-- pfx="tmp.aai.endpointA.p-interface-src" >-->
+ <outcome value='success'>
+ <block atomic="true">
+ <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='split' >
+ <parameter name="original_string" value='`$tmp.aai.network-route-A.p-interface-src.interface-name`'/>
+ <!--<parameter name="regex" value="[^-]+$"/>-->
+ <parameter name="regex" value="[-]+"/>
+ <parameter name="ctx_memory_result_key" value="param-prefix-domainA"/>
+ <outcome value='success'>
+ <block atomic="true">
+ <set>
+ <parameter name='tmp.src.ltpId' value='`$param-prefix-domainA[$param-prefix-domainA_length -1]`' />
+ </set>
+ <set>
+ <parameter name='tmp.src.pnf-name' value='`$param-prefix-domainA[$param-prefix-domainA_length -3]`' />
+ </set>
+ </block>
+ </outcome>
+ <outcome value='failure'>
+ <return status='failure'>
+ <parameter name='error-code' value='' />
+ <parameter name='error-message' value="An error occured while splitting sna1_route" />
+ </return>
+ </outcome>
+ </execute>
+ <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='generateUUID' >
+ <parameter name="ctx-destination" value="uuid.connectivity-domainA-uuid"/>
+ </execute>
+ <save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='connectivity'
+ key='connectivity.connectivity-id = $uuid.connectivity-domainA-uuid'>
+ <parameter name='connectivity-id' value='`$uuid.connectivity-domainA-uuid`' />
+ <parameter name='etht-svc-name' value='`$prop.ethernet-service-name`' />
+ <parameter name='operational-status' value='Created' />
+ <parameter name='access-provider-id' value='`$param-prefix-domainA[$param-prefix-domainA_length -9]`' />
+ <parameter name='access-client-id' value='`$param-prefix-domainA[$param-prefix-domainA_length -7]`' />
+ <parameter name='access-topology-id' value='`$param-prefix-domainA[$param-prefix-domainA_length -5]`' />
+ <parameter name='access-node-id' value='`$param-prefix-domainA[$param-prefix-domainA_length -3]`' />
+ <parameter name='access-ltp-id' value='`$param-prefix-domainA[$param-prefix-domainA_length -1]`' />
+ <parameter name='cvlan' value='`$tmp.aai.network-route-A.logical-interface-id`' />
+ <parameter name='bandwidth-profile-name' value='`$gfp`' />
+ <parameter name='vpn-type' value='`$prop.sotn.vpnType`' />
+ <parameter name='cir' value='`$gfp *1000000`' />
+ <parameter name='eir' value='`$gfp *1000000`' />
+ <parameter name='cbs' value='`$prop.sotn.cbs`' />
+ <parameter name='ebs' value='`$prop.sotn.ebs`' />
+ <!--<parameter name='color-aware' value='`$prop.sotn.colorAware`' />-->
+ <!--<parameter name='coupling-flag' value='`$prop.sotn.couplingFlag`' />-->
+ <!--<parameter name='etht-svc-name' value='`$prop.sotn.etht-svc-name`' />-->
+ <!--<parameter name='model-customization-id' value='`$network-topology-operation-input.network-information.onap-model-information.model-customization-uuid`' />-->
+ <!--<parameter name='model-invariant-id' value='`$network-topology-operation-input.network-information.onap-model-information.model-invariant-uuid`' />-->
+ <!--<parameter name='model-version-id' value='`$network-topology-operation-input.network-information.onap-model-information.model-uuid`' />-->
+ <parameter name='connectivity-selflink' value="`'restconf/config/GENERIC-RESOURCE-API:services/service/' + $network-topology-operation-input.service-information.service-instance-id + '/service-data/networks/network/' + $prop.sotn.network-id + '/network-data/'` " />
+ </save>
+ <save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='service-instance:relationship-list'
+ key='service-instance.service-instance-id = $vnf-topology-operation-input.service-information.service-instance-id
+ AND customer.global-customer-id = $vnf-topology-operation-input.service-information.global-customer-id
+ AND service-subscription.service-type = $vnf-topology-operation-input.service-information.subscription-service-type'
+ force="true" pfx="tmp.AnAI-data">
+ <parameter name="relationship-list.relationship[0].related-to" value="connectivity" />
+ <parameter name="relationship-list.relationship[0].related-link" value="`'/network/connectivities/connectivity/' + $uuid.connectivity-domainA-uuid`" />
+ <parameter name="relationship-list.relationship[0].relationship-data[0].relationship-key" value="connectivity.connectivity-id" />
+ <parameter name="relationship-list.relationship[0].relationship-data[0].relationship-value" value="`$uuid.connectivity-domainA-uuid`" />
+ <!--<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='service-instance:relationship-list' -->
+ <!-- key='service-instance.service-instance-id = $service-data.service-information.service-instance-id -->
+ <!-- AND customer.global-customer-id = $service-data.networks.network[$nidx].network-data.service-information.global-customer-id -->
+ <!-- AND service-subscription.service-type = $service-data.networks.network[$nidx].network-data.service-information.subscription-service-type' -->
+ <!-- force="true" pfx="tmp.AnAI-data">-->
+ <!--<parameter name="relationship-list.relationship[0].related-to" value="connectivity" />-->
+ <!--<parameter name="relationship-list.relationship[0].related-link" value="`'/network/connectivities/connectivity/' + $prop.sotn.network-id`" />-->
+ <!--<parameter name="relationship-list.relationship[0].relationship-data[0].relationship-key" value="connectivity.connectivity-id" />-->
+ <!--<parameter name="relationship-list.relationship[0].relationship-data[0].relationship-value" value="`$prop.sotn.network-id`" />-->
+ </save>
+ <for silentFailure='true' index='pividx' start='0' end='`$tmp.aai.network-route-A.p-interface-src.relationship-list.relationship_length`' >
+ <switch test='`$tmp.aai.network-route-A.p-interface-src.relationship-list.relationship[$pividx].related-to`'>
+ <outcome value='tunnel-termination-point'>
+ <block atomic="true">
+ <set>
+ <parameter name='tmp.source.ttp-id' value="`$tmp.aai.network-route-A.p-interface-src.relationship-list.relationship[$pividx].relationship-data[0].relationship-value`" />
+ </set>
+ <get-resource plugin="org.onap.ccsdk.sli.adaptors.aai.AAIService"
+ resource="tunnel-termination-point"
+ key="tunnel-termination-point.ttp-id = $tmp.source.ttp-id
+ AND depth = '0'"
+ pfx='tmp.aai.source-ttp' local-only='false' >
+ <outcome value='success'>
+ <block atomic="true">
+ <set>
+ <parameter name='source.tunnel-tp-id' value="`$tmp.aai.source-ttp.tunnel-tp-id`" />
+ </set>
+ </block>
+ </outcome>
+ </get-resource>
+ <break/>
+ </block>
+ </outcome>
+ </switch>
+ </for>
+ </block>
+ </outcome>
+ <outcome value='not-found'>
+ <return status='failure'>
+ <parameter name='ack-final' value='Y'/>
+ <parameter name="error-code" value="500" />
+ <parameter name="error-message" value="`'An error occurred while querying pnf from AnAI with pnf-name = ' + $prop.l3vpn.pe1_id`" />
+ </return>
+ </outcome>
+ <outcome value='failure'>
+ <return status='failure'>
+ <parameter name='error-code' value='' />
+ <parameter name='error-message' value='' />
+ </return>
+ </outcome>
+ </get-resource>
+ </block>
+ </outcome>
+ </get-resource>
+ <get-resource plugin="org.onap.ccsdk.sli.adaptors.aai.AAIService"
+ resource="network-route"
+ key='network-route.route-id = $network-route-B'
+ local-only="false"
+ force="true" pfx="tmp.aai.network-route-B">
+ <outcome value='not-found'>
+ <return status='failure'>
+ <parameter name='ack-final' value='Y'/>
+ <parameter name="error-code" value="500" />
+ <parameter name="error-message" value="`'An error occurred while querying pnf from AnAI with pnf-name = ' + $prop.l3vpn.pe1_id`" />
+ </return>
+ </outcome>
+ <outcome value='failure'>
+ <return status='failure'>
+ <parameter name='error-code' value='' />
+ <parameter name='error-message' value='' />
+ </return>
+ </outcome>
+ <outcome value='success'>
+ <block atomic="true">
+ <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='split' >
+ <parameter name="original_string" value='`$tmp.aai.network-route-B.next-hop`'/>
+ <!--<parameter name="regex" value="[^-]+$"/>-->
+ <parameter name="regex" value="[-]+"/>
+ <parameter name="ctx_memory_result_key" value="param-prefix-domainB-pnfName"/>
+ <outcome value='success'>
+ <block atomic="true">
+ <set>
+ <parameter name='tmp.dst.domainB.pnf-name' value="`$param-prefix-domainB-pnfName[0] + '-' +
+ $param-prefix-domainB-pnfName[1] + '-' +
+ $param-prefix-domainB-pnfName[2] + '-' +
+ $param-prefix-domainB-pnfName[3] + '-' +
+ $param-prefix-domainB-pnfName[4] + '-' +
+ $param-prefix-domainB-pnfName[5] + '-' +
+ $param-prefix-domainB-pnfName[6] + '-' +
+ $param-prefix-domainB-pnfName[7] + '-' +
+ $param-prefix-domainB-pnfName[8]`" />
+ </set>
+ <get-resource plugin="org.onap.ccsdk.sli.adaptors.aai.AAIService"
+ resource="pnf"
+ key="pnf.pnf-name = $tmp.dst.domainB.pnf-name"
+ pfx='tmp.aai.destination-pnf' local-only='false' >
+ <!--AND depth = '0'"-->
+ <outcome value='success'>
+ <block>
+ <for silentFailure='true' index='dpvidx' start='0' end='`$tmp.aai.destination-pnf.relationship-list.relationship_length`' >
+ <switch test='`$tmp.aai.destination-pnf.relationship-list.relationship[$dpvidx].related-to`'>
+ <outcome value='esr-thirdparty-sdnc'>
+ <block atomic="true">
+ <set>
+ <parameter name='tmp.domainB.esr-thirdparty-id' value="`$tmp.aai.destination-pnf.relationship-list.relationship[$dpvidx].relationship-data[0].relationship-value`" />
+ </set>
+ <get-resource plugin="org.onap.ccsdk.sli.adaptors.aai.AAIService"
+ resource="esr-thirdparty-sdnc"
+ key="esr-thirdparty-sdnc.thirdparty-sdnc-id = $tmp.domainB.esr-thirdparty-id AND
+ depth = '1'"
+ pfx='tmp.aai.domainB.esr-thirdparty-sdnc' local-only='false' >
+ <outcome value='success'>
+ <block>
+ <set>
+ <parameter name='prop.sdncRestApi.thirdpartySdnc.domainB.url' value="`$tmp.aai.domainB.esr-thirdparty-sdnc.esr-system-info-list.esr-system-info[0].service-url`" />
+ <parameter name='prop.sdncRestApi.thirdpartySdnc.domainB.user' value="`$tmp.aai.domainB.esr-thirdparty-sdnc.esr-system-info-list.esr-system-info[0].user-name`" />
+ <parameter name='prop.sdncRestApi.thirdpartySdnc.domainB.password' value="`$tmp.aai.domainB.esr-thirdparty-sdnc.esr-system-info-list.esr-system-info[0].password`" />
+ <!--<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >-->
+ <!--<parameter name="restapiUrl" value="`$prop.sdncRestApi.thirdpartySdnc.url + '/restconf/data/ietf-network:networks'`" />-->
+ <!--<parameter name="restapiUser" value="`$prop.sdncRestApi.thirdpartySdnc.user`" />-->
+ <!--<parameter name="restapiPassword" value="`$prop.sdncRestApi.thirdpartySdnc.password`" />-->
+ <!--<parameter name="format" value="json"/>-->
+ <!--<parameter name="httpMethod" value="get"/>-->
+ <!--<parameter name="responsePrefix" value="topology"/>-->
+ <!--<parameter name="trustStoreFileName" value="/opt/onap/sdnc/data/stores/truststore.onap.client.jks"/>-->
+ <!--<parameter name="trustStorePassword" value="adminadmin"/>-->
+ <!--<parameter name="keyStoreFileName" value="/opt/onap/sdnc/data/stores/sdnc.p12"/>-->
+ <!--<parameter name="keyStorePassword" value="adminadmin"/>-->
+ </set>
+ </block>
+ </outcome>
+ <outcome value='not-found'>
+ <return status='failure'>
+ <parameter name='ack-final' value='Y'/>
+ <parameter name="error-code" value="500" />
+ <parameter name="error-message" value="`'An error occurred while querying pnf from AnAI with pnf-name = ' + $prop.connection-attachement.access-node-id`" />
+ </return>
+ </outcome>
+ <outcome value='Other'>
+ <return status='failure'>
+ <parameter name='ack-final' value='Y'/>
+ <parameter name="error-code" value="500" />
+ <parameter name="error-message" value="`'Unexpected error occurred while querying pnf from AnAI with pnf-name = ' + $prop.connection-attachement.access-node-id`" />
+ </return>
+ </outcome>
+ </get-resource>
+ </block>
+ </outcome>
+ <outcome value='network-resource'>
+ <block atomic="true">
+ <set>
+ <parameter name='tmp.domainB.eth-network-id' value="`$tmp.aai.destination-pnf.relationship-list.relationship[$dpvidx].relationship-data[0].relationship-value`" />
+ </set>
+ </block>
+ </outcome>
+ </switch>
+ </for>
+ </block>
+ </outcome>
+ <outcome value='not-found'>
+ <return status='failure'>
+ <parameter name='ack-final' value='Y'/>
+ <parameter name="error-code" value="500" />
+ <parameter name="error-message" value="`'An error occurred while querying pnf from AnAI with pnf-name = ' + $prop.connection-attachement.access-node-id`" />
+ </return>
+ </outcome>
+ <outcome value='Other'>
+ <return status='failure'>
+ <parameter name='ack-final' value='Y'/>
+ <parameter name="error-code" value="500" />
+ <parameter name="error-message" value="`'Unexpected error occurred while querying pnf from AnAI with pnf-name = ' + $prop.connection-attachement.access-node-id`" />
+ </return>
+ </outcome>
+ </get-resource>
+ </block>
+ </outcome>
+ <outcome value='failure'>
+ <return status='failure'>
+ <parameter name='error-code' value='' />
+ <parameter name='error-message' value="An error occured while splitting sna1_route" />
+ </return>
+ </outcome>
+ </execute>
+ <get-resource plugin="org.onap.ccsdk.sli.adaptors.aai.AAIService"
+ resource="p-interface"
+ key="pnf.pnf-name = $tmp.dst.domainB.pnf-name
+ AND p-interface.interface-name = $tmp.aai.network-route-B.next-hop"
+ local-only="false"
+ pfx="tmp.aai.network-route-B.p-interface-dst" >
+ <!--<get-resource plugin="org.onap.ccsdk.sli.adaptors.aai.AAIService" -->
+ <!-- resource="p-interface"-->
+ <!-- key="pnf.pnf-name = $unique-src-node-Id-->
+ <!-- and p-interface.interface-name = $tmp.aai.endpointA.relationship-list.relationship[$rel-index].relationship-data[0].relationship-value"-->
+ <!-- local-only="false" -->
+ <!-- pfx="tmp.aai.endpointA.p-interface-src" >-->
+ <outcome value='success'>
+ <block atomic="true">
+ <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='split' >
+ <parameter name="original_string" value='`$tmp.aai.network-route-B.p-interface-dst.interface-name`'/>
+ <!--<parameter name="regex" value="[^-]+$"/>-->
+ <parameter name="regex" value="[-]+"/>
+ <parameter name="ctx_memory_result_key" value="param-prefix-domainB"/>
+ <outcome value='success'>
+ <block atomic="true">
+ <set>
+ <parameter name='tmp.dst.ltpId' value='`$param-prefix-domainB[$param-prefix-domainB_length -1]`' />
+ </set>
+ <set>
+ <parameter name='tmp.dst.pnf-name' value='`$param-prefix-domainB[$param-prefix-domainB_length -3]`' />
+ </set>
+ </block>
+ </outcome>
+ <outcome value='failure'>
+ <return status='failure'>
+ <parameter name='error-code' value='' />
+ <parameter name='error-message' value="An error occured while splitting sna1_route" />
+ </return>
+ </outcome>
+ </execute>
+ <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='generateUUID' >
+ <parameter name="ctx-destination" value="prop.connectivity-domainB-uuid"/>
+ </execute>
+ <save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='connectivity'
+ key='connectivity.connectivity-id = $prop.connectivity-domainB-uuid'>
+ <parameter name='connectivity-id' value='`$prop.connectivity-domainB-uuid`' />
+ <parameter name='etht-svc-name' value='`$prop.ethernet-service-name`' />
+ <parameter name='operational-status' value='Created' />
+ <parameter name='access-provider-id' value='`$param-prefix-domainB[$param-prefix-domainB_length -9]`' />
+ <parameter name='access-client-id' value='`$param-prefix-domainB[$param-prefix-domainB_length -7]`' />
+ <parameter name='access-topology-id' value='`$param-prefix-domainB[$param-prefix-domainB_length -5]`' />
+ <parameter name='access-node-id' value='`$param-prefix-domainB[$param-prefix-domainB_length -3]`' />
+ <parameter name='access-ltp-id' value='`$param-prefix-domainB[$param-prefix-domainB_length -1]`' />
+ <parameter name='cvlan' value='`$tmp.aai.network-route-B.logical-interface-id`' />
+ <parameter name='bandwidth-profile-name' value='`$gfp`' />
+ <parameter name='vpn-type' value='`$prop.sotn.vpnType`' />
+ <parameter name='cir' value='`$gfp *1000000`' />
+ <parameter name='eir' value='`$gfp *1000000`' />
+ <parameter name='cbs' value='`$prop.sotn.cbs`' />
+ <parameter name='ebs' value='`$prop.sotn.ebs`' />
+ <!--<parameter name='color-aware' value='`$prop.sotn.colorAware`' />-->
+ <!--<parameter name='coupling-flag' value='`$prop.sotn.couplingFlag`' />-->
+ <!--<parameter name='etht-svc-name' value='`$prop.sotn.etht-svc-name`' />-->
+ <!--<parameter name='model-customization-id' value='`$network-topology-operation-input.network-information.onap-model-information.model-customization-uuid`' />-->
+ <!--<parameter name='model-invariant-id' value='`$network-topology-operation-input.network-information.onap-model-information.model-invariant-uuid`' />-->
+ <!--<parameter name='model-version-id' value='`$network-topology-operation-input.network-information.onap-model-information.model-uuid`' />-->
+ <parameter name='connectivity-selflink' value="`'restconf/config/GENERIC-RESOURCE-API:services/service/' + $network-topology-operation-input.service-information.service-instance-id + '/service-data/networks/network/' + $prop.sotn.network-id + '/network-data/'` " />
+ </save>
+ <save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='service-instance:relationship-list'
+ key='service-instance.service-instance-id = $vnf-topology-operation-input.service-information.service-instance-id
+ AND customer.global-customer-id = $vnf-topology-operation-input.service-information.global-customer-id
+ AND service-subscription.service-type = $vnf-topology-operation-input.service-information.subscription-service-type'
+ force="true" pfx="tmp.AnAI-data">
+ <parameter name="relationship-list.relationship[0].related-to" value="connectivity" />
+ <parameter name="relationship-list.relationship[0].related-link" value="`'/network/connectivities/connectivity/' + $prop.connectivity-domainB-uuid`" />
+ <parameter name="relationship-list.relationship[0].relationship-data[0].relationship-key" value="connectivity.connectivity-id" />
+ <parameter name="relationship-list.relationship[0].relationship-data[0].relationship-value" value="`$prop.connectivity-domainB-uuid`" />
+ <!--<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='service-instance:relationship-list' -->
+ <!-- key='service-instance.service-instance-id = $service-data.service-information.service-instance-id -->
+ <!-- AND customer.global-customer-id = $service-data.networks.network[$nidx].network-data.service-information.global-customer-id -->
+ <!-- AND service-subscription.service-type = $service-data.networks.network[$nidx].network-data.service-information.subscription-service-type' -->
+ <!-- force="true" pfx="tmp.AnAI-data">-->
+ <!--<parameter name="relationship-list.relationship[0].related-to" value="connectivity" />-->
+ <!--<parameter name="relationship-list.relationship[0].related-link" value="`'/network/connectivities/connectivity/' + $prop.sotn.network-id`" />-->
+ <!--<parameter name="relationship-list.relationship[0].relationship-data[0].relationship-key" value="connectivity.connectivity-id" />-->
+ <!--<parameter name="relationship-list.relationship[0].relationship-data[0].relationship-value" value="`$prop.sotn.network-id`" />-->
+ </save>
+ <for silentFailure='true' index='dividx' start='0' end='`$tmp.aai.network-route-B.p-interface-dst.relationship-list.relationship_length`' >
+ <switch test='`$tmp.aai.network-route-B.p-interface-dst.relationship-list.relationship[$dividx].related-to`'>
+ <outcome value='tunnel-termination-point'>
+ <block atomic="true">
+ <set>
+ <parameter name='tmp.destination.ttp-id' value="`$tmp.aai.network-route-B.p-interface-dst.relationship-list.relationship[$dividx].relationship-data[0].relationship-value`" />
+ </set>
+ <get-resource plugin="org.onap.ccsdk.sli.adaptors.aai.AAIService"
+ resource="tunnel-termination-point"
+ key="tunnel-termination-point.ttp-id = $tmp.destination.ttp-id
+ AND depth = '0'"
+ pfx='tmp.aai.destination-ttp' local-only='false' >
+ <outcome value='success'>
+ <block atomic="true">
+ <set>
+ <parameter name='destination.tunnel-tp-id' value="`$tmp.aai.destination-ttp.tunnel-tp-id`" />
+ </set>
+ </block>
+ </outcome>
+ </get-resource>
+ <break/>
+ </block>
+ </outcome>
+ </switch>
+ </for>
+ </block>
+ </outcome>
+ <outcome value='not-found'>
+ <return status='failure'>
+ <parameter name='ack-final' value='Y'/>
+ <parameter name="error-code" value="500" />
+ <parameter name="error-message" value="`'An error occurred while querying pnf from AnAI with pnf-name = ' + $prop.l3vpn.pe1_id`" />
+ </return>
+ </outcome>
+ <outcome value='failure'>
+ <return status='failure'>
+ <parameter name='error-code' value='' />
+ <parameter name='error-message' value='' />
+ </return>
+ </outcome>
+ </get-resource>
+ </block>
+ </outcome>
+ </get-resource>
+ <set>
+ <parameter name='prop.connection-attachment.access-provider-id' value='`$param-prefix-domainA[$param-prefix-domainA_length -9]`' />
+ <parameter name='prop.connection-attachment.access-client-id' value='`$param-prefix-domainA[$param-prefix-domainA_length -7]`' />
+ <parameter name='prop.connection-attachment.access-topology-id' value='`$param-prefix-domainA[$param-prefix-domainA_length -5]`' />
+ <parameter name='prop.connection-attachment.access-node-id' value='`$param-prefix-domainA[$param-prefix-domainA_length -3]`' />
+ <parameter name='prop.connection-attachment.access-ltp-id' value='`$param-prefix-domainA[$param-prefix-domainA_length -1]`' />
+ <parameter name='prop.remote.connection-attachment.access-provider-id' value='`$param-prefix-domainB[$param-prefix-domainB_length -9]`' />
+ <parameter name='prop.remote.connection-attachment.access-client-id' value='`$param-prefix-domainB[$param-prefix-domainB_length -7]`' />
+ <parameter name='prop.remote.connection-attachment.access-topology-id' value='`$param-prefix-domainB[$param-prefix-domainB_length -5]`' />
+ <parameter name='prop.remote.connection-attachment.access-node-id' value='`$param-prefix-domainB[$param-prefix-domainB_length -3]`' />
+ <parameter name='prop.remote.connection-attachment.access-ltp-id' value='`$param-prefix-domainB[$param-prefix-domainB_length -1]`' />
+ <!--<parameter name='prop.remote.connection-attachment.access-provider-id' value='`$oof.vpn.access-provider-id`' />-->
+ <!--<parameter name='prop.remote.connection-attachment.access-client-id' value='`$oof.vpn.access-client-id`' />-->
+ <!--<parameter name='prop.remote.connection-attachment.access-topology-id' value='`$oof.vpn.access-topology-id`' />-->
+ <!--<parameter name='prop.remote.connection-attachment.access-node-id' value='`$oof.vpn.access-node-id`' />-->
+ <!--<parameter name='prop.remote.connection-attachment.access-ltp-id' value='`$oof.vpn.src-access-ltp-id`' />-->
+ </set>
+ <set>
+ <parameter name='prop.ethsrvType' value='`$network-route-A`' />
+ </set>
+ <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='printContext' >
+ <parameter name="filename" value="`$filenamemm`" />
+ </execute>
+ <call module='GENERIC-RESOURCE-API' rpc='tsli-vnf-topology-operation-find-maximum-used-tpn' mode='sync' ></call>
+ <switch test="`$param-prefix-domainA[$param-prefix-domainA_length -9] == $param-prefix-domainB[$param-prefix-domainB_length -9]`">
+
+ `
+
+
+ <outcome value='false'>
+ <call module='GENERIC-RESOURCE-API' rpc='tsli-vnf-topology-operation-get-otn-tunnel-path-from-oof' mode='sync' >
+ <block atomic='true'>
+ <for index='otnidx' start='0' end='`$tmp.otninfo_length`' >
+ <block atomic='true'>
+ <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='generateUUID' >
+ <parameter name="ctx-destination" value="prop.vpn-binding-otnidx-uuid"/>
+ </execute>
+ <switch test="`$tmp.otninfo[$otnidx].dstPort.dst-access-provider-id == ''`">
+ <outcome value='true'>
+ <set>
+ <parameter name='tmp.access-provider-id' value='`$tmp.otninfo[$otnidx].srcPort.src-access-provider-id`' />
+ <parameter name='tmp.access-client-id' value='`$tmp.otninfo[$otnidx].srcPort.src-access-client-id`' />
+ <parameter name='tmp.access-topology-id' value='`$tmp.otninfo[$otnidx].srcPort.src-access-topology-id`' />
+ <parameter name='tmp.srcdstpnf-id' value='`$tmp.otninfo[$otnidx].srcPort.src-access-node-id`' />
+ </set>
+ </outcome>
+ <outcome value='false'>
+ <set>
+ <parameter name='tmp.access-provider-id' value='`$tmp.otninfo[$otnidx].dstPort.dst-access-provider-id`' />
+ <parameter name='tmp.access-client-id' value='`$tmp.otninfo[$otnidx].dstPort.dst-access-client-id`' />
+ <parameter name='tmp.access-topology-id' value='`$tmp.otninfo[$otnidx].dstPort.dst-access-topology-id`' />
+ <parameter name='tmp.srcdstpnf-id' value='`$tmp.otninfo[$otnidx].dstPort.dst-access-node-id`' />
+ </set>
+ </outcome>
+ </switch>
+ <set>
+ <parameter name='tmp.srcdstpnf-name' value="`'networkId-providerId-' +
+ $tmp.access-provider-id + '-clientId-' +
+ $tmp.access-client-id + '-topologyId-' +
+ $tmp.access-topology-id + '-nodeId-' +
+ $tmp.srcdstpnf-id`" />
+ </set>
+ <get-resource plugin="org.onap.ccsdk.sli.adaptors.aai.AAIService"
+ resource="pnf"
+ key="pnf.pnf-name = $tmp.srcdstpnf-name"
+ pfx='tmp.aai.srcdst-pnf' local-only='false' >
+ <!--AND depth = '0'"-->
+ <outcome value='success'>
+ <block>
+ <for silentFailure='true' index='spvidx' start='0' end='`$tmp.aai.srcdst-pnf.relationship-list.relationship_length`' >
+ <switch test='`$tmp.aai.srcdst-pnf.relationship-list.relationship[$spvidx].related-to`'>
+ <outcome value='esr-thirdparty-sdnc'>
+ <block atomic="true">
+ <set>
+ <parameter name='tmp.domainG.esr-thirdparty-id' value="`$tmp.aai.srcdst-pnf.relationship-list.relationship[$spvidx].relationship-data[0].relationship-value`" />
+ </set>
+ <get-resource plugin="org.onap.ccsdk.sli.adaptors.aai.AAIService"
+ resource="esr-thirdparty-sdnc"
+ key="esr-thirdparty-sdnc.thirdparty-sdnc-id = $tmp.domainG.esr-thirdparty-id AND
+ depth = '1'"
+ pfx='tmp.aai.domainG.esr-thirdparty-sdnc' local-only='false' >
+ <outcome value='success'>
+ <block>
+ <set>
+ <parameter name='prop.sdncRestApi.thirdpartySdnc.domainG.url' value="`$tmp.aai.domainG.esr-thirdparty-sdnc.esr-system-info-list.esr-system-info[0].service-url`" />
+ <parameter name='prop.sdncRestApi.thirdpartySdnc.domainG.user' value="`$tmp.aai.domainG.esr-thirdparty-sdnc.esr-system-info-list.esr-system-info[0].user-name`" />
+ <parameter name='prop.sdncRestApi.thirdpartySdnc.domainG.password' value="`$tmp.aai.domainG.esr-thirdparty-sdnc.esr-system-info-list.esr-system-info[0].password`" />
+ <!--<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >-->
+ <!--<parameter name="restapiUrl" value="`$prop.sdncRestApi.thirdpartySdnc.url + '/restconf/data/ietf-network:networks'`" />-->
+ <!--<parameter name="restapiUser" value="`$prop.sdncRestApi.thirdpartySdnc.user`" />-->
+ <!--<parameter name="restapiPassword" value="`$prop.sdncRestApi.thirdpartySdnc.password`" />-->
+ <!--<parameter name="format" value="json"/>-->
+ <!--<parameter name="httpMethod" value="get"/>-->
+ <!--<parameter name="responsePrefix" value="topology"/>-->
+ <!--<parameter name="trustStoreFileName" value="/opt/onap/sdnc/data/stores/truststore.onap.client.jks"/>-->
+ <!--<parameter name="trustStorePassword" value="adminadmin"/>-->
+ <!--<parameter name="keyStoreFileName" value="/opt/onap/sdnc/data/stores/sdnc.p12"/>-->
+ <!--<parameter name="keyStorePassword" value="adminadmin"/>-->
+ </set>
+ </block>
+ </outcome>
+ <outcome value='not-found'>
+ <return status='failure'>
+ <parameter name='ack-final' value='Y'/>
+ <parameter name="error-code" value="500" />
+ <parameter name="error-message" value="`'An error occurred while querying pnf from AnAI with pnf-name = ' + $prop.connection-attachement.access-node-id`" />
+ </return>
+ </outcome>
+ <outcome value='Other'>
+ <return status='failure'>
+ <parameter name='ack-final' value='Y'/>
+ <parameter name="error-code" value="500" />
+ <parameter name="error-message" value="`'Unexpected error occurred while querying pnf from AnAI with pnf-name = ' + $prop.connection-attachement.access-node-id`" />
+ </return>
+ </outcome>
+ </get-resource>
+ </block>
+ </outcome>
+ </switch>
+ </for>
+ </block>
+ </outcome>
+ <outcome value='not-found'>
+ <return status='failure'>
+ <parameter name='ack-final' value='Y'/>
+ <parameter name="error-code" value="500" />
+ <parameter name="error-message" value="`'An error occurred while querying pnf from AnAI with pnf-name = ' + $prop.connection-attachement.access-node-id`" />
+ </return>
+ </outcome>
+ <outcome value='Other'>
+ <return status='failure'>
+ <parameter name='ack-final' value='Y'/>
+ <parameter name="error-code" value="500" />
+ <parameter name="error-message" value="`'Unexpected error occurred while querying pnf from AnAI with pnf-name = ' + $prop.connection-attachement.access-node-id`" />
+ </return>
+ </outcome>
+ </get-resource>
+ <switch test='`$otnidx == 0`'>
+ <outcome value='true'>
+ <block>
+ <set>
+ <parameter name='tmp.domainG-src-access-node-id' value='`$param-prefix-domainA[$param-prefix-domainA_length -3]`' />
+ <parameter name='tmp.domainG-dst-access-node-id' value='`$tmp.otninfo[$otnidx].dstPort.dst-access-node-id`' />
+ </set>
+ </block>
+ </outcome>
+ <outcome value='false'>
+ <switch test='`$otnidx == $tmp.otninfo_length - 1`'>
+ <outcome value='true'>
+ <block>
+ <set>
+ <parameter name='tmp.domainG-src-access-node-id' value='`$tmp.otninfo[$otnidx].srcPort.src-access-node-id`' />
+ <parameter name='tmp.domainG-dst-access-node-id' value='`$param-prefix-domainB[$param-prefix-domainB_length -3]`' />
+ </set>
+ </block>
+ </outcome>
+ <outcome value='false'>
+ <set>
+ <parameter name='tmp.domainG-src-access-node-id' value='`$tmp.otninfo[$otnidx].srcPort.src-access-node-id`' />
+ <parameter name='tmp.domainG-dst-access-node-id' value='`$tmp.otninfo[$otnidx].dstPort.dst-access-node-id`' />
+ </set>
+ </outcome>
+ </switch>
+ </outcome>
+ </switch>
+ <save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='vpn-binding'
+ key='vpn-binding.vpn-id = $prop.vpn-binding-otnidx-uuid' >
+ <parameter name='vpn-id' value='`$prop.vpn-binding-otnidx-uuid`' />
+ <parameter name='vpn-name' value='`$prop.otn-tunnel-name`' />
+ <!--<parameter name='customer-vpn-id' value='`($idx + 1) * 10`' />-->
+ <parameter name='customer-vpn-id' value='`($maxtpn + $gfp)`' />
+ <!--<parameter name='access-provider-id' value='`$tmp.otninfo[$otnidx].dstPort.dst-access-provider-id`' />-->
+ <parameter name='access-provider-id' value='`$tmp.access-provider-id`' />
+ <!--<parameter name='access-client-id' value='`$tmp.otninfo[$otnidx].dstPort.dst-access-client-id`' />-->
+ <parameter name='access-client-id' value='`$tmp.access-client-id`' />
+ <!--<parameter name='access-topology-id' value='`$tmp.otninfo[$otnidx].dstPort.dst-access-topology-id`' />-->
+ <parameter name='access-topology-id' value='`$tmp.access-topology-id`' />
+ <!--<parameter name='src-access-node-id' value='`$tmp.otninfo[$otnidx].srcPort.src-access-node-id`' />-->
+ <parameter name='src-access-node-id' value='`$tmp.domainG-src-access-node-id`' />
+ <parameter name='src-access-ltp-id' value='`$tmp.otninfo[$otnidx].srcPort.src-tunnel-tp-id`' />
+ <!--<parameter name='dst-access-node-id' value='`$tmp.otninfo[$otnidx].dstPort.dst-access-node-id`' />-->
+ <parameter name='dst-access-node-id' value='`$tmp.domainG-dst-access-node-id`' />
+ <parameter name='dst-access-ltp-id' value='`$tmp.otninfo[$otnidx].dstPort.dst-tunnel-tp-id`' />
+ <parameter name='route-distinguisher' value='`$gfp`' />
+ <parameter name='operational-status' value='Created' />
+ <!--<parameter name='model-customization-id' value='`$network-topology-operation-input.network-information.onap-model-information.model-customization-uuid`' />-->
+ <!--<parameter name='model-invariant-id' value='`$network-topology-operation-input.network-information.onap-model-information.model-invariant-uuid`' />-->
+ <!--<parameter name='model-version-id' value='`$network-topology-operation-input.network-information.onap-model-information.model-uuid`' />-->
+ <parameter name='vpn-region' value='`$prop.sdncRestApi.thirdpartySdnc.domainG.url`' />
+ <parameter name='vpn-description' value='`$prop.sdncRestApi.thirdpartySdnc.domainG.user`' />
+ <parameter name='vpn-platform' value='`$prop.sdncRestApi.thirdpartySdnc.domainG.password`' />
+ <!-- The following line is in lieu of vpn-binding.slice-id (new attribute in latest AAI) -->
+ <parameter name='ops-note' value='`$tmp.aai.service-instance.service-instance-id`' />
+ <outcome value='success'>
+ <block></block>
+ </outcome>
+ </save>
+ <switch test='`$otnidx == 0`'>
+ <outcome value='true'>
+ <block>
+ <save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='vpn-binding:relationship-list'
+ key='vpn-binding.vpn-id = $prop.vpn-binding-otnidx-uuid'
+ force="true" pfx="tmp.AnAI-data">
+ <parameter name="relationship-list.relationship[0].related-to" value="connectivity" />
+ <parameter name="relationship-list.relationship[0].related-link" value="`'/network/connectivities/connectivity/' + $uuid.connectivity-domainA-uuid`" />
+ <parameter name="relationship-list.relationship[0].relationship-data[0].relationship-key" value="connectivity.connectivity-id" />
+ <parameter name="relationship-list.relationship[0].relationship-data[0].relationship-value" value="`$uuid.connectivity-domainA-uuid`" />
+ </save>
+ <set>
+ <parameter name='slice-instance-id' value='`$tmp.aai.service-instance.service-instance-id`' />
+ </set>
+ </block>
+ </outcome>
+ <outcome value='false'>
+ <block>
+ <set>
+ <parameter name='testingvalue' value='$tmp.otninfo_length -1' />
+ </set>
+ <switch test='`$otnidx == $tmp.otninfo_length - 1`'>
+ <outcome value='true'>
+ <block>
+ <save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='vpn-binding:relationship-list'
+ key='vpn-binding.vpn-id = $prop.vpn-binding-otnidx-uuid'
+ force="true" pfx="tmp.AnAI-data">
+ <parameter name="relationship-list.relationship[0].related-to" value="connectivity" />
+ <parameter name="relationship-list.relationship[0].related-link" value="`'/network/connectivities/connectivity/' + $prop.connectivity-domainB-uuid`" />
+ <parameter name="relationship-list.relationship[0].relationship-data[0].relationship-key" value="connectivity.connectivity-id" />
+ <parameter name="relationship-list.relationship[0].relationship-data[0].relationship-value" value="`$prop.connectivity-domainB-uuid`" />
+ </save>
+ <set>
+ <parameter name='slice-instance-id' value='`$tmp.aai.service-instance.service-instance-id`' />
+ </set>
+ </block>
+ </outcome>
+ <outcome value='false'>
+ <block atomic='true'>
+ <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='generateUUID' >
+ <parameter name="ctx-destination" value="uuid.connectivity-otnidx-uuid"/>
+ </execute>
+ <save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='connectivity'
+ key='connectivity.connectivity-id = $uuid.connectivity-otnidx-uuid'>
+ <parameter name='connectivity-id' value='`$uuid.connectivity-otnidx-uuid`' />
+ <!--<parameter name='etht-svc-name' value='`$prop.ethernet-service-name`' />-->
+ <parameter name='operational-status' value='Created' />
+ <!--<parameter name='access-provider-id' value='`$tmp.otninfo[$otnidx].dstPort.dst-access-provider-id`' />-->
+ <!--<parameter name='access-client-id' value='`$tmp.otninfo[$otnidx].dstPort.dst-access-client-id`' />-->
+ <!--<parameter name='access-topology-id' value='`$tmp.otninfo[$otnidx].dstPort.dst-access-topology-id`' />-->
+ <!--<parameter name='access-node-id' value='`$tmp.otninfo[$otnidx].srcPort.src-access-node-id`' />-->
+ <!--<parameter name='access-ltp-id' value='``' />-->
+ <!--<parameter name='cvlan' value='`$tmp.aai.network-route-A.logical-interface-id`' />-->
+ <!--<parameter name='bandwidth-profile-name' value='`$prop.sotn.etht-svc-name`' />-->
+ <parameter name='bandwidth-profile-name' value='`$gfp`' />
+ <parameter name='vpn-type' value='dummy' />
+ <parameter name='cir' value='`$gfp *1000000`' />
+ <parameter name='eir' value='`$gfp *1000000`' />
+ <!--<parameter name='cbs' value='`$prop.sotn.cbs`' />-->
+ <!--<parameter name='ebs' value='`$prop.sotn.ebs`' />-->
+ <!--<parameter name='color-aware' value='`$prop.sotn.colorAware`' />-->
+ <!--<parameter name='coupling-flag' value='`$prop.sotn.couplingFlag`' />-->
+ <!--<parameter name='etht-svc-name' value='`$prop.sotn.etht-svc-name`' />-->
+ <!--<parameter name='model-customization-id' value='`$network-topology-operation-input.network-information.onap-model-information.model-customization-uuid`' />-->
+ <!--<parameter name='model-invariant-id' value='`$network-topology-operation-input.network-information.onap-model-information.model-invariant-uuid`' />-->
+ <!--<parameter name='model-version-id' value='`$network-topology-operation-input.network-information.onap-model-information.model-uuid`' />-->
+ <parameter name='connectivity-selflink' value="`'restconf/config/GENERIC-RESOURCE-API:services/service/' + $network-topology-operation-input.service-information.service-instance-id + '/service-data/networks/network/' + $prop.sotn.network-id + '/network-data/'` " />
+ </save>
+ <save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='service-instance:relationship-list'
+ key='service-instance.service-instance-id = $vnf-topology-operation-input.service-information.service-instance-id
+ AND customer.global-customer-id = $vnf-topology-operation-input.service-information.global-customer-id
+ AND service-subscription.service-type = $vnf-topology-operation-input.service-information.subscription-service-type'
+ force="true" pfx="tmp.AnAI-data">
+ <parameter name="relationship-list.relationship[0].related-to" value="connectivity" />
+ <parameter name="relationship-list.relationship[0].related-link" value="`'/network/connectivities/connectivity/' + $uuid.connectivity-otnidx-uuid`" />
+ <parameter name="relationship-list.relationship[0].relationship-data[0].relationship-key" value="connectivity.connectivity-id" />
+ <parameter name="relationship-list.relationship[0].relationship-data[0].relationship-value" value="`$uuid.connectivity-otnidx-uuid`" />
+ <!--<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='service-instance:relationship-list' -->
+ <!-- key='service-instance.service-instance-id = $service-data.service-information.service-instance-id -->
+ <!-- AND customer.global-customer-id = $service-data.networks.network[$nidx].network-data.service-information.global-customer-id -->
+ <!-- AND service-subscription.service-type = $service-data.networks.network[$nidx].network-data.service-information.subscription-service-type' -->
+ <!-- force="true" pfx="tmp.AnAI-data">-->
+ <!--<parameter name="relationship-list.relationship[0].related-to" value="connectivity" />-->
+ <!--<parameter name="relationship-list.relationship[0].related-link" value="`'/network/connectivities/connectivity/' + $prop.sotn.network-id`" />-->
+ <!--<parameter name="relationship-list.relationship[0].relationship-data[0].relationship-key" value="connectivity.connectivity-id" />-->
+ <!--<parameter name="relationship-list.relationship[0].relationship-data[0].relationship-value" value="`$prop.sotn.network-id`" />-->
+ </save>
+ <save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='vpn-binding:relationship-list'
+ key='vpn-binding.vpn-id = $prop.vpn-binding-otnidx-uuid'
+ force="true" pfx="tmp.AnAI-data">
+ <parameter name="relationship-list.relationship[0].related-to" value="connectivity" />
+ <parameter name="relationship-list.relationship[0].related-link" value="`'/network/connectivities/connectivity/' + $uuid.connectivity-otnidx-uuid`" />
+ <parameter name="relationship-list.relationship[0].relationship-data[0].relationship-key" value="connectivity.connectivity-id" />
+ <parameter name="relationship-list.relationship[0].relationship-data[0].relationship-value" value="`$uuid.connectivity-otnidx-uuid`" />
+ </save>
+ <set>
+ <parameter name='slice-instance-id' value='`$tmp.aai.service-instance.service-instance-id`' />
+ </set>
+ </block>
+ </outcome>
+ </switch>
+ </block>
+ </outcome>
+ </switch>
+ </block>
+ </for>
+ </block>
+ </call>
+ </outcome>
+ <outcome value='true'>
+ <block>
+ <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='generateUUID' >
+ <parameter name="ctx-destination" value="prop.vpn-binding-samedomain-uuid"/>
+ </execute>
+ <set>
+ <parameter name='tmp.sameDomain-src-access-node-id' value='`$param-prefix-domainA[$param-prefix-domainA_length -3]`' />
+ <parameter name='tmp.sameDomain-dst-access-node-id' value='`$param-prefix-domainB[$param-prefix-domainB_length -3]`' />
+ </set>
+ <save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='vpn-binding'
+ key='vpn-binding.vpn-id = $prop.vpn-binding-samedomain-uuid' >
+ <parameter name='vpn-id' value='`$prop.vpn-binding-samedomain-uuid`' />
+ <parameter name='vpn-name' value='`$prop.otn-tunnel-name`' />
+ <!--<parameter name='customer-vpn-id' value='`($idx + 1) * 10`' />-->
+ <parameter name='customer-vpn-id' value='`($maxtpn + $gfp)`' />
+ <!--<parameter name='access-provider-id' value='`$tmp.otninfo[$otnidx].dstPort.dst-access-provider-id`' />-->
+ <parameter name='access-provider-id' value='`$param-prefix-domainA[$param-prefix-domainA_length -9]`' />
+ <!--<parameter name='access-client-id' value='`$tmp.otninfo[$otnidx].dstPort.dst-access-client-id`' />-->
+ <parameter name='access-client-id' value='`$param-prefix-domainA[$param-prefix-domainA_length -7]`' />
+ <!--<parameter name='access-topology-id' value='`$tmp.otninfo[$otnidx].dstPort.dst-access-topology-id`' />-->
+ <parameter name='access-topology-id' value='`$param-prefix-domainA[$param-prefix-domainA_length -5]`' />
+ <!--<parameter name='src-access-node-id' value='`$tmp.otninfo[$otnidx].srcPort.src-access-node-id`' />-->
+ <parameter name='src-access-node-id' value='`$tmp.sameDomain-src-access-node-id`' />
+ <!--<parameter name='src-access-ltp-id' value='`$tmp.otninfo[$otnidx].srcPort.src-tunnel-tp-id`' />-->
+ <!--<parameter name='dst-access-node-id' value='`$tmp.otninfo[$otnidx].dstPort.dst-access-node-id`' />-->
+ <parameter name='dst-access-node-id' value='`$tmp.sameDomain-dst-access-node-id`' />
+ <!--<parameter name='dst-access-ltp-id' value='`$tmp.otninfo[$otnidx].dstPort.dst-tunnel-tp-id`' />-->
+ <parameter name='route-distinguisher' value='`$gfp`' />
+ <parameter name='operational-status' value='Created' />
+ <!--<parameter name='model-customization-id' value='`$network-topology-operation-input.network-information.onap-model-information.model-customization-uuid`' />-->
+ <!--<parameter name='model-invariant-id' value='`$network-topology-operation-input.network-information.onap-model-information.model-invariant-uuid`' />-->
+ <!--<parameter name='model-version-id' value='`$network-topology-operation-input.network-information.onap-model-information.model-uuid`' />-->
+ <parameter name='vpn-region' value='`$prop.sdncRestApi.thirdpartySdnc.domainG.url`' />
+ <parameter name='vpn-description' value='`$prop.sdncRestApi.thirdpartySdnc.domainG.user`' />
+ <parameter name='vpn-platform' value='`$prop.sdncRestApi.thirdpartySdnc.domainG.password`' />
+ <!-- The following line is in lieu of vpn-binding.slice-id (new attribute in latest AAI) -->
+ <parameter name='ops-note' value='`$tmp.aai.service-instance.service-instance-id`' />
+ <outcome value='success'>
+ <block></block>
+ </outcome>
+ </save>
+ <save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='vpn-binding:relationship-list'
+ key='vpn-binding.vpn-id = $prop.vpn-binding-samedomain-uuid'
+ force="true" pfx="tmp.AnAI-data">
+ <parameter name="relationship-list.relationship[0].related-to" value="connectivity" />
+ <parameter name="relationship-list.relationship[0].related-link" value="`'/network/connectivities/connectivity/' + $uuid.connectivity-domainA-uuid`" />
+ <parameter name="relationship-list.relationship[0].relationship-data[0].relationship-key" value="connectivity.connectivity-id" />
+ <parameter name="relationship-list.relationship[0].relationship-data[0].relationship-value" value="`$uuid.connectivity-domainA-uuid`" />
+ </save>
+ </block>
+ </outcome>
+ </switch>
+ <set>
+ <parameter name='domain-A.tunnel-tp-id' value='' />
+ <parameter name='domain-A.node-id' value='' />
+ <parameter name='domain-A.network-id' value="" />
+ <parameter name='domain-A.provider-id' value="" />
+ <parameter name='domain-A.client-id' value="" />
+ <parameter name='domain-A.te-topo-id' value="" />
+ <parameter name='domain-A.network-type' value="" />
+ <parameter name='domain-A.ltpId' value="" />
+ <parameter name='tmp.domain-A.network-id' value="" />
+ <parameter name='tmp.domain-A.ttp-id' value="" />
+ <parameter name='network-route-A' value="" />
+ <!--<parameter name='domain-A.' value="" />-->
+ <parameter name='request-id' value='' />
+ <parameter name='otn-source-node' value='' />
+ <parameter name='otn-dest-node' value='' />
+ <parameter name='bw-odu' value="" />
+ <parameter name='src-ttp-id' value='' />
+ <parameter name='dst-ttp-id' value='' />
+ <parameter name='domain-B.tunnel-tp-id' value='' />
+ <parameter name='domain-B.node-id' value='' />
+ <parameter name='domain-B.network-id' value="" />
+ <parameter name='domain-B.provider-id' value="" />
+ <parameter name='domain-B.client-id' value="" />
+ <parameter name='domain-B.te-topo-id' value="" />
+ <parameter name='domain-B.network-type' value="" />
+ <parameter name='domain-B.ltpId' value="" />
+ <parameter name='tmp.domain-B.network-id' value="" />
+ <parameter name='tmp.domain-B.ttp-id' value="" />
+ <parameter name='network-route-B' value="" />
+ <!--<parameter name='domain-B.' value="" />-->
+ </set>
+ </block>
+ </outcome>
+ </get-resource>
+ </block>
+ </outcome>
+ </switch>
+ </for>
+ </block>
+ </outcome>
+ </switch>
+ </block>
+ </outcome>
+ </get-resource>
+ </block>
+ </outcome>
+ </get-resource>
+ </for>
+ <call module='GENERIC-RESOURCE-API' rpc='p2p-vnf-topology-operation-p2p-activate' mode='sync' ></call>
+ </block>
+ </outcome>
+ </switch>
+ </outcome>
+ <outcome value='not-found'>
+ <return status='failure'>
+ <parameter name='ack-final' value='Y'/>
+ <parameter name="error-code" value="500" />
+ <parameter name="error-message" value="`'An error occurred while querying pnf from AnAI with pnf-name = ' + $prop.l3vpn.pe1_id`" />
+ </return>
+ </outcome>
+ <outcome value='failure'>
+ <return status='failure'>
+ <parameter name='error-code' value='' />
+ <parameter name='error-message' value='' />
+ </return>
+ </outcome>
+ </get-resource>
+ <return status='success'>
+ <parameter name="ack-final-indicator" value="Y" />
+ <parameter name="error-code" value="200" />
+ <parameter name="error-message" value="`$error-message`" />
+ </return>
+ </block>
+ </method>
+</service-logic> \ No newline at end of file
diff --git a/platform-logic/generic-resource-api/src/main/xml/p2p_eline/GENERIC-RESOURCE-API_p2p-vnf-topology-operation-p2p-deactivate.xml b/platform-logic/generic-resource-api/src/main/xml/p2p_eline/GENERIC-RESOURCE-API_p2p-vnf-topology-operation-p2p-deactivate.xml
new file mode 100644
index 00000000..3997add7
--- /dev/null
+++ b/platform-logic/generic-resource-api/src/main/xml/p2p_eline/GENERIC-RESOURCE-API_p2p-vnf-topology-operation-p2p-deactivate.xml
@@ -0,0 +1,262 @@
+<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}'>
+ <method rpc='tsli-vnf-topology-operation-trans-slice-deactivate' mode='sync'>
+ <block atomic="true">
+ <execute plugin='org.onap.ccsdk.sli.plugins.prop.PropertiesNode' method='readProperties' >
+ <parameter name='fileName' value='%SDNC_CONFIG_DIR%/generic-resource-api-dg.properties' />
+ <parameter name='contextPrefix' value='prop' />
+ </execute>
+ <!--<get-resource plugin="org.onap.ccsdk.sli.adaptors.aai.AAIService" -->
+ <!-- resource="service-instance"-->
+ <!-- key='service-instance.service-instance-id = $service-data.vnfs.vnf[$tmp.vidx].vnf-data.service-information.service-instance-id-->
+ <!-- AND customer.global-customer-id = $service-data.vnfs.vnf[$tmp.vidx].vnf-data.service-information.global-customer-id -->
+ <!-- AND service-subscription.service-type = $service-data.vnfs.vnf[$tmp.vidx].vnf-data.service-information.subscription-service-type'-->
+ <!-- local-only="false"-->
+ <!-- force="true" pfx="tmp.aai.service-instance">-->
+ <get-resource plugin="org.onap.ccsdk.sli.adaptors.aai.AAIService"
+ resource="service-instance"
+ key='service-instance.service-instance-id = $vnf-topology-operation-input.service-information.service-instance-id
+ AND customer.global-customer-id = $vnf-topology-operation-input.service-information.global-customer-id
+ AND service-subscription.service-type = $vnf-topology-operation-input.service-information.subscription-service-type'
+ local-only="false"
+ force="true" pfx="tmp.aai.service-instance">
+ <!--vnf-topology-operation-input.service-information.service-instance-id-->
+ <outcome value='success'>
+ <for index='rel-index' start='0' end='`$tmp.aai.service-instance.relationship-list.relationship_length`' >
+ <switch test='`$tmp.aai.service-instance.relationship-list.relationship[$rel-index].related-to`'>
+ <outcome value='connectivity'>
+ <get-resource plugin="org.onap.ccsdk.sli.adaptors.aai.AAIService"
+ resource="connectivity"
+ key="connectivity.connectivity-id = $tmp.aai.service-instance.relationship-list.relationship[$rel-index].relationship-data[0].relationship-value"
+ local-only="false"
+ pfx="tmp.aai.connectivity" >
+ <outcome value='success'>
+ <for silentFailure='true' index='cridx' start='0' end='`$tmp.aai.connectivity.relationship-list.relationship_length`' >
+ <switch test='`$tmp.aai.connectivity.relationship-list.relationship[$cridx].related-to`'>
+ <outcome value='vpn-binding'>
+ <block atomic="true">
+ <get-resource plugin="org.onap.ccsdk.sli.adaptors.aai.AAIService"
+ resource="vpn-binding"
+ key="vpn-binding.vpn-id = $tmp.aai.connectivity.relationship-list.relationship[$cridx].relationship-data[0].relationship-value"
+ local-only="false"
+ pfx="tmp.aai.vpn-binding" >
+ <outcome value='success'>
+ <block atomic="true">
+ <set>
+ <parameter name='tmp.domain.pnf-name' value="`'networkId-providerId-' +
+ $tmp.aai.vpn-binding.access-provider-id + '-clientId-' +
+ $tmp.aai.vpn-binding.access-client-id + '-topologyId-' +
+ $tmp.aai.vpn-binding.access-topology-id + '-nodeId-' +
+ $tmp.aai.vpn-binding.src-access-node-id`" />
+ </set>
+ <get-resource plugin="org.onap.ccsdk.sli.adaptors.aai.AAIService"
+ resource="pnf"
+ key="pnf.pnf-name = $tmp.domain.pnf-name"
+ pfx='tmp.aai.source-pnf' local-only='false' >
+ <!--AND depth = '0'"-->
+ <outcome value='success'>
+ <block>
+ <for silentFailure='true' index='spvidx' start='0' end='`$tmp.aai.source-pnf.relationship-list.relationship_length`' >
+ <switch test='`$tmp.aai.source-pnf.relationship-list.relationship[$spvidx].related-to`'>
+ <outcome value='esr-thirdparty-sdnc'>
+ <block atomic="true">
+ <set>
+ <parameter name='tmp.domain.esr-thirdparty-id' value="`$tmp.aai.source-pnf.relationship-list.relationship[$spvidx].relationship-data[0].relationship-value`" />
+ </set>
+ <get-resource plugin="org.onap.ccsdk.sli.adaptors.aai.AAIService"
+ resource="esr-thirdparty-sdnc"
+ key="esr-thirdparty-sdnc.thirdparty-sdnc-id = $tmp.domain.esr-thirdparty-id AND
+ depth = '1'"
+ pfx='tmp.aai.domain.esr-thirdparty-sdnc' local-only='false' >
+ <outcome value='success'>
+ <block>
+ <set>
+ <parameter name='prop.sdncRestApi.thirdpartySdnc.domain.url' value="`$tmp.aai.domain.esr-thirdparty-sdnc.esr-system-info-list.esr-system-info[0].service-url`" />
+ <parameter name='prop.sdncRestApi.thirdpartySdnc.domain.user' value="`$tmp.aai.domain.esr-thirdparty-sdnc.esr-system-info-list.esr-system-info[0].user-name`" />
+ <parameter name='prop.sdncRestApi.thirdpartySdnc.domain.password' value="`$tmp.aai.domain.esr-thirdparty-sdnc.esr-system-info-list.esr-system-info[0].password`" />
+ <!--<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >-->
+ <!--<parameter name="restapiUrl" value="`$prop.sdncRestApi.thirdpartySdnc.url + '/restconf/data/ietf-network:networks'`" />-->
+ <!--<parameter name="restapiUser" value="`$prop.sdncRestApi.thirdpartySdnc.user`" />-->
+ <!--<parameter name="restapiPassword" value="`$prop.sdncRestApi.thirdpartySdnc.password`" />-->
+ <!--<parameter name="format" value="json"/>-->
+ <!--<parameter name="httpMethod" value="get"/>-->
+ <!--<parameter name="responsePrefix" value="topology"/>-->
+ <!--<parameter name="trustStoreFileName" value="/opt/onap/sdnc/data/stores/truststore.onap.client.jks"/>-->
+ <!--<parameter name="trustStorePassword" value="adminadmin"/>-->
+ <!--<parameter name="keyStoreFileName" value="/opt/onap/sdnc/data/stores/sdnc.p12"/>-->
+ <!--<parameter name="keyStorePassword" value="adminadmin"/>-->
+ </set>
+ </block>
+ </outcome>
+ <outcome value='not-found'>
+ <return status='failure'>
+ <parameter name='ack-final' value='Y'/>
+ <parameter name="error-code" value="500" />
+ <parameter name="error-message" value="`'An error occurred while querying pnf from AnAI with pnf-name = ' + $prop.connection-attachement.access-node-id`" />
+ </return>
+ </outcome>
+ <outcome value='Other'>
+ <return status='failure'>
+ <parameter name='ack-final' value='Y'/>
+ <parameter name="error-code" value="500" />
+ <parameter name="error-message" value="`'Unexpected error occurred while querying pnf from AnAI with pnf-name = ' + $prop.connection-attachement.access-node-id`" />
+ </return>
+ </outcome>
+ </get-resource>
+ <break/>
+ </block>
+ </outcome>
+ </switch>
+ </for>
+ </block>
+ </outcome>
+ <outcome value='not-found'>
+ <return status='failure'>
+ <parameter name='ack-final' value='Y'/>
+ <parameter name="error-code" value="500" />
+ <parameter name="error-message" value="`'An error occurred while querying pnf from AnAI with pnf-name = ' + $prop.connection-attachement.access-node-id`" />
+ </return>
+ </outcome>
+ <outcome value='Other'>
+ <return status='failure'>
+ <parameter name='ack-final' value='Y'/>
+ <parameter name="error-code" value="500" />
+ <parameter name="error-message" value="`'Unexpected error occurred while querying pnf from AnAI with pnf-name = ' + $prop.connection-attachement.access-node-id`" />
+ </return>
+ </outcome>
+ </get-resource>
+ <execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >
+ <!--<parameter name="templateFileName" value="`$prop.restapi.templateDir + '/' + $prop.restapi.ts-otn-src-domain-creation.templatefile`" />-->
+ <parameter name="restapiUrl" value="`$prop.sdncRestApi.thirdpartySdnc.domain.url + '/restconf/data/ietf-te:te/tunnels/tunnel=' + $tmp.aai.vpn-binding.vpn-name`" />
+ <parameter name="restapiUser" value="`$prop.sdncRestApi.thirdpartySdnc.domain.user`" />
+ <parameter name="restapiPassword" value="`$prop.sdncRestApi.thirdpartySdnc.domain.password`" />
+ <parameter name="format" value="json"/>
+ <parameter name="httpMethod" value="delete"/>
+ <parameter name="responsePrefix" value="otn-oof"/>
+ <parameter name="trustStoreFileName" value="/opt/onap/sdnc/data/stores/truststore.onap.client.jks"/>
+ <parameter name="trustStorePassword" value="adminadmin"/>
+ <parameter name="keyStoreFileName" value="/opt/onap/sdnc/data/stores/sdnc.p12"/>
+ <parameter name="keyStorePassword" value="adminadmin"/>
+ <parameter name='customHttpHeaders' value="`'X-ACCESS-TOKEN=' + $prop.sdncRestApi.token_id`" />
+ <outcome value='failure'>
+ <return status='failure'>
+ <parameter name='ack-final' value='Y'/>
+ <parameter name="error-code" value="500" />
+ <parameter name="error-message" value="Error executing delete OTN tunnel rest api" />
+ </return>
+ </outcome>
+ <outcome value='success'>
+ <block atomic="true"></block>
+ </outcome>
+ </execute>
+ <switch test='`$tmp.aai.connectivity.etht-svc-name`'>
+ <outcome value='Other'>
+ <execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >
+ <parameter name="restapiUrl" value="`$prop.sdncRestApi.thirdpartySdnc.domain.url + '/restconf/data/ietf-eth-tran-service:etht-svc/etht-svc-instances=' + $tmp.aai.connectivity.etht-svc-name`" />
+ <!--<parameter name="restapiUrl" value="`$prop.restapi.connection-oof-url`" />-->
+ <!--<parameter name="templateFileName" value="`$prop.restapi.templateDir + '/sotn-ethernet-service.json'`" />-->
+ <parameter name="restapiUser" value="`$prop.sdncRestApi.thirdpartySdnc.domain.user`" />
+ <parameter name="restapiPassword" value="`$prop.sdncRestApi.thirdpartySdnc.domain.password`" />
+ <parameter name="format" value="json"/>
+ <parameter name="httpMethod" value="delete"/>
+ <parameter name='dirPath' value="/opt/onap/sdnc/restconfapi/yang" />
+ <parameter name="responsePrefix" value="vpn-result"/>
+ <parameter name="trustStoreFileName" value="/opt/onap/sdnc/data/stores/truststore.onap.client.jks"/>
+ <parameter name="trustStorePassword" value="adminadmin"/>
+ <parameter name="keyStoreFileName" value="/opt/onap/sdnc/data/stores/sdnc.p12"/>
+ <parameter name="keyStorePassword" value="adminadmin"/>
+ <outcome value='failure'>
+ <return status='failure'>
+ <parameter name='ack-final' value='Y'/>
+ <parameter name="error-code" value="500" />
+ <parameter name="error-message" value="Error executing delete ethernet service rest api" />
+ </return>
+ </outcome>
+ <outcome value='success'>
+ <block atomic="true">
+ <update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='vpn-binding'
+ key='vpn-binding.vpn-id = $tmp.aai.vpn-binding.vpn-id' >
+ <parameter name='vpn-id' value='`$tmp.aai.vpn-binding.vpn-id`' />
+ <parameter name='vpn-name' value='`$tmp.aai.vpn-binding.vpn-name`' />
+ <parameter name='operational-status' value='Deactivated' />
+ </update>
+ <update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='connectivity'
+ key='connectivity.connectivity-id = $tmp.aai.connectivity.connectivity-id'>
+ <parameter name='connectivity-id' value='`$tmp.aai.connectivity.connectivity-id`' />
+ <parameter name='operational-status' value='Deactivated' />
+ </update>
+ <update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='service-instance'
+ key='service-instance.service-instance-id = $vnf-topology-operation-input.service-information.service-instance-id
+ AND customer.global-customer-id = $vnf-topology-operation-input.service-information.global-customer-id
+ AND service-subscription.service-type = $vnf-topology-operation-input.service-information.subscription-service-type'>
+ <parameter name='service-instance-id' value='`$tmp.aai.service-instance.service-instance-id`' />
+ <parameter name='orchestration-status' value='Deactivated' />
+ </update>
+ </block>
+ </outcome>
+ </execute>
+ </outcome>
+ <outcome value=''></outcome>
+ </switch>
+ </block>
+ </outcome>
+ <outcome value='not-found'>
+ <return status='failure'>
+ <parameter name='ack-final' value='Y'/>
+ <parameter name="error-code" value="500" />
+ <parameter name="error-message" value="`'An error occurred while querying pnf from AnAI with pnf-name = ' + $prop.l3vpn.pe1_id`" />
+ </return>
+ </outcome>
+ <outcome value='failure'>
+ <return status='failure'>
+ <parameter name='error-code' value='' />
+ <parameter name='error-message' value='' />
+ </return>
+ </outcome>
+ </get-resource>
+ </block>
+ </outcome>
+ </switch>
+ </for>
+ </outcome>
+ <outcome value='not-found'>
+ <return status='failure'>
+ <parameter name='ack-final' value='Y'/>
+ <parameter name="error-code" value="500" />
+ <parameter name="error-message" value="`'An error occurred while querying pnf from AnAI with pnf-name = ' + $prop.l3vpn.pe1_id`" />
+ </return>
+ </outcome>
+ <outcome value='failure'>
+ <return status='failure'>
+ <parameter name='error-code' value='' />
+ <parameter name='error-message' value='' />
+ </return>
+ </outcome>
+ </get-resource>
+ </outcome>
+ </switch>
+ </for>
+ </outcome>
+ <outcome value='not-found'>
+ <return status='failure'>
+ <parameter name='ack-final' value='Y'/>
+ <parameter name="error-code" value="500" />
+ <parameter name="error-message" value="`'An error occurred while querying pnf from AnAI with pnf-name = ' + $prop.l3vpn.pe1_id`" />
+ </return>
+ </outcome>
+ <outcome value='failure'>
+ <return status='failure'>
+ <parameter name='error-code' value='' />
+ <parameter name='error-message' value='' />
+ </return>
+ </outcome>
+ </get-resource>
+ <return status='success'>
+ <parameter name="ack-final-indicator" value="Y" />
+ <parameter name="error-code" value="200" />
+ <parameter name="error-message" value="`$error-message`" />
+ </return>
+ </block>
+ </method>
+</service-logic> \ No newline at end of file
diff --git a/platform-logic/generic-resource-api/src/main/xml/p2p_eline/GENERIC-RESOURCE-API_p2p-vnf-topology-operation-p2p-delete.xml b/platform-logic/generic-resource-api/src/main/xml/p2p_eline/GENERIC-RESOURCE-API_p2p-vnf-topology-operation-p2p-delete.xml
new file mode 100644
index 00000000..7c6e65ff
--- /dev/null
+++ b/platform-logic/generic-resource-api/src/main/xml/p2p_eline/GENERIC-RESOURCE-API_p2p-vnf-topology-operation-p2p-delete.xml
@@ -0,0 +1,249 @@
+<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}'>
+ <method rpc='tsli-vnf-topology-operation-trans-slice-delete' mode='sync'>
+ <block atomic="true">
+ <execute plugin='org.onap.ccsdk.sli.plugins.prop.PropertiesNode' method='readProperties' >
+ <parameter name='fileName' value='%SDNC_CONFIG_DIR%/generic-resource-api-dg.properties' />
+ <parameter name='contextPrefix' value='prop' />
+ </execute>
+ <!--<get-resource plugin="org.onap.ccsdk.sli.adaptors.aai.AAIService" -->
+ <!-- resource="service-instance"-->
+ <!-- key='service-instance.service-instance-id = $service-data.vnfs.vnf[$tmp.vidx].vnf-data.service-information.service-instance-id-->
+ <!-- AND customer.global-customer-id = $service-data.vnfs.vnf[$tmp.vidx].vnf-data.service-information.global-customer-id -->
+ <!-- AND service-subscription.service-type = $service-data.vnfs.vnf[$tmp.vidx].vnf-data.service-information.subscription-service-type'-->
+ <!-- local-only="false"-->
+ <!-- force="true" pfx="tmp.aai.service-instance">-->
+ <get-resource plugin="org.onap.ccsdk.sli.adaptors.aai.AAIService"
+ resource="service-instance"
+ key='service-instance.service-instance-id = $vnf-topology-operation-input.service-information.service-instance-id
+ AND customer.global-customer-id = $vnf-topology-operation-input.service-information.global-customer-id
+ AND service-subscription.service-type = $vnf-topology-operation-input.service-information.subscription-service-type'
+ local-only="false"
+ force="true" pfx="tmp.aai.service-instance">
+ <!--vnf-topology-operation-input.service-information.service-instance-id-->
+ <outcome value='success'>
+ <for index='rel-index' start='0' end='`$tmp.aai.service-instance.relationship-list.relationship_length`' >
+ <switch test='`$tmp.aai.service-instance.relationship-list.relationship[$rel-index].related-to`'>
+ <outcome value='connectivity'>
+ <get-resource plugin="org.onap.ccsdk.sli.adaptors.aai.AAIService"
+ resource="connectivity"
+ key="connectivity.connectivity-id = $tmp.aai.service-instance.relationship-list.relationship[$rel-index].relationship-data[0].relationship-value"
+ local-only="false"
+ pfx="tmp.aai.connectivity" >
+ <outcome value='success'>
+ <for silentFailure='true' index='cridx' start='0' end='`$tmp.aai.connectivity.relationship-list.relationship_length`' >
+ <switch test='`$tmp.aai.connectivity.relationship-list.relationship[$cridx].related-to`'>
+ <outcome value='vpn-binding'>
+ <block atomic="true">
+ <get-resource plugin="org.onap.ccsdk.sli.adaptors.aai.AAIService"
+ resource="vpn-binding"
+ key="vpn-binding.vpn-id = $tmp.aai.connectivity.relationship-list.relationship[$cridx].relationship-data[0].relationship-value"
+ local-only="false"
+ pfx="tmp.aai.vpn-binding" >
+ <outcome value='success'>
+ <block atomic="true">
+ <set>
+ <parameter name='tmp.domain.pnf-name' value="`'networkId-providerId-' +
+ $tmp.aai.vpn-binding.access-provider-id + '-clientId-' +
+ $tmp.aai.vpn-binding.access-client-id + '-topologyId-' +
+ $tmp.aai.vpn-binding.access-topology-id + '-nodeId-' +
+ $tmp.aai.vpn-binding.src-access-node-id`" />
+ </set>
+ <get-resource plugin="org.onap.ccsdk.sli.adaptors.aai.AAIService"
+ resource="pnf"
+ key="pnf.pnf-name = $tmp.domain.pnf-name"
+ pfx='tmp.aai.source-pnf' local-only='false' >
+ <!--AND depth = '0'"-->
+ <outcome value='success'>
+ <block>
+ <for silentFailure='true' index='spvidx' start='0' end='`$tmp.aai.source-pnf.relationship-list.relationship_length`' >
+ <switch test='`$tmp.aai.source-pnf.relationship-list.relationship[$spvidx].related-to`'>
+ <outcome value='esr-thirdparty-sdnc'>
+ <block atomic="true">
+ <set>
+ <parameter name='tmp.domain.esr-thirdparty-id' value="`$tmp.aai.source-pnf.relationship-list.relationship[$spvidx].relationship-data[0].relationship-value`" />
+ </set>
+ <get-resource plugin="org.onap.ccsdk.sli.adaptors.aai.AAIService"
+ resource="esr-thirdparty-sdnc"
+ key="esr-thirdparty-sdnc.thirdparty-sdnc-id = $tmp.domain.esr-thirdparty-id AND
+ depth = '1'"
+ pfx='tmp.aai.domain.esr-thirdparty-sdnc' local-only='false' >
+ <outcome value='success'>
+ <block>
+ <set>
+ <parameter name='prop.sdncRestApi.thirdpartySdnc.domain.url' value="`$tmp.aai.domain.esr-thirdparty-sdnc.esr-system-info-list.esr-system-info[0].service-url`" />
+ <parameter name='prop.sdncRestApi.thirdpartySdnc.domain.user' value="`$tmp.aai.domain.esr-thirdparty-sdnc.esr-system-info-list.esr-system-info[0].user-name`" />
+ <parameter name='prop.sdncRestApi.thirdpartySdnc.domain.password' value="`$tmp.aai.domain.esr-thirdparty-sdnc.esr-system-info-list.esr-system-info[0].password`" />
+ <!--<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >-->
+ <!--<parameter name="restapiUrl" value="`$prop.sdncRestApi.thirdpartySdnc.url + '/restconf/data/ietf-network:networks'`" />-->
+ <!--<parameter name="restapiUser" value="`$prop.sdncRestApi.thirdpartySdnc.user`" />-->
+ <!--<parameter name="restapiPassword" value="`$prop.sdncRestApi.thirdpartySdnc.password`" />-->
+ <!--<parameter name="format" value="json"/>-->
+ <!--<parameter name="httpMethod" value="get"/>-->
+ <!--<parameter name="responsePrefix" value="topology"/>-->
+ <!--<parameter name="trustStoreFileName" value="/opt/onap/sdnc/data/stores/truststore.onap.client.jks"/>-->
+ <!--<parameter name="trustStorePassword" value="adminadmin"/>-->
+ <!--<parameter name="keyStoreFileName" value="/opt/onap/sdnc/data/stores/sdnc.p12"/>-->
+ <!--<parameter name="keyStorePassword" value="adminadmin"/>-->
+ </set>
+ </block>
+ </outcome>
+ <outcome value='not-found'>
+ <return status='failure'>
+ <parameter name='ack-final' value='Y'/>
+ <parameter name="error-code" value="500" />
+ <parameter name="error-message" value="`'An error occurred while querying pnf from AnAI with pnf-name = ' + $prop.connection-attachement.access-node-id`" />
+ </return>
+ </outcome>
+ <outcome value='Other'>
+ <return status='failure'>
+ <parameter name='ack-final' value='Y'/>
+ <parameter name="error-code" value="500" />
+ <parameter name="error-message" value="`'Unexpected error occurred while querying pnf from AnAI with pnf-name = ' + $prop.connection-attachement.access-node-id`" />
+ </return>
+ </outcome>
+ </get-resource>
+ <break/>
+ </block>
+ </outcome>
+ </switch>
+ </for>
+ </block>
+ </outcome>
+ <outcome value='not-found'>
+ <return status='failure'>
+ <parameter name='ack-final' value='Y'/>
+ <parameter name="error-code" value="500" />
+ <parameter name="error-message" value="`'An error occurred while querying pnf from AnAI with pnf-name = ' + $prop.connection-attachement.access-node-id`" />
+ </return>
+ </outcome>
+ <outcome value='Other'>
+ <return status='failure'>
+ <parameter name='ack-final' value='Y'/>
+ <parameter name="error-code" value="500" />
+ <parameter name="error-message" value="`'Unexpected error occurred while querying pnf from AnAI with pnf-name = ' + $prop.connection-attachement.access-node-id`" />
+ </return>
+ </outcome>
+ </get-resource>
+ <set>
+ <parameter name='slice-instance-id' value='`$tmp.aai.service-instance.service-instance-id`' />
+ </set>
+ <execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >
+ <parameter name="templateFileName" value="`$prop.restapi.templateDir + '/' + $prop.restapi.transport-slice-creation.templatefile`" />
+ <parameter name="restapiUrl" value="`$prop.sdncRestApi.thirdpartySdnc.domain.url + '/restconf/operations/ietf-optical-slice:deallocate-optical-slice'`" />
+ <parameter name="restapiUser" value="`$prop.sdncRestApi.thirdpartySdnc.domain.user`" />
+ <parameter name="restapiPassword" value="`$prop.sdncRestApi.thirdpartySdnc.domain.password`" />
+ <parameter name="format" value="json"/>
+ <parameter name="httpMethod" value="post"/>
+ <parameter name="responsePrefix" value="otn-oof"/>
+ <parameter name="trustStoreFileName" value="/opt/onap/sdnc/data/stores/truststore.onap.client.jks"/>
+ <parameter name="trustStorePassword" value="adminadmin"/>
+ <parameter name="keyStoreFileName" value="/opt/onap/sdnc/data/stores/sdnc.p12"/>
+ <parameter name="keyStorePassword" value="adminadmin"/>
+ <parameter name='customHttpHeaders' value="`'X-ACCESS-TOKEN=' + $prop.sdncRestApi.token_id`" />
+ <outcome value='failure'>
+ <return status='failure'>
+ <parameter name='ack-final' value='Y'/>
+ <parameter name="error-code" value="500" />
+ <parameter name="error-message" value="Error executing deallocate transport slice rest api" />
+ </return>
+ </outcome>
+ <outcome value='success'>
+ <block atomic="true"></block>
+ </outcome>
+ </execute>
+ <switch test='`$tmp.aai.connectivity.etht-svc-name`'>
+ <outcome value='Other'>
+ <execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >
+ <!--<parameter name="templateFileName" value="`$prop.restapi.templateDir + '/' + $prop.restapi.ts-coloring-uni-port.templatefile`" />-->
+ <parameter name="restapiUrl" value="`$prop.sdncRestApi.thirdpartySdnc.domain.url + '/restconf/data/ietf-network:networks/network=networkId-providerId-' + $tmp.aai.connectivity.access-provider-id + '-clientId-' + $tmp.aai.connectivity.access-client-id + '-topologyId-' + $tmp.aai.connectivity.access-topology-id + '/node=' + $tmp.aai.connectivity.access-node-id + '/ietf-network-topology:termination-point=' + $tmp.aai.connectivity.access-ltp-id + '/ietf-te-topology:te/ietf-optical-slice:slice-id-list=' + $slice-instance-id `" />
+ <parameter name="restapiUser" value="`$prop.sdncRestApi.thirdpartySdnc.domain.user`" />
+ <parameter name="restapiPassword" value="`$prop.sdncRestApi.thirdpartySdnc.domain.password`" />
+ <parameter name="format" value="json"/>
+ <parameter name="httpMethod" value="delete"/>
+ <parameter name="responsePrefix" value="otn-oof"/>
+ <parameter name="trustStoreFileName" value="/opt/onap/sdnc/data/stores/truststore.onap.client.jks"/>
+ <parameter name="trustStorePassword" value="adminadmin"/>
+ <parameter name="keyStoreFileName" value="/opt/onap/sdnc/data/stores/sdnc.p12"/>
+ <parameter name="keyStorePassword" value="adminadmin"/>
+ <parameter name='customHttpHeaders' value="`'X-ACCESS-TOKEN=' + $prop.sdncRestApi.token_id`" />
+ <outcome value='failure'>
+ <return status='failure'>
+ <parameter name='ack-final' value='Y'/>
+ <parameter name="error-code" value="500" />
+ <parameter name="error-message" value="Error executing decoloring UNI rest api" />
+ </return>
+ </outcome>
+ <outcome value='success'>
+ <block></block>
+ </outcome>
+ </execute>
+ </outcome>
+ <outcome value=''></outcome>
+ </switch>
+ <delete plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='connectivity'
+ key='connectivity.connectivity-id = $tmp.aai.connectivity.connectivity-id'></delete>
+ <delete plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='vpn-binding'
+ key='vpn-binding.vpn-id = $tmp.aai.vpn-binding.vpn-id' ></delete>
+ </block>
+ </outcome>
+ <outcome value='not-found'>
+ <return status='failure'>
+ <parameter name='ack-final' value='Y'/>
+ <parameter name="error-code" value="500" />
+ <parameter name="error-message" value="`'An error occurred while querying pnf from AnAI with pnf-name = ' + $prop.l3vpn.pe1_id`" />
+ </return>
+ </outcome>
+ <outcome value='failure'>
+ <return status='failure'>
+ <parameter name='error-code' value='' />
+ <parameter name='error-message' value='' />
+ </return>
+ </outcome>
+ </get-resource>
+ </block>
+ </outcome>
+ </switch>
+ </for>
+ </outcome>
+ <outcome value='not-found'>
+ <return status='failure'>
+ <parameter name='ack-final' value='Y'/>
+ <parameter name="error-code" value="500" />
+ <parameter name="error-message" value="`'An error occurred while querying pnf from AnAI with pnf-name = ' + $prop.l3vpn.pe1_id`" />
+ </return>
+ </outcome>
+ <outcome value='failure'>
+ <return status='failure'>
+ <parameter name='error-code' value='' />
+ <parameter name='error-message' value='' />
+ </return>
+ </outcome>
+ </get-resource>
+ </outcome>
+ </switch>
+ </for>
+ </outcome>
+ <outcome value='not-found'>
+ <return status='failure'>
+ <parameter name='ack-final' value='Y'/>
+ <parameter name="error-code" value="500" />
+ <parameter name="error-message" value="`'An error occurred while querying pnf from AnAI with pnf-name = ' + $prop.l3vpn.pe1_id`" />
+ </return>
+ </outcome>
+ <outcome value='failure'>
+ <return status='failure'>
+ <parameter name='error-code' value='' />
+ <parameter name='error-message' value='' />
+ </return>
+ </outcome>
+ </get-resource>
+ <return status='success'>
+ <parameter name="ack-final-indicator" value="Y" />
+ <parameter name="error-code" value="200" />
+ <parameter name="error-message" value="`$error-message`" />
+ </return>
+ </block>
+ </method>
+</service-logic> \ No newline at end of file
diff --git a/platform-logic/generic-resource-api/src/main/xml/p2p_eline/GENERIC-RESOURCE-API_p2p-vnf-topology-operation-p2p-modify.xml b/platform-logic/generic-resource-api/src/main/xml/p2p_eline/GENERIC-RESOURCE-API_p2p-vnf-topology-operation-p2p-modify.xml
new file mode 100644
index 00000000..bc0505d4
--- /dev/null
+++ b/platform-logic/generic-resource-api/src/main/xml/p2p_eline/GENERIC-RESOURCE-API_p2p-vnf-topology-operation-p2p-modify.xml
@@ -0,0 +1,1425 @@
+<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}'>
+ <method rpc='tsli-vnf-topology-operation-trans-slice-modify' mode='sync'>
+ <block atomic="true">
+ <execute plugin='org.onap.ccsdk.sli.plugins.prop.PropertiesNode' method='readProperties' >
+ <parameter name='fileName' value='%SDNC_CONFIG_DIR%/generic-resource-api-dg.properties' />
+ <parameter name='contextPrefix' value='prop' />
+ </execute>
+ <!--<get-resource plugin="org.onap.ccsdk.sli.adaptors.aai.AAIService" -->
+ <!-- resource="service-instance"-->
+ <!-- key='service-instance.service-instance-id = $service-data.vnfs.vnf[$vnf-index].vnf-data.service-information.service-instance-id-->
+ <!-- AND customer.global-customer-id = $service-data.vnfs.vnf[$vnf-index].vnf-data.service-information.global-customer-id -->
+ <!-- AND service-subscription.service-type = $service-data.vnfs.vnf[$vnf-index].vnf-data.service-information.subscription-service-type'-->
+ <!-- local-only="false"-->
+ <!-- force="true" pfx="tmp.aai.service-instance">-->
+ <get-resource plugin="org.onap.ccsdk.sli.adaptors.aai.AAIService"
+ resource="service-instance"
+ key='service-instance.service-instance-id = $vnf-topology-operation-input.service-information.service-instance-id
+ AND customer.global-customer-id = $vnf-topology-operation-input.service-information.global-customer-id
+ AND service-subscription.service-type = $vnf-topology-operation-input.service-information.subscription-service-type'
+ local-only="false"
+ force="true" pfx="tmp.aai.service-instance">
+ <!--<get-resource plugin="org.onap.ccsdk.sli.adaptors.aai.AAIService" -->
+ <!-- resource="service-instance"-->
+ <!-- key='service-instance.service-instance-id = $service-data.service-information.service-instance-id-->
+ <!-- AND customer.global-customer-id = $service-data.vnfs.vnf[$vnf-index].vnf-data.service-information.global-customer-id -->
+ <!-- AND service-subscription.service-type = $service-data.vnfs.vnf[$vnf-index].vnf-data.service-information.subscription-service-type'-->
+ <!-- local-only="false"-->
+ <!-- force="true" pfx="tmp.aai.service-instance">-->
+ <outcome value='success'>
+ <switch test='`$tmp.aai.service-instance.allotted-resources.allotted-resource_length != 0`'>
+ <outcome value='false'></outcome>
+ <outcome value='true'>
+ <block>
+ <get-resource plugin="org.onap.ccsdk.sli.adaptors.aai.AAIService"
+ resource="pnfs"
+ key="selflink = 'https://aai.onap:8443/aai/v25/network/pnfs?depth=0' depth = 0"
+ local-only="false"
+ pfx="ccsdkTopopnfs" ></get-resource>
+ <get-resource plugin="org.onap.ccsdk.sli.adaptors.aai.AAIService"
+ resource="logical-links"
+ key="selflink = 'https://aai.onap:8443/aai/v25/network/logical-links?depth=0'"
+ local-only="false"
+ pfx="ccsdkTopologicalLinks" ></get-resource>
+ <set>
+ <parameter name='tmp.arr' value='' />
+ <parameter name='tmp.arridx' value='0' />
+ <parameter name='tmp.arr_length' value='0' />
+ <parameter name='otn-tunnel-slice' value='' />
+ <parameter name='otn-tunnel-slice_length' value='0' />
+ <!--<parameter name='tmp.slicevpns' value='' />-->
+ <!--<parameter name='tmp.slicevpns_length' value='0' />-->
+ <!--<parameter name='tmp.slicevpnuuids' value='' />-->
+ <!--<parameter name='tmp.slicevpnuuids.' value='' />-->
+ <parameter name='bwModified' value='false' />
+ </set>
+ <for index='aridx' start='0' end='`$tmp.aai.service-instance.allotted-resources.allotted-resource_length`' >
+ <set>
+ <parameter name='allotted-resource-id' value="`$tmp.aai.service-instance.allotted-resources.allotted-resource[$aridx].id`" />
+ </set>
+ <!--<get-resource plugin="org.onap.ccsdk.sli.adaptors.aai.AAIService" -->
+ <!-- resource="allotted-resource"-->
+ <!-- key='service-instance.service-instance-id = $service-data.vnfs.vnf[$vnf-index].vnf-data.service-information.service-instance-id-->
+ <!-- AND customer.global-customer-id = $service-data.vnfs.vnf[$vnf-index].vnf-data.service-information.global-customer-id -->
+ <!-- AND service-subscription.service-type = $service-data.vnfs.vnf[$vnf-index].vnf-data.service-information.subscription-service-type-->
+ <!-- AND allotted-resource.id = $allotted-resource-id'-->
+ <!-- local-only="false"-->
+ <!-- force="true" pfx="tmp.aai.allotted-resource">-->
+ <get-resource plugin="org.onap.ccsdk.sli.adaptors.aai.AAIService"
+ resource="allotted-resource"
+ key='service-instance.service-instance-id = $vnf-topology-operation-input.service-information.service-instance-id
+ AND customer.global-customer-id = $vnf-topology-operation-input.service-information.global-customer-id
+ AND service-subscription.service-type = $vnf-topology-operation-input.service-information.subscription-service-type
+ AND allotted-resource.id = $allotted-resource-id'
+ local-only="false"
+ force="true" pfx="tmp.aai.allotted-resource">
+ <outcome value='not-found'>
+ <return status='failure'>
+ <parameter name='ack-final' value='Y'/>
+ <parameter name="error-code" value="500" />
+ <parameter name="error-message" value="`'An error occurred while querying pnf from AnAI with pnf-name = ' + $prop.l3vpn.pe1_id`" />
+ </return>
+ </outcome>
+ <outcome value='failure'>
+ <return status='failure'>
+ <parameter name='error-code' value='' />
+ <parameter name='error-message' value='' />
+ </return>
+ </outcome>
+ <outcome value='success'>
+ <block atomic="true">
+ <get-resource plugin="org.onap.ccsdk.sli.adaptors.aai.AAIService"
+ resource="allotted-resource:relationship-list"
+ key='service-instance.service-instance-id = $vnf-topology-operation-input.service-information.service-instance-id
+ AND customer.global-customer-id = $vnf-topology-operation-input.service-information.global-customer-id
+ AND service-subscription.service-type = $vnf-topology-operation-input.service-information.subscription-service-type
+ AND allotted-resource.id = $allotted-resource-id'
+ local-only="false"
+ force="true" pfx="tmp.aai.allotted-resource.relationship-list">
+ <outcome value='not-found'>
+ <return status='failure'>
+ <parameter name='ack-final' value='Y'/>
+ <parameter name="error-code" value="500" />
+ <parameter name="error-message" value="`'An error occurred while querying pnf from AnAI with pnf-name = ' + $prop.l3vpn.pe1_id`" />
+ </return>
+ </outcome>
+ <outcome value='failure'>
+ <return status='failure'>
+ <parameter name='error-code' value='' />
+ <parameter name='error-message' value='' />
+ </return>
+ </outcome>
+ <outcome value='success'>
+ <block atomic="true">
+ <switch test='`$tmp.aai.allotted-resource.relationship-list.relationship_length != 0`'>
+ <outcome value='false'></outcome>
+ <outcome value='true'>
+ <block atomic="true">
+ <for index='idx' start='0' end='`$tmp.aai.allotted-resource.relationship-list.relationship_length`' >
+ <switch test='`$tmp.aai.allotted-resource.relationship-list.relationship[$idx].related-to`'>
+ <outcome value='network-policy'>
+ <block atomic="true">
+ <set>
+ <parameter name='network-policy-id' value="`$tmp.aai.allotted-resource.relationship-list.relationship[$idx].relationship-data[0].relationship-value`" />
+ </set>
+ <get-resource plugin="org.onap.ccsdk.sli.adaptors.aai.AAIService"
+ resource="network-policy"
+ key='network-policy.network-policy-id = $network-policy-id'
+ local-only="false"
+ force="true" pfx="tmp.aai.network-policy">
+ <outcome value='not-found'>
+ <return status='failure'>
+ <parameter name='ack-final' value='Y'/>
+ <parameter name="error-code" value="500" />
+ <parameter name="error-message" value="`'An error occurred while querying pnf from AnAI with pnf-name = ' + $prop.l3vpn.pe1_id`" />
+ </return>
+ </outcome>
+ <outcome value='failure'>
+ <return status='failure'>
+ <parameter name='error-code' value='' />
+ <parameter name='error-message' value='' />
+ </return>
+ </outcome>
+ <outcome value='success'>
+ <block>
+ <set>
+ <parameter name='maximum-bandwidth' value="`$tmp.aai.network-policy.max-bandwidth`" />
+ <parameter name='route-distinguisher' value='`$maximum-bandwidth /1000 *4 /5 +1`' />
+ </set>
+ <set>
+ <parameter name='gfp' value='`$maximum-bandwidth /1000 *4 /5 +1`' />
+ </set>
+ </block>
+ </outcome>
+ </get-resource>
+ </block>
+ </outcome>
+ </switch>
+ </for>
+ <for index='idx' start='0' end='`$tmp.aai.allotted-resource.relationship-list.relationship_length`' >
+ <switch test='`$tmp.aai.allotted-resource.relationship-list.relationship[$idx].related-to`'>
+ <outcome value='logical-link'>
+ <block atomic="true">
+ <set>
+ <parameter name='logical-link-name' value="`$tmp.aai.allotted-resource.relationship-list.relationship[$idx].relationship-data[0].relationship-value`" />
+ <parameter name='currLinkIsFound' value="false" />
+ </set>
+ <get-resource plugin="org.onap.ccsdk.sli.adaptors.aai.AAIService"
+ resource="logical-link"
+ key='logical-link.link-name = $logical-link-name'
+ local-only="false"
+ force="true" pfx="tmp.aai.logical-link">
+ <outcome value='not-found'>
+ <return status='failure'>
+ <parameter name='ack-final' value='Y'/>
+ <parameter name="error-code" value="500" />
+ <parameter name="error-message" value="`'An error occurred while querying pnf from AnAI with pnf-name = ' + $prop.l3vpn.pe1_id`" />
+ </return>
+ </outcome>
+ <outcome value='failure'>
+ <return status='failure'>
+ <parameter name='error-code' value='' />
+ <parameter name='error-message' value='' />
+ </return>
+ </outcome>
+ <outcome value='success'>
+ <block atomic='true'>
+ <for index='rel-index' start='0' end='`$tmp.aai.service-instance.relationship-list.relationship_length`' >
+ <switch test='`$tmp.aai.service-instance.relationship-list.relationship[$rel-index].related-to`'>
+ <outcome value='connectivity'>
+ <block atomic="true">
+ <set>
+ <parameter name='tmp.aai.connectivity.' value='' />
+ </set>
+ <get-resource plugin="org.onap.ccsdk.sli.adaptors.aai.AAIService"
+ resource="connectivity"
+ key="connectivity.connectivity-id = $tmp.aai.service-instance.relationship-list.relationship[$rel-index].relationship-data[0].relationship-value"
+ local-only="false"
+ pfx="tmp.aai.connectivity" >
+ <outcome value='success'>
+ <block atomic="true">
+ <switch test='`$tmp.aai.logical-link.link-id == $tmp.aai.connectivity.etht-svc-name`'>
+ <outcome value='true'>
+ <block atomic="true">
+ <set>
+ <parameter name='currLinkIsFound' value="true" />
+ </set>
+ </block>
+ </outcome>
+ <outcome value='false'></outcome>
+ </switch>
+ <switch test='`$tmp.aai.connectivity.bandwidth-profile-name == $gfp`'>
+ <outcome value='true'></outcome>
+ <outcome value='false'>
+ <block atomic="true">
+ <set>
+ <parameter name='bwModified' value="true" />
+ </set>
+ <for silentFailure='true' index='cridx' start='0' end='`$tmp.aai.connectivity.relationship-list.relationship_length`' >
+ <switch test='`$tmp.aai.connectivity.relationship-list.relationship[$cridx].related-to`'>
+ <outcome value='vpn-binding'>
+ <block atomic="true">
+ <set>
+ <parameter name='tmp.aai.vpn-binding.' value='' />
+ </set>
+ <get-resource plugin="org.onap.ccsdk.sli.adaptors.aai.AAIService"
+ resource="vpn-binding"
+ key="vpn-binding.vpn-id = $tmp.aai.connectivity.relationship-list.relationship[$cridx].relationship-data[0].relationship-value"
+ local-only="false"
+ pfx="tmp.aai.vpn-binding" >
+ <outcome value='success'>
+ <block atomic="true">
+ <update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='vpn-binding'
+ key='vpn-binding.vpn-id = $tmp.aai.vpn-binding.vpn-id' >
+ <parameter name='vpn-id' value='`$tmp.aai.vpn-binding.vpn-id`' />
+ <parameter name='vpn-name' value='`$tmp.aai.vpn-binding.vpn-name`' />
+ <parameter name='route-distinguisher' value='`$gfp`' />
+ <parameter name='operational-status' value='Modified' />
+ </update>
+ <update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='connectivity'
+ key='connectivity.connectivity-id = $tmp.aai.connectivity.connectivity-id'>
+ <parameter name='connectivity-id' value='`$tmp.aai.connectivity.connectivity-id`' />
+ <parameter name='operational-status' value='Modified' />
+ <parameter name='bandwidth-profile-name' value='`$gfp`' />
+ <parameter name='cir' value='`$gfp *1000000`' />
+ <parameter name='eir' value='`$gfp *1000000`' />
+ </update>
+ </block>
+ </outcome>
+ <outcome value='not-found'>
+ <return status='failure'>
+ <parameter name='ack-final' value='Y'/>
+ <parameter name="error-code" value="500" />
+ <parameter name="error-message" value="`'An error occurred while querying pnf from AnAI with pnf-name = ' + $prop.l3vpn.pe1_id`" />
+ </return>
+ </outcome>
+ <outcome value='failure'>
+ <return status='failure'>
+ <parameter name='error-code' value='' />
+ <parameter name='error-message' value='' />
+ </return>
+ </outcome>
+ </get-resource>
+ </block>
+ </outcome>
+ </switch>
+ </for>
+ </block>
+ </outcome>
+ </switch>
+ </block>
+ </outcome>
+ <outcome value='not-found'>
+ <return status='failure'>
+ <parameter name='ack-final' value='Y'/>
+ <parameter name="error-code" value="500" />
+ <parameter name="error-message" value="`'An error occurred while querying pnf from AnAI with pnf-name = ' + $prop.l3vpn.pe1_id`" />
+ </return>
+ </outcome>
+ <outcome value='failure'>
+ <return status='failure'>
+ <parameter name='error-code' value='' />
+ <parameter name='error-message' value='' />
+ </return>
+ </outcome>
+ </get-resource>
+ </block>
+ </outcome>
+ </switch>
+ </for>
+ </block>
+ </outcome>
+ </get-resource>
+ <switch test='`$currLinkIsFound`'>
+ <outcome value='true'>
+ <block atomic="true"></block>
+ </outcome>
+ <outcome value='false'>
+ <block>
+ <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='generateUUID' >
+ <parameter name="ctx-destination" value="prop.otn-tunnel-name"/>
+ </execute>
+ <set>
+ <!--<parameter name='prop.ethernet-service-name' value="`$tmp.aai.logical-link.link-name`" />-->
+ <parameter name='prop.ethernet-service-name' value="`$tmp.aai.logical-link.link-id`" />
+ </set>
+ <set>
+ <parameter name='network-route-A' value="`$tmp.aai.logical-link.link-name`" />
+ <!--<parameter name='network-route-A' value="`$tmp.aai.logical-link.link-id`" />-->
+ </set>
+ <set>
+ <parameter name='network-route-B' value="`$tmp.aai.logical-link.link-name2`" />
+ </set>
+ <get-resource plugin="org.onap.ccsdk.sli.adaptors.aai.AAIService"
+ resource="network-route"
+ key='network-route.route-id = $network-route-A'
+ local-only="false"
+ force="true" pfx="tmp.aai.network-route-A">
+ <outcome value='not-found'>
+ <return status='failure'>
+ <parameter name='ack-final' value='Y'/>
+ <parameter name="error-code" value="500" />
+ <parameter name="error-message" value="`'An error occurred while querying pnf from AnAI with pnf-name = ' + $prop.l3vpn.pe1_id`" />
+ </return>
+ </outcome>
+ <outcome value='failure'>
+ <return status='failure'>
+ <parameter name='error-code' value='' />
+ <parameter name='error-message' value='' />
+ </return>
+ </outcome>
+ <outcome value='success'>
+ <block atomic="true">
+ <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='split' >
+ <parameter name="original_string" value='`$tmp.aai.network-route-A.next-hop`'/>
+ <!--<parameter name="regex" value="[^-]+$"/>-->
+ <parameter name="regex" value="[-]+"/>
+ <parameter name="ctx_memory_result_key" value="param-prefix-domainA-pnfName"/>
+ <outcome value='success'>
+ <block atomic="true">
+ <set>
+ <parameter name='tmp.src.domainA.pnf-name' value="`$param-prefix-domainA-pnfName[0] + '-' +
+ $param-prefix-domainA-pnfName[1] + '-' +
+ $param-prefix-domainA-pnfName[2] + '-' +
+ $param-prefix-domainA-pnfName[3] + '-' +
+ $param-prefix-domainA-pnfName[4] + '-' +
+ $param-prefix-domainA-pnfName[5] + '-' +
+ $param-prefix-domainA-pnfName[6] + '-' +
+ $param-prefix-domainA-pnfName[7] + '-' +
+ $param-prefix-domainA-pnfName[8]`" />
+ </set>
+ <get-resource plugin="org.onap.ccsdk.sli.adaptors.aai.AAIService"
+ resource="pnf"
+ key="pnf.pnf-name = $tmp.src.domainA.pnf-name"
+ pfx='tmp.aai.source-pnf' local-only='false' >
+ <!--AND depth = '0'"-->
+ <outcome value='success'>
+ <block>
+ <for silentFailure='true' index='spvidx' start='0' end='`$tmp.aai.source-pnf.relationship-list.relationship_length`' >
+ <switch test='`$tmp.aai.source-pnf.relationship-list.relationship[$spvidx].related-to`'>
+ <outcome value='esr-thirdparty-sdnc'>
+ <block atomic="true">
+ <set>
+ <parameter name='tmp.domainA.esr-thirdparty-id' value="`$tmp.aai.source-pnf.relationship-list.relationship[$spvidx].relationship-data[0].relationship-value`" />
+ </set>
+ <get-resource plugin="org.onap.ccsdk.sli.adaptors.aai.AAIService"
+ resource="esr-thirdparty-sdnc"
+ key="esr-thirdparty-sdnc.thirdparty-sdnc-id = $tmp.domainA.esr-thirdparty-id AND
+ depth = '1'"
+ pfx='tmp.aai.domainA.esr-thirdparty-sdnc' local-only='false' >
+ <outcome value='success'>
+ <block>
+ <set>
+ <parameter name='prop.sdncRestApi.thirdpartySdnc.domainA.url' value="`$tmp.aai.domainA.esr-thirdparty-sdnc.esr-system-info-list.esr-system-info[0].service-url`" />
+ <parameter name='prop.sdncRestApi.thirdpartySdnc.domainA.user' value="`$tmp.aai.domainA.esr-thirdparty-sdnc.esr-system-info-list.esr-system-info[0].user-name`" />
+ <parameter name='prop.sdncRestApi.thirdpartySdnc.domainA.password' value="`$tmp.aai.domainA.esr-thirdparty-sdnc.esr-system-info-list.esr-system-info[0].password`" />
+ <!--<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >-->
+ <!--<parameter name="restapiUrl" value="`$prop.sdncRestApi.thirdpartySdnc.url + '/restconf/data/ietf-network:networks'`" />-->
+ <!--<parameter name="restapiUser" value="`$prop.sdncRestApi.thirdpartySdnc.user`" />-->
+ <!--<parameter name="restapiPassword" value="`$prop.sdncRestApi.thirdpartySdnc.password`" />-->
+ <!--<parameter name="format" value="json"/>-->
+ <!--<parameter name="httpMethod" value="get"/>-->
+ <!--<parameter name="responsePrefix" value="topology"/>-->
+ <!--<parameter name="trustStoreFileName" value="/opt/onap/sdnc/data/stores/truststore.onap.client.jks"/>-->
+ <!--<parameter name="trustStorePassword" value="adminadmin"/>-->
+ <!--<parameter name="keyStoreFileName" value="/opt/onap/sdnc/data/stores/sdnc.p12"/>-->
+ <!--<parameter name="keyStorePassword" value="adminadmin"/>-->
+ </set>
+ </block>
+ </outcome>
+ <outcome value='not-found'>
+ <return status='failure'>
+ <parameter name='ack-final' value='Y'/>
+ <parameter name="error-code" value="500" />
+ <parameter name="error-message" value="`'An error occurred while querying pnf from AnAI with pnf-name = ' + $prop.connection-attachement.access-node-id`" />
+ </return>
+ </outcome>
+ <outcome value='Other'>
+ <return status='failure'>
+ <parameter name='ack-final' value='Y'/>
+ <parameter name="error-code" value="500" />
+ <parameter name="error-message" value="`'Unexpected error occurred while querying pnf from AnAI with pnf-name = ' + $prop.connection-attachement.access-node-id`" />
+ </return>
+ </outcome>
+ </get-resource>
+ </block>
+ </outcome>
+ <outcome value='network-resource'>
+ <block atomic="true">
+ <set>
+ <parameter name='tmp.domainA.eth-network-id' value="`$tmp.aai.source-pnf.relationship-list.relationship[$spvidx].relationship-data[0].relationship-value`" />
+ </set>
+ </block>
+ </outcome>
+ </switch>
+ </for>
+ </block>
+ </outcome>
+ <outcome value='not-found'>
+ <return status='failure'>
+ <parameter name='ack-final' value='Y'/>
+ <parameter name="error-code" value="500" />
+ <parameter name="error-message" value="`'An error occurred while querying pnf from AnAI with pnf-name = ' + $prop.connection-attachement.access-node-id`" />
+ </return>
+ </outcome>
+ <outcome value='Other'>
+ <return status='failure'>
+ <parameter name='ack-final' value='Y'/>
+ <parameter name="error-code" value="500" />
+ <parameter name="error-message" value="`'Unexpected error occurred while querying pnf from AnAI with pnf-name = ' + $prop.connection-attachement.access-node-id`" />
+ </return>
+ </outcome>
+ </get-resource>
+ </block>
+ </outcome>
+ <outcome value='failure'>
+ <return status='failure'>
+ <parameter name='error-code' value='' />
+ <parameter name='error-message' value="An error occured while splitting sna1_route" />
+ </return>
+ </outcome>
+ </execute>
+ <get-resource plugin="org.onap.ccsdk.sli.adaptors.aai.AAIService"
+ resource="p-interface"
+ key="pnf.pnf-name = $tmp.src.domainA.pnf-name
+ AND p-interface.interface-name = $tmp.aai.network-route-A.next-hop"
+ local-only="false"
+ pfx="tmp.aai.network-route-A.p-interface-src" >
+ <!--<get-resource plugin="org.onap.ccsdk.sli.adaptors.aai.AAIService" -->
+ <!-- resource="p-interface"-->
+ <!-- key="pnf.pnf-name = $unique-src-node-Id-->
+ <!-- and p-interface.interface-name = $tmp.aai.endpointA.relationship-list.relationship[$rel-index].relationship-data[0].relationship-value"-->
+ <!-- local-only="false" -->
+ <!-- pfx="tmp.aai.endpointA.p-interface-src" >-->
+ <outcome value='success'>
+ <block atomic="true">
+ <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='split' >
+ <parameter name="original_string" value='`$tmp.aai.network-route-A.p-interface-src.interface-name`'/>
+ <!--<parameter name="regex" value="[^-]+$"/>-->
+ <parameter name="regex" value="[-]+"/>
+ <parameter name="ctx_memory_result_key" value="param-prefix-domainA"/>
+ <outcome value='success'>
+ <block atomic="true">
+ <set>
+ <parameter name='tmp.src.ltpId' value='`$param-prefix-domainA[$param-prefix-domainA_length -1]`' />
+ </set>
+ <set>
+ <parameter name='tmp.src.pnf-name' value='`$param-prefix-domainA[$param-prefix-domainA_length -3]`' />
+ </set>
+ </block>
+ </outcome>
+ <outcome value='failure'>
+ <return status='failure'>
+ <parameter name='error-code' value='' />
+ <parameter name='error-message' value="An error occured while splitting sna1_route" />
+ </return>
+ </outcome>
+ </execute>
+ <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='generateUUID' >
+ <parameter name="ctx-destination" value="uuid.connectivity-domainA-uuid"/>
+ </execute>
+ <save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='connectivity'
+ key='connectivity.connectivity-id = $uuid.connectivity-domainA-uuid'>
+ <parameter name='connectivity-id' value='`$uuid.connectivity-domainA-uuid`' />
+ <parameter name='etht-svc-name' value='`$prop.ethernet-service-name`' />
+ <parameter name='operational-status' value='Created' />
+ <parameter name='access-provider-id' value='`$param-prefix-domainA[$param-prefix-domainA_length -9]`' />
+ <parameter name='access-client-id' value='`$param-prefix-domainA[$param-prefix-domainA_length -7]`' />
+ <parameter name='access-topology-id' value='`$param-prefix-domainA[$param-prefix-domainA_length -5]`' />
+ <parameter name='access-node-id' value='`$param-prefix-domainA[$param-prefix-domainA_length -3]`' />
+ <parameter name='access-ltp-id' value='`$param-prefix-domainA[$param-prefix-domainA_length -1]`' />
+ <parameter name='cvlan' value='`$tmp.aai.network-route-A.logical-interface-id`' />
+ <parameter name='bandwidth-profile-name' value='`$gfp`' />
+ <parameter name='vpn-type' value='`$prop.sotn.vpnType`' />
+ <parameter name='cir' value='`$gfp *1000000`' />
+ <parameter name='eir' value='`$gfp *1000000`' />
+ <parameter name='cbs' value='`$prop.sotn.cbs`' />
+ <parameter name='ebs' value='`$prop.sotn.ebs`' />
+ <!--<parameter name='color-aware' value='`$prop.sotn.colorAware`' />-->
+ <!--<parameter name='coupling-flag' value='`$prop.sotn.couplingFlag`' />-->
+ <!--<parameter name='etht-svc-name' value='`$prop.sotn.etht-svc-name`' />-->
+ <!--<parameter name='model-customization-id' value='`$network-topology-operation-input.network-information.onap-model-information.model-customization-uuid`' />-->
+ <!--<parameter name='model-invariant-id' value='`$network-topology-operation-input.network-information.onap-model-information.model-invariant-uuid`' />-->
+ <!--<parameter name='model-version-id' value='`$network-topology-operation-input.network-information.onap-model-information.model-uuid`' />-->
+ <parameter name='connectivity-selflink' value="`'restconf/config/GENERIC-RESOURCE-API:services/service/' + $network-topology-operation-input.service-information.service-instance-id + '/service-data/networks/network/' + $prop.sotn.network-id + '/network-data/'` " />
+ </save>
+ <save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='service-instance:relationship-list'
+ key='service-instance.service-instance-id = $vnf-topology-operation-input.service-information.service-instance-id
+ AND customer.global-customer-id = $vnf-topology-operation-input.service-information.global-customer-id
+ AND service-subscription.service-type = $vnf-topology-operation-input.service-information.subscription-service-type'
+ force="true" pfx="tmp.AnAI-data">
+ <parameter name="relationship-list.relationship[0].related-to" value="connectivity" />
+ <parameter name="relationship-list.relationship[0].related-link" value="`'/network/connectivities/connectivity/' + $uuid.connectivity-domainA-uuid`" />
+ <parameter name="relationship-list.relationship[0].relationship-data[0].relationship-key" value="connectivity.connectivity-id" />
+ <parameter name="relationship-list.relationship[0].relationship-data[0].relationship-value" value="`$uuid.connectivity-domainA-uuid`" />
+ <!--<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='service-instance:relationship-list' -->
+ <!-- key='service-instance.service-instance-id = $service-data.service-information.service-instance-id -->
+ <!-- AND customer.global-customer-id = $service-data.networks.network[$nidx].network-data.service-information.global-customer-id -->
+ <!-- AND service-subscription.service-type = $service-data.networks.network[$nidx].network-data.service-information.subscription-service-type' -->
+ <!-- force="true" pfx="tmp.AnAI-data">-->
+ <!--<parameter name="relationship-list.relationship[0].related-to" value="connectivity" />-->
+ <!--<parameter name="relationship-list.relationship[0].related-link" value="`'/network/connectivities/connectivity/' + $prop.sotn.network-id`" />-->
+ <!--<parameter name="relationship-list.relationship[0].relationship-data[0].relationship-key" value="connectivity.connectivity-id" />-->
+ <!--<parameter name="relationship-list.relationship[0].relationship-data[0].relationship-value" value="`$prop.sotn.network-id`" />-->
+ </save>
+ <for silentFailure='true' index='pividx' start='0' end='`$tmp.aai.network-route-A.p-interface-src.relationship-list.relationship_length`' >
+ <switch test='`$tmp.aai.network-route-A.p-interface-src.relationship-list.relationship[$pividx].related-to`'>
+ <outcome value='tunnel-termination-point'>
+ <block atomic="true">
+ <set>
+ <parameter name='tmp.source.ttp-id' value="`$tmp.aai.network-route-A.p-interface-src.relationship-list.relationship[$pividx].relationship-data[0].relationship-value`" />
+ </set>
+ <get-resource plugin="org.onap.ccsdk.sli.adaptors.aai.AAIService"
+ resource="tunnel-termination-point"
+ key="tunnel-termination-point.ttp-id = $tmp.source.ttp-id
+ AND depth = '0'"
+ pfx='tmp.aai.source-ttp' local-only='false' >
+ <outcome value='success'>
+ <block atomic="true">
+ <set>
+ <parameter name='source.tunnel-tp-id' value="`$tmp.aai.source-ttp.tunnel-tp-id`" />
+ </set>
+ </block>
+ </outcome>
+ </get-resource>
+ <break/>
+ </block>
+ </outcome>
+ </switch>
+ </for>
+ </block>
+ </outcome>
+ <outcome value='not-found'>
+ <return status='failure'>
+ <parameter name='ack-final' value='Y'/>
+ <parameter name="error-code" value="500" />
+ <parameter name="error-message" value="`'An error occurred while querying pnf from AnAI with pnf-name = ' + $prop.l3vpn.pe1_id`" />
+ </return>
+ </outcome>
+ <outcome value='failure'>
+ <return status='failure'>
+ <parameter name='error-code' value='' />
+ <parameter name='error-message' value='' />
+ </return>
+ </outcome>
+ </get-resource>
+ </block>
+ </outcome>
+ </get-resource>
+ <get-resource plugin="org.onap.ccsdk.sli.adaptors.aai.AAIService"
+ resource="network-route"
+ key='network-route.route-id = $network-route-B'
+ local-only="false"
+ force="true" pfx="tmp.aai.network-route-B">
+ <outcome value='not-found'>
+ <return status='failure'>
+ <parameter name='ack-final' value='Y'/>
+ <parameter name="error-code" value="500" />
+ <parameter name="error-message" value="`'An error occurred while querying pnf from AnAI with pnf-name = ' + $prop.l3vpn.pe1_id`" />
+ </return>
+ </outcome>
+ <outcome value='failure'>
+ <return status='failure'>
+ <parameter name='error-code' value='' />
+ <parameter name='error-message' value='' />
+ </return>
+ </outcome>
+ <outcome value='success'>
+ <block atomic="true">
+ <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='split' >
+ <parameter name="original_string" value='`$tmp.aai.network-route-B.next-hop`'/>
+ <!--<parameter name="regex" value="[^-]+$"/>-->
+ <parameter name="regex" value="[-]+"/>
+ <parameter name="ctx_memory_result_key" value="param-prefix-domainB-pnfName"/>
+ <outcome value='success'>
+ <block atomic="true">
+ <set>
+ <parameter name='tmp.dst.domainB.pnf-name' value="`$param-prefix-domainB-pnfName[0] + '-' +
+ $param-prefix-domainB-pnfName[1] + '-' +
+ $param-prefix-domainB-pnfName[2] + '-' +
+ $param-prefix-domainB-pnfName[3] + '-' +
+ $param-prefix-domainB-pnfName[4] + '-' +
+ $param-prefix-domainB-pnfName[5] + '-' +
+ $param-prefix-domainB-pnfName[6] + '-' +
+ $param-prefix-domainB-pnfName[7] + '-' +
+ $param-prefix-domainB-pnfName[8]`" />
+ </set>
+ <get-resource plugin="org.onap.ccsdk.sli.adaptors.aai.AAIService"
+ resource="pnf"
+ key="pnf.pnf-name = $tmp.dst.domainB.pnf-name"
+ pfx='tmp.aai.destination-pnf' local-only='false' >
+ <!--AND depth = '0'"-->
+ <outcome value='success'>
+ <block>
+ <for silentFailure='true' index='dpvidx' start='0' end='`$tmp.aai.destination-pnf.relationship-list.relationship_length`' >
+ <switch test='`$tmp.aai.destination-pnf.relationship-list.relationship[$dpvidx].related-to`'>
+ <outcome value='esr-thirdparty-sdnc'>
+ <block atomic="true">
+ <set>
+ <parameter name='tmp.domainB.esr-thirdparty-id' value="`$tmp.aai.destination-pnf.relationship-list.relationship[$dpvidx].relationship-data[0].relationship-value`" />
+ </set>
+ <get-resource plugin="org.onap.ccsdk.sli.adaptors.aai.AAIService"
+ resource="esr-thirdparty-sdnc"
+ key="esr-thirdparty-sdnc.thirdparty-sdnc-id = $tmp.domainB.esr-thirdparty-id AND
+ depth = '1'"
+ pfx='tmp.aai.domainB.esr-thirdparty-sdnc' local-only='false' >
+ <outcome value='success'>
+ <block>
+ <set>
+ <parameter name='prop.sdncRestApi.thirdpartySdnc.domainB.url' value="`$tmp.aai.domainB.esr-thirdparty-sdnc.esr-system-info-list.esr-system-info[0].service-url`" />
+ <parameter name='prop.sdncRestApi.thirdpartySdnc.domainB.user' value="`$tmp.aai.domainB.esr-thirdparty-sdnc.esr-system-info-list.esr-system-info[0].user-name`" />
+ <parameter name='prop.sdncRestApi.thirdpartySdnc.domainB.password' value="`$tmp.aai.domainB.esr-thirdparty-sdnc.esr-system-info-list.esr-system-info[0].password`" />
+ <!--<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >-->
+ <!--<parameter name="restapiUrl" value="`$prop.sdncRestApi.thirdpartySdnc.url + '/restconf/data/ietf-network:networks'`" />-->
+ <!--<parameter name="restapiUser" value="`$prop.sdncRestApi.thirdpartySdnc.user`" />-->
+ <!--<parameter name="restapiPassword" value="`$prop.sdncRestApi.thirdpartySdnc.password`" />-->
+ <!--<parameter name="format" value="json"/>-->
+ <!--<parameter name="httpMethod" value="get"/>-->
+ <!--<parameter name="responsePrefix" value="topology"/>-->
+ <!--<parameter name="trustStoreFileName" value="/opt/onap/sdnc/data/stores/truststore.onap.client.jks"/>-->
+ <!--<parameter name="trustStorePassword" value="adminadmin"/>-->
+ <!--<parameter name="keyStoreFileName" value="/opt/onap/sdnc/data/stores/sdnc.p12"/>-->
+ <!--<parameter name="keyStorePassword" value="adminadmin"/>-->
+ </set>
+ </block>
+ </outcome>
+ <outcome value='not-found'>
+ <return status='failure'>
+ <parameter name='ack-final' value='Y'/>
+ <parameter name="error-code" value="500" />
+ <parameter name="error-message" value="`'An error occurred while querying pnf from AnAI with pnf-name = ' + $prop.connection-attachement.access-node-id`" />
+ </return>
+ </outcome>
+ <outcome value='Other'>
+ <return status='failure'>
+ <parameter name='ack-final' value='Y'/>
+ <parameter name="error-code" value="500" />
+ <parameter name="error-message" value="`'Unexpected error occurred while querying pnf from AnAI with pnf-name = ' + $prop.connection-attachement.access-node-id`" />
+ </return>
+ </outcome>
+ </get-resource>
+ </block>
+ </outcome>
+ <outcome value='network-resource'>
+ <block atomic="true">
+ <set>
+ <parameter name='tmp.domainB.eth-network-id' value="`$tmp.aai.destination-pnf.relationship-list.relationship[$dpvidx].relationship-data[0].relationship-value`" />
+ </set>
+ </block>
+ </outcome>
+ </switch>
+ </for>
+ </block>
+ </outcome>
+ <outcome value='not-found'>
+ <return status='failure'>
+ <parameter name='ack-final' value='Y'/>
+ <parameter name="error-code" value="500" />
+ <parameter name="error-message" value="`'An error occurred while querying pnf from AnAI with pnf-name = ' + $prop.connection-attachement.access-node-id`" />
+ </return>
+ </outcome>
+ <outcome value='Other'>
+ <return status='failure'>
+ <parameter name='ack-final' value='Y'/>
+ <parameter name="error-code" value="500" />
+ <parameter name="error-message" value="`'Unexpected error occurred while querying pnf from AnAI with pnf-name = ' + $prop.connection-attachement.access-node-id`" />
+ </return>
+ </outcome>
+ </get-resource>
+ </block>
+ </outcome>
+ <outcome value='failure'>
+ <return status='failure'>
+ <parameter name='error-code' value='' />
+ <parameter name='error-message' value="An error occured while splitting sna1_route" />
+ </return>
+ </outcome>
+ </execute>
+ <get-resource plugin="org.onap.ccsdk.sli.adaptors.aai.AAIService"
+ resource="p-interface"
+ key="pnf.pnf-name = $tmp.dst.domainB.pnf-name
+ AND p-interface.interface-name = $tmp.aai.network-route-B.next-hop"
+ local-only="false"
+ pfx="tmp.aai.network-route-B.p-interface-dst" >
+ <!--<get-resource plugin="org.onap.ccsdk.sli.adaptors.aai.AAIService" -->
+ <!-- resource="p-interface"-->
+ <!-- key="pnf.pnf-name = $unique-src-node-Id-->
+ <!-- and p-interface.interface-name = $tmp.aai.endpointA.relationship-list.relationship[$rel-index].relationship-data[0].relationship-value"-->
+ <!-- local-only="false" -->
+ <!-- pfx="tmp.aai.endpointA.p-interface-src" >-->
+ <outcome value='success'>
+ <block atomic="true">
+ <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='split' >
+ <parameter name="original_string" value='`$tmp.aai.network-route-B.p-interface-dst.interface-name`'/>
+ <!--<parameter name="regex" value="[^-]+$"/>-->
+ <parameter name="regex" value="[-]+"/>
+ <parameter name="ctx_memory_result_key" value="param-prefix-domainB"/>
+ <outcome value='success'>
+ <block atomic="true">
+ <set>
+ <parameter name='tmp.dst.ltpId' value='`$param-prefix-domainB[$param-prefix-domainB_length -1]`' />
+ </set>
+ <set>
+ <parameter name='tmp.dst.pnf-name' value='`$param-prefix-domainB[$param-prefix-domainB_length -3]`' />
+ </set>
+ </block>
+ </outcome>
+ <outcome value='failure'>
+ <return status='failure'>
+ <parameter name='error-code' value='' />
+ <parameter name='error-message' value="An error occured while splitting sna1_route" />
+ </return>
+ </outcome>
+ </execute>
+ <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='generateUUID' >
+ <parameter name="ctx-destination" value="prop.connectivity-domainB-uuid"/>
+ </execute>
+ <save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='connectivity'
+ key='connectivity.connectivity-id = $prop.connectivity-domainB-uuid'>
+ <parameter name='connectivity-id' value='`$prop.connectivity-domainB-uuid`' />
+ <parameter name='etht-svc-name' value='`$prop.ethernet-service-name`' />
+ <parameter name='operational-status' value='Created' />
+ <parameter name='access-provider-id' value='`$param-prefix-domainB[$param-prefix-domainB_length -9]`' />
+ <parameter name='access-client-id' value='`$param-prefix-domainB[$param-prefix-domainB_length -7]`' />
+ <parameter name='access-topology-id' value='`$param-prefix-domainB[$param-prefix-domainB_length -5]`' />
+ <parameter name='access-node-id' value='`$param-prefix-domainB[$param-prefix-domainB_length -3]`' />
+ <parameter name='access-ltp-id' value='`$param-prefix-domainB[$param-prefix-domainB_length -1]`' />
+ <parameter name='cvlan' value='`$tmp.aai.network-route-B.logical-interface-id`' />
+ <parameter name='bandwidth-profile-name' value='`$gfp`' />
+ <parameter name='vpn-type' value='`$prop.sotn.vpnType`' />
+ <parameter name='cir' value='`$gfp *1000000`' />
+ <parameter name='eir' value='`$gfp *1000000`' />
+ <parameter name='cbs' value='`$prop.sotn.cbs`' />
+ <parameter name='ebs' value='`$prop.sotn.ebs`' />
+ <!--<parameter name='color-aware' value='`$prop.sotn.colorAware`' />-->
+ <!--<parameter name='coupling-flag' value='`$prop.sotn.couplingFlag`' />-->
+ <!--<parameter name='etht-svc-name' value='`$prop.sotn.etht-svc-name`' />-->
+ <!--<parameter name='model-customization-id' value='`$network-topology-operation-input.network-information.onap-model-information.model-customization-uuid`' />-->
+ <!--<parameter name='model-invariant-id' value='`$network-topology-operation-input.network-information.onap-model-information.model-invariant-uuid`' />-->
+ <!--<parameter name='model-version-id' value='`$network-topology-operation-input.network-information.onap-model-information.model-uuid`' />-->
+ <parameter name='connectivity-selflink' value="`'restconf/config/GENERIC-RESOURCE-API:services/service/' + $network-topology-operation-input.service-information.service-instance-id + '/service-data/networks/network/' + $prop.sotn.network-id + '/network-data/'` " />
+ </save>
+ <save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='service-instance:relationship-list'
+ key='service-instance.service-instance-id = $vnf-topology-operation-input.service-information.service-instance-id
+ AND customer.global-customer-id = $vnf-topology-operation-input.service-information.global-customer-id
+ AND service-subscription.service-type = $vnf-topology-operation-input.service-information.subscription-service-type'
+ force="true" pfx="tmp.AnAI-data">
+ <parameter name="relationship-list.relationship[0].related-to" value="connectivity" />
+ <parameter name="relationship-list.relationship[0].related-link" value="`'/network/connectivities/connectivity/' + $prop.connectivity-domainB-uuid`" />
+ <parameter name="relationship-list.relationship[0].relationship-data[0].relationship-key" value="connectivity.connectivity-id" />
+ <parameter name="relationship-list.relationship[0].relationship-data[0].relationship-value" value="`$prop.connectivity-domainB-uuid`" />
+ <!--<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='service-instance:relationship-list' -->
+ <!-- key='service-instance.service-instance-id = $service-data.service-information.service-instance-id -->
+ <!-- AND customer.global-customer-id = $service-data.networks.network[$nidx].network-data.service-information.global-customer-id -->
+ <!-- AND service-subscription.service-type = $service-data.networks.network[$nidx].network-data.service-information.subscription-service-type' -->
+ <!-- force="true" pfx="tmp.AnAI-data">-->
+ <!--<parameter name="relationship-list.relationship[0].related-to" value="connectivity" />-->
+ <!--<parameter name="relationship-list.relationship[0].related-link" value="`'/network/connectivities/connectivity/' + $prop.sotn.network-id`" />-->
+ <!--<parameter name="relationship-list.relationship[0].relationship-data[0].relationship-key" value="connectivity.connectivity-id" />-->
+ <!--<parameter name="relationship-list.relationship[0].relationship-data[0].relationship-value" value="`$prop.sotn.network-id`" />-->
+ </save>
+ <for silentFailure='true' index='dividx' start='0' end='`$tmp.aai.network-route-B.p-interface-dst.relationship-list.relationship_length`' >
+ <switch test='`$tmp.aai.network-route-B.p-interface-dst.relationship-list.relationship[$dividx].related-to`'>
+ <outcome value='tunnel-termination-point'>
+ <block atomic="true">
+ <set>
+ <parameter name='tmp.destination.ttp-id' value="`$tmp.aai.network-route-B.p-interface-dst.relationship-list.relationship[$dividx].relationship-data[0].relationship-value`" />
+ </set>
+ <get-resource plugin="org.onap.ccsdk.sli.adaptors.aai.AAIService"
+ resource="tunnel-termination-point"
+ key="tunnel-termination-point.ttp-id = $tmp.destination.ttp-id
+ AND depth = '0'"
+ pfx='tmp.aai.destination-ttp' local-only='false' >
+ <outcome value='success'>
+ <block atomic="true">
+ <set>
+ <parameter name='destination.tunnel-tp-id' value="`$tmp.aai.destination-ttp.tunnel-tp-id`" />
+ </set>
+ </block>
+ </outcome>
+ </get-resource>
+ <break/>
+ </block>
+ </outcome>
+ </switch>
+ </for>
+ </block>
+ </outcome>
+ <outcome value='not-found'>
+ <return status='failure'>
+ <parameter name='ack-final' value='Y'/>
+ <parameter name="error-code" value="500" />
+ <parameter name="error-message" value="`'An error occurred while querying pnf from AnAI with pnf-name = ' + $prop.l3vpn.pe1_id`" />
+ </return>
+ </outcome>
+ <outcome value='failure'>
+ <return status='failure'>
+ <parameter name='error-code' value='' />
+ <parameter name='error-message' value='' />
+ </return>
+ </outcome>
+ </get-resource>
+ </block>
+ </outcome>
+ </get-resource>
+ <set>
+ <parameter name='prop.connection-attachment.access-provider-id' value='`$param-prefix-domainA[$param-prefix-domainA_length -9]`' />
+ <parameter name='prop.connection-attachment.access-client-id' value='`$param-prefix-domainA[$param-prefix-domainA_length -7]`' />
+ <parameter name='prop.connection-attachment.access-topology-id' value='`$param-prefix-domainA[$param-prefix-domainA_length -5]`' />
+ <parameter name='prop.connection-attachment.access-node-id' value='`$param-prefix-domainA[$param-prefix-domainA_length -3]`' />
+ <parameter name='prop.connection-attachment.access-ltp-id' value='`$param-prefix-domainA[$param-prefix-domainA_length -1]`' />
+ <parameter name='prop.remote.connection-attachment.access-provider-id' value='`$param-prefix-domainB[$param-prefix-domainB_length -9]`' />
+ <parameter name='prop.remote.connection-attachment.access-client-id' value='`$param-prefix-domainB[$param-prefix-domainB_length -7]`' />
+ <parameter name='prop.remote.connection-attachment.access-topology-id' value='`$param-prefix-domainB[$param-prefix-domainB_length -5]`' />
+ <parameter name='prop.remote.connection-attachment.access-node-id' value='`$param-prefix-domainB[$param-prefix-domainB_length -3]`' />
+ <parameter name='prop.remote.connection-attachment.access-ltp-id' value='`$param-prefix-domainB[$param-prefix-domainB_length -1]`' />
+ <!--<parameter name='prop.remote.connection-attachment.access-provider-id' value='`$oof.vpn.access-provider-id`' />-->
+ <!--<parameter name='prop.remote.connection-attachment.access-client-id' value='`$oof.vpn.access-client-id`' />-->
+ <!--<parameter name='prop.remote.connection-attachment.access-topology-id' value='`$oof.vpn.access-topology-id`' />-->
+ <!--<parameter name='prop.remote.connection-attachment.access-node-id' value='`$oof.vpn.access-node-id`' />-->
+ <!--<parameter name='prop.remote.connection-attachment.access-ltp-id' value='`$oof.vpn.src-access-ltp-id`' />-->
+ </set>
+ <set>
+ <parameter name='prop.ethsrvType' value='`$network-route-A`' />
+ </set>
+ <call module='GENERIC-RESOURCE-API' rpc='tsli-vnf-topology-operation-get-otn-tunnel-path-from-oof' mode='sync' ></call>
+ <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='printContext' >
+ <parameter name="filename" value="`$filenamemm`" />
+ </execute>
+ <call module='GENERIC-RESOURCE-API' rpc='tsli-vnf-topology-operation-find-maximum-used-tpn' mode='sync' ></call>
+ <for index='otnidx' start='0' end='`$tmp.otninfo_length`' >
+ <block atomic='true'>
+ <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='generateUUID' >
+ <parameter name="ctx-destination" value="prop.vpn-binding-otnidx-uuid"/>
+ </execute>
+ <switch test="`$tmp.otninfo[$otnidx].dstPort.dst-access-provider-id == ''`">
+ <outcome value='true'>
+ <set>
+ <parameter name='tmp.access-provider-id' value='`$tmp.otninfo[$otnidx].srcPort.src-access-provider-id`' />
+ <parameter name='tmp.access-client-id' value='`$tmp.otninfo[$otnidx].srcPort.src-access-client-id`' />
+ <parameter name='tmp.access-topology-id' value='`$tmp.otninfo[$otnidx].srcPort.src-access-topology-id`' />
+ <parameter name='tmp.srcdstpnf-id' value='`$tmp.otninfo[$otnidx].srcPort.src-access-node-id`' />
+ </set>
+ </outcome>
+ <outcome value='false'>
+ <set>
+ <parameter name='tmp.access-provider-id' value='`$tmp.otninfo[$otnidx].dstPort.dst-access-provider-id`' />
+ <parameter name='tmp.access-client-id' value='`$tmp.otninfo[$otnidx].dstPort.dst-access-client-id`' />
+ <parameter name='tmp.access-topology-id' value='`$tmp.otninfo[$otnidx].dstPort.dst-access-topology-id`' />
+ <parameter name='tmp.srcdstpnf-id' value='`$tmp.otninfo[$otnidx].dstPort.dst-access-node-id`' />
+ </set>
+ </outcome>
+ </switch>
+ <set>
+ <parameter name='tmp.srcdstpnf-name' value="`'networkId-providerId-' +
+ $tmp.access-provider-id + '-clientId-' +
+ $tmp.access-client-id + '-topologyId-' +
+ $tmp.access-topology-id + '-nodeId-' +
+ $tmp.srcdstpnf-id`" />
+ </set>
+ <get-resource plugin="org.onap.ccsdk.sli.adaptors.aai.AAIService"
+ resource="pnf"
+ key="pnf.pnf-name = $tmp.srcdstpnf-name"
+ pfx='tmp.aai.srcdst-pnf' local-only='false' >
+ <!--AND depth = '0'"-->
+ <outcome value='success'>
+ <block>
+ <for silentFailure='true' index='spvidx' start='0' end='`$tmp.aai.srcdst-pnf.relationship-list.relationship_length`' >
+ <switch test='`$tmp.aai.srcdst-pnf.relationship-list.relationship[$spvidx].related-to`'>
+ <outcome value='esr-thirdparty-sdnc'>
+ <block atomic="true">
+ <set>
+ <parameter name='tmp.domainG.esr-thirdparty-id' value="`$tmp.aai.srcdst-pnf.relationship-list.relationship[$spvidx].relationship-data[0].relationship-value`" />
+ </set>
+ <get-resource plugin="org.onap.ccsdk.sli.adaptors.aai.AAIService"
+ resource="esr-thirdparty-sdnc"
+ key="esr-thirdparty-sdnc.thirdparty-sdnc-id = $tmp.domainG.esr-thirdparty-id AND
+ depth = '1'"
+ pfx='tmp.aai.domainG.esr-thirdparty-sdnc' local-only='false' >
+ <outcome value='success'>
+ <block>
+ <set>
+ <parameter name='prop.sdncRestApi.thirdpartySdnc.domainG.url' value="`$tmp.aai.domainG.esr-thirdparty-sdnc.esr-system-info-list.esr-system-info[0].service-url`" />
+ <parameter name='prop.sdncRestApi.thirdpartySdnc.domainG.user' value="`$tmp.aai.domainG.esr-thirdparty-sdnc.esr-system-info-list.esr-system-info[0].user-name`" />
+ <parameter name='prop.sdncRestApi.thirdpartySdnc.domainG.password' value="`$tmp.aai.domainG.esr-thirdparty-sdnc.esr-system-info-list.esr-system-info[0].password`" />
+ <!--<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >-->
+ <!--<parameter name="restapiUrl" value="`$prop.sdncRestApi.thirdpartySdnc.url + '/restconf/data/ietf-network:networks'`" />-->
+ <!--<parameter name="restapiUser" value="`$prop.sdncRestApi.thirdpartySdnc.user`" />-->
+ <!--<parameter name="restapiPassword" value="`$prop.sdncRestApi.thirdpartySdnc.password`" />-->
+ <!--<parameter name="format" value="json"/>-->
+ <!--<parameter name="httpMethod" value="get"/>-->
+ <!--<parameter name="responsePrefix" value="topology"/>-->
+ <!--<parameter name="trustStoreFileName" value="/opt/onap/sdnc/data/stores/truststore.onap.client.jks"/>-->
+ <!--<parameter name="trustStorePassword" value="adminadmin"/>-->
+ <!--<parameter name="keyStoreFileName" value="/opt/onap/sdnc/data/stores/sdnc.p12"/>-->
+ <!--<parameter name="keyStorePassword" value="adminadmin"/>-->
+ </set>
+ </block>
+ </outcome>
+ <outcome value='not-found'>
+ <return status='failure'>
+ <parameter name='ack-final' value='Y'/>
+ <parameter name="error-code" value="500" />
+ <parameter name="error-message" value="`'An error occurred while querying pnf from AnAI with pnf-name = ' + $prop.connection-attachement.access-node-id`" />
+ </return>
+ </outcome>
+ <outcome value='Other'>
+ <return status='failure'>
+ <parameter name='ack-final' value='Y'/>
+ <parameter name="error-code" value="500" />
+ <parameter name="error-message" value="`'Unexpected error occurred while querying pnf from AnAI with pnf-name = ' + $prop.connection-attachement.access-node-id`" />
+ </return>
+ </outcome>
+ </get-resource>
+ </block>
+ </outcome>
+ </switch>
+ </for>
+ </block>
+ </outcome>
+ <outcome value='not-found'>
+ <return status='failure'>
+ <parameter name='ack-final' value='Y'/>
+ <parameter name="error-code" value="500" />
+ <parameter name="error-message" value="`'An error occurred while querying pnf from AnAI with pnf-name = ' + $prop.connection-attachement.access-node-id`" />
+ </return>
+ </outcome>
+ <outcome value='Other'>
+ <return status='failure'>
+ <parameter name='ack-final' value='Y'/>
+ <parameter name="error-code" value="500" />
+ <parameter name="error-message" value="`'Unexpected error occurred while querying pnf from AnAI with pnf-name = ' + $prop.connection-attachement.access-node-id`" />
+ </return>
+ </outcome>
+ </get-resource>
+ <switch test='`$otnidx == 0`'>
+ <outcome value='true'>
+ <set>
+ <parameter name='tmp.domainG-src-access-node-id' value='`$param-prefix-domainA[$param-prefix-domainA_length -3]`' />
+ <parameter name='tmp.domainG-dst-access-node-id' value='`$tmp.otninfo[$otnidx].dstPort.dst-access-node-id`' />
+ </set>
+ </outcome>
+ <outcome value='false'>
+ <switch test='`$otnidx == $tmp.otninfo_length - 1`'>
+ <outcome value='true'>
+ <set>
+ <parameter name='tmp.domainG-src-access-node-id' value='`$tmp.otninfo[$otnidx].srcPort.src-access-node-id`' />
+ <parameter name='tmp.domainG-dst-access-node-id' value='`$param-prefix-domainB[$param-prefix-domainB_length -3]`' />
+ </set>
+ </outcome>
+ <outcome value='false'>
+ <set>
+ <parameter name='tmp.domainG-src-access-node-id' value='`$tmp.otninfo[$otnidx].srcPort.src-access-node-id`' />
+ <parameter name='tmp.domainG-dst-access-node-id' value='`$tmp.otninfo[$otnidx].dstPort.dst-access-node-id`' />
+ </set>
+ </outcome>
+ </switch>
+ </outcome>
+ </switch>
+ <save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='vpn-binding'
+ key='vpn-binding.vpn-id = $prop.vpn-binding-otnidx-uuid' >
+ <parameter name='vpn-id' value='`$prop.vpn-binding-otnidx-uuid`' />
+ <parameter name='vpn-name' value='`$prop.otn-tunnel-name`' />
+ <!--<parameter name='customer-vpn-id' value='`($idx + 1) * 10`' />-->
+ <parameter name='customer-vpn-id' value='`($maxtpn + $gfp)`' />
+ <!--<parameter name='access-provider-id' value='`$tmp.otninfo[$otnidx].dstPort.dst-access-provider-id`' />-->
+ <parameter name='access-provider-id' value='`$tmp.access-provider-id`' />
+ <!--<parameter name='access-client-id' value='`$tmp.otninfo[$otnidx].dstPort.dst-access-client-id`' />-->
+ <parameter name='access-client-id' value='`$tmp.access-client-id`' />
+ <!--<parameter name='access-topology-id' value='`$tmp.otninfo[$otnidx].dstPort.dst-access-topology-id`' />-->
+ <parameter name='access-topology-id' value='`$tmp.access-topology-id`' />
+ <!--<parameter name='src-access-node-id' value='`$tmp.otninfo[$otnidx].srcPort.src-access-node-id`' />-->
+ <parameter name='src-access-node-id' value='`$tmp.domainG-src-access-node-id`' />
+ <parameter name='src-access-ltp-id' value='`$tmp.otninfo[$otnidx].srcPort.src-tunnel-tp-id`' />
+ <!--<parameter name='dst-access-node-id' value='`$tmp.otninfo[$otnidx].dstPort.dst-access-node-id`' />-->
+ <parameter name='dst-access-node-id' value='`$tmp.domainG-dst-access-node-id`' />
+ <parameter name='dst-access-ltp-id' value='`$tmp.otninfo[$otnidx].dstPort.dst-tunnel-tp-id`' />
+ <parameter name='route-distinguisher' value='`$gfp`' />
+ <parameter name='operational-status' value='Created' />
+ <!--<parameter name='model-customization-id' value='`$network-topology-operation-input.network-information.onap-model-information.model-customization-uuid`' />-->
+ <!--<parameter name='model-invariant-id' value='`$network-topology-operation-input.network-information.onap-model-information.model-invariant-uuid`' />-->
+ <!--<parameter name='model-version-id' value='`$network-topology-operation-input.network-information.onap-model-information.model-uuid`' />-->
+ <parameter name='vpn-region' value='`$prop.sdncRestApi.thirdpartySdnc.domainG.url`' />
+ <parameter name='vpn-description' value='`$prop.sdncRestApi.thirdpartySdnc.domainG.user`' />
+ <parameter name='vpn-platform' value='`$prop.sdncRestApi.thirdpartySdnc.domainG.password`' />
+ <!-- The following line is in lieu of vpn-binding.slice-id (new attribute in latest AAI) -->
+ <parameter name='ops-note' value='`$tmp.aai.service-instance.service-instance-id`' />
+ <outcome value='success'>
+ <block></block>
+ </outcome>
+ </save>
+ <switch test='`$otnidx == 0`'>
+ <outcome value='true'>
+ <block>
+ <save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='vpn-binding:relationship-list'
+ key='vpn-binding.vpn-id = $prop.vpn-binding-otnidx-uuid'
+ force="true" pfx="tmp.AnAI-data">
+ <parameter name="relationship-list.relationship[0].related-to" value="connectivity" />
+ <parameter name="relationship-list.relationship[0].related-link" value="`'/network/connectivities/connectivity/' + $uuid.connectivity-domainA-uuid`" />
+ <parameter name="relationship-list.relationship[0].relationship-data[0].relationship-key" value="connectivity.connectivity-id" />
+ <parameter name="relationship-list.relationship[0].relationship-data[0].relationship-value" value="`$uuid.connectivity-domainA-uuid`" />
+ </save>
+ <set>
+ <parameter name='slice-instance-id' value='`$tmp.aai.service-instance.service-instance-id`' />
+ </set>
+ <execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >
+ <parameter name="templateFileName" value="`$prop.restapi.templateDir + '/' + $prop.restapi.ts-coloring-uni-port.templatefile`" />
+ <parameter name="restapiUrl" value="`$prop.sdncRestApi.thirdpartySdnc.domainA.url + '/restconf/data/ietf-network:networks/network=' + $tmp.domainA.eth-network-id + '/node=' + $tmp.src.pnf-name + '/ietf-network-topology:termination-point=' + $tmp.src.ltpId + '/ietf-te-topology:te' `" />
+ <parameter name="restapiUser" value="`$prop.sdncRestApi.thirdpartySdnc.domainA.user`" />
+ <parameter name="restapiPassword" value="`$prop.sdncRestApi.thirdpartySdnc.domainA.password`" />
+ <parameter name="format" value="json"/>
+ <parameter name="httpMethod" value="patch"/>
+ <parameter name="responsePrefix" value="otn-oof"/>
+ <parameter name="trustStoreFileName" value="/opt/onap/sdnc/data/stores/truststore.onap.client.jks"/>
+ <parameter name="trustStorePassword" value="adminadmin"/>
+ <parameter name="keyStoreFileName" value="/opt/onap/sdnc/data/stores/sdnc.p12"/>
+ <parameter name="keyStorePassword" value="adminadmin"/>
+ <parameter name='customHttpHeaders' value="`'X-ACCESS-TOKEN=' + $prop.sdncRestApi.token_id`" />
+ <outcome value='failure'>
+ <return status='failure'>
+ <parameter name='ack-final' value='Y'/>
+ <parameter name="error-code" value="500" />
+ <parameter name="error-message" value="Error executing UNI Coloring for domain A" />
+ </return>
+ </outcome>
+ <outcome value='success'>
+ <block></block>
+ </outcome>
+ </execute>
+ </block>
+ </outcome>
+ <outcome value='false'>
+ <block>
+ <set>
+ <parameter name='testingvalue' value='$tmp.otninfo_length -1' />
+ </set>
+ <switch test='`$otnidx == $tmp.otninfo_length - 1`'>
+ <outcome value='true'>
+ <block>
+ <save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='vpn-binding:relationship-list'
+ key='vpn-binding.vpn-id = $prop.vpn-binding-otnidx-uuid'
+ force="true" pfx="tmp.AnAI-data">
+ <parameter name="relationship-list.relationship[0].related-to" value="connectivity" />
+ <parameter name="relationship-list.relationship[0].related-link" value="`'/network/connectivities/connectivity/' + $prop.connectivity-domainB-uuid`" />
+ <parameter name="relationship-list.relationship[0].relationship-data[0].relationship-key" value="connectivity.connectivity-id" />
+ <parameter name="relationship-list.relationship[0].relationship-data[0].relationship-value" value="`$prop.connectivity-domainB-uuid`" />
+ </save>
+ <set>
+ <parameter name='slice-instance-id' value='`$tmp.aai.service-instance.service-instance-id`' />
+ </set>
+ <execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >
+ <parameter name="templateFileName" value="`$prop.restapi.templateDir + '/' + $prop.restapi.ts-coloring-uni-port.templatefile`" />
+ <parameter name="restapiUrl" value="`$prop.sdncRestApi.thirdpartySdnc.domainB.url + '/restconf/data/ietf-network:networks/network=' + $tmp.domainB.eth-network-id + '/node=' + $tmp.dst.pnf-name + '/ietf-network-topology:termination-point=' + $tmp.dst.ltpId + '/ietf-te-topology:te' `" />
+ <parameter name="restapiUser" value="`$prop.sdncRestApi.thirdpartySdnc.domainB.user`" />
+ <parameter name="restapiPassword" value="`$prop.sdncRestApi.thirdpartySdnc.domainB.password`" />
+ <parameter name="format" value="json"/>
+ <parameter name="httpMethod" value="patch"/>
+ <parameter name="responsePrefix" value="otn-oof"/>
+ <parameter name="trustStoreFileName" value="/opt/onap/sdnc/data/stores/truststore.onap.client.jks"/>
+ <parameter name="trustStorePassword" value="adminadmin"/>
+ <parameter name="keyStoreFileName" value="/opt/onap/sdnc/data/stores/sdnc.p12"/>
+ <parameter name="keyStorePassword" value="adminadmin"/>
+ <parameter name='customHttpHeaders' value="`'X-ACCESS-TOKEN=' + $prop.sdncRestApi.token_id`" />
+ <outcome value='failure'>
+ <return status='failure'>
+ <parameter name='ack-final' value='Y'/>
+ <parameter name="error-code" value="500" />
+ <parameter name="error-message" value="Error executing UNI coloring for domain B" />
+ </return>
+ </outcome>
+ <outcome value='success'>
+ <block></block>
+ </outcome>
+ </execute>
+ </block>
+ </outcome>
+ <outcome value='false'>
+ <block atomic='true'>
+ <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='generateUUID' >
+ <parameter name="ctx-destination" value="uuid.connectivity-otnidx-uuid"/>
+ </execute>
+ <save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='connectivity'
+ key='connectivity.connectivity-id = $uuid.connectivity-otnidx-uuid'>
+ <parameter name='connectivity-id' value='`$uuid.connectivity-otnidx-uuid`' />
+ <!--<parameter name='etht-svc-name' value='`$prop.ethernet-service-name`' />-->
+ <parameter name='operational-status' value='Created' />
+ <!--<parameter name='access-provider-id' value='`$tmp.otninfo[$otnidx].dstPort.dst-access-provider-id`' />-->
+ <!--<parameter name='access-client-id' value='`$tmp.otninfo[$otnidx].dstPort.dst-access-client-id`' />-->
+ <!--<parameter name='access-topology-id' value='`$tmp.otninfo[$otnidx].dstPort.dst-access-topology-id`' />-->
+ <!--<parameter name='access-node-id' value='`$tmp.otninfo[$otnidx].srcPort.src-access-node-id`' />-->
+ <!--<parameter name='access-ltp-id' value='``' />-->
+ <!--<parameter name='cvlan' value='`$tmp.aai.network-route-A.logical-interface-id`' />-->
+ <parameter name='bandwidth-profile-name' value='`$gfp`' />
+ <parameter name='vpn-type' value='dummy' />
+ <parameter name='cir' value='`$gfp *1000000`' />
+ <parameter name='eir' value='`$gfp *1000000`' />
+ <!--<parameter name='CBS' value='`$prop.sotn.cbs`' />-->
+ <!--<parameter name='EBS' value='`$prop.sotn.ebs`' />-->
+ <!--<parameter name='color-aware' value='`$prop.sotn.colorAware`' />-->
+ <!--<parameter name='coupling-flag' value='`$prop.sotn.couplingFlag`' />-->
+ <!--<parameter name='etht-svc-name' value='`$prop.sotn.etht-svc-name`' />-->
+ <!--<parameter name='model-customization-id' value='`$network-topology-operation-input.network-information.onap-model-information.model-customization-uuid`' />-->
+ <!--<parameter name='model-invariant-id' value='`$network-topology-operation-input.network-information.onap-model-information.model-invariant-uuid`' />-->
+ <!--<parameter name='model-version-id' value='`$network-topology-operation-input.network-information.onap-model-information.model-uuid`' />-->
+ <parameter name='connectivity-selflink' value="`'restconf/config/GENERIC-RESOURCE-API:services/service/' + $network-topology-operation-input.service-information.service-instance-id + '/service-data/networks/network/' + $prop.sotn.network-id + '/network-data/'` " />
+ </save>
+ <save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='service-instance:relationship-list'
+ key='service-instance.service-instance-id = $vnf-topology-operation-input.service-information.service-instance-id
+ AND customer.global-customer-id = $vnf-topology-operation-input.service-information.global-customer-id
+ AND service-subscription.service-type = $vnf-topology-operation-input.service-information.subscription-service-type'
+ force="true" pfx="tmp.AnAI-data">
+ <parameter name="relationship-list.relationship[0].related-to" value="connectivity" />
+ <parameter name="relationship-list.relationship[0].related-link" value="`'/network/connectivities/connectivity/' + $uuid.connectivity-otnidx-uuid`" />
+ <parameter name="relationship-list.relationship[0].relationship-data[0].relationship-key" value="connectivity.connectivity-id" />
+ <parameter name="relationship-list.relationship[0].relationship-data[0].relationship-value" value="`$uuid.connectivity-otnidx-uuid`" />
+ <!--<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='service-instance:relationship-list' -->
+ <!-- key='service-instance.service-instance-id = $service-data.service-information.service-instance-id -->
+ <!-- AND customer.global-customer-id = $service-data.networks.network[$nidx].network-data.service-information.global-customer-id -->
+ <!-- AND service-subscription.service-type = $service-data.networks.network[$nidx].network-data.service-information.subscription-service-type' -->
+ <!-- force="true" pfx="tmp.AnAI-data">-->
+ <!--<parameter name="relationship-list.relationship[0].related-to" value="connectivity" />-->
+ <!--<parameter name="relationship-list.relationship[0].related-link" value="`'/network/connectivities/connectivity/' + $prop.sotn.network-id`" />-->
+ <!--<parameter name="relationship-list.relationship[0].relationship-data[0].relationship-key" value="connectivity.connectivity-id" />-->
+ <!--<parameter name="relationship-list.relationship[0].relationship-data[0].relationship-value" value="`$prop.sotn.network-id`" />-->
+ </save>
+ <save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='vpn-binding:relationship-list'
+ key='vpn-binding.vpn-id = $prop.vpn-binding-otnidx-uuid'
+ force="true" pfx="tmp.AnAI-data">
+ <parameter name="relationship-list.relationship[0].related-to" value="connectivity" />
+ <parameter name="relationship-list.relationship[0].related-link" value="`'/network/connectivities/connectivity/' + $uuid.connectivity-otnidx-uuid`" />
+ <parameter name="relationship-list.relationship[0].relationship-data[0].relationship-key" value="connectivity.connectivity-id" />
+ <parameter name="relationship-list.relationship[0].relationship-data[0].relationship-value" value="`$uuid.connectivity-otnidx-uuid`" />
+ </save>
+ <set>
+ <parameter name='slice-instance-id' value='`$tmp.aai.service-instance.service-instance-id`' />
+ </set>
+ </block>
+ </outcome>
+ </switch>
+ </block>
+ </outcome>
+ </switch>
+ </block>
+ </for>
+ <set>
+ <parameter name='domain-A.tunnel-tp-id' value='' />
+ <parameter name='domain-A.node-id' value='' />
+ <parameter name='domain-A.network-id' value="" />
+ <parameter name='domain-A.provider-id' value="" />
+ <parameter name='domain-A.client-id' value="" />
+ <parameter name='domain-A.te-topo-id' value="" />
+ <parameter name='domain-A.network-type' value="" />
+ <parameter name='domain-A.ltpId' value="" />
+ <parameter name='tmp.domain-A.network-id' value="" />
+ <parameter name='tmp.domain-A.ttp-id' value="" />
+ <parameter name='network-route-A' value="" />
+ <!--<parameter name='domain-A.' value="" />-->
+ <parameter name='request-id' value='' />
+ <parameter name='otn-source-node' value='' />
+ <parameter name='otn-dest-node' value='' />
+ <parameter name='bw-odu' value="" />
+ <parameter name='src-ttp-id' value='' />
+ <parameter name='dst-ttp-id' value='' />
+ <parameter name='domain-B.tunnel-tp-id' value='' />
+ <parameter name='domain-B.node-id' value='' />
+ <parameter name='domain-B.network-id' value="" />
+ <parameter name='domain-B.provider-id' value="" />
+ <parameter name='domain-B.client-id' value="" />
+ <parameter name='domain-B.te-topo-id' value="" />
+ <parameter name='domain-B.network-type' value="" />
+ <parameter name='domain-B.ltpId' value="" />
+ <parameter name='tmp.domain-B.network-id' value="" />
+ <parameter name='tmp.domain-B.ttp-id' value="" />
+ <parameter name='network-route-B' value="" />
+ <!--<parameter name='domain-B.' value="" />-->
+ </set>
+ </block>
+ </outcome>
+ </switch>
+ </block>
+ </outcome>
+ </switch>
+ </for>
+ </block>
+ </outcome>
+ </switch>
+ </block>
+ </outcome>
+ </get-resource>
+ </block>
+ </outcome>
+ </get-resource>
+ </for>
+ <get-resource plugin="org.onap.ccsdk.sli.adaptors.aai.AAIService"
+ resource="vpn-bindings"
+ key="selflink = 'https://aai.onap:8443/aai/v21/network/vpn-bindings"
+ local-only="false"
+ pfx="tmp.aai.all-vpn-bindings" >
+ <outcome value='success'>
+ <block atomic="true">
+ <for index='vpnbidx' start='0' end='`$tmp.aai.all-vpn-bindings.vpn-binding_length`' >
+ <block atomic='true'>
+ <!--<switch test="`$tmp.slicevpnuuids[$tmp.aai.all-vpn-bindings.vpn-binding[$vpnbidx].vpn-id] != '' `">-->
+ <!-- Replace vpn-type with slice-id (a new attribbute in the latest AAI) -->
+ <switch test="`$tmp.aai.all-vpn-bindings.vpn-binding[$vpnbidx].ops-note == $tmp.aai.service-instance.service-instance-id `">
+ <outcome value='true'>
+ <block atomic='true'>
+ <set>
+ <parameter name='providerValue' value='`$tmp.aai.all-vpn-bindings.vpn-binding[$vpnbidx].access-provider-id`' />
+ <parameter name='found' value='false' />
+ </set>
+ <switch test='`$tmp.arr_length != 0`'>
+ <outcome value='true'>
+ <block atomic='true'>
+ <for index='arridx' start='0' end='`$tmp.arr_length`' >
+ <switch test='`$tmp.arr[$arridx] == $providerValue`'>
+ <outcome value='true'>
+ <block atomic='true'>
+ <set>
+ <parameter name='found' value='true' />
+ </set>
+ <update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='vpn-binding'
+ key='vpn-binding.vpn-id = $tmp.aai.all-vpn-bindings.vpn-binding[$vpnbidx].vpn-id' >
+ <parameter name='vpn-id' value='`$tmp.aai.all-vpn-bindings.vpn-binding[$vpnbidx].vpn-id`' />
+ <parameter name='vpn-type' value='`$arridx`' />
+ </update>
+ <set>
+ <parameter name='sizeOfSliceList' value='`$otn-tunnel-slice[$arridx].list_length`' />
+ </set>
+ <set>
+ <!--<parameter name='`tmp.arr[$arridx + 1]`' value='`$providerValue`' />-->
+ <!--<parameter name='tmp.arr_length' value='`$tmp.arr_length + 1`' />-->
+ <parameter name='`otn-tunnel-slice[$arridx].list[$sizeOfSliceList].request-id`' value='`$tmp.aai.all-vpn-bindings.vpn-binding[$vpnbidx].vpn-id`' />
+ <parameter name='`otn-tunnel-slice[$arridx].list[$sizeOfSliceList].otn-source-node`' value='`$tmp.aai.all-vpn-bindings.vpn-binding[$vpnbidx].src-access-node-id`' />
+ <parameter name='`otn-tunnel-slice[$arridx].list[$sizeOfSliceList].otn-dest-node`' value='`$tmp.aai.all-vpn-bindings.vpn-binding[$vpnbidx].dst-access-node-id`' />
+ <parameter name='`otn-tunnel-slice[$arridx].list[$sizeOfSliceList].bw-odu`' value="`'0,' + $gfp`" />
+ <parameter name='`otn-tunnel-slice[$arridx].list[$sizeOfSliceList].src-ttp-id`' value='`$tmp.aai.all-vpn-bindings.vpn-binding[$vpnbidx].src-access-ltp-id`' />
+ <parameter name='`otn-tunnel-slice[$arridx].list[$sizeOfSliceList].dst-ttp-id`' value='`$tmp.aai.all-vpn-bindings.vpn-binding[$vpnbidx].dst-access-ltp-id`' />
+ <parameter name='slice-instance-id' value='`$tmp.aai.service-instance.service-instance-id`' />
+ <parameter name='`otn-tunnel-slice[$arridx].list[$sizeOfSliceList].domainurl`' value="`$tmp.aai.all-vpn-bindings.vpn-binding[$vpnbidx].vpn-region`" />
+ <parameter name='`otn-tunnel-slice[$arridx].list[$sizeOfSliceList].domainuser`' value='`$tmp.aai.all-vpn-bindings.vpn-binding[$vpnbidx].vpn-description`' />
+ <parameter name='`otn-tunnel-slice[$arridx].list[$sizeOfSliceList].domainpassword`' value='`$tmp.aai.all-vpn-bindings.vpn-binding[$vpnbidx].vpn-platform`' />
+ <!--<parameter name='otn-tunnel-slice_length' value='`$arridx + 2`' />-->
+ <parameter name='`otn-tunnel-slice[$arridx].list_length`' value='`$sizeOfSliceList + 1`' />
+ </set>
+ <break/>
+ </block>
+ </outcome>
+ <outcome value='false'>
+ <block></block>
+ </outcome>
+ </switch>
+ </for>
+ <switch test='`$found`'>
+ <outcome value='true'>
+ <block></block>
+ </outcome>
+ <outcome value='false'>
+ <block atomic='true'>
+ <update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='vpn-binding'
+ key='vpn-binding.vpn-id = $tmp.aai.all-vpn-bindings.vpn-binding[$vpnbidx].vpn-id' >
+ <parameter name='vpn-id' value='`$tmp.aai.all-vpn-bindings.vpn-binding[$vpnbidx].vpn-id`' />
+ <parameter name='vpn-type' value='`$arridx + 1`' />
+ </update>
+ <set>
+ <parameter name='`tmp.arr[$arridx + 1]`' value='`$providerValue`' />
+ <parameter name='tmp.arr_length' value='`$tmp.arr_length + 1`' />
+ <parameter name='`otn-tunnel-slice[$arridx + 1].list[0].request-id`' value='`$tmp.aai.all-vpn-bindings.vpn-binding[$vpnbidx].vpn-id`' />
+ <parameter name='`otn-tunnel-slice[$arridx + 1].list[0].otn-source-node`' value='`$tmp.aai.all-vpn-bindings.vpn-binding[$vpnbidx].src-access-node-id`' />
+ <parameter name='`otn-tunnel-slice[$arridx + 1].list[0].otn-dest-node`' value='`$tmp.aai.all-vpn-bindings.vpn-binding[$vpnbidx].dst-access-node-id`' />
+ <parameter name='`otn-tunnel-slice[$arridx + 1].list[0].bw-odu`' value="`'0,' + $gfp`" />
+ <parameter name='`otn-tunnel-slice[$arridx + 1].list[0].src-ttp-id`' value='`$tmp.aai.all-vpn-bindings.vpn-binding[$vpnbidx].src-access-ltp-id`' />
+ <parameter name='`otn-tunnel-slice[$arridx + 1].list[0].dst-ttp-id`' value='`$tmp.aai.all-vpn-bindings.vpn-binding[$vpnbidx].dst-access-ltp-id`' />
+ <parameter name='slice-instance-id' value='`$tmp.aai.service-instance.service-instance-id`' />
+ <parameter name='`otn-tunnel-slice[$arridx + 1].list[0].domainurl`' value="`$tmp.aai.all-vpn-bindings.vpn-binding[$vpnbidx].vpn-region`" />
+ <parameter name='`otn-tunnel-slice[$arridx + 1].list[0].domainuser`' value='`$tmp.aai.all-vpn-bindings.vpn-binding[$vpnbidx].vpn-description`' />
+ <parameter name='`otn-tunnel-slice[$arridx + 1].list[0].domainpassword`' value='`$tmp.aai.all-vpn-bindings.vpn-binding[$vpnbidx].vpn-platform`' />
+ <parameter name='otn-tunnel-slice_length' value='`$arridx + 2`' />
+ <parameter name='`otn-tunnel-slice[$arridx + 1].list_length`' value='1' />
+ </set>
+ </block>
+ </outcome>
+ </switch>
+ </block>
+ </outcome>
+ <outcome value='false'>
+ <block atomic='true'>
+ <update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='vpn-binding'
+ key='vpn-binding.vpn-id = $tmp.aai.all-vpn-bindings.vpn-binding[$vpnbidx].vpn-id' >
+ <parameter name='vpn-id' value='`$tmp.aai.all-vpn-bindings.vpn-binding[$vpnbidx].vpn-id`' />
+ <parameter name='vpn-type' value='0' />
+ </update>
+ <set>
+ <parameter name='tmp.arr[0]' value='`$providerValue`' />
+ <parameter name='tmp.arr_length' value='1' />
+ <parameter name='`otn-tunnel-slice[0].list[0].request-id`' value='`$tmp.aai.all-vpn-bindings.vpn-binding[$vpnbidx].vpn-id`' />
+ <parameter name='`otn-tunnel-slice[0].list[0].otn-source-node`' value='`$tmp.aai.all-vpn-bindings.vpn-binding[$vpnbidx].src-access-node-id`' />
+ <parameter name='`otn-tunnel-slice[0].list[0].otn-dest-node`' value='`$tmp.aai.all-vpn-bindings.vpn-binding[$vpnbidx].dst-access-node-id`' />
+ <parameter name='`otn-tunnel-slice[0].list[0].bw-odu`' value="`'0,' + $gfp`" />
+ <parameter name='`otn-tunnel-slice[0].list[0].src-ttp-id`' value='`$tmp.aai.all-vpn-bindings.vpn-binding[$vpnbidx].src-access-ltp-id`' />
+ <parameter name='`otn-tunnel-slice[0].list[0].dst-ttp-id`' value='`$tmp.aai.all-vpn-bindings.vpn-binding[$vpnbidx].dst-access-ltp-id`' />
+ <parameter name='slice-instance-id' value='`$tmp.aai.service-instance.service-instance-id`' />
+ <parameter name='`otn-tunnel-slice[0].list[0].domainurl`' value="`$tmp.aai.all-vpn-bindings.vpn-binding[$vpnbidx].vpn-region`" />
+ <parameter name='`otn-tunnel-slice[0].list[0].domainuser`' value='`$tmp.aai.all-vpn-bindings.vpn-binding[$vpnbidx].vpn-description`' />
+ <parameter name='`otn-tunnel-slice[0].list[0].domainpassword`' value='`$tmp.aai.all-vpn-bindings.vpn-binding[$vpnbidx].vpn-platform`' />
+ <parameter name='otn-tunnel-slice_length' value='1' />
+ <parameter name='otn-tunnel-slice[0].list_length' value='1' />
+ </set>
+ </block>
+ </outcome>
+ </switch>
+ </block>
+ </outcome>
+ <outcome value='false'></outcome>
+ </switch>
+ </block>
+ </for>
+ </block>
+ </outcome>
+ <outcome value='not-found'>
+ <return status='failure'>
+ <parameter name='ack-final' value='Y'/>
+ <parameter name="error-code" value="500" />
+ <parameter name="error-message" value="`'An error occurred while querying pnf from AnAI with pnf-name = ' + $prop.l3vpn.pe1_id`" />
+ </return>
+ </outcome>
+ <outcome value='failure'>
+ <return status='failure'>
+ <parameter name='error-code' value='' />
+ <parameter name='error-message' value='' />
+ </return>
+ </outcome>
+ </get-resource>
+ <for index='dmnsidx' start='0' end='`$otn-tunnel-slice_length`' >
+ <block atomic='true'>
+ <for index='stunidx' start='0' end='`$otn-tunnel-slice[$dmnsidx].list_length`' >
+ <block atomic='true'>
+ <set>
+ <parameter name='`otn-tunnel-sliceG-list[$stunidx].request-id`' value='`$otn-tunnel-slice[$dmnsidx].list[$stunidx].request-id`' />
+ <parameter name='`otn-tunnel-sliceG-list[$stunidx].otn-source-node`' value='`$otn-tunnel-slice[$dmnsidx].list[$stunidx].otn-source-node`' />
+ <parameter name='`otn-tunnel-sliceG-list[$stunidx].otn-dest-node`' value='`$otn-tunnel-slice[$dmnsidx].list[$stunidx].otn-dest-node`' />
+ <parameter name='`otn-tunnel-sliceG-list[$stunidx].bw-odu`' value="`$otn-tunnel-slice[$dmnsidx].list[$stunidx].bw-odu`" />
+ <parameter name='`otn-tunnel-sliceG-list[$stunidx].src-ttp-id`' value='`$otn-tunnel-slice[$dmnsidx].list[$stunidx].src-ttp-id`' />
+ <parameter name='`otn-tunnel-sliceG-list[$stunidx].dst-ttp-id`' value='`$otn-tunnel-slice[$dmnsidx].list[$stunidx].dst-ttp-id`' />
+ <parameter name='slice-instance-id' value='`$tmp.aai.service-instance.service-instance-id`' />
+ <parameter name='otn-tunnel-sliceG-list_length' value='`$stunidx + 1`' />
+ <parameter name="tmp.domainG.restapiUrl" value="`$otn-tunnel-slice[$dmnsidx].list[$stunidx].domainurl`" />
+ <parameter name="tmp.domainG.restapiUser" value="`$otn-tunnel-slice[$dmnsidx].list[$stunidx].domainuser`" />
+ <parameter name="tmp.domainG.restapiPassword" value="`$otn-tunnel-slice[$dmnsidx].list[$stunidx].domainpassword`" />
+ </set>
+ </block>
+ </for>
+ <execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >
+ <parameter name="templateFileName" value="`$prop.restapi.templateDir + '/' + $prop.restapi.transport-sliceG-list-creation.templatefile`" />
+ <parameter name="restapiUrl" value="`$tmp.domainG.restapiUrl + '/restconf/operations/ietf-optical-slice:create-optical-slice'`" />
+ <parameter name="restapiUser" value="`$tmp.domainG.restapiUser`" />
+ <parameter name="restapiPassword" value="`tmp.domainG.restapiPassword`" />
+ <parameter name="format" value="json"/>
+ <parameter name="httpMethod" value="post"/>
+ <parameter name="responsePrefix" value="otn-oof"/>
+ <parameter name="trustStoreFileName" value="/opt/onap/sdnc/data/stores/truststore.onap.client.jks"/>
+ <parameter name="trustStorePassword" value="adminadmin"/>
+ <parameter name="keyStoreFileName" value="/opt/onap/sdnc/data/stores/sdnc.p12"/>
+ <parameter name="keyStorePassword" value="adminadmin"/>
+ <parameter name='customHttpHeaders' value="`'X-ACCESS-TOKEN=' + $prop.sdncRestApi.token_id`" />
+ <outcome value='failure'>
+ <return status='failure'>
+ <parameter name='ack-final' value='Y'/>
+ <parameter name="error-code" value="500" />
+ <parameter name="error-message" value="Error executing slice creation api for domain A" />
+ </return>
+ </outcome>
+ <outcome value='success'>
+ <block></block>
+ </outcome>
+ </execute>
+ </block>
+ </for>
+ </block>
+ </outcome>
+ </switch>
+ </outcome>
+ <outcome value='not-found'>
+ <return status='failure'>
+ <parameter name='ack-final' value='Y'/>
+ <parameter name="error-code" value="500" />
+ <parameter name="error-message" value="`'An error occurred while querying pnf from AnAI with pnf-name = ' + $prop.l3vpn.pe1_id`" />
+ </return>
+ </outcome>
+ <outcome value='failure'>
+ <return status='failure'>
+ <parameter name='error-code' value='' />
+ <parameter name='error-message' value='' />
+ </return>
+ </outcome>
+ </get-resource>
+ <return status='success'>
+ <parameter name="ack-final-indicator" value="Y" />
+ <parameter name="error-code" value="200" />
+ <parameter name="error-message" value="`$error-message`" />
+ </return>
+ </block>
+ </method>
+</service-logic> \ No newline at end of file