Merge "Bug 5916: He plugin: Wake up statistics collector thread if RPC fails."
[openflowplugin.git] / openflowplugin-blueprint-config / src / main / resources / org / opendaylight / blueprint / openflowplugin.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <blueprint xmlns="http://www.osgi.org/xmlns/blueprint/v1.0.0"
3            xmlns:odl="http://opendaylight.org/xmlns/blueprint/v1.0.0"
4         odl:use-default-for-reference-types="true">
5
6   <reference id="dataBroker" interface="org.opendaylight.controller.md.sal.binding.api.DataBroker" odl:type="pingpong"/>
7   <reference id="rpcRegistry" interface="org.opendaylight.controller.sal.binding.api.RpcProviderRegistry"/>
8   <reference id="notificationService" interface="org.opendaylight.controller.md.sal.binding.api.NotificationService"/>
9   <reference id="notificationPublishService" interface="org.opendaylight.controller.md.sal.binding.api.NotificationPublishService"/>
10   <reference id="entityOwnershipService" interface="org.opendaylight.controller.md.sal.common.api.clustering.EntityOwnershipService"/>
11
12   <reference id="switchConnProviderFactory"
13           interface="org.opendaylight.openflowjava.protocol.spi.connection.SwitchConnectionProviderFactory"/>
14
15   <!-- Create OF switch connection provider on port 6633 -->
16   <odl:clustered-app-config id="defaultSwitchConnConfig"
17       binding-class="org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.openflow._switch.connection.config.rev160506.SwitchConnectionConfig"
18       list-key-value="openflow-switch-connection-provider-default-impl">
19     <odl:default-config><![CDATA[
20       <switch-connection-config xmlns="urn:opendaylight:params:xml:ns:yang:openflow:switch:connection:config">
21         <instance-name>openflow-switch-connection-provider-default-impl</instance-name>
22         <port>6633</port>
23         <transport-protocol>TCP</transport-protocol>
24       </switch-connection-config>
25     ]]></odl:default-config>
26   </odl:clustered-app-config>
27
28   <bean id="defaultSwitchConnProvider" factory-ref="switchConnProviderFactory" factory-method="newInstance">
29     <argument ref="defaultSwitchConnConfig"/>
30   </bean>
31
32   <service ref="defaultSwitchConnProvider" interface="org.opendaylight.openflowjava.protocol.spi.connection.SwitchConnectionProvider"
33           odl:type="openflow-switch-connection-provider-default-impl"/>
34
35   <!-- Create OF switch connection provider on port 6653 -->
36   <odl:clustered-app-config id="legacySwitchConnConfig"
37       binding-class="org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.openflow._switch.connection.config.rev160506.SwitchConnectionConfig"
38       list-key-value="openflow-switch-connection-provider-legacy-impl">
39     <odl:default-config><![CDATA[
40       <switch-connection-config xmlns="urn:opendaylight:params:xml:ns:yang:openflow:switch:connection:config">
41         <instance-name>openflow-switch-connection-provider-legacy-impl</instance-name>
42         <port>6653</port>
43         <transport-protocol>TCP</transport-protocol>
44       </switch-connection-config>
45     ]]></odl:default-config>
46   </odl:clustered-app-config>
47
48   <bean id="legacySwitchConnProvider" factory-ref="switchConnProviderFactory" factory-method="newInstance">
49     <argument ref="legacySwitchConnConfig"/>
50   </bean>
51
52   <service ref="legacySwitchConnProvider" interface="org.opendaylight.openflowjava.protocol.spi.connection.SwitchConnectionProvider"
53           odl:type="openflow-switch-connection-provider-legacy-impl"/>
54
55   <!-- Create OpenflowPluginProvider instance -->
56
57   <odl:clustered-app-config id="openflowProviderConfig"
58       binding-class="org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.openflow.provider.config.rev160510.OpenflowProviderConfig"/>
59
60   <reference id="openflowPluginProviderFactory"
61           interface="org.opendaylight.openflowplugin.api.openflow.OpenFlowPluginProviderFactory"/>
62
63   <bean id="openflowPluginProvider" factory-ref="openflowPluginProviderFactory" factory-method="newInstance">
64     <argument ref="openflowProviderConfig"/>
65     <argument ref="dataBroker"/>
66     <argument ref="rpcRegistry"/>
67     <argument ref="notificationService"/>
68     <argument ref="notificationPublishService"/>
69     <argument ref="entityOwnershipService"/>
70     <argument>
71       <list>
72         <ref component-id="defaultSwitchConnProvider"/>
73         <ref component-id="legacySwitchConnProvider"/>
74       </list>
75     </argument>
76   </bean>
77
78   <service ref="openflowPluginProvider" odl:type="openflow-plugin-provider-impl">
79     <interfaces>
80       <value>org.opendaylight.openflowplugin.api.openflow.OpenFlowPluginProvider</value>
81       <value>org.opendaylight.openflowplugin.extension.api.OpenFlowPluginExtensionRegistratorProvider</value>
82     </interfaces>
83   </service>
84
85 </blueprint>