2 xmlns='http://www.onap.org/sdnc/svclogic'
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}'>
4 <method rpc='sotn-attachment-topology-operation-activate' mode='sync'>
7 <parameter name='tmp.ar.allotted-resource-id' value='`$connection-attachment-topology-operation-input.allotted-resource-information.allotted-resource-id`' />
8 <parameter name='tmp.ar.parent-service-instance-id' value='`$connection-attachment-topology-operation-input.allotted-resource-information.parent-service-instance-id`' />
11 <parameter name='tmp.ar.self-link' value="`'restconf/config/GENERIC-RESOURCE-API:connection-attachment-allotted-resources/connection-attachment-allotted-resource/'
12 + $tmp.ar.allotted-resource-id
13 + '/allotted-resource-data/connection-attachment-topology/'` " />
15 <execute plugin='org.onap.ccsdk.sli.plugins.prop.PropertiesNode' method='readProperties' >
16 <parameter name='fileName' value='%SDNC_CONFIG_DIR%/generic-resource-api-dg.properties' />
17 <parameter name='contextPrefix' value='prop' />
19 <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >
20 <parameter name="source" value="`$prop.restapi.connection-attachment-allottedresource`"/>
21 <parameter name="outputPath" value="tmp.ar-url"/>
22 <parameter name="target" value="{allotted-resource-id}"/>
23 <parameter name="replacement" value="`$tmp.ar.allotted-resource-id`"/>
25 <execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >
26 <parameter name='restapiUrl' value='`$prop.controller.url + $tmp.ar-url`' />
27 <parameter name='restapiUser' value='`$prop.controller.user`' />
28 <parameter name='restapiPassword' value='`$prop.controller.pwd`' />
29 <parameter name='format' value='json' />
30 <parameter name='httpMethod' value='GET' />
31 <parameter name="responsePrefix" value="mdsal-ar" />
32 <outcome value='success'>
34 <switch test='`$mdsal-ar.connection-attachment-allotted-resource_length`'>
38 <parameter name='connection-attachment-ar.' value='$mdsal-ar.connection-attachment-allotted-resource[0].' />
40 <switch test='`$connection-attachment-ar.allotted-resource-data.allotted-resource-oper-status.order-status`'>
41 <outcome value='Created'>
44 <outcome value='PendingDelete'>
47 <outcome value='Other'>
48 <return status='failure'>
49 <parameter name='ack-final' value='Y'/>
50 <parameter name="error-code" value="500" />
51 <parameter name="error-message"
52 value="`'Existing connection-attachment-allotted-resource with order status of ' + $connection-attachment-ar.allotted-resource-data.allotted-resource-oper-status.order-status + '.'`" />
57 <parameter name='connection-attachment-ar.allotted-resource-data.allotted-resource-oper-status.last-action' value='`$connection-attachment-ar.allotted-resource-data.allotted-resource-operation-information.request-information.request-action`' />
58 <parameter name='connection-attachment-ar.allotted-resource-data.allotted-resource-oper-status.last-rpc-action' value='`$connection-attachment-ar.allotted-resource-status.rpc-action`' />
59 <parameter name='connection-attachment-ar.allotted-resource-data.allotted-resource-oper-status.last-svc-request-id' value='`$connection-attachment-ar.allotted-resource-data.allotted-resource-operation-information.sdnc-request-header.svc-request-id`' />
63 <outcome value='Other'>
64 <return status='failure'>
65 <parameter name='ack-final' value='Y'/>
66 <parameter name="error-code" value="404" />
67 <parameter name="error-message" value="Error: Connection attachment resource not exist" />
73 <outcome value='Other'>
75 <return status='failure'>
76 <parameter name='ack-final' value='Y'/>
77 <parameter name="error-code" value="404" />
78 <parameter name="error-message" value="Error: Connection attachment resource not exist" />
84 <call module='GENERIC-RESOURCE-API' rpc='sotn-get-saved-ar-param' mode='sync' ></call>
87 <parameter name='tmp.ar.parent-service-instance-id' value="`$connection-attachment-topology-operation-input.allotted-resource-information.parent-service-instance-id` " />
89 <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >
90 <parameter name="source" value="/restconf/config/GENERIC-RESOURCE-API:services/service/{service-instance-id}/service-data"/>
91 <parameter name="outputPath" value="tmp.ar-url-psd"/>
92 <parameter name="target" value="{service-instance-id}"/>
93 <parameter name="replacement" value="`$tmp.ar.parent-service-instance-id`"/>
95 <execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >
96 <parameter name='restapiUrl' value='`$prop.controller.url + $tmp.ar-url-psd`' />
97 <parameter name='restapiUser' value='`$prop.controller.user`' />
98 <parameter name='restapiPassword' value='`$prop.controller.pwd`' />
99 <parameter name='format' value='json' />
100 <parameter name='httpMethod' value='GET' />
101 <parameter name="responsePrefix" value="mdsal-psd" />
102 <outcome value='success'>
105 <outcome value='Other'>
106 <return status='failure'>
107 <parameter name='ack-final' value='Y'/>
108 <parameter name="error-code" value="404" />
109 <parameter name="error-message" value="Error: Parent service data not available" />
114 <parameter name='tmp.found-in-ar' value='false' />
115 <parameter name='tmp.found-in-network' value='false' />
116 <parameter name='tmp.ep-available' value='false' />
118 <switch test='`$mdsal-psd.service-data.provided-allotted-resources.provided-allotted-resource_length`'>
120 <block atomic="true">
121 <for index='pidx' start='0' end='`$mdsal-psd.service-data.provided-allotted-resources.provided-allotted-resource_length`' >
122 <switch test="`$mdsal-psd.service-data.provided-allotted-resources.provided-allotted-resource[$pidx].allotted-resource-id == $tmp.ar.allotted-resource-id`">
123 <outcome value='true'>
126 <outcome value='false'>
127 <block atomic="true">
129 <parameter name='tmp.pidx' value='`$pidx`' />
130 <parameter name='tmp.provided-ar.' value='`$mdsal-psd.service-data.provided-allotted-resources.provided-allotted-resource[$pidx].`' />
131 <parameter name='tmp.found-in-ar' value='true' />
132 <parameter name='tmp.ep-available' value='true' />
138 <switch test='`$tmp.found-in-ar`'>
139 <outcome value='true'>
140 <block atomic="true">
141 <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >
142 <parameter name="source" value="`$prop.restapi.connection-attachment-allottedresource`"/>
143 <parameter name="outputPath" value="tmp.ar-other-url-connection"/>
144 <parameter name="target" value="{allotted-resource-id}"/>
145 <parameter name="replacement" value="`$tmp.provided-ar.allotted-resource-id`"/>
147 <execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >
148 <parameter name='restapiUrl' value='`$prop.controller.url + $tmp.ar-other-url-connection`' />
149 <parameter name='restapiUser' value='`$prop.controller.user`' />
150 <parameter name='restapiPassword' value='`$prop.controller.pwd`' />
151 <parameter name='format' value='json' />
152 <parameter name='httpMethod' value='GET' />
153 <parameter name="responsePrefix" value="mdsal-other-ar" />
154 <outcome value='success'>
157 <outcome value='Other'>
158 <return status='failure'>
159 <parameter name='ack-final' value='Y'/>
160 <parameter name="error-code" value="404" />
161 <parameter name="error-message" value="Error: SOTN provided attachment resource not found" />
171 <block atomic="true">
172 <switch test='`$mdsal-psd.service-data.networks.network_length`'>
174 <block atomic="true">
176 <parameter name='tmp.network.' value='`$mdsal-psd.service-data.networks.network[0].`' />
178 <for index='nidx' start='0' end='`$tmp.network.network-data.network-request-input.network-input-parameters.param_length`' >
180 <switch test="`$tmp.network.network-data.network-request-input.network-input-parameters.param[$nidx].name == 'access-node-id'`">
181 <outcome value='true'>
183 <parameter name='tmp.found-in-network' value='true' />
184 <parameter name='tmp.ep-available' value='true' />
188 <switch test="`$tmp.network.network-data.network-request-input.network-input-parameters.param[$nidx].name == 'name'`">
189 <outcome value='true'>
191 <parameter name='prop.global.sotn.etht-svc-name' value='`$tmp.network.network-data.network-request-input.network-input-parameters.param[$nidx].value`' />
192 <parameter name='prop.global.sotn.bandwidth-profile-name' value='`$tmp.network.network-data.network-request-input.network-input-parameters.param[$nidx].value`' />
196 <switch test="`$tmp.network.network-data.network-request-input.network-input-parameters.param[$nidx].name == 'description'`">
197 <outcome value='true'>
199 <parameter name='prop.global.sotn.etht-svc-descr' value='`$tmp.network.network-data.network-request-input.network-input-parameters.param[$nidx].value`' />
203 <switch test="`$tmp.network.network-data.network-request-input.network-input-parameters.param[$nidx].name == 'tenantId'`">
204 <outcome value='true'>
206 <parameter name='prop.global.sotn.tenantId' value='`$tmp.network.network-data.network-request-input.network-input-parameters.param[$nidx].value`' />
210 <switch test="`$tmp.network.network-data.network-request-input.network-input-parameters.param[$nidx].name == 'vpnType'`">
211 <outcome value='true'>
213 <parameter name='prop.global.sotn.vpnType' value='`$tmp.network.network-data.network-request-input.network-input-parameters.param[$nidx].value`' />
217 <switch test="`$tmp.network.network-data.network-request-input.network-input-parameters.param[$nidx].name == 'cir'`">
218 <outcome value='true'>
220 <parameter name='prop.sotn.cir' value='`$tmp.network.network-data.network-request-input.network-input-parameters.param[$nidx].value`' />
224 <switch test="`$tmp.network.network-data.network-request-input.network-input-parameters.param[$nidx].name == 'eir'`">
225 <outcome value='true'>
227 <parameter name='prop.global.sotn.eir' value='`$tmp.network.network-data.network-request-input.network-input-parameters.param[$nidx].value`' />
231 <switch test="`$tmp.network.network-data.network-request-input.network-input-parameters.param[$nidx].name == 'colorAware'`">
232 <outcome value='true'>
234 <parameter name='prop.global.sotn.colorAware' value='`$tmp.network.network-data.network-request-input.network-input-parameters.param[$nidx].value`' />
238 <switch test="`$tmp.network.network-data.network-request-input.network-input-parameters.param[$nidx].name == 'couplingFlag'`">
239 <outcome value='true'>
241 <parameter name='prop.global.sotn.couplingFlag' value='`$tmp.network.network-data.network-request-input.network-input-parameters.param[$nidx].value`' />
245 <return status='success'>
246 <parameter name="ack-final-indicator" value="Y" />
247 <parameter name="error-code" value="200" />
248 <parameter name="error-message" value="`$error-message`" />
254 <outcome value='Other'>
255 <return status='failure'>
256 <parameter name='ack-final' value='Y'/>
257 <parameter name="error-code" value="404" />
258 <parameter name="error-message" value="Error: Incorrect state found more then 1 network" />
264 <outcome value='Other'>
265 <return status='failure'>
266 <parameter name='ack-final' value='Y'/>
267 <parameter name="error-code" value="404" />
268 <parameter name="error-message" value="Error: End points not available" />
272 <switch test='`$tmp.ep-available`'>
273 <outcome value='false'>
276 <outcome value='true'>
277 <block atomic="true">
278 <switch test='`$tmp.found-in-ar`'>
279 <outcome value='true'>
280 <block atomic="true">
282 <parameter name='tmp.ep.parameters.' value='`$mdsal-other-ar.connection-attachment-allotted-resource[0].allotted-resource-data.allotted-resource-operation-information.connection-attachment-request-input.`' />
286 <outcome value='false'>
287 <block atomic="true">
289 <parameter name='tmp.ep.parameters.' value='`$tmp.network.network-data.network-request-input.network-input-parameters.`' />
294 <for index='idx' start='0' end='`$tmp.ep.parameters.param_length`'>
296 <switch test="`$tmp.ep.parameters.param[$idx].name == 'access-node-id'`">
297 <outcome value='true'>
299 <parameter name='prop.remote.connection-attachment.access-node-id' value='`$tmp.ep.parameters.param[$idx].value`' />
303 <switch test="`$tmp.ep.parameters.param[$idx].name == 'access-ltp-id'`">
304 <outcome value='true'>
306 <parameter name='prop.remote.connection-attachment.access-ltp-id' value='`$tmp.ep.parameters.param[$idx].value`' />
310 <switch test="`$tmp.ep.parameters.param[$idx].name == 'clientSignal'`">
311 <outcome value='true'>
313 <parameter name='prop.remote.connection-attachment.clientSignal' value='`$tmp.ep.parameters.param[$idx].value`' />
317 <switch test="`$tmp.ep.parameters.param[$idx].name == 'cVLAN'`">
318 <outcome value='true'>
320 <parameter name='prop.remote.connection-attachment.cVLAN' value='`$tmp.ep.parameters.param[$idx].value`' />
324 <switch test="`$tmp.ep.parameters.param[$idx].name == 'access-provider-id'`">
325 <outcome value='true'>
327 <parameter name='prop.remote.connection-attachment.access-provider-id' value='`$tmp.ep.parameters.param[$idx].value`' />
331 <switch test="`$tmp.ep.parameters.param[$idx].name == 'access-client-id'`">
332 <outcome value='true'>
334 <parameter name='prop.remote.connection-attachment.access-client-id' value='`$tmp.ep.parameters.param[$idx].value`' />
338 <switch test="`$tmp.ep.parameters.param[$idx].name == 'access-topology-id'`">
339 <outcome value='true'>
341 <parameter name='prop.remote.connection-attachment.access-topology-id' value='`$tmp.ep.parameters.param[$idx].value`' />
345 <return status='success'>
346 <parameter name="ack-final-indicator" value="Y" />
347 <parameter name="error-code" value="200" />
348 <parameter name="error-message" value="`$error-message`" />
352 <block atomic="true">
353 <execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >
354 <parameter name="templateFileName" value="`$prop.restapi.templateDir + '/' + $prop.restapi.oof-getpath.templatefile`" />
355 <parameter name="restapiUrl" value="`$prop.restapi.connection-oof-url`" />
356 <parameter name="restapiUser" value="`$prop.oof.user`" />
357 <parameter name="restapiPassword" value="`$prop.oof.password`" />
358 <parameter name="format" value="json"/>
359 <parameter name="httpMethod" value="post"/>
360 <parameter name="responsePrefix" value="oof"/>
361 <parameter name="trustStoreFileName" value="/opt/onap/sdnc/data/stores/truststore.openecomp.client.jks"/>
362 <parameter name="trustStorePassword" value="adminadmin"/>
363 <parameter name="keyStoreFileName" value="/opt/onap/sdnc/data/stores/sdnc.p12"/>
364 <parameter name="keyStorePassword" value="adminadmin"/>
365 <parameter name='customHttpHeaders' value="`'X-ACCESS-TOKEN=' + $prop.sdncRestApi.token_id`" />
366 <outcome value='failure'>
367 <return status='failure'>
368 <parameter name='ack-final' value='Y'/>
369 <parameter name="error-code" value="500" />
370 <parameter name="error-message" value="Error executing OOF api" />
373 <outcome value='success'>
377 <for index='vidx' start='0' end='`$oof.vpns_length`' >
378 <block atomic="true">
380 <parameter name='oof.vpn.' value='`$oof.vpns[$vidx].`' />
382 <get-resource plugin="org.onap.ccsdk.sli.adaptors.aai.AAIService"
384 key="pnf.pnf-name = $oof.vpn.access-node-id
386 pfx='tmp.aai.pnf' local-only='false' >
387 <outcome value='success'>
389 <parameter name='tmp.thirdparty-sdnc-id' value="`$tmp.aai.pnf.relationship-list.relationship[0].relationship-data[0].relationship-value`" />
392 <outcome value='not-found'>
393 <return status='failure'>
394 <parameter name='ack-final' value='Y'/>
395 <parameter name="error-code" value="500" />
396 <parameter name="error-message" value="`'An error occurred while querying pnf from AnAI with pnf-name = ' + $prop.connection-attachement.access-node-id`" />
399 <outcome value='Other'>
400 <return status='failure'>
401 <parameter name='ack-final' value='Y'/>
402 <parameter name="error-code" value="500" />
403 <parameter name="error-message" value="`'Unexpected error occurred while querying pnf from AnAI with pnf-name = ' + $prop.connection-attachement.access-node-id`" />
407 <get-resource plugin="org.onap.ccsdk.sli.adaptors.aai.AAIService"
408 resource="esr-thirdparty-sdnc"
409 key="esr-thirdparty-sdnc.thirdparty-sdnc-id = $tmp.thirdparty-sdnc-id AND
411 pfx='tmp.aai.esr-thirdparty-sdnc' local-only='false' >
412 <outcome value='success'>
414 <parameter name='prop.sdncRestApi.thirdpartySdnc.url' value="`$tmp.aai.esr-thirdparty-sdnc.esr-system-info-list.esr-system-info[0].service-url`" />
415 <parameter name='prop.sdncRestApi.thirdpartySdnc.user' value="`$tmp.aai.esr-thirdparty-sdnc.esr-system-info-list.esr-system-info[0].user-name`" />
416 <parameter name='prop.sdncRestApi.thirdpartySdnc.password' value="`$tmp.aai.esr-thirdparty-sdnc.esr-system-info-list.esr-system-info[0].password`" />
419 <outcome value='not-found'>
420 <return status='failure'>
421 <parameter name='ack-final' value='Y'/>
422 <parameter name="error-code" value="500" />
423 <parameter name="error-message" value="`'An error occurred while querying esr-thirdparty-sdnc from AnAI with thirdparty-sdnc-id = ' + $tmp.thirdparty-sdnc-id`" />
426 <outcome value='Other'>
427 <return status='failure'>
428 <parameter name='ack-final' value='Y'/>
429 <parameter name="error-code" value="500" />
430 <parameter name="error-message" value="`'Unexpected error occurred while querying esr-thirdparty-sdnc from AnAI with thirdparty-sdnc-id = ' + $tmp.thirdparty-sdnc-id`" />
434 <execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >
435 <parameter name="templateFileName" value="`$prop.restapi.templateDir + '/sotn-ethernet-service.json'`" />
436 <parameter name="restapiUrl" value="`$prop.sdncRestApi.thirdpartySdnc.url + '/restconf/data/ietf-eth-tran-service:etht-svc'`" />
437 <parameter name="restapiUser" value="`$prop.sdncRestApi.thirdpartySdnc.user`" />
438 <parameter name="restapiPassword" value="`$prop.sdncRestApi.thirdpartySdnc.password`" />
439 <parameter name="format" value="json"/>
440 <parameter name="httpMethod" value="patch"/>
441 <parameter name="responsePrefix" value="vpn-result"/>
442 <parameter name="trustStoreFileName" value="/opt/onap/sdnc/data/stores/truststore.openecomp.client.jks"/>
443 <parameter name="trustStorePassword" value="adminadmin"/>
444 <parameter name="keyStoreFileName" value="/opt/onap/sdnc/data/stores/sdnc.p12"/>
445 <parameter name="keyStorePassword" value="adminadmin"/>
446 <parameter name='customHttpHeaders' value="`'X-ACCESS-TOKEN=' + $prop.sdncRestApi.token_id`" />
447 <outcome value='failure'>
448 <return status='failure'>
449 <parameter name='ack-final' value='Y'/>
450 <parameter name="error-code" value="500" />
451 <parameter name="error-message" value="Error executing Create vpn rest api" />
454 <outcome value='success'>
455 <block atomic="true"></block>
459 <parameter name='tmp.vpnName' value="`$oof.vpn.access-node-id + '-' + $prop.global.sotn.etht-svc-name`" />
461 <save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='vpn-binding'
462 key='vpn-binding.vpn-id = $tmp.vpnName' >
463 <parameter name='vpn-id' value='`$tmp.vpnName`' />
464 <parameter name='vpn-name' value='`$tmp.vpnName`' />
465 <parameter name='access-provider-id' value='`$oof.vpn.access-provider-id`' />
466 <parameter name='access-client-id' value='`$oof.vpn.access-client-id`' />
467 <parameter name='access-topology-id' value='`$oof.vpn.access-topology-id`' />
468 <parameter name='src-access-node-id' value='`$oof.vpn.access-node-id`' />
469 <parameter name='src-access-ltp-id' value='`$oof.vpn.src-access-ltp-id`' />
470 <parameter name='dst-access-node-id' value='`$oof.vpn.access-node-id`' />
471 <parameter name='dst-access-ltp-id' value='`$oof.vpn.dst-access-ltp-id`' />
472 <parameter name='vpn-type' value='`$prop.global.sotn.vpnType`' />
473 <parameter name='operational-status' value='Created' />
474 <parameter name='model-customization-id' value='`$network-topology-operation-input.network-information.onap-model-information.model-customization-uuid`' />
475 <parameter name='model-invariant-id' value='`$network-topology-operation-input.network-information.onap-model-information.model-invariant-uuid`' />
476 <parameter name='model-version-id' value='`$network-topology-operation-input.network-information.onap-model-information.model-uuid`' />
478 <save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='vpn-binding:relationship-list'
479 key='vpn-binding.vpn-id = $tmp.vpnName'
480 force="true" pfx="tmp.AnAI-data">
481 <parameter name="relationship-list.relationship[0].related-to" value="connectivity" />
482 <parameter name="relationship-list.relationship[0].related-link" value="`'/network/connectivities/connectivity/' + $mdsal-psd.service-data.networks.network[0].network-id`" />
483 <parameter name="relationship-list.relationship[0].relationship-data[0].relationship-key" value="connectivity.connectivity-id" />
484 <parameter name="relationship-list.relationship[0].relationship-data[0].relationship-value" value="`$mdsal-psd.service-data.networks.network[0].network-id`" />
487 <parameter name='src-ltpId' value="`'nodeId-' + $oof.vpn.access-node-id + '-ltpId-' + $oof.vpn.src-access-ltp-id`" />
488 <parameter name='dst-ltpId' value="`'nodeId-' + $oof.vpn.access-node-id + '-ltpId-' + $oof.vpn.dst-access-ltp-id`" />
490 <save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='vpn-binding:relationship-list'
491 key='vpn-binding.vpn-id = $tmp.vpnName'
492 force="true" pfx="tmp.AnAI-data">
493 <parameter name="relationship-list.relationship[0].related-to" value="p-interface" />
494 <parameter name="relationship-list.relationship[0].related-link" value="`'/network/pnfs/pnf/' + $oof.vpn.access-node-id + '/p-interfaces/p-interface/' + $src-ltpId`" />
495 <parameter name="relationship-list.relationship[0].relationship-data[0].relationship-key" value="p-interface.interface-name" />
496 <parameter name="relationship-list.relationship[0].relationship-data[0].relationship-value" value="`$src-ltpId`" />
498 <save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='vpn-binding:relationship-list'
499 key='vpn-binding.vpn-id = $tmp.vpnName'
500 force="true" pfx="tmp.AnAI-data">
501 <parameter name="relationship-list.relationship[0].related-to" value="p-interface" />
502 <parameter name="relationship-list.relationship[0].related-link" value="`'/network/pnfs/pnf/' + $oof.vpn.access-node-id + '/p-interfaces/p-interface/' + $dst-ltpId`" />
503 <parameter name="relationship-list.relationship[0].relationship-data[0].relationship-key" value="p-interface.interface-name" />
504 <parameter name="relationship-list.relationship[0].relationship-data[0].relationship-value" value="`$dst-ltpId`" />
513 <parameter name='connection-attachment-ar.allotted-resource-status.action' value="`$connection-attachment-topology-operation-input.request-information.request-action` " />
514 <parameter name='connection-attachment-ar.allotted-resource-status.rpc-name' value="connection-attachment-topology-operation" />
515 <parameter name='connection-attachment-ar.allotted-resource-status.rpc-action' value="`$connection-attachment-topology-operation-input.sdnc-request-header.svc-action` " />
516 <parameter name='connection-attachment-ar.allotted-resource-data.allotted-resource-operation-information.request-information.' value="`$connection-attachment-topology-operation-input.request-information.` " />
517 <parameter name='connection-attachment-ar.allotted-resource-data.allotted-resource-operation-information.sdnc-request-header.' value="`$connection-attachment-topology-operation-input.sdnc-request-header.` " />
518 <parameter name='connection-attachment-ar.allotted-resource-data.allotted-resource-operation-information.service-information.' value="`$connection-attachment-topology-operation-input.service-information.` " />
519 <parameter name='connection-attachment-ar.allotted-resource-data.allotted-resource-operation-information.allotted-resource-information.' value="`$connection-attachment-topology-operation-input.allotted-resource-information.` " />
522 <parameter name='connection-attachment-ar.allotted-resource-data.connection-attachment-topology.onap-model-information.' value="`$connection-attachment-topology-operation-input.allotted-resource-information.onap-model-information.` " />
524 <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='setTime' >
525 <parameter name="outputPath" value="tmp.current-time" />
528 <parameter name='connection-attachment-ar.allotted-resource-data.allotted-resource-oper-status.order-status' value='Active' />
529 <parameter name='connection-attachment-ar.allotted-resource-data.allotted-resource-oper-status.last-action' value='`$connection-attachment-topology-operation-input.request-information.request-action`' />
530 <parameter name='connection-attachment-ar.allotted-resource-data.allotted-resource-oper-status.last-rpc-action' value='`$connection-attachment-topology-operation-input.sdnc-request-header.svc-action`' />
531 <parameter name='connection-attachment-ar.allotted-resource-data.allotted-resource-oper-status.last-svc-request-id' value='`$connection-attachment-topology-operation-input.sdnc-request-header.svc-request-id`' />
532 <parameter name='connection-attachment-ar.allotted-resource-data.allotted-resource-oper-status.create-timestamp' value='`$tmp.current-time`' />
534 <execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >
535 <parameter name='templateFileName' value="`$prop.restapi.templateDir + '/' + $prop.restapi.sotn-attachment.templatefile`" />
536 <parameter name='restapiUrl' value='`$prop.controller.url + $tmp.ar-url`' />
537 <parameter name='restapiUser' value='`$prop.controller.user`' />
538 <parameter name='restapiPassword' value='`$prop.controller.pwd`' />
539 <parameter name='format' value='json' />
540 <parameter name='httpMethod' value='PUT' />
541 <parameter name="responsePrefix" value="mdsal-ar" />
542 <outcome value='success'>
545 <outcome value='failure'>
546 <return status='failure'>
547 <parameter name='ack-final' value='Y'/>
548 <parameter name="error-code" value="500" />
549 <parameter name="error-message" value="Error updating md-sal for connection-attachment-allotted-resource" />
552 <outcome value='not-found'>
553 <return status='failure'>
554 <parameter name='ack-final' value='Y'/>
555 <parameter name="error-code" value="500" />
556 <parameter name="error-message" value="Error updating md-sal for connection-attachment-allotted-resource" />
561 <parameter name='allotted-resource-id' value='`$tmp.ar.allotted-resource-id`' />
562 <parameter name='connection-attachment-object-path' value="`$tmp.ar.self-link`"/>
563 <parameter name='service-object-path' value="`'restconf/config/GENERIC-RESOURCE-API:services/service/'
564 + $connection-attachment-topology-operation-input.service-information.service-instance-id
565 + '/service-data/service-topology/'`"/>
567 <update plugin="org.onap.ccsdk.sli.adaptors.aai.AAIService"
568 resource="allotted-resource"
569 key="customer.global-customer-id = $connection-attachment-topology-operation-input.service-information.global-customer-id AND
570 service-subscription.service-type = $connection-attachment-topology-operation-input.service-information.subscription-service-type AND
571 service-instance.service-instance-id = $connection-attachment-topology-operation-input.allotted-resource-information.parent-service-instance-id AND
572 allotted-resource.id = $tmp.ar.allotted-resource-id"
573 pfx='pfx' local-only='false' force='false'>
574 <parameter name="description" value="`$connection-attachment-topology-operation-input.allotted-resource-information.allotted-resource-type`" />
575 <parameter name="selflink" value="`$tmp.ar.self-link`" />
576 <!--parameter name="model-invariant-id" value="`$connection-attachment-topology-operation-input.allotted-resource-information.onap-model-information.model-invariant-uuid`" /><parameter name="model-version-id" value="`$connection-attachment-topology-operation-input.allotted-resource-information.onap-model-information.model-uuid`" /-->
577 <parameter name="operational-status" value="Active" />
578 <outcome value='failure'>
579 <return status='failure'>
580 <parameter name='ack-final' value='Y'/>
581 <parameter name="error-code" value="500" />
582 <parameter name="error-message" value="AAI failed" />
585 <outcome value='not-found'>
586 <return status='failure'>
587 <parameter name='ack-final' value='Y'/>
588 <parameter name="error-code" value="500" />
589 <parameter name="error-message" value="AAI failed" />
593 <return status='success'>
594 <parameter name="ack-final-indicator" value="Y" />
595 <parameter name="error-code" value="200" />
596 <parameter name="error-message" value="`$error-message`" />