Completing the logic and the call flow for Transport Slicing operations:
[sdnc/oam.git] / platform-logic / datachange / src / main / json / DataChange_update-network-to-aai.json
index f82168b..f589905 100644 (file)
-[
-  {
-    "id": "4d48ad52.66bce4",
-    "type": "dgstart",
-    "name": "DGSTART",
-    "outputs": 1,
-    "x": 116,
-    "y": 72,
-    "z": "972d7ac.f66db88",
-    "wires": [
-      [
-        "66f854f4.bc80cc"
-      ]
-    ]
-  },
-  {
-    "id": "66f854f4.bc80cc",
-    "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": 205.00003051757812,
-    "y": 162.88891220092773,
-    "z": "972d7ac.f66db88",
-    "wires": [
-      [
-        "7eee0fcc.e1d78"
-      ]
-    ]
-  },
-  {
-    "id": "7eee0fcc.e1d78",
-    "type": "method",
-    "name": "method update-network-to-aai",
-    "xml": "<method rpc='update-network-to-aai' mode='sync'>\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 241.1112518310547,
-    "y": 233.22223663330078,
-    "z": "972d7ac.f66db88",
-    "wires": [
-      [
-        "dd17da81.f85678"
-      ]
-    ]
-  },
-  {
-    "id": "dd17da81.f85678",
-    "type": "block",
-    "name": "block : atomic",
-    "xml": "<block atomic=\"true\">\n",
-    "atomic": "false",
-    "comments": "",
-    "outputs": 1,
-    "x": 466.33343505859375,
-    "y": 232.77792358398438,
-    "z": "972d7ac.f66db88",
-    "wires": [
-      [
-        "c70a984d.cc2a48",
-        "5cf53006.e1ea9",
-        "a9f8a08c.a159f"
-      ]
-    ]
-  },
-  {
-    "id": "5cf53006.e1ea9",
-    "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\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 696.333251953125,
-    "y": 138.00001525878906,
-    "z": "972d7ac.f66db88",
-    "wires": [
-      []
-    ]
-  },
-  {
-    "id": "bc0b4672.53b908",
-    "type": "update",
-    "name": "save pnf",
-    "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='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": 879.111141204834,
-    "y": 191.111102104187,
-    "z": "972d7ac.f66db88",
-    "wires": [
-      []
-    ]
-  },
-  {
-    "id": "a9f8a08c.a159f",
-    "type": "for",
-    "name": "for each node",
-    "xml": "<for index='pidx' start='0' end='`$network.node_length`' >\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 679.8888549804688,
-    "y": 208.33331298828125,
-    "z": "972d7ac.f66db88",
-    "wires": [
-      [
-        "bc0b4672.53b908",
-        "6b3704fc.0bd35c",
-        "24e04af5.ddea66",
-        "9b1ff78d.8b3c08",
-        "8e9342c1.220f"
-      ]
-    ]
-  },
-  {
-    "id": "6b3704fc.0bd35c",
-    "type": "set",
-    "name": "set network",
-    "xml": "<set>\n<parameter name='node.' value='`$network.node[$pidx].`' />\n",
-    "comments": "",
-    "x": 893.111083984375,
-    "y": 156.2222137451172,
-    "z": "972d7ac.f66db88",
-    "wires": []
-  },
-  {
-    "id": "9b1ff78d.8b3c08",
-    "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 = $node.node-id' 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": 1004.7779541015625,
-    "y": 223.44447803497314,
-    "z": "972d7ac.f66db88",
-    "wires": [
-      []
-    ]
-  },
-  {
-    "id": "8e9342c1.220f",
-    "type": "for",
-    "name": "for each termination point",
-    "xml": "<for index='tidx' start='0' end='`$node.termination-point_length`' >\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 937.4444580078125,
-    "y": 339.111083984375,
-    "z": "972d7ac.f66db88",
-    "wires": [
-      [
-        "7c32bd23.da1e04",
-        "38ff90b0.67e0b",
-        "36dd756f.9a425a"
-      ]
-    ]
-  },
-  {
-    "id": "7c32bd23.da1e04",
-    "type": "set",
-    "name": "set termination point",
-    "xml": "<set>\n<parameter name='tp.' value='`$node.termination-point[$tidx].`' />\n",
-    "comments": "",
-    "x": 1204.111328125,
-    "y": 300.0000457763672,
-    "z": "972d7ac.f66db88",
-    "wires": []
-  },
-  {
-    "id": "36dd756f.9a425a",
-    "type": "update",
-    "name": "save p-interface",
-    "xml": "<save 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",
-    "comments": "",
-    "outputs": 1,
-    "x": 1187.8151397705078,
-    "y": 473.5555934906006,
-    "z": "972d7ac.f66db88",
-    "wires": [
-      [
-        "310a666a.23204a",
-        "52308d76.244944"
-      ]
-    ]
-  },
-  {
-    "id": "9b33d7c5.abef78",
-    "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 = $node.node-id' 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/' + $node.node-id '/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": 1263.7038879394531,
-    "y": 562.333345413208,
-    "z": "972d7ac.f66db88",
-    "wires": [
-      []
-    ]
-  },
-  {
-    "id": "38ff90b0.67e0b",
-    "type": "set",
-    "name": "set unique-ltpId",
-    "xml": "<set>\n<parameter name='unique-ltpId' value=\"`'nodeId-' + $node.node-id + '-ltpId-' + $tp.te-tp-id`\" />\n",
-    "comments": "",
-    "x": 1188.000244140625,
-    "y": 334.1111145019531,
-    "z": "972d7ac.f66db88",
-    "wires": []
-  },
-  {
-    "id": "c70a984d.cc2a48",
-    "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": 645.9935302734375,
-    "y": 98.99349212646484,
-    "z": "972d7ac.f66db88",
-    "wires": [
-      []
-    ]
-  },
-  {
-    "id": "24e04af5.ddea66",
-    "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": 986,
-    "y": 259.9934997558594,
-    "z": "972d7ac.f66db88",
-    "wires": [
-      []
-    ]
-  },
-  {
-    "id": "310a666a.23204a",
-    "type": "success",
-    "name": "success",
-    "xml": "<outcome value='success'>\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 1359.4998397827148,
-    "y": 460.7460689544678,
-    "z": "972d7ac.f66db88",
-    "wires": [
-      [
-        "fcc0153a.edfd18"
-      ]
-    ]
-  },
-  {
-    "id": "52308d76.244944",
-    "type": "failure",
-    "name": "failure",
-    "xml": "<outcome value='failure'>\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 1353.1784286499023,
-    "y": 512.9603805541992,
-    "z": "972d7ac.f66db88",
-    "wires": [
-      [
-        "1c6a1f1f.8e0f61"
-      ]
-    ]
-  },
-  {
-    "id": "fcc0153a.edfd18",
-    "type": "block",
-    "name": "block",
-    "xml": "<block>\n",
-    "atomic": "false",
-    "comments": "",
-    "outputs": 1,
-    "x": 1510,
-    "y": 460,
-    "z": "972d7ac.f66db88",
-    "wires": [
-      []
-    ]
-  },
-  {
-    "id": "1c6a1f1f.8e0f61",
-    "type": "update",
-    "name": "save 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",
-    "comments": "",
-    "outputs": 1,
-    "x": 1530,
-    "y": 510,
-    "z": "972d7ac.f66db88",
-    "wires": [
-      []
-    ]
-  }
-]
+[\r
+    {\r
+        "id": "edeab341.54bb4",\r
+        "type": "dgstart",\r
+        "name": "DGSTART",\r
+        "outputs": 1,\r
+        "x": 126,\r
+        "y": 105.00650024414062,\r
+        "z": "a1dc56fc.25a538",\r
+        "wires": [\r
+            [\r
+                "fa7cab2b.24d26"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "fa7cab2b.24d26",\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": 215.00003051757812,\r
+        "y": 195.89541244506836,\r
+        "z": "a1dc56fc.25a538",\r
+        "wires": [\r
+            [\r
+                "6ea5e78a.d4f118"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "6ea5e78a.d4f118",\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": 251.1112518310547,\r
+        "y": 266.2287368774414,\r
+        "z": "a1dc56fc.25a538",\r
+        "wires": [\r
+            [\r
+                "d9721e0.ea910e"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "d9721e0.ea910e",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic=\"true\">\n",\r
+        "atomic": "true",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 476.33343505859375,\r
+        "y": 265.784423828125,\r
+        "z": "a1dc56fc.25a538",\r
+        "wires": [\r
+            [\r
+                "fe85cd4e.468048",\r
+                "e705d0b4.a9ae58",\r
+                "2ddaf91a.d98b16",\r
+                "ff89ecd9.d9563",\r
+                "e471027b.286e6",\r
+                "159870db.58eb07"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "e705d0b4.a9ae58",\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": 706.333251953125,\r
+        "y": 171.0065155029297,\r
+        "z": "a1dc56fc.25a538",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "cb2cfb3d.12f0a8",\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": 906.1111450195312,\r
+        "y": 542.1175842285156,\r
+        "z": "a1dc56fc.25a538",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "2ddaf91a.d98b16",\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": 677.8888549804688,\r
+        "y": 522.3398132324219,\r
+        "z": "a1dc56fc.25a538",\r
+        "wires": [\r
+            [\r
+                "cb2cfb3d.12f0a8",\r
+                "fc39e59f.e19f7",\r
+                "404895b3.1b9a0c",\r
+                "38f275a2.ec1422",\r
+                "dcf15e98.55cd98",\r
+                "2d8d0a77.affafe",\r
+                "1758985b.dd13f8",\r
+                "7f99493d.24ad2"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "fc39e59f.e19f7",\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": 911.111083984375,\r
+        "y": 438.2287139892578,\r
+        "z": "a1dc56fc.25a538",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "38f275a2.ec1422",\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": 1002.7779541015625,\r
+        "y": 717.4509782791138,\r
+        "z": "a1dc56fc.25a538",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "f06afd2d.6a87a8",\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": 1310.4444580078125,\r
+        "y": 633.1175537109375,\r
+        "z": "a1dc56fc.25a538",\r
+        "wires": [\r
+            [\r
+                "641e627.90ce71c",\r
+                "62e3b2b7.0e1854",\r
+                "7c4704e9.f42bfc",\r
+                "cdce39b5.3e2ce8",\r
+                "c12a9ec.a16bae"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "641e627.90ce71c",\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": 1580.111328125,\r
+        "y": 616.0065307617188,\r
+        "z": "a1dc56fc.25a538",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "7c4704e9.f42bfc",\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": 1574.815185546875,\r
+        "y": 803.5620727539062,\r
+        "z": "a1dc56fc.25a538",\r
+        "wires": [\r
+            [\r
+                "99a9f83c.592fb",\r
+                "2cd1ffbf.d1e38"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "6c4885ee.2512d4",\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": 1395.703857421875,\r
+        "y": 1716.33984375,\r
+        "z": "a1dc56fc.25a538",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "62e3b2b7.0e1854",\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": 1564.000244140625,\r
+        "y": 673.1175537109375,\r
+        "z": "a1dc56fc.25a538",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "fe85cd4e.468048",\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": 662.9935302734375,\r
+        "y": 80,\r
+        "z": "a1dc56fc.25a538",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "404895b3.1b9a0c",\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/' + $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": 984,\r
+        "y": 754,\r
+        "z": "a1dc56fc.25a538",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "99a9f83c.592fb",\r
+        "type": "success",\r
+        "name": "success",\r
+        "xml": "<outcome value='success'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1746.499885559082,\r
+        "y": 790.7525482177734,\r
+        "z": "a1dc56fc.25a538",\r
+        "wires": [\r
+            [\r
+                "7275269b.187718"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "2cd1ffbf.d1e38",\r
+        "type": "failure",\r
+        "name": "failure",\r
+        "xml": "<outcome value='failure'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1740.1784744262695,\r
+        "y": 842.9668598175049,\r
+        "z": "a1dc56fc.25a538",\r
+        "wires": [\r
+            [\r
+                "6558158e.20a7e4"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "7275269b.187718",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1897.0000457763672,\r
+        "y": 790.0064792633057,\r
+        "z": "a1dc56fc.25a538",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "6558158e.20a7e4",\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": 1926,\r
+        "y": 844.0064697265625,\r
+        "z": "a1dc56fc.25a538",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "b62e74a8.72d8f8",\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[0]`' />\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": 1640,\r
+        "y": 1095.0064697265625,\r
+        "z": "a1dc56fc.25a538",\r
+        "wires": [\r
+            [\r
+                "7c8389d1.ee45",\r
+                "bbd909f2.ba2d1"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "b69752f.a47b03",\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": 1303,\r
+        "y": 1083.0064697265625,\r
+        "z": "a1dc56fc.25a538",\r
+        "wires": [\r
+            [\r
+                "25de11e2.0dd0ae",\r
+                "b2448024.6d9268",\r
+                "b62e74a8.72d8f8",\r
+                "4cb5cbe8.ee37a4",\r
+                "3ba1d3d8.7bd96c",\r
+                "ead9d9cc.bab4f8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "25de11e2.0dd0ae",\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": 1638,\r
+        "y": 1003.0064697265625,\r
+        "z": "a1dc56fc.25a538",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "b2448024.6d9268",\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": 1596.888916015625,\r
+        "y": 1041.1175537109375,\r
+        "z": "a1dc56fc.25a538",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "7c8389d1.ee45",\r
+        "type": "success",\r
+        "name": "success",\r
+        "xml": "<outcome value='success'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1906,\r
+        "y": 1081.0064697265625,\r
+        "z": "a1dc56fc.25a538",\r
+        "wires": [\r
+            [\r
+                "49e600b2.247268"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "bbd909f2.ba2d1",\r
+        "type": "failure",\r
+        "name": "failure",\r
+        "xml": "<outcome value='failure'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1899.6785888671875,\r
+        "y": 1133.220781326294,\r
+        "z": "a1dc56fc.25a538",\r
+        "wires": [\r
+            [\r
+                "8a380f1a.fa11e"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "49e600b2.247268",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 2056.500160217285,\r
+        "y": 1080.2604007720947,\r
+        "z": "a1dc56fc.25a538",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "8a380f1a.fa11e",\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[0]`' />\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": 2137,\r
+        "y": 1135.0064697265625,\r
+        "z": "a1dc56fc.25a538",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "dcf15e98.55cd98",\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": 936,\r
+        "y": 485.0065002441406,\r
+        "z": "a1dc56fc.25a538",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "ff89ecd9.d9563",\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": 620,\r
+        "y": 648.0065002441406,\r
+        "z": "a1dc56fc.25a538",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "d7b3037a.697688",\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": 1402,\r
+        "y": 1672.0064697265625,\r
+        "z": "a1dc56fc.25a538",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "4cb5cbe8.ee37a4",\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": 1711,\r
+        "y": 1187.0064697265625,\r
+        "z": "a1dc56fc.25a538",\r
+        "wires": [\r
+            [\r
+                "477ea94a.d9b708",\r
+                "1857aab6.41528d"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "2d8d0a77.affafe",\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": 875,\r
+        "y": 1059.0064697265625,\r
+        "z": "a1dc56fc.25a538",\r
+        "wires": [\r
+            [\r
+                "df28f111.dccd78",\r
+                "56382251.f0ed44",\r
+                "836a4c10.0f5058"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "efccb4e8.6c1f7",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1223,\r
+        "y": 1011.0064697265625,\r
+        "z": "a1dc56fc.25a538",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "836a4c10.0f5058",\r
+        "type": "other",\r
+        "name": "other",\r
+        "xml": "<outcome value='Other'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1070,\r
+        "y": 1094.0064697265625,\r
+        "z": "a1dc56fc.25a538",\r
+        "wires": [\r
+            [\r
+                "b69752f.a47b03"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "1758985b.dd13f8",\r
+        "type": "switchNode",\r
+        "name": "switch node tp",\r
+        "xml": "<switch test='`$node.termination-point_length`'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 924,\r
+        "y": 609.0064697265625,\r
+        "z": "a1dc56fc.25a538",\r
+        "wires": [\r
+            [\r
+                "9b64d5a2.85c768",\r
+                "9d78d705.498a28",\r
+                "fec4616c.fd5128"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "9b64d5a2.85c768",\r
+        "type": "other",\r
+        "name": "Null",\r
+        "xml": "<outcome value=''>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1103,\r
+        "y": 561.0064697265625,\r
+        "z": "a1dc56fc.25a538",\r
+        "wires": [\r
+            [\r
+                "31b2e806.d617f"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "9d78d705.498a28",\r
+        "type": "other",\r
+        "name": "other",\r
+        "xml": "<outcome value='Other'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1102,\r
+        "y": 663.0064697265625,\r
+        "z": "a1dc56fc.25a538",\r
+        "wires": [\r
+            [\r
+                "f06afd2d.6a87a8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "31b2e806.d617f",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1258,\r
+        "y": 561.0064697265625,\r
+        "z": "a1dc56fc.25a538",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "264d4645.5fe58a",\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": 853,\r
+        "y": 1103.0064697265625,\r
+        "z": "a1dc56fc.25a538",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "df28f111.dccd78",\r
+        "type": "other",\r
+        "name": "Null",\r
+        "xml": "<outcome value=''>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1063,\r
+        "y": 945.0064697265625,\r
+        "z": "a1dc56fc.25a538",\r
+        "wires": [\r
+            [\r
+                "efccb4e8.6c1f7"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "56382251.f0ed44",\r
+        "type": "outcome",\r
+        "name": "length 0",\r
+        "xml": "<outcome value='0'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1068,\r
+        "y": 1020.0064697265625,\r
+        "z": "a1dc56fc.25a538",\r
+        "wires": [\r
+            [\r
+                "efccb4e8.6c1f7"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "fec4616c.fd5128",\r
+        "type": "outcome",\r
+        "name": "length 0",\r
+        "xml": "<outcome value='0'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1113,\r
+        "y": 609.0064697265625,\r
+        "z": "a1dc56fc.25a538",\r
+        "wires": [\r
+            [\r
+                "31b2e806.d617f"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "7f99493d.24ad2",\r
+        "type": "set",\r
+        "name": "unset node",\r
+        "xml": "<set>\n<parameter name='node.' value='' />\n\n",\r
+        "comments": "",\r
+        "x": 908,\r
+        "y": 387.0065002441406,\r
+        "z": "a1dc56fc.25a538",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "cdce39b5.3e2ce8",\r
+        "type": "set",\r
+        "name": "unset termination point",\r
+        "xml": "<set>\n<parameter name='tp.' value='' />\n",\r
+        "comments": "",\r
+        "x": 1592,\r
+        "y": 559.0064697265625,\r
+        "z": "a1dc56fc.25a538",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "3ba1d3d8.7bd96c",\r
+        "type": "set",\r
+        "name": "unset tunnel termination point",\r
+        "xml": "<set>\n<parameter name='ttp.' value='' />\n",\r
+        "comments": "",\r
+        "x": 1638,\r
+        "y": 955.0064697265625,\r
+        "z": "a1dc56fc.25a538",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "477ea94a.d9b708",\r
+        "type": "success",\r
+        "name": "success",\r
+        "xml": "<outcome value='success'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 2043,\r
+        "y": 1190.0064697265625,\r
+        "z": "a1dc56fc.25a538",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "1857aab6.41528d",\r
+        "type": "failure",\r
+        "name": "failure",\r
+        "xml": "<outcome value='failure'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 2040,\r
+        "y": 1238.0064697265625,\r
+        "z": "a1dc56fc.25a538",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "7abfb291.6dcbac",\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": 2198,\r
+        "y": 1191.0064697265625,\r
+        "z": "a1dc56fc.25a538",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "ec345a2.2004e28",\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": 2199,\r
+        "y": 1239.0064697265625,\r
+        "z": "a1dc56fc.25a538",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "49dd63ef.87e564",\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": 2058,\r
+        "y": 728.0064697265625,\r
+        "z": "a1dc56fc.25a538",\r
+        "wires": [\r
+            [\r
+                "fafe42.8d2fb9c",\r
+                "2c876749.ba8618"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "c12a9ec.a16bae",\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": 1628,\r
+        "y": 729.0064697265625,\r
+        "z": "a1dc56fc.25a538",\r
+        "wires": [\r
+            [\r
+                "a32fa569.0a3c28",\r
+                "b8de06da.79eb1"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "b8de06da.79eb1",\r
+        "type": "outcomeTrue",\r
+        "name": "true",\r
+        "xml": "<outcome value='true'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1855,\r
+        "y": 682.0064697265625,\r
+        "z": "a1dc56fc.25a538",\r
+        "wires": [\r
+            [\r
+                "578202f3.fbbe74"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "a32fa569.0a3c28",\r
+        "type": "outcomeFalse",\r
+        "name": "false",\r
+        "xml": "<outcome value='false'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1856,\r
+        "y": 728.0064697265625,\r
+        "z": "a1dc56fc.25a538",\r
+        "wires": [\r
+            [\r
+                "49dd63ef.87e564"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "578202f3.fbbe74",\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": 2059,\r
+        "y": 682.0064697265625,\r
+        "z": "a1dc56fc.25a538",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "fafe42.8d2fb9c",\r
+        "type": "success",\r
+        "name": "success",\r
+        "xml": "<outcome value='success'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 2263,\r
+        "y": 705.0064697265625,\r
+        "z": "a1dc56fc.25a538",\r
+        "wires": [\r
+            [\r
+                "cad449b6.73c6d"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "2c876749.ba8618",\r
+        "type": "failure",\r
+        "name": "failure",\r
+        "xml": "<outcome value='failure'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 2256.6785888671875,\r
+        "y": 757.220781326294,\r
+        "z": "a1dc56fc.25a538",\r
+        "wires": [\r
+            [\r
+                "92336385.660b18"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "cad449b6.73c6d",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 2404,\r
+        "y": 705.0064697265625,\r
+        "z": "a1dc56fc.25a538",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "92336385.660b18",\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": 2463,\r
+        "y": 757.0064697265625,\r
+        "z": "a1dc56fc.25a538",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "e471027b.286e6",\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<parameter name='tmp.network-id' value=\"`$tmp.original-network-id`\" />\n\n",\r
+        "comments": "",\r
+        "x": 688,\r
+        "y": 121.00650024414062,\r
+        "z": "a1dc56fc.25a538",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "159870db.58eb07",\r
+        "type": "get-resource",\r
+        "name": "get-resource esr-thirdparty-sdnc",\r
+        "xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\t\tresource=\"esr-thirdparty-sdnc\" \n\t\tkey=\"esr-thirdparty-sdnc.thirdparty-sdnc-id = $prop.sdncRestApi.thirdpartySdnc.id AND \n\t\t     depth = '1'\"\n        pfx='tmp.aai.esr-thirdparty-sdnc' local-only='false' >\n\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 749,\r
+        "y": 260,\r
+        "z": "a1dc56fc.25a538",\r
+        "wires": [\r
+            [\r
+                "f22633be.4476e8",\r
+                "4f55d446.34a7f4",\r
+                "beabc6d6.2806f"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "f22633be.4476e8",\r
+        "type": "success",\r
+        "name": "success",\r
+        "xml": "<outcome value='success'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 995,\r
+        "y": 220,\r
+        "z": "a1dc56fc.25a538",\r
+        "wires": [\r
+            [\r
+                "543559cc.c24e08"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "4f55d446.34a7f4",\r
+        "type": "not-found",\r
+        "name": "not-found",\r
+        "xml": "<outcome value='not-found'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 999,\r
+        "y": 260,\r
+        "z": "a1dc56fc.25a538",\r
+        "wires": [\r
+            [\r
+                "50076a10.d4e1b4"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "beabc6d6.2806f",\r
+        "type": "other",\r
+        "name": "other",\r
+        "xml": "<outcome value='Other'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 991,\r
+        "y": 300,\r
+        "z": "a1dc56fc.25a538",\r
+        "wires": [\r
+            [\r
+                "a9b8ac2f.1b4d8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "50076a10.d4e1b4",\r
+        "type": "returnFailure",\r
+        "name": "return failure",\r
+        "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n    <parameter name=\"error-message\" value=\"`'An error occurred while querying esr-thirdparty-sdnc from AnAI with thirdparty-sdnc-id = ' + $tmp.thirdparty-sdnc-id`\" />\n\n",\r
+        "comments": "",\r
+        "x": 1149,\r
+        "y": 260,\r
+        "z": "a1dc56fc.25a538",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "a9b8ac2f.1b4d8",\r
+        "type": "returnFailure",\r
+        "name": "return failure",\r
+        "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n    <parameter name=\"error-message\" value=\"`'Unexpected error occurred while querying esr-thirdparty-sdnc from AnAI with thirdparty-sdnc-id = ' + $tmp.thirdparty-sdnc-id`\" />\n\n",\r
+        "comments": "",\r
+        "x": 1149,\r
+        "y": 300,\r
+        "z": "a1dc56fc.25a538",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "543559cc.c24e08",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1139,\r
+        "y": 218,\r
+        "z": "a1dc56fc.25a538",\r
+        "wires": [\r
+            [\r
+                "627ad99d.a81fa"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "627ad99d.a81fa",\r
+        "type": "save",\r
+        "name": "save network-resource relationship to esr-thirdparty-sdnc",\r
+        "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='network-resource:relationship-list' \n      key='network-resource.network-id = $tmp.network-id'\n      force=\"true\" pfx=\"tmp.AnAI-data\">\n<parameter name=\"relationship-list.relationship[0].related-to\" value=\"esr-thirdparty-sdnc\" />\n<parameter name=\"relationship-list.relationship[0].related-link\" value=\"`'/aai/v19/external-system/esr-thirdparty-sdnc-list/esr-thirdparty-sdnc/' + $prop.sdncRestApi.thirdpartySdnc.id`\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-key\" value=\"esr-thirdparty-sdnc.thirdparty-sdnc-id\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-value\" value=\"`$prop.sdncRestApi.thirdpartySdnc.id`\" />\n\n<!--/aai/v19/external-system/esr-thirdparty-sdnc-list/esr-thirdparty-sdnc/SOTNControllerDomain2-->\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1442,\r
+        "y": 219,\r
+        "z": "a1dc56fc.25a538",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "ead9d9cc.bab4f8",\r
+        "type": "switchNode",\r
+        "name": "switch llcl length",\r
+        "xml": "<switch test='`$node.te.tunnel-termination-point[$ttidx].local-link-connectivities.local-link-connectivity_length`'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1572,\r
+        "y": 1359,\r
+        "z": "a1dc56fc.25a538",\r
+        "wires": [\r
+            [\r
+                "adf88b82.7a0f88",\r
+                "67300142.b2942",\r
+                "fa1d40a0.27dcc"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "adf88b82.7a0f88",\r
+        "type": "other",\r
+        "name": "Null",\r
+        "xml": "<outcome value=''>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1760,\r
+        "y": 1245,\r
+        "z": "a1dc56fc.25a538",\r
+        "wires": [\r
+            [\r
+                "f1f92de8.0da378"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "67300142.b2942",\r
+        "type": "outcome",\r
+        "name": "length 0",\r
+        "xml": "<outcome value='0'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1765,\r
+        "y": 1320,\r
+        "z": "a1dc56fc.25a538",\r
+        "wires": [\r
+            [\r
+                "f1f92de8.0da378"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "fa1d40a0.27dcc",\r
+        "type": "other",\r
+        "name": "other",\r
+        "xml": "<outcome value='Other'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1767,\r
+        "y": 1394,\r
+        "z": "a1dc56fc.25a538",\r
+        "wires": [\r
+            [\r
+                "945bda0b.acb23"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "f1f92de8.0da378",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1920,\r
+        "y": 1311,\r
+        "z": "a1dc56fc.25a538",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "489cfee9.f3ca9",\r
+        "type": "save",\r
+        "name": "save ttp relationship to tp in AAI",\r
+        "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='tunnel-termination-point:relationship-list' \n      key='tunnel-termination-point.ttp-id = $unique-ttpId' 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/pnfs/pnf/' + $unique-nodeId + '/p-interfaces/p-interface/' + $unique-ltpId-second`\" />\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-second`\" />",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 2148,\r
+        "y": 1397,\r
+        "z": "a1dc56fc.25a538",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "5109bb9b.43b29c",\r
+        "type": "set",\r
+        "name": "set unique-ltpId second",\r
+        "xml": "<set>\n<parameter name='unique-ltpId-second' value=\"`$unique-nodeId + '-ltpId-' + $node.te.tunnel-termination-point[$ttidx].local-link-connectivities.local-link-connectivity[0].link-tp-ref`\" />\n",\r
+        "comments": "",\r
+        "x": 2097,\r
+        "y": 1353,\r
+        "z": "a1dc56fc.25a538",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "945bda0b.acb23",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1907,\r
+        "y": 1390,\r
+        "z": "a1dc56fc.25a538",\r
+        "wires": [\r
+            [\r
+                "5109bb9b.43b29c",\r
+                "489cfee9.f3ca9"\r
+            ]\r
+        ]\r
+    }\r
+]
\ No newline at end of file