3 "id": "e71bc70e.124d38",
9 "z": "a2160ede.50a7f8",
17 "id": "f849e1fd.7b8e28",
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": 231.00003051757812,
26 "y": 139.88891220092773,
27 "z": "a2160ede.50a7f8",
35 "id": "7adf111d.766db8",
37 "name": "method update-network-to-aai",
38 "xml": "<method rpc='update-network-to-aai' mode='sync'>\n",
41 "x": 267.1112518310547,
42 "y": 210.22223663330078,
43 "z": "a2160ede.50a7f8",
51 "id": "802b5752.247908",
53 "name": "block : atomic",
54 "xml": "<block atomic=\"true\">\n",
58 "x": 492.33343505859375,
59 "y": 209.77792358398438,
60 "z": "a2160ede.50a7f8",
71 "id": "7667af77.0df1e8",
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": 722.333251953125,
78 "y": 115.00001525878906,
79 "z": "a2160ede.50a7f8",
85 "id": "ab67cffd.8b31",
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": 934.1111450195312,
92 "y": 205.111083984375,
93 "z": "a2160ede.50a7f8",
99 "id": "6f623dd3.9a7c44",
101 "name": "for each node",
102 "xml": "<for index='pidx' start='0' end='`$network.node_length`' >\n",
105 "x": 705.8888549804688,
106 "y": 185.33331298828125,
107 "z": "a2160ede.50a7f8",
121 "id": "c4083363.2a3b2",
123 "name": "set network",
124 "xml": "<set>\n<parameter name='node.' value='`$network.node[$pidx].`' />\n\n<parameter name='unique-networkId' value='`$tmp.network-id`' />\n<parameter name='unique-nodeId' value=\"`'networkId-' + $unique-networkId + '-nodeId-' + $node.node-id`\" />\n<parameter name='src-tpId' value=\"`'networkId-' + $unique-networkId + '-nodeId-' + $link.source.source-node + '-ltpId-' + $link.source.source-tp`\" />\n",
126 "x": 950.111083984375,
127 "y": 133.2222137451172,
128 "z": "a2160ede.50a7f8",
132 "id": "c02a5c85.3b448",
134 "name": "save pnf relationship to network-resource in AAI",
135 "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`\" />",
138 "x": 1030.7779541015625,
139 "y": 380.44447803497314,
140 "z": "a2160ede.50a7f8",
146 "id": "499b8cbc.ebafac",
148 "name": "for each termination point",
149 "xml": "<for index='tidx' start='0' end='`$node.termination-point_length`' >\n",
152 "x": 963.4444580078125,
153 "y": 496.111083984375,
154 "z": "a2160ede.50a7f8",
165 "id": "c5951e15.43701",
167 "name": "set termination point",
168 "xml": "<set>\n<parameter name='tp.' value='`$node.termination-point[$tidx].`' />\n",
171 "y": 457.0000457763672,
172 "z": "a2160ede.50a7f8",
176 "id": "3831ed03.d1f9da",
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": 1213.8151397705078,
183 "y": 630.5555934906006,
184 "z": "a2160ede.50a7f8",
193 "id": "7e259f3c.438d9",
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": 1297.703857421875,
200 "y": 765.3333740234375,
201 "z": "a2160ede.50a7f8",
207 "id": "c670da77.075458",
209 "name": "set unique-ltpId",
210 "xml": "<set>\n<parameter name='unique-ltpId' value=\"`$unique-nodeId + '-ltpId-' + $tp.te-tp-id`\" />\n",
212 "x": 1214.000244140625,
213 "y": 491.1111145019531,
214 "z": "a2160ede.50a7f8",
218 "id": "32d96ea8.386a82",
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": 671.9935302734375,
225 "y": 75.99349212646484,
226 "z": "a2160ede.50a7f8",
232 "id": "ba78539e.d2e248",
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": 416.9934997558594,
240 "z": "a2160ede.50a7f8",
246 "id": "9d09dea6.d30ca8",
249 "xml": "<outcome value='success'>\n",
252 "x": 1385.4998397827148,
253 "y": 617.7460689544678,
254 "z": "a2160ede.50a7f8",
262 "id": "abd50ee3.2f813",
265 "xml": "<outcome value='failure'>\n",
268 "x": 1379.1784286499023,
269 "y": 669.9603805541992,
270 "z": "a2160ede.50a7f8",
278 "id": "3d744c93.2eb20c",
287 "z": "a2160ede.50a7f8",
293 "id": "a0fb6003.0efd8",
295 "name": "update p-interface",
296 "xml": "<update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='p-interface' \n key='pnf.pnf-name = $node.node-id\n AND p-interface.interface-name = $unique-ltpId' > \n<parameter name='interface-name' value='`$unique-ltpId`' />\n<parameter name='network-ref' value='`$tp.supporting-termination-point[0].network-ref`' />\n<parameter name='transparent' value='`$tp.svc.supported-classification.transparent`' />\n<parameter name='speed-value' value='`$tp.te.interface-switching-capability[0].max-lsp-bandwidth[0].te-bandwidth.eth-bandwidth`' />\n<parameter name='operational-status' value='`$tp.te.oper-status`' />\n<parameter name='in-maint' value=\"true\" />\n\n<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",
301 "z": "a2160ede.50a7f8",
307 "id": "aa9ed7c5.9f2be8",
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": "a2160ede.50a7f8",
324 "id": "7a876b8.f89b114",
326 "name": "for each tunnel termination point",
327 "xml": "<for index='ttidx' start='0' end='`$node.te.tunnel-termination-point_length`' >\n",
332 "z": "a2160ede.50a7f8",
343 "id": "79913f13.5b1fa",
345 "name": "set tunnel termination point",
346 "xml": "<set>\n<parameter name='ttp.' value='`$node.te.tunnel-termination-point[$ttidx].`' />\n",
350 "z": "a2160ede.50a7f8",
354 "id": "4552b8b5.e9ba2",
356 "name": "set unique-ttpId",
357 "xml": "<set>\n<parameter name='unique-ttpId' value=\"`$unique-nodeId + '-ttpId-' + $ttp.tunnel-tp-id`\" />\n",
359 "x": 1370.888916015625,
360 "y": 151.111083984375,
361 "z": "a2160ede.50a7f8",
365 "id": "54fe71d8.edb1c",
368 "xml": "<outcome value='success'>\n",
373 "z": "a2160ede.50a7f8",
381 "id": "6cd48f92.21a288",
384 "xml": "<outcome value='failure'>\n",
387 "x": 1673.6785888671875,
388 "y": 243.21431159973145,
389 "z": "a2160ede.50a7f8",
397 "id": "42f8b4e.c7b524c",
404 "x": 1830.5001602172852,
405 "y": 190.25393104553223,
406 "z": "a2160ede.50a7f8",
412 "id": "5f719388.c96efc",
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 = $node.node-id\n AND tunnel-termination-point.ttp-id = $unique-ttpId' >\n\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": "a2160ede.50a7f8",
426 "id": "46013f8c.54849",
428 "name": "set local variables",
429 "xml": "<set>\n<parameter name='unique-networkId' value='`$tmp.network-id`' />\n<parameter name='unique-nodeId' value=\"`'networkId-' + $unique-networkId + '-nodeId-' + $node.node-id`\" />\n",
433 "z": "a2160ede.50a7f8",
437 "id": "ffd24e55.e4afa",
439 "name": "call update-network-links-to-aai",
440 "xml": "<call module='DataChange' rpc='update-network-links-to-aai' mode='sync' >\n",
445 "z": "a2160ede.50a7f8",
451 "id": "f6959b19.b0bc18",
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": "a2160ede.50a7f8",
465 "id": "e23bdb7f.fdc9c",
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": "a2160ede.50a7f8",