Merge "Modify DG for VoLTE use case"
[sdnc/oam.git] / platform-logic / generic-resource-api / src / main / json / GENERIC-RESOURCE-API_l3-dci-connects-network-topology-operation-activate.json
1 [
2   {
3     "id": "13efcea1.ec1031",
4     "type": "dgstart",
5     "name": "DGSTART",
6     "outputs": 1,
7     "x": 114.9285774230957,
8     "y": 157.85713958740234,
9     "z": "e5eb985f.1a1468",
10     "wires": [
11       [
12         "34d83628.cb27ca"
13       ]
14     ]
15   },
16   {
17     "id": "34d83628.cb27ca",
18     "type": "service-logic",
19     "name": "GENERIC-RESOURCE-API ${project.version}",
20     "module": "GENERIC-RESOURCE-API",
21     "version": "${project.version}",
22     "comments": "",
23     "xml": "<service-logic xmlns='http://www.openecomp.org/sdnc/svclogic' xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xsi:schemaLocation='http://www.openecomp.org/sdnc/svclogic ./svclogic.xsd' module='GENERIC-RESOURCE-API' version='${project.version}'>",
24     "outputs": 1,
25     "x": 331.4285774230957,
26     "y": 220.35713958740234,
27     "z": "e5eb985f.1a1468",
28     "wires": [
29       [
30         "4110c5c.fbeef3c"
31       ]
32     ]
33   },
34   {
35     "id": "4110c5c.fbeef3c",
36     "type": "method",
37     "name": "method network-topology-operation-activate",
38     "xml": "<method rpc='network-topology-operation-activate' mode='sync'>\n",
39     "comments": "",
40     "outputs": 1,
41     "x": 239.42860794067383,
42     "y": 315.3571243286133,
43     "z": "e5eb985f.1a1468",
44     "wires": [
45       [
46         "73d8f049.8c271"
47       ]
48     ]
49   },
50   {
51     "id": "73d8f049.8c271",
52     "type": "block",
53     "name": "block : atomic",
54     "xml": "<block atomic=\"true\">",
55     "atomic": "true",
56     "outputs": 1,
57     "x": 537.2619209289551,
58     "y": 323.19046783447266,
59     "z": "e5eb985f.1a1468",
60     "wires": [
61       [
62         "d7eea4e9.281158",
63         "fc223b1c.03ddc8",
64         "de035b83.21fca8",
65         "7ca75a13.8358a4",
66         "af942bde.506bd8",
67         "fd54671a.02ab98",
68         "ae88a1de.51776",
69         "4b8d739d.b4728c"
70       ]
71     ]
72   },
73   {
74     "id": "fc223b1c.03ddc8",
75     "type": "record",
76     "name": "record",
77     "xml": "<record plugin=\"org.openecomp.sdnc.sli.recording.FileRecorder\">\n<parameter name=\"file\" value=\"/opt/opendaylight/current/data/log/svclogic.log\"/>\n<parameter name=\"Time\" value=\"__TIMESTAMP__\"/>\n<parameter name=\"Method\" value=\"network-topology-operation-activate\"/>\n<parameter name=\"SubMethod\" value=\"l3-dci-connects\"/>\n<parameter name=\"Name\" value=\"`$l3-dci-connects.name`\"/>\n<parameter name=\"Description\" value=\"`$l3-dci-connects.description`\"/>\n<parameter name=\"RouterId\" value=\"`$l3-dci-connects.router_id`\"/>\n<parameter name=\"IsFirewallEnabled\" value=\"`$l3-dci-connects.firewall_enable`\"/>\n<parameter name=\"LocalNetworks\" value=\"`$l3-dci-connects.local_networks`\"/>\n<parameter name=\"LocalNetworksAll\" value=\"`$l3-dci-connects.local_networks_all`\"/>\n<parameter name=\"EvpnIrts\" value=\"`$l3-dci-connects.evpn_irts`\"/>\n<parameter name=\"EvpnErts\" value=\"`$l3-dci-connects.evpn_erts`\"/>\n<parameter name=\"L3Vni\" value=\"`$l3-dci-connects.l3_vni`\"/>\n",
78     "comments": "",
79     "outputs": 1,
80     "x": 745.2619209289551,
81     "y": 358.19046783447266,
82     "z": "e5eb985f.1a1468",
83     "wires": [
84       []
85     ]
86   },
87   {
88     "id": "de035b83.21fca8",
89     "type": "call",
90     "name": "call GENERIC-RESOURCE-API:validate-network-input-parameters",
91     "xml": "<call module='GENERIC-RESOURCE-API' rpc='validate-network-input-parameters' mode='sync' >\n",
92     "comments": "",
93     "outputs": 1,
94     "x": 927.2619209289551,
95     "y": 188.19046783447266,
96     "z": "e5eb985f.1a1468",
97     "wires": [
98       []
99     ]
100   },
101   {
102     "id": "7ca75a13.8358a4",
103     "type": "get-resource",
104     "name": "get-resource l3-dci-connects",
105     "xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\t\tresource=\"l3-dci-connects\" \n\t\tkey=\"l3-dci-connects.id = $tmp.id AND depth = '1'\"\n        pfx='tmp.aai.l3-dci-connects' local-only='false' >\n",
106     "comments": "",
107     "outputs": 1,
108     "x": 814.2619209289551,
109     "y": 290.19046783447266,
110     "z": "e5eb985f.1a1468",
111     "wires": [
112       [
113         "76d6d56a.89292c",
114         "b63f5b49.49c0a8",
115         "a9c3f954.563c08"
116       ]
117     ]
118   },
119   {
120     "id": "76d6d56a.89292c",
121     "type": "success",
122     "name": "success",
123     "xml": "<outcome value='success'>\n",
124     "comments": "",
125     "outputs": 1,
126     "x": 1063.261920928955,
127     "y": 254.19046783447266,
128     "z": "e5eb985f.1a1468",
129     "wires": [
130       [
131         "75edb6f2.8a1248"
132       ]
133     ]
134   },
135   {
136     "id": "b63f5b49.49c0a8",
137     "type": "not-found",
138     "name": "not-found",
139     "xml": "<outcome value='not-found'>\n",
140     "comments": "",
141     "outputs": 1,
142     "x": 1070.261920928955,
143     "y": 292.19046783447266,
144     "z": "e5eb985f.1a1468",
145     "wires": [
146       [
147         "a88ab5e7.577548"
148       ]
149     ]
150   },
151   {
152     "id": "a9c3f954.563c08",
153     "type": "other",
154     "name": "other",
155     "xml": "<outcome value='Other'>\n",
156     "comments": "",
157     "outputs": 1,
158     "x": 1062.261920928955,
159     "y": 334.19046783447266,
160     "z": "e5eb985f.1a1468",
161     "wires": [
162       [
163         "47bdf2f2.b8420c"
164       ]
165     ]
166   },
167   {
168     "id": "75edb6f2.8a1248",
169     "type": "block",
170     "name": "block : atomic",
171     "xml": "<block atomic=\"true\">\n",
172     "atomic": "false",
173     "comments": "",
174     "outputs": 1,
175     "x": 1228.261920928955,
176     "y": 243.19046783447266,
177     "z": "e5eb985f.1a1468",
178     "wires": [
179       []
180     ]
181   },
182   {
183     "id": "a88ab5e7.577548",
184     "type": "returnFailure",
185     "name": "return failure",
186     "xml": "<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value='' />\n",
187     "comments": "",
188     "x": 1227.261920928955,
189     "y": 296.19046783447266,
190     "z": "e5eb985f.1a1468",
191     "wires": []
192   },
193   {
194     "id": "47bdf2f2.b8420c",
195     "type": "returnFailure",
196     "name": "return failure",
197     "xml": "<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value='' />\n",
198     "comments": "",
199     "x": 1220.261920928955,
200     "y": 343.19046783447266,
201     "z": "e5eb985f.1a1468",
202     "wires": []
203   },
204   {
205     "id": "af942bde.506bd8",
206     "type": "set",
207     "name": "set controller data",
208     "xml": "<set>\n<parameter name='prop.sdncRestApi.thirdpartySdnc.url' value=\"`$tmp.aai.esr-thirdparty-sdnc.esr-system-info-list[0].esr-system-info.serviceUrl`\" />\n<parameter name='prop.sdncRestApi.templateDir' value='/opt/onap/sdnc/data' />\n<parameter name='prop.sdncRestApi.thirdpartySdnc.user' value=\"`$tmp.aai.esr-thirdparty-sdnc.esr-system-info-list[0].esr-system-info.user-name`\" />\n<parameter name='prop.sdncRestApi.thirdpartySdnc.password' value=\"`$tmp.aai.esr-thirdparty-sdnc.esr-system-info-list[0].esr-system-info.password`\" />\n\n",
209     "comments": "",
210     "x": 778.2619209289551,
211     "y": 419.19046783447266,
212     "z": "e5eb985f.1a1468",
213     "wires": []
214   },
215   {
216     "id": "fd54671a.02ab98",
217     "type": "for",
218     "name": "for each network-input-parameters",
219     "xml": "<for index='idx' start='0' end='`$network-topology-operation-input.network-request-input.network-input-parameters.param_length`' >\n\n",
220     "comments": "",
221     "outputs": 1,
222     "x": 830.2619209289551,
223     "y": 475.19046783447266,
224     "z": "e5eb985f.1a1468",
225     "wires": [
226       [
227         "2650269.fd9afda"
228       ]
229     ]
230   },
231   {
232     "id": "2650269.fd9afda",
233     "type": "block",
234     "name": "block",
235     "xml": "<block>\n",
236     "atomic": "false",
237     "comments": "",
238     "outputs": 1,
239     "x": 1064.261920928955,
240     "y": 475.19046783447266,
241     "z": "e5eb985f.1a1468",
242     "wires": [
243       [
244         "eb18473a.14e7b8",
245         "94f8d826.6b0728",
246         "133d2fc3.ecc2d",
247         "60c74a82.9f38b4",
248         "4956f4cc.b6a90c",
249         "8e0378b.f71fc88",
250         "246d821a.db927e"
251       ]
252     ]
253   },
254   {
255     "id": "eb18473a.14e7b8",
256     "type": "switchNode",
257     "name": "switch name",
258     "xml": "<switch test=\"`$network-topology-operation-input.network-request-input.network-input-parameters.param[$idx].name == 'name'`\">\n",
259     "comments": "",
260     "outputs": 1,
261     "x": 1368.261920928955,
262     "y": 400.19046783447266,
263     "z": "e5eb985f.1a1468",
264     "wires": [
265       [
266         "77471bff.88b8e4"
267       ]
268     ]
269   },
270   {
271     "id": "94f8d826.6b0728",
272     "type": "switchNode",
273     "name": "switch description",
274     "xml": "<switch test=\"`$network-topology-operation-input.network-request-input.network-input-parameters.param[$idx].name == 'description'`\">\n",
275     "comments": "",
276     "outputs": 1,
277     "x": 1383.261920928955,
278     "y": 449.19046783447266,
279     "z": "e5eb985f.1a1468",
280     "wires": [
281       [
282         "b48734fb.4b78c8"
283       ]
284     ]
285   },
286   {
287     "id": "133d2fc3.ecc2d",
288     "type": "switchNode",
289     "name": "switch router_id",
290     "xml": "<switch test=\"`$network-topology-operation-input.network-request-input.network-input-parameters.param[$idx].name == 'router_id'`\">\n",
291     "comments": "",
292     "outputs": 1,
293     "x": 1377.261920928955,
294     "y": 493.19046783447266,
295     "z": "e5eb985f.1a1468",
296     "wires": [
297       [
298         "9cd2fabe.632d08"
299       ]
300     ]
301   },
302   {
303     "id": "60c74a82.9f38b4",
304     "type": "switchNode",
305     "name": "switch local_networks",
306     "xml": "<switch test=\"`$network-topology-operation-input.network-request-input.network-input-parameters.param[$idx].name == 'local_networks'`\">\n",
307     "comments": "",
308     "outputs": 1,
309     "x": 1395.261978149414,
310     "y": 536.9047584533691,
311     "z": "e5eb985f.1a1468",
312     "wires": [
313       [
314         "3f83fc1.fc07c04"
315       ]
316     ]
317   },
318   {
319     "id": "4956f4cc.b6a90c",
320     "type": "switchNode",
321     "name": "switch evpn_irts",
322     "xml": "<switch test=\"`$network-topology-operation-input.network-request-input.network-input-parameters.param[$idx].name == 'evpn_irts'`\">\n",
323     "comments": "",
324     "outputs": 1,
325     "x": 1379.5477485656738,
326     "y": 585.4761905670166,
327     "z": "e5eb985f.1a1468",
328     "wires": [
329       [
330         "c139b32d.3ec65"
331       ]
332     ]
333   },
334   {
335     "id": "8e0378b.f71fc88",
336     "type": "switchNode",
337     "name": "switch evpn_erts",
338     "xml": "<switch test=\"`$network-topology-operation-input.network-request-input.network-input-parameters.param[$idx].name == 'evpn_erts'`\">\n",
339     "comments": "",
340     "outputs": 1,
341     "x": 1381.5477485656738,
342     "y": 632.4761905670166,
343     "z": "e5eb985f.1a1468",
344     "wires": [
345       [
346         "d454e7d7.2bab18"
347       ]
348     ]
349   },
350   {
351     "id": "246d821a.db927e",
352     "type": "switchNode",
353     "name": "switch l3_vni",
354     "xml": "<switch test=\"`$network-topology-operation-input.network-request-input.network-input-parameters.param[$idx].name == 'l3_vni'`\">\n",
355     "comments": "",
356     "outputs": 1,
357     "x": 1371.5477485656738,
358     "y": 675.4761905670166,
359     "z": "e5eb985f.1a1468",
360     "wires": [
361       [
362         "69406c41.96bf94"
363       ]
364     ]
365   },
366   {
367     "id": "77471bff.88b8e4",
368     "type": "outcomeTrue",
369     "name": "true",
370     "xml": "<outcome value='true'>\n",
371     "comments": "",
372     "outputs": 1,
373     "x": 1583.261920928955,
374     "y": 399.19046783447266,
375     "z": "e5eb985f.1a1468",
376     "wires": [
377       [
378         "f3ea7971.0c1588"
379       ]
380     ]
381   },
382   {
383     "id": "b48734fb.4b78c8",
384     "type": "outcomeTrue",
385     "name": "true",
386     "xml": "<outcome value='true'>\n",
387     "comments": "",
388     "outputs": 1,
389     "x": 1581.261920928955,
390     "y": 449.19046783447266,
391     "z": "e5eb985f.1a1468",
392     "wires": [
393       [
394         "e7809c6a.187f6"
395       ]
396     ]
397   },
398   {
399     "id": "9cd2fabe.632d08",
400     "type": "outcomeTrue",
401     "name": "true",
402     "xml": "<outcome value='true'>\n",
403     "comments": "",
404     "outputs": 1,
405     "x": 1582.261920928955,
406     "y": 492.19046783447266,
407     "z": "e5eb985f.1a1468",
408     "wires": [
409       [
410         "bc1a0bfb.43e5f8"
411       ]
412     ]
413   },
414   {
415     "id": "3f83fc1.fc07c04",
416     "type": "outcomeTrue",
417     "name": "true",
418     "xml": "<outcome value='true'>\n",
419     "comments": "",
420     "outputs": 1,
421     "x": 1580.261978149414,
422     "y": 530.9047584533691,
423     "z": "e5eb985f.1a1468",
424     "wires": [
425       [
426         "7e484c09.81b7b4"
427       ]
428     ]
429   },
430   {
431     "id": "c139b32d.3ec65",
432     "type": "outcomeTrue",
433     "name": "true",
434     "xml": "<outcome value='true'>\n",
435     "comments": "",
436     "outputs": 1,
437     "x": 1581.5477485656738,
438     "y": 584.4761905670166,
439     "z": "e5eb985f.1a1468",
440     "wires": [
441       [
442         "7d5558e.f82aaa8"
443       ]
444     ]
445   },
446   {
447     "id": "d454e7d7.2bab18",
448     "type": "outcomeTrue",
449     "name": "true",
450     "xml": "<outcome value='true'>\n",
451     "comments": "",
452     "outputs": 1,
453     "x": 1577.5477485656738,
454     "y": 629.4761905670166,
455     "z": "e5eb985f.1a1468",
456     "wires": [
457       [
458         "e1e83f81.1e17c"
459       ]
460     ]
461   },
462   {
463     "id": "69406c41.96bf94",
464     "type": "outcomeTrue",
465     "name": "true",
466     "xml": "<outcome value='true'>\n",
467     "comments": "",
468     "outputs": 1,
469     "x": 1577.5477485656738,
470     "y": 675.4761905670166,
471     "z": "e5eb985f.1a1468",
472     "wires": [
473       [
474         "83d7cc2c.7c283"
475       ]
476     ]
477   },
478   {
479     "id": "f3ea7971.0c1588",
480     "type": "set",
481     "name": "set name",
482     "xml": "<set>\n<parameter name='prop.l3-dci-connects.name' value='`$network-topology-operation-input.network-request-input.network-input-parameters.param[$idx].value`' />\n",
483     "comments": "",
484     "x": 1745.261920928955,
485     "y": 397.19046783447266,
486     "z": "e5eb985f.1a1468",
487     "wires": []
488   },
489   {
490     "id": "e7809c6a.187f6",
491     "type": "set",
492     "name": "set description",
493     "xml": "<set>\n<parameter name='prop.l3-dci-connects.description' value='`$network-topology-operation-input.network-request-input.network-input-parameters.param[$idx].value`' />\n",
494     "comments": "",
495     "x": 1763.261920928955,
496     "y": 442.19046783447266,
497     "z": "e5eb985f.1a1468",
498     "wires": []
499   },
500   {
501     "id": "bc1a0bfb.43e5f8",
502     "type": "set",
503     "name": "set router_id",
504     "xml": "<set>\n<parameter name='prop.l3-dci-connects.router_id' value='`$network-topology-operation-input.network-request-input.network-input-parameters.param[$idx].value`' />\n",
505     "comments": "",
506     "x": 1755.261920928955,
507     "y": 485.19046783447266,
508     "z": "e5eb985f.1a1468",
509     "wires": []
510   },
511   {
512     "id": "7e484c09.81b7b4",
513     "type": "set",
514     "name": "set local_networks",
515     "xml": "<set>\n<parameter name='prop.l3-dci-connects.local_networks' value='`$network-topology-operation-input.network-request-input.network-input-parameters.param[$idx].value`'' />\n",
516     "comments": "",
517     "x": 1774.261978149414,
518     "y": 531.9047584533691,
519     "z": "e5eb985f.1a1468",
520     "wires": []
521   },
522   {
523     "id": "7d5558e.f82aaa8",
524     "type": "set",
525     "name": "set evpn_irts",
526     "xml": "<set>\n<parameter name='prop.l3-dci-connects.evpn_irts' value='`$network-topology-operation-input.network-request-input.network-input-parameters.param[$idx].value`' />\n",
527     "comments": "",
528     "x": 1757.5477485656738,
529     "y": 580.4761905670166,
530     "z": "e5eb985f.1a1468",
531     "wires": []
532   },
533   {
534     "id": "e1e83f81.1e17c",
535     "type": "set",
536     "name": "set evpn_erts",
537     "xml": "<set>\n<parametername='prop.l3-dci-connects.evpn_erts' value='`$network-topology-operation-input.network-request-input.network-input-parameters.param[$idx].value`' />\n",
538     "comments": "",
539     "x": 1763.5477485656738,
540     "y": 622.4761905670166,
541     "z": "e5eb985f.1a1468",
542     "wires": []
543   },
544   {
545     "id": "83d7cc2c.7c283",
546     "type": "set",
547     "name": "set l3_vni",
548     "xml": "<set>\n<parameter name='prop.l3-dci-connects.l3_vni' value='`$network-topology-operation-input.network-request-input.network-input-parameters.param[$idx].value`' />\n",
549     "comments": "",
550     "x": 1747.5477485656738,
551     "y": 667.4761905670166,
552     "z": "e5eb985f.1a1468",
553     "wires": []
554   },
555   {
556     "id": "ae88a1de.51776",
557     "type": "execute",
558     "name": "execute l3-dci-connects id",
559     "xml": "<execute plugin='com.att.sdnctl.sli.SliPluginUtils.SliPluginUtils' method='generateUUID' >\n<parameter name=\"ctx-destination\" value=\"prop.l3-dci-connects.id\"/>\n",
560     "comments": "",
561     "outputs": 1,
562     "x": 805.2619209289551,
563     "y": 539.1904678344727,
564     "z": "e5eb985f.1a1468",
565     "wires": [
566       [
567         "52b5b73a.ad4a48"
568       ]
569     ]
570   },
571   {
572     "id": "52b5b73a.ad4a48",
573     "type": "failure",
574     "name": "failure",
575     "xml": "<outcome value='failure'>\n",
576     "comments": "",
577     "outputs": 1,
578     "x": 996.2619209289551,
579     "y": 537.1904678344727,
580     "z": "e5eb985f.1a1468",
581     "wires": [
582       [
583         "37ca2219.c835de"
584       ]
585     ]
586   },
587   {
588     "id": "37ca2219.c835de",
589     "type": "returnFailure",
590     "name": "return failure",
591     "xml": "<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value='' />\n",
592     "comments": "",
593     "x": 1146.261920928955,
594     "y": 536.1904678344727,
595     "z": "e5eb985f.1a1468",
596     "wires": []
597   },
598   {
599     "id": "4b8d739d.b4728c",
600     "type": "execute",
601     "name": "execute RestApiCallNode Activate Vxlan Tunnel",
602     "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"templateFileName\" value=\"$prop.sdncRestApi.tempDir +'/l3-dci-connects-template.json'\"/>\n<parameter name=\"restapiUrl\" value=\"$prop.sdncRestApi.thirdpartySdnc.url +'/v2.0/l3-dci-connects'\"/>\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=\"post\"/>\n<parameter name=\"responsePrefix\" value=\"restapi-result\"/>\n",
603     "comments": "",
604     "outputs": 1,
605     "x": 870.2619209289551,
606     "y": 604.1904678344727,
607     "z": "e5eb985f.1a1468",
608     "wires": [
609       []
610     ]
611   },
612   {
613     "id": "d7eea4e9.281158",
614     "type": "returnSuccess",
615     "name": "return success",
616     "xml": "<return status='success'>\n<parameter name=\"ack-final-indicator\" value=\"Y\" />\n<parameter name=\"error-code\" value=\"200\" />\n<parameter name=\"error-message\" value=\"`$error-message`\" />\n",
617     "comments": "",
618     "x": 769.5476913452148,
619     "y": 705.9047737121582,
620     "z": "e5eb985f.1a1468",
621     "wires": []
622   }
623 ]