3 "id": "160bd41b.750adc",
9 "z": "60265787.2327c8",
17 "id": "7010ff28.09428",
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": 245.2856903076172,
26 "y": 100.23810863494873,
27 "z": "60265787.2327c8",
35 "id": "f412ee4c.d62e7",
37 "name": "method sdwan-vnf-topology-operation-wanport-deactivate",
38 "xml": "<method rpc='sdwan-vnf-topology-operation-wanport-deactivate' mode='sync'>\n",
41 "x": 279.4286117553711,
42 "y": 184.0000171661377,
43 "z": "60265787.2327c8",
51 "id": "cc23525.50310b",
53 "name": "block : atomic",
54 "xml": "<block atomic=\"true\">",
57 "x": 254.66670608520508,
58 "y": 568.6666831970215,
59 "z": "60265787.2327c8",
75 "id": "8af94d5d.882d",
77 "name": "switch service-data.vnfs.vnf_length",
78 "xml": "<switch test='`$service-data.vnfs.vnf_length`'>\n",
81 "x": 760.0209541320801,
82 "y": 93.02095350623131,
83 "z": "60265787.2327c8",
93 "id": "80fd0bfd.39f738",
96 "xml": "<outcome value=''>\n",
99 "x": 1003.020881652832,
100 "y": 118.02103647589684,
101 "z": "60265787.2327c8",
109 "id": "bd8e7274.c99a",
110 "type": "returnFailure",
111 "name": "return failure",
112 "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",
114 "x": 1151.7983932495117,
115 "y": 97.90997156500816,
116 "z": "60265787.2327c8",
120 "id": "7b7c3289.46689c",
123 "xml": "<outcome value='Other'>\n",
126 "x": 1004.0212059020996,
127 "y": 151.02105936408043,
128 "z": "60265787.2327c8",
136 "id": "fc040973.03bed8",
138 "name": "block : atomic",
139 "xml": "<block atomic=\"true\">",
142 "x": 1151.2909088134766,
143 "y": 140.5755818784237,
144 "z": "60265787.2327c8",
153 "id": "41b2ec7a.c9fac4",
155 "name": "for vidx..service-data.vnfs.vnf_length[]",
156 "xml": "<for index='vidx' start='0' end='`$service-data.vnfs.vnf_length`' >\n",
159 "x": 1396.306869506836,
160 "y": 92.44958147406578,
161 "z": "60265787.2327c8",
169 "id": "ed9b9aab.53af18",
170 "type": "switchNode",
171 "name": "switch tmp.vidx ",
172 "xml": "<switch test=\"`$tmp.vidx`\">\n\n",
175 "x": 1327.6082229614258,
176 "y": 140.432760566473,
177 "z": "60265787.2327c8",
185 "id": "742d2b6f.de3234",
188 "xml": "<outcome value=''>\n",
191 "x": 1481.0368614196777,
192 "y": 139.00417360663414,
193 "z": "60265787.2327c8",
201 "id": "cf1a968e.65c658",
202 "type": "switchNode",
203 "name": "switch vnfid found",
204 "xml": "<switch test=\"`$service-data.vnfs.vnf[$vidx].vnf-id == $vnf-topology-operation-input.vnf-information.vnf-id`\">\n\n",
207 "x": 1767.735450744629,
208 "y": 89.69969400763512,
209 "z": "60265787.2327c8",
217 "id": "373d4940.5a03b6",
218 "type": "returnFailure",
219 "name": "return failure",
220 "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",
222 "x": 1617.4652557373047,
223 "y": 138.14703592658043,
224 "z": "60265787.2327c8",
228 "id": "6d3e9e16.89bfe",
229 "type": "outcomeTrue",
231 "xml": "<outcome value='true'>\n",
234 "x": 1806.687599182129,
235 "y": 144.59241327643394,
236 "z": "60265787.2327c8",
244 "id": "eedac48f.477958",
247 "xml": "<outcome value='0'>\n",
250 "x": 999.9896278381348,
251 "y": 85.9897321164608,
252 "z": "60265787.2327c8",
260 "id": "da4ef740.d83fa8",
267 "x": 1615.6565017700195,
268 "y": 91.98964247107506,
269 "z": "60265787.2327c8",
277 "id": "db706027.a79c1",
279 "name": "set vnf in service-data",
280 "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\n",
282 "x": 715.334171295166,
283 "y": 741.6668876111507,
284 "z": "60265787.2327c8",
288 "id": "a0bc8740.7ee818",
290 "name": "set vnfId and vnf-object-path",
291 "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/'` \" />",
293 "x": 727.8898124694824,
294 "y": 798.8891824185848,
295 "z": "60265787.2327c8",
299 "id": "13704b55.ddb7b5",
301 "name": "set vnf-level-oper-status to PendingDelete",
302 "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",
304 "x": 770.3341865539551,
305 "y": 833.6670182645321,
306 "z": "60265787.2327c8",
310 "id": "f6e2bea8.930d7",
311 "type": "returnSuccess",
312 "name": "return success",
313 "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",
315 "x": 680.6675567626953,
316 "y": 922.4448512494564,
317 "z": "60265787.2327c8",
321 "id": "e263e9f9.47b878",
322 "type": "get-resource",
323 "name": "get-resource esr-thirdparty-sdnc",
324 "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",
327 "x": 740.5003604888916,
328 "y": 261.0001236796379,
329 "z": "60265787.2327c8",
339 "id": "553a8d46.b43834",
342 "xml": "<outcome value='success'>\n",
345 "x": 959.5003299713135,
346 "y": 220.00012025237083,
347 "z": "60265787.2327c8",
355 "id": "4956fcb2.4927a4",
358 "xml": "<outcome value='not-found'>\n",
361 "x": 962.9912967681885,
362 "y": 267.5741558969021,
363 "z": "60265787.2327c8",
371 "id": "b5f5e61a.4229a8",
374 "xml": "<outcome value='Other'>\n",
377 "x": 958.3243045806885,
378 "y": 308.90746888518333,
379 "z": "60265787.2327c8",
387 "id": "15107992.3c8136",
388 "type": "returnFailure",
389 "name": "return failure",
390 "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",
392 "x": 1146.0968608856201,
393 "y": 304.34666165709496,
394 "z": "60265787.2327c8",
398 "id": "60e56df6.080ca4",
399 "type": "returnFailure",
400 "name": "return failure",
401 "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",
403 "x": 1139.562707901001,
404 "y": 255.85989198088646,
405 "z": "60265787.2327c8",
409 "id": "f8d39c98.f3e5a",
411 "name": "set controller data",
412 "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",
414 "x": 1140.0004329681396,
415 "y": 214.00015896558762,
416 "z": "60265787.2327c8",
420 "id": "1d346910.f82317",
422 "name": "execute RestApiCallNode device port delete",
423 "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"templateFileName\" value=\"`$prop.restapi.templateDir + '/sdwan-device-port-del.json'`\" />\n<parameter name=\"restapiUrl\" value=\"`$prop.sdncRestApi.thirdpartySdnc.url + '/controller/campus/v1/sdwan/net/ports/action/batch-delete'`\" />\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=\"portResp\"/>\n<parameter name=\"trustStoreFileName\" value=\"/opt/onap/sdnc/data/stores/truststore.onap.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`\" />",
426 "x": 773.0005130767822,
427 "y": 636.6668682992458,
428 "z": "60265787.2327c8",
437 "id": "42db533e.b56eac",
440 "xml": "<outcome value='success'>\n",
443 "x": 1019.0004978179932,
444 "y": 674.6669569909573,
445 "z": "60265787.2327c8",
453 "id": "3455c58f.b562ea",
456 "xml": "<outcome value='failure'>\n",
459 "x": 1015.0005779266357,
460 "y": 628.6668721139431,
461 "z": "60265787.2327c8",
469 "id": "7c085513.57701c",
470 "type": "returnFailure",
471 "name": "return failure",
472 "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",
474 "x": 1156.0006694793701,
475 "y": 628.6668730676174,
476 "z": "60265787.2327c8",
480 "id": "77804da4.2bade4",
482 "name": "block : atomic",
483 "xml": "<block atomic=\"true\">",
487 "x": 1163.0003643035889,
488 "y": 672.6668759286404,
489 "z": "60265787.2327c8",
495 "id": "b1683370.08944",
497 "name": "execute RestApiCallNode wan port delete",
498 "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"templateFileName\" value=\"`$prop.restapi.templateDir + '/sdwan-wan-port-del.json'`\" />\n<parameter name=\"restapiUrl\" value=\"`$prop.sdncRestApi.thirdpartySdnc.url + '/controller/campus/v1/sdwan/net/transport-network-ports/action/batch-delete'`\" />\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=\"portResp\"/>\n<parameter name=\"trustStoreFileName\" value=\"/opt/onap/sdnc/data/stores/truststore.onap.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`\" />",
501 "x": 764.0006809234619,
502 "y": 529.6668654382229,
503 "z": "60265787.2327c8",
512 "id": "25b510d9.36284",
515 "xml": "<outcome value='success'>\n",
518 "x": 997.0007762908936,
519 "y": 562.6668578088284,
520 "z": "60265787.2327c8",
528 "id": "3a348892.4f4ad8",
531 "xml": "<outcome value='failure'>\n",
534 "x": 1001.0008563995361,
535 "y": 498.6669360101223,
536 "z": "60265787.2327c8",
544 "id": "ce0c3d97.4bdf8",
545 "type": "returnFailure",
546 "name": "return failure",
547 "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",
549 "x": 1146.001028060913,
550 "y": 500.6669360101223,
551 "z": "60265787.2327c8",
555 "id": "cc96ff80.a3e57",
557 "name": "block : atomic",
558 "xml": "<block atomic=\"true\">",
562 "x": 1153.0006198883057,
563 "y": 560.6668578088284,
564 "z": "60265787.2327c8",
570 "id": "1d165946.98b807",
572 "name": "execute Properties",
573 "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",
576 "x": 707.9999885559082,
577 "y": 136.00003084540367,
578 "z": "60265787.2327c8",
584 "id": "ec6fef57.1d937",
586 "name": "execute RestApiCallNode Get token",
587 "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.onap.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\"/>",
590 "x": 757.0002689361572,
591 "y": 399.6666949689388,
592 "z": "60265787.2327c8",
601 "id": "4f27175.40c29e8",
604 "xml": "<outcome value='success'>\n",
607 "x": 991.0003070831299,
608 "y": 385.66671976447105,
609 "z": "60265787.2327c8",
617 "id": "50a6cd99.43e804",
620 "xml": "<outcome value='failure'>\n",
623 "x": 984.2502689361572,
624 "y": 431.3095782697201,
625 "z": "60265787.2327c8",
633 "id": "a32d5aa2.e0b408",
634 "type": "returnFailure",
635 "name": "return failure",
636 "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",
638 "x": 1137.0002689361572,
639 "y": 431.0596393048763,
640 "z": "60265787.2327c8",
644 "id": "ba76090.b8b84f8",
646 "name": "set token-id",
647 "xml": "<set>\n<parameter name='prop.sdncRestApi.token_id' value='`$token-result.data.token_id`' />\n",
649 "x": 1145.0003070831299,
650 "y": 386.66671976447105,
651 "z": "60265787.2327c8",
655 "id": "c733e74a.c143c8",
657 "name": "block : atomic",
658 "xml": "<block atomic=\"true\">",
661 "x": 1947.0001106262207,
662 "y": 145.00004610419273,
663 "z": "60265787.2327c8",
673 "id": "f2ee43ab.85fef",
675 "name": "update SDWAN wan port instance configuration in AAI",
676 "xml": "<update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='wan-port-config' \n key='wan-port-config.wan-port-config-id = $vnf-topology-operation-input.vnf-information.vnf-id' >\n<parameter name='wan-port-config-id' value=\"`$vnf-topology-operation-input.vnf-information.vnf-id`\" />\n<parameter name='operational-status' value='PendingDelete' />\n<parameter name='model-customization-id' value='`$vnf-topology-operation-input.vnf-information.onap-model-information.model-customization-uuid`' />\n<parameter name='model-invariant-id' value='`$vnf-topology-operation-input.vnf-information.onap-model-information.model-invariant-uuid`' />\n<parameter name='model-version-id' value='`$vnf-topology-operation-input.vnf-information.onap-model-information.model-uuid`' />\n",
679 "x": 793.0002861022949,
680 "y": 875.0004304349422,
681 "z": "60265787.2327c8",
687 "id": "2115f98.c329d06",
689 "name": "set tmp.vidx and ctx.vnf-data",
690 "xml": "<set>\n<parameter name='tmp.vidx' value='`$vidx`' />\n<parameter name='ctx.vnf-data.' value='`$service-data.vnfs.vnf[$vidx].`' />\n",
692 "x": 2197.0313453674316,
693 "y": 96.03129276633263,
694 "z": "60265787.2327c8",
698 "id": "5f1edf6a.5abca",
700 "name": "set vnf-request-input.",
701 "xml": "<set>\n<parameter name='vnf-request-input.' value='`$ctx.vnf-data.vnf-data.vnf-request-input.`' />\n\n",
703 "x": 2169.4776344299316,
704 "y": 142.68892845511436,
705 "z": "60265787.2327c8",
709 "id": "e126aeff.fd3f4",
711 "name": "call sdwan-get-wan-param",
712 "xml": "<call module='GENERIC-RESOURCE-API' rpc='sdwan-get-wan-param' mode='sync' >\n",
715 "x": 2193.477584838867,
716 "y": 192.6889165341854,
717 "z": "60265787.2327c8",
723 "id": "e35c5cc.ba705a",
725 "name": "call sdwan-get-tenant-auth",
726 "xml": "<call module='GENERIC-RESOURCE-API' rpc='sdwan-get-tenant-auth' mode='sync' >\n",
731 "z": "60265787.2327c8",