Support for "Modify" operation of a given Transport Slice.
[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": "eb07fd3d.499fe",\r
4         "type": "dgstart",\r
5         "name": "DGSTART",\r
6         "outputs": 1,\r
7         "x": 142,\r
8         "y": 92,\r
9         "z": "f351885d.7dcd3",\r
10         "wires": [\r
11             [\r
12                 "39c5ac20.45e1d4"\r
13             ]\r
14         ]\r
15     },\r
16     {\r
17         "id": "39c5ac20.45e1d4",\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": 273.2856903076172,\r
26         "y": 141.23810863494873,\r
27         "z": "f351885d.7dcd3",\r
28         "wires": [\r
29             [\r
30                 "2ea16900.365168"\r
31             ]\r
32         ]\r
33     },\r
34     {\r
35         "id": "2ea16900.365168",\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": 276.4286193847656,\r
42         "y": 226.00003242492676,\r
43         "z": "f351885d.7dcd3",\r
44         "wires": [\r
45             [\r
46                 "65a4788.f116c88"\r
47             ]\r
48         ]\r
49     },\r
50     {\r
51         "id": "65a4788.f116c88",\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": 426.238037109375,\r
58         "y": 355.6666564941406,\r
59         "z": "f351885d.7dcd3",\r
60         "wires": [\r
61             [\r
62                 "57f656d8.02c09",\r
63                 "6ee54bdc.2fdd5c",\r
64                 "4cf7ab90.c1f3ec"\r
65             ]\r
66         ]\r
67     },\r
68     {\r
69         "id": "57f656d8.02c09",\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": 694.5716552734375,\r
75         "y": 742.59716796875,\r
76         "z": "f351885d.7dcd3",\r
77         "wires": []\r
78     },\r
79     {\r
80         "id": "d36cebd.8be9418",\r
81         "type": "comment",\r
82         "name": "new for TransportSlicing",\r
83         "info": "",\r
84         "comments": "",\r
85         "x": 726,\r
86         "y": 417,\r
87         "z": "f351885d.7dcd3",\r
88         "wires": []\r
89     },\r
90     {\r
91         "id": "6ee54bdc.2fdd5c",\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": 746,\r
98         "y": 513,\r
99         "z": "f351885d.7dcd3",\r
100         "wires": [\r
101             [\r
102                 "4321e029.b0b21",\r
103                 "df857197.b37508",\r
104                 "caa9bf62.bc7768"\r
105             ]\r
106         ]\r
107     },\r
108     {\r
109         "id": "4321e029.b0b21",\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": 965,\r
116         "y": 451,\r
117         "z": "f351885d.7dcd3",\r
118         "wires": [\r
119             [\r
120                 "1399e348.49a41d"\r
121             ]\r
122         ]\r
123     },\r
124     {\r
125         "id": "df857197.b37508",\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": 974.490966796875,\r
132         "y": 493.57403564453125,\r
133         "z": "f351885d.7dcd3",\r
134         "wires": [\r
135             [\r
136                 "9c66f3b5.ba5a"\r
137             ]\r
138         ]\r
139     },\r
140     {\r
141         "id": "caa9bf62.bc7768",\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": 963,\r
148         "y": 540,\r
149         "z": "f351885d.7dcd3",\r
150         "wires": [\r
151             [\r
152                 "83f89a00.0c0e7"\r
153             ]\r
154         ]\r
155     },\r
156     {\r
157         "id": "9c66f3b5.ba5a",\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": 1128.0623779296875,\r
163         "y": 496.8597717285156,\r
164         "z": "f351885d.7dcd3",\r
165         "wires": []\r
166     },\r
167     {\r
168         "id": "83f89a00.0c0e7",\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": 1132,\r
174         "y": 541,\r
175         "z": "f351885d.7dcd3",\r
176         "wires": []\r
177     },\r
178     {\r
179         "id": "1399e348.49a41d",\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": 1162,\r
186         "y": 447,\r
187         "z": "f351885d.7dcd3",\r
188         "wires": [\r
189             [\r
190                 "8c655e36.efa51"\r
191             ]\r
192         ]\r
193     },\r
194     {\r
195         "id": "8c655e36.efa51",\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": 1385.33349609375,\r
202         "y": 446.99993896484375,\r
203         "z": "f351885d.7dcd3",\r
204         "wires": [\r
205             [\r
206                 "dae7ff66.9b9c6"\r
207             ]\r
208         ]\r
209     },\r
210     {\r
211         "id": "dae7ff66.9b9c6",\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": 1586.0001335144043,\r
218         "y": 448.00002098083496,\r
219         "z": "f351885d.7dcd3",\r
220         "wires": [\r
221             [\r
222                 "5afc15bc.b14b2c"\r
223             ]\r
224         ]\r
225     },\r
226     {\r
227         "id": "73d91f0d.979448",\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": 4405,\r
233         "y": 164,\r
234         "z": "f351885d.7dcd3",\r
235         "wires": []\r
236     },\r
237     {\r
238         "id": "53d5aef.e4ebbd",\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": 4486,\r
245         "y": 479,\r
246         "z": "f351885d.7dcd3",\r
247         "wires": [\r
248             [\r
249                 "ecc00da.2c7107",\r
250                 "8ec5d396.327df"\r
251             ]\r
252         ]\r
253     },\r
254     {\r
255         "id": "ecc00da.2c7107",\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": 4795.5,\r
262         "y": 448,\r
263         "z": "f351885d.7dcd3",\r
264         "wires": [\r
265             [\r
266                 "30cb0de4.d526fa"\r
267             ]\r
268         ]\r
269     },\r
270     {\r
271         "id": "8ec5d396.327df",\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": 4800.5,\r
278         "y": 513,\r
279         "z": "f351885d.7dcd3",\r
280         "wires": [\r
281             [\r
282                 "d98d92f9.c81fa"\r
283             ]\r
284         ]\r
285     },\r
286     {\r
287         "id": "30cb0de4.d526fa",\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": 4971.5,\r
293         "y": 448,\r
294         "z": "f351885d.7dcd3",\r
295         "wires": []\r
296     },\r
297     {\r
298         "id": "d98d92f9.c81fa",\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": 4967,\r
306         "y": 513,\r
307         "z": "f351885d.7dcd3",\r
308         "wires": [\r
309             []\r
310         ]\r
311     },\r
312     {\r
313         "id": "b72def38.869578",\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": 4352.5,\r
319         "y": 667,\r
320         "z": "f351885d.7dcd3",\r
321         "wires": []\r
322     },\r
323     {\r
324         "id": "61d206ce.c84cc",\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": 4506.5,\r
331         "y": 715,\r
332         "z": "f351885d.7dcd3",\r
333         "wires": [\r
334             [\r
335                 "4c218232.9ff344",\r
336                 "70cfc429.d9d73c"\r
337             ]\r
338         ]\r
339     },\r
340     {\r
341         "id": "4c218232.9ff344",\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": 4852,\r
348         "y": 696,\r
349         "z": "f351885d.7dcd3",\r
350         "wires": [\r
351             [\r
352                 "508ab9bd.6f59b"\r
353             ]\r
354         ]\r
355     },\r
356     {\r
357         "id": "70cfc429.d9d73c",\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": 4856,\r
364         "y": 736,\r
365         "z": "f351885d.7dcd3",\r
366         "wires": [\r
367             [\r
368                 "4484b215.bd52a4"\r
369             ]\r
370         ]\r
371     },\r
372     {\r
373         "id": "508ab9bd.6f59b",\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": 5010,\r
379         "y": 696,\r
380         "z": "f351885d.7dcd3",\r
381         "wires": []\r
382     },\r
383     {\r
384         "id": "4484b215.bd52a4",\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": 5013.5,\r
392         "y": 736,\r
393         "z": "f351885d.7dcd3",\r
394         "wires": [\r
395             [\r
396                 "d5eb1314.bae0c8",\r
397                 "10b6b358.4dd2d5"\r
398             ]\r
399         ]\r
400     },\r
401     {\r
402         "id": "1158b528.feaadb",\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": 4350,\r
408         "y": 623,\r
409         "z": "f351885d.7dcd3",\r
410         "wires": []\r
411     },\r
412     {\r
413         "id": "d5eb1314.bae0c8",\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": 5344,\r
420         "y": 701,\r
421         "z": "f351885d.7dcd3",\r
422         "wires": [\r
423             []\r
424         ]\r
425     },\r
426     {\r
427         "id": "4e452bee.48e2ac",\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": 5208,\r
433         "y": 660,\r
434         "z": "f351885d.7dcd3",\r
435         "wires": []\r
436     },\r
437     {\r
438         "id": "10b6b358.4dd2d5",\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": 5271,\r
445         "y": 747,\r
446         "z": "f351885d.7dcd3",\r
447         "wires": [\r
448             []\r
449         ]\r
450     },\r
451     {\r
452         "id": "cdb19fe7.3fcc18",\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": 4343,\r
458         "y": 212,\r
459         "z": "f351885d.7dcd3",\r
460         "wires": []\r
461     },\r
462     {\r
463         "id": "83225463.070fc",\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": 4369,\r
470         "y": 329,\r
471         "z": "f351885d.7dcd3",\r
472         "wires": [\r
473             [\r
474                 "c77a135e.0cf11",\r
475                 "733c4b21.b0276c",\r
476                 "dfbdc2b7.10d7d"\r
477             ]\r
478         ]\r
479     },\r
480     {\r
481         "id": "c77a135e.0cf11",\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": 4564.5001220703125,\r
488         "y": 281,\r
489         "z": "f351885d.7dcd3",\r
490         "wires": [\r
491             [\r
492                 "fc1575d4.07ce9"\r
493             ]\r
494         ]\r
495     },\r
496     {\r
497         "id": "733c4b21.b0276c",\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": 4556.5001220703125,\r
504         "y": 336,\r
505         "z": "f351885d.7dcd3",\r
506         "wires": [\r
507             [\r
508                 "2d634f91.a839c8"\r
509             ]\r
510         ]\r
511     },\r
512     {\r
513         "id": "fc1575d4.07ce9",\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": 4708.8824462890625,\r
521         "y": 280.6556701660156,\r
522         "z": "f351885d.7dcd3",\r
523         "wires": [\r
524             [\r
525                 "26c3005d.c41c58"\r
526             ]\r
527         ]\r
528     },\r
529     {\r
530         "id": "fb614f2c.314568",\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": 5291,\r
537         "y": 283,\r
538         "z": "f351885d.7dcd3",\r
539         "wires": [\r
540             [\r
541                 "5511aade.71874c"\r
542             ]\r
543         ]\r
544     },\r
545     {\r
546         "id": "26c3005d.c41c58",\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": 4893,\r
553         "y": 279,\r
554         "z": "f351885d.7dcd3",\r
555         "wires": [\r
556             [\r
557                 "d1afc9f2.3db068"\r
558             ]\r
559         ]\r
560     },\r
561     {\r
562         "id": "d1afc9f2.3db068",\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": 5088,\r
569         "y": 279,\r
570         "z": "f351885d.7dcd3",\r
571         "wires": [\r
572             [\r
573                 "fb614f2c.314568"\r
574             ]\r
575         ]\r
576     },\r
577     {\r
578         "id": "dfbdc2b7.10d7d",\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": 4561.5001220703125,\r
585         "y": 393,\r
586         "z": "f351885d.7dcd3",\r
587         "wires": [\r
588             [\r
589                 "1874b649.d37aaa"\r
590             ]\r
591         ]\r
592     },\r
593     {\r
594         "id": "1874b649.d37aaa",\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": 4713.5001220703125,\r
600         "y": 394,\r
601         "z": "f351885d.7dcd3",\r
602         "wires": []\r
603     },\r
604     {\r
605         "id": "2d634f91.a839c8",\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": 4724.5001220703125,\r
611         "y": 337,\r
612         "z": "f351885d.7dcd3",\r
613         "wires": []\r
614     },\r
615     {\r
616         "id": "37df0014.a385b",\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": 5676,\r
623         "y": 296,\r
624         "z": "f351885d.7dcd3",\r
625         "wires": [\r
626             [\r
627                 "43de30da.db75e8",\r
628                 "e5ad5cbe.572928",\r
629                 "12e2c219.e2a25e"\r
630             ]\r
631         ]\r
632     },\r
633     {\r
634         "id": "5511aade.71874c",\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": 5470,\r
641         "y": 283,\r
642         "z": "f351885d.7dcd3",\r
643         "wires": [\r
644             [\r
645                 "29681795.e63f18",\r
646                 "37df0014.a385b"\r
647             ]\r
648         ]\r
649     },\r
650     {\r
651         "id": "29681795.e63f18",\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": 5706,\r
657         "y": 244,\r
658         "z": "f351885d.7dcd3",\r
659         "wires": []\r
660     },\r
661     {\r
662         "id": "43de30da.db75e8",\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": 5886,\r
669         "y": 287,\r
670         "z": "f351885d.7dcd3",\r
671         "wires": [\r
672             [\r
673                 "9fb5e37f.eaa9f"\r
674             ]\r
675         ]\r
676     },\r
677     {\r
678         "id": "e5ad5cbe.572928",\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": 5878,\r
685         "y": 342,\r
686         "z": "f351885d.7dcd3",\r
687         "wires": [\r
688             [\r
689                 "24f5f29e.218576"\r
690             ]\r
691         ]\r
692     },\r
693     {\r
694         "id": "12e2c219.e2a25e",\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": 5883,\r
701         "y": 399,\r
702         "z": "f351885d.7dcd3",\r
703         "wires": [\r
704             [\r
705                 "cd568772.16e428"\r
706             ]\r
707         ]\r
708     },\r
709     {\r
710         "id": "cd568772.16e428",\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": 6035,\r
716         "y": 400,\r
717         "z": "f351885d.7dcd3",\r
718         "wires": []\r
719     },\r
720     {\r
721         "id": "24f5f29e.218576",\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": 6046,\r
727         "y": 345,\r
728         "z": "f351885d.7dcd3",\r
729         "wires": []\r
730     },\r
731     {\r
732         "id": "9fb5e37f.eaa9f",\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": 6030.38232421875,\r
740         "y": 284.6556701660156,\r
741         "z": "f351885d.7dcd3",\r
742         "wires": [\r
743             [\r
744                 "2b11e0ba.ac6cd8"\r
745             ]\r
746         ]\r
747     },\r
748     {\r
749         "id": "2b11e0ba.ac6cd8",\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": 6245,\r
755         "y": 281,\r
756         "z": "f351885d.7dcd3",\r
757         "wires": []\r
758     },\r
759     {\r
760         "id": "4cf7ab90.c1f3ec",\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": 712,\r
767         "y": 461,\r
768         "z": "f351885d.7dcd3",\r
769         "wires": [\r
770             []\r
771         ]\r
772     },\r
773     {\r
774         "id": "fec1365a.907b4",\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": 3812,\r
780         "y": 1621,\r
781         "z": "f351885d.7dcd3",\r
782         "wires": []\r
783     },\r
784     {\r
785         "id": "eb21cc8f.003df8",\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": 3875,\r
792         "y": 1950,\r
793         "z": "f351885d.7dcd3",\r
794         "wires": [\r
795             [\r
796                 "fc655ff.669232",\r
797                 "dfbdc395.b4aa"\r
798             ]\r
799         ]\r
800     },\r
801     {\r
802         "id": "fc655ff.669232",\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": 4170.5,\r
809         "y": 1917,\r
810         "z": "f351885d.7dcd3",\r
811         "wires": [\r
812             [\r
813                 "d2ad58a1.dbb57"\r
814             ]\r
815         ]\r
816     },\r
817     {\r
818         "id": "dfbdc395.b4aa",\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": 4175.5,\r
825         "y": 1982,\r
826         "z": "f351885d.7dcd3",\r
827         "wires": [\r
828             [\r
829                 "43fba27a.3e8bd4"\r
830             ]\r
831         ]\r
832     },\r
833     {\r
834         "id": "d2ad58a1.dbb57",\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": 4338.5,\r
840         "y": 1917,\r
841         "z": "f351885d.7dcd3",\r
842         "wires": []\r
843     },\r
844     {\r
845         "id": "43fba27a.3e8bd4",\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": 4349,\r
853         "y": 1982,\r
854         "z": "f351885d.7dcd3",\r
855         "wires": [\r
856             []\r
857         ]\r
858     },\r
859     {\r
860         "id": "a7e92939.08a52",\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": 3751,\r
866         "y": 1678,\r
867         "z": "f351885d.7dcd3",\r
868         "wires": []\r
869     },\r
870     {\r
871         "id": "25024bed.781cdc",\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": 3771,\r
878         "y": 1775,\r
879         "z": "f351885d.7dcd3",\r
880         "wires": [\r
881             [\r
882                 "17a289eb.8378c6",\r
883                 "4e86abed.341d6c",\r
884                 "9944c222.7ecb4"\r
885             ]\r
886         ]\r
887     },\r
888     {\r
889         "id": "17a289eb.8378c6",\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": 3973.5001220703125,\r
896         "y": 1728,\r
897         "z": "f351885d.7dcd3",\r
898         "wires": [\r
899             [\r
900                 "2250bf3f.3fcd88"\r
901             ]\r
902         ]\r
903     },\r
904     {\r
905         "id": "4e86abed.341d6c",\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": 3965.5001220703125,\r
912         "y": 1783,\r
913         "z": "f351885d.7dcd3",\r
914         "wires": [\r
915             [\r
916                 "7fe7998e.7db16"\r
917             ]\r
918         ]\r
919     },\r
920     {\r
921         "id": "2250bf3f.3fcd88",\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": 4117.8824462890625,\r
929         "y": 1725.6556701660156,\r
930         "z": "f351885d.7dcd3",\r
931         "wires": [\r
932             [\r
933                 "19367b54.5d4395"\r
934             ]\r
935         ]\r
936     },\r
937     {\r
938         "id": "19367b54.5d4395",\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": 4302,\r
945         "y": 1740,\r
946         "z": "f351885d.7dcd3",\r
947         "wires": [\r
948             [\r
949                 "e137d17b.53afd"\r
950             ]\r
951         ]\r
952     },\r
953     {\r
954         "id": "9944c222.7ecb4",\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": 3970.5001220703125,\r
961         "y": 1840,\r
962         "z": "f351885d.7dcd3",\r
963         "wires": [\r
964             [\r
965                 "c7e8bb41.e69fc8"\r
966             ]\r
967         ]\r
968     },\r
969     {\r
970         "id": "c7e8bb41.e69fc8",\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": 4122.5001220703125,\r
976         "y": 1841,\r
977         "z": "f351885d.7dcd3",\r
978         "wires": []\r
979     },\r
980     {\r
981         "id": "7fe7998e.7db16",\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": 4133.5001220703125,\r
987         "y": 1786,\r
988         "z": "f351885d.7dcd3",\r
989         "wires": []\r
990     },\r
991     {\r
992         "id": "18a3ba34.8443fe",\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": 4700,\r
999         "y": 1744,\r
1000         "z": "f351885d.7dcd3",\r
1001         "wires": [\r
1002             [\r
1003                 "cca686b1.a86b48"\r
1004             ]\r
1005         ]\r
1006     },\r
1007     {\r
1008         "id": "e137d17b.53afd",\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": 4497,\r
1015         "y": 1740,\r
1016         "z": "f351885d.7dcd3",\r
1017         "wires": [\r
1018             [\r
1019                 "18a3ba34.8443fe"\r
1020             ]\r
1021         ]\r
1022     },\r
1023     {\r
1024         "id": "ec259c93.12e46",\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": 5085,\r
1031         "y": 1743,\r
1032         "z": "f351885d.7dcd3",\r
1033         "wires": [\r
1034             [\r
1035                 "cf9d2f3.18e805",\r
1036                 "1901d45c.9387cc",\r
1037                 "86a361e1.5f9008"\r
1038             ]\r
1039         ]\r
1040     },\r
1041     {\r
1042         "id": "cca686b1.a86b48",\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": 4877,\r
1049         "y": 1736,\r
1050         "z": "f351885d.7dcd3",\r
1051         "wires": [\r
1052             [\r
1053                 "2d219530.71913a",\r
1054                 "ec259c93.12e46"\r
1055             ]\r
1056         ]\r
1057     },\r
1058     {\r
1059         "id": "2d219530.71913a",\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": 5115,\r
1065         "y": 1691,\r
1066         "z": "f351885d.7dcd3",\r
1067         "wires": []\r
1068     },\r
1069     {\r
1070         "id": "bb17bcb1.afece8",\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": 5444,\r
1076         "y": 1847,\r
1077         "z": "f351885d.7dcd3",\r
1078         "wires": []\r
1079     },\r
1080     {\r
1081         "id": "e71302c9.0e3fc8",\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": 5455,\r
1087         "y": 1792,\r
1088         "z": "f351885d.7dcd3",\r
1089         "wires": []\r
1090     },\r
1091     {\r
1092         "id": "c367d2df.137348",\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": 5439.38232421875,\r
1100         "y": 1731.6556701660156,\r
1101         "z": "f351885d.7dcd3",\r
1102         "wires": [\r
1103             [\r
1104                 "bfc16252.e05aa"\r
1105             ]\r
1106         ]\r
1107     },\r
1108     {\r
1109         "id": "bfc16252.e05aa",\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": 5654,\r
1115         "y": 1728,\r
1116         "z": "f351885d.7dcd3",\r
1117         "wires": []\r
1118     },\r
1119     {\r
1120         "id": "cf9d2f3.18e805",\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": 5295,\r
1127         "y": 1734,\r
1128         "z": "f351885d.7dcd3",\r
1129         "wires": [\r
1130             [\r
1131                 "c367d2df.137348"\r
1132             ]\r
1133         ]\r
1134     },\r
1135     {\r
1136         "id": "1901d45c.9387cc",\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": 5287,\r
1143         "y": 1789,\r
1144         "z": "f351885d.7dcd3",\r
1145         "wires": [\r
1146             [\r
1147                 "e71302c9.0e3fc8"\r
1148             ]\r
1149         ]\r
1150     },\r
1151     {\r
1152         "id": "86a361e1.5f9008",\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": 5292,\r
1159         "y": 1846,\r
1160         "z": "f351885d.7dcd3",\r
1161         "wires": [\r
1162             [\r
1163                 "bb17bcb1.afece8"\r
1164             ]\r
1165         ]\r
1166     },\r
1167     {\r
1168         "id": "5afc15bc.b14b2c",\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": 1824,\r
1175         "y": 450,\r
1176         "z": "f351885d.7dcd3",\r
1177         "wires": [\r
1178             [\r
1179                 "c4ea2f12.0682f8",\r
1180                 "89ba984f.fbff08",\r
1181                 "4c31ddac.b140a4"\r
1182             ]\r
1183         ]\r
1184     },\r
1185     {\r
1186         "id": "c4ea2f12.0682f8",\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": 2032,\r
1193         "y": 414,\r
1194         "z": "f351885d.7dcd3",\r
1195         "wires": [\r
1196             [\r
1197                 "207f18a3.1780c8"\r
1198             ]\r
1199         ]\r
1200     },\r
1201     {\r
1202         "id": "89ba984f.fbff08",\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": 2032.490966796875,\r
1209         "y": 459.57403564453125,\r
1210         "z": "f351885d.7dcd3",\r
1211         "wires": [\r
1212             [\r
1213                 "db0bb70b.5af75"\r
1214             ]\r
1215         ]\r
1216     },\r
1217     {\r
1218         "id": "4c31ddac.b140a4",\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": 2030,\r
1225         "y": 503,\r
1226         "z": "f351885d.7dcd3",\r
1227         "wires": [\r
1228             [\r
1229                 "34efc961.392a36"\r
1230             ]\r
1231         ]\r
1232     },\r
1233     {\r
1234         "id": "db0bb70b.5af75",\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": 2195.0623779296875,\r
1240         "y": 459.8597717285156,\r
1241         "z": "f351885d.7dcd3",\r
1242         "wires": []\r
1243     },\r
1244     {\r
1245         "id": "34efc961.392a36",\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": 2199,\r
1251         "y": 504,\r
1252         "z": "f351885d.7dcd3",\r
1253         "wires": []\r
1254     },\r
1255     {\r
1256         "id": "da2f8124.076ab8",\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": 2505,\r
1263         "y": 503,\r
1264         "z": "f351885d.7dcd3",\r
1265         "wires": [\r
1266             [\r
1267                 "28f88824.b7c4b8",\r
1268                 "d6ad8583.7ca128",\r
1269                 "c9e967f5.e899f8"\r
1270             ]\r
1271         ]\r
1272     },\r
1273     {\r
1274         "id": "f459c148.932bf8",\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": 2885,\r
1281         "y": 591,\r
1282         "z": "f351885d.7dcd3",\r
1283         "wires": [\r
1284             [\r
1285                 "1c6e3351.8ccb0d"\r
1286             ]\r
1287         ]\r
1288     },\r
1289     {\r
1290         "id": "28f88824.b7c4b8",\r
1291         "type": "success",\r
1292         "name": "success",\r
1293         "xml": "<outcome value='success'>\n",\r
1294         "comments": "",\r
1295         "outputs": 1,\r
1296         "x": 2716,\r
1297         "y": 592,\r
1298         "z": "f351885d.7dcd3",\r
1299         "wires": [\r
1300             [\r
1301                 "f459c148.932bf8"\r
1302             ]\r
1303         ]\r
1304     },\r
1305     {\r
1306         "id": "d6ad8583.7ca128",\r
1307         "type": "not-found",\r
1308         "name": "not-found",\r
1309         "xml": "<outcome value='not-found'>\n",\r
1310         "comments": "",\r
1311         "outputs": 1,\r
1312         "x": 2718.490966796875,\r
1313         "y": 487.57403564453125,\r
1314         "z": "f351885d.7dcd3",\r
1315         "wires": [\r
1316             [\r
1317                 "ef5820a6.09d9d"\r
1318             ]\r
1319         ]\r
1320     },\r
1321     {\r
1322         "id": "c9e967f5.e899f8",\r
1323         "type": "failure",\r
1324         "name": "failure",\r
1325         "xml": "<outcome value='failure'>\n",\r
1326         "comments": "",\r
1327         "outputs": 1,\r
1328         "x": 2714,\r
1329         "y": 532,\r
1330         "z": "f351885d.7dcd3",\r
1331         "wires": [\r
1332             [\r
1333                 "bd9d5fad.2d262"\r
1334             ]\r
1335         ]\r
1336     },\r
1337     {\r
1338         "id": "bd9d5fad.2d262",\r
1339         "type": "returnFailure",\r
1340         "name": "return failure",\r
1341         "xml": "<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value='' />\n",\r
1342         "comments": "",\r
1343         "x": 2882,\r
1344         "y": 532,\r
1345         "z": "f351885d.7dcd3",\r
1346         "wires": []\r
1347     },\r
1348     {\r
1349         "id": "ef5820a6.09d9d",\r
1350         "type": "returnFailure",\r
1351         "name": "return failure",\r
1352         "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
1353         "comments": "",\r
1354         "x": 2881.0625,\r
1355         "y": 486.8597412109375,\r
1356         "z": "f351885d.7dcd3",\r
1357         "wires": []\r
1358     },\r
1359     {\r
1360         "id": "207f18a3.1780c8",\r
1361         "type": "for",\r
1362         "name": "for each relationship",\r
1363         "xml": "<for silentFailure='true' index='cridx' start='0' end='`$tmp.aai.connectivity.relationship-list.relationship_length`' >\n\n",\r
1364         "comments": "",\r
1365         "outputs": 1,\r
1366         "x": 2233,\r
1367         "y": 409,\r
1368         "z": "f351885d.7dcd3",\r
1369         "wires": [\r
1370             [\r
1371                 "208bed02.1187fa"\r
1372             ]\r
1373         ]\r
1374     },\r
1375     {\r
1376         "id": "208bed02.1187fa",\r
1377         "type": "switchNode",\r
1378         "name": "switch related-to",\r
1379         "xml": "<switch test='`$tmp.aai.connectivity.relationship-list.relationship[$cridx].related-to`'>\n",\r
1380         "comments": "",\r
1381         "outputs": 1,\r
1382         "x": 2438,\r
1383         "y": 409,\r
1384         "z": "f351885d.7dcd3",\r
1385         "wires": [\r
1386             [\r
1387                 "f005e0a8.cc7dc8"\r
1388             ]\r
1389         ]\r
1390     },\r
1391     {\r
1392         "id": "f005e0a8.cc7dc8",\r
1393         "type": "outcome",\r
1394         "name": "vpn-binding",\r
1395         "xml": "<outcome value='vpn-binding'>\n",\r
1396         "comments": "",\r
1397         "outputs": 1,\r
1398         "x": 2604,\r
1399         "y": 409,\r
1400         "z": "f351885d.7dcd3",\r
1401         "wires": [\r
1402             [\r
1403                 "51d187ad.ad3078"\r
1404             ]\r
1405         ]\r
1406     },\r
1407     {\r
1408         "id": "51d187ad.ad3078",\r
1409         "type": "block",\r
1410         "name": "block : atomic",\r
1411         "xml": "<block atomic=\"true\">",\r
1412         "atomic": "true",\r
1413         "outputs": 1,\r
1414         "x": 2767,\r
1415         "y": 409,\r
1416         "z": "f351885d.7dcd3",\r
1417         "wires": [\r
1418             [\r
1419                 "da2f8124.076ab8",\r
1420                 "1e447cc1.915cb3"\r
1421             ]\r
1422         ]\r
1423     },\r
1424     {\r
1425         "id": "aecb0c53.70b3e8",\r
1426         "type": "switchNode",\r
1427         "name": "switch vpn-binding has dst-access-ltp",\r
1428         "xml": "<switch test='`$tmp.aai.vpn-binding.dst-access-ltp-id`'>\n",\r
1429         "comments": "",\r
1430         "outputs": 1,\r
1431         "x": 3326,\r
1432         "y": 692,\r
1433         "z": "f351885d.7dcd3",\r
1434         "wires": [\r
1435             [\r
1436                 "45f40514.0a111c",\r
1437                 "e5457af4.842818"\r
1438             ]\r
1439         ]\r
1440     },\r
1441     {\r
1442         "id": "45f40514.0a111c",\r
1443         "type": "outcome",\r
1444         "name": "Null",\r
1445         "xml": "<outcome value=''>\n",\r
1446         "comments": "",\r
1447         "outputs": 1,\r
1448         "x": 3540,\r
1449         "y": 729,\r
1450         "z": "f351885d.7dcd3",\r
1451         "wires": [\r
1452             [\r
1453                 "4c5d5e83.4b55d8"\r
1454             ]\r
1455         ]\r
1456     },\r
1457     {\r
1458         "id": "e5457af4.842818",\r
1459         "type": "other",\r
1460         "name": "other",\r
1461         "xml": "<outcome value='Other'>\n",\r
1462         "comments": "",\r
1463         "outputs": 1,\r
1464         "x": 3542,\r
1465         "y": 667,\r
1466         "z": "f351885d.7dcd3",\r
1467         "wires": [\r
1468             [\r
1469                 "d204a9f5.cb1f"\r
1470             ]\r
1471         ]\r
1472     },\r
1473     {\r
1474         "id": "4c5d5e83.4b55d8",\r
1475         "type": "switchNode",\r
1476         "name": "switch vpn-binding has src-access-ltp",\r
1477         "xml": "<switch test='`$tmp.aai.vpn-binding.src-access-ltp-id`'>\n",\r
1478         "comments": "",\r
1479         "outputs": 1,\r
1480         "x": 3120,\r
1481         "y": 1972,\r
1482         "z": "f351885d.7dcd3",\r
1483         "wires": [\r
1484             [\r
1485                 "e25a0aae.dc3b6",\r
1486                 "5811aab2.c9cdb4"\r
1487             ]\r
1488         ]\r
1489     },\r
1490     {\r
1491         "id": "e25a0aae.dc3b6",\r
1492         "type": "outcome",\r
1493         "name": "Null",\r
1494         "xml": "<outcome value=''>\n",\r
1495         "comments": "",\r
1496         "outputs": 1,\r
1497         "x": 3373,\r
1498         "y": 2006,\r
1499         "z": "f351885d.7dcd3",\r
1500         "wires": [\r
1501             [\r
1502                 "e2283676.c05cf8"\r
1503             ]\r
1504         ]\r
1505     },\r
1506     {\r
1507         "id": "5811aab2.c9cdb4",\r
1508         "type": "other",\r
1509         "name": "other",\r
1510         "xml": "<outcome value='Other'>\n",\r
1511         "comments": "",\r
1512         "outputs": 1,\r
1513         "x": 3373,\r
1514         "y": 1950,\r
1515         "z": "f351885d.7dcd3",\r
1516         "wires": [\r
1517             [\r
1518                 "5f1f11a6.4b622"\r
1519             ]\r
1520         ]\r
1521     },\r
1522     {\r
1523         "id": "e2283676.c05cf8",\r
1524         "type": "returnFailure",\r
1525         "name": "return failure",\r
1526         "xml": "<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value='' />\n",\r
1527         "comments": "",\r
1528         "x": 3524,\r
1529         "y": 2006,\r
1530         "z": "f351885d.7dcd3",\r
1531         "wires": []\r
1532     },\r
1533     {\r
1534         "id": "ef6002a3.a9265",\r
1535         "type": "set",\r
1536         "name": "set vpn-bindingA and connectivityA",\r
1537         "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
1538         "comments": "",\r
1539         "x": 4400,\r
1540         "y": 104,\r
1541         "z": "f351885d.7dcd3",\r
1542         "wires": []\r
1543     },\r
1544     {\r
1545         "id": "d11d0786.01d8c8",\r
1546         "type": "set",\r
1547         "name": "set vpn-bindingB and connectivityB",\r
1548         "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
1549         "comments": "",\r
1550         "x": 3808,\r
1551         "y": 1563,\r
1552         "z": "f351885d.7dcd3",\r
1553         "wires": []\r
1554     },\r
1555     {\r
1556         "id": "4923e79.d3d2a98",\r
1557         "type": "block",\r
1558         "name": "block : atomic",\r
1559         "xml": "<block atomic=\"true\">",\r
1560         "atomic": "true",\r
1561         "comments": "",\r
1562         "outputs": 1,\r
1563         "x": 4091,\r
1564         "y": 361,\r
1565         "z": "f351885d.7dcd3",\r
1566         "wires": [\r
1567             [\r
1568                 "ef6002a3.a9265",\r
1569                 "73d91f0d.979448",\r
1570                 "cdb19fe7.3fcc18",\r
1571                 "83225463.070fc",\r
1572                 "b72def38.869578",\r
1573                 "61d206ce.c84cc",\r
1574                 "53d5aef.e4ebbd"\r
1575             ]\r
1576         ]\r
1577     },\r
1578     {\r
1579         "id": "5f1f11a6.4b622",\r
1580         "type": "block",\r
1581         "name": "block : atomic",\r
1582         "xml": "<block atomic=\"true\">",\r
1583         "atomic": "true",\r
1584         "outputs": 1,\r
1585         "x": 3524,\r
1586         "y": 1949,\r
1587         "z": "f351885d.7dcd3",\r
1588         "wires": [\r
1589             [\r
1590                 "d11d0786.01d8c8",\r
1591                 "fec1365a.907b4",\r
1592                 "a7e92939.08a52",\r
1593                 "25024bed.781cdc",\r
1594                 "eb21cc8f.003df8",\r
1595                 "1be8ac25.0620fc",\r
1596                 "6fb79d87.420834"\r
1597             ]\r
1598         ]\r
1599     },\r
1600     {\r
1601         "id": "1be8ac25.0620fc",\r
1602         "type": "set",\r
1603         "name": "set sotn_value",\r
1604         "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
1605         "comments": "",\r
1606         "x": 3753,\r
1607         "y": 2092,\r
1608         "z": "f351885d.7dcd3",\r
1609         "wires": []\r
1610     },\r
1611     {\r
1612         "id": "6fb79d87.420834",\r
1613         "type": "execute",\r
1614         "name": "execute RestApiCallNode Create ethernet Service without token",\r
1615         "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
1616         "comments": "",\r
1617         "outputs": 1,\r
1618         "x": 3907,\r
1619         "y": 2140,\r
1620         "z": "f351885d.7dcd3",\r
1621         "wires": [\r
1622             [\r
1623                 "6175c964.8889d",\r
1624                 "add709ae.0740f"\r
1625             ]\r
1626         ]\r
1627     },\r
1628     {\r
1629         "id": "6175c964.8889d",\r
1630         "type": "failure",\r
1631         "name": "failure",\r
1632         "xml": "<outcome value='failure'>\n",\r
1633         "comments": "",\r
1634         "outputs": 1,\r
1635         "x": 4252.5,\r
1636         "y": 2121,\r
1637         "z": "f351885d.7dcd3",\r
1638         "wires": [\r
1639             [\r
1640                 "7caa2ba7.6bf4dc"\r
1641             ]\r
1642         ]\r
1643     },\r
1644     {\r
1645         "id": "add709ae.0740f",\r
1646         "type": "success",\r
1647         "name": "success",\r
1648         "xml": "<outcome value='success'>\n",\r
1649         "comments": "",\r
1650         "outputs": 1,\r
1651         "x": 4256.5,\r
1652         "y": 2161,\r
1653         "z": "f351885d.7dcd3",\r
1654         "wires": [\r
1655             [\r
1656                 "43eb2ee.41b33d"\r
1657             ]\r
1658         ]\r
1659     },\r
1660     {\r
1661         "id": "7caa2ba7.6bf4dc",\r
1662         "type": "returnFailure",\r
1663         "name": "return failure",\r
1664         "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
1665         "comments": "",\r
1666         "x": 4410.5,\r
1667         "y": 2121,\r
1668         "z": "f351885d.7dcd3",\r
1669         "wires": []\r
1670     },\r
1671     {\r
1672         "id": "43eb2ee.41b33d",\r
1673         "type": "block",\r
1674         "name": "block : atomic",\r
1675         "xml": "<block atomic=\"true\">",\r
1676         "atomic": "true",\r
1677         "comments": "",\r
1678         "outputs": 1,\r
1679         "x": 4414,\r
1680         "y": 2161,\r
1681         "z": "f351885d.7dcd3",\r
1682         "wires": [\r
1683             [\r
1684                 "30f33337.055d14",\r
1685                 "948532eb.e6c7c"\r
1686             ]\r
1687         ]\r
1688     },\r
1689     {\r
1690         "id": "bc6f9b2b.7321f",\r
1691         "type": "comment",\r
1692         "name": "TODO: FIXME:",\r
1693         "info": "put proper values based on connectivity resource retrieved from AAI",\r
1694         "comments": "",\r
1695         "x": 3750.5,\r
1696         "y": 2048,\r
1697         "z": "f351885d.7dcd3",\r
1698         "wires": []\r
1699     },\r
1700     {\r
1701         "id": "30f33337.055d14",\r
1702         "type": "save",\r
1703         "name": "update vpn-binding B resource (aka. OTN domainB) in AAI",\r
1704         "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
1705         "comments": "",\r
1706         "outputs": 1,\r
1707         "x": 4754,\r
1708         "y": 2160,\r
1709         "z": "f351885d.7dcd3",\r
1710         "wires": [\r
1711             []\r
1712         ]\r
1713     },\r
1714     {\r
1715         "id": "227afae6.b4c94e",\r
1716         "type": "comment",\r
1717         "name": "TODO: FIXME",\r
1718         "info": "use proper vpn-binding id and connectivity\n\nAlso, does CCSDK support \"update\" operation for vpn-binding and connectivity?",\r
1719         "comments": "",\r
1720         "x": 4612,\r
1721         "y": 2118,\r
1722         "z": "f351885d.7dcd3",\r
1723         "wires": []\r
1724     },\r
1725     {\r
1726         "id": "948532eb.e6c7c",\r
1727         "type": "save",\r
1728         "name": "update connectivity resource in AAI",\r
1729         "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
1730         "comments": "",\r
1731         "outputs": 1,\r
1732         "x": 4683,\r
1733         "y": 2209,\r
1734         "z": "f351885d.7dcd3",\r
1735         "wires": [\r
1736             []\r
1737         ]\r
1738     },\r
1739     {\r
1740         "id": "55624da8.df976c",\r
1741         "type": "set",\r
1742         "name": "set attachment_param (gfp-n) for OTN",\r
1743         "xml": "<set>\n<parameter name='gfp-n' value='`$tmp.aai.vpn-binding.route-distinguisher`' />\n",\r
1744         "comments": "",\r
1745         "x": 3317,\r
1746         "y": 632,\r
1747         "z": "f351885d.7dcd3",\r
1748         "wires": []\r
1749     },\r
1750     {\r
1751         "id": "1e447cc1.915cb3",\r
1752         "type": "set",\r
1753         "name": "unset tmp.aai.vpn-binding",\r
1754         "xml": "<set>\n<parameter name='tmp.aai.vpn-binding.' value='' />\n",\r
1755         "comments": "",\r
1756         "x": 2951,\r
1757         "y": 280,\r
1758         "z": "f351885d.7dcd3",\r
1759         "wires": []\r
1760     },\r
1761     {\r
1762         "id": "f396e52b.35559",\r
1763         "type": "comment",\r
1764         "name": "only dst ttp exists. No src",\r
1765         "info": "",\r
1766         "comments": "",\r
1767         "x": 3912,\r
1768         "y": 318,\r
1769         "z": "f351885d.7dcd3",\r
1770         "wires": []\r
1771     },\r
1772     {\r
1773         "id": "72b06eec.578eb8",\r
1774         "type": "comment",\r
1775         "name": "only src ttp exists. No dst",\r
1776         "info": "",\r
1777         "comments": "",\r
1778         "x": 3469,\r
1779         "y": 1896,\r
1780         "z": "f351885d.7dcd3",\r
1781         "wires": []\r
1782     },\r
1783     {\r
1784         "id": "d204a9f5.cb1f",\r
1785         "type": "switchNode",\r
1786         "name": "switch vpn-binding has src-access-ltp",\r
1787         "xml": "<switch test='`$tmp.aai.vpn-binding.src-access-ltp-id`'>\n",\r
1788         "comments": "",\r
1789         "outputs": 1,\r
1790         "x": 3648,\r
1791         "y": 480,\r
1792         "z": "f351885d.7dcd3",\r
1793         "wires": [\r
1794             [\r
1795                 "7da55af.10937a4",\r
1796                 "d30ba4e8.997a68"\r
1797             ]\r
1798         ]\r
1799     },\r
1800     {\r
1801         "id": "d30ba4e8.997a68",\r
1802         "type": "other",\r
1803         "name": "other",\r
1804         "xml": "<outcome value='Other'>\n",\r
1805         "comments": "",\r
1806         "outputs": 1,\r
1807         "x": 3890,\r
1808         "y": 1069,\r
1809         "z": "f351885d.7dcd3",\r
1810         "wires": [\r
1811             [\r
1812                 "b0909b7a.d37638"\r
1813             ]\r
1814         ]\r
1815     },\r
1816     {\r
1817         "id": "7da55af.10937a4",\r
1818         "type": "outcome",\r
1819         "name": "Null",\r
1820         "xml": "<outcome value=''>\n",\r
1821         "comments": "",\r
1822         "outputs": 1,\r
1823         "x": 3884,\r
1824         "y": 360,\r
1825         "z": "f351885d.7dcd3",\r
1826         "wires": [\r
1827             [\r
1828                 "4923e79.d3d2a98"\r
1829             ]\r
1830         ]\r
1831     },\r
1832     {\r
1833         "id": "b0909b7a.d37638",\r
1834         "type": "block",\r
1835         "name": "block : atomic",\r
1836         "xml": "<block atomic=\"true\">",\r
1837         "atomic": "true",\r
1838         "outputs": 1,\r
1839         "x": 4048,\r
1840         "y": 1068,\r
1841         "z": "f351885d.7dcd3",\r
1842         "wires": [\r
1843             [\r
1844                 "aadf2b5c.a1838",\r
1845                 "8fb5b52a.4e2ae",\r
1846                 "a006da1c.c23038",\r
1847                 "7e67d000.77abb",\r
1848                 "23d1e7d8.976258"\r
1849             ]\r
1850         ]\r
1851     },\r
1852     {\r
1853         "id": "8fb5b52a.4e2ae",\r
1854         "type": "set",\r
1855         "name": "set attachment_param for OTN G",\r
1856         "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
1857         "comments": "",\r
1858         "x": 4312,\r
1859         "y": 951,\r
1860         "z": "f351885d.7dcd3",\r
1861         "wires": []\r
1862     },\r
1863     {\r
1864         "id": "23d1e7d8.976258",\r
1865         "type": "execute",\r
1866         "name": "execute RestApiCallNode Create OTN tunnel with token",\r
1867         "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
1868         "comments": "",\r
1869         "outputs": 1,\r
1870         "x": 4393,\r
1871         "y": 1266,\r
1872         "z": "f351885d.7dcd3",\r
1873         "wires": [\r
1874             [\r
1875                 "c8d598bd.cbc8e",\r
1876                 "c93ae11e.1c54c8"\r
1877             ]\r
1878         ]\r
1879     },\r
1880     {\r
1881         "id": "c8d598bd.cbc8e",\r
1882         "type": "failure",\r
1883         "name": "failure",\r
1884         "xml": "<outcome value='failure'>\n",\r
1885         "comments": "",\r
1886         "outputs": 1,\r
1887         "x": 4702.5,\r
1888         "y": 1235,\r
1889         "z": "f351885d.7dcd3",\r
1890         "wires": [\r
1891             [\r
1892                 "a086276f.4222f8"\r
1893             ]\r
1894         ]\r
1895     },\r
1896     {\r
1897         "id": "c93ae11e.1c54c8",\r
1898         "type": "success",\r
1899         "name": "success",\r
1900         "xml": "<outcome value='success'>\n",\r
1901         "comments": "",\r
1902         "outputs": 1,\r
1903         "x": 4707.5,\r
1904         "y": 1300,\r
1905         "z": "f351885d.7dcd3",\r
1906         "wires": [\r
1907             [\r
1908                 "51323b7.caecec4"\r
1909             ]\r
1910         ]\r
1911     },\r
1912     {\r
1913         "id": "a086276f.4222f8",\r
1914         "type": "returnFailure",\r
1915         "name": "return failure",\r
1916         "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
1917         "comments": "",\r
1918         "x": 4878.5,\r
1919         "y": 1235,\r
1920         "z": "f351885d.7dcd3",\r
1921         "wires": []\r
1922     },\r
1923     {\r
1924         "id": "51323b7.caecec4",\r
1925         "type": "block",\r
1926         "name": "block : atomic",\r
1927         "xml": "<block atomic=\"true\">",\r
1928         "atomic": "true",\r
1929         "comments": "",\r
1930         "outputs": 1,\r
1931         "x": 4874,\r
1932         "y": 1300,\r
1933         "z": "f351885d.7dcd3",\r
1934         "wires": [\r
1935             []\r
1936         ]\r
1937     },\r
1938     {\r
1939         "id": "a006da1c.c23038",\r
1940         "type": "set",\r
1941         "name": "set pnf-name",\r
1942         "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
1943         "comments": "",\r
1944         "x": 4250,\r
1945         "y": 999,\r
1946         "z": "f351885d.7dcd3",\r
1947         "wires": []\r
1948     },\r
1949     {\r
1950         "id": "7e67d000.77abb",\r
1951         "type": "get-resource",\r
1952         "name": "get-resource src pnf",\r
1953         "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
1954         "comments": "",\r
1955         "outputs": 1,\r
1956         "x": 4276,\r
1957         "y": 1116,\r
1958         "z": "f351885d.7dcd3",\r
1959         "wires": [\r
1960             [\r
1961                 "ec2bb2c1.50dad",\r
1962                 "6fe2c398.ccd7b4",\r
1963                 "2cf209f9.a94e2e"\r
1964             ]\r
1965         ]\r
1966     },\r
1967     {\r
1968         "id": "ec2bb2c1.50dad",\r
1969         "type": "success",\r
1970         "name": "success",\r
1971         "xml": "<outcome value='success'>\n",\r
1972         "comments": "",\r
1973         "outputs": 1,\r
1974         "x": 4471.5001220703125,\r
1975         "y": 1068,\r
1976         "z": "f351885d.7dcd3",\r
1977         "wires": [\r
1978             [\r
1979                 "e5c84b9e.98975"\r
1980             ]\r
1981         ]\r
1982     },\r
1983     {\r
1984         "id": "6fe2c398.ccd7b4",\r
1985         "type": "not-found",\r
1986         "name": "not-found",\r
1987         "xml": "<outcome value='not-found'>\n",\r
1988         "comments": "",\r
1989         "outputs": 1,\r
1990         "x": 4463.5001220703125,\r
1991         "y": 1123,\r
1992         "z": "f351885d.7dcd3",\r
1993         "wires": [\r
1994             [\r
1995                 "be59a3.0881066"\r
1996             ]\r
1997         ]\r
1998     },\r
1999     {\r
2000         "id": "e5c84b9e.98975",\r
2001         "type": "block",\r
2002         "name": "block",\r
2003         "xml": "<block>\n",\r
2004         "atomic": "false",\r
2005         "comments": "",\r
2006         "outputs": 1,\r
2007         "x": 4615.8824462890625,\r
2008         "y": 1067.6556701660156,\r
2009         "z": "f351885d.7dcd3",\r
2010         "wires": [\r
2011             [\r
2012                 "40635ccb.0881a4"\r
2013             ]\r
2014         ]\r
2015     },\r
2016     {\r
2017         "id": "40635ccb.0881a4",\r
2018         "type": "for",\r
2019         "name": "for each relationship",\r
2020         "xml": "<for silentFailure='true' index='spvidx' start='0' end='`$tmp.aai.domainG-pnf.relationship-list.relationship_length`' >\n",\r
2021         "comments": "",\r
2022         "outputs": 1,\r
2023         "x": 4800,\r
2024         "y": 1066,\r
2025         "z": "f351885d.7dcd3",\r
2026         "wires": [\r
2027             [\r
2028                 "ff02a9b.ff8ffd8"\r
2029             ]\r
2030         ]\r
2031     },\r
2032     {\r
2033         "id": "ff02a9b.ff8ffd8",\r
2034         "type": "switchNode",\r
2035         "name": "switch related-to",\r
2036         "xml": "<switch test='`$tmp.aai.domainG-pnf.relationship-list.relationship[$spvidx].related-to`'>\n",\r
2037         "comments": "",\r
2038         "outputs": 1,\r
2039         "x": 4995,\r
2040         "y": 1066,\r
2041         "z": "f351885d.7dcd3",\r
2042         "wires": [\r
2043             [\r
2044                 "d3d180f4.36fa68"\r
2045             ]\r
2046         ]\r
2047     },\r
2048     {\r
2049         "id": "2cf209f9.a94e2e",\r
2050         "type": "other",\r
2051         "name": "other",\r
2052         "xml": "<outcome value='Other'>\n",\r
2053         "comments": "",\r
2054         "outputs": 1,\r
2055         "x": 4468.5001220703125,\r
2056         "y": 1180,\r
2057         "z": "f351885d.7dcd3",\r
2058         "wires": [\r
2059             [\r
2060                 "2b5a1252.216fe6"\r
2061             ]\r
2062         ]\r
2063     },\r
2064     {\r
2065         "id": "2b5a1252.216fe6",\r
2066         "type": "returnFailure",\r
2067         "name": "return failure",\r
2068         "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
2069         "comments": "",\r
2070         "x": 4620.5001220703125,\r
2071         "y": 1181,\r
2072         "z": "f351885d.7dcd3",\r
2073         "wires": []\r
2074     },\r
2075     {\r
2076         "id": "be59a3.0881066",\r
2077         "type": "returnFailure",\r
2078         "name": "return failure",\r
2079         "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
2080         "comments": "",\r
2081         "x": 4631.5001220703125,\r
2082         "y": 1124,\r
2083         "z": "f351885d.7dcd3",\r
2084         "wires": []\r
2085     },\r
2086     {\r
2087         "id": "aadf2b5c.a1838",\r
2088         "type": "set",\r
2089         "name": "set vpn-bindingG and connectivityG",\r
2090         "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
2091         "comments": "",\r
2092         "x": 4307,\r
2093         "y": 891,\r
2094         "z": "f351885d.7dcd3",\r
2095         "wires": []\r
2096     },\r
2097     {\r
2098         "id": "d3d180f4.36fa68",\r
2099         "type": "outcome",\r
2100         "name": "esr-thirdparty-sdnc",\r
2101         "xml": "<outcome value='esr-thirdparty-sdnc'>\n",\r
2102         "comments": "",\r
2103         "outputs": 1,\r
2104         "x": 5198,\r
2105         "y": 1070,\r
2106         "z": "f351885d.7dcd3",\r
2107         "wires": [\r
2108             [\r
2109                 "8355bb98.2142e8"\r
2110             ]\r
2111         ]\r
2112     },\r
2113     {\r
2114         "id": "d998285a.8338c",\r
2115         "type": "execute",\r
2116         "name": "get esr-thirdparty-sdnc",\r
2117         "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
2118         "comments": "",\r
2119         "outputs": 1,\r
2120         "x": 5583,\r
2121         "y": 1083,\r
2122         "z": "f351885d.7dcd3",\r
2123         "wires": [\r
2124             [\r
2125                 "38daac86.dbf464",\r
2126                 "21dc6947.7d9bae",\r
2127                 "a47aca30.5160e"\r
2128             ]\r
2129         ]\r
2130     },\r
2131     {\r
2132         "id": "8355bb98.2142e8",\r
2133         "type": "block",\r
2134         "name": "block : atomic",\r
2135         "xml": "<block atomic=\"true\">",\r
2136         "atomic": "true",\r
2137         "outputs": 1,\r
2138         "x": 5377,\r
2139         "y": 1070,\r
2140         "z": "f351885d.7dcd3",\r
2141         "wires": [\r
2142             [\r
2143                 "583e9682.750428",\r
2144                 "d998285a.8338c"\r
2145             ]\r
2146         ]\r
2147     },\r
2148     {\r
2149         "id": "583e9682.750428",\r
2150         "type": "set",\r
2151         "name": "set esr-thirdparty-sdnc domainG id",\r
2152         "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
2153         "comments": "",\r
2154         "x": 5613,\r
2155         "y": 1031,\r
2156         "z": "f351885d.7dcd3",\r
2157         "wires": []\r
2158     },\r
2159     {\r
2160         "id": "38daac86.dbf464",\r
2161         "type": "success",\r
2162         "name": "success",\r
2163         "xml": "<outcome value='success'>\n",\r
2164         "comments": "",\r
2165         "outputs": 1,\r
2166         "x": 5793,\r
2167         "y": 1074,\r
2168         "z": "f351885d.7dcd3",\r
2169         "wires": [\r
2170             [\r
2171                 "10b34ad5.e58d9d"\r
2172             ]\r
2173         ]\r
2174     },\r
2175     {\r
2176         "id": "21dc6947.7d9bae",\r
2177         "type": "not-found",\r
2178         "name": "not-found",\r
2179         "xml": "<outcome value='not-found'>\n",\r
2180         "comments": "",\r
2181         "outputs": 1,\r
2182         "x": 5785,\r
2183         "y": 1129,\r
2184         "z": "f351885d.7dcd3",\r
2185         "wires": [\r
2186             [\r
2187                 "6ce9bc65.05009c"\r
2188             ]\r
2189         ]\r
2190     },\r
2191     {\r
2192         "id": "a47aca30.5160e",\r
2193         "type": "other",\r
2194         "name": "other",\r
2195         "xml": "<outcome value='Other'>\n",\r
2196         "comments": "",\r
2197         "outputs": 1,\r
2198         "x": 5790,\r
2199         "y": 1186,\r
2200         "z": "f351885d.7dcd3",\r
2201         "wires": [\r
2202             [\r
2203                 "18239e9b.852729"\r
2204             ]\r
2205         ]\r
2206     },\r
2207     {\r
2208         "id": "18239e9b.852729",\r
2209         "type": "returnFailure",\r
2210         "name": "return failure",\r
2211         "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
2212         "comments": "",\r
2213         "x": 5942,\r
2214         "y": 1187,\r
2215         "z": "f351885d.7dcd3",\r
2216         "wires": []\r
2217     },\r
2218     {\r
2219         "id": "6ce9bc65.05009c",\r
2220         "type": "returnFailure",\r
2221         "name": "return failure",\r
2222         "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
2223         "comments": "",\r
2224         "x": 5953,\r
2225         "y": 1132,\r
2226         "z": "f351885d.7dcd3",\r
2227         "wires": []\r
2228     },\r
2229     {\r
2230         "id": "10b34ad5.e58d9d",\r
2231         "type": "block",\r
2232         "name": "block",\r
2233         "xml": "<block>\n",\r
2234         "atomic": "false",\r
2235         "comments": "",\r
2236         "outputs": 1,\r
2237         "x": 5937.38232421875,\r
2238         "y": 1071.6556701660156,\r
2239         "z": "f351885d.7dcd3",\r
2240         "wires": [\r
2241             [\r
2242                 "d4058b68.bd8818"\r
2243             ]\r
2244         ]\r
2245     },\r
2246     {\r
2247         "id": "d4058b68.bd8818",\r
2248         "type": "set",\r
2249         "name": "set controller domainG data",\r
2250         "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
2251         "comments": "",\r
2252         "x": 6152,\r
2253         "y": 1068,\r
2254         "z": "f351885d.7dcd3",\r
2255         "wires": []\r
2256     },\r
2257     {\r
2258         "id": "3a09f359.556f04",\r
2259         "type": "comment",\r
2260         "name": "both src and dst exist",\r
2261         "info": "",\r
2262         "comments": "",\r
2263         "x": 3926,\r
2264         "y": 1009,\r
2265         "z": "f351885d.7dcd3",\r
2266         "wires": []\r
2267     },\r
2268     {\r
2269         "id": "1c6e3351.8ccb0d",\r
2270         "type": "switchNode",\r
2271         "name": "switch vpn-binding is not already Activated (i.e. is either Created or Modified)",\r
2272         "xml": "<switch test=\"`$tmp.aai.vpn-binding.operational-status != 'Activated' `\">\n",\r
2273         "comments": "",\r
2274         "outputs": 1,\r
2275         "x": 2488,\r
2276         "y": 736,\r
2277         "z": "f351885d.7dcd3",\r
2278         "wires": [\r
2279             [\r
2280                 "91c41639.2357b",\r
2281                 "5aa31f25.4b2718"\r
2282             ]\r
2283         ]\r
2284     },\r
2285     {\r
2286         "id": "5aa31f25.4b2718",\r
2287         "type": "outcomeFalse",\r
2288         "name": "false",\r
2289         "xml": "<outcome value='false'>\n",\r
2290         "comments": "",\r
2291         "outputs": 1,\r
2292         "x": 2895,\r
2293         "y": 754,\r
2294         "z": "f351885d.7dcd3",\r
2295         "wires": [\r
2296             [\r
2297                 "49ef7599.6e682c"\r
2298             ]\r
2299         ]\r
2300     },\r
2301     {\r
2302         "id": "91c41639.2357b",\r
2303         "type": "outcomeTrue",\r
2304         "name": "true",\r
2305         "xml": "<outcome value='true'>\n",\r
2306         "comments": "",\r
2307         "outputs": 1,\r
2308         "x": 2895,\r
2309         "y": 699,\r
2310         "z": "f351885d.7dcd3",\r
2311         "wires": [\r
2312             [\r
2313                 "c7ffb45b.775578"\r
2314             ]\r
2315         ]\r
2316     },\r
2317     {\r
2318         "id": "c7ffb45b.775578",\r
2319         "type": "block",\r
2320         "name": "block : atomic",\r
2321         "xml": "<block atomic=\"true\">",\r
2322         "atomic": "true",\r
2323         "outputs": 1,\r
2324         "x": 3051,\r
2325         "y": 697,\r
2326         "z": "f351885d.7dcd3",\r
2327         "wires": [\r
2328             [\r
2329                 "55624da8.df976c",\r
2330                 "aecb0c53.70b3e8"\r
2331             ]\r
2332         ]\r
2333     },\r
2334     {\r
2335         "id": "49ef7599.6e682c",\r
2336         "type": "block",\r
2337         "name": "block",\r
2338         "xml": "<block>",\r
2339         "atomic": "false",\r
2340         "comments": "",\r
2341         "outputs": 1,\r
2342         "x": 3028,\r
2343         "y": 755,\r
2344         "z": "f351885d.7dcd3",\r
2345         "wires": [\r
2346             []\r
2347         ]\r
2348     }\r
2349 ]