Completing the logic and the call flow for Transport Slicing operations:
[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": "d3bb30c4.60fa",\r
4         "type": "dgstart",\r
5         "name": "DGSTART",\r
6         "outputs": 1,\r
7         "x": 130,\r
8         "y": 87,\r
9         "z": "bc9d969b.328b8",\r
10         "wires": [\r
11             [\r
12                 "d58b4202.9cdb3"\r
13             ]\r
14         ]\r
15     },\r
16     {\r
17         "id": "d58b4202.9cdb3",\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": 261.2856903076172,\r
26         "y": 136.23810863494873,\r
27         "z": "bc9d969b.328b8",\r
28         "wires": [\r
29             [\r
30                 "617bde2e.1132b"\r
31             ]\r
32         ]\r
33     },\r
34     {\r
35         "id": "617bde2e.1132b",\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": 264.4286193847656,\r
42         "y": 221.00003242492676,\r
43         "z": "bc9d969b.328b8",\r
44         "wires": [\r
45             [\r
46                 "8ac7a60e.72d768"\r
47             ]\r
48         ]\r
49     },\r
50     {\r
51         "id": "8ac7a60e.72d768",\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": 414.238037109375,\r
58         "y": 350.6666564941406,\r
59         "z": "bc9d969b.328b8",\r
60         "wires": [\r
61             [\r
62                 "72b21bde.5e8f94",\r
63                 "9fe7f5eb.e26c6",\r
64                 "9bca10ea.41532"\r
65             ]\r
66         ]\r
67     },\r
68     {\r
69         "id": "72b21bde.5e8f94",\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": 682.5716552734375,\r
75         "y": 737.59716796875,\r
76         "z": "bc9d969b.328b8",\r
77         "wires": []\r
78     },\r
79     {\r
80         "id": "441fc399.08ca9c",\r
81         "type": "comment",\r
82         "name": "new for TransportSlicing",\r
83         "info": "",\r
84         "comments": "",\r
85         "x": 714,\r
86         "y": 412,\r
87         "z": "bc9d969b.328b8",\r
88         "wires": []\r
89     },\r
90     {\r
91         "id": "9fe7f5eb.e26c6",\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": 734,\r
98         "y": 508,\r
99         "z": "bc9d969b.328b8",\r
100         "wires": [\r
101             [\r
102                 "926c12ae.af2a48",\r
103                 "5deb4cbf.60b5f4",\r
104                 "35c77549.8e65c2"\r
105             ]\r
106         ]\r
107     },\r
108     {\r
109         "id": "926c12ae.af2a48",\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": 953,\r
116         "y": 446,\r
117         "z": "bc9d969b.328b8",\r
118         "wires": [\r
119             [\r
120                 "c296586e.046f08"\r
121             ]\r
122         ]\r
123     },\r
124     {\r
125         "id": "5deb4cbf.60b5f4",\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": 962.490966796875,\r
132         "y": 488.57403564453125,\r
133         "z": "bc9d969b.328b8",\r
134         "wires": [\r
135             [\r
136                 "bb46ff52.717af8"\r
137             ]\r
138         ]\r
139     },\r
140     {\r
141         "id": "35c77549.8e65c2",\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": 951,\r
148         "y": 535,\r
149         "z": "bc9d969b.328b8",\r
150         "wires": [\r
151             [\r
152                 "236d61d5.47d9a6"\r
153             ]\r
154         ]\r
155     },\r
156     {\r
157         "id": "bb46ff52.717af8",\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": 1116.0623779296875,\r
163         "y": 491.8597717285156,\r
164         "z": "bc9d969b.328b8",\r
165         "wires": []\r
166     },\r
167     {\r
168         "id": "236d61d5.47d9a6",\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": 1120,\r
174         "y": 536,\r
175         "z": "bc9d969b.328b8",\r
176         "wires": []\r
177     },\r
178     {\r
179         "id": "c296586e.046f08",\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": 1150,\r
186         "y": 442,\r
187         "z": "bc9d969b.328b8",\r
188         "wires": [\r
189             [\r
190                 "b77b70ed.c591c"\r
191             ]\r
192         ]\r
193     },\r
194     {\r
195         "id": "b77b70ed.c591c",\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": 1373.33349609375,\r
202         "y": 441.99993896484375,\r
203         "z": "bc9d969b.328b8",\r
204         "wires": [\r
205             [\r
206                 "2fc295b4.0602da"\r
207             ]\r
208         ]\r
209     },\r
210     {\r
211         "id": "2fc295b4.0602da",\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": 1574.0001335144043,\r
218         "y": 443.00002098083496,\r
219         "z": "bc9d969b.328b8",\r
220         "wires": [\r
221             [\r
222                 "483259b4.af3e1"\r
223             ]\r
224         ]\r
225     },\r
226     {\r
227         "id": "cba9b813.e1b22",\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-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": 3835,\r
233         "y": 162,\r
234         "z": "bc9d969b.328b8",\r
235         "wires": []\r
236     },\r
237     {\r
238         "id": "c84632a9.494938",\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=\"post\"/>\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": 3916,\r
245         "y": 477,\r
246         "z": "bc9d969b.328b8",\r
247         "wires": [\r
248             [\r
249                 "f012f442.27b7b8",\r
250                 "961e7c8c.e8988"\r
251             ]\r
252         ]\r
253     },\r
254     {\r
255         "id": "f012f442.27b7b8",\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": 4225.5,\r
262         "y": 446,\r
263         "z": "bc9d969b.328b8",\r
264         "wires": [\r
265             [\r
266                 "85de6f60.586588"\r
267             ]\r
268         ]\r
269     },\r
270     {\r
271         "id": "961e7c8c.e8988",\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": 4230.5,\r
278         "y": 511,\r
279         "z": "bc9d969b.328b8",\r
280         "wires": [\r
281             [\r
282                 "b3e28f35.f331c"\r
283             ]\r
284         ]\r
285     },\r
286     {\r
287         "id": "85de6f60.586588",\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 vpn rest api\" />\n",\r
291         "comments": "",\r
292         "x": 4401.5,\r
293         "y": 446,\r
294         "z": "bc9d969b.328b8",\r
295         "wires": []\r
296     },\r
297     {\r
298         "id": "b3e28f35.f331c",\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": 4397,\r
306         "y": 511,\r
307         "z": "bc9d969b.328b8",\r
308         "wires": [\r
309             []\r
310         ]\r
311     },\r
312     {\r
313         "id": "9e9578a4.5a4df",\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='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",\r
317         "comments": "",\r
318         "x": 3782.5,\r
319         "y": 665,\r
320         "z": "bc9d969b.328b8",\r
321         "wires": []\r
322     },\r
323     {\r
324         "id": "8d5f5723.afac28",\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=\"post\"/>\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": 3936.5,\r
331         "y": 713,\r
332         "z": "bc9d969b.328b8",\r
333         "wires": [\r
334             [\r
335                 "7efa3090.e1e078",\r
336                 "602bb58a.eb8054"\r
337             ]\r
338         ]\r
339     },\r
340     {\r
341         "id": "7efa3090.e1e078",\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": 4282,\r
348         "y": 694,\r
349         "z": "bc9d969b.328b8",\r
350         "wires": [\r
351             [\r
352                 "d892eebe.cdbb5"\r
353             ]\r
354         ]\r
355     },\r
356     {\r
357         "id": "602bb58a.eb8054",\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": 4286,\r
364         "y": 734,\r
365         "z": "bc9d969b.328b8",\r
366         "wires": [\r
367             [\r
368                 "34660646.412fea"\r
369             ]\r
370         ]\r
371     },\r
372     {\r
373         "id": "d892eebe.cdbb5",\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 vpn rest api\" />\n",\r
377         "comments": "",\r
378         "x": 4440,\r
379         "y": 694,\r
380         "z": "bc9d969b.328b8",\r
381         "wires": []\r
382     },\r
383     {\r
384         "id": "34660646.412fea",\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": 4443.5,\r
392         "y": 734,\r
393         "z": "bc9d969b.328b8",\r
394         "wires": [\r
395             [\r
396                 "63e48280.b2cb84",\r
397                 "ffe3929d.a2fda"\r
398             ]\r
399         ]\r
400     },\r
401     {\r
402         "id": "bae980db.b9d408",\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": 3780,\r
408         "y": 621,\r
409         "z": "bc9d969b.328b8",\r
410         "wires": []\r
411     },\r
412     {\r
413         "id": "63e48280.b2cb84",\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-id`' />\n\n<parameter name='operational-status' value='Activated' />\n",\r
417         "comments": "",\r
418         "outputs": 1,\r
419         "x": 4774,\r
420         "y": 699,\r
421         "z": "bc9d969b.328b8",\r
422         "wires": [\r
423             []\r
424         ]\r
425     },\r
426     {\r
427         "id": "2bc3079a.d7dde",\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": 4638,\r
433         "y": 658,\r
434         "z": "bc9d969b.328b8",\r
435         "wires": []\r
436     },\r
437     {\r
438         "id": "ffe3929d.a2fda",\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": 4701,\r
445         "y": 745,\r
446         "z": "bc9d969b.328b8",\r
447         "wires": [\r
448             []\r
449         ]\r
450     },\r
451     {\r
452         "id": "f01334b4.1d8928",\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": 3773,\r
458         "y": 210,\r
459         "z": "bc9d969b.328b8",\r
460         "wires": []\r
461     },\r
462     {\r
463         "id": "dbf99a2b.67c71",\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": 3799,\r
470         "y": 327,\r
471         "z": "bc9d969b.328b8",\r
472         "wires": [\r
473             [\r
474                 "27a62f4.f17ab5",\r
475                 "1aa65c21.28f974",\r
476                 "a732e62d.9d3f9"\r
477             ]\r
478         ]\r
479     },\r
480     {\r
481         "id": "27a62f4.f17ab5",\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": 3994.5001220703125,\r
488         "y": 279,\r
489         "z": "bc9d969b.328b8",\r
490         "wires": [\r
491             [\r
492                 "b04b9242.14b66"\r
493             ]\r
494         ]\r
495     },\r
496     {\r
497         "id": "1aa65c21.28f974",\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": 3986.5001220703125,\r
504         "y": 334,\r
505         "z": "bc9d969b.328b8",\r
506         "wires": [\r
507             [\r
508                 "5b188d77.8ffc8c"\r
509             ]\r
510         ]\r
511     },\r
512     {\r
513         "id": "b04b9242.14b66",\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": 4138.8824462890625,\r
521         "y": 278.6556701660156,\r
522         "z": "bc9d969b.328b8",\r
523         "wires": [\r
524             [\r
525                 "14763204.df94c6"\r
526             ]\r
527         ]\r
528     },\r
529     {\r
530         "id": "a517ec9b.cf8fc8",\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": 4721,\r
537         "y": 281,\r
538         "z": "bc9d969b.328b8",\r
539         "wires": [\r
540             [\r
541                 "37ce34d7.e5314c"\r
542             ]\r
543         ]\r
544     },\r
545     {\r
546         "id": "14763204.df94c6",\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": 4323,\r
553         "y": 277,\r
554         "z": "bc9d969b.328b8",\r
555         "wires": [\r
556             [\r
557                 "bbbe4e04.e26da"\r
558             ]\r
559         ]\r
560     },\r
561     {\r
562         "id": "bbbe4e04.e26da",\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": 4518,\r
569         "y": 277,\r
570         "z": "bc9d969b.328b8",\r
571         "wires": [\r
572             [\r
573                 "a517ec9b.cf8fc8"\r
574             ]\r
575         ]\r
576     },\r
577     {\r
578         "id": "a732e62d.9d3f9",\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": 3991.5001220703125,\r
585         "y": 391,\r
586         "z": "bc9d969b.328b8",\r
587         "wires": [\r
588             [\r
589                 "ebcd1e8f.a8cb18"\r
590             ]\r
591         ]\r
592     },\r
593     {\r
594         "id": "ebcd1e8f.a8cb18",\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": 4143.5001220703125,\r
600         "y": 392,\r
601         "z": "bc9d969b.328b8",\r
602         "wires": []\r
603     },\r
604     {\r
605         "id": "5b188d77.8ffc8c",\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": 4154.5001220703125,\r
611         "y": 335,\r
612         "z": "bc9d969b.328b8",\r
613         "wires": []\r
614     },\r
615     {\r
616         "id": "d99536cb.cbc39",\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": 5106,\r
623         "y": 294,\r
624         "z": "bc9d969b.328b8",\r
625         "wires": [\r
626             [\r
627                 "5f8e12fe.363034",\r
628                 "3e541a04.379ece",\r
629                 "5e7e63a7.7acdcc"\r
630             ]\r
631         ]\r
632     },\r
633     {\r
634         "id": "37ce34d7.e5314c",\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": 4900,\r
641         "y": 281,\r
642         "z": "bc9d969b.328b8",\r
643         "wires": [\r
644             [\r
645                 "17ccdbf.84352a4",\r
646                 "d99536cb.cbc39"\r
647             ]\r
648         ]\r
649     },\r
650     {\r
651         "id": "17ccdbf.84352a4",\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": 5136,\r
657         "y": 242,\r
658         "z": "bc9d969b.328b8",\r
659         "wires": []\r
660     },\r
661     {\r
662         "id": "5f8e12fe.363034",\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": 5316,\r
669         "y": 285,\r
670         "z": "bc9d969b.328b8",\r
671         "wires": [\r
672             [\r
673                 "a674bdd4.cbe5f"\r
674             ]\r
675         ]\r
676     },\r
677     {\r
678         "id": "3e541a04.379ece",\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": 5308,\r
685         "y": 340,\r
686         "z": "bc9d969b.328b8",\r
687         "wires": [\r
688             [\r
689                 "b14ed6a2.e3874"\r
690             ]\r
691         ]\r
692     },\r
693     {\r
694         "id": "5e7e63a7.7acdcc",\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": 5313,\r
701         "y": 397,\r
702         "z": "bc9d969b.328b8",\r
703         "wires": [\r
704             [\r
705                 "1ce96021.1d8b"\r
706             ]\r
707         ]\r
708     },\r
709     {\r
710         "id": "1ce96021.1d8b",\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": 5465,\r
716         "y": 398,\r
717         "z": "bc9d969b.328b8",\r
718         "wires": []\r
719     },\r
720     {\r
721         "id": "b14ed6a2.e3874",\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": 5476,\r
727         "y": 343,\r
728         "z": "bc9d969b.328b8",\r
729         "wires": []\r
730     },\r
731     {\r
732         "id": "a674bdd4.cbe5f",\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": 5460.38232421875,\r
740         "y": 282.6556701660156,\r
741         "z": "bc9d969b.328b8",\r
742         "wires": [\r
743             [\r
744                 "67e87cc0.72543c"\r
745             ]\r
746         ]\r
747     },\r
748     {\r
749         "id": "67e87cc0.72543c",\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": 5675,\r
755         "y": 279,\r
756         "z": "bc9d969b.328b8",\r
757         "wires": []\r
758     },\r
759     {\r
760         "id": "9bca10ea.41532",\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": 700,\r
767         "y": 456,\r
768         "z": "bc9d969b.328b8",\r
769         "wires": [\r
770             []\r
771         ]\r
772     },\r
773     {\r
774         "id": "9469a92e.1082c",\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-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-src-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": 3815,\r
780         "y": 966,\r
781         "z": "bc9d969b.328b8",\r
782         "wires": []\r
783     },\r
784     {\r
785         "id": "8e72aaca.f223b8",\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=\"post\"/>\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": 3878,\r
792         "y": 1295,\r
793         "z": "bc9d969b.328b8",\r
794         "wires": [\r
795             [\r
796                 "4967c60e.7eec88",\r
797                 "d728c3b6.b72d4"\r
798             ]\r
799         ]\r
800     },\r
801     {\r
802         "id": "4967c60e.7eec88",\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": 4173.5,\r
809         "y": 1262,\r
810         "z": "bc9d969b.328b8",\r
811         "wires": [\r
812             [\r
813                 "957f3c62.36bab"\r
814             ]\r
815         ]\r
816     },\r
817     {\r
818         "id": "d728c3b6.b72d4",\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": 4178.5,\r
825         "y": 1327,\r
826         "z": "bc9d969b.328b8",\r
827         "wires": [\r
828             [\r
829                 "9b37bb11.43c248"\r
830             ]\r
831         ]\r
832     },\r
833     {\r
834         "id": "957f3c62.36bab",\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 vpn rest api\" />\n",\r
838         "comments": "",\r
839         "x": 4341.5,\r
840         "y": 1262,\r
841         "z": "bc9d969b.328b8",\r
842         "wires": []\r
843     },\r
844     {\r
845         "id": "9b37bb11.43c248",\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": 4352,\r
853         "y": 1327,\r
854         "z": "bc9d969b.328b8",\r
855         "wires": [\r
856             []\r
857         ]\r
858     },\r
859     {\r
860         "id": "24fc86b.f179cfa",\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": 3754,\r
866         "y": 1023,\r
867         "z": "bc9d969b.328b8",\r
868         "wires": []\r
869     },\r
870     {\r
871         "id": "a4e80e5.b17c0f",\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": 3774,\r
878         "y": 1120,\r
879         "z": "bc9d969b.328b8",\r
880         "wires": [\r
881             [\r
882                 "d87e44a4.312df",\r
883                 "c39adf70.78fbd",\r
884                 "ae2b50d9.d9592"\r
885             ]\r
886         ]\r
887     },\r
888     {\r
889         "id": "d87e44a4.312df",\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": 3976.5001220703125,\r
896         "y": 1073,\r
897         "z": "bc9d969b.328b8",\r
898         "wires": [\r
899             [\r
900                 "1f01bb4d.6d662d"\r
901             ]\r
902         ]\r
903     },\r
904     {\r
905         "id": "c39adf70.78fbd",\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": 3968.5001220703125,\r
912         "y": 1128,\r
913         "z": "bc9d969b.328b8",\r
914         "wires": [\r
915             [\r
916                 "7e32fa48.cb95e4"\r
917             ]\r
918         ]\r
919     },\r
920     {\r
921         "id": "1f01bb4d.6d662d",\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": 4120.8824462890625,\r
929         "y": 1070.6556701660156,\r
930         "z": "bc9d969b.328b8",\r
931         "wires": [\r
932             [\r
933                 "71c66ab3.44665c"\r
934             ]\r
935         ]\r
936     },\r
937     {\r
938         "id": "71c66ab3.44665c",\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": 4305,\r
945         "y": 1085,\r
946         "z": "bc9d969b.328b8",\r
947         "wires": [\r
948             [\r
949                 "7900c812.a2abd"\r
950             ]\r
951         ]\r
952     },\r
953     {\r
954         "id": "ae2b50d9.d9592",\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": 3973.5001220703125,\r
961         "y": 1185,\r
962         "z": "bc9d969b.328b8",\r
963         "wires": [\r
964             [\r
965                 "c7f28bc4.db74a"\r
966             ]\r
967         ]\r
968     },\r
969     {\r
970         "id": "c7f28bc4.db74a",\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": 4125.5001220703125,\r
976         "y": 1186,\r
977         "z": "bc9d969b.328b8",\r
978         "wires": []\r
979     },\r
980     {\r
981         "id": "7e32fa48.cb95e4",\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": 4136.5001220703125,\r
987         "y": 1131,\r
988         "z": "bc9d969b.328b8",\r
989         "wires": []\r
990     },\r
991     {\r
992         "id": "d3528946.ee7a88",\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": 4703,\r
999         "y": 1089,\r
1000         "z": "bc9d969b.328b8",\r
1001         "wires": [\r
1002             [\r
1003                 "746ece73.5c4d48"\r
1004             ]\r
1005         ]\r
1006     },\r
1007     {\r
1008         "id": "7900c812.a2abd",\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": 4500,\r
1015         "y": 1085,\r
1016         "z": "bc9d969b.328b8",\r
1017         "wires": [\r
1018             [\r
1019                 "d3528946.ee7a88"\r
1020             ]\r
1021         ]\r
1022     },\r
1023     {\r
1024         "id": "f8459d33.082c4",\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": 5088,\r
1031         "y": 1088,\r
1032         "z": "bc9d969b.328b8",\r
1033         "wires": [\r
1034             [\r
1035                 "652db70b.f69af",\r
1036                 "cd87b694.170a2",\r
1037                 "e10452ec.f851f"\r
1038             ]\r
1039         ]\r
1040     },\r
1041     {\r
1042         "id": "746ece73.5c4d48",\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": 4880,\r
1049         "y": 1081,\r
1050         "z": "bc9d969b.328b8",\r
1051         "wires": [\r
1052             [\r
1053                 "13e8c9be.60d2ee",\r
1054                 "f8459d33.082c4"\r
1055             ]\r
1056         ]\r
1057     },\r
1058     {\r
1059         "id": "13e8c9be.60d2ee",\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": 5118,\r
1065         "y": 1036,\r
1066         "z": "bc9d969b.328b8",\r
1067         "wires": []\r
1068     },\r
1069     {\r
1070         "id": "64b1d1df.af4928",\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": 5447,\r
1076         "y": 1192,\r
1077         "z": "bc9d969b.328b8",\r
1078         "wires": []\r
1079     },\r
1080     {\r
1081         "id": "afae5d5f.cf8cd8",\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": 5458,\r
1087         "y": 1137,\r
1088         "z": "bc9d969b.328b8",\r
1089         "wires": []\r
1090     },\r
1091     {\r
1092         "id": "fe8767e6.75d1",\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": 5442.38232421875,\r
1100         "y": 1076.6556701660156,\r
1101         "z": "bc9d969b.328b8",\r
1102         "wires": [\r
1103             [\r
1104                 "9e679808.748fd"\r
1105             ]\r
1106         ]\r
1107     },\r
1108     {\r
1109         "id": "9e679808.748fd",\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": 5657,\r
1115         "y": 1073,\r
1116         "z": "bc9d969b.328b8",\r
1117         "wires": []\r
1118     },\r
1119     {\r
1120         "id": "652db70b.f69af",\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": 5298,\r
1127         "y": 1079,\r
1128         "z": "bc9d969b.328b8",\r
1129         "wires": [\r
1130             [\r
1131                 "fe8767e6.75d1"\r
1132             ]\r
1133         ]\r
1134     },\r
1135     {\r
1136         "id": "cd87b694.170a2",\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": 5290,\r
1143         "y": 1134,\r
1144         "z": "bc9d969b.328b8",\r
1145         "wires": [\r
1146             [\r
1147                 "afae5d5f.cf8cd8"\r
1148             ]\r
1149         ]\r
1150     },\r
1151     {\r
1152         "id": "e10452ec.f851f",\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": 5295,\r
1159         "y": 1191,\r
1160         "z": "bc9d969b.328b8",\r
1161         "wires": [\r
1162             [\r
1163                 "64b1d1df.af4928"\r
1164             ]\r
1165         ]\r
1166     },\r
1167     {\r
1168         "id": "483259b4.af3e1",\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": 1812,\r
1175         "y": 445,\r
1176         "z": "bc9d969b.328b8",\r
1177         "wires": [\r
1178             [\r
1179                 "deb24009.8fcaa8",\r
1180                 "f99db731.cec29",\r
1181                 "20c66e63.50491a"\r
1182             ]\r
1183         ]\r
1184     },\r
1185     {\r
1186         "id": "deb24009.8fcaa8",\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": 2020,\r
1193         "y": 409,\r
1194         "z": "bc9d969b.328b8",\r
1195         "wires": [\r
1196             [\r
1197                 "4730a3bd.f32424"\r
1198             ]\r
1199         ]\r
1200     },\r
1201     {\r
1202         "id": "f99db731.cec29",\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": 2020.490966796875,\r
1209         "y": 454.57403564453125,\r
1210         "z": "bc9d969b.328b8",\r
1211         "wires": [\r
1212             [\r
1213                 "5f621d7d.168d04"\r
1214             ]\r
1215         ]\r
1216     },\r
1217     {\r
1218         "id": "20c66e63.50491a",\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": 2018,\r
1225         "y": 498,\r
1226         "z": "bc9d969b.328b8",\r
1227         "wires": [\r
1228             [\r
1229                 "3d808fc9.409a"\r
1230             ]\r
1231         ]\r
1232     },\r
1233     {\r
1234         "id": "5f621d7d.168d04",\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": 2183.0623779296875,\r
1240         "y": 454.8597717285156,\r
1241         "z": "bc9d969b.328b8",\r
1242         "wires": []\r
1243     },\r
1244     {\r
1245         "id": "3d808fc9.409a",\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": 2187,\r
1251         "y": 499,\r
1252         "z": "bc9d969b.328b8",\r
1253         "wires": []\r
1254     },\r
1255     {\r
1256         "id": "98bf7163.623b18",\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": 2493,\r
1263         "y": 498,\r
1264         "z": "bc9d969b.328b8",\r
1265         "wires": [\r
1266             [\r
1267                 "4a10f363.97f04c",\r
1268                 "75240e64.8364b",\r
1269                 "7a8b2677.1e3f6"\r
1270             ]\r
1271         ]\r
1272     },\r
1273     {\r
1274         "id": "262c25a6.ad70a2",\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": 2877,\r
1281         "y": 498,\r
1282         "z": "bc9d969b.328b8",\r
1283         "wires": [\r
1284             [\r
1285                 "471d55bd.ad492c"\r
1286             ]\r
1287         ]\r
1288     },\r
1289     {\r
1290         "id": "4a10f363.97f04c",\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": 2704,\r
1297         "y": 500,\r
1298         "z": "bc9d969b.328b8",\r
1299         "wires": [\r
1300             [\r
1301                 "262c25a6.ad70a2"\r
1302             ]\r
1303         ]\r
1304     },\r
1305     {\r
1306         "id": "75240e64.8364b",\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": 2704.490966796875,\r
1313         "y": 545.5740356445312,\r
1314         "z": "bc9d969b.328b8",\r
1315         "wires": [\r
1316             [\r
1317                 "1484cf74.c39e71"\r
1318             ]\r
1319         ]\r
1320     },\r
1321     {\r
1322         "id": "7a8b2677.1e3f6",\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": 2702,\r
1329         "y": 589,\r
1330         "z": "bc9d969b.328b8",\r
1331         "wires": [\r
1332             [\r
1333                 "d377f001.ff927"\r
1334             ]\r
1335         ]\r
1336     },\r
1337     {\r
1338         "id": "d377f001.ff927",\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": 2869,\r
1344         "y": 588,\r
1345         "z": "bc9d969b.328b8",\r
1346         "wires": []\r
1347     },\r
1348     {\r
1349         "id": "1484cf74.c39e71",\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": 2867.0623779296875,\r
1355         "y": 545.8597717285156,\r
1356         "z": "bc9d969b.328b8",\r
1357         "wires": []\r
1358     },\r
1359     {\r
1360         "id": "4730a3bd.f32424",\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": 2221,\r
1367         "y": 404,\r
1368         "z": "bc9d969b.328b8",\r
1369         "wires": [\r
1370             [\r
1371                 "ed79cbad.42008"\r
1372             ]\r
1373         ]\r
1374     },\r
1375     {\r
1376         "id": "ed79cbad.42008",\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": 2426,\r
1383         "y": 404,\r
1384         "z": "bc9d969b.328b8",\r
1385         "wires": [\r
1386             [\r
1387                 "87636f23.10a238"\r
1388             ]\r
1389         ]\r
1390     },\r
1391     {\r
1392         "id": "87636f23.10a238",\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": 2592,\r
1399         "y": 404,\r
1400         "z": "bc9d969b.328b8",\r
1401         "wires": [\r
1402             [\r
1403                 "f49319bb.999b88"\r
1404             ]\r
1405         ]\r
1406     },\r
1407     {\r
1408         "id": "f49319bb.999b88",\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": 2755,\r
1415         "y": 404,\r
1416         "z": "bc9d969b.328b8",\r
1417         "wires": [\r
1418             [\r
1419                 "98bf7163.623b18"\r
1420             ]\r
1421         ]\r
1422     },\r
1423     {\r
1424         "id": "471d55bd.ad492c",\r
1425         "type": "switchNode",\r
1426         "name": "switch vpn-binding has dst-access-ltp",\r
1427         "xml": "<switch test='`$tmp.aai.vpn-binding.dst-access-ltp-id`'>\n",\r
1428         "comments": "",\r
1429         "outputs": 1,\r
1430         "x": 3131,\r
1431         "y": 497,\r
1432         "z": "bc9d969b.328b8",\r
1433         "wires": [\r
1434             [\r
1435                 "a6851b6e.131e78",\r
1436                 "f997812a.bb5bf"\r
1437             ]\r
1438         ]\r
1439     },\r
1440     {\r
1441         "id": "a6851b6e.131e78",\r
1442         "type": "outcome",\r
1443         "name": "Null",\r
1444         "xml": "<outcome value=''>\n",\r
1445         "comments": "",\r
1446         "outputs": 1,\r
1447         "x": 3384,\r
1448         "y": 531,\r
1449         "z": "bc9d969b.328b8",\r
1450         "wires": [\r
1451             [\r
1452                 "9ec23d9e.f5fd3"\r
1453             ]\r
1454         ]\r
1455     },\r
1456     {\r
1457         "id": "f997812a.bb5bf",\r
1458         "type": "other",\r
1459         "name": "other",\r
1460         "xml": "<outcome value='Other'>\n",\r
1461         "comments": "",\r
1462         "outputs": 1,\r
1463         "x": 3384,\r
1464         "y": 475,\r
1465         "z": "bc9d969b.328b8",\r
1466         "wires": [\r
1467             [\r
1468                 "a48cbe42.98bbb"\r
1469             ]\r
1470         ]\r
1471     },\r
1472     {\r
1473         "id": "9ec23d9e.f5fd3",\r
1474         "type": "switchNode",\r
1475         "name": "switch vpn-binding has src-access-ltp",\r
1476         "xml": "<switch test='`$tmp.aai.vpn-binding.src-access-ltp-id`'>\n",\r
1477         "comments": "",\r
1478         "outputs": 1,\r
1479         "x": 3123,\r
1480         "y": 1317,\r
1481         "z": "bc9d969b.328b8",\r
1482         "wires": [\r
1483             [\r
1484                 "12733247.02817e",\r
1485                 "457dfc0a.58968c"\r
1486             ]\r
1487         ]\r
1488     },\r
1489     {\r
1490         "id": "12733247.02817e",\r
1491         "type": "outcome",\r
1492         "name": "Null",\r
1493         "xml": "<outcome value=''>\n",\r
1494         "comments": "",\r
1495         "outputs": 1,\r
1496         "x": 3376,\r
1497         "y": 1351,\r
1498         "z": "bc9d969b.328b8",\r
1499         "wires": [\r
1500             [\r
1501                 "13d35870.d79cf8"\r
1502             ]\r
1503         ]\r
1504     },\r
1505     {\r
1506         "id": "457dfc0a.58968c",\r
1507         "type": "other",\r
1508         "name": "other",\r
1509         "xml": "<outcome value='Other'>\n",\r
1510         "comments": "",\r
1511         "outputs": 1,\r
1512         "x": 3376,\r
1513         "y": 1295,\r
1514         "z": "bc9d969b.328b8",\r
1515         "wires": [\r
1516             [\r
1517                 "b272db0a.663f1"\r
1518             ]\r
1519         ]\r
1520     },\r
1521     {\r
1522         "id": "13d35870.d79cf8",\r
1523         "type": "returnFailure",\r
1524         "name": "return failure",\r
1525         "xml": "<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value='' />\n",\r
1526         "comments": "",\r
1527         "x": 3527,\r
1528         "y": 1351,\r
1529         "z": "bc9d969b.328b8",\r
1530         "wires": []\r
1531     },\r
1532     {\r
1533         "id": "d316857d.f41628",\r
1534         "type": "set",\r
1535         "name": "set vpn-bindingA and connectivityA",\r
1536         "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
1537         "comments": "",\r
1538         "x": 3830,\r
1539         "y": 102,\r
1540         "z": "bc9d969b.328b8",\r
1541         "wires": []\r
1542     },\r
1543     {\r
1544         "id": "3accaf74.7f8a68",\r
1545         "type": "set",\r
1546         "name": "set vpn-bindingB and connectivityB",\r
1547         "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
1548         "comments": "",\r
1549         "x": 3811,\r
1550         "y": 908,\r
1551         "z": "bc9d969b.328b8",\r
1552         "wires": []\r
1553     },\r
1554     {\r
1555         "id": "a48cbe42.98bbb",\r
1556         "type": "block",\r
1557         "name": "block : atomic",\r
1558         "xml": "<block atomic=\"true\">",\r
1559         "atomic": "true",\r
1560         "comments": "",\r
1561         "outputs": 1,\r
1562         "x": 3552,\r
1563         "y": 477,\r
1564         "z": "bc9d969b.328b8",\r
1565         "wires": [\r
1566             [\r
1567                 "d316857d.f41628",\r
1568                 "cba9b813.e1b22",\r
1569                 "f01334b4.1d8928",\r
1570                 "dbf99a2b.67c71",\r
1571                 "9e9578a4.5a4df",\r
1572                 "8d5f5723.afac28",\r
1573                 "c84632a9.494938"\r
1574             ]\r
1575         ]\r
1576     },\r
1577     {\r
1578         "id": "b272db0a.663f1",\r
1579         "type": "block",\r
1580         "name": "block : atomic",\r
1581         "xml": "<block atomic=\"true\">",\r
1582         "atomic": "true",\r
1583         "outputs": 1,\r
1584         "x": 3527,\r
1585         "y": 1294,\r
1586         "z": "bc9d969b.328b8",\r
1587         "wires": [\r
1588             [\r
1589                 "3accaf74.7f8a68",\r
1590                 "9469a92e.1082c",\r
1591                 "24fc86b.f179cfa",\r
1592                 "a4e80e5.b17c0f",\r
1593                 "8e72aaca.f223b8",\r
1594                 "6e17b735.11933",\r
1595                 "35d8443b.290754"\r
1596             ]\r
1597         ]\r
1598     },\r
1599     {\r
1600         "id": "6e17b735.11933",\r
1601         "type": "set",\r
1602         "name": "set sotn_value",\r
1603         "xml": "<set>\n<parameter name='eth-service-name' value='`$tmp.aai.connectivityB.connectivity-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",\r
1604         "comments": "",\r
1605         "x": 3756,\r
1606         "y": 1437,\r
1607         "z": "bc9d969b.328b8",\r
1608         "wires": []\r
1609     },\r
1610     {\r
1611         "id": "35d8443b.290754",\r
1612         "type": "execute",\r
1613         "name": "execute RestApiCallNode Create ethernet Service without token",\r
1614         "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
1615         "comments": "",\r
1616         "outputs": 1,\r
1617         "x": 3910,\r
1618         "y": 1485,\r
1619         "z": "bc9d969b.328b8",\r
1620         "wires": [\r
1621             [\r
1622                 "3ee71f70.cef2d8",\r
1623                 "ec28887e.13052"\r
1624             ]\r
1625         ]\r
1626     },\r
1627     {\r
1628         "id": "3ee71f70.cef2d8",\r
1629         "type": "failure",\r
1630         "name": "failure",\r
1631         "xml": "<outcome value='failure'>\n",\r
1632         "comments": "",\r
1633         "outputs": 1,\r
1634         "x": 4255.5,\r
1635         "y": 1466,\r
1636         "z": "bc9d969b.328b8",\r
1637         "wires": [\r
1638             [\r
1639                 "146e8cbe.f1427b"\r
1640             ]\r
1641         ]\r
1642     },\r
1643     {\r
1644         "id": "ec28887e.13052",\r
1645         "type": "success",\r
1646         "name": "success",\r
1647         "xml": "<outcome value='success'>\n",\r
1648         "comments": "",\r
1649         "outputs": 1,\r
1650         "x": 4259.5,\r
1651         "y": 1506,\r
1652         "z": "bc9d969b.328b8",\r
1653         "wires": [\r
1654             [\r
1655                 "6938dd8d.725ce4"\r
1656             ]\r
1657         ]\r
1658     },\r
1659     {\r
1660         "id": "146e8cbe.f1427b",\r
1661         "type": "returnFailure",\r
1662         "name": "return failure",\r
1663         "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 vpn rest api\" />\n",\r
1664         "comments": "",\r
1665         "x": 4413.5,\r
1666         "y": 1466,\r
1667         "z": "bc9d969b.328b8",\r
1668         "wires": []\r
1669     },\r
1670     {\r
1671         "id": "6938dd8d.725ce4",\r
1672         "type": "block",\r
1673         "name": "block : atomic",\r
1674         "xml": "<block atomic=\"true\">",\r
1675         "atomic": "true",\r
1676         "comments": "",\r
1677         "outputs": 1,\r
1678         "x": 4417,\r
1679         "y": 1506,\r
1680         "z": "bc9d969b.328b8",\r
1681         "wires": [\r
1682             [\r
1683                 "3103adf.03ebdd2",\r
1684                 "abd5a958.8851"\r
1685             ]\r
1686         ]\r
1687     },\r
1688     {\r
1689         "id": "b5e2d859.f89e48",\r
1690         "type": "comment",\r
1691         "name": "TODO: FIXME:",\r
1692         "info": "put proper values based on connectivity resource retrieved from AAI",\r
1693         "comments": "",\r
1694         "x": 3753.5,\r
1695         "y": 1393,\r
1696         "z": "bc9d969b.328b8",\r
1697         "wires": []\r
1698     },\r
1699     {\r
1700         "id": "3103adf.03ebdd2",\r
1701         "type": "save",\r
1702         "name": "update vpn-binding B resource (aka. OTN domainB) in AAI",\r
1703         "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-id`' />\n\n<parameter name='operational-status' value='Activated' />\n",\r
1704         "comments": "",\r
1705         "outputs": 1,\r
1706         "x": 4757,\r
1707         "y": 1505,\r
1708         "z": "bc9d969b.328b8",\r
1709         "wires": [\r
1710             []\r
1711         ]\r
1712     },\r
1713     {\r
1714         "id": "1ee5068c.50a041",\r
1715         "type": "comment",\r
1716         "name": "TODO: FIXME",\r
1717         "info": "use proper vpn-binding id and connectivity\n\nAlso, does CCSDK support \"update\" operation for vpn-binding and connectivity?",\r
1718         "comments": "",\r
1719         "x": 4615,\r
1720         "y": 1463,\r
1721         "z": "bc9d969b.328b8",\r
1722         "wires": []\r
1723     },\r
1724     {\r
1725         "id": "abd5a958.8851",\r
1726         "type": "save",\r
1727         "name": "update connectivity resource in AAI",\r
1728         "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
1729         "comments": "",\r
1730         "outputs": 1,\r
1731         "x": 4686,\r
1732         "y": 1554,\r
1733         "z": "bc9d969b.328b8",\r
1734         "wires": [\r
1735             []\r
1736         ]\r
1737     }\r
1738 ]