CSC to provide a view of DPN re-sync
[openflowplugin.git] / applications / southbound-cli / src / main / resources / OSGI-INF / blueprint / southbound-cli.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <blueprint xmlns="http://www.osgi.org/xmlns/blueprint/v1.0.0"
3            xmlns:cm="http://aries.apache.org/blueprint/xmlns/blueprint-cm/v1.1.0"
4            xmlns:odl="http://opendaylight.org/xmlns/blueprint/v1.0.0"
5            odl:use-default-for-reference-types="true">
6
7     <reference id="dataBroker"
8                interface="org.opendaylight.mdsal.binding.api.DataBroker"/>
9     <reference id="flowGroupCacheManager" interface="org.opendaylight.openflowplugin.api.openflow.FlowGroupCacheManager"/>
10     <reference id="reconciliationJMXServiceMBean"
11                interface="org.opendaylight.openflowplugin.applications.frm.ReconciliationJMXServiceMBean"
12                availability="optional"/>
13     <reference id="clusterMemberInfoProvider"
14                interface="org.opendaylight.infrautils.diagstatus.ClusterMemberInfo"
15                availability="optional"/>
16     <odl:rpc-service id="frmReconciliationService"
17              interface="org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.openflowplugin.app.frm.reconciliation.service.rev180227.FrmReconciliationService"/>
18
19     <bean id="alarmAgent"
20           class="org.opendaylight.openflowplugin.applications.southboundcli.alarm.AlarmAgent" init-method="start">
21     </bean>
22     <bean id="nodeListener"
23           class="org.opendaylight.openflowplugin.applications.southboundcli.NodeListener"
24           init-method="start"
25           destroy-method="close">
26         <argument ref="dataBroker"/>
27     </bean>
28     <bean id="reconciliationService"
29           class="org.opendaylight.openflowplugin.applications.southboundcli.ReconciliationServiceImpl"
30           destroy-method="close">
31         <argument ref="dataBroker"/>
32         <argument ref="frmReconciliationService"/>
33         <argument ref="alarmAgent"/>
34         <argument ref="nodeListener"/>
35         <argument ref="flowGroupCacheManager"/>
36     </bean>
37
38     <odl:rpc-implementation ref="reconciliationService"/>
39
40     <!--To assert references for CLI implementations-->
41     <command-bundle xmlns="http://karaf.apache.org/xmlns/shell/v1.0.0">
42         <command name="openflow/getallnodes">
43             <action class="org.opendaylight.openflowplugin.applications.southboundcli.cli.GetAllNodesCommandProvider">
44                 <property name="dataBroker" ref="dataBroker" />
45                 <property name="nodeListener" ref="nodeListener"/>
46             </action>
47         </command>
48         <command name="openflow/shownode">
49             <action class="org.opendaylight.openflowplugin.applications.southboundcli.cli.ShowNodeCommandProvider">
50                 <property name="dataBroker" ref="dataBroker" />
51             </action>
52         </command>
53         <command name="openflow/reconcile">
54             <action class="org.opendaylight.openflowplugin.applications.southboundcli.cli.Reconciliation">
55                 <property name="reconciliationService" ref="reconciliationService"/>
56             </action>
57         </command>
58         <command name="openflow/getreconciliationcount">
59             <action class="org.opendaylight.openflowplugin.applications.southboundcli.cli.ReconciliationCount">
60                 <property name="dataBroker" ref="dataBroker"/>
61             </action>
62         </command>
63         <command name="openflow/getreconciliationstate">
64             <action class="org.opendaylight.openflowplugin.applications.southboundcli.cli.GetReconciliationStateProvider">
65                 <argument ref="reconciliationJMXServiceMBean" />
66                 <argument ref="clusterMemberInfoProvider" />
67             </action>
68         </command>
69     </command-bundle>
70
71 </blueprint>