Fix underlay DG delete testing issue
[sdnc/oam.git] / platform-logic / generic-resource-api / src / main / json / GENERIC-RESOURCE-API_network-topology-operation-delete.json
1 [
2   {
3     "id": "1bc16ce.3c28013",
4     "type": "dgstart",
5     "name": "DGSTART",
6     "outputs": 1,
7     "x": 87,
8     "y": 114.11099243164062,
9     "z": "e87b72fe.07c73",
10     "wires": [
11       [
12         "97da490c.021388"
13       ]
14     ]
15   },
16   {
17     "id": "97da490c.021388",
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": 299.00000381469727,
26     "y": 186.11100959777832,
27     "z": "e87b72fe.07c73",
28     "wires": [
29       [
30         "3dca7f57.a19ca8"
31       ]
32     ]
33   },
34   {
35     "id": "3dca7f57.a19ca8",
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": 287.0001220703125,
42     "y": 274.1109924316406,
43     "z": "e87b72fe.07c73",
44     "wires": [
45       [
46         "2917b139.6003be"
47       ]
48     ]
49   },
50   {
51     "id": "2917b139.6003be",
52     "type": "block",
53     "name": "block : atomic",
54     "xml": "<block atomic=\"true\">\n",
55     "atomic": "false",
56     "comments": "",
57     "outputs": 1,
58     "x": 563.0000305175781,
59     "y": 282.11100578308105,
60     "z": "e87b72fe.07c73",
61     "wires": [
62       [
63         "93de9a8e.85cd28",
64         "8a99a44.0aea6d8",
65         "b9e067fb.af43c8",
66         "8f63fe5a.ce23c",
67         "6e9a7fc8.6e80c8",
68         "4f853de5.1d70d4",
69         "80aa2c3b.44b74",
70         "c6199aa8.b4cf08",
71         "cd746090.90a5a",
72         "e9b167f.6457618"
73       ]
74     ]
75   },
76   {
77     "id": "93de9a8e.85cd28",
78     "type": "call",
79     "name": "call GENERIC-RESOURCE-API:validate-network-input-parameters",
80     "xml": "<call module='GENERIC-RESOURCE-API' rpc='validate-network-input-parameters' mode='sync' >\n",
81     "comments": "",
82     "outputs": 1,
83     "x": 884,
84     "y": 65.11099243164062,
85     "z": "e87b72fe.07c73",
86     "wires": [
87       []
88     ]
89   },
90   {
91     "id": "8a99a44.0aea6d8",
92     "type": "get-resource",
93     "name": "get-resource esr-thirdparty-sdnc",
94     "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",
95     "comments": "",
96     "outputs": 1,
97     "x": 828,
98     "y": 510.1109619140625,
99     "z": "e87b72fe.07c73",
100     "wires": [
101       [
102         "3ab5ee96.e1d5ea",
103         "5289c8c7.4bcd4",
104         "756a44de.032acc"
105       ]
106     ]
107   },
108   {
109     "id": "3ab5ee96.e1d5ea",
110     "type": "success",
111     "name": "success",
112     "xml": "<outcome value='success'>\n",
113     "comments": "",
114     "outputs": 1,
115     "x": 1066,
116     "y": 466.1109924316406,
117     "z": "e87b72fe.07c73",
118     "wires": [
119       [
120         "e5229a2a.d65d6"
121       ]
122     ]
123   },
124   {
125     "id": "5289c8c7.4bcd4",
126     "type": "not-found",
127     "name": "not-found",
128     "xml": "<outcome value='not-found'>\n",
129     "comments": "",
130     "outputs": 1,
131     "x": 1070.490966796875,
132     "y": 507.68505859375,
133     "z": "e87b72fe.07c73",
134     "wires": [
135       [
136         "84a50f20.350108"
137       ]
138     ]
139   },
140   {
141     "id": "756a44de.032acc",
142     "type": "other",
143     "name": "other",
144     "xml": "<outcome value='Other'>\n",
145     "comments": "",
146     "outputs": 1,
147     "x": 1063.823974609375,
148     "y": 559.018310546875,
149     "z": "e87b72fe.07c73",
150     "wires": [
151       [
152         "ad52005e.b9cf1"
153       ]
154     ]
155   },
156   {
157     "id": "84a50f20.350108",
158     "type": "returnFailure",
159     "name": "return failure",
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=\"Network model is_bound_to_vpn=true but no vpn_binding is present\" />\n\n",
161     "comments": "",
162     "x": 1246.0623779296875,
163     "y": 505.97076416015625,
164     "z": "e87b72fe.07c73",
165     "wires": []
166   },
167   {
168     "id": "ad52005e.b9cf1",
169     "type": "returnFailure",
170     "name": "return failure",
171     "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",
172     "comments": "",
173     "x": 1224.5965576171875,
174     "y": 557.45751953125,
175     "z": "e87b72fe.07c73",
176     "wires": []
177   },
178   {
179     "id": "b9e067fb.af43c8",
180     "type": "for",
181     "name": "for each network-input-parameters",
182     "xml": "<for index='idx' start='0' end='`$service-data.networks.network[$tmp.nidx].network-data.network-request-input.network-input-parameters.param_length`' >\n",
183     "comments": "",
184     "outputs": 1,
185     "x": 846,
186     "y": 243.11099243164062,
187     "z": "e87b72fe.07c73",
188     "wires": [
189       [
190         "dba902b2.65b6e"
191       ]
192     ]
193   },
194   {
195     "id": "dba902b2.65b6e",
196     "type": "block",
197     "name": "block",
198     "xml": "<block>\n",
199     "atomic": "false",
200     "comments": "",
201     "outputs": 1,
202     "x": 1127.8333740234375,
203     "y": 221.4443359375,
204     "z": "e87b72fe.07c73",
205     "wires": [
206       [
207         "6dbc1962.e67808",
208         "a7f93024.722988",
209         "84a77140.b8364"
210       ]
211     ]
212   },
213   {
214     "id": "6dbc1962.e67808",
215     "type": "switchNode",
216     "name": "switch name",
217     "xml": "<switch test=\"`$service-data.networks.network[$tmp.nidx].network-data.network-request-input.network-input-parameters.param[$idx].name == 'name'`\">\n",
218     "comments": "",
219     "outputs": 1,
220     "x": 1336,
221     "y": 182.11099243164062,
222     "z": "e87b72fe.07c73",
223     "wires": [
224       [
225         "5945c6d2.51585"
226       ]
227     ]
228   },
229   {
230     "id": "5945c6d2.51585",
231     "type": "outcomeTrue",
232     "name": "true",
233     "xml": "<outcome value='true'>\n",
234     "comments": "",
235     "outputs": 1,
236     "x": 1523,
237     "y": 182.11099243164062,
238     "z": "e87b72fe.07c73",
239     "wires": [
240       [
241         "7ba84df2.2f3aec"
242       ]
243     ]
244   },
245   {
246     "id": "7ba84df2.2f3aec",
247     "type": "set",
248     "name": "set name",
249     "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",
250     "comments": "",
251     "x": 1691,
252     "y": 182.71099853515625,
253     "z": "e87b72fe.07c73",
254     "wires": []
255   },
256   {
257     "id": "a7f93024.722988",
258     "type": "switchNode",
259     "name": "switch service-type",
260     "xml": "<switch test=\"`$service-data.networks.network[$tmp.nidx].network-data.network-request-input.network-input-parameters.param[$idx].name == 'serviceType'`\">\n",
261     "comments": "",
262     "outputs": 1,
263     "x": 1341,
264     "y": 236.71096801757812,
265     "z": "e87b72fe.07c73",
266     "wires": [
267       [
268         "24243087.264e7"
269       ]
270     ]
271   },
272   {
273     "id": "24243087.264e7",
274     "type": "outcomeTrue",
275     "name": "true",
276     "xml": "<outcome value='true'>\n",
277     "comments": "",
278     "outputs": 1,
279     "x": 1524.9999389648438,
280     "y": 241.71096801757812,
281     "z": "e87b72fe.07c73",
282     "wires": [
283       [
284         "4b08822f.ede664"
285       ]
286     ]
287   },
288   {
289     "id": "4b08822f.ede664",
290     "type": "set",
291     "name": "set service-type",
292     "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",
293     "comments": "",
294     "x": 1693.9999389648438,
295     "y": 239.71096801757812,
296     "z": "e87b72fe.07c73",
297     "wires": []
298   },
299   {
300     "id": "e5229a2a.d65d6",
301     "type": "set",
302     "name": "set controller data",
303     "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.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",
304     "comments": "",
305     "x": 1252,
306     "y": 463.1109619140625,
307     "z": "e87b72fe.07c73",
308     "wires": []
309   },
310   {
311     "id": "8892b470.2ab318",
312     "type": "execute",
313     "name": "execute REST DELETE VPN",
314     "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"templateFileName\" value=\"`$prop.restapi.templateDir +'/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`\" />",
315     "comments": "",
316     "outputs": 1,
317     "x": 1574,
318     "y": 678.110969543457,
319     "z": "e87b72fe.07c73",
320     "wires": [
321       [
322         "6ace128e.38bbf4",
323         "e03ea1f6.8ae24"
324       ]
325     ]
326   },
327   {
328     "id": "8f63fe5a.ce23c",
329     "type": "switchNode",
330     "name": "switch service-type",
331     "xml": "<switch test=\"`$prop.l3vpn.service-type`\">\n",
332     "comments": "",
333     "outputs": 1,
334     "x": 787,
335     "y": 614.1109924316406,
336     "z": "e87b72fe.07c73",
337     "wires": [
338       [
339         "cf2b0eea.34d2e"
340       ]
341     ]
342   },
343   {
344     "id": "cf2b0eea.34d2e",
345     "type": "outcomeTrue",
346     "name": "l3vpn-ipwan",
347     "xml": "<outcome value='l3vpn-ipwan'>\n",
348     "comments": "",
349     "outputs": 1,
350     "x": 1044,
351     "y": 615.110969543457,
352     "z": "e87b72fe.07c73",
353     "wires": [
354       [
355         "46db16ed.796608"
356       ]
357     ]
358   },
359   {
360     "id": "6e9a7fc8.6e80c8",
361     "type": "switchNode",
362     "name": "switch service-data.networks.network_length",
363     "xml": "<switch test='`$service-data.networks.network_length`'>\n",
364     "comments": "",
365     "outputs": 1,
366     "x": 826,
367     "y": 138.11099243164062,
368     "z": "e87b72fe.07c73",
369     "wires": [
370       [
371         "53ed314.a330f5",
372         "eeed55fd.c22298"
373       ]
374     ]
375   },
376   {
377     "id": "53ed314.a330f5",
378     "type": "other",
379     "name": "outcome Null",
380     "xml": "<outcome value=''>\n",
381     "comments": "",
382     "outputs": 1,
383     "x": 1271,
384     "y": 64.11105346679688,
385     "z": "e87b72fe.07c73",
386     "wires": [
387       [
388         "7b50ad9a.577e8c"
389       ]
390     ]
391   },
392   {
393     "id": "7b50ad9a.577e8c",
394     "type": "returnFailure",
395     "name": "return failure",
396     "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",
397     "comments": "",
398     "x": 1461.7774658203125,
399     "y": 51,
400     "z": "e87b72fe.07c73",
401     "wires": []
402   },
403   {
404     "id": "eeed55fd.c22298",
405     "type": "other",
406     "name": "other",
407     "xml": "<outcome value='Other'>\n",
408     "comments": "",
409     "outputs": 1,
410     "x": 1155.0003662109375,
411     "y": 129.11106872558594,
412     "z": "e87b72fe.07c73",
413     "wires": [
414       [
415         "29041a71.02b546"
416       ]
417     ]
418   },
419   {
420     "id": "29041a71.02b546",
421     "type": "block",
422     "name": "block : atomic",
423     "xml": "<block atomic=\"true\">",
424     "atomic": "true",
425     "outputs": 1,
426     "x": 1326.2698974609375,
427     "y": 112.66560363769531,
428     "z": "e87b72fe.07c73",
429     "wires": [
430       [
431         "3af5398b.f7aa0e",
432         "4821e95f.09e458"
433       ]
434     ]
435   },
436   {
437     "id": "3af5398b.f7aa0e",
438     "type": "for",
439     "name": "for nidx..service-data.networks.network[]",
440     "xml": "<for index='nidx' start='0' end='`$service-data.networks.network_length`' >\n",
441     "comments": "",
442     "outputs": 1,
443     "x": 1624.285888671875,
444     "y": 93.53961181640625,
445     "z": "e87b72fe.07c73",
446     "wires": [
447       [
448         "21827fa6.3c3c7"
449       ]
450     ]
451   },
452   {
453     "id": "4821e95f.09e458",
454     "type": "switchNode",
455     "name": "switch tmp.nidx ",
456     "xml": "<switch test=\"`$tmp.nidx`\">\n\n",
457     "comments": "",
458     "outputs": 1,
459     "x": 1545.5872802734375,
460     "y": 136.52279663085938,
461     "z": "e87b72fe.07c73",
462     "wires": [
463       [
464         "4af90ffc.0818b"
465       ]
466     ]
467   },
468   {
469     "id": "4af90ffc.0818b",
470     "type": "outcome",
471     "name": "NULL",
472     "xml": "<outcome value=''>\n",
473     "comments": "",
474     "outputs": 1,
475     "x": 1746.015869140625,
476     "y": 142.09420776367188,
477     "z": "e87b72fe.07c73",
478     "wires": [
479       [
480         "98ba5173.0d34e"
481       ]
482     ]
483   },
484   {
485     "id": "21827fa6.3c3c7",
486     "type": "switchNode",
487     "name": "switch networkid found",
488     "xml": "<switch test=\"`$service-data.networks.network[$nidx].network-id == $network-topology-operation-input.network-information.network-id`\">\n\n",
489     "comments": "",
490     "outputs": 1,
491     "x": 1934.7144775390625,
492     "y": 91.78970336914062,
493     "z": "e87b72fe.07c73",
494     "wires": [
495       [
496         "22099867.c65e3"
497       ]
498     ]
499   },
500   {
501     "id": "98ba5173.0d34e",
502     "type": "returnFailure",
503     "name": "return failure",
504     "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",
505     "comments": "",
506     "x": 1917.4443359375,
507     "y": 142.237060546875,
508     "z": "e87b72fe.07c73",
509     "wires": []
510   },
511   {
512     "id": "22099867.c65e3",
513     "type": "outcomeTrue",
514     "name": "true",
515     "xml": "<outcome value='true'>\n",
516     "comments": "",
517     "outputs": 1,
518     "x": 2140.666748046875,
519     "y": 90.68243408203125,
520     "z": "e87b72fe.07c73",
521     "wires": [
522       [
523         "44687f12.3eae5"
524       ]
525     ]
526   },
527   {
528     "id": "44687f12.3eae5",
529     "type": "set",
530     "name": "set tmp.nidx and ctx.network-data",
531     "xml": "<set>\n<parameter name='tmp.nidx' value='`$nidx`' />\n<parameter name='ctx.network-data.' value='`$service-data.networks.network[$nidx].`' />\n",
532     "comments": "",
533     "x": 2379.198486328125,
534     "y": 86.43243408203125,
535     "z": "e87b72fe.07c73",
536     "wires": []
537   },
538   {
539     "id": "4f853de5.1d70d4",
540     "type": "block",
541     "name": "block : saveNetworkData",
542     "xml": "<block atomic=\"true\">",
543     "atomic": "true",
544     "comments": "",
545     "outputs": 1,
546     "x": 805,
547     "y": 704.1109924316406,
548     "z": "e87b72fe.07c73",
549     "wires": [
550       [
551         "191edb15.f0a32d",
552         "7bfb16ed.b031d8",
553         "3a334836.fa7ed",
554         "cc07591b.5791f"
555       ]
556     ]
557   },
558   {
559     "id": "80aa2c3b.44b74",
560     "type": "returnSuccess",
561     "name": "return success",
562     "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",
563     "comments": "",
564     "x": 757.6665649414062,
565     "y": 922.4442749023438,
566     "z": "e87b72fe.07c73",
567     "wires": []
568   },
569   {
570     "id": "3a334836.fa7ed",
571     "type": "set",
572     "name": "copy input to service-data",
573     "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",
574     "comments": "",
575     "x": 1098.0000076293945,
576     "y": 684.4443044662476,
577     "z": "e87b72fe.07c73",
578     "wires": []
579   },
580   {
581     "id": "191edb15.f0a32d",
582     "type": "set",
583     "name": "set networkId",
584     "xml": "<set>\n<parameter name='networkId' value='`$network-topology-operation-input.network-information.network-id`' />\n",
585     "comments": "",
586     "x": 1062.2895622253418,
587     "y": 728.1621513366699,
588     "z": "e87b72fe.07c73",
589     "wires": []
590   },
591   {
592     "id": "7bfb16ed.b031d8",
593     "type": "set",
594     "name": "set object-path",
595     "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",
596     "comments": "",
597     "x": 1068.0039291381836,
598     "y": 765.30504322052,
599     "z": "e87b72fe.07c73",
600     "wires": []
601   },
602   {
603     "id": "cc07591b.5791f",
604     "type": "set",
605     "name": "set network-level-oper-status",
606     "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",
607     "comments": "",
608     "x": 1111.9999389648438,
609     "y": 812.4442625045776,
610     "z": "e87b72fe.07c73",
611     "wires": []
612   },
613   {
614     "id": "c6199aa8.b4cf08",
615     "type": "get-resource",
616     "name": "get-resource pnf",
617     "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",
618     "comments": "",
619     "outputs": 1,
620     "x": 784,
621     "y": 388,
622     "z": "e87b72fe.07c73",
623     "wires": [
624       [
625         "eb78427.8aeffc",
626         "9468b1f6.acd4a8",
627         "8869b2de.4cd318"
628       ]
629     ]
630   },
631   {
632     "id": "eb78427.8aeffc",
633     "type": "success",
634     "name": "success",
635     "xml": "<outcome value='success'>\n",
636     "comments": "",
637     "outputs": 1,
638     "x": 978,
639     "y": 326,
640     "z": "e87b72fe.07c73",
641     "wires": [
642       [
643         "68cda5fa.8580d4"
644       ]
645     ]
646   },
647   {
648     "id": "9468b1f6.acd4a8",
649     "type": "not-found",
650     "name": "not-found",
651     "xml": "<outcome value='not-found'>\n",
652     "comments": "",
653     "outputs": 1,
654     "x": 987.490966796875,
655     "y": 368.57403564453125,
656     "z": "e87b72fe.07c73",
657     "wires": [
658       [
659         "f68a2741.7b13e"
660       ]
661     ]
662   },
663   {
664     "id": "8869b2de.4cd318",
665     "type": "other",
666     "name": "other",
667     "xml": "<outcome value='Other'>\n",
668     "comments": "",
669     "outputs": 1,
670     "x": 980.823974609375,
671     "y": 416.9073486328125,
672     "z": "e87b72fe.07c73",
673     "wires": [
674       [
675         "ff173828.c81cc"
676       ]
677     ]
678   },
679   {
680     "id": "f68a2741.7b13e",
681     "type": "returnFailure",
682     "name": "return failure",
683     "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",
684     "comments": "",
685     "x": 1173.0623779296875,
686     "y": 369.8597717285156,
687     "z": "e87b72fe.07c73",
688     "wires": []
689   },
690   {
691     "id": "ff173828.c81cc",
692     "type": "returnFailure",
693     "name": "return failure",
694     "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",
695     "comments": "",
696     "x": 1169.5965576171875,
697     "y": 420.3465270996094,
698     "z": "e87b72fe.07c73",
699     "wires": []
700   },
701   {
702     "id": "68cda5fa.8580d4",
703     "type": "set",
704     "name": "set tmp.thirdparty-sdnc-id",
705     "xml": "<set>\n<parameter name='tmp.thirdparty-sdnc-id' value=\"`$tmp.aai.pnf.relationship-list.relationship[0].relationship-data[0].relationship-value`\" />\n",
706     "comments": "",
707     "x": 1192,
708     "y": 322,
709     "z": "e87b72fe.07c73",
710     "wires": []
711   },
712   {
713     "id": "84a77140.b8364",
714     "type": "switchNode",
715     "name": "switch pe1_id",
716     "xml": "<switch test=\"`$service-data.networks.network[$tmp.nidx].network-data.network-request-input.network-input-parameters.param[$idx].name == 'pe1_id'`\">\n",
717     "comments": "",
718     "outputs": 1,
719     "x": 1343,
720     "y": 283,
721     "z": "e87b72fe.07c73",
722     "wires": [
723       [
724         "16fa329d.f3dce5"
725       ]
726     ]
727   },
728   {
729     "id": "16fa329d.f3dce5",
730     "type": "outcomeTrue",
731     "name": "true",
732     "xml": "<outcome value='true'>\n",
733     "comments": "",
734     "outputs": 1,
735     "x": 1529,
736     "y": 292,
737     "z": "e87b72fe.07c73",
738     "wires": [
739       [
740         "b53db17c.0ef078"
741       ]
742     ]
743   },
744   {
745     "id": "b53db17c.0ef078",
746     "type": "set",
747     "name": "set pe1_id",
748     "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",
749     "comments": "",
750     "x": 1712,
751     "y": 296,
752     "z": "e87b72fe.07c73",
753     "wires": []
754   },
755   {
756     "id": "cd746090.90a5a",
757     "type": "delete",
758     "name": "delete underlay configuration in AAI",
759     "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",
760     "comments": "",
761     "outputs": 1,
762     "x": 815,
763     "y": 850,
764     "z": "e87b72fe.07c73",
765     "wires": [
766       []
767     ]
768   },
769   {
770     "id": "599b3e84.010d1",
771     "type": "execute",
772     "name": "execute RestApiCallNode Get token",
773     "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"templateFileName\" value=\"`$prop.restapi.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\"/>",
774     "comments": "",
775     "outputs": 1,
776     "x": 1597,
777     "y": 605.7776565551758,
778     "z": "e87b72fe.07c73",
779     "wires": [
780       [
781         "d3f6644d.349f88",
782         "3ae81ceb.b03874"
783       ]
784     ]
785   },
786   {
787     "id": "d3f6644d.349f88",
788     "type": "success",
789     "name": "success",
790     "xml": "<outcome value='success'>\n",
791     "comments": "",
792     "outputs": 1,
793     "x": 1837,
794     "y": 568.7776565551758,
795     "z": "e87b72fe.07c73",
796     "wires": [
797       [
798         "7b5e645e.7d6674"
799       ]
800     ]
801   },
802   {
803     "id": "3ae81ceb.b03874",
804     "type": "failure",
805     "name": "failure",
806     "xml": "<outcome value='failure'>\n",
807     "comments": "",
808     "outputs": 1,
809     "x": 1844.25,
810     "y": 635.420539855957,
811     "z": "e87b72fe.07c73",
812     "wires": [
813       [
814         "50b8cd7f.3d5c64"
815       ]
816     ]
817   },
818   {
819     "id": "50b8cd7f.3d5c64",
820     "type": "returnFailure",
821     "name": "return failure",
822     "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",
823     "comments": "",
824     "x": 2025,
825     "y": 634.1706008911133,
826     "z": "e87b72fe.07c73",
827     "wires": []
828   },
829   {
830     "id": "7b5e645e.7d6674",
831     "type": "set",
832     "name": "set token-id",
833     "xml": "<set>\n<parameter name='prop.sdncRestApi.token_id' value='$token-result.token_id' />\n",
834     "comments": "",
835     "x": 2022,
836     "y": 565.7776565551758,
837     "z": "e87b72fe.07c73",
838     "wires": []
839   },
840   {
841     "id": "6ace128e.38bbf4",
842     "type": "success",
843     "name": "success",
844     "xml": "<outcome value='success'>\n",
845     "comments": "",
846     "outputs": 1,
847     "x": 1794,
848     "y": 690.7776565551758,
849     "z": "e87b72fe.07c73",
850     "wires": [
851       []
852     ]
853   },
854   {
855     "id": "e03ea1f6.8ae24",
856     "type": "failure",
857     "name": "failure",
858     "xml": "<outcome value='failure'>\n",
859     "comments": "",
860     "outputs": 1,
861     "x": 1795.25,
862     "y": 754.4204788208008,
863     "z": "e87b72fe.07c73",
864     "wires": [
865       [
866         "2b054857.56f558"
867       ]
868     ]
869   },
870   {
871     "id": "2b054857.56f558",
872     "type": "returnFailure",
873     "name": "return failure",
874     "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",
875     "comments": "",
876     "x": 1961,
877     "y": 757.1706008911133,
878     "z": "e87b72fe.07c73",
879     "wires": []
880   },
881   {
882     "id": "46db16ed.796608",
883     "type": "block",
884     "name": "block : atomic",
885     "xml": "<block atomic=\"true\">\n",
886     "atomic": "false",
887     "comments": "",
888     "outputs": 1,
889     "x": 1268,
890     "y": 616.7776565551758,
891     "z": "e87b72fe.07c73",
892     "wires": [
893       [
894         "599b3e84.010d1",
895         "8892b470.2ab318"
896       ]
897     ]
898   },
899   {
900     "id": "e9b167f.6457618",
901     "type": "execute",
902     "name": "execute Properties",
903     "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' />\n",
904     "comments": "",
905     "outputs": 1,
906     "x": 798,
907     "y": 564,
908     "z": "e87b72fe.07c73",
909     "wires": [
910       []
911     ]
912   }
913 ]