blob: 4f67b46bdc634f6670dbf037c8395b477f8aeb60 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
|
<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>
|