integration test issues fix for sdwan and sotn
[sdnc/oam.git] / platform-logic / datachange / src / main / json / DataChange_esr-thirdparty-sdnc-discovery.json
1 [
2   {
3     "id": "e714f114.a841a",
4     "type": "other",
5     "name": "update",
6     "xml": "<outcome value='Update'>\n",
7     "comments": "",
8     "outputs": 1,
9     "x": 674.5000419616699,
10     "y": 205.66669845581055,
11     "z": "f60ccc0b.2e9e5",
12     "wires": [
13       [
14         "412d4a4c.5ea2f4"
15       ]
16     ]
17   },
18   {
19     "id": "47ba392d.437028",
20     "type": "other",
21     "name": "delete",
22     "xml": "<outcome value='delete'>\n",
23     "comments": "",
24     "outputs": 1,
25     "x": 702.7222175598145,
26     "y": 477.3335008621216,
27     "z": "f60ccc0b.2e9e5",
28     "wires": [
29       [
30         "e84e5704.965b68"
31       ]
32     ]
33   },
34   {
35     "id": "e84e5704.965b68",
36     "type": "block",
37     "name": "block : atomic",
38     "xml": "<block atomic=\"true\">",
39     "atomic": "true",
40     "outputs": 1,
41     "x": 858.1668968200684,
42     "y": 477.33352184295654,
43     "z": "f60ccc0b.2e9e5",
44     "wires": [
45       []
46     ]
47   },
48   {
49     "id": "5e6b6675.fc5a18",
50     "type": "comment",
51     "name": "TODO: Delete topology from AAI",
52     "info": "",
53     "comments": "",
54     "x": 782.8334770202637,
55     "y": 440.0001859664917,
56     "z": "f60ccc0b.2e9e5",
57     "wires": []
58   },
59   {
60     "id": "bf8e19f1.7f5908",
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": 459.05566787719727,
67     "y": 344.2222309112549,
68     "z": "f60ccc0b.2e9e5",
69     "wires": [
70       [
71         "e714f114.a841a",
72         "47ba392d.437028"
73       ]
74     ]
75   },
76   {
77     "id": "412d4a4c.5ea2f4",
78     "type": "block",
79     "name": "block : atomic",
80     "xml": "<block atomic=\"true\">",
81     "atomic": "true",
82     "outputs": 1,
83     "x": 842.8338432312012,
84     "y": 204.11124992370605,
85     "z": "f60ccc0b.2e9e5",
86     "wires": [
87       [
88         "52b0fb73.694034",
89         "b992a9e2.abb498"
90       ]
91     ]
92   },
93   {
94     "id": "bf4a7e8b.e2772",
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": 1120.4932975769043,
101     "y": 160.03050470352173,
102     "z": "f60ccc0b.2e9e5",
103     "wires": [
104       [
105         "cbcc146a.b18a48",
106         "934e7ef4.942bd"
107       ]
108     ]
109   },
110   {
111     "id": "cbcc146a.b18a48",
112     "type": "success",
113     "name": "success",
114     "xml": "<outcome value='success'>\n",
115     "comments": "",
116     "outputs": 1,
117     "x": 1355.4932975769043,
118     "y": 138.03050470352173,
119     "z": "f60ccc0b.2e9e5",
120     "wires": [
121       [
122         "9ebe20af.228e5"
123       ]
124     ]
125   },
126   {
127     "id": "934e7ef4.942bd",
128     "type": "failure",
129     "name": "failure",
130     "xml": "<outcome value='failure'>\n",
131     "comments": "",
132     "outputs": 1,
133     "x": 1347.7432975769043,
134     "y": 191.67338800430298,
135     "z": "f60ccc0b.2e9e5",
136     "wires": [
137       [
138         "fe461c21.f9128"
139       ]
140     ]
141   },
142   {
143     "id": "9ebe20af.228e5",
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": 1509.4932975769043,
149     "y": 139.03050470352173,
150     "z": "f60ccc0b.2e9e5",
151     "wires": []
152   },
153   {
154     "id": "52b0fb73.694034",
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": 1123.8267250061035,
161     "y": 253.73424243927002,
162     "z": "f60ccc0b.2e9e5",
163     "wires": [
164       [
165         "bf8dd5a2.3ec108",
166         "4e2f04da.b5496c"
167       ]
168     ]
169   },
170   {
171     "id": "bf8dd5a2.3ec108",
172     "type": "success",
173     "name": "success",
174     "xml": "<outcome value='success'>\n",
175     "comments": "",
176     "outputs": 1,
177     "x": 1382.3820571899414,
178     "y": 231.734224319458,
179     "z": "f60ccc0b.2e9e5",
180     "wires": [
181       [
182         "9692e7a9.a7ad78"
183       ]
184     ]
185   },
186   {
187     "id": "9692e7a9.a7ad78",
188     "type": "block",
189     "name": "block : atomic",
190     "xml": "<block atomic=\"true\">",
191     "atomic": "true",
192     "comments": "",
193     "outputs": 1,
194     "x": 1557.937587738037,
195     "y": 229.40094661712646,
196     "z": "f60ccc0b.2e9e5",
197     "wires": [
198       []
199     ]
200   },
201   {
202     "id": "1548c97d.137267",
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": 1566.1598625183105,
208     "y": 303.62306022644043,
209     "z": "f60ccc0b.2e9e5",
210     "wires": []
211   },
212   {
213     "id": "4e2f04da.b5496c",
214     "type": "failure",
215     "name": "failure",
216     "xml": "<outcome value='failure'>\n",
217     "comments": "",
218     "outputs": 1,
219     "x": 1387.8265419006348,
220     "y": 302.84528970718384,
221     "z": "f60ccc0b.2e9e5",
222     "wires": [
223       [
224         "1548c97d.137267"
225       ]
226     ]
227   },
228   {
229     "id": "773b4a80.972f64",
230     "type": "dgstart",
231     "name": "DGSTART",
232     "outputs": 1,
233     "x": 99.50000381469727,
234     "y": 84.00000476837158,
235     "z": "f60ccc0b.2e9e5",
236     "wires": [
237       [
238         "6b3bf10f.0a471"
239       ]
240     ]
241   },
242   {
243     "id": "6b3bf10f.0a471",
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": 237.6111297607422,
252     "y": 125.44446611404419,
253     "z": "f60ccc0b.2e9e5",
254     "wires": [
255       [
256         "34347376.ce668c"
257       ]
258     ]
259   },
260   {
261     "id": "34347376.ce668c",
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": 334.05569076538086,
268     "y": 236.22224712371826,
269     "z": "f60ccc0b.2e9e5",
270     "wires": [
271       [
272         "1ded1b72.af18c5"
273       ]
274     ]
275   },
276   {
277     "id": "1ded1b72.af18c5",
278     "type": "block",
279     "name": "block : atomic",
280     "xml": "<block atomic=\"true\">\n",
281     "atomic": "false",
282     "comments": "",
283     "outputs": 1,
284     "x": 242.2779197692871,
285     "y": 345.1112251281738,
286     "z": "f60ccc0b.2e9e5",
287     "wires": [
288       [
289         "bf8e19f1.7f5908"
290       ]
291     ]
292   },
293   {
294     "id": "b992a9e2.abb498",
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": 1055.9814949035645,
301     "y": 381.22218132019043,
302     "z": "f60ccc0b.2e9e5",
303     "wires": [
304       [
305         "d00ff672.d0b048"
306       ]
307     ]
308   },
309   {
310     "id": "d00ff672.d0b048",
311     "type": "block",
312     "name": "block",
313     "xml": "<block>\n",
314     "atomic": "false",
315     "comments": "",
316     "outputs": 1,
317     "x": 1245.9814567565918,
318     "y": 388.99997425079346,
319     "z": "f60ccc0b.2e9e5",
320     "wires": [
321       [
322         "ba2cdcd.67eab2",
323         "b9e492ff.96a56"
324       ]
325     ]
326   },
327   {
328     "id": "ba2cdcd.67eab2",
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": 1499.3148784637451,
335     "y": 452.3333444595337,
336     "z": "f60ccc0b.2e9e5",
337     "wires": [
338       []
339     ]
340   },
341   {
342     "id": "b9e492ff.96a56",
343     "type": "set",
344     "name": "set network",
345     "xml": "<set>\n<parameter name='network.' value='`$topology.networks.network[$nidx].`' />\n",
346     "comments": "",
347     "x": 1451.5369987487793,
348     "y": 370.1110887527466,
349     "z": "f60ccc0b.2e9e5",
350     "wires": []
351   },
352   {
353     "id": "fe461c21.f9128",
354     "type": "block",
355     "name": "block",
356     "xml": "<block>\n",
357     "atomic": "false",
358     "comments": "",
359     "outputs": 1,
360     "x": 1509.3146934509277,
361     "y": 186.77776718139648,
362     "z": "f60ccc0b.2e9e5",
363     "wires": [
364       []
365     ]
366   },
367   {
368     "id": "12e3cffc.36ff4",
369     "type": "comment",
370     "name": "Do Nothing",
371     "info": "",
372     "comments": "",
373     "x": 1644.8702672322588,
374     "y": 185.66664293077258,
375     "z": "f60ccc0b.2e9e5",
376     "wires": []
377   }
378 ]