CCVPN extension site resource DGs
[sdnc/oam.git] / platform-logic / generic-resource-api / src / main / json / sdwan / GENERIC-RESOURCE-API_sdwan-vf-operation-site-deactivate.json
1 [\r
2     {\r
3         "id": "5c29a6ba.038668",\r
4         "type": "method",\r
5         "name": "method sdwan-vf-operation-site-deactivate",\r
6         "xml": "<method rpc='sdwan-vf-operation-site-deactivate' mode='sync'>\n",\r
7         "comments": "",\r
8         "outputs": 1,\r
9         "x": 236.00390625,\r
10         "y": 176.58634185791016,\r
11         "z": "1fcdaf2d.f82361",\r
12         "wires": [\r
13             [\r
14                 "c10a5ef9.eb1cc"\r
15             ]\r
16         ]\r
17     },\r
18     {\r
19         "id": "7b112072.6efee",\r
20         "type": "dgstart",\r
21         "name": "DGSTART",\r
22         "outputs": 1,\r
23         "x": 145.00390625,\r
24         "y": 20,\r
25         "z": "1fcdaf2d.f82361",\r
26         "wires": [\r
27             [\r
28                 "c6cd33c4.247fe"\r
29             ]\r
30         ]\r
31     },\r
32     {\r
33         "id": "c6cd33c4.247fe",\r
34         "type": "service-logic",\r
35         "name": "GENERIC-RESOURCE-API ${project.version}",\r
36         "module": "GENERIC-RESOURCE-API",\r
37         "version": "${project.version}",\r
38         "comments": "",\r
39         "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}'>",\r
40         "outputs": 1,\r
41         "x": 224.28961181640625,\r
42         "y": 82.23810958862305,\r
43         "z": "1fcdaf2d.f82361",\r
44         "wires": [\r
45             [\r
46                 "5c29a6ba.038668"\r
47             ]\r
48         ]\r
49     },\r
50     {\r
51         "id": "c10a5ef9.eb1cc",\r
52         "type": "block",\r
53         "name": "block : atomic",\r
54         "xml": "<block atomic=\"true\">",\r
55         "atomic": "true",\r
56         "outputs": 1,\r
57         "x": 222.6705780029297,\r
58         "y": 361.6667137145996,\r
59         "z": "1fcdaf2d.f82361",\r
60         "wires": [\r
61             [\r
62                 "987b6cfb.095a4",\r
63                 "2421aa48.a967a6",\r
64                 "a7501bce.e84ca8",\r
65                 "c42c3129.16bb4",\r
66                 "67b10f8d.c3d57",\r
67                 "7db6c871.1ca638",\r
68                 "5c7d3c9a.2071e4",\r
69                 "7e398340.b85bfc",\r
70                 "27be343.61169cc",\r
71                 "4d4441d6.c778f",\r
72                 "2c4e5cc7.b76554",\r
73                 "f0d9af80.b3024",\r
74                 "1cc606fc.7b90b9"\r
75             ]\r
76         ]\r
77     },\r
78     {\r
79         "id": "2421aa48.a967a6",\r
80         "type": "for",\r
81         "name": "for each vnf",\r
82         "xml": "<for index='idx' start='0' end='`$service-data.vnfs.vnf_length`' >\n",\r
83         "comments": "",\r
84         "outputs": 1,\r
85         "x": 568.035270690918,\r
86         "y": 256.2691411972046,\r
87         "z": "1fcdaf2d.f82361",\r
88         "wires": [\r
89             [\r
90                 "f656e0b.31e062"\r
91             ]\r
92         ]\r
93     },\r
94     {\r
95         "id": "987b6cfb.095a4",\r
96         "type": "switchNode",\r
97         "name": "switch vnf_length",\r
98         "xml": "<switch test='`$service-data.vnfs.vnf_length`'>\n",\r
99         "comments": "",\r
100         "outputs": 1,\r
101         "x": 573.0039253234863,\r
102         "y": 195.00001049041748,\r
103         "z": "1fcdaf2d.f82361",\r
104         "wires": [\r
105             [\r
106                 "d40e76d0.d5ce48"\r
107             ]\r
108         ]\r
109     },\r
110     {\r
111         "id": "d40e76d0.d5ce48",\r
112         "type": "outcome",\r
113         "name": "NULL",\r
114         "xml": "<outcome value=''>\n",\r
115         "comments": "",\r
116         "outputs": 1,\r
117         "x": 753.00390625,\r
118         "y": 194,\r
119         "z": "1fcdaf2d.f82361",\r
120         "wires": [\r
121             [\r
122                 "de4bbf24.9eba4"\r
123             ]\r
124         ]\r
125     },\r
126     {\r
127         "id": "de4bbf24.9eba4",\r
128         "type": "returnFailure",\r
129         "name": "return failure",\r
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",\r
131         "comments": "",\r
132         "x": 902.4326324462891,\r
133         "y": 195.14291763305664,\r
134         "z": "1fcdaf2d.f82361",\r
135         "wires": []\r
136     },\r
137     {\r
138         "id": "f656e0b.31e062",\r
139         "type": "switchNode",\r
140         "name": "switch this vnf-id == input vnf-id",\r
141         "xml": "<switch test=\"`$service-data.vnfs.vnf[$idx].vnf-id == $vf-module-topology-operation-input.vnf-information.vnf-id`\">    \n",\r
142         "comments": "",\r
143         "outputs": 1,\r
144         "x": 791.0039215087891,\r
145         "y": 257.00000619888306,\r
146         "z": "1fcdaf2d.f82361",\r
147         "wires": [\r
148             [\r
149                 "4eea1b40.3a5ae4"\r
150             ]\r
151         ]\r
152     },\r
153     {\r
154         "id": "4eea1b40.3a5ae4",\r
155         "type": "outcomeTrue",\r
156         "name": "true",\r
157         "xml": "<outcome value='true'>\n",\r
158         "comments": "",\r
159         "outputs": 1,\r
160         "x": 1006.00390625,\r
161         "y": 255,\r
162         "z": "1fcdaf2d.f82361",\r
163         "wires": [\r
164             [\r
165                 "efdee9f.d679018"\r
166             ]\r
167         ]\r
168     },\r
169     {\r
170         "id": "efdee9f.d679018",\r
171         "type": "set",\r
172         "name": "set vnf-index",\r
173         "xml": "<set>\n<parameter name='vnf-index' value='`$idx`' />\n",\r
174         "comments": "",\r
175         "x": 1170.00390625,\r
176         "y": 250,\r
177         "z": "1fcdaf2d.f82361",\r
178         "wires": []\r
179     },\r
180     {\r
181         "id": "a7501bce.e84ca8",\r
182         "type": "switchNode",\r
183         "name": "switch vf-modules.vf-module_length",\r
184         "xml": "<switch test='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module_length`'>\n",\r
185         "comments": "",\r
186         "outputs": 1,\r
187         "x": 618.0039138793945,\r
188         "y": 327.99999046325684,\r
189         "z": "1fcdaf2d.f82361",\r
190         "wires": [\r
191             [\r
192                 "ad789953.0300c8",\r
193                 "a370bc16.16cab",\r
194                 "be5b6663.110a88"\r
195             ]\r
196         ]\r
197     },\r
198     {\r
199         "id": "a370bc16.16cab",\r
200         "type": "outcome",\r
201         "name": "NULL",\r
202         "xml": "<outcome value=''>\n",\r
203         "comments": "",\r
204         "outputs": 1,\r
205         "x": 840.00390625,\r
206         "y": 362,\r
207         "z": "1fcdaf2d.f82361",\r
208         "wires": [\r
209             [\r
210                 "22440a59.760c56"\r
211             ]\r
212         ]\r
213     },\r
214     {\r
215         "id": "ad789953.0300c8",\r
216         "type": "outcome",\r
217         "name": "0",\r
218         "xml": "<outcome value='0'>\n",\r
219         "comments": "",\r
220         "outputs": 1,\r
221         "x": 845.0039024353027,\r
222         "y": 308.9999990463257,\r
223         "z": "1fcdaf2d.f82361",\r
224         "wires": [\r
225             [\r
226                 "22440a59.760c56"\r
227             ]\r
228         ]\r
229     },\r
230     {\r
231         "id": "22440a59.760c56",\r
232         "type": "returnFailure",\r
233         "name": "return failure",\r
234         "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",\r
235         "comments": "",\r
236         "x": 1003.00390625,\r
237         "y": 322,\r
238         "z": "1fcdaf2d.f82361",\r
239         "wires": []\r
240     },\r
241     {\r
242         "id": "be5b6663.110a88",\r
243         "type": "other",\r
244         "name": "other",\r
245         "xml": "<outcome value='Other'>\n",\r
246         "comments": "",\r
247         "outputs": 1,\r
248         "x": 840.00390625,\r
249         "y": 423,\r
250         "z": "1fcdaf2d.f82361",\r
251         "wires": [\r
252             [\r
253                 "cb5b975f.044798"\r
254             ]\r
255         ]\r
256     },\r
257     {\r
258         "id": "da67128d.15fa1",\r
259         "type": "set",\r
260         "name": "set vf-module_length",\r
261         "xml": "<set>\n<parameter name='vf-module-length' value='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module_length`' />\n\n",\r
262         "comments": "",\r
263         "x": 1194.003921508789,\r
264         "y": 421.0000139474869,\r
265         "z": "1fcdaf2d.f82361",\r
266         "wires": []\r
267     },\r
268     {\r
269         "id": "cb5b975f.044798",\r
270         "type": "block",\r
271         "name": "block : atomic",\r
272         "xml": "<block atomic=\"true\">",\r
273         "atomic": "true",\r
274         "outputs": 1,\r
275         "x": 1001.0039520263672,\r
276         "y": 419.99999141693115,\r
277         "z": "1fcdaf2d.f82361",\r
278         "wires": [\r
279             [\r
280                 "da67128d.15fa1",\r
281                 "8901c130.f196d"\r
282             ]\r
283         ]\r
284     },\r
285     {\r
286         "id": "8901c130.f196d",\r
287         "type": "for",\r
288         "name": "for each existing vf-index",\r
289         "xml": "<for index='idx' start='0' end='`$vf-module-length`' >\n",\r
290         "comments": "",\r
291         "outputs": 1,\r
292         "x": 1213.003890991211,\r
293         "y": 473.99999046325684,\r
294         "z": "1fcdaf2d.f82361",\r
295         "wires": [\r
296             [\r
297                 "332a4ae3.ad50b6"\r
298             ]\r
299         ]\r
300     },\r
301     {\r
302         "id": "332a4ae3.ad50b6",\r
303         "type": "switchNode",\r
304         "name": "switch vf-module-id found",\r
305         "xml": "<switch test=\"`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$idx].vf-module-id == $vf-module-topology-operation-input.vf-module-information.vf-module-id`\">\n",\r
306         "comments": "",\r
307         "outputs": 1,\r
308         "x": 1456.00390625,\r
309         "y": 469,\r
310         "z": "1fcdaf2d.f82361",\r
311         "wires": [\r
312             [\r
313                 "e0471cb4.f94dd"\r
314             ]\r
315         ]\r
316     },\r
317     {\r
318         "id": "e0471cb4.f94dd",\r
319         "type": "outcomeTrue",\r
320         "name": "true",\r
321         "xml": "<outcome value='true'>\n",\r
322         "comments": "",\r
323         "outputs": 1,\r
324         "x": 1654.0039348602295,\r
325         "y": 456.0000066757202,\r
326         "z": "1fcdaf2d.f82361",\r
327         "wires": [\r
328             [\r
329                 "1ca5dda0.751ea2"\r
330             ]\r
331         ]\r
332     },\r
333     {\r
334         "id": "1ca5dda0.751ea2",\r
335         "type": "block",\r
336         "name": "block : atomic",\r
337         "xml": "<block atomic=\"true\">",\r
338         "atomic": "true",\r
339         "outputs": 1,\r
340         "x": 1806.00390625,\r
341         "y": 458,\r
342         "z": "1fcdaf2d.f82361",\r
343         "wires": [\r
344             [\r
345                 "3077bb99.f991c4",\r
346                 "96d4f974.763d28",\r
347                 "37f06523.6ef90a"\r
348             ]\r
349         ]\r
350     },\r
351     {\r
352         "id": "3077bb99.f991c4",\r
353         "type": "set",\r
354         "name": "set tmp.vidx and ctx.vnf-data",\r
355         "xml": "<set>\n<parameter name='tmp.vidx' value='`$idx`' />\n<parameter name='ctx.vf-module-data.' value='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$idx].vf-module-data.`' />\n",\r
356         "comments": "",\r
357         "x": 2028.00390625,\r
358         "y": 454,\r
359         "z": "1fcdaf2d.f82361",\r
360         "wires": []\r
361     },\r
362     {\r
363         "id": "96d4f974.763d28",\r
364         "type": "set",\r
365         "name": "set vf-module-request-input.",\r
366         "xml": "<set>\n<parameter name='vf-module-request-input.' value='`$ctx.vf-module-data.vf-module-request-input.`' />\n\n",\r
367         "comments": "",\r
368         "x": 2034.00390625,\r
369         "y": 503,\r
370         "z": "1fcdaf2d.f82361",\r
371         "wires": []\r
372     },\r
373     {\r
374         "id": "37f06523.6ef90a",\r
375         "type": "call",\r
376         "name": "call sdwan-get-vf-module-site-param",\r
377         "xml": "<call module='GENERIC-RESOURCE-API' rpc='sdwan-get-vf-module-site-param' mode='sync' >\n",\r
378         "comments": "",\r
379         "outputs": 1,\r
380         "x": 2062.0041275024414,\r
381         "y": 551.0000057220459,\r
382         "z": "1fcdaf2d.f82361",\r
383         "wires": [\r
384             []\r
385         ]\r
386     },\r
387     {\r
388         "id": "67b10f8d.c3d57",\r
389         "type": "record",\r
390         "name": "record",\r
391         "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.FileRecorder\">\n<parameter name=\"file\" value=\"/opt/opendaylight/current/data/log/svclogic.log\"/>\n<parameter name=\"field1\" value=\"__TIMESTAMP__\"/>\n<parameter name=\"field2\" value=\"Provided alloted resource length\"/>\n<parameter name=\"field3\" value=\"'parameters length'\"/>\n<parameter name=\"field4\" value='`$vnf-topology-operation-input.vnf-request-input.vnf-input-parameters.param_length`'/>\n\n\n\n",\r
392         "comments": "",\r
393         "outputs": 1,\r
394         "x": 533.0039806365967,\r
395         "y": 554.0000057220459,\r
396         "z": "1fcdaf2d.f82361",\r
397         "wires": [\r
398             []\r
399         ]\r
400     },\r
401     {\r
402         "id": "c42c3129.16bb4",\r
403         "type": "switchNode",\r
404         "name": "switch tmp.vidx ",\r
405         "xml": "<switch test=\"`$tmp.vidx`\">\n\n",\r
406         "comments": "",\r
407         "outputs": 1,\r
408         "x": 557.0351257324219,\r
409         "y": 501.0160732269287,\r
410         "z": "1fcdaf2d.f82361",\r
411         "wires": [\r
412             [\r
413                 "288e4f16.fdb24"\r
414             ]\r
415         ]\r
416     },\r
417     {\r
418         "id": "288e4f16.fdb24",\r
419         "type": "outcome",\r
420         "name": "NULL",\r
421         "xml": "<outcome value=''>\n",\r
422         "comments": "",\r
423         "outputs": 1,\r
424         "x": 704.4637680053711,\r
425         "y": 500.5874834060669,\r
426         "z": "1fcdaf2d.f82361",\r
427         "wires": [\r
428             [\r
429                 "6d758b04.419134"\r
430             ]\r
431         ]\r
432     },\r
433     {\r
434         "id": "6d758b04.419134",\r
435         "type": "returnFailure",\r
436         "name": "return failure",\r
437         "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",\r
438         "comments": "",\r
439         "x": 853.8924942016602,\r
440         "y": 501.73040103912354,\r
441         "z": "1fcdaf2d.f82361",\r
442         "wires": []\r
443     },\r
444     {\r
445         "id": "7db6c871.1ca638",\r
446         "type": "execute",\r
447         "name": "execute Properties",\r
448         "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",\r
449         "comments": "",\r
450         "outputs": 1,\r
451         "x": 564.0351448059082,\r
452         "y": 603.0160584449768,\r
453         "z": "1fcdaf2d.f82361",\r
454         "wires": [\r
455             []\r
456         ]\r
457     },\r
458     {\r
459         "id": "5c7d3c9a.2071e4",\r
460         "type": "for",\r
461         "name": "for loop idx - VF-module input parameters",\r
462         "xml": "<for index='idx' start='0' end='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$tmp.vidx].vf-module-data.vf-module-request-input.vf-module-input-parameters.param_length`'>\n",\r
463         "comments": "",\r
464         "outputs": 1,\r
465         "x": 604.0039367675781,\r
466         "y": 678.4548873901367,\r
467         "z": "1fcdaf2d.f82361",\r
468         "wires": [\r
469             [\r
470                 "f399c5e.d5b6e38"\r
471             ]\r
472         ]\r
473     },\r
474     {\r
475         "id": "f399c5e.d5b6e38",\r
476         "type": "block",\r
477         "name": "block",\r
478         "xml": "<block>\n",\r
479         "atomic": "false",\r
480         "comments": "",\r
481         "outputs": 1,\r
482         "x": 857.8997802734375,\r
483         "y": 675.3768310546875,\r
484         "z": "1fcdaf2d.f82361",\r
485         "wires": [\r
486             [\r
487                 "6f7dac79.02cc84",\r
488                 "69380680.bf88e8"\r
489             ]\r
490         ]\r
491     },\r
492     {\r
493         "id": "6f7dac79.02cc84",\r
494         "type": "switchNode",\r
495         "name": "switch type",\r
496         "xml": "<switch test=\"`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$tmp.vidx].vf-module-data.vf-module-request-input.vf-module-input-parameters.param[$idx].name == 'type'`\">\n",\r
497         "comments": "",\r
498         "outputs": 1,\r
499         "x": 995.0169830322266,\r
500         "y": 675.3502712249756,\r
501         "z": "1fcdaf2d.f82361",\r
502         "wires": [\r
503             [\r
504                 "8d1befdb.32c39"\r
505             ]\r
506         ]\r
507     },\r
508     {\r
509         "id": "8d1befdb.32c39",\r
510         "type": "outcomeTrue",\r
511         "name": "true",\r
512         "xml": "<outcome value='true'>\n",\r
513         "comments": "",\r
514         "outputs": 1,\r
515         "x": 1135.016990661621,\r
516         "y": 676.3502712249756,\r
517         "z": "1fcdaf2d.f82361",\r
518         "wires": [\r
519             [\r
520                 "79096937.65ad98"\r
521             ]\r
522         ]\r
523     },\r
524     {\r
525         "id": "79096937.65ad98",\r
526         "type": "block",\r
527         "name": "block : atomic",\r
528         "xml": "<block atomic=\"true\">",\r
529         "atomic": "true",\r
530         "outputs": 1,\r
531         "x": 1283.5666389465332,\r
532         "y": 677.3769645690918,\r
533         "z": "1fcdaf2d.f82361",\r
534         "wires": [\r
535             [\r
536                 "50251b49.1faa44"\r
537             ]\r
538         ]\r
539     },\r
540     {\r
541         "id": "50251b49.1faa44",\r
542         "type": "set",\r
543         "name": "set type and sdwan flag",\r
544         "xml": "<set>\n<parameter name='prop.site.type' value='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$tmp.vidx].vf-module-data.vf-module-request-input.vf-module-input-parameters.param[$idx].value`' />\n<parameter name='prop.site.sdwan' value=\"true\" />\n",\r
545         "comments": "",\r
546         "x": 1498.9000129699707,\r
547         "y": 677.3769731521606,\r
548         "z": "1fcdaf2d.f82361",\r
549         "wires": []\r
550     },\r
551     {\r
552         "id": "69380680.bf88e8",\r
553         "type": "switchNode",\r
554         "name": "switch siteId",\r
555         "xml": "<switch test=\"`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$tmp.vidx].vf-module-data.vf-module-request-input.vf-module-input-parameters.param[$idx].name == 'siteId'`\">\n",\r
556         "comments": "",\r
557         "outputs": 1,\r
558         "x": 995.0168800354004,\r
559         "y": 750.3503141403198,\r
560         "z": "1fcdaf2d.f82361",\r
561         "wires": [\r
562             [\r
563                 "89a7d161.ebf8a"\r
564             ]\r
565         ]\r
566     },\r
567     {\r
568         "id": "89a7d161.ebf8a",\r
569         "type": "outcomeTrue",\r
570         "name": "true",\r
571         "xml": "<outcome value='true'>\n",\r
572         "comments": "",\r
573         "outputs": 1,\r
574         "x": 1135.016887664795,\r
575         "y": 751.3503141403198,\r
576         "z": "1fcdaf2d.f82361",\r
577         "wires": [\r
578             [\r
579                 "8cbeced8.b613d"\r
580             ]\r
581         ]\r
582     },\r
583     {\r
584         "id": "8cbeced8.b613d",\r
585         "type": "block",\r
586         "name": "block : atomic",\r
587         "xml": "<block atomic=\"true\">",\r
588         "atomic": "true",\r
589         "outputs": 1,\r
590         "x": 1283.566535949707,\r
591         "y": 752.377007484436,\r
592         "z": "1fcdaf2d.f82361",\r
593         "wires": [\r
594             [\r
595                 "5b3b802.4f9668"\r
596             ]\r
597         ]\r
598     },\r
599     {\r
600         "id": "5b3b802.4f9668",\r
601         "type": "set",\r
602         "name": "set siteId",\r
603         "xml": "<set>\n<parameter name='prop.site.siteId' value='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$tmp.vidx].vf-module-data.vf-module-request-input.vf-module-input-parameters.param[$idx].value`' />\n\n",\r
604         "comments": "",\r
605         "x": 1427.8998985290527,\r
606         "y": 753.3770246505737,\r
607         "z": "1fcdaf2d.f82361",\r
608         "wires": []\r
609     },\r
610     {\r
611         "id": "db911ea5.5cc8d",\r
612         "type": "comment",\r
613         "name": "Get siteId to delete",\r
614         "info": "",\r
615         "comments": "",\r
616         "x": 1007.0038642883301,\r
617         "y": 719.4549703598022,\r
618         "z": "1fcdaf2d.f82361",\r
619         "wires": []\r
620     },\r
621     {\r
622         "id": "7e398340.b85bfc",\r
623         "type": "switchNode",\r
624         "name": "switch prop.site.sdwan",\r
625         "xml": "<switch test=\"`$prop.site.sdwan`\">\n",\r
626         "comments": "",\r
627         "outputs": 1,\r
628         "x": 533.5116882324219,\r
629         "y": 845.1213359832764,\r
630         "z": "1fcdaf2d.f82361",\r
631         "wires": [\r
632             [\r
633                 "c63fd2c7.67fc"\r
634             ]\r
635         ]\r
636     },\r
637     {\r
638         "id": "c63fd2c7.67fc",\r
639         "type": "outcomeTrue",\r
640         "name": "true",\r
641         "xml": "<outcome value='true'>\n",\r
642         "comments": "",\r
643         "outputs": 1,\r
644         "x": 714.5118217468262,\r
645         "y": 846.1213626861572,\r
646         "z": "1fcdaf2d.f82361",\r
647         "wires": [\r
648             [\r
649                 "653ef686.4a6068"\r
650             ]\r
651         ]\r
652     },\r
653     {\r
654         "id": "69850da3.9c7b14",\r
655         "type": "success",\r
656         "name": "success",\r
657         "xml": "<outcome value='success'>\n",\r
658         "comments": "",\r
659         "outputs": 1,\r
660         "x": 1419.0118446350098,\r
661         "y": 814.1214170455933,\r
662         "z": "1fcdaf2d.f82361",\r
663         "wires": [\r
664             [\r
665                 "ba061c2b.bf22f"\r
666             ]\r
667         ]\r
668     },\r
669     {\r
670         "id": "ba061c2b.bf22f",\r
671         "type": "set",\r
672         "name": "set controller data",\r
673         "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",\r
674         "comments": "",\r
675         "x": 1607.5119400024414,\r
676         "y": 808.1214267015457,\r
677         "z": "1fcdaf2d.f82361",\r
678         "wires": []\r
679     },\r
680     {\r
681         "id": "85b7f6ac.e36598",\r
682         "type": "not-found",\r
683         "name": "not-found",\r
684         "xml": "<outcome value='not-found'>\n",\r
685         "comments": "",\r
686         "outputs": 1,\r
687         "x": 1422.5028114318848,\r
688         "y": 861.6954526901245,\r
689         "z": "1fcdaf2d.f82361",\r
690         "wires": [\r
691             [\r
692                 "1b75ce4a.6d0092"\r
693             ]\r
694         ]\r
695     },\r
696     {\r
697         "id": "1b75ce4a.6d0092",\r
698         "type": "returnFailure",\r
699         "name": "return failure",\r
700         "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",\r
701         "comments": "",\r
702         "x": 1596.0742225646973,\r
703         "y": 849.9811887741089,\r
704         "z": "1fcdaf2d.f82361",\r
705         "wires": []\r
706     },\r
707     {\r
708         "id": "5b05b37.dea904c",\r
709         "type": "other",\r
710         "name": "other",\r
711         "xml": "<outcome value='Other'>\n",\r
712         "comments": "",\r
713         "outputs": 1,\r
714         "x": 1414.8358192443848,\r
715         "y": 903.0287656784058,\r
716         "z": "1fcdaf2d.f82361",\r
717         "wires": [\r
718             [\r
719                 "fb9dc1ca.b519e"\r
720             ]\r
721         ]\r
722     },\r
723     {\r
724         "id": "fb9dc1ca.b519e",\r
725         "type": "returnFailure",\r
726         "name": "return failure",\r
727         "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",\r
728         "comments": "",\r
729         "x": 1602.6083755493164,\r
730         "y": 898.4679584503174,\r
731         "z": "1fcdaf2d.f82361",\r
732         "wires": []\r
733     },\r
734     {\r
735         "id": "31c7dfa0.a2acb",\r
736         "type": "get-resource",\r
737         "name": "get-resource esr-thirdparty-sdnc",\r
738         "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",\r
739         "comments": "",\r
740         "outputs": 1,\r
741         "x": 1152.0117568969727,\r
742         "y": 862.1214228868484,\r
743         "z": "1fcdaf2d.f82361",\r
744         "wires": [\r
745             [\r
746                 "69850da3.9c7b14",\r
747                 "85b7f6ac.e36598",\r
748                 "5b05b37.dea904c"\r
749             ]\r
750         ]\r
751     },\r
752     {\r
753         "id": "c256fc10.56b7c",\r
754         "type": "execute",\r
755         "name": "execute RestApiCallNode Create  SDWAN site",\r
756         "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.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`\" />",\r
757         "comments": "",\r
758         "outputs": 1,\r
759         "x": 1180.5121002197266,\r
760         "y": 1060.121494293213,\r
761         "z": "1fcdaf2d.f82361",\r
762         "wires": [\r
763             [\r
764                 "626ea124.c2d19",\r
765                 "77fd4a1.6d0b0b4"\r
766             ]\r
767         ]\r
768     },\r
769     {\r
770         "id": "6007a527.cdf6fc",\r
771         "type": "block",\r
772         "name": "block : atomic",\r
773         "xml": "<block atomic=\"true\">",\r
774         "atomic": "true",\r
775         "comments": "",\r
776         "outputs": 1,\r
777         "x": 1576.1784210205078,\r
778         "y": 1040.0103092193604,\r
779         "z": "1fcdaf2d.f82361",\r
780         "wires": [\r
781             []\r
782         ]\r
783     },\r
784     {\r
785         "id": "1facc57c.dbee2b",\r
786         "type": "returnFailure",\r
787         "name": "return failure",\r
788         "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",\r
789         "comments": "",\r
790         "x": 1573.6229209899902,\r
791         "y": 1074.5656490325928,\r
792         "z": "1fcdaf2d.f82361",\r
793         "wires": []\r
794     },\r
795     {\r
796         "id": "2b4696aa.b04baa",\r
797         "type": "failure",\r
798         "name": "failure",\r
799         "xml": "<outcome value='failure'>\n",\r
800         "comments": "",\r
801         "outputs": 1,\r
802         "x": 1442.6230182647705,\r
803         "y": 1076.5657682418823,\r
804         "z": "1fcdaf2d.f82361",\r
805         "wires": [\r
806             [\r
807                 "1facc57c.dbee2b"\r
808             ]\r
809         ]\r
810     },\r
811     {\r
812         "id": "1fb3f457.93c7fc",\r
813         "type": "success",\r
814         "name": "success",\r
815         "xml": "<outcome value='success'>\n",\r
816         "comments": "",\r
817         "outputs": 1,\r
818         "x": 1434.0672721862793,\r
819         "y": 1039.2324876785278,\r
820         "z": "1fcdaf2d.f82361",\r
821         "wires": [\r
822             [\r
823                 "6007a527.cdf6fc"\r
824             ]\r
825         ]\r
826     },\r
827     {\r
828         "id": "199f525b.bab65e",\r
829         "type": "success",\r
830         "name": "success",\r
831         "xml": "<outcome value='success'>\n",\r
832         "comments": "",\r
833         "outputs": 1,\r
834         "x": 1418.2657356262207,\r
835         "y": 940.1253787279129,\r
836         "z": "1fcdaf2d.f82361",\r
837         "wires": [\r
838             [\r
839                 "e85c3a39.e5bd58"\r
840             ]\r
841         ]\r
842     },\r
843     {\r
844         "id": "b6235f60.69d19",\r
845         "type": "failure",\r
846         "name": "failure",\r
847         "xml": "<outcome value='failure'>\n",\r
848         "comments": "",\r
849         "outputs": 1,\r
850         "x": 1410.5157356262207,\r
851         "y": 981.7682620286942,\r
852         "z": "1fcdaf2d.f82361",\r
853         "wires": [\r
854             [\r
855                 "429813db.05fa0c"\r
856             ]\r
857         ]\r
858     },\r
859     {\r
860         "id": "429813db.05fa0c",\r
861         "type": "block",\r
862         "name": "block",\r
863         "xml": "<block>\n",\r
864         "atomic": "false",\r
865         "comments": "",\r
866         "outputs": 1,\r
867         "x": 1536.5992317199707,\r
868         "y": 982.0142947435379,\r
869         "z": "1fcdaf2d.f82361",\r
870         "wires": [\r
871             []\r
872         ]\r
873     },\r
874     {\r
875         "id": "e85c3a39.e5bd58",\r
876         "type": "set",\r
877         "name": "set token-id",\r
878         "xml": "<set>\n<parameter name='prop.sdncRestApi.token_id' value='`$token-result.data.token_id`' />\n",\r
879         "comments": "",\r
880         "x": 1555.2657356262207,\r
881         "y": 940.1253787279129,\r
882         "z": "1fcdaf2d.f82361",\r
883         "wires": []\r
884     },\r
885     {\r
886         "id": "cfb510cb.1323d",\r
887         "type": "comment",\r
888         "name": "tmp.thirdparty-sdnc-id is hardcoded value?",\r
889         "info": "",\r
890         "comments": "",\r
891         "x": 1147.515609741211,\r
892         "y": 826.1253840923309,\r
893         "z": "1fcdaf2d.f82361",\r
894         "wires": []\r
895     },\r
896     {\r
897         "id": "653ef686.4a6068",\r
898         "type": "block",\r
899         "name": "block : atomic",\r
900         "xml": "<block atomic=\"true\">",\r
901         "atomic": "true",\r
902         "outputs": 1,\r
903         "x": 875.5117568969727,\r
904         "y": 846.7878704071045,\r
905         "z": "1fcdaf2d.f82361",\r
906         "wires": [\r
907             [\r
908                 "31c7dfa0.a2acb",\r
909                 "d00d4af5.3de678",\r
910                 "f5120e80.4ebea",\r
911                 "c256fc10.56b7c"\r
912             ]\r
913         ]\r
914     },\r
915     {\r
916         "id": "d00d4af5.3de678",\r
917         "type": "execute",\r
918         "name": "execute RestApiCallNode Get token",\r
919         "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\"/>",\r
920         "comments": "",\r
921         "outputs": 1,\r
922         "x": 1168.654685974121,\r
923         "y": 963.1213312149048,\r
924         "z": "1fcdaf2d.f82361",\r
925         "wires": [\r
926             [\r
927                 "199f525b.bab65e",\r
928                 "b6235f60.69d19"\r
929             ]\r
930         ]\r
931     },\r
932     {\r
933         "id": "f5120e80.4ebea",\r
934         "type": "call",\r
935         "name": "call sdwan-get-tenant-auth",\r
936         "xml": "<call module='GENERIC-RESOURCE-API' rpc='sdwan-get-tenant-auth' mode='sync' >\n",\r
937         "comments": "",\r
938         "outputs": 1,\r
939         "x": 1128.6546096801758,\r
940         "y": 1012.1212921142578,\r
941         "z": "1fcdaf2d.f82361",\r
942         "wires": [\r
943             []\r
944         ]\r
945     },\r
946     {\r
947         "id": "626ea124.c2d19",\r
948         "type": "failure",\r
949         "name": "failure",\r
950         "xml": "<outcome value='failure'>\n",\r
951         "comments": "",\r
952         "outputs": 1,\r
953         "x": 1436.6546096801758,\r
954         "y": 1137.1212921142578,\r
955         "z": "1fcdaf2d.f82361",\r
956         "wires": [\r
957             [\r
958                 "352b1b5f.73bb64"\r
959             ]\r
960         ]\r
961     },\r
962     {\r
963         "id": "352b1b5f.73bb64",\r
964         "type": "block",\r
965         "name": "block : atomic",\r
966         "xml": "<block atomic=\"true\">",\r
967         "atomic": "true",\r
968         "comments": "",\r
969         "outputs": 1,\r
970         "x": 1592.6546096801758,\r
971         "y": 1137.1212921142578,\r
972         "z": "1fcdaf2d.f82361",\r
973         "wires": [\r
974             []\r
975         ]\r
976     },\r
977     {\r
978         "id": "77fd4a1.6d0b0b4",\r
979         "type": "other",\r
980         "name": "other",\r
981         "xml": "<outcome value='Other'>\n",\r
982         "comments": "",\r
983         "outputs": 1,\r
984         "x": 1436.6546096801758,\r
985         "y": 1186.1212921142578,\r
986         "z": "1fcdaf2d.f82361",\r
987         "wires": [\r
988             [\r
989                 "a435af2d.1ebe4"\r
990             ]\r
991         ]\r
992     },\r
993     {\r
994         "id": "a435af2d.1ebe4",\r
995         "type": "block",\r
996         "name": "block : atomic",\r
997         "xml": "<block atomic=\"true\">",\r
998         "atomic": "true",\r
999         "comments": "",\r
1000         "outputs": 1,\r
1001         "x": 1614.6546096801758,\r
1002         "y": 1183.1212921142578,\r
1003         "z": "1fcdaf2d.f82361",\r
1004         "wires": [\r
1005             []\r
1006         ]\r
1007     },\r
1008     {\r
1009         "id": "27be343.61169cc",\r
1010         "type": "set",\r
1011         "name": "copy input data to service data",\r
1012         "xml": "<set>\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$tmp.vidx].vf-module-data.sdnc-request-header.' value='`$vf-module-topology-operation-input.sdnc-request-header.`' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$tmp.vidx].vf-module-data.request-information.' value='`$vf-module-topology-operation-input.request-information.`' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$tmp.vidx].vf-module-data.service-information.' value='`$vf-module-topology-operation-input.service-information.`' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$tmp.vidx].vf-module-data.vf-module-information.' value='`$vf-module-topology-operation-input.vf-module-information.`' />\n",\r
1013         "comments": "",\r
1014         "x": 558.4484710693359,\r
1015         "y": 912.5660271644592,\r
1016         "z": "1fcdaf2d.f82361",\r
1017         "wires": []\r
1018     },\r
1019     {\r
1020         "id": "4d4441d6.c778f",\r
1021         "type": "set",\r
1022         "name": "set vf-module-object-path",\r
1023         "xml": "<set>\n<parameter name='vf-module-object-path' value=\"`'restconf/config/GENERIC-RESOURCE-API:services/service/'\n + $vf-module-topology-operation-input.service-information.service-instance-id\n + '/service-data/vnfs/vnf/'\n + $service-data.vnfs.vnf[$vnf-index].vnf-id\n + '/vnf-data/vf-modules/vf-module/'\n + $vf-module-topology-operation-input.vf-module-information.vf-module-id\n + '/vf-module-data/vf-module-topology/'`\"/>\n<parameter name='vnf-object-path'\n value=\"`'restconf/config/GENERIC-RESOURCE-API:services/service/'\n + $vf-module-topology-operation-input.service-information.service-instance-id\n + '/service-data/vnfs/vnf/'\n + $service-data.vnfs.vnf[$vnf-index].vnf-id\n + '/vnf-data/vnf-topology/'`\"/>\n<parameter name='service-object-path'\n value=\"`'restconf/config/GENERIC-RESOURCE-API:services/service/'\n + $vf-module-topology-operation-input.service-information.service-instance-id\n + '/service-data/service-topology/'`\"/>\n",\r
1024         "comments": "",\r
1025         "x": 542.1151275634766,\r
1026         "y": 953.9827690124512,\r
1027         "z": "1fcdaf2d.f82361",\r
1028         "wires": []\r
1029     },\r
1030     {\r
1031         "id": "2c4e5cc7.b76554",\r
1032         "type": "set",\r
1033         "name": "set vf-module-oper-status to PendingDelete",\r
1034         "xml": "<set>\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$tmp.vidx].vf-module-data.vf-module-level-oper-status.order-status'  value='PendingDelete' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$tmp.vidx].vf-module-data.vf-module-level-oper-status.last-rpc-action'  value='`$vf-module-topology-operation-input.sdnc-request-header.svc-action`' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$tmp.vidx].vf-module-data.vf-module-level-oper-status.last-action'  value='`$vf-module-topology-operation-input.sdnc-request-header.request-action`' />\n",\r
1035         "comments": "",\r
1036         "x": 597.5952453613281,\r
1037         "y": 1003.5700263977051,\r
1038         "z": "1fcdaf2d.f82361",\r
1039         "wires": []\r
1040     },\r
1041     {\r
1042         "id": "1cc606fc.7b90b9",\r
1043         "type": "save",\r
1044         "name": "update site instance configuration in AAI",\r
1045         "xml": "<update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='device' \n      key='device.device-id = $vf-module-topology-operation-input.vf-module-information.vf-module-id' >\n<parameter name='device-id' value='`$vf-module-topology-operation-input.vf-module-information.vf-module-id`' />\n<!--parameter name='device-id' value='`$deviceResp.success[0].id`' /-->\n<parameter name='operational-status' value='PendingDelete' />\n",\r
1046         "comments": "",\r
1047         "outputs": 1,\r
1048         "x": 586.781982421875,\r
1049         "y": 1052.4551830291748,\r
1050         "z": "1fcdaf2d.f82361",\r
1051         "wires": [\r
1052             []\r
1053         ]\r
1054     },\r
1055     {\r
1056         "id": "f0d9af80.b3024",\r
1057         "type": "returnSuccess",\r
1058         "name": "return success",\r
1059         "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",\r
1060         "comments": "",\r
1061         "x": 507.5597839355469,\r
1062         "y": 1103.8992748260498,\r
1063         "z": "1fcdaf2d.f82361",\r
1064         "wires": []\r
1065     }\r
1066 ]