3 "id": "c0a79856.b8a9a8",
\r
9 "z": "498236f1.856f48",
\r
17 "id": "f23fb4.004e985",
\r
18 "type": "service-logic",
\r
19 "name": "GENERIC-RESOURCE-API ${project.version}",
\r
20 "module": "GENERIC-RESOURCE-API",
\r
21 "version": "${project.version}",
\r
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}'>",
\r
25 "x": 260.2856903076172,
\r
26 "y": 124.23810863494873,
\r
27 "z": "498236f1.856f48",
\r
35 "id": "16bd01d7.cde55e",
\r
37 "name": "method sotn-vf-operation-l2vpn-activate",
\r
38 "xml": "<method rpc='sotn-vf-operation-l2vpn-activate' mode='sync'>\n",
\r
41 "x": 263.4286193847656,
\r
42 "y": 209.00003242492676,
\r
43 "z": "498236f1.856f48",
\r
51 "id": "4bca7263.f9b50c",
\r
53 "name": "block : atomic",
\r
54 "xml": "<block atomic=\"true\">",
\r
57 "x": 631.2380447387695,
\r
58 "y": 423.66666814964265,
\r
59 "z": "498236f1.856f48",
\r
69 "id": "213a5120.a6687e",
\r
71 "name": "set vnf-level-oper-status to Active",
\r
72 "xml": "<set>\n<parameter name='service-data.vnfs.vnf[$tmp.vidx].vnf-data.vnf-level-oper-status.order-status' value='Active' />\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`' />",
\r
74 "x": 1046.3850173950195,
\r
75 "y": 610.6705513000488,
\r
76 "z": "498236f1.856f48",
\r
80 "id": "89ba9e4f.322f08",
\r
81 "type": "returnSuccess",
\r
82 "name": "return success",
\r
83 "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",
\r
85 "x": 966.5717086791992,
\r
86 "y": 736.5970888137817,
\r
87 "z": "498236f1.856f48",
\r
91 "id": "b6b036c1.4e053",
\r
93 "name": "set vnf-index and vnf-object-path",
\r
94 "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/'` \" />-->\n\n<parameter name='vnfId' value='`$vf-module-topology-operation-input.vf-module-information.vf-module-id`' />\n<parameter name=\"vnf-object-path\" value=\"`'restconf/config/GENERIC-RESOURCE-API:services/service/' + $vf-module-topology-operation-input.service-information.service-instance-id + '/service-data/vnfs/vnf/' + $vf-module-topology-operation-input.vnf-information.vnf-id + '/vnf-data/'` \" />\n",
\r
96 "x": 1052.571662902832,
\r
97 "y": 558.5968055725098,
\r
98 "z": "498236f1.856f48",
\r
102 "id": "951505a8.4ab128",
\r
103 "type": "switchNode",
\r
104 "name": "switch service-data.vnfs.vnf_length",
\r
105 "xml": "<switch test='`$service-data.vnfs.vnf_length`'>\n",
\r
108 "x": 1061.0000610351562,
\r
109 "y": 313.00000545661896,
\r
110 "z": "498236f1.856f48",
\r
120 "id": "3ee80cd1.702c9c",
\r
123 "xml": "<outcome value='0'>\n",
\r
126 "x": 1319.9689559936523,
\r
127 "y": 274.96876499336213,
\r
128 "z": "498236f1.856f48",
\r
136 "id": "bc487c7b.4684b8",
\r
137 "type": "returnFailure",
\r
138 "name": "return failure",
\r
139 "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",
\r
141 "x": 1474.7778434753418,
\r
142 "y": 293.88903352897614,
\r
143 "z": "498236f1.856f48",
\r
147 "id": "298b7800.074bc",
\r
150 "xml": "<outcome value=''>\n",
\r
153 "x": 1313.0000953674316,
\r
154 "y": 314.00008651893586,
\r
155 "z": "498236f1.856f48",
\r
163 "id": "302f9230.c82bc6",
\r
166 "xml": "<outcome value='Other'>\n",
\r
169 "x": 1306.000503540039,
\r
170 "y": 347.0000903336331,
\r
171 "z": "498236f1.856f48",
\r
179 "id": "3aa4324.564e84e",
\r
181 "name": "block : atomic",
\r
182 "xml": "<block atomic=\"true\">",
\r
185 "x": 1453.2700462341309,
\r
186 "y": 347.55473539512604,
\r
187 "z": "498236f1.856f48",
\r
195 "id": "ea8cd4e1.da014",
\r
197 "name": "for vidx..service-data.vnfs.vnf_length[]",
\r
198 "xml": "<for index='vidx' start='0' end='`$service-data.vnfs.vnf_length`' >\n",
\r
201 "x": 1699.2861633300781,
\r
202 "y": 354.4286558357999,
\r
203 "z": "498236f1.856f48",
\r
211 "id": "6be80779.f9067",
\r
214 "xml": "<block>\n",
\r
218 "x": 1918.6357955932617,
\r
219 "y": 353.9687359062955,
\r
220 "z": "498236f1.856f48",
\r
228 "id": "e37eb61b.35117",
\r
229 "type": "switchNode",
\r
230 "name": "switch vnfid found",
\r
231 "xml": "<!--<switch test=\"`$service-data.vnfs.vnf[$vidx].vnf-id == $vnf-topology-operation-input.vnf-information.vnf-id`\">-->\n\n<switch test=\"`$service-data.vnfs.vnf[$vidx].vnf-id == $vf-topology-operation-input.vf-module-information.vf-module-id`\">\n\n",
\r
234 "x": 2072.7153930664062,
\r
235 "y": 353.67881796043366,
\r
236 "z": "498236f1.856f48",
\r
244 "id": "b5cfadba.1f4aa",
\r
245 "type": "outcomeTrue",
\r
247 "xml": "<outcome value='true'>\n",
\r
250 "x": 2248.6675148010254,
\r
251 "y": 353.57150003593415,
\r
252 "z": "498236f1.856f48",
\r
260 "id": "bd36402c.584f38",
\r
262 "name": "set tmp.vidx and ctx.vnf-data",
\r
263 "xml": "<set>\n<parameter name='tmp.vidx' value='`$vidx`' />\n<parameter name='ctx.vnf-data.' value='`$service-data.vnfs.vnf[$vidx].`' />\n",
\r
265 "x": 2458.1998901367188,
\r
266 "y": 355.3216001717374,
\r
267 "z": "498236f1.856f48",
\r
271 "id": "a1814ef6.4e6ba",
\r
273 "name": "update AnAI - l2vpn.operational-status",
\r
274 "xml": "<update plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\tresource=\"connectivity\" \n\t\tkey=\"connectivity.connectivity-id = $vnfId\" >\n<parameter name=\"operational-status\" value=\"Active\" />",
\r
277 "x": 1072.0000228881836,
\r
278 "y": 677.0103769302368,
\r
279 "z": "498236f1.856f48",
\r
285 "id": "fa4a7cef.4c643",
\r
287 "name": "copy input data to service data",
\r
288 "xml": "<set>\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.' />",
\r
290 "x": 1051.0001373291016,
\r
291 "y": 508.010338306427,
\r
292 "z": "498236f1.856f48",
\r
296 "id": "d491e887.81b538",
\r
297 "type": "switchNode",
\r
298 "name": "switch vnf-level-oper-status",
\r
299 "xml": "<switch test='`$service-data.vnfs.vnf[$tmp.vidx].vnf-data.vnf-level-oper-status.order-status`'>\n",
\r
303 "y": 413.00390815734863,
\r
304 "z": "498236f1.856f48",
\r
313 "id": "2e735695.8a522a",
\r
315 "name": "outcome Created",
\r
316 "xml": "<outcome value='Created'>\n",
\r
319 "x": 1283.583293914795,
\r
320 "y": 414.1150059700012,
\r
321 "z": "498236f1.856f48",
\r
329 "id": "9667f59f.7676c8",
\r
332 "xml": "<outcome value='Other'>\n",
\r
335 "x": 1261.5833129882812,
\r
336 "y": 464.115017414093,
\r
337 "z": "498236f1.856f48",
\r
345 "id": "aa583cbc.e62958",
\r
346 "type": "returnFailure",
\r
347 "name": "return failure",
\r
348 "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 is not in appropriate state for activate. Current state is ' + $service-data.vnfs.vnf[$tmp.nidx].vnf-data.vnf-level-oper-status.order-status`\" />",
\r
350 "x": 1421.083080291748,
\r
351 "y": 467.1150164604187,
\r
352 "z": "498236f1.856f48",
\r
356 "id": "a29cc418.229998",
\r
358 "name": "block : atomic",
\r
359 "xml": "<block atomic=\"true\">",
\r
362 "x": 1493.8896675109863,
\r
363 "y": 425.4401812553406,
\r
364 "z": "498236f1.856f48",
\r