Multiple self-serve fixes
[sdnc/oam.git] / platform-logic / generic-resource-api / src / main / json / sdwan / GENERIC-RESOURCE-API_sdwan-vnf-topology-operation-wanport-activate.json
1 [
2   {
3     "id": "d6f12b23.a89678",
4     "type": "dgstart",
5     "name": "DGSTART",
6     "outputs": 1,
7     "x": 97,
8     "y": 43,
9     "z": "725c7d45.19d1f4",
10     "wires": [
11       [
12         "c865ab04.6af178"
13       ]
14     ]
15   },
16   {
17     "id": "c865ab04.6af178",
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": 228.2856903076172,
26     "y": 92.23810863494873,
27     "z": "725c7d45.19d1f4",
28     "wires": [
29       [
30         "6872e2ee.d6997c"
31       ]
32     ]
33   },
34   {
35     "id": "6872e2ee.d6997c",
36     "type": "method",
37     "name": "method sdwan-vnf-topology-operation-wanport-activate",
38     "xml": "<method rpc='sdwan-vnf-topology-operation-wanport-activate' mode='sync'>\n",
39     "comments": "",
40     "outputs": 1,
41     "x": 231.42861938476562,
42     "y": 177.00003242492676,
43     "z": "725c7d45.19d1f4",
44     "wires": [
45       [
46         "e8a5051a.b42f68"
47       ]
48     ]
49   },
50   {
51     "id": "e8a5051a.b42f68",
52     "type": "block",
53     "name": "block : atomic",
54     "xml": "<block atomic=\"true\">",
55     "atomic": "true",
56     "outputs": 1,
57     "x": 294.66675567626953,
58     "y": 782.666989326477,
59     "z": "725c7d45.19d1f4",
60     "wires": [
61       [
62         "8f3957a7.d167f8",
63         "4891bde.3538244",
64         "ffc944ec.552788",
65         "d579e51d.f36088",
66         "d09273d4.34d5b",
67         "d8cffa08.c70f58",
68         "272d2403.37c86c",
69         "b6ab2db8.206f6",
70         "e9d254c6.c408a8",
71         "2a8c1af8.df5bf6",
72         "ee4c5d7e.eaa99",
73         "455c32c0.dc954c",
74         "dc56d269.4a63b",
75         "1286c83c.18ccc8",
76         "de66785c.628fe8",
77         "8b82d2e5.53604",
78         "a401887.73e5778",
79         "863a36e8.4a5b78",
80         "2c809153.c42dee",
81         "2c725167.90a60e"
82       ]
83     ]
84   },
85   {
86     "id": "8f3957a7.d167f8",
87     "type": "returnSuccess",
88     "name": "return success",
89     "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",
90     "comments": "",
91     "x": 621.334529876709,
92     "y": 1514.3347115516663,
93     "z": "725c7d45.19d1f4",
94     "wires": []
95   },
96   {
97     "id": "2a8c1af8.df5bf6",
98     "type": "execute",
99     "name": "execute RestApiCallNode device port create",
100     "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"templateFileName\" value=\"`$prop.restapi.templateDir + '/sdwan-port.json'`\" />\n<parameter name=\"restapiUrl\" value=\"`$prop.sdncRestApi.thirdpartySdnc.url + '/controller/campus/v1/sdwan/net/ports'`\" />\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=\"portResp\"/>\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`\" />",
101     "comments": "",
102     "outputs": 1,
103     "x": 709.3341102600098,
104     "y": 777.889497756958,
105     "z": "725c7d45.19d1f4",
106     "wires": [
107       [
108         "e20e98c1.35cd38",
109         "6f78988b.f50df8"
110       ]
111     ]
112   },
113   {
114     "id": "e20e98c1.35cd38",
115     "type": "success",
116     "name": "success",
117     "xml": "<outcome value='success'>\n",
118     "comments": "",
119     "outputs": 1,
120     "x": 958.3341693878174,
121     "y": 791.8897037506104,
122     "z": "725c7d45.19d1f4",
123     "wires": [
124       [
125         "bed4bc3f.f5932"
126       ]
127     ]
128   },
129   {
130     "id": "6f78988b.f50df8",
131     "type": "failure",
132     "name": "failure",
133     "xml": "<outcome value='failure'>\n",
134     "comments": "",
135     "outputs": 1,
136     "x": 958.3341693878174,
137     "y": 753.8895392417908,
138     "z": "725c7d45.19d1f4",
139     "wires": [
140       [
141         "8f1b4806.f6c948"
142       ]
143     ]
144   },
145   {
146     "id": "8f1b4806.f6c948",
147     "type": "returnFailure",
148     "name": "return failure",
149     "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 device port rest api\" />\n",
150     "comments": "",
151     "x": 1102.3345031738281,
152     "y": 752.8895387649536,
153     "z": "725c7d45.19d1f4",
154     "wires": []
155   },
156   {
157     "id": "bed4bc3f.f5932",
158     "type": "block",
159     "name": "block : atomic",
160     "xml": "<block atomic=\"true\">",
161     "atomic": "true",
162     "comments": "",
163     "outputs": 1,
164     "x": 1105.3341808319092,
165     "y": 792.8895425796509,
166     "z": "725c7d45.19d1f4",
167     "wires": [
168       []
169     ]
170   },
171   {
172     "id": "ee4c5d7e.eaa99",
173     "type": "execute",
174     "name": "execute RestApiCallNode get transport network info",
175     "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"restapiUrl\" value=\"`$prop.sdncRestApi.thirdpartySdnc.url + '/controller/campus/v1/sdwan/net/network-orchestration-resources'`\" />\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=\"get\"/>\n<parameter name=\"responsePrefix\" value=\"transportNetworksResp\"/>\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`\" />",
176     "comments": "",
177     "outputs": 1,
178     "x": 732.0004615783691,
179     "y": 957.0006031990051,
180     "z": "725c7d45.19d1f4",
181     "wires": [
182       [
183         "72b3b752.f6bbf8",
184         "f75c8efc.5bc38"
185       ]
186     ]
187   },
188   {
189     "id": "dc56d269.4a63b",
190     "type": "execute",
191     "name": "execute RestApiCallNode wan port create",
192     "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"templateFileName\" value=\"`$prop.restapi.templateDir + '/sdwan-wan-port.json'`\" />\n<parameter name=\"restapiUrl\" value=\"`$prop.sdncRestApi.thirdpartySdnc.url + '/controller/campus/v1/sdwan/net/transport-network-ports'`\" />\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=\"wanPortResp\"/>\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`\" />",
193     "comments": "",
194     "outputs": 1,
195     "x": 705.0005531311035,
196     "y": 1194.000651359558,
197     "z": "725c7d45.19d1f4",
198     "wires": [
199       [
200         "b358fdc8.47501",
201         "e8f33bf4.d74a28"
202       ]
203     ]
204   },
205   {
206     "id": "4891bde.3538244",
207     "type": "switchNode",
208     "name": "switch service-data.vnfs.vnf_length",
209     "xml": "<switch test='`$service-data.vnfs.vnf_length`'>\n",
210     "comments": "",
211     "outputs": 1,
212     "x": 691.0209350585938,
213     "y": 121.02091217041016,
214     "z": "725c7d45.19d1f4",
215     "wires": [
216       [
217         "bba0a2df.9b7fe",
218         "f5df4ed9.043ee",
219         "ad1fb0e6.30f2b"
220       ]
221     ]
222   },
223   {
224     "id": "bba0a2df.9b7fe",
225     "type": "other",
226     "name": "Null",
227     "xml": "<outcome value=''>\n",
228     "comments": "",
229     "outputs": 1,
230     "x": 943.0209693908691,
231     "y": 122.02099323272705,
232     "z": "725c7d45.19d1f4",
233     "wires": [
234       [
235         "2105bad4.c6ead6"
236       ]
237     ]
238   },
239   {
240     "id": "2105bad4.c6ead6",
241     "type": "returnFailure",
242     "name": "return failure",
243     "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",
244     "comments": "",
245     "x": 1104.7987174987793,
246     "y": 101.90994024276733,
247     "z": "725c7d45.19d1f4",
248     "wires": []
249   },
250   {
251     "id": "f5df4ed9.043ee",
252     "type": "other",
253     "name": "other",
254     "xml": "<outcome value='Other'>\n",
255     "comments": "",
256     "outputs": 1,
257     "x": 936.0213775634766,
258     "y": 155.02099704742432,
259     "z": "725c7d45.19d1f4",
260     "wires": [
261       [
262         "e4ac49d6.f30708"
263       ]
264     ]
265   },
266   {
267     "id": "e4ac49d6.f30708",
268     "type": "block",
269     "name": "block : atomic",
270     "xml": "<block atomic=\"true\">",
271     "atomic": "true",
272     "outputs": 1,
273     "x": 959.2908935546875,
274     "y": 253.57559204101562,
275     "z": "725c7d45.19d1f4",
276     "wires": [
277       [
278         "3335cf85.18b",
279         "646eb0ad.764a7",
280         "47895138.250a9",
281         "af3fc11d.805b3",
282         "38c64027.0dbb1"
283       ]
284     ]
285   },
286   {
287     "id": "3335cf85.18b",
288     "type": "for",
289     "name": "for vidx..service-data.vnfs.vnf_length[]",
290     "xml": "<for index='vidx' start='0' end='`$service-data.vnfs.vnf_length`' >\n",
291     "comments": "",
292     "outputs": 1,
293     "x": 1239.3070373535156,
294     "y": 147.44955825805664,
295     "z": "725c7d45.19d1f4",
296     "wires": [
297       [
298         "a85a6118.25ae3"
299       ]
300     ]
301   },
302   {
303     "id": "646eb0ad.764a7",
304     "type": "switchNode",
305     "name": "switch tmp.vidx ",
306     "xml": "<switch test=\"`$tmp.vidx`\">\n\n",
307     "comments": "",
308     "outputs": 1,
309     "x": 1165.608341217041,
310     "y": 293.43279361724854,
311     "z": "725c7d45.19d1f4",
312     "wires": [
313       [
314         "e159f8e9.ab1288"
315       ]
316     ]
317   },
318   {
319     "id": "e159f8e9.ab1288",
320     "type": "outcome",
321     "name": "NULL",
322     "xml": "<outcome value=''>\n",
323     "comments": "",
324     "outputs": 1,
325     "x": 1313.0369834899902,
326     "y": 293.0042037963867,
327     "z": "725c7d45.19d1f4",
328     "wires": [
329       [
330         "50911a7c.bcb394"
331       ]
332     ]
333   },
334   {
335     "id": "ce82d617.853858",
336     "type": "switchNode",
337     "name": "switch vnfid found",
338     "xml": "<switch test=\"`$service-data.vnfs.vnf[$vidx].vnf-id == $vnf-topology-operation-input.vnf-information.vnf-id`\">\n\n",
339     "comments": "",
340     "outputs": 1,
341     "x": 1612.7362670898438,
342     "y": 146.69972038269043,
343     "z": "725c7d45.19d1f4",
344     "wires": [
345       [
346         "bc627350.7812f"
347       ]
348     ]
349   },
350   {
351     "id": "50911a7c.bcb394",
352     "type": "returnFailure",
353     "name": "return failure",
354     "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",
355     "comments": "",
356     "x": 1462.4657096862793,
357     "y": 294.14712142944336,
358     "z": "725c7d45.19d1f4",
359     "wires": []
360   },
361   {
362     "id": "bc627350.7812f",
363     "type": "outcomeTrue",
364     "name": "true",
365     "xml": "<outcome value='true'>\n",
366     "comments": "",
367     "outputs": 1,
368     "x": 1767.6882591247559,
369     "y": 147.59239959716797,
370     "z": "725c7d45.19d1f4",
371     "wires": [
372       [
373         "2709419e.cb1d4e"
374       ]
375     ]
376   },
377   {
378     "id": "f97e5dae.1c8e2",
379     "type": "set",
380     "name": "set tmp.vidx and ctx.vnf-data",
381     "xml": "<set>\n<parameter name='tmp.vidx' value='`$vidx`' />\n<parameter name='ctx.vnf-data.' value='`$service-data.vnfs.vnf[$vidx].`' />\n",
382     "comments": "",
383     "x": 2175.220344543457,
384     "y": 57.34245777130127,
385     "z": "725c7d45.19d1f4",
386     "wires": []
387   },
388   {
389     "id": "ad1fb0e6.30f2b",
390     "type": "outcome",
391     "name": "0",
392     "xml": "<outcome value='0'>\n",
393     "comments": "",
394     "outputs": 1,
395     "x": 944.9897193908691,
396     "y": 85.98967933654785,
397     "z": "725c7d45.19d1f4",
398     "wires": [
399       [
400         "2105bad4.c6ead6"
401       ]
402     ]
403   },
404   {
405     "id": "1286c83c.18ccc8",
406     "type": "set",
407     "name": "set device PortId to service data",
408     "xml": "<set>\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='devicePortId' />\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='`$prop.wan.devicePortId`' />\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\n\n\n\n",
409     "comments": "",
410     "x": 673.9909210205078,
411     "y": 1250.9912090301514,
412     "z": "725c7d45.19d1f4",
413     "wires": []
414   },
415   {
416     "id": "57e2b01e.38cf7",
417     "type": "comment",
418     "name": "Get siteId from site resource created for this service",
419     "info": "",
420     "comments": "",
421     "x": 716.9899826049805,
422     "y": 306.32321643829346,
423     "z": "725c7d45.19d1f4",
424     "wires": []
425   },
426   {
427     "id": "a85a6118.25ae3",
428     "type": "block",
429     "name": "block",
430     "xml": "<block>\n",
431     "atomic": "false",
432     "comments": "",
433     "outputs": 1,
434     "x": 1458.6566696166992,
435     "y": 146.98963832855225,
436     "z": "725c7d45.19d1f4",
437     "wires": [
438       [
439         "ce82d617.853858"
440       ]
441     ]
442   },
443   {
444     "id": "ffc944ec.552788",
445     "type": "set",
446     "name": "set vnfId and vnf-object-path",
447     "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/'` \" />",
448     "comments": "",
449     "x": 654.5462341308594,
450     "y": 1393.213122844696,
451     "z": "725c7d45.19d1f4",
452     "wires": []
453   },
454   {
455     "id": "d579e51d.f36088",
456     "type": "set",
457     "name": "set vnf-level-oper-status to Active",
458     "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",
459     "comments": "",
460     "x": 671.9906959533691,
461     "y": 1432.9909586906433,
462     "z": "725c7d45.19d1f4",
463     "wires": []
464   },
465   {
466     "id": "2c809153.c42dee",
467     "type": "update",
468     "name": "update SDWAN wan port instance configuration in AAI",
469     "xml": "<update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='wan-port-config' \n      key='wan-port-config.wan-port-config-id = $vnf-topology-operation-input.vnf-information.vnf-id' >\n<parameter name=\"wan-port-config-id\" value=\"`$vnf-topology-operation-input.vnf-information.vnf-id`\" />\n<parameter name='operational-status' value='Active' />\n<parameter name='device-port-id' value='`$prop.wan.devicePortId`' />\n<parameter name='wan-port-id' value='`$prop.wan.wanPortId`' />\n<parameter name='model-customization-id' value='`$vnf-topology-operation-input.vnf-information.onap-model-information.model-customization-uuid`' />\n<parameter name='model-invariant-id' value='`$vnf-topology-operation-input.vnf-information.onap-model-information.model-invariant-uuid`' />\n<parameter name='model-version-id' value='`$vnf-topology-operation-input.vnf-information.onap-model-information.model-uuid`' />\n",
470     "comments": "",
471     "outputs": 1,
472     "x": 734.653621673584,
473     "y": 1472.1384205818176,
474     "z": "725c7d45.19d1f4",
475     "wires": [
476       []
477     ]
478   },
479   {
480     "id": "1e8c7f90.773b9",
481     "type": "set",
482     "name": "set prop.wan.transportNetworkId",
483     "xml": "<set>\n<parameter name='prop.wan.transportNetworkId' value='`$transportNetworksResp.data.transportNetworks[$tidx].id`' />\n",
484     "comments": "",
485     "x": 1486.991542816162,
486     "y": 1033.9906749725342,
487     "z": "725c7d45.19d1f4",
488     "wires": []
489   },
490   {
491     "id": "863a36e8.4a5b78",
492     "type": "for",
493     "name": "for loop sidx - Get siteId from servicedata",
494     "xml": "<for index=\"sidx\" start=\"0\" end=\"`$ctx.site.vnf-data.vnf-request-input.vnf-input-parameters.param_length`\">\n    \n    \n",
495     "comments": "",
496     "outputs": 1,
497     "x": 696.9900054931641,
498     "y": 456.9898729324341,
499     "z": "725c7d45.19d1f4",
500     "wires": [
501       [
502         "72a58ce.4542a74"
503       ]
504     ]
505   },
506   {
507     "id": "4130ca31.df2bc4",
508     "type": "switchNode",
509     "name": "switch siteId",
510     "xml": "<switch test=\"`$ctx.site.vnf-data.vnf-request-input.vnf-input-parameters.param[$sidx].name == 'siteId'`\">\n",
511     "comments": "",
512     "outputs": 1,
513     "x": 1127.990333557129,
514     "y": 457.99000358581543,
515     "z": "725c7d45.19d1f4",
516     "wires": [
517       [
518         "8e36b04f.9057d"
519       ]
520     ]
521   },
522   {
523     "id": "8e36b04f.9057d",
524     "type": "outcomeTrue",
525     "name": "true",
526     "xml": "<outcome value='true'>\n",
527     "comments": "",
528     "outputs": 1,
529     "x": 1265.9907913208008,
530     "y": 455.98998832702637,
531     "z": "725c7d45.19d1f4",
532     "wires": [
533       [
534         "b3f426b3.22a238"
535       ]
536     ]
537   },
538   {
539     "id": "b3f426b3.22a238",
540     "type": "set",
541     "name": "set prop.wan.siteId",
542     "xml": "<set>\n<parameter name='prop.wan.siteId' value='`$ctx.site.vnf-data.vnf-request-input.vnf-input-parameters.param[$sidx].value`' />\n\n\n",
543     "comments": "",
544     "x": 1429.9908256530762,
545     "y": 457.58984184265137,
546     "z": "725c7d45.19d1f4",
547     "wires": []
548   },
549   {
550     "id": "455c32c0.dc954c",
551     "type": "execute",
552     "name": "execute split ip and mask",
553     "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='split' >\n<parameter name=\"original_string\" value='`$prop.wan.ipAddress`'/>\n<parameter name=\"regex\" value=\"/\"/>\n<parameter name=\"ctx_memory_result_key\" value=\"ipandMask\"/>\n",
554     "comments": "",
555     "outputs": 1,
556     "x": 655.9903297424316,
557     "y": 1102.3236436843872,
558     "z": "725c7d45.19d1f4",
559     "wires": [
560       [
561         "33727da5.4478c2",
562         "c855dead.051b"
563       ]
564     ]
565   },
566   {
567     "id": "c855dead.051b",
568     "type": "failure",
569     "name": "success",
570     "xml": "<outcome value='success'>\n",
571     "comments": "",
572     "outputs": 1,
573     "x": 856.990348815918,
574     "y": 1080.3236351013184,
575     "z": "725c7d45.19d1f4",
576     "wires": [
577       [
578         "fd37a12c.b50dd"
579       ]
580     ]
581   },
582   {
583     "id": "33727da5.4478c2",
584     "type": "failure",
585     "name": "failure",
586     "xml": "<outcome value='failure'>\n",
587     "comments": "",
588     "outputs": 1,
589     "x": 856.9903526306152,
590     "y": 1121.3236389160156,
591     "z": "725c7d45.19d1f4",
592     "wires": [
593       [
594         "92f41c8f.e77c6"
595       ]
596     ]
597   },
598   {
599     "id": "fd37a12c.b50dd",
600     "type": "set",
601     "name": "set ipAddress prefixLength",
602     "xml": "<set>\n<parameter name='prop.wan.ip-address' value='`$ipandMask[0]`' />\n<parameter name='prop.wan.prefixLength' value='`$ipandMask[1]`' />",
603     "comments": "",
604     "x": 1053.9903678894043,
605     "y": 1078.3236351013184,
606     "z": "725c7d45.19d1f4",
607     "wires": []
608   },
609   {
610     "id": "92f41c8f.e77c6",
611     "type": "returnFailure",
612     "name": "return failure",
613     "xml": "<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value=\"An error occured while splitting sna1_route\" />\n",
614     "comments": "",
615     "x": 1011.9903602600098,
616     "y": 1118.3236379623413,
617     "z": "725c7d45.19d1f4",
618     "wires": []
619   },
620   {
621     "id": "b6ab2db8.206f6",
622     "type": "get-resource",
623     "name": "get-resource esr-thirdparty-sdnc",
624     "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",
625     "comments": "",
626     "outputs": 1,
627     "x": 671.4901733398438,
628     "y": 554.9899291992188,
629     "z": "725c7d45.19d1f4",
630     "wires": [
631       [
632         "a209acee.17706",
633         "69e80906.c6c388",
634         "4690f303.905dfc"
635       ]
636     ]
637   },
638   {
639     "id": "a209acee.17706",
640     "type": "success",
641     "name": "success",
642     "xml": "<outcome value='success'>\n",
643     "comments": "",
644     "outputs": 1,
645     "x": 903.4902572631836,
646     "y": 518.9899520874023,
647     "z": "725c7d45.19d1f4",
648     "wires": [
649       [
650         "fb6bcdc7.90b7a"
651       ]
652     ]
653   },
654   {
655     "id": "69e80906.c6c388",
656     "type": "not-found",
657     "name": "not-found",
658     "xml": "<outcome value='not-found'>\n",
659     "comments": "",
660     "outputs": 1,
661     "x": 905.9811401367188,
662     "y": 554.5639886856079,
663     "z": "725c7d45.19d1f4",
664     "wires": [
665       [
666         "deef5ce.ffc72a"
667       ]
668     ]
669   },
670   {
671     "id": "4690f303.905dfc",
672     "type": "other",
673     "name": "other",
674     "xml": "<outcome value='Other'>\n",
675     "comments": "",
676     "outputs": 1,
677     "x": 901.3141479492188,
678     "y": 590.8973474502563,
679     "z": "725c7d45.19d1f4",
680     "wires": [
681       [
682         "340f62b3.ca041e"
683       ]
684     ]
685   },
686   {
687     "id": "340f62b3.ca041e",
688     "type": "returnFailure",
689     "name": "return failure",
690     "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",
691     "comments": "",
692     "x": 1055.0866394042969,
693     "y": 588.3364343643188,
694     "z": "725c7d45.19d1f4",
695     "wires": []
696   },
697   {
698     "id": "deef5ce.ffc72a",
699     "type": "returnFailure",
700     "name": "return failure",
701     "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",
702     "comments": "",
703     "x": 1051.5525360107422,
704     "y": 552.8496761322021,
705     "z": "725c7d45.19d1f4",
706     "wires": []
707   },
708   {
709     "id": "fb6bcdc7.90b7a",
710     "type": "set",
711     "name": "set controller data",
712     "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",
713     "comments": "",
714     "x": 1063.9903678894043,
715     "y": 516.9898920059204,
716     "z": "725c7d45.19d1f4",
717     "wires": []
718   },
719   {
720     "id": "d09273d4.34d5b",
721     "type": "record",
722     "name": "record",
723     "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=\"sdwan-wanport-vnf-topology-operation-activate\"/>\n<parameter name=\"field3\" value=\"SDWAN-Activate\"/>\n",
724     "comments": "",
725     "outputs": 1,
726     "x": 609.0000953674316,
727     "y": 177.00003004074097,
728     "z": "725c7d45.19d1f4",
729     "wires": [
730       []
731     ]
732   },
733   {
734     "id": "d8cffa08.c70f58",
735     "type": "execute",
736     "name": "execute Properties",
737     "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",
738     "comments": "",
739     "outputs": 1,
740     "x": 645.3022193908691,
741     "y": 212.00007390975952,
742     "z": "725c7d45.19d1f4",
743     "wires": [
744       []
745     ]
746   },
747   {
748     "id": "e9d254c6.c408a8",
749     "type": "execute",
750     "name": "execute RestApiCallNode Get token",
751     "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\"/>",
752     "comments": "",
753     "outputs": 1,
754     "x": 686.0003051757812,
755     "y": 642.6669311523438,
756     "z": "725c7d45.19d1f4",
757     "wires": [
758       [
759         "a2457d23.490bb",
760         "5d853693.ee5348"
761       ]
762     ]
763   },
764   {
765     "id": "a2457d23.490bb",
766     "type": "success",
767     "name": "success",
768     "xml": "<outcome value='success'>\n",
769     "comments": "",
770     "outputs": 1,
771     "x": 921.000431060791,
772     "y": 628.666919708252,
773     "z": "725c7d45.19d1f4",
774     "wires": [
775       [
776         "7f12a9ec.69af78"
777       ]
778     ]
779   },
780   {
781     "id": "7f12a9ec.69af78",
782     "type": "set",
783     "name": "set token-id",
784     "xml": "<set>\n<parameter name='prop.sdncRestApi.token_id' value='`$token-result.data.token_id`' />\n",
785     "comments": "",
786     "x": 1063.0004386901855,
787     "y": 627.6669206619263,
788     "z": "725c7d45.19d1f4",
789     "wires": []
790   },
791   {
792     "id": "e009ac00.02e288",
793     "type": "returnFailure",
794     "name": "return failure",
795     "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n    <parameter name=\"error-message\" value=\"Error executing get token rest api\" />\n",
796     "comments": "",
797     "x": 1069.0004386901855,
798     "y": 665.0599088668823,
799     "z": "725c7d45.19d1f4",
800     "wires": []
801   },
802   {
803     "id": "5d853693.ee5348",
804     "type": "failure",
805     "name": "failure",
806     "xml": "<outcome value='failure'>\n",
807     "comments": "",
808     "outputs": 1,
809     "x": 920.250431060791,
810     "y": 664.3098268508911,
811     "z": "725c7d45.19d1f4",
812     "wires": [
813       [
814         "e009ac00.02e288"
815       ]
816     ]
817   },
818   {
819     "id": "693677dc.0ea4c8",
820     "type": "switchNode",
821     "name": "switch transportNetworkName same",
822     "xml": "<switch test=\"`$transportNetworksResp.data.transportNetworks[$tidx].name == $prop.wan.transportNetworkName`\">\n\n",
823     "comments": "",
824     "outputs": 1,
825     "x": 1126.0011558532715,
826     "y": 991.6670732498169,
827     "z": "725c7d45.19d1f4",
828     "wires": [
829       [
830         "9e43cce2.daed1"
831       ]
832     ]
833   },
834   {
835     "id": "9e43cce2.daed1",
836     "type": "outcomeTrue",
837     "name": "true",
838     "xml": "<outcome value='true'>\n",
839     "comments": "",
840     "outputs": 1,
841     "x": 1339.0006065368652,
842     "y": 991.6669912338257,
843     "z": "725c7d45.19d1f4",
844     "wires": [
845       [
846         "1e8c7f90.773b9"
847       ]
848     ]
849   },
850   {
851     "id": "29298ea3.31ff42",
852     "type": "switchNode",
853     "name": "switch ActivateSDWANDeviceInstance",
854     "xml": "<switch test=\"`$service-data.vnfs.vnf[$vidx].vnf-data.request-information.request-action == 'ActivateSDWANDeviceInstance'`\">\n    \n    \n\n",
855     "comments": "",
856     "outputs": 1,
857     "x": 1553.3336029052734,
858     "y": 224.00005722045898,
859     "z": "725c7d45.19d1f4",
860     "wires": [
861       [
862         "fb2628da.07ec78"
863       ]
864     ]
865   },
866   {
867     "id": "fb2628da.07ec78",
868     "type": "outcomeTrue",
869     "name": "true",
870     "xml": "<outcome value='true'>\n",
871     "comments": "",
872     "outputs": 1,
873     "x": 1776.3336124420166,
874     "y": 224.00005722045898,
875     "z": "725c7d45.19d1f4",
876     "wires": [
877       [
878         "9e951e79.2dbb"
879       ]
880     ]
881   },
882   {
883     "id": "252b812c.b944de",
884     "type": "set",
885     "name": "set tmp.devicevidx",
886     "xml": "<set>\n<parameter name='tmp.devicevidx' value='`$vidx`' />\n\n",
887     "comments": "",
888     "x": 2741.3329467773438,
889     "y": 655.0000820159912,
890     "z": "725c7d45.19d1f4",
891     "wires": []
892   },
893   {
894     "id": "38c64027.0dbb1",
895     "type": "switchNode",
896     "name": "switch tmp.devicevidx",
897     "xml": "<switch test=\"`$tmp.devicevidx`\">\n\n",
898     "comments": "",
899     "outputs": 1,
900     "x": 1206.3335304260254,
901     "y": 382.0001196861267,
902     "z": "725c7d45.19d1f4",
903     "wires": [
904       [
905         "6a752755.afd058"
906       ]
907     ]
908   },
909   {
910     "id": "6a752755.afd058",
911     "type": "outcome",
912     "name": "NULL",
913     "xml": "<outcome value=''>\n",
914     "comments": "",
915     "outputs": 1,
916     "x": 1390.7620964050293,
917     "y": 382.57155656814575,
918     "z": "725c7d45.19d1f4",
919     "wires": [
920       [
921         "12b129f0.1b9176"
922       ]
923     ]
924   },
925   {
926     "id": "12b129f0.1b9176",
927     "type": "returnFailure",
928     "name": "return failure",
929     "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=\"ActivateSDWANDeviceInstance not found in service-data\" />\n",
930     "comments": "",
931     "x": 1531.1908378601074,
932     "y": 382.71443605422974,
933     "z": "725c7d45.19d1f4",
934     "wires": []
935   },
936   {
937     "id": "c3c15a47.6f9888",
938     "type": "comment",
939     "name": "Get deviceId from device resource created for this service",
940     "info": "",
941     "comments": "",
942     "x": 2190.6668853759766,
943     "y": 321.33333587646484,
944     "z": "725c7d45.19d1f4",
945     "wires": []
946   },
947   {
948     "id": "ebfe3788.f179e8",
949     "type": "for",
950     "name": "for loop didx - Get deviceId from servicedata",
951     "xml": "<for index=\"didx\" start=\"0\" end=\"`$service-data.vnfs.vnf[$vidx].vnf-data.vnf-request-input.vnf-input-parameters.param_length`\">\n    \n    \n",
952     "comments": "",
953     "outputs": 1,
954     "x": 2176.667095184326,
955     "y": 244.99997997283936,
956     "z": "725c7d45.19d1f4",
957     "wires": [
958       [
959         "f245906e.04acd"
960       ]
961     ]
962   },
963   {
964     "id": "3b8aa7d6.529fd8",
965     "type": "switchNode",
966     "name": "switch name (DeviceName)",
967     "xml": "<switch test=\"`$service-data.vnfs.vnf[$vidx].vnf-data.vnf-request-input.vnf-input-parameters.param[$didx].name == 'name'`\">\n",
968     "comments": "",
969     "outputs": 1,
970     "x": 2194.667694091797,
971     "y": 383.0002250671387,
972     "z": "725c7d45.19d1f4",
973     "wires": [
974       [
975         "ce416efb.e644d"
976       ]
977     ]
978   },
979   {
980     "id": "ce416efb.e644d",
981     "type": "outcomeTrue",
982     "name": "true",
983     "xml": "<outcome value='true'>\n",
984     "comments": "",
985     "outputs": 1,
986     "x": 2396.668186187744,
987     "y": 377.0002851486206,
988     "z": "725c7d45.19d1f4",
989     "wires": [
990       [
991         "f3d4ecf0.f7b57"
992       ]
993     ]
994   },
995   {
996     "id": "72a58ce.4542a74",
997     "type": "block",
998     "name": "block : atomic",
999     "xml": "<block atomic=\"true\">",
1000     "atomic": "true",
1001     "outputs": 1,
1002     "x": 959.0001983642578,
1003     "y": 457.66669750213623,
1004     "z": "725c7d45.19d1f4",
1005     "wires": [
1006       [
1007         "4130ca31.df2bc4"
1008       ]
1009     ]
1010   },
1011   {
1012     "id": "f245906e.04acd",
1013     "type": "block",
1014     "name": "block : atomic",
1015     "xml": "<block atomic=\"true\">",
1016     "atomic": "true",
1017     "outputs": 1,
1018     "x": 1968.999984741211,
1019     "y": 381.6667261123657,
1020     "z": "725c7d45.19d1f4",
1021     "wires": [
1022       [
1023         "3b8aa7d6.529fd8"
1024       ]
1025     ]
1026   },
1027   {
1028     "id": "ab84c87e.6641a8",
1029     "type": "switchNode",
1030     "name": "switch deviceId",
1031     "xml": "<switch test=\"`$service-data.vnfs.vnf[$vidx].vnf-data.vnf-request-input.vnf-input-parameters.param[$deviceidx].name == 'deviceId'`\">\n",
1032     "comments": "",
1033     "outputs": 1,
1034     "x": 3040.0011444091797,
1035     "y": 595.6670227050781,
1036     "z": "725c7d45.19d1f4",
1037     "wires": [
1038       [
1039         "dad5dabe.45cb08"
1040       ]
1041     ]
1042   },
1043   {
1044     "id": "dad5dabe.45cb08",
1045     "type": "outcomeTrue",
1046     "name": "true",
1047     "xml": "<outcome value='true'>\n",
1048     "comments": "",
1049     "outputs": 1,
1050     "x": 3193.0015144348145,
1051     "y": 596.6670999526978,
1052     "z": "725c7d45.19d1f4",
1053     "wires": [
1054       [
1055         "38c10a48.67b606"
1056       ]
1057     ]
1058   },
1059   {
1060     "id": "38c10a48.67b606",
1061     "type": "set",
1062     "name": "set prop.wan.deviceId",
1063     "xml": "<set>\n<parameter name='prop.wan.deviceId' value='`$service-data.vnfs.vnf[$vidx].vnf-data.vnf-request-input.vnf-input-parameters.param[$deviceidx].value`' />\n",
1064     "comments": "",
1065     "x": 3362.0021209716797,
1066     "y": 595.2671346664429,
1067     "z": "725c7d45.19d1f4",
1068     "wires": []
1069   },
1070   {
1071     "id": "9e951e79.2dbb",
1072     "type": "block",
1073     "name": "block : atomic",
1074     "xml": "<block atomic=\"true\">",
1075     "atomic": "true",
1076     "outputs": 1,
1077     "x": 1917.6669311523438,
1078     "y": 246.00007724761963,
1079     "z": "725c7d45.19d1f4",
1080     "wires": [
1081       [
1082         "ebfe3788.f179e8"
1083       ]
1084     ]
1085   },
1086   {
1087     "id": "f3d4ecf0.f7b57",
1088     "type": "block",
1089     "name": "block : atomic",
1090     "xml": "<block atomic=\"true\">",
1091     "atomic": "true",
1092     "outputs": 1,
1093     "x": 2215.0012283325195,
1094     "y": 460.0002546310425,
1095     "z": "725c7d45.19d1f4",
1096     "wires": [
1097       [
1098         "794ddeb5.82822"
1099       ]
1100     ]
1101   },
1102   {
1103     "id": "a5f1b6ac.935608",
1104     "type": "outcomeTrue",
1105     "name": "true",
1106     "xml": "<outcome value='true'>\n",
1107     "comments": "",
1108     "outputs": 1,
1109     "x": 2604.0019340515137,
1110     "y": 463.00037956237793,
1111     "z": "725c7d45.19d1f4",
1112     "wires": [
1113       [
1114         "900215dc.3d2d28"
1115       ]
1116     ]
1117   },
1118   {
1119     "id": "2709419e.cb1d4e",
1120     "type": "block",
1121     "name": "block : atomic",
1122     "xml": "<block atomic=\"true\">",
1123     "atomic": "true",
1124     "outputs": 1,
1125     "x": 1906.3337783813477,
1126     "y": 148.00003337860107,
1127     "z": "725c7d45.19d1f4",
1128     "wires": [
1129       [
1130         "f97e5dae.1c8e2",
1131         "8b284d74.9bbdc",
1132         "12ee38df.f58297",
1133         "21551932.828fc6"
1134       ]
1135     ]
1136   },
1137   {
1138     "id": "d5734767.c41348",
1139     "type": "set",
1140     "name": "set prop.wan.wanPortId",
1141     "xml": "<set>\n<parameter name='prop.wan.wanPortId' value='`$wanPortResp.success[0].id`' />\n",
1142     "comments": "",
1143     "x": 1353.3246459960938,
1144     "y": 1194.6573886871338,
1145     "z": "725c7d45.19d1f4",
1146     "wires": []
1147   },
1148   {
1149     "id": "de66785c.628fe8",
1150     "type": "set",
1151     "name": "set prop.wan.devicePortId",
1152     "xml": "<set>\n<parameter name='prop.wan.devicePortId' value='`$portResp.success[0].id`' />\n",
1153     "comments": "",
1154     "x": 663.9913177490234,
1155     "y": 839.9906539916992,
1156     "z": "725c7d45.19d1f4",
1157     "wires": []
1158   },
1159   {
1160     "id": "cf3fd46b.92ea68",
1161     "type": "comment",
1162     "name": "Create port",
1163     "info": "",
1164     "comments": "",
1165     "x": 611.0000495910645,
1166     "y": 744.3335218429565,
1167     "z": "725c7d45.19d1f4",
1168     "wires": []
1169   },
1170   {
1171     "id": "712fc701.3b6c28",
1172     "type": "comment",
1173     "name": "Get network id",
1174     "info": "",
1175     "comments": "",
1176     "x": 662.0001220703125,
1177     "y": 922.3334802985191,
1178     "z": "725c7d45.19d1f4",
1179     "wires": []
1180   },
1181   {
1182     "id": "4db86c63.765344",
1183     "type": "comment",
1184     "name": "Create wan port",
1185     "info": "",
1186     "comments": "",
1187     "x": 629.0002059936523,
1188     "y": 1055.3336935043335,
1189     "z": "725c7d45.19d1f4",
1190     "wires": []
1191   },
1192   {
1193     "id": "e8f33bf4.d74a28",
1194     "type": "failure",
1195     "name": "failure",
1196     "xml": "<outcome value='failure'>\n",
1197     "comments": "",
1198     "outputs": 1,
1199     "x": 991.0001220703125,
1200     "y": 1154.0002393722534,
1201     "z": "725c7d45.19d1f4",
1202     "wires": [
1203       [
1204         "18a023ce.91febc"
1205       ]
1206     ]
1207   },
1208   {
1209     "id": "b358fdc8.47501",
1210     "type": "success",
1211     "name": "success",
1212     "xml": "<outcome value='success'>\n",
1213     "comments": "",
1214     "outputs": 1,
1215     "x": 991.0001182556152,
1216     "y": 1194.0004043579102,
1217     "z": "725c7d45.19d1f4",
1218     "wires": [
1219       [
1220         "c181c64d.e790a8"
1221       ]
1222     ]
1223   },
1224   {
1225     "id": "c181c64d.e790a8",
1226     "type": "block",
1227     "name": "block : atomic",
1228     "xml": "<block atomic=\"true\">",
1229     "atomic": "true",
1230     "comments": "",
1231     "outputs": 1,
1232     "x": 1135.0001335144043,
1233     "y": 1193.000241279602,
1234     "z": "725c7d45.19d1f4",
1235     "wires": [
1236       [
1237         "d5734767.c41348"
1238       ]
1239     ]
1240   },
1241   {
1242     "id": "2ecf07cd.e22e08",
1243     "type": "returnFailure",
1244     "name": "return failure",
1245     "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 wan port rest api\" />\n",
1246     "comments": "",
1247     "x": 1313.00048828125,
1248     "y": 1153.0002708435059,
1249     "z": "725c7d45.19d1f4",
1250     "wires": []
1251   },
1252   {
1253     "id": "f75c8efc.5bc38",
1254     "type": "failure",
1255     "name": "failure",
1256     "xml": "<outcome value='failure'>\n",
1257     "comments": "",
1258     "outputs": 1,
1259     "x": 1038.0000495910645,
1260     "y": 905.0001783370972,
1261     "z": "725c7d45.19d1f4",
1262     "wires": [
1263       [
1264         "cd3f079c.c86e78"
1265       ]
1266     ]
1267   },
1268   {
1269     "id": "72b3b752.f6bbf8",
1270     "type": "success",
1271     "name": "success",
1272     "xml": "<outcome value='success'>\n",
1273     "comments": "",
1274     "outputs": 1,
1275     "x": 1038.0000457763672,
1276     "y": 945.0003433227539,
1277     "z": "725c7d45.19d1f4",
1278     "wires": [
1279       [
1280         "7039d1d0.8c0e2"
1281       ]
1282     ]
1283   },
1284   {
1285     "id": "7039d1d0.8c0e2",
1286     "type": "block",
1287     "name": "block : atomic",
1288     "xml": "<block atomic=\"true\">",
1289     "atomic": "true",
1290     "comments": "",
1291     "outputs": 1,
1292     "x": 1182.0000610351562,
1293     "y": 944.0001802444458,
1294     "z": "725c7d45.19d1f4",
1295     "wires": [
1296       []
1297     ]
1298   },
1299   {
1300     "id": "cd3f079c.c86e78",
1301     "type": "returnFailure",
1302     "name": "return failure",
1303     "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n    <parameter name=\"error-message\" value=\"Error executing Get transport network info rest api\" />\n",
1304     "comments": "",
1305     "x": 1180.0003814697266,
1306     "y": 904.0001783370972,
1307     "z": "725c7d45.19d1f4",
1308     "wires": []
1309   },
1310   {
1311     "id": "12ee38df.f58297",
1312     "type": "call",
1313     "name": "call sdwan-get-wan-param",
1314     "xml": "<call module='GENERIC-RESOURCE-API' rpc='sdwan-get-wan-param' mode='sync' >\n",
1315     "comments": "",
1316     "outputs": 1,
1317     "x": 2178.666633605957,
1318     "y": 154.0000762939453,
1319     "z": "725c7d45.19d1f4",
1320     "wires": [
1321       []
1322     ]
1323   },
1324   {
1325     "id": "8b284d74.9bbdc",
1326     "type": "set",
1327     "name": "set vnf-request-input.",
1328     "xml": "<set>\n<parameter name='vnf-request-input.' value='`$ctx.vnf-data.vnf-data.vnf-request-input.`' />\n\n",
1329     "comments": "",
1330     "x": 2147.666633605957,
1331     "y": 104.00009346008301,
1332     "z": "725c7d45.19d1f4",
1333     "wires": []
1334   },
1335   {
1336     "id": "6fa219f1.a7d198",
1337     "type": "comment",
1338     "name": "This is also required for template parameters update",
1339     "info": "",
1340     "comments": "",
1341     "x": 2543.0003967285156,
1342     "y": 200.00003623962402,
1343     "z": "725c7d45.19d1f4",
1344     "wires": []
1345   },
1346   {
1347     "id": "7a10e528.449ffc",
1348     "type": "switchNode",
1349     "name": "switch ActivateSiteInstance",
1350     "xml": "<switch test=\"`$service-data.vnfs.vnf[$vidx].vnf-data.request-information.request-action == 'ActivateSiteInstance'`\">\n    \n    \n\n",
1351     "comments": "",
1352     "outputs": 1,
1353     "x": 1516.0004425048828,
1354     "y": 189.00004959106445,
1355     "z": "725c7d45.19d1f4",
1356     "wires": [
1357       [
1358         "8d8e3a.201b51c8"
1359       ]
1360     ]
1361   },
1362   {
1363     "id": "8d8e3a.201b51c8",
1364     "type": "outcomeTrue",
1365     "name": "true",
1366     "xml": "<outcome value='true'>\n",
1367     "comments": "",
1368     "outputs": 1,
1369     "x": 1712.0006256103516,
1370     "y": 190.00004959106445,
1371     "z": "725c7d45.19d1f4",
1372     "wires": [
1373       [
1374         "3f667c94.ca8ee4"
1375       ]
1376     ]
1377   },
1378   {
1379     "id": "3f667c94.ca8ee4",
1380     "type": "set",
1381     "name": "set tmp.siteVidx",
1382     "xml": "<set>\n<parameter name='tmp.siteVidx' value='`$vidx`' />\n<parameter name='ctx.site.' value='`$service-data.vnfs.vnf[$vidx].`' />\n\n",
1383     "comments": "",
1384     "x": 1897.9999237060547,
1385     "y": 187.00005340576172,
1386     "z": "725c7d45.19d1f4",
1387     "wires": []
1388   },
1389   {
1390     "id": "af3fc11d.805b3",
1391     "type": "switchNode",
1392     "name": "switch tmp.siteVidx",
1393     "xml": "<switch test=\"`$tmp.siteVidx`\">\n\n",
1394     "comments": "",
1395     "outputs": 1,
1396     "x": 1189.6667518615723,
1397     "y": 331.00007009506226,
1398     "z": "725c7d45.19d1f4",
1399     "wires": [
1400       [
1401         "bee9b4a0.4631e8"
1402       ]
1403     ]
1404   },
1405   {
1406     "id": "bee9b4a0.4631e8",
1407     "type": "outcome",
1408     "name": "NULL",
1409     "xml": "<outcome value=''>\n",
1410     "comments": "",
1411     "outputs": 1,
1412     "x": 1364.0954627990723,
1413     "y": 331.5715217590332,
1414     "z": "725c7d45.19d1f4",
1415     "wires": [
1416       [
1417         "cf86c583.f350f8"
1418       ]
1419     ]
1420   },
1421   {
1422     "id": "cf86c583.f350f8",
1423     "type": "returnFailure",
1424     "name": "return failure",
1425     "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=\"ActivateSiteInstance not found in service-data\" />\n",
1426     "comments": "",
1427     "x": 1506.5241813659668,
1428     "y": 330.71438455581665,
1429     "z": "725c7d45.19d1f4",
1430     "wires": []
1431   },
1432   {
1433     "id": "794ddeb5.82822",
1434     "type": "switchNode",
1435     "name": "switch deviceName match",
1436     "xml": "<switch test=\"`$prop.wan.deviceName == $service-data.vnfs.vnf[$vidx].vnf-data.vnf-request-input.vnf-input-parameters.param[$didx].value`\">\n\n\n",
1437     "comments": "",
1438     "outputs": 1,
1439     "x": 2420.667953491211,
1440     "y": 461.0003185272217,
1441     "z": "725c7d45.19d1f4",
1442     "wires": [
1443       [
1444         "a5f1b6ac.935608"
1445       ]
1446     ]
1447   },
1448   {
1449     "id": "900215dc.3d2d28",
1450     "type": "block",
1451     "name": "block : atomic",
1452     "xml": "<block atomic=\"true\">",
1453     "atomic": "true",
1454     "outputs": 1,
1455     "x": 2503.3338928222656,
1456     "y": 535.0001621246338,
1457     "z": "725c7d45.19d1f4",
1458     "wires": [
1459       [
1460         "841824ee.9d9cb8",
1461         "252b812c.b944de"
1462       ]
1463     ]
1464   },
1465   {
1466     "id": "841824ee.9d9cb8",
1467     "type": "for",
1468     "name": "for loop deviceidx - Get deviceId from servicedata",
1469     "xml": "<for index=\"deviceidx\" start=\"0\" end=\"`$service-data.vnfs.vnf[$vidx].vnf-data.vnf-request-input.vnf-input-parameters.param_length`\">\n    \n    \n",
1470     "comments": "",
1471     "outputs": 1,
1472     "x": 2783.5310440063477,
1473     "y": 530.0313510894775,
1474     "z": "725c7d45.19d1f4",
1475     "wires": [
1476       [
1477         "3d6ed093.e41e3"
1478       ]
1479     ]
1480   },
1481   {
1482     "id": "3d6ed093.e41e3",
1483     "type": "block",
1484     "name": "block : atomic",
1485     "xml": "<block atomic=\"true\">",
1486     "atomic": "true",
1487     "outputs": 1,
1488     "x": 2860.5317764282227,
1489     "y": 594.0314502716064,
1490     "z": "725c7d45.19d1f4",
1491     "wires": [
1492       [
1493         "ab84c87e.6641a8"
1494       ]
1495     ]
1496   },
1497   {
1498     "id": "21551932.828fc6",
1499     "type": "record",
1500     "name": "record",
1501     "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=\".....\"/>\n<parameter name=\"field3\" value=\"prop.wan.deviceName\"/>\n<parameter name=\"field4\" value='`$prop.wan.deviceName`'/>\n",
1502     "comments": "",
1503     "outputs": 1,
1504     "x": 2106.531379699707,
1505     "y": 202.0312671661377,
1506     "z": "725c7d45.19d1f4",
1507     "wires": [
1508       []
1509     ]
1510   },
1511   {
1512     "id": "47895138.250a9",
1513     "type": "for",
1514     "name": "for vidx..service-data.vnfs.vnf_length[]",
1515     "xml": "<for index='vidx' start='0' end='`$service-data.vnfs.vnf_length`' >\n",
1516     "comments": "",
1517     "outputs": 1,
1518     "x": 1232.000072479248,
1519     "y": 225.0000171661377,
1520     "z": "725c7d45.19d1f4",
1521     "wires": [
1522       [
1523         "29298ea3.31ff42",
1524         "7a10e528.449ffc"
1525       ]
1526     ]
1527   },
1528   {
1529     "id": "272d2403.37c86c",
1530     "type": "set",
1531     "name": "copy input data to service data",
1532     "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.' />",
1533     "comments": "",
1534     "x": 667.0312881469727,
1535     "y": 1347.5314326286316,
1536     "z": "725c7d45.19d1f4",
1537     "wires": []
1538   },
1539   {
1540     "id": "41e3ce3b.fd6",
1541     "type": "comment",
1542     "name": "TODO: split ip/mask",
1543     "info": "",
1544     "comments": "",
1545     "x": 1053,
1546     "y": 1040.5039072036743,
1547     "z": "725c7d45.19d1f4",
1548     "wires": []
1549   },
1550   {
1551     "id": "bddbd7b0.3cac18",
1552     "type": "block",
1553     "name": "block",
1554     "xml": "<block>\n",
1555     "atomic": "false",
1556     "comments": "",
1557     "outputs": 1,
1558     "x": 905.0008735656738,
1559     "y": 993.3337669372559,
1560     "z": "725c7d45.19d1f4",
1561     "wires": [
1562       [
1563         "693677dc.0ea4c8"
1564       ]
1565     ]
1566   },
1567   {
1568     "id": "8b82d2e5.53604",
1569     "type": "for",
1570     "name": "for loop tidx - Get transportNetwork ID",
1571     "xml": "<for index=\"tidx\" start=\"0\" end=\"`$transportNetworksResp.data.transportNetworks_length`\">\n    \n    \n",
1572     "comments": "",
1573     "outputs": 1,
1574     "x": 689.0004920959473,
1575     "y": 992.3335227966309,
1576     "z": "725c7d45.19d1f4",
1577     "wires": [
1578       [
1579         "bddbd7b0.3cac18"
1580       ]
1581     ]
1582   },
1583   {
1584     "id": "a401887.73e5778",
1585     "type": "set",
1586     "name": "set wan portId to service data",
1587     "xml": "<set>\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='wanPortId' />\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='`$prop.wan.wanPortId`' />\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\n\n\n\n",
1588     "comments": "",
1589     "x": 668.0000152587891,
1590     "y": 1297.250274181366,
1591     "z": "725c7d45.19d1f4",
1592     "wires": []
1593   },
1594   {
1595     "id": "2c725167.90a60e",
1596     "type": "call",
1597     "name": "call sdwan-get-tenant-auth",
1598     "xml": "<call module='GENERIC-RESOURCE-API' rpc='sdwan-get-tenant-auth' mode='sync' >\n",
1599     "comments": "",
1600     "outputs": 1,
1601     "x": 661,
1602     "y": 698,
1603     "z": "725c7d45.19d1f4",
1604     "wires": [
1605       []
1606     ]
1607   },
1608   {
1609     "id": "18a023ce.91febc",
1610     "type": "block",
1611     "name": "block : atomic",
1612     "xml": "<block atomic=\"true\">",
1613     "atomic": "true",
1614     "comments": "",
1615     "outputs": 1,
1616     "x": 1135.0039672851562,
1617     "y": 1152.5039310455322,
1618     "z": "725c7d45.19d1f4",
1619     "wires": [
1620       []
1621     ]
1622   }
1623 ]