<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='bbs-internet-profile-vnf-topology-operation-common-huawei' mode='sync'> <block atomic="true"> <call module='GENERIC-RESOURCE-API' rpc='validate-bbs-vnf-input-parameters' mode='sync' ></call> <set> <parameter name='vnf-input-parameters.' value='`$vnf-topology-operation-input.vnf-request-input.vnf-input-parameters.`' /> <parameter name='prop.sdncRestApi.thirdpartySdnc.url' value='http://172.30.0.121:5000' /> <parameter name='prop.bbs.service_id' value='`$vnf-topology-operation-input.service-information.service-id`' /> </set> <execute plugin='org.onap.ccsdk.sli.plugins.prop.PropertiesNode' method='readProperties' > <parameter name='fileName' value='%SDNC_CONFIG_DIR%/generic-resource-api-dg.properties' /> <parameter name='contextPrefix' value='prop' /> </execute> <for index='idx' start='0' end='`$vnf-input-parameters.param_length`' > <block> <switch test="`$vnf-input-parameters.param[$idx].name == 'ip_service_type'`"> <outcome value='true'> <switch test='`$vnf-input-parameters.param[$idx].value`'> <outcome value=''> <return status='failure'> <parameter name='ack-final' value='Y'/> <parameter name="error-code" value="500" /> <parameter name="error-message" value="`$vnf-input-parameters.param[$idx].name +' value is null, please check it.'`" /> </return> </outcome> <outcome value='Other'> <set> <parameter name='prop.bbs.service_type' value='`$vnf-input-parameters.param[$idx].value`' /> </set> </outcome> </switch> </outcome> </switch> <switch test="`$vnf-input-parameters.param[$idx].name == 'ip_upstream_speed'`"> <outcome value='true'> <switch test='`$vnf-input-parameters.param[$idx].value`'> <outcome value=''> <return status='failure'> <parameter name='ack-final' value='Y'/> <parameter name="error-code" value="500" /> <parameter name="error-message" value="`$vnf-input-parameters.param[$idx].name +' value is null, please check it.'`" /> </return> </outcome> <outcome value='Other'> <set> <parameter name='prop.bbs.up_speed' value='`$vnf-input-parameters.param[$idx].value`' /> </set> </outcome> </switch> </outcome> </switch> <switch test="`$vnf-input-parameters.param[$idx].name == 'ip_downstream_speed'`"> <outcome value='true'> <switch test='`$vnf-input-parameters.param[$idx].value`'> <outcome value=''> <return status='failure'> <parameter name='ack-final' value='Y'/> <parameter name="error-code" value="500" /> <parameter name="error-message" value="`$vnf-input-parameters.param[$idx].name +' value is null, please check it.'`" /> </return> </outcome> <outcome value='Other'> <set> <parameter name='prop.bbs.down_speed' value='`$vnf-input-parameters.param[$idx].value`' /> </set> </outcome> </switch> </outcome> </switch> </block> </for> </block> </method> </service-logic>