Getallnodes should read from cache instead of DS
[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
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         <argument ref="nodeListener"/>
23     </bean>
24     <bean id="nodeListener"
25           class="org.opendaylight.openflowplugin.applications.southboundcli.NodeListener"
26           init-method="start"
27           destroy-method="close">
28         <argument ref="dataBroker"/>
29     </bean>
30
31     <odl:rpc-implementation ref="reconciliationService"/>
32
33     <!--To assert references for CLI implementations-->
34     <command-bundle xmlns="http://karaf.apache.org/xmlns/shell/v1.0.0">
35         <command name="openflow/getallnodes">
36             <action class="org.opendaylight.openflowplugin.applications.southboundcli.cli.GetAllNodesCommandProvider">
37                 <property name="dataBroker" ref="dataBroker" />
38                 <property name="nodeListener" ref="nodeListener"/>
39             </action>
40         </command>
41         <command name="openflow/shownode">
42             <action class="org.opendaylight.openflowplugin.applications.southboundcli.cli.ShowNodeCommandProvider">
43                 <property name="dataBroker" ref="dataBroker" />
44             </action>
45         </command>
46         <command name="openflow/reconcile">
47             <action class="org.opendaylight.openflowplugin.applications.southboundcli.cli.Reconciliation">
48                 <property name="reconciliationService" ref="reconciliationService"/>
49             </action>
50         </command>
51         <command name="openflow/getreconciliationcount">
52             <action class="org.opendaylight.openflowplugin.applications.southboundcli.cli.ReconciliationCount">
53                 <property name="dataBroker" ref="dataBroker"/>
54             </action>
55         </command>
56     </command-bundle>
57
58 </blueprint>