ca38d84a39f8da51dec3e67f5d8da417ca7fdca7
[sdnc/oam.git] / platform-logic / generic-resource-api / src / main / json / GENERIC-RESOURCE-API_sdwan-vnf-topology-operation-wanport-deactivate.json
1 [
2   {
3     "id": "e612d5f5.8b6538",
4     "type": "dgstart",
5     "name": "DGSTART",
6     "outputs": 1,
7     "x": 105.00390625,
8     "y": 55.99999871850014,
9     "z": "f765645f.7b8058",
10     "wires": [
11       [
12         "150c6234.3faf1e"
13       ]
14     ]
15   },
16   {
17     "id": "150c6234.3faf1e",
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": 253.2895965576172,
26     "y": 106.23810735344887,
27     "z": "f765645f.7b8058",
28     "wires": [
29       [
30         "1b2d2c3d.3c9464"
31       ]
32     ]
33   },
34   {
35     "id": "1b2d2c3d.3c9464",
36     "type": "method",
37     "name": "method sdwan-vnf-topology-operation-wanport-deactivate",
38     "xml": "<method rpc='sdwan-vnf-topology-operation-wanport-deactivate' mode='sync'>\n",
39     "comments": "",
40     "outputs": 1,
41     "x": 287.4325180053711,
42     "y": 190.00001588463783,
43     "z": "f765645f.7b8058",
44     "wires": [
45       [
46         "bf701672.487a88"
47       ]
48     ]
49   },
50   {
51     "id": "bf701672.487a88",
52     "type": "block",
53     "name": "block : atomic",
54     "xml": "<block atomic=\"true\">",
55     "atomic": "true",
56     "outputs": 1,
57     "x": 262.6706123352051,
58     "y": 574.6666819155216,
59     "z": "f765645f.7b8058",
60     "wires": [
61       [
62         "b889ffd5.0fa63",
63         "f33aa2.256e456",
64         "ca99ad99.37765",
65         "26cf633a.338b9c",
66         "554bc62c.9e5bc8",
67         "ec3af845.5c1818",
68         "5ba1424c.f63d5c",
69         "46594e30.35ca2",
70         "7caacd63.309604",
71         "6bdcf104.b48b8",
72         "13a2d05d.7d396"
73       ]
74     ]
75   },
76   {
77     "id": "b889ffd5.0fa63",
78     "type": "switchNode",
79     "name": "switch service-data.vnfs.vnf_length",
80     "xml": "<switch test='`$service-data.vnfs.vnf_length`'>\n",
81     "comments": "",
82     "outputs": 1,
83     "x": 768.0248603820801,
84     "y": 99.02095222473145,
85     "z": "f765645f.7b8058",
86     "wires": [
87       [
88         "72446922.dfdc88",
89         "2e454e9c.4de002",
90         "34a36311.6884ac"
91       ]
92     ]
93   },
94   {
95     "id": "72446922.dfdc88",
96     "type": "other",
97     "name": "Null",
98     "xml": "<outcome value=''>\n",
99     "comments": "",
100     "outputs": 1,
101     "x": 1011.024787902832,
102     "y": 124.02103519439697,
103     "z": "f765645f.7b8058",
104     "wires": [
105       [
106         "2b15f4dc.0543ec"
107       ]
108     ]
109   },
110   {
111     "id": "2b15f4dc.0543ec",
112     "type": "returnFailure",
113     "name": "return failure",
114     "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",
115     "comments": "",
116     "x": 1159.8022994995117,
117     "y": 103.9099702835083,
118     "z": "f765645f.7b8058",
119     "wires": []
120   },
121   {
122     "id": "2e454e9c.4de002",
123     "type": "other",
124     "name": "other",
125     "xml": "<outcome value='Other'>\n",
126     "comments": "",
127     "outputs": 1,
128     "x": 1012.0251121520996,
129     "y": 157.02105808258057,
130     "z": "f765645f.7b8058",
131     "wires": [
132       [
133         "767b5296.07b42c"
134       ]
135     ]
136   },
137   {
138     "id": "767b5296.07b42c",
139     "type": "block",
140     "name": "block : atomic",
141     "xml": "<block atomic=\"true\">",
142     "atomic": "true",
143     "outputs": 1,
144     "x": 1159.2948150634766,
145     "y": 146.57558059692383,
146     "z": "f765645f.7b8058",
147     "wires": [
148       [
149         "e6f54805.c662c8",
150         "150dec3f.ac66f4"
151       ]
152     ]
153   },
154   {
155     "id": "e6f54805.c662c8",
156     "type": "for",
157     "name": "for vidx..service-data.vnfs.vnf_length[]",
158     "xml": "<for index='vidx' start='0' end='`$service-data.vnfs.vnf_length`' >\n",
159     "comments": "",
160     "outputs": 1,
161     "x": 1404.310775756836,
162     "y": 98.44958019256592,
163     "z": "f765645f.7b8058",
164     "wires": [
165       [
166         "62dbeb25.9e1404"
167       ]
168     ]
169   },
170   {
171     "id": "150dec3f.ac66f4",
172     "type": "switchNode",
173     "name": "switch tmp.vidx ",
174     "xml": "<switch test=\"`$tmp.vidx`\">\n\n",
175     "comments": "",
176     "outputs": 1,
177     "x": 1335.6121292114258,
178     "y": 146.43275928497314,
179     "z": "f765645f.7b8058",
180     "wires": [
181       [
182         "7f71feab.68d97"
183       ]
184     ]
185   },
186   {
187     "id": "7f71feab.68d97",
188     "type": "outcome",
189     "name": "NULL",
190     "xml": "<outcome value=''>\n",
191     "comments": "",
192     "outputs": 1,
193     "x": 1489.0407676696777,
194     "y": 145.00417232513428,
195     "z": "f765645f.7b8058",
196     "wires": [
197       [
198         "7f6f3eb7.5ba2f"
199       ]
200     ]
201   },
202   {
203     "id": "9c6aa9a4.753d88",
204     "type": "switchNode",
205     "name": "switch vnfid found",
206     "xml": "<switch test=\"`$service-data.vnfs.vnf[$vidx].vnf-id == $vnf-topology-operation-input.vnf-information.vnf-id`\">\n\n",
207     "comments": "",
208     "outputs": 1,
209     "x": 1775.739356994629,
210     "y": 95.69969272613525,
211     "z": "f765645f.7b8058",
212     "wires": [
213       [
214         "414b7f38.5b52"
215       ]
216     ]
217   },
218   {
219     "id": "7f6f3eb7.5ba2f",
220     "type": "returnFailure",
221     "name": "return failure",
222     "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n    <parameter name=\"error-message\" value=\"vnf-topology-operation-input.vnf-request-input.vnf-id not found in service-data\" />\n",
223     "comments": "",
224     "x": 1625.4691619873047,
225     "y": 144.14703464508057,
226     "z": "f765645f.7b8058",
227     "wires": []
228   },
229   {
230     "id": "414b7f38.5b52",
231     "type": "outcomeTrue",
232     "name": "true",
233     "xml": "<outcome value='true'>\n",
234     "comments": "",
235     "outputs": 1,
236     "x": 1814.691505432129,
237     "y": 150.59241199493408,
238     "z": "f765645f.7b8058",
239     "wires": [
240       [
241         "de28481b.2e84a8"
242       ]
243     ]
244   },
245   {
246     "id": "34a36311.6884ac",
247     "type": "outcome",
248     "name": "0",
249     "xml": "<outcome value='0'>\n",
250     "comments": "",
251     "outputs": 1,
252     "x": 1007.9935340881348,
253     "y": 91.98973083496094,
254     "z": "f765645f.7b8058",
255     "wires": [
256       [
257         "2b15f4dc.0543ec"
258       ]
259     ]
260   },
261   {
262     "id": "62dbeb25.9e1404",
263     "type": "block",
264     "name": "block",
265     "xml": "<block>\n",
266     "atomic": "false",
267     "comments": "",
268     "outputs": 1,
269     "x": 1623.6604080200195,
270     "y": 97.9896411895752,
271     "z": "f765645f.7b8058",
272     "wires": [
273       [
274         "9c6aa9a4.753d88"
275       ]
276     ]
277   },
278   {
279     "id": "f33aa2.256e456",
280     "type": "set",
281     "name": "set vnf in service-data",
282     "xml": "<set>\n<parameter name='service-data.vnfs.vnf[$tmp.vidx].vnf-id' value='`$service-data.vnfs.vnf[$tmp.vidx].vnf-id`' />\n<parameter name='service-data.vnfs.vnf[$tmp.vidx].vnf-data.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.`' />\n<parameter name='service-data.vnfs.vnf[$tmp.vidx].vnf-data.vnf-information.' value='`$vnf-topology-operation-input.vnf-information.`' />\n\n",
283     "comments": "",
284     "x": 723.338077545166,
285     "y": 747.6668863296509,
286     "z": "f765645f.7b8058",
287     "wires": []
288   },
289   {
290     "id": "ca99ad99.37765",
291     "type": "set",
292     "name": "set vnfId and vnf-object-path",
293     "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/'` \" />",
294     "comments": "",
295     "x": 735.8937187194824,
296     "y": 804.889181137085,
297     "z": "f765645f.7b8058",
298     "wires": []
299   },
300   {
301     "id": "26cf633a.338b9c",
302     "type": "set",
303     "name": "set vnf-level-oper-status to PendingDelete",
304     "xml": "<set>\n<parameter name='service-data.vnfs.vnf[$tmp.vidx].vnf-data.vnf-level-oper-status.order-status' value='PendingDelete' />\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",
305     "comments": "",
306     "x": 778.3380928039551,
307     "y": 839.6670169830322,
308     "z": "f765645f.7b8058",
309     "wires": []
310   },
311   {
312     "id": "554bc62c.9e5bc8",
313     "type": "returnSuccess",
314     "name": "return success",
315     "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",
316     "comments": "",
317     "x": 688.6714630126953,
318     "y": 928.4448499679565,
319     "z": "f765645f.7b8058",
320     "wires": []
321   },
322   {
323     "id": "46594e30.35ca2",
324     "type": "get-resource",
325     "name": "get-resource esr-thirdparty-sdnc",
326     "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 = SDWAN-Controller AND \n\t\t     depth = '1'\"\n        pfx='tmp.aai.esr-thirdparty-sdnc' local-only='false' >\n\n",
327     "comments": "",
328     "outputs": 1,
329     "x": 748.5042667388916,
330     "y": 267.00012239813805,
331     "z": "f765645f.7b8058",
332     "wires": [
333       [
334         "d2393044.02c98",
335         "de34f71f.564f78",
336         "165c6807.bce198"
337       ]
338     ]
339   },
340   {
341     "id": "d2393044.02c98",
342     "type": "success",
343     "name": "success",
344     "xml": "<outcome value='success'>\n",
345     "comments": "",
346     "outputs": 1,
347     "x": 967.5042362213135,
348     "y": 226.00011897087097,
349     "z": "f765645f.7b8058",
350     "wires": [
351       [
352         "af0c4e7e.16054"
353       ]
354     ]
355   },
356   {
357     "id": "de34f71f.564f78",
358     "type": "not-found",
359     "name": "not-found",
360     "xml": "<outcome value='not-found'>\n",
361     "comments": "",
362     "outputs": 1,
363     "x": 970.9952030181885,
364     "y": 273.5741546154022,
365     "z": "f765645f.7b8058",
366     "wires": [
367       [
368         "46779502.824a2c"
369       ]
370     ]
371   },
372   {
373     "id": "165c6807.bce198",
374     "type": "other",
375     "name": "other",
376     "xml": "<outcome value='Other'>\n",
377     "comments": "",
378     "outputs": 1,
379     "x": 966.3282108306885,
380     "y": 314.9074676036835,
381     "z": "f765645f.7b8058",
382     "wires": [
383       [
384         "d9434b38.eb9228"
385       ]
386     ]
387   },
388   {
389     "id": "d9434b38.eb9228",
390     "type": "returnFailure",
391     "name": "return failure",
392     "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",
393     "comments": "",
394     "x": 1154.1007671356201,
395     "y": 310.3466603755951,
396     "z": "f765645f.7b8058",
397     "wires": []
398   },
399   {
400     "id": "46779502.824a2c",
401     "type": "returnFailure",
402     "name": "return failure",
403     "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",
404     "comments": "",
405     "x": 1147.566614151001,
406     "y": 261.8598906993866,
407     "z": "f765645f.7b8058",
408     "wires": []
409   },
410   {
411     "id": "af0c4e7e.16054",
412     "type": "set",
413     "name": "set controller data",
414     "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",
415     "comments": "",
416     "x": 1148.0043392181396,
417     "y": 220.00015768408775,
418     "z": "f765645f.7b8058",
419     "wires": []
420   },
421   {
422     "id": "13a2d05d.7d396",
423     "type": "execute",
424     "name": "execute RestApiCallNode device port delete",
425     "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"templateFileName\" value=\"`$prop.restapi.templateDir + '/sdwan-device-port-del.json'`\" />\n<parameter name=\"restapiUrl\" value=\"`$prop.sdncRestApi.thirdpartySdnc.url + '/controller/campus/v1/sdwan/net/ports/action/batch-delete'`\" />\n<parameter name=\"restapiUser\" value=\"`$prop.sdncRestApi.thirdpartySdnc.user`\" />\n<parameter name=\"restapiPassword\" value=\"`$prop.sdncRestApi.thirdpartySdnc.password`\" />\n<parameter name=\"format\" value=\"json\"/>\n<parameter name=\"httpMethod\" value=\"delete\"/>\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`\" />",
426     "comments": "",
427     "outputs": 1,
428     "x": 781.0044193267822,
429     "y": 642.666867017746,
430     "z": "f765645f.7b8058",
431     "wires": [
432       [
433         "d7fb77a3.a86188",
434         "e2af2841.d1f638"
435       ]
436     ]
437   },
438   {
439     "id": "d7fb77a3.a86188",
440     "type": "success",
441     "name": "success",
442     "xml": "<outcome value='success'>\n",
443     "comments": "",
444     "outputs": 1,
445     "x": 1027.0044040679932,
446     "y": 680.6669557094574,
447     "z": "f765645f.7b8058",
448     "wires": [
449       [
450         "d422494c.56c648"
451       ]
452     ]
453   },
454   {
455     "id": "e2af2841.d1f638",
456     "type": "failure",
457     "name": "failure",
458     "xml": "<outcome value='failure'>\n",
459     "comments": "",
460     "outputs": 1,
461     "x": 1023.0044841766357,
462     "y": 634.6668708324432,
463     "z": "f765645f.7b8058",
464     "wires": [
465       [
466         "e8bbadbc.9ad4c"
467       ]
468     ]
469   },
470   {
471     "id": "e8bbadbc.9ad4c",
472     "type": "returnFailure",
473     "name": "return failure",
474     "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n    <parameter name=\"error-message\" value=\"Error executing Create vpn rest api\" />\n",
475     "comments": "",
476     "x": 1164.0045757293701,
477     "y": 634.6668717861176,
478     "z": "f765645f.7b8058",
479     "wires": []
480   },
481   {
482     "id": "d422494c.56c648",
483     "type": "block",
484     "name": "block : atomic",
485     "xml": "<block atomic=\"true\">",
486     "atomic": "true",
487     "comments": "",
488     "outputs": 1,
489     "x": 1171.0042705535889,
490     "y": 678.6668746471405,
491     "z": "f765645f.7b8058",
492     "wires": [
493       []
494     ]
495   },
496   {
497     "id": "6bdcf104.b48b8",
498     "type": "execute",
499     "name": "execute RestApiCallNode wan port delete",
500     "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"templateFileName\" value=\"`$prop.restapi.templateDir + '/sdwan-wan-port-del.json'`\" />\n<parameter name=\"restapiUrl\" value=\"`$prop.sdncRestApi.thirdpartySdnc.url + '/controller/campus/v1/sdwan/net/transport-network-ports/action/batch-delete'`\" />\n<parameter name=\"restapiUser\" value=\"`$prop.sdncRestApi.thirdpartySdnc.user`\" />\n<parameter name=\"restapiPassword\" value=\"`$prop.sdncRestApi.thirdpartySdnc.password`\" />\n<parameter name=\"format\" value=\"json\"/>\n<parameter name=\"httpMethod\" value=\"post\"/>\n<parameter name=\"responsePrefix\" value=\"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`\" />",
501     "comments": "",
502     "outputs": 1,
503     "x": 772.0045871734619,
504     "y": 535.666864156723,
505     "z": "f765645f.7b8058",
506     "wires": [
507       [
508         "de6f5d9a.00d19",
509         "fe1384f0.e198c8"
510       ]
511     ]
512   },
513   {
514     "id": "de6f5d9a.00d19",
515     "type": "success",
516     "name": "success",
517     "xml": "<outcome value='success'>\n",
518     "comments": "",
519     "outputs": 1,
520     "x": 1005.0046825408936,
521     "y": 568.6668565273285,
522     "z": "f765645f.7b8058",
523     "wires": [
524       [
525         "fd275e00.86cf8"
526       ]
527     ]
528   },
529   {
530     "id": "fe1384f0.e198c8",
531     "type": "failure",
532     "name": "failure",
533     "xml": "<outcome value='failure'>\n",
534     "comments": "",
535     "outputs": 1,
536     "x": 1009.0047626495361,
537     "y": 504.66693472862244,
538     "z": "f765645f.7b8058",
539     "wires": [
540       [
541         "f44e9eb0.30563"
542       ]
543     ]
544   },
545   {
546     "id": "f44e9eb0.30563",
547     "type": "returnFailure",
548     "name": "return failure",
549     "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n    <parameter name=\"error-message\" value=\"Error executing Create vpn rest api\" />\n",
550     "comments": "",
551     "x": 1154.004934310913,
552     "y": 506.66693472862244,
553     "z": "f765645f.7b8058",
554     "wires": []
555   },
556   {
557     "id": "fd275e00.86cf8",
558     "type": "block",
559     "name": "block : atomic",
560     "xml": "<block atomic=\"true\">",
561     "atomic": "true",
562     "comments": "",
563     "outputs": 1,
564     "x": 1161.0045261383057,
565     "y": 566.6668565273285,
566     "z": "f765645f.7b8058",
567     "wires": [
568       []
569     ]
570   },
571   {
572     "id": "ec3af845.5c1818",
573     "type": "execute",
574     "name": "execute Properties",
575     "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",
576     "comments": "",
577     "outputs": 1,
578     "x": 716.0038948059082,
579     "y": 142.0000295639038,
580     "z": "f765645f.7b8058",
581     "wires": [
582       []
583     ]
584   },
585   {
586     "id": "7caacd63.309604",
587     "type": "execute",
588     "name": "execute RestApiCallNode Get token",
589     "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\"/>",
590     "comments": "",
591     "outputs": 1,
592     "x": 765.0041751861572,
593     "y": 405.66669368743896,
594     "z": "f765645f.7b8058",
595     "wires": [
596       [
597         "187682f0.2e0ced",
598         "97689994.fe4b58"
599       ]
600     ]
601   },
602   {
603     "id": "187682f0.2e0ced",
604     "type": "success",
605     "name": "success",
606     "xml": "<outcome value='success'>\n",
607     "comments": "",
608     "outputs": 1,
609     "x": 999.0042133331299,
610     "y": 391.6667184829712,
611     "z": "f765645f.7b8058",
612     "wires": [
613       [
614         "dfaa5b94.faad78"
615       ]
616     ]
617   },
618   {
619     "id": "97689994.fe4b58",
620     "type": "failure",
621     "name": "failure",
622     "xml": "<outcome value='failure'>\n",
623     "comments": "",
624     "outputs": 1,
625     "x": 992.2541751861572,
626     "y": 437.3095769882202,
627     "z": "f765645f.7b8058",
628     "wires": [
629       [
630         "3f21f41a.0451bc"
631       ]
632     ]
633   },
634   {
635     "id": "3f21f41a.0451bc",
636     "type": "returnFailure",
637     "name": "return failure",
638     "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",
639     "comments": "",
640     "x": 1145.0041751861572,
641     "y": 437.05963802337646,
642     "z": "f765645f.7b8058",
643     "wires": []
644   },
645   {
646     "id": "dfaa5b94.faad78",
647     "type": "set",
648     "name": "set token-id",
649     "xml": "<set>\n<parameter name='prop.sdncRestApi.token_id' value='`$token-result.data.token_id`' />\n",
650     "comments": "",
651     "x": 1153.0042133331299,
652     "y": 392.6667184829712,
653     "z": "f765645f.7b8058",
654     "wires": []
655   },
656   {
657     "id": "de28481b.2e84a8",
658     "type": "block",
659     "name": "block : atomic",
660     "xml": "<block atomic=\"true\">",
661     "atomic": "true",
662     "outputs": 1,
663     "x": 1955.0040168762207,
664     "y": 151.00004482269287,
665     "z": "f765645f.7b8058",
666     "wires": [
667       [
668         "a23df7c7.a5b718",
669         "c1a4bc96.3c58",
670         "c7716aba.aa75c8"
671       ]
672     ]
673   },
674   {
675     "id": "5ba1424c.f63d5c",
676     "type": "update",
677     "name": "save SDWAN wan port instance configuration in AAI",
678     "xml": "<update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='wan-port-config' \n      key='wan-port-config.id = $service-data.vnfs.vnf[$tmp.vidx].vnf-id' >\n<parameter name=\"id\" value=\"`$service-data.vnfs.vnf[$tmp.vidx].vnf-id`\" />\n<parameter name='operational-status' value='PendingDelete' />\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",
679     "comments": "",
680     "outputs": 1,
681     "x": 801.0041923522949,
682     "y": 881.0004291534424,
683     "z": "f765645f.7b8058",
684     "wires": [
685       []
686     ]
687   },
688   {
689     "id": "a23df7c7.a5b718",
690     "type": "set",
691     "name": "set tmp.vidx and ctx.vnf-data",
692     "xml": "<set>\n<parameter name='tmp.vidx' value='`$vidx`' />\n<parameter name='ctx.vnf-data.' value='`$service-data.vnfs.vnf[$vidx].`' />\n",
693     "comments": "",
694     "x": 2205.0352516174316,
695     "y": 102.03129148483276,
696     "z": "f765645f.7b8058",
697     "wires": []
698   },
699   {
700     "id": "c1a4bc96.3c58",
701     "type": "set",
702     "name": "set vnf-request-input.",
703     "xml": "<set>\n<parameter name='vnf-request-input.' value='`$ctx.vnf-data.vnf-data.vnf-request-input.`' />\n\n",
704     "comments": "",
705     "x": 2177.4815406799316,
706     "y": 148.6889271736145,
707     "z": "f765645f.7b8058",
708     "wires": []
709   },
710   {
711     "id": "c7716aba.aa75c8",
712     "type": "call",
713     "name": "call sdwan-get-wan-param",
714     "xml": "<call module='GENERIC-RESOURCE-API' rpc='sdwan-get-wan-param' mode='sync' >\n",
715     "comments": "",
716     "outputs": 1,
717     "x": 2201.481491088867,
718     "y": 198.68891525268555,
719     "z": "f765645f.7b8058",
720     "wires": [
721       []
722     ]
723   }
724 ]