3 "id": "793dbdb3.de8be4",
17 "id": "3a91b25b.2f4cce",
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": 281.00391006469727,
26 "y": 117.0039234161377,
27 "z": "c3c952bc.05e95",
35 "id": "eca97066.caaf3",
37 "name": "method sdwan-network-topology-operation-deactivate",
38 "xml": "<method rpc='sdwan-network-topology-operation-deactivate' mode='sync'>\n",
41 "x": 269.0040283203125,
43 "z": "c3c952bc.05e95",
51 "id": "4de7b297.7c56ec",
53 "name": "block : atomic",
54 "xml": "<block atomic=\"true\">\n",
58 "x": 443.00392150878906,
59 "y": 313.0039653778076,
60 "z": "c3c952bc.05e95",
80 "id": "b335849f.1ecf78",
82 "name": "call GENERIC-RESOURCE-API:validate-sdwan-network-input-parameters",
83 "xml": "<call module='GENERIC-RESOURCE-API' rpc='validate-sdwan-network-input-parameters' mode='sync' >\n",
86 "x": 901.3928070068359,
88 "z": "c3c952bc.05e95",
94 "id": "4b508beb.3a8574",
97 "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",
100 "x": 701.5595054626465,
101 "y": 115.78175926208496,
102 "z": "c3c952bc.05e95",
108 "id": "49f08c5d.a4c334",
110 "name": "set networkId and network-object-path",
111 "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/'` \" />",
113 "x": 793.5597496032715,
114 "y": 742.3173627853394,
115 "z": "c3c952bc.05e95",
119 "id": "c621318b.d31c",
120 "type": "returnSuccess",
121 "name": "return success",
122 "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",
124 "x": 715.3375511169434,
125 "y": 931.8727827072144,
126 "z": "c3c952bc.05e95",
130 "id": "335b7a74.877be6",
132 "name": "set network-level-oper-status",
133 "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`' />",
135 "x": 760.4486656188965,
136 "y": 803.5395374298096,
137 "z": "c3c952bc.05e95",
141 "id": "cf0d2147.3c1a7",
143 "name": "execute Properties",
144 "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",
147 "x": 733.8616104125977,
148 "y": 168.78179550170898,
149 "z": "c3c952bc.05e95",
155 "id": "fc2f3bed.6dcf68",
157 "name": "set network in service-data",
158 "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.`' />",
160 "x": 754.004280090332,
161 "y": 689.095196723938,
162 "z": "c3c952bc.05e95",
166 "id": "6ed3cf6a.44f1b",
168 "name": "for each network-input-parameters",
169 "xml": "<for index='idx' start='0' end='`$ctx.network-data.network-request-input.network-input-parameters.param_length`' >\n",
173 "y": 239.00781378149986,
174 "z": "c3c952bc.05e95",
182 "id": "8e8065b6.1084e8",
189 "x": 1042.8373374938965,
190 "y": 173.34116491675377,
191 "z": "c3c952bc.05e95",
202 "id": "db93bdb.d26bf4",
203 "type": "switchNode",
204 "name": "switch name",
205 "xml": "<switch test=\"`$ctx.network-data.network-request-input.network-input-parameters.param[$idx].name == 'name'`\">\n",
208 "x": 1264.837417602539,
209 "y": 63.34119987487793,
210 "z": "c3c952bc.05e95",
218 "id": "c5296581.642598",
219 "type": "outcomeTrue",
221 "xml": "<outcome value='true'>\n",
224 "x": 1438.8375434875488,
225 "y": 63.341203689575195,
226 "z": "c3c952bc.05e95",
234 "id": "209fc8ff.4a3e38",
237 "xml": "<set>\n<parameter name='prop.name' value='`$ctx.network-data.network-request-input.network-input-parameters.param[$idx].value`' />\n",
239 "x": 1601.8374290466309,
240 "y": 62.94119834899902,
241 "z": "c3c952bc.05e95",
245 "id": "2cf71503.16f17a",
246 "type": "get-resource",
247 "name": "get-resource esr-thirdparty-sdnc",
248 "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",
252 "y": 348.00781378149986,
253 "z": "c3c952bc.05e95",
263 "id": "fc6c7998.f0e088",
266 "xml": "<outcome value='success'>\n",
270 "y": 294.00781378149986,
271 "z": "c3c952bc.05e95",
279 "id": "27566cb3.03e2a4",
282 "xml": "<outcome value='not-found'>\n",
285 "x": 1028.494873046875,
286 "y": 341.5818494260311,
287 "z": "c3c952bc.05e95",
295 "id": "235c43b0.c60f6c",
298 "xml": "<outcome value='Other'>\n",
301 "x": 1023.827880859375,
302 "y": 382.91516241431236,
303 "z": "c3c952bc.05e95",
311 "id": "37902c28.eb9774",
313 "name": "set controller data",
314 "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",
316 "x": 1222.5039672851562,
317 "y": 282.00781378149986,
318 "z": "c3c952bc.05e95",
322 "id": "bebdf762.3c5628",
323 "type": "returnFailure",
324 "name": "return failure",
325 "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",
327 "x": 1205.0662841796875,
328 "y": 329.8675855100155,
329 "z": "c3c952bc.05e95",
333 "id": "851cb606.194f18",
334 "type": "returnFailure",
335 "name": "return failure",
336 "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",
338 "x": 1211.6004371643066,
339 "y": 378.354355186224,
340 "z": "c3c952bc.05e95",
344 "id": "69c0586.74e3ea8",
346 "name": "execute RestApiCallNode Get token",
347 "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\"/>",
351 "y": 459.00781378149986,
352 "z": "c3c952bc.05e95",
361 "id": "96f3aa2e.c54988",
364 "xml": "<outcome value='success'>\n",
368 "y": 437.00781378149986,
369 "z": "c3c952bc.05e95",
377 "id": "cae8eff.6ac8b1",
380 "xml": "<outcome value='failure'>\n",
384 "y": 490.6506970822811,
385 "z": "c3c952bc.05e95",
393 "id": "91d847c8.f3fc48",
395 "name": "set token-id",
396 "xml": "<set>\n<parameter name='prop.sdncRestApi.token_id' value='`$token-result.data.token_id`' />\n",
399 "y": 438.00781378149986,
400 "z": "c3c952bc.05e95",
404 "id": "7d2fabee.7ea674",
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=\"Error executing get token rest api\" />\n",
410 "y": 490.40075811743736,
411 "z": "c3c952bc.05e95",
415 "id": "ac2e8139.951b",
416 "type": "switchNode",
417 "name": "switch topology",
418 "xml": "<switch test=\"`$ctx.network-data.network-request-input.network-input-parameters.param[$idx].name == 'topology'`\">\n",
421 "x": 1270.253890991211,
422 "y": 106.00781416893005,
423 "z": "c3c952bc.05e95",
431 "id": "1cd087e9.a0e8d8",
432 "type": "outcomeTrue",
434 "xml": "<outcome value='true'>\n",
437 "x": 1444.2540168762207,
438 "y": 106.00781798362732,
439 "z": "c3c952bc.05e95",
447 "id": "4dc771ac.bec7e",
449 "name": "set topology",
450 "xml": "<set>\n<parameter name='prop.topology' value='`$ctx.network-data.network-request-input.network-input-parameters.param[$idx].value`' />\n",
452 "x": 1607.2539024353027,
453 "y": 105.60781264305115,
454 "z": "c3c952bc.05e95",
458 "id": "bd5c4a5d.9d8378",
460 "name": "execute RestApiCallNode delete vpn",
461 "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.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`\" />",
464 "x": 786.7539825439453,
465 "y": 626.0080223083496,
466 "z": "c3c952bc.05e95",
472 "id": "6cc3df01.2a98a",
474 "name": "execute RestApiCallNode delete vpn topology",
475 "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.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`\" />",
478 "x": 816.2539978027344,
479 "y": 559.0079069137573,
480 "z": "c3c952bc.05e95",
486 "id": "1e600efe.efd971",
487 "type": "switchNode",
488 "name": "switch vpn-id",
489 "xml": "<switch test=\"`$ctx.network-data.network-request-input.network-input-parameters.param[$idx].name == 'vpn-id'`\">\n",
492 "x": 1264.5039691925049,
493 "y": 189.00390815734863,
494 "z": "c3c952bc.05e95",
502 "id": "c1d7d040.09f8",
503 "type": "outcomeTrue",
505 "xml": "<outcome value='true'>\n",
508 "x": 1446.5040016174316,
509 "y": 189.00390696525574,
510 "z": "c3c952bc.05e95",
518 "id": "c45b30c0.c02ff",
520 "name": "set prop.vpn-id",
521 "xml": "<set>\n<parameter name='prop.vpn-id' value='`$ctx.network-data.network-request-input.network-input-parameters.param[$idx].value`' />\n",
523 "x": 1609.5038871765137,
524 "y": 188.60390162467957,
525 "z": "c3c952bc.05e95",
529 "id": "d6b3741d.b12d48",
530 "type": "switchNode",
531 "name": "switch tenant-id",
532 "xml": "<switch test=\"`$ctx.network-data.network-request-input.network-input-parameters.param[$idx].name == 'tenant-id'`\">\n",
537 "z": "c3c952bc.05e95",
545 "id": "3b68a208.b06d0e",
546 "type": "outcomeTrue",
548 "xml": "<outcome value='true'>\n",
551 "x": 1444.2540321350098,
552 "y": 232.00391006469727,
553 "z": "c3c952bc.05e95",
561 "id": "61b35e07.ec39d",
563 "name": "set prop.tenant-id",
564 "xml": "<set>\n<parameter name='prop.tenant-id' value='`$ctx.network-data.network-request-input.network-input-parameters.param[$idx].value`' />\n",
566 "x": 1607.2539176940918,
567 "y": 231.6039047241211,
568 "z": "c3c952bc.05e95",
572 "id": "b06c361a.4ff338",
574 "name": "update SDWAN VPN status to AAI",
575 "xml": "<update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='sdwan-vpn' \n key='sdwan-vpn.id = $network-topology-operation-input.network-information.network-id' >\n<parameter name='id' value='`$network-topology-operation-input.network-information.network-id`' />\n<parameter name='operational-status' value='PendingDelete' />",
578 "x": 774.0039443969727,
579 "y": 870.5039930343628,
580 "z": "c3c952bc.05e95",