Updating Topology Discovery DGs to align with the latest changes of IETF TE-Topology...
[sdnc/oam.git] / platform-logic / datachange / src / main / json / DataChange_update-network-to-aai.json
index 6b630e5..5cf9d15 100644 (file)
-[
-  {
-    "id": "75e675fb.618e5c",
-    "type": "dgstart",
-    "name": "DGSTART",
-    "outputs": 1,
-    "x": 135.00390625,
-    "y": 77.00390625,
-    "z": "3dcb52b5.f95fbe",
-    "wires": [
-      [
-        "7fa0e5e0.b33c5c"
-      ]
-    ]
-  },
-  {
-    "id": "7fa0e5e0.b33c5c",
-    "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": 224.00393676757812,
-    "y": 167.89281845092773,
-    "z": "3dcb52b5.f95fbe",
-    "wires": [
-      [
-        "d74cb25a.e2de3"
-      ]
-    ]
-  },
-  {
-    "id": "d74cb25a.e2de3",
-    "type": "method",
-    "name": "method update-network-to-aai",
-    "xml": "<method rpc='update-network-to-aai' mode='sync'>\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 260.1151580810547,
-    "y": 238.22614288330078,
-    "z": "3dcb52b5.f95fbe",
-    "wires": [
-      [
-        "a101ac8e.c59f1"
-      ]
-    ]
-  },
-  {
-    "id": "a101ac8e.c59f1",
-    "type": "block",
-    "name": "block : atomic",
-    "xml": "<block atomic=\"true\">\n",
-    "atomic": "false",
-    "comments": "",
-    "outputs": 1,
-    "x": 485.33734130859375,
-    "y": 237.78182983398438,
-    "z": "3dcb52b5.f95fbe",
-    "wires": [
-      [
-        "d5314164.19147",
-        "1d637de0.aa2f02",
-        "b183cf6c.88416"
-      ]
-    ]
-  },
-  {
-    "id": "1d637de0.aa2f02",
-    "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": 715.337158203125,
-    "y": 143.00392150878906,
-    "z": "3dcb52b5.f95fbe",
-    "wires": [
-      []
-    ]
-  },
-  {
-    "id": "8399fa0a.e7e2c8",
-    "type": "update",
-    "name": "save pnf",
-    "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='pnf' \n      key='network-resource.network-id = $tmp.network-id\n      AND 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": 905.1150512695312,
-    "y": 195.11500549316406,
-    "z": "3dcb52b5.f95fbe",
-    "wires": [
-      []
-    ]
-  },
-  {
-    "id": "b183cf6c.88416",
-    "type": "for",
-    "name": "for each node",
-    "xml": "<for index='pidx' start='0' end='`$network.node_length`' >\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 691.8927612304688,
-    "y": 187.33721923828125,
-    "z": "3dcb52b5.f95fbe",
-    "wires": [
-      [
-        "8399fa0a.e7e2c8",
-        "a42bad10.3ef0b",
-        "21ad025b.8c4fee",
-        "9a109c49.5a457",
-        "4710678b.b2f898"
-      ]
-    ]
-  },
-  {
-    "id": "a42bad10.3ef0b",
-    "type": "set",
-    "name": "set network",
-    "xml": "<set>\n<parameter name='node.' value='`$network.node[$pidx].`' />\n",
-    "comments": "",
-    "x": 912.114990234375,
-    "y": 161.2261199951172,
-    "z": "3dcb52b5.f95fbe",
-    "wires": []
-  },
-  {
-    "id": "21ad025b.8c4fee",
-    "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": 1023.7819213867188,
-    "y": 228.44839477539062,
-    "z": "3dcb52b5.f95fbe",
-    "wires": [
-      []
-    ]
-  },
-  {
-    "id": "4710678b.b2f898",
-    "type": "for",
-    "name": "for each termination point",
-    "xml": "<for index='tidx' start='0' end='`$node.termination-point_length`' >\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 956.4483642578125,
-    "y": 344.114990234375,
-    "z": "3dcb52b5.f95fbe",
-    "wires": [
-      [
-        "7bcb0931.538d48",
-        "56653317.e67e9c",
-        "5da0d24d.9b201c",
-        "2065ea1d.9bce86"
-      ]
-    ]
-  },
-  {
-    "id": "7bcb0931.538d48",
-    "type": "set",
-    "name": "set termination point",
-    "xml": "<set>\n<parameter name='tp.' value='`$node.termination-point[$tidx].`' />\n",
-    "comments": "",
-    "x": 1223.115234375,
-    "y": 305.0039520263672,
-    "z": "3dcb52b5.f95fbe",
-    "wires": []
-  },
-  {
-    "id": "2065ea1d.9bce86",
-    "type": "update",
-    "name": "save p-interface",
-    "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='p-interface' \n      key='network-resource.network-id = $tmp.network-id\n      AND pnf.pnf-name = $node.node-id\n      AND p-interface.interface-name = $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": 1206.8189697265625,
-    "y": 373.55950927734375,
-    "z": "3dcb52b5.f95fbe",
-    "wires": [
-      []
-    ]
-  },
-  {
-    "id": "56653317.e67e9c",
-    "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": 1284.707763671875,
-    "y": 411.3372497558594,
-    "z": "3dcb52b5.f95fbe",
-    "wires": [
-      []
-    ]
-  },
-  {
-    "id": "5da0d24d.9b201c",
-    "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": 1207.004150390625,
-    "y": 339.1150207519531,
-    "z": "3dcb52b5.f95fbe",
-    "wires": []
-  },
-  {
-    "id": "d5314164.19147",
-    "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": 664.9974365234375,
-    "y": 103.99739837646484,
-    "z": "3dcb52b5.f95fbe",
-    "wires": [
-      []
-    ]
-  },
-  {
-    "id": "9a109c49.5a457",
-    "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/network-resources/network-resource/' + $tmp.network-id + '/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": 1005.00390625,
-    "y": 264.9974060058594,
-    "z": "3dcb52b5.f95fbe",
-    "wires": [
-      []
-    ]
-  }
+[\r
+    {\r
+        "id": "761e68a4.20d828",\r
+        "type": "dgstart",\r
+        "name": "DGSTART",\r
+        "outputs": 1,\r
+        "x": 138,\r
+        "y": 118,\r
+        "z": "602a9cf3.38fe14",\r
+        "wires": [\r
+            [\r
+                "77bd0709.0316f8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "77bd0709.0316f8",\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": 227.00003051757812,\r
+        "y": 208.88891220092773,\r
+        "z": "602a9cf3.38fe14",\r
+        "wires": [\r
+            [\r
+                "ce4c01c9.aadb6"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "ce4c01c9.aadb6",\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": 263.1112518310547,\r
+        "y": 279.2222366333008,\r
+        "z": "602a9cf3.38fe14",\r
+        "wires": [\r
+            [\r
+                "d7c571d2.ba17"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "d7c571d2.ba17",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic=\"true\">\n",\r
+        "atomic": "true",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 488.33343505859375,\r
+        "y": 278.7779235839844,\r
+        "z": "602a9cf3.38fe14",\r
+        "wires": [\r
+            [\r
+                "bbf04729.a6b23",\r
+                "e453d9fe.dac3d",\r
+                "5625b915.f4097",\r
+                "c5a21baf.a8c168",\r
+                "6179e02b.bcf5",\r
+                "1d5c0100.129fd7"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "e453d9fe.dac3d",\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.te-topology-identifier.client-id`' />\n<parameter name='te-topo-id' value='`$network.te-topology-identifier.topology-id`' />\n<parameter name='provider-id' value='`$network.te-topology-identifier.provider-id`' />\n\n<parameter name='network-type' value='`$network.network-types`' />\n\n\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 718.333251953125,\r
+        "y": 184.00001525878906,\r
+        "z": "602a9cf3.38fe14",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "375be865.3c0f",\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": 918.1111450195312,\r
+        "y": 555.111083984375,\r
+        "z": "602a9cf3.38fe14",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "5625b915.f4097",\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": 689.8888549804688,\r
+        "y": 535.3333129882812,\r
+        "z": "602a9cf3.38fe14",\r
+        "wires": [\r
+            [\r
+                "375be865.3c0f",\r
+                "4ec17378.333f8c",\r
+                "56584a7c.bcf26c",\r
+                "e61a37ad.722b58",\r
+                "53212212.eee0d4",\r
+                "d084b3c7.e9a8d8",\r
+                "b406de10.4f976",\r
+                "10825cf6.777533"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "4ec17378.333f8c",\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": 923.111083984375,\r
+        "y": 451.2222137451172,\r
+        "z": "602a9cf3.38fe14",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "e61a37ad.722b58",\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": 1014.7779541015625,\r
+        "y": 730.4444780349731,\r
+        "z": "602a9cf3.38fe14",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "663dfab3.1deedc",\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": 1322.4444580078125,\r
+        "y": 646.1110534667969,\r
+        "z": "602a9cf3.38fe14",\r
+        "wires": [\r
+            [\r
+                "34b91b9e.a21bbc",\r
+                "8ee77851.c5edd8",\r
+                "15e31265.27a116",\r
+                "bdd15a8d.477f28",\r
+                "847fbf7b.b4b66"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "34b91b9e.a21bbc",\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": 1592.111328125,\r
+        "y": 629.0000305175781,\r
+        "z": "602a9cf3.38fe14",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "15e31265.27a116",\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": 1586.815185546875,\r
+        "y": 816.5555725097656,\r
+        "z": "602a9cf3.38fe14",\r
+        "wires": [\r
+            [\r
+                "3101a3f2.5441ec",\r
+                "1a80d066.48736"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "923c5d7b.98959",\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": 1407.703857421875,\r
+        "y": 1729.3333435058594,\r
+        "z": "602a9cf3.38fe14",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "8ee77851.c5edd8",\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": 1576.000244140625,\r
+        "y": 686.1110534667969,\r
+        "z": "602a9cf3.38fe14",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "bbf04729.a6b23",\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": 674.9935302734375,\r
+        "y": 92.99349975585938,\r
+        "z": "602a9cf3.38fe14",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "56584a7c.bcf26c",\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": 996,\r
+        "y": 766.9934997558594,\r
+        "z": "602a9cf3.38fe14",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "3101a3f2.5441ec",\r
+        "type": "success",\r
+        "name": "success",\r
+        "xml": "<outcome value='success'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1758.499885559082,\r
+        "y": 803.7460479736328,\r
+        "z": "602a9cf3.38fe14",\r
+        "wires": [\r
+            [\r
+                "f0102e05.0d4918"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "1a80d066.48736",\r
+        "type": "failure",\r
+        "name": "failure",\r
+        "xml": "<outcome value='failure'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1752.1784744262695,\r
+        "y": 855.9603595733643,\r
+        "z": "602a9cf3.38fe14",\r
+        "wires": [\r
+            [\r
+                "851b8afc.ed0d6"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "f0102e05.0d4918",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1909.0000457763672,\r
+        "y": 802.999979019165,\r
+        "z": "602a9cf3.38fe14",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "851b8afc.ed0d6",\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": 1938,\r
+        "y": 856.9999694824219,\r
+        "z": "602a9cf3.38fe14",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "95d00fe5.3c431",\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": 1652,\r
+        "y": 1107.9999694824219,\r
+        "z": "602a9cf3.38fe14",\r
+        "wires": [\r
+            [\r
+                "fd2c3c98.e696c",\r
+                "ddcea662.a71648"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "9b51f802.015ec",\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": 1315,\r
+        "y": 1095.9999694824219,\r
+        "z": "602a9cf3.38fe14",\r
+        "wires": [\r
+            [\r
+                "f4695d4f.8e6e6",\r
+                "5bac7584.0c80fc",\r
+                "95d00fe5.3c431",\r
+                "215e84ff.a6a76c",\r
+                "27c88040.1575b8",\r
+                "cbf87dc2.898dc8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "f4695d4f.8e6e6",\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": 1650,\r
+        "y": 1015.9999694824219,\r
+        "z": "602a9cf3.38fe14",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "5bac7584.0c80fc",\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": 1608.888916015625,\r
+        "y": 1054.1110534667969,\r
+        "z": "602a9cf3.38fe14",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "fd2c3c98.e696c",\r
+        "type": "success",\r
+        "name": "success",\r
+        "xml": "<outcome value='success'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1918,\r
+        "y": 1093.9999694824219,\r
+        "z": "602a9cf3.38fe14",\r
+        "wires": [\r
+            [\r
+                "17cf7c51.7123dc"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "ddcea662.a71648",\r
+        "type": "failure",\r
+        "name": "failure",\r
+        "xml": "<outcome value='failure'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1911.6785888671875,\r
+        "y": 1146.2142810821533,\r
+        "z": "602a9cf3.38fe14",\r
+        "wires": [\r
+            [\r
+                "44867d6a.9d6f04"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "17cf7c51.7123dc",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 2068.500160217285,\r
+        "y": 1093.253900527954,\r
+        "z": "602a9cf3.38fe14",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "44867d6a.9d6f04",\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": 2149,\r
+        "y": 1147.9999694824219,\r
+        "z": "602a9cf3.38fe14",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "53212212.eee0d4",\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": 948,\r
+        "y": 498,\r
+        "z": "602a9cf3.38fe14",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "c5a21baf.a8c168",\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": 632,\r
+        "y": 661,\r
+        "z": "602a9cf3.38fe14",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "bb1cacb7.ad451",\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": 1414,\r
+        "y": 1684.9999694824219,\r
+        "z": "602a9cf3.38fe14",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "215e84ff.a6a76c",\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": 1723,\r
+        "y": 1199.9999694824219,\r
+        "z": "602a9cf3.38fe14",\r
+        "wires": [\r
+            [\r
+                "b2ce5e57.725c48",\r
+                "ecae58d2.6c42a"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "d084b3c7.e9a8d8",\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": 887,\r
+        "y": 1071.9999694824219,\r
+        "z": "602a9cf3.38fe14",\r
+        "wires": [\r
+            [\r
+                "4865cde2.7cfebc",\r
+                "3d27675.a149b18",\r
+                "57deece8.01b8cc"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "35cbe11c.dd6a16",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1235,\r
+        "y": 1023.9999694824219,\r
+        "z": "602a9cf3.38fe14",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "57deece8.01b8cc",\r
+        "type": "other",\r
+        "name": "other",\r
+        "xml": "<outcome value='Other'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1082,\r
+        "y": 1106.9999694824219,\r
+        "z": "602a9cf3.38fe14",\r
+        "wires": [\r
+            [\r
+                "9b51f802.015ec"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "b406de10.4f976",\r
+        "type": "switchNode",\r
+        "name": "switch node tp",\r
+        "xml": "<switch test='`$node.termination-point_length`'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 936,\r
+        "y": 621.9999694824219,\r
+        "z": "602a9cf3.38fe14",\r
+        "wires": [\r
+            [\r
+                "d2843fed.623f28",\r
+                "35baa2d4.5e4b66",\r
+                "ea06dcd1.7022d8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "d2843fed.623f28",\r
+        "type": "other",\r
+        "name": "Null",\r
+        "xml": "<outcome value=''>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1115,\r
+        "y": 573.9999694824219,\r
+        "z": "602a9cf3.38fe14",\r
+        "wires": [\r
+            [\r
+                "6b24c820.32a928"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "35baa2d4.5e4b66",\r
+        "type": "other",\r
+        "name": "other",\r
+        "xml": "<outcome value='Other'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1114,\r
+        "y": 675.9999694824219,\r
+        "z": "602a9cf3.38fe14",\r
+        "wires": [\r
+            [\r
+                "663dfab3.1deedc"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "6b24c820.32a928",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1270,\r
+        "y": 573.9999694824219,\r
+        "z": "602a9cf3.38fe14",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "c2dd2cff.e58418",\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": 865,\r
+        "y": 1115.9999694824219,\r
+        "z": "602a9cf3.38fe14",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "4865cde2.7cfebc",\r
+        "type": "other",\r
+        "name": "Null",\r
+        "xml": "<outcome value=''>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1075,\r
+        "y": 957.9999694824219,\r
+        "z": "602a9cf3.38fe14",\r
+        "wires": [\r
+            [\r
+                "35cbe11c.dd6a16"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "3d27675.a149b18",\r
+        "type": "outcome",\r
+        "name": "length 0",\r
+        "xml": "<outcome value='0'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1080,\r
+        "y": 1032.9999694824219,\r
+        "z": "602a9cf3.38fe14",\r
+        "wires": [\r
+            [\r
+                "35cbe11c.dd6a16"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "ea06dcd1.7022d8",\r
+        "type": "outcome",\r
+        "name": "length 0",\r
+        "xml": "<outcome value='0'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1125,\r
+        "y": 621.9999694824219,\r
+        "z": "602a9cf3.38fe14",\r
+        "wires": [\r
+            [\r
+                "6b24c820.32a928"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "10825cf6.777533",\r
+        "type": "set",\r
+        "name": "unset node",\r
+        "xml": "<set>\n<parameter name='node.' value='' />\n\n",\r
+        "comments": "",\r
+        "x": 920,\r
+        "y": 400,\r
+        "z": "602a9cf3.38fe14",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "bdd15a8d.477f28",\r
+        "type": "set",\r
+        "name": "unset termination point",\r
+        "xml": "<set>\n<parameter name='tp.' value='' />\n",\r
+        "comments": "",\r
+        "x": 1604,\r
+        "y": 571.9999694824219,\r
+        "z": "602a9cf3.38fe14",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "27c88040.1575b8",\r
+        "type": "set",\r
+        "name": "unset tunnel termination point",\r
+        "xml": "<set>\n<parameter name='ttp.' value='' />\n",\r
+        "comments": "",\r
+        "x": 1650,\r
+        "y": 967.9999694824219,\r
+        "z": "602a9cf3.38fe14",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "b2ce5e57.725c48",\r
+        "type": "success",\r
+        "name": "success",\r
+        "xml": "<outcome value='success'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 2055,\r
+        "y": 1202.9999694824219,\r
+        "z": "602a9cf3.38fe14",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "ecae58d2.6c42a",\r
+        "type": "failure",\r
+        "name": "failure",\r
+        "xml": "<outcome value='failure'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 2052,\r
+        "y": 1250.9999694824219,\r
+        "z": "602a9cf3.38fe14",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "66810254.224164",\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": 2210,\r
+        "y": 1203.9999694824219,\r
+        "z": "602a9cf3.38fe14",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "1bb980b.9e20b7f",\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": 2211,\r
+        "y": 1251.9999694824219,\r
+        "z": "602a9cf3.38fe14",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "7353d26c.dd96ec",\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": 2070,\r
+        "y": 740.9999694824219,\r
+        "z": "602a9cf3.38fe14",\r
+        "wires": [\r
+            [\r
+                "5edff614.826d5",\r
+                "1737b2af.9f2d45"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "847fbf7b.b4b66",\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": 1640,\r
+        "y": 741.9999694824219,\r
+        "z": "602a9cf3.38fe14",\r
+        "wires": [\r
+            [\r
+                "c7b2022.f3821",\r
+                "cdd8e382.236ad"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "cdd8e382.236ad",\r
+        "type": "outcomeTrue",\r
+        "name": "true",\r
+        "xml": "<outcome value='true'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1867,\r
+        "y": 694.9999694824219,\r
+        "z": "602a9cf3.38fe14",\r
+        "wires": [\r
+            [\r
+                "7cffd999.b3b1b8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "c7b2022.f3821",\r
+        "type": "outcomeFalse",\r
+        "name": "false",\r
+        "xml": "<outcome value='false'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1868,\r
+        "y": 740.9999694824219,\r
+        "z": "602a9cf3.38fe14",\r
+        "wires": [\r
+            [\r
+                "7353d26c.dd96ec"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "7cffd999.b3b1b8",\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": 2071,\r
+        "y": 694.9999694824219,\r
+        "z": "602a9cf3.38fe14",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "5edff614.826d5",\r
+        "type": "success",\r
+        "name": "success",\r
+        "xml": "<outcome value='success'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 2275,\r
+        "y": 717.9999694824219,\r
+        "z": "602a9cf3.38fe14",\r
+        "wires": [\r
+            [\r
+                "c0e19e99.143c08"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "1737b2af.9f2d45",\r
+        "type": "failure",\r
+        "name": "failure",\r
+        "xml": "<outcome value='failure'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 2268.6785888671875,\r
+        "y": 770.2142810821533,\r
+        "z": "602a9cf3.38fe14",\r
+        "wires": [\r
+            [\r
+                "d55c12df.ae4af8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "c0e19e99.143c08",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 2416,\r
+        "y": 717.9999694824219,\r
+        "z": "602a9cf3.38fe14",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "d55c12df.ae4af8",\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": 2475,\r
+        "y": 769.9999694824219,\r
+        "z": "602a9cf3.38fe14",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "6179e02b.bcf5",\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": 700,\r
+        "y": 134,\r
+        "z": "602a9cf3.38fe14",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "1d5c0100.129fd7",\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": 761,\r
+        "y": 272.9934997558594,\r
+        "z": "602a9cf3.38fe14",\r
+        "wires": [\r
+            [\r
+                "90eb31b2.77c238",\r
+                "f3a7ce78.cbd56",\r
+                "9f7c8245.3dec38"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "90eb31b2.77c238",\r
+        "type": "success",\r
+        "name": "success",\r
+        "xml": "<outcome value='success'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1007,\r
+        "y": 232.99349975585938,\r
+        "z": "602a9cf3.38fe14",\r
+        "wires": [\r
+            [\r
+                "8f122881.12a378"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "f3a7ce78.cbd56",\r
+        "type": "not-found",\r
+        "name": "not-found",\r
+        "xml": "<outcome value='not-found'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1011,\r
+        "y": 272.9934997558594,\r
+        "z": "602a9cf3.38fe14",\r
+        "wires": [\r
+            [\r
+                "ecbad826.8cc148"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "9f7c8245.3dec38",\r
+        "type": "other",\r
+        "name": "other",\r
+        "xml": "<outcome value='Other'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1003,\r
+        "y": 312.9934997558594,\r
+        "z": "602a9cf3.38fe14",\r
+        "wires": [\r
+            [\r
+                "cf84ec83.d6cc78"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "ecbad826.8cc148",\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": 1161,\r
+        "y": 272.9934997558594,\r
+        "z": "602a9cf3.38fe14",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "cf84ec83.d6cc78",\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": 1161,\r
+        "y": 312.9934997558594,\r
+        "z": "602a9cf3.38fe14",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "8f122881.12a378",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1151,\r
+        "y": 230.99349975585938,\r
+        "z": "602a9cf3.38fe14",\r
+        "wires": [\r
+            [\r
+                "1e7c71ae.903b3e"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "1e7c71ae.903b3e",\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": 1454,\r
+        "y": 231.99349975585938,\r
+        "z": "602a9cf3.38fe14",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "cbf87dc2.898dc8",\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": 1584,\r
+        "y": 1371.9934997558594,\r
+        "z": "602a9cf3.38fe14",\r
+        "wires": [\r
+            [\r
+                "63cc82cd.b17e4c",\r
+                "7a2ef7bd.18409",\r
+                "bb4f9fb3.43afc8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "63cc82cd.b17e4c",\r
+        "type": "other",\r
+        "name": "Null",\r
+        "xml": "<outcome value=''>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1772,\r
+        "y": 1257.9934997558594,\r
+        "z": "602a9cf3.38fe14",\r
+        "wires": [\r
+            [\r
+                "6223b1f1.46672"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "7a2ef7bd.18409",\r
+        "type": "outcome",\r
+        "name": "length 0",\r
+        "xml": "<outcome value='0'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1777,\r
+        "y": 1332.9934997558594,\r
+        "z": "602a9cf3.38fe14",\r
+        "wires": [\r
+            [\r
+                "6223b1f1.46672"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "bb4f9fb3.43afc8",\r
+        "type": "other",\r
+        "name": "other",\r
+        "xml": "<outcome value='Other'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1779,\r
+        "y": 1406.9934997558594,\r
+        "z": "602a9cf3.38fe14",\r
+        "wires": [\r
+            [\r
+                "3a444976.a40cae"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "6223b1f1.46672",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1932,\r
+        "y": 1323.9934997558594,\r
+        "z": "602a9cf3.38fe14",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "7f51d8cc.cf481",\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": 2160,\r
+        "y": 1409.9934997558594,\r
+        "z": "602a9cf3.38fe14",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "23d6e8d8.b0dc08",\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": 2109,\r
+        "y": 1365.9934997558594,\r
+        "z": "602a9cf3.38fe14",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "3a444976.a40cae",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1919,\r
+        "y": 1402.9934997558594,\r
+        "z": "602a9cf3.38fe14",\r
+        "wires": [\r
+            [\r
+                "23d6e8d8.b0dc08",\r
+                "7f51d8cc.cf481"\r
+            ]\r
+        ]\r
+    }\r
 ]
\ No newline at end of file