From 2c9d952924a42a1346768a163ccab684bd0260c8 Mon Sep 17 00:00:00 2001 From: Anil Vishnoi Date: Tue, 27 Feb 2018 23:15:16 -0800 Subject: [PATCH] OPNFLWPLUG-983 Group and flow removal stats are not reported in order Change-Id: I6f66a40b0434d02fc32b3aa38f8e3834bad57005 Signed-off-by: Anil Vishnoi --- .../impl/statistics/StatisticsContextImpl.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/openflowplugin-impl/src/main/java/org/opendaylight/openflowplugin/impl/statistics/StatisticsContextImpl.java b/openflowplugin-impl/src/main/java/org/opendaylight/openflowplugin/impl/statistics/StatisticsContextImpl.java index 61fd206c2f..724531b94f 100644 --- a/openflowplugin-impl/src/main/java/org/opendaylight/openflowplugin/impl/statistics/StatisticsContextImpl.java +++ b/openflowplugin-impl/src/main/java/org/opendaylight/openflowplugin/impl/statistics/StatisticsContextImpl.java @@ -155,10 +155,6 @@ class StatisticsContextImpl 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 implements StatisticsContext { statListForCollecting.add(MultipartType.OFPMPMETER); } + if (devState.isFlowStatisticsAvailable()) { + statListForCollecting.add(MultipartType.OFPMPFLOW); + } + if (devState.isPortStatisticsAvailable()) { statListForCollecting.add(MultipartType.OFPMPPORTSTATS); } -- 2.36.6