+ "x": 6240,\r
+ "y": 271,\r
+ "z": "bc289cb4.31b288",\r
+ "wires": []\r
+ },\r
+ {\r
+ "id": "2a368168.cab60e",\r
+ "type": "execute",\r
+ "name": "execute properties",\r
+ "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' />",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 707,\r
+ "y": 451,\r
+ "z": "bc289cb4.31b288",\r
+ "wires": [\r
+ []\r
+ ]\r
+ },\r
+ {\r
+ "id": "3bea0429.f0ebac",\r
+ "type": "set",\r
+ "name": "set attachment_param for OTN B",\r
+ "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",\r
+ "comments": "",\r
+ "x": 3807,\r
+ "y": 1611,\r
+ "z": "bc289cb4.31b288",\r
+ "wires": []\r
+ },\r
+ {\r
+ "id": "d501f859.eecd18",\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-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`\" />",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 3870,\r
+ "y": 1940,\r
+ "z": "bc289cb4.31b288",\r
+ "wires": [\r
+ [\r
+ "8a516999.f983f8",\r
+ "e1e3477c.cb45b"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "8a516999.f983f8",\r
+ "type": "failure",\r
+ "name": "failure",\r
+ "xml": "<outcome value='failure'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 4165.5,\r
+ "y": 1907,\r
+ "z": "bc289cb4.31b288",\r
+ "wires": [\r
+ [\r
+ "1f32cbd.2007fb4"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "e1e3477c.cb45b",\r
+ "type": "success",\r
+ "name": "success",\r
+ "xml": "<outcome value='success'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 4170.5,\r
+ "y": 1972,\r
+ "z": "bc289cb4.31b288",\r
+ "wires": [\r
+ [\r
+ "5be15aea.63aa2c"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "1f32cbd.2007fb4",\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": 4333.5,\r
+ "y": 1907,\r
+ "z": "bc289cb4.31b288",\r
+ "wires": []\r
+ },\r
+ {\r
+ "id": "5be15aea.63aa2c",\r
+ "type": "block",\r
+ "name": "block : atomic",\r
+ "xml": "<block atomic=\"true\">",\r
+ "atomic": "true",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 4344,\r
+ "y": 1972,\r
+ "z": "bc289cb4.31b288",\r
+ "wires": [\r
+ []\r
+ ]\r
+ },\r
+ {\r
+ "id": "32f45e6c.4d0bea",\r
+ "type": "set",\r
+ "name": "set pnf-name",\r
+ "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",\r
+ "comments": "",\r
+ "x": 3746,\r
+ "y": 1668,\r
+ "z": "bc289cb4.31b288",\r
+ "wires": []\r
+ },\r
+ {\r
+ "id": "e8ca7925.e0f8c",\r
+ "type": "get-resource",\r
+ "name": "get-resource dst pnf",\r
+ "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",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 3766,\r
+ "y": 1765,\r
+ "z": "bc289cb4.31b288",\r
+ "wires": [\r
+ [\r
+ "9bb092a5.d05b48",\r
+ "221dd2f3.9ac236",\r
+ "26d51b0f.5d004c"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "9bb092a5.d05b48",\r
+ "type": "success",\r
+ "name": "success",\r
+ "xml": "<outcome value='success'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 3968.5001220703125,\r
+ "y": 1718,\r
+ "z": "bc289cb4.31b288",\r
+ "wires": [\r
+ [\r
+ "b690bac2.55724"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "221dd2f3.9ac236",\r
+ "type": "not-found",\r
+ "name": "not-found",\r
+ "xml": "<outcome value='not-found'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 3960.5001220703125,\r
+ "y": 1773,\r
+ "z": "bc289cb4.31b288",\r
+ "wires": [\r
+ [\r
+ "b19648bb.51984"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "b690bac2.55724",\r
+ "type": "block",\r
+ "name": "block",\r
+ "xml": "<block>\n",\r
+ "atomic": "false",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 4112.8824462890625,\r
+ "y": 1715.6556701660156,\r
+ "z": "bc289cb4.31b288",\r
+ "wires": [\r
+ [\r
+ "bc889fde.13a798"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "bc889fde.13a798",\r
+ "type": "for",\r
+ "name": "for each relationship",\r
+ "xml": "<for silentFailure='true' index='dpvidx' start='0' end='`$tmp.aai.destination-pnf.relationship-list.relationship_length`' >\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 4297,\r
+ "y": 1730,\r
+ "z": "bc289cb4.31b288",\r
+ "wires": [\r
+ [\r
+ "6cdbe20d.6924d4"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "26d51b0f.5d004c",\r
+ "type": "other",\r
+ "name": "other",\r
+ "xml": "<outcome value='Other'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 3965.5001220703125,\r
+ "y": 1830,\r
+ "z": "bc289cb4.31b288",\r
+ "wires": [\r
+ [\r
+ "5f4cb2c4.11fb94"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "5f4cb2c4.11fb94",\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": 4117.5001220703125,\r
+ "y": 1831,\r
+ "z": "bc289cb4.31b288",\r
+ "wires": []\r
+ },\r
+ {\r
+ "id": "b19648bb.51984",\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": 4128.5001220703125,\r
+ "y": 1776,\r
+ "z": "bc289cb4.31b288",\r
+ "wires": []\r
+ },\r
+ {\r
+ "id": "73a1b393.2e09c4",\r
+ "type": "outcome",\r
+ "name": "esr-thirdparty-sdnc",\r
+ "xml": "<outcome value='esr-thirdparty-sdnc'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 4695,\r
+ "y": 1734,\r
+ "z": "bc289cb4.31b288",\r
+ "wires": [\r
+ [\r
+ "ab9ee354.2292b"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "6cdbe20d.6924d4",\r
+ "type": "switchNode",\r
+ "name": "switch related-to",\r
+ "xml": "<switch test='`$tmp.aai.destination-pnf.relationship-list.relationship[$dpvidx].related-to`'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 4492,\r
+ "y": 1730,\r
+ "z": "bc289cb4.31b288",\r