3 "id": "6b945847.1c8628",
9 "z": "cab86701.408c88",
17 "id": "46c9c550.08ddbc",
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": 283.2380790710449,
26 "y": 144.95239067077637,
27 "z": "cab86701.408c88",
35 "id": "33033a6c.777e46",
37 "name": "security-zone-topology-operation-delete",
38 "xml": "<method rpc='security-zone-topology-operation-delete' mode='sync'>\n",
41 "x": 329.15485763549805,
42 "y": 180.19044589996338,
43 "z": "cab86701.408c88",
51 "id": "71a136f2.4a6ae8",
53 "name": "block : atomic",
54 "xml": "<block atomic=\"true\">",
58 "x": 237.47619247436523,
59 "y": 323.5237879753113,
60 "z": "cab86701.408c88",
79 "id": "21b535a4.6f3cfa",
80 "type": "returnSuccess",
81 "name": "return success",
82 "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",
84 "x": 504.0001106262207,
85 "y": 993.2145080566406,
86 "z": "cab86701.408c88",
90 "id": "d473982e.2073e8",
92 "name": "set output to api handler",
93 "xml": "<set>\n<parameter name='allotted-resource-id' value='`$tmp.ar.allotted-resource-id`' />\n<parameter name='security-zone-object-path' value=\"`$tmp.ar.self-link`\"/>\n<parameter name='service-object-path' value=\"`'restconf/config/GENERIC-RESOURCE-API:services/service/'\n + $security-zone-topology-operation-input.service-information.service-instance-id\n + '/service-data/service-topology/'`\"/>\n \n",
95 "x": 532.7540245056152,
96 "y": 957.3370542526245,
97 "z": "cab86701.408c88",
101 "id": "dd978c58.19189",
103 "name": "set allotted-resource-oper-status",
104 "xml": "<set>\n<parameter name='sz-ar.allotted-resource-data.allotted-resource-oper-status.order-status' value='PendingDelete' />\n<parameter name='sz-ar.allotted-resource-data.allotted-resource-oper-status.last-action' value='`$security-zone-topology-operation-input.request-information.request-action`' />\n<parameter name='sz-ar.allotted-resource-data.allotted-resource-oper-status.last-rpc-action' value='`$security-zone-topology-operation-input.sdnc-request-header.svc-action`' />\n<parameter name='sz-ar.allotted-resource-data.allotted-resource-oper-status.last-svc-request-id' value='`$security-zone-topology-operation-input.sdnc-request-header.svc-request-id`' />\n<parameter name='sz-ar.allotted-resource-data.allotted-resource-oper-status.create-timestamp' value='`$tmp.current-time`' />\n",
106 "x": 543.7542190551758,
107 "y": 704.0514001846313,
108 "z": "cab86701.408c88",
112 "id": "67dca0c.5203f6",
114 "name": "set tmp.ar.self-link",
115 "xml": "<set>\n<parameter name='tmp.ar.self-link' value=\"`'restconf/config/GENERIC-RESOURCE-API:security-zone-allotted-resources/security-zone-allotted-resource/'\n + $tmp.ar.allotted-resource-id\n + '/allotted-resource-data/security-zone-topology/'` \" />\n\n",
117 "x": 499.73806381225586,
118 "y": 297.33332538604736,
119 "z": "cab86701.408c88",
123 "id": "58735763.200388",
125 "name": "set tmp.ar.allotted-resource-id,etc",
126 "xml": "<set>\n<parameter name='tmp.ar.allotted-resource-id' value='`$security-zone-topology-operation-input.allotted-resource-information.allotted-resource-id`' />\n<parameter name='tmp.ar.parent-service-instance-id' value='`$security-zone-topology-operation-input.allotted-resource-information.parent-service-instance-id`' />\n<parameter name='tmp.ar.sz-vnf-id' value='`$security-zone-topology-operation-input.allotted-resource-data.security-zone-topology.security-zone-assignments.security-zone-vnf-id`' />\n\n\n",
128 "x": 546.9973258972168,
129 "y": 263.59259128570557,
130 "z": "cab86701.408c88",
134 "id": "d4bebd02.2ac6",
136 "name": "execute Properties",
137 "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",
140 "x": 505.9934196472168,
141 "y": 333.23152446746826,
142 "z": "cab86701.408c88",
148 "id": "ce33759f.7f8848",
150 "name": "execute RestApiCallNode - Get AR by id",
151 "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n <parameter name='restapiUrl' value='`$prop.controller.url + $tmp.ar-url`' />\n <parameter name='restapiUser' value='`$prop.controller.user`' />\n <parameter name='restapiPassword' value='`$prop.controller.pwd`' />\n <parameter name='format' value='json' />\n <parameter name='httpMethod' value='GET' />\n <parameter name=\"responsePrefix\" value=\"mdsal-ar\" />\n\n",
154 "x": 568.5187530517578,
155 "y": 494.4594917297363,
156 "z": "cab86701.408c88",
165 "id": "ed3aea18.ac56a8",
167 "name": "generate allotted-resource url",
168 "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$prop.restapi.sz-allottedresource`\"/>\n <parameter name=\"outputPath\" value=\"tmp.ar-url\"/>\n <parameter name=\"target\" value=\"{allotted-resource-id}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.ar.allotted-resource-id`\"/>\n",
171 "x": 534.0648536682129,
172 "y": 393.0172290802002,
173 "z": "cab86701.408c88",
179 "id": "3d6ff871.1b6728",
182 "xml": "<outcome value='success'>\n",
185 "x": 825.8148918151855,
186 "y": 493.26725220680237,
187 "z": "cab86701.408c88",
195 "id": "e3d80d76.f38b6",
198 "xml": "<outcome value='not-found'>\n",
201 "x": 846.837329864502,
202 "y": 900.432332418859,
203 "z": "cab86701.408c88",
211 "id": "408d7749.7bfef8",
214 "xml": "<outcome value='failure'>\n",
217 "x": 837.8373794555664,
218 "y": 868.9323581680655,
219 "z": "cab86701.408c88",
227 "id": "a26d7c72.44fcc",
230 "xml": "<outcome value='success'>\n",
233 "x": 841.5874176025391,
234 "y": 839.2894630432129,
235 "z": "cab86701.408c88",
243 "id": "e5182ef1.2930a",
244 "type": "returnFailure",
245 "name": "return failure",
246 "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 updating md-sal for security-zone-allotted-resource\" />\n",
248 "x": 1007.5874176025391,
249 "y": 869.6823820099235,
250 "z": "cab86701.408c88",
254 "id": "cae924d0.c91d68",
256 "name": "block: atomic",
257 "xml": "<block atomic=\"true\">\n",
261 "x": 1006.8148460388184,
262 "y": 493.7672016620636,
263 "z": "cab86701.408c88",
272 "id": "a06def86.57a78",
273 "type": "switchNode",
274 "name": "switch sz length",
275 "xml": "<switch test='`$mdsal-ar.security-zone-allotted-resource_length`'>\n",
278 "x": 1252.6720924377441,
279 "y": 528.052964925766,
280 "z": "cab86701.408c88",
288 "id": "ef02f832.92b468",
291 "xml": "<outcome value='1'>\n",
294 "x": 1443.6720962524414,
295 "y": 528.0529625415802,
296 "z": "cab86701.408c88",
304 "id": "b7d42ce2.9a481",
306 "name": "set sz-ar from get",
307 "xml": "<set>\n<parameter name='sz-ar.' value='$mdsal-ar.security-zone-allotted-resource[0].' />\n",
309 "x": 1843.5292320251465,
310 "y": 528.6243867874146,
311 "z": "cab86701.408c88",
315 "id": "6ff8e752.374018",
317 "name": "block: atomic",
318 "xml": "<block atomic='true'>\n",
322 "x": 1614.5290794372559,
323 "y": 528.6244316101074,
324 "z": "cab86701.408c88",
334 "id": "63e31730.e27918",
336 "name": "set oper-status",
337 "xml": "<set>\n<parameter name='sz-ar.allotted-resource-data.allotted-resource-oper-status.last-action' value='`$sz-ar.allotted-resource-data.allotted-resource-operation-information.request-information.request-action`' />\n<parameter name='sz-ar.allotted-resource-data.allotted-resource-oper-status.last-rpc-action' value='`$sz-ar.allotted-resource-status.rpc-action`' />\n<parameter name='sz-ar.allotted-resource-data.allotted-resource-oper-status.last-svc-request-id' value='`$sz-ar.allotted-resource-data.allotted-resource-operation-information.sdnc-request-header.svc-request-id`' />\n\n",
339 "x": 1841.5294761657715,
340 "y": 596.0529508590698,
341 "z": "cab86701.408c88",
345 "id": "bed5b961.bd6788",
347 "name": "GET security-zone-allotted-resource from mdsal",
350 "x": 593.8148155212402,
351 "y": 457.7671926021576,
352 "z": "cab86701.408c88",
356 "id": "d8d35b13.b628f8",
357 "type": "switchNode",
358 "name": "switch order-status",
359 "xml": "<switch test='`$sz-ar.allotted-resource-data.allotted-resource-oper-status.order-status`'>\n",
362 "x": 1851.52925491333,
363 "y": 561.6243848800659,
364 "z": "cab86701.408c88",
373 "id": "55b36fbc.52943",
375 "name": "outcome Created",
376 "xml": "<outcome value='Created'>\n",
379 "x": 2063.1292114257812,
380 "y": 522.6243848800659,
381 "z": "cab86701.408c88",
389 "id": "19d63441.492dec",
391 "name": "outcome Other",
392 "xml": "<outcome value='Other'>\n",
395 "x": 2088.8435859680176,
396 "y": 558.052975654602,
397 "z": "cab86701.408c88",
405 "id": "f3aeefda.cd911",
407 "name": "Set allotted-resource-identifiers",
410 "x": 549.3386383056641,
411 "y": 548.3386459350586,
412 "z": "cab86701.408c88",
416 "id": "2d0ecbe9.d56c34",
418 "name": "save backup copy of mdsal-ar for rollback",
419 "xml": "<set>\n<parameter name='bk-sz-ar' value='$mdsal-ar.' />\n",
421 "x": 1332.3864250183105,
422 "y": 493.76729369163513,
423 "z": "cab86701.408c88",
427 "id": "33868ac7.abca26",
429 "name": "Create urls for restapi",
432 "x": 504.9576606750488,
433 "y": 362.6243562698364,
434 "z": "cab86701.408c88",
438 "id": "e6e17eb6.e762c",
445 "x": 983.2433853149414,
446 "y": 835.481632232666,
447 "z": "cab86701.408c88",
453 "id": "2b3604ae.317ccc",
455 "name": "TO DO: vnf/put parent",
458 "x": 517.2433776855468,
459 "y": 769.4815540313718,
460 "z": "cab86701.408c88",
464 "id": "af4ea7a7.5e99e8",
466 "name": "execute getTime",
467 "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='setTime' >\n <parameter name=\"outputPath\" value=\"tmp.current-time\" />\n\n",
470 "x": 491.24338150024414,
471 "y": 665.4815549850464,
472 "z": "cab86701.408c88",
478 "id": "c68f9183.6fe9",
481 "xml": "<outcome value='Other'>\n",
484 "x": 825.5766868591309,
485 "y": 529.4814250469208,
486 "z": "cab86701.408c88",
494 "id": "336a662a.c1025a",
496 "name": "block: atomic",
497 "xml": "<block atomic=\"true\">\n",
501 "x": 1005.5766372680664,
502 "y": 530.1479756832123,
503 "z": "cab86701.408c88",
509 "id": "a078b88c.279298",
512 "xml": "<set>\n<parameter name='sz-ar.allotted-resource-id' value=\"`$tmp.ar.allotted-resource-id` \" />\n<parameter name='sz-ar.allotted-resource-status.action' value=\"`$security-zone-topology-operation-input.request-information.request-action` \" />\n<parameter name='sz-ar.allotted-resource-status.rpc-name' value=\"security-zone-topology-operation\" />\n<parameter name='sz-ar.allotted-resource-status.rpc-action' value=\"`$security-zone-topology-operation-input.sdnc-request-header.svc-action` \" />\n<parameter name='sz-ar.allotted-resource-data.allotted-resource-operation-information.request-information.' value=\"`$security-zone-topology-operation-input.request-information.` \" />\n<parameter name='sz-ar.allotted-resource-data.allotted-resource-operation-information.sdnc-request-header.' value=\"`$security-zone-topology-operation-input.sdnc-request-header.` \" />\n<parameter name='sz-ar.allotted-resource-data.allotted-resource-operation-information.service-information.' value=\"`$security-zone-topology-operation-input.service-information.` \" />\n<parameter name='sz-ar.allotted-resource-data.allotted-resource-operation-information.allotted-resource-information.' value=\"`$security-zone-topology-operation-input.allotted-resource-information.` \" />\n<parameter name='sz-ar.allotted-resource-data.allotted-resource-operation-information.security-zone-request-input.' value=\"`$security-zone-topology-operation-input.security-zone-request-input.` \" />",
514 "x": 474.24342346191406,
515 "y": 585.1481666564941,
516 "z": "cab86701.408c88",
520 "id": "27c47993.316bb6",
527 "x": 2277.5997276306152,
528 "y": 524.0000190734863,
529 "z": "cab86701.408c88",
535 "id": "1469e91d.b421d7",
537 "name": "execute RestApiCallNode - PUT AR by id",
538 "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n <parameter name='templateFileName' value=\"`$prop.restapi.templateDir + '/' + $prop.restapi.sz.templatefile`\" />\n <parameter name='restapiUrl' value='`$prop.controller.url + $tmp.ar-url`' />\n <parameter name='restapiUser' value='`$prop.controller.user`' />\n <parameter name='restapiPassword' value='`$prop.controller.pwd`' />\n <parameter name='format' value='json' />\n <parameter name='httpMethod' value='PUT' />\n <parameter name=\"responsePrefix\" value=\"mdsal-ar\" />\n\n",
541 "x": 574.0000152587891,
542 "y": 850.0000247955322,
543 "z": "cab86701.408c88",
553 "id": "4a2606ec.007d08",
555 "name": "clear sz-ar-assignments",
556 "xml": "<set>\n<parameter name='sz-ar-assignments.' value=\"\" />\n\n\n\n",
560 "z": "cab86701.408c88",