3 "id": "8f1f2ad4.1b2628",
9 "z": "892de9cf.a3e7e8",
17 "id": "aef28f38.d3ad2",
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.2380790710449,
26 "y": 170.95239067077637,
27 "z": "892de9cf.a3e7e8",
35 "id": "d541214e.1421c",
37 "name": "security-zone-topology-operation-unassign",
38 "xml": "<method rpc='security-zone-topology-operation-unassign' mode='sync'>\n",
41 "x": 325.15489196777344,
42 "y": 210.190447807312,
43 "z": "892de9cf.a3e7e8",
51 "id": "3d909232.be8cbe",
53 "name": "block : atomic",
54 "xml": "<block atomic=\"true\">",
58 "x": 235.47619247436523,
59 "y": 349.5237879753113,
60 "z": "892de9cf.a3e7e8",
75 "id": "65b7ebff.45ef54",
76 "type": "returnSuccess",
77 "name": "return success",
78 "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",
80 "x": 502.0001106262207,
81 "y": 1019.2145080566406,
82 "z": "892de9cf.a3e7e8",
86 "id": "ac546d04.a44e3",
88 "name": "set output to api handler",
89 "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",
91 "x": 530.7540245056152,
92 "y": 983.3370542526245,
93 "z": "892de9cf.a3e7e8",
97 "id": "16719562.f89cfb",
99 "name": "set tmp.ar.self-link",
100 "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",
102 "x": 497.73806381225586,
103 "y": 323.33332538604736,
104 "z": "892de9cf.a3e7e8",
108 "id": "887af0a1.cfd5a",
110 "name": "set tmp.ar.allotted-resource-id,etc",
111 "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",
113 "x": 544.9973258972168,
114 "y": 289.59259128570557,
115 "z": "892de9cf.a3e7e8",
119 "id": "921e5db9.a3742",
121 "name": "execute Properties",
122 "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",
125 "x": 503.9934196472168,
126 "y": 359.23152446746826,
127 "z": "892de9cf.a3e7e8",
133 "id": "4585bd6c.db3454",
135 "name": "execute RestApiCallNode - Get AR by id",
136 "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",
139 "x": 566.5187530517578,
140 "y": 520.4594917297363,
141 "z": "892de9cf.a3e7e8",
150 "id": "ae6a6800.748f18",
152 "name": "generate allotted-resource url",
153 "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",
156 "x": 532.0648536682129,
157 "y": 419.0172290802002,
158 "z": "892de9cf.a3e7e8",
164 "id": "39c78959.7ed206",
167 "xml": "<outcome value='success'>\n",
170 "x": 823.8148918151855,
171 "y": 519.2672522068024,
172 "z": "892de9cf.a3e7e8",
180 "id": "cf288e81.867c",
183 "xml": "<outcome value='not-found'>\n",
186 "x": 844.837329864502,
187 "y": 926.432332418859,
188 "z": "892de9cf.a3e7e8",
196 "id": "8f1f61fb.4c4c9",
199 "xml": "<outcome value='failure'>\n",
202 "x": 835.8373794555664,
203 "y": 894.9323581680655,
204 "z": "892de9cf.a3e7e8",
212 "id": "48115134.9ae56",
215 "xml": "<outcome value='success'>\n",
218 "x": 839.5874176025391,
219 "y": 865.2894630432129,
220 "z": "892de9cf.a3e7e8",
228 "id": "562e732f.776e5c",
229 "type": "returnFailure",
230 "name": "return failure",
231 "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",
233 "x": 1005.5874176025391,
234 "y": 895.6823820099235,
235 "z": "892de9cf.a3e7e8",
239 "id": "aa4578bf.e01898",
241 "name": "block: atomic",
242 "xml": "<block atomic=\"true\">\n",
246 "x": 1004.8148460388184,
247 "y": 519.7672016620636,
248 "z": "892de9cf.a3e7e8",
257 "id": "d17cf2f0.cec85",
258 "type": "switchNode",
259 "name": "switch sz length",
260 "xml": "<switch test='`$mdsal-ar.security-zone-allotted-resource_length`'>\n",
263 "x": 1250.6720924377441,
264 "y": 554.052964925766,
265 "z": "892de9cf.a3e7e8",
273 "id": "9eb758cd.982008",
276 "xml": "<outcome value='1'>\n",
279 "x": 1441.6720962524414,
280 "y": 554.0529625415802,
281 "z": "892de9cf.a3e7e8",
289 "id": "90a7fa85.7e06d8",
291 "name": "set sz-ar from get",
292 "xml": "<set>\n<parameter name='sz-ar.' value='$mdsal-ar.security-zone-allotted-resource[0].' />\n",
294 "x": 1841.5292320251465,
295 "y": 554.6243867874146,
296 "z": "892de9cf.a3e7e8",
300 "id": "e43335e7.a2b4b8",
302 "name": "block: atomic",
303 "xml": "<block atomic='true'>\n",
307 "x": 1612.5290794372559,
308 "y": 554.6244316101074,
309 "z": "892de9cf.a3e7e8",
319 "id": "82e79827.7b2528",
321 "name": "set oper-status",
322 "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",
324 "x": 1839.5294761657715,
325 "y": 622.0529508590698,
326 "z": "892de9cf.a3e7e8",
330 "id": "dceff592.9c16a8",
332 "name": "GET security-zone-allotted-resource from mdsal",
335 "x": 591.8148155212402,
336 "y": 483.7671926021576,
337 "z": "892de9cf.a3e7e8",
341 "id": "e9d4c55b.3b68e8",
342 "type": "switchNode",
343 "name": "switch order-status",
344 "xml": "<switch test='`$sz-ar.allotted-resource-data.allotted-resource-oper-status.order-status`'>\n",
347 "x": 1849.52925491333,
348 "y": 587.6243848800659,
349 "z": "892de9cf.a3e7e8",
358 "id": "ee32ca42.029ac8",
360 "name": "outcome Created",
361 "xml": "<outcome value='Created'>\n",
364 "x": 2061.1292114257812,
365 "y": 548.6243848800659,
366 "z": "892de9cf.a3e7e8",
374 "id": "f44f15e1.8ed938",
376 "name": "outcome Other",
377 "xml": "<outcome value='Other'>\n",
380 "x": 2086.8435859680176,
381 "y": 584.052975654602,
382 "z": "892de9cf.a3e7e8",
390 "id": "dae16c74.e3b7c",
392 "name": "save backup copy of mdsal-ar for rollback",
393 "xml": "<set>\n<parameter name='bk-sz-ar' value='$mdsal-ar.' />\n",
395 "x": 1330.3864250183105,
396 "y": 519.7672936916351,
397 "z": "892de9cf.a3e7e8",
401 "id": "972a22dc.b7b85",
403 "name": "Create urls for restapi",
406 "x": 502.9576606750488,
407 "y": 388.6243562698364,
408 "z": "892de9cf.a3e7e8",
412 "id": "9c761fba.db0c3",
419 "x": 981.2433853149414,
420 "y": 861.481632232666,
421 "z": "892de9cf.a3e7e8",
427 "id": "f4ec9c65.dbf1a",
430 "xml": "<outcome value='Other'>\n",
433 "x": 823.5766868591309,
434 "y": 555.4814250469208,
435 "z": "892de9cf.a3e7e8",
443 "id": "8c932988.c6f7a8",
445 "name": "block: atomic",
446 "xml": "<block atomic=\"true\">\n",
450 "x": 1003.5766372680664,
451 "y": 556.1479756832123,
452 "z": "892de9cf.a3e7e8",
458 "id": "74e489f7.35eb68",
465 "x": 2275.5997276306152,
466 "y": 550.0000190734863,
467 "z": "892de9cf.a3e7e8",
473 "id": "a30a4193.dc67c",
475 "name": "execute RestApiCallNode - PUT AR by id",
476 "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='DELETE' />\n <parameter name=\"responsePrefix\" value=\"mdsal-ar\" />\n\n",
479 "x": 568.0000610351562,
480 "y": 878.0000267028809,
481 "z": "892de9cf.a3e7e8",