Merge "removed vnf-id validation check in DG"
[sdnc/oam.git] / platform-logic / datachange / src / main / json / DataChange_esr-thirdparty-sdnc-discovery.json
1 [
2   {
3     "id": "1473da35.b14246",
4     "type": "other",
5     "name": "update",
6     "xml": "<outcome value='Update'>\n",
7     "comments": "",
8     "outputs": 1,
9     "x": 630.0000991821289,
10     "y": 276.6667003631592,
11     "z": "8cb5d046.a5aaf",
12     "wires": [
13       [
14         "9e41086f.f40978"
15       ]
16     ]
17   },
18   {
19     "id": "63d9b444.fbeb4c",
20     "type": "other",
21     "name": "delete",
22     "xml": "<outcome value='delete'>\n",
23     "comments": "",
24     "outputs": 1,
25     "x": 666.2222137451172,
26     "y": 478.33349609375,
27     "z": "8cb5d046.a5aaf",
28     "wires": [
29       [
30         "cf4516fc.415338"
31       ]
32     ]
33   },
34   {
35     "id": "cf4516fc.415338",
36     "type": "block",
37     "name": "block : atomic",
38     "xml": "<block atomic=\"true\">",
39     "atomic": "true",
40     "outputs": 1,
41     "x": 816.6668586730957,
42     "y": 473.3335485458374,
43     "z": "8cb5d046.a5aaf",
44     "wires": [
45       []
46     ]
47   },
48   {
49     "id": "aa391e7d.06c04",
50     "type": "comment",
51     "name": "TODO: Delete topology from AAI",
52     "info": "",
53     "comments": "",
54     "x": 774.3335266113281,
55     "y": 429.0001735687256,
56     "z": "8cb5d046.a5aaf",
57     "wires": []
58   },
59   {
60     "id": "7e2d4ad0.53ea04",
61     "type": "switchNode",
62     "name": "switch aai-event-trigger",
63     "xml": "<switch test=\"`$data-change-notification-input.aai-event-trigger`\">\n",
64     "comments": "",
65     "outputs": 1,
66     "x": 422.5556640625,
67     "y": 345.2222261428833,
68     "z": "8cb5d046.a5aaf",
69     "wires": [
70       [
71         "1473da35.b14246",
72         "63d9b444.fbeb4c"
73       ]
74     ]
75   },
76   {
77     "id": "4718051e.d2c46c",
78     "type": "block",
79     "name": "block : atomic",
80     "xml": "<block atomic=\"true\">",
81     "atomic": "true",
82     "outputs": 1,
83     "x": 1224.333854675293,
84     "y": 270.1112537384033,
85     "z": "8cb5d046.a5aaf",
86     "wires": [
87       [
88         "d85bb5b1.82c4d8",
89         "e3be6aaa.e1c308",
90         "3b1c8725.0fcfb8"
91       ]
92     ]
93   },
94   {
95     "id": "e3be6aaa.e1c308",
96     "type": "execute",
97     "name": "execute RestApiCallNode Get token",
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\"/>",
99     "comments": "",
100     "outputs": 1,
101     "x": 1480.9933624267578,
102     "y": 132.0305051803589,
103     "z": "8cb5d046.a5aaf",
104     "wires": [
105       [
106         "6a112654.2ffd58",
107         "b242d748.545378"
108       ]
109     ]
110   },
111   {
112     "id": "6a112654.2ffd58",
113     "type": "success",
114     "name": "success",
115     "xml": "<outcome value='success'>\n",
116     "comments": "",
117     "outputs": 1,
118     "x": 1715.9933624267578,
119     "y": 110.03050518035889,
120     "z": "8cb5d046.a5aaf",
121     "wires": [
122       [
123         "e5b3fd51.2397c"
124       ]
125     ]
126   },
127   {
128     "id": "b242d748.545378",
129     "type": "failure",
130     "name": "failure",
131     "xml": "<outcome value='failure'>\n",
132     "comments": "",
133     "outputs": 1,
134     "x": 1708.2433624267578,
135     "y": 163.67338848114014,
136     "z": "8cb5d046.a5aaf",
137     "wires": [
138       [
139         "71cf21cf.2814e"
140       ]
141     ]
142   },
143   {
144     "id": "e5b3fd51.2397c",
145     "type": "set",
146     "name": "set token-id",
147     "xml": "<set>\n<parameter name='prop.sdncRestApi.token_id' value='`$token-result.data.token_id`' />\n",
148     "comments": "",
149     "x": 1875.9934921264648,
150     "y": 104.03051090240479,
151     "z": "8cb5d046.a5aaf",
152     "wires": []
153   },
154   {
155     "id": "d910de32.e62ae",
156     "type": "execute",
157     "name": "execute RestApiCallNode Get Topology",
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`\" />",
159     "comments": "",
160     "outputs": 1,
161     "x": 1929.3267669677734,
162     "y": 293.2342710494995,
163     "z": "8cb5d046.a5aaf",
164     "wires": [
165       [
166         "3dc2b196.085a9e",
167         "c53d2802.f6ecf8"
168       ]
169     ]
170   },
171   {
172     "id": "3dc2b196.085a9e",
173     "type": "success",
174     "name": "success",
175     "xml": "<outcome value='success'>\n",
176     "comments": "",
177     "outputs": 1,
178     "x": 2244.8823013305664,
179     "y": 322.2342777252197,
180     "z": "8cb5d046.a5aaf",
181     "wires": [
182       [
183         "94766aa2.652398"
184       ]
185     ]
186   },
187   {
188     "id": "94766aa2.652398",
189     "type": "block",
190     "name": "block : atomic",
191     "xml": "<block atomic=\"true\">",
192     "atomic": "true",
193     "comments": "",
194     "outputs": 1,
195     "x": 2428.437847137451,
196     "y": 316.90099835395813,
197     "z": "8cb5d046.a5aaf",
198     "wires": [
199       [
200         "c3e460ec.ed97f"
201       ]
202     ]
203   },
204   {
205     "id": "5ca06a0d.d6b0d4",
206     "type": "returnFailure",
207     "name": "return failure",
208     "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",
209     "comments": "",
210     "x": 2389.6601524353027,
211     "y": 225.12310695648193,
212     "z": "8cb5d046.a5aaf",
213     "wires": []
214   },
215   {
216     "id": "c53d2802.f6ecf8",
217     "type": "failure",
218     "name": "failure",
219     "xml": "<outcome value='failure'>\n",
220     "comments": "",
221     "outputs": 1,
222     "x": 2243.3268852233887,
223     "y": 226.34534358978271,
224     "z": "8cb5d046.a5aaf",
225     "wires": [
226       [
227         "5ca06a0d.d6b0d4"
228       ]
229     ]
230   },
231   {
232     "id": "3177a11f.85bf9e",
233     "type": "dgstart",
234     "name": "DGSTART",
235     "outputs": 1,
236     "x": 91,
237     "y": 62.50000333786011,
238     "z": "8cb5d046.a5aaf",
239     "wires": [
240       [
241         "774441cb.70134"
242       ]
243     ]
244   },
245   {
246     "id": "774441cb.70134",
247     "type": "service-logic",
248     "name": "DataChange ${project.version}",
249     "module": "DataChange",
250     "version": "${project.version}",
251     "comments": "",
252     "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}'>",
253     "outputs": 1,
254     "x": 201.11112594604492,
255     "y": 126.44446134567261,
256     "z": "8cb5d046.a5aaf",
257     "wires": [
258       [
259         "5969d7b2.611c88"
260       ]
261     ]
262   },
263   {
264     "id": "5969d7b2.611c88",
265     "type": "method",
266     "name": "method esr-thirdparty-sdnc-discovery",
267     "xml": "<method rpc='esr-thirdparty-sdnc-discovery' mode='sync'>\n",
268     "comments": "",
269     "outputs": 1,
270     "x": 297.5556869506836,
271     "y": 237.22224235534668,
272     "z": "8cb5d046.a5aaf",
273     "wires": [
274       [
275         "70441765.9b30e8"
276       ]
277     ]
278   },
279   {
280     "id": "70441765.9b30e8",
281     "type": "block",
282     "name": "block : atomic",
283     "xml": "<block atomic=\"true\">\n",
284     "atomic": "false",
285     "comments": "",
286     "outputs": 1,
287     "x": 205.77791595458984,
288     "y": 346.11122035980225,
289     "z": "8cb5d046.a5aaf",
290     "wires": [
291       [
292         "7e2d4ad0.53ea04"
293       ]
294     ]
295   },
296   {
297     "id": "c3e460ec.ed97f",
298     "type": "for",
299     "name": "for each Network",
300     "xml": "<for index='nidx' start='0' end='`$topology.networks.network_length`' >\n",
301     "comments": "",
302     "outputs": 1,
303     "x": 2202.4818229675293,
304     "y": 443.72221183776855,
305     "z": "8cb5d046.a5aaf",
306     "wires": [
307       [
308         "e5b6573.9876aa8"
309       ]
310     ]
311   },
312   {
313     "id": "e5b6573.9876aa8",
314     "type": "block",
315     "name": "block",
316     "xml": "<block>\n",
317     "atomic": "false",
318     "comments": "",
319     "outputs": 1,
320     "x": 2392.4817848205566,
321     "y": 451.5000047683716,
322     "z": "8cb5d046.a5aaf",
323     "wires": [
324       [
325         "80a22745.8dc678",
326         "de6cf312.86823"
327       ]
328     ]
329   },
330   {
331     "id": "80a22745.8dc678",
332     "type": "call",
333     "name": "call update-network-to-aai",
334     "xml": "<call module='DataChange' rpc='update-network-to-aai' mode='sync' >\n",
335     "comments": "",
336     "outputs": 1,
337     "x": 2645.81520652771,
338     "y": 514.8333749771118,
339     "z": "8cb5d046.a5aaf",
340     "wires": [
341       []
342     ]
343   },
344   {
345     "id": "de6cf312.86823",
346     "type": "set",
347     "name": "set network",
348     "xml": "<set>\n<parameter name='network.' value='`$topology.networks.network[$nidx].`' />\n",
349     "comments": "",
350     "x": 2598.037326812744,
351     "y": 432.6111192703247,
352     "z": "8cb5d046.a5aaf",
353     "wires": []
354   },
355   {
356     "id": "71cf21cf.2814e",
357     "type": "block",
358     "name": "block",
359     "xml": "<block>\n",
360     "atomic": "false",
361     "comments": "",
362     "outputs": 1,
363     "x": 1869.8147583007812,
364     "y": 158.77776765823364,
365     "z": "8cb5d046.a5aaf",
366     "wires": [
367       []
368     ]
369   },
370   {
371     "id": "f641d4a3.15fe58",
372     "type": "comment",
373     "name": "Do Nothing",
374     "info": "",
375     "comments": "",
376     "x": 2005.3703320821123,
377     "y": 157.66664340760974,
378     "z": "8cb5d046.a5aaf",
379     "wires": []
380   },
381   {
382     "id": "50cc0089.8c5b9",
383     "type": "switchNode",
384     "name": "switch type",
385     "xml": "<switch test=\"`$prop.sdncRestApi.type`\">\n",
386     "comments": "",
387     "outputs": 1,
388     "x": 905.0002479553223,
389     "y": 279.00003147125244,
390     "z": "8cb5d046.a5aaf",
391     "wires": [
392       [
393         "5f892fdd.7662a",
394         "1ec39cc9.6f7b33"
395       ]
396     ]
397   },
398   {
399     "id": "9e41086f.f40978",
400     "type": "block",
401     "name": "block",
402     "xml": "<block>\n",
403     "atomic": "false",
404     "comments": "",
405     "outputs": 1,
406     "x": 760.0000839233398,
407     "y": 277.00002002716064,
408     "z": "8cb5d046.a5aaf",
409     "wires": [
410       [
411         "50cc0089.8c5b9"
412       ]
413     ]
414   },
415   {
416     "id": "5f892fdd.7662a",
417     "type": "other",
418     "name": "SOTN",
419     "xml": "<outcome value='SOTN'>\n",
420     "comments": "",
421     "outputs": 1,
422     "x": 1059.0000305175781,
423     "y": 235.00000190734863,
424     "z": "8cb5d046.a5aaf",
425     "wires": [
426       [
427         "4718051e.d2c46c"
428       ]
429     ]
430   },
431   {
432     "id": "1ec39cc9.6f7b33",
433     "type": "other",
434     "name": "other",
435     "xml": "<outcome value='Other'>\n",
436     "comments": "",
437     "outputs": 1,
438     "x": 1056.0000305175781,
439     "y": 359.00000953674316,
440     "z": "8cb5d046.a5aaf",
441     "wires": [
442       [
443         "57bc8339.f1a98c"
444       ]
445     ]
446   },
447   {
448     "id": "57bc8339.f1a98c",
449     "type": "returnFailure",
450     "name": "return failure",
451     "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",
452     "comments": "",
453     "x": 1204.7727355957031,
454     "y": 358.43917751312256,
455     "z": "8cb5d046.a5aaf",
456     "wires": []
457   },
458   {
459     "id": "d85bb5b1.82c4d8",
460     "type": "execute",
461     "name": "execute Properties",
462     "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",
463     "comments": "",
464     "outputs": 1,
465     "x": 1421.03125,
466     "y": 50.03125,
467     "z": "8cb5d046.a5aaf",
468     "wires": [
469       []
470     ]
471   },
472   {
473     "id": "3b1c8725.0fcfb8",
474     "type": "switchNode",
475     "name": "switch prop.sdncRestApi.token_id",
476     "xml": "<switch test=\"`$prop.sdncRestApi.token_id`\">\n\n",
477     "comments": "",
478     "outputs": 1,
479     "x": 1474.5310821533203,
480     "y": 270.000036239624,
481     "z": "8cb5d046.a5aaf",
482     "wires": [
483       [
484         "51700151.3682f",
485         "56c8ba7a.de2b04"
486       ]
487     ]
488   },
489   {
490     "id": "51700151.3682f",
491     "type": "other",
492     "name": "Null",
493     "xml": "<outcome value=''>\n",
494     "comments": "",
495     "outputs": 1,
496     "x": 1690.5312004089355,
497     "y": 242.00001335144043,
498     "z": "8cb5d046.a5aaf",
499     "wires": [
500       [
501         "f5ddce51.60077"
502       ]
503     ]
504   },
505   {
506     "id": "56c8ba7a.de2b04",
507     "type": "other",
508     "name": "other",
509     "xml": "<outcome value='Other'>\n",
510     "comments": "",
511     "outputs": 1,
512     "x": 1689.5311393737793,
513     "y": 291.5000228881836,
514     "z": "8cb5d046.a5aaf",
515     "wires": [
516       [
517         "d910de32.e62ae"
518       ]
519     ]
520   },
521   {
522     "id": "f5ddce51.60077",
523     "type": "execute",
524     "name": "execute RestApiCallNode Get Topology",
525     "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",
526     "comments": "",
527     "outputs": 1,
528     "x": 1925.0311584472656,
529     "y": 239.03126525878906,
530     "z": "8cb5d046.a5aaf",
531     "wires": [
532       [
533         "c53d2802.f6ecf8",
534         "3dc2b196.085a9e"
535       ]
536     ]
537   }
538 ]