+ "id": "10811a3b.3713ee",\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.l3vpn.pe1_id`\" />\n\n",\r
+ "comments": "",\r
+ "x": 3900.571533203125,\r
+ "y": 331.2857666015625,\r
+ "z": "4d37a11.42c136",\r
+ "wires": []\r
+ },\r
+ {\r
+ "id": "a4b0529d.fb0728",\r
+ "type": "returnFailure",\r
+ "name": "return failure",\r
+ "xml": "<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value='' />\n",\r
+ "comments": "",\r
+ "x": 3899.509033203125,\r
+ "y": 375.426025390625,\r
+ "z": "4d37a11.42c136",\r
+ "wires": []\r
+ },\r
+ {\r
+ "id": "afdb690e.be2878",\r
+ "type": "failure",\r
+ "name": "failure",\r
+ "xml": "<outcome value='failure'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 3740.509033203125,\r
+ "y": 375.426025390625,\r
+ "z": "4d37a11.42c136",\r
+ "wires": [\r
+ [\r
+ "a4b0529d.fb0728"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "589b81b9.57a1a",\r
+ "type": "success",\r
+ "name": "success",\r
+ "xml": "<outcome value='success'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 3747.509033203125,\r
+ "y": 454.426025390625,\r
+ "z": "4d37a11.42c136",\r
+ "wires": [\r
+ [\r
+ "2140264c.6d5f92"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "2140264c.6d5f92",\r
+ "type": "block",\r
+ "name": "block",\r
+ "xml": "<block>\n",\r
+ "atomic": "false",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 3886.509033203125,\r
+ "y": 454.426025390625,\r
+ "z": "4d37a11.42c136",\r
+ "wires": [\r
+ [\r
+ "22cd0794.035c48",\r
+ "fae49c49.31b99"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "22cd0794.035c48",\r
+ "type": "set",\r
+ "name": "set the max bandwidth",\r
+ "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",\r
+ "comments": "",\r
+ "x": 4092,\r
+ "y": 452,\r
+ "z": "4d37a11.42c136",\r
+ "wires": []\r
+ },\r
+ {\r
+ "id": "2546bd9f.525272",\r
+ "type": "execute",\r
+ "name": "execute split tp-id to get pnf-name",\r
+ "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",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 2948,\r
+ "y": 633,\r
+ "z": "4d37a11.42c136",\r
+ "wires": [\r
+ [\r
+ "536f807c.cf39f",\r
+ "47e593b9.b45a3c"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "47e593b9.b45a3c",\r
+ "type": "failure",\r
+ "name": "success",\r
+ "xml": "<outcome value='success'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 3171,\r
+ "y": 619,\r
+ "z": "4d37a11.42c136",\r
+ "wires": [\r
+ [\r
+ "97a737cb.3ff9d8"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "536f807c.cf39f",\r
+ "type": "failure",\r
+ "name": "failure",\r
+ "xml": "<outcome value='failure'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 3173,\r
+ "y": 652,\r
+ "z": "4d37a11.42c136",\r
+ "wires": [\r
+ [\r
+ "2752a0c2.80dc4"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "2752a0c2.80dc4",\r
+ "type": "returnFailure",\r
+ "name": "return failure",\r
+ "xml": "<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value=\"An error occured while splitting sna1_route\" />\n",\r
+ "comments": "",\r
+ "x": 3316,\r
+ "y": 649,\r
+ "z": "4d37a11.42c136",\r
+ "wires": []\r
+ },\r
+ {\r
+ "id": "97a737cb.3ff9d8",\r
+ "type": "block",\r
+ "name": "block : atomic",\r
+ "xml": "<block atomic=\"true\">",\r
+ "atomic": "true",\r
+ "outputs": 1,\r
+ "x": 3319,\r
+ "y": 612,\r
+ "z": "4d37a11.42c136",\r
+ "wires": [\r
+ [\r
+ "50707e3e.984ff",\r
+ "fca22b88.65f128"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "50707e3e.984ff",\r
+ "type": "set",\r
+ "name": "set pnf-name",\r
+ "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",\r
+ "comments": "",\r
+ "x": 3481,\r
+ "y": 607,\r
+ "z": "4d37a11.42c136",\r
+ "wires": []\r
+ },\r
+ {\r
+ "id": "94119745.c4be9",\r
+ "type": "execute",\r
+ "name": "execute split tp-id to get pnf-name",\r
+ "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",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 2962,\r
+ "y": 1469.9998779296875,\r
+ "z": "4d37a11.42c136",\r
+ "wires": [\r
+ [\r
+ "754647f7.9e2b8",\r
+ "657955bd.91fb44"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "657955bd.91fb44",\r
+ "type": "failure",\r
+ "name": "success",\r
+ "xml": "<outcome value='success'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 3185,\r
+ "y": 1455.9998779296875,\r
+ "z": "4d37a11.42c136",\r
+ "wires": [\r
+ [\r
+ "80a7821a.19495"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "754647f7.9e2b8",\r
+ "type": "failure",\r
+ "name": "failure",\r
+ "xml": "<outcome value='failure'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 3187,\r
+ "y": 1488.9998779296875,\r
+ "z": "4d37a11.42c136",\r
+ "wires": [\r
+ [\r
+ "ee8e0ea1.9fea78"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "ee8e0ea1.9fea78",\r
+ "type": "returnFailure",\r
+ "name": "return failure",\r
+ "xml": "<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value=\"An error occured while splitting sna1_route\" />\n",\r
+ "comments": "",\r
+ "x": 3330,\r
+ "y": 1485.9998779296875,\r
+ "z": "4d37a11.42c136",\r
+ "wires": []\r
+ },\r
+ {\r
+ "id": "80a7821a.19495",\r
+ "type": "block",\r
+ "name": "block : atomic",\r
+ "xml": "<block atomic=\"true\">",\r
+ "atomic": "true",\r
+ "outputs": 1,\r
+ "x": 3333,\r
+ "y": 1448.9998779296875,\r
+ "z": "4d37a11.42c136",\r
+ "wires": [\r
+ [\r
+ "413b415f.4e9208",\r
+ "81398c99.8688f"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "413b415f.4e9208",\r
+ "type": "set",\r
+ "name": "set pnf-name",\r
+ "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",\r
+ "comments": "",\r
+ "x": 3527,\r
+ "y": 1452,\r
+ "z": "4d37a11.42c136",\r
+ "wires": []\r
+ },\r
+ {\r
+ "id": "2f5068f1.5086e8",\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": 1073,\r
+ "y": 178,\r
+ "z": "4d37a11.42c136",\r
+ "wires": [\r
+ []\r
+ ]\r
+ },\r
+ {\r
+ "id": "1f17f018.71ce48",\r
+ "type": "execute",\r
+ "name": "execute UUID generator for vpn-binding domainA",\r
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='generateUUID' >\n<parameter name=\"ctx-destination\" value=\"prop.vpn-binding-domainA-uuid\"/>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 2424,\r
+ "y": 2090,\r
+ "z": "4d37a11.42c136",\r
+ "wires": [\r
+ []\r
+ ]\r
+ },\r
+ {\r
+ "id": "75da5f28.16fb78",\r
+ "type": "execute",\r
+ "name": "execute UUID generator for vpn-binding domainB",\r
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='generateUUID' >\n<parameter name=\"ctx-destination\" value=\"prop.vpn-binding-domainB-uuid\"/>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 2422,\r
+ "y": 2378,\r
+ "z": "4d37a11.42c136",\r
+ "wires": [\r
+ []\r
+ ]\r
+ },\r
+ {\r
+ "id": "5b5222c9.d7a36c",\r
+ "type": "for",\r
+ "name": "for each relationship",\r
+ "xml": "<for silentFailure='true' index='pividx' start='0' end='`$tmp.aai.network-route-A.p-interface-src.relationship-list.relationship_length`' >\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 3595,\r
+ "y": 1203,\r
+ "z": "4d37a11.42c136",\r
+ "wires": [\r
+ [\r
+ "57baeaf4.ebf064"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "57baeaf4.ebf064",\r
+ "type": "switchNode",\r
+ "name": "switch related-to",\r
+ "xml": "<switch test='`$tmp.aai.network-route-A.p-interface-src.relationship-list.relationship[$pividx].related-to`'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 3801,\r
+ "y": 1203,\r
+ "z": "4d37a11.42c136",\r
+ "wires": [\r
+ [\r
+ "645e8c5e.f65a7c"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "645e8c5e.f65a7c",\r
+ "type": "outcome",\r
+ "name": "tunnel-termination-point",\r
+ "xml": "<outcome value='tunnel-termination-point'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 4016.28564453125,\r
+ "y": 1202.82177734375,\r
+ "z": "4d37a11.42c136",\r
+ "wires": [\r
+ [\r
+ "894c9d7e.ee38"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "894c9d7e.ee38",\r
+ "type": "block",\r
+ "name": "block : atomic",\r
+ "xml": "<block atomic=\"true\">",\r
+ "atomic": "true",\r
+ "outputs": 1,\r
+ "x": 4223.1171875,\r
+ "y": 1203.34033203125,\r
+ "z": "4d37a11.42c136",\r
+ "wires": [\r
+ [\r
+ "d6f40c53.9a6bf",\r
+ "c910efe.c0a679",\r
+ "50a2016f.cc5d58"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "d6f40c53.9a6bf",\r
+ "type": "set",\r
+ "name": "set source ttp-id",\r
+ "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",\r
+ "comments": "",\r
+ "x": 4438.1171875,\r
+ "y": 1165.34033203125,\r
+ "z": "4d37a11.42c136",\r
+ "wires": []\r
+ },\r
+ {\r
+ "id": "c910efe.c0a679",\r
+ "type": "get-resource",\r
+ "name": "get-resource src TTP",\r
+ "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",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 4435.1171875,\r
+ "y": 1204.34033203125,\r
+ "z": "4d37a11.42c136",\r
+ "wires": [\r
+ [\r
+ "ab61e075.552a9"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "50a2016f.cc5d58",\r
+ "type": "break",\r
+ "name": "break",\r
+ "xml": "<break>\n",\r
+ "comments": "",\r
+ "x": 4390.6171875,\r
+ "y": 1246.34033203125,\r
+ "z": "4d37a11.42c136",\r
+ "wires": []\r
+ },\r
+ {\r
+ "id": "ab61e075.552a9",\r
+ "type": "success",\r
+ "name": "success",\r
+ "xml": "<outcome value='success'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 4615.6171875,\r
+ "y": 1203.34033203125,\r
+ "z": "4d37a11.42c136",\r
+ "wires": [\r
+ [\r
+ "11eef788.e7252"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "11eef788.e7252",\r
+ "type": "block",\r
+ "name": "block : atomic",\r
+ "xml": "<block atomic=\"true\">",\r
+ "atomic": "true",\r
+ "outputs": 1,\r
+ "x": 4773.6171875,\r
+ "y": 1203.34033203125,\r
+ "z": "4d37a11.42c136",\r
+ "wires": [\r
+ [\r
+ "ab0df37c.a4d9e"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "ab0df37c.a4d9e",\r
+ "type": "set",\r
+ "name": "set source tunnel tp ip",\r
+ "xml": "<set>\n<parameter name='source.tunnel-tp-id' value=\"`$tmp.aai.source-ttp.tunnel-tp-id`\" />\n",\r
+ "comments": "",\r
+ "x": 4980.6171875,\r
+ "y": 1203.34033203125,\r
+ "z": "4d37a11.42c136",\r
+ "wires": []\r
+ },\r
+ {\r
+ "id": "3da30ce3.e252e4",\r
+ "type": "for",\r
+ "name": "for each relationship",\r
+ "xml": "<for silentFailure='true' index='dividx' start='0' end='`$tmp.aai.network-route-B.p-interface-dst.relationship-list.relationship_length`' >\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 3592,\r
+ "y": 2072.0001220703125,\r
+ "z": "4d37a11.42c136",\r
+ "wires": [\r
+ [\r
+ "5324422e.146a4c"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "5324422e.146a4c",\r
+ "type": "switchNode",\r
+ "name": "switch related-to",\r
+ "xml": "<switch test='`$tmp.aai.network-route-B.p-interface-dst.relationship-list.relationship[$dividx].related-to`'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 3798,\r
+ "y": 2072.0001220703125,\r
+ "z": "4d37a11.42c136",\r
+ "wires": [\r
+ [\r
+ "a66bf5f9.332a38"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "a66bf5f9.332a38",\r
+ "type": "outcome",\r
+ "name": "tunnel-termination-point",\r
+ "xml": "<outcome value='tunnel-termination-point'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 4013.28564453125,\r
+ "y": 2071.8218994140625,\r
+ "z": "4d37a11.42c136",\r
+ "wires": [\r
+ [\r
+ "68fca589.e390fc"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "68fca589.e390fc",\r
+ "type": "block",\r
+ "name": "block : atomic",\r
+ "xml": "<block atomic=\"true\">",\r
+ "atomic": "true",\r
+ "outputs": 1,\r
+ "x": 4220.1171875,\r
+ "y": 2072.3404541015625,\r
+ "z": "4d37a11.42c136",\r
+ "wires": [\r
+ [\r
+ "c073bf38.974dd",\r
+ "108cc1af.4a86d6",\r
+ "f0b0cdee.26542"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "c073bf38.974dd",\r
+ "type": "set",\r
+ "name": "set destination ttp-id",\r
+ "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",\r
+ "comments": "",\r
+ "x": 4435.1171875,\r
+ "y": 2034.3404541015625,\r
+ "z": "4d37a11.42c136",\r
+ "wires": []\r
+ },\r
+ {\r
+ "id": "108cc1af.4a86d6",\r
+ "type": "get-resource",\r
+ "name": "get-resource src TTP",\r
+ "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",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 4432.1171875,\r
+ "y": 2073.3404541015625,\r
+ "z": "4d37a11.42c136",\r
+ "wires": [\r
+ [\r
+ "b43fbaf.be38548"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "f0b0cdee.26542",\r
+ "type": "break",\r
+ "name": "break",\r
+ "xml": "<break>\n",\r
+ "comments": "",\r
+ "x": 4387.6171875,\r
+ "y": 2115.3404541015625,\r
+ "z": "4d37a11.42c136",\r
+ "wires": []\r
+ },\r
+ {\r
+ "id": "b43fbaf.be38548",\r
+ "type": "success",\r
+ "name": "success",\r
+ "xml": "<outcome value='success'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 4612.6171875,\r
+ "y": 2072.3404541015625,\r
+ "z": "4d37a11.42c136",\r
+ "wires": [\r
+ [\r
+ "f843935.e7b9ef"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "f843935.e7b9ef",\r
+ "type": "block",\r
+ "name": "block : atomic",\r
+ "xml": "<block atomic=\"true\">",\r
+ "atomic": "true",\r
+ "outputs": 1,\r
+ "x": 4770.6171875,\r
+ "y": 2072.3404541015625,\r
+ "z": "4d37a11.42c136",\r
+ "wires": [\r
+ [\r
+ "2905073f.78af38"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "2905073f.78af38",\r
+ "type": "set",\r
+ "name": "set destination tunnel tp ip",\r
+ "xml": "<set>\n<parameter name='destination.tunnel-tp-id' value=\"`$tmp.aai.destination-ttp.tunnel-tp-id`\" />\n",\r
+ "comments": "",\r
+ "x": 4977.6171875,\r
+ "y": 2072.3404541015625,\r
+ "z": "4d37a11.42c136",\r
+ "wires": []\r
+ },\r
+ {\r
+ "id": "47a3a765.16faa",\r
+ "type": "set",\r
+ "name": "set attachment_param domain B",\r
+ "xml": "<set>\n<parameter name='request-id' value='`$prop.vpn-binding-domainB-uuid`' />\n<parameter name='otn-source-node' value='`$domain-B.node-id`' />\n<parameter name='otn-dest-node' value='`$param-prefix-domainB[$param-prefix-domainB_length -3]`' />\n<!--<parameter name='bw-odu' value='`$maximum-bandwidth /10`' />-->\n<parameter name='bw-odu' value=\"`'0,' + $gfp`\" />\n<parameter name='src-ttp-id' value='`$domain-B.tunnel-tp-id`' />\n<!--<parameter name='dst-ttp-id' value='`$destination.tunnel-tp-id`' />-->\n<parameter name='dst-ttp-id' value='' />\n<parameter name='slice-instance-id' value='`$tmp.aai.service-instance.service-instance-id`' />\n\n",\r
+ "comments": "",\r
+ "x": 2353,\r
+ "y": 2999,\r
+ "z": "4d37a11.42c136",\r
+ "wires": []\r
+ },\r
+ {\r
+ "id": "fca22b88.65f128",\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.src.domainA.pnf-name\"\n pfx='tmp.aai.source-pnf' local-only='false' >\n\n <!--AND depth = '0'\"-->\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 3508,\r
+ "y": 679,\r
+ "z": "4d37a11.42c136",\r
+ "wires": [\r
+ [\r
+ "26e1e178.44c626",\r
+ "748c5faa.9b8fd",\r
+ "7a23584.42cb7a8"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "26e1e178.44c626",\r
+ "type": "success",\r
+ "name": "success",\r
+ "xml": "<outcome value='success'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 3703.5001220703125,\r
+ "y": 631,\r
+ "z": "4d37a11.42c136",\r
+ "wires": [\r
+ [\r
+ "4f3cfb5.bd9ae04"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "748c5faa.9b8fd",\r
+ "type": "not-found",\r
+ "name": "not-found",\r
+ "xml": "<outcome value='not-found'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 3695.5001220703125,\r
+ "y": 686,\r
+ "z": "4d37a11.42c136",\r
+ "wires": [\r
+ [\r
+ "7374c1c1.b3ba38"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "7a23584.42cb7a8",\r
+ "type": "other",\r
+ "name": "other",\r
+ "xml": "<outcome value='Other'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 3700.5001220703125,\r
+ "y": 743,\r
+ "z": "4d37a11.42c136",\r
+ "wires": [\r
+ [\r
+ "bf06b166.7b1ab8"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "bf06b166.7b1ab8",\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": 3852.5001220703125,\r
+ "y": 744,\r
+ "z": "4d37a11.42c136",\r
+ "wires": []\r
+ },\r
+ {\r
+ "id": "7374c1c1.b3ba38",\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": 3863.5001220703125,\r
+ "y": 689,\r
+ "z": "4d37a11.42c136",\r
+ "wires": []\r
+ },\r
+ {\r
+ "id": "4f3cfb5.bd9ae04",\r
+ "type": "block",\r
+ "name": "block",\r
+ "xml": "<block>\n",\r
+ "atomic": "false",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 3847.8824462890625,\r
+ "y": 628.6556701660156,\r
+ "z": "4d37a11.42c136",\r
+ "wires": [\r
+ [\r
+ "cc5e035f.d2ea7"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "71b56e6f.bcf72",\r
+ "type": "outcome",\r
+ "name": "esr-thirdparty-sdnc",\r
+ "xml": "<outcome value='esr-thirdparty-sdnc'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 4430,\r
+ "y": 647,\r
+ "z": "4d37a11.42c136",\r
+ "wires": [\r
+ [\r
+ "894c8dc1.732e8"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "894c8dc1.732e8",\r
+ "type": "block",\r
+ "name": "block : atomic",\r
+ "xml": "<block atomic=\"true\">",\r
+ "atomic": "true",\r
+ "outputs": 1,\r
+ "x": 4607,\r
+ "y": 639,\r
+ "z": "4d37a11.42c136",\r
+ "wires": [\r
+ [\r
+ "47f97449.7cbbcc",\r
+ "7c6d32ec.4900b4"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "cc5e035f.d2ea7",\r
+ "type": "for",\r
+ "name": "for each relationship",\r
+ "xml": "<for silentFailure='true' index='spvidx' start='0' end='`$tmp.aai.source-pnf.relationship-list.relationship_length`' >\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 4032,\r
+ "y": 643,\r
+ "z": "4d37a11.42c136",\r
+ "wires": [\r
+ [\r
+ "611703bb.9151dc"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "611703bb.9151dc",\r
+ "type": "switchNode",\r
+ "name": "switch related-to",\r
+ "xml": "<switch test='`$tmp.aai.source-pnf.relationship-list.relationship[$spvidx].related-to`'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 4227,\r
+ "y": 643,\r
+ "z": "4d37a11.42c136",\r
+ "wires": [\r
+ [\r
+ "71b56e6f.bcf72",\r
+ "bf1946eb.ee80a8"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "47f97449.7cbbcc",\r
+ "type": "set",\r
+ "name": "set esr-thirdparty-sdnc domainA id",\r
+ "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",\r
+ "comments": "",\r
+ "x": 4845,\r
+ "y": 594,\r
+ "z": "4d37a11.42c136",\r
+ "wires": []\r
+ },\r
+ {\r
+ "id": "f99473bc.f6917",\r
+ "type": "success",\r
+ "name": "success",\r
+ "xml": "<outcome value='success'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 5025,\r
+ "y": 637,\r
+ "z": "4d37a11.42c136",\r
+ "wires": [\r
+ [\r
+ "701e34ee.427b2c"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "8ca213cb.13c578",\r
+ "type": "not-found",\r
+ "name": "not-found",\r
+ "xml": "<outcome value='not-found'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 5017,\r
+ "y": 692,\r
+ "z": "4d37a11.42c136",\r
+ "wires": [\r
+ [\r
+ "2e4b614b.0c396e"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "73897c92.dacd5c",\r
+ "type": "other",\r
+ "name": "other",\r
+ "xml": "<outcome value='Other'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 5022,\r
+ "y": 749,\r
+ "z": "4d37a11.42c136",\r
+ "wires": [\r
+ [\r
+ "ce57e89b.dcf4b"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "ce57e89b.dcf4b",\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": 5174,\r
+ "y": 750,\r
+ "z": "4d37a11.42c136",\r
+ "wires": []\r
+ },\r
+ {\r
+ "id": "2e4b614b.0c396e",\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": 5185,\r
+ "y": 695,\r
+ "z": "4d37a11.42c136",\r
+ "wires": []\r
+ },\r
+ {\r
+ "id": "701e34ee.427b2c",\r
+ "type": "block",\r
+ "name": "block",\r
+ "xml": "<block>\n",\r
+ "atomic": "false",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 5169.38232421875,\r
+ "y": 634.6556701660156,\r
+ "z": "4d37a11.42c136",\r
+ "wires": [\r
+ [\r
+ "986be552.d67d4"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "986be552.d67d4",\r
+ "type": "set",\r
+ "name": "set controller domainA data",\r
+ "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",\r
+ "comments": "",\r
+ "x": 5384,\r
+ "y": 631,\r
+ "z": "4d37a11.42c136",\r
+ "wires": []\r
+ },\r
+ {\r
+ "id": "81398c99.8688f",\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.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": 3549,\r
+ "y": 1520,\r
+ "z": "4d37a11.42c136",\r
+ "wires": [\r
+ [\r
+ "4228d77e.297a48",\r
+ "f33d7dd3.e27df8",\r
+ "f25d8688.bde06"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "4228d77e.297a48",\r
+ "type": "success",\r
+ "name": "success",\r
+ "xml": "<outcome value='success'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 3744.5001220703125,\r
+ "y": 1472,\r
+ "z": "4d37a11.42c136",\r
+ "wires": [\r
+ [\r
+ "b81f1049.782548"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "f33d7dd3.e27df8",\r
+ "type": "not-found",\r
+ "name": "not-found",\r
+ "xml": "<outcome value='not-found'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 3736.5001220703125,\r
+ "y": 1527,\r
+ "z": "4d37a11.42c136",\r
+ "wires": [\r
+ [\r
+ "cb4038b7.689b5"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "f25d8688.bde06",\r
+ "type": "other",\r
+ "name": "other",\r
+ "xml": "<outcome value='Other'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 3741.5001220703125,\r
+ "y": 1584,\r
+ "z": "4d37a11.42c136",\r
+ "wires": [\r
+ [\r
+ "9d53815.71bad"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "9d53815.71bad",\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": 3893.5001220703125,\r
+ "y": 1585,\r
+ "z": "4d37a11.42c136",\r
+ "wires": []\r
+ },\r
+ {\r
+ "id": "cb4038b7.689b5",\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": 3904.5001220703125,\r
+ "y": 1530,\r
+ "z": "4d37a11.42c136",\r
+ "wires": []\r
+ },\r
+ {\r
+ "id": "b81f1049.782548",\r
+ "type": "block",\r
+ "name": "block",\r
+ "xml": "<block>\n",\r
+ "atomic": "false",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 3888.8824462890625,\r
+ "y": 1469.6556701660156,\r
+ "z": "4d37a11.42c136",\r
+ "wires": [\r
+ [\r
+ "3a1b087b.88796"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "9eaf216b.504558",\r
+ "type": "outcome",\r
+ "name": "esr-thirdparty-sdnc",\r
+ "xml": "<outcome value='esr-thirdparty-sdnc'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 4471,\r
+ "y": 1488,\r
+ "z": "4d37a11.42c136",\r
+ "wires": [\r
+ [\r
+ "848ce8ba.8131a8"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "848ce8ba.8131a8",\r
+ "type": "block",\r
+ "name": "block : atomic",\r
+ "xml": "<block atomic=\"true\">",\r
+ "atomic": "true",\r
+ "outputs": 1,\r
+ "x": 4648,\r
+ "y": 1480,\r
+ "z": "4d37a11.42c136",\r
+ "wires": [\r
+ [\r
+ "91abee3d.323e5",\r
+ "a28d627d.aad29"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "3a1b087b.88796",\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": 4073,\r
+ "y": 1484,\r
+ "z": "4d37a11.42c136",\r
+ "wires": [\r
+ [\r
+ "75ba425.30354bc"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "75ba425.30354bc",\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": 4268,\r
+ "y": 1484,\r
+ "z": "4d37a11.42c136",\r
+ "wires": [\r
+ [\r
+ "9eaf216b.504558",\r
+ "f41408f6.625698"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "a28d627d.aad29",\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.domainB.esr-thirdparty-id AND \n\t\t depth = '1'\"\n pfx='tmp.aai.domainB.esr-thirdparty-sdnc' local-only='false' >",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 4856,\r
+ "y": 1487,\r
+ "z": "4d37a11.42c136",\r
+ "wires": [\r
+ [\r
+ "2c1c230e.a8a514",\r
+ "77340ca1.3f4454",\r
+ "b69cbef8.164728"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "91abee3d.323e5",\r
+ "type": "set",\r
+ "name": "set esr-thirdparty-sdnc domainB id",\r
+ "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",\r
+ "comments": "",\r
+ "x": 4886,\r
+ "y": 1435,\r
+ "z": "4d37a11.42c136",\r
+ "wires": []\r
+ },\r
+ {\r
+ "id": "2c1c230e.a8a514",\r
+ "type": "success",\r
+ "name": "success",\r
+ "xml": "<outcome value='success'>\n",\r