Merge "Bug 6380 lldp-speaker - DTCL instead of DTL"
[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            xmlns:cm="http://aries.apache.org/blueprint/xmlns/blueprint-cm/v1.1.0"
5         odl:use-default-for-reference-types="true">
6
7   <reference id="dataBroker" interface="org.opendaylight.controller.md.sal.binding.api.DataBroker" odl:type="pingpong"/>
8   <reference id="rpcRegistry" interface="org.opendaylight.controller.sal.binding.api.RpcProviderRegistry"/>
9   <reference id="notificationService" interface="org.opendaylight.controller.md.sal.binding.api.NotificationService"/>
10   <reference id="notificationPublishService" interface="org.opendaylight.controller.md.sal.binding.api.NotificationPublishService"/>
11   <reference id="entityOwnershipService" interface="org.opendaylight.controller.md.sal.common.api.clustering.EntityOwnershipService"/>
12   <reference id="clusterSingletonServiceProvider" interface="org.opendaylight.mdsal.singleton.common.api.ClusterSingletonServiceProvider"/>
13
14   <reference id="switchConnProviderFactory"
15           interface="org.opendaylight.openflowjava.protocol.spi.connection.SwitchConnectionProviderFactory"/>
16
17   <!-- Create OF switch connection provider on port 6633 -->
18   <odl:clustered-app-config id="defaultSwitchConnConfig"
19       binding-class="org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.openflow._switch.connection.config.rev160506.SwitchConnectionConfig"
20       list-key-value="openflow-switch-connection-provider-default-impl">
21     <odl:default-config><![CDATA[
22       <switch-connection-config xmlns="urn:opendaylight:params:xml:ns:yang:openflow:switch:connection:config">
23         <instance-name>openflow-switch-connection-provider-default-impl</instance-name>
24         <port>6633</port>
25         <transport-protocol>TCP</transport-protocol>
26       </switch-connection-config>
27     ]]></odl:default-config>
28   </odl:clustered-app-config>
29
30   <bean id="defaultSwitchConnProvider" factory-ref="switchConnProviderFactory" factory-method="newInstance">
31     <argument ref="defaultSwitchConnConfig"/>
32   </bean>
33
34   <service ref="defaultSwitchConnProvider" interface="org.opendaylight.openflowjava.protocol.spi.connection.SwitchConnectionProvider"
35           odl:type="openflow-switch-connection-provider-default-impl"/>
36
37   <!-- Create OF switch connection provider on port 6653 -->
38   <odl:clustered-app-config id="legacySwitchConnConfig"
39       binding-class="org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.openflow._switch.connection.config.rev160506.SwitchConnectionConfig"
40       list-key-value="openflow-switch-connection-provider-legacy-impl">
41     <odl:default-config><![CDATA[
42       <switch-connection-config xmlns="urn:opendaylight:params:xml:ns:yang:openflow:switch:connection:config">
43         <instance-name>openflow-switch-connection-provider-legacy-impl</instance-name>
44         <port>6653</port>
45         <transport-protocol>TCP</transport-protocol>
46       </switch-connection-config>
47     ]]></odl:default-config>
48   </odl:clustered-app-config>
49
50   <bean id="legacySwitchConnProvider" factory-ref="switchConnProviderFactory" factory-method="newInstance">
51     <argument ref="legacySwitchConnConfig"/>
52   </bean>
53
54   <service ref="legacySwitchConnProvider" interface="org.opendaylight.openflowjava.protocol.spi.connection.SwitchConnectionProvider"
55           odl:type="openflow-switch-connection-provider-legacy-impl"/>
56
57   <!-- Create OpenflowPluginProvider instance -->
58
59   <odl:clustered-app-config id="openflowProviderConfig"
60       binding-class="org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.openflow.provider.config.rev160510.OpenflowProviderConfig"/>
61
62   <reference id="openflowPluginProviderFactory"
63           interface="org.opendaylight.openflowplugin.api.openflow.OpenFlowPluginProviderFactory"/>
64
65   <bean id="openflowPluginProvider" factory-ref="openflowPluginProviderFactory" factory-method="newInstance">
66     <argument ref="openflowProviderConfig"/>
67     <argument ref="dataBroker"/>
68     <argument ref="rpcRegistry"/>
69     <argument ref="notificationService"/>
70     <argument ref="notificationPublishService"/>
71     <argument ref="entityOwnershipService"/>
72     <argument>
73       <list>
74         <ref component-id="defaultSwitchConnProvider"/>
75         <ref component-id="legacySwitchConnProvider"/>
76       </list>
77     </argument>
78     <cm:managed-properties persistent-id="org.opendaylight.openflowplugin"
79                            update-strategy="component-managed"
80                            update-method="update"/>
81     <argument ref="clusterSingletonServiceProvider"/>
82   </bean>
83
84   <service ref="openflowPluginProvider" odl:type="openflow-plugin-provider-impl">
85     <interfaces>
86       <value>org.opendaylight.openflowplugin.api.openflow.OpenFlowPluginProvider</value>
87       <value>org.opendaylight.openflowplugin.extension.api.OpenFlowPluginExtensionRegistratorProvider</value>
88     </interfaces>
89   </service>
90
91 </blueprint>