CCVPN extension site resource DGs
[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": "e69423a5.584ae",\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": 849.5312957763672,\r
10         "y": 366.07812881469727,\r
11         "z": "4fee9402.f5c9bc",\r
12         "wires": [\r
13             []\r
14         ]\r
15     },\r
16     {\r
17         "id": "a2e25c17.8e9c",\r
18         "type": "dgstart",\r
19         "name": "DGSTART",\r
20         "outputs": 1,\r
21         "x": 130,\r
22         "y": 54.0000057220459,\r
23         "z": "4fee9402.f5c9bc",\r
24         "wires": [\r
25             [\r
26                 "3fa8aef8.7e3df2"\r
27             ]\r
28         ]\r
29     },\r
30     {\r
31         "id": "3fa8aef8.7e3df2",\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": 261.2856903076172,\r
40         "y": 103.23811435699463,\r
41         "z": "4fee9402.f5c9bc",\r
42         "wires": [\r
43             [\r
44                 "2162b779.2eb3a8"\r
45             ]\r
46         ]\r
47     },\r
48     {\r
49         "id": "2162b779.2eb3a8",\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": 264.4286193847656,\r
56         "y": 188.00003814697266,\r
57         "z": "4fee9402.f5c9bc",\r
58         "wires": [\r
59             [\r
60                 "832591c7.4ef99"\r
61             ]\r
62         ]\r
63     },\r
64     {\r
65         "id": "7df3c0c6.f5b88",\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": 834.53125,\r
72         "y": 203.07812213897705,\r
73         "z": "4fee9402.f5c9bc",\r
74         "wires": [\r
75             [\r
76                 "112ac69c.661419"\r
77             ]\r
78         ]\r
79     },\r
80     {\r
81         "id": "112ac69c.661419",\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": 1086.5313415527344,\r
88         "y": 201.7447853088379,\r
89         "z": "4fee9402.f5c9bc",\r
90         "wires": [\r
91             [\r
92                 "9fb48502.518d68"\r
93             ]\r
94         ]\r
95     },\r
96     {\r
97         "id": "e66ecc6.7152f3",\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": 1458.1978302001953,\r
103         "y": 203.74478816986084,\r
104         "z": "4fee9402.f5c9bc",\r
105         "wires": []\r
106     },\r
107     {\r
108         "id": "9fb48502.518d68",\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": 1304.864658355713,\r
115         "y": 203.74476718902588,\r
116         "z": "4fee9402.f5c9bc",\r
117         "wires": [\r
118             [\r
119                 "e66ecc6.7152f3"\r
120             ]\r
121         ]\r
122     },\r
123     {\r
124         "id": "ff28f3d.3169d1",\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": 848.9518432617188,\r
131         "y": 158.5819911956787,\r
132         "z": "4fee9402.f5c9bc",\r
133         "wires": [\r
134             [\r
135                 "a6a2da6e.228e08"\r
136             ]\r
137         ]\r
138     },\r
139     {\r
140         "id": "a6a2da6e.228e08",\r
141         "type": "other",\r
142         "name": "NULL",\r
143         "xml": "<outcome value=''>\n",\r
144         "comments": "",\r
145         "outputs": 1,\r
146         "x": 1035.618522644043,\r
147         "y": 157.9152889251709,\r
148         "z": "4fee9402.f5c9bc",\r
149         "wires": [\r
150             [\r
151                 "c0d198d3.426068"\r
152             ]\r
153         ]\r
154     },\r
155     {\r
156         "id": "c0d198d3.426068",\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": 1217.2851486206055,\r
162         "y": 157.9152889251709,\r
163         "z": "4fee9402.f5c9bc",\r
164         "wires": []\r
165     },\r
166     {\r
167         "id": "61f42e0f.accb4",\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": 1487.5312576293945,\r
174         "y": 373.0781125728972,\r
175         "z": "4fee9402.f5c9bc",\r
176         "wires": [\r
177             [\r
178                 "ce0facb9.acf8f"\r
179             ]\r
180         ]\r
181     },\r
182     {\r
183         "id": "d0cbbcf7.18e0c",\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": 1906.8170928955078,\r
190         "y": 375.6496305465698,\r
191         "z": "4fee9402.f5c9bc",\r
192         "wires": [\r
193             [\r
194                 "ada2f692.ece248"\r
195             ]\r
196         ]\r
197     },\r
198     {\r
199         "id": "bd278e04.68d68",\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": 1474.102882385254,\r
205         "y": 336.8559989929199,\r
206         "z": "4fee9402.f5c9bc",\r
207         "wires": []\r
208     },\r
209     {\r
210         "id": "4efb1646.df29b8",\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": 1278.4042778015137,\r
218         "y": 350.2368840877898,\r
219         "z": "4fee9402.f5c9bc",\r
220         "wires": [\r
221             [\r
222                 "61f42e0f.accb4",\r
223                 "bd278e04.68d68",\r
224                 "49047f5d.3dde6"\r
225             ]\r
226         ]\r
227     },\r
228     {\r
229         "id": "1c241e5.3b7e6e2",\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": 1134.047233581543,\r
236         "y": 350.3003720943816,\r
237         "z": "4fee9402.f5c9bc",\r
238         "wires": [\r
239             [\r
240                 "4efb1646.df29b8"\r
241             ]\r
242         ]\r
243     },\r
244     {\r
245         "id": "8e428583.69a8e8",\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": 898.047215461731,\r
252         "y": 277.3003845214844,\r
253         "z": "4fee9402.f5c9bc",\r
254         "wires": [\r
255             [\r
256                 "1c241e5.3b7e6e2",\r
257                 "45b16795.1e16b8",\r
258                 "5c72c52f.a612dc"\r
259             ]\r
260         ]\r
261     },\r
262     {\r
263         "id": "45b16795.1e16b8",\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": 1139.5312519073486,\r
270         "y": 249.0781135559082,\r
271         "z": "4fee9402.f5c9bc",\r
272         "wires": [\r
273             [\r
274                 "b89d0343.04bd1"\r
275             ]\r
276         ]\r
277     },\r
278     {\r
279         "id": "5c72c52f.a612dc",\r
280         "type": "other",\r
281         "name": "Null",\r
282         "xml": "<outcome value=''>\n",\r
283         "comments": "",\r
284         "outputs": 1,\r
285         "x": 1141.5624408721924,\r
286         "y": 286.10942459106445,\r
287         "z": "4fee9402.f5c9bc",\r
288         "wires": [\r
289             [\r
290                 "b89d0343.04bd1"\r
291             ]\r
292         ]\r
293     },\r
294     {\r
295         "id": "b89d0343.04bd1",\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": 1299.3399562835693,\r
301         "y": 266.9983730316162,\r
302         "z": "4fee9402.f5c9bc",\r
303         "wires": []\r
304     },\r
305     {\r
306         "id": "ada2f692.ece248",\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": 2110.53133392334,\r
313         "y": 374.0781369502656,\r
314         "z": "4fee9402.f5c9bc",\r
315         "wires": [\r
316             [\r
317                 "8cb3d733.8b9cc8"\r
318             ]\r
319         ]\r
320     },\r
321     {\r
322         "id": "8cb3d733.8b9cc8",\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": 1872.8745422363281,\r
329         "y": 476.16428661346436,\r
330         "z": "4fee9402.f5c9bc",\r
331         "wires": [\r
332             [\r
333                 "e9572390.a2ce1",\r
334                 "7be5423c.87235c",\r
335                 "39502de7.a9fc62"\r
336             ]\r
337         ]\r
338     },\r
339     {\r
340         "id": "e9572390.a2ce1",\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": 2114.7612342834473,\r
346         "y": 446.50670051574707,\r
347         "z": "4fee9402.f5c9bc",\r
348         "wires": []\r
349     },\r
350     {\r
351         "id": "7be5423c.87235c",\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": 2118.207492828369,\r
357         "y": 491.1643395423889,\r
358         "z": "4fee9402.f5c9bc",\r
359         "wires": []\r
360     },\r
361     {\r
362         "id": "ce0facb9.acf8f",\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": 1695.0313034057617,\r
369         "y": 373.07812118530273,\r
370         "z": "4fee9402.f5c9bc",\r
371         "wires": [\r
372             [\r
373                 "d0cbbcf7.18e0c"\r
374             ]\r
375         ]\r
376     },\r
377     {\r
378         "id": "2948d13a.1b821e",\r
379         "type": "comment",\r
380         "name": "Get devices",\r
381         "info": "",\r
382         "comments": "",\r
383         "x": 848.0315361022949,\r
384         "y": 494.0781602859497,\r
385         "z": "4fee9402.f5c9bc",\r
386         "wires": []\r
387     },\r
388     {\r
389         "id": "49047f5d.3dde6",\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": 1500.53125,\r
395         "y": 301.07812213897705,\r
396         "z": "4fee9402.f5c9bc",\r
397         "wires": []\r
398     },\r
399     {\r
400         "id": "832591c7.4ef99",\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": 405.52733993530273,\r
408         "y": 405.0742197036743,\r
409         "z": "4fee9402.f5c9bc",\r
410         "wires": [\r
411             [\r
412                 "ff28f3d.3169d1",\r
413                 "7df3c0c6.f5b88",\r
414                 "8e428583.69a8e8",\r
415                 "e69423a5.584ae",\r
416                 "ce0e4f49.1217b",\r
417                 "16f0a729.f1f5a9",\r
418                 "d2d93614.7c8ad8",\r
419                 "2604b323.ea5f4c",\r
420                 "9139c857.0718b8",\r
421                 "c9d5923c.c3e6a",\r
422                 "4a67f6d4.3597f8",\r
423                 "7c127312.19825c",\r
424                 "1954d3bb.e0ec6c"\r
425             ]\r
426         ]\r
427     },\r
428     {\r
429         "id": "39502de7.a9fc62",\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": 2109.5039443969727,\r
436         "y": 538.0039381980896,\r
437         "z": "4fee9402.f5c9bc",\r
438         "wires": [\r
439             []\r
440         ]\r
441     },\r
442     {\r
443         "id": "9139c857.0718b8",\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": 893.2539443969727,\r
450         "y": 444.75391960144043,\r
451         "z": "4fee9402.f5c9bc",\r
452         "wires": [\r
453             [\r
454                 "679a2fa0.7fa24",\r
455                 "db810e5a.69a4a",\r
456                 "b796d6f.b8abb28"\r
457             ]\r
458         ]\r
459     },\r
460     {\r
461         "id": "679a2fa0.7fa24",\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": 1125.2540283203125,\r
468         "y": 408.753942489624,\r
469         "z": "4fee9402.f5c9bc",\r
470         "wires": [\r
471             [\r
472                 "e1a99634.deb268"\r
473             ]\r
474         ]\r
475     },\r
476     {\r
477         "id": "db810e5a.69a4a",\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": 1127.7449111938477,\r
484         "y": 444.3279790878296,\r
485         "z": "4fee9402.f5c9bc",\r
486         "wires": [\r
487             [\r
488                 "363ab1e2.2b5cce"\r
489             ]\r
490         ]\r
491     },\r
492     {\r
493         "id": "b796d6f.b8abb28",\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": 1123.0779190063477,\r
500         "y": 480.661337852478,\r
501         "z": "4fee9402.f5c9bc",\r
502         "wires": [\r
503             [\r
504                 "cdf3743a.490b68"\r
505             ]\r
506         ]\r
507     },\r
508     {\r
509         "id": "cdf3743a.490b68",\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": 1276.8504104614258,\r
515         "y": 478.1004247665405,\r
516         "z": "4fee9402.f5c9bc",\r
517         "wires": []\r
518     },\r
519     {\r
520         "id": "363ab1e2.2b5cce",\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": 1273.316307067871,\r
526         "y": 442.6136665344238,\r
527         "z": "4fee9402.f5c9bc",\r
528         "wires": []\r
529     },\r
530     {\r
531         "id": "e1a99634.deb268",\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": 1280.7541427612305,\r
537         "y": 407.75383472442627,\r
538         "z": "4fee9402.f5c9bc",\r
539         "wires": []\r
540     },\r
541     {\r
542         "id": "c9d5923c.c3e6a",\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": 907.7640762329102,\r
549         "y": 532.4309215545654,\r
550         "z": "4fee9402.f5c9bc",\r
551         "wires": [\r
552             [\r
553                 "80be9352.04481",\r
554                 "fdeb2c27.d10b4"\r
555             ]\r
556         ]\r
557     },\r
558     {\r
559         "id": "80be9352.04481",\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": 1142.76420211792,\r
566         "y": 518.4309101104736,\r
567         "z": "4fee9402.f5c9bc",\r
568         "wires": [\r
569             [\r
570                 "303f14f3.7822fc"\r
571             ]\r
572         ]\r
573     },\r
574     {\r
575         "id": "303f14f3.7822fc",\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": 1284.7642097473145,\r
581         "y": 517.430911064148,\r
582         "z": "4fee9402.f5c9bc",\r
583         "wires": []\r
584     },\r
585     {\r
586         "id": "de3334dd.87a328",\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": 1290.7642097473145,\r
592         "y": 554.823899269104,\r
593         "z": "4fee9402.f5c9bc",\r
594         "wires": []\r
595     },\r
596     {\r
597         "id": "fdeb2c27.d10b4",\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": 1142.01420211792,\r
604         "y": 554.0738172531128,\r
605         "z": "4fee9402.f5c9bc",\r
606         "wires": [\r
607             [\r
608                 "de3334dd.87a328"\r
609             ]\r
610         ]\r
611     },\r
612     {\r
613         "id": "4a67f6d4.3597f8",\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": 884.7638244628906,\r
620         "y": 585.7639970779419,\r
621         "z": "4fee9402.f5c9bc",\r
622         "wires": [\r
623             []\r
624         ]\r
625     },\r
626     {\r
627         "id": "2604b323.ea5f4c",\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": 849.8993644714355,\r
633         "y": 1030.5663061141968,\r
634         "z": "4fee9402.f5c9bc",\r
635         "wires": []\r
636     },\r
637     {\r
638         "id": "4c7ada40.e6d834",\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": 969.2184829711914,\r
645         "y": 990.3698863983154,\r
646         "z": "4fee9402.f5c9bc",\r
647         "wires": [\r
648             []\r
649         ]\r
650     },\r
651     {\r
652         "id": "ce0e4f49.1217b",\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": 903.59619140625,\r
658         "y": 864.7630681991577,\r
659         "z": "4fee9402.f5c9bc",\r
660         "wires": []\r
661     },\r
662     {\r
663         "id": "16f0a729.f1f5a9",\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": 937.8993911743164,\r
669         "y": 908.5661773681641,\r
670         "z": "4fee9402.f5c9bc",\r
671         "wires": []\r
672     },\r
673     {\r
674         "id": "d2d93614.7c8ad8",\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": 904.8993911743164,\r
680         "y": 944.5661773681641,\r
681         "z": "4fee9402.f5c9bc",\r
682         "wires": []\r
683     },\r
684     {\r
685         "id": "1954d3bb.e0ec6c",\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": 952.03125,\r
692         "y": 770.078145980835,\r
693         "z": "4fee9402.f5c9bc",\r
694         "wires": [\r
695             [\r
696                 "5763133a.85c38c",\r
697                 "e2a71559.3f3e88"\r
698             ]\r
699         ]\r
700     },\r
701     {\r
702         "id": "5763133a.85c38c",\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": 1198.031234741211,\r
709         "y": 808.0782346725464,\r
710         "z": "4fee9402.f5c9bc",\r
711         "wires": [\r
712             [\r
713                 "c730322d.384d7"\r
714             ]\r
715         ]\r
716     },\r
717     {\r
718         "id": "e2a71559.3f3e88",\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": 1194.0313148498535,\r
725         "y": 762.0781497955322,\r
726         "z": "4fee9402.f5c9bc",\r
727         "wires": [\r
728             [\r
729                 "33e8f10d.25726e"\r
730             ]\r
731         ]\r
732     },\r
733     {\r
734         "id": "33e8f10d.25726e",\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": 1335.031406402588,\r
740         "y": 762.0781507492065,\r
741         "z": "4fee9402.f5c9bc",\r
742         "wires": []\r
743     },\r
744     {\r
745         "id": "c730322d.384d7",\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": 1342.0311012268066,\r
753         "y": 806.0781536102295,\r
754         "z": "4fee9402.f5c9bc",\r
755         "wires": [\r
756             []\r
757         ]\r
758     },\r
759     {\r
760         "id": "7c127312.19825c",\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": 947.0314178466797,\r
767         "y": 664.0781440734863,\r
768         "z": "4fee9402.f5c9bc",\r
769         "wires": [\r
770             [\r
771                 "e0828ab7.60a978",\r
772                 "3d0c4f43.fce4d"\r
773             ]\r
774         ]\r
775     },\r
776     {\r
777         "id": "e0828ab7.60a978",\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": 1235.0315132141113,\r
784         "y": 696.0781135559082,\r
785         "z": "4fee9402.f5c9bc",\r
786         "wires": [\r
787             [\r
788                 "aca8b9c6.d1fb58"\r
789             ]\r
790         ]\r
791     },\r
792     {\r
793         "id": "3d0c4f43.fce4d",\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": 1239.031593322754,\r
800         "y": 632.0781917572021,\r
801         "z": "4fee9402.f5c9bc",\r
802         "wires": [\r
803             [\r
804                 "729b835e.b7b53c"\r
805             ]\r
806         ]\r
807     },\r
808     {\r
809         "id": "729b835e.b7b53c",\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": 1384.0317649841309,\r
815         "y": 634.0781917572021,\r
816         "z": "4fee9402.f5c9bc",\r
817         "wires": []\r
818     },\r
819     {\r
820         "id": "aca8b9c6.d1fb58",\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": 1391.0313568115234,\r
828         "y": 694.0781135559082,\r
829         "z": "4fee9402.f5c9bc",\r
830         "wires": [\r
831             []\r
832         ]\r
833     }\r
834 ]