Refactor NodeListener
[openflowplugin.git] / applications / southbound-cli / src / main / resources / OSGI-INF / blueprint / commands.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.2.0">
4
5     <reference id="reconciliationJMXServiceMBean"
6                interface="org.opendaylight.openflowplugin.applications.frm.ReconciliationJMXServiceMBean"
7                availability="optional"/>
8     <reference id="clusterMemberInfoProvider"
9                interface="org.opendaylight.infrautils.diagstatus.ClusterMemberInfo"
10                availability="optional"/>
11     <reference id="flowGroupHistories"
12                interface="org.opendaylight.openflowplugin.api.openflow.FlowGroupInfoHistories"/>
13
14     <cm:property-placeholder persistent-id="org.ops4j.pax.web" update-strategy="none">
15         <cm:default-properties>
16             <cm:property name="org.osgi.service.http.port" value="8181"/>
17         </cm:default-properties>
18     </cm:property-placeholder>
19
20     <command-bundle xmlns="http://karaf.apache.org/xmlns/shell/v1.0.0">
21         <command name="openflow/getallnodes">
22             <action class="org.opendaylight.openflowplugin.applications.southboundcli.cli.GetAllNodesCommandProvider">
23                 <argument ref="dpnTracker"/>
24             </action>
25         </command>
26         <command name="openflow/shownode">
27             <action class="org.opendaylight.openflowplugin.applications.southboundcli.cli.ShowNodeCommandProvider">
28                 <property name="dataBroker" ref="dataBroker" />
29             </action>
30         </command>
31         <command name="openflow/reconcile">
32             <action class="org.opendaylight.openflowplugin.applications.southboundcli.cli.Reconciliation">
33                 <property name="reconciliationService" ref="reconciliationService"/>
34             </action>
35         </command>
36         <command name="openflow/getreconciliationcount">
37             <action class="org.opendaylight.openflowplugin.applications.southboundcli.cli.ReconciliationCount">
38                 <property name="dataBroker" ref="dataBroker"/>
39             </action>
40         </command>
41         <command name="openflow/getreconciliationstate">
42             <action class="org.opendaylight.openflowplugin.applications.southboundcli.cli.GetReconciliationStateProvider">
43                 <argument ref ="reconciliationJMXServiceMBean"/>
44                 <argument ref="clusterMemberInfoProvider"/>
45                 <argument value="${org.osgi.service.http.port}"/>
46             </action>
47         </command>
48         <command name="openflow/getflownodecache">
49             <action class="org.opendaylight.openflowplugin.applications.southboundcli.cli.GetFlowGroupCacheProvider">
50                 <argument ref="flowGroupHistories"/>
51             </action>
52         </command>
53     </command-bundle>
54
55 </blueprint>