Initial submission for supporting E-Line based cloud leased line service for CCVPN...
[sdnc/oam.git] / platform-logic / generic-resource-api / src / main / json / p2p_eline / GENERIC-RESOURCE-API_p2p-vnf-topology-operation-p2p-activate.json
1 [\r
2     {\r
3         "id": "94b540c9.238618",\r
4         "type": "dgstart",\r
5         "name": "DGSTART",\r
6         "outputs": 1,\r
7         "x": 149.75,\r
8         "y": 94.75,\r
9         "z": "30d84baa.6f57bc",\r
10         "wires": [\r
11             [\r
12                 "dda31e25.b7e27"\r
13             ]\r
14         ]\r
15     },\r
16     {\r
17         "id": "dda31e25.b7e27",\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": 281.0356903076172,\r
26         "y": 143.98810863494873,\r
27         "z": "30d84baa.6f57bc",\r
28         "wires": [\r
29             [\r
30                 "a1958103.ff3f88"\r
31             ]\r
32         ]\r
33     },\r
34     {\r
35         "id": "a1958103.ff3f88",\r
36         "type": "method",\r
37         "name": "method p2p-vnf-topology-operation-p2p-activate",\r
38         "xml": "<method rpc='p2p-vnf-topology-operation-p2p-activate' mode='sync'>\n",\r
39         "comments": "",\r
40         "outputs": 1,\r
41         "x": 284.1786193847656,\r
42         "y": 228.75003242492676,\r
43         "z": "30d84baa.6f57bc",\r
44         "wires": [\r
45             [\r
46                 "a73db057.8ff74"\r
47             ]\r
48         ]\r
49     },\r
50     {\r
51         "id": "a73db057.8ff74",\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": 433.988037109375,\r
58         "y": 358.4166564941406,\r
59         "z": "30d84baa.6f57bc",\r
60         "wires": [\r
61             [\r
62                 "91bdee0e.c7f15",\r
63                 "957a18ba.9d8e",\r
64                 "11da7ad8.21f09d"\r
65             ]\r
66         ]\r
67     },\r
68     {\r
69         "id": "91bdee0e.c7f15",\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": 702.3216552734375,\r
75         "y": 745.34716796875,\r
76         "z": "30d84baa.6f57bc",\r
77         "wires": []\r
78     },\r
79     {\r
80         "id": "1d1c9d38.a24823",\r
81         "type": "comment",\r
82         "name": "new for TransportSlicing",\r
83         "info": "",\r
84         "comments": "",\r
85         "x": 733.75,\r
86         "y": 419.75,\r
87         "z": "30d84baa.6f57bc",\r
88         "wires": []\r
89     },\r
90     {\r
91         "id": "957a18ba.9d8e",\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": 753.75,\r
98         "y": 515.75,\r
99         "z": "30d84baa.6f57bc",\r
100         "wires": [\r
101             [\r
102                 "255854de.861404",\r
103                 "fd908507.674308",\r
104                 "4a62dd9f.61cdac"\r
105             ]\r
106         ]\r
107     },\r
108     {\r
109         "id": "255854de.861404",\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": 972.75,\r
116         "y": 453.75,\r
117         "z": "30d84baa.6f57bc",\r
118         "wires": [\r
119             [\r
120                 "622587e3.99be58"\r
121             ]\r
122         ]\r
123     },\r
124     {\r
125         "id": "fd908507.674308",\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": 982.240966796875,\r
132         "y": 496.32403564453125,\r
133         "z": "30d84baa.6f57bc",\r
134         "wires": [\r
135             [\r
136                 "d8fc9dc9.3e6cf"\r
137             ]\r
138         ]\r
139     },\r
140     {\r
141         "id": "4a62dd9f.61cdac",\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": 970.75,\r
148         "y": 542.75,\r
149         "z": "30d84baa.6f57bc",\r
150         "wires": [\r
151             [\r
152                 "5e548c85.32cd14"\r
153             ]\r
154         ]\r
155     },\r
156     {\r
157         "id": "d8fc9dc9.3e6cf",\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": 1135.8123779296875,\r
163         "y": 499.6097717285156,\r
164         "z": "30d84baa.6f57bc",\r
165         "wires": []\r
166     },\r
167     {\r
168         "id": "5e548c85.32cd14",\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": 1139.75,\r
174         "y": 543.75,\r
175         "z": "30d84baa.6f57bc",\r
176         "wires": []\r
177     },\r
178     {\r
179         "id": "622587e3.99be58",\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": 1169.75,\r
186         "y": 449.75,\r
187         "z": "30d84baa.6f57bc",\r
188         "wires": [\r
189             [\r
190                 "439a3ae3.2ab694"\r
191             ]\r
192         ]\r
193     },\r
194     {\r
195         "id": "439a3ae3.2ab694",\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": 1393.08349609375,\r
202         "y": 449.74993896484375,\r
203         "z": "30d84baa.6f57bc",\r
204         "wires": [\r
205             [\r
206                 "1016c8ba.b6da07"\r
207             ]\r
208         ]\r
209     },\r
210     {\r
211         "id": "1016c8ba.b6da07",\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": 1593.7501335144043,\r
218         "y": 450.75002098083496,\r
219         "z": "30d84baa.6f57bc",\r
220         "wires": [\r
221             [\r
222                 "f655b129.6c8e3"\r
223             ]\r
224         ]\r
225     },\r
226     {\r
227         "id": "7d98821b.e6839c",\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": 4412.75,\r
233         "y": 166.75,\r
234         "z": "30d84baa.6f57bc",\r
235         "wires": []\r
236     },\r
237     {\r
238         "id": "c978ce8f.5eb918",\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": 4493.75,\r
245         "y": 481.75,\r
246         "z": "30d84baa.6f57bc",\r
247         "wires": [\r
248             [\r
249                 "c08a95fe.6696f8",\r
250                 "b0f4c0f5.92a118"\r
251             ]\r
252         ]\r
253     },\r
254     {\r
255         "id": "c08a95fe.6696f8",\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": 4803.25,\r
262         "y": 450.75,\r
263         "z": "30d84baa.6f57bc",\r
264         "wires": [\r
265             [\r
266                 "f00f23ff.750aa8"\r
267             ]\r
268         ]\r
269     },\r
270     {\r
271         "id": "b0f4c0f5.92a118",\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": 4808.25,\r
278         "y": 515.75,\r
279         "z": "30d84baa.6f57bc",\r
280         "wires": [\r
281             [\r
282                 "c22d4e2c.b8095"\r
283             ]\r
284         ]\r
285     },\r
286     {\r
287         "id": "f00f23ff.750aa8",\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": 4979.25,\r
293         "y": 450.75,\r
294         "z": "30d84baa.6f57bc",\r
295         "wires": []\r
296     },\r
297     {\r
298         "id": "c22d4e2c.b8095",\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": 4974.75,\r
306         "y": 515.75,\r
307         "z": "30d84baa.6f57bc",\r
308         "wires": [\r
309             []\r
310         ]\r
311     },\r
312     {\r
313         "id": "d1f1dcb6.1fec3",\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": 4360.25,\r
319         "y": 669.75,\r
320         "z": "30d84baa.6f57bc",\r
321         "wires": []\r
322     },\r
323     {\r
324         "id": "251b183d.cbc77",\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": 4514.25,\r
331         "y": 717.75,\r
332         "z": "30d84baa.6f57bc",\r
333         "wires": [\r
334             [\r
335                 "be60985c.4fbc58",\r
336                 "b84a3cc3.684a28"\r
337             ]\r
338         ]\r
339     },\r
340     {\r
341         "id": "be60985c.4fbc58",\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": 4859.75,\r
348         "y": 698.75,\r
349         "z": "30d84baa.6f57bc",\r
350         "wires": [\r
351             [\r
352                 "305db122.d214ee"\r
353             ]\r
354         ]\r
355     },\r
356     {\r
357         "id": "b84a3cc3.684a28",\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": 4863.75,\r
364         "y": 738.75,\r
365         "z": "30d84baa.6f57bc",\r
366         "wires": [\r
367             [\r
368                 "d6fb6749.eab338"\r
369             ]\r
370         ]\r
371     },\r
372     {\r
373         "id": "305db122.d214ee",\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": 5017.75,\r
379         "y": 698.75,\r
380         "z": "30d84baa.6f57bc",\r
381         "wires": []\r
382     },\r
383     {\r
384         "id": "d6fb6749.eab338",\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": 5021.25,\r
392         "y": 738.75,\r
393         "z": "30d84baa.6f57bc",\r
394         "wires": [\r
395             [\r
396                 "4fa6f4cb.4aa39c",\r
397                 "f065baf1.f73c4",\r
398                 "677bc6cc.c2278"\r
399             ]\r
400         ]\r
401     },\r
402     {\r
403         "id": "d7ddb4d7.9c1b5",\r
404         "type": "comment",\r
405         "name": "TODO: FIXME:",\r
406         "info": "put proper values based on connectivity resource retrieved from AAI",\r
407         "comments": "",\r
408         "x": 4357.75,\r
409         "y": 625.75,\r
410         "z": "30d84baa.6f57bc",\r
411         "wires": []\r
412     },\r
413     {\r
414         "id": "4fa6f4cb.4aa39c",\r
415         "type": "save",\r
416         "name": "update vpn-binding A resource (aka. OTN domainA) in AAI",\r
417         "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
418         "comments": "",\r
419         "outputs": 1,\r
420         "x": 5351.75,\r
421         "y": 703.75,\r
422         "z": "30d84baa.6f57bc",\r
423         "wires": [\r
424             []\r
425         ]\r
426     },\r
427     {\r
428         "id": "e1a352b3.d1c22",\r
429         "type": "comment",\r
430         "name": "TODO: FIXME",\r
431         "info": "use proper vpn-binding id and connectivity id\n\nAlso, does CCSDK support \"update\" operation for vpn-binding and connectivity?",\r
432         "comments": "",\r
433         "x": 5215.75,\r
434         "y": 662.75,\r
435         "z": "30d84baa.6f57bc",\r
436         "wires": []\r
437     },\r
438     {\r
439         "id": "f065baf1.f73c4",\r
440         "type": "save",\r
441         "name": "update connectivity resource in AAI",\r
442         "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
443         "comments": "",\r
444         "outputs": 1,\r
445         "x": 5278.75,\r
446         "y": 749.75,\r
447         "z": "30d84baa.6f57bc",\r
448         "wires": [\r
449             []\r
450         ]\r
451     },\r
452     {\r
453         "id": "d8047beb.a120a",\r
454         "type": "set",\r
455         "name": "set pnf-name",\r
456         "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
457         "comments": "",\r
458         "x": 4350.75,\r
459         "y": 214.75,\r
460         "z": "30d84baa.6f57bc",\r
461         "wires": []\r
462     },\r
463     {\r
464         "id": "c0003a50.a00b1",\r
465         "type": "get-resource",\r
466         "name": "get-resource src pnf",\r
467         "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
468         "comments": "",\r
469         "outputs": 1,\r
470         "x": 4376.75,\r
471         "y": 331.75,\r
472         "z": "30d84baa.6f57bc",\r
473         "wires": [\r
474             [\r
475                 "767b670a.725628",\r
476                 "8de69881.7810c",\r
477                 "dbb97564.e7a91"\r
478             ]\r
479         ]\r
480     },\r
481     {\r
482         "id": "767b670a.725628",\r
483         "type": "success",\r
484         "name": "success",\r
485         "xml": "<outcome value='success'>\n",\r
486         "comments": "",\r
487         "outputs": 1,\r
488         "x": 4572.2501220703125,\r
489         "y": 283.75,\r
490         "z": "30d84baa.6f57bc",\r
491         "wires": [\r
492             [\r
493                 "9fa9eef6.966618"\r
494             ]\r
495         ]\r
496     },\r
497     {\r
498         "id": "8de69881.7810c",\r
499         "type": "not-found",\r
500         "name": "not-found",\r
501         "xml": "<outcome value='not-found'>\n",\r
502         "comments": "",\r
503         "outputs": 1,\r
504         "x": 4564.2501220703125,\r
505         "y": 338.75,\r
506         "z": "30d84baa.6f57bc",\r
507         "wires": [\r
508             [\r
509                 "2b81f91f.bfddb6"\r
510             ]\r
511         ]\r
512     },\r
513     {\r
514         "id": "9fa9eef6.966618",\r
515         "type": "block",\r
516         "name": "block",\r
517         "xml": "<block>\n",\r
518         "atomic": "false",\r
519         "comments": "",\r
520         "outputs": 1,\r
521         "x": 4716.6324462890625,\r
522         "y": 283.4056701660156,\r
523         "z": "30d84baa.6f57bc",\r
524         "wires": [\r
525             [\r
526                 "33a206d2.a6527a"\r
527             ]\r
528         ]\r
529     },\r
530     {\r
531         "id": "4f3c702b.c83bb",\r
532         "type": "outcome",\r
533         "name": "esr-thirdparty-sdnc",\r
534         "xml": "<outcome value='esr-thirdparty-sdnc'>\n",\r
535         "comments": "",\r
536         "outputs": 1,\r
537         "x": 5298.75,\r
538         "y": 285.75,\r
539         "z": "30d84baa.6f57bc",\r
540         "wires": [\r
541             [\r
542                 "cb134ba5.74bf48"\r
543             ]\r
544         ]\r
545     },\r
546     {\r
547         "id": "33a206d2.a6527a",\r
548         "type": "for",\r
549         "name": "for each relationship",\r
550         "xml": "<for silentFailure='true' index='spvidx' start='0' end='`$tmp.aai.source-pnf.relationship-list.relationship_length`' >\n",\r
551         "comments": "",\r
552         "outputs": 1,\r
553         "x": 4900.75,\r
554         "y": 281.75,\r
555         "z": "30d84baa.6f57bc",\r
556         "wires": [\r
557             [\r
558                 "893da1cb.bc091"\r
559             ]\r
560         ]\r
561     },\r
562     {\r
563         "id": "893da1cb.bc091",\r
564         "type": "switchNode",\r
565         "name": "switch related-to",\r
566         "xml": "<switch test='`$tmp.aai.source-pnf.relationship-list.relationship[$spvidx].related-to`'>\n",\r
567         "comments": "",\r
568         "outputs": 1,\r
569         "x": 5095.75,\r
570         "y": 281.75,\r
571         "z": "30d84baa.6f57bc",\r
572         "wires": [\r
573             [\r
574                 "4f3c702b.c83bb"\r
575             ]\r
576         ]\r
577     },\r
578     {\r
579         "id": "dbb97564.e7a91",\r
580         "type": "other",\r
581         "name": "other",\r
582         "xml": "<outcome value='Other'>\n",\r
583         "comments": "",\r
584         "outputs": 1,\r
585         "x": 4569.2501220703125,\r
586         "y": 395.75,\r
587         "z": "30d84baa.6f57bc",\r
588         "wires": [\r
589             [\r
590                 "b75e061e.d5ec88"\r
591             ]\r
592         ]\r
593     },\r
594     {\r
595         "id": "b75e061e.d5ec88",\r
596         "type": "returnFailure",\r
597         "name": "return failure",\r
598         "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
599         "comments": "",\r
600         "x": 4721.2501220703125,\r
601         "y": 396.75,\r
602         "z": "30d84baa.6f57bc",\r
603         "wires": []\r
604     },\r
605     {\r
606         "id": "2b81f91f.bfddb6",\r
607         "type": "returnFailure",\r
608         "name": "return failure",\r
609         "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
610         "comments": "",\r
611         "x": 4732.2501220703125,\r
612         "y": 339.75,\r
613         "z": "30d84baa.6f57bc",\r
614         "wires": []\r
615     },\r
616     {\r
617         "id": "848a4c57.f2a3d",\r
618         "type": "execute",\r
619         "name": "get esr-thirdparty-sdnc",\r
620         "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
621         "comments": "",\r
622         "outputs": 1,\r
623         "x": 5683.75,\r
624         "y": 298.75,\r
625         "z": "30d84baa.6f57bc",\r
626         "wires": [\r
627             [\r
628                 "2e1535a4.41297a",\r
629                 "1778db70.6907f5",\r
630                 "72b5f7c.70da408"\r
631             ]\r
632         ]\r
633     },\r
634     {\r
635         "id": "cb134ba5.74bf48",\r
636         "type": "block",\r
637         "name": "block : atomic",\r
638         "xml": "<block atomic=\"true\">",\r
639         "atomic": "true",\r
640         "outputs": 1,\r
641         "x": 5477.75,\r
642         "y": 285.75,\r
643         "z": "30d84baa.6f57bc",\r
644         "wires": [\r
645             [\r
646                 "19fba605.f323fa",\r
647                 "848a4c57.f2a3d"\r
648             ]\r
649         ]\r
650     },\r
651     {\r
652         "id": "19fba605.f323fa",\r
653         "type": "set",\r
654         "name": "set esr-thirdparty-sdnc domainA id",\r
655         "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
656         "comments": "",\r
657         "x": 5713.75,\r
658         "y": 246.75,\r
659         "z": "30d84baa.6f57bc",\r
660         "wires": []\r
661     },\r
662     {\r
663         "id": "2e1535a4.41297a",\r
664         "type": "success",\r
665         "name": "success",\r
666         "xml": "<outcome value='success'>\n",\r
667         "comments": "",\r
668         "outputs": 1,\r
669         "x": 5893.75,\r
670         "y": 289.75,\r
671         "z": "30d84baa.6f57bc",\r
672         "wires": [\r
673             [\r
674                 "780f3b99.e0b614"\r
675             ]\r
676         ]\r
677     },\r
678     {\r
679         "id": "1778db70.6907f5",\r
680         "type": "not-found",\r
681         "name": "not-found",\r
682         "xml": "<outcome value='not-found'>\n",\r
683         "comments": "",\r
684         "outputs": 1,\r
685         "x": 5885.75,\r
686         "y": 344.75,\r
687         "z": "30d84baa.6f57bc",\r
688         "wires": [\r
689             [\r
690                 "142c73b0.fb0d8c"\r
691             ]\r
692         ]\r
693     },\r
694     {\r
695         "id": "72b5f7c.70da408",\r
696         "type": "other",\r
697         "name": "other",\r
698         "xml": "<outcome value='Other'>\n",\r
699         "comments": "",\r
700         "outputs": 1,\r
701         "x": 5890.75,\r
702         "y": 401.75,\r
703         "z": "30d84baa.6f57bc",\r
704         "wires": [\r
705             [\r
706                 "4764feda.35a838"\r
707             ]\r
708         ]\r
709     },\r
710     {\r
711         "id": "4764feda.35a838",\r
712         "type": "returnFailure",\r
713         "name": "return failure",\r
714         "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
715         "comments": "",\r
716         "x": 6042.75,\r
717         "y": 402.75,\r
718         "z": "30d84baa.6f57bc",\r
719         "wires": []\r
720     },\r
721     {\r
722         "id": "142c73b0.fb0d8c",\r
723         "type": "returnFailure",\r
724         "name": "return failure",\r
725         "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
726         "comments": "",\r
727         "x": 6053.75,\r
728         "y": 347.75,\r
729         "z": "30d84baa.6f57bc",\r
730         "wires": []\r
731     },\r
732     {\r
733         "id": "780f3b99.e0b614",\r
734         "type": "block",\r
735         "name": "block",\r
736         "xml": "<block>\n",\r
737         "atomic": "false",\r
738         "comments": "",\r
739         "outputs": 1,\r
740         "x": 6038.13232421875,\r
741         "y": 287.4056701660156,\r
742         "z": "30d84baa.6f57bc",\r
743         "wires": [\r
744             [\r
745                 "bba0e779.8df588"\r
746             ]\r
747         ]\r
748     },\r
749     {\r
750         "id": "bba0e779.8df588",\r
751         "type": "set",\r
752         "name": "set controller domainA data",\r
753         "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
754         "comments": "",\r
755         "x": 6252.75,\r
756         "y": 283.75,\r
757         "z": "30d84baa.6f57bc",\r
758         "wires": []\r
759     },\r
760     {\r
761         "id": "11da7ad8.21f09d",\r
762         "type": "execute",\r
763         "name": "execute properties",\r
764         "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
765         "comments": "",\r
766         "outputs": 1,\r
767         "x": 719.75,\r
768         "y": 463.75,\r
769         "z": "30d84baa.6f57bc",\r
770         "wires": [\r
771             []\r
772         ]\r
773     },\r
774     {\r
775         "id": "97981e3f.7665d",\r
776         "type": "set",\r
777         "name": "set attachment_param for OTN B",\r
778         "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
779         "comments": "",\r
780         "x": 3819.75,\r
781         "y": 1623.75,\r
782         "z": "30d84baa.6f57bc",\r
783         "wires": []\r
784     },\r
785     {\r
786         "id": "1bef475b.0876b9",\r
787         "type": "execute",\r
788         "name": "execute RestApiCallNode Create OTN tunnel with token",\r
789         "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
790         "comments": "",\r
791         "outputs": 1,\r
792         "x": 3882.75,\r
793         "y": 1952.75,\r
794         "z": "30d84baa.6f57bc",\r
795         "wires": [\r
796             [\r
797                 "a5d1d793.c9259",\r
798                 "24fe1da2.474a9a"\r
799             ]\r
800         ]\r
801     },\r
802     {\r
803         "id": "a5d1d793.c9259",\r
804         "type": "failure",\r
805         "name": "failure",\r
806         "xml": "<outcome value='failure'>\n",\r
807         "comments": "",\r
808         "outputs": 1,\r
809         "x": 4178.25,\r
810         "y": 1919.75,\r
811         "z": "30d84baa.6f57bc",\r
812         "wires": [\r
813             [\r
814                 "b911fc3e.201c1"\r
815             ]\r
816         ]\r
817     },\r
818     {\r
819         "id": "24fe1da2.474a9a",\r
820         "type": "success",\r
821         "name": "success",\r
822         "xml": "<outcome value='success'>\n",\r
823         "comments": "",\r
824         "outputs": 1,\r
825         "x": 4183.25,\r
826         "y": 1984.75,\r
827         "z": "30d84baa.6f57bc",\r
828         "wires": [\r
829             [\r
830                 "467082f5.e654ac"\r
831             ]\r
832         ]\r
833     },\r
834     {\r
835         "id": "b911fc3e.201c1",\r
836         "type": "returnFailure",\r
837         "name": "return failure",\r
838         "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
839         "comments": "",\r
840         "x": 4346.25,\r
841         "y": 1919.75,\r
842         "z": "30d84baa.6f57bc",\r
843         "wires": []\r
844     },\r
845     {\r
846         "id": "467082f5.e654ac",\r
847         "type": "block",\r
848         "name": "block : atomic",\r
849         "xml": "<block atomic=\"true\">",\r
850         "atomic": "true",\r
851         "comments": "",\r
852         "outputs": 1,\r
853         "x": 4356.75,\r
854         "y": 1984.75,\r
855         "z": "30d84baa.6f57bc",\r
856         "wires": [\r
857             []\r
858         ]\r
859     },\r
860     {\r
861         "id": "ace90237.5528b8",\r
862         "type": "set",\r
863         "name": "set pnf-name",\r
864         "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
865         "comments": "",\r
866         "x": 3758.75,\r
867         "y": 1680.75,\r
868         "z": "30d84baa.6f57bc",\r
869         "wires": []\r
870     },\r
871     {\r
872         "id": "e4aaac37.9b5738",\r
873         "type": "get-resource",\r
874         "name": "get-resource dst pnf",\r
875         "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
876         "comments": "",\r
877         "outputs": 1,\r
878         "x": 3778.75,\r
879         "y": 1777.75,\r
880         "z": "30d84baa.6f57bc",\r
881         "wires": [\r
882             [\r
883                 "57142ea4.bc3bb",\r
884                 "cc1afb43.a5676",\r
885                 "86a15efe.377578"\r
886             ]\r
887         ]\r
888     },\r
889     {\r
890         "id": "57142ea4.bc3bb",\r
891         "type": "success",\r
892         "name": "success",\r
893         "xml": "<outcome value='success'>\n",\r
894         "comments": "",\r
895         "outputs": 1,\r
896         "x": 3981.2501220703125,\r
897         "y": 1730.75,\r
898         "z": "30d84baa.6f57bc",\r
899         "wires": [\r
900             [\r
901                 "19ef9dfe.b1b91a"\r
902             ]\r
903         ]\r
904     },\r
905     {\r
906         "id": "cc1afb43.a5676",\r
907         "type": "not-found",\r
908         "name": "not-found",\r
909         "xml": "<outcome value='not-found'>\n",\r
910         "comments": "",\r
911         "outputs": 1,\r
912         "x": 3973.2501220703125,\r
913         "y": 1785.75,\r
914         "z": "30d84baa.6f57bc",\r
915         "wires": [\r
916             [\r
917                 "fc294828.8c7aa"\r
918             ]\r
919         ]\r
920     },\r
921     {\r
922         "id": "19ef9dfe.b1b91a",\r
923         "type": "block",\r
924         "name": "block",\r
925         "xml": "<block>\n",\r
926         "atomic": "false",\r
927         "comments": "",\r
928         "outputs": 1,\r
929         "x": 4125.6324462890625,\r
930         "y": 1728.4056701660156,\r
931         "z": "30d84baa.6f57bc",\r
932         "wires": [\r
933             [\r
934                 "a34e91d1.6b4f48"\r
935             ]\r
936         ]\r
937     },\r
938     {\r
939         "id": "a34e91d1.6b4f48",\r
940         "type": "for",\r
941         "name": "for each relationship",\r
942         "xml": "<for silentFailure='true' index='dpvidx' start='0' end='`$tmp.aai.destination-pnf.relationship-list.relationship_length`' >\n",\r
943         "comments": "",\r
944         "outputs": 1,\r
945         "x": 4309.75,\r
946         "y": 1742.75,\r
947         "z": "30d84baa.6f57bc",\r
948         "wires": [\r
949             [\r
950                 "bcf409d1.2bca88"\r
951             ]\r
952         ]\r
953     },\r
954     {\r
955         "id": "86a15efe.377578",\r
956         "type": "other",\r
957         "name": "other",\r
958         "xml": "<outcome value='Other'>\n",\r
959         "comments": "",\r
960         "outputs": 1,\r
961         "x": 3978.2501220703125,\r
962         "y": 1842.75,\r
963         "z": "30d84baa.6f57bc",\r
964         "wires": [\r
965             [\r
966                 "9228ece.bfbed9"\r
967             ]\r
968         ]\r
969     },\r
970     {\r
971         "id": "9228ece.bfbed9",\r
972         "type": "returnFailure",\r
973         "name": "return failure",\r
974         "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
975         "comments": "",\r
976         "x": 4130.2501220703125,\r
977         "y": 1843.75,\r
978         "z": "30d84baa.6f57bc",\r
979         "wires": []\r
980     },\r
981     {\r
982         "id": "fc294828.8c7aa",\r
983         "type": "returnFailure",\r
984         "name": "return failure",\r
985         "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
986         "comments": "",\r
987         "x": 4141.2501220703125,\r
988         "y": 1788.75,\r
989         "z": "30d84baa.6f57bc",\r
990         "wires": []\r
991     },\r
992     {\r
993         "id": "8fd77208.a2c738",\r
994         "type": "outcome",\r
995         "name": "esr-thirdparty-sdnc",\r
996         "xml": "<outcome value='esr-thirdparty-sdnc'>\n",\r
997         "comments": "",\r
998         "outputs": 1,\r
999         "x": 4707.75,\r
1000         "y": 1746.75,\r
1001         "z": "30d84baa.6f57bc",\r
1002         "wires": [\r
1003             [\r
1004                 "2b23a5a1.db882a"\r
1005             ]\r
1006         ]\r
1007     },\r
1008     {\r
1009         "id": "bcf409d1.2bca88",\r
1010         "type": "switchNode",\r
1011         "name": "switch related-to",\r
1012         "xml": "<switch test='`$tmp.aai.destination-pnf.relationship-list.relationship[$dpvidx].related-to`'>\n",\r
1013         "comments": "",\r
1014         "outputs": 1,\r
1015         "x": 4504.75,\r
1016         "y": 1742.75,\r
1017         "z": "30d84baa.6f57bc",\r
1018         "wires": [\r
1019             [\r
1020                 "8fd77208.a2c738"\r
1021             ]\r
1022         ]\r
1023     },\r
1024     {\r
1025         "id": "ee733a11.b10eb8",\r
1026         "type": "execute",\r
1027         "name": "get esr-thirdparty-sdnc",\r
1028         "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
1029         "comments": "",\r
1030         "outputs": 1,\r
1031         "x": 5092.75,\r
1032         "y": 1745.75,\r
1033         "z": "30d84baa.6f57bc",\r
1034         "wires": [\r
1035             [\r
1036                 "8e9e736e.ee5478",\r
1037                 "98c4188c.f20b2",\r
1038                 "454707d0.8a14d8"\r
1039             ]\r
1040         ]\r
1041     },\r
1042     {\r
1043         "id": "2b23a5a1.db882a",\r
1044         "type": "block",\r
1045         "name": "block : atomic",\r
1046         "xml": "<block atomic=\"true\">",\r
1047         "atomic": "true",\r
1048         "outputs": 1,\r
1049         "x": 4884.75,\r
1050         "y": 1738.75,\r
1051         "z": "30d84baa.6f57bc",\r
1052         "wires": [\r
1053             [\r
1054                 "923bc8de.eb024",\r
1055                 "ee733a11.b10eb8"\r
1056             ]\r
1057         ]\r
1058     },\r
1059     {\r
1060         "id": "923bc8de.eb024",\r
1061         "type": "set",\r
1062         "name": "set esr-thirdparty-sdnc domainB id",\r
1063         "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
1064         "comments": "",\r
1065         "x": 5122.75,\r
1066         "y": 1693.75,\r
1067         "z": "30d84baa.6f57bc",\r
1068         "wires": []\r
1069     },\r
1070     {\r
1071         "id": "35e39fbb.1f604",\r
1072         "type": "returnFailure",\r
1073         "name": "return failure",\r
1074         "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
1075         "comments": "",\r
1076         "x": 5451.75,\r
1077         "y": 1849.75,\r
1078         "z": "30d84baa.6f57bc",\r
1079         "wires": []\r
1080     },\r
1081     {\r
1082         "id": "13ebe3ed.f2247c",\r
1083         "type": "returnFailure",\r
1084         "name": "return failure",\r
1085         "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
1086         "comments": "",\r
1087         "x": 5462.75,\r
1088         "y": 1794.75,\r
1089         "z": "30d84baa.6f57bc",\r
1090         "wires": []\r
1091     },\r
1092     {\r
1093         "id": "b78b9bfd.914f38",\r
1094         "type": "block",\r
1095         "name": "block",\r
1096         "xml": "<block>\n",\r
1097         "atomic": "false",\r
1098         "comments": "",\r
1099         "outputs": 1,\r
1100         "x": 5447.13232421875,\r
1101         "y": 1734.4056701660156,\r
1102         "z": "30d84baa.6f57bc",\r
1103         "wires": [\r
1104             [\r
1105                 "4076fb5b.40dc5c"\r
1106             ]\r
1107         ]\r
1108     },\r
1109     {\r
1110         "id": "4076fb5b.40dc5c",\r
1111         "type": "set",\r
1112         "name": "set controller domainB data",\r
1113         "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
1114         "comments": "",\r
1115         "x": 5661.75,\r
1116         "y": 1730.75,\r
1117         "z": "30d84baa.6f57bc",\r
1118         "wires": []\r
1119     },\r
1120     {\r
1121         "id": "8e9e736e.ee5478",\r
1122         "type": "success",\r
1123         "name": "success",\r
1124         "xml": "<outcome value='success'>\n",\r
1125         "comments": "",\r
1126         "outputs": 1,\r
1127         "x": 5302.75,\r
1128         "y": 1736.75,\r
1129         "z": "30d84baa.6f57bc",\r
1130         "wires": [\r
1131             [\r
1132                 "b78b9bfd.914f38"\r
1133             ]\r
1134         ]\r
1135     },\r
1136     {\r
1137         "id": "98c4188c.f20b2",\r
1138         "type": "not-found",\r
1139         "name": "not-found",\r
1140         "xml": "<outcome value='not-found'>\n",\r
1141         "comments": "",\r
1142         "outputs": 1,\r
1143         "x": 5294.75,\r
1144         "y": 1791.75,\r
1145         "z": "30d84baa.6f57bc",\r
1146         "wires": [\r
1147             [\r
1148                 "13ebe3ed.f2247c"\r
1149             ]\r
1150         ]\r
1151     },\r
1152     {\r
1153         "id": "454707d0.8a14d8",\r
1154         "type": "other",\r
1155         "name": "other",\r
1156         "xml": "<outcome value='Other'>\n",\r
1157         "comments": "",\r
1158         "outputs": 1,\r
1159         "x": 5299.75,\r
1160         "y": 1848.75,\r
1161         "z": "30d84baa.6f57bc",\r
1162         "wires": [\r
1163             [\r
1164                 "35e39fbb.1f604"\r
1165             ]\r
1166         ]\r
1167     },\r
1168     {\r
1169         "id": "f655b129.6c8e3",\r
1170         "type": "save",\r
1171         "name": "get connectivity from aai",\r
1172         "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
1173         "comments": "",\r
1174         "outputs": 1,\r
1175         "x": 1831.75,\r
1176         "y": 452.75,\r
1177         "z": "30d84baa.6f57bc",\r
1178         "wires": [\r
1179             [\r
1180                 "d8fbecfc.eada5",\r
1181                 "70aafcb6.3ffce4",\r
1182                 "18daf882.cb46e7"\r
1183             ]\r
1184         ]\r
1185     },\r
1186     {\r
1187         "id": "d8fbecfc.eada5",\r
1188         "type": "success",\r
1189         "name": "success",\r
1190         "xml": "<outcome value='success'>\n",\r
1191         "comments": "",\r
1192         "outputs": 1,\r
1193         "x": 2039.75,\r
1194         "y": 416.75,\r
1195         "z": "30d84baa.6f57bc",\r
1196         "wires": [\r
1197             [\r
1198                 "92d3d22d.c618f8"\r
1199             ]\r
1200         ]\r
1201     },\r
1202     {\r
1203         "id": "70aafcb6.3ffce4",\r
1204         "type": "not-found",\r
1205         "name": "not-found",\r
1206         "xml": "<outcome value='not-found'>\n",\r
1207         "comments": "",\r
1208         "outputs": 1,\r
1209         "x": 2040.240966796875,\r
1210         "y": 462.32403564453125,\r
1211         "z": "30d84baa.6f57bc",\r
1212         "wires": [\r
1213             [\r
1214                 "de1e5ed.546bf2"\r
1215             ]\r
1216         ]\r
1217     },\r
1218     {\r
1219         "id": "18daf882.cb46e7",\r
1220         "type": "failure",\r
1221         "name": "failure",\r
1222         "xml": "<outcome value='failure'>\n",\r
1223         "comments": "",\r
1224         "outputs": 1,\r
1225         "x": 2037.75,\r
1226         "y": 505.75,\r
1227         "z": "30d84baa.6f57bc",\r
1228         "wires": [\r
1229             [\r
1230                 "b369c83a.de60d8"\r
1231             ]\r
1232         ]\r
1233     },\r
1234     {\r
1235         "id": "de1e5ed.546bf2",\r
1236         "type": "returnFailure",\r
1237         "name": "return failure",\r
1238         "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
1239         "comments": "",\r
1240         "x": 2202.8123779296875,\r
1241         "y": 462.6097717285156,\r
1242         "z": "30d84baa.6f57bc",\r
1243         "wires": []\r
1244     },\r
1245     {\r
1246         "id": "b369c83a.de60d8",\r
1247         "type": "returnFailure",\r
1248         "name": "return failure",\r
1249         "xml": "<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value='' />\n",\r
1250         "comments": "",\r
1251         "x": 2206.75,\r
1252         "y": 506.75,\r
1253         "z": "30d84baa.6f57bc",\r
1254         "wires": []\r
1255     },\r
1256     {\r
1257         "id": "98b87635.4ab2",\r
1258         "type": "save",\r
1259         "name": "get vpn-binding from aai",\r
1260         "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
1261         "comments": "",\r
1262         "outputs": 1,\r
1263         "x": 2512.75,\r
1264         "y": 505.75,\r
1265         "z": "30d84baa.6f57bc",\r
1266         "wires": [\r
1267             [\r
1268                 "133fd3a1.d9493c",\r
1269                 "1efd7812.84eb68",\r
1270                 "be58cccd.20957"\r
1271             ]\r
1272         ]\r
1273     },\r
1274     {\r
1275         "id": "c3829b9e.475158",\r
1276         "type": "block",\r
1277         "name": "block : atomic",\r
1278         "xml": "<block atomic=\"true\">",\r
1279         "atomic": "true",\r
1280         "outputs": 1,\r
1281         "x": 2892.75,\r
1282         "y": 593.75,\r
1283         "z": "30d84baa.6f57bc",\r
1284         "wires": [\r
1285             [\r
1286                 "52401003.e54ba8"\r
1287             ]\r
1288         ]\r
1289     },\r
1290     {\r
1291         "id": "133fd3a1.d9493c",\r
1292         "type": "success",\r
1293         "name": "success",\r
1294         "xml": "<outcome value='success'>\n",\r
1295         "comments": "",\r
1296         "outputs": 1,\r
1297         "x": 2723.75,\r
1298         "y": 594.75,\r
1299         "z": "30d84baa.6f57bc",\r
1300         "wires": [\r
1301             [\r
1302                 "c3829b9e.475158"\r
1303             ]\r
1304         ]\r
1305     },\r
1306     {\r
1307         "id": "1efd7812.84eb68",\r
1308         "type": "not-found",\r
1309         "name": "not-found",\r
1310         "xml": "<outcome value='not-found'>\n",\r
1311         "comments": "",\r
1312         "outputs": 1,\r
1313         "x": 2726.240966796875,\r
1314         "y": 490.32403564453125,\r
1315         "z": "30d84baa.6f57bc",\r
1316         "wires": [\r
1317             [\r
1318                 "3a938444.bd8bbc"\r
1319             ]\r
1320         ]\r
1321     },\r
1322     {\r
1323         "id": "be58cccd.20957",\r
1324         "type": "failure",\r
1325         "name": "failure",\r
1326         "xml": "<outcome value='failure'>\n",\r
1327         "comments": "",\r
1328         "outputs": 1,\r
1329         "x": 2721.75,\r
1330         "y": 534.75,\r
1331         "z": "30d84baa.6f57bc",\r
1332         "wires": [\r
1333             [\r
1334                 "9589b818.4000b"\r
1335             ]\r
1336         ]\r
1337     },\r
1338     {\r
1339         "id": "9589b818.4000b",\r
1340         "type": "returnFailure",\r
1341         "name": "return failure",\r
1342         "xml": "<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value='' />\n",\r
1343         "comments": "",\r
1344         "x": 2889.75,\r
1345         "y": 534.75,\r
1346         "z": "30d84baa.6f57bc",\r
1347         "wires": []\r
1348     },\r
1349     {\r
1350         "id": "3a938444.bd8bbc",\r
1351         "type": "returnFailure",\r
1352         "name": "return failure",\r
1353         "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n    <parameter name=\"error-message\" value=\"`'An error occurred while querying pnf from AnAI with pnf-name = ' + $prop.l3vpn.pe1_id`\" />\n\n",\r
1354         "comments": "",\r
1355         "x": 2888.8125,\r
1356         "y": 489.6097412109375,\r
1357         "z": "30d84baa.6f57bc",\r
1358         "wires": []\r
1359     },\r
1360     {\r
1361         "id": "92d3d22d.c618f8",\r
1362         "type": "for",\r
1363         "name": "for each relationship",\r
1364         "xml": "<for silentFailure='true' index='cridx' start='0' end='`$tmp.aai.connectivity.relationship-list.relationship_length`' >\n\n",\r
1365         "comments": "",\r
1366         "outputs": 1,\r
1367         "x": 2240.75,\r
1368         "y": 411.75,\r
1369         "z": "30d84baa.6f57bc",\r
1370         "wires": [\r
1371             [\r
1372                 "7db3ded6.deaf"\r
1373             ]\r
1374         ]\r
1375     },\r
1376     {\r
1377         "id": "7db3ded6.deaf",\r
1378         "type": "switchNode",\r
1379         "name": "switch related-to",\r
1380         "xml": "<switch test='`$tmp.aai.connectivity.relationship-list.relationship[$cridx].related-to`'>\n",\r
1381         "comments": "",\r
1382         "outputs": 1,\r
1383         "x": 2445.75,\r
1384         "y": 411.75,\r
1385         "z": "30d84baa.6f57bc",\r
1386         "wires": [\r
1387             [\r
1388                 "cfbe6a35.f2fd5"\r
1389             ]\r
1390         ]\r
1391     },\r
1392     {\r
1393         "id": "cfbe6a35.f2fd5",\r
1394         "type": "outcome",\r
1395         "name": "vpn-binding",\r
1396         "xml": "<outcome value='vpn-binding'>\n",\r
1397         "comments": "",\r
1398         "outputs": 1,\r
1399         "x": 2611.75,\r
1400         "y": 411.75,\r
1401         "z": "30d84baa.6f57bc",\r
1402         "wires": [\r
1403             [\r
1404                 "66d97a83.58a794"\r
1405             ]\r
1406         ]\r
1407     },\r
1408     {\r
1409         "id": "66d97a83.58a794",\r
1410         "type": "block",\r
1411         "name": "block : atomic",\r
1412         "xml": "<block atomic=\"true\">",\r
1413         "atomic": "true",\r
1414         "outputs": 1,\r
1415         "x": 2774.75,\r
1416         "y": 411.75,\r
1417         "z": "30d84baa.6f57bc",\r
1418         "wires": [\r
1419             [\r
1420                 "98b87635.4ab2",\r
1421                 "eec13dad.1221b"\r
1422             ]\r
1423         ]\r
1424     },\r
1425     {\r
1426         "id": "ae8dd7ac.9cc1d",\r
1427         "type": "switchNode",\r
1428         "name": "switch vpn-binding has dst-access-ltp",\r
1429         "xml": "<switch test='`$tmp.aai.vpn-binding.dst-access-ltp-id`'>\n",\r
1430         "comments": "",\r
1431         "outputs": 1,\r
1432         "x": 3333.75,\r
1433         "y": 694.75,\r
1434         "z": "30d84baa.6f57bc",\r
1435         "wires": [\r
1436             [\r
1437                 "8935f293.cb1e78",\r
1438                 "f32e6b37.4758a8"\r
1439             ]\r
1440         ]\r
1441     },\r
1442     {\r
1443         "id": "8935f293.cb1e78",\r
1444         "type": "outcome",\r
1445         "name": "Null",\r
1446         "xml": "<outcome value=''>\n",\r
1447         "comments": "",\r
1448         "outputs": 1,\r
1449         "x": 3547.75,\r
1450         "y": 731.75,\r
1451         "z": "30d84baa.6f57bc",\r
1452         "wires": [\r
1453             [\r
1454                 "394930dc.1bf1c"\r
1455             ]\r
1456         ]\r
1457     },\r
1458     {\r
1459         "id": "f32e6b37.4758a8",\r
1460         "type": "other",\r
1461         "name": "other",\r
1462         "xml": "<outcome value='Other'>\n",\r
1463         "comments": "",\r
1464         "outputs": 1,\r
1465         "x": 3549.75,\r
1466         "y": 669.75,\r
1467         "z": "30d84baa.6f57bc",\r
1468         "wires": [\r
1469             [\r
1470                 "d8995170.21ddb"\r
1471             ]\r
1472         ]\r
1473     },\r
1474     {\r
1475         "id": "394930dc.1bf1c",\r
1476         "type": "switchNode",\r
1477         "name": "switch vpn-binding has src-access-ltp",\r
1478         "xml": "<switch test='`$tmp.aai.vpn-binding.src-access-ltp-id`'>\n",\r
1479         "comments": "",\r
1480         "outputs": 1,\r
1481         "x": 3127.75,\r
1482         "y": 1974.75,\r
1483         "z": "30d84baa.6f57bc",\r
1484         "wires": [\r
1485             [\r
1486                 "2a89d450.3404ec",\r
1487                 "667fc503.5791f4"\r
1488             ]\r
1489         ]\r
1490     },\r
1491     {\r
1492         "id": "2a89d450.3404ec",\r
1493         "type": "outcome",\r
1494         "name": "Null",\r
1495         "xml": "<outcome value=''>\n",\r
1496         "comments": "",\r
1497         "outputs": 1,\r
1498         "x": 3380.75,\r
1499         "y": 2008.75,\r
1500         "z": "30d84baa.6f57bc",\r
1501         "wires": [\r
1502             [\r
1503                 "566098c5.d0033"\r
1504             ]\r
1505         ]\r
1506     },\r
1507     {\r
1508         "id": "667fc503.5791f4",\r
1509         "type": "other",\r
1510         "name": "other",\r
1511         "xml": "<outcome value='Other'>\n",\r
1512         "comments": "",\r
1513         "outputs": 1,\r
1514         "x": 3380.75,\r
1515         "y": 1952.75,\r
1516         "z": "30d84baa.6f57bc",\r
1517         "wires": [\r
1518             [\r
1519                 "4eef4aff.e3dcc4"\r
1520             ]\r
1521         ]\r
1522     },\r
1523     {\r
1524         "id": "566098c5.d0033",\r
1525         "type": "returnFailure",\r
1526         "name": "return failure",\r
1527         "xml": "<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value='' />\n",\r
1528         "comments": "",\r
1529         "x": 3531.75,\r
1530         "y": 2008.75,\r
1531         "z": "30d84baa.6f57bc",\r
1532         "wires": []\r
1533     },\r
1534     {\r
1535         "id": "72ddf5d3.8c5f4c",\r
1536         "type": "set",\r
1537         "name": "set vpn-bindingA and connectivityA",\r
1538         "xml": "<set>\n<parameter name='tmp.aai.vpn-bindingA.' value=\"`$tmp.aai.vpn-binding.`\" />\n<parameter name='tmp.aai.connectivityA.' value=\"`$tmp.aai.connectivity.`\" />\n",\r
1539         "comments": "",\r
1540         "x": 4407.75,\r
1541         "y": 106.75,\r
1542         "z": "30d84baa.6f57bc",\r
1543         "wires": []\r
1544     },\r
1545     {\r
1546         "id": "be167b48.23b5b",\r
1547         "type": "set",\r
1548         "name": "set vpn-bindingB and connectivityB",\r
1549         "xml": "<set>\n<parameter name='tmp.aai.vpn-bindingB.' value=\"`$tmp.aai.vpn-binding.`\" />\n<parameter name='tmp.aai.connectivityB.' value=\"`$tmp.aai.connectivity.`\" />\n\n",\r
1550         "comments": "",\r
1551         "x": 3815.75,\r
1552         "y": 1565.75,\r
1553         "z": "30d84baa.6f57bc",\r
1554         "wires": []\r
1555     },\r
1556     {\r
1557         "id": "65804ebf.2b9b08",\r
1558         "type": "block",\r
1559         "name": "block : atomic",\r
1560         "xml": "<block atomic=\"true\">",\r
1561         "atomic": "true",\r
1562         "comments": "",\r
1563         "outputs": 1,\r
1564         "x": 4098.75,\r
1565         "y": 363.75,\r
1566         "z": "30d84baa.6f57bc",\r
1567         "wires": [\r
1568             [\r
1569                 "72ddf5d3.8c5f4c",\r
1570                 "7d98821b.e6839c",\r
1571                 "d8047beb.a120a",\r
1572                 "c0003a50.a00b1",\r
1573                 "d1f1dcb6.1fec3",\r
1574                 "251b183d.cbc77",\r
1575                 "c978ce8f.5eb918"\r
1576             ]\r
1577         ]\r
1578     },\r
1579     {\r
1580         "id": "4eef4aff.e3dcc4",\r
1581         "type": "block",\r
1582         "name": "block : atomic",\r
1583         "xml": "<block atomic=\"true\">",\r
1584         "atomic": "true",\r
1585         "outputs": 1,\r
1586         "x": 3531.75,\r
1587         "y": 1951.75,\r
1588         "z": "30d84baa.6f57bc",\r
1589         "wires": [\r
1590             [\r
1591                 "be167b48.23b5b",\r
1592                 "97981e3f.7665d",\r
1593                 "ace90237.5528b8",\r
1594                 "e4aaac37.9b5738",\r
1595                 "1bef475b.0876b9",\r
1596                 "8a69ea43.cdd878",\r
1597                 "bacb99d3.7d15e8"\r
1598             ]\r
1599         ]\r
1600     },\r
1601     {\r
1602         "id": "8a69ea43.cdd878",\r
1603         "type": "set",\r
1604         "name": "set sotn_value",\r
1605         "xml": "<set>\n<!--<parameter name='eth-service-name' value='`$tmp.aai.connectivityB.connectivity-id`' />-->\n<parameter name='eth-service-name' value='`$tmp.aai.connectivityB.etht-svc-name`' />\n<parameter name='slice-id' value='`$vnf-topology-operation-input.service-information.service-instance-id`' />\n<parameter name='provider-id' value='`$tmp.aai.connectivityB.access-provider-id`' />\n<parameter name='client-id' value='`$tmp.aai.connectivityB.access-client-id`' />\n<parameter name='topology-id' value='`$tmp.aai.connectivityB.access-topology-id`' />\n<parameter name='otn-tunnel-name' value='`$tmp.aai.vpn-bindingB.vpn-name`' />\n<parameter name='ethernet-end-point-name' value='`$tmp.aai.connectivityB.connectivity-id`' />\n<parameter name='index-number' value='0' />\n<parameter name='eth-node-id' value='`$tmp.aai.connectivityB.access-node-id`' />\n<parameter name='eth-node-tp-id' value='`$tmp.aai.connectivityB.access-ltp-id`' />\n<parameter name='CIR' value='`$tmp.aai.vpn-bindingB.route-distinguisher *1000000`' />\n<parameter name='EIR' value='`$tmp.aai.vpn-bindingB.route-distinguisher *1000000`' />\n<parameter name='cvlan' value='`$tmp.aai.connectivityB.cvlan`' />\n\n",\r
1606         "comments": "",\r
1607         "x": 3760.75,\r
1608         "y": 2094.75,\r
1609         "z": "30d84baa.6f57bc",\r
1610         "wires": []\r
1611     },\r
1612     {\r
1613         "id": "bacb99d3.7d15e8",\r
1614         "type": "execute",\r
1615         "name": "execute RestApiCallNode Create ethernet Service without token",\r
1616         "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"templateFileName\" value=\"`$prop.restapi.templateDir + '/' + $prop.restapi.ts-ethernet-service.templatefile`\" />\n<parameter name=\"restapiUrl\" value=\"`$prop.sdncRestApi.thirdpartySdnc.domainB.url + '/restconf/data/ietf-eth-tran-service:etht-svc'`\" />\n<!--<parameter name=\"restapiUrl\" value=\"`$prop.restapi.connection-oof-url`\" />-->\n<parameter name=\"restapiUser\" value=\"`$prop.sdncRestApi.thirdpartySdnc.domainB.user`\" />\n<parameter name=\"restapiPassword\" value=\"`$prop.sdncRestApi.thirdpartySdnc.domainB.password`\" />\n<parameter name=\"format\" value=\"json\"/>\n<parameter name=\"httpMethod\" value=\"patch\"/>\n<parameter name='dirPath' value=\"/opt/onap/sdnc/restconfapi/yang\" />\n<parameter name=\"responsePrefix\" value=\"vpn-result\"/>\n<parameter name=\"trustStoreFileName\" value=\"/opt/onap/sdnc/data/stores/truststore.onap.client.jks\"/>\n<parameter name=\"trustStorePassword\" value=\"adminadmin\"/>\n<parameter name=\"keyStoreFileName\" value=\"/opt/onap/sdnc/data/stores/sdnc.p12\"/>\n<parameter name=\"keyStorePassword\" value=\"adminadmin\"/>\n",\r
1617         "comments": "",\r
1618         "outputs": 1,\r
1619         "x": 3914.75,\r
1620         "y": 2142.75,\r
1621         "z": "30d84baa.6f57bc",\r
1622         "wires": [\r
1623             [\r
1624                 "17e90060.f79b78",\r
1625                 "52bf852c.fdb45c"\r
1626             ]\r
1627         ]\r
1628     },\r
1629     {\r
1630         "id": "17e90060.f79b78",\r
1631         "type": "failure",\r
1632         "name": "failure",\r
1633         "xml": "<outcome value='failure'>\n",\r
1634         "comments": "",\r
1635         "outputs": 1,\r
1636         "x": 4260.25,\r
1637         "y": 2123.75,\r
1638         "z": "30d84baa.6f57bc",\r
1639         "wires": [\r
1640             [\r
1641                 "ea0fe23c.016da8"\r
1642             ]\r
1643         ]\r
1644     },\r
1645     {\r
1646         "id": "52bf852c.fdb45c",\r
1647         "type": "success",\r
1648         "name": "success",\r
1649         "xml": "<outcome value='success'>\n",\r
1650         "comments": "",\r
1651         "outputs": 1,\r
1652         "x": 4264.25,\r
1653         "y": 2163.75,\r
1654         "z": "30d84baa.6f57bc",\r
1655         "wires": [\r
1656             [\r
1657                 "e4c3d59d.96b0f8"\r
1658             ]\r
1659         ]\r
1660     },\r
1661     {\r
1662         "id": "ea0fe23c.016da8",\r
1663         "type": "returnFailure",\r
1664         "name": "return failure",\r
1665         "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n    <parameter name=\"error-message\" value=\"Error executing Create ethernet service rest api\" />\n",\r
1666         "comments": "",\r
1667         "x": 4418.25,\r
1668         "y": 2123.75,\r
1669         "z": "30d84baa.6f57bc",\r
1670         "wires": []\r
1671     },\r
1672     {\r
1673         "id": "e4c3d59d.96b0f8",\r
1674         "type": "block",\r
1675         "name": "block : atomic",\r
1676         "xml": "<block atomic=\"true\">",\r
1677         "atomic": "true",\r
1678         "comments": "",\r
1679         "outputs": 1,\r
1680         "x": 4421.75,\r
1681         "y": 2163.75,\r
1682         "z": "30d84baa.6f57bc",\r
1683         "wires": [\r
1684             [\r
1685                 "22d7dd70.1841ea",\r
1686                 "3dfc3096.80b288",\r
1687                 "d67d1410.76b2b8"\r
1688             ]\r
1689         ]\r
1690     },\r
1691     {\r
1692         "id": "d5f7c980.553e1",\r
1693         "type": "comment",\r
1694         "name": "TODO: FIXME:",\r
1695         "info": "put proper values based on connectivity resource retrieved from AAI",\r
1696         "comments": "",\r
1697         "x": 3758.25,\r
1698         "y": 2050.75,\r
1699         "z": "30d84baa.6f57bc",\r
1700         "wires": []\r
1701     },\r
1702     {\r
1703         "id": "22d7dd70.1841ea",\r
1704         "type": "save",\r
1705         "name": "update vpn-binding B resource (aka. OTN domainB) in AAI",\r
1706         "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
1707         "comments": "",\r
1708         "outputs": 1,\r
1709         "x": 4761.75,\r
1710         "y": 2162.75,\r
1711         "z": "30d84baa.6f57bc",\r
1712         "wires": [\r
1713             []\r
1714         ]\r
1715     },\r
1716     {\r
1717         "id": "e6c0853.c278578",\r
1718         "type": "comment",\r
1719         "name": "TODO: FIXME",\r
1720         "info": "use proper vpn-binding id and connectivity\n\nAlso, does CCSDK support \"update\" operation for vpn-binding and connectivity?",\r
1721         "comments": "",\r
1722         "x": 4619.75,\r
1723         "y": 2120.75,\r
1724         "z": "30d84baa.6f57bc",\r
1725         "wires": []\r
1726     },\r
1727     {\r
1728         "id": "3dfc3096.80b288",\r
1729         "type": "save",\r
1730         "name": "update connectivity resource in AAI",\r
1731         "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
1732         "comments": "",\r
1733         "outputs": 1,\r
1734         "x": 4690.75,\r
1735         "y": 2211.75,\r
1736         "z": "30d84baa.6f57bc",\r
1737         "wires": [\r
1738             []\r
1739         ]\r
1740     },\r
1741     {\r
1742         "id": "d6d9459c.52e34",\r
1743         "type": "set",\r
1744         "name": "set attachment_param (gfp-n) for OTN",\r
1745         "xml": "<set>\n<parameter name='gfp-n' value='`$tmp.aai.vpn-binding.route-distinguisher`' />\n",\r
1746         "comments": "",\r
1747         "x": 3324.75,\r
1748         "y": 634.75,\r
1749         "z": "30d84baa.6f57bc",\r
1750         "wires": []\r
1751     },\r
1752     {\r
1753         "id": "eec13dad.1221b",\r
1754         "type": "set",\r
1755         "name": "unset tmp.aai.vpn-binding",\r
1756         "xml": "<set>\n<parameter name='tmp.aai.vpn-binding.' value='' />\n",\r
1757         "comments": "",\r
1758         "x": 2958.75,\r
1759         "y": 282.75,\r
1760         "z": "30d84baa.6f57bc",\r
1761         "wires": []\r
1762     },\r
1763     {\r
1764         "id": "6859175e.358ec8",\r
1765         "type": "comment",\r
1766         "name": "only dst ttp exists. No src",\r
1767         "info": "",\r
1768         "comments": "",\r
1769         "x": 3919.75,\r
1770         "y": 320.75,\r
1771         "z": "30d84baa.6f57bc",\r
1772         "wires": []\r
1773     },\r
1774     {\r
1775         "id": "cf1e5b9b.e9493",\r
1776         "type": "comment",\r
1777         "name": "only src ttp exists. No dst",\r
1778         "info": "",\r
1779         "comments": "",\r
1780         "x": 3476.75,\r
1781         "y": 1898.75,\r
1782         "z": "30d84baa.6f57bc",\r
1783         "wires": []\r
1784     },\r
1785     {\r
1786         "id": "d8995170.21ddb",\r
1787         "type": "switchNode",\r
1788         "name": "switch vpn-binding has src-access-ltp",\r
1789         "xml": "<switch test='`$tmp.aai.vpn-binding.src-access-ltp-id`'>\n",\r
1790         "comments": "",\r
1791         "outputs": 1,\r
1792         "x": 3655.75,\r
1793         "y": 482.75,\r
1794         "z": "30d84baa.6f57bc",\r
1795         "wires": [\r
1796             [\r
1797                 "f7ea2bd8.a0e408",\r
1798                 "d911a9d9.6b12a8"\r
1799             ]\r
1800         ]\r
1801     },\r
1802     {\r
1803         "id": "d911a9d9.6b12a8",\r
1804         "type": "other",\r
1805         "name": "other",\r
1806         "xml": "<outcome value='Other'>\n",\r
1807         "comments": "",\r
1808         "outputs": 1,\r
1809         "x": 3897.75,\r
1810         "y": 1071.75,\r
1811         "z": "30d84baa.6f57bc",\r
1812         "wires": [\r
1813             [\r
1814                 "60ce8d2.37a5f74"\r
1815             ]\r
1816         ]\r
1817     },\r
1818     {\r
1819         "id": "f7ea2bd8.a0e408",\r
1820         "type": "outcome",\r
1821         "name": "Null",\r
1822         "xml": "<outcome value=''>\n",\r
1823         "comments": "",\r
1824         "outputs": 1,\r
1825         "x": 3891.75,\r
1826         "y": 362.75,\r
1827         "z": "30d84baa.6f57bc",\r
1828         "wires": [\r
1829             [\r
1830                 "65804ebf.2b9b08"\r
1831             ]\r
1832         ]\r
1833     },\r
1834     {\r
1835         "id": "60ce8d2.37a5f74",\r
1836         "type": "block",\r
1837         "name": "block : atomic",\r
1838         "xml": "<block atomic=\"true\">",\r
1839         "atomic": "true",\r
1840         "outputs": 1,\r
1841         "x": 4055.75,\r
1842         "y": 1070.75,\r
1843         "z": "30d84baa.6f57bc",\r
1844         "wires": [\r
1845             [\r
1846                 "250c851.82c85fa",\r
1847                 "3a8c3466.1fa784",\r
1848                 "44e0a0bb.d00d2",\r
1849                 "17d8e4eb.b52ccb",\r
1850                 "dd94b2c2.353ff8"\r
1851             ]\r
1852         ]\r
1853     },\r
1854     {\r
1855         "id": "3a8c3466.1fa784",\r
1856         "type": "set",\r
1857         "name": "set attachment_param for OTN G",\r
1858         "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
1859         "comments": "",\r
1860         "x": 4319.75,\r
1861         "y": 953.75,\r
1862         "z": "30d84baa.6f57bc",\r
1863         "wires": []\r
1864     },\r
1865     {\r
1866         "id": "dd94b2c2.353ff8",\r
1867         "type": "execute",\r
1868         "name": "execute RestApiCallNode Create OTN tunnel with token",\r
1869         "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
1870         "comments": "",\r
1871         "outputs": 1,\r
1872         "x": 4400.75,\r
1873         "y": 1268.75,\r
1874         "z": "30d84baa.6f57bc",\r
1875         "wires": [\r
1876             [\r
1877                 "d78a59cb.d6e7a",\r
1878                 "667608aa.9739d"\r
1879             ]\r
1880         ]\r
1881     },\r
1882     {\r
1883         "id": "d78a59cb.d6e7a",\r
1884         "type": "failure",\r
1885         "name": "failure",\r
1886         "xml": "<outcome value='failure'>\n",\r
1887         "comments": "",\r
1888         "outputs": 1,\r
1889         "x": 4710.25,\r
1890         "y": 1237.75,\r
1891         "z": "30d84baa.6f57bc",\r
1892         "wires": [\r
1893             [\r
1894                 "790b52bf.2108ec"\r
1895             ]\r
1896         ]\r
1897     },\r
1898     {\r
1899         "id": "667608aa.9739d",\r
1900         "type": "success",\r
1901         "name": "success",\r
1902         "xml": "<outcome value='success'>\n",\r
1903         "comments": "",\r
1904         "outputs": 1,\r
1905         "x": 4715.25,\r
1906         "y": 1302.75,\r
1907         "z": "30d84baa.6f57bc",\r
1908         "wires": [\r
1909             [\r
1910                 "5fb9f65f.6d5da"\r
1911             ]\r
1912         ]\r
1913     },\r
1914     {\r
1915         "id": "790b52bf.2108ec",\r
1916         "type": "returnFailure",\r
1917         "name": "return failure",\r
1918         "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
1919         "comments": "",\r
1920         "x": 4886.25,\r
1921         "y": 1237.75,\r
1922         "z": "30d84baa.6f57bc",\r
1923         "wires": []\r
1924     },\r
1925     {\r
1926         "id": "5fb9f65f.6d5da",\r
1927         "type": "block",\r
1928         "name": "block : atomic",\r
1929         "xml": "<block atomic=\"true\">",\r
1930         "atomic": "true",\r
1931         "comments": "",\r
1932         "outputs": 1,\r
1933         "x": 4881.75,\r
1934         "y": 1302.75,\r
1935         "z": "30d84baa.6f57bc",\r
1936         "wires": [\r
1937             []\r
1938         ]\r
1939     },\r
1940     {\r
1941         "id": "44e0a0bb.d00d2",\r
1942         "type": "set",\r
1943         "name": "set pnf-name",\r
1944         "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
1945         "comments": "",\r
1946         "x": 4257.75,\r
1947         "y": 1001.75,\r
1948         "z": "30d84baa.6f57bc",\r
1949         "wires": []\r
1950     },\r
1951     {\r
1952         "id": "17d8e4eb.b52ccb",\r
1953         "type": "get-resource",\r
1954         "name": "get-resource src pnf",\r
1955         "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
1956         "comments": "",\r
1957         "outputs": 1,\r
1958         "x": 4283.75,\r
1959         "y": 1118.75,\r
1960         "z": "30d84baa.6f57bc",\r
1961         "wires": [\r
1962             [\r
1963                 "a8ae3ef3.33406",\r
1964                 "fcb06d11.9b839",\r
1965                 "1567721b.17fbc6"\r
1966             ]\r
1967         ]\r
1968     },\r
1969     {\r
1970         "id": "a8ae3ef3.33406",\r
1971         "type": "success",\r
1972         "name": "success",\r
1973         "xml": "<outcome value='success'>\n",\r
1974         "comments": "",\r
1975         "outputs": 1,\r
1976         "x": 4479.2501220703125,\r
1977         "y": 1070.75,\r
1978         "z": "30d84baa.6f57bc",\r
1979         "wires": [\r
1980             [\r
1981                 "dc6575fd.da6538"\r
1982             ]\r
1983         ]\r
1984     },\r
1985     {\r
1986         "id": "fcb06d11.9b839",\r
1987         "type": "not-found",\r
1988         "name": "not-found",\r
1989         "xml": "<outcome value='not-found'>\n",\r
1990         "comments": "",\r
1991         "outputs": 1,\r
1992         "x": 4471.2501220703125,\r
1993         "y": 1125.75,\r
1994         "z": "30d84baa.6f57bc",\r
1995         "wires": [\r
1996             [\r
1997                 "9508c711.df3318"\r
1998             ]\r
1999         ]\r
2000     },\r
2001     {\r
2002         "id": "dc6575fd.da6538",\r
2003         "type": "block",\r
2004         "name": "block",\r
2005         "xml": "<block>\n",\r
2006         "atomic": "false",\r
2007         "comments": "",\r
2008         "outputs": 1,\r
2009         "x": 4623.6324462890625,\r
2010         "y": 1070.4056701660156,\r
2011         "z": "30d84baa.6f57bc",\r
2012         "wires": [\r
2013             [\r
2014                 "5887f01d.382f28"\r
2015             ]\r
2016         ]\r
2017     },\r
2018     {\r
2019         "id": "5887f01d.382f28",\r
2020         "type": "for",\r
2021         "name": "for each relationship",\r
2022         "xml": "<for silentFailure='true' index='spvidx' start='0' end='`$tmp.aai.domainG-pnf.relationship-list.relationship_length`' >\n",\r
2023         "comments": "",\r
2024         "outputs": 1,\r
2025         "x": 4807.75,\r
2026         "y": 1068.75,\r
2027         "z": "30d84baa.6f57bc",\r
2028         "wires": [\r
2029             [\r
2030                 "7c993206.50f554"\r
2031             ]\r
2032         ]\r
2033     },\r
2034     {\r
2035         "id": "7c993206.50f554",\r
2036         "type": "switchNode",\r
2037         "name": "switch related-to",\r
2038         "xml": "<switch test='`$tmp.aai.domainG-pnf.relationship-list.relationship[$spvidx].related-to`'>\n",\r
2039         "comments": "",\r
2040         "outputs": 1,\r
2041         "x": 5002.75,\r
2042         "y": 1068.75,\r
2043         "z": "30d84baa.6f57bc",\r
2044         "wires": [\r
2045             [\r
2046                 "f4906a1c.c87a88"\r
2047             ]\r
2048         ]\r
2049     },\r
2050     {\r
2051         "id": "1567721b.17fbc6",\r
2052         "type": "other",\r
2053         "name": "other",\r
2054         "xml": "<outcome value='Other'>\n",\r
2055         "comments": "",\r
2056         "outputs": 1,\r
2057         "x": 4476.2501220703125,\r
2058         "y": 1182.75,\r
2059         "z": "30d84baa.6f57bc",\r
2060         "wires": [\r
2061             [\r
2062                 "9c97fc0c.fac84"\r
2063             ]\r
2064         ]\r
2065     },\r
2066     {\r
2067         "id": "9c97fc0c.fac84",\r
2068         "type": "returnFailure",\r
2069         "name": "return failure",\r
2070         "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
2071         "comments": "",\r
2072         "x": 4628.2501220703125,\r
2073         "y": 1183.75,\r
2074         "z": "30d84baa.6f57bc",\r
2075         "wires": []\r
2076     },\r
2077     {\r
2078         "id": "9508c711.df3318",\r
2079         "type": "returnFailure",\r
2080         "name": "return failure",\r
2081         "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
2082         "comments": "",\r
2083         "x": 4639.2501220703125,\r
2084         "y": 1126.75,\r
2085         "z": "30d84baa.6f57bc",\r
2086         "wires": []\r
2087     },\r
2088     {\r
2089         "id": "250c851.82c85fa",\r
2090         "type": "set",\r
2091         "name": "set vpn-bindingG and connectivityG",\r
2092         "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
2093         "comments": "",\r
2094         "x": 4314.75,\r
2095         "y": 893.75,\r
2096         "z": "30d84baa.6f57bc",\r
2097         "wires": []\r
2098     },\r
2099     {\r
2100         "id": "f4906a1c.c87a88",\r
2101         "type": "outcome",\r
2102         "name": "esr-thirdparty-sdnc",\r
2103         "xml": "<outcome value='esr-thirdparty-sdnc'>\n",\r
2104         "comments": "",\r
2105         "outputs": 1,\r
2106         "x": 5205.75,\r
2107         "y": 1072.75,\r
2108         "z": "30d84baa.6f57bc",\r
2109         "wires": [\r
2110             [\r
2111                 "f2ceb67e.1c0c"\r
2112             ]\r
2113         ]\r
2114     },\r
2115     {\r
2116         "id": "d6942a62.437338",\r
2117         "type": "execute",\r
2118         "name": "get esr-thirdparty-sdnc",\r
2119         "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
2120         "comments": "",\r
2121         "outputs": 1,\r
2122         "x": 5590.75,\r
2123         "y": 1085.75,\r
2124         "z": "30d84baa.6f57bc",\r
2125         "wires": [\r
2126             [\r
2127                 "2bfb5437.ab1884",\r
2128                 "14e65a71.083eb6",\r
2129                 "1ec347c1.300068"\r
2130             ]\r
2131         ]\r
2132     },\r
2133     {\r
2134         "id": "f2ceb67e.1c0c",\r
2135         "type": "block",\r
2136         "name": "block : atomic",\r
2137         "xml": "<block atomic=\"true\">",\r
2138         "atomic": "true",\r
2139         "outputs": 1,\r
2140         "x": 5384.75,\r
2141         "y": 1072.75,\r
2142         "z": "30d84baa.6f57bc",\r
2143         "wires": [\r
2144             [\r
2145                 "e257c8b7.b2bd68",\r
2146                 "d6942a62.437338"\r
2147             ]\r
2148         ]\r
2149     },\r
2150     {\r
2151         "id": "e257c8b7.b2bd68",\r
2152         "type": "set",\r
2153         "name": "set esr-thirdparty-sdnc domainG id",\r
2154         "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
2155         "comments": "",\r
2156         "x": 5620.75,\r
2157         "y": 1033.75,\r
2158         "z": "30d84baa.6f57bc",\r
2159         "wires": []\r
2160     },\r
2161     {\r
2162         "id": "2bfb5437.ab1884",\r
2163         "type": "success",\r
2164         "name": "success",\r
2165         "xml": "<outcome value='success'>\n",\r
2166         "comments": "",\r
2167         "outputs": 1,\r
2168         "x": 5800.75,\r
2169         "y": 1076.75,\r
2170         "z": "30d84baa.6f57bc",\r
2171         "wires": [\r
2172             [\r
2173                 "c27aaf5c.aef2b8"\r
2174             ]\r
2175         ]\r
2176     },\r
2177     {\r
2178         "id": "14e65a71.083eb6",\r
2179         "type": "not-found",\r
2180         "name": "not-found",\r
2181         "xml": "<outcome value='not-found'>\n",\r
2182         "comments": "",\r
2183         "outputs": 1,\r
2184         "x": 5792.75,\r
2185         "y": 1131.75,\r
2186         "z": "30d84baa.6f57bc",\r
2187         "wires": [\r
2188             [\r
2189                 "d07e83df.f79d38"\r
2190             ]\r
2191         ]\r
2192     },\r
2193     {\r
2194         "id": "1ec347c1.300068",\r
2195         "type": "other",\r
2196         "name": "other",\r
2197         "xml": "<outcome value='Other'>\n",\r
2198         "comments": "",\r
2199         "outputs": 1,\r
2200         "x": 5797.75,\r
2201         "y": 1188.75,\r
2202         "z": "30d84baa.6f57bc",\r
2203         "wires": [\r
2204             [\r
2205                 "d1674575.d6f7d8"\r
2206             ]\r
2207         ]\r
2208     },\r
2209     {\r
2210         "id": "d1674575.d6f7d8",\r
2211         "type": "returnFailure",\r
2212         "name": "return failure",\r
2213         "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
2214         "comments": "",\r
2215         "x": 5949.75,\r
2216         "y": 1189.75,\r
2217         "z": "30d84baa.6f57bc",\r
2218         "wires": []\r
2219     },\r
2220     {\r
2221         "id": "d07e83df.f79d38",\r
2222         "type": "returnFailure",\r
2223         "name": "return failure",\r
2224         "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
2225         "comments": "",\r
2226         "x": 5960.75,\r
2227         "y": 1134.75,\r
2228         "z": "30d84baa.6f57bc",\r
2229         "wires": []\r
2230     },\r
2231     {\r
2232         "id": "c27aaf5c.aef2b8",\r
2233         "type": "block",\r
2234         "name": "block",\r
2235         "xml": "<block>\n",\r
2236         "atomic": "false",\r
2237         "comments": "",\r
2238         "outputs": 1,\r
2239         "x": 5945.13232421875,\r
2240         "y": 1074.4056701660156,\r
2241         "z": "30d84baa.6f57bc",\r
2242         "wires": [\r
2243             [\r
2244                 "1298a74.3cdd059"\r
2245             ]\r
2246         ]\r
2247     },\r
2248     {\r
2249         "id": "1298a74.3cdd059",\r
2250         "type": "set",\r
2251         "name": "set controller domainG data",\r
2252         "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
2253         "comments": "",\r
2254         "x": 6159.75,\r
2255         "y": 1070.75,\r
2256         "z": "30d84baa.6f57bc",\r
2257         "wires": []\r
2258     },\r
2259     {\r
2260         "id": "8ad3b61d.5ba128",\r
2261         "type": "comment",\r
2262         "name": "both src and dst exist",\r
2263         "info": "",\r
2264         "comments": "",\r
2265         "x": 3933.75,\r
2266         "y": 1011.75,\r
2267         "z": "30d84baa.6f57bc",\r
2268         "wires": []\r
2269     },\r
2270     {\r
2271         "id": "52401003.e54ba8",\r
2272         "type": "switchNode",\r
2273         "name": "switch vpn-binding is not already Activated (i.e. is either Created or Modified)",\r
2274         "xml": "<switch test=\"`$tmp.aai.vpn-binding.operational-status != 'Activated' `\">\n",\r
2275         "comments": "",\r
2276         "outputs": 1,\r
2277         "x": 2495.75,\r
2278         "y": 738.75,\r
2279         "z": "30d84baa.6f57bc",\r
2280         "wires": [\r
2281             [\r
2282                 "84b154c7.dcfaf",\r
2283                 "d81b7512.e15008"\r
2284             ]\r
2285         ]\r
2286     },\r
2287     {\r
2288         "id": "d81b7512.e15008",\r
2289         "type": "outcomeFalse",\r
2290         "name": "false",\r
2291         "xml": "<outcome value='false'>\n",\r
2292         "comments": "",\r
2293         "outputs": 1,\r
2294         "x": 2902.75,\r
2295         "y": 756.75,\r
2296         "z": "30d84baa.6f57bc",\r
2297         "wires": [\r
2298             [\r
2299                 "cf7d3373.5ca978"\r
2300             ]\r
2301         ]\r
2302     },\r
2303     {\r
2304         "id": "84b154c7.dcfaf",\r
2305         "type": "outcomeTrue",\r
2306         "name": "true",\r
2307         "xml": "<outcome value='true'>\n",\r
2308         "comments": "",\r
2309         "outputs": 1,\r
2310         "x": 2902.75,\r
2311         "y": 701.75,\r
2312         "z": "30d84baa.6f57bc",\r
2313         "wires": [\r
2314             [\r
2315                 "37e2ea9b.dd967e"\r
2316             ]\r
2317         ]\r
2318     },\r
2319     {\r
2320         "id": "37e2ea9b.dd967e",\r
2321         "type": "block",\r
2322         "name": "block : atomic",\r
2323         "xml": "<block atomic=\"true\">",\r
2324         "atomic": "true",\r
2325         "outputs": 1,\r
2326         "x": 3058.75,\r
2327         "y": 699.75,\r
2328         "z": "30d84baa.6f57bc",\r
2329         "wires": [\r
2330             [\r
2331                 "d6d9459c.52e34",\r
2332                 "ae8dd7ac.9cc1d"\r
2333             ]\r
2334         ]\r
2335     },\r
2336     {\r
2337         "id": "cf7d3373.5ca978",\r
2338         "type": "block",\r
2339         "name": "block",\r
2340         "xml": "<block>",\r
2341         "atomic": "false",\r
2342         "comments": "",\r
2343         "outputs": 1,\r
2344         "x": 3035.75,\r
2345         "y": 757.75,\r
2346         "z": "30d84baa.6f57bc",\r
2347         "wires": [\r
2348             []\r
2349         ]\r
2350     },\r
2351     {\r
2352         "id": "677bc6cc.c2278",\r
2353         "type": "save",\r
2354         "name": "update service-instance resource in AAI",\r
2355         "xml": "<update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='service-instance' \n      key='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<parameter name='service-instance-id' value='`$tmp.aai.service-instance.service-instance-id`' />\n<parameter name='orchestration-status' value='Activated' />\n",\r
2356         "comments": "",\r
2357         "outputs": 1,\r
2358         "x": 5298.5,\r
2359         "y": 810.25,\r
2360         "z": "30d84baa.6f57bc",\r
2361         "wires": [\r
2362             []\r
2363         ]\r
2364     },\r
2365     {\r
2366         "id": "d67d1410.76b2b8",\r
2367         "type": "save",\r
2368         "name": "update service-instance resource in AAI",\r
2369         "xml": "<update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='service-instance' \n      key='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<parameter name='service-instance-id' value='`$tmp.aai.service-instance.service-instance-id`' />\n<parameter name='orchestration-status' value='Activated' />\n",\r
2370         "comments": "",\r
2371         "outputs": 1,\r
2372         "x": 4710.25,\r
2373         "y": 2278,\r
2374         "z": "30d84baa.6f57bc",\r
2375         "wires": [\r
2376             []\r
2377         ]\r
2378     }\r
2379 ]