Allow sub directories for graphs
[sdnc/oam.git] / platform-logic / generic-resource-api / src / main / json / GENERIC-RESOURCE-API_sdwan-attachment-topology-operation-deactivate.json
1 [
2   {
3     "id": "f8331c4a.37167",
4     "type": "dgstart",
5     "name": "DGSTART",
6     "outputs": 1,
7     "x": 115,
8     "y": 35,
9     "z": "7c522092.2b01d",
10     "wires": [
11       [
12         "2f57f4b9.7848fc"
13       ]
14     ]
15   },
16   {
17     "id": "2f57f4b9.7848fc",
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": 299.00000190734863,
26     "y": 106.00001668930054,
27     "z": "7c522092.2b01d",
28     "wires": [
29       [
30         "606390f2.8a1db"
31       ]
32     ]
33   },
34   {
35     "id": "606390f2.8a1db",
36     "type": "method",
37     "name": "sdwan-attachment-topology-operation-deactivate",
38     "xml": "<method rpc='sdwan-attachment-topology-operation-deactivate' mode='sync'>\n",
39     "comments": "",
40     "outputs": 1,
41     "x": 287.00012016296387,
42     "y": 193.99999952316284,
43     "z": "7c522092.2b01d",
44     "wires": [
45       [
46         "4ba95650.840ef8"
47       ]
48     ]
49   },
50   {
51     "id": "4ba95650.840ef8",
52     "type": "block",
53     "name": "block : atomic",
54     "xml": "<block atomic=\"true\">\n",
55     "atomic": "false",
56     "comments": "",
57     "outputs": 1,
58     "x": 303.00012016296387,
59     "y": 749.000244140625,
60     "z": "7c522092.2b01d",
61     "wires": [
62       [
63         "7bfab5a3.06caac",
64         "45a84e1e.bdf7b",
65         "169fcb74.40e255",
66         "b2e9aacc.581ff8",
67         "e34f2e02.a4351",
68         "96bf45ea.f31428",
69         "ade80637.81d448",
70         "9fb629bb.9a3648",
71         "4bdb1ae.9bc94e4",
72         "85c9e5e0.4b2808",
73         "321fef32.53b0b",
74         "57a853e.4687fac",
75         "c17cdc10.1ceea",
76         "94474a0.f7cc5b8",
77         "500ce0c3.5b4ed",
78         "8054d01.53e0b3",
79         "9c9d490e.b9a1b8",
80         "75448c50.567d34",
81         "965fc969.fd32d8",
82         "d94628e2.163098",
83         "b8f3c1af.8a68d",
84         "5450bfab.9413e",
85         "d6353ac9.cd8368",
86         "de426682.23e5b8",
87         "9c358a1f.148518",
88         "7e6a4a74.fb8064",
89         "e6e54d59.f029"
90       ]
91     ]
92   },
93   {
94     "id": "7bfab5a3.06caac",
95     "type": "set",
96     "name": "set tmp.ar.allotted-resource-id,etc",
97     "xml": "<set>\n<parameter name='tmp.ar.allotted-resource-id' value='`$connection-attachment-topology-operation-input.allotted-resource-information.allotted-resource-id`' />\n<parameter name='tmp.ar.parent-service-instance-id' value='`$connection-attachment-topology-operation-input.allotted-resource-information.parent-service-instance-id`' />\n\n\n",
98     "comments": "",
99     "x": 699.993558883667,
100     "y": 147.99348640441895,
101     "z": "7c522092.2b01d",
102     "wires": []
103   },
104   {
105     "id": "af7814ef.59e2e8",
106     "type": "comment",
107     "name": "set tmp ar-id to fetch resource from MDSAL",
108     "info": "",
109     "comments": "",
110     "x": 728.9538707733154,
111     "y": 112.02528238296509,
112     "z": "7c522092.2b01d",
113     "wires": []
114   },
115   {
116     "id": "45a84e1e.bdf7b",
117     "type": "set",
118     "name": "set tmp.ar.self-link",
119     "xml": "<set>\n<parameter name='tmp.ar.self-link' value=\"`'restconf/config/GENERIC-RESOURCE-API:connection-attachment-allotted-resources/connection-attachment-allotted-resource/'\n + $tmp.ar.allotted-resource-id\n + '/allotted-resource-data/connection-attachment-topology/'` \" />\n\n",
120     "comments": "",
121     "x": 653.9934978485107,
122     "y": 240.99349164962769,
123     "z": "7c522092.2b01d",
124     "wires": []
125   },
126   {
127     "id": "b2e9aacc.581ff8",
128     "type": "execute",
129     "name": "execute Properties",
130     "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",
131     "comments": "",
132     "outputs": 1,
133     "x": 660.2553882598877,
134     "y": 328.66022062301636,
135     "z": "7c522092.2b01d",
136     "wires": [
137       []
138     ]
139   },
140   {
141     "id": "169fcb74.40e255",
142     "type": "execute",
143     "name": "generate allotted-resource tmp.ar-url",
144     "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n    <parameter name=\"source\" value=\"`$prop.restapi.connection-attachment-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",
145     "comments": "",
146     "outputs": 1,
147     "x": 710.2554912567139,
148     "y": 415.6602215766907,
149     "z": "7c522092.2b01d",
150     "wires": [
151       []
152     ]
153   },
154   {
155     "id": "a1f59482.c2e3a8",
156     "type": "comment",
157     "name": "GET connection-attachment-allotted-resource from mdsal",
158     "info": "",
159     "comments": "",
160     "x": 753.808515548706,
161     "y": 507.5387673377991,
162     "z": "7c522092.2b01d",
163     "wires": []
164   },
165   {
166     "id": "48f7ab81.dd3f54",
167     "type": "comment",
168     "name": "Used for setting output to API Handler",
169     "info": "",
170     "comments": "",
171     "x": 707.9935283660889,
172     "y": 207.99350118637085,
173     "z": "7c522092.2b01d",
174     "wires": []
175   },
176   {
177     "id": "c7689a40.af6f68",
178     "type": "comment",
179     "name": "Obtain different URL, template location etc",
180     "info": "For saving resource information to MDSAL & for AAI",
181     "comments": "",
182     "x": 725.9934940338135,
183     "y": 293.88238191604614,
184     "z": "7c522092.2b01d",
185     "wires": []
186   },
187   {
188     "id": "5bb7cd3a.b035e4",
189     "type": "comment",
190     "name": "Used to Get AR by id to MDSAL, same as self-link",
191     "info": "",
192     "comments": "",
193     "x": 751.9935131072998,
194     "y": 380.88234090805054,
195     "z": "7c522092.2b01d",
196     "wires": []
197   },
198   {
199     "id": "255752ab.e0974e",
200     "type": "success",
201     "name": "success",
202     "xml": "<outcome value='success'>\n",
203     "comments": "",
204     "outputs": 1,
205     "x": 1194.666826248169,
206     "y": 534.0000281333923,
207     "z": "7c522092.2b01d",
208     "wires": [
209       [
210         "7b548c16.84a074"
211       ]
212     ]
213   },
214   {
215     "id": "7b548c16.84a074",
216     "type": "block",
217     "name": "block: atomic",
218     "xml": "<block atomic=\"true\">\n",
219     "atomic": "false",
220     "comments": "",
221     "outputs": 1,
222     "x": 1363.6668300628662,
223     "y": 532.4999289512634,
224     "z": "7c522092.2b01d",
225     "wires": [
226       [
227         "30903850.9efd78"
228       ]
229     ]
230   },
231   {
232     "id": "30903850.9efd78",
233     "type": "switchNode",
234     "name": "switch cr length",
235     "xml": "<switch test='`$mdsal-ar.connection-attachment-allotted-resource_length`'>\n",
236     "comments": "",
237     "outputs": 1,
238     "x": 1536.5240993499756,
239     "y": 470.1190915107727,
240     "z": "7c522092.2b01d",
241     "wires": [
242       [
243         "f5872089.49e85",
244         "fd0f2962.8ae6b8"
245       ]
246     ]
247   },
248   {
249     "id": "f5872089.49e85",
250     "type": "other",
251     "name": "outcome 1",
252     "xml": "<outcome value='1'>\n",
253     "comments": "",
254     "outputs": 1,
255     "x": 1773.857343673706,
256     "y": 448.11904191970825,
257     "z": "7c522092.2b01d",
258     "wires": [
259       [
260         "ddd5f356.20fb3"
261       ]
262     ]
263   },
264   {
265     "id": "ddd5f356.20fb3",
266     "type": "block",
267     "name": "block: atomic",
268     "xml": "<block atomic='true'>\n",
269     "atomic": "false",
270     "comments": "",
271     "outputs": 1,
272     "x": 1958.381233215332,
273     "y": 445.0238757133484,
274     "z": "7c522092.2b01d",
275     "wires": [
276       [
277         "26efebde.981c54",
278         "f909f530.6858a8",
279         "aab72afb.6cac28"
280       ]
281     ]
282   },
283   {
284     "id": "49c172c3.b6fc6c",
285     "type": "returnFailure",
286     "name": "return failure",
287     "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"404\" />\n    <parameter name=\"error-message\" value=\"Error: SOTN resource not found\" />\n    \n",
288     "comments": "",
289     "x": 1882.5190753936768,
290     "y": 570.066116809845,
291     "z": "7c522092.2b01d",
292     "wires": []
293   },
294   {
295     "id": "1a7aa44a.cd34ac",
296     "type": "other",
297     "name": "other",
298     "xml": "<outcome value='Other'>\n",
299     "comments": "",
300     "outputs": 1,
301     "x": 1186.5186290740967,
302     "y": 569.0661129951477,
303     "z": "7c522092.2b01d",
304     "wires": [
305       [
306         "ea618a2d.cb5e38"
307       ]
308     ]
309   },
310   {
311     "id": "ea618a2d.cb5e38",
312     "type": "block",
313     "name": "block: atomic",
314     "xml": "<block atomic=\"true\">\n",
315     "atomic": "false",
316     "comments": "",
317     "outputs": 1,
318     "x": 1366.5185794830322,
319     "y": 569.7326636314392,
320     "z": "7c522092.2b01d",
321     "wires": [
322       [
323         "49c172c3.b6fc6c"
324       ]
325     ]
326   },
327   {
328     "id": "fd0f2962.8ae6b8",
329     "type": "other",
330     "name": "other",
331     "xml": "<outcome value='Other'>\n",
332     "comments": "",
333     "outputs": 1,
334     "x": 1762.185297012329,
335     "y": 485.39940214157104,
336     "z": "7c522092.2b01d",
337     "wires": [
338       [
339         "49c172c3.b6fc6c"
340       ]
341     ]
342   },
343   {
344     "id": "26efebde.981c54",
345     "type": "set",
346     "name": "set connection-attachment-ar from get",
347     "xml": "<set>\n<parameter name='connection-attachment-ar.' value='$mdsal-ar.connection-attachment-allotted-resource[0].' />\n",
348     "comments": "",
349     "x": 2204.4447917938232,
350     "y": 405.00010538101196,
351     "z": "7c522092.2b01d",
352     "wires": []
353   },
354   {
355     "id": "aab72afb.6cac28",
356     "type": "set",
357     "name": "set oper-status",
358     "xml": "<set>\n<parameter name='connection-attachment-ar.allotted-resource-data.allotted-resource-oper-status.last-action' value='`$connection-attachment-ar.allotted-resource-data.allotted-resource-operation-information.request-information.request-action`' />\n<parameter name='connection-attachment-ar.allotted-resource-data.allotted-resource-oper-status.last-rpc-action' value='`$connection-attachment-ar.allotted-resource-status.rpc-action`' />\n<parameter name='connection-attachment-ar.allotted-resource-data.allotted-resource-oper-status.last-svc-request-id' value='`$connection-attachment-ar.allotted-resource-data.allotted-resource-operation-information.sdnc-request-header.svc-request-id`' />\n\n",
359     "comments": "",
360     "x": 2137.444787979126,
361     "y": 495.4286599159241,
362     "z": "7c522092.2b01d",
363     "wires": []
364   },
365   {
366     "id": "f909f530.6858a8",
367     "type": "switchNode",
368     "name": "switch order-status",
369     "xml": "<switch test='`$connection-attachment-ar.allotted-resource-data.allotted-resource-oper-status.order-status`'>\n",
370     "comments": "",
371     "outputs": 1,
372     "x": 2148.4446239471436,
373     "y": 449.00010919570923,
374     "z": "7c522092.2b01d",
375     "wires": [
376       [
377         "dcae652b.a678c8",
378         "61137107.6ab3"
379       ]
380     ]
381   },
382   {
383     "id": "dcae652b.a678c8",
384     "type": "outcome",
385     "name": "outcome Active",
386     "xml": "<outcome value='Active'>\n",
387     "comments": "",
388     "outputs": 1,
389     "x": 2355.0445728302,
390     "y": 439.00010919570923,
391     "z": "7c522092.2b01d",
392     "wires": [
393       [
394         "f4b4f2e4.a75bd"
395       ]
396     ]
397   },
398   {
399     "id": "61137107.6ab3",
400     "type": "outcome",
401     "name": "outcome Other",
402     "xml": "<outcome value='Other'>\n",
403     "comments": "",
404     "outputs": 1,
405     "x": 2354.7590923309326,
406     "y": 481.42869997024536,
407     "z": "7c522092.2b01d",
408     "wires": [
409       [
410         "a2c4e7e4.8b9478"
411       ]
412     ]
413   },
414   {
415     "id": "f4b4f2e4.a75bd",
416     "type": "block",
417     "name": "block",
418     "xml": "<block>\n",
419     "atomic": "false",
420     "comments": "",
421     "outputs": 1,
422     "x": 2507.515127182007,
423     "y": 437.375759601593,
424     "z": "7c522092.2b01d",
425     "wires": [
426       []
427     ]
428   },
429   {
430     "id": "a2c4e7e4.8b9478",
431     "type": "returnFailure",
432     "name": "return failure",
433     "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n    <parameter name=\"error-message\" \n    value=\"`'Existing connection-attachment-allotted-resource with order status of ' + $connection-attachment-ar.allotted-resource-data.allotted-resource-oper-status.order-status + '.'`\" />\n",
434     "comments": "",
435     "x": 2527.666982650757,
436     "y": 478.00011110305786,
437     "z": "7c522092.2b01d",
438     "wires": []
439   },
440   {
441     "id": "8746fbbb.5c4dd8",
442     "type": "call",
443     "name": "call GENERIC-RESOURCE-API:sdwan-get-saved-ar-param",
444     "xml": "<call module='GENERIC-RESOURCE-API' rpc='sdwan-get-saved-ar-param' mode='sync' >\n",
445     "comments": "",
446     "outputs": 1,
447     "x": 915.3031139373779,
448     "y": 630.4935903549194,
449     "z": "7c522092.2b01d",
450     "wires": [
451       []
452     ]
453   },
454   {
455     "id": "e34f2e02.a4351",
456     "type": "block",
457     "name": "block: atomic",
458     "xml": "<block atomic=\"true\">\n",
459     "atomic": "false",
460     "comments": "",
461     "outputs": 1,
462     "x": 612.3092784881592,
463     "y": 631.4999384880066,
464     "z": "7c522092.2b01d",
465     "wires": [
466       [
467         "8746fbbb.5c4dd8"
468       ]
469     ]
470   },
471   {
472     "id": "96352635.65ff08",
473     "type": "comment",
474     "name": "GET parent-service-data from mdsal to check existence of other End point",
475     "info": "",
476     "comments": "",
477     "x": 794.0004405975342,
478     "y": 692.5316977500916,
479     "z": "7c522092.2b01d",
480     "wires": []
481   },
482   {
483     "id": "eb439772.0db3a8",
484     "type": "comment",
485     "name": "GET connection-attachment-ar to store AR data from mdsal",
486     "info": "",
487     "comments": "",
488     "x": 2187.4729442596436,
489     "y": 369.5039687156677,
490     "z": "7c522092.2b01d",
491     "wires": []
492   },
493   {
494     "id": "678453f3.6e4c2c",
495     "type": "comment",
496     "name": "Set source end point",
497     "info": "",
498     "comments": "",
499     "x": 625.9728374481201,
500     "y": 599.2540640830994,
501     "z": "7c522092.2b01d",
502     "wires": []
503   },
504   {
505     "id": "96bf45ea.f31428",
506     "type": "set",
507     "name": "set tmp.ar.parent-service-instance-id",
508     "xml": "<set>\n<parameter name='tmp.ar.parent-service-instance-id' value=\"`$connection-attachment-topology-operation-input.allotted-resource-information.parent-service-instance-id` \" />\n\n",
509     "comments": "",
510     "x": 678.968915939331,
511     "y": 724.0002083778381,
512     "z": "7c522092.2b01d",
513     "wires": []
514   },
515   {
516     "id": "14706c37.53ff04",
517     "type": "success",
518     "name": "success",
519     "xml": "<outcome value='success'>\n",
520     "comments": "",
521     "outputs": 1,
522     "x": 1056.9689121246338,
523     "y": 773.0002074241638,
524     "z": "7c522092.2b01d",
525     "wires": [
526       [
527         "f7881611.1e7fc8"
528       ]
529     ]
530   },
531   {
532     "id": "415e2268.5d0d3c",
533     "type": "other",
534     "name": "other",
535     "xml": "<outcome value='Other'>\n",
536     "comments": "",
537     "outputs": 1,
538     "x": 1048.8207149505615,
539     "y": 808.0662922859192,
540     "z": "7c522092.2b01d",
541     "wires": [
542       [
543         "400a8be0.06c244"
544       ]
545     ]
546   },
547   {
548     "id": "400a8be0.06c244",
549     "type": "returnFailure",
550     "name": "return failure",
551     "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"404\" />\n    <parameter name=\"error-message\" value=\"Error: SOTN resource not found\" />\n    \n",
552     "comments": "",
553     "x": 1223.9694004058838,
554     "y": 804.3336424827576,
555     "z": "7c522092.2b01d",
556     "wires": []
557   },
558   {
559     "id": "f7881611.1e7fc8",
560     "type": "block",
561     "name": "block",
562     "xml": "<block>\n",
563     "atomic": "false",
564     "comments": "",
565     "outputs": 1,
566     "x": 1207.9689121246338,
567     "y": 771.0002074241638,
568     "z": "7c522092.2b01d",
569     "wires": [
570       []
571     ]
572   },
573   {
574     "id": "6055aad6.cfe2c4",
575     "type": "failure",
576     "name": "failure",
577     "xml": "<outcome value='failure'>\n",
578     "comments": "",
579     "outputs": 1,
580     "x": 1037.7308254241943,
581     "y": 2275.9528431892395,
582     "z": "7c522092.2b01d",
583     "wires": [
584       [
585         "3f6ad50.2555b2c"
586       ]
587     ]
588   },
589   {
590     "id": "3f6ad50.2555b2c",
591     "type": "returnFailure",
592     "name": "return failure",
593     "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",
594     "comments": "",
595     "x": 1199.25465965271,
596     "y": 2320.571889281273,
597     "z": "7c522092.2b01d",
598     "wires": []
599   },
600   {
601     "id": "235942f0.e7b26e",
602     "type": "failure",
603     "name": "not-found",
604     "xml": "<outcome value='not-found'>\n",
605     "comments": "",
606     "outputs": 1,
607     "x": 1039.8260669708252,
608     "y": 2341.7147859334946,
609     "z": "7c522092.2b01d",
610     "wires": [
611       [
612         "3f6ad50.2555b2c"
613       ]
614     ]
615   },
616   {
617     "id": "48fc4721.99e218",
618     "type": "comment",
619     "name": "Save Resource to AAI",
620     "info": "",
621     "comments": "",
622     "x": 751.7784938812256,
623     "y": 2291.302206516266,
624     "z": "7c522092.2b01d",
625     "wires": []
626   },
627   {
628     "id": "57a853e.4687fac",
629     "type": "set",
630     "name": "set output to api handler",
631     "xml": "<set>\n<parameter name='allotted-resource-id' value='`$tmp.ar.allotted-resource-id`' />\n<parameter name='connection-attachment-object-path' value=\"`$tmp.ar.self-link`\"/>\n<parameter name='service-object-path' value=\"`'restconf/config/GENERIC-RESOURCE-API:services/service/'\n + $connection-attachment-topology-operation-input.service-information.service-instance-id\n + '/service-data/service-topology/'`\"/>\n \n",
632     "comments": "",
633     "x": 766.5461902618408,
634     "y": 2212.827687740326,
635     "z": "7c522092.2b01d",
636     "wires": []
637   },
638   {
639     "id": "c17cdc10.1ceea",
640     "type": "returnSuccess",
641     "name": "return success",
642     "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",
643     "comments": "",
644     "x": 713.9593296051025,
645     "y": 2407.443506717682,
646     "z": "7c522092.2b01d",
647     "wires": []
648   },
649   {
650     "id": "321fef32.53b0b",
651     "type": "execute",
652     "name": "execute RestApiCallNode - PUT AR by id",
653     "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n    <parameter name='templateFileName' value=\"`$prop.restapi.templateDir + '/' + $prop.restapi.sdwan-attachment.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",
654     "comments": "",
655     "outputs": 1,
656     "x": 816.2782917022705,
657     "y": 2120.4684615135193,
658     "z": "7c522092.2b01d",
659     "wires": [
660       [
661         "51856f43.e53b6",
662         "1d0bebfe.eab134",
663         "559d3f61.79c98"
664       ]
665     ]
666   },
667   {
668     "id": "51856f43.e53b6",
669     "type": "not-found",
670     "name": "not-found",
671     "xml": "<outcome value='not-found'>\n",
672     "comments": "",
673     "outputs": 1,
674     "x": 1084.9196681976318,
675     "y": 2171.7998732551932,
676     "z": "7c522092.2b01d",
677     "wires": [
678       [
679         "60114e3f.8f3c6"
680       ]
681     ]
682   },
683   {
684     "id": "1d0bebfe.eab134",
685     "type": "failure",
686     "name": "failure",
687     "xml": "<outcome value='failure'>\n",
688     "comments": "",
689     "outputs": 1,
690     "x": 1075.9197177886963,
691     "y": 2140.2998990044,
692     "z": "7c522092.2b01d",
693     "wires": [
694       [
695         "60114e3f.8f3c6"
696       ]
697     ]
698   },
699   {
700     "id": "559d3f61.79c98",
701     "type": "success",
702     "name": "success",
703     "xml": "<outcome value='success'>\n",
704     "comments": "",
705     "outputs": 1,
706     "x": 1079.669755935669,
707     "y": 2110.657003879547,
708     "z": "7c522092.2b01d",
709     "wires": [
710       [
711         "f983099f.d54368"
712       ]
713     ]
714   },
715   {
716     "id": "60114e3f.8f3c6",
717     "type": "returnFailure",
718     "name": "return failure",
719     "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 connection-attachment-allotted-resource\" />\n",
720     "comments": "",
721     "x": 1245.669755935669,
722     "y": 2141.0499228462577,
723     "z": "7c522092.2b01d",
724     "wires": []
725   },
726   {
727     "id": "f983099f.d54368",
728     "type": "block",
729     "name": "block",
730     "xml": "<block>\n",
731     "atomic": "false",
732     "comments": "",
733     "outputs": 1,
734     "x": 1221.3257236480713,
735     "y": 2106.8491730690002,
736     "z": "7c522092.2b01d",
737     "wires": [
738       []
739     ]
740   },
741   {
742     "id": "ade80637.81d448",
743     "type": "set",
744     "name": "set ar-data",
745     "xml": "<set>\n<parameter name='connection-attachment-ar.allotted-resource-status.action' value=\"`$connection-attachment-topology-operation-input.request-information.request-action` \" />\n<parameter name='connection-attachment-ar.allotted-resource-status.rpc-name' value=\"connection-attachment-topology-operation\" />\n<parameter name='connection-attachment-ar.allotted-resource-status.rpc-action' value=\"`$connection-attachment-topology-operation-input.sdnc-request-header.svc-action` \" />\n<parameter name='connection-attachment-ar.allotted-resource-data.allotted-resource-operation-information.request-information.' value=\"`$connection-attachment-topology-operation-input.request-information.` \" />\n<parameter name='connection-attachment-ar.allotted-resource-data.allotted-resource-operation-information.sdnc-request-header.' value=\"`$connection-attachment-topology-operation-input.sdnc-request-header.` \" />\n<parameter name='connection-attachment-ar.allotted-resource-data.allotted-resource-operation-information.service-information.' value=\"`$connection-attachment-topology-operation-input.service-information.` \" />\n",
746     "comments": "",
747     "x": 716.4919109344482,
748     "y": 1970.84938454628,
749     "z": "7c522092.2b01d",
750     "wires": []
751   },
752   {
753     "id": "4bdb1ae.9bc94e4",
754     "type": "execute",
755     "name": "execute getTime",
756     "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='setTime' >\n    <parameter name=\"outputPath\" value=\"tmp.current-time\" />\n\n",
757     "comments": "",
758     "outputs": 1,
759     "x": 733.777753829956,
760     "y": 2043.468982219696,
761     "z": "7c522092.2b01d",
762     "wires": [
763       []
764     ]
765   },
766   {
767     "id": "85c9e5e0.4b2808",
768     "type": "set",
769     "name": "set allotted-resource-oper-status",
770     "xml": "<set>\n<parameter name='connection-attachment-ar.allotted-resource-data.allotted-resource-oper-status.order-status' value='PendingDelete' />\n<parameter name='connection-attachment-ar.allotted-resource-data.allotted-resource-oper-status.last-action' value='`$connection-attachment-topology-operation-input.request-information.request-action`' />\n<parameter name='connection-attachment-ar.allotted-resource-data.allotted-resource-oper-status.last-rpc-action' value='`$connection-attachment-topology-operation-input.sdnc-request-header.svc-action`' />\n<parameter name='connection-attachment-ar.allotted-resource-data.allotted-resource-oper-status.last-svc-request-id' value='`$connection-attachment-topology-operation-input.sdnc-request-header.svc-request-id`' />\n<parameter name='connection-attachment-ar.allotted-resource-data.allotted-resource-oper-status.create-timestamp' value='`$tmp.current-time`' />\n",
771     "comments": "",
772     "x": 788.7648105621338,
773     "y": 2081.4201197624207,
774     "z": "7c522092.2b01d",
775     "wires": []
776   },
777   {
778     "id": "9fb629bb.9a3648",
779     "type": "set",
780     "name": "set model-data",
781     "xml": "<set>\n<parameter name='connection-attachment-ar.allotted-resource-data.connection-attachment-topology.onap-model-information.' value=\"`$connection-attachment-topology-operation-input.allotted-resource-information.onap-model-information.` \" />",
782     "comments": "",
783     "x": 730.3334522247314,
784     "y": 2010.0240349769592,
785     "z": "7c522092.2b01d",
786     "wires": []
787   },
788   {
789     "id": "71e134cd.34ff8c",
790     "type": "comment",
791     "name": "Prepare data for allotted-resource addition to MDSAL",
792     "info": "This will add to allotted-resource which is present inside service.",
793     "comments": "",
794     "x": 839.6668834686279,
795     "y": 1926.0239098072052,
796     "z": "7c522092.2b01d",
797     "wires": []
798   },
799   {
800     "id": "616f171a.47daa8",
801     "type": "comment",
802     "name": "Add to allotted-resources in mdsal",
803     "info": "",
804     "comments": "",
805     "x": 781.2467098236084,
806     "y": 1893.4372115135193,
807     "z": "7c522092.2b01d",
808     "wires": []
809   },
810   {
811     "id": "5450bfab.9413e",
812     "type": "update",
813     "name": "update AAI allotted-resource",
814     "xml": "<update plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\t\tresource=\"allotted-resource\" \n\t\tkey=\"customer.global-customer-id = $connection-attachment-topology-operation-input.service-information.global-customer-id AND\n\t\t\tservice-subscription.service-type = $connection-attachment-topology-operation-input.service-information.subscription-service-type AND\n\t\t\tservice-instance.service-instance-id = $connection-attachment-topology-operation-input.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=\"selflink\" value=\"`$tmp.ar.self-link`\" />\n\t<parameter name=\"model-invariant-id\" value=\"`$connection-attachment-topology-operation-input.allotted-resource-information.onap-model-information.model-invariant-uuid`\" />\n\t<parameter name=\"model-version-id\" value=\"`$connection-attachment-topology-operation-input.allotted-resource-information.onap-model-information.model-uuid`\" />\n\t<parameter name=\"operational-status\" value=\"PendingDelete\" />\n",
815     "comments": "",
816     "outputs": 1,
817     "x": 778.2227725982666,
818     "y": 2328.75434923172,
819     "z": "7c522092.2b01d",
820     "wires": [
821       [
822         "6055aad6.cfe2c4",
823         "235942f0.e7b26e"
824       ]
825     ]
826   },
827   {
828     "id": "94474a0.f7cc5b8",
829     "type": "execute",
830     "name": "execute RestApiCallNode - get-resource connection-attachment-allotted-resource",
831     "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",
832     "comments": "",
833     "outputs": 1,
834     "x": 827.3339519500732,
835     "y": 550.4999489784241,
836     "z": "7c522092.2b01d",
837     "wires": [
838       [
839         "255752ab.e0974e",
840         "1a7aa44a.cd34ac"
841       ]
842     ]
843   },
844   {
845     "id": "500ce0c3.5b4ed",
846     "type": "execute",
847     "name": "get parent-service-data tmp.ar-url-psd",
848     "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n    <parameter name=\"source\" value=\"/restconf/config/GENERIC-RESOURCE-API:services/service/{service-instance-id}/service-data\"/>\n    <parameter name=\"outputPath\" value=\"tmp.ar-url-psd\"/>\n    <parameter name=\"target\" value=\"{service-instance-id}\"/>\n    <parameter name=\"replacement\" value=\"`$tmp.ar.parent-service-instance-id`\"/>\n",
849     "comments": "",
850     "outputs": 1,
851     "x": 681.0001964569092,
852     "y": 759.0002102851868,
853     "z": "7c522092.2b01d",
854     "wires": [
855       []
856     ]
857   },
858   {
859     "id": "8054d01.53e0b3",
860     "type": "execute",
861     "name": "execute RestApiCallNode - get-resource parent service data",
862     "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n    <parameter name='restapiUrl' value='`$prop.controller.url + $tmp.ar-url-psd`' />\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-psd\" />\n\n",
863     "comments": "",
864     "outputs": 1,
865     "x": 748.0001583099365,
866     "y": 794.0002942085266,
867     "z": "7c522092.2b01d",
868     "wires": [
869       [
870         "14706c37.53ff04",
871         "415e2268.5d0d3c"
872       ]
873     ]
874   },
875   {
876     "id": "c6e4843.cf19e78",
877     "type": "success",
878     "name": "success",
879     "xml": "<outcome value='success'>\n",
880     "comments": "",
881     "outputs": 1,
882     "x": 2568.8126583099365,
883     "y": 811.3294506072998,
884     "z": "7c522092.2b01d",
885     "wires": [
886       [
887         "5596c62d.3bd3a8"
888       ]
889     ]
890   },
891   {
892     "id": "e43e013.c1cc8",
893     "type": "other",
894     "name": "other",
895     "xml": "<outcome value='Other'>\n",
896     "comments": "",
897     "outputs": 1,
898     "x": 2602.664144515991,
899     "y": 757.3954172134399,
900     "z": "7c522092.2b01d",
901     "wires": [
902       [
903         "6247e999.5c9548"
904       ]
905     ]
906   },
907   {
908     "id": "d9e74637.02a718",
909     "type": "for",
910     "name": "for arvidx.. mdsal-sd.service-data.vnfs.vnf_length[]",
911     "xml": "<for index='arvidx' start='0' end='`$mdsal-sd.service-data.vnfs.vnf_length`' >\n",
912     "comments": "",
913     "outputs": 1,
914     "x": 2087.813558578491,
915     "y": 1638.9966711997986,
916     "z": "7c522092.2b01d",
917     "wires": [
918       [
919         "9c851968.c2df88"
920       ]
921     ]
922   },
923   {
924     "id": "9c851968.c2df88",
925     "type": "block",
926     "name": "block atmoic",
927     "xml": "<block atomic=\"true\">\n",
928     "atomic": "false",
929     "comments": "",
930     "outputs": 1,
931     "x": 2363.480131149292,
932     "y": 1639.9967041015625,
933     "z": "7c522092.2b01d",
934     "wires": [
935       [
936         "54b544e3.42d4bc"
937       ]
938     ]
939   },
940   {
941     "id": "54b544e3.42d4bc",
942     "type": "switchNode",
943     "name": "switch ActivateSiteInstance",
944     "xml": "<switch test=\"`$mdsal-sd.service-data.vnfs.vnf[$arvidx].vnf-data.request-information.request-action == ActivateSiteInstance`\">\n    \n    \n\n",
945     "comments": "",
946     "outputs": 1,
947     "x": 2600.343832015991,
948     "y": 1644.194667816162,
949     "z": "7c522092.2b01d",
950     "wires": [
951       [
952         "aa6e75db.b48038"
953       ]
954     ]
955   },
956   {
957     "id": "aa6e75db.b48038",
958     "type": "outcomeTrue",
959     "name": "true",
960     "xml": "<outcome value='true'>\n",
961     "comments": "",
962     "outputs": 1,
963     "x": 2809.3433475494385,
964     "y": 1644.19482088089,
965     "z": "7c522092.2b01d",
966     "wires": [
967       [
968         "3132632f.4cad6c"
969       ]
970     ]
971   },
972   {
973     "id": "2aa66f72.5e93f",
974     "type": "set",
975     "name": "set tmp.sitevidx ",
976     "xml": "<set>\n<parameter name='tmp.sitevidx' value='`$arvidx`' />\n\n",
977     "comments": "",
978     "x": 2206.3442974090576,
979     "y": 1748.1952495574951,
980     "z": "7c522092.2b01d",
981     "wires": []
982   },
983   {
984     "id": "4f450f5a.52d67",
985     "type": "set",
986     "name": "set prop.ar-parent-service-instance-id",
987     "xml": "<set>\n<parameter name='prop.ar-parent-service-instance-id' value='`$mdsal-providedAr.connection-attachment-allotted-resource[0].allotted-resource-data.allotted-resource-operation-information.allotted-resource-information.parent-service-instance-id`' />\n",
988     "comments": "",
989     "x": 2122.8124599456787,
990     "y": 1061.996099948883,
991     "z": "7c522092.2b01d",
992     "wires": []
993   },
994   {
995     "id": "2d8849eb.21e096",
996     "type": "for",
997     "name": "for loop aridx - Get role from allotted resource",
998     "xml": "<for index=\"aridx\" start=\"0\" end=\"`$mdsal-providedAr.connection-attachment-allotted-resource[0].allotted-resource-data.allotted-resource-operation-information.connection-attachment-request-input.param_length`\">\n    \n    \n",
999     "comments": "",
1000     "outputs": 1,
1001     "x": 2148.8122539520264,
1002     "y": 1010.4959712028503,
1003     "z": "7c522092.2b01d",
1004     "wires": [
1005       [
1006         "d84d5dca.fda43"
1007       ]
1008     ]
1009   },
1010   {
1011     "id": "d84d5dca.fda43",
1012     "type": "block",
1013     "name": "block",
1014     "xml": "<block>\n",
1015     "atomic": "false",
1016     "comments": "",
1017     "outputs": 1,
1018     "x": 2403.812582015991,
1019     "y": 1007.4964308738708,
1020     "z": "7c522092.2b01d",
1021     "wires": [
1022       [
1023         "f1205a89.ab0798",
1024         "52dd7727.f5fe18"
1025       ]
1026     ]
1027   },
1028   {
1029     "id": "f1205a89.ab0798",
1030     "type": "switchNode",
1031     "name": "switch Role",
1032     "xml": "<switch test=\"`$mdsal-providedAr.connection-attachment-allotted-resource[0].allotted-resource-data.allotted-resource-operation-information.connection-attachment-request-input.param[$aridx].name == 'Role'`\">\n",
1033     "comments": "",
1034     "outputs": 1,
1035     "x": 2533.8124027252197,
1036     "y": 979.496367931366,
1037     "z": "7c522092.2b01d",
1038     "wires": [
1039       [
1040         "c09b2335.3fa2e"
1041       ]
1042     ]
1043   },
1044   {
1045     "id": "c09b2335.3fa2e",
1046     "type": "outcomeTrue",
1047     "name": "true",
1048     "xml": "<outcome value='true'>\n",
1049     "comments": "",
1050     "outputs": 1,
1051     "x": 2674.812734603882,
1052     "y": 978.4963669776917,
1053     "z": "7c522092.2b01d",
1054     "wires": [
1055       [
1056         "a9576f56.b9348"
1057       ]
1058     ]
1059   },
1060   {
1061     "id": "a9576f56.b9348",
1062     "type": "set",
1063     "name": "set prop.role",
1064     "xml": "<set>\n<parameter name='prop.role' value='`$mdsal-providedAr.connection-attachment-allotted-resource[0].allotted-resource-data.allotted-resource-operation-information.connection-attachment-request-input.param[$aridx].value`' />\n",
1065     "comments": "",
1066     "x": 2840.813398361206,
1067     "y": 973.0962700843811,
1068     "z": "7c522092.2b01d",
1069     "wires": []
1070   },
1071   {
1072     "id": "fa09f12.7306b1",
1073     "type": "success",
1074     "name": "success",
1075     "xml": "<outcome value='success'>\n",
1076     "comments": "",
1077     "outputs": 1,
1078     "x": 2420.813081741333,
1079     "y": 1156.9963774681091,
1080     "z": "7c522092.2b01d",
1081     "wires": [
1082       [
1083         "949549ca.fec9a8"
1084       ]
1085     ]
1086   },
1087   {
1088     "id": "a6b8177b.a72a88",
1089     "type": "other",
1090     "name": "other",
1091     "xml": "<outcome value='Other'>\n",
1092     "comments": "",
1093     "outputs": 1,
1094     "x": 2414.6648235321045,
1095     "y": 1113.0624146461487,
1096     "z": "7c522092.2b01d",
1097     "wires": [
1098       [
1099         "ffd5545.891d1a8"
1100       ]
1101     ]
1102   },
1103   {
1104     "id": "6247e999.5c9548",
1105     "type": "block",
1106     "name": "block",
1107     "xml": "<block>\n",
1108     "atomic": "false",
1109     "comments": "",
1110     "outputs": 1,
1111     "x": 2728.8122692108154,
1112     "y": 754.4958505630493,
1113     "z": "7c522092.2b01d",
1114     "wires": [
1115       []
1116     ]
1117   },
1118   {
1119     "id": "5596c62d.3bd3a8",
1120     "type": "block",
1121     "name": "block atomic",
1122     "xml": "<block atomic=\"true\">\n",
1123     "atomic": "false",
1124     "comments": "",
1125     "outputs": 1,
1126     "x": 1858.3121318817139,
1127     "y": 1028.4959712028503,
1128     "z": "7c522092.2b01d",
1129     "wires": [
1130       [
1131         "2d8849eb.21e096",
1132         "4f450f5a.52d67",
1133         "fc8ba65.b9ce358",
1134         "4d147f57.4dac2"
1135       ]
1136     ]
1137   },
1138   {
1139     "id": "ffd5545.891d1a8",
1140     "type": "block",
1141     "name": "block",
1142     "xml": "<block>\n",
1143     "atomic": "false",
1144     "comments": "",
1145     "outputs": 1,
1146     "x": 2544.312942504883,
1147     "y": 1106.496334552765,
1148     "z": "7c522092.2b01d",
1149     "wires": [
1150       []
1151     ]
1152   },
1153   {
1154     "id": "949549ca.fec9a8",
1155     "type": "block",
1156     "name": "block atomic",
1157     "xml": "<block atomic=\"true\">\n",
1158     "atomic": "false",
1159     "comments": "",
1160     "outputs": 1,
1161     "x": 1934.312421798706,
1162     "y": 1233.4959845542908,
1163     "z": "7c522092.2b01d",
1164     "wires": [
1165       [
1166         "3f440bd9.75daa4"
1167       ]
1168     ]
1169   },
1170   {
1171     "id": "9c405c37.6c68b",
1172     "type": "for",
1173     "name": "for loop siteidx - Get site ID from servicedata",
1174     "xml": "<for index=\"siteidx\" start=\"0\" end=\"`$mdsal-sd.service-data.vnfs.vnf[$tmp.sitevidx].vnf-data.vnf-request-input.vnf-input-parameters.param_length`\">\n    \n    \n",
1175     "comments": "",
1176     "outputs": 1,
1177     "x": 2298.3151454925537,
1178     "y": 1789.4970073699951,
1179     "z": "7c522092.2b01d",
1180     "wires": [
1181       [
1182         "b4cc5d95.f9e96"
1183       ]
1184     ]
1185   },
1186   {
1187     "id": "58af8ae9.984c54",
1188     "type": "switchNode",
1189     "name": "switch siteId",
1190     "xml": "<switch test=\"`$mdsal-sd.service-data.vnfs.vnf[$tmp.sitevidx].vnf-data.vnf-request-input.vnf-input-parameters.param[$siteidx].name == 'siteId'`\">\n",
1191     "comments": "",
1192     "outputs": 1,
1193     "x": 2370.317129135132,
1194     "y": 1857.497986793518,
1195     "z": "7c522092.2b01d",
1196     "wires": [
1197       [
1198         "545beb56.93d714"
1199       ]
1200     ]
1201   },
1202   {
1203     "id": "a5f8b7de.41e8d8",
1204     "type": "block",
1205     "name": "block atomic",
1206     "xml": "<block atomic=\"true\">\n",
1207     "atomic": "false",
1208     "comments": "",
1209     "outputs": 1,
1210     "x": 2224.815404891968,
1211     "y": 1930.9970245361328,
1212     "z": "7c522092.2b01d",
1213     "wires": [
1214       [
1215         "40a92cd6.b03f74",
1216         "92d18c15.f7ea6",
1217         "6fed1bc4.775804"
1218       ]
1219     ]
1220   },
1221   {
1222     "id": "e6e54d59.f029",
1223     "type": "execute",
1224     "name": "execute RestApiCallNode delete vpn topology",
1225     "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"templateFileName\" value=\"`$prop.restapi.templateDir + '/sdwan-vpn-topology.json'`\" />\n<parameter name=\"restapiUrl\" value=\"`$prop.sdncRestApi.thirdpartySdnc.url + '/controller/campus/v1/sdwan/overlay-network/' + $prop.vpn1Id + '/topology'`\" />\n<parameter name=\"restapiUser\" value=\"`$prop.sdncRestApi.thirdpartySdnc.user`\" />\n<parameter name=\"restapiPassword\" value=\"`$prop.sdncRestApi.thirdpartySdnc.password`\" />\n<parameter name=\"format\" value=\"json\"/>\n<parameter name=\"httpMethod\" value=\"put\"/>\n<parameter name=\"responsePrefix\" value=\"vpn-result\"/>\n<parameter name=\"trustStoreFileName\" value=\"/opt/onap/sdnc/data/stores/truststore.onap.client.jks\"/>\n<parameter name=\"trustStorePassword\" value=\"adminadmin\"/>\n<parameter name=\"keyStoreFileName\" value=\"/opt/onap/sdnc/data/stores/sdnc.p12\"/>\n<parameter name=\"keyStorePassword\" value=\"adminadmin\"/>\n<parameter name='customHttpHeaders' value=\"`'X-ACCESS-TOKEN=' + $prop.sdncRestApi.token_id`\" />",
1226     "comments": "",
1227     "outputs": 1,
1228     "x": 814.8129138946533,
1229     "y": 1718.4967412948608,
1230     "z": "7c522092.2b01d",
1231     "wires": [
1232       [
1233         "41dfdc02.d499c4",
1234         "13592df6.00f3c2"
1235       ]
1236     ]
1237   },
1238   {
1239     "id": "41dfdc02.d499c4",
1240     "type": "success",
1241     "name": "success",
1242     "xml": "<outcome value='success'>\n",
1243     "comments": "",
1244     "outputs": 1,
1245     "x": 1069.8126811981201,
1246     "y": 1734.4967412948608,
1247     "z": "7c522092.2b01d",
1248     "wires": [
1249       [
1250         "899d6eb4.6e43e"
1251       ]
1252     ]
1253   },
1254   {
1255     "id": "899d6eb4.6e43e",
1256     "type": "block",
1257     "name": "block : atomic",
1258     "xml": "<block atomic=\"true\">",
1259     "atomic": "true",
1260     "comments": "",
1261     "outputs": 1,
1262     "x": 1239.8126201629639,
1263     "y": 1737.4967412948608,
1264     "z": "7c522092.2b01d",
1265     "wires": [
1266       []
1267     ]
1268   },
1269   {
1270     "id": "9460e156.0dbc9",
1271     "type": "returnFailure",
1272     "name": "return failure",
1273     "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 executing Create vpn rest api\" />\n",
1274     "comments": "",
1275     "x": 1239.8127422332764,
1276     "y": 1693.4967412948608,
1277     "z": "7c522092.2b01d",
1278     "wires": []
1279   },
1280   {
1281     "id": "13592df6.00f3c2",
1282     "type": "failure",
1283     "name": "failure",
1284     "xml": "<outcome value='failure'>\n",
1285     "comments": "",
1286     "outputs": 1,
1287     "x": 1072.8126201629639,
1288     "y": 1693.4967412948608,
1289     "z": "7c522092.2b01d",
1290     "wires": [
1291       [
1292         "9460e156.0dbc9"
1293       ]
1294     ]
1295   },
1296   {
1297     "id": "23c44741.0683a8",
1298     "type": "set",
1299     "name": "set controller data",
1300     "xml": "<set>\n<parameter name='prop.sdncRestApi.thirdpartySdnc.url' value=\"`$tmp.aai.esr-thirdparty-sdnc.esr-system-info-list.esr-system-info[0].service-url`\" />\n<parameter name='prop.sdncRestApi.thirdpartySdnc.user' value=\"`$tmp.aai.esr-thirdparty-sdnc.esr-system-info-list.esr-system-info[0].user-name`\" />\n<parameter name='prop.sdncRestApi.thirdpartySdnc.password' value=\"`$tmp.aai.esr-thirdparty-sdnc.esr-system-info-list.esr-system-info[0].password`\" />\n",
1301     "comments": "",
1302     "x": 1240.3796348571777,
1303     "y": 1256.1728954315186,
1304     "z": "7c522092.2b01d",
1305     "wires": []
1306   },
1307   {
1308     "id": "b8f3c1af.8a68d",
1309     "type": "get-resource",
1310     "name": "get-resource esr-thirdparty-sdnc",
1311     "xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\t\tresource=\"esr-thirdparty-sdnc\" \n\t\tkey=\"esr-thirdparty-sdnc.thirdparty-sdnc-id = SDWANController AND \n\t\t     depth = '1'\"\n        pfx='tmp.aai.esr-thirdparty-sdnc' local-only='false' >\n\n",
1312     "comments": "",
1313     "outputs": 1,
1314     "x": 809.8793773651123,
1315     "y": 1307.1732459068298,
1316     "z": "7c522092.2b01d",
1317     "wires": [
1318       [
1319         "6754723.b98c58c",
1320         "6d29272.a552fd8",
1321         "9b336b2d.6145a8"
1322       ]
1323     ]
1324   },
1325   {
1326     "id": "6754723.b98c58c",
1327     "type": "success",
1328     "name": "success",
1329     "xml": "<outcome value='success'>\n",
1330     "comments": "",
1331     "outputs": 1,
1332     "x": 1068.8796691894531,
1333     "y": 1262.1728792190552,
1334     "z": "7c522092.2b01d",
1335     "wires": [
1336       [
1337         "23c44741.0683a8"
1338       ]
1339     ]
1340   },
1341   {
1342     "id": "6d29272.a552fd8",
1343     "type": "not-found",
1344     "name": "not-found",
1345     "xml": "<outcome value='not-found'>\n",
1346     "comments": "",
1347     "outputs": 1,
1348     "x": 1065.3703861236572,
1349     "y": 1300.7469758987427,
1350     "z": "7c522092.2b01d",
1351     "wires": [
1352       [
1353         "34fe0d3d.2375f2"
1354       ]
1355     ]
1356   },
1357   {
1358     "id": "9b336b2d.6145a8",
1359     "type": "other",
1360     "name": "other",
1361     "xml": "<outcome value='Other'>\n",
1362     "comments": "",
1363     "outputs": 1,
1364     "x": 1060.7033939361572,
1365     "y": 1342.080288887024,
1366     "z": "7c522092.2b01d",
1367     "wires": [
1368       [
1369         "6298bcb0.bae674"
1370       ]
1371     ]
1372   },
1373   {
1374     "id": "34fe0d3d.2375f2",
1375     "type": "returnFailure",
1376     "name": "return failure",
1377     "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=\"`'An error occurred while querying esr-thirdparty-sdnc from AnAI with thirdparty-sdnc-id = ' + $tmp.thirdparty-sdnc-id`\" />\n\n",
1378     "comments": "",
1379     "x": 1215.941701889038,
1380     "y": 1295.0327281951904,
1381     "z": "7c522092.2b01d",
1382     "wires": []
1383   },
1384   {
1385     "id": "6298bcb0.bae674",
1386     "type": "returnFailure",
1387     "name": "return failure",
1388     "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=\"`'Unexpected error occurred while querying esr-thirdparty-sdnc from AnAI with thirdparty-sdnc-id = ' + $tmp.thirdparty-sdnc-id`\" />\n\n",
1389     "comments": "",
1390     "x": 1222.4758548736572,
1391     "y": 1343.519497871399,
1392     "z": "7c522092.2b01d",
1393     "wires": []
1394   },
1395   {
1396     "id": "3f440bd9.75daa4",
1397     "type": "for",
1398     "name": "for pnidx.. mdsal-parentsd.service-data.networks.network_length[]",
1399     "xml": "<for index='pnidx' start='0' end='`$mdsal-parentsd.service-data.networks.network_length`' >\n",
1400     "comments": "",
1401     "outputs": 1,
1402     "x": 2259.3119945526123,
1403     "y": 1232.9957122802734,
1404     "z": "7c522092.2b01d",
1405     "wires": [
1406       [
1407         "ad8228ad.984598"
1408       ]
1409     ]
1410   },
1411   {
1412     "id": "adf75159.a4939",
1413     "type": "switchNode",
1414     "name": "switch ActivateSDWANConnectivityInstance",
1415     "xml": "<switch test=\"`$mdsal-parentsd.service-data.networks.network[$pnidx].network-data.request-information.request-action == 'ActivateSDWANConnectivityInstance'`\">\n    \n    \n\n",
1416     "comments": "",
1417     "outputs": 1,
1418     "x": 2182.979818344116,
1419     "y": 1325.9959139823914,
1420     "z": "7c522092.2b01d",
1421     "wires": [
1422       [
1423         "152fe76d.8c87b9"
1424       ]
1425     ]
1426   },
1427   {
1428     "id": "152fe76d.8c87b9",
1429     "type": "outcomeTrue",
1430     "name": "true",
1431     "xml": "<outcome value='true'>\n",
1432     "comments": "",
1433     "outputs": 1,
1434     "x": 2439.97931098938,
1435     "y": 1324.9960441589355,
1436     "z": "7c522092.2b01d",
1437     "wires": [
1438       [
1439         "bff21d24.0b57f"
1440       ]
1441     ]
1442   },
1443   {
1444     "id": "94eca419.a27f98",
1445     "type": "for",
1446     "name": "for loop paramidx - Get topology from servicedata",
1447     "xml": "<for index=\"paramidx\" start=\"0\" end=\"`$mdsal-parentsd.service-data.networks.network[$pnidx].network-data.network-request-input.network-input-parameters.param_length`\">\n    \n    \n",
1448     "comments": "",
1449     "outputs": 1,
1450     "x": 2241.9799976348877,
1451     "y": 1414.9956321716309,
1452     "z": "7c522092.2b01d",
1453     "wires": [
1454       [
1455         "de02d4be.b70b88"
1456       ]
1457     ]
1458   },
1459   {
1460     "id": "de02d4be.b70b88",
1461     "type": "block",
1462     "name": "block",
1463     "xml": "<block>\n",
1464     "atomic": "false",
1465     "comments": "",
1466     "outputs": 1,
1467     "x": 2507.9796867370605,
1468     "y": 1411.9959554672241,
1469     "z": "7c522092.2b01d",
1470     "wires": [
1471       [
1472         "a00734cd.6de4c8",
1473         "641cbedf.bffd9"
1474       ]
1475     ]
1476   },
1477   {
1478     "id": "a00734cd.6de4c8",
1479     "type": "switchNode",
1480     "name": "switch topology",
1481     "xml": "<switch test=\"`$mdsal-parentsd.service-data.networks.network[$pnidx].network-data.network-request-input.network-input-parameters.param[$paramidx].name == 'topology'`\">\n",
1482     "comments": "",
1483     "outputs": 1,
1484     "x": 2678.9800205230713,
1485     "y": 1380.9954652786255,
1486     "z": "7c522092.2b01d",
1487     "wires": [
1488       [
1489         "26c02eae.b386b2"
1490       ]
1491     ]
1492   },
1493   {
1494     "id": "26c02eae.b386b2",
1495     "type": "outcomeTrue",
1496     "name": "true",
1497     "xml": "<outcome value='true'>\n",
1498     "comments": "",
1499     "outputs": 1,
1500     "x": 2830.980010986328,
1501     "y": 1382.9954957962036,
1502     "z": "7c522092.2b01d",
1503     "wires": [
1504       [
1505         "fa1994f9.3ab1f8"
1506       ]
1507     ]
1508   },
1509   {
1510     "id": "fa1994f9.3ab1f8",
1511     "type": "set",
1512     "name": "set topology",
1513     "xml": "<set>\n<parameter name='prop.topology' value='`$mdsal-parentsd.service-data.networks.network[$pnidx].network-data.network-request-input.network-input-parameters.param[$paramidx].value`' />\n",
1514     "comments": "",
1515     "x": 2974.98002243042,
1516     "y": 1382.5954303741455,
1517     "z": "7c522092.2b01d",
1518     "wires": []
1519   },
1520   {
1521     "id": "641cbedf.bffd9",
1522     "type": "switchNode",
1523     "name": "switch vpnId",
1524     "xml": "<switch test=\"`$mdsal-parentsd.service-data.networks.network[$pnidx].network-data.network-request-input.network-input-parameters.param[$paramidx].name == 'vpn-id'`\">\n",
1525     "comments": "",
1526     "outputs": 1,
1527     "x": 2670.6457443237305,
1528     "y": 1423.328447341919,
1529     "z": "7c522092.2b01d",
1530     "wires": [
1531       [
1532         "8be0360b.142cf8"
1533       ]
1534     ]
1535   },
1536   {
1537     "id": "8be0360b.142cf8",
1538     "type": "outcomeTrue",
1539     "name": "true",
1540     "xml": "<outcome value='true'>\n",
1541     "comments": "",
1542     "outputs": 1,
1543     "x": 2822.6457347869873,
1544     "y": 1425.328477859497,
1545     "z": "7c522092.2b01d",
1546     "wires": [
1547       [
1548         "d6238463.67fb38"
1549       ]
1550     ]
1551   },
1552   {
1553     "id": "d6238463.67fb38",
1554     "type": "set",
1555     "name": "set prop.vpn1Id",
1556     "xml": "<set>\n<parameter name='prop.vpn1Id' value='`$mdsal-parentsd.service-data.networks.network[$pnidx].network-data.network-request-input.network-input-parameters.param[$paramidx].value`' />\n",
1557     "comments": "",
1558     "x": 2966.645746231079,
1559     "y": 1424.928412437439,
1560     "z": "7c522092.2b01d",
1561     "wires": []
1562   },
1563   {
1564     "id": "d94628e2.163098",
1565     "type": "execute",
1566     "name": "execute RestApiCallNode delete vpn ",
1567     "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"templateFileName\" value=\"`$prop.restapi.templateDir + '/sdwan-vpn.json'`\" />\n<parameter name=\"restapiUrl\" value=\"`$prop.sdncRestApi.thirdpartySdnc.url + '/controller/campus/v1/sdwan/overlay-network/vpn'`\" />\n<parameter name=\"restapiUser\" value=\"`$prop.sdncRestApi.thirdpartySdnc.user`\" />\n<parameter name=\"restapiPassword\" value=\"`$prop.sdncRestApi.thirdpartySdnc.password`\" />\n<parameter name=\"format\" value=\"json\"/>\n<parameter name=\"httpMethod\" value=\"put\"/>\n<parameter name=\"responsePrefix\" value=\"vpn-result\"/>\n<parameter name=\"trustStoreFileName\" value=\"/opt/onap/sdnc/data/stores/truststore.onap.client.jks\"/>\n<parameter name=\"trustStorePassword\" value=\"adminadmin\"/>\n<parameter name=\"keyStoreFileName\" value=\"/opt/onap/sdnc/data/stores/sdnc.p12\"/>\n<parameter name=\"keyStorePassword\" value=\"adminadmin\"/>\n<parameter name='customHttpHeaders' value=\"`'X-ACCESS-TOKEN=' + $prop.sdncRestApi.token_id`\" />",
1568     "comments": "",
1569     "outputs": 1,
1570     "x": 787.8125858306885,
1571     "y": 1829.9967064857483,
1572     "z": "7c522092.2b01d",
1573     "wires": [
1574       [
1575         "ad8a5a19.5d2dc8",
1576         "a192274c.875558"
1577       ]
1578     ]
1579   },
1580   {
1581     "id": "ad8a5a19.5d2dc8",
1582     "type": "success",
1583     "name": "success",
1584     "xml": "<outcome value='success'>\n",
1585     "comments": "",
1586     "outputs": 1,
1587     "x": 1020.8126640319824,
1588     "y": 1854.996705532074,
1589     "z": "7c522092.2b01d",
1590     "wires": [
1591       [
1592         "f3ab5240.5c692"
1593       ]
1594     ]
1595   },
1596   {
1597     "id": "f3ab5240.5c692",
1598     "type": "block",
1599     "name": "block : atomic",
1600     "xml": "<block atomic=\"true\">",
1601     "atomic": "true",
1602     "comments": "",
1603     "outputs": 1,
1604     "x": 1190.8126029968262,
1605     "y": 1857.996705532074,
1606     "z": "7c522092.2b01d",
1607     "wires": [
1608       []
1609     ]
1610   },
1611   {
1612     "id": "bd5bcef5.5eb46",
1613     "type": "returnFailure",
1614     "name": "return failure",
1615     "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 executing Create vpn rest api\" />\n",
1616     "comments": "",
1617     "x": 1190.8127250671387,
1618     "y": 1813.996705532074,
1619     "z": "7c522092.2b01d",
1620     "wires": []
1621   },
1622   {
1623     "id": "a192274c.875558",
1624     "type": "failure",
1625     "name": "failure",
1626     "xml": "<outcome value='failure'>\n",
1627     "comments": "",
1628     "outputs": 1,
1629     "x": 1023.8126029968262,
1630     "y": 1813.996705532074,
1631     "z": "7c522092.2b01d",
1632     "wires": [
1633       [
1634         "bd5bcef5.5eb46"
1635       ]
1636     ]
1637   },
1638   {
1639     "id": "82cffc44.23091",
1640     "type": "set",
1641     "name": "set prop.name",
1642     "xml": "<set>\n<parameter name='prop.name' value='`$mdsal-providedAr.connection-attachment-allotted-resource[0].allotted-resource-data.allotted-resource-operation-information.connection-attachment-request-input.param[$aridx].value`' />\n",
1643     "comments": "",
1644     "x": 2888.8124027252197,
1645     "y": 1025.9959406852722,
1646     "z": "7c522092.2b01d",
1647     "wires": []
1648   },
1649   {
1650     "id": "52dd7727.f5fe18",
1651     "type": "switchNode",
1652     "name": "switch sdwanVpnName",
1653     "xml": "<switch test=\"`$mdsal-providedAr.connection-attachment-allotted-resource[0].allotted-resource-data.allotted-resource-operation-information.connection-attachment-request-input.param[$aridx].name == 'sdwanVpnName'`\">\n",
1654     "comments": "",
1655     "outputs": 1,
1656     "x": 2569.3122425079346,
1657     "y": 1028.9959330558777,
1658     "z": "7c522092.2b01d",
1659     "wires": [
1660       [
1661         "68d65f0e.41b06"
1662       ]
1663     ]
1664   },
1665   {
1666     "id": "68d65f0e.41b06",
1667     "type": "outcomeTrue",
1668     "name": "true",
1669     "xml": "<outcome value='true'>\n",
1670     "comments": "",
1671     "outputs": 1,
1672     "x": 2740.3124027252197,
1673     "y": 1027.9960017204285,
1674     "z": "7c522092.2b01d",
1675     "wires": [
1676       [
1677         "82cffc44.23091"
1678       ]
1679     ]
1680   },
1681   {
1682     "id": "56e2d584.03ab4c",
1683     "type": "set",
1684     "name": "set prop.ar.provided-allotted-resource-id",
1685     "xml": "<set>\n<parameter name='prop.ar.provided-allotted-resource-id' value='`$mdsal-psd.service-data.provided-allotted-resources.provided-allotted-resource[$pidx].allotted-resource-id`' />\n\n\n",
1686     "comments": "",
1687     "x": 2054.8120098114014,
1688     "y": 769.9960651397705,
1689     "z": "7c522092.2b01d",
1690     "wires": []
1691   },
1692   {
1693     "id": "bb8d7398.e602a",
1694     "type": "block",
1695     "name": "block atomic",
1696     "xml": "<block atomic=\"true\">\n",
1697     "atomic": "false",
1698     "comments": "",
1699     "outputs": 1,
1700     "x": 1367.8424663543701,
1701     "y": 1171.1932725906372,
1702     "z": "7c522092.2b01d",
1703     "wires": [
1704       [
1705         "f1cd9602.486d48"
1706       ]
1707     ]
1708   },
1709   {
1710     "id": "667f1405.f078ac",
1711     "type": "execute",
1712     "name": "generate tmp.ar-url-connection url",
1713     "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n    <parameter name=\"source\" value=\"`$prop.restapi.connection-attachment-allottedresource`\"/>\n    <parameter name=\"outputPath\" value=\"tmp.ar-url-connection\"/>\n    <parameter name=\"target\" value=\"{allotted-resource-id}\"/>\n    <parameter name=\"replacement\" value=\"`$prop.ar.provided-allotted-resource-id`\"/>\n",
1714     "comments": "",
1715     "outputs": 1,
1716     "x": 2039.3296718597412,
1717     "y": 803.3295412063599,
1718     "z": "7c522092.2b01d",
1719     "wires": [
1720       []
1721     ]
1722   },
1723   {
1724     "id": "a0d61f91.413f4",
1725     "type": "execute",
1726     "name": "execute RestApiCallNode - get-resource connection-attachment-allotted-resource",
1727     "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n    <parameter name='restapiUrl' value='`$prop.controller.url + $tmp.ar-url-connection`' />\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-providedAr\" />\n\n",
1728     "comments": "",
1729     "outputs": 1,
1730     "x": 2179.3293018341064,
1731     "y": 838.9958324432373,
1732     "z": "7c522092.2b01d",
1733     "wires": [
1734       [
1735         "e43e013.c1cc8",
1736         "c6e4843.cf19e78"
1737       ]
1738     ]
1739   },
1740   {
1741     "id": "fc8ba65.b9ce358",
1742     "type": "execute",
1743     "name": "execute RestApiCallNode - get parent service data",
1744     "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n    <parameter name='restapiUrl' value='`$prop.controller.url + $tmp.ar-url-connection`' />\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-parentsd\" />\n\n",
1745     "comments": "",
1746     "outputs": 1,
1747     "x": 2154.9965419769287,
1748     "y": 1131.9958891868591,
1749     "z": "7c522092.2b01d",
1750     "wires": [
1751       [
1752         "fa09f12.7306b1",
1753         "a6b8177b.a72a88"
1754       ]
1755     ]
1756   },
1757   {
1758     "id": "bff21d24.0b57f",
1759     "type": "block",
1760     "name": "block atmoic",
1761     "xml": "<block atomic=\"true\">\n",
1762     "atomic": "false",
1763     "comments": "",
1764     "outputs": 1,
1765     "x": 1899.3299617767334,
1766     "y": 1421.663094997406,
1767     "z": "7c522092.2b01d",
1768     "wires": [
1769       [
1770         "94eca419.a27f98",
1771         "ad1d91e2.9fb76",
1772         "b140ba23.8a1858",
1773         "c40e517f.50767"
1774       ]
1775     ]
1776   },
1777   {
1778     "id": "40a92cd6.b03f74",
1779     "type": "set",
1780     "name": "set prop.attach.siteId",
1781     "xml": "<set>\n<parameter name='prop.attach.siteId' value='`$mdsal-sd.service-data.vnfs.vnf[$tmp.sitevidx].vnf-data.vnf-request-input.vnf-input-parameters.param[$siteidx].value`' />\n\n",
1782     "comments": "",
1783     "x": 2490.9982776641846,
1784     "y": 1912.6638507843018,
1785     "z": "7c522092.2b01d",
1786     "wires": []
1787   },
1788   {
1789     "id": "545beb56.93d714",
1790     "type": "outcomeTrue",
1791     "name": "true",
1792     "xml": "<outcome value='true'>\n",
1793     "comments": "",
1794     "outputs": 1,
1795     "x": 2510.9985332489014,
1796     "y": 1857.6636772155762,
1797     "z": "7c522092.2b01d",
1798     "wires": [
1799       [
1800         "a5f8b7de.41e8d8"
1801       ]
1802     ]
1803   },
1804   {
1805     "id": "3132632f.4cad6c",
1806     "type": "block",
1807     "name": "block atmoic",
1808     "xml": "<block atomic=\"true\">\n",
1809     "atomic": "false",
1810     "comments": "",
1811     "outputs": 1,
1812     "x": 2003.6644191741943,
1813     "y": 1743.3301877975464,
1814     "z": "7c522092.2b01d",
1815     "wires": [
1816       [
1817         "9c405c37.6c68b",
1818         "2aa66f72.5e93f"
1819       ]
1820     ]
1821   },
1822   {
1823     "id": "9c9d490e.b9a1b8",
1824     "type": "for",
1825     "name": "for pidx..mdsal-psd.service-data.provided-allotted-resources.provided-allotted-resource[]",
1826     "xml": "<for index='pidx' start='0' end='`$mdsal-psd.service-data.provided-allotted-resources.provided-allotted-resource_length`' >\n",
1827     "comments": "",
1828     "outputs": 1,
1829     "x": 975.1812229156494,
1830     "y": 1206.6358728408813,
1831     "z": "7c522092.2b01d",
1832     "wires": [
1833       [
1834         "bb8d7398.e602a"
1835       ]
1836     ]
1837   },
1838   {
1839     "id": "b4cc5d95.f9e96",
1840     "type": "block",
1841     "name": "block atmoic",
1842     "xml": "<block atomic=\"true\">\n",
1843     "atomic": "false",
1844     "comments": "",
1845     "outputs": 1,
1846     "x": 2215.6647777557373,
1847     "y": 1854.0008354187012,
1848     "z": "7c522092.2b01d",
1849     "wires": [
1850       [
1851         "58af8ae9.984c54"
1852       ]
1853     ]
1854   },
1855   {
1856     "id": "75448c50.567d34",
1857     "type": "set",
1858     "name": "set prop.siteAttachement_length=0",
1859     "xml": "<set>\n<parameter name='prop.siteAttachements_length' value='0' />\n<parameter name='prop.siteIds_length' value='0' />\n\n\n\n",
1860     "comments": "",
1861     "x": 820.9999980926514,
1862     "y": 1149.5312285423279,
1863     "z": "7c522092.2b01d",
1864     "wires": []
1865   },
1866   {
1867     "id": "92d18c15.f7ea6",
1868     "type": "set",
1869     "name": "Add sites to list and update length",
1870     "xml": "<set>\n<parameter name='prop.siteIds[$prop.siteIds_length]' value='`$prop.attach.siteId`' />\n<parameter name='prop.siteIds_length' value='`$prop.siteIds_length + 1`' />\n\n\n\n\n\n\n\n\n\n\n",
1871     "comments": "",
1872     "x": 2518.5021114349365,
1873     "y": 1957.5316557884216,
1874     "z": "7c522092.2b01d",
1875     "wires": []
1876   },
1877   {
1878     "id": "4d147f57.4dac2",
1879     "type": "execute",
1880     "name": "generate prop.ar-parent-service-instance-id",
1881     "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n    <parameter name=\"source\" value=\"/restconf/config/GENERIC-RESOURCE-API:services/service/{service-instance-id}/service-data\"/>      \n    <parameter name=\"outputPath\" value=\"tmp.ar-url-connection\"/>\n    <parameter name=\"target\" value=\"{service-instance-id}\"/>\n    <parameter name=\"replacement\" value=\"`$prop.ar-parent-service-instance-id`\"/>\n\n",
1882     "comments": "",
1883     "outputs": 1,
1884     "x": 2139.5001430511475,
1885     "y": 1094.531409740448,
1886     "z": "7c522092.2b01d",
1887     "wires": [
1888       []
1889     ]
1890   },
1891   {
1892     "id": "ad1d91e2.9fb76",
1893     "type": "set",
1894     "name": "set prop.ar-service-instance-id",
1895     "xml": "<set>\n<parameter name='prop.ar-service-instance-id' value='`$mdsal-providedAr.connection-attachment-allotted-resource[0].allotted-resource-data.connection-attachment-topology.allotted-resource-identifiers.consuming-service-instance-id`' />\n",
1896     "comments": "",
1897     "x": 2172.5005626678467,
1898     "y": 1483.5313277244568,
1899     "z": "7c522092.2b01d",
1900     "wires": []
1901   },
1902   {
1903     "id": "b140ba23.8a1858",
1904     "type": "execute",
1905     "name": "generate prop.ar-service-instance-id",
1906     "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n    <parameter name=\"source\" value=\"/restconf/config/GENERIC-RESOURCE-API:services/service/{service-instance-id}/service-data\"/>      \n    <parameter name=\"outputPath\" value=\"tmp.ar-url-connection\"/>\n    <parameter name=\"target\" value=\"{service-instance-id}\"/>\n    <parameter name=\"replacement\" value=\"`$prop.ar-service-instance-id`\"/>\n\n",
1907     "comments": "",
1908     "outputs": 1,
1909     "x": 2197.8330211639404,
1910     "y": 1516.4096236228943,
1911     "z": "7c522092.2b01d",
1912     "wires": [
1913       []
1914     ]
1915   },
1916   {
1917     "id": "c40e517f.50767",
1918     "type": "execute",
1919     "name": "execute RestApiCallNode - get-resource service data",
1920     "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n    <parameter name='restapiUrl' value='`$prop.controller.url + $tmp.ar-url-connection`' />\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-sd\" />\n\n",
1921     "comments": "",
1922     "outputs": 1,
1923     "x": 2248.833143234253,
1924     "y": 1553.4094424247742,
1925     "z": "7c522092.2b01d",
1926     "wires": [
1927       [
1928         "6f8bfcf3.2cbda4",
1929         "671b3b67.714c24"
1930       ]
1931     ]
1932   },
1933   {
1934     "id": "671b3b67.714c24",
1935     "type": "success",
1936     "name": "success",
1937     "xml": "<outcome value='success'>\n",
1938     "comments": "",
1939     "outputs": 1,
1940     "x": 2527.500207901001,
1941     "y": 1549.5311541557312,
1942     "z": "7c522092.2b01d",
1943     "wires": [
1944       [
1945         "1fc5d55c.4c864b"
1946       ]
1947     ]
1948   },
1949   {
1950     "id": "6f8bfcf3.2cbda4",
1951     "type": "other",
1952     "name": "other",
1953     "xml": "<outcome value='Other'>\n",
1954     "comments": "",
1955     "outputs": 1,
1956     "x": 2525.3525371551514,
1957     "y": 1510.5972819328308,
1958     "z": "7c522092.2b01d",
1959     "wires": [
1960       [
1961         "2fe21dd5.a9ca62"
1962       ]
1963     ]
1964   },
1965   {
1966     "id": "2fe21dd5.a9ca62",
1967     "type": "block",
1968     "name": "block",
1969     "xml": "<block>\n",
1970     "atomic": "false",
1971     "comments": "",
1972     "outputs": 1,
1973     "x": 2655.0007305145264,
1974     "y": 1504.0312418937683,
1975     "z": "7c522092.2b01d",
1976     "wires": [
1977       []
1978     ]
1979   },
1980   {
1981     "id": "1fc5d55c.4c864b",
1982     "type": "block",
1983     "name": "block atmoic",
1984     "xml": "<block atomic=\"true\">\n",
1985     "atomic": "false",
1986     "comments": "",
1987     "outputs": 1,
1988     "x": 2676.5011043548584,
1989     "y": 1550.5313391685486,
1990     "z": "7c522092.2b01d",
1991     "wires": [
1992       [
1993         "d9e74637.02a718"
1994       ]
1995     ]
1996   },
1997   {
1998     "id": "f1cd9602.486d48",
1999     "type": "switchNode",
2000     "name": "switch allotted resource ID match",
2001     "xml": "<switch test=\"`$mdsal-psd.service-data.provided-allotted-resources.provided-allotted-resource[$pidx].allotted-resource-id == $tmp.ar.allotted-resource-id`\">",
2002     "comments": "",
2003     "outputs": 1,
2004     "x": 1591.5001125335693,
2005     "y": 1168.031301021576,
2006     "z": "7c522092.2b01d",
2007     "wires": [
2008       [
2009         "a2faeb8f.9adb58"
2010       ]
2011     ]
2012   },
2013   {
2014     "id": "a2faeb8f.9adb58",
2015     "type": "outcomeFalse",
2016     "name": "false",
2017     "xml": "<outcome value='false'>\n",
2018     "comments": "",
2019     "outputs": 1,
2020     "x": 1670.5001773834229,
2021     "y": 805.0312938690186,
2022     "z": "7c522092.2b01d",
2023     "wires": [
2024       [
2025         "7036cf78.a5aa3"
2026       ]
2027     ]
2028   },
2029   {
2030     "id": "7036cf78.a5aa3",
2031     "type": "block",
2032     "name": "block atomic",
2033     "xml": "<block atomic=\"true\">\n",
2034     "atomic": "false",
2035     "comments": "",
2036     "outputs": 1,
2037     "x": 1812.5004253387451,
2038     "y": 804.0312347412109,
2039     "z": "7c522092.2b01d",
2040     "wires": [
2041       [
2042         "56e2d584.03ab4c",
2043         "667f1405.f078ac",
2044         "a0d61f91.413f4"
2045       ]
2046     ]
2047   },
2048   {
2049     "id": "15b04770.9781e9",
2050     "type": "comment",
2051     "name": "if allotted resource Id match with the incomming allotted resource ID,  sites in this service vnf should not be included",
2052     "info": "parent instId 200 |  parent instId 200\nservice instId 100| service InstId 200\n site1            |       site2\n allotted resId 1 | allotted resId 2 \n --------------------------------------\n Deactivate:\n loop for provided allotted res ID\n If allotted resId 1 matches with incomming allotted resource Id then we should delete the sites available in the service data 100\n for this we have to send request for deleting with site IDs site2 without including site1.\n \n \n ",
2053     "comments": "",
2054     "x": 1765.5000286102295,
2055     "y": 737.0312957763672,
2056     "z": "7c522092.2b01d",
2057     "wires": []
2058   },
2059   {
2060     "id": "7505e39f.a765fc",
2061     "type": "comment",
2062     "name": "loop for provided allotted rsource Id",
2063     "info": "",
2064     "comments": "",
2065     "x": 1087.4999980926514,
2066     "y": 1170.5312895774841,
2067     "z": "7c522092.2b01d",
2068     "wires": []
2069   },
2070   {
2071     "id": "2f9e3c20.0207a4",
2072     "type": "comment",
2073     "name": "get allotted resource for the allotted resource ID",
2074     "info": "",
2075     "comments": "",
2076     "x": 2326.500326156616,
2077     "y": 738.5311737060547,
2078     "z": "7c522092.2b01d",
2079     "wires": []
2080   },
2081   {
2082     "id": "7fd25f7d.205ea",
2083     "type": "comment",
2084     "name": "get parent service data to get connectivity which has connectivity and vpn ID",
2085     "info": "",
2086     "comments": "",
2087     "x": 2109.4998531341553,
2088     "y": 965.5312514305115,
2089     "z": "7c522092.2b01d",
2090     "wires": []
2091   },
2092   {
2093     "id": "53cc3005.40ef",
2094     "type": "comment",
2095     "name": "get service data from service instance id from allotted reosurce Id to get sites vnf",
2096     "info": "",
2097     "comments": "",
2098     "x": 2298.4998531341553,
2099     "y": 1447.531051158905,
2100     "z": "7c522092.2b01d",
2101     "wires": []
2102   },
2103   {
2104     "id": "965fc969.fd32d8",
2105     "type": "call",
2106     "name": "call sdwan-vnf-topology-operation-underlay for delete",
2107     "xml": "<call module='GENERIC-RESOURCE-API' rpc='sdwan-wanport-vnf-topology-operation-underlay' mode='sync' >\n",
2108     "comments": "",
2109     "outputs": 1,
2110     "x": 848.5001163482666,
2111     "y": 1634.531358242035,
2112     "z": "7c522092.2b01d",
2113     "wires": [
2114       []
2115     ]
2116   },
2117   {
2118     "id": "6fed1bc4.775804",
2119     "type": "set",
2120     "name": "Add site attachement to list and update length",
2121     "xml": "<set>\n<parameter name='prop.siteAttachements[$prop.siteAttachements_length].siteId' value='`$prop.attach.siteId`' />\n<parameter name='prop.siteAttachements[$prop.siteAttachements_length].roles[0]' value='`$prop.role`' />\n<parameter name='prop.siteAttachements[$prop.siteAttachements_length].roles_length' value='1' />\n<parameter name='prop.siteAttachements_length' value='`$prop.siteAttachements_length + 1`' />\n\n\n\n\n\n\n\n\n\n\n\n\n",
2122     "comments": "",
2123     "x": 2548.2500896453857,
2124     "y": 1998.2539830207825,
2125     "z": "7c522092.2b01d",
2126     "wires": []
2127   },
2128   {
2129     "id": "d6353ac9.cd8368",
2130     "type": "execute",
2131     "name": "execute RestApiCallNode Get token",
2132     "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"templateFileName\" value=\"`$prop.restapi.templateDir + '/actokentemplate.json'`\" />\n<parameter name=\"restapiUrl\" value=\"`$prop.sdncRestApi.thirdpartySdnc.url + '/controller/v2/tokens'`\" />\n<parameter name=\"format\" value=\"json\"/>\n<parameter name=\"httpMethod\" value=\"post\"/>\n<parameter name=\"responsePrefix\" value=\"token-result\"/>\n<parameter name=\"trustStoreFileName\" value=\"/opt/onap/sdnc/data/stores/truststore.onap.client.jks\"/>\n<parameter name=\"trustStorePassword\" value=\"adminadmin\"/>\n<parameter name=\"keyStoreFileName\" value=\"/opt/onap/sdnc/data/stores/sdnc.p12\"/>\n<parameter name=\"keyStorePassword\" value=\"adminadmin\"/>",
2133     "comments": "",
2134     "outputs": 1,
2135     "x": 822.000036239624,
2136     "y": 1397.000150680542,
2137     "z": "7c522092.2b01d",
2138     "wires": [
2139       [
2140         "58744a52.9052b4",
2141         "2cb21a31.a626b6"
2142       ]
2143     ]
2144   },
2145   {
2146     "id": "58744a52.9052b4",
2147     "type": "success",
2148     "name": "success",
2149     "xml": "<outcome value='success'>\n",
2150     "comments": "",
2151     "outputs": 1,
2152     "x": 1074.0001621246338,
2153     "y": 1377.9999685287476,
2154     "z": "7c522092.2b01d",
2155     "wires": [
2156       [
2157         "1cd6b02.062c05"
2158       ]
2159     ]
2160   },
2161   {
2162     "id": "1cd6b02.062c05",
2163     "type": "set",
2164     "name": "set token-id",
2165     "xml": "<set>\n<parameter name='prop.sdncRestApi.token_id' value='`$token-result.data.token_id`' />\n",
2166     "comments": "",
2167     "x": 1223.0001621246338,
2168     "y": 1376.9999380111694,
2169     "z": "7c522092.2b01d",
2170     "wires": []
2171   },
2172   {
2173     "id": "8b511642.cc8a88",
2174     "type": "returnFailure",
2175     "name": "return failure",
2176     "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 executing get token rest api\" />\n",
2177     "comments": "",
2178     "x": 1214.0001888275146,
2179     "y": 1411.3932132720947,
2180     "z": "7c522092.2b01d",
2181     "wires": []
2182   },
2183   {
2184     "id": "2cb21a31.a626b6",
2185     "type": "failure",
2186     "name": "failure",
2187     "xml": "<outcome value='failure'>\n",
2188     "comments": "",
2189     "outputs": 1,
2190     "x": 1066.2501964569092,
2191     "y": 1413.6430912017822,
2192     "z": "7c522092.2b01d",
2193     "wires": [
2194       [
2195         "8b511642.cc8a88"
2196       ]
2197     ]
2198   },
2199   {
2200     "id": "de426682.23e5b8",
2201     "type": "get-resource",
2202     "name": "get-resource service-subscription",
2203     "xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\t\tresource=\"service-subscription\" \n        key= 'service-subscription.service-type = $connection-attachment-topology-operation-input.service-information.subscription-service-type \n        AND customer.global-customer-id = $connection-attachment-topology-operation-input.service-information.global-customer-id'\n      force=\"true\" pfx=\"tmp.AnAI-data-tenant\">      ",
2204     "comments": "",
2205     "outputs": 1,
2206     "x": 812.8955059051514,
2207     "y": 1509.5620489120483,
2208     "z": "7c522092.2b01d",
2209     "wires": [
2210       [
2211         "4a6eca43.810a44",
2212         "6a29a6d.e51e358"
2213       ]
2214     ]
2215   },
2216   {
2217     "id": "9c358a1f.148518",
2218     "type": "execute",
2219     "name": "execute RestApiCallNode Create tenant auth",
2220     "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"restapiUrl\" value=\"`$prop.sdncRestApi.thirdpartySdnc.url + '/controller/campus/v1/baseservice/tenants/authorization/' + $prop.tenant-id`\" />\n<parameter name=\"restapiUser\" value=\"`$prop.sdncRestApi.thirdpartySdnc.user`\" />\n<parameter name=\"restapiPassword\" value=\"`$prop.sdncRestApi.thirdpartySdnc.password`\" />\n<parameter name=\"format\" value=\"json\"/>\n<parameter name=\"httpMethod\" value=\"put\"/>\n<parameter name=\"responsePrefix\" value=\"tenant-result\"/>\n<parameter name=\"trustStoreFileName\" value=\"/opt/onap/sdnc/data/stores/truststore.onap.client.jks\"/>\n<parameter name=\"trustStorePassword\" value=\"adminadmin\"/>\n<parameter name=\"keyStoreFileName\" value=\"/opt/onap/sdnc/data/stores/sdnc.p12\"/>\n<parameter name=\"keyStorePassword\" value=\"adminadmin\"/>\n<parameter name='customHttpHeaders' value=\"`'X-ACCESS-TOKEN=' + $prop.sdncRestApi.token_id`\" />",
2221     "comments": "",
2222     "outputs": 1,
2223     "x": 850.3955669403076,
2224     "y": 1576.4548950195312,
2225     "z": "7c522092.2b01d",
2226     "wires": [
2227       []
2228     ]
2229   },
2230   {
2231     "id": "6a29a6d.e51e358",
2232     "type": "failure",
2233     "name": "failure",
2234     "xml": "<outcome value='failure'>\n",
2235     "comments": "",
2236     "outputs": 1,
2237     "x": 1017.0739574432373,
2238     "y": 1534.52241897583,
2239     "z": "7c522092.2b01d",
2240     "wires": [
2241       [
2242         "bcbf10f7.b7993"
2243       ]
2244     ]
2245   },
2246   {
2247     "id": "4a6eca43.810a44",
2248     "type": "success",
2249     "name": "success",
2250     "xml": "<outcome value='success'>\n",
2251     "comments": "",
2252     "outputs": 1,
2253     "x": 1023.3953685760498,
2254     "y": 1482.3081073760986,
2255     "z": "7c522092.2b01d",
2256     "wires": [
2257       [
2258         "67730720.8e4a18"
2259       ]
2260     ]
2261   },
2262   {
2263     "id": "bcbf10f7.b7993",
2264     "type": "returnFailure",
2265     "name": "return failure",
2266     "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 executing get token rest api\" />\n",
2267     "comments": "",
2268     "x": 1169.8239574432373,
2269     "y": 1534.2724800109863,
2270     "z": "7c522092.2b01d",
2271     "wires": []
2272   },
2273   {
2274     "id": "67730720.8e4a18",
2275     "type": "switchNode",
2276     "name": "switch temp-ub-sub-account-id",
2277     "xml": "<switch test='`$tmp.AnAI-data-tenant.temp-ub-sub-account-id`'>\n",
2278     "comments": "",
2279     "outputs": 1,
2280     "x": 1224.8955974578857,
2281     "y": 1474.3121299743652,
2282     "z": "7c522092.2b01d",
2283     "wires": [
2284       [
2285         "ffa06abb.9a2a48",
2286         "cc923e40.7eb57"
2287       ]
2288     ]
2289   },
2290   {
2291     "id": "cc923e40.7eb57",
2292     "type": "outcome",
2293     "name": "NULL",
2294     "xml": "<outcome value=''>",
2295     "comments": "",
2296     "outputs": 1,
2297     "x": 1458.0039043426514,
2298     "y": 1433.0039434432983,
2299     "z": "7c522092.2b01d",
2300     "wires": [
2301       [
2302         "7c9ff36f.d8d7bc"
2303       ]
2304     ]
2305   },
2306   {
2307     "id": "ffa06abb.9a2a48",
2308     "type": "other",
2309     "name": "Other",
2310     "xml": "<outcome value='Other'>",
2311     "comments": "",
2312     "outputs": 1,
2313     "x": 1411.2894840240479,
2314     "y": 1527.0040216445923,
2315     "z": "7c522092.2b01d",
2316     "wires": [
2317       [
2318         "d1efa0cc.71a21"
2319       ]
2320     ]
2321   },
2322   {
2323     "id": "d1efa0cc.71a21",
2324     "type": "set",
2325     "name": "set prop.tenant-id",
2326     "xml": "<set>\n<parameter name='prop.tenant-id' value='`$tmp.AnAI-data-tenant.temp-ub-sub-account-id`' />\n",
2327     "comments": "",
2328     "x": 1580.1466655731201,
2329     "y": 1525.1110353469849,
2330     "z": "7c522092.2b01d",
2331     "wires": []
2332   },
2333   {
2334     "id": "7c9ff36f.d8d7bc",
2335     "type": "returnFailure",
2336     "name": "return failure",
2337     "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 executing get token rest api\" />\n",
2338     "comments": "",
2339     "x": 1570.4322299957275,
2340     "y": 1477.8253078460693,
2341     "z": "7c522092.2b01d",
2342     "wires": []
2343   },
2344   {
2345     "id": "7e6a4a74.fb8064",
2346     "type": "for",
2347     "name": "for ntidx.. mdsal-psd.service-data.networks.network_length[]",
2348     "xml": "<for index='ntidx' start='0' end='`$mdsal-psd.service-data.networks.network_length`' >\n",
2349     "comments": "",
2350     "outputs": 1,
2351     "x": 776.0312480926514,
2352     "y": 903.0312495231628,
2353     "z": "7c522092.2b01d",
2354     "wires": [
2355       [
2356         "b21fb0ff.7db48"
2357       ]
2358     ]
2359   },
2360   {
2361     "id": "ad8228ad.984598",
2362     "type": "block",
2363     "name": "block atomic",
2364     "xml": "<block atomic=\"true\">\n",
2365     "atomic": "false",
2366     "comments": "",
2367     "outputs": 1,
2368     "x": 1907.031270980835,
2369     "y": 1324.0312895774841,
2370     "z": "7c522092.2b01d",
2371     "wires": [
2372       [
2373         "adf75159.a4939"
2374       ]
2375     ]
2376   },
2377   {
2378     "id": "b21fb0ff.7db48",
2379     "type": "block",
2380     "name": "block atomic",
2381     "xml": "<block atomic=\"true\">\n",
2382     "atomic": "false",
2383     "comments": "",
2384     "outputs": 1,
2385     "x": 740.0312480926514,
2386     "y": 975.0312495231628,
2387     "z": "7c522092.2b01d",
2388     "wires": [
2389       [
2390         "e497173b.c24408"
2391       ]
2392     ]
2393   },
2394   {
2395     "id": "e497173b.c24408",
2396     "type": "switchNode",
2397     "name": "switch ActivateSDWANConnectivityInstance",
2398     "xml": "<switch test=\"`$mdsal-psd.service-data.networks.network[$ntidx].network-data.request-information.request-action == 'ActivateSDWANConnectivityInstance'`\">\n    \n    \n\n",
2399     "comments": "",
2400     "outputs": 1,
2401     "x": 1015.9797954559326,
2402     "y": 976.9958739280701,
2403     "z": "7c522092.2b01d",
2404     "wires": [
2405       [
2406         "d6c139b3.090dd8"
2407       ]
2408     ]
2409   },
2410   {
2411     "id": "d6c139b3.090dd8",
2412     "type": "outcomeTrue",
2413     "name": "true",
2414     "xml": "<outcome value='true'>\n",
2415     "comments": "",
2416     "outputs": 1,
2417     "x": 1272.9792881011963,
2418     "y": 975.9960041046143,
2419     "z": "7c522092.2b01d",
2420     "wires": [
2421       [
2422         "b4139f80.a76b4"
2423       ]
2424     ]
2425   },
2426   {
2427     "id": "b4139f80.a76b4",
2428     "type": "block",
2429     "name": "block atmoic",
2430     "xml": "<block atomic=\"true\">\n",
2431     "atomic": "false",
2432     "comments": "",
2433     "outputs": 1,
2434     "x": 732.3299388885498,
2435     "y": 1072.6630549430847,
2436     "z": "7c522092.2b01d",
2437     "wires": [
2438       [
2439         "ba5ecb28.66e198"
2440       ]
2441     ]
2442   },
2443   {
2444     "id": "ba5ecb28.66e198",
2445     "type": "for",
2446     "name": "for loop paramidx - Get topology from servicedata",
2447     "xml": "<for index=\"paramidx\" start=\"0\" end=\"`$mdsal-psd.service-data.networks.network[$ntidx].network-data.network-request-input.network-input-parameters.param_length`\">\n    \n    \n",
2448     "comments": "",
2449     "outputs": 1,
2450     "x": 1011.9800395965576,
2451     "y": 1061.995677471161,
2452     "z": "7c522092.2b01d",
2453     "wires": [
2454       [
2455         "bcfcaf76.f471a"
2456       ]
2457     ]
2458   },
2459   {
2460     "id": "bcfcaf76.f471a",
2461     "type": "block",
2462     "name": "block",
2463     "xml": "<block>\n",
2464     "atomic": "false",
2465     "comments": "",
2466     "outputs": 1,
2467     "x": 1209.9796695709229,
2468     "y": 1114.996165752411,
2469     "z": "7c522092.2b01d",
2470     "wires": [
2471       [
2472         "808f1a6b.ade978",
2473         "8fc5fee9.2e70f",
2474         "7c2cd6d7.da9468"
2475       ]
2476     ]
2477   },
2478   {
2479     "id": "8fc5fee9.2e70f",
2480     "type": "switchNode",
2481     "name": "switch vpnId",
2482     "xml": "<switch test=\"`$mdsal-psd.service-data.networks.network[$ntidx].network-data.network-request-input.network-input-parameters.param[$paramidx].name == 'vpn-id'`\">\n\n",
2483     "comments": "",
2484     "outputs": 1,
2485     "x": 1359.6458168029785,
2486     "y": 1129.3284697532654,
2487     "z": "7c522092.2b01d",
2488     "wires": [
2489       [
2490         "5eeff931.68f088"
2491       ]
2492     ]
2493   },
2494   {
2495     "id": "808f1a6b.ade978",
2496     "type": "switchNode",
2497     "name": "switch topology",
2498     "xml": "<switch test=\"`$mdsal-psd.service-data.networks.network[$ntidx].network-data.network-request-input.network-input-parameters.param[$paramidx].name == 'topology'`\">\n",
2499     "comments": "",
2500     "outputs": 1,
2501     "x": 1367.9800930023193,
2502     "y": 1086.995487689972,
2503     "z": "7c522092.2b01d",
2504     "wires": [
2505       [
2506         "385cddcb.23c372"
2507       ]
2508     ]
2509   },
2510   {
2511     "id": "5eeff931.68f088",
2512     "type": "outcomeTrue",
2513     "name": "true",
2514     "xml": "<outcome value='true'>\n",
2515     "comments": "",
2516     "outputs": 1,
2517     "x": 1511.6458072662354,
2518     "y": 1131.3285002708435,
2519     "z": "7c522092.2b01d",
2520     "wires": [
2521       [
2522         "827b7756.0101b8"
2523       ]
2524     ]
2525   },
2526   {
2527     "id": "385cddcb.23c372",
2528     "type": "outcomeTrue",
2529     "name": "true",
2530     "xml": "<outcome value='true'>\n",
2531     "comments": "",
2532     "outputs": 1,
2533     "x": 1519.9800834655762,
2534     "y": 1088.99551820755,
2535     "z": "7c522092.2b01d",
2536     "wires": [
2537       [
2538         "9cc5fb84.591a88"
2539       ]
2540     ]
2541   },
2542   {
2543     "id": "9cc5fb84.591a88",
2544     "type": "set",
2545     "name": "set topology",
2546     "xml": "<set>\n<parameter name='prop.topology' value='`$mdsal-psd.service-data.networks.network[$ntidx].network-data.network-request-input.network-input-parameters.param[$paramidx].value`' />\n",
2547     "comments": "",
2548     "x": 1604.9800968170166,
2549     "y": 1026.5954375267029,
2550     "z": "7c522092.2b01d",
2551     "wires": []
2552   },
2553   {
2554     "id": "827b7756.0101b8",
2555     "type": "set",
2556     "name": "set prop.vpn1Id",
2557     "xml": "<set>\n<parameter name='prop.vpn1Id' value='`$mdsal-psd.service-data.networks.network[$ntidx].network-data.network-request-input.network-input-parameters.param[$paramidx].value`' />\n",
2558     "comments": "",
2559     "x": 1659.6458721160889,
2560     "y": 1120.9284148216248,
2561     "z": "7c522092.2b01d",
2562     "wires": []
2563   },
2564   {
2565     "id": "7c2cd6d7.da9468",
2566     "type": "switchNode",
2567     "name": "switch vpn name",
2568     "xml": "<switch test=\"`$mdsal-psd.service-data.networks.network[$ntidx].network-data.network-request-input.network-input-parameters.param[$paramidx].name == 'name'`\">\n",
2569     "comments": "",
2570     "outputs": 1,
2571     "x": 1331.031270980835,
2572     "y": 1045.031277179718,
2573     "z": "7c522092.2b01d",
2574     "wires": [
2575       [
2576         "829e0f12.c7157"
2577       ]
2578     ]
2579   },
2580   {
2581     "id": "829e0f12.c7157",
2582     "type": "outcomeTrue",
2583     "name": "true",
2584     "xml": "<outcome value='true'>\n",
2585     "comments": "",
2586     "outputs": 1,
2587     "x": 1441.0312747955322,
2588     "y": 989.0312466621399,
2589     "z": "7c522092.2b01d",
2590     "wires": [
2591       [
2592         "16fe2ddd.1cfe92"
2593       ]
2594     ]
2595   },
2596   {
2597     "id": "16fe2ddd.1cfe92",
2598     "type": "set",
2599     "name": "set vpn name",
2600     "xml": "<set>\n<parameter name='prop.name' value='`$mdsal-psd.service-data.networks.network[$ntidx].network-data.network-request-input.network-input-parameters.param[$paramidx].value`' />\n",
2601     "comments": "",
2602     "x": 1562.0312747955322,
2603     "y": 954.6312832832336,
2604     "z": "7c522092.2b01d",
2605     "wires": []
2606   }
2607 ]