Fix tunnelxconn assign issues
[sdnc/oam.git] / platform-logic / generic-resource-api / src / main / json / GENERIC-RESOURCE-API_network-topology-operation-delete.json
1 [
2   {
3     "id": "d563afb0.056168",
4     "type": "dgstart",
5     "name": "DGSTART",
6     "outputs": 1,
7     "x": 92,
8     "y": 121.33333587646484,
9     "z": "89eca582.be817",
10     "wires": [
11       [
12         "f7c87a2f.fb9cf"
13       ]
14     ]
15   },
16   {
17     "id": "f7c87a2f.fb9cf",
18     "type": "service-logic",
19     "name": "GENERIC-RESOURCE-API ${project.version}",
20     "module": "GENERIC-RESOURCE-API",
21     "version": "${project.version}",
22     "comments": "",
23     "xml": "<service-logic xmlns='http://www.onap.org/sdnc/svclogic' xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xsi:schemaLocation='http://www.onap.org/sdnc/svclogic ./svclogic.xsd' module='GENERIC-RESOURCE-API' version='${project.version}'>",
24     "outputs": 1,
25     "x": 304.00000381469727,
26     "y": 193.33335304260254,
27     "z": "89eca582.be817",
28     "wires": [
29       [
30         "37f24cdb.d75cb4"
31       ]
32     ]
33   },
34   {
35     "id": "37f24cdb.d75cb4",
36     "type": "method",
37     "name": "method network-topology-operation-delete",
38     "xml": "<method rpc='network-topology-operation-delete' mode='sync'>\n",
39     "comments": "",
40     "outputs": 1,
41     "x": 292.0001220703125,
42     "y": 281.33333587646484,
43     "z": "89eca582.be817",
44     "wires": [
45       [
46         "968f84c1.36e27"
47       ]
48     ]
49   },
50   {
51     "id": "968f84c1.36e27",
52     "type": "block",
53     "name": "block : atomic",
54     "xml": "<block atomic=\"true\">\n",
55     "atomic": "false",
56     "comments": "",
57     "outputs": 1,
58     "x": 568.0000305175781,
59     "y": 289.3333492279053,
60     "z": "89eca582.be817",
61     "wires": [
62       [
63         "ae3d965a.4a7378",
64         "b83c4e05.5eb538",
65         "fc04e5a4.52eb5",
66         "a964f2cc.8cf37",
67         "92a504dc.ec13d8",
68         "229c0a0d.36236e",
69         "5b36b323.b34d7c",
70         "6331818b.c6bfc",
71         "e6735147.08a6d8"
72       ]
73     ]
74   },
75   {
76     "id": "ae3d965a.4a7378",
77     "type": "call",
78     "name": "call GENERIC-RESOURCE-API:validate-network-input-parameters",
79     "xml": "<call module='GENERIC-RESOURCE-API' rpc='validate-network-input-parameters' mode='sync' >\n",
80     "comments": "",
81     "outputs": 1,
82     "x": 889,
83     "y": 72.33333587646484,
84     "z": "89eca582.be817",
85     "wires": [
86       []
87     ]
88   },
89   {
90     "id": "b83c4e05.5eb538",
91     "type": "get-resource",
92     "name": "get-resource esr-thirdparty-sdnc",
93     "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.thirdparty-sdnc-id AND \n\t\t     depth = '1'\"\n        pfx='tmp.aai.esr-thirdparty-sdnc' local-only='false' >\n\n",
94     "comments": "",
95     "outputs": 1,
96     "x": 833,
97     "y": 517.3333053588867,
98     "z": "89eca582.be817",
99     "wires": [
100       [
101         "3ddcae6d.d600c2",
102         "8879d867.b4938",
103         "24d0dda7.8f860a"
104       ]
105     ]
106   },
107   {
108     "id": "3ddcae6d.d600c2",
109     "type": "success",
110     "name": "success",
111     "xml": "<outcome value='success'>\n",
112     "comments": "",
113     "outputs": 1,
114     "x": 1071,
115     "y": 473.33333587646484,
116     "z": "89eca582.be817",
117     "wires": [
118       [
119         "2875c9d1.a679ce"
120       ]
121     ]
122   },
123   {
124     "id": "8879d867.b4938",
125     "type": "not-found",
126     "name": "not-found",
127     "xml": "<outcome value='not-found'>\n",
128     "comments": "",
129     "outputs": 1,
130     "x": 1075.490966796875,
131     "y": 514.9074020385742,
132     "z": "89eca582.be817",
133     "wires": [
134       [
135         "2fdf1df8.d37b9a"
136       ]
137     ]
138   },
139   {
140     "id": "24d0dda7.8f860a",
141     "type": "other",
142     "name": "other",
143     "xml": "<outcome value='Other'>\n",
144     "comments": "",
145     "outputs": 1,
146     "x": 1068.823974609375,
147     "y": 566.2406539916992,
148     "z": "89eca582.be817",
149     "wires": [
150       [
151         "d6d9101d.068098"
152       ]
153     ]
154   },
155   {
156     "id": "2fdf1df8.d37b9a",
157     "type": "returnFailure",
158     "name": "return failure",
159     "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=\"Network model is_bound_to_vpn=true but no vpn_binding is present\" />\n\n",
160     "comments": "",
161     "x": 1251.0623779296875,
162     "y": 513.1931076049805,
163     "z": "89eca582.be817",
164     "wires": []
165   },
166   {
167     "id": "d6d9101d.068098",
168     "type": "returnFailure",
169     "name": "return failure",
170     "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 retrieving vpn binding\" />\n\n",
171     "comments": "",
172     "x": 1229.5965576171875,
173     "y": 564.6798629760742,
174     "z": "89eca582.be817",
175     "wires": []
176   },
177   {
178     "id": "fc04e5a4.52eb5",
179     "type": "for",
180     "name": "for each network-input-parameters",
181     "xml": "<for index='idx' start='0' end='`$service-data.networks.network[$tmp.nidx].network-data.network-request-input.network-input-parameters.param_length`' >\n",
182     "comments": "",
183     "outputs": 1,
184     "x": 851,
185     "y": 250.33333587646484,
186     "z": "89eca582.be817",
187     "wires": [
188       [
189         "21f32325.9d7694"
190       ]
191     ]
192   },
193   {
194     "id": "21f32325.9d7694",
195     "type": "block",
196     "name": "block",
197     "xml": "<block>\n",
198     "atomic": "false",
199     "comments": "",
200     "outputs": 1,
201     "x": 1132.8333740234375,
202     "y": 228.66667938232422,
203     "z": "89eca582.be817",
204     "wires": [
205       [
206         "15f7b5bc.24b652",
207         "58a03af6.4686fc",
208         "83edb691.4ecc08"
209       ]
210     ]
211   },
212   {
213     "id": "15f7b5bc.24b652",
214     "type": "switchNode",
215     "name": "switch name",
216     "xml": "<switch test=\"`$service-data.networks.network[$tmp.nidx].network-data.network-request-input.network-input-parameters.param[$idx].name == 'name'`\">\n",
217     "comments": "",
218     "outputs": 1,
219     "x": 1341,
220     "y": 189.33333587646484,
221     "z": "89eca582.be817",
222     "wires": [
223       [
224         "57533497.32b74c"
225       ]
226     ]
227   },
228   {
229     "id": "57533497.32b74c",
230     "type": "outcomeTrue",
231     "name": "true",
232     "xml": "<outcome value='true'>\n",
233     "comments": "",
234     "outputs": 1,
235     "x": 1528,
236     "y": 189.33333587646484,
237     "z": "89eca582.be817",
238     "wires": [
239       [
240         "636e0cba.4ad824"
241       ]
242     ]
243   },
244   {
245     "id": "636e0cba.4ad824",
246     "type": "set",
247     "name": "set name",
248     "xml": "<set>\n<parameter name='prop.l3vpn.name' value='`$service-data.networks.network[$tmp.nidx].network-data.network-request-input.network-input-parameters.param[$idx].value`' />\n",
249     "comments": "",
250     "x": 1696,
251     "y": 189.93334197998047,
252     "z": "89eca582.be817",
253     "wires": []
254   },
255   {
256     "id": "58a03af6.4686fc",
257     "type": "switchNode",
258     "name": "switch service-type",
259     "xml": "<switch test=\"`$service-data.networks.network[$tmp.nidx].network-data.network-request-input.network-input-parameters.param[$idx].name == 'service-type'`\">\n",
260     "comments": "",
261     "outputs": 1,
262     "x": 1346,
263     "y": 243.93331146240234,
264     "z": "89eca582.be817",
265     "wires": [
266       [
267         "49b85e52.02df98"
268       ]
269     ]
270   },
271   {
272     "id": "49b85e52.02df98",
273     "type": "outcomeTrue",
274     "name": "true",
275     "xml": "<outcome value='true'>\n",
276     "comments": "",
277     "outputs": 1,
278     "x": 1529.9999389648438,
279     "y": 248.93331146240234,
280     "z": "89eca582.be817",
281     "wires": [
282       [
283         "8bbe0d91.97e45"
284       ]
285     ]
286   },
287   {
288     "id": "8bbe0d91.97e45",
289     "type": "set",
290     "name": "set service-type",
291     "xml": "<set>\n<parameter name='prop.l3vpn.service-type' value='`$service-data.networks.network[$tmp.nidx].network-data.network-request-input.network-input-parameters.param[$idx].value`' />\n",
292     "comments": "",
293     "x": 1698.9999389648438,
294     "y": 246.93331146240234,
295     "z": "89eca582.be817",
296     "wires": []
297   },
298   {
299     "id": "2875c9d1.a679ce",
300     "type": "set",
301     "name": "set controller data",
302     "xml": "<set>\n<parameter name='prop.sdncRestApi.thirdpartySdnc.url' value=\"`$tmp.aai.esr-thirdparty-sdnc.esr-system-info-list.esr-system-info[0].serviceUrl`\" />\n<parameter name='prop.sdncRestApi.templateDir' value='/opt/onap/sdnc/data' />\n<parameter name='prop.sdncRestApi.thirdpartySdnc.user' value=\"`$tmp.aai.esr-thirdparty-sdnc.esr-system-info-list.esr-system-info[0].user-name`\" />\n<parameter name='prop.sdncRestApi.thirdpartySdnc.password' value=\"`$tmp.aai.esr-thirdparty-sdnc.esr-system-info-list.esr-system-info[0].password`\" />\n",
303     "comments": "",
304     "x": 1257,
305     "y": 470.3333053588867,
306     "z": "89eca582.be817",
307     "wires": []
308   },
309   {
310     "id": "e7464274.0f82b8",
311     "type": "execute",
312     "name": "execute REST DELETE VPN",
313     "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"templateFileName\" value=\"`$prop.sdncRestApi.tempDir +'/l3smvpntemplate.json'`\" />\n<parameter name=\"restapiUrl\" value=\"`$prop.sdncRestApi.thirdpartySdnc.url + '/restconf/data/huawei-ac-net-l3vpn-svc:l3vpn-svc-cfg/vpn-services/vpnservice=' + $prop.l3vpn.name`\" />\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=\"delete\"/>\n<parameter name=\"responsePrefix\" value=\"restapi-result\"/>\n<parameter name='customHttpHeaders' value=\"`'X-ACCESS-TOKEN=' + $prop.sdncRestApi.token_id`\" />",
314     "comments": "",
315     "outputs": 1,
316     "x": 1579,
317     "y": 685.3333129882812,
318     "z": "89eca582.be817",
319     "wires": [
320       [
321         "9b0fa013.788a28",
322         "19c42608.424b9a"
323       ]
324     ]
325   },
326   {
327     "id": "a964f2cc.8cf37",
328     "type": "switchNode",
329     "name": "switch service-type",
330     "xml": "<switch test=\"`$prop.l3vpn.service-type`\">\n",
331     "comments": "",
332     "outputs": 1,
333     "x": 792,
334     "y": 621.3333358764648,
335     "z": "89eca582.be817",
336     "wires": [
337       [
338         "93ec2320.02d11"
339       ]
340     ]
341   },
342   {
343     "id": "93ec2320.02d11",
344     "type": "outcomeTrue",
345     "name": "l3vpn-ipwan",
346     "xml": "<outcome value='l3vpn-ipwan'>\n",
347     "comments": "",
348     "outputs": 1,
349     "x": 1049,
350     "y": 622.3333129882812,
351     "z": "89eca582.be817",
352     "wires": [
353       [
354         "4e922d10.8ba70c"
355       ]
356     ]
357   },
358   {
359     "id": "92a504dc.ec13d8",
360     "type": "switchNode",
361     "name": "switch service-data.networks.network_length",
362     "xml": "<switch test='`$service-data.networks.network_length`'>\n",
363     "comments": "",
364     "outputs": 1,
365     "x": 831,
366     "y": 145.33333587646484,
367     "z": "89eca582.be817",
368     "wires": [
369       [
370         "8e028d38.9057d",
371         "c340ac4a.71f85"
372       ]
373     ]
374   },
375   {
376     "id": "8e028d38.9057d",
377     "type": "other",
378     "name": "outcome Null",
379     "xml": "<outcome value=''>\n",
380     "comments": "",
381     "outputs": 1,
382     "x": 1276,
383     "y": 71.3333969116211,
384     "z": "89eca582.be817",
385     "wires": [
386       [
387         "ac7b7cef.c3a35"
388       ]
389     ]
390   },
391   {
392     "id": "ac7b7cef.c3a35",
393     "type": "returnFailure",
394     "name": "return failure",
395     "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=\"network-topology-operation-input.network-request-input.network-id not found in service-data\" />\n",
396     "comments": "",
397     "x": 1466.7774658203125,
398     "y": 58.22234344482422,
399     "z": "89eca582.be817",
400     "wires": []
401   },
402   {
403     "id": "c340ac4a.71f85",
404     "type": "other",
405     "name": "other",
406     "xml": "<outcome value='Other'>\n",
407     "comments": "",
408     "outputs": 1,
409     "x": 1160.0003662109375,
410     "y": 136.33341217041016,
411     "z": "89eca582.be817",
412     "wires": [
413       [
414         "8cbfe4b9.2a2368"
415       ]
416     ]
417   },
418   {
419     "id": "8cbfe4b9.2a2368",
420     "type": "block",
421     "name": "block : atomic",
422     "xml": "<block atomic=\"true\">",
423     "atomic": "true",
424     "outputs": 1,
425     "x": 1331.2698974609375,
426     "y": 119.88794708251953,
427     "z": "89eca582.be817",
428     "wires": [
429       [
430         "7a7f5cb9.3ef364",
431         "89dd7f04.eed92"
432       ]
433     ]
434   },
435   {
436     "id": "7a7f5cb9.3ef364",
437     "type": "for",
438     "name": "for nidx..service-data.networks.network[]",
439     "xml": "<for index='nidx' start='0' end='`$service-data.networks.network_length`' >\n",
440     "comments": "",
441     "outputs": 1,
442     "x": 1629.285888671875,
443     "y": 100.76195526123047,
444     "z": "89eca582.be817",
445     "wires": [
446       [
447         "b49be6d2.09dbc8"
448       ]
449     ]
450   },
451   {
452     "id": "89dd7f04.eed92",
453     "type": "switchNode",
454     "name": "switch tmp.nidx ",
455     "xml": "<switch test=\"`$tmp.nidx`\">\n\n",
456     "comments": "",
457     "outputs": 1,
458     "x": 1550.5872802734375,
459     "y": 143.7451400756836,
460     "z": "89eca582.be817",
461     "wires": [
462       [
463         "ab419b0d.e9521"
464       ]
465     ]
466   },
467   {
468     "id": "ab419b0d.e9521",
469     "type": "outcome",
470     "name": "NULL",
471     "xml": "<outcome value=''>\n",
472     "comments": "",
473     "outputs": 1,
474     "x": 1751.015869140625,
475     "y": 149.3165512084961,
476     "z": "89eca582.be817",
477     "wires": [
478       [
479         "8e89ca22.c1f468"
480       ]
481     ]
482   },
483   {
484     "id": "b49be6d2.09dbc8",
485     "type": "switchNode",
486     "name": "switch networkid found",
487     "xml": "<switch test=\"`$service-data.networks.network[$nidx].network-id == $network-topology-operation-input.network-information.network-id`\">\n\n",
488     "comments": "",
489     "outputs": 1,
490     "x": 1939.7144775390625,
491     "y": 99.01204681396484,
492     "z": "89eca582.be817",
493     "wires": [
494       [
495         "92fa60c6.e61928"
496       ]
497     ]
498   },
499   {
500     "id": "8e89ca22.c1f468",
501     "type": "returnFailure",
502     "name": "return failure",
503     "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=\"network-topology-operation-input.network-request-input.network-id not found in service-data\" />\n",
504     "comments": "",
505     "x": 1922.4443359375,
506     "y": 149.45940399169922,
507     "z": "89eca582.be817",
508     "wires": []
509   },
510   {
511     "id": "92fa60c6.e61928",
512     "type": "outcomeTrue",
513     "name": "true",
514     "xml": "<outcome value='true'>\n",
515     "comments": "",
516     "outputs": 1,
517     "x": 2145.666748046875,
518     "y": 97.90477752685547,
519     "z": "89eca582.be817",
520     "wires": [
521       [
522         "13e93e78.dc98f2"
523       ]
524     ]
525   },
526   {
527     "id": "13e93e78.dc98f2",
528     "type": "set",
529     "name": "set tmp.nidx and ctx.network-data",
530     "xml": "<set>\n<parameter name='tmp.nidx' value='`$nidx`' />\n<parameter name='ctx.network-data.' value='`$service-data.networks.network[$nidx].`' />\n",
531     "comments": "",
532     "x": 2384.198486328125,
533     "y": 93.65477752685547,
534     "z": "89eca582.be817",
535     "wires": []
536   },
537   {
538     "id": "229c0a0d.36236e",
539     "type": "block",
540     "name": "block : saveNetworkData",
541     "xml": "<block atomic=\"true\">",
542     "atomic": "true",
543     "comments": "",
544     "outputs": 1,
545     "x": 810,
546     "y": 711.3333358764648,
547     "z": "89eca582.be817",
548     "wires": [
549       [
550         "2f2a571f.f701d8",
551         "ad0ac3a3.801d88",
552         "3a891d55.fcf27a",
553         "4dbcadac.7cacd4"
554       ]
555     ]
556   },
557   {
558     "id": "5b36b323.b34d7c",
559     "type": "returnSuccess",
560     "name": "return success",
561     "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",
562     "comments": "",
563     "x": 762.6665649414062,
564     "y": 929.666618347168,
565     "z": "89eca582.be817",
566     "wires": []
567   },
568   {
569     "id": "3a891d55.fcf27a",
570     "type": "set",
571     "name": "copy input to service-data",
572     "xml": "<set>\n<parameter name='service-data.networks.network[$tmp.nidx].network-data.sdnc-request-header.' value='`$network-topology-operation-input.sdnc-request-header.`' />\n<parameter name='service-data.networks.network[$tmp.nidx].network-data.request-information.' value='`$network-topology-operation-input.request-information.`' />\n",
573     "comments": "",
574     "x": 1103.0000076293945,
575     "y": 691.6666479110718,
576     "z": "89eca582.be817",
577     "wires": []
578   },
579   {
580     "id": "2f2a571f.f701d8",
581     "type": "set",
582     "name": "set networkId",
583     "xml": "<set>\n<parameter name='networkId' value='`$network-topology-operation-input.network-information.network-id`' />\n",
584     "comments": "",
585     "x": 1067.2895622253418,
586     "y": 735.3844947814941,
587     "z": "89eca582.be817",
588     "wires": []
589   },
590   {
591     "id": "ad0ac3a3.801d88",
592     "type": "set",
593     "name": "set object-path",
594     "xml": "<set>\n<parameter name='network-object-path' value=\"`'restconf/config/GENERIC-RESOURCE-API:services/service/'\n + $network-topology-operation-input.service-information.service-instance-id\n + '/service-data/networks/network/'\n + $networkId\n + '/network-data/'` \" />\n \n",
595     "comments": "",
596     "x": 1073.0039291381836,
597     "y": 772.5273866653442,
598     "z": "89eca582.be817",
599     "wires": []
600   },
601   {
602     "id": "4dbcadac.7cacd4",
603     "type": "set",
604     "name": "set network-level-oper-status",
605     "xml": "<set>\n<parameter name='service-data.networks.network[$tmp.nidx].network-data.network-level-oper-status.order-status' value='Deleted' />\n<parameter name='service-data.networks.network[$tmp.nidx].network-data.network-level-oper-status.last-rpc-action' value='`$network-topology-operation-input.sdnc-request-header.svc-action`' />\n<parameter name='service-data.networks.network[$tmp.nidx].network-data.network-level-oper-status.last-action' value='`$network-topology-operation-input.request-information.request-action`' />\n",
606     "comments": "",
607     "x": 1116.9999389648438,
608     "y": 819.6666059494019,
609     "z": "89eca582.be817",
610     "wires": []
611   },
612   {
613     "id": "6331818b.c6bfc",
614     "type": "get-resource",
615     "name": "get-resource pnf",
616     "xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\t\tresource=\"pnf\" \n\t\tkey=\"pnf.pnf-name = $prop.l3vpn.pe1_id AND \n\t\t     depth = '0'\"\n        pfx='tmp.aai.pnf' local-only='false' >\n\n",
617     "comments": "",
618     "outputs": 1,
619     "x": 789,
620     "y": 395.2223434448242,
621     "z": "89eca582.be817",
622     "wires": [
623       [
624         "2c36397a.e13af6",
625         "81511490.7b5318",
626         "8ef29169.d30308"
627       ]
628     ]
629   },
630   {
631     "id": "2c36397a.e13af6",
632     "type": "success",
633     "name": "success",
634     "xml": "<outcome value='success'>\n",
635     "comments": "",
636     "outputs": 1,
637     "x": 983,
638     "y": 333.2223434448242,
639     "z": "89eca582.be817",
640     "wires": [
641       [
642         "69eaa950.7e3dd"
643       ]
644     ]
645   },
646   {
647     "id": "81511490.7b5318",
648     "type": "not-found",
649     "name": "not-found",
650     "xml": "<outcome value='not-found'>\n",
651     "comments": "",
652     "outputs": 1,
653     "x": 992.490966796875,
654     "y": 375.79637908935547,
655     "z": "89eca582.be817",
656     "wires": [
657       [
658         "a2279b64.597d58"
659       ]
660     ]
661   },
662   {
663     "id": "8ef29169.d30308",
664     "type": "other",
665     "name": "other",
666     "xml": "<outcome value='Other'>\n",
667     "comments": "",
668     "outputs": 1,
669     "x": 985.823974609375,
670     "y": 424.1296920776367,
671     "z": "89eca582.be817",
672     "wires": [
673       [
674         "48d06926.05169"
675       ]
676     ]
677   },
678   {
679     "id": "a2279b64.597d58",
680     "type": "returnFailure",
681     "name": "return failure",
682     "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 esr-thirdparty-sdnc from AnAI with thirdparty-sdnc-id = ' + $tmp.thirdparty-sdnc-id`\" />\n\n",
683     "comments": "",
684     "x": 1178.0623779296875,
685     "y": 377.08211517333984,
686     "z": "89eca582.be817",
687     "wires": []
688   },
689   {
690     "id": "48d06926.05169",
691     "type": "returnFailure",
692     "name": "return failure",
693     "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 esr-thirdparty-sdnc from AnAI with thirdparty-sdnc-id = ' + $tmp.thirdparty-sdnc-id`\" />\n\n",
694     "comments": "",
695     "x": 1174.5965576171875,
696     "y": 427.5688705444336,
697     "z": "89eca582.be817",
698     "wires": []
699   },
700   {
701     "id": "69eaa950.7e3dd",
702     "type": "set",
703     "name": "set tmp.thirdparty-sdnc-id",
704     "xml": "<set>\n<parameter name='tmp.thirdparty-sdnc-id' value=\"`$tmp.aai.pnf.relationship-list.relationship[0].relationship-data[0].relationship-value`\" />\n",
705     "comments": "",
706     "x": 1197,
707     "y": 329.2223434448242,
708     "z": "89eca582.be817",
709     "wires": []
710   },
711   {
712     "id": "83edb691.4ecc08",
713     "type": "switchNode",
714     "name": "switch pe1_id",
715     "xml": "<switch test=\"`$service-data.networks.network[$tmp.nidx].network-data.network-request-input.network-input-parameters.param[$idx].name == 'pe1_id'`\">\n",
716     "comments": "",
717     "outputs": 1,
718     "x": 1348,
719     "y": 290.2223434448242,
720     "z": "89eca582.be817",
721     "wires": [
722       [
723         "6271005d.f22478"
724       ]
725     ]
726   },
727   {
728     "id": "6271005d.f22478",
729     "type": "outcomeTrue",
730     "name": "true",
731     "xml": "<outcome value='true'>\n",
732     "comments": "",
733     "outputs": 1,
734     "x": 1534,
735     "y": 299.2223434448242,
736     "z": "89eca582.be817",
737     "wires": [
738       [
739         "170629d3.536056"
740       ]
741     ]
742   },
743   {
744     "id": "170629d3.536056",
745     "type": "set",
746     "name": "set pe1_id",
747     "xml": "<set>\n<parameter name='prop.l3vpn.pe1_id' value='`$service-data.networks.network[$tmp.nidx].network-data.network-request-input.network-input-parameters.param[$idx].value`' />\n",
748     "comments": "",
749     "x": 1717,
750     "y": 303.2223434448242,
751     "z": "89eca582.be817",
752     "wires": []
753   },
754   {
755     "id": "e6735147.08a6d8",
756     "type": "delete",
757     "name": "delete underlay configuration in AAI",
758     "xml": "<delete plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" resource='configuration' \n        key='configuration.configuration-id = $network-topology-operation-input.network-information.network-id'>\n",
759     "comments": "",
760     "outputs": 1,
761     "x": 820,
762     "y": 857.2223434448242,
763     "z": "89eca582.be817",
764     "wires": [
765       []
766     ]
767   },
768   {
769     "id": "390c3473.62cfd4",
770     "type": "execute",
771     "name": "execute RestApiCallNode Get token",
772     "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"templateFileName\" value=\"`$prop.sdncRestApi.templateDir + '/actokentemplate.json'`\" />\n<parameter name=\"restapiUrl\" value=\"`$prop.sdncRestApi.thirdpartySdnc.url + '/controller/v2/tokens'`\" />\n<parameter name=\"format\" value=\"json\"/>\n<parameter name=\"httpMethod\" value=\"post\"/>\n<parameter name=\"responsePrefix\" value=\"token-result\"/>",
773     "comments": "",
774     "outputs": 1,
775     "x": 1602,
776     "y": 613,
777     "z": "89eca582.be817",
778     "wires": [
779       [
780         "114e384f.cecfb8",
781         "a016d52e.8ce4a8"
782       ]
783     ]
784   },
785   {
786     "id": "114e384f.cecfb8",
787     "type": "success",
788     "name": "success",
789     "xml": "<outcome value='success'>\n",
790     "comments": "",
791     "outputs": 1,
792     "x": 1842,
793     "y": 576,
794     "z": "89eca582.be817",
795     "wires": [
796       [
797         "600363c2.6867f4"
798       ]
799     ]
800   },
801   {
802     "id": "a016d52e.8ce4a8",
803     "type": "failure",
804     "name": "failure",
805     "xml": "<outcome value='failure'>\n",
806     "comments": "",
807     "outputs": 1,
808     "x": 1849.25,
809     "y": 642.6428833007812,
810     "z": "89eca582.be817",
811     "wires": [
812       [
813         "e5ef3b3f.f1e878"
814       ]
815     ]
816   },
817   {
818     "id": "e5ef3b3f.f1e878",
819     "type": "returnFailure",
820     "name": "return failure",
821     "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 get token rest api\" />\n",
822     "comments": "",
823     "x": 2030,
824     "y": 641.3929443359375,
825     "z": "89eca582.be817",
826     "wires": []
827   },
828   {
829     "id": "600363c2.6867f4",
830     "type": "set",
831     "name": "set token-id",
832     "xml": "<set>\n<parameter name='prop.sdncRestApi.token_id' value='$token-result.token_id' />\n",
833     "comments": "",
834     "x": 2027,
835     "y": 573,
836     "z": "89eca582.be817",
837     "wires": []
838   },
839   {
840     "id": "9b0fa013.788a28",
841     "type": "success",
842     "name": "success",
843     "xml": "<outcome value='success'>\n",
844     "comments": "",
845     "outputs": 1,
846     "x": 1799,
847     "y": 698,
848     "z": "89eca582.be817",
849     "wires": [
850       []
851     ]
852   },
853   {
854     "id": "19c42608.424b9a",
855     "type": "failure",
856     "name": "failure",
857     "xml": "<outcome value='failure'>\n",
858     "comments": "",
859     "outputs": 1,
860     "x": 1800.25,
861     "y": 761.642822265625,
862     "z": "89eca582.be817",
863     "wires": [
864       [
865         "6961c23b.26892c"
866       ]
867     ]
868   },
869   {
870     "id": "6961c23b.26892c",
871     "type": "returnFailure",
872     "name": "return failure",
873     "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 3rd party controller rest api\" />\n",
874     "comments": "",
875     "x": 1966,
876     "y": 764.3929443359375,
877     "z": "89eca582.be817",
878     "wires": []
879   },
880   {
881     "id": "4e922d10.8ba70c",
882     "type": "block",
883     "name": "block : atomic",
884     "xml": "<block atomic=\"true\">\n",
885     "atomic": "false",
886     "comments": "",
887     "outputs": 1,
888     "x": 1273,
889     "y": 624,
890     "z": "89eca582.be817",
891     "wires": [
892       [
893         "390c3473.62cfd4",
894         "e7464274.0f82b8"
895       ]
896     ]
897   }
898 ]