We already have a merged and validated flow entry. There is no need 76/5476/1
authorAsad Ahmed <asaahmed@cisco.com>
Thu, 27 Feb 2014 00:45:15 +0000 (16:45 -0800)
committerAsad Ahmed <asaahmed@cisco.com>
Thu, 27 Feb 2014 00:45:15 +0000 (16:45 -0800)
for extracting the original flow entry and then validating and merging it again
with the containerflow.

Change-Id: I131abdefc3bde14b148af0264cd220ea0c61c528
Signed-off-by: Asad Ahmed <asaahmed@cisco.com>
opendaylight/forwardingrulesmanager/implementation/src/main/java/org/opendaylight/controller/forwardingrulesmanager/internal/ForwardingRulesManager.java

index b94103fb1c7c9233bb417e93cc74d42bbef498e7..bdbf7acd5f6781fe153fe35421bbfe3aec6dbbd8 100644 (file)
@@ -1121,7 +1121,10 @@ public class ForwardingRulesManager implements
             List<FlowEntryInstall> list = new ArrayList<FlowEntryInstall>(groupFlows.get(groupName));
             toBeRemoved = list.size();
             for (FlowEntryInstall entry : list) {
-                Status status = this.removeEntry(entry.getOriginal(), false);
+                // since this is the entry that was stored in groupFlows
+                // it is already validated and merged
+                // so can call removeEntryInternal directly
+                Status status = this.removeEntryInternal(entry, false);
                 if (status.isSuccess()) {
                     toBeRemoved -= 1;
                 } else {