Merge "Fix flow installation state in UI"
authorGiovanni Meo <gmeo@cisco.com>
Fri, 17 Jan 2014 09:14:04 +0000 (09:14 +0000)
committerGerrit Code Review <gerrit@opendaylight.org>
Fri, 17 Jan 2014 09:14:04 +0000 (09:14 +0000)
opendaylight/protocol_plugins/openflow/src/main/java/org/opendaylight/controller/protocol_plugin/openflow/internal/OFStatisticsManager.java

index 8a86d2f..27a7ae6 100644 (file)
@@ -748,7 +748,7 @@ public class OFStatisticsManager implements IOFStatisticsManager, IInventoryShim
             for (OFStatistics stats : targetList) {
                 V6StatsReply v6Stats = (V6StatsReply) stats;
                 V6Match v6Match = v6Stats.getMatch();
-                if (v6Stats.getPriority() == priority && v6Match.equals(targetMatch)) {
+                if (v6Stats.getPriority() == priority && targetMatch.equals(v6Match)) {
                     List<OFStatistics> list = new ArrayList<OFStatistics>();
                     list.add(stats);
                     return list;
@@ -757,7 +757,7 @@ public class OFStatisticsManager implements IOFStatisticsManager, IInventoryShim
         } else {
             for (OFStatistics stats : statsList) {
                 OFFlowStatisticsReply flowStats = (OFFlowStatisticsReply) stats;
-                if (flowStats.getPriority() == priority && flowStats.getMatch().equals(ofMatch)) {
+                if (flowStats.getPriority() == priority && ofMatch.equals(flowStats.getMatch())) {
                     List<OFStatistics> list = new ArrayList<OFStatistics>();
                     list.add(stats);
                     return list;