8 "y": 66.99999904632568,
9 "z": "1907a3e8.ef01ec",
17 "id": "e3536c87.13bbe",
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": 295.2419891357422,
26 "y": 141.952392578125,
27 "z": "1907a3e8.ef01ec",
35 "id": "32e23dff.190972",
37 "name": "contrail-route-topology-operation-deactivate",
38 "xml": "<method rpc='contrail-route-topology-operation-deactivate' mode='sync'>\n",
41 "x": 375.1587562561035,
42 "y": 211.1904411315918,
43 "z": "1907a3e8.ef01ec",
51 "id": "c4f5eee9.6967e",
53 "name": "block : atomic",
54 "xml": "<block atomic=\"true\">",
58 "x": 283.4800910949707,
59 "y": 354.5237832069397,
60 "z": "1907a3e8.ef01ec",
89 "id": "86e70516.39d8f8",
90 "type": "returnSuccess",
91 "name": "return success",
92 "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",
94 "x": 546.003978729248,
95 "y": 2280.548007965088,
96 "z": "1907a3e8.ef01ec",
100 "id": "a3036c42.f5314",
102 "name": "set output to api handler",
103 "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",
105 "x": 574.757884979248,
106 "y": 2243.003801345825,
107 "z": "1907a3e8.ef01ec",
111 "id": "df7e9878.bf2438",
113 "name": "set allotted-resource-oper-status",
114 "xml": "<set>\n<parameter name='ar.allotted-resource-data.allotted-resource-oper-status.order-status' value='PendingDelete' />\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",
116 "x": 609.7580490112305,
117 "y": 2103.717960357666,
118 "z": "1907a3e8.ef01ec",
122 "id": "e41af924.acac48",
124 "name": "set tmp.ar.self-link",
125 "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",
127 "x": 545.7419624328613,
128 "y": 328.3333206176758,
129 "z": "1907a3e8.ef01ec",
133 "id": "600fb8be.00cd98",
135 "name": "set tmp.ar.allotted-resource-id,etc",
136 "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.sz-vnf-id' value='`$contrail-route-topology-operation-input.allotted-resource-data.security-zone-topology.security-zone-assignments.security-zone-vnf-id`' />\n\n\n",
138 "x": 593.0012245178223,
139 "y": 294.592586517334,
140 "z": "1907a3e8.ef01ec",
144 "id": "ec5ab69c.960248",
146 "name": "execute Properties - pull properties file",
147 "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",
150 "x": 615.9973220825195,
151 "y": 364.2315492630005,
152 "z": "1907a3e8.ef01ec",
158 "id": "c2196657.5c5568",
160 "name": "execute RestApiCallNode - Get AR by id",
161 "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",
164 "x": 622.5226516723633,
165 "y": 532.4595079421997,
166 "z": "1907a3e8.ef01ec",
175 "id": "a3185364.e3557",
177 "name": "generate allotted-resource url",
178 "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",
181 "x": 580.0687522888184,
182 "y": 424.0172243118286,
183 "z": "1907a3e8.ef01ec",
189 "id": "c4a17fbb.5689e",
192 "xml": "<outcome value='success'>\n",
195 "x": 867.8187561035156,
196 "y": 533.2673215866089,
197 "z": "1907a3e8.ef01ec",
205 "id": "c89d538f.9aa9d",
207 "name": "execute RestApiCallNode - PUT AR by id",
208 "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",
211 "x": 637.8665161132812,
212 "y": 2177.7674798965454,
213 "z": "1907a3e8.ef01ec",
223 "id": "143ba41d.04eb0c",
226 "xml": "<outcome value='not-found'>\n",
229 "x": 908.1745338439941,
230 "y": 2230.76568069309,
231 "z": "1907a3e8.ef01ec",
239 "id": "b003cfcf.73519",
242 "xml": "<outcome value='failure'>\n",
245 "x": 899.1745834350586,
246 "y": 2199.2657064422965,
247 "z": "1907a3e8.ef01ec",
255 "id": "cffa818d.e26b9",
258 "xml": "<outcome value='success'>\n",
261 "x": 902.9246215820312,
262 "y": 2169.622811317444,
263 "z": "1907a3e8.ef01ec",
271 "id": "f851a353.e9aa2",
272 "type": "returnFailure",
273 "name": "return failure",
274 "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",
276 "x": 1068.9246215820312,
277 "y": 2200.0157302841544,
278 "z": "1907a3e8.ef01ec",
282 "id": "cac5050.acefef8",
284 "name": "block: atomic",
285 "xml": "<block atomic=\"true\">\n",
289 "x": 1036.818759918213,
290 "y": 531.76722240448,
291 "z": "1907a3e8.ef01ec",
299 "id": "4b3e1791.ede978",
300 "type": "switchNode",
301 "name": "switch cr length",
302 "xml": "<switch test='`$mdsal-ar.contrail-route-allotted-resource_length`'>\n",
305 "x": 1247.6760025024414,
306 "y": 531.3863515853882,
307 "z": "1907a3e8.ef01ec",
316 "id": "308a03ed.e1727c",
319 "xml": "<outcome value='1'>\n",
322 "x": 1437.0093078613281,
323 "y": 531.3863096237183,
324 "z": "1907a3e8.ef01ec",
332 "id": "e2e2a405.0fa288",
334 "name": "set ar from get",
335 "xml": "<set>\n<parameter name='ar.' value='$mdsal-ar.contrail-route-allotted-resource[0].' />\n",
337 "x": 1910.2001266479492,
338 "y": 494.62452507019043,
339 "z": "1907a3e8.ef01ec",
343 "id": "c91abe4f.2358d",
345 "name": "block: atomic",
346 "xml": "<block atomic='true'>\n",
350 "x": 1621.533197402954,
351 "y": 528.2911434173584,
352 "z": "1907a3e8.ef01ec",
362 "id": "e450a5fc.4f5528",
364 "name": "set oper-status",
365 "xml": "<set>\n<parameter name='sz-ar.allotted-resource-data.allotted-resource-oper-status.last-action' value='`$sz-ar.allotted-resource-data.allotted-resource-operation-information.request-information.request-action`' />\n<parameter name='sz-ar.allotted-resource-data.allotted-resource-oper-status.last-rpc-action' value='`$sz-ar.allotted-resource-status.rpc-action`' />\n<parameter name='sz-ar.allotted-resource-data.allotted-resource-oper-status.last-svc-request-id' value='`$sz-ar.allotted-resource-data.allotted-resource-operation-information.sdnc-request-header.svc-request-id`' />\n\n",
367 "x": 1918.2000541687012,
368 "y": 558.7196683883667,
369 "z": "1907a3e8.ef01ec",
373 "id": "e509658b.31b9c8",
375 "name": "GET security-zone-allotted-resource from mdsal",
378 "x": 635.8186988830566,
379 "y": 499.7672109603882,
380 "z": "1907a3e8.ef01ec",
384 "id": "63c12cc3.289684",
385 "type": "switchNode",
386 "name": "switch order-status",
387 "xml": "<switch test='`$ar.allotted-resource-data.allotted-resource-oper-status.order-status`'>\n",
390 "x": 1926.199909210205,
391 "y": 525.6244802474976,
392 "z": "1907a3e8.ef01ec",
401 "id": "9249324b.98c72",
403 "name": "outcome Other",
404 "xml": "<outcome value='Other'>\n",
407 "x": 2161.8475799560547,
408 "y": 540.0531892776489,
409 "z": "1907a3e8.ef01ec",
417 "id": "7a2c59b1.1ae928",
418 "type": "returnFailure",
419 "name": "return failure",
420 "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\" \n value=\"`'Existing contrail-route-allotted-resource with order status of ' + $ar.allotted-resource-data.allotted-resource-oper-status.order-status + '.'`\" />\n",
422 "x": 2402.466329574585,
423 "y": 542.9577789306641,
424 "z": "1907a3e8.ef01ec",
428 "id": "58da4328.00307c",
430 "name": "unset ar-assignments.vlan-tag",
431 "xml": "<set>\n<parameter name='ar-assignments.vlan-tag' value=\"\" />\n\n\n\n",
433 "x": 583.866325378418,
434 "y": 1641.053183555603,
435 "z": "1907a3e8.ef01ec",
439 "id": "a38edad2.503f08",
441 "name": "save backup copy of mdsal-ar for rollback",
442 "xml": "<set>\n<parameter name='bk-cr-ar' value='$mdsal-ar.' />\n",
444 "x": 1998.0571784973145,
445 "y": 461.4340171813965,
446 "z": "1907a3e8.ef01ec",
450 "id": "a821712b.17818",
452 "name": "Create urls for restapi",
455 "x": 550.9615592956543,
456 "y": 393.62435150146484,
457 "z": "1907a3e8.ef01ec",
461 "id": "94b3659a.a43058",
468 "x": 1044.5805892944336,
469 "y": 2165.814980506897,
470 "z": "1907a3e8.ef01ec",
476 "id": "485d44b.3f22bbc",
478 "name": "execute getTime",
479 "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='setTime' >\n <parameter name=\"outputPath\" value=\"tmp.current-time\" />\n\n",
482 "x": 560.5806350708008,
483 "y": 2070.1481189727783,
484 "z": "1907a3e8.ef01ec",
490 "id": "67e85008.65268",
491 "type": "returnFailure",
492 "name": "return failure",
493 "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",
495 "x": 1620.670904159546,
496 "y": 644.333384513855,
497 "z": "1907a3e8.ef01ec",
501 "id": "18d8cd61.df5a73",
504 "xml": "<outcome value='Other'>\n",
507 "x": 859.6705589294434,
508 "y": 568.3334064483643,
509 "z": "1907a3e8.ef01ec",
517 "id": "91ff2ac7.39d1e8",
519 "name": "block: atomic",
520 "xml": "<block atomic=\"true\">\n",
524 "x": 1039.670509338379,
525 "y": 568.9999570846558,
526 "z": "1907a3e8.ef01ec",
534 "id": "cadfd5a3.bfaee8",
536 "name": "set ar data",
537 "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",
539 "x": 531.670524597168,
540 "y": 564.6666212081909,
541 "z": "1907a3e8.ef01ec",
545 "id": "47b8a1d5.c5ec",
548 "xml": "<outcome value='Other'>\n",
551 "x": 1425.3372611999512,
552 "y": 568.666669845581,
553 "z": "1907a3e8.ef01ec",
561 "id": "54b8535a.8e269c",
568 "x": 2386.337375640869,
569 "y": 508.6666965484619,
570 "z": "1907a3e8.ef01ec",
576 "id": "616e5aa8.bace14",
578 "name": "Call contrail api here",
581 "x": 561.8610305786133,
582 "y": 631.2857141494751,
583 "z": "1907a3e8.ef01ec",
587 "id": "2c80a456.b1f4cc",
589 "name": "Need to rollback aai here",
592 "x": 1295.0038833618164,
593 "y": 2199.3333253860474,
594 "z": "1907a3e8.ef01ec",
598 "id": "46f742ec.a9b84c",
600 "name": "Create network policy in AAI",
603 "x": 594.337158203125,
604 "y": 2019.333212852478,
605 "z": "1907a3e8.ef01ec",
609 "id": "34ad81d1.e734ae",
611 "name": "outcome Active",
612 "xml": "<outcome value='Active'>\n",
615 "x": 2176.6092224121094,
616 "y": 508.2912006378174,
617 "z": "1907a3e8.ef01ec",
625 "id": "7b764332.cfbc8c",
627 "name": "update AAI allotted-resource",
628 "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",
631 "x": 582.3372192382812,
632 "y": 1797.6666612625122,
633 "z": "1907a3e8.ef01ec",
642 "id": "90496b8f.cd3e48",
645 "xml": "<outcome value='failure'>\n",
648 "x": 838.0991516113281,
649 "y": 1774.9048357009888,
650 "z": "1907a3e8.ef01ec",
658 "id": "17738c07.d91474",
661 "xml": "<outcome value='not-found'>\n",
664 "x": 843.4085807800293,
665 "y": 1810.4762535095215,
666 "z": "1907a3e8.ef01ec",
674 "id": "61ddf82d.16ddf8",
675 "type": "returnFailure",
676 "name": "return failure",
677 "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",
679 "x": 1053.1943664550781,
680 "y": 1776.5238800048828,
681 "z": "1907a3e8.ef01ec",
685 "id": "f9c0d920.6a3758",
687 "name": "Update AAI AR",
690 "x": 545.6800765991211,
691 "y": 1761.0951051712036,
692 "z": "1907a3e8.ef01ec",
696 "id": "e7206768.0e4798",
698 "name": "set ar-assignments",
699 "xml": "<set>\n<parameter name='ar-assignments.' value=\"`$ar.allotted-resource-data.contrail-route-topology.contrail-route-assignments.`\" />\n\n\n\n",
702 "y": 596.9999990463257,
703 "z": "1907a3e8.ef01ec",
707 "id": "2ef8c27b.c719fe",
708 "type": "returnFailure",
709 "name": "return failure",
710 "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",
712 "x": 1606.575590133667,
713 "y": 743.6666250228882,
714 "z": "1907a3e8.ef01ec",
718 "id": "895fb59c.cb29c8",
721 "xml": "<outcome value='not-found'>\n",
724 "x": 860.1942520141602,
725 "y": 897.0476351976395,
726 "z": "1907a3e8.ef01ec",
734 "id": "ac156492.2e6298",
735 "type": "get-resource",
736 "name": "get AnAI - l3-network by network-id",
737 "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",
740 "x": 583.3925933837891,
741 "y": 908.2941522598267,
742 "z": "1907a3e8.ef01ec",
752 "id": "c50e7042.f8b7",
755 "xml": "<outcome value='failure'>\n",
758 "x": 852.9163589477539,
759 "y": 931.5322390794754,
760 "z": "1907a3e8.ef01ec",
768 "id": "8e996274.f6a77",
769 "type": "returnFailure",
770 "name": "return failure",
771 "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'`\" />",
773 "x": 1005.0273208618164,
774 "y": 927.7544680833817,
775 "z": "1907a3e8.ef01ec",
779 "id": "8bf1acb1.85f35",
782 "xml": "<outcome value='success'>\n",
785 "x": 858.1943130493164,
786 "y": 963.0476351976395,
787 "z": "1907a3e8.ef01ec",
795 "id": "6b62a765.1e4e88",
797 "name": "block : atomic",
798 "xml": "<block atomic=\"true\">",
801 "x": 1010.8608779907227,
802 "y": 961.3809634447098,
803 "z": "1907a3e8.ef01ec",
809 "id": "b5253c8d.7010d",
811 "name": "GET source network from AAI",
814 "x": 561.6228103637695,
815 "y": 877.0476293563843,
816 "z": "1907a3e8.ef01ec",
820 "id": "d8c05d1d.86ab3",
823 "xml": "<outcome value='not-found'>\n",
826 "x": 877.9085922241211,
827 "y": 1160.7619490623474,
828 "z": "1907a3e8.ef01ec",
836 "id": "7f032d3b.5762a4",
837 "type": "get-resource",
838 "name": "get AnAI - l3-network by network-id",
839 "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",
842 "x": 606.535514831543,
843 "y": 1168.2942099571228,
844 "z": "1907a3e8.ef01ec",
854 "id": "ceac0fa8.21cc",
857 "xml": "<outcome value='failure'>\n",
860 "x": 870.6306991577148,
861 "y": 1195.2465529441833,
862 "z": "1907a3e8.ef01ec",
870 "id": "b6770bb6.5606e8",
871 "type": "returnFailure",
872 "name": "return failure",
873 "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'`\" />",
875 "x": 1022.7416610717773,
876 "y": 1191.4687819480896,
877 "z": "1907a3e8.ef01ec",
881 "id": "db0f5df8.46428",
884 "xml": "<outcome value='success'>\n",
887 "x": 880.4801025390625,
888 "y": 1229.6190176010132,
889 "z": "1907a3e8.ef01ec",
897 "id": "7a8602cf.c3ed2c",
899 "name": "block : atomic",
900 "xml": "<block atomic=\"true\">",
903 "x": 1033.1466674804688,
904 "y": 1227.9523458480835,
905 "z": "1907a3e8.ef01ec",
911 "id": "dc7abd78.211da",
913 "name": "GET dest network from AAI",
916 "x": 579.3371353149414,
917 "y": 1136.4762020111084,
918 "z": "1907a3e8.ef01ec",
922 "id": "a041f2a.fea5e1",
924 "name": "set policy fq-name",
925 "xml": "<set>\n<parameter name='tmp.fq-name' value=\"`$ar.allotted-resource-data.contrail-route-topology.contrail-route-assignments.fq-name` \" />\n",
927 "x": 532.3372192382812,
928 "y": 954.190390586853,
929 "z": "1907a3e8.ef01ec",
933 "id": "25a06dee.1913e2",
935 "name": "set cloud-region-id for input to contrail",
936 "xml": "<set>\n<parameter name='cloud-region-id' value='`$tmp.ar.cloud-region-id`' />\n",
938 "x": 594.331901550293,
939 "y": 988.2802381515503,
940 "z": "1907a3e8.ef01ec",
944 "id": "316bd14d.1e3f7e",
946 "name": "execute Contrail API apply network policy to source network",
947 "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='remove' />\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<parameter name='contrail-network-policy-fq-name' value='`$ar-assignments.contrail-fq-name`' />\n<parameter name='contrail-virtual-network-id' value='`$aai.src-network.contrail-network-fqdn`' />\n\n",
950 "x": 670.5224227905273,
951 "y": 1061.280436038971,
952 "z": "1907a3e8.ef01ec",
961 "id": "c0fb54dc.a8e1a8",
964 "xml": "<outcome value='success'>\n",
967 "x": 1026.1889190673828,
968 "y": 1061.7086629867554,
969 "z": "1907a3e8.ef01ec",
977 "id": "4b7ba790.40c118",
980 "xml": "<outcome value='failure'>\n",
983 "x": 1024.2842407226562,
984 "y": 1094.7086027525365,
985 "z": "1907a3e8.ef01ec",
993 "id": "b56db03.6e1275",
994 "type": "returnFailure",
995 "name": "return failure",
996 "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n <parameter name=\"error-message\" value=\"Failed to remove policy in Contrail from source network\" />\n",
998 "x": 1184.1890106201172,
999 "y": 1094.0419692993164,
1000 "z": "1907a3e8.ef01ec",
1004 "id": "130dd766.3e4979",
1011 "x": 1178.3794021606445,
1012 "y": 1062.3753879927099,
1013 "z": "1907a3e8.ef01ec",
1019 "id": "bcbcae69.e41a6",
1020 "type": "switchNode",
1021 "name": "switch source-network.network-id",
1022 "xml": "<switch test='`$ar.allotted-resource-data.contrail-route-topology.contrail-route-assignments.source-network.network-id`'>\n\n",
1025 "x": 586.9085922241211,
1026 "y": 833.3332395553589,
1027 "z": "1907a3e8.ef01ec",
1036 "id": "a8cf0dfe.c0676",
1039 "xml": "<outcome value='Other'>",
1042 "x": 942.9088096618652,
1043 "y": 831.9996190071106,
1044 "z": "1907a3e8.ef01ec",
1052 "id": "b0bcf579.d52d48",
1055 "xml": "<outcome value=''>",
1058 "x": 938.575626373291,
1059 "y": 794.9994192123413,
1060 "z": "1907a3e8.ef01ec",
1068 "id": "4a3cc27f.d1207c",
1069 "type": "switchNode",
1070 "name": "switch service-data.networks.network_length",
1071 "xml": "<switch test='`$service-data.networks.network_length`'>\n",
1074 "x": 1334.734245300293,
1075 "y": 832.0154461860657,
1076 "z": "1907a3e8.ef01ec",
1085 "id": "ced5ea6e.50d148",
1087 "name": "outcome Null",
1088 "xml": "<outcome value=''>\n",
1091 "x": 1623.734245300293,
1092 "y": 834.0155072212219,
1093 "z": "1907a3e8.ef01ec",
1101 "id": "4e2e2769.bc7988",
1104 "xml": "<outcome value='Other'>\n",
1107 "x": 1603.734245300293,
1108 "y": 869.0155072212219,
1109 "z": "1907a3e8.ef01ec",
1117 "id": "e4489b27.0ab3d8",
1124 "x": 1077.0200653076172,
1125 "y": 832.4440236091614,
1126 "z": "1907a3e8.ef01ec",
1134 "id": "e8402b5f.bacaf8",
1135 "type": "returnFailure",
1136 "name": "return failure",
1137 "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 activating contrail route. Source network not found\" />\n",
1139 "x": 1092.7090911865234,
1140 "y": 795.6663217544556,
1141 "z": "1907a3e8.ef01ec",
1145 "id": "ea7023cf.b9d96",
1147 "name": "Find tenant id/cloud region from source network",
1150 "x": 624.3089141845703,
1151 "y": 799.9995555877686,
1152 "z": "1907a3e8.ef01ec",
1156 "id": "c37f3483.2bbfa8",
1158 "name": "for nidx..service-data.networks.network[]",
1159 "xml": "<for index='nidx' start='0' end='`$service-data.networks.network_length`' >\n",
1162 "x": 2066.9086532592773,
1163 "y": 869.3332624435425,
1164 "z": "1907a3e8.ef01ec",
1172 "id": "7f100db9.54a9d4",
1174 "name": "block : atomic",
1175 "xml": "<block atomic=\"true\">",
1178 "x": 1792.892692565918,
1179 "y": 869.4592623710632,
1180 "z": "1907a3e8.ef01ec",
1188 "id": "7df1b688.54eb98",
1189 "type": "returnFailure",
1190 "name": "return failure",
1191 "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 activating contrail route. Source network not found\" />\n",
1193 "x": 1805.3973922729492,
1194 "y": 833.8888330459595,
1195 "z": "1907a3e8.ef01ec",
1199 "id": "64560a.8f1f79f8",
1200 "type": "switchNode",
1201 "name": "switch networkid found",
1202 "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",
1205 "x": 2359.46346282959,
1206 "y": 866.2223892211914,
1207 "z": "1907a3e8.ef01ec",
1216 "id": "6f43e020.46433",
1218 "name": "set cloud region id",
1219 "xml": "<set>\n<parameter name='tmp.ar.cloud-region-id' value='`$service-data.networks.network[$nidx].network-data.network-topology.aic-cloud-region`' />\n\n\n",
1221 "x": 2946.130142211914,
1222 "y": 868.2223949432373,
1223 "z": "1907a3e8.ef01ec",
1227 "id": "ba9643b0.6b37d",
1234 "x": 2709.1965770721436,
1235 "y": 869.2223777770996,
1236 "z": "1907a3e8.ef01ec",
1244 "id": "7342e4d1.67d22c",
1245 "type": "outcomeTrue",
1247 "xml": "<outcome value='true'>\n",
1250 "x": 2553.729953765869,
1251 "y": 869.222240447998,
1252 "z": "1907a3e8.ef01ec",
1260 "id": "a2517fec.05268",
1263 "xml": "<outcome value='Other'>\n",
1266 "x": 2554.5295639038086,
1267 "y": 907.222243309021,
1268 "z": "1907a3e8.ef01ec",
1276 "id": "b1867f01.f4838",
1277 "type": "returnFailure",
1278 "name": "return failure",
1279 "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 activating contrail route. Source network not found\" />\n",
1281 "x": 2732.5297203063965,
1282 "y": 907.2223091125488,
1283 "z": "1907a3e8.ef01ec",
1287 "id": "b3a00b12.59bf18",
1289 "name": "Apply the policy to source network",
1292 "x": 588.9086074829102,
1293 "y": 1029.3332681655884,
1294 "z": "1907a3e8.ef01ec",
1298 "id": "735dd19a.3e195",
1300 "name": "execute Contrail API apply network policy to destination network",
1301 "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='remove' />\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<parameter name='contrail-network-policy-fq-name' value='`$ar-assignments.contrail-fq-name`' />\n<parameter name='contrail-virtual-network-id' value='`$aai.dest-network.contrail-network-fqdn`' />\n\n",
1304 "x": 694.9086532592773,
1305 "y": 1313.333275794983,
1306 "z": "1907a3e8.ef01ec",
1315 "id": "b28c1bec.d5a608",
1318 "xml": "<outcome value='success'>\n",
1321 "x": 1030.5750885009766,
1322 "y": 1313.7614665031433,
1323 "z": "1907a3e8.ef01ec",
1331 "id": "7421f45.064d50c",
1334 "xml": "<outcome value='failure'>\n",
1337 "x": 1028.67041015625,
1338 "y": 1346.7614062689245,
1339 "z": "1907a3e8.ef01ec",
1347 "id": "3ac5d5d2.c2451a",
1348 "type": "returnFailure",
1349 "name": "return failure",
1350 "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 remove policy in Contrail from dest network\" />\n",
1352 "x": 1188.575180053711,
1353 "y": 1346.0947728157043,
1354 "z": "1907a3e8.ef01ec",
1358 "id": "f586735b.d7b1f",
1365 "x": 1182.7655715942383,
1366 "y": 1314.4281915090978,
1367 "z": "1907a3e8.ef01ec",
1373 "id": "ad4f0026.b8dda",
1375 "name": "Apply the policy to dest network",
1378 "x": 593.2947769165039,
1379 "y": 1281.3860716819763,
1380 "z": "1907a3e8.ef01ec",
1384 "id": "7882567f.5f5408",
1386 "name": "Update network policy in AAI - relationship to networks",
1389 "x": 656.9086608886719,
1390 "y": 1423.3332471847534,
1391 "z": "1907a3e8.ef01ec",
1395 "id": "61e59930.9891c8",
1397 "name": "delete AnAI - network-policy relationship to source/dest network",
1398 "xml": "<delete plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\tresource=\"network-policy:relationship-list\" \n\tkey=\"network-policy.network-policy-id = $ar-assignments.contrail-id and related-to = 'l3-network' \" >\n\n\n\n",
1401 "x": 694.2855682373047,
1402 "y": 1456.4009218215942,
1403 "z": "1907a3e8.ef01ec",
1412 "id": "c3e7254d.3fafa8",
1413 "type": "returnFailure",
1414 "name": "return failure",
1415 "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",
1417 "x": 1242.6310081481934,
1418 "y": 1450.6824344396591,
1419 "z": "1907a3e8.ef01ec",
1423 "id": "bef2cc41.3ba14",
1426 "xml": "<outcome value='failure'>\n",
1429 "x": 1014.0596160888672,
1430 "y": 1453.6981719732285,
1431 "z": "1907a3e8.ef01ec",
1439 "id": "82796ef8.27467",
1440 "type": "not-found",
1441 "name": "not-found",
1442 "xml": "<outcome value='not-found'>\n",
1445 "x": 1017.8691139221191,
1446 "y": 1483.174588561058,
1447 "z": "1907a3e8.ef01ec",