summaryrefslogtreecommitdiffstats
path: root/platform-logic/generic-resource-api/src/main/xml/sdwan/GENERIC-RESOURCE-API_sdwan-get-wan-param.xml
blob: 30d7116bb87a5c3b523c5b38de67c8f37daebdb1 (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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
<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='sdwan-get-wan-param' mode='sync'>
        <block atomic="true">
            <for index="idx" start="0" end="`$vf-module-request-input.vf-module-input-parameters.param_length`">
                <block>
                    <switch test="`$vf-module-request-input.vf-module-input-parameters.param[$idx].name  == 'id'`">
                        <outcome value='true'>
                            <set>
                                <parameter name='prop.wan.id' value='`$vf-module-request-input.vf-module-input-parameters.param[$idx].value`' />
                            </set>
                        </outcome>
                    </switch>
                    <switch test="`$vf-module-request-input.vf-module-input-parameters.param[$idx].name == 'name'`">
                        <outcome value='true'>
                            <set>
                                <parameter name='prop.wan.name' value='`$vf-module-request-input.vf-module-input-parameters.param[$idx].value`' />
                            </set>
                        </outcome>
                    </switch>
                    <switch test="`$vf-module-request-input.vf-module-input-parameters.param[$idx].name  == 'description'`">
                        <outcome value='true'>
                            <set>
                                <parameter name='prop.wan.description' value='`$vf-module-request-input.vf-module-input-parameters.param[$idx].value`' />
                            </set>
                        </outcome>
                    </switch>
                    <switch test="`$vf-module-request-input.vf-module-input-parameters.param[$idx].name == 'deviceName'`">
                        <outcome value='true'>
                            <set>
                                <parameter name='prop.wan.deviceName' value='`$vf-module-request-input.vf-module-input-parameters.param[$idx].value`' />
                            </set>
                        </outcome>
                    </switch>
                    <switch test="`$vf-module-request-input.vf-module-input-parameters.param[$idx].name == 'portType'`">
                        <outcome value='true'>
                            <set>
                                <parameter name='prop.wan.portType' value='`$vf-module-request-input.vf-module-input-parameters.param[$idx].value`' />
                            </set>
                        </outcome>
                    </switch>
                    <switch test="`$vf-module-request-input.vf-module-input-parameters.param[$idx].name == 'apn'`">
                        <outcome value='true'>
                            <set>
                                <parameter name='prop.wan.apn-name' value='`$vf-module-request-input.vf-module-input-parameters.param[$idx].value`' />
                            </set>
                        </outcome>
                    </switch>
                    <switch test="`$vf-module-request-input.vf-module-input-parameters.param[$idx].name == 'portNumber'`">
                        <outcome value='true'>
                            <set>
                                <parameter name='prop.wan.portNumber' value='`$vf-module-request-input.vf-module-input-parameters.param[$idx].value`' />
                            </set>
                        </outcome>
                    </switch>
                    <switch test="`$vf-module-request-input.vf-module-input-parameters.param[$idx].name == 'ipAddress'`">
                        <outcome value='true'>
                            <set>
                                <parameter name='prop.wan.ipAddress' value='`$vf-module-request-input.vf-module-input-parameters.param[$idx].value`' />
                            </set>
                        </outcome>
                    </switch>
                    <switch test="`$vf-module-request-input.vf-module-input-parameters.param[$idx].name == 'providerIpAddress'`">
                        <outcome value='true'>
                            <set>
                                <parameter name='prop.wan.providerIpAddress' value='`$vf-module-request-input.vf-module-input-parameters.param[$idx].value`' />
                            </set>
                        </outcome>
                    </switch>
                    <switch test="`$vf-module-request-input.vf-module-input-parameters.param[$idx].name == 'vlanId'`">
                        <outcome value='true'>
                            <set>
                                <parameter name='prop.wan.vlanId' value='`$vf-module-request-input.vf-module-input-parameters.param[$idx].value`' />
                            </set>
                        </outcome>
                    </switch>
                    <switch test="`$vf-module-request-input.vf-module-input-parameters.param[$idx].name == 'transportNetworkName'`">
                        <outcome value='true'>
                            <set>
                                <parameter name='prop.wan.transportNetworkName' value='`$vf-module-request-input.vf-module-input-parameters.param[$idx].value`' />
                            </set>
                        </outcome>
                    </switch>
                    <switch test="`$vf-module-request-input.vf-module-input-parameters.param[$idx].name == 'inputBandwidth'`">
                        <outcome value='true'>
                            <set>
                                <parameter name='prop.wan.inputBandwidth' value='`$vf-module-request-input.vf-module-input-parameters.param[$idx].value`' />
                            </set>
                        </outcome>
                    </switch>
                    <switch test="`$vf-module-request-input.vf-module-input-parameters.param[$idx].name == 'outputBandwidth'`">
                        <outcome value='true'>
                            <set>
                                <parameter name='prop.wan.outputBandwidth' value='`$vf-module-request-input.vf-module-input-parameters.param[$idx].value`' />
                            </set>
                        </outcome>
                    </switch>
                    <switch test="`$vf-module-request-input.vf-module-input-parameters.param[$idx].name == 'devicePortId'`">
                        <outcome value='true'>
                            <set>
                                <parameter name='prop.wan.devicePortId' value='`$vf-module-request-input.vf-module-input-parameters.param[$idx].value`' />
                            </set>
                        </outcome>
                    </switch>
                    <switch test="`$vf-module-request-input.vf-module-input-parameters.param[$idx].name == 'wanPortId'`">
                        <outcome value='true'>
                            <set>
                                <parameter name='prop.wan.wanPortId' value='`$vf-module-request-input.vf-module-input-parameters.param[$idx].value`' />
                            </set>
                        </outcome>
                    </switch>
                    <switch test="`$vf-module-request-input.vf-module-input-parameters.param[$idx].name == 'publicIP'`">
                        <outcome value='true'>
                            <set>
                                <parameter name='prop.wan.publicIP' value='`$vf-module-request-input.vf-module-input-parameters.param[$idx].value`' />
                            </set>
                        </outcome>
                    </switch>
                    <switch test="`$vf-module-request-input.vf-module-input-parameters.param[$idx].name == 'IPMode'`">
                        <outcome value='true'>
                            <set>
                                <parameter name='prop.wan.IPMode' value='`$vf-module-request-input.vf-module-input-parameters.param[$idx].value`' />
                            </set>
                        </outcome>
                    </switch>
                    <return status='success'>
                        <parameter name="ack-final-indicator" value="Y" />
                        <parameter name="error-code" value="200" />
                        <parameter name="error-message" value="`$error-message`" />
                    </return>
                </block>
            </for>
        </block>
    </method>
</service-logic>