+ "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