integration test issues fix for sdwan and sotn
[sdnc/oam.git] / platform-logic / generic-resource-api / src / main / json / GENERIC-RESOURCE-API_sdwan-vnf-topology-operation-wanport-activate.json
1 [
2   {
3     "id": "d3e08805.9611b8",
4     "type": "dgstart",
5     "name": "DGSTART",
6     "outputs": 1,
7     "x": 83,
8     "y": 24,
9     "z": "c5494b7.49969b8",
10     "wires": [
11       [
12         "f7dace5a.d2c9a"
13       ]
14     ]
15   },
16   {
17     "id": "f7dace5a.d2c9a",
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": 214.2856903076172,
26     "y": 73.23810863494873,
27     "z": "c5494b7.49969b8",
28     "wires": [
29       [
30         "83935545.c771a8"
31       ]
32     ]
33   },
34   {
35     "id": "83935545.c771a8",
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": 217.42861938476562,
42     "y": 158.00003242492676,
43     "z": "c5494b7.49969b8",
44     "wires": [
45       [
46         "5c798a65.20eb74"
47       ]
48     ]
49   },
50   {
51     "id": "5c798a65.20eb74",
52     "type": "block",
53     "name": "block : atomic",
54     "xml": "<block atomic=\"true\">",
55     "atomic": "true",
56     "outputs": 1,
57     "x": 280.66675567626953,
58     "y": 763.666989326477,
59     "z": "c5494b7.49969b8",
60     "wires": [
61       [
62         "71d2a775.99ccc8",
63         "86f28d21.8ff7e",
64         "1d544933.c7e8c7",
65         "50fcdc11.a23244",
66         "a2033bb8.c74a28",
67         "f2405d05.22028",
68         "ec56abe8.7b3a98",
69         "c179291d.00bde8",
70         "c25408f5.164608",
71         "7e3b6576.8de5bc",
72         "e9a4c8c8.051068",
73         "9ac8f49c.624348",
74         "20fab8b2.cf42c8",
75         "833ee131.2bc86",
76         "37df268d.80523a",
77         "d3956bf2.5c5588",
78         "6f1e3f39.5773",
79         "f462086d.871178",
80         "47d46647.d7f098",
81         "24dcefec.86843",
82         "589c7732.243f08"
83       ]
84     ]
85   },
86   {
87     "id": "71d2a775.99ccc8",
88     "type": "returnSuccess",
89     "name": "return success",
90     "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",
91     "comments": "",
92     "x": 605.3345069885254,
93     "y": 1561.334532737732,
94     "z": "c5494b7.49969b8",
95     "wires": []
96   },
97   {
98     "id": "7e3b6576.8de5bc",
99     "type": "execute",
100     "name": "execute RestApiCallNode device port create",
101     "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.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`\" />",
102     "comments": "",
103     "outputs": 1,
104     "x": 695.3341102600098,
105     "y": 758.889497756958,
106     "z": "c5494b7.49969b8",
107     "wires": [
108       [
109         "68948952.c50068",
110         "b1429997.066598"
111       ]
112     ]
113   },
114   {
115     "id": "68948952.c50068",
116     "type": "success",
117     "name": "success",
118     "xml": "<outcome value='success'>\n",
119     "comments": "",
120     "outputs": 1,
121     "x": 944.3341693878174,
122     "y": 772.8897037506104,
123     "z": "c5494b7.49969b8",
124     "wires": [
125       [
126         "4a0bff89.5f70e"
127       ]
128     ]
129   },
130   {
131     "id": "b1429997.066598",
132     "type": "failure",
133     "name": "failure",
134     "xml": "<outcome value='failure'>\n",
135     "comments": "",
136     "outputs": 1,
137     "x": 944.3341693878174,
138     "y": 734.8895392417908,
139     "z": "c5494b7.49969b8",
140     "wires": [
141       [
142         "3a88421d.260dee"
143       ]
144     ]
145   },
146   {
147     "id": "3a88421d.260dee",
148     "type": "returnFailure",
149     "name": "return failure",
150     "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",
151     "comments": "",
152     "x": 1088.3345031738281,
153     "y": 733.8895387649536,
154     "z": "c5494b7.49969b8",
155     "wires": []
156   },
157   {
158     "id": "4a0bff89.5f70e",
159     "type": "block",
160     "name": "block : atomic",
161     "xml": "<block atomic=\"true\">",
162     "atomic": "true",
163     "comments": "",
164     "outputs": 1,
165     "x": 1091.3341808319092,
166     "y": 773.8895425796509,
167     "z": "c5494b7.49969b8",
168     "wires": [
169       []
170     ]
171   },
172   {
173     "id": "e9a4c8c8.051068",
174     "type": "execute",
175     "name": "execute RestApiCallNode get transport network info",
176     "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.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`\" />",
177     "comments": "",
178     "outputs": 1,
179     "x": 718.0004615783691,
180     "y": 938.0006031990051,
181     "z": "c5494b7.49969b8",
182     "wires": [
183       [
184         "2354042c.5855cc",
185         "d065ad9e.5a092"
186       ]
187     ]
188   },
189   {
190     "id": "20fab8b2.cf42c8",
191     "type": "execute",
192     "name": "execute RestApiCallNode wan port create",
193     "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.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`\" />",
194     "comments": "",
195     "outputs": 1,
196     "x": 691.0005531311035,
197     "y": 1175.000651359558,
198     "z": "c5494b7.49969b8",
199     "wires": [
200       [
201         "55b035dc.e280bc",
202         "317ef84d.a3fa48"
203       ]
204     ]
205   },
206   {
207     "id": "86f28d21.8ff7e",
208     "type": "switchNode",
209     "name": "switch service-data.vnfs.vnf_length",
210     "xml": "<switch test='`$service-data.vnfs.vnf_length`'>\n",
211     "comments": "",
212     "outputs": 1,
213     "x": 677.0209350585938,
214     "y": 102.02091217041016,
215     "z": "c5494b7.49969b8",
216     "wires": [
217       [
218         "63db3e02.79edb",
219         "4a9b0d37.8bb004",
220         "a6fa95c8.c66c58"
221       ]
222     ]
223   },
224   {
225     "id": "63db3e02.79edb",
226     "type": "other",
227     "name": "Null",
228     "xml": "<outcome value=''>\n",
229     "comments": "",
230     "outputs": 1,
231     "x": 929.0209693908691,
232     "y": 103.02099323272705,
233     "z": "c5494b7.49969b8",
234     "wires": [
235       [
236         "9de50dea.b6dd6"
237       ]
238     ]
239   },
240   {
241     "id": "9de50dea.b6dd6",
242     "type": "returnFailure",
243     "name": "return failure",
244     "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",
245     "comments": "",
246     "x": 1090.7987174987793,
247     "y": 82.90994024276733,
248     "z": "c5494b7.49969b8",
249     "wires": []
250   },
251   {
252     "id": "4a9b0d37.8bb004",
253     "type": "other",
254     "name": "other",
255     "xml": "<outcome value='Other'>\n",
256     "comments": "",
257     "outputs": 1,
258     "x": 922.0213775634766,
259     "y": 136.02099704742432,
260     "z": "c5494b7.49969b8",
261     "wires": [
262       [
263         "debc8f64.af94a"
264       ]
265     ]
266   },
267   {
268     "id": "debc8f64.af94a",
269     "type": "block",
270     "name": "block : atomic",
271     "xml": "<block atomic=\"true\">",
272     "atomic": "true",
273     "outputs": 1,
274     "x": 945.2908935546875,
275     "y": 234.57559204101562,
276     "z": "c5494b7.49969b8",
277     "wires": [
278       [
279         "7c8738b1.877ca8",
280         "943a7232.2883e",
281         "b75d8380.35bfa",
282         "13bc1f79.03e581",
283         "53d7471c.3e1cc8"
284       ]
285     ]
286   },
287   {
288     "id": "7c8738b1.877ca8",
289     "type": "for",
290     "name": "for vidx..service-data.vnfs.vnf_length[]",
291     "xml": "<for index='vidx' start='0' end='`$service-data.vnfs.vnf_length`' >\n",
292     "comments": "",
293     "outputs": 1,
294     "x": 1225.3070373535156,
295     "y": 128.44955825805664,
296     "z": "c5494b7.49969b8",
297     "wires": [
298       [
299         "c2d9f7f0.e01aa8"
300       ]
301     ]
302   },
303   {
304     "id": "943a7232.2883e",
305     "type": "switchNode",
306     "name": "switch tmp.vidx ",
307     "xml": "<switch test=\"`$tmp.vidx`\">\n\n",
308     "comments": "",
309     "outputs": 1,
310     "x": 1151.608341217041,
311     "y": 274.43279361724854,
312     "z": "c5494b7.49969b8",
313     "wires": [
314       [
315         "ea056417.1dc458"
316       ]
317     ]
318   },
319   {
320     "id": "ea056417.1dc458",
321     "type": "outcome",
322     "name": "NULL",
323     "xml": "<outcome value=''>\n",
324     "comments": "",
325     "outputs": 1,
326     "x": 1299.0369834899902,
327     "y": 274.0042037963867,
328     "z": "c5494b7.49969b8",
329     "wires": [
330       [
331         "b740de23.ab078"
332       ]
333     ]
334   },
335   {
336     "id": "8f939166.1a702",
337     "type": "switchNode",
338     "name": "switch vnfid found",
339     "xml": "<switch test=\"`$service-data.vnfs.vnf[$vidx].vnf-id == $vnf-topology-operation-input.vnf-information.vnf-id`\">\n\n",
340     "comments": "",
341     "outputs": 1,
342     "x": 1598.7362670898438,
343     "y": 127.69972038269043,
344     "z": "c5494b7.49969b8",
345     "wires": [
346       [
347         "32b14615.3ef46a"
348       ]
349     ]
350   },
351   {
352     "id": "b740de23.ab078",
353     "type": "returnFailure",
354     "name": "return failure",
355     "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",
356     "comments": "",
357     "x": 1448.4657096862793,
358     "y": 275.14712142944336,
359     "z": "c5494b7.49969b8",
360     "wires": []
361   },
362   {
363     "id": "32b14615.3ef46a",
364     "type": "outcomeTrue",
365     "name": "true",
366     "xml": "<outcome value='true'>\n",
367     "comments": "",
368     "outputs": 1,
369     "x": 1753.6882591247559,
370     "y": 128.59239959716797,
371     "z": "c5494b7.49969b8",
372     "wires": [
373       [
374         "d8c80e8.07446f"
375       ]
376     ]
377   },
378   {
379     "id": "bf24dea8.ee4f4",
380     "type": "set",
381     "name": "set tmp.vidx and ctx.vnf-data",
382     "xml": "<set>\n<parameter name='tmp.vidx' value='`$vidx`' />\n<parameter name='ctx.vnf-data.' value='`$service-data.vnfs.vnf[$vidx].`' />\n",
383     "comments": "",
384     "x": 2161.220344543457,
385     "y": 38.34245777130127,
386     "z": "c5494b7.49969b8",
387     "wires": []
388   },
389   {
390     "id": "a6fa95c8.c66c58",
391     "type": "outcome",
392     "name": "0",
393     "xml": "<outcome value='0'>\n",
394     "comments": "",
395     "outputs": 1,
396     "x": 930.9897193908691,
397     "y": 66.98967933654785,
398     "z": "c5494b7.49969b8",
399     "wires": [
400       [
401         "9de50dea.b6dd6"
402       ]
403     ]
404   },
405   {
406     "id": "833ee131.2bc86",
407     "type": "set",
408     "name": "set device PortId to service data",
409     "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",
410     "comments": "",
411     "x": 657.9908981323242,
412     "y": 1297.991030216217,
413     "z": "c5494b7.49969b8",
414     "wires": []
415   },
416   {
417     "id": "3f244f2b.bb62c",
418     "type": "comment",
419     "name": "Get siteId from site resource created for this service",
420     "info": "",
421     "comments": "",
422     "x": 702.9899826049805,
423     "y": 287.32321643829346,
424     "z": "c5494b7.49969b8",
425     "wires": []
426   },
427   {
428     "id": "c2d9f7f0.e01aa8",
429     "type": "block",
430     "name": "block",
431     "xml": "<block>\n",
432     "atomic": "false",
433     "comments": "",
434     "outputs": 1,
435     "x": 1444.6566696166992,
436     "y": 127.98963832855225,
437     "z": "c5494b7.49969b8",
438     "wires": [
439       [
440         "8f939166.1a702"
441       ]
442     ]
443   },
444   {
445     "id": "1d544933.c7e8c7",
446     "type": "set",
447     "name": "set vnfId and vnf-object-path",
448     "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/'` \" />",
449     "comments": "",
450     "x": 638.5462112426758,
451     "y": 1440.2129440307617,
452     "z": "c5494b7.49969b8",
453     "wires": []
454   },
455   {
456     "id": "50fcdc11.a23244",
457     "type": "set",
458     "name": "set vnf-level-oper-status to Active",
459     "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",
460     "comments": "",
461     "x": 655.9906730651855,
462     "y": 1479.990779876709,
463     "z": "c5494b7.49969b8",
464     "wires": []
465   },
466   {
467     "id": "24dcefec.86843",
468     "type": "update",
469     "name": "update SDWAN wan port instance configuration in AAI",
470     "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",
471     "comments": "",
472     "outputs": 1,
473     "x": 718.6535987854004,
474     "y": 1519.1382417678833,
475     "z": "c5494b7.49969b8",
476     "wires": [
477       []
478     ]
479   },
480   {
481     "id": "d2796204.52637",
482     "type": "set",
483     "name": "set prop.wan.transportNetworkId",
484     "xml": "<set>\n<parameter name='prop.wan.transportNetworkId' value='`$transportNetworksResp.data.transportNetworks[$tidx].id`' />\n",
485     "comments": "",
486     "x": 1472.991542816162,
487     "y": 1014.9906749725342,
488     "z": "c5494b7.49969b8",
489     "wires": []
490   },
491   {
492     "id": "47d46647.d7f098",
493     "type": "for",
494     "name": "for loop sidx - Get siteId from servicedata",
495     "xml": "<for index=\"sidx\" start=\"0\" end=\"`$ctx.site.vnf-data.vnf-request-input.vnf-input-parameters.param_length`\">\n    \n    \n",
496     "comments": "",
497     "outputs": 1,
498     "x": 682.9900054931641,
499     "y": 437.9898729324341,
500     "z": "c5494b7.49969b8",
501     "wires": [
502       [
503         "76cf61ce.029d7"
504       ]
505     ]
506   },
507   {
508     "id": "86accd11.8f202",
509     "type": "switchNode",
510     "name": "switch siteId",
511     "xml": "<switch test=\"`$ctx.site.vnf-data.vnf-request-input.vnf-input-parameters.param[$sidx].name == 'siteId'`\">\n",
512     "comments": "",
513     "outputs": 1,
514     "x": 1113.990333557129,
515     "y": 438.99000358581543,
516     "z": "c5494b7.49969b8",
517     "wires": [
518       [
519         "381535ee.b503aa"
520       ]
521     ]
522   },
523   {
524     "id": "381535ee.b503aa",
525     "type": "outcomeTrue",
526     "name": "true",
527     "xml": "<outcome value='true'>\n",
528     "comments": "",
529     "outputs": 1,
530     "x": 1251.9907913208008,
531     "y": 436.98998832702637,
532     "z": "c5494b7.49969b8",
533     "wires": [
534       [
535         "c7f6c6b6.dd3458"
536       ]
537     ]
538   },
539   {
540     "id": "c7f6c6b6.dd3458",
541     "type": "set",
542     "name": "set prop.wan.siteId",
543     "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",
544     "comments": "",
545     "x": 1415.9908256530762,
546     "y": 438.58984184265137,
547     "z": "c5494b7.49969b8",
548     "wires": []
549   },
550   {
551     "id": "9ac8f49c.624348",
552     "type": "execute",
553     "name": "execute split ip and mask",
554     "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",
555     "comments": "",
556     "outputs": 1,
557     "x": 641.9903297424316,
558     "y": 1083.3236436843872,
559     "z": "c5494b7.49969b8",
560     "wires": [
561       [
562         "341a4e7a.2ecb22",
563         "9814af82.14df1"
564       ]
565     ]
566   },
567   {
568     "id": "9814af82.14df1",
569     "type": "failure",
570     "name": "success",
571     "xml": "<outcome value='success'>\n",
572     "comments": "",
573     "outputs": 1,
574     "x": 842.990348815918,
575     "y": 1061.3236351013184,
576     "z": "c5494b7.49969b8",
577     "wires": [
578       [
579         "5982d587.5c09fc"
580       ]
581     ]
582   },
583   {
584     "id": "341a4e7a.2ecb22",
585     "type": "failure",
586     "name": "failure",
587     "xml": "<outcome value='failure'>\n",
588     "comments": "",
589     "outputs": 1,
590     "x": 842.9903526306152,
591     "y": 1102.3236389160156,
592     "z": "c5494b7.49969b8",
593     "wires": [
594       [
595         "4b6a103e.cf1d"
596       ]
597     ]
598   },
599   {
600     "id": "5982d587.5c09fc",
601     "type": "set",
602     "name": "set ipAddress prefixLength",
603     "xml": "<set>\n<parameter name='prop.wan.ip-address' value='`$ipandMask[0]`' />\n<parameter name='prop.wan.prefixLength' value='`$ipandMask[1]`' />",
604     "comments": "",
605     "x": 1039.9903678894043,
606     "y": 1059.3236351013184,
607     "z": "c5494b7.49969b8",
608     "wires": []
609   },
610   {
611     "id": "4b6a103e.cf1d",
612     "type": "returnFailure",
613     "name": "return failure",
614     "xml": "<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value=\"An error occured while splitting sna1_route\" />\n",
615     "comments": "",
616     "x": 997.9903602600098,
617     "y": 1099.3236379623413,
618     "z": "c5494b7.49969b8",
619     "wires": []
620   },
621   {
622     "id": "c179291d.00bde8",
623     "type": "get-resource",
624     "name": "get-resource esr-thirdparty-sdnc",
625     "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",
626     "comments": "",
627     "outputs": 1,
628     "x": 657.4901733398438,
629     "y": 535.9899291992188,
630     "z": "c5494b7.49969b8",
631     "wires": [
632       [
633         "53c5bb3d.7c4004",
634         "c92ee85c.183de8",
635         "7eccd819.0a52e8"
636       ]
637     ]
638   },
639   {
640     "id": "53c5bb3d.7c4004",
641     "type": "success",
642     "name": "success",
643     "xml": "<outcome value='success'>\n",
644     "comments": "",
645     "outputs": 1,
646     "x": 889.4902572631836,
647     "y": 499.98995208740234,
648     "z": "c5494b7.49969b8",
649     "wires": [
650       [
651         "2956fb6f.87c064"
652       ]
653     ]
654   },
655   {
656     "id": "c92ee85c.183de8",
657     "type": "not-found",
658     "name": "not-found",
659     "xml": "<outcome value='not-found'>\n",
660     "comments": "",
661     "outputs": 1,
662     "x": 891.9811401367188,
663     "y": 535.5639886856079,
664     "z": "c5494b7.49969b8",
665     "wires": [
666       [
667         "a9b78a3a.3499a8"
668       ]
669     ]
670   },
671   {
672     "id": "7eccd819.0a52e8",
673     "type": "other",
674     "name": "other",
675     "xml": "<outcome value='Other'>\n",
676     "comments": "",
677     "outputs": 1,
678     "x": 887.3141479492188,
679     "y": 571.8973474502563,
680     "z": "c5494b7.49969b8",
681     "wires": [
682       [
683         "47394338.72386c"
684       ]
685     ]
686   },
687   {
688     "id": "47394338.72386c",
689     "type": "returnFailure",
690     "name": "return failure",
691     "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",
692     "comments": "",
693     "x": 1041.0866394042969,
694     "y": 569.3364343643188,
695     "z": "c5494b7.49969b8",
696     "wires": []
697   },
698   {
699     "id": "a9b78a3a.3499a8",
700     "type": "returnFailure",
701     "name": "return failure",
702     "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",
703     "comments": "",
704     "x": 1037.5525360107422,
705     "y": 533.8496761322021,
706     "z": "c5494b7.49969b8",
707     "wires": []
708   },
709   {
710     "id": "2956fb6f.87c064",
711     "type": "set",
712     "name": "set controller data",
713     "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",
714     "comments": "",
715     "x": 1049.9903678894043,
716     "y": 497.9898920059204,
717     "z": "c5494b7.49969b8",
718     "wires": []
719   },
720   {
721     "id": "a2033bb8.c74a28",
722     "type": "record",
723     "name": "record",
724     "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",
725     "comments": "",
726     "outputs": 1,
727     "x": 595.0000953674316,
728     "y": 158.00003004074097,
729     "z": "c5494b7.49969b8",
730     "wires": [
731       []
732     ]
733   },
734   {
735     "id": "f2405d05.22028",
736     "type": "execute",
737     "name": "execute Properties",
738     "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",
739     "comments": "",
740     "outputs": 1,
741     "x": 631.3022193908691,
742     "y": 193.00007390975952,
743     "z": "c5494b7.49969b8",
744     "wires": [
745       []
746     ]
747   },
748   {
749     "id": "c25408f5.164608",
750     "type": "execute",
751     "name": "execute RestApiCallNode Get token",
752     "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\"/>",
753     "comments": "",
754     "outputs": 1,
755     "x": 672.0003051757812,
756     "y": 623.6669311523438,
757     "z": "c5494b7.49969b8",
758     "wires": [
759       [
760         "5b62dba.23a6724",
761         "b4713e29.c43a8"
762       ]
763     ]
764   },
765   {
766     "id": "5b62dba.23a6724",
767     "type": "success",
768     "name": "success",
769     "xml": "<outcome value='success'>\n",
770     "comments": "",
771     "outputs": 1,
772     "x": 907.000431060791,
773     "y": 609.666919708252,
774     "z": "c5494b7.49969b8",
775     "wires": [
776       [
777         "c924c712.8a8378"
778       ]
779     ]
780   },
781   {
782     "id": "c924c712.8a8378",
783     "type": "set",
784     "name": "set token-id",
785     "xml": "<set>\n<parameter name='prop.sdncRestApi.token_id' value='`$token-result.data.token_id`' />\n",
786     "comments": "",
787     "x": 1049.0004386901855,
788     "y": 608.6669206619263,
789     "z": "c5494b7.49969b8",
790     "wires": []
791   },
792   {
793     "id": "8c376d8d.f2769",
794     "type": "returnFailure",
795     "name": "return failure",
796     "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",
797     "comments": "",
798     "x": 1055.0004386901855,
799     "y": 646.0599088668823,
800     "z": "c5494b7.49969b8",
801     "wires": []
802   },
803   {
804     "id": "b4713e29.c43a8",
805     "type": "failure",
806     "name": "failure",
807     "xml": "<outcome value='failure'>\n",
808     "comments": "",
809     "outputs": 1,
810     "x": 906.250431060791,
811     "y": 645.3098268508911,
812     "z": "c5494b7.49969b8",
813     "wires": [
814       [
815         "8c376d8d.f2769"
816       ]
817     ]
818   },
819   {
820     "id": "332a8bf5.782ff4",
821     "type": "switchNode",
822     "name": "switch transportNetworkName same",
823     "xml": "<switch test=\"`$transportNetworksResp.data.transportNetworks[$tidx].name == $prop.wan.transportNetworkName`\">\n\n",
824     "comments": "",
825     "outputs": 1,
826     "x": 1112.0011558532715,
827     "y": 972.6670732498169,
828     "z": "c5494b7.49969b8",
829     "wires": [
830       [
831         "e5f6f7b4.354b98"
832       ]
833     ]
834   },
835   {
836     "id": "e5f6f7b4.354b98",
837     "type": "outcomeTrue",
838     "name": "true",
839     "xml": "<outcome value='true'>\n",
840     "comments": "",
841     "outputs": 1,
842     "x": 1325.0006065368652,
843     "y": 972.6669912338257,
844     "z": "c5494b7.49969b8",
845     "wires": [
846       [
847         "d2796204.52637"
848       ]
849     ]
850   },
851   {
852     "id": "7105dd86.af6c34",
853     "type": "switchNode",
854     "name": "switch ActivateSDWANDeviceInstance",
855     "xml": "<switch test=\"`$service-data.vnfs.vnf[$vidx].vnf-data.request-information.request-action == 'ActivateSDWANDeviceInstance'`\">\n    \n    \n\n",
856     "comments": "",
857     "outputs": 1,
858     "x": 1539.3336029052734,
859     "y": 205.00005722045898,
860     "z": "c5494b7.49969b8",
861     "wires": [
862       [
863         "dd40279f.8eeea8"
864       ]
865     ]
866   },
867   {
868     "id": "dd40279f.8eeea8",
869     "type": "outcomeTrue",
870     "name": "true",
871     "xml": "<outcome value='true'>\n",
872     "comments": "",
873     "outputs": 1,
874     "x": 1762.3336124420166,
875     "y": 205.00005722045898,
876     "z": "c5494b7.49969b8",
877     "wires": [
878       [
879         "12149667.72f80a"
880       ]
881     ]
882   },
883   {
884     "id": "c1942dca.f90c1",
885     "type": "set",
886     "name": "set tmp.devicevidx",
887     "xml": "<set>\n<parameter name='tmp.devicevidx' value='`$vidx`' />\n\n",
888     "comments": "",
889     "x": 2727.3329467773438,
890     "y": 636.0000820159912,
891     "z": "c5494b7.49969b8",
892     "wires": []
893   },
894   {
895     "id": "53d7471c.3e1cc8",
896     "type": "switchNode",
897     "name": "switch tmp.devicevidx",
898     "xml": "<switch test=\"`$tmp.devicevidx`\">\n\n",
899     "comments": "",
900     "outputs": 1,
901     "x": 1192.3335304260254,
902     "y": 363.0001196861267,
903     "z": "c5494b7.49969b8",
904     "wires": [
905       [
906         "4602555f.435cec"
907       ]
908     ]
909   },
910   {
911     "id": "4602555f.435cec",
912     "type": "outcome",
913     "name": "NULL",
914     "xml": "<outcome value=''>\n",
915     "comments": "",
916     "outputs": 1,
917     "x": 1376.7620964050293,
918     "y": 363.57155656814575,
919     "z": "c5494b7.49969b8",
920     "wires": [
921       [
922         "5520e03f.96b18"
923       ]
924     ]
925   },
926   {
927     "id": "5520e03f.96b18",
928     "type": "returnFailure",
929     "name": "return failure",
930     "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",
931     "comments": "",
932     "x": 1517.1908378601074,
933     "y": 363.71443605422974,
934     "z": "c5494b7.49969b8",
935     "wires": []
936   },
937   {
938     "id": "6f8cf23f.0209dc",
939     "type": "comment",
940     "name": "Get deviceId from device resource created for this service",
941     "info": "",
942     "comments": "",
943     "x": 2176.6668853759766,
944     "y": 302.33333587646484,
945     "z": "c5494b7.49969b8",
946     "wires": []
947   },
948   {
949     "id": "489eb82a.f952c8",
950     "type": "for",
951     "name": "for loop didx - Get deviceId from servicedata",
952     "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",
953     "comments": "",
954     "outputs": 1,
955     "x": 2162.667095184326,
956     "y": 225.99997997283936,
957     "z": "c5494b7.49969b8",
958     "wires": [
959       [
960         "a840f568.e72fe8"
961       ]
962     ]
963   },
964   {
965     "id": "b3441b30.aa4ab8",
966     "type": "switchNode",
967     "name": "switch name (DeviceName)",
968     "xml": "<switch test=\"`$service-data.vnfs.vnf[$vidx].vnf-data.vnf-request-input.vnf-input-parameters.param[$didx].name == 'name'`\">\n",
969     "comments": "",
970     "outputs": 1,
971     "x": 2180.667694091797,
972     "y": 364.0002250671387,
973     "z": "c5494b7.49969b8",
974     "wires": [
975       [
976         "fc0b9b1d.28c708"
977       ]
978     ]
979   },
980   {
981     "id": "fc0b9b1d.28c708",
982     "type": "outcomeTrue",
983     "name": "true",
984     "xml": "<outcome value='true'>\n",
985     "comments": "",
986     "outputs": 1,
987     "x": 2382.668186187744,
988     "y": 358.0002851486206,
989     "z": "c5494b7.49969b8",
990     "wires": [
991       [
992         "b4f179c9.a214f8"
993       ]
994     ]
995   },
996   {
997     "id": "76cf61ce.029d7",
998     "type": "block",
999     "name": "block : atomic",
1000     "xml": "<block atomic=\"true\">",
1001     "atomic": "true",
1002     "outputs": 1,
1003     "x": 945.0001983642578,
1004     "y": 438.66669750213623,
1005     "z": "c5494b7.49969b8",
1006     "wires": [
1007       [
1008         "86accd11.8f202"
1009       ]
1010     ]
1011   },
1012   {
1013     "id": "a840f568.e72fe8",
1014     "type": "block",
1015     "name": "block : atomic",
1016     "xml": "<block atomic=\"true\">",
1017     "atomic": "true",
1018     "outputs": 1,
1019     "x": 1954.999984741211,
1020     "y": 362.6667261123657,
1021     "z": "c5494b7.49969b8",
1022     "wires": [
1023       [
1024         "b3441b30.aa4ab8"
1025       ]
1026     ]
1027   },
1028   {
1029     "id": "556d9445.4f2e4c",
1030     "type": "switchNode",
1031     "name": "switch deviceId",
1032     "xml": "<switch test=\"`$service-data.vnfs.vnf[$vidx].vnf-data.vnf-request-input.vnf-input-parameters.param[$deviceidx].name == 'deviceId'`\">\n",
1033     "comments": "",
1034     "outputs": 1,
1035     "x": 3026.0011444091797,
1036     "y": 576.6670227050781,
1037     "z": "c5494b7.49969b8",
1038     "wires": [
1039       [
1040         "4439d129.bb0b6"
1041       ]
1042     ]
1043   },
1044   {
1045     "id": "4439d129.bb0b6",
1046     "type": "outcomeTrue",
1047     "name": "true",
1048     "xml": "<outcome value='true'>\n",
1049     "comments": "",
1050     "outputs": 1,
1051     "x": 3179.0015144348145,
1052     "y": 577.6670999526978,
1053     "z": "c5494b7.49969b8",
1054     "wires": [
1055       [
1056         "8f56b9b3.9c5728"
1057       ]
1058     ]
1059   },
1060   {
1061     "id": "8f56b9b3.9c5728",
1062     "type": "set",
1063     "name": "set prop.wan.deviceId",
1064     "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",
1065     "comments": "",
1066     "x": 3348.0021209716797,
1067     "y": 576.2671346664429,
1068     "z": "c5494b7.49969b8",
1069     "wires": []
1070   },
1071   {
1072     "id": "12149667.72f80a",
1073     "type": "block",
1074     "name": "block : atomic",
1075     "xml": "<block atomic=\"true\">",
1076     "atomic": "true",
1077     "outputs": 1,
1078     "x": 1903.6669311523438,
1079     "y": 227.00007724761963,
1080     "z": "c5494b7.49969b8",
1081     "wires": [
1082       [
1083         "489eb82a.f952c8"
1084       ]
1085     ]
1086   },
1087   {
1088     "id": "b4f179c9.a214f8",
1089     "type": "block",
1090     "name": "block : atomic",
1091     "xml": "<block atomic=\"true\">",
1092     "atomic": "true",
1093     "outputs": 1,
1094     "x": 2201.0012283325195,
1095     "y": 441.0002546310425,
1096     "z": "c5494b7.49969b8",
1097     "wires": [
1098       [
1099         "41b636f7.4605d8"
1100       ]
1101     ]
1102   },
1103   {
1104     "id": "3c83342b.bff06c",
1105     "type": "outcomeTrue",
1106     "name": "true",
1107     "xml": "<outcome value='true'>\n",
1108     "comments": "",
1109     "outputs": 1,
1110     "x": 2590.0019340515137,
1111     "y": 444.00037956237793,
1112     "z": "c5494b7.49969b8",
1113     "wires": [
1114       [
1115         "d216e689.2df0f8"
1116       ]
1117     ]
1118   },
1119   {
1120     "id": "d8c80e8.07446f",
1121     "type": "block",
1122     "name": "block : atomic",
1123     "xml": "<block atomic=\"true\">",
1124     "atomic": "true",
1125     "outputs": 1,
1126     "x": 1892.3337783813477,
1127     "y": 129.00003337860107,
1128     "z": "c5494b7.49969b8",
1129     "wires": [
1130       [
1131         "bf24dea8.ee4f4",
1132         "b88755ee.f99b38",
1133         "be26bd6d.b6d6a",
1134         "d34abb03.648a78"
1135       ]
1136     ]
1137   },
1138   {
1139     "id": "6f1e3f39.5773",
1140     "type": "set",
1141     "name": "set prop.wan.wanPortId",
1142     "xml": "<set>\n<parameter name='prop.wan.wanPortId' value='`$wanPortResp.success[0].id`' />\n",
1143     "comments": "",
1144     "x": 639.3246231079102,
1145     "y": 1239.6573944091797,
1146     "z": "c5494b7.49969b8",
1147     "wires": []
1148   },
1149   {
1150     "id": "37df268d.80523a",
1151     "type": "set",
1152     "name": "set prop.wan.devicePortId",
1153     "xml": "<set>\n<parameter name='prop.wan.devicePortId' value='`$portResp.success[0].id`' />\n",
1154     "comments": "",
1155     "x": 649.9913177490234,
1156     "y": 820.9906539916992,
1157     "z": "c5494b7.49969b8",
1158     "wires": []
1159   },
1160   {
1161     "id": "99c82c97.d67a7",
1162     "type": "comment",
1163     "name": "Create port",
1164     "info": "",
1165     "comments": "",
1166     "x": 597.0000495910645,
1167     "y": 725.3335218429565,
1168     "z": "c5494b7.49969b8",
1169     "wires": []
1170   },
1171   {
1172     "id": "5cfea39.096ff5c",
1173     "type": "comment",
1174     "name": "Get network id",
1175     "info": "",
1176     "comments": "",
1177     "x": 648.0001220703125,
1178     "y": 903.3334802985191,
1179     "z": "c5494b7.49969b8",
1180     "wires": []
1181   },
1182   {
1183     "id": "d44c9330.7b098",
1184     "type": "comment",
1185     "name": "Create wan port",
1186     "info": "",
1187     "comments": "",
1188     "x": 615.0002059936523,
1189     "y": 1036.3336935043335,
1190     "z": "c5494b7.49969b8",
1191     "wires": []
1192   },
1193   {
1194     "id": "317ef84d.a3fa48",
1195     "type": "failure",
1196     "name": "failure",
1197     "xml": "<outcome value='failure'>\n",
1198     "comments": "",
1199     "outputs": 1,
1200     "x": 977.0001220703125,
1201     "y": 1135.0002393722534,
1202     "z": "c5494b7.49969b8",
1203     "wires": [
1204       [
1205         "12534eac.cdc831"
1206       ]
1207     ]
1208   },
1209   {
1210     "id": "55b035dc.e280bc",
1211     "type": "success",
1212     "name": "success",
1213     "xml": "<outcome value='success'>\n",
1214     "comments": "",
1215     "outputs": 1,
1216     "x": 977.0001182556152,
1217     "y": 1175.0004043579102,
1218     "z": "c5494b7.49969b8",
1219     "wires": [
1220       [
1221         "9238f861.a33ef8"
1222       ]
1223     ]
1224   },
1225   {
1226     "id": "9238f861.a33ef8",
1227     "type": "block",
1228     "name": "block : atomic",
1229     "xml": "<block atomic=\"true\">",
1230     "atomic": "true",
1231     "comments": "",
1232     "outputs": 1,
1233     "x": 1121.0001335144043,
1234     "y": 1174.000241279602,
1235     "z": "c5494b7.49969b8",
1236     "wires": [
1237       []
1238     ]
1239   },
1240   {
1241     "id": "12534eac.cdc831",
1242     "type": "returnFailure",
1243     "name": "return failure",
1244     "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",
1245     "comments": "",
1246     "x": 1119.0004539489746,
1247     "y": 1134.0002393722534,
1248     "z": "c5494b7.49969b8",
1249     "wires": []
1250   },
1251   {
1252     "id": "d065ad9e.5a092",
1253     "type": "failure",
1254     "name": "failure",
1255     "xml": "<outcome value='failure'>\n",
1256     "comments": "",
1257     "outputs": 1,
1258     "x": 1024.0000495910645,
1259     "y": 886.0001783370972,
1260     "z": "c5494b7.49969b8",
1261     "wires": [
1262       [
1263         "1b98a4a8.664bdb"
1264       ]
1265     ]
1266   },
1267   {
1268     "id": "2354042c.5855cc",
1269     "type": "success",
1270     "name": "success",
1271     "xml": "<outcome value='success'>\n",
1272     "comments": "",
1273     "outputs": 1,
1274     "x": 1024.0000457763672,
1275     "y": 926.0003433227539,
1276     "z": "c5494b7.49969b8",
1277     "wires": [
1278       [
1279         "8ba4e30f.14b38"
1280       ]
1281     ]
1282   },
1283   {
1284     "id": "8ba4e30f.14b38",
1285     "type": "block",
1286     "name": "block : atomic",
1287     "xml": "<block atomic=\"true\">",
1288     "atomic": "true",
1289     "comments": "",
1290     "outputs": 1,
1291     "x": 1168.0000610351562,
1292     "y": 925.0001802444458,
1293     "z": "c5494b7.49969b8",
1294     "wires": [
1295       []
1296     ]
1297   },
1298   {
1299     "id": "1b98a4a8.664bdb",
1300     "type": "returnFailure",
1301     "name": "return failure",
1302     "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",
1303     "comments": "",
1304     "x": 1166.0003814697266,
1305     "y": 885.0001783370972,
1306     "z": "c5494b7.49969b8",
1307     "wires": []
1308   },
1309   {
1310     "id": "be26bd6d.b6d6a",
1311     "type": "call",
1312     "name": "call sdwan-get-wan-param",
1313     "xml": "<call module='GENERIC-RESOURCE-API' rpc='sdwan-get-wan-param' mode='sync' >\n",
1314     "comments": "",
1315     "outputs": 1,
1316     "x": 2164.666633605957,
1317     "y": 135.0000762939453,
1318     "z": "c5494b7.49969b8",
1319     "wires": [
1320       []
1321     ]
1322   },
1323   {
1324     "id": "b88755ee.f99b38",
1325     "type": "set",
1326     "name": "set vnf-request-input.",
1327     "xml": "<set>\n<parameter name='vnf-request-input.' value='`$ctx.vnf-data.vnf-data.vnf-request-input.`' />\n\n",
1328     "comments": "",
1329     "x": 2133.666633605957,
1330     "y": 85.00009346008301,
1331     "z": "c5494b7.49969b8",
1332     "wires": []
1333   },
1334   {
1335     "id": "bb494b87.830e28",
1336     "type": "comment",
1337     "name": "This is also required for template parameters update",
1338     "info": "",
1339     "comments": "",
1340     "x": 2529.0003967285156,
1341     "y": 181.00003623962402,
1342     "z": "c5494b7.49969b8",
1343     "wires": []
1344   },
1345   {
1346     "id": "c939644e.f0b858",
1347     "type": "switchNode",
1348     "name": "switch ActivateSiteInstance",
1349     "xml": "<switch test=\"`$service-data.vnfs.vnf[$vidx].vnf-data.request-information.request-action == 'ActivateSiteInstance'`\">\n    \n    \n\n",
1350     "comments": "",
1351     "outputs": 1,
1352     "x": 1502.0004425048828,
1353     "y": 170.00004959106445,
1354     "z": "c5494b7.49969b8",
1355     "wires": [
1356       [
1357         "89f80af3.346938"
1358       ]
1359     ]
1360   },
1361   {
1362     "id": "89f80af3.346938",
1363     "type": "outcomeTrue",
1364     "name": "true",
1365     "xml": "<outcome value='true'>\n",
1366     "comments": "",
1367     "outputs": 1,
1368     "x": 1698.0006256103516,
1369     "y": 171.00004959106445,
1370     "z": "c5494b7.49969b8",
1371     "wires": [
1372       [
1373         "5dd3893f.4a7ea8"
1374       ]
1375     ]
1376   },
1377   {
1378     "id": "5dd3893f.4a7ea8",
1379     "type": "set",
1380     "name": "set tmp.siteVidx",
1381     "xml": "<set>\n<parameter name='tmp.siteVidx' value='`$vidx`' />\n<parameter name='ctx.site.' value='`$service-data.vnfs.vnf[$vidx].`' />\n\n",
1382     "comments": "",
1383     "x": 1883.9999237060547,
1384     "y": 168.00005340576172,
1385     "z": "c5494b7.49969b8",
1386     "wires": []
1387   },
1388   {
1389     "id": "13bc1f79.03e581",
1390     "type": "switchNode",
1391     "name": "switch tmp.siteVidx",
1392     "xml": "<switch test=\"`$tmp.siteVidx`\">\n\n",
1393     "comments": "",
1394     "outputs": 1,
1395     "x": 1175.6667518615723,
1396     "y": 312.00007009506226,
1397     "z": "c5494b7.49969b8",
1398     "wires": [
1399       [
1400         "e4930b56.8a59f8"
1401       ]
1402     ]
1403   },
1404   {
1405     "id": "e4930b56.8a59f8",
1406     "type": "outcome",
1407     "name": "NULL",
1408     "xml": "<outcome value=''>\n",
1409     "comments": "",
1410     "outputs": 1,
1411     "x": 1350.0954627990723,
1412     "y": 312.5715217590332,
1413     "z": "c5494b7.49969b8",
1414     "wires": [
1415       [
1416         "a5febd63.c2db7"
1417       ]
1418     ]
1419   },
1420   {
1421     "id": "a5febd63.c2db7",
1422     "type": "returnFailure",
1423     "name": "return failure",
1424     "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",
1425     "comments": "",
1426     "x": 1492.5241813659668,
1427     "y": 311.71438455581665,
1428     "z": "c5494b7.49969b8",
1429     "wires": []
1430   },
1431   {
1432     "id": "41b636f7.4605d8",
1433     "type": "switchNode",
1434     "name": "switch deviceName match",
1435     "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",
1436     "comments": "",
1437     "outputs": 1,
1438     "x": 2406.667953491211,
1439     "y": 442.0003185272217,
1440     "z": "c5494b7.49969b8",
1441     "wires": [
1442       [
1443         "3c83342b.bff06c"
1444       ]
1445     ]
1446   },
1447   {
1448     "id": "d216e689.2df0f8",
1449     "type": "block",
1450     "name": "block : atomic",
1451     "xml": "<block atomic=\"true\">",
1452     "atomic": "true",
1453     "outputs": 1,
1454     "x": 2489.3338928222656,
1455     "y": 516.0001621246338,
1456     "z": "c5494b7.49969b8",
1457     "wires": [
1458       [
1459         "93f36ff6.faafe",
1460         "c1942dca.f90c1"
1461       ]
1462     ]
1463   },
1464   {
1465     "id": "93f36ff6.faafe",
1466     "type": "for",
1467     "name": "for loop deviceidx - Get deviceId from servicedata",
1468     "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",
1469     "comments": "",
1470     "outputs": 1,
1471     "x": 2769.5310440063477,
1472     "y": 511.03135108947754,
1473     "z": "c5494b7.49969b8",
1474     "wires": [
1475       [
1476         "e2b7f439.b0d4b8"
1477       ]
1478     ]
1479   },
1480   {
1481     "id": "e2b7f439.b0d4b8",
1482     "type": "block",
1483     "name": "block : atomic",
1484     "xml": "<block atomic=\"true\">",
1485     "atomic": "true",
1486     "outputs": 1,
1487     "x": 2846.5317764282227,
1488     "y": 575.0314502716064,
1489     "z": "c5494b7.49969b8",
1490     "wires": [
1491       [
1492         "556d9445.4f2e4c"
1493       ]
1494     ]
1495   },
1496   {
1497     "id": "d34abb03.648a78",
1498     "type": "record",
1499     "name": "record",
1500     "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",
1501     "comments": "",
1502     "outputs": 1,
1503     "x": 2092.531379699707,
1504     "y": 183.0312671661377,
1505     "z": "c5494b7.49969b8",
1506     "wires": [
1507       []
1508     ]
1509   },
1510   {
1511     "id": "b75d8380.35bfa",
1512     "type": "for",
1513     "name": "for vidx..service-data.vnfs.vnf_length[]",
1514     "xml": "<for index='vidx' start='0' end='`$service-data.vnfs.vnf_length`' >\n",
1515     "comments": "",
1516     "outputs": 1,
1517     "x": 1218.000072479248,
1518     "y": 206.0000171661377,
1519     "z": "c5494b7.49969b8",
1520     "wires": [
1521       [
1522         "7105dd86.af6c34",
1523         "c939644e.f0b858"
1524       ]
1525     ]
1526   },
1527   {
1528     "id": "ec56abe8.7b3a98",
1529     "type": "set",
1530     "name": "copy input data to service data",
1531     "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.' />",
1532     "comments": "",
1533     "x": 651.0312652587891,
1534     "y": 1394.5312538146973,
1535     "z": "c5494b7.49969b8",
1536     "wires": []
1537   },
1538   {
1539     "id": "fdc70d4e.6c354",
1540     "type": "comment",
1541     "name": "TODO: split ip/mask",
1542     "info": "",
1543     "comments": "",
1544     "x": 1039,
1545     "y": 1021.5039072036743,
1546     "z": "c5494b7.49969b8",
1547     "wires": []
1548   },
1549   {
1550     "id": "cb21e48e.93ff78",
1551     "type": "block",
1552     "name": "block",
1553     "xml": "<block>\n",
1554     "atomic": "false",
1555     "comments": "",
1556     "outputs": 1,
1557     "x": 891.0008735656738,
1558     "y": 974.3337669372559,
1559     "z": "c5494b7.49969b8",
1560     "wires": [
1561       [
1562         "332a8bf5.782ff4"
1563       ]
1564     ]
1565   },
1566   {
1567     "id": "d3956bf2.5c5588",
1568     "type": "for",
1569     "name": "for loop tidx - Get transportNetwork ID",
1570     "xml": "<for index=\"tidx\" start=\"0\" end=\"`$transportNetworksResp.data.transportNetworks_length`\">\n    \n    \n",
1571     "comments": "",
1572     "outputs": 1,
1573     "x": 675.0004920959473,
1574     "y": 973.3335227966309,
1575     "z": "c5494b7.49969b8",
1576     "wires": [
1577       [
1578         "cb21e48e.93ff78"
1579       ]
1580     ]
1581   },
1582   {
1583     "id": "f462086d.871178",
1584     "type": "set",
1585     "name": "set wan portId to service data",
1586     "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",
1587     "comments": "",
1588     "x": 651.9999923706055,
1589     "y": 1344.2500953674316,
1590     "z": "c5494b7.49969b8",
1591     "wires": []
1592   },
1593   {
1594     "id": "589c7732.243f08",
1595     "type": "call",
1596     "name": "call sdwan-get-tenant-auth",
1597     "xml": "<call module='GENERIC-RESOURCE-API' rpc='sdwan-get-tenant-auth' mode='sync' >\n",
1598     "comments": "",
1599     "outputs": 1,
1600     "x": 647,
1601     "y": 679,
1602     "z": "c5494b7.49969b8",
1603     "wires": [
1604       []
1605     ]
1606   }
1607 ]