cec126c325e021dc14d9615e87cc4121ccbe7e4a
[sdnc/oam.git] / platform-logic / datachange / src / main / json / DataChange_update-tp-ttp-relationship.json
1 [\r
2     {\r
3         "id": "f3ed8bda.981eb",\r
4         "type": "dgstart",\r
5         "name": "DGSTART",\r
6         "outputs": 1,\r
7         "x": 126,\r
8         "y": 86.00650024414062,\r
9         "z": "8966128c.40fc9",\r
10         "wires": [\r
11             [\r
12                 "1edaf826.be0fa"\r
13             ]\r
14         ]\r
15     },\r
16     {\r
17         "id": "1edaf826.be0fa",\r
18         "type": "service-logic",\r
19         "name": "DataChange ${project.version}",\r
20         "module": "DataChange",\r
21         "version": "${project.version}",\r
22         "comments": "",\r
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}'>",\r
24         "outputs": 1,\r
25         "x": 215.00003051757812,\r
26         "y": 176.89541244506836,\r
27         "z": "8966128c.40fc9",\r
28         "wires": [\r
29             [\r
30                 "3d56f688.012602"\r
31             ]\r
32         ]\r
33     },\r
34     {\r
35         "id": "3d56f688.012602",\r
36         "type": "method",\r
37         "name": "method update-tp-ttp-relationship",\r
38         "xml": "<method rpc='update-tp-ttp-relationship' mode='sync'>\n",\r
39         "comments": "",\r
40         "outputs": 1,\r
41         "x": 251.1112518310547,\r
42         "y": 247.2287368774414,\r
43         "z": "8966128c.40fc9",\r
44         "wires": [\r
45             [\r
46                 "91a7d40.f3c79b"\r
47             ]\r
48         ]\r
49     },\r
50     {\r
51         "id": "91a7d40.f3c79b",\r
52         "type": "block",\r
53         "name": "block : atomic",\r
54         "xml": "<block atomic=\"true\">\n",\r
55         "atomic": "false",\r
56         "comments": "",\r
57         "outputs": 1,\r
58         "x": 476.33343505859375,\r
59         "y": 246.784423828125,\r
60         "z": "8966128c.40fc9",\r
61         "wires": [\r
62             [\r
63                 "44cf69ab.02fc28",\r
64                 "6f71423b.e63cac",\r
65                 "8b1ad0d7.d3282"\r
66             ]\r
67         ]\r
68     },\r
69     {\r
70         "id": "6f71423b.e63cac",\r
71         "type": "for",\r
72         "name": "for each node in network-eth",\r
73         "xml": "<for index='pethidx' start='0' end='`$network-eth.node_length`' >\n",\r
74         "comments": "",\r
75         "outputs": 1,\r
76         "x": 708.8888549804688,\r
77         "y": 201.33981323242188,\r
78         "z": "8966128c.40fc9",\r
79         "wires": [\r
80             [\r
81                 "c451c605.7ae0a",\r
82                 "70ab1d73.78dfa4",\r
83                 "7bcb2ba2.9953f4"\r
84             ]\r
85         ]\r
86     },\r
87     {\r
88         "id": "c451c605.7ae0a",\r
89         "type": "set",\r
90         "name": "set node-eth",\r
91         "xml": "<set>\n<parameter name='node-eth.' value='`$network-eth.node[$pethidx].`' />",\r
92         "comments": "",\r
93         "x": 992.111083984375,\r
94         "y": 108.22871398925781,\r
95         "z": "8966128c.40fc9",\r
96         "wires": []\r
97     },\r
98     {\r
99         "id": "70ab1d73.78dfa4",\r
100         "type": "for",\r
101         "name": "for each termination point",\r
102         "xml": "<for index='tidx' start='0' end='`$node-eth.termination-point_length`' >\n",\r
103         "comments": "",\r
104         "outputs": 1,\r
105         "x": 941.4444580078125,\r
106         "y": 364.1175842285156,\r
107         "z": "8966128c.40fc9",\r
108         "wires": [\r
109             [\r
110                 "ae76cdd8.d0a408",\r
111                 "f5cb00b6.301068",\r
112                 "a58125ba.f3ece",\r
113                 "6948417f.bffae",\r
114                 "eb8eee0c.443eb8"\r
115             ]\r
116         ]\r
117     },\r
118     {\r
119         "id": "ae76cdd8.d0a408",\r
120         "type": "set",\r
121         "name": "set termination point tp-eth",\r
122         "xml": "<set>\n<parameter name='tp-eth.' value='`$node-eth.termination-point[$tidx].`' />\n",\r
123         "comments": "",\r
124         "x": 1213.111328125,\r
125         "y": 235.00656127929688,\r
126         "z": "8966128c.40fc9",\r
127         "wires": []\r
128     },\r
129     {\r
130         "id": "f5cb00b6.301068",\r
131         "type": "set",\r
132         "name": "set unique-ltpethId",\r
133         "xml": "<set>\n<parameter name='unique-ltpethId' value=\"`$unique-node-ethId + '-ltpId-' + $tp-eth.te-tp-id`\" />\n",\r
134         "comments": "",\r
135         "x": 1191.000244140625,\r
136         "y": 272.1175842285156,\r
137         "z": "8966128c.40fc9",\r
138         "wires": []\r
139     },\r
140     {\r
141         "id": "44cf69ab.02fc28",\r
142         "type": "execute",\r
143         "name": "execute set tmp.network-eth.network-id",\r
144         "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n    <parameter name=\"source\" value=\"`$network-eth.network-id`\"/>\n    <parameter name=\"outputPath\" value=\"tmp.network-eth.network-id\"/>\n    <parameter name=\"target\" value=\"/\"/>\n    <parameter name=\"replacement\" value=\"-\"/>\n    ",\r
145         "comments": "",\r
146         "outputs": 1,\r
147         "x": 666.9935302734375,\r
148         "y": 66,\r
149         "z": "8966128c.40fc9",\r
150         "wires": [\r
151             []\r
152         ]\r
153     },\r
154     {\r
155         "id": "7bcb2ba2.9953f4",\r
156         "type": "set",\r
157         "name": "set local variables",\r
158         "xml": "<set>\n<parameter name='unique-network-ethId' value='`$tmp.network-eth.network-id`' />\n<parameter name='unique-node-ethId' value=\"`'networkId-' + $unique-network-ethId + '-nodeId-' + $node-eth.node-id`\" />\n",\r
159         "comments": "",\r
160         "x": 991,\r
161         "y": 156.00650024414062,\r
162         "z": "8966128c.40fc9",\r
163         "wires": []\r
164     },\r
165     {\r
166         "id": "8b1ad0d7.d3282",\r
167         "type": "execute",\r
168         "name": "execute set tmp.network-otn.network-id",\r
169         "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n    <parameter name=\"source\" value=\"`$network-otn.network-id`\"/>\n    <parameter name=\"outputPath\" value=\"tmp.network-otn.network-id\"/>\n    <parameter name=\"target\" value=\"/\"/>\n    <parameter name=\"replacement\" value=\"-\"/>\n    ",\r
170         "comments": "",\r
171         "outputs": 1,\r
172         "x": 664,\r
173         "y": 105.00650024414062,\r
174         "z": "8966128c.40fc9",\r
175         "wires": [\r
176             []\r
177         ]\r
178     },\r
179     {\r
180         "id": "3e8d4c9d.81492c",\r
181         "type": "for",\r
182         "name": "for each tunnel termination point in otn",\r
183         "xml": "<for index='ttidx' start='0' end='`$node.te.tunnel-termination-point_length`' >\n",\r
184         "comments": "",\r
185         "outputs": 1,\r
186         "x": 1567,\r
187         "y": 419.0065002441406,\r
188         "z": "8966128c.40fc9",\r
189         "wires": [\r
190             [\r
191                 "c8d54563.247c18",\r
192                 "5e04ba3c.b57a04",\r
193                 "f0519db1.196698",\r
194                 "86fe0338.dea2e8",\r
195                 "14bac025.125a4"\r
196             ]\r
197         ]\r
198     },\r
199     {\r
200         "id": "c8d54563.247c18",\r
201         "type": "set",\r
202         "name": "set tunnel termination point",\r
203         "xml": "<set>\n<parameter name='ttp.' value='`$node-otn.te.tunnel-termination-point[$ttidx].`' />\n",\r
204         "comments": "",\r
205         "x": 1943,\r
206         "y": 344.0065002441406,\r
207         "z": "8966128c.40fc9",\r
208         "wires": []\r
209     },\r
210     {\r
211         "id": "5e04ba3c.b57a04",\r
212         "type": "set",\r
213         "name": "set unique-ttpId",\r
214         "xml": "<set>\n<parameter name='unique-ttpId' value=\"`$unique-node-otnId + '-ttpId-' + $ttp.tunnel-tp-id`\" />\n",\r
215         "comments": "",\r
216         "x": 1920.888916015625,\r
217         "y": 411.1175842285156,\r
218         "z": "8966128c.40fc9",\r
219         "wires": []\r
220     },\r
221     {\r
222         "id": "a58125ba.f3ece",\r
223         "type": "set",\r
224         "name": "set tp-inter-layer-lock-id",\r
225         "xml": "<set>\n<parameter name='tp-inter-layer-lock-id' value='`$node-eth.termination-point[$tidx].te.inter-layer-lock-id[0]`' />\n",\r
226         "comments": "",\r
227         "x": 1231,\r
228         "y": 312.0065002441406,\r
229         "z": "8966128c.40fc9",\r
230         "wires": []\r
231     },\r
232     {\r
233         "id": "6948417f.bffae",\r
234         "type": "for",\r
235         "name": "for each node in network-otn",\r
236         "xml": "<for index='potnidx' start='0' end='`$network-otn.node_length`' >\n",\r
237         "comments": "",\r
238         "outputs": 1,\r
239         "x": 1249,\r
240         "y": 361.0065002441406,\r
241         "z": "8966128c.40fc9",\r
242         "wires": [\r
243             [\r
244                 "3e8d4c9d.81492c",\r
245                 "a37094cf.0ec268",\r
246                 "f9e7891b.a33b9"\r
247             ]\r
248         ]\r
249     },\r
250     {\r
251         "id": "a37094cf.0ec268",\r
252         "type": "set",\r
253         "name": "set node-otn",\r
254         "xml": "<set>\n<parameter name='node-otn.' value='`$network-otn.node[$potnidx].`' />",\r
255         "comments": "",\r
256         "x": 1543,\r
257         "y": 331.0065002441406,\r
258         "z": "8966128c.40fc9",\r
259         "wires": []\r
260     },\r
261     {\r
262         "id": "f9e7891b.a33b9",\r
263         "type": "set",\r
264         "name": "set local variables",\r
265         "xml": "<set>\n<parameter name='unique-network-otnId' value='`$tmp.network-otn.network-id`' />\n<parameter name='unique-node-otnId' value=\"`'networkId-' + $unique-network-otnId + '-nodeId-' + $node-otn.node-id`\" />\n",\r
266         "comments": "",\r
267         "x": 1541.888916015625,\r
268         "y": 378.78428649902344,\r
269         "z": "8966128c.40fc9",\r
270         "wires": []\r
271     },\r
272     {\r
273         "id": "f0519db1.196698",\r
274         "type": "set",\r
275         "name": "set ttp-inter-layer-lock-id",\r
276         "xml": "<set>\n<parameter name='ttp-inter-layer-lock-id' value='`$node-otn.te.tunnel-termination-point[$ttidx].inter-layer-lock-id`' />\n",\r
277         "comments": "",\r
278         "x": 1942,\r
279         "y": 462.0065002441406,\r
280         "z": "8966128c.40fc9",\r
281         "wires": []\r
282     },\r
283     {\r
284         "id": "86fe0338.dea2e8",\r
285         "type": "switchNode",\r
286         "name": "switch tp-inter-layer-lock-id",\r
287         "xml": "<switch test='tp-inter-layer-lock-id'>\n",\r
288         "comments": "",\r
289         "outputs": 1,\r
290         "x": 1885,\r
291         "y": 517.0065002441406,\r
292         "z": "8966128c.40fc9",\r
293         "wires": [\r
294             [\r
295                 "bece73d9.c8717"\r
296             ]\r
297         ]\r
298     },\r
299     {\r
300         "id": "bece73d9.c8717",\r
301         "type": "outcome",\r
302         "name": "ttp-inter-layer-lock-id",\r
303         "xml": "<outcome value='ttp-inter-layer-lock-id'>\n",\r
304         "comments": "",\r
305         "outputs": 1,\r
306         "x": 1994,\r
307         "y": 614.0065002441406,\r
308         "z": "8966128c.40fc9",\r
309         "wires": [\r
310             [\r
311                 "377503ca.868e7c"\r
312             ]\r
313         ]\r
314     },\r
315     {\r
316         "id": "377503ca.868e7c",\r
317         "type": "save",\r
318         "name": "save p-interface relationship to ttp in AAI",\r
319         "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='p-interface:relationship-list' \n      key='p-interface.interface-name = $unique-ltpethId' force=\"true\" pfx=\"tmp.AnAI-data\">\n<parameter name=\"relationship-list.relationship[1].related-to\" value=\"tunnel-termination-point\" />\n<parameter name=\"relationship-list.relationship[1].related-link\" value=\"/network/tunnel-termination-points/tunnel-termination-point/ + `$unique-ttpId`\" />\n<parameter name=\"relationship-list.relationship[1].relationship-data[0].relationship-key\" value=\"tunnel-termination-point.tunnel-tp-id\" />\n<parameter name=\"relationship-list.relationship[1].relationship-data[0].relationship-value\" value=\"`$unique-ttpId`\" />\n",\r
320         "comments": "",\r
321         "outputs": 1,\r
322         "x": 2312,\r
323         "y": 614.0065002441406,\r
324         "z": "8966128c.40fc9",\r
325         "wires": [\r
326             []\r
327         ]\r
328     },\r
329     {\r
330         "id": "eb8eee0c.443eb8",\r
331         "type": "set",\r
332         "name": "unset termination point tp-eth",\r
333         "xml": "<set>\n<parameter name='tp-eth.' value='' />\n",\r
334         "comments": "",\r
335         "x": 1208,\r
336         "y": 198,\r
337         "z": "8966128c.40fc9",\r
338         "wires": []\r
339     },\r
340     {\r
341         "id": "14bac025.125a4",\r
342         "type": "set",\r
343         "name": "unset tunnel termination point",\r
344         "xml": "<set>\n<parameter name='ttp.' value='' />\n",\r
345         "comments": "",\r
346         "x": 1933,\r
347         "y": 305,\r
348         "z": "8966128c.40fc9",\r
349         "wires": []\r
350     }\r
351 ]