SDWAN sdnc DGs aai resource changes
[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": "426569df.8612f8",
4     "type": "dgstart",
5     "name": "DGSTART",
6     "outputs": 1,
7     "x": 120.00390625,
8     "y": 238.75390625,
9     "z": "2525d6cd.61f35a",
10     "wires": [
11       [
12         "7d6fafb.3ddd95"
13       ]
14     ]
15   },
16   {
17     "id": "7d6fafb.3ddd95",
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": 268.2895965576172,
26     "y": 288.99201488494873,
27     "z": "2525d6cd.61f35a",
28     "wires": [
29       [
30         "7af8806b.3ecd7"
31       ]
32     ]
33   },
34   {
35     "id": "7af8806b.3ecd7",
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": 271.4325256347656,
42     "y": 373.75393867492676,
43     "z": "2525d6cd.61f35a",
44     "wires": [
45       [
46         "63259a1d.b752b4"
47       ]
48     ]
49   },
50   {
51     "id": "63259a1d.b752b4",
52     "type": "block",
53     "name": "block : atomic",
54     "xml": "<block atomic=\"true\">",
55     "atomic": "true",
56     "outputs": 1,
57     "x": 334.67066192626953,
58     "y": 979.420895576477,
59     "z": "2525d6cd.61f35a",
60     "wires": [
61       [
62         "ff4c2e55.307e9",
63         "36b7eecd.26eef2",
64         "236a2d57.6cfe02",
65         "7b3df5af.3ce7ac",
66         "21db1d94.b93312",
67         "b01a2888.afc958",
68         "8814bd0.a9cd04",
69         "a3b723.963fa8e",
70         "eefe56c7.aeba48",
71         "1d7f590a.25aba7",
72         "4f9762f1.7b8f7c",
73         "739bdc62.97be04",
74         "e93ff52d.80faa8",
75         "378b7e77.9ee662",
76         "8569d96f.59e838",
77         "2af7b981.494176",
78         "66231f4c.1fe22",
79         "d3523f5e.150e2",
80         "ce5ce7ac.be3938",
81         "a1d99b62.d31458"
82       ]
83     ]
84   },
85   {
86     "id": "ff4c2e55.307e9",
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": 659.3384132385254,
92     "y": 1777.088438987732,
93     "z": "2525d6cd.61f35a",
94     "wires": []
95   },
96   {
97     "id": "1d7f590a.25aba7",
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=\"put\"/>\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`\" />",
101     "comments": "",
102     "outputs": 1,
103     "x": 749.3380165100098,
104     "y": 974.643404006958,
105     "z": "2525d6cd.61f35a",
106     "wires": [
107       [
108         "53451b0.d0c27e4",
109         "d2d2e81c.454428"
110       ]
111     ]
112   },
113   {
114     "id": "53451b0.d0c27e4",
115     "type": "success",
116     "name": "success",
117     "xml": "<outcome value='success'>\n",
118     "comments": "",
119     "outputs": 1,
120     "x": 998.3380756378174,
121     "y": 988.6436100006104,
122     "z": "2525d6cd.61f35a",
123     "wires": [
124       [
125         "eca1c460.e76228"
126       ]
127     ]
128   },
129   {
130     "id": "d2d2e81c.454428",
131     "type": "failure",
132     "name": "failure",
133     "xml": "<outcome value='failure'>\n",
134     "comments": "",
135     "outputs": 1,
136     "x": 998.3380756378174,
137     "y": 950.6434454917908,
138     "z": "2525d6cd.61f35a",
139     "wires": [
140       [
141         "104d6c7d.be4024"
142       ]
143     ]
144   },
145   {
146     "id": "104d6c7d.be4024",
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": 1142.3384094238281,
152     "y": 949.6434450149536,
153     "z": "2525d6cd.61f35a",
154     "wires": []
155   },
156   {
157     "id": "eca1c460.e76228",
158     "type": "block",
159     "name": "block : atomic",
160     "xml": "<block atomic=\"true\">",
161     "atomic": "true",
162     "comments": "",
163     "outputs": 1,
164     "x": 1145.3380870819092,
165     "y": 989.6434488296509,
166     "z": "2525d6cd.61f35a",
167     "wires": [
168       []
169     ]
170   },
171   {
172     "id": "4f9762f1.7b8f7c",
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.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`\" />",
176     "comments": "",
177     "outputs": 1,
178     "x": 772.0043678283691,
179     "y": 1153.7545094490051,
180     "z": "2525d6cd.61f35a",
181     "wires": [
182       [
183         "af3e9c1f.7be91",
184         "394b70c0.ac6f"
185       ]
186     ]
187   },
188   {
189     "id": "e93ff52d.80faa8",
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.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`\" />",
193     "comments": "",
194     "outputs": 1,
195     "x": 745.0044593811035,
196     "y": 1390.754557609558,
197     "z": "2525d6cd.61f35a",
198     "wires": [
199       [
200         "727c41a7.9551b",
201         "51280d82.cd5cc4"
202       ]
203     ]
204   },
205   {
206     "id": "36b7eecd.26eef2",
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": 731.0248413085938,
213     "y": 317.77481842041016,
214     "z": "2525d6cd.61f35a",
215     "wires": [
216       [
217         "7f1fbca4.9489e4",
218         "5c724185.8e516",
219         "5b28fd04.e48584"
220       ]
221     ]
222   },
223   {
224     "id": "7f1fbca4.9489e4",
225     "type": "other",
226     "name": "Null",
227     "xml": "<outcome value=''>\n",
228     "comments": "",
229     "outputs": 1,
230     "x": 983.0248756408691,
231     "y": 318.77489948272705,
232     "z": "2525d6cd.61f35a",
233     "wires": [
234       [
235         "9ce50f4e.b2fc8"
236       ]
237     ]
238   },
239   {
240     "id": "9ce50f4e.b2fc8",
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": 1144.8026237487793,
246     "y": 298.66384649276733,
247     "z": "2525d6cd.61f35a",
248     "wires": []
249   },
250   {
251     "id": "5c724185.8e516",
252     "type": "other",
253     "name": "other",
254     "xml": "<outcome value='Other'>\n",
255     "comments": "",
256     "outputs": 1,
257     "x": 976.0252838134766,
258     "y": 351.7749032974243,
259     "z": "2525d6cd.61f35a",
260     "wires": [
261       [
262         "85017b74.ea3478"
263       ]
264     ]
265   },
266   {
267     "id": "85017b74.ea3478",
268     "type": "block",
269     "name": "block : atomic",
270     "xml": "<block atomic=\"true\">",
271     "atomic": "true",
272     "outputs": 1,
273     "x": 994.2947769165039,
274     "y": 514.3294858932495,
275     "z": "2525d6cd.61f35a",
276     "wires": [
277       [
278         "6e42e95a.0ecb68",
279         "f672c022.be35c",
280         "59c48b6.04c5c74",
281         "5cf9118c.68854",
282         "388b05e0.8ee79a"
283       ]
284     ]
285   },
286   {
287     "id": "6e42e95a.0ecb68",
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": 1279.3109436035156,
294     "y": 344.20346450805664,
295     "z": "2525d6cd.61f35a",
296     "wires": [
297       [
298         "7f2ca034.081d2"
299       ]
300     ]
301   },
302   {
303     "id": "f672c022.be35c",
304     "type": "switchNode",
305     "name": "switch tmp.vidx ",
306     "xml": "<switch test=\"`$tmp.vidx`\">\n\n",
307     "comments": "",
308     "outputs": 1,
309     "x": 1205.612247467041,
310     "y": 490.18669986724854,
311     "z": "2525d6cd.61f35a",
312     "wires": [
313       [
314         "40c5bcb3.8f3694"
315       ]
316     ]
317   },
318   {
319     "id": "40c5bcb3.8f3694",
320     "type": "outcome",
321     "name": "NULL",
322     "xml": "<outcome value=''>\n",
323     "comments": "",
324     "outputs": 1,
325     "x": 1353.0408897399902,
326     "y": 489.7581100463867,
327     "z": "2525d6cd.61f35a",
328     "wires": [
329       [
330         "8c183b0a.c20d58"
331       ]
332     ]
333   },
334   {
335     "id": "52d419f2.072bd8",
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": 1652.7401733398438,
342     "y": 343.45362663269043,
343     "z": "2525d6cd.61f35a",
344     "wires": [
345       [
346         "7d43258f.b6dc1c"
347       ]
348     ]
349   },
350   {
351     "id": "8c183b0a.c20d58",
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": 1502.4696159362793,
357     "y": 490.90102767944336,
358     "z": "2525d6cd.61f35a",
359     "wires": []
360   },
361   {
362     "id": "7d43258f.b6dc1c",
363     "type": "outcomeTrue",
364     "name": "true",
365     "xml": "<outcome value='true'>\n",
366     "comments": "",
367     "outputs": 1,
368     "x": 1807.6921653747559,
369     "y": 344.34630584716797,
370     "z": "2525d6cd.61f35a",
371     "wires": [
372       [
373         "7b4fae02.aca0c"
374       ]
375     ]
376   },
377   {
378     "id": "5f826b27.adc144",
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": 2215.224250793457,
384     "y": 254.09636402130127,
385     "z": "2525d6cd.61f35a",
386     "wires": []
387   },
388   {
389     "id": "5b28fd04.e48584",
390     "type": "outcome",
391     "name": "0",
392     "xml": "<outcome value='0'>\n",
393     "comments": "",
394     "outputs": 1,
395     "x": 984.9936256408691,
396     "y": 282.74358558654785,
397     "z": "2525d6cd.61f35a",
398     "wires": [
399       [
400         "9ce50f4e.b2fc8"
401       ]
402     ]
403   },
404   {
405     "id": "378b7e77.9ee662",
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": 711.9948043823242,
411     "y": 1513.744936466217,
412     "z": "2525d6cd.61f35a",
413     "wires": []
414   },
415   {
416     "id": "b1043d5b.c9816",
417     "type": "comment",
418     "name": "Get siteId from site resource created for this service",
419     "info": "",
420     "comments": "",
421     "x": 756.9938888549805,
422     "y": 503.07712268829346,
423     "z": "2525d6cd.61f35a",
424     "wires": []
425   },
426   {
427     "id": "7f2ca034.081d2",
428     "type": "block",
429     "name": "block",
430     "xml": "<block>\n",
431     "atomic": "false",
432     "comments": "",
433     "outputs": 1,
434     "x": 1498.6605758666992,
435     "y": 343.74354457855225,
436     "z": "2525d6cd.61f35a",
437     "wires": [
438       [
439         "52d419f2.072bd8"
440       ]
441     ]
442   },
443   {
444     "id": "236a2d57.6cfe02",
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": 692.5501174926758,
450     "y": 1655.9668502807617,
451     "z": "2525d6cd.61f35a",
452     "wires": []
453   },
454   {
455     "id": "7b3df5af.3ce7ac",
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": 709.9945793151855,
461     "y": 1695.744686126709,
462     "z": "2525d6cd.61f35a",
463     "wires": []
464   },
465   {
466     "id": "a1d99b62.d31458",
467     "type": "update",
468     "name": "save 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": 772.6575050354004,
473     "y": 1734.8921480178833,
474     "z": "2525d6cd.61f35a",
475     "wires": [
476       []
477     ]
478   },
479   {
480     "id": "44786d4c.78c0b4",
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": 1526.995449066162,
486     "y": 1230.7445812225342,
487     "z": "2525d6cd.61f35a",
488     "wires": []
489   },
490   {
491     "id": "ce5ce7ac.be3938",
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": 736.9939117431641,
498     "y": 653.7437791824341,
499     "z": "2525d6cd.61f35a",
500     "wires": [
501       [
502         "4aaf0dac.f4bd44"
503       ]
504     ]
505   },
506   {
507     "id": "3237e366.c0b81c",
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": 1167.994239807129,
514     "y": 654.7439098358154,
515     "z": "2525d6cd.61f35a",
516     "wires": [
517       [
518         "c0bb2f42.b3aaf"
519       ]
520     ]
521   },
522   {
523     "id": "c0bb2f42.b3aaf",
524     "type": "outcomeTrue",
525     "name": "true",
526     "xml": "<outcome value='true'>\n",
527     "comments": "",
528     "outputs": 1,
529     "x": 1305.9946975708008,
530     "y": 652.7438945770264,
531     "z": "2525d6cd.61f35a",
532     "wires": [
533       [
534         "1433eee.8c0de11"
535       ]
536     ]
537   },
538   {
539     "id": "1433eee.8c0de11",
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": 1469.9947319030762,
545     "y": 654.3437480926514,
546     "z": "2525d6cd.61f35a",
547     "wires": []
548   },
549   {
550     "id": "739bdc62.97be04",
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": 695.9942359924316,
557     "y": 1299.0775499343872,
558     "z": "2525d6cd.61f35a",
559     "wires": [
560       [
561         "fdf45f99.54463",
562         "bde78d5d.e4b42"
563       ]
564     ]
565   },
566   {
567     "id": "bde78d5d.e4b42",
568     "type": "failure",
569     "name": "success",
570     "xml": "<outcome value='success'>\n",
571     "comments": "",
572     "outputs": 1,
573     "x": 896.994255065918,
574     "y": 1277.0775413513184,
575     "z": "2525d6cd.61f35a",
576     "wires": [
577       [
578         "b4f4511b.838b7"
579       ]
580     ]
581   },
582   {
583     "id": "fdf45f99.54463",
584     "type": "failure",
585     "name": "failure",
586     "xml": "<outcome value='failure'>\n",
587     "comments": "",
588     "outputs": 1,
589     "x": 896.9942588806152,
590     "y": 1318.0775451660156,
591     "z": "2525d6cd.61f35a",
592     "wires": [
593       [
594         "284d3324.0f7a9c"
595       ]
596     ]
597   },
598   {
599     "id": "b4f4511b.838b7",
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": 1093.9942741394043,
605     "y": 1275.0775413513184,
606     "z": "2525d6cd.61f35a",
607     "wires": []
608   },
609   {
610     "id": "284d3324.0f7a9c",
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": 1051.9942665100098,
616     "y": 1315.0775442123413,
617     "z": "2525d6cd.61f35a",
618     "wires": []
619   },
620   {
621     "id": "a3b723.963fa8e",
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": 730.4940643310547,
628     "y": 753.7438306808472,
629     "z": "2525d6cd.61f35a",
630     "wires": [
631       [
632         "e9572be2.73ae58",
633         "29c0457e.12142a",
634         "d78bfaf1.6dc7f8"
635       ]
636     ]
637   },
638   {
639     "id": "e9572be2.73ae58",
640     "type": "success",
641     "name": "success",
642     "xml": "<outcome value='success'>\n",
643     "comments": "",
644     "outputs": 1,
645     "x": 943.4941635131836,
646     "y": 715.7438583374023,
647     "z": "2525d6cd.61f35a",
648     "wires": [
649       [
650         "b45f540f.db5988"
651       ]
652     ]
653   },
654   {
655     "id": "29c0457e.12142a",
656     "type": "not-found",
657     "name": "not-found",
658     "xml": "<outcome value='not-found'>\n",
659     "comments": "",
660     "outputs": 1,
661     "x": 945.9850463867188,
662     "y": 751.3178949356079,
663     "z": "2525d6cd.61f35a",
664     "wires": [
665       [
666         "5afb7116.97e19"
667       ]
668     ]
669   },
670   {
671     "id": "d78bfaf1.6dc7f8",
672     "type": "other",
673     "name": "other",
674     "xml": "<outcome value='Other'>\n",
675     "comments": "",
676     "outputs": 1,
677     "x": 941.3180541992188,
678     "y": 787.6512537002563,
679     "z": "2525d6cd.61f35a",
680     "wires": [
681       [
682         "aca4c3f3.f6f79"
683       ]
684     ]
685   },
686   {
687     "id": "aca4c3f3.f6f79",
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": 1095.0905456542969,
693     "y": 785.0903406143188,
694     "z": "2525d6cd.61f35a",
695     "wires": []
696   },
697   {
698     "id": "5afb7116.97e19",
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": 1091.5564422607422,
704     "y": 749.6035823822021,
705     "z": "2525d6cd.61f35a",
706     "wires": []
707   },
708   {
709     "id": "b45f540f.db5988",
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": 1103.9942741394043,
715     "y": 713.7437982559204,
716     "z": "2525d6cd.61f35a",
717     "wires": []
718   },
719   {
720     "id": "21db1d94.b93312",
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": 649.0040016174316,
727     "y": 373.75393629074097,
728     "z": "2525d6cd.61f35a",
729     "wires": [
730       []
731     ]
732   },
733   {
734     "id": "b01a2888.afc958",
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": 685.3061256408691,
741     "y": 408.7539801597595,
742     "z": "2525d6cd.61f35a",
743     "wires": [
744       []
745     ]
746   },
747   {
748     "id": "eefe56c7.aeba48",
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.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\"/>",
752     "comments": "",
753     "outputs": 1,
754     "x": 733.004207611084,
755     "y": 843.4208326339722,
756     "z": "2525d6cd.61f35a",
757     "wires": [
758       [
759         "f0beb476.3438c8",
760         "bfd1c15b.d1a6c"
761       ]
762     ]
763   },
764   {
765     "id": "f0beb476.3438c8",
766     "type": "success",
767     "name": "success",
768     "xml": "<outcome value='success'>\n",
769     "comments": "",
770     "outputs": 1,
771     "x": 961.004337310791,
772     "y": 825.420825958252,
773     "z": "2525d6cd.61f35a",
774     "wires": [
775       [
776         "7978fb11.837754"
777       ]
778     ]
779   },
780   {
781     "id": "7978fb11.837754",
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": 1103.0043449401855,
787     "y": 824.4208269119263,
788     "z": "2525d6cd.61f35a",
789     "wires": []
790   },
791   {
792     "id": "518fd324.836c3c",
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": 1109.0043449401855,
798     "y": 861.8138151168823,
799     "z": "2525d6cd.61f35a",
800     "wires": []
801   },
802   {
803     "id": "bfd1c15b.d1a6c",
804     "type": "failure",
805     "name": "failure",
806     "xml": "<outcome value='failure'>\n",
807     "comments": "",
808     "outputs": 1,
809     "x": 960.254337310791,
810     "y": 861.0637331008911,
811     "z": "2525d6cd.61f35a",
812     "wires": [
813       [
814         "518fd324.836c3c"
815       ]
816     ]
817   },
818   {
819     "id": "e5fec542.f96808",
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": 1166.0050621032715,
826     "y": 1188.420979499817,
827     "z": "2525d6cd.61f35a",
828     "wires": [
829       [
830         "5378ee5d.02dde"
831       ]
832     ]
833   },
834   {
835     "id": "5378ee5d.02dde",
836     "type": "outcomeTrue",
837     "name": "true",
838     "xml": "<outcome value='true'>\n",
839     "comments": "",
840     "outputs": 1,
841     "x": 1379.0045127868652,
842     "y": 1188.4208974838257,
843     "z": "2525d6cd.61f35a",
844     "wires": [
845       [
846         "44786d4c.78c0b4"
847       ]
848     ]
849   },
850   {
851     "id": "a080fa5f.ddeb88",
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": 1593.3375091552734,
858     "y": 420.753963470459,
859     "z": "2525d6cd.61f35a",
860     "wires": [
861       [
862         "6c3d1f35.43a16"
863       ]
864     ]
865   },
866   {
867     "id": "6c3d1f35.43a16",
868     "type": "outcomeTrue",
869     "name": "true",
870     "xml": "<outcome value='true'>\n",
871     "comments": "",
872     "outputs": 1,
873     "x": 1816.3375186920166,
874     "y": 420.753963470459,
875     "z": "2525d6cd.61f35a",
876     "wires": [
877       [
878         "4f891fe5.5f59b"
879       ]
880     ]
881   },
882   {
883     "id": "57757525.a0de7c",
884     "type": "set",
885     "name": "set tmp.devicevidx",
886     "xml": "<set>\n<parameter name='tmp.devicevidx' value='`$vidx`' />\n\n",
887     "comments": "",
888     "x": 2781.3368530273438,
889     "y": 851.7539882659912,
890     "z": "2525d6cd.61f35a",
891     "wires": []
892   },
893   {
894     "id": "388b05e0.8ee79a",
895     "type": "switchNode",
896     "name": "switch tmp.devicevidx",
897     "xml": "<switch test=\"`$tmp.devicevidx`\">\n\n",
898     "comments": "",
899     "outputs": 1,
900     "x": 1246.3374366760254,
901     "y": 578.7540259361267,
902     "z": "2525d6cd.61f35a",
903     "wires": [
904       [
905         "44f27715.04a478"
906       ]
907     ]
908   },
909   {
910     "id": "44f27715.04a478",
911     "type": "outcome",
912     "name": "NULL",
913     "xml": "<outcome value=''>\n",
914     "comments": "",
915     "outputs": 1,
916     "x": 1430.7660026550293,
917     "y": 579.3254628181458,
918     "z": "2525d6cd.61f35a",
919     "wires": [
920       [
921         "143c0c16.156cc4"
922       ]
923     ]
924   },
925   {
926     "id": "143c0c16.156cc4",
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": 1571.1947441101074,
932     "y": 579.4683423042297,
933     "z": "2525d6cd.61f35a",
934     "wires": []
935   },
936   {
937     "id": "fd72d81.72be228",
938     "type": "comment",
939     "name": "Get deviceId from device resource created for this service",
940     "info": "",
941     "comments": "",
942     "x": 2230.6707916259766,
943     "y": 518.0872421264648,
944     "z": "2525d6cd.61f35a",
945     "wires": []
946   },
947   {
948     "id": "d06cae4f.399ba",
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": 2216.671001434326,
955     "y": 441.75388622283936,
956     "z": "2525d6cd.61f35a",
957     "wires": [
958       [
959         "cc06f146.51f0f"
960       ]
961     ]
962   },
963   {
964     "id": "fc2a7486.890a38",
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": 2234.671600341797,
971     "y": 579.7541313171387,
972     "z": "2525d6cd.61f35a",
973     "wires": [
974       [
975         "e011449c.868068"
976       ]
977     ]
978   },
979   {
980     "id": "e011449c.868068",
981     "type": "outcomeTrue",
982     "name": "true",
983     "xml": "<outcome value='true'>\n",
984     "comments": "",
985     "outputs": 1,
986     "x": 2436.672092437744,
987     "y": 573.7541913986206,
988     "z": "2525d6cd.61f35a",
989     "wires": [
990       [
991         "4999ecb0.3d8164"
992       ]
993     ]
994   },
995   {
996     "id": "4aaf0dac.f4bd44",
997     "type": "block",
998     "name": "block : atomic",
999     "xml": "<block atomic=\"true\">",
1000     "atomic": "true",
1001     "outputs": 1,
1002     "x": 999.0041046142578,
1003     "y": 654.4206037521362,
1004     "z": "2525d6cd.61f35a",
1005     "wires": [
1006       [
1007         "3237e366.c0b81c"
1008       ]
1009     ]
1010   },
1011   {
1012     "id": "cc06f146.51f0f",
1013     "type": "block",
1014     "name": "block : atomic",
1015     "xml": "<block atomic=\"true\">",
1016     "atomic": "true",
1017     "outputs": 1,
1018     "x": 2009.003890991211,
1019     "y": 578.4206323623657,
1020     "z": "2525d6cd.61f35a",
1021     "wires": [
1022       [
1023         "fc2a7486.890a38"
1024       ]
1025     ]
1026   },
1027   {
1028     "id": "1d887fbe.2fb47",
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": 3080.0050506591797,
1035     "y": 792.4209289550781,
1036     "z": "2525d6cd.61f35a",
1037     "wires": [
1038       [
1039         "e9c4ed3a.99165"
1040       ]
1041     ]
1042   },
1043   {
1044     "id": "e9c4ed3a.99165",
1045     "type": "outcomeTrue",
1046     "name": "true",
1047     "xml": "<outcome value='true'>\n",
1048     "comments": "",
1049     "outputs": 1,
1050     "x": 3233.0054206848145,
1051     "y": 793.4210062026978,
1052     "z": "2525d6cd.61f35a",
1053     "wires": [
1054       [
1055         "49a9daf2.48f304"
1056       ]
1057     ]
1058   },
1059   {
1060     "id": "49a9daf2.48f304",
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": 3402.0060272216797,
1066     "y": 792.0210409164429,
1067     "z": "2525d6cd.61f35a",
1068     "wires": []
1069   },
1070   {
1071     "id": "4f891fe5.5f59b",
1072     "type": "block",
1073     "name": "block : atomic",
1074     "xml": "<block atomic=\"true\">",
1075     "atomic": "true",
1076     "outputs": 1,
1077     "x": 1957.6708374023438,
1078     "y": 442.75398349761963,
1079     "z": "2525d6cd.61f35a",
1080     "wires": [
1081       [
1082         "d06cae4f.399ba"
1083       ]
1084     ]
1085   },
1086   {
1087     "id": "4999ecb0.3d8164",
1088     "type": "block",
1089     "name": "block : atomic",
1090     "xml": "<block atomic=\"true\">",
1091     "atomic": "true",
1092     "outputs": 1,
1093     "x": 2255.0051345825195,
1094     "y": 656.7541608810425,
1095     "z": "2525d6cd.61f35a",
1096     "wires": [
1097       [
1098         "46a841ba.4af92"
1099       ]
1100     ]
1101   },
1102   {
1103     "id": "c5bcabb0.9f3978",
1104     "type": "outcomeTrue",
1105     "name": "true",
1106     "xml": "<outcome value='true'>\n",
1107     "comments": "",
1108     "outputs": 1,
1109     "x": 2644.0058403015137,
1110     "y": 659.7542858123779,
1111     "z": "2525d6cd.61f35a",
1112     "wires": [
1113       [
1114         "512e7a73.c439f4"
1115       ]
1116     ]
1117   },
1118   {
1119     "id": "7b4fae02.aca0c",
1120     "type": "block",
1121     "name": "block : atomic",
1122     "xml": "<block atomic=\"true\">",
1123     "atomic": "true",
1124     "outputs": 1,
1125     "x": 1946.3376846313477,
1126     "y": 344.7539396286011,
1127     "z": "2525d6cd.61f35a",
1128     "wires": [
1129       [
1130         "5f826b27.adc144",
1131         "3b7b404e.14ae9",
1132         "11bb0a8f.c8a415",
1133         "207a1eb2.66eaf2"
1134       ]
1135     ]
1136   },
1137   {
1138     "id": "66231f4c.1fe22",
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": 693.3285293579102,
1144     "y": 1455.4113006591797,
1145     "z": "2525d6cd.61f35a",
1146     "wires": []
1147   },
1148   {
1149     "id": "8569d96f.59e838",
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": 703.9952239990234,
1155     "y": 1036.7445602416992,
1156     "z": "2525d6cd.61f35a",
1157     "wires": []
1158   },
1159   {
1160     "id": "f2d45048.04d33",
1161     "type": "comment",
1162     "name": "Create port",
1163     "info": "",
1164     "comments": "",
1165     "x": 651.0039558410645,
1166     "y": 941.0874280929565,
1167     "z": "2525d6cd.61f35a",
1168     "wires": []
1169   },
1170   {
1171     "id": "f7f10711.f1f2c8",
1172     "type": "comment",
1173     "name": "Get network id",
1174     "info": "",
1175     "comments": "",
1176     "x": 702.0040283203125,
1177     "y": 1119.0873865485191,
1178     "z": "2525d6cd.61f35a",
1179     "wires": []
1180   },
1181   {
1182     "id": "8a3200f.80e49",
1183     "type": "comment",
1184     "name": "Create wan port",
1185     "info": "",
1186     "comments": "",
1187     "x": 669.0041122436523,
1188     "y": 1252.0875997543335,
1189     "z": "2525d6cd.61f35a",
1190     "wires": []
1191   },
1192   {
1193     "id": "51280d82.cd5cc4",
1194     "type": "failure",
1195     "name": "failure",
1196     "xml": "<outcome value='failure'>\n",
1197     "comments": "",
1198     "outputs": 1,
1199     "x": 1031.0040283203125,
1200     "y": 1350.7541456222534,
1201     "z": "2525d6cd.61f35a",
1202     "wires": [
1203       [
1204         "7e3eadf1.9f0d14"
1205       ]
1206     ]
1207   },
1208   {
1209     "id": "727c41a7.9551b",
1210     "type": "success",
1211     "name": "success",
1212     "xml": "<outcome value='success'>\n",
1213     "comments": "",
1214     "outputs": 1,
1215     "x": 1031.0040245056152,
1216     "y": 1390.7543106079102,
1217     "z": "2525d6cd.61f35a",
1218     "wires": [
1219       [
1220         "e2be8d7c.bac7d"
1221       ]
1222     ]
1223   },
1224   {
1225     "id": "e2be8d7c.bac7d",
1226     "type": "block",
1227     "name": "block : atomic",
1228     "xml": "<block atomic=\"true\">",
1229     "atomic": "true",
1230     "comments": "",
1231     "outputs": 1,
1232     "x": 1175.0040397644043,
1233     "y": 1389.754147529602,
1234     "z": "2525d6cd.61f35a",
1235     "wires": [
1236       []
1237     ]
1238   },
1239   {
1240     "id": "7e3eadf1.9f0d14",
1241     "type": "returnFailure",
1242     "name": "return failure",
1243     "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",
1244     "comments": "",
1245     "x": 1173.0043601989746,
1246     "y": 1349.7541456222534,
1247     "z": "2525d6cd.61f35a",
1248     "wires": []
1249   },
1250   {
1251     "id": "394b70c0.ac6f",
1252     "type": "failure",
1253     "name": "failure",
1254     "xml": "<outcome value='failure'>\n",
1255     "comments": "",
1256     "outputs": 1,
1257     "x": 1078.0039558410645,
1258     "y": 1101.7540845870972,
1259     "z": "2525d6cd.61f35a",
1260     "wires": [
1261       [
1262         "7a566c5c.f46854"
1263       ]
1264     ]
1265   },
1266   {
1267     "id": "af3e9c1f.7be91",
1268     "type": "success",
1269     "name": "success",
1270     "xml": "<outcome value='success'>\n",
1271     "comments": "",
1272     "outputs": 1,
1273     "x": 1078.0039520263672,
1274     "y": 1141.754249572754,
1275     "z": "2525d6cd.61f35a",
1276     "wires": [
1277       [
1278         "1ebcd5ee.10112a"
1279       ]
1280     ]
1281   },
1282   {
1283     "id": "1ebcd5ee.10112a",
1284     "type": "block",
1285     "name": "block : atomic",
1286     "xml": "<block atomic=\"true\">",
1287     "atomic": "true",
1288     "comments": "",
1289     "outputs": 1,
1290     "x": 1222.0039672851562,
1291     "y": 1140.7540864944458,
1292     "z": "2525d6cd.61f35a",
1293     "wires": [
1294       []
1295     ]
1296   },
1297   {
1298     "id": "7a566c5c.f46854",
1299     "type": "returnFailure",
1300     "name": "return failure",
1301     "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",
1302     "comments": "",
1303     "x": 1220.0042877197266,
1304     "y": 1100.7540845870972,
1305     "z": "2525d6cd.61f35a",
1306     "wires": []
1307   },
1308   {
1309     "id": "11bb0a8f.c8a415",
1310     "type": "call",
1311     "name": "call sdwan-get-wan-param",
1312     "xml": "<call module='GENERIC-RESOURCE-API' rpc='sdwan-get-wan-param' mode='sync' >\n",
1313     "comments": "",
1314     "outputs": 1,
1315     "x": 2218.670539855957,
1316     "y": 350.7539825439453,
1317     "z": "2525d6cd.61f35a",
1318     "wires": [
1319       []
1320     ]
1321   },
1322   {
1323     "id": "3b7b404e.14ae9",
1324     "type": "set",
1325     "name": "set vnf-request-input.",
1326     "xml": "<set>\n<parameter name='vnf-request-input.' value='`$ctx.vnf-data.vnf-data.vnf-request-input.`' />\n\n",
1327     "comments": "",
1328     "x": 2187.670539855957,
1329     "y": 300.753999710083,
1330     "z": "2525d6cd.61f35a",
1331     "wires": []
1332   },
1333   {
1334     "id": "5738aa95.6c6dc4",
1335     "type": "comment",
1336     "name": "This is also required for template parameters update",
1337     "info": "",
1338     "comments": "",
1339     "x": 2583.0043029785156,
1340     "y": 396.753942489624,
1341     "z": "2525d6cd.61f35a",
1342     "wires": []
1343   },
1344   {
1345     "id": "f74da2b3.1326d",
1346     "type": "switchNode",
1347     "name": "switch ActivateSiteInstance",
1348     "xml": "<switch test=\"`$service-data.vnfs.vnf[$vidx].vnf-data.request-information.request-action == 'ActivateSiteInstance'`\">\n    \n    \n\n",
1349     "comments": "",
1350     "outputs": 1,
1351     "x": 1556.0043487548828,
1352     "y": 385.75395584106445,
1353     "z": "2525d6cd.61f35a",
1354     "wires": [
1355       [
1356         "3fa03eb7.c59572"
1357       ]
1358     ]
1359   },
1360   {
1361     "id": "3fa03eb7.c59572",
1362     "type": "outcomeTrue",
1363     "name": "true",
1364     "xml": "<outcome value='true'>\n",
1365     "comments": "",
1366     "outputs": 1,
1367     "x": 1752.0045318603516,
1368     "y": 386.75395584106445,
1369     "z": "2525d6cd.61f35a",
1370     "wires": [
1371       [
1372         "5e72f4d2.b107fc"
1373       ]
1374     ]
1375   },
1376   {
1377     "id": "5e72f4d2.b107fc",
1378     "type": "set",
1379     "name": "set tmp.siteVidx",
1380     "xml": "<set>\n<parameter name='tmp.siteVidx' value='`$vidx`' />\n<parameter name='ctx.site.' value='`$service-data.vnfs.vnf[$vidx].`' />\n\n",
1381     "comments": "",
1382     "x": 1938.0038299560547,
1383     "y": 383.7539596557617,
1384     "z": "2525d6cd.61f35a",
1385     "wires": []
1386   },
1387   {
1388     "id": "5cf9118c.68854",
1389     "type": "switchNode",
1390     "name": "switch tmp.siteVidx",
1391     "xml": "<switch test=\"`$tmp.siteVidx`\">\n\n",
1392     "comments": "",
1393     "outputs": 1,
1394     "x": 1229.6706581115723,
1395     "y": 527.7539763450623,
1396     "z": "2525d6cd.61f35a",
1397     "wires": [
1398       [
1399         "9765105d.6b72d"
1400       ]
1401     ]
1402   },
1403   {
1404     "id": "9765105d.6b72d",
1405     "type": "outcome",
1406     "name": "NULL",
1407     "xml": "<outcome value=''>\n",
1408     "comments": "",
1409     "outputs": 1,
1410     "x": 1404.0993690490723,
1411     "y": 528.3254280090332,
1412     "z": "2525d6cd.61f35a",
1413     "wires": [
1414       [
1415         "3a85e200.dcaaae"
1416       ]
1417     ]
1418   },
1419   {
1420     "id": "3a85e200.dcaaae",
1421     "type": "returnFailure",
1422     "name": "return failure",
1423     "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",
1424     "comments": "",
1425     "x": 1546.5280876159668,
1426     "y": 527.4682908058167,
1427     "z": "2525d6cd.61f35a",
1428     "wires": []
1429   },
1430   {
1431     "id": "46a841ba.4af92",
1432     "type": "switchNode",
1433     "name": "switch deviceName match",
1434     "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",
1435     "comments": "",
1436     "outputs": 1,
1437     "x": 2460.671859741211,
1438     "y": 657.7542247772217,
1439     "z": "2525d6cd.61f35a",
1440     "wires": [
1441       [
1442         "c5bcabb0.9f3978"
1443       ]
1444     ]
1445   },
1446   {
1447     "id": "512e7a73.c439f4",
1448     "type": "block",
1449     "name": "block : atomic",
1450     "xml": "<block atomic=\"true\">",
1451     "atomic": "true",
1452     "outputs": 1,
1453     "x": 2543.3377990722656,
1454     "y": 731.7540683746338,
1455     "z": "2525d6cd.61f35a",
1456     "wires": [
1457       [
1458         "4c673d0.8ff4ac4",
1459         "57757525.a0de7c"
1460       ]
1461     ]
1462   },
1463   {
1464     "id": "4c673d0.8ff4ac4",
1465     "type": "for",
1466     "name": "for loop deviceidx - Get deviceId from servicedata",
1467     "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",
1468     "comments": "",
1469     "outputs": 1,
1470     "x": 2823.5349502563477,
1471     "y": 726.7852573394775,
1472     "z": "2525d6cd.61f35a",
1473     "wires": [
1474       [
1475         "536e54bd.8b3bec"
1476       ]
1477     ]
1478   },
1479   {
1480     "id": "536e54bd.8b3bec",
1481     "type": "block",
1482     "name": "block : atomic",
1483     "xml": "<block atomic=\"true\">",
1484     "atomic": "true",
1485     "outputs": 1,
1486     "x": 2900.5356826782227,
1487     "y": 790.7853565216064,
1488     "z": "2525d6cd.61f35a",
1489     "wires": [
1490       [
1491         "1d887fbe.2fb47"
1492       ]
1493     ]
1494   },
1495   {
1496     "id": "207a1eb2.66eaf2",
1497     "type": "record",
1498     "name": "record",
1499     "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",
1500     "comments": "",
1501     "outputs": 1,
1502     "x": 2146.535285949707,
1503     "y": 398.7851734161377,
1504     "z": "2525d6cd.61f35a",
1505     "wires": [
1506       []
1507     ]
1508   },
1509   {
1510     "id": "59c48b6.04c5c74",
1511     "type": "for",
1512     "name": "for vidx..service-data.vnfs.vnf_length[]",
1513     "xml": "<for index='vidx' start='0' end='`$service-data.vnfs.vnf_length`' >\n",
1514     "comments": "",
1515     "outputs": 1,
1516     "x": 1272.003978729248,
1517     "y": 421.7539234161377,
1518     "z": "2525d6cd.61f35a",
1519     "wires": [
1520       [
1521         "a080fa5f.ddeb88",
1522         "f74da2b3.1326d"
1523       ]
1524     ]
1525   },
1526   {
1527     "id": "8814bd0.a9cd04",
1528     "type": "set",
1529     "name": "copy input data to service data",
1530     "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.' />",
1531     "comments": "",
1532     "x": 705.0351715087891,
1533     "y": 1610.2851600646973,
1534     "z": "2525d6cd.61f35a",
1535     "wires": []
1536   },
1537   {
1538     "id": "eac4599c.f1e908",
1539     "type": "comment",
1540     "name": "TODO: split ip/mask",
1541     "info": "",
1542     "comments": "",
1543     "x": 1093.00390625,
1544     "y": 1237.2578134536743,
1545     "z": "2525d6cd.61f35a",
1546     "wires": []
1547   },
1548   {
1549     "id": "aa148c7f.0d986",
1550     "type": "block",
1551     "name": "block",
1552     "xml": "<block>\n",
1553     "atomic": "false",
1554     "comments": "",
1555     "outputs": 1,
1556     "x": 945.0047798156738,
1557     "y": 1190.0876731872559,
1558     "z": "2525d6cd.61f35a",
1559     "wires": [
1560       [
1561         "e5fec542.f96808"
1562       ]
1563     ]
1564   },
1565   {
1566     "id": "2af7b981.494176",
1567     "type": "for",
1568     "name": "for loop tidx - Get transportNetwork ID",
1569     "xml": "<for index=\"tidx\" start=\"0\" end=\"`$transportNetworksResp.data.transportNetworks_length`\">\n    \n    \n",
1570     "comments": "",
1571     "outputs": 1,
1572     "x": 729.0043983459473,
1573     "y": 1189.0874290466309,
1574     "z": "2525d6cd.61f35a",
1575     "wires": [
1576       [
1577         "aa148c7f.0d986"
1578       ]
1579     ]
1580   },
1581   {
1582     "id": "d3523f5e.150e2",
1583     "type": "set",
1584     "name": "set wan portId to service data",
1585     "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",
1586     "comments": "",
1587     "x": 706.0038986206055,
1588     "y": 1560.0040016174316,
1589     "z": "2525d6cd.61f35a",
1590     "wires": []
1591   }
1592 ]