add zte esr-thirdparty-sdnc discovery logic
[sdnc/oam.git] / platform-logic / datachange / src / main / xml / DataChange_data-change-notification.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='data-change-notification' mode='sync'> \r
5     <block atomic="true"> \r
6       <switch test='`$data-change-notification-input.aai-node-type`'> \r
7         <outcome value='esr-thirdparty-sdnc'> \r
8           <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-value == 'ZTE'`'> \r
10               <outcome value='true'> \r
11                 <block atomic="true"> \r
12                   <set> \r
13                     <parameter name='zte.prop.sdncRestApi.vendor' value='`$data-change-notification-input.key-data[$idx].key-value`'/> \r
14                   </set>\r
15                   <call module='DataChange' rpc='esr-thirdparty-sdnc-of-zte' mode='sync'></call>\r
16                 </block>\r
17               </outcome>\r
18               <outcome value='false'> \r
19                 <block atomic="true"> \r
20                   <call module='DataChange' rpc='esr-thirdparty-sdnc' mode='sync'></call>\r
21                 </block>\r
22               </outcome>\r
23             </switch>\r
24           </for>\r
25         </outcome>\r
26         <outcome value='Other'> \r
27           <return status='failure'> \r
28             <parameter name='ack-final' value='Y'/>  \r
29             <parameter name="error-code" value="500"/>  \r
30             <parameter name="error-message" value="AAI node type not supported"/>\r
31           </return>\r
32         </outcome>\r
33       </switch>\r
34       <return status='success'> \r
35         <parameter name="ack-final-indicator" value="Y"/>  \r
36         <parameter name="error-code" value="200"/>  \r
37         <parameter name="error-message" value="`$error-message`"/> \r
38       </return>\r
39     </block>\r
40   </method>\r
41 </service-logic>