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 <reference id="openflowPluginDiagStatusProvider" interface="org.opendaylight.openflowjava.protocol.api.connection.OpenflowDiagStatusProvider"/>
5 <reference id="switchConnectionProviderFactory" interface="org.opendaylight.openflowjava.protocol.spi.connection.SwitchConnectionProviderFactory"/>
6 <!-- Create OF switch connection provider on port 6653 (default) -->
7 <odl:clustered-app-config id="defaultSwitchConnConfig" default-config-file-name="default-openflow-connection-config.xml"
8 binding-class="org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.openflow._switch.connection.config.rev160506.SwitchConnectionConfig"
9 list-key-value="openflow-switch-connection-provider-default-impl">
10 </odl:clustered-app-config>
11 <bean id="defaultSwitchConnProvider" factory-ref="switchConnectionProviderFactory" factory-method="newInstance">
12 <argument ref="defaultSwitchConnConfig"/>
13 <argument ref="openflowPluginDiagStatusProvider"/>
15 <service ref="defaultSwitchConnProvider" interface="org.opendaylight.openflowjava.protocol.spi.connection.SwitchConnectionProvider"
16 odl:type="openflow-switch-connection-provider-default-impl"/>
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 <argument ref="openflowPluginDiagStatusProvider"/>
27 <service ref="legacySwitchConnProvider" interface="org.opendaylight.openflowjava.protocol.spi.connection.SwitchConnectionProvider"
28 odl:type="openflow-switch-connection-provider-legacy-impl"/>
30 <bean id="switchConnectionProviders" class="org.opendaylight.openflowjava.protocol.spi.connection.SwitchConnectionProviderList">
33 <ref component-id="defaultSwitchConnProvider"/>
34 <ref component-id="legacySwitchConnProvider"/>
38 <service ref="switchConnectionProviders" interface="org.opendaylight.openflowjava.protocol.spi.connection.SwitchConnectionProviderList"/>