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-assign.json
1 [
2     {
3         "id": "a15c86ae.e9ffa8",
4         "type": "dgstart",
5         "name": "DGSTART",
6         "outputs": 1,
7         "x": 117.00390625,
8         "y": 66.99999904632568,
9         "z": "85f9bda0.40ea6",
10         "wires": [
11             [
12                 "9f7352fa.e9442"
13             ]
14         ]
15     },
16     {
17         "id": "9f7352fa.e9442",
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": 223.24198150634766,
26         "y": 145.70239448547363,
27         "z": "85f9bda0.40ea6",
28         "wires": [
29             [
30                 "bec67786.9a0fd8"
31             ]
32         ]
33     },
34     {
35         "id": "bec67786.9a0fd8",
36         "type": "method",
37         "name": "contrail-route-topology-operation-assign",
38         "xml": "<method rpc='contrail-route-topology-operation-assign' mode='sync'>\n",
39         "comments": "",
40         "outputs": 1,
41         "x": 224.82543182373047,
42         "y": 241.1904354095459,
43         "z": "85f9bda0.40ea6",
44         "wires": [
45             [
46                 "106ac22b.f19c5e"
47             ]
48         ]
49     },
50     {
51         "id": "106ac22b.f19c5e",
52         "type": "block",
53         "name": "block : atomic",
54         "xml": "<block atomic=\"true\">",
55         "atomic": "true",
56         "comments": "",
57         "outputs": 1,
58         "x": 251.4800910949707,
59         "y": 354.5237832069397,
60         "z": "85f9bda0.40ea6",
61         "wires": [
62             [
63                 "1b476e9a.fe2761",
64                 "89e36959.f57ca8",
65                 "8e0d8361.64708",
66                 "c1ac5f3e.e6966",
67                 "47d7c2d7.6d83ec",
68                 "e05ef5d3.6901c8",
69                 "2fa400f8.8842c",
70                 "63a20e20.4ef0d",
71                 "27c0b1cb.cbaf7e",
72                 "afb14d8.fa7e8b",
73                 "164735e2.5f4fea",
74                 "b8ee290b.0a5948",
75                 "f4cedf71.423ad",
76                 "59b1d791.8e8d88",
77                 "98d8146e.2c8368",
78                 "ec3a453a.6b4d18",
79                 "80199fb5.28a97",
80                 "42e59bba.390174",
81                 "7bbf3a4b.922ac4",
82                 "ab194250.a66de",
83                 "94029424.bac068",
84                 "f152aa61.54aba8",
85                 "d7a09bb1.7dfc58",
86                 "846017e5.c13a98",
87                 "329e94ed.128dbc",
88                 "e081301c.9853a",
89                 "e99fb45b.d57118",
90                 "6d745a26.0c7354",
91                 "4888c4bf.132c3c",
92                 "6e65e9d5.9f0028",
93                 "e2239d78.dc34",
94                 "5ddff342.e4df3c",
95                 "5f1ba758.495008",
96                 "3b7ee06a.f8b51",
97                 "5fefa6f9.3a77d8",
98                 "a348f9e1.479f68",
99                 "e6b7c56f.4a4108",
100                 "5182c386.6fc00c",
101                 "b4d8f0cc.1375d",
102                 "d3ab9d9.302806",
103                 "50a5d5ae.00038c"
104             ]
105         ]
106     },
107     {
108         "id": "89e36959.f57ca8",
109         "type": "returnSuccess",
110         "name": "return success",
111         "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",
112         "comments": "",
113         "x": 486.0041389465332,
114         "y": 3206.2144527435303,
115         "z": "85f9bda0.40ea6",
116         "wires": []
117     },
118     {
119         "id": "1b476e9a.fe2761",
120         "type": "set",
121         "name": "set output to api handler",
122         "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",
123         "comments": "",
124         "x": 514.7580642700195,
125         "y": 3178.0512561798096,
126         "z": "85f9bda0.40ea6",
127         "wires": []
128     },
129     {
130         "id": "80199fb5.28a97",
131         "type": "set",
132         "name": "set allotted-resource-oper-status",
133         "xml": "<set>\n<parameter name='ar.allotted-resource-data.allotted-resource-oper-status.order-status' value='PendingCreate' />\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",
134         "comments": "",
135         "x": 551.7581520080566,
136         "y": 2355.05126953125,
137         "z": "85f9bda0.40ea6",
138         "wires": []
139     },
140     {
141         "id": "c1ac5f3e.e6966",
142         "type": "set",
143         "name": "set tmp.ar.self-link",
144         "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",
145         "comments": "",
146         "x": 523.7420768737793,
147         "y": 304.3333349227905,
148         "z": "85f9bda0.40ea6",
149         "wires": []
150     },
151     {
152         "id": "8e0d8361.64708",
153         "type": "set",
154         "name": "set tmp.ar.allotted-resource-id,etc",
155         "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.contrail-applied-service-instance-id' value='`$contrail-route-topology-operation-input.contrail-route-request-input.contrail-applied-service-info.service-instance-id`' />\n<parameter name='tmp.ar.allotted-resource-type' value='`$contrail-route-topology-operation-input.allotted-resource-information.allotted-resource-type`' />\n\n",
156         "comments": "",
157         "x": 571.0013389587402,
158         "y": 270.59260082244873,
159         "z": "85f9bda0.40ea6",
160         "wires": []
161     },
162     {
163         "id": "47d7c2d7.6d83ec",
164         "type": "execute",
165         "name": "execute Properties - pull properties file",
166         "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",
167         "comments": "",
168         "outputs": 1,
169         "x": 585.9974899291992,
170         "y": 336.23158836364746,
171         "z": "85f9bda0.40ea6",
172         "wires": [
173             []
174         ]
175     },
176     {
177         "id": "2fa400f8.8842c",
178         "type": "execute",
179         "name": "execute RestApiCallNode - Get AR by id",
180         "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",
181         "comments": "",
182         "outputs": 1,
183         "x": 586.5228080749512,
184         "y": 716.4595785140991,
185         "z": "85f9bda0.40ea6",
186         "wires": [
187             [
188                 "4f71533e.51503c",
189                 "6ff8b1b0.c2e46"
190             ]
191         ]
192     },
193     {
194         "id": "e05ef5d3.6901c8",
195         "type": "execute",
196         "name": "generate allotted-resource url",
197         "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",
198         "comments": "",
199         "outputs": 1,
200         "x": 558.0688667297363,
201         "y": 400.01723861694336,
202         "z": "85f9bda0.40ea6",
203         "wires": [
204             []
205         ]
206     },
207     {
208         "id": "4f71533e.51503c",
209         "type": "success",
210         "name": "success",
211         "xml": "<outcome value='success'>\n",
212         "comments": "",
213         "outputs": 1,
214         "x": 833.8188972473145,
215         "y": 711.2673678398132,
216         "z": "85f9bda0.40ea6",
217         "wires": [
218             [
219                 "15a9be7b.067652"
220             ]
221         ]
222     },
223     {
224         "id": "98d8146e.2c8368",
225         "type": "execute",
226         "name": "execute RestApiCallNode - PUT AR by id",
227         "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",
228         "comments": "",
229         "outputs": 1,
230         "x": 579.962028503418,
231         "y": 2973.291174888611,
232         "z": "85f9bda0.40ea6",
233         "wires": [
234             [
235                 "b6b6c325.b9854",
236                 "52bb813.f59bc8"
237             ]
238         ]
239     },
240     {
241         "id": "b6b6c325.b9854",
242         "type": "not-found",
243         "name": "not-found",
244         "xml": "<outcome value='not-found'>\n",
245         "comments": "",
246         "outputs": 1,
247         "x": 846.9367637634277,
248         "y": 3002.956132888794,
249         "z": "85f9bda0.40ea6",
250         "wires": [
251             [
252                 "4b9fa7f1.b30308"
253             ]
254         ]
255     },
256     {
257         "id": "52bb813.f59bc8",
258         "type": "failure",
259         "name": "failure",
260         "xml": "<outcome value='failure'>\n",
261         "comments": "",
262         "outputs": 1,
263         "x": 841.2701530456543,
264         "y": 2971.4559688568115,
265         "z": "85f9bda0.40ea6",
266         "wires": [
267             [
268                 "4b9fa7f1.b30308"
269             ]
270         ]
271     },
272     {
273         "id": "676e8a31.aad434",
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.  Parent provided resource rolled back\" />\n",
277         "comments": "",
278         "x": 1183.3534851074219,
279         "y": 3017.539581298828,
280         "z": "85f9bda0.40ea6",
281         "wires": []
282     },
283     {
284         "id": "15a9be7b.067652",
285         "type": "block",
286         "name": "block: atomic",
287         "xml": "<block atomic=\"true\">\n",
288         "atomic": "false",
289         "comments": "",
290         "outputs": 1,
291         "x": 1002.8189010620117,
292         "y": 709.7672686576843,
293         "z": "85f9bda0.40ea6",
294         "wires": [
295             [
296                 "e0174b9e.a92928"
297             ]
298         ]
299     },
300     {
301         "id": "e0174b9e.a92928",
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": 1213.6761436462402,
308         "y": 709.3863978385925,
309         "z": "85f9bda0.40ea6",
310         "wires": [
311             [
312                 "80cc2f81.87cf5"
313             ]
314         ]
315     },
316     {
317         "id": "80cc2f81.87cf5",
318         "type": "other",
319         "name": "outcome 1",
320         "xml": "<outcome value='1'>\n",
321         "comments": "",
322         "outputs": 1,
323         "x": 1403.009449005127,
324         "y": 709.3863558769226,
325         "z": "85f9bda0.40ea6",
326         "wires": [
327             [
328                 "940b96fe.4bc648"
329             ]
330         ]
331     },
332     {
333         "id": "200f56f8.1a568a",
334         "type": "comment",
335         "name": "Save consumed-allotted-resources to mdsal",
336         "info": "",
337         "comments": "",
338         "x": 586.2475738525391,
339         "y": 2164.386384487152,
340         "z": "85f9bda0.40ea6",
341         "wires": []
342     },
343     {
344         "id": "71cd75e1.a2e0ac",
345         "type": "comment",
346         "name": "GET contrail-route-allotted-resource from mdsal",
347         "info": "",
348         "comments": "",
349         "x": 605.8187942504883,
350         "y": 683.7672171592712,
351         "z": "85f9bda0.40ea6",
352         "wires": []
353     },
354     {
355         "id": "63a20e20.4ef0d",
356         "type": "set",
357         "name": "set ar-identifiers",
358         "xml": "<set>\n<parameter name='ar-identifiers.consuming-service-instance-id' value=\"`$contrail-route-topology-operation-input.service-information.service-instance-id` \" />\n<parameter name='ar-identifiers.parent-service-instance-id' value=\"`$contrail-route-topology-operation-input.allotted-resource-information.parent-service-instance-id` \" />\n<parameter name='ar-identifiers.allotted-resource-type' value=\"`$contrail-route-topology-operation-input.allotted-resource-information.allotted-resource-type` \" />\n<parameter name='ar-identifiers.allotted-resource-id' value=\"`$tmp.ar.allotted-resource-id` \" />\n\n",
359         "comments": "",
360         "x": 512.0570220947266,
361         "y": 825.2912397384644,
362         "z": "85f9bda0.40ea6",
363         "wires": []
364     },
365     {
366         "id": "7f798563.86347c",
367         "type": "comment",
368         "name": "Set allotted-resource-identifiers",
369         "info": "",
370         "comments": "",
371         "x": 552.6760330200195,
372         "y": 795.6720323562622,
373         "z": "85f9bda0.40ea6",
374         "wires": []
375     },
376     {
377         "id": "42e59bba.390174",
378         "type": "set",
379         "name": "set identifiers in overal structure",
380         "xml": "<set>\n<parameter name='ar.allotted-resource-data.contrail-route-topology.allotted-resource-identifiers.' \nvalue=\"`$ar-identifiers.`\" />\n\n\n",
381         "comments": "",
382         "x": 572.0568923950195,
383         "y": 1341.9103197157383,
384         "z": "85f9bda0.40ea6",
385         "wires": []
386     },
387     {
388         "id": "27c0b1cb.cbaf7e",
389         "type": "set",
390         "name": "set ecomp model information from input",
391         "xml": "<set>\n<parameter name='ar.allotted-resource-data.contrail-route-topology.onap-model-information.' \nvalue=\"`$contrail-route-topology-operation-input.allotted-resource-information.onap-model-information.`\" />\n\n\n",
392         "comments": "",
393         "x": 573.7235946655273,
394         "y": 909.243691444397,
395         "z": "85f9bda0.40ea6",
396         "wires": []
397     },
398     {
399         "id": "afb14d8.fa7e8b",
400         "type": "switchNode",
401         "name": "switch model-invariant-uuid is null",
402         "xml": "<switch test='$contrail-route-topology-operation-input.allotted-resource-information.onap-model-information.model-invariant-uuid'>\n",
403         "comments": "",
404         "outputs": 1,
405         "x": 559.9140548706055,
406         "y": 944.9578285217285,
407         "z": "85f9bda0.40ea6",
408         "wires": [
409             [
410                 "50ecfa4d.756b34"
411             ]
412         ]
413     },
414     {
415         "id": "50ecfa4d.756b34",
416         "type": "outcome",
417         "name": "outcome null",
418         "xml": "<outcome value=''>\n",
419         "comments": "",
420         "outputs": 1,
421         "x": 787.0569343566895,
422         "y": 946.3863458633423,
423         "z": "85f9bda0.40ea6",
424         "wires": [
425             [
426                 "57fddba0.eaaf14"
427             ]
428         ]
429     },
430     {
431         "id": "57fddba0.eaaf14",
432         "type": "set",
433         "name": "set model-invariant-uuid",
434         "xml": "<set>\n<parameter name='ar.allotted-resource-data.contrail-route-topology.onap-model-information.model-invariant-uuid' \nvalue=\"`$ar-model.invariant-uuid`\" />\n\n\n",
435         "comments": "",
436         "x": 988.4855079650879,
437         "y": 945.8148984909058,
438         "z": "85f9bda0.40ea6",
439         "wires": []
440     },
441     {
442         "id": "164735e2.5f4fea",
443         "type": "switchNode",
444         "name": "switch model-uuid is null",
445         "xml": "<switch test='$contrail-route-topology-operation-input.allotted-resource-information.onap-model-information.model-uuid'>\n",
446         "comments": "",
447         "outputs": 1,
448         "x": 531.3426513671875,
449         "y": 979.2435293197632,
450         "z": "85f9bda0.40ea6",
451         "wires": [
452             [
453                 "6a69d11e.04137"
454             ]
455         ]
456     },
457     {
458         "id": "6a69d11e.04137",
459         "type": "outcome",
460         "name": "outcome null",
461         "xml": "<outcome value=''>\n",
462         "comments": "",
463         "outputs": 1,
464         "x": 732.7712173461914,
465         "y": 979.8149509429932,
466         "z": "85f9bda0.40ea6",
467         "wires": [
468             [
469                 "a902eea0.7b187"
470             ]
471         ]
472     },
473     {
474         "id": "a902eea0.7b187",
475         "type": "set",
476         "name": "set model-uuid",
477         "xml": "<set>\n<parameter name='sar.allotted-resource-data.contrail-route-topology.onap-model-information.model-uuid' \nvalue=\"`$ar-model.uuid`\" />\n\n\n",
478         "comments": "",
479         "x": 925.6283760070801,
480         "y": 979.8148727416992,
481         "z": "85f9bda0.40ea6",
482         "wires": []
483     },
484     {
485         "id": "b8ee290b.0a5948",
486         "type": "switchNode",
487         "name": "switch model-version is null",
488         "xml": "<switch test='$contrail-route-topology-operation-input.allotted-resource-information.onap-model-information.model-version'>\n",
489         "comments": "",
490         "outputs": 1,
491         "x": 539.9140548706055,
492         "y": 1012.1006565093994,
493         "z": "85f9bda0.40ea6",
494         "wires": [
495             [
496                 "d20dbd99.c611a"
497             ]
498         ]
499     },
500     {
501         "id": "d20dbd99.c611a",
502         "type": "outcome",
503         "name": "outcome null",
504         "xml": "<outcome value=''>\n",
505         "comments": "",
506         "outputs": 1,
507         "x": 789.9140357971191,
508         "y": 1012.1006412506104,
509         "z": "85f9bda0.40ea6",
510         "wires": [
511             [
512                 "c9fcca5f.606248"
513             ]
514         ]
515     },
516     {
517         "id": "c9fcca5f.606248",
518         "type": "set",
519         "name": "set model-version",
520         "xml": "<set>\n<parameter name='ar.allotted-resource-data.contrail-route-topology.onap-model-information.model-version' \nvalue=\"`$ar-model.version`\" />\n\n\n",
521         "comments": "",
522         "x": 982.771183013916,
523         "y": 1012.1006307601929,
524         "z": "85f9bda0.40ea6",
525         "wires": []
526     },
527     {
528         "id": "ab194250.a66de",
529         "type": "switchNode",
530         "name": "switch ar-model.ecomp-generated-naming",
531         "xml": "<switch test='`$ar-model.ecomp-generated-naming`'>\n",
532         "comments": "",
533         "outputs": 1,
534         "x": 600.7236022949219,
535         "y": 1258.767216682434,
536         "z": "85f9bda0.40ea6",
537         "wires": [
538             [
539                 "8fb0ef65.8d523",
540                 "2eb9cf24.96b3d"
541             ]
542         ]
543     },
544     {
545         "id": "8fb0ef65.8d523",
546         "type": "other",
547         "name": "outcome Y",
548         "xml": "<outcome value='Y'>\n",
549         "comments": "",
550         "outputs": 1,
551         "x": 877.7236404418945,
552         "y": 1254.8624348640442,
553         "z": "85f9bda0.40ea6",
554         "wires": [
555             [
556                 "6c96ac26.e9a684"
557             ]
558         ]
559     },
560     {
561         "id": "6c96ac26.e9a684",
562         "type": "block",
563         "name": "block : atomic",
564         "xml": "<block atomic=\"true\">\n",
565         "atomic": "true",
566         "comments": "",
567         "outputs": 1,
568         "x": 1046.4736824035645,
569         "y": 1255.3624234199524,
570         "z": "85f9bda0.40ea6",
571         "wires": [
572             [
573                 "270e2a77.e35dc6"
574             ]
575         ]
576     },
577     {
578         "id": "2eb9cf24.96b3d",
579         "type": "other",
580         "name": "other",
581         "xml": "<outcome value='Other'>\n",
582         "comments": "",
583         "outputs": 1,
584         "x": 868.945930480957,
585         "y": 1287.8624348640442,
586         "z": "85f9bda0.40ea6",
587         "wires": [
588             [
589                 "9153ab18.136e08"
590             ]
591         ]
592     },
593     {
594         "id": "9153ab18.136e08",
595         "type": "returnFailure",
596         "name": "return failure",
597         "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 in allotted-resource-model data.  Ecomp-generated-naming should be true\" />\n\n",
598         "comments": "",
599         "x": 1046.945930480957,
600         "y": 1286.8624348640442,
601         "z": "85f9bda0.40ea6",
602         "wires": []
603     },
604     {
605         "id": "270e2a77.e35dc6",
606         "type": "switchNode",
607         "name": "switch ar-model.ecomp-generated-naming",
608         "xml": "<switch test='`$ar-model.naming-policy`'>\n",
609         "comments": "",
610         "outputs": 1,
611         "x": 1347.7235870361328,
612         "y": 1255.4338970184326,
613         "z": "85f9bda0.40ea6",
614         "wires": [
615             [
616                 "d120c979.8da8c8",
617                 "9b914bce.63aad8"
618             ]
619         ]
620     },
621     {
622         "id": "d120c979.8da8c8",
623         "type": "other",
624         "name": "outcome oam_network_policy",
625         "xml": "<outcome value='oam_network_policy'>\n",
626         "comments": "",
627         "outputs": 1,
628         "x": 1718.5814208984375,
629         "y": 1247.0119342803955,
630         "z": "85f9bda0.40ea6",
631         "wires": [
632             [
633                 "fcaca6b7.d32838"
634             ]
635         ]
636     },
637     {
638         "id": "9b914bce.63aad8",
639         "type": "other",
640         "name": "other",
641         "xml": "<outcome value='Other'>\n",
642         "comments": "",
643         "outputs": 1,
644         "x": 1643.342887878418,
645         "y": 1279.5291390419006,
646         "z": "85f9bda0.40ea6",
647         "wires": [
648             [
649                 "fcaca6b7.d32838"
650             ]
651         ]
652     },
653     {
654         "id": "b7235bb6.3a29f8",
655         "type": "set",
656         "name": "set ar_name",
657         "xml": "<set>\n<parameter name='tmp.ar-name' value='$TenantName_$CloudRegionID_$TenantNetworkRole_$LandingNetworkRole_policy_' />\n",
658         "comments": "",
659         "x": 2161.104751586914,
660         "y": 1235.100906342268,
661         "z": "85f9bda0.40ea6",
662         "wires": []
663     },
664     {
665         "id": "69b920ab.38aa1",
666         "type": "execute",
667         "name": "execute SliStringUtils - replace $TenantName",
668         "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n    <parameter name=\"source\" value=\"`$tmp.ar-name`\"/>\n    <parameter name=\"outputPath\" value=\"tmp.ar-name\"/>\n    <parameter name=\"target\" value=\"$TenantName\"/>\n    <parameter name=\"replacement\" value=\"`$tmp.ar.tenant-name`\"/>\n\n",
669         "comments": "",
670         "outputs": 1,
671         "x": 2261.248062133789,
672         "y": 1273.6247825324535,
673         "z": "85f9bda0.40ea6",
674         "wires": [
675             []
676         ]
677     },
678     {
679         "id": "c7259873.fe9de8",
680         "type": "execute",
681         "name": "execute SliStringUtils - replace LandingNetworkRole",
682         "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n    <parameter name=\"source\" value=\"`$tmp.ar-name`\"/>\n    <parameter name=\"outputPath\" value=\"tmp.ar-name\"/>\n    <parameter name=\"target\" value=\"$LandingNetworkRole\"/>\n    <parameter name=\"replacement\" value=\"`$contrail-route-topology-operation-input.contrail-route-request-input.dest-network.network-role`\"/>\n\n",
683         "comments": "",
684         "outputs": 1,
685         "x": 2269.581314086914,
686         "y": 1377.7676124572754,
687         "z": "85f9bda0.40ea6",
688         "wires": [
689             []
690         ]
691     },
692     {
693         "id": "fcaca6b7.d32838",
694         "type": "block",
695         "name": "block: atomic",
696         "xml": "<block atomic='true'>\n",
697         "atomic": "false",
698         "comments": "",
699         "outputs": 1,
700         "x": 1948.8666038513184,
701         "y": 1281.0053358078003,
702         "z": "85f9bda0.40ea6",
703         "wires": [
704             [
705                 "b7235bb6.3a29f8",
706                 "69b920ab.38aa1",
707                 "c7259873.fe9de8",
708                 "554b99be.4d79e8",
709                 "284f958b.7a5dfa",
710                 "2b71aba8.1693c4",
711                 "a2eac231.37f33",
712                 "eef331cb.9aea7",
713                 "bc1017e5.305348"
714             ]
715         ]
716     },
717     {
718         "id": "554b99be.4d79e8",
719         "type": "set",
720         "name": "set identifiers.allotted-resource-name",
721         "xml": "<set>\n<parameter name='ar-identifiers.allotted-resource-name' value='`$tmp.ar-name`' />\n",
722         "comments": "",
723         "x": 2225.771224975586,
724         "y": 1524.386548012495,
725         "z": "85f9bda0.40ea6",
726         "wires": []
727     },
728     {
729         "id": "7bbf3a4b.922ac4",
730         "type": "set",
731         "name": "set assignments in overal structure",
732         "xml": "<set>\n<parameter name='ar.allotted-resource-data.contrail-route-topology.contrail-route-assignments.' \nvalue=\"`$ar-assignments.`\" />\n\n\n",
733         "comments": "",
734         "x": 560.1999206542969,
735         "y": 2131.62486076355,
736         "z": "85f9bda0.40ea6",
737         "wires": []
738     },
739     {
740         "id": "f152aa61.54aba8",
741         "type": "set",
742         "name": "set ar-assignments",
743         "xml": "<set>\n<parameter name='ar-assignments.source-network.' value=\"`$contrail-route-topology-operation-input.contrail-route-request-input.source-network.` \" />\n<parameter name='ar-assignments.dest-network.' value=\"`$contrail-route-topology-operation-input.contrail-route-request-input.dest-network.` \" />\n<parameter name='ar-assignments.contrail-applied-service.' value=\"`$contrail-route-topology-operation-input.contrail-route-request-input.contrail-applied-service-info.` \" />\n\n\n",
744         "comments": "",
745         "x": 531.533073425293,
746         "y": 1378.3863615095615,
747         "z": "85f9bda0.40ea6",
748         "wires": []
749     },
750     {
751         "id": "287b8459.7da69c",
752         "type": "for",
753         "name": "for cidx..service-data.consumed-allotted-resources.consumed-allotted-resource[]",
754         "xml": "<for index='cidx' start='0' end='`$service-data.consumed-allotted-resources.consumed-allotted-resource_length`' >\n",
755         "comments": "",
756         "outputs": 1,
757         "x": 1465.8194580078125,
758         "y": 2239.2910742759705,
759         "z": "85f9bda0.40ea6",
760         "wires": [
761             [
762                 "51656950.e29468"
763             ]
764         ]
765     },
766     {
767         "id": "f4cedf71.423ad",
768         "type": "switchNode",
769         "name": "switch service-data.consumed-allotted-resources_length",
770         "xml": "<switch test='`$service-data.consumed-allotted-resources.consumed-allotted-resource_length`'>\n",
771         "comments": "",
772         "outputs": 1,
773         "x": 623.8189086914062,
774         "y": 2197.005136013031,
775         "z": "85f9bda0.40ea6",
776         "wires": [
777             [
778                 "64cf189.e7ea6e8",
779                 "d0e0868c.bcee08"
780             ]
781         ]
782     },
783     {
784         "id": "64cf189.e7ea6e8",
785         "type": "other",
786         "name": "outcome Null",
787         "xml": "<outcome value=''>\n",
788         "comments": "",
789         "outputs": 1,
790         "x": 945.9617919921875,
791         "y": 2199.862557888031,
792         "z": "85f9bda0.40ea6",
793         "wires": [
794             [
795                 "12a02d0f.ee3803"
796             ]
797         ]
798     },
799     {
800         "id": "d0e0868c.bcee08",
801         "type": "other",
802         "name": "other",
803         "xml": "<outcome value='Other'>\n",
804         "comments": "",
805         "outputs": 1,
806         "x": 933.9617958068848,
807         "y": 2242.8625593185425,
808         "z": "85f9bda0.40ea6",
809         "wires": [
810             [
811                 "d57ec577.c56ff8"
812             ]
813         ]
814     },
815     {
816         "id": "51656950.e29468",
817         "type": "switchNode",
818         "name": "switch allotted-resource-id",
819         "xml": "<switch test=\"`$service-data.consumed-allotted-resources.consumed-allotted-resource[$cidx].allotted-resource-id == $tmp.ar.allotted-resource-id`\">\n\n",
820         "comments": "",
821         "outputs": 1,
822         "x": 1895.9146881103516,
823         "y": 2241.3508400917053,
824         "z": "85f9bda0.40ea6",
825         "wires": [
826             [
827                 "f22e0aec.651d38"
828             ]
829         ]
830     },
831     {
832         "id": "f22e0aec.651d38",
833         "type": "outcomeTrue",
834         "name": "true",
835         "xml": "<outcome value='true'>\n",
836         "comments": "",
837         "outputs": 1,
838         "x": 2100.724655151367,
839         "y": 2241.8152928352356,
840         "z": "85f9bda0.40ea6",
841         "wires": [
842             [
843                 "716c0762.bdde98"
844             ]
845         ]
846     },
847     {
848         "id": "d57ec577.c56ff8",
849         "type": "block",
850         "name": "block : atomic",
851         "xml": "<block atomic=\"true\">",
852         "atomic": "true",
853         "outputs": 1,
854         "x": 1094.0888862609863,
855         "y": 2240.9885358810425,
856         "z": "85f9bda0.40ea6",
857         "wires": [
858             [
859                 "287b8459.7da69c",
860                 "264a617a.dba88e"
861             ]
862         ]
863     },
864     {
865         "id": "716c0762.bdde98",
866         "type": "block",
867         "name": "block : atomic",
868         "xml": "<block atomic=\"true\">",
869         "atomic": "true",
870         "outputs": 1,
871         "x": 2272.485607147217,
872         "y": 2241.672521352768,
873         "z": "85f9bda0.40ea6",
874         "wires": [
875             [
876                 "106b68e8.1a4037",
877                 "40e2c37b.f6506c"
878             ]
879         ]
880     },
881     {
882         "id": "12a02d0f.ee3803",
883         "type": "set",
884         "name": "set cidx",
885         "xml": "<set>\n<parameter name='tmp.cidx' value=\"`0`\" />\n<parameter name='service-data.consumed-allotted-resources.consumed-allotted-resource_length' value=\"1\" />\n\n\n",
886         "comments": "",
887         "x": 1104.8187637329102,
888         "y": 2199.576620578766,
889         "z": "85f9bda0.40ea6",
890         "wires": []
891     },
892     {
893         "id": "106b68e8.1a4037",
894         "type": "set",
895         "name": "set tmp.cidx and ctx.consumed-ar",
896         "xml": "<set>\n<parameter name='tmp.cidx' value='`$cidx`' />\n<parameter name='ctx.consumed-ar.' value='`$service-data.consumed-allotted-resources.consumed-allotted-resource[$cidx].`' />\n<parameter name='tmp.found-cidx' value='true' />",
897         "comments": "",
898         "x": 2518.342935562134,
899         "y": 2242.2439954280853,
900         "z": "85f9bda0.40ea6",
901         "wires": []
902     },
903     {
904         "id": "59b1d791.8e8d88",
905         "type": "set",
906         "name": "set consumed allotted resources",
907         "xml": "<set>\n<parameter name='service-data.consumed-allotted-resources.consumed-allotted-resource[$tmp.cidx].allotted-resource-id' value=\"`$tmp.ar.allotted-resource-id` \" />\n<parameter name='service-data.consumed-allotted-resources.consumed-allotted-resource[$tmp.cidx].allotted-resource-type' value=\"`$contrail-route-topology-operation-input.allotted-resource-information.allotted-resource-type` \" />\n<parameter name='service-data.consumed-allotted-resources.consumed-allotted-resource[$tmp.cidx].allotted-resource-pointer' value=\"`$tmp.ar.self-link` \" />\n<parameter name='service-data.consumed-allotted-resources.consumed-allotted-resource_length' value='`$tmp.cidx + 1`' />\n\n",
908         "comments": "",
909         "x": 547.6762428283691,
910         "y": 2287.5766220092773,
911         "z": "85f9bda0.40ea6",
912         "wires": []
913     },
914     {
915         "id": "d3ef150f.6b3e38",
916         "type": "comment",
917         "name": "Create urls for restapi",
918         "info": "",
919         "comments": "",
920         "x": 528.9616737365723,
921         "y": 369.6243658065796,
922         "z": "85f9bda0.40ea6",
923         "wires": []
924     },
925     {
926         "id": "6e65e9d5.9f0028",
927         "type": "set",
928         "name": "set ar-assignments",
929         "xml": "<set>\n<parameter name='ar-assignments.fq-name' value=\"`$tmp.fq-name` \" />\n\n\n\n",
930         "comments": "",
931         "x": 515.6761856079102,
932         "y": 2097.196541786194,
933         "z": "85f9bda0.40ea6",
934         "wires": []
935     },
936     {
937         "id": "d04be762.e31278",
938         "type": "comment",
939         "name": "Add AR to md-sal",
940         "info": "",
941         "comments": "",
942         "x": 501.2476272583008,
943         "y": 2944.4814081192017,
944         "z": "85f9bda0.40ea6",
945         "wires": []
946     },
947     {
948         "id": "ec3a453a.6b4d18",
949         "type": "execute",
950         "name": "execute getTime",
951         "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='setTime' >\n    <parameter name=\"outputPath\" value=\"tmp.current-time\" />\n\n",
952         "comments": "",
953         "outputs": 1,
954         "x": 502.24737548828125,
955         "y": 2322.481505393982,
956         "z": "85f9bda0.40ea6",
957         "wires": [
958             []
959         ]
960     },
961     {
962         "id": "940b96fe.4bc648",
963         "type": "returnFailure",
964         "name": "return failure",
965         "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: Existing contrail route allotted resource\" />\n    \n",
966         "comments": "",
967         "x": 1583.33740234375,
968         "y": 707.3334112167358,
969         "z": "85f9bda0.40ea6",
970         "wires": []
971     },
972     {
973         "id": "6ff8b1b0.c2e46",
974         "type": "other",
975         "name": "other",
976         "xml": "<outcome value='Other'>\n",
977         "comments": "",
978         "outputs": 1,
979         "x": 825.6707000732422,
980         "y": 746.3334527015686,
981         "z": "85f9bda0.40ea6",
982         "wires": [
983             [
984                 "10cca98f.b56976"
985             ]
986         ]
987     },
988     {
989         "id": "10cca98f.b56976",
990         "type": "block",
991         "name": "block: atomic",
992         "xml": "<block atomic=\"true\">\n",
993         "atomic": "false",
994         "comments": "",
995         "outputs": 1,
996         "x": 1005.6706504821777,
997         "y": 747.0000033378601,
998         "z": "85f9bda0.40ea6",
999         "wires": [
1000             []
1001         ]
1002     },
1003     {
1004         "id": "94029424.bac068",
1005         "type": "set",
1006         "name": "set ar data",
1007         "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",
1008         "comments": "",
1009         "x": 497.6706657409668,
1010         "y": 750.6666746139526,
1011         "z": "85f9bda0.40ea6",
1012         "wires": []
1013     },
1014     {
1015         "id": "284f958b.7a5dfa",
1016         "type": "execute",
1017         "name": "execute SliStringUtils - replace $CloudRegionID",
1018         "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n    <parameter name=\"source\" value=\"`$tmp.ar-name`\"/>\n    <parameter name=\"outputPath\" value=\"tmp.ar-name\"/>\n    <parameter name=\"target\" value=\"$CloudRegionID\"/>\n    <parameter name=\"replacement\" value=\"`$tmp.ar.cloud-region-id`\"/>\n\n",
1019         "comments": "",
1020         "outputs": 1,
1021         "x": 2270.337173461914,
1022         "y": 1307.6671228408813,
1023         "z": "85f9bda0.40ea6",
1024         "wires": [
1025             []
1026         ]
1027     },
1028     {
1029         "id": "2b71aba8.1693c4",
1030         "type": "execute",
1031         "name": "execute SliStringUtils - replace $TenantNetworkRole",
1032         "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n    <parameter name=\"source\" value=\"`$tmp.ar-name`\"/>\n    <parameter name=\"outputPath\" value=\"tmp.ar-name\"/>\n    <parameter name=\"target\" value=\"$TenantNetworkRole\"/>\n    <parameter name=\"replacement\" value=\"`$contrail-route-topology-operation-input.contrail-route-request-input.source-network.network-role`\"/>\n\n",
1033         "comments": "",
1034         "outputs": 1,
1035         "x": 2279.6703720092773,
1036         "y": 1341.6670265197754,
1037         "z": "85f9bda0.40ea6",
1038         "wires": [
1039             []
1040         ]
1041     },
1042     {
1043         "id": "eef331cb.9aea7",
1044         "type": "call",
1045         "name": "call GENERIC-RESOURCE-API:generate-unique-name",
1046         "xml": "<call module='GENERIC-RESOURCE-API' rpc='generate-unique-name' mode='sync' >\n",
1047         "comments": "",
1048         "outputs": 1,
1049         "x": 2284.3371658325195,
1050         "y": 1482.3336297273636,
1051         "z": "85f9bda0.40ea6",
1052         "wires": [
1053             [
1054                 "eaf8cb4c.514708",
1055                 "9f2060bc.fb7c6"
1056             ]
1057         ]
1058     },
1059     {
1060         "id": "eaf8cb4c.514708",
1061         "type": "failure",
1062         "name": "failure",
1063         "xml": "<outcome value='failure'>\n",
1064         "comments": "",
1065         "outputs": 1,
1066         "x": 2594.051689147949,
1067         "y": 1485.1907623708248,
1068         "z": "85f9bda0.40ea6",
1069         "wires": [
1070             [
1071                 "a4726a3d.558568"
1072             ]
1073         ]
1074     },
1075     {
1076         "id": "9f2060bc.fb7c6",
1077         "type": "success",
1078         "name": "success",
1079         "xml": "<outcome value='success'>\n",
1080         "comments": "",
1081         "outputs": 1,
1082         "x": 2599.3849334716797,
1083         "y": 1516.8574628829956,
1084         "z": "85f9bda0.40ea6",
1085         "wires": [
1086             [
1087                 "6a782334.6926ac"
1088             ]
1089         ]
1090     },
1091     {
1092         "id": "a2eac231.37f33",
1093         "type": "set",
1094         "name": "set variables for generating unique name",
1095         "xml": "<set>\n<parameter name='generate-unique-name-input.index-table-name' value='CONTRAIL_ROUTE_NAME_INDEX' />\n<parameter name='generate-unique-name-input.index-table-prefix-column' value='contrail_route_name_prefix' />\n<parameter name='generate-unique-name-input.name-table-type' value='CONTRAIL_ROUTE_INSTANCE' />\n<parameter name='generate-unique-name-input.prefix' value=\"`$tmp.ar-name`\" />\n<parameter name='generate-unique-name-input.index-length' value='2' />\n",
1096         "comments": "",
1097         "x": 2246.004165649414,
1098         "y": 1412.0003299415112,
1099         "z": "85f9bda0.40ea6",
1100         "wires": []
1101     },
1102     {
1103         "id": "6a782334.6926ac",
1104         "type": "set",
1105         "name": "set tmp.ar-name to generated name",
1106         "xml": "<set>\n<parameter name='tmp.ar-name' value='`$generate-unique-name-output.generated-name`' />\n",
1107         "comments": "",
1108         "x": 2846.575096130371,
1109         "y": 1517.333545833826,
1110         "z": "85f9bda0.40ea6",
1111         "wires": []
1112     },
1113     {
1114         "id": "a4726a3d.558568",
1115         "type": "returnFailure",
1116         "name": "return failure",
1117         "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=\"`$generate-unique-name-output.error-message`\" />\n",
1118         "comments": "",
1119         "x": 2767.9086112976074,
1120         "y": 1484.619276046753,
1121         "z": "85f9bda0.40ea6",
1122         "wires": []
1123     },
1124     {
1125         "id": "d7a09bb1.7dfc58",
1126         "type": "set",
1127         "name": "set fq_name",
1128         "xml": "<set>\n<parameter name='tmp.fq-name' value='$defaultDomain.$defaultProject.$sdncNetworkPolicy' />\n",
1129         "comments": "",
1130         "x": 515.3371810913086,
1131         "y": 1457.6666278839111,
1132         "z": "85f9bda0.40ea6",
1133         "wires": []
1134     },
1135     {
1136         "id": "846017e5.c13a98",
1137         "type": "execute",
1138         "name": "execute SliStringUtils - replace $defaultDomain",
1139         "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n    <parameter name=\"source\" value=\"`$tmp.fq-name`\"/>\n    <parameter name=\"outputPath\" value=\"tmp.fq-name\"/>\n    <parameter name=\"target\" value=\"$defaultDomain\"/>\n    <parameter name=\"replacement\" value=\"default-domain\"/>\n\n",
1140         "comments": "",
1141         "outputs": 1,
1142         "x": 622.6705322265625,
1143         "y": 1487.6666707992554,
1144         "z": "85f9bda0.40ea6",
1145         "wires": [
1146             []
1147         ]
1148     },
1149     {
1150         "id": "329e94ed.128dbc",
1151         "type": "execute",
1152         "name": "execute SliStringUtils - replace $defaultProject",
1153         "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n    <parameter name=\"source\" value=\"`$tmp.fq-name`\"/>\n    <parameter name=\"outputPath\" value=\"tmp.fq-name\"/>\n    <parameter name=\"target\" value=\"$defaultProject\"/>\n    <parameter name=\"replacement\" value=\"`$tmp.ar.tenant-name`\"/>\n\n",
1154         "comments": "",
1155         "outputs": 1,
1156         "x": 622.6705627441406,
1157         "y": 1521.000111579895,
1158         "z": "85f9bda0.40ea6",
1159         "wires": [
1160             []
1161         ]
1162     },
1163     {
1164         "id": "9537b55.6a49048",
1165         "type": "comment",
1166         "name": "generate fqname",
1167         "info": "",
1168         "comments": "",
1169         "x": 524.3372268676758,
1170         "y": 1430.9999341964722,
1171         "z": "85f9bda0.40ea6",
1172         "wires": []
1173     },
1174     {
1175         "id": "e081301c.9853a",
1176         "type": "execute",
1177         "name": "execute SliStringUtils - replace $sdncNetworkPolicy",
1178         "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n    <parameter name=\"source\" value=\"`$tmp.fq-name`\"/>\n    <parameter name=\"outputPath\" value=\"tmp.fq-name\"/>\n    <parameter name=\"target\" value=\"$sdncNetworkPolicy\"/>\n    <parameter name=\"replacement\" value=\"`$tmp.ar-name`\"/>\n\n",
1179         "comments": "",
1180         "outputs": 1,
1181         "x": 636.0038681030273,
1182         "y": 1554.3332662582397,
1183         "z": "85f9bda0.40ea6",
1184         "wires": [
1185             []
1186         ]
1187     },
1188     {
1189         "id": "fd2d75b0.6cb4a8",
1190         "type": "comment",
1191         "name": "Set onap-model-info",
1192         "info": "",
1193         "comments": "",
1194         "x": 521.1468734741211,
1195         "y": 875.5714731216431,
1196         "z": "85f9bda0.40ea6",
1197         "wires": []
1198     },
1199     {
1200         "id": "e99fb45b.d57118",
1201         "type": "update",
1202         "name": "update AAI allotted-resource",
1203         "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=\"description\" value=\"`$contrail-route-topology-operation-input.allotted-resource-information.allotted-resource-type`\" />\n\t<parameter name=\"selflink\" value=\"`$tmp.ar.self-link`\" />\n\t<parameter name=\"model-invariant-id\" value=\"`$ar-model.invariant-uuid`\" />\n\t<parameter name=\"model-version-id\" value=\"`$ar-model.uuid`\" />\n\t<parameter name=\"operational-status\" value=\"null\" />\n",
1204         "comments": "",
1205         "outputs": 1,
1206         "x": 535.8610954284668,
1207         "y": 2453.5715522766113,
1208         "z": "85f9bda0.40ea6",
1209         "wires": [
1210             [
1211                 "8acb12c2.f6f87",
1212                 "250daf6.713705"
1213             ]
1214         ]
1215     },
1216     {
1217         "id": "8acb12c2.f6f87",
1218         "type": "failure",
1219         "name": "failure",
1220         "xml": "<outcome value='failure'>\n",
1221         "comments": "",
1222         "outputs": 1,
1223         "x": 791.6230278015137,
1224         "y": 2430.809726715088,
1225         "z": "85f9bda0.40ea6",
1226         "wires": [
1227             [
1228                 "d00038bb.baddb8"
1229             ]
1230         ]
1231     },
1232     {
1233         "id": "250daf6.713705",
1234         "type": "failure",
1235         "name": "not-found",
1236         "xml": "<outcome value='not-found'>\n",
1237         "comments": "",
1238         "outputs": 1,
1239         "x": 796.9324569702148,
1240         "y": 2466.3811445236206,
1241         "z": "85f9bda0.40ea6",
1242         "wires": [
1243             [
1244                 "d00038bb.baddb8"
1245             ]
1246         ]
1247     },
1248     {
1249         "id": "d00038bb.baddb8",
1250         "type": "returnFailure",
1251         "name": "return failure",
1252         "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",
1253         "comments": "",
1254         "x": 1006.7182426452637,
1255         "y": 2432.428771018982,
1256         "z": "85f9bda0.40ea6",
1257         "wires": []
1258     },
1259     {
1260         "id": "bc1017e5.305348",
1261         "type": "record",
1262         "name": "record",
1263         "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=\"tmp.ar-name=\"/>\n<parameter name=\"field3\" value=\"`$tmp.ar-name`\"/>\n<parameter name=\"field4\" value=\"generate-unique-name-input.prefix\" />\n<parameter name=\"field5\" value=\"`$generate-unique-name-input.prefix`\" />",
1264         "comments": "",
1265         "outputs": 1,
1266         "x": 2137.2039642333984,
1267         "y": 1447.0004267394543,
1268         "z": "85f9bda0.40ea6",
1269         "wires": [
1270             []
1271         ]
1272     },
1273     {
1274         "id": "6d745a26.0c7354",
1275         "type": "switchNode",
1276         "name": "switch source-network.network-id",
1277         "xml": "<switch test='`$contrail-route-topology-operation-input.contrail-route-request-input.source-network.network-id`'>\n\n",
1278         "comments": "",
1279         "outputs": 1,
1280         "x": 568.6036758422852,
1281         "y": 1134.3336181640625,
1282         "z": "85f9bda0.40ea6",
1283         "wires": [
1284             [
1285                 "8af0f89a.27c2a8",
1286                 "26bb6725.34ecc8"
1287             ]
1288         ]
1289     },
1290     {
1291         "id": "8af0f89a.27c2a8",
1292         "type": "other",
1293         "name": "Other",
1294         "xml": "<outcome value='Other'>",
1295         "comments": "",
1296         "outputs": 1,
1297         "x": 919.6039352416992,
1298         "y": 1132.0001306533813,
1299         "z": "85f9bda0.40ea6",
1300         "wires": [
1301             [
1302                 "50061d1e.aa0f94"
1303             ]
1304         ]
1305     },
1306     {
1307         "id": "26bb6725.34ecc8",
1308         "type": "other",
1309         "name": "NULL",
1310         "xml": "<outcome value=''>",
1311         "comments": "",
1312         "outputs": 1,
1313         "x": 912.2707290649414,
1314         "y": 1093.9999256134033,
1315         "z": "85f9bda0.40ea6",
1316         "wires": [
1317             [
1318                 "ce51d766.4e8ee8"
1319             ]
1320         ]
1321     },
1322     {
1323         "id": "b8bb95ad.9a2df8",
1324         "type": "for",
1325         "name": "for nidx..service-data.networks.network[]",
1326         "xml": "<for index='nidx' start='0' end='`$service-data.networks.network_length`' >\n",
1327         "comments": "",
1328         "outputs": 1,
1329         "x": 2072.7152938842773,
1330         "y": 1130.4445645213127,
1331         "z": "85f9bda0.40ea6",
1332         "wires": [
1333             [
1334                 "87c290d7.ffb84"
1335             ]
1336         ]
1337     },
1338     {
1339         "id": "ffb63116.26d27",
1340         "type": "switchNode",
1341         "name": "switch service-data.networks.network_length",
1342         "xml": "<switch test='`$service-data.networks.network_length`'>\n",
1343         "comments": "",
1344         "outputs": 1,
1345         "x": 1308.429298400879,
1346         "y": 1131.0159149169922,
1347         "z": "85f9bda0.40ea6",
1348         "wires": [
1349             [
1350                 "87f83d80.0aba7",
1351                 "94644dd9.fb776"
1352             ]
1353         ]
1354     },
1355     {
1356         "id": "87f83d80.0aba7",
1357         "type": "other",
1358         "name": "outcome Null",
1359         "xml": "<outcome value=''>\n",
1360         "comments": "",
1361         "outputs": 1,
1362         "x": 1597.429298400879,
1363         "y": 1133.0159759521484,
1364         "z": "85f9bda0.40ea6",
1365         "wires": [
1366             [
1367                 "a14b778d.061fa8"
1368             ]
1369         ]
1370     },
1371     {
1372         "id": "94644dd9.fb776",
1373         "type": "other",
1374         "name": "other",
1375         "xml": "<outcome value='Other'>\n",
1376         "comments": "",
1377         "outputs": 1,
1378         "x": 1577.429298400879,
1379         "y": 1168.0159759521484,
1380         "z": "85f9bda0.40ea6",
1381         "wires": [
1382             [
1383                 "38fa1da0.7d4562"
1384             ]
1385         ]
1386     },
1387     {
1388         "id": "5c5cbd2b.585f54",
1389         "type": "switchNode",
1390         "name": "switch networkid found",
1391         "xml": "<switch test=\"`$service-data.networks.network[$nidx].network-id == $contrail-route-topology-operation-input.contrail-route-request-input.source-network.network-id`\">\n\n",
1392         "comments": "",
1393         "outputs": 1,
1394         "x": 2517.1439571380615,
1395         "y": 1092.694730758667,
1396         "z": "85f9bda0.40ea6",
1397         "wires": [
1398             [
1399                 "42cfffd1.f91eb"
1400             ]
1401         ]
1402     },
1403     {
1404         "id": "38fa1da0.7d4562",
1405         "type": "block",
1406         "name": "block : atomic",
1407         "xml": "<block atomic=\"true\">",
1408         "atomic": "true",
1409         "outputs": 1,
1410         "x": 1778.699317932129,
1411         "y": 1169.570541381836,
1412         "z": "85f9bda0.40ea6",
1413         "wires": [
1414             [
1415                 "b8bb95ad.9a2df8",
1416                 "e5b36746.9138e8",
1417                 "c3a2fe60.10d47"
1418             ]
1419         ]
1420     },
1421     {
1422         "id": "50061d1e.aa0f94",
1423         "type": "block",
1424         "name": "block",
1425         "xml": "<block>\n",
1426         "atomic": "false",
1427         "comments": "",
1428         "outputs": 1,
1429         "x": 1050.7151184082031,
1430         "y": 1131.444492340088,
1431         "z": "85f9bda0.40ea6",
1432         "wires": [
1433             [
1434                 "ffb63116.26d27"
1435             ]
1436         ]
1437     },
1438     {
1439         "id": "ce51d766.4e8ee8",
1440         "type": "returnFailure",
1441         "name": "return failure",
1442         "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",
1443         "comments": "",
1444         "x": 1066.4041366577148,
1445         "y": 1093.0001208782196,
1446         "z": "85f9bda0.40ea6",
1447         "wires": []
1448     },
1449     {
1450         "id": "a14b778d.061fa8",
1451         "type": "returnFailure",
1452         "name": "return failure",
1453         "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",
1454         "comments": "",
1455         "x": 1787.2040939331055,
1456         "y": 1131.0001277923584,
1457         "z": "85f9bda0.40ea6",
1458         "wires": []
1459     },
1460     {
1461         "id": "8cb14e0e.cb709",
1462         "type": "set",
1463         "name": "set tmp vals",
1464         "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<parameter name='source-network-found' value='true' />\n\n",
1465         "comments": "",
1466         "x": 3026.2041454315186,
1467         "y": 1072.0001201629639,
1468         "z": "85f9bda0.40ea6",
1469         "wires": []
1470     },
1471     {
1472         "id": "c64ef011.65ec9",
1473         "type": "block",
1474         "name": "block",
1475         "xml": "<block>\n",
1476         "atomic": "false",
1477         "comments": "",
1478         "outputs": 1,
1479         "x": 2836.2705879211426,
1480         "y": 1085.0001316070557,
1481         "z": "85f9bda0.40ea6",
1482         "wires": [
1483             [
1484                 "8cb14e0e.cb709",
1485                 "ab273234.3352d"
1486             ]
1487         ]
1488     },
1489     {
1490         "id": "42cfffd1.f91eb",
1491         "type": "outcomeTrue",
1492         "name": "true",
1493         "xml": "<outcome value='true'>\n",
1494         "comments": "",
1495         "outputs": 1,
1496         "x": 2686.8041133880615,
1497         "y": 1091.0000038146973,
1498         "z": "85f9bda0.40ea6",
1499         "wires": [
1500             [
1501                 "c64ef011.65ec9"
1502             ]
1503         ]
1504     },
1505     {
1506         "id": "d6eb6250.74fe",
1507         "type": "returnFailure",
1508         "name": "return failure",
1509         "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",
1510         "comments": "",
1511         "x": 2401.6038246154785,
1512         "y": 1165.0001640319824,
1513         "z": "85f9bda0.40ea6",
1514         "wires": []
1515     },
1516     {
1517         "id": "c2621055.c2754",
1518         "type": "execute",
1519         "name": "execute RestApiCallNode - Get Parent service network",
1520         "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n    <parameter name='restapiUrl' value='`$prop.controller.url + $tmp.ar-parentnetwork-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=\"parent-net\" />\n\n",
1521         "comments": "",
1522         "outputs": 1,
1523         "x": 1516.0039291381836,
1524         "y": 1683.0001859664917,
1525         "z": "85f9bda0.40ea6",
1526         "wires": [
1527             [
1528                 "f806e9f1.0a0b88",
1529                 "47f327d7.b4ce88"
1530             ]
1531         ]
1532     },
1533     {
1534         "id": "f806e9f1.0a0b88",
1535         "type": "success",
1536         "name": "success",
1537         "xml": "<outcome value='success'>\n",
1538         "comments": "",
1539         "outputs": 1,
1540         "x": 1825.2999839782715,
1541         "y": 1683.8080487251282,
1542         "z": "85f9bda0.40ea6",
1543         "wires": [
1544             [
1545                 "788c3f86.e2829"
1546             ]
1547         ]
1548     },
1549     {
1550         "id": "788c3f86.e2829",
1551         "type": "block",
1552         "name": "block: atomic",
1553         "xml": "<block atomic=\"true\">\n",
1554         "atomic": "false",
1555         "comments": "",
1556         "outputs": 1,
1557         "x": 1994.2999877929688,
1558         "y": 1682.3079495429993,
1559         "z": "85f9bda0.40ea6",
1560         "wires": [
1561             [
1562                 "a8358589.e721f8"
1563             ]
1564         ]
1565     },
1566     {
1567         "id": "a8358589.e721f8",
1568         "type": "switchNode",
1569         "name": "switch network length",
1570         "xml": "<switch test='`$parent-net.networks.network_length`'>\n",
1571         "comments": "",
1572         "outputs": 1,
1573         "x": 2205.1572303771973,
1574         "y": 1681.9270787239075,
1575         "z": "85f9bda0.40ea6",
1576         "wires": [
1577             [
1578                 "7e646c9f.895f44",
1579                 "b4b35449.efef08"
1580             ]
1581         ]
1582     },
1583     {
1584         "id": "7e646c9f.895f44",
1585         "type": "other",
1586         "name": "outcome 1",
1587         "xml": "<outcome value='1'>\n",
1588         "comments": "",
1589         "outputs": 1,
1590         "x": 2414.4905014038086,
1591         "y": 1681.9269938468933,
1592         "z": "85f9bda0.40ea6",
1593         "wires": [
1594             [
1595                 "7c7775ff.623fcc"
1596             ]
1597         ]
1598     },
1599     {
1600         "id": "6e8d9ed9.3a19",
1601         "type": "comment",
1602         "name": "GET dest network from mdsal",
1603         "info": "",
1604         "comments": "",
1605         "x": 1461.299903869629,
1606         "y": 1624.307852268219,
1607         "z": "85f9bda0.40ea6",
1608         "wires": []
1609     },
1610     {
1611         "id": "47f327d7.b4ce88",
1612         "type": "other",
1613         "name": "other",
1614         "xml": "<outcome value='Other'>\n",
1615         "comments": "",
1616         "outputs": 1,
1617         "x": 1817.1517868041992,
1618         "y": 1718.8741335868835,
1619         "z": "85f9bda0.40ea6",
1620         "wires": [
1621             [
1622                 "2c4366b0.10342a"
1623             ]
1624         ]
1625     },
1626     {
1627         "id": "2c4366b0.10342a",
1628         "type": "block",
1629         "name": "block: atomic",
1630         "xml": "<block atomic=\"true\">\n",
1631         "atomic": "false",
1632         "comments": "",
1633         "outputs": 1,
1634         "x": 1997.1517372131348,
1635         "y": 1719.540684223175,
1636         "z": "85f9bda0.40ea6",
1637         "wires": [
1638             [
1639                 "a5487cce.5643f"
1640             ]
1641         ]
1642     },
1643     {
1644         "id": "4888c4bf.132c3c",
1645         "type": "execute",
1646         "name": "generate parent-network url",
1647         "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n    <parameter name=\"source\" value=\"`$prop.restapi.network`\"/>\n    <parameter name=\"outputPath\" value=\"tmp.ar-parentnetwork-url\"/>\n    <parameter name=\"target\" value=\"{service-instance-id}\"/>\n    <parameter name=\"replacement\" value=\"`$tmp.ar.parent-service-instance-id`\"/>\n",
1648         "comments": "",
1649         "outputs": 1,
1650         "x": 552.0040283203125,
1651         "y": 429.0000228881836,
1652         "z": "85f9bda0.40ea6",
1653         "wires": [
1654             []
1655         ]
1656     },
1657     {
1658         "id": "a5487cce.5643f",
1659         "type": "returnFailure",
1660         "name": "return failure",
1661         "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: No existing parent netorks\" />\n    \n",
1662         "comments": "",
1663         "x": 2182.003860473633,
1664         "y": 1721.0001629590988,
1665         "z": "85f9bda0.40ea6",
1666         "wires": []
1667     },
1668     {
1669         "id": "b4b35449.efef08",
1670         "type": "other",
1671         "name": "Other",
1672         "xml": "<outcome value='Other'>\n",
1673         "comments": "",
1674         "outputs": 1,
1675         "x": 2416.003734588623,
1676         "y": 1717.0000939369202,
1677         "z": "85f9bda0.40ea6",
1678         "wires": [
1679             [
1680                 "32b9b839.5a1048"
1681             ]
1682         ]
1683     },
1684     {
1685         "id": "32b9b839.5a1048",
1686         "type": "returnFailure",
1687         "name": "return failure",
1688         "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: Network id not found.  Parent Service should only have one network\" />\n    \n",
1689         "comments": "",
1690         "x": 2582.3317108154297,
1691         "y": 1716.9472088813782,
1692         "z": "85f9bda0.40ea6",
1693         "wires": []
1694     },
1695     {
1696         "id": "7c7775ff.623fcc",
1697         "type": "set",
1698         "name": "set dest network id",
1699         "xml": "<set>\n<parameter name='ar-assignments.dest-network.network-id' value=\"`$parent-net.networks.network[0].network-id` \" />\n\n\n\n",
1700         "comments": "",
1701         "x": 2592.3535537719727,
1702         "y": 1683.0001463890076,
1703         "z": "85f9bda0.40ea6",
1704         "wires": []
1705     },
1706     {
1707         "id": "216c7c53.3511e4",
1708         "type": "comment",
1709         "name": "Find tenant/cloud region from source network",
1710         "info": "",
1711         "comments": "",
1712         "x": 598.0039672851562,
1713         "y": 1099.000024318695,
1714         "z": "85f9bda0.40ea6",
1715         "wires": []
1716     },
1717     {
1718         "id": "e2239d78.dc34",
1719         "type": "execute",
1720         "name": "generate contrail-applied-service url",
1721         "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n    <parameter name=\"source\" value=\"`$prop.restapi.vnf`\"/>\n    <parameter name=\"outputPath\" value=\"tmp.ar-contrailappliedsvc-url\"/>\n    <parameter name=\"target\" value=\"{service-instance-id}\"/>\n    <parameter name=\"replacement\" value=\"`$tmp.ar.contrail-applied-service-instance-id`\"/>\n",
1722         "comments": "",
1723         "outputs": 1,
1724         "x": 579.204029083252,
1725         "y": 459.0000247955322,
1726         "z": "85f9bda0.40ea6",
1727         "wires": [
1728             []
1729         ]
1730     },
1731     {
1732         "id": "5ddff342.e4df3c",
1733         "type": "execute",
1734         "name": "execute RestApiCallNode - Get vnf",
1735         "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n    <parameter name='restapiUrl' value='`$prop.controller.url + $tmp.ar-contrailappliedsvc-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=\"vnf\" />\n\n",
1736         "comments": "",
1737         "outputs": 1,
1738         "x": 565.2039566040039,
1739         "y": 1814.6668605804443,
1740         "z": "85f9bda0.40ea6",
1741         "wires": [
1742             [
1743                 "ef846094.0169c",
1744                 "33a1c4a3.2f55bc"
1745             ]
1746         ]
1747     },
1748     {
1749         "id": "ef846094.0169c",
1750         "type": "success",
1751         "name": "success",
1752         "xml": "<outcome value='success'>\n",
1753         "comments": "",
1754         "outputs": 1,
1755         "x": 944.5000762939453,
1756         "y": 1807.8080350160599,
1757         "z": "85f9bda0.40ea6",
1758         "wires": [
1759             [
1760                 "2dafc941.bd65e6"
1761             ]
1762         ]
1763     },
1764     {
1765         "id": "2dafc941.bd65e6",
1766         "type": "block",
1767         "name": "block: atomic",
1768         "xml": "<block atomic=\"true\">\n",
1769         "atomic": "false",
1770         "comments": "",
1771         "outputs": 1,
1772         "x": 1113.5000801086426,
1773         "y": 1806.307935833931,
1774         "z": "85f9bda0.40ea6",
1775         "wires": [
1776             [
1777                 "441a5438.6dce1c"
1778             ]
1779         ]
1780     },
1781     {
1782         "id": "441a5438.6dce1c",
1783         "type": "switchNode",
1784         "name": "switch vnf length",
1785         "xml": "<switch test='`$vnf.vnfs.vnf_length`'>\n",
1786         "comments": "",
1787         "outputs": 1,
1788         "x": 1324.357322692871,
1789         "y": 1805.9270650148392,
1790         "z": "85f9bda0.40ea6",
1791         "wires": [
1792             [
1793                 "55c34485.1a3a6c",
1794                 "97a3c7a3.cd7a68"
1795             ]
1796         ]
1797     },
1798     {
1799         "id": "55c34485.1a3a6c",
1800         "type": "other",
1801         "name": "outcome 1",
1802         "xml": "<outcome value='1'>\n",
1803         "comments": "",
1804         "outputs": 1,
1805         "x": 1515.6908149719238,
1806         "y": 1799.9270482063293,
1807         "z": "85f9bda0.40ea6",
1808         "wires": [
1809             [
1810                 "3f9b4d33.6afa52"
1811             ]
1812         ]
1813     },
1814     {
1815         "id": "1dfdd5e8.68e2ca",
1816         "type": "comment",
1817         "name": "GET contrail vnf for contrail applied service  from mdsal",
1818         "info": "",
1819         "comments": "",
1820         "x": 627.8333969116211,
1821         "y": 1776.6413373947144,
1822         "z": "85f9bda0.40ea6",
1823         "wires": []
1824     },
1825     {
1826         "id": "33a1c4a3.2f55bc",
1827         "type": "other",
1828         "name": "other",
1829         "xml": "<outcome value='Other'>\n",
1830         "comments": "",
1831         "outputs": 1,
1832         "x": 936.351879119873,
1833         "y": 1842.8741198778152,
1834         "z": "85f9bda0.40ea6",
1835         "wires": [
1836             [
1837                 "e82fcfa1.60da4"
1838             ]
1839         ]
1840     },
1841     {
1842         "id": "e82fcfa1.60da4",
1843         "type": "block",
1844         "name": "block: atomic",
1845         "xml": "<block atomic=\"true\">\n",
1846         "atomic": "false",
1847         "comments": "",
1848         "outputs": 1,
1849         "x": 1116.3518295288086,
1850         "y": 1843.5406705141068,
1851         "z": "85f9bda0.40ea6",
1852         "wires": [
1853             [
1854                 "b3f3680a.ed3e28"
1855             ]
1856         ]
1857     },
1858     {
1859         "id": "b3f3680a.ed3e28",
1860         "type": "returnFailure",
1861         "name": "return failure",
1862         "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: No existing contrail applied service vnfs\" />\n    \n",
1863         "comments": "",
1864         "x": 1301.2039527893066,
1865         "y": 1845.0001492500305,
1866         "z": "85f9bda0.40ea6",
1867         "wires": []
1868     },
1869     {
1870         "id": "97a3c7a3.cd7a68",
1871         "type": "other",
1872         "name": "Other",
1873         "xml": "<outcome value='Other'>\n",
1874         "comments": "",
1875         "outputs": 1,
1876         "x": 1517.2040481567383,
1877         "y": 1835.0001482963562,
1878         "z": "85f9bda0.40ea6",
1879         "wires": [
1880             [
1881                 "9094a451.613fc8"
1882             ]
1883         ]
1884     },
1885     {
1886         "id": "9094a451.613fc8",
1887         "type": "returnFailure",
1888         "name": "return failure",
1889         "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: vnf id not found.  Contrail applied service should only have one vnf\" />\n    \n",
1890         "comments": "",
1891         "x": 1681.5319519042969,
1892         "y": 1834.94731092453,
1893         "z": "85f9bda0.40ea6",
1894         "wires": []
1895     },
1896     {
1897         "id": "3f9b4d33.6afa52",
1898         "type": "set",
1899         "name": "set applied service vnf id",
1900         "xml": "<set>\n<parameter name='ar-assignments.contrail-applied-service.vnf-id' value=\"`$vnf.vnfs.vnf[0].vnf-id` \" />\n\n\n\n",
1901         "comments": "",
1902         "x": 1726.8040199279785,
1903         "y": 1799.0002388954163,
1904         "z": "85f9bda0.40ea6",
1905         "wires": []
1906     },
1907     {
1908         "id": "4affa6c3.5650c8",
1909         "type": "comment",
1910         "name": "Generate contrail route name",
1911         "info": "",
1912         "comments": "",
1913         "x": 550.0039520263672,
1914         "y": 1223.0000276565552,
1915         "z": "85f9bda0.40ea6",
1916         "wires": []
1917     },
1918     {
1919         "id": "241b0a1a.040746",
1920         "type": "comment",
1921         "name": "GET contrail fqdn from vnf/vf-module",
1922         "info": "",
1923         "comments": "",
1924         "x": 580.3373031616211,
1925         "y": 1917.6669092178345,
1926         "z": "85f9bda0.40ea6",
1927         "wires": []
1928     },
1929     {
1930         "id": "5f1ba758.495008",
1931         "type": "switchNode",
1932         "name": "switch contrail-route-request-input.constrail-applied-service-info.contrail-fqdn",
1933         "xml": "<switch test='`$contrail-route-topology-operation-input.contrail-route-request-input.contrail-applied-service-info.contrail-fqdn`'>\n",
1934         "comments": "",
1935         "outputs": 1,
1936         "x": 686.0040054321289,
1937         "y": 1959.0002427101135,
1938         "z": "85f9bda0.40ea6",
1939         "wires": [
1940             [
1941                 "e8efa7a8.736b38",
1942                 "b22d9dd3.f64d8"
1943             ]
1944         ]
1945     },
1946     {
1947         "id": "e8efa7a8.736b38",
1948         "type": "other",
1949         "name": "outcome Null",
1950         "xml": "<outcome value=''>\n",
1951         "comments": "",
1952         "outputs": 1,
1953         "x": 1078.0039710998535,
1954         "y": 1949.0000647306442,
1955         "z": "85f9bda0.40ea6",
1956         "wires": [
1957             [
1958                 "b254b3ef.ebc57"
1959             ]
1960         ]
1961     },
1962     {
1963         "id": "b22d9dd3.f64d8",
1964         "type": "other",
1965         "name": "other",
1966         "xml": "<outcome value='Other'>\n",
1967         "comments": "",
1968         "outputs": 1,
1969         "x": 1061.0038986206055,
1970         "y": 1986.0000519752502,
1971         "z": "85f9bda0.40ea6",
1972         "wires": [
1973             [
1974                 "a058e74f.55aa98"
1975             ]
1976         ]
1977     },
1978     {
1979         "id": "a058e74f.55aa98",
1980         "type": "set",
1981         "name": "set applied service fqdn",
1982         "xml": "<set>\n<parameter name='ar-assignments.contrail-applied-service.contrail-fqdn' value=\"`$contrail-route-topology-operation-input.contrail-route-request-input.contrail-applied-service-info.contrail-fqdn` \" />\n\n\n\n",
1983         "comments": "",
1984         "x": 1252.0039138793945,
1985         "y": 1986.0000859498978,
1986         "z": "85f9bda0.40ea6",
1987         "wires": []
1988     },
1989     {
1990         "id": "b254b3ef.ebc57",
1991         "type": "block",
1992         "name": "block: atomic",
1993         "xml": "<block atomic=\"true\">\n",
1994         "atomic": "false",
1995         "comments": "",
1996         "outputs": 1,
1997         "x": 1264.0039749145508,
1998         "y": 1949.00006377697,
1999         "z": "85f9bda0.40ea6",
2000         "wires": [
2001             [
2002                 "a0bebd1.5d35d4",
2003                 "5f68ea4a.6a1ad4"
2004             ]
2005         ]
2006     },
2007     {
2008         "id": "9ed05f14.02b3a",
2009         "type": "comment",
2010         "name": "GET dest network from parent service",
2011         "info": "",
2012         "comments": "",
2013         "x": 570.670524597168,
2014         "y": 1655.0000686645508,
2015         "z": "85f9bda0.40ea6",
2016         "wires": []
2017     },
2018     {
2019         "id": "3b7ee06a.f8b51",
2020         "type": "switchNode",
2021         "name": "switch contrail-route-topology-operation-input.contrail-route-request-input.dest-network.network-id",
2022         "xml": "<switch test='`$contrail-route-topology-operation-input.contrail-route-request-input.dest-network.network-id`'>\n",
2023         "comments": "",
2024         "outputs": 1,
2025         "x": 762.0039825439453,
2026         "y": 1683.000023841858,
2027         "z": "85f9bda0.40ea6",
2028         "wires": [
2029             [
2030                 "8ecd2ff2.b9e9a",
2031                 "cc62d74c.c1a2e8"
2032             ]
2033         ]
2034     },
2035     {
2036         "id": "8ecd2ff2.b9e9a",
2037         "type": "other",
2038         "name": "outcome Null",
2039         "xml": "<outcome value=''>\n",
2040         "comments": "",
2041         "outputs": 1,
2042         "x": 1204.0038833618164,
2043         "y": 1683.0000393390656,
2044         "z": "85f9bda0.40ea6",
2045         "wires": [
2046             [
2047                 "c2621055.c2754"
2048             ]
2049         ]
2050     },
2051     {
2052         "id": "cc62d74c.c1a2e8",
2053         "type": "other",
2054         "name": "other",
2055         "xml": "<outcome value='Other'>\n",
2056         "comments": "",
2057         "outputs": 1,
2058         "x": 1186.0038871765137,
2059         "y": 1716.0000400543213,
2060         "z": "85f9bda0.40ea6",
2061         "wires": [
2062             [
2063                 "84dd6a6a.65bf68"
2064             ]
2065         ]
2066     },
2067     {
2068         "id": "84dd6a6a.65bf68",
2069         "type": "set",
2070         "name": "set dest network id",
2071         "xml": "<set>\n<parameter name='ar-assignments.dest-network.network-id' value=\"`$contrail-route-topology-operation-input.contrail-route-request-input.dest-network.network-id` \" />\n\n\n\n",
2072         "comments": "",
2073         "x": 1378.003849029541,
2074         "y": 1718.9999952316284,
2075         "z": "85f9bda0.40ea6",
2076         "wires": []
2077     },
2078     {
2079         "id": "7b646249.f51a2c",
2080         "type": "comment",
2081         "name": "GET contrail fqdn via AAI",
2082         "info": "",
2083         "comments": "",
2084         "x": 1517.2039642333984,
2085         "y": 1912.9999675750732,
2086         "z": "85f9bda0.40ea6",
2087         "wires": []
2088     },
2089     {
2090         "id": "a0bebd1.5d35d4",
2091         "type": "get-resource",
2092         "name": "get-resource generic-vnf",
2093         "xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\t\tresource=\"generic-vnf\" \n\t\tkey=\"generic-vnf.vnf-id = $ar-assignments.contrail-applied-service.vnf-id\"\n        pfx='aai.vnf' local-only='false' >\n        \n\n\n",
2094         "comments": "",
2095         "outputs": 1,
2096         "x": 1527.2039642333984,
2097         "y": 1948.9999685287476,
2098         "z": "85f9bda0.40ea6",
2099         "wires": [
2100             [
2101                 "d808221.d92d0e",
2102                 "5ef4a02a.42306"
2103             ]
2104         ]
2105     },
2106     {
2107         "id": "5ef4a02a.42306",
2108         "type": "failure",
2109         "name": "failure",
2110         "xml": "<outcome value='failure'>\n",
2111         "comments": "",
2112         "outputs": 1,
2113         "x": 1729.8435707092285,
2114         "y": 1977.8053374290466,
2115         "z": "85f9bda0.40ea6",
2116         "wires": [
2117             [
2118                 "82e0cc2c.ce754"
2119             ]
2120         ]
2121     },
2122     {
2123         "id": "82e0cc2c.ce754",
2124         "type": "returnFailure",
2125         "name": "return failure",
2126         "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 retrieving vnf from AAI\" />\n",
2127         "comments": "",
2128         "x": 1905.7957954406738,
2129         "y": 1981.1386713981628,
2130         "z": "85f9bda0.40ea6",
2131         "wires": []
2132     },
2133     {
2134         "id": "d808221.d92d0e",
2135         "type": "not-found",
2136         "name": "not-found",
2137         "xml": "<outcome value='not-found'>\n",
2138         "comments": "",
2139         "outputs": 1,
2140         "x": 1732.3433952331543,
2141         "y": 1947.8054151535034,
2142         "z": "85f9bda0.40ea6",
2143         "wires": [
2144             [
2145                 "8d4eb08.378ca5"
2146             ]
2147         ]
2148     },
2149     {
2150         "id": "8d4eb08.378ca5",
2151         "type": "returnFailure",
2152         "name": "return failure",
2153         "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=\"Vnf not found in AAI\" />\n",
2154         "comments": "",
2155         "x": 1900.121280670166,
2156         "y": 1947.1108450889587,
2157         "z": "85f9bda0.40ea6",
2158         "wires": []
2159     },
2160     {
2161         "id": "840da30b.94703",
2162         "type": "comment",
2163         "name": "Loop through vf modeuls looking for contrail fqdn",
2164         "info": "",
2165         "comments": "",
2166         "x": 1600.8706130981445,
2167         "y": 2017.3335008621216,
2168         "z": "85f9bda0.40ea6",
2169         "wires": []
2170     },
2171     {
2172         "id": "4c3a7db3.5cd594",
2173         "type": "comment",
2174         "name": "Update AAI AR",
2175         "info": "",
2176         "comments": "",
2177         "x": 499.20395278930664,
2178         "y": 2416.9999961853027,
2179         "z": "85f9bda0.40ea6",
2180         "wires": []
2181     },
2182     {
2183         "id": "5fefa6f9.3a77d8",
2184         "type": "execute",
2185         "name": "execute RestApiCallNode - Update parent provided service AR",
2186         "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n    <parameter name='templateFileName' value=\"`$prop.restapi.templateDir + '/' + $prop.restapi.parentsvc.templatefile`\" />\n    <parameter name='restapiUrl' value='`$prop.controller.url + $tmp.parent-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=\"parent\" />\n\n",
2187         "comments": "",
2188         "outputs": 1,
2189         "x": 641.2040672302246,
2190         "y": 2549.0002632141113,
2191         "z": "85f9bda0.40ea6",
2192         "wires": [
2193             [
2194                 "4b453088.13e21",
2195                 "db902bd9.e2c338",
2196                 "e615d74a.c6fc18"
2197             ]
2198         ]
2199     },
2200     {
2201         "id": "4b453088.13e21",
2202         "type": "not-found",
2203         "name": "not-found",
2204         "xml": "<outcome value='not-found'>\n",
2205         "comments": "",
2206         "outputs": 1,
2207         "x": 963.5120849609375,
2208         "y": 2593.998480796814,
2209         "z": "85f9bda0.40ea6",
2210         "wires": [
2211             [
2212                 "b694161e.b1bf88"
2213             ]
2214         ]
2215     },
2216     {
2217         "id": "db902bd9.e2c338",
2218         "type": "failure",
2219         "name": "failure",
2220         "xml": "<outcome value='failure'>\n",
2221         "comments": "",
2222         "outputs": 1,
2223         "x": 954.512134552002,
2224         "y": 2562.4985065460205,
2225         "z": "85f9bda0.40ea6",
2226         "wires": [
2227             [
2228                 "b694161e.b1bf88"
2229             ]
2230         ]
2231     },
2232     {
2233         "id": "e615d74a.c6fc18",
2234         "type": "success",
2235         "name": "success",
2236         "xml": "<outcome value='success'>\n",
2237         "comments": "",
2238         "outputs": 1,
2239         "x": 958.2621726989746,
2240         "y": 2532.855611421168,
2241         "z": "85f9bda0.40ea6",
2242         "wires": [
2243             [
2244                 "115a2a7e.d97726"
2245             ]
2246         ]
2247     },
2248     {
2249         "id": "b694161e.b1bf88",
2250         "type": "returnFailure",
2251         "name": "return failure",
2252         "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",
2253         "comments": "",
2254         "x": 1124.2621726989746,
2255         "y": 2563.2485303878784,
2256         "z": "85f9bda0.40ea6",
2257         "wires": []
2258     },
2259     {
2260         "id": "115a2a7e.d97726",
2261         "type": "block",
2262         "name": "block",
2263         "xml": "<block>\n",
2264         "atomic": "false",
2265         "comments": "",
2266         "outputs": 1,
2267         "x": 1099.918140411377,
2268         "y": 2529.047780610621,
2269         "z": "85f9bda0.40ea6",
2270         "wires": [
2271             []
2272         ]
2273     },
2274     {
2275         "id": "74edca12.815734",
2276         "type": "comment",
2277         "name": "Put the parent allotted resource in mdsal",
2278         "info": "",
2279         "comments": "",
2280         "x": 568.2040328979492,
2281         "y": 2517.0000886917114,
2282         "z": "85f9bda0.40ea6",
2283         "wires": []
2284     },
2285     {
2286         "id": "264a617a.dba88e",
2287         "type": "switchNode",
2288         "name": "switch tmp.found-cidx",
2289         "xml": "<switch test='`$tmp.found-cidx`'>\n",
2290         "comments": "",
2291         "outputs": 1,
2292         "x": 1283.2039337158203,
2293         "y": 2273.0000586509705,
2294         "z": "85f9bda0.40ea6",
2295         "wires": [
2296             [
2297                 "93572ecb.afdae"
2298             ]
2299         ]
2300     },
2301     {
2302         "id": "93572ecb.afdae",
2303         "type": "outcomeTrue",
2304         "name": "false",
2305         "xml": "<outcome value='false'>\n",
2306         "comments": "",
2307         "outputs": 1,
2308         "x": 1473.2038879394531,
2309         "y": 2272.9999957084656,
2310         "z": "85f9bda0.40ea6",
2311         "wires": [
2312             [
2313                 "b7b1719a.2b029"
2314             ]
2315         ]
2316     },
2317     {
2318         "id": "b7b1719a.2b029",
2319         "type": "block",
2320         "name": "block : atomic",
2321         "xml": "<block atomic=\"true\">",
2322         "atomic": "true",
2323         "outputs": 1,
2324         "x": 1639.2038879394531,
2325         "y": 2272.9999957084656,
2326         "z": "85f9bda0.40ea6",
2327         "wires": [
2328             [
2329                 "308899ad.18e666"
2330             ]
2331         ]
2332     },
2333     {
2334         "id": "308899ad.18e666",
2335         "type": "set",
2336         "name": "set tmp.cidx ",
2337         "xml": "<set>\n<parameter name='tmp.cidx' value='`$service-data.consumed-allotted-resources.consumed-allotted-resource_length`' />\n",
2338         "comments": "",
2339         "x": 1885.0612163543701,
2340         "y": 2273.571469783783,
2341         "z": "85f9bda0.40ea6",
2342         "wires": []
2343     },
2344     {
2345         "id": "40e2c37b.f6506c",
2346         "type": "break",
2347         "name": "break",
2348         "xml": "<break>\n",
2349         "comments": "",
2350         "x": 2435.203887939453,
2351         "y": 2270.9999957084656,
2352         "z": "85f9bda0.40ea6",
2353         "wires": []
2354     },
2355     {
2356         "id": "a348f9e1.479f68",
2357         "type": "execute",
2358         "name": "generate parent-ar url - replace service-instance-id",
2359         "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n    <parameter name=\"source\" value=\"`$prop.restapi.parent-provided-resource`\"/>\n    <parameter name=\"outputPath\" value=\"tmp.parent-ar-url\"/>\n    <parameter name=\"target\" value=\"{service-instance-id}\"/>\n    <parameter name=\"replacement\" value=\"`$tmp.ar.parent-service-instance-id`\"/>\n",
2360         "comments": "",
2361         "outputs": 1,
2362         "x": 623.2040939331055,
2363         "y": 491.0000581741333,
2364         "z": "85f9bda0.40ea6",
2365         "wires": [
2366             []
2367         ]
2368     },
2369     {
2370         "id": "e6b7c56f.4a4108",
2371         "type": "execute",
2372         "name": "generate parent-ar url - replace allotted-resource-id",
2373         "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n    <parameter name=\"source\" value=\"`$tmp.parent-ar-url`\"/>\n    <parameter name=\"outputPath\" value=\"tmp.parent-ar-url\"/>\n    <parameter name=\"target\" value=\"{allotted-resource-id}\"/>\n    <parameter name=\"replacement\" value=\"`$tmp.ar.allotted-resource-id`\"/>\n",
2374         "comments": "",
2375         "outputs": 1,
2376         "x": 628.2039642333984,
2377         "y": 526.0000591278076,
2378         "z": "85f9bda0.40ea6",
2379         "wires": [
2380             []
2381         ]
2382     },
2383     {
2384         "id": "4fa30610.874dd8",
2385         "type": "execute",
2386         "name": "execute RestApiCallNode - Update parent provided service AR",
2387         "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n    <parameter name='templateFileName' value=\"`$prop.restapi.templateDir + '/' + $prop.restapi.parentsvc.templatefile`\" />\n    <parameter name='restapiUrl' value='`$prop.controller.url + $tmp.parent-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='DELETE' />\n    <parameter name=\"responsePrefix\" value=\"parent\" />\n\n",
2388         "comments": "",
2389         "outputs": 1,
2390         "x": 1340.337501525879,
2391         "y": 2983.333375930786,
2392         "z": "85f9bda0.40ea6",
2393         "wires": [
2394             [
2395                 "4d27fc7a.e0a564",
2396                 "fca9d210.32923",
2397                 "5baae4aa.9e3f8c"
2398             ]
2399         ]
2400     },
2401     {
2402         "id": "b4ec98ab.b04568",
2403         "type": "comment",
2404         "name": "Rollback parent",
2405         "info": "",
2406         "comments": "",
2407         "x": 1184.3374290466309,
2408         "y": 2953.0000064373016,
2409         "z": "85f9bda0.40ea6",
2410         "wires": []
2411     },
2412     {
2413         "id": "4b9fa7f1.b30308",
2414         "type": "block",
2415         "name": "block",
2416         "xml": "<block>\n",
2417         "atomic": "false",
2418         "comments": "",
2419         "outputs": 1,
2420         "x": 993.0040321350098,
2421         "y": 2982.666679382324,
2422         "z": "85f9bda0.40ea6",
2423         "wires": [
2424             [
2425                 "4fa30610.874dd8",
2426                 "676e8a31.aad434"
2427             ]
2428         ]
2429     },
2430     {
2431         "id": "4d27fc7a.e0a564",
2432         "type": "not-found",
2433         "name": "not-found",
2434         "xml": "<outcome value='not-found'>\n",
2435         "comments": "",
2436         "outputs": 1,
2437         "x": 1711.64554977417,
2438         "y": 3043.9983422756195,
2439         "z": "85f9bda0.40ea6",
2440         "wires": [
2441             [
2442                 "7488686d.da8948"
2443             ]
2444         ]
2445     },
2446     {
2447         "id": "fca9d210.32923",
2448         "type": "failure",
2449         "name": "failure",
2450         "xml": "<outcome value='failure'>\n",
2451         "comments": "",
2452         "outputs": 1,
2453         "x": 1702.6455993652344,
2454         "y": 3012.498368024826,
2455         "z": "85f9bda0.40ea6",
2456         "wires": [
2457             [
2458                 "7488686d.da8948"
2459             ]
2460         ]
2461     },
2462     {
2463         "id": "5baae4aa.9e3f8c",
2464         "type": "success",
2465         "name": "success",
2466         "xml": "<outcome value='success'>\n",
2467         "comments": "",
2468         "outputs": 1,
2469         "x": 1706.395637512207,
2470         "y": 2982.8554728999734,
2471         "z": "85f9bda0.40ea6",
2472         "wires": [
2473             [
2474                 "7488686d.da8948"
2475             ]
2476         ]
2477     },
2478     {
2479         "id": "7488686d.da8948",
2480         "type": "block",
2481         "name": "block",
2482         "xml": "<block>\n",
2483         "atomic": "false",
2484         "comments": "",
2485         "outputs": 1,
2486         "x": 1848.0516052246094,
2487         "y": 2979.0476420894265,
2488         "z": "85f9bda0.40ea6",
2489         "wires": [
2490             []
2491         ]
2492     },
2493     {
2494         "id": "5182c386.6fc00c",
2495         "type": "execute",
2496         "name": "generate network-ar url - replace service-instance-id",
2497         "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n    <parameter name=\"source\" value=\"`$prop.restapi.network-provided-resource`\"/>\n    <parameter name=\"outputPath\" value=\"tmp.network-ar-url\"/>\n    <parameter name=\"target\" value=\"{service-instance-id}\"/>\n    <parameter name=\"replacement\" value=\"`$tmp.ar.parent-service-instance-id`\"/>\n",
2498         "comments": "",
2499         "outputs": 1,
2500         "x": 630.0039291381836,
2501         "y": 560.9999933242798,
2502         "z": "85f9bda0.40ea6",
2503         "wires": [
2504             []
2505         ]
2506     },
2507     {
2508         "id": "b4d8f0cc.1375d",
2509         "type": "execute",
2510         "name": "generate network-ar url - replace network-id",
2511         "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n    <parameter name=\"source\" value=\"`$tmp.network-ar-url`\"/>\n    <parameter name=\"outputPath\" value=\"tmp.network-ar-url\"/>\n    <parameter name=\"target\" value=\"{network-id}\"/>\n    <parameter name=\"replacement\" value=\"`$ar-assignments.dest-network.network-id`\"/>\n",
2512         "comments": "",
2513         "outputs": 1,
2514         "x": 575.3373336791992,
2515         "y": 2736.3331060409546,
2516         "z": "85f9bda0.40ea6",
2517         "wires": [
2518             []
2519         ]
2520     },
2521     {
2522         "id": "d3ab9d9.302806",
2523         "type": "execute",
2524         "name": "execute RestApiCallNode - Update parent network provided AR",
2525         "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n    <parameter name='restapiUrl' value='`$prop.controller.url + $tmp.network-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=\"net-ar\" />\n\n",
2526         "comments": "",
2527         "outputs": 1,
2528         "x": 636.0039749145508,
2529         "y": 2768.332983016968,
2530         "z": "85f9bda0.40ea6",
2531         "wires": [
2532             [
2533                 "b126a6ab.fc31a8",
2534                 "21f26a3d.14b8a6",
2535                 "58552a71.cf4904"
2536             ]
2537         ]
2538     },
2539     {
2540         "id": "21f26a3d.14b8a6",
2541         "type": "not-found",
2542         "name": "not-found",
2543         "xml": "<outcome value='not-found'>\n",
2544         "comments": "",
2545         "outputs": 1,
2546         "x": 1043.3120384216309,
2547         "y": 2769.998592376709,
2548         "z": "85f9bda0.40ea6",
2549         "wires": [
2550             [
2551                 "d04555d.20f10a8"
2552             ]
2553         ]
2554     },
2555     {
2556         "id": "58552a71.cf4904",
2557         "type": "failure",
2558         "name": "failure",
2559         "xml": "<outcome value='failure'>\n",
2560         "comments": "",
2561         "outputs": 1,
2562         "x": 1035.9787483215332,
2563         "y": 2805.165050506592,
2564         "z": "85f9bda0.40ea6",
2565         "wires": [
2566             [
2567                 "d04555d.20f10a8"
2568             ]
2569         ]
2570     },
2571     {
2572         "id": "b126a6ab.fc31a8",
2573         "type": "success",
2574         "name": "success",
2575         "xml": "<outcome value='success'>\n",
2576         "comments": "",
2577         "outputs": 1,
2578         "x": 1038.0620727539062,
2579         "y": 2735.52213678509,
2580         "z": "85f9bda0.40ea6",
2581         "wires": [
2582             [
2583                 "d04555d.20f10a8"
2584             ]
2585         ]
2586     },
2587     {
2588         "id": "d04555d.20f10a8",
2589         "type": "block",
2590         "name": "block: atomic",
2591         "xml": "<block atomic=\"true\">\n",
2592         "atomic": "false",
2593         "comments": "",
2594         "outputs": 1,
2595         "x": 1209.7179679870605,
2596         "y": 2740.047920227051,
2597         "z": "85f9bda0.40ea6",
2598         "wires": [
2599             [
2600                 "70cece64.b0035",
2601                 "f47586c7.4dd958"
2602             ]
2603         ]
2604     },
2605     {
2606         "id": "9c8b757d.7ff708",
2607         "type": "comment",
2608         "name": "Add AR to  parent network allotted resource from mdsal",
2609         "info": "",
2610         "comments": "",
2611         "x": 604.0038681030273,
2612         "y": 2696.666604042053,
2613         "z": "85f9bda0.40ea6",
2614         "wires": []
2615     },
2616     {
2617         "id": "f47586c7.4dd958",
2618         "type": "switchNode",
2619         "name": "switch net-ar_length",
2620         "xml": "<switch test='`$net-ar.network-provided-allotted-resources.network-provided-ar-id_length`'>\n",
2621         "comments": "",
2622         "outputs": 1,
2623         "x": 1436.3371238708496,
2624         "y": 2779.333092689514,
2625         "z": "85f9bda0.40ea6",
2626         "wires": [
2627             [
2628                 "81789afc.459478",
2629                 "18863aec.cdfac5"
2630             ]
2631         ]
2632     },
2633     {
2634         "id": "f3c02a8e.4fd868",
2635         "type": "for",
2636         "name": "for nidx..net-ar[]",
2637         "xml": "<for index='nidx' start='0' end='`$net-ar.network-provided-allotted-resources.network-provided-ar-id_length`' >\n",
2638         "comments": "",
2639         "outputs": 1,
2640         "x": 2154.6705780029297,
2641         "y": 2800.3330993652344,
2642         "z": "85f9bda0.40ea6",
2643         "wires": [
2644             [
2645                 "aaf9c25b.d0a4e"
2646             ]
2647         ]
2648     },
2649     {
2650         "id": "81789afc.459478",
2651         "type": "other",
2652         "name": "outcome Null",
2653         "xml": "<outcome value=''>\n",
2654         "comments": "",
2655         "outputs": 1,
2656         "x": 1719.1461906433105,
2657         "y": 2734.9044456481934,
2658         "z": "85f9bda0.40ea6",
2659         "wires": [
2660             [
2661                 "a9b1914.36cf07"
2662             ]
2663         ]
2664     },
2665     {
2666         "id": "18863aec.cdfac5",
2667         "type": "other",
2668         "name": "other",
2669         "xml": "<outcome value='Other'>\n",
2670         "comments": "",
2671         "outputs": 1,
2672         "x": 1700.8128395080566,
2673         "y": 2808.5711641311646,
2674         "z": "85f9bda0.40ea6",
2675         "wires": [
2676             [
2677                 "400b37af.daefc8"
2678             ]
2679         ]
2680     },
2681     {
2682         "id": "aaf9c25b.d0a4e",
2683         "type": "switchNode",
2684         "name": "switch allotted-resource-id",
2685         "xml": "<switch test=\"`$net-ar.network-provided-allotted-resources.network-provided-ar-id[$nidx] == $tmp.ar.allotted-resource-id`\">\n\n",
2686         "comments": "",
2687         "outputs": 1,
2688         "x": 2379.765636444092,
2689         "y": 2807.3930249214172,
2690         "z": "85f9bda0.40ea6",
2691         "wires": [
2692             [
2693                 "3f6707e6.536828"
2694             ]
2695         ]
2696     },
2697     {
2698         "id": "3f6707e6.536828",
2699         "type": "outcomeTrue",
2700         "name": "true",
2701         "xml": "<outcome value='true'>\n",
2702         "comments": "",
2703         "outputs": 1,
2704         "x": 2562.909149169922,
2705         "y": 2802.8570713996887,
2706         "z": "85f9bda0.40ea6",
2707         "wires": [
2708             [
2709                 "cf3b236d.afba4"
2710             ]
2711         ]
2712     },
2713     {
2714         "id": "400b37af.daefc8",
2715         "type": "block",
2716         "name": "block : atomic",
2717         "xml": "<block atomic=\"true\">",
2718         "atomic": "true",
2719         "outputs": 1,
2720         "x": 1903.2733039855957,
2721         "y": 2811.3636326789856,
2722         "z": "85f9bda0.40ea6",
2723         "wires": [
2724             [
2725                 "f3c02a8e.4fd868",
2726                 "b5ca1c40.ba898"
2727             ]
2728         ]
2729     },
2730     {
2731         "id": "cf3b236d.afba4",
2732         "type": "block",
2733         "name": "block : atomic",
2734         "xml": "<block atomic=\"true\">",
2735         "atomic": "true",
2736         "outputs": 1,
2737         "x": 2729.6701126098633,
2738         "y": 2804.380966901779,
2739         "z": "85f9bda0.40ea6",
2740         "wires": [
2741             [
2742                 "b9c29337.bffea",
2743                 "e860e228.44b05"
2744             ]
2745         ]
2746     },
2747     {
2748         "id": "b9a5525f.e748d",
2749         "type": "outcomeTrue",
2750         "name": "false",
2751         "xml": "<outcome value='false'>\n",
2752         "comments": "",
2753         "outputs": 1,
2754         "x": 2333.7217140197754,
2755         "y": 2844.0419883728027,
2756         "z": "85f9bda0.40ea6",
2757         "wires": [
2758             [
2759                 "3c162262.2edd8e"
2760             ]
2761         ]
2762     },
2763     {
2764         "id": "3c162262.2edd8e",
2765         "type": "block",
2766         "name": "block : atomic",
2767         "xml": "<block atomic=\"true\">",
2768         "atomic": "true",
2769         "outputs": 1,
2770         "x": 2503.0548133850098,
2771         "y": 2842.375241279602,
2772         "z": "85f9bda0.40ea6",
2773         "wires": [
2774             [
2775                 "97955dea.94fa8",
2776                 "b0991330.37b1f",
2777                 "19342dda.0ed522"
2778             ]
2779         ]
2780     },
2781     {
2782         "id": "97955dea.94fa8",
2783         "type": "set",
2784         "name": "set tmp.nidx ",
2785         "xml": "<set>\n<parameter name='tmp.nidx' value='`$net-ar.network-provided-allotted-resources.network-provided-ar-id_length`' />\n",
2786         "comments": "",
2787         "x": 2708.9120597839355,
2788         "y": 2847.946852207184,
2789         "z": "85f9bda0.40ea6",
2790         "wires": []
2791     },
2792     {
2793         "id": "71697d2f.ce67a4",
2794         "type": "comment",
2795         "name": "allotted resource already exists- no op",
2796         "info": "",
2797         "comments": "",
2798         "x": 2425.003807067871,
2799         "y": 2658.3331480026245,
2800         "z": "85f9bda0.40ea6",
2801         "wires": []
2802     },
2803     {
2804         "id": "b5ca1c40.ba898",
2805         "type": "switchNode",
2806         "name": "switch tmp.found-nidx",
2807         "xml": "<switch test='`$tmp.found-nidx`'>\n",
2808         "comments": "",
2809         "outputs": 1,
2810         "x": 2163.721622467041,
2811         "y": 2842.375159263611,
2812         "z": "85f9bda0.40ea6",
2813         "wires": [
2814             [
2815                 "b9a5525f.e748d"
2816             ]
2817         ]
2818     },
2819     {
2820         "id": "b9c29337.bffea",
2821         "type": "set",
2822         "name": "set tmp.nidx ",
2823         "xml": "<set>\n<parameter name='tmp.found-nidx' value='true' />",
2824         "comments": "",
2825         "x": 2941.6705055236816,
2826         "y": 2795.6662425994873,
2827         "z": "85f9bda0.40ea6",
2828         "wires": []
2829     },
2830     {
2831         "id": "e860e228.44b05",
2832         "type": "break",
2833         "name": "break",
2834         "xml": "<break>\n",
2835         "comments": "",
2836         "x": 2928.864610671997,
2837         "y": 2829.0894317626953,
2838         "z": "85f9bda0.40ea6",
2839         "wires": []
2840     },
2841     {
2842         "id": "b0991330.37b1f",
2843         "type": "execute",
2844         "name": "execute RestApiCallNode - Update parent network provided AR",
2845         "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n    <parameter name='templateFileName' value=\"`$prop.restapi.templateDir + '/' + $prop.restapi.network-ar.templatefile`\" />\n    <parameter name='restapiUrl' value='`$prop.controller.url + $tmp.network-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=\"p-network-ar\" />\n\n",
2846         "comments": "",
2847         "outputs": 1,
2848         "x": 2876.0039253234863,
2849         "y": 2913.6661825180054,
2850         "z": "85f9bda0.40ea6",
2851         "wires": [
2852             [
2853                 "d0deebe0.5c10c8",
2854                 "ce47a3d3.8ea39",
2855                 "abaaa05a.34376"
2856             ]
2857         ]
2858     },
2859     {
2860         "id": "abaaa05a.34376",
2861         "type": "not-found",
2862         "name": "not-found",
2863         "xml": "<outcome value='not-found'>\n",
2864         "comments": "",
2865         "outputs": 1,
2866         "x": 3219.0038719177246,
2867         "y": 2959.9996099472046,
2868         "z": "85f9bda0.40ea6",
2869         "wires": [
2870             [
2871                 "88cce4e7.5ce3b8"
2872             ]
2873         ]
2874     },
2875     {
2876         "id": "ce47a3d3.8ea39",
2877         "type": "failure",
2878         "name": "failure",
2879         "xml": "<outcome value='failure'>\n",
2880         "comments": "",
2881         "outputs": 1,
2882         "x": 3210.003921508789,
2883         "y": 2928.499635696411,
2884         "z": "85f9bda0.40ea6",
2885         "wires": [
2886             [
2887                 "88cce4e7.5ce3b8"
2888             ]
2889         ]
2890     },
2891     {
2892         "id": "d0deebe0.5c10c8",
2893         "type": "success",
2894         "name": "success",
2895         "xml": "<outcome value='success'>\n",
2896         "comments": "",
2897         "outputs": 1,
2898         "x": 3213.7539596557617,
2899         "y": 2898.8567405715585,
2900         "z": "85f9bda0.40ea6",
2901         "wires": [
2902             [
2903                 "88cce4e7.5ce3b8"
2904             ]
2905         ]
2906     },
2907     {
2908         "id": "88cce4e7.5ce3b8",
2909         "type": "block",
2910         "name": "block",
2911         "xml": "<block>\n",
2912         "atomic": "false",
2913         "comments": "",
2914         "outputs": 1,
2915         "x": 3398.743251800537,
2916         "y": 2895.048861503601,
2917         "z": "85f9bda0.40ea6",
2918         "wires": [
2919             []
2920         ]
2921     },
2922     {
2923         "id": "70cece64.b0035",
2924         "type": "set",
2925         "name": "set tmp.found-nidx = false",
2926         "xml": "<set>\n<parameter name='tmp.found-nidx' value='false' />",
2927         "comments": "",
2928         "x": 1453.0038871765137,
2929         "y": 2709.666962623596,
2930         "z": "85f9bda0.40ea6",
2931         "wires": []
2932     },
2933     {
2934         "id": "19342dda.0ed522",
2935         "type": "set",
2936         "name": "set length",
2937         "xml": "<set>\n<parameter name='net-ar.network-provided-allotted-resources.network-provided-ar-id_length' value='`$net-ar.network-provided-allotted-resources.network-provided-ar-id_length + 1`' />\n<parameter name='net-ar.network-provided-allotted-resources.network-provided-ar-id[$tmp.nidx]' value=\"`$tmp.ar.allotted-resource-id`\" />\n",
2938         "comments": "",
2939         "x": 2703.670211791992,
2940         "y": 2882.000111103058,
2941         "z": "85f9bda0.40ea6",
2942         "wires": []
2943     },
2944     {
2945         "id": "cf2e9848.75b068",
2946         "type": "set",
2947         "name": "set new network-provided-ar",
2948         "xml": "<set>\n<parameter name='net-ar.network-provided-allotted-resources.network-provided-ar-id_length' value=\"1\" />\n<parameter name='net-ar.network-provided-allotted-resources.network-provided-ar-id[0]' value=\"`$tmp.ar.allotted-resource-id`\" />\n\n\n\n\n",
2949         "comments": "",
2950         "x": 2220.003257751465,
2951         "y": 2738.2850757837296,
2952         "z": "85f9bda0.40ea6",
2953         "wires": []
2954     },
2955     {
2956         "id": "a9b1914.36cf07",
2957         "type": "block",
2958         "name": "block : atomic",
2959         "xml": "<block atomic=\"true\">",
2960         "atomic": "true",
2961         "outputs": 1,
2962         "x": 1916.6709251403809,
2963         "y": 2734.9993047714233,
2964         "z": "85f9bda0.40ea6",
2965         "wires": [
2966             [
2967                 "cf2e9848.75b068",
2968                 "b0991330.37b1f"
2969             ]
2970         ]
2971     },
2972     {
2973         "id": "532c07a7.4fc418",
2974         "type": "comment",
2975         "name": "Other Rollbacks? ",
2976         "info": "",
2977         "comments": "",
2978         "x": 1190.003776550293,
2979         "y": 3044.9997510910034,
2980         "z": "85f9bda0.40ea6",
2981         "wires": []
2982     },
2983     {
2984         "id": "1a6cf55.8e55d0b",
2985         "type": "for",
2986         "name": "for each vf-module",
2987         "xml": "<for index='idx' start='0' end='`$aai.vnf.vf-modules.vf-module_length`' >\n",
2988         "comments": "",
2989         "outputs": 1,
2990         "x": 1942.1624755859375,
2991         "y": 2083.2690420150757,
2992         "z": "85f9bda0.40ea6",
2993         "wires": [
2994             [
2995                 "f9f855ba.54c4e8"
2996             ]
2997         ]
2998     },
2999     {
3000         "id": "3073c90c.2b8396",
3001         "type": "break",
3002         "name": "break",
3003         "xml": "<break>\n",
3004         "comments": "",
3005         "x": 2821.734062194824,
3006         "y": 2147.5073776245117,
3007         "z": "85f9bda0.40ea6",
3008         "wires": []
3009     },
3010     {
3011         "id": "f9f855ba.54c4e8",
3012         "type": "switchNode",
3013         "name": "switch contrail-service-instance-fqdn",
3014         "xml": "<switch test='`$aai.vnf.vf-modules.vf-module[$idx].contrail-service-instance-fqdn`'>\n",
3015         "comments": "",
3016         "outputs": 1,
3017         "x": 2225.67041015625,
3018         "y": 2083.9997549057007,
3019         "z": "85f9bda0.40ea6",
3020         "wires": [
3021             [
3022                 "16e107d0.dce698",
3023                 "e20c70a0.0635e"
3024             ]
3025         ]
3026     },
3027     {
3028         "id": "e93e13c6.51ba8",
3029         "type": "returnFailure",
3030         "name": "return failure",
3031         "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=\"VF Module not found in AAI\" />\n",
3032         "comments": "",
3033         "x": 1923.61474609375,
3034         "y": 2050.9721670150757,
3035         "z": "85f9bda0.40ea6",
3036         "wires": []
3037     },
3038     {
3039         "id": "16e107d0.dce698",
3040         "type": "other",
3041         "name": "outcome Null",
3042         "xml": "<outcome value=''>\n",
3043         "comments": "",
3044         "outputs": 1,
3045         "x": 2505.67041015625,
3046         "y": 2085.3330068588257,
3047         "z": "85f9bda0.40ea6",
3048         "wires": [
3049             [
3050                 "75bfef9d.b7113"
3051             ]
3052         ]
3053     },
3054     {
3055         "id": "e20c70a0.0635e",
3056         "type": "other",
3057         "name": "other",
3058         "xml": "<outcome value='Other'>\n",
3059         "comments": "",
3060         "outputs": 1,
3061         "x": 2487.6704139709473,
3062         "y": 2118.3330075740814,
3063         "z": "85f9bda0.40ea6",
3064         "wires": [
3065             [
3066                 "6a2486ce.7e5db8"
3067             ]
3068         ]
3069     },
3070     {
3071         "id": "75bfef9d.b7113",
3072         "type": "block",
3073         "name": "block",
3074         "xml": "<block>\n",
3075         "atomic": "false",
3076         "comments": "",
3077         "outputs": 1,
3078         "x": 2662.3373260498047,
3079         "y": 2083.666416168213,
3080         "z": "85f9bda0.40ea6",
3081         "wires": [
3082             []
3083         ]
3084     },
3085     {
3086         "id": "6a2486ce.7e5db8",
3087         "type": "block",
3088         "name": "block",
3089         "xml": "<block>\n",
3090         "atomic": "false",
3091         "comments": "",
3092         "outputs": 1,
3093         "x": 2669.0036544799805,
3094         "y": 2115.3330125808716,
3095         "z": "85f9bda0.40ea6",
3096         "wires": [
3097             [
3098                 "3073c90c.2b8396",
3099                 "91e70d26.1944f"
3100             ]
3101         ]
3102     },
3103     {
3104         "id": "91e70d26.1944f",
3105         "type": "set",
3106         "name": "set applied service fqdn",
3107         "xml": "<set>\n<parameter name='ar-assignments.contrail-applied-service.contrail-fqdn' value=\"`$aai.vnf.vf-modules.vf-module[$idx].contrail-service-instance-fqdn` \" />\n\n\n\n",
3108         "comments": "",
3109         "x": 2880.3369140625,
3110         "y": 2114.666625022888,
3111         "z": "85f9bda0.40ea6",
3112         "wires": []
3113     },
3114     {
3115         "id": "50a5d5ae.00038c",
3116         "type": "switchNode",
3117         "name": "switch ar-assignments.contrail-applied-service.contrail-fqdn",
3118         "xml": "<switch test='`$ar-assignments.contrail-applied-service.contrail-fqdn`'>\n",
3119         "comments": "",
3120         "outputs": 1,
3121         "x": 639.0039672851562,
3122         "y": 2032.6666250228882,
3123         "z": "85f9bda0.40ea6",
3124         "wires": [
3125             [
3126                 "7ef88d8c.1753f4"
3127             ]
3128         ]
3129     },
3130     {
3131         "id": "7ef88d8c.1753f4",
3132         "type": "other",
3133         "name": "outcome Null",
3134         "xml": "<outcome value=''>\n",
3135         "comments": "",
3136         "outputs": 1,
3137         "x": 967.6706504821777,
3138         "y": 2033.3331513404846,
3139         "z": "85f9bda0.40ea6",
3140         "wires": [
3141             [
3142                 "906fc5d.d193b38"
3143             ]
3144         ]
3145     },
3146     {
3147         "id": "906fc5d.d193b38",
3148         "type": "returnFailure",
3149         "name": "return failure",
3150         "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: No vf-module with contrail-service-instance-fqdn found in AAI\" />\n    \n",
3151         "comments": "",
3152         "x": 1143.6705322265625,
3153         "y": 2031.6665029525757,
3154         "z": "85f9bda0.40ea6",
3155         "wires": []
3156     },
3157     {
3158         "id": "9435780f.70de68",
3159         "type": "comment",
3160         "name": "MDSal adaptor only saves consuming service so parent service and AR are done by Rest api calls",
3161         "info": "",
3162         "comments": "",
3163         "x": 617.670524597168,
3164         "y": 69.99999523162842,
3165         "z": "85f9bda0.40ea6",
3166         "wires": []
3167     },
3168     {
3169         "id": "ab273234.3352d",
3170         "type": "get-resource",
3171         "name": "get-resource tenant",
3172         "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",
3173         "comments": "",
3174         "outputs": 1,
3175         "x": 3048.670690536499,
3176         "y": 1107.999815940857,
3177         "z": "85f9bda0.40ea6",
3178         "wires": [
3179             [
3180                 "1e32de4c.b2c362",
3181                 "cacc25d0.431aa8",
3182                 "ffdd0952.ef2388"
3183             ]
3184         ]
3185     },
3186     {
3187         "id": "1e32de4c.b2c362",
3188         "type": "not-found",
3189         "name": "not-found",
3190         "xml": "<outcome value='not-found'>\n",
3191         "comments": "",
3192         "outputs": 1,
3193         "x": 3269.5320796966553,
3194         "y": 1100.61093044281,
3195         "z": "85f9bda0.40ea6",
3196         "wires": [
3197             [
3198                 "84327f8e.42c2a"
3199             ]
3200         ]
3201     },
3202     {
3203         "id": "cacc25d0.431aa8",
3204         "type": "other",
3205         "name": "other",
3206         "xml": "<outcome value='Other'>\n",
3207         "comments": "",
3208         "outputs": 1,
3209         "x": 3264.8651065826416,
3210         "y": 1133.9442443847656,
3211         "z": "85f9bda0.40ea6",
3212         "wires": [
3213             [
3214                 "84327f8e.42c2a"
3215             ]
3216         ]
3217     },
3218     {
3219         "id": "84327f8e.42c2a",
3220         "type": "returnFailure",
3221         "name": "return failure",
3222         "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",
3223         "comments": "",
3224         "x": 3439.0410289764404,
3225         "y": 1121.9998035430908,
3226         "z": "85f9bda0.40ea6",
3227         "wires": []
3228     },
3229     {
3230         "id": "ffdd0952.ef2388",
3231         "type": "success",
3232         "name": "success",
3233         "xml": "<outcome value='success'>\n",
3234         "comments": "",
3235         "outputs": 1,
3236         "x": 3265.0411128997803,
3237         "y": 1069.0368947982788,
3238         "z": "85f9bda0.40ea6",
3239         "wires": [
3240             [
3241                 "5ac31447.f8751c"
3242             ]
3243         ]
3244     },
3245     {
3246         "id": "5ac31447.f8751c",
3247         "type": "block",
3248         "name": "block : atomic",
3249         "xml": "<block atomic=\"true\">",
3250         "atomic": "true",
3251         "outputs": 1,
3252         "x": 3445.0411128997803,
3253         "y": 1067.0368947982788,
3254         "z": "85f9bda0.40ea6",
3255         "wires": [
3256             [
3257                 "7452fdf2.e453e4"
3258             ]
3259         ]
3260     },
3261     {
3262         "id": "7452fdf2.e453e4",
3263         "type": "set",
3264         "name": "set tenant name",
3265         "xml": "<set>\n<parameter name='tmp.ar.tenant-name' value='`$aai.tenant.tenant-name`' />\n\n\n",
3266         "comments": "",
3267         "x": 3632.004217147827,
3268         "y": 1064.66663646698,
3269         "z": "85f9bda0.40ea6",
3270         "wires": []
3271     },
3272     {
3273         "id": "87c290d7.ffb84",
3274         "type": "block",
3275         "name": "block",
3276         "xml": "<block>\n",
3277         "atomic": "false",
3278         "comments": "",
3279         "outputs": 1,
3280         "x": 2311.40380859375,
3281         "y": 1094.9999990463257,
3282         "z": "85f9bda0.40ea6",
3283         "wires": [
3284             [
3285                 "5c5cbd2b.585f54",
3286                 "cf63926f.05ca8"
3287             ]
3288         ]
3289     },
3290     {
3291         "id": "cf63926f.05ca8",
3292         "type": "record",
3293         "name": "record",
3294         "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=\"tmp.ar-name=\"/>\n<parameter name=\"field3\" value=\"`$tmp.ar-name`\"/>\n<parameter name=\"field4\" value=\"service-data-network-id\" />\n<parameter name=\"field5\" value=\"`$service-data.networks.network[$nidx].network-id`\" />\n<parameter name=\"field6\" value=\"contrail-route-input-network-id\" />\n<parameter name=\"field7\" value=\"`$contrail-route-topology-operation-input.contrail-route-request-input.source-network.network-id`\" />\n<parameter name=\"field8\" value=\"`$nidx`\" />",
3295         "comments": "",
3296         "outputs": 1,
3297         "x": 2476.0039825439453,
3298         "y": 1058.000126838684,
3299         "z": "85f9bda0.40ea6",
3300         "wires": [
3301             []
3302         ]
3303     },
3304     {
3305         "id": "e5b36746.9138e8",
3306         "type": "set",
3307         "name": "set source-network-found",
3308         "xml": "<set>\n<parameter name='source-network-found' value='false' />\n\n",
3309         "comments": "",
3310         "x": 2034.0041046142578,
3311         "y": 1099.000039756298,
3312         "z": "85f9bda0.40ea6",
3313         "wires": []
3314     },
3315     {
3316         "id": "c3a2fe60.10d47",
3317         "type": "switchNode",
3318         "name": "switch source-network-found",
3319         "xml": "<switch test=\"`$source-network-found`\">\n\n",
3320         "comments": "",
3321         "outputs": 1,
3322         "x": 2038.003978729248,
3323         "y": 1165.0000324249268,
3324         "z": "85f9bda0.40ea6",
3325         "wires": [
3326             [
3327                 "dadae59.dcff218"
3328             ]
3329         ]
3330     },
3331     {
3332         "id": "dadae59.dcff218",
3333         "type": "outcomeTrue",
3334         "name": "false",
3335         "xml": "<outcome value='false'>\n",
3336         "comments": "",
3337         "outputs": 1,
3338         "x": 2250.003936767578,
3339         "y": 1165.000033378601,
3340         "z": "85f9bda0.40ea6",
3341         "wires": [
3342             [
3343                 "d6eb6250.74fe"
3344             ]
3345         ]
3346     },
3347     {
3348         "id": "5f68ea4a.6a1ad4",
3349         "type": "switchNode",
3350         "name": "switch vf-module_length",
3351         "xml": "<switch test='`$aai.vnf.vf-modules.vf-module_length`'>\n",
3352         "comments": "",
3353         "outputs": 1,
3354         "x": 1525.00390625,
3355         "y": 2049.9999990463257,
3356         "z": "85f9bda0.40ea6",
3357         "wires": [
3358             [
3359                 "782bd89.42bc228",
3360                 "163262d8.631f3d"
3361             ]
3362         ]
3363     },
3364     {
3365         "id": "782bd89.42bc228",
3366         "type": "other",
3367         "name": "outcome null",
3368         "xml": "<outcome value=''>\n",
3369         "comments": "",
3370         "outputs": 1,
3371         "x": 1730.00390625,
3372         "y": 2050.9999990463257,
3373         "z": "85f9bda0.40ea6",
3374         "wires": [
3375             [
3376                 "e93e13c6.51ba8"
3377             ]
3378         ]
3379     },
3380     {
3381         "id": "163262d8.631f3d",
3382         "type": "other",
3383         "name": "outcome other",
3384         "xml": "<outcome value='Other'>\n",
3385         "comments": "",
3386         "outputs": 1,
3387         "x": 1730.00390625,
3388         "y": 2081.9999990463257,
3389         "z": "85f9bda0.40ea6",
3390         "wires": [
3391             [
3392                 "1a6cf55.8e55d0b"
3393             ]
3394         ]
3395     }
3396 ]