-[
- {
- "id": "e71bc70e.124d38",
- "type": "dgstart",
- "name": "DGSTART",
- "outputs": 1,
- "x": 142,
- "y": 49,
- "z": "a2160ede.50a7f8",
- "wires": [
- [
- "f849e1fd.7b8e28"
- ]
- ]
- },
- {
- "id": "f849e1fd.7b8e28",
- "type": "service-logic",
- "name": "DataChange ${project.version}",
- "module": "DataChange",
- "version": "${project.version}",
- "comments": "",
- "xml": "<service-logic xmlns='http://www.onap.org/sdnc/svclogic' xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xsi:schemaLocation='http://www.onap.org/sdnc/svclogic ./svclogic.xsd' module='DataChange' version='${project.version}'>",
- "outputs": 1,
- "x": 231.00003051757812,
- "y": 139.88891220092773,
- "z": "a2160ede.50a7f8",
- "wires": [
- [
- "7adf111d.766db8"
- ]
- ]
- },
- {
- "id": "7adf111d.766db8",
- "type": "method",
- "name": "method update-network-to-aai",
- "xml": "<method rpc='update-network-to-aai' mode='sync'>\n",
- "comments": "",
- "outputs": 1,
- "x": 267.1112518310547,
- "y": 210.22223663330078,
- "z": "a2160ede.50a7f8",
- "wires": [
- [
- "802b5752.247908"
- ]
- ]
- },
- {
- "id": "802b5752.247908",
- "type": "block",
- "name": "block : atomic",
- "xml": "<block atomic=\"true\">\n",
- "atomic": "false",
- "comments": "",
- "outputs": 1,
- "x": 492.33343505859375,
- "y": 209.77792358398438,
- "z": "a2160ede.50a7f8",
- "wires": [
- [
- "32d96ea8.386a82",
- "7667af77.0df1e8",
- "6f623dd3.9a7c44",
- "ffd24e55.e4afa"
- ]
- ]
- },
- {
- "id": "7667af77.0df1e8",
- "type": "update",
- "name": "save network-resource",
- "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='network-resource' \n key='network-resource.network-id = $tmp.network-id' >\n<parameter name='network-id' value='`$tmp.network-id`' />\n<parameter name='client-id' value='`$network.client-id`' />\n<parameter name='te-topo-id' value='`$network.te-topology-id`' />\n<parameter name='provider-id' value='`$network.provider-id`' />\n\n<parameter name='network-type' value='`$network.network-types`' />\n\n\n",
- "comments": "",
- "outputs": 1,
- "x": 722.333251953125,
- "y": 115.00001525878906,
- "z": "a2160ede.50a7f8",
- "wires": [
- []
- ]
- },
- {
- "id": "ab67cffd.8b31",
- "type": "update",
- "name": "save pnf",
- "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='pnf' \n key='pnf.pnf-name = $unique-nodeId' >\n<parameter name='pnf-name' value='`$unique-nodeId`' />\n<parameter name='pnf-id' value='`$node.node-id`' />\n<parameter name='operational-status' value='`$node.te.oper-status`' />\n<parameter name='admin-status' value='`$node.te.te-node-attributes.admin-status`' />\n<parameter name='in-maint' value='true' />\n\n\n\n\n\n",
- "comments": "",
- "outputs": 1,
- "x": 934.1111450195312,
- "y": 205.111083984375,
- "z": "a2160ede.50a7f8",
- "wires": [
- []
- ]
- },
- {
- "id": "6f623dd3.9a7c44",
- "type": "for",
- "name": "for each node",
- "xml": "<for index='pidx' start='0' end='`$network.node_length`' >\n",
- "comments": "",
- "outputs": 1,
- "x": 705.8888549804688,
- "y": 185.33331298828125,
- "z": "a2160ede.50a7f8",
- "wires": [
- [
- "ab67cffd.8b31",
- "c4083363.2a3b2",
- "ba78539e.d2e248",
- "c02a5c85.3b448",
- "499b8cbc.ebafac",
- "7a876b8.f89b114",
- "46013f8c.54849"
- ]
- ]
- },
- {
- "id": "c4083363.2a3b2",
- "type": "set",
- "name": "set network",
- "xml": "<set>\n<parameter name='node.' value='`$network.node[$pidx].`' />\n\n<parameter name='unique-networkId' value='`$tmp.network-id`' />\n<parameter name='unique-nodeId' value=\"`'networkId-' + $unique-networkId + '-nodeId-' + $node.node-id`\" />\n<parameter name='src-tpId' value=\"`'networkId-' + $unique-networkId + '-nodeId-' + $link.source.source-node + '-ltpId-' + $link.source.source-tp`\" />\n",
- "comments": "",
- "x": 950.111083984375,
- "y": 133.2222137451172,
- "z": "a2160ede.50a7f8",
- "wires": []
- },
- {
- "id": "c02a5c85.3b448",
- "type": "save",
- "name": "save pnf relationship to network-resource in AAI",
- "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='pnf:relationship-list' \n key='pnf.pnf-name = $unique-nodeId' force=\"true\" pfx=\"tmp.AnAI-data\">\n<parameter name=\"relationship-list.relationship[0].related-to\" value=\"network-resource\" />\n<parameter name=\"relationship-list.relationship[0].related-link\" value=\"`'/network/network-resources/network-resource/' + $tmp.network-id`\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-key\" value=\"network-resource.network-id\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-value\" value=\"`$tmp.network-id`\" />",
- "comments": "",
- "outputs": 1,
- "x": 1030.7779541015625,
- "y": 380.44447803497314,
- "z": "a2160ede.50a7f8",
- "wires": [
- []
- ]
- },
- {
- "id": "499b8cbc.ebafac",
- "type": "for",
- "name": "for each termination point",
- "xml": "<for index='tidx' start='0' end='`$node.termination-point_length`' >\n",
- "comments": "",
- "outputs": 1,
- "x": 963.4444580078125,
- "y": 496.111083984375,
- "z": "a2160ede.50a7f8",
- "wires": [
- [
- "c5951e15.43701",
- "c670da77.075458",
- "3831ed03.d1f9da",
- "f6959b19.b0bc18"
- ]
- ]
- },
- {
- "id": "c5951e15.43701",
- "type": "set",
- "name": "set termination point",
- "xml": "<set>\n<parameter name='tp.' value='`$node.termination-point[$tidx].`' />\n",
- "comments": "",
- "x": 1230.111328125,
- "y": 457.0000457763672,
- "z": "a2160ede.50a7f8",
- "wires": []
- },
- {
- "id": "3831ed03.d1f9da",
- "type": "update",
- "name": "save p-interface",
- "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='p-interface' \n key='pnf.pnf-name = $unique-nodeId\n AND p-interface.interface-name = $unique-ltpId' > \n<parameter name='interface-name' value='`$unique-ltpId`' />\n<parameter name='network-ref' value='`$tp.supporting-termination-point[0].network-ref`' />\n<parameter name='transparent' value='`$tp.svc.supported-classification.transparent`' />\n<parameter name='speed-value' value='`$tp.te.interface-switching-capability[0].max-lsp-bandwidth[0].te-bandwidth.eth-bandwidth`' />\n<parameter name='operational-status' value='`$tp.te.oper-status`' />\n<parameter name='in-maint' value=\"true\" />\n\n<parameter name='inter-layer-lock-id' value='`$tp.te.inter-layer-lock-id[0]`' />\n<parameter name='inter-domain-plug-id' value='`$tp.te.inter-domain-plug-id`' />\n\n",
- "comments": "",
- "outputs": 1,
- "x": 1213.8151397705078,
- "y": 630.5555934906006,
- "z": "a2160ede.50a7f8",
- "wires": [
- [
- "9d09dea6.d30ca8",
- "abd50ee3.2f813"
- ]
- ]
- },
- {
- "id": "7e259f3c.438d9",
- "type": "save",
- "name": "save pnf relationship to p-interface in AAI",
- "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='pnf:relationship-list' \n key='pnf.pnf-name = $unique-nodeId' force=\"true\" pfx=\"tmp.AnAI-data\">\n<parameter name=\"relationship-list.relationship[0].related-to\" value=\"p-interface\" />\n<parameter name=\"relationship-list.relationship[0].related-link\" value=\"`'/network/network-resources/network-resource/' + $tmp.network-id + '/pnfs/pnf/' + $unique-nodeId '/p-interfaces/p-interface/' + $unique-ltpId`\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-key\" value=\"p-interface.interface-name\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-value\" value=\"`$unique-ltpId`\" />",
- "comments": "",
- "outputs": 1,
- "x": 1297.703857421875,
- "y": 765.3333740234375,
- "z": "a2160ede.50a7f8",
- "wires": [
- []
- ]
- },
- {
- "id": "c670da77.075458",
- "type": "set",
- "name": "set unique-ltpId",
- "xml": "<set>\n<parameter name='unique-ltpId' value=\"`$unique-nodeId + '-ltpId-' + $tp.te-tp-id`\" />\n",
- "comments": "",
- "x": 1214.000244140625,
- "y": 491.1111145019531,
- "z": "a2160ede.50a7f8",
- "wires": []
- },
- {
- "id": "32d96ea8.386a82",
- "type": "execute",
- "name": "execute",
- "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$network.network-id`\"/>\n <parameter name=\"outputPath\" value=\"tmp.network-id\"/>\n <parameter name=\"target\" value=\"/\"/>\n <parameter name=\"replacement\" value=\"-\"/>\n ",
- "comments": "",
- "outputs": 1,
- "x": 671.9935302734375,
- "y": 75.99349212646484,
- "z": "a2160ede.50a7f8",
- "wires": [
- []
- ]
- },
- {
- "id": "ba78539e.d2e248",
- "type": "save",
- "name": "save pnf relation with esr-thirdparty-sdnc",
- "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='esr-thirdparty-sdnc:relationship-list' \n key='esr-thirdparty-sdnc.thirdparty-sdnc-id = $prop.sdncRestApi.thirdpartySdnc.id' \n force=\"true\" pfx=\"tmp.AnAI-data\">\n<parameter name=\"relationship-list.relationship[0].related-to\" value=\"pnf\" />\n<parameter name=\"relationship-list.relationship[0].related-link\" value=\"`'/network/pnfs/pnf/' + $node.node-id`\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-key\" value=\"pnf.pnf-name\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-value\" value=\"`$node.node-id`\" />\n",
- "comments": "",
- "outputs": 1,
- "x": 1012,
- "y": 416.9934997558594,
- "z": "a2160ede.50a7f8",
- "wires": [
- []
- ]
- },
- {
- "id": "9d09dea6.d30ca8",
- "type": "success",
- "name": "success",
- "xml": "<outcome value='success'>\n",
- "comments": "",
- "outputs": 1,
- "x": 1385.4998397827148,
- "y": 617.7460689544678,
- "z": "a2160ede.50a7f8",
- "wires": [
- [
- "3d744c93.2eb20c"
- ]
- ]
- },
- {
- "id": "abd50ee3.2f813",
- "type": "failure",
- "name": "failure",
- "xml": "<outcome value='failure'>\n",
- "comments": "",
- "outputs": 1,
- "x": 1379.1784286499023,
- "y": 669.9603805541992,
- "z": "a2160ede.50a7f8",
- "wires": [
- [
- "a0fb6003.0efd8"
- ]
- ]
- },
- {
- "id": "3d744c93.2eb20c",
- "type": "block",
- "name": "block",
- "xml": "<block>\n",
- "atomic": "false",
- "comments": "",
- "outputs": 1,
- "x": 1536,
- "y": 617,
- "z": "a2160ede.50a7f8",
- "wires": [
- []
- ]
- },
- {
- "id": "a0fb6003.0efd8",
- "type": "update",
- "name": "update p-interface",
- "xml": "<update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='p-interface' \n key='pnf.pnf-name = $node.node-id\n AND p-interface.interface-name = $unique-ltpId' > \n<parameter name='interface-name' value='`$unique-ltpId`' />\n<parameter name='network-ref' value='`$tp.supporting-termination-point[0].network-ref`' />\n<parameter name='transparent' value='`$tp.svc.supported-classification.transparent`' />\n<parameter name='speed-value' value='`$tp.te.interface-switching-capability[0].max-lsp-bandwidth[0].te-bandwidth.eth-bandwidth`' />\n<parameter name='operational-status' value='`$tp.te.oper-status`' />\n<parameter name='in-maint' value=\"true\" />\n\n<parameter name='inter-layer-lock-id' value='`$tp.te.inter-layer-lock-id[0]`' />\n<parameter name='inter-domain-plug-id' value='`$tp.te.inter-domain-plug-id`' />\n\n",
- "comments": "",
- "outputs": 1,
- "x": 1556,
- "y": 667,
- "z": "a2160ede.50a7f8",
- "wires": [
- []
- ]
- },
- {
- "id": "aa9ed7c5.9f2be8",
- "type": "update",
- "name": "save tunnel-termination-point",
- "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='tunnel-termination-point' \n key='pnf.pnf-name = $unique-nodeId\n AND tunnel-termination-point.ttp-id = $unique-ttpId' >\n\n<parameter name='ttp-id' value='`$unique-ttpId`' />\n<parameter name='tunnel-tp-id' value='`$ttp.tunnel-tp-id`' />\n<parameter name='name' value='`$ttp.name`' />\n<parameter name='admin-status' value='`$ttp.admin-status`' />\n<parameter name='oper-status' value='`$ttp.oper-status`' />\n<parameter name='inter-layer-lock-id' value='`$ttp.inter-layer-lock-id`' />\n<parameter name='switching-capability' value='`$ttp.switching-capability`' />\n<parameter name='protection-type' value='`$ttp.protection-type`' />\n<parameter name='encoding' value='`$ttp.encoding`' />\n\n\n\n\n\n\n",
- "comments": "",
- "outputs": 1,
- "x": 1423,
- "y": 205,
- "z": "a2160ede.50a7f8",
- "wires": [
- [
- "54fe71d8.edb1c",
- "6cd48f92.21a288"
- ]
- ]
- },
- {
- "id": "7a876b8.f89b114",
- "type": "for",
- "name": "for each tunnel termination point",
- "xml": "<for index='ttidx' start='0' end='`$node.te.tunnel-termination-point_length`' >\n",
- "comments": "",
- "outputs": 1,
- "x": 1038,
- "y": 281,
- "z": "a2160ede.50a7f8",
- "wires": [
- [
- "79913f13.5b1fa",
- "4552b8b5.e9ba2",
- "aa9ed7c5.9f2be8",
- "e23bdb7f.fdc9c"
- ]
- ]
- },
- {
- "id": "79913f13.5b1fa",
- "type": "set",
- "name": "set tunnel termination point",
- "xml": "<set>\n<parameter name='ttp.' value='`$node.te.tunnel-termination-point[$ttidx].`' />\n",
- "comments": "",
- "x": 1393,
- "y": 114,
- "z": "a2160ede.50a7f8",
- "wires": []
- },
- {
- "id": "4552b8b5.e9ba2",
- "type": "set",
- "name": "set unique-ttpId",
- "xml": "<set>\n<parameter name='unique-ttpId' value=\"`$unique-nodeId + '-ttpId-' + $ttp.tunnel-tp-id`\" />\n",
- "comments": "",
- "x": 1370.888916015625,
- "y": 151.111083984375,
- "z": "a2160ede.50a7f8",
- "wires": []
- },
- {
- "id": "54fe71d8.edb1c",
- "type": "success",
- "name": "success",
- "xml": "<outcome value='success'>\n",
- "comments": "",
- "outputs": 1,
- "x": 1680,
- "y": 191,
- "z": "a2160ede.50a7f8",
- "wires": [
- [
- "42f8b4e.c7b524c"
- ]
- ]
- },
- {
- "id": "6cd48f92.21a288",
- "type": "failure",
- "name": "failure",
- "xml": "<outcome value='failure'>\n",
- "comments": "",
- "outputs": 1,
- "x": 1673.6785888671875,
- "y": 243.21431159973145,
- "z": "a2160ede.50a7f8",
- "wires": [
- [
- "5f719388.c96efc"
- ]
- ]
- },
- {
- "id": "42f8b4e.c7b524c",
- "type": "block",
- "name": "block",
- "xml": "<block>\n",
- "atomic": "false",
- "comments": "",
- "outputs": 1,
- "x": 1830.5001602172852,
- "y": 190.25393104553223,
- "z": "a2160ede.50a7f8",
- "wires": [
- []
- ]
- },
- {
- "id": "5f719388.c96efc",
- "type": "update",
- "name": "update tunnel-termination-point",
- "xml": "<update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='tunnel-termination-point' \n key='pnf.pnf-name = $node.node-id\n AND tunnel-termination-point.ttp-id = $unique-ttpId' >\n\n<parameter name='tunnel-tp-id' value='`$ttp.tunnel-tp-id`' />\n<parameter name='name' value='`$ttp.name`' />\n<parameter name='admin-status' value='`$ttp.admin-status`' />\n<parameter name='oper-status' value='`$ttp.oper-status`' />\n<parameter name='inter-layer-lock-id' value='`$ttp.inter-layer-lock-id`' />\n<parameter name='switching-capability' value='`$ttp.switching-capability`' />\n<parameter name='protection-type' value='`$ttp.protection-type`' />\n<parameter name='encoding' value='`$ttp.encoding`' />\n\n\n\n\n\n\n",
- "comments": "",
- "outputs": 1,
- "x": 1911,
- "y": 245,
- "z": "a2160ede.50a7f8",
- "wires": [
- []
- ]
- },
- {
- "id": "46013f8c.54849",
- "type": "set",
- "name": "set local variables",
- "xml": "<set>\n<parameter name='unique-networkId' value='`$tmp.network-id`' />\n<parameter name='unique-nodeId' value=\"`'networkId-' + $unique-networkId + '-nodeId-' + $node.node-id`\" />\n",
- "comments": "",
- "x": 969,
- "y": 167,
- "z": "a2160ede.50a7f8",
- "wires": []
- },
- {
- "id": "ffd24e55.e4afa",
- "type": "call",
- "name": "call update-network-links-to-aai",
- "xml": "<call module='DataChange' rpc='update-network-links-to-aai' mode='sync' >\n",
- "comments": "",
- "outputs": 1,
- "x": 648,
- "y": 311,
- "z": "a2160ede.50a7f8",
- "wires": [
- []
- ]
- },
- {
- "id": "f6959b19.b0bc18",
- "type": "save",
- "name": "save pnf-interface relationship to pnf in AAI",
- "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='p-interface:relationship-list' \n key='pnf.pnf-name = $unique-nodeId\n AND p-interface.interface-name = $unique-ltpId' force=\"true\" pfx=\"tmp.AnAI-data\">\n<parameter name=\"relationship-list.relationship[0].related-to\" value=\"pnf\" />\n<parameter name=\"relationship-list.relationship[0].related-link\" value=\"`'/network/pnfs/pnf/' + $unique-nodeId`\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-key\" value=\"pnf.pnf-name\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-value\" value=\"`$unique-nodeId`\" />\n",
- "comments": "",
- "outputs": 1,
- "x": 1300,
- "y": 724,
- "z": "a2160ede.50a7f8",
- "wires": [
- []
- ]
- },
- {
- "id": "e23bdb7f.fdc9c",
- "type": "save",
- "name": "save pnf relationship to tunnel termination point in AAI",
- "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='pnf:relationship-list' \n key='pnf.pnf-name = $unique-nodeId' force=\"true\" pfx=\"tmp.AnAI-data\">\n<parameter name=\"relationship-list.relationship[$ttidx].related-to\" value=\"tunnel-termination-point\" />\n<parameter name=\"relationship-list.relationship[$ttidx].related-link\" value=\"`'/network/network-resources/network-resource/' + $tmp.network-id + '/pnfs/pnf/' + $node.node-id '/tunnel-termination-points/tunnel-termination-point/' + $unique-ttpId`\" />\n<parameter name=\"relationship-list.relationship[$ttidx].relationship-data[0].relationship-key\" value=\"tunnel-termination-point.ttp-id\" />\n<parameter name=\"relationship-list.relationship[$ttidx].relationship-data[0].relationship-value\" value=\"`$unique-ttpId`\" />",
- "comments": "",
- "outputs": 1,
- "x": 1485,
- "y": 297,
- "z": "a2160ede.50a7f8",
- "wires": [
- []
- ]
- }
+[\r
+ {\r
+ "id": "ef88be3f.517f78",\r
+ "type": "dgstart",\r
+ "name": "DGSTART",\r
+ "outputs": 1,\r
+ "x": 105,\r
+ "y": 67,\r
+ "z": "6d6b8a1f.be1cb4",\r
+ "wires": [\r
+ [\r
+ "74a7a837.229be"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "74a7a837.229be",\r
+ "type": "service-logic",\r
+ "name": "DataChange ${project.version}",\r
+ "module": "DataChange",\r
+ "version": "${project.version}",\r
+ "comments": "",\r
+ "xml": "<service-logic xmlns='http://www.onap.org/sdnc/svclogic' xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xsi:schemaLocation='http://www.onap.org/sdnc/svclogic ./svclogic.xsd' module='DataChange' version='${project.version}'>",\r
+ "outputs": 1,\r
+ "x": 194.00003051757812,\r
+ "y": 157.88891220092773,\r
+ "z": "6d6b8a1f.be1cb4",\r
+ "wires": [\r
+ [\r
+ "284dae72.737532"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "284dae72.737532",\r
+ "type": "method",\r
+ "name": "update-network-to-aai",\r
+ "xml": "<method rpc='update-network-to-aai' mode='sync'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 230.1112518310547,\r
+ "y": 228.22223663330078,\r
+ "z": "6d6b8a1f.be1cb4",\r
+ "wires": [\r
+ [\r
+ "da05320e.186d48"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "da05320e.186d48",\r
+ "type": "block",\r
+ "name": "block : atomic",\r
+ "xml": "<block atomic=\"true\">\n",\r
+ "atomic": "true",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 455.33343505859375,\r
+ "y": 227.77792358398438,\r
+ "z": "6d6b8a1f.be1cb4",\r
+ "wires": [\r
+ [\r
+ "8c187a81.9e4d28",\r
+ "75113293.98ea0c",\r
+ "9937b93d.ff5938",\r
+ "55dde830.cc61b8",\r
+ "f7667eb6.ec8938"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "75113293.98ea0c",\r
+ "type": "save",\r
+ "name": "save network-resource",\r
+ "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='network-resource' \n key='network-resource.network-id = $tmp.network-id' >\n<parameter name='network-id' value='`$tmp.network-id`' />\n<parameter name='client-id' value='`$network.client-id`' />\n<parameter name='te-topo-id' value='`$network.te-topology-id`' />\n<parameter name='provider-id' value='`$network.provider-id`' />\n\n<parameter name='network-type' value='`$network.network-types`' />\n\n\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 685.333251953125,\r
+ "y": 133.00001525878906,\r
+ "z": "6d6b8a1f.be1cb4",\r
+ "wires": [\r
+ []\r
+ ]\r
+ },\r
+ {\r
+ "id": "74f65e67.75c658",\r
+ "type": "save",\r
+ "name": "save pnf",\r
+ "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='pnf' \n key='pnf.pnf-name = $unique-nodeId' >\n<parameter name='pnf-name' value='`$unique-nodeId`' />\n<parameter name='pnf-id' value='`$node.node-id`' />\n<parameter name='operational-status' value='`$node.te.oper-status`' />\n<parameter name='admin-status' value='`$node.te.te-node-attributes.admin-status`' />\n<parameter name='in-maint' value='true' />\n\n\n\n\n\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 897.1111450195312,\r
+ "y": 223.111083984375,\r
+ "z": "6d6b8a1f.be1cb4",\r
+ "wires": [\r
+ []\r
+ ]\r
+ },\r
+ {\r
+ "id": "9937b93d.ff5938",\r
+ "type": "for",\r
+ "name": "for each node",\r
+ "xml": "<for index='pidx' start='0' end='`$network.node_length`' >\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 668.8888549804688,\r
+ "y": 203.33331298828125,\r
+ "z": "6d6b8a1f.be1cb4",\r
+ "wires": [\r
+ [\r
+ "74f65e67.75c658",\r
+ "60e29b35.16fbd4",\r
+ "b27f201.393186",\r
+ "e83884ed.3fb2d8",\r
+ "7257c53.4f087bc",\r
+ "395bef40.08498",\r
+ "1392eb55.76adbd",\r
+ "e55192de.2cc998",\r
+ "a1ffb2f2.4b50b8"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "60e29b35.16fbd4",\r
+ "type": "set",\r
+ "name": "set node",\r
+ "xml": "<set>\n<parameter name='node.' value='`$network.node[$pidx].`' />\n<parameter name='unique-networkId' value='`$tmp.network-id`' />\n\n",\r
+ "comments": "",\r
+ "x": 902.111083984375,\r
+ "y": 119.22221374511719,\r
+ "z": "6d6b8a1f.be1cb4",\r
+ "wires": []\r
+ },\r
+ {\r
+ "id": "e83884ed.3fb2d8",\r
+ "type": "save",\r
+ "name": "save pnf relationship to network-resource in AAI",\r
+ "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='pnf:relationship-list' \n key='pnf.pnf-name = $unique-nodeId' force=\"true\" pfx=\"tmp.AnAI-data\">\n<parameter name=\"relationship-list.relationship[0].related-to\" value=\"network-resource\" />\n<parameter name=\"relationship-list.relationship[0].related-link\" value=\"`'/network/network-resources/network-resource/' + $tmp.network-id`\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-key\" value=\"network-resource.network-id\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-value\" value=\"`$tmp.network-id`\" />",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 993.7779541015625,\r
+ "y": 398.44447803497314,\r
+ "z": "6d6b8a1f.be1cb4",\r
+ "wires": [\r
+ []\r
+ ]\r
+ },\r
+ {\r
+ "id": "9c15e41a.6cfbc8",\r
+ "type": "for",\r
+ "name": "for each termination point",\r
+ "xml": "<for index='tidx' start='0' end='`$node.termination-point_length`' >\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 1279.4444580078125,\r
+ "y": 574.111083984375,\r
+ "z": "6d6b8a1f.be1cb4",\r
+ "wires": [\r
+ [\r
+ "3c657cae.66477c",\r
+ "2e1dc2b9.f23686",\r
+ "8c144095.b1eaf8",\r
+ "9abbad80.6c0f7",\r
+ "ef702ba5.ac71e"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "3c657cae.66477c",\r
+ "type": "set",\r
+ "name": "set termination point",\r
+ "xml": "<set>\n<parameter name='tp.' value='`$node.termination-point[$tidx].`' />\n",\r
+ "comments": "",\r
+ "x": 1549.111328125,\r
+ "y": 557.0000610351562,\r
+ "z": "6d6b8a1f.be1cb4",\r
+ "wires": []\r
+ },\r
+ {\r
+ "id": "8c144095.b1eaf8",\r
+ "type": "save",\r
+ "name": "save p-interface",\r
+ "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='p-interface' \n key='pnf.pnf-name = $unique-nodeId\n AND p-interface.interface-name = $unique-ltpId' > \n<parameter name='interface-name' value='`$unique-ltpId`' />\n<parameter name='network-ref' value='`$tp.supporting-termination-point[0].network-ref`' />\n<parameter name='transparent' value='`$tp.svc.supported-classification.transparent`' />\n<parameter name='speed-value' value='`$tp.te.interface-switching-capability[0].max-lsp-bandwidth[0].te-bandwidth.eth-bandwidth`' />\n<parameter name='operational-status' value='`$tp.te.oper-status`' />\n<parameter name='in-maint' value=\"true\" />\n\n<parameter name='inter-layer-lock-id' value='`$tp.te.inter-layer-lock-id[0]`' />\n<!--<parameter name='inter-domain-plug-id' value='`$tp.te.inter-domain-plug-id`' />-->\n<parameter name='inter-domain-plug-id' value='`$tmp.decoded-plug-id`' />\n\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 1543.815185546875,\r
+ "y": 744.5556030273438,\r
+ "z": "6d6b8a1f.be1cb4",\r
+ "wires": [\r
+ [\r
+ "3fc33363.5b82ec",\r
+ "34c813e4.f5477c"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "f6e5129a.8bd048",\r
+ "type": "save",\r
+ "name": "save pnf relationship to p-interface in AAI",\r
+ "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='pnf:relationship-list' \n key='pnf.pnf-name = $unique-nodeId' force=\"true\" pfx=\"tmp.AnAI-data\">\n<parameter name=\"relationship-list.relationship[0].related-to\" value=\"p-interface\" />\n<parameter name=\"relationship-list.relationship[0].related-link\" value=\"`'/network/network-resources/network-resource/' + $tmp.network-id + '/pnfs/pnf/' + $unique-nodeId '/p-interfaces/p-interface/' + $unique-ltpId`\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-key\" value=\"p-interface.interface-name\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-value\" value=\"`$unique-ltpId`\" />",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 1626.703857421875,\r
+ "y": 901.3333740234375,\r
+ "z": "6d6b8a1f.be1cb4",\r
+ "wires": [\r
+ []\r
+ ]\r
+ },\r
+ {\r
+ "id": "2e1dc2b9.f23686",\r
+ "type": "set",\r
+ "name": "set unique-ltpId",\r
+ "xml": "<set>\n<parameter name='unique-ltpId' value=\"`$unique-nodeId + '-ltpId-' + $tp.te-tp-id`\" />\n",\r
+ "comments": "",\r
+ "x": 1533.000244140625,\r
+ "y": 614.111083984375,\r
+ "z": "6d6b8a1f.be1cb4",\r
+ "wires": []\r
+ },\r
+ {\r
+ "id": "8c187a81.9e4d28",\r
+ "type": "execute",\r
+ "name": "execute",\r
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$network.network-id`\"/>\n <parameter name=\"outputPath\" value=\"tmp.original-network-id\"/>\n <parameter name=\"target\" value=\"/\"/>\n <parameter name=\"replacement\" value=\"-\"/>\n ",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 641.9935302734375,\r
+ "y": 41.993499755859375,\r
+ "z": "6d6b8a1f.be1cb4",\r
+ "wires": [\r
+ []\r
+ ]\r
+ },\r
+ {\r
+ "id": "b27f201.393186",\r
+ "type": "save",\r
+ "name": "save pnf relation with esr-thirdparty-sdnc",\r
+ "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='esr-thirdparty-sdnc:relationship-list' \n key='esr-thirdparty-sdnc.thirdparty-sdnc-id = $prop.sdncRestApi.thirdpartySdnc.id' \n force=\"true\" pfx=\"tmp.AnAI-data\">\n<parameter name=\"relationship-list.relationship[0].related-to\" value=\"pnf\" />\n<parameter name=\"relationship-list.relationship[0].related-link\" value=\"`'/network/pnfs/pnf/' + $node.node-id`\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-key\" value=\"pnf.pnf-name\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-value\" value=\"`$node.node-id`\" />\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 975,\r
+ "y": 434.9934997558594,\r
+ "z": "6d6b8a1f.be1cb4",\r
+ "wires": [\r
+ []\r
+ ]\r
+ },\r
+ {\r
+ "id": "3fc33363.5b82ec",\r
+ "type": "success",\r
+ "name": "success",\r
+ "xml": "<outcome value='success'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 1715.499885559082,\r
+ "y": 731.7460784912109,\r
+ "z": "6d6b8a1f.be1cb4",\r
+ "wires": [\r
+ [\r
+ "a873419b.bc81c"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "34c813e4.f5477c",\r
+ "type": "failure",\r
+ "name": "failure",\r
+ "xml": "<outcome value='failure'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 1709.1784744262695,\r
+ "y": 783.9603900909424,\r
+ "z": "6d6b8a1f.be1cb4",\r
+ "wires": [\r
+ [\r
+ "66113f50.7819f8"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "a873419b.bc81c",\r
+ "type": "block",\r
+ "name": "block",\r
+ "xml": "<block>\n",\r
+ "atomic": "false",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 1866.0000457763672,\r
+ "y": 731.0000095367432,\r
+ "z": "6d6b8a1f.be1cb4",\r
+ "wires": [\r
+ []\r
+ ]\r
+ },\r
+ {\r
+ "id": "66113f50.7819f8",\r
+ "type": "update",\r
+ "name": "update p-interface",\r
+ "xml": "<update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='p-interface' \n key='pnf.pnf-name = $unique-nodeId\n AND p-interface.interface-name = $unique-ltpId' > \n<parameter name='interface-name' value='`$unique-ltpId`' />\n<parameter name='network-ref' value='`$tp.supporting-termination-point[0].network-ref`' />\n<parameter name='transparent' value='`$tp.svc.supported-classification.transparent`' />\n<parameter name='speed-value' value='`$tp.te.interface-switching-capability[0].max-lsp-bandwidth[0].te-bandwidth.eth-bandwidth`' />\n<parameter name='operational-status' value='`$tp.te.oper-status`' />\n<parameter name='in-maint' value=\"true\" />\n\n<parameter name='inter-layer-lock-id' value='`$tp.te.inter-layer-lock-id[0]`' />\n<!--<parameter name='inter-domain-plug-id' value='`$tp.te.inter-domain-plug-id`' />-->\n<parameter name='inter-domain-plug-id' value='`$tmp.decoded-plug-id`' />",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 1895,\r
+ "y": 785,\r
+ "z": "6d6b8a1f.be1cb4",\r
+ "wires": [\r
+ []\r
+ ]\r
+ },\r
+ {\r
+ "id": "c8e5472a.d10408",\r
+ "type": "save",\r
+ "name": "save tunnel-termination-point",\r
+ "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='tunnel-termination-point' \n key='tunnel-termination-point.ttp-id = $unique-ttpId' >\n\n<parameter name='ttp-id' value='`$unique-ttpId`' />\n<parameter name='tunnel-tp-id' value='`$ttp.tunnel-tp-id`' />\n<parameter name='name' value='`$ttp.name`' />\n<parameter name='admin-status' value='`$ttp.admin-status`' />\n<parameter name='oper-status' value='`$ttp.oper-status`' />\n<parameter name='inter-layer-lock-id' value='`$ttp.inter-layer-lock-id`' />\n<parameter name='switching-capability' value='`$ttp.switching-capability`' />\n<parameter name='protection-type' value='`$ttp.protection-type`' />\n<parameter name='encoding' value='`$ttp.encoding`' />\n\n\n\n\n\n\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 1678,\r
+ "y": 331,\r
+ "z": "6d6b8a1f.be1cb4",\r
+ "wires": [\r
+ [\r
+ "11cb3cf8.02c3eb",\r
+ "1a336806.ba4bc8"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "8b0a557c.b35cd",\r
+ "type": "for",\r
+ "name": "for each tunnel termination point",\r
+ "xml": "<for index='ttidx' start='0' end='`$node.te.tunnel-termination-point_length`' >\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 1341,\r
+ "y": 319,\r
+ "z": "6d6b8a1f.be1cb4",\r
+ "wires": [\r
+ [\r
+ "58c4d943.63d2f",\r
+ "e7e93cd.8f563c",\r
+ "c8e5472a.d10408",\r
+ "7c00c858.c87ab8",\r
+ "1bd07bf.99e9784"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "58c4d943.63d2f",\r
+ "type": "set",\r
+ "name": "set tunnel termination point",\r
+ "xml": "<set>\n<parameter name='ttp.' value='`$node.te.tunnel-termination-point[$ttidx].`' />\n",\r
+ "comments": "",\r
+ "x": 1676,\r
+ "y": 239,\r
+ "z": "6d6b8a1f.be1cb4",\r
+ "wires": []\r
+ },\r
+ {\r
+ "id": "e7e93cd.8f563c",\r
+ "type": "set",\r
+ "name": "set unique-ttpId",\r
+ "xml": "<set>\n<parameter name='unique-ttpId' value=\"`$unique-nodeId + '-ttpId-' + $ttp.tunnel-tp-id`\" />\n",\r
+ "comments": "",\r
+ "x": 1634.888916015625,\r
+ "y": 277.111083984375,\r
+ "z": "6d6b8a1f.be1cb4",\r
+ "wires": []\r
+ },\r
+ {\r
+ "id": "11cb3cf8.02c3eb",\r
+ "type": "success",\r
+ "name": "success",\r
+ "xml": "<outcome value='success'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 1944,\r
+ "y": 317,\r
+ "z": "6d6b8a1f.be1cb4",\r
+ "wires": [\r
+ [\r
+ "9ad375c8.fab3e8"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "1a336806.ba4bc8",\r
+ "type": "failure",\r
+ "name": "failure",\r
+ "xml": "<outcome value='failure'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 1937.6785888671875,\r
+ "y": 369.21431159973145,\r
+ "z": "6d6b8a1f.be1cb4",\r
+ "wires": [\r
+ [\r
+ "842e7e75.fc0558"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "9ad375c8.fab3e8",\r
+ "type": "block",\r
+ "name": "block",\r
+ "xml": "<block>\n",\r
+ "atomic": "false",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 2094.500160217285,\r
+ "y": 316.2539310455322,\r
+ "z": "6d6b8a1f.be1cb4",\r
+ "wires": [\r
+ []\r
+ ]\r
+ },\r
+ {\r
+ "id": "842e7e75.fc0558",\r
+ "type": "update",\r
+ "name": "update tunnel-termination-point",\r
+ "xml": "<update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='tunnel-termination-point' \n key='tunnel-termination-point.ttp-id = $unique-ttpId' >\n\n<parameter name='ttp-id' value='`$unique-ttpId`' />\n<parameter name='tunnel-tp-id' value='`$ttp.tunnel-tp-id`' />\n<parameter name='name' value='`$ttp.name`' />\n<parameter name='admin-status' value='`$ttp.admin-status`' />\n<parameter name='oper-status' value='`$ttp.oper-status`' />\n<parameter name='inter-layer-lock-id' value='`$ttp.inter-layer-lock-id`' />\n<parameter name='switching-capability' value='`$ttp.switching-capability`' />\n<parameter name='protection-type' value='`$ttp.protection-type`' />\n<parameter name='encoding' value='`$ttp.encoding`' />\n\n\n\n\n\n\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 2175,\r
+ "y": 371,\r
+ "z": "6d6b8a1f.be1cb4",\r
+ "wires": [\r
+ []\r
+ ]\r
+ },\r
+ {\r
+ "id": "7257c53.4f087bc",\r
+ "type": "set",\r
+ "name": "set local variables",\r
+ "xml": "<set>\n<parameter name='unique-nodeId' value=\"`'networkId-' + $unique-networkId + '-nodeId-' + $node.node-id`\" />\n",\r
+ "comments": "",\r
+ "x": 927,\r
+ "y": 166,\r
+ "z": "6d6b8a1f.be1cb4",\r
+ "wires": []\r
+ },\r
+ {\r
+ "id": "55dde830.cc61b8",\r
+ "type": "call",\r
+ "name": "call update-network-links-to-aai",\r
+ "xml": "<call module='DataChange' rpc='update-network-links-to-aai' mode='sync' >\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 611,\r
+ "y": 329,\r
+ "z": "6d6b8a1f.be1cb4",\r
+ "wires": [\r
+ []\r
+ ]\r
+ },\r
+ {\r
+ "id": "b86a9ee9.558c2",\r
+ "type": "save",\r
+ "name": "save pnf-interface relationship to pnf in AAI",\r
+ "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='p-interface:relationship-list' \n key='pnf.pnf-name = $unique-nodeId\n AND p-interface.interface-name = $unique-ltpId' force=\"true\" pfx=\"tmp.AnAI-data\">\n<parameter name=\"relationship-list.relationship[0].related-to\" value=\"pnf\" />\n<parameter name=\"relationship-list.relationship[0].related-link\" value=\"`'/network/pnfs/pnf/' + $unique-nodeId`\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-key\" value=\"pnf.pnf-name\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-value\" value=\"`$unique-nodeId`\" />\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 1627,\r
+ "y": 844,\r
+ "z": "6d6b8a1f.be1cb4",\r
+ "wires": [\r
+ []\r
+ ]\r
+ },\r
+ {\r
+ "id": "7c00c858.c87ab8",\r
+ "type": "save",\r
+ "name": "save pnf relationship to tunnel termination point in AAI",\r
+ "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='pnf:relationship-list' \n key='pnf.pnf-name = $unique-nodeId' force=\"true\" pfx=\"tmp.AnAI-data\">\n<parameter name=\"`relationship-list.relationship[$ttidx].related-to`\" value=\"tunnel-termination-point\" />\n<!--<parameter name=\"relationship-list.relationship[$ttidx].related-link\" value=\"`'/network/network-resources/network-resource/' + $tmp.network-id + '/pnfs/pnf/' + $node.node-id '/tunnel-termination-points/tunnel-termination-point/' + $unique-ttpId`\" />-->\n<parameter name=\"`relationship-list.relationship[$ttidx].related-link`\" value=\"`'/network/tunnel-termination-points/tunnel-termination-point/' + $unique-ttpId`\" />\n<parameter name=\"`relationship-list.relationship[$ttidx].relationship-data[0].relationship-key`\" value=\"tunnel-termination-point.ttp-id\" />\n<parameter name=\"`relationship-list.relationship[$ttidx].relationship-data[0].relationship-value`\" value=\"`$unique-ttpId`\" />",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 1749,\r
+ "y": 423,\r
+ "z": "6d6b8a1f.be1cb4",\r
+ "wires": [\r
+ [\r
+ "5d32d079.32cfb8",\r
+ "5c2d8774.9a9178"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "395bef40.08498",\r
+ "type": "switchNode",\r
+ "name": "switch node ttp",\r
+ "xml": "<switch test='`$node.te.tunnel-termination-point_length`'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 913,\r
+ "y": 295,\r
+ "z": "6d6b8a1f.be1cb4",\r
+ "wires": [\r
+ [\r
+ "84bf875e.b8d51",\r
+ "cc6df2e.2398e9",\r
+ "f2d2c388.1aa578"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "5889c4ed.3fc544",\r
+ "type": "block",\r
+ "name": "block",\r
+ "xml": "<block>\n",\r
+ "atomic": "false",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 1261,\r
+ "y": 247,\r
+ "z": "6d6b8a1f.be1cb4",\r
+ "wires": [\r
+ []\r
+ ]\r
+ },\r
+ {\r
+ "id": "f2d2c388.1aa578",\r
+ "type": "other",\r
+ "name": "other",\r
+ "xml": "<outcome value='Other'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 1103,\r
+ "y": 318,\r
+ "z": "6d6b8a1f.be1cb4",\r
+ "wires": [\r
+ [\r
+ "8b0a557c.b35cd"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "1392eb55.76adbd",\r
+ "type": "switchNode",\r
+ "name": "switch node tp",\r
+ "xml": "<switch test='`$node.termination-point_length`'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 893,\r
+ "y": 550,\r
+ "z": "6d6b8a1f.be1cb4",\r
+ "wires": [\r
+ [\r
+ "c5e649ab.cfe2e8",\r
+ "d7a3de29.b44a1",\r
+ "a21fbfb7.b6608"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "c5e649ab.cfe2e8",\r
+ "type": "other",\r
+ "name": "Null",\r
+ "xml": "<outcome value=''>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 1072,\r
+ "y": 502,\r
+ "z": "6d6b8a1f.be1cb4",\r
+ "wires": [\r
+ [\r
+ "3d51c59d.7acffa"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "d7a3de29.b44a1",\r
+ "type": "other",\r
+ "name": "other",\r
+ "xml": "<outcome value='Other'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 1071,\r
+ "y": 604,\r
+ "z": "6d6b8a1f.be1cb4",\r
+ "wires": [\r
+ [\r
+ "9c15e41a.6cfbc8"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "3d51c59d.7acffa",\r
+ "type": "block",\r
+ "name": "block",\r
+ "xml": "<block>\n",\r
+ "atomic": "false",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 1227,\r
+ "y": 502,\r
+ "z": "6d6b8a1f.be1cb4",\r
+ "wires": [\r
+ []\r
+ ]\r
+ },\r
+ {\r
+ "id": "e55192de.2cc998",\r
+ "type": "record",\r
+ "name": "log file",\r
+ "xml": " <record plugin=\"org.onap.ccsdk.sli.core.sli.recording.FileRecorder\">\n <parameter name=\"file\" value=\"/opt/onap/logTopologyDiscovery.txt\" />\n <parameter name=\"field1\" value=\"__TIMESTAMP__\" />\n <parameter name=\"field2\" value=\"sucess executing Hesam log file\" />\n <parameter name=\"field3\" value=\"`$node.te.tunnel-termination-point_length`\" />\n <parameter name=\"field4\" value=\"`$node.termination-point_length`\" />\n ",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 891,\r
+ "y": 339,\r
+ "z": "6d6b8a1f.be1cb4",\r
+ "wires": [\r
+ []\r
+ ]\r
+ },\r
+ {\r
+ "id": "84bf875e.b8d51",\r
+ "type": "other",\r
+ "name": "Null",\r
+ "xml": "<outcome value=''>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 1101,\r
+ "y": 181,\r
+ "z": "6d6b8a1f.be1cb4",\r
+ "wires": [\r
+ [\r
+ "5889c4ed.3fc544"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "cc6df2e.2398e9",\r
+ "type": "outcome",\r
+ "name": "length 0",\r
+ "xml": "<outcome value='0'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 1106,\r
+ "y": 256,\r
+ "z": "6d6b8a1f.be1cb4",\r
+ "wires": [\r
+ [\r
+ "5889c4ed.3fc544"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "a21fbfb7.b6608",\r
+ "type": "outcome",\r
+ "name": "length 0",\r
+ "xml": "<outcome value='0'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 1082,\r
+ "y": 550,\r
+ "z": "6d6b8a1f.be1cb4",\r
+ "wires": [\r
+ [\r
+ "3d51c59d.7acffa"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "a1ffb2f2.4b50b8",\r
+ "type": "set",\r
+ "name": "unset node",\r
+ "xml": "<set>\n<parameter name='node.' value='' />\n\n",\r
+ "comments": "",\r
+ "x": 899,\r
+ "y": 68,\r
+ "z": "6d6b8a1f.be1cb4",\r
+ "wires": []\r
+ },\r
+ {\r
+ "id": "9abbad80.6c0f7",\r
+ "type": "set",\r
+ "name": "unset termination point",\r
+ "xml": "<set>\n<parameter name='tp.' value='' />\n",\r
+ "comments": "",\r
+ "x": 1561,\r
+ "y": 500,\r
+ "z": "6d6b8a1f.be1cb4",\r
+ "wires": []\r
+ },\r
+ {\r
+ "id": "1bd07bf.99e9784",\r
+ "type": "set",\r
+ "name": "unset tunnel termination point",\r
+ "xml": "<set>\n<parameter name='ttp.' value='' />\n",\r
+ "comments": "",\r
+ "x": 1676,\r
+ "y": 191,\r
+ "z": "6d6b8a1f.be1cb4",\r
+ "wires": []\r
+ },\r
+ {\r
+ "id": "5d32d079.32cfb8",\r
+ "type": "success",\r
+ "name": "success",\r
+ "xml": "<outcome value='success'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 2081,\r
+ "y": 426,\r
+ "z": "6d6b8a1f.be1cb4",\r
+ "wires": [\r
+ [\r
+ "42b15971.2191b8"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "5c2d8774.9a9178",\r
+ "type": "failure",\r
+ "name": "failure",\r
+ "xml": "<outcome value='failure'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 2078,\r
+ "y": 474,\r
+ "z": "6d6b8a1f.be1cb4",\r
+ "wires": [\r
+ [\r
+ "ad595c83.2160d"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "42b15971.2191b8",\r
+ "type": "record",\r
+ "name": "log file",\r
+ "xml": " <record plugin=\"org.onap.ccsdk.sli.core.sli.recording.FileRecorder\">\n <parameter name=\"file\" value=\"/opt/onap/logTopologyDiscovery.txt\" />\n <parameter name=\"field1\" value=\"__TIMESTAMP__\" />\n <parameter name=\"field2\" value=\"sucess executing Hesam log file\" />\n <parameter name=\"field3\" value=\"`$node.te.tunnel-termination-point_length`\" />\n <parameter name=\"field4\" value=\"`$node.termination-point_length`\" />\n <parameter name=\"field5\" value=\"sucessfully saved ttp\" />\n <parameter name=\"field6\" value=\"`relationship-list.relationship[$ttidx].related-link`\" />\n ",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 2236,\r
+ "y": 427,\r
+ "z": "6d6b8a1f.be1cb4",\r
+ "wires": [\r
+ []\r
+ ]\r
+ },\r
+ {\r
+ "id": "ad595c83.2160d",\r
+ "type": "record",\r
+ "name": "log file",\r
+ "xml": " <record plugin=\"org.onap.ccsdk.sli.core.sli.recording.FileRecorder\">\n <parameter name=\"file\" value=\"/opt/onap/logTopologyDiscovery.txt\" />\n <parameter name=\"field1\" value=\"__TIMESTAMP__\" />\n <parameter name=\"field2\" value=\"sucess executing Hesam log file\" />\n <parameter name=\"field3\" value=\"`$node.te.tunnel-termination-point_length`\" />\n <parameter name=\"field4\" value=\"`$node.termination-point_length`\" />\n <parameter name=\"field5\" value=\"failuire on saving ttp\" />\n <parameter name=\"field6\" value=\"`relationship-list.relationship[$ttidx].related-link`\" />\n\n ",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 2237,\r
+ "y": 475,\r
+ "z": "6d6b8a1f.be1cb4",\r
+ "wires": [\r
+ []\r
+ ]\r
+ },\r
+ {\r
+ "id": "b9a378e9.3ee13",\r
+ "type": "execute",\r
+ "name": "execute Base64 Converter",\r
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='base64DecodingAlgo' >\n <parameter name=\"encodedValue\" value='`$tp.te.inter-domain-plug-id`'/>\n <parameter name=\"decodedValue\" value=\"tmp.decoded-plug-id\"/>\n ",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 2027,\r
+ "y": 669,\r
+ "z": "6d6b8a1f.be1cb4",\r
+ "wires": [\r
+ [\r
+ "1cdf8713.954a51",\r
+ "3754d4b.0357eac"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "ef702ba5.ac71e",\r
+ "type": "switchNode",\r
+ "name": "switch inter-domain-plug-id empty?",\r
+ "xml": "<switch test='`length($tp.te.inter-domain-plug-id) == 0`'>\n\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 1597,\r
+ "y": 670,\r
+ "z": "6d6b8a1f.be1cb4",\r
+ "wires": [\r
+ [\r
+ "95523b36.e61fe",\r
+ "a2f27028.9e578"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "a2f27028.9e578",\r
+ "type": "outcomeTrue",\r
+ "name": "true",\r
+ "xml": "<outcome value='true'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 1824,\r
+ "y": 623,\r
+ "z": "6d6b8a1f.be1cb4",\r
+ "wires": [\r
+ [\r
+ "ce508a28.fe217"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "95523b36.e61fe",\r
+ "type": "outcomeFalse",\r
+ "name": "false",\r
+ "xml": "<outcome value='false'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 1825,\r
+ "y": 669,\r
+ "z": "6d6b8a1f.be1cb4",\r
+ "wires": [\r
+ [\r
+ "b9a378e9.3ee13"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "ce508a28.fe217",\r
+ "type": "set",\r
+ "name": "unset tmp.decoded-plug-id",\r
+ "xml": "<set>\n<parameter name='tmp.decoded-plug-id' value='' />\n",\r
+ "comments": "",\r
+ "x": 2028,\r
+ "y": 623,\r
+ "z": "6d6b8a1f.be1cb4",\r
+ "wires": []\r
+ },\r
+ {\r
+ "id": "1cdf8713.954a51",\r
+ "type": "success",\r
+ "name": "success",\r
+ "xml": "<outcome value='success'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 2232,\r
+ "y": 646,\r
+ "z": "6d6b8a1f.be1cb4",\r
+ "wires": [\r
+ [\r
+ "611d993d.82c5c"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "3754d4b.0357eac",\r
+ "type": "failure",\r
+ "name": "failure",\r
+ "xml": "<outcome value='failure'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 2225.6785888671875,\r
+ "y": 698.2143115997314,\r
+ "z": "6d6b8a1f.be1cb4",\r
+ "wires": [\r
+ [\r
+ "495bfe4.4b1a"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "611d993d.82c5c",\r
+ "type": "block",\r
+ "name": "block",\r
+ "xml": "<block>\n",\r
+ "atomic": "false",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 2373,\r
+ "y": 646,\r
+ "z": "6d6b8a1f.be1cb4",\r
+ "wires": [\r
+ []\r
+ ]\r
+ },\r
+ {\r
+ "id": "495bfe4.4b1a",\r
+ "type": "set",\r
+ "name": "unset tmp.decoded-plug-id",\r
+ "xml": "<set>\n<parameter name='tmp.decoded-plug-id' value='`$tp.te.inter-domain-plug-id`' />\n",\r
+ "comments": "",\r
+ "x": 2432,\r
+ "y": 698,\r
+ "z": "6d6b8a1f.be1cb4",\r
+ "wires": []\r
+ },\r
+ {\r
+ "id": "f7667eb6.ec8938",\r
+ "type": "set",\r
+ "name": "set tmp.network-if",\r
+ "xml": "<set>\n<parameter name='tmp.network-id' value=\"`$prop.sdncRestApi.thirdpartySdnc.id + '-' + $tmp.original-network-id`\" />\n\n",\r
+ "comments": "",\r
+ "x": 667,\r
+ "y": 83,\r
+ "z": "6d6b8a1f.be1cb4",\r
+ "wires": []\r
+ }\r
]
\ No newline at end of file