3 "id": "9c3e9355.a9b98",
9 "z": "73283ddb.ad1024",
17 "id": "ce33d12b.fedca",
18 "type": "service-logic",
19 "name": "GENERIC-RESOURCE-API ${project.version}",
20 "module": "GENERIC-RESOURCE-API",
21 "version": "${project.version}",
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}'>",
25 "x": 286.28570556640625,
26 "y": 116.23811149597168,
27 "z": "73283ddb.ad1024",
35 "id": "5efe4e61.39e9f",
37 "name": "method sdwan-vnf-topology-operation-device-deactivate",
38 "xml": "<method rpc='sdwan-vnf-topology-operation-device-deactivate' mode='sync'>\n",
41 "x": 279.42862701416016,
42 "y": 155.9999942779541,
43 "z": "73283ddb.ad1024",
51 "id": "dd73ee5c.ac516",
53 "name": "block : atomic",
54 "xml": "<block atomic=\"true\">",
57 "x": 304.1667289733887,
58 "y": 346.69354248046875,
59 "z": "73283ddb.ad1024",
79 "id": "e4601a05.8a4688",
81 "name": "set vnf in service-data",
82 "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.`' />",
84 "x": 560.0000762939453,
85 "y": 769.0002317428589,
86 "z": "73283ddb.ad1024",
90 "id": "9a1b232.90c38e",
92 "name": "set vnfId and vnf-object-path",
93 "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/'` \" />",
95 "x": 581.5556182861328,
96 "y": 811.2224426269531,
97 "z": "73283ddb.ad1024",
101 "id": "1587e9e4.574f16",
102 "type": "returnSuccess",
103 "name": "return success",
104 "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",
106 "x": 540.3334503173828,
107 "y": 973.7777910232544,
108 "z": "73283ddb.ad1024",
112 "id": "73fbd09e.9edc3",
114 "name": "update SDWAN DeviceInstance status to AAI",
115 "xml": "<update 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='operational-status' value='PendingDelete' />",
118 "x": 630.6630401611328,
119 "y": 914.1478223800659,
120 "z": "73283ddb.ad1024",
126 "id": "3e61d24c.5cc44e",
128 "name": "set vnf-level-oper-status to PendingDelete",
129 "xml": "<set>\n<parameter name='service-data.vnfs.vnf[$tmp.vidx].vnf-data.vnf-level-oper-status.order-status' value='PendingDelete' />\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",
131 "x": 620.0001068115234,
132 "y": 868.0001993179321,
133 "z": "73283ddb.ad1024",
137 "id": "e2ef718b.f3132",
138 "type": "get-resource",
139 "name": "get-resource esr-thirdparty-sdnc",
140 "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",
143 "x": 586.5555725097656,
144 "y": 395.99996280670166,
145 "z": "73283ddb.ad1024",
155 "id": "5f923fb2.e6dac",
158 "xml": "<outcome value='success'>\n",
161 "x": 813.5555801391602,
162 "y": 323.99996185302734,
163 "z": "73283ddb.ad1024",
171 "id": "fec9d567.919a68",
173 "name": "set controller data",
174 "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",
176 "x": 1012.0556945800781,
177 "y": 314.999960899353,
178 "z": "73283ddb.ad1024",
182 "id": "d9f1fd79.ec60b",
185 "xml": "<outcome value='not-found'>\n",
188 "x": 816.0465087890625,
189 "y": 356.573974609375,
190 "z": "73283ddb.ad1024",
198 "id": "8773c32.44abd4",
199 "type": "returnFailure",
200 "name": "return failure",
201 "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",
203 "x": 992.617977142334,
204 "y": 353.85972690582275,
205 "z": "73283ddb.ad1024",
209 "id": "917e23b.f000ae",
212 "xml": "<outcome value='Other'>\n",
215 "x": 808.3795166015625,
216 "y": 397.90728759765625,
217 "z": "73283ddb.ad1024",
225 "id": "639cc54c.25461c",
226 "type": "returnFailure",
227 "name": "return failure",
228 "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",
230 "x": 996.1520729064941,
231 "y": 393.34648036956787,
232 "z": "73283ddb.ad1024",
236 "id": "274a3fd3.76447",
238 "name": "execute RestApiCallNode Get token",
239 "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/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\"/>",
242 "x": 609.4442253112793,
243 "y": 462.1111717224121,
244 "z": "73283ddb.ad1024",
253 "id": "8dc1f56a.c9edd8",
256 "xml": "<outcome value='success'>\n",
259 "x": 844.4442253112793,
260 "y": 440.1111717224121,
261 "z": "73283ddb.ad1024",
269 "id": "2d6a0c7e.fec4b4",
272 "xml": "<outcome value='failure'>\n",
275 "x": 836.6942253112793,
276 "y": 493.75405502319336,
277 "z": "73283ddb.ad1024",
285 "id": "cafcbbb3.279d28",
287 "name": "set token-id",
288 "xml": "<set>\n<parameter name='prop.sdncRestApi.token_id' value='`$token-result.data.token_id`' />\n",
290 "x": 998.4442253112793,
291 "y": 441.1111717224121,
292 "z": "73283ddb.ad1024",
296 "id": "11e446ee.b59549",
299 "xml": "<outcome value='success'>\n",
302 "x": 945.5554428100586,
303 "y": 677.1112051010132,
304 "z": "73283ddb.ad1024",
312 "id": "edc154b6.909958",
314 "name": "block : atomic",
315 "xml": "<block atomic=\"true\">",
319 "x": 1116.6664581298828,
320 "y": 675.8890256881714,
321 "z": "73283ddb.ad1024",
327 "id": "2bb735a3.ef2caa",
334 "x": 984.5552673339844,
335 "y": 490.00000381469727,
336 "z": "73283ddb.ad1024",
342 "id": "d5f90150.5efad",
344 "name": "Do Nothing",
347 "x": 1120.1108411153155,
348 "y": 488.88887956407336,
349 "z": "73283ddb.ad1024",
353 "id": "9375b3d1.4ccfc",
356 "xml": "<outcome value='failure'>\n",
359 "x": 942.1109962463379,
360 "y": 730.4444913864136,
361 "z": "73283ddb.ad1024",
369 "id": "4a4ccb7.2656134",
370 "type": "returnFailure",
371 "name": "return failure",
372 "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 Create vpn rest api\" />\n",
374 "x": 1087.110996246338,
375 "y": 733.4444913864136,
376 "z": "73283ddb.ad1024",
380 "id": "4f2b12fc.8ccc3c",
382 "name": "deviceId need to provide here?",
385 "x": 581.3333320617676,
387 "z": "73283ddb.ad1024",
391 "id": "f5a0eb00.de7588",
393 "name": "tmp.thirdparty-sdnc-id to be hardcoded here?",
396 "x": 635.333366394043,
397 "y": 315.0000591278076,
398 "z": "73283ddb.ad1024",
402 "id": "a4f6705d.1d73",
403 "type": "returnSuccess",
404 "name": "return success",
405 "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",
407 "x": 875.3332824707031,
408 "y": 1718.3333358764648,
409 "z": "73283ddb.ad1024",
413 "id": "3781959e.04703a",
415 "name": "for vidx..service-data.vnfs.vnf_length[]",
416 "xml": "<for index='vidx' start='0' end='`$service-data.vnfs.vnf_length`' >\n",
421 "z": "73283ddb.ad1024",
429 "id": "a8d53377.9812d",
436 "x": 867.3808441162109,
437 "y": 244.5713176727295,
438 "z": "73283ddb.ad1024",
446 "id": "80a46b1e.d041d8",
447 "type": "switchNode",
448 "name": "switch vnfid found",
449 "xml": "<switch test=\"`$service-data.vnfs.vnf[$vidx].vnf-id == $vnf-topology-operation-input.vnf-information.vnf-id`\">\n\n",
452 "x": 1021.4604415893555,
453 "y": 244.28139972686768,
454 "z": "73283ddb.ad1024",
462 "id": "89ce8e98.fff87",
464 "name": "block : atomic",
465 "xml": "<block atomic=\"true\">",
468 "x": 1315.0579528808594,
469 "y": 245.58171272277832,
470 "z": "73283ddb.ad1024",
480 "id": "42dc4574.ff70ac",
481 "type": "outcomeTrue",
483 "xml": "<outcome value='true'>\n",
486 "x": 1176.4124336242676,
487 "y": 245.17407894134521,
488 "z": "73283ddb.ad1024",
496 "id": "3e5b1306.9b698c",
498 "name": "set vnf-request-input.",
499 "xml": "<set>\n<parameter name='vnf-request-input.' value='`$ctx.vnf-data.vnf-data.vnf-request-input.`' />\n\n",
501 "x": 1556.3908081054688,
502 "y": 201.58177280426025,
503 "z": "73283ddb.ad1024",
507 "id": "68c86c18.1fc774",
509 "name": "set tmp.vidx and ctx.vnf-data",
510 "xml": "<set>\n<parameter name='tmp.vidx' value='`$vidx`' />\n<parameter name='ctx.vnf-data.' value='`$service-data.vnfs.vnf[$vidx].`' />\n",
512 "x": 1583.9445190429688,
513 "y": 154.92413711547852,
514 "z": "73283ddb.ad1024",
518 "id": "50ffba36.d6fac4",
520 "name": "call sdwan-get-device-param",
521 "xml": "<call module='GENERIC-RESOURCE-API' rpc='sdwan-get-device-param' mode='sync' >\n",
524 "x": 1561.0312576293945,
525 "y": 264.0312433242798,
526 "z": "73283ddb.ad1024",
532 "id": "2a98908a.1304b",
533 "type": "switchNode",
534 "name": "switch tmp.vidx ",
535 "xml": "<switch test=\"`$tmp.vidx`\">\n\n",
540 "z": "73283ddb.ad1024",
548 "id": "ebb7bd09.45a41",
551 "xml": "<outcome value=''>\n",
554 "x": 683.4598922729492,
555 "y": 285.6026601791382,
556 "z": "73283ddb.ad1024",
564 "id": "94eadd89.567a",
565 "type": "returnFailure",
566 "name": "return failure",
567 "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",
569 "x": 832.8886184692383,
570 "y": 286.7455778121948,
571 "z": "73283ddb.ad1024",
575 "id": "5ee6b514.0ecf0c",
577 "name": "execute RestApiCallNode delete Devcie Instance",
578 "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"templateFileName\" value=\"`$prop.restapi.templateDir + '/sdwan-device-del.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=\"delete\"/>\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`\" />",
581 "x": 652.0313262939453,
582 "y": 700.0313568115234,
583 "z": "73283ddb.ad1024",
592 "id": "7025602.36919a",
594 "name": "execute Properties",
595 "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",
600 "z": "73283ddb.ad1024",
606 "id": "f4083614.bed898",
608 "name": "set device Id length and deviceId",
609 "xml": "<set>\n<parameter name='prop.devices[0]' value='`$prop.device.deviceId`' />\n\n\n",
611 "x": 602.0312652587891,
612 "y": 645.0312666893005,
613 "z": "73283ddb.ad1024",
617 "id": "f8b84934.c5f1e8",
619 "name": "set device Id length and deviceId",
620 "xml": "<set>\n<parameter name='prop.devices_length' value='1' />\n\n\n",
624 "z": "73283ddb.ad1024",