SOTN siteInstance DGs
[sdnc/oam.git] / platform-logic / generic-resource-api / src / main / json / GENERIC-RESOURCE-API_site-vnf-topology-operation-deactivate.json
1 [
2   {
3     "id": "4957f22c.5e2f1c",
4     "type": "service-logic",
5     "name": "GENERIC-RESOURCE-API ${project.version}",
6     "module": "GENERIC-RESOURCE-API",
7     "version": "${project.version}",
8     "comments": "",
9     "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}'>",
10     "outputs": 1,
11     "x": 212,
12     "y": 189.23809814453125,
13     "z": "a0c86160.b392c",
14     "wires": [
15       [
16         "c6d0a907.91d928"
17       ]
18     ]
19   },
20   {
21     "id": "91cb305c.596c5",
22     "type": "dgstart",
23     "name": "DGSTART",
24     "outputs": 1,
25     "x": 136.71429443359375,
26     "y": 148.99998664855957,
27     "z": "a0c86160.b392c",
28     "wires": [
29       [
30         "4957f22c.5e2f1c"
31       ]
32     ]
33   },
34   {
35     "id": "c6d0a907.91d928",
36     "type": "method",
37     "name": "method site-vnf-topology-operation-deactivate",
38     "xml": "<method rpc='site-vnf-topology-operation-deactivate' mode='sync'>",
39     "comments": "",
40     "outputs": 1,
41     "x": 205.1429214477539,
42     "y": 228.99998092651367,
43     "z": "a0c86160.b392c",
44     "wires": [
45       [
46         "1123bd39.e47163"
47       ]
48     ]
49   },
50   {
51     "id": "1123bd39.e47163",
52     "type": "block",
53     "name": "block : atomic",
54     "xml": "<block atomic=\"true\">",
55     "atomic": "true",
56     "outputs": 1,
57     "x": 245.88101959228516,
58     "y": 300.69349193573,
59     "z": "a0c86160.b392c",
60     "wires": [
61       [
62         "cb3ab0a3.18f7a",
63         "9f93822a.38acf",
64         "79d541bc.c80a2",
65         "fd9e7734.9c2008",
66         "1b149ea5.120f71",
67         "75e2f346.784bbc",
68         "afea211a.e0c0a",
69         "f2b6a437.7e6008"
70       ]
71     ]
72   },
73   {
74     "id": "1b149ea5.120f71",
75     "type": "block",
76     "name": "block : atomic",
77     "xml": "<block atomic=\"true\">",
78     "atomic": "true",
79     "outputs": 1,
80     "x": 652.9286193847656,
81     "y": 165.80950736999512,
82     "z": "a0c86160.b392c",
83     "wires": [
84       [
85         "3c6f9bb2.b231d4",
86         "233b3043.9673c",
87         "a8b21c1e.3abec",
88         "35b35733.634ca8"
89       ]
90     ]
91   },
92   {
93     "id": "3c6f9bb2.b231d4",
94     "type": "switchNode",
95     "name": "switch service-data.vnfs.vnf_length",
96     "xml": "<switch test='`$service-data.vnfs.vnf_length`'>\n",
97     "comments": "",
98     "outputs": 1,
99     "x": 932.817626953125,
100     "y": 191.14282512664795,
101     "z": "a0c86160.b392c",
102     "wires": [
103       [
104         "bcdc7cd3.0b4fb",
105         "e83c4587.34b728"
106       ]
107     ]
108   },
109   {
110     "id": "bcdc7cd3.0b4fb",
111     "type": "other",
112     "name": "outcome Null",
113     "xml": "<outcome value=''>\n",
114     "comments": "",
115     "outputs": 1,
116     "x": 1186.4287490844727,
117     "y": 172.8095121383667,
118     "z": "a0c86160.b392c",
119     "wires": [
120       [
121         "e5a3d434.f56108"
122       ]
123     ]
124   },
125   {
126     "id": "e5a3d434.f56108",
127     "type": "returnFailure",
128     "name": "return failure",
129     "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-topology-operation-input.vnf-request-input.vnf-id not found in service-data\" />\n",
130     "comments": "",
131     "x": 1360.4287643432617,
132     "y": 172.8095121383667,
133     "z": "a0c86160.b392c",
134     "wires": []
135   },
136   {
137     "id": "e83c4587.34b728",
138     "type": "other",
139     "name": "other",
140     "xml": "<outcome value='Other'>\n",
141     "comments": "",
142     "outputs": 1,
143     "x": 1169.9287185668945,
144     "y": 208.80952262878418,
145     "z": "a0c86160.b392c",
146     "wires": [
147       [
148         "da47adb6.7e467"
149       ]
150     ]
151   },
152   {
153     "id": "da47adb6.7e467",
154     "type": "block",
155     "name": "block : atomic",
156     "xml": "<block atomic=\"true\">",
157     "atomic": "true",
158     "outputs": 1,
159     "x": 1351.9289169311523,
160     "y": 219.80952835083008,
161     "z": "a0c86160.b392c",
162     "wires": [
163       [
164         "d1af55da.8f3b18",
165         "6cc13507.3cb79c"
166       ]
167     ]
168   },
169   {
170     "id": "6cc13507.3cb79c",
171     "type": "switchNode",
172     "name": "switch tmp.vidx ",
173     "xml": "<switch test=\"`$tmp.vidx`\">\n\n",
174     "comments": "",
175     "outputs": 1,
176     "x": 1541.928810119629,
177     "y": 236.80952262878418,
178     "z": "a0c86160.b392c",
179     "wires": [
180       [
181         "7a52469e.0fa9f8"
182       ]
183     ]
184   },
185   {
186     "id": "a8b21c1e.3abec",
187     "type": "switchNode",
188     "name": "switch vnf-level-oper-status",
189     "xml": "<switch test='`$service-data.vnfs.vnf[$tmp.vidx].vnf-data.vnf-level-oper-status.order-status`'>\n",
190     "comments": "",
191     "outputs": 1,
192     "x": 896.0954284667969,
193     "y": 286.69837856292725,
194     "z": "a0c86160.b392c",
195     "wires": [
196       [
197         "263aaa11.82a2b6",
198         "59d6bbbd.f09a24"
199       ]
200     ]
201   },
202   {
203     "id": "263aaa11.82a2b6",
204     "type": "outcome",
205     "name": "outcome Active",
206     "xml": "<outcome value='Active'>\n",
207     "comments": "",
208     "outputs": 1,
209     "x": 1202.9287414550781,
210     "y": 267.8095006942749,
211     "z": "a0c86160.b392c",
212     "wires": [
213       [
214         "894517c4.94cc68"
215       ]
216     ]
217   },
218   {
219     "id": "59d6bbbd.f09a24",
220     "type": "other",
221     "name": "other",
222     "xml": "<outcome value='Other'>\n",
223     "comments": "",
224     "outputs": 1,
225     "x": 1170.9287414550781,
226     "y": 307.8095006942749,
227     "z": "a0c86160.b392c",
228     "wires": [
229       [
230         "de14e045.7333a"
231       ]
232     ]
233   },
234   {
235     "id": "de14e045.7333a",
236     "type": "returnFailure",
237     "name": "return failure",
238     "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 is not in appropriate state for activate. Current state is ' + $service-data.vnfs.vnf[$tmp.nidx].vnf-data.vnf-level-oper-status.order-status`\" />",
239     "comments": "",
240     "x": 1328.4287414550781,
241     "y": 307.8095006942749,
242     "z": "a0c86160.b392c",
243     "wires": []
244   },
245   {
246     "id": "233b3043.9673c",
247     "type": "switchNode",
248     "name": "switch vnf-id",
249     "xml": "<switch test=\"`$vnf-topology-operation-input.vnf-information.vnf-id`\">\n",
250     "comments": "",
251     "outputs": 1,
252     "x": 874.9287261962891,
253     "y": 131.8094997406006,
254     "z": "a0c86160.b392c",
255     "wires": [
256       [
257         "bd1b23ac.08604"
258       ]
259     ]
260   },
261   {
262     "id": "bd1b23ac.08604",
263     "type": "outcome",
264     "name": "NULL",
265     "xml": "<outcome value=''>",
266     "comments": "",
267     "outputs": 1,
268     "x": 1017.9287185668945,
269     "y": 131.80950260162354,
270     "z": "a0c86160.b392c",
271     "wires": [
272       [
273         "78d81ec0.02c25"
274       ]
275     ]
276   },
277   {
278     "id": "78d81ec0.02c25",
279     "type": "returnFailure",
280     "name": "return failure",
281     "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-topology-operation-input.vnf-information.vnf-id is a required input\" />\n",
282     "comments": "",
283     "x": 1166.4287185668945,
284     "y": 131.80950164794922,
285     "z": "a0c86160.b392c",
286     "wires": []
287   },
288   {
289     "id": "d1af55da.8f3b18",
290     "type": "for",
291     "name": "for vidx..service-data.vnfs.vnf[]",
292     "xml": "<for index='vidx' start='0' end='`$service-data.vnfs.vnf_length`' >\n",
293     "comments": "",
294     "outputs": 1,
295     "x": 1587.428840637207,
296     "y": 198.8095121383667,
297     "z": "a0c86160.b392c",
298     "wires": [
299       [
300         "ea3ec79e.bdec18"
301       ]
302     ]
303   },
304   {
305     "id": "ea3ec79e.bdec18",
306     "type": "switchNode",
307     "name": "switch vnf-id found",
308     "xml": "<switch test=\"`$service-data.vnfs.vnf[$vidx].vnf-id == $vnf-topology-operation-input.vnf-information.vnf-id`\">\n\n",
309     "comments": "",
310     "outputs": 1,
311     "x": 1873.428840637207,
312     "y": 198.8095121383667,
313     "z": "a0c86160.b392c",
314     "wires": [
315       [
316         "a7ba6ae5.977098"
317       ]
318     ]
319   },
320   {
321     "id": "a7ba6ae5.977098",
322     "type": "outcomeTrue",
323     "name": "true",
324     "xml": "<outcome value='true'>\n",
325     "comments": "",
326     "outputs": 1,
327     "x": 2058.9289169311523,
328     "y": 198.80951404571533,
329     "z": "a0c86160.b392c",
330     "wires": [
331       [
332         "4dbc76e0.8d7858"
333       ]
334     ]
335   },
336   {
337     "id": "4dbc76e0.8d7858",
338     "type": "set",
339     "name": "set tmp.vidx and ctx.vnf-data",
340     "xml": "<set>\n<parameter name='tmp.vidx' value='`$vidx`' />\n<parameter name='ctx.vnf-data.' value='`$service-data.vnfs.vnf[$vidx].vnf-data.`' />\n",
341     "comments": "",
342     "x": 2266.928840637207,
343     "y": 198.8095121383667,
344     "z": "a0c86160.b392c",
345     "wires": []
346   },
347   {
348     "id": "5ac1b74d.5a62b8",
349     "type": "returnFailure",
350     "name": "return failure",
351     "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-topology-operation-input.vnf-information.vnf-id not found in service-data\" />\n",
352     "comments": "",
353     "x": 1833.428810119629,
354     "y": 236.80952262878418,
355     "z": "a0c86160.b392c",
356     "wires": []
357   },
358   {
359     "id": "7a52469e.0fa9f8",
360     "type": "outcome",
361     "name": "NULL",
362     "xml": "<outcome value=''>\n",
363     "comments": "",
364     "outputs": 1,
365     "x": 1695.928810119629,
366     "y": 236.80952262878418,
367     "z": "a0c86160.b392c",
368     "wires": [
369       [
370         "5ac1b74d.5a62b8"
371       ]
372     ]
373   },
374   {
375     "id": "cb3ab0a3.18f7a",
376     "type": "set",
377     "name": "set vnf in service-data",
378     "xml": "<set>\n<parameter name='service-data.vnfs.vnf[$tmp.vidx].vnf-data.sdnc-request-header.' value='`$vnf-topology-operation-input.sdnc-request-header.`' />\n<parameter name='service-data.vnfs.vnf[$tmp.vidx].vnf-data.request-information.' value='`$vnf-topology-operation-input.request-information.`' />\n<parameter name='service-data.vnfs.vnf[$tmp.vidx].vnf-data.service-information.' value='`$vnf-topology-operation-input.service-information.`' />",
379     "comments": "",
380     "x": 639.7145080566406,
381     "y": 634.00022315979,
382     "z": "a0c86160.b392c",
383     "wires": []
384   },
385   {
386     "id": "9f93822a.38acf",
387     "type": "set",
388     "name": "set vnfId and vnf-object-path",
389     "xml": "<set>\n<parameter name='vnfId' value='`$vnf-topology-operation-input.vnf-information.vnf-id`' />\n<parameter name=\"vnf-object-path\" value=\"`'restconf/config/GENERIC-RESOURCE-API:services/service/'  + $vnf-topology-operation-input.service-information.service-instance-id  + '/service-data/vnfs/vnf/'  + $vnf-topology-operation-input.vnf-request-input.vnf-id  + '/vnf-data/'` \" />",
390     "comments": "",
391     "x": 661.2701034545898,
392     "y": 671.2224445343018,
393     "z": "a0c86160.b392c",
394     "wires": []
395   },
396   {
397     "id": "fd9e7734.9c2008",
398     "type": "returnSuccess",
399     "name": "return success",
400     "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",
401     "comments": "",
402     "x": 615.0478849411011,
403     "y": 821.7778739929199,
404     "z": "a0c86160.b392c",
405     "wires": []
406   },
407   {
408     "id": "79d541bc.c80a2",
409     "type": "set",
410     "name": "set vnf-level-oper-status to PendingDelete",
411     "xml": "<set>\n<parameter name='service-data.vnfs.vnf[$tmp.vidx].vnf-data.vnf-level-oper-status.order-status' value='PendingDelete' />\n<parameter name='service-data.vnfs.vnf[$tmp.vidx].vnf-data.vnf-level-oper-status.last-rpc-action' value='`$vnf-topology-operation-input.sdnc-request-header.svc-action`' />\n<parameter name='service-data.vnfs.vnf[$tmp.vidx].vnf-data.vnf-level-oper-status.last-action' value='`$vnf-topology-operation-input.request-information.request-action`' />\n",
412     "comments": "",
413     "x": 699.7145080566406,
414     "y": 715.0002861022949,
415     "z": "a0c86160.b392c",
416     "wires": []
417   },
418   {
419     "id": "894517c4.94cc68",
420     "type": "block",
421     "name": "block : atomic",
422     "xml": "<block atomic=\"true\">",
423     "atomic": "true",
424     "outputs": 1,
425     "x": 1396.856201171875,
426     "y": 271.88886964321136,
427     "z": "a0c86160.b392c",
428     "wires": [
429       []
430     ]
431   },
432   {
433     "id": "35b35733.634ca8",
434     "type": "execute",
435     "name": "execute requiredParameters",
436     "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='requiredParameters' >\n<parameter name=\"vnf-topology-operation-input.vnf-information.vnf-id\" value=\"$vnf-topology-operation-input.vnf-information.vnf-id\"/>\n\n",
437     "comments": "",
438     "outputs": 1,
439     "x": 924.7145385742188,
440     "y": 94,
441     "z": "a0c86160.b392c",
442     "wires": [
443       []
444     ]
445   },
446   {
447     "id": "13f26ce4.e0b983",
448     "type": "comment",
449     "name": "site-vnf-topology-operation-deactivate",
450     "info": "",
451     "comments": "",
452     "x": 519,
453     "y": 94.23809814453125,
454     "z": "a0c86160.b392c",
455     "wires": []
456   },
457   {
458     "id": "75e2f346.784bbc",
459     "type": "for",
460     "name": "for loop idx - VNF input parameters",
461     "xml": "<for index='idx' start='0' end='`$service-data.vnfs.vnf[$tmp.vidx].vnf-data.vnf-request-input.vnf-input-parameters.param_length`' >\n",
462     "comments": "",
463     "outputs": 1,
464     "x": 697.0001487731934,
465     "y": 365.0000219345093,
466     "z": "a0c86160.b392c",
467     "wires": [
468       [
469         "ccc1f150.dcee8"
470       ]
471     ]
472   },
473   {
474     "id": "ccc1f150.dcee8",
475     "type": "block",
476     "name": "block",
477     "xml": "<block>\n",
478     "atomic": "false",
479     "comments": "",
480     "outputs": 1,
481     "x": 903.8958854675293,
482     "y": 364.9218854904175,
483     "z": "a0c86160.b392c",
484     "wires": [
485       [
486         "e5d9799e.ae8628",
487         "1badb5ed.e28e8a"
488       ]
489     ]
490   },
491   {
492     "id": "e5d9799e.ae8628",
493     "type": "switchNode",
494     "name": "switch role",
495     "xml": "<switch test=\"`$service-data.vnfs.vnf[$tmp.vidx].vnf-data.vnf-request-input.vnf-input-parameters.param[$idx].name == 'role'`\">\n",
496     "comments": "",
497     "outputs": 1,
498     "x": 1041.0130882263184,
499     "y": 364.89532566070557,
500     "z": "a0c86160.b392c",
501     "wires": [
502       [
503         "a6693add.80f898"
504       ]
505     ]
506   },
507   {
508     "id": "a6693add.80f898",
509     "type": "outcomeTrue",
510     "name": "true",
511     "xml": "<outcome value='true'>\n",
512     "comments": "",
513     "outputs": 1,
514     "x": 1181.013095855713,
515     "y": 365.89532566070557,
516     "z": "a0c86160.b392c",
517     "wires": [
518       [
519         "139aae5d.e30622"
520       ]
521     ]
522   },
523   {
524     "id": "139aae5d.e30622",
525     "type": "block",
526     "name": "block : atomic",
527     "xml": "<block atomic=\"true\">",
528     "atomic": "true",
529     "outputs": 1,
530     "x": 1329.562744140625,
531     "y": 366.9220190048218,
532     "z": "a0c86160.b392c",
533     "wires": [
534       [
535         "3d248a1d.8a4626"
536       ]
537     ]
538   },
539   {
540     "id": "3d248a1d.8a4626",
541     "type": "set",
542     "name": "set role",
543     "xml": "<set>\n<parameter name='prop.site.role' value='`$service-data.vnfs.vnf[$tmp.vidx].vnf-data.vnf-request-input.vnf-input-parameters.param[$idx].value`' />\n<parameter name='prop.site.sdwan' value=\"true\" />\n",
544     "comments": "",
545     "x": 1473.8961067199707,
546     "y": 367.9220361709595,
547     "z": "a0c86160.b392c",
548     "wires": []
549   },
550   {
551     "id": "afea211a.e0c0a",
552     "type": "switchNode",
553     "name": "switch prop.site.sdwan",
554     "xml": "<switch test=\"`$prop.site.sdwan`\">\n",
555     "comments": "",
556     "outputs": 1,
557     "x": 671,
558     "y": 520.0000438690186,
559     "z": "a0c86160.b392c",
560     "wires": [
561       [
562         "79bc523a.1ecdec"
563       ]
564     ]
565   },
566   {
567     "id": "79bc523a.1ecdec",
568     "type": "outcomeTrue",
569     "name": "true",
570     "xml": "<outcome value='true'>\n",
571     "comments": "",
572     "outputs": 1,
573     "x": 852.0001335144043,
574     "y": 521.0000705718994,
575     "z": "a0c86160.b392c",
576     "wires": [
577       [
578         "c9dc3c5b.ce873"
579       ]
580     ]
581   },
582   {
583     "id": "44a4d10f.69bea",
584     "type": "success",
585     "name": "success",
586     "xml": "<outcome value='success'>\n",
587     "comments": "",
588     "outputs": 1,
589     "x": 1556.500156402588,
590     "y": 489.00012493133545,
591     "z": "a0c86160.b392c",
592     "wires": [
593       [
594         "4ad01ef7.c1305"
595       ]
596     ]
597   },
598   {
599     "id": "4ad01ef7.c1305",
600     "type": "set",
601     "name": "set controller data",
602     "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",
603     "comments": "",
604     "x": 1745.0002517700195,
605     "y": 483.0001345872879,
606     "z": "a0c86160.b392c",
607     "wires": []
608   },
609   {
610     "id": "5be09b23.d55b04",
611     "type": "not-found",
612     "name": "not-found",
613     "xml": "<outcome value='not-found'>\n",
614     "comments": "",
615     "outputs": 1,
616     "x": 1559.991123199463,
617     "y": 536.5741605758667,
618     "z": "a0c86160.b392c",
619     "wires": [
620       [
621         "48c84162.ad4b8"
622       ]
623     ]
624   },
625   {
626     "id": "48c84162.ad4b8",
627     "type": "returnFailure",
628     "name": "return failure",
629     "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",
630     "comments": "",
631     "x": 1733.5625343322754,
632     "y": 524.8598966598511,
633     "z": "a0c86160.b392c",
634     "wires": []
635   },
636   {
637     "id": "89230c24.b3cdd",
638     "type": "other",
639     "name": "other",
640     "xml": "<outcome value='Other'>\n",
641     "comments": "",
642     "outputs": 1,
643     "x": 1552.324131011963,
644     "y": 577.907473564148,
645     "z": "a0c86160.b392c",
646     "wires": [
647       [
648         "85634a7c.b937a8"
649       ]
650     ]
651   },
652   {
653     "id": "85634a7c.b937a8",
654     "type": "returnFailure",
655     "name": "return failure",
656     "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",
657     "comments": "",
658     "x": 1740.0966873168945,
659     "y": 573.3466663360596,
660     "z": "a0c86160.b392c",
661     "wires": []
662   },
663   {
664     "id": "a63c00b2.95bd5",
665     "type": "get-resource",
666     "name": "get-resource esr-thirdparty-sdnc",
667     "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 = $tmp.thirdparty-sdnc-id AND \n\t\t     depth = '1'\"\n        pfx='tmp.aai.esr-thirdparty-sdnc' local-only='false' >\n\n",
668     "comments": "",
669     "outputs": 1,
670     "x": 1289.5000686645508,
671     "y": 537.0001307725906,
672     "z": "a0c86160.b392c",
673     "wires": [
674       [
675         "44a4d10f.69bea",
676         "5be09b23.d55b04",
677         "89230c24.b3cdd"
678       ]
679     ]
680   },
681   {
682     "id": "d6db6a91.6f4a78",
683     "type": "execute",
684     "name": "execute RestApiCallNode Create  SDWAN site",
685     "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"templateFileName\" value=\"`$prop.restapi.templateDir + '/sdwan-site.json'`\" />\n<parameter name=\"restapiUrl\" value=\"`$prop.sdncRestApi.thirdpartySdnc.url + '/controller/campus/v1/sdwan/net/sites/action/batch-delete'`\" />\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=\"post\"/>\n<parameter name=\"responsePrefix\" value=\"site-result\"/>\n<parameter name=\"trustStoreFileName\" value=\"/opt/onap/sdnc/data/stores/truststore.openecomp.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`\" />",
686     "comments": "",
687     "outputs": 1,
688     "x": 1318.0004119873047,
689     "y": 735.0002021789551,
690     "z": "a0c86160.b392c",
691     "wires": [
692       [
693         "6896c2eb.698ffc"
694       ]
695     ]
696   },
697   {
698     "id": "d2619b3c.655228",
699     "type": "block",
700     "name": "block : atomic",
701     "xml": "<block atomic=\"true\">",
702     "atomic": "true",
703     "comments": "",
704     "outputs": 1,
705     "x": 1811.6665420532227,
706     "y": 708.8889743089676,
707     "z": "a0c86160.b392c",
708     "wires": [
709       []
710     ]
711   },
712   {
713     "id": "abc65d9c.3615e",
714     "type": "returnFailure",
715     "name": "return failure",
716     "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",
717     "comments": "",
718     "x": 1787.111183166504,
719     "y": 770.4443570375443,
720     "z": "a0c86160.b392c",
721     "wires": []
722   },
723   {
724     "id": "af0f8953.715328",
725     "type": "failure",
726     "name": "failure",
727     "xml": "<outcome value='failure'>\n",
728     "comments": "",
729     "outputs": 1,
730     "x": 1642.111183166504,
731     "y": 767.4443570375443,
732     "z": "a0c86160.b392c",
733     "wires": [
734       [
735         "abc65d9c.3615e"
736       ]
737     ]
738   },
739   {
740     "id": "6896c2eb.698ffc",
741     "type": "success",
742     "name": "success",
743     "xml": "<outcome value='success'>\n",
744     "comments": "",
745     "outputs": 1,
746     "x": 1638.5555572509766,
747     "y": 709.1111422777176,
748     "z": "a0c86160.b392c",
749     "wires": [
750       [
751         "d2619b3c.655228"
752       ]
753     ]
754   },
755   {
756     "id": "98c6743f.874588",
757     "type": "execute",
758     "name": "execute RestApiCallNode Get token",
759     "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.openecomp.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\"/>",
760     "comments": "",
761     "outputs": 1,
762     "x": 1290.754165649414,
763     "y": 630.0041915178299,
764     "z": "a0c86160.b392c",
765     "wires": [
766       [
767         "39a5c053.f8453"
768       ]
769     ]
770   },
771   {
772     "id": "39a5c053.f8453",
773     "type": "success",
774     "name": "success",
775     "xml": "<outcome value='success'>\n",
776     "comments": "",
777     "outputs": 1,
778     "x": 1555.7540473937988,
779     "y": 615.0040866136551,
780     "z": "a0c86160.b392c",
781     "wires": [
782       [
783         "f6e07bec.bc35c8"
784       ]
785     ]
786   },
787   {
788     "id": "a60d94cb.1ae848",
789     "type": "failure",
790     "name": "failure",
791     "xml": "<outcome value='failure'>\n",
792     "comments": "",
793     "outputs": 1,
794     "x": 1548.0040473937988,
795     "y": 656.6469699144363,
796     "z": "a0c86160.b392c",
797     "wires": [
798       [
799         "a3e0da6b.559e48"
800       ]
801     ]
802   },
803   {
804     "id": "a3e0da6b.559e48",
805     "type": "block",
806     "name": "block",
807     "xml": "<block>\n",
808     "atomic": "false",
809     "comments": "",
810     "outputs": 1,
811     "x": 1674.0875434875488,
812     "y": 656.8930026292801,
813     "z": "a0c86160.b392c",
814     "wires": [
815       []
816     ]
817   },
818   {
819     "id": "f6e07bec.bc35c8",
820     "type": "set",
821     "name": "set token-id",
822     "xml": "<set>\n<parameter name='prop.sdncRestApi.token_id' value='`$token-result.data.token_id`' />\n",
823     "comments": "",
824     "x": 1692.7540473937988,
825     "y": 615.0040866136551,
826     "z": "a0c86160.b392c",
827     "wires": []
828   },
829   {
830     "id": "f570928f.4101f",
831     "type": "comment",
832     "name": "tmp.thirdparty-sdnc-id is hardcoded value?",
833     "info": "",
834     "comments": "",
835     "x": 1286.0039596557617,
836     "y": 504.0040522813797,
837     "z": "a0c86160.b392c",
838     "wires": []
839   },
840   {
841     "id": "c9dc3c5b.ce873",
842     "type": "block",
843     "name": "block : atomic",
844     "xml": "<block atomic=\"true\">",
845     "atomic": "true",
846     "outputs": 1,
847     "x": 1013.0000686645508,
848     "y": 521.6665782928467,
849     "z": "a0c86160.b392c",
850     "wires": [
851       [
852         "98c6743f.874588",
853         "d6db6a91.6f4a78",
854         "a63c00b2.95bd5"
855       ]
856     ]
857   },
858   {
859     "id": "f2b6a437.7e6008",
860     "type": "save",
861     "name": "update siteInstance configuration in AAI",
862     "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='site-resource' \n      key='site-resource.id = $service-data.vnfs.vnf[$tmp.vidx].vnf-id' >\n<parameter name='id' value='`$service-data.vnfs.vnf[$tmp.vidx].vnf-id`' />      \n<parameter name='operational-status' value='PendingDelete' />\n",
863     "comments": "",
864     "outputs": 1,
865     "x": 693.0000915527344,
866     "y": 754.0001029968262,
867     "z": "a0c86160.b392c",
868     "wires": [
869       []
870     ]
871   },
872   {
873     "id": "1badb5ed.e28e8a",
874     "type": "switchNode",
875     "name": "switch siteId",
876     "xml": "<switch test=\"`$service-data.vnfs.vnf[$tmp.vidx].vnf-data.vnf-request-input.vnf-input-parameters.param[$idx].name == 'siteId'`\">\n",
877     "comments": "",
878     "outputs": 1,
879     "x": 1041.0129852294922,
880     "y": 439.8953685760498,
881     "z": "a0c86160.b392c",
882     "wires": [
883       [
884         "d169692c.c9c248"
885       ]
886     ]
887   },
888   {
889     "id": "d169692c.c9c248",
890     "type": "outcomeTrue",
891     "name": "true",
892     "xml": "<outcome value='true'>\n",
893     "comments": "",
894     "outputs": 1,
895     "x": 1181.0129928588867,
896     "y": 440.8953685760498,
897     "z": "a0c86160.b392c",
898     "wires": [
899       [
900         "6b473348.32e71c"
901       ]
902     ]
903   },
904   {
905     "id": "6b473348.32e71c",
906     "type": "block",
907     "name": "block : atomic",
908     "xml": "<block atomic=\"true\">",
909     "atomic": "true",
910     "outputs": 1,
911     "x": 1329.5626411437988,
912     "y": 441.922061920166,
913     "z": "a0c86160.b392c",
914     "wires": [
915       [
916         "b1ed9a25.d49d18"
917       ]
918     ]
919   },
920   {
921     "id": "b1ed9a25.d49d18",
922     "type": "set",
923     "name": "set siteId",
924     "xml": "<set>\n<parameter name='prop.site.siteId' value='`$service-data.vnfs.vnf[$tmp.vidx].vnf-data.vnf-request-input.vnf-input-parameters.param[$idx].value`' />\n\n",
925     "comments": "",
926     "x": 1473.8960037231445,
927     "y": 442.9220790863037,
928     "z": "a0c86160.b392c",
929     "wires": []
930   },
931   {
932     "id": "5308b9e7.a82c18",
933     "type": "comment",
934     "name": "Get siteId to delete",
935     "info": "",
936     "comments": "",
937     "x": 1052.9999694824219,
938     "y": 409.0000247955322,
939     "z": "a0c86160.b392c",
940     "wires": []
941   }
942 ]