Merge "Support Wan Connection"
[sdnc/oam.git] / platform-logic / datachange / src / main / json / DataChange_esr-thirdparty-sdnc-discovery.json
1 [
2   {
3     "id": "3492b641.0dfbba",
4     "type": "other",
5     "name": "update",
6     "xml": "<outcome value='Update'>\n",
7     "comments": "",
8     "outputs": 1,
9     "x": 673,
10     "y": 276.6667003631592,
11     "z": "cbb28df7.1359",
12     "wires": [
13       [
14         "f2d65f4a.d687"
15       ]
16     ]
17   },
18   {
19     "id": "668a1af1.719b34",
20     "type": "other",
21     "name": "delete",
22     "xml": "<outcome value='delete'>\n",
23     "comments": "",
24     "outputs": 1,
25     "x": 709.2221145629883,
26     "y": 478.33349609375,
27     "z": "cbb28df7.1359",
28     "wires": [
29       [
30         "3b8ddbef.903fa4"
31       ]
32     ]
33   },
34   {
35     "id": "3b8ddbef.903fa4",
36     "type": "block",
37     "name": "block : atomic",
38     "xml": "<block atomic=\"true\">",
39     "atomic": "true",
40     "outputs": 1,
41     "x": 859.6667594909668,
42     "y": 473.3335485458374,
43     "z": "cbb28df7.1359",
44     "wires": [
45       []
46     ]
47   },
48   {
49     "id": "c0cbee48.6a5f9",
50     "type": "comment",
51     "name": "TODO: Delete topology from AAI",
52     "info": "",
53     "comments": "",
54     "x": 817.3334274291992,
55     "y": 429.0001735687256,
56     "z": "cbb28df7.1359",
57     "wires": []
58   },
59   {
60     "id": "d3c03070.16287",
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": 465.5555648803711,
67     "y": 345.2222261428833,
68     "z": "cbb28df7.1359",
69     "wires": [
70       [
71         "3492b641.0dfbba",
72         "668a1af1.719b34"
73       ]
74     ]
75   },
76   {
77     "id": "6bfaf616.869108",
78     "type": "block",
79     "name": "block : atomic",
80     "xml": "<block atomic=\"true\">",
81     "atomic": "true",
82     "outputs": 1,
83     "x": 1267.333755493164,
84     "y": 270.1112537384033,
85     "z": "cbb28df7.1359",
86     "wires": [
87       [
88         "c706e157.72486",
89         "4130ca8.c1efa34"
90       ]
91     ]
92   },
93   {
94     "id": "f4c114b8.d66028",
95     "type": "execute",
96     "name": "execute RestApiCallNode Get token",
97     "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.openecomp.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\"/>",
98     "comments": "",
99     "outputs": 1,
100     "x": 1523.993263244629,
101     "y": 132.0305051803589,
102     "z": "cbb28df7.1359",
103     "wires": [
104       [
105         "fafa0167.57f14",
106         "c8836a7f.1ba7f8"
107       ]
108     ]
109   },
110   {
111     "id": "fafa0167.57f14",
112     "type": "success",
113     "name": "success",
114     "xml": "<outcome value='success'>\n",
115     "comments": "",
116     "outputs": 1,
117     "x": 1758.993263244629,
118     "y": 110.03050518035889,
119     "z": "cbb28df7.1359",
120     "wires": [
121       [
122         "bd59ffd7.cdf9"
123       ]
124     ]
125   },
126   {
127     "id": "c8836a7f.1ba7f8",
128     "type": "failure",
129     "name": "failure",
130     "xml": "<outcome value='failure'>\n",
131     "comments": "",
132     "outputs": 1,
133     "x": 1751.243263244629,
134     "y": 163.67338848114014,
135     "z": "cbb28df7.1359",
136     "wires": [
137       [
138         "8505bfec.1c327"
139       ]
140     ]
141   },
142   {
143     "id": "bd59ffd7.cdf9",
144     "type": "set",
145     "name": "set token-id",
146     "xml": "<set>\n<parameter name='prop.sdncRestApi.token_id' value='`$token-result.data.token_id`' />\n",
147     "comments": "",
148     "x": 1912.993263244629,
149     "y": 111.03050518035889,
150     "z": "cbb28df7.1359",
151     "wires": []
152   },
153   {
154     "id": "c706e157.72486",
155     "type": "execute",
156     "name": "execute RestApiCallNode Get Topology",
157     "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.openecomp.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`\" />",
158     "comments": "",
159     "outputs": 1,
160     "x": 1527.3266906738281,
161     "y": 225.73424291610718,
162     "z": "cbb28df7.1359",
163     "wires": [
164       [
165         "87479d00.dc1c9",
166         "c2d07026.26d52"
167       ]
168     ]
169   },
170   {
171     "id": "87479d00.dc1c9",
172     "type": "success",
173     "name": "success",
174     "xml": "<outcome value='success'>\n",
175     "comments": "",
176     "outputs": 1,
177     "x": 1785.882022857666,
178     "y": 203.73422479629517,
179     "z": "cbb28df7.1359",
180     "wires": [
181       [
182         "3aa58504.f6229a"
183       ]
184     ]
185   },
186   {
187     "id": "3aa58504.f6229a",
188     "type": "block",
189     "name": "block : atomic",
190     "xml": "<block atomic=\"true\">",
191     "atomic": "true",
192     "comments": "",
193     "outputs": 1,
194     "x": 1961.4375534057617,
195     "y": 201.40094709396362,
196     "z": "cbb28df7.1359",
197     "wires": [
198       []
199     ]
200   },
201   {
202     "id": "dca7d6ac.f501f8",
203     "type": "returnFailure",
204     "name": "return failure",
205     "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",
206     "comments": "",
207     "x": 1969.6598281860352,
208     "y": 275.6230607032776,
209     "z": "cbb28df7.1359",
210     "wires": []
211   },
212   {
213     "id": "c2d07026.26d52",
214     "type": "failure",
215     "name": "failure",
216     "xml": "<outcome value='failure'>\n",
217     "comments": "",
218     "outputs": 1,
219     "x": 1791.3265075683594,
220     "y": 274.845290184021,
221     "z": "cbb28df7.1359",
222     "wires": [
223       [
224         "dca7d6ac.f501f8"
225       ]
226     ]
227   },
228   {
229     "id": "7cae77af.f5b818",
230     "type": "dgstart",
231     "name": "DGSTART",
232     "outputs": 1,
233     "x": 105.9999008178711,
234     "y": 85,
235     "z": "cbb28df7.1359",
236     "wires": [
237       [
238         "b697d007.11e41"
239       ]
240     ]
241   },
242   {
243     "id": "b697d007.11e41",
244     "type": "service-logic",
245     "name": "DataChange ${project.version}",
246     "module": "DataChange",
247     "version": "${project.version}",
248     "comments": "",
249     "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}'>",
250     "outputs": 1,
251     "x": 244.11102676391602,
252     "y": 126.44446134567261,
253     "z": "cbb28df7.1359",
254     "wires": [
255       [
256         "49de6de0.6f78a4"
257       ]
258     ]
259   },
260   {
261     "id": "49de6de0.6f78a4",
262     "type": "method",
263     "name": "method esr-thirdparty-sdnc-discovery",
264     "xml": "<method rpc='esr-thirdparty-sdnc-discovery' mode='sync'>\n",
265     "comments": "",
266     "outputs": 1,
267     "x": 340.5555877685547,
268     "y": 237.22224235534668,
269     "z": "cbb28df7.1359",
270     "wires": [
271       [
272         "5f1e0612.f09808"
273       ]
274     ]
275   },
276   {
277     "id": "5f1e0612.f09808",
278     "type": "block",
279     "name": "block : atomic",
280     "xml": "<block atomic=\"true\">\n",
281     "atomic": "false",
282     "comments": "",
283     "outputs": 1,
284     "x": 248.77781677246094,
285     "y": 346.11122035980225,
286     "z": "cbb28df7.1359",
287     "wires": [
288       [
289         "d3c03070.16287"
290       ]
291     ]
292   },
293   {
294     "id": "4130ca8.c1efa34",
295     "type": "for",
296     "name": "for each Network",
297     "xml": "<for index='nidx' start='0' end='`$topology.networks.network_length`' >\n",
298     "comments": "",
299     "outputs": 1,
300     "x": 1459.481460571289,
301     "y": 353.2221817970276,
302     "z": "cbb28df7.1359",
303     "wires": [
304       [
305         "5ae402a2.fe5ffc"
306       ]
307     ]
308   },
309   {
310     "id": "5ae402a2.fe5ffc",
311     "type": "block",
312     "name": "block",
313     "xml": "<block>\n",
314     "atomic": "false",
315     "comments": "",
316     "outputs": 1,
317     "x": 1649.4814224243164,
318     "y": 360.9999747276306,
319     "z": "cbb28df7.1359",
320     "wires": [
321       [
322         "7d9ae4c3.21708c",
323         "f67aa4a3.311fc8"
324       ]
325     ]
326   },
327   {
328     "id": "7d9ae4c3.21708c",
329     "type": "call",
330     "name": "call update-network-to-aai",
331     "xml": "<call module='DataChange' rpc='update-network-to-aai' mode='sync' >\n",
332     "comments": "",
333     "outputs": 1,
334     "x": 1902.8148441314697,
335     "y": 424.33334493637085,
336     "z": "cbb28df7.1359",
337     "wires": [
338       []
339     ]
340   },
341   {
342     "id": "f67aa4a3.311fc8",
343     "type": "set",
344     "name": "set network",
345     "xml": "<set>\n<parameter name='network.' value='`$topology.networks.network[$nidx].`' />\n",
346     "comments": "",
347     "x": 1855.036964416504,
348     "y": 342.11108922958374,
349     "z": "cbb28df7.1359",
350     "wires": []
351   },
352   {
353     "id": "8505bfec.1c327",
354     "type": "block",
355     "name": "block",
356     "xml": "<block>\n",
357     "atomic": "false",
358     "comments": "",
359     "outputs": 1,
360     "x": 1912.8146591186523,
361     "y": 158.77776765823364,
362     "z": "cbb28df7.1359",
363     "wires": [
364       []
365     ]
366   },
367   {
368     "id": "27eaeed1.46c512",
369     "type": "comment",
370     "name": "Do Nothing",
371     "info": "",
372     "comments": "",
373     "x": 2048.3702328999834,
374     "y": 157.66664340760974,
375     "z": "cbb28df7.1359",
376     "wires": []
377   },
378   {
379     "id": "416dcc31.e9a444",
380     "type": "switchNode",
381     "name": "switch type",
382     "xml": "<switch test=\"`$prop.sdncRestApi.type`\">\n",
383     "comments": "",
384     "outputs": 1,
385     "x": 948.0001487731934,
386     "y": 279.00003147125244,
387     "z": "cbb28df7.1359",
388     "wires": [
389       [
390         "7de88c94.fa0ca4",
391         "8ee217f7.3b1bd8"
392       ]
393     ]
394   },
395   {
396     "id": "f2d65f4a.d687",
397     "type": "block",
398     "name": "block",
399     "xml": "<block>\n",
400     "atomic": "false",
401     "comments": "",
402     "outputs": 1,
403     "x": 802.9999847412109,
404     "y": 277.00002002716064,
405     "z": "cbb28df7.1359",
406     "wires": [
407       [
408         "416dcc31.e9a444"
409       ]
410     ]
411   },
412   {
413     "id": "7de88c94.fa0ca4",
414     "type": "other",
415     "name": "SOTN",
416     "xml": "<outcome value='SOTN'>\n",
417     "comments": "",
418     "outputs": 1,
419     "x": 1101.9999313354492,
420     "y": 235.00000190734863,
421     "z": "cbb28df7.1359",
422     "wires": [
423       [
424         "6bfaf616.869108"
425       ]
426     ]
427   },
428   {
429     "id": "8ee217f7.3b1bd8",
430     "type": "other",
431     "name": "other",
432     "xml": "<outcome value='Other'>\n",
433     "comments": "",
434     "outputs": 1,
435     "x": 1098.9999313354492,
436     "y": 359.00000953674316,
437     "z": "cbb28df7.1359",
438     "wires": [
439       [
440         "c0794a5f.727638"
441       ]
442     ]
443   },
444   {
445     "id": "c0794a5f.727638",
446     "type": "returnFailure",
447     "name": "return failure",
448     "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",
449     "comments": "",
450     "x": 1247.7726364135742,
451     "y": 358.43917751312256,
452     "z": "cbb28df7.1359",
453     "wires": []
454   }
455 ]