+ "x": 2946,\r
+ "y": 270,\r
+ "z": "bc289cb4.31b288",\r
+ "wires": []\r
+ },\r
+ {\r
+ "id": "198fcdf8.1e22c2",\r
+ "type": "comment",\r
+ "name": "only dst ttp exists. No src",\r
+ "info": "",\r
+ "comments": "",\r
+ "x": 3907,\r
+ "y": 308,\r
+ "z": "bc289cb4.31b288",\r
+ "wires": []\r
+ },\r
+ {\r
+ "id": "ca0cd7a2.5ca728",\r
+ "type": "comment",\r
+ "name": "only src ttp exists. No dst",\r
+ "info": "",\r
+ "comments": "",\r
+ "x": 3464,\r
+ "y": 1886,\r
+ "z": "bc289cb4.31b288",\r
+ "wires": []\r
+ },\r
+ {\r
+ "id": "aacf39c3.b541a",\r
+ "type": "switchNode",\r
+ "name": "switch vpn-binding has src-access-ltp",\r
+ "xml": "<switch test='`$tmp.aai.vpn-binding.src-access-ltp-id`'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 3615,\r
+ "y": 468,\r
+ "z": "bc289cb4.31b288",\r
+ "wires": [\r
+ [\r
+ "df2281b1.f49f38",\r
+ "aea11bc2.879238"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "aea11bc2.879238",\r
+ "type": "other",\r
+ "name": "other",\r
+ "xml": "<outcome value='Other'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 3885,\r
+ "y": 1059,\r
+ "z": "bc289cb4.31b288",\r
+ "wires": [\r
+ [\r
+ "f4291584.31d5f8"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "df2281b1.f49f38",\r
+ "type": "outcome",\r
+ "name": "Null",\r
+ "xml": "<outcome value=''>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 3879,\r
+ "y": 350,\r
+ "z": "bc289cb4.31b288",\r
+ "wires": [\r
+ [\r
+ "b5fbea6d.693118"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "f4291584.31d5f8",\r
+ "type": "block",\r
+ "name": "block : atomic",\r
+ "xml": "<block atomic=\"true\">",\r
+ "atomic": "true",\r
+ "outputs": 1,\r
+ "x": 4043,\r
+ "y": 1058,\r
+ "z": "bc289cb4.31b288",\r
+ "wires": [\r
+ [\r
+ "507acb8a.026844",\r
+ "328f5ebe.d2c3f2",\r
+ "282b55f0.c4b452",\r
+ "f1d5dfc2.902f38",\r
+ "e32fad74.744d"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "328f5ebe.d2c3f2",\r
+ "type": "set",\r
+ "name": "set attachment_param for OTN G",\r
+ "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",\r
+ "comments": "",\r
+ "x": 4307,\r
+ "y": 941,\r
+ "z": "bc289cb4.31b288",\r
+ "wires": []\r
+ },\r
+ {\r
+ "id": "e32fad74.744d",\r
+ "type": "execute",\r
+ "name": "execute RestApiCallNode Create OTN tunnel with token",\r
+ "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`\" />",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 4388,\r
+ "y": 1256,\r
+ "z": "bc289cb4.31b288",\r
+ "wires": [\r
+ [\r
+ "4fa7d7bd.5a2ab",\r
+ "f472be3.5d0074"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "4fa7d7bd.5a2ab",\r
+ "type": "failure",\r
+ "name": "failure",\r
+ "xml": "<outcome value='failure'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 4697.5,\r
+ "y": 1225,\r
+ "z": "bc289cb4.31b288",\r
+ "wires": [\r
+ [\r
+ "1f127e35.6d237a"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "f472be3.5d0074",\r
+ "type": "success",\r
+ "name": "success",\r
+ "xml": "<outcome value='success'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 4702.5,\r
+ "y": 1290,\r
+ "z": "bc289cb4.31b288",\r
+ "wires": [\r
+ [\r
+ "5d6567d4.56edf"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "1f127e35.6d237a",\r
+ "type": "returnFailure",\r
+ "name": "return failure",\r
+ "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",\r
+ "comments": "",\r
+ "x": 4873.5,\r
+ "y": 1225,\r
+ "z": "bc289cb4.31b288",\r
+ "wires": []\r
+ },\r
+ {\r
+ "id": "5d6567d4.56edf",\r
+ "type": "block",\r
+ "name": "block : atomic",\r
+ "xml": "<block atomic=\"true\">",\r
+ "atomic": "true",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 4869,\r
+ "y": 1290,\r
+ "z": "bc289cb4.31b288",\r
+ "wires": [\r
+ []\r
+ ]\r
+ },\r
+ {\r
+ "id": "282b55f0.c4b452",\r
+ "type": "set",\r
+ "name": "set pnf-name",\r
+ "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",\r
+ "comments": "",\r
+ "x": 4245,\r
+ "y": 989,\r
+ "z": "bc289cb4.31b288",\r
+ "wires": []\r
+ },\r
+ {\r
+ "id": "f1d5dfc2.902f38",\r
+ "type": "get-resource",\r
+ "name": "get-resource src pnf",\r
+ "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",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 4271,\r
+ "y": 1106,\r
+ "z": "bc289cb4.31b288",\r
+ "wires": [\r
+ [\r
+ "b1abc6d5.732f1",\r
+ "5f6c0c85.ca44ac",\r
+ "386d37a9.f48098"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "b1abc6d5.732f1",\r
+ "type": "success",\r
+ "name": "success",\r
+ "xml": "<outcome value='success'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 4466.5001220703125,\r
+ "y": 1058,\r
+ "z": "bc289cb4.31b288",\r
+ "wires": [\r
+ [\r
+ "7b990f0b.20c288"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "5f6c0c85.ca44ac",\r
+ "type": "not-found",\r
+ "name": "not-found",\r
+ "xml": "<outcome value='not-found'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 4458.5001220703125,\r
+ "y": 1113,\r
+ "z": "bc289cb4.31b288",\r
+ "wires": [\r
+ [\r
+ "315f8841.f40a1"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "7b990f0b.20c288",\r
+ "type": "block",\r
+ "name": "block",\r
+ "xml": "<block>\n",\r
+ "atomic": "false",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 4610.8824462890625,\r
+ "y": 1057.6556701660156,\r
+ "z": "bc289cb4.31b288",\r
+ "wires": [\r
+ [\r
+ "c8fb728b.2dc648"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "c8fb728b.2dc648",\r
+ "type": "for",\r
+ "name": "for each relationship",\r
+ "xml": "<for silentFailure='true' index='spvidx' start='0' end='`$tmp.aai.domainG-pnf.relationship-list.relationship_length`' >\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 4795,\r
+ "y": 1056,\r
+ "z": "bc289cb4.31b288",\r
+ "wires": [\r
+ [\r
+ "d59f0b39.d31cc8"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "d59f0b39.d31cc8",\r
+ "type": "switchNode",\r
+ "name": "switch related-to",\r
+ "xml": "<switch test='`$tmp.aai.domainG-pnf.relationship-list.relationship[$spvidx].related-to`'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 4990,\r
+ "y": 1056,\r
+ "z": "bc289cb4.31b288",\r
+ "wires": [\r
+ [\r
+ "7e05c38e.6d5cbc"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "386d37a9.f48098",\r
+ "type": "other",\r
+ "name": "other",\r
+ "xml": "<outcome value='Other'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 4463.5001220703125,\r
+ "y": 1170,\r
+ "z": "bc289cb4.31b288",\r
+ "wires": [\r
+ [\r
+ "46492ab4.cb6c04"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "46492ab4.cb6c04",\r
+ "type": "returnFailure",\r
+ "name": "return failure",\r
+ "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",\r
+ "comments": "",\r
+ "x": 4615.5001220703125,\r
+ "y": 1171,\r
+ "z": "bc289cb4.31b288",\r
+ "wires": []\r
+ },\r
+ {\r
+ "id": "315f8841.f40a1",\r
+ "type": "returnFailure",\r
+ "name": "return failure",\r
+ "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",\r
+ "comments": "",\r
+ "x": 4626.5001220703125,\r
+ "y": 1114,\r
+ "z": "bc289cb4.31b288",\r
+ "wires": []\r
+ },\r
+ {\r
+ "id": "507acb8a.026844",\r
+ "type": "set",\r
+ "name": "set vpn-bindingG and connectivityG",\r
+ "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",\r
+ "comments": "",\r
+ "x": 4302,\r
+ "y": 881,\r
+ "z": "bc289cb4.31b288",\r
+ "wires": []\r
+ },\r
+ {\r
+ "id": "7e05c38e.6d5cbc",\r
+ "type": "outcome",\r
+ "name": "esr-thirdparty-sdnc",\r
+ "xml": "<outcome value='esr-thirdparty-sdnc'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 5193,\r
+ "y": 1060,\r
+ "z": "bc289cb4.31b288",\r
+ "wires": [\r
+ [\r
+ "436389a3.57fb78"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "6a766cec.04fc1c",\r
+ "type": "execute",\r
+ "name": "get esr-thirdparty-sdnc",\r
+ "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' >",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 5578,\r
+ "y": 1073,\r
+ "z": "bc289cb4.31b288",\r
+ "wires": [\r
+ [\r
+ "985e5e77.801e6",\r
+ "a10da0b1.afaa18",\r
+ "4e466bf1.fc05c4"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "436389a3.57fb78",\r
+ "type": "block",\r
+ "name": "block : atomic",\r
+ "xml": "<block atomic=\"true\">",\r
+ "atomic": "true",\r
+ "outputs": 1,\r
+ "x": 5372,\r
+ "y": 1060,\r
+ "z": "bc289cb4.31b288",\r
+ "wires": [\r
+ [\r
+ "507f9c6b.ef2c2c",\r
+ "6a766cec.04fc1c"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "507f9c6b.ef2c2c",\r
+ "type": "set",\r
+ "name": "set esr-thirdparty-sdnc domainG id",\r
+ "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",\r
+ "comments": "",\r
+ "x": 5608,\r
+ "y": 1021,\r
+ "z": "bc289cb4.31b288",\r
+ "wires": []\r
+ },\r
+ {\r
+ "id": "985e5e77.801e6",\r
+ "type": "success",\r
+ "name": "success",\r
+ "xml": "<outcome value='success'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 5788,\r
+ "y": 1064,\r
+ "z": "bc289cb4.31b288",\r
+ "wires": [\r
+ [\r
+ "37e160ea.8f86d8"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "a10da0b1.afaa18",\r
+ "type": "not-found",\r
+ "name": "not-found",\r
+ "xml": "<outcome value='not-found'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 5780,\r
+ "y": 1119,\r
+ "z": "bc289cb4.31b288",\r
+ "wires": [\r
+ [\r
+ "81ccddb5.3e1b1"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "4e466bf1.fc05c4",\r
+ "type": "other",\r
+ "name": "other",\r
+ "xml": "<outcome value='Other'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 5785,\r
+ "y": 1176,\r
+ "z": "bc289cb4.31b288",\r
+ "wires": [\r
+ [\r
+ "c4f4a10b.e46a6"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "c4f4a10b.e46a6",\r
+ "type": "returnFailure",\r
+ "name": "return failure",\r
+ "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",\r
+ "comments": "",\r
+ "x": 5937,\r
+ "y": 1177,\r
+ "z": "bc289cb4.31b288",\r
+ "wires": []\r
+ },\r
+ {\r
+ "id": "81ccddb5.3e1b1",\r
+ "type": "returnFailure",\r
+ "name": "return failure",\r
+ "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",\r
+ "comments": "",\r
+ "x": 5948,\r
+ "y": 1122,\r
+ "z": "bc289cb4.31b288",\r
+ "wires": []\r
+ },\r
+ {\r
+ "id": "37e160ea.8f86d8",\r
+ "type": "block",\r
+ "name": "block",\r
+ "xml": "<block>\n",\r
+ "atomic": "false",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 5932.38232421875,\r
+ "y": 1061.6556701660156,\r
+ "z": "bc289cb4.31b288",\r
+ "wires": [\r
+ [\r
+ "4cbb09e8.a29488"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "4cbb09e8.a29488",\r
+ "type": "set",\r
+ "name": "set controller domainG data",\r
+ "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",\r
+ "comments": "",\r
+ "x": 6147,\r
+ "y": 1058,\r
+ "z": "bc289cb4.31b288",\r
+ "wires": []\r
+ },\r
+ {\r
+ "id": "28d376a3.473102",\r
+ "type": "comment",\r
+ "name": "both src and dst exist",\r
+ "info": "",\r
+ "comments": "",\r
+ "x": 3921,\r
+ "y": 999,\r
+ "z": "bc289cb4.31b288",\r