3 "id": "53d16eb.3d9c19",
8 "y": 91.66666734218597,
9 "z": "9891698.5acc798",
17 "id": "25de91ce.b5fd3e",
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": 293.24200439453125,
26 "y": 165.61906814575195,
27 "z": "9891698.5acc798",
35 "id": "e1dc9e95.202cd",
37 "name": "api-contrail-route-topology-operation-deactivate",
38 "xml": "<method rpc='api-contrail-route-topology-operation-deactivate' mode='sync'>\n",
41 "x": 370.15875244140625,
42 "y": 252.8571262359619,
43 "z": "9891698.5acc798",
51 "id": "6e723a37.5fb414",
53 "name": "block : atomic",
54 "xml": "<block atomic=\"true\">",
58 "x": 281.4800910949707,
60 "z": "9891698.5acc798",
95 "id": "db65c59e.74b7a8",
96 "type": "returnSuccess",
97 "name": "return success",
98 "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",
100 "x": 465.0040092468262,
101 "y": 2449.214762687683,
102 "z": "9891698.5acc798",
106 "id": "f000cefd.dc0b3",
108 "name": "set allotted-resource-oper-status",
109 "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.create-timestamp' value='`$tmp.current-time`' />\n",
111 "x": 528.7580795288086,
112 "y": 2272.3847150802612,
113 "z": "9891698.5acc798",
117 "id": "cdda444b.68b9e8",
119 "name": "set tmp.ar.self-link",
120 "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",
122 "x": 582.9920043945312,
123 "y": 517.0000739097595,
124 "z": "9891698.5acc798",
128 "id": "12ebac6c.60c404",
130 "name": "execute Properties - pull properties file",
131 "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",
134 "x": 648.2474060058594,
135 "y": 552.8983492851257,
136 "z": "9891698.5acc798",
142 "id": "24a1e3b8.72820c",
144 "name": "execute RestApiCallNode - Get AR by id",
145 "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",
148 "x": 658.0227127075195,
149 "y": 719.6262936592102,
150 "z": "9891698.5acc798",
159 "id": "304813c4.78d06c",
161 "name": "generate allotted-resource url",
162 "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",
165 "x": 628.5688323974609,
166 "y": 640.183976650238,
167 "z": "9891698.5acc798",
173 "id": "654fd033.2374d",
176 "xml": "<outcome value='success'>\n",
179 "x": 903.3188171386719,
180 "y": 720.4341073036194,
181 "z": "9891698.5acc798",
189 "id": "917d9ac2.daff68",
191 "name": "execute RestApiCallNode - PUT AR by id",
192 "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",
195 "x": 556.8665466308594,
196 "y": 2346.4342346191406,
197 "z": "9891698.5acc798",
207 "id": "a132d913.f96618",
210 "xml": "<outcome value='not-found'>\n",
213 "x": 827.1745643615723,
214 "y": 2399.432435415685,
215 "z": "9891698.5acc798",
223 "id": "4e2f6479.132e3c",
226 "xml": "<outcome value='failure'>\n",
229 "x": 818.1746139526367,
230 "y": 2367.9324611648917,
231 "z": "9891698.5acc798",
239 "id": "8f713fc1.307d3",
242 "xml": "<outcome value='success'>\n",
245 "x": 821.9246520996094,
246 "y": 2338.289566040039,
247 "z": "9891698.5acc798",
255 "id": "ebb7c978.74fc68",
256 "type": "returnFailure",
257 "name": "return failure",
258 "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",
260 "x": 1201.924690246582,
261 "y": 2390.682702064514,
262 "z": "9891698.5acc798",
266 "id": "3df8944b.0fdb1c",
268 "name": "block: atomic",
269 "xml": "<block atomic=\"true\">\n",
273 "x": 1072.3188209533691,
274 "y": 718.9340081214905,
275 "z": "9891698.5acc798",
283 "id": "fe4125ac.e2a618",
284 "type": "switchNode",
285 "name": "switch cr length",
286 "xml": "<switch test='`$mdsal-ar.contrail-route-allotted-resource_length`'>\n",
289 "x": 1283.1760635375977,
290 "y": 718.5531373023987,
291 "z": "9891698.5acc798",
300 "id": "c1828e09.7c766",
303 "xml": "<outcome value='1'>\n",
306 "x": 1475.0094146728516,
307 "y": 708.5529913902283,
308 "z": "9891698.5acc798",
316 "id": "761ce19c.f38bd",
318 "name": "set ar from get",
319 "xml": "<set>\n<parameter name='ar.' value='$mdsal-ar.contrail-route-allotted-resource[0].' />\n",
321 "x": 1910.7001266479492,
322 "y": 640.5411952733994,
323 "z": "9891698.5acc798",
327 "id": "1075f3bd.78220c",
329 "name": "block: atomic",
330 "xml": "<block atomic='true'>\n",
334 "x": 1622.033197402954,
335 "y": 674.2078136205673,
336 "z": "9891698.5acc798",
346 "id": "a52395f3.775018",
348 "name": "GET security-zone-allotted-resource from mdsal",
351 "x": 671.3187599182129,
352 "y": 686.9339966773987,
353 "z": "9891698.5acc798",
357 "id": "47365a0f.ec0b44",
358 "type": "switchNode",
359 "name": "switch order-status",
360 "xml": "<switch test='`$ar.allotted-resource-data.allotted-resource-oper-status.order-status`'>\n",
363 "x": 1925.4498958587646,
364 "y": 674.0411601066589,
365 "z": "9891698.5acc798",
374 "id": "27cedd03.00f992",
376 "name": "outcome Other",
377 "xml": "<outcome value='Other'>\n",
380 "x": 2162.3475799560547,
381 "y": 685.9698594808578,
382 "z": "9891698.5acc798",
390 "id": "c35abdc0.fb371",
391 "type": "returnFailure",
392 "name": "return failure",
393 "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",
395 "x": 2402.966470718384,
396 "y": 683.8744969367981,
397 "z": "9891698.5acc798",
401 "id": "ef7d2a57.a57ab8",
403 "name": "unset ar-assignments.vlan-tag",
404 "xml": "<set>\n<parameter name='ar-assignments.vlan-tag' value=\"\" />\n\n\n\n",
406 "x": 527.8663635253906,
407 "y": 2117.7200841903687,
408 "z": "9891698.5acc798",
412 "id": "3afefdf5.e26e02",
414 "name": "save backup copy of mdsal-ar for rollback",
415 "xml": "<set>\n<parameter name='bk-cr-ar' value='$mdsal-ar.' />\n",
417 "x": 1998.5571784973145,
418 "y": 607.3506873846054,
419 "z": "9891698.5acc798",
423 "id": "a0f9f9b2.6dea88",
425 "name": "Create urls for restapi",
428 "x": 599.4616394042969,
429 "y": 609.7911038398743,
430 "z": "9891698.5acc798",
434 "id": "eefff8f0.c4e068",
441 "x": 963.5806198120117,
442 "y": 2334.481735229492,
443 "z": "9891698.5acc798",
449 "id": "c9cc6752.6dade8",
451 "name": "execute getTime",
452 "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='setTime' >\n <parameter name=\"outputPath\" value=\"tmp.current-time\" />\n\n",
455 "x": 479.5806655883789,
456 "y": 2238.8148736953735,
457 "z": "9891698.5acc798",
463 "id": "7eec538d.ff920c",
464 "type": "returnFailure",
465 "name": "return failure",
466 "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",
468 "x": 1698.4211654663086,
469 "y": 836.250256061554,
470 "z": "9891698.5acc798",
474 "id": "5baf96ad.89c9b8",
477 "xml": "<outcome value='Other'>\n",
480 "x": 895.1706199645996,
481 "y": 755.5001921653748,
482 "z": "9891698.5acc798",
490 "id": "c0b50cc8.0305c",
492 "name": "block: atomic",
493 "xml": "<block atomic=\"true\">\n",
497 "x": 1075.1705703735352,
498 "y": 756.1667428016663,
499 "z": "9891698.5acc798",
507 "id": "39f2e04d.45825",
510 "xml": "<outcome value='Other'>\n",
513 "x": 1471.3372955322266,
514 "y": 758.0834441184998,
515 "z": "9891698.5acc798",
523 "id": "8148b606.b5c048",
530 "x": 2386.837516784668,
531 "y": 649.583414554596,
532 "z": "9891698.5acc798",
538 "id": "471309fc.092828",
540 "name": "Need to rollback aai here",
543 "x": 1457.0040893554688,
544 "y": 2374.0000858306885,
545 "z": "9891698.5acc798",
549 "id": "24005d3f.56b7f2",
551 "name": "outcome Active",
552 "xml": "<outcome value='Active'>\n",
555 "x": 2177.1092224121094,
556 "y": 654.2078708410263,
557 "z": "9891698.5acc798",
565 "id": "90ac8599.5b3ae8",
567 "name": "update AAI allotted-resource",
568 "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 = $ar.allotted-resource-data.contrail-route-topology.allotted-resource-identifiers.parent-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\t<parameter name=\"orchestration-status\" value=\"deactivated\" />\n",
571 "x": 513.3372497558594,
572 "y": 2198.333420753479,
573 "z": "9891698.5acc798",
582 "id": "927b7e29.3db75",
585 "xml": "<outcome value='failure'>\n",
588 "x": 769.0991821289062,
589 "y": 2175.5715951919556,
590 "z": "9891698.5acc798",
598 "id": "e2f7efc5.ee287",
601 "xml": "<outcome value='not-found'>\n",
604 "x": 774.4086112976074,
605 "y": 2211.1430130004883,
606 "z": "9891698.5acc798",
614 "id": "84e2dba0.6f81c8",
615 "type": "returnFailure",
616 "name": "return failure",
617 "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",
619 "x": 1189.1944961547852,
620 "y": 2180.190938949585,
621 "z": "9891698.5acc798",
625 "id": "b2f1d1d9.c33eb",
627 "name": "Update AAI AR",
630 "x": 476.6801071166992,
631 "y": 2161.7618646621704,
632 "z": "9891698.5acc798",
636 "id": "4b7740d3.fc61b",
638 "name": "set ar-assignments",
639 "xml": "<set>\n<parameter name='ar-assignments.' value=\"`$ar.allotted-resource-data.contrail-route-topology.contrail-route-assignments.`\" />\n\n\n\n",
641 "x": 595.5039672851562,
642 "y": 784.1667847633362,
643 "z": "9891698.5acc798",
647 "id": "bdfabc43.1fa35",
650 "xml": "<outcome value='not-found'>\n",
653 "x": 919.1942672729492,
654 "y": 938.7144109010696,
655 "z": "9891698.5acc798",
663 "id": "21e2e99a.b2c5f6",
664 "type": "get-resource",
665 "name": "get AnAI - l3-network by network-id",
666 "xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\tresource=\"l3-network\" \n\t\tkey=\"l3-network.network-id = $ar-assignments.source-network.network-id\" \n\t\tlocal-only=\"false\" \n\t\tpfx=\"aai.src-network\">\n",
669 "x": 642.3926086425781,
670 "y": 949.9609279632568,
671 "z": "9891698.5acc798",
681 "id": "102d56af.96fb69",
684 "xml": "<outcome value='failure'>\n",
687 "x": 911.916374206543,
688 "y": 973.1990147829056,
689 "z": "9891698.5acc798",
697 "id": "7d9f0d21.7d4054",
698 "type": "returnFailure",
699 "name": "return failure",
700 "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-assignments.source-network.network-id + ' from AnAI'`\" />",
702 "x": 1064.0273361206055,
703 "y": 969.4212437868118,
704 "z": "9891698.5acc798",
708 "id": "71792be9.fe8114",
711 "xml": "<outcome value='success'>\n",
714 "x": 917.1943283081055,
715 "y": 1004.7144109010696,
716 "z": "9891698.5acc798",
724 "id": "e45895d6.2a9618",
726 "name": "block : atomic",
727 "xml": "<block atomic=\"true\">",
730 "x": 1069.8608932495117,
731 "y": 1003.04773914814,
732 "z": "9891698.5acc798",
738 "id": "36beda8e.435b36",
740 "name": "GET source network from AAI",
743 "x": 620.6228256225586,
744 "y": 918.7144050598145,
745 "z": "9891698.5acc798",
749 "id": "35892e52.03d1d2",
752 "xml": "<outcome value='not-found'>\n",
755 "x": 899.9085998535156,
756 "y": 1550.4287673830986,
757 "z": "9891698.5acc798",
765 "id": "1755b0ad.40d95f",
766 "type": "get-resource",
767 "name": "get AnAI - l3-network by network-id",
768 "xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\tresource=\"l3-network\" \n\t\tkey=\"l3-network.network-id = $ar-assignments.dest-network.network-id\" \n\t\tlocal-only=\"false\" \n\t\tpfx=\"aai.dest-network\">\n",
771 "x": 628.5355224609375,
772 "y": 1557.961028277874,
773 "z": "9891698.5acc798",
783 "id": "929dab66.defa08",
786 "xml": "<outcome value='failure'>\n",
789 "x": 892.6307067871094,
790 "y": 1584.9133712649345,
791 "z": "9891698.5acc798",
799 "id": "25536135.8ba92e",
800 "type": "returnFailure",
801 "name": "return failure",
802 "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'`\" />",
804 "x": 1298.7418670654297,
805 "y": 1571.1360874176025,
806 "z": "9891698.5acc798",
810 "id": "eccf34c6.ec9728",
813 "xml": "<outcome value='success'>\n",
816 "x": 900.480110168457,
817 "y": 1626.2858138084412,
818 "z": "9891698.5acc798",
826 "id": "9532d76.7c12f28",
828 "name": "block : atomic",
829 "xml": "<block atomic=\"true\">",
832 "x": 1053.1466751098633,
833 "y": 1624.6191420555115,
834 "z": "9891698.5acc798",
840 "id": "82b74742.3fb438",
842 "name": "GET dest network from AAI",
845 "x": 601.3371429443359,
846 "y": 1526.1430203318596,
847 "z": "9891698.5acc798",
851 "id": "f7ee430b.8143b",
853 "name": "set cloud-region-id for input to contrail",
854 "xml": "<set>\n<parameter name='cloud-region-id' value='`$tmp.ar.cloud-region-id`' />\n",
856 "x": 653.331916809082,
857 "y": 1029.9470138549805,
858 "z": "9891698.5acc798",
862 "id": "d5ee6347.74eeb",
864 "name": "execute Contrail API remove network policy to source network",
865 "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='`$cto-api.cloud-region-id`' />\n<parameter name='default-project' value='`$cto-api.default-project`' />\n<parameter name='default-domain' value='`$cto-api.default-domain`' />\n<parameter name='contrail-network-policy-id' value='`$ar-assignments.contrail-id`' />\n<parameter name='contrail-network-policy-fq-name' value='`$ar-assignments.fq-name`' />\n<parameter name='contrail-virtual-network-id' value='`$uuidresp.uuid`' />\n\n",
868 "x": 699.5225219726562,
869 "y": 1361.9473094940186,
870 "z": "9891698.5acc798",
879 "id": "ecc68255.1d081",
882 "xml": "<outcome value='success'>\n",
885 "x": 1053.1889877319336,
886 "y": 1362.375388622284,
887 "z": "9891698.5acc798",
895 "id": "d43b6488.136558",
898 "xml": "<outcome value='failure'>\n",
901 "x": 1051.284309387207,
902 "y": 1395.375328388065,
903 "z": "9891698.5acc798",
911 "id": "1dbc7790.e7ae58",
912 "type": "returnFailure",
913 "name": "return failure",
914 "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",
916 "x": 1211.189079284668,
917 "y": 1394.708694934845,
918 "z": "9891698.5acc798",
922 "id": "ea841139.28697",
929 "x": 1205.3794708251953,
930 "y": 1363.0421136282384,
931 "z": "9891698.5acc798",
937 "id": "aa7b29ba.46e3f8",
939 "name": "Apply the policy to source network",
942 "x": 615.9086761474609,
943 "y": 1329.999993801117,
944 "z": "9891698.5acc798",
948 "id": "d622c4ae.e4c078",
950 "name": "execute Contrail API remove network policy to destination network",
951 "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='`$cto-api.cloud-region-id`' />\n<parameter name='default-project' value='`$cto-api.default-project`' />\n<parameter name='default-domain' value='`$cto-api.default-domain`' />\n<parameter name='contrail-network-policy-id' value='`$ar-assignments.contrail-id`' />\n<parameter name='contrail-network-policy-fq-name' value='`$ar-assignments.fq-name`' />\n<parameter name='contrail-virtual-network-id' value='`$uuidresp.uuid`' />\n\n",
954 "x": 630.9087524414062,
955 "y": 1993.0005702972412,
956 "z": "9891698.5acc798",
965 "id": "d7319da9.6f11f",
968 "xml": "<outcome value='success'>\n",
971 "x": 978.5752029418945,
972 "y": 1940.4285743236542,
973 "z": "9891698.5acc798",
981 "id": "6527b311.a1725c",
984 "xml": "<outcome value='failure'>\n",
987 "x": 971.6705017089844,
988 "y": 2000.4286079406738,
989 "z": "9891698.5acc798",
997 "id": "48db747b.77152c",
998 "type": "returnFailure",
999 "name": "return failure",
1000 "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",
1002 "x": 1324.575210571289,
1003 "y": 1999.7620124816895,
1004 "z": "9891698.5acc798",
1008 "id": "79c0bf3e.8f161",
1015 "x": 1130.7656631469727,
1016 "y": 1940.0952320098877,
1017 "z": "9891698.5acc798",
1023 "id": "e59fc471.19e8d8",
1025 "name": "Apply the policy to dest network",
1028 "x": 527.2948684692383,
1029 "y": 1962.053059577942,
1030 "z": "9891698.5acc798",
1034 "id": "532f22ba.12601c",
1036 "name": "Update network policy in AAI - relationship to networks",
1039 "x": 590.9087066650391,
1040 "y": 2038.9999990463257,
1041 "z": "9891698.5acc798",
1045 "id": "3cffa7a5.824108",
1047 "name": "delete AnAI - network-policy relationship to source/dest network",
1048 "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",
1051 "x": 628.2856140136719,
1052 "y": 2072.0676736831665,
1053 "z": "9891698.5acc798",
1062 "id": "667534.67f40acc",
1063 "type": "returnFailure",
1064 "name": "return failure",
1065 "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",
1067 "x": 1300.6311531066895,
1068 "y": 2089.3492336273193,
1069 "z": "9891698.5acc798",
1073 "id": "769c8a99.b4b644",
1076 "xml": "<outcome value='failure'>\n",
1079 "x": 941.0597457885742,
1080 "y": 2051.365255355835,
1081 "z": "9891698.5acc798",
1089 "id": "edbcd523.680bd8",
1090 "type": "not-found",
1091 "name": "not-found",
1092 "xml": "<outcome value='not-found'>\n",
1095 "x": 949.8692474365234,
1096 "y": 2083.841604232788,
1097 "z": "9891698.5acc798",
1105 "id": "b36a3a75.c03f18",
1107 "name": "Paramaters",
1108 "info": "INPUT:\ncto-api.default-domain\ncto-api.default-project\ncto-api.cloud-region-id\ncto-api.contrail-route-allotted-resource-id\ncto-api.rollback-flag\ncto-api.src-contrail-network-fqdn\ncto-api.collector-contrail-network-fqdn\n",
1110 "x": 125.0039291381836,
1112 "z": "9891698.5acc798",
1116 "id": "eaf9a24a.34c19",
1118 "name": "call validate-api-contrail-route-input",
1119 "xml": "<call module='GENERIC-RESOURCE-API' rpc='validate-api-contrail-route-input' mode='sync' >\n",
1122 "x": 648.0039520263672,
1123 "y": 417.6667326026509,
1124 "z": "9891698.5acc798",
1130 "id": "5fd1bc26.619354",
1132 "name": "set tmp.ar.allotted-resource-id,etc",
1133 "xml": "<set>\n<parameter name='tmp.ar.allotted-resource-id' value='`$cto-api.contrail-route-allotted-resource-id`' />\n<parameter name='tmp.ar.parent-service-instance-id' value='`$cto-api.parent-service-instance-id`' />\n\n\n\n",
1136 "y": 453.75488233566284,
1137 "z": "9891698.5acc798",
1141 "id": "5a6539af.a4eef8",
1142 "type": "switchNode",
1143 "name": "switch source-network.network-id",
1144 "xml": "<switch test='`$ar-assignments.source-network.network-id`'>\n\n",
1147 "x": 641.9086380004883,
1148 "y": 881.9999370574951,
1149 "z": "9891698.5acc798",
1158 "id": "c16d9d8f.2f742",
1161 "xml": "<outcome value='Other'>",
1164 "x": 995.908863067627,
1165 "y": 882.6663212776184,
1166 "z": "9891698.5acc798",
1174 "id": "b4ab046c.7bbdd8",
1177 "xml": "<outcome value=''>",
1180 "x": 991.5756797790527,
1181 "y": 845.6661214828491,
1182 "z": "9891698.5acc798",
1190 "id": "1fdb4c68.9dcdd4",
1197 "x": 1130.020118713379,
1198 "y": 883.1107258796692,
1199 "z": "9891698.5acc798",
1205 "id": "47d494e.8feca6c",
1206 "type": "returnFailure",
1207 "name": "return failure",
1208 "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",
1210 "x": 1145.7091445922852,
1211 "y": 846.3330240249634,
1212 "z": "9891698.5acc798",
1216 "id": "adbc3d8f.4c88c",
1218 "name": "Validate source network exists",
1221 "x": 622.3090057373047,
1222 "y": 848.6662721633911,
1223 "z": "9891698.5acc798",
1227 "id": "97ba91e7.6ad5a",
1228 "type": "switchNode",
1229 "name": "switch dest-network.network-id",
1230 "xml": "<switch test='`$ar-assignments.dest-network.network-id`'>\n\n",
1233 "x": 621.0039978027344,
1234 "y": 1493.00412940979,
1235 "z": "9891698.5acc798",
1244 "id": "86591e48.8b912",
1247 "xml": "<outcome value='Other'>",
1250 "x": 987.0041847229004,
1251 "y": 1496.670422077179,
1252 "z": "9891698.5acc798",
1260 "id": "2d369d82.a15852",
1263 "xml": "<outcome value=''>",
1266 "x": 982.6710014343262,
1267 "y": 1459.6702222824097,
1268 "z": "9891698.5acc798",
1276 "id": "6424c74c.6bf1b8",
1283 "x": 1121.1154403686523,
1284 "y": 1497.1148266792297,
1285 "z": "9891698.5acc798",
1291 "id": "b0ad8b07.b6b7a8",
1292 "type": "returnFailure",
1293 "name": "return failure",
1294 "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. Dest network not found\" />\n",
1296 "x": 1136.8044662475586,
1297 "y": 1460.337124824524,
1298 "z": "9891698.5acc798",
1302 "id": "34108a7a.83c866",
1304 "name": "Validate dest network exists",
1307 "x": 613.4043273925781,
1308 "y": 1462.6703729629517,
1309 "z": "9891698.5acc798",
1313 "id": "e4f9d349.fde5f",
1315 "name": "execute Contrail API fqname to uuid for source network",
1316 "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.contrail.ContrailAdaptor' method='sendContrailRequest' emitsOutcome='true' >\n<parameter name='api-name' value='fqname-to-uuid' />\n<parameter name='api-action' value='get' />\n<parameter name='resp-prefix' value='uuidresp' />\n<parameter name='cloud-region-id' value='`$cto-api.cloud-region-id`' />\n<parameter name='default-project' value='`$cto-api.default-project`' />\n<parameter name='default-domain' value='`$cto-api.default-domain`' />\n<parameter name='fqname-type' value='virtual-network' />\n<parameter name='policy-name' value='`$src-virtual-network-fqname`' />\n\n",
1319 "x": 701.0039825439453,
1320 "y": 1207.0039501190186,
1321 "z": "9891698.5acc798",
1330 "id": "d6f6c55b.f02538",
1333 "xml": "<outcome value='success'>\n",
1336 "x": 1033.003921508789,
1337 "y": 1184.0037670135498,
1338 "z": "9891698.5acc798",
1346 "id": "403f3b66.46ae04",
1349 "xml": "<outcome value='failure'>\n",
1352 "x": 1036.0992584228516,
1353 "y": 1219.0036638639867,
1354 "z": "9891698.5acc798",
1362 "id": "bd482d4e.9ce62",
1363 "type": "returnFailure",
1364 "name": "return failure",
1365 "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 find network uuid for Contrail to source network\" />\n",
1367 "x": 1196.0040283203125,
1368 "y": 1218.3370304107666,
1369 "z": "9891698.5acc798",
1373 "id": "b2bec48b.7b25f8",
1380 "x": 1176.1943817138672,
1381 "y": 1180.6704998016357,
1382 "z": "9891698.5acc798",
1388 "id": "15b849c5.50cd26",
1390 "name": "execute Split to get contrail virtual network fqname without defaults",
1391 "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='split'>\n <parameter name='ctx_memory_result_key' value='virtual-network-fqdn-split' />\n <parameter name='original_string' value='`$aai.src-network.contrail-network-fqdn`' />\n <parameter name='regex' value=':' />\n\n\n",
1395 "y": 1082.0038414001465,
1396 "z": "9891698.5acc798",
1402 "id": "ce7dd724.3acf18",
1404 "name": "set src-virtual-network-fqname",
1405 "xml": "<set>\n<parameter name='src-virtual-network-fqname' value='`$virtual-network-fqdn-split[$virtual-network-fqdn-split_length - 1]`' />\n",
1407 "x": 1255.6705322265625,
1408 "y": 1138.670630455017,
1409 "z": "9891698.5acc798",
1413 "id": "e7dae05c.bc65f",
1414 "type": "switchNode",
1415 "name": "switch virtual-network-fqdn-split length",
1416 "xml": "<switch test='`$virtual-network-fqdn-split_length`'>\n",
1419 "x": 645.6706695556641,
1420 "y": 1122.0036134719849,
1421 "z": "9891698.5acc798",
1430 "id": "22a0284e.af4fa8",
1432 "name": "outcome 0",
1433 "xml": "<outcome value='0'>\n",
1436 "x": 1071.0040283203125,
1437 "y": 1103.003870010376,
1438 "z": "9891698.5acc798",
1446 "id": "172bcac1.b14ca5",
1449 "xml": "<outcome value='Other'>\n",
1452 "x": 1058.670597076416,
1453 "y": 1138.3371086120605,
1454 "z": "9891698.5acc798",
1462 "id": "3a81459a.53c3ca",
1463 "type": "returnFailure",
1464 "name": "return failure",
1465 "xml": "<return status='failure'>\n<parameter name='error-code' value='500' />\n<parameter name='error-message' value='Unable to determine network fq-name from contrail fqdn' />\n",
1467 "x": 1236.3374214172363,
1468 "y": 1101.3372583389282,
1469 "z": "9891698.5acc798",
1473 "id": "d5fd35ad.ade908",
1475 "name": "execute Contrail API fqname to uuid for dest network",
1476 "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.contrail.ContrailAdaptor' method='sendContrailRequest' emitsOutcome='true' >\n<parameter name='api-name' value='fqname-to-uuid' />\n<parameter name='api-action' value='get' />\n<parameter name='resp-prefix' value='uuidresp' />\n<parameter name='cloud-region-id' value='`$cto-api.cloud-region-id`' />\n<parameter name='default-project' value='`$dest-default-project`' />\n<parameter name='default-domain' value='`$cto-api.default-domain`' />\n<parameter name='fqname-type' value='virtual-network' />\n<parameter name='policy-name' value='`$dest-virtual-network-fqname`' />\n\n",
1479 "x": 666.7540435791016,
1480 "y": 1857.004072189331,
1481 "z": "9891698.5acc798",
1490 "id": "6705929e.e0e77c",
1493 "xml": "<outcome value='success'>\n",
1496 "x": 1012.7540740966797,
1497 "y": 1815.0038328170776,
1498 "z": "9891698.5acc798",
1506 "id": "c2d11fad.9664b",
1509 "xml": "<outcome value='failure'>\n",
1512 "x": 1010.8493499755859,
1513 "y": 1851.00389656052,
1514 "z": "9891698.5acc798",
1522 "id": "3a2af246.f1c3be",
1523 "type": "returnFailure",
1524 "name": "return failure",
1525 "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 find network uuid for Contrail to destination network\" />\n",
1527 "x": 1336.7541999816895,
1528 "y": 1850.3376598358154,
1529 "z": "9891698.5acc798",
1533 "id": "a622e69d.cbb0c8",
1540 "x": 1164.9445571899414,
1541 "y": 1815.6705578230321,
1542 "z": "9891698.5acc798",
1548 "id": "7089138.b1a97ec",
1550 "name": "execute Split to get contrail virtual network fqname from contrail-network-fqdn",
1551 "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='split'>\n <parameter name='ctx_memory_result_key' value='virtual-network-fqdn-split' />\n <parameter name='original_string' value='`$aai.dest-network.contrail-network-fqdn`' />\n <parameter name='regex' value=':' />\n\n\n",
1554 "x": 748.7538528442383,
1555 "y": 1669.0042209625244,
1556 "z": "9891698.5acc798",
1562 "id": "a6c01b92.c4b048",
1564 "name": "set dest-virtual-network-fqname",
1565 "xml": "<set>\n<parameter name='dest-virtual-network-fqname' value='`$virtual-network-fqdn-split[$virtual-network-fqdn-split_length - 1]`' />\n<parameter name='dest-default-project' value='`$virtual-network-fqdn-split[$virtual-network-fqdn-split_length - 2]`' />\n",
1567 "x": 1247.4204864501953,
1568 "y": 1763.6705312728882,
1569 "z": "9891698.5acc798",
1573 "id": "94758d7.de9a07",
1574 "type": "switchNode",
1575 "name": "switch virtual-network-fqdn-split length",
1576 "xml": "<switch test='`$virtual-network-fqdn-split_length`'>\n",
1579 "x": 624.4206771850586,
1580 "y": 1775.0039176940918,
1581 "z": "9891698.5acc798",
1590 "id": "64135014.1484c",
1592 "name": "outcome 0",
1593 "xml": "<outcome value='0'>\n",
1596 "x": 1062.7539825439453,
1597 "y": 1728.003770828247,
1598 "z": "9891698.5acc798",
1606 "id": "78fd4449.d5663c",
1609 "xml": "<outcome value='Other'>\n",
1612 "x": 1050.4205513000488,
1613 "y": 1763.3370094299316,
1614 "z": "9891698.5acc798",
1622 "id": "da434e7c.51705",
1623 "type": "returnFailure",
1624 "name": "return failure",
1625 "xml": "<return status='failure'>\n<parameter name='error-code' value='500' />\n<parameter name='error-message' value='Unable to determine network fq-name from contrail fqdn' />\n",
1627 "x": 1392.0874862670898,
1628 "y": 1729.3372602462769,
1629 "z": "9891698.5acc798",
1633 "id": "9c989359.3958a",
1635 "name": "execute Contrail API apply network policy to destination network",
1636 "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='`$cto-api.cloud-region-id`' />\n<parameter name='default-project' value='`$cto-api.default-project`' />\n<parameter name='default-domain' value='`$cto-api.default-domain`' />\n<parameter name='contrail-network-policy-id' value='`$ar-assignments.contrail-id`' />\n<parameter name='contrail-network-policy-fq-name' value='`$ar-assignments.fq-name`' />\n<parameter name='contrail-virtual-network-id' value='`$dest-uuid`' />\n\n",
1639 "x": 1952.254035949707,
1640 "y": 1987.0046873092651,
1641 "z": "9891698.5acc798",
1649 "id": "2b256c3a.a1ee64",
1651 "name": "execute Contrail API apply network policy to source network",
1652 "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='`$cto-api.cloud-region-id`' />\n<parameter name='default-project' value='`$cto-api.default-project`' />\n<parameter name='default-domain' value='`$cto-api.default-domain`' />\n<parameter name='contrail-network-policy-id' value='`$ar-assignments.contrail-id`' />\n<parameter name='contrail-network-policy-fq-name' value='`$ar-assignments.fq-name`' />\n<parameter name='contrail-virtual-network-id' value='`$src-uuid`' />\n\n",
1655 "x": 1955.2542667388916,
1656 "y": 1436.004343032837,
1657 "z": "9891698.5acc798",
1665 "id": "b2e4ce3a.78ab",
1668 "xml": "<outcome value='Other'>",
1671 "x": 2367.7539672851562,
1672 "y": 1600.004165649414,
1673 "z": "9891698.5acc798",
1681 "id": "be4c8985.5285d8",
1688 "x": 2501.865222930908,
1689 "y": 1600.4485702514648,
1690 "z": "9891698.5acc798",
1696 "id": "b739671e.70ddd8",
1698 "name": "set dest-uuid",
1699 "xml": "<set>\n<parameter name='dest-uuid' value='`$uuidresp.uuid`' />",
1703 "z": "9891698.5acc798",
1707 "id": "56153950.54ad38",
1709 "name": "set src-uuid",
1710 "xml": "<set>\n<parameter name='src-uuid' value='`$uuidresp.uuid`' />",
1714 "z": "9891698.5acc798",
1718 "id": "f782658b.df7a58",
1725 "x": 1061.003921508789,
1726 "y": 1571.003975868225,
1727 "z": "9891698.5acc798",
1736 "id": "30e65481.3602fc",
1745 "z": "9891698.5acc798",
1754 "id": "b72968fd.8211a8",
1763 "z": "9891698.5acc798",
1772 "id": "d1acf48f.1528d8",
1781 "z": "9891698.5acc798",
1790 "id": "6815d49e.d4968c",
1799 "z": "9891698.5acc798",
1809 "id": "5ffafd8c.fe0b24",
1818 "z": "9891698.5acc798",
1828 "id": "42ff2a69.2ea5e4",
1837 "z": "9891698.5acc798",