3 "id": "a15c86ae.e9ffa8",
8 "y": 66.99999904632568,
17 "id": "9f7352fa.e9442",
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": 223.24198150634766,
26 "y": 145.70239448547363,
27 "z": "85f9bda0.40ea6",
35 "id": "bec67786.9a0fd8",
37 "name": "contrail-route-topology-operation-assign",
38 "xml": "<method rpc='contrail-route-topology-operation-assign' mode='sync'>\n",
41 "x": 224.82543182373047,
42 "y": 241.1904354095459,
43 "z": "85f9bda0.40ea6",
51 "id": "106ac22b.f19c5e",
53 "name": "block : atomic",
54 "xml": "<block atomic=\"true\">",
58 "x": 251.4800910949707,
59 "y": 354.5237832069397,
60 "z": "85f9bda0.40ea6",
108 "id": "89e36959.f57ca8",
109 "type": "returnSuccess",
110 "name": "return success",
111 "xml": "<return status='success'>\n<parameter name=\"ack-final-indicator\" value=\"Y\" />\n<parameter name=\"error-code\" value=\"200\" />\n<parameter name=\"error-message\" value=\"`$error-message`\" />\n",
113 "x": 486.0041389465332,
114 "y": 3206.2144527435303,
115 "z": "85f9bda0.40ea6",
119 "id": "1b476e9a.fe2761",
121 "name": "set output to api handler",
122 "xml": "<set>\n<parameter name='allotted-resource-id' value='`$tmp.ar.allotted-resource-id`' />\n<parameter name='contrail-route-object-path' value=\"`$tmp.ar.self-link`\"/>\n<parameter name='service-object-path' value=\"`'restconf/config/GENERIC-RESOURCE-API:services/service/'\n + $contrail-route-topology-operation-input.service-information.service-instance-id\n + '/service-data/service-topology/'`\"/>\n \n",
124 "x": 514.7580642700195,
125 "y": 3178.0512561798096,
126 "z": "85f9bda0.40ea6",
130 "id": "80199fb5.28a97",
132 "name": "set allotted-resource-oper-status",
133 "xml": "<set>\n<parameter name='ar.allotted-resource-data.allotted-resource-oper-status.order-status' value='PendingCreate' />\n<parameter name='ar.allotted-resource-data.allotted-resource-oper-status.last-action' value='`$contrail-route-topology-operation-input.request-information.request-action`' />\n<parameter name='ar.allotted-resource-data.allotted-resource-oper-status.last-rpc-action' value='`$contrail-route-topology-operation-input.sdnc-request-header.svc-action`' />\n<parameter name='ar.allotted-resource-data.allotted-resource-oper-status.last-svc-request-id' value='`$contrail-route-topology-operation-input.sdnc-request-header.svc-request-id`' />\n<parameter name='ar.allotted-resource-data.allotted-resource-oper-status.create-timestamp' value='`$tmp.current-time`' />\n",
135 "x": 551.7581520080566,
136 "y": 2355.05126953125,
137 "z": "85f9bda0.40ea6",
141 "id": "c1ac5f3e.e6966",
143 "name": "set tmp.ar.self-link",
144 "xml": "<set>\n<parameter name='tmp.ar.self-link' value=\"`'restconf/config/GENERIC-RESOURCE-API:contrail-route-allotted-resources/contrail-route-allotted-resource/'\n + $tmp.ar.allotted-resource-id\n + '/allotted-resource-data/contrail-route-topology/'` \" />\n\n",
146 "x": 523.7420768737793,
147 "y": 304.3333349227905,
148 "z": "85f9bda0.40ea6",
152 "id": "8e0d8361.64708",
154 "name": "set tmp.ar.allotted-resource-id,etc",
155 "xml": "<set>\n<parameter name='tmp.ar.allotted-resource-id' value='`$contrail-route-topology-operation-input.allotted-resource-information.allotted-resource-id`' />\n<parameter name='tmp.ar.parent-service-instance-id' value='`$contrail-route-topology-operation-input.allotted-resource-information.parent-service-instance-id`' />\n<parameter name='tmp.ar.contrail-applied-service-instance-id' value='`$contrail-route-topology-operation-input.contrail-route-request-input.contrail-applied-service-info.service-instance-id`' />\n<parameter name='tmp.ar.allotted-resource-type' value='`$contrail-route-topology-operation-input.allotted-resource-information.allotted-resource-type`' />\n\n",
157 "x": 571.0013389587402,
158 "y": 270.59260082244873,
159 "z": "85f9bda0.40ea6",
163 "id": "47d7c2d7.6d83ec",
165 "name": "execute Properties - pull properties file",
166 "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.prop.PropertiesNode' method='readProperties' >\n <parameter name='fileName' value='%SDNC_CONFIG_DIR%/generic-resource-api-dg.properties' />\n <parameter name='contextPrefix' value='prop' />\n",
169 "x": 585.9974899291992,
170 "y": 336.23158836364746,
171 "z": "85f9bda0.40ea6",
177 "id": "2fa400f8.8842c",
179 "name": "execute RestApiCallNode - Get AR by id",
180 "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n <parameter name='restapiUrl' value='`$prop.controller.url + $tmp.ar-url`' />\n <parameter name='restapiUser' value='`$prop.controller.user`' />\n <parameter name='restapiPassword' value='`$prop.controller.pwd`' />\n <parameter name='format' value='json' />\n <parameter name='httpMethod' value='GET' />\n <parameter name=\"responsePrefix\" value=\"mdsal-ar\" />\n\n",
183 "x": 586.5228080749512,
184 "y": 716.4595785140991,
185 "z": "85f9bda0.40ea6",
194 "id": "e05ef5d3.6901c8",
196 "name": "generate allotted-resource url",
197 "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$prop.restapi.cr-allottedresource`\"/>\n <parameter name=\"outputPath\" value=\"tmp.ar-url\"/>\n <parameter name=\"target\" value=\"{allotted-resource-id}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.ar.allotted-resource-id`\"/>\n",
200 "x": 558.0688667297363,
201 "y": 400.01723861694336,
202 "z": "85f9bda0.40ea6",
208 "id": "4f71533e.51503c",
211 "xml": "<outcome value='success'>\n",
214 "x": 833.8188972473145,
215 "y": 711.2673678398132,
216 "z": "85f9bda0.40ea6",
224 "id": "98d8146e.2c8368",
226 "name": "execute RestApiCallNode - PUT AR by id",
227 "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n <parameter name='templateFileName' value=\"`$prop.restapi.templateDir + '/' + $prop.restapi.cr.templatefile`\" />\n <parameter name='restapiUrl' value='`$prop.controller.url + $tmp.ar-url`' />\n <parameter name='restapiUser' value='`$prop.controller.user`' />\n <parameter name='restapiPassword' value='`$prop.controller.pwd`' />\n <parameter name='format' value='json' />\n <parameter name='httpMethod' value='PUT' />\n <parameter name=\"responsePrefix\" value=\"mdsal-ar\" />\n\n",
230 "x": 579.962028503418,
231 "y": 2973.291174888611,
232 "z": "85f9bda0.40ea6",
241 "id": "b6b6c325.b9854",
244 "xml": "<outcome value='not-found'>\n",
247 "x": 846.9367637634277,
248 "y": 3002.956132888794,
249 "z": "85f9bda0.40ea6",
257 "id": "52bb813.f59bc8",
260 "xml": "<outcome value='failure'>\n",
263 "x": 841.2701530456543,
264 "y": 2971.4559688568115,
265 "z": "85f9bda0.40ea6",
273 "id": "676e8a31.aad434",
274 "type": "returnFailure",
275 "name": "return failure",
276 "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=\"Error updating md-sal for contrail-route-allotted-resource. Parent provided resource rolled back\" />\n",
278 "x": 1183.3534851074219,
279 "y": 3017.539581298828,
280 "z": "85f9bda0.40ea6",
284 "id": "15a9be7b.067652",
286 "name": "block: atomic",
287 "xml": "<block atomic=\"true\">\n",
291 "x": 1002.8189010620117,
292 "y": 709.7672686576843,
293 "z": "85f9bda0.40ea6",
301 "id": "e0174b9e.a92928",
302 "type": "switchNode",
303 "name": "switch cr length",
304 "xml": "<switch test='`$mdsal-ar.contrail-route-allotted-resource_length`'>\n",
307 "x": 1213.6761436462402,
308 "y": 709.3863978385925,
309 "z": "85f9bda0.40ea6",
317 "id": "80cc2f81.87cf5",
320 "xml": "<outcome value='1'>\n",
323 "x": 1403.009449005127,
324 "y": 709.3863558769226,
325 "z": "85f9bda0.40ea6",
333 "id": "200f56f8.1a568a",
335 "name": "Save consumed-allotted-resources to mdsal",
338 "x": 586.2475738525391,
339 "y": 2164.386384487152,
340 "z": "85f9bda0.40ea6",
344 "id": "71cd75e1.a2e0ac",
346 "name": "GET contrail-route-allotted-resource from mdsal",
349 "x": 605.8187942504883,
350 "y": 683.7672171592712,
351 "z": "85f9bda0.40ea6",
355 "id": "63a20e20.4ef0d",
357 "name": "set ar-identifiers",
358 "xml": "<set>\n<parameter name='ar-identifiers.consuming-service-instance-id' value=\"`$contrail-route-topology-operation-input.service-information.service-instance-id` \" />\n<parameter name='ar-identifiers.parent-service-instance-id' value=\"`$contrail-route-topology-operation-input.allotted-resource-information.parent-service-instance-id` \" />\n<parameter name='ar-identifiers.allotted-resource-type' value=\"`$contrail-route-topology-operation-input.allotted-resource-information.allotted-resource-type` \" />\n<parameter name='ar-identifiers.allotted-resource-id' value=\"`$tmp.ar.allotted-resource-id` \" />\n\n",
360 "x": 512.0570220947266,
361 "y": 825.2912397384644,
362 "z": "85f9bda0.40ea6",
366 "id": "7f798563.86347c",
368 "name": "Set allotted-resource-identifiers",
371 "x": 552.6760330200195,
372 "y": 795.6720323562622,
373 "z": "85f9bda0.40ea6",
377 "id": "42e59bba.390174",
379 "name": "set identifiers in overal structure",
380 "xml": "<set>\n<parameter name='ar.allotted-resource-data.contrail-route-topology.allotted-resource-identifiers.' \nvalue=\"`$ar-identifiers.`\" />\n\n\n",
382 "x": 572.0568923950195,
383 "y": 1341.9103197157383,
384 "z": "85f9bda0.40ea6",
388 "id": "27c0b1cb.cbaf7e",
390 "name": "set ecomp model information from input",
391 "xml": "<set>\n<parameter name='ar.allotted-resource-data.contrail-route-topology.onap-model-information.' \nvalue=\"`$contrail-route-topology-operation-input.allotted-resource-information.onap-model-information.`\" />\n\n\n",
393 "x": 573.7235946655273,
394 "y": 909.243691444397,
395 "z": "85f9bda0.40ea6",
399 "id": "afb14d8.fa7e8b",
400 "type": "switchNode",
401 "name": "switch model-invariant-uuid is null",
402 "xml": "<switch test='$contrail-route-topology-operation-input.allotted-resource-information.onap-model-information.model-invariant-uuid'>\n",
405 "x": 559.9140548706055,
406 "y": 944.9578285217285,
407 "z": "85f9bda0.40ea6",
415 "id": "50ecfa4d.756b34",
417 "name": "outcome null",
418 "xml": "<outcome value=''>\n",
421 "x": 787.0569343566895,
422 "y": 946.3863458633423,
423 "z": "85f9bda0.40ea6",
431 "id": "57fddba0.eaaf14",
433 "name": "set model-invariant-uuid",
434 "xml": "<set>\n<parameter name='ar.allotted-resource-data.contrail-route-topology.onap-model-information.model-invariant-uuid' \nvalue=\"`$ar-model.invariant-uuid`\" />\n\n\n",
436 "x": 988.4855079650879,
437 "y": 945.8148984909058,
438 "z": "85f9bda0.40ea6",
442 "id": "164735e2.5f4fea",
443 "type": "switchNode",
444 "name": "switch model-uuid is null",
445 "xml": "<switch test='$contrail-route-topology-operation-input.allotted-resource-information.onap-model-information.model-uuid'>\n",
448 "x": 531.3426513671875,
449 "y": 979.2435293197632,
450 "z": "85f9bda0.40ea6",
458 "id": "6a69d11e.04137",
460 "name": "outcome null",
461 "xml": "<outcome value=''>\n",
464 "x": 732.7712173461914,
465 "y": 979.8149509429932,
466 "z": "85f9bda0.40ea6",
474 "id": "a902eea0.7b187",
476 "name": "set model-uuid",
477 "xml": "<set>\n<parameter name='sar.allotted-resource-data.contrail-route-topology.onap-model-information.model-uuid' \nvalue=\"`$ar-model.uuid`\" />\n\n\n",
479 "x": 925.6283760070801,
480 "y": 979.8148727416992,
481 "z": "85f9bda0.40ea6",
485 "id": "b8ee290b.0a5948",
486 "type": "switchNode",
487 "name": "switch model-version is null",
488 "xml": "<switch test='$contrail-route-topology-operation-input.allotted-resource-information.onap-model-information.model-version'>\n",
491 "x": 539.9140548706055,
492 "y": 1012.1006565093994,
493 "z": "85f9bda0.40ea6",
501 "id": "d20dbd99.c611a",
503 "name": "outcome null",
504 "xml": "<outcome value=''>\n",
507 "x": 789.9140357971191,
508 "y": 1012.1006412506104,
509 "z": "85f9bda0.40ea6",
517 "id": "c9fcca5f.606248",
519 "name": "set model-version",
520 "xml": "<set>\n<parameter name='ar.allotted-resource-data.contrail-route-topology.onap-model-information.model-version' \nvalue=\"`$ar-model.version`\" />\n\n\n",
522 "x": 982.771183013916,
523 "y": 1012.1006307601929,
524 "z": "85f9bda0.40ea6",
528 "id": "ab194250.a66de",
529 "type": "switchNode",
530 "name": "switch ar-model.ecomp-generated-naming",
531 "xml": "<switch test='`$ar-model.ecomp-generated-naming`'>\n",
534 "x": 600.7236022949219,
535 "y": 1258.767216682434,
536 "z": "85f9bda0.40ea6",
545 "id": "8fb0ef65.8d523",
548 "xml": "<outcome value='Y'>\n",
551 "x": 877.7236404418945,
552 "y": 1254.8624348640442,
553 "z": "85f9bda0.40ea6",
561 "id": "6c96ac26.e9a684",
563 "name": "block : atomic",
564 "xml": "<block atomic=\"true\">\n",
568 "x": 1046.4736824035645,
569 "y": 1255.3624234199524,
570 "z": "85f9bda0.40ea6",
578 "id": "2eb9cf24.96b3d",
581 "xml": "<outcome value='Other'>\n",
584 "x": 868.945930480957,
585 "y": 1287.8624348640442,
586 "z": "85f9bda0.40ea6",
594 "id": "9153ab18.136e08",
595 "type": "returnFailure",
596 "name": "return failure",
597 "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=\"Error in allotted-resource-model data. Ecomp-generated-naming should be true\" />\n\n",
599 "x": 1046.945930480957,
600 "y": 1286.8624348640442,
601 "z": "85f9bda0.40ea6",
605 "id": "270e2a77.e35dc6",
606 "type": "switchNode",
607 "name": "switch ar-model.ecomp-generated-naming",
608 "xml": "<switch test='`$ar-model.naming-policy`'>\n",
611 "x": 1347.7235870361328,
612 "y": 1255.4338970184326,
613 "z": "85f9bda0.40ea6",
622 "id": "d120c979.8da8c8",
624 "name": "outcome oam_network_policy",
625 "xml": "<outcome value='oam_network_policy'>\n",
628 "x": 1718.5814208984375,
629 "y": 1247.0119342803955,
630 "z": "85f9bda0.40ea6",
638 "id": "9b914bce.63aad8",
641 "xml": "<outcome value='Other'>\n",
644 "x": 1643.342887878418,
645 "y": 1279.5291390419006,
646 "z": "85f9bda0.40ea6",
654 "id": "b7235bb6.3a29f8",
656 "name": "set ar_name",
657 "xml": "<set>\n<parameter name='tmp.ar-name' value='$TenantName_$CloudRegionID_$TenantNetworkRole_$LandingNetworkRole_policy_' />\n",
659 "x": 2161.104751586914,
660 "y": 1235.100906342268,
661 "z": "85f9bda0.40ea6",
665 "id": "69b920ab.38aa1",
667 "name": "execute SliStringUtils - replace $TenantName",
668 "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$tmp.ar-name`\"/>\n <parameter name=\"outputPath\" value=\"tmp.ar-name\"/>\n <parameter name=\"target\" value=\"$TenantName\"/>\n <parameter name=\"replacement\" value=\"`$tmp.ar.tenant-name`\"/>\n\n",
671 "x": 2261.248062133789,
672 "y": 1273.6247825324535,
673 "z": "85f9bda0.40ea6",
679 "id": "c7259873.fe9de8",
681 "name": "execute SliStringUtils - replace LandingNetworkRole",
682 "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$tmp.ar-name`\"/>\n <parameter name=\"outputPath\" value=\"tmp.ar-name\"/>\n <parameter name=\"target\" value=\"$LandingNetworkRole\"/>\n <parameter name=\"replacement\" value=\"`$contrail-route-topology-operation-input.contrail-route-request-input.dest-network.network-role`\"/>\n\n",
685 "x": 2269.581314086914,
686 "y": 1377.7676124572754,
687 "z": "85f9bda0.40ea6",
693 "id": "fcaca6b7.d32838",
695 "name": "block: atomic",
696 "xml": "<block atomic='true'>\n",
700 "x": 1948.8666038513184,
701 "y": 1281.0053358078003,
702 "z": "85f9bda0.40ea6",
718 "id": "554b99be.4d79e8",
720 "name": "set identifiers.allotted-resource-name",
721 "xml": "<set>\n<parameter name='ar-identifiers.allotted-resource-name' value='`$tmp.ar-name`' />\n",
723 "x": 2225.771224975586,
724 "y": 1524.386548012495,
725 "z": "85f9bda0.40ea6",
729 "id": "7bbf3a4b.922ac4",
731 "name": "set assignments in overal structure",
732 "xml": "<set>\n<parameter name='ar.allotted-resource-data.contrail-route-topology.contrail-route-assignments.' \nvalue=\"`$ar-assignments.`\" />\n\n\n",
734 "x": 560.1999206542969,
735 "y": 2131.62486076355,
736 "z": "85f9bda0.40ea6",
740 "id": "f152aa61.54aba8",
742 "name": "set ar-assignments",
743 "xml": "<set>\n<parameter name='ar-assignments.source-network.' value=\"`$contrail-route-topology-operation-input.contrail-route-request-input.source-network.` \" />\n<parameter name='ar-assignments.dest-network.' value=\"`$contrail-route-topology-operation-input.contrail-route-request-input.dest-network.` \" />\n<parameter name='ar-assignments.contrail-applied-service.' value=\"`$contrail-route-topology-operation-input.contrail-route-request-input.contrail-applied-service-info.` \" />\n\n\n",
745 "x": 531.533073425293,
746 "y": 1378.3863615095615,
747 "z": "85f9bda0.40ea6",
751 "id": "287b8459.7da69c",
753 "name": "for cidx..service-data.consumed-allotted-resources.consumed-allotted-resource[]",
754 "xml": "<for index='cidx' start='0' end='`$service-data.consumed-allotted-resources.consumed-allotted-resource_length`' >\n",
757 "x": 1465.8194580078125,
758 "y": 2239.2910742759705,
759 "z": "85f9bda0.40ea6",
767 "id": "f4cedf71.423ad",
768 "type": "switchNode",
769 "name": "switch service-data.consumed-allotted-resources_length",
770 "xml": "<switch test='`$service-data.consumed-allotted-resources.consumed-allotted-resource_length`'>\n",
773 "x": 623.8189086914062,
774 "y": 2197.005136013031,
775 "z": "85f9bda0.40ea6",
784 "id": "64cf189.e7ea6e8",
786 "name": "outcome Null",
787 "xml": "<outcome value=''>\n",
790 "x": 945.9617919921875,
791 "y": 2199.862557888031,
792 "z": "85f9bda0.40ea6",
800 "id": "d0e0868c.bcee08",
803 "xml": "<outcome value='Other'>\n",
806 "x": 933.9617958068848,
807 "y": 2242.8625593185425,
808 "z": "85f9bda0.40ea6",
816 "id": "51656950.e29468",
817 "type": "switchNode",
818 "name": "switch allotted-resource-id",
819 "xml": "<switch test=\"`$service-data.consumed-allotted-resources.consumed-allotted-resource[$cidx].allotted-resource-id == $tmp.ar.allotted-resource-id`\">\n\n",
822 "x": 1895.9146881103516,
823 "y": 2241.3508400917053,
824 "z": "85f9bda0.40ea6",
832 "id": "f22e0aec.651d38",
833 "type": "outcomeTrue",
835 "xml": "<outcome value='true'>\n",
838 "x": 2100.724655151367,
839 "y": 2241.8152928352356,
840 "z": "85f9bda0.40ea6",
848 "id": "d57ec577.c56ff8",
850 "name": "block : atomic",
851 "xml": "<block atomic=\"true\">",
854 "x": 1094.0888862609863,
855 "y": 2240.9885358810425,
856 "z": "85f9bda0.40ea6",
865 "id": "716c0762.bdde98",
867 "name": "block : atomic",
868 "xml": "<block atomic=\"true\">",
871 "x": 2272.485607147217,
872 "y": 2241.672521352768,
873 "z": "85f9bda0.40ea6",
882 "id": "12a02d0f.ee3803",
885 "xml": "<set>\n<parameter name='tmp.cidx' value=\"`0`\" />\n<parameter name='service-data.consumed-allotted-resources.consumed-allotted-resource_length' value=\"1\" />\n\n\n",
887 "x": 1104.8187637329102,
888 "y": 2199.576620578766,
889 "z": "85f9bda0.40ea6",
893 "id": "106b68e8.1a4037",
895 "name": "set tmp.cidx and ctx.consumed-ar",
896 "xml": "<set>\n<parameter name='tmp.cidx' value='`$cidx`' />\n<parameter name='ctx.consumed-ar.' value='`$service-data.consumed-allotted-resources.consumed-allotted-resource[$cidx].`' />\n<parameter name='tmp.found-cidx' value='true' />",
898 "x": 2518.342935562134,
899 "y": 2242.2439954280853,
900 "z": "85f9bda0.40ea6",
904 "id": "59b1d791.8e8d88",
906 "name": "set consumed allotted resources",
907 "xml": "<set>\n<parameter name='service-data.consumed-allotted-resources.consumed-allotted-resource[$tmp.cidx].allotted-resource-id' value=\"`$tmp.ar.allotted-resource-id` \" />\n<parameter name='service-data.consumed-allotted-resources.consumed-allotted-resource[$tmp.cidx].allotted-resource-type' value=\"`$contrail-route-topology-operation-input.allotted-resource-information.allotted-resource-type` \" />\n<parameter name='service-data.consumed-allotted-resources.consumed-allotted-resource[$tmp.cidx].allotted-resource-pointer' value=\"`$tmp.ar.self-link` \" />\n<parameter name='service-data.consumed-allotted-resources.consumed-allotted-resource_length' value='`$tmp.cidx + 1`' />\n\n",
909 "x": 547.6762428283691,
910 "y": 2287.5766220092773,
911 "z": "85f9bda0.40ea6",
915 "id": "d3ef150f.6b3e38",
917 "name": "Create urls for restapi",
920 "x": 528.9616737365723,
921 "y": 369.6243658065796,
922 "z": "85f9bda0.40ea6",
926 "id": "6e65e9d5.9f0028",
928 "name": "set ar-assignments",
929 "xml": "<set>\n<parameter name='ar-assignments.fq-name' value=\"`$tmp.fq-name` \" />\n\n\n\n",
931 "x": 515.6761856079102,
932 "y": 2097.196541786194,
933 "z": "85f9bda0.40ea6",
937 "id": "d04be762.e31278",
939 "name": "Add AR to md-sal",
942 "x": 501.2476272583008,
943 "y": 2944.4814081192017,
944 "z": "85f9bda0.40ea6",
948 "id": "ec3a453a.6b4d18",
950 "name": "execute getTime",
951 "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='setTime' >\n <parameter name=\"outputPath\" value=\"tmp.current-time\" />\n\n",
954 "x": 502.24737548828125,
955 "y": 2322.481505393982,
956 "z": "85f9bda0.40ea6",
962 "id": "940b96fe.4bc648",
963 "type": "returnFailure",
964 "name": "return failure",
965 "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=\"Error: Existing contrail route allotted resource\" />\n \n",
967 "x": 1583.33740234375,
968 "y": 707.3334112167358,
969 "z": "85f9bda0.40ea6",
973 "id": "6ff8b1b0.c2e46",
976 "xml": "<outcome value='Other'>\n",
979 "x": 825.6707000732422,
980 "y": 746.3334527015686,
981 "z": "85f9bda0.40ea6",
989 "id": "10cca98f.b56976",
991 "name": "block: atomic",
992 "xml": "<block atomic=\"true\">\n",
996 "x": 1005.6706504821777,
997 "y": 747.0000033378601,
998 "z": "85f9bda0.40ea6",
1004 "id": "94029424.bac068",
1006 "name": "set ar data",
1007 "xml": "<set>\n<parameter name='ar.allotted-resource-id' value=\"`$tmp.ar.allotted-resource-id` \" />\n<parameter name='ar.allotted-resource-status.action' value=\"`$contrail-route-topology-operation-input.request-information.request-action` \" />\n<parameter name='ar.allotted-resource-status.rpc-name' value=\"contrail-route-topology-operation\" />\n<parameter name='ar.allotted-resource-status.rpc-action' value=\"`$contrail-route-topology-operation-input.sdnc-request-header.svc-action` \" />\n<parameter name='ar.allotted-resource-data.allotted-resource-operation-information.request-information.' value=\"`$contrail-route-topology-operation-input.request-information.` \" />\n<parameter name='ar.allotted-resource-data.allotted-resource-operation-information.sdnc-request-header.' value=\"`$contrail-route-topology-operation-input.sdnc-request-header.` \" />\n<parameter name='ar.allotted-resource-data.allotted-resource-operation-information.service-information.' value=\"`$contrail-route-topology-operation-input.service-information.` \" />\n<parameter name='ar.allotted-resource-data.allotted-resource-operation-information.allotted-resource-information.' value=\"`$contrail-route-topology-operation-input.allotted-resource-information.` \" />\n<parameter name='ar.allotted-resource-data.allotted-resource-operation-information.contrail-route-request-input.' value=\"`$contrail-route-topology-operation-input.contrail-route-request-input.` \" />\n",
1009 "x": 497.6706657409668,
1010 "y": 750.6666746139526,
1011 "z": "85f9bda0.40ea6",
1015 "id": "284f958b.7a5dfa",
1017 "name": "execute SliStringUtils - replace $CloudRegionID",
1018 "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$tmp.ar-name`\"/>\n <parameter name=\"outputPath\" value=\"tmp.ar-name\"/>\n <parameter name=\"target\" value=\"$CloudRegionID\"/>\n <parameter name=\"replacement\" value=\"`$tmp.ar.cloud-region-id`\"/>\n\n",
1021 "x": 2270.337173461914,
1022 "y": 1307.6671228408813,
1023 "z": "85f9bda0.40ea6",
1029 "id": "2b71aba8.1693c4",
1031 "name": "execute SliStringUtils - replace $TenantNetworkRole",
1032 "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$tmp.ar-name`\"/>\n <parameter name=\"outputPath\" value=\"tmp.ar-name\"/>\n <parameter name=\"target\" value=\"$TenantNetworkRole\"/>\n <parameter name=\"replacement\" value=\"`$contrail-route-topology-operation-input.contrail-route-request-input.source-network.network-role`\"/>\n\n",
1035 "x": 2279.6703720092773,
1036 "y": 1341.6670265197754,
1037 "z": "85f9bda0.40ea6",
1043 "id": "eef331cb.9aea7",
1045 "name": "call GENERIC-RESOURCE-API:generate-unique-name",
1046 "xml": "<call module='GENERIC-RESOURCE-API' rpc='generate-unique-name' mode='sync' >\n",
1049 "x": 2284.3371658325195,
1050 "y": 1482.3336297273636,
1051 "z": "85f9bda0.40ea6",
1060 "id": "eaf8cb4c.514708",
1063 "xml": "<outcome value='failure'>\n",
1066 "x": 2594.051689147949,
1067 "y": 1485.1907623708248,
1068 "z": "85f9bda0.40ea6",
1076 "id": "9f2060bc.fb7c6",
1079 "xml": "<outcome value='success'>\n",
1082 "x": 2599.3849334716797,
1083 "y": 1516.8574628829956,
1084 "z": "85f9bda0.40ea6",
1092 "id": "a2eac231.37f33",
1094 "name": "set variables for generating unique name",
1095 "xml": "<set>\n<parameter name='generate-unique-name-input.index-table-name' value='CONTRAIL_ROUTE_NAME_INDEX' />\n<parameter name='generate-unique-name-input.index-table-prefix-column' value='contrail_route_name_prefix' />\n<parameter name='generate-unique-name-input.name-table-type' value='CONTRAIL_ROUTE_INSTANCE' />\n<parameter name='generate-unique-name-input.prefix' value=\"`$tmp.ar-name`\" />\n<parameter name='generate-unique-name-input.index-length' value='2' />\n",
1097 "x": 2246.004165649414,
1098 "y": 1412.0003299415112,
1099 "z": "85f9bda0.40ea6",
1103 "id": "6a782334.6926ac",
1105 "name": "set tmp.ar-name to generated name",
1106 "xml": "<set>\n<parameter name='tmp.ar-name' value='`$generate-unique-name-output.generated-name`' />\n",
1108 "x": 2846.575096130371,
1109 "y": 1517.333545833826,
1110 "z": "85f9bda0.40ea6",
1114 "id": "a4726a3d.558568",
1115 "type": "returnFailure",
1116 "name": "return failure",
1117 "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=\"`$generate-unique-name-output.error-message`\" />\n",
1119 "x": 2767.9086112976074,
1120 "y": 1484.619276046753,
1121 "z": "85f9bda0.40ea6",
1125 "id": "d7a09bb1.7dfc58",
1127 "name": "set fq_name",
1128 "xml": "<set>\n<parameter name='tmp.fq-name' value='$defaultDomain.$defaultProject.$sdncNetworkPolicy' />\n",
1130 "x": 515.3371810913086,
1131 "y": 1457.6666278839111,
1132 "z": "85f9bda0.40ea6",
1136 "id": "846017e5.c13a98",
1138 "name": "execute SliStringUtils - replace $defaultDomain",
1139 "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$tmp.fq-name`\"/>\n <parameter name=\"outputPath\" value=\"tmp.fq-name\"/>\n <parameter name=\"target\" value=\"$defaultDomain\"/>\n <parameter name=\"replacement\" value=\"default-domain\"/>\n\n",
1142 "x": 622.6705322265625,
1143 "y": 1487.6666707992554,
1144 "z": "85f9bda0.40ea6",
1150 "id": "329e94ed.128dbc",
1152 "name": "execute SliStringUtils - replace $defaultProject",
1153 "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$tmp.fq-name`\"/>\n <parameter name=\"outputPath\" value=\"tmp.fq-name\"/>\n <parameter name=\"target\" value=\"$defaultProject\"/>\n <parameter name=\"replacement\" value=\"`$tmp.ar.tenant-name`\"/>\n\n",
1156 "x": 622.6705627441406,
1157 "y": 1521.000111579895,
1158 "z": "85f9bda0.40ea6",
1164 "id": "9537b55.6a49048",
1166 "name": "generate fqname",
1169 "x": 524.3372268676758,
1170 "y": 1430.9999341964722,
1171 "z": "85f9bda0.40ea6",
1175 "id": "e081301c.9853a",
1177 "name": "execute SliStringUtils - replace $sdncNetworkPolicy",
1178 "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$tmp.fq-name`\"/>\n <parameter name=\"outputPath\" value=\"tmp.fq-name\"/>\n <parameter name=\"target\" value=\"$sdncNetworkPolicy\"/>\n <parameter name=\"replacement\" value=\"`$tmp.ar-name`\"/>\n\n",
1181 "x": 636.0038681030273,
1182 "y": 1554.3332662582397,
1183 "z": "85f9bda0.40ea6",
1189 "id": "fd2d75b0.6cb4a8",
1191 "name": "Set onap-model-info",
1194 "x": 521.1468734741211,
1195 "y": 875.5714731216431,
1196 "z": "85f9bda0.40ea6",
1200 "id": "e99fb45b.d57118",
1202 "name": "update AAI allotted-resource",
1203 "xml": "<update plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\t\tresource=\"allotted-resource\" \n\t\tkey=\"customer.global-customer-id = $service-data.service-information.global-customer-id AND\n\t\t\tservice-subscription.service-type = $service-data.service-information.subscription-service-type AND\n\t\t\tservice-instance.service-instance-id = $service-data.service-information.service-instance-id AND\n\t\t\tallotted-resource.id = $tmp.ar.allotted-resource-id\"\n pfx='pfx' local-only='false' force='false'>\n\t<parameter name=\"description\" value=\"`$contrail-route-topology-operation-input.allotted-resource-information.allotted-resource-type`\" />\n\t<parameter name=\"selflink\" value=\"`$tmp.ar.self-link`\" />\n\t<parameter name=\"model-invariant-id\" value=\"`$ar-model.invariant-uuid`\" />\n\t<parameter name=\"model-version-id\" value=\"`$ar-model.uuid`\" />\n\t<parameter name=\"operational-status\" value=\"null\" />\n",
1206 "x": 535.8610954284668,
1207 "y": 2453.5715522766113,
1208 "z": "85f9bda0.40ea6",
1217 "id": "8acb12c2.f6f87",
1220 "xml": "<outcome value='failure'>\n",
1223 "x": 791.6230278015137,
1224 "y": 2430.809726715088,
1225 "z": "85f9bda0.40ea6",
1233 "id": "250daf6.713705",
1235 "name": "not-found",
1236 "xml": "<outcome value='not-found'>\n",
1239 "x": 796.9324569702148,
1240 "y": 2466.3811445236206,
1241 "z": "85f9bda0.40ea6",
1249 "id": "d00038bb.baddb8",
1250 "type": "returnFailure",
1251 "name": "return failure",
1252 "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=\"AAI failed\" />\n",
1254 "x": 1006.7182426452637,
1255 "y": 2432.428771018982,
1256 "z": "85f9bda0.40ea6",
1260 "id": "bc1017e5.305348",
1263 "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder\">\n<parameter name=\"logger\" value=\"message-log\"/>\n<parameter name=\"field1\" value=\"__TIMESTAMP__\"/>\n<parameter name=\"field2\" value=\"tmp.ar-name=\"/>\n<parameter name=\"field3\" value=\"`$tmp.ar-name`\"/>\n<parameter name=\"field4\" value=\"generate-unique-name-input.prefix\" />\n<parameter name=\"field5\" value=\"`$generate-unique-name-input.prefix`\" />",
1266 "x": 2137.2039642333984,
1267 "y": 1447.0004267394543,
1268 "z": "85f9bda0.40ea6",
1274 "id": "6d745a26.0c7354",
1275 "type": "switchNode",
1276 "name": "switch source-network.network-id",
1277 "xml": "<switch test='`$contrail-route-topology-operation-input.contrail-route-request-input.source-network.network-id`'>\n\n",
1280 "x": 568.6036758422852,
1281 "y": 1134.3336181640625,
1282 "z": "85f9bda0.40ea6",
1291 "id": "8af0f89a.27c2a8",
1294 "xml": "<outcome value='Other'>",
1297 "x": 919.6039352416992,
1298 "y": 1132.0001306533813,
1299 "z": "85f9bda0.40ea6",
1307 "id": "26bb6725.34ecc8",
1310 "xml": "<outcome value=''>",
1313 "x": 912.2707290649414,
1314 "y": 1093.9999256134033,
1315 "z": "85f9bda0.40ea6",
1323 "id": "b8bb95ad.9a2df8",
1325 "name": "for nidx..service-data.networks.network[]",
1326 "xml": "<for index='nidx' start='0' end='`$service-data.networks.network_length`' >\n",
1329 "x": 2072.7152938842773,
1330 "y": 1130.4445645213127,
1331 "z": "85f9bda0.40ea6",
1339 "id": "ffb63116.26d27",
1340 "type": "switchNode",
1341 "name": "switch service-data.networks.network_length",
1342 "xml": "<switch test='`$service-data.networks.network_length`'>\n",
1345 "x": 1308.429298400879,
1346 "y": 1131.0159149169922,
1347 "z": "85f9bda0.40ea6",
1356 "id": "87f83d80.0aba7",
1358 "name": "outcome Null",
1359 "xml": "<outcome value=''>\n",
1362 "x": 1597.429298400879,
1363 "y": 1133.0159759521484,
1364 "z": "85f9bda0.40ea6",
1372 "id": "94644dd9.fb776",
1375 "xml": "<outcome value='Other'>\n",
1378 "x": 1577.429298400879,
1379 "y": 1168.0159759521484,
1380 "z": "85f9bda0.40ea6",
1388 "id": "5c5cbd2b.585f54",
1389 "type": "switchNode",
1390 "name": "switch networkid found",
1391 "xml": "<switch test=\"`$service-data.networks.network[$nidx].network-id == $contrail-route-topology-operation-input.contrail-route-request-input.source-network.network-id`\">\n\n",
1394 "x": 2517.1439571380615,
1395 "y": 1092.694730758667,
1396 "z": "85f9bda0.40ea6",
1404 "id": "38fa1da0.7d4562",
1406 "name": "block : atomic",
1407 "xml": "<block atomic=\"true\">",
1410 "x": 1778.699317932129,
1411 "y": 1169.570541381836,
1412 "z": "85f9bda0.40ea6",
1422 "id": "50061d1e.aa0f94",
1429 "x": 1050.7151184082031,
1430 "y": 1131.444492340088,
1431 "z": "85f9bda0.40ea6",
1439 "id": "ce51d766.4e8ee8",
1440 "type": "returnFailure",
1441 "name": "return failure",
1442 "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=\"Error assigning contrail route. Source network not found\" />\n",
1444 "x": 1066.4041366577148,
1445 "y": 1093.0001208782196,
1446 "z": "85f9bda0.40ea6",
1450 "id": "a14b778d.061fa8",
1451 "type": "returnFailure",
1452 "name": "return failure",
1453 "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=\"Error assigning contrail route. Source network not found\" />\n",
1455 "x": 1787.2040939331055,
1456 "y": 1131.0001277923584,
1457 "z": "85f9bda0.40ea6",
1461 "id": "8cb14e0e.cb709",
1463 "name": "set tmp vals",
1464 "xml": "<set>\n<parameter name='tmp.ar.tenant-id' value='`$service-data.networks.network[$nidx].network-data.network-topology.tenant`' />\n<parameter name='tmp.ar.cloud-region-id' value='`$service-data.networks.network[$nidx].network-data.network-topology.aic-cloud-region`' />\n<parameter name='source-network-found' value='true' />\n\n",
1466 "x": 3026.2041454315186,
1467 "y": 1072.0001201629639,
1468 "z": "85f9bda0.40ea6",
1472 "id": "c64ef011.65ec9",
1479 "x": 2836.2705879211426,
1480 "y": 1085.0001316070557,
1481 "z": "85f9bda0.40ea6",
1490 "id": "42cfffd1.f91eb",
1491 "type": "outcomeTrue",
1493 "xml": "<outcome value='true'>\n",
1496 "x": 2686.8041133880615,
1497 "y": 1091.0000038146973,
1498 "z": "85f9bda0.40ea6",
1506 "id": "d6eb6250.74fe",
1507 "type": "returnFailure",
1508 "name": "return failure",
1509 "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=\"Error assigning contrail route. Source network not found\" />\n",
1511 "x": 2401.6038246154785,
1512 "y": 1165.0001640319824,
1513 "z": "85f9bda0.40ea6",
1517 "id": "c2621055.c2754",
1519 "name": "execute RestApiCallNode - Get Parent service network",
1520 "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n <parameter name='restapiUrl' value='`$prop.controller.url + $tmp.ar-parentnetwork-url`' />\n <parameter name='restapiUser' value='`$prop.controller.user`' />\n <parameter name='restapiPassword' value='`$prop.controller.pwd`' />\n <parameter name='format' value='json' />\n <parameter name='httpMethod' value='GET' />\n <parameter name=\"responsePrefix\" value=\"parent-net\" />\n\n",
1523 "x": 1516.0039291381836,
1524 "y": 1683.0001859664917,
1525 "z": "85f9bda0.40ea6",
1534 "id": "f806e9f1.0a0b88",
1537 "xml": "<outcome value='success'>\n",
1540 "x": 1825.2999839782715,
1541 "y": 1683.8080487251282,
1542 "z": "85f9bda0.40ea6",
1550 "id": "788c3f86.e2829",
1552 "name": "block: atomic",
1553 "xml": "<block atomic=\"true\">\n",
1557 "x": 1994.2999877929688,
1558 "y": 1682.3079495429993,
1559 "z": "85f9bda0.40ea6",
1567 "id": "a8358589.e721f8",
1568 "type": "switchNode",
1569 "name": "switch network length",
1570 "xml": "<switch test='`$parent-net.networks.network_length`'>\n",
1573 "x": 2205.1572303771973,
1574 "y": 1681.9270787239075,
1575 "z": "85f9bda0.40ea6",
1584 "id": "7e646c9f.895f44",
1586 "name": "outcome 1",
1587 "xml": "<outcome value='1'>\n",
1590 "x": 2414.4905014038086,
1591 "y": 1681.9269938468933,
1592 "z": "85f9bda0.40ea6",
1600 "id": "6e8d9ed9.3a19",
1602 "name": "GET dest network from mdsal",
1605 "x": 1461.299903869629,
1606 "y": 1624.307852268219,
1607 "z": "85f9bda0.40ea6",
1611 "id": "47f327d7.b4ce88",
1614 "xml": "<outcome value='Other'>\n",
1617 "x": 1817.1517868041992,
1618 "y": 1718.8741335868835,
1619 "z": "85f9bda0.40ea6",
1627 "id": "2c4366b0.10342a",
1629 "name": "block: atomic",
1630 "xml": "<block atomic=\"true\">\n",
1634 "x": 1997.1517372131348,
1635 "y": 1719.540684223175,
1636 "z": "85f9bda0.40ea6",
1644 "id": "4888c4bf.132c3c",
1646 "name": "generate parent-network url",
1647 "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$prop.restapi.network`\"/>\n <parameter name=\"outputPath\" value=\"tmp.ar-parentnetwork-url\"/>\n <parameter name=\"target\" value=\"{service-instance-id}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.ar.parent-service-instance-id`\"/>\n",
1650 "x": 552.0040283203125,
1651 "y": 429.0000228881836,
1652 "z": "85f9bda0.40ea6",
1658 "id": "a5487cce.5643f",
1659 "type": "returnFailure",
1660 "name": "return failure",
1661 "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=\"Error: No existing parent netorks\" />\n \n",
1663 "x": 2182.003860473633,
1664 "y": 1721.0001629590988,
1665 "z": "85f9bda0.40ea6",
1669 "id": "b4b35449.efef08",
1672 "xml": "<outcome value='Other'>\n",
1675 "x": 2416.003734588623,
1676 "y": 1717.0000939369202,
1677 "z": "85f9bda0.40ea6",
1685 "id": "32b9b839.5a1048",
1686 "type": "returnFailure",
1687 "name": "return failure",
1688 "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=\"Error: Network id not found. Parent Service should only have one network\" />\n \n",
1690 "x": 2582.3317108154297,
1691 "y": 1716.9472088813782,
1692 "z": "85f9bda0.40ea6",
1696 "id": "7c7775ff.623fcc",
1698 "name": "set dest network id",
1699 "xml": "<set>\n<parameter name='ar-assignments.dest-network.network-id' value=\"`$parent-net.networks.network[0].network-id` \" />\n\n\n\n",
1701 "x": 2592.3535537719727,
1702 "y": 1683.0001463890076,
1703 "z": "85f9bda0.40ea6",
1707 "id": "216c7c53.3511e4",
1709 "name": "Find tenant/cloud region from source network",
1712 "x": 598.0039672851562,
1713 "y": 1099.000024318695,
1714 "z": "85f9bda0.40ea6",
1718 "id": "e2239d78.dc34",
1720 "name": "generate contrail-applied-service url",
1721 "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$prop.restapi.vnf`\"/>\n <parameter name=\"outputPath\" value=\"tmp.ar-contrailappliedsvc-url\"/>\n <parameter name=\"target\" value=\"{service-instance-id}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.ar.contrail-applied-service-instance-id`\"/>\n",
1724 "x": 579.204029083252,
1725 "y": 459.0000247955322,
1726 "z": "85f9bda0.40ea6",
1732 "id": "5ddff342.e4df3c",
1734 "name": "execute RestApiCallNode - Get vnf",
1735 "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n <parameter name='restapiUrl' value='`$prop.controller.url + $tmp.ar-contrailappliedsvc-url`' />\n <parameter name='restapiUser' value='`$prop.controller.user`' />\n <parameter name='restapiPassword' value='`$prop.controller.pwd`' />\n <parameter name='format' value='json' />\n <parameter name='httpMethod' value='GET' />\n <parameter name=\"responsePrefix\" value=\"vnf\" />\n\n",
1738 "x": 565.2039566040039,
1739 "y": 1814.6668605804443,
1740 "z": "85f9bda0.40ea6",
1749 "id": "ef846094.0169c",
1752 "xml": "<outcome value='success'>\n",
1755 "x": 944.5000762939453,
1756 "y": 1807.8080350160599,
1757 "z": "85f9bda0.40ea6",
1765 "id": "2dafc941.bd65e6",
1767 "name": "block: atomic",
1768 "xml": "<block atomic=\"true\">\n",
1772 "x": 1113.5000801086426,
1773 "y": 1806.307935833931,
1774 "z": "85f9bda0.40ea6",
1782 "id": "441a5438.6dce1c",
1783 "type": "switchNode",
1784 "name": "switch vnf length",
1785 "xml": "<switch test='`$vnf.vnfs.vnf_length`'>\n",
1788 "x": 1324.357322692871,
1789 "y": 1805.9270650148392,
1790 "z": "85f9bda0.40ea6",
1799 "id": "55c34485.1a3a6c",
1801 "name": "outcome 1",
1802 "xml": "<outcome value='1'>\n",
1805 "x": 1515.6908149719238,
1806 "y": 1799.9270482063293,
1807 "z": "85f9bda0.40ea6",
1815 "id": "1dfdd5e8.68e2ca",
1817 "name": "GET contrail vnf for contrail applied service from mdsal",
1820 "x": 627.8333969116211,
1821 "y": 1776.6413373947144,
1822 "z": "85f9bda0.40ea6",
1826 "id": "33a1c4a3.2f55bc",
1829 "xml": "<outcome value='Other'>\n",
1832 "x": 936.351879119873,
1833 "y": 1842.8741198778152,
1834 "z": "85f9bda0.40ea6",
1842 "id": "e82fcfa1.60da4",
1844 "name": "block: atomic",
1845 "xml": "<block atomic=\"true\">\n",
1849 "x": 1116.3518295288086,
1850 "y": 1843.5406705141068,
1851 "z": "85f9bda0.40ea6",
1859 "id": "b3f3680a.ed3e28",
1860 "type": "returnFailure",
1861 "name": "return failure",
1862 "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=\"Error: No existing contrail applied service vnfs\" />\n \n",
1864 "x": 1301.2039527893066,
1865 "y": 1845.0001492500305,
1866 "z": "85f9bda0.40ea6",
1870 "id": "97a3c7a3.cd7a68",
1873 "xml": "<outcome value='Other'>\n",
1876 "x": 1517.2040481567383,
1877 "y": 1835.0001482963562,
1878 "z": "85f9bda0.40ea6",
1886 "id": "9094a451.613fc8",
1887 "type": "returnFailure",
1888 "name": "return failure",
1889 "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=\"Error: vnf id not found. Contrail applied service should only have one vnf\" />\n \n",
1891 "x": 1681.5319519042969,
1892 "y": 1834.94731092453,
1893 "z": "85f9bda0.40ea6",
1897 "id": "3f9b4d33.6afa52",
1899 "name": "set applied service vnf id",
1900 "xml": "<set>\n<parameter name='ar-assignments.contrail-applied-service.vnf-id' value=\"`$vnf.vnfs.vnf[0].vnf-id` \" />\n\n\n\n",
1902 "x": 1726.8040199279785,
1903 "y": 1799.0002388954163,
1904 "z": "85f9bda0.40ea6",
1908 "id": "4affa6c3.5650c8",
1910 "name": "Generate contrail route name",
1913 "x": 550.0039520263672,
1914 "y": 1223.0000276565552,
1915 "z": "85f9bda0.40ea6",
1919 "id": "241b0a1a.040746",
1921 "name": "GET contrail fqdn from vnf/vf-module",
1924 "x": 580.3373031616211,
1925 "y": 1917.6669092178345,
1926 "z": "85f9bda0.40ea6",
1930 "id": "5f1ba758.495008",
1931 "type": "switchNode",
1932 "name": "switch contrail-route-request-input.constrail-applied-service-info.contrail-fqdn",
1933 "xml": "<switch test='`$contrail-route-topology-operation-input.contrail-route-request-input.contrail-applied-service-info.contrail-fqdn`'>\n",
1936 "x": 686.0040054321289,
1937 "y": 1959.0002427101135,
1938 "z": "85f9bda0.40ea6",
1947 "id": "e8efa7a8.736b38",
1949 "name": "outcome Null",
1950 "xml": "<outcome value=''>\n",
1953 "x": 1078.0039710998535,
1954 "y": 1949.0000647306442,
1955 "z": "85f9bda0.40ea6",
1963 "id": "b22d9dd3.f64d8",
1966 "xml": "<outcome value='Other'>\n",
1969 "x": 1061.0038986206055,
1970 "y": 1986.0000519752502,
1971 "z": "85f9bda0.40ea6",
1979 "id": "a058e74f.55aa98",
1981 "name": "set applied service fqdn",
1982 "xml": "<set>\n<parameter name='ar-assignments.contrail-applied-service.contrail-fqdn' value=\"`$contrail-route-topology-operation-input.contrail-route-request-input.contrail-applied-service-info.contrail-fqdn` \" />\n\n\n\n",
1984 "x": 1252.0039138793945,
1985 "y": 1986.0000859498978,
1986 "z": "85f9bda0.40ea6",
1990 "id": "b254b3ef.ebc57",
1992 "name": "block: atomic",
1993 "xml": "<block atomic=\"true\">\n",
1997 "x": 1264.0039749145508,
1998 "y": 1949.00006377697,
1999 "z": "85f9bda0.40ea6",
2008 "id": "9ed05f14.02b3a",
2010 "name": "GET dest network from parent service",
2013 "x": 570.670524597168,
2014 "y": 1655.0000686645508,
2015 "z": "85f9bda0.40ea6",
2019 "id": "3b7ee06a.f8b51",
2020 "type": "switchNode",
2021 "name": "switch contrail-route-topology-operation-input.contrail-route-request-input.dest-network.network-id",
2022 "xml": "<switch test='`$contrail-route-topology-operation-input.contrail-route-request-input.dest-network.network-id`'>\n",
2025 "x": 762.0039825439453,
2026 "y": 1683.000023841858,
2027 "z": "85f9bda0.40ea6",
2036 "id": "8ecd2ff2.b9e9a",
2038 "name": "outcome Null",
2039 "xml": "<outcome value=''>\n",
2042 "x": 1204.0038833618164,
2043 "y": 1683.0000393390656,
2044 "z": "85f9bda0.40ea6",
2052 "id": "cc62d74c.c1a2e8",
2055 "xml": "<outcome value='Other'>\n",
2058 "x": 1186.0038871765137,
2059 "y": 1716.0000400543213,
2060 "z": "85f9bda0.40ea6",
2068 "id": "84dd6a6a.65bf68",
2070 "name": "set dest network id",
2071 "xml": "<set>\n<parameter name='ar-assignments.dest-network.network-id' value=\"`$contrail-route-topology-operation-input.contrail-route-request-input.dest-network.network-id` \" />\n\n\n\n",
2073 "x": 1378.003849029541,
2074 "y": 1718.9999952316284,
2075 "z": "85f9bda0.40ea6",
2079 "id": "7b646249.f51a2c",
2081 "name": "GET contrail fqdn via AAI",
2084 "x": 1517.2039642333984,
2085 "y": 1912.9999675750732,
2086 "z": "85f9bda0.40ea6",
2090 "id": "a0bebd1.5d35d4",
2091 "type": "get-resource",
2092 "name": "get-resource generic-vnf",
2093 "xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\t\tresource=\"generic-vnf\" \n\t\tkey=\"generic-vnf.vnf-id = $ar-assignments.contrail-applied-service.vnf-id\"\n pfx='aai.vnf' local-only='false' >\n \n\n\n",
2096 "x": 1527.2039642333984,
2097 "y": 1948.9999685287476,
2098 "z": "85f9bda0.40ea6",
2107 "id": "5ef4a02a.42306",
2110 "xml": "<outcome value='failure'>\n",
2113 "x": 1729.8435707092285,
2114 "y": 1977.8053374290466,
2115 "z": "85f9bda0.40ea6",
2123 "id": "82e0cc2c.ce754",
2124 "type": "returnFailure",
2125 "name": "return failure",
2126 "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=\"Error retrieving vnf from AAI\" />\n",
2128 "x": 1905.7957954406738,
2129 "y": 1981.1386713981628,
2130 "z": "85f9bda0.40ea6",
2134 "id": "d808221.d92d0e",
2135 "type": "not-found",
2136 "name": "not-found",
2137 "xml": "<outcome value='not-found'>\n",
2140 "x": 1732.3433952331543,
2141 "y": 1947.8054151535034,
2142 "z": "85f9bda0.40ea6",
2150 "id": "8d4eb08.378ca5",
2151 "type": "returnFailure",
2152 "name": "return failure",
2153 "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=\"Vnf not found in AAI\" />\n",
2155 "x": 1900.121280670166,
2156 "y": 1947.1108450889587,
2157 "z": "85f9bda0.40ea6",
2161 "id": "840da30b.94703",
2163 "name": "Loop through vf modeuls looking for contrail fqdn",
2166 "x": 1600.8706130981445,
2167 "y": 2017.3335008621216,
2168 "z": "85f9bda0.40ea6",
2172 "id": "4c3a7db3.5cd594",
2174 "name": "Update AAI AR",
2177 "x": 499.20395278930664,
2178 "y": 2416.9999961853027,
2179 "z": "85f9bda0.40ea6",
2183 "id": "5fefa6f9.3a77d8",
2185 "name": "execute RestApiCallNode - Update parent provided service AR",
2186 "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n <parameter name='templateFileName' value=\"`$prop.restapi.templateDir + '/' + $prop.restapi.parentsvc.templatefile`\" />\n <parameter name='restapiUrl' value='`$prop.controller.url + $tmp.parent-ar-url`' />\n <parameter name='restapiUser' value='`$prop.controller.user`' />\n <parameter name='restapiPassword' value='`$prop.controller.pwd`' />\n <parameter name='format' value='json' />\n <parameter name='httpMethod' value='PUT' />\n <parameter name=\"responsePrefix\" value=\"parent\" />\n\n",
2189 "x": 641.2040672302246,
2190 "y": 2549.0002632141113,
2191 "z": "85f9bda0.40ea6",
2201 "id": "4b453088.13e21",
2202 "type": "not-found",
2203 "name": "not-found",
2204 "xml": "<outcome value='not-found'>\n",
2207 "x": 963.5120849609375,
2208 "y": 2593.998480796814,
2209 "z": "85f9bda0.40ea6",
2217 "id": "db902bd9.e2c338",
2220 "xml": "<outcome value='failure'>\n",
2223 "x": 954.512134552002,
2224 "y": 2562.4985065460205,
2225 "z": "85f9bda0.40ea6",
2233 "id": "e615d74a.c6fc18",
2236 "xml": "<outcome value='success'>\n",
2239 "x": 958.2621726989746,
2240 "y": 2532.855611421168,
2241 "z": "85f9bda0.40ea6",
2249 "id": "b694161e.b1bf88",
2250 "type": "returnFailure",
2251 "name": "return failure",
2252 "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=\"Error updating md-sal for contrail-route-allotted-resource\" />\n",
2254 "x": 1124.2621726989746,
2255 "y": 2563.2485303878784,
2256 "z": "85f9bda0.40ea6",
2260 "id": "115a2a7e.d97726",
2267 "x": 1099.918140411377,
2268 "y": 2529.047780610621,
2269 "z": "85f9bda0.40ea6",
2275 "id": "74edca12.815734",
2277 "name": "Put the parent allotted resource in mdsal",
2280 "x": 568.2040328979492,
2281 "y": 2517.0000886917114,
2282 "z": "85f9bda0.40ea6",
2286 "id": "264a617a.dba88e",
2287 "type": "switchNode",
2288 "name": "switch tmp.found-cidx",
2289 "xml": "<switch test='`$tmp.found-cidx`'>\n",
2292 "x": 1283.2039337158203,
2293 "y": 2273.0000586509705,
2294 "z": "85f9bda0.40ea6",
2302 "id": "93572ecb.afdae",
2303 "type": "outcomeTrue",
2305 "xml": "<outcome value='false'>\n",
2308 "x": 1473.2038879394531,
2309 "y": 2272.9999957084656,
2310 "z": "85f9bda0.40ea6",
2318 "id": "b7b1719a.2b029",
2320 "name": "block : atomic",
2321 "xml": "<block atomic=\"true\">",
2324 "x": 1639.2038879394531,
2325 "y": 2272.9999957084656,
2326 "z": "85f9bda0.40ea6",
2334 "id": "308899ad.18e666",
2336 "name": "set tmp.cidx ",
2337 "xml": "<set>\n<parameter name='tmp.cidx' value='`$service-data.consumed-allotted-resources.consumed-allotted-resource_length`' />\n",
2339 "x": 1885.0612163543701,
2340 "y": 2273.571469783783,
2341 "z": "85f9bda0.40ea6",
2345 "id": "40e2c37b.f6506c",
2350 "x": 2435.203887939453,
2351 "y": 2270.9999957084656,
2352 "z": "85f9bda0.40ea6",
2356 "id": "a348f9e1.479f68",
2358 "name": "generate parent-ar url - replace service-instance-id",
2359 "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$prop.restapi.parent-provided-resource`\"/>\n <parameter name=\"outputPath\" value=\"tmp.parent-ar-url\"/>\n <parameter name=\"target\" value=\"{service-instance-id}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.ar.parent-service-instance-id`\"/>\n",
2362 "x": 623.2040939331055,
2363 "y": 491.0000581741333,
2364 "z": "85f9bda0.40ea6",
2370 "id": "e6b7c56f.4a4108",
2372 "name": "generate parent-ar url - replace allotted-resource-id",
2373 "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$tmp.parent-ar-url`\"/>\n <parameter name=\"outputPath\" value=\"tmp.parent-ar-url\"/>\n <parameter name=\"target\" value=\"{allotted-resource-id}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.ar.allotted-resource-id`\"/>\n",
2376 "x": 628.2039642333984,
2377 "y": 526.0000591278076,
2378 "z": "85f9bda0.40ea6",
2384 "id": "4fa30610.874dd8",
2386 "name": "execute RestApiCallNode - Update parent provided service AR",
2387 "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n <parameter name='templateFileName' value=\"`$prop.restapi.templateDir + '/' + $prop.restapi.parentsvc.templatefile`\" />\n <parameter name='restapiUrl' value='`$prop.controller.url + $tmp.parent-ar-url`' />\n <parameter name='restapiUser' value='`$prop.controller.user`' />\n <parameter name='restapiPassword' value='`$prop.controller.pwd`' />\n <parameter name='format' value='json' />\n <parameter name='httpMethod' value='DELETE' />\n <parameter name=\"responsePrefix\" value=\"parent\" />\n\n",
2390 "x": 1340.337501525879,
2391 "y": 2983.333375930786,
2392 "z": "85f9bda0.40ea6",
2402 "id": "b4ec98ab.b04568",
2404 "name": "Rollback parent",
2407 "x": 1184.3374290466309,
2408 "y": 2953.0000064373016,
2409 "z": "85f9bda0.40ea6",
2413 "id": "4b9fa7f1.b30308",
2420 "x": 993.0040321350098,
2421 "y": 2982.666679382324,
2422 "z": "85f9bda0.40ea6",
2431 "id": "4d27fc7a.e0a564",
2432 "type": "not-found",
2433 "name": "not-found",
2434 "xml": "<outcome value='not-found'>\n",
2437 "x": 1711.64554977417,
2438 "y": 3043.9983422756195,
2439 "z": "85f9bda0.40ea6",
2447 "id": "fca9d210.32923",
2450 "xml": "<outcome value='failure'>\n",
2453 "x": 1702.6455993652344,
2454 "y": 3012.498368024826,
2455 "z": "85f9bda0.40ea6",
2463 "id": "5baae4aa.9e3f8c",
2466 "xml": "<outcome value='success'>\n",
2469 "x": 1706.395637512207,
2470 "y": 2982.8554728999734,
2471 "z": "85f9bda0.40ea6",
2479 "id": "7488686d.da8948",
2486 "x": 1848.0516052246094,
2487 "y": 2979.0476420894265,
2488 "z": "85f9bda0.40ea6",
2494 "id": "5182c386.6fc00c",
2496 "name": "generate network-ar url - replace service-instance-id",
2497 "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$prop.restapi.network-provided-resource`\"/>\n <parameter name=\"outputPath\" value=\"tmp.network-ar-url\"/>\n <parameter name=\"target\" value=\"{service-instance-id}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.ar.parent-service-instance-id`\"/>\n",
2500 "x": 630.0039291381836,
2501 "y": 560.9999933242798,
2502 "z": "85f9bda0.40ea6",
2508 "id": "b4d8f0cc.1375d",
2510 "name": "generate network-ar url - replace network-id",
2511 "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$tmp.network-ar-url`\"/>\n <parameter name=\"outputPath\" value=\"tmp.network-ar-url\"/>\n <parameter name=\"target\" value=\"{network-id}\"/>\n <parameter name=\"replacement\" value=\"`$ar-assignments.dest-network.network-id`\"/>\n",
2514 "x": 575.3373336791992,
2515 "y": 2736.3331060409546,
2516 "z": "85f9bda0.40ea6",
2522 "id": "d3ab9d9.302806",
2524 "name": "execute RestApiCallNode - Update parent network provided AR",
2525 "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n <parameter name='restapiUrl' value='`$prop.controller.url + $tmp.network-ar-url`' />\n <parameter name='restapiUser' value='`$prop.controller.user`' />\n <parameter name='restapiPassword' value='`$prop.controller.pwd`' />\n <parameter name='format' value='json' />\n <parameter name='httpMethod' value='GET' />\n <parameter name=\"responsePrefix\" value=\"net-ar\" />\n\n",
2528 "x": 636.0039749145508,
2529 "y": 2768.332983016968,
2530 "z": "85f9bda0.40ea6",
2540 "id": "21f26a3d.14b8a6",
2541 "type": "not-found",
2542 "name": "not-found",
2543 "xml": "<outcome value='not-found'>\n",
2546 "x": 1043.3120384216309,
2547 "y": 2769.998592376709,
2548 "z": "85f9bda0.40ea6",
2556 "id": "58552a71.cf4904",
2559 "xml": "<outcome value='failure'>\n",
2562 "x": 1035.9787483215332,
2563 "y": 2805.165050506592,
2564 "z": "85f9bda0.40ea6",
2572 "id": "b126a6ab.fc31a8",
2575 "xml": "<outcome value='success'>\n",
2578 "x": 1038.0620727539062,
2579 "y": 2735.52213678509,
2580 "z": "85f9bda0.40ea6",
2588 "id": "d04555d.20f10a8",
2590 "name": "block: atomic",
2591 "xml": "<block atomic=\"true\">\n",
2595 "x": 1209.7179679870605,
2596 "y": 2740.047920227051,
2597 "z": "85f9bda0.40ea6",
2606 "id": "9c8b757d.7ff708",
2608 "name": "Add AR to parent network allotted resource from mdsal",
2611 "x": 604.0038681030273,
2612 "y": 2696.666604042053,
2613 "z": "85f9bda0.40ea6",
2617 "id": "f47586c7.4dd958",
2618 "type": "switchNode",
2619 "name": "switch net-ar_length",
2620 "xml": "<switch test='`$net-ar.network-provided-allotted-resources.network-provided-ar-id_length`'>\n",
2623 "x": 1436.3371238708496,
2624 "y": 2779.333092689514,
2625 "z": "85f9bda0.40ea6",
2634 "id": "f3c02a8e.4fd868",
2636 "name": "for nidx..net-ar[]",
2637 "xml": "<for index='nidx' start='0' end='`$net-ar.network-provided-allotted-resources.network-provided-ar-id_length`' >\n",
2640 "x": 2154.6705780029297,
2641 "y": 2800.3330993652344,
2642 "z": "85f9bda0.40ea6",
2650 "id": "81789afc.459478",
2652 "name": "outcome Null",
2653 "xml": "<outcome value=''>\n",
2656 "x": 1719.1461906433105,
2657 "y": 2734.9044456481934,
2658 "z": "85f9bda0.40ea6",
2666 "id": "18863aec.cdfac5",
2669 "xml": "<outcome value='Other'>\n",
2672 "x": 1700.8128395080566,
2673 "y": 2808.5711641311646,
2674 "z": "85f9bda0.40ea6",
2682 "id": "aaf9c25b.d0a4e",
2683 "type": "switchNode",
2684 "name": "switch allotted-resource-id",
2685 "xml": "<switch test=\"`$net-ar.network-provided-allotted-resources.network-provided-ar-id[$nidx] == $tmp.ar.allotted-resource-id`\">\n\n",
2688 "x": 2379.765636444092,
2689 "y": 2807.3930249214172,
2690 "z": "85f9bda0.40ea6",
2698 "id": "3f6707e6.536828",
2699 "type": "outcomeTrue",
2701 "xml": "<outcome value='true'>\n",
2704 "x": 2562.909149169922,
2705 "y": 2802.8570713996887,
2706 "z": "85f9bda0.40ea6",
2714 "id": "400b37af.daefc8",
2716 "name": "block : atomic",
2717 "xml": "<block atomic=\"true\">",
2720 "x": 1903.2733039855957,
2721 "y": 2811.3636326789856,
2722 "z": "85f9bda0.40ea6",
2731 "id": "cf3b236d.afba4",
2733 "name": "block : atomic",
2734 "xml": "<block atomic=\"true\">",
2737 "x": 2729.6701126098633,
2738 "y": 2804.380966901779,
2739 "z": "85f9bda0.40ea6",
2748 "id": "b9a5525f.e748d",
2749 "type": "outcomeTrue",
2751 "xml": "<outcome value='false'>\n",
2754 "x": 2333.7217140197754,
2755 "y": 2844.0419883728027,
2756 "z": "85f9bda0.40ea6",
2764 "id": "3c162262.2edd8e",
2766 "name": "block : atomic",
2767 "xml": "<block atomic=\"true\">",
2770 "x": 2503.0548133850098,
2771 "y": 2842.375241279602,
2772 "z": "85f9bda0.40ea6",
2782 "id": "97955dea.94fa8",
2784 "name": "set tmp.nidx ",
2785 "xml": "<set>\n<parameter name='tmp.nidx' value='`$net-ar.network-provided-allotted-resources.network-provided-ar-id_length`' />\n",
2787 "x": 2708.9120597839355,
2788 "y": 2847.946852207184,
2789 "z": "85f9bda0.40ea6",
2793 "id": "71697d2f.ce67a4",
2795 "name": "allotted resource already exists- no op",
2798 "x": 2425.003807067871,
2799 "y": 2658.3331480026245,
2800 "z": "85f9bda0.40ea6",
2804 "id": "b5ca1c40.ba898",
2805 "type": "switchNode",
2806 "name": "switch tmp.found-nidx",
2807 "xml": "<switch test='`$tmp.found-nidx`'>\n",
2810 "x": 2163.721622467041,
2811 "y": 2842.375159263611,
2812 "z": "85f9bda0.40ea6",
2820 "id": "b9c29337.bffea",
2822 "name": "set tmp.nidx ",
2823 "xml": "<set>\n<parameter name='tmp.found-nidx' value='true' />",
2825 "x": 2941.6705055236816,
2826 "y": 2795.6662425994873,
2827 "z": "85f9bda0.40ea6",
2831 "id": "e860e228.44b05",
2836 "x": 2928.864610671997,
2837 "y": 2829.0894317626953,
2838 "z": "85f9bda0.40ea6",
2842 "id": "b0991330.37b1f",
2844 "name": "execute RestApiCallNode - Update parent network provided AR",
2845 "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n <parameter name='templateFileName' value=\"`$prop.restapi.templateDir + '/' + $prop.restapi.network-ar.templatefile`\" />\n <parameter name='restapiUrl' value='`$prop.controller.url + $tmp.network-ar-url`' />\n <parameter name='restapiUser' value='`$prop.controller.user`' />\n <parameter name='restapiPassword' value='`$prop.controller.pwd`' />\n <parameter name='format' value='json' />\n <parameter name='httpMethod' value='PUT' />\n <parameter name=\"responsePrefix\" value=\"p-network-ar\" />\n\n",
2848 "x": 2876.0039253234863,
2849 "y": 2913.6661825180054,
2850 "z": "85f9bda0.40ea6",
2860 "id": "abaaa05a.34376",
2861 "type": "not-found",
2862 "name": "not-found",
2863 "xml": "<outcome value='not-found'>\n",
2866 "x": 3219.0038719177246,
2867 "y": 2959.9996099472046,
2868 "z": "85f9bda0.40ea6",
2876 "id": "ce47a3d3.8ea39",
2879 "xml": "<outcome value='failure'>\n",
2882 "x": 3210.003921508789,
2883 "y": 2928.499635696411,
2884 "z": "85f9bda0.40ea6",
2892 "id": "d0deebe0.5c10c8",
2895 "xml": "<outcome value='success'>\n",
2898 "x": 3213.7539596557617,
2899 "y": 2898.8567405715585,
2900 "z": "85f9bda0.40ea6",
2908 "id": "88cce4e7.5ce3b8",
2915 "x": 3398.743251800537,
2916 "y": 2895.048861503601,
2917 "z": "85f9bda0.40ea6",
2923 "id": "70cece64.b0035",
2925 "name": "set tmp.found-nidx = false",
2926 "xml": "<set>\n<parameter name='tmp.found-nidx' value='false' />",
2928 "x": 1453.0038871765137,
2929 "y": 2709.666962623596,
2930 "z": "85f9bda0.40ea6",
2934 "id": "19342dda.0ed522",
2936 "name": "set length",
2937 "xml": "<set>\n<parameter name='net-ar.network-provided-allotted-resources.network-provided-ar-id_length' value='`$net-ar.network-provided-allotted-resources.network-provided-ar-id_length + 1`' />\n<parameter name='net-ar.network-provided-allotted-resources.network-provided-ar-id[$tmp.nidx]' value=\"`$tmp.ar.allotted-resource-id`\" />\n",
2939 "x": 2703.670211791992,
2940 "y": 2882.000111103058,
2941 "z": "85f9bda0.40ea6",
2945 "id": "cf2e9848.75b068",
2947 "name": "set new network-provided-ar",
2948 "xml": "<set>\n<parameter name='net-ar.network-provided-allotted-resources.network-provided-ar-id_length' value=\"1\" />\n<parameter name='net-ar.network-provided-allotted-resources.network-provided-ar-id[0]' value=\"`$tmp.ar.allotted-resource-id`\" />\n\n\n\n\n",
2950 "x": 2220.003257751465,
2951 "y": 2738.2850757837296,
2952 "z": "85f9bda0.40ea6",
2956 "id": "a9b1914.36cf07",
2958 "name": "block : atomic",
2959 "xml": "<block atomic=\"true\">",
2962 "x": 1916.6709251403809,
2963 "y": 2734.9993047714233,
2964 "z": "85f9bda0.40ea6",
2973 "id": "532c07a7.4fc418",
2975 "name": "Other Rollbacks? ",
2978 "x": 1190.003776550293,
2979 "y": 3044.9997510910034,
2980 "z": "85f9bda0.40ea6",
2984 "id": "1a6cf55.8e55d0b",
2986 "name": "for each vf-module",
2987 "xml": "<for index='idx' start='0' end='`$aai.vnf.vf-modules.vf-module_length`' >\n",
2990 "x": 1942.1624755859375,
2991 "y": 2083.2690420150757,
2992 "z": "85f9bda0.40ea6",
3000 "id": "3073c90c.2b8396",
3005 "x": 2821.734062194824,
3006 "y": 2147.5073776245117,
3007 "z": "85f9bda0.40ea6",
3011 "id": "f9f855ba.54c4e8",
3012 "type": "switchNode",
3013 "name": "switch contrail-service-instance-fqdn",
3014 "xml": "<switch test='`$aai.vnf.vf-modules.vf-module[$idx].contrail-service-instance-fqdn`'>\n",
3017 "x": 2225.67041015625,
3018 "y": 2083.9997549057007,
3019 "z": "85f9bda0.40ea6",
3028 "id": "e93e13c6.51ba8",
3029 "type": "returnFailure",
3030 "name": "return failure",
3031 "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=\"VF Module not found in AAI\" />\n",
3033 "x": 1923.61474609375,
3034 "y": 2050.9721670150757,
3035 "z": "85f9bda0.40ea6",
3039 "id": "16e107d0.dce698",
3041 "name": "outcome Null",
3042 "xml": "<outcome value=''>\n",
3045 "x": 2505.67041015625,
3046 "y": 2085.3330068588257,
3047 "z": "85f9bda0.40ea6",
3055 "id": "e20c70a0.0635e",
3058 "xml": "<outcome value='Other'>\n",
3061 "x": 2487.6704139709473,
3062 "y": 2118.3330075740814,
3063 "z": "85f9bda0.40ea6",
3071 "id": "75bfef9d.b7113",
3078 "x": 2662.3373260498047,
3079 "y": 2083.666416168213,
3080 "z": "85f9bda0.40ea6",
3086 "id": "6a2486ce.7e5db8",
3093 "x": 2669.0036544799805,
3094 "y": 2115.3330125808716,
3095 "z": "85f9bda0.40ea6",
3104 "id": "91e70d26.1944f",
3106 "name": "set applied service fqdn",
3107 "xml": "<set>\n<parameter name='ar-assignments.contrail-applied-service.contrail-fqdn' value=\"`$aai.vnf.vf-modules.vf-module[$idx].contrail-service-instance-fqdn` \" />\n\n\n\n",
3109 "x": 2880.3369140625,
3110 "y": 2114.666625022888,
3111 "z": "85f9bda0.40ea6",
3115 "id": "50a5d5ae.00038c",
3116 "type": "switchNode",
3117 "name": "switch ar-assignments.contrail-applied-service.contrail-fqdn",
3118 "xml": "<switch test='`$ar-assignments.contrail-applied-service.contrail-fqdn`'>\n",
3121 "x": 639.0039672851562,
3122 "y": 2032.6666250228882,
3123 "z": "85f9bda0.40ea6",
3131 "id": "7ef88d8c.1753f4",
3133 "name": "outcome Null",
3134 "xml": "<outcome value=''>\n",
3137 "x": 967.6706504821777,
3138 "y": 2033.3331513404846,
3139 "z": "85f9bda0.40ea6",
3147 "id": "906fc5d.d193b38",
3148 "type": "returnFailure",
3149 "name": "return failure",
3150 "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=\"Error: No vf-module with contrail-service-instance-fqdn found in AAI\" />\n \n",
3152 "x": 1143.6705322265625,
3153 "y": 2031.6665029525757,
3154 "z": "85f9bda0.40ea6",
3158 "id": "9435780f.70de68",
3160 "name": "MDSal adaptor only saves consuming service so parent service and AR are done by Rest api calls",
3163 "x": 617.670524597168,
3164 "y": 69.99999523162842,
3165 "z": "85f9bda0.40ea6",
3169 "id": "ab273234.3352d",
3170 "type": "get-resource",
3171 "name": "get-resource tenant",
3172 "xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\t\tresource=\"tenant\" \n\t\tkey=\"cloud-region.cloud-owner = $prop.cloud-region.cloud-owner AND \n\t\t cloud-region.cloud-region-id = $tmp.ar.cloud-region-id AND\n\t\t tenant.tenant-id = $tmp.ar.tenant-id\"\n pfx='aai.tenant' local-only='false' >\n\n",
3175 "x": 3048.670690536499,
3176 "y": 1107.999815940857,
3177 "z": "85f9bda0.40ea6",
3187 "id": "1e32de4c.b2c362",
3188 "type": "not-found",
3189 "name": "not-found",
3190 "xml": "<outcome value='not-found'>\n",
3193 "x": 3269.5320796966553,
3194 "y": 1100.61093044281,
3195 "z": "85f9bda0.40ea6",
3203 "id": "cacc25d0.431aa8",
3206 "xml": "<outcome value='Other'>\n",
3209 "x": 3264.8651065826416,
3210 "y": 1133.9442443847656,
3211 "z": "85f9bda0.40ea6",
3219 "id": "84327f8e.42c2a",
3220 "type": "returnFailure",
3221 "name": "return failure",
3222 "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=\"Tenant not found in AAI\" />\n\n",
3224 "x": 3439.0410289764404,
3225 "y": 1121.9998035430908,
3226 "z": "85f9bda0.40ea6",
3230 "id": "ffdd0952.ef2388",
3233 "xml": "<outcome value='success'>\n",
3236 "x": 3265.0411128997803,
3237 "y": 1069.0368947982788,
3238 "z": "85f9bda0.40ea6",
3246 "id": "5ac31447.f8751c",
3248 "name": "block : atomic",
3249 "xml": "<block atomic=\"true\">",
3252 "x": 3445.0411128997803,
3253 "y": 1067.0368947982788,
3254 "z": "85f9bda0.40ea6",
3262 "id": "7452fdf2.e453e4",
3264 "name": "set tenant name",
3265 "xml": "<set>\n<parameter name='tmp.ar.tenant-name' value='`$aai.tenant.tenant-name`' />\n\n\n",
3267 "x": 3632.004217147827,
3268 "y": 1064.66663646698,
3269 "z": "85f9bda0.40ea6",
3273 "id": "87c290d7.ffb84",
3280 "x": 2311.40380859375,
3281 "y": 1094.9999990463257,
3282 "z": "85f9bda0.40ea6",
3291 "id": "cf63926f.05ca8",
3294 "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder\">\n<parameter name=\"logger\" value=\"message-log\"/>\n<parameter name=\"field1\" value=\"__TIMESTAMP__\"/>\n<parameter name=\"field2\" value=\"tmp.ar-name=\"/>\n<parameter name=\"field3\" value=\"`$tmp.ar-name`\"/>\n<parameter name=\"field4\" value=\"service-data-network-id\" />\n<parameter name=\"field5\" value=\"`$service-data.networks.network[$nidx].network-id`\" />\n<parameter name=\"field6\" value=\"contrail-route-input-network-id\" />\n<parameter name=\"field7\" value=\"`$contrail-route-topology-operation-input.contrail-route-request-input.source-network.network-id`\" />\n<parameter name=\"field8\" value=\"`$nidx`\" />",
3297 "x": 2476.0039825439453,
3298 "y": 1058.000126838684,
3299 "z": "85f9bda0.40ea6",
3305 "id": "e5b36746.9138e8",
3307 "name": "set source-network-found",
3308 "xml": "<set>\n<parameter name='source-network-found' value='false' />\n\n",
3310 "x": 2034.0041046142578,
3311 "y": 1099.000039756298,
3312 "z": "85f9bda0.40ea6",
3316 "id": "c3a2fe60.10d47",
3317 "type": "switchNode",
3318 "name": "switch source-network-found",
3319 "xml": "<switch test=\"`$source-network-found`\">\n\n",
3322 "x": 2038.003978729248,
3323 "y": 1165.0000324249268,
3324 "z": "85f9bda0.40ea6",
3332 "id": "dadae59.dcff218",
3333 "type": "outcomeTrue",
3335 "xml": "<outcome value='false'>\n",
3338 "x": 2250.003936767578,
3339 "y": 1165.000033378601,
3340 "z": "85f9bda0.40ea6",
3348 "id": "5f68ea4a.6a1ad4",
3349 "type": "switchNode",
3350 "name": "switch vf-module_length",
3351 "xml": "<switch test='`$aai.vnf.vf-modules.vf-module_length`'>\n",
3355 "y": 2049.9999990463257,
3356 "z": "85f9bda0.40ea6",
3365 "id": "782bd89.42bc228",
3367 "name": "outcome null",
3368 "xml": "<outcome value=''>\n",
3372 "y": 2050.9999990463257,
3373 "z": "85f9bda0.40ea6",
3381 "id": "163262d8.631f3d",
3383 "name": "outcome other",
3384 "xml": "<outcome value='Other'>\n",
3388 "y": 2081.9999990463257,
3389 "z": "85f9bda0.40ea6",