3 "id": "ef88be3f.517f78",
9 "z": "6d6b8a1f.be1cb4",
17 "id": "74a7a837.229be",
18 "type": "service-logic",
19 "name": "DataChange ${project.version}",
20 "module": "DataChange",
21 "version": "${project.version}",
23 "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}'>",
25 "x": 194.00003051757812,
26 "y": 157.88891220092773,
27 "z": "6d6b8a1f.be1cb4",
35 "id": "284dae72.737532",
37 "name": "update-network-to-aai",
38 "xml": "<method rpc='update-network-to-aai' mode='sync'>\n",
41 "x": 230.1112518310547,
42 "y": 228.22223663330078,
43 "z": "6d6b8a1f.be1cb4",
51 "id": "da05320e.186d48",
53 "name": "block : atomic",
54 "xml": "<block atomic=\"true\">\n",
58 "x": 455.33343505859375,
59 "y": 227.77792358398438,
60 "z": "6d6b8a1f.be1cb4",
71 "id": "75113293.98ea0c",
73 "name": "save network-resource",
74 "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='network-resource' \n key='network-resource.network-id = $tmp.network-id' >\n<parameter name='network-id' value='`$tmp.network-id`' />\n<parameter name='client-id' value='`$network.client-id`' />\n<parameter name='te-topo-id' value='`$network.te-topology-id`' />\n<parameter name='provider-id' value='`$network.provider-id`' />\n\n<parameter name='network-type' value='`$network.network-types`' />\n\n\n",
77 "x": 685.333251953125,
78 "y": 133.00001525878906,
79 "z": "6d6b8a1f.be1cb4",
85 "id": "74f65e67.75c658",
88 "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",
91 "x": 897.1111450195312,
92 "y": 223.111083984375,
93 "z": "6d6b8a1f.be1cb4",
99 "id": "9937b93d.ff5938",
101 "name": "for each node",
102 "xml": "<for index='pidx' start='0' end='`$network.node_length`' >\n",
105 "x": 668.8888549804688,
106 "y": 203.33331298828125,
107 "z": "6d6b8a1f.be1cb4",
122 "id": "60e29b35.16fbd4",
125 "xml": "<set>\n<parameter name='node.' value='`$network.node[$pidx].`' />\n<parameter name='unique-networkId' value='`$tmp.network-id`' />\n\n",
127 "x": 902.111083984375,
128 "y": 119.22221374511719,
129 "z": "6d6b8a1f.be1cb4",
133 "id": "e83884ed.3fb2d8",
135 "name": "save pnf relationship to network-resource in AAI",
136 "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`\" />",
139 "x": 993.7779541015625,
140 "y": 398.44447803497314,
141 "z": "6d6b8a1f.be1cb4",
147 "id": "9c15e41a.6cfbc8",
149 "name": "for each termination point",
150 "xml": "<for index='tidx' start='0' end='`$node.termination-point_length`' >\n",
153 "x": 1279.4444580078125,
154 "y": 574.111083984375,
155 "z": "6d6b8a1f.be1cb4",
165 "id": "3c657cae.66477c",
167 "name": "set termination point",
168 "xml": "<set>\n<parameter name='tp.' value='`$node.termination-point[$tidx].`' />\n",
171 "y": 536.0000457763672,
172 "z": "6d6b8a1f.be1cb4",
176 "id": "8c144095.b1eaf8",
178 "name": "save p-interface",
179 "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\n",
182 "x": 1533.815185546875,
183 "y": 628.5556030273438,
184 "z": "6d6b8a1f.be1cb4",
193 "id": "f6e5129a.8bd048",
195 "name": "save pnf relationship to p-interface in AAI",
196 "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`\" />",
199 "x": 1610.703857421875,
200 "y": 784.3333740234375,
201 "z": "6d6b8a1f.be1cb4",
207 "id": "2e1dc2b9.f23686",
209 "name": "set unique-ltpId",
210 "xml": "<set>\n<parameter name='unique-ltpId' value=\"`$unique-nodeId + '-ltpId-' + $tp.te-tp-id`\" />\n",
212 "x": 1534.000244140625,
213 "y": 570.1111145019531,
214 "z": "6d6b8a1f.be1cb4",
218 "id": "8c187a81.9e4d28",
221 "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 ",
224 "x": 640.9935302734375,
225 "y": 83.99349975585938,
226 "z": "6d6b8a1f.be1cb4",
232 "id": "b27f201.393186",
234 "name": "save pnf relation with esr-thirdparty-sdnc",
235 "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",
239 "y": 434.9934997558594,
240 "z": "6d6b8a1f.be1cb4",
246 "id": "3fc33363.5b82ec",
249 "xml": "<outcome value='success'>\n",
252 "x": 1705.499885559082,
253 "y": 615.7460784912109,
254 "z": "6d6b8a1f.be1cb4",
262 "id": "34c813e4.f5477c",
265 "xml": "<outcome value='failure'>\n",
268 "x": 1699.1784744262695,
269 "y": 667.9603900909424,
270 "z": "6d6b8a1f.be1cb4",
278 "id": "a873419b.bc81c",
285 "x": 1856.0000457763672,
286 "y": 615.0000095367432,
287 "z": "6d6b8a1f.be1cb4",
293 "id": "66113f50.7819f8",
295 "name": "update p-interface",
296 "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`' />",
301 "z": "6d6b8a1f.be1cb4",
307 "id": "c8e5472a.d10408",
309 "name": "save tunnel-termination-point",
310 "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='tunnel-termination-point' \n key='pnf.pnf-name = $unique-nodeId\n AND tunnel-termination-point.ttp-id = $unique-ttpId' >\n\n<parameter name='ttp-id' value='`$unique-ttpId`' />\n<parameter name='tunnel-tp-id' value='`$ttp.tunnel-tp-id`' />\n<parameter name='name' value='`$ttp.name`' />\n<parameter name='admin-status' value='`$ttp.admin-status`' />\n<parameter name='oper-status' value='`$ttp.oper-status`' />\n<parameter name='inter-layer-lock-id' value='`$ttp.inter-layer-lock-id`' />\n<parameter name='switching-capability' value='`$ttp.switching-capability`' />\n<parameter name='protection-type' value='`$ttp.protection-type`' />\n<parameter name='encoding' value='`$ttp.encoding`' />\n\n\n\n\n\n\n",
315 "z": "6d6b8a1f.be1cb4",
324 "id": "8b0a557c.b35cd",
326 "name": "for each tunnel termination point",
327 "xml": "<for index='ttidx' start='0' end='`$node.te.tunnel-termination-point_length`' >\n",
332 "z": "6d6b8a1f.be1cb4",
343 "id": "58c4d943.63d2f",
345 "name": "set tunnel termination point",
346 "xml": "<set>\n<parameter name='ttp.' value='`$node.te.tunnel-termination-point[$ttidx].`' />\n",
350 "z": "6d6b8a1f.be1cb4",
354 "id": "e7e93cd.8f563c",
356 "name": "set unique-ttpId",
357 "xml": "<set>\n<parameter name='unique-ttpId' value=\"`$unique-nodeId + '-ttpId-' + $ttp.tunnel-tp-id`\" />\n",
359 "x": 1634.888916015625,
360 "y": 277.111083984375,
361 "z": "6d6b8a1f.be1cb4",
365 "id": "11cb3cf8.02c3eb",
368 "xml": "<outcome value='success'>\n",
373 "z": "6d6b8a1f.be1cb4",
381 "id": "1a336806.ba4bc8",
384 "xml": "<outcome value='failure'>\n",
387 "x": 1937.6785888671875,
388 "y": 369.21431159973145,
389 "z": "6d6b8a1f.be1cb4",
397 "id": "9ad375c8.fab3e8",
404 "x": 2094.500160217285,
405 "y": 316.2539310455322,
406 "z": "6d6b8a1f.be1cb4",
412 "id": "842e7e75.fc0558",
414 "name": "update tunnel-termination-point",
415 "xml": "<update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='tunnel-termination-point' \n key='pnf.pnf-name = $unique-nodeId\n AND tunnel-termination-point.ttp-id = $unique-ttpId' >\n\n<parameter name='ttp-id' value='`$unique-ttpId`' />\n<parameter name='tunnel-tp-id' value='`$ttp.tunnel-tp-id`' />\n<parameter name='name' value='`$ttp.name`' />\n<parameter name='admin-status' value='`$ttp.admin-status`' />\n<parameter name='oper-status' value='`$ttp.oper-status`' />\n<parameter name='inter-layer-lock-id' value='`$ttp.inter-layer-lock-id`' />\n<parameter name='switching-capability' value='`$ttp.switching-capability`' />\n<parameter name='protection-type' value='`$ttp.protection-type`' />\n<parameter name='encoding' value='`$ttp.encoding`' />\n\n\n\n\n\n\n",
420 "z": "6d6b8a1f.be1cb4",
426 "id": "7257c53.4f087bc",
428 "name": "set local variables",
429 "xml": "<set>\n<parameter name='unique-nodeId' value=\"`'networkId-' + $unique-networkId + '-nodeId-' + $node.node-id`\" />\n",
433 "z": "6d6b8a1f.be1cb4",
437 "id": "55dde830.cc61b8",
439 "name": "call update-network-links-to-aai",
440 "xml": "<call module='DataChange' rpc='update-network-links-to-aai' mode='sync' >\n",
445 "z": "6d6b8a1f.be1cb4",
451 "id": "b86a9ee9.558c2",
453 "name": "save pnf-interface relationship to pnf in AAI",
454 "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",
459 "z": "6d6b8a1f.be1cb4",
465 "id": "7c00c858.c87ab8",
467 "name": "save pnf relationship to tunnel termination point in AAI",
468 "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='pnf:relationship-list' \n key='pnf.pnf-name = $unique-nodeId' force=\"true\" pfx=\"tmp.AnAI-data\">\n<parameter name=\"relationship-list.relationship[$ttidx].related-to\" value=\"tunnel-termination-point\" />\n<parameter name=\"relationship-list.relationship[$ttidx].related-link\" value=\"`'/network/network-resources/network-resource/' + $tmp.network-id + '/pnfs/pnf/' + $node.node-id '/tunnel-termination-points/tunnel-termination-point/' + $unique-ttpId`\" />\n<parameter name=\"relationship-list.relationship[$ttidx].relationship-data[0].relationship-key\" value=\"tunnel-termination-point.ttp-id\" />\n<parameter name=\"relationship-list.relationship[$ttidx].relationship-data[0].relationship-value\" value=\"`$unique-ttpId`\" />",
473 "z": "6d6b8a1f.be1cb4",
479 "id": "395bef40.08498",
480 "type": "switchNode",
481 "name": "switch node ttp",
482 "xml": "<switch test='`$node.te.tunnel-termination-point_length`'>\n",
487 "z": "6d6b8a1f.be1cb4",
497 "id": "5889c4ed.3fc544",
506 "z": "6d6b8a1f.be1cb4",
512 "id": "f2d2c388.1aa578",
515 "xml": "<outcome value='Other'>\n",
520 "z": "6d6b8a1f.be1cb4",
528 "id": "1392eb55.76adbd",
529 "type": "switchNode",
530 "name": "switch node tp",
531 "xml": "<switch test='`$node.termination-point_length`'>\n",
536 "z": "6d6b8a1f.be1cb4",
546 "id": "c5e649ab.cfe2e8",
549 "xml": "<outcome value=''>\n",
554 "z": "6d6b8a1f.be1cb4",
562 "id": "d7a3de29.b44a1",
565 "xml": "<outcome value='Other'>\n",
570 "z": "6d6b8a1f.be1cb4",
578 "id": "3d51c59d.7acffa",
587 "z": "6d6b8a1f.be1cb4",
593 "id": "e55192de.2cc998",
596 "xml": " <record plugin=\"org.onap.ccsdk.sli.core.sli.recording.FileRecorder\">\n <parameter name=\"file\" value=\"/opt/onap/hesamlogx.txt\" />\n <parameter name=\"field1\" value=\"__TIMESTAMP__\" />\n <parameter name=\"field2\" value=\"sucess executing Hesam hesam log file\" />\n <parameter name=\"field3\" value=\"`$node.te.tunnel-termination-point_length`\" />\n <parameter name=\"field4\" value=\"`$node.termination-point_length`\" />\n ",
601 "z": "6d6b8a1f.be1cb4",
607 "id": "84bf875e.b8d51",
610 "xml": "<outcome value=''>\n",
615 "z": "6d6b8a1f.be1cb4",
623 "id": "cc6df2e.2398e9",
626 "xml": "<outcome value='0'>\n",
631 "z": "6d6b8a1f.be1cb4",
639 "id": "a21fbfb7.b6608",
642 "xml": "<outcome value='0'>\n",
647 "z": "6d6b8a1f.be1cb4",