SDWAN flow based end-end test and issue fix
[sdnc/oam.git] / platform-logic / generic-resource-api / src / main / json / GENERIC-RESOURCE-API_site-vnf-topology-operation-deactivate.json
1 [
2   {
3     "id": "d86fdeaf.90856",
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": 182.8570785522461,
12     "y": 146.23809719085693,
13     "z": "662bc73e.2f2df8",
14     "wires": [
15       [
16         "8c1fcf5.c30ac3"
17       ]
18     ]
19   },
20   {
21     "id": "c3f643e9.793bf",
22     "type": "dgstart",
23     "name": "DGSTART",
24     "outputs": 1,
25     "x": 107.57137298583984,
26     "y": 105.99998569488525,
27     "z": "662bc73e.2f2df8",
28     "wires": [
29       [
30         "d86fdeaf.90856"
31       ]
32     ]
33   },
34   {
35     "id": "8c1fcf5.c30ac3",
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": 176,
42     "y": 185.99997997283936,
43     "z": "662bc73e.2f2df8",
44     "wires": [
45       [
46         "ed73a4d4.18b998"
47       ]
48     ]
49   },
50   {
51     "id": "ed73a4d4.18b998",
52     "type": "block",
53     "name": "block : atomic",
54     "xml": "<block atomic=\"true\">",
55     "atomic": "true",
56     "outputs": 1,
57     "x": 216.73809814453125,
58     "y": 257.69349098205566,
59     "z": "662bc73e.2f2df8",
60     "wires": [
61       [
62         "59f08d7c.e40f14",
63         "c44bdf39.f49ac",
64         "af671a8b.af38d8",
65         "35b8b725.755a88",
66         "6ebc8511.a2521c",
67         "cf959324.083ab",
68         "82cb066d.91c668",
69         "2ec82407.2cc83c",
70         "ab2363bc.936b4"
71       ]
72     ]
73   },
74   {
75     "id": "6ebc8511.a2521c",
76     "type": "block",
77     "name": "block : atomic",
78     "xml": "<block atomic=\"true\">",
79     "atomic": "true",
80     "outputs": 1,
81     "x": 623.7856979370117,
82     "y": 122.8095064163208,
83     "z": "662bc73e.2f2df8",
84     "wires": [
85       [
86         "3eca00ab.dea9f",
87         "33bd2a9b.930326",
88         "fb6a76d8.c72038",
89         "d8062777.1e2a88"
90       ]
91     ]
92   },
93   {
94     "id": "3eca00ab.dea9f",
95     "type": "switchNode",
96     "name": "switch service-data.vnfs.vnf_length",
97     "xml": "<switch test='`$service-data.vnfs.vnf_length`'>\n",
98     "comments": "",
99     "outputs": 1,
100     "x": 903.6747055053711,
101     "y": 148.14282417297363,
102     "z": "662bc73e.2f2df8",
103     "wires": [
104       [
105         "b63df83d.881f98",
106         "2d9f4a28.834cf6"
107       ]
108     ]
109   },
110   {
111     "id": "b63df83d.881f98",
112     "type": "other",
113     "name": "outcome Null",
114     "xml": "<outcome value=''>\n",
115     "comments": "",
116     "outputs": 1,
117     "x": 1157.2858276367188,
118     "y": 129.80951118469238,
119     "z": "662bc73e.2f2df8",
120     "wires": [
121       [
122         "ce144d22.a6862"
123       ]
124     ]
125   },
126   {
127     "id": "ce144d22.a6862",
128     "type": "returnFailure",
129     "name": "return failure",
130     "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",
131     "comments": "",
132     "x": 1331.2858428955078,
133     "y": 129.80951118469238,
134     "z": "662bc73e.2f2df8",
135     "wires": []
136   },
137   {
138     "id": "2d9f4a28.834cf6",
139     "type": "other",
140     "name": "other",
141     "xml": "<outcome value='Other'>\n",
142     "comments": "",
143     "outputs": 1,
144     "x": 1140.7857971191406,
145     "y": 165.80952167510986,
146     "z": "662bc73e.2f2df8",
147     "wires": [
148       [
149         "5e80a5f7.14668c"
150       ]
151     ]
152   },
153   {
154     "id": "5e80a5f7.14668c",
155     "type": "block",
156     "name": "block : atomic",
157     "xml": "<block atomic=\"true\">",
158     "atomic": "true",
159     "outputs": 1,
160     "x": 1322.7859954833984,
161     "y": 176.80952739715576,
162     "z": "662bc73e.2f2df8",
163     "wires": [
164       [
165         "68893bf6.030534",
166         "ef8a4172.bf9b"
167       ]
168     ]
169   },
170   {
171     "id": "ef8a4172.bf9b",
172     "type": "switchNode",
173     "name": "switch tmp.vidx ",
174     "xml": "<switch test=\"`$tmp.vidx`\">\n\n",
175     "comments": "",
176     "outputs": 1,
177     "x": 1512.785888671875,
178     "y": 193.80952167510986,
179     "z": "662bc73e.2f2df8",
180     "wires": [
181       [
182         "3898f902.da4f46"
183       ]
184     ]
185   },
186   {
187     "id": "fb6a76d8.c72038",
188     "type": "switchNode",
189     "name": "switch vnf-level-oper-status",
190     "xml": "<switch test='`$service-data.vnfs.vnf[$tmp.vidx].vnf-data.vnf-level-oper-status.order-status`'>\n",
191     "comments": "",
192     "outputs": 1,
193     "x": 866.952507019043,
194     "y": 243.69837760925293,
195     "z": "662bc73e.2f2df8",
196     "wires": [
197       [
198         "9a6e14da.4f6898",
199         "830ab1c4.069de"
200       ]
201     ]
202   },
203   {
204     "id": "9a6e14da.4f6898",
205     "type": "outcome",
206     "name": "outcome Active",
207     "xml": "<outcome value='Active'>\n",
208     "comments": "",
209     "outputs": 1,
210     "x": 1173.7858200073242,
211     "y": 224.8094997406006,
212     "z": "662bc73e.2f2df8",
213     "wires": [
214       [
215         "c41182b7.2c8a4"
216       ]
217     ]
218   },
219   {
220     "id": "830ab1c4.069de",
221     "type": "other",
222     "name": "other",
223     "xml": "<outcome value='Other'>\n",
224     "comments": "",
225     "outputs": 1,
226     "x": 1141.7858200073242,
227     "y": 264.8094997406006,
228     "z": "662bc73e.2f2df8",
229     "wires": [
230       [
231         "ff8457d6.891c88"
232       ]
233     ]
234   },
235   {
236     "id": "ff8457d6.891c88",
237     "type": "returnFailure",
238     "name": "return failure",
239     "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`\" />",
240     "comments": "",
241     "x": 1299.2858200073242,
242     "y": 264.8094997406006,
243     "z": "662bc73e.2f2df8",
244     "wires": []
245   },
246   {
247     "id": "33bd2a9b.930326",
248     "type": "switchNode",
249     "name": "switch vnf-id",
250     "xml": "<switch test=\"`$vnf-topology-operation-input.vnf-information.vnf-id`\">\n",
251     "comments": "",
252     "outputs": 1,
253     "x": 845.7858047485352,
254     "y": 88.80949878692627,
255     "z": "662bc73e.2f2df8",
256     "wires": [
257       [
258         "660d1ca1.7f5824"
259       ]
260     ]
261   },
262   {
263     "id": "660d1ca1.7f5824",
264     "type": "outcome",
265     "name": "NULL",
266     "xml": "<outcome value=''>",
267     "comments": "",
268     "outputs": 1,
269     "x": 988.7857971191406,
270     "y": 88.80950164794922,
271     "z": "662bc73e.2f2df8",
272     "wires": [
273       [
274         "da90fecc.888a8"
275       ]
276     ]
277   },
278   {
279     "id": "da90fecc.888a8",
280     "type": "returnFailure",
281     "name": "return failure",
282     "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",
283     "comments": "",
284     "x": 1137.2857971191406,
285     "y": 88.8095006942749,
286     "z": "662bc73e.2f2df8",
287     "wires": []
288   },
289   {
290     "id": "68893bf6.030534",
291     "type": "for",
292     "name": "for vidx..service-data.vnfs.vnf[]",
293     "xml": "<for index='vidx' start='0' end='`$service-data.vnfs.vnf_length`' >\n",
294     "comments": "",
295     "outputs": 1,
296     "x": 1558.2859191894531,
297     "y": 155.80951118469238,
298     "z": "662bc73e.2f2df8",
299     "wires": [
300       [
301         "32659e4e.c6e252"
302       ]
303     ]
304   },
305   {
306     "id": "32659e4e.c6e252",
307     "type": "switchNode",
308     "name": "switch vnf-id found",
309     "xml": "<switch test=\"`$service-data.vnfs.vnf[$vidx].vnf-id == $vnf-topology-operation-input.vnf-information.vnf-id`\">\n\n",
310     "comments": "",
311     "outputs": 1,
312     "x": 1844.2859191894531,
313     "y": 155.80951118469238,
314     "z": "662bc73e.2f2df8",
315     "wires": [
316       [
317         "760edd7e.39ca84"
318       ]
319     ]
320   },
321   {
322     "id": "760edd7e.39ca84",
323     "type": "outcomeTrue",
324     "name": "true",
325     "xml": "<outcome value='true'>\n",
326     "comments": "",
327     "outputs": 1,
328     "x": 2029.7859954833984,
329     "y": 155.80951309204102,
330     "z": "662bc73e.2f2df8",
331     "wires": [
332       [
333         "e7380240.e1e34"
334       ]
335     ]
336   },
337   {
338     "id": "e7380240.e1e34",
339     "type": "set",
340     "name": "set tmp.vidx and ctx.vnf-data",
341     "xml": "<set>\n<parameter name='tmp.vidx' value='`$vidx`' />\n<parameter name='ctx.vnf-data.' value='`$service-data.vnfs.vnf[$vidx].vnf-data.`' />\n",
342     "comments": "",
343     "x": 2237.785919189453,
344     "y": 155.80951118469238,
345     "z": "662bc73e.2f2df8",
346     "wires": []
347   },
348   {
349     "id": "9f76132b.ac81b",
350     "type": "returnFailure",
351     "name": "return failure",
352     "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",
353     "comments": "",
354     "x": 1804.285888671875,
355     "y": 193.80952167510986,
356     "z": "662bc73e.2f2df8",
357     "wires": []
358   },
359   {
360     "id": "3898f902.da4f46",
361     "type": "outcome",
362     "name": "NULL",
363     "xml": "<outcome value=''>\n",
364     "comments": "",
365     "outputs": 1,
366     "x": 1666.785888671875,
367     "y": 193.80952167510986,
368     "z": "662bc73e.2f2df8",
369     "wires": [
370       [
371         "9f76132b.ac81b"
372       ]
373     ]
374   },
375   {
376     "id": "59f08d7c.e40f14",
377     "type": "set",
378     "name": "set vnf in service-data",
379     "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.`' />",
380     "comments": "",
381     "x": 610.5715866088867,
382     "y": 591.0002222061157,
383     "z": "662bc73e.2f2df8",
384     "wires": []
385   },
386   {
387     "id": "c44bdf39.f49ac",
388     "type": "set",
389     "name": "set vnfId and vnf-object-path",
390     "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-information.vnf-id  + '/vnf-data/'` \" />",
391     "comments": "",
392     "x": 632.1271820068359,
393     "y": 628.2224435806274,
394     "z": "662bc73e.2f2df8",
395     "wires": []
396   },
397   {
398     "id": "35b8b725.755a88",
399     "type": "returnSuccess",
400     "name": "return success",
401     "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",
402     "comments": "",
403     "x": 585.9049634933472,
404     "y": 778.7778730392456,
405     "z": "662bc73e.2f2df8",
406     "wires": []
407   },
408   {
409     "id": "af671a8b.af38d8",
410     "type": "set",
411     "name": "set vnf-level-oper-status to PendingDelete",
412     "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",
413     "comments": "",
414     "x": 670.5715866088867,
415     "y": 672.0002851486206,
416     "z": "662bc73e.2f2df8",
417     "wires": []
418   },
419   {
420     "id": "c41182b7.2c8a4",
421     "type": "block",
422     "name": "block : atomic",
423     "xml": "<block atomic=\"true\">",
424     "atomic": "true",
425     "outputs": 1,
426     "x": 1367.713279724121,
427     "y": 228.88886868953705,
428     "z": "662bc73e.2f2df8",
429     "wires": [
430       []
431     ]
432   },
433   {
434     "id": "d8062777.1e2a88",
435     "type": "execute",
436     "name": "execute requiredParameters",
437     "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",
438     "comments": "",
439     "outputs": 1,
440     "x": 895.5716171264648,
441     "y": 50.999999046325684,
442     "z": "662bc73e.2f2df8",
443     "wires": [
444       []
445     ]
446   },
447   {
448     "id": "b2ebc544.1e6068",
449     "type": "comment",
450     "name": "site-vnf-topology-operation-deactivate",
451     "info": "",
452     "comments": "",
453     "x": 489.8570785522461,
454     "y": 51.238097190856934,
455     "z": "662bc73e.2f2df8",
456     "wires": []
457   },
458   {
459     "id": "cf959324.083ab",
460     "type": "for",
461     "name": "for loop idx - VNF input parameters",
462     "xml": "<for index='idx' start='0' end='`$service-data.vnfs.vnf[$tmp.vidx].vnf-data.vnf-request-input.vnf-input-parameters.param_length`' >\n",
463     "comments": "",
464     "outputs": 1,
465     "x": 667.8572273254395,
466     "y": 322.00002098083496,
467     "z": "662bc73e.2f2df8",
468     "wires": [
469       [
470         "fe2f83f9.8338"
471       ]
472     ]
473   },
474   {
475     "id": "fe2f83f9.8338",
476     "type": "block",
477     "name": "block",
478     "xml": "<block>\n",
479     "atomic": "false",
480     "comments": "",
481     "outputs": 1,
482     "x": 874.7529640197754,
483     "y": 321.92188453674316,
484     "z": "662bc73e.2f2df8",
485     "wires": [
486       [
487         "550bedb1.f170d4",
488         "b37adbd9.2464a8"
489       ]
490     ]
491   },
492   {
493     "id": "550bedb1.f170d4",
494     "type": "switchNode",
495     "name": "switch role",
496     "xml": "<switch test=\"`$service-data.vnfs.vnf[$tmp.vidx].vnf-data.vnf-request-input.vnf-input-parameters.param[$idx].name == 'role'`\">\n",
497     "comments": "",
498     "outputs": 1,
499     "x": 1011.8701667785645,
500     "y": 321.89532470703125,
501     "z": "662bc73e.2f2df8",
502     "wires": [
503       [
504         "de4a1711.c3fb08"
505       ]
506     ]
507   },
508   {
509     "id": "de4a1711.c3fb08",
510     "type": "outcomeTrue",
511     "name": "true",
512     "xml": "<outcome value='true'>\n",
513     "comments": "",
514     "outputs": 1,
515     "x": 1151.870174407959,
516     "y": 322.89532470703125,
517     "z": "662bc73e.2f2df8",
518     "wires": [
519       [
520         "d4dca6e6.2c3458"
521       ]
522     ]
523   },
524   {
525     "id": "d4dca6e6.2c3458",
526     "type": "block",
527     "name": "block : atomic",
528     "xml": "<block atomic=\"true\">",
529     "atomic": "true",
530     "outputs": 1,
531     "x": 1300.419822692871,
532     "y": 323.92201805114746,
533     "z": "662bc73e.2f2df8",
534     "wires": [
535       [
536         "8481bd23.50386"
537       ]
538     ]
539   },
540   {
541     "id": "8481bd23.50386",
542     "type": "set",
543     "name": "set role",
544     "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",
545     "comments": "",
546     "x": 1444.7531852722168,
547     "y": 324.92203521728516,
548     "z": "662bc73e.2f2df8",
549     "wires": []
550   },
551   {
552     "id": "82cb066d.91c668",
553     "type": "switchNode",
554     "name": "switch prop.site.sdwan",
555     "xml": "<switch test=\"`$prop.site.sdwan`\">\n",
556     "comments": "",
557     "outputs": 1,
558     "x": 641.8570785522461,
559     "y": 477.00004291534424,
560     "z": "662bc73e.2f2df8",
561     "wires": [
562       [
563         "44689f8b.efef2"
564       ]
565     ]
566   },
567   {
568     "id": "44689f8b.efef2",
569     "type": "outcomeTrue",
570     "name": "true",
571     "xml": "<outcome value='true'>\n",
572     "comments": "",
573     "outputs": 1,
574     "x": 822.8572120666504,
575     "y": 478.0000696182251,
576     "z": "662bc73e.2f2df8",
577     "wires": [
578       [
579         "92d1a385.88b4d"
580       ]
581     ]
582   },
583   {
584     "id": "1f34e7d.f4ed818",
585     "type": "success",
586     "name": "success",
587     "xml": "<outcome value='success'>\n",
588     "comments": "",
589     "outputs": 1,
590     "x": 1527.357234954834,
591     "y": 446.00012397766113,
592     "z": "662bc73e.2f2df8",
593     "wires": [
594       [
595         "444dfd43.933654"
596       ]
597     ]
598   },
599   {
600     "id": "444dfd43.933654",
601     "type": "set",
602     "name": "set controller data",
603     "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",
604     "comments": "",
605     "x": 1715.8573303222656,
606     "y": 440.0001336336136,
607     "z": "662bc73e.2f2df8",
608     "wires": []
609   },
610   {
611     "id": "20f5a47d.bf5c7c",
612     "type": "not-found",
613     "name": "not-found",
614     "xml": "<outcome value='not-found'>\n",
615     "comments": "",
616     "outputs": 1,
617     "x": 1530.848201751709,
618     "y": 493.5741596221924,
619     "z": "662bc73e.2f2df8",
620     "wires": [
621       [
622         "efd0bf42.a45d2"
623       ]
624     ]
625   },
626   {
627     "id": "efd0bf42.a45d2",
628     "type": "returnFailure",
629     "name": "return failure",
630     "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",
631     "comments": "",
632     "x": 1704.4196128845215,
633     "y": 481.85989570617676,
634     "z": "662bc73e.2f2df8",
635     "wires": []
636   },
637   {
638     "id": "43e41f52.73e87",
639     "type": "other",
640     "name": "other",
641     "xml": "<outcome value='Other'>\n",
642     "comments": "",
643     "outputs": 1,
644     "x": 1523.181209564209,
645     "y": 534.9074726104736,
646     "z": "662bc73e.2f2df8",
647     "wires": [
648       [
649         "b91e604b.71e8a"
650       ]
651     ]
652   },
653   {
654     "id": "b91e604b.71e8a",
655     "type": "returnFailure",
656     "name": "return failure",
657     "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",
658     "comments": "",
659     "x": 1710.9537658691406,
660     "y": 530.3466653823853,
661     "z": "662bc73e.2f2df8",
662     "wires": []
663   },
664   {
665     "id": "5edbf1df.1812f",
666     "type": "get-resource",
667     "name": "get-resource esr-thirdparty-sdnc",
668     "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",
669     "comments": "",
670     "outputs": 1,
671     "x": 1260.3571472167969,
672     "y": 494.0001298189163,
673     "z": "662bc73e.2f2df8",
674     "wires": [
675       [
676         "1f34e7d.f4ed818",
677         "20f5a47d.bf5c7c",
678         "43e41f52.73e87"
679       ]
680     ]
681   },
682   {
683     "id": "850d49b7.5d6588",
684     "type": "execute",
685     "name": "execute RestApiCallNode Create  SDWAN site",
686     "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"templateFileName\" value=\"`$prop.restapi.templateDir + '/sdwan-site-del.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`\" />",
687     "comments": "",
688     "outputs": 1,
689     "x": 1288.8574905395508,
690     "y": 692.0002012252808,
691     "z": "662bc73e.2f2df8",
692     "wires": [
693       [
694         "ea765af1.578958",
695         "a315c86f.c08e38"
696       ]
697     ]
698   },
699   {
700     "id": "27adc5f9.0dcbfa",
701     "type": "block",
702     "name": "block : atomic",
703     "xml": "<block atomic=\"true\">",
704     "atomic": "true",
705     "comments": "",
706     "outputs": 1,
707     "x": 1782.5236206054688,
708     "y": 665.8889733552933,
709     "z": "662bc73e.2f2df8",
710     "wires": [
711       []
712     ]
713   },
714   {
715     "id": "ffec3641.8f04a8",
716     "type": "returnFailure",
717     "name": "return failure",
718     "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",
719     "comments": "",
720     "x": 1757.96826171875,
721     "y": 727.4443560838699,
722     "z": "662bc73e.2f2df8",
723     "wires": []
724   },
725   {
726     "id": "a315c86f.c08e38",
727     "type": "failure",
728     "name": "failure",
729     "xml": "<outcome value='failure'>\n",
730     "comments": "",
731     "outputs": 1,
732     "x": 1612.96826171875,
733     "y": 724.4443560838699,
734     "z": "662bc73e.2f2df8",
735     "wires": [
736       [
737         "ffec3641.8f04a8"
738       ]
739     ]
740   },
741   {
742     "id": "ea765af1.578958",
743     "type": "success",
744     "name": "success",
745     "xml": "<outcome value='success'>\n",
746     "comments": "",
747     "outputs": 1,
748     "x": 1609.4126358032227,
749     "y": 666.1111413240433,
750     "z": "662bc73e.2f2df8",
751     "wires": [
752       [
753         "27adc5f9.0dcbfa"
754       ]
755     ]
756   },
757   {
758     "id": "326c4c2.f406bb4",
759     "type": "success",
760     "name": "success",
761     "xml": "<outcome value='success'>\n",
762     "comments": "",
763     "outputs": 1,
764     "x": 1526.611125946045,
765     "y": 572.0040856599808,
766     "z": "662bc73e.2f2df8",
767     "wires": [
768       [
769         "9184b52b.37e358"
770       ]
771     ]
772   },
773   {
774     "id": "e3754930.79e2e8",
775     "type": "failure",
776     "name": "failure",
777     "xml": "<outcome value='failure'>\n",
778     "comments": "",
779     "outputs": 1,
780     "x": 1518.861125946045,
781     "y": 613.646968960762,
782     "z": "662bc73e.2f2df8",
783     "wires": [
784       [
785         "41ddc45.064fd3c"
786       ]
787     ]
788   },
789   {
790     "id": "41ddc45.064fd3c",
791     "type": "block",
792     "name": "block",
793     "xml": "<block>\n",
794     "atomic": "false",
795     "comments": "",
796     "outputs": 1,
797     "x": 1644.944622039795,
798     "y": 613.8930016756058,
799     "z": "662bc73e.2f2df8",
800     "wires": [
801       []
802     ]
803   },
804   {
805     "id": "9184b52b.37e358",
806     "type": "set",
807     "name": "set token-id",
808     "xml": "<set>\n<parameter name='prop.sdncRestApi.token_id' value='`$token-result.data.token_id`' />\n",
809     "comments": "",
810     "x": 1663.611125946045,
811     "y": 572.0040856599808,
812     "z": "662bc73e.2f2df8",
813     "wires": []
814   },
815   {
816     "id": "6736685b.bef9d8",
817     "type": "comment",
818     "name": "tmp.thirdparty-sdnc-id is hardcoded value?",
819     "info": "",
820     "comments": "",
821     "x": 1256.8610382080078,
822     "y": 461.0040513277054,
823     "z": "662bc73e.2f2df8",
824     "wires": []
825   },
826   {
827     "id": "92d1a385.88b4d",
828     "type": "block",
829     "name": "block : atomic",
830     "xml": "<block atomic=\"true\">",
831     "atomic": "true",
832     "outputs": 1,
833     "x": 983.8571472167969,
834     "y": 478.66657733917236,
835     "z": "662bc73e.2f2df8",
836     "wires": [
837       [
838         "5edbf1df.1812f",
839         "5a50b7d1.a81c28",
840         "850d49b7.5d6588"
841       ]
842     ]
843   },
844   {
845     "id": "2ec82407.2cc83c",
846     "type": "save",
847     "name": "update siteInstance configuration in AAI",
848     "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='site-resource' \n      key='site-resource.id = $vnf-topology-operation-input.vnf-information.vnf-id' >\n<parameter name='id' value='`$vnf-topology-operation-input.vnf-information.vnf-id`' />      \n<parameter name='operational-status' value='PendingDelete' />\n",
849     "comments": "",
850     "outputs": 1,
851     "x": 663.8571701049805,
852     "y": 711.0001020431519,
853     "z": "662bc73e.2f2df8",
854     "wires": [
855       []
856     ]
857   },
858   {
859     "id": "b37adbd9.2464a8",
860     "type": "switchNode",
861     "name": "switch siteId",
862     "xml": "<switch test=\"`$service-data.vnfs.vnf[$tmp.vidx].vnf-data.vnf-request-input.vnf-input-parameters.param[$idx].name == 'siteId'`\">\n",
863     "comments": "",
864     "outputs": 1,
865     "x": 1011.8700637817383,
866     "y": 396.8953676223755,
867     "z": "662bc73e.2f2df8",
868     "wires": [
869       [
870         "a2554bc6.d49ce8"
871       ]
872     ]
873   },
874   {
875     "id": "a2554bc6.d49ce8",
876     "type": "outcomeTrue",
877     "name": "true",
878     "xml": "<outcome value='true'>\n",
879     "comments": "",
880     "outputs": 1,
881     "x": 1151.8700714111328,
882     "y": 397.8953676223755,
883     "z": "662bc73e.2f2df8",
884     "wires": [
885       [
886         "6ecb0b06.7fedc4"
887       ]
888     ]
889   },
890   {
891     "id": "6ecb0b06.7fedc4",
892     "type": "block",
893     "name": "block : atomic",
894     "xml": "<block atomic=\"true\">",
895     "atomic": "true",
896     "outputs": 1,
897     "x": 1300.419719696045,
898     "y": 398.9220609664917,
899     "z": "662bc73e.2f2df8",
900     "wires": [
901       [
902         "83210993.fce798"
903       ]
904     ]
905   },
906   {
907     "id": "83210993.fce798",
908     "type": "set",
909     "name": "set siteId",
910     "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",
911     "comments": "",
912     "x": 1444.7530822753906,
913     "y": 399.9220781326294,
914     "z": "662bc73e.2f2df8",
915     "wires": []
916   },
917   {
918     "id": "48d793e7.102a6c",
919     "type": "comment",
920     "name": "Get siteId to delete",
921     "info": "",
922     "comments": "",
923     "x": 1023.857048034668,
924     "y": 366.0000238418579,
925     "z": "662bc73e.2f2df8",
926     "wires": []
927   },
928   {
929     "id": "5a50b7d1.a81c28",
930     "type": "execute",
931     "name": "execute RestApiCallNode Get token",
932     "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\"/>",
933     "comments": "",
934     "outputs": 1,
935     "x": 1277.0000762939453,
936     "y": 595.0000381469727,
937     "z": "662bc73e.2f2df8",
938     "wires": [
939       [
940         "326c4c2.f406bb4",
941         "e3754930.79e2e8"
942       ]
943     ]
944   },
945   {
946     "id": "ab2363bc.936b4",
947     "type": "execute",
948     "name": "execute Properties",
949     "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",
950     "comments": "",
951     "outputs": 1,
952     "x": 617,
953     "y": 232,
954     "z": "662bc73e.2f2df8",
955     "wires": [
956       []
957     ]
958   }
959 ]