Minor fix in flow IP Matching 66/4766/2 jenkins-controller-bulk-release-prepare-only-2-9
authorAnil Vishnoi <avishnoi@in.ibm.com>
Sat, 25 Jan 2014 12:25:53 +0000 (17:55 +0530)
committerAnil Vishnoi <avishnoi@in.ibm.com>
Sat, 25 Jan 2014 13:42:03 +0000 (19:12 +0530)
Change-Id: I458425ec4482665a29b56012ec91610346eac378
Signed-off-by: Anil Vishnoi <avishnoi@in.ibm.com>
opendaylight/md-sal/statistics-manager/src/main/java/org/opendaylight/controller/md/statistics/manager/MultipartMessageManager.java
opendaylight/md-sal/statistics-manager/src/main/java/org/opendaylight/controller/md/statistics/manager/StatisticsUpdateCommiter.java

index dfe356bdb1efbbc5ec7d299025b6cf879d820b38..6f58708e1b207edf898f606448147119ec3e106b 100644 (file)
@@ -116,7 +116,8 @@ public class MultipartMessageManager {
     }
     
     public void setTxIdAndTableIdMapEntry(NodeId nodeId, TransactionId id,Short tableId){
-        
+        if(id == null)
+            return;
         txIdTotableIdMap.put(new TxIdEntry(nodeId,id,null), tableId);
     }
     
@@ -129,6 +130,8 @@ public class MultipartMessageManager {
         }
     }
     public void addTxIdToRequestTypeEntry (NodeId nodeId, TransactionId id,StatsRequestType type){
+        if(id == null)
+            return;
         TxIdEntry entry = new TxIdEntry(nodeId,id,type);
         txIdToRequestTypeMap.put(entry, getExpiryTime());
     }
index 07dcd0f6aa74ae123fdc88e25c0115758518553d..d14f7cf503c0c26b5086696473dee506f2fd26f8 100644 (file)
@@ -688,13 +688,6 @@ public class StatisticsUpdateCommiter implements OpendaylightGroupStatisticsList
         if (statsFlow.getClass() != storedFlow.getClass()) {
             return false;
         }
-        if (statsFlow.getBufferId()== null) {
-            if (storedFlow.getBufferId() != null) {
-                return false;
-            }
-        } else if(!statsFlow.getBufferId().equals(storedFlow.getBufferId())) {
-            return false;
-        }
         if (statsFlow.getContainerName()== null) {
             if (storedFlow.getContainerName()!= null) {
                 return false;
@@ -702,13 +695,6 @@ public class StatisticsUpdateCommiter implements OpendaylightGroupStatisticsList
         } else if(!statsFlow.getContainerName().equals(storedFlow.getContainerName())) {
             return false;
         }
-        if (statsFlow.getCookie()== null) {
-            if (storedFlow.getCookie()!= null) {
-                return false;
-            }
-        } else if(!statsFlow.getCookie().equals(storedFlow.getCookie())) {
-            return false;
-        }
         if (statsFlow.getMatch()== null) {
             if (storedFlow.getMatch() != null) {
                 return false;
@@ -717,20 +703,6 @@ public class StatisticsUpdateCommiter implements OpendaylightGroupStatisticsList
         else if(!matchEquals(statsFlow.getMatch(), storedFlow.getMatch())) {
             return false;
         }
-        if (statsFlow.getHardTimeout() == null) {
-            if (storedFlow.getHardTimeout() != null) {
-                return false;
-            }
-        } else if(!statsFlow.getHardTimeout().equals(storedFlow.getHardTimeout() )) {
-            return false;
-        }
-        if (statsFlow.getIdleTimeout()== null) {
-            if (storedFlow.getIdleTimeout() != null) {
-                return false;
-            }
-        } else if(!statsFlow.getIdleTimeout().equals(storedFlow.getIdleTimeout())) {
-            return false;
-        }
         if (statsFlow.getPriority() == null) {
             if (storedFlow.getPriority() != null) {
                 return false;