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-activate.json
1 [
2   {
3     "id": "365b721f.7a253e",
4     "type": "dgstart",
5     "name": "DGSTART",
6     "outputs": 1,
7     "x": 142.00390625,
8     "y": 164.01038789749146,
9     "z": "d540a7b.861cb58",
10     "wires": [
11       [
12         "4883cd2c.e8add4"
13       ]
14     ]
15   },
16   {
17     "id": "4883cd2c.e8add4",
18     "type": "service-logic",
19     "name": "GENERIC-RESOURCE-API ${project.version}",
20     "module": "GENERIC-RESOURCE-API",
21     "version": "${project.version}",
22     "comments": "",
23     "xml": "<service-logic xmlns='http://www.onap.org/sdnc/svclogic' xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xsi:schemaLocation='http://www.onap.org/sdnc/svclogic ./svclogic.xsd' module='GENERIC-RESOURCE-API' version='${project.version}'>",
24     "outputs": 1,
25     "x": 217.28961181640625,
26     "y": 204.24849939346313,
27     "z": "d540a7b.861cb58",
28     "wires": [
29       [
30         "3fd0f9a0.bfb166"
31       ]
32     ]
33   },
34   {
35     "id": "3fd0f9a0.bfb166",
36     "type": "method",
37     "name": "method site-vnf-topology-operation-activate",
38     "xml": "<method rpc='site-vnf-topology-operation-activate' mode='sync'>\n",
39     "comments": "",
40     "outputs": 1,
41     "x": 238.43252563476562,
42     "y": 294.01038789749146,
43     "z": "d540a7b.861cb58",
44     "wires": [
45       [
46         "a41ebaac.ea0658"
47       ]
48     ]
49   },
50   {
51     "id": "a41ebaac.ea0658",
52     "type": "block",
53     "name": "block : atomic",
54     "xml": "<block atomic=\"true\">",
55     "atomic": "true",
56     "outputs": 1,
57     "x": 226.67063903808594,
58     "y": 483.6771664619446,
59     "z": "d540a7b.861cb58",
60     "wires": [
61       [
62         "d76422f.52b80e",
63         "221a8fd1.b8b2f",
64         "faa004c7.5a25c8",
65         "5f14f4d2.549ccc",
66         "3c340ff6.924a4",
67         "3edd9e9f.d604f2",
68         "dd9550a6.ba9af",
69         "ead8f54d.0eecc8",
70         "90854244.d2678",
71         "78b0ee0f.0865f"
72       ]
73     ]
74   },
75   {
76     "id": "d76422f.52b80e",
77     "type": "switchNode",
78     "name": "switch service-data.vnfs.vnf_length",
79     "xml": "<switch test='`$service-data.vnfs.vnf_length`'>\n",
80     "comments": "",
81     "outputs": 1,
82     "x": 665.9935684204102,
83     "y": 112.9999828338623,
84     "z": "d540a7b.861cb58",
85     "wires": [
86       [
87         "3851ce61.8f91c2",
88         "a2f9a6ea.ae2718",
89         "c137a07.e2f1f6"
90       ]
91     ]
92   },
93   {
94     "id": "3851ce61.8f91c2",
95     "type": "other",
96     "name": "Null",
97     "xml": "<outcome value=''>\n",
98     "comments": "",
99     "outputs": 1,
100     "x": 896.9935455322266,
101     "y": 115.00004625320435,
102     "z": "d540a7b.861cb58",
103     "wires": [
104       [
105         "4f151038.9977"
106       ]
107     ]
108   },
109   {
110     "id": "4f151038.9977",
111     "type": "returnFailure",
112     "name": "return failure",
113     "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",
114     "comments": "",
115     "x": 1054.7710609436035,
116     "y": 95.8889946937561,
117     "z": "d540a7b.861cb58",
118     "wires": []
119   },
120   {
121     "id": "a2f9a6ea.ae2718",
122     "type": "other",
123     "name": "other",
124     "xml": "<outcome value='Other'>\n",
125     "comments": "",
126     "outputs": 1,
127     "x": 888.9939727783203,
128     "y": 150.00006818771362,
129     "z": "d540a7b.861cb58",
130     "wires": [
131       [
132         "f0eea43d.80c008"
133       ]
134     ]
135   },
136   {
137     "id": "f0eea43d.80c008",
138     "type": "block",
139     "name": "block : atomic",
140     "xml": "<block atomic=\"true\">",
141     "atomic": "true",
142     "outputs": 1,
143     "x": 1055.263442993164,
144     "y": 141.55460166931152,
145     "z": "d540a7b.861cb58",
146     "wires": [
147       [
148         "5514a22c.cabcac",
149         "c241356.b2ab4c8",
150         "18332af4.bcb575"
151       ]
152     ]
153   },
154   {
155     "id": "5514a22c.cabcac",
156     "type": "for",
157     "name": "for vidx..service-data.vnfs.vnf_length[]",
158     "xml": "<for index='vidx' start='0' end='`$service-data.vnfs.vnf_length`' >\n",
159     "comments": "",
160     "outputs": 1,
161     "x": 1306.2795715332031,
162     "y": 86.42860507965088,
163     "z": "d540a7b.861cb58",
164     "wires": [
165       [
166         "5665ac79.9c7064"
167       ]
168     ]
169   },
170   {
171     "id": "c241356.b2ab4c8",
172     "type": "switchNode",
173     "name": "switch tmp.vidx ",
174     "xml": "<switch test=\"`$tmp.vidx`\">\n\n",
175     "comments": "",
176     "outputs": 1,
177     "x": 1261.5808868408203,
178     "y": 136.41179132461548,
179     "z": "d540a7b.861cb58",
180     "wires": [
181       [
182         "19a218fc.ad6fe7"
183       ]
184     ]
185   },
186   {
187     "id": "19a218fc.ad6fe7",
188     "type": "outcome",
189     "name": "NULL",
190     "xml": "<outcome value=''>\n",
191     "comments": "",
192     "outputs": 1,
193     "x": 1413.0096893310547,
194     "y": 136.9832215309143,
195     "z": "d540a7b.861cb58",
196     "wires": [
197       [
198         "87ce1b6f.ea04b8"
199       ]
200     ]
201   },
202   {
203     "id": "3d3bb0a2.e8367",
204     "type": "switchNode",
205     "name": "switch vnfid found",
206     "xml": "<switch test=\"`$service-data.vnfs.vnf[$vidx].vnf-id == $vnf-topology-operation-input.vnf-information.vnf-id`\">\n\n",
207     "comments": "",
208     "outputs": 1,
209     "x": 1722.7082748413086,
210     "y": 45.67872476577759,
211     "z": "d540a7b.861cb58",
212     "wires": [
213       [
214         "90ad7f4f.37ad5"
215       ]
216     ]
217   },
218   {
219     "id": "87ce1b6f.ea04b8",
220     "type": "returnFailure",
221     "name": "return failure",
222     "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",
223     "comments": "",
224     "x": 1551.438087463379,
225     "y": 138.1260437965393,
226     "z": "d540a7b.861cb58",
227     "wires": []
228   },
229   {
230     "id": "90ad7f4f.37ad5",
231     "type": "outcomeTrue",
232     "name": "true",
233     "xml": "<outcome value='true'>\n",
234     "comments": "",
235     "outputs": 1,
236     "x": 1896.6607551574707,
237     "y": 45.57144498825073,
238     "z": "d540a7b.861cb58",
239     "wires": [
240       [
241         "edd58360.fef7"
242       ]
243     ]
244   },
245   {
246     "id": "c137a07.e2f1f6",
247     "type": "outcome",
248     "name": "0",
249     "xml": "<outcome value='0'>\n",
250     "comments": "",
251     "outputs": 1,
252     "x": 894.9623565673828,
253     "y": 77.9687352180481,
254     "z": "d540a7b.861cb58",
255     "wires": [
256       [
257         "4f151038.9977"
258       ]
259     ]
260   },
261   {
262     "id": "5f14f4d2.549ccc",
263     "type": "returnSuccess",
264     "name": "return success",
265     "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",
266     "comments": "",
267     "x": 610.3376045227051,
268     "y": 666.344172000885,
269     "z": "d540a7b.861cb58",
270     "wires": []
271   },
272   {
273     "id": "ead8f54d.0eecc8",
274     "type": "set",
275     "name": "set vnf-level-oper-status to Active",
276     "xml": "<set>\n<parameter name='service-data.vnfs.vnf[$tmp.vidx].vnf-data.vnf-level-oper-status.order-status' value='Active' />\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",
277     "comments": "",
278     "x": 672.8177947998047,
279     "y": 500.68161153793335,
280     "z": "d540a7b.861cb58",
281     "wires": []
282   },
283   {
284     "id": "dd9550a6.ba9af",
285     "type": "set",
286     "name": "set vnf-index and vnf-object-path",
287     "xml": "<set>\n<parameter name='vnfId' value='`$service-data.vnfs.vnf[$tmp.vidx].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/'` \" />",
288     "comments": "",
289     "x": 672.50439453125,
290     "y": 457.34414625167847,
291     "z": "d540a7b.861cb58",
292     "wires": []
293   },
294   {
295     "id": "1689d83b.0f3d48",
296     "type": "success",
297     "name": "success",
298     "xml": "<outcome value='success'>\n",
299     "comments": "",
300     "outputs": 1,
301     "x": 1530.504482269287,
302     "y": 402.0003957748413,
303     "z": "d540a7b.861cb58",
304     "wires": [
305       [
306         "877e79a4.de6e08"
307       ]
308     ]
309   },
310   {
311     "id": "877e79a4.de6e08",
312     "type": "set",
313     "name": "set controller data",
314     "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",
315     "comments": "",
316     "x": 1719.0045776367188,
317     "y": 396.00040543079376,
318     "z": "d540a7b.861cb58",
319     "wires": []
320   },
321   {
322     "id": "e9a64136.0f3a4",
323     "type": "not-found",
324     "name": "not-found",
325     "xml": "<outcome value='not-found'>\n",
326     "comments": "",
327     "outputs": 1,
328     "x": 1533.995449066162,
329     "y": 449.57443141937256,
330     "z": "d540a7b.861cb58",
331     "wires": [
332       [
333         "1ecf5c87.8a1883"
334       ]
335     ]
336   },
337   {
338     "id": "1ecf5c87.8a1883",
339     "type": "returnFailure",
340     "name": "return failure",
341     "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",
342     "comments": "",
343     "x": 1707.5668601989746,
344     "y": 437.86016750335693,
345     "z": "d540a7b.861cb58",
346     "wires": []
347   },
348   {
349     "id": "46f84de2.5c2c94",
350     "type": "other",
351     "name": "other",
352     "xml": "<outcome value='Other'>\n",
353     "comments": "",
354     "outputs": 1,
355     "x": 1526.328456878662,
356     "y": 490.9077444076538,
357     "z": "d540a7b.861cb58",
358     "wires": [
359       [
360         "87e2e13c.489f3"
361       ]
362     ]
363   },
364   {
365     "id": "87e2e13c.489f3",
366     "type": "returnFailure",
367     "name": "return failure",
368     "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",
369     "comments": "",
370     "x": 1714.1010131835938,
371     "y": 486.34693717956543,
372     "z": "d540a7b.861cb58",
373     "wires": []
374   },
375   {
376     "id": "e15f72bc.d37ff",
377     "type": "get-resource",
378     "name": "get-resource esr-thirdparty-sdnc",
379     "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",
380     "comments": "",
381     "outputs": 1,
382     "x": 1263.50439453125,
383     "y": 450.0004016160965,
384     "z": "d540a7b.861cb58",
385     "wires": [
386       [
387         "1689d83b.0f3d48",
388         "e9a64136.0f3a4",
389         "46f84de2.5c2c94"
390       ]
391     ]
392   },
393   {
394     "id": "8c66a623.b3e238",
395     "type": "execute",
396     "name": "execute RestApiCallNode Create  SDWAN site",
397     "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'`\" />\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`\" />",
398     "comments": "",
399     "outputs": 1,
400     "x": 1286.004508972168,
401     "y": 607.0003957748413,
402     "z": "d540a7b.861cb58",
403     "wires": [
404       [
405         "9cc77bf6.9a9d78",
406         "2cdd5eb4.cdc7e2"
407       ]
408     ]
409   },
410   {
411     "id": "45d1f2b.f3e000c",
412     "type": "block",
413     "name": "block : atomic",
414     "xml": "<block atomic=\"true\">",
415     "atomic": "true",
416     "comments": "",
417     "outputs": 1,
418     "x": 1706.6710319519043,
419     "y": 608.8892965316772,
420     "z": "d540a7b.861cb58",
421     "wires": [
422       []
423     ]
424   },
425   {
426     "id": "7a151bff.37aaa4",
427     "type": "returnFailure",
428     "name": "return failure",
429     "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",
430     "comments": "",
431     "x": 1692.1156158447266,
432     "y": 668.4446439743042,
433     "z": "d540a7b.861cb58",
434     "wires": []
435   },
436   {
437     "id": "2cdd5eb4.cdc7e2",
438     "type": "failure",
439     "name": "failure",
440     "xml": "<outcome value='failure'>\n",
441     "comments": "",
442     "outputs": 1,
443     "x": 1547.1156063079834,
444     "y": 665.4446420669556,
445     "z": "d540a7b.861cb58",
446     "wires": [
447       [
448         "7a151bff.37aaa4"
449       ]
450     ]
451   },
452   {
453     "id": "9cc77bf6.9a9d78",
454     "type": "success",
455     "name": "success",
456     "xml": "<outcome value='success'>\n",
457     "comments": "",
458     "outputs": 1,
459     "x": 1547.559944152832,
460     "y": 609.1114501953125,
461     "z": "d540a7b.861cb58",
462     "wires": [
463       [
464         "45d1f2b.f3e000c"
465       ]
466     ]
467   },
468   {
469     "id": "90854244.d2678",
470     "type": "set",
471     "name": "copy input data to service data",
472     "xml": "<set>\n<!--parameter name='service-data.vnfs.vnf[$tmp.vidx].vnf-id' value='`$vnf-topology-operation-input.vnf-information.vnf-id`' /-->\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.' />",
473     "comments": "",
474     "x": 664.0043487548828,
475     "y": 544.0006427764893,
476     "z": "d540a7b.861cb58",
477     "wires": []
478   },
479   {
480     "id": "dc8a36b0.c3b358",
481     "type": "execute",
482     "name": "execute RestApiCallNode Get token",
483     "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\"/>",
484     "comments": "",
485     "outputs": 1,
486     "x": 1264.7584915161133,
487     "y": 543.0044623613358,
488     "z": "d540a7b.861cb58",
489     "wires": [
490       [
491         "b5fd26d4.434e58",
492         "35ebfe16.180562"
493       ]
494     ]
495   },
496   {
497     "id": "b5fd26d4.434e58",
498     "type": "success",
499     "name": "success",
500     "xml": "<outcome value='success'>\n",
501     "comments": "",
502     "outputs": 1,
503     "x": 1529.758373260498,
504     "y": 528.004357457161,
505     "z": "d540a7b.861cb58",
506     "wires": [
507       [
508         "545e872c.836968"
509       ]
510     ]
511   },
512   {
513     "id": "35ebfe16.180562",
514     "type": "failure",
515     "name": "failure",
516     "xml": "<outcome value='failure'>\n",
517     "comments": "",
518     "outputs": 1,
519     "x": 1522.008373260498,
520     "y": 569.6472407579422,
521     "z": "d540a7b.861cb58",
522     "wires": [
523       [
524         "ec823836.0a8798"
525       ]
526     ]
527   },
528   {
529     "id": "ec823836.0a8798",
530     "type": "block",
531     "name": "block",
532     "xml": "<block>\n",
533     "atomic": "false",
534     "comments": "",
535     "outputs": 1,
536     "x": 1648.091869354248,
537     "y": 569.893273472786,
538     "z": "d540a7b.861cb58",
539     "wires": [
540       []
541     ]
542   },
543   {
544     "id": "545e872c.836968",
545     "type": "set",
546     "name": "set token-id",
547     "xml": "<set>\n<parameter name='prop.sdncRestApi.token_id' value='`$token-result.data.token_id`' />\n",
548     "comments": "",
549     "x": 1666.758373260498,
550     "y": 528.004357457161,
551     "z": "d540a7b.861cb58",
552     "wires": []
553   },
554   {
555     "id": "48a7bd41.b0ef94",
556     "type": "comment",
557     "name": "tmp.thirdparty-sdnc-id is hardcoded value?",
558     "info": "",
559     "comments": "",
560     "x": 1312.0082931518555,
561     "y": 404.00437355041504,
562     "z": "d540a7b.861cb58",
563     "wires": []
564   },
565   {
566     "id": "3edd9e9f.d604f2",
567     "type": "set",
568     "name": "set siteId to service data",
569     "xml": "<set>\n<!--parameter name='service-data.vnfs.vnf[$tmp.vidx].vnf-id' value='`$service-data.vnfs.vnf[$tmp.vidx].vnf-id`' /-->\n<parameter name='service-data.vnfs.vnf[$tmp.vidx].vnf-data.vnf-request-input.vnf-input-parameters.param[$service-data.vnfs.vnf[$tmp.vidx].vnf-data.vnf-request-input.vnf-input-parameters.param_length].name' value='siteId' />\n<parameter name='service-data.vnfs.vnf[$tmp.vidx].vnf-data.vnf-request-input.vnf-input-parameters.param[$service-data.vnfs.vnf[$tmp.vidx].vnf-data.vnf-request-input.vnf-input-parameters.param_length].value' value='`$site-result.success[0].id`' />\n<parameter name='service-data.vnfs.vnf[$tmp.vidx].vnf-data.vnf-request-input.vnf-input-parameters.param_length' value='`$service-data.vnfs.vnf[$tmp.vidx].vnf-data.vnf-request-input.vnf-input-parameters.param_length + 1`' />\n",
570     "comments": "",
571     "x": 654.0081787109375,
572     "y": 419.0042562484741,
573     "z": "d540a7b.861cb58",
574     "wires": []
575   },
576   {
577     "id": "5c9c6749.a75a58",
578     "type": "switchNode",
579     "name": "switch ActivateSDWANDeviceInstance",
580     "xml": "<switch test=\"`$service-data.vnfs.vnf[$vidx].vnf-data.request-information.request-action == 'ActivateSDWANDeviceInstance'`\">\n\n    \n    \n\n",
581     "comments": "",
582     "outputs": 1,
583     "x": 1790.2582473754883,
584     "y": 115.00390195846558,
585     "z": "d540a7b.861cb58",
586     "wires": [
587       [
588         "4e8a745e.fc595c"
589       ]
590     ]
591   },
592   {
593     "id": "4e8a745e.fc595c",
594     "type": "outcomeTrue",
595     "name": "true",
596     "xml": "<outcome value='true'>\n",
597     "comments": "",
598     "outputs": 1,
599     "x": 2017.2581024169922,
600     "y": 114.00390100479126,
601     "z": "d540a7b.861cb58",
602     "wires": [
603       [
604         "80899e02.b6a68"
605       ]
606     ]
607   },
608   {
609     "id": "f39513a2.e7f31",
610     "type": "comment",
611     "name": "Get devices",
612     "info": "",
613     "comments": "",
614     "x": 1824.0082626342773,
615     "y": 135.75391721725464,
616     "z": "d540a7b.861cb58",
617     "wires": []
618   },
619   {
620     "id": "221a8fd1.b8b2f",
621     "type": "set",
622     "name": "set prop.site.sdwan false",
623     "xml": "<set>\n<parameter name='prop.site.sdwan' value=\"false\" />\n\n",
624     "comments": "",
625     "x": 645.0039215087891,
626     "y": 54.00003242492676,
627     "z": "d540a7b.861cb58",
628     "wires": []
629   },
630   {
631     "id": "3c340ff6.924a4",
632     "type": "switchNode",
633     "name": "switch prop.site.sdwan",
634     "xml": "<switch test=\"`$prop.site.sdwan`\">\n",
635     "comments": "",
636     "outputs": 1,
637     "x": 641.0040283203125,
638     "y": 361.6666216850281,
639     "z": "d540a7b.861cb58",
640     "wires": [
641       [
642         "3529dc36.6091c4"
643       ]
644     ]
645   },
646   {
647     "id": "3529dc36.6091c4",
648     "type": "outcomeTrue",
649     "name": "true",
650     "xml": "<outcome value='true'>\n",
651     "comments": "",
652     "outputs": 1,
653     "x": 820.004077911377,
654     "y": 358.6666216850281,
655     "z": "d540a7b.861cb58",
656     "wires": [
657       [
658         "b0a30d5b.6002c"
659       ]
660     ]
661   },
662   {
663     "id": "b0a30d5b.6002c",
664     "type": "block",
665     "name": "block : atomic",
666     "xml": "<block atomic=\"true\">",
667     "atomic": "true",
668     "outputs": 1,
669     "x": 976.0043029785156,
670     "y": 355.66694355010986,
671     "z": "d540a7b.861cb58",
672     "wires": [
673       [
674         "8c7ebff5.e351e",
675         "1aa5ae21.057332",
676         "8c66a623.b3e238",
677         "e15f72bc.d37ff",
678         "dc8a36b0.c3b358"
679       ]
680     ]
681   },
682   {
683     "id": "80899e02.b6a68",
684     "type": "block",
685     "name": "block : atomic",
686     "xml": "<block atomic=\"true\">",
687     "atomic": "true",
688     "outputs": 1,
689     "x": 1972.6710166931152,
690     "y": 176.00004196166992,
691     "z": "d540a7b.861cb58",
692     "wires": [
693       [
694         "744280bc.85fef"
695       ]
696     ]
697   },
698   {
699     "id": "744280bc.85fef",
700     "type": "for",
701     "name": "for loop deviceidx - Get deviceId from servicedata",
702     "xml": "<for index=\"deviceidx\" start=\"0\" end=\"`$service-data.vnfs.vnf[$vidx].vnf-data.vnf-request-input.vnf-input-parameters.param_length`\">",
703     "comments": "",
704     "outputs": 1,
705     "x": 2254.0047702789307,
706     "y": 186.00006246566772,
707     "z": "d540a7b.861cb58",
708     "wires": [
709       [
710         "e3f03864.75b5b8"
711       ]
712     ]
713   },
714   {
715     "id": "e3f03864.75b5b8",
716     "type": "block",
717     "name": "block",
718     "xml": "<block>\n",
719     "atomic": "false",
720     "comments": "",
721     "outputs": 1,
722     "x": 2370.004554748535,
723     "y": 237.00024795532227,
724     "z": "d540a7b.861cb58",
725     "wires": [
726       [
727         "271bfd98.e39bf2"
728       ]
729     ]
730   },
731   {
732     "id": "271bfd98.e39bf2",
733     "type": "switchNode",
734     "name": "switch deviceId",
735     "xml": "<switch test=\"`$service-data.vnfs.vnf[$vidx].vnf-data.vnf-request-input.vnf-input-parameters.param[$deviceidx].name == 'deviceId'`\">\n",
736     "comments": "",
737     "outputs": 1,
738     "x": 2530.004810333252,
739     "y": 239.00010108947754,
740     "z": "d540a7b.861cb58",
741     "wires": [
742       [
743         "d2e3890.db58f78"
744       ]
745     ]
746   },
747   {
748     "id": "d2e3890.db58f78",
749     "type": "outcomeTrue",
750     "name": "true",
751     "xml": "<outcome value='true'>\n",
752     "comments": "",
753     "outputs": 1,
754     "x": 2682.004981994629,
755     "y": 238.00010108947754,
756     "z": "d540a7b.861cb58",
757     "wires": [
758       [
759         "a5559674.8a50e8"
760       ]
761     ]
762   },
763   {
764     "id": "a5559674.8a50e8",
765     "type": "set",
766     "name": "set deviceId",
767     "xml": "<set>\n<parameter name='prop.site.deviceId[$prop.site.deviceId_length]' value='`$service-data.vnfs.vnf[$vidx].vnf-data.vnf-request-input.vnf-input-parameters.param[$deviceidx].value`' />\n<parameter name='prop.site.deviceId_length' value='`$prop.site.deviceId_length + 1`' />\n",
768     "comments": "",
769     "x": 2822.004985809326,
770     "y": 237.60005569458008,
771     "z": "d540a7b.861cb58",
772     "wires": []
773   },
774   {
775     "id": "18332af4.bcb575",
776     "type": "set",
777     "name": "set prop.site.deviceId_length",
778     "xml": "<set>\n<parameter name='prop.site.deviceId_length' value='0' />\n",
779     "comments": "",
780     "x": 1298.003978729248,
781     "y": 40.99999475479126,
782     "z": "d540a7b.861cb58",
783     "wires": []
784   },
785   {
786     "id": "78b0ee0f.0865f",
787     "type": "save",
788     "name": "update siteInstance configuration in AAI",
789     "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='generated-site-id' value='`$site-result.success[0].id`' /> \n<parameter name='operational-status' value='Active' />\n",
790     "comments": "",
791     "outputs": 1,
792     "x": 694.0040740966797,
793     "y": 605.0001573562622,
794     "z": "d540a7b.861cb58",
795     "wires": [
796       []
797     ]
798   },
799   {
800     "id": "faa004c7.5a25c8",
801     "type": "execute",
802     "name": "execute Properties",
803     "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",
804     "comments": "",
805     "outputs": 1,
806     "x": 637.0039443969727,
807     "y": 250.9999966621399,
808     "z": "d540a7b.861cb58",
809     "wires": [
810       []
811     ]
812   },
813   {
814     "id": "8c7ebff5.e351e",
815     "type": "set",
816     "name": "set siteId",
817     "xml": "<set>\n<parameter name='prop.site.siteId' value=\"\" />\n\n",
818     "comments": "",
819     "x": 1185.0042419433594,
820     "y": 346.00010216236115,
821     "z": "d540a7b.861cb58",
822     "wires": []
823   },
824   {
825     "id": "f5d9902.f200f7",
826     "type": "comment",
827     "name": "should be null in request",
828     "info": "",
829     "comments": "",
830     "x": 1194.004165649414,
831     "y": 317.00005638599396,
832     "z": "d540a7b.861cb58",
833     "wires": []
834   },
835   {
836     "id": "edd58360.fef7",
837     "type": "block",
838     "name": "block : atomic",
839     "xml": "<block atomic=\"true\">",
840     "atomic": "true",
841     "outputs": 1,
842     "x": 2067.004051208496,
843     "y": 49.65758037567139,
844     "z": "d540a7b.861cb58",
845     "wires": [
846       [
847         "e434b261.8d553",
848         "2f0be2c.5dcd11e",
849         "eee333df.5a9b6"
850       ]
851     ]
852   },
853   {
854     "id": "2f0be2c.5dcd11e",
855     "type": "set",
856     "name": "set vnf-request-input.",
857     "xml": "<set>\n<parameter name='vnf-request-input.' value='`$ctx.vnf-data.vnf-data.vnf-request-input.`' />\n\n",
858     "comments": "",
859     "x": 2319.337059020996,
860     "y": 66.65763568878174,
861     "z": "d540a7b.861cb58",
862     "wires": []
863   },
864   {
865     "id": "e434b261.8d553",
866     "type": "set",
867     "name": "set tmp.vidx and ctx.vnf-data",
868     "xml": "<set>\n<parameter name='tmp.vidx' value='`$vidx`' />\n<parameter name='ctx.vnf-data.' value='`$service-data.vnfs.vnf[$vidx].`' />\n",
869     "comments": "",
870     "x": 2346.890769958496,
871     "y": 20,
872     "z": "d540a7b.861cb58",
873     "wires": []
874   },
875   {
876     "id": "eee333df.5a9b6",
877     "type": "call",
878     "name": "call sdwan-get-site-param",
879     "xml": "<call module='GENERIC-RESOURCE-API' rpc='sdwan-get-site-param' mode='sync' >\n",
880     "comments": "",
881     "outputs": 1,
882     "x": 2317.977737426758,
883     "y": 102.1071195602417,
884     "z": "d540a7b.861cb58",
885     "wires": [
886       []
887     ]
888   },
889   {
890     "id": "1aa5ae21.057332",
891     "type": "for",
892     "name": "for cpidx..prop.site.controlpoints",
893     "xml": "<for index='cpidx' start='0' end='`$prop.site.controlpoints_length`' >\n\t\t\t\t\t\t\t\t\t\n",
894     "comments": "",
895     "outputs": 1,
896     "x": 1245.0045166015625,
897     "y": 247.03131580352783,
898     "z": "d540a7b.861cb58",
899     "wires": [
900       [
901         "78afb961.5c44f8"
902       ]
903     ]
904   },
905   {
906     "id": "78afb961.5c44f8",
907     "type": "block",
908     "name": "block : atomic",
909     "xml": "<block atomic=\"true\">",
910     "atomic": "true",
911     "outputs": 1,
912     "x": 1488.0040283203125,
913     "y": 245.03125476837158,
914     "z": "d540a7b.861cb58",
915     "wires": [
916       [
917         "6cfee007.a751c",
918         "9f90e330.d491e"
919       ]
920     ]
921   },
922   {
923     "id": "5665ac79.9c7064",
924     "type": "block",
925     "name": "block : atomic",
926     "xml": "<block atomic=\"true\">",
927     "atomic": "true",
928     "outputs": 1,
929     "x": 1545.2540493011475,
930     "y": 86.00390911102295,
931     "z": "d540a7b.861cb58",
932     "wires": [
933       [
934         "3d3bb0a2.e8367",
935         "5c9c6749.a75a58"
936       ]
937     ]
938   },
939   {
940     "id": "6cfee007.a751c",
941     "type": "get-resource",
942     "name": "get-resource control pts for sideId",
943     "xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\t\tresource=\"site-resource\" \n\t\tkey=\"site-resource.name = $prop.controlPtId AND \n\t\t     depth = '1'\"\n        pfx='tmp.aai.controlPoints' local-only='false' >\n\n",
944     "comments": "",
945     "outputs": 1,
946     "x": 1711.333595275879,
947     "y": 270.0000762939453,
948     "z": "d540a7b.861cb58",
949     "wires": [
950       [
951         "80cbc7ba.096f98",
952         "e060fcc5.cef25"
953       ]
954     ]
955   },
956   {
957     "id": "44fab179.6e6d3",
958     "type": "set",
959     "name": "set siteId in control point",
960     "xml": "<set>\n<parameter name='prop.site.controlpoints[$cpidx]' value='`$tmp.aai.controlPoints.generated-site-id`' />\n\n",
961     "comments": "",
962     "x": 2108.666790008545,
963     "y": 240.00019645690918,
964     "z": "d540a7b.861cb58",
965     "wires": []
966   },
967   {
968     "id": "80cbc7ba.096f98",
969     "type": "success",
970     "name": "success",
971     "xml": "<outcome value='success'>\n",
972     "comments": "",
973     "outputs": 1,
974     "x": 1930.0004386901855,
975     "y": 239.00007438659668,
976     "z": "d540a7b.861cb58",
977     "wires": [
978       [
979         "44fab179.6e6d3"
980       ]
981     ]
982   },
983   {
984     "id": "e060fcc5.cef25",
985     "type": "failure",
986     "name": "failure",
987     "xml": "<outcome value='failure'>\n",
988     "comments": "",
989     "outputs": 1,
990     "x": 1932.2502822875977,
991     "y": 277.6429605484009,
992     "z": "d540a7b.861cb58",
993     "wires": [
994       [
995         "a065dfd4.9970f"
996       ]
997     ]
998   },
999   {
1000     "id": "a065dfd4.9970f",
1001     "type": "block",
1002     "name": "block",
1003     "xml": "<block>\n",
1004     "atomic": "false",
1005     "comments": "",
1006     "outputs": 1,
1007     "x": 2072.6666297912598,
1008     "y": 276.0000171661377,
1009     "z": "d540a7b.861cb58",
1010     "wires": [
1011       []
1012     ]
1013   },
1014   {
1015     "id": "9f90e330.d491e",
1016     "type": "set",
1017     "name": "set prop.controlPtId",
1018     "xml": "<set>\n<parameter name='prop.controlPtId' value='`$prop.site.controlpoints[$cpidx]`' />\n\n",
1019     "comments": "",
1020     "x": 1673.000099182129,
1021     "y": 210.0000114440918,
1022     "z": "d540a7b.861cb58",
1023     "wires": []
1024   }
1025 ]