fix topology discovery bug for ccvpn
[sdnc/oam.git] / platform-logic / datachange / src / main / json / DataChange_esr-thirdparty-sdnc-discovery.json
1 [\r
2     {\r
3         "id": "d475c812.9568", \r
4         "type": "other", \r
5         "name": "update", \r
6         "xml": "<outcome value='Update'>\n", \r
7         "comments": "", \r
8         "outputs": 1, \r
9         "x": 917.5001220703125, \r
10         "y": 308.66668701171875, \r
11         "z": "17972140.ae79b7", \r
12         "wires": [\r
13             [\r
14                 "862fb7d.5b86948"\r
15             ]\r
16         ]\r
17     }, \r
18     {\r
19         "id": "db86e1b3.d2fca", \r
20         "type": "other", \r
21         "name": "delete", \r
22         "xml": "<outcome value='delete'>\n", \r
23         "comments": "", \r
24         "outputs": 1, \r
25         "x": 953.7222366333008, \r
26         "y": 510.33348274230957, \r
27         "z": "17972140.ae79b7", \r
28         "wires": [\r
29             [\r
30                 "fe617bb2.76a2f"\r
31             ]\r
32         ]\r
33     }, \r
34     {\r
35         "id": "fe617bb2.76a2f", \r
36         "type": "block", \r
37         "name": "block : atomic", \r
38         "xml": "<block atomic=\"true\">", \r
39         "atomic": "true", \r
40         "outputs": 1, \r
41         "x": 1104.1668815612793, \r
42         "y": 505.333535194397, \r
43         "z": "17972140.ae79b7", \r
44         "wires": [\r
45             [ ]\r
46         ]\r
47     }, \r
48     {\r
49         "id": "4e140ca7.1e24fc", \r
50         "type": "comment", \r
51         "name": "TODO: Delete topology from AAI", \r
52         "info": "", \r
53         "comments": "", \r
54         "x": 1061.8335494995117, \r
55         "y": 461.00016021728516, \r
56         "z": "17972140.ae79b7", \r
57         "wires": [ ]\r
58     }, \r
59     {\r
60         "id": "e5982995.970cf8", \r
61         "type": "switchNode", \r
62         "name": "switch aai-event-trigger", \r
63         "xml": "<switch test=\"`$data-change-notification-input.aai-event-trigger`\">\n", \r
64         "comments": "", \r
65         "outputs": 1, \r
66         "x": 733.0556640625, \r
67         "y": 366.22222900390625, \r
68         "z": "17972140.ae79b7", \r
69         "wires": [\r
70             [\r
71                 "d475c812.9568", \r
72                 "db86e1b3.d2fca"\r
73             ]\r
74         ]\r
75     }, \r
76     {\r
77         "id": "8a1c1f7b.785ba8", \r
78         "type": "block", \r
79         "name": "block : atomic", \r
80         "xml": "<block atomic=\"true\">", \r
81         "atomic": "true", \r
82         "outputs": 1, \r
83         "x": 1647.8338623046875, \r
84         "y": 283.1112365722656, \r
85         "z": "17972140.ae79b7", \r
86         "wires": [\r
87             [\r
88                 "1484b190.f94a66", \r
89                 "c753c3aa.4b9268", \r
90                 "10dba5fc.1f2eea"\r
91             ]\r
92         ]\r
93     }, \r
94     {\r
95         "id": "d24d0442.140af", \r
96         "type": "execute", \r
97         "name": "execute RestApiCallNode Get token", \r
98         "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
99         "comments": "", \r
100         "outputs": 1, \r
101         "x": 1904.4933700561523, \r
102         "y": 145.0304880142212, \r
103         "z": "17972140.ae79b7", \r
104         "wires": [\r
105             [\r
106                 "90c83fb.7fc86c", \r
107                 "22fbfc42.b90c4c"\r
108             ]\r
109         ]\r
110     }, \r
111     {\r
112         "id": "90c83fb.7fc86c", \r
113         "type": "success", \r
114         "name": "success", \r
115         "xml": "<outcome value='success'>\n", \r
116         "comments": "", \r
117         "outputs": 1, \r
118         "x": 2139.4933700561523, \r
119         "y": 123.03048801422119, \r
120         "z": "17972140.ae79b7", \r
121         "wires": [\r
122             [\r
123                 "1ae1babb.3695fd"\r
124             ]\r
125         ]\r
126     }, \r
127     {\r
128         "id": "22fbfc42.b90c4c", \r
129         "type": "failure", \r
130         "name": "failure", \r
131         "xml": "<outcome value='failure'>\n", \r
132         "comments": "", \r
133         "outputs": 1, \r
134         "x": 2131.7433700561523, \r
135         "y": 176.67337131500244, \r
136         "z": "17972140.ae79b7", \r
137         "wires": [\r
138             [\r
139                 "852e8da1.a42b5"\r
140             ]\r
141         ]\r
142     }, \r
143     {\r
144         "id": "1ae1babb.3695fd", \r
145         "type": "set", \r
146         "name": "set token-id", \r
147         "xml": "<set>\n<parameter name='prop.sdncRestApi.token_id' value='`$token-result.data.token_id`' />\n", \r
148         "comments": "", \r
149         "x": 2293.4933700561523, \r
150         "y": 124.03048801422119, \r
151         "z": "17972140.ae79b7", \r
152         "wires": [ ]\r
153     }, \r
154     {\r
155         "id": "1484b190.f94a66", \r
156         "type": "execute", \r
157         "name": "execute RestApiCallNode Get Topology", \r
158         "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"restapiUrl\" value=\"`$prop.sdncRestApi.thirdpartySdnc.url + '/restconf/data/ietf-network:networks'`\" />\n<parameter name=\"restapiUser\" value=\"`$prop.sdncRestApi.thirdpartySdnc.user`\" />\n<parameter name=\"restapiPassword\" value=\"`$prop.sdncRestApi.thirdpartySdnc.password`\" />\n<parameter name=\"format\" value=\"json\"/>\n<parameter name=\"httpMethod\" value=\"get\"/>\n<parameter name=\"responsePrefix\" value=\"topology\"/>\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
159         "comments": "", \r
160         "outputs": 1, \r
161         "x": 1907.8267974853516, \r
162         "y": 238.73422574996948, \r
163         "z": "17972140.ae79b7", \r
164         "wires": [\r
165             [\r
166                 "dbe293a7.043a2", \r
167                 "a63584b7.766e"\r
168             ]\r
169         ]\r
170     }, \r
171     {\r
172         "id": "dbe293a7.043a2", \r
173         "type": "success", \r
174         "name": "success", \r
175         "xml": "<outcome value='success'>\n", \r
176         "comments": "", \r
177         "outputs": 1, \r
178         "x": 2166.3821296691895, \r
179         "y": 216.73420763015747, \r
180         "z": "17972140.ae79b7", \r
181         "wires": [\r
182             [\r
183                 "7fa6d3d4.bce844"\r
184             ]\r
185         ]\r
186     }, \r
187     {\r
188         "id": "7fa6d3d4.bce844", \r
189         "type": "block", \r
190         "name": "block : atomic", \r
191         "xml": "<block atomic=\"true\">", \r
192         "atomic": "true", \r
193         "comments": "", \r
194         "outputs": 1, \r
195         "x": 2341.937660217285, \r
196         "y": 214.40092992782593, \r
197         "z": "17972140.ae79b7", \r
198         "wires": [\r
199             [ ]\r
200         ]\r
201     }, \r
202     {\r
203         "id": "d0d18db8.ed66f8", \r
204         "type": "returnFailure", \r
205         "name": "return failure", \r
206         "xml": "<return status='failure'>\n<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
207         "comments": "", \r
208         "x": 2350.1599349975586, \r
209         "y": 288.6230435371399, \r
210         "z": "17972140.ae79b7", \r
211         "wires": [ ]\r
212     }, \r
213     {\r
214         "id": "a63584b7.766e", \r
215         "type": "failure", \r
216         "name": "failure", \r
217         "xml": "<outcome value='failure'>\n", \r
218         "comments": "", \r
219         "outputs": 1, \r
220         "x": 2171.826614379883, \r
221         "y": 287.8452730178833, \r
222         "z": "17972140.ae79b7", \r
223         "wires": [\r
224             [\r
225                 "d0d18db8.ed66f8"\r
226             ]\r
227         ]\r
228     }, \r
229     {\r
230         "id": "6ee6436a.1b0ed4", \r
231         "type": "dgstart", \r
232         "name": "DGSTART", \r
233         "outputs": 1, \r
234         "x": 63.5, \r
235         "y": 89, \r
236         "z": "17972140.ae79b7", \r
237         "wires": [\r
238             [\r
239                 "4d5494e5.395574"\r
240             ]\r
241         ]\r
242     }, \r
243     {\r
244         "id": "4d5494e5.395574", \r
245         "type": "service-logic", \r
246         "name": "DataChange ${project.version}", \r
247         "module": "DataChange", \r
248         "version": "${project.version}", \r
249         "comments": "", \r
250         "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='DataChange' version='${project.version}'>", \r
251         "outputs": 1, \r
252         "x": 187.61112594604492, \r
253         "y": 163.44445502758026, \r
254         "z": "17972140.ae79b7", \r
255         "wires": [\r
256             [\r
257                 "d235572.293ffa8"\r
258             ]\r
259         ]\r
260     }, \r
261     {\r
262         "id": "d235572.293ffa8", \r
263         "type": "method", \r
264         "name": "method esr-thirdparty-sdnc-discovery", \r
265         "xml": "<method rpc='esr-thirdparty-sdnc-discovery' mode='sync'>\n", \r
266         "comments": "", \r
267         "outputs": 1, \r
268         "x": 284.0556869506836, \r
269         "y": 274.22223603725433, \r
270         "z": "17972140.ae79b7", \r
271         "wires": [\r
272             [\r
273                 "2c06decb.37ee5a"\r
274             ]\r
275         ]\r
276     }, \r
277     {\r
278         "id": "2c06decb.37ee5a", \r
279         "type": "block", \r
280         "name": "block : atomic", \r
281         "xml": "<block atomic=\"true\">\n", \r
282         "atomic": "false", \r
283         "comments": "", \r
284         "outputs": 1, \r
285         "x": 554.2779541015625, \r
286         "y": 274.1112060546875, \r
287         "z": "17972140.ae79b7", \r
288         "wires": [\r
289             [\r
290                 "d189d7d4.74d5b"\r
291             ]\r
292         ]\r
293     }, \r
294     {\r
295         "id": "c753c3aa.4b9268", \r
296         "type": "for", \r
297         "name": "for each Network", \r
298         "xml": "<for index='nidx' start='0' end='`$topology.networks.network_length`' >\n", \r
299         "comments": "", \r
300         "outputs": 1, \r
301         "x": 1839.9815673828125, \r
302         "y": 366.2221646308899, \r
303         "z": "17972140.ae79b7", \r
304         "wires": [\r
305             [\r
306                 "fad4c2c5.6c19f"\r
307             ]\r
308         ]\r
309     }, \r
310     {\r
311         "id": "fad4c2c5.6c19f", \r
312         "type": "block", \r
313         "name": "block", \r
314         "xml": "<block>\n", \r
315         "atomic": "false", \r
316         "comments": "", \r
317         "outputs": 1, \r
318         "x": 2029.9815292358398, \r
319         "y": 373.9999575614929, \r
320         "z": "17972140.ae79b7", \r
321         "wires": [\r
322             [\r
323                 "5e7867ab.174a4", \r
324                 "49f09644.3fa498"\r
325             ]\r
326         ]\r
327     }, \r
328     {\r
329         "id": "5e7867ab.174a4", \r
330         "type": "call", \r
331         "name": "call update-network-to-aai", \r
332         "xml": "<call module='DataChange' rpc='update-network-to-aai' mode='sync' >\n", \r
333         "comments": "", \r
334         "outputs": 1, \r
335         "x": 2283.314950942993, \r
336         "y": 437.33332777023315, \r
337         "z": "17972140.ae79b7", \r
338         "wires": [\r
339             [ ]\r
340         ]\r
341     }, \r
342     {\r
343         "id": "49f09644.3fa498", \r
344         "type": "set", \r
345         "name": "set network", \r
346         "xml": "<set>\n<parameter name='network.' value='`$topology.networks.network[$nidx].`' />\n", \r
347         "comments": "", \r
348         "x": 2235.5370712280273, \r
349         "y": 355.11107206344604, \r
350         "z": "17972140.ae79b7", \r
351         "wires": [ ]\r
352     }, \r
353     {\r
354         "id": "852e8da1.a42b5", \r
355         "type": "block", \r
356         "name": "block", \r
357         "xml": "<block>\n", \r
358         "atomic": "false", \r
359         "comments": "", \r
360         "outputs": 1, \r
361         "x": 2293.314765930176, \r
362         "y": 171.77775049209595, \r
363         "z": "17972140.ae79b7", \r
364         "wires": [\r
365             [ ]\r
366         ]\r
367     }, \r
368     {\r
369         "id": "11d97c9a.87eb33", \r
370         "type": "comment", \r
371         "name": "Do Nothing", \r
372         "info": "", \r
373         "comments": "", \r
374         "x": 1991.8703320821123, \r
375         "y": 194.6666370895174, \r
376         "z": "17972140.ae79b7", \r
377         "wires": [ ]\r
378     }, \r
379     {\r
380         "id": "5d5e7563.297f54", \r
381         "type": "switchNode", \r
382         "name": "switch type", \r
383         "xml": "<switch test=\"`$prop.sdncRestApi.type`\">\n", \r
384         "comments": "", \r
385         "outputs": 1, \r
386         "x": 1192.5002708435059, \r
387         "y": 311.000018119812, \r
388         "z": "17972140.ae79b7", \r
389         "wires": [\r
390             [\r
391                 "dd19d5ef.82e67", \r
392                 "910a4106.a8c08"\r
393             ]\r
394         ]\r
395     }, \r
396     {\r
397         "id": "862fb7d.5b86948", \r
398         "type": "block", \r
399         "name": "block", \r
400         "xml": "<block>\n", \r
401         "atomic": "false", \r
402         "comments": "", \r
403         "outputs": 1, \r
404         "x": 1047.5001068115234, \r
405         "y": 309.0000066757202, \r
406         "z": "17972140.ae79b7", \r
407         "wires": [\r
408             [\r
409                 "5d5e7563.297f54"\r
410             ]\r
411         ]\r
412     }, \r
413     {\r
414         "id": "dd19d5ef.82e67", \r
415         "type": "other", \r
416         "name": "SOTN", \r
417         "xml": "<outcome value='SOTN'>\n", \r
418         "comments": "", \r
419         "outputs": 1, \r
420         "x": 1346.5000534057617, \r
421         "y": 266.9999885559082, \r
422         "z": "17972140.ae79b7", \r
423         "wires": [\r
424             [\r
425                 "8a1c1f7b.785ba8"\r
426             ]\r
427         ]\r
428     }, \r
429     {\r
430         "id": "910a4106.a8c08", \r
431         "type": "other", \r
432         "name": "other", \r
433         "xml": "<outcome value='Other'>\n", \r
434         "comments": "", \r
435         "outputs": 1, \r
436         "x": 1343.5000534057617, \r
437         "y": 390.99999618530273, \r
438         "z": "17972140.ae79b7", \r
439         "wires": [\r
440             [\r
441                 "1d17a4fa.d8a8b3"\r
442             ]\r
443         ]\r
444     }, \r
445     {\r
446         "id": "1d17a4fa.d8a8b3", \r
447         "type": "returnFailure", \r
448         "name": "return failure", \r
449         "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=\"`'Unsupported type = ' + $prop.sdncRestApi.type`\" />\n\n", \r
450         "comments": "", \r
451         "x": 1628.2727432250977, \r
452         "y": 371.43916034698486, \r
453         "z": "17972140.ae79b7", \r
454         "wires": [ ]\r
455     }, \r
456     {\r
457         "id": "10dba5fc.1f2eea", \r
458         "type": "execute", \r
459         "name": "execute Properties", \r
460         "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
461         "comments": "", \r
462         "outputs": 1, \r
463         "x": 1846.5312576293945, \r
464         "y": 90.03123533725739, \r
465         "z": "17972140.ae79b7", \r
466         "wires": [\r
467             [ ]\r
468         ]\r
469     }, \r
470     {\r
471         "id": "d189d7d4.74d5b", \r
472         "type": "switchNode", \r
473         "name": "switch", \r
474         "xml": "<switch test=\"`$prop.sdncRestApi.vendor == 'ZTE'`\">\n", \r
475         "comments": "", \r
476         "outputs": 1, \r
477         "x": 319, \r
478         "y": 367, \r
479         "z": "17972140.ae79b7", \r
480         "wires": [\r
481             [\r
482                 "f26cd837.1040d", \r
483                 "15dc9b27.b3cb25"\r
484             ]\r
485         ]\r
486     }, \r
487     {\r
488         "id": "f26cd837.1040d", \r
489         "type": "outcomeFalse", \r
490         "name": "false", \r
491         "xml": "<outcome value='false'>\n", \r
492         "comments": "", \r
493         "outputs": 1, \r
494         "x": 506, \r
495         "y": 367, \r
496         "z": "17972140.ae79b7", \r
497         "wires": [\r
498             [\r
499                 "e5982995.970cf8"\r
500             ]\r
501         ]\r
502     }, \r
503     {\r
504         "id": "15dc9b27.b3cb25", \r
505         "type": "outcomeTrue", \r
506         "name": "true", \r
507         "xml": "<outcome value='true'>\n", \r
508         "comments": "", \r
509         "outputs": 1, \r
510         "x": 507, \r
511         "y": 492, \r
512         "z": "17972140.ae79b7", \r
513         "wires": [\r
514             [\r
515                 "ffd3dc3f.377368"\r
516             ]\r
517         ]\r
518     }, \r
519     {\r
520         "id": "ffd3dc3f.377368", \r
521         "type": "call", \r
522         "name": "call esr-thirdparty-sdnc-of-zte", \r
523         "xml": "<call module='DataChange' rpc='esr-thirdparty-sdnc-of-zte' mode='sync' >\n", \r
524         "comments": "", \r
525         "outputs": 1, \r
526         "x": 736, \r
527         "y": 492, \r
528         "z": "17972140.ae79b7", \r
529         "wires": [\r
530             [ ]\r
531         ]\r
532     }\r
533 ]