+ },\r
+ {\r
+ "id": "49e9447.128b63c",\r
+ "type": "block",\r
+ "name": "block : atomic",\r
+ "xml": "<block atomic=\"true\">",\r
+ "atomic": "true",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 4862,\r
+ "y": 1288,\r
+ "z": "4996e636.3ea08",\r
+ "wires": [\r
+ []\r
+ ]\r
+ },\r
+ {\r
+ "id": "2e78dd82.d5612a",\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": 4238,\r
+ "y": 987,\r
+ "z": "4996e636.3ea08",\r
+ "wires": []\r
+ },\r
+ {\r
+ "id": "c61e9a44.c762a8",\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": 4264,\r
+ "y": 1104,\r
+ "z": "4996e636.3ea08",\r
+ "wires": [\r
+ [\r
+ "58640478.1eeefc",\r
+ "b15b9e00.631398",\r
+ "c5141964.109468"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "58640478.1eeefc",\r
+ "type": "success",\r
+ "name": "success",\r
+ "xml": "<outcome value='success'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 4459.5001220703125,\r
+ "y": 1056,\r
+ "z": "4996e636.3ea08",\r
+ "wires": [\r
+ [\r
+ "9ec63af5.4a1a88"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "b15b9e00.631398",\r
+ "type": "not-found",\r
+ "name": "not-found",\r
+ "xml": "<outcome value='not-found'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 4451.5001220703125,\r
+ "y": 1111,\r
+ "z": "4996e636.3ea08",\r
+ "wires": [\r
+ [\r
+ "a4b9d6d5.39a2c8"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "9ec63af5.4a1a88",\r
+ "type": "block",\r
+ "name": "block",\r
+ "xml": "<block>\n",\r
+ "atomic": "false",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 4603.8824462890625,\r
+ "y": 1055.6556701660156,\r
+ "z": "4996e636.3ea08",\r
+ "wires": [\r
+ [\r
+ "f086ebfd.c8405"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "f086ebfd.c8405",\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": 4788,\r
+ "y": 1054,\r
+ "z": "4996e636.3ea08",\r
+ "wires": [\r
+ [\r
+ "b709cf8e.43e148"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "b709cf8e.43e148",\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": 4983,\r
+ "y": 1054,\r
+ "z": "4996e636.3ea08",\r
+ "wires": [\r
+ [\r
+ "ad439d36.0ced9"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "c5141964.109468",\r
+ "type": "other",\r
+ "name": "other",\r
+ "xml": "<outcome value='Other'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 4456.5001220703125,\r
+ "y": 1168,\r
+ "z": "4996e636.3ea08",\r
+ "wires": [\r
+ [\r
+ "56d134ff.8e34ec"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "56d134ff.8e34ec",\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": 4608.5001220703125,\r
+ "y": 1169,\r
+ "z": "4996e636.3ea08",\r
+ "wires": []\r
+ },\r
+ {\r
+ "id": "a4b9d6d5.39a2c8",\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": 4619.5001220703125,\r
+ "y": 1112,\r
+ "z": "4996e636.3ea08",\r
+ "wires": []\r
+ },\r
+ {\r
+ "id": "cb6a953c.fa71e8",\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": 4295,\r
+ "y": 879,\r
+ "z": "4996e636.3ea08",\r
+ "wires": []\r
+ },\r
+ {\r
+ "id": "ad439d36.0ced9",\r
+ "type": "outcome",\r
+ "name": "esr-thirdparty-sdnc",\r
+ "xml": "<outcome value='esr-thirdparty-sdnc'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 5186,\r
+ "y": 1058,\r
+ "z": "4996e636.3ea08",\r
+ "wires": [\r
+ [\r
+ "cb537ad7.8928d8"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "e839cea.58e4f3",\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": 5571,\r
+ "y": 1071,\r
+ "z": "4996e636.3ea08",\r
+ "wires": [\r
+ [\r
+ "9673ee8e.826088",\r
+ "87202e49.7cf198",\r
+ "ad5371c2.88c47"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "cb537ad7.8928d8",\r
+ "type": "block",\r
+ "name": "block : atomic",\r
+ "xml": "<block atomic=\"true\">",\r
+ "atomic": "true",\r
+ "outputs": 1,\r
+ "x": 5365,\r
+ "y": 1058,\r
+ "z": "4996e636.3ea08",\r
+ "wires": [\r
+ [\r
+ "2fa33243.987c8e",\r
+ "e839cea.58e4f3"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "2fa33243.987c8e",\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": 5601,\r
+ "y": 1019,\r
+ "z": "4996e636.3ea08",\r
+ "wires": []\r
+ },\r
+ {\r
+ "id": "9673ee8e.826088",\r
+ "type": "success",\r
+ "name": "success",\r
+ "xml": "<outcome value='success'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 5781,\r
+ "y": 1062,\r
+ "z": "4996e636.3ea08",\r
+ "wires": [\r
+ [\r
+ "3788c181.11c43e"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "87202e49.7cf198",\r
+ "type": "not-found",\r
+ "name": "not-found",\r
+ "xml": "<outcome value='not-found'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 5773,\r
+ "y": 1117,\r
+ "z": "4996e636.3ea08",\r
+ "wires": [\r
+ [\r
+ "3691dbb8.1b2bf4"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "ad5371c2.88c47",\r
+ "type": "other",\r
+ "name": "other",\r
+ "xml": "<outcome value='Other'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 5778,\r
+ "y": 1174,\r
+ "z": "4996e636.3ea08",\r
+ "wires": [\r
+ [\r
+ "c7f3058f.182658"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "c7f3058f.182658",\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": 5930,\r
+ "y": 1175,\r
+ "z": "4996e636.3ea08",\r
+ "wires": []\r
+ },\r
+ {\r
+ "id": "3691dbb8.1b2bf4",\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": 5941,\r
+ "y": 1120,\r
+ "z": "4996e636.3ea08",\r
+ "wires": []\r
+ },\r
+ {\r
+ "id": "3788c181.11c43e",\r
+ "type": "block",\r
+ "name": "block",\r
+ "xml": "<block>\n",\r
+ "atomic": "false",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 5925.38232421875,\r
+ "y": 1059.6556701660156,\r
+ "z": "4996e636.3ea08",\r
+ "wires": [\r
+ [\r
+ "a3c8eb2b.95af8"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "a3c8eb2b.95af8",\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": 6140,\r
+ "y": 1056,\r
+ "z": "4996e636.3ea08",\r
+ "wires": []\r
+ },\r
+ {\r
+ "id": "2ac9f039.bfa9a8",\r
+ "type": "comment",\r
+ "name": "both src and dst exist",\r
+ "info": "",\r
+ "comments": "",\r
+ "x": 3914,\r
+ "y": 997,\r
+ "z": "4996e636.3ea08",\r
+ "wires": []\r
+ },\r
+ {\r
+ "id": "19520422.b45d4c",\r
+ "type": "switchNode",\r
+ "name": "switch vpn-binding is not already Activated (i.e. is either Created or Modified)",\r
+ "xml": "<switch test=\"`$tmp.aai.vpn-binding.operational-status != 'Activated' `\">\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 2476,\r
+ "y": 724,\r
+ "z": "4996e636.3ea08",\r
+ "wires": [\r
+ [\r
+ "fc6dfa43.dee44",\r
+ "90381d7.56caa6"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "90381d7.56caa6",\r
+ "type": "outcomeFalse",\r
+ "name": "false",\r
+ "xml": "<outcome value='false'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 2883,\r
+ "y": 742,\r
+ "z": "4996e636.3ea08",\r
+ "wires": [\r
+ [\r
+ "d486bdc8.981f98"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "fc6dfa43.dee44",\r
+ "type": "outcomeTrue",\r
+ "name": "true",\r
+ "xml": "<outcome value='true'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 2883,\r
+ "y": 687,\r
+ "z": "4996e636.3ea08",\r
+ "wires": [\r
+ [\r
+ "7563c99.56d39b8"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "7563c99.56d39b8",\r
+ "type": "block",\r
+ "name": "block : atomic",\r
+ "xml": "<block atomic=\"true\">",\r
+ "atomic": "true",\r
+ "outputs": 1,\r
+ "x": 3039,\r
+ "y": 685,\r
+ "z": "4996e636.3ea08",\r
+ "wires": [\r
+ [\r
+ "dcf1d309.aad128",\r
+ "61cd75bc.541bfc"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "d486bdc8.981f98",\r
+ "type": "block",\r
+ "name": "block",\r
+ "xml": "<block>",\r
+ "atomic": "false",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 3016,\r
+ "y": 743,\r
+ "z": "4996e636.3ea08",\r
+ "wires": [\r
+ []\r
+ ]\r