Chore: Add gerrit maven verify GHA workflow
[sdnc/oam.git] / platform-logic / generic-resource-api / src / main / json / GENERIC-RESOURCE-API_contrail-route-topology-operation-deactivate.json
1 [
2     {
3         "id": "b815bf6b.f806",
4         "type": "dgstart",
5         "name": "DGSTART",
6         "outputs": 1,
7         "x": 149.00390625,
8         "y": 66.99999904632568,
9         "z": "1907a3e8.ef01ec",
10         "wires": [
11             [
12                 "e3536c87.13bbe"
13             ]
14         ]
15     },
16     {
17         "id": "e3536c87.13bbe",
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": 295.2419891357422,
26         "y": 141.952392578125,
27         "z": "1907a3e8.ef01ec",
28         "wires": [
29             [
30                 "32e23dff.190972"
31             ]
32         ]
33     },
34     {
35         "id": "32e23dff.190972",
36         "type": "method",
37         "name": "contrail-route-topology-operation-deactivate",
38         "xml": "<method rpc='contrail-route-topology-operation-deactivate' mode='sync'>\n",
39         "comments": "",
40         "outputs": 1,
41         "x": 375.1587562561035,
42         "y": 211.1904411315918,
43         "z": "1907a3e8.ef01ec",
44         "wires": [
45             [
46                 "c4f5eee9.6967e"
47             ]
48         ]
49     },
50     {
51         "id": "c4f5eee9.6967e",
52         "type": "block",
53         "name": "block : atomic",
54         "xml": "<block atomic=\"true\">",
55         "atomic": "true",
56         "comments": "",
57         "outputs": 1,
58         "x": 283.4800910949707,
59         "y": 354.5237832069397,
60         "z": "1907a3e8.ef01ec",
61         "wires": [
62             [
63                 "a3036c42.f5314",
64                 "86e70516.39d8f8",
65                 "600fb8be.00cd98",
66                 "e41af924.acac48",
67                 "ec5ab69c.960248",
68                 "a3185364.e3557",
69                 "c2196657.5c5568",
70                 "c89d538f.9aa9d",
71                 "485d44b.3f22bbc",
72                 "df7e9878.bf2438",
73                 "cadfd5a3.bfaee8",
74                 "58da4328.00307c",
75                 "7b764332.cfbc8c",
76                 "e7206768.0e4798",
77                 "bcbcae69.e41a6",
78                 "ac156492.2e6298",
79                 "a041f2a.fea5e1",
80                 "25a06dee.1913e2",
81                 "316bd14d.1e3f7e",
82                 "7f032d3b.5762a4",
83                 "735dd19a.3e195",
84                 "61e59930.9891c8"
85             ]
86         ]
87     },
88     {
89         "id": "86e70516.39d8f8",
90         "type": "returnSuccess",
91         "name": "return success",
92         "xml": "<return status='success'>\n<parameter name=\"ack-final-indicator\" value=\"Y\" />\n<parameter name=\"error-code\" value=\"200\" />\n<parameter name=\"error-message\" value=\"`$error-message`\" />\n",
93         "comments": "",
94         "x": 546.003978729248,
95         "y": 2280.548007965088,
96         "z": "1907a3e8.ef01ec",
97         "wires": []
98     },
99     {
100         "id": "a3036c42.f5314",
101         "type": "set",
102         "name": "set output to api handler",
103         "xml": "<set>\n<parameter name='allotted-resource-id' value='`$tmp.ar.allotted-resource-id`' />\n<parameter name='contrail-route-object-path' value=\"`$tmp.ar.self-link`\"/>\n<parameter name='service-object-path' value=\"`'restconf/config/GENERIC-RESOURCE-API:services/service/'\n + $contrail-route-topology-operation-input.service-information.service-instance-id\n + '/service-data/service-topology/'`\"/>\n \n",
104         "comments": "",
105         "x": 574.757884979248,
106         "y": 2243.003801345825,
107         "z": "1907a3e8.ef01ec",
108         "wires": []
109     },
110     {
111         "id": "df7e9878.bf2438",
112         "type": "set",
113         "name": "set allotted-resource-oper-status",
114         "xml": "<set>\n<parameter name='ar.allotted-resource-data.allotted-resource-oper-status.order-status' value='PendingDelete' />\n<parameter name='ar.allotted-resource-data.allotted-resource-oper-status.last-action' value='`$contrail-route-topology-operation-input.request-information.request-action`' />\n<parameter name='ar.allotted-resource-data.allotted-resource-oper-status.last-rpc-action' value='`$contrail-route-topology-operation-input.sdnc-request-header.svc-action`' />\n<parameter name='ar.allotted-resource-data.allotted-resource-oper-status.last-svc-request-id' value='`$contrail-route-topology-operation-input.sdnc-request-header.svc-request-id`' />\n<parameter name='ar.allotted-resource-data.allotted-resource-oper-status.create-timestamp' value='`$tmp.current-time`' />\n",
115         "comments": "",
116         "x": 609.7580490112305,
117         "y": 2103.717960357666,
118         "z": "1907a3e8.ef01ec",
119         "wires": []
120     },
121     {
122         "id": "e41af924.acac48",
123         "type": "set",
124         "name": "set tmp.ar.self-link",
125         "xml": "<set>\n<parameter name='tmp.ar.self-link' value=\"`'restconf/config/GENERIC-RESOURCE-API:contrail-route-allotted-resources/contrail-route-allotted-resource/'\n + $tmp.ar.allotted-resource-id\n + '/allotted-resource-data/contrail-route-topology/'` \" />\n\n",
126         "comments": "",
127         "x": 545.7419624328613,
128         "y": 328.3333206176758,
129         "z": "1907a3e8.ef01ec",
130         "wires": []
131     },
132     {
133         "id": "600fb8be.00cd98",
134         "type": "set",
135         "name": "set tmp.ar.allotted-resource-id,etc",
136         "xml": "<set>\n<parameter name='tmp.ar.allotted-resource-id' value='`$contrail-route-topology-operation-input.allotted-resource-information.allotted-resource-id`' />\n<parameter name='tmp.ar.parent-service-instance-id' value='`$contrail-route-topology-operation-input.allotted-resource-information.parent-service-instance-id`' />\n<parameter name='tmp.ar.sz-vnf-id' value='`$contrail-route-topology-operation-input.allotted-resource-data.security-zone-topology.security-zone-assignments.security-zone-vnf-id`' />\n\n\n",
137         "comments": "",
138         "x": 593.0012245178223,
139         "y": 294.592586517334,
140         "z": "1907a3e8.ef01ec",
141         "wires": []
142     },
143     {
144         "id": "ec5ab69c.960248",
145         "type": "execute",
146         "name": "execute Properties - pull properties file",
147         "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.prop.PropertiesNode' method='readProperties' >\n    <parameter name='fileName' value='%SDNC_CONFIG_DIR%/generic-resource-api-dg.properties' />\n    <parameter name='contextPrefix' value='prop' />\n",
148         "comments": "",
149         "outputs": 1,
150         "x": 615.9973220825195,
151         "y": 364.2315492630005,
152         "z": "1907a3e8.ef01ec",
153         "wires": [
154             []
155         ]
156     },
157     {
158         "id": "c2196657.5c5568",
159         "type": "execute",
160         "name": "execute RestApiCallNode - Get AR by id",
161         "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n    <parameter name='restapiUrl' value='`$prop.controller.url + $tmp.ar-url`' />\n    <parameter name='restapiUser' value='`$prop.controller.user`' />\n    <parameter name='restapiPassword' value='`$prop.controller.pwd`' />\n    <parameter name='format' value='json' />\n    <parameter name='httpMethod' value='GET' />\n    <parameter name=\"responsePrefix\" value=\"mdsal-ar\" />\n\n",
162         "comments": "",
163         "outputs": 1,
164         "x": 622.5226516723633,
165         "y": 532.4595079421997,
166         "z": "1907a3e8.ef01ec",
167         "wires": [
168             [
169                 "c4a17fbb.5689e",
170                 "18d8cd61.df5a73"
171             ]
172         ]
173     },
174     {
175         "id": "a3185364.e3557",
176         "type": "execute",
177         "name": "generate allotted-resource url",
178         "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n    <parameter name=\"source\" value=\"`$prop.restapi.cr-allottedresource`\"/>\n    <parameter name=\"outputPath\" value=\"tmp.ar-url\"/>\n    <parameter name=\"target\" value=\"{allotted-resource-id}\"/>\n    <parameter name=\"replacement\" value=\"`$tmp.ar.allotted-resource-id`\"/>\n",
179         "comments": "",
180         "outputs": 1,
181         "x": 580.0687522888184,
182         "y": 424.0172243118286,
183         "z": "1907a3e8.ef01ec",
184         "wires": [
185             []
186         ]
187     },
188     {
189         "id": "c4a17fbb.5689e",
190         "type": "success",
191         "name": "success",
192         "xml": "<outcome value='success'>\n",
193         "comments": "",
194         "outputs": 1,
195         "x": 867.8187561035156,
196         "y": 533.2673215866089,
197         "z": "1907a3e8.ef01ec",
198         "wires": [
199             [
200                 "cac5050.acefef8"
201             ]
202         ]
203     },
204     {
205         "id": "c89d538f.9aa9d",
206         "type": "execute",
207         "name": "execute RestApiCallNode - PUT AR by id",
208         "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n    <parameter name='templateFileName' value=\"`$prop.restapi.templateDir + '/' + $prop.restapi.cr.templatefile`\" />\n    <parameter name='restapiUrl' value='`$prop.controller.url + $tmp.ar-url`' />\n    <parameter name='restapiUser' value='`$prop.controller.user`' />\n    <parameter name='restapiPassword' value='`$prop.controller.pwd`' />\n    <parameter name='format' value='json' />\n    <parameter name='httpMethod' value='PUT' />\n    <parameter name=\"responsePrefix\" value=\"mdsal-ar\" />\n\n",
209         "comments": "",
210         "outputs": 1,
211         "x": 637.8665161132812,
212         "y": 2177.7674798965454,
213         "z": "1907a3e8.ef01ec",
214         "wires": [
215             [
216                 "143ba41d.04eb0c",
217                 "b003cfcf.73519",
218                 "cffa818d.e26b9"
219             ]
220         ]
221     },
222     {
223         "id": "143ba41d.04eb0c",
224         "type": "not-found",
225         "name": "not-found",
226         "xml": "<outcome value='not-found'>\n",
227         "comments": "",
228         "outputs": 1,
229         "x": 908.1745338439941,
230         "y": 2230.76568069309,
231         "z": "1907a3e8.ef01ec",
232         "wires": [
233             [
234                 "f851a353.e9aa2"
235             ]
236         ]
237     },
238     {
239         "id": "b003cfcf.73519",
240         "type": "failure",
241         "name": "failure",
242         "xml": "<outcome value='failure'>\n",
243         "comments": "",
244         "outputs": 1,
245         "x": 899.1745834350586,
246         "y": 2199.2657064422965,
247         "z": "1907a3e8.ef01ec",
248         "wires": [
249             [
250                 "f851a353.e9aa2"
251             ]
252         ]
253     },
254     {
255         "id": "cffa818d.e26b9",
256         "type": "success",
257         "name": "success",
258         "xml": "<outcome value='success'>\n",
259         "comments": "",
260         "outputs": 1,
261         "x": 902.9246215820312,
262         "y": 2169.622811317444,
263         "z": "1907a3e8.ef01ec",
264         "wires": [
265             [
266                 "94b3659a.a43058"
267             ]
268         ]
269     },
270     {
271         "id": "f851a353.e9aa2",
272         "type": "returnFailure",
273         "name": "return failure",
274         "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n    <parameter name=\"error-message\" value=\"Error updating md-sal for contrail-route-allotted-resource\" />\n",
275         "comments": "",
276         "x": 1068.9246215820312,
277         "y": 2200.0157302841544,
278         "z": "1907a3e8.ef01ec",
279         "wires": []
280     },
281     {
282         "id": "cac5050.acefef8",
283         "type": "block",
284         "name": "block: atomic",
285         "xml": "<block atomic=\"true\">\n",
286         "atomic": "false",
287         "comments": "",
288         "outputs": 1,
289         "x": 1036.818759918213,
290         "y": 531.76722240448,
291         "z": "1907a3e8.ef01ec",
292         "wires": [
293             [
294                 "4b3e1791.ede978"
295             ]
296         ]
297     },
298     {
299         "id": "4b3e1791.ede978",
300         "type": "switchNode",
301         "name": "switch cr length",
302         "xml": "<switch test='`$mdsal-ar.contrail-route-allotted-resource_length`'>\n",
303         "comments": "",
304         "outputs": 1,
305         "x": 1247.6760025024414,
306         "y": 531.3863515853882,
307         "z": "1907a3e8.ef01ec",
308         "wires": [
309             [
310                 "308a03ed.e1727c",
311                 "47b8a1d5.c5ec"
312             ]
313         ]
314     },
315     {
316         "id": "308a03ed.e1727c",
317         "type": "other",
318         "name": "outcome 1",
319         "xml": "<outcome value='1'>\n",
320         "comments": "",
321         "outputs": 1,
322         "x": 1437.0093078613281,
323         "y": 531.3863096237183,
324         "z": "1907a3e8.ef01ec",
325         "wires": [
326             [
327                 "c91abe4f.2358d"
328             ]
329         ]
330     },
331     {
332         "id": "e2e2a405.0fa288",
333         "type": "set",
334         "name": "set ar from get",
335         "xml": "<set>\n<parameter name='ar.' value='$mdsal-ar.contrail-route-allotted-resource[0].' />\n",
336         "comments": "",
337         "x": 1910.2001266479492,
338         "y": 494.62452507019043,
339         "z": "1907a3e8.ef01ec",
340         "wires": []
341     },
342     {
343         "id": "c91abe4f.2358d",
344         "type": "block",
345         "name": "block: atomic",
346         "xml": "<block atomic='true'>\n",
347         "atomic": "false",
348         "comments": "",
349         "outputs": 1,
350         "x": 1621.533197402954,
351         "y": 528.2911434173584,
352         "z": "1907a3e8.ef01ec",
353         "wires": [
354             [
355                 "e2e2a405.0fa288",
356                 "e450a5fc.4f5528",
357                 "a38edad2.503f08"
358             ]
359         ]
360     },
361     {
362         "id": "e450a5fc.4f5528",
363         "type": "set",
364         "name": "set oper-status",
365         "xml": "<set>\n<parameter name='sz-ar.allotted-resource-data.allotted-resource-oper-status.last-action' value='`$sz-ar.allotted-resource-data.allotted-resource-operation-information.request-information.request-action`' />\n<parameter name='sz-ar.allotted-resource-data.allotted-resource-oper-status.last-rpc-action' value='`$sz-ar.allotted-resource-status.rpc-action`' />\n<parameter name='sz-ar.allotted-resource-data.allotted-resource-oper-status.last-svc-request-id' value='`$sz-ar.allotted-resource-data.allotted-resource-operation-information.sdnc-request-header.svc-request-id`' />\n\n",
366         "comments": "",
367         "x": 1918.2000541687012,
368         "y": 558.7196683883667,
369         "z": "1907a3e8.ef01ec",
370         "wires": []
371     },
372     {
373         "id": "e509658b.31b9c8",
374         "type": "comment",
375         "name": "GET security-zone-allotted-resource from mdsal",
376         "info": "",
377         "comments": "",
378         "x": 635.8186988830566,
379         "y": 499.7672109603882,
380         "z": "1907a3e8.ef01ec",
381         "wires": []
382     },
383     {
384         "id": "63c12cc3.289684",
385         "type": "switchNode",
386         "name": "switch order-status",
387         "xml": "<switch test='`$ar.allotted-resource-data.allotted-resource-oper-status.order-status`'>\n",
388         "comments": "",
389         "outputs": 1,
390         "x": 1926.199909210205,
391         "y": 525.6244802474976,
392         "z": "1907a3e8.ef01ec",
393         "wires": [
394             [
395                 "9249324b.98c72",
396                 "34ad81d1.e734ae"
397             ]
398         ]
399     },
400     {
401         "id": "9249324b.98c72",
402         "type": "outcome",
403         "name": "outcome Other",
404         "xml": "<outcome value='Other'>\n",
405         "comments": "",
406         "outputs": 1,
407         "x": 2161.8475799560547,
408         "y": 540.0531892776489,
409         "z": "1907a3e8.ef01ec",
410         "wires": [
411             [
412                 "7a2c59b1.1ae928"
413             ]
414         ]
415     },
416     {
417         "id": "7a2c59b1.1ae928",
418         "type": "returnFailure",
419         "name": "return failure",
420         "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n    <parameter name=\"error-message\" \n    value=\"`'Existing contrail-route-allotted-resource with order status of ' + $ar.allotted-resource-data.allotted-resource-oper-status.order-status + '.'`\" />\n",
421         "comments": "",
422         "x": 2402.466329574585,
423         "y": 542.9577789306641,
424         "z": "1907a3e8.ef01ec",
425         "wires": []
426     },
427     {
428         "id": "58da4328.00307c",
429         "type": "set",
430         "name": "unset ar-assignments.vlan-tag",
431         "xml": "<set>\n<parameter name='ar-assignments.vlan-tag' value=\"\" />\n\n\n\n",
432         "comments": "",
433         "x": 583.866325378418,
434         "y": 1641.053183555603,
435         "z": "1907a3e8.ef01ec",
436         "wires": []
437     },
438     {
439         "id": "a38edad2.503f08",
440         "type": "set",
441         "name": "save backup copy of mdsal-ar for rollback",
442         "xml": "<set>\n<parameter name='bk-cr-ar' value='$mdsal-ar.' />\n",
443         "comments": "",
444         "x": 1998.0571784973145,
445         "y": 461.4340171813965,
446         "z": "1907a3e8.ef01ec",
447         "wires": []
448     },
449     {
450         "id": "a821712b.17818",
451         "type": "comment",
452         "name": "Create urls for restapi",
453         "info": "",
454         "comments": "",
455         "x": 550.9615592956543,
456         "y": 393.62435150146484,
457         "z": "1907a3e8.ef01ec",
458         "wires": []
459     },
460     {
461         "id": "94b3659a.a43058",
462         "type": "block",
463         "name": "block",
464         "xml": "<block>\n",
465         "atomic": "false",
466         "comments": "",
467         "outputs": 1,
468         "x": 1044.5805892944336,
469         "y": 2165.814980506897,
470         "z": "1907a3e8.ef01ec",
471         "wires": [
472             []
473         ]
474     },
475     {
476         "id": "485d44b.3f22bbc",
477         "type": "execute",
478         "name": "execute getTime",
479         "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='setTime' >\n    <parameter name=\"outputPath\" value=\"tmp.current-time\" />\n\n",
480         "comments": "",
481         "outputs": 1,
482         "x": 560.5806350708008,
483         "y": 2070.1481189727783,
484         "z": "1907a3e8.ef01ec",
485         "wires": [
486             []
487         ]
488     },
489     {
490         "id": "67e85008.65268",
491         "type": "returnFailure",
492         "name": "return failure",
493         "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"404\" />\n    <parameter name=\"error-message\" value=\"Error: Contrail Route not found\" />\n    \n",
494         "comments": "",
495         "x": 1620.670904159546,
496         "y": 644.333384513855,
497         "z": "1907a3e8.ef01ec",
498         "wires": []
499     },
500     {
501         "id": "18d8cd61.df5a73",
502         "type": "other",
503         "name": "other",
504         "xml": "<outcome value='Other'>\n",
505         "comments": "",
506         "outputs": 1,
507         "x": 859.6705589294434,
508         "y": 568.3334064483643,
509         "z": "1907a3e8.ef01ec",
510         "wires": [
511             [
512                 "91ff2ac7.39d1e8"
513             ]
514         ]
515     },
516     {
517         "id": "91ff2ac7.39d1e8",
518         "type": "block",
519         "name": "block: atomic",
520         "xml": "<block atomic=\"true\">\n",
521         "atomic": "false",
522         "comments": "",
523         "outputs": 1,
524         "x": 1039.670509338379,
525         "y": 568.9999570846558,
526         "z": "1907a3e8.ef01ec",
527         "wires": [
528             [
529                 "67e85008.65268"
530             ]
531         ]
532     },
533     {
534         "id": "cadfd5a3.bfaee8",
535         "type": "set",
536         "name": "set ar data",
537         "xml": "<set>\n<parameter name='ar.allotted-resource-id' value=\"`$tmp.ar.allotted-resource-id` \" />\n<parameter name='ar.allotted-resource-status.action' value=\"`$contrail-route-topology-operation-input.request-information.request-action` \" />\n<parameter name='ar.allotted-resource-status.rpc-name' value=\"contrail-route-topology-operation\" />\n<parameter name='ar.allotted-resource-status.rpc-action' value=\"`$contrail-route-topology-operation-input.sdnc-request-header.svc-action` \" />\n<parameter name='ar.allotted-resource-data.allotted-resource-operation-information.request-information.' value=\"`$contrail-route-topology-operation-input.request-information.` \" />\n<parameter name='ar.allotted-resource-data.allotted-resource-operation-information.sdnc-request-header.' value=\"`$contrail-route-topology-operation-input.sdnc-request-header.` \" />\n<parameter name='ar.allotted-resource-data.allotted-resource-operation-information.service-information.' value=\"`$contrail-route-topology-operation-input.service-information.` \" />\n<parameter name='ar.allotted-resource-data.allotted-resource-operation-information.allotted-resource-information.' value=\"`$contrail-route-topology-operation-input.allotted-resource-information.` \" />\n<parameter name='ar.allotted-resource-data.allotted-resource-operation-information.contrail-route-request-input.' value=\"`$contrail-route-topology-operation-input.contrail-route-request-input.` \" />\n",
538         "comments": "",
539         "x": 531.670524597168,
540         "y": 564.6666212081909,
541         "z": "1907a3e8.ef01ec",
542         "wires": []
543     },
544     {
545         "id": "47b8a1d5.c5ec",
546         "type": "other",
547         "name": "other",
548         "xml": "<outcome value='Other'>\n",
549         "comments": "",
550         "outputs": 1,
551         "x": 1425.3372611999512,
552         "y": 568.666669845581,
553         "z": "1907a3e8.ef01ec",
554         "wires": [
555             [
556                 "67e85008.65268"
557             ]
558         ]
559     },
560     {
561         "id": "54b8535a.8e269c",
562         "type": "block",
563         "name": "block",
564         "xml": "<block>\n",
565         "atomic": "false",
566         "comments": "",
567         "outputs": 1,
568         "x": 2386.337375640869,
569         "y": 508.6666965484619,
570         "z": "1907a3e8.ef01ec",
571         "wires": [
572             []
573         ]
574     },
575     {
576         "id": "616e5aa8.bace14",
577         "type": "comment",
578         "name": "Call contrail api here",
579         "info": "",
580         "comments": "",
581         "x": 561.8610305786133,
582         "y": 631.2857141494751,
583         "z": "1907a3e8.ef01ec",
584         "wires": []
585     },
586     {
587         "id": "2c80a456.b1f4cc",
588         "type": "comment",
589         "name": "Need to rollback aai here",
590         "info": "",
591         "comments": "",
592         "x": 1295.0038833618164,
593         "y": 2199.3333253860474,
594         "z": "1907a3e8.ef01ec",
595         "wires": []
596     },
597     {
598         "id": "46f742ec.a9b84c",
599         "type": "comment",
600         "name": "Create  network policy in AAI",
601         "info": "",
602         "comments": "",
603         "x": 594.337158203125,
604         "y": 2019.333212852478,
605         "z": "1907a3e8.ef01ec",
606         "wires": []
607     },
608     {
609         "id": "34ad81d1.e734ae",
610         "type": "outcome",
611         "name": "outcome Active",
612         "xml": "<outcome value='Active'>\n",
613         "comments": "",
614         "outputs": 1,
615         "x": 2176.6092224121094,
616         "y": 508.2912006378174,
617         "z": "1907a3e8.ef01ec",
618         "wires": [
619             [
620                 "54b8535a.8e269c"
621             ]
622         ]
623     },
624     {
625         "id": "7b764332.cfbc8c",
626         "type": "update",
627         "name": "update AAI allotted-resource",
628         "xml": "<update plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\t\tresource=\"allotted-resource\" \n\t\tkey=\"customer.global-customer-id = $service-data.service-information.global-customer-id AND\n\t\t\tservice-subscription.service-type = $service-data.service-information.subscription-service-type AND\n\t\t\tservice-instance.service-instance-id = $service-data.service-information.service-instance-id AND\n\t\t\tallotted-resource.id = $tmp.ar.allotted-resource-id\"\n        pfx='pfx' local-only='false' force='false'>\n\t<parameter name=\"operational-status\" value=\"out-of-service-path\" />\n",
629         "comments": "",
630         "outputs": 1,
631         "x": 582.3372192382812,
632         "y": 1797.6666612625122,
633         "z": "1907a3e8.ef01ec",
634         "wires": [
635             [
636                 "90496b8f.cd3e48",
637                 "17738c07.d91474"
638             ]
639         ]
640     },
641     {
642         "id": "90496b8f.cd3e48",
643         "type": "failure",
644         "name": "failure",
645         "xml": "<outcome value='failure'>\n",
646         "comments": "",
647         "outputs": 1,
648         "x": 838.0991516113281,
649         "y": 1774.9048357009888,
650         "z": "1907a3e8.ef01ec",
651         "wires": [
652             [
653                 "61ddf82d.16ddf8"
654             ]
655         ]
656     },
657     {
658         "id": "17738c07.d91474",
659         "type": "failure",
660         "name": "not-found",
661         "xml": "<outcome value='not-found'>\n",
662         "comments": "",
663         "outputs": 1,
664         "x": 843.4085807800293,
665         "y": 1810.4762535095215,
666         "z": "1907a3e8.ef01ec",
667         "wires": [
668             [
669                 "61ddf82d.16ddf8"
670             ]
671         ]
672     },
673     {
674         "id": "61ddf82d.16ddf8",
675         "type": "returnFailure",
676         "name": "return failure",
677         "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n    <parameter name=\"error-message\" value=\"AAI failed\" />\n",
678         "comments": "",
679         "x": 1053.1943664550781,
680         "y": 1776.5238800048828,
681         "z": "1907a3e8.ef01ec",
682         "wires": []
683     },
684     {
685         "id": "f9c0d920.6a3758",
686         "type": "comment",
687         "name": "Update AAI AR",
688         "info": "",
689         "comments": "",
690         "x": 545.6800765991211,
691         "y": 1761.0951051712036,
692         "z": "1907a3e8.ef01ec",
693         "wires": []
694     },
695     {
696         "id": "e7206768.0e4798",
697         "type": "set",
698         "name": "set ar-assignments",
699         "xml": "<set>\n<parameter name='ar-assignments.' value=\"`$ar.allotted-resource-data.contrail-route-topology.contrail-route-assignments.`\" />\n\n\n\n",
700         "comments": "",
701         "x": 560.00390625,
702         "y": 596.9999990463257,
703         "z": "1907a3e8.ef01ec",
704         "wires": []
705     },
706     {
707         "id": "2ef8c27b.c719fe",
708         "type": "returnFailure",
709         "name": "return failure",
710         "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"404\" />\n    <parameter name=\"error-message\" value=\"Error: Contrail Route not found\" />\n    \n",
711         "comments": "",
712         "x": 1606.575590133667,
713         "y": 743.6666250228882,
714         "z": "1907a3e8.ef01ec",
715         "wires": []
716     },
717     {
718         "id": "895fb59c.cb29c8",
719         "type": "not-found",
720         "name": "not found",
721         "xml": "<outcome value='not-found'>\n",
722         "comments": "",
723         "outputs": 1,
724         "x": 860.1942520141602,
725         "y": 897.0476351976395,
726         "z": "1907a3e8.ef01ec",
727         "wires": [
728             [
729                 "8e996274.f6a77"
730             ]
731         ]
732     },
733     {
734         "id": "ac156492.2e6298",
735         "type": "get-resource",
736         "name": "get AnAI - l3-network by network-id",
737         "xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\tresource=\"l3-network\" \n\t\tkey=\"l3-network.network-id = $ar.allotted-resource-data.contrail-route-topology.contrail-route-assignments.source-network.network-id\" \n\t\tlocal-only=\"false\" \n\t\tpfx=\"aai.src-network\">\n",
738         "comments": "",
739         "outputs": 1,
740         "x": 583.3925933837891,
741         "y": 908.2941522598267,
742         "z": "1907a3e8.ef01ec",
743         "wires": [
744             [
745                 "c50e7042.f8b7",
746                 "895fb59c.cb29c8",
747                 "8bf1acb1.85f35"
748             ]
749         ]
750     },
751     {
752         "id": "c50e7042.f8b7",
753         "type": "failure",
754         "name": "failure",
755         "xml": "<outcome value='failure'>\n",
756         "comments": "",
757         "outputs": 1,
758         "x": 852.9163589477539,
759         "y": 931.5322390794754,
760         "z": "1907a3e8.ef01ec",
761         "wires": [
762             [
763                 "8e996274.f6a77"
764             ]
765         ]
766     },
767     {
768         "id": "8e996274.f6a77",
769         "type": "returnFailure",
770         "name": "return failure",
771         "xml": "<return status='failure'>\n\t<parameter name=\"error-code\" value=\"500\" />\n\t<parameter name=\"error-message\" value=\"`'Error retrieving source network with network-id=' + $ar.allotted-resource-data.contrail-route-topology.contrail-route-assignments.source-network.network-id + ' from AnAI'`\" />",
772         "comments": "",
773         "x": 1005.0273208618164,
774         "y": 927.7544680833817,
775         "z": "1907a3e8.ef01ec",
776         "wires": []
777     },
778     {
779         "id": "8bf1acb1.85f35",
780         "type": "success",
781         "name": "success",
782         "xml": "<outcome value='success'>\n",
783         "comments": "",
784         "outputs": 1,
785         "x": 858.1943130493164,
786         "y": 963.0476351976395,
787         "z": "1907a3e8.ef01ec",
788         "wires": [
789             [
790                 "6b62a765.1e4e88"
791             ]
792         ]
793     },
794     {
795         "id": "6b62a765.1e4e88",
796         "type": "block",
797         "name": "block : atomic",
798         "xml": "<block atomic=\"true\">",
799         "atomic": "true",
800         "outputs": 1,
801         "x": 1010.8608779907227,
802         "y": 961.3809634447098,
803         "z": "1907a3e8.ef01ec",
804         "wires": [
805             []
806         ]
807     },
808     {
809         "id": "b5253c8d.7010d",
810         "type": "comment",
811         "name": "GET source network from AAI",
812         "info": "",
813         "comments": "",
814         "x": 561.6228103637695,
815         "y": 877.0476293563843,
816         "z": "1907a3e8.ef01ec",
817         "wires": []
818     },
819     {
820         "id": "d8c05d1d.86ab3",
821         "type": "not-found",
822         "name": "not found",
823         "xml": "<outcome value='not-found'>\n",
824         "comments": "",
825         "outputs": 1,
826         "x": 877.9085922241211,
827         "y": 1160.7619490623474,
828         "z": "1907a3e8.ef01ec",
829         "wires": [
830             [
831                 "b6770bb6.5606e8"
832             ]
833         ]
834     },
835     {
836         "id": "7f032d3b.5762a4",
837         "type": "get-resource",
838         "name": "get AnAI - l3-network by network-id",
839         "xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\tresource=\"l3-network\" \n\t\tkey=\"l3-network.network-id = $ar.allotted-resource-data.contrail-route-topology.contrail-route-assignments.dest-network.network-id\" \n\t\tlocal-only=\"false\" \n\t\tpfx=\"aai.dest-network\">\n",
840         "comments": "",
841         "outputs": 1,
842         "x": 606.535514831543,
843         "y": 1168.2942099571228,
844         "z": "1907a3e8.ef01ec",
845         "wires": [
846             [
847                 "ceac0fa8.21cc",
848                 "d8c05d1d.86ab3",
849                 "db0f5df8.46428"
850             ]
851         ]
852     },
853     {
854         "id": "ceac0fa8.21cc",
855         "type": "failure",
856         "name": "failure",
857         "xml": "<outcome value='failure'>\n",
858         "comments": "",
859         "outputs": 1,
860         "x": 870.6306991577148,
861         "y": 1195.2465529441833,
862         "z": "1907a3e8.ef01ec",
863         "wires": [
864             [
865                 "b6770bb6.5606e8"
866             ]
867         ]
868     },
869     {
870         "id": "b6770bb6.5606e8",
871         "type": "returnFailure",
872         "name": "return failure",
873         "xml": "<return status='failure'>\n\t<parameter name=\"error-code\" value=\"500\" />\n\t<parameter name=\"error-message\" value=\"`'Error retrieving destination network with network-id=' + $ar.allotted-resource-data.contrail-route-topology.contrail-route-assignments.source-network.network-id + ' from AnAI'`\" />",
874         "comments": "",
875         "x": 1022.7416610717773,
876         "y": 1191.4687819480896,
877         "z": "1907a3e8.ef01ec",
878         "wires": []
879     },
880     {
881         "id": "db0f5df8.46428",
882         "type": "success",
883         "name": "success",
884         "xml": "<outcome value='success'>\n",
885         "comments": "",
886         "outputs": 1,
887         "x": 880.4801025390625,
888         "y": 1229.6190176010132,
889         "z": "1907a3e8.ef01ec",
890         "wires": [
891             [
892                 "7a8602cf.c3ed2c"
893             ]
894         ]
895     },
896     {
897         "id": "7a8602cf.c3ed2c",
898         "type": "block",
899         "name": "block : atomic",
900         "xml": "<block atomic=\"true\">",
901         "atomic": "true",
902         "outputs": 1,
903         "x": 1033.1466674804688,
904         "y": 1227.9523458480835,
905         "z": "1907a3e8.ef01ec",
906         "wires": [
907             []
908         ]
909     },
910     {
911         "id": "dc7abd78.211da",
912         "type": "comment",
913         "name": "GET dest network from AAI",
914         "info": "",
915         "comments": "",
916         "x": 579.3371353149414,
917         "y": 1136.4762020111084,
918         "z": "1907a3e8.ef01ec",
919         "wires": []
920     },
921     {
922         "id": "a041f2a.fea5e1",
923         "type": "set",
924         "name": "set policy fq-name",
925         "xml": "<set>\n<parameter name='tmp.fq-name' value=\"`$ar.allotted-resource-data.contrail-route-topology.contrail-route-assignments.fq-name` \" />\n",
926         "comments": "",
927         "x": 532.3372192382812,
928         "y": 954.190390586853,
929         "z": "1907a3e8.ef01ec",
930         "wires": []
931     },
932     {
933         "id": "25a06dee.1913e2",
934         "type": "set",
935         "name": "set cloud-region-id for input to contrail",
936         "xml": "<set>\n<parameter name='cloud-region-id' value='`$tmp.ar.cloud-region-id`' />\n",
937         "comments": "",
938         "x": 594.331901550293,
939         "y": 988.2802381515503,
940         "z": "1907a3e8.ef01ec",
941         "wires": []
942     },
943     {
944         "id": "316bd14d.1e3f7e",
945         "type": "execute",
946         "name": "execute Contrail API apply network policy to source network",
947         "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.contrail.ContrailAdaptor' method='sendContrailRequest' emitsOutcome='true' >\n<parameter name='api-name' value='network-policy' />\n<parameter name='api-action' value='remove' />\n<parameter name='resp-prefix' value='contrailResp' />\n<parameter name='cloud-region-id' value='`$tmp.ar.cloud-region-id`' />\n<parameter name='contrail-network-policy-id' value='`$ar-assignments.contrail-id`' />\n<parameter name='contrail-network-policy-fq-name' value='`$ar-assignments.contrail-fq-name`' />\n<parameter name='contrail-virtual-network-id' value='`$aai.src-network.contrail-network-fqdn`' />\n\n",
948         "comments": "",
949         "outputs": 1,
950         "x": 670.5224227905273,
951         "y": 1061.280436038971,
952         "z": "1907a3e8.ef01ec",
953         "wires": [
954             [
955                 "c0fb54dc.a8e1a8",
956                 "4b7ba790.40c118"
957             ]
958         ]
959     },
960     {
961         "id": "c0fb54dc.a8e1a8",
962         "type": "success",
963         "name": "success",
964         "xml": "<outcome value='success'>\n",
965         "comments": "",
966         "outputs": 1,
967         "x": 1026.1889190673828,
968         "y": 1061.7086629867554,
969         "z": "1907a3e8.ef01ec",
970         "wires": [
971             [
972                 "130dd766.3e4979"
973             ]
974         ]
975     },
976     {
977         "id": "4b7ba790.40c118",
978         "type": "failure",
979         "name": "failure",
980         "xml": "<outcome value='failure'>\n",
981         "comments": "",
982         "outputs": 1,
983         "x": 1024.2842407226562,
984         "y": 1094.7086027525365,
985         "z": "1907a3e8.ef01ec",
986         "wires": [
987             [
988                 "b56db03.6e1275"
989             ]
990         ]
991     },
992     {
993         "id": "b56db03.6e1275",
994         "type": "returnFailure",
995         "name": "return failure",
996         "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n    <parameter name=\"error-message\" value=\"Failed to remove policy in Contrail from source network\" />\n",
997         "comments": "",
998         "x": 1184.1890106201172,
999         "y": 1094.0419692993164,
1000         "z": "1907a3e8.ef01ec",
1001         "wires": []
1002     },
1003     {
1004         "id": "130dd766.3e4979",
1005         "type": "block",
1006         "name": "block",
1007         "xml": "<block>\n",
1008         "atomic": "false",
1009         "comments": "",
1010         "outputs": 1,
1011         "x": 1178.3794021606445,
1012         "y": 1062.3753879927099,
1013         "z": "1907a3e8.ef01ec",
1014         "wires": [
1015             []
1016         ]
1017     },
1018     {
1019         "id": "bcbcae69.e41a6",
1020         "type": "switchNode",
1021         "name": "switch source-network.network-id",
1022         "xml": "<switch test='`$ar.allotted-resource-data.contrail-route-topology.contrail-route-assignments.source-network.network-id`'>\n\n",
1023         "comments": "",
1024         "outputs": 1,
1025         "x": 586.9085922241211,
1026         "y": 833.3332395553589,
1027         "z": "1907a3e8.ef01ec",
1028         "wires": [
1029             [
1030                 "a8cf0dfe.c0676",
1031                 "b0bcf579.d52d48"
1032             ]
1033         ]
1034     },
1035     {
1036         "id": "a8cf0dfe.c0676",
1037         "type": "other",
1038         "name": "Other",
1039         "xml": "<outcome value='Other'>",
1040         "comments": "",
1041         "outputs": 1,
1042         "x": 942.9088096618652,
1043         "y": 831.9996190071106,
1044         "z": "1907a3e8.ef01ec",
1045         "wires": [
1046             [
1047                 "e4489b27.0ab3d8"
1048             ]
1049         ]
1050     },
1051     {
1052         "id": "b0bcf579.d52d48",
1053         "type": "other",
1054         "name": "NULL",
1055         "xml": "<outcome value=''>",
1056         "comments": "",
1057         "outputs": 1,
1058         "x": 938.575626373291,
1059         "y": 794.9994192123413,
1060         "z": "1907a3e8.ef01ec",
1061         "wires": [
1062             [
1063                 "e8402b5f.bacaf8"
1064             ]
1065         ]
1066     },
1067     {
1068         "id": "4a3cc27f.d1207c",
1069         "type": "switchNode",
1070         "name": "switch service-data.networks.network_length",
1071         "xml": "<switch test='`$service-data.networks.network_length`'>\n",
1072         "comments": "",
1073         "outputs": 1,
1074         "x": 1334.734245300293,
1075         "y": 832.0154461860657,
1076         "z": "1907a3e8.ef01ec",
1077         "wires": [
1078             [
1079                 "ced5ea6e.50d148",
1080                 "4e2e2769.bc7988"
1081             ]
1082         ]
1083     },
1084     {
1085         "id": "ced5ea6e.50d148",
1086         "type": "other",
1087         "name": "outcome Null",
1088         "xml": "<outcome value=''>\n",
1089         "comments": "",
1090         "outputs": 1,
1091         "x": 1623.734245300293,
1092         "y": 834.0155072212219,
1093         "z": "1907a3e8.ef01ec",
1094         "wires": [
1095             [
1096                 "7df1b688.54eb98"
1097             ]
1098         ]
1099     },
1100     {
1101         "id": "4e2e2769.bc7988",
1102         "type": "other",
1103         "name": "other",
1104         "xml": "<outcome value='Other'>\n",
1105         "comments": "",
1106         "outputs": 1,
1107         "x": 1603.734245300293,
1108         "y": 869.0155072212219,
1109         "z": "1907a3e8.ef01ec",
1110         "wires": [
1111             [
1112                 "7f100db9.54a9d4"
1113             ]
1114         ]
1115     },
1116     {
1117         "id": "e4489b27.0ab3d8",
1118         "type": "block",
1119         "name": "block",
1120         "xml": "<block>\n",
1121         "atomic": "false",
1122         "comments": "",
1123         "outputs": 1,
1124         "x": 1077.0200653076172,
1125         "y": 832.4440236091614,
1126         "z": "1907a3e8.ef01ec",
1127         "wires": [
1128             [
1129                 "4a3cc27f.d1207c"
1130             ]
1131         ]
1132     },
1133     {
1134         "id": "e8402b5f.bacaf8",
1135         "type": "returnFailure",
1136         "name": "return failure",
1137         "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n    <parameter name=\"error-message\" value=\"Error activating contrail route.  Source network not found\" />\n",
1138         "comments": "",
1139         "x": 1092.7090911865234,
1140         "y": 795.6663217544556,
1141         "z": "1907a3e8.ef01ec",
1142         "wires": []
1143     },
1144     {
1145         "id": "ea7023cf.b9d96",
1146         "type": "comment",
1147         "name": "Find tenant id/cloud region from source network",
1148         "info": "",
1149         "comments": "",
1150         "x": 624.3089141845703,
1151         "y": 799.9995555877686,
1152         "z": "1907a3e8.ef01ec",
1153         "wires": []
1154     },
1155     {
1156         "id": "c37f3483.2bbfa8",
1157         "type": "for",
1158         "name": "for nidx..service-data.networks.network[]",
1159         "xml": "<for index='nidx' start='0' end='`$service-data.networks.network_length`' >\n",
1160         "comments": "",
1161         "outputs": 1,
1162         "x": 2066.9086532592773,
1163         "y": 869.3332624435425,
1164         "z": "1907a3e8.ef01ec",
1165         "wires": [
1166             [
1167                 "64560a.8f1f79f8"
1168             ]
1169         ]
1170     },
1171     {
1172         "id": "7f100db9.54a9d4",
1173         "type": "block",
1174         "name": "block : atomic",
1175         "xml": "<block atomic=\"true\">",
1176         "atomic": "true",
1177         "outputs": 1,
1178         "x": 1792.892692565918,
1179         "y": 869.4592623710632,
1180         "z": "1907a3e8.ef01ec",
1181         "wires": [
1182             [
1183                 "c37f3483.2bbfa8"
1184             ]
1185         ]
1186     },
1187     {
1188         "id": "7df1b688.54eb98",
1189         "type": "returnFailure",
1190         "name": "return failure",
1191         "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n    <parameter name=\"error-message\" value=\"Error activating contrail route.  Source network not found\" />\n",
1192         "comments": "",
1193         "x": 1805.3973922729492,
1194         "y": 833.8888330459595,
1195         "z": "1907a3e8.ef01ec",
1196         "wires": []
1197     },
1198     {
1199         "id": "64560a.8f1f79f8",
1200         "type": "switchNode",
1201         "name": "switch networkid found",
1202         "xml": "<switch test=\"`$service-data.networks.network[$nidx].network-id == $ar.allotted-resource-data.contrail-route-topology.contrail-route-assignments.source-network.network-id`\">\n\n",
1203         "comments": "",
1204         "outputs": 1,
1205         "x": 2359.46346282959,
1206         "y": 866.2223892211914,
1207         "z": "1907a3e8.ef01ec",
1208         "wires": [
1209             [
1210                 "7342e4d1.67d22c",
1211                 "a2517fec.05268"
1212             ]
1213         ]
1214     },
1215     {
1216         "id": "6f43e020.46433",
1217         "type": "set",
1218         "name": "set cloud region id",
1219         "xml": "<set>\n<parameter name='tmp.ar.cloud-region-id' value='`$service-data.networks.network[$nidx].network-data.network-topology.aic-cloud-region`' />\n\n\n",
1220         "comments": "",
1221         "x": 2946.130142211914,
1222         "y": 868.2223949432373,
1223         "z": "1907a3e8.ef01ec",
1224         "wires": []
1225     },
1226     {
1227         "id": "ba9643b0.6b37d",
1228         "type": "block",
1229         "name": "block",
1230         "xml": "<block>\n",
1231         "atomic": "false",
1232         "comments": "",
1233         "outputs": 1,
1234         "x": 2709.1965770721436,
1235         "y": 869.2223777770996,
1236         "z": "1907a3e8.ef01ec",
1237         "wires": [
1238             [
1239                 "6f43e020.46433"
1240             ]
1241         ]
1242     },
1243     {
1244         "id": "7342e4d1.67d22c",
1245         "type": "outcomeTrue",
1246         "name": "true",
1247         "xml": "<outcome value='true'>\n",
1248         "comments": "",
1249         "outputs": 1,
1250         "x": 2553.729953765869,
1251         "y": 869.222240447998,
1252         "z": "1907a3e8.ef01ec",
1253         "wires": [
1254             [
1255                 "ba9643b0.6b37d"
1256             ]
1257         ]
1258     },
1259     {
1260         "id": "a2517fec.05268",
1261         "type": "other",
1262         "name": "other",
1263         "xml": "<outcome value='Other'>\n",
1264         "comments": "",
1265         "outputs": 1,
1266         "x": 2554.5295639038086,
1267         "y": 907.222243309021,
1268         "z": "1907a3e8.ef01ec",
1269         "wires": [
1270             [
1271                 "b1867f01.f4838"
1272             ]
1273         ]
1274     },
1275     {
1276         "id": "b1867f01.f4838",
1277         "type": "returnFailure",
1278         "name": "return failure",
1279         "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n    <parameter name=\"error-message\" value=\"Error activating contrail route.  Source network not found\" />\n",
1280         "comments": "",
1281         "x": 2732.5297203063965,
1282         "y": 907.2223091125488,
1283         "z": "1907a3e8.ef01ec",
1284         "wires": []
1285     },
1286     {
1287         "id": "b3a00b12.59bf18",
1288         "type": "comment",
1289         "name": "Apply the policy to source network",
1290         "info": "",
1291         "comments": "",
1292         "x": 588.9086074829102,
1293         "y": 1029.3332681655884,
1294         "z": "1907a3e8.ef01ec",
1295         "wires": []
1296     },
1297     {
1298         "id": "735dd19a.3e195",
1299         "type": "execute",
1300         "name": "execute Contrail API apply network policy to destination network",
1301         "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.contrail.ContrailAdaptor' method='sendContrailRequest' emitsOutcome='true' >\n<parameter name='api-name' value='network-policy' />\n<parameter name='api-action' value='remove' />\n<parameter name='resp-prefix' value='contrailResp' />\n<parameter name='cloud-region-id' value='`$tmp.ar.cloud-region-id`' />\n<parameter name='contrail-network-policy-id' value='`$ar-assignments.contrail-id`' />\n<parameter name='contrail-network-policy-fq-name' value='`$ar-assignments.contrail-fq-name`' />\n<parameter name='contrail-virtual-network-id' value='`$aai.dest-network.contrail-network-fqdn`' />\n\n",
1302         "comments": "",
1303         "outputs": 1,
1304         "x": 694.9086532592773,
1305         "y": 1313.333275794983,
1306         "z": "1907a3e8.ef01ec",
1307         "wires": [
1308             [
1309                 "b28c1bec.d5a608",
1310                 "7421f45.064d50c"
1311             ]
1312         ]
1313     },
1314     {
1315         "id": "b28c1bec.d5a608",
1316         "type": "success",
1317         "name": "success",
1318         "xml": "<outcome value='success'>\n",
1319         "comments": "",
1320         "outputs": 1,
1321         "x": 1030.5750885009766,
1322         "y": 1313.7614665031433,
1323         "z": "1907a3e8.ef01ec",
1324         "wires": [
1325             [
1326                 "f586735b.d7b1f"
1327             ]
1328         ]
1329     },
1330     {
1331         "id": "7421f45.064d50c",
1332         "type": "failure",
1333         "name": "failure",
1334         "xml": "<outcome value='failure'>\n",
1335         "comments": "",
1336         "outputs": 1,
1337         "x": 1028.67041015625,
1338         "y": 1346.7614062689245,
1339         "z": "1907a3e8.ef01ec",
1340         "wires": [
1341             [
1342                 "3ac5d5d2.c2451a"
1343             ]
1344         ]
1345     },
1346     {
1347         "id": "3ac5d5d2.c2451a",
1348         "type": "returnFailure",
1349         "name": "return failure",
1350         "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n    <parameter name=\"error-message\" value=\"Failed to remove policy in Contrail from dest network\" />\n",
1351         "comments": "",
1352         "x": 1188.575180053711,
1353         "y": 1346.0947728157043,
1354         "z": "1907a3e8.ef01ec",
1355         "wires": []
1356     },
1357     {
1358         "id": "f586735b.d7b1f",
1359         "type": "block",
1360         "name": "block",
1361         "xml": "<block>\n",
1362         "atomic": "false",
1363         "comments": "",
1364         "outputs": 1,
1365         "x": 1182.7655715942383,
1366         "y": 1314.4281915090978,
1367         "z": "1907a3e8.ef01ec",
1368         "wires": [
1369             []
1370         ]
1371     },
1372     {
1373         "id": "ad4f0026.b8dda",
1374         "type": "comment",
1375         "name": "Apply the policy to dest network",
1376         "info": "",
1377         "comments": "",
1378         "x": 593.2947769165039,
1379         "y": 1281.3860716819763,
1380         "z": "1907a3e8.ef01ec",
1381         "wires": []
1382     },
1383     {
1384         "id": "7882567f.5f5408",
1385         "type": "comment",
1386         "name": "Update network policy in AAI - relationship to networks",
1387         "info": "",
1388         "comments": "",
1389         "x": 656.9086608886719,
1390         "y": 1423.3332471847534,
1391         "z": "1907a3e8.ef01ec",
1392         "wires": []
1393     },
1394     {
1395         "id": "61e59930.9891c8",
1396         "type": "save",
1397         "name": "delete AnAI - network-policy relationship to source/dest network",
1398         "xml": "<delete plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\tresource=\"network-policy:relationship-list\" \n\tkey=\"network-policy.network-policy-id = $ar-assignments.contrail-id and related-to = 'l3-network' \" >\n\n\n\n",
1399         "comments": "",
1400         "outputs": 1,
1401         "x": 694.2855682373047,
1402         "y": 1456.4009218215942,
1403         "z": "1907a3e8.ef01ec",
1404         "wires": [
1405             [
1406                 "bef2cc41.3ba14",
1407                 "82796ef8.27467"
1408             ]
1409         ]
1410     },
1411     {
1412         "id": "c3e7254d.3fafa8",
1413         "type": "returnFailure",
1414         "name": "return failure",
1415         "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n    <parameter name=\"error-message\" value=\"Failed to save network policy in AAI\" />\n",
1416         "comments": "",
1417         "x": 1242.6310081481934,
1418         "y": 1450.6824344396591,
1419         "z": "1907a3e8.ef01ec",
1420         "wires": []
1421     },
1422     {
1423         "id": "bef2cc41.3ba14",
1424         "type": "failure",
1425         "name": "failure",
1426         "xml": "<outcome value='failure'>\n",
1427         "comments": "",
1428         "outputs": 1,
1429         "x": 1014.0596160888672,
1430         "y": 1453.6981719732285,
1431         "z": "1907a3e8.ef01ec",
1432         "wires": [
1433             [
1434                 "c3e7254d.3fafa8"
1435             ]
1436         ]
1437     },
1438     {
1439         "id": "82796ef8.27467",
1440         "type": "not-found",
1441         "name": "not-found",
1442         "xml": "<outcome value='not-found'>\n",
1443         "comments": "",
1444         "outputs": 1,
1445         "x": 1017.8691139221191,
1446         "y": 1483.174588561058,
1447         "z": "1907a3e8.ef01ec",
1448         "wires": [
1449             [
1450                 "c3e7254d.3fafa8"
1451             ]
1452         ]
1453     }
1454 ]