Consolidate blueprint XML files for openflowplugin-impl 23/100123/2
authorSangwook Ha <sangwook.ha@verizon.com>
Mon, 14 Mar 2022 21:28:27 +0000 (14:28 -0700)
committerSangwook Ha <sangwook.ha@verizon.com>
Thu, 31 Mar 2022 22:35:59 +0000 (22:35 +0000)
There are two Blueprint XML files cross-referencing between them.
Merge them into a single file for better readability.

Change-Id: Ib46dd02259658484a278908dc8af46f553a9d4f7
Signed-off-by: Sangwook Ha <sangwook.ha@verizon.com>
openflowplugin-impl/src/main/resources/OSGI-INF/blueprint/autowire.xml [deleted file]
openflowplugin-impl/src/main/resources/OSGI-INF/blueprint/commands.xml
openflowplugin-impl/src/main/resources/OSGI-INF/blueprint/openflowplugin-impl.xml

diff --git a/openflowplugin-impl/src/main/resources/OSGI-INF/blueprint/autowire.xml b/openflowplugin-impl/src/main/resources/OSGI-INF/blueprint/autowire.xml
deleted file mode 100644 (file)
index ad51e55..0000000
+++ /dev/null
@@ -1,32 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<blueprint xmlns="http://www.osgi.org/xmlns/blueprint/v1.0.0">
-    <bean id="flowGroupCacheManagerImpl" class="org.opendaylight.openflowplugin.impl.services.cache.FlowGroupCacheManagerImpl"/>
-    <bean id="mastershipChangeServiceManagerImpl" class="org.opendaylight.openflowplugin.impl.mastership.MastershipChangeServiceManagerImpl"/>
-    <bean id="openFlowPluginProviderImpl" class="org.opendaylight.openflowplugin.impl.OpenFlowPluginProviderImpl" init-method="initialize" destroy-method="close">
-        <argument ref="configurationService"/>
-        <argument ref="switchConnectionProviderList"/>
-        <argument ref="pingPongDataBroker"/>
-        <argument ref="rpcProviderService"/>
-        <argument ref="notificationPublishService"/>
-        <argument ref="clusterSingletonServiceProvider"/>
-        <argument ref="entityOwnershipService"/>
-        <argument ref="mastershipChangeServiceManagerImpl"/>
-        <argument ref="openflowDiagStatusProvider"/>
-        <argument ref="systemReadyMonitor"/>
-    </bean>
-    <reference id="systemReadyMonitor" interface="org.opendaylight.infrautils.ready.SystemReadyMonitor"/>
-    <reference id="notificationPublishService" interface="org.opendaylight.mdsal.binding.api.NotificationPublishService"/>
-    <reference id="rpcProviderService" interface="org.opendaylight.mdsal.binding.api.RpcProviderService"/>
-    <reference id="entityOwnershipService" interface="org.opendaylight.mdsal.eos.binding.api.EntityOwnershipService"/>
-    <reference id="clusterSingletonServiceProvider" interface="org.opendaylight.mdsal.singleton.common.api.ClusterSingletonServiceProvider"/>
-    <reference id="openflowDiagStatusProvider" interface="org.opendaylight.openflowjava.protocol.api.connection.OpenflowDiagStatusProvider"/>
-    <service ref="flowGroupCacheManagerImpl" interface="org.opendaylight.openflowplugin.api.openflow.FlowGroupCacheManager"/>
-    <service ref="mastershipChangeServiceManagerImpl" interface="org.opendaylight.openflowplugin.api.openflow.mastership.MastershipChangeServiceManager"/>
-    <service ref="openFlowPluginProviderImpl">
-        <interfaces>
-            <value>org.opendaylight.openflowplugin.api.openflow.OpenFlowPluginProvider</value>
-            <value>org.opendaylight.openflowplugin.extension.api.OpenFlowPluginExtensionRegistratorProvider</value>
-            <value>org.opendaylight.openflowplugin.api.openflow.FlowGroupInfoHistories</value>
-        </interfaces>
-    </service>
-</blueprint>
index 67be069039d7e02f6e13ec2a8bf3fad866deeea2..0b8e99a5546906642d0eec487c66d2b289c8d55d 100644 (file)
@@ -8,7 +8,6 @@
   -->
 
 <blueprint xmlns="http://www.osgi.org/xmlns/blueprint/v1.0.0">
-
     <command-bundle xmlns="http://karaf.apache.org/xmlns/shell/v1.0.0">
         <command name="ofp/showStats">
             <action class="org.opendaylight.openflowplugin.impl.karaf.ShowStatsCommandProvider"/>
@@ -29,4 +28,4 @@
             <action class="org.opendaylight.openflowplugin.impl.karaf.ResetSessionStatsComandProvider"/>
         </command>
     </command-bundle>
-</blueprint>
\ No newline at end of file
+</blueprint>
index 7b80dbb1a90b91e6513031af71b18893e11a8aa7..fc1cf6e4e1db6ea4f040ac30e49d993fae4cad78 100644 (file)
@@ -5,32 +5,81 @@
            xmlns:cm="http://aries.apache.org/blueprint/xmlns/blueprint-cm/v1.1.0"
            odl:use-default-for-reference-types="true">
 
-  <bean id="configurationServiceFactory" class="org.opendaylight.openflowplugin.impl.configuration.ConfigurationServiceFactoryOsgiImpl">
-    <argument ref="blueprintBundleContext"/>
+  <bean id="openFlowPluginProviderImpl"
+        class="org.opendaylight.openflowplugin.impl.OpenFlowPluginProviderImpl"
+        init-method="initialize"
+        destroy-method="close">
+    <argument ref="configurationService"/>
+    <argument ref="switchConnectionProviderList"/>
+    <argument ref="pingPongDataBroker"/>
+    <argument ref="rpcProviderService"/>
+    <argument ref="notificationPublishService"/>
+    <argument ref="clusterSingletonServiceProvider"/>
+    <argument ref="entityOwnershipService"/>
+    <argument ref="mastershipChangeServiceManagerImpl"/>
+    <argument ref="openflowDiagStatusProvider"/>
+    <argument ref="systemReadyMonitor"/>
   </bean>
-  <service ref="configurationServiceFactory" interface="org.opendaylight.openflowplugin.api.openflow.configuration.ConfigurationServiceFactory"/>
+  <service ref="openFlowPluginProviderImpl">
+    <interfaces>
+      <value>org.opendaylight.openflowplugin.api.openflow.OpenFlowPluginProvider</value>
+      <value>org.opendaylight.openflowplugin.extension.api.OpenFlowPluginExtensionRegistratorProvider</value>
+      <value>org.opendaylight.openflowplugin.api.openflow.FlowGroupInfoHistories</value>
+    </interfaces>
+  </service>
+
+  <bean id="flowGroupCacheManagerImpl"
+        class="org.opendaylight.openflowplugin.impl.services.cache.FlowGroupCacheManagerImpl"/>
+  <service ref="flowGroupCacheManagerImpl"
+           interface="org.opendaylight.openflowplugin.api.openflow.FlowGroupCacheManager"/>
 
-  <odl:clustered-app-config id="openflowProviderConfig"
-                          binding-class="org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.openflow.provider.config.rev160510.OpenflowProviderConfig"/>
   <bean id="configurationService"
         factory-ref="configurationServiceFactory"
         factory-method="newInstance"
         destroy-method="close">
-      <argument ref="openflowProviderConfig" />
-      <cm:managed-properties persistent-id="org.opendaylight.openflowplugin"
-                             update-strategy="component-managed"
-                             update-method="update"/>
+    <argument ref="openflowProviderConfig" />
+    <cm:managed-properties persistent-id="org.opendaylight.openflowplugin"
+                           update-strategy="component-managed"
+                           update-method="update"/>
   </bean>
-  <service ref="configurationService" interface="org.opendaylight.openflowplugin.api.openflow.configuration.ConfigurationService"/>
+  <service ref="configurationService"
+           interface="org.opendaylight.openflowplugin.api.openflow.configuration.ConfigurationService"/>
+  <bean id="configurationServiceFactory"
+        class="org.opendaylight.openflowplugin.impl.configuration.ConfigurationServiceFactoryOsgiImpl">
+    <argument ref="blueprintBundleContext"/>
+  </bean>
+  <service ref="configurationServiceFactory"
+           interface="org.opendaylight.openflowplugin.api.openflow.configuration.ConfigurationServiceFactory"/>
+  <odl:clustered-app-config id="openflowProviderConfig"
+                            binding-class="org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.openflow.provider.config.rev160510.OpenflowProviderConfig"/>
 
-  <reference id="ppDB" interface="org.opendaylight.mdsal.binding.api.DataBroker"/>
-  <bean id="pingPongDataBroker" class="org.opendaylight.openflowplugin.impl.ForwardingPingPongDataBroker">
+  <bean id="pingPongDataBroker"
+        class="org.opendaylight.openflowplugin.impl.ForwardingPingPongDataBroker">
     <argument ref="ppDB"/>
   </bean>
+  <reference id="ppDB"
+             interface="org.opendaylight.mdsal.binding.api.DataBroker"/>
 
-  <reference id="switchConnectionProviderList" interface="org.opendaylight.openflowjava.protocol.spi.connection.SwitchConnectionProviderList" ext:proxy-method="classes"/>
+  <bean id="mastershipChangeServiceManagerImpl"
+        class="org.opendaylight.openflowplugin.impl.mastership.MastershipChangeServiceManagerImpl"/>
+  <service ref="mastershipChangeServiceManagerImpl"
+           interface="org.opendaylight.openflowplugin.api.openflow.mastership.MastershipChangeServiceManager"/>
 
-  <reference id="openflowPluginDiagStatusProviderImpl" interface="org.opendaylight.openflowjava.protocol.api.connection.OpenflowDiagStatusProvider" ext:proxy-method="classes"/>
+  <reference id="switchConnectionProviderList"
+             interface="org.opendaylight.openflowjava.protocol.spi.connection.SwitchConnectionProviderList"
+             ext:proxy-method="classes"/>
+  <reference id="rpcProviderService"
+             interface="org.opendaylight.mdsal.binding.api.RpcProviderService"/>
+  <reference id="notificationPublishService"
+             interface="org.opendaylight.mdsal.binding.api.NotificationPublishService"/>
+  <reference id="clusterSingletonServiceProvider"
+             interface="org.opendaylight.mdsal.singleton.common.api.ClusterSingletonServiceProvider"/>
+  <reference id="entityOwnershipService"
+             interface="org.opendaylight.mdsal.eos.binding.api.EntityOwnershipService"/>
+  <reference id="openflowDiagStatusProvider"
+             interface="org.opendaylight.openflowjava.protocol.api.connection.OpenflowDiagStatusProvider"/>
+  <reference id="systemReadyMonitor"
+             interface="org.opendaylight.infrautils.ready.SystemReadyMonitor"/>
 
   <odl:action-provider interface="org.opendaylight.yang.gen.v1.urn.opendaylight.packet.service.rev130709.PacketProcessingService"/>
 </blueprint>