3 "id": "fbf8fafe.8924a8",
9 "z": "433d56b8.8f2a38",
17 "id": "ddbd49c0.51ec78",
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": 262.24205017089844,
26 "y": 173.95630741119385,
27 "z": "433d56b8.8f2a38",
35 "id": "a91124c9.ea56d8",
37 "name": "api-contrail-route-topology-operation-activate",
38 "xml": "<method rpc='api-contrail-route-topology-operation-activate' mode='sync'>\n",
41 "x": 343.1587562561035,
42 "y": 245.1943483352661,
43 "z": "433d56b8.8f2a38",
51 "id": "1232d48a.c84e2b",
53 "name": "block : atomic",
54 "xml": "<block atomic=\"true\">",
58 "x": 251.4800910949707,
59 "y": 388.527690410614,
60 "z": "433d56b8.8f2a38",
95 "id": "71348154.08357",
97 "name": "set tmp.ar.self-link",
98 "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",
100 "x": 532.9920654296875,
101 "y": 554.3372249603271,
102 "z": "433d56b8.8f2a38",
106 "id": "a7c33159.020f2",
108 "name": "set tmp.ar.allotted-resource-id,etc",
109 "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",
111 "x": 571.7514038085938,
112 "y": 466.09673595428467,
113 "z": "433d56b8.8f2a38",
117 "id": "de0622d4.cc88e",
119 "name": "execute Properties - pull properties file",
120 "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",
123 "x": 599.3545074462891,
124 "y": 590.2354888916016,
125 "z": "433d56b8.8f2a38",
131 "id": "5b0f0e89.fff95",
133 "name": "execute RestApiCallNode - Get AR by id",
134 "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",
137 "x": 601.6655883789062,
138 "y": 743.7134675979614,
139 "z": "433d56b8.8f2a38",
148 "id": "b926e867.47b478",
150 "name": "generate allotted-resource url",
151 "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",
154 "x": 563.3187942504883,
155 "y": 665.2711420059204,
156 "z": "433d56b8.8f2a38",
162 "id": "d443ea24.922b58",
165 "xml": "<outcome value='success'>\n",
168 "x": 855.461727142334,
169 "y": 740.0213012695312,
170 "z": "433d56b8.8f2a38",
178 "id": "3d1387c8.400188",
180 "name": "block: atomic",
181 "xml": "<block atomic=\"true\">\n",
185 "x": 1024.4617309570312,
186 "y": 738.5212020874023,
187 "z": "433d56b8.8f2a38",
195 "id": "2516635.614c89c",
196 "type": "switchNode",
197 "name": "switch cr length",
198 "xml": "<switch test='`$mdsal-ar.contrail-route-allotted-resource_length`'>\n",
201 "x": 1212.8189811706543,
202 "y": 736.8903217315674,
203 "z": "433d56b8.8f2a38",
212 "id": "514a86f5.812698",
215 "xml": "<outcome value='1'>\n",
218 "x": 1392.1524467468262,
219 "y": 738.1403217315674,
220 "z": "433d56b8.8f2a38",
228 "id": "609fa81b.43f0b8",
230 "name": "set ar from get",
231 "xml": "<set>\n<parameter name='ar.' value='$mdsal-ar.contrail-route-allotted-resource[0].' />\n",
233 "x": 1792.9501419067383,
234 "y": 678.3785338401794,
235 "z": "433d56b8.8f2a38",
239 "id": "797cc731.3341e8",
241 "name": "block: atomic",
242 "xml": "<block atomic='true'>\n",
246 "x": 1581.4262981414795,
247 "y": 644.5451211929321,
248 "z": "433d56b8.8f2a38",
258 "id": "6cc7076e.1cb1a8",
260 "name": "GET contrail-route-allotted-resource from mdsal",
263 "x": 619.0687980651855,
264 "y": 709.5925989151001,
265 "z": "433d56b8.8f2a38",
269 "id": "1b5999de.c1e766",
270 "type": "switchNode",
271 "name": "switch order-status",
272 "xml": "<switch test='`$ar.allotted-resource-data.allotted-resource-oper-status.order-status`'>\n",
275 "x": 1808.9499244689941,
276 "y": 709.3784890174866,
277 "z": "433d56b8.8f2a38",
286 "id": "b809025c.a4d3d",
288 "name": "outcome Created",
289 "xml": "<outcome value='Created'>\n",
292 "x": 2030.7878799438477,
293 "y": 693.473792552948,
294 "z": "433d56b8.8f2a38",
302 "id": "69b030e.9be7ed",
304 "name": "outcome Other",
305 "xml": "<outcome value='Other'>\n",
308 "x": 2025.5977592468262,
309 "y": 720.8072423934937,
310 "z": "433d56b8.8f2a38",
318 "id": "2ba82db5.eb58c2",
319 "type": "returnFailure",
320 "name": "return failure",
321 "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 + ', expecting Created.'`\" />\n",
323 "x": 2236.7164573669434,
324 "y": 724.4617581367493,
325 "z": "433d56b8.8f2a38",
329 "id": "9213e2d9.8bc42",
331 "name": "save backup copy of mdsal-ar for rollback",
332 "xml": "<set>\n<parameter name='bk-cr-ar' value='$mdsal-ar.' />\n",
334 "x": 1880.8071937561035,
335 "y": 645.1880259513855,
336 "z": "433d56b8.8f2a38",
340 "id": "8487ec3d.0bea",
342 "name": "Create urls for restapi",
345 "x": 534.2116012573242,
346 "y": 634.8782691955566,
347 "z": "433d56b8.8f2a38",
351 "id": "7ece8ede.79816",
352 "type": "returnFailure",
353 "name": "return failure",
354 "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",
356 "x": 1605.921157836914,
357 "y": 840.5873985290527,
358 "z": "433d56b8.8f2a38",
362 "id": "fb1bb5f8.e95f28",
365 "xml": "<outcome value='Other'>\n",
368 "x": 847.3135299682617,
369 "y": 775.0873861312866,
370 "z": "433d56b8.8f2a38",
378 "id": "59c76443.5ea54c",
380 "name": "block: atomic",
381 "xml": "<block atomic=\"true\">\n",
385 "x": 1027.3134803771973,
386 "y": 775.7539367675781,
387 "z": "433d56b8.8f2a38",
395 "id": "339ac5bc.d5e83a",
398 "xml": "<outcome value='Other'>\n",
401 "x": 1380.4804000854492,
402 "y": 775.4206819534302,
403 "z": "433d56b8.8f2a38",
411 "id": "5d75aafd.69a114",
418 "x": 2214.33748626709,
419 "y": 691.4206805229187,
420 "z": "433d56b8.8f2a38",
426 "id": "49a6403a.c8105",
429 "xml": "<outcome value='not-found'>\n",
432 "x": 831.2895660400391,
433 "y": 1026.7183133363724,
434 "z": "433d56b8.8f2a38",
442 "id": "e0de1bea.e06568",
443 "type": "get-resource",
444 "name": "get AnAI - l3-network by network-id",
445 "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",
448 "x": 565.7379760742188,
449 "y": 1040.4649600982666,
450 "z": "433d56b8.8f2a38",
460 "id": "c8ed4496.b74a88",
463 "xml": "<outcome value='failure'>\n",
466 "x": 824.0116729736328,
467 "y": 1061.2029172182083,
468 "z": "433d56b8.8f2a38",
476 "id": "a766ad78.04e4e",
477 "type": "returnFailure",
478 "name": "return failure",
479 "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'`\" />",
481 "x": 976.1226348876953,
482 "y": 1057.4251462221146,
483 "z": "433d56b8.8f2a38",
487 "id": "d63abbe9.2b3e68",
490 "xml": "<outcome value='success'>\n",
493 "x": 829.2896270751953,
494 "y": 1092.7183133363724,
495 "z": "433d56b8.8f2a38",
503 "id": "c2c4bb65.8ad1d8",
505 "name": "block : atomic",
506 "xml": "<block atomic=\"true\">",
509 "x": 981.9561920166016,
510 "y": 1091.0516415834427,
511 "z": "433d56b8.8f2a38",
517 "id": "b3798a7c.d13bf8",
519 "name": "GET source network from AAI",
522 "x": 535.9681777954102,
523 "y": 1005.9683332443237,
524 "z": "433d56b8.8f2a38",
528 "id": "a45921e6.ad3ef",
530 "name": "execute Contrail API apply network policy to source network",
531 "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='apply' />\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\n",
534 "x": 654.6180572509766,
535 "y": 1357.9513778686523,
536 "z": "433d56b8.8f2a38",
545 "id": "19d85634.c917ea",
548 "xml": "<outcome value='success'>\n",
551 "x": 1022.2842788696289,
552 "y": 1355.379361152649,
553 "z": "433d56b8.8f2a38",
561 "id": "3a9f4e83.0014d2",
564 "xml": "<outcome value='failure'>\n",
567 "x": 1020.3796005249023,
568 "y": 1388.37930091843,
569 "z": "433d56b8.8f2a38",
577 "id": "abb85b0d.789338",
578 "type": "returnFailure",
579 "name": "return failure",
580 "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 apply policy in Contrail to source network\" />\n",
582 "x": 1180.2843704223633,
583 "y": 1387.71266746521,
584 "z": "433d56b8.8f2a38",
588 "id": "95b88f2.7fbc67",
595 "x": 1174.4747619628906,
596 "y": 1356.0460861586034,
597 "z": "433d56b8.8f2a38",
603 "id": "bfffed8.eb42f1",
605 "name": "set ar-assignments",
606 "xml": "<set>\n<parameter name='ar-assignments.' value=\"`$ar.allotted-resource-data.contrail-route-topology.contrail-route-assignments.`\" />\n\n\n\n",
608 "x": 519.0039672851562,
609 "y": 834.0040140151978,
610 "z": "433d56b8.8f2a38",
614 "id": "c1894c85.76c23",
615 "type": "switchNode",
616 "name": "switch source-network.network-id",
617 "xml": "<switch test='`$ar-assignments.source-network.network-id`'>\n\n",
620 "x": 555.5039672851562,
621 "y": 942.0039577484131,
622 "z": "433d56b8.8f2a38",
631 "id": "6d551f8f.357b",
634 "xml": "<outcome value='Other'>",
637 "x": 915.0041236877441,
638 "y": 940.6702857017517,
639 "z": "433d56b8.8f2a38",
647 "id": "812fe09f.e6513",
650 "xml": "<outcome value=''>",
653 "x": 910.6709403991699,
654 "y": 903.6700859069824,
655 "z": "433d56b8.8f2a38",
663 "id": "dc661073.9c1b9",
670 "x": 1049.115379333496,
671 "y": 941.1146903038025,
672 "z": "433d56b8.8f2a38",
678 "id": "d6f57d04.58e7e",
679 "type": "returnFailure",
680 "name": "return failure",
681 "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",
683 "x": 1064.8044052124023,
684 "y": 904.3369884490967,
685 "z": "433d56b8.8f2a38",
689 "id": "438362ca.c4fb1c",
691 "name": "Find tenant id/cloud region from source network",
694 "x": 596.4042282104492,
695 "y": 908.6702222824097,
696 "z": "433d56b8.8f2a38",
700 "id": "12975148.308cdf",
702 "name": "Apply the policy to source network",
705 "x": 558.0039825439453,
706 "y": 1093.003999710083,
707 "z": "433d56b8.8f2a38",
711 "id": "e8418233.d69da",
712 "type": "returnSuccess",
713 "name": "return success",
714 "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",
716 "x": 470.004207611084,
717 "y": 2616.9808492660522,
718 "z": "433d56b8.8f2a38",
722 "id": "23cc061.9b89efa",
724 "name": "set allotted-resource-oper-status",
725 "xml": "<set>\n<parameter name='ar.allotted-resource-data.allotted-resource-oper-status.order-status' value='Active' />\n<parameter name='ar.allotted-resource-data.allotted-resource-oper-status.create-timestamp' value='`$tmp.current-time`' />\n",
727 "x": 530.4249496459961,
728 "y": 2438.484212875366,
729 "z": "433d56b8.8f2a38",
733 "id": "2a87adce.093512",
735 "name": "execute RestApiCallNode - PUT AR by id",
736 "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",
739 "x": 558.5334243774414,
740 "y": 2512.5337057113647,
741 "z": "433d56b8.8f2a38",
751 "id": "86fe624a.9f769",
754 "xml": "<outcome value='not-found'>\n",
757 "x": 828.8414421081543,
758 "y": 2565.5319065079093,
759 "z": "433d56b8.8f2a38",
767 "id": "c15082cc.e45ed",
770 "xml": "<outcome value='failure'>\n",
773 "x": 819.8414916992188,
774 "y": 2534.031932257116,
775 "z": "433d56b8.8f2a38",
783 "id": "73ea0483.537b4c",
786 "xml": "<outcome value='success'>\n",
789 "x": 823.5915298461914,
790 "y": 2504.389037132263,
791 "z": "433d56b8.8f2a38",
799 "id": "82666aa6.c56cb8",
800 "type": "returnFailure",
801 "name": "return failure",
802 "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",
804 "x": 1187.5915756225586,
805 "y": 2546.7821083068848,
806 "z": "433d56b8.8f2a38",
810 "id": "cd864e8c.2ab94",
817 "x": 993.2475204467773,
818 "y": 2502.5816679000854,
819 "z": "433d56b8.8f2a38",
825 "id": "23d1f196.7dcfee",
827 "name": "execute getTime",
828 "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='setTime' >\n <parameter name=\"outputPath\" value=\"tmp.current-time\" />\n\n",
831 "x": 481.24754333496094,
832 "y": 2404.9143447875977,
833 "z": "433d56b8.8f2a38",
839 "id": "17748471.05b93c",
841 "name": "Need to rollback aai here",
844 "x": 1380.6708450317383,
845 "y": 2480.0996432304382,
846 "z": "433d56b8.8f2a38",
850 "id": "14c283bc.16080c",
852 "name": "Create network policy in AAI",
855 "x": 515.0040664672852,
856 "y": 2354.0994386672974,
857 "z": "433d56b8.8f2a38",
861 "id": "a4376ac0.5f7af8",
863 "name": "update AAI allotted-resource",
864 "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=\"in-service-path\" />\n\t<parameter name=\"orchestration-status\" value=\"activated\" />\n",
867 "x": 519.6231384277344,
868 "y": 2316.0520610809326,
869 "z": "433d56b8.8f2a38",
878 "id": "e26ff95b.191f28",
881 "xml": "<outcome value='failure'>\n",
884 "x": 787.3850555419922,
885 "y": 2293.290114402771,
886 "z": "433d56b8.8f2a38",
894 "id": "5b810143.7cfe6",
897 "xml": "<outcome value='not-found'>\n",
900 "x": 792.6944847106934,
901 "y": 2328.8615322113037,
902 "z": "433d56b8.8f2a38",
910 "id": "81d4f66a.d1c928",
911 "type": "returnFailure",
912 "name": "return failure",
913 "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",
915 "x": 1157.4802894592285,
916 "y": 2309.909327507019,
917 "z": "433d56b8.8f2a38",
921 "id": "59f5f19c.2c2bf",
923 "name": "Update AAI AR",
926 "x": 472.96598052978516,
927 "y": 2275.480383872986,
928 "z": "433d56b8.8f2a38",
932 "id": "a1ff339e.3748d",
934 "name": "Update network policy in AAI - relationship to networks",
937 "x": 595.004150390625,
938 "y": 2174.004216194153,
939 "z": "433d56b8.8f2a38",
943 "id": "3d7a5aa5.9e14c6",
945 "name": "save AnAI - network-policy relationship to source and destination network",
946 "xml": "<save 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\" >\n<parameter name=\"relationship-list.relationship[0].related-to\" value=\"l3-network\" />\n<parameter name=\"relationship-list.relationship[0].related-link\" \nvalue=\"`'/aai/v$/network/l3-networks/l3-network/' + $ar-assignments.source-network.network-id`\" />\n<parameter name=\"relationship-list.relationship[1].related-to\" value=\"l3-network\" />\n<parameter name=\"relationship-list.relationship[1].related-link\" \nvalue=\"`'/aai/v$/network/l3-networks/l3-network/' + $ar-assignments.dest-network.network-id`\" />\n\n",
949 "x": 666.381103515625,
950 "y": 2220.071865081787,
951 "z": "433d56b8.8f2a38",
960 "id": "ec62599e.16b9b8",
961 "type": "returnFailure",
962 "name": "return failure",
963 "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",
965 "x": 1646.7267532348633,
966 "y": 2195.3538751602173,
967 "z": "433d56b8.8f2a38",
971 "id": "9a52b1cf.1510d",
974 "xml": "<outcome value='failure'>\n",
977 "x": 1065.15523147583,
978 "y": 2190.3694381713867,
979 "z": "433d56b8.8f2a38",
987 "id": "60b38365.bf508c",
990 "xml": "<outcome value='not-found'>\n",
993 "x": 1071.9648513793945,
994 "y": 2220.845724582672,
995 "z": "433d56b8.8f2a38",
1003 "id": "df841654.7038a8",
1005 "name": "Parameters",
1006 "info": "INPUT:\n\ncto-api.default-domain\ncto-api.default-project\ncto-api.cloud-region-id\ncto-api.contrail-route-allotted-resource-id\ncto-api.src-contrail-network-fqdn\ncto-api.collector-contrail-network-fqdn",
1008 "x": 625.3373031616211,
1009 "y": 92.67058181762695,
1010 "z": "433d56b8.8f2a38",
1014 "id": "f859e910.363bc8",
1016 "name": "call validate-api-contrail-route-input",
1017 "xml": "<call module='GENERIC-RESOURCE-API' rpc='validate-api-contrail-route-input' mode='sync' >\n",
1020 "x": 578.3372192382812,
1021 "y": 432.0039372444153,
1022 "z": "433d56b8.8f2a38",
1028 "id": "bc9568bb.e6eb78",
1030 "name": "set cloud-region-id for input to contrail",
1031 "xml": "<set>\n<parameter name='cloud-region-id' value='`$cto-api.cloud-region-id`' />\n",
1034 "y": 1146.674747467041,
1035 "z": "433d56b8.8f2a38",
1039 "id": "8553ed76.ca7a",
1042 "xml": "<outcome value='Other'>",
1045 "x": 822.504264831543,
1046 "y": 1480.3410449028015,
1047 "z": "433d56b8.8f2a38",
1055 "id": "2ab2cf3c.7cbb2",
1058 "xml": "<outcome value=''>",
1061 "x": 818.1710815429688,
1062 "y": 1443.3408451080322,
1063 "z": "433d56b8.8f2a38",
1071 "id": "ddb9ca6f.61d5a8",
1078 "x": 956.6155204772949,
1079 "y": 1480.7854495048523,
1080 "z": "433d56b8.8f2a38",
1086 "id": "7f5db074.60a8",
1087 "type": "returnFailure",
1088 "name": "return failure",
1089 "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. Destination network not found\" />\n",
1091 "x": 972.3045463562012,
1092 "y": 1444.0077476501465,
1093 "z": "433d56b8.8f2a38",
1097 "id": "e73a4573.fde828",
1098 "type": "not-found",
1099 "name": "not found",
1100 "xml": "<outcome value='not-found'>\n",
1103 "x": 885.0039978027344,
1104 "y": 1524.4330253601074,
1105 "z": "433d56b8.8f2a38",
1113 "id": "142c8365.56afed",
1114 "type": "get-resource",
1115 "name": "get AnAI - l3-network by dest network-id",
1116 "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",
1119 "x": 605.6308746337891,
1120 "y": 1531.9652662277222,
1121 "z": "433d56b8.8f2a38",
1131 "id": "d1a7593e.2315a8",
1134 "xml": "<outcome value='failure'>\n",
1137 "x": 877.7261047363281,
1138 "y": 1558.9176292419434,
1139 "z": "433d56b8.8f2a38",
1147 "id": "30c22905.3a4936",
1148 "type": "returnFailure",
1149 "name": "return failure",
1150 "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'`\" />",
1152 "x": 1029.8370666503906,
1153 "y": 1555.1398582458496,
1154 "z": "433d56b8.8f2a38",
1158 "id": "512d25e0.f1767c",
1161 "xml": "<outcome value='success'>\n",
1164 "x": 887.5755081176758,
1165 "y": 1593.2900938987732,
1166 "z": "433d56b8.8f2a38",
1174 "id": "c41d8742.6e9888",
1176 "name": "block : atomic",
1177 "xml": "<block atomic=\"true\">",
1180 "x": 1040.242073059082,
1181 "y": 1591.6234221458435,
1182 "z": "433d56b8.8f2a38",
1188 "id": "7f8f58d7.90bc28",
1190 "name": "GET dest network from AAI",
1193 "x": 562.4325408935547,
1194 "y": 1423.1471500396729,
1195 "z": "433d56b8.8f2a38",
1199 "id": "38b3f506.22440a",
1201 "name": "execute Contrail API apply network policy to destination network",
1202 "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='apply' />\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",
1205 "x": 668.0042114257812,
1206 "y": 1910.0046558380127,
1207 "z": "433d56b8.8f2a38",
1216 "id": "96c79b36.154138",
1219 "xml": "<outcome value='success'>\n",
1222 "x": 1004.6706390380859,
1223 "y": 1881.4327244758606,
1224 "z": "433d56b8.8f2a38",
1232 "id": "79421533.4e5ecc",
1235 "xml": "<outcome value='failure'>\n",
1238 "x": 1002.7659606933594,
1239 "y": 1914.4326642416418,
1240 "z": "433d56b8.8f2a38",
1248 "id": "56199f14.af432",
1249 "type": "returnFailure",
1250 "name": "return failure",
1251 "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 apply policy in Contrail to destination network\" />\n",
1253 "x": 1372.6709747314453,
1254 "y": 1916.7664680480957,
1255 "z": "433d56b8.8f2a38",
1259 "id": "871ab29c.61b02",
1266 "x": 1156.8611221313477,
1267 "y": 1882.099449481815,
1268 "z": "433d56b8.8f2a38",
1274 "id": "8c596cbe.dd753",
1276 "name": "Apply the policy to dest network",
1279 "x": 561.3903503417969,
1280 "y": 1877.057378768921,
1281 "z": "433d56b8.8f2a38",
1285 "id": "ec219e57.3542d",
1286 "type": "switchNode",
1287 "name": "switch dest-network.network-id",
1288 "xml": "<switch test='`$ar-assignments.dest-network.network-id`'>\n\n",
1291 "x": 569.0039825439453,
1292 "y": 1463.674859046936,
1293 "z": "433d56b8.8f2a38",
1302 "id": "88c586db.eb3e18",
1304 "name": "execute Contrail API fqname to uuid for source network",
1305 "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",
1308 "x": 639.0039978027344,
1309 "y": 1281.674801826477,
1310 "z": "433d56b8.8f2a38",
1319 "id": "7a1c57b0.a74188",
1322 "xml": "<outcome value='success'>\n",
1325 "x": 971.0039367675781,
1326 "y": 1290.6745529174805,
1327 "z": "433d56b8.8f2a38",
1335 "id": "df772c1b.3fd3f",
1338 "xml": "<outcome value='failure'>\n",
1341 "x": 974.0992736816406,
1342 "y": 1325.6744497679174,
1343 "z": "433d56b8.8f2a38",
1351 "id": "30c79ae1.56e5e6",
1352 "type": "returnFailure",
1353 "name": "return failure",
1354 "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",
1356 "x": 1134.0040435791016,
1357 "y": 1325.0078163146973,
1358 "z": "433d56b8.8f2a38",
1362 "id": "8bb3dc75.04d83",
1369 "x": 1114.1943969726562,
1370 "y": 1287.3412857055664,
1371 "z": "433d56b8.8f2a38",
1377 "id": "bf9b56b5.b3a1e8",
1379 "name": "execute Contrail API fqname to uuid for dest network",
1380 "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",
1383 "x": 630.0040893554688,
1384 "y": 1803.6749420166016,
1385 "z": "433d56b8.8f2a38",
1394 "id": "d3a9b3b.a55135",
1397 "xml": "<outcome value='success'>\n",
1400 "x": 971.0040740966797,
1401 "y": 1770.6746549606323,
1402 "z": "433d56b8.8f2a38",
1410 "id": "4c6855f7.9d9f3c",
1413 "xml": "<outcome value='failure'>\n",
1416 "x": 969.0993499755859,
1417 "y": 1806.6747187040746,
1418 "z": "433d56b8.8f2a38",
1426 "id": "a6d24134.4d78e",
1427 "type": "returnFailure",
1428 "name": "return failure",
1429 "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",
1431 "x": 1129.0041198730469,
1432 "y": 1806.0080852508545,
1433 "z": "433d56b8.8f2a38",
1437 "id": "b7013ec1.476c6",
1444 "x": 1123.1945571899414,
1445 "y": 1771.3413799665868,
1446 "z": "433d56b8.8f2a38",
1452 "id": "3f9cc8d6.fcda48",
1454 "name": "execute Split to get contrail virtual network fqname without defaults",
1455 "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",
1458 "x": 671.0039215087891,
1459 "y": 1188.6746273040771,
1460 "z": "433d56b8.8f2a38",
1466 "id": "5caffa4d.c36db4",
1468 "name": "set src-virtual-network-fqdn",
1469 "xml": "<set>\n<parameter name='src-virtual-network-fqname' value='`$virtual-network-fqdn-split[$virtual-network-fqdn-split_length - 1]`' />\n",
1471 "x": 1193.6705474853516,
1472 "y": 1245.3414163589478,
1473 "z": "433d56b8.8f2a38",
1477 "id": "fe97c2ba.c5f5d",
1478 "type": "switchNode",
1479 "name": "switch virtual-network-fqdn-split length",
1480 "xml": "<switch test='`$virtual-network-fqdn-split_length`'>\n",
1483 "x": 583.6706848144531,
1484 "y": 1228.6743993759155,
1485 "z": "433d56b8.8f2a38",
1494 "id": "3df80ebf.7bf7a2",
1496 "name": "outcome 0",
1497 "xml": "<outcome value='0'>\n",
1500 "x": 1009.0040435791016,
1501 "y": 1209.6746559143066,
1502 "z": "433d56b8.8f2a38",
1510 "id": "4cdce0e8.bafeb",
1513 "xml": "<outcome value='Other'>\n",
1516 "x": 996.6706123352051,
1517 "y": 1245.0078945159912,
1518 "z": "433d56b8.8f2a38",
1526 "id": "4a934e0.2948ab4",
1527 "type": "returnFailure",
1528 "name": "return failure",
1529 "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",
1531 "x": 1174.3374366760254,
1532 "y": 1208.008044242859,
1533 "z": "433d56b8.8f2a38",
1537 "id": "74c07074.b9b6c",
1539 "name": "execute Split to get contrail virtual network fqname from contrail-network-fqdn",
1540 "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",
1543 "x": 720.0038757324219,
1544 "y": 1646.6749620437622,
1545 "z": "433d56b8.8f2a38",
1551 "id": "471ff7c8.22f108",
1553 "name": "set dest-virtual-network-fqname",
1554 "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",
1556 "x": 1205.6704864501953,
1557 "y": 1719.3413534164429,
1558 "z": "433d56b8.8f2a38",
1562 "id": "ef4ae829.eade68",
1563 "type": "switchNode",
1564 "name": "switch virtual-network-fqdn-split length",
1565 "xml": "<switch test='`$virtual-network-fqdn-split_length`'>\n",
1568 "x": 587.6706237792969,
1569 "y": 1735.6746196746826,
1570 "z": "433d56b8.8f2a38",
1579 "id": "28174afe.44eb26",
1581 "name": "outcome 0",
1582 "xml": "<outcome value='0'>\n",
1585 "x": 1021.0039825439453,
1586 "y": 1683.6745929718018,
1587 "z": "433d56b8.8f2a38",
1595 "id": "20116195.80bece",
1598 "xml": "<outcome value='Other'>\n",
1601 "x": 1008.6705513000488,
1602 "y": 1719.0078315734863,
1603 "z": "433d56b8.8f2a38",
1611 "id": "949e42d4.3282b",
1612 "type": "returnFailure",
1613 "name": "return failure",
1614 "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",
1616 "x": 1186.3373756408691,
1617 "y": 1682.007981300354,
1618 "z": "433d56b8.8f2a38",
1622 "id": "ad550ebe.97e4c",
1624 "name": "execute Contrail API remove network policy to destination network",
1625 "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",
1628 "x": 1892.0041198730469,
1629 "y": 2082.004141807556,
1630 "z": "433d56b8.8f2a38",
1638 "id": "a38a02dd.b8f9d",
1640 "name": "execute Contrail API remove network policy to source network",
1641 "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",
1644 "x": 1910.0042572021484,
1645 "y": 1811.004051208496,
1646 "z": "433d56b8.8f2a38",
1654 "id": "9240f23d.7f049",
1657 "xml": "<outcome value='Other'>",
1660 "x": 2287.5040283203125,
1661 "y": 1856.0040197372437,
1662 "z": "433d56b8.8f2a38",
1670 "id": "93d636b9.8b55b8",
1677 "x": 2421.6152839660645,
1678 "y": 1856.4484243392944,
1679 "z": "433d56b8.8f2a38",
1685 "id": "defcda34.247b28",
1687 "name": "set src-uuid",
1688 "xml": "<set>\n<parameter name='src-uuid' value='`$uuidresp.uuid`' />",
1690 "x": 510.0039939880371,
1691 "y": 1322.0040254592896,
1692 "z": "433d56b8.8f2a38",
1696 "id": "7e31f809.4e76e8",
1698 "name": "set dest-uuid",
1699 "xml": "<set>\n<parameter name='dest-uuid' value='`$uuidresp.uuid`' />",
1703 "z": "433d56b8.8f2a38",
1707 "id": "c4498fac.a299f",
1709 "name": "If we hit an error, attempt to clean up contrail",
1712 "x": 1854.0041046142578,
1713 "y": 1772.004108428955,
1714 "z": "433d56b8.8f2a38",
1718 "id": "e2d4bff5.4d172",
1725 "x": 1157.2539596557617,
1726 "y": 1915.0039901733398,
1727 "z": "433d56b8.8f2a38",
1736 "id": "e25e5b70.f65028",
1743 "x": 1267.2539138793945,
1744 "y": 2206.0039615631104,
1745 "z": "433d56b8.8f2a38",
1755 "id": "a1025836.ec58f8",
1764 "z": "433d56b8.8f2a38",
1774 "id": "b34f6a16.4d5698",
1783 "z": "433d56b8.8f2a38",