2 xmlns='http://www.onap.org/sdnc/svclogic'
\r
3 xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xsi:schemaLocation='http://www.onap.org/sdnc/svclogic ./svclogic.xsd' module='DataChange' version='${project.version}'>
\r
4 <method rpc='esr-thirdparty-sdnc-of-zte' mode='sync'>
\r
5 <block atomic="true">
\r
6 <call module='DataChange' rpc='validate-esr-thirdparty-sdnc-input' mode='sync'></call>
\r
7 <for index='idx' start='0' end='`$data-change-notification-input.key-data_length`'>
\r
9 <switch test='`$data-change-notification-input.key-data[$idx].key-name == 'service-url'`'>
\r
10 <outcome value='true'>
\r
12 <parameter name='zte.prop.sdncRestApi.thirdpartySdnc.url' value='`$data-change-notification-input.key-data[$idx].key-value`'/>
\r
16 <switch test='`$data-change-notification-input.key-data[$idx].key-name == 'user-name'`'>
\r
17 <outcome value='true'>
\r
19 <parameter name='zte.prop.sdncRestApi.thirdpartySdnc.user' value='`$data-change-notification-input.key-data[$idx].key-value`'/>
\r
23 <switch test='`$data-change-notification-input.key-data[$idx].key-name == 'password'`'>
\r
24 <outcome value='true'>
\r
26 <parameter name='zte.prop.sdncRestApi.thirdpartySdnc.password' value='`$data-change-notification-input.key-data[$idx].key-value`'/>
\r
30 <switch test='`$data-change-notification-input.key-data[$idx].key-name == 'esr-system-info-id'`'>
\r
31 <outcome value='true'>
\r
33 <parameter name='zte.prop.sdncRestApi.thirdpartySdnc.system-info-id' value='`$data-change-notification-input.key-data[$idx].key-value`'/>
\r
37 <switch test='`$data-change-notification-input.key-data[$idx].key-name == 'thirdparty-sdnc-id'`'>
\r
38 <outcome value='true'>
\r
40 <parameter name='zte.prop.sdncRestApi.thirdpartySdnc.id' value='`$data-change-notification-input.key-data[$idx].key-value`'/>
\r
44 <switch test='`$data-change-notification-input.key-data[$idx].key-name == 'type'`'>
\r
45 <outcome value='true'>
\r
47 <parameter name='zte.prop.sdncRestApi.type' value='`$data-change-notification-input.key-data[$idx].key-value`'/>
\r
53 <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
\r
54 <parameter name="file" value="/opt/opendaylight/current/data/log/zte.svclogic.log"/>
\r
55 <parameter name="field1" value="__TIMESTAMP__"/>
\r
56 <parameter name="field2" value="data-change-notification"/>
\r
57 <parameter name="field3" value="Config"/>
\r
58 <parameter name="field4" value="`service-url`"/>
\r
59 <parameter name="field5" value="`$zte.prop.sdncRestApi.thirdpartySdnc.url`"/>
\r
61 <call module='DataChange' rpc='esr-thirdparty-sdnc-discovery-of-zte' mode='sync'></call>
\r