Move the Openflow connections blueprint to OpenflowJava project 19/46519/2
authorMohamed El-Serngawy <melserngawy@inocybe.com>
Tue, 4 Oct 2016 20:50:37 +0000 (16:50 -0400)
committerShuva Jyoti Kar <shuva.jyoti.kar@ericsson.com>
Thu, 13 Oct 2016 14:54:09 +0000 (14:54 +0000)
This patch is related to https://git.opendaylight.org/gerrit/#/c/46518/
Moving the Openflow connections (defaultSwitchConnProvider and legacySwitchConnProvider)
blueprint to OpenflowJava project as its config data model "openflow-switch-connection-provider-impl"
exist in OpenflowJava project

Change-Id: Ic6db83e98d57cf17ef5883d64755118214815731
Signed-off-by: Mohamed El-Serngawy <melserngawy@inocybe.com>
features/pom.xml
features/src/main/features/features.xml
openflowplugin-blueprint-config/pom.xml
openflowplugin-blueprint-config/src/main/resources/initial/default-openflow-connection-config.xml [deleted file]
openflowplugin-blueprint-config/src/main/resources/initial/legacy-openflow-connection-config.xml [deleted file]
openflowplugin-blueprint-config/src/main/resources/org/opendaylight/blueprint/openflowplugin.xml

index d2b9b2fda55db75d13d727f72669c2ccb592340a..64b1196dab8fb3ef8dce9c6e62d87c33a40ac64d 100644 (file)
             <type>cfg</type>
             <classifier>config</classifier>
         </dependency>
-        <dependency>
-            <groupId>org.opendaylight.openflowplugin</groupId>
-            <artifactId>openflowplugin-blueprint-config</artifactId>
-            <version>${project.version}</version>
-            <type>xml</type>
-            <classifier>config</classifier>
-        </dependency>
-        <dependency>
-            <groupId>org.opendaylight.openflowplugin</groupId>
-            <artifactId>openflowplugin-blueprint-config</artifactId>
-            <version>${project.version}</version>
-            <type>xml</type>
-            <classifier>legacyConfig</classifier>
-        </dependency>
-
         <dependency>
             <groupId>org.opendaylight.dlux</groupId>
             <artifactId>features-dlux</artifactId>
index 2c8fc6642f5cc2f3f8f61c7769067b5ed646172c..4a17a37b372b8e030a10c7d85778b4b7ba630a64 100644 (file)
@@ -50,8 +50,6 @@
         <bundle>mvn:org.opendaylight.controller/liblldp/{{VERSION}}</bundle>
         <bundle>mvn:org.opendaylight.openflowplugin/openflowplugin-blueprint-config/{{VERSION}}</bundle>
         <configfile finalname="etc/org.opendaylight.openflowplugin.cfg">mvn:org.opendaylight.openflowplugin/openflowplugin-blueprint-config/{{VERSION}}/cfg/config</configfile>
-        <configfile finalname="etc/opendaylight/datastore/initial/config/default-openflow-connection-config.xml">mvn:org.opendaylight.openflowplugin/openflowplugin-blueprint-config/{{VERSION}}/xml/config</configfile>
-        <configfile finalname="etc/opendaylight/datastore/initial/config/legacy-openflow-connection-config.xml">mvn:org.opendaylight.openflowplugin/openflowplugin-blueprint-config/{{VERSION}}/xml/legacyConfig</configfile>
         <configfile finalname="etc/opendaylight/karaf/42-openflowplugin-Li.xml">mvn:org.opendaylight.openflowplugin/openflowplugin-controller-config/{{VERSION}}/xml/config-Li</configfile>
     </feature>
 
index 172a504251c3647dca42404e4e7a6995fac06561..f4d7167a7f9f45ea0270126317f5a28e8eaf7eef 100644 (file)
                                <type>cfg</type>
                                <classifier>config</classifier>
                            </artifact>
-                           <artifact>
-                               <file>${project.build.directory}/classes/initial/default-openflow-connection-config.xml</file>
-                               <type>xml</type>
-                               <classifier>config</classifier>
-                           </artifact>
-                           <artifact>
-                               <file>${project.build.directory}/classes/initial/legacy-openflow-connection-config.xml</file>
-                               <type>xml</type>
-                               <classifier>legacyConfig</classifier>
-                           </artifact>
                        </artifacts>
                    </configuration>
                </execution>
diff --git a/openflowplugin-blueprint-config/src/main/resources/initial/default-openflow-connection-config.xml b/openflowplugin-blueprint-config/src/main/resources/initial/default-openflow-connection-config.xml
deleted file mode 100644 (file)
index 48f8bf5..0000000
+++ /dev/null
@@ -1,17 +0,0 @@
-<switch-connection-config xmlns="urn:opendaylight:params:xml:ns:yang:openflow:switch:connection:config">
-  <instance-name>openflow-switch-connection-provider-default-impl</instance-name>
-  <port>6633</port>
-  <transport-protocol>TCP</transport-protocol>
-  <tls>
-     <keystore>configuration/ssl/ctl.jks</keystore>
-     <keystore-type>JKS</keystore-type>
-     <keystore-path-type>PATH</keystore-path-type>
-     <keystore-password>opendaylight</keystore-password>
-     <truststore>configuration/ssl/truststore.jks</truststore>
-     <truststore-type>JKS</truststore-type>
-     <truststore-path-type>PATH</truststore-path-type>
-     <truststore-password>opendaylight</truststore-password>
-     <certificate-password>opendaylight</certificate-password>
-     <cipher-suites></cipher-suites>
-  </tls>
-</switch-connection-config>
\ No newline at end of file
diff --git a/openflowplugin-blueprint-config/src/main/resources/initial/legacy-openflow-connection-config.xml b/openflowplugin-blueprint-config/src/main/resources/initial/legacy-openflow-connection-config.xml
deleted file mode 100644 (file)
index 7772ecc..0000000
+++ /dev/null
@@ -1,17 +0,0 @@
-<switch-connection-config xmlns="urn:opendaylight:params:xml:ns:yang:openflow:switch:connection:config">
-  <instance-name>openflow-switch-connection-provider-legacy-impl</instance-name>
-  <port>6653</port>
-  <transport-protocol>TCP</transport-protocol>
-  <tls>
-     <keystore>configuration/ssl/ctl.jks</keystore>
-     <keystore-type>JKS</keystore-type>
-     <keystore-path-type>PATH</keystore-path-type>
-     <keystore-password>opendaylight</keystore-password>
-     <truststore>configuration/ssl/truststore.jks</truststore>
-     <truststore-type>JKS</truststore-type>
-     <truststore-path-type>PATH</truststore-path-type>
-     <truststore-password>opendaylight</truststore-password>
-     <certificate-password>opendaylight</certificate-password>
-     <cipher-suites></cipher-suites>
-  </tls>
-</switch-connection-config>
\ No newline at end of file
index bd72c349c703fd9cb8d86699d3f5239ee4d35890..d6f0c360d94e6273df7fca7810f9f9ea03cc6f93 100644 (file)
   <reference id="entityOwnershipService" interface="org.opendaylight.controller.md.sal.common.api.clustering.EntityOwnershipService"/>
   <reference id="clusterSingletonServiceProvider" interface="org.opendaylight.mdsal.singleton.common.api.ClusterSingletonServiceProvider"/>
 
-  <reference id="switchConnProviderFactory"
-          interface="org.opendaylight.openflowjava.protocol.spi.connection.SwitchConnectionProviderFactory"/>
+  <reference id="defaultSwitchConnProvider" interface="org.opendaylight.openflowjava.protocol.spi.connection.SwitchConnectionProvider"
+   odl:type="openflow-switch-connection-provider-default-impl"/>
 
-  <!-- Create OF switch connection provider on port 6633 -->
-  <odl:clustered-app-config id="defaultSwitchConnConfig" default-config-file-name="default-openflow-connection-config.xml"
-      binding-class="org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.openflow._switch.connection.config.rev160506.SwitchConnectionConfig"
-      list-key-value="openflow-switch-connection-provider-default-impl">
-  </odl:clustered-app-config>
-
-  <bean id="defaultSwitchConnProvider" factory-ref="switchConnProviderFactory" factory-method="newInstance">
-    <argument ref="defaultSwitchConnConfig"/>
-  </bean>
-
-  <service ref="defaultSwitchConnProvider" interface="org.opendaylight.openflowjava.protocol.spi.connection.SwitchConnectionProvider"
-          odl:type="openflow-switch-connection-provider-default-impl"/>
-
-  <!-- Create OF switch connection provider on port 6653 -->
-  <odl:clustered-app-config id="legacySwitchConnConfig" default-config-file-name="legacy-openflow-connection-config.xml"
-      binding-class="org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.openflow._switch.connection.config.rev160506.SwitchConnectionConfig"
-      list-key-value="openflow-switch-connection-provider-legacy-impl">
-  </odl:clustered-app-config>
-
-  <bean id="legacySwitchConnProvider" factory-ref="switchConnProviderFactory" factory-method="newInstance">
-    <argument ref="legacySwitchConnConfig"/>
-  </bean>
-
-  <service ref="legacySwitchConnProvider" interface="org.opendaylight.openflowjava.protocol.spi.connection.SwitchConnectionProvider"
-          odl:type="openflow-switch-connection-provider-legacy-impl"/>
+  <reference id="legacySwitchConnProvider" interface="org.opendaylight.openflowjava.protocol.spi.connection.SwitchConnectionProvider"
+   odl:type="openflow-switch-connection-provider-legacy-impl"/>
 
   <!-- Create OpenflowPluginProvider instance -->