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-delete.json
1 [
2     {
3         "id": "c5061897.ed3c88",
4         "type": "dgstart",
5         "name": "DGSTART",
6         "outputs": 1,
7         "x": 145.00390625,
8         "y": 81.9999988079071,
9         "z": "9b1f52ae.5be64",
10         "wires": [
11             [
12                 "d133c187.d5ddc"
13             ]
14         ]
15     },
16     {
17         "id": "d133c187.d5ddc",
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": 291.2419891357422,
26         "y": 156.95239233970642,
27         "z": "9b1f52ae.5be64",
28         "wires": [
29             [
30                 "9bd84115.0bcf5"
31             ]
32         ]
33     },
34     {
35         "id": "9bd84115.0bcf5",
36         "type": "method",
37         "name": "contrail-route-topology-operation-delete",
38         "xml": "<method rpc='contrail-route-topology-operation-delete' mode='sync'>\n",
39         "comments": "",
40         "outputs": 1,
41         "x": 371.1587562561035,
42         "y": 226.19044089317322,
43         "z": "9b1f52ae.5be64",
44         "wires": [
45             [
46                 "987d07ed.d93588"
47             ]
48         ]
49     },
50     {
51         "id": "987d07ed.d93588",
52         "type": "block",
53         "name": "block : atomic",
54         "xml": "<block atomic=\"true\">",
55         "atomic": "true",
56         "comments": "",
57         "outputs": 1,
58         "x": 279.4800910949707,
59         "y": 369.5237829685211,
60         "z": "9b1f52ae.5be64",
61         "wires": [
62             [
63                 "7f5b06d6.6b7628",
64                 "6625fcb1.258284",
65                 "44946444.eccd7c",
66                 "b01a42c3.cd422",
67                 "60f60d5f.c792f4",
68                 "de226263.4e383",
69                 "8ae65e99.398e4",
70                 "a3f2e35f.ed328",
71                 "9cedd0a1.cc44e",
72                 "8cf7c911.670d88",
73                 "b921706b.d44a",
74                 "68581ed1.0cd02",
75                 "50310cfe.876cb4",
76                 "1c0b3eb4.2a1111",
77                 "ac1afd99.47658",
78                 "3c6fdb59.f8fd14",
79                 "d23354a7.464df8"
80             ]
81         ]
82     },
83     {
84         "id": "6625fcb1.258284",
85         "type": "returnSuccess",
86         "name": "return success",
87         "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",
88         "comments": "",
89         "x": 546.7183418273926,
90         "y": 1561.5481803417206,
91         "z": "9b1f52ae.5be64",
92         "wires": []
93     },
94     {
95         "id": "7f5b06d6.6b7628",
96         "type": "set",
97         "name": "set output to api handler",
98         "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",
99         "comments": "",
100         "x": 575.4722480773926,
101         "y": 1524.0039737224579,
102         "z": "9b1f52ae.5be64",
103         "wires": []
104     },
105     {
106         "id": "8cf7c911.670d88",
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.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",
110         "comments": "",
111         "x": 610.4724044799805,
112         "y": 1403.0514628887177,
113         "z": "9b1f52ae.5be64",
114         "wires": []
115     },
116     {
117         "id": "b01a42c3.cd422",
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": 541.7419624328613,
123         "y": 343.3333203792572,
124         "z": "9b1f52ae.5be64",
125         "wires": []
126     },
127     {
128         "id": "44946444.eccd7c",
129         "type": "set",
130         "name": "set tmp.ar.allotted-resource-id,etc",
131         "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",
132         "comments": "",
133         "x": 589.0012245178223,
134         "y": 309.5925862789154,
135         "z": "9b1f52ae.5be64",
136         "wires": []
137     },
138     {
139         "id": "60f60d5f.c792f4",
140         "type": "execute",
141         "name": "execute Properties - pull properties file",
142         "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",
143         "comments": "",
144         "outputs": 1,
145         "x": 611.9973220825195,
146         "y": 379.2315490245819,
147         "z": "9b1f52ae.5be64",
148         "wires": [
149             []
150         ]
151     },
152     {
153         "id": "8ae65e99.398e4",
154         "type": "execute",
155         "name": "execute RestApiCallNode - Get AR by id",
156         "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",
157         "comments": "",
158         "outputs": 1,
159         "x": 618.5226516723633,
160         "y": 547.4595077037811,
161         "z": "9b1f52ae.5be64",
162         "wires": [
163             [
164                 "5450effe.e31e8",
165                 "b254beba.55dd2"
166             ]
167         ]
168     },
169     {
170         "id": "de226263.4e383",
171         "type": "execute",
172         "name": "generate allotted-resource url",
173         "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",
174         "comments": "",
175         "outputs": 1,
176         "x": 576.0687522888184,
177         "y": 439.01722407341003,
178         "z": "9b1f52ae.5be64",
179         "wires": [
180             []
181         ]
182     },
183     {
184         "id": "5450effe.e31e8",
185         "type": "success",
186         "name": "success",
187         "xml": "<outcome value='success'>\n",
188         "comments": "",
189         "outputs": 1,
190         "x": 863.8187561035156,
191         "y": 548.2673213481903,
192         "z": "9b1f52ae.5be64",
193         "wires": [
194             [
195                 "f85b6040.a71da"
196             ]
197         ]
198     },
199     {
200         "id": "a3f2e35f.ed328",
201         "type": "execute",
202         "name": "execute RestApiCallNode - PUT AR by id",
203         "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",
204         "comments": "",
205         "outputs": 1,
206         "x": 638.5808792114258,
207         "y": 1477.1009557247162,
208         "z": "9b1f52ae.5be64",
209         "wires": [
210             [
211                 "f9a00937.0d9618",
212                 "730f992c.7587c8",
213                 "f3c956c8.bd3aa8"
214             ]
215         ]
216     },
217     {
218         "id": "f9a00937.0d9618",
219         "type": "not-found",
220         "name": "not-found",
221         "xml": "<outcome value='not-found'>\n",
222         "comments": "",
223         "outputs": 1,
224         "x": 908.8888969421387,
225         "y": 1530.0991565212607,
226         "z": "9b1f52ae.5be64",
227         "wires": [
228             [
229                 "88fe6f2.744949"
230             ]
231         ]
232     },
233     {
234         "id": "730f992c.7587c8",
235         "type": "failure",
236         "name": "failure",
237         "xml": "<outcome value='failure'>\n",
238         "comments": "",
239         "outputs": 1,
240         "x": 899.8889465332031,
241         "y": 1498.5991822704673,
242         "z": "9b1f52ae.5be64",
243         "wires": [
244             [
245                 "88fe6f2.744949"
246             ]
247         ]
248     },
249     {
250         "id": "f3c956c8.bd3aa8",
251         "type": "success",
252         "name": "success",
253         "xml": "<outcome value='success'>\n",
254         "comments": "",
255         "outputs": 1,
256         "x": 903.6389846801758,
257         "y": 1468.9562871456146,
258         "z": "9b1f52ae.5be64",
259         "wires": [
260             [
261                 "871a277.93ca1d8"
262             ]
263         ]
264     },
265     {
266         "id": "88fe6f2.744949",
267         "type": "returnFailure",
268         "name": "return failure",
269         "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",
270         "comments": "",
271         "x": 1069.6389846801758,
272         "y": 1499.3492061123252,
273         "z": "9b1f52ae.5be64",
274         "wires": []
275     },
276     {
277         "id": "f85b6040.a71da",
278         "type": "block",
279         "name": "block: atomic",
280         "xml": "<block atomic=\"true\">\n",
281         "atomic": "false",
282         "comments": "",
283         "outputs": 1,
284         "x": 1032.818759918213,
285         "y": 546.7672221660614,
286         "z": "9b1f52ae.5be64",
287         "wires": [
288             [
289                 "5e224962.ffe4e8"
290             ]
291         ]
292     },
293     {
294         "id": "5e224962.ffe4e8",
295         "type": "switchNode",
296         "name": "switch cr length",
297         "xml": "<switch test='`$mdsal-ar.contrail-route-allotted-resource_length`'>\n",
298         "comments": "",
299         "outputs": 1,
300         "x": 1243.6760025024414,
301         "y": 546.3863513469696,
302         "z": "9b1f52ae.5be64",
303         "wires": [
304             [
305                 "65011a08.04a8a4",
306                 "7554338.6b121cc"
307             ]
308         ]
309     },
310     {
311         "id": "65011a08.04a8a4",
312         "type": "other",
313         "name": "outcome 1",
314         "xml": "<outcome value='1'>\n",
315         "comments": "",
316         "outputs": 1,
317         "x": 1433.0093078613281,
318         "y": 546.3863093852997,
319         "z": "9b1f52ae.5be64",
320         "wires": [
321             [
322                 "28009d40.8ff902"
323             ]
324         ]
325     },
326     {
327         "id": "73af2ecc.73814",
328         "type": "set",
329         "name": "set ar from get",
330         "xml": "<set>\n<parameter name='ar.' value='$mdsal-ar.contrail-route-allotted-resource[0].' />\n",
331         "comments": "",
332         "x": 1906.2001266479492,
333         "y": 509.62452483177185,
334         "z": "9b1f52ae.5be64",
335         "wires": []
336     },
337     {
338         "id": "28009d40.8ff902",
339         "type": "block",
340         "name": "block: atomic",
341         "xml": "<block atomic='true'>\n",
342         "atomic": "false",
343         "comments": "",
344         "outputs": 1,
345         "x": 1617.533197402954,
346         "y": 543.2911431789398,
347         "z": "9b1f52ae.5be64",
348         "wires": [
349             [
350                 "73af2ecc.73814",
351                 "444240e9.62dc7",
352                 "b6b50cbe.e565d",
353                 "a873ed89.11c27"
354             ]
355         ]
356     },
357     {
358         "id": "444240e9.62dc7",
359         "type": "set",
360         "name": "set oper-status",
361         "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",
362         "comments": "",
363         "x": 1914.2000541687012,
364         "y": 573.7196681499481,
365         "z": "9b1f52ae.5be64",
366         "wires": []
367     },
368     {
369         "id": "a55a5912.caf608",
370         "type": "comment",
371         "name": "GET security-zone-allotted-resource from mdsal",
372         "info": "",
373         "comments": "",
374         "x": 631.8186988830566,
375         "y": 514.7672107219696,
376         "z": "9b1f52ae.5be64",
377         "wires": []
378     },
379     {
380         "id": "a873ed89.11c27",
381         "type": "switchNode",
382         "name": "switch order-status",
383         "xml": "<switch test='`$ar.allotted-resource-data.allotted-resource-oper-status.order-status`'>\n",
384         "comments": "",
385         "outputs": 1,
386         "x": 1922.199909210205,
387         "y": 540.624480009079,
388         "z": "9b1f52ae.5be64",
389         "wires": [
390             [
391                 "8b3ee0f.ac5862",
392                 "baabeb4c.f12f78"
393             ]
394         ]
395     },
396     {
397         "id": "8b3ee0f.ac5862",
398         "type": "outcome",
399         "name": "outcome PendingDelete",
400         "xml": "<outcome value='PendingDelete'>\n",
401         "comments": "",
402         "outputs": 1,
403         "x": 2135.4664611816406,
404         "y": 523.2911956310272,
405         "z": "9b1f52ae.5be64",
406         "wires": [
407             [
408                 "32a3480b.e12e28"
409             ]
410         ]
411     },
412     {
413         "id": "baabeb4c.f12f78",
414         "type": "outcome",
415         "name": "outcome Other",
416         "xml": "<outcome value='Other'>\n",
417         "comments": "",
418         "outputs": 1,
419         "x": 2157.8475799560547,
420         "y": 555.0531890392303,
421         "z": "9b1f52ae.5be64",
422         "wires": [
423             [
424                 "155a1c4d.6f5b24"
425             ]
426         ]
427     },
428     {
429         "id": "155a1c4d.6f5b24",
430         "type": "returnFailure",
431         "name": "return failure",
432         "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",
433         "comments": "",
434         "x": 2398.466329574585,
435         "y": 557.9577786922455,
436         "z": "9b1f52ae.5be64",
437         "wires": []
438     },
439     {
440         "id": "b6b50cbe.e565d",
441         "type": "set",
442         "name": "save backup copy of mdsal-ar for rollback",
443         "xml": "<set>\n<parameter name='bk-cr-ar' value='$mdsal-ar.' />\n",
444         "comments": "",
445         "x": 1994.0571784973145,
446         "y": 476.4340169429779,
447         "z": "9b1f52ae.5be64",
448         "wires": []
449     },
450     {
451         "id": "926c38.d1cbf3c8",
452         "type": "comment",
453         "name": "Create urls for restapi",
454         "info": "",
455         "comments": "",
456         "x": 546.9615592956543,
457         "y": 408.62435126304626,
458         "z": "9b1f52ae.5be64",
459         "wires": []
460     },
461     {
462         "id": "871a277.93ca1d8",
463         "type": "block",
464         "name": "block",
465         "xml": "<block>\n",
466         "atomic": "false",
467         "comments": "",
468         "outputs": 1,
469         "x": 1045.2949523925781,
470         "y": 1465.1484563350677,
471         "z": "9b1f52ae.5be64",
472         "wires": [
473             []
474         ]
475     },
476     {
477         "id": "9cedd0a1.cc44e",
478         "type": "execute",
479         "name": "execute getTime",
480         "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='setTime' >\n    <parameter name=\"outputPath\" value=\"tmp.current-time\" />\n\n",
481         "comments": "",
482         "outputs": 1,
483         "x": 561.2949981689453,
484         "y": 1369.481594800949,
485         "z": "9b1f52ae.5be64",
486         "wires": [
487             []
488         ]
489     },
490     {
491         "id": "d7b00e7e.19998",
492         "type": "returnFailure",
493         "name": "return failure",
494         "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"404\" />\n    <parameter name=\"error-message\" value=\"Error: Contrail Route not found\" />\n    \n",
495         "comments": "",
496         "x": 1616.670904159546,
497         "y": 659.3333842754364,
498         "z": "9b1f52ae.5be64",
499         "wires": []
500     },
501     {
502         "id": "b254beba.55dd2",
503         "type": "other",
504         "name": "other",
505         "xml": "<outcome value='Other'>\n",
506         "comments": "",
507         "outputs": 1,
508         "x": 855.6705589294434,
509         "y": 583.3334062099457,
510         "z": "9b1f52ae.5be64",
511         "wires": [
512             [
513                 "1e7432bc.b4681d"
514             ]
515         ]
516     },
517     {
518         "id": "1e7432bc.b4681d",
519         "type": "block",
520         "name": "block: atomic",
521         "xml": "<block atomic=\"true\">\n",
522         "atomic": "false",
523         "comments": "",
524         "outputs": 1,
525         "x": 1035.670509338379,
526         "y": 583.9999568462372,
527         "z": "9b1f52ae.5be64",
528         "wires": [
529             [
530                 "d7b00e7e.19998"
531             ]
532         ]
533     },
534     {
535         "id": "b921706b.d44a",
536         "type": "set",
537         "name": "set ar data",
538         "xml": "<set>\n<parameter name='ar.allotted-resource-id' value=\"`$tmp.ar.allotted-resource-id` \" />\n<parameter name='ar.allotted-resource-status.action' value=\"`$contrail-route-topology-operation-input.request-information.request-action` \" />\n<parameter name='ar.allotted-resource-status.rpc-name' value=\"contrail-route-topology-operation\" />\n<parameter name='ar.allotted-resource-status.rpc-action' value=\"`$contrail-route-topology-operation-input.sdnc-request-header.svc-action` \" />\n<parameter name='ar.allotted-resource-data.allotted-resource-operation-information.request-information.' value=\"`$contrail-route-topology-operation-input.request-information.` \" />\n<parameter name='ar.allotted-resource-data.allotted-resource-operation-information.sdnc-request-header.' value=\"`$contrail-route-topology-operation-input.sdnc-request-header.` \" />\n<parameter name='ar.allotted-resource-data.allotted-resource-operation-information.service-information.' value=\"`$contrail-route-topology-operation-input.service-information.` \" />\n<parameter name='ar.allotted-resource-data.allotted-resource-operation-information.allotted-resource-information.' value=\"`$contrail-route-topology-operation-input.allotted-resource-information.` \" />\n<parameter name='ar.allotted-resource-data.allotted-resource-operation-information.contrail-route-request-input.' value=\"`$contrail-route-topology-operation-input.contrail-route-request-input.` \" />\n",
539         "comments": "",
540         "x": 525.6704864501953,
541         "y": 577.380893945694,
542         "z": "9b1f52ae.5be64",
543         "wires": []
544     },
545     {
546         "id": "7554338.6b121cc",
547         "type": "other",
548         "name": "other",
549         "xml": "<outcome value='Other'>\n",
550         "comments": "",
551         "outputs": 1,
552         "x": 1421.3372611999512,
553         "y": 583.6666696071625,
554         "z": "9b1f52ae.5be64",
555         "wires": [
556             [
557                 "d7b00e7e.19998"
558             ]
559         ]
560     },
561     {
562         "id": "32a3480b.e12e28",
563         "type": "block",
564         "name": "block",
565         "xml": "<block>\n",
566         "atomic": "false",
567         "comments": "",
568         "outputs": 1,
569         "x": 2382.337375640869,
570         "y": 523.6666963100433,
571         "z": "9b1f52ae.5be64",
572         "wires": [
573             []
574         ]
575     },
576     {
577         "id": "d3399ea0.e3d6b",
578         "type": "comment",
579         "name": "Need to rollback aai here",
580         "info": "",
581         "comments": "",
582         "x": 1295.718246459961,
583         "y": 1498.666801214218,
584         "z": "9b1f52ae.5be64",
585         "wires": []
586     },
587     {
588         "id": "e190ac80.23028",
589         "type": "comment",
590         "name": "Create  network policy in AAI",
591         "info": "",
592         "comments": "",
593         "x": 595.0515213012695,
594         "y": 1318.6666886806488,
595         "z": "9b1f52ae.5be64",
596         "wires": []
597     },
598     {
599         "id": "68581ed1.0cd02",
600         "type": "update",
601         "name": "update AAI allotted-resource",
602         "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=\"null\" />\n",
603         "comments": "",
604         "outputs": 1,
605         "x": 588.7181777954102,
606         "y": 1256.6667726039886,
607         "z": "9b1f52ae.5be64",
608         "wires": [
609             [
610                 "d5f2f899.1e05c8",
611                 "fb1878e6.e35ec8"
612             ]
613         ]
614     },
615     {
616         "id": "d5f2f899.1e05c8",
617         "type": "failure",
618         "name": "failure",
619         "xml": "<outcome value='failure'>\n",
620         "comments": "",
621         "outputs": 1,
622         "x": 844.480110168457,
623         "y": 1233.9049470424652,
624         "z": "9b1f52ae.5be64",
625         "wires": [
626             [
627                 "be1256d6.02f548"
628             ]
629         ]
630     },
631     {
632         "id": "fb1878e6.e35ec8",
633         "type": "failure",
634         "name": "not-found",
635         "xml": "<outcome value='not-found'>\n",
636         "comments": "",
637         "outputs": 1,
638         "x": 849.7895393371582,
639         "y": 1269.476364850998,
640         "z": "9b1f52ae.5be64",
641         "wires": [
642             [
643                 "be1256d6.02f548"
644             ]
645         ]
646     },
647     {
648         "id": "be1256d6.02f548",
649         "type": "returnFailure",
650         "name": "return failure",
651         "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",
652         "comments": "",
653         "x": 1059.575325012207,
654         "y": 1235.5239913463593,
655         "z": "9b1f52ae.5be64",
656         "wires": []
657     },
658     {
659         "id": "8f619b62.bdcdb8",
660         "type": "comment",
661         "name": "Update AAI AR",
662         "info": "",
663         "comments": "",
664         "x": 552.06103515625,
665         "y": 1220.09521651268,
666         "z": "9b1f52ae.5be64",
667         "wires": []
668     },
669     {
670         "id": "50310cfe.876cb4",
671         "type": "set",
672         "name": "set ar-assignments",
673         "xml": "<set>\n<parameter name='ar-assignments.' value=\"`$ar.allotted-resource-data.contrail-route-topology.contrail-route-assignments.`\" />\n\n\n\n",
674         "comments": "",
675         "x": 554.4801483154297,
676         "y": 607.9048221111298,
677         "z": "9b1f52ae.5be64",
678         "wires": []
679     },
680     {
681         "id": "1c0b3eb4.2a1111",
682         "type": "switchNode",
683         "name": "switch source-network.network-id",
684         "xml": "<switch test='`$ar.allotted-resource-data.contrail-route-topology.contrail-route-assignments.source-network.network-id`'>\n\n",
685         "comments": "",
686         "outputs": 1,
687         "x": 608.0039291381836,
688         "y": 792.5000422000885,
689         "z": "9b1f52ae.5be64",
690         "wires": [
691             [
692                 "f32d3627.d60638",
693                 "84e18965.3c0918"
694             ]
695         ]
696     },
697     {
698         "id": "f32d3627.d60638",
699         "type": "other",
700         "name": "Other",
701         "xml": "<outcome value='Other'>",
702         "comments": "",
703         "outputs": 1,
704         "x": 956.0041160583496,
705         "y": 789.1665117740631,
706         "z": "9b1f52ae.5be64",
707         "wires": [
708             [
709                 "b963a897.df44d8"
710             ]
711         ]
712     },
713     {
714         "id": "84e18965.3c0918",
715         "type": "other",
716         "name": "NULL",
717         "xml": "<outcome value=''>",
718         "comments": "",
719         "outputs": 1,
720         "x": 966.6709899902344,
721         "y": 737.1663014888763,
722         "z": "9b1f52ae.5be64",
723         "wires": [
724             [
725                 "607f0213.4585ec"
726             ]
727         ]
728     },
729     {
730         "id": "de967f6b.a246e",
731         "type": "for",
732         "name": "for nidx..service-data.networks.network[]",
733         "xml": "<for index='nidx' start='0' end='`$service-data.networks.network_length`' >\n",
734         "comments": "",
735         "outputs": 1,
736         "x": 2091.448890686035,
737         "y": 828.9442895650864,
738         "z": "9b1f52ae.5be64",
739         "wires": [
740             [
741                 "d5b5a378.f12e8"
742             ]
743         ]
744     },
745     {
746         "id": "cb4d15ad.5b3e08",
747         "type": "switchNode",
748         "name": "switch service-data.networks.network_length",
749         "xml": "<switch test='`$service-data.networks.network_length`'>\n",
750         "comments": "",
751         "outputs": 1,
752         "x": 1347.8295516967773,
753         "y": 789.1823389530182,
754         "z": "9b1f52ae.5be64",
755         "wires": [
756             [
757                 "e7768c09.76407",
758                 "ddc2e983.b27498"
759             ]
760         ]
761     },
762     {
763         "id": "e7768c09.76407",
764         "type": "other",
765         "name": "outcome Null",
766         "xml": "<outcome value=''>\n",
767         "comments": "",
768         "outputs": 1,
769         "x": 1636.8295516967773,
770         "y": 791.1823999881744,
771         "z": "9b1f52ae.5be64",
772         "wires": [
773             [
774                 "86330abf.322018"
775             ]
776         ]
777     },
778     {
779         "id": "ddc2e983.b27498",
780         "type": "other",
781         "name": "other",
782         "xml": "<outcome value='Other'>\n",
783         "comments": "",
784         "outputs": 1,
785         "x": 1616.8295516967773,
786         "y": 826.1823999881744,
787         "z": "9b1f52ae.5be64",
788         "wires": [
789             [
790                 "63dd8cb4.e41794"
791             ]
792         ]
793     },
794     {
795         "id": "63dd8cb4.e41794",
796         "type": "block",
797         "name": "block : atomic",
798         "xml": "<block atomic=\"true\">",
799         "atomic": "true",
800         "outputs": 1,
801         "x": 1821.4328536987305,
802         "y": 830.0702737569809,
803         "z": "9b1f52ae.5be64",
804         "wires": [
805             [
806                 "de967f6b.a246e"
807             ]
808         ]
809     },
810     {
811         "id": "b963a897.df44d8",
812         "type": "block",
813         "name": "block",
814         "xml": "<block>\n",
815         "atomic": "false",
816         "comments": "",
817         "outputs": 1,
818         "x": 1090.1153717041016,
819         "y": 789.6109163761139,
820         "z": "9b1f52ae.5be64",
821         "wires": [
822             [
823                 "cb4d15ad.5b3e08"
824             ]
825         ]
826     },
827     {
828         "id": "607f0213.4585ec",
829         "type": "returnFailure",
830         "name": "return failure",
831         "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 assigning contrail route.  Source network not found\" />\n",
832         "comments": "",
833         "x": 1120.8043975830078,
834         "y": 736.1664967536926,
835         "z": "9b1f52ae.5be64",
836         "wires": []
837     },
838     {
839         "id": "86330abf.322018",
840         "type": "returnFailure",
841         "name": "return failure",
842         "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 assigning contrail route.  Source network not found\" />\n",
843         "comments": "",
844         "x": 1829.937629699707,
845         "y": 791.4998601675034,
846         "z": "9b1f52ae.5be64",
847         "wires": []
848     },
849     {
850         "id": "e72045.3754efb8",
851         "type": "comment",
852         "name": "Find tenant id/cloud region from source network",
853         "info": "",
854         "comments": "",
855         "x": 637.4042205810547,
856         "y": 757.1664483547211,
857         "z": "9b1f52ae.5be64",
858         "wires": []
859     },
860     {
861         "id": "d5b5a378.f12e8",
862         "type": "switchNode",
863         "name": "switch networkid found",
864         "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",
865         "comments": "",
866         "outputs": 1,
867         "x": 2384.0037002563477,
868         "y": 825.8334163427353,
869         "z": "9b1f52ae.5be64",
870         "wires": [
871             [
872                 "22ec946b.3bde1c",
873                 "2d69773c.9c9fd8"
874             ]
875         ]
876     },
877     {
878         "id": "a942d336.9a02",
879         "type": "set",
880         "name": "set tmp vals",
881         "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",
882         "comments": "",
883         "x": 2925.670669555664,
884         "y": 823.3333702087402,
885         "z": "9b1f52ae.5be64",
886         "wires": []
887     },
888     {
889         "id": "95efe68c.15ea68",
890         "type": "block",
891         "name": "block",
892         "xml": "<block>\n",
893         "atomic": "false",
894         "comments": "",
895         "outputs": 1,
896         "x": 2748.737051010132,
897         "y": 826.3333842754364,
898         "z": "9b1f52ae.5be64",
899         "wires": [
900             [
901                 "a942d336.9a02"
902             ]
903         ]
904     },
905     {
906         "id": "22ec946b.3bde1c",
907         "type": "outcomeTrue",
908         "name": "true",
909         "xml": "<outcome value='true'>\n",
910         "comments": "",
911         "outputs": 1,
912         "x": 2593.2704277038574,
913         "y": 826.3332469463348,
914         "z": "9b1f52ae.5be64",
915         "wires": [
916             [
917                 "95efe68c.15ea68"
918             ]
919         ]
920     },
921     {
922         "id": "2d69773c.9c9fd8",
923         "type": "other",
924         "name": "other",
925         "xml": "<outcome value='Other'>\n",
926         "comments": "",
927         "outputs": 1,
928         "x": 2594.070037841797,
929         "y": 864.3332498073578,
930         "z": "9b1f52ae.5be64",
931         "wires": [
932             [
933                 "81a644d4.111c68"
934             ]
935         ]
936     },
937     {
938         "id": "81a644d4.111c68",
939         "type": "returnFailure",
940         "name": "return failure",
941         "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 assigning contrail route.  Source network not found\" />\n",
942         "comments": "",
943         "x": 2772.0701942443848,
944         "y": 864.3333156108856,
945         "z": "9b1f52ae.5be64",
946         "wires": []
947     },
948     {
949         "id": "b6736797.38e8b8",
950         "type": "comment",
951         "name": "Call contrail api here",
952         "info": "",
953         "comments": "",
954         "x": 564.2895889282227,
955         "y": 848.666722536087,
956         "z": "9b1f52ae.5be64",
957         "wires": []
958     },
959     {
960         "id": "ac1afd99.47658",
961         "type": "execute",
962         "name": "execute Contrail API delete network policy",
963         "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='delete' />\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\n",
964         "comments": "",
965         "outputs": 1,
966         "x": 647.4086608886719,
967         "y": 886.3097550868988,
968         "z": "9b1f52ae.5be64",
969         "wires": [
970             [
971                 "711f0aee.ce8ba4",
972                 "9b1b549c.7a2818"
973             ]
974         ]
975     },
976     {
977         "id": "711f0aee.ce8ba4",
978         "type": "success",
979         "name": "success",
980         "xml": "<outcome value='success'>\n",
981         "comments": "",
982         "outputs": 1,
983         "x": 928.7895965576172,
984         "y": 854.4521206952631,
985         "z": "9b1f52ae.5be64",
986         "wires": [
987             [
988                 "9ce64e2c.ea266"
989             ]
990         ]
991     },
992     {
993         "id": "9b1b549c.7a2818",
994         "type": "failure",
995         "name": "failure",
996         "xml": "<outcome value='failure'>\n",
997         "comments": "",
998         "outputs": 1,
999         "x": 926.8849182128906,
1000         "y": 887.4520604610443,
1001         "z": "9b1f52ae.5be64",
1002         "wires": [
1003             [
1004                 "43c06676.1dbba8"
1005             ]
1006         ]
1007     },
1008     {
1009         "id": "43c06676.1dbba8",
1010         "type": "returnFailure",
1011         "name": "return failure",
1012         "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 create policy in Contrail\" />\n",
1013         "comments": "",
1014         "x": 1086.7896881103516,
1015         "y": 886.7854270078242,
1016         "z": "9b1f52ae.5be64",
1017         "wires": []
1018     },
1019     {
1020         "id": "9ce64e2c.ea266",
1021         "type": "block",
1022         "name": "block",
1023         "xml": "<block>\n",
1024         "atomic": "false",
1025         "comments": "",
1026         "outputs": 1,
1027         "x": 1080.980079650879,
1028         "y": 855.1188457012177,
1029         "z": "9b1f52ae.5be64",
1030         "wires": [
1031             []
1032         ]
1033     },
1034     {
1035         "id": "8a766565.291e68",
1036         "type": "comment",
1037         "name": "Delete network policy in AAI",
1038         "info": "",
1039         "comments": "",
1040         "x": 565.50390625,
1041         "y": 1074.999998807907,
1042         "z": "9b1f52ae.5be64",
1043         "wires": []
1044     },
1045     {
1046         "id": "3c6fdb59.f8fd14",
1047         "type": "save",
1048         "name": "delete AnAI - network-policy",
1049         "xml": "<delete plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\tresource=\"network-policy\" \n\t\tkey=\"network-policy.network-policy-id = $ar-assignments.contrail-id\" >\n\n\n\n",
1050         "comments": "",
1051         "outputs": 1,
1052         "x": 580.8807907104492,
1053         "y": 1112.0675637722015,
1054         "z": "9b1f52ae.5be64",
1055         "wires": [
1056             [
1057                 "8cd17d42.0bcda",
1058                 "cf16a62d.8c70a8"
1059             ]
1060         ]
1061     },
1062     {
1063         "id": "8ff84544.9d71e8",
1064         "type": "returnFailure",
1065         "name": "return failure",
1066         "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n    <parameter name=\"error-message\" value=\"Failed to save network policy in AAI\" />\n",
1067         "comments": "",
1068         "x": 1053.2262992858887,
1069         "y": 1102.349177122116,
1070         "z": "9b1f52ae.5be64",
1071         "wires": []
1072     },
1073     {
1074         "id": "8cd17d42.0bcda",
1075         "type": "failure",
1076         "name": "failure",
1077         "xml": "<outcome value='failure'>\n",
1078         "comments": "",
1079         "outputs": 1,
1080         "x": 824.6549072265625,
1081         "y": 1101.3649146556854,
1082         "z": "9b1f52ae.5be64",
1083         "wires": [
1084             [
1085                 "8ff84544.9d71e8"
1086             ]
1087         ]
1088     },
1089     {
1090         "id": "cf16a62d.8c70a8",
1091         "type": "not-found",
1092         "name": "not-found",
1093         "xml": "<outcome value='not-found'>\n",
1094         "comments": "",
1095         "outputs": 1,
1096         "x": 828.4644050598145,
1097         "y": 1130.841331243515,
1098         "z": "9b1f52ae.5be64",
1099         "wires": [
1100             [
1101                 "8ff84544.9d71e8"
1102             ]
1103         ]
1104     },
1105     {
1106         "id": "d23354a7.464df8",
1107         "type": "call",
1108         "name": "call policy-manager-delete-policy",
1109         "xml": "<call module='GENERIC-RESOURCE-API' rpc='policy-manager-delete-policy' mode='sync' >\n",
1110         "comments": "",
1111         "outputs": 1,
1112         "x": 627.9205322265625,
1113         "y": 972.8333117961884,
1114         "z": "9b1f52ae.5be64",
1115         "wires": [
1116             [
1117                 "62a5debd.c203a",
1118                 "4180c869.1d0ea8"
1119             ]
1120         ]
1121     },
1122     {
1123         "id": "62a5debd.c203a",
1124         "type": "failure",
1125         "name": "failure",
1126         "xml": "<outcome value='failure'>\n",
1127         "comments": "",
1128         "outputs": 1,
1129         "x": 863.4998931884766,
1130         "y": 970.175279378891,
1131         "z": "9b1f52ae.5be64",
1132         "wires": [
1133             [
1134                 "6e04473c.a254f8"
1135             ]
1136         ]
1137     },
1138     {
1139         "id": "4180c869.1d0ea8",
1140         "type": "success",
1141         "name": "success",
1142         "xml": "<outcome value='success'>\n",
1143         "comments": "",
1144         "outputs": 1,
1145         "x": 869.4921607971191,
1146         "y": 1010.9763548374176,
1147         "z": "9b1f52ae.5be64",
1148         "wires": [
1149             [
1150                 "6ad8d723.6b8888"
1151             ]
1152         ]
1153     },
1154     {
1155         "id": "6ad8d723.6b8888",
1156         "type": "block",
1157         "name": "block : atomic",
1158         "xml": "<block atomic=\"true\">",
1159         "atomic": "true",
1160         "outputs": 1,
1161         "x": 1022.1587257385254,
1162         "y": 1009.3096830844879,
1163         "z": "9b1f52ae.5be64",
1164         "wires": [
1165             []
1166         ]
1167     },
1168     {
1169         "id": "6e04473c.a254f8",
1170         "type": "block",
1171         "name": "block: atomic",
1172         "xml": "<block atomic=\"true\">\n",
1173         "atomic": "false",
1174         "comments": "",
1175         "outputs": 1,
1176         "x": 1022.2063369750977,
1177         "y": 964.2620389461517,
1178         "z": "9b1f52ae.5be64",
1179         "wires": [
1180             []
1181         ]
1182     },
1183     {
1184         "id": "785a4111.a959a",
1185         "type": "comment",
1186         "name": "Call policy mgr.  continue on failure",
1187         "info": "",
1188         "comments": "",
1189         "x": 618.5872039794922,
1190         "y": 941.166601896286,
1191         "z": "9b1f52ae.5be64",
1192         "wires": []
1193     }
1194 ]