+ },\r
+ {\r
+ "id": "c22e8ab9.0a6b88",\r
+ "type": "save",\r
+ "name": "get network-route-three from aai",\r
+ "xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\tresource=\"network-route\"\n\tkey='network-route.route-id = $network-route-three'\n\tlocal-only=\"false\"\n\tforce=\"true\" pfx=\"tmp.aai.network-route-three\">",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 3316.683334350586,\r
+ "y": 1096.683334350586,\r
+ "z": "294b5e8a.041612",\r
+ "wires": [\r
+ [\r
+ "4ef95e12.fd687",\r
+ "76cbe80c.f4e188",\r
+ "2e93ec7e.d04c6c"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "614f0a7f.a53cf4",\r
+ "type": "outcome",\r
+ "name": "SECONDARY-ROOT",\r
+ "xml": "<outcome value='SECONDARY-ROOT'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 4002.683334350586,\r
+ "y": 1228.683334350586,\r
+ "z": "294b5e8a.041612",\r
+ "wires": [\r
+ [\r
+ "7f1b4232.b1cfb4"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "7f1b4232.b1cfb4",\r
+ "type": "block",\r
+ "name": "block",\r
+ "xml": "<block>\n",\r
+ "atomic": "false",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 4176.683334350586,\r
+ "y": 1223.683334350586,\r
+ "z": "294b5e8a.041612",\r
+ "wires": [\r
+ [\r
+ "838abc45.59f7a",\r
+ "db00c52c.5ed268"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "db00c52c.5ed268",\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": 4346.683334350586,\r
+ "y": 1296.683334350586,\r
+ "z": "294b5e8a.041612",\r
+ "wires": []\r
+ },\r
+ {\r
+ "id": "838abc45.59f7a",\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": 4400.683334350586,\r
+ "y": 1256.683334350586,\r
+ "z": "294b5e8a.041612",\r
+ "wires": []\r
+ },\r
+ {\r
+ "id": "ff2b32b5.5b2a08",\r
+ "type": "comment",\r
+ "name": "This is it (should be)",\r
+ "info": "",\r
+ "comments": "",\r
+ "x": 4514.683334350586,\r
+ "y": 1281.683334350586,\r
+ "z": "294b5e8a.041612",\r
+ "wires": []\r
+ },\r
+ {\r
+ "id": "56529717.d57cf",\r
+ "type": "outcome",\r
+ "name": "SECONDARY-ROOT",\r
+ "xml": "<outcome value='SECONDARY-ROOT'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 4073.683334350586,\r
+ "y": 984.6833343505859,\r
+ "z": "294b5e8a.041612",\r
+ "wires": [\r
+ [\r
+ "ee2de2c6.4f08d8"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "ca426e77.b8a868",\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-two.`\" />\n\n\n",\r
+ "comments": "",\r
+ "x": 4417.683334350586,\r
+ "y": 1052.683334350586,\r
+ "z": "294b5e8a.041612",\r
+ "wires": []\r
+ },\r
+ {\r
+ "id": "f04a072d.a1bc78",\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-two.`\" />\n\n\n",\r
+ "comments": "",\r
+ "x": 4471.683334350586,\r
+ "y": 1012.6833343505859,\r
+ "z": "294b5e8a.041612",\r
+ "wires": []\r
+ },\r
+ {\r
+ "id": "494ac499.527a64",\r
+ "type": "comment",\r
+ "name": "This is it (should be)",\r
+ "info": "",\r
+ "comments": "",\r
+ "x": 4615.683334350586,\r
+ "y": 1041.683334350586,\r
+ "z": "294b5e8a.041612",\r
+ "wires": []\r
+ },\r
+ {\r
+ "id": "ee2de2c6.4f08d8",\r
+ "type": "block",\r
+ "name": "block",\r
+ "xml": "<block>\n",\r
+ "atomic": "false",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 4247.683334350586,\r
+ "y": 979.6833343505859,\r
+ "z": "294b5e8a.041612",\r
+ "wires": [\r
+ [\r
+ "f04a072d.a1bc78",\r
+ "ca426e77.b8a868"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "fbdccf10.5fabc",\r
+ "type": "outcome",\r
+ "name": "SECONDARY-ROOT",\r
+ "xml": "<outcome value='SECONDARY-ROOT'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 4133.683334350586,\r
+ "y": 722.6833343505859,\r
+ "z": "294b5e8a.041612",\r
+ "wires": [\r
+ [\r
+ "b0420846.4df49"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "6f89ab47.26e854",\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-one.`\" />\n\n\n",\r
+ "comments": "",\r
+ "x": 4477.683334350586,\r
+ "y": 790.6833343505859,\r
+ "z": "294b5e8a.041612",\r
+ "wires": []\r
+ },\r
+ {\r
+ "id": "bf3e885.5679178",\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-one.`\" />\n\n\n",\r
+ "comments": "",\r
+ "x": 4531.683334350586,\r
+ "y": 750.6833343505859,\r
+ "z": "294b5e8a.041612",\r
+ "wires": []\r
+ },\r
+ {\r
+ "id": "fd3136c3.1f9f9",\r
+ "type": "comment",\r
+ "name": "This is it (should be)",\r
+ "info": "",\r
+ "comments": "",\r
+ "x": 4645.683334350586,\r
+ "y": 775.6833343505859,\r
+ "z": "294b5e8a.041612",\r
+ "wires": []\r
+ },\r
+ {\r
+ "id": "b0420846.4df49",\r
+ "type": "block",\r
+ "name": "block",\r
+ "xml": "<block>\n",\r
+ "atomic": "false",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 4307.683334350586,\r
+ "y": 717.6833343505859,\r
+ "z": "294b5e8a.041612",\r
+ "wires": [\r
+ [\r
+ "bf3e885.5679178",\r
+ "6f89ab47.26e854"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "d5e167ce.f19998",\r
+ "type": "block",\r
+ "name": "block : atomic",\r
+ "xml": "<block atomic=\"true\">",\r
+ "atomic": "true",\r
+ "outputs": 1,\r
+ "x": 3714.683334350586,\r
+ "y": 2599.683334350586,\r
+ "z": "294b5e8a.041612",\r
+ "wires": [\r
+ [\r
+ "eb74e655.05ff7",\r
+ "e886ebc1.1661e8"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "47201997.7cc3c",\r
+ "type": "success",\r
+ "name": "success",\r
+ "xml": "<outcome value='success'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 3542.016830444336,\r
+ "y": 2600.683334350586,\r
+ "z": "294b5e8a.041612",\r
+ "wires": [\r
+ [\r
+ "d5e167ce.f19998"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "164be473.b70384",\r
+ "type": "not-found",\r
+ "name": "not-found",\r
+ "xml": "<outcome value='not-found'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 3551.507797241211,\r
+ "y": 2643.257369995117,\r
+ "z": "294b5e8a.041612",\r
+ "wires": [\r
+ []\r
+ ]\r
+ },\r
+ {\r
+ "id": "784aa04.7c1dfe",\r
+ "type": "failure",\r
+ "name": "failure",\r
+ "xml": "<outcome value='failure'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 3540.016830444336,\r
+ "y": 2689.683334350586,\r
+ "z": "294b5e8a.041612",\r
+ "wires": [\r
+ []\r
+ ]\r
+ },\r
+ {\r
+ "id": "eb74e655.05ff7",\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": 4001.016830444336,\r
+ "y": 2603.6834564208984,\r
+ "z": "294b5e8a.041612",\r
+ "wires": [\r
+ [\r
+ "3f64df6c.c641f8",\r
+ "e65de275.42f878"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "e65de275.42f878",\r
+ "type": "failure",\r
+ "name": "success",\r
+ "xml": "<outcome value='success'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 4224.016830444336,\r
+ "y": 2558.6834564208984,\r
+ "z": "294b5e8a.041612",\r
+ "wires": [\r
+ [\r
+ "34b4944b.960704"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "3f64df6c.c641f8",\r
+ "type": "failure",\r
+ "name": "failure",\r
+ "xml": "<outcome value='failure'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 4226.016830444336,\r
+ "y": 2622.6834564208984,\r
+ "z": "294b5e8a.041612",\r
+ "wires": [\r
+ [\r
+ "699d84d7.6602fc"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "9c75cfb6.9dae68",\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": 3314.016830444336,\r
+ "y": 2635.683334350586,\r
+ "z": "294b5e8a.041612",\r
+ "wires": [\r
+ [\r
+ "47201997.7cc3c",\r
+ "164be473.b70384",\r
+ "784aa04.7c1dfe"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "23b8fd1e.0cb2fa",\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": 3275.016830444336,\r
+ "y": 2579.683334350586,\r
+ "z": "294b5e8a.041612",\r
+ "wires": []\r
+ },\r
+ {\r
+ "id": "647f2e19.e50158",\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": 3334.016830444336,\r
+ "y": 2375.683334350586,\r
+ "z": "294b5e8a.041612",\r
+ "wires": [\r
+ [\r
+ "5e42c344.eae60c",\r
+ "af9299b9.b3a958"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "af9299b9.b3a958",\r
+ "type": "failure",\r
+ "name": "success",\r
+ "xml": "<outcome value='success'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 3557.016830444336,\r
+ "y": 2361.683334350586,\r
+ "z": "294b5e8a.041612",\r
+ "wires": [\r
+ [\r
+ "9102a653.17d73"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "5e42c344.eae60c",\r
+ "type": "failure",\r
+ "name": "failure",\r
+ "xml": "<outcome value='failure'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 3559.016830444336,\r
+ "y": 2394.683334350586,\r
+ "z": "294b5e8a.041612",\r
+ "wires": [\r
+ []\r
+ ]\r
+ },\r
+ {\r
+ "id": "9102a653.17d73",\r
+ "type": "block",\r
+ "name": "block : atomic",\r
+ "xml": "<block atomic=\"true\">",\r
+ "atomic": "true",\r
+ "outputs": 1,\r
+ "x": 3705.016830444336,\r
+ "y": 2354.683334350586,\r
+ "z": "294b5e8a.041612",\r
+ "wires": [\r
+ [\r
+ "9818833d.58ad9",\r
+ "288d55d1.6f744a"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "9818833d.58ad9",\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": 3899.016830444336,\r
+ "y": 2357.6834564208984,\r
+ "z": "294b5e8a.041612",\r
+ "wires": []\r
+ },\r
+ {\r
+ "id": "e886ebc1.1661e8",\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": 3952.016799926758,\r
+ "y": 2726.683303833008,\r
+ "z": "294b5e8a.041612",\r
+ "wires": [\r
+ [\r
+ "f013a1b2.101138"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "f013a1b2.101138",\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": 4158.016799926758,\r
+ "y": 2726.683303833008,\r
+ "z": "294b5e8a.041612",\r
+ "wires": [\r
+ [\r
+ "386bba62.16259e"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "288d55d1.6f744a",\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": 3921.016830444336,\r
+ "y": 2425.6834564208984,\r
+ "z": "294b5e8a.041612",\r
+ "wires": [\r
+ [\r
+ "50cea31f.42d1c4",\r
+ "35a7b03.f8d85d",\r
+ "21702f57.67315"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "50cea31f.42d1c4",\r
+ "type": "success",\r
+ "name": "success",\r
+ "xml": "<outcome value='success'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 4116.516952514648,\r
+ "y": 2377.6834564208984,\r
+ "z": "294b5e8a.041612",\r
+ "wires": [\r
+ [\r
+ "295cc726.ea872"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "35a7b03.f8d85d",\r
+ "type": "not-found",\r
+ "name": "not-found",\r
+ "xml": "<outcome value='not-found'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 4108.516952514648,\r
+ "y": 2432.6834564208984,\r
+ "z": "294b5e8a.041612",\r
+ "wires": [\r
+ [\r
+ "2c7fef61.a7451"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "21702f57.67315",\r
+ "type": "other",\r
+ "name": "other",\r
+ "xml": "<outcome value='Other'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 4113.516952514648,\r
+ "y": 2489.6834564208984,\r
+ "z": "294b5e8a.041612",\r
+ "wires": [\r
+ [\r
+ "9bbdca0e.a0cf58"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "9bbdca0e.a0cf58",\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": 4265.516952514648,\r
+ "y": 2490.6834564208984,\r
+ "z": "294b5e8a.041612",\r
+ "wires": []\r
+ },\r
+ {\r
+ "id": "295cc726.ea872",\r
+ "type": "block",\r
+ "name": "block",\r
+ "xml": "<block>\n",\r
+ "atomic": "false",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 4260.899276733398,\r
+ "y": 2375.339126586914,\r
+ "z": "294b5e8a.041612",\r
+ "wires": [\r
+ [\r
+ "723c9a0.e71c268"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "9a8ce081.e6446",\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": 3336.683334350586,\r
+ "y": 2714.683334350586,\r
+ "z": "294b5e8a.041612",\r
+ "wires": []\r
+ },\r
+ {\r
+ "id": "c2ddeb07.7a6948",\r
+ "type": "comment",\r
+ "name": "NOT NEEDED ANYMORE?",\r
+ "info": "",\r
+ "comments": "",\r
+ "x": 4011.683303833008,\r
+ "y": 2678.683303833008,\r
+ "z": "294b5e8a.041612",\r
+ "wires": []\r
+ },\r
+ {\r
+ "id": "699d84d7.6602fc",\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": 4385.016830444336,\r
+ "y": 2641.6834564208984,\r
+ "z": "294b5e8a.041612",\r
+ "wires": []\r
+ },\r
+ {\r
+ "id": "34b4944b.960704",\r
+ "type": "block",\r
+ "name": "block : atomic",\r
+ "xml": "<block atomic=\"true\">",\r
+ "atomic": "true",\r
+ "outputs": 1,\r
+ "x": 4389.016830444336,\r
+ "y": 2555.6834564208984,\r
+ "z": "294b5e8a.041612",\r
+ "wires": [\r
+ [\r
+ "276189b1.3ed3ce",\r
+ "a978fa30.e2e848"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "386bba62.16259e",\r
+ "type": "outcome",\r
+ "name": "tunnel-termination-point",\r
+ "xml": "<outcome value='tunnel-termination-point'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 4375.302444458008,\r
+ "y": 2725.505081176758,\r
+ "z": "294b5e8a.041612",\r
+ "wires": [\r
+ [\r
+ "89559da6.e6cb3"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "2c7fef61.a7451",\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": 4276.516952514648,\r
+ "y": 2435.6834564208984,\r
+ "z": "294b5e8a.041612",\r
+ "wires": []\r
+ },\r
+ {\r
+ "id": "276189b1.3ed3ce",\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": 4559.016830444336,\r
+ "y": 2516.6834564208984,\r
+ "z": "294b5e8a.041612",\r
+ "wires": []\r
+ },\r
+ {\r
+ "id": "a978fa30.e2e848",\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": 4560.016830444336,\r
+ "y": 2621.6834564208984,\r
+ "z": "294b5e8a.041612",\r
+ "wires": []\r
+ },\r
+ {\r
+ "id": "1a2899c1.f9127e",\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": 4555.016830444336,\r
+ "y": 2570.6834564208984,\r
+ "z": "294b5e8a.041612",\r
+ "wires": []\r
+ },\r
+ {\r
+ "id": "89559da6.e6cb3",\r
+ "type": "block",\r
+ "name": "block : atomic",\r
+ "xml": "<block atomic=\"true\">",\r
+ "atomic": "true",\r
+ "outputs": 1,\r
+ "x": 4582.133987426758,\r
+ "y": 2715.0237579345703,\r
+ "z": "294b5e8a.041612",\r
+ "wires": [\r
+ [\r
+ "8f483fd3.15e2b",\r
+ "5a0d7606.c42ec8",\r
+ "f5ace162.1d1728"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "8f483fd3.15e2b",\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": 4797.133987426758,\r
+ "y": 2677.0237579345703,\r
+ "z": "294b5e8a.041612",\r
+ "wires": []\r
+ },\r
+ {\r
+ "id": "5a0d7606.c42ec8",\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": 4794.133987426758,\r
+ "y": 2716.0237579345703,\r
+ "z": "294b5e8a.041612",\r
+ "wires": [\r
+ [\r
+ "be061b72.c7b818"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "f5ace162.1d1728",\r
+ "type": "break",\r
+ "name": "break",\r
+ "xml": "<break>\n",\r
+ "comments": "",\r
+ "x": 4749.633987426758,\r
+ "y": 2758.0237579345703,\r
+ "z": "294b5e8a.041612",\r
+ "wires": []\r
+ },\r
+ {\r
+ "id": "b11d681f.057f4",\r
+ "type": "outcome",\r
+ "name": "esr-thirdparty-sdnc",\r
+ "xml": "<outcome value='esr-thirdparty-sdnc'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 4843.016830444336,\r
+ "y": 2393.6834564208984,\r
+ "z": "294b5e8a.041612",\r
+ "wires": [\r
+ [\r
+ "530fa7ff.bc17d"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "723c9a0.e71c268",\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": 4445.016830444336,\r
+ "y": 2389.6834564208984,\r
+ "z": "294b5e8a.041612",\r
+ "wires": [\r
+ [\r
+ "46b1f311.91a404"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "46b1f311.91a404",\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": 4640.016830444336,\r
+ "y": 2389.6834564208984,\r
+ "z": "294b5e8a.041612",\r
+ "wires": [\r
+ [\r
+ "b11d681f.057f4",\r
+ "6f790d02.3c377c"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "6f790d02.3c377c",\r
+ "type": "outcome",\r
+ "name": "network-resource",\r
+ "xml": "<outcome value='network-resource'>",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 4845.016830444336,\r
+ "y": 2466.6834564208984,\r
+ "z": "294b5e8a.041612",\r
+ "wires": [\r
+ [\r
+ "e6043cfa.36703"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "be061b72.c7b818",\r
+ "type": "success",\r
+ "name": "success",\r
+ "xml": "<outcome value='success'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 4974.633987426758,\r
+ "y": 2715.0237579345703,\r
+ "z": "294b5e8a.041612",\r
+ "wires": [\r
+ [\r
+ "ce777f2e.3171a8"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "ce777f2e.3171a8",\r
+ "type": "block",\r
+ "name": "block : atomic",\r
+ "xml": "<block atomic=\"true\">",\r
+ "atomic": "true",\r
+ "outputs": 1,\r
+ "x": 5132.633987426758,\r
+ "y": 2715.0237579345703,\r
+ "z": "294b5e8a.041612",\r
+ "wires": [\r
+ [\r
+ "b697c93d.c44198"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "b697c93d.c44198",\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": 5339.633987426758,\r
+ "y": 2715.0237579345703,\r
+ "z": "294b5e8a.041612",\r
+ "wires": []\r
+ },\r
+ {\r
+ "id": "530fa7ff.bc17d",\r
+ "type": "block",\r
+ "name": "block : atomic",\r
+ "xml": "<block atomic=\"true\">",\r
+ "atomic": "true",\r
+ "outputs": 1,\r
+ "x": 5020.016830444336,\r
+ "y": 2385.6834564208984,\r
+ "z": "294b5e8a.041612",\r
+ "wires": [\r
+ [\r
+ "5455e2bb.51abf4",\r
+ "38fcf2b0.31bbc6"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "38fcf2b0.31bbc6",\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": 5228.016830444336,\r
+ "y": 2392.6834564208984,\r
+ "z": "294b5e8a.041612",\r
+ "wires": [\r
+ [\r
+ "46db257f.be5d5c",\r
+ "10ef5dcf.987c42",\r
+ "cdb4ea9.23d2198"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "e6043cfa.36703",\r
+ "type": "block",\r
+ "name": "block : atomic",\r
+ "xml": "<block atomic=\"true\">",\r
+ "atomic": "true",\r
+ "outputs": 1,\r
+ "x": 5022.016830444336,\r
+ "y": 2458.6834564208984,\r
+ "z": "294b5e8a.041612",\r
+ "wires": [\r
+ [\r
+ "dba257b1.4bfa28"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "5455e2bb.51abf4",\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": 5258.016830444336,\r
+ "y": 2340.6834564208984,\r
+ "z": "294b5e8a.041612",\r
+ "wires": []\r
+ },\r
+ {\r
+ "id": "dba257b1.4bfa28",\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": 5257.016830444336,\r
+ "y": 2582.6834564208984,\r
+ "z": "294b5e8a.041612",\r
+ "wires": []\r
+ },\r
+ {\r
+ "id": "46db257f.be5d5c",\r
+ "type": "success",\r
+ "name": "success",\r
+ "xml": "<outcome value='success'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 5438.016830444336,\r
+ "y": 2383.6834564208984,\r
+ "z": "294b5e8a.041612",\r
+ "wires": [\r
+ [\r
+ "40633d04.a1b504"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "10ef5dcf.987c42",\r
+ "type": "not-found",\r
+ "name": "not-found",\r
+ "xml": "<outcome value='not-found'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 5430.016830444336,\r
+ "y": 2438.6834564208984,\r
+ "z": "294b5e8a.041612",\r
+ "wires": [\r
+ [\r
+ "7af2b98b.8d665"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "cdb4ea9.23d2198",\r
+ "type": "other",\r
+ "name": "other",\r
+ "xml": "<outcome value='Other'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 5435.016830444336,\r
+ "y": 2495.6834564208984,\r
+ "z": "294b5e8a.041612",\r
+ "wires": [\r
+ [\r
+ "f683ae7d.1eb048"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "f683ae7d.1eb048",\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": 5587.016830444336,\r
+ "y": 2496.6834564208984,\r
+ "z": "294b5e8a.041612",\r
+ "wires": []\r
+ },\r
+ {\r
+ "id": "7af2b98b.8d665",\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": 5598.016830444336,\r
+ "y": 2441.6834564208984,\r
+ "z": "294b5e8a.041612",\r
+ "wires": []\r
+ },\r
+ {\r
+ "id": "40633d04.a1b504",\r
+ "type": "block",\r
+ "name": "block",\r
+ "xml": "<block>\n",\r
+ "atomic": "false",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 5582.399154663086,\r
+ "y": 2381.339126586914,\r
+ "z": "294b5e8a.041612",\r
+ "wires": [\r
+ [\r
+ "8b20e4dc.c76628"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "8b20e4dc.c76628",\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": 5797.016830444336,\r
+ "y": 2377.6834564208984,\r
+ "z": "294b5e8a.041612",\r
+ "wires": []\r
+ },\r
+ {\r
+ "id": "c989c621.8b708",\r
+ "type": "switchNode",\r
+ "name": "switch secondary empty?",\r
+ "xml": "<switch test='`length($network-route-three) == 0`'>\n\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 3310.683334350586,\r
+ "y": 850.6833343505859,\r
+ "z": "294b5e8a.041612",\r
+ "wires": [\r
+ [\r
+ "c25ccae3.59498",\r
+ "69b0287f.333378"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "c25ccae3.59498",\r
+ "type": "outcomeTrue",\r
+ "name": "true",\r
+ "xml": "<outcome value='true'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 3432.683364868164,\r
+ "y": 795.6833648681641,\r
+ "z": "294b5e8a.041612",\r
+ "wires": [\r
+ [\r
+ "18001e31.10fe62"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "69b0287f.333378",\r
+ "type": "outcomeFalse",\r
+ "name": "false",\r
+ "xml": "<outcome value='false'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 3419.683364868164,\r
+ "y": 904.6833648681641,\r
+ "z": "294b5e8a.041612",\r
+ "wires": [\r
+ [\r
+ "643ae015.6b3ff8"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "18001e31.10fe62",\r
+ "type": "set",\r
+ "name": "set hasSecondary false",\r
+ "xml": "<set>\n<parameter name='hasSecondary' value=\"false\" />\n\n\n",\r
+ "comments": "",\r
+ "x": 3647.683334350586,\r
+ "y": 632.6833343505859,\r
+ "z": "294b5e8a.041612",\r
+ "wires": []\r
+ },\r
+ {\r
+ "id": "643ae015.6b3ff8",\r
+ "type": "set",\r
+ "name": "set hasSecondary true",\r
+ "xml": "<set>\n<parameter name='hasSecondary' value=\"true\" />\n\n\n",\r
+ "comments": "",\r
+ "x": 3643.683334350586,\r
+ "y": 676.6833343505859,\r
+ "z": "294b5e8a.041612",\r
+ "wires": []\r
+ },\r
+ {\r
+ "id": "25259a32.c04fe6",\r
+ "type": "switchNode",\r
+ "name": "switch $hasSecondary",\r
+ "xml": "<switch test='`$hasSecondary`'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 3840.683364868164,\r
+ "y": 3576.683364868164,\r
+ "z": "294b5e8a.041612",\r
+ "wires": [\r
+ [\r
+ "e17fd7c.5d8d2a8"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "e17fd7c.5d8d2a8",\r
+ "type": "outcomeTrue",\r
+ "name": "true",\r
+ "xml": "<outcome value='true'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 4031.683364868164,\r
+ "y": 3580.683364868164,\r
+ "z": "294b5e8a.041612",\r
+ "wires": [\r
+ [\r
+ "6f9d8ee6.40f9a8"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "6f9d8ee6.40f9a8",\r
+ "type": "block",\r
+ "name": "block",\r
+ "xml": "<block>\n",\r
+ "atomic": "false",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 4158.683364868164,\r
+ "y": 3579.683364868164,\r
+ "z": "294b5e8a.041612",\r
+ "wires": [\r
+ [\r
+ "5d450f44.f186c8",\r
+ "87679aab.884488"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "87679aab.884488",\r
+ "type": "save",\r
+ "name": "save SECONDARY-ROOT UNI in AAI",\r
+ "xml": "<save 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='tp-id' value='`$tmp.SECONDARY-ROOT.uni-tp-id`' />\n<parameter name='cvlan' value='`$tmp.aai.network-route-C.logical-interface-id`' />\n<parameter name='type' value='secondary-root' />\n<parameter name='data-source' value='`$gfp`' />\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 4380.683364868164,\r
+ "y": 3468.683364868164,\r
+ "z": "294b5e8a.041612",\r
+ "wires": [\r
+ []\r
+ ]\r
+ },\r
+ {\r
+ "id": "88b89d66.20648",\r
+ "type": "set",\r
+ "name": "unset secondary related variables",\r
+ "xml": "<set>\n<parameter name='hasSecondary' value=\"false\" />\n<parameter name='network-route-three' value=\"\" />\n<parameter name='tmp.aai.network-route-three.' value=\"\" />\n<parameter name='tmp.aai.network-route-C.' value=\"\" />\n",\r
+ "comments": "",\r
+ "x": 3385.566665649414,\r
+ "y": 508.56666564941406,\r
+ "z": "294b5e8a.041612",\r
+ "wires": []\r
+ },\r
+ {\r
+ "id": "5d450f44.f186c8",\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": 4376.566665649414,\r
+ "y": 3527.566665649414,\r
+ "z": "294b5e8a.041612",\r
+ "wires": [\r
+ [\r
+ "a8e3fac.bdef108",\r
+ "d683cc3e.7534e8"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "a8e3fac.bdef108",\r
+ "type": "outcomeTrue",\r
+ "name": "true",\r
+ "xml": "<outcome value='true'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 4586.566665649414,\r
+ "y": 3504.566665649414,\r
+ "z": "294b5e8a.041612",\r
+ "wires": [\r
+ [\r
+ "d7e8440b.3d707"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "d7e8440b.3d707",\r
+ "type": "block",\r
+ "name": "block",\r
+ "xml": "<block>\n",\r
+ "atomic": "false",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 4712.566665649414,\r
+ "y": 3504.566665649414,\r
+ "z": "294b5e8a.041612",\r
+ "wires": [\r
+ [\r
+ "23eff82f.a0dc88"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "a5367218.35d1e",\r
+ "type": "block",\r
+ "name": "block",\r
+ "xml": "<block>\n",\r
+ "atomic": "false",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 4717.566665649414,\r
+ "y": 3553.566665649414,\r
+ "z": "294b5e8a.041612",\r
+ "wires": [\r
+ [\r
+ "67e71008.eb1898",\r
+ "df5e72dc.bc108",\r
+ "728f0d90.8753cc",\r
+ "8686c784.f837e"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "d683cc3e.7534e8",\r
+ "type": "outcomeTrue",\r
+ "name": "false",\r
+ "xml": "<outcome value='false'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 4591.566665649414,\r
+ "y": 3553.566665649414,\r
+ "z": "294b5e8a.041612",\r
+ "wires": [\r
+ [\r
+ "a5367218.35d1e"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "23eff82f.a0dc88",\r
+ "type": "save",\r
+ "name": "save connectivityB relationship to UNI-SECONDARY-ROOT, in AAI",\r
+ "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='connectivity:relationship-list' \n key='connectivity.connectivity-id = $prop.connectivity-domainB-uuid' \n force=\"true\" pfx=\"tmp.AnAI-data\">\n<parameter name=\"relationship-list.relationship[0].related-to\" value=\"uni\" />\n<parameter name=\"relationship-list.relationship[0].related-link\" value=\"`'/network/unis/uni/' + $tmp.SECONDARY-ROOT.uni-p-interface-long`\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-key\" value=\"uni.id\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-value\" value=\"`$tmp.SECONDARY-ROOT.uni-p-interface-long`\" />",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 5040.566665649414,\r
+ "y": 3501.566665649414,\r
+ "z": "294b5e8a.041612",\r
+ "wires": [\r
+ []\r
+ ]\r
+ },\r
+ {\r
+ "id": "67e71008.eb1898",\r
+ "type": "execute",\r
+ "name": "execute UUID generator for connectivity domainC",\r
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='generateUUID' >\n<parameter name=\"ctx-destination\" value=\"prop.connectivity-domainC-uuid\"/>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 4993.566665649414,\r
+ "y": 3592.566665649414,\r
+ "z": "294b5e8a.041612",\r
+ "wires": [\r
+ []\r
+ ]\r
+ },\r
+ {\r
+ "id": "df5e72dc.bc108",\r
+ "type": "save",\r
+ "name": "save connectivity resource in AAI",\r
+ "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='connectivity' \n key='connectivity.connectivity-id = $prop.connectivity-domainC-uuid'>\n<parameter name='connectivity-id' value='`$prop.connectivity-domainC-uuid`' />\n<!--<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='connectivity' -->\n<!-- key='connectivity.connectivity-id = $tmp.ROOT.uni-p-interface-long'>-->\n<!--<parameter name='connectivity-id' value='`$tmp.ROOT.uni-p-interface-long`' />-->\n<parameter name='etht-svc-name' value='`$prop.ethernet-service-name`' />\n<parameter name='operational-status' value='Created' />\n<parameter name='access-provider-id' value='`$param-prefix-domainC[$param-prefix-domainC_length -9]`' />\n<parameter name='access-client-id' value='`$param-prefix-domainC[$param-prefix-domainC_length -7]`' />\n<parameter name='access-topology-id' value='`$param-prefix-domainC[$param-prefix-domainC_length -5]`' />\n<parameter name='access-node-id' value='`$param-prefix-domainC[$param-prefix-domainC_length -3]`' />\n<parameter name='access-ltp-id' value='`$param-prefix-domainC[$param-prefix-domainC_length -1]`' />\n<parameter name='cvlan' value='`$tmp.aai.network-route-C.logical-interface-id`' />\n<parameter name='color-aware' value='`$tmp.SECONDARY-ROOT.uni-p-interface-long`' />\n<parameter name='vpn-type' value='secondary-root' />\n\n\n<parameter name='bandwidth-profile-name' value='`$gfp`' />\n<parameter name='cir' value='`$gfp *1000000`' />\n<parameter name='eir' value='`$gfp *1000000`' />\n<parameter name='cbs' value='`$prop.sotn.cbs`' />\n<parameter name='ebs' value='`$prop.sotn.ebs`' />\n<!--<parameter name='color-aware' value='`$prop.sotn.colorAware`' />-->\n<!--<parameter name='coupling-flag' value='`$prop.sotn.couplingFlag`' />-->\n<!--<parameter name='etht-svc-name' value='`$prop.sotn.etht-svc-name`' />-->\n<!--<parameter name='model-customization-id' value='`$vnf-topology-operation-input.service-information.onap-model-information.model-customization-uuid`' />-->\n<!--<parameter name='model-invariant-id' value='`$vnf-topology-operation-input.service-information.onap-model-information.model-invariant-uuid`' />-->\n<!--<parameter name='model-version-id' value='`$vnf-topology-operation-input.service-information.onap-model-information.model-uuid`' />-->\n<parameter name='connectivity-selflink' value=\"`'restconf/config/GENERIC-RESOURCE-API:services/service/' + $vnf-topology-operation-input.service-information.service-instance-id + '/service-data/networks/network/' + $prop.sotn.network-id + '/network-data/'` \" />\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 4941.566665649414,\r
+ "y": 3634.566665649414,\r
+ "z": "294b5e8a.041612",\r
+ "wires": [\r
+ []\r
+ ]\r
+ },\r
+ {\r
+ "id": "728f0d90.8753cc",\r
+ "type": "save",\r
+ "name": "save TNNSSI (transport service instance) relationship to connectivity in AAI",\r
+ "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='service-instance:relationship-list' \n key='service-instance.service-instance-id = $vnf-topology-operation-input.service-information.service-instance-id\n AND customer.global-customer-id = $vnf-topology-operation-input.service-information.global-customer-id \n AND service-subscription.service-type = $vnf-topology-operation-input.service-information.subscription-service-type' \n force=\"true\" pfx=\"tmp.AnAI-data\">\n<parameter name=\"relationship-list.relationship[0].related-to\" value=\"connectivity\" />\n<parameter name=\"relationship-list.relationship[0].related-link\" value=\"`'/network/connectivities/connectivity/' + $prop.connectivity-domainC-uuid`\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-key\" value=\"connectivity.connectivity-id\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-value\" value=\"`$prop.connectivity-domainC-uuid`\" />\n\n\n<!--<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='service-instance:relationship-list' -->\n<!-- key='service-instance.service-instance-id = $service-data.service-information.service-instance-id -->\n<!-- AND customer.global-customer-id = $service-data.networks.network[$nidx].network-data.service-information.global-customer-id -->\n<!-- AND service-subscription.service-type = $service-data.networks.network[$nidx].network-data.service-information.subscription-service-type' -->\n<!-- force=\"true\" pfx=\"tmp.AnAI-data\">-->\n<!--<parameter name=\"relationship-list.relationship[0].related-to\" value=\"connectivity\" />-->\n<!--<parameter name=\"relationship-list.relationship[0].related-link\" value=\"`'/network/connectivities/connectivity/' + $prop.sotn.network-id`\" />-->\n<!--<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-key\" value=\"connectivity.connectivity-id\" />-->\n<!--<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-value\" value=\"`$prop.sotn.network-id`\" />-->",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 5070.566665649414,\r
+ "y": 3676.566665649414,\r
+ "z": "294b5e8a.041612",\r
+ "wires": [\r
+ []\r
+ ]\r
+ },\r
+ {\r
+ "id": "41be2f96.b765f8",\r
+ "type": "comment",\r
+ "name": "Create SECONDARY-ROOT connectivity",\r
+ "info": "",\r
+ "comments": "",\r
+ "x": 4956.566665649414,\r
+ "y": 3549.566665649414,\r
+ "z": "294b5e8a.041612",\r
+ "wires": []\r
+ },\r
+ {\r
+ "id": "8686c784.f837e",\r
+ "type": "save",\r
+ "name": "save connectivityC relationship to UNI-SECONDARY-ROOT, in AAI",\r
+ "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='connectivity:relationship-list' \n key='connectivity.connectivity-id = $prop.connectivity-domainC-uuid' \n force=\"true\" pfx=\"tmp.AnAI-data\">\n<parameter name=\"relationship-list.relationship[0].related-to\" value=\"uni\" />\n<parameter name=\"relationship-list.relationship[0].related-link\" value=\"`'/network/unis/uni/' + $tmp.SECONDARY-ROOT.uni-p-interface-long`\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-key\" value=\"uni.id\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-value\" value=\"`$tmp.SECONDARY-ROOT.uni-p-interface-long`\" />",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 5048.566665649414,\r
+ "y": 3724.566665649414,\r
+ "z": "294b5e8a.041612",\r
+ "wires": [\r
+ []\r
+ ]\r
+ },\r
+ {\r
+ "id": "561c7038.198b5",\r
+ "type": "comment",\r
+ "name": "Create SECONDARY-ROOT UNI",\r
+ "info": "",\r
+ "comments": "",\r
+ "x": 3868.566665649414,\r
+ "y": 3527.566665649414,\r
+ "z": "294b5e8a.041612",\r
+ "wires": []\r
+ },\r
+ {\r
+ "id": "b87e18c5.0db5e8",\r
+ "type": "switchNode",\r
+ "name": "switch $hasSecondary",\r
+ "xml": "<switch test='`$hasSecondary`'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 3843.566665649414,\r
+ "y": 4198.566665649414,\r
+ "z": "294b5e8a.041612",\r
+ "wires": [\r
+ [\r
+ "be1f4e62.15aa38"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "be1f4e62.15aa38",\r
+ "type": "outcomeTrue",\r
+ "name": "true",\r
+ "xml": "<outcome value='true'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 4035.566665649414,\r
+ "y": 4193.566665649414,\r
+ "z": "294b5e8a.041612",\r
+ "wires": [\r
+ [\r
+ "a0659afe.abed3"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "a0659afe.abed3",\r
+ "type": "block",\r
+ "name": "block",\r
+ "xml": "<block>\n",\r
+ "atomic": "false",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 4164.566665649414,\r
+ "y": 4193.566665649414,\r
+ "z": "294b5e8a.041612",\r
+ "wires": [\r
+ [\r
+ "aacb47f4.be072"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "aacb47f4.be072",\r
+ "type": "save",\r
+ "name": "save middle-man-conn relationship to UNI-SECONDARY-ROOT, in AAI",\r
+ "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='connectivity:relationship-list' \n key='connectivity.connectivity-id = $middle-man-conn.connectivity-id' \n force=\"true\" pfx=\"tmp.AnAI-data\">\n<parameter name=\"relationship-list.relationship[0].related-to\" value=\"uni\" />\n<parameter name=\"relationship-list.relationship[0].related-link\" value=\"`'/network/unis/uni/' + $tmp.SECONDARY-ROOT.uni-p-interface-long`\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-key\" value=\"uni.id\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-value\" value=\"`$tmp.SECONDARY-ROOT.uni-p-interface-long`\" />",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 4496.566665649414,\r
+ "y": 4191.566665649414,\r
+ "z": "294b5e8a.041612",\r
+ "wires": [\r
+ []\r
+ ]\r
+ },\r
+ {\r
+ "id": "88b90ca8.e250c",\r
+ "type": "switchNode",\r
+ "name": "switch $hasSecondary",\r
+ "xml": "<switch test='`$hasSecondary`'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 3831.566665649414,\r
+ "y": 4422.566665649414,\r
+ "z": "294b5e8a.041612",\r
+ "wires": [\r
+ [\r
+ "d69507e0.d93c6"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "d69507e0.d93c6",\r
+ "type": "outcomeTrue",\r
+ "name": "true",\r
+ "xml": "<outcome value='true'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 4011.566665649414,\r
+ "y": 4421.566665649414,\r
+ "z": "294b5e8a.041612",\r
+ "wires": [\r
+ [\r
+ "280736a4.7aa0f2"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "280736a4.7aa0f2",\r
+ "type": "block",\r
+ "name": "block",\r
+ "xml": "<block>\n",\r
+ "atomic": "false",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 4140.566665649414,\r
+ "y": 4421.566665649414,\r
+ "z": "294b5e8a.041612",\r
+ "wires": [\r
+ [\r
+ "ff5dea73.98b998"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "ff5dea73.98b998",\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": 4358.449966430664,\r
+ "y": 4420.449966430664,\r
+ "z": "294b5e8a.041612",\r
+ "wires": [\r
+ [\r
+ "860e2e4b.61a0d8"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "860e2e4b.61a0d8",\r
+ "type": "outcomeTrue",\r
+ "name": "false",\r
+ "xml": "<outcome value='false'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 4573.449966430664,\r
+ "y": 4420.449966430664,\r
+ "z": "294b5e8a.041612",\r
+ "wires": [\r
+ [\r
+ "3ff2617b.840e76"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "3ff2617b.840e76",\r
+ "type": "block",\r
+ "name": "block",\r
+ "xml": "<block>\n",\r
+ "atomic": "false",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 4705.449966430664,\r
+ "y": 4420.449966430664,\r
+ "z": "294b5e8a.041612",\r
+ "wires": [\r
+ [\r
+ "96149cb2.d633c"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "96149cb2.d633c",\r
+ "type": "save",\r
+ "name": "save middle-man-conn relationship to connectivity-SECONDARY-ROOT, in AAI",\r
+ "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='connectivity:relationship-list' \n key='connectivity.connectivity-id = $middle-man-conn.connectivity-id' \n force=\"true\" pfx=\"tmp.AnAI-data\">\n<parameter name=\"relationship-list.relationship[0].related-to\" value=\"connectivity\" />\n<parameter name=\"relationship-list.relationship[0].related-link\" value=\"`'/network/connectivities/connectivity/' + $prop.connectivity-domainC-uuid`\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-key\" value=\"connectivity.connectivity-id\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-value\" value=\"`$prop.connectivity-domainC-uuid`\" />",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 5069.566665649414,\r
+ "y": 4419.566665649414,\r
+ "z": "294b5e8a.041612",\r
+ "wires": [\r
+ []\r
+ ]\r
+ },\r
+ {\r
+ "id": "f0668881.7d6d6",\r
+ "type": "switchNode",\r
+ "name": "switch $hasSecondary",\r
+ "xml": "<switch test='`$hasSecondary`'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 3506.566665649414,\r
+ "y": 4677.566665649414,\r
+ "z": "294b5e8a.041612",\r
+ "wires": [\r
+ [\r
+ "2492336a.68b20c"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "2492336a.68b20c",\r
+ "type": "outcomeTrue",\r
+ "name": "true",\r
+ "xml": "<outcome value='true'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 3686.566665649414,\r
+ "y": 4676.566665649414,\r
+ "z": "294b5e8a.041612",\r
+ "wires": [\r
+ [\r
+ "f54b8794.2acdd"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "f54b8794.2acdd",\r
+ "type": "block",\r
+ "name": "block",\r
+ "xml": "<block>\n",\r
+ "atomic": "false",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 3815.566665649414,\r
+ "y": 4676.566665649414,\r
+ "z": "294b5e8a.041612",\r
+ "wires": [\r
+ [\r
+ "c3a4f53e.304d78"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "84f57def.b063a",\r
+ "type": "comment",\r
+ "name": "Update SECONDARY-ROOT UNI's bw",\r
+ "info": "",\r
+ "comments": "",\r
+ "x": 3551.566665649414,\r
+ "y": 4735.566665649414,\r
+ "z": "294b5e8a.041612",\r
+ "wires": []\r
+ },\r
+ {\r
+ "id": "cebbd661.72d4b8",\r
+ "type": "save",\r
+ "name": "update S-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": 4117.566665649414,\r
+ "y": 4834.566665649414,\r
+ "z": "294b5e8a.041612",\r
+ "wires": [\r
+ []\r
+ ]\r
+ },\r
+ {\r
+ "id": "c3a4f53e.304d78",\r
+ "type": "save",\r
+ "name": "get S-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": 3581.566665649414,\r
+ "y": 4768.566665649414,\r
+ "z": "294b5e8a.041612",\r
+ "wires": [\r
+ [\r
+ "9d76d7ba.037948",\r
+ "c6779daf.7d7a8",\r
+ "62f3b274.175fb4"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "c6779daf.7d7a8",\r
+ "type": "not-found",\r
+ "name": "not-found",\r
+ "xml": "<outcome value='not-found'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 3763.057632446289,\r
+ "y": 4746.140884399414,\r
+ "z": "294b5e8a.041612",\r
+ "wires": [\r
+ [\r
+ "168b9f85.394368"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "62f3b274.175fb4",\r
+ "type": "failure",\r
+ "name": "failure",\r
+ "xml": "<outcome value='failure'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 3751.566665649414,\r
+ "y": 4785.566665649414,\r
+ "z": "294b5e8a.041612",\r
+ "wires": [\r
+ [\r
+ "6d9d5aec.85fd34"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "168b9f85.394368",\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": 3922.629165649414,\r
+ "y": 4744.426528930664,\r
+ "z": "294b5e8a.041612",\r
+ "wires": []\r
+ },\r
+ {\r
+ "id": "6d9d5aec.85fd34",\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": 3912.566665649414,\r
+ "y": 4786.566665649414,\r
+ "z": "294b5e8a.041612",\r
+ "wires": []\r
+ },\r
+ {\r
+ "id": "1514bf18.105d59",\r
+ "type": "block",\r
+ "name": "block : atomic",\r
+ "xml": "<block atomic=\"true\">",\r
+ "atomic": "true",\r
+ "outputs": 1,\r
+ "x": 3914.566665649414,\r
+ "y": 4830.566665649414,\r
+ "z": "294b5e8a.041612",\r
+ "wires": [\r
+ [\r
+ "16719b54.ca935d",\r
+ "cebbd661.72d4b8"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "9d76d7ba.037948",\r
+ "type": "success",\r
+ "name": "success",\r
+ "xml": "<outcome value='success'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 3756.566665649414,\r
+ "y": 4822.566665649414,\r
+ "z": "294b5e8a.041612",\r
+ "wires": [\r
+ [\r
+ "1514bf18.105d59"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "16719b54.ca935d",\r
+ "type": "set",\r
+ "name": "set new bw",\r
+ "xml": "<set>\n<parameter name='tmp.newbw' value='`$tmp.aai.secondaryrootuni.data-source + $gfp`' />\n",\r
+ "comments": "",\r
+ "x": 4075.566665649414,\r
+ "y": 4762.566665649414,\r
+ "z": "294b5e8a.041612",\r
+ "wires": []\r
+ },\r
+ {\r
+ "id": "993866bb.1b2058",\r
+ "type": "comment",\r
+ "name": "populate connectivity-C variable in the context map",\r
+ "info": "",\r
+ "comments": "",\r
+ "x": 4441.566665649414,\r
+ "y": 5330.566665649414,\r
+ "z": "294b5e8a.041612",\r
+ "wires": []\r
+ },\r
+ {\r
+ "id": "f715ac9f.9b32b8",\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": 4596.566665649414,\r
+ "y": 5371.566665649414,\r
+ "z": "294b5e8a.041612",\r
+ "wires": [\r
+ []\r
+ ]\r
+ },\r
+ {\r
+ "id": "c2d27f90.576768",\r
+ "type": "set",\r
+ "name": "set prop.connectivity-domainC-uuid",\r
+ "xml": "<set>\n<!--<parameter name='prop.connectivity-domainB-uuid' value=\"`$tmp.ROOT.uni-p-interface-long`\" />-->\n<!--OR-->\n<parameter name='prop.connectivity-domainC-uuid' value=\"`$tmp.aai.SECONDARY-ROOT.connectivity.connectivity-id`\" />\n\n\n",\r
+ "comments": "",\r
+ "x": 5039.566665649414,\r
+ "y": 5419.566665649414,\r
+ "z": "294b5e8a.041612",\r
+ "wires": []\r
+ },\r
+ {\r
+ "id": "79d51ab0.5a125c",\r
+ "type": "switchNode",\r
+ "name": "switch found-secondary-root-connectivity",\r
+ "xml": "\n<switch test=\"`$found-secondary-root-connectivity`\">\n\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 4412.566665649414,\r
+ "y": 5429.566665649414,\r
+ "z": "294b5e8a.041612",\r
+ "wires": [\r
+ [\r
+ "fbb7e2aa.d5f0a8",\r
+ "7443db3b.00f94c"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "fbb7e2aa.d5f0a8",\r
+ "type": "outcomeTrue",\r
+ "name": "true",\r
+ "xml": "<outcome value='true'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 4648.566665649414,\r
+ "y": 5413.566665649414,\r
+ "z": "294b5e8a.041612",\r
+ "wires": [\r
+ [\r
+ "2a6159e8.abaf0e"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "2a6159e8.abaf0e",\r
+ "type": "block",\r
+ "name": "block : atomic",\r
+ "xml": "<block atomic='true'>",\r
+ "atomic": "true",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 4792.566665649414,\r
+ "y": 5415.566665649414,\r
+ "z": "294b5e8a.041612",\r
+ "wires": [\r
+ [\r
+ "c2d27f90.576768",\r
+ "5c6afd36.faf1f4",\r
+ "86183466.e0956"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "7443db3b.00f94c",\r
+ "type": "outcomeFalse",\r
+ "name": "false",\r
+ "xml": "<outcome value='false'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 4647.566665649414,\r
+ "y": 5461.566665649414,\r
+ "z": "294b5e8a.041612",\r
+ "wires": [\r
+ []\r
+ ]\r
+ },\r
+ {\r
+ "id": "5c6afd36.faf1f4",\r
+ "type": "save",\r
+ "name": "save TNNSSI (transport service instance) relationship to connectivity in AAI",\r
+ "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='service-instance:relationship-list' \n key='service-instance.service-instance-id = $vnf-topology-operation-input.service-information.service-instance-id\n AND customer.global-customer-id = $vnf-topology-operation-input.service-information.global-customer-id \n AND service-subscription.service-type = $vnf-topology-operation-input.service-information.subscription-service-type' \n force=\"true\" pfx=\"tmp.AnAI-data\">\n<parameter name=\"relationship-list.relationship[0].related-to\" value=\"connectivity\" />\n<parameter name=\"relationship-list.relationship[0].related-link\" value=\"`'/network/connectivities/connectivity/' + $tmp.aai.SECONDARY-ROOT.connectivity.connectivity-id`\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-key\" value=\"connectivity.connectivity-id\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-value\" value=\"`$tmp.aai.SECONDARY-ROOT.connectivity.connectivity-id`\" />\n\n\n<!--<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='service-instance:relationship-list' -->\n<!-- key='service-instance.service-instance-id = $service-data.service-information.service-instance-id -->\n<!-- AND customer.global-customer-id = $service-data.networks.network[$nidx].network-data.service-information.global-customer-id -->\n<!-- AND service-subscription.service-type = $service-data.networks.network[$nidx].network-data.service-information.subscription-service-type' -->\n<!-- force=\"true\" pfx=\"tmp.AnAI-data\">-->\n<!--<parameter name=\"relationship-list.relationship[0].related-to\" value=\"connectivity\" />-->\n<!--<parameter name=\"relationship-list.relationship[0].related-link\" value=\"`'/network/connectivities/connectivity/' + $prop.sotn.network-id`\" />-->\n<!--<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-key\" value=\"connectivity.connectivity-id\" />-->\n<!--<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-value\" value=\"`$prop.sotn.network-id`\" />-->",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 5160.566665649414,\r
+ "y": 5466.566665649414,\r
+ "z": "294b5e8a.041612",\r
+ "wires": [\r
+ []\r
+ ]\r
+ },\r
+ {\r
+ "id": "86183466.e0956",\r
+ "type": "save",\r
+ "name": "update connectivity resource in AAI",\r
+ "xml": "<update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='connectivity' \n key='connectivity.connectivity-id = $prop.connectivity-domainC-uuid'>\n<parameter name='connectivity-id' value='`$prop.connectivity-domainC-uuid`' />\n<parameter name='operational-status' value='Modified' />\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 5042.233657836914,\r
+ "y": 5551.650161743164,\r
+ "z": "294b5e8a.041612",\r
+ "wires": [\r
+ []\r
+ ]\r
+ },\r
+ {\r
+ "id": "85909b06.96d1d8",\r
+ "type": "comment",\r
+ "name": "Update connectivity status to modified",\r
+ "info": "",\r
+ "comments": "",\r
+ "x": 5043.450454711914,\r
+ "y": 5510.449966430664,\r
+ "z": "294b5e8a.041612",\r
+ "wires": []\r
+ },\r
+ {\r
+ "id": "d5d61aed.e9642",\r
+ "type": "set",\r
+ "name": "set prop.connectivity-domainC-uuid",\r
+ "xml": "<set>\n<!--<parameter name='prop.connectivity-domainB-uuid' value=\"`$tmp.ROOT.uni-p-interface-long`\" />-->\n<!--OR-->\n<parameter name='prop.connectivity-domainC-uuid' value=\"`$tmp.aai.SECONDARY-ROOT.connectivity.connectivity-id`\" />\n\n\n",\r
+ "comments": "",\r
+ "x": 5574.566665649414,\r
+ "y": 5898.566665649414,\r
+ "z": "294b5e8a.041612",\r
+ "wires": []\r
+ },\r
+ {\r
+ "id": "cfe4284f.245dc",\r
+ "type": "switchNode",\r
+ "name": "switch found-secondary-root-connectivity",\r
+ "xml": "\n<switch test=\"`$found-secondary-root-connectivity`\">\n\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 4947.566665649414,\r
+ "y": 5908.566665649414,\r
+ "z": "294b5e8a.041612",\r
+ "wires": [\r
+ [\r
+ "67276eef.04fd3",\r
+ "9ce9471a.def67"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "67276eef.04fd3",\r
+ "type": "outcomeTrue",\r
+ "name": "true",\r
+ "xml": "<outcome value='true'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 5180.566665649414,\r
+ "y": 5902.566665649414,\r
+ "z": "294b5e8a.041612",\r
+ "wires": [\r
+ [\r
+ "7fd061d3.3dea5"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "7fd061d3.3dea5",\r
+ "type": "block",\r
+ "name": "block : atomic",\r
+ "xml": "<block atomic='true'>",\r
+ "atomic": "true",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 5327.566665649414,\r
+ "y": 5910.566665649414,\r
+ "z": "294b5e8a.041612",\r
+ "wires": [\r
+ [\r
+ "d5d61aed.e9642",\r
+ "f7e19ea0.d5ede",\r
+ "ccb01b06.92e6a8"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "9ce9471a.def67",\r
+ "type": "outcomeFalse",\r
+ "name": "false",\r
+ "xml": "<outcome value='false'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 5181.566665649414,\r
+ "y": 5952.566665649414,\r
+ "z": "294b5e8a.041612",\r
+ "wires": [\r
+ []\r
+ ]\r
+ },\r
+ {\r
+ "id": "f7e19ea0.d5ede",\r
+ "type": "save",\r
+ "name": "save TNNSSI (transport service instance) relationship to connectivity in AAI",\r
+ "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='service-instance:relationship-list' \n key='service-instance.service-instance-id = $vnf-topology-operation-input.service-information.service-instance-id\n AND customer.global-customer-id = $vnf-topology-operation-input.service-information.global-customer-id \n AND service-subscription.service-type = $vnf-topology-operation-input.service-information.subscription-service-type' \n force=\"true\" pfx=\"tmp.AnAI-data\">\n<parameter name=\"relationship-list.relationship[0].related-to\" value=\"connectivity\" />\n<parameter name=\"relationship-list.relationship[0].related-link\" value=\"`'/network/connectivities/connectivity/' + $tmp.aai.SECONDARY-ROOT.connectivity.connectivity-id`\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-key\" value=\"connectivity.connectivity-id\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-value\" value=\"`$tmp.aai.SECONDARY-ROOT.connectivity.connectivity-id`\" />\n\n\n<!--<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='service-instance:relationship-list' -->\n<!-- key='service-instance.service-instance-id = $service-data.service-information.service-instance-id -->\n<!-- AND customer.global-customer-id = $service-data.networks.network[$nidx].network-data.service-information.global-customer-id -->\n<!-- AND service-subscription.service-type = $service-data.networks.network[$nidx].network-data.service-information.subscription-service-type' -->\n<!-- force=\"true\" pfx=\"tmp.AnAI-data\">-->\n<!--<parameter name=\"relationship-list.relationship[0].related-to\" value=\"connectivity\" />-->\n<!--<parameter name=\"relationship-list.relationship[0].related-link\" value=\"`'/network/connectivities/connectivity/' + $prop.sotn.network-id`\" />-->\n<!--<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-key\" value=\"connectivity.connectivity-id\" />-->\n<!--<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-value\" value=\"`$prop.sotn.network-id`\" />-->",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 5695.566665649414,\r
+ "y": 5945.566665649414,\r
+ "z": "294b5e8a.041612",\r
+ "wires": [\r
+ []\r
+ ]\r
+ },\r
+ {\r
+ "id": "ccb01b06.92e6a8",\r
+ "type": "save",\r
+ "name": "update connectivity resource in AAI",\r
+ "xml": "<update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='connectivity' \n key='connectivity.connectivity-id = $prop.connectivity-domainC-uuid'>\n<parameter name='connectivity-id' value='`$prop.connectivity-domainC-uuid`' />\n<parameter name='operational-status' value='Modified' />\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 5577.233657836914,\r
+ "y": 6030.650161743164,\r
+ "z": "294b5e8a.041612",\r
+ "wires": [\r
+ []\r
+ ]\r
+ },\r
+ {\r
+ "id": "e15ccbfd.b5904",\r
+ "type": "comment",\r
+ "name": "Update connectivity status to modified",\r
+ "info": "",\r
+ "comments": "",\r
+ "x": 5578.450454711914,\r
+ "y": 5989.449966430664,\r
+ "z": "294b5e8a.041612",\r
+ "wires": []\r
+ },\r
+ {\r
+ "id": "986cd5c9.02e9d",\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": 5108.566665649414,\r
+ "y": 5858.566665649414,\r
+ "z": "294b5e8a.041612",\r
+ "wires": [\r
+ []\r
+ ]\r
+ },\r
+ {\r
+ "id": "b4899b08.51e5b",\r
+ "type": "comment",\r
+ "name": "populate connectivity-C variable in the context map",\r
+ "info": "",\r
+ "comments": "",\r
+ "x": 4942.566665649414,\r
+ "y": 5819.566665649414,\r
+ "z": "294b5e8a.041612",\r
+ "wires": []\r
+ },\r
+ {\r
+ "id": "c617e6ee.8b983",\r
+ "type": "switchNode",\r
+ "name": "switch $hasSecondary",\r
+ "xml": "<switch test='`$hasSecondary`'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 3269.816665649414,\r
+ "y": 6428.816665649414,\r
+ "z": "294b5e8a.041612",\r
+ "wires": [\r
+ [\r
+ "9cb4bafc.51db",\r
+ "31675b48.f480a4"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "9cb4bafc.51db",\r
+ "type": "outcomeTrue",\r
+ "name": "false",\r
+ "xml": "<outcome value='false'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 3460.816665649414,\r
+ "y": 6432.816665649414,\r
+ "z": "294b5e8a.041612",\r
+ "wires": [\r
+ [\r
+ "4d6a56c7.6a325"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "4d6a56c7.6a325",\r
+ "type": "block",\r
+ "name": "block",\r
+ "xml": "<block>\n",\r
+ "atomic": "false",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 3587.816665649414,\r
+ "y": 6431.816665649414,\r
+ "z": "294b5e8a.041612",\r
+ "wires": [\r
+ [\r
+ "c5539a8b.106aa"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "31675b48.f480a4",\r
+ "type": "outcomeTrue",\r
+ "name": "true",\r
+ "xml": "<outcome value='true'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 3456.816665649414,\r
+ "y": 6502.816665649414,\r
+ "z": "294b5e8a.041612",\r
+ "wires": [\r
+ [\r
+ "8a9f9d03.ba9c7"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "9f506842.a5d348",\r
+ "type": "call",\r
+ "name": "call GENERIC-RESOURCE-API:cll-vnf-topology-operation-cll-F1-activate-w-Protection",\r
+ "xml": "<call module='GENERIC-RESOURCE-API' rpc='cll-vnf-topology-operation-cll-F1-activate-w-Protection' mode='sync' >\n\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 4006.316665649414,\r
+ "y": 6501.900161743164,\r
+ "z": "294b5e8a.041612",\r
+ "wires": [\r
+ []\r
+ ]\r
+ },\r
+ {\r
+ "id": "8a9f9d03.ba9c7",\r
+ "type": "block",\r
+ "name": "block",\r
+ "xml": "<block>\n",\r
+ "atomic": "false",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 3590.316665649414,\r
+ "y": 6504.900161743164,\r
+ "z": "294b5e8a.041612",\r
+ "wires": [\r
+ [\r
+ "9f506842.a5d348"\r
+ ]\r
+ ]\r