aboutsummaryrefslogtreecommitdiffstats
path: root/platform-logic/datachange/src/main/xml/DataChange_esr-thirdparty-sdnc-of-zte.xml
blob: e98dc7b6b2173229970194df9da6cc96f3214bea (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
<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='DataChange' version='${project.version}'>
    <method rpc='esr-thirdparty-sdnc-of-zte' mode='sync'>
        <block atomic='true'>
            <set>
                <parameter name='prop.zte.sdncRestApi.vendor' value='`$prop.sdncRestApi.vendor`' />
            </set>
            <for index='idx' start='0' end='`$data-change-notification-input.key-data_length`' >
                <block>
                    <switch test="`$data-change-notification-input.key-data[$idx].key-name == 'service-url'`">
                        <outcome value='true'>
                            <set>
                                <parameter name='zte.prop.sdncRestApi.thirdpartySdnc.url' value='`$data-change-notification-input.key-data[$idx].key-value`' />
                            </set>
                        </outcome>
                    </switch>
                    <switch test="`$data-change-notification-input.key-data[$idx].key-name == 'user-name'`">
                        <outcome value='true'>
                            <set>
                                <parameter name='zte.prop.sdncRestApi.thirdpartySdnc.user' value='`$data-change-notification-input.key-data[$idx].key-value`' />
                            </set>
                        </outcome>
                    </switch>
                    <switch test="`$data-change-notification-input.key-data[$idx].key-name == 'password'`">
                        <outcome value='true'>
                            <set>
                                <parameter name='zte.prop.sdncRestApi.thirdpartySdnc.password' value='`$data-change-notification-input.key-data[$idx].key-value`' />
                            </set>
                        </outcome>
                    </switch>
                    <switch test="`$data-change-notification-input.key-data[$idx].key-name == 'esr-system-info-id'`">
                        <outcome value='true'>
                            <set>
                                <parameter name='zte.prop.sdncRestApi.thirdpartySdnc.system-info-id' value='`$data-change-notification-input.key-data[$idx].key-value`' />
                            </set>
                        </outcome>
                    </switch>
                    <switch test="`$data-change-notification-input.key-data[$idx].key-name == 'thirdparty-sdnc-id'`">
                        <outcome value='true'>
                            <set>
                                <parameter name='zte.prop.sdncRestApi.thirdpartySdnc.id' value='`$data-change-notification-input.key-data[$idx].key-value`' />
                            </set>
                        </outcome>
                    </switch>
                    <switch test="`$data-change-notification-input.key-data[$idx].key-name == 'type'`">
                        <outcome value='true'>
                            <set>
                                <parameter name='zte.prop.sdncRestApi.type' value='`$data-change-notification-input.key-data[$idx].key-value`' />
                            </set>
                        </outcome>
                    </switch>
                </block>
            </for>
            <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
                <parameter name="file" value="/opt/opendaylight/current/data/log/zte.svclogic.log"/>
                <parameter name="field1" value="__TIMESTAMP__"/>
                <parameter name="field2" value="data-change-notification"/>
                <parameter name="field3" value="Config"/>
                <parameter name="field4" value="`service-url`"/>
                <parameter name="field5" value="`$zte.prop.sdncRestApi.thirdpartySdnc.url`"/>
            </record>
            <call module='DataChange' rpc='esr-thirdparty-sdnc-discovery-of-zte' mode='sync' ></call>
        </block>
    </method>
</service-logic>