diff options
author | 2018-09-07 20:56:24 +0000 | |
---|---|---|
committer | 2018-09-07 20:56:24 +0000 | |
commit | 69f82ea41d1c21f15be97cc99babf5754fb5fe68 (patch) | |
tree | bfc58a0a8aaa2c026b06b5325a62252bc5e480ec /platform-logic/generic-resource-api/src/main/xml/GENERIC-RESOURCE-API_self-serve-vnf-changeassign.xml | |
parent | 0c99d4765288c57ebf990c58b226f62a2dd3b348 (diff) |
self-serve DG for Casablanca
Add new self-serve DG and update existing self-serve DG for Casablanca
Change-Id: Ib4c3ccf3ce2acc986df8c1a1d3374048e9ec73a1
Issue-ID: SDNC-437
Signed-off-by: Cheung, Pat <kc1472@att.com>
Former-commit-id: a132f1f5d11eff79a10dd0040db351e209c197d1
Diffstat (limited to 'platform-logic/generic-resource-api/src/main/xml/GENERIC-RESOURCE-API_self-serve-vnf-changeassign.xml')
-rw-r--r-- | platform-logic/generic-resource-api/src/main/xml/GENERIC-RESOURCE-API_self-serve-vnf-changeassign.xml | 61 |
1 files changed, 61 insertions, 0 deletions
diff --git a/platform-logic/generic-resource-api/src/main/xml/GENERIC-RESOURCE-API_self-serve-vnf-changeassign.xml b/platform-logic/generic-resource-api/src/main/xml/GENERIC-RESOURCE-API_self-serve-vnf-changeassign.xml new file mode 100644 index 00000000..dc7b1609 --- /dev/null +++ b/platform-logic/generic-resource-api/src/main/xml/GENERIC-RESOURCE-API_self-serve-vnf-changeassign.xml @@ -0,0 +1,61 @@ +<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='self-serve-vnf-changeassign' mode='sync'> + <block atomic="true"> + <switch test='`$vnf-topology-operation-input.vnf-request-input.vnf-input-parameters.param_length`'> + <outcome value=''> + <return status='failure'> + <parameter name='ack-final' value='Y'/> + <parameter name="error-code" value="500" /> + <parameter name="error-message" value="no param name/value provided in vnf-request-input" /> + </return> + </outcome> + </switch> + <for index='i' start='0' end='`$vnf-topology-operation-input.vnf-request-input.vnf-input-parameters.param_length`' > + <block atomic='true'> + <switch test='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-parameters-data.param_length`'> + <outcome value='Other'> + <for index='j' start='0' end='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-parameters-data.param_length`' > + <switch test='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-parameters-data.param[$j].name == $vnf-topology-operation-input.vnf-request-input.vnf-input-parameters.param[$i].name`'> + <outcome value='false'> + <return status='failure'> + <parameter name='ack-final' value='Y'/> + <parameter name="error-code" value="500" /> + <parameter name="error-message" value="`'No param with param[].name = ' + $vnf-topology-operation-input.vnf-request-input.vnf-input-parameters.param[$i].name + ' found in service-data.'`" /> + </return> + </outcome> + <outcome value='true'> + <block atomic='true'> + <set> + <parameter name='`service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-parameters-data.param[$j].resource-resolution-data.status`' value='PENDING'/> + <parameter name='ss.input.param.index' value='`$i`' /> + <parameter name='ss.service-data.param.index' value='`$j`' /> + </set> + <call module='GENERIC-RESOURCE-API' rpc='self-serve-generate-name-changeassign' mode='sync' > + <outcome value='failure'> + <return status='failure'> + <parameter name='ack-final' value='Y'/> + <parameter name="error-code" value="500" /> + <parameter name="error-message" value="Error from self-service-generate-name-changeassign" /> + </return> + </outcome> + <outcome value='not-found'> + <return status='failure'> + <parameter name='ack-final' value='Y'/> + <parameter name="error-code" value="500" /> + <parameter name="error-message" value="Error from self-service-generate-name-changeassign" /> + </return> + </outcome> + </call> + </block> + </outcome> + </switch> + </for> + </outcome> + </switch> + </block> + </for> + </block> + </method> +</service-logic>
\ No newline at end of file |