SDWAN flow based end-end test and issue fix
[sdnc/oam.git] / platform-logic / generic-resource-api / src / main / json / GENERIC-RESOURCE-API_sdwan-vnf-topology-operation-device-activate.json
1 [
2   {
3     "id": "50195fc6.898bb",
4     "type": "comment",
5     "name": "sdwan-vnf-topology-operation-device-activate",
6     "info": "",
7     "comments": "",
8     "x": 550.00390625,
9     "y": 71.00390625,
10     "z": "c21457e5.a6cbc8",
11     "wires": []
12   },
13   {
14     "id": "85d78052.fe7cc",
15     "type": "service-logic",
16     "name": "GENERIC-RESOURCE-API ${project.version}",
17     "module": "GENERIC-RESOURCE-API",
18     "version": "${project.version}",
19     "comments": "",
20     "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}'>",
21     "outputs": 1,
22     "x": 229.94481658935547,
23     "y": 142.0041732788086,
24     "z": "c21457e5.a6cbc8",
25     "wires": [
26       [
27         "323cadd3.27c0d2"
28       ]
29     ]
30   },
31   {
32     "id": "aaa38f17.f307a",
33     "type": "dgstart",
34     "name": "DGSTART",
35     "outputs": 1,
36     "x": 150.65911102294922,
37     "y": 79.76606369018555,
38     "z": "c21457e5.a6cbc8",
39     "wires": [
40       [
41         "85d78052.fe7cc"
42       ]
43     ]
44   },
45   {
46     "id": "220347f8.1484e8",
47     "type": "block",
48     "name": "block : atomic",
49     "xml": "<block atomic=\"true\">",
50     "atomic": "true",
51     "outputs": 1,
52     "x": 225.3257827758789,
53     "y": 421.43274879455566,
54     "z": "c21457e5.a6cbc8",
55     "wires": [
56       [
57         "e6b80f71.25bd4",
58         "41d21371.3482cc",
59         "ede17b3a.f75148",
60         "d7029e79.59672",
61         "6ae18188.f2044",
62         "f628964.b562168",
63         "120defaf.28edc",
64         "46c583fa.d0b40c",
65         "139f4e2.66d6eb2",
66         "a27fb783.ef2f48",
67         "bcf0047f.528cc8",
68         "981acfda.e23ab",
69         "86570f1a.fe5e8",
70         "fba2af80.f96de"
71       ]
72     ]
73   },
74   {
75     "id": "41d21371.3482cc",
76     "type": "returnSuccess",
77     "name": "return success",
78     "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",
79     "comments": "",
80     "x": 624.9925231933594,
81     "y": 1066.0995807647705,
82     "z": "c21457e5.a6cbc8",
83     "wires": []
84   },
85   {
86     "id": "e6b80f71.25bd4",
87     "type": "set",
88     "name": "set vnf-level-oper-status to Active",
89     "xml": "<set>\n<parameter name='service-data.vnfs.vnf[$tmp.vidx].vnf-data.vnf-level-oper-status.order-status' value='Active' />\n<parameter name='service-data.vnfs.vnf[$tmp.vidx].vnf-data.vnf-level-oper-status.last-rpc-action' value='`$vnf-topology-operation-input.sdnc-request-header.svc-action`' />\n<parameter name='service-data.vnfs.vnf[$tmp.vidx].vnf-data.vnf-level-oper-status.last-action' value='`$vnf-topology-operation-input.request-information.request-action`' />\n",
90     "comments": "",
91     "x": 706.472583770752,
92     "y": 873.4367294311523,
93     "z": "c21457e5.a6cbc8",
94     "wires": []
95   },
96   {
97     "id": "6ae18188.f2044",
98     "type": "set",
99     "name": "copy input data to service data",
100     "xml": "<set>\n<!--parameter name='service-data.vnfs.vnf[$tmp.vidx].vnf-id' value='`$vnf-topology-operation-input.vnf-information.vnf-id`' /-->\n<parameter name='service-data.vnfs.vnf[$tmp.vidx].vnf-data.sdnc-request-header.' value='`$vnf-topology-operation-input.sdnc-request-header.`' />\n<parameter name='service-data.vnfs.vnf[$tmp.vidx].vnf-data.request-information.' value='`$vnf-topology-operation-input.request-information.`' />\n<parameter name='service-data.vnfs.vnf[$tmp.vidx].vnf-data.service-information.' value='`$vnf-topology-operation-input.service-information.`' />\n<parameter name='service-data.vnfs.vnf[$tmp.vidx].vnf-data.vnf-information.' value='`$vnf-topology-operation-input.vnf-information.`' />\n",
101     "comments": "",
102     "x": 684.3257751464844,
103     "y": 929.4329051971436,
104     "z": "c21457e5.a6cbc8",
105     "wires": []
106   },
107   {
108     "id": "4cad5392.24fc9c",
109     "type": "comment",
110     "name": "make sure this VNF doesn't exist already",
111     "info": "",
112     "comments": "",
113     "x": 1422.5162811279297,
114     "y": 644.9566164016724,
115     "z": "c21457e5.a6cbc8",
116     "wires": []
117   },
118   {
119     "id": "a27fb783.ef2f48",
120     "type": "save",
121     "name": "save deviceInstance configuration in AAI",
122     "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='device' \n      key='device.id = $vnf-topology-operation-input.vnf-information.vnf-id' >\n<parameter name='id' value='`$vnf-topology-operation-input.vnf-information.vnf-id`' />\n<parameter name='device-id' value='`$deviceResp.success[0].id`' />\n<parameter name='operational-status' value='Active' />",
123     "comments": "",
124     "outputs": 1,
125     "x": 708.6592712402344,
126     "y": 979.3219051361084,
127     "z": "c21457e5.a6cbc8",
128     "wires": [
129       []
130     ]
131   },
132   {
133     "id": "323cadd3.27c0d2",
134     "type": "method",
135     "name": "method sdwan-vnf-topology-operation-device-activate",
136     "xml": "<method rpc='sdwan-vnf-topology-operation-device-activate' mode='sync'>\n",
137     "comments": "",
138     "outputs": 1,
139     "x": 241.65911102294922,
140     "y": 236.3524055480957,
141     "z": "c21457e5.a6cbc8",
142     "wires": [
143       [
144         "220347f8.1484e8"
145       ]
146     ]
147   },
148   {
149     "id": "ede17b3a.f75148",
150     "type": "set",
151     "name": "set vnfId and vnf-object-path",
152     "xml": "<set>\n<parameter name='vnfId' value='`$vnf-topology-operation-input.vnf-information.vnf-id`' />\n<parameter name=\"vnf-object-path\" value=\"`'restconf/config/GENERIC-RESOURCE-API:services/service/'  + $vnf-topology-operation-input.service-information.service-instance-id  + '/service-data/vnfs/vnf/'  + $vnf-topology-operation-input.vnf-information.vnf-id  + '/vnf-data/'` \" />",
153     "comments": "",
154     "x": 687.6592254638672,
155     "y": 822.352541923523,
156     "z": "c21457e5.a6cbc8",
157     "wires": []
158   },
159   {
160     "id": "fba2af80.f96de",
161     "type": "execute",
162     "name": "execute RestApiCallNode Create Devcie Instance",
163     "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"templateFileName\" value=\"`$prop.restapi.templateDir + '/sdwan-device.json'`\" />\n<parameter name=\"restapiUrl\" value=\"`$prop.sdncRestApi.thirdpartySdnc.url + '/controller/campus/v3/devices'`\" />\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=\"put\"/>\n<parameter name=\"responsePrefix\" value=\"deviceResp\"/>\n<parameter name=\"trustStoreFileName\" value=\"/opt/onap/sdnc/data/stores/truststore.openecomp.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`\" />",
164     "comments": "",
165     "outputs": 1,
166     "x": 763.1037368774414,
167     "y": 649.1304225921631,
168     "z": "c21457e5.a6cbc8",
169     "wires": [
170       [
171         "1a1378b0.178537",
172         "d8dd7f14.0ab02"
173       ]
174     ]
175   },
176   {
177     "id": "86570f1a.fe5e8",
178     "type": "execute",
179     "name": "execute RestApiCallNode Get token",
180     "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\"/>\n<parameter name=\"trustStoreFileName\" value=\"/opt/onap/sdnc/data/stores/truststore.openecomp.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\"/>",
181     "comments": "",
182     "outputs": 1,
183     "x": 717.1036605834961,
184     "y": 519.1302967071533,
185     "z": "c21457e5.a6cbc8",
186     "wires": [
187       [
188         "946c47ae.42bcf8",
189         "ddd15567.8fafd8"
190       ]
191     ]
192   },
193   {
194     "id": "946c47ae.42bcf8",
195     "type": "success",
196     "name": "success",
197     "xml": "<outcome value='success'>\n",
198     "comments": "",
199     "outputs": 1,
200     "x": 949.1036605834961,
201     "y": 499.1302967071533,
202     "z": "c21457e5.a6cbc8",
203     "wires": [
204       [
205         "8008bf96.00803"
206       ]
207     ]
208   },
209   {
210     "id": "ddd15567.8fafd8",
211     "type": "failure",
212     "name": "failure",
213     "xml": "<outcome value='failure'>\n",
214     "comments": "",
215     "outputs": 1,
216     "x": 941.3536605834961,
217     "y": 540.7731800079346,
218     "z": "c21457e5.a6cbc8",
219     "wires": [
220       [
221         "87a9f03d.7da59"
222       ]
223     ]
224   },
225   {
226     "id": "8008bf96.00803",
227     "type": "set",
228     "name": "set token-id",
229     "xml": "<set>\n<parameter name='prop.sdncRestApi.token_id' value='`$token-result.data.token_id`' />\n",
230     "comments": "",
231     "x": 1086.103660583496,
232     "y": 499.1302967071533,
233     "z": "c21457e5.a6cbc8",
234     "wires": []
235   },
236   {
237     "id": "87a9f03d.7da59",
238     "type": "block",
239     "name": "block",
240     "xml": "<block>\n",
241     "atomic": "false",
242     "comments": "",
243     "outputs": 1,
244     "x": 1067.437156677246,
245     "y": 541.0192127227783,
246     "z": "c21457e5.a6cbc8",
247     "wires": [
248       []
249     ]
250   },
251   {
252     "id": "e45b42b8.e6dbb",
253     "type": "comment",
254     "name": "Do Nothing",
255     "info": "",
256     "comments": "",
257     "x": 1328.9927024841309,
258     "y": 341.9080295562744,
259     "z": "c21457e5.a6cbc8",
260     "wires": []
261   },
262   {
263     "id": "928cde96.7898d",
264     "type": "block",
265     "name": "block : atomic",
266     "xml": "<block atomic=\"true\">",
267     "atomic": "true",
268     "comments": "",
269     "outputs": 1,
270     "x": 1189.7702026367188,
271     "y": 619.0192108154297,
272     "z": "c21457e5.a6cbc8",
273     "wires": [
274       []
275     ]
276   },
277   {
278     "id": "d1dae5c1.63a508",
279     "type": "returnFailure",
280     "name": "return failure",
281     "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 Activate Device rest api\" />\n",
282     "comments": "",
283     "x": 1191.2147827148438,
284     "y": 669.574743270874,
285     "z": "c21457e5.a6cbc8",
286     "wires": []
287   },
288   {
289     "id": "d8dd7f14.0ab02",
290     "type": "failure",
291     "name": "failure",
292     "xml": "<outcome value='failure'>\n",
293     "comments": "",
294     "outputs": 1,
295     "x": 1038.2146263122559,
296     "y": 672.5746974945068,
297     "z": "c21457e5.a6cbc8",
298     "wires": [
299       [
300         "d1dae5c1.63a508"
301       ]
302     ]
303   },
304   {
305     "id": "1a1378b0.178537",
306     "type": "success",
307     "name": "success",
308     "xml": "<outcome value='success'>\n",
309     "comments": "",
310     "outputs": 1,
311     "x": 1037.6591415405273,
312     "y": 616.2414093017578,
313     "z": "c21457e5.a6cbc8",
314     "wires": [
315       [
316         "928cde96.7898d"
317       ]
318     ]
319   },
320   {
321     "id": "f628964.b562168",
322     "type": "set",
323     "name": "set deviceId to service data",
324     "xml": "<set>\n<parameter name='service-data.vnfs.vnf[$tmp.vidx].vnf-data.vnf-request-input.vnf-input-parameters.param[$service-data.vnfs.vnf[$tmp.vidx].vnf-data.vnf-request-input.vnf-input-parameters.param_length].name' value=\"deviceId\" />\n<parameter name='service-data.vnfs.vnf[$tmp.vidx].vnf-data.vnf-request-input.vnf-input-parameters.param[$service-data.vnfs.vnf[$tmp.vidx].vnf-data.vnf-request-input.vnf-input-parameters.param_length].value' value='`$deviceResp.success[0].id`' />\n<parameter name='service-data.vnfs.vnf[$tmp.vidx].vnf-data.vnf-request-input.vnf-input-parameters.param_length' value='`$service-data.vnfs.vnf[$tmp.vidx].vnf-data.vnf-request-input.vnf-input-parameters.param_length + 1`' />\n",
325     "comments": "",
326     "x": 693.6593780517578,
327     "y": 774.3527889251709,
328     "z": "c21457e5.a6cbc8",
329     "wires": []
330   },
331   {
332     "id": "7d88138b.724c0c",
333     "type": "comment",
334     "name": "AAI resource need to update",
335     "info": "",
336     "comments": "",
337     "x": 1019.6592254638672,
338     "y": 933.352541923523,
339     "z": "c21457e5.a6cbc8",
340     "wires": []
341   },
342   {
343     "id": "981acfda.e23ab",
344     "type": "get-resource",
345     "name": "get-resource esr-thirdparty-sdnc",
346     "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 = SDWANController AND \n\t\t     depth = '1'\"\n        pfx='tmp.aai.esr-thirdparty-sdnc' local-only='false' >\n\n",
347     "comments": "",
348     "outputs": 1,
349     "x": 711.6593246459961,
350     "y": 423.35251808166504,
351     "z": "c21457e5.a6cbc8",
352     "wires": [
353       [
354         "d90f92f1.56733",
355         "58ca0b39.c48274",
356         "871628e8.c20ff8"
357       ]
358     ]
359   },
360   {
361     "id": "d90f92f1.56733",
362     "type": "success",
363     "name": "success",
364     "xml": "<outcome value='success'>\n",
365     "comments": "",
366     "outputs": 1,
367     "x": 952.6593818664551,
368     "y": 348.3524923324585,
369     "z": "c21457e5.a6cbc8",
370     "wires": [
371       [
372         "9c017cb1.5ef39"
373       ]
374     ]
375   },
376   {
377     "id": "9c017cb1.5ef39",
378     "type": "set",
379     "name": "set controller data",
380     "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.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",
381     "comments": "",
382     "x": 1129.159423828125,
383     "y": 339.35248136520386,
384     "z": "c21457e5.a6cbc8",
385     "wires": []
386   },
387   {
388     "id": "58ca0b39.c48274",
389     "type": "not-found",
390     "name": "not-found",
391     "xml": "<outcome value='not-found'>\n",
392     "comments": "",
393     "outputs": 1,
394     "x": 944.150218963623,
395     "y": 396.92654037475586,
396     "z": "c21457e5.a6cbc8",
397     "wires": [
398       [
399         "48a5b30d.99482c"
400       ]
401     ]
402   },
403   {
404     "id": "48a5b30d.99482c",
405     "type": "returnFailure",
406     "name": "return failure",
407     "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",
408     "comments": "",
409     "x": 1117.7216300964355,
410     "y": 385.21227645874023,
411     "z": "c21457e5.a6cbc8",
412     "wires": []
413   },
414   {
415     "id": "871628e8.c20ff8",
416     "type": "other",
417     "name": "other",
418     "xml": "<outcome value='Other'>\n",
419     "comments": "",
420     "outputs": 1,
421     "x": 936.483226776123,
422     "y": 438.2598533630371,
423     "z": "c21457e5.a6cbc8",
424     "wires": [
425       [
426         "59c1c9f6.0040b8"
427       ]
428     ]
429   },
430   {
431     "id": "59c1c9f6.0040b8",
432     "type": "returnFailure",
433     "name": "return failure",
434     "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",
435     "comments": "",
436     "x": 1124.2557830810547,
437     "y": 433.69904613494873,
438     "z": "c21457e5.a6cbc8",
439     "wires": []
440   },
441   {
442     "id": "bcf0047f.528cc8",
443     "type": "save",
444     "name": "save service relationship in AAI",
445     "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='service-instance:relationship-list' \n      key='service-instance.service-instance-id = $service-data.service-information.service-instance-id \n         AND customer.global-customer-id = $service-data.vnfs.vnf[$vnf-index].vnf-data.service-information.global-customer-id \n         AND service-subscription.service-type = $service-data.vnfs.vnf[$vnf-index].vnf-data.service-information.subscription-service-type' \n      force=\"true\" pfx=\"tmp.AnAI-data\">\n<parameter name=\"relationship-list.relationship[0].related-to\" value=\"device\" />\n<parameter name=\"relationship-list.relationship[0].related-link\" value=\"`'/network/devices/device/' + $vnf-topology-operation-input.vnf-information.vnf-id`\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-key\" value=\"device.id\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-value\" value=\"`$vnf-topology-operation-input.vnf-information.vnf-id`\" />",
446     "comments": "",
447     "outputs": 1,
448     "x": 682.6594467163086,
449     "y": 1026.0994539260864,
450     "z": "c21457e5.a6cbc8",
451     "wires": [
452       []
453     ]
454   },
455   {
456     "id": "d7029e79.59672",
457     "type": "record",
458     "name": "record",
459     "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.FileRecorder\">\n<parameter name=\"file\" value=\"/opt/opendaylight/current/data/log/svclogic.log\"/>\n<parameter name=\"field1\" value=\"__TIMESTAMP__\"/>\n<parameter name=\"field2\" value=\"Provided alloted resource length\"/>\n<parameter name=\"field3\" value=\"'parameters length'\"/>\n<parameter name=\"field4\" value='`$vnf-topology-operation-input.vnf-request-input.vnf-input-parameters.param_length`'/>\n\n\n\n",
460     "comments": "",
461     "outputs": 1,
462     "x": 656.6591262817383,
463     "y": 301.0190849304199,
464     "z": "c21457e5.a6cbc8",
465     "wires": [
466       []
467     ]
468   },
469   {
470     "id": "120defaf.28edc",
471     "type": "for",
472     "name": "for vidx..service-data.vnfs.vnf_length[]",
473     "xml": "<for index='vidx' start='0' end='`$service-data.vnfs.vnf_length`' >\n",
474     "comments": "",
475     "outputs": 1,
476     "x": 744.6904144287109,
477     "y": 187.0351848602295,
478     "z": "c21457e5.a6cbc8",
479     "wires": [
480       [
481         "2fb6d9ed.49aab6"
482       ]
483     ]
484   },
485   {
486     "id": "2fb6d9ed.49aab6",
487     "type": "block",
488     "name": "block",
489     "xml": "<block>\n",
490     "atomic": "false",
491     "comments": "",
492     "outputs": 1,
493     "x": 993.0400085449219,
494     "y": 187.57525253295898,
495     "z": "c21457e5.a6cbc8",
496     "wires": [
497       [
498         "974bf0fe.dc4fc"
499       ]
500     ]
501   },
502   {
503     "id": "974bf0fe.dc4fc",
504     "type": "switchNode",
505     "name": "switch vnfid found",
506     "xml": "<switch test=\"`$service-data.vnfs.vnf[$vidx].vnf-id == $vnf-topology-operation-input.vnf-information.vnf-id`\">\n\n",
507     "comments": "",
508     "outputs": 1,
509     "x": 1147.1196060180664,
510     "y": 187.28533458709717,
511     "z": "c21457e5.a6cbc8",
512     "wires": [
513       [
514         "82b55f94.090c5"
515       ]
516     ]
517   },
518   {
519     "id": "e03d76d9.cc3a98",
520     "type": "block",
521     "name": "block : atomic",
522     "xml": "<block atomic=\"true\">",
523     "atomic": "true",
524     "outputs": 1,
525     "x": 1440.7171173095703,
526     "y": 188.5856475830078,
527     "z": "c21457e5.a6cbc8",
528     "wires": [
529       [
530         "dd0e8d25.544ad",
531         "d5fff7a1.3b1048",
532         "1fe66a57.7e4926"
533       ]
534     ]
535   },
536   {
537     "id": "82b55f94.090c5",
538     "type": "outcomeTrue",
539     "name": "true",
540     "xml": "<outcome value='true'>\n",
541     "comments": "",
542     "outputs": 1,
543     "x": 1302.0715980529785,
544     "y": 188.1780138015747,
545     "z": "c21457e5.a6cbc8",
546     "wires": [
547       [
548         "e03d76d9.cc3a98"
549       ]
550     ]
551   },
552   {
553     "id": "d5fff7a1.3b1048",
554     "type": "set",
555     "name": "set vnf-request-input.",
556     "xml": "<set>\n<parameter name='vnf-request-input.' value='`$ctx.vnf-data.vnf-data.vnf-request-input.`' />\n\n",
557     "comments": "",
558     "x": 1682.0499725341797,
559     "y": 144.58570766448975,
560     "z": "c21457e5.a6cbc8",
561     "wires": []
562   },
563   {
564     "id": "dd0e8d25.544ad",
565     "type": "set",
566     "name": "set tmp.vidx and ctx.vnf-data",
567     "xml": "<set>\n<parameter name='tmp.vidx' value='`$vidx`' />\n<parameter name='ctx.vnf-data.' value='`$service-data.vnfs.vnf[$vidx].`' />\n",
568     "comments": "",
569     "x": 1709.6036834716797,
570     "y": 97.92807197570801,
571     "z": "c21457e5.a6cbc8",
572     "wires": []
573   },
574   {
575     "id": "1fe66a57.7e4926",
576     "type": "call",
577     "name": "call sdwan-get-device-param",
578     "xml": "<call module='GENERIC-RESOURCE-API' rpc='sdwan-get-device-param' mode='sync' >\n",
579     "comments": "",
580     "outputs": 1,
581     "x": 1686.6904220581055,
582     "y": 207.03517818450928,
583     "z": "c21457e5.a6cbc8",
584     "wires": [
585       []
586     ]
587   },
588   {
589     "id": "46c583fa.d0b40c",
590     "type": "switchNode",
591     "name": "switch tmp.vidx ",
592     "xml": "<switch test=\"`$tmp.vidx`\">\n\n",
593     "comments": "",
594     "outputs": 1,
595     "x": 675.690299987793,
596     "y": 248.03515625,
597     "z": "c21457e5.a6cbc8",
598     "wires": [
599       [
600         "47e07fa8.46bc3"
601       ]
602     ]
603   },
604   {
605     "id": "47e07fa8.46bc3",
606     "type": "outcome",
607     "name": "NULL",
608     "xml": "<outcome value=''>\n",
609     "comments": "",
610     "outputs": 1,
611     "x": 823.1189422607422,
612     "y": 247.60656642913818,
613     "z": "c21457e5.a6cbc8",
614     "wires": [
615       [
616         "b8303d6e.293f7"
617       ]
618     ]
619   },
620   {
621     "id": "b8303d6e.293f7",
622     "type": "returnFailure",
623     "name": "return failure",
624     "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=\"vnf-topology-operation-input.vnf-request-input.vnf-id not found in service-data\" />\n",
625     "comments": "",
626     "x": 972.5476684570312,
627     "y": 248.74948406219482,
628     "z": "c21457e5.a6cbc8",
629     "wires": []
630   },
631   {
632     "id": "139f4e2.66d6eb2",
633     "type": "execute",
634     "name": "execute Properties",
635     "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",
636     "comments": "",
637     "outputs": 1,
638     "x": 670.690299987793,
639     "y": 344.03515625,
640     "z": "c21457e5.a6cbc8",
641     "wires": [
642       []
643     ]
644   }
645 ]