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">
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"/>
12 <reference id="switchConnProviderFactory"
13 interface="org.opendaylight.openflowjava.protocol.spi.connection.SwitchConnectionProviderFactory"/>
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>
23 <transport-protocol>TCP</transport-protocol>
24 </switch-connection-config>
25 ]]></odl:default-config>
26 </odl:clustered-app-config>
28 <bean id="defaultSwitchConnProvider" factory-ref="switchConnProviderFactory" factory-method="newInstance">
29 <argument ref="defaultSwitchConnConfig"/>
32 <service ref="defaultSwitchConnProvider" interface="org.opendaylight.openflowjava.protocol.spi.connection.SwitchConnectionProvider"
33 odl:type="openflow-switch-connection-provider-default-impl"/>
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>
43 <transport-protocol>TCP</transport-protocol>
44 </switch-connection-config>
45 ]]></odl:default-config>
46 </odl:clustered-app-config>
48 <bean id="legacySwitchConnProvider" factory-ref="switchConnProviderFactory" factory-method="newInstance">
49 <argument ref="legacySwitchConnConfig"/>
52 <service ref="legacySwitchConnProvider" interface="org.opendaylight.openflowjava.protocol.spi.connection.SwitchConnectionProvider"
53 odl:type="openflow-switch-connection-provider-legacy-impl"/>
55 <!-- Create OpenflowPluginProvider instance -->
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"/>
60 <reference id="openflowPluginProviderFactory"
61 interface="org.opendaylight.openflowplugin.api.openflow.OpenFlowPluginProviderFactory"/>
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"/>
72 <ref component-id="defaultSwitchConnProvider"/>
73 <ref component-id="legacySwitchConnProvider"/>
78 <service ref="openflowPluginProvider" odl:type="openflow-plugin-provider-impl">
80 <value>org.opendaylight.openflowplugin.api.openflow.OpenFlowPluginProvider</value>
81 <value>org.opendaylight.openflowplugin.extension.api.OpenFlowPluginExtensionRegistratorProvider</value>