Merge "Use QueuedNotificationManager to dispatch tasks"
[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.controller.md.sal.binding.api.DataBroker"/>
9
10     <odl:rpc-service id="frmReconciliationService"
11              interface="org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.openflowplugin.app.frm.reconciliation.service.rev180227.FrmReconciliationService"/>
12
13     <bean id="alarmAgent"
14           class="org.opendaylight.openflowplugin.applications.southboundcli.alarm.AlarmAgent" init-method="start">
15     </bean>
16     <bean id="reconciliationService"
17           class="org.opendaylight.openflowplugin.applications.southboundcli.ReconciliationServiceImpl"
18           destroy-method="close">
19         <argument ref="dataBroker"/>
20         <argument ref="frmReconciliationService"/>
21         <argument ref="alarmAgent"/>
22     </bean>
23
24     <odl:rpc-implementation ref="reconciliationService"/>
25
26     <!--To assert references for CLI implementations-->
27     <command-bundle xmlns="http://karaf.apache.org/xmlns/shell/v1.0.0">
28         <command name="openflow/getallnodes">
29             <action class="org.opendaylight.openflowplugin.applications.southboundcli.cli.GetAllNodesCommandProvider">
30                 <property name="dataBroker" ref="dataBroker" />
31             </action>
32         </command>
33         <command name="openflow/shownode">
34             <action class="org.opendaylight.openflowplugin.applications.southboundcli.cli.ShowNodeCommandProvider">
35                 <property name="dataBroker" ref="dataBroker" />
36             </action>
37         </command>
38         <command name="openflow/reconcile">
39             <action class="org.opendaylight.openflowplugin.applications.southboundcli.cli.Reconciliation">
40                 <property name="reconciliationService" ref="reconciliationService"/>
41             </action>
42         </command>
43         <command name="openflow/getreconciliationcount">
44             <action class="org.opendaylight.openflowplugin.applications.southboundcli.cli.ReconciliationCount">
45                 <property name="dataBroker" ref="dataBroker"/>
46             </action>
47         </command>
48     </command-bundle>
49
50 </blueprint>