84599e1f5b1157d1f26517b10627a6cf360d50d3
[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": "c57da515.f74988",
4     "type": "comment",
5     "name": "sdwan-vnf-topology-operation-device-activate",
6     "info": "",
7     "comments": "",
8     "x": 571.344856262207,
9     "y": 61,
10     "z": "48050f50.e2132",
11     "wires": []
12   },
13   {
14     "id": "e16a751b.7b48a8",
15     "type": "service-logic",
16     "name": "GENERIC-RESOURCE-API 1.2.1-SNAPSHOT",
17     "module": "GENERIC-RESOURCE-API",
18     "version": "1.2.1-SNAPSHOT",
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='1.2.1-SNAPSHOT'>",
21     "outputs": 1,
22     "x": 251.2857666015625,
23     "y": 132.0002670288086,
24     "z": "48050f50.e2132",
25     "wires": [
26       [
27         "e3b9d3fc.f582d"
28       ]
29     ]
30   },
31   {
32     "id": "22a66427.5103ec",
33     "type": "dgstart",
34     "name": "DGSTART",
35     "outputs": 1,
36     "x": 172.00006103515625,
37     "y": 69.76215744018555,
38     "z": "48050f50.e2132",
39     "wires": [
40       [
41         "e16a751b.7b48a8"
42       ]
43     ]
44   },
45   {
46     "id": "5e9c748a.d0c93c",
47     "type": "block",
48     "name": "block : atomic",
49     "xml": "<block atomic=\"true\">",
50     "atomic": "true",
51     "outputs": 1,
52     "x": 246.66673278808594,
53     "y": 411.42884254455566,
54     "z": "48050f50.e2132",
55     "wires": [
56       [
57         "164a289d.b889e7",
58         "c60faf33.f797b",
59         "138d258a.ddadba",
60         "2a9fc936.08f4c6",
61         "b4b11b51.f47008",
62         "88ab4e5f.36358",
63         "15d0a117.420b6f",
64         "34088ab3.22cba6",
65         "96fd10aa.3117f",
66         "3c7b9f2b.d2464",
67         "4d7e6631.03a558",
68         "58df9113.78ab9",
69         "971b776.085e288",
70         "64ab23e7.432f0c"
71       ]
72     ]
73   },
74   {
75     "id": "c60faf33.f797b",
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": 646.3334732055664,
81     "y": 1056.0956745147705,
82     "z": "48050f50.e2132",
83     "wires": []
84   },
85   {
86     "id": "164a289d.b889e7",
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": 727.813533782959,
92     "y": 863.4328231811523,
93     "z": "48050f50.e2132",
94     "wires": []
95   },
96   {
97     "id": "b4b11b51.f47008",
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": 705.6667251586914,
103     "y": 919.4289989471436,
104     "z": "48050f50.e2132",
105     "wires": []
106   },
107   {
108     "id": "49141d65.bdcea4",
109     "type": "comment",
110     "name": "make sure this VNF doesn't exist already",
111     "info": "",
112     "comments": "",
113     "x": 1443.8572311401367,
114     "y": 634.9527101516724,
115     "z": "48050f50.e2132",
116     "wires": []
117   },
118   {
119     "id": "3c7b9f2b.d2464",
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[0].id' />\n<parameter name='operational-status' value='Active' />",
123     "comments": "",
124     "outputs": 1,
125     "x": 730.0002212524414,
126     "y": 969.3179988861084,
127     "z": "48050f50.e2132",
128     "wires": [
129       []
130     ]
131   },
132   {
133     "id": "e3b9d3fc.f582d",
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": 263.00006103515625,
140     "y": 226.3484992980957,
141     "z": "48050f50.e2132",
142     "wires": [
143       [
144         "5e9c748a.d0c93c"
145       ]
146     ]
147   },
148   {
149     "id": "138d258a.ddadba",
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": 709.0001754760742,
155     "y": 812.348635673523,
156     "z": "48050f50.e2132",
157     "wires": []
158   },
159   {
160     "id": "64ab23e7.432f0c",
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`\" />\n\n\n<!--execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"templateFileName\" value=\"`$prop.restapi.templateDir + '/sdwan-wan-port.json'`\" />\n<parameter name=\"restapiUrl\" value=\"`$prop.sdncRestApi.thirdpartySdnc.url + '/controller/campus/v1/sdwan/net/transport-network-ports'`\" />\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=\"post\"/>\n<parameter name=\"responsePrefix\" value=\"wanPortResp\"/>\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": 784.4446868896484,
167     "y": 639.1265163421631,
168     "z": "48050f50.e2132",
169     "wires": [
170       [
171         "fe651cbe.71dae",
172         "4a034411.478adc"
173       ]
174     ]
175   },
176   {
177     "id": "971b776.085e288",
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": 738.4446105957031,
184     "y": 509.1263904571533,
185     "z": "48050f50.e2132",
186     "wires": [
187       [
188         "f5a9152f.d977a8",
189         "12711b8c.b16b14"
190       ]
191     ]
192   },
193   {
194     "id": "f5a9152f.d977a8",
195     "type": "success",
196     "name": "success",
197     "xml": "<outcome value='success'>\n",
198     "comments": "",
199     "outputs": 1,
200     "x": 970.4446105957031,
201     "y": 489.1263904571533,
202     "z": "48050f50.e2132",
203     "wires": [
204       [
205         "3cccbb3c.73ecb4"
206       ]
207     ]
208   },
209   {
210     "id": "12711b8c.b16b14",
211     "type": "failure",
212     "name": "failure",
213     "xml": "<outcome value='failure'>\n",
214     "comments": "",
215     "outputs": 1,
216     "x": 962.6946105957031,
217     "y": 530.7692737579346,
218     "z": "48050f50.e2132",
219     "wires": [
220       [
221         "3e406e18.5253e2"
222       ]
223     ]
224   },
225   {
226     "id": "3cccbb3c.73ecb4",
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": 1107.4446105957031,
232     "y": 489.1263904571533,
233     "z": "48050f50.e2132",
234     "wires": []
235   },
236   {
237     "id": "3e406e18.5253e2",
238     "type": "block",
239     "name": "block",
240     "xml": "<block>\n",
241     "atomic": "false",
242     "comments": "",
243     "outputs": 1,
244     "x": 1088.7781066894531,
245     "y": 531.0153064727783,
246     "z": "48050f50.e2132",
247     "wires": [
248       []
249     ]
250   },
251   {
252     "id": "647f2905.b3b168",
253     "type": "comment",
254     "name": "Do Nothing",
255     "info": "",
256     "comments": "",
257     "x": 1350.333652496338,
258     "y": 331.9041233062744,
259     "z": "48050f50.e2132",
260     "wires": []
261   },
262   {
263     "id": "a8bad102.6b5e9",
264     "type": "block",
265     "name": "block : atomic",
266     "xml": "<block atomic=\"true\">",
267     "atomic": "true",
268     "comments": "",
269     "outputs": 1,
270     "x": 1211.1111526489258,
271     "y": 609.0153045654297,
272     "z": "48050f50.e2132",
273     "wires": [
274       []
275     ]
276   },
277   {
278     "id": "e9b5eb58.3f04d8",
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": 1212.5557327270508,
284     "y": 659.570837020874,
285     "z": "48050f50.e2132",
286     "wires": []
287   },
288   {
289     "id": "4a034411.478adc",
290     "type": "failure",
291     "name": "failure",
292     "xml": "<outcome value='failure'>\n",
293     "comments": "",
294     "outputs": 1,
295     "x": 1059.555576324463,
296     "y": 662.5707912445068,
297     "z": "48050f50.e2132",
298     "wires": [
299       [
300         "e9b5eb58.3f04d8"
301       ]
302     ]
303   },
304   {
305     "id": "fe651cbe.71dae",
306     "type": "success",
307     "name": "success",
308     "xml": "<outcome value='success'>\n",
309     "comments": "",
310     "outputs": 1,
311     "x": 1059.0000915527344,
312     "y": 606.2375030517578,
313     "z": "48050f50.e2132",
314     "wires": [
315       [
316         "a8bad102.6b5e9"
317       ]
318     ]
319   },
320   {
321     "id": "88ab4e5f.36358",
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[0].id`' /-->\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='`$vnf-topology-operation-input.vnf-information.vnf-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": 715.0003280639648,
327     "y": 764.3488826751709,
328     "z": "48050f50.e2132",
329     "wires": []
330   },
331   {
332     "id": "7e5552be.6be08c",
333     "type": "comment",
334     "name": "URL needs to confirm.",
335     "info": "",
336     "comments": "",
337     "x": 763.0001525878906,
338     "y": 581.3486194610596,
339     "z": "48050f50.e2132",
340     "wires": []
341   },
342   {
343     "id": "62f12a96.37bf64",
344     "type": "comment",
345     "name": "AAI resource need to update",
346     "info": "",
347     "comments": "",
348     "x": 1041.0001754760742,
349     "y": 923.348635673523,
350     "z": "48050f50.e2132",
351     "wires": []
352   },
353   {
354     "id": "58df9113.78ab9",
355     "type": "get-resource",
356     "name": "get-resource esr-thirdparty-sdnc",
357     "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 = SDWAN-Controller AND \n\t\t     depth = '1'\"\n        pfx='tmp.aai.esr-thirdparty-sdnc' local-only='false' >\n\n",
358     "comments": "",
359     "outputs": 1,
360     "x": 733.0002746582031,
361     "y": 413.34861183166504,
362     "z": "48050f50.e2132",
363     "wires": [
364       [
365         "a6d8f866.73e908",
366         "7fc0e78d.a01498",
367         "1501ba2b.428996"
368       ]
369     ]
370   },
371   {
372     "id": "a6d8f866.73e908",
373     "type": "success",
374     "name": "success",
375     "xml": "<outcome value='success'>\n",
376     "comments": "",
377     "outputs": 1,
378     "x": 974.0003318786621,
379     "y": 338.3485860824585,
380     "z": "48050f50.e2132",
381     "wires": [
382       [
383         "133ac586.e3a64a"
384       ]
385     ]
386   },
387   {
388     "id": "133ac586.e3a64a",
389     "type": "set",
390     "name": "set controller data",
391     "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",
392     "comments": "",
393     "x": 1223.5003852844238,
394     "y": 294.348575592041,
395     "z": "48050f50.e2132",
396     "wires": []
397   },
398   {
399     "id": "7fc0e78d.a01498",
400     "type": "not-found",
401     "name": "not-found",
402     "xml": "<outcome value='not-found'>\n",
403     "comments": "",
404     "outputs": 1,
405     "x": 965.4911689758301,
406     "y": 386.92263412475586,
407     "z": "48050f50.e2132",
408     "wires": [
409       [
410         "6099fe20.b764e"
411       ]
412     ]
413   },
414   {
415     "id": "6099fe20.b764e",
416     "type": "returnFailure",
417     "name": "return failure",
418     "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",
419     "comments": "",
420     "x": 1139.0625801086426,
421     "y": 375.20837020874023,
422     "z": "48050f50.e2132",
423     "wires": []
424   },
425   {
426     "id": "1501ba2b.428996",
427     "type": "other",
428     "name": "other",
429     "xml": "<outcome value='Other'>\n",
430     "comments": "",
431     "outputs": 1,
432     "x": 957.8241767883301,
433     "y": 428.2559471130371,
434     "z": "48050f50.e2132",
435     "wires": [
436       [
437         "49a6b499.06dbac"
438       ]
439     ]
440   },
441   {
442     "id": "49a6b499.06dbac",
443     "type": "returnFailure",
444     "name": "return failure",
445     "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",
446     "comments": "",
447     "x": 1145.5967330932617,
448     "y": 423.69513988494873,
449     "z": "48050f50.e2132",
450     "wires": []
451   },
452   {
453     "id": "b2aff25d.5a4e",
454     "type": "comment",
455     "name": "review and test req",
456     "info": "",
457     "comments": "",
458     "x": 741.0002212524414,
459     "y": 729.3487091064453,
460     "z": "48050f50.e2132",
461     "wires": []
462   },
463   {
464     "id": "61725e4c.10868",
465     "type": "comment",
466     "name": "tmp.thirdparty-sdnc-id to be hardcoded here?",
467     "info": "",
468     "comments": "",
469     "x": 731.0042877197266,
470     "y": 369.3525629043579,
471     "z": "48050f50.e2132",
472     "wires": []
473   },
474   {
475     "id": "4d7e6631.03a558",
476     "type": "save",
477     "name": "save service relationship in AAI",
478     "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`\" />",
479     "comments": "",
480     "outputs": 1,
481     "x": 704.0003967285156,
482     "y": 1016.0955476760864,
483     "z": "48050f50.e2132",
484     "wires": [
485       []
486     ]
487   },
488   {
489     "id": "2a9fc936.08f4c6",
490     "type": "record",
491     "name": "record",
492     "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",
493     "comments": "",
494     "outputs": 1,
495     "x": 678.0000762939453,
496     "y": 291.0151786804199,
497     "z": "48050f50.e2132",
498     "wires": [
499       []
500     ]
501   },
502   {
503     "id": "15d0a117.420b6f",
504     "type": "for",
505     "name": "for vidx..service-data.vnfs.vnf_length[]",
506     "xml": "<for index='vidx' start='0' end='`$service-data.vnfs.vnf_length`' >\n",
507     "comments": "",
508     "outputs": 1,
509     "x": 766.031364440918,
510     "y": 177.0312786102295,
511     "z": "48050f50.e2132",
512     "wires": [
513       [
514         "1b896cda.b979e3"
515       ]
516     ]
517   },
518   {
519     "id": "1b896cda.b979e3",
520     "type": "block",
521     "name": "block",
522     "xml": "<block>\n",
523     "atomic": "false",
524     "comments": "",
525     "outputs": 1,
526     "x": 1014.3809585571289,
527     "y": 177.57134628295898,
528     "z": "48050f50.e2132",
529     "wires": [
530       [
531         "a706d238.291a"
532       ]
533     ]
534   },
535   {
536     "id": "a706d238.291a",
537     "type": "switchNode",
538     "name": "switch vnfid found",
539     "xml": "<switch test=\"`$service-data.vnfs.vnf[$vidx].vnf-id == $vnf-topology-operation-input.vnf-information.vnf-id`\">\n\n",
540     "comments": "",
541     "outputs": 1,
542     "x": 1168.4605560302734,
543     "y": 177.28142833709717,
544     "z": "48050f50.e2132",
545     "wires": [
546       [
547         "5082e995.a70f58"
548       ]
549     ]
550   },
551   {
552     "id": "ea1b1425.d6abb8",
553     "type": "block",
554     "name": "block : atomic",
555     "xml": "<block atomic=\"true\">",
556     "atomic": "true",
557     "outputs": 1,
558     "x": 1462.0580673217773,
559     "y": 178.5817413330078,
560     "z": "48050f50.e2132",
561     "wires": [
562       [
563         "65194b17.7753d4",
564         "65c6f7a.c67d608",
565         "47f60422.f643ac"
566       ]
567     ]
568   },
569   {
570     "id": "5082e995.a70f58",
571     "type": "outcomeTrue",
572     "name": "true",
573     "xml": "<outcome value='true'>\n",
574     "comments": "",
575     "outputs": 1,
576     "x": 1323.4125480651855,
577     "y": 178.1741075515747,
578     "z": "48050f50.e2132",
579     "wires": [
580       [
581         "ea1b1425.d6abb8"
582       ]
583     ]
584   },
585   {
586     "id": "65c6f7a.c67d608",
587     "type": "set",
588     "name": "set vnf-request-input.",
589     "xml": "<set>\n<parameter name='vnf-request-input.' value='`$ctx.vnf-data.vnf-data.vnf-request-input.`' />\n\n",
590     "comments": "",
591     "x": 1703.3909225463867,
592     "y": 134.58180141448975,
593     "z": "48050f50.e2132",
594     "wires": []
595   },
596   {
597     "id": "65194b17.7753d4",
598     "type": "set",
599     "name": "set tmp.vidx and ctx.vnf-data",
600     "xml": "<set>\n<parameter name='tmp.vidx' value='`$vidx`' />\n<parameter name='ctx.vnf-data.' value='`$service-data.vnfs.vnf[$vidx].`' />\n",
601     "comments": "",
602     "x": 1730.9446334838867,
603     "y": 87.92416572570801,
604     "z": "48050f50.e2132",
605     "wires": []
606   },
607   {
608     "id": "47f60422.f643ac",
609     "type": "call",
610     "name": "call sdwan-get-device-param",
611     "xml": "<call module='GENERIC-RESOURCE-API' rpc='sdwan-get-device-param' mode='sync' >\n",
612     "comments": "",
613     "outputs": 1,
614     "x": 1708.0313720703125,
615     "y": 197.03127193450928,
616     "z": "48050f50.e2132",
617     "wires": [
618       []
619     ]
620   },
621   {
622     "id": "34088ab3.22cba6",
623     "type": "switchNode",
624     "name": "switch tmp.vidx ",
625     "xml": "<switch test=\"`$tmp.vidx`\">\n\n",
626     "comments": "",
627     "outputs": 1,
628     "x": 697.03125,
629     "y": 238.03125,
630     "z": "48050f50.e2132",
631     "wires": [
632       [
633         "f352fc21.fd854"
634       ]
635     ]
636   },
637   {
638     "id": "f352fc21.fd854",
639     "type": "outcome",
640     "name": "NULL",
641     "xml": "<outcome value=''>\n",
642     "comments": "",
643     "outputs": 1,
644     "x": 844.4598922729492,
645     "y": 237.60266017913818,
646     "z": "48050f50.e2132",
647     "wires": [
648       [
649         "d74e2e0c.835e1"
650       ]
651     ]
652   },
653   {
654     "id": "d74e2e0c.835e1",
655     "type": "returnFailure",
656     "name": "return failure",
657     "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",
658     "comments": "",
659     "x": 993.8886184692383,
660     "y": 238.74557781219482,
661     "z": "48050f50.e2132",
662     "wires": []
663   },
664   {
665     "id": "96fd10aa.3117f",
666     "type": "execute",
667     "name": "execute Properties",
668     "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",
669     "comments": "",
670     "outputs": 1,
671     "x": 692.03125,
672     "y": 334.03125,
673     "z": "48050f50.e2132",
674     "wires": [
675       []
676     ]
677   }
678 ]