[\r
{\r
- "id": "8623b35d.0cf2f",\r
+ "id": "761e68a4.20d828",\r
"type": "dgstart",\r
"name": "DGSTART",\r
"outputs": 1,\r
- "x": 125.00390625,\r
- "y": 106.00650644302368,\r
- "z": "1ef7a393.52dc1c",\r
+ "x": 138,\r
+ "y": 118,\r
+ "z": "602a9cf3.38fe14",\r
"wires": [\r
[\r
- "e714b902.20b798"\r
+ "77bd0709.0316f8"\r
]\r
]\r
},\r
{\r
- "id": "e714b902.20b798",\r
+ "id": "77bd0709.0316f8",\r
"type": "service-logic",\r
"name": "DataChange ${project.version}",\r
"module": "DataChange",\r
"comments": "",\r
"xml": "<service-logic xmlns='http://www.onap.org/sdnc/svclogic' xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xsi:schemaLocation='http://www.onap.org/sdnc/svclogic ./svclogic.xsd' module='DataChange' version='${project.version}'>",\r
"outputs": 1,\r
- "x": 327.0039291381836,\r
- "y": 106.89541959762573,\r
- "z": "1ef7a393.52dc1c",\r
+ "x": 227.00003051757812,\r
+ "y": 208.88891220092773,\r
+ "z": "602a9cf3.38fe14",\r
"wires": [\r
[\r
- "fb9820f4.4f92d"\r
+ "ce4c01c9.aadb6"\r
]\r
]\r
},\r
{\r
- "id": "fb9820f4.4f92d",\r
+ "id": "ce4c01c9.aadb6",\r
"type": "method",\r
- "name": "method update-network-to-aai",\r
+ "name": "update-network-to-aai",\r
"xml": "<method rpc='update-network-to-aai' mode='sync'>\n",\r
"comments": "",\r
"outputs": 1,\r
- "x": 336.1151580810547,\r
- "y": 178.22874116897583,\r
- "z": "1ef7a393.52dc1c",\r
+ "x": 263.1112518310547,\r
+ "y": 279.2222366333008,\r
+ "z": "602a9cf3.38fe14",\r
"wires": [\r
[\r
- "b1c5fee.fa526"\r
+ "d7c571d2.ba17"\r
]\r
]\r
},\r
{\r
- "id": "b1c5fee.fa526",\r
+ "id": "d7c571d2.ba17",\r
"type": "block",\r
"name": "block : atomic",\r
"xml": "<block atomic=\"true\">\n",\r
- "atomic": "false",\r
+ "atomic": "true",\r
"comments": "",\r
"outputs": 1,\r
- "x": 583.3373489379883,\r
- "y": 176.78443002700806,\r
- "z": "1ef7a393.52dc1c",\r
+ "x": 488.33343505859375,\r
+ "y": 278.7779235839844,\r
+ "z": "602a9cf3.38fe14",\r
"wires": [\r
[\r
- "d5568e89.0fd49",\r
- "65e1e67.b95e318",\r
- "fcfec7b9.699088"\r
+ "bbf04729.a6b23",\r
+ "e453d9fe.dac3d",\r
+ "5625b915.f4097",\r
+ "c5a21baf.a8c168",\r
+ "6179e02b.bcf5",\r
+ "1d5c0100.129fd7"\r
]\r
]\r
},\r
{\r
- "id": "d5568e89.0fd49",\r
- "type": "update",\r
- "name": "save Zone",\r
- "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='zone' \n key='zone.zone-id = $tmp.network-id' >\n<parameter name='zone-id' value='`$tmp.network-id`' />\n<parameter name='zone-name' value='`$network.client-id`' />\n<parameter name='design-type' value='`$network.te-topology-id`' />\n<parameter name='zone-context' value='`$network.provider-id`' />\n\n",\r
+ "id": "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": 808.3371810913086,\r
- "y": 176.00651788711548,\r
- "z": "1ef7a393.52dc1c",\r
+ "x": 718.333251953125,\r
+ "y": 184.00001525878906,\r
+ "z": "602a9cf3.38fe14",\r
"wires": [\r
[]\r
]\r
},\r
{\r
- "id": "af980bc1.1f72b8",\r
- "type": "update",\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 = $node.node-id' >\n<parameter name='pnf-name' value='`$node.node-id`' />\n<parameter name='pnf-id' value='`$node.node-id`' />\n<parameter name='in-maint' value='true' />\n\n",\r
+ "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='pnf' \n key='pnf.pnf-name = $unique-nodeId' >\n<parameter name='pnf-name' value='`$unique-nodeId`' />\n<parameter name='pnf-id' value='`$node.node-id`' />\n<parameter name='operational-status' value='`$node.te.oper-status`' />\n<parameter name='admin-status' value='`$node.te.te-node-attributes.admin-status`' />\n<parameter name='in-maint' value='true' />\n\n\n\n\n\n",\r
"comments": "",\r
"outputs": 1,\r
- "x": 1052.1150245666504,\r
- "y": 271.11759901046753,\r
- "z": "1ef7a393.52dc1c",\r
+ "x": 918.1111450195312,\r
+ "y": 555.111083984375,\r
+ "z": "602a9cf3.38fe14",\r
"wires": [\r
[]\r
]\r
},\r
{\r
- "id": "65e1e67.b95e318",\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": 823.8927383422852,\r
- "y": 339.33982038497925,\r
- "z": "1ef7a393.52dc1c",\r
+ "x": 689.8888549804688,\r
+ "y": 535.3333129882812,\r
+ "z": "602a9cf3.38fe14",\r
"wires": [\r
[\r
- "af980bc1.1f72b8",\r
- "476a4fdb.dc5f5",\r
- "96688ca0.6a9f6",\r
- "9b63a4a9.acd508",\r
- "8140ea7f.0a90f8"\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": "476a4fdb.dc5f5",\r
+ "id": "4ec17378.333f8c",\r
"type": "set",\r
- "name": "set network",\r
- "xml": "<set>\n<parameter name='node.' value='`$network.node[$pidx].`' />\n",\r
+ "name": "set node",\r
+ "xml": "<set>\n<parameter name='node.' value='`$network.node[$pidx].`' />\n<parameter name='unique-networkId' value='`$tmp.network-id`' />\n\n",\r
"comments": "",\r
- "x": 1062.114990234375,\r
- "y": 202.22872114181519,\r
- "z": "1ef7a393.52dc1c",\r
+ "x": 923.111083984375,\r
+ "y": 451.2222137451172,\r
+ "z": "602a9cf3.38fe14",\r
"wires": []\r
},\r
{\r
- "id": "96688ca0.6a9f6",\r
+ "id": "e61a37ad.722b58",\r
"type": "save",\r
- "name": "save pnf relationship to zone in AAI",\r
- "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='pnf:relationship-list' \n key='pnf.pnf-name = $node.node-id' force=\"true\" pfx=\"tmp.AnAI-data\">\n<parameter name=\"relationship-list.relationship[0].related-to\" value=\"zone\" />\n<parameter name=\"relationship-list.relationship[0].related-link\" value=\"`'/network/zones/zone/' + $tmp.network-id`\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-key\" value=\"zone.zone-id\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-value\" value=\"`$tmp.network-id`\" />",\r
+ "name": "save pnf relationship to network-resource in AAI",\r
+ "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='pnf:relationship-list' \n key='pnf.pnf-name = $unique-nodeId' force=\"true\" pfx=\"tmp.AnAI-data\">\n<parameter name=\"relationship-list.relationship[0].related-to\" value=\"network-resource\" />\n<parameter name=\"relationship-list.relationship[0].related-link\" value=\"`'/network/network-resources/network-resource/' + $tmp.network-id`\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-key\" value=\"network-resource.network-id\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-value\" value=\"`$tmp.network-id`\" />",\r
"comments": "",\r
"outputs": 1,\r
- "x": 1138.7819213867188,\r
- "y": 344.4509873390198,\r
- "z": "1ef7a393.52dc1c",\r
+ "x": 1014.7779541015625,\r
+ "y": 730.4444780349731,\r
+ "z": "602a9cf3.38fe14",\r
"wires": [\r
[]\r
]\r
},\r
{\r
- "id": "9b63a4a9.acd508",\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": 1099.448387145996,\r
- "y": 497.11759424209595,\r
- "z": "1ef7a393.52dc1c",\r
+ "x": 1322.4444580078125,\r
+ "y": 646.1110534667969,\r
+ "z": "602a9cf3.38fe14",\r
"wires": [\r
[\r
- "b34b1b54.abd288",\r
- "66fee673.3f4e78",\r
- "6031db9d.646964",\r
- "3a479676.ca94ea"\r
+ "34b91b9e.a21bbc",\r
+ "8ee77851.c5edd8",\r
+ "15e31265.27a116",\r
+ "bdd15a8d.477f28",\r
+ "847fbf7b.b4b66"\r
]\r
]\r
},\r
{\r
- "id": "b34b1b54.abd288",\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": 1480.1151962280273,\r
- "y": 384.00655603408813,\r
- "z": "1ef7a393.52dc1c",\r
+ "x": 1592.111328125,\r
+ "y": 629.0000305175781,\r
+ "z": "602a9cf3.38fe14",\r
"wires": []\r
},\r
{\r
- "id": "66fee673.3f4e78",\r
- "type": "update",\r
- "name": "save logical-link",\r
- "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='logical-link' \n key='logical-link.link-name = $unique-ltpId' >\n<parameter name='link-name' value='`$unique-ltpId`' />\n<parameter name='link-type' value='VL' />\n<parameter name='speed-value' value='`$tp.te.interface-switching-capability[0].max-lsp-bandwidth[0].te-bandwidth.eth-bandwidth`' />\n<parameter name='in-maint' value='`$tp.svc.supported-classification.transparent`' />\n\n",\r
+ "id": "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": 1463.8188934326172,\r
- "y": 509.5621018409729,\r
- "z": "1ef7a393.52dc1c",\r
+ "x": 1586.815185546875,\r
+ "y": 816.5555725097656,\r
+ "z": "602a9cf3.38fe14",\r
"wires": [\r
- []\r
+ [\r
+ "3101a3f2.5441ec",\r
+ "1a80d066.48736"\r
+ ]\r
]\r
},\r
{\r
- "id": "6031db9d.646964",\r
+ "id": "923c5d7b.98959",\r
"type": "save",\r
- "name": "save pnf relationship to logical-link in AAI",\r
- "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='pnf:relationship-list' \n key='pnf.pnf-name = $node.node-id' force=\"true\" pfx=\"tmp.AnAI-data\">\n<parameter name=\"relationship-list.relationship[0].related-to\" value=\"logical-link\" />\n<parameter name=\"relationship-list.relationship[0].related-link\" value=\"`'/network/logical-links/logical-link/' + $unique-ltpId`\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-key\" value=\"logical-link.link-name\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-value\" value=\"`$unique-ltpId`\" />",\r
+ "name": "save pnf relationship to p-interface in AAI",\r
+ "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='pnf:relationship-list' \n key='pnf.pnf-name = $unique-nodeId' force=\"true\" pfx=\"tmp.AnAI-data\">\n<parameter name=\"relationship-list.relationship[0].related-to\" value=\"p-interface\" />\n<parameter name=\"relationship-list.relationship[0].related-link\" value=\"`'/network/network-resources/network-resource/' + $tmp.network-id + '/pnfs/pnf/' + $unique-nodeId '/p-interfaces/p-interface/' + $unique-ltpId`\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-key\" value=\"p-interface.interface-name\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-value\" value=\"`$unique-ltpId`\" />",\r
"comments": "",\r
"outputs": 1,\r
- "x": 1542.7077331542969,\r
- "y": 577.3398509025574,\r
- "z": "1ef7a393.52dc1c",\r
+ "x": 1407.703857421875,\r
+ "y": 1729.3333435058594,\r
+ "z": "602a9cf3.38fe14",\r
"wires": [\r
[]\r
]\r
},\r
{\r
- "id": "3a479676.ca94ea",\r
+ "id": "8ee77851.c5edd8",\r
"type": "set",\r
"name": "set unique-ltpId",\r
- "xml": "<set>\n<parameter name='unique-ltpId' value=\"`'nodeId-' + $node.node-id + '-ltpId-' + $tp.te-tp-id`\" />\n",\r
+ "xml": "<set>\n<parameter name='unique-ltpId' value=\"`$unique-nodeId + '-ltpId-' + $tp.te-tp-id`\" />\n",\r
"comments": "",\r
- "x": 1459.0040893554688,\r
- "y": 445.1176323890686,\r
- "z": "1ef7a393.52dc1c",\r
+ "x": 1576.000244140625,\r
+ "y": 686.1110534667969,\r
+ "z": "602a9cf3.38fe14",\r
"wires": []\r
},\r
{\r
- "id": "fcfec7b9.699088",\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.network-id\"/>\n <parameter name=\"target\" value=\"/\"/>\n <parameter name=\"replacement\" value=\"-\"/>\n ",\r
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$network.network-id`\"/>\n <parameter name=\"outputPath\" value=\"tmp.original-network-id\"/>\n <parameter name=\"target\" value=\"/\"/>\n <parameter name=\"replacement\" value=\"-\"/>\n ",\r
"comments": "",\r
"outputs": 1,\r
- "x": 796.9974060058594,\r
- "y": 79.99999856948853,\r
- "z": "1ef7a393.52dc1c",\r
+ "x": 674.9935302734375,\r
+ "y": 92.99349975585938,\r
+ "z": "602a9cf3.38fe14",\r
"wires": [\r
[]\r
]\r
},\r
{\r
- "id": "8140ea7f.0a90f8",\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/' + $node.node-id`\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-key\" value=\"pnf.pnf-name\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-value\" value=\"`$node.node-id`\" />\n",\r
+ "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": 1119.00390625,\r
- "y": 414.9999985694885,\r
- "z": "1ef7a393.52dc1c",\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