3 "id": "fd56c256.6611d",
9 "z": "88e745dd.c19a68",
17 "id": "e8a2c571.7151d8",
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": 264.00000381469727,
26 "y": 109.00001621246338,
27 "z": "88e745dd.c19a68",
35 "id": "501691b7.b8579",
37 "name": "method sdwan-network-topology-operation-deactivate",
38 "xml": "<method rpc='sdwan-network-topology-operation-deactivate' mode='sync'>\n",
41 "x": 252.0001220703125,
42 "y": 196.99999904632568,
43 "z": "88e745dd.c19a68",
51 "id": "f268dab.9a2e128",
53 "name": "block : atomic",
54 "xml": "<block atomic=\"true\">\n",
58 "x": 426.00001525878906,
59 "y": 305.0000581741333,
60 "z": "88e745dd.c19a68",
81 "id": "b31f4e4c.0f578",
83 "name": "call GENERIC-RESOURCE-API:validate-sdwan-network-input-parameters",
84 "xml": "<call module='GENERIC-RESOURCE-API' rpc='validate-sdwan-network-input-parameters' mode='sync' >\n",
87 "x": 884.3889007568359,
88 "y": 53.999999046325684,
89 "z": "88e745dd.c19a68",
95 "id": "34c8ec0.c180514",
98 "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=\"sdwan-network-topology-operation-deactivate\"/>\n<parameter name=\"field3\" value=\"SDWAN-Deactivate\"/>\n",
101 "x": 684.5555992126465,
102 "y": 107.77785205841064,
103 "z": "88e745dd.c19a68",
109 "id": "613a4de8.024144",
111 "name": "set networkId and network-object-path",
112 "xml": "<set>\n<parameter name='networkId' value='`$network-topology-operation-input.network-information.network-id`' />\n<parameter name=\"network-object-path\" value=\"`'restconf/config/GENERIC-RESOURCE-API:services/service/' + $network-topology-operation-input.service-information.service-instance-id + '/service-data/networks/network/' + $network-topology-operation-input.network-information.network-id + '/network-data/'` \" />",
114 "x": 786.5558738708496,
115 "y": 849.3134832382202,
116 "z": "88e745dd.c19a68",
120 "id": "5f55a204.78493c",
121 "type": "returnSuccess",
122 "name": "return success",
123 "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",
125 "x": 708.3336753845215,
126 "y": 1038.8689031600952,
127 "z": "88e745dd.c19a68",
131 "id": "b7c0b37c.27c35",
133 "name": "set network-level-oper-status",
134 "xml": "<set>\n<parameter name='service-data.networks.network[$tmp.nidx].network-data.network-level-oper-status.order-status' value='PendingDelete' />\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`' />",
136 "x": 753.4447898864746,
137 "y": 910.5356578826904,
138 "z": "88e745dd.c19a68",
142 "id": "f96046b8.ac5b48",
144 "name": "execute Properties",
145 "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",
148 "x": 716.8577041625977,
149 "y": 160.77788829803467,
150 "z": "88e745dd.c19a68",
156 "id": "f78b989e.79da48",
158 "name": "set network in service-data",
159 "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<parameter name='service-data.networks.network[$tmp.nidx].network-data.service-information.' value='`$network-topology-operation-input.service-information.`' />\n<parameter name='service-data.networks.network[$tmp.nidx].network-data.network-information.' value='`$network-topology-operation-input.network-information.`' />",
161 "x": 747.0004043579102,
162 "y": 796.0913171768188,
163 "z": "88e745dd.c19a68",
167 "id": "76b3c50a.02876c",
169 "name": "for each network-input-parameters",
170 "xml": "<for index='idx' start='0' end='`$ctx.network-data.network-request-input.network-input-parameters.param_length`' >\n",
174 "y": 231.00390657782555,
175 "z": "88e745dd.c19a68",
183 "id": "1c6b88c6.f49ce7",
190 "x": 1025.8334312438965,
191 "y": 165.33725771307945,
192 "z": "88e745dd.c19a68",
203 "id": "903569b7.4e2578",
204 "type": "switchNode",
205 "name": "switch name",
206 "xml": "<switch test=\"`$ctx.network-data.network-request-input.network-input-parameters.param[$idx].name == 'name'`\">\n",
209 "x": 1247.833511352539,
210 "y": 55.33729267120361,
211 "z": "88e745dd.c19a68",
219 "id": "138e36c7.964e29",
220 "type": "outcomeTrue",
222 "xml": "<outcome value='true'>\n",
225 "x": 1421.8336372375488,
226 "y": 55.33729648590088,
227 "z": "88e745dd.c19a68",
235 "id": "cd7bebad.986118",
238 "xml": "<set>\n<parameter name='prop.name' value='`$ctx.network-data.network-request-input.network-input-parameters.param[$idx].value`' />\n",
240 "x": 1584.8335227966309,
241 "y": 54.93729114532471,
242 "z": "88e745dd.c19a68",
246 "id": "ad00b85d.5bef68",
247 "type": "get-resource",
248 "name": "get-resource esr-thirdparty-sdnc",
249 "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",
253 "y": 340.00390657782555,
254 "z": "88e745dd.c19a68",
264 "id": "2b0c648a.f8433c",
267 "xml": "<outcome value='success'>\n",
271 "y": 286.00390657782555,
272 "z": "88e745dd.c19a68",
280 "id": "f2e86cdd.3128a",
283 "xml": "<outcome value='not-found'>\n",
286 "x": 1011.490966796875,
287 "y": 333.5779422223568,
288 "z": "88e745dd.c19a68",
296 "id": "918162b5.31748",
299 "xml": "<outcome value='Other'>\n",
302 "x": 1006.823974609375,
303 "y": 374.91125521063805,
304 "z": "88e745dd.c19a68",
312 "id": "a06faa05.f76618",
314 "name": "set controller data",
315 "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",
317 "x": 1205.5000610351562,
318 "y": 274.00390657782555,
319 "z": "88e745dd.c19a68",
323 "id": "37a1f73b.b96e68",
324 "type": "returnFailure",
325 "name": "return failure",
326 "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",
328 "x": 1188.0623779296875,
329 "y": 321.86367830634117,
330 "z": "88e745dd.c19a68",
334 "id": "4f66c6a.4583438",
335 "type": "returnFailure",
336 "name": "return failure",
337 "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",
339 "x": 1194.5965309143066,
340 "y": 370.35044798254967,
341 "z": "88e745dd.c19a68",
345 "id": "b370ae59.4bce9",
347 "name": "execute RestApiCallNode Get token",
348 "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\"/>",
352 "y": 451.00390657782555,
353 "z": "88e745dd.c19a68",
362 "id": "61a5287d.5d14f8",
365 "xml": "<outcome value='success'>\n",
369 "y": 429.00390657782555,
370 "z": "88e745dd.c19a68",
378 "id": "99df3ba8.a50248",
381 "xml": "<outcome value='failure'>\n",
385 "y": 482.6467898786068,
386 "z": "88e745dd.c19a68",
394 "id": "951e43bb.f165",
396 "name": "set token-id",
397 "xml": "<set>\n<parameter name='prop.sdncRestApi.token_id' value='`$token-result.data.token_id`' />\n",
400 "y": 430.00390657782555,
401 "z": "88e745dd.c19a68",
405 "id": "f26ec62f.ef46a8",
406 "type": "returnFailure",
407 "name": "return failure",
408 "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",
411 "y": 482.39685091376305,
412 "z": "88e745dd.c19a68",
416 "id": "653d2c3c.262b14",
417 "type": "switchNode",
418 "name": "switch topology",
419 "xml": "<switch test=\"`$ctx.network-data.network-request-input.network-input-parameters.param[$idx].name == 'topology'`\">\n",
422 "x": 1253.249984741211,
423 "y": 98.00390696525574,
424 "z": "88e745dd.c19a68",
432 "id": "42e996e4.f57c78",
433 "type": "outcomeTrue",
435 "xml": "<outcome value='true'>\n",
438 "x": 1427.2501106262207,
439 "y": 98.003910779953,
440 "z": "88e745dd.c19a68",
448 "id": "36533d51.327db2",
450 "name": "set topology",
451 "xml": "<set>\n<parameter name='prop.topology' value='`$ctx.network-data.network-request-input.network-input-parameters.param[$idx].value`' />\n",
453 "x": 1590.2499961853027,
454 "y": 97.60390543937683,
455 "z": "88e745dd.c19a68",
459 "id": "2ec15.4c1aa3ebc",
461 "name": "execute RestApiCallNode delete vpn",
462 "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"templateFileName\" value=\"`$prop.restapi.templateDir + '/sdwan-vpn-delete.json'`\" />\n<parameter name=\"restapiUrl\" value=\"`$prop.sdncRestApi.thirdpartySdnc.url + '/controller/campus/v1/sdwan/overlay-network/vpn/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=\"vpn-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\"/>\n<parameter name='customHttpHeaders' value=\"`'X-ACCESS-TOKEN=' + $prop.sdncRestApi.token_id`\" />",
465 "x": 779.7501068115234,
466 "y": 733.0041427612305,
467 "z": "88e745dd.c19a68",
473 "id": "988eea5f.5a0298",
475 "name": "execute RestApiCallNode delete vpn topology",
476 "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"restapiUrl\" value=\"`$prop.sdncRestApi.thirdpartySdnc.url + '/controller/campus/v1/sdwan/overlay-network/' + $prop.vpn-id + '/topology'`\" />\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=\"vpn-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\"/>\n<parameter name='customHttpHeaders' value=\"`'X-ACCESS-TOKEN=' + $prop.sdncRestApi.token_id`\" />",
479 "x": 809.2501220703125,
480 "y": 666.0040273666382,
481 "z": "88e745dd.c19a68",
487 "id": "c5910d9a.730a3",
488 "type": "switchNode",
489 "name": "switch vpn-id",
490 "xml": "<switch test=\"`$ctx.network-data.network-request-input.network-input-parameters.param[$idx].name == 'vpn-id'`\">\n",
493 "x": 1247.5000629425049,
494 "y": 181.00000095367432,
495 "z": "88e745dd.c19a68",
503 "id": "648a246c.73b5ec",
504 "type": "outcomeTrue",
506 "xml": "<outcome value='true'>\n",
509 "x": 1429.5000953674316,
510 "y": 180.99999976158142,
511 "z": "88e745dd.c19a68",
519 "id": "701a4c1a.83d604",
521 "name": "set prop.vpn-id",
522 "xml": "<set>\n<parameter name='prop.vpn-id' value='`$ctx.network-data.network-request-input.network-input-parameters.param[$idx].value`' />\n",
524 "x": 1592.4999809265137,
525 "y": 180.59999442100525,
526 "z": "88e745dd.c19a68",
530 "id": "5b432d19.74fce4",
531 "type": "switchNode",
532 "name": "switch tenant-id",
533 "xml": "<switch test=\"`$ctx.network-data.network-request-input.network-input-parameters.param[$idx].name == 'tenant-id'`\">\n",
537 "y": 223.99999904632568,
538 "z": "88e745dd.c19a68",
546 "id": "f053b806.9e46f8",
547 "type": "outcomeTrue",
549 "xml": "<outcome value='true'>\n",
552 "x": 1427.2501258850098,
553 "y": 224.00000286102295,
554 "z": "88e745dd.c19a68",
562 "id": "7fc67227.287a4c",
564 "name": "set prop.tenant-id",
565 "xml": "<set>\n<parameter name='prop.tenant-id' value='`$ctx.network-data.network-request-input.network-input-parameters.param[$idx].value`' />\n",
567 "x": 1590.2500114440918,
568 "y": 223.59999752044678,
569 "z": "88e745dd.c19a68",
573 "id": "2cf3fcb4.da9384",
575 "name": "update SDWAN VPN status to AAI",
576 "xml": "<update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='sdwan-vpn' \n key='sdwan-vpn.sdwan-vpn-id = $network-topology-operation-input.network-information.network-id' >\n<parameter name='sdwan-vpn-id' value='`$network-topology-operation-input.network-information.network-id`' />\n<parameter name='operational-status' value='PendingDelete' />",
579 "x": 767.0000686645508,
580 "y": 977.5001134872437,
581 "z": "88e745dd.c19a68",
587 "id": "9a8305f1.e08cb8",
588 "type": "get-resource",
589 "name": "get-resource service-subscription",
590 "xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\t\tresource=\"service-subscription\" \n key= 'service-subscription.service-type = $service-data.networks.network[$tmp.nidx].network-data.service-information.subscription-service-type \n AND customer.global-customer-id = $service-data.networks.network[$tmp.nidx].network-data.service-information.global-customer-id'\n force=\"true\" pfx=\"tmp.AnAI-data\">\n \n",
593 "x": 758.0038909912109,
594 "y": 533.0038976669312,
595 "z": "88e745dd.c19a68",
604 "id": "61153347.107bfc",
607 "xml": "<outcome value='failure'>\n",
610 "x": 973.1824684143066,
611 "y": 584.9642953872681,
612 "z": "88e745dd.c19a68",
620 "id": "6497125a.d4efec",
623 "xml": "<outcome value='success'>\n",
626 "x": 979.5038795471191,
627 "y": 532.7499837875366,
628 "z": "88e745dd.c19a68",
636 "id": "2a04bd37.e27582",
637 "type": "returnFailure",
638 "name": "return failure",
639 "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",
641 "x": 1125.9324684143066,
642 "y": 584.7143564224243,
643 "z": "88e745dd.c19a68",
647 "id": "954bff66.85de8",
648 "type": "switchNode",
649 "name": "switch temp-ub-sub-account-id",
650 "xml": "<switch test='`$tmp.AnAI-data.temp-ub-sub-account-id`'>\n",
653 "x": 1181.004108428955,
654 "y": 524.7540063858032,
655 "z": "88e745dd.c19a68",
663 "id": "81f571ba.fc753",
666 "xml": "<outcome value='Other'>",
669 "x": 1374.0041236877441,
670 "y": 553.7540102005005,
671 "z": "88e745dd.c19a68",
679 "id": "d50c5253.93df5",
681 "name": "block : atomic",
682 "xml": "<block atomic=\"true\">\n",
686 "x": 1432.6548805236816,
687 "y": 636.9010019302368,
688 "z": "88e745dd.c19a68",
697 "id": "5e8c6620.18c828",
699 "name": "set prop.tenant-id",
700 "xml": "<set>\n<parameter name='prop.tenant-id' value='`$tmp.AnAI-data.temp-ub-sub-account-id`' />\n",
702 "x": 1621.432716369629,
703 "y": 638.8968105316162,
704 "z": "88e745dd.c19a68",
708 "id": "29548e46.007002",
710 "name": "execute RestApiCallNode Create tenant auth",
711 "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"restapiUrl\" value=\"`$prop.sdncRestApi.thirdpartySdnc.url + '/controller/campus/v1/baseservice/tenants/authorization/' + $prop.tenant-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=\"put\"/>\n<parameter name=\"responsePrefix\" value=\"tenant-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\"/>\n<parameter name='customHttpHeaders' value=\"`'X-ACCESS-TOKEN=' + $prop.sdncRestApi.token_id`\" />",
714 "x": 1704.0834770202637,
715 "y": 685.4724044799805,
716 "z": "88e745dd.c19a68",