3 "id": "d865558f.8efaa8",
7 "x": 117.14286041259766,
8 "y": 84.28571319580078,
9 "z": "660eb50b.12658c",
17 "id": "846785d8.683638",
18 "type": "service-logic",
19 "name": "GENERIC-RESOURCE-API ${project.version}",
20 "module": "GENERIC-RESOURCE-API",
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='GENERIC-RESOURCE-API' version='${project.version}'>",
25 "x": 231.0952377319336,
26 "y": 124.52383422851562,
27 "z": "660eb50b.12658c",
35 "id": "d2d2a3b0.5e5cf",
37 "name": "method port-mirror-topology-operation-mapping-vprobe",
38 "xml": "<method rpc='port-mirror-topology-operation-mapping-vprobe' mode='sync'>\n",
41 "x": 258.42864990234375,
42 "y": 165.71428680419922,
43 "z": "660eb50b.12658c",
51 "id": "95f0422f.b3d2c",
53 "name": "port-mirror-topology-operation-mapping-vprobe",
56 "x": 511.4877166748047,
57 "y": 31.87205696105957,
58 "z": "660eb50b.12658c",
62 "id": "aa8038f.fd261c8",
64 "name": "for each source vnfc-object",
65 "xml": "<for silentFailure='true' index='vnfc-so-idx' start='0' end='`$service-data.vnfc-instance-groups.vnfc-instance-group[$tmp.src-vnfc-idx].vnfc-objects.vnfc-object_length`' >\n",
68 "x": 412.14302825927734,
69 "y": 834.618974685669,
70 "z": "660eb50b.12658c",
78 "id": "3837ea89.85c4d6",
80 "name": "for each source vnic",
81 "xml": "<for silentFailure='true' index='vnic-s-idx' start='0' end='`$service-data.vnfc-instance-groups.vnfc-instance-group[$tmp.src-vnfc-idx].vnfc-objects.vnfc-object[$vnfc-so-idx].vnics.vnic_length`' >\n",
84 "x": 653.8096923828125,
85 "y": 834.0460891723633,
86 "z": "660eb50b.12658c",
94 "id": "8cb72a4d.cda468",
96 "name": "for each dest vnfc-object",
97 "xml": "<for silentFailure='true' index='vnfc-do-idx' start='0' end='`$service-data.vnfc-instance-groups.vnfc-instance-group[$tmp.dest-vnfc-idx].vnfc-objects.vnfc-object_length`' >\n",
100 "x": 1092.33349609375,
101 "y": 733.9510021209717,
102 "z": "660eb50b.12658c",
110 "id": "5e36f7e6.7d7318",
112 "name": "for each dest vnic",
113 "xml": "<for silentFailure='true' index='vnic-d-idx' start='0' end='`$service-data.vnfc-instance-groups.vnfc-instance-group[$tmp.dest-vnfc-idx].vnfc-objects.vnfc-object[$vnfc-do-idx].vnics.vnic_length`' >\n",
116 "x": 1314.7146072387695,
117 "y": 733.3326072692871,
118 "z": "660eb50b.12658c",
126 "id": "9c27bf76.2cc07",
127 "type": "switchNode",
128 "name": "enough capacity?",
129 "xml": "<switch test='`$service-data.vnfc-instance-groups.vnfc-instance-group[$tmp.src-vnfc-idx].vnfc-objects.vnfc-object[$vnfc-so-idx].vnics.vnic[$vnic-s-idx].capacity.vnic-capacity\n <= $tmp.rem-cap`'>\n",
132 "x": 1693.048080444336,
133 "y": 758.2370805740356,
134 "z": "660eb50b.12658c",
142 "id": "13722054.5e929",
144 "name": "block : atomic",
145 "xml": "<block atomic=\"true\">",
148 "x": 1504.0004272460938,
149 "y": 732.5232133865356,
150 "z": "660eb50b.12658c",
159 "id": "5ec61bd2.c386d4",
161 "name": "set remaining capacity",
162 "xml": "<set>\n<parameter name='tmp.rem-cap' value='`$service-data.vnfc-instance-groups.vnfc-instance-group[$tmp.dest-vnfc-idx].vnfc-objects.vnfc-object[$vnfc-do-idx].vnics.vnic[$vnic-d-idx].capacity.vnic-capacity\n - $service-data.vnfc-instance-groups.vnfc-instance-group[$tmp.dest-vnfc-idx].vnfc-objects.vnfc-object[$vnfc-do-idx].vnics.vnic[$vnic-d-idx].capacity.used-capacity`' />\n",
164 "x": 1706.6194534301758,
165 "y": 705.8562164306641,
166 "z": "660eb50b.12658c",
170 "id": "50e739ed.9ece08",
171 "type": "outcomeTrue",
173 "xml": "<outcome value='true'>\n",
176 "x": 1860.4287872314453,
177 "y": 757.6658725738525,
178 "z": "660eb50b.12658c",
186 "id": "80910918.dbf9d8",
188 "name": "add to used-capacity",
189 "xml": "<set>\n<parameter name='service-data.vnfc-instance-groups.vnfc-instance-group[$tmp.dest-vnfc-idx].vnfc-objects.vnfc-object[$tmp.save-vnfc-do-idx].vnics.vnic[$tmp.save-vnic-d-idx].capacity.used-capacity'\n value='`$tmp.src-pps + $service-data.vnfc-instance-groups.vnfc-instance-group[$tmp.dest-vnfc-idx].vnfc-objects.vnfc-object[$tmp.save-vnfc-do-idx].vnics.vnic[$tmp.save-vnic-d-idx].capacity.used-capacity`' />\n",
191 "x": 1082.3334579467773,
192 "y": 914.6179370880127,
193 "z": "660eb50b.12658c",
197 "id": "2a8d0015.ea3c6",
199 "name": "set source-to-dest-map",
200 "xml": "<set>\n<parameter name='pm.configuration-data.port-mirror-configuration-topology.port-mirror-configuration-assignments.source-to-dest-maps.source-to-dest-map[$map-idx].source-port-id'\n value='`$service-data.vnfc-instance-groups.vnfc-instance-group[$tmp.src-vnfc-idx].vnfc-objects.vnfc-object[$vnfc-so-idx].vnics.vnic[$vnic-s-idx].vnic-port-id`' />\n<parameter name='pm.configuration-data.port-mirror-configuration-topology.port-mirror-configuration-assignments.source-to-dest-maps.source-to-dest-map[$map-idx].source-port-name'\n value='`$service-data.vnfc-instance-groups.vnfc-instance-group[$tmp.src-vnfc-idx].vnfc-objects.vnfc-object[$vnfc-so-idx].vnics.vnic[$vnic-s-idx].vnic-port-name`' />\n<parameter name='pm.configuration-data.port-mirror-configuration-topology.port-mirror-configuration-assignments.source-to-dest-maps.source-to-dest-map[$map-idx].source-vserver-id'\n value='`$service-data.vnfc-instance-groups.vnfc-instance-group[$tmp.src-vnfc-idx].vnfc-objects.vnfc-object[$vnfc-so-idx].vserver-id`' />\n\n<parameter name='pm.configuration-data.port-mirror-configuration-topology.port-mirror-configuration-assignments.source-to-dest-maps.source-to-dest-map[$map-idx].dest-port-id'\n value='`$service-data.vnfc-instance-groups.vnfc-instance-group[$tmp.dest-vnfc-idx].vnfc-objects.vnfc-object[$tmp.save-vnfc-do-idx].vnics.vnic[$tmp.save-vnic-d-idx].vnic-port-id`' />\n<parameter name='pm.configuration-data.port-mirror-configuration-topology.port-mirror-configuration-assignments.source-to-dest-maps.source-to-dest-map[$map-idx].dest-port-name'\n value='`$service-data.vnfc-instance-groups.vnfc-instance-group[$tmp.dest-vnfc-idx].vnfc-objects.vnfc-object[$tmp.save-vnfc-do-idx].vnics.vnic[$tmp.save-vnic-d-idx].vnic-port-name`' />\n<parameter name='pm.configuration-data.port-mirror-configuration-topology.port-mirror-configuration-assignments.source-to-dest-maps.source-to-dest-map[$map-idx].dest-vserver-id'\n value='`$service-data.vnfc-instance-groups.vnfc-instance-group[$tmp.dest-vnfc-idx].vnfc-objects.vnfc-object[$tmp.save-vnfc-do-idx].vserver-id`' />\n\n<parameter name='pm.configuration-data.port-mirror-configuration-topology.port-mirror-configuration-assignments.source-to-dest-maps.source-to-dest-map[$map-idx].dest-ip-addresses.ip-addresses.ipv4-address'\n value='`$service-data.vnfc-instance-groups.vnfc-instance-group[$tmp.dest-vnfc-idx].vnfc-objects.vnfc-object[$tmp.save-vnfc-do-idx].vnics.vnic[$tmp.save-vnic-d-idx].vnic-ip-addresses.ip-addresses.ipv4-address`' />\n<parameter name='pm.configuration-data.port-mirror-configuration-topology.port-mirror-configuration-assignments.source-to-dest-maps.source-to-dest-map[$map-idx].dest-ip-addresses.ip-addresses.ipv6-address'\n value='`$service-data.vnfc-instance-groups.vnfc-instance-group[$tmp.dest-vnfc-idx].vnfc-objects.vnfc-object[$tmp.save-vnfc-do-idx].vnics.vnic[$tmp.save-vnic-d-idx].vnic-ip-addresses.ip-addresses.ipv6-address`' />\n",
202 "x": 1089.0001525878906,
203 "y": 957.9512882232666,
204 "z": "660eb50b.12658c",
208 "id": "342ed31a.7fb37c",
210 "name": "set tmp.found-capacity=N",
211 "xml": "<set>\n<parameter name='tmp.found-capacity' value='N' />\n<parameter name='tmp.save-rem-cap' value='0' />\n",
213 "x": 1097.0956268310547,
214 "y": 684.903995513916,
215 "z": "660eb50b.12658c",
219 "id": "d265eabd.0ec438",
220 "type": "switchNode",
221 "name": "switch found-capacity == N?",
222 "xml": "<switch test=\"`$tmp.found-capacity == 'N'`\">\n",
225 "x": 1100.428955078125,
226 "y": 799.9037551879883,
227 "z": "660eb50b.12658c",
235 "id": "16e3151a.db68db",
236 "type": "outcomeTrue",
238 "xml": "<outcome value='true'>\n",
241 "x": 1297.5717010498047,
242 "y": 800.2611198425293,
243 "z": "660eb50b.12658c",
251 "id": "833c3032.ce493",
253 "name": "block : atomic",
254 "xml": "<block atomic=\"true\">",
257 "x": 854.476448059082,
258 "y": 834.1895208358765,
259 "z": "660eb50b.12658c",
272 "id": "9021e5af.5cc618",
274 "name": "set map-idx to 0",
275 "xml": "<set>\n<parameter name='map-idx' value='0' />\n",
277 "x": 379.2382507324219,
278 "y": 620.6177444458008,
279 "z": "660eb50b.12658c",
283 "id": "7030b73e.7416d8",
285 "name": "increment map-idx",
286 "xml": "<set>\n<parameter name='map-idx' value='`$map-idx + 1`' />\n",
288 "x": 1073.0000839233398,
289 "y": 1003.9514389038086,
290 "z": "660eb50b.12658c",
294 "id": "ee37c9ea.374c38",
295 "type": "switchNode",
296 "name": "is there an ipv4-address?",
297 "xml": "<switch test='`$service-data.vnfc-instance-groups.vnfc-instance-group[$tmp.dest-vnfc-idx].vnfc-objects.vnfc-object[$vnfc-do-idx].vnics.vnic[$vnic-d-idx].vnic-ip-addresses.ip-addresses.ipv4-address`'>\n",
300 "x": 2050.3812103271484,
301 "y": 758.2372093200684,
302 "z": "660eb50b.12658c",
311 "id": "42d3f046.6533e",
314 "xml": "<outcome value=''>\n",
317 "x": 2250.381191253662,
318 "y": 756.8089141845703,
319 "z": "660eb50b.12658c",
327 "id": "9898c47b.17dc68",
328 "type": "switchNode",
329 "name": "is there an ipv6-address?",
330 "xml": "<switch test='`$service-data.vnfc-instance-groups.vnfc-instance-group[$tmp.dest-vnfc-idx].vnfc-objects.vnfc-object[$vnfc-do-idx].vnics.vnic[$vnic-d-idx].vnic-ip-addresses.ip-addresses.ipv6-address`'>\n",
333 "x": 2444.6669692993164,
334 "y": 755.380163192749,
335 "z": "660eb50b.12658c",
344 "id": "7758eb3f.b453a4",
347 "xml": "<outcome value=''>\n",
350 "x": 2637.524269104004,
351 "y": 753.951696395874,
352 "z": "660eb50b.12658c",
360 "id": "3e7e4f38.7c3b3",
363 "xml": "<outcome value='Other'>\n",
366 "x": 2247.5240478515625,
367 "y": 803.9515285491943,
368 "z": "660eb50b.12658c",
376 "id": "bbcfc415.922a78",
379 "xml": "<outcome value='Other'>\n",
382 "x": 2634.667018890381,
383 "y": 799.6659545898438,
384 "z": "660eb50b.12658c",
392 "id": "d7f88536.7fca88",
394 "name": "block : atomic",
395 "xml": "<block atomic=\"true\">",
398 "x": 2794.667091369629,
399 "y": 751.094518661499,
400 "z": "660eb50b.12658c",
406 "id": "194fd5ff.1b122a",
408 "name": "Found a usable destination port",
411 "x": 1118.4765014648438,
412 "y": 867.9990339279175,
413 "z": "660eb50b.12658c",
417 "id": "67b4d64c.e399f8",
419 "name": "block : atomic",
420 "xml": "<block atomic=\"true\">",
423 "x": 137.14286041259766,
424 "y": 805.9523487091064,
425 "z": "660eb50b.12658c",
441 "id": "78769168.05467",
442 "type": "returnFailure",
443 "name": "return failure",
444 "xml": "<return status='failure'>\n<parameter name='error-code' value='500' />\n<parameter name='error-message' value=\"`'No capacity for source interface '\n + $service-data.vnfc-instance-groups.vnfc-instance-group[$tmp.src-vnfc-idx].vnfc-objects.vnfc-object[$vnfc-so-idx].vnics.vnic[$vnic-s-idx].vnic-port-id`\" />\n",
446 "x": 1482.8097114562988,
447 "y": 801.4523735046387,
448 "z": "660eb50b.12658c",
452 "id": "3812658a.229d9a",
453 "type": "returnSuccess",
454 "name": "return success",
455 "xml": "<return status='success'>\n<parameter name='' value='' />\n",
457 "x": 373.1429748535156,
458 "y": 1290.6190147399902,
459 "z": "660eb50b.12658c",
463 "id": "60f2dbb9.ae8cd4",
466 "xml": "<outcome value='failure'>\n",
469 "x": 712.142822265625,
470 "y": 289.2857131958008,
471 "z": "660eb50b.12658c",
479 "id": "639eed7b.da1bd4",
482 "xml": "<outcome value='not-found'>\n",
485 "x": 720.7142581939697,
486 "y": 332.57142639160156,
487 "z": "660eb50b.12658c",
495 "id": "d45ff25c.78723",
496 "type": "get-resource",
497 "name": "get-resource VNICS_CAPACITY_GROUP",
498 "xml": "<get-resource plugin='org.onap.ccsdk.sli.adaptors.resource.sql.SqlResource' resource='SQL'\n key='select vnics_group_id\n from VNICS_CAPACITY_GROUP\n where service_instance_id = $tmp.service-instance-id\n and nfc_naming_code = $tmp.dest-nfc-naming-code\n and vnf_id = $tmp.dest-vnf-id'\n pfx='db'>\n",
501 "x": 459.21429443359375,
502 "y": 315.0477695465088,
503 "z": "660eb50b.12658c",
512 "id": "8cddc4c2.57a498",
513 "type": "returnFailure",
514 "name": "return failure",
515 "xml": "<return status='failure'>\n<parameter name='error-code' value='500' />\n<parameter name='error-message' value=\"Failure reading VNICS_CAPACITY_GROUP table\" />\n",
517 "x": 880.4761505126953,
518 "y": 287.61901664733887,
519 "z": "660eb50b.12658c",
523 "id": "608970aa.edcc1",
525 "name": "save VNICS_CAPACITY_GROUP",
526 "xml": "<save plugin=\"org.onap.ccsdk.sli.adaptors.resource.sql.SqlResource\" resource=\"SQL\"\n\tkey=\"insert into VNICS_CAPACITY_GROUP \n\t (service_instance_id, nfc_naming_code, vnf_id)\n\t VALUES ( $tmp.service-instance-id , $tmp.dest-nfc-naming-code , $tmp.dest-vnf-id )\"\n\tpfx='pfx' >\n",
529 "x": 938.8094787597656,
530 "y": 330.95237255096436,
531 "z": "660eb50b.12658c",
540 "id": "94fe9e7b.6e187",
543 "xml": "<outcome value='failure'>\n",
546 "x": 1170.4759979248047,
547 "y": 309.28586769104004,
548 "z": "660eb50b.12658c",
556 "id": "7f8c369a.933558",
558 "name": "printContext",
559 "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='printContext' >\n<parameter name='filename' value='/var/tmp/bgb-vnics.log' />\n",
562 "x": 364.4762268066406,
563 "y": 359.2857437133789,
564 "z": "660eb50b.12658c",
570 "id": "dae1ca1a.80ef58",
571 "type": "returnFailure",
572 "name": "return failure",
573 "xml": "<return status='failure'>\n<parameter name='error-code' value='500' />\n<parameter name='error-message' value=\"Failure to insert record into VNICS_CAPACITY_GROUP table\" />\n",
575 "x": 1322.1427421569824,
576 "y": 308.61905574798584,
577 "z": "660eb50b.12658c",
581 "id": "a7412aee.970778",
584 "xml": "<outcome value='success'>\n",
587 "x": 1173.8094940185547,
588 "y": 355.95239448547363,
589 "z": "660eb50b.12658c",
597 "id": "746962c4.c67a7c",
598 "type": "get-resource",
599 "name": "get-resource VNICS_CAPACITY_GROUP",
600 "xml": "<get-resource plugin='org.onap.ccsdk.sli.adaptors.resource.sql.SqlResource' resource='SQL'\n key='select vnics_group_id\n from VNICS_CAPACITY_GROUP\n where service_instance_id = $tmp.service-instance-id\n and nfc_naming_code = $tmp.dest-nfc-naming-code\n and vnf_id = $tmp.dest-vnf-id'\n pfx='db'>\n",
603 "x": 1413.8095397949219,
604 "y": 354.2856864929199,
605 "z": "660eb50b.12658c",
613 "id": "5f3550c3.13f43",
616 "xml": "<outcome value='failure'>\n",
619 "x": 1655.4761009216309,
620 "y": 352.6190195083618,
621 "z": "660eb50b.12658c",
629 "id": "c948a7c1.8a3228",
630 "type": "returnFailure",
631 "name": "return failure",
632 "xml": "<return status='failure'>\n<parameter name='error-code' value='500' />\n<parameter name='error-message' value=\"Failure reading VNICS_CAPACITY_GROUP table\" />\n",
634 "x": 1823.8094291687012,
635 "y": 350.9523229598999,
636 "z": "660eb50b.12658c",
640 "id": "aba11878.3d0528",
642 "name": "for each dest vnfc-object",
643 "xml": "<for silentFailure='true' index='vnfc-do-idx' start='0' end='`$service-data.vnfc-instance-groups.vnfc-instance-group[$tmp.dest-vnfc-idx].vnfc-objects.vnfc-object_length`' >\n",
646 "x": 407.14293670654297,
647 "y": 520.6189937591553,
648 "z": "660eb50b.12658c",
656 "id": "ba61fc56.2bff3",
658 "name": "for each dest vnic",
659 "xml": "<for silentFailure='true' index='vnic-d-idx' start='0' end='`$service-data.vnfc-instance-groups.vnfc-instance-group[$tmp.dest-vnfc-idx].vnfc-objects.vnfc-object[$vnfc-do-idx].vnics.vnic_length`' >\n",
662 "x": 637.1430130004883,
663 "y": 520.6189823150635,
664 "z": "660eb50b.12658c",
672 "id": "3429f2b4.06a52e",
673 "type": "get-resource",
674 "name": "get-resource VNICS_CAPACITY",
675 "xml": "<get-resource plugin='org.onap.ccsdk.sli.adaptors.resource.sql.SqlResource' resource='SQL'\n key='select available_capacity, vnic_capacity\n from VNICS_CAPACITY\n where vnics_group_id = $db.vnics-group-id\n and vnic_port_name = $service-data.vnfc-instance-groups.vnfc-instance-group[$tmp.dest-vnfc-idx].vnfc-objects.vnfc-object[$vnfc-do-idx].vnics.vnic[$vnic-d-idx].vnic-port-name'\n pfx='db.vnics-capacity'>\n",
678 "x": 883.8098297119141,
679 "y": 520.6189737319946,
680 "z": "660eb50b.12658c",
690 "id": "363cb986.7e0746",
693 "xml": "<outcome value='failure'>\n",
696 "x": 1107.1429595947266,
697 "y": 470.61901473999023,
698 "z": "660eb50b.12658c",
706 "id": "ce11a3a3.c1403",
707 "type": "returnFailure",
708 "name": "return failure",
709 "xml": "<return status='failure'>\n<parameter name='error-code' value='500' />\n<parameter name='error-message' value=\"Failure reading VNICS_CAPACITY_GROUP table\" />\n",
711 "x": 1275.4762878417969,
712 "y": 468.9523181915283,
713 "z": "660eb50b.12658c",
717 "id": "fda3755.4ca4688",
720 "xml": "<outcome value='not-found'>\n",
723 "x": 1115.4762954711914,
724 "y": 523.9523372650146,
725 "z": "660eb50b.12658c",
733 "id": "41079a08.942214",
735 "name": "save VNICS_CAPACITY",
736 "xml": "<save plugin=\"org.onap.ccsdk.sli.adaptors.resource.sql.SqlResource\" resource=\"SQL\"\n\tkey=\"insert into VNICS_CAPACITY \n\t (vnics_group_id, vnic_port_name, available_capacity, vnic_capacity)\n\t VALUES ( $db.vnics-group-id ,\n\t $service-data.vnfc-instance-groups.vnfc-instance-group[$tmp.dest-vnfc-idx].vnfc-objects.vnfc-object[$vnfc-do-idx].vnics.vnic[$vnic-d-idx].vnic-port-name ,\n\t $service-data.vnfc-instance-groups.vnfc-instance-group[$tmp.dest-vnfc-idx].vnfc-objects.vnfc-object[$vnfc-do-idx].vnics.vnic[$vnic-d-idx].capacity.vnic-capacity ,\n\t $service-data.vnfc-instance-groups.vnfc-instance-group[$tmp.dest-vnfc-idx].vnfc-objects.vnfc-object[$vnfc-do-idx].vnics.vnic[$vnic-d-idx].capacity.vnic-capacity\n\t )\"\n\tpfx='pfx' >\n",
739 "x": 1312.1430053710938,
740 "y": 523.9523277282715,
741 "z": "660eb50b.12658c",
749 "id": "6a32b892.8f68f8",
752 "xml": "<outcome value='failure'>\n",
755 "x": 1510.476276397705,
756 "y": 522.2856945991516,
757 "z": "660eb50b.12658c",
765 "id": "a8fbb0ff.039e6",
766 "type": "returnFailure",
767 "name": "return failure",
768 "xml": "<return status='failure'>\n<parameter name='error-code' value='500' />\n<parameter name='error-message' value=\"Failure to insert record into VNICS_CAPACITY table\" />\n",
770 "x": 1662.1430206298828,
771 "y": 521.6188826560974,
772 "z": "660eb50b.12658c",
776 "id": "6169bfbf.6fa9c",
779 "xml": "<outcome value='success'>\n",
782 "x": 1115.476417541504,
783 "y": 580.6189975738525,
784 "z": "660eb50b.12658c",
792 "id": "91c7d1c5.6a47a",
794 "name": "set vnic-capacity",
795 "xml": "<set>\n<parameter name='service-data.vnfc-instance-groups.vnfc-instance-group[$tmp.dest-vnfc-idx].vnfc-objects.vnfc-object[$vnfc-do-idx].vnics.vnic[$vnic-d-idx].capacity.vnic-capacity'\n value='`$db.vnics-capacity.available-capacity`' />\n",
797 "x": 1285.4762573242188,
798 "y": 580.6189765930176,
799 "z": "660eb50b.12658c",
803 "id": "7f4adf17.47b08",
805 "name": "set source-to-dest-map_length",
806 "xml": "<set>\n<parameter name='pm.configuration-data.port-mirror-configuration-topology.port-mirror-configuration-assignments.source-to-dest-maps.source-to-dest-map_length'\n value='`$map-idx`' />\n",
808 "x": 426.47618865966797,
809 "y": 1052.2857131958008,
810 "z": "660eb50b.12658c",
814 "id": "2648638f.48dc3c",
815 "type": "switchNode",
816 "name": "is this is most remaining capacity so far?",
817 "xml": "<switch test='`$tmp.rem-cap > $tmp.save-rem-cap`'>\n",
820 "x": 2254.47664642334,
821 "y": 880.6190948486328,
822 "z": "660eb50b.12658c",
830 "id": "813e25b7.580f58",
831 "type": "outcomeTrue",
833 "xml": "<outcome value='true'>\n",
836 "x": 2501.1432189941406,
837 "y": 878.9523334503174,
838 "z": "660eb50b.12658c",
846 "id": "56ba6414.9f4ccc",
848 "name": "set found-capacity and save vnic",
849 "xml": "<set>\n<parameter name='tmp.found-capacity' value='Y' />\n<parameter name='tmp.save-vnfc-do-idx' value='`$vnfc-do-idx`' />\n<parameter name='tmp.save-vnic-d-idx' value='`$vnic-d-idx`' />\n<parameter name='tmp.save-rem-cap' value='`$tmp.rem-cap`' />\n",
851 "x": 2757.8097610473633,
852 "y": 878.9523677825928,
853 "z": "660eb50b.12658c",
857 "id": "e3e68421.71a8b8",
859 "name": "for each dest vnfc-object",
860 "xml": "<for silentFailure='true' index='vnfc-do-idx' start='0' end='`$service-data.vnfc-instance-groups.vnfc-instance-group[$tmp.dest-vnfc-idx].vnfc-objects.vnfc-object_length`' >\n",
863 "x": 409.80950927734375,
864 "y": 1112.2857131958008,
865 "z": "660eb50b.12658c",
873 "id": "e42814ea.b0ea28",
875 "name": "for each dest vnic",
876 "xml": "<for silentFailure='true' index='vnic-d-idx' start='0' end='`$service-data.vnfc-instance-groups.vnfc-instance-group[$tmp.dest-vnfc-idx].vnfc-objects.vnfc-object[$vnfc-do-idx].vnics.vnic_length`' >\n",
879 "x": 639.8096008300781,
880 "y": 1112.285701751709,
881 "z": "660eb50b.12658c",
889 "id": "e98ed9b2.d66598",
891 "name": "update VNICS_CAPACITY",
892 "xml": "<update plugin=\"org.onap.ccsdk.sli.adaptors.resource.sql.SqlResource\" resource=\"SQL\"\nkey=\"update VNICS_CAPACITY\n set available_capacity = $tmp.avail-capacity\n where vnics_group_id = $db.vnics-group-id\n and vnic_port_name = $service-data.vnfc-instance-groups.vnfc-instance-group[$tmp.dest-vnfc-idx].vnfc-objects.vnfc-object[$vnfc-do-idx].vnics.vnic[$vnic-d-idx].vnic-port-name\n\" >",
895 "x": 1063.142837524414,
896 "y": 1163.9522199630737,
897 "z": "660eb50b.12658c",
905 "id": "e37dddbd.93743",
908 "xml": "<outcome value='failure'>\n",
911 "x": 1279.809413909912,
912 "y": 1162.2856788635254,
913 "z": "660eb50b.12658c",
921 "id": "9a4f7649.32e9d8",
922 "type": "returnFailure",
923 "name": "return failure",
924 "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=\"Failure updating VNICS_CAPACITY table\" />\n",
926 "x": 1448.1427536010742,
927 "y": 1160.4287452697754,
928 "z": "660eb50b.12658c",
932 "id": "999a9dbf.6d329",
934 "name": "block : atomic",
935 "xml": "<block atomic=\"true\">",
938 "x": 826.4761505126953,
939 "y": 1110.6189651489258,
940 "z": "660eb50b.12658c",
950 "id": "59c4c4cf.8c1e7c",
951 "type": "get-resource",
952 "name": "get-resource VNICS_CAPACITY",
953 "xml": "<get-resource plugin='org.onap.ccsdk.sli.adaptors.resource.sql.SqlResource' resource='SQL'\n key='select available_capacity\n from VNICS_CAPACITY\n where vnics_group_id = $db.vnics-group-id\n and vnic_port_name = $service-data.vnfc-instance-groups.vnfc-instance-group[$tmp.dest-vnfc-idx].vnfc-objects.vnfc-object[$vnfc-do-idx].vnics.vnic[$vnic-d-idx].vnic-port-name'\n pfx='db.vnics-capacity'>\n",
956 "x": 1081.4761085510254,
957 "y": 1060.618984222412,
958 "z": "660eb50b.12658c",
966 "id": "61833831.c63cb8",
968 "name": "set new available capacity",
969 "xml": "<set>\n<parameter name='tmp.original-avail-capacity' value='`$db.vnics-capacity.available-capacity`' />\n<parameter name='tmp.original-used-capacity' value='`$service-data.vnfc-instance-groups.vnfc-instance-group[$tmp.dest-vnfc-idx].vnfc-objects.vnfc-object[$vnfc-do-idx].vnics.vnic[$vnic-d-idx].capacity.used-capacity`' />\n<parameter name='tmp.avail-capacity' value='`$db.vnics-capacity.available-capacity - $service-data.vnfc-instance-groups.vnfc-instance-group[$tmp.dest-vnfc-idx].vnfc-objects.vnfc-object[$vnfc-do-idx].vnics.vnic[$vnic-d-idx].capacity.used-capacity`' />\n",
971 "x": 1061.4761695861816,
972 "y": 1112.2856330871582,
973 "z": "660eb50b.12658c",
977 "id": "bcb1f86a.023148",
980 "xml": "<outcome value='failure'>\n",
983 "x": 1304.8094635009766,
984 "y": 1058.9523391723633,
985 "z": "660eb50b.12658c",
993 "id": "a87c2664.36e398",
994 "type": "returnFailure",
995 "name": "return failure",
996 "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=\"Failure reading VNICS_CAPACITY table\" />\n",
998 "x": 1473.1428031921387,
999 "y": 1057.0954055786133,
1000 "z": "660eb50b.12658c",
1004 "id": "a97afc7d.c209b",
1006 "name": "save VNICS_CONFIGURATION_ID",
1007 "xml": "<save plugin=\"org.onap.ccsdk.sli.adaptors.resource.sql.SqlResource\" resource=\"SQL\"\n\tkey=\"insert into VNICS_CONFIGURATION_ID\n\t(configuration_id, vnics_group_id)\n\tvalues ( $tmp.configuration-id , $db.vnics-group-id )\"\n\tpfx='pfx' >\n",
1010 "x": 439.8095245361328,
1011 "y": 1223.9523391723633,
1012 "z": "660eb50b.12658c",
1018 "id": "3600f5af.f19cca",
1020 "name": "set vnics-group-id",
1021 "xml": "<set>\n<parameter name='pm.configuration-data.port-mirror-configuration-topology.port-mirror-configuration-assignments.vnics-group-id'\n value='`$db.vnics-group-id`' />\n",
1023 "x": 383.4761962890625,
1024 "y": 424.2857131958008,
1025 "z": "660eb50b.12658c",