Chore: Add gerrit maven verify GHA workflow
[sdnc/oam.git] / platform-logic / generic-resource-api / src / main / json / GENERIC-RESOURCE-API_api-contrail-route-topology-operation-deactivate.json
1 [
2     {
3         "id": "53d16eb.3d9c19",
4         "type": "dgstart",
5         "name": "DGSTART",
6         "outputs": 1,
7         "x": 147.00390625,
8         "y": 91.66666734218597,
9         "z": "9891698.5acc798",
10         "wires": [
11             [
12                 "25de91ce.b5fd3e"
13             ]
14         ]
15     },
16     {
17         "id": "25de91ce.b5fd3e",
18         "type": "service-logic",
19         "name": "GENERIC-RESOURCE-API ${project.version}",
20         "module": "GENERIC-RESOURCE-API",
21         "version": "${project.version}",
22         "comments": "",
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}'>",
24         "outputs": 1,
25         "x": 293.24200439453125,
26         "y": 165.61906814575195,
27         "z": "9891698.5acc798",
28         "wires": [
29             [
30                 "e1dc9e95.202cd"
31             ]
32         ]
33     },
34     {
35         "id": "e1dc9e95.202cd",
36         "type": "method",
37         "name": "api-contrail-route-topology-operation-deactivate",
38         "xml": "<method rpc='api-contrail-route-topology-operation-deactivate' mode='sync'>\n",
39         "comments": "",
40         "outputs": 1,
41         "x": 370.15875244140625,
42         "y": 252.8571262359619,
43         "z": "9891698.5acc798",
44         "wires": [
45             [
46                 "6e723a37.5fb414"
47             ]
48         ]
49     },
50     {
51         "id": "6e723a37.5fb414",
52         "type": "block",
53         "name": "block : atomic",
54         "xml": "<block atomic=\"true\">",
55         "atomic": "true",
56         "comments": "",
57         "outputs": 1,
58         "x": 281.4800910949707,
59         "y": 379.1904515028,
60         "z": "9891698.5acc798",
61         "wires": [
62             [
63                 "db65c59e.74b7a8",
64                 "cdda444b.68b9e8",
65                 "12ebac6c.60c404",
66                 "304813c4.78d06c",
67                 "24a1e3b8.72820c",
68                 "917d9ac2.daff68",
69                 "c9cc6752.6dade8",
70                 "f000cefd.dc0b3",
71                 "90ac8599.5b3ae8",
72                 "4b7740d3.fc61b",
73                 "21e2e99a.b2c5f6",
74                 "f7ee430b.8143b",
75                 "d5ee6347.74eeb",
76                 "1755b0ad.40d95f",
77                 "d622c4ae.e4c078",
78                 "3cffa7a5.824108",
79                 "eaf9a24a.34c19",
80                 "5fd1bc26.619354",
81                 "5a6539af.a4eef8",
82                 "97ba91e7.6ad5a",
83                 "7089138.b1a97ec",
84                 "94758d7.de9a07",
85                 "d5fd35ad.ade908",
86                 "15b849c5.50cd26",
87                 "e7dae05c.bc65f",
88                 "e4f9d349.fde5f",
89                 "56153950.54ad38",
90                 "b739671e.70ddd8"
91             ]
92         ]
93     },
94     {
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",
99         "comments": "",
100         "x": 465.0040092468262,
101         "y": 2449.214762687683,
102         "z": "9891698.5acc798",
103         "wires": []
104     },
105     {
106         "id": "f000cefd.dc0b3",
107         "type": "set",
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",
110         "comments": "",
111         "x": 528.7580795288086,
112         "y": 2272.3847150802612,
113         "z": "9891698.5acc798",
114         "wires": []
115     },
116     {
117         "id": "cdda444b.68b9e8",
118         "type": "set",
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",
121         "comments": "",
122         "x": 582.9920043945312,
123         "y": 517.0000739097595,
124         "z": "9891698.5acc798",
125         "wires": []
126     },
127     {
128         "id": "12ebac6c.60c404",
129         "type": "execute",
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",
132         "comments": "",
133         "outputs": 1,
134         "x": 648.2474060058594,
135         "y": 552.8983492851257,
136         "z": "9891698.5acc798",
137         "wires": [
138             []
139         ]
140     },
141     {
142         "id": "24a1e3b8.72820c",
143         "type": "execute",
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",
146         "comments": "",
147         "outputs": 1,
148         "x": 658.0227127075195,
149         "y": 719.6262936592102,
150         "z": "9891698.5acc798",
151         "wires": [
152             [
153                 "654fd033.2374d",
154                 "5baf96ad.89c9b8"
155             ]
156         ]
157     },
158     {
159         "id": "304813c4.78d06c",
160         "type": "execute",
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",
163         "comments": "",
164         "outputs": 1,
165         "x": 628.5688323974609,
166         "y": 640.183976650238,
167         "z": "9891698.5acc798",
168         "wires": [
169             []
170         ]
171     },
172     {
173         "id": "654fd033.2374d",
174         "type": "success",
175         "name": "success",
176         "xml": "<outcome value='success'>\n",
177         "comments": "",
178         "outputs": 1,
179         "x": 903.3188171386719,
180         "y": 720.4341073036194,
181         "z": "9891698.5acc798",
182         "wires": [
183             [
184                 "3df8944b.0fdb1c"
185             ]
186         ]
187     },
188     {
189         "id": "917d9ac2.daff68",
190         "type": "execute",
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",
193         "comments": "",
194         "outputs": 1,
195         "x": 556.8665466308594,
196         "y": 2346.4342346191406,
197         "z": "9891698.5acc798",
198         "wires": [
199             [
200                 "a132d913.f96618",
201                 "4e2f6479.132e3c",
202                 "8f713fc1.307d3"
203             ]
204         ]
205     },
206     {
207         "id": "a132d913.f96618",
208         "type": "not-found",
209         "name": "not-found",
210         "xml": "<outcome value='not-found'>\n",
211         "comments": "",
212         "outputs": 1,
213         "x": 827.1745643615723,
214         "y": 2399.432435415685,
215         "z": "9891698.5acc798",
216         "wires": [
217             [
218                 "42ff2a69.2ea5e4"
219             ]
220         ]
221     },
222     {
223         "id": "4e2f6479.132e3c",
224         "type": "failure",
225         "name": "failure",
226         "xml": "<outcome value='failure'>\n",
227         "comments": "",
228         "outputs": 1,
229         "x": 818.1746139526367,
230         "y": 2367.9324611648917,
231         "z": "9891698.5acc798",
232         "wires": [
233             [
234                 "42ff2a69.2ea5e4"
235             ]
236         ]
237     },
238     {
239         "id": "8f713fc1.307d3",
240         "type": "success",
241         "name": "success",
242         "xml": "<outcome value='success'>\n",
243         "comments": "",
244         "outputs": 1,
245         "x": 821.9246520996094,
246         "y": 2338.289566040039,
247         "z": "9891698.5acc798",
248         "wires": [
249             [
250                 "eefff8f0.c4e068"
251             ]
252         ]
253     },
254     {
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",
259         "comments": "",
260         "x": 1201.924690246582,
261         "y": 2390.682702064514,
262         "z": "9891698.5acc798",
263         "wires": []
264     },
265     {
266         "id": "3df8944b.0fdb1c",
267         "type": "block",
268         "name": "block: atomic",
269         "xml": "<block atomic=\"true\">\n",
270         "atomic": "false",
271         "comments": "",
272         "outputs": 1,
273         "x": 1072.3188209533691,
274         "y": 718.9340081214905,
275         "z": "9891698.5acc798",
276         "wires": [
277             [
278                 "fe4125ac.e2a618"
279             ]
280         ]
281     },
282     {
283         "id": "fe4125ac.e2a618",
284         "type": "switchNode",
285         "name": "switch cr length",
286         "xml": "<switch test='`$mdsal-ar.contrail-route-allotted-resource_length`'>\n",
287         "comments": "",
288         "outputs": 1,
289         "x": 1283.1760635375977,
290         "y": 718.5531373023987,
291         "z": "9891698.5acc798",
292         "wires": [
293             [
294                 "c1828e09.7c766",
295                 "39f2e04d.45825"
296             ]
297         ]
298     },
299     {
300         "id": "c1828e09.7c766",
301         "type": "other",
302         "name": "outcome 1",
303         "xml": "<outcome value='1'>\n",
304         "comments": "",
305         "outputs": 1,
306         "x": 1475.0094146728516,
307         "y": 708.5529913902283,
308         "z": "9891698.5acc798",
309         "wires": [
310             [
311                 "1075f3bd.78220c"
312             ]
313         ]
314     },
315     {
316         "id": "761ce19c.f38bd",
317         "type": "set",
318         "name": "set ar from get",
319         "xml": "<set>\n<parameter name='ar.' value='$mdsal-ar.contrail-route-allotted-resource[0].' />\n",
320         "comments": "",
321         "x": 1910.7001266479492,
322         "y": 640.5411952733994,
323         "z": "9891698.5acc798",
324         "wires": []
325     },
326     {
327         "id": "1075f3bd.78220c",
328         "type": "block",
329         "name": "block: atomic",
330         "xml": "<block atomic='true'>\n",
331         "atomic": "false",
332         "comments": "",
333         "outputs": 1,
334         "x": 1622.033197402954,
335         "y": 674.2078136205673,
336         "z": "9891698.5acc798",
337         "wires": [
338             [
339                 "761ce19c.f38bd",
340                 "3afefdf5.e26e02",
341                 "47365a0f.ec0b44"
342             ]
343         ]
344     },
345     {
346         "id": "a52395f3.775018",
347         "type": "comment",
348         "name": "GET security-zone-allotted-resource from mdsal",
349         "info": "",
350         "comments": "",
351         "x": 671.3187599182129,
352         "y": 686.9339966773987,
353         "z": "9891698.5acc798",
354         "wires": []
355     },
356     {
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",
361         "comments": "",
362         "outputs": 1,
363         "x": 1925.4498958587646,
364         "y": 674.0411601066589,
365         "z": "9891698.5acc798",
366         "wires": [
367             [
368                 "27cedd03.00f992",
369                 "24005d3f.56b7f2"
370             ]
371         ]
372     },
373     {
374         "id": "27cedd03.00f992",
375         "type": "outcome",
376         "name": "outcome Other",
377         "xml": "<outcome value='Other'>\n",
378         "comments": "",
379         "outputs": 1,
380         "x": 2162.3475799560547,
381         "y": 685.9698594808578,
382         "z": "9891698.5acc798",
383         "wires": [
384             [
385                 "c35abdc0.fb371"
386             ]
387         ]
388     },
389     {
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",
394         "comments": "",
395         "x": 2402.966470718384,
396         "y": 683.8744969367981,
397         "z": "9891698.5acc798",
398         "wires": []
399     },
400     {
401         "id": "ef7d2a57.a57ab8",
402         "type": "set",
403         "name": "unset ar-assignments.vlan-tag",
404         "xml": "<set>\n<parameter name='ar-assignments.vlan-tag' value=\"\" />\n\n\n\n",
405         "comments": "",
406         "x": 527.8663635253906,
407         "y": 2117.7200841903687,
408         "z": "9891698.5acc798",
409         "wires": []
410     },
411     {
412         "id": "3afefdf5.e26e02",
413         "type": "set",
414         "name": "save backup copy of mdsal-ar for rollback",
415         "xml": "<set>\n<parameter name='bk-cr-ar' value='$mdsal-ar.' />\n",
416         "comments": "",
417         "x": 1998.5571784973145,
418         "y": 607.3506873846054,
419         "z": "9891698.5acc798",
420         "wires": []
421     },
422     {
423         "id": "a0f9f9b2.6dea88",
424         "type": "comment",
425         "name": "Create urls for restapi",
426         "info": "",
427         "comments": "",
428         "x": 599.4616394042969,
429         "y": 609.7911038398743,
430         "z": "9891698.5acc798",
431         "wires": []
432     },
433     {
434         "id": "eefff8f0.c4e068",
435         "type": "block",
436         "name": "block",
437         "xml": "<block>\n",
438         "atomic": "false",
439         "comments": "",
440         "outputs": 1,
441         "x": 963.5806198120117,
442         "y": 2334.481735229492,
443         "z": "9891698.5acc798",
444         "wires": [
445             []
446         ]
447     },
448     {
449         "id": "c9cc6752.6dade8",
450         "type": "execute",
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",
453         "comments": "",
454         "outputs": 1,
455         "x": 479.5806655883789,
456         "y": 2238.8148736953735,
457         "z": "9891698.5acc798",
458         "wires": [
459             []
460         ]
461     },
462     {
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",
467         "comments": "",
468         "x": 1698.4211654663086,
469         "y": 836.250256061554,
470         "z": "9891698.5acc798",
471         "wires": []
472     },
473     {
474         "id": "5baf96ad.89c9b8",
475         "type": "other",
476         "name": "other",
477         "xml": "<outcome value='Other'>\n",
478         "comments": "",
479         "outputs": 1,
480         "x": 895.1706199645996,
481         "y": 755.5001921653748,
482         "z": "9891698.5acc798",
483         "wires": [
484             [
485                 "c0b50cc8.0305c"
486             ]
487         ]
488     },
489     {
490         "id": "c0b50cc8.0305c",
491         "type": "block",
492         "name": "block: atomic",
493         "xml": "<block atomic=\"true\">\n",
494         "atomic": "false",
495         "comments": "",
496         "outputs": 1,
497         "x": 1075.1705703735352,
498         "y": 756.1667428016663,
499         "z": "9891698.5acc798",
500         "wires": [
501             [
502                 "7eec538d.ff920c"
503             ]
504         ]
505     },
506     {
507         "id": "39f2e04d.45825",
508         "type": "other",
509         "name": "other",
510         "xml": "<outcome value='Other'>\n",
511         "comments": "",
512         "outputs": 1,
513         "x": 1471.3372955322266,
514         "y": 758.0834441184998,
515         "z": "9891698.5acc798",
516         "wires": [
517             [
518                 "7eec538d.ff920c"
519             ]
520         ]
521     },
522     {
523         "id": "8148b606.b5c048",
524         "type": "block",
525         "name": "block",
526         "xml": "<block>\n",
527         "atomic": "false",
528         "comments": "",
529         "outputs": 1,
530         "x": 2386.837516784668,
531         "y": 649.583414554596,
532         "z": "9891698.5acc798",
533         "wires": [
534             []
535         ]
536     },
537     {
538         "id": "471309fc.092828",
539         "type": "comment",
540         "name": "Need to rollback aai here",
541         "info": "",
542         "comments": "",
543         "x": 1457.0040893554688,
544         "y": 2374.0000858306885,
545         "z": "9891698.5acc798",
546         "wires": []
547     },
548     {
549         "id": "24005d3f.56b7f2",
550         "type": "outcome",
551         "name": "outcome Active",
552         "xml": "<outcome value='Active'>\n",
553         "comments": "",
554         "outputs": 1,
555         "x": 2177.1092224121094,
556         "y": 654.2078708410263,
557         "z": "9891698.5acc798",
558         "wires": [
559             [
560                 "8148b606.b5c048"
561             ]
562         ]
563     },
564     {
565         "id": "90ac8599.5b3ae8",
566         "type": "update",
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",
569         "comments": "",
570         "outputs": 1,
571         "x": 513.3372497558594,
572         "y": 2198.333420753479,
573         "z": "9891698.5acc798",
574         "wires": [
575             [
576                 "927b7e29.3db75",
577                 "e2f7efc5.ee287"
578             ]
579         ]
580     },
581     {
582         "id": "927b7e29.3db75",
583         "type": "failure",
584         "name": "failure",
585         "xml": "<outcome value='failure'>\n",
586         "comments": "",
587         "outputs": 1,
588         "x": 769.0991821289062,
589         "y": 2175.5715951919556,
590         "z": "9891698.5acc798",
591         "wires": [
592             [
593                 "5ffafd8c.fe0b24"
594             ]
595         ]
596     },
597     {
598         "id": "e2f7efc5.ee287",
599         "type": "failure",
600         "name": "not-found",
601         "xml": "<outcome value='not-found'>\n",
602         "comments": "",
603         "outputs": 1,
604         "x": 774.4086112976074,
605         "y": 2211.1430130004883,
606         "z": "9891698.5acc798",
607         "wires": [
608             [
609                 "5ffafd8c.fe0b24"
610             ]
611         ]
612     },
613     {
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",
618         "comments": "",
619         "x": 1189.1944961547852,
620         "y": 2180.190938949585,
621         "z": "9891698.5acc798",
622         "wires": []
623     },
624     {
625         "id": "b2f1d1d9.c33eb",
626         "type": "comment",
627         "name": "Update AAI AR",
628         "info": "",
629         "comments": "",
630         "x": 476.6801071166992,
631         "y": 2161.7618646621704,
632         "z": "9891698.5acc798",
633         "wires": []
634     },
635     {
636         "id": "4b7740d3.fc61b",
637         "type": "set",
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",
640         "comments": "",
641         "x": 595.5039672851562,
642         "y": 784.1667847633362,
643         "z": "9891698.5acc798",
644         "wires": []
645     },
646     {
647         "id": "bdfabc43.1fa35",
648         "type": "not-found",
649         "name": "not found",
650         "xml": "<outcome value='not-found'>\n",
651         "comments": "",
652         "outputs": 1,
653         "x": 919.1942672729492,
654         "y": 938.7144109010696,
655         "z": "9891698.5acc798",
656         "wires": [
657             [
658                 "7d9f0d21.7d4054"
659             ]
660         ]
661     },
662     {
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",
667         "comments": "",
668         "outputs": 1,
669         "x": 642.3926086425781,
670         "y": 949.9609279632568,
671         "z": "9891698.5acc798",
672         "wires": [
673             [
674                 "102d56af.96fb69",
675                 "bdfabc43.1fa35",
676                 "71792be9.fe8114"
677             ]
678         ]
679     },
680     {
681         "id": "102d56af.96fb69",
682         "type": "failure",
683         "name": "failure",
684         "xml": "<outcome value='failure'>\n",
685         "comments": "",
686         "outputs": 1,
687         "x": 911.916374206543,
688         "y": 973.1990147829056,
689         "z": "9891698.5acc798",
690         "wires": [
691             [
692                 "7d9f0d21.7d4054"
693             ]
694         ]
695     },
696     {
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'`\" />",
701         "comments": "",
702         "x": 1064.0273361206055,
703         "y": 969.4212437868118,
704         "z": "9891698.5acc798",
705         "wires": []
706     },
707     {
708         "id": "71792be9.fe8114",
709         "type": "success",
710         "name": "success",
711         "xml": "<outcome value='success'>\n",
712         "comments": "",
713         "outputs": 1,
714         "x": 917.1943283081055,
715         "y": 1004.7144109010696,
716         "z": "9891698.5acc798",
717         "wires": [
718             [
719                 "e45895d6.2a9618"
720             ]
721         ]
722     },
723     {
724         "id": "e45895d6.2a9618",
725         "type": "block",
726         "name": "block : atomic",
727         "xml": "<block atomic=\"true\">",
728         "atomic": "true",
729         "outputs": 1,
730         "x": 1069.8608932495117,
731         "y": 1003.04773914814,
732         "z": "9891698.5acc798",
733         "wires": [
734             []
735         ]
736     },
737     {
738         "id": "36beda8e.435b36",
739         "type": "comment",
740         "name": "GET source network from AAI",
741         "info": "",
742         "comments": "",
743         "x": 620.6228256225586,
744         "y": 918.7144050598145,
745         "z": "9891698.5acc798",
746         "wires": []
747     },
748     {
749         "id": "35892e52.03d1d2",
750         "type": "not-found",
751         "name": "not found",
752         "xml": "<outcome value='not-found'>\n",
753         "comments": "",
754         "outputs": 1,
755         "x": 899.9085998535156,
756         "y": 1550.4287673830986,
757         "z": "9891698.5acc798",
758         "wires": [
759             [
760                 "f782658b.df7a58"
761             ]
762         ]
763     },
764     {
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",
769         "comments": "",
770         "outputs": 1,
771         "x": 628.5355224609375,
772         "y": 1557.961028277874,
773         "z": "9891698.5acc798",
774         "wires": [
775             [
776                 "929dab66.defa08",
777                 "35892e52.03d1d2",
778                 "eccf34c6.ec9728"
779             ]
780         ]
781     },
782     {
783         "id": "929dab66.defa08",
784         "type": "failure",
785         "name": "failure",
786         "xml": "<outcome value='failure'>\n",
787         "comments": "",
788         "outputs": 1,
789         "x": 892.6307067871094,
790         "y": 1584.9133712649345,
791         "z": "9891698.5acc798",
792         "wires": [
793             [
794                 "f782658b.df7a58"
795             ]
796         ]
797     },
798     {
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'`\" />",
803         "comments": "",
804         "x": 1298.7418670654297,
805         "y": 1571.1360874176025,
806         "z": "9891698.5acc798",
807         "wires": []
808     },
809     {
810         "id": "eccf34c6.ec9728",
811         "type": "success",
812         "name": "success",
813         "xml": "<outcome value='success'>\n",
814         "comments": "",
815         "outputs": 1,
816         "x": 900.480110168457,
817         "y": 1626.2858138084412,
818         "z": "9891698.5acc798",
819         "wires": [
820             [
821                 "9532d76.7c12f28"
822             ]
823         ]
824     },
825     {
826         "id": "9532d76.7c12f28",
827         "type": "block",
828         "name": "block : atomic",
829         "xml": "<block atomic=\"true\">",
830         "atomic": "true",
831         "outputs": 1,
832         "x": 1053.1466751098633,
833         "y": 1624.6191420555115,
834         "z": "9891698.5acc798",
835         "wires": [
836             []
837         ]
838     },
839     {
840         "id": "82b74742.3fb438",
841         "type": "comment",
842         "name": "GET dest network from AAI",
843         "info": "",
844         "comments": "",
845         "x": 601.3371429443359,
846         "y": 1526.1430203318596,
847         "z": "9891698.5acc798",
848         "wires": []
849     },
850     {
851         "id": "f7ee430b.8143b",
852         "type": "set",
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",
855         "comments": "",
856         "x": 653.331916809082,
857         "y": 1029.9470138549805,
858         "z": "9891698.5acc798",
859         "wires": []
860     },
861     {
862         "id": "d5ee6347.74eeb",
863         "type": "execute",
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",
866         "comments": "",
867         "outputs": 1,
868         "x": 699.5225219726562,
869         "y": 1361.9473094940186,
870         "z": "9891698.5acc798",
871         "wires": [
872             [
873                 "ecc68255.1d081",
874                 "d43b6488.136558"
875             ]
876         ]
877     },
878     {
879         "id": "ecc68255.1d081",
880         "type": "success",
881         "name": "success",
882         "xml": "<outcome value='success'>\n",
883         "comments": "",
884         "outputs": 1,
885         "x": 1053.1889877319336,
886         "y": 1362.375388622284,
887         "z": "9891698.5acc798",
888         "wires": [
889             [
890                 "ea841139.28697"
891             ]
892         ]
893     },
894     {
895         "id": "d43b6488.136558",
896         "type": "failure",
897         "name": "failure",
898         "xml": "<outcome value='failure'>\n",
899         "comments": "",
900         "outputs": 1,
901         "x": 1051.284309387207,
902         "y": 1395.375328388065,
903         "z": "9891698.5acc798",
904         "wires": [
905             [
906                 "1dbc7790.e7ae58"
907             ]
908         ]
909     },
910     {
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",
915         "comments": "",
916         "x": 1211.189079284668,
917         "y": 1394.708694934845,
918         "z": "9891698.5acc798",
919         "wires": []
920     },
921     {
922         "id": "ea841139.28697",
923         "type": "block",
924         "name": "block",
925         "xml": "<block>\n",
926         "atomic": "false",
927         "comments": "",
928         "outputs": 1,
929         "x": 1205.3794708251953,
930         "y": 1363.0421136282384,
931         "z": "9891698.5acc798",
932         "wires": [
933             []
934         ]
935     },
936     {
937         "id": "aa7b29ba.46e3f8",
938         "type": "comment",
939         "name": "Apply the policy to source network",
940         "info": "",
941         "comments": "",
942         "x": 615.9086761474609,
943         "y": 1329.999993801117,
944         "z": "9891698.5acc798",
945         "wires": []
946     },
947     {
948         "id": "d622c4ae.e4c078",
949         "type": "execute",
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",
952         "comments": "",
953         "outputs": 1,
954         "x": 630.9087524414062,
955         "y": 1993.0005702972412,
956         "z": "9891698.5acc798",
957         "wires": [
958             [
959                 "d7319da9.6f11f",
960                 "6527b311.a1725c"
961             ]
962         ]
963     },
964     {
965         "id": "d7319da9.6f11f",
966         "type": "success",
967         "name": "success",
968         "xml": "<outcome value='success'>\n",
969         "comments": "",
970         "outputs": 1,
971         "x": 978.5752029418945,
972         "y": 1940.4285743236542,
973         "z": "9891698.5acc798",
974         "wires": [
975             [
976                 "79c0bf3e.8f161"
977             ]
978         ]
979     },
980     {
981         "id": "6527b311.a1725c",
982         "type": "failure",
983         "name": "failure",
984         "xml": "<outcome value='failure'>\n",
985         "comments": "",
986         "outputs": 1,
987         "x": 971.6705017089844,
988         "y": 2000.4286079406738,
989         "z": "9891698.5acc798",
990         "wires": [
991             [
992                 "d1acf48f.1528d8"
993             ]
994         ]
995     },
996     {
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",
1001         "comments": "",
1002         "x": 1324.575210571289,
1003         "y": 1999.7620124816895,
1004         "z": "9891698.5acc798",
1005         "wires": []
1006     },
1007     {
1008         "id": "79c0bf3e.8f161",
1009         "type": "block",
1010         "name": "block",
1011         "xml": "<block>\n",
1012         "atomic": "false",
1013         "comments": "",
1014         "outputs": 1,
1015         "x": 1130.7656631469727,
1016         "y": 1940.0952320098877,
1017         "z": "9891698.5acc798",
1018         "wires": [
1019             []
1020         ]
1021     },
1022     {
1023         "id": "e59fc471.19e8d8",
1024         "type": "comment",
1025         "name": "Apply the policy to dest network",
1026         "info": "",
1027         "comments": "",
1028         "x": 527.2948684692383,
1029         "y": 1962.053059577942,
1030         "z": "9891698.5acc798",
1031         "wires": []
1032     },
1033     {
1034         "id": "532f22ba.12601c",
1035         "type": "comment",
1036         "name": "Update network policy in AAI - relationship to networks",
1037         "info": "",
1038         "comments": "",
1039         "x": 590.9087066650391,
1040         "y": 2038.9999990463257,
1041         "z": "9891698.5acc798",
1042         "wires": []
1043     },
1044     {
1045         "id": "3cffa7a5.824108",
1046         "type": "save",
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",
1049         "comments": "",
1050         "outputs": 1,
1051         "x": 628.2856140136719,
1052         "y": 2072.0676736831665,
1053         "z": "9891698.5acc798",
1054         "wires": [
1055             [
1056                 "769c8a99.b4b644",
1057                 "edbcd523.680bd8"
1058             ]
1059         ]
1060     },
1061     {
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",
1066         "comments": "",
1067         "x": 1300.6311531066895,
1068         "y": 2089.3492336273193,
1069         "z": "9891698.5acc798",
1070         "wires": []
1071     },
1072     {
1073         "id": "769c8a99.b4b644",
1074         "type": "failure",
1075         "name": "failure",
1076         "xml": "<outcome value='failure'>\n",
1077         "comments": "",
1078         "outputs": 1,
1079         "x": 941.0597457885742,
1080         "y": 2051.365255355835,
1081         "z": "9891698.5acc798",
1082         "wires": [
1083             [
1084                 "6815d49e.d4968c"
1085             ]
1086         ]
1087     },
1088     {
1089         "id": "edbcd523.680bd8",
1090         "type": "not-found",
1091         "name": "not-found",
1092         "xml": "<outcome value='not-found'>\n",
1093         "comments": "",
1094         "outputs": 1,
1095         "x": 949.8692474365234,
1096         "y": 2083.841604232788,
1097         "z": "9891698.5acc798",
1098         "wires": [
1099             [
1100                 "6815d49e.d4968c"
1101             ]
1102         ]
1103     },
1104     {
1105         "id": "b36a3a75.c03f18",
1106         "type": "comment",
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",
1109         "comments": "",
1110         "x": 125.0039291381836,
1111         "y": 55,
1112         "z": "9891698.5acc798",
1113         "wires": []
1114     },
1115     {
1116         "id": "eaf9a24a.34c19",
1117         "type": "call",
1118         "name": "call validate-api-contrail-route-input",
1119         "xml": "<call module='GENERIC-RESOURCE-API' rpc='validate-api-contrail-route-input' mode='sync' >\n",
1120         "comments": "",
1121         "outputs": 1,
1122         "x": 648.0039520263672,
1123         "y": 417.6667326026509,
1124         "z": "9891698.5acc798",
1125         "wires": [
1126             []
1127         ]
1128     },
1129     {
1130         "id": "5fd1bc26.619354",
1131         "type": "set",
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",
1134         "comments": "",
1135         "x": 637.00390625,
1136         "y": 453.75488233566284,
1137         "z": "9891698.5acc798",
1138         "wires": []
1139     },
1140     {
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",
1145         "comments": "",
1146         "outputs": 1,
1147         "x": 641.9086380004883,
1148         "y": 881.9999370574951,
1149         "z": "9891698.5acc798",
1150         "wires": [
1151             [
1152                 "c16d9d8f.2f742",
1153                 "b4ab046c.7bbdd8"
1154             ]
1155         ]
1156     },
1157     {
1158         "id": "c16d9d8f.2f742",
1159         "type": "other",
1160         "name": "Other",
1161         "xml": "<outcome value='Other'>",
1162         "comments": "",
1163         "outputs": 1,
1164         "x": 995.908863067627,
1165         "y": 882.6663212776184,
1166         "z": "9891698.5acc798",
1167         "wires": [
1168             [
1169                 "1fdb4c68.9dcdd4"
1170             ]
1171         ]
1172     },
1173     {
1174         "id": "b4ab046c.7bbdd8",
1175         "type": "other",
1176         "name": "NULL",
1177         "xml": "<outcome value=''>",
1178         "comments": "",
1179         "outputs": 1,
1180         "x": 991.5756797790527,
1181         "y": 845.6661214828491,
1182         "z": "9891698.5acc798",
1183         "wires": [
1184             [
1185                 "47d494e.8feca6c"
1186             ]
1187         ]
1188     },
1189     {
1190         "id": "1fdb4c68.9dcdd4",
1191         "type": "block",
1192         "name": "block",
1193         "xml": "<block>\n",
1194         "atomic": "false",
1195         "comments": "",
1196         "outputs": 1,
1197         "x": 1130.020118713379,
1198         "y": 883.1107258796692,
1199         "z": "9891698.5acc798",
1200         "wires": [
1201             []
1202         ]
1203     },
1204     {
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",
1209         "comments": "",
1210         "x": 1145.7091445922852,
1211         "y": 846.3330240249634,
1212         "z": "9891698.5acc798",
1213         "wires": []
1214     },
1215     {
1216         "id": "adbc3d8f.4c88c",
1217         "type": "comment",
1218         "name": "Validate source network exists",
1219         "info": "",
1220         "comments": "",
1221         "x": 622.3090057373047,
1222         "y": 848.6662721633911,
1223         "z": "9891698.5acc798",
1224         "wires": []
1225     },
1226     {
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",
1231         "comments": "",
1232         "outputs": 1,
1233         "x": 621.0039978027344,
1234         "y": 1493.00412940979,
1235         "z": "9891698.5acc798",
1236         "wires": [
1237             [
1238                 "86591e48.8b912",
1239                 "2d369d82.a15852"
1240             ]
1241         ]
1242     },
1243     {
1244         "id": "86591e48.8b912",
1245         "type": "other",
1246         "name": "Other",
1247         "xml": "<outcome value='Other'>",
1248         "comments": "",
1249         "outputs": 1,
1250         "x": 987.0041847229004,
1251         "y": 1496.670422077179,
1252         "z": "9891698.5acc798",
1253         "wires": [
1254             [
1255                 "6424c74c.6bf1b8"
1256             ]
1257         ]
1258     },
1259     {
1260         "id": "2d369d82.a15852",
1261         "type": "other",
1262         "name": "NULL",
1263         "xml": "<outcome value=''>",
1264         "comments": "",
1265         "outputs": 1,
1266         "x": 982.6710014343262,
1267         "y": 1459.6702222824097,
1268         "z": "9891698.5acc798",
1269         "wires": [
1270             [
1271                 "b0ad8b07.b6b7a8"
1272             ]
1273         ]
1274     },
1275     {
1276         "id": "6424c74c.6bf1b8",
1277         "type": "block",
1278         "name": "block",
1279         "xml": "<block>\n",
1280         "atomic": "false",
1281         "comments": "",
1282         "outputs": 1,
1283         "x": 1121.1154403686523,
1284         "y": 1497.1148266792297,
1285         "z": "9891698.5acc798",
1286         "wires": [
1287             []
1288         ]
1289     },
1290     {
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",
1295         "comments": "",
1296         "x": 1136.8044662475586,
1297         "y": 1460.337124824524,
1298         "z": "9891698.5acc798",
1299         "wires": []
1300     },
1301     {
1302         "id": "34108a7a.83c866",
1303         "type": "comment",
1304         "name": "Validate dest network exists",
1305         "info": "",
1306         "comments": "",
1307         "x": 613.4043273925781,
1308         "y": 1462.6703729629517,
1309         "z": "9891698.5acc798",
1310         "wires": []
1311     },
1312     {
1313         "id": "e4f9d349.fde5f",
1314         "type": "execute",
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",
1317         "comments": "",
1318         "outputs": 1,
1319         "x": 701.0039825439453,
1320         "y": 1207.0039501190186,
1321         "z": "9891698.5acc798",
1322         "wires": [
1323             [
1324                 "d6f6c55b.f02538",
1325                 "403f3b66.46ae04"
1326             ]
1327         ]
1328     },
1329     {
1330         "id": "d6f6c55b.f02538",
1331         "type": "success",
1332         "name": "success",
1333         "xml": "<outcome value='success'>\n",
1334         "comments": "",
1335         "outputs": 1,
1336         "x": 1033.003921508789,
1337         "y": 1184.0037670135498,
1338         "z": "9891698.5acc798",
1339         "wires": [
1340             [
1341                 "b2bec48b.7b25f8"
1342             ]
1343         ]
1344     },
1345     {
1346         "id": "403f3b66.46ae04",
1347         "type": "failure",
1348         "name": "failure",
1349         "xml": "<outcome value='failure'>\n",
1350         "comments": "",
1351         "outputs": 1,
1352         "x": 1036.0992584228516,
1353         "y": 1219.0036638639867,
1354         "z": "9891698.5acc798",
1355         "wires": [
1356             [
1357                 "bd482d4e.9ce62"
1358             ]
1359         ]
1360     },
1361     {
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",
1366         "comments": "",
1367         "x": 1196.0040283203125,
1368         "y": 1218.3370304107666,
1369         "z": "9891698.5acc798",
1370         "wires": []
1371     },
1372     {
1373         "id": "b2bec48b.7b25f8",
1374         "type": "block",
1375         "name": "block",
1376         "xml": "<block>\n",
1377         "atomic": "false",
1378         "comments": "",
1379         "outputs": 1,
1380         "x": 1176.1943817138672,
1381         "y": 1180.6704998016357,
1382         "z": "9891698.5acc798",
1383         "wires": [
1384             []
1385         ]
1386     },
1387     {
1388         "id": "15b849c5.50cd26",
1389         "type": "execute",
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",
1392         "comments": "",
1393         "outputs": 1,
1394         "x": 733.00390625,
1395         "y": 1082.0038414001465,
1396         "z": "9891698.5acc798",
1397         "wires": [
1398             []
1399         ]
1400     },
1401     {
1402         "id": "ce7dd724.3acf18",
1403         "type": "set",
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",
1406         "comments": "",
1407         "x": 1255.6705322265625,
1408         "y": 1138.670630455017,
1409         "z": "9891698.5acc798",
1410         "wires": []
1411     },
1412     {
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",
1417         "comments": "",
1418         "outputs": 1,
1419         "x": 645.6706695556641,
1420         "y": 1122.0036134719849,
1421         "z": "9891698.5acc798",
1422         "wires": [
1423             [
1424                 "22a0284e.af4fa8",
1425                 "172bcac1.b14ca5"
1426             ]
1427         ]
1428     },
1429     {
1430         "id": "22a0284e.af4fa8",
1431         "type": "outcome",
1432         "name": "outcome 0",
1433         "xml": "<outcome value='0'>\n",
1434         "comments": "",
1435         "outputs": 1,
1436         "x": 1071.0040283203125,
1437         "y": 1103.003870010376,
1438         "z": "9891698.5acc798",
1439         "wires": [
1440             [
1441                 "3a81459a.53c3ca"
1442             ]
1443         ]
1444     },
1445     {
1446         "id": "172bcac1.b14ca5",
1447         "type": "other",
1448         "name": "other",
1449         "xml": "<outcome value='Other'>\n",
1450         "comments": "",
1451         "outputs": 1,
1452         "x": 1058.670597076416,
1453         "y": 1138.3371086120605,
1454         "z": "9891698.5acc798",
1455         "wires": [
1456             [
1457                 "ce7dd724.3acf18"
1458             ]
1459         ]
1460     },
1461     {
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",
1466         "comments": "",
1467         "x": 1236.3374214172363,
1468         "y": 1101.3372583389282,
1469         "z": "9891698.5acc798",
1470         "wires": []
1471     },
1472     {
1473         "id": "d5fd35ad.ade908",
1474         "type": "execute",
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",
1477         "comments": "",
1478         "outputs": 1,
1479         "x": 666.7540435791016,
1480         "y": 1857.004072189331,
1481         "z": "9891698.5acc798",
1482         "wires": [
1483             [
1484                 "6705929e.e0e77c",
1485                 "c2d11fad.9664b"
1486             ]
1487         ]
1488     },
1489     {
1490         "id": "6705929e.e0e77c",
1491         "type": "success",
1492         "name": "success",
1493         "xml": "<outcome value='success'>\n",
1494         "comments": "",
1495         "outputs": 1,
1496         "x": 1012.7540740966797,
1497         "y": 1815.0038328170776,
1498         "z": "9891698.5acc798",
1499         "wires": [
1500             [
1501                 "a622e69d.cbb0c8"
1502             ]
1503         ]
1504     },
1505     {
1506         "id": "c2d11fad.9664b",
1507         "type": "failure",
1508         "name": "failure",
1509         "xml": "<outcome value='failure'>\n",
1510         "comments": "",
1511         "outputs": 1,
1512         "x": 1010.8493499755859,
1513         "y": 1851.00389656052,
1514         "z": "9891698.5acc798",
1515         "wires": [
1516             [
1517                 "b72968fd.8211a8"
1518             ]
1519         ]
1520     },
1521     {
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",
1526         "comments": "",
1527         "x": 1336.7541999816895,
1528         "y": 1850.3376598358154,
1529         "z": "9891698.5acc798",
1530         "wires": []
1531     },
1532     {
1533         "id": "a622e69d.cbb0c8",
1534         "type": "block",
1535         "name": "block",
1536         "xml": "<block>\n",
1537         "atomic": "false",
1538         "comments": "",
1539         "outputs": 1,
1540         "x": 1164.9445571899414,
1541         "y": 1815.6705578230321,
1542         "z": "9891698.5acc798",
1543         "wires": [
1544             []
1545         ]
1546     },
1547     {
1548         "id": "7089138.b1a97ec",
1549         "type": "execute",
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",
1552         "comments": "",
1553         "outputs": 1,
1554         "x": 748.7538528442383,
1555         "y": 1669.0042209625244,
1556         "z": "9891698.5acc798",
1557         "wires": [
1558             []
1559         ]
1560     },
1561     {
1562         "id": "a6c01b92.c4b048",
1563         "type": "set",
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",
1566         "comments": "",
1567         "x": 1247.4204864501953,
1568         "y": 1763.6705312728882,
1569         "z": "9891698.5acc798",
1570         "wires": []
1571     },
1572     {
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",
1577         "comments": "",
1578         "outputs": 1,
1579         "x": 624.4206771850586,
1580         "y": 1775.0039176940918,
1581         "z": "9891698.5acc798",
1582         "wires": [
1583             [
1584                 "64135014.1484c",
1585                 "78fd4449.d5663c"
1586             ]
1587         ]
1588     },
1589     {
1590         "id": "64135014.1484c",
1591         "type": "outcome",
1592         "name": "outcome 0",
1593         "xml": "<outcome value='0'>\n",
1594         "comments": "",
1595         "outputs": 1,
1596         "x": 1062.7539825439453,
1597         "y": 1728.003770828247,
1598         "z": "9891698.5acc798",
1599         "wires": [
1600             [
1601                 "30e65481.3602fc"
1602             ]
1603         ]
1604     },
1605     {
1606         "id": "78fd4449.d5663c",
1607         "type": "other",
1608         "name": "other",
1609         "xml": "<outcome value='Other'>\n",
1610         "comments": "",
1611         "outputs": 1,
1612         "x": 1050.4205513000488,
1613         "y": 1763.3370094299316,
1614         "z": "9891698.5acc798",
1615         "wires": [
1616             [
1617                 "a6c01b92.c4b048"
1618             ]
1619         ]
1620     },
1621     {
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",
1626         "comments": "",
1627         "x": 1392.0874862670898,
1628         "y": 1729.3372602462769,
1629         "z": "9891698.5acc798",
1630         "wires": []
1631     },
1632     {
1633         "id": "9c989359.3958a",
1634         "type": "execute",
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",
1637         "comments": "",
1638         "outputs": 1,
1639         "x": 1952.254035949707,
1640         "y": 1987.0046873092651,
1641         "z": "9891698.5acc798",
1642         "wires": [
1643             [
1644                 "b2e4ce3a.78ab"
1645             ]
1646         ]
1647     },
1648     {
1649         "id": "2b256c3a.a1ee64",
1650         "type": "execute",
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",
1653         "comments": "",
1654         "outputs": 1,
1655         "x": 1955.2542667388916,
1656         "y": 1436.004343032837,
1657         "z": "9891698.5acc798",
1658         "wires": [
1659             [
1660                 "b2e4ce3a.78ab"
1661             ]
1662         ]
1663     },
1664     {
1665         "id": "b2e4ce3a.78ab",
1666         "type": "other",
1667         "name": "Other",
1668         "xml": "<outcome value='Other'>",
1669         "comments": "",
1670         "outputs": 1,
1671         "x": 2367.7539672851562,
1672         "y": 1600.004165649414,
1673         "z": "9891698.5acc798",
1674         "wires": [
1675             [
1676                 "be4c8985.5285d8"
1677             ]
1678         ]
1679     },
1680     {
1681         "id": "be4c8985.5285d8",
1682         "type": "block",
1683         "name": "block",
1684         "xml": "<block>\n",
1685         "atomic": "false",
1686         "comments": "",
1687         "outputs": 1,
1688         "x": 2501.865222930908,
1689         "y": 1600.4485702514648,
1690         "z": "9891698.5acc798",
1691         "wires": [
1692             []
1693         ]
1694     },
1695     {
1696         "id": "b739671e.70ddd8",
1697         "type": "set",
1698         "name": "set dest-uuid",
1699         "xml": "<set>\n<parameter name='dest-uuid' value='`$uuidresp.uuid`' />",
1700         "comments": "",
1701         "x": 536.00390625,
1702         "y": 1896.00390625,
1703         "z": "9891698.5acc798",
1704         "wires": []
1705     },
1706     {
1707         "id": "56153950.54ad38",
1708         "type": "set",
1709         "name": "set src-uuid",
1710         "xml": "<set>\n<parameter name='src-uuid' value='`$uuidresp.uuid`' />",
1711         "comments": "",
1712         "x": 567.00390625,
1713         "y": 1244.00390625,
1714         "z": "9891698.5acc798",
1715         "wires": []
1716     },
1717     {
1718         "id": "f782658b.df7a58",
1719         "type": "block",
1720         "name": "block",
1721         "xml": "<block>\n",
1722         "atomic": "false",
1723         "comments": "",
1724         "outputs": 1,
1725         "x": 1061.003921508789,
1726         "y": 1571.003975868225,
1727         "z": "9891698.5acc798",
1728         "wires": [
1729             [
1730                 "2b256c3a.a1ee64",
1731                 "25536135.8ba92e"
1732             ]
1733         ]
1734     },
1735     {
1736         "id": "30e65481.3602fc",
1737         "type": "block",
1738         "name": "block",
1739         "xml": "<block>\n",
1740         "atomic": "false",
1741         "comments": "",
1742         "outputs": 1,
1743         "x": 1220.00390625,
1744         "y": 1728.00390625,
1745         "z": "9891698.5acc798",
1746         "wires": [
1747             [
1748                 "2b256c3a.a1ee64",
1749                 "da434e7c.51705"
1750             ]
1751         ]
1752     },
1753     {
1754         "id": "b72968fd.8211a8",
1755         "type": "block",
1756         "name": "block",
1757         "xml": "<block>\n",
1758         "atomic": "false",
1759         "comments": "",
1760         "outputs": 1,
1761         "x": 1167.00390625,
1762         "y": 1850.00390625,
1763         "z": "9891698.5acc798",
1764         "wires": [
1765             [
1766                 "3a2af246.f1c3be",
1767                 "2b256c3a.a1ee64"
1768             ]
1769         ]
1770     },
1771     {
1772         "id": "d1acf48f.1528d8",
1773         "type": "block",
1774         "name": "block",
1775         "xml": "<block>\n",
1776         "atomic": "false",
1777         "comments": "",
1778         "outputs": 1,
1779         "x": 1121.00390625,
1780         "y": 2000.00390625,
1781         "z": "9891698.5acc798",
1782         "wires": [
1783             [
1784                 "2b256c3a.a1ee64",
1785                 "48db747b.77152c"
1786             ]
1787         ]
1788     },
1789     {
1790         "id": "6815d49e.d4968c",
1791         "type": "block",
1792         "name": "block",
1793         "xml": "<block>\n",
1794         "atomic": "false",
1795         "comments": "",
1796         "outputs": 1,
1797         "x": 1114.00390625,
1798         "y": 2067.00390625,
1799         "z": "9891698.5acc798",
1800         "wires": [
1801             [
1802                 "667534.67f40acc",
1803                 "2b256c3a.a1ee64",
1804                 "9c989359.3958a"
1805             ]
1806         ]
1807     },
1808     {
1809         "id": "5ffafd8c.fe0b24",
1810         "type": "block",
1811         "name": "block",
1812         "xml": "<block>\n",
1813         "atomic": "false",
1814         "comments": "",
1815         "outputs": 1,
1816         "x": 954.75390625,
1817         "y": 2181.00390625,
1818         "z": "9891698.5acc798",
1819         "wires": [
1820             [
1821                 "84e2dba0.6f81c8",
1822                 "2b256c3a.a1ee64",
1823                 "9c989359.3958a"
1824             ]
1825         ]
1826     },
1827     {
1828         "id": "42ff2a69.2ea5e4",
1829         "type": "block",
1830         "name": "block",
1831         "xml": "<block>\n",
1832         "atomic": "false",
1833         "comments": "",
1834         "outputs": 1,
1835         "x": 968.75390625,
1836         "y": 2389.00390625,
1837         "z": "9891698.5acc798",
1838         "wires": [
1839             [
1840                 "ebb7c978.74fc68",
1841                 "2b256c3a.a1ee64",
1842                 "9c989359.3958a"
1843             ]
1844         ]
1845     }
1846 ]