43ac4a759652d59d3306c1c17f80d7005d78c1f4
[sdnc/oam.git] / platform-logic / generic-resource-api / src / main / json / GENERIC-RESOURCE-API_dci-connects-network-topology-operation-deactivate.json
1 [
2   {
3     "id": "f5a8ee3a.716df8",
4     "type": "dgstart",
5     "name": "DGSTART",
6     "outputs": 1,
7     "x": 92,
8     "y": 90,
9     "z": "4f2829e5.fc576",
10     "wires": [
11       [
12         "181c6e18.5e551a"
13       ]
14     ]
15   },
16   {
17     "id": "181c6e18.5e551a",
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": 353,
26     "y": 161,
27     "z": "4f2829e5.fc576",
28     "wires": [
29       [
30         "4deec5d.bc3e13c"
31       ]
32     ]
33   },
34   {
35     "id": "4deec5d.bc3e13c",
36     "type": "method",
37     "name": "method dci-connects-network-topology-operation-deactivate",
38     "xml": "<method rpc='dci-connects-network-topology-operation-deactivate' mode='sync'>\n",
39     "comments": "",
40     "outputs": 1,
41     "x": 243,
42     "y": 246,
43     "z": "4f2829e5.fc576",
44     "wires": [
45       [
46         "db590270.2247a"
47       ]
48     ]
49   },
50   {
51     "id": "db590270.2247a",
52     "type": "block",
53     "name": "block : atomic",
54     "xml": "<block atomic=\"true\">",
55     "atomic": "true",
56     "outputs": 1,
57     "x": 578.0000152587891,
58     "y": 246.00000953674316,
59     "z": "4f2829e5.fc576",
60     "wires": [
61       [
62         "ab4a3388.0c6b38",
63         "a32bd41.02ddda8",
64         "10699173.9d62bf",
65         "517a5a14.a94154",
66         "efd1462b.b12ac8",
67         "73a3e34f.020a74"
68       ]
69     ]
70   },
71   {
72     "id": "ab4a3388.0c6b38",
73     "type": "call",
74     "name": "call GENERIC-RESOURCE-API:validate-network-input-parameters",
75     "xml": "<call module='GENERIC-RESOURCE-API' rpc='validate-network-input-parameters' mode='sync' >\n",
76     "comments": "",
77     "outputs": 1,
78     "x": 913,
79     "y": 115,
80     "z": "4f2829e5.fc576",
81     "wires": [
82       []
83     ]
84   },
85   {
86     "id": "a32bd41.02ddda8",
87     "type": "returnSuccess",
88     "name": "return success",
89     "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",
90     "comments": "",
91     "x": 787,
92     "y": 1008,
93     "z": "4f2829e5.fc576",
94     "wires": []
95   },
96   {
97     "id": "9bf0ea3a.343b6",
98     "type": "block",
99     "name": "block : sendRequest",
100     "xml": "<block atomic=\"true\">",
101     "atomic": "true",
102     "comments": "",
103     "outputs": 1,
104     "x": 974.5000305175781,
105     "y": 589.5156650543213,
106     "z": "4f2829e5.fc576",
107     "wires": [
108       [
109         "9dd304ed.281768",
110         "efaa0ea1.0c4f18",
111         "c52f3ac0.e967a8",
112         "f2e7b7ab.8ad1d",
113         "c98e6def.0e6fb8"
114       ]
115     ]
116   },
117   {
118     "id": "b2910a08.b9547",
119     "type": "success",
120     "name": "success",
121     "xml": "<outcome value='success'>\n",
122     "comments": "",
123     "outputs": 1,
124     "x": 1506.999927520752,
125     "y": 386.51519107818604,
126     "z": "4f2829e5.fc576",
127     "wires": [
128       [
129         "c0709608.52e74"
130       ]
131     ]
132   },
133   {
134     "id": "7302542d.935134",
135     "type": "not-found",
136     "name": "not-found",
137     "xml": "<outcome value='not-found'>\n",
138     "comments": "",
139     "outputs": 1,
140     "x": 1513.999927520752,
141     "y": 424.51519107818604,
142     "z": "4f2829e5.fc576",
143     "wires": [
144       [
145         "46e7f2ba.30df5c"
146       ]
147     ]
148   },
149   {
150     "id": "c3c5a87c.e92ec",
151     "type": "other",
152     "name": "other",
153     "xml": "<outcome value='Other'>\n",
154     "comments": "",
155     "outputs": 1,
156     "x": 1505.999927520752,
157     "y": 466.51519107818604,
158     "z": "4f2829e5.fc576",
159     "wires": [
160       [
161         "c4b5e7cb.79f558"
162       ]
163     ]
164   },
165   {
166     "id": "46e7f2ba.30df5c",
167     "type": "returnFailure",
168     "name": "return failure",
169     "xml": "<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value='' />\n",
170     "comments": "",
171     "x": 1670.999927520752,
172     "y": 428.51519107818604,
173     "z": "4f2829e5.fc576",
174     "wires": []
175   },
176   {
177     "id": "c4b5e7cb.79f558",
178     "type": "returnFailure",
179     "name": "return failure",
180     "xml": "<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value='' />\n",
181     "comments": "",
182     "x": 1663.999927520752,
183     "y": 475.51519107818604,
184     "z": "4f2829e5.fc576",
185     "wires": []
186   },
187   {
188     "id": "9dd304ed.281768",
189     "type": "get-resource",
190     "name": "get-resource esr-thirdparty-sdnc",
191     "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 = $prop.dci-connects.id AND \n\t\t     depth = '1'\"\n        pfx='tmp.aai.esr-thirdparty-sdnc' local-only='false' >\n",
192     "comments": "",
193     "outputs": 1,
194     "x": 1283.000015258789,
195     "y": 433.51519799232483,
196     "z": "4f2829e5.fc576",
197     "wires": [
198       [
199         "b2910a08.b9547",
200         "7302542d.935134",
201         "c3c5a87c.e92ec"
202       ]
203     ]
204   },
205   {
206     "id": "c0709608.52e74",
207     "type": "set",
208     "name": "set controller data",
209     "xml": "<set>\n<parameter name='prop.sdncRestApi.thirdpartySdnc.url' value=\"`$tmp.aai.esr-thirdparty-sdnc.esr-system-info-list.esr-system-info[0].service-url`\" />\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\n",
210     "comments": "",
211     "x": 1686.4998779296875,
212     "y": 379.01513671875,
213     "z": "4f2829e5.fc576",
214     "wires": []
215   },
216   {
217     "id": "ad303774.891d",
218     "type": "execute",
219     "name": "execute RestApiCallNode De-Activate Vxlan Tunnel",
220     "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"restapiUrl\" value=\"`$prop.sdncRestApi.thirdpartySdnc.url + '/v2.0/l3-dci-connects/' + $prop.dci-connects.id`\"/>\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`\" />\n",
221     "comments": "",
222     "outputs": 1,
223     "x": 1782.5003051757812,
224     "y": 652.5156202316284,
225     "z": "4f2829e5.fc576",
226     "wires": [
227       []
228     ]
229   },
230   {
231     "id": "efaa0ea1.0c4f18",
232     "type": "switchNode",
233     "name": "switch tunnelType",
234     "xml": "<switch test=\"`$prop.dci-connects.tunnelType`\">\n",
235     "comments": "",
236     "outputs": 1,
237     "x": 1245.4997634887695,
238     "y": 677.0151309967041,
239     "z": "4f2829e5.fc576",
240     "wires": [
241       [
242         "96ca330.e8be2d",
243         "cc0d585a.c5e7e"
244       ]
245     ]
246   },
247   {
248     "id": "96ca330.e8be2d",
249     "type": "outcomeTrue",
250     "name": "L3-DCI",
251     "xml": "<outcome value='L3-DCI'>\n",
252     "comments": "",
253     "outputs": 1,
254     "x": 1458.4998931884766,
255     "y": 657.0151309967041,
256     "z": "4f2829e5.fc576",
257     "wires": [
258       [
259         "ad303774.891d"
260       ]
261     ]
262   },
263   {
264     "id": "cc0d585a.c5e7e",
265     "type": "outcomeTrue",
266     "name": "L2-DCI",
267     "xml": "<outcome value='L2-DCI'>\n",
268     "comments": "",
269     "outputs": 1,
270     "x": 1456.499713897705,
271     "y": 729.0151309967041,
272     "z": "4f2829e5.fc576",
273     "wires": [
274       [
275         "bacc084b.3ec41"
276       ]
277     ]
278   },
279   {
280     "id": "bacc084b.3ec41",
281     "type": "execute",
282     "name": "execute RestApiCallNode De-Activate Vxlan Tunnel",
283     "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"restapiUrl\" value=\"`$prop.sdncRestApi.thirdpartySdnc.url + '/v2.0/l2-dci-connects/' + $prop.dci-connects.id`\"/>\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`\" />",
284     "comments": "",
285     "outputs": 1,
286     "x": 1776.500259399414,
287     "y": 729.5155563354492,
288     "z": "4f2829e5.fc576",
289     "wires": [
290       []
291     ]
292   },
293   {
294     "id": "a2b7f400.1f465",
295     "type": "for",
296     "name": "for each network-input-parameters",
297     "xml": "<for index='idx' start='0' end='`$service-data.networks.network[$tmp.nidx].network-data.network-request-input.network-input-parameters.param_length`' >\n\n",
298     "comments": "",
299     "outputs": 1,
300     "x": 1036.999984741211,
301     "y": 190.51563167572021,
302     "z": "4f2829e5.fc576",
303     "wires": [
304       [
305         "225b5a0e.27e1d6"
306       ]
307     ]
308   },
309   {
310     "id": "c52f3ac0.e967a8",
311     "type": "record",
312     "name": "record",
313     "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder\">\n<parameter name=\"logger\" value=\"message-log\"/>\n<parameter name=\"field1\" value=\"__TIMESTAMP__\"/>\n<parameter name=\"field2\" value=\"dci-network-topology-operation-deactivate\"/>\n<parameter name=\"field3\" value=\"dci-connects.id\" />\n<parameter name=\"field4\" value=\"`$prop.dci-connects.id`\"/>\n<parameter name=\"field5\" value=\"dci-connects.tunnelType\" />\n<parameter name=\"field6\" value=\"`$prop.dci-connects.tunnelType`\"/>\n<parameter name=\"field7\" value=\"dci-connects.tunnelType\" />\n<parameter name=\"field8\" value=\"`$prop.dci-connects.tunnelType`\"/>\n<parameter name=\"field9\" value=\"sdncRestApi.thirdpartySdnc.url\"/>\n<parameter name=\"field10\" value=\"`$prop.sdncRestApi.thirdpartySdnc.url`\"/>",
314     "comments": "",
315     "outputs": 1,
316     "x": 1220.3333740234375,
317     "y": 542,
318     "z": "4f2829e5.fc576",
319     "wires": [
320       []
321     ]
322   },
323   {
324     "id": "225b5a0e.27e1d6",
325     "type": "block",
326     "name": "block",
327     "xml": "<block>\n",
328     "atomic": "false",
329     "comments": "",
330     "outputs": 1,
331     "x": 1270.3334274291992,
332     "y": 190.00000762939453,
333     "z": "4f2829e5.fc576",
334     "wires": [
335       [
336         "be8fe02b.02612",
337         "9b16a3b9.1f3098"
338       ]
339     ]
340   },
341   {
342     "id": "be8fe02b.02612",
343     "type": "switchNode",
344     "name": "switch site1_id",
345     "xml": "<switch test=\"`$service-data.networks.network[$tmp.nidx].network-data.network-request-input.network-input-parameters.param[$idx].name == 'site1_id'`\">\n",
346     "comments": "",
347     "outputs": 1,
348     "x": 1476.6666374206543,
349     "y": 159.00000381469727,
350     "z": "4f2829e5.fc576",
351     "wires": [
352       [
353         "97e27afd.097dc"
354       ]
355     ]
356   },
357   {
358     "id": "97e27afd.097dc",
359     "type": "outcomeTrue",
360     "name": "true",
361     "xml": "<outcome value='true'>\n",
362     "comments": "",
363     "outputs": 1,
364     "x": 1677.666732788086,
365     "y": 158.00000286102295,
366     "z": "4f2829e5.fc576",
367     "wires": [
368       [
369         "b51077df.7867c"
370       ]
371     ]
372   },
373   {
374     "id": "b51077df.7867c",
375     "type": "set",
376     "name": "set id",
377     "xml": "<set>\n<parameter name='prop.dci-connects.id' value='`$service-data.networks.network[$tmp.nidx].network-data.network-request-input.network-input-parameters.param[$idx].value`' />\n",
378     "comments": "",
379     "x": 1851.3330841064453,
380     "y": 157.66654777526855,
381     "z": "4f2829e5.fc576",
382     "wires": []
383   },
384   {
385     "id": "9b16a3b9.1f3098",
386     "type": "switchNode",
387     "name": "switch tunnelType",
388     "xml": "<switch test=\"`$service-data.networks.network[$tmp.nidx].network-data.network-request-input.network-input-parameters.param[$idx].name == 'tunnelType'`\">\n",
389     "comments": "",
390     "outputs": 1,
391     "x": 1486.6667175292969,
392     "y": 212.00000977516174,
393     "z": "4f2829e5.fc576",
394     "wires": [
395       [
396         "f71924ef.335e7"
397       ]
398     ]
399   },
400   {
401     "id": "f71924ef.335e7",
402     "type": "outcomeTrue",
403     "name": "true",
404     "xml": "<outcome value='true'>\n",
405     "comments": "",
406     "outputs": 1,
407     "x": 1692.6667175292969,
408     "y": 212.00000977516174,
409     "z": "4f2829e5.fc576",
410     "wires": [
411       [
412         "81bda338.0c501"
413       ]
414     ]
415   },
416   {
417     "id": "81bda338.0c501",
418     "type": "set",
419     "name": "set tunnelType",
420     "xml": "<set>\n<parameter name='prop.dci-connects.tunnelType' value='`$service-data.networks.network[$tmp.nidx].network-data.network-request-input.network-input-parameters.param[$idx].value`' />\n",
421     "comments": "",
422     "x": 1861.6668167114258,
423     "y": 212.0000250339508,
424     "z": "4f2829e5.fc576",
425     "wires": []
426   },
427   {
428     "id": "10699173.9d62bf",
429     "type": "block",
430     "name": "block : executeSite1",
431     "xml": "<block atomic=\"true\">",
432     "atomic": "true",
433     "comments": "",
434     "outputs": 1,
435     "x": 766.3333358764648,
436     "y": 191.66666412353516,
437     "z": "4f2829e5.fc576",
438     "wires": [
439       [
440         "a2b7f400.1f465",
441         "9bf0ea3a.343b6"
442       ]
443     ]
444   },
445   {
446     "id": "13dfccf8.bd0803",
447     "type": "for",
448     "name": "for each network-input-parameters",
449     "xml": "<for index='idx' start='0' end='`$service-data.networks.network[$tmp.nidx].network-data.network-request-input.network-input-parameters.param_length`' >\n\n",
450     "comments": "",
451     "outputs": 1,
452     "x": 1042.0000686645508,
453     "y": 296.66663551330566,
454     "z": "4f2829e5.fc576",
455     "wires": [
456       [
457         "9c692b97.c836f"
458       ]
459     ]
460   },
461   {
462     "id": "9c692b97.c836f",
463     "type": "block",
464     "name": "block",
465     "xml": "<block>\n",
466     "atomic": "false",
467     "comments": "",
468     "outputs": 1,
469     "x": 1270.3334350585938,
470     "y": 299.15101146698,
471     "z": "4f2829e5.fc576",
472     "wires": [
473       [
474         "3edb515.a48a22e"
475       ]
476     ]
477   },
478   {
479     "id": "3edb515.a48a22e",
480     "type": "switchNode",
481     "name": "switch site2_id",
482     "xml": "<switch test=\"`$service-data.networks.network[$tmp.nidx].network-data.network-request-input.network-input-parameters.param[$idx].name == 'site2_id'`\">\n",
483     "comments": "",
484     "outputs": 1,
485     "x": 1471.3333854675293,
486     "y": 299.15099716186523,
487     "z": "4f2829e5.fc576",
488     "wires": [
489       [
490         "948a60aa.59ad7"
491       ]
492     ]
493   },
494   {
495     "id": "948a60aa.59ad7",
496     "type": "outcomeTrue",
497     "name": "true",
498     "xml": "<outcome value='true'>\n",
499     "comments": "",
500     "outputs": 1,
501     "x": 1672.333480834961,
502     "y": 298.1509962081909,
503     "z": "4f2829e5.fc576",
504     "wires": [
505       [
506         "1962949c.26443b"
507       ]
508     ]
509   },
510   {
511     "id": "1962949c.26443b",
512     "type": "set",
513     "name": "set id",
514     "xml": "<set>\n<parameter name='prop.dci-connects.id' value='`$service-data.networks.network[$tmp.nidx].network-data.network-request-input.network-input-parameters.param[$idx].value`' />\n",
515     "comments": "",
516     "x": 1845.9998321533203,
517     "y": 297.8175411224365,
518     "z": "4f2829e5.fc576",
519     "wires": []
520   },
521   {
522     "id": "517a5a14.a94154",
523     "type": "block",
524     "name": "block : executeSite1",
525     "xml": "<block atomic=\"true\">",
526     "atomic": "true",
527     "comments": "",
528     "outputs": 1,
529     "x": 766.3333435058594,
530     "y": 300.8176679611206,
531     "z": "4f2829e5.fc576",
532     "wires": [
533       [
534         "13dfccf8.bd0803",
535         "9bf0ea3a.343b6"
536       ]
537     ]
538   },
539   {
540     "id": "8eb2a0d4.825dc8",
541     "type": "set",
542     "name": "set object-path",
543     "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/network-topology/'` \" />\n \n",
544     "comments": "",
545     "x": 1081.3373260498047,
546     "y": 821.8607425689697,
547     "z": "4f2829e5.fc576",
548     "wires": []
549   },
550   {
551     "id": "56c4779e.6fd13",
552     "type": "set",
553     "name": "set networkId",
554     "xml": "<set>\n<parameter name='networkId' value='`$network-topology-operation-input.network-information.network-id`' />\n",
555     "comments": "",
556     "x": 1075.622959136963,
557     "y": 784.7178506851196,
558     "z": "4f2829e5.fc576",
559     "wires": []
560   },
561   {
562     "id": "efd1462b.b12ac8",
563     "type": "block",
564     "name": "block : saveNetworkData",
565     "xml": "<block atomic=\"true\">",
566     "atomic": "true",
567     "comments": "",
568     "outputs": 1,
569     "x": 818.3333969116211,
570     "y": 760.6666917800903,
571     "z": "4f2829e5.fc576",
572     "wires": [
573       [
574         "56c4779e.6fd13",
575         "8eb2a0d4.825dc8",
576         "cc5c05c.b33c178",
577         "36a63a6b.ba56a6"
578       ]
579     ]
580   },
581   {
582     "id": "edaf65d1.c9376",
583     "type": "comment",
584     "name": "TODO",
585     "info": "Currently deactivate does deletion too, later divide in two phases.",
586     "comments": "",
587     "x": 700.3333358764648,
588     "y": 54,
589     "z": "4f2829e5.fc576",
590     "wires": []
591   },
592   {
593     "id": "cc5c05c.b33c178",
594     "type": "set",
595     "name": "copy input to service-data",
596     "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",
597     "comments": "",
598     "x": 1111.3334045410156,
599     "y": 741.0000038146973,
600     "z": "4f2829e5.fc576",
601     "wires": []
602   },
603   {
604     "id": "36a63a6b.ba56a6",
605     "type": "set",
606     "name": "set network-level-oper-status",
607     "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",
608     "comments": "",
609     "x": 1125.3333358764648,
610     "y": 868.9999618530273,
611     "z": "4f2829e5.fc576",
612     "wires": []
613   },
614   {
615     "id": "73a3e34f.020a74",
616     "type": "delete",
617     "name": "delete underlay configuration in AAI",
618     "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",
619     "comments": "",
620     "outputs": 1,
621     "x": 855,
622     "y": 928,
623     "z": "4f2829e5.fc576",
624     "wires": [
625       []
626     ]
627   },
628   {
629     "id": "f2e7b7ab.8ad1d",
630     "type": "execute",
631     "name": "execute Properties",
632     "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",
633     "comments": "",
634     "outputs": 1,
635     "x": 1255,
636     "y": 490,
637     "z": "4f2829e5.fc576",
638     "wires": [
639       []
640     ]
641   },
642   {
643     "id": "c98e6def.0e6fb8",
644     "type": "execute",
645     "name": "execute RestApiCallNode Get token",
646     "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\"/>",
647     "comments": "",
648     "outputs": 1,
649     "x": 1462,
650     "y": 574,
651     "z": "4f2829e5.fc576",
652     "wires": [
653       [
654         "2ccb6350.67574c",
655         "5977545b.66d21c"
656       ]
657     ]
658   },
659   {
660     "id": "2ccb6350.67574c",
661     "type": "success",
662     "name": "success",
663     "xml": "<outcome value='success'>\n",
664     "comments": "",
665     "outputs": 1,
666     "x": 1702,
667     "y": 537,
668     "z": "4f2829e5.fc576",
669     "wires": [
670       [
671         "b77a0163.0800d"
672       ]
673     ]
674   },
675   {
676     "id": "5977545b.66d21c",
677     "type": "failure",
678     "name": "failure",
679     "xml": "<outcome value='failure'>\n",
680     "comments": "",
681     "outputs": 1,
682     "x": 1709.25,
683     "y": 603.6428833007812,
684     "z": "4f2829e5.fc576",
685     "wires": [
686       [
687         "ad04fb75.6d618"
688       ]
689     ]
690   },
691   {
692     "id": "b77a0163.0800d",
693     "type": "set",
694     "name": "set token-id",
695     "xml": "<set>\n<parameter name='prop.sdncRestApi.token_id' value='$token-result.token_id' />\n",
696     "comments": "",
697     "x": 1887,
698     "y": 534,
699     "z": "4f2829e5.fc576",
700     "wires": []
701   },
702   {
703     "id": "ad04fb75.6d618",
704     "type": "returnFailure",
705     "name": "return failure",
706     "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",
707     "comments": "",
708     "x": 1890,
709     "y": 602.3929443359375,
710     "z": "4f2829e5.fc576",
711     "wires": []
712   }
713 ]