Updates for vCPE Testing
[sdnc/oam.git] / platform-logic / generic-resource-api / src / main / xml / GENERIC-RESOURCE-API_vf-module-topology-operation-assign.xml
1 <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}'><method rpc='vf-module-topology-operation-assign' mode='sync'>\r
2 <block atomic="true"><switch test='`$vf-module-topology-operation-input.request-information.request-action`'>\r
3 <outcome value='CreateVfModuleInstance'>\r
4 <block>\r
5 </block></outcome><outcome value='Other'>\r
6 <return status='failure'>\r
7         <parameter name='ack-final' value='Y'/>\r
8         <parameter name="error-code" value="500" />\r
9     <parameter name="error-message" value="If svc-action is 'assign' then request-action must be 'CreateVfModuleInstance'" />\r
10 </return></outcome></switch><get-resource plugin='org.onap.ccsdk.sli.adaptors.resource.sql.SqlResource' resource='SQL'\r
11   key='SELECT * from VF_MODULE_MODEL WHERE customization_uuid = $vf-module-topology-operation-input.vf-module-information.onap-model-information.model-customization-uuid'\r
12   pfx='db.vf-module-model'>\r
13 \r
14 <outcome value='failure'>\r
15 <return status='failure'>\r
16         <parameter name='ack-final' value='Y'/>\r
17         <parameter name="error-code" value="500" />\r
18     <parameter name="error-message" value="Error reading VF_MODULE_MODEL table" />\r
19 </return></outcome><outcome value='not-found'>\r
20 <return status='failure'>\r
21         <parameter name='ack-final' value='Y'/>\r
22         <parameter name="error-code" value="500" />\r
23     <parameter name="error-message" value="`'No model found for VF module customization UUID ' + $vf-module-topology-operation-input.vf-module-information.onap-model-information.model-customization-uuid`" />\r
24 </return></outcome></get-resource><set>\r
25 <parameter name='vnf-index' value='-1' />\r
26 </set><switch test='`$service-data.vnfs.vnf_length`'>\r
27 <outcome value=''>\r
28 <return status='failure'>\r
29         <parameter name='ack-final' value='Y'/>\r
30         <parameter name="error-code" value="500" />\r
31     <parameter name="error-message" value="There are no VNFs defined in MD-SAL" />\r
32 </return></outcome><outcome value='Other'>\r
33 <for index='idx' start='0' end='`$service-data.vnfs.vnf_length`' >\r
34 <switch test='`$service-data.vnfs.vnf[$idx].vnf-id == $vf-module-topology-operation-input.vnf-information.vnf-id`'>\r
35 <outcome value='true'>\r
36 <block>\r
37 <set>\r
38 <parameter name='vnf-index' value='`$idx`' />\r
39 </set><break></break></block></outcome></switch></for></outcome></switch><switch test='`$vnf-index`'>\r
40 <outcome value='-1'>\r
41 <return status='failure'>\r
42         <parameter name='ack-final' value='Y'/>\r
43         <parameter name="error-code" value="500" />\r
44     <parameter name="error-message" value="`'Unable to find VNF ID ' + $vf-module-topology-operation-input.vnf-information.vnf-id + ' in MD-SAL'`" />\r
45 </return></outcome></switch><switch test='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-level-oper-status.order-status`'>\r
46 <outcome value='Created'>\r
47 <block>\r
48 </block></outcome><outcome value='Other'>\r
49 <return status='failure'>\r
50         <parameter name='ack-final' value='Y'/>\r
51         <parameter name="error-code" value="500" />\r
52     <parameter name="error-message" value="`'VNF order status is ' + $service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-level-oper-status.order-status + ' but should be Created'`" />\r
53 </return></outcome></switch><switch test='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module_length`'>\r
54 <outcome value=''>\r
55 <set>\r
56 <parameter name='vf-module-index' value='0' />\r
57 </set></outcome><outcome value='Other'>\r
58 <block>\r
59 <set>\r
60 <parameter name='vf-module-index' value='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module_length`' />\r
61 </set><for index='idx' start='0' end='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module_length`' >\r
62 <switch test='`$vf-module-topology-operation-input.vf-module-information.vf-module-id == $service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$idx].vf-module-id`'>\r
63 <outcome value='true'>\r
64 <return status='failure'>\r
65         <parameter name='ack-final' value='Y'/>\r
66         <parameter name="error-code" value="500" />\r
67     <parameter name="error-message" value="`'VF module id ' + $service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$idx].vf-module-id\r
68        + ' already exists, and status is ' + $service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$idx].vf-module-data.vf-module-level-oper-status.order-status`" />\r
69 </return></outcome></switch></for></block></outcome></switch><set>\r
70 <parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module_length' value='`$vf-module-index + 1`' />\r
71 </set><set>\r
72 <parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-id'\r
73    value='`$vf-module-topology-operation-input.vf-module-information.vf-module-id`' />\r
74 </set><set>\r
75 <parameter name='tmp.vf-module-topology.vf-module-topology-identifier.vf-module-id' value='`$vf-module-topology-operation-input.vf-module-information.vf-module-id`' />\r
76 <parameter name='tmp.vf-module-topology.vf-module-topology-identifier.vf-module-name' value='`$vf-module-topology-operation-input.vf-module-request-input.vf-module-name`' />\r
77 <parameter name='tmp.vf-module-topology.vf-module-topology-identifier.vf-module-type' value='`$vf-module-topology-operation-input.vf-module-information.vf-module-type`' />\r
78 <parameter name='tmp.vf-module-topology.tenant' value='`$vf-module-topology-operation-input.vf-module-request-input.tenant`' />\r
79 <parameter name='tmp.vf-module-topology.aic-cloud-region' value='`$vf-module-topology-operation-input.vf-module-request-input.aic-cloud-region`' />\r
80 </set><get-resource plugin="org.onap.ccsdk.sli.adaptors.aai.AAIService" \r
81                 resource="cloud-region" \r
82                 key="cloud-region.cloud-owner = 'CloudOwner' AND \r
83                      cloud-region.cloud-region-id = $vf-module-topology-operation-input.vf-module-request-input.aic-cloud-region"\r
84         pfx='aai.cloud-region' local-only='false' >\r
85 \r
86 <outcome value='not-found'>\r
87 <return status='failure'>\r
88         <parameter name='ack-final' value='Y'/>\r
89         <parameter name="error-code" value="500" />\r
90     <parameter name="error-message" value="Cloud region not found in AAI" />\r
91 </return></outcome><outcome value='failure'>\r
92 <return status='failure'>\r
93         <parameter name='ack-final' value='Y'/>\r
94         <parameter name="error-code" value="500" />\r
95     <parameter name="error-message" value="Error retrieving cloud region from AAI" />\r
96 </return></outcome></get-resource><for index='idx' start='0' end='`$aai.cloud-region.relationship-list.relationship_length`' >\r
97 <switch test='`$aai.cloud-region.relationship-list.relationship[$idx].related-to`'>\r
98 <outcome value='complex'>\r
99 <block atomic="true"><execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='split'>\r
100    <parameter name='ctx_memory_result_key' value='aai-uid-split' />\r
101    <parameter name='original_string' value='`$aai.cloud-region.relationship-list.relationship[$idx].related-link`' />\r
102    <parameter name='regex' value='/' />\r
103 </execute><set>\r
104 <parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.aic-clli'\r
105    value='`$aai-uid-split[$aai-uid-split_length - 1]`' />\r
106 </set><break></break></block></outcome></switch></for><switch test='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.aic-clli`'>\r
107 <outcome value=''><return status='failure'>\r
108         <parameter name='ack-final' value='Y'/>\r
109         <parameter name="error-code" value="500" />\r
110     <parameter name="error-message" value="`'Unable to find aic-clli in AAI for aic-cloud-region ' + $vf-module-topology-operation-input.vf-module-request-input.aic-cloud-region`" />\r
111 </return></outcome></switch><switch test='`$vf-module-topology-operation-input.vf-module-information.onap-model-information.model-invariant-uuid`'>\r
112 <outcome value=''><set>\r
113 <parameter name='tmp.vf-module-topology.onap-model-information.model-invariant-uuid'\r
114   value='`$db.vf-module-model.invariant-uuid`' />\r
115 </set></outcome><outcome value='Other'>\r
116 <set>\r
117 <parameter name='tmp.vf-module-topology.onap-model-information.model-invariant-uuid'\r
118   value='`$vf-module-topology-operation-input.vf-module-information.onap-model-information.model-invariant-uuid`' />\r
119 </set></outcome></switch><switch test='`$vf-module-topology-operation-input.vf-module-information.onap-model-information.model-uuid`'>\r
120 <outcome value=''><set>\r
121 <parameter name='tmp.vf-module-topology.onap-model-information.model-uuid'\r
122   value='`$db.vf-module-model.uuid`' />\r
123 </set></outcome><outcome value='Other'>\r
124 <set>\r
125 <parameter name='tmp.vf-module-topology.onap-model-information.model-uuid'\r
126   value='`$vf-module-topology-operation-input.vf-module-information.onap-model-information.model-uuid`' />\r
127 </set></outcome></switch><switch test='`$vf-module-topology-operation-input.vf-module-information.onap-model-information.model-version`'>\r
128 <outcome value=''><set>\r
129 <parameter name='tmp.vf-module-topology.onap-model-information.model-version'\r
130   value='`$db.vf-module-model.version`' />\r
131 </set></outcome><outcome value='Other'>\r
132 <set>\r
133 <parameter name='tmp.vf-module-topology.onap-model-information.model-version'\r
134   value='`$vf-module-topology-operation-input.vf-module-information.onap-model-information.model-version`' />\r
135 </set></outcome></switch><switch test='`$vf-module-topology-operation-input.vf-module-information.onap-model-information.model-name`'>\r
136 <outcome value=''><set>\r
137 <parameter name='tmp.vf-module-topology.onap-model-information.model-name'\r
138   value='`$db.vf-module-model.name`' />\r
139 </set></outcome><outcome value='Other'>\r
140 <set>\r
141 <parameter name='tmp.vf-module-topology.onap-model-information.model-name'\r
142   value='`$vf-module-topology-operation-input.vf-module-information.onap-model-information.model-name`' />\r
143 </set></outcome></switch><set>\r
144 <parameter name='tmp.vf-module-topology.onap-model-information.model-customization-uuid'\r
145   value='`$vf-module-topology-operation-input.vf-module-information.onap-model-information.model-customization-uuid`' />\r
146 </set><set>\r
147 <parameter name='tmp.vf-module-topology.vf-module-parameters.'\r
148   value='vf-module-topology-operation-input.vf-module-request-input.vf-module-input-parameters.' />\r
149 </set><get-resource plugin='org.onap.ccsdk.sli.adaptors.resource.sql.SqlResource' resource='SQL'\r
150   key='SELECT * from VF_MODULE_TO_VFC_MAPPING WHERE vf_module_customization_uuid = $vf-module-topology-operation-input.vf-module-information.onap-model-information.model-customization-uuid'\r
151   pfx='db.vf-module-to-vfc-mapping[]'>\r
152 \r
153 <outcome value='failure'>\r
154 <return status='failure'>\r
155         <parameter name='ack-final' value='Y'/>\r
156         <parameter name="error-code" value="500" />\r
157     <parameter name="error-message" value="Error reading VF_MODULE_TO_VFC_MAPPING table" />\r
158 </return></outcome><outcome value='not-found'>\r
159 <set>\r
160 <parameter name='db.vf-module-to-vfc-mapping_length' value='0' />\r
161 </set></outcome></get-resource><set>\r
162 <parameter name='tmp.vf-module-topology.vf-module-assignments.vms.vm_length'\r
163   value='`$db.vf-module-to-vfc-mapping_length`' />\r
164 </set><for index='vm-type-index' start='0' end='`$db.vf-module-to-vfc-mapping_length`' >\r
165 <block atomic="true"><get-resource plugin='org.onap.ccsdk.sli.adaptors.resource.sql.SqlResource' resource='SQL'\r
166   key='SELECT * from VFC_MODEL WHERE customization_uuid = $db.vf-module-to-vfc-mapping[$vm-type-index].vfc-customization-uuid'\r
167   pfx='db.vfc-model'>\r
168 \r
169 <outcome value='failure'>\r
170 <return status='failure'>\r
171         <parameter name='ack-final' value='Y'/>\r
172         <parameter name="error-code" value="500" />\r
173     <parameter name="error-message" value="Error reading VFC_MODEL table" />\r
174 </return></outcome><outcome value='not-found'>\r
175 <return status='failure'>\r
176         <parameter name='ack-final' value='Y'/>\r
177         <parameter name="error-code" value="500" />\r
178     <parameter name="error-message" value="`'No entries found in VFC_MODEL table for customization UUID ' + $db.vf-module-to-vfc-mapping[$db-vm-index].vfc_customization_uuid`" />\r
179 </return></outcome></get-resource><switch test="$db.vfc-model.ecomp-generated-naming == 'Y'">\r
180 <outcome value='false'>\r
181 <return status='failure'>\r
182         <parameter name='ack-final' value='Y'/>\r
183         <parameter name="error-code" value="500" />\r
184     <parameter name="error-message" value="`'ECOMP generated naming is not Y for VFC customization UUID ' + $db.vf-module-to-vfc-mapping[$db-vm-index].vfc_customization_uuid`" />\r
185 </return></outcome></switch><set>\r
186 <parameter name='tmp.vf-module-topology.vf-module-assignments.vms.vm[$vm-type-index].vm-type'\r
187    value='`$db.vf-module-to-vfc-mapping[$vm-type-index].vm-type`' />\r
188 <parameter name='tmp.vf-module-topology.vf-module-assignments.vms.vm[$vm-type-index].nfc-naming-code'\r
189    value='`$db.vfc-model.nfc-naming-code`' />\r
190 <parameter name='tmp.vf-module-topology.vf-module-assignments.vms.vm[$vm-type-index].vm-type-tag'\r
191    value='`$db.vfc-model.vm-type-tag`' />\r
192 <parameter name='tmp.vf-module-topology.vf-module-assignments.vms.vm[$vm-type-index].vm-count'\r
193    value='`$db.vf-module-to-vfc-mapping[$vm-type-index].vm-count`' />\r
194 </set><set>\r
195 <parameter name='tmp.vf-module-topology.vf-module-assignments.vms.vm[$vm-type-index].vm-names.vm-name_length'\r
196   value='`$db.vf-module-to-vfc-mapping[$vm-type-index].vm-count`' />\r
197 </set><for index='vm-index' start='0' end='`$db.vf-module-to-vfc-mapping[$vm-type-index].vm-count`' >\r
198 <block atomic="true"><set>\r
199 <parameter name='generate-unique-name-input.index-table-name' value='VM_NAME_INDEX' />\r
200 <parameter name='generate-unique-name-input.index-table-prefix-column' value='vm_name_prefix' />\r
201 <parameter name='generate-unique-name-input.name-table-type' value='VM_INSTANCE' />\r
202 <parameter name='generate-unique-name-input.prefix' value="`$service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-topology-identifier-structure.vnf-name + $db.vfc-model.nfc-naming-code`" />\r
203 <parameter name='generate-unique-name-input.index-length' value='3' />\r
204 \r
205 <!--\r
206 <parameter name='generate-unique-name-input.prefix' value="`$service-data.vnfs.vnf[$vnf-index].vnf-name + $db.vfc-model.nfc-naming-code`" />\r
207 -->\r
208 </set><call module='GENERIC-RESOURCE-API' rpc='generate-unique-name' mode='sync' >\r
209 <outcome value='failure'>\r
210 <return status='failure'>\r
211         <parameter name='ack-final' value='Y'/>\r
212         <parameter name="error-code" value="500" />\r
213     <parameter name="error-message" value="`$generate-unique-name-output.error-message`" />\r
214 </return></outcome><outcome value='success'>\r
215 <set>\r
216 <parameter name='tmp.vf-module-topology.vf-module-assignments.vms.vm[$vm-type-index].vm-names.vm-name[$vm-index]' value='`$generate-unique-name-output.generated-name`' />\r
217 </set></outcome></call></block></for><get-resource plugin='org.onap.ccsdk.sli.adaptors.resource.sql.SqlResource' resource='SQL'\r
218   key='SELECT * from VFC_TO_NETWORK_ROLE_MAPPING WHERE vfc_customization_uuid = $db.vf-module-to-vfc-mapping[$vm-type-index].vfc-customization-uuid'\r
219   pfx='db.vfc-to-network-role-mapping[]'>\r
220 \r
221 <outcome value='failure'>\r
222 <return status='failure'>\r
223         <parameter name='ack-final' value='Y'/>\r
224         <parameter name="error-code" value="500" />\r
225     <parameter name="error-message" value="Error reading VFC_TO_NETWORK_ROLE_MAPPING table" />\r
226 </return></outcome><outcome value='not-found'>\r
227 <set>\r
228 <parameter name='db.vfc-to-network-role-mapping_length' value='0' />\r
229 </set></outcome></get-resource><for index='network-role-index' start='0' end='`$db.vfc-to-network-role-mapping_length`' >\r
230 <block atomic="true"><set>\r
231 <parameter name='network-index' value='-1' />\r
232 </set><for silentFailure='true' index='idx' start='0' end='`$service-data.networks.network_length`' >\r
233 <switch test='`$service-data.networks.network[$idx].network-data.network-topology.network-topology-identifier-structure.network-role == $db.vfc-to-network-role-mapping[$network-role-index].network-role`'>\r
234 <outcome value='true'>\r
235 <block>\r
236 <set>\r
237 <parameter name='network-index' value='`$idx`' />\r
238 </set><break></break></block></outcome></switch></for><switch test='`$network-index`'>\r
239 <outcome value='-1'>\r
240 <return status='failure'>\r
241         <parameter name='ack-final' value='Y'/>\r
242         <parameter name="error-code" value="500" />\r
243     <parameter name="error-message" value="`'No network found in MD-SAL with network-role ' + $db.vfc-to-network-role-mapping[$network-role-index].network-role`" />\r
244 </return></outcome></switch><!--This isn't a node in MD-SAL, but we need to save this for later when we are doing EIPAM processing--><set>\r
245 <parameter name='tmp.vf-module-topology.vf-module-assignments.vms.vm[$vm-type-index].vm-networks.vm-network[$network-role-index].network-id'\r
246   value='`$service-data.networks.network[$idx].network-data.network-topology.network-topology-identifier-structure.network-id`' />\r
247 </set><set>\r
248 <parameter name='tmp.vf-module-topology.vf-module-assignments.vms.vm[$vm-type-index].vm-networks.vm-network[$network-role-index].network-role'\r
249    value='`$db.vfc-to-network-role-mapping[$network-role-index].network-role`' />\r
250 <parameter name='tmp.vf-module-topology.vf-module-assignments.vms.vm[$vm-type-index].vm-networks.vm-network[$network-role-index].network-role-tag'\r
251    value='`$db.vfc-to-network-role-mapping[$network-role-index].network-role-tag`' />\r
252 </set><switch test='`$db.vfc-to-network-role-mapping[$network-role-index].ipv4-ip-version`'>\r
253 <outcome value=''><set>\r
254 <parameter name='network-information-index' value='-1' />\r
255 \r
256 </set></outcome><outcome value='4'>\r
257 <block atomic="true"><set>\r
258 <parameter name='network-information-index' value='0' />\r
259 </set><set>\r
260 <parameter name='tmp.vf-module-topology.vf-module-assignments.vms.vm[$vm-type-index].vm-networks.vm-network[$network-role-index].network-information-items.network-information-item[$network-information-index].ip-version'\r
261    value='4' />\r
262 <parameter name='tmp.vf-module-topology.vf-module-assignments.vms.vm[$vm-type-index].vm-networks.vm-network[$network-role-index].network-information-items.network-information-item[$network-information-index].use-dhcp'\r
263    value='`$db.vfc-to-network-role-mapping[$network-role-index].ipv4-use-dhcp`' />\r
264 <parameter name='tmp.vf-module-topology.vf-module-assignments.vms.vm[$vm-type-index].vm-networks.vm-network[$network-role-index].network-information-items.network-information-item[$network-information-index].ip-count'\r
265    value='`$db.vfc-to-network-role-mapping[$network-role-index].ipv4-count`' />\r
266 </set></block></outcome></switch><switch test='`$db.vfc-to-network-role-mapping[$network-role-index].ipv6-ip-version`'>\r
267 <outcome value=''><block>\r
268 </block></outcome><outcome value='6'>\r
269 <block atomic="true"><set>\r
270 <parameter name='network-information-index' value='`$network-information-index + 1`' />\r
271 </set><set>\r
272 <parameter name='tmp.vf-module-topology.vf-module-assignments.vms.vm[$vm-type-index].vm-networks.vm-network[$network-role-index].network-information-items.network-information-item[$network-information-index].ip-version'\r
273    value='6' />\r
274 <parameter name='tmp.vf-module-topology.vf-module-assignments.vms.vm[$vm-type-index].vm-networks.vm-network[$network-role-index].network-information-items.network-information-item[$network-information-index].use-dhcp'\r
275    value='`$db.vfc-to-network-role-mapping[$network-role-index].ipv6-use-dhcp`' />\r
276 <parameter name='tmp.vf-module-topology.vf-module-assignments.vms.vm[$vm-type-index].vm-networks.vm-network[$network-role-index].network-information-items.network-information-item[$network-information-index].ip-count'\r
277    value='`$db.vfc-to-network-role-mapping[$network-role-index].ipv6-count`' />\r
278 </set></block></outcome></switch><switch test='`$network-information-index`'>\r
279 <outcome value='-1'><block>\r
280 </block></outcome><outcome value='Other'>\r
281 <set>\r
282 <parameter name='tmp.vf-module-topology.vf-module-assignments.vms.vm[$vm-type-index].vm-networks.vm-network[$network-role-index].network-information-items.network-information-item_length'\r
283    value='`$network-information-index + 1`' />\r
284 </set></outcome></switch></block></for><set>\r
285 <parameter name='tmp.vf-module-topology.vf-module-assignments.vms.vm[$vm-type-index].vm-networks.vm-network_length'\r
286   value='`$db.vfc-to-network-role-mapping_length`' />\r
287 </set></block></for><set>\r
288 <parameter name='plans-index' value='0' />\r
289 </set><for index='vm-type-index' start='0' end='`$tmp.vf-module-topology.vf-module-assignments.vms.vm_length`' >\r
290 <block atomic="true"><for index='network-role-index' start='0' end='`$tmp.vf-module-topology.vf-module-assignments.vms.vm[$vm-type-index].vm-networks.vm-network_length`' >\r
291 <block atomic="true"><for index='ip-version-index' start='0' end='`$tmp.vf-module-topology.vf-module-assignments.vms.vm[$vm-type-index].vm-networks.vm-network[$network-role-index].network-information-items.network-information-item_length`' >\r
292 <switch test='`$tmp.vf-module-topology.vf-module-assignments.vms.vm[$vm-type-index].vm-networks.vm-network[$network-role-index].network-information-items.network-information-item[$ip-version-index].use-dhcp`'>\r
293 <outcome value='N'>\r
294 <block atomic="true"><get-resource plugin='org.onap.ccsdk.sli.adaptors.resource.sql.SqlResource' resource='SQL'\r
295   key='SELECT * from EIPAM_IP_SUBNETS WHERE network_id = $tmp.vf-module-topology.vf-module-assignments.vms.vm[$vm-type-index].vm-networks.vm-network[$network-role-index].network-id\r
296     AND address_family = $tmp.vf-module-topology.vf-module-assignments.vms.vm[$vm-type-index].vm-networks.vm-network[$network-role-index].network-information-items.network-information-item[$ip-version-index].ip-version'\r
297   pfx='db.eipam-ip-subnets[]'>\r
298 \r
299 <outcome value='failure'>\r
300 <return status='failure'>\r
301         <parameter name='ack-final' value='Y'/>\r
302         <parameter name="error-code" value="500" />\r
303     <parameter name="error-message" value="Error reading EIPAM_IP_SUBNETS table" />\r
304 </return></outcome><outcome value='not-found'>\r
305 <return status='failure'>\r
306         <parameter name='ack-final' value='Y'/>\r
307         <parameter name="error-code" value="500" />\r
308     <parameter name="error-message" value="`'No entries found in EIPAM_IP_SUBNETS table for network ID '\r
309         + $tmp.vf-module-topology.vf-module-assignments.vms.vm[$vm-type-index].vm-networks.vm-network[$network-role-index].network-id\r
310         + ' and address family ' + $tmp.vf-module-topology.vf-module-assignments.vms.vm[$vm-type-index].vm-networks.vm-network[$network-role-index].network-information-items.network-information-item[$ip-version-index].ip-version`" />\r
311 </return></outcome></get-resource><set>\r
312 <parameter name='max-level' value='-1' />\r
313 </set><for index='subnets-index' start='0' end='`$db.eipam-ip-subnets_length`' >\r
314 <block atomic="true"><get-resource plugin='org.onap.ccsdk.sli.adaptors.resource.sql.SqlResource' resource='SQL'\r
315   key='SELECT * from EIPAM_IP_SUBNET_KEYS WHERE entity_id = $db.eipam-ip-subnets[$subnets-index].entity-id'\r
316   pfx='db.eipam-ip-subnet-keys[]'>\r
317 \r
318 <outcome value='failure'>\r
319 <return status='failure'>\r
320         <parameter name='ack-final' value='Y'/>\r
321         <parameter name="error-code" value="500" />\r
322     <parameter name="error-message" value="Error reading EIPAM_IP_SUBNET_KEYS table" />\r
323 </return></outcome><outcome value='not-found'>\r
324 <return status='failure'>\r
325         <parameter name='ack-final' value='Y'/>\r
326         <parameter name="error-code" value="500" />\r
327     <parameter name="error-message" value="`'No entries found in EIPAM_IP_SUBNET_KEYS table for entity ID '\r
328         + $db.eipam-ip-subnets[$subnets-index].entity-id`" /></return></outcome></get-resource><for index='keys-index' start='0' end='`$db.eipam-ip-subnet-keys_length`' >\r
329 <block atomic="true"><switch test='`$db.eipam-ip-subnet-keys[$keys-index].level &gt; $max-level`'>\r
330 <outcome value='true'>\r
331 <set>\r
332 <parameter name='max-level' value='`$db.eipam-ip-subnet-keys[$keys-index].level`' />\r
333 <parameter name='selected-entity-id' value='`$db.eipam-ip-subnet-keys[$keys-index].entity-id`' />\r
334 <parameter name='selected-plan-name' value='`$db.eipam-ip-subnets[$subnets-index].plan-name`' />\r
335 </set></outcome></switch></block></for><get-resource plugin='org.onap.ccsdk.sli.adaptors.resource.sql.SqlResource' resource='SQL'\r
336   key='SELECT * from EIPAM_IP_SUBNET_KEYS WHERE entity_id = $selected-entity-id order by level'\r
337   pfx='db.eipam-ip-subnet-keys[]'>\r
338 \r
339 <outcome value='failure'>\r
340 <return status='failure'>\r
341         <parameter name='ack-final' value='Y'/>\r
342         <parameter name="error-code" value="500" />\r
343     <parameter name="error-message" value="Error reading EIPAM_IP_SUBNET_KEYS table" />\r
344 </return></outcome><outcome value='not-found'>\r
345 <return status='failure'>\r
346         <parameter name='ack-final' value='Y'/>\r
347         <parameter name="error-code" value="500" />\r
348     <parameter name="error-message" value="`'No entries found in EIPAM_IP_SUBNET_KEYS table for entity ID '\r
349         + $selected-entity-id`" /></return></outcome></get-resource><for index='request-index' start='0' end='`$tmp.vf-module-topology.vf-module-assignments.vms.vm[$vm-type-index].vm-networks.vm-network[$network-role-index].network-information-items.network-information-item[$ip-version-index].ip-count`' >\r
350 <block atomic="true"><for index='level-index' start='0' end='`$db.eipam-ip-subnet-keys_length`' >\r
351 <set>\r
352 <parameter name='eipam-ip-block.plans[$plans-index].requests[$request-index].pools[$level-index].key-name'\r
353    value='`$db.eipam-ip-subnet-keys[$level-index].key-name`' />\r
354 <parameter name='eipam-ip-block.plans[$plans-index].requests[$request-index].pools[$level-index].key-value'\r
355    value='`$db.eipam-ip-subnet-keys[$level-index].key-value`' />\r
356 </set></for><set>\r
357 <parameter name='eipam-ip-block.plans[$plans-index].requests[$request-index].pools_length'\r
358    value='`$db.eipam-ip-subnet-keys_length`' />\r
359 </set><set>\r
360 <parameter name='generate-unique-name-input.index-table-name' value='EIPAM_CLIENT_KEY_INDEX' />\r
361 <parameter name='generate-unique-name-input.index-table-prefix-column' value='vnf_name_prefix' />\r
362 <parameter name='generate-unique-name-input.name-table-type' value='CLIENT_KEY' />\r
363 <parameter name='generate-unique-name-input.prefix' value="`$service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-topology-identifier-structure.vnf-name + $tmp.vf-module-topology.vf-module-assignments.vms.vm[$vm-type-index].nfc-naming-code + ':' + $tmp.vf-module-topology.vf-module-assignments.vms.vm[$vm-type-index].vm-networks.vm-network[$network-role-index].network-id + ':' + $tmp.vf-module-topology.vf-module-assignments.vms.vm[$vm-type-index].vm-networks.vm-network[$network-role-index].network-information-items.network-information-item[$ip-version-index].ip-version + ':'`" />\r
364 <parameter name='generate-unique-name-input.index-length' value='' />\r
365 </set><call module='GENERIC-RESOURCE-API' rpc='generate-unique-name' mode='sync' >\r
366 <outcome value='failure'>\r
367 <return status='failure'>\r
368         <parameter name='ack-final' value='Y'/>\r
369         <parameter name="error-code" value="500" />\r
370     <parameter name="error-message" value="`$generate-unique-name-output.error-message`" />\r
371 </return></outcome></call><set>\r
372 <parameter name='eipam-ip-block.plans[$plans-index].requests[$request-index].client-key'\r
373    value='`$generate-unique-name-output.generated-name`' />\r
374 <parameter name='eipam-ip-block.plans[$plans-index].requests[$request-index].info'\r
375    value='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-id`' />\r
376 <parameter name='eipam-ip-block.plans[$plans-index].requests[$request-index].mask'\r
377    value='32' />\r
378 </set></block></for><set>\r
379 <parameter name='eipam-ip-block.plans[$plans-index].requests_length'\r
380    value='`$tmp.vf-module-topology.vf-module-assignments.vms.vm[$vm-type-index].vm-networks.vm-network[$network-role-index].network-information-items.network-information-item[$ip-version-index].ip-count`' />\r
381 </set></block></for><set>\r
382 <parameter name='eipam-ip-block.plans[$plans-index].plan-name' value='`$selected-plan-name`' />\r
383 <parameter name='eipam-ip-block.plans[$plans-index].address-family'\r
384    value='`$tmp.vf-module-topology.vf-module-assignments.vms.vm[$vm-type-index].vm-networks.vm-network[$network-role-index].network-information-items.network-information-item[$ip-version-index].ip-version`' />\r
385 </set><set>\r
386 <parameter name='plans-index' value='`$plans-index + 1`' />\r
387 </set></block></outcome></switch></for></block></for></block></for><set>\r
388 <parameter name='eipam-ip-block.plans_length' value='`$plans-index`' />\r
389 </set><!--EIPAM plug-in needs this attribute set with this name--><set>\r
390 <parameter name='service-data.service-information.service-type' value='`$service-data.service-information.subscription-service-type`' />\r
391 </set><switch test='`$plans-index &gt; 0`'>\r
392 <outcome value='true'>\r
393 <execute plugin="com.att.sdnctl.sli.plugin.eipam.EIPAMPlugin" method="assignIPAddress"><outcome value='failure'><return status="failure">\r
394         <parameter name="ack-final" value="Y" />\r
395         <parameter name="error-code" value="500"/>\r
396         <parameter name="error-message" value="An error occured while obtaining new address blocks from EIPAM." />\r
397 </return></outcome></execute></outcome></switch><set>\r
398 <parameter name='plans-index' value='0' />\r
399 </set><for index='vm-type-index' start='0' end='`$tmp.vf-module-topology.vf-module-assignments.vms.vm_length`' >\r
400 <for index='network-role-index' start='0' end='`$tmp.vf-module-topology.vf-module-assignments.vms.vm[$vm-type-index].vm-networks.vm-network_length`' >\r
401 <for index='ip-version-index' start='0' end='`$tmp.vf-module-topology.vf-module-assignments.vms.vm[$vm-type-index].vm-networks.vm-network[$network-role-index].network-information-items.network-information-item_length`' >\r
402 <switch test='`$tmp.vf-module-topology.vf-module-assignments.vms.vm[$vm-type-index].vm-networks.vm-network[$network-role-index].network-information-items.network-information-item[$ip-version-index].use-dhcp`'>\r
403 <outcome value='N'>\r
404 <block atomic="true"><for index='ip-index' start='0' end='`$eipam-ip-block.plans[$plans-index].requests_length`' >\r
405 <set>\r
406 <parameter name='tmp.vf-module-topology.vf-module-assignments.vms.vm[$vm-type-index].vm-networks.vm-network[$network-role-index].network-information-items.network-information-item[$ip-version-index].network-ips.network-ip[$ip-index]'\r
407   value='`$eipam-ip-block.plans[$plans-index].requests[$ip-index].ip-prefix`' />\r
408 </set></for><set>\r
409 <parameter name='plans-index' value='`$plans-index + 1`' />\r
410 </set></block></outcome></switch></for></for></for><set>\r
411 <parameter name='vf-module-object-path'\r
412  value="`'restconf/config/GENERIC-RESOURCE-API:services/service/'\r
413  + $service-data.service-topology.service-topology-identifier.service-instance-id\r
414  + '/service-data/vnfs/vnf/'\r
415  + $service-data.vnfs.vnf[$vnf-index].vnf-id\r
416  + '/vnf-data/vf-modules/vf-module/'\r
417  + $service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-id\r
418  + '/vf-module-data/vf-module-topology/'`"/>\r
419 \r
420 \r
421 </set><update plugin="org.onap.ccsdk.sli.adaptors.aai.AAIService"\r
422    resource="vf-module"\r
423    key="vf-module.vf-module-id = $service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-id\r
424       AND generic-vnf.vnf-id = $service-data.vnfs.vnf[$vnf-index].vnf-id"\r
425    force="true" pfx="tmp.AnAI-data">\r
426 <parameter name="vf-module-name" value="`$tmp.vf-module-topology.vf-module-topology-identifier.vf-module-name`" />\r
427 <parameter name="model-invariant-id" value="`$tmp.vf-module-topology.onap-model-information.model-invariant-uuid`" />\r
428 <parameter name="model-version-id" value="`$tmp.vf-module-topology.onap-model-information.model-uuid`" />\r
429 <parameter name="model-customization-id" value="`$tmp.vf-module-topology.onap-model-information.model-customization-uuid`" />\r
430 <parameter name="selflink" value="`$vf-module-object-path`" />\r
431 <outcome value='failure'>\r
432 <block atomic="true"><switch test='`$plans-index &gt; 0`'>\r
433 <outcome value='true'>\r
434 <block atomic="true"><set>\r
435 <parameter name='tmp.status' value="`'PENDING_DELETE_' + $service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-topology-identifier.vf-module-id`" />\r
436 </set><update plugin="org.onap.ccsdk.sli.adaptors.resource.sql.SqlResource" resource="SQL"\r
437 key="UPDATE EIPAM_IP_ASSIGNMENTS set status = $tmp.status WHERE info = $service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-topology-identifier.vf-module-id" ><outcome value='failure'>\r
438 <return status='failure'>\r
439         <parameter name='ack-final' value='Y'/>\r
440         <parameter name="error-code" value="500" />\r
441     <parameter name="error-message" value="Error updating EIPAM_IP_ASSIGNMENTS table on rollback" />\r
442 </return></outcome></update><execute plugin="com.att.sdnctl.sli.plugin.eipam.EIPAMPlugin" method="unassignIPAddress">\r
443 <parameter name="deleteEIPAM_status" value="`$tmp.status`" />\r
444 <outcome value='failure'>\r
445 <return status='failure'>\r
446         <parameter name='ack-final' value='Y'/>\r
447         <parameter name="error-code" value="500" />\r
448     <parameter name="error-message" value="Error in EIPAM unassign IP address on rollback" />\r
449 </return></outcome></execute></block></outcome></switch><return status='failure'>\r
450         <parameter name='ack-final' value='Y'/>\r
451         <parameter name="error-code" value="500" />\r
452     <parameter name="error-message" value="Error updating vf-module in AAI" />\r
453 </return></block></outcome><outcome value='not-found'>\r
454 <block atomic="true"><switch test='`$plans-index &gt; 0`'>\r
455 <outcome value='true'>\r
456 <block atomic="true"><set>\r
457 <parameter name='tmp.status' value="`'PENDING_DELETE_' + $service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-topology-identifier.vf-module-id`" />\r
458 </set><update plugin="org.onap.ccsdk.sli.adaptors.resource.sql.SqlResource" resource="SQL"\r
459 key="UPDATE EIPAM_IP_ASSIGNMENTS set status = $tmp.status WHERE info = $service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-topology-identifier.vf-module-id" ><outcome value='failure'>\r
460 <return status='failure'>\r
461         <parameter name='ack-final' value='Y'/>\r
462         <parameter name="error-code" value="500" />\r
463     <parameter name="error-message" value="Error updating EIPAM_IP_ASSIGNMENTS table on rollback" />\r
464 </return></outcome></update><execute plugin="com.att.sdnctl.sli.plugin.eipam.EIPAMPlugin" method="unassignIPAddress">\r
465 <parameter name="deleteEIPAM_status" value="`$tmp.status`" />\r
466 <outcome value='failure'>\r
467 <return status='failure'>\r
468         <parameter name='ack-final' value='Y'/>\r
469         <parameter name="error-code" value="500" />\r
470     <parameter name="error-message" value="Error in EIPAM unassign IP address on rollback" />\r
471 </return></outcome></execute></block></outcome></switch><return status='failure'>\r
472         <parameter name='ack-final' value='Y'/>\r
473         <parameter name="error-code" value="500" />\r
474     <parameter name="error-message" value="`'No vf-module found in AAI for vf module ID ' + $service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-id`" />\r
475 </return></block></outcome></update><for index='vm-type-index' start='0' end='`$tmp.vf-module-topology.vf-module-assignments.vms.vm_length`' >\r
476 <for index='network-role-index' start='0' end='`$tmp.vf-module-topology.vf-module-assignments.vms.vm[$vm-type-index].vm-networks.vm-network_length`' >\r
477 <save plugin="org.onap.ccsdk.sli.adaptors.aai.AAIService"\r
478    resource="vf-module:relationship-list"\r
479    key="vf-module.vf-module-id = $service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-id\r
480       AND generic-vnf.vnf-id = $service-data.vnfs.vnf[$vnf-index].vnf-id"\r
481    force="true" pfx="tmp.AnAI-data">\r
482     <parameter name="relationship-list.relationship[0].related-to" value="l3-network" />\r
483     <parameter name="relationship-list.relationship[0].relationship-data[0].relationship-key" value="l3-network.network-id" />\r
484     <parameter name="relationship-list.relationship[0].relationship-data[0].relationship-value" value="`$tmp.vf-module-topology.vf-module-assignments.vms.vm[$vm-type-index].vm-networks.vm-network[$network-role-index].network-id`" />\r
485 <outcome value='failure'>\r
486 <block atomic="true"><switch test='`$plans-index &gt; 0`'>\r
487 <outcome value='true'>\r
488 <block atomic="true"><set>\r
489 <parameter name='tmp.status' value="`'PENDING_DELETE_' + $service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-topology-identifier.vf-module-id`" />\r
490 </set><update plugin="org.onap.ccsdk.sli.adaptors.resource.sql.SqlResource" resource="SQL"\r
491 key="UPDATE EIPAM_IP_ASSIGNMENTS set status = $tmp.status WHERE info = $service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-topology-identifier.vf-module-id" ><outcome value='failure'>\r
492 <return status='failure'>\r
493         <parameter name='ack-final' value='Y'/>\r
494         <parameter name="error-code" value="500" />\r
495     <parameter name="error-message" value="Error updating EIPAM_IP_ASSIGNMENTS table on rollback" />\r
496 </return></outcome></update><execute plugin="com.att.sdnctl.sli.plugin.eipam.EIPAMPlugin" method="unassignIPAddress">\r
497 <parameter name="deleteEIPAM_status" value="`$tmp.status`" />\r
498 <outcome value='failure'>\r
499 <return status='failure'>\r
500         <parameter name='ack-final' value='Y'/>\r
501         <parameter name="error-code" value="500" />\r
502     <parameter name="error-message" value="Error in EIPAM unassign IP address on rollback" />\r
503 </return></outcome></execute></block></outcome></switch><return status='failure'>\r
504         <parameter name='ack-final' value='Y'/>\r
505         <parameter name="error-code" value="500" />\r
506     <parameter name="error-message" value="Error updating vf-module relationships in AAI" />\r
507 </return></block></outcome><outcome value='not-found'>\r
508 <block atomic="true"><switch test='`$plans-index &gt; 0`'>\r
509 <outcome value='true'>\r
510 <block atomic="true"><set>\r
511 <parameter name='tmp.status' value="`'PENDING_DELETE_' + $service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-topology-identifier.vf-module-id`" />\r
512 </set><update plugin="org.onap.ccsdk.sli.adaptors.resource.sql.SqlResource" resource="SQL"\r
513 key="UPDATE EIPAM_IP_ASSIGNMENTS set status = $tmp.status WHERE info = $service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-topology-identifier.vf-module-id" ><outcome value='failure'>\r
514 <return status='failure'>\r
515         <parameter name='ack-final' value='Y'/>\r
516         <parameter name="error-code" value="500" />\r
517     <parameter name="error-message" value="Error updating EIPAM_IP_ASSIGNMENTS table on rollback" />\r
518 </return></outcome></update><execute plugin="com.att.sdnctl.sli.plugin.eipam.EIPAMPlugin" method="unassignIPAddress">\r
519 <parameter name="deleteEIPAM_status" value="`$tmp.status`" />\r
520 <outcome value='failure'>\r
521 <return status='failure'>\r
522         <parameter name='ack-final' value='Y'/>\r
523         <parameter name="error-code" value="500" />\r
524     <parameter name="error-message" value="Error in EIPAM unassign IP address on rollback" />\r
525 </return></outcome></execute></block></outcome></switch><return status='failure'>\r
526         <parameter name='ack-final' value='Y'/>\r
527         <parameter name="error-code" value="500" />\r
528     <parameter name="error-message" value="`'No vf-module found in AAI for vf module ID ' + $service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-id`" />\r
529 </return></block></outcome></save></for></for><for index='vm-type-index' start='0' end='`$tmp.vf-module-topology.vf-module-assignments.vms.vm_length`' >\r
530 <for index='vm-index' start='0' end='`$tmp.vf-module-topology.vf-module-assignments.vms.vm[$vm-type-index].vm-count`' >\r
531 <block atomic="true"><delete plugin='org.onap.ccsdk.sli.adaptors.resource.sql.SqlResource' resource='SQL'\r
532   key='DELETE from VIPR_CONFIGURATION WHERE vnf_id = $service-data.vnfs.vnf[$vnf-index].vnf-id\r
533      AND ecomp_service_instance_id = $service-data.service-information.service-instance-id\r
534      AND vm_name = $tmp.vf-module-topology.vf-module-assignments.vms.vm[$vm-type-index].vm-names.vm-name[$vm-index]' ><outcome value='failure'>\r
535 <record plugin="org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder">\r
536 <parameter name="logger" value="message-log"/>\r
537 <parameter name="field1" value="__TIMESTAMP__"/>\r
538 <parameter name="field2" value="GENERIC-RESOURCE-API.vf-module-topology-operation-assign:REQID"/>\r
539 <parameter name="field3" value="`$vf-module-topology-operation-input.sdnc-request-header.svc-request-id`"/>\r
540 <parameter name="field4" value="Failed to insert VIPR_CONFIGURATION record"/>\r
541 </record></outcome></delete><save plugin="org.onap.ccsdk.sli.adaptors.resource.sql.SqlResource" resource="SQL"\r
542 key="INSERT INTO VIPR_CONFIGURATION (vnf_id, vnf_name, ecomp_service_instance_id, vm_name, cloud_region_id, cloud_owner) VALUES ( $service-data.vnfs.vnf[$vnf-index].vnf-id , $service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-topology-identifier-structure.vnf-name , $service-data.service-information.service-instance-id , $tmp.vf-module-topology.vf-module-assignments.vms.vm[$vm-type-index].vm-names.vm-name[$vm-index] , $tmp.vf-module-topology.aic-cloud-region , 'CloudOwner')" ><outcome value='failure'>\r
543 <record plugin="org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder">\r
544 <parameter name="logger" value="message-log"/>\r
545 <parameter name="field1" value="__TIMESTAMP__"/>\r
546 <parameter name="field2" value="GENERIC-RESOURCE-API.vf-module-topology-operation-assign:REQID"/>\r
547 <parameter name="field3" value="`$vf-module-topology-operation-input.sdnc-request-header.svc-request-id`"/>\r
548 <parameter name="field4" value="Failed to insert VIPR_CONFIGURATION record"/>\r
549 </record></outcome></save></block></for></for><set>\r
550 <parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.' value='$tmp.vf-module-topology.' />\r
551 </set><set>\r
552 <parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.sdnc-request-header.'\r
553    value='$vf-module-topology-operation-input.sdnc-request-header.' />\r
554 <parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.request-information.'\r
555    value='$vf-module-topology-operation-input.request-information.' />\r
556 <parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.service-information.'\r
557    value='$vf-module-topology-operation-input.service-information.' />\r
558 <parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vnf-information.'\r
559    value='$vf-module-topology-operation-input.vnf-information.' />\r
560 <parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-information.'\r
561    value='$vf-module-topology-operation-input.vf-module-information.' />\r
562 <parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-request-input.'\r
563    value='$vf-module-topology-operation-input.vf-module-request-input.' />\r
564 \r
565 </set><call module='GENERIC-RESOURCE-API' rpc='gw-vfmodule-update' mode='sync' >\r
566 </call><set>\r
567 <parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-level-oper-status.order-status'\r
568   value='PendingCreate' />\r
569 <parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-level-oper-status.last-rpc-action'\r
570   value='`$vf-module-topology-operation-input.sdnc-request-header.svc-action`' />\r
571 <parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-level-oper-status.last-action'\r
572   value='`$vf-module-topology-operation-input.sdnc-request-header.request-action`' />\r
573 </set><set>\r
574 <parameter name='service-object-path'\r
575  value="`'restconf/config/GENERIC-RESOURCE-API:services/service/'\r
576  + $service-data.service-topology.service-topology-identifier.service-instance-id\r
577  + '/service-data/vnfs/vnf/'\r
578  + $service-data.vnfs.vnf[$vnf-index].vnf-id\r
579  + '/vnf-data/vf-modules/vf-module/'\r
580  + $service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-id\r
581  + '/vf-module-data/vf-module-topology/'`"/>\r
582 <!--\r
583 <parameter name='service-object-path' value="`'restconf/config/GENERIC-RESOURCE-API:services/service/'\r
584  + $service-data.service-topology.service-topology-identifier.service-instance-id\r
585  + '/service-data/service-topology/'`"/>\r
586  -->\r
587 </set><return status='success'>\r
588 <parameter name="ack-final-indicator" value="Y" />\r
589 <parameter name="error-code" value="200" />\r
590 <parameter name="error-message" value="`$error-message`" />\r
591 </return></block></method></service-logic>\r