blob: edce7fbb9ea26ca880eac7133960346a2e541782 (
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
|
<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' mode='sync'>
<block atomic="true">
<call module='DataChange' rpc='validate-esr-thirdparty-sdnc-input' mode='sync' ></call>
<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='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='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='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='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='prop.sdncRestApi.thirdpartySdnc.id' 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/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="`$prop.sdncRestApi.thirdpartySdnc.url`"/>
</record>
<call module='DataChange' rpc='esr-thirdparty-sdnc-discovery' mode='sync' ></call>
</block>
</method>
</service-logic>
|