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-create.json
1 [
2     {
3         "id": "f03bdbde.4579d8",
4         "type": "dgstart",
5         "name": "DGSTART",
6         "outputs": 1,
7         "x": 175.00390625,
8         "y": 104.6666704416275,
9         "z": "fbc4119e.39c3b",
10         "wires": [
11             [
12                 "b789d37d.82a2e"
13             ]
14         ]
15     },
16     {
17         "id": "b789d37d.82a2e",
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": 321.2419891357422,
26         "y": 179.61906397342682,
27         "z": "fbc4119e.39c3b",
28         "wires": [
29             [
30                 "245879c2.1bf726"
31             ]
32         ]
33     },
34     {
35         "id": "245879c2.1bf726",
36         "type": "method",
37         "name": "contrail-route-topology-operation-create",
38         "xml": "<method rpc='contrail-route-topology-operation-create' mode='sync'>\n",
39         "comments": "",
40         "outputs": 1,
41         "x": 401.1587562561035,
42         "y": 248.85711252689362,
43         "z": "fbc4119e.39c3b",
44         "wires": [
45             [
46                 "cb6febc8.40d7a8"
47             ]
48         ]
49     },
50     {
51         "id": "cb6febc8.40d7a8",
52         "type": "block",
53         "name": "block : atomic",
54         "xml": "<block atomic=\"true\">",
55         "atomic": "true",
56         "comments": "",
57         "outputs": 1,
58         "x": 309.4800910949707,
59         "y": 392.1904546022415,
60         "z": "fbc4119e.39c3b",
61         "wires": [
62             [
63                 "78592f6d.e5c98",
64                 "e3ebac4.ab7145",
65                 "b31530da.30339",
66                 "ef64ef71.c48f1",
67                 "41df4f0b.30a5f",
68                 "af3b175.bb7ece8",
69                 "478f720.e98ad9",
70                 "bc7f0404.80df38",
71                 "bc587a66.feda28",
72                 "a844f172.05d78",
73                 "2c4387c0.bbe4d8",
74                 "bd1d7050.2c7d2",
75                 "78389040.50c04",
76                 "3b7c3ee7.892e02",
77                 "9c87964d.1eedd8",
78                 "cb3789bb.42da88",
79                 "96e58f96.3e0dc",
80                 "bd7a20ba.9bf84",
81                 "7d144ee0.ee98f",
82                 "65bdabe8.142354",
83                 "483287bc.c27a28",
84                 "29d6c655.17265a",
85                 "808bf1b8.60d31",
86                 "cf49ae05.2f29"
87             ]
88         ]
89     },
90     {
91         "id": "e3ebac4.ab7145",
92         "type": "returnSuccess",
93         "name": "return success",
94         "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",
95         "comments": "",
96         "x": 507.7183837890625,
97         "y": 2060.3935294486582,
98         "z": "fbc4119e.39c3b",
99         "wires": []
100     },
101     {
102         "id": "78592f6d.e5c98",
103         "type": "set",
104         "name": "set output to api handler",
105         "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",
106         "comments": "",
107         "x": 536.4722900390625,
108         "y": 2022.8493228293955,
109         "z": "fbc4119e.39c3b",
110         "wires": []
111     },
112     {
113         "id": "a844f172.05d78",
114         "type": "set",
115         "name": "set allotted-resource-oper-status",
116         "xml": "<set>\n<parameter name='ar.allotted-resource-data.allotted-resource-oper-status.order-status' value='Created' />\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",
117         "comments": "",
118         "x": 569.8056755065918,
119         "y": 1895.2302031852305,
120         "z": "fbc4119e.39c3b",
121         "wires": []
122     },
123     {
124         "id": "ef64ef71.c48f1",
125         "type": "set",
126         "name": "set tmp.ar.self-link",
127         "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",
128         "comments": "",
129         "x": 571.7419624328613,
130         "y": 365.9999920129776,
131         "z": "fbc4119e.39c3b",
132         "wires": []
133     },
134     {
135         "id": "b31530da.30339",
136         "type": "set",
137         "name": "set tmp.ar.allotted-resource-id,etc",
138         "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\n\n\n",
139         "comments": "",
140         "x": 619.0012359619141,
141         "y": 332.2592588663101,
142         "z": "fbc4119e.39c3b",
143         "wires": []
144     },
145     {
146         "id": "41df4f0b.30a5f",
147         "type": "execute",
148         "name": "execute Properties - pull properties file",
149         "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",
150         "comments": "",
151         "outputs": 1,
152         "x": 633.4258880615234,
153         "y": 401.89820539951324,
154         "z": "fbc4119e.39c3b",
155         "wires": [
156             []
157         ]
158     },
159     {
160         "id": "478f720.e98ad9",
161         "type": "execute",
162         "name": "execute RestApiCallNode - Get AR by id",
163         "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",
164         "comments": "",
165         "outputs": 1,
166         "x": 651.8560028076172,
167         "y": 573.4595466852188,
168         "z": "fbc4119e.39c3b",
169         "wires": [
170             [
171                 "aebb7490.69e928",
172                 "cfd4b50e.a5e6b8"
173             ]
174         ]
175     },
176     {
177         "id": "af3b175.bb7ece8",
178         "type": "execute",
179         "name": "generate allotted-resource url",
180         "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",
181         "comments": "",
182         "outputs": 1,
183         "x": 606.0687713623047,
184         "y": 457.68387281894684,
185         "z": "fbc4119e.39c3b",
186         "wires": [
187             []
188         ]
189     },
190     {
191         "id": "aebb7490.69e928",
192         "type": "success",
193         "name": "success",
194         "xml": "<outcome value='success'>\n",
195         "comments": "",
196         "outputs": 1,
197         "x": 893.8187561035156,
198         "y": 570.9339929819107,
199         "z": "fbc4119e.39c3b",
200         "wires": [
201             [
202                 "a22ae59.4cc7418"
203             ]
204         ]
205     },
206     {
207         "id": "bc7f0404.80df38",
208         "type": "execute",
209         "name": "execute RestApiCallNode - PUT AR by id",
210         "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",
211         "comments": "",
212         "outputs": 1,
213         "x": 587.0809020996094,
214         "y": 1979.755991578102,
215         "z": "fbc4119e.39c3b",
216         "wires": [
217             [
218                 "1f0721b.9b811de",
219                 "e79eeaaa.e7dcb8",
220                 "1d4083e3.1dc26c"
221             ]
222         ]
223     },
224     {
225         "id": "1f0721b.9b811de",
226         "type": "not-found",
227         "name": "not-found",
228         "xml": "<outcome value='not-found'>\n",
229         "comments": "",
230         "outputs": 1,
231         "x": 869.8889007568359,
232         "y": 2015.6111840568483,
233         "z": "fbc4119e.39c3b",
234         "wires": [
235             [
236                 "d062f84e.64a6c8"
237             ]
238         ]
239     },
240     {
241         "id": "e79eeaaa.e7dcb8",
242         "type": "failure",
243         "name": "failure",
244         "xml": "<outcome value='failure'>\n",
245         "comments": "",
246         "outputs": 1,
247         "x": 860.8889503479004,
248         "y": 1984.1112098060548,
249         "z": "fbc4119e.39c3b",
250         "wires": [
251             [
252                 "d062f84e.64a6c8"
253             ]
254         ]
255     },
256     {
257         "id": "1d4083e3.1dc26c",
258         "type": "success",
259         "name": "success",
260         "xml": "<outcome value='success'>\n",
261         "comments": "",
262         "outputs": 1,
263         "x": 864.638988494873,
264         "y": 1954.4683146812022,
265         "z": "fbc4119e.39c3b",
266         "wires": [
267             [
268                 "5be66386.866e6c"
269             ]
270         ]
271     },
272     {
273         "id": "d062f84e.64a6c8",
274         "type": "returnFailure",
275         "name": "return failure",
276         "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",
277         "comments": "",
278         "x": 1030.638988494873,
279         "y": 1984.8612336479127,
280         "z": "fbc4119e.39c3b",
281         "wires": []
282     },
283     {
284         "id": "a22ae59.4cc7418",
285         "type": "block",
286         "name": "block: atomic",
287         "xml": "<block atomic=\"true\">\n",
288         "atomic": "false",
289         "comments": "",
290         "outputs": 1,
291         "x": 1062.818759918213,
292         "y": 569.4338937997818,
293         "z": "fbc4119e.39c3b",
294         "wires": [
295             [
296                 "3b15ea01.810756"
297             ]
298         ]
299     },
300     {
301         "id": "3b15ea01.810756",
302         "type": "switchNode",
303         "name": "switch cr length",
304         "xml": "<switch test='`$mdsal-ar.contrail-route-allotted-resource_length`'>\n",
305         "comments": "",
306         "outputs": 1,
307         "x": 1273.6760025024414,
308         "y": 569.05302298069,
309         "z": "fbc4119e.39c3b",
310         "wires": [
311             [
312                 "9e98b320.e152c",
313                 "8b7088ef.449658"
314             ]
315         ]
316     },
317     {
318         "id": "9e98b320.e152c",
319         "type": "other",
320         "name": "outcome 1",
321         "xml": "<outcome value='1'>\n",
322         "comments": "",
323         "outputs": 1,
324         "x": 1463.0093078613281,
325         "y": 569.0529810190201,
326         "z": "fbc4119e.39c3b",
327         "wires": [
328             [
329                 "a5eacd9b.7855d"
330             ]
331         ]
332     },
333     {
334         "id": "ad98339.532aad",
335         "type": "set",
336         "name": "set ar from get",
337         "xml": "<set>\n<parameter name='ar.' value='$mdsal-ar.contrail-route-allotted-resource[0].' />\n",
338         "comments": "",
339         "x": 1886.2001152038574,
340         "y": 600.6245447397232,
341         "z": "fbc4119e.39c3b",
342         "wires": []
343     },
344     {
345         "id": "a5eacd9b.7855d",
346         "type": "block",
347         "name": "block: atomic",
348         "xml": "<block atomic='true'>\n",
349         "atomic": "false",
350         "comments": "",
351         "outputs": 1,
352         "x": 1647.533197402954,
353         "y": 565.9578148126602,
354         "z": "fbc4119e.39c3b",
355         "wires": [
356             [
357                 "ad98339.532aad",
358                 "3870bad1.110186"
359             ]
360         ]
361     },
362     {
363         "id": "2d62b33d.718e0c",
364         "type": "comment",
365         "name": "GET contrail-route-allotted-resource from mdsal",
366         "info": "",
367         "comments": "",
368         "x": 661.8186988830566,
369         "y": 537.43388235569,
370         "z": "fbc4119e.39c3b",
371         "wires": []
372     },
373     {
374         "id": "cb3789bb.42da88",
375         "type": "set",
376         "name": "set ar-assignments.contrail-id",
377         "xml": "<set>\n<parameter name='ar-assignments.contrail-id' value=\"`$contrailResp.network-policy.uuid`\" />\n\n\n\n",
378         "comments": "",
379         "x": 591.6760177612305,
380         "y": 1456.2319885492325,
381         "z": "fbc4119e.39c3b",
382         "wires": []
383     },
384     {
385         "id": "3870bad1.110186",
386         "type": "set",
387         "name": "save backup copy of mdsal-ar for rollback",
388         "xml": "<set>\n<parameter name='bk-cr-ar' value='$mdsal-ar.' />\n",
389         "comments": "",
390         "x": 1974.0571670532227,
391         "y": 567.4340368509293,
392         "z": "fbc4119e.39c3b",
393         "wires": []
394     },
395     {
396         "id": "d436744f.3d37d8",
397         "type": "comment",
398         "name": "Create urls for restapi",
399         "info": "",
400         "comments": "",
401         "x": 576.9615592956543,
402         "y": 431.29102289676666,
403         "z": "fbc4119e.39c3b",
404         "wires": []
405     },
406     {
407         "id": "5be66386.866e6c",
408         "type": "block",
409         "name": "block",
410         "xml": "<block>\n",
411         "atomic": "false",
412         "comments": "",
413         "outputs": 1,
414         "x": 1006.2949562072754,
415         "y": 1950.6604838706553,
416         "z": "fbc4119e.39c3b",
417         "wires": [
418             []
419         ]
420     },
421     {
422         "id": "bc587a66.feda28",
423         "type": "execute",
424         "name": "execute getTime",
425         "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='setTime' >\n    <parameter name=\"outputPath\" value=\"tmp.current-time\" />\n\n",
426         "comments": "",
427         "outputs": 1,
428         "x": 518.9616737365723,
429         "y": 1928.3269076682627,
430         "z": "fbc4119e.39c3b",
431         "wires": [
432             []
433         ]
434     },
435     {
436         "id": "ca916db.f325d9",
437         "type": "returnFailure",
438         "name": "return failure",
439         "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",
440         "comments": "",
441         "x": 1613.3376388549805,
442         "y": 653.6667238473892,
443         "z": "fbc4119e.39c3b",
444         "wires": []
445     },
446     {
447         "id": "cfd4b50e.a5e6b8",
448         "type": "other",
449         "name": "other",
450         "xml": "<outcome value='Other'>\n",
451         "comments": "",
452         "outputs": 1,
453         "x": 885.6705589294434,
454         "y": 606.0000778436661,
455         "z": "fbc4119e.39c3b",
456         "wires": [
457             [
458                 "18936b2c.da7865"
459             ]
460         ]
461     },
462     {
463         "id": "18936b2c.da7865",
464         "type": "block",
465         "name": "block: atomic",
466         "xml": "<block atomic=\"true\">\n",
467         "atomic": "false",
468         "comments": "",
469         "outputs": 1,
470         "x": 1065.670509338379,
471         "y": 606.6666284799576,
472         "z": "fbc4119e.39c3b",
473         "wires": [
474             [
475                 "ca916db.f325d9"
476             ]
477         ]
478     },
479     {
480         "id": "2c4387c0.bbe4d8",
481         "type": "set",
482         "name": "set ar data",
483         "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",
484         "comments": "",
485         "x": 558.5277328491211,
486         "y": 611.4761854410172,
487         "z": "fbc4119e.39c3b",
488         "wires": []
489     },
490     {
491         "id": "8b7088ef.449658",
492         "type": "other",
493         "name": "other",
494         "xml": "<outcome value='Other'>\n",
495         "comments": "",
496         "outputs": 1,
497         "x": 1451.3372611999512,
498         "y": 606.3333412408829,
499         "z": "fbc4119e.39c3b",
500         "wires": [
501             [
502                 "ca916db.f325d9"
503             ]
504         ]
505     },
506     {
507         "id": "bd7a20ba.9bf84",
508         "type": "set",
509         "name": "set cloud-region-id for input to contrail",
510         "xml": "<set>\n<parameter name='cloud-region-id' value='`$tmp.ar.cloud-region-id`' />\n",
511         "comments": "",
512         "x": 615.3849792480469,
513         "y": 1262.6431738138199,
514         "z": "fbc4119e.39c3b",
515         "wires": []
516     },
517     {
518         "id": "ca1182bc.7b6ef",
519         "type": "comment",
520         "name": "Call contrail api here",
521         "info": "",
522         "comments": "",
523         "x": 559.0516815185547,
524         "y": 1229.3096767663956,
525         "z": "fbc4119e.39c3b",
526         "wires": []
527     },
528     {
529         "id": "76519ed6.4be52",
530         "type": "comment",
531         "name": "Rollback - rollback contrail/AAI",
532         "info": "",
533         "comments": "",
534         "x": 1243.8612670898438,
535         "y": 1189.714376091957,
536         "z": "fbc4119e.39c3b",
537         "wires": []
538     },
539     {
540         "id": "396c22cf.fd071e",
541         "type": "comment",
542         "name": "Create  network policy in AAI",
543         "info": "",
544         "comments": "",
545         "x": 565.7659301757812,
546         "y": 1664.8929439783096,
547         "z": "fbc4119e.39c3b",
548         "wires": []
549     },
550     {
551         "id": "3b7c3ee7.892e02",
552         "type": "save",
553         "name": "save AnAI - network-policy",
554         "xml": "<save 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<!-- Create l3-network object -->\n<parameter name=\"network-policy-id\" value=\"`$ar-assignments.contrail-id`\" />\n<parameter name=\"network-policy-fqdn\" value=\"`$ar-assignments.fq-name`\" />\n\n\n",
555         "comments": "",
556         "outputs": 1,
557         "x": 581.1428146362305,
558         "y": 1701.960508942604,
559         "z": "fbc4119e.39c3b",
560         "wires": [
561             [
562                 "178286.09ba5d7b",
563                 "916ae281.f5ee2"
564             ]
565         ]
566     },
567     {
568         "id": "6b68050d.217ccc",
569         "type": "returnFailure",
570         "name": "return failure",
571         "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",
572         "comments": "",
573         "x": 1053.48832321167,
574         "y": 1692.2421222925186,
575         "z": "fbc4119e.39c3b",
576         "wires": []
577     },
578     {
579         "id": "178286.09ba5d7b",
580         "type": "failure",
581         "name": "failure",
582         "xml": "<outcome value='failure'>\n",
583         "comments": "",
584         "outputs": 1,
585         "x": 824.9169311523438,
586         "y": 1691.257859826088,
587         "z": "fbc4119e.39c3b",
588         "wires": [
589             [
590                 "6b68050d.217ccc"
591             ]
592         ]
593     },
594     {
595         "id": "916ae281.f5ee2",
596         "type": "not-found",
597         "name": "not-found",
598         "xml": "<outcome value='not-found'>\n",
599         "comments": "",
600         "outputs": 1,
601         "x": 828.7264289855957,
602         "y": 1720.7342764139175,
603         "z": "fbc4119e.39c3b",
604         "wires": [
605             [
606                 "6b68050d.217ccc"
607             ]
608         ]
609     },
610     {
611         "id": "13fbc501.526acb",
612         "type": "comment",
613         "name": "MDSal adaptor only saves consuming service so parent service and AR are done by Rest api calls",
614         "info": "",
615         "comments": "",
616         "x": 681.6705322265625,
617         "y": 102.99999868869781,
618         "z": "fbc4119e.39c3b",
619         "wires": []
620     },
621     {
622         "id": "9c87964d.1eedd8",
623         "type": "execute",
624         "name": "execute Contrail API create network policy",
625         "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='create' />\n<parameter name='resp-prefix' value='contrailResp' />\n<parameter name='default-domain' value='default-domain' />\n<parameter name='policy-name' value='`$ar.allotted-resource-data.contrail-route-topology.contrail-route-assignments.fq-name`' />\n<parameter name='default-project' value='`$tmp.ar.tenant-name`' /> \n<!-- dummy for dev <parameter name='default-project' value='default-project' /> -->\n<parameter name='vipr-service-instance' value='`$ar.allotted-resource-data.contrail-route-topology.contrail-route-assignments.contrail-applied-service.contrail-fqdn`' />\n<parameter name='dst-virtual-network' value='`$aai.dest-network.contrail-network-fqdn`' />\n<parameter name='src-virtual-network' value='`$aai.src-network.contrail-network-fqdn`' />\n<parameter name='direction' value='&lt;&gt;' />\n<parameter name='cloud-region-id' value='`$tmp.ar.cloud-region-id`' />\n\n",
626         "comments": "",
627         "outputs": 1,
628         "x": 620.0039978027344,
629         "y": 1345.5005213022232,
630         "z": "fbc4119e.39c3b",
631         "wires": [
632             [
633                 "2fb2335a.cbd49c",
634                 "a5da0427.0c5768"
635             ]
636         ]
637     },
638     {
639         "id": "2fb2335a.cbd49c",
640         "type": "success",
641         "name": "success",
642         "xml": "<outcome value='success'>\n",
643         "comments": "",
644         "outputs": 1,
645         "x": 901.384880065918,
646         "y": 1313.6428172923625,
647         "z": "fbc4119e.39c3b",
648         "wires": [
649             [
650                 "1c40ddfb.ac3da2"
651             ]
652         ]
653     },
654     {
655         "id": "a5da0427.0c5768",
656         "type": "failure",
657         "name": "failure",
658         "xml": "<outcome value='failure'>\n",
659         "comments": "",
660         "outputs": 1,
661         "x": 899.4802017211914,
662         "y": 1346.6427570581436,
663         "z": "fbc4119e.39c3b",
664         "wires": [
665             [
666                 "a4c8be00.baf52"
667             ]
668         ]
669     },
670     {
671         "id": "bd1d7050.2c7d2",
672         "type": "switchNode",
673         "name": "switch source-network.network-id",
674         "xml": "<switch test='`$ar.allotted-resource-data.contrail-route-topology.contrail-route-assignments.source-network.network-id`'>\n\n",
675         "comments": "",
676         "outputs": 1,
677         "x": 622.0039520263672,
678         "y": 817.6667934656143,
679         "z": "fbc4119e.39c3b",
680         "wires": [
681             [
682                 "16cf3207.6919ae",
683                 "4972ee2e.1e371"
684             ]
685         ]
686     },
687     {
688         "id": "16cf3207.6919ae",
689         "type": "other",
690         "name": "Other",
691         "xml": "<outcome value='Other'>",
692         "comments": "",
693         "outputs": 1,
694         "x": 978.0041694641113,
695         "y": 816.333172917366,
696         "z": "fbc4119e.39c3b",
697         "wires": [
698             [
699                 "4d7f64a6.3f3e3c"
700             ]
701         ]
702     },
703     {
704         "id": "4972ee2e.1e371",
705         "type": "other",
706         "name": "NULL",
707         "xml": "<outcome value=''>",
708         "comments": "",
709         "outputs": 1,
710         "x": 973.6709861755371,
711         "y": 779.3329731225967,
712         "z": "fbc4119e.39c3b",
713         "wires": [
714             [
715                 "f8faa309.794be"
716             ]
717         ]
718     },
719     {
720         "id": "7af5889b.368718",
721         "type": "for",
722         "name": "for nidx..service-data.networks.network[]",
723         "xml": "<for index='nidx' start='0' end='`$service-data.networks.network_length`' >\n",
724         "comments": "",
725         "outputs": 1,
726         "x": 2113.448944091797,
727         "y": 856.1109507083893,
728         "z": "fbc4119e.39c3b",
729         "wires": [
730             [
731                 "a1094de3.d998d"
732             ]
733         ]
734     },
735     {
736         "id": "e0a0a8a2.ee5b68",
737         "type": "switchNode",
738         "name": "switch service-data.networks.network_length",
739         "xml": "<switch test='`$service-data.networks.network_length`'>\n",
740         "comments": "",
741         "outputs": 1,
742         "x": 1369.829605102539,
743         "y": 816.3490000963211,
744         "z": "fbc4119e.39c3b",
745         "wires": [
746             [
747                 "25b29885.305408",
748                 "d2c788cf.79feb8"
749             ]
750         ]
751     },
752     {
753         "id": "25b29885.305408",
754         "type": "other",
755         "name": "outcome Null",
756         "xml": "<outcome value=''>\n",
757         "comments": "",
758         "outputs": 1,
759         "x": 1658.829605102539,
760         "y": 818.3490611314774,
761         "z": "fbc4119e.39c3b",
762         "wires": [
763             [
764                 "25abf517.021e9a"
765             ]
766         ]
767     },
768     {
769         "id": "d2c788cf.79feb8",
770         "type": "other",
771         "name": "other",
772         "xml": "<outcome value='Other'>\n",
773         "comments": "",
774         "outputs": 1,
775         "x": 1638.829605102539,
776         "y": 853.3490611314774,
777         "z": "fbc4119e.39c3b",
778         "wires": [
779             [
780                 "d2c2c0a9.d8b2c"
781             ]
782         ]
783     },
784     {
785         "id": "d2c2c0a9.d8b2c",
786         "type": "block",
787         "name": "block : atomic",
788         "xml": "<block atomic=\"true\">",
789         "atomic": "true",
790         "outputs": 1,
791         "x": 1843.4329071044922,
792         "y": 857.2369349002838,
793         "z": "fbc4119e.39c3b",
794         "wires": [
795             [
796                 "7af5889b.368718"
797             ]
798         ]
799     },
800     {
801         "id": "4d7f64a6.3f3e3c",
802         "type": "block",
803         "name": "block",
804         "xml": "<block>\n",
805         "atomic": "false",
806         "comments": "",
807         "outputs": 1,
808         "x": 1112.1154251098633,
809         "y": 816.7775775194168,
810         "z": "fbc4119e.39c3b",
811         "wires": [
812             [
813                 "e0a0a8a2.ee5b68"
814             ]
815         ]
816     },
817     {
818         "id": "f8faa309.794be",
819         "type": "returnFailure",
820         "name": "return failure",
821         "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",
822         "comments": "",
823         "x": 1127.8044509887695,
824         "y": 779.999875664711,
825         "z": "fbc4119e.39c3b",
826         "wires": []
827     },
828     {
829         "id": "25abf517.021e9a",
830         "type": "returnFailure",
831         "name": "return failure",
832         "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",
833         "comments": "",
834         "x": 1851.9376831054688,
835         "y": 818.6665213108063,
836         "z": "fbc4119e.39c3b",
837         "wires": []
838     },
839     {
840         "id": "d6797d24.acfca",
841         "type": "comment",
842         "name": "Find tenant id/cloud region from source network",
843         "info": "",
844         "comments": "",
845         "x": 659.4042739868164,
846         "y": 784.333109498024,
847         "z": "fbc4119e.39c3b",
848         "wires": []
849     },
850     {
851         "id": "a1094de3.d998d",
852         "type": "switchNode",
853         "name": "switch networkid found",
854         "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",
855         "comments": "",
856         "outputs": 1,
857         "x": 2406.0037536621094,
858         "y": 853.0000774860382,
859         "z": "fbc4119e.39c3b",
860         "wires": [
861             [
862                 "2fc2f6cc.52811a",
863                 "bd8b1543.d5feb8"
864             ]
865         ]
866     },
867     {
868         "id": "cf465404.bca108",
869         "type": "set",
870         "name": "set tmp vals",
871         "xml": "<set>\n<parameter name='tmp.ar.tenant-id' value='`$service-data.networks.network[$nidx].network-data.network-topology.tenant`' />\n<parameter name='tmp.ar.cloud-region-id' value='`$service-data.networks.network[$nidx].network-data.network-topology.aic-cloud-region`' />\n\n\n",
872         "comments": "",
873         "x": 2945.670425415039,
874         "y": 843.0000545978546,
875         "z": "fbc4119e.39c3b",
876         "wires": []
877     },
878     {
879         "id": "18df3dec.3762c2",
880         "type": "block",
881         "name": "block",
882         "xml": "<block>\n",
883         "atomic": "false",
884         "comments": "",
885         "outputs": 1,
886         "x": 2755.736867904663,
887         "y": 856.0000660419464,
888         "z": "fbc4119e.39c3b",
889         "wires": [
890             [
891                 "cf465404.bca108",
892                 "a77873a9.58a3d"
893             ]
894         ]
895     },
896     {
897         "id": "2fc2f6cc.52811a",
898         "type": "outcomeTrue",
899         "name": "true",
900         "xml": "<outcome value='true'>\n",
901         "comments": "",
902         "outputs": 1,
903         "x": 2600.2702445983887,
904         "y": 855.9999287128448,
905         "z": "fbc4119e.39c3b",
906         "wires": [
907             [
908                 "18df3dec.3762c2"
909             ]
910         ]
911     },
912     {
913         "id": "bd8b1543.d5feb8",
914         "type": "other",
915         "name": "other",
916         "xml": "<outcome value='Other'>\n",
917         "comments": "",
918         "outputs": 1,
919         "x": 2601.069854736328,
920         "y": 893.9999315738678,
921         "z": "fbc4119e.39c3b",
922         "wires": [
923             [
924                 "12777d15.58b793"
925             ]
926         ]
927     },
928     {
929         "id": "12777d15.58b793",
930         "type": "returnFailure",
931         "name": "return failure",
932         "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",
933         "comments": "",
934         "x": 2779.070011138916,
935         "y": 893.9999973773956,
936         "z": "fbc4119e.39c3b",
937         "wires": []
938     },
939     {
940         "id": "a77873a9.58a3d",
941         "type": "get-resource",
942         "name": "get-resource tenant",
943         "xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\t\tresource=\"tenant\" \n\t\tkey=\"cloud-region.cloud-owner = $prop.cloud-region.cloud-owner AND \n\t\t     cloud-region.cloud-region-id = $tmp.ar.cloud-region-id AND\n\t\t     tenant.tenant-id = $tmp.ar.tenant-id\"\n        pfx='aai.tenant' local-only='false' >\n\n",
944         "comments": "",
945         "outputs": 1,
946         "x": 2968.1369705200195,
947         "y": 878.9997503757477,
948         "z": "fbc4119e.39c3b",
949         "wires": [
950             [
951                 "d053a66e.8a2958",
952                 "f2ee2fa9.2bf8d",
953                 "d188bc90.da64f"
954             ]
955         ]
956     },
957     {
958         "id": "d053a66e.8a2958",
959         "type": "not-found",
960         "name": "not-found",
961         "xml": "<outcome value='not-found'>\n",
962         "comments": "",
963         "outputs": 1,
964         "x": 3188.998359680176,
965         "y": 871.6108648777008,
966         "z": "fbc4119e.39c3b",
967         "wires": [
968             [
969                 "fb3363cd.b2365"
970             ]
971         ]
972     },
973     {
974         "id": "f2ee2fa9.2bf8d",
975         "type": "other",
976         "name": "other",
977         "xml": "<outcome value='Other'>\n",
978         "comments": "",
979         "outputs": 1,
980         "x": 3184.331386566162,
981         "y": 904.9441788196564,
982         "z": "fbc4119e.39c3b",
983         "wires": [
984             [
985                 "fb3363cd.b2365"
986             ]
987         ]
988     },
989     {
990         "id": "fb3363cd.b2365",
991         "type": "returnFailure",
992         "name": "return failure",
993         "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=\"Tenant not found in AAI\" />\n\n",
994         "comments": "",
995         "x": 3358.507308959961,
996         "y": 892.9997379779816,
997         "z": "fbc4119e.39c3b",
998         "wires": []
999     },
1000     {
1001         "id": "d188bc90.da64f",
1002         "type": "success",
1003         "name": "success",
1004         "xml": "<outcome value='success'>\n",
1005         "comments": "",
1006         "outputs": 1,
1007         "x": 3184.507392883301,
1008         "y": 840.0368292331696,
1009         "z": "fbc4119e.39c3b",
1010         "wires": [
1011             [
1012                 "a5dbc0a1.7ca4b"
1013             ]
1014         ]
1015     },
1016     {
1017         "id": "a5dbc0a1.7ca4b",
1018         "type": "block",
1019         "name": "block : atomic",
1020         "xml": "<block atomic=\"true\">",
1021         "atomic": "true",
1022         "outputs": 1,
1023         "x": 3364.507392883301,
1024         "y": 838.0368292331696,
1025         "z": "fbc4119e.39c3b",
1026         "wires": [
1027             [
1028                 "3eca1514.f49d8a"
1029             ]
1030         ]
1031     },
1032     {
1033         "id": "3eca1514.f49d8a",
1034         "type": "set",
1035         "name": "set tenant name",
1036         "xml": "<set>\n<parameter name='tmp.ar.tenant-name' value='`$aai.tenant.tenant-name`' />\n\n\n",
1037         "comments": "",
1038         "x": 3551.4704971313477,
1039         "y": 835.6665709018707,
1040         "z": "fbc4119e.39c3b",
1041         "wires": []
1042     },
1043     {
1044         "id": "78389040.50c04",
1045         "type": "update",
1046         "name": "update AAI allotted-resource",
1047         "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",
1048         "comments": "",
1049         "outputs": 1,
1050         "x": 568.4326171875,
1051         "y": 1801.274008154869,
1052         "z": "fbc4119e.39c3b",
1053         "wires": [
1054             [
1055                 "ee05ecac.f85f4",
1056                 "76238400.885e4c"
1057             ]
1058         ]
1059     },
1060     {
1061         "id": "ee05ecac.f85f4",
1062         "type": "failure",
1063         "name": "failure",
1064         "xml": "<outcome value='failure'>\n",
1065         "comments": "",
1066         "outputs": 1,
1067         "x": 824.1945114135742,
1068         "y": 1778.512227654457,
1069         "z": "fbc4119e.39c3b",
1070         "wires": [
1071             [
1072                 "9a72cd34.8de84"
1073             ]
1074         ]
1075     },
1076     {
1077         "id": "76238400.885e4c",
1078         "type": "failure",
1079         "name": "not-found",
1080         "xml": "<outcome value='not-found'>\n",
1081         "comments": "",
1082         "outputs": 1,
1083         "x": 829.5039405822754,
1084         "y": 1814.0836454629898,
1085         "z": "fbc4119e.39c3b",
1086         "wires": [
1087             [
1088                 "9a72cd34.8de84"
1089             ]
1090         ]
1091     },
1092     {
1093         "id": "9a72cd34.8de84",
1094         "type": "returnFailure",
1095         "name": "return failure",
1096         "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",
1097         "comments": "",
1098         "x": 1039.2897262573242,
1099         "y": 1780.1312719583511,
1100         "z": "fbc4119e.39c3b",
1101         "wires": []
1102     },
1103     {
1104         "id": "3ebda3d1.60c63c",
1105         "type": "comment",
1106         "name": "Update AAI AR",
1107         "info": "",
1108         "comments": "",
1109         "x": 524.6326179504395,
1110         "y": 1770.416758980602,
1111         "z": "fbc4119e.39c3b",
1112         "wires": []
1113     },
1114     {
1115         "id": "a4c8be00.baf52",
1116         "type": "returnFailure",
1117         "name": "return failure",
1118         "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. '+ $contrailResp.resp-code + ':' +$contrailResp.resp-message `\" />\n",
1119         "comments": "",
1120         "x": 1059.385009765625,
1121         "y": 1345.9762045145035,
1122         "z": "fbc4119e.39c3b",
1123         "wires": []
1124     },
1125     {
1126         "id": "96e58f96.3e0dc",
1127         "type": "record",
1128         "name": "record",
1129         "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder\">\n<parameter name=\"logger\" value=\"message-log\"/>\n<parameter name=\"field1\" value=\"__TIMESTAMP__\"/>\n<parameter name=\"field2\" value=\"GENERIC-RESOURCE-API.contrail-route-topology-operation-create\"/>\n<parameter name='field3' value='network-policy' />\n<parameter name='field4' value='create' />\n<parameter name='field5' value='contrailResp' />\n<parameter name='field6' value='default-domain' />\n<parameter name='field7' value='`$ar.allotted-resource-data.contrail-route-topology.contrail-route-assignments.fq-name`' />\n<parameter name='field8' value='`$tmp.ar.tenant-name`' />\n<parameter name='field9' value='`$ar.allotted-resource-data.allotted-resource-operation-information.contrail-route-request-input.contrail-applied-service-info.contrail-fqdn`' />\n<parameter name='field10' value='$aai.dest-network.contrail-network-fqdn' />\n<parameter name='field11' value='$aai.src-network.contrail-network-fqdn' />\n<parameter name='field12' value='&lt;&gt;' />\n<parameter name='field13' value='$tmp.ar.cloud-region-id' />\n\n\n",
1130         "comments": "",
1131         "outputs": 1,
1132         "x": 508.09918212890625,
1133         "y": 1315.2619215250015,
1134         "z": "fbc4119e.39c3b",
1135         "wires": [
1136             []
1137         ]
1138     },
1139     {
1140         "id": "f4f87407.7b7138",
1141         "type": "not-found",
1142         "name": "not found",
1143         "xml": "<outcome value='not-found'>\n",
1144         "comments": "",
1145         "outputs": 1,
1146         "x": 904.2896728515625,
1147         "y": 895.5955168008804,
1148         "z": "fbc4119e.39c3b",
1149         "wires": [
1150             [
1151                 "81772977.20deb8"
1152             ]
1153         ]
1154     },
1155     {
1156         "id": "29d6c655.17265a",
1157         "type": "get-resource",
1158         "name": "get AnAI - l3-network by network-id",
1159         "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",
1160         "comments": "",
1161         "outputs": 1,
1162         "x": 632.9165954589844,
1163         "y": 903.1277776956558,
1164         "z": "fbc4119e.39c3b",
1165         "wires": [
1166             [
1167                 "678eae69.b9714",
1168                 "f4f87407.7b7138",
1169                 "5e43af76.092db"
1170             ]
1171         ]
1172     },
1173     {
1174         "id": "678eae69.b9714",
1175         "type": "failure",
1176         "name": "failure",
1177         "xml": "<outcome value='failure'>\n",
1178         "comments": "",
1179         "outputs": 1,
1180         "x": 897.0117797851562,
1181         "y": 930.0801206827164,
1182         "z": "fbc4119e.39c3b",
1183         "wires": [
1184             [
1185                 "81772977.20deb8"
1186             ]
1187         ]
1188     },
1189     {
1190         "id": "81772977.20deb8",
1191         "type": "returnFailure",
1192         "name": "return failure",
1193         "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'`\" />",
1194         "comments": "",
1195         "x": 1049.1227416992188,
1196         "y": 926.3023496866226,
1197         "z": "fbc4119e.39c3b",
1198         "wires": []
1199     },
1200     {
1201         "id": "5e43af76.092db",
1202         "type": "success",
1203         "name": "success",
1204         "xml": "<outcome value='success'>\n",
1205         "comments": "",
1206         "outputs": 1,
1207         "x": 902.2897338867188,
1208         "y": 961.5955168008804,
1209         "z": "fbc4119e.39c3b",
1210         "wires": [
1211             [
1212                 "aa41ec1c.71542"
1213             ]
1214         ]
1215     },
1216     {
1217         "id": "aa41ec1c.71542",
1218         "type": "block",
1219         "name": "block : atomic",
1220         "xml": "<block atomic=\"true\">",
1221         "atomic": "true",
1222         "outputs": 1,
1223         "x": 1054.956298828125,
1224         "y": 959.9288450479507,
1225         "z": "fbc4119e.39c3b",
1226         "wires": [
1227             []
1228         ]
1229     },
1230     {
1231         "id": "ffbc6d1d.bd87f",
1232         "type": "comment",
1233         "name": "GET source network from AAI",
1234         "info": "",
1235         "comments": "",
1236         "x": 605.7182312011719,
1237         "y": 871.3097540140152,
1238         "z": "fbc4119e.39c3b",
1239         "wires": []
1240     },
1241     {
1242         "id": "a32f696b.7ff868",
1243         "type": "not-found",
1244         "name": "not found",
1245         "xml": "<outcome value='not-found'>\n",
1246         "comments": "",
1247         "outputs": 1,
1248         "x": 908.5753784179688,
1249         "y": 1002.7382913827896,
1250         "z": "fbc4119e.39c3b",
1251         "wires": [
1252             [
1253                 "8a6cd51f.44caa8"
1254             ]
1255         ]
1256     },
1257     {
1258         "id": "808bf1b8.60d31",
1259         "type": "get-resource",
1260         "name": "get AnAI - l3-network by network-id",
1261         "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",
1262         "comments": "",
1263         "outputs": 1,
1264         "x": 637.2023162841797,
1265         "y": 1013.6038881540298,
1266         "z": "fbc4119e.39c3b",
1267         "wires": [
1268             [
1269                 "9ad6ea77.f2aad8",
1270                 "a32f696b.7ff868",
1271                 "4dcfd8c5.d1f5f8"
1272             ]
1273         ]
1274     },
1275     {
1276         "id": "9ad6ea77.f2aad8",
1277         "type": "failure",
1278         "name": "failure",
1279         "xml": "<outcome value='failure'>\n",
1280         "comments": "",
1281         "outputs": 1,
1282         "x": 901.2974853515625,
1283         "y": 1037.2228952646255,
1284         "z": "fbc4119e.39c3b",
1285         "wires": [
1286             [
1287                 "8a6cd51f.44caa8"
1288             ]
1289         ]
1290     },
1291     {
1292         "id": "8a6cd51f.44caa8",
1293         "type": "returnFailure",
1294         "name": "return failure",
1295         "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'`\" />",
1296         "comments": "",
1297         "x": 1053.408447265625,
1298         "y": 1033.4451242685318,
1299         "z": "fbc4119e.39c3b",
1300         "wires": []
1301     },
1302     {
1303         "id": "4dcfd8c5.d1f5f8",
1304         "type": "success",
1305         "name": "success",
1306         "xml": "<outcome value='success'>\n",
1307         "comments": "",
1308         "outputs": 1,
1309         "x": 901.575439453125,
1310         "y": 1073.7382627725601,
1311         "z": "fbc4119e.39c3b",
1312         "wires": [
1313             [
1314                 "532eb226.00307c"
1315             ]
1316         ]
1317     },
1318     {
1319         "id": "532eb226.00307c",
1320         "type": "block",
1321         "name": "block : atomic",
1322         "xml": "<block atomic=\"true\">",
1323         "atomic": "true",
1324         "outputs": 1,
1325         "x": 1054.2420043945312,
1326         "y": 1072.0715910196304,
1327         "z": "fbc4119e.39c3b",
1328         "wires": [
1329             []
1330         ]
1331     },
1332     {
1333         "id": "f7c80e16.0bab8",
1334         "type": "comment",
1335         "name": "GET dest network from AAI",
1336         "info": "",
1337         "comments": "",
1338         "x": 610.0039367675781,
1339         "y": 978.4525285959244,
1340         "z": "fbc4119e.39c3b",
1341         "wires": []
1342     },
1343     {
1344         "id": "2a90d119.3eaf9e",
1345         "type": "set",
1346         "name": "set temp contrail fqdn for input to contrail",
1347         "xml": "<set>\n<parameter name='aai.src-network.contrail-network-fqdn' value='`tmpsourcecontrailfqdn`' />\n<parameter name='aai.dest-network.contrail-network-fqdn' value='`tmpdestinationcontrailfqdn`' />",
1348         "comments": "",
1349         "x": 643.0039710998535,
1350         "y": 1160.5954176187515,
1351         "z": "fbc4119e.39c3b",
1352         "wires": []
1353     },
1354     {
1355         "id": "1c40ddfb.ac3da2",
1356         "type": "block",
1357         "name": "block",
1358         "xml": "<block>\n",
1359         "atomic": "false",
1360         "comments": "",
1361         "outputs": 1,
1362         "x": 1053.5753631591797,
1363         "y": 1314.309542298317,
1364         "z": "fbc4119e.39c3b",
1365         "wires": [
1366             []
1367         ]
1368     },
1369     {
1370         "id": "7d144ee0.ee98f",
1371         "type": "set",
1372         "name": "set ar-assignments",
1373         "xml": "<set>\n<parameter name='ar-assignments.' value=\"`$ar.allotted-resource-data.contrail-route-topology.contrail-route-assignments.`\" />\n\n\n\n",
1374         "comments": "",
1375         "x": 584.2896690368652,
1376         "y": 642.2381588220596,
1377         "z": "fbc4119e.39c3b",
1378         "wires": []
1379     },
1380     {
1381         "id": "65bdabe8.142354",
1382         "type": "set",
1383         "name": "set ar-assignments",
1384         "xml": "<set>\n<parameter name='ar.allotted-resource-data.contrail-route-topology.contrail-route-assignments.' value='`$ar-assignments.`' />\n\n\n\n",
1385         "comments": "",
1386         "x": 531.4326019287109,
1387         "y": 1861.2740770578384,
1388         "z": "fbc4119e.39c3b",
1389         "wires": []
1390     },
1391     {
1392         "id": "483287bc.c27a28",
1393         "type": "switchNode",
1394         "name": "switch contrailResp.resp-code",
1395         "xml": "<switch test='`$contrailResp.resp-code`'>\n\n",
1396         "comments": "",
1397         "outputs": 1,
1398         "x": 586.611083984375,
1399         "y": 1410.9167677164078,
1400         "z": "fbc4119e.39c3b",
1401         "wires": [
1402             [
1403                 "5959bd36.12d064",
1404                 "f8777e5b.220e7"
1405             ]
1406         ]
1407     },
1408     {
1409         "id": "5959bd36.12d064",
1410         "type": "outcome",
1411         "name": "outcome 0",
1412         "xml": "<outcome value='0'>\n",
1413         "comments": "",
1414         "outputs": 1,
1415         "x": 863.7540863752365,
1416         "y": 1410.9168983697891,
1417         "z": "fbc4119e.39c3b",
1418         "wires": [
1419             [
1420                 "ba0eee80.bc27f"
1421             ]
1422         ]
1423     },
1424     {
1425         "id": "f8777e5b.220e7",
1426         "type": "other",
1427         "name": "other",
1428         "xml": "<outcome value='Other'>\n",
1429         "comments": "",
1430         "outputs": 1,
1431         "x": 843.7539978027344,
1432         "y": 1438.4168020486832,
1433         "z": "fbc4119e.39c3b",
1434         "wires": [
1435             [
1436                 "f5b88fb1.136b5"
1437             ]
1438         ]
1439     },
1440     {
1441         "id": "f5b88fb1.136b5",
1442         "type": "returnFailure",
1443         "name": "return failure",
1444         "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. '+ $contrailResp.resp-code + ':' +$contrailResp.resp-message `\" />\n",
1445         "comments": "",
1446         "x": 1016.2540969848633,
1447         "y": 1440.9169002771378,
1448         "z": "fbc4119e.39c3b",
1449         "wires": []
1450     },
1451     {
1452         "id": "ba0eee80.bc27f",
1453         "type": "block",
1454         "name": "block",
1455         "xml": "<block>\n",
1456         "atomic": "false",
1457         "comments": "",
1458         "outputs": 1,
1459         "x": 1008.7539978027344,
1460         "y": 1410.9168001413345,
1461         "z": "fbc4119e.39c3b",
1462         "wires": [
1463             []
1464         ]
1465     },
1466     {
1467         "id": "6e33a9b5.9b7438",
1468         "type": "comment",
1469         "name": "Dummy values for dev/dev",
1470         "info": "",
1471         "comments": "",
1472         "x": 590.0039176940918,
1473         "y": 1123.666897892952,
1474         "z": "fbc4119e.39c3b",
1475         "wires": []
1476     },
1477     {
1478         "id": "cf49ae05.2f29",
1479         "type": "call",
1480         "name": "call policy-manager-create-policy",
1481         "xml": "<call module='GENERIC-RESOURCE-API' rpc='policy-manager-create-policy' mode='sync' >\n",
1482         "comments": "",
1483         "outputs": 1,
1484         "x": 605.1466903686523,
1485         "y": 1545.0951210260391,
1486         "z": "fbc4119e.39c3b",
1487         "wires": [
1488             [
1489                 "eefb278d.613d48",
1490                 "526e4a66.638b34"
1491             ]
1492         ]
1493     },
1494     {
1495         "id": "eefb278d.613d48",
1496         "type": "failure",
1497         "name": "failure",
1498         "xml": "<outcome value='failure'>\n",
1499         "comments": "",
1500         "outputs": 1,
1501         "x": 840.7260513305664,
1502         "y": 1542.4370886087418,
1503         "z": "fbc4119e.39c3b",
1504         "wires": [
1505             [
1506                 "f9ba847c.ff2c28"
1507             ]
1508         ]
1509     },
1510     {
1511         "id": "526e4a66.638b34",
1512         "type": "success",
1513         "name": "success",
1514         "xml": "<outcome value='success'>\n",
1515         "comments": "",
1516         "outputs": 1,
1517         "x": 846.718318939209,
1518         "y": 1583.2381640672684,
1519         "z": "fbc4119e.39c3b",
1520         "wires": [
1521             [
1522                 "7657e814.bd32b8"
1523             ]
1524         ]
1525     },
1526     {
1527         "id": "7657e814.bd32b8",
1528         "type": "block",
1529         "name": "block : atomic",
1530         "xml": "<block atomic=\"true\">",
1531         "atomic": "true",
1532         "outputs": 1,
1533         "x": 999.3848838806152,
1534         "y": 1581.5714923143387,
1535         "z": "fbc4119e.39c3b",
1536         "wires": [
1537             []
1538         ]
1539     },
1540     {
1541         "id": "bc667334.be1b7",
1542         "type": "execute",
1543         "name": "execute Contrail API delete network policy",
1544         "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",
1545         "comments": "",
1546         "outputs": 1,
1547         "x": 1293.7182312011719,
1548         "y": 1540.809497475624,
1549         "z": "fbc4119e.39c3b",
1550         "wires": [
1551             [
1552                 "f2a919a7.bd34a8",
1553                 "7bf7079a.433c68"
1554             ]
1555         ]
1556     },
1557     {
1558         "id": "f2a919a7.bd34a8",
1559         "type": "success",
1560         "name": "success",
1561         "xml": "<outcome value='success'>\n",
1562         "comments": "",
1563         "outputs": 1,
1564         "x": 1570.813377380371,
1565         "y": 1510.3803775645792,
1566         "z": "fbc4119e.39c3b",
1567         "wires": [
1568             [
1569                 "f667916c.8d17b"
1570             ]
1571         ]
1572     },
1573     {
1574         "id": "7bf7079a.433c68",
1575         "type": "failure",
1576         "name": "failure",
1577         "xml": "<outcome value='failure'>\n",
1578         "comments": "",
1579         "outputs": 1,
1580         "x": 1568.9086990356445,
1581         "y": 1543.3803173303604,
1582         "z": "fbc4119e.39c3b",
1583         "wires": [
1584             [
1585                 "bae7bbac.394ad8"
1586             ]
1587         ]
1588     },
1589     {
1590         "id": "bae7bbac.394ad8",
1591         "type": "returnFailure",
1592         "name": "return failure",
1593         "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 Policy Mgr.  Rollback failed to delete policy in Contrail. '+ $contrailResp.resp-code + ':' +$contrailResp.resp-message `\" />\n",
1594         "comments": "",
1595         "x": 1728.8135070800781,
1596         "y": 1540.7137647867203,
1597         "z": "fbc4119e.39c3b",
1598         "wires": []
1599     },
1600     {
1601         "id": "f667916c.8d17b",
1602         "type": "block",
1603         "name": "block",
1604         "xml": "<block>\n",
1605         "atomic": "false",
1606         "comments": "",
1607         "outputs": 1,
1608         "x": 1723.0038604736328,
1609         "y": 1511.0471025705338,
1610         "z": "fbc4119e.39c3b",
1611         "wires": [
1612             []
1613         ]
1614     },
1615     {
1616         "id": "f9ba847c.ff2c28",
1617         "type": "block",
1618         "name": "block: atomic",
1619         "xml": "<block atomic=\"true\">\n",
1620         "atomic": "false",
1621         "comments": "",
1622         "outputs": 1,
1623         "x": 999.4324951171875,
1624         "y": 1536.5238481760025,
1625         "z": "fbc4119e.39c3b",
1626         "wires": [
1627             [
1628                 "bc667334.be1b7",
1629                 "1ae7d1e2.6be47e"
1630             ]
1631         ]
1632     },
1633     {
1634         "id": "1ae7d1e2.6be47e",
1635         "type": "returnFailure",
1636         "name": "return failure",
1637         "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 PolicyMgr. '+ $error-message  + 'Contrail network policy rolled back.'`\" />\n",
1638         "comments": "",
1639         "x": 1198.0038833618164,
1640         "y": 1580.8096100091934,
1641         "z": "fbc4119e.39c3b",
1642         "wires": []
1643     }
1644 ]