SDWAN flow based end-end test and issue fix
[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": "7b8cbc85.2da064",
4     "type": "dgstart",
5     "name": "DGSTART",
6     "outputs": 1,
7     "x": 100.00390625,
8     "y": 55.99999871850014,
9     "z": "b1933fd7.45eec",
10     "wires": [
11       [
12         "e9b1afb9.5ff99"
13       ]
14     ]
15   },
16   {
17     "id": "e9b1afb9.5ff99",
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": 248.2895965576172,
26     "y": 106.23810735344887,
27     "z": "b1933fd7.45eec",
28     "wires": [
29       [
30         "4b2b7cbd.d36844"
31       ]
32     ]
33   },
34   {
35     "id": "4b2b7cbd.d36844",
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": 282.4325180053711,
42     "y": 190.00001588463783,
43     "z": "b1933fd7.45eec",
44     "wires": [
45       [
46         "5407681f.e8b5e8"
47       ]
48     ]
49   },
50   {
51     "id": "5407681f.e8b5e8",
52     "type": "block",
53     "name": "block : atomic",
54     "xml": "<block atomic=\"true\">",
55     "atomic": "true",
56     "outputs": 1,
57     "x": 257.6706123352051,
58     "y": 574.6666819155216,
59     "z": "b1933fd7.45eec",
60     "wires": [
61       [
62         "df156b9b.893498",
63         "be3201ef.467c4",
64         "860b5ecf.dd7b5",
65         "16992179.73e94f",
66         "98f2142f.e861f8",
67         "d04b477e.b0b688",
68         "873153fb.ad4f6",
69         "104270ca.7ed57f",
70         "e4cc3ba0.aaef78",
71         "8c780213.0f5d9",
72         "a5d33dff.966b"
73       ]
74     ]
75   },
76   {
77     "id": "df156b9b.893498",
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": 763.0248603820801,
84     "y": 99.02095222473145,
85     "z": "b1933fd7.45eec",
86     "wires": [
87       [
88         "cd5b067d.e6ac48",
89         "8805239b.f3949",
90         "b1447a06.d6b6b8"
91       ]
92     ]
93   },
94   {
95     "id": "cd5b067d.e6ac48",
96     "type": "other",
97     "name": "Null",
98     "xml": "<outcome value=''>\n",
99     "comments": "",
100     "outputs": 1,
101     "x": 1006.024787902832,
102     "y": 124.02103519439697,
103     "z": "b1933fd7.45eec",
104     "wires": [
105       [
106         "e50203dd.f1638"
107       ]
108     ]
109   },
110   {
111     "id": "e50203dd.f1638",
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": 1154.8022994995117,
117     "y": 103.9099702835083,
118     "z": "b1933fd7.45eec",
119     "wires": []
120   },
121   {
122     "id": "8805239b.f3949",
123     "type": "other",
124     "name": "other",
125     "xml": "<outcome value='Other'>\n",
126     "comments": "",
127     "outputs": 1,
128     "x": 1007.0251121520996,
129     "y": 157.02105808258057,
130     "z": "b1933fd7.45eec",
131     "wires": [
132       [
133         "ec39454c.89fad8"
134       ]
135     ]
136   },
137   {
138     "id": "ec39454c.89fad8",
139     "type": "block",
140     "name": "block : atomic",
141     "xml": "<block atomic=\"true\">",
142     "atomic": "true",
143     "outputs": 1,
144     "x": 1154.2948150634766,
145     "y": 146.57558059692383,
146     "z": "b1933fd7.45eec",
147     "wires": [
148       [
149         "581f3be0.95f264",
150         "9ccafa3a.a3a8e8"
151       ]
152     ]
153   },
154   {
155     "id": "581f3be0.95f264",
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": 1399.310775756836,
162     "y": 98.44958019256592,
163     "z": "b1933fd7.45eec",
164     "wires": [
165       [
166         "66dc1ec4.8151c"
167       ]
168     ]
169   },
170   {
171     "id": "9ccafa3a.a3a8e8",
172     "type": "switchNode",
173     "name": "switch tmp.vidx ",
174     "xml": "<switch test=\"`$tmp.vidx`\">\n\n",
175     "comments": "",
176     "outputs": 1,
177     "x": 1330.6121292114258,
178     "y": 146.43275928497314,
179     "z": "b1933fd7.45eec",
180     "wires": [
181       [
182         "4834ec00.0aabb4"
183       ]
184     ]
185   },
186   {
187     "id": "4834ec00.0aabb4",
188     "type": "outcome",
189     "name": "NULL",
190     "xml": "<outcome value=''>\n",
191     "comments": "",
192     "outputs": 1,
193     "x": 1484.0407676696777,
194     "y": 145.00417232513428,
195     "z": "b1933fd7.45eec",
196     "wires": [
197       [
198         "fddc1ade.282818"
199       ]
200     ]
201   },
202   {
203     "id": "5b23a76a.488d28",
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": 1770.739356994629,
210     "y": 95.69969272613525,
211     "z": "b1933fd7.45eec",
212     "wires": [
213       [
214         "acf51a78.0a9178"
215       ]
216     ]
217   },
218   {
219     "id": "fddc1ade.282818",
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": 1620.4691619873047,
225     "y": 144.14703464508057,
226     "z": "b1933fd7.45eec",
227     "wires": []
228   },
229   {
230     "id": "acf51a78.0a9178",
231     "type": "outcomeTrue",
232     "name": "true",
233     "xml": "<outcome value='true'>\n",
234     "comments": "",
235     "outputs": 1,
236     "x": 1809.691505432129,
237     "y": 150.59241199493408,
238     "z": "b1933fd7.45eec",
239     "wires": [
240       [
241         "4a7918ac.67fac8"
242       ]
243     ]
244   },
245   {
246     "id": "b1447a06.d6b6b8",
247     "type": "outcome",
248     "name": "0",
249     "xml": "<outcome value='0'>\n",
250     "comments": "",
251     "outputs": 1,
252     "x": 1002.9935340881348,
253     "y": 91.98973083496094,
254     "z": "b1933fd7.45eec",
255     "wires": [
256       [
257         "e50203dd.f1638"
258       ]
259     ]
260   },
261   {
262     "id": "66dc1ec4.8151c",
263     "type": "block",
264     "name": "block",
265     "xml": "<block>\n",
266     "atomic": "false",
267     "comments": "",
268     "outputs": 1,
269     "x": 1618.6604080200195,
270     "y": 97.9896411895752,
271     "z": "b1933fd7.45eec",
272     "wires": [
273       [
274         "5b23a76a.488d28"
275       ]
276     ]
277   },
278   {
279     "id": "be3201ef.467c4",
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='`$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.`' />\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": 718.338077545166,
285     "y": 747.6668863296509,
286     "z": "b1933fd7.45eec",
287     "wires": []
288   },
289   {
290     "id": "860b5ecf.dd7b5",
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": 730.8937187194824,
296     "y": 804.889181137085,
297     "z": "b1933fd7.45eec",
298     "wires": []
299   },
300   {
301     "id": "16992179.73e94f",
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": 773.3380928039551,
307     "y": 839.6670169830322,
308     "z": "b1933fd7.45eec",
309     "wires": []
310   },
311   {
312     "id": "98f2142f.e861f8",
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": 683.6714630126953,
318     "y": 928.4448499679565,
319     "z": "b1933fd7.45eec",
320     "wires": []
321   },
322   {
323     "id": "873153fb.ad4f6",
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 = SDWANController 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": 743.5042667388916,
330     "y": 267.00012239813805,
331     "z": "b1933fd7.45eec",
332     "wires": [
333       [
334         "5df9a8e2.afb138",
335         "e0b2bff0.163f1",
336         "a120de42.8cdeb"
337       ]
338     ]
339   },
340   {
341     "id": "5df9a8e2.afb138",
342     "type": "success",
343     "name": "success",
344     "xml": "<outcome value='success'>\n",
345     "comments": "",
346     "outputs": 1,
347     "x": 962.5042362213135,
348     "y": 226.00011897087097,
349     "z": "b1933fd7.45eec",
350     "wires": [
351       [
352         "c101e40a.a37c18"
353       ]
354     ]
355   },
356   {
357     "id": "e0b2bff0.163f1",
358     "type": "not-found",
359     "name": "not-found",
360     "xml": "<outcome value='not-found'>\n",
361     "comments": "",
362     "outputs": 1,
363     "x": 965.9952030181885,
364     "y": 273.5741546154022,
365     "z": "b1933fd7.45eec",
366     "wires": [
367       [
368         "1f1c50e3.e0332f"
369       ]
370     ]
371   },
372   {
373     "id": "a120de42.8cdeb",
374     "type": "other",
375     "name": "other",
376     "xml": "<outcome value='Other'>\n",
377     "comments": "",
378     "outputs": 1,
379     "x": 961.3282108306885,
380     "y": 314.9074676036835,
381     "z": "b1933fd7.45eec",
382     "wires": [
383       [
384         "4fef696b.8e5e98"
385       ]
386     ]
387   },
388   {
389     "id": "4fef696b.8e5e98",
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": 1149.1007671356201,
395     "y": 310.3466603755951,
396     "z": "b1933fd7.45eec",
397     "wires": []
398   },
399   {
400     "id": "1f1c50e3.e0332f",
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": 1142.566614151001,
406     "y": 261.8598906993866,
407     "z": "b1933fd7.45eec",
408     "wires": []
409   },
410   {
411     "id": "c101e40a.a37c18",
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": 1143.0043392181396,
417     "y": 220.00015768408775,
418     "z": "b1933fd7.45eec",
419     "wires": []
420   },
421   {
422     "id": "8c780213.0f5d9",
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=\"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`\" />",
426     "comments": "",
427     "outputs": 1,
428     "x": 776.0044193267822,
429     "y": 642.666867017746,
430     "z": "b1933fd7.45eec",
431     "wires": [
432       [
433         "a8a639cc.af8fc8",
434         "b547a1c8.93a66"
435       ]
436     ]
437   },
438   {
439     "id": "a8a639cc.af8fc8",
440     "type": "success",
441     "name": "success",
442     "xml": "<outcome value='success'>\n",
443     "comments": "",
444     "outputs": 1,
445     "x": 1022.0044040679932,
446     "y": 680.6669557094574,
447     "z": "b1933fd7.45eec",
448     "wires": [
449       [
450         "da37396d.3af718"
451       ]
452     ]
453   },
454   {
455     "id": "b547a1c8.93a66",
456     "type": "failure",
457     "name": "failure",
458     "xml": "<outcome value='failure'>\n",
459     "comments": "",
460     "outputs": 1,
461     "x": 1018.0044841766357,
462     "y": 634.6668708324432,
463     "z": "b1933fd7.45eec",
464     "wires": [
465       [
466         "bf4f49a8.2593f8"
467       ]
468     ]
469   },
470   {
471     "id": "bf4f49a8.2593f8",
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": 1159.0045757293701,
477     "y": 634.6668717861176,
478     "z": "b1933fd7.45eec",
479     "wires": []
480   },
481   {
482     "id": "da37396d.3af718",
483     "type": "block",
484     "name": "block : atomic",
485     "xml": "<block atomic=\"true\">",
486     "atomic": "true",
487     "comments": "",
488     "outputs": 1,
489     "x": 1166.0042705535889,
490     "y": 678.6668746471405,
491     "z": "b1933fd7.45eec",
492     "wires": [
493       []
494     ]
495   },
496   {
497     "id": "e4cc3ba0.aaef78",
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": 767.0045871734619,
504     "y": 535.666864156723,
505     "z": "b1933fd7.45eec",
506     "wires": [
507       [
508         "456c9aa6.bae384",
509         "c9572446.4deba8"
510       ]
511     ]
512   },
513   {
514     "id": "456c9aa6.bae384",
515     "type": "success",
516     "name": "success",
517     "xml": "<outcome value='success'>\n",
518     "comments": "",
519     "outputs": 1,
520     "x": 1000.0046825408936,
521     "y": 568.6668565273285,
522     "z": "b1933fd7.45eec",
523     "wires": [
524       [
525         "3ae835e7.d94c3a"
526       ]
527     ]
528   },
529   {
530     "id": "c9572446.4deba8",
531     "type": "failure",
532     "name": "failure",
533     "xml": "<outcome value='failure'>\n",
534     "comments": "",
535     "outputs": 1,
536     "x": 1004.0047626495361,
537     "y": 504.66693472862244,
538     "z": "b1933fd7.45eec",
539     "wires": [
540       [
541         "2bd63ac3.ca30f6"
542       ]
543     ]
544   },
545   {
546     "id": "2bd63ac3.ca30f6",
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": 1149.004934310913,
552     "y": 506.66693472862244,
553     "z": "b1933fd7.45eec",
554     "wires": []
555   },
556   {
557     "id": "3ae835e7.d94c3a",
558     "type": "block",
559     "name": "block : atomic",
560     "xml": "<block atomic=\"true\">",
561     "atomic": "true",
562     "comments": "",
563     "outputs": 1,
564     "x": 1156.0045261383057,
565     "y": 566.6668565273285,
566     "z": "b1933fd7.45eec",
567     "wires": [
568       []
569     ]
570   },
571   {
572     "id": "d04b477e.b0b688",
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": 711.0038948059082,
579     "y": 142.0000295639038,
580     "z": "b1933fd7.45eec",
581     "wires": [
582       []
583     ]
584   },
585   {
586     "id": "104270ca.7ed57f",
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": 760.0041751861572,
593     "y": 405.66669368743896,
594     "z": "b1933fd7.45eec",
595     "wires": [
596       [
597         "4437f7fc.652918",
598         "1c05902b.92524"
599       ]
600     ]
601   },
602   {
603     "id": "4437f7fc.652918",
604     "type": "success",
605     "name": "success",
606     "xml": "<outcome value='success'>\n",
607     "comments": "",
608     "outputs": 1,
609     "x": 994.0042133331299,
610     "y": 391.6667184829712,
611     "z": "b1933fd7.45eec",
612     "wires": [
613       [
614         "a3e2158c.084138"
615       ]
616     ]
617   },
618   {
619     "id": "1c05902b.92524",
620     "type": "failure",
621     "name": "failure",
622     "xml": "<outcome value='failure'>\n",
623     "comments": "",
624     "outputs": 1,
625     "x": 987.2541751861572,
626     "y": 437.3095769882202,
627     "z": "b1933fd7.45eec",
628     "wires": [
629       [
630         "7ff91448.c6f30c"
631       ]
632     ]
633   },
634   {
635     "id": "7ff91448.c6f30c",
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": 1140.0041751861572,
641     "y": 437.05963802337646,
642     "z": "b1933fd7.45eec",
643     "wires": []
644   },
645   {
646     "id": "a3e2158c.084138",
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": 1148.0042133331299,
652     "y": 392.6667184829712,
653     "z": "b1933fd7.45eec",
654     "wires": []
655   },
656   {
657     "id": "4a7918ac.67fac8",
658     "type": "block",
659     "name": "block : atomic",
660     "xml": "<block atomic=\"true\">",
661     "atomic": "true",
662     "outputs": 1,
663     "x": 1950.0040168762207,
664     "y": 151.00004482269287,
665     "z": "b1933fd7.45eec",
666     "wires": [
667       [
668         "bb491f3b.31d3b",
669         "af8f15c9.eb4d58",
670         "df2693ee.5beea"
671       ]
672     ]
673   },
674   {
675     "id": "a5d33dff.966b",
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 = $vnf-topology-operation-input.vnf-information.vnf-id' >\n<parameter name=\"id\" value=\"`$vnf-topology-operation-input.vnf-information.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": 796.0041923522949,
682     "y": 881.0004291534424,
683     "z": "b1933fd7.45eec",
684     "wires": [
685       []
686     ]
687   },
688   {
689     "id": "bb491f3b.31d3b",
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": 2200.0352516174316,
695     "y": 102.03129148483276,
696     "z": "b1933fd7.45eec",
697     "wires": []
698   },
699   {
700     "id": "af8f15c9.eb4d58",
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": 2172.4815406799316,
706     "y": 148.6889271736145,
707     "z": "b1933fd7.45eec",
708     "wires": []
709   },
710   {
711     "id": "df2693ee.5beea",
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": 2196.481491088867,
718     "y": 198.68891525268555,
719     "z": "b1933fd7.45eec",
720     "wires": [
721       []
722     ]
723   }
724 ]