Revert "GRAPI DG enhancement"
[sdnc/oam.git] / platform-logic / generic-resource-api / src / main / xml / GENERIC-RESOURCE-API_self-serve-vnf-assign.xml
1 <service-logic\r
2     xmlns='http://www.onap.org/sdnc/svclogic'\r
3     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
4     <method rpc='self-serve-vnf-assign' mode='sync'>\r
5         <block atomic='true'>\r
6             <set>\r
7                 <parameter name='is-new-vnf' value='true' />\r
8             </set>\r
9             <switch test='`$service-data.vnfs.vnf_length`'>\r
10                 <outcome value=''>\r
11                     <block>\r
12                         <set>\r
13                             <parameter name='vnf-index' value='0' />\r
14                         </set>\r
15                         <set>\r
16                             <parameter name='service-data.vnfs.vnf_length' value='1' />\r
17                         </set>\r
18                     </block>\r
19                 </outcome>\r
20                 <outcome value='0'>\r
21                     <block>\r
22                         <set>\r
23                             <parameter name='vnf-index' value='0' />\r
24                         </set>\r
25                         <set>\r
26                             <parameter name='service-data.vnfs.vnf_length' value='1' />\r
27                         </set>\r
28                     </block>\r
29                 </outcome>\r
30                 <outcome value='Other'>\r
31                     <block>\r
32                         <for index='idx' start='0' end='`$service-data.vnfs.vnf_length`' >\r
33                             <switch test='`$vnf-topology-operation-input.vnf-information.vnf-id == $service-data.vnfs.vnf[$idx].vnf-id`'>\r
34                                 <outcome value='true'>\r
35                                     <block>\r
36                                         <set>\r
37                                             <parameter name='is-new-vnf' value='false' />\r
38                                         </set>\r
39                                         <set>\r
40                                             <parameter name='vnf-index' value='`$idx`' />\r
41                                         </set>\r
42                                         <break/>\r
43                                     </block>\r
44                                 </outcome>\r
45                             </switch>\r
46                         </for>\r
47                         <switch test='`$is-new-vnf`'>\r
48                             <outcome value='true'>\r
49                                 <block>\r
50                                     <set>\r
51                                         <parameter name='vnf-index' value='`$service-data.vnfs.vnf_length`' />\r
52                                     </set>\r
53                                     <set>\r
54                                         <parameter name='service-data.vnfs.vnf_length' value='`$service-data.vnfs.vnf_length + 1`' />\r
55                                     </set>\r
56                                 </block>\r
57                             </outcome>\r
58                         </switch>\r
59                     </block>\r
60                 </outcome>\r
61             </switch>\r
62             <switch test='`$is-new-vnf`'>\r
63                 <outcome value='true'>\r
64                     <block>\r
65                         <set>\r
66                             <parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-topology-identifier-structure.vnf-id'\r
67  value='`$vnf-topology-operation-input.vnf-information.vnf-id`' />\r
68                             <parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-topology-identifier-structure.vnf-type'\r
69  value='`$vnf-topology-operation-input.vnf-information.vnf-type`' />\r
70                             <parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-topology-identifier-structure.nf-type'\r
71  value='`$db.vf-model.nf-type`' />\r
72                             <parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-topology-identifier-structure.nf-role'\r
73  value='`$db.vf-model.nf-role`' />\r
74                             <parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-topology-identifier-structure.nf-function'\r
75  value='`$db.vf-model.nf-function`' />\r
76                             <parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-topology-identifier-structure.nf-code'\r
77  value='`$db.vf-model.nf-code`' />\r
78                             <parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.tenant'\r
79  value='`$vnf-topology-operation-input.vnf-request-input.tenant`' />\r
80                             <parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.aic-cloud-region'\r
81  value='`$vnf-topology-operation-input.vnf-request-input.aic-cloud-region`' />\r
82                         </set>\r
83                         <set>\r
84                             <parameter name='service-data.vnfs.vnf[$vnf-index].vnf-id'\r
85    value='`$vnf-topology-operation-input.vnf-information.vnf-id`' />\r
86                         </set>\r
87                         <switch test='`$vnf-topology-operation-input.vnf-information.onap-model-information.model-invariant-uuid`'>\r
88                             <outcome value=''>\r
89                                 <set>\r
90                                     <parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.onap-model-information.model-invariant-uuid'\r
91   value='`$db.vf-model.invariant-uuid`' />\r
92                                 </set>\r
93                             </outcome>\r
94                             <outcome value='Other'>\r
95                                 <set>\r
96                                     <parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.onap-model-information.model-invariant-uuid'\r
97   value='`$vnf-topology-operation-input.vnf-information.onap-model-information.model-invariant-uuid`' />\r
98                                 </set>\r
99                             </outcome>\r
100                         </switch>\r
101                         <switch test='`$vnf-topology-operation-input.vnf-information.onap-model-information.model-uuid`'>\r
102                             <outcome value=''>\r
103                                 <set>\r
104                                     <parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.onap-model-information.model-uuid'\r
105   value='`$db.vf-model.uuid`' />\r
106                                 </set>\r
107                             </outcome>\r
108                             <outcome value='Other'>\r
109                                 <set>\r
110                                     <parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.onap-model-information.model-uuid'\r
111   value='`$vnf-topology-operation-input.vnf-information.onap-model-information.model-uuid`' />\r
112                                 </set>\r
113                             </outcome>\r
114                         </switch>\r
115                         <switch test='`$vnf-topology-operation-input.vnf-information.onap-model-information.model-version`'>\r
116                             <outcome value=''>\r
117                                 <set>\r
118                                     <parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.onap-model-information.model-version'\r
119   value='`$db.vf-model.version`' />\r
120                                 </set>\r
121                             </outcome>\r
122                             <outcome value='Other'>\r
123                                 <set>\r
124                                     <parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.onap-model-information.model-version'\r
125   value='`$vnf-topology-operation-input.vnf-information.onap-model-information.model-version`' />\r
126                                 </set>\r
127                             </outcome>\r
128                         </switch>\r
129                         <switch test='`$vnf-topology-operation-input.vnf-information.onap-model-information.model-name`'>\r
130                             <outcome value=''>\r
131                                 <set>\r
132                                     <parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.onap-model-information.model-name'\r
133   value='`$db.vf-model.name`' />\r
134                                 </set>\r
135                             </outcome>\r
136                             <outcome value='Other'>\r
137                                 <set>\r
138                                     <parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.onap-model-information.model-name'\r
139   value='`$vnf-topology-operation-input.vnf-information.onap-model-information.model-name`' />\r
140                                 </set>\r
141                             </outcome>\r
142                         </switch>\r
143                         <set>\r
144                             <parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.onap-model-information.model-customization-uuid'\r
145   value='`$vnf-topology-operation-input.vnf-information.onap-model-information.model-customization-uuid`' />\r
146                         </set>\r
147                         <set>\r
148                             <parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.sdnc-request-header.' \r
149         value='$vnf-topology-operation-input.sdnc-request-header.' />\r
150                             <parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.request-information.' \r
151         value='$vnf-topology-operation-input.request-information.' />\r
152                             <parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.service-information.' \r
153         value='$vnf-topology-operation-input.service-information.' />\r
154                             <parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-information.' \r
155         value='$vnf-topology-operation-input.vnf-information.' />\r
156                             <parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-request-input.' \r
157         value='$vnf-topology-operation-input.vnf-request-input.' />\r
158                         </set>\r
159                         <set>\r
160                             <parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-level-oper-status.order-status' value='PendingCreate' />\r
161                             <parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-level-oper-status.last-rpc-action' value='`$vnf-topology-operation-input.sdnc-request-header.svc-action`' />\r
162                             <parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-level-oper-status.last-action' value='`$vnf-topology-operation-input.request-information.request-action`' />\r
163                         </set>\r
164                     </block>\r
165                 </outcome>\r
166             </switch>\r
167             <set>\r
168                 <parameter name='ss.capability.execution-order[0]' value='generate-name' />\r
169                 <parameter name='ss.capability.execution-order[1]' value='alts-entitlement-assign' />\r
170                 <parameter name='ss.capability.execution-order[2]' value='alts-license-assign' />\r
171                 <parameter name='ss.capability.execution-order[3]' value='vlan-tag-assign' />\r
172                 <parameter name='ss.capability.execution-order[4]' value='mS-vlan-tag-assign' />\r
173                 <parameter name='ss.capability.execution-order[5]' value='eipam-ip-assignment' />\r
174                 <parameter name='ss.capability.execution-order[6]' value='eipam-create-pool' />\r
175                 <parameter name='ss.capability.execution-order[7]' value='netbox-ip-assign' />\r
176                 <parameter name='ss.capability.execution-order[8]' value='mac-address-assign' />\r
177                 <parameter name='ss.capability.execution-order[9]' value='mS-mac-address-assign' />\r
178                 <parameter name='ss.capability.execution-order[10]' value='create-vpe-pool' />\r
179                 <parameter name='ss.capability.execution-order[11]' value='unresolved-composite-data' />\r
180                 <parameter name='ss.capability.execution-order[12]' value='aai-vnf-put' />\r
181                 <parameter name='ss.capability.execution-order_length' value='13' />\r
182             </set>\r
183             <set>\r
184                 <parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.sdnc-generated-cloud-resources' value='true' />\r
185             </set>\r
186             <set>\r
187                 <parameter name='ss.capability-type' value='vnf' />\r
188             </set>\r
189             <switch test='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-parameters-data.param_length`'>\r
190                 <outcome value=''>\r
191                     <block atomic='true'>\r
192                         <set>\r
193                             <parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-parameters-data.'\r
194   value='vnf-topology-operation-input.vnf-request-input.vnf-input-parameters.' />\r
195                         </set>\r
196                         <call module='GENERIC-RESOURCE-API' rpc='self-serve-vnf-ra-assignment' mode='sync' >\r
197                             <outcome value='failure'>\r
198                                 <return status='failure'>\r
199                                     <parameter name='error-code' value='500' />\r
200                                     <parameter name='error-message' value="`'Failed to get RA assignments: ' + $error-message`" />\r
201                                 </return>\r
202                             </outcome>\r
203                         </call>\r
204                     </block>\r
205                 </outcome>\r
206             </switch>\r
207             <for index='cidx' start='0' end='`$ss.capability.execution-order_length`' >\r
208                 <set>\r
209                     <parameter name='ss.capability-name' value='`$ss.capability.execution-order[$cidx]`' />\r
210                     <!--\r
211 ss.capability.execution-order[]\r
212 -->\r
213                 </set>\r
214                 <set>\r
215                     <parameter name='ss.capability-action' value='assign' />\r
216                 </set>\r
217                 <set>\r
218                     <parameter name='ss.capability-dg' value="`'self-serve-' + $ss.capability.execution-order[$cidx]`" />\r
219                 </set>\r
220                 <for index='pidx' start='0' end='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-parameters-data.param_length`' >\r
221                     <set>\r
222                         <parameter name='tmp.param.capability-name' value='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-parameters-data.param[$pidx].resource-resolution-data.capability-name`' />\r
223                     </set>\r
224                     <switch test='`$ss.capability-name == $tmp.param.capability-name`'>\r
225                         <outcome value='true'>\r
226                             <switch test='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-parameters-data.param[$pidx].resource-resolution-data.status`'>\r
227                                 <outcome value='PENDING'>\r
228                                     <call module='GENERIC-RESOURCE-API' rpc='`$ss.capability-dg`' mode='sync' >\r
229                                         <outcome value='failure'>\r
230                                             <block atomic='true'>\r
231                                                 <set>\r
232                                                     <parameter name='vf.vnf-id'\r
233     value='`$service-data.vnfs.vnf[$vnf-index].vnf-id`' />\r
234                                                     <parameter name='vf.vnf-data.sdnc-request-header.'\r
235   value='`$service-data.vnfs.vnf[$vnf-index].vnf-data.sdnc-request-header.`' />\r
236                                                     <parameter name='vf.vnf-data.request-information.'\r
237   value='`$service-data.vnfs.vnf[$vnf-index].vnf-data.request-information.`' />\r
238                                                     <parameter name='vf.vnf-data.service-information.'\r
239   value='`$service-data.vnfs.vnf[$vnf-index].vnf-data.service-information.`' />\r
240                                                     <parameter name='vf.vnf-data.vnf-information.'\r
241   value='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-information.`' />\r
242                                                     <parameter name='vf.vnf-data.vnf-topology.'\r
243   value='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.`' />\r
244                                                     <parameter name='vf.vnf-data.vnf-level-oper-status.'\r
245   value='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-level-oper-status.`' />\r
246                                                     <parameter name='vf.vnf-data.vnf-request-input.vnf-input-parameters.'\r
247   value='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-request-input.vnf-input-parameters.`' />\r
248                                                     <parameter name='vf.vnf-data.vnf-request-input.request-version'\r
249   value='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-request-input.request-version`' />\r
250                                                     <parameter name='vf.vnf-data.vnf-request-input.vnf-name'\r
251   value='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-request-input.vnf-name`' />\r
252                                                     <parameter name='vf.vnf-data.vnf-request-input.tenant'\r
253   value='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-request-input.tenant`' />\r
254                                                     <parameter name='vf.vnf-data.vnf-request-input.aic-cloud-region'\r
255   value='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-request-input.aic-cloud-region`' />\r
256                                                     <parameter name='vf.vnf-data.vnf-request-input.aic-clli'\r
257   value='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-request-input.aic-clli`' />\r
258                                                 </set>\r
259                                                 <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\r
260                                                     <parameter name="source" value="`$prop.restapi.ss-vnf-assignments`"/>\r
261                                                     <parameter name="outputPath" value="tmp.ss-vnf-url"/>\r
262                                                     <parameter name="target" value="{service-instance-id}"/>\r
263                                                     <parameter name="replacement" value="`$service-data.vnfs.vnf[$vnf-index].vnf-data.service-information.service-instance-id`"/>\r
264                                                 </execute>\r
265                                                 <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\r
266                                                     <parameter name="source" value="`$tmp.ss-vnf-url`"/>\r
267                                                     <parameter name="outputPath" value="tmp.ss-vnf-url"/>\r
268                                                     <parameter name="target" value="{vnf-id}"/>\r
269                                                     <parameter name="replacement" value="`$service-data.vnfs.vnf[$vnf-index].vnf-id`"/>\r
270                                                 </execute>\r
271                                                 <execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\r
272                                                     <parameter name='templateFileName' value="`$prop.restapi.templateDir + '/' + $prop.restapi.ss.vnf.templatefile`" />\r
273                                                     <parameter name='restapiUrl' value='`$prop.controller.url + $tmp.ss-vnf-url`' />\r
274                                                     <parameter name='restapiUser' value='`$prop.controller.user`' />\r
275                                                     <parameter name='restapiPassword' value='`$prop.controller.pwd`' />\r
276                                                     <parameter name='format' value='json' />\r
277                                                     <parameter name='httpMethod' value='PUT' />\r
278                                                     <parameter name="responsePrefix" value="mdsal-ss-vnf" />\r
279                                                     <outcome value='failure'>\r
280                                                         <set>\r
281                                                             <parameter name="error-message" value="Failed to persist self-serve vnf assignments during assign in MD-SAL" />\r
282                                                         </set>\r
283                                                     </outcome>\r
284                                                     <outcome value='not-found'>\r
285                                                         <set>\r
286                                                             <parameter name="error-message" value="Failed to persist self-serve vnf assignments during assign in MD-SAL" />\r
287                                                         </set>\r
288                                                     </outcome>\r
289                                                 </execute>\r
290                                                 <return status='failure'>\r
291                                                     <parameter name='error-code' value='500' />\r
292                                                     <parameter name='error-message' value="`'Encountered error from capability: '+ $ss.capability-dg + ', with error: '+ $error-message`" />\r
293                                                 </return>\r
294                                             </block>\r
295                                         </outcome>\r
296                                     </call>\r
297                                 </outcome>\r
298                                 <outcome value='FAILED'>\r
299                                     <call module='GENERIC-RESOURCE-API' rpc='`$ss.capability-dg`' mode='sync' >\r
300                                         <outcome value='failure'>\r
301                                             <block atomic='true'>\r
302                                                 <set>\r
303                                                     <parameter name='vf.vnf-id'\r
304     value='`$service-data.vnfs.vnf[$vnf-index].vnf-id`' />\r
305                                                     <parameter name='vf.vnf-data.sdnc-request-header.'\r
306   value='`$service-data.vnfs.vnf[$vnf-index].vnf-data.sdnc-request-header.`' />\r
307                                                     <parameter name='vf.vnf-data.request-information.'\r
308   value='`$service-data.vnfs.vnf[$vnf-index].vnf-data.request-information.`' />\r
309                                                     <parameter name='vf.vnf-data.service-information.'\r
310   value='`$service-data.vnfs.vnf[$vnf-index].vnf-data.service-information.`' />\r
311                                                     <parameter name='vf.vnf-data.vnf-information.'\r
312   value='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-information.`' />\r
313                                                     <parameter name='vf.vnf-data.vnf-topology.'\r
314   value='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.`' />\r
315                                                     <parameter name='vf.vnf-data.vnf-level-oper-status.'\r
316   value='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-level-oper-status.`' />\r
317                                                     <parameter name='vf.vnf-data.vnf-request-input.vnf-input-parameters.'\r
318   value='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-request-input.vnf-input-parameters.`' />\r
319                                                     <parameter name='vf.vnf-data.vnf-request-input.request-version'\r
320   value='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-request-input.request-version`' />\r
321                                                     <parameter name='vf.vnf-data.vnf-request-input.vnf-name'\r
322   value='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-request-input.vnf-name`' />\r
323                                                     <parameter name='vf.vnf-data.vnf-request-input.tenant'\r
324   value='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-request-input.tenant`' />\r
325                                                     <parameter name='vf.vnf-data.vnf-request-input.aic-cloud-region'\r
326   value='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-request-input.aic-cloud-region`' />\r
327                                                     <parameter name='vf.vnf-data.vnf-request-input.aic-clli'\r
328   value='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-request-input.aic-clli`' />\r
329                                                 </set>\r
330                                                 <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\r
331                                                     <parameter name="source" value="`$prop.restapi.ss-vnf-assignments`"/>\r
332                                                     <parameter name="outputPath" value="tmp.ss-vnf-url"/>\r
333                                                     <parameter name="target" value="{service-instance-id}"/>\r
334                                                     <parameter name="replacement" value="`$service-data.vnfs.vnf[$vnf-index].vnf-data.service-information.service-instance-id`"/>\r
335                                                 </execute>\r
336                                                 <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\r
337                                                     <parameter name="source" value="`$tmp.ss-vnf-url`"/>\r
338                                                     <parameter name="outputPath" value="tmp.ss-vnf-url"/>\r
339                                                     <parameter name="target" value="{vnf-id}"/>\r
340                                                     <parameter name="replacement" value="`$service-data.vnfs.vnf[$vnf-index].vnf-id`"/>\r
341                                                 </execute>\r
342                                                 <execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\r
343                                                     <parameter name='templateFileName' value="`$prop.restapi.templateDir + '/' + $prop.restapi.ss.vnf.templatefile`" />\r
344                                                     <parameter name='restapiUrl' value='`$prop.controller.url + $tmp.ss-vnf-url`' />\r
345                                                     <parameter name='restapiUser' value='`$prop.controller.user`' />\r
346                                                     <parameter name='restapiPassword' value='`$prop.controller.pwd`' />\r
347                                                     <parameter name='format' value='json' />\r
348                                                     <parameter name='httpMethod' value='PUT' />\r
349                                                     <parameter name="responsePrefix" value="mdsal-ss-vnf" />\r
350                                                     <outcome value='failure'>\r
351                                                         <set>\r
352                                                             <parameter name="error-message" value="Failed to persist self-serve vnf assignments during assign in MD-SAL" />\r
353                                                         </set>\r
354                                                     </outcome>\r
355                                                     <outcome value='not-found'>\r
356                                                         <set>\r
357                                                             <parameter name="error-message" value="Failed to persist self-serve vnf assignments during assign in MD-SAL" />\r
358                                                         </set>\r
359                                                     </outcome>\r
360                                                 </execute>\r
361                                                 <return status='failure'>\r
362                                                     <parameter name='error-code' value='500' />\r
363                                                     <parameter name='error-message' value="`'Encountered error from capability: '+ $ss.capability-dg + ', with error: '+ $error-message`" />\r
364                                                 </return>\r
365                                             </block>\r
366                                         </outcome>\r
367                                     </call>\r
368                                 </outcome>\r
369                             </switch>\r
370                         </outcome>\r
371                     </switch>\r
372                 </for>\r
373             </for>\r
374             <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='printContext' >\r
375                 <parameter name='filename' value='/var/tmp/ss-vnf-assign.log' />\r
376             </execute>\r
377         </block>\r
378     </method>\r
379 </service-logic>