NNI-based Service creation DG bug fixes (uni, l2vpn, and underlay resources).
[sdnc/oam.git] / platform-logic / datachange / src / main / json / DataChange_update-network-to-aai.json
index 9e0f17a..d87fd49 100644 (file)
@@ -1,20 +1,20 @@
 [\r
     {\r
-        "id": "8623b35d.0cf2f",\r
+        "id": "b9fcda31.4ec79",\r
         "type": "dgstart",\r
         "name": "DGSTART",\r
         "outputs": 1,\r
-        "x": 125.00390625,\r
-        "y": 106.00650644302368,\r
-        "z": "1ef7a393.52dc1c",\r
+        "x": 113,\r
+        "y": 65.00650024414062,\r
+        "z": "6d6b8a1f.be1cb4",\r
         "wires": [\r
             [\r
-                "e714b902.20b798"\r
+                "3760ce9c.1bf2e2"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "e714b902.20b798",\r
+        "id": "3760ce9c.1bf2e2",\r
         "type": "service-logic",\r
         "name": "DataChange ${project.version}",\r
         "module": "DataChange",\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": 327.0039291381836,\r
-        "y": 106.89541959762573,\r
-        "z": "1ef7a393.52dc1c",\r
+        "x": 202.00003051757812,\r
+        "y": 155.89541244506836,\r
+        "z": "6d6b8a1f.be1cb4",\r
         "wires": [\r
             [\r
-                "fb9820f4.4f92d"\r
+                "de74005b.f44ce8"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "fb9820f4.4f92d",\r
+        "id": "de74005b.f44ce8",\r
         "type": "method",\r
-        "name": "method update-network-to-aai",\r
+        "name": "update-network-to-aai",\r
         "xml": "<method rpc='update-network-to-aai' mode='sync'>\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 336.1151580810547,\r
-        "y": 178.22874116897583,\r
-        "z": "1ef7a393.52dc1c",\r
+        "x": 238.1112518310547,\r
+        "y": 226.2287368774414,\r
+        "z": "6d6b8a1f.be1cb4",\r
         "wires": [\r
             [\r
-                "b1c5fee.fa526"\r
+                "1541ad9c.69aa8a"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "b1c5fee.fa526",\r
+        "id": "1541ad9c.69aa8a",\r
         "type": "block",\r
         "name": "block : atomic",\r
         "xml": "<block atomic=\"true\">\n",\r
-        "atomic": "false",\r
+        "atomic": "true",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 583.3373489379883,\r
-        "y": 176.78443002700806,\r
-        "z": "1ef7a393.52dc1c",\r
+        "x": 463.33343505859375,\r
+        "y": 225.784423828125,\r
+        "z": "6d6b8a1f.be1cb4",\r
         "wires": [\r
             [\r
-                "d5568e89.0fd49",\r
-                "65e1e67.b95e318",\r
-                "fcfec7b9.699088"\r
+                "dbbcebe5.6f422",\r
+                "e66d9ed0.3d3d8",\r
+                "f1256a59.e632c",\r
+                "1dca15d7.0a7a3a",\r
+                "1c1d34a0.adaa8b"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "d5568e89.0fd49",\r
-        "type": "update",\r
-        "name": "save Zone",\r
-        "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='zone' \n      key='zone.zone-id = $tmp.network-id' >\n<parameter name='zone-id' value='`$tmp.network-id`' />\n<parameter name='zone-name' value='`$network.client-id`' />\n<parameter name='design-type' value='`$network.te-topology-id`' />\n<parameter name='zone-context' value='`$network.provider-id`' />\n\n",\r
+        "id": "e66d9ed0.3d3d8",\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": 808.3371810913086,\r
-        "y": 176.00651788711548,\r
-        "z": "1ef7a393.52dc1c",\r
+        "x": 693.333251953125,\r
+        "y": 131.0065155029297,\r
+        "z": "6d6b8a1f.be1cb4",\r
         "wires": [\r
             []\r
         ]\r
     },\r
     {\r
-        "id": "af980bc1.1f72b8",\r
-        "type": "update",\r
+        "id": "40545c4b.9221f4",\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 = $node.node-id' >\n<parameter name='pnf-name' value='`$node.node-id`' />\n<parameter name='pnf-id' value='`$node.node-id`' />\n<parameter name='in-maint' value='true' />\n\n",\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": 1052.1150245666504,\r
-        "y": 271.11759901046753,\r
-        "z": "1ef7a393.52dc1c",\r
+        "x": 905.1111450195312,\r
+        "y": 221.11758422851562,\r
+        "z": "6d6b8a1f.be1cb4",\r
         "wires": [\r
             []\r
         ]\r
     },\r
     {\r
-        "id": "65e1e67.b95e318",\r
+        "id": "f1256a59.e632c",\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": 823.8927383422852,\r
-        "y": 339.33982038497925,\r
-        "z": "1ef7a393.52dc1c",\r
+        "x": 676.8888549804688,\r
+        "y": 201.33981323242188,\r
+        "z": "6d6b8a1f.be1cb4",\r
         "wires": [\r
             [\r
-                "af980bc1.1f72b8",\r
-                "476a4fdb.dc5f5",\r
-                "96688ca0.6a9f6",\r
-                "9b63a4a9.acd508",\r
-                "8140ea7f.0a90f8"\r
+                "40545c4b.9221f4",\r
+                "eba2ef35.33c428",\r
+                "4817116d.5f593",\r
+                "466a40bd.9d277",\r
+                "1acdca56.b6e67e",\r
+                "3e1f14bc.ee90c4",\r
+                "6de7541f.0e2a24",\r
+                "8794be9f.289a08",\r
+                "1b6896a8.e62c19"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "476a4fdb.dc5f5",\r
+        "id": "eba2ef35.33c428",\r
         "type": "set",\r
-        "name": "set network",\r
-        "xml": "<set>\n<parameter name='node.' value='`$network.node[$pidx].`' />\n",\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": 1062.114990234375,\r
-        "y": 202.22872114181519,\r
-        "z": "1ef7a393.52dc1c",\r
+        "x": 910.111083984375,\r
+        "y": 117.22871398925781,\r
+        "z": "6d6b8a1f.be1cb4",\r
         "wires": []\r
     },\r
     {\r
-        "id": "96688ca0.6a9f6",\r
+        "id": "466a40bd.9d277",\r
         "type": "save",\r
-        "name": "save pnf relationship to zone in AAI",\r
-        "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='pnf:relationship-list' \n      key='pnf.pnf-name = $node.node-id' force=\"true\" pfx=\"tmp.AnAI-data\">\n<parameter name=\"relationship-list.relationship[0].related-to\" value=\"zone\" />\n<parameter name=\"relationship-list.relationship[0].related-link\" value=\"`'/network/zones/zone/' + $tmp.network-id`\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-key\" value=\"zone.zone-id\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-value\" value=\"`$tmp.network-id`\" />",\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": 1138.7819213867188,\r
-        "y": 344.4509873390198,\r
-        "z": "1ef7a393.52dc1c",\r
+        "x": 1001.7779541015625,\r
+        "y": 396.45097827911377,\r
+        "z": "6d6b8a1f.be1cb4",\r
         "wires": [\r
             []\r
         ]\r
     },\r
     {\r
-        "id": "9b63a4a9.acd508",\r
+        "id": "3d4b777c.0e42f",\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": 1099.448387145996,\r
-        "y": 497.11759424209595,\r
-        "z": "1ef7a393.52dc1c",\r
+        "x": 1287.4444580078125,\r
+        "y": 572.1175842285156,\r
+        "z": "6d6b8a1f.be1cb4",\r
         "wires": [\r
             [\r
-                "b34b1b54.abd288",\r
-                "66fee673.3f4e78",\r
-                "6031db9d.646964",\r
-                "3a479676.ca94ea"\r
+                "95dfcdd1.046e6",\r
+                "1ac320c7.c54f67",\r
+                "aa2f70cf.6e112",\r
+                "64896027.57fb78",\r
+                "fe275075.949f1"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "b34b1b54.abd288",\r
+        "id": "95dfcdd1.046e6",\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": 1480.1151962280273,\r
-        "y": 384.00655603408813,\r
-        "z": "1ef7a393.52dc1c",\r
+        "x": 1557.111328125,\r
+        "y": 555.0065612792969,\r
+        "z": "6d6b8a1f.be1cb4",\r
         "wires": []\r
     },\r
     {\r
-        "id": "66fee673.3f4e78",\r
-        "type": "update",\r
-        "name": "save logical-link",\r
-        "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='logical-link' \n      key='logical-link.link-name = $unique-ltpId' >\n<parameter name='link-name' value='`$unique-ltpId`' />\n<parameter name='link-type' value='VL' />\n<parameter name='speed-value' value='`$tp.te.interface-switching-capability[0].max-lsp-bandwidth[0].te-bandwidth.eth-bandwidth`' />\n<parameter name='in-maint' value='`$tp.svc.supported-classification.transparent`' />\n\n",\r
+        "id": "aa2f70cf.6e112",\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": 1463.8188934326172,\r
-        "y": 509.5621018409729,\r
-        "z": "1ef7a393.52dc1c",\r
+        "x": 1551.815185546875,\r
+        "y": 742.5621032714844,\r
+        "z": "6d6b8a1f.be1cb4",\r
         "wires": [\r
-            []\r
+            [\r
+                "673078d4.a5cb68",\r
+                "5651def0.2c85b8"\r
+            ]\r
         ]\r
     },\r
     {\r
-        "id": "6031db9d.646964",\r
+        "id": "6cce4024.476ad",\r
         "type": "save",\r
-        "name": "save pnf relationship to logical-link in AAI",\r
-        "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='pnf:relationship-list' \n      key='pnf.pnf-name = $node.node-id' force=\"true\" pfx=\"tmp.AnAI-data\">\n<parameter name=\"relationship-list.relationship[0].related-to\" value=\"logical-link\" />\n<parameter name=\"relationship-list.relationship[0].related-link\" value=\"`'/network/logical-links/logical-link/' + $unique-ltpId`\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-key\" value=\"logical-link.link-name\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-value\" value=\"`$unique-ltpId`\" />",\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": 1542.7077331542969,\r
-        "y": 577.3398509025574,\r
-        "z": "1ef7a393.52dc1c",\r
+        "x": 1634.703857421875,\r
+        "y": 899.3398742675781,\r
+        "z": "6d6b8a1f.be1cb4",\r
         "wires": [\r
             []\r
         ]\r
     },\r
     {\r
-        "id": "3a479676.ca94ea",\r
+        "id": "1ac320c7.c54f67",\r
         "type": "set",\r
         "name": "set unique-ltpId",\r
-        "xml": "<set>\n<parameter name='unique-ltpId' value=\"`'nodeId-' + $node.node-id + '-ltpId-' + $tp.te-tp-id`\" />\n",\r
+        "xml": "<set>\n<parameter name='unique-ltpId' value=\"`$unique-nodeId + '-ltpId-' + $tp.te-tp-id`\" />\n",\r
         "comments": "",\r
-        "x": 1459.0040893554688,\r
-        "y": 445.1176323890686,\r
-        "z": "1ef7a393.52dc1c",\r
+        "x": 1541.000244140625,\r
+        "y": 612.1175842285156,\r
+        "z": "6d6b8a1f.be1cb4",\r
         "wires": []\r
     },\r
     {\r
-        "id": "fcfec7b9.699088",\r
+        "id": "dbbcebe5.6f422",\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.network-id\"/>\n    <parameter name=\"target\" value=\"/\"/>\n    <parameter name=\"replacement\" value=\"-\"/>\n    ",\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": 796.9974060058594,\r
-        "y": 79.99999856948853,\r
-        "z": "1ef7a393.52dc1c",\r
+        "x": 649.9935302734375,\r
+        "y": 40,\r
+        "z": "6d6b8a1f.be1cb4",\r
         "wires": [\r
             []\r
         ]\r
     },\r
     {\r
-        "id": "8140ea7f.0a90f8",\r
+        "id": "4817116d.5f593",\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": 1119.00390625,\r
-        "y": 414.9999985694885,\r
-        "z": "1ef7a393.52dc1c",\r
+        "x": 983,\r
+        "y": 433,\r
+        "z": "6d6b8a1f.be1cb4",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "673078d4.a5cb68",\r
+        "type": "success",\r
+        "name": "success",\r
+        "xml": "<outcome value='success'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1723.499885559082,\r
+        "y": 729.7525787353516,\r
+        "z": "6d6b8a1f.be1cb4",\r
+        "wires": [\r
+            [\r
+                "72e23ce3.0ceb8c"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "5651def0.2c85b8",\r
+        "type": "failure",\r
+        "name": "failure",\r
+        "xml": "<outcome value='failure'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1717.1784744262695,\r
+        "y": 781.966890335083,\r
+        "z": "6d6b8a1f.be1cb4",\r
+        "wires": [\r
+            [\r
+                "936d0942.79b6"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "72e23ce3.0ceb8c",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1874.0000457763672,\r
+        "y": 729.0065097808838,\r
+        "z": "6d6b8a1f.be1cb4",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "936d0942.79b6",\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": 1903,\r
+        "y": 783.0065002441406,\r
+        "z": "6d6b8a1f.be1cb4",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "7077dcc4.1aa314",\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": 1686,\r
+        "y": 329.0065002441406,\r
+        "z": "6d6b8a1f.be1cb4",\r
+        "wires": [\r
+            [\r
+                "ee093e46.66c7d8",\r
+                "e9c7ad6a.1577f"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "3a45511d.adcf26",\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": 1349,\r
+        "y": 317.0065002441406,\r
+        "z": "6d6b8a1f.be1cb4",\r
+        "wires": [\r
+            [\r
+                "2ea4deaf.40bdfa",\r
+                "458ce581.77bfe4",\r
+                "7077dcc4.1aa314",\r
+                "dad1a90d.61b018",\r
+                "7da29c03.1dbdf4"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "2ea4deaf.40bdfa",\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": 1684,\r
+        "y": 237.00650024414062,\r
+        "z": "6d6b8a1f.be1cb4",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "458ce581.77bfe4",\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": 1642.888916015625,\r
+        "y": 275.1175842285156,\r
+        "z": "6d6b8a1f.be1cb4",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "ee093e46.66c7d8",\r
+        "type": "success",\r
+        "name": "success",\r
+        "xml": "<outcome value='success'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1952,\r
+        "y": 315.0065002441406,\r
+        "z": "6d6b8a1f.be1cb4",\r
+        "wires": [\r
+            [\r
+                "1b7d5a60.835d5e"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "e9c7ad6a.1577f",\r
+        "type": "failure",\r
+        "name": "failure",\r
+        "xml": "<outcome value='failure'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1945.6785888671875,\r
+        "y": 367.22081184387207,\r
+        "z": "6d6b8a1f.be1cb4",\r
+        "wires": [\r
+            [\r
+                "652a4eb1.3c9f7"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "1b7d5a60.835d5e",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 2102.500160217285,\r
+        "y": 314.26043128967285,\r
+        "z": "6d6b8a1f.be1cb4",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "652a4eb1.3c9f7",\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": 2183,\r
+        "y": 369.0065002441406,\r
+        "z": "6d6b8a1f.be1cb4",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "1acdca56.b6e67e",\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": 935,\r
+        "y": 164.00650024414062,\r
+        "z": "6d6b8a1f.be1cb4",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "1dca15d7.0a7a3a",\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": 619,\r
+        "y": 327.0065002441406,\r
+        "z": "6d6b8a1f.be1cb4",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "c87f71c.204801",\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": 1635,\r
+        "y": 842.0065002441406,\r
+        "z": "6d6b8a1f.be1cb4",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "dad1a90d.61b018",\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[0].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[0].related-link\" value=\"`'/network/tunnel-termination-points/tunnel-termination-point/' + $unique-ttpId`\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-key\" value=\"tunnel-termination-point.ttp-id\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-value\" value=\"`$unique-ttpId`\" />",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1757,\r
+        "y": 421.0065002441406,\r
+        "z": "6d6b8a1f.be1cb4",\r
+        "wires": [\r
+            [\r
+                "486bef2.804149",\r
+                "8297f8e3.32f2f"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "3e1f14bc.ee90c4",\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": 921,\r
+        "y": 293.0065002441406,\r
+        "z": "6d6b8a1f.be1cb4",\r
+        "wires": [\r
+            [\r
+                "3564e5a8.68c49a",\r
+                "fd68b5a4.a3a878",\r
+                "f36d0950.312798"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "d6240165.9d9a1",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1269,\r
+        "y": 245.00650024414062,\r
+        "z": "6d6b8a1f.be1cb4",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "f36d0950.312798",\r
+        "type": "other",\r
+        "name": "other",\r
+        "xml": "<outcome value='Other'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1111,\r
+        "y": 316.0065002441406,\r
+        "z": "6d6b8a1f.be1cb4",\r
+        "wires": [\r
+            [\r
+                "3a45511d.adcf26"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "6de7541f.0e2a24",\r
+        "type": "switchNode",\r
+        "name": "switch node tp",\r
+        "xml": "<switch test='`$node.termination-point_length`'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 901,\r
+        "y": 548.0065002441406,\r
+        "z": "6d6b8a1f.be1cb4",\r
+        "wires": [\r
+            [\r
+                "d28496d2.5ae628",\r
+                "74698dba.4a5d9c",\r
+                "f51e137e.4b4cd"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "d28496d2.5ae628",\r
+        "type": "other",\r
+        "name": "Null",\r
+        "xml": "<outcome value=''>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1080,\r
+        "y": 500.0065002441406,\r
+        "z": "6d6b8a1f.be1cb4",\r
+        "wires": [\r
+            [\r
+                "1912a08f.2e751f"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "74698dba.4a5d9c",\r
+        "type": "other",\r
+        "name": "other",\r
+        "xml": "<outcome value='Other'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1079,\r
+        "y": 602.0065002441406,\r
+        "z": "6d6b8a1f.be1cb4",\r
+        "wires": [\r
+            [\r
+                "3d4b777c.0e42f"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "1912a08f.2e751f",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1235,\r
+        "y": 500.0065002441406,\r
+        "z": "6d6b8a1f.be1cb4",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "8794be9f.289a08",\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": 899,\r
+        "y": 337.0065002441406,\r
+        "z": "6d6b8a1f.be1cb4",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "3564e5a8.68c49a",\r
+        "type": "other",\r
+        "name": "Null",\r
+        "xml": "<outcome value=''>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1109,\r
+        "y": 179.00650024414062,\r
+        "z": "6d6b8a1f.be1cb4",\r
+        "wires": [\r
+            [\r
+                "d6240165.9d9a1"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "fd68b5a4.a3a878",\r
+        "type": "outcome",\r
+        "name": "length 0",\r
+        "xml": "<outcome value='0'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1114,\r
+        "y": 254.00650024414062,\r
+        "z": "6d6b8a1f.be1cb4",\r
+        "wires": [\r
+            [\r
+                "d6240165.9d9a1"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "f51e137e.4b4cd",\r
+        "type": "outcome",\r
+        "name": "length 0",\r
+        "xml": "<outcome value='0'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1090,\r
+        "y": 548.0065002441406,\r
+        "z": "6d6b8a1f.be1cb4",\r
+        "wires": [\r
+            [\r
+                "1912a08f.2e751f"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "1b6896a8.e62c19",\r
+        "type": "set",\r
+        "name": "unset node",\r
+        "xml": "<set>\n<parameter name='node.' value='' />\n\n",\r
+        "comments": "",\r
+        "x": 907,\r
+        "y": 66.00650024414062,\r
+        "z": "6d6b8a1f.be1cb4",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "64896027.57fb78",\r
+        "type": "set",\r
+        "name": "unset termination point",\r
+        "xml": "<set>\n<parameter name='tp.' value='' />\n",\r
+        "comments": "",\r
+        "x": 1569,\r
+        "y": 498.0065002441406,\r
+        "z": "6d6b8a1f.be1cb4",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "7da29c03.1dbdf4",\r
+        "type": "set",\r
+        "name": "unset tunnel termination point",\r
+        "xml": "<set>\n<parameter name='ttp.' value='' />\n",\r
+        "comments": "",\r
+        "x": 1684,\r
+        "y": 189.00650024414062,\r
+        "z": "6d6b8a1f.be1cb4",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "486bef2.804149",\r
+        "type": "success",\r
+        "name": "success",\r
+        "xml": "<outcome value='success'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 2089,\r
+        "y": 424.0065002441406,\r
+        "z": "6d6b8a1f.be1cb4",\r
+        "wires": [\r
+            [\r
+                "f859267c.20dd3"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "8297f8e3.32f2f",\r
+        "type": "failure",\r
+        "name": "failure",\r
+        "xml": "<outcome value='failure'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 2086,\r
+        "y": 472.0065002441406,\r
+        "z": "6d6b8a1f.be1cb4",\r
+        "wires": [\r
+            [\r
+                "19a686f.52c17f9"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "f859267c.20dd3",\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": 2244,\r
+        "y": 425.0065002441406,\r
+        "z": "6d6b8a1f.be1cb4",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "19a686f.52c17f9",\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": 2245,\r
+        "y": 473.0065002441406,\r
+        "z": "6d6b8a1f.be1cb4",\r
         "wires": [\r
             []\r
         ]\r
+    },\r
+    {\r
+        "id": "c991cb25.a4c41",\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": 2035,\r
+        "y": 667.0065002441406,\r
+        "z": "6d6b8a1f.be1cb4",\r
+        "wires": [\r
+            [\r
+                "dcbfdbac.4106e8",\r
+                "25f66573.5f2caa"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "fe275075.949f1",\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": 1605,\r
+        "y": 668.0065002441406,\r
+        "z": "6d6b8a1f.be1cb4",\r
+        "wires": [\r
+            [\r
+                "2202ef19.0cb66",\r
+                "a44d5e08.8645a8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "a44d5e08.8645a8",\r
+        "type": "outcomeTrue",\r
+        "name": "true",\r
+        "xml": "<outcome value='true'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1832,\r
+        "y": 621.0065002441406,\r
+        "z": "6d6b8a1f.be1cb4",\r
+        "wires": [\r
+            [\r
+                "77ac957f.8f7e64"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "2202ef19.0cb66",\r
+        "type": "outcomeFalse",\r
+        "name": "false",\r
+        "xml": "<outcome value='false'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1833,\r
+        "y": 667.0065002441406,\r
+        "z": "6d6b8a1f.be1cb4",\r
+        "wires": [\r
+            [\r
+                "c991cb25.a4c41"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "77ac957f.8f7e64",\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": 2036,\r
+        "y": 621.0065002441406,\r
+        "z": "6d6b8a1f.be1cb4",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "dcbfdbac.4106e8",\r
+        "type": "success",\r
+        "name": "success",\r
+        "xml": "<outcome value='success'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 2240,\r
+        "y": 644.0065002441406,\r
+        "z": "6d6b8a1f.be1cb4",\r
+        "wires": [\r
+            [\r
+                "21836a86.63b72e"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "25f66573.5f2caa",\r
+        "type": "failure",\r
+        "name": "failure",\r
+        "xml": "<outcome value='failure'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 2233.6785888671875,\r
+        "y": 696.2208118438721,\r
+        "z": "6d6b8a1f.be1cb4",\r
+        "wires": [\r
+            [\r
+                "8297f536.6bb4a"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "21836a86.63b72e",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 2381,\r
+        "y": 644.0065002441406,\r
+        "z": "6d6b8a1f.be1cb4",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "8297f536.6bb4a",\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": 2440,\r
+        "y": 696.0065002441406,\r
+        "z": "6d6b8a1f.be1cb4",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "1c1d34a0.adaa8b",\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": 675,\r
+        "y": 81.00650024414062,\r
+        "z": "6d6b8a1f.be1cb4",\r
+        "wires": []\r
     }\r
 ]
\ No newline at end of file