+ },\r
+ {\r
+ "id": "b21b1a8d.ec399",\r
+ "type": "outcome",\r
+ "name": "ROOT",\r
+ "xml": "<outcome value='ROOT'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 4134.816635131836,\r
+ "y": 822.8998565673828,\r
+ "z": "1b4ba1fc.83240e",\r
+ "wires": [\r
+ [\r
+ "c5a6386c.ce6e1"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "40a89314.47b21c",\r
+ "type": "outcome",\r
+ "name": "LEAF",\r
+ "xml": "<outcome value='LEAF'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 4130.816635131836,\r
+ "y": 878.8998565673828,\r
+ "z": "1b4ba1fc.83240e",\r
+ "wires": [\r
+ [\r
+ "12081a23.d55f7e"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "c5a6386c.ce6e1",\r
+ "type": "block",\r
+ "name": "block",\r
+ "xml": "<block>\n",\r
+ "atomic": "false",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 4260.816635131836,\r
+ "y": 830.8998565673828,\r
+ "z": "1b4ba1fc.83240e",\r
+ "wires": [\r
+ [\r
+ "bedffac2.d82048",\r
+ "6105d759.fbeec8"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "12081a23.d55f7e",\r
+ "type": "block",\r
+ "name": "block",\r
+ "xml": "<block>\n",\r
+ "atomic": "false",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 4263.816635131836,\r
+ "y": 883.8998565673828,\r
+ "z": "1b4ba1fc.83240e",\r
+ "wires": [\r
+ [\r
+ "7ef90f2d.cab8",\r
+ "728a110f.c5d4a8"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "f3bd5a06.f854e",\r
+ "type": "outcome",\r
+ "name": "SECONDARY-ROOT",\r
+ "xml": "<outcome value='SECONDARY-ROOT'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 4123.816635131836,\r
+ "y": 956.8998565673828,\r
+ "z": "1b4ba1fc.83240e",\r
+ "wires": [\r
+ [\r
+ "a50b1577.32615"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "a50b1577.32615",\r
+ "type": "block",\r
+ "name": "block",\r
+ "xml": "<block>\n",\r
+ "atomic": "false",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 4279.816635131836,\r
+ "y": 977.8998565673828,\r
+ "z": "1b4ba1fc.83240e",\r
+ "wires": [\r
+ [\r
+ "8c375d88.8bcbe",\r
+ "79733ca8.98d714"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "bedffac2.d82048",\r
+ "type": "set",\r
+ "name": "set network-route-ROOT",\r
+ "xml": "<set>\n<parameter name='tmp.aai.network-route-ROOT.' value=\"`$tmp.aai.network-route-two.`\" />\n\n\n",\r
+ "comments": "",\r
+ "x": 4507.816635131836,\r
+ "y": 860.8998565673828,\r
+ "z": "1b4ba1fc.83240e",\r
+ "wires": []\r
+ },\r
+ {\r
+ "id": "6105d759.fbeec8",\r
+ "type": "set",\r
+ "name": "set network-route-B",\r
+ "xml": "<set>\n<parameter name='tmp.aai.network-route-B.' value=\"`$tmp.aai.network-route-two.`\" />\n\n\n",\r
+ "comments": "",\r
+ "x": 4499.816635131836,\r
+ "y": 902.8998565673828,\r
+ "z": "1b4ba1fc.83240e",\r
+ "wires": []\r
+ },\r
+ {\r
+ "id": "7ef90f2d.cab8",\r
+ "type": "set",\r
+ "name": "set network-route-LEAF",\r
+ "xml": "<set>\n<parameter name='tmp.aai.network-route-LEAF.' value=\"`$tmp.aai.network-route-two.`\" />\n\n\n",\r
+ "comments": "",\r
+ "x": 4500.816635131836,\r
+ "y": 954.8998565673828,\r
+ "z": "1b4ba1fc.83240e",\r
+ "wires": []\r
+ },\r
+ {\r
+ "id": "728a110f.c5d4a8",\r
+ "type": "set",\r
+ "name": "set network-route-A",\r
+ "xml": "<set>\n<parameter name='tmp.aai.network-route-A.' value=\"`$tmp.aai.network-route-two.`\" />\n\n\n",\r
+ "comments": "",\r
+ "x": 4487.816635131836,\r
+ "y": 994.8998565673828,\r
+ "z": "1b4ba1fc.83240e",\r
+ "wires": []\r
+ },\r
+ {\r
+ "id": "79733ca8.98d714",\r
+ "type": "set",\r
+ "name": "set network-route-C",\r
+ "xml": "<set>\n<parameter name='tmp.aai.network-route-C.' value=\"`$tmp.aai.network-route-three.`\" />\n\n\n",\r
+ "comments": "",\r
+ "x": 4461.816635131836,\r
+ "y": 1088.8998565673828,\r
+ "z": "1b4ba1fc.83240e",\r
+ "wires": []\r
+ },\r
+ {\r
+ "id": "8c375d88.8bcbe",\r
+ "type": "set",\r
+ "name": "set network-route-SECONDARY-ROOT",\r
+ "xml": "<set>\n<parameter name='tmp.aai.network-route-SECONDARY-ROOT.' value=\"`$tmp.aai.network-route-three.`\" />\n\n\n",\r
+ "comments": "",\r
+ "x": 4523.816635131836,\r
+ "y": 1044.8998565673828,\r
+ "z": "1b4ba1fc.83240e",\r
+ "wires": []\r
+ },\r
+ {\r
+ "id": "663710d5.9b6118",\r
+ "type": "block",\r
+ "name": "block : atomic",\r
+ "xml": "<block atomic=\"true\">",\r
+ "atomic": "true",\r
+ "outputs": 1,\r
+ "x": 3725.816665649414,\r
+ "y": 2228.566665649414,\r
+ "z": "1b4ba1fc.83240e",\r
+ "wires": [\r
+ [\r
+ "4284e0ad.37004",\r
+ "54bef6f2.4fc7a"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "16d496be.188cb9",\r
+ "type": "success",\r
+ "name": "success",\r
+ "xml": "<outcome value='success'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 3553.150161743164,\r
+ "y": 2229.566665649414,\r
+ "z": "1b4ba1fc.83240e",\r
+ "wires": [\r
+ [\r
+ "663710d5.9b6118"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "545ddc0c.5d5ecc",\r
+ "type": "not-found",\r
+ "name": "not-found",\r
+ "xml": "<outcome value='not-found'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 3562.641128540039,\r
+ "y": 2272.1407012939453,\r
+ "z": "1b4ba1fc.83240e",\r
+ "wires": [\r
+ []\r
+ ]\r
+ },\r
+ {\r
+ "id": "5e1fc0e8.d800d8",\r
+ "type": "failure",\r
+ "name": "failure",\r
+ "xml": "<outcome value='failure'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 3551.150161743164,\r
+ "y": 2318.566665649414,\r
+ "z": "1b4ba1fc.83240e",\r
+ "wires": [\r
+ []\r
+ ]\r
+ },\r
+ {\r
+ "id": "4284e0ad.37004",\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-C.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-domainC\"/>\n\n\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 4016.150161743164,\r
+ "y": 2244.566665649414,\r
+ "z": "1b4ba1fc.83240e",\r
+ "wires": [\r
+ [\r
+ "7adfe0fe.0b09c",\r
+ "70e2db35.da559c"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "70e2db35.da559c",\r
+ "type": "failure",\r
+ "name": "success",\r
+ "xml": "<outcome value='success'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 4239.150161743164,\r
+ "y": 2199.566665649414,\r
+ "z": "1b4ba1fc.83240e",\r
+ "wires": [\r
+ [\r
+ "624b6d74.0c220c"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "7adfe0fe.0b09c",\r
+ "type": "failure",\r
+ "name": "failure",\r
+ "xml": "<outcome value='failure'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 4241.150161743164,\r
+ "y": 2263.566665649414,\r
+ "z": "1b4ba1fc.83240e",\r
+ "wires": [\r
+ [\r
+ "44c8e026.3089e"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "71a7eba7.ddb6fc",\r
+ "type": "save",\r
+ "name": "get p-interface-dst from aai",\r
+ "xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\tresource=\"p-interface\"\n\t key=\"pnf.pnf-name = $tmp.dst.domainC.pnf-name\n\t AND p-interface.interface-name = $tmp.aai.network-route-C.next-hop\"\n\t\tlocal-only=\"false\" \n\t\tpfx=\"tmp.aai.network-route-C.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",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 3347.150161743164,\r
+ "y": 2250.566665649414,\r
+ "z": "1b4ba1fc.83240e",\r
+ "wires": [\r
+ [\r
+ "16d496be.188cb9",\r
+ "545ddc0c.5d5ecc",\r
+ "5e1fc0e8.d800d8"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "720f0fd3.e06eb",\r
+ "type": "comment",\r
+ "name": "Question?",\r
+ "info": "How to know if DG would send this get request\nin \"nodes\" namespace instead of \"network\" namespace?",\r
+ "comments": "",\r
+ "x": 3286.150161743164,\r
+ "y": 2208.566665649414,\r
+ "z": "1b4ba1fc.83240e",\r
+ "wires": []\r
+ },\r
+ {\r
+ "id": "dab7847.8f75af8",\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-C.next-hop`'/>\n<!--<parameter name=\"regex\" value=\"[^-]+$\"/>-->\n<parameter name=\"regex\" value=\"[-]+\"/>\n<parameter name=\"ctx_memory_result_key\" value=\"param-prefix-domainC-pnfName\"/>\n\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 3367.150161743164,\r
+ "y": 2098.566665649414,\r
+ "z": "1b4ba1fc.83240e",\r
+ "wires": [\r
+ [\r
+ "bb6830ab.78043",\r
+ "943e3a24.27d0d"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "943e3a24.27d0d",\r
+ "type": "failure",\r
+ "name": "success",\r
+ "xml": "<outcome value='success'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 3590.150161743164,\r
+ "y": 2084.566665649414,\r
+ "z": "1b4ba1fc.83240e",\r
+ "wires": [\r
+ [\r
+ "14789ba.27922e4"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "bb6830ab.78043",\r
+ "type": "failure",\r
+ "name": "failure",\r
+ "xml": "<outcome value='failure'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 3592.150161743164,\r
+ "y": 2117.566665649414,\r
+ "z": "1b4ba1fc.83240e",\r
+ "wires": [\r
+ []\r
+ ]\r
+ },\r
+ {\r
+ "id": "14789ba.27922e4",\r
+ "type": "block",\r
+ "name": "block : atomic",\r
+ "xml": "<block atomic=\"true\">",\r
+ "atomic": "true",\r
+ "outputs": 1,\r
+ "x": 3738.150161743164,\r
+ "y": 2077.566665649414,\r
+ "z": "1b4ba1fc.83240e",\r
+ "wires": [\r
+ [\r
+ "f084bd9b.374fe",\r
+ "635334a7.ad5104"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "f084bd9b.374fe",\r
+ "type": "set",\r
+ "name": "set pnf-name",\r
+ "xml": "<set>\n<parameter name='tmp.dst.domainC.pnf-name' value=\"`$param-prefix-domainC-pnfName[0] + '-' +\n $param-prefix-domainC-pnfName[1] + '-' +\n $param-prefix-domainC-pnfName[2] + '-' +\n $param-prefix-domainC-pnfName[3] + '-' +\n $param-prefix-domainC-pnfName[4] + '-' +\n $param-prefix-domainC-pnfName[5] + '-' +\n $param-prefix-domainC-pnfName[6] + '-' +\n $param-prefix-domainC-pnfName[7] + '-' +\n $param-prefix-domainC-pnfName[8]`\" />\n",\r
+ "comments": "",\r
+ "x": 3930.1500396728516,\r
+ "y": 2014.566665649414,\r
+ "z": "1b4ba1fc.83240e",\r
+ "wires": []\r
+ },\r
+ {\r
+ "id": "54bef6f2.4fc7a",\r
+ "type": "for",\r
+ "name": "for each relationship",\r
+ "xml": "<for silentFailure='true' index='dividx' start='0' end='`$tmp.aai.network-route-C.p-interface-dst.relationship-list.relationship_length`' >\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 3997.150161743164,\r
+ "y": 2375.566665649414,\r
+ "z": "1b4ba1fc.83240e",\r
+ "wires": [\r
+ [\r
+ "2fc07773.c6e698"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "2fc07773.c6e698",\r
+ "type": "switchNode",\r
+ "name": "switch related-to",\r
+ "xml": "<switch test='`$tmp.aai.network-route-C.p-interface-dst.relationship-list.relationship[$dividx].related-to`'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 4203.150161743164,\r
+ "y": 2375.566665649414,\r
+ "z": "1b4ba1fc.83240e",\r
+ "wires": [\r
+ [\r
+ "eda47f6d.73a9a"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "635334a7.ad5104",\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.domainC.pnf-name\"\n pfx='tmp.aai.destination-secondary-pnf' local-only='false' >\n\n <!--AND depth = '0'\"-->\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 3952.1500396728516,\r
+ "y": 2082.566665649414,\r
+ "z": "1b4ba1fc.83240e",\r
+ "wires": [\r
+ [\r
+ "fd3d2e45.ba5c18",\r
+ "6f65faaa.29e51c",\r
+ "979b3e61.62e1e8"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "fd3d2e45.ba5c18",\r
+ "type": "success",\r
+ "name": "success",\r
+ "xml": "<outcome value='success'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 4147.650161743164,\r
+ "y": 2034.566665649414,\r
+ "z": "1b4ba1fc.83240e",\r
+ "wires": [\r
+ [\r
+ "76cbe983.f31c3"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "6f65faaa.29e51c",\r
+ "type": "not-found",\r
+ "name": "not-found",\r
+ "xml": "<outcome value='not-found'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 4139.650161743164,\r
+ "y": 2089.566665649414,\r
+ "z": "1b4ba1fc.83240e",\r
+ "wires": [\r
+ [\r
+ "ad429934.3c84f"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "979b3e61.62e1e8",\r
+ "type": "other",\r
+ "name": "other",\r
+ "xml": "<outcome value='Other'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 4144.650161743164,\r
+ "y": 2146.566665649414,\r
+ "z": "1b4ba1fc.83240e",\r
+ "wires": [\r
+ [\r
+ "bbff5204.a70cf8"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "bbff5204.a70cf8",\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": 4296.650161743164,\r
+ "y": 2147.566665649414,\r
+ "z": "1b4ba1fc.83240e",\r
+ "wires": []\r
+ },\r
+ {\r
+ "id": "76cbe983.f31c3",\r
+ "type": "block",\r
+ "name": "block",\r
+ "xml": "<block>\n",\r
+ "atomic": "false",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 4292.032485961914,\r
+ "y": 2032.2223358154297,\r
+ "z": "1b4ba1fc.83240e",\r
+ "wires": [\r
+ [\r
+ "181d9117.3dc1c7"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "a71111e6.40602",\r
+ "type": "set",\r
+ "name": "set SECONDARY-ROOT stuff",\r
+ "xml": "<set>\n<parameter name='tmp.SECONDARY-ROOT.pnf-name-long' value=\"`$param-prefix-domainC-pnfName[0] + '-' +\n $param-prefix-domainC-pnfName[1] + '-' +\n $param-prefix-domainC-pnfName[2] + '-' +\n $param-prefix-domainC-pnfName[3] + '-' +\n $param-prefix-domainC-pnfName[4] + '-' +\n $param-prefix-domainC-pnfName[5] + '-' +\n $param-prefix-domainC-pnfName[6] + '-' +\n $param-prefix-domainC-pnfName[7] + '-' +\n $param-prefix-domainC-pnfName[8]`\" />\n\n<!--<parameter name='tmp.ROOT.pnf-name-short' value=\"`$param-prefix-domainB-pnfName[8]`\" />-->\n<parameter name='tmp.SECONDARY-ROOT.pnf-name-short' value=\"`$tmp.dst-secondary.pnf-name`\" />\n\n<parameter name='tmp.SECONDARY-ROOT.uni-p-interface-long' value=\"`$tmp.aai.network-route-C.next-hop + '-' + $tmp.aai.network-route-C.logical-interface-id`\" />\n<parameter name='tmp.SECONDARY-ROOT.uni-tp-id' value=\"`$tmp.dst-secondary.ltpId`\" />\n",\r
+ "comments": "",\r
+ "x": 3347.816665649414,\r
+ "y": 2343.566665649414,\r
+ "z": "1b4ba1fc.83240e",\r
+ "wires": []\r
+ },\r
+ {\r
+ "id": "f86bd22d.6a796",\r
+ "type": "comment",\r
+ "name": "NOT NEEDED ANYMORE?",\r
+ "info": "",\r
+ "comments": "",\r
+ "x": 4026.816635131836,\r
+ "y": 2319.5665130615234,\r
+ "z": "1b4ba1fc.83240e",\r
+ "wires": []\r
+ },\r
+ {\r
+ "id": "44c8e026.3089e",\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": 4400.150161743164,\r
+ "y": 2282.566665649414,\r
+ "z": "1b4ba1fc.83240e",\r
+ "wires": []\r
+ },\r
+ {\r
+ "id": "624b6d74.0c220c",\r
+ "type": "block",\r
+ "name": "block : atomic",\r
+ "xml": "<block atomic=\"true\">",\r
+ "atomic": "true",\r
+ "outputs": 1,\r
+ "x": 4404.150161743164,\r
+ "y": 2196.566665649414,\r
+ "z": "1b4ba1fc.83240e",\r
+ "wires": [\r
+ [\r
+ "6725a861.5cac68",\r
+ "116c17e7.39a43"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "eda47f6d.73a9a",\r
+ "type": "outcome",\r
+ "name": "tunnel-termination-point",\r
+ "xml": "<outcome value='tunnel-termination-point'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 4420.435806274414,\r
+ "y": 2374.388442993164,\r
+ "z": "1b4ba1fc.83240e",\r
+ "wires": [\r
+ [\r
+ "c2e9db6e.5e8918"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "ad429934.3c84f",\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": 4307.650161743164,\r
+ "y": 2092.566665649414,\r
+ "z": "1b4ba1fc.83240e",\r
+ "wires": []\r
+ },\r
+ {\r
+ "id": "6725a861.5cac68",\r
+ "type": "set",\r
+ "name": "set ltpId",\r
+ "xml": "<set>\n<parameter name='tmp.dst-secondary.ltpId' value='`$param-prefix-domainC[$param-prefix-domainC_length -1]`' />\n",\r
+ "comments": "",\r
+ "x": 4574.150161743164,\r
+ "y": 2157.566665649414,\r
+ "z": "1b4ba1fc.83240e",\r
+ "wires": []\r
+ },\r
+ {\r
+ "id": "116c17e7.39a43",\r
+ "type": "set",\r
+ "name": "set pnf-name",\r
+ "xml": "<set>\n<parameter name='tmp.dst-secondary.pnf-name' value='`$param-prefix-domainC[$param-prefix-domainC_length -3]`' />\n",\r
+ "comments": "",\r
+ "x": 4575.150161743164,\r
+ "y": 2262.566665649414,\r
+ "z": "1b4ba1fc.83240e",\r
+ "wires": []\r
+ },\r
+ {\r
+ "id": "d91f7d75.bbcbd8",\r
+ "type": "comment",\r
+ "name": "TODO: FIXME",\r
+ "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",\r
+ "comments": "",\r
+ "x": 4570.150161743164,\r
+ "y": 2211.566665649414,\r
+ "z": "1b4ba1fc.83240e",\r
+ "wires": []\r
+ },\r
+ {\r
+ "id": "c2e9db6e.5e8918",\r
+ "type": "block",\r
+ "name": "block : atomic",\r
+ "xml": "<block atomic=\"true\">",\r
+ "atomic": "true",\r
+ "outputs": 1,\r
+ "x": 4627.267349243164,\r
+ "y": 2363.9071197509766,\r
+ "z": "1b4ba1fc.83240e",\r
+ "wires": [\r
+ [\r
+ "a655b2d0.b12cf8",\r
+ "1b13a85a.c9fe7",\r
+ "4c91f5f3.8ae07c"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "a655b2d0.b12cf8",\r
+ "type": "set",\r
+ "name": "set destination ttp-id",\r
+ "xml": "<set>\n<parameter name='tmp.destination-secondary.ttp-id' value=\"`$tmp.aai.network-route-C.p-interface-dst.relationship-list.relationship[$dividx].relationship-data[0].relationship-value`\" />\n",\r
+ "comments": "",\r
+ "x": 4842.267349243164,\r
+ "y": 2325.9071197509766,\r
+ "z": "1b4ba1fc.83240e",\r
+ "wires": []\r
+ },\r
+ {\r
+ "id": "1b13a85a.c9fe7",\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-secondary.ttp-id \n\t\tAND depth = '0'\"\n pfx='tmp.aai.destination-secondary-ttp' local-only='false' >\n\n\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 4839.267349243164,\r
+ "y": 2364.9071197509766,\r
+ "z": "1b4ba1fc.83240e",\r
+ "wires": [\r
+ [\r
+ "14ad9c89.4bb913"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "4c91f5f3.8ae07c",\r
+ "type": "break",\r
+ "name": "break",\r
+ "xml": "<break>\n",\r
+ "comments": "",\r
+ "x": 4794.767349243164,\r
+ "y": 2406.9071197509766,\r
+ "z": "1b4ba1fc.83240e",\r
+ "wires": []\r
+ },\r
+ {\r
+ "id": "5e825807.3f1cc",\r
+ "type": "outcome",\r
+ "name": "esr-thirdparty-sdnc",\r
+ "xml": "<outcome value='esr-thirdparty-sdnc'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 4876.150161743164,\r
+ "y": 2116.5667877197266,\r
+ "z": "1b4ba1fc.83240e",\r
+ "wires": [\r
+ [\r
+ "fd8902be.b515c8"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "181d9117.3dc1c7",\r
+ "type": "for",\r
+ "name": "for each relationship",\r
+ "xml": "<for silentFailure='true' index='dpvidx' start='0' end='`$tmp.aai.destination-secondary-pnf.relationship-list.relationship_length`' >\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 4476.150039672852,\r
+ "y": 2046.566665649414,\r
+ "z": "1b4ba1fc.83240e",\r
+ "wires": [\r
+ [\r
+ "b70e554c.645b38"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "b70e554c.645b38",\r
+ "type": "switchNode",\r
+ "name": "switch related-to",\r
+ "xml": "<switch test='`$tmp.aai.destination-secondary-pnf.relationship-list.relationship[$dpvidx].related-to`'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 4673.150161743164,\r
+ "y": 2112.5667877197266,\r
+ "z": "1b4ba1fc.83240e",\r
+ "wires": [\r
+ [\r
+ "5e825807.3f1cc",\r
+ "25292003.2c4df"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "25292003.2c4df",\r
+ "type": "outcome",\r
+ "name": "network-resource",\r
+ "xml": "<outcome value='network-resource'>",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 4878.150161743164,\r
+ "y": 2189.5667877197266,\r
+ "z": "1b4ba1fc.83240e",\r
+ "wires": [\r
+ [\r
+ "c08bfda1.3541a8"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "14ad9c89.4bb913",\r
+ "type": "success",\r
+ "name": "success",\r
+ "xml": "<outcome value='success'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 5019.767349243164,\r
+ "y": 2363.9071197509766,\r
+ "z": "1b4ba1fc.83240e",\r
+ "wires": [\r
+ [\r
+ "f56384d9.606e1"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "f56384d9.606e1",\r
+ "type": "block",\r
+ "name": "block : atomic",\r
+ "xml": "<block atomic=\"true\">",\r
+ "atomic": "true",\r
+ "outputs": 1,\r
+ "x": 5177.767349243164,\r
+ "y": 2363.9071197509766,\r
+ "z": "1b4ba1fc.83240e",\r
+ "wires": [\r
+ [\r
+ "a47e1ae7.393b38"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "a47e1ae7.393b38",\r
+ "type": "set",\r
+ "name": "set destination tunnel tp ip",\r
+ "xml": "<set>\n<parameter name='destination-secondary.tunnel-tp-id' value=\"`$tmp.aai.destination-secondary-ttp.tunnel-tp-id`\" />\n",\r
+ "comments": "",\r
+ "x": 5384.767349243164,\r
+ "y": 2363.9071197509766,\r
+ "z": "1b4ba1fc.83240e",\r
+ "wires": []\r
+ },\r
+ {\r
+ "id": "fd8902be.b515c8",\r
+ "type": "block",\r
+ "name": "block : atomic",\r
+ "xml": "<block atomic=\"true\">",\r
+ "atomic": "true",\r
+ "outputs": 1,\r
+ "x": 5053.150161743164,\r
+ "y": 2108.5667877197266,\r
+ "z": "1b4ba1fc.83240e",\r
+ "wires": [\r
+ [\r
+ "3983145.c01d1ec",\r
+ "ded6bcc1.37b508"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "ded6bcc1.37b508",\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.domainC.esr-thirdparty-id AND \n\t\t depth = '1'\"\n pfx='tmp.aai.domainC.esr-thirdparty-sdnc' local-only='false' >",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 5261.150161743164,\r
+ "y": 2115.5667877197266,\r
+ "z": "1b4ba1fc.83240e",\r
+ "wires": [\r
+ [\r
+ "15291f10.bfa1d1",\r
+ "4ad88ea0.313028",\r
+ "9de78895.27ba68"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "c08bfda1.3541a8",\r
+ "type": "block",\r
+ "name": "block : atomic",\r
+ "xml": "<block atomic=\"true\">",\r
+ "atomic": "true",\r
+ "outputs": 1,\r
+ "x": 5055.150161743164,\r
+ "y": 2181.5667877197266,\r
+ "z": "1b4ba1fc.83240e",\r
+ "wires": [\r
+ [\r
+ "757e0ab3.492124"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "3983145.c01d1ec",\r
+ "type": "set",\r
+ "name": "set esr-thirdparty-sdnc domainC id",\r
+ "xml": "<set>\n<parameter name='tmp.domainC.esr-thirdparty-id' value=\"`$tmp.aai.destination-secondary-pnf.relationship-list.relationship[$dpvidx].relationship-data[0].relationship-value`\" />\n",\r
+ "comments": "",\r
+ "x": 5291.150161743164,\r
+ "y": 2063.5667877197266,\r
+ "z": "1b4ba1fc.83240e",\r
+ "wires": []\r
+ },\r
+ {\r
+ "id": "757e0ab3.492124",\r
+ "type": "set",\r
+ "name": "set domainC ethernet layer network-id",\r
+ "xml": "<set>\n<parameter name='tmp.domainC.eth-network-id' value=\"`$tmp.aai.destination-secondary-pnf.relationship-list.relationship[$dpvidx].relationship-data[0].relationship-value`\" />\n",\r
+ "comments": "",\r
+ "x": 5290.150161743164,\r
+ "y": 2305.5667877197266,\r
+ "z": "1b4ba1fc.83240e",\r
+ "wires": []\r
+ },\r
+ {\r
+ "id": "15291f10.bfa1d1",\r
+ "type": "success",\r
+ "name": "success",\r
+ "xml": "<outcome value='success'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 5471.150161743164,\r
+ "y": 2106.5667877197266,\r
+ "z": "1b4ba1fc.83240e",\r
+ "wires": [\r
+ [\r
+ "f933124d.0d0d48"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "4ad88ea0.313028",\r
+ "type": "not-found",\r
+ "name": "not-found",\r
+ "xml": "<outcome value='not-found'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 5463.150161743164,\r
+ "y": 2161.5667877197266,\r
+ "z": "1b4ba1fc.83240e",\r
+ "wires": [\r
+ [\r
+ "708c5d46.721ab4"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "9de78895.27ba68",\r
+ "type": "other",\r
+ "name": "other",\r
+ "xml": "<outcome value='Other'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 5468.150161743164,\r
+ "y": 2218.5667877197266,\r
+ "z": "1b4ba1fc.83240e",\r
+ "wires": [\r
+ [\r
+ "c3cc12ab.3cd488"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "c3cc12ab.3cd488",\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": 5620.150161743164,\r
+ "y": 2219.5667877197266,\r
+ "z": "1b4ba1fc.83240e",\r
+ "wires": []\r
+ },\r
+ {\r
+ "id": "708c5d46.721ab4",\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": 5631.150161743164,\r
+ "y": 2164.5667877197266,\r
+ "z": "1b4ba1fc.83240e",\r
+ "wires": []\r
+ },\r
+ {\r
+ "id": "f933124d.0d0d48",\r
+ "type": "block",\r
+ "name": "block",\r
+ "xml": "<block>\n",\r
+ "atomic": "false",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 5615.532485961914,\r
+ "y": 2104.222457885742,\r
+ "z": "1b4ba1fc.83240e",\r
+ "wires": [\r
+ [\r
+ "2ba1c8df.2a738"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "2ba1c8df.2a738",\r
+ "type": "set",\r
+ "name": "set controller domainC data",\r
+ "xml": "<set>\n<parameter name='prop.sdncRestApi.thirdpartySdnc.domainC.url' value=\"`$tmp.aai.domainB.esr-thirdparty-sdnc.esr-system-info-list.esr-system-info[0].service-url`\" />\n<parameter name='prop.sdncRestApi.thirdpartySdnc.domainC.user' value=\"`$tmp.aai.domainB.esr-thirdparty-sdnc.esr-system-info-list.esr-system-info[0].user-name`\" />\n<parameter name='prop.sdncRestApi.thirdpartySdnc.domainC.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",\r
+ "comments": "",\r
+ "x": 5830.150161743164,\r
+ "y": 2100.5667877197266,\r
+ "z": "1b4ba1fc.83240e",\r
+ "wires": []\r
+ },\r
+ {\r
+ "id": "5dc3af5e.92a278",\r
+ "type": "switchNode",\r
+ "name": "switch $hasSecondary",\r
+ "xml": "<switch test='`$hasSecondary`'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 3861.816665649414,\r
+ "y": 2712.566665649414,\r
+ "z": "1b4ba1fc.83240e",\r
+ "wires": [\r
+ [\r
+ "a2e190cc.8d4f1"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "a2e190cc.8d4f1",\r
+ "type": "outcomeTrue",\r
+ "name": "true",\r
+ "xml": "<outcome value='true'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 4052.816665649414,\r
+ "y": 2716.566665649414,\r
+ "z": "1b4ba1fc.83240e",\r
+ "wires": [\r
+ [\r
+ "d5cbc45b.cf7e18"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "d5cbc45b.cf7e18",\r
+ "type": "block",\r
+ "name": "block",\r
+ "xml": "<block>\n",\r
+ "atomic": "false",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 4179.816665649414,\r
+ "y": 2715.566665649414,\r
+ "z": "1b4ba1fc.83240e",\r
+ "wires": [\r
+ [\r
+ "9dcfaa3c.2df838"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "9dcfaa3c.2df838",\r
+ "type": "save",\r
+ "name": "get secondary root uni from aai",\r
+ "xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\tresource=\"uni\"\n\t key=\"uni.id = $tmp.SECONDARY-ROOT.uni-p-interface-long\"\n\t\tlocal-only=\"false\" \n\t\tpfx=\"tmp.aai.secondaryrootuni\" >\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 4406.150405883789,\r
+ "y": 2708.9002838134766,\r
+ "z": "1b4ba1fc.83240e",\r
+ "wires": [\r
+ [\r
+ "9b50524c.8f5e2",\r
+ "d7d45f06.b90c18",\r
+ "a735aab1.9f93a8"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "9b50524c.8f5e2",\r
+ "type": "not-found",\r
+ "name": "not-found",\r
+ "xml": "<outcome value='not-found'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 4773.150161743164,\r
+ "y": 2602.900161743164,\r
+ "z": "1b4ba1fc.83240e",\r
+ "wires": [\r
+ [\r
+ "c267b95.509ac48"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "d7d45f06.b90c18",\r
+ "type": "failure",\r
+ "name": "failure",\r
+ "xml": "<outcome value='failure'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 4768.659194946289,\r
+ "y": 2647.326126098633,\r
+ "z": "1b4ba1fc.83240e",\r
+ "wires": [\r
+ [\r
+ "bfc554f5.bfe79"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "a735aab1.9f93a8",\r
+ "type": "success",\r
+ "name": "success",\r
+ "xml": "<outcome value='success'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 4764.659194946289,\r
+ "y": 2697.326187133789,\r
+ "z": "1b4ba1fc.83240e",\r
+ "wires": [\r
+ [\r
+ "6ab7706d.b84f78"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "5ae763e6.35d8f4",\r
+ "type": "save",\r
+ "name": "update SECONDARY-ROOT UNI in AAI",\r
+ "xml": "<update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='uni' \n key='uni.id = $tmp.SECONDARY-ROOT.uni-p-interface-long'>\n<parameter name='id' value='`$tmp.SECONDARY-ROOT.uni-p-interface-long`' />\n<parameter name='data-source' value='`$tmp.newbw`' />\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 5212.659683227539,\r
+ "y": 2692.3263092041016,\r
+ "z": "1b4ba1fc.83240e",\r
+ "wires": [\r
+ []\r
+ ]\r
+ },\r
+ {\r
+ "id": "c267b95.509ac48",\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": 4935.721694946289,\r
+ "y": 2602.1858673095703,\r
+ "z": "1b4ba1fc.83240e",\r
+ "wires": []\r
+ },\r
+ {\r
+ "id": "bfc554f5.bfe79",\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": 4936.659194946289,\r
+ "y": 2647.326126098633,\r
+ "z": "1b4ba1fc.83240e",\r
+ "wires": []\r
+ },\r
+ {\r
+ "id": "6ab7706d.b84f78",\r
+ "type": "block",\r
+ "name": "block : atomic",\r
+ "xml": "<block atomic=\"true\">",\r
+ "atomic": "true",\r
+ "outputs": 1,\r
+ "x": 4933.659194946289,\r
+ "y": 2697.326187133789,\r
+ "z": "1b4ba1fc.83240e",\r
+ "wires": [\r
+ [\r
+ "3400e5b4.3cd32a",\r
+ "5ae763e6.35d8f4"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "3400e5b4.3cd32a",\r
+ "type": "set",\r
+ "name": "set new bw",\r
+ "xml": "<set>\n<parameter name='tmp.newbw' value='`$tmp.aai.secondaryrootuni.data-source - $bwToBeDecreased`' />\n",\r
+ "comments": "",\r
+ "x": 5115.659927368164,\r
+ "y": 2639.326187133789,\r
+ "z": "1b4ba1fc.83240e",\r
+ "wires": []\r
+ },\r
+ {\r
+ "id": "fa76b584.bdbd9",\r
+ "type": "switchNode",\r
+ "name": "switch tmp.mmUNI-id-long != SECONDARY-ROOT UNI",\r
+ "xml": "\n<switch test=\"`$tmp.mmUNI-id-long != $tmp.SECONDARY-ROOT.uni-p-interface-long`\">\n\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 4650.150405883789,\r
+ "y": 3552.899917602539,\r
+ "z": "1b4ba1fc.83240e",\r
+ "wires": [\r
+ [\r
+ "ef9b97c4.4f1c68"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "ef9b97c4.4f1c68",\r
+ "type": "outcomeTrue",\r
+ "name": "true",\r
+ "xml": "<outcome value='true'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 4940.150405883789,\r
+ "y": 3554.899917602539,\r
+ "z": "1b4ba1fc.83240e",\r
+ "wires": [\r
+ [\r
+ "608ff90c.2e5fc"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "35800841.c29e7",\r
+ "type": "switchNode",\r
+ "name": "switch $hasSecondary",\r
+ "xml": "<switch test='`$hasSecondary`'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 4302.683364868164,\r
+ "y": 5782.900161743164,\r
+ "z": "1b4ba1fc.83240e",\r
+ "wires": [\r
+ [\r
+ "23246adb.7861de"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "23246adb.7861de",\r
+ "type": "outcomeTrue",\r
+ "name": "true",\r
+ "xml": "<outcome value='true'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 4493.683364868164,\r
+ "y": 5786.900161743164,\r
+ "z": "1b4ba1fc.83240e",\r
+ "wires": [\r
+ [\r
+ "f3b9dd7.5ea102"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "f3b9dd7.5ea102",\r
+ "type": "block",\r
+ "name": "block",\r
+ "xml": "<block>\n",\r
+ "atomic": "false",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 4620.683364868164,\r
+ "y": 5785.900161743164,\r
+ "z": "1b4ba1fc.83240e",\r
+ "wires": [\r
+ [\r
+ "60b7ba2f.bc3c0c"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "60b7ba2f.bc3c0c",\r
+ "type": "switchNode",\r
+ "name": "switch 2-ROOTS in same domain?",\r
+ "xml": "<!-- This is to check the provider-id of ROOt and SECONDARY-ROOT-->\n<switch test='`$param-prefix-domainB[$param-prefix-domainB_length -9] == $param-prefix-domainC[$param-prefix-domainC_length -9]`'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 4846.016372680664,\r
+ "y": 5787.900161743164,\r
+ "z": "1b4ba1fc.83240e",\r
+ "wires": [\r
+ [\r
+ "2443ceec.623df2",\r
+ "ad2ba37e.796088"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "2443ceec.623df2",\r
+ "type": "outcomeTrue",\r
+ "name": "true",\r
+ "xml": "<outcome value='true'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 5056.016372680664,\r
+ "y": 5764.900161743164,\r
+ "z": "1b4ba1fc.83240e",\r
+ "wires": [\r
+ [\r
+ "bd893034.6b25e8"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "ad2ba37e.796088",\r
+ "type": "outcomeTrue",\r
+ "name": "false",\r
+ "xml": "<outcome value='false'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 5061.016372680664,\r
+ "y": 5813.900161743164,\r
+ "z": "1b4ba1fc.83240e",\r
+ "wires": [\r
+ [\r
+ "d0993207.1b217"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "bd893034.6b25e8",\r
+ "type": "block",\r
+ "name": "block",\r
+ "xml": "<block>\n",\r
+ "atomic": "false",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 5182.016372680664,\r
+ "y": 5764.900161743164,\r
+ "z": "1b4ba1fc.83240e",\r
+ "wires": [\r
+ []\r
+ ]\r
+ },\r
+ {\r
+ "id": "d0993207.1b217",\r
+ "type": "block",\r
+ "name": "block",\r
+ "xml": "<block>\n",\r
+ "atomic": "false",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 5179.016372680664,\r
+ "y": 5820.900161743164,\r
+ "z": "1b4ba1fc.83240e",\r
+ "wires": [\r
+ [\r
+ "7824302d.31915",\r
+ "638f8d60.f2970c"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "7824302d.31915",\r
+ "type": "save",\r
+ "name": "update SECONDARY-ROOT connectivity resource in AAI",\r
+ "xml": "<update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='connectivity' \n key='connectivity.connectivity-id = $tmp.aai.SECONDARY-ROOT.connectivity.connectivity-id'>\n<parameter name='connectivity-id' value='`$tmp.aai.SECONDARY-ROOT.connectivity.connectivity-id`' />\n<parameter name='operational-status' value='Modified' />\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 5493.016372680664,\r
+ "y": 5879.900161743164,\r
+ "z": "1b4ba1fc.83240e",\r
+ "wires": [\r
+ []\r
+ ]\r
+ },\r
+ {\r
+ "id": "b539af9b.8e6488",\r
+ "type": "comment",\r
+ "name": "Update connectivity status to modified",\r
+ "info": "",\r
+ "comments": "",\r
+ "x": 5425.233413696289,\r
+ "y": 5831.699966430664,\r
+ "z": "1b4ba1fc.83240e",\r
+ "wires": []\r
+ },\r
+ {\r
+ "id": "638f8d60.f2970c",\r
+ "type": "call",\r
+ "name": "call GENERIC-RESOURCE-API:cll-vnf-topology-operation-cll-helper-find-SECONDARY-ROOT-conn",\r
+ "xml": "<call module='GENERIC-RESOURCE-API' rpc='cll-vnf-topology-operation-cll-helper-find-SECONDARY-ROOT-conn' mode='sync' >\n\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 5623.683364868164,\r
+ "y": 5789.900161743164,\r
+ "z": "1b4ba1fc.83240e",\r
+ "wires": [\r
+ []\r
+ ]\r
+ },\r
+ {\r
+ "id": "9c7760f0.090d48",\r
+ "type": "switchNode",\r
+ "name": "switch $hasSecondary",\r
+ "xml": "<switch test='`$hasSecondary`'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 893.6833648681641,\r
+ "y": 4979.899673461914,\r
+ "z": "1b4ba1fc.83240e",\r
+ "wires": [\r
+ [\r
+ "89d9c849.63865"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "89d9c849.63865",\r
+ "type": "outcomeTrue",\r
+ "name": "true",\r
+ "xml": "<outcome value='true'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 1084.683364868164,\r
+ "y": 4983.899673461914,\r
+ "z": "1b4ba1fc.83240e",\r
+ "wires": [\r
+ [\r
+ "71eabcdb.edbe1c"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "71eabcdb.edbe1c",\r
+ "type": "block",\r
+ "name": "block",\r
+ "xml": "<block>\n",\r
+ "atomic": "false",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 1211.683364868164,\r
+ "y": 4982.899673461914,\r
+ "z": "1b4ba1fc.83240e",\r
+ "wires": [\r
+ [\r
+ "b655e9e.17d4118"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "b655e9e.17d4118",\r
+ "type": "switchNode",\r
+ "name": "switch 2-ROOTS in same domain?",\r
+ "xml": "<!-- This is to check the provider-id of ROOt and SECONDARY-ROOT-->\n<switch test='`$param-prefix-domainB[$param-prefix-domainB_length -9] == $param-prefix-domainC[$param-prefix-domainC_length -9]`'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 1437.016372680664,\r
+ "y": 4984.899673461914,\r
+ "z": "1b4ba1fc.83240e",\r
+ "wires": [\r
+ [\r
+ "451cba7b.55b034",\r
+ "89345bed.8540d8"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "451cba7b.55b034",\r
+ "type": "outcomeTrue",\r
+ "name": "true",\r
+ "xml": "<outcome value='true'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 1647.016372680664,\r
+ "y": 4961.899673461914,\r
+ "z": "1b4ba1fc.83240e",\r
+ "wires": [\r
+ [\r
+ "6b3712d.199ce6c"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "89345bed.8540d8",\r
+ "type": "outcomeTrue",\r
+ "name": "false",\r
+ "xml": "<outcome value='false'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 1652.016372680664,\r
+ "y": 5010.899673461914,\r
+ "z": "1b4ba1fc.83240e",\r
+ "wires": [\r
+ [\r
+ "84894ba9.2f6d9"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "6b3712d.199ce6c",\r
+ "type": "block",\r
+ "name": "block",\r
+ "xml": "<block>\n",\r
+ "atomic": "false",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 1773.016372680664,\r
+ "y": 4961.899673461914,\r
+ "z": "1b4ba1fc.83240e",\r
+ "wires": [\r
+ []\r
+ ]\r
+ },\r
+ {\r
+ "id": "84894ba9.2f6d9",\r
+ "type": "block",\r
+ "name": "block",\r
+ "xml": "<block>\n",\r
+ "atomic": "false",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 1770.016372680664,\r
+ "y": 5017.899673461914,\r
+ "z": "1b4ba1fc.83240e",\r
+ "wires": [\r
+ [\r
+ "d5552e7d.44cc8",\r
+ "e67d570d.d5f9f"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "e67d570d.d5f9f",\r
+ "type": "call",\r
+ "name": "call GENERIC-RESOURCE-API:cll-vnf-topology-operation-cll-helper-find-SECONDARY-ROOT-conn",\r
+ "xml": "<call module='GENERIC-RESOURCE-API' rpc='cll-vnf-topology-operation-cll-helper-find-SECONDARY-ROOT-conn' mode='sync' >\n\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 2214.683364868164,\r
+ "y": 4986.899673461914,\r
+ "z": "1b4ba1fc.83240e",\r
+ "wires": [\r
+ []\r
+ ]\r
+ },\r
+ {\r
+ "id": "41723099.7f44e8",\r
+ "type": "comment",\r
+ "name": "Update connectivity status to modified",\r
+ "info": "",\r
+ "comments": "",\r
+ "x": 2016.233413696289,\r
+ "y": 5028.699478149414,\r
+ "z": "1b4ba1fc.83240e",\r
+ "wires": []\r
+ },\r
+ {\r
+ "id": "d5552e7d.44cc8",\r
+ "type": "save",\r
+ "name": "update SECONDARY-ROOT connectivity resource in AAI",\r
+ "xml": "<update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='connectivity' \n key='connectivity.connectivity-id = $tmp.aai.SECONDARY-ROOT.connectivity.connectivity-id'>\n<parameter name='connectivity-id' value='`$tmp.aai.SECONDARY-ROOT.connectivity.connectivity-id`' />\n<parameter name='operational-status' value='Modified' />\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 2084.016372680664,\r
+ "y": 5076.899673461914,\r
+ "z": "1b4ba1fc.83240e",\r
+ "wires": [\r
+ []\r
+ ]\r
+ },\r
+ {\r
+ "id": "5d9c1c4d.83462c",\r
+ "type": "switchNode",\r
+ "name": "switch $hasSecondary",\r
+ "xml": "<switch test='`$hasSecondary`'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 1496.0167388916016,\r
+ "y": 5820.900161743164,\r
+ "z": "1b4ba1fc.83240e",\r
+ "wires": [\r
+ [\r
+ "4a1beb8f.c1dbac"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "4a1beb8f.c1dbac",\r
+ "type": "outcomeTrue",\r
+ "name": "true",\r
+ "xml": "<outcome value='true'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 1687.0167388916016,\r
+ "y": 5824.900161743164,\r
+ "z": "1b4ba1fc.83240e",\r
+ "wires": [\r
+ [\r
+ "c43fef47.9c947"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "c43fef47.9c947",\r
+ "type": "block",\r
+ "name": "block",\r
+ "xml": "<block>\n",\r
+ "atomic": "false",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 1814.0167388916016,\r
+ "y": 5823.900161743164,\r
+ "z": "1b4ba1fc.83240e",\r
+ "wires": [\r
+ [\r
+ "40808ad0.742134"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "40808ad0.742134",\r
+ "type": "switchNode",\r
+ "name": "switch 2-ROOTS in same domain?",\r
+ "xml": "<!-- This is to check the provider-id of ROOt and SECONDARY-ROOT-->\n<switch test='`$param-prefix-domainB[$param-prefix-domainB_length -9] == $param-prefix-domainC[$param-prefix-domainC_length -9]`'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 2039.3497467041016,\r
+ "y": 5825.900161743164,\r
+ "z": "1b4ba1fc.83240e",\r
+ "wires": [\r
+ [\r
+ "5a051931.8c6a5",\r
+ "818560aa.91932"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "5a051931.8c6a5",\r
+ "type": "outcomeTrue",\r
+ "name": "true",\r
+ "xml": "<outcome value='true'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 2249.3497467041016,\r
+ "y": 5802.900161743164,\r
+ "z": "1b4ba1fc.83240e",\r
+ "wires": [\r
+ [\r
+ "8edca568.ede98"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "818560aa.91932",\r
+ "type": "outcomeTrue",\r
+ "name": "false",\r
+ "xml": "<outcome value='false'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 2254.3497467041016,\r
+ "y": 5851.900161743164,\r
+ "z": "1b4ba1fc.83240e",\r
+ "wires": [\r
+ [\r
+ "9a80cebb.ff473"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "8edca568.ede98",\r
+ "type": "block",\r
+ "name": "block",\r
+ "xml": "<block>\n",\r
+ "atomic": "false",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 2375.3497467041016,\r
+ "y": 5802.900161743164,\r
+ "z": "1b4ba1fc.83240e",\r
+ "wires": [\r
+ []\r
+ ]\r
+ },\r
+ {\r
+ "id": "9a80cebb.ff473",\r
+ "type": "block",\r
+ "name": "block",\r
+ "xml": "<block>\n",\r
+ "atomic": "false",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 2372.3497467041016,\r
+ "y": 5858.900161743164,\r
+ "z": "1b4ba1fc.83240e",\r
+ "wires": [\r
+ [\r
+ "cc186b3e.b594b",\r
+ "5f3c966d.1d57c"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "5f3c966d.1d57c",\r
+ "type": "call",\r
+ "name": "call GENERIC-RESOURCE-API:cll-vnf-topology-operation-cll-helper-find-SECONDARY-ROOT-conn",\r
+ "xml": "<call module='GENERIC-RESOURCE-API' rpc='cll-vnf-topology-operation-cll-helper-find-SECONDARY-ROOT-conn' mode='sync' >\n\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 2817.0167388916016,\r
+ "y": 5827.900161743164,\r
+ "z": "1b4ba1fc.83240e",\r
+ "wires": [\r
+ []\r
+ ]\r
+ },\r
+ {\r
+ "id": "224407cc.d62a7",\r
+ "type": "comment",\r
+ "name": "Update connectivity status to modified",\r
+ "info": "",\r
+ "comments": "",\r
+ "x": 2618.5667877197266,\r
+ "y": 5869.699966430664,\r
+ "z": "1b4ba1fc.83240e",\r
+ "wires": []\r
+ },\r
+ {\r
+ "id": "cc186b3e.b594b",\r
+ "type": "save",\r
+ "name": "update SECONDARY-ROOT connectivity resource in AAI",\r
+ "xml": "<update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='connectivity' \n key='connectivity.connectivity-id = $tmp.aai.SECONDARY-ROOT.connectivity.connectivity-id'>\n<parameter name='connectivity-id' value='`$tmp.aai.SECONDARY-ROOT.connectivity.connectivity-id`' />\n<parameter name='operational-status' value='Modified' />\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 2686.3497467041016,\r
+ "y": 5917.900161743164,\r
+ "z": "1b4ba1fc.83240e",\r
+ "wires": [\r
+ []\r
+ ]\r
+ },\r
+ {\r
+ "id": "9067b91d.deea4",\r
+ "type": "execute",\r
+ "name": "execute Terminate SSE Connection",\r
+ "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restconfdiscovery.RestconfDiscoveryNode' method='deleteSubscriptionAndSseConnection' >\n<parameter name=\"subscriberId\" value=\"`$prop.sdncRestApi.thirdpartySdnc.domain.url`\" />\n<parameter name=\"templateFileName\" value=\"`$prop.restapi.templateDir + '/' + $prop.restapi.cll-terminate-notification.templatefile`\" />\n<parameter name=\"restapiUrl\" value=\"`$prop.sdncRestApi.thirdpartySdnc.domain.url + '/restconf/operations/ietf-subscribed-notifications:delete-subscription'`\" />\n<parameter name=\"restapiUser\" value=\"`$prop.sdncRestApi.thirdpartySdnc.domainConn.user`\" />\n<parameter name=\"restapiPassword\" value=\"`$prop.sdncRestApi.thirdpartySdnc.domainConn.password`\" />\n<parameter name=\"dirPath\" value=\"/opt/sdnc/restconfapi/yang/notification\" />\n<parameter name=\"format\" value=\"json\" />\n<parameter name=\"httpMethod\" value=\"post\" />\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=x-ik2ps4ikvzupbx0486ft1ebzs7rt85futh9ho6eofy3wjsap7wqktemlqm4bbsmnar3vrtbyrzukbv5itd6m1cftldpjarnyle3sdcqq9hftc4lebz464b5ffxmlbvg9\" />\n<parameter name=\"module\" value=\"GENERIC-RESOURCE-API\" />\n<parameter name=\"rpc\" value=\"cll-vnf-topology-operation-cll-callbackdg-notification\" />\n<parameter name=\"version\" value=\"`$project.version`\" />\n<parameter name=\"mode\" value=\"sync\" />\n<parameter name=\"responsePrefix\" value=\"restapi-result\"/>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 1546.4500274658203,\r
+ "y": 6126.280899047852,\r
+ "z": "1b4ba1fc.83240e",\r
+ "wires": [\r
+ []\r
+ ]\r
+ },\r
+ {\r
+ "id": "61909f2b.d81a28",\r
+ "type": "set",\r
+ "name": "set parameters",\r
+ "xml": "<set>\n<parameter name='subscriptionId' value='`$rcvd-bandwidth-value`' />\n",\r
+ "comments": "",\r
+ "x": 1478.483413696289,\r
+ "y": 6067.680801391602,\r
+ "z": "1b4ba1fc.83240e",\r
+ "wires": []\r
+ },\r
+ {\r
+ "id": "3d1d7271.d95cbe",\r
+ "type": "execute",\r
+ "name": "execute Terminate SSE Connection",\r
+ "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restconfdiscovery.RestconfDiscoveryNode' method='deleteSubscriptionAndSseConnection' >\n<parameter name=\"subscriberId\" value=\"`$prop.sdncRestApi.thirdpartySdnc.domain.url`\" />\n<parameter name=\"templateFileName\" value=\"`$prop.restapi.templateDir + '/' + $prop.restapi.cll-terminate-notification.templatefile`\" />\n<parameter name=\"restapiUrl\" value=\"`$prop.sdncRestApi.thirdpartySdnc.domain.url + '/restconf/operations/ietf-subscribed-notifications:delete-subscription'`\" />\n<parameter name=\"restapiUser\" value=\"`$prop.sdncRestApi.thirdpartySdnc.domainConn.user`\" />\n<parameter name=\"restapiPassword\" value=\"`$prop.sdncRestApi.thirdpartySdnc.domainConn.password`\" />\n<parameter name=\"dirPath\" value=\"/opt/sdnc/restconfapi/yang/notification\" />\n<parameter name=\"format\" value=\"json\" />\n<parameter name=\"httpMethod\" value=\"post\" />\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=x-ik2ps4ikvzupbx0486ft1ebzs7rt85futh9ho6eofy3wjsap7wqktemlqm4bbsmnar3vrtbyrzukbv5itd6m1cftldpjarnyle3sdcqq9hftc4lebz464b5ffxmlbvg9\" />\n<parameter name=\"module\" value=\"GENERIC-RESOURCE-API\" />\n<parameter name=\"rpc\" value=\"cll-vnf-topology-operation-cll-callbackdg-notification\" />\n<parameter name=\"version\" value=\"`$project.version`\" />\n<parameter name=\"mode\" value=\"sync\" />\n<parameter name=\"responsePrefix\" value=\"restapi-result\"/>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 2095.116714477539,\r
+ "y": 5574.514297485352,\r
+ "z": "1b4ba1fc.83240e",\r
+ "wires": [\r
+ []\r
+ ]\r