Adding support for multi-layer and multi-domain topology discovery for CCVPN
[sdnc/oam.git] / platform-logic / datachange / src / main / json / DataChange_update-tp-ttp-relationship.json
1 [
2   {
3     "id": "c069a9f3.34d638",
4     "type": "dgstart",
5     "name": "DGSTART",
6     "outputs": 1,
7     "x": 168,
8     "y": 75,
9     "z": "d37ca473.74b47",
10     "wires": [
11       [
12         "2f4d91cf.36cc46"
13       ]
14     ]
15   },
16   {
17     "id": "2f4d91cf.36cc46",
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": 257.0000305175781,
26     "y": 165.88891220092773,
27     "z": "d37ca473.74b47",
28     "wires": [
29       [
30         "550913a5.d552a4"
31       ]
32     ]
33   },
34   {
35     "id": "550913a5.d552a4",
36     "type": "method",
37     "name": "method update-tp-ttp-relationship",
38     "xml": "<method rpc='update-tp-ttp-relationship' mode='sync'>\n",
39     "comments": "",
40     "outputs": 1,
41     "x": 293.1112518310547,
42     "y": 236.22223663330078,
43     "z": "d37ca473.74b47",
44     "wires": [
45       [
46         "1261384d.98d348"
47       ]
48     ]
49   },
50   {
51     "id": "1261384d.98d348",
52     "type": "block",
53     "name": "block : atomic",
54     "xml": "<block atomic=\"true\">\n",
55     "atomic": "false",
56     "comments": "",
57     "outputs": 1,
58     "x": 518.3334350585938,
59     "y": 235.77792358398438,
60     "z": "d37ca473.74b47",
61     "wires": [
62       [
63         "f631c21f.80e608",
64         "d6f41ba6.e863f8",
65         "9c740eae.9ff66"
66       ]
67     ]
68   },
69   {
70     "id": "d6f41ba6.e863f8",
71     "type": "for",
72     "name": "for each node in network-eth",
73     "xml": "<for index='pethidx' start='0' end='`$network-eth.node_length`' >\n",
74     "comments": "",
75     "outputs": 1,
76     "x": 750.8888549804688,
77     "y": 190.33331298828125,
78     "z": "d37ca473.74b47",
79     "wires": [
80       [
81         "9889f298.ed1fc8",
82         "5c75717d.de39a",
83         "f952b49d.52fa6"
84       ]
85     ]
86   },
87   {
88     "id": "9889f298.ed1fc8",
89     "type": "set",
90     "name": "set node-eth",
91     "xml": "<set>\n<parameter name='node-eth.' value='`$network-eth.node[$pethidx].`' />",
92     "comments": "",
93     "x": 1034.111083984375,
94     "y": 97.22221374511719,
95     "z": "d37ca473.74b47",
96     "wires": []
97   },
98   {
99     "id": "5c75717d.de39a",
100     "type": "for",
101     "name": "for each termination point",
102     "xml": "<for index='tidx' start='0' end='`$node-eth.termination-point_length`' >\n",
103     "comments": "",
104     "outputs": 1,
105     "x": 983.4444580078125,
106     "y": 353.111083984375,
107     "z": "d37ca473.74b47",
108     "wires": [
109       [
110         "c60cccd6.642dd",
111         "4b686a78.0dbfdc",
112         "634edb60.ca9b44",
113         "d61d1f77.90dba"
114       ]
115     ]
116   },
117   {
118     "id": "c60cccd6.642dd",
119     "type": "set",
120     "name": "set termination point tp-eth",
121     "xml": "<set>\n<parameter name='tp-eth.' value='`$node-eth.termination-point[$tidx].`' />\n",
122     "comments": "",
123     "x": 1255.111328125,
124     "y": 224.00006103515625,
125     "z": "d37ca473.74b47",
126     "wires": []
127   },
128   {
129     "id": "4b686a78.0dbfdc",
130     "type": "set",
131     "name": "set unique-ltpethId",
132     "xml": "<set>\n<parameter name='unique-ltpethId' value=\"`$unique-node-ethId + '-ltpId-' + $tp-eth.te-tp-id`\" />\n",
133     "comments": "",
134     "x": 1233.000244140625,
135     "y": 261.111083984375,
136     "z": "d37ca473.74b47",
137     "wires": []
138   },
139   {
140     "id": "f631c21f.80e608",
141     "type": "execute",
142     "name": "execute set tmp.network-eth.network-id",
143     "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    ",
144     "comments": "",
145     "outputs": 1,
146     "x": 708.9935302734375,
147     "y": 54.993499755859375,
148     "z": "d37ca473.74b47",
149     "wires": [
150       []
151     ]
152   },
153   {
154     "id": "f952b49d.52fa6",
155     "type": "set",
156     "name": "set local variables",
157     "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",
158     "comments": "",
159     "x": 1033,
160     "y": 145,
161     "z": "d37ca473.74b47",
162     "wires": []
163   },
164   {
165     "id": "9c740eae.9ff66",
166     "type": "execute",
167     "name": "execute set tmp.network-otn.network-id",
168     "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    ",
169     "comments": "",
170     "outputs": 1,
171     "x": 706,
172     "y": 94,
173     "z": "d37ca473.74b47",
174     "wires": [
175       []
176     ]
177   },
178   {
179     "id": "75e07276.34af4c",
180     "type": "for",
181     "name": "for each tunnel termination point in otn",
182     "xml": "<for index='ttidx' start='0' end='`$node.te.tunnel-termination-point_length`' >\n",
183     "comments": "",
184     "outputs": 1,
185     "x": 1609,
186     "y": 408,
187     "z": "d37ca473.74b47",
188     "wires": [
189       [
190         "74200ec3.9b2e88",
191         "b86a8b99.9fa22",
192         "f5f85bac.6cdcb",
193         "45e7bcc7.d12924"
194       ]
195     ]
196   },
197   {
198     "id": "74200ec3.9b2e88",
199     "type": "set",
200     "name": "set tunnel termination point",
201     "xml": "<set>\n<parameter name='ttp.' value='`$node-otn.te.tunnel-termination-point[$ttidx].`' />\n",
202     "comments": "",
203     "x": 1985,
204     "y": 333,
205     "z": "d37ca473.74b47",
206     "wires": []
207   },
208   {
209     "id": "b86a8b99.9fa22",
210     "type": "set",
211     "name": "set unique-ttpId",
212     "xml": "<set>\n<parameter name='unique-ttpId' value=\"`$unique-node-otnId + '-ttpId-' + $ttp.tunnel-tp-id`\" />\n",
213     "comments": "",
214     "x": 1962.888916015625,
215     "y": 400.111083984375,
216     "z": "d37ca473.74b47",
217     "wires": []
218   },
219   {
220     "id": "634edb60.ca9b44",
221     "type": "set",
222     "name": "set tp-inter-layer-lock-id",
223     "xml": "<set>\n<parameter name='tp-inter-layer-lock-id' value='`$node-eth.termination-point[$tidx].te.inter-layer-lock-id[0]`' />\n",
224     "comments": "",
225     "x": 1273,
226     "y": 301,
227     "z": "d37ca473.74b47",
228     "wires": []
229   },
230   {
231     "id": "d61d1f77.90dba",
232     "type": "for",
233     "name": "for each node in network-otn",
234     "xml": "<for index='potnidx' start='0' end='`$network-otn.node_length`' >\n",
235     "comments": "",
236     "outputs": 1,
237     "x": 1291,
238     "y": 350,
239     "z": "d37ca473.74b47",
240     "wires": [
241       [
242         "75e07276.34af4c",
243         "81ad0d1b.593018",
244         "65d2d272.734f34"
245       ]
246     ]
247   },
248   {
249     "id": "81ad0d1b.593018",
250     "type": "set",
251     "name": "set node-otn",
252     "xml": "<set>\n<parameter name='node-otn.' value='`$network-otn.node[$potnidx].`' />",
253     "comments": "",
254     "x": 1585,
255     "y": 320,
256     "z": "d37ca473.74b47",
257     "wires": []
258   },
259   {
260     "id": "65d2d272.734f34",
261     "type": "set",
262     "name": "set local variables",
263     "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",
264     "comments": "",
265     "x": 1583.888916015625,
266     "y": 367.7777862548828,
267     "z": "d37ca473.74b47",
268     "wires": []
269   },
270   {
271     "id": "f5f85bac.6cdcb",
272     "type": "set",
273     "name": "set ttp-inter-layer-lock-id",
274     "xml": "<set>\n<parameter name='ttp-inter-layer-lock-id' value='`$node-otn.te.tunnel-termination-point[$ttidx].inter-layer-lock-id`' />\n",
275     "comments": "",
276     "x": 1984,
277     "y": 451,
278     "z": "d37ca473.74b47",
279     "wires": []
280   },
281   {
282     "id": "45e7bcc7.d12924",
283     "type": "switchNode",
284     "name": "switch tp-inter-layer-lock-id",
285     "xml": "<switch test='tp-inter-layer-lock-id'>\n",
286     "comments": "",
287     "outputs": 1,
288     "x": 1927,
289     "y": 506,
290     "z": "d37ca473.74b47",
291     "wires": [
292       [
293         "7b1ad64c.6662d"
294       ]
295     ]
296   },
297   {
298     "id": "7b1ad64c.6662d",
299     "type": "outcome",
300     "name": "ttp-inter-layer-lock-id",
301     "xml": "<outcome value='ttp-inter-layer-lock-id'>\n",
302     "comments": "",
303     "outputs": 1,
304     "x": 2036,
305     "y": 603,
306     "z": "d37ca473.74b47",
307     "wires": [
308       [
309         "d7c8dbff.d22ff"
310       ]
311     ]
312   },
313   {
314     "id": "d7c8dbff.d22ff",
315     "type": "save",
316     "name": "save p-interface relationship to ttp in AAI",
317     "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",
318     "comments": "",
319     "outputs": 1,
320     "x": 2354,
321     "y": 603,
322     "z": "d37ca473.74b47",
323     "wires": [
324       []
325     ]
326   }
327 ]