OPNFLWPLUG-983 Group and flow removal stats are not reported in order 91/69091/1
authorAnil Vishnoi <vishnoianil@gmail.com>
Wed, 28 Feb 2018 07:15:16 +0000 (23:15 -0800)
committerAnil Vishnoi <vishnoianil@gmail.com>
Mon, 5 Mar 2018 21:46:00 +0000 (21:46 +0000)
Change-Id: I6f66a40b0434d02fc32b3aa38f8e3834bad57005
Signed-off-by: Anil Vishnoi <vishnoianil@gmail.com>
openflowplugin-impl/src/main/java/org/opendaylight/openflowplugin/impl/statistics/StatisticsContextImpl.java

index 61fd206c2fbe4f0ea7474cadfe3bdb6b10f5aac1..724531b94f87c2a0028065a3e045e7337e376140 100644 (file)
@@ -155,10 +155,6 @@ class StatisticsContextImpl<T extends OfHeader> implements StatisticsContext {
             statListForCollecting.add(MultipartType.OFPMPTABLE);
         }
 
-        if (devState.isFlowStatisticsAvailable()) {
-            statListForCollecting.add(MultipartType.OFPMPFLOW);
-        }
-
         if (devState.isGroupAvailable()) {
             statListForCollecting.add(MultipartType.OFPMPGROUPDESC);
             statListForCollecting.add(MultipartType.OFPMPGROUP);
@@ -169,6 +165,10 @@ class StatisticsContextImpl<T extends OfHeader> implements StatisticsContext {
             statListForCollecting.add(MultipartType.OFPMPMETER);
         }
 
+        if (devState.isFlowStatisticsAvailable()) {
+            statListForCollecting.add(MultipartType.OFPMPFLOW);
+        }
+
         if (devState.isPortStatisticsAvailable()) {
             statListForCollecting.add(MultipartType.OFPMPPORTSTATS);
         }