git rid of Blueprint openflowplugin.xml
[openflowplugin.git] / openflowjava / openflowjava-blueprint-config / src / main / resources / OSGI-INF / blueprint / openflowjava.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
5   <reference id="switchConnectionProviderFactory" interface="org.opendaylight.openflowjava.protocol.spi.connection.SwitchConnectionProviderFactory"/>
6
7   <!-- Create OF switch connection provider on port 6653 (default) -->
8   <odl:clustered-app-config id="defaultSwitchConnConfig" default-config-file-name="default-openflow-connection-config.xml"
9       binding-class="org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.openflow._switch.connection.config.rev160506.SwitchConnectionConfig"
10       list-key-value="openflow-switch-connection-provider-default-impl">
11   </odl:clustered-app-config>
12   <bean id="defaultSwitchConnProvider" factory-ref="switchConnectionProviderFactory" factory-method="newInstance">
13     <argument ref="defaultSwitchConnConfig"/>
14   </bean>
15   <service ref="defaultSwitchConnProvider" interface="org.opendaylight.openflowjava.protocol.spi.connection.SwitchConnectionProvider"
16           odl:type="openflow-switch-connection-provider-default-impl"/>
17
18   <!-- Create OF switch connection provider on port 6633 (legacy) -->
19   <odl:clustered-app-config id="legacySwitchConnConfig" default-config-file-name="legacy-openflow-connection-config.xml"
20       binding-class="org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.openflow._switch.connection.config.rev160506.SwitchConnectionConfig"
21       list-key-value="openflow-switch-connection-provider-legacy-impl">
22   </odl:clustered-app-config>
23   <bean id="legacySwitchConnProvider" factory-ref="switchConnectionProviderFactory" factory-method="newInstance">
24     <argument ref="legacySwitchConnConfig"/>
25   </bean>
26   <service ref="legacySwitchConnProvider" interface="org.opendaylight.openflowjava.protocol.spi.connection.SwitchConnectionProvider"
27           odl:type="openflow-switch-connection-provider-legacy-impl"/>
28
29   <bean id="switchConnectionProviders" class="org.opendaylight.openflowjava.protocol.spi.connection.SwitchConnectionProviderList">
30       <argument>
31           <list>
32               <ref component-id="defaultSwitchConnProvider"/>
33               <ref component-id="legacySwitchConnProvider"/>
34           </list>
35       </argument>
36   </bean>
37   <service ref="switchConnectionProviders" interface="org.opendaylight.openflowjava.protocol.spi.connection.SwitchConnectionProviderList"/>
38 </blueprint>