Bug fixing in DGs related to network and links storing in AAI.
[sdnc/oam.git] / platform-logic / datachange / src / main / json / DataChange_update-network-links-to-aai.json
1 [
2   {
3     "id": "5858bb6c.1c5b2c",
4     "type": "dgstart",
5     "name": "DGSTART",
6     "outputs": 1,
7     "x": 116,
8     "y": 67,
9     "z": "3cbec5d5.54ea02",
10     "wires": [
11       [
12         "350dfcb7.24e654"
13       ]
14     ]
15   },
16   {
17     "id": "350dfcb7.24e654",
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": 173,
26     "y": 146.888916015625,
27     "z": "3cbec5d5.54ea02",
28     "wires": [
29       [
30         "92cd3521.3e4e6"
31       ]
32     ]
33   },
34   {
35     "id": "92cd3521.3e4e6",
36     "type": "method",
37     "name": "method update-network-links-to-aai",
38     "xml": "<method rpc='update-network-links-to-aai' mode='sync'>\n",
39     "comments": "",
40     "outputs": 1,
41     "x": 187,
42     "y": 223.22222900390625,
43     "z": "3cbec5d5.54ea02",
44     "wires": [
45       [
46         "b665c6f2.69a4d"
47       ]
48     ]
49   },
50   {
51     "id": "b665c6f2.69a4d",
52     "type": "block",
53     "name": "block : atomic",
54     "xml": "<block atomic=\"true\">\n",
55     "atomic": "false",
56     "comments": "",
57     "outputs": 1,
58     "x": 198.33343505859375,
59     "y": 300.7779235839844,
60     "z": "3cbec5d5.54ea02",
61     "wires": [
62       [
63         "c59c9b79.9f8cc"
64       ]
65     ]
66   },
67   {
68     "id": "f41ff5d9.72c91",
69     "type": "update",
70     "name": "save logical-link with regular id",
71     "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='logical-link' \n      key='logical-link.link-name = $unique-linkId' >\n<parameter name='link-name' value='`$unique-linkId`' />\n<parameter name='link-id' value='`$link.link-id`' />\n<parameter name='link-type' value='`$link.te.te-link-attributes.access-type`' />\n\n\n\n\n\n",
72     "comments": "",
73     "outputs": 1,
74     "x": 1156.111083984375,
75     "y": 546.111083984375,
76     "z": "3cbec5d5.54ea02",
77     "wires": [
78       []
79     ]
80   },
81   {
82     "id": "c59c9b79.9f8cc",
83     "type": "for",
84     "name": "for each link",
85     "xml": "<for index='pidx' start='0' end='`$network.link_length`' >\n",
86     "comments": "",
87     "outputs": 1,
88     "x": 226.88885498046875,
89     "y": 394.33331298828125,
90     "z": "3cbec5d5.54ea02",
91     "wires": [
92       [
93         "6d5acc0f.b7df54",
94         "8fbc8f1e.fe24c8",
95         "954c1d48.971018",
96         "915555f.abb44a8"
97       ]
98     ]
99   },
100   {
101     "id": "6d5acc0f.b7df54",
102     "type": "set",
103     "name": "set network link's local variables",
104     "xml": "<set>\n<parameter name='link.' value='`$network.link[$pidx].`' />\n<parameter name='unique-networkId' value='`$tmp.network-id`' />\n\n",
105     "comments": "",
106     "x": 572.111083984375,
107     "y": 62.22221374511719,
108     "z": "3cbec5d5.54ea02",
109     "wires": []
110   },
111   {
112     "id": "7a38f4d0.9f3e6c",
113     "type": "for",
114     "name": "for each label-restriction",
115     "xml": "<for index='tidx' start='0' end='`$link.te.te-link-attributes.label-restriction_length`' >\n",
116     "comments": "",
117     "outputs": 1,
118     "x": 1535.4444580078125,
119     "y": 712.111083984375,
120     "z": "3cbec5d5.54ea02",
121     "wires": [
122       [
123         "556fc245.d19e3c",
124         "d6c13a1b.e798a",
125         "69e9f586.641064"
126       ]
127     ]
128   },
129   {
130     "id": "556fc245.d19e3c",
131     "type": "set",
132     "name": "set label-restriction's local variables",
133     "xml": "<set>\n<parameter name='label-restriction.' value='`$link.te.te-link-attributes.label-restriction[$tidx].`' />\n<parameter name='unique-lrId' value=\"`$unique-linkId + '-lrId-' + $label-restriction.index`\" />\n",
134     "comments": "",
135     "x": 1870.111328125,
136     "y": 635.0000610351562,
137     "z": "3cbec5d5.54ea02",
138     "wires": []
139   },
140   {
141     "id": "3398d2c0.69ae06",
142     "type": "success",
143     "name": "success",
144     "xml": "<outcome value='success'>\n",
145     "comments": "",
146     "outputs": 1,
147     "x": 2005.4998779296875,
148     "y": 679.74609375,
149     "z": "3cbec5d5.54ea02",
150     "wires": [
151       [
152         "abb716be.3fb59"
153       ]
154     ]
155   },
156   {
157     "id": "3d46f558.3e53f2",
158     "type": "failure",
159     "name": "failure",
160     "xml": "<outcome value='failure'>\n",
161     "comments": "",
162     "outputs": 1,
163     "x": 2013.178466796875,
164     "y": 738.9604187011719,
165     "z": "3cbec5d5.54ea02",
166     "wires": [
167       [
168         "f0df0cf2.e46b6"
169       ]
170     ]
171   },
172   {
173     "id": "abb716be.3fb59",
174     "type": "block",
175     "name": "block",
176     "xml": "<block>\n",
177     "atomic": "false",
178     "comments": "",
179     "outputs": 1,
180     "x": 2166,
181     "y": 679.0000305175781,
182     "z": "3cbec5d5.54ea02",
183     "wires": [
184       []
185     ]
186   },
187   {
188     "id": "9aed5c80.54f11",
189     "type": "set",
190     "name": "set src-ltpId dst-ltpId",
191     "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`\" />",
192     "comments": "",
193     "x": 2586.5001220703125,
194     "y": 2414.545135498047,
195     "z": "3cbec5d5.54ea02",
196     "wires": []
197   },
198   {
199     "id": "ce693523.2da318",
200     "type": "save",
201     "name": "save srcLTP relationship in AAI",
202     "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",
203     "comments": "",
204     "outputs": 1,
205     "x": 2620.0001220703125,
206     "y": 2454.545135498047,
207     "z": "3cbec5d5.54ea02",
208     "wires": [
209       []
210     ]
211   },
212   {
213     "id": "72343f4d.bac85",
214     "type": "save",
215     "name": "save dstLTP relationship in AAI",
216     "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`\" />",
217     "comments": "",
218     "outputs": 1,
219     "x": 2620.0001220703125,
220     "y": 2494.545135498047,
221     "z": "3cbec5d5.54ea02",
222     "wires": [
223       []
224     ]
225   },
226   {
227     "id": "f0df0cf2.e46b6",
228     "type": "update",
229     "name": "save label-restriction",
230     "xml": "<update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='label-restriction' \n      key='logical-link.link-name = $unique-linkId\n      AND label-restriction.id = $unique-lrId' >      \n<parameter name='id' value='`$unique-lrId`' />\n<parameter name='label-start' value='`$label-restriction.label-start`' />\n<parameter name='label-end' value='`$label-restriction.label-end`' />\n<parameter name='range-bitmap' value='`$label-restriction.range-bitmap`' />\n<parameter name='label-step' value='`$label-restriction.label-step`' />\n<parameter name='inclusive-exclusive' value='`$label-restriction.inclusive-exclusive`' />\n\n",
231     "comments": "",
232     "outputs": 1,
233     "x": 2197,
234     "y": 739.0000305175781,
235     "z": "3cbec5d5.54ea02",
236     "wires": [
237       []
238     ]
239   },
240   {
241     "id": "d6c13a1b.e798a",
242     "type": "save",
243     "name": "save link relationship to label-restriction in AAI",
244     "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='logical-link:relationship-list' \n      key='logical-link.link-name = $unique-linkId' force=\"true\" pfx=\"tmp.AnAI-data\">\n<parameter name=\"relationship-list.relationship[$tidx].related-to\" value=\"label-restriction\" />\n<parameter name=\"relationship-list.relationship[$tidx].related-link\" value=\"`'/network/label-restrictions/label-restriction/' + $unique-lrId`\" />\n<parameter name=\"relationship-list.relationship[$tidx].relationship-data[0].relationship-key\" value=\"label-restriction.id\" />\n<parameter name=\"relationship-list.relationship[$tidx].relationship-data[0].relationship-value\" value=\"`$unique-lrId`\" />\n",
245     "comments": "",
246     "outputs": 1,
247     "x": 1892,
248     "y": 793,
249     "z": "3cbec5d5.54ea02",
250     "wires": [
251       []
252     ]
253   },
254   {
255     "id": "69e9f586.641064",
256     "type": "update",
257     "name": "save label-restriction",
258     "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='label-restriction' \n      key='logical-link.link-name = $unique-linkId\n      AND label-restriction.id = $unique-lrId' >      \n<parameter name='id' value='`$unique-lrId`' />\n<parameter name='label-start' value='`$label-restriction.label-start`' />\n<parameter name='label-end' value='`$label-restriction.label-end`' />\n<parameter name='range-bitmap' value='`$label-restriction.range-bitmap`' />\n<parameter name='label-step' value='`$label-restriction.label-step`' />\n<parameter name='inclusive-exclusive' value='`$label-restriction.inclusive-exclusive`' />\n\n",
259     "comments": "",
260     "outputs": 1,
261     "x": 1814.815185546875,
262     "y": 711.5556640625,
263     "z": "3cbec5d5.54ea02",
264     "wires": [
265       [
266         "3398d2c0.69ae06",
267         "3d46f558.3e53f2"
268       ]
269     ]
270   },
271   {
272     "id": "9c77d572.aa0dd",
273     "type": "switchNode",
274     "name": "switch te-link-attributes",
275     "xml": "<switch test='`$link.te.te-link-attributes.label-restriction`'>\n",
276     "comments": "",
277     "outputs": 1,
278     "x": 1135,
279     "y": 668,
280     "z": "3cbec5d5.54ea02",
281     "wires": [
282       [
283         "acb46a14.faf1b8",
284         "fad2e2be.055cd8"
285       ]
286     ]
287   },
288   {
289     "id": "acb46a14.faf1b8",
290     "type": "outcome",
291     "name": "Null",
292     "xml": "<outcome value=''>\n",
293     "comments": "",
294     "outputs": 1,
295     "x": 1324,
296     "y": 639,
297     "z": "3cbec5d5.54ea02",
298     "wires": [
299       [
300         "b663d811.06fad8"
301       ]
302     ]
303   },
304   {
305     "id": "b663d811.06fad8",
306     "type": "block",
307     "name": "block",
308     "xml": "<block>\n",
309     "atomic": "false",
310     "comments": "",
311     "outputs": 1,
312     "x": 1484,
313     "y": 638,
314     "z": "3cbec5d5.54ea02",
315     "wires": [
316       []
317     ]
318   },
319   {
320     "id": "fad2e2be.055cd8",
321     "type": "other",
322     "name": "other",
323     "xml": "<outcome value='Other'>\n",
324     "comments": "",
325     "outputs": 1,
326     "x": 1328,
327     "y": 712,
328     "z": "3cbec5d5.54ea02",
329     "wires": [
330       [
331         "7a38f4d0.9f3e6c"
332       ]
333     ]
334   },
335   {
336     "id": "8fbc8f1e.fe24c8",
337     "type": "switchNode",
338     "name": "switch link.destination",
339     "xml": "<switch test='`$link.destination`'>\n",
340     "comments": "",
341     "outputs": 1,
342     "x": 540,
343     "y": 158,
344     "z": "3cbec5d5.54ea02",
345     "wires": [
346       [
347         "44b39c00.9558ec",
348         "d8a931d0.793fd"
349       ]
350     ]
351   },
352   {
353     "id": "44b39c00.9558ec",
354     "type": "outcome",
355     "name": "Null",
356     "xml": "<outcome value=''>\n",
357     "comments": "",
358     "outputs": 1,
359     "x": 784,
360     "y": 129,
361     "z": "3cbec5d5.54ea02",
362     "wires": [
363       [
364         "dd848e51.9b8178"
365       ]
366     ]
367   },
368   {
369     "id": "d8a931d0.793fd",
370     "type": "other",
371     "name": "other",
372     "xml": "<outcome value='Other'>\n",
373     "comments": "",
374     "outputs": 1,
375     "x": 736,
376     "y": 190,
377     "z": "3cbec5d5.54ea02",
378     "wires": [
379       [
380         "bdffabea.a9f78"
381       ]
382     ]
383   },
384   {
385     "id": "bdffabea.a9f78",
386     "type": "set",
387     "name": "set network link's destination variables",
388     "xml": "<set>\n<parameter name='dst-tpId' value=\"`'networkId-' + $unique-networkId + '-nodeId-' + $link.destination.dest-node + '-ltpId-' + $link.destination.dest-tp`\" />\n<parameter name='unique-dst-node-Id' value=\"`'networkId-' + $unique-networkId + '-nodeId-' + $link.destination.dest-node`\" />\n<parameter name='is-open-ended-link' value='false' />\n\n",
389     "comments": "",
390     "x": 965,
391     "y": 190,
392     "z": "3cbec5d5.54ea02",
393     "wires": []
394   },
395   {
396     "id": "d1d8b826.4d04f",
397     "type": "set",
398     "name": "set is-open-ended-link",
399     "xml": "<set>\n<parameter name='is-open-ended-link' value='true' />\n\n",
400     "comments": "",
401     "x": 1144,
402     "y": 94,
403     "z": "3cbec5d5.54ea02",
404     "wires": []
405   },
406   {
407     "id": "b17a800b.11d598",
408     "type": "save",
409     "name": "get p-interface from aai",
410     "xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\tresource=\"p-interface\"\n\t    key=\"pnf.pnf-name = $unique-src-node-Id\n\t        and p-interface.interface-name = $src-tpId\"\n\t\tlocal-only=\"false\" \n\t\tpfx=\"tmp.aai.p-interface\" >",
411     "comments": "",
412     "outputs": 1,
413     "x": 1146,
414     "y": 150,
415     "z": "3cbec5d5.54ea02",
416     "wires": [
417       [
418         "698d4309.a506a4",
419         "c0b09280.fde57",
420         "b035740b.82c768"
421       ]
422     ]
423   },
424   {
425     "id": "698d4309.a506a4",
426     "type": "success",
427     "name": "success",
428     "xml": "<outcome value='success'>\n",
429     "comments": "",
430     "outputs": 1,
431     "x": 1389,
432     "y": 145,
433     "z": "3cbec5d5.54ea02",
434     "wires": [
435       [
436         "d4d599ee.a3913"
437       ]
438     ]
439   },
440   {
441     "id": "c0b09280.fde57",
442     "type": "failure",
443     "name": "failure",
444     "xml": "<outcome value='failure'>\n",
445     "comments": "",
446     "outputs": 1,
447     "x": 1387,
448     "y": 234,
449     "z": "3cbec5d5.54ea02",
450     "wires": [
451       [
452         "d42c9066.3cdb28"
453       ]
454     ]
455   },
456   {
457     "id": "d4d599ee.a3913",
458     "type": "set",
459     "name": "set alternative unique link id",
460     "xml": "<set>\n<parameter name='alt-unique-linkId' value=\"`$tmp.aai.p-interface.inter-domain-plug-id`\" />\n\n",
461     "comments": "",
462     "x": 1597,
463     "y": 147,
464     "z": "3cbec5d5.54ea02",
465     "wires": []
466   },
467   {
468     "id": "d42c9066.3cdb28",
469     "type": "returnFailure",
470     "name": "return failure",
471     "xml": "<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value='' />\n",
472     "comments": "",
473     "x": 1556,
474     "y": 235,
475     "z": "3cbec5d5.54ea02",
476     "wires": []
477   },
478   {
479     "id": "f65cb67d.b3d368",
480     "type": "save",
481     "name": "get logical-link from aai",
482     "xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\tresource=\"logical-link\"\n\t    key=\"logical-link.link-name = $alt-unique-linkId\"\n\t\tlocal-only=\"false\" \n\t\tpfx=\"tmp.aai.logical-link\" >",
483     "comments": "",
484     "outputs": 1,
485     "x": 943,
486     "y": 355,
487     "z": "3cbec5d5.54ea02",
488     "wires": [
489       [
490         "48397109.a69d68",
491         "efa56bf.4c6db98"
492       ]
493     ]
494   },
495   {
496     "id": "b035740b.82c768",
497     "type": "not-found",
498     "name": "not-found",
499     "xml": "<outcome value='not-found'>\n",
500     "comments": "",
501     "outputs": 1,
502     "x": 1398.490966796875,
503     "y": 187.57403564453125,
504     "z": "3cbec5d5.54ea02",
505     "wires": [
506       [
507         "6959706d.7f87e8"
508       ]
509     ]
510   },
511   {
512     "id": "6959706d.7f87e8",
513     "type": "returnFailure",
514     "name": "return failure",
515     "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",
516     "comments": "",
517     "x": 1552.0623779296875,
518     "y": 190.85977172851562,
519     "z": "3cbec5d5.54ea02",
520     "wires": []
521   },
522   {
523     "id": "954c1d48.971018",
524     "type": "switchNode",
525     "name": "switch is-open-ended-link",
526     "xml": "<switch test='`$is-open-ended-link`'>\n",
527     "comments": "",
528     "outputs": 1,
529     "x": 522,
530     "y": 394,
531     "z": "3cbec5d5.54ea02",
532     "wires": [
533       [
534         "4e6e74a5.e8af4c",
535         "53a87226.590744"
536       ]
537     ]
538   },
539   {
540     "id": "4e6e74a5.e8af4c",
541     "type": "outcomeFalse",
542     "name": "false",
543     "xml": "<outcome value='false'>\n",
544     "comments": "",
545     "outputs": 1,
546     "x": 739,
547     "y": 416,
548     "z": "3cbec5d5.54ea02",
549     "wires": [
550       [
551         "2e08f3a1.53987c"
552       ]
553     ]
554   },
555   {
556     "id": "53a87226.590744",
557     "type": "outcomeTrue",
558     "name": "true",
559     "xml": "<outcome value='true'>\n",
560     "comments": "",
561     "outputs": 1,
562     "x": 742,
563     "y": 356,
564     "z": "3cbec5d5.54ea02",
565     "wires": [
566       [
567         "f65cb67d.b3d368"
568       ]
569     ]
570   },
571   {
572     "id": "48397109.a69d68",
573     "type": "success",
574     "name": "success",
575     "xml": "<outcome value='success'>\n",
576     "comments": "",
577     "outputs": 1,
578     "x": 1140,
579     "y": 325,
580     "z": "3cbec5d5.54ea02",
581     "wires": [
582       [
583         "6b973.4170168dc"
584       ]
585     ]
586   },
587   {
588     "id": "efa56bf.4c6db98",
589     "type": "not-found",
590     "name": "not-found",
591     "xml": "<outcome value='not-found'>\n",
592     "comments": "",
593     "outputs": 1,
594     "x": 1143.490966796875,
595     "y": 365.57403564453125,
596     "z": "3cbec5d5.54ea02",
597     "wires": [
598       [
599         "ef51ee2a.cafb5"
600       ]
601     ]
602   },
603   {
604     "id": "842144b1.a1cb2",
605     "type": "update",
606     "name": "save logical-link with alternative link id",
607     "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='logical-link' \n      key='logical-link.link-name = $alt-unique-linkId' >\n<parameter name='link-name' value='`$alt-unique-linkId`' />\n<parameter name='link-id' value='`$link.link-id`' />\n<parameter name='link-type' value='`$link.te.te-link-attributes.access-type`' />\n\n\n\n\n\n",
608     "comments": "",
609     "outputs": 1,
610     "x": 1590,
611     "y": 368,
612     "z": "3cbec5d5.54ea02",
613     "wires": [
614       []
615     ]
616   },
617   {
618     "id": "2e08f3a1.53987c",
619     "type": "block",
620     "name": "block : atomic",
621     "xml": "<block atomic='true'>",
622     "atomic": "true",
623     "comments": "",
624     "outputs": 1,
625     "x": 917,
626     "y": 424,
627     "z": "3cbec5d5.54ea02",
628     "wires": [
629       [
630         "f41ff5d9.72c91",
631         "9c77d572.aa0dd",
632         "34901df.74cf7e2"
633       ]
634     ]
635   },
636   {
637     "id": "6b973.4170168dc",
638     "type": "save",
639     "name": "update dest TP by putting src TP of the current link",
640     "xml": "<update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='logical-link:relationship-list' \n      key='logical-link.link-name = $alt-unique-linkId' 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/' + $unique-src-node-Id + '/p-interfaces/p-interface/' + $src-tpId`\" />-->\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-tpId`\" />-->\n\n<parameter name=\"relationship-list.relationship[1].related-to\" value=\"p-interface\" />\n<parameter name=\"relationship-list.relationship[1].related-link\" value=\"`'/network/pnfs/pnf/' + $unique-src-node-Id + '/p-interfaces/p-interface/' + $src-tpId`\" />\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=\"`$src-tpId`\" />",
641     "comments": "",
642     "outputs": 1,
643     "x": 1429,
644     "y": 321,
645     "z": "3cbec5d5.54ea02",
646     "wires": [
647       []
648     ]
649   },
650   {
651     "id": "34901df.74cf7e2",
652     "type": "save",
653     "name": "save source and dest TP",
654     "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='logical-link:relationship-list' \n      key='logical-link.link-name = $unique-linkId' 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/' + $unique-src-node-Id + '/p-interfaces/p-interface/' + $src-tpId`\" />\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-tpId`\" />\n\n<parameter name=\"relationship-list.relationship[1].related-to\" value=\"p-interface\" />\n<parameter name=\"relationship-list.relationship[1].related-link\" value=\"`'/network/pnfs/pnf/' + $unique-dst-node-Id + '/p-interfaces/p-interface/' + $dst-tpId`\" />\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-tpId`\" />",
655     "comments": "",
656     "outputs": 1,
657     "x": 1142,
658     "y": 601,
659     "z": "3cbec5d5.54ea02",
660     "wires": [
661       []
662     ]
663   },
664   {
665     "id": "dd848e51.9b8178",
666     "type": "block",
667     "name": "block",
668     "xml": "<block>\n",
669     "atomic": "false",
670     "comments": "",
671     "outputs": 1,
672     "x": 927,
673     "y": 126,
674     "z": "3cbec5d5.54ea02",
675     "wires": [
676       [
677         "d1d8b826.4d04f",
678         "b17a800b.11d598"
679       ]
680     ]
681   },
682   {
683     "id": "ef51ee2a.cafb5",
684     "type": "block",
685     "name": "block : atomic",
686     "xml": "<block atomic='true'>",
687     "atomic": "true",
688     "comments": "",
689     "outputs": 1,
690     "x": 1314,
691     "y": 366,
692     "z": "3cbec5d5.54ea02",
693     "wires": [
694       [
695         "842144b1.a1cb2",
696         "9ab70c9.3d83df",
697         "dd8767a.3acd918"
698       ]
699     ]
700   },
701   {
702     "id": "9ab70c9.3d83df",
703     "type": "save",
704     "name": "save source only",
705     "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='logical-link:relationship-list' \n      key='logical-link.link-name = $unique-linkId' 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/' + $unique-src-node-Id + '/p-interfaces/p-interface/' + $src-tpId`\" />\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-tpId`\" />\n",
706     "comments": "",
707     "outputs": 1,
708     "x": 1527,
709     "y": 416,
710     "z": "3cbec5d5.54ea02",
711     "wires": [
712       []
713     ]
714   },
715   {
716     "id": "ec4710d1.a4614",
717     "type": "for",
718     "name": "for each label-restriction",
719     "xml": "<for index='tidx' start='0' end='`$link.te.te-link-attributes.label-restriction_length`' >\n",
720     "comments": "",
721     "outputs": 1,
722     "x": 1933,
723     "y": 499,
724     "z": "3cbec5d5.54ea02",
725     "wires": [
726       [
727         "5f4e6661.8be42",
728         "bf1c8950.f6775",
729         "869edf38.84c148"
730       ]
731     ]
732   },
733   {
734     "id": "5f4e6661.8be42",
735     "type": "set",
736     "name": "set label-restriction's local variables",
737     "xml": "<set>\n<parameter name='label-restriction.' value='`$link.te.te-link-attributes.label-restriction[$tidx].`' />\n<parameter name='unique-lrId' value=\"`$alt-unique-linkId + '-lrId-' + $label-restriction.index`\" />\n",
738     "comments": "",
739     "x": 2267.6668701171875,
740     "y": 421.88897705078125,
741     "z": "3cbec5d5.54ea02",
742     "wires": []
743   },
744   {
745     "id": "7135b68.c08c3c8",
746     "type": "success",
747     "name": "success",
748     "xml": "<outcome value='success'>\n",
749     "comments": "",
750     "outputs": 1,
751     "x": 2403.055419921875,
752     "y": 466.635009765625,
753     "z": "3cbec5d5.54ea02",
754     "wires": [
755       [
756         "2043dae3.034356"
757       ]
758     ]
759   },
760   {
761     "id": "69007117.c84f9",
762     "type": "failure",
763     "name": "failure",
764     "xml": "<outcome value='failure'>\n",
765     "comments": "",
766     "outputs": 1,
767     "x": 2410.7340087890625,
768     "y": 525.8493347167969,
769     "z": "3cbec5d5.54ea02",
770     "wires": [
771       [
772         "30f94010.a2f0b"
773       ]
774     ]
775   },
776   {
777     "id": "2043dae3.034356",
778     "type": "block",
779     "name": "block",
780     "xml": "<block>\n",
781     "atomic": "false",
782     "comments": "",
783     "outputs": 1,
784     "x": 2563.5555419921875,
785     "y": 465.8889465332031,
786     "z": "3cbec5d5.54ea02",
787     "wires": [
788       []
789     ]
790   },
791   {
792     "id": "30f94010.a2f0b",
793     "type": "update",
794     "name": "save label-restriction",
795     "xml": "<update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='label-restriction' \n      key='logical-link.link-name = $alt-unique-linkId\n      AND label-restriction.id = $unique-lrId' >      \n<parameter name='id' value='`$unique-lrId`' />\n<parameter name='label-start' value='`$label-restriction.label-start`' />\n<parameter name='label-end' value='`$label-restriction.label-end`' />\n<parameter name='range-bitmap' value='`$label-restriction.range-bitmap`' />\n<parameter name='label-step' value='`$label-restriction.label-step`' />\n<parameter name='inclusive-exclusive' value='`$label-restriction.inclusive-exclusive`' />\n\n",
796     "comments": "",
797     "outputs": 1,
798     "x": 2594.5555419921875,
799     "y": 525.8889465332031,
800     "z": "3cbec5d5.54ea02",
801     "wires": [
802       []
803     ]
804   },
805   {
806     "id": "bf1c8950.f6775",
807     "type": "save",
808     "name": "save link relationship to label-restriction in AAI",
809     "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='logical-link:relationship-list' \n      key='logical-link.link-name = $alt-unique-linkId' force=\"true\" pfx=\"tmp.AnAI-data\">\n<parameter name=\"relationship-list.relationship[$tidx].related-to\" value=\"label-restriction\" />\n<parameter name=\"relationship-list.relationship[$tidx].related-link\" value=\"`'/network/label-restrictions/label-restriction/' + $unique-lrId`\" />\n<parameter name=\"relationship-list.relationship[$tidx].relationship-data[0].relationship-key\" value=\"label-restriction.id\" />\n<parameter name=\"relationship-list.relationship[$tidx].relationship-data[0].relationship-value\" value=\"`$unique-lrId`\" />\n",
810     "comments": "",
811     "outputs": 1,
812     "x": 2289.5555419921875,
813     "y": 579.888916015625,
814     "z": "3cbec5d5.54ea02",
815     "wires": [
816       []
817     ]
818   },
819   {
820     "id": "869edf38.84c148",
821     "type": "update",
822     "name": "save label-restriction",
823     "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='label-restriction' \n      key='logical-link.link-name = $alt-unique-linkId\n      AND label-restriction.id = $unique-lrId' >      \n<parameter name='id' value='`$unique-lrId`' />\n<parameter name='label-start' value='`$label-restriction.label-start`' />\n<parameter name='label-end' value='`$label-restriction.label-end`' />\n<parameter name='range-bitmap' value='`$label-restriction.range-bitmap`' />\n<parameter name='label-step' value='`$label-restriction.label-step`' />\n<parameter name='inclusive-exclusive' value='`$label-restriction.inclusive-exclusive`' />\n\n",
824     "comments": "",
825     "outputs": 1,
826     "x": 2212.3707275390625,
827     "y": 498.444580078125,
828     "z": "3cbec5d5.54ea02",
829     "wires": [
830       [
831         "7135b68.c08c3c8",
832         "69007117.c84f9"
833       ]
834     ]
835   },
836   {
837     "id": "dd8767a.3acd918",
838     "type": "switchNode",
839     "name": "switch te-link-attributes",
840     "xml": "<switch test='`$link.te.te-link-attributes.label-restriction`'>\n",
841     "comments": "",
842     "outputs": 1,
843     "x": 1532.5555419921875,
844     "y": 454.888916015625,
845     "z": "3cbec5d5.54ea02",
846     "wires": [
847       [
848         "2ac06a2f.120e4e",
849         "45e6587f.a583a"
850       ]
851     ]
852   },
853   {
854     "id": "2ac06a2f.120e4e",
855     "type": "outcome",
856     "name": "Null",
857     "xml": "<outcome value=''>\n",
858     "comments": "",
859     "outputs": 1,
860     "x": 1721.5555419921875,
861     "y": 425.888916015625,
862     "z": "3cbec5d5.54ea02",
863     "wires": [
864       [
865         "5884f4a0.224604"
866       ]
867     ]
868   },
869   {
870     "id": "5884f4a0.224604",
871     "type": "block",
872     "name": "block",
873     "xml": "<block>\n",
874     "atomic": "false",
875     "comments": "",
876     "outputs": 1,
877     "x": 1881.5555419921875,
878     "y": 424.888916015625,
879     "z": "3cbec5d5.54ea02",
880     "wires": [
881       []
882     ]
883   },
884   {
885     "id": "45e6587f.a583a",
886     "type": "other",
887     "name": "other",
888     "xml": "<outcome value='Other'>\n",
889     "comments": "",
890     "outputs": 1,
891     "x": 1725.5555419921875,
892     "y": 498.888916015625,
893     "z": "3cbec5d5.54ea02",
894     "wires": [
895       [
896         "ec4710d1.a4614"
897       ]
898     ]
899   },
900   {
901     "id": "915555f.abb44a8",
902     "type": "set",
903     "name": "set more local variables",
904     "xml": "<set>\n<parameter name='unique-linkId' value=\"`'networkId-' + $unique-networkId + '-linkId-' + $link.link-id`\" />\n<parameter name='src-tpId' value=\"`'networkId-' + $unique-networkId + '-nodeId-' + $link.source.source-node + '-ltpId-' + $link.source.source-tp`\" />\n<parameter name='unique-src-node-Id' value=\"`'networkId-' + $unique-networkId + '-nodeId-' + $link.source.source-node`\" />\n",
905     "comments": "",
906     "x": 557,
907     "y": 102,
908     "z": "3cbec5d5.54ea02",
909     "wires": []
910   }
911 ]