BUG-6890: Enabling statistics rpc config through 10/46710/6
authorShuva Kar <shuva.jyoti.kar@ericsson.com>
Mon, 10 Oct 2016 04:39:42 +0000 (10:09 +0530)
committerShuva Jyoti Kar <shuva.jyoti.kar@ericsson.com>
Fri, 14 Oct 2016 03:32:54 +0000 (03:32 +0000)
openflowplugin.cfg

Change-Id: I54d1de2eac18b5cde38150cbdc21174d7111f740
Signed-off-by: Shuva Kar <shuva.jyoti.kar@ericsson.com>
openflowplugin-blueprint-config/src/main/resources/initial/openflowplugin.cfg
openflowplugin-impl/src/main/java/org/opendaylight/openflowplugin/impl/OpenFlowPluginProviderImpl.java

index 985d4b676959f6025ec5d82efc4fc0aa633b6a03..4a46c3cd73178e2b26e9f6e7c78076d01b6071ac 100644 (file)
@@ -3,4 +3,8 @@
 notification-flow-removed-off=false
 #Ability to skip pulling and storing of large table features. These features are still
 #available via rpc but if set to true then maintenance in DS will be omitted
-skip-table-features=true
\ No newline at end of file
+skip-table-features=true
+#Flag exposing backward compatible statistics rpcs providing result in form of async notification
+#deprecated usage
+#requires to be configured before switch connection, else require a switch restar
+is-statistics-rpc-enabled=false
\ No newline at end of file
index dc71ef042068305d6703222d5037ef07087885a1..0b15c1b8d289d9f3973758cf41db22a6186ac409 100644 (file)
@@ -276,6 +276,9 @@ public class OpenFlowPluginProviderImpl implements OpenFlowPluginProvider, OpenF
         if(deviceManager != null && props.containsKey("skip-table-features")) {
             deviceManager.setSkipTableFeatures(Boolean.valueOf(props.get("skip-table-features").toString()));
         }
+        if(rpcManager != null && props.containsKey("is-statistics-rpc-enabled")){
+            rpcManager.setStatisticsRpcEnabled(Boolean.valueOf((props.get("is-statistics-rpc-enabled").toString())));
+        }
     }
 
     private static void registerMXBean(final MessageIntelligenceAgency messageIntelligenceAgency) {