3 "id": "f03bdbde.4579d8",
8 "y": 104.6666704416275,
17 "id": "b789d37d.82a2e",
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": 321.2419891357422,
26 "y": 179.61906397342682,
27 "z": "fbc4119e.39c3b",
35 "id": "245879c2.1bf726",
37 "name": "contrail-route-topology-operation-create",
38 "xml": "<method rpc='contrail-route-topology-operation-create' mode='sync'>\n",
41 "x": 401.1587562561035,
42 "y": 248.85711252689362,
43 "z": "fbc4119e.39c3b",
51 "id": "cb6febc8.40d7a8",
53 "name": "block : atomic",
54 "xml": "<block atomic=\"true\">",
58 "x": 309.4800910949707,
59 "y": 392.1904546022415,
60 "z": "fbc4119e.39c3b",
91 "id": "e3ebac4.ab7145",
92 "type": "returnSuccess",
93 "name": "return success",
94 "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",
96 "x": 507.7183837890625,
97 "y": 2060.3935294486582,
98 "z": "fbc4119e.39c3b",
102 "id": "78592f6d.e5c98",
104 "name": "set output to api handler",
105 "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",
107 "x": 536.4722900390625,
108 "y": 2022.8493228293955,
109 "z": "fbc4119e.39c3b",
113 "id": "a844f172.05d78",
115 "name": "set allotted-resource-oper-status",
116 "xml": "<set>\n<parameter name='ar.allotted-resource-data.allotted-resource-oper-status.order-status' value='Created' />\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",
118 "x": 569.8056755065918,
119 "y": 1895.2302031852305,
120 "z": "fbc4119e.39c3b",
124 "id": "ef64ef71.c48f1",
126 "name": "set tmp.ar.self-link",
127 "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",
129 "x": 571.7419624328613,
130 "y": 365.9999920129776,
131 "z": "fbc4119e.39c3b",
135 "id": "b31530da.30339",
137 "name": "set tmp.ar.allotted-resource-id,etc",
138 "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\n\n\n",
140 "x": 619.0012359619141,
141 "y": 332.2592588663101,
142 "z": "fbc4119e.39c3b",
146 "id": "41df4f0b.30a5f",
148 "name": "execute Properties - pull properties file",
149 "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",
152 "x": 633.4258880615234,
153 "y": 401.89820539951324,
154 "z": "fbc4119e.39c3b",
160 "id": "478f720.e98ad9",
162 "name": "execute RestApiCallNode - Get AR by id",
163 "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",
166 "x": 651.8560028076172,
167 "y": 573.4595466852188,
168 "z": "fbc4119e.39c3b",
177 "id": "af3b175.bb7ece8",
179 "name": "generate allotted-resource url",
180 "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",
183 "x": 606.0687713623047,
184 "y": 457.68387281894684,
185 "z": "fbc4119e.39c3b",
191 "id": "aebb7490.69e928",
194 "xml": "<outcome value='success'>\n",
197 "x": 893.8187561035156,
198 "y": 570.9339929819107,
199 "z": "fbc4119e.39c3b",
207 "id": "bc7f0404.80df38",
209 "name": "execute RestApiCallNode - PUT AR by id",
210 "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",
213 "x": 587.0809020996094,
214 "y": 1979.755991578102,
215 "z": "fbc4119e.39c3b",
225 "id": "1f0721b.9b811de",
228 "xml": "<outcome value='not-found'>\n",
231 "x": 869.8889007568359,
232 "y": 2015.6111840568483,
233 "z": "fbc4119e.39c3b",
241 "id": "e79eeaaa.e7dcb8",
244 "xml": "<outcome value='failure'>\n",
247 "x": 860.8889503479004,
248 "y": 1984.1112098060548,
249 "z": "fbc4119e.39c3b",
257 "id": "1d4083e3.1dc26c",
260 "xml": "<outcome value='success'>\n",
263 "x": 864.638988494873,
264 "y": 1954.4683146812022,
265 "z": "fbc4119e.39c3b",
273 "id": "d062f84e.64a6c8",
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\" />\n",
278 "x": 1030.638988494873,
279 "y": 1984.8612336479127,
280 "z": "fbc4119e.39c3b",
284 "id": "a22ae59.4cc7418",
286 "name": "block: atomic",
287 "xml": "<block atomic=\"true\">\n",
291 "x": 1062.818759918213,
292 "y": 569.4338937997818,
293 "z": "fbc4119e.39c3b",
301 "id": "3b15ea01.810756",
302 "type": "switchNode",
303 "name": "switch cr length",
304 "xml": "<switch test='`$mdsal-ar.contrail-route-allotted-resource_length`'>\n",
307 "x": 1273.6760025024414,
308 "y": 569.05302298069,
309 "z": "fbc4119e.39c3b",
318 "id": "9e98b320.e152c",
321 "xml": "<outcome value='1'>\n",
324 "x": 1463.0093078613281,
325 "y": 569.0529810190201,
326 "z": "fbc4119e.39c3b",
334 "id": "ad98339.532aad",
336 "name": "set ar from get",
337 "xml": "<set>\n<parameter name='ar.' value='$mdsal-ar.contrail-route-allotted-resource[0].' />\n",
339 "x": 1886.2001152038574,
340 "y": 600.6245447397232,
341 "z": "fbc4119e.39c3b",
345 "id": "a5eacd9b.7855d",
347 "name": "block: atomic",
348 "xml": "<block atomic='true'>\n",
352 "x": 1647.533197402954,
353 "y": 565.9578148126602,
354 "z": "fbc4119e.39c3b",
363 "id": "2d62b33d.718e0c",
365 "name": "GET contrail-route-allotted-resource from mdsal",
368 "x": 661.8186988830566,
369 "y": 537.43388235569,
370 "z": "fbc4119e.39c3b",
374 "id": "cb3789bb.42da88",
376 "name": "set ar-assignments.contrail-id",
377 "xml": "<set>\n<parameter name='ar-assignments.contrail-id' value=\"`$contrailResp.network-policy.uuid`\" />\n\n\n\n",
379 "x": 591.6760177612305,
380 "y": 1456.2319885492325,
381 "z": "fbc4119e.39c3b",
385 "id": "3870bad1.110186",
387 "name": "save backup copy of mdsal-ar for rollback",
388 "xml": "<set>\n<parameter name='bk-cr-ar' value='$mdsal-ar.' />\n",
390 "x": 1974.0571670532227,
391 "y": 567.4340368509293,
392 "z": "fbc4119e.39c3b",
396 "id": "d436744f.3d37d8",
398 "name": "Create urls for restapi",
401 "x": 576.9615592956543,
402 "y": 431.29102289676666,
403 "z": "fbc4119e.39c3b",
407 "id": "5be66386.866e6c",
414 "x": 1006.2949562072754,
415 "y": 1950.6604838706553,
416 "z": "fbc4119e.39c3b",
422 "id": "bc587a66.feda28",
424 "name": "execute getTime",
425 "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='setTime' >\n <parameter name=\"outputPath\" value=\"tmp.current-time\" />\n\n",
428 "x": 518.9616737365723,
429 "y": 1928.3269076682627,
430 "z": "fbc4119e.39c3b",
436 "id": "ca916db.f325d9",
437 "type": "returnFailure",
438 "name": "return failure",
439 "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"404\" />\n <parameter name=\"error-message\" value=\"Error: Contrail Route not found\" />\n \n",
441 "x": 1613.3376388549805,
442 "y": 653.6667238473892,
443 "z": "fbc4119e.39c3b",
447 "id": "cfd4b50e.a5e6b8",
450 "xml": "<outcome value='Other'>\n",
453 "x": 885.6705589294434,
454 "y": 606.0000778436661,
455 "z": "fbc4119e.39c3b",
463 "id": "18936b2c.da7865",
465 "name": "block: atomic",
466 "xml": "<block atomic=\"true\">\n",
470 "x": 1065.670509338379,
471 "y": 606.6666284799576,
472 "z": "fbc4119e.39c3b",
480 "id": "2c4387c0.bbe4d8",
482 "name": "set ar data",
483 "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",
485 "x": 558.5277328491211,
486 "y": 611.4761854410172,
487 "z": "fbc4119e.39c3b",
491 "id": "8b7088ef.449658",
494 "xml": "<outcome value='Other'>\n",
497 "x": 1451.3372611999512,
498 "y": 606.3333412408829,
499 "z": "fbc4119e.39c3b",
507 "id": "bd7a20ba.9bf84",
509 "name": "set cloud-region-id for input to contrail",
510 "xml": "<set>\n<parameter name='cloud-region-id' value='`$tmp.ar.cloud-region-id`' />\n",
512 "x": 615.3849792480469,
513 "y": 1262.6431738138199,
514 "z": "fbc4119e.39c3b",
518 "id": "ca1182bc.7b6ef",
520 "name": "Call contrail api here",
523 "x": 559.0516815185547,
524 "y": 1229.3096767663956,
525 "z": "fbc4119e.39c3b",
529 "id": "76519ed6.4be52",
531 "name": "Rollback - rollback contrail/AAI",
534 "x": 1243.8612670898438,
535 "y": 1189.714376091957,
536 "z": "fbc4119e.39c3b",
540 "id": "396c22cf.fd071e",
542 "name": "Create network policy in AAI",
545 "x": 565.7659301757812,
546 "y": 1664.8929439783096,
547 "z": "fbc4119e.39c3b",
551 "id": "3b7c3ee7.892e02",
553 "name": "save AnAI - network-policy",
554 "xml": "<save plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\tresource=\"network-policy\" \n\t\tkey=\"network-policy.network-policy-id = $ar-assignments.contrail-id\" >\n<!-- Create l3-network object -->\n<parameter name=\"network-policy-id\" value=\"`$ar-assignments.contrail-id`\" />\n<parameter name=\"network-policy-fqdn\" value=\"`$ar-assignments.fq-name`\" />\n\n\n",
557 "x": 581.1428146362305,
558 "y": 1701.960508942604,
559 "z": "fbc4119e.39c3b",
568 "id": "6b68050d.217ccc",
569 "type": "returnFailure",
570 "name": "return failure",
571 "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=\"Failed to save network policy in AAI\" />\n",
573 "x": 1053.48832321167,
574 "y": 1692.2421222925186,
575 "z": "fbc4119e.39c3b",
579 "id": "178286.09ba5d7b",
582 "xml": "<outcome value='failure'>\n",
585 "x": 824.9169311523438,
586 "y": 1691.257859826088,
587 "z": "fbc4119e.39c3b",
595 "id": "916ae281.f5ee2",
598 "xml": "<outcome value='not-found'>\n",
601 "x": 828.7264289855957,
602 "y": 1720.7342764139175,
603 "z": "fbc4119e.39c3b",
611 "id": "13fbc501.526acb",
613 "name": "MDSal adaptor only saves consuming service so parent service and AR are done by Rest api calls",
616 "x": 681.6705322265625,
617 "y": 102.99999868869781,
618 "z": "fbc4119e.39c3b",
622 "id": "9c87964d.1eedd8",
624 "name": "execute Contrail API create network policy",
625 "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.contrail.ContrailAdaptor' method='sendContrailRequest' emitsOutcome='true' >\n<parameter name='api-name' value='network-policy' />\n<parameter name='api-action' value='create' />\n<parameter name='resp-prefix' value='contrailResp' />\n<parameter name='default-domain' value='default-domain' />\n<parameter name='policy-name' value='`$ar.allotted-resource-data.contrail-route-topology.contrail-route-assignments.fq-name`' />\n<parameter name='default-project' value='`$tmp.ar.tenant-name`' /> \n<!-- dummy for dev <parameter name='default-project' value='default-project' /> -->\n<parameter name='vipr-service-instance' value='`$ar.allotted-resource-data.contrail-route-topology.contrail-route-assignments.contrail-applied-service.contrail-fqdn`' />\n<parameter name='dst-virtual-network' value='`$aai.dest-network.contrail-network-fqdn`' />\n<parameter name='src-virtual-network' value='`$aai.src-network.contrail-network-fqdn`' />\n<parameter name='direction' value='<>' />\n<parameter name='cloud-region-id' value='`$tmp.ar.cloud-region-id`' />\n\n",
628 "x": 620.0039978027344,
629 "y": 1345.5005213022232,
630 "z": "fbc4119e.39c3b",
639 "id": "2fb2335a.cbd49c",
642 "xml": "<outcome value='success'>\n",
645 "x": 901.384880065918,
646 "y": 1313.6428172923625,
647 "z": "fbc4119e.39c3b",
655 "id": "a5da0427.0c5768",
658 "xml": "<outcome value='failure'>\n",
661 "x": 899.4802017211914,
662 "y": 1346.6427570581436,
663 "z": "fbc4119e.39c3b",
671 "id": "bd1d7050.2c7d2",
672 "type": "switchNode",
673 "name": "switch source-network.network-id",
674 "xml": "<switch test='`$ar.allotted-resource-data.contrail-route-topology.contrail-route-assignments.source-network.network-id`'>\n\n",
677 "x": 622.0039520263672,
678 "y": 817.6667934656143,
679 "z": "fbc4119e.39c3b",
688 "id": "16cf3207.6919ae",
691 "xml": "<outcome value='Other'>",
694 "x": 978.0041694641113,
695 "y": 816.333172917366,
696 "z": "fbc4119e.39c3b",
704 "id": "4972ee2e.1e371",
707 "xml": "<outcome value=''>",
710 "x": 973.6709861755371,
711 "y": 779.3329731225967,
712 "z": "fbc4119e.39c3b",
720 "id": "7af5889b.368718",
722 "name": "for nidx..service-data.networks.network[]",
723 "xml": "<for index='nidx' start='0' end='`$service-data.networks.network_length`' >\n",
726 "x": 2113.448944091797,
727 "y": 856.1109507083893,
728 "z": "fbc4119e.39c3b",
736 "id": "e0a0a8a2.ee5b68",
737 "type": "switchNode",
738 "name": "switch service-data.networks.network_length",
739 "xml": "<switch test='`$service-data.networks.network_length`'>\n",
742 "x": 1369.829605102539,
743 "y": 816.3490000963211,
744 "z": "fbc4119e.39c3b",
753 "id": "25b29885.305408",
755 "name": "outcome Null",
756 "xml": "<outcome value=''>\n",
759 "x": 1658.829605102539,
760 "y": 818.3490611314774,
761 "z": "fbc4119e.39c3b",
769 "id": "d2c788cf.79feb8",
772 "xml": "<outcome value='Other'>\n",
775 "x": 1638.829605102539,
776 "y": 853.3490611314774,
777 "z": "fbc4119e.39c3b",
785 "id": "d2c2c0a9.d8b2c",
787 "name": "block : atomic",
788 "xml": "<block atomic=\"true\">",
791 "x": 1843.4329071044922,
792 "y": 857.2369349002838,
793 "z": "fbc4119e.39c3b",
801 "id": "4d7f64a6.3f3e3c",
808 "x": 1112.1154251098633,
809 "y": 816.7775775194168,
810 "z": "fbc4119e.39c3b",
818 "id": "f8faa309.794be",
819 "type": "returnFailure",
820 "name": "return failure",
821 "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",
823 "x": 1127.8044509887695,
824 "y": 779.999875664711,
825 "z": "fbc4119e.39c3b",
829 "id": "25abf517.021e9a",
830 "type": "returnFailure",
831 "name": "return failure",
832 "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",
834 "x": 1851.9376831054688,
835 "y": 818.6665213108063,
836 "z": "fbc4119e.39c3b",
840 "id": "d6797d24.acfca",
842 "name": "Find tenant id/cloud region from source network",
845 "x": 659.4042739868164,
846 "y": 784.333109498024,
847 "z": "fbc4119e.39c3b",
851 "id": "a1094de3.d998d",
852 "type": "switchNode",
853 "name": "switch networkid found",
854 "xml": "<switch test=\"`$service-data.networks.network[$nidx].network-id == $ar.allotted-resource-data.contrail-route-topology.contrail-route-assignments.source-network.network-id`\">\n\n",
857 "x": 2406.0037536621094,
858 "y": 853.0000774860382,
859 "z": "fbc4119e.39c3b",
868 "id": "cf465404.bca108",
870 "name": "set tmp vals",
871 "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\n\n",
873 "x": 2945.670425415039,
874 "y": 843.0000545978546,
875 "z": "fbc4119e.39c3b",
879 "id": "18df3dec.3762c2",
886 "x": 2755.736867904663,
887 "y": 856.0000660419464,
888 "z": "fbc4119e.39c3b",
897 "id": "2fc2f6cc.52811a",
898 "type": "outcomeTrue",
900 "xml": "<outcome value='true'>\n",
903 "x": 2600.2702445983887,
904 "y": 855.9999287128448,
905 "z": "fbc4119e.39c3b",
913 "id": "bd8b1543.d5feb8",
916 "xml": "<outcome value='Other'>\n",
919 "x": 2601.069854736328,
920 "y": 893.9999315738678,
921 "z": "fbc4119e.39c3b",
929 "id": "12777d15.58b793",
930 "type": "returnFailure",
931 "name": "return failure",
932 "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",
934 "x": 2779.070011138916,
935 "y": 893.9999973773956,
936 "z": "fbc4119e.39c3b",
940 "id": "a77873a9.58a3d",
941 "type": "get-resource",
942 "name": "get-resource tenant",
943 "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",
946 "x": 2968.1369705200195,
947 "y": 878.9997503757477,
948 "z": "fbc4119e.39c3b",
958 "id": "d053a66e.8a2958",
961 "xml": "<outcome value='not-found'>\n",
964 "x": 3188.998359680176,
965 "y": 871.6108648777008,
966 "z": "fbc4119e.39c3b",
974 "id": "f2ee2fa9.2bf8d",
977 "xml": "<outcome value='Other'>\n",
980 "x": 3184.331386566162,
981 "y": 904.9441788196564,
982 "z": "fbc4119e.39c3b",
990 "id": "fb3363cd.b2365",
991 "type": "returnFailure",
992 "name": "return failure",
993 "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",
995 "x": 3358.507308959961,
996 "y": 892.9997379779816,
997 "z": "fbc4119e.39c3b",
1001 "id": "d188bc90.da64f",
1004 "xml": "<outcome value='success'>\n",
1007 "x": 3184.507392883301,
1008 "y": 840.0368292331696,
1009 "z": "fbc4119e.39c3b",
1017 "id": "a5dbc0a1.7ca4b",
1019 "name": "block : atomic",
1020 "xml": "<block atomic=\"true\">",
1023 "x": 3364.507392883301,
1024 "y": 838.0368292331696,
1025 "z": "fbc4119e.39c3b",
1033 "id": "3eca1514.f49d8a",
1035 "name": "set tenant name",
1036 "xml": "<set>\n<parameter name='tmp.ar.tenant-name' value='`$aai.tenant.tenant-name`' />\n\n\n",
1038 "x": 3551.4704971313477,
1039 "y": 835.6665709018707,
1040 "z": "fbc4119e.39c3b",
1044 "id": "78389040.50c04",
1046 "name": "update AAI allotted-resource",
1047 "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=\"operational-status\" value=\"out-of-service-path\" />\n",
1050 "x": 568.4326171875,
1051 "y": 1801.274008154869,
1052 "z": "fbc4119e.39c3b",
1061 "id": "ee05ecac.f85f4",
1064 "xml": "<outcome value='failure'>\n",
1067 "x": 824.1945114135742,
1068 "y": 1778.512227654457,
1069 "z": "fbc4119e.39c3b",
1077 "id": "76238400.885e4c",
1079 "name": "not-found",
1080 "xml": "<outcome value='not-found'>\n",
1083 "x": 829.5039405822754,
1084 "y": 1814.0836454629898,
1085 "z": "fbc4119e.39c3b",
1093 "id": "9a72cd34.8de84",
1094 "type": "returnFailure",
1095 "name": "return failure",
1096 "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",
1098 "x": 1039.2897262573242,
1099 "y": 1780.1312719583511,
1100 "z": "fbc4119e.39c3b",
1104 "id": "3ebda3d1.60c63c",
1106 "name": "Update AAI AR",
1109 "x": 524.6326179504395,
1110 "y": 1770.416758980602,
1111 "z": "fbc4119e.39c3b",
1115 "id": "a4c8be00.baf52",
1116 "type": "returnFailure",
1117 "name": "return failure",
1118 "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=\"`'Failed to create policy in Contrail. '+ $contrailResp.resp-code + ':' +$contrailResp.resp-message `\" />\n",
1120 "x": 1059.385009765625,
1121 "y": 1345.9762045145035,
1122 "z": "fbc4119e.39c3b",
1126 "id": "96e58f96.3e0dc",
1129 "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=\"GENERIC-RESOURCE-API.contrail-route-topology-operation-create\"/>\n<parameter name='field3' value='network-policy' />\n<parameter name='field4' value='create' />\n<parameter name='field5' value='contrailResp' />\n<parameter name='field6' value='default-domain' />\n<parameter name='field7' value='`$ar.allotted-resource-data.contrail-route-topology.contrail-route-assignments.fq-name`' />\n<parameter name='field8' value='`$tmp.ar.tenant-name`' />\n<parameter name='field9' value='`$ar.allotted-resource-data.allotted-resource-operation-information.contrail-route-request-input.contrail-applied-service-info.contrail-fqdn`' />\n<parameter name='field10' value='$aai.dest-network.contrail-network-fqdn' />\n<parameter name='field11' value='$aai.src-network.contrail-network-fqdn' />\n<parameter name='field12' value='<>' />\n<parameter name='field13' value='$tmp.ar.cloud-region-id' />\n\n\n",
1132 "x": 508.09918212890625,
1133 "y": 1315.2619215250015,
1134 "z": "fbc4119e.39c3b",
1140 "id": "f4f87407.7b7138",
1141 "type": "not-found",
1142 "name": "not found",
1143 "xml": "<outcome value='not-found'>\n",
1146 "x": 904.2896728515625,
1147 "y": 895.5955168008804,
1148 "z": "fbc4119e.39c3b",
1156 "id": "29d6c655.17265a",
1157 "type": "get-resource",
1158 "name": "get AnAI - l3-network by network-id",
1159 "xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\tresource=\"l3-network\" \n\t\tkey=\"l3-network.network-id = $ar.allotted-resource-data.contrail-route-topology.contrail-route-assignments.source-network.network-id\" \n\t\tlocal-only=\"false\" \n\t\tpfx=\"aai.src-network\">\n",
1162 "x": 632.9165954589844,
1163 "y": 903.1277776956558,
1164 "z": "fbc4119e.39c3b",
1174 "id": "678eae69.b9714",
1177 "xml": "<outcome value='failure'>\n",
1180 "x": 897.0117797851562,
1181 "y": 930.0801206827164,
1182 "z": "fbc4119e.39c3b",
1190 "id": "81772977.20deb8",
1191 "type": "returnFailure",
1192 "name": "return failure",
1193 "xml": "<return status='failure'>\n\t<parameter name=\"error-code\" value=\"500\" />\n\t<parameter name=\"error-message\" value=\"`'Error retrieving source network with network-id=' + $ar.allotted-resource-data.contrail-route-topology.contrail-route-assignments.source-network.network-id + ' from AnAI'`\" />",
1195 "x": 1049.1227416992188,
1196 "y": 926.3023496866226,
1197 "z": "fbc4119e.39c3b",
1201 "id": "5e43af76.092db",
1204 "xml": "<outcome value='success'>\n",
1207 "x": 902.2897338867188,
1208 "y": 961.5955168008804,
1209 "z": "fbc4119e.39c3b",
1217 "id": "aa41ec1c.71542",
1219 "name": "block : atomic",
1220 "xml": "<block atomic=\"true\">",
1223 "x": 1054.956298828125,
1224 "y": 959.9288450479507,
1225 "z": "fbc4119e.39c3b",
1231 "id": "ffbc6d1d.bd87f",
1233 "name": "GET source network from AAI",
1236 "x": 605.7182312011719,
1237 "y": 871.3097540140152,
1238 "z": "fbc4119e.39c3b",
1242 "id": "a32f696b.7ff868",
1243 "type": "not-found",
1244 "name": "not found",
1245 "xml": "<outcome value='not-found'>\n",
1248 "x": 908.5753784179688,
1249 "y": 1002.7382913827896,
1250 "z": "fbc4119e.39c3b",
1258 "id": "808bf1b8.60d31",
1259 "type": "get-resource",
1260 "name": "get AnAI - l3-network by network-id",
1261 "xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\tresource=\"l3-network\" \n\t\tkey=\"l3-network.network-id = $ar.allotted-resource-data.contrail-route-topology.contrail-route-assignments.dest-network.network-id\" \n\t\tlocal-only=\"false\" \n\t\tpfx=\"aai.dest-network\">\n",
1264 "x": 637.2023162841797,
1265 "y": 1013.6038881540298,
1266 "z": "fbc4119e.39c3b",
1276 "id": "9ad6ea77.f2aad8",
1279 "xml": "<outcome value='failure'>\n",
1282 "x": 901.2974853515625,
1283 "y": 1037.2228952646255,
1284 "z": "fbc4119e.39c3b",
1292 "id": "8a6cd51f.44caa8",
1293 "type": "returnFailure",
1294 "name": "return failure",
1295 "xml": "<return status='failure'>\n\t<parameter name=\"error-code\" value=\"500\" />\n\t<parameter name=\"error-message\" value=\"`'Error retrieving destination network with network-id=' + $ar.allotted-resource-data.contrail-route-topology.contrail-route-assignments.source-network.network-id + ' from AnAI'`\" />",
1297 "x": 1053.408447265625,
1298 "y": 1033.4451242685318,
1299 "z": "fbc4119e.39c3b",
1303 "id": "4dcfd8c5.d1f5f8",
1306 "xml": "<outcome value='success'>\n",
1309 "x": 901.575439453125,
1310 "y": 1073.7382627725601,
1311 "z": "fbc4119e.39c3b",
1319 "id": "532eb226.00307c",
1321 "name": "block : atomic",
1322 "xml": "<block atomic=\"true\">",
1325 "x": 1054.2420043945312,
1326 "y": 1072.0715910196304,
1327 "z": "fbc4119e.39c3b",
1333 "id": "f7c80e16.0bab8",
1335 "name": "GET dest network from AAI",
1338 "x": 610.0039367675781,
1339 "y": 978.4525285959244,
1340 "z": "fbc4119e.39c3b",
1344 "id": "2a90d119.3eaf9e",
1346 "name": "set temp contrail fqdn for input to contrail",
1347 "xml": "<set>\n<parameter name='aai.src-network.contrail-network-fqdn' value='`tmpsourcecontrailfqdn`' />\n<parameter name='aai.dest-network.contrail-network-fqdn' value='`tmpdestinationcontrailfqdn`' />",
1349 "x": 643.0039710998535,
1350 "y": 1160.5954176187515,
1351 "z": "fbc4119e.39c3b",
1355 "id": "1c40ddfb.ac3da2",
1362 "x": 1053.5753631591797,
1363 "y": 1314.309542298317,
1364 "z": "fbc4119e.39c3b",
1370 "id": "7d144ee0.ee98f",
1372 "name": "set ar-assignments",
1373 "xml": "<set>\n<parameter name='ar-assignments.' value=\"`$ar.allotted-resource-data.contrail-route-topology.contrail-route-assignments.`\" />\n\n\n\n",
1375 "x": 584.2896690368652,
1376 "y": 642.2381588220596,
1377 "z": "fbc4119e.39c3b",
1381 "id": "65bdabe8.142354",
1383 "name": "set ar-assignments",
1384 "xml": "<set>\n<parameter name='ar.allotted-resource-data.contrail-route-topology.contrail-route-assignments.' value='`$ar-assignments.`' />\n\n\n\n",
1386 "x": 531.4326019287109,
1387 "y": 1861.2740770578384,
1388 "z": "fbc4119e.39c3b",
1392 "id": "483287bc.c27a28",
1393 "type": "switchNode",
1394 "name": "switch contrailResp.resp-code",
1395 "xml": "<switch test='`$contrailResp.resp-code`'>\n\n",
1398 "x": 586.611083984375,
1399 "y": 1410.9167677164078,
1400 "z": "fbc4119e.39c3b",
1409 "id": "5959bd36.12d064",
1411 "name": "outcome 0",
1412 "xml": "<outcome value='0'>\n",
1415 "x": 863.7540863752365,
1416 "y": 1410.9168983697891,
1417 "z": "fbc4119e.39c3b",
1425 "id": "f8777e5b.220e7",
1428 "xml": "<outcome value='Other'>\n",
1431 "x": 843.7539978027344,
1432 "y": 1438.4168020486832,
1433 "z": "fbc4119e.39c3b",
1441 "id": "f5b88fb1.136b5",
1442 "type": "returnFailure",
1443 "name": "return failure",
1444 "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=\"`'Failed to create policy in Contrail. '+ $contrailResp.resp-code + ':' +$contrailResp.resp-message `\" />\n",
1446 "x": 1016.2540969848633,
1447 "y": 1440.9169002771378,
1448 "z": "fbc4119e.39c3b",
1452 "id": "ba0eee80.bc27f",
1459 "x": 1008.7539978027344,
1460 "y": 1410.9168001413345,
1461 "z": "fbc4119e.39c3b",
1467 "id": "6e33a9b5.9b7438",
1469 "name": "Dummy values for dev/dev",
1472 "x": 590.0039176940918,
1473 "y": 1123.666897892952,
1474 "z": "fbc4119e.39c3b",
1478 "id": "cf49ae05.2f29",
1480 "name": "call policy-manager-create-policy",
1481 "xml": "<call module='GENERIC-RESOURCE-API' rpc='policy-manager-create-policy' mode='sync' >\n",
1484 "x": 605.1466903686523,
1485 "y": 1545.0951210260391,
1486 "z": "fbc4119e.39c3b",
1495 "id": "eefb278d.613d48",
1498 "xml": "<outcome value='failure'>\n",
1501 "x": 840.7260513305664,
1502 "y": 1542.4370886087418,
1503 "z": "fbc4119e.39c3b",
1511 "id": "526e4a66.638b34",
1514 "xml": "<outcome value='success'>\n",
1517 "x": 846.718318939209,
1518 "y": 1583.2381640672684,
1519 "z": "fbc4119e.39c3b",
1527 "id": "7657e814.bd32b8",
1529 "name": "block : atomic",
1530 "xml": "<block atomic=\"true\">",
1533 "x": 999.3848838806152,
1534 "y": 1581.5714923143387,
1535 "z": "fbc4119e.39c3b",
1541 "id": "bc667334.be1b7",
1543 "name": "execute Contrail API delete network policy",
1544 "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.contrail.ContrailAdaptor' method='sendContrailRequest' emitsOutcome='true' >\n<parameter name='api-name' value='network-policy' />\n<parameter name='api-action' value='delete' />\n<parameter name='resp-prefix' value='contrailResp' />\n<parameter name='cloud-region-id' value='`$tmp.ar.cloud-region-id`' />\n<parameter name='contrail-network-policy-id' value='`$ar-assignments.contrail-id`' />\n\n",
1547 "x": 1293.7182312011719,
1548 "y": 1540.809497475624,
1549 "z": "fbc4119e.39c3b",
1558 "id": "f2a919a7.bd34a8",
1561 "xml": "<outcome value='success'>\n",
1564 "x": 1570.813377380371,
1565 "y": 1510.3803775645792,
1566 "z": "fbc4119e.39c3b",
1574 "id": "7bf7079a.433c68",
1577 "xml": "<outcome value='failure'>\n",
1580 "x": 1568.9086990356445,
1581 "y": 1543.3803173303604,
1582 "z": "fbc4119e.39c3b",
1590 "id": "bae7bbac.394ad8",
1591 "type": "returnFailure",
1592 "name": "return failure",
1593 "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=\"`'Failed to create Policy in Policy Mgr. Rollback failed to delete policy in Contrail. '+ $contrailResp.resp-code + ':' +$contrailResp.resp-message `\" />\n",
1595 "x": 1728.8135070800781,
1596 "y": 1540.7137647867203,
1597 "z": "fbc4119e.39c3b",
1601 "id": "f667916c.8d17b",
1608 "x": 1723.0038604736328,
1609 "y": 1511.0471025705338,
1610 "z": "fbc4119e.39c3b",
1616 "id": "f9ba847c.ff2c28",
1618 "name": "block: atomic",
1619 "xml": "<block atomic=\"true\">\n",
1623 "x": 999.4324951171875,
1624 "y": 1536.5238481760025,
1625 "z": "fbc4119e.39c3b",
1634 "id": "1ae7d1e2.6be47e",
1635 "type": "returnFailure",
1636 "name": "return failure",
1637 "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=\"`'Failed to create policy in PolicyMgr. '+ $error-message + 'Contrail network policy rolled back.'`\" />\n",
1639 "x": 1198.0038833618164,
1640 "y": 1580.8096100091934,
1641 "z": "fbc4119e.39c3b",