removed vnf-id validation check in DG
[sdnc/oam.git] / platform-logic / datachange / src / main / json / DataChange_esr-thirdparty-sdnc-discovery.json
1 [\r
2   {\r
3     "id": "1d39536e.bcea8d",\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": 630.0000991821289,\r
10     "y": 392.6666978597641,\r
11     "z": "5f9799f8.016aa8",\r
12     "wires": [\r
13       [\r
14         "eb33b12.26d255"\r
15       ]\r
16     ]\r
17   },\r
18   {\r
19     "id": "e7963432.3c05f8",\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": 666.2222137451172,\r
26     "y": 594.3334935903549,\r
27     "z": "5f9799f8.016aa8",\r
28     "wires": [\r
29       [\r
30         "bdac689.e471598"\r
31       ]\r
32     ]\r
33   },\r
34   {\r
35     "id": "bdac689.e471598",\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": 816.6668586730957,\r
42     "y": 589.3335460424423,\r
43     "z": "5f9799f8.016aa8",\r
44     "wires": [\r
45       []\r
46     ]\r
47   },\r
48   {\r
49     "id": "27946419.4db7ac",\r
50     "type": "comment",\r
51     "name": "TODO: Delete topology from AAI",\r
52     "info": "",\r
53     "comments": "",\r
54     "x": 774.3335266113281,\r
55     "y": 545.0001710653305,\r
56     "z": "5f9799f8.016aa8",\r
57     "wires": []\r
58   },\r
59   {\r
60     "id": "1b12380b.1bb078",\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": 422.5556640625,\r
67     "y": 461.2222236394882,\r
68     "z": "5f9799f8.016aa8",\r
69     "wires": [\r
70       [\r
71         "1d39536e.bcea8d",\r
72         "e7963432.3c05f8"\r
73       ]\r
74     ]\r
75   },\r
76   {\r
77     "id": "8b3f9b57.fb7ca8",\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": 1224.333854675293,\r
84     "y": 386.11125123500824,\r
85     "z": "5f9799f8.016aa8",\r
86     "wires": [\r
87       [\r
88         "6bd0a191.4d206",\r
89         "1e8929fa.00dd96",\r
90         "f740e66d.fb9468"\r
91       ]\r
92     ]\r
93   },\r
94   {\r
95     "id": "d4ab9cef.99595",\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": 1480.9933624267578,\r
102     "y": 248.0305026769638,\r
103     "z": "5f9799f8.016aa8",\r
104     "wires": [\r
105       [\r
106         "9a5236ed.1ea128",\r
107         "5a03214d.f8c65"\r
108       ]\r
109     ]\r
110   },\r
111   {\r
112     "id": "9a5236ed.1ea128",\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": 1715.9933624267578,\r
119     "y": 226.0305026769638,\r
120     "z": "5f9799f8.016aa8",\r
121     "wires": [\r
122       [\r
123         "8343226c.c2c78"\r
124       ]\r
125     ]\r
126   },\r
127   {\r
128     "id": "5a03214d.f8c65",\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": 1708.2433624267578,\r
135     "y": 279.67338597774506,\r
136     "z": "5f9799f8.016aa8",\r
137     "wires": [\r
138       [\r
139         "194b3286.c3d03d"\r
140       ]\r
141     ]\r
142   },\r
143   {\r
144     "id": "8343226c.c2c78",\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": 1869.9933624267578,\r
150     "y": 227.0305026769638,\r
151     "z": "5f9799f8.016aa8",\r
152     "wires": []\r
153   },\r
154   {\r
155     "id": "6bd0a191.4d206",\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": 1484.326789855957,\r
162     "y": 341.7342404127121,\r
163     "z": "5f9799f8.016aa8",\r
164     "wires": [\r
165       [\r
166         "7690c31d.5032fc",\r
167         "3ee8b658.f04c7a"\r
168       ]\r
169     ]\r
170   },\r
171   {\r
172     "id": "7690c31d.5032fc",\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": 1742.882122039795,\r
179     "y": 319.7342222929001,\r
180     "z": "5f9799f8.016aa8",\r
181     "wires": [\r
182       [\r
183         "5faa0ea5.47b54"\r
184       ]\r
185     ]\r
186   },\r
187   {\r
188     "id": "5faa0ea5.47b54",\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": 1918.4376525878906,\r
196     "y": 317.40094459056854,\r
197     "z": "5f9799f8.016aa8",\r
198     "wires": [\r
199       []\r
200     ]\r
201   },\r
202   {\r
203     "id": "30f38062.10fc2",\r
204     "type": "returnFailure",\r
205     "name": "return failure",\r
206     "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
207     "comments": "",\r
208     "x": 1926.659927368164,\r
209     "y": 391.6230581998825,\r
210     "z": "5f9799f8.016aa8",\r
211     "wires": []\r
212   },\r
213   {\r
214     "id": "3ee8b658.f04c7a",\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": 1748.3266067504883,\r
221     "y": 390.8452876806259,\r
222     "z": "5f9799f8.016aa8",\r
223     "wires": [\r
224       [\r
225         "30f38062.10fc2"\r
226       ]\r
227     ]\r
228   },\r
229   {\r
230     "id": "d6f1376d.103958",\r
231     "type": "dgstart",\r
232     "name": "DGSTART",\r
233     "outputs": 1,\r
234     "x": 77,\r
235     "y": 168.00000381469727,\r
236     "z": "5f9799f8.016aa8",\r
237     "wires": [\r
238       [\r
239         "b042ac6b.0b2f5"\r
240       ]\r
241     ]\r
242   },\r
243   {\r
244     "id": "b042ac6b.0b2f5",\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": 201.11112594604492,\r
253     "y": 242.44445884227753,\r
254     "z": "5f9799f8.016aa8",\r
255     "wires": [\r
256       [\r
257         "fa0cd6cd.4d3678"\r
258       ]\r
259     ]\r
260   },\r
261   {\r
262     "id": "fa0cd6cd.4d3678",\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": 297.5556869506836,\r
269     "y": 353.2222398519516,\r
270     "z": "5f9799f8.016aa8",\r
271     "wires": [\r
272       [\r
273         "17dbe4b2.90a36b"\r
274       ]\r
275     ]\r
276   },\r
277   {\r
278     "id": "17dbe4b2.90a36b",\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": 205.77791595458984,\r
286     "y": 462.11121785640717,\r
287     "z": "5f9799f8.016aa8",\r
288     "wires": [\r
289       [\r
290         "1b12380b.1bb078"\r
291       ]\r
292     ]\r
293   },\r
294   {\r
295     "id": "1e8929fa.00dd96",\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": 1416.481559753418,\r
302     "y": 469.2221792936325,\r
303     "z": "5f9799f8.016aa8",\r
304     "wires": [\r
305       [\r
306         "7ac7e4f1.ee6b4c"\r
307       ]\r
308     ]\r
309   },\r
310   {\r
311     "id": "7ac7e4f1.ee6b4c",\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": 1606.4815216064453,\r
319     "y": 476.99997222423553,\r
320     "z": "5f9799f8.016aa8",\r
321     "wires": [\r
322       [\r
323         "1bdd6882.262a87",\r
324         "73f341e0.4fb9a"\r
325       ]\r
326     ]\r
327   },\r
328   {\r
329     "id": "1bdd6882.262a87",\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": 1859.8149433135986,\r
336     "y": 540.3333424329758,\r
337     "z": "5f9799f8.016aa8",\r
338     "wires": [\r
339       []\r
340     ]\r
341   },\r
342   {\r
343     "id": "73f341e0.4fb9a",\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": 1812.0370635986328,\r
349     "y": 458.11108672618866,\r
350     "z": "5f9799f8.016aa8",\r
351     "wires": []\r
352   },\r
353   {\r
354     "id": "194b3286.c3d03d",\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": 1869.8147583007812,\r
362     "y": 274.77776515483856,\r
363     "z": "5f9799f8.016aa8",\r
364     "wires": [\r
365       []\r
366     ]\r
367   },\r
368   {\r
369     "id": "f5a2b8a2.ec17c8",\r
370     "type": "comment",\r
371     "name": "Do Nothing",\r
372     "info": "",\r
373     "comments": "",\r
374     "x": 2005.3703320821123,\r
375     "y": 273.66664090421466,\r
376     "z": "5f9799f8.016aa8",\r
377     "wires": []\r
378   },\r
379   {\r
380     "id": "86797eba.6e658",\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": 905.0002479553223,\r
387     "y": 395.00002896785736,\r
388     "z": "5f9799f8.016aa8",\r
389     "wires": [\r
390       [\r
391         "5d555655.1a63b8",\r
392         "698c0c25.f99474"\r
393       ]\r
394     ]\r
395   },\r
396   {\r
397     "id": "eb33b12.26d255",\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": 760.0000839233398,\r
405     "y": 393.00001752376556,\r
406     "z": "5f9799f8.016aa8",\r
407     "wires": [\r
408       [\r
409         "86797eba.6e658"\r
410       ]\r
411     ]\r
412   },\r
413   {\r
414     "id": "5d555655.1a63b8",\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": 1059.0000305175781,\r
421     "y": 350.99999940395355,\r
422     "z": "5f9799f8.016aa8",\r
423     "wires": [\r
424       [\r
425         "8b3f9b57.fb7ca8"\r
426       ]\r
427     ]\r
428   },\r
429   {\r
430     "id": "698c0c25.f99474",\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": 1056.0000305175781,\r
437     "y": 475.0000070333481,\r
438     "z": "5f9799f8.016aa8",\r
439     "wires": [\r
440       [\r
441         "8899e728.ec90b8"\r
442       ]\r
443     ]\r
444   },\r
445   {\r
446     "id": "8899e728.ec90b8",\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": 1204.7727355957031,\r
452     "y": 474.4391750097275,\r
453     "z": "5f9799f8.016aa8",\r
454     "wires": []\r
455   },\r
456   {\r
457     "id": "f740e66d.fb9468",\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": 1423.03125,\r
464     "y": 193.03125,\r
465     "z": "5f9799f8.016aa8",\r
466     "wires": [\r
467       []\r
468     ]\r
469   }\r
470 ]\r