Adding support for multi-layer and multi-domain topology discovery for CCVPN
[sdnc/oam.git] / platform-logic / datachange / src / main / json / DataChange_update-open-ended-links.json
1 [
2   {
3     "id": "a4730fa5.b2b538",
4     "type": "dgstart",
5     "name": "DGSTART",
6     "outputs": 1,
7     "x": 133,
8     "y": 60,
9     "z": "2d51e841.8826c",
10     "wires": [
11       [
12         "963c0a3f.e2aab8"
13       ]
14     ]
15   },
16   {
17     "id": "963c0a3f.e2aab8",
18     "type": "service-logic",
19     "name": "DataChange ${project.version}",
20     "module": "DataChange",
21     "version": "${project.version}",
22     "comments": "",
23     "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}'>",
24     "outputs": 1,
25     "x": 175,
26     "y": 139.888916015625,
27     "z": "2d51e841.8826c",
28     "wires": [
29       [
30         "f069c04b.7272a8"
31       ]
32     ]
33   },
34   {
35     "id": "f069c04b.7272a8",
36     "type": "method",
37     "name": "method update-open-ended-links",
38     "xml": "<method rpc='update-open-ended-links' mode='sync'>\n",
39     "comments": "",
40     "outputs": 1,
41     "x": 304,
42     "y": 216.22222900390625,
43     "z": "2d51e841.8826c",
44     "wires": [
45       [
46         "5fe0240b.9f5e84"
47       ]
48     ]
49   },
50   {
51     "id": "600f4f1f.93dc48",
52     "type": "set",
53     "name": "set src-ltpId dst-ltpId",
54     "xml": "<set>\n<parameter name='src-ltpId' value=\"`'nodeId-' + $oof.vpn.access-node-id + '-ltpId-' + $oof.vpn.src-access-ltp-id`\" />\n<parameter name='dst-ltpId' value=\"`'nodeId-' + $oof.vpn.access-node-id + '-ltpId-' + $oof.vpn.dst-access-ltp-id`\" />",
55     "comments": "",
56     "x": 2588.5001220703125,
57     "y": 2407.545135498047,
58     "z": "2d51e841.8826c",
59     "wires": []
60   },
61   {
62     "id": "b48d925b.b73e18",
63     "type": "save",
64     "name": "save srcLTP relationship in AAI",
65     "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='vpn-binding:relationship-list' \n      key='vpn-binding.vpn-id = $tmp.vpnName' \n      force=\"true\" pfx=\"tmp.AnAI-data\">\n<parameter name=\"relationship-list.relationship[0].related-to\" value=\"p-interface\" />\n<parameter name=\"relationship-list.relationship[0].related-link\" value=\"`'/network/pnfs/pnf/' + $oof.vpn.access-node-id + '/p-interfaces/p-interface/' + $src-ltpId`\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-key\" value=\"p-interface.interface-name\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-value\" value=\"`$src-ltpId`\" />\n\n\n\n",
66     "comments": "",
67     "outputs": 1,
68     "x": 2622.0001220703125,
69     "y": 2447.545135498047,
70     "z": "2d51e841.8826c",
71     "wires": [
72       []
73     ]
74   },
75   {
76     "id": "e4fffbf8.efdc1",
77     "type": "save",
78     "name": "save dstLTP relationship in AAI",
79     "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='vpn-binding:relationship-list' \n      key='vpn-binding.vpn-id = $tmp.vpnName' \n      force=\"true\" pfx=\"tmp.AnAI-data\">\n<parameter name=\"relationship-list.relationship[0].related-to\" value=\"p-interface\" />\n<parameter name=\"relationship-list.relationship[0].related-link\" value=\"`'/network/pnfs/pnf/' + $oof.vpn.access-node-id + '/p-interfaces/p-interface/' + $dst-ltpId`\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-key\" value=\"p-interface.interface-name\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-value\" value=\"`$dst-ltpId`\" />",
80     "comments": "",
81     "outputs": 1,
82     "x": 2622.0001220703125,
83     "y": 2487.545135498047,
84     "z": "2d51e841.8826c",
85     "wires": [
86       []
87     ]
88   },
89   {
90     "id": "5fe0240b.9f5e84",
91     "type": "block",
92     "name": "block : atomic",
93     "xml": "<block atomic=\"true\">\n",
94     "atomic": "false",
95     "comments": "",
96     "outputs": 1,
97     "x": 352,
98     "y": 292,
99     "z": "2d51e841.8826c",
100     "wires": [
101       [
102         "ad07d50.754baa8"
103       ]
104     ]
105   },
106   {
107     "id": "2e1c8992.8f12ae",
108     "type": "block",
109     "name": "block : atomic",
110     "xml": "<block atomic=\"true\">\n",
111     "atomic": "false",
112     "comments": "",
113     "outputs": 1,
114     "x": 1049,
115     "y": 308,
116     "z": "2d51e841.8826c",
117     "wires": [
118       [
119         "9f715b7e.78a038",
120         "c6421633.502c1",
121         "a2711f41.99aed"
122       ]
123     ]
124   },
125   {
126     "id": "ad07d50.754baa8",
127     "type": "get-resource",
128     "name": "get-resource logical-links",
129     "xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\t\tresource=\"logical-links\" \n        pfx='tmp.aai.logical-links' local-only='false' >\n\n\n",
130     "comments": "",
131     "outputs": 1,
132     "x": 404,
133     "y": 406,
134     "z": "2d51e841.8826c",
135     "wires": [
136       [
137         "b44d8d9a.662e8",
138         "54bde795.2840f",
139         "7cb9aff6.3d28f"
140       ]
141     ]
142   },
143   {
144     "id": "24989c8d.a37c5c",
145     "type": "for",
146     "name": "for llidx..logical-links",
147     "xml": "<for index='llidx' start='0' end='`$tmp.aai.logical-links.logical-link_length`' >",
148     "comments": "",
149     "outputs": 1,
150     "x": 848,
151     "y": 314,
152     "z": "2d51e841.8826c",
153     "wires": [
154       [
155         "2e1c8992.8f12ae"
156       ]
157     ]
158   },
159   {
160     "id": "b44d8d9a.662e8",
161     "type": "success",
162     "name": "success",
163     "xml": "<outcome value='success'>\n",
164     "comments": "",
165     "outputs": 1,
166     "x": 647,
167     "y": 331,
168     "z": "2d51e841.8826c",
169     "wires": [
170       [
171         "24989c8d.a37c5c"
172       ]
173     ]
174   },
175   {
176     "id": "54bde795.2840f",
177     "type": "not-found",
178     "name": "not-found",
179     "xml": "<outcome value='not-found'>\n",
180     "comments": "",
181     "outputs": 1,
182     "x": 650.490966796875,
183     "y": 378.57403564453125,
184     "z": "2d51e841.8826c",
185     "wires": [
186       [
187         "761d79e2.4ce53"
188       ]
189     ]
190   },
191   {
192     "id": "7cb9aff6.3d28f",
193     "type": "other",
194     "name": "other",
195     "xml": "<outcome value='Other'>\n",
196     "comments": "",
197     "outputs": 1,
198     "x": 645.823974609375,
199     "y": 419.9073486328125,
200     "z": "2d51e841.8826c",
201     "wires": [
202       [
203         "5c958fe.694997"
204       ]
205     ]
206   },
207   {
208     "id": "761d79e2.4ce53",
209     "type": "returnFailure",
210     "name": "return failure",
211     "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=\"`'An error occurred while querying pnf from AnAI with pnf-name = ' + $prop.l3vpn.pe1_id`\" />\n\n",
212     "comments": "",
213     "x": 827.0623779296875,
214     "y": 366.8597717285156,
215     "z": "2d51e841.8826c",
216     "wires": []
217   },
218   {
219     "id": "5c958fe.694997",
220     "type": "returnFailure",
221     "name": "return failure",
222     "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=\"`'Unexpected error occurred while querying pnf from AnAI with pnf-name = ' + $prop.l3vpn.pe1_id`\" />\n\n",
223     "comments": "",
224     "x": 833.5965309143066,
225     "y": 415.3465414047241,
226     "z": "2d51e841.8826c",
227     "wires": []
228   },
229   {
230     "id": "9f715b7e.78a038",
231     "type": "set",
232     "name": "set src-tpId and dst-tpId",
233     "xml": "<set>\n<parameter name='src-tpId' value='`$tmp.aai.logical-links.logical-link[$llidx].relationship-list.relationship[0].relationship-data[0].relationship-value`' />\n<parameter name='dst-tpId' value='`$tmp.aai.logical-links.logical-link[$llidx].relationship-list.relationship[1].relationship-data[0].relationship-value`' />\n<parameter name='ll-to-be-updated.' value='`$tmp.aai.logical-links.logical-link[$llidx].`' />\n",
234     "comments": "",
235     "x": 1267,
236     "y": 275,
237     "z": "2d51e841.8826c",
238     "wires": []
239   },
240   {
241     "id": "c6421633.502c1",
242     "type": "switchNode",
243     "name": "switch dst-tpId",
244     "xml": "<switch test='$dst-tpId'>\n",
245     "comments": "",
246     "outputs": 1,
247     "x": 1252,
248     "y": 331,
249     "z": "2d51e841.8826c",
250     "wires": [
251       [
252         "b47ff6eb.a4d9f"
253       ]
254     ]
255   },
256   {
257     "id": "b47ff6eb.a4d9f",
258     "type": "outcome",
259     "name": "Null",
260     "xml": "<outcome value=''>\n",
261     "comments": "",
262     "outputs": 1,
263     "x": 1410,
264     "y": 329,
265     "z": "2d51e841.8826c",
266     "wires": [
267       [
268         "16724920.b5473f"
269       ]
270     ]
271   },
272   {
273     "id": "16724920.b5473f",
274     "type": "get-resource",
275     "name": "get-resource src-tp",
276     "xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\t\tresource=\"p-interface\" \n\t\tkey=\"p-interface.interface-name = $src-ltpId \n\t\tAND depth = '0'\"\n        pfx='tmp.aai.src-tp' local-only='false' >\n\n\n",
277     "comments": "",
278     "outputs": 1,
279     "x": 1651,
280     "y": 323,
281     "z": "2d51e841.8826c",
282     "wires": [
283       [
284         "ddb47bdc.dd3e1",
285         "75823244.f30b6c",
286         "a5faba9c.6ae828"
287       ]
288     ]
289   },
290   {
291     "id": "ddb47bdc.dd3e1",
292     "type": "success",
293     "name": "success",
294     "xml": "<outcome value='success'>\n",
295     "comments": "",
296     "outputs": 1,
297     "x": 1837,
298     "y": 275,
299     "z": "2d51e841.8826c",
300     "wires": [
301       [
302         "7fbf5312.2bd97c"
303       ]
304     ]
305   },
306   {
307     "id": "75823244.f30b6c",
308     "type": "not-found",
309     "name": "not-found",
310     "xml": "<outcome value='not-found'>\n",
311     "comments": "",
312     "outputs": 1,
313     "x": 1840.490966796875,
314     "y": 322.57403564453125,
315     "z": "2d51e841.8826c",
316     "wires": [
317       [
318         "5bc2c58e.453e6c"
319       ]
320     ]
321   },
322   {
323     "id": "a5faba9c.6ae828",
324     "type": "other",
325     "name": "other",
326     "xml": "<outcome value='Other'>\n",
327     "comments": "",
328     "outputs": 1,
329     "x": 1835.823974609375,
330     "y": 363.9073486328125,
331     "z": "2d51e841.8826c",
332     "wires": [
333       [
334         "24a60b72.e80d8c"
335       ]
336     ]
337   },
338   {
339     "id": "5bc2c58e.453e6c",
340     "type": "returnFailure",
341     "name": "return failure",
342     "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=\"`'An error occurred while querying pnf from AnAI with pnf-name = ' + $prop.l3vpn.pe1_id`\" />\n\n",
343     "comments": "",
344     "x": 2017.0623779296875,
345     "y": 310.8597717285156,
346     "z": "2d51e841.8826c",
347     "wires": []
348   },
349   {
350     "id": "24a60b72.e80d8c",
351     "type": "returnFailure",
352     "name": "return failure",
353     "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=\"`'Unexpected error occurred while querying pnf from AnAI with pnf-name = ' + $prop.l3vpn.pe1_id`\" />\n\n",
354     "comments": "",
355     "x": 2023.5965309143066,
356     "y": 359.3465414047241,
357     "z": "2d51e841.8826c",
358     "wires": []
359   },
360   {
361     "id": "7fbf5312.2bd97c",
362     "type": "set",
363     "name": "set src-plug-id",
364     "xml": "<set>\n<parameter name='src-plug-id' value='`$tmp.aai.src-tp.inter-domain-plug-id`' />\n",
365     "comments": "",
366     "x": 1993,
367     "y": 253,
368     "z": "2d51e841.8826c",
369     "wires": []
370   },
371   {
372     "id": "a2711f41.99aed",
373     "type": "get-resource",
374     "name": "get-resource all p-interfaces",
375     "xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\t\tresource=\"p-interfaces\" \n        pfx='tmp.aai.p-interfaces' local-only='false' >\n\n\n",
376     "comments": "",
377     "outputs": 1,
378     "x": 1266,
379     "y": 410,
380     "z": "2d51e841.8826c",
381     "wires": [
382       [
383         "a9ec6ed8.02a288",
384         "e66f15d8.7cc2a8"
385       ]
386     ]
387   },
388   {
389     "id": "a9ec6ed8.02a288",
390     "type": "success",
391     "name": "success",
392     "xml": "<outcome value='success'>\n",
393     "comments": "",
394     "outputs": 1,
395     "x": 1467,
396     "y": 462,
397     "z": "2d51e841.8826c",
398     "wires": [
399       [
400         "87b285e9.edf858"
401       ]
402     ]
403   },
404   {
405     "id": "e66f15d8.7cc2a8",
406     "type": "not-found",
407     "name": "not-found",
408     "xml": "<outcome value='not-found'>\n",
409     "comments": "",
410     "outputs": 1,
411     "x": 1470.490966796875,
412     "y": 509.57403564453125,
413     "z": "2d51e841.8826c",
414     "wires": [
415       [
416         "ab0ecfce.ced48"
417       ]
418     ]
419   },
420   {
421     "id": "7daaa9de.7015e",
422     "type": "other",
423     "name": "other",
424     "xml": "<outcome value='Other'>\n",
425     "comments": "",
426     "outputs": 1,
427     "x": 1465.823974609375,
428     "y": 550.9073486328125,
429     "z": "2d51e841.8826c",
430     "wires": [
431       [
432         "5ce824c0.079a3c"
433       ]
434     ]
435   },
436   {
437     "id": "ab0ecfce.ced48",
438     "type": "returnFailure",
439     "name": "return failure",
440     "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=\"`'An error occurred while querying pnf from AnAI with pnf-name = ' + $prop.l3vpn.pe1_id`\" />\n\n",
441     "comments": "",
442     "x": 1691.0623779296875,
443     "y": 509.8597717285156,
444     "z": "2d51e841.8826c",
445     "wires": []
446   },
447   {
448     "id": "5ce824c0.079a3c",
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=\"`'Unexpected error occurred while querying pnf from AnAI with pnf-name = ' + $prop.l3vpn.pe1_id`\" />\n\n",
452     "comments": "",
453     "x": 1689.5965576171875,
454     "y": 558.3465270996094,
455     "z": "2d51e841.8826c",
456     "wires": []
457   },
458   {
459     "id": "87b285e9.edf858",
460     "type": "for",
461     "name": "for tpidx..p-interfaces",
462     "xml": "<for index='tpidx' start='0' end='`$tmp.aai.p-interfaces.p-interface_length`' >\n",
463     "comments": "",
464     "outputs": 1,
465     "x": 1717,
466     "y": 455,
467     "z": "2d51e841.8826c",
468     "wires": [
469       [
470         "caee7f5b.2e999"
471       ]
472     ]
473   },
474   {
475     "id": "caee7f5b.2e999",
476     "type": "switchNode",
477     "name": "switch p-interface plug-id",
478     "xml": "<switch test='`$tmp.aai.p-interfaces.p-interface[$tpidx].inter-domain-plug-id`'>\n",
479     "comments": "",
480     "outputs": 1,
481     "x": 1970,
482     "y": 454,
483     "z": "2d51e841.8826c",
484     "wires": [
485       [
486         "36abe849.5c4c28"
487       ]
488     ]
489   },
490   {
491     "id": "36abe849.5c4c28",
492     "type": "outcome",
493     "name": "src-plug-id",
494     "xml": "<outcome value='`$src-plug-id`'>\n",
495     "comments": "",
496     "outputs": 1,
497     "x": 2190,
498     "y": 455,
499     "z": "2d51e841.8826c",
500     "wires": [
501       [
502         "3f76c8e3.c93db"
503       ]
504     ]
505   },
506   {
507     "id": "3f76c8e3.c93db",
508     "type": "switchNode",
509     "name": "switch p-interface id != src-tp-id",
510     "xml": "<switch test='`$tmp.aai.p-interfaces.p-interface[$tpidx].interface-name != $src-tp-id `'>\n",
511     "comments": "",
512     "outputs": 1,
513     "x": 2278,
514     "y": 560,
515     "z": "2d51e841.8826c",
516     "wires": [
517       [
518         "5880ad72.3e02cc"
519       ]
520     ]
521   },
522   {
523     "id": "5880ad72.3e02cc",
524     "type": "outcomeTrue",
525     "name": "true",
526     "xml": "<outcome value='true'>\n",
527     "comments": "",
528     "outputs": 1,
529     "x": 2496,
530     "y": 561,
531     "z": "2d51e841.8826c",
532     "wires": [
533       [
534         "5ec22f81.96987"
535       ]
536     ]
537   },
538   {
539     "id": "a4250947.c5b9c8",
540     "type": "save",
541     "name": "update dest TP",
542     "xml": "<update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='logical-link:relationship-list' \n      key='logical-link.link-name = $ll-to-be-updated.link-name' force=\"true\" pfx=\"tmp.AnAI-data\">\n\n<parameter name=\"relationship-list.relationship[1].related-to\" value=\"p-interface\" />\n<parameter name=\"relationship-list.relationship[1].related-link\" value=\"`'/p-interfaces/p-interface/' + $dst-tp-new`\" />\n<parameter name=\"relationship-list.relationship[1].relationship-data[0].relationship-key\" value=\"p-interface.interface-name\" />\n<parameter name=\"relationship-list.relationship[1].relationship-data[0].relationship-value\" value=\"`$dst-tp-new`\" />",
543     "comments": "",
544     "outputs": 1,
545     "x": 2846,
546     "y": 596,
547     "z": "2d51e841.8826c",
548     "wires": [
549       []
550     ]
551   },
552   {
553     "id": "5ec22f81.96987",
554     "type": "block",
555     "name": "block : atomic",
556     "xml": "<block atomic='true'>",
557     "atomic": "true",
558     "comments": "",
559     "outputs": 1,
560     "x": 2651,
561     "y": 561,
562     "z": "2d51e841.8826c",
563     "wires": [
564       [
565         "4ca48c5e.f576ec",
566         "a4250947.c5b9c8"
567       ]
568     ]
569   },
570   {
571     "id": "4ca48c5e.f576ec",
572     "type": "set",
573     "name": "set dst-tp-new",
574     "xml": "<set>\n<parameter name='dst-tp-new' value='`$tmp.aai.p-interfaces.p-interface[$tpidx].interface-name`' />\n",
575     "comments": "",
576     "x": 2820,
577     "y": 525,
578     "z": "2d51e841.8826c",
579     "wires": []
580   }
581 ]