Merge "integration test issues fix for sdwan and sotn"
[sdnc/oam.git] / platform-logic / datachange / src / main / xml / DataChange_esr-thirdparty-sdnc-of-zte.xml
1 <service-logic\r
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
8         <block> \r
9           <switch test='`$data-change-notification-input.key-data[$idx].key-name == 'service-url'`'> \r
10             <outcome value='true'> \r
11               <set> \r
12                 <parameter name='zte.prop.sdncRestApi.thirdpartySdnc.url' value='`$data-change-notification-input.key-data[$idx].key-value`'/> \r
13               </set>\r
14             </outcome>\r
15           </switch>\r
16           <switch test='`$data-change-notification-input.key-data[$idx].key-name == 'user-name'`'> \r
17             <outcome value='true'> \r
18               <set> \r
19                 <parameter name='zte.prop.sdncRestApi.thirdpartySdnc.user' value='`$data-change-notification-input.key-data[$idx].key-value`'/> \r
20               </set>\r
21             </outcome>\r
22           </switch>\r
23           <switch test='`$data-change-notification-input.key-data[$idx].key-name == 'password'`'> \r
24             <outcome value='true'> \r
25               <set> \r
26                 <parameter name='zte.prop.sdncRestApi.thirdpartySdnc.password' value='`$data-change-notification-input.key-data[$idx].key-value`'/> \r
27               </set>\r
28             </outcome>\r
29           </switch>\r
30           <switch test='`$data-change-notification-input.key-data[$idx].key-name == 'esr-system-info-id'`'> \r
31             <outcome value='true'> \r
32               <set> \r
33                 <parameter name='zte.prop.sdncRestApi.thirdpartySdnc.system-info-id' value='`$data-change-notification-input.key-data[$idx].key-value`'/> \r
34               </set>\r
35             </outcome>\r
36           </switch>\r
37           <switch test='`$data-change-notification-input.key-data[$idx].key-name == 'thirdparty-sdnc-id'`'> \r
38             <outcome value='true'> \r
39               <set> \r
40                 <parameter name='zte.prop.sdncRestApi.thirdpartySdnc.id' value='`$data-change-notification-input.key-data[$idx].key-value`'/> \r
41               </set>\r
42             </outcome>\r
43           </switch>\r
44           <switch test='`$data-change-notification-input.key-data[$idx].key-name == 'type'`'> \r
45             <outcome value='true'> \r
46               <set> \r
47                 <parameter name='zte.prop.sdncRestApi.type' value='`$data-change-notification-input.key-data[$idx].key-value`'/> \r
48               </set>\r
49             </outcome>\r
50           </switch>\r
51         </block>\r
52       </for>\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
60       </record>\r
61       <call module='DataChange' rpc='esr-thirdparty-sdnc-discovery-of-zte' mode='sync'></call>\r
62     </block>\r
63   </method>\r
64 </service-logic>