Supporting 3 or more network domains for Transport Slicing use case.
[sdnc/oam.git] / platform-logic / generic-resource-api / src / main / json / trans_slicing / GENERIC-RESOURCE-API_tsli-vnf-topology-operation-trans-slice-activate.json
1 [\r
2     {\r
3         "id": "c170e1ed.7b781",\r
4         "type": "dgstart",\r
5         "name": "DGSTART",\r
6         "outputs": 1,\r
7         "x": 137,\r
8         "y": 82,\r
9         "z": "bc289cb4.31b288",\r
10         "wires": [\r
11             [\r
12                 "9970ac63.cab4e"\r
13             ]\r
14         ]\r
15     },\r
16     {\r
17         "id": "9970ac63.cab4e",\r
18         "type": "service-logic",\r
19         "name": "GENERIC-RESOURCE-API ${project.version}",\r
20         "module": "GENERIC-RESOURCE-API",\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='GENERIC-RESOURCE-API' version='${project.version}'>",\r
24         "outputs": 1,\r
25         "x": 268.2856903076172,\r
26         "y": 131.23810863494873,\r
27         "z": "bc289cb4.31b288",\r
28         "wires": [\r
29             [\r
30                 "d984e08f.709ec8"\r
31             ]\r
32         ]\r
33     },\r
34     {\r
35         "id": "d984e08f.709ec8",\r
36         "type": "method",\r
37         "name": "method tsli-vnf-topology-operation-trans-slice-activate",\r
38         "xml": "<method rpc='tsli-vnf-topology-operation-trans-slice-activate' mode='sync'>\n",\r
39         "comments": "",\r
40         "outputs": 1,\r
41         "x": 271.4286193847656,\r
42         "y": 216.00003242492676,\r
43         "z": "bc289cb4.31b288",\r
44         "wires": [\r
45             [\r
46                 "8e4db78f.c5ff38"\r
47             ]\r
48         ]\r
49     },\r
50     {\r
51         "id": "8e4db78f.c5ff38",\r
52         "type": "block",\r
53         "name": "block : atomic",\r
54         "xml": "<block atomic=\"true\">",\r
55         "atomic": "true",\r
56         "outputs": 1,\r
57         "x": 421.238037109375,\r
58         "y": 345.6666564941406,\r
59         "z": "bc289cb4.31b288",\r
60         "wires": [\r
61             [\r
62                 "6bde1442.84f93c",\r
63                 "d81cbe5a.85cea",\r
64                 "2a368168.cab60e"\r
65             ]\r
66         ]\r
67     },\r
68     {\r
69         "id": "6bde1442.84f93c",\r
70         "type": "returnSuccess",\r
71         "name": "return success",\r
72         "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",\r
73         "comments": "",\r
74         "x": 689.5716552734375,\r
75         "y": 732.59716796875,\r
76         "z": "bc289cb4.31b288",\r
77         "wires": []\r
78     },\r
79     {\r
80         "id": "233d87e5.a24f7",\r
81         "type": "comment",\r
82         "name": "new for TransportSlicing",\r
83         "info": "",\r
84         "comments": "",\r
85         "x": 721,\r
86         "y": 407,\r
87         "z": "bc289cb4.31b288",\r
88         "wires": []\r
89     },\r
90     {\r
91         "id": "d81cbe5a.85cea",\r
92         "type": "save",\r
93         "name": "get service-instance from aai",\r
94         "xml": "<!--<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" -->\n<!--\tresource=\"service-instance\"-->\n<!--\tkey='service-instance.service-instance-id = $service-data.vnfs.vnf[$tmp.vidx].vnf-data.service-information.service-instance-id-->\n<!--         AND customer.global-customer-id = $service-data.vnfs.vnf[$tmp.vidx].vnf-data.service-information.global-customer-id -->\n<!--         AND service-subscription.service-type = $service-data.vnfs.vnf[$tmp.vidx].vnf-data.service-information.subscription-service-type'-->\n<!--\tlocal-only=\"false\"-->\n<!--\tforce=\"true\" pfx=\"tmp.aai.service-instance\">-->\n\n<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\tresource=\"service-instance\"\n\tkey='service-instance.service-instance-id = $vnf-topology-operation-input.service-information.service-instance-id\n         AND customer.global-customer-id = $vnf-topology-operation-input.service-information.global-customer-id \n         AND service-subscription.service-type = $vnf-topology-operation-input.service-information.subscription-service-type'\n\tlocal-only=\"false\"\n\tforce=\"true\" pfx=\"tmp.aai.service-instance\">\n\n\n<!--$vnf-topology-operation-input.service-information.service-instance-id-->",\r
95         "comments": "",\r
96         "outputs": 1,\r
97         "x": 741,\r
98         "y": 503,\r
99         "z": "bc289cb4.31b288",\r
100         "wires": [\r
101             [\r
102                 "b0036e6b.1878c8",\r
103                 "7901c2f.e699b3c",\r
104                 "120c06e4.dff209"\r
105             ]\r
106         ]\r
107     },\r
108     {\r
109         "id": "b0036e6b.1878c8",\r
110         "type": "success",\r
111         "name": "success",\r
112         "xml": "<outcome value='success'>\n",\r
113         "comments": "",\r
114         "outputs": 1,\r
115         "x": 960,\r
116         "y": 441,\r
117         "z": "bc289cb4.31b288",\r
118         "wires": [\r
119             [\r
120                 "9167ffc3.5d91a"\r
121             ]\r
122         ]\r
123     },\r
124     {\r
125         "id": "7901c2f.e699b3c",\r
126         "type": "not-found",\r
127         "name": "not-found",\r
128         "xml": "<outcome value='not-found'>\n",\r
129         "comments": "",\r
130         "outputs": 1,\r
131         "x": 969.490966796875,\r
132         "y": 483.57403564453125,\r
133         "z": "bc289cb4.31b288",\r
134         "wires": [\r
135             [\r
136                 "fe34f5d.3d31308"\r
137             ]\r
138         ]\r
139     },\r
140     {\r
141         "id": "120c06e4.dff209",\r
142         "type": "failure",\r
143         "name": "failure",\r
144         "xml": "<outcome value='failure'>\n",\r
145         "comments": "",\r
146         "outputs": 1,\r
147         "x": 958,\r
148         "y": 530,\r
149         "z": "bc289cb4.31b288",\r
150         "wires": [\r
151             [\r
152                 "6d39868f.7f25c8"\r
153             ]\r
154         ]\r
155     },\r
156     {\r
157         "id": "fe34f5d.3d31308",\r
158         "type": "returnFailure",\r
159         "name": "return failure",\r
160         "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",\r
161         "comments": "",\r
162         "x": 1123.0623779296875,\r
163         "y": 486.8597717285156,\r
164         "z": "bc289cb4.31b288",\r
165         "wires": []\r
166     },\r
167     {\r
168         "id": "6d39868f.7f25c8",\r
169         "type": "returnFailure",\r
170         "name": "return failure",\r
171         "xml": "<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value='' />\n",\r
172         "comments": "",\r
173         "x": 1127,\r
174         "y": 531,\r
175         "z": "bc289cb4.31b288",\r
176         "wires": []\r
177     },\r
178     {\r
179         "id": "9167ffc3.5d91a",\r
180         "type": "for",\r
181         "name": "for each relationship",\r
182         "xml": "<for index='rel-index' start='0' end='`$tmp.aai.service-instance.relationship-list.relationship_length`' >\n",\r
183         "comments": "",\r
184         "outputs": 1,\r
185         "x": 1157,\r
186         "y": 437,\r
187         "z": "bc289cb4.31b288",\r
188         "wires": [\r
189             [\r
190                 "5c1ddd56.ddffa4"\r
191             ]\r
192         ]\r
193     },\r
194     {\r
195         "id": "5c1ddd56.ddffa4",\r
196         "type": "switchNode",\r
197         "name": "switch related-to",\r
198         "xml": "<switch test='`$tmp.aai.service-instance.relationship-list.relationship[$rel-index].related-to`'>\n",\r
199         "comments": "",\r
200         "outputs": 1,\r
201         "x": 1380.33349609375,\r
202         "y": 436.99993896484375,\r
203         "z": "bc289cb4.31b288",\r
204         "wires": [\r
205             [\r
206                 "aeacbf90.6ab9e"\r
207             ]\r
208         ]\r
209     },\r
210     {\r
211         "id": "aeacbf90.6ab9e",\r
212         "type": "outcome",\r
213         "name": "connectivity",\r
214         "xml": "<outcome value='connectivity'>\n",\r
215         "comments": "",\r
216         "outputs": 1,\r
217         "x": 1581.0001335144043,\r
218         "y": 438.00002098083496,\r
219         "z": "bc289cb4.31b288",\r
220         "wires": [\r
221             [\r
222                 "7ea091c4.73eb6"\r
223             ]\r
224         ]\r
225     },\r
226     {\r
227         "id": "fd4d27b6.bd205",\r
228         "type": "set",\r
229         "name": "set attachment_param for OTN A",\r
230         "xml": "<set>\n<parameter name='src-node-id' value='`$tmp.aai.vpn-bindingA.src-access-node-id`' />\n<parameter name='dst-node-id' value='`$tmp.aai.vpn-bindingA.dst-access-node-id`' />\n<!--<parameter name='dst-tpn-id' value='1' />-->\n<parameter name='dst-tpn-id' value='`$tmp.aai.vpn-bindingA.customer-vpn-id`' />\n<parameter name='dst-ttp-id' value='`$tmp.aai.vpn-bindingA.dst-access-ltp-id`' />\n<parameter name='slice-instance-id' value='`$tmp.aai.service-instance.service-instance-id`' />\n<parameter name='otn-tunnel-name-src-domain' value='`$tmp.aai.vpn-bindingA.vpn-name`' />\n<parameter name='client-id' value='`$tmp.aai.vpn-bindingA.access-client-id`' />\n<parameter name='provider-id' value='`$tmp.aai.vpn-bindingA.access-provider-id`' />\n<parameter name='topology-id' value='`$tmp.aai.vpn-bindingA.access-topology-id`' />\n",\r
231         "comments": "",\r
232         "x": 4400,\r
233         "y": 154,\r
234         "z": "bc289cb4.31b288",\r
235         "wires": []\r
236     },\r
237     {\r
238         "id": "7648091a.a03898",\r
239         "type": "execute",\r
240         "name": "execute RestApiCallNode Create OTN tunnel with token",\r
241         "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"templateFileName\" value=\"`$prop.restapi.templateDir + '/' + $prop.restapi.ts-otn-src-domain-creation.templatefile`\" />\n<parameter name=\"restapiUrl\" value=\"`$prop.sdncRestApi.thirdpartySdnc.domainA.url + '/restconf/data/ietf-te:te'`\" />\n<parameter name=\"restapiUser\" value=\"`$prop.sdncRestApi.thirdpartySdnc.domainA.user`\" />\n<parameter name=\"restapiPassword\" value=\"`$prop.sdncRestApi.thirdpartySdnc.domainA.password`\" />\n<parameter name=\"format\" value=\"json\"/>\n<parameter name=\"httpMethod\" value=\"patch\"/>\n<parameter name=\"responsePrefix\" value=\"otn-oof\"/>\n<parameter name=\"trustStoreFileName\" value=\"/opt/onap/sdnc/data/stores/truststore.onap.client.jks\"/>\n<parameter name=\"trustStorePassword\" value=\"adminadmin\"/>\n<parameter name=\"keyStoreFileName\" value=\"/opt/onap/sdnc/data/stores/sdnc.p12\"/>\n<parameter name=\"keyStorePassword\" value=\"adminadmin\"/>\n<parameter name='customHttpHeaders' value=\"`'X-ACCESS-TOKEN=' + $prop.sdncRestApi.token_id`\" />",\r
242         "comments": "",\r
243         "outputs": 1,\r
244         "x": 4481,\r
245         "y": 469,\r
246         "z": "bc289cb4.31b288",\r
247         "wires": [\r
248             [\r
249                 "9edc273d.67b87",\r
250                 "9c60eb24.47f378"\r
251             ]\r
252         ]\r
253     },\r
254     {\r
255         "id": "9edc273d.67b87",\r
256         "type": "failure",\r
257         "name": "failure",\r
258         "xml": "<outcome value='failure'>\n",\r
259         "comments": "",\r
260         "outputs": 1,\r
261         "x": 4790.5,\r
262         "y": 438,\r
263         "z": "bc289cb4.31b288",\r
264         "wires": [\r
265             [\r
266                 "9905c30a.05be"\r
267             ]\r
268         ]\r
269     },\r
270     {\r
271         "id": "9c60eb24.47f378",\r
272         "type": "success",\r
273         "name": "success",\r
274         "xml": "<outcome value='success'>\n",\r
275         "comments": "",\r
276         "outputs": 1,\r
277         "x": 4795.5,\r
278         "y": 503,\r
279         "z": "bc289cb4.31b288",\r
280         "wires": [\r
281             [\r
282                 "8e92f9d2.75f4a8"\r
283             ]\r
284         ]\r
285     },\r
286     {\r
287         "id": "9905c30a.05be",\r
288         "type": "returnFailure",\r
289         "name": "return failure",\r
290         "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=\"Error executing Create OTN tunnel rest api\" />\n",\r
291         "comments": "",\r
292         "x": 4966.5,\r
293         "y": 438,\r
294         "z": "bc289cb4.31b288",\r
295         "wires": []\r
296     },\r
297     {\r
298         "id": "8e92f9d2.75f4a8",\r
299         "type": "block",\r
300         "name": "block : atomic",\r
301         "xml": "<block atomic=\"true\">",\r
302         "atomic": "true",\r
303         "comments": "",\r
304         "outputs": 1,\r
305         "x": 4962,\r
306         "y": 503,\r
307         "z": "bc289cb4.31b288",\r
308         "wires": [\r
309             []\r
310         ]\r
311     },\r
312     {\r
313         "id": "7974f996.7603f8",\r
314         "type": "set",\r
315         "name": "set sotn_value",\r
316         "xml": "<set>\n<!--<parameter name='eth-service-name' value='`$tmp.aai.connectivityA.connectivity-id`' />-->\n<parameter name='eth-service-name' value='`$tmp.aai.connectivityA.etht-svc-name`' />\n<parameter name='slice-id' value='`$vnf-topology-operation-input.service-information.service-instance-id`' />\n<parameter name='provider-id' value='`$tmp.aai.connectivityA.access-provider-id`' />\n<parameter name='client-id' value='`$tmp.aai.connectivityA.access-client-id`' />\n<parameter name='topology-id' value='`$tmp.aai.connectivityA.access-topology-id`' />\n<parameter name='otn-tunnel-name' value='`$tmp.aai.vpn-bindingA.vpn-name`' />\n<parameter name='ethernet-end-point-name' value='`$tmp.aai.connectivityA.connectivity-id`' />\n<parameter name='index-number' value='0' />\n<parameter name='eth-node-id' value='`$tmp.aai.connectivityA.access-node-id`' />\n<parameter name='eth-node-tp-id' value='`$tmp.aai.connectivityA.access-ltp-id`' />\n<parameter name='CIR' value='`$tmp.aai.vpn-bindingA.route-distinguisher *1000000`' />\n<parameter name='EIR' value='`$tmp.aai.vpn-bindingA.route-distinguisher *1000000`' />\n<parameter name='cvlan' value='`$tmp.aai.connectivityA.cvlan`' />\n",\r
317         "comments": "",\r
318         "x": 4347.5,\r
319         "y": 657,\r
320         "z": "bc289cb4.31b288",\r
321         "wires": []\r
322     },\r
323     {\r
324         "id": "1460b865.7cff48",\r
325         "type": "execute",\r
326         "name": "execute RestApiCallNode Create ethernet Service without token",\r
327         "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"templateFileName\" value=\"`$prop.restapi.templateDir + '/' + $prop.restapi.ts-ethernet-service.templatefile`\" />\n<parameter name=\"restapiUrl\" value=\"`$prop.sdncRestApi.thirdpartySdnc.domainA.url + '/restconf/data/ietf-eth-tran-service:etht-svc'`\" />\n<!--<parameter name=\"restapiUrl\" value=\"`$prop.restapi.connection-oof-url`\" />-->\n<parameter name=\"restapiUser\" value=\"`$prop.sdncRestApi.thirdpartySdnc.domainA.user`\" />\n<parameter name=\"restapiPassword\" value=\"`$prop.sdncRestApi.thirdpartySdnc.domainA.password`\" />\n<parameter name=\"format\" value=\"json\"/>\n<parameter name=\"httpMethod\" value=\"patch\"/>\n<parameter name='dirPath' value=\"/opt/onap/sdnc/restconfapi/yang\" />\n<parameter name=\"responsePrefix\" value=\"vpn-result\"/>\n<parameter name=\"trustStoreFileName\" value=\"/opt/onap/sdnc/data/stores/truststore.onap.client.jks\"/>\n<parameter name=\"trustStorePassword\" value=\"adminadmin\"/>\n<parameter name=\"keyStoreFileName\" value=\"/opt/onap/sdnc/data/stores/sdnc.p12\"/>\n<parameter name=\"keyStorePassword\" value=\"adminadmin\"/>\n",\r
328         "comments": "",\r
329         "outputs": 1,\r
330         "x": 4501.5,\r
331         "y": 705,\r
332         "z": "bc289cb4.31b288",\r
333         "wires": [\r
334             [\r
335                 "d6a6995b.244f78",\r
336                 "3058a60d.1382f2"\r
337             ]\r
338         ]\r
339     },\r
340     {\r
341         "id": "d6a6995b.244f78",\r
342         "type": "failure",\r
343         "name": "failure",\r
344         "xml": "<outcome value='failure'>\n",\r
345         "comments": "",\r
346         "outputs": 1,\r
347         "x": 4847,\r
348         "y": 686,\r
349         "z": "bc289cb4.31b288",\r
350         "wires": [\r
351             [\r
352                 "9008a0fb.361338"\r
353             ]\r
354         ]\r
355     },\r
356     {\r
357         "id": "3058a60d.1382f2",\r
358         "type": "success",\r
359         "name": "success",\r
360         "xml": "<outcome value='success'>\n",\r
361         "comments": "",\r
362         "outputs": 1,\r
363         "x": 4851,\r
364         "y": 726,\r
365         "z": "bc289cb4.31b288",\r
366         "wires": [\r
367             [\r
368                 "5c04d202.902b9c"\r
369             ]\r
370         ]\r
371     },\r
372     {\r
373         "id": "9008a0fb.361338",\r
374         "type": "returnFailure",\r
375         "name": "return failure",\r
376         "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=\"Error executing Create ethernet service rest api\" />\n",\r
377         "comments": "",\r
378         "x": 5005,\r
379         "y": 686,\r
380         "z": "bc289cb4.31b288",\r
381         "wires": []\r
382     },\r
383     {\r
384         "id": "5c04d202.902b9c",\r
385         "type": "block",\r
386         "name": "block : atomic",\r
387         "xml": "<block atomic=\"true\">",\r
388         "atomic": "true",\r
389         "comments": "",\r
390         "outputs": 1,\r
391         "x": 5008.5,\r
392         "y": 726,\r
393         "z": "bc289cb4.31b288",\r
394         "wires": [\r
395             [\r
396                 "ec17d55b.a0804",\r
397                 "144849a3.b4133e"\r
398             ]\r
399         ]\r
400     },\r
401     {\r
402         "id": "471d2a77.3a42ac",\r
403         "type": "comment",\r
404         "name": "TODO: FIXME:",\r
405         "info": "put proper values based on connectivity resource retrieved from AAI",\r
406         "comments": "",\r
407         "x": 4345,\r
408         "y": 613,\r
409         "z": "bc289cb4.31b288",\r
410         "wires": []\r
411     },\r
412     {\r
413         "id": "ec17d55b.a0804",\r
414         "type": "save",\r
415         "name": "update vpn-binding A resource (aka. OTN domainA) in AAI",\r
416         "xml": "<update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='vpn-binding' \n      key='vpn-binding.vpn-id = $tmp.aai.vpn-bindingA.vpn-id' >\n<parameter name='vpn-id' value='`$tmp.aai.vpn-bindingA.vpn-id`' />\n<parameter name='vpn-name' value='`$tmp.aai.vpn-bindingA.vpn-name`' />\n\n<parameter name='operational-status' value='Activated' />\n",\r
417         "comments": "",\r
418         "outputs": 1,\r
419         "x": 5339,\r
420         "y": 691,\r
421         "z": "bc289cb4.31b288",\r
422         "wires": [\r
423             []\r
424         ]\r
425     },\r
426     {\r
427         "id": "4e9eb117.9357d",\r
428         "type": "comment",\r
429         "name": "TODO: FIXME",\r
430         "info": "use proper vpn-binding id and connectivity id\n\nAlso, does CCSDK support \"update\" operation for vpn-binding and connectivity?",\r
431         "comments": "",\r
432         "x": 5203,\r
433         "y": 650,\r
434         "z": "bc289cb4.31b288",\r
435         "wires": []\r
436     },\r
437     {\r
438         "id": "144849a3.b4133e",\r
439         "type": "save",\r
440         "name": "update connectivity resource in AAI",\r
441         "xml": "<update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='connectivity' \n      key='connectivity.connectivity-id = $tmp.aai.connectivityA.connectivity-id'>\n<parameter name='connectivity-id' value='`$tmp.aai.connectivityA.connectivity-id`' />\n<parameter name='operational-status' value='Activated' />\n",\r
442         "comments": "",\r
443         "outputs": 1,\r
444         "x": 5266,\r
445         "y": 737,\r
446         "z": "bc289cb4.31b288",\r
447         "wires": [\r
448             []\r
449         ]\r
450     },\r
451     {\r
452         "id": "4f40e2d1.4262ec",\r
453         "type": "set",\r
454         "name": "set pnf-name",\r
455         "xml": "<set>\n<parameter name='tmp.src.domainA.pnf-name' value=\"`'networkId-providerId-' +\n                                                   $tmp.aai.vpn-bindingA.access-provider-id + '-clientId-' +\n                                                   $tmp.aai.vpn-bindingA.access-client-id + '-topologyId-' +\n                                                   $tmp.aai.vpn-bindingA.access-topology-id + '-nodeId-' +\n                                                   $tmp.aai.vpn-bindingA.src-access-node-id`\" />\n",\r
456         "comments": "",\r
457         "x": 4338,\r
458         "y": 202,\r
459         "z": "bc289cb4.31b288",\r
460         "wires": []\r
461     },\r
462     {\r
463         "id": "8abcb98.e721cc8",\r
464         "type": "get-resource",\r
465         "name": "get-resource src pnf",\r
466         "xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\t\tresource=\"pnf\" \n\t\tkey=\"pnf.pnf-name = $tmp.src.domainA.pnf-name\"\n        pfx='tmp.aai.source-pnf' local-only='false' >\n\n        <!--AND depth = '0'\"-->\n",\r
467         "comments": "",\r
468         "outputs": 1,\r
469         "x": 4364,\r
470         "y": 319,\r
471         "z": "bc289cb4.31b288",\r
472         "wires": [\r
473             [\r
474                 "3115ae28.00936a",\r
475                 "34440f82.2778b8",\r
476                 "5e322ae1.288484"\r
477             ]\r
478         ]\r
479     },\r
480     {\r
481         "id": "3115ae28.00936a",\r
482         "type": "success",\r
483         "name": "success",\r
484         "xml": "<outcome value='success'>\n",\r
485         "comments": "",\r
486         "outputs": 1,\r
487         "x": 4559.5001220703125,\r
488         "y": 271,\r
489         "z": "bc289cb4.31b288",\r
490         "wires": [\r
491             [\r
492                 "5640c3a4.e53454"\r
493             ]\r
494         ]\r
495     },\r
496     {\r
497         "id": "34440f82.2778b8",\r
498         "type": "not-found",\r
499         "name": "not-found",\r
500         "xml": "<outcome value='not-found'>\n",\r
501         "comments": "",\r
502         "outputs": 1,\r
503         "x": 4551.5001220703125,\r
504         "y": 326,\r
505         "z": "bc289cb4.31b288",\r
506         "wires": [\r
507             [\r
508                 "b5a71ca6.0ed8a"\r
509             ]\r
510         ]\r
511     },\r
512     {\r
513         "id": "5640c3a4.e53454",\r
514         "type": "block",\r
515         "name": "block",\r
516         "xml": "<block>\n",\r
517         "atomic": "false",\r
518         "comments": "",\r
519         "outputs": 1,\r
520         "x": 4703.8824462890625,\r
521         "y": 270.6556701660156,\r
522         "z": "bc289cb4.31b288",\r
523         "wires": [\r
524             [\r
525                 "4125afdc.dc7c38"\r
526             ]\r
527         ]\r
528     },\r
529     {\r
530         "id": "e2a3abe6.94632",\r
531         "type": "outcome",\r
532         "name": "esr-thirdparty-sdnc",\r
533         "xml": "<outcome value='esr-thirdparty-sdnc'>\n",\r
534         "comments": "",\r
535         "outputs": 1,\r
536         "x": 5286,\r
537         "y": 273,\r
538         "z": "bc289cb4.31b288",\r
539         "wires": [\r
540             [\r
541                 "e7a85e47.2ddf5"\r
542             ]\r
543         ]\r
544     },\r
545     {\r
546         "id": "4125afdc.dc7c38",\r
547         "type": "for",\r
548         "name": "for each relationship",\r
549         "xml": "<for silentFailure='true' index='spvidx' start='0' end='`$tmp.aai.source-pnf.relationship-list.relationship_length`' >\n",\r
550         "comments": "",\r
551         "outputs": 1,\r
552         "x": 4888,\r
553         "y": 269,\r
554         "z": "bc289cb4.31b288",\r
555         "wires": [\r
556             [\r
557                 "7289fd85.50ab7c"\r
558             ]\r
559         ]\r
560     },\r
561     {\r
562         "id": "7289fd85.50ab7c",\r
563         "type": "switchNode",\r
564         "name": "switch related-to",\r
565         "xml": "<switch test='`$tmp.aai.source-pnf.relationship-list.relationship[$spvidx].related-to`'>\n",\r
566         "comments": "",\r
567         "outputs": 1,\r
568         "x": 5083,\r
569         "y": 269,\r
570         "z": "bc289cb4.31b288",\r
571         "wires": [\r
572             [\r
573                 "e2a3abe6.94632"\r
574             ]\r
575         ]\r
576     },\r
577     {\r
578         "id": "5e322ae1.288484",\r
579         "type": "other",\r
580         "name": "other",\r
581         "xml": "<outcome value='Other'>\n",\r
582         "comments": "",\r
583         "outputs": 1,\r
584         "x": 4556.5001220703125,\r
585         "y": 383,\r
586         "z": "bc289cb4.31b288",\r
587         "wires": [\r
588             [\r
589                 "a5591b6a.a340a8"\r
590             ]\r
591         ]\r
592     },\r
593     {\r
594         "id": "a5591b6a.a340a8",\r
595         "type": "returnFailure",\r
596         "name": "return failure",\r
597         "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.connection-attachement.access-node-id`\" />\n\n",\r
598         "comments": "",\r
599         "x": 4708.5001220703125,\r
600         "y": 384,\r
601         "z": "bc289cb4.31b288",\r
602         "wires": []\r
603     },\r
604     {\r
605         "id": "b5a71ca6.0ed8a",\r
606         "type": "returnFailure",\r
607         "name": "return failure",\r
608         "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.connection-attachement.access-node-id`\" />\n\n",\r
609         "comments": "",\r
610         "x": 4719.5001220703125,\r
611         "y": 327,\r
612         "z": "bc289cb4.31b288",\r
613         "wires": []\r
614     },\r
615     {\r
616         "id": "ca9f1df7.d822c",\r
617         "type": "execute",\r
618         "name": "get esr-thirdparty-sdnc",\r
619         "xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\t\tresource=\"esr-thirdparty-sdnc\" \n\t\tkey=\"esr-thirdparty-sdnc.thirdparty-sdnc-id = $tmp.domainA.esr-thirdparty-id AND \n\t\t     depth = '1'\"\n        pfx='tmp.aai.domainA.esr-thirdparty-sdnc' local-only='false' >",\r
620         "comments": "",\r
621         "outputs": 1,\r
622         "x": 5671,\r
623         "y": 286,\r
624         "z": "bc289cb4.31b288",\r
625         "wires": [\r
626             [\r
627                 "d6fa81cb.78d2d",\r
628                 "bcf1b063.c95248",\r
629                 "109a3661.2bbbd2"\r
630             ]\r
631         ]\r
632     },\r
633     {\r
634         "id": "e7a85e47.2ddf5",\r
635         "type": "block",\r
636         "name": "block : atomic",\r
637         "xml": "<block atomic=\"true\">",\r
638         "atomic": "true",\r
639         "outputs": 1,\r
640         "x": 5465,\r
641         "y": 273,\r
642         "z": "bc289cb4.31b288",\r
643         "wires": [\r
644             [\r
645                 "211b93a9.ce5f0c",\r
646                 "ca9f1df7.d822c"\r
647             ]\r
648         ]\r
649     },\r
650     {\r
651         "id": "211b93a9.ce5f0c",\r
652         "type": "set",\r
653         "name": "set esr-thirdparty-sdnc domainA id",\r
654         "xml": "<set>\n<parameter name='tmp.domainA.esr-thirdparty-id' value=\"`$tmp.aai.source-pnf.relationship-list.relationship[$spvidx].relationship-data[0].relationship-value`\" />\n",\r
655         "comments": "",\r
656         "x": 5701,\r
657         "y": 234,\r
658         "z": "bc289cb4.31b288",\r
659         "wires": []\r
660     },\r
661     {\r
662         "id": "d6fa81cb.78d2d",\r
663         "type": "success",\r
664         "name": "success",\r
665         "xml": "<outcome value='success'>\n",\r
666         "comments": "",\r
667         "outputs": 1,\r
668         "x": 5881,\r
669         "y": 277,\r
670         "z": "bc289cb4.31b288",\r
671         "wires": [\r
672             [\r
673                 "bf2e4f3b.81ed8"\r
674             ]\r
675         ]\r
676     },\r
677     {\r
678         "id": "bcf1b063.c95248",\r
679         "type": "not-found",\r
680         "name": "not-found",\r
681         "xml": "<outcome value='not-found'>\n",\r
682         "comments": "",\r
683         "outputs": 1,\r
684         "x": 5873,\r
685         "y": 332,\r
686         "z": "bc289cb4.31b288",\r
687         "wires": [\r
688             [\r
689                 "bfa4b512.849248"\r
690             ]\r
691         ]\r
692     },\r
693     {\r
694         "id": "109a3661.2bbbd2",\r
695         "type": "other",\r
696         "name": "other",\r
697         "xml": "<outcome value='Other'>\n",\r
698         "comments": "",\r
699         "outputs": 1,\r
700         "x": 5878,\r
701         "y": 389,\r
702         "z": "bc289cb4.31b288",\r
703         "wires": [\r
704             [\r
705                 "76f805.e622cffc"\r
706             ]\r
707         ]\r
708     },\r
709     {\r
710         "id": "76f805.e622cffc",\r
711         "type": "returnFailure",\r
712         "name": "return failure",\r
713         "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.connection-attachement.access-node-id`\" />\n\n",\r
714         "comments": "",\r
715         "x": 6030,\r
716         "y": 390,\r
717         "z": "bc289cb4.31b288",\r
718         "wires": []\r
719     },\r
720     {\r
721         "id": "bfa4b512.849248",\r
722         "type": "returnFailure",\r
723         "name": "return failure",\r
724         "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.connection-attachement.access-node-id`\" />\n\n",\r
725         "comments": "",\r
726         "x": 6041,\r
727         "y": 335,\r
728         "z": "bc289cb4.31b288",\r
729         "wires": []\r
730     },\r
731     {\r
732         "id": "bf2e4f3b.81ed8",\r
733         "type": "block",\r
734         "name": "block",\r
735         "xml": "<block>\n",\r
736         "atomic": "false",\r
737         "comments": "",\r
738         "outputs": 1,\r
739         "x": 6025.38232421875,\r
740         "y": 274.6556701660156,\r
741         "z": "bc289cb4.31b288",\r
742         "wires": [\r
743             [\r
744                 "76b40334.8bd094"\r
745             ]\r
746         ]\r
747     },\r
748     {\r
749         "id": "76b40334.8bd094",\r
750         "type": "set",\r
751         "name": "set controller domainA data",\r
752         "xml": "<set>\n<parameter name='prop.sdncRestApi.thirdpartySdnc.domainA.url' value=\"`$tmp.aai.domainA.esr-thirdparty-sdnc.esr-system-info-list.esr-system-info[0].service-url`\" />\n<parameter name='prop.sdncRestApi.thirdpartySdnc.domainA.user' value=\"`$tmp.aai.domainA.esr-thirdparty-sdnc.esr-system-info-list.esr-system-info[0].user-name`\" />\n<parameter name='prop.sdncRestApi.thirdpartySdnc.domainA.password' value=\"`$tmp.aai.domainA.esr-thirdparty-sdnc.esr-system-info-list.esr-system-info[0].password`\" />\n\n\n<!--<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >-->\n<!--<parameter name=\"restapiUrl\" value=\"`$prop.sdncRestApi.thirdpartySdnc.url + '/restconf/data/ietf-network:networks'`\" />-->\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=\"get\"/>-->\n<!--<parameter name=\"responsePrefix\" value=\"topology\"/>-->\n<!--<parameter name=\"trustStoreFileName\" value=\"/opt/onap/sdnc/data/stores/truststore.onap.client.jks\"/>-->\n<!--<parameter name=\"trustStorePassword\" value=\"adminadmin\"/>-->\n<!--<parameter name=\"keyStoreFileName\" value=\"/opt/onap/sdnc/data/stores/sdnc.p12\"/>-->\n<!--<parameter name=\"keyStorePassword\" value=\"adminadmin\"/>-->\n",\r
753         "comments": "",\r
754         "x": 6240,\r
755         "y": 271,\r
756         "z": "bc289cb4.31b288",\r
757         "wires": []\r
758     },\r
759     {\r
760         "id": "2a368168.cab60e",\r
761         "type": "execute",\r
762         "name": "execute properties",\r
763         "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.prop.PropertiesNode' method='readProperties' >\n    <parameter name='fileName' value='%SDNC_CONFIG_DIR%/generic-resource-api-dg.properties' />\n    <parameter name='contextPrefix' value='prop' />",\r
764         "comments": "",\r
765         "outputs": 1,\r
766         "x": 707,\r
767         "y": 451,\r
768         "z": "bc289cb4.31b288",\r
769         "wires": [\r
770             []\r
771         ]\r
772     },\r
773     {\r
774         "id": "3bea0429.f0ebac",\r
775         "type": "set",\r
776         "name": "set attachment_param for OTN B",\r
777         "xml": "<set>\n<parameter name='src-node-id' value='`$tmp.aai.vpn-bindingB.src-access-node-id`' />\n<parameter name='dst-node-id' value='`$tmp.aai.vpn-bindingB.dst-access-node-id`' />\n<!--<parameter name='src-tpn-id' value='1' />-->\n<parameter name='src-tpn-id' value='`$tmp.aai.vpn-bindingB.customer-vpn-id`' />\n<parameter name='src-ttp-id' value='`$tmp.aai.vpn-bindingB.src-access-ltp-id`' />\n<parameter name='slice-instance-id' value='`$tmp.aai.service-instance.service-instance-id`' />\n<parameter name='otn-tunnel-name-dst-domain' value='`$tmp.aai.vpn-bindingB.vpn-name`' />\n<parameter name='client-id' value='`$tmp.aai.vpn-bindingB.access-client-id`' />\n<parameter name='provider-id' value='`$tmp.aai.vpn-bindingB.access-provider-id`' />\n<parameter name='topology-id' value='`$tmp.aai.vpn-bindingB.access-topology-id`' />\n",\r
778         "comments": "",\r
779         "x": 3807,\r
780         "y": 1611,\r
781         "z": "bc289cb4.31b288",\r
782         "wires": []\r
783     },\r
784     {\r
785         "id": "d501f859.eecd18",\r
786         "type": "execute",\r
787         "name": "execute RestApiCallNode Create OTN tunnel with token",\r
788         "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"templateFileName\" value=\"`$prop.restapi.templateDir + '/' + $prop.restapi.ts-otn-dst-domain-creation.templatefile`\" />\n<parameter name=\"restapiUrl\" value=\"`$prop.sdncRestApi.thirdpartySdnc.domainB.url + '/restconf/data/ietf-te:te'`\" />\n<parameter name=\"restapiUser\" value=\"`$prop.sdncRestApi.thirdpartySdnc.domainB.user`\" />\n<parameter name=\"restapiPassword\" value=\"`$prop.sdncRestApi.thirdpartySdnc.domainB.password`\" />\n<parameter name=\"format\" value=\"json\"/>\n<parameter name=\"httpMethod\" value=\"patch\"/>\n<parameter name=\"responsePrefix\" value=\"otn-oof\"/>\n<parameter name=\"trustStoreFileName\" value=\"/opt/onap/sdnc/data/stores/truststore.onap.client.jks\"/>\n<parameter name=\"trustStorePassword\" value=\"adminadmin\"/>\n<parameter name=\"keyStoreFileName\" value=\"/opt/onap/sdnc/data/stores/sdnc.p12\"/>\n<parameter name=\"keyStorePassword\" value=\"adminadmin\"/>\n<parameter name='customHttpHeaders' value=\"`'X-ACCESS-TOKEN=' + $prop.sdncRestApi.token_id`\" />",\r
789         "comments": "",\r
790         "outputs": 1,\r
791         "x": 3870,\r
792         "y": 1940,\r
793         "z": "bc289cb4.31b288",\r
794         "wires": [\r
795             [\r
796                 "8a516999.f983f8",\r
797                 "e1e3477c.cb45b"\r
798             ]\r
799         ]\r
800     },\r
801     {\r
802         "id": "8a516999.f983f8",\r
803         "type": "failure",\r
804         "name": "failure",\r
805         "xml": "<outcome value='failure'>\n",\r
806         "comments": "",\r
807         "outputs": 1,\r
808         "x": 4165.5,\r
809         "y": 1907,\r
810         "z": "bc289cb4.31b288",\r
811         "wires": [\r
812             [\r
813                 "1f32cbd.2007fb4"\r
814             ]\r
815         ]\r
816     },\r
817     {\r
818         "id": "e1e3477c.cb45b",\r
819         "type": "success",\r
820         "name": "success",\r
821         "xml": "<outcome value='success'>\n",\r
822         "comments": "",\r
823         "outputs": 1,\r
824         "x": 4170.5,\r
825         "y": 1972,\r
826         "z": "bc289cb4.31b288",\r
827         "wires": [\r
828             [\r
829                 "5be15aea.63aa2c"\r
830             ]\r
831         ]\r
832     },\r
833     {\r
834         "id": "1f32cbd.2007fb4",\r
835         "type": "returnFailure",\r
836         "name": "return failure",\r
837         "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=\"Error executing Create OTN tunnel rest api\" />\n",\r
838         "comments": "",\r
839         "x": 4333.5,\r
840         "y": 1907,\r
841         "z": "bc289cb4.31b288",\r
842         "wires": []\r
843     },\r
844     {\r
845         "id": "5be15aea.63aa2c",\r
846         "type": "block",\r
847         "name": "block : atomic",\r
848         "xml": "<block atomic=\"true\">",\r
849         "atomic": "true",\r
850         "comments": "",\r
851         "outputs": 1,\r
852         "x": 4344,\r
853         "y": 1972,\r
854         "z": "bc289cb4.31b288",\r
855         "wires": [\r
856             []\r
857         ]\r
858     },\r
859     {\r
860         "id": "32f45e6c.4d0bea",\r
861         "type": "set",\r
862         "name": "set pnf-name",\r
863         "xml": "<set>\n<parameter name='tmp.dst.domainB.pnf-name' value=\"`'networkId-providerId-' +\n                                                   $tmp.aai.vpn-bindingB.access-provider-id + '-clientId-' +\n                                                   $tmp.aai.vpn-bindingB.access-client-id + '-topologyId-' +\n                                                   $tmp.aai.vpn-bindingB.access-topology-id + '-nodeId-' +\n                                                   $tmp.aai.vpn-bindingB.dst-access-node-id`\" />\n",\r
864         "comments": "",\r
865         "x": 3746,\r
866         "y": 1668,\r
867         "z": "bc289cb4.31b288",\r
868         "wires": []\r
869     },\r
870     {\r
871         "id": "e8ca7925.e0f8c",\r
872         "type": "get-resource",\r
873         "name": "get-resource dst pnf",\r
874         "xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\t\tresource=\"pnf\" \n\t\tkey=\"pnf.pnf-name = $tmp.dst.domainB.pnf-name\"\n        pfx='tmp.aai.destination-pnf' local-only='false' >\n\n        <!--AND depth = '0'\"-->\n",\r
875         "comments": "",\r
876         "outputs": 1,\r
877         "x": 3766,\r
878         "y": 1765,\r
879         "z": "bc289cb4.31b288",\r
880         "wires": [\r
881             [\r
882                 "9bb092a5.d05b48",\r
883                 "221dd2f3.9ac236",\r
884                 "26d51b0f.5d004c"\r
885             ]\r
886         ]\r
887     },\r
888     {\r
889         "id": "9bb092a5.d05b48",\r
890         "type": "success",\r
891         "name": "success",\r
892         "xml": "<outcome value='success'>\n",\r
893         "comments": "",\r
894         "outputs": 1,\r
895         "x": 3968.5001220703125,\r
896         "y": 1718,\r
897         "z": "bc289cb4.31b288",\r
898         "wires": [\r
899             [\r
900                 "b690bac2.55724"\r
901             ]\r
902         ]\r
903     },\r
904     {\r
905         "id": "221dd2f3.9ac236",\r
906         "type": "not-found",\r
907         "name": "not-found",\r
908         "xml": "<outcome value='not-found'>\n",\r
909         "comments": "",\r
910         "outputs": 1,\r
911         "x": 3960.5001220703125,\r
912         "y": 1773,\r
913         "z": "bc289cb4.31b288",\r
914         "wires": [\r
915             [\r
916                 "b19648bb.51984"\r
917             ]\r
918         ]\r
919     },\r
920     {\r
921         "id": "b690bac2.55724",\r
922         "type": "block",\r
923         "name": "block",\r
924         "xml": "<block>\n",\r
925         "atomic": "false",\r
926         "comments": "",\r
927         "outputs": 1,\r
928         "x": 4112.8824462890625,\r
929         "y": 1715.6556701660156,\r
930         "z": "bc289cb4.31b288",\r
931         "wires": [\r
932             [\r
933                 "bc889fde.13a798"\r
934             ]\r
935         ]\r
936     },\r
937     {\r
938         "id": "bc889fde.13a798",\r
939         "type": "for",\r
940         "name": "for each relationship",\r
941         "xml": "<for silentFailure='true' index='dpvidx' start='0' end='`$tmp.aai.destination-pnf.relationship-list.relationship_length`' >\n",\r
942         "comments": "",\r
943         "outputs": 1,\r
944         "x": 4297,\r
945         "y": 1730,\r
946         "z": "bc289cb4.31b288",\r
947         "wires": [\r
948             [\r
949                 "6cdbe20d.6924d4"\r
950             ]\r
951         ]\r
952     },\r
953     {\r
954         "id": "26d51b0f.5d004c",\r
955         "type": "other",\r
956         "name": "other",\r
957         "xml": "<outcome value='Other'>\n",\r
958         "comments": "",\r
959         "outputs": 1,\r
960         "x": 3965.5001220703125,\r
961         "y": 1830,\r
962         "z": "bc289cb4.31b288",\r
963         "wires": [\r
964             [\r
965                 "5f4cb2c4.11fb94"\r
966             ]\r
967         ]\r
968     },\r
969     {\r
970         "id": "5f4cb2c4.11fb94",\r
971         "type": "returnFailure",\r
972         "name": "return failure",\r
973         "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.connection-attachement.access-node-id`\" />\n\n",\r
974         "comments": "",\r
975         "x": 4117.5001220703125,\r
976         "y": 1831,\r
977         "z": "bc289cb4.31b288",\r
978         "wires": []\r
979     },\r
980     {\r
981         "id": "b19648bb.51984",\r
982         "type": "returnFailure",\r
983         "name": "return failure",\r
984         "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.connection-attachement.access-node-id`\" />\n\n",\r
985         "comments": "",\r
986         "x": 4128.5001220703125,\r
987         "y": 1776,\r
988         "z": "bc289cb4.31b288",\r
989         "wires": []\r
990     },\r
991     {\r
992         "id": "73a1b393.2e09c4",\r
993         "type": "outcome",\r
994         "name": "esr-thirdparty-sdnc",\r
995         "xml": "<outcome value='esr-thirdparty-sdnc'>\n",\r
996         "comments": "",\r
997         "outputs": 1,\r
998         "x": 4695,\r
999         "y": 1734,\r
1000         "z": "bc289cb4.31b288",\r
1001         "wires": [\r
1002             [\r
1003                 "ab9ee354.2292b"\r
1004             ]\r
1005         ]\r
1006     },\r
1007     {\r
1008         "id": "6cdbe20d.6924d4",\r
1009         "type": "switchNode",\r
1010         "name": "switch related-to",\r
1011         "xml": "<switch test='`$tmp.aai.destination-pnf.relationship-list.relationship[$dpvidx].related-to`'>\n",\r
1012         "comments": "",\r
1013         "outputs": 1,\r
1014         "x": 4492,\r
1015         "y": 1730,\r
1016         "z": "bc289cb4.31b288",\r
1017         "wires": [\r
1018             [\r
1019                 "73a1b393.2e09c4"\r
1020             ]\r
1021         ]\r
1022     },\r
1023     {\r
1024         "id": "1f5d9d19.39869b",\r
1025         "type": "execute",\r
1026         "name": "get esr-thirdparty-sdnc",\r
1027         "xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\t\tresource=\"esr-thirdparty-sdnc\" \n\t\tkey=\"esr-thirdparty-sdnc.thirdparty-sdnc-id = $tmp.domainB.esr-thirdparty-id AND \n\t\t     depth = '1'\"\n        pfx='tmp.aai.domainB.esr-thirdparty-sdnc' local-only='false' >",\r
1028         "comments": "",\r
1029         "outputs": 1,\r
1030         "x": 5080,\r
1031         "y": 1733,\r
1032         "z": "bc289cb4.31b288",\r
1033         "wires": [\r
1034             [\r
1035                 "9355225.5c1536",\r
1036                 "66c76394.d1fea4",\r
1037                 "2e8b8501.9ee95a"\r
1038             ]\r
1039         ]\r
1040     },\r
1041     {\r
1042         "id": "ab9ee354.2292b",\r
1043         "type": "block",\r
1044         "name": "block : atomic",\r
1045         "xml": "<block atomic=\"true\">",\r
1046         "atomic": "true",\r
1047         "outputs": 1,\r
1048         "x": 4872,\r
1049         "y": 1726,\r
1050         "z": "bc289cb4.31b288",\r
1051         "wires": [\r
1052             [\r
1053                 "28e5278d.3f4238",\r
1054                 "1f5d9d19.39869b"\r
1055             ]\r
1056         ]\r
1057     },\r
1058     {\r
1059         "id": "28e5278d.3f4238",\r
1060         "type": "set",\r
1061         "name": "set esr-thirdparty-sdnc domainB id",\r
1062         "xml": "<set>\n<parameter name='tmp.domainB.esr-thirdparty-id' value=\"`$tmp.aai.destination-pnf.relationship-list.relationship[$dpvidx].relationship-data[0].relationship-value`\" />\n",\r
1063         "comments": "",\r
1064         "x": 5110,\r
1065         "y": 1681,\r
1066         "z": "bc289cb4.31b288",\r
1067         "wires": []\r
1068     },\r
1069     {\r
1070         "id": "8616ea00.2e5968",\r
1071         "type": "returnFailure",\r
1072         "name": "return failure",\r
1073         "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.connection-attachement.access-node-id`\" />\n\n",\r
1074         "comments": "",\r
1075         "x": 5439,\r
1076         "y": 1837,\r
1077         "z": "bc289cb4.31b288",\r
1078         "wires": []\r
1079     },\r
1080     {\r
1081         "id": "8ef11dae.da91",\r
1082         "type": "returnFailure",\r
1083         "name": "return failure",\r
1084         "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.connection-attachement.access-node-id`\" />\n\n",\r
1085         "comments": "",\r
1086         "x": 5450,\r
1087         "y": 1782,\r
1088         "z": "bc289cb4.31b288",\r
1089         "wires": []\r
1090     },\r
1091     {\r
1092         "id": "d4ab39c.829a8c8",\r
1093         "type": "block",\r
1094         "name": "block",\r
1095         "xml": "<block>\n",\r
1096         "atomic": "false",\r
1097         "comments": "",\r
1098         "outputs": 1,\r
1099         "x": 5434.38232421875,\r
1100         "y": 1721.6556701660156,\r
1101         "z": "bc289cb4.31b288",\r
1102         "wires": [\r
1103             [\r
1104                 "4d0c934c.0c9114"\r
1105             ]\r
1106         ]\r
1107     },\r
1108     {\r
1109         "id": "4d0c934c.0c9114",\r
1110         "type": "set",\r
1111         "name": "set controller domainB data",\r
1112         "xml": "<set>\n<parameter name='prop.sdncRestApi.thirdpartySdnc.domainB.url' value=\"`$tmp.aai.domainB.esr-thirdparty-sdnc.esr-system-info-list.esr-system-info[0].service-url`\" />\n<parameter name='prop.sdncRestApi.thirdpartySdnc.domainB.user' value=\"`$tmp.aai.domainB.esr-thirdparty-sdnc.esr-system-info-list.esr-system-info[0].user-name`\" />\n<parameter name='prop.sdncRestApi.thirdpartySdnc.domainB.password' value=\"`$tmp.aai.domainB.esr-thirdparty-sdnc.esr-system-info-list.esr-system-info[0].password`\" />\n\n\n<!--<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >-->\n<!--<parameter name=\"restapiUrl\" value=\"`$prop.sdncRestApi.thirdpartySdnc.url + '/restconf/data/ietf-network:networks'`\" />-->\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=\"get\"/>-->\n<!--<parameter name=\"responsePrefix\" value=\"topology\"/>-->\n<!--<parameter name=\"trustStoreFileName\" value=\"/opt/onap/sdnc/data/stores/truststore.onap.client.jks\"/>-->\n<!--<parameter name=\"trustStorePassword\" value=\"adminadmin\"/>-->\n<!--<parameter name=\"keyStoreFileName\" value=\"/opt/onap/sdnc/data/stores/sdnc.p12\"/>-->\n<!--<parameter name=\"keyStorePassword\" value=\"adminadmin\"/>-->\n",\r
1113         "comments": "",\r
1114         "x": 5649,\r
1115         "y": 1718,\r
1116         "z": "bc289cb4.31b288",\r
1117         "wires": []\r
1118     },\r
1119     {\r
1120         "id": "9355225.5c1536",\r
1121         "type": "success",\r
1122         "name": "success",\r
1123         "xml": "<outcome value='success'>\n",\r
1124         "comments": "",\r
1125         "outputs": 1,\r
1126         "x": 5290,\r
1127         "y": 1724,\r
1128         "z": "bc289cb4.31b288",\r
1129         "wires": [\r
1130             [\r
1131                 "d4ab39c.829a8c8"\r
1132             ]\r
1133         ]\r
1134     },\r
1135     {\r
1136         "id": "66c76394.d1fea4",\r
1137         "type": "not-found",\r
1138         "name": "not-found",\r
1139         "xml": "<outcome value='not-found'>\n",\r
1140         "comments": "",\r
1141         "outputs": 1,\r
1142         "x": 5282,\r
1143         "y": 1779,\r
1144         "z": "bc289cb4.31b288",\r
1145         "wires": [\r
1146             [\r
1147                 "8ef11dae.da91"\r
1148             ]\r
1149         ]\r
1150     },\r
1151     {\r
1152         "id": "2e8b8501.9ee95a",\r
1153         "type": "other",\r
1154         "name": "other",\r
1155         "xml": "<outcome value='Other'>\n",\r
1156         "comments": "",\r
1157         "outputs": 1,\r
1158         "x": 5287,\r
1159         "y": 1836,\r
1160         "z": "bc289cb4.31b288",\r
1161         "wires": [\r
1162             [\r
1163                 "8616ea00.2e5968"\r
1164             ]\r
1165         ]\r
1166     },\r
1167     {\r
1168         "id": "7ea091c4.73eb6",\r
1169         "type": "save",\r
1170         "name": "get connectivity from aai",\r
1171         "xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\tresource=\"connectivity\"\n\t    key=\"connectivity.connectivity-id = $tmp.aai.service-instance.relationship-list.relationship[$rel-index].relationship-data[0].relationship-value\"\n\t\tlocal-only=\"false\" \n\t\tpfx=\"tmp.aai.connectivity\" >\n",\r
1172         "comments": "",\r
1173         "outputs": 1,\r
1174         "x": 1819,\r
1175         "y": 440,\r
1176         "z": "bc289cb4.31b288",\r
1177         "wires": [\r
1178             [\r
1179                 "cf96a339.12fc08",\r
1180                 "ebf1abf2.c0a2b8",\r
1181                 "a6813928.711c6"\r
1182             ]\r
1183         ]\r
1184     },\r
1185     {\r
1186         "id": "cf96a339.12fc08",\r
1187         "type": "success",\r
1188         "name": "success",\r
1189         "xml": "<outcome value='success'>\n",\r
1190         "comments": "",\r
1191         "outputs": 1,\r
1192         "x": 2027,\r
1193         "y": 404,\r
1194         "z": "bc289cb4.31b288",\r
1195         "wires": [\r
1196             [\r
1197                 "7e9b774d.9e8c28"\r
1198             ]\r
1199         ]\r
1200     },\r
1201     {\r
1202         "id": "ebf1abf2.c0a2b8",\r
1203         "type": "not-found",\r
1204         "name": "not-found",\r
1205         "xml": "<outcome value='not-found'>\n",\r
1206         "comments": "",\r
1207         "outputs": 1,\r
1208         "x": 2027.490966796875,\r
1209         "y": 449.57403564453125,\r
1210         "z": "bc289cb4.31b288",\r
1211         "wires": [\r
1212             [\r
1213                 "b2e1099a.08fc3"\r
1214             ]\r
1215         ]\r
1216     },\r
1217     {\r
1218         "id": "a6813928.711c6",\r
1219         "type": "failure",\r
1220         "name": "failure",\r
1221         "xml": "<outcome value='failure'>\n",\r
1222         "comments": "",\r
1223         "outputs": 1,\r
1224         "x": 2025,\r
1225         "y": 493,\r
1226         "z": "bc289cb4.31b288",\r
1227         "wires": [\r
1228             [\r
1229                 "8f5ccf37.c152"\r
1230             ]\r
1231         ]\r
1232     },\r
1233     {\r
1234         "id": "b2e1099a.08fc3",\r
1235         "type": "returnFailure",\r
1236         "name": "return failure",\r
1237         "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",\r
1238         "comments": "",\r
1239         "x": 2190.0623779296875,\r
1240         "y": 449.8597717285156,\r
1241         "z": "bc289cb4.31b288",\r
1242         "wires": []\r
1243     },\r
1244     {\r
1245         "id": "8f5ccf37.c152",\r
1246         "type": "returnFailure",\r
1247         "name": "return failure",\r
1248         "xml": "<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value='' />\n",\r
1249         "comments": "",\r
1250         "x": 2194,\r
1251         "y": 494,\r
1252         "z": "bc289cb4.31b288",\r
1253         "wires": []\r
1254     },\r
1255     {\r
1256         "id": "2f04c146.0a3af6",\r
1257         "type": "save",\r
1258         "name": "get vpn-binding from aai",\r
1259         "xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\tresource=\"vpn-binding\"\n\t    key=\"vpn-binding.vpn-id = $tmp.aai.connectivity.relationship-list.relationship[$cridx].relationship-data[0].relationship-value\"\n\t\tlocal-only=\"false\" \n\t\tpfx=\"tmp.aai.vpn-binding\" >\n",\r
1260         "comments": "",\r
1261         "outputs": 1,\r
1262         "x": 2500,\r
1263         "y": 493,\r
1264         "z": "bc289cb4.31b288",\r
1265         "wires": [\r
1266             [\r
1267                 "675654a6.d7ff34",\r
1268                 "15ae8ffb.52d9c8",\r
1269                 "5de62fdc.3f5a78"\r
1270             ]\r
1271         ]\r
1272     },\r
1273     {\r
1274         "id": "c4252359.e0b548",\r
1275         "type": "block",\r
1276         "name": "block : atomic",\r
1277         "xml": "<block atomic=\"true\">",\r
1278         "atomic": "true",\r
1279         "outputs": 1,\r
1280         "x": 2884,\r
1281         "y": 493,\r
1282         "z": "bc289cb4.31b288",\r
1283         "wires": [\r
1284             [\r
1285                 "cf117e36.f49698",\r
1286                 "9e15ad66.cb5638"\r
1287             ]\r
1288         ]\r
1289     },\r
1290     {\r
1291         "id": "675654a6.d7ff34",\r
1292         "type": "success",\r
1293         "name": "success",\r
1294         "xml": "<outcome value='success'>\n",\r
1295         "comments": "",\r
1296         "outputs": 1,\r
1297         "x": 2711,\r
1298         "y": 495,\r
1299         "z": "bc289cb4.31b288",\r
1300         "wires": [\r
1301             [\r
1302                 "c4252359.e0b548"\r
1303             ]\r
1304         ]\r
1305     },\r
1306     {\r
1307         "id": "15ae8ffb.52d9c8",\r
1308         "type": "not-found",\r
1309         "name": "not-found",\r
1310         "xml": "<outcome value='not-found'>\n",\r
1311         "comments": "",\r
1312         "outputs": 1,\r
1313         "x": 2711.490966796875,\r
1314         "y": 540.5740356445312,\r
1315         "z": "bc289cb4.31b288",\r
1316         "wires": [\r
1317             [\r
1318                 "1c0c1f66.646011"\r
1319             ]\r
1320         ]\r
1321     },\r
1322     {\r
1323         "id": "5de62fdc.3f5a78",\r
1324         "type": "failure",\r
1325         "name": "failure",\r
1326         "xml": "<outcome value='failure'>\n",\r
1327         "comments": "",\r
1328         "outputs": 1,\r
1329         "x": 2709,\r
1330         "y": 584,\r
1331         "z": "bc289cb4.31b288",\r
1332         "wires": [\r
1333             [\r
1334                 "96b5913.ff6507"\r
1335             ]\r
1336         ]\r
1337     },\r
1338     {\r
1339         "id": "96b5913.ff6507",\r
1340         "type": "returnFailure",\r
1341         "name": "return failure",\r
1342         "xml": "<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value='' />\n",\r
1343         "comments": "",\r
1344         "x": 2876,\r
1345         "y": 583,\r
1346         "z": "bc289cb4.31b288",\r
1347         "wires": []\r
1348     },\r
1349     {\r
1350         "id": "1c0c1f66.646011",\r
1351         "type": "returnFailure",\r
1352         "name": "return failure",\r
1353         "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",\r
1354         "comments": "",\r
1355         "x": 2874.0623779296875,\r
1356         "y": 540.8597717285156,\r
1357         "z": "bc289cb4.31b288",\r
1358         "wires": []\r
1359     },\r
1360     {\r
1361         "id": "7e9b774d.9e8c28",\r
1362         "type": "for",\r
1363         "name": "for each relationship",\r
1364         "xml": "<for silentFailure='true' index='cridx' start='0' end='`$tmp.aai.connectivity.relationship-list.relationship_length`' >\n\n",\r
1365         "comments": "",\r
1366         "outputs": 1,\r
1367         "x": 2228,\r
1368         "y": 399,\r
1369         "z": "bc289cb4.31b288",\r
1370         "wires": [\r
1371             [\r
1372                 "a33b5641.550dd8"\r
1373             ]\r
1374         ]\r
1375     },\r
1376     {\r
1377         "id": "a33b5641.550dd8",\r
1378         "type": "switchNode",\r
1379         "name": "switch related-to",\r
1380         "xml": "<switch test='`$tmp.aai.connectivity.relationship-list.relationship[$cridx].related-to`'>\n",\r
1381         "comments": "",\r
1382         "outputs": 1,\r
1383         "x": 2433,\r
1384         "y": 399,\r
1385         "z": "bc289cb4.31b288",\r
1386         "wires": [\r
1387             [\r
1388                 "dcc9c2f.bdc72c"\r
1389             ]\r
1390         ]\r
1391     },\r
1392     {\r
1393         "id": "dcc9c2f.bdc72c",\r
1394         "type": "outcome",\r
1395         "name": "vpn-binding",\r
1396         "xml": "<outcome value='vpn-binding'>\n",\r
1397         "comments": "",\r
1398         "outputs": 1,\r
1399         "x": 2599,\r
1400         "y": 399,\r
1401         "z": "bc289cb4.31b288",\r
1402         "wires": [\r
1403             [\r
1404                 "b86471e.744979"\r
1405             ]\r
1406         ]\r
1407     },\r
1408     {\r
1409         "id": "b86471e.744979",\r
1410         "type": "block",\r
1411         "name": "block : atomic",\r
1412         "xml": "<block atomic=\"true\">",\r
1413         "atomic": "true",\r
1414         "outputs": 1,\r
1415         "x": 2762,\r
1416         "y": 399,\r
1417         "z": "bc289cb4.31b288",\r
1418         "wires": [\r
1419             [\r
1420                 "2f04c146.0a3af6",\r
1421                 "65e4f8bf.6cf8f"\r
1422             ]\r
1423         ]\r
1424     },\r
1425     {\r
1426         "id": "cf117e36.f49698",\r
1427         "type": "switchNode",\r
1428         "name": "switch vpn-binding has dst-access-ltp",\r
1429         "xml": "<switch test='`$tmp.aai.vpn-binding.dst-access-ltp-id`'>\n",\r
1430         "comments": "",\r
1431         "outputs": 1,\r
1432         "x": 3138,\r
1433         "y": 492,\r
1434         "z": "bc289cb4.31b288",\r
1435         "wires": [\r
1436             [\r
1437                 "965ac3c2.a1d608",\r
1438                 "6bf420f8.6129c8"\r
1439             ]\r
1440         ]\r
1441     },\r
1442     {\r
1443         "id": "965ac3c2.a1d608",\r
1444         "type": "outcome",\r
1445         "name": "Null",\r
1446         "xml": "<outcome value=''>\n",\r
1447         "comments": "",\r
1448         "outputs": 1,\r
1449         "x": 3391,\r
1450         "y": 526,\r
1451         "z": "bc289cb4.31b288",\r
1452         "wires": [\r
1453             [\r
1454                 "f82e8947.2d7ce8"\r
1455             ]\r
1456         ]\r
1457     },\r
1458     {\r
1459         "id": "6bf420f8.6129c8",\r
1460         "type": "other",\r
1461         "name": "other",\r
1462         "xml": "<outcome value='Other'>\n",\r
1463         "comments": "",\r
1464         "outputs": 1,\r
1465         "x": 3391,\r
1466         "y": 470,\r
1467         "z": "bc289cb4.31b288",\r
1468         "wires": [\r
1469             [\r
1470                 "aacf39c3.b541a"\r
1471             ]\r
1472         ]\r
1473     },\r
1474     {\r
1475         "id": "f82e8947.2d7ce8",\r
1476         "type": "switchNode",\r
1477         "name": "switch vpn-binding has src-access-ltp",\r
1478         "xml": "<switch test='`$tmp.aai.vpn-binding.src-access-ltp-id`'>\n",\r
1479         "comments": "",\r
1480         "outputs": 1,\r
1481         "x": 3115,\r
1482         "y": 1962,\r
1483         "z": "bc289cb4.31b288",\r
1484         "wires": [\r
1485             [\r
1486                 "10da65e0.f509ca",\r
1487                 "73ba091f.6ce2a"\r
1488             ]\r
1489         ]\r
1490     },\r
1491     {\r
1492         "id": "10da65e0.f509ca",\r
1493         "type": "outcome",\r
1494         "name": "Null",\r
1495         "xml": "<outcome value=''>\n",\r
1496         "comments": "",\r
1497         "outputs": 1,\r
1498         "x": 3368,\r
1499         "y": 1996,\r
1500         "z": "bc289cb4.31b288",\r
1501         "wires": [\r
1502             [\r
1503                 "d3f311e2.47dc9"\r
1504             ]\r
1505         ]\r
1506     },\r
1507     {\r
1508         "id": "73ba091f.6ce2a",\r
1509         "type": "other",\r
1510         "name": "other",\r
1511         "xml": "<outcome value='Other'>\n",\r
1512         "comments": "",\r
1513         "outputs": 1,\r
1514         "x": 3368,\r
1515         "y": 1940,\r
1516         "z": "bc289cb4.31b288",\r
1517         "wires": [\r
1518             [\r
1519                 "4a6141b6.6b0c98"\r
1520             ]\r
1521         ]\r
1522     },\r
1523     {\r
1524         "id": "d3f311e2.47dc9",\r
1525         "type": "returnFailure",\r
1526         "name": "return failure",\r
1527         "xml": "<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value='' />\n",\r
1528         "comments": "",\r
1529         "x": 3519,\r
1530         "y": 1996,\r
1531         "z": "bc289cb4.31b288",\r
1532         "wires": []\r
1533     },\r
1534     {\r
1535         "id": "fb92b32f.578d9",\r
1536         "type": "set",\r
1537         "name": "set vpn-bindingA and connectivityA",\r
1538         "xml": "<set>\n<parameter name='tmp.aai.vpn-bindingA.' value=\"`$tmp.aai.vpn-binding.`\" />\n<parameter name='tmp.aai.connectivityA.' value=\"`$tmp.aai.connectivity.`\" />\n",\r
1539         "comments": "",\r
1540         "x": 4395,\r
1541         "y": 94,\r
1542         "z": "bc289cb4.31b288",\r
1543         "wires": []\r
1544     },\r
1545     {\r
1546         "id": "16b6eb5a.c037cd",\r
1547         "type": "set",\r
1548         "name": "set vpn-bindingB and connectivityB",\r
1549         "xml": "<set>\n<parameter name='tmp.aai.vpn-bindingB.' value=\"`$tmp.aai.vpn-binding.`\" />\n<parameter name='tmp.aai.connectivityB.' value=\"`$tmp.aai.connectivity.`\" />\n\n",\r
1550         "comments": "",\r
1551         "x": 3803,\r
1552         "y": 1553,\r
1553         "z": "bc289cb4.31b288",\r
1554         "wires": []\r
1555     },\r
1556     {\r
1557         "id": "b5fbea6d.693118",\r
1558         "type": "block",\r
1559         "name": "block : atomic",\r
1560         "xml": "<block atomic=\"true\">",\r
1561         "atomic": "true",\r
1562         "comments": "",\r
1563         "outputs": 1,\r
1564         "x": 4086,\r
1565         "y": 351,\r
1566         "z": "bc289cb4.31b288",\r
1567         "wires": [\r
1568             [\r
1569                 "fb92b32f.578d9",\r
1570                 "fd4d27b6.bd205",\r
1571                 "4f40e2d1.4262ec",\r
1572                 "8abcb98.e721cc8",\r
1573                 "7974f996.7603f8",\r
1574                 "1460b865.7cff48",\r
1575                 "7648091a.a03898"\r
1576             ]\r
1577         ]\r
1578     },\r
1579     {\r
1580         "id": "4a6141b6.6b0c98",\r
1581         "type": "block",\r
1582         "name": "block : atomic",\r
1583         "xml": "<block atomic=\"true\">",\r
1584         "atomic": "true",\r
1585         "outputs": 1,\r
1586         "x": 3519,\r
1587         "y": 1939,\r
1588         "z": "bc289cb4.31b288",\r
1589         "wires": [\r
1590             [\r
1591                 "16b6eb5a.c037cd",\r
1592                 "3bea0429.f0ebac",\r
1593                 "32f45e6c.4d0bea",\r
1594                 "e8ca7925.e0f8c",\r
1595                 "d501f859.eecd18",\r
1596                 "dfc89384.6f3b98",\r
1597                 "7e08fa79.0c018c"\r
1598             ]\r
1599         ]\r
1600     },\r
1601     {\r
1602         "id": "dfc89384.6f3b98",\r
1603         "type": "set",\r
1604         "name": "set sotn_value",\r
1605         "xml": "<set>\n<!--<parameter name='eth-service-name' value='`$tmp.aai.connectivityB.connectivity-id`' />-->\n<parameter name='eth-service-name' value='`$tmp.aai.connectivityB.etht-svc-name`' />\n<parameter name='slice-id' value='`$vnf-topology-operation-input.service-information.service-instance-id`' />\n<parameter name='provider-id' value='`$tmp.aai.connectivityB.access-provider-id`' />\n<parameter name='client-id' value='`$tmp.aai.connectivityB.access-client-id`' />\n<parameter name='topology-id' value='`$tmp.aai.connectivityB.access-topology-id`' />\n<parameter name='otn-tunnel-name' value='`$tmp.aai.vpn-bindingB.vpn-name`' />\n<parameter name='ethernet-end-point-name' value='`$tmp.aai.connectivityB.connectivity-id`' />\n<parameter name='index-number' value='0' />\n<parameter name='eth-node-id' value='`$tmp.aai.connectivityB.access-node-id`' />\n<parameter name='eth-node-tp-id' value='`$tmp.aai.connectivityB.access-ltp-id`' />\n<parameter name='CIR' value='`$tmp.aai.vpn-bindingB.route-distinguisher *1000000`' />\n<parameter name='EIR' value='`$tmp.aai.vpn-bindingB.route-distinguisher *1000000`' />\n<parameter name='cvlan' value='`$tmp.aai.connectivityB.cvlan`' />\n\n",\r
1606         "comments": "",\r
1607         "x": 3748,\r
1608         "y": 2082,\r
1609         "z": "bc289cb4.31b288",\r
1610         "wires": []\r
1611     },\r
1612     {\r
1613         "id": "7e08fa79.0c018c",\r
1614         "type": "execute",\r
1615         "name": "execute RestApiCallNode Create ethernet Service without token",\r
1616         "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"templateFileName\" value=\"`$prop.restapi.templateDir + '/' + $prop.restapi.ts-ethernet-service.templatefile`\" />\n<parameter name=\"restapiUrl\" value=\"`$prop.sdncRestApi.thirdpartySdnc.domainB.url + '/restconf/data/ietf-eth-tran-service:etht-svc'`\" />\n<!--<parameter name=\"restapiUrl\" value=\"`$prop.restapi.connection-oof-url`\" />-->\n<parameter name=\"restapiUser\" value=\"`$prop.sdncRestApi.thirdpartySdnc.domainB.user`\" />\n<parameter name=\"restapiPassword\" value=\"`$prop.sdncRestApi.thirdpartySdnc.domainB.password`\" />\n<parameter name=\"format\" value=\"json\"/>\n<parameter name=\"httpMethod\" value=\"patch\"/>\n<parameter name='dirPath' value=\"/opt/onap/sdnc/restconfapi/yang\" />\n<parameter name=\"responsePrefix\" value=\"vpn-result\"/>\n<parameter name=\"trustStoreFileName\" value=\"/opt/onap/sdnc/data/stores/truststore.onap.client.jks\"/>\n<parameter name=\"trustStorePassword\" value=\"adminadmin\"/>\n<parameter name=\"keyStoreFileName\" value=\"/opt/onap/sdnc/data/stores/sdnc.p12\"/>\n<parameter name=\"keyStorePassword\" value=\"adminadmin\"/>\n",\r
1617         "comments": "",\r
1618         "outputs": 1,\r
1619         "x": 3902,\r
1620         "y": 2130,\r
1621         "z": "bc289cb4.31b288",\r
1622         "wires": [\r
1623             [\r
1624                 "dd71fa1b.6e05f",\r
1625                 "23079c35.06b53c"\r
1626             ]\r
1627         ]\r
1628     },\r
1629     {\r
1630         "id": "dd71fa1b.6e05f",\r
1631         "type": "failure",\r
1632         "name": "failure",\r
1633         "xml": "<outcome value='failure'>\n",\r
1634         "comments": "",\r
1635         "outputs": 1,\r
1636         "x": 4247.5,\r
1637         "y": 2111,\r
1638         "z": "bc289cb4.31b288",\r
1639         "wires": [\r
1640             [\r
1641                 "531e9904.6c0cf"\r
1642             ]\r
1643         ]\r
1644     },\r
1645     {\r
1646         "id": "23079c35.06b53c",\r
1647         "type": "success",\r
1648         "name": "success",\r
1649         "xml": "<outcome value='success'>\n",\r
1650         "comments": "",\r
1651         "outputs": 1,\r
1652         "x": 4251.5,\r
1653         "y": 2151,\r
1654         "z": "bc289cb4.31b288",\r
1655         "wires": [\r
1656             [\r
1657                 "ca751a91.a1fc5"\r
1658             ]\r
1659         ]\r
1660     },\r
1661     {\r
1662         "id": "531e9904.6c0cf",\r
1663         "type": "returnFailure",\r
1664         "name": "return failure",\r
1665         "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=\"Error executing Create ethernet service rest api\" />\n",\r
1666         "comments": "",\r
1667         "x": 4405.5,\r
1668         "y": 2111,\r
1669         "z": "bc289cb4.31b288",\r
1670         "wires": []\r
1671     },\r
1672     {\r
1673         "id": "ca751a91.a1fc5",\r
1674         "type": "block",\r
1675         "name": "block : atomic",\r
1676         "xml": "<block atomic=\"true\">",\r
1677         "atomic": "true",\r
1678         "comments": "",\r
1679         "outputs": 1,\r
1680         "x": 4409,\r
1681         "y": 2151,\r
1682         "z": "bc289cb4.31b288",\r
1683         "wires": [\r
1684             [\r
1685                 "acce8a06.32f9",\r
1686                 "300cb80e.add27"\r
1687             ]\r
1688         ]\r
1689     },\r
1690     {\r
1691         "id": "ed3d8ab7.5da83",\r
1692         "type": "comment",\r
1693         "name": "TODO: FIXME:",\r
1694         "info": "put proper values based on connectivity resource retrieved from AAI",\r
1695         "comments": "",\r
1696         "x": 3745.5,\r
1697         "y": 2038,\r
1698         "z": "bc289cb4.31b288",\r
1699         "wires": []\r
1700     },\r
1701     {\r
1702         "id": "acce8a06.32f9",\r
1703         "type": "save",\r
1704         "name": "update vpn-binding B resource (aka. OTN domainB) in AAI",\r
1705         "xml": "<update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='vpn-binding' \n      key='vpn-binding.vpn-id = $tmp.aai.vpn-bindingB.vpn-id' >\n<parameter name='vpn-id' value='`$tmp.aai.vpn-bindingB.vpn-id`' />\n<parameter name='vpn-name' value='`$tmp.aai.vpn-bindingB.vpn-name`' />\n\n<parameter name='operational-status' value='Activated' />\n",\r
1706         "comments": "",\r
1707         "outputs": 1,\r
1708         "x": 4749,\r
1709         "y": 2150,\r
1710         "z": "bc289cb4.31b288",\r
1711         "wires": [\r
1712             []\r
1713         ]\r
1714     },\r
1715     {\r
1716         "id": "dd0732a8.6dcd38",\r
1717         "type": "comment",\r
1718         "name": "TODO: FIXME",\r
1719         "info": "use proper vpn-binding id and connectivity\n\nAlso, does CCSDK support \"update\" operation for vpn-binding and connectivity?",\r
1720         "comments": "",\r
1721         "x": 4607,\r
1722         "y": 2108,\r
1723         "z": "bc289cb4.31b288",\r
1724         "wires": []\r
1725     },\r
1726     {\r
1727         "id": "300cb80e.add27",\r
1728         "type": "save",\r
1729         "name": "update connectivity resource in AAI",\r
1730         "xml": "<update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='connectivity' \n      key='connectivity.connectivity-id = $tmp.aai.connectivityB.connectivity-id'>\n<parameter name='connectivity-id' value='`$tmp.aai.connectivityB.connectivity-id`' />\n<parameter name='operational-status' value='Activated' />\n",\r
1731         "comments": "",\r
1732         "outputs": 1,\r
1733         "x": 4678,\r
1734         "y": 2199,\r
1735         "z": "bc289cb4.31b288",\r
1736         "wires": [\r
1737             []\r
1738         ]\r
1739     },\r
1740     {\r
1741         "id": "9e15ad66.cb5638",\r
1742         "type": "set",\r
1743         "name": "set attachment_param (gfp-n) for OTN",\r
1744         "xml": "<set>\n<parameter name='gfp-n' value='`$tmp.aai.vpn-binding.route-distinguisher`' />\n",\r
1745         "comments": "",\r
1746         "x": 3125,\r
1747         "y": 398,\r
1748         "z": "bc289cb4.31b288",\r
1749         "wires": []\r
1750     },\r
1751     {\r
1752         "id": "65e4f8bf.6cf8f",\r
1753         "type": "set",\r
1754         "name": "unset tmp.aai.vpn-binding",\r
1755         "xml": "<set>\n<parameter name='tmp.aai.vpn-binding.' value='' />\n",\r
1756         "comments": "",\r
1757         "x": 2946,\r
1758         "y": 270,\r
1759         "z": "bc289cb4.31b288",\r
1760         "wires": []\r
1761     },\r
1762     {\r
1763         "id": "198fcdf8.1e22c2",\r
1764         "type": "comment",\r
1765         "name": "only dst ttp exists. No src",\r
1766         "info": "",\r
1767         "comments": "",\r
1768         "x": 3907,\r
1769         "y": 308,\r
1770         "z": "bc289cb4.31b288",\r
1771         "wires": []\r
1772     },\r
1773     {\r
1774         "id": "ca0cd7a2.5ca728",\r
1775         "type": "comment",\r
1776         "name": "only src ttp exists. No dst",\r
1777         "info": "",\r
1778         "comments": "",\r
1779         "x": 3464,\r
1780         "y": 1886,\r
1781         "z": "bc289cb4.31b288",\r
1782         "wires": []\r
1783     },\r
1784     {\r
1785         "id": "aacf39c3.b541a",\r
1786         "type": "switchNode",\r
1787         "name": "switch vpn-binding has src-access-ltp",\r
1788         "xml": "<switch test='`$tmp.aai.vpn-binding.src-access-ltp-id`'>\n",\r
1789         "comments": "",\r
1790         "outputs": 1,\r
1791         "x": 3615,\r
1792         "y": 468,\r
1793         "z": "bc289cb4.31b288",\r
1794         "wires": [\r
1795             [\r
1796                 "df2281b1.f49f38",\r
1797                 "aea11bc2.879238"\r
1798             ]\r
1799         ]\r
1800     },\r
1801     {\r
1802         "id": "aea11bc2.879238",\r
1803         "type": "other",\r
1804         "name": "other",\r
1805         "xml": "<outcome value='Other'>\n",\r
1806         "comments": "",\r
1807         "outputs": 1,\r
1808         "x": 3885,\r
1809         "y": 1059,\r
1810         "z": "bc289cb4.31b288",\r
1811         "wires": [\r
1812             [\r
1813                 "f4291584.31d5f8"\r
1814             ]\r
1815         ]\r
1816     },\r
1817     {\r
1818         "id": "df2281b1.f49f38",\r
1819         "type": "outcome",\r
1820         "name": "Null",\r
1821         "xml": "<outcome value=''>\n",\r
1822         "comments": "",\r
1823         "outputs": 1,\r
1824         "x": 3879,\r
1825         "y": 350,\r
1826         "z": "bc289cb4.31b288",\r
1827         "wires": [\r
1828             [\r
1829                 "b5fbea6d.693118"\r
1830             ]\r
1831         ]\r
1832     },\r
1833     {\r
1834         "id": "f4291584.31d5f8",\r
1835         "type": "block",\r
1836         "name": "block : atomic",\r
1837         "xml": "<block atomic=\"true\">",\r
1838         "atomic": "true",\r
1839         "outputs": 1,\r
1840         "x": 4043,\r
1841         "y": 1058,\r
1842         "z": "bc289cb4.31b288",\r
1843         "wires": [\r
1844             [\r
1845                 "507acb8a.026844",\r
1846                 "328f5ebe.d2c3f2",\r
1847                 "282b55f0.c4b452",\r
1848                 "f1d5dfc2.902f38",\r
1849                 "e32fad74.744d"\r
1850             ]\r
1851         ]\r
1852     },\r
1853     {\r
1854         "id": "328f5ebe.d2c3f2",\r
1855         "type": "set",\r
1856         "name": "set attachment_param for OTN G",\r
1857         "xml": "<set>\n<parameter name='src-node-id' value='`$tmp.aai.vpn-bindingG.src-access-node-id`' />\n<parameter name='dst-node-id' value='`$tmp.aai.vpn-bindingG.dst-access-node-id`' />\n<!--<parameter name='dst-tpn-id' value='1' />-->\n<parameter name='src-tpn-id' value='`$tmp.aai.vpn-bindingG.customer-vpn-id`' />\n<parameter name='dst-tpn-id' value='`$tmp.aai.vpn-bindingG.customer-vpn-id`' />\n<parameter name='src-ttp-id' value='`$tmp.aai.vpn-bindingG.src-access-ltp-id`' />\n<parameter name='dst-ttp-id' value='`$tmp.aai.vpn-bindingG.dst-access-ltp-id`' />\n<parameter name='slice-instance-id' value='`$tmp.aai.service-instance.service-instance-id`' />\n<parameter name='otn-tunnel-name-domainG' value='`$tmp.aai.vpn-bindingG.vpn-name`' />\n<parameter name='client-id' value='`$tmp.aai.vpn-bindingG.access-client-id`' />\n<parameter name='provider-id' value='`$tmp.aai.vpn-bindingG.access-provider-id`' />\n<parameter name='topology-id' value='`$tmp.aai.vpn-bindingG.access-topology-id`' />\n",\r
1858         "comments": "",\r
1859         "x": 4307,\r
1860         "y": 941,\r
1861         "z": "bc289cb4.31b288",\r
1862         "wires": []\r
1863     },\r
1864     {\r
1865         "id": "e32fad74.744d",\r
1866         "type": "execute",\r
1867         "name": "execute RestApiCallNode Create OTN tunnel with token",\r
1868         "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"templateFileName\" value=\"`$prop.restapi.templateDir + '/' + $prop.restapi.ts-otn-domainG-creation.templatefile`\" />\n<parameter name=\"restapiUrl\" value=\"`$prop.sdncRestApi.thirdpartySdnc.domainG.url + '/restconf/data/ietf-te:te'`\" />\n<parameter name=\"restapiUser\" value=\"`$prop.sdncRestApi.thirdpartySdnc.domainG.user`\" />\n<parameter name=\"restapiPassword\" value=\"`$prop.sdncRestApi.thirdpartySdnc.domainG.password`\" />\n<parameter name=\"format\" value=\"json\"/>\n<parameter name=\"httpMethod\" value=\"patch\"/>\n<parameter name=\"responsePrefix\" value=\"otn-oof\"/>\n<parameter name=\"trustStoreFileName\" value=\"/opt/onap/sdnc/data/stores/truststore.onap.client.jks\"/>\n<parameter name=\"trustStorePassword\" value=\"adminadmin\"/>\n<parameter name=\"keyStoreFileName\" value=\"/opt/onap/sdnc/data/stores/sdnc.p12\"/>\n<parameter name=\"keyStorePassword\" value=\"adminadmin\"/>\n<parameter name='customHttpHeaders' value=\"`'X-ACCESS-TOKEN=' + $prop.sdncRestApi.token_id`\" />",\r
1869         "comments": "",\r
1870         "outputs": 1,\r
1871         "x": 4388,\r
1872         "y": 1256,\r
1873         "z": "bc289cb4.31b288",\r
1874         "wires": [\r
1875             [\r
1876                 "4fa7d7bd.5a2ab",\r
1877                 "f472be3.5d0074"\r
1878             ]\r
1879         ]\r
1880     },\r
1881     {\r
1882         "id": "4fa7d7bd.5a2ab",\r
1883         "type": "failure",\r
1884         "name": "failure",\r
1885         "xml": "<outcome value='failure'>\n",\r
1886         "comments": "",\r
1887         "outputs": 1,\r
1888         "x": 4697.5,\r
1889         "y": 1225,\r
1890         "z": "bc289cb4.31b288",\r
1891         "wires": [\r
1892             [\r
1893                 "1f127e35.6d237a"\r
1894             ]\r
1895         ]\r
1896     },\r
1897     {\r
1898         "id": "f472be3.5d0074",\r
1899         "type": "success",\r
1900         "name": "success",\r
1901         "xml": "<outcome value='success'>\n",\r
1902         "comments": "",\r
1903         "outputs": 1,\r
1904         "x": 4702.5,\r
1905         "y": 1290,\r
1906         "z": "bc289cb4.31b288",\r
1907         "wires": [\r
1908             [\r
1909                 "5d6567d4.56edf"\r
1910             ]\r
1911         ]\r
1912     },\r
1913     {\r
1914         "id": "1f127e35.6d237a",\r
1915         "type": "returnFailure",\r
1916         "name": "return failure",\r
1917         "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=\"Error executing Create OTN tunnel rest api\" />\n",\r
1918         "comments": "",\r
1919         "x": 4873.5,\r
1920         "y": 1225,\r
1921         "z": "bc289cb4.31b288",\r
1922         "wires": []\r
1923     },\r
1924     {\r
1925         "id": "5d6567d4.56edf",\r
1926         "type": "block",\r
1927         "name": "block : atomic",\r
1928         "xml": "<block atomic=\"true\">",\r
1929         "atomic": "true",\r
1930         "comments": "",\r
1931         "outputs": 1,\r
1932         "x": 4869,\r
1933         "y": 1290,\r
1934         "z": "bc289cb4.31b288",\r
1935         "wires": [\r
1936             []\r
1937         ]\r
1938     },\r
1939     {\r
1940         "id": "282b55f0.c4b452",\r
1941         "type": "set",\r
1942         "name": "set pnf-name",\r
1943         "xml": "<set>\n<parameter name='tmp.domainG.pnf-name' value=\"`'networkId-providerId-' +\n                                                   $tmp.aai.vpn-bindingG.access-provider-id + '-clientId-' +\n                                                   $tmp.aai.vpn-bindingG.access-client-id + '-topologyId-' +\n                                                   $tmp.aai.vpn-bindingG.access-topology-id + '-nodeId-' +\n                                                   $tmp.aai.vpn-bindingG.src-access-node-id`\" />\n",\r
1944         "comments": "",\r
1945         "x": 4245,\r
1946         "y": 989,\r
1947         "z": "bc289cb4.31b288",\r
1948         "wires": []\r
1949     },\r
1950     {\r
1951         "id": "f1d5dfc2.902f38",\r
1952         "type": "get-resource",\r
1953         "name": "get-resource src pnf",\r
1954         "xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\t\tresource=\"pnf\" \n\t\tkey=\"pnf.pnf-name = $tmp.domainG.pnf-name\"\n        pfx='tmp.aai.domainG-pnf' local-only='false' >\n\n        <!--AND depth = '0'\"-->\n",\r
1955         "comments": "",\r
1956         "outputs": 1,\r
1957         "x": 4271,\r
1958         "y": 1106,\r
1959         "z": "bc289cb4.31b288",\r
1960         "wires": [\r
1961             [\r
1962                 "b1abc6d5.732f1",\r
1963                 "5f6c0c85.ca44ac",\r
1964                 "386d37a9.f48098"\r
1965             ]\r
1966         ]\r
1967     },\r
1968     {\r
1969         "id": "b1abc6d5.732f1",\r
1970         "type": "success",\r
1971         "name": "success",\r
1972         "xml": "<outcome value='success'>\n",\r
1973         "comments": "",\r
1974         "outputs": 1,\r
1975         "x": 4466.5001220703125,\r
1976         "y": 1058,\r
1977         "z": "bc289cb4.31b288",\r
1978         "wires": [\r
1979             [\r
1980                 "7b990f0b.20c288"\r
1981             ]\r
1982         ]\r
1983     },\r
1984     {\r
1985         "id": "5f6c0c85.ca44ac",\r
1986         "type": "not-found",\r
1987         "name": "not-found",\r
1988         "xml": "<outcome value='not-found'>\n",\r
1989         "comments": "",\r
1990         "outputs": 1,\r
1991         "x": 4458.5001220703125,\r
1992         "y": 1113,\r
1993         "z": "bc289cb4.31b288",\r
1994         "wires": [\r
1995             [\r
1996                 "315f8841.f40a1"\r
1997             ]\r
1998         ]\r
1999     },\r
2000     {\r
2001         "id": "7b990f0b.20c288",\r
2002         "type": "block",\r
2003         "name": "block",\r
2004         "xml": "<block>\n",\r
2005         "atomic": "false",\r
2006         "comments": "",\r
2007         "outputs": 1,\r
2008         "x": 4610.8824462890625,\r
2009         "y": 1057.6556701660156,\r
2010         "z": "bc289cb4.31b288",\r
2011         "wires": [\r
2012             [\r
2013                 "c8fb728b.2dc648"\r
2014             ]\r
2015         ]\r
2016     },\r
2017     {\r
2018         "id": "c8fb728b.2dc648",\r
2019         "type": "for",\r
2020         "name": "for each relationship",\r
2021         "xml": "<for silentFailure='true' index='spvidx' start='0' end='`$tmp.aai.domainG-pnf.relationship-list.relationship_length`' >\n",\r
2022         "comments": "",\r
2023         "outputs": 1,\r
2024         "x": 4795,\r
2025         "y": 1056,\r
2026         "z": "bc289cb4.31b288",\r
2027         "wires": [\r
2028             [\r
2029                 "d59f0b39.d31cc8"\r
2030             ]\r
2031         ]\r
2032     },\r
2033     {\r
2034         "id": "d59f0b39.d31cc8",\r
2035         "type": "switchNode",\r
2036         "name": "switch related-to",\r
2037         "xml": "<switch test='`$tmp.aai.domainG-pnf.relationship-list.relationship[$spvidx].related-to`'>\n",\r
2038         "comments": "",\r
2039         "outputs": 1,\r
2040         "x": 4990,\r
2041         "y": 1056,\r
2042         "z": "bc289cb4.31b288",\r
2043         "wires": [\r
2044             [\r
2045                 "7e05c38e.6d5cbc"\r
2046             ]\r
2047         ]\r
2048     },\r
2049     {\r
2050         "id": "386d37a9.f48098",\r
2051         "type": "other",\r
2052         "name": "other",\r
2053         "xml": "<outcome value='Other'>\n",\r
2054         "comments": "",\r
2055         "outputs": 1,\r
2056         "x": 4463.5001220703125,\r
2057         "y": 1170,\r
2058         "z": "bc289cb4.31b288",\r
2059         "wires": [\r
2060             [\r
2061                 "46492ab4.cb6c04"\r
2062             ]\r
2063         ]\r
2064     },\r
2065     {\r
2066         "id": "46492ab4.cb6c04",\r
2067         "type": "returnFailure",\r
2068         "name": "return failure",\r
2069         "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.connection-attachement.access-node-id`\" />\n\n",\r
2070         "comments": "",\r
2071         "x": 4615.5001220703125,\r
2072         "y": 1171,\r
2073         "z": "bc289cb4.31b288",\r
2074         "wires": []\r
2075     },\r
2076     {\r
2077         "id": "315f8841.f40a1",\r
2078         "type": "returnFailure",\r
2079         "name": "return failure",\r
2080         "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.connection-attachement.access-node-id`\" />\n\n",\r
2081         "comments": "",\r
2082         "x": 4626.5001220703125,\r
2083         "y": 1114,\r
2084         "z": "bc289cb4.31b288",\r
2085         "wires": []\r
2086     },\r
2087     {\r
2088         "id": "507acb8a.026844",\r
2089         "type": "set",\r
2090         "name": "set vpn-bindingG and connectivityG",\r
2091         "xml": "<set>\n<parameter name='tmp.aai.vpn-bindingG.' value=\"`$tmp.aai.vpn-binding.`\" />\n<parameter name='tmp.aai.connectivityG.' value=\"`$tmp.aai.connectivity.`\" />\n",\r
2092         "comments": "",\r
2093         "x": 4302,\r
2094         "y": 881,\r
2095         "z": "bc289cb4.31b288",\r
2096         "wires": []\r
2097     },\r
2098     {\r
2099         "id": "7e05c38e.6d5cbc",\r
2100         "type": "outcome",\r
2101         "name": "esr-thirdparty-sdnc",\r
2102         "xml": "<outcome value='esr-thirdparty-sdnc'>\n",\r
2103         "comments": "",\r
2104         "outputs": 1,\r
2105         "x": 5193,\r
2106         "y": 1060,\r
2107         "z": "bc289cb4.31b288",\r
2108         "wires": [\r
2109             [\r
2110                 "436389a3.57fb78"\r
2111             ]\r
2112         ]\r
2113     },\r
2114     {\r
2115         "id": "6a766cec.04fc1c",\r
2116         "type": "execute",\r
2117         "name": "get esr-thirdparty-sdnc",\r
2118         "xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\t\tresource=\"esr-thirdparty-sdnc\" \n\t\tkey=\"esr-thirdparty-sdnc.thirdparty-sdnc-id = $tmp.domainG.esr-thirdparty-id AND \n\t\t     depth = '1'\"\n        pfx='tmp.aai.domainG.esr-thirdparty-sdnc' local-only='false' >",\r
2119         "comments": "",\r
2120         "outputs": 1,\r
2121         "x": 5578,\r
2122         "y": 1073,\r
2123         "z": "bc289cb4.31b288",\r
2124         "wires": [\r
2125             [\r
2126                 "985e5e77.801e6",\r
2127                 "a10da0b1.afaa18",\r
2128                 "4e466bf1.fc05c4"\r
2129             ]\r
2130         ]\r
2131     },\r
2132     {\r
2133         "id": "436389a3.57fb78",\r
2134         "type": "block",\r
2135         "name": "block : atomic",\r
2136         "xml": "<block atomic=\"true\">",\r
2137         "atomic": "true",\r
2138         "outputs": 1,\r
2139         "x": 5372,\r
2140         "y": 1060,\r
2141         "z": "bc289cb4.31b288",\r
2142         "wires": [\r
2143             [\r
2144                 "507f9c6b.ef2c2c",\r
2145                 "6a766cec.04fc1c"\r
2146             ]\r
2147         ]\r
2148     },\r
2149     {\r
2150         "id": "507f9c6b.ef2c2c",\r
2151         "type": "set",\r
2152         "name": "set esr-thirdparty-sdnc domainG id",\r
2153         "xml": "<set>\n<parameter name='tmp.domainG.esr-thirdparty-id' value=\"`$tmp.aai.domainG-pnf.relationship-list.relationship[$spvidx].relationship-data[0].relationship-value`\" />\n",\r
2154         "comments": "",\r
2155         "x": 5608,\r
2156         "y": 1021,\r
2157         "z": "bc289cb4.31b288",\r
2158         "wires": []\r
2159     },\r
2160     {\r
2161         "id": "985e5e77.801e6",\r
2162         "type": "success",\r
2163         "name": "success",\r
2164         "xml": "<outcome value='success'>\n",\r
2165         "comments": "",\r
2166         "outputs": 1,\r
2167         "x": 5788,\r
2168         "y": 1064,\r
2169         "z": "bc289cb4.31b288",\r
2170         "wires": [\r
2171             [\r
2172                 "37e160ea.8f86d8"\r
2173             ]\r
2174         ]\r
2175     },\r
2176     {\r
2177         "id": "a10da0b1.afaa18",\r
2178         "type": "not-found",\r
2179         "name": "not-found",\r
2180         "xml": "<outcome value='not-found'>\n",\r
2181         "comments": "",\r
2182         "outputs": 1,\r
2183         "x": 5780,\r
2184         "y": 1119,\r
2185         "z": "bc289cb4.31b288",\r
2186         "wires": [\r
2187             [\r
2188                 "81ccddb5.3e1b1"\r
2189             ]\r
2190         ]\r
2191     },\r
2192     {\r
2193         "id": "4e466bf1.fc05c4",\r
2194         "type": "other",\r
2195         "name": "other",\r
2196         "xml": "<outcome value='Other'>\n",\r
2197         "comments": "",\r
2198         "outputs": 1,\r
2199         "x": 5785,\r
2200         "y": 1176,\r
2201         "z": "bc289cb4.31b288",\r
2202         "wires": [\r
2203             [\r
2204                 "c4f4a10b.e46a6"\r
2205             ]\r
2206         ]\r
2207     },\r
2208     {\r
2209         "id": "c4f4a10b.e46a6",\r
2210         "type": "returnFailure",\r
2211         "name": "return failure",\r
2212         "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.connection-attachement.access-node-id`\" />\n\n",\r
2213         "comments": "",\r
2214         "x": 5937,\r
2215         "y": 1177,\r
2216         "z": "bc289cb4.31b288",\r
2217         "wires": []\r
2218     },\r
2219     {\r
2220         "id": "81ccddb5.3e1b1",\r
2221         "type": "returnFailure",\r
2222         "name": "return failure",\r
2223         "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.connection-attachement.access-node-id`\" />\n\n",\r
2224         "comments": "",\r
2225         "x": 5948,\r
2226         "y": 1122,\r
2227         "z": "bc289cb4.31b288",\r
2228         "wires": []\r
2229     },\r
2230     {\r
2231         "id": "37e160ea.8f86d8",\r
2232         "type": "block",\r
2233         "name": "block",\r
2234         "xml": "<block>\n",\r
2235         "atomic": "false",\r
2236         "comments": "",\r
2237         "outputs": 1,\r
2238         "x": 5932.38232421875,\r
2239         "y": 1061.6556701660156,\r
2240         "z": "bc289cb4.31b288",\r
2241         "wires": [\r
2242             [\r
2243                 "4cbb09e8.a29488"\r
2244             ]\r
2245         ]\r
2246     },\r
2247     {\r
2248         "id": "4cbb09e8.a29488",\r
2249         "type": "set",\r
2250         "name": "set controller domainG data",\r
2251         "xml": "<set>\n<parameter name='prop.sdncRestApi.thirdpartySdnc.domainG.url' value=\"`$tmp.aai.domainG.esr-thirdparty-sdnc.esr-system-info-list.esr-system-info[0].service-url`\" />\n<parameter name='prop.sdncRestApi.thirdpartySdnc.domainG.user' value=\"`$tmp.aai.domainG.esr-thirdparty-sdnc.esr-system-info-list.esr-system-info[0].user-name`\" />\n<parameter name='prop.sdncRestApi.thirdpartySdnc.domainG.password' value=\"`$tmp.aai.domainG.esr-thirdparty-sdnc.esr-system-info-list.esr-system-info[0].password`\" />\n\n\n<!--<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >-->\n<!--<parameter name=\"restapiUrl\" value=\"`$prop.sdncRestApi.thirdpartySdnc.url + '/restconf/data/ietf-network:networks'`\" />-->\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=\"get\"/>-->\n<!--<parameter name=\"responsePrefix\" value=\"topology\"/>-->\n<!--<parameter name=\"trustStoreFileName\" value=\"/opt/onap/sdnc/data/stores/truststore.onap.client.jks\"/>-->\n<!--<parameter name=\"trustStorePassword\" value=\"adminadmin\"/>-->\n<!--<parameter name=\"keyStoreFileName\" value=\"/opt/onap/sdnc/data/stores/sdnc.p12\"/>-->\n<!--<parameter name=\"keyStorePassword\" value=\"adminadmin\"/>-->\n",\r
2252         "comments": "",\r
2253         "x": 6147,\r
2254         "y": 1058,\r
2255         "z": "bc289cb4.31b288",\r
2256         "wires": []\r
2257     },\r
2258     {\r
2259         "id": "28d376a3.473102",\r
2260         "type": "comment",\r
2261         "name": "both src and dst exist",\r
2262         "info": "",\r
2263         "comments": "",\r
2264         "x": 3921,\r
2265         "y": 999,\r
2266         "z": "bc289cb4.31b288",\r
2267         "wires": []\r
2268     }\r
2269 ]