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">
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"/>
14 <reference id="switchConnProviderFactory"
15 interface="org.opendaylight.openflowjava.protocol.spi.connection.SwitchConnectionProviderFactory"/>
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>
25 <transport-protocol>TCP</transport-protocol>
26 </switch-connection-config>
27 ]]></odl:default-config>
28 </odl:clustered-app-config>
30 <bean id="defaultSwitchConnProvider" factory-ref="switchConnProviderFactory" factory-method="newInstance">
31 <argument ref="defaultSwitchConnConfig"/>
34 <service ref="defaultSwitchConnProvider" interface="org.opendaylight.openflowjava.protocol.spi.connection.SwitchConnectionProvider"
35 odl:type="openflow-switch-connection-provider-default-impl"/>
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>
45 <transport-protocol>TCP</transport-protocol>
46 </switch-connection-config>
47 ]]></odl:default-config>
48 </odl:clustered-app-config>
50 <bean id="legacySwitchConnProvider" factory-ref="switchConnProviderFactory" factory-method="newInstance">
51 <argument ref="legacySwitchConnConfig"/>
54 <service ref="legacySwitchConnProvider" interface="org.opendaylight.openflowjava.protocol.spi.connection.SwitchConnectionProvider"
55 odl:type="openflow-switch-connection-provider-legacy-impl"/>
57 <!-- Create OpenflowPluginProvider instance -->
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"/>
62 <reference id="openflowPluginProviderFactory"
63 interface="org.opendaylight.openflowplugin.api.openflow.OpenFlowPluginProviderFactory"/>
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"/>
74 <ref component-id="defaultSwitchConnProvider"/>
75 <ref component-id="legacySwitchConnProvider"/>
78 <cm:managed-properties persistent-id="org.opendaylight.openflowplugin"
79 update-strategy="component-managed"
80 update-method="update"/>
81 <argument ref="clusterSingletonServiceProvider"/>
84 <service ref="openflowPluginProvider" odl:type="openflow-plugin-provider-impl">
86 <value>org.opendaylight.openflowplugin.api.openflow.OpenFlowPluginProvider</value>
87 <value>org.opendaylight.openflowplugin.extension.api.OpenFlowPluginExtensionRegistratorProvider</value>