+ },\r
+ {\r
+ "id": "f55201f.0be188",\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": 3259.333251953125,\r
+ "y": 859.7666625976562,\r
+ "z": "4138d8f7.da252",\r
+ "wires": [\r
+ [\r
+ "e0b52eb6.aea228",\r
+ "c2961466.a099a8",\r
+ "6a533bc.97a86c4"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "e0b52eb6.aea228",\r
+ "type": "not-found",\r
+ "name": "not-found",\r
+ "xml": "<outcome value='not-found'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 3501.333251953125,\r
+ "y": 852.7666625976562,\r
+ "z": "4138d8f7.da252",\r
+ "wires": [\r
+ []\r
+ ]\r
+ },\r
+ {\r
+ "id": "c2961466.a099a8",\r
+ "type": "failure",\r
+ "name": "failure",\r
+ "xml": "<outcome value='failure'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 3496.842315673828,\r
+ "y": 895.1927185058594,\r
+ "z": "4138d8f7.da252",\r
+ "wires": [\r
+ []\r
+ ]\r
+ },\r
+ {\r
+ "id": "6a533bc.97a86c4",\r
+ "type": "success",\r
+ "name": "success",\r
+ "xml": "<outcome value='success'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 3500.84228515625,\r
+ "y": 943.1926879882812,\r
+ "z": "4138d8f7.da252",\r
+ "wires": [\r
+ [\r
+ "83cc008.07d49"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "83cc008.07d49",\r
+ "type": "block",\r
+ "name": "block : atomic",\r
+ "xml": "<block atomic=\"true\">",\r
+ "atomic": "true",\r
+ "outputs": 1,\r
+ "x": 3662.333251953125,\r
+ "y": 883.7666625976562,\r
+ "z": "4138d8f7.da252",\r
+ "wires": [\r
+ [\r
+ "2318951c.d8223a"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "2318951c.d8223a",\r
+ "type": "switchNode",\r
+ "name": "switch nr type",\r
+ "xml": "<switch test='`$tmp.aai.network-route-three.type`'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 3833.333251953125,\r
+ "y": 883.766845703125,\r
+ "z": "4138d8f7.da252",\r
+ "wires": [\r
+ [\r
+ "1ecaee8d.2e04b1",\r
+ "6f57dead.f93a98",\r
+ "743eca24.c93994"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "1ecaee8d.2e04b1",\r
+ "type": "outcome",\r
+ "name": "ROOT",\r
+ "xml": "<outcome value='ROOT'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 4000.3330078125,\r
+ "y": 793.7667846679688,\r
+ "z": "4138d8f7.da252",\r
+ "wires": [\r
+ [\r
+ "ced307c.4c3f7f8"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "6f57dead.f93a98",\r
+ "type": "outcome",\r
+ "name": "LEAF",\r
+ "xml": "<outcome value='LEAF'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 4002.3330078125,\r
+ "y": 847.7667846679688,\r
+ "z": "4138d8f7.da252",\r
+ "wires": [\r
+ [\r
+ "e2f995cd.e955"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "ced307c.4c3f7f8",\r
+ "type": "block",\r
+ "name": "block",\r
+ "xml": "<block>\n",\r
+ "atomic": "false",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 4128.3330078125,\r
+ "y": 793.7667846679688,\r
+ "z": "4138d8f7.da252",\r
+ "wires": [\r
+ [\r
+ "36a6204d.62e268",\r
+ "94b8b644.43f75"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "e2f995cd.e955",\r
+ "type": "block",\r
+ "name": "block",\r
+ "xml": "<block>\n",\r
+ "atomic": "false",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 4131.3330078125,\r
+ "y": 846.7667846679688,\r
+ "z": "4138d8f7.da252",\r
+ "wires": [\r
+ [\r
+ "7b0ab608.42ea9",\r
+ "a90ad8f1.fdc558"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "94b8b644.43f75",\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": 4374.332763671875,\r
+ "y": 932.7667846679688,\r
+ "z": "4138d8f7.da252",\r
+ "wires": []\r
+ },\r
+ {\r
+ "id": "7b0ab608.42ea9",\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": 4391.332763671875,\r
+ "y": 974.7667846679688,\r
+ "z": "4138d8f7.da252",\r
+ "wires": []\r
+ },\r
+ {\r
+ "id": "a90ad8f1.fdc558",\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": 4376.332763671875,\r
+ "y": 1012.7667846679688,\r
+ "z": "4138d8f7.da252",\r
+ "wires": []\r
+ },\r
+ {\r
+ "id": "36a6204d.62e268",\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": 4388.332763671875,\r
+ "y": 892.7667846679688,\r
+ "z": "4138d8f7.da252",\r
+ "wires": []\r
+ },\r
+ {\r
+ "id": "467d675.a17d518",\r
+ "type": "comment",\r
+ "name": "This is it (should be)",\r
+ "info": "",\r
+ "comments": "",\r
+ "x": 4553.332763671875,\r
+ "y": 908.7667846679688,\r
+ "z": "4138d8f7.da252",\r
+ "wires": []\r
+ },\r
+ {\r
+ "id": "743eca24.c93994",\r
+ "type": "outcome",\r
+ "name": "SECONDARY-ROOT",\r
+ "xml": "<outcome value='SECONDARY-ROOT'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 3941.333251953125,\r
+ "y": 938.7666015625,\r
+ "z": "4138d8f7.da252",\r
+ "wires": [\r
+ [\r
+ "32cfa81c.1fdfe"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "32cfa81c.1fdfe",\r
+ "type": "block",\r
+ "name": "block",\r
+ "xml": "<block>\n",\r
+ "atomic": "false",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 4115.333251953125,\r
+ "y": 933.7666015625,\r
+ "z": "4138d8f7.da252",\r
+ "wires": [\r
+ [\r
+ "7ba10fb0.49acb8",\r
+ "c1eb138a.5c454"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "c1eb138a.5c454",\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": 4348.332763671875,\r
+ "y": 1102.7665405273438,\r
+ "z": "4138d8f7.da252",\r
+ "wires": []\r
+ },\r
+ {\r
+ "id": "7ba10fb0.49acb8",\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": 4402.332763671875,\r
+ "y": 1062.7665405273438,\r
+ "z": "4138d8f7.da252",\r
+ "wires": []\r
+ },\r
+ {\r
+ "id": "f3ed1968.f2e4c",\r
+ "type": "comment",\r
+ "name": "This is it (should be)",\r
+ "info": "",\r
+ "comments": "",\r
+ "x": 4516.332763671875,\r
+ "y": 1087.7665405273438,\r
+ "z": "4138d8f7.da252",\r
+ "wires": []\r
+ },\r
+ {\r
+ "id": "9301f497.efdba",\r
+ "type": "block",\r
+ "name": "block : atomic",\r
+ "xml": "<block atomic=\"true\">",\r
+ "atomic": "true",\r
+ "outputs": 1,\r
+ "x": 3517,\r
+ "y": 2168,\r
+ "z": "4138d8f7.da252",\r
+ "wires": [\r
+ [\r
+ "7448f46b.34e6cc",\r
+ "5277238e.78ec8c"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "48753b32.6fce64",\r
+ "type": "success",\r
+ "name": "success",\r
+ "xml": "<outcome value='success'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 3344.33349609375,\r
+ "y": 2169,\r
+ "z": "4138d8f7.da252",\r
+ "wires": [\r
+ [\r
+ "9301f497.efdba"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "7b2bdccd.4a3854",\r
+ "type": "not-found",\r
+ "name": "not-found",\r
+ "xml": "<outcome value='not-found'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 3353.824462890625,\r
+ "y": 2211.5740356445312,\r
+ "z": "4138d8f7.da252",\r
+ "wires": [\r
+ []\r
+ ]\r
+ },\r
+ {\r
+ "id": "9a4a0275.086048",\r
+ "type": "failure",\r
+ "name": "failure",\r
+ "xml": "<outcome value='failure'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 3342.33349609375,\r
+ "y": 2258,\r
+ "z": "4138d8f7.da252",\r
+ "wires": [\r
+ []\r
+ ]\r
+ },\r
+ {\r
+ "id": "7448f46b.34e6cc",\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": 3803.33349609375,\r
+ "y": 2172.0001220703125,\r
+ "z": "4138d8f7.da252",\r
+ "wires": [\r
+ [\r
+ "645217a3.91825",\r
+ "af1d3f52.b0745"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "af1d3f52.b0745",\r
+ "type": "failure",\r
+ "name": "success",\r
+ "xml": "<outcome value='success'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 4026.33349609375,\r
+ "y": 2127.0001220703125,\r
+ "z": "4138d8f7.da252",\r
+ "wires": [\r
+ [\r
+ "731452c3.85af84"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "645217a3.91825",\r
+ "type": "failure",\r
+ "name": "failure",\r
+ "xml": "<outcome value='failure'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 4028.33349609375,\r
+ "y": 2191.0001220703125,\r
+ "z": "4138d8f7.da252",\r
+ "wires": [\r
+ [\r
+ "6089c716.00dec8"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "fa7f428c.6d6b2",\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": 3116.33349609375,\r
+ "y": 2204,\r
+ "z": "4138d8f7.da252",\r
+ "wires": [\r
+ [\r
+ "48753b32.6fce64",\r
+ "7b2bdccd.4a3854",\r
+ "9a4a0275.086048"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "c73afdde.7fd758",\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": 3077.33349609375,\r
+ "y": 2148,\r
+ "z": "4138d8f7.da252",\r
+ "wires": []\r
+ },\r
+ {\r
+ "id": "6834572.668ee28",\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": 3136.33349609375,\r
+ "y": 1944,\r
+ "z": "4138d8f7.da252",\r
+ "wires": [\r
+ [\r
+ "2bef51bc.6ca236",\r
+ "6cf1c76e.88753"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "6cf1c76e.88753",\r
+ "type": "failure",\r
+ "name": "success",\r
+ "xml": "<outcome value='success'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 3359.33349609375,\r
+ "y": 1930,\r
+ "z": "4138d8f7.da252",\r
+ "wires": [\r
+ [\r
+ "f6f8952c.2953"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "2bef51bc.6ca236",\r
+ "type": "failure",\r
+ "name": "failure",\r
+ "xml": "<outcome value='failure'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 3361.33349609375,\r
+ "y": 1963,\r
+ "z": "4138d8f7.da252",\r
+ "wires": [\r
+ []\r
+ ]\r
+ },\r
+ {\r
+ "id": "f6f8952c.2953",\r
+ "type": "block",\r
+ "name": "block : atomic",\r
+ "xml": "<block atomic=\"true\">",\r
+ "atomic": "true",\r
+ "outputs": 1,\r
+ "x": 3507.33349609375,\r
+ "y": 1923,\r
+ "z": "4138d8f7.da252",\r
+ "wires": [\r
+ [\r
+ "f448bb3c.4541c8",\r
+ "dafe2b52.c4e9d"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "f448bb3c.4541c8",\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": 3701.33349609375,\r
+ "y": 1926.0001220703125,\r
+ "z": "4138d8f7.da252",\r
+ "wires": []\r
+ },\r
+ {\r
+ "id": "5277238e.78ec8c",\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": 3754.333465576172,\r
+ "y": 2294.999969482422,\r
+ "z": "4138d8f7.da252",\r
+ "wires": [\r
+ [\r
+ "eb06fc3b.085ab"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "eb06fc3b.085ab",\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": 3960.333465576172,\r
+ "y": 2294.999969482422,\r
+ "z": "4138d8f7.da252",\r
+ "wires": [\r
+ [\r
+ "a014a0c0.bb63d8"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "dafe2b52.c4e9d",\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": 3723.33349609375,\r
+ "y": 1994.0001220703125,\r
+ "z": "4138d8f7.da252",\r
+ "wires": [\r
+ [\r
+ "a21fb44.41309c8",\r
+ "5685afe4.0b1f1",\r
+ "ea909548.33d5a"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "a21fb44.41309c8",\r
+ "type": "success",\r
+ "name": "success",\r
+ "xml": "<outcome value='success'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 3918.8336181640625,\r
+ "y": 1946.0001220703125,\r
+ "z": "4138d8f7.da252",\r
+ "wires": [\r
+ [\r
+ "9cea62e1.55972"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "5685afe4.0b1f1",\r
+ "type": "not-found",\r
+ "name": "not-found",\r
+ "xml": "<outcome value='not-found'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 3910.8336181640625,\r
+ "y": 2001.0001220703125,\r
+ "z": "4138d8f7.da252",\r
+ "wires": [\r
+ [\r
+ "89031999.da34c"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "ea909548.33d5a",\r
+ "type": "other",\r
+ "name": "other",\r
+ "xml": "<outcome value='Other'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 3915.8336181640625,\r
+ "y": 2058.0001220703125,\r
+ "z": "4138d8f7.da252",\r
+ "wires": [\r
+ [\r
+ "c3bf7f9d.8f5d8"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "c3bf7f9d.8f5d8",\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": 4067.8336181640625,\r
+ "y": 2059.0001220703125,\r
+ "z": "4138d8f7.da252",\r
+ "wires": []\r
+ },\r
+ {\r
+ "id": "9cea62e1.55972",\r
+ "type": "block",\r
+ "name": "block",\r
+ "xml": "<block>\n",\r
+ "atomic": "false",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 4063.2159423828125,\r
+ "y": 1943.6557922363281,\r
+ "z": "4138d8f7.da252",\r
+ "wires": [\r
+ [\r
+ "e8d406ab.082b08"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "8c5d257.6a579d8",\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": 3139,\r
+ "y": 2283,\r
+ "z": "4138d8f7.da252",\r
+ "wires": []\r
+ },\r
+ {\r
+ "id": "5e59531e.4360fc",\r
+ "type": "comment",\r
+ "name": "NOT NEEDED ANYMORE?",\r
+ "info": "",\r
+ "comments": "",\r
+ "x": 3813.999969482422,\r
+ "y": 2246.999969482422,\r
+ "z": "4138d8f7.da252",\r
+ "wires": []\r
+ },\r
+ {\r
+ "id": "6089c716.00dec8",\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": 4187.33349609375,\r
+ "y": 2210.0001220703125,\r
+ "z": "4138d8f7.da252",\r
+ "wires": []\r
+ },\r
+ {\r
+ "id": "731452c3.85af84",\r
+ "type": "block",\r
+ "name": "block : atomic",\r
+ "xml": "<block atomic=\"true\">",\r
+ "atomic": "true",\r
+ "outputs": 1,\r
+ "x": 4191.33349609375,\r
+ "y": 2124.0001220703125,\r
+ "z": "4138d8f7.da252",\r
+ "wires": [\r
+ [\r
+ "8743a739.8d80e8",\r
+ "538193e1.eab6f4"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "a014a0c0.bb63d8",\r
+ "type": "outcome",\r
+ "name": "tunnel-termination-point",\r
+ "xml": "<outcome value='tunnel-termination-point'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 4177.619110107422,\r
+ "y": 2293.821746826172,\r
+ "z": "4138d8f7.da252",\r
+ "wires": [\r
+ [\r
+ "62c06921.59013"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "89031999.da34c",\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": 4078.8336181640625,\r
+ "y": 2004.0001220703125,\r
+ "z": "4138d8f7.da252",\r
+ "wires": []\r
+ },\r
+ {\r
+ "id": "8743a739.8d80e8",\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": 4361.33349609375,\r
+ "y": 2085.0001220703125,\r
+ "z": "4138d8f7.da252",\r
+ "wires": []\r
+ },\r
+ {\r
+ "id": "538193e1.eab6f4",\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": 4362.33349609375,\r
+ "y": 2190.0001220703125,\r
+ "z": "4138d8f7.da252",\r
+ "wires": []\r
+ },\r
+ {\r
+ "id": "a7a60345.c4fe3",\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": 4357.33349609375,\r
+ "y": 2139.0001220703125,\r
+ "z": "4138d8f7.da252",\r
+ "wires": []\r
+ },\r
+ {\r
+ "id": "62c06921.59013",\r
+ "type": "block",\r
+ "name": "block : atomic",\r
+ "xml": "<block atomic=\"true\">",\r
+ "atomic": "true",\r
+ "outputs": 1,\r
+ "x": 4384.450653076172,\r
+ "y": 2283.3404235839844,\r
+ "z": "4138d8f7.da252",\r
+ "wires": [\r
+ [\r
+ "61f01ac9.4769c4",\r
+ "6f3f4bab.137934",\r
+ "b1be6cb6.4fb618"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "61f01ac9.4769c4",\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": 4599.450653076172,\r
+ "y": 2245.3404235839844,\r
+ "z": "4138d8f7.da252",\r
+ "wires": []\r
+ },\r
+ {\r
+ "id": "6f3f4bab.137934",\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": 4596.450653076172,\r
+ "y": 2284.3404235839844,\r
+ "z": "4138d8f7.da252",\r
+ "wires": [\r
+ [\r
+ "2692e306.96b09c"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "b1be6cb6.4fb618",\r
+ "type": "break",\r
+ "name": "break",\r
+ "xml": "<break>\n",\r
+ "comments": "",\r
+ "x": 4551.950653076172,\r
+ "y": 2326.3404235839844,\r
+ "z": "4138d8f7.da252",\r
+ "wires": []\r
+ },\r
+ {\r
+ "id": "50016039.86678",\r
+ "type": "outcome",\r
+ "name": "esr-thirdparty-sdnc",\r
+ "xml": "<outcome value='esr-thirdparty-sdnc'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 4645.33349609375,\r
+ "y": 1962.0001220703125,\r
+ "z": "4138d8f7.da252",\r
+ "wires": [\r
+ [\r
+ "19550590.021992"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "e8d406ab.082b08",\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": 4247.33349609375,\r
+ "y": 1958.0001220703125,\r
+ "z": "4138d8f7.da252",\r
+ "wires": [\r
+ [\r
+ "6de4be31.1810b"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "6de4be31.1810b",\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": 4442.33349609375,\r
+ "y": 1958.0001220703125,\r
+ "z": "4138d8f7.da252",\r
+ "wires": [\r
+ [\r
+ "50016039.86678",\r
+ "cba34b2.471f9b8"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "cba34b2.471f9b8",\r
+ "type": "outcome",\r
+ "name": "network-resource",\r
+ "xml": "<outcome value='network-resource'>",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 4647.33349609375,\r
+ "y": 2035.0001220703125,\r
+ "z": "4138d8f7.da252",\r
+ "wires": [\r
+ [\r
+ "af92238d.b3b23"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "2692e306.96b09c",\r
+ "type": "success",\r
+ "name": "success",\r
+ "xml": "<outcome value='success'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 4776.950653076172,\r
+ "y": 2283.3404235839844,\r
+ "z": "4138d8f7.da252",\r
+ "wires": [\r
+ [\r
+ "b1246264.28f0f"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "b1246264.28f0f",\r
+ "type": "block",\r
+ "name": "block : atomic",\r
+ "xml": "<block atomic=\"true\">",\r
+ "atomic": "true",\r
+ "outputs": 1,\r
+ "x": 4934.950653076172,\r
+ "y": 2283.3404235839844,\r
+ "z": "4138d8f7.da252",\r
+ "wires": [\r
+ [\r
+ "fd4ac373.f8f388"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "fd4ac373.f8f388",\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": 5141.950653076172,\r
+ "y": 2283.3404235839844,\r
+ "z": "4138d8f7.da252",\r
+ "wires": []\r
+ },\r
+ {\r
+ "id": "19550590.021992",\r
+ "type": "block",\r
+ "name": "block : atomic",\r
+ "xml": "<block atomic=\"true\">",\r
+ "atomic": "true",\r
+ "outputs": 1,\r
+ "x": 4822.33349609375,\r
+ "y": 1954.0001220703125,\r
+ "z": "4138d8f7.da252",\r
+ "wires": [\r
+ [\r
+ "f2beac88.eedd2",\r
+ "e37f582f.5a4c9"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "e37f582f.5a4c9",\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": 5030.33349609375,\r
+ "y": 1961.0001220703125,\r
+ "z": "4138d8f7.da252",\r
+ "wires": [\r
+ [\r
+ "6a3803eb.9852cc",\r
+ "9a9acadd.82809",\r
+ "a1039497.bae268"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "af92238d.b3b23",\r
+ "type": "block",\r
+ "name": "block : atomic",\r
+ "xml": "<block atomic=\"true\">",\r
+ "atomic": "true",\r
+ "outputs": 1,\r
+ "x": 4824.33349609375,\r
+ "y": 2027.0001220703125,\r
+ "z": "4138d8f7.da252",\r
+ "wires": [\r
+ [\r
+ "99f85b9c.2a8238"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "f2beac88.eedd2",\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": 5060.33349609375,\r
+ "y": 1909.0001220703125,\r
+ "z": "4138d8f7.da252",\r
+ "wires": []\r
+ },\r
+ {\r
+ "id": "99f85b9c.2a8238",\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": 5059.33349609375,\r
+ "y": 2151.0001220703125,\r
+ "z": "4138d8f7.da252",\r
+ "wires": []\r
+ },\r
+ {\r
+ "id": "6a3803eb.9852cc",\r
+ "type": "success",\r
+ "name": "success",\r
+ "xml": "<outcome value='success'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 5240.33349609375,\r
+ "y": 1952.0001220703125,\r
+ "z": "4138d8f7.da252",\r
+ "wires": [\r
+ [\r
+ "f25a9292.d1fb4"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "9a9acadd.82809",\r
+ "type": "not-found",\r
+ "name": "not-found",\r
+ "xml": "<outcome value='not-found'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 5232.33349609375,\r
+ "y": 2007.0001220703125,\r
+ "z": "4138d8f7.da252",\r
+ "wires": [\r
+ [\r
+ "7db8b6f1.adecb8"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "a1039497.bae268",\r
+ "type": "other",\r
+ "name": "other",\r
+ "xml": "<outcome value='Other'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 5237.33349609375,\r
+ "y": 2064.0001220703125,\r
+ "z": "4138d8f7.da252",\r
+ "wires": [\r
+ [\r
+ "e3bf692a.f4e238"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "e3bf692a.f4e238",\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": 5389.33349609375,\r
+ "y": 2065.0001220703125,\r
+ "z": "4138d8f7.da252",\r
+ "wires": []\r
+ },\r
+ {\r
+ "id": "7db8b6f1.adecb8",\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": 5400.33349609375,\r
+ "y": 2010.0001220703125,\r
+ "z": "4138d8f7.da252",\r
+ "wires": []\r
+ },\r
+ {\r
+ "id": "f25a9292.d1fb4",\r
+ "type": "block",\r
+ "name": "block",\r
+ "xml": "<block>\n",\r
+ "atomic": "false",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 5384.7158203125,\r
+ "y": 1949.6557922363281,\r
+ "z": "4138d8f7.da252",\r
+ "wires": [\r
+ [\r
+ "fbf54d7c.8184a"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "fbf54d7c.8184a",\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": 5599.33349609375,\r
+ "y": 1946.0001220703125,\r
+ "z": "4138d8f7.da252",\r
+ "wires": []\r
+ },\r
+ {\r
+ "id": "c067ce8c.82bd2",\r
+ "type": "comment",\r
+ "name": "Create SECONDARY-ROOT UNI",\r
+ "info": "",\r
+ "comments": "",\r
+ "x": 5628.83349609375,\r
+ "y": 2068.7666015625,\r
+ "z": "4138d8f7.da252",\r
+ "wires": []\r
+ },\r
+ {\r
+ "id": "858f96c1.79cbc",\r
+ "type": "switchNode",\r
+ "name": "switch $hasSecondary",\r
+ "xml": "<switch test='`$hasSecondary`'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 5600.9501953125,\r
+ "y": 2117.88330078125,\r
+ "z": "4138d8f7.da252",\r
+ "wires": [\r
+ [\r
+ "8c0e0f7f.469198"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "8c0e0f7f.469198",\r
+ "type": "outcomeTrue",\r
+ "name": "true",\r
+ "xml": "<outcome value='true'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 5791.9501953125,\r
+ "y": 2121.88330078125,\r
+ "z": "4138d8f7.da252",\r
+ "wires": [\r
+ [\r
+ "a3faa53c.d04c58"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "a3faa53c.d04c58",\r
+ "type": "block",\r
+ "name": "block",\r
+ "xml": "<block>\n",\r
+ "atomic": "false",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 5918.9501953125,\r
+ "y": 2120.88330078125,\r
+ "z": "4138d8f7.da252",\r
+ "wires": [\r
+ [\r
+ "53f62ca7.7b47cc",\r
+ "582e0a2f.97b604"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "582e0a2f.97b604",\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": 6140.9501953125,\r
+ "y": 2009.88330078125,\r
+ "z": "4138d8f7.da252",\r
+ "wires": [\r
+ []\r
+ ]\r
+ },\r
+ {\r
+ "id": "53f62ca7.7b47cc",\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": 6136.83349609375,\r
+ "y": 2068.7666015625,\r
+ "z": "4138d8f7.da252",\r
+ "wires": [\r
+ [\r
+ "142e04ee.e3d34b",\r
+ "257ca4bf.8f052c"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "142e04ee.e3d34b",\r
+ "type": "outcomeTrue",\r
+ "name": "true",\r
+ "xml": "<outcome value='true'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 6346.83349609375,\r
+ "y": 2045.7666015625,\r
+ "z": "4138d8f7.da252",\r
+ "wires": [\r
+ [\r
+ "9407e67d.da2418"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "9407e67d.da2418",\r
+ "type": "block",\r
+ "name": "block",\r
+ "xml": "<block>\n",\r
+ "atomic": "false",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 6472.83349609375,\r
+ "y": 2045.7666015625,\r
+ "z": "4138d8f7.da252",\r
+ "wires": [\r
+ [\r
+ "cd746c7.fc5cf1"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "f87ebbbb.7e40d",\r
+ "type": "block",\r
+ "name": "block",\r
+ "xml": "<block>\n",\r
+ "atomic": "false",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 6477.83349609375,\r
+ "y": 2094.7666015625,\r
+ "z": "4138d8f7.da252",\r
+ "wires": [\r
+ [\r
+ "88ec87d6.84288",\r
+ "29cb92cc.e394be",\r
+ "74fc1523.42a1e4",\r
+ "f8b2efa2.8dbc38"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "257ca4bf.8f052c",\r
+ "type": "outcomeTrue",\r
+ "name": "false",\r
+ "xml": "<outcome value='false'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 6351.83349609375,\r
+ "y": 2094.7666015625,\r
+ "z": "4138d8f7.da252",\r
+ "wires": [\r
+ [\r
+ "f87ebbbb.7e40d"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "cd746c7.fc5cf1",\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": 6800.83349609375,\r
+ "y": 2042.7666015625,\r
+ "z": "4138d8f7.da252",\r
+ "wires": [\r
+ []\r
+ ]\r
+ },\r
+ {\r
+ "id": "88ec87d6.84288",\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": 6753.83349609375,\r
+ "y": 2133.7666015625,\r
+ "z": "4138d8f7.da252",\r
+ "wires": [\r
+ []\r
+ ]\r
+ },\r
+ {\r
+ "id": "29cb92cc.e394be",\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='`$network-topology-operation-input.network-information.onap-model-information.model-customization-uuid`' />\n<parameter name='model-invariant-id' value='`$network-topology-operation-input.network-information.onap-model-information.model-invariant-uuid`' />\n<parameter name='model-version-id' value='`$network-topology-operation-input.network-information.onap-model-information.model-uuid`' />\n<parameter name='connectivity-selflink' value=\"`'restconf/config/GENERIC-RESOURCE-API:services/service/' + $network-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": 6701.83349609375,\r
+ "y": 2175.7666015625,\r
+ "z": "4138d8f7.da252",\r
+ "wires": [\r
+ []\r
+ ]\r
+ },\r
+ {\r
+ "id": "74fc1523.42a1e4",\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": 6830.83349609375,\r
+ "y": 2217.7666015625,\r
+ "z": "4138d8f7.da252",\r
+ "wires": [\r
+ []\r
+ ]\r
+ },\r
+ {\r
+ "id": "fdca37c0.7ca06",\r
+ "type": "comment",\r
+ "name": "Create SECONDARY-ROOT connectivity",\r
+ "info": "",\r
+ "comments": "",\r
+ "x": 6716.83349609375,\r
+ "y": 2090.7666015625,\r
+ "z": "4138d8f7.da252",\r
+ "wires": []\r
+ },\r
+ {\r
+ "id": "f8b2efa2.8dbc38",\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": 6808.83349609375,\r
+ "y": 2265.7666015625,\r
+ "z": "4138d8f7.da252",\r
+ "wires": [\r
+ []\r
+ ]\r
+ },\r
+ {\r
+ "id": "1b0442b9.4b628d",\r
+ "type": "switchNode",\r
+ "name": "switch $hasSecondary",\r
+ "xml": "<switch test='`$hasSecondary`'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 6372.83349609375,\r
+ "y": 2762.566650390625,\r
+ "z": "4138d8f7.da252",\r
+ "wires": [\r
+ [\r
+ "12529b57.e28025"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "12529b57.e28025",\r
+ "type": "outcomeTrue",\r
+ "name": "true",\r
+ "xml": "<outcome value='true'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 6564.83349609375,\r
+ "y": 2757.566650390625,\r
+ "z": "4138d8f7.da252",\r
+ "wires": [\r
+ [\r
+ "78bbff94.82c65"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "78bbff94.82c65",\r
+ "type": "block",\r
+ "name": "block",\r
+ "xml": "<block>\n",\r
+ "atomic": "false",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 6693.83349609375,\r
+ "y": 2757.566650390625,\r
+ "z": "4138d8f7.da252",\r
+ "wires": [\r
+ [\r
+ "c9dee4ca.bc2dc"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "c9dee4ca.bc2dc",\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": 7025.83349609375,\r
+ "y": 2755.566650390625,\r
+ "z": "4138d8f7.da252",\r
+ "wires": [\r
+ []\r
+ ]\r
+ },\r
+ {\r
+ "id": "c1546bd.e66d418",\r
+ "type": "switchNode",\r
+ "name": "switch $hasSecondary",\r
+ "xml": "<switch test='`$hasSecondary`'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 5957.83349609375,\r
+ "y": 2974.566650390625,\r
+ "z": "4138d8f7.da252",\r
+ "wires": [\r
+ [\r
+ "13b9a3fa.0e3ae4"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "13b9a3fa.0e3ae4",\r
+ "type": "outcomeTrue",\r
+ "name": "true",\r
+ "xml": "<outcome value='true'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 6137.83349609375,\r
+ "y": 2973.566650390625,\r
+ "z": "4138d8f7.da252",\r
+ "wires": [\r
+ [\r
+ "e57b12b2.74ef18"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "e57b12b2.74ef18",\r
+ "type": "block",\r
+ "name": "block",\r
+ "xml": "<block>\n",\r
+ "atomic": "false",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 6266.83349609375,\r
+ "y": 2973.566650390625,\r
+ "z": "4138d8f7.da252",\r
+ "wires": [\r
+ [\r
+ "c79e7977.2b3cc8"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "c79e7977.2b3cc8",\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": 6484.716796875,\r
+ "y": 2972.449951171875,\r
+ "z": "4138d8f7.da252",\r
+ "wires": [\r
+ [\r
+ "76ccfb33.2c6e3c"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "76ccfb33.2c6e3c",\r
+ "type": "outcomeTrue",\r
+ "name": "false",\r
+ "xml": "<outcome value='false'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 6699.716796875,\r
+ "y": 2972.449951171875,\r
+ "z": "4138d8f7.da252",\r
+ "wires": [\r
+ [\r
+ "f287a7b9.c4a8b"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "f287a7b9.c4a8b",\r
+ "type": "block",\r
+ "name": "block",\r
+ "xml": "<block>\n",\r
+ "atomic": "false",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 6831.716796875,\r
+ "y": 2972.449951171875,\r
+ "z": "4138d8f7.da252",\r
+ "wires": [\r
+ [\r
+ "3f3acb0.03380b6"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "3f3acb0.03380b6",\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": 7195.83349609375,\r
+ "y": 2971.566650390625,\r
+ "z": "4138d8f7.da252",\r
+ "wires": [\r
+ []\r
+ ]\r
+ },\r
+ {\r
+ "id": "3c12d321.f6ab2c",\r
+ "type": "switchNode",\r
+ "name": "switch $hasSecondary",\r
+ "xml": "<switch test='`$hasSecondary`'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 4928.33251953125,\r
+ "y": 2622.13330078125,\r
+ "z": "4138d8f7.da252",\r
+ "wires": [\r
+ [\r
+ "700dbefa.a5007"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "700dbefa.a5007",\r
+ "type": "outcomeTrue",\r
+ "name": "true",\r
+ "xml": "<outcome value='true'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 5108.33251953125,\r
+ "y": 2621.13330078125,\r
+ "z": "4138d8f7.da252",\r
+ "wires": [\r
+ [\r
+ "c3579242.e478c8"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "c3579242.e478c8",\r
+ "type": "block",\r
+ "name": "block",\r
+ "xml": "<block>\n",\r
+ "atomic": "false",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 5237.33251953125,\r
+ "y": 2621.13330078125,\r
+ "z": "4138d8f7.da252",\r
+ "wires": [\r
+ [\r
+ "69f846d5.9ccd18"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "cdd1f45b.46fb58",\r
+ "type": "comment",\r
+ "name": "Update SECONDARY-ROOT UNI's bw",\r
+ "info": "",\r
+ "comments": "",\r
+ "x": 4973.33251953125,\r
+ "y": 2680.13330078125,\r
+ "z": "4138d8f7.da252",\r
+ "wires": []\r
+ },\r
+ {\r
+ "id": "69f846d5.9ccd18",\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": 5003.33251953125,\r
+ "y": 2713.13330078125,\r
+ "z": "4138d8f7.da252",\r
+ "wires": [\r
+ [\r
+ "622ffdb0.75cb54",\r
+ "c593ae10.f47a3",\r
+ "24e47d1.d702d82"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "c593ae10.f47a3",\r
+ "type": "not-found",\r
+ "name": "not-found",\r
+ "xml": "<outcome value='not-found'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 5184.823486328125,\r
+ "y": 2690.70751953125,\r
+ "z": "4138d8f7.da252",\r
+ "wires": [\r
+ [\r
+ "439fba81.48a81c"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "24e47d1.d702d82",\r
+ "type": "failure",\r
+ "name": "failure",\r
+ "xml": "<outcome value='failure'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 5173.33251953125,\r
+ "y": 2730.13330078125,\r
+ "z": "4138d8f7.da252",\r
+ "wires": [\r
+ [\r
+ "e58b129f.993b8"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "439fba81.48a81c",\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": 5344.39501953125,\r
+ "y": 2688.9931640625,\r
+ "z": "4138d8f7.da252",\r
+ "wires": []\r
+ },\r
+ {\r
+ "id": "e58b129f.993b8",\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": 5334.33251953125,\r
+ "y": 2731.13330078125,\r
+ "z": "4138d8f7.da252",\r
+ "wires": []\r
+ },\r
+ {\r
+ "id": "622ffdb0.75cb54",\r
+ "type": "success",\r
+ "name": "success",\r
+ "xml": "<outcome value='success'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 5178.33251953125,\r
+ "y": 2767.13330078125,\r
+ "z": "4138d8f7.da252",\r
+ "wires": [\r
+ [\r
+ "ea27280d.d02bf8"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "ea27280d.d02bf8",\r
+ "type": "block",\r
+ "name": "block : atomic",\r
+ "xml": "<block atomic=\"true\">",\r
+ "atomic": "true",\r
+ "outputs": 1,\r
+ "x": 5336.33251953125,\r
+ "y": 2775.13330078125,\r
+ "z": "4138d8f7.da252",\r
+ "wires": [\r
+ [\r
+ "5d2e8885.4f468",\r
+ "6cb98496.dc88f4"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "5d2e8885.4f468",\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": 5497.33251953125,\r
+ "y": 2707.13330078125,\r
+ "z": "4138d8f7.da252",\r
+ "wires": []\r
+ },\r
+ {\r
+ "id": "6cb98496.dc88f4",\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": 5539.33251953125,\r
+ "y": 2779.13330078125,\r
+ "z": "4138d8f7.da252",\r
+ "wires": [\r
+ []\r
+ ]\r
+ },\r
+ {\r
+ "id": "d39256ff.c99e4",\r
+ "type": "switchNode",\r
+ "name": "switch $hasSecondary",\r
+ "xml": "<switch test='`$hasSecondary`'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 5015.33251953125,\r
+ "y": 2980.13330078125,\r
+ "z": "4138d8f7.da252",\r
+ "wires": [\r
+ [\r
+ "9b669929.a8064"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "9b669929.a8064",\r
+ "type": "outcomeTrue",\r
+ "name": "true",\r
+ "xml": "<outcome value='true'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 5195.33251953125,\r
+ "y": 2979.13330078125,\r
+ "z": "4138d8f7.da252",\r
+ "wires": [\r
+ [\r
+ "479be729.dc0248"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "479be729.dc0248",\r
+ "type": "block",\r
+ "name": "block",\r
+ "xml": "<block>\n",\r
+ "atomic": "false",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 5324.33251953125,\r
+ "y": 2979.13330078125,\r
+ "z": "4138d8f7.da252",\r
+ "wires": [\r
+ [\r
+ "96ab8e09.feb69"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "89e60282.d93268",\r
+ "type": "comment",\r
+ "name": "Update SECONDARY-ROOT UNI's bw",\r
+ "info": "",\r
+ "comments": "",\r
+ "x": 5060.33251953125,\r
+ "y": 3038.13330078125,\r
+ "z": "4138d8f7.da252",\r
+ "wires": []\r
+ },\r
+ {\r
+ "id": "96ab8e09.feb69",\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": 5090.33251953125,\r
+ "y": 3071.13330078125,\r
+ "z": "4138d8f7.da252",\r
+ "wires": [\r
+ [\r
+ "d8822576.b3585",\r
+ "75b8d325.77424c",\r
+ "c70dc607.d25bf8"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "75b8d325.77424c",\r
+ "type": "not-found",\r
+ "name": "not-found",\r
+ "xml": "<outcome value='not-found'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 5271.823486328125,\r
+ "y": 3048.70751953125,\r
+ "z": "4138d8f7.da252",\r
+ "wires": [\r
+ [\r
+ "1c3be14a.a5638f"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "c70dc607.d25bf8",\r
+ "type": "failure",\r
+ "name": "failure",\r
+ "xml": "<outcome value='failure'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 5260.33251953125,\r
+ "y": 3088.13330078125,\r
+ "z": "4138d8f7.da252",\r
+ "wires": [\r
+ [\r
+ "57a20811.9713c"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "1c3be14a.a5638f",\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": 5431.39501953125,\r
+ "y": 3046.9931640625,\r
+ "z": "4138d8f7.da252",\r
+ "wires": []\r
+ },\r
+ {\r
+ "id": "57a20811.9713c",\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": 5421.33251953125,\r
+ "y": 3089.13330078125,\r
+ "z": "4138d8f7.da252",\r
+ "wires": []\r
+ },\r
+ {\r
+ "id": "d8822576.b3585",\r
+ "type": "success",\r
+ "name": "success",\r
+ "xml": "<outcome value='success'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 5265.33251953125,\r
+ "y": 3125.13330078125,\r
+ "z": "4138d8f7.da252",\r
+ "wires": [\r
+ [\r
+ "89319d00.a640d8"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "89319d00.a640d8",\r
+ "type": "block",\r
+ "name": "block : atomic",\r
+ "xml": "<block atomic=\"true\">",\r
+ "atomic": "true",\r
+ "outputs": 1,\r
+ "x": 5423.33251953125,\r
+ "y": 3133.13330078125,\r
+ "z": "4138d8f7.da252",\r
+ "wires": [\r
+ [\r
+ "f52ef279.5e2fa8",\r
+ "ebb57be1.fff538"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "f52ef279.5e2fa8",\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": 5584.33251953125,\r
+ "y": 3065.13330078125,\r
+ "z": "4138d8f7.da252",\r
+ "wires": []\r
+ },\r
+ {\r
+ "id": "ebb57be1.fff538",\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": 5626.33251953125,\r
+ "y": 3137.13330078125,\r
+ "z": "4138d8f7.da252",\r
+ "wires": [\r
+ []\r
+ ]\r
+ },\r
+ {\r
+ "id": "b27458da.77b73",\r
+ "type": "switchNode",\r
+ "name": "switch $hasSecondary",\r
+ "xml": "<switch test='`$hasSecondary`'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 3497,\r
+ "y": 4562.13330078125,\r
+ "z": "4138d8f7.da252",\r
+ "wires": [\r
+ [\r
+ "b7009e9a.816708"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "b7009e9a.816708",\r
+ "type": "outcomeTrue",\r
+ "name": "true",\r
+ "xml": "<outcome value='true'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 3677,\r
+ "y": 4561.13330078125,\r
+ "z": "4138d8f7.da252",\r
+ "wires": [\r
+ [\r
+ "75b6f667.ff2f48"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "75b6f667.ff2f48",\r
+ "type": "block",\r
+ "name": "block",\r
+ "xml": "<block>\n",\r
+ "atomic": "false",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 3806,\r
+ "y": 4561.13330078125,\r
+ "z": "4138d8f7.da252",\r
+ "wires": [\r
+ [\r
+ "e0e9d687.026568"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "93bf9820.efc6f",\r
+ "type": "comment",\r
+ "name": "Update SECONDARY-ROOT UNI's bw",\r
+ "info": "",\r
+ "comments": "",\r
+ "x": 3542,\r
+ "y": 4620.13330078125,\r
+ "z": "4138d8f7.da252",\r
+ "wires": []\r
+ },\r
+ {\r
+ "id": "e0e9d687.026568",\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": 3572,\r
+ "y": 4653.13330078125,\r
+ "z": "4138d8f7.da252",\r
+ "wires": [\r
+ [\r
+ "6dcb758c.68fb4c",\r
+ "79d68d78.6f5a44",\r
+ "5d2b0296.8c0914"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "79d68d78.6f5a44",\r
+ "type": "not-found",\r
+ "name": "not-found",\r
+ "xml": "<outcome value='not-found'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 3753.490966796875,\r
+ "y": 4630.70751953125,\r
+ "z": "4138d8f7.da252",\r
+ "wires": [\r
+ [\r
+ "283870b5.b39d78"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "5d2b0296.8c0914",\r
+ "type": "failure",\r
+ "name": "failure",\r
+ "xml": "<outcome value='failure'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 3742,\r
+ "y": 4670.13330078125,\r
+ "z": "4138d8f7.da252",\r
+ "wires": [\r
+ [\r
+ "307bdbbc.e5590c"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "283870b5.b39d78",\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": 3913.0625,\r
+ "y": 4628.9931640625,\r
+ "z": "4138d8f7.da252",\r
+ "wires": []\r
+ },\r
+ {\r
+ "id": "307bdbbc.e5590c",\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": 3903,\r
+ "y": 4671.13330078125,\r
+ "z": "4138d8f7.da252",\r
+ "wires": []\r
+ },\r
+ {\r
+ "id": "6dcb758c.68fb4c",\r
+ "type": "success",\r
+ "name": "success",\r
+ "xml": "<outcome value='success'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 3747,\r
+ "y": 4707.13330078125,\r
+ "z": "4138d8f7.da252",\r
+ "wires": [\r
+ [\r
+ "22012b3c.a0e674"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "22012b3c.a0e674",\r
+ "type": "block",\r
+ "name": "block : atomic",\r
+ "xml": "<block atomic=\"true\">",\r
+ "atomic": "true",\r
+ "outputs": 1,\r
+ "x": 3905,\r
+ "y": 4715.13330078125,\r
+ "z": "4138d8f7.da252",\r
+ "wires": [\r
+ [\r
+ "7783af35.773e7",\r
+ "e7eec98c.ca59"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "7783af35.773e7",\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": 4066,\r
+ "y": 4647.13330078125,\r
+ "z": "4138d8f7.da252",\r
+ "wires": []\r
+ },\r
+ {\r
+ "id": "e7eec98c.ca59",\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": 4108,\r
+ "y": 4719.13330078125,\r
+ "z": "4138d8f7.da252",\r
+ "wires": [\r
+ []\r
+ ]\r
+ },\r
+ {\r
+ "id": "e87132f3.ee29c",\r
+ "type": "comment",\r
+ "name": "populate connectivity-C variable in the context map",\r
+ "info": "",\r
+ "comments": "",\r
+ "x": 4188.6669921875,\r
+ "y": 5517.13330078125,\r
+ "z": "4138d8f7.da252",\r
+ "wires": []\r
+ },\r
+ {\r
+ "id": "cb7342b9.a9c168",\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": 4343.6669921875,\r
+ "y": 5558.13330078125,\r
+ "z": "4138d8f7.da252",\r
+ "wires": [\r
+ []\r
+ ]\r
+ },\r
+ {\r
+ "id": "7a7c44d8.30aa44",\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": 4159.6669921875,\r
+ "y": 5616.13330078125,\r
+ "z": "4138d8f7.da252",\r
+ "wires": [\r
+ [\r
+ "8bec5884.15258",\r
+ "bb24a1ac.622598"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "8bec5884.15258",\r
+ "type": "outcomeTrue",\r
+ "name": "true",\r
+ "xml": "<outcome value='true'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 4395.6669921875,\r
+ "y": 5600.13330078125,\r
+ "z": "4138d8f7.da252",\r
+ "wires": [\r
+ [\r
+ "6d098a3a.3afd8c"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "bb24a1ac.622598",\r
+ "type": "outcomeFalse",\r
+ "name": "false",\r
+ "xml": "<outcome value='false'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 4394.6669921875,\r
+ "y": 5648.13330078125,\r
+ "z": "4138d8f7.da252",\r
+ "wires": [\r
+ []\r
+ ]\r
+ },\r
+ {\r
+ "id": "6d098a3a.3afd8c",\r
+ "type": "block",\r
+ "name": "block : atomic",\r
+ "xml": "<block atomic='true'>",\r
+ "atomic": "true",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 4539.6669921875,\r
+ "y": 5602.13330078125,\r
+ "z": "4138d8f7.da252",\r
+ "wires": [\r
+ [\r
+ "de9129b3.62ee98",\r
+ "95ed5b5c.afa778",\r
+ "140ab45c.08ae54"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "de9129b3.62ee98",\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": 4951.667236328125,\r
+ "y": 5737.13330078125,\r
+ "z": "4138d8f7.da252",\r
+ "wires": []\r
+ },\r
+ {\r
+ "id": "95ed5b5c.afa778",\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": 5072.667236328125,\r
+ "y": 5784.13330078125,\r
+ "z": "4138d8f7.da252",\r
+ "wires": [\r
+ []\r
+ ]\r
+ },\r
+ {\r
+ "id": "bc8a01e6.d0596",\r
+ "type": "comment",\r
+ "name": "Update connectivity status to modified",\r
+ "info": "",\r
+ "comments": "",\r
+ "x": 4955.551025390625,\r
+ "y": 5828.0166015625,\r
+ "z": "4138d8f7.da252",\r
+ "wires": []\r
+ },\r
+ {\r
+ "id": "140ab45c.08ae54",\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": 4954.334228515625,\r
+ "y": 5869.216796875,\r
+ "z": "4138d8f7.da252",\r
+ "wires": [\r
+ []\r
+ ]\r
+ },\r
+ {\r
+ "id": "4e2e6b5c.090cf4",\r
+ "type": "comment",\r
+ "name": "populate connectivity-C variable in the context map",\r
+ "info": "",\r
+ "comments": "",\r
+ "x": 4815,\r
+ "y": 6123.13330078125,\r
+ "z": "4138d8f7.da252",\r
+ "wires": []\r
+ },\r
+ {\r
+ "id": "8afd899a.01e88",\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": 4981,\r
+ "y": 6162.13330078125,\r
+ "z": "4138d8f7.da252",\r
+ "wires": [\r
+ []\r
+ ]\r
+ },\r
+ {\r
+ "id": "8c1f115c.700108",\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": 4820,\r
+ "y": 6212.13330078125,\r
+ "z": "4138d8f7.da252",\r
+ "wires": [\r
+ [\r
+ "53961644.a48598",\r
+ "58a624c5.6a1504"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "53961644.a48598",\r
+ "type": "outcomeTrue",\r
+ "name": "true",\r
+ "xml": "<outcome value='true'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 5053,\r
+ "y": 6206.13330078125,\r
+ "z": "4138d8f7.da252",\r
+ "wires": [\r
+ [\r
+ "1edcc228.5234b6"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "58a624c5.6a1504",\r
+ "type": "outcomeFalse",\r
+ "name": "false",\r
+ "xml": "<outcome value='false'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 5054,\r
+ "y": 6256.13330078125,\r
+ "z": "4138d8f7.da252",\r
+ "wires": [\r
+ []\r
+ ]\r
+ },\r
+ {\r
+ "id": "1edcc228.5234b6",\r
+ "type": "block",\r
+ "name": "block : atomic",\r
+ "xml": "<block atomic='true'>",\r
+ "atomic": "true",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 5200,\r
+ "y": 6214.13330078125,\r
+ "z": "4138d8f7.da252",\r
+ "wires": [\r
+ [\r
+ "a2cd952f.42f1c8",\r
+ "75bd12d0.4fb564",\r
+ "ddd98790.fa90d"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "a2cd952f.42f1c8",\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": 5447,\r
+ "y": 6202.13330078125,\r
+ "z": "4138d8f7.da252",\r
+ "wires": []\r
+ },\r
+ {\r
+ "id": "75bd12d0.4fb564",\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": 5568,\r
+ "y": 6249.13330078125,\r
+ "z": "4138d8f7.da252",\r
+ "wires": [\r
+ []\r
+ ]\r
+ },\r
+ {\r
+ "id": "6c605ae5.2dde2c",\r
+ "type": "comment",\r
+ "name": "Update connectivity status to modified",\r
+ "info": "",\r
+ "comments": "",\r
+ "x": 5450.8837890625,\r
+ "y": 6293.0166015625,\r
+ "z": "4138d8f7.da252",\r
+ "wires": []\r
+ },\r
+ {\r
+ "id": "ddd98790.fa90d",\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": 5449.6669921875,\r
+ "y": 6334.216796875,\r
+ "z": "4138d8f7.da252",\r
+ "wires": [\r
+ []\r
+ ]\r
+ },\r
+ {\r
+ "id": "e4c8e98f.2e48b8",\r
+ "type": "call",\r
+ "name": "call GENERIC-RESOURCE-API:cll-vnf-topology-operation-cll-F1-activate",\r
+ "xml": "<call module='GENERIC-RESOURCE-API' rpc='cll-vnf-topology-operation-cll-F1-activate' mode='sync' >\n\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 3577,\r
+ "y": 6107.56689453125,\r
+ "z": "4138d8f7.da252",\r
+ "wires": [\r
+ []\r
+ ]\r
+ },\r
+ {\r
+ "id": "5e06fc8.b063184",\r
+ "type": "switchNode",\r
+ "name": "switch $hasSecondary",\r
+ "xml": "<switch test='`$hasSecondary`'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 2914.25,\r
+ "y": 6105.81689453125,\r
+ "z": "4138d8f7.da252",\r
+ "wires": [\r
+ [\r
+ "5aaa3311.116ad4",\r
+ "5f201884.9bf1b"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "5aaa3311.116ad4",\r
+ "type": "outcomeTrue",\r
+ "name": "false",\r
+ "xml": "<outcome value='false'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 3105.25,\r
+ "y": 6109.81689453125,\r
+ "z": "4138d8f7.da252",\r
+ "wires": [\r
+ [\r
+ "42b72649.a2611"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "42b72649.a2611",\r
+ "type": "block",\r
+ "name": "block",\r
+ "xml": "<block>\n",\r
+ "atomic": "false",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 3232.25,\r
+ "y": 6108.81689453125,\r
+ "z": "4138d8f7.da252",\r
+ "wires": [\r
+ [\r
+ "e4c8e98f.2e48b8"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "5f201884.9bf1b",\r
+ "type": "outcomeTrue",\r
+ "name": "true",\r
+ "xml": "<outcome value='true'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 3101.25,\r
+ "y": 6179.81689453125,\r
+ "z": "4138d8f7.da252",\r
+ "wires": [\r
+ [\r
+ "1e510c07.00530c"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "382dddaf.06eaa2",\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": 3650.75,\r
+ "y": 6178.900390625,\r
+ "z": "4138d8f7.da252",\r
+ "wires": [\r
+ []\r
+ ]\r
+ },\r
+ {\r
+ "id": "1e510c07.00530c",\r
+ "type": "block",\r
+ "name": "block",\r
+ "xml": "<block>\n",\r
+ "atomic": "false",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 3234.75,\r
+ "y": 6181.900390625,\r
+ "z": "4138d8f7.da252",\r
+ "wires": [\r
+ [\r
+ "382dddaf.06eaa2"\r
+ ]\r
+ ]\r