fixed WAN port deactivate issue
[sdnc/oam.git] / platform-logic / generic-resource-api / src / main / json / sdwan / GENERIC-RESOURCE-API_sdwan-vf-operation-wanport-deactivate.json
1 [\r
2     {\r
3         "id": "40773877.e7f878",\r
4         "type": "execute",\r
5         "name": "execute Properties",\r
6         "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",\r
7         "comments": "",\r
8         "outputs": 1,\r
9         "x": 823,\r
10         "y": 371.07812309265137,\r
11         "z": "b8fed42e.2d2888",\r
12         "wires": [\r
13             []\r
14         ]\r
15     },\r
16     {\r
17         "id": "8daa10ea.b957b",\r
18         "type": "dgstart",\r
19         "name": "DGSTART",\r
20         "outputs": 1,\r
21         "x": 103.46870422363281,\r
22         "y": 59,\r
23         "z": "b8fed42e.2d2888",\r
24         "wires": [\r
25             [\r
26                 "61fe2f58.e4c3e"\r
27             ]\r
28         ]\r
29     },\r
30     {\r
31         "id": "61fe2f58.e4c3e",\r
32         "type": "service-logic",\r
33         "name": "GENERIC-RESOURCE-API ${project.version}",\r
34         "module": "GENERIC-RESOURCE-API",\r
35         "version": "${project.version}",\r
36         "comments": "",\r
37         "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}'>",\r
38         "outputs": 1,\r
39         "x": 234.75439453125,\r
40         "y": 108.23810863494873,\r
41         "z": "b8fed42e.2d2888",\r
42         "wires": [\r
43             [\r
44                 "a074f76.b34de08"\r
45             ]\r
46         ]\r
47     },\r
48     {\r
49         "id": "a074f76.b34de08",\r
50         "type": "method",\r
51         "name": "method sdwan-vf-operation-wanport-deactivate",\r
52         "xml": "<method rpc='sdwan-vf-operation-wanport-deactivate' mode='sync'>\n",\r
53         "comments": "",\r
54         "outputs": 1,\r
55         "x": 237.89732360839844,\r
56         "y": 193.00003242492676,\r
57         "z": "b8fed42e.2d2888",\r
58         "wires": [\r
59             [\r
60                 "467c4bfc.2f5b64"\r
61             ]\r
62         ]\r
63     },\r
64     {\r
65         "id": "1de0c391.b5a28c",\r
66         "type": "for",\r
67         "name": "for each vnf",\r
68         "xml": "<for index='idx' start='0' end='`$service-data.vnfs.vnf_length`' >\n",\r
69         "comments": "",\r
70         "outputs": 1,\r
71         "x": 807.9999542236328,\r
72         "y": 208.07811641693115,\r
73         "z": "b8fed42e.2d2888",\r
74         "wires": [\r
75             [\r
76                 "5ecb025.1081afc"\r
77             ]\r
78         ]\r
79     },\r
80     {\r
81         "id": "5ecb025.1081afc",\r
82         "type": "switchNode",\r
83         "name": "switch this vnf-id == input vnf-id",\r
84         "xml": "<switch test=\"`$service-data.vnfs.vnf[$idx].vnf-id == $vf-module-topology-operation-input.vnf-information.vnf-id`\">    \n",\r
85         "comments": "",\r
86         "outputs": 1,\r
87         "x": 1060.0000457763672,\r
88         "y": 206.744779586792,\r
89         "z": "b8fed42e.2d2888",\r
90         "wires": [\r
91             [\r
92                 "997362c3.0cc6a"\r
93             ]\r
94         ]\r
95     },\r
96     {\r
97         "id": "fdccb3cb.83cc4",\r
98         "type": "set",\r
99         "name": "set vnf-index",\r
100         "xml": "<set>\n<parameter name='vnf-index' value='`$idx`' />\n",\r
101         "comments": "",\r
102         "x": 1431.6665344238281,\r
103         "y": 208.74478244781494,\r
104         "z": "b8fed42e.2d2888",\r
105         "wires": []\r
106     },\r
107     {\r
108         "id": "997362c3.0cc6a",\r
109         "type": "outcomeTrue",\r
110         "name": "true",\r
111         "xml": "<outcome value='true'>\n",\r
112         "comments": "",\r
113         "outputs": 1,\r
114         "x": 1278.3333625793457,\r
115         "y": 208.74476146697998,\r
116         "z": "b8fed42e.2d2888",\r
117         "wires": [\r
118             [\r
119                 "fdccb3cb.83cc4"\r
120             ]\r
121         ]\r
122     },\r
123     {\r
124         "id": "5cb64270.b68bbc",\r
125         "type": "switchNode",\r
126         "name": "switch vnf_length",\r
127         "xml": "<switch test='`$service-data.vnfs.vnf_length`'>\n",\r
128         "comments": "",\r
129         "outputs": 1,\r
130         "x": 822.4205474853516,\r
131         "y": 163.5819854736328,\r
132         "z": "b8fed42e.2d2888",\r
133         "wires": [\r
134             [\r
135                 "2713a7c6.86b758"\r
136             ]\r
137         ]\r
138     },\r
139     {\r
140         "id": "2713a7c6.86b758",\r
141         "type": "other",\r
142         "name": "NULL",\r
143         "xml": "<outcome value=''>\n",\r
144         "comments": "",\r
145         "outputs": 1,\r
146         "x": 1009.0872268676758,\r
147         "y": 162.915283203125,\r
148         "z": "b8fed42e.2d2888",\r
149         "wires": [\r
150             [\r
151                 "a37833b2.185f8"\r
152             ]\r
153         ]\r
154     },\r
155     {\r
156         "id": "a37833b2.185f8",\r
157         "type": "returnFailure",\r
158         "name": "return failure",\r
159         "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"404\" />\n    <parameter name=\"error-message\" value=\"There are no VNFs in MD-SAL\" />\n",\r
160         "comments": "",\r
161         "x": 1190.7538528442383,\r
162         "y": 162.915283203125,\r
163         "z": "b8fed42e.2d2888",\r
164         "wires": []\r
165     },\r
166     {\r
167         "id": "8159840a.e34b38",\r
168         "type": "for",\r
169         "name": "for each existing vf-index",\r
170         "xml": "<for index='idx' start='0' end='`$vf-module-length`' >\n",\r
171         "comments": "",\r
172         "outputs": 1,\r
173         "x": 1460.9999618530273,\r
174         "y": 378.0781068508513,\r
175         "z": "b8fed42e.2d2888",\r
176         "wires": [\r
177             [\r
178                 "2d5467cf.141cf8"\r
179             ]\r
180         ]\r
181     },\r
182     {\r
183         "id": "92550d61.5702c",\r
184         "type": "switchNode",\r
185         "name": "switch vf-module-id found",\r
186         "xml": "<switch test=\"`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$idx].vf-module-id == $vf-module-topology-operation-input.vf-module-information.vf-module-id`\">\n",\r
187         "comments": "",\r
188         "outputs": 1,\r
189         "x": 1880.2857971191406,\r
190         "y": 380.6496248245239,\r
191         "z": "b8fed42e.2d2888",\r
192         "wires": [\r
193             [\r
194                 "e5b5e260.275be"\r
195             ]\r
196         ]\r
197     },\r
198     {\r
199         "id": "6e4eaafb.1605b4",\r
200         "type": "set",\r
201         "name": "set vf-module-length",\r
202         "xml": "<set>\n<parameter name='vf-module-length' value='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module_length`' />\n\n\n",\r
203         "comments": "",\r
204         "x": 1447.5715866088867,\r
205         "y": 341.855993270874,\r
206         "z": "b8fed42e.2d2888",\r
207         "wires": []\r
208     },\r
209     {\r
210         "id": "fb40ae0e.bbae5",\r
211         "type": "block",\r
212         "name": "block",\r
213         "xml": "<block>\n",\r
214         "atomic": "false",\r
215         "comments": "",\r
216         "outputs": 1,\r
217         "x": 1251.8729820251465,\r
218         "y": 355.2368783657439,\r
219         "z": "b8fed42e.2d2888",\r
220         "wires": [\r
221             [\r
222                 "8159840a.e34b38",\r
223                 "6e4eaafb.1605b4",\r
224                 "3aa9d72d.eaee98"\r
225             ]\r
226         ]\r
227     },\r
228     {\r
229         "id": "338d154d.d328ea",\r
230         "type": "other",\r
231         "name": "other",\r
232         "xml": "<outcome value='Other'>\n",\r
233         "comments": "",\r
234         "outputs": 1,\r
235         "x": 1107.5159378051758,\r
236         "y": 355.3003663723357,\r
237         "z": "b8fed42e.2d2888",\r
238         "wires": [\r
239             [\r
240                 "fb40ae0e.bbae5"\r
241             ]\r
242         ]\r
243     },\r
244     {\r
245         "id": "7e611b6d.db2764",\r
246         "type": "switchNode",\r
247         "name": "switch vf-modules.vf-module_length",\r
248         "xml": "<switch test='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module_length`'>\n",\r
249         "comments": "",\r
250         "outputs": 1,\r
251         "x": 871.5159196853638,\r
252         "y": 282.3003787994385,\r
253         "z": "b8fed42e.2d2888",\r
254         "wires": [\r
255             [\r
256                 "338d154d.d328ea",\r
257                 "7a0a695.917c098",\r
258                 "8d2d99ea.4b0448"\r
259             ]\r
260         ]\r
261     },\r
262     {\r
263         "id": "7a0a695.917c098",\r
264         "type": "outcome",\r
265         "name": "0",\r
266         "xml": "<outcome value='0'>\n",\r
267         "comments": "",\r
268         "outputs": 1,\r
269         "x": 1112.9999561309814,\r
270         "y": 254.0781078338623,\r
271         "z": "b8fed42e.2d2888",\r
272         "wires": [\r
273             [\r
274                 "589e99a4.cf28d8"\r
275             ]\r
276         ]\r
277     },\r
278     {\r
279         "id": "8d2d99ea.4b0448",\r
280         "type": "other",\r
281         "name": "Null",\r
282         "xml": "<outcome value=''>\n",\r
283         "comments": "",\r
284         "outputs": 1,\r
285         "x": 1115.0311450958252,\r
286         "y": 291.10941886901855,\r
287         "z": "b8fed42e.2d2888",\r
288         "wires": [\r
289             [\r
290                 "589e99a4.cf28d8"\r
291             ]\r
292         ]\r
293     },\r
294     {\r
295         "id": "589e99a4.cf28d8",\r
296         "type": "returnFailure",\r
297         "name": "return failure",\r
298         "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=\"vf-module-operation-input.vf-module-request-input.vf-id not found in service-data\" />\n",\r
299         "comments": "",\r
300         "x": 1272.8086605072021,\r
301         "y": 271.9983673095703,\r
302         "z": "b8fed42e.2d2888",\r
303         "wires": []\r
304     },\r
305     {\r
306         "id": "e5b5e260.275be",\r
307         "type": "outcomeTrue",\r
308         "name": "true",\r
309         "xml": "<outcome value='true'>\n",\r
310         "comments": "",\r
311         "outputs": 1,\r
312         "x": 2084.0000381469727,\r
313         "y": 379.0781312282197,\r
314         "z": "b8fed42e.2d2888",\r
315         "wires": [\r
316             [\r
317                 "9a9a684f.c7ffd8"\r
318             ]\r
319         ]\r
320     },\r
321     {\r
322         "id": "9a9a684f.c7ffd8",\r
323         "type": "block",\r
324         "name": "block : atomic",\r
325         "xml": "<block atomic=\"true\">",\r
326         "atomic": "true",\r
327         "outputs": 1,\r
328         "x": 1846.343246459961,\r
329         "y": 481.16428089141846,\r
330         "z": "b8fed42e.2d2888",\r
331         "wires": [\r
332             [\r
333                 "14405ad7.cb9e35",\r
334                 "de34e0a1.fef5c",\r
335                 "c4a0e771.25eac8"\r
336             ]\r
337         ]\r
338     },\r
339     {\r
340         "id": "14405ad7.cb9e35",\r
341         "type": "set",\r
342         "name": "set tmp.vidx and ctx.vnf-data",\r
343         "xml": "<set>\n<parameter name='tmp.vidx' value='`$idx`' />\n<parameter name='ctx.vf-module-data.' value='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$idx].vf-module-data.`' />\n",\r
344         "comments": "",\r
345         "x": 2088.22993850708,\r
346         "y": 451.5066947937012,\r
347         "z": "b8fed42e.2d2888",\r
348         "wires": []\r
349     },\r
350     {\r
351         "id": "de34e0a1.fef5c",\r
352         "type": "set",\r
353         "name": "set vf-module-request-input.",\r
354         "xml": "<set>\n<parameter name='vf-module-request-input.' value='`$ctx.vf-module-data.vf-module-request-input.`' />\n\n",\r
355         "comments": "",\r
356         "x": 2091.676197052002,\r
357         "y": 496.164333820343,\r
358         "z": "b8fed42e.2d2888",\r
359         "wires": []\r
360     },\r
361     {\r
362         "id": "2d5467cf.141cf8",\r
363         "type": "block",\r
364         "name": "block : atomic",\r
365         "xml": "<block atomic=\"true\">",\r
366         "atomic": "true",\r
367         "outputs": 1,\r
368         "x": 1668.5000076293945,\r
369         "y": 378.07811546325684,\r
370         "z": "b8fed42e.2d2888",\r
371         "wires": [\r
372             [\r
373                 "92550d61.5702c"\r
374             ]\r
375         ]\r
376     },\r
377     {\r
378         "id": "816f2ae4.9e3938",\r
379         "type": "comment",\r
380         "name": "Get devices",\r
381         "info": "",\r
382         "comments": "",\r
383         "x": 821.5002403259277,\r
384         "y": 499.0781545639038,\r
385         "z": "b8fed42e.2d2888",\r
386         "wires": []\r
387     },\r
388     {\r
389         "id": "3aa9d72d.eaee98",\r
390         "type": "set",\r
391         "name": "set prop.site.deviceId_length",\r
392         "xml": "<set>\n<parameter name='prop.site.deviceId_length' value='0' />\n",\r
393         "comments": "",\r
394         "x": 1473.9999542236328,\r
395         "y": 306.07811641693115,\r
396         "z": "b8fed42e.2d2888",\r
397         "wires": []\r
398     },\r
399     {\r
400         "id": "467c4bfc.2f5b64",\r
401         "type": "block",\r
402         "name": "block : atomic",\r
403         "xml": "<block atomic=\"true\">\n",\r
404         "atomic": "false",\r
405         "comments": "",\r
406         "outputs": 1,\r
407         "x": 378.99604415893555,\r
408         "y": 410.0742139816284,\r
409         "z": "b8fed42e.2d2888",\r
410         "wires": [\r
411             [\r
412                 "5cb64270.b68bbc",\r
413                 "1de0c391.b5a28c",\r
414                 "7e611b6d.db2764",\r
415                 "40773877.e7f878",\r
416                 "b86dde81.b26fa",\r
417                 "b01ccc1a.02731",\r
418                 "9c618528.84c5b8",\r
419                 "fc70c70a.583ef8",\r
420                 "86a3ea09.776bc8",\r
421                 "1e0c85ac.387e1a",\r
422                 "6b522fc9.bd25d",\r
423                 "c257767a.933bb8",\r
424                 "c5d5b1d3.8c084"\r
425             ]\r
426         ]\r
427     },\r
428     {\r
429         "id": "c4a0e771.25eac8",\r
430         "type": "call",\r
431         "name": "call sdwan-get-wan-param",\r
432         "xml": "<call module='GENERIC-RESOURCE-API' rpc='sdwan-get-wan-param' mode='sync' >\n",\r
433         "comments": "",\r
434         "outputs": 1,\r
435         "x": 2082.9726486206055,\r
436         "y": 543.0039324760437,\r
437         "z": "b8fed42e.2d2888",\r
438         "wires": [\r
439             []\r
440         ]\r
441     },\r
442     {\r
443         "id": "86a3ea09.776bc8",\r
444         "type": "get-resource",\r
445         "name": "get-resource esr-thirdparty-sdnc",\r
446         "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",\r
447         "comments": "",\r
448         "outputs": 1,\r
449         "x": 866.7226486206055,\r
450         "y": 449.75391387939453,\r
451         "z": "b8fed42e.2d2888",\r
452         "wires": [\r
453             [\r
454                 "cb360512.9f1c88",\r
455                 "f1779f79.d3359",\r
456                 "78cd1685.a056c8"\r
457             ]\r
458         ]\r
459     },\r
460     {\r
461         "id": "cb360512.9f1c88",\r
462         "type": "success",\r
463         "name": "success",\r
464         "xml": "<outcome value='success'>\n",\r
465         "comments": "",\r
466         "outputs": 1,\r
467         "x": 1098.7227325439453,\r
468         "y": 413.7539367675781,\r
469         "z": "b8fed42e.2d2888",\r
470         "wires": [\r
471             [\r
472                 "f23d61e0.62498"\r
473             ]\r
474         ]\r
475     },\r
476     {\r
477         "id": "f1779f79.d3359",\r
478         "type": "not-found",\r
479         "name": "not-found",\r
480         "xml": "<outcome value='not-found'>\n",\r
481         "comments": "",\r
482         "outputs": 1,\r
483         "x": 1101.2136154174805,\r
484         "y": 449.3279733657837,\r
485         "z": "b8fed42e.2d2888",\r
486         "wires": [\r
487             [\r
488                 "399ac4f6.7a8eac"\r
489             ]\r
490         ]\r
491     },\r
492     {\r
493         "id": "78cd1685.a056c8",\r
494         "type": "other",\r
495         "name": "other",\r
496         "xml": "<outcome value='Other'>\n",\r
497         "comments": "",\r
498         "outputs": 1,\r
499         "x": 1096.5466232299805,\r
500         "y": 485.66133213043213,\r
501         "z": "b8fed42e.2d2888",\r
502         "wires": [\r
503             [\r
504                 "3b8de765.32c6c8"\r
505             ]\r
506         ]\r
507     },\r
508     {\r
509         "id": "3b8de765.32c6c8",\r
510         "type": "returnFailure",\r
511         "name": "return failure",\r
512         "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",\r
513         "comments": "",\r
514         "x": 1250.3191146850586,\r
515         "y": 483.10041904449463,\r
516         "z": "b8fed42e.2d2888",\r
517         "wires": []\r
518     },\r
519     {\r
520         "id": "399ac4f6.7a8eac",\r
521         "type": "returnFailure",\r
522         "name": "return failure",\r
523         "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",\r
524         "comments": "",\r
525         "x": 1246.785011291504,\r
526         "y": 447.61366081237793,\r
527         "z": "b8fed42e.2d2888",\r
528         "wires": []\r
529     },\r
530     {\r
531         "id": "f23d61e0.62498",\r
532         "type": "set",\r
533         "name": "set controller data",\r
534         "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",\r
535         "comments": "",\r
536         "x": 1254.2228469848633,\r
537         "y": 412.75382900238037,\r
538         "z": "b8fed42e.2d2888",\r
539         "wires": []\r
540     },\r
541     {\r
542         "id": "1e0c85ac.387e1a",\r
543         "type": "execute",\r
544         "name": "execute RestApiCallNode Get token",\r
545         "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"templateFileName\" value=\"`$prop.restapi.templateDir + '/actokentemplate.json'`\" />\n<parameter name=\"restapiUrl\" value=\"`$prop.sdncRestApi.thirdpartySdnc.url + '/controller/v2/tokens'`\" />\n<parameter name=\"format\" value=\"json\"/>\n<parameter name=\"httpMethod\" value=\"post\"/>\n<parameter name=\"responsePrefix\" value=\"token-result\"/>\n<parameter name=\"trustStoreFileName\" value=\"/opt/onap/sdnc/data/stores/truststore.onap.client.jks\"/>\n<parameter name=\"trustStorePassword\" value=\"adminadmin\"/>\n<parameter name=\"keyStoreFileName\" value=\"/opt/onap/sdnc/data/stores/sdnc.p12\"/>\n<parameter name=\"keyStorePassword\" value=\"adminadmin\"/>",\r
546         "comments": "",\r
547         "outputs": 1,\r
548         "x": 881.232780456543,\r
549         "y": 537.4309158325195,\r
550         "z": "b8fed42e.2d2888",\r
551         "wires": [\r
552             [\r
553                 "77011d7.7b96ee4",\r
554                 "12088398.76a01c"\r
555             ]\r
556         ]\r
557     },\r
558     {\r
559         "id": "77011d7.7b96ee4",\r
560         "type": "success",\r
561         "name": "success",\r
562         "xml": "<outcome value='success'>\n",\r
563         "comments": "",\r
564         "outputs": 1,\r
565         "x": 1116.2329063415527,\r
566         "y": 523.4309043884277,\r
567         "z": "b8fed42e.2d2888",\r
568         "wires": [\r
569             [\r
570                 "44026cbb.b9e684"\r
571             ]\r
572         ]\r
573     },\r
574     {\r
575         "id": "44026cbb.b9e684",\r
576         "type": "set",\r
577         "name": "set token-id",\r
578         "xml": "<set>\n<parameter name='prop.sdncRestApi.token_id' value='`$token-result.data.token_id`' />\n",\r
579         "comments": "",\r
580         "x": 1258.2329139709473,\r
581         "y": 522.430905342102,\r
582         "z": "b8fed42e.2d2888",\r
583         "wires": []\r
584     },\r
585     {\r
586         "id": "9dced7bd.db4818",\r
587         "type": "returnFailure",\r
588         "name": "return failure",\r
589         "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",\r
590         "comments": "",\r
591         "x": 1264.2329139709473,\r
592         "y": 559.8238935470581,\r
593         "z": "b8fed42e.2d2888",\r
594         "wires": []\r
595     },\r
596     {\r
597         "id": "12088398.76a01c",\r
598         "type": "failure",\r
599         "name": "failure",\r
600         "xml": "<outcome value='failure'>\n",\r
601         "comments": "",\r
602         "outputs": 1,\r
603         "x": 1115.4829063415527,\r
604         "y": 559.0738115310669,\r
605         "z": "b8fed42e.2d2888",\r
606         "wires": [\r
607             [\r
608                 "9dced7bd.db4818"\r
609             ]\r
610         ]\r
611     },\r
612     {\r
613         "id": "6b522fc9.bd25d",\r
614         "type": "call",\r
615         "name": "call sdwan-get-tenant-auth",\r
616         "xml": "<call module='GENERIC-RESOURCE-API' rpc='sdwan-get-tenant-auth' mode='sync' >\n",\r
617         "comments": "",\r
618         "outputs": 1,\r
619         "x": 858.2325286865234,\r
620         "y": 590.763991355896,\r
621         "z": "b8fed42e.2d2888",\r
622         "wires": [\r
623             []\r
624         ]\r
625     },\r
626     {\r
627         "id": "fc70c70a.583ef8",\r
628         "type": "returnSuccess",\r
629         "name": "return success",\r
630         "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",\r
631         "comments": "",\r
632         "x": 823.3680686950684,\r
633         "y": 1035.5663003921509,\r
634         "z": "b8fed42e.2d2888",\r
635         "wires": []\r
636     },\r
637     {\r
638         "id": "4a80b28.10a884c",\r
639         "type": "update",\r
640         "name": "update SDWAN wan port instance configuration in AAI",\r
641         "xml": "<update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='wan-port-config' \n      key='wan-port-config.wan-port-config-id = $vf-module-topology-operation-input.vnf-information.vnf-id' >\n<parameter name=\"wan-port-config-id\" value=\"`$vf-module-topology-operation-input.vnf-information.vnf-id`\" />\n<parameter name='operational-status' value='PendingDelete' />\n<parameter name='model-customization-id' value='`$vf-module-topology-operation-input.vnf-information.onap-model-information.model-customization-uuid`' />\n<parameter name='model-invariant-id' value='`$vf-module-topology-operation-input.vnf-information.onap-model-information.model-invariant-uuid`' />\n<parameter name='model-version-id' value='`$vf-module-topology-operation-input.vnf-information.onap-model-information.model-uuid`' />\n",\r
642         "comments": "",\r
643         "outputs": 1,\r
644         "x": 942.6871871948242,\r
645         "y": 995.3698806762695,\r
646         "z": "b8fed42e.2d2888",\r
647         "wires": [\r
648             []\r
649         ]\r
650     },\r
651     {\r
652         "id": "b86dde81.b26fa",\r
653         "type": "set",\r
654         "name": "copy input data to service data",\r
655         "xml": "<set>\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$tmp.vidx].vf-module-data.sdnc-request-header.' value='`$vf-module-topology-operation-input.sdnc-request-header.`' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$tmp.vidx].vf-module-data.request-information.' value='`$vf-module-topology-operation-input.request-information.`' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$tmp.vidx].vf-module-data.service-information.' value='`$vf-module-topology-operation-input.service-information.`' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$tmp.vidx].vf-module-data.vf-module-information.' value='`$vf-module-topology-operation-input.vf-module-information.`' />\n",\r
656         "comments": "",\r
657         "x": 877.0648956298828,\r
658         "y": 869.7630624771118,\r
659         "z": "b8fed42e.2d2888",\r
660         "wires": []\r
661     },\r
662     {\r
663         "id": "b01ccc1a.02731",\r
664         "type": "set",\r
665         "name": "set vf-module-id and vf-module-object-path",\r
666         "xml": "<set>\n<parameter name='vf-module-object-path' value=\"`'restconf/config/GENERIC-RESOURCE-API:services/service/'\n + $vf-module-topology-operation-input.service-information.service-instance-id\n + '/service-data/vnfs/vnf/'\n + $service-data.vnfs.vnf[$vnf-index].vnf-id\n + '/vnf-data/vf-modules/vf-module/'\n + $vf-module-topology-operation-input.vf-module-information.vf-module-id\n + '/vf-module-data/vf-module-topology/'`\"/>\n<parameter name='vnf-object-path'\n value=\"`'restconf/config/GENERIC-RESOURCE-API:services/service/'\n + $vf-module-topology-operation-input.service-information.service-instance-id\n + '/service-data/vnfs/vnf/'\n + $service-data.vnfs.vnf[$vnf-index].vnf-id\n + '/vnf-data/vnf-topology/'`\"/>\n<parameter name='service-object-path'\n value=\"`'restconf/config/GENERIC-RESOURCE-API:services/service/'\n + $vf-module-topology-operation-input.service-information.service-instance-id\n + '/service-data/service-topology/'`\"/>\n",\r
667         "comments": "",\r
668         "x": 911.3680953979492,\r
669         "y": 913.5661716461182,\r
670         "z": "b8fed42e.2d2888",\r
671         "wires": []\r
672     },\r
673     {\r
674         "id": "9c618528.84c5b8",\r
675         "type": "set",\r
676         "name": "set vf-module-level-oper-status",\r
677         "xml": "<set>\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$tmp.vidx].vf-module-data.vf-module-level-oper-status.order-status'  value='PendingDelete' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$tmp.vidx].vf-module-data.vf-module-level-oper-status.last-rpc-action'  value='`$vf-module-topology-operation-input.sdnc-request-header.svc-action`' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$tmp.vidx].vf-module-data.vf-module-level-oper-status.last-action'  value='`$vf-module-topology-operation-input.sdnc-request-header.request-action`' />",\r
678         "comments": "",\r
679         "x": 878.3680953979492,\r
680         "y": 949.5661716461182,\r
681         "z": "b8fed42e.2d2888",\r
682         "wires": []\r
683     },\r
684     {\r
685         "id": "c5d5b1d3.8c084",\r
686         "type": "execute",\r
687         "name": "execute RestApiCallNode device port delete",\r
688         "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.onap.client.jks\"/>\n<parameter name=\"trustStorePassword\" value=\"adminadmin\"/>\n<parameter name=\"keyStoreFileName\" value=\"/opt/onap/sdnc/data/stores/sdnc.p12\"/>\n<parameter name=\"keyStorePassword\" value=\"adminadmin\"/>\n<parameter name='customHttpHeaders' value=\"`'X-ACCESS-TOKEN=' + $prop.sdncRestApi.token_id`\" />",\r
689         "comments": "",\r
690         "outputs": 1,\r
691         "x": 925.4999542236328,\r
692         "y": 775.0781402587891,\r
693         "z": "b8fed42e.2d2888",\r
694         "wires": [\r
695             [\r
696                 "e2365777.226868",\r
697                 "8c72c557.95eda8"\r
698             ]\r
699         ]\r
700     },\r
701     {\r
702         "id": "e2365777.226868",\r
703         "type": "success",\r
704         "name": "success",\r
705         "xml": "<outcome value='success'>\n",\r
706         "comments": "",\r
707         "outputs": 1,\r
708         "x": 1171.4999389648438,\r
709         "y": 813.0782289505005,\r
710         "z": "b8fed42e.2d2888",\r
711         "wires": [\r
712             [\r
713                 "d7624ae6.474bb8"\r
714             ]\r
715         ]\r
716     },\r
717     {\r
718         "id": "8c72c557.95eda8",\r
719         "type": "failure",\r
720         "name": "failure",\r
721         "xml": "<outcome value='failure'>\n",\r
722         "comments": "",\r
723         "outputs": 1,\r
724         "x": 1167.5000190734863,\r
725         "y": 767.0781440734863,\r
726         "z": "b8fed42e.2d2888",\r
727         "wires": [\r
728             [\r
729                 "d7624ae6.474bb8"\r
730             ]\r
731         ]\r
732     },\r
733     {\r
734         "id": "281f8a8d.8e3fc6",\r
735         "type": "returnFailure",\r
736         "name": "return failure",\r
737         "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",\r
738         "comments": "",\r
739         "x": 1308.5001106262207,\r
740         "y": 767.0781450271606,\r
741         "z": "b8fed42e.2d2888",\r
742         "wires": []\r
743     },\r
744     {\r
745         "id": "d7624ae6.474bb8",\r
746         "type": "block",\r
747         "name": "block : atomic",\r
748         "xml": "<block atomic=\"true\">",\r
749         "atomic": "true",\r
750         "comments": "",\r
751         "outputs": 1,\r
752         "x": 1315.4998054504395,\r
753         "y": 811.0781478881836,\r
754         "z": "b8fed42e.2d2888",\r
755         "wires": [\r
756             []\r
757         ]\r
758     },\r
759     {\r
760         "id": "c257767a.933bb8",\r
761         "type": "execute",\r
762         "name": "execute RestApiCallNode wan port delete",\r
763         "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.onap.client.jks\"/>\n<parameter name=\"trustStorePassword\" value=\"adminadmin\"/>\n<parameter name=\"keyStoreFileName\" value=\"/opt/onap/sdnc/data/stores/sdnc.p12\"/>\n<parameter name=\"keyStorePassword\" value=\"adminadmin\"/>\n<parameter name='customHttpHeaders' value=\"`'X-ACCESS-TOKEN=' + $prop.sdncRestApi.token_id`\" />",\r
764         "comments": "",\r
765         "outputs": 1,\r
766         "x": 920.5001220703125,\r
767         "y": 669.0781383514404,\r
768         "z": "b8fed42e.2d2888",\r
769         "wires": [\r
770             [\r
771                 "ec710bf2.9c0a78",\r
772                 "f07017bc.bc8a18"\r
773             ]\r
774         ]\r
775     },\r
776     {\r
777         "id": "ec710bf2.9c0a78",\r
778         "type": "success",\r
779         "name": "success",\r
780         "xml": "<outcome value='success'>\n",\r
781         "comments": "",\r
782         "outputs": 1,\r
783         "x": 1208.5002174377441,\r
784         "y": 701.0781078338623,\r
785         "z": "b8fed42e.2d2888",\r
786         "wires": [\r
787             [\r
788                 "7193fdca.aa45a4"\r
789             ]\r
790         ]\r
791     },\r
792     {\r
793         "id": "f07017bc.bc8a18",\r
794         "type": "failure",\r
795         "name": "failure",\r
796         "xml": "<outcome value='failure'>\n",\r
797         "comments": "",\r
798         "outputs": 1,\r
799         "x": 1212.5002975463867,\r
800         "y": 637.0781860351562,\r
801         "z": "b8fed42e.2d2888",\r
802         "wires": [\r
803             [\r
804                 "7193fdca.aa45a4"\r
805             ]\r
806         ]\r
807     },\r
808     {\r
809         "id": "64ee4cf2.79ceb4",\r
810         "type": "returnFailure",\r
811         "name": "return failure",\r
812         "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",\r
813         "comments": "",\r
814         "x": 1357.5004692077637,\r
815         "y": 639.0781860351562,\r
816         "z": "b8fed42e.2d2888",\r
817         "wires": []\r
818     },\r
819     {\r
820         "id": "7193fdca.aa45a4",\r
821         "type": "block",\r
822         "name": "block : atomic",\r
823         "xml": "<block atomic=\"true\">",\r
824         "atomic": "true",\r
825         "comments": "",\r
826         "outputs": 1,\r
827         "x": 1364.5000610351562,\r
828         "y": 699.0781078338623,\r
829         "z": "b8fed42e.2d2888",\r
830         "wires": [\r
831             []\r
832         ]\r
833     }\r
834 ]